mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-07 00:47:19 +08:00
199 lines
1.6 MiB
199 lines
1.6 MiB
import{c as Ed,O as A_,d as R_,b as M_,u as O_,f as I_}from"./index-BtKie8gj.js";import{r as N_,a as P_}from"./index-TOZ1mauH.js";var o2={exports:{}};(function(Cd,Ad){(function(fa,ao){Cd.exports=ao(N_(),P_)})(Ed,function(fa,ao){function so(t){return(so=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(t)}function Rd(t){var r=function(e,n){if(so(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var o=a.call(e,n||"default");if(so(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}(t,"string");return so(r)=="symbol"?r:String(r)}function Qc(t,r,e){return(r=Rd(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function Md(t){if(Array.isArray(t))return t}function Lu(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function Bu(t,r){if(t){if(typeof t=="string")return Lu(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Lu(t,r):void 0}}function Od(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $e(t,r){return Md(t)||function(e,n){var a=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var o,s,i,c,l=[],u=!0,f=!1;try{if(i=(a=a.call(e)).next,n===0){if(Object(a)!==a)return;u=!1}else for(;!(u=(o=i.call(a)).done)&&(l.push(o.value),l.length!==n);u=!0);}catch(h){f=!0,s=h}finally{try{if(!u&&a.return!=null&&(c=a.return(),Object(c)!==c))return}finally{if(f)throw s}}return l}}(t,r)||Bu(t,r)||Od()}function At(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function Id(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Rd(n.key),n)}}function Rt(t,r,e){return r&&Id(t.prototype,r),e&&Id(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Nd(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Pd(t){return Md(t)||Nd(t)||Bu(t)||Od()}var tl=function(){function t(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";At(this,t),typeof r=="string"?(this.el=document.createElement(r),this.el.className=e):this.el=r,this.data={}}return Rt(t,[{key:"data",value:function(r,e){return e!==void 0?(this.data[r]=e,this):this.data[r]}},{key:"on",value:function(r,e){var n=Pd(r.split(".")),a=n[0],o=n.slice(1),s=a;return s==="mousewheel"&&/Firefox/i.test(window.navigator.userAgent)&&(s="DOMMouseScroll"),this.el.addEventListener(s,function(i){e(i);for(var c=0;c<o.length;c+=1){var l=o[c];if(l==="left"&&i.button!==0||l==="right"&&i.button!==2)return;l==="stop"&&i.stopPropagation()}}),this}},{key:"offset",value:function(r){var e=this;if(r!==void 0)return Object.keys(r).forEach(function(a){e.css(a,"".concat(r[a],"px"))}),this;var n=this.el;return{top:n.offsetTop,left:n.offsetLeft,height:n.offsetHeight,width:n.offsetWidth}}},{key:"scroll",value:function(r){var e=this.el;return r!==void 0&&(r.left!==void 0&&(e.scrollLeft=r.left),r.top!==void 0&&(e.scrollTop=r.top)),{left:e.scrollLeft,top:e.scrollTop}}},{key:"box",value:function(){return this.el.getBoundingClientRect()}},{key:"parent",value:function(){return new t(this.el.parentNode)}},{key:"children",value:function(){for(var r=this,e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return arguments.length===0?this.el.childNodes:(n.forEach(function(o){return r.child(o)}),this)}},{key:"removeChild",value:function(r){this.el.removeChild(r)}},{key:"child",value:function(r){var e=r;return typeof r=="string"?e=document.createTextNode(r):r instanceof t&&(e=r.el),this.el.appendChild(e),this}},{key:"contains",value:function(r){return this.el.contains(r)}},{key:"className",value:function(r){return r!==void 0?(this.el.className=r,this):this.el.className}},{key:"addClass",value:function(r){return this.el.classList.add(r),this}},{key:"hasClass",value:function(r){return this.el.classList.contains(r)}},{key:"removeClass",value:function(r){return this.el.classList.remove(r),this}},{key:"toggle",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"active";return this.toggleClass(r)}},{key:"toggleClass",value:function(r){return this.el.classList.toggle(r)}},{key:"active",value:function(){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"active";return!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]?this.addClass(r):this.removeClass(r),this}},{key:"checked",value:function(){var r=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return this.active(r,"checked"),this}},{key:"disabled",value:function(){return!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]?this.addClass("disabled"):this.removeClass("disabled"),this}},{key:"attr",value:function(r,e){var n=this;if(e!==void 0)this.el.setAttribute(r,e);else{if(typeof r=="string")return this.el.getAttribute(r);Object.keys(r).forEach(function(a){n.el.setAttribute(a,r[a])})}return this}},{key:"removeAttr",value:function(r){return this.el.removeAttribute(r),this}},{key:"html",value:function(r){return r!==void 0?(this.el.innerHTML=r,this):this.el.innerHTML}},{key:"val",value:function(r){return r!==void 0?(this.el.value=r,this):this.el.value}},{key:"focus",value:function(){this.el.focus()}},{key:"cssRemoveKeys",value:function(){for(var r=this,e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return n.forEach(function(o){return r.el.style.removeProperty(o)}),this}},{key:"css",value:function(r,e){var n=this;return e===void 0&&typeof r!="string"?(Object.keys(r).forEach(function(a){n.el.style[a]=r[a]}),this):e!==void 0?(this.el.style[r]=e,this):this.el.style[r]}},{key:"computedStyle",value:function(){return window.getComputedStyle(this.el,null)}},{key:"show",value:function(){return this.css("display","block"),this}},{key:"hide",value:function(){return this.css("display","none"),this}}]),t}(),Gt=function(t){return new tl(t,arguments.length>1&&arguments[1]!==void 0?arguments[1]:"")};function lr(t){return function(r){if(Array.isArray(r))return Lu(r)}(t)||Nd(t)||Bu(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var Za=["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 Dd(t){for(var r="",e=t;e>=Za.length;)e/=Za.length,e-=1,r+=Za[parseInt(e,10)%Za.length];var n=t%Za.length;return r+=Za[n]}function c2(t){for(var r=0,e=0;e<t.length-1;e+=1){var n=t.charCodeAt(e)-65,a=t.length-1-e;r+=Math.pow(Za.length,a)+Za.length*n}return r+=t.charCodeAt(t.length-1)-65}function Ja(t){for(var r="",e="",n=0;n<t.length;n+=1)t.charAt(n)>="0"&&t.charAt(n)<="9"?e+=t.charAt(n):r+=t.charAt(n);return[c2(r),parseInt(e,10)-1]}function Ma(t,r){return"".concat(Dd(t)).concat(r+1)}function Ko(t,r,e){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){return!0};if(r===0&&e===0)return t;var a=$e(Ja(t),2),o=a[0],s=a[1];return n(o,s)?Ma(o+r,s+e):t}var Hn=function(){function t(r,e,n,a){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;At(this,t),this.sri=r,this.sci=e,this.eri=n,this.eci=a,this.w=o,this.h=s}return Rt(t,[{key:"set",value:function(r,e,n,a){this.sri=r,this.sci=e,this.eri=n,this.eci=a}},{key:"multiple",value:function(){return this.eri-this.sri>0||this.eci-this.sci>0}},{key:"includes",value:function(){for(var r=0,e=0,n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];if(a.length===1){var s=$e(Ja(a[0]),2);e=s[0],r=s[1]}else a.length===2&&(r=a[0],e=a[1]);var i=this.sri,c=this.sci,l=this.eri,u=this.eci;return i<=r&&r<=l&&c<=e&&e<=u}},{key:"each",value:function(r){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return!0},n=this.sri,a=this.sci,o=this.eri,s=this.eci,i=n;i<=o;i+=1)if(e(i))for(var c=a;c<=s;c+=1)r(i,c)}},{key:"contains",value:function(r){return this.sri<=r.sri&&this.sci<=r.sci&&this.eri>=r.eri&&this.eci>=r.eci}},{key:"within",value:function(r){return this.sri>=r.sri&&this.sci>=r.sci&&this.eri<=r.eri&&this.eci<=r.eci}},{key:"disjoint",value:function(r){return this.sri>r.eri||this.sci>r.eci||r.sri>this.eri||r.sci>this.eci}},{key:"intersects",value:function(r){return this.sri<=r.eri&&this.sci<=r.eci&&r.sri<=this.eri&&r.sci<=this.eci}},{key:"union",value:function(r){var e=this.sri,n=this.sci,a=this.eri,o=this.eci;return new t(r.sri<e?r.sri:e,r.sci<n?r.sci:n,r.eri>a?r.eri:a,r.eci>o?r.eci:o)}},{key:"difference",value:function(r){var e=[],n=function(h,d,p,m){e.push(new t(h,d,p,m))},a=this.sri,o=this.sci,s=this.eri,i=this.eci,c=r.sri-a,l=r.sci-o,u=s-r.eri,f=i-r.eci;return c>0?(n(a,o,r.sri-1,i),u>0?(n(r.eri+1,o,s,i),l>0&&n(r.sri,o,r.eri,r.sci-1),f>0&&n(r.sri,r.eci+1,r.eri,i)):(l>0&&n(r.sri,o,s,r.sci-1),f>0&&n(r.sri,r.eci+1,s,i))):u>0&&(n(r.eri+1,o,s,i),l>0&&n(a,o,r.eri,r.sci-1),f>0&&n(a,r.eci+1,r.eri,i)),l>0?(n(a,o,s,r.sci-1),f>0?(n(a,r.eri+1,s,i),c>0&&n(a,r.sci,r.sri-1,r.eci),u>0&&n(r.sri+1,r.sci,s,r.eci)):(c>0&&n(a,r.sci,r.sri-1,i),u>0&&n(r.sri+1,r.sci,s,i))):f>0&&(n(s,r.eci+1,s,i),c>0&&n(a,o,r.sri-1,r.eci),u>0&&n(r.eri+1,o,s,r.eci)),e}},{key:"size",value:function(){return[this.eri-this.sri+1,this.eci-this.sci+1]}},{key:"toString",value:function(){var r=this.sri,e=this.sci,n=this.eri,a=this.eci,o=Ma(e,r);return this.multiple()&&(o="".concat(o,":").concat(Ma(a,n))),o}},{key:"clone",value:function(){return new t(this.sri,this.sci,this.eri,this.eci,this.w,this.h)}},{key:"equals",value:function(r){return this.eri===r.eri&&this.eci===r.eci&&this.sri===r.sri&&this.sci===r.sci}}],[{key:"valueOf",value:function(r){var e=r.split(":"),n=$e(Ja(e[0]),2),a=n[0],o=n[1],s=o,i=a;if(e.length>1){var c=$e(Ja(e[1]),2);i=c[0],s=c[1]}return new t(o,a,s,i)}}]),t}(),l2=function(){function t(){At(this,t),this.range=new Hn(0,0,0,0),this.ri=0,this.ci=0}return Rt(t,[{key:"multiple",value:function(){return this.range.multiple()}},{key:"setIndexes",value:function(r,e){this.ri=r,this.ci=e}},{key:"size",value:function(){return this.range.size()}}]),t}(),u2=Rt(function t(){At(this,t),this.x=0,this.y=0,this.ri=0,this.ci=0}),f2=function(){function t(){At(this,t),this.undoItems=[],this.redoItems=[]}return Rt(t,[{key:"add",value:function(r){this.undoItems.push(JSON.stringify(r)),this.redoItems=[]}},{key:"canUndo",value:function(){return this.undoItems.length>0}},{key:"canRedo",value:function(){return this.redoItems.length>0}},{key:"undo",value:function(r,e){var n=this.undoItems,a=this.redoItems;this.canUndo()&&(a.push(JSON.stringify(r)),e(JSON.parse(n.pop())))}},{key:"redo",value:function(r,e){var n=this.undoItems,a=this.redoItems;this.canRedo()&&(n.push(JSON.stringify(r)),e(JSON.parse(a.pop())))}}]),t}(),h2=function(){function t(){At(this,t),this.range=null,this.state="clear"}return Rt(t,[{key:"copy",value:function(r){return this.range=r,this.state="copy",this}},{key:"cut",value:function(r){return this.range=r,this.state="cut",this}},{key:"isCopy",value:function(){return this.state==="copy"}},{key:"isCut",value:function(){return this.state==="cut"}},{key:"isClear",value:function(){return this.state==="clear"}},{key:"clear",value:function(){this.range=null,this.state="clear"}}]),t}(),Fd=function(){function t(r,e,n){At(this,t),this.ci=r,this.operator=e,this.value=n}return Rt(t,[{key:"set",value:function(r,e){this.operator=r,this.value=e}},{key:"includes",value:function(r){var e=this.operator,n=this.value;return e==="all"||e==="in"&&n.includes(r)}},{key:"vlength",value:function(){var r=this.operator,e=this.value;return r==="in"?e.length:0}},{key:"getData",value:function(){return{ci:this.ci,operator:this.operator,value:this.value}}}]),t}(),jd=function(){function t(r,e){At(this,t),this.ci=r,this.order=e}return Rt(t,[{key:"asc",value:function(){return this.order==="asc"}},{key:"desc",value:function(){return this.order==="desc"}}]),t}(),d2=function(){function t(){At(this,t),this.ref=null,this.filters=[],this.sort=null}return Rt(t,[{key:"setData",value:function(r){var e=r.ref,n=r.filters,a=r.sort;e!=null&&(this.ref=e,this.filters=n.map(function(o){return new Fd(o.ci,o.operator,o.value)}),a&&(this.sort=new jd(a.ci,a.order)))}},{key:"getData",value:function(){if(this.active()){var r=this.ref,e=this.filters,n=this.sort;return{ref:r,filters:e.map(function(a){return a.getData()}),sort:n}}return{}}},{key:"addFilter",value:function(r,e,n){var a=this.getFilter(r);a==null?this.filters.push(new Fd(r,e,n)):a.set(e,n)}},{key:"setSort",value:function(r,e){this.sort=e?new jd(r,e):null}},{key:"includes",value:function(r,e){return!!this.active()&&this.hrange().includes(r,e)}},{key:"getSort",value:function(r){var e=this.sort;return e&&e.ci===r?e:null}},{key:"getFilter",value:function(r){for(var e=this.filters,n=0;n<e.length;n+=1)if(e[n].ci===r)return e[n];return null}},{key:"filteredRows",value:function(r){var e=new Set,n=new Set;if(this.active())for(var a=this.range(),o=a.sri,s=a.eri,i=this.filters,c=o+1;c<=s;c+=1)for(var l=0;l<i.length;l+=1){var u=i[l],f=r(c,u.ci),h=f?f.text:"";if(!u.includes(h)){e.add(c);break}n.add(c)}return{rset:e,fset:n}}},{key:"items",value:function(r,e){var n={};if(this.active())for(var a=this.range(),o=a.sri,s=a.eri,i=o+1;i<=s;i+=1){var c=e(i,r);if(c===null||/^\s*$/.test(c.text))n[""]=(n[""]||0)+1;else{var l=c.text,u=(n[l]||0)+1;n[l]=u}}return n}},{key:"range",value:function(){return Hn.valueOf(this.ref)}},{key:"hrange",value:function(){var r=this.range();return r.eri=r.sri,r}},{key:"clear",value:function(){this.ref=null,this.filters=[],this.sort=null}},{key:"active",value:function(){return this.ref!==null}}]),t}(),p2=function(){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];At(this,t),this._=r}return Rt(t,[{key:"forEach",value:function(r){this._.forEach(r)}},{key:"deleteWithin",value:function(r){this._=this._.filter(function(e){return!e.within(r)})}},{key:"getFirstIncludes",value:function(r,e){for(var n=0;n<this._.length;n+=1){var a=this._[n];if(a.includes(r,e))return a}return null}},{key:"filterIntersects",value:function(r){return new t(this._.filter(function(e){return e.intersects(r)}))}},{key:"intersects",value:function(r){for(var e=0;e<this._.length;e+=1)if(this._[e].intersects(r))return!0;return!1}},{key:"union",value:function(r){var e=r;return this._.forEach(function(n){n.intersects(e)&&(e=n.union(e))}),e}},{key:"add",value:function(r){this.deleteWithin(r),this._.push(r)}},{key:"shift",value:function(r,e,n,a){this._.forEach(function(o){var s=o.sri,i=o.sci,c=o.eri,l=o.eci,u=o;r==="row"?s>=e?(u.sri+=n,u.eri+=n):s<e&&e<=c&&(u.eri+=n,a(s,i,n,0)):r==="column"&&(i>=e?(u.sci+=n,u.eci+=n):i<e&&e<=l&&(u.eci+=n,a(s,i,0,n)))})}},{key:"move",value:function(r,e,n){this._.forEach(function(a){var o=a;o.within(r)&&(o.eri+=e,o.sri+=e,o.sci+=n,o.eci+=n)})}},{key:"setData",value:function(r){return this._=r.map(function(e){return Hn.valueOf(e)}),this}},{key:"getData",value:function(){return this._.map(function(r){return r.toString()})}}]),t}(),m2=function t(){for(var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length,n=new Array(e>1?e-1:0),a=1;a<e;a++)n[a-1]=arguments[a];return n.forEach(function(o){Object.keys(o).forEach(function(s){var i=o[s];typeof i=="string"||typeof i=="number"||typeof i=="boolean"?r[s]=i:typeof i!="function"&&!Array.isArray(i)&&i instanceof Object?(r[s]=r[s]||{},t(r[s],i)):r[s]=i})}),r};function zu(t){for(var r="".concat(t),e=0,n=!1,a=0;a<r.length;a+=1)n===!0&&(e+=1),r.charAt(a)==="."&&(n=!0);return e}function Es(t,r,e){if(Number.isNaN(r)||Number.isNaN(e))return r+t+e;var n=zu(r),a=zu(e),o=Number(r),s=Number(e),i=0;if(t==="-")i=o-s;else if(t==="+")i=o+s;else if(t==="*")i=o*s;else if(t==="/")return zu(i=o/s)>5?i.toFixed(2):i;return i.toFixed(Math.max(n,a))}const hi={cloneDeep:function(t){return JSON.parse(JSON.stringify(t))},merge:function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];return m2.apply(void 0,[{}].concat(r))},equals:function t(r,e){var n=Object.keys(r);if(n.length!==Object.keys(e).length)return!1;for(var a=0;a<n.length;a+=1){var o=n[a],s=r[o],i=e[o];if(i===void 0)return!1;if(typeof s=="string"||typeof s=="number"||typeof s=="boolean"){if(s!==i)return!1}else if(Array.isArray(s)){if(s.length!==i.length)return!1;for(var c=0;c<s.length;c+=1)if(!t(s[c],i[c]))return!1}else if(typeof s!="function"&&!Array.isArray(s)&&s instanceof Object&&!t(s,i))return!1}return!0},arrayEquals:function(t,r){if(t.length!==r.length)return!1;for(var e=0;e<t.length;e+=1)if(t[e]!==r[e])return!1;return!0},sum:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(a){return a},e=0,n=0;return Object.keys(t).forEach(function(a){e+=r(t[a],a),n+=1}),[e,n]},rangeEach:function(t,r,e){for(var n=t;n<r;n+=1)e(n)},rangeSum:function(t,r,e){for(var n=0,a=t;a<r;a+=1)n+=e(a);return n},rangeReduceIf:function(t,r,e,n,a,o){for(var s=e,i=n,c=t;c<r&&!(s>a);c+=1)s+=i=o(c);return[c,s-i,i]},deleteProperty:function(t,r){var e=t["".concat(r)];return delete t["".concat(r)],e},numberCalc:Es};var v2=function(){function t(r){var e=r.len,n=r.height;At(this,t),this._={},this.len=e,this.height=n}return Rt(t,[{key:"getHeight",value:function(r){if(this.isHide(r))return 0;var e=this.get(r);return e&&e.height?e.height:this.height}},{key:"setHeight",value:function(r,e){this.getOrNew(r).height=e}},{key:"unhide",value:function(r){for(var e=r;e>0&&(e-=1,this.isHide(e));)this.setHide(e,!1)}},{key:"isHide",value:function(r){var e=this.get(r);return e&&e.hide}},{key:"setHide",value:function(r,e){var n=this.getOrNew(r);e===!0?n.hide=!0:delete n.hide}},{key:"setStyle",value:function(r,e){this.getOrNew(r).style=e}},{key:"sumHeight",value:function(r,e,n){var a=this;return hi.rangeSum(r,e,function(o){return n&&n.has(o)?0:a.getHeight(o)})}},{key:"totalHeight",value:function(){return this.sumHeight(0,this.len)}},{key:"get",value:function(r){return this._[r]}},{key:"getOrNew",value:function(r){return this._[r]=this._[r]||{cells:{}},this._[r]}},{key:"getCell",value:function(r,e){var n=this.get(r);return n!==void 0&&n.cells!==void 0&&n.cells[e]!==void 0?n.cells[e]:null}},{key:"getCellMerge",value:function(r,e){var n=this.getCell(r,e);return n&&n.merge?n.merge:[0,0]}},{key:"getCellOrNew",value:function(r,e){var n=this.getOrNew(r);return n.cells[e]=n.cells[e]||{},n.cells[e]}},{key:"setCell",value:function(r,e,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"all",o=this.getOrNew(r);a==="all"?o.cells[e]=n:a==="text"?(o.cells[e]=o.cells[e]||{},o.cells[e].text=n.text):a==="format"&&(o.cells[e]=o.cells[e]||{},o.cells[e].style=n.style,n.merge&&(o.cells[e].merge=n.merge))}},{key:"setCellText",value:function(r,e,n){var a=this.getCellOrNew(r,e);a.editable!==!1&&(a.text=n)}},{key:"copyPaste",value:function(r,e,n){var a=this,o=arguments.length>3&&arguments[3]!==void 0&&arguments[3],s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},i=r.sri,c=r.sci,l=r.eri,u=r.eci,f=e.sri,h=e.sci,d=e.eri,p=e.eci,m=$e(r.size(),2),v=m[0],b=m[1],g=$e(e.size(),2),y=g[0],w=g[1],x=!0,C=0;(d<i||p<c)&&(x=!1,C=d<i?y:w);for(var O=i;O<=l;O+=1)if(this._[O]){for(var D=c;D<=u;D+=1)if(this._[O].cells&&this._[O].cells[D])for(var j=f;j<=d;j+=v)for(var U=function(){var V=j+(O-i),A=L+(D-c),N=hi.cloneDeep(a._[O].cells[D]);if(o&&N&&N.text&&N.text.length>0){var k=N.text,S=L-h+(j-f)+2;if(x||(S-=C+1),k[0]==="=")N.text=k.replace(/[a-zA-Z]{1,3}\d+/g,function(R){var F=0,I=0;return i===f?F=S-1:I=S-1,/^\d+$/.test(R)?R:Ko(R,F,I)});else if(v<=1&&b>1&&(f>l||d<i)||b<=1&&v>1&&(h>u||p<c)||v<=1&&b<=1){var E=/[\\.\d]+$/.exec(k);if(E!==null){var T=Number(E[0])+S-1;N.text=k.substring(0,E.index)+T}}}a.setCell(V,A,N,n),s(V,A,N)},L=h;L<=p;L+=b)U()}}},{key:"cutPaste",value:function(r,e){var n=this,a={};this.each(function(o){n.eachCells(o,function(s){var i=parseInt(o,10),c=parseInt(s,10);r.includes(o,s)&&(i=e.sri+(i-r.sri),c=e.sci+(c-r.sci)),a[i]=a[i]||{cells:{}},a[i].cells[c]=n._[o].cells[s]})}),this._=a}},{key:"paste",value:function(r,e){var n=this;if(!(r.length<=0)){var a=e.sri,o=e.sci;r.forEach(function(s,i){var c=a+i;s.forEach(function(l,u){var f=o+u;n.setCellText(c,f,l)})})}}},{key:"insert",value:function(r){var e=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,a={};this.each(function(o,s){var i=parseInt(o,10);i>=r&&(i+=n,e.eachCells(o,function(c,l){l.text&&l.text[0]==="="&&(l.text=l.text.replace(/[a-zA-Z]{1,3}\d+/g,function(u){return Ko(u,0,n,function(f,h){return h>=r})}))})),a[i]=s}),this._=a,this.len+=n}},{key:"delete",value:function(r,e){var n=this,a=e-r+1,o={};this.each(function(s,i){var c=parseInt(s,10);c<r?o[c]=i:s>e&&(o[c-a]=i,n.eachCells(s,function(l,u){u.text&&u.text[0]==="="&&(u.text=u.text.replace(/[a-zA-Z]{1,3}\d+/g,function(f){return Ko(f,0,-a,function(h,d){return d>e})}))}))}),this._=o,this.len-=a}},{key:"insertColumn",value:function(r){var e=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.each(function(a,o){var s={};e.eachCells(a,function(i,c){var l=parseInt(i,10);l>=r&&(l+=n,c.text&&c.text[0]==="="&&(c.text=c.text.replace(/[a-zA-Z]{1,3}\d+/g,function(u){return Ko(u,n,0,function(f){return f>=r})}))),s[l]=c}),o.cells=s})}},{key:"deleteColumn",value:function(r,e){var n=this,a=e-r+1;this.each(function(o,s){var i={};n.eachCells(o,function(c,l){var u=parseInt(c,10);u<r?i[u]=l:u>e&&(i[u-a]=l,l.text&&l.text[0]==="="&&(l.text=l.text.replace(/[a-zA-Z]{1,3}\d+/g,function(f){return Ko(f,-a,0,function(h){return h>e})})))}),s.cells=i})}},{key:"deleteCells",value:function(r){var e=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";r.each(function(a,o){e.deleteCell(a,o,n)})}},{key:"deleteCell",value:function(r,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"all",a=this.get(r);if(a!==null){var o=this.getCell(r,e);o!==null&&o.editable!==!1&&(n==="all"?delete a.cells[e]:n==="text"?(o.text&&delete o.text,o.value&&delete o.value):n==="format"?(o.style!==void 0&&delete o.style,o.merge&&delete o.merge):n==="merge"&&o.merge&&delete o.merge)}}},{key:"maxCell",value:function(){var r=Object.keys(this._),e=r[r.length-1],n=this._[e];if(n){var a=n.cells,o=Object.keys(a),s=o[o.length-1];return[parseInt(e,10),parseInt(s,10)]}return[0,0]}},{key:"each",value:function(r){Object.entries(this._).forEach(function(e){var n=$e(e,2),a=n[0],o=n[1];r(a,o)})}},{key:"eachCells",value:function(r,e){this._[r]&&this._[r].cells&&Object.entries(this._[r].cells).forEach(function(n){var a=$e(n,2),o=a[0],s=a[1];e(o,s)})}},{key:"setData",value:function(r){r.len&&(this.len=r.len,delete r.len),this._=r}},{key:"getData",value:function(){var r=this.len;return Object.assign({len:r},this._)}}]),t}(),g2=function(){function t(r){var e=r.len,n=r.width,a=r.indexWidth,o=r.minWidth;At(this,t),this._={},this.len=e,this.width=n,this.indexWidth=a,this.minWidth=o}return Rt(t,[{key:"setData",value:function(r){r.len&&(this.len=r.len,delete r.len),this._=r}},{key:"getData",value:function(){var r=this.len;return Object.assign({len:r},this._)}},{key:"getWidth",value:function(r){if(this.isHide(r))return 0;var e=this._[r];return e&&e.width?e.width:this.width}},{key:"getOrNew",value:function(r){return this._[r]=this._[r]||{},this._[r]}},{key:"setWidth",value:function(r,e){this.getOrNew(r).width=e}},{key:"unhide",value:function(r){for(var e=r;e>0&&(e-=1,this.isHide(e));)this.setHide(e,!1)}},{key:"isHide",value:function(r){var e=this._[r];return e&&e.hide}},{key:"setHide",value:function(r,e){var n=this.getOrNew(r);e===!0?n.hide=!0:delete n.hide}},{key:"setStyle",value:function(r,e){this.getOrNew(r).style=e}},{key:"sumWidth",value:function(r,e){var n=this;return hi.rangeSum(r,e,function(a){return n.getWidth(a)})}},{key:"totalWidth",value:function(){return this.sumWidth(0,this.len)}}]),t}();function b2(t,r){var e=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(c,l){if(c){if(typeof c=="string")return Ld(c,l);var u=Object.prototype.toString.call(c).slice(8,-1);if(u==="Object"&&c.constructor&&(u=c.constructor.name),u==="Map"||u==="Set")return Array.from(c);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return Ld(c,l)}}(t))||r&&t&&typeof t.length=="number"){e&&(t=e);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,s=!0,i=!1;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return s=c.done,c},e:function(c){i=!0,o=c},f:function(){try{s||e.return==null||e.return()}finally{if(i)throw o}}}}function Ld(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var Uu=["en"],Bd={en:{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"}}}};function zd(t,r){if(r){var e,n=b2(Uu);try{for(n.s();!(e=n.n()).done;){var a=e.value;if(!r[a])break;for(var o=r[a],s=t.match(/(?:\\.|[^.])+/g),i=0;i<s.length;i+=1){var c=o[s[i]];if(!c)break;if(i===s.length-1)return c;o=c}}}catch(l){n.e(l)}finally{n.f()}}}function un(t){var r=zd(t,Bd);return!r&&window&&window.x_spreadsheet&&window.x_spreadsheet.$messages&&(r=zd(t,window.x_spreadsheet.$messages)),r||""}function _r(t){return function(){return un(t)}}function Ud(t,r){arguments.length>2&&arguments[2]!==void 0&&arguments[2]?Uu=[t]:Uu.unshift(t),r&&(Bd[t]=r)}var Hd={phone:/^[1-9]\d{10}$/,email:/w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*/};function Qi(t,r){var e="";if(!t){for(var n=arguments.length,a=new Array(n>2?n-2:0),o=2;o<n;o++)a[o-2]=arguments[o];e=un.apply(void 0,["validation.".concat(r)].concat(a))}return[t,e]}var Wd=function(){function t(r,e,n,a){At(this,t),this.required=e,this.value=n,this.type=r,this.operator=a,this.message=""}return Rt(t,[{key:"parseValue",value:function(r){var e=this.type;return e==="date"?new Date(r):e==="number"?Number(r):r}},{key:"equals",value:function(r){var e=this.type===r.type&&this.required===r.required&&this.operator===r.operator;return e&&(e=Array.isArray(this.value)?hi.arrayEquals(this.value,r.value):this.value===r.value),e}},{key:"values",value:function(){return this.value.split(",")}},{key:"validate",value:function(r){var e=this.required,n=this.operator,a=this.value,o=this.type;if(e&&/^\s*$/.test(r))return Qi(!1,"required");if(/^\s*$/.test(r))return[!0];if(Hd[o]&&!Hd[o].test(r))return Qi(!1,"notMatch");if(o==="list")return Qi(this.values().includes(r),"notIn");if(n){var s=this.parseValue(r);if(n==="be"){var i=$e(a,2),c=i[0],l=i[1];return Qi(s>=this.parseValue(c)&&s<=this.parseValue(l),"between",c,l)}if(n==="nbe"){var u=$e(a,2),f=u[0],h=u[1];return Qi(s<this.parseValue(f)||s>this.parseValue(h),"notBetween",f,h)}if(n==="eq")return Qi(s===this.parseValue(a),"equal",a);if(n==="neq")return Qi(s!==this.parseValue(a),"notEqual",a);if(n==="lt")return Qi(s<this.parseValue(a),"lessThan",a);if(n==="lte")return Qi(s<=this.parseValue(a),"lessThanEqual",a);if(n==="gt")return Qi(s>this.parseValue(a),"greaterThan",a);if(n==="gte")return Qi(s>=this.parseValue(a),"greaterThanEqual",a)}return[!0]}}]),t}(),Vd=function(){function t(r,e,n){At(this,t),this.refs=e,this.mode=r,this.validator=n}return Rt(t,[{key:"includes",value:function(r,e){for(var n=this.refs,a=0;a<n.length;a+=1)if(Hn.valueOf(n[a]).includes(r,e))return!0;return!1}},{key:"addRef",value:function(r){this.remove(Hn.valueOf(r)),this.refs.push(r)}},{key:"remove",value:function(r){var e=[];this.refs.forEach(function(n){var a=Hn.valueOf(n);a.intersects(r)?a.difference(r).forEach(function(o){return e.push(o.toString())}):e.push(n)}),this.refs=e}},{key:"getData",value:function(){var r=this.refs,e=this.mode,n=this.validator;return{refs:r,mode:e,type:n.type,required:n.required,operator:n.operator,value:n.value}}}],[{key:"valueOf",value:function(r){var e=r.refs,n=r.mode,a=r.type,o=r.required,s=r.operator,i=r.value;return new t(n,e,new Wd(a,o,i,s))}}]),t}(),y2=function(){function t(){At(this,t),this._=[],this.errors=new Map}return Rt(t,[{key:"getError",value:function(r,e){return this.errors.get("".concat(r,"_").concat(e))}},{key:"validate",value:function(r,e,n){var a=this.get(r,e),o="".concat(r,"_").concat(e),s=this.errors;if(a!==null){var i=$e(a.validator.validate(n),2),c=i[0],l=i[1];c?s.delete(o):s.set(o,l)}else s.delete(o);return!0}},{key:"add",value:function(r,e,n){var a=n.type,o=n.required,s=n.value,i=n.operator,c=new Wd(a,o,s,i),l=this.getByValidator(c);l!==null?l.addRef(e):this._.push(new Vd(r,[e],c))}},{key:"getByValidator",value:function(r){for(var e=0;e<this._.length;e+=1){var n=this._[e];if(n.validator.equals(r))return n}return null}},{key:"get",value:function(r,e){for(var n=0;n<this._.length;n+=1){var a=this._[n];if(a.includes(r,e))return a}return null}},{key:"remove",value:function(r){this.each(function(e){e.remove(r)})}},{key:"each",value:function(r){this._.forEach(function(e){return r(e)})}},{key:"getData",value:function(){return this._.filter(function(r){return r.refs.length>0}).map(function(r){return r.getData()})}},{key:"setData",value:function(r){this._=r.map(function(e){return Vd.valueOf(e)})}}]),t}(),w2={mode:"edit",view:{height:function(){return document.documentElement.clientHeight},width:function(){return document.documentElement.clientWidth}},showGrid:!0,showToolbar:!0,showContextmenu:!0,showBottomBar:!0,row:{len:100,height:25},col:{len:26,width:100,indexWidth:60,minWidth:60},style:{bgcolor:"#ffffff",align:"left",valign:"middle",textwrap:!1,strike:!1,underline:!1,color:"#0a0a0a",font:{name:"Arial",size:10,bold:!1,italic:!1},format:"normal"}},$d=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)};function qd(t,r){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},n=this.merges,a=r.clone(),o=$e(t.size(),2),s=o[0],i=o[1],c=$e(r.size(),2),l=c[0],u=c[1];return s>l&&(a.eri=r.sri+s-1),i>u&&(a.eci=r.sci+i-1),!n.intersects(a)||(e(un("error.pasteForMergedCell")),!1)}function Gd(t,r,e){var n=arguments.length>3&&arguments[3]!==void 0&&arguments[3],a=this.rows,o=this.merges;e!=="all"&&e!=="format"||(a.deleteCells(r,e),o.deleteWithin(r)),a.copyPaste(t,r,e,n,function(s,i,c){if(c&&c.merge){var l=$e(c.merge,2),u=l[0],f=l[1];if(u<=0&&f<=0)return;o.add(new Hn(s,i,s+u,i+f))}})}function _2(t,r){var e=this.clipboard,n=this.rows,a=this.merges;n.cutPaste(t,r),a.move(t,r.sri-t.sri,r.sci-t.sci),e.clear()}function oo(t,r,e){var n=this.styles,a=this.rows.getCellOrNew(t,r),o={};a.style!==void 0&&(o=hi.cloneDeep(n[a.style])),o=hi.merge(o,{border:e}),a.style=this.addStyle(o)}function k2(t){var r=this,e=t.mode,n=t.style,a=t.color,o=this.styles,s=this.selector,i=this.rows,c=s.range,l=c.sri,u=c.sci,f=c.eri,h=c.eci,d=!this.isSignleSelected();if(d||e!=="inside"&&e!=="horizontal"&&e!=="vertical")if(e!=="outside"||d){if(e==="none")s.range.each(function(E,T){var R=i.getCell(E,T);if(R&&R.style!==void 0){var F=hi.cloneDeep(o[R.style]);delete F.border,R.style=r.addStyle(F)}});else if(e==="all"||e==="inside"||e==="outside"||e==="horizontal"||e==="vertical")for(var p=[],m=l;m<=f;m+=1)for(var v=u;v<=h;v+=1){for(var b=[],g=0;g<p.length;g+=1){var y=$e(p[g],4),w=y[0],x=y[1],C=y[2],O=y[3];if(m===w+C+1&&b.push(g),w<=m&&m<=w+C&&v===x){v+=O+1;break}}if(b.forEach(function(E){return p.splice(E,1)}),v>h)break;var D=i.getCell(m,v),j=0,U=0;if(D&&D.merge){var L=$e(D.merge,2);j=L[0],U=L[1],p.push([m,v,j,U])}var V=j>0&&m+j===f,A=U>0&&v+U===h,N={};e==="all"?N={bottom:[n,a],top:[n,a],left:[n,a],right:[n,a]}:e==="inside"?(!A&&v<h&&(N.right=[n,a]),!V&&m<f&&(N.bottom=[n,a])):e==="horizontal"?!V&&m<f&&(N.bottom=[n,a]):e==="vertical"?!A&&v<h&&(N.right=[n,a]):e==="outside"&&d&&(l===m&&(N.top=[n,a]),(V||f===m)&&(N.bottom=[n,a]),u===v&&(N.left=[n,a]),(A||h===v)&&(N.right=[n,a])),Object.keys(N).length>0&&oo.call(this,m,v,N),v+=U}else if(e==="top"||e==="bottom")for(var k=u;k<=h;k+=1)e==="top"&&(oo.call(this,l,k,{top:[n,a]}),k+=i.getCellMerge(l,k)[1]),e==="bottom"&&(oo.call(this,f,k,{bottom:[n,a]}),k+=i.getCellMerge(f,k)[1]);else if(e==="left"||e==="right")for(var S=l;S<=f;S+=1)e==="left"&&(oo.call(this,S,u,{left:[n,a]}),S+=i.getCellMerge(S,u)[0]),e==="right"&&(oo.call(this,S,h,{right:[n,a]}),S+=i.getCellMerge(S,h)[0])}else oo.call(this,l,u,{top:[n,a],bottom:[n,a],left:[n,a],right:[n,a]})}function x2(t,r){var e=this.rows,n=this.freezeTotalHeight(),a=e.height;n+e.height<t&&(a-=r);for(var o=this.exceptRowSet,s=0,i=a,c=e.height;s<e.len&&!(i>t);s+=1)o.has(s)||(i+=c=e.getHeight(s));return(i-=c)<=0?{ri:-1,top:0,height:c}:{ri:s-1,top:i,height:c}}function S2(t,r){var e=this.cols,n=this.freezeTotalWidth(),a=e.indexWidth;n+e.indexWidth<t&&(a-=r);var o=$e(hi.rangeReduceIf(0,e.len,a,e.indexWidth,t,function(l){return e.getWidth(l)}),3),s=o[0],i=o[1],c=o[2];return i<=0?{ci:-1,left:0,width:e.indexWidth}:{ci:s-1,left:i,width:c}}var T2=function(){function t(r,e){At(this,t),this.settings=hi.merge(w2,e||{}),this.name=r||"sheet",this.freeze=[0,0],this.styles=[],this.merges=new p2,this.rows=new v2(this.settings.row),this.cols=new g2(this.settings.col),this.validations=new y2,this.hyperlinks={},this.comments={},this.selector=new l2,this.scroll=new u2,this.history=new f2,this.clipboard=new h2,this.autoFilter=new d2,this.change=function(){},this.exceptRowSet=new Set,this.sortedRowMap=new Map,this.unsortedRowMap=new Map}return Rt(t,[{key:"addValidation",value:function(r,e,n){var a=this;this.changeData(function(){a.validations.add(r,e,n)})}},{key:"removeValidation",value:function(){var r=this,e=this.selector.range;this.changeData(function(){r.validations.remove(e)})}},{key:"getSelectedValidator",value:function(){var r=this.selector,e=r.ri,n=r.ci,a=this.validations.get(e,n);return a?a.validator:null}},{key:"getSelectedValidation",value:function(){var r=this.selector,e=r.ri,n=r.ci,a=r.range,o=this.validations.get(e,n),s={ref:a.toString()};return o!==null&&(s.mode=o.mode,s.validator=o.validator),s}},{key:"canUndo",value:function(){return this.history.canUndo()}},{key:"canRedo",value:function(){return this.history.canRedo()}},{key:"undo",value:function(){var r=this;this.history.undo(this.getData(),function(e){r.setData(e)})}},{key:"redo",value:function(){var r=this;this.history.redo(this.getData(),function(e){r.setData(e)})}},{key:"copy",value:function(){this.clipboard.copy(this.selector.range)}},{key:"copyToSystemClipboard",value:function(){if(navigator.clipboard!==void 0){for(var r="",e=this.rows.getData(),n=this.selector.range.sri;n<=this.selector.range.eri;n+=1){if($d(e,n)){for(var a=this.selector.range.sci;a<=this.selector.range.eci;a+=1)if(a>this.selector.range.sci&&(r+=" "),$d(e[n].cells,a)){var o=String(e[n].cells[a].text);o.indexOf(`
|
||
`)===-1&&o.indexOf(" ")===-1&&o.indexOf('"')===-1?r+=o:r+='"'.concat(o,'"')}}else for(var s=this.selector.range.sci;s<=this.selector.range.eci;s+=1)r+=" ";r+=`
|
||
`}navigator.clipboard.writeText(r).then(function(){},function(i){console.log("text copy to the system clipboard error ",r,i)})}}},{key:"cut",value:function(){this.clipboard.cut(this.selector.range)}},{key:"paste",value:function(){var r=this,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"all",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){},a=this.clipboard,o=this.selector;return!a.isClear()&&!!qd.call(this,a.range,o.range,n)&&(this.changeData(function(){a.isCopy()?Gd.call(r,a.range,o.range,e):a.isCut()&&_2.call(r,a.range,o.range)}),!0)}},{key:"pasteFromText",value:function(r){var e=r.split(`\r
|
||
`).map(function(o){return o.replace(/"/g,"").split(" ")});e.length>0&&(e.length-=1);var n=this.rows,a=this.selector;this.changeData(function(){n.paste(e,a.range)})}},{key:"autofill",value:function(r,e){var n=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},o=this.selector.range;return!!qd.call(this,o,r,a)&&(this.changeData(function(){Gd.call(n,o,r,e,!0)}),!0)}},{key:"clearClipboard",value:function(){this.clipboard.clear()}},{key:"calSelectedRangeByEnd",value:function(r,e){var n=this.selector,a=this.rows,o=this.cols,s=this.merges,i=n.range,c=i.sri,l=i.sci,u=i.eri,f=i.eci,h=n.ri,d=n.ci,p=r,m=e;return r<0&&(p=a.len-1),e<0&&(m=o.len-1),p>h?(c=h,u=p):(c=p,u=h),m>d?(l=d,f=m):(l=m,f=d),n.range=s.union(new Hn(c,l,u,f)),n.range=s.union(n.range),n.range}},{key:"calSelectedRangeByStart",value:function(r,e){var n=this.selector,a=this.rows,o=this.cols,s=this.merges.getFirstIncludes(r,e);return s===null&&(s=new Hn(r,e,r,e),r===-1&&(s.sri=0,s.eri=a.len-1),e===-1&&(s.sci=0,s.eci=o.len-1)),n.range=s,s}},{key:"setSelectedCellAttr",value:function(r,e){var n=this;this.changeData(function(){var a=n.selector,o=n.styles,s=n.rows;if(r==="merge")e?n.merge():n.unmerge();else if(r==="border")k2.call(n,e);else if(r==="formula"){var i=a.ri,c=a.ci,l=a.range;if(a.multiple()){var u=$e(a.size(),2),f=u[0],h=u[1],d=l.sri,p=l.sci,m=l.eri,v=l.eci;if(f>1)for(var b=p;b<=v;b+=1)s.getCellOrNew(m+1,b).text="=".concat(e,"(").concat(Ma(b,d),":").concat(Ma(b,m),")");else h>1&&(s.getCellOrNew(i,v+1).text="=".concat(e,"(").concat(Ma(p,i),":").concat(Ma(v,i),")"))}else s.getCellOrNew(i,c).text="=".concat(e,"()")}else a.range.each(function(g,y){var w=s.getCellOrNew(g,y),x={};if(w.style!==void 0&&(x=hi.cloneDeep(o[w.style])),r==="format")x.format=e,w.style=n.addStyle(x);else if(r==="font-bold"||r==="font-italic"||r==="font-name"||r==="font-size"){var C={};C[r.split("-")[1]]=e,x.font=Object.assign(x.font||{},C),w.style=n.addStyle(x)}else r==="strike"||r==="textwrap"||r==="underline"||r==="align"||r==="valign"||r==="color"||r==="bgcolor"?(x[r]=e,w.style=n.addStyle(x)):w[r]=e})})}},{key:"setSelectedCellText",value:function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"input",n=this.autoFilter,a=this.selector,o=this.rows,s=a.ri,i=a.ci,c=s;this.unsortedRowMap.has(s)&&(c=this.unsortedRowMap.get(s));var l=o.getCell(c,i),u=l?l.text:"";if(this.setCellText(c,i,r,e),n.active()){var f=n.getFilter(i);if(f){var h=f.value.findIndex(function(d){return d===u});h>=0&&f.value.splice(h,1,r)}}}},{key:"getSelectedCell",value:function(){var r=this.selector,e=r.ri,n=r.ci,a=e;return this.unsortedRowMap.has(e)&&(a=this.unsortedRowMap.get(e)),this.rows.getCell(a,n)}},{key:"xyInSelectedRect",value:function(r,e){var n=this.getSelectedRect(),a=n.left,o=n.top,s=n.width,i=n.height,c=r-this.cols.indexWidth,l=e-this.rows.height;return c>a&&c<a+s&&l>o&&l<o+i}},{key:"getSelectedRect",value:function(){return this.getRect(this.selector.range)}},{key:"getClipboardRect",value:function(){var r=this.clipboard;return r.isClear()?{left:-100,top:-100}:this.getRect(r.range)}},{key:"getRect",value:function(r){var e=this.scroll,n=this.rows,a=this.cols,o=this.exceptRowSet,s=r.sri,i=r.sci,c=r.eri,l=r.eci;if(s<0&&i<0)return{left:0,l:0,top:0,t:0,scroll:e};var u=a.sumWidth(0,i),f=n.sumHeight(0,s,o),h=n.sumHeight(s,c+1,o),d=a.sumWidth(i,l+1),p=u-e.x,m=f-e.y,v=this.freezeTotalHeight(),b=this.freezeTotalWidth();return b>0&&b>u&&(p=u),v>0&&v>f&&(m=f),{l:u,t:f,left:p,top:m,height:h,width:d,scroll:e}}},{key:"getCellRectByXY",value:function(r,e){var n=this.scroll,a=this.merges,o=this.rows,s=this.cols,i=x2.call(this,e,n.y),c=i.ri,l=i.top,u=i.height,f=S2.call(this,r,n.x),h=f.ci,d=f.left,p=f.width;if(h===-1&&(p=s.totalWidth()),c===-1&&(u=o.totalHeight()),c>=0||h>=0){var m=a.getFirstIncludes(c,h);if(m){c=m.sri,h=m.sci;var v=this.cellRect(c,h);d=v.left,l=v.top,p=v.width,u=v.height}}return{ri:c,ci:h,left:d,top:l,width:p,height:u}}},{key:"isSignleSelected",value:function(){var r=this.selector.range,e=r.sri,n=r.sci,a=r.eri,o=r.eci,s=this.getCell(e,n);if(s&&s.merge){var i=$e(s.merge,2),c=i[0],l=i[1];if(e+c===a&&n+l===o)return!0}return!this.selector.multiple()}},{key:"canUnmerge",value:function(){var r=this.selector.range,e=r.sri,n=r.sci,a=r.eri,o=r.eci,s=this.getCell(e,n);if(s&&s.merge){var i=$e(s.merge,2),c=i[0],l=i[1];if(e+c===a&&n+l===o)return!0}return!1}},{key:"merge",value:function(){var r=this,e=this.selector,n=this.rows;if(!this.isSignleSelected()){var a=$e(e.size(),2),o=a[0],s=a[1];if(o>1||s>1){var i=e.range,c=i.sri,l=i.sci;this.changeData(function(){var u=n.getCellOrNew(c,l);u.merge=[o-1,s-1],r.merges.add(e.range),r.rows.deleteCells(e.range),r.rows.setCell(c,l,u)})}}}},{key:"unmerge",value:function(){var r=this,e=this.selector;if(this.isSignleSelected()){var n=e.range,a=n.sri,o=n.sci;this.changeData(function(){r.rows.deleteCell(a,o,"merge"),r.merges.deleteWithin(e.range)})}}},{key:"canAutofilter",value:function(){return!this.autoFilter.active()}},{key:"autofilter",value:function(){var r=this,e=this.autoFilter,n=this.selector;this.changeData(function(){e.active()?(e.clear(),r.exceptRowSet=new Set,r.sortedRowMap=new Map,r.unsortedRowMap=new Map):e.ref=n.range.toString()})}},{key:"setAutoFilter",value:function(r,e,n,a){var o=this.autoFilter;o.addFilter(r,n,a),o.setSort(r,e),this.resetAutoFilter()}},{key:"resetAutoFilter",value:function(){var r=this,e=this.autoFilter,n=this.rows;if(e.active()){var a=e.sort,o=e.filteredRows(function(u,f){return n.getCell(u,f)}),s=o.rset,i=o.fset,c=Array.from(i),l=Array.from(i);a&&c.sort(function(u,f){return a.order==="asc"?u-f:a.order==="desc"?f-u:0}),this.exceptRowSet=s,this.sortedRowMap=new Map,this.unsortedRowMap=new Map,c.forEach(function(u,f){r.sortedRowMap.set(l[f],u),r.unsortedRowMap.set(u,l[f])})}}},{key:"deleteCell",value:function(){var r=this,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"all",n=this.selector;this.changeData(function(){r.rows.deleteCells(n.range,e),e!=="all"&&e!=="format"||r.merges.deleteWithin(n.range)})}},{key:"insert",value:function(r){var e=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.changeData(function(){var a=e.selector.range,o=a.sri,s=a.sci,i=e.rows,c=e.merges,l=e.cols,u=o;r==="row"?i.insert(o,n):r==="column"&&(i.insertColumn(s,n),u=s,l.len+=1),c.shift(r,u,n,function(f,h,d,p){var m=i.getCell(f,h);m.merge[0]+=d,m.merge[1]+=p})})}},{key:"delete",value:function(r){var e=this;this.changeData(function(){var n=e.rows,a=e.merges,o=e.selector,s=e.cols,i=o.range,c=o.range,l=c.sri,u=c.sci,f=c.eri,h=c.eci,d=$e(o.range.size(),2),p=d[0],m=d[1],v=l,b=p;r==="row"?n.delete(l,f):r==="column"&&(n.deleteColumn(u,h),v=i.sci,b=m,s.len-=1),a.shift(r,v,-b,function(g,y,w,x){var C=n.getCell(g,y);C.merge[0]+=w,C.merge[1]+=x,C.merge[0]===0&&C.merge[1]===0&&delete C.merge})})}},{key:"scrollx",value:function(r,e){var n=this.scroll,a=this.freeze,o=this.cols,s=$e(a,2)[1],i=$e(hi.rangeReduceIf(s,o.len,0,0,r,function(h){return o.getWidth(h)}),3),c=i[0],l=i[1],u=i[2],f=l;r>0&&(f+=u),n.x!==f&&(n.ci=r>0?c:0,n.x=f,e())}},{key:"scrolly",value:function(r,e){var n=this.scroll,a=this.freeze,o=this.rows,s=$e(a,1)[0],i=$e(hi.rangeReduceIf(s,o.len,0,0,r,function(h){return o.getHeight(h)}),3),c=i[0],l=i[1],u=i[2],f=l;r>0&&(f+=u),n.y!==f&&(n.ri=r>0?c:0,n.y=f,e())}},{key:"cellRect",value:function(r,e){var n=this.rows,a=this.cols,o=a.sumWidth(0,e),s=n.sumHeight(0,r),i=n.getCell(r,e),c=a.getWidth(e),l=n.getHeight(r);if(i!==null&&i.merge){var u=$e(i.merge,2),f=u[0],h=u[1];if(f>0)for(var d=1;d<=f;d+=1)l+=n.getHeight(r+d);if(h>0)for(var p=1;p<=h;p+=1)c+=a.getWidth(e+p)}return{left:o,top:s,width:c,height:l,cell:i}}},{key:"getCell",value:function(r,e){return this.rows.getCell(r,e)}},{key:"getCellTextOrDefault",value:function(r,e){var n=this.getCell(r,e);return n&&n.text?n.text:""}},{key:"getCellStyle",value:function(r,e){var n=this.getCell(r,e);return n&&n.style!==void 0?this.styles[n.style]:null}},{key:"getCellStyleOrDefault",value:function(r,e){var n=this.styles,a=this.rows.getCell(r,e),o=a&&a.style!==void 0?n[a.style]:{};return hi.merge(this.defaultStyle(),o)}},{key:"getSelectedCellStyle",value:function(){var r=this.selector,e=r.ri,n=r.ci;return this.getCellStyleOrDefault(e,n)}},{key:"setCellText",value:function(r,e,n,a){var o=this.rows,s=this.history,i=this.validations;a==="finished"?(o.setCellText(r,e,""),s.add(this.getData()),o.setCellText(r,e,n)):(o.setCellText(r,e,n),this.change(this.getData())),i.validate(r,e,n)}},{key:"freezeIsActive",value:function(){var r=$e(this.freeze,2),e=r[0],n=r[1];return e>0||n>0}},{key:"setFreeze",value:function(r,e){var n=this;this.changeData(function(){n.freeze=[r,e]})}},{key:"freezeTotalWidth",value:function(){return this.cols.sumWidth(0,this.freeze[1])}},{key:"freezeTotalHeight",value:function(){return this.rows.sumHeight(0,this.freeze[0])}},{key:"setRowHeight",value:function(r,e){var n=this;this.changeData(function(){n.rows.setHeight(r,e)})}},{key:"setColWidth",value:function(r,e){var n=this;this.changeData(function(){n.cols.setWidth(r,e)})}},{key:"viewHeight",value:function(){var r=this.settings,e=r.view,n=r.showToolbar,a=r.showBottomBar,o=e.height();return a&&(o-=41),n&&(o-=41),o}},{key:"viewWidth",value:function(){return this.settings.view.width()}},{key:"freezeViewRange",value:function(){var r=$e(this.freeze,2),e=r[0],n=r[1];return new Hn(0,0,e-1,n-1,this.freezeTotalWidth(),this.freezeTotalHeight())}},{key:"contentRange",value:function(){var r=this.rows,e=this.cols,n=$e(r.maxCell(),2),a=n[0],o=n[1],s=r.sumHeight(0,a+1),i=e.sumWidth(0,o+1);return new Hn(0,0,a,o,i,s)}},{key:"exceptRowTotalHeight",value:function(r,e){var n=this.exceptRowSet,a=this.rows,o=Array.from(n),s=0;return o.forEach(function(i){if(i<r||i>e){var c=a.getHeight(i);s+=c}}),s}},{key:"viewRange",value:function(){var r=this.scroll,e=this.rows,n=this.cols,a=this.freeze,o=this.exceptRowSet,s=r.ri,i=r.ci;s<=0&&(s=$e(a,1)[0]),i<=0&&(i=$e(a,2)[1]);for(var c=0,l=0,u=[e.len,n.len],f=u[0],h=u[1],d=s;d<e.len&&(o.has(d)||(l+=e.getHeight(d),f=d),!(l>this.viewHeight()));d+=1);for(var p=i;p<n.len&&(h=p,!((c+=n.getWidth(p))>this.viewWidth()));p+=1);return new Hn(s,i,f,h,c,l)}},{key:"eachMergesInView",value:function(r,e){this.merges.filterIntersects(r).forEach(function(n){return e(n)})}},{key:"hideRowsOrCols",value:function(){var r=this.rows,e=this.cols,n=this.selector,a=$e(n.size(),2),o=a[0],s=a[1],i=n.range,c=i.sri,l=i.sci,u=i.eri,f=i.eci;if(o===r.len)for(var h=l;h<=f;h+=1)e.setHide(h,!0);else if(s===e.len)for(var d=c;d<=u;d+=1)r.setHide(d,!0)}},{key:"unhideRowsOrCols",value:function(r,e){this["".concat(r,"s")].unhide(e)}},{key:"rowEach",value:function(r,e,n){for(var a=0,o=this.rows,s=this.exceptRowSet,i=lr(s),c=0,l=0;l<i.length;l+=1)i[l]<r&&(c+=1);for(var u=r+c;u<=e+c;u+=1)if(s.has(u))c+=1;else{var f=o.getHeight(u);if(f>0&&(n(u,a,f),(a+=f)>this.viewHeight()))break}}},{key:"colEach",value:function(r,e,n){for(var a=0,o=this.cols,s=r;s<=e;s+=1){var i=o.getWidth(s);if(i>0&&(n(s,a,i),(a+=i)>this.viewWidth()))break}}},{key:"defaultStyle",value:function(){return this.settings.style}},{key:"addStyle",value:function(r){for(var e=this.styles,n=0;n<e.length;n+=1){var a=e[n];if(hi.equals(a,r))return n}return e.push(r),e.length-1}},{key:"changeData",value:function(r){this.history.add(this.getData()),r(),this.change(this.getData())}},{key:"setData",value:function(r){var e=this;return Object.keys(r).forEach(function(n){if(n==="merges"||n==="rows"||n==="cols"||n==="validations")e[n].setData(r[n]);else if(n==="freeze"){var a=$e(Ja(r[n]),2),o=a[0],s=a[1];e.freeze=[s,o]}else n==="autofilter"?e.autoFilter.setData(r[n]):r[n]!==void 0&&(e[n]=r[n])}),this}},{key:"getData",value:function(){var r=this.name,e=this.freeze,n=this.styles,a=this.merges,o=this.rows,s=this.cols,i=this.validations,c=this.autoFilter;return{name:r,freeze:Ma(e[1],e[0]),styles:n,merges:a.getData(),rows:o.getData(),cols:s.getData(),validations:i.getData(),autofilter:c.getData()}}}]),t}();function E2(t,r){var e=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(c,l){if(c){if(typeof c=="string")return Yd(c,l);var u=Object.prototype.toString.call(c).slice(8,-1);if(u==="Object"&&c.constructor&&(u=c.constructor.name),u==="Map"||u==="Set")return Array.from(c);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return Yd(c,l)}}(t))||r&&t&&typeof t.length=="number"){e&&(t=e);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,s=!0,i=!1;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return s=c.done,c},e:function(c){i=!0,o=c},f:function(){try{s||e.return==null||e.return()}finally{if(i)throw o}}}}function Yd(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function di(t,r,e){t.addEventListener(r,e)}function el(t,r,e){t.removeEventListener(r,e)}function co(t){t.xclickoutside&&(el(window.document.body,"click",t.xclickoutside),delete t.xclickoutside)}function Xo(t,r){t.xclickoutside=function(e){e.detail===2||t.contains(e.target)||(r?r(t):(t.hide(),co(t)))},di(window.document.body,"click",t.xclickoutside)}function Kd(t,r,e){di(t,"mousemove",r),t.xEvtUp=function(n){el(t,"mousemove",r),el(t,"mouseup",t.xEvtUp),e(n)},di(t,"mouseup",t.xEvtUp)}function Xd(t,r,e,n){Math.abs(t)>Math.abs(r)?n(t>0?"right":"left",t,e):n(r>0?"down":"up",r,e)}var me="x-spreadsheet",Zd=function(){function t(){var r=this,e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],n=arguments.length>1?arguments[1]:void 0;At(this,t),this.moving=!1,this.vertical=e,this.el=Gt("div","".concat(me,"-resizer ").concat(e?"vertical":"horizontal")).children(this.unhideHoverEl=Gt("div","".concat(me,"-resizer-hover")).on("dblclick.stop",function(a){return r.mousedblclickHandler(a)}).css("position","absolute").hide(),this.hoverEl=Gt("div","".concat(me,"-resizer-hover")).on("mousedown.stop",function(a){return r.mousedownHandler(a)}),this.lineEl=Gt("div","".concat(me,"-resizer-line")).hide()).hide(),this.cRect=null,this.finishedFn=null,this.minDistance=n,this.unhideFn=function(){}}return Rt(t,[{key:"showUnhide",value:function(r){this.unhideIndex=r,this.unhideHoverEl.show()}},{key:"hideUnhide",value:function(){this.unhideHoverEl.hide()}},{key:"show",value:function(r,e){var n=this.moving,a=this.vertical,o=this.hoverEl,s=this.lineEl,i=this.el,c=this.unhideHoverEl;if(!n){this.cRect=r;var l=r.left,u=r.top,f=r.width,h=r.height;i.offset({left:a?l+f-5:l,top:a?u:u+h-5}).show(),o.offset({width:a?5:f,height:a?h:5}),s.offset({width:a?0:e.width,height:a?e.height:0}),c.offset({left:a?5-f:l,top:a?u:5-h,width:a?5:f,height:a?h:5})}}},{key:"hide",value:function(){this.el.offset({left:0,top:0}).hide(),this.hideUnhide()}},{key:"mousedblclickHandler",value:function(){this.unhideIndex&&this.unhideFn(this.unhideIndex)}},{key:"mousedownHandler",value:function(r){var e=this,n=r,a=this.el,o=this.lineEl,s=this.cRect,i=this.vertical,c=this.minDistance,l=i?s.width:s.height;o.show(),Kd(window,function(u){e.moving=!0,n!==null&&u.buttons===1&&(i?(l+=u.movementX)>c&&a.css("left","".concat(s.left+l,"px")):(l+=u.movementY)>c&&a.css("top","".concat(s.top+l,"px")),n=u)},function(){n=null,o.hide(),e.moving=!1,e.hide(),e.finishedFn&&(l<c&&(l=c),e.finishedFn(s,l))})}}]),t}(),Jd=function(){function t(r){var e=this;At(this,t),this.vertical=r,this.moveFn=null,this.el=Gt("div","".concat(me,"-scrollbar ").concat(r?"vertical":"horizontal")).child(this.contentEl=Gt("div","")).on("mousemove.stop",function(){}).on("scroll.stop",function(n){var a=n.target,o=a.scrollTop,s=a.scrollLeft;e.moveFn&&e.moveFn(e.vertical?o:s,n)})}return Rt(t,[{key:"move",value:function(r){return this.el.scroll(r),this}},{key:"scroll",value:function(){return this.el.scroll()}},{key:"set",value:function(r,e){var n=r-1;if(e>n){var a=this.vertical?"height":"width";this.el.css(a,"".concat(n-15,"px")).show(),this.contentEl.css(this.vertical?"width":"height","1px").css(a,"".concat(e,"px"))}else this.el.hide();return this}}]),t}(),Hu=10,rl=function(){function t(){var r=this,e=arguments.length>0&&arguments[0]!==void 0&&arguments[0];At(this,t),this.useHideInput=e,this.inputChange=function(){},this.cornerEl=Gt("div","".concat(me,"-selector-corner")),this.areaEl=Gt("div","".concat(me,"-selector-area")).child(this.cornerEl).hide(),this.clipboardEl=Gt("div","".concat(me,"-selector-clipboard")).hide(),this.autofillEl=Gt("div","".concat(me,"-selector-autofill")).hide(),this.el=Gt("div","".concat(me,"-selector")).css("z-index","".concat(Hu)).children(this.areaEl,this.clipboardEl,this.autofillEl).hide(),e&&(this.hideInput=Gt("input","").on("compositionend",function(n){r.inputChange(n.target.value)}),this.el.child(this.hideInputDiv=Gt("div","hide-input").child(this.hideInput)),this.el.child(this.hideInputDiv=Gt("div","hide-input").child(this.hideInput))),Hu+=1}return Rt(t,[{key:"setOffset",value:function(r){return this.el.offset(r).show(),this}},{key:"hide",value:function(){return this.el.hide(),this}},{key:"setAreaOffset",value:function(r){var e=r.left,n=r.top,a={width:r.width-3+.8,height:r.height-3+.8,left:e-.8,top:n-.8};this.areaEl.offset(a).show(),this.useHideInput&&(this.hideInputDiv.offset(a),this.hideInput.val("").focus())}},{key:"setClipboardOffset",value:function(r){var e=r.left,n=r.top,a=r.width,o=r.height;this.clipboardEl.offset({left:e,top:n,width:a-5,height:o-5})}},{key:"showAutofill",value:function(r){var e=r.left,n=r.top,a=r.width,o=r.height;this.autofillEl.offset({width:a-3,height:o-3,left:e,top:n}).show()}},{key:"hideAutofill",value:function(){this.autofillEl.hide()}},{key:"showClipboard",value:function(){this.clipboardEl.show()}},{key:"hideClipboard",value:function(){this.clipboardEl.hide()}}]),t}();function Wu(t){var r=this.data,e=t.left,n=t.top,a=t.width,o=t.height,s=t.scroll,i=t.l,c=t.t,l=r.freezeTotalWidth(),u=r.freezeTotalHeight(),f=e-l;l>i&&(f-=s.x);var h=n-u;return u>c&&(h-=s.y),{left:f,top:h,width:a,height:o}}function Vu(t){var r=this.data,e=t.left,n=t.width,a=t.height,o=t.l,s=t.t,i=t.scroll,c=r.freezeTotalWidth(),l=e-c;return c>o&&(l-=i.x),{left:l,top:s,width:n,height:a}}function $u(t){var r=this.data,e=t.top,n=t.width,a=t.height,o=t.l,s=t.t,i=t.scroll,c=r.freezeTotalHeight(),l=e-c;return c>s&&(l-=i.y),{left:o,top:l,width:n,height:a}}function qu(t){this.br.setAreaOffset(Wu.call(this,t))}function C2(t){this.tl.setAreaOffset(t)}function Qd(t){this.t.setAreaOffset(Vu.call(this,t))}function t0(t){this.l.setAreaOffset($u.call(this,t))}function e0(t){this.l.setClipboardOffset($u.call(this,t))}function Gu(t){this.br.setClipboardOffset(Wu.call(this,t))}function A2(t){this.tl.setClipboardOffset(t)}function r0(t){this.t.setClipboardOffset(Vu.call(this,t))}function n0(t){qu.call(this,t),C2.call(this,t),Qd.call(this,t),t0.call(this,t)}function i0(t){Gu.call(this,t),A2.call(this,t),r0.call(this,t),e0.call(this,t)}var R2=function(){function t(r){var e=this;At(this,t),this.inputChange=function(){},this.data=r,this.br=new rl(!0),this.t=new rl,this.l=new rl,this.tl=new rl,this.br.inputChange=function(n){e.inputChange(n)},this.br.el.show(),this.offset=null,this.areaOffset=null,this.indexes=null,this.range=null,this.arange=null,this.el=Gt("div","".concat(me,"-selectors")).children(this.tl.el,this.t.el,this.l.el,this.br.el).hide(),this.lastri=-1,this.lastci=-1,Hu+=1}return Rt(t,[{key:"resetData",value:function(r){this.data=r,this.range=r.selector.range,this.resetAreaOffset()}},{key:"hide",value:function(){this.el.hide()}},{key:"resetOffset",value:function(){var r=this.data,e=this.tl,n=this.t,a=this.l,o=this.br,s=r.freezeTotalHeight(),i=r.freezeTotalWidth();s>0||i>0?(e.setOffset({width:i,height:s}),n.setOffset({left:i,height:s}),a.setOffset({top:s,width:i}),o.setOffset({left:i,top:s})):(e.hide(),n.hide(),a.hide(),o.setOffset({left:0,top:0}))}},{key:"resetAreaOffset",value:function(){var r=this.data.getSelectedRect(),e=this.data.getClipboardRect();n0.call(this,r),i0.call(this,e),this.resetOffset()}},{key:"resetBRTAreaOffset",value:function(){var r=this.data.getSelectedRect(),e=this.data.getClipboardRect();qu.call(this,r),Qd.call(this,r),Gu.call(this,e),r0.call(this,e),this.resetOffset()}},{key:"resetBRLAreaOffset",value:function(){var r=this.data.getSelectedRect(),e=this.data.getClipboardRect();qu.call(this,r),t0.call(this,r),Gu.call(this,e),e0.call(this,e),this.resetOffset()}},{key:"set",value:function(r,e){var n=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],a=this.data,o=a.calSelectedRangeByStart(r,e),s=o.sri,i=o.sci;if(n){var c=r,l=e;r<0&&(c=0),e<0&&(l=0),a.selector.setIndexes(c,l),this.indexes=[c,l]}this.moveIndexes=[s,i],this.range=o,this.resetAreaOffset(),this.el.show()}},{key:"setEnd",value:function(r,e){var n=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],a=this.data,o=this.lastri,s=this.lastci;if(n){if(r===o&&e===s)return;this.lastri=r,this.lastci=e}this.range=a.calSelectedRangeByEnd(r,e),n0.call(this,this.data.getSelectedRect())}},{key:"reset",value:function(){var r=this.data.selector.range,e=r.eri,n=r.eci;this.setEnd(e,n)}},{key:"showAutofill",value:function(r,e){if(r!==-1||e!==-1){var n=this.range,a=n.sri,o=n.sci,s=n.eri,i=n.eci,c=r,l=e,u=a-r,f=s-r,h=i-e;if(o-e>0)this.arange=new Hn(a,l,s,o-1);else if(u>0)this.arange=new Hn(c,o,a-1,i);else if(h<0)this.arange=new Hn(a,i+1,s,l);else{if(!(f<0))return void(this.arange=null);this.arange=new Hn(s+1,o,c,i)}if(this.arange!==null){var d=this.data.getRect(this.arange);d.width+=2,d.height+=2;var p=this.br,m=this.l,v=this.t,b=this.tl;p.showAutofill(Wu.call(this,d)),m.showAutofill($u.call(this,d)),v.showAutofill(Vu.call(this,d)),b.showAutofill(d)}}}},{key:"hideAutofill",value:function(){var r=this;["br","l","t","tl"].forEach(function(e){r[e].hideAutofill()})}},{key:"showClipboard",value:function(){var r=this,e=this.data.getClipboardRect();i0.call(this,e),["br","l","t","tl"].forEach(function(n){r[n].showClipboard()})}},{key:"hideClipboard",value:function(){var r=this;["br","l","t","tl"].forEach(function(e){r[e].hideClipboard()})}}]),t}();function M2(t){t.preventDefault(),t.stopPropagation();var r=this.filterItems;r.length<=0||(this.itemIndex>=0&&r[this.itemIndex].toggle(),this.itemIndex-=1,this.itemIndex<0&&(this.itemIndex=r.length-1),r[this.itemIndex].toggle())}function O2(t){t.stopPropagation();var r=this.filterItems;r.length<=0||(this.itemIndex>=0&&r[this.itemIndex].toggle(),this.itemIndex+=1,this.itemIndex>r.length-1&&(this.itemIndex=0),r[this.itemIndex].toggle())}function I2(t){t.preventDefault();var r=this.filterItems;r.length<=0||(t.stopPropagation(),this.itemIndex<0&&(this.itemIndex=0),r[this.itemIndex].el.click(),this.hide())}function N2(t){var r=t.keyCode;switch(t.ctrlKey&&t.stopPropagation(),r){case 37:case 39:default:t.stopPropagation();break;case 38:M2.call(this,t);break;case 40:O2.call(this,t);break;case 13:case 9:I2.call(this,t)}}var a0=function(){function t(r,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"200px";At(this,t),this.filterItems=[],this.items=r,this.el=Gt("div","".concat(me,"-suggest")).css("width",n).hide(),this.itemClick=e,this.itemIndex=-1}return Rt(t,[{key:"setOffset",value:function(r){this.el.cssRemoveKeys("top","bottom").offset(r)}},{key:"hide",value:function(){var r=this.el;this.filterItems=[],this.itemIndex=-1,r.hide(),co(this.el.parent())}},{key:"setItems",value:function(r){this.items=r}},{key:"search",value:function(r){var e,n=this,a=this.items;if(/^\s*$/.test(r)||(a=a.filter(function(s){return(s.key||s).startsWith(r.toUpperCase())})),a=a.map(function(s){var i=s.title;i?typeof i=="function"&&(i=i()):i=s;var c=Gt("div","".concat(me,"-item")).child(i).on("click.stop",function(){n.itemClick(s),n.hide()});return s.label&&c.child(Gt("div","label").html(s.label)),c}),this.filterItems=a,!(a.length<=0)){var o=this.el;(e=o.html("")).children.apply(e,lr(a)).show(),Xo(o.parent(),function(){n.hide()})}}},{key:"bindInputEvents",value:function(r){var e=this;r.on("keydown",function(n){return N2.call(e,n)})}}]),t}();function s0(t,r){return(s0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(t,r)}function Ht(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&s0(t,r)}function pr(t,r){if(r&&(so(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}function be(t){return(be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)})(t)}function P2(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var Wn=function(t){Ht(e,t);var r=P2(e);function e(n){var a;return At(this,e),(a=r.call(this,"div","".concat(me,"-icon"))).iconNameEl=Gt("div","".concat(me,"-icon-img ").concat(n)),a.child(a.iconNameEl),a}return Rt(e,[{key:"setName",value:function(n){this.iconNameEl.className("".concat(me,"-icon-img ").concat(n))}}]),e}(tl);function o0(t,r){t.setMonth(t.getMonth()+r)}function D2(t,r){var e=new Date(t);return e.setDate(r-t.getDay()+1),e}var F2=function(){function t(r){var e,n=this;At(this,t),this.value=r,this.cvalue=new Date(r),this.headerLeftEl=Gt("div","calendar-header-left"),this.bodyEl=Gt("tbody",""),this.buildAll(),this.el=Gt("div","x-spreadsheet-calendar").children(Gt("div","calendar-header").children(this.headerLeftEl,Gt("div","calendar-header-right").children(Gt("a","calendar-prev").on("click.stop",function(){return n.prev()}).child(new Wn("chevron-left")),Gt("a","calendar-next").on("click.stop",function(){return n.next()}).child(new Wn("chevron-right")))),Gt("table","calendar-body").children(Gt("thead","").child((e=Gt("tr","")).children.apply(e,lr(un("calendar.weeks").map(function(a){return Gt("th","cell").child(a)})))),this.bodyEl)),this.selectChange=function(){}}return Rt(t,[{key:"setValue",value:function(r){this.value=r,this.cvalue=new Date(r),this.buildAll()}},{key:"prev",value:function(){o0(this.value,-1),this.buildAll()}},{key:"next",value:function(){o0(this.value,1),this.buildAll()}},{key:"buildAll",value:function(){this.buildHeaderLeft(),this.buildBody()}},{key:"buildHeaderLeft",value:function(){var r=this.value;this.headerLeftEl.html("".concat(un("calendar.months")[r.getMonth()]," ").concat(r.getFullYear()))}},{key:"buildBody",value:function(){var r,e=this,n=this.value,a=this.cvalue,o=this.bodyEl,s=function(i,c,l){for(var u=new Date(i,c,1,23,59,59),f=[[],[],[],[],[],[]],h=0;h<6;h+=1)for(var d=0;d<7;d+=1){var p=D2(u,7*h+d),m=p.getMonth()!==c,v=p.getMonth()===l.getMonth()&&p.getDate()===l.getDate();f[h][d]={d:p,disabled:m,active:v}}return f}(n.getFullYear(),n.getMonth(),a).map(function(i){var c,l=i.map(function(u){var f="cell";return u.disabled&&(f+=" disabled"),u.active&&(f+=" active"),Gt("td","").child(Gt("div",f).on("click.stop",function(){e.selectChange(u.d)}).child(u.d.getDate().toString()))});return(c=Gt("tr","")).children.apply(c,lr(l))});(r=o.html("")).children.apply(r,lr(s))}}]),t}(),j2=function(){function t(){At(this,t),this.calendar=new F2(new Date),this.el=Gt("div","".concat(me,"-datepicker")).child(this.calendar.el).hide()}return Rt(t,[{key:"setValue",value:function(r){var e=this.calendar;return typeof r=="string"?/^\d{4}-\d{1,2}-\d{1,2}$/.test(r)&&e.setValue(new Date(r.replace(new RegExp("-","g"),"/"))):r instanceof Date&&e.setValue(r),this}},{key:"change",value:function(r){var e=this;this.calendar.selectChange=function(n){r(n),e.hide()}}},{key:"show",value:function(){this.el.show()}},{key:"hide",value:function(){this.el.hide()}}]),t}();function nl(){var t=this.inputText;if(!/^\s*$/.test(t)){var r=this.textlineEl,e=this.textEl,n=this.areaOffset,a=t.split(`
|
||
`),o=Math.max.apply(Math,lr(a.map(function(f){return f.length}))),s=r.offset().width/t.length,i=(o+1)*s+5,c=this.viewFn().width-n.left-s,l=a.length;if(i>n.width){var u=i;i>c&&(u=c,l+=parseInt(i/c,10),l+=i%c>0?1:0),e.css("width","".concat(u,"px"))}(l*=this.rowHeight)>n.height&&e.css("height","".concat(l,"px"))}}function L2(t,r){var e=t.target,n=e.value,a=e.selectionEnd,o="".concat(n.slice(0,a)).concat(r).concat(n.slice(a));e.value=o,e.setSelectionRange(a+1,a+1),this.inputText=o,this.textlineEl.html(o),nl.call(this)}function B2(t){var r=t.keyCode,e=t.altKey;r!==13&&r!==9&&t.stopPropagation(),r===13&&e&&(L2.call(this,t,`
|
||
`),t.stopPropagation()),r!==13||e||t.preventDefault()}function z2(t){var r=t.target.value,e=this.suggest,n=this.textlineEl,a=this.validator,o=this.cell;if(o!==null)if("editable"in o&&o.editable===!0||o.editable===void 0){if(this.inputText=r,a)a.type==="list"?e.search(r):e.hide();else{var s=r.lastIndexOf("=");s!==-1?e.search(r.substring(s+1)):e.hide()}n.html(r),nl.call(this),this.change("input",r)}else t.target.value=o.text;else{if(this.inputText=r,a)a.type==="list"?e.search(r):e.hide();else{var i=r.lastIndexOf("=");i!==-1?e.search(r.substring(i+1)):e.hide()}n.html(r),nl.call(this),this.change("input",r)}}function U2(t){var r=this.textEl.el;setTimeout(function(){r.focus(),r.setSelectionRange(t,t)},0)}function c0(t,r){var e=this.textEl,n=this.textlineEl;e.el.blur(),e.val(t),n.html(t),U2.call(this,r)}function H2(t){var r=this.inputText,e=this.validator,n=0;if(e&&e.type==="list")this.inputText=t,n=this.inputText.length;else{var a=r.lastIndexOf("="),o=r.substring(0,a+1),s=r.substring(a+1);s=s.indexOf(")")!==-1?s.substring(s.indexOf(")")):"",this.inputText="".concat(o+t.key,"("),n=this.inputText.length,this.inputText+=")".concat(s)}c0.call(this,this.inputText,n)}function W2(){this.suggest.setItems(this.formulas)}var V2=function(){function t(r,e,n){var a=this;At(this,t),this.viewFn=e,this.rowHeight=n,this.formulas=r,this.suggest=new a0(r,function(o){H2.call(a,o)}),this.datepicker=new j2,this.datepicker.change(function(o){a.setText(function(s){var i=s.getMonth()+1,c=s.getDate();return i<10&&(i="0".concat(i)),c<10&&(c="0".concat(c)),"".concat(s.getFullYear(),"-").concat(i,"-").concat(c)}(o)),a.clear()}),this.areaEl=Gt("div","".concat(me,"-editor-area")).children(this.textEl=Gt("textarea","").on("input",function(o){return z2.call(a,o)}).on("paste.stop",function(){}).on("keydown",function(o){return B2.call(a,o)}),this.textlineEl=Gt("div","textline"),this.suggest.el,this.datepicker.el).on("mousemove.stop",function(){}).on("mousedown.stop",function(){}),this.el=Gt("div","".concat(me,"-editor")).child(this.areaEl).hide(),this.suggest.bindInputEvents(this.textEl),this.areaOffset=null,this.freeze={w:0,h:0},this.cell=null,this.inputText="",this.change=function(){}}return Rt(t,[{key:"setFreezeLengths",value:function(r,e){this.freeze.w=r,this.freeze.h=e}},{key:"clear",value:function(){this.inputText!==""&&this.change("finished",this.inputText),this.cell=null,this.areaOffset=null,this.inputText="",this.el.hide(),this.textEl.val(""),this.textlineEl.html(""),W2.call(this),this.datepicker.hide()}},{key:"setOffset",value:function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",n=this.textEl,a=this.areaEl,o=this.suggest,s=this.freeze,i=this.el;if(r){this.areaOffset=r;var c=r.left,l=r.top,u=r.width,f=r.height,h=r.l,d=r.t,p={left:0,top:0};s.w>h&&s.h>d||(s.w<h&&s.h<d?(p.left=s.w,p.top=s.h):s.w>h?p.top=s.h:s.h>d&&(p.left=s.w)),i.offset(p),a.offset({left:c-p.left-.8,top:l-p.top-.8}),n.offset({width:u-9+.8,height:f-3+.8});var m={left:0};m[e]=f,o.setOffset(m),o.hide()}}},{key:"setCell",value:function(r,e){var n=this.el,a=this.datepicker,o=this.suggest;n.show(),this.cell=r;var s=r&&r.text||"";if(this.setText(s),this.validator=e,e){var i=e.type;i==="date"&&(a.show(),/^\s*$/.test(s)||a.setValue(s)),i==="list"&&(o.setItems(e.values()),o.search(""))}}},{key:"setText",value:function(r){this.inputText=r,c0.call(this,r,r.length),nl.call(this)}}]),t}();function $2(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var Cs=function(t){Ht(e,t);var r=$2(e);function e(n){var a,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return At(this,e),(a=r.call(this,"div","".concat(me,"-button ").concat(o))).child(un("button.".concat(n))),a}return Rt(e)}(tl);function il(){return window.devicePixelRatio||1}function Yu(){return il()-.5}function sr(t){return parseInt(t*il(),10)}function lo(t){var r=sr(t);return r>0?r-.5:.5}var q2=function(){function t(r,e,n,a){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;At(this,t),this.x=r,this.y=e,this.width=n,this.height=a,this.padding=o,this.bgcolor="#ffffff",this.borderTop=null,this.borderRight=null,this.borderBottom=null,this.borderLeft=null}return Rt(t,[{key:"setBorders",value:function(r){var e=r.top,n=r.bottom,a=r.left,o=r.right;e&&(this.borderTop=e),o&&(this.borderRight=o),n&&(this.borderBottom=n),a&&(this.borderLeft=a)}},{key:"innerWidth",value:function(){return this.width-2*this.padding-2}},{key:"innerHeight",value:function(){return this.height-2*this.padding-2}},{key:"textx",value:function(r){var e=this.width,n=this.padding,a=this.x;return r==="left"?a+=n:r==="center"?a+=e/2:r==="right"&&(a+=e-n),a}},{key:"texty",value:function(r,e){var n=this.height,a=this.padding,o=this.y;return r==="top"?o+=a:r==="middle"?o+=n/2-e/2:r==="bottom"&&(o+=n-a-e),o}},{key:"topxys",value:function(){var r=this.x,e=this.y;return[[r,e],[r+this.width,e]]}},{key:"rightxys",value:function(){var r=this.x,e=this.y,n=this.width;return[[r+n,e],[r+n,e+this.height]]}},{key:"bottomxys",value:function(){var r=this.x,e=this.y,n=this.width,a=this.height;return[[r,e+a],[r+n,e+a]]}},{key:"leftxys",value:function(){var r=this.x,e=this.y;return[[r,e],[r,e+this.height]]}}]),t}();function l0(t,r,e,n,a,o,s){var i={x:0,y:0};t==="underline"?i.y=a==="bottom"?0:a==="top"?-(o+2):-o/2:t==="strike"&&(a==="bottom"?i.y=o/2:a==="top"&&(i.y=-(o/2+2))),n==="center"?i.x=s/2:n==="right"&&(i.x=s),this.line([r-i.x,e-i.y],[r-i.x+s,e-i.y])}var u0=function(){function t(r,e,n){At(this,t),this.el=r,this.ctx=r.getContext("2d"),this.resize(e,n),this.ctx.scale(il(),il())}return Rt(t,[{key:"resize",value:function(r,e){this.el.style.width="".concat(r,"px"),this.el.style.height="".concat(e,"px"),this.el.width=sr(r),this.el.height=sr(e)}},{key:"clear",value:function(){var r=this.el,e=r.width,n=r.height;return this.ctx.clearRect(0,0,e,n),this}},{key:"attr",value:function(r){return Object.assign(this.ctx,r),this}},{key:"save",value:function(){return this.ctx.save(),this.ctx.beginPath(),this}},{key:"restore",value:function(){return this.ctx.restore(),this}},{key:"beginPath",value:function(){return this.ctx.beginPath(),this}},{key:"translate",value:function(r,e){return this.ctx.translate(sr(r),sr(e)),this}},{key:"scale",value:function(r,e){return this.ctx.scale(r,e),this}},{key:"clearRect",value:function(r,e,n,a){return this.ctx.clearRect(r,e,n,a),this}},{key:"fillRect",value:function(r,e,n,a){return this.ctx.fillRect(sr(r)-.5,sr(e)-.5,sr(n),sr(a)),this}},{key:"fillText",value:function(r,e,n){return this.ctx.fillText(r,sr(e),sr(n)),this}},{key:"text",value:function(r,e){var n=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],s=this.ctx,i=a.align,c=a.valign,l=a.font,u=a.color,f=a.strike,h=a.underline,d=e.textx(i);s.save(),s.beginPath(),this.attr({textAlign:i,textBaseline:c,font:"".concat(l.italic?"italic":""," ").concat(l.bold?"bold":""," ").concat(sr(l.size),"px ").concat(l.name),fillStyle:u,strokeStyle:u});var p="".concat(r).split(`
|
||
`),m=e.innerWidth(),v=[];p.forEach(function(y){var w=s.measureText(y).width;if(o&&w>sr(m)){for(var x={w:0,len:0,start:0},C=0;C<y.length;C+=1)x.w>=sr(m)&&(v.push(y.substr(x.start,x.len)),x={w:0,len:0,start:C}),x.len+=1,x.w+=s.measureText(y[C]).width+1;x.len>0&&v.push(y.substr(x.start,x.len))}else v.push(y)});var b=(v.length-1)*(l.size+2),g=e.texty(c,b);return v.forEach(function(y){var w=s.measureText(y).width;n.fillText(y,d,g),f&&l0.call(n,"strike",d,g,i,c,l.size,w),h&&l0.call(n,"underline",d,g,i,c,l.size,w),g+=l.size+2}),s.restore(),this}},{key:"border",value:function(r,e){var n=this.ctx;return n.lineWidth=Yu,n.strokeStyle=e,r==="medium"?n.lineWidth=sr(2)-.5:r==="thick"?n.lineWidth=sr(3):r==="dashed"?n.setLineDash([sr(3),sr(2)]):r==="dotted"?n.setLineDash([sr(1),sr(1)]):r==="double"&&n.setLineDash([sr(2),0]),this}},{key:"line",value:function(){var r=this.ctx;if(arguments.length>1){r.beginPath();var e=$e(arguments.length<=0?void 0:arguments[0],2),n=e[0],a=e[1];r.moveTo(lo(n),lo(a));for(var o=1;o<arguments.length;o+=1){var s=$e(o<0||arguments.length<=o?void 0:arguments[o],2),i=s[0],c=s[1];r.lineTo(lo(i),lo(c))}r.stroke()}return this}},{key:"strokeBorders",value:function(r){var e=this.ctx;e.save();var n=r.borderTop,a=r.borderRight,o=r.borderBottom,s=r.borderLeft;n&&(this.border.apply(this,lr(n)),this.line.apply(this,lr(r.topxys()))),a&&(this.border.apply(this,lr(a)),this.line.apply(this,lr(r.rightxys()))),o&&(this.border.apply(this,lr(o)),this.line.apply(this,lr(r.bottomxys()))),s&&(this.border.apply(this,lr(s)),this.line.apply(this,lr(r.leftxys()))),e.restore()}},{key:"dropdown",value:function(r){var e=this.ctx,n=r.x,a=r.y,o=n+r.width-15,s=a+r.height-15;e.save(),e.beginPath(),e.moveTo(sr(o),sr(s)),e.lineTo(sr(o+8),sr(s)),e.lineTo(sr(o+4),sr(s+6)),e.closePath(),e.fillStyle="rgba(0, 0, 0, .45)",e.fill(),e.restore()}},{key:"error",value:function(r){var e=this.ctx,n=r.x,a=r.y,o=n+r.width-1;e.save(),e.beginPath(),e.moveTo(sr(o-8),sr(a-1)),e.lineTo(sr(o),sr(a-1)),e.lineTo(sr(o),sr(a+8)),e.closePath(),e.fillStyle="rgba(255, 0, 0, .65)",e.fill(),e.restore()}},{key:"frozen",value:function(r){var e=this.ctx,n=r.x,a=r.y,o=n+r.width-1;e.save(),e.beginPath(),e.moveTo(sr(o-8),sr(a-1)),e.lineTo(sr(o),sr(a-1)),e.lineTo(sr(o),sr(a+8)),e.closePath(),e.fillStyle="rgba(0, 255, 0, .85)",e.fill(),e.restore()}},{key:"rect",value:function(r,e){var n=this.ctx,a=r.x,o=r.y,s=r.width,i=r.height,c=r.bgcolor;n.save(),n.beginPath(),n.fillStyle=c||"#fff",n.rect(lo(a+1),lo(o+1),sr(s-2),sr(i-2)),n.clip(),n.fill(),e(),n.restore()}}]),t}(),f0=[{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"}],Ku=[{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}],G2=function(t,r){var e=$e(t,1)[0],n=t;if(e==='"')return t.substring(1);var a=1;if(e==="-"&&(n=t.substring(1),a=-1),n[0]>="0"&&n[0]<="9")return a*Number(n);var o=$e(Ja(n),2);return a*r(o[0],o[1])};const Y2={render:function t(r,e,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];if(r[0]==="="){var o=function(s){for(var i=[],c=[],l=[],u=0,f="",h=1,d="",p=0;p<s.length;p+=1){var m=s.charAt(p);if(m!==" "){if(m>="a"&&m<="z")l.push(m.toUpperCase());else if(m>="0"&&m<="9"||m>="A"&&m<="Z"||m===".")l.push(m);else if(m==='"'){for(p+=1;s.charAt(p)!=='"';)l.push(s.charAt(p)),p+=1;c.push('"'.concat(l.join(""))),l=[]}else if(m==="-"&&/[+\-*/,(]/.test(d))l.push(m);else{if(m!=="("&&l.length>0&&c.push(l.join("")),m===")"){var v=i.pop();if(u===2)try{for(var b=$e(Ja(c.pop()),2),g=b[0],y=b[1],w=$e(Ja(c.pop()),2),x=w[0],C=w[1],O=0,D=x;D<=g;D+=1)for(var j=C;j<=y;j+=1)c.push(Ma(D,j)),O+=1;c.push([v,O])}catch(A){}else if(u===1||u===3)u===3&&c.push(f),c.push([v,h]),h=1;else for(;v!=="("&&(c.push(v),!(i.length<=0));)v=i.pop();u=0}else if(m==="="||m===">"||m==="<"){var U=s.charAt(p+1);f=m,U!=="="&&U!=="-"||(f+=U,p+=1),u=3}else if(m===":")u=2;else if(m===",")u===3&&c.push(f),u=1,h+=1;else if(m==="("&&l.length>0)i.push(l.join(""));else{if(i.length>0&&(m==="+"||m==="-")){var L=i[i.length-1];if(L!=="("&&c.push(i.pop()),L==="*"||L==="/")for(;i.length>0&&(L=i[i.length-1])!=="(";)c.push(i.pop())}else if(i.length>0){var V=i[i.length-1];V!=="*"&&V!=="/"||c.push(i.pop())}i.push(m)}l=[]}d=m}}for(l.length>0&&c.push(l.join(""));i.length>0;)c.push(i.pop());return c}(r.substring(1));return o.length<=0?r:function(s,i,c,l){for(var u=[],f=0;f<s.length;f+=1){var h=s[f],d=h[0];if(h==="+"){var p=u.pop();u.push(Es("+",u.pop(),p))}else if(h==="-")if(u.length===1){var m=u.pop();u.push(Es("*",m,-1))}else{var v=u.pop();u.push(Es("-",u.pop(),v))}else if(h==="*")u.push(Es("*",u.pop(),u.pop()));else if(h==="/"){var b=u.pop();u.push(Es("/",u.pop(),b))}else if(d==="="||d===">"||d==="<"){var g=u.pop();Number.isNaN(g)||(g=Number(g));var y=u.pop();Number.isNaN(y)||(y=Number(y));var w=!1;d==="="?w=y===g:h===">"?w=y>g:h===">="?w=y>=g:h==="<"?w=y<g:h==="<="&&(w=y<=g),u.push(w)}else if(Array.isArray(h)){for(var x=$e(h,2),C=x[0],O=x[1],D=[],j=0;j<O;j+=1)D.push(u.pop());u.push(i[C].render(D.reverse()))}else{if(l.includes(h))return 0;(d>="a"&&d<="z"||d>="A"&&d<="Z")&&l.push(h),u.push(G2(h,c)),l.pop()}}return u[0]}(o,e,function(s,i){return t(n(s,i),e,n,a)},a)}return r}};var Xu=[{key:"SUM",title:_r("formula.sum"),render:function(t){return t.reduce(function(r,e){return Es("+",r,e)},0)}},{key:"AVERAGE",title:_r("formula.average"),render:function(t){return t.reduce(function(r,e){return Number(r)+Number(e)},0)/t.length}},{key:"MAX",title:_r("formula.max"),render:function(t){return Math.max.apply(Math,lr(t.map(function(r){return Number(r)})))}},{key:"MIN",title:_r("formula.min"),render:function(t){return Math.min.apply(Math,lr(t.map(function(r){return Number(r)})))}},{key:"IF",title:_r("formula._if"),render:function(t){var r=$e(t,3),e=r[0],n=r[1],a=r[2];return e?n:a}},{key:"AND",title:_r("formula.and"),render:function(t){return t.every(function(r){return r})}},{key:"OR",title:_r("formula.or"),render:function(t){return t.some(function(r){return r})}},{key:"CONCAT",title:_r("formula.concat"),render:function(t){return t.join("")}}],K2=Xu,h0={};Xu.forEach(function(t){h0[t.key]=t});var uo=function(t){return t},al=function(t){if(/^(-?\d*.?\d*)$/.test(t)){var r=Pd(Number(t).toFixed(2).toString().split("\\.")),e=r[0],n=r.slice(1);return[e.replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")].concat(lr(n))}return t},Zo=[{key:"normal",title:_r("format.normal"),type:"string",render:uo},{key:"text",title:_r("format.text"),type:"string",render:uo},{key:"number",title:_r("format.number"),type:"number",label:"1,000.12",render:al},{key:"percent",title:_r("format.percent"),type:"number",label:"10.12%",render:function(t){return"".concat(t,"%")}},{key:"rmb",title:_r("format.rmb"),type:"number",label:"¥10.00",render:function(t){return"¥".concat(al(t))}},{key:"usd",title:_r("format.usd"),type:"number",label:"$10.00",render:function(t){return"$".concat(al(t))}},{key:"eur",title:_r("format.eur"),type:"number",label:"€10.00",render:function(t){return"€".concat(al(t))}},{key:"date",title:_r("format.date"),type:"date",label:"26/09/2008",render:uo},{key:"time",title:_r("format.time"),type:"date",label:"15:59:00",render:uo},{key:"datetime",title:_r("format.datetime"),type:"date",label:"26/09/2008 15:59:00",render:uo},{key:"duration",title:_r("format.duration"),type:"date",label:"24:01:00",render:uo}],d0={};Zo.forEach(function(t){d0[t.key]=t});var X2=5,Z2={fillStyle:"#f4f5f8"},J2={fillStyle:"#fff",lineWidth:Yu,strokeStyle:"#e6e6e6"};function p0(t,r,e){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=t.cellRect(r,e),o=a.left,s=a.top,i=a.width,c=a.height;return new q2(o,s+n,i,c,X2)}function sl(t,r,e,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,o=r.sortedRowMap,s=r.rows,i=r.cols;if(!s.isHide(e)&&!i.isHide(n)){var c=e;o.has(e)&&(c=o.get(e));var l=r.getCell(c,n);if(l!==null){var u=!1;"editable"in l&&l.editable===!1&&(u=!0);var f=r.getCellStyleOrDefault(c,n),h=p0(r,e,n,a);h.bgcolor=f.bgcolor,f.border!==void 0&&(h.setBorders(f.border),t.strokeBorders(h)),t.rect(h,function(){var d="";d=r.settings.evalPaused?l.text||"":Y2.render(l.text||"",h0,function(m,v){return r.getCellTextOrDefault(v,m)}),f.format&&(d=d0[f.format].render(d));var p=Object.assign({},f.font);p.size=function(m){for(var v=0;v<Ku.length;v+=1){var b=Ku[v];if(b.pt===m)return b.px}return m}(p.size),t.text(d,h,{align:f.align,valign:f.valign,font:p,color:f.color,strike:f.strike,underline:f.underline},f.textwrap),r.validations.getError(e,n)&&t.error(h),u&&t.frozen(h)})}}}function Q2(t){var r=this.data,e=this.draw;if(t){var n=r.autoFilter;if(!n.active())return;var a=n.hrange();t.intersects(a)&&a.each(function(o,s){var i=p0(r,o,s);e.dropdown(i)})}}function ol(t,r,e,n,a){var o=this.draw,s=this.data;o.save(),o.translate(r,e).translate(n,a);var i=s.exceptRowSet,c=s.exceptRowTotalHeight(t.sri,t.eri);o.save(),o.translate(0,-c),t.each(function(u,f){sl(o,s,u,f)},function(u){return function(f){var h=i.has(f);if(h){var d=s.rows.getHeight(f);o.translate(0,-d)}return!h}(u)}),o.restore();var l=new Set;o.save(),o.translate(0,-c),s.eachMergesInView(t,function(u){var f=u.sri,h=u.sci,d=u.eri;if(i.has(f)){if(!l.has(f)){l.add(f);var p=s.rows.sumHeight(f,d+1);o.translate(0,-p)}}else sl(o,s,f,h)}),o.restore(),Q2.call(this,t),o.restore()}function m0(t,r,e,n){var a=this.draw;a.save(),a.attr({fillStyle:"rgba(75, 137, 255, 0.08)"}).fillRect(t,r,e,n),a.restore()}function cl(t,r,e,n,a,o){var s=this,i=this.draw,c=this.data,l=r.h,u=r.w,f=o+n,h=a+e;i.save(),i.attr(Z2),t!=="all"&&t!=="left"||i.fillRect(0,f,e,l),t!=="all"&&t!=="top"||i.fillRect(h,0,u,n);var d=c.selector.range,p=d.sri,m=d.sci,v=d.eri,b=d.eci;i.attr({textAlign:"center",textBaseline:"middle",font:"500 ".concat(sr(12),"px Source Sans Pro"),fillStyle:"#585757",lineWidth:Yu(),strokeStyle:"#e6e6e6"}),t!=="all"&&t!=="left"||(c.rowEach(r.sri,r.eri,function(g,y,w){var x=f+y,C=g;i.line([0,x],[e,x]),p<=C&&C<v+1&&m0.call(s,0,x,e,w),i.fillText(C+1,e/2,x+w/2),g>0&&c.rows.isHide(g-1)&&(i.save(),i.attr({strokeStyle:"#c6c6c6"}),i.line([5,x+5],[e-5,x+5]),i.restore())}),i.line([0,l+f],[e,l+f]),i.line([e,f],[e,l+f])),t!=="all"&&t!=="top"||(c.colEach(r.sci,r.eci,function(g,y,w){var x=h+y,C=g;i.line([x,0],[x,n]),m<=C&&C<b+1&&m0.call(s,x,0,w,n),i.fillText(Dd(C),x+w/2,n/2),g>0&&c.cols.isHide(g-1)&&(i.save(),i.attr({strokeStyle:"#c6c6c6"}),i.line([x+5,5],[x+5,n-5]),i.restore())}),i.line([u+h,0],[u+h,n]),i.line([0,n],[u+h,n])),i.restore()}function tb(t,r){var e=this.draw;e.save(),e.attr({fillStyle:"#f4f5f8"}).fillRect(0,0,t,r),e.restore()}function ll(t,r,e,n,a){var o=t.sri,s=t.sci,i=t.eri,c=t.eci,l=t.w,u=t.h,f=this.draw,h=this.data,d=h.settings;f.save(),f.attr(J2).translate(r+n,e+a),d.showGrid&&(h.rowEach(o,i,function(p,m,v){p!==o&&f.line([0,m],[l,m]),p===i&&f.line([0,m+v],[l,m+v])}),h.colEach(s,c,function(p,m,v){p!==s&&f.line([m,0],[m,u]),p===c&&f.line([m+v,0],[m+v,u])})),f.restore()}function eb(t,r,e,n){var a=this.draw,o=this.data,s=o.viewWidth()-t,i=o.viewHeight()-r;a.save().translate(t,r).attr({strokeStyle:"rgba(75, 137, 255, .6)"}),a.line([0,n],[s,n]),a.line([e,0],[e,i]),a.restore()}var rb=function(){function t(r,e){At(this,t),this.el=r,this.draw=new u0(r,e.viewWidth(),e.viewHeight()),this.data=e}return Rt(t,[{key:"resetData",value:function(r){this.data=r,this.render()}},{key:"render",value:function(){var r=this.data,e=r.rows,n=r.cols.indexWidth,a=e.height;this.draw.resize(r.viewWidth(),r.viewHeight()),this.clear();var o=r.viewRange(),s=r.freezeTotalWidth(),i=r.freezeTotalHeight(),c=r.scroll,l=c.x,u=c.y;ll.call(this,o,n,a,s,i),ol.call(this,o,n,a,-l,-u),cl.call(this,"all",o,n,a,s,i),tb.call(this,n,a);var f=$e(r.freeze,2),h=f[0],d=f[1];if(h>0||d>0){if(h>0){var p=o.clone();p.sri=0,p.eri=h-1,p.h=i,ll.call(this,p,n,a,s,0),ol.call(this,p,n,a,-l,0),cl.call(this,"top",p,n,a,s,0)}if(d>0){var m=o.clone();m.sci=0,m.eci=d-1,m.w=s,ll.call(this,m,n,a,0,i),cl.call(this,"left",m,n,a,0,i),ol.call(this,m,n,a,0,-u)}var v=r.freezeViewRange();ll.call(this,v,n,a,0,0),cl.call(this,"all",v,n,a,0,0),ol.call(this,v,n,a,0,0),eb.call(this,n,a,s,i)}}},{key:"clear",value:function(){this.draw.clear()}}]),t}(),ul=[["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]],Zu=["landscape","portrait"];function fl(t){return parseInt(96*t,10)}function v0(t){t==="cancel"?this.el.hide():this.toPrint()}function nb(t){var r=this.paper,e=t.target.value,n=ul[e];r.w=fl(n[1]),r.h=fl(n[2]),this.preview()}function ib(t){var r=this.paper,e=t.target.value,n=Zu[e];r.orientation=n,this.preview()}var ab=function(){function t(r){var e,n;At(this,t),this.paper={w:fl(ul[0][1]),h:fl(ul[0][2]),padding:50,orientation:Zu[0],get width(){return this.orientation==="landscape"?this.h:this.w},get height(){return this.orientation==="landscape"?this.w:this.h}},this.data=r,this.el=Gt("div","".concat(me,"-print")).children(Gt("div","".concat(me,"-print-bar")).children(Gt("div","-title").child("Print settings"),Gt("div","-right").children(Gt("div","".concat(me,"-buttons")).children(new Cs("cancel").on("click",v0.bind(this,"cancel")),new Cs("next","primary").on("click",v0.bind(this,"next"))))),Gt("div","".concat(me,"-print-content")).children(this.contentEl=Gt("div","-content"),Gt("div","-sider").child(Gt("form","").children(Gt("fieldset","").children(Gt("label","").child("".concat(un("print.size"))),(e=Gt("select","")).children.apply(e,lr(ul.map(function(a,o){return Gt("option","").attr("value",o).child("".concat(a[0]," ( ").concat(a[1],"''x").concat(a[2],"'' )"))}))).on("change",nb.bind(this))),Gt("fieldset","").children(Gt("label","").child("".concat(un("print.orientation"))),(n=Gt("select","")).children.apply(n,lr(Zu.map(function(a,o){return Gt("option","").attr("value",o).child("".concat(un("print.orientations")[o]))}))).on("change",ib.bind(this))))))).hide()}return Rt(t,[{key:"resetData",value:function(r){this.data=r}},{key:"preview",value:function(){var r=this,e=this.data,n=this.paper,a=n.width,o=n.height,s=n.padding,i=a-2*s,c=o-2*s,l=e.contentRange(),u=parseInt(l.h/c,10)+1,f=i/l.w,h=s,d=s;f>1&&(h+=(i-l.w)/2);var p=0,m=0;this.contentEl.html(""),this.canvases=[];for(var v={sri:0,sci:0,eri:0,eci:0},b=function(){var y=0,w=0,x=Gt("div","".concat(me,"-canvas-card")),C=Gt("canvas","".concat(me,"-canvas"));r.canvases.push(C.el);var O=new u0(C.el,a,o);for(O.save(),O.translate(h,d),f<1&&O.scale(f,f);p<=l.eri;p+=1){var D=e.rows.getHeight(p);if(!((y+=D)<c)){w=-(y-D);break}for(var j=0;j<=l.eci;j+=1)sl(O,e,p,j,m),v.eci=j}v.eri=p,O.restore(),O.save(),O.translate(h,d),f<1&&O.scale(f,f);var U=m;e.eachMergesInView(v,function(L){var V=L.sri,A=L.sci;sl(O,e,V,A,U)}),O.restore(),v.sri=v.eri,v.sci=v.eci,m+=w,r.contentEl.child(Gt("div","".concat(me,"-canvas-card-wraper")).child(x.child(C)))},g=0;g<u;g+=1)b();this.el.show()}},{key:"toPrint",value:function(){this.el.hide();var r=this.paper,e=Gt("iframe","").hide().el;window.document.body.appendChild(e);var n=e.contentWindow,a=n.document,o=document.createElement("style");o.innerHTML=`
|
||
@page { size: `.concat(r.width,"px ").concat(r.height,`px; };
|
||
canvas {
|
||
page-break-before: auto;
|
||
page-break-after: always;
|
||
image-rendering: pixelated;
|
||
};
|
||
`),a.head.appendChild(o),this.canvases.forEach(function(s){var i=s.cloneNode(!1);i.getContext("2d").drawImage(s,0,0),a.body.appendChild(i)}),n.print()}}]),t}(),sb=[{key:"copy",title:_r("contextmenu.copy"),label:"Ctrl+C"},{key:"cut",title:_r("contextmenu.cut"),label:"Ctrl+X"},{key:"paste",title:_r("contextmenu.paste"),label:"Ctrl+V"},{key:"paste-value",title:_r("contextmenu.pasteValue"),label:"Ctrl+Shift+V"},{key:"paste-format",title:_r("contextmenu.pasteFormat"),label:"Ctrl+Alt+V"},{key:"divider"},{key:"insert-row",title:_r("contextmenu.insertRow")},{key:"insert-column",title:_r("contextmenu.insertColumn")},{key:"divider"},{key:"delete-row",title:_r("contextmenu.deleteRow")},{key:"delete-column",title:_r("contextmenu.deleteColumn")},{key:"delete-cell-text",title:_r("contextmenu.deleteCellText")},{key:"hide",title:_r("contextmenu.hide")},{key:"divider"},{key:"validation",title:_r("contextmenu.validation")},{key:"divider"},{key:"cell-printable",title:_r("contextmenu.cellprintable")},{key:"cell-non-printable",title:_r("contextmenu.cellnonprintable")},{key:"divider"},{key:"cell-editable",title:_r("contextmenu.celleditable")},{key:"cell-non-editable",title:_r("contextmenu.cellnoneditable")}];function ob(t){var r=this;return t.key==="divider"?Gt("div","".concat(me,"-item divider")):Gt("div","".concat(me,"-item")).on("click",function(){r.itemClick(t.key),r.hide()}).children(t.title(),Gt("div","label").child(t.label||""))}function cb(){var t=this;return sb.map(function(r){return ob.call(t,r)})}var lb=function(){function t(r){var e,n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];At(this,t),this.menuItems=cb.call(this),this.el=(e=Gt("div","".concat(me,"-contextmenu"))).children.apply(e,lr(this.menuItems)).hide(),this.viewFn=r,this.itemClick=function(){},this.isHide=n,this.setMode("range")}return Rt(t,[{key:"setMode",value:function(r){var e=this.menuItems[12];r==="row-col"?e.show():e.hide()}},{key:"hide",value:function(){var r=this.el;r.hide(),co(r)}},{key:"setPosition",value:function(r,e){if(!this.isHide){var n=this.el,a=n.show().offset().width,o=this.viewFn(),s=o.height/2,i=r;o.width-r<=a&&(i-=a),n.css("left","".concat(i,"px")),e>s?n.css("bottom","".concat(o.height-e,"px")).css("max-height","".concat(e,"px")).css("top","auto"):n.css("top","".concat(e,"px")).css("max-height","".concat(o.height-e,"px")).css("bottom","auto"),Xo(n)}}}]),t}();function As(){return As=typeof Reflect!="undefined"&&Reflect.get?Reflect.get.bind():function(t,r,e){var n=function(o,s){for(;!Object.prototype.hasOwnProperty.call(o,s)&&(o=be(o))!==null;);return o}(t,r);if(n){var a=Object.getOwnPropertyDescriptor(n,r);return a.get?a.get.call(arguments.length<3?t:e):a.value}},As.apply(this,arguments)}var Ju=function(){function t(r,e,n){At(this,t),this.tip=un("toolbar.".concat(r.replace(/-[a-z]/g,function(a){return a[1].toUpperCase()}))),e&&(this.tip+=" (".concat(e,")")),this.tag=r,this.shortcut=e,this.value=n,this.el=this.element(),this.change=function(){}}return Rt(t,[{key:"element",value:function(){var r=this.tip;return Gt("div","".concat(me,"-toolbar-btn")).on("mouseenter",function(e){(function(n,a){if(!a.classList.contains("active")){var o=a.getBoundingClientRect(),s=o.left,i=o.top,c=o.width,l=o.height,u=Gt("div","".concat(me,"-tooltip")).html(n).show();document.body.appendChild(u.el);var f=u.box();u.css("left","".concat(s+c/2-f.width/2,"px")).css("top","".concat(i+l+2,"px")),di(a,"mouseleave",function(){document.body.contains(u.el)&&document.body.removeChild(u.el)}),di(a,"click",function(){document.body.contains(u.el)&&document.body.removeChild(u.el)})}})(r,e.target)}).attr("data-tooltip",r)}},{key:"setState",value:function(){}}]),t}();function ub(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var ha=function(t){Ht(e,t);var r=ub(e);function e(){return At(this,e),r.apply(this,arguments)}return Rt(e,[{key:"dropdown",value:function(){}},{key:"getValue",value:function(n){return n}},{key:"element",value:function(){var n=this,a=this.tag;return this.dd=this.dropdown(),this.dd.change=function(o){return n.change(a,n.getValue(o))},As(be(e.prototype),"element",this).call(this).child(this.dd)}},{key:"setState",value:function(n){n&&(this.value=n,this.dd.setTitle(n))}}]),e}(Ju);function fb(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var da=function(t){Ht(e,t);var r=fb(e);function e(n,a,o,s){var i,c;At(this,e),(c=r.call(this,"div","".concat(me,"-dropdown ").concat(s))).title=n,c.change=function(){},c.headerClick=function(){},typeof n=="string"?c.title=Gt("div","".concat(me,"-dropdown-title")).child(n):o&&c.title.addClass("arrow-left"),c.contentEl=Gt("div","".concat(me,"-dropdown-content")).css("width",a).hide();for(var l=arguments.length,u=new Array(l>4?l-4:0),f=4;f<l;f++)u[f-4]=arguments[f];return(i=c).setContentChildren.apply(i,u),c.headerEl=Gt("div","".concat(me,"-dropdown-header")),c.headerEl.on("click",function(){c.contentEl.css("display")!=="block"?c.show():c.hide()}).children(c.title,o?Gt("div","".concat(me,"-icon arrow-right")).child(Gt("div","".concat(me,"-icon-img arrow-down"))):""),c.children(c.headerEl,c.contentEl),c}return Rt(e,[{key:"setContentChildren",value:function(){var n;this.contentEl.html(""),arguments.length>0&&(n=this.contentEl).children.apply(n,arguments)}},{key:"setTitle",value:function(n){this.title.html(n),this.hide()}},{key:"show",value:function(){var n=this;this.contentEl.show(),this.parent().active(),Xo(this.parent(),function(){n.hide()})}},{key:"hide",value:function(){this.parent().active(!1),this.contentEl.hide(),co(this.parent())}}]),e}(tl);function hb(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var g0=function(t){Ht(e,t);var r=hb(e);function e(n,a){var o;At(this,e);var s=new Wn("align-".concat(a)),i=n.map(function(c){return(l="align-".concat(c),Gt("div","".concat(me,"-item")).child(new Wn(l))).on("click",function(){o.setTitle(c),o.change(c)});var l});return o=r.call.apply(r,[this,s,"auto",!0,"bottom-left"].concat(lr(i)))}return Rt(e,[{key:"setTitle",value:function(n){this.title.setName("align-".concat(n)),this.hide()}}]),e}(da);function db(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var pb=function(t){Ht(e,t);var r=db(e);function e(n){return At(this,e),r.call(this,"align","",n)}return Rt(e,[{key:"dropdown",value:function(){var n=this.value;return new g0(["left","center","right"],n)}}]),e}(ha);function mb(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var vb=function(t){Ht(e,t);var r=mb(e);function e(n){return At(this,e),r.call(this,"valign","",n)}return Rt(e,[{key:"dropdown",value:function(){var n=this.value;return new g0(["top","middle","bottom"],n)}}]),e}(ha);function gb(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var Oa=function(t){Ht(e,t);var r=gb(e);function e(){return At(this,e),r.apply(this,arguments)}return Rt(e,[{key:"element",value:function(){var n=this,a=this.tag;return As(be(e.prototype),"element",this).call(this).child(new Wn(a)).on("click",function(){return n.click()})}},{key:"click",value:function(){this.change(this.tag,this.toggle())}},{key:"setState",value:function(n){this.el.active(n)}},{key:"toggle",value:function(){return this.el.toggle()}},{key:"active",value:function(){return this.el.hasClass("active")}}]),e}(Ju);function bb(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var yb=function(t){Ht(e,t);var r=bb(e);function e(){return At(this,e),r.call(this,"autofilter")}return Rt(e,[{key:"setState",value:function(){}}]),e}(Oa);function wb(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var _b=function(t){Ht(e,t);var r=wb(e);function e(){return At(this,e),r.call(this,"font-bold","Ctrl+B")}return Rt(e)}(Oa);function kb(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var xb=function(t){Ht(e,t);var r=kb(e);function e(){return At(this,e),r.call(this,"font-italic","Ctrl+I")}return Rt(e)}(Oa);function Sb(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var Tb=function(t){Ht(e,t);var r=Sb(e);function e(){return At(this,e),r.call(this,"strike","Ctrl+U")}return Rt(e)}(Oa);function Eb(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var Cb=function(t){Ht(e,t);var r=Eb(e);function e(){return At(this,e),r.call(this,"underline","Ctrl+U")}return Rt(e)}(Oa),Ab=["#ffffff","#000100","#e7e5e6","#445569","#5b9cd6","#ed7d31","#a5a5a5","#ffc001","#4371c6","#71ae47"],Rb=[["#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"]],Mb=["#c00000","#fe0000","#fdc101","#ffff01","#93d051","#00b04e","#01b0f1","#0170c1","#012060","#7030a0"];function Qu(t){var r=this;return Gt("td","").child(Gt("div","".concat(me,"-color-palette-cell")).on("click.stop",function(){return r.change(t)}).css("background-color",t))}var Ob=Rt(function t(){var r,e,n,a=this;At(this,t),this.el=Gt("div","".concat(me,"-color-palette")),this.change=function(){};var o=Gt("table","").children((r=Gt("tbody","")).children.apply(r,[(e=Gt("tr","".concat(me,"-theme-color-placeholders"))).children.apply(e,lr(Ab.map(function(s){return Qu.call(a,s)})))].concat(lr(Rb.map(function(s){var i;return(i=Gt("tr","".concat(me,"-theme-colors"))).children.apply(i,lr(s.map(function(c){return Qu.call(a,c)})))})),[(n=Gt("tr","".concat(me,"-standard-colors"))).children.apply(n,lr(Mb.map(function(s){return Qu.call(a,s)})))])));this.el.child(o)});function Ib(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var tf=function(t){Ht(e,t);var r=Ib(e);function e(n,a){var o;At(this,e);var s=new Wn(n).css("height","16px").css("border-bottom","3px solid ".concat(a)),i=new Ob;return i.change=function(c){o.setTitle(c),o.change(c)},o=r.call(this,s,"auto",!1,"bottom-left",i.el)}return Rt(e,[{key:"setTitle",value:function(n){this.title.css("border-color",n),this.hide()}}]),e}(da);function Nb(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var Pb=[["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>']],Db=function(t){Ht(e,t);var r=Nb(e);function e(n){var a;At(this,e);var o=new Wn("line-type"),s=0,i=Pb.map(function(c,l){return Gt("div","".concat(me,"-item state ").concat(n===c[0]?"checked":"")).on("click",function(){i[s].toggle("checked"),i[l].toggle("checked"),s=l,a.hide(),a.change(c)}).child(Gt("div","".concat(me,"-line-type")).html(c[1]))});return a=r.call.apply(r,[this,o,"auto",!1,"bottom-left"].concat(lr(i)))}return Rt(e)}(da);function b0(){var t;return Gt("table","").child((t=Gt("tbody","")).children.apply(t,arguments))}function y0(t){var r=this;return Gt("td","").child(Gt("div","".concat(me,"-border-palette-cell")).child(new Wn("border-".concat(t))).on("click",function(){r.mode=t;var e=r.mode,n=r.style,a=r.color;r.change({mode:e,style:n,color:a})}))}var Fb=Rt(function t(){var r,e,n=this;At(this,t),this.color="#000",this.style="thin",this.mode="all",this.change=function(){},this.ddColor=new tf("line-color",this.color),this.ddColor.change=function(o){n.color=o},this.ddType=new Db(this.style),this.ddType.change=function(o){var s=$e(o,1)[0];n.style=s},this.el=Gt("div","".concat(me,"-border-palette"));var a=b0(Gt("tr","").children(Gt("td","".concat(me,"-border-palette-left")).child(b0((r=Gt("tr","")).children.apply(r,lr(["all","inside","horizontal","vertical","outside"].map(function(o){return y0.call(n,o)}))),(e=Gt("tr","")).children.apply(e,lr(["left","top","right","bottom","none"].map(function(o){return y0.call(n,o)}))))),Gt("td","".concat(me,"-border-palette-right")).children(Gt("div","".concat(me,"-toolbar-btn")).child(this.ddColor.el),Gt("div","".concat(me,"-toolbar-btn")).child(this.ddType.el))));this.el.child(a)});function jb(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var Lb=function(t){Ht(e,t);var r=jb(e);function e(){var n;At(this,e);var a=new Wn("border-all"),o=new Fb;return o.change=function(s){n.change(s),n.hide()},n=r.call(this,a,"auto",!1,"bottom-left",o.el)}return Rt(e)}(da);function Bb(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var zb=function(t){Ht(e,t);var r=Bb(e);function e(){return At(this,e),r.call(this,"border")}return Rt(e,[{key:"dropdown",value:function(){return new Lb}}]),e}(ha);function Ub(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var hl=function(t){Ht(e,t);var r=Ub(e);function e(){return At(this,e),r.apply(this,arguments)}return Rt(e,[{key:"element",value:function(){var n=this;return As(be(e.prototype),"element",this).call(this).child(new Wn(this.tag)).on("click",function(){return n.change(n.tag)})}},{key:"setState",value:function(n){this.el.disabled(n)}}]),e}(Ju);function Hb(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var Wb=function(t){Ht(e,t);var r=Hb(e);function e(){return At(this,e),r.call(this,"clearformat")}return Rt(e)}(hl);function Vb(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var $b=function(t){Ht(e,t);var r=Vb(e);function e(){return At(this,e),r.call(this,"paintformat")}return Rt(e,[{key:"setState",value:function(){}}]),e}(Oa);function qb(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var Gb=function(t){Ht(e,t);var r=qb(e);function e(n){return At(this,e),r.call(this,"color",void 0,n)}return Rt(e,[{key:"dropdown",value:function(){var n=this.tag,a=this.value;return new tf(n,a)}}]),e}(ha);function Yb(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var Kb=function(t){Ht(e,t);var r=Yb(e);function e(n){return At(this,e),r.call(this,"bgcolor",void 0,n)}return Rt(e,[{key:"dropdown",value:function(){var n=this.tag,a=this.value;return new tf(n,a)}}]),e}(ha);function Xb(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var Zb=function(t){Ht(e,t);var r=Xb(e);function e(){var n;At(this,e);var a=Ku.map(function(o){return Gt("div","".concat(me,"-item")).on("click",function(){n.setTitle("".concat(o.pt)),n.change(o)}).child("".concat(o.pt))});return n=r.call.apply(r,[this,"10","60px",!0,"bottom-left"].concat(lr(a)))}return Rt(e)}(da);function Jb(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var Qb=function(t){Ht(e,t);var r=Jb(e);function e(){return At(this,e),r.call(this,"font-size")}return Rt(e,[{key:"getValue",value:function(n){return n.pt}},{key:"dropdown",value:function(){return new Zb}}]),e}(ha);function ty(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var ey=function(t){Ht(e,t);var r=ty(e);function e(){var n;At(this,e);var a=f0.map(function(o){return Gt("div","".concat(me,"-item")).on("click",function(){n.setTitle(o.title),n.change(o)}).child(o.title)});return n=r.call.apply(r,[this,f0[0].title,"160px",!0,"bottom-left"].concat(lr(a)))}return Rt(e)}(da);function ry(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var ny=function(t){Ht(e,t);var r=ry(e);function e(){return At(this,e),r.call(this,"font-name")}return Rt(e,[{key:"getValue",value:function(n){return n.key}},{key:"dropdown",value:function(){return new ey}}]),e}(ha);function iy(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var ay=function(t){Ht(e,t);var r=iy(e);function e(){var n;At(this,e);var a=Zo.slice(0);return a.splice(2,0,{key:"divider"}),a.splice(8,0,{key:"divider"}),a=a.map(function(o){var s=Gt("div","".concat(me,"-item"));return o.key==="divider"?s.addClass("divider"):(s.child(o.title()).on("click",function(){n.setTitle(o.title()),n.change(o)}),o.label&&s.child(Gt("div","label").html(o.label))),s}),n=r.call.apply(r,[this,"Normal","220px",!0,"bottom-left"].concat(lr(a)))}return Rt(e,[{key:"setTitle",value:function(n){for(var a=0;a<Zo.length;a+=1)Zo[a].key===n&&this.title.html(Zo[a].title());this.hide()}}]),e}(da);function sy(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var oy=function(t){Ht(e,t);var r=sy(e);function e(){return At(this,e),r.call(this,"format")}return Rt(e,[{key:"getValue",value:function(n){return n.key}},{key:"dropdown",value:function(){return new ay}}]),e}(ha);function cy(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var ly=function(t){Ht(e,t);var r=cy(e);function e(){var n;At(this,e);var a=Xu.map(function(o){return Gt("div","".concat(me,"-item")).on("click",function(){n.hide(),n.change(o)}).child(o.key)});return n=r.call.apply(r,[this,new Wn("formula"),"180px",!0,"bottom-left"].concat(lr(a)))}return Rt(e)}(da);function uy(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var fy=function(t){Ht(e,t);var r=uy(e);function e(){return At(this,e),r.call(this,"formula")}return Rt(e,[{key:"getValue",value:function(n){return n.key}},{key:"dropdown",value:function(){return new ly}}]),e}(ha);function hy(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var dy=function(t){Ht(e,t);var r=hy(e);function e(){return At(this,e),r.call(this,"freeze")}return Rt(e)}(Oa);function py(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var my=function(t){Ht(e,t);var r=py(e);function e(){return At(this,e),r.call(this,"merge")}return Rt(e,[{key:"setState",value:function(n,a){this.el.active(n).disabled(a)}}]),e}(Oa);function vy(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var gy=function(t){Ht(e,t);var r=vy(e);function e(){return At(this,e),r.call(this,"redo","Ctrl+Y")}return Rt(e)}(hl);function by(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var yy=function(t){Ht(e,t);var r=by(e);function e(){return At(this,e),r.call(this,"undo","Ctrl+Z")}return Rt(e)}(hl);function wy(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var _y=function(t){Ht(e,t);var r=wy(e);function e(){return At(this,e),r.call(this,"print","Ctrl+P")}return Rt(e)}(hl);function ky(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var xy=function(t){Ht(e,t);var r=ky(e);function e(){return At(this,e),r.call(this,"textwrap")}return Rt(e)}(Oa);function w0(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var Sy=function(t){Ht(e,t);var r=w0(e);function e(){var n;At(this,e);var a=new Wn("ellipsis"),o=Gt("div","".concat(me,"-toolbar-more"));return(n=r.call(this,a,"auto",!1,"bottom-right",o)).moreBtns=o,n.contentEl.css("max-width","420px"),n}return Rt(e)}(da),Ty=function(t){Ht(e,t);var r=w0(e);function e(){var n;return At(this,e),(n=r.call(this,"more")).el.hide(),n}return Rt(e,[{key:"dropdown",value:function(){return new Sy}},{key:"show",value:function(){this.el.show()}},{key:"hide",value:function(){this.el.hide()}}]),e}(ha);function fo(){return Gt("div","".concat(me,"-toolbar-divider"))}function Ey(){var t=this;this.btns2=[],this.items.forEach(function(r){if(Array.isArray(r))r.forEach(function(s){var i=s.el,c=i.box(),l=i.computedStyle(),u=l.marginLeft,f=l.marginRight;t.btns2.push([i,c.width+parseInt(u,10)+parseInt(f,10)])});else{var e=r.box(),n=r.computedStyle(),a=n.marginLeft,o=n.marginRight;t.btns2.push([r,e.width+parseInt(a,10)+parseInt(o,10)])}})}function _0(){var t,r,e=this.el,n=this.btns,a=this.moreEl,o=this.btns2,s=a.dd,i=s.moreBtns,c=s.contentEl;e.css("width","".concat(this.widthFn()-60,"px"));var l=e.box(),u=160,f=12,h=[],d=[];o.forEach(function(p,m){var v=$e(p,2),b=v[0],g=v[1];u+=g,m===o.length-1||u<l.width?h.push(b):(f+=g,d.push(b))}),(t=n.html("")).children.apply(t,h),(r=i.html("")).children.apply(r,d),c.css("width","".concat(f,"px")),d.length>0?a.show():a.hide()}var Cy=function(){function t(r,e){var n=this,a=arguments.length>2&&arguments[2]!==void 0&&arguments[2];At(this,t),this.data=r,this.change=function(){},this.widthFn=e,this.isHide=a;var o=r.defaultStyle();this.items=[[this.undoEl=new yy,this.redoEl=new gy,new _y,this.paintformatEl=new $b,this.clearformatEl=new Wb],fo(),[this.formatEl=new oy],fo(),[this.fontEl=new ny,this.fontSizeEl=new Qb],fo(),[this.boldEl=new _b,this.italicEl=new xb,this.underlineEl=new Cb,this.strikeEl=new Tb,this.textColorEl=new Gb(o.color)],fo(),[this.fillColorEl=new Kb(o.bgcolor),this.borderEl=new zb,this.mergeEl=new my],fo(),[this.alignEl=new pb(o.align),this.valignEl=new vb(o.valign),this.textwrapEl=new xy],fo(),[this.freezeEl=new dy,this.autofilterEl=new yb,this.formulaEl=new fy,this.moreEl=new Ty]],this.el=Gt("div","".concat(me,"-toolbar")),this.btns=Gt("div","".concat(me,"-toolbar-btns")),this.items.forEach(function(s){Array.isArray(s)?s.forEach(function(i){n.btns.child(i.el),i.change=function(){n.change.apply(n,arguments)}}):n.btns.child(s.el)}),this.el.child(this.btns),a?this.el.hide():(this.reset(),setTimeout(function(){Ey.call(n),_0.call(n)},0),di(window,"resize",function(){_0.call(n)}))}return Rt(t,[{key:"paintformatActive",value:function(){return this.paintformatEl.active()}},{key:"paintformatToggle",value:function(){this.paintformatEl.toggle()}},{key:"trigger",value:function(r){this["".concat(r,"El")].click()}},{key:"resetData",value:function(r){this.data=r,this.reset()}},{key:"reset",value:function(){if(!this.isHide){var r=this.data,e=r.getSelectedCellStyle();this.undoEl.setState(!r.canUndo()),this.redoEl.setState(!r.canRedo()),this.mergeEl.setState(r.canUnmerge(),!r.selector.multiple()),this.autofilterEl.setState(!r.canAutofilter());var n=e.font,a=e.format;this.formatEl.setState(a),this.fontEl.setState(n.name),this.fontSizeEl.setState(n.size),this.boldEl.setState(n.bold),this.italicEl.setState(n.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(r.freezeIsActive())}}}]),t}(),Ay=function(){function t(r,e){var n,a=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"600px";At(this,t),this.title=r,this.el=Gt("div","".concat(me,"-modal")).css("width",o).children(Gt("div","".concat(me,"-modal-header")).children(new Wn("close").on("click.stop",function(){return a.hide()}),this.title),(n=Gt("div","".concat(me,"-modal-content"))).children.apply(n,lr(e))).hide()}return Rt(t,[{key:"show",value:function(){var r=this;this.dimmer=Gt("div","".concat(me,"-dimmer active")),document.body.appendChild(this.dimmer.el);var e=this.el.show().box(),n=e.width,a=e.height,o=document.documentElement,s=o.clientHeight,i=o.clientWidth;this.el.offset({left:(i-n)/2,top:(s-a)/3}),window.xkeydownEsc=function(c){c.keyCode===27&&r.hide()},di(window,"keydown",window.xkeydownEsc)}},{key:"hide",value:function(){this.el.hide(),document.body.removeChild(this.dimmer.el),el(window,"keydown",window.xkeydownEsc),delete window.xkeydownEsc}}]),t}(),ho=function(){function t(r,e){var n=this;At(this,t),this.vchange=function(){},this.el=Gt("div","".concat(me,"-form-input")),this.input=Gt("input","").css("width",r).on("input",function(a){return n.vchange(a)}).attr("placeholder",e),this.el.child(this.input)}return Rt(t,[{key:"focus",value:function(){var r=this;setTimeout(function(){r.input.el.focus()},10)}},{key:"hint",value:function(r){this.input.attr("placeholder",r)}},{key:"val",value:function(r){return this.input.val(r)}}]),t}(),ef=function(){function t(r,e,n){var a=this,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(i){return i},s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){};At(this,t),this.key=r,this.getTitle=o,this.vchange=function(){},this.el=Gt("div","".concat(me,"-form-select")),this.suggest=new a0(e.map(function(i){return{key:i,title:a.getTitle(i)}}),function(i){a.itemClick(i.key),s(i.key),a.vchange(i.key)},n,this.el),this.el.children(this.itemEl=Gt("div","input-text").html(this.getTitle(r)),this.suggest.el).on("click",function(){return a.show()})}return Rt(t,[{key:"show",value:function(){this.suggest.search("")}},{key:"itemClick",value:function(r){this.key=r,this.itemEl.html(this.getTitle(r))}},{key:"val",value:function(r){return r!==void 0?(this.key=r,this.itemEl.html(this.getTitle(r)),this):this.key}}]),t}(),Ry={number:/(^\d+$)|(^\d+(\.\d{0,4})?$)/,date:/^\d{4}-\d{1,2}-\d{1,2}$/},Qa=function(){function t(r,e,n,a){var o=this;At(this,t),this.label="",this.rule=e,n&&(this.label=Gt("label","label").css("width","".concat(a,"px")).html(n)),this.tip=Gt("div","tip").child("tip").hide(),this.input=r,this.input.vchange=function(){return o.validate()},this.el=Gt("div","".concat(me,"-form-field")).children(this.label,r.el,this.tip)}return Rt(t,[{key:"isShow",value:function(){return this.el.css("display")!=="none"}},{key:"show",value:function(){this.el.show()}},{key:"hide",value:function(){return this.el.hide(),this}},{key:"val",value:function(r){return this.input.val(r)}},{key:"hint",value:function(r){this.input.hint(r)}},{key:"validate",value:function(){var r=this.input,e=this.rule,n=this.tip,a=this.el,o=r.val();return e.required&&/^\s*$/.test(o)?(n.html(un("validation.required")),a.addClass("error"),!1):(e.type||e.pattern)&&!(e.pattern||Ry[e.type]).test(o)?(n.html(un("validation.notMatch")),a.addClass("error"),!1):(a.removeClass("error"),!0)}}]),t}();function My(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var Oy=function(t){Ht(e,t);var r=My(e);function e(){var n;At(this,e);var a=new Qa(new ef("cell",["cell"],"100%",function(h){return un("dataValidation.modeType.".concat(h))}),{required:!0},"".concat(un("dataValidation.range"),":"),100),o=new Qa(new ho("120px","E3 or E3:F12"),{required:!0,pattern:/^([A-Z]{1,2}[1-9]\d*)(:[A-Z]{1,2}[1-9]\d*)?$/}),s=new Qa(new ef("list",["list","number","date","phone","email"],"100%",function(h){return un("dataValidation.type.".concat(h))},function(h){return n.criteriaSelected(h)}),{required:!0},"".concat(un("dataValidation.criteria"),":"),100),i=new Qa(new ef("be",["be","nbe","eq","neq","lt","lte","gt","gte"],"160px",function(h){return un("dataValidation.operator.".concat(h))},function(h){return n.criteriaOperatorSelected(h)}),{required:!0}).hide(),c=new Qa(new ho("70px","10"),{required:!0}).hide(),l=new Qa(new ho("70px","100"),{required:!0,type:"number"}).hide(),u=new Qa(new ho("120px","a,b,c"),{required:!0}),f=new Qa(new ho("70px","10"),{required:!0,type:"number"}).hide();return(n=r.call(this,un("contextmenu.validation"),[Gt("div","".concat(me,"-form-fields")).children(a.el,o.el),Gt("div","".concat(me,"-form-fields")).children(s.el,i.el,c.el,l.el,f.el,u.el),Gt("div","".concat(me,"-buttons")).children(new Cs("cancel").on("click",function(){return n.btnClick("cancel")}),new Cs("remove").on("click",function(){return n.btnClick("remove")}),new Cs("save","primary").on("click",function(){return n.btnClick("save")}))])).mf=a,n.rf=o,n.cf=s,n.of=i,n.minvf=c,n.maxvf=l,n.vf=f,n.svf=u,n.change=function(){},n}return Rt(e,[{key:"showVf",value:function(n){var a=n==="date"?"2018-11-12":"10",o=this.vf;o.input.hint(a),o.show()}},{key:"criteriaSelected",value:function(n){var a=this.of,o=this.minvf,s=this.maxvf,i=this.vf,c=this.svf;n==="date"||n==="number"?(a.show(),o.rule.type=n,s.rule.type=n,n==="date"?(o.hint("2018-11-12"),s.hint("2019-11-12")):(o.hint("10"),s.hint("100")),o.show(),s.show(),i.hide(),c.hide()):(n==="list"?c.show():c.hide(),i.hide(),a.hide(),o.hide(),s.hide())}},{key:"criteriaOperatorSelected",value:function(n){if(n){var a=this.minvf,o=this.maxvf,s=this.vf;if(n==="be"||n==="nbe")a.show(),o.show(),s.hide();else{var i=this.cf.val();s.rule.type=i,i==="date"?s.hint("2018-11-12"):s.hint("10"),s.show(),a.hide(),o.hide()}}}},{key:"btnClick",value:function(n){if(n==="cancel")this.hide();else if(n==="remove")this.change("remove"),this.hide();else if(n==="save"){for(var a=["mf","rf","cf","of","svf","vf","minvf","maxvf"],o=0;o<a.length;o+=1){var s=this[a[o]];if(s.isShow()&&!s.validate())return}var i=this.mf.val(),c=this.rf.val(),l=this.cf.val(),u=this.of.val(),f=this.svf.val();l!=="number"&&l!=="date"||(f=u==="be"||u==="nbe"?[this.minvf.val(),this.maxvf.val()]:this.vf.val()),this.change("save",i,c,{type:l,operator:u,required:!1,value:f}),this.hide()}}},{key:"setValue",value:function(n){if(n){var a=this.mf,o=this.rf,s=this.cf,i=this.of,c=this.svf,l=this.vf,u=this.minvf,f=this.maxvf,h=n.mode,d=n.ref,p=n.validator||{type:"list"},m=p.type,v=p.operator,b=p.value;a.val(h||"cell"),o.val(d),s.val(m),i.val(v),Array.isArray(b)?(u.val(b[0]),f.val(b[1])):(c.val(b||""),l.val(b||"")),this.criteriaSelected(m),this.criteriaOperatorSelected(v)}this.show()}}]),e}(Ay);function k0(t){return Gt("div","".concat(me,"-item ").concat(t))}function x0(t){var r=this;return k0("state").child(un("sort.".concat(t))).on("click.stop",function(){return r.itemClick(t)})}function Iy(t){var r=this,e=this.filterbEl,n=this.filterValues;e.html(""),Object.keys(t).forEach(function(a,o){var s=t[a],i=n.includes(a)?"checked":"";e.child(Gt("div","".concat(me,"-item state ").concat(i)).on("click.stop",function(){return r.filterClick(o,a)}).children(a===""?un("filter.empty"):a,Gt("div","label").html("(".concat(s,")"))))})}function S0(){var t=this.filterhEl,r=this.filterValues,e=this.values;t.html("".concat(r.length," / ").concat(e.length)),t.checked(r.length===e.length)}var Ny=function(){function t(){var r=this;At(this,t),this.filterbEl=Gt("div","".concat(me,"-body")),this.filterhEl=Gt("div","".concat(me,"-header state")).on("click.stop",function(){return r.filterClick(0,"all")}),this.el=Gt("div","".concat(me,"-sort-filter")).children(this.sortAscEl=x0.call(this,"asc"),this.sortDescEl=x0.call(this,"desc"),k0("divider"),Gt("div","".concat(me,"-filter")).children(this.filterhEl,this.filterbEl),Gt("div","".concat(me,"-buttons")).children(new Cs("cancel").on("click",function(){return r.btnClick("cancel")}),new Cs("ok","primary").on("click",function(){return r.btnClick("ok")}))).hide(),this.ci=null,this.sortDesc=null,this.values=null,this.filterValues=[]}return Rt(t,[{key:"btnClick",value:function(r){if(r==="ok"){var e=this.ci,n=this.sort,a=this.filterValues;this.ok&&this.ok(e,n,"in",a)}this.hide()}},{key:"itemClick",value:function(r){this.sort=r;var e=this.sortAscEl,n=this.sortDescEl;e.checked(r==="asc"),n.checked(r==="desc")}},{key:"filterClick",value:function(r,e){var n=this.filterbEl,a=this.filterValues,o=this.values,s=n.children();e==="all"?s.length===a.length?(this.filterValues=[],s.forEach(function(i){return Gt(i).checked(!1)})):(this.filterValues=Array.from(o),s.forEach(function(i){return Gt(i).checked(!0)})):Gt(s[r]).toggle("checked")?a.push(e):a.splice(a.findIndex(function(i){return i===e}),1),S0.call(this)}},{key:"set",value:function(r,e,n,a){this.ci=r;var o=this.sortAscEl,s=this.sortDescEl;a!==null?(this.sort=a.order,o.checked(a.asc()),s.checked(a.desc())):(this.sortDesc=null,o.checked(!1),s.checked(!1)),this.values=Object.keys(e),this.filterValues=n?Array.from(n.value):Object.keys(e),Iy.call(this,e,n),S0.call(this)}},{key:"setOffset",value:function(r){var e=this;this.el.offset(r).show();var n=1;Xo(this.el,function(){n<=0&&e.hide(),n-=1})}},{key:"show",value:function(){this.el.show()}},{key:"hide",value:function(){this.el.hide(),co(this.el)}}]),t}();function T0(t,r){var e=Gt("div","".concat(me,"-toast")),n=Gt("div","".concat(me,"-dimmer active"));e.children(Gt("div","".concat(me,"-toast-header")).children(new Wn("close").on("click.stop",function(){return document.body.removeChild(e.el),void document.body.removeChild(n.el)}),t),Gt("div","".concat(me,"-toast-content")).html(r)),document.body.appendChild(e.el),document.body.appendChild(n.el);var a=e.box(),o=a.width,s=a.height,i=document.documentElement,c=i.clientHeight,l=i.clientWidth;e.offset({left:(l-o)/2,top:(c-s)/3})}function rf(t,r){var e,n=this;return function(){for(var a=n,o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];var c=s;e||(e=setTimeout(function(){e=null,t.apply(a,c)},r))}}function Py(){var t=this.data,r=this.verticalScrollbar,e=this.horizontalScrollbar,n=t.getSelectedRect(),a=n.l,o=n.t,s=n.left,i=n.top,c=n.width,l=n.height,u=this.getTableOffset();if(Math.abs(s)+c>u.width)e.move({left:a+c-u.width});else{var f=t.freezeTotalWidth();s<f&&e.move({left:a-1-f})}if(Math.abs(i)+l>u.height)r.move({top:o+l-u.height-1});else{var h=t.freezeTotalHeight();i<h&&r.move({top:o-1-h})}}function Rs(t,r,e){var n=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],a=arguments.length>4&&arguments[4]!==void 0&&arguments[4];if(r!==-1||e!==-1){var o=this.table,s=this.selector,i=this.toolbar,c=this.data;this.contextMenu.setMode(r===-1||e===-1?"row-col":"range");var l=c.getCell(r,e);t?(s.setEnd(r,e,a),this.trigger("cells-selected",l,s.range)):(s.set(r,e,n),this.trigger("cell-selected",l,r,e)),i.reset(),o.render()}}function pa(t,r){var e=this.selector,n=this.data,a=n.rows,o=n.cols,s=$e(e.indexes,2),i=s[0],c=s[1],l=e.range,u=l.eri,f=l.eci;if(t){var h=$e(e.moveIndexes,2);i=h[0],c=h[1]}r==="left"?c>0&&(c-=1):r==="right"?(f!==c&&(c=f),c<o.len-1&&(c+=1)):r==="up"?i>0&&(i-=1):r==="down"?(u!==i&&(i=u),i<a.len-1&&(i+=1)):r==="row-first"?c=0:r==="row-last"?c=o.len-1:r==="col-first"?i=0:r==="col-last"&&(i=a.len-1),t&&(e.moveIndexes=[i,c]),Rs.call(this,t,i,c),Py.call(this)}function Dy(t){if(t.buttons===0&&t.target.className!=="".concat(me,"-resizer-hover")){var r=t.offsetX,e=t.offsetY,n=this.rowResizer,a=this.colResizer,o=this.tableEl,s=this.data,i=s.rows,c=s.cols;if(r>c.indexWidth&&e>i.height)return n.hide(),void a.hide();var l=o.box(),u=s.getCellRectByXY(t.offsetX,t.offsetY);u.ri>=0&&u.ci===-1?(u.width=c.indexWidth,n.show(u,{width:l.width}),i.isHide(u.ri-1)?n.showUnhide(u.ri):n.hideUnhide()):n.hide(),u.ri===-1&&u.ci>=0?(u.height=i.height,a.show(u,{height:l.height}),c.isHide(u.ci-1)?a.showUnhide(u.ci):a.hideUnhide()):a.hide()}}function Fy(t){var r=this.verticalScrollbar,e=this.horizontalScrollbar,n=this.data,a=r.scroll().top,o=e.scroll().left,s=n.rows,i=n.cols,c=t.deltaY,l=t.deltaX,u=function(m,v){var b=m,g=0;do g=v(b),b+=1;while(g<=0);return g},f=function(m){if(m>0){var v=n.scroll.ri+1;if(v<s.len){var b=u(v,function(w){return s.getHeight(w)});r.move({top:a+b-1})}}else{var g=n.scroll.ri-1;if(g>=0){var y=u(g,function(w){return s.getHeight(w)});r.move({top:g===0?0:a-y})}}},h=Math.abs(c),d=Math.abs(l),p=Math.max(h,d);/Firefox/i.test(window.navigator.userAgent)&&rf(f(t.detail),50),p===d&&rf(function(m){if(m>0){var v=n.scroll.ci+1;if(v<i.len){var b=u(v,function(w){return i.getWidth(w)});e.move({left:o+b-1})}}else{var g=n.scroll.ci-1;if(g>=0){var y=u(g,function(w){return i.getWidth(w)});e.move({left:g===0?0:o-y})}}}(l),50),p===h&&rf(f(c),50)}function jy(t,r){var e=this.verticalScrollbar,n=this.horizontalScrollbar,a=e.scroll().top,o=n.scroll().left;t==="left"||t==="right"?n.move({left:o-r}):t!=="up"&&t!=="down"||e.move({top:a-r})}function nf(){var t=this.data,r=this.verticalScrollbar,e=this.getTableOffset().height,n=t.exceptRowTotalHeight(0,-1);r.set(e,t.rows.totalHeight()-n)}function af(){var t=this.data,r=this.horizontalScrollbar,e=this.getTableOffset().width;t&&r.set(e,t.cols.totalWidth())}function Ly(){var t=this.selector,r=this.data,e=this.editor,n=$e(r.freeze,2),a=n[0],o=n[1];if(a>0||o>0){var s=r.freezeTotalWidth(),i=r.freezeTotalHeight();e.setFreezeLengths(s,i)}t.resetAreaOffset()}function pi(){var t=this.tableEl,r=this.overlayerEl,e=this.overlayerCEl,n=this.table,a=this.toolbar,o=this.selector,s=this.el,i=this.getTableOffset(),c=this.getRect();t.attr(c),r.offset(c),e.offset(i),s.css("width","".concat(c.width,"px")),nf.call(this),af.call(this),Ly.call(this),n.render(),a.reset(),o.reset()}function Jo(){var t=this.data,r=this.selector;t.clearClipboard(),r.hideClipboard()}function sf(){var t=this.data,r=this.selector;t.copy(),t.copyToSystemClipboard(),r.showClipboard()}function E0(){var t=this.data,r=this.selector;t.cut(),r.showClipboard()}function Qo(t,r){var e=this.data;if(e.settings.mode!=="read"){if(e.paste(t,function(a){return T0("Tip",a)}))pi.call(this);else if(r){var n=r.clipboardData.getData("text/plain");this.data.pasteFromText(n),pi.call(this)}}}function By(){this.data.hideRowsOrCols(),pi.call(this)}function C0(t,r){this.data.unhideRowsOrCols(t,r),pi.call(this)}function zy(){this.data.autofilter(),pi.call(this)}function Uy(){var t=this.toolbar;t.paintformatActive()&&(Qo.call(this,"format"),Jo.call(this),t.paintformatToggle())}function A0(t){var r=this,e=this.selector,n=this.data,a=this.table,o=this.sortFilter,s=t.offsetX,i=t.offsetY,c=t.target.className==="".concat(me,"-selector-corner"),l=n.getCellRectByXY(s,i),u=l.left,f=l.top,h=l.width,d=l.height,p=l.ri,m=l.ci,v=n.autoFilter;if(v.includes(p,m)&&u+h-20<s&&f+d-20<i){var b=v.items(m,function(g,y){return n.rows.getCell(g,y)});return o.hide(),o.set(m,b,v.getFilter(m),v.getSort(m)),void o.setOffset({left:u,top:f+d+2})}t.shiftKey||(c?e.showAutofill(p,m):Rs.call(this,!1,p,m),Kd(window,function(g){var y=n.getCellRectByXY(g.offsetX,g.offsetY);p=y.ri,m=y.ci,c?e.showAutofill(p,m):g.buttons!==1||g.shiftKey||Rs.call(r,!0,p,m,!0,!0)},function(){c&&e.arange&&n.settings.mode!=="read"&&n.autofill(e.arange,"all",function(g){return T0("Tip",g)})&&a.render(),e.hideAutofill(),Uy.call(r)})),c||t.buttons!==1||t.shiftKey&&Rs.call(this,!0,p,m)}function tc(){var t=this.editor,r=this.data.getSelectedRect(),e=this.getTableOffset(),n="top";r.top>e.height/2&&(n="bottom"),t.setOffset(r,n)}function ec(){var t=this.editor,r=this.data;r.settings.mode!=="read"&&(tc.call(this),t.setCell(r.getSelectedCell(),r.getSelectedValidator()),Jo.call(this))}function Hy(t){var r=this,e=this.data,n=this.table,a=this.selector;e.scrolly(t,function(){a.resetBRLAreaOffset(),tc.call(r),n.render()})}function Wy(t){var r=this,e=this.data,n=this.table,a=this.selector;e.scrollx(t,function(){a.resetBRTAreaOffset(),tc.call(r),n.render()})}function Vy(t,r){var e=t.ri,n=this.table,a=this.selector;this.data.rows.setHeight(e,r),n.render(),a.resetAreaOffset(),nf.call(this),tc.call(this)}function $y(t,r){var e=t.ci,n=this.table,a=this.selector;this.data.cols.setWidth(e,r),n.render(),a.resetAreaOffset(),af.call(this),tc.call(this)}function of(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"finished",e=this.data,n=this.table;if(e.settings.mode!=="read"){e.setSelectedCellText(t,r);var a=e.selector,o=a.ri,s=a.ci;r==="finished"?n.render():this.trigger("cell-edited",t,o,s)}}function dl(t){var r=this.data;r.settings.mode!=="read"&&(t==="insert-row"?r.insert("row"):t==="delete-row"?r.delete("row"):t==="insert-column"?r.insert("column"):t==="delete-column"?r.delete("column"):t==="delete-cell"?r.deleteCell():t==="delete-cell-format"?r.deleteCell("format"):t==="delete-cell-text"?r.deleteCell("text"):t==="cell-printable"?r.setSelectedCellAttr("printable",!0):t==="cell-non-printable"?r.setSelectedCellAttr("printable",!1):t==="cell-editable"?r.setSelectedCellAttr("editable",!0):t==="cell-non-editable"&&r.setSelectedCellAttr("editable",!1),Jo.call(this),pi.call(this))}function qy(t,r){var e=this.data;if(t==="undo")this.undo();else if(t==="redo")this.redo();else if(t==="print")this.print.preview();else if(t==="paintformat")r===!0?sf.call(this):Jo.call(this);else if(t==="clearformat")dl.call(this,"delete-cell-format");else if(t!=="link"){if(t!=="chart")if(t==="autofilter")zy.call(this);else if(t==="freeze")if(r){var n=e.selector,a=n.ri,o=n.ci;this.freeze(a,o)}else this.freeze(0,0);else e.setSelectedCellAttr(t,r),t!=="formula"||e.selector.multiple()||ec.call(this),pi.call(this)}}function Gy(t,r,e,n){this.data.setAutoFilter(t,r,e,n),pi.call(this)}function Yy(){var t,r,e,n,a,o,s=this,i=this.selector,c=this.overlayerEl,l=this.rowResizer,u=this.colResizer,f=this.verticalScrollbar,h=this.horizontalScrollbar,d=this.editor,p=this.contextMenu,m=this.toolbar,v=this.modalValidation,b=this.sortFilter;c.on("mousemove",function(g){Dy.call(s,g)}).on("mousedown",function(g){d.clear(),p.hide(),g.buttons===2?(s.data.xyInSelectedRect(g.offsetX,g.offsetY)||A0.call(s,g),p.setPosition(g.offsetX,g.offsetY),g.stopPropagation()):g.detail===2?ec.call(s):A0.call(s,g)}).on("mousewheel.stop",function(g){Fy.call(s,g)}).on("mouseout",function(g){var y=g.offsetX;g.offsetY<=0&&u.hide(),y<=0&&l.hide()}),i.inputChange=function(g){of.call(s,g,"input"),ec.call(s)},t=c.el,e=(r={move:function(g,y){jy.call(s,g,y)}}).move,n=r.end,a=0,o=0,di(t,"touchstart",function(g){var y=g.touches[0],w=y.pageX,x=y.pageY;a=w,o=x}),di(t,"touchmove",function(g){if(e){var y=g.changedTouches[0],w=y.pageX,x=y.pageY,C=w-a,O=x-o;(Math.abs(C)>10||Math.abs(O)>10)&&(Xd(C,O,g,e),a=w,o=x),g.preventDefault()}}),di(t,"touchend",function(g){if(n){var y=g.changedTouches[0],w=y.pageX,x=y.pageY;Xd(w-a,x-o,g,n)}}),m.change=function(g,y){return qy.call(s,g,y)},b.ok=function(g,y,w,x){return Gy.call(s,g,y,w,x)},l.finishedFn=function(g,y){Vy.call(s,g,y)},u.finishedFn=function(g,y){$y.call(s,g,y)},l.unhideFn=function(g){C0.call(s,"row",g)},u.unhideFn=function(g){C0.call(s,"col",g)},f.moveFn=function(g,y){Hy.call(s,g,y)},h.moveFn=function(g,y){Wy.call(s,g,y)},d.change=function(g,y){of.call(s,y,g)},v.change=function(g){if(g==="save"){for(var y,w=arguments.length,x=new Array(w>1?w-1:0),C=1;C<w;C++)x[C-1]=arguments[C];(y=s.data).addValidation.apply(y,x)}else s.data.removeValidation()},p.itemClick=function(g){g==="validation"?v.setValue(s.data.getSelectedValidation()):g==="copy"?sf.call(s):g==="cut"?E0.call(s):g==="paste"?Qo.call(s,"all"):g==="paste-value"?Qo.call(s,"text"):g==="paste-format"?Qo.call(s,"format"):g==="hide"?By.call(s):dl.call(s,g)},di(window,"resize",function(){s.reload()}),di(window,"click",function(g){s.focusing=c.contains(g.target)}),di(window,"paste",function(g){s.focusing&&(Qo.call(s,"all",g),g.preventDefault())}),di(window,"keydown",function(g){if(s.focusing){var y=g.keyCode||g.which,w=g.key,x=g.ctrlKey,C=g.shiftKey,O=g.metaKey;if(x||O)switch(y){case 90:s.undo(),g.preventDefault();break;case 89:s.redo(),g.preventDefault();break;case 67:sf.call(s),g.preventDefault();break;case 88:E0.call(s),g.preventDefault();break;case 85:m.trigger("underline"),g.preventDefault();break;case 86:break;case 37:pa.call(s,C,"row-first"),g.preventDefault();break;case 38:pa.call(s,C,"col-first"),g.preventDefault();break;case 39:pa.call(s,C,"row-last"),g.preventDefault();break;case 40:pa.call(s,C,"col-last"),g.preventDefault();break;case 32:Rs.call(s,!1,-1,s.data.selector.ci,!1),g.preventDefault();break;case 66:m.trigger("bold");break;case 73:m.trigger("italic")}else{switch(y){case 32:C&&Rs.call(s,!1,s.data.selector.ri,-1,!1);break;case 27:p.hide(),Jo.call(s);break;case 37:pa.call(s,C,"left"),g.preventDefault();break;case 38:pa.call(s,C,"up"),g.preventDefault();break;case 39:pa.call(s,C,"right"),g.preventDefault();break;case 40:pa.call(s,C,"down"),g.preventDefault();break;case 9:d.clear(),pa.call(s,!1,C?"left":"right"),g.preventDefault();break;case 13:d.clear(),pa.call(s,!1,C?"up":"down"),g.preventDefault();break;case 8:dl.call(s,"delete-cell-text"),g.preventDefault()}w==="Delete"?(dl.call(s,"delete-cell-text"),g.preventDefault()):y>=65&&y<=90||y>=48&&y<=57||y>=96&&y<=105||g.key==="="?(of.call(s,g.key,"input"),ec.call(s)):y===113&&ec.call(s)}}})}var Ky=function(){function t(r,e){var n=this;At(this,t),this.eventMap=function(){var c=new Map;function l(f,h){var d;return c.has(f)&&(d=c.get(f),Array.isArray(d)&&d.push(h)||!1)||c.set(f,[].concat(h))}function u(f,h){var d,p;return c.has(f)&&(p=(d=c.get(f)).indexOf(h))>=0&&d.splice(p,1)&&c.get(f).length===0&&c.delete(f)}return{get current(){return c},on:l,once:function(f,h){return l(f,function d(){for(var p=arguments.length,m=new Array(p),v=0;v<p;v++)m[v]=arguments[v];h.call.apply(h,[null].concat(m)),u(f,d)})},fire:function(f,h){return c.has(f)&&function(){var d,p=E2(c.get(f));try{for(p.s();!(d=p.n()).done;){var m=d.value;m.call.apply(m,[null].concat(lr(h)))}}catch(v){p.e(v)}finally{p.f()}}()},removeListener:u,removeAllListeners:function(){c.clear()}}}();var a=e.settings,o=a.view,s=a.showToolbar,i=a.showContextmenu;this.el=Gt("div","".concat(me,"-sheet")),this.toolbar=new Cy(e,o.width,!s),this.print=new ab(e),r.children(this.toolbar.el,this.el,this.print.el),this.data=e,this.tableEl=Gt("canvas","".concat(me,"-table")),this.rowResizer=new Zd(!1,e.rows.height),this.colResizer=new Zd(!0,e.cols.minWidth),this.verticalScrollbar=new Jd(!0),this.horizontalScrollbar=new Jd(!1),this.editor=new V2(K2,function(){return n.getTableOffset()},e.rows.height),this.modalValidation=new Oy,this.contextMenu=new lb(function(){return n.getRect()},!i),this.selector=new R2(e),this.overlayerCEl=Gt("div","".concat(me,"-overlayer-content")).children(this.editor.el,this.selector.el),this.overlayerEl=Gt("div","".concat(me,"-overlayer")).child(this.overlayerCEl),this.sortFilter=new Ny,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),Yy.call(this),pi.call(this),Rs.call(this,!1,0,0)}return Rt(t,[{key:"on",value:function(r,e){return this.eventMap.on(r,e),this}},{key:"trigger",value:function(r){for(var e=this.eventMap,n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];e.fire(r,a)}},{key:"resetData",value:function(r){this.editor.clear(),this.data=r,nf.call(this),af.call(this),this.toolbar.resetData(r),this.print.resetData(r),this.selector.resetData(r),this.table.resetData(r)}},{key:"loadData",value:function(r){return this.data.setData(r),pi.call(this),this}},{key:"freeze",value:function(r,e){return this.data.setFreeze(r,e),pi.call(this),this}},{key:"undo",value:function(){this.data.undo(),pi.call(this)}},{key:"redo",value:function(){this.data.redo(),pi.call(this)}},{key:"reload",value:function(){return pi.call(this),this}},{key:"getRect",value:function(){var r=this.data;return{width:r.viewWidth(),height:r.viewHeight()}}},{key:"getTableOffset",value:function(){var r=this.data,e=r.rows,n=r.cols,a=this.getRect(),o=a.width,s=a.height;return{width:o-n.indexWidth,height:s-e.height,left:n.indexWidth,top:e.height}}}]),t}();function Xy(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}var Zy=function(t){Ht(e,t);var r=Xy(e);function e(n){var a;At(this,e);var o=new Wn("ellipsis");return(a=r.call(this,o,"auto",!1,"top-left")).contentClick=n,a}return Rt(e,[{key:"reset",value:function(n){var a=this,o=n.map(function(s,i){return Gt("div","".concat(me,"-item")).css("width","150px").css("font-weight","normal").on("click",function(){a.contentClick(i),a.hide()}).child(s)});this.setContentChildren.apply(this,lr(o))}},{key:"setTitle",value:function(){}}]),e}(da),Jy=[{key:"delete",title:_r("contextmenu.deleteSheet")}];function Qy(t){var r=this;return Gt("div","".concat(me,"-item")).child(t.title()).on("click",function(){r.itemClick(t.key),r.hide()})}function tw(){var t=this;return Jy.map(function(r){return Qy.call(t,r)})}var ew=function(){function t(){var r;At(this,t),this.el=(r=Gt("div","".concat(me,"-contextmenu")).css("width","160px")).children.apply(r,lr(tw.call(this))).hide(),this.itemClick=function(){}}return Rt(t,[{key:"hide",value:function(){var r=this.el;r.hide(),co(r)}},{key:"setOffset",value:function(r){var e=this.el;e.offset(r),e.show(),Xo(e)}}]),t}(),rw=function(){function t(){var r=this,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){};At(this,t),this.swapFunc=n,this.updateFunc=o,this.dataNames=[],this.activeEl=null,this.deleteEl=null,this.items=[],this.moreEl=new Zy(function(s){r.clickSwap2(r.items[s])}),this.contextMenu=new ew,this.contextMenu.itemClick=a,this.el=Gt("div","".concat(me,"-bottombar")).children(this.contextMenu.el,this.menuEl=Gt("ul","".concat(me,"-menu")).child(Gt("li","").children(new Wn("add").on("click",function(){e()}),Gt("span","").child(this.moreEl))))}return Rt(t,[{key:"addItem",value:function(r,e){var n=this;this.dataNames.push(r);var a=Gt("li",e?"active":"").child(r);a.on("click",function(){n.clickSwap2(a)}).on("contextmenu",function(o){var s=o.target,i=s.offsetLeft,c=s.offsetHeight;n.contextMenu.setOffset({left:i,bottom:c+1}),n.deleteEl=a}).on("dblclick",function(){var o=a.html(),s=new ho("auto","");s.val(o),s.input.on("blur",function(i){var c=i.target.value,l=n.dataNames.findIndex(function(u){return u===o});n.renameItem(l,c)}),a.html("").child(s.el),s.focus()}),e&&this.clickSwap(a),this.items.push(a),this.menuEl.child(a),this.moreEl.reset(this.dataNames)}},{key:"renameItem",value:function(r,e){this.dataNames.splice(r,1,e),this.moreEl.reset(this.dataNames),this.items[r].html("").child(e),this.updateFunc(r,e)}},{key:"clear",value:function(){var r=this;this.items.forEach(function(e){r.menuEl.removeChild(e.el)}),this.items=[],this.dataNames=[],this.moreEl.reset(this.dataNames)}},{key:"deleteItem",value:function(){var r=this.activeEl,e=this.deleteEl;if(this.items.length>1){var n=this.items.findIndex(function(o){return o===e});if(this.items.splice(n,1),this.dataNames.splice(n,1),this.menuEl.removeChild(e.el),this.moreEl.reset(this.dataNames),r===e){var a=$e(this.items,1)[0];return this.activeEl=a,this.activeEl.toggle(),[n,0]}return[n,-1]}return[-1]}},{key:"clickSwap2",value:function(r){var e=this.items.findIndex(function(n){return n===r});this.clickSwap(r),this.activeEl.toggle(),this.swapFunc(e)}},{key:"clickSwap",value:function(r){this.activeEl!==null&&this.activeEl.toggle(),this.activeEl=r}}]),t}();function R0(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),e.push.apply(e,n)}return e}var M0=function(){function t(r){var e=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};At(this,t);var a=r;this.options=function(s){for(var i=1;i<arguments.length;i++){var c=arguments[i]!=null?arguments[i]:{};i%2?R0(Object(c),!0).forEach(function(l){Qc(s,l,c[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(c)):R0(Object(c)).forEach(function(l){Object.defineProperty(s,l,Object.getOwnPropertyDescriptor(c,l))})}return s}({showBottomBar:!0},n),this.sheetIndex=1,this.datas=[],typeof r=="string"&&(a=document.querySelector(r)),this.bottombar=this.options.showBottomBar?new rw(function(){var s=e.addSheet();e.sheet.resetData(s)},function(s){var i=e.datas[s];e.sheet.resetData(i)},function(){e.deleteSheet()},function(s,i){e.datas[s].name=i}):null,this.data=this.addSheet();var o=Gt("div","".concat(me)).on("contextmenu",function(s){return s.preventDefault()});a.appendChild(o.el),this.sheet=new Ky(o,this.data),this.bottombar!==null&&o.child(this.bottombar.el)}return Rt(t,[{key:"addSheet",value:function(r){var e=this,n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],a=r||"sheet".concat(this.sheetIndex),o=new T2(a,this.options);return o.change=function(){for(var s,i=arguments.length,c=new Array(i),l=0;l<i;l++)c[l]=arguments[l];(s=e.sheet).trigger.apply(s,["change"].concat(c))},this.datas.push(o),this.bottombar!==null&&this.bottombar.addItem(a,n),this.sheetIndex+=1,o}},{key:"deleteSheet",value:function(){if(this.bottombar!==null){var r=$e(this.bottombar.deleteItem(),2),e=r[0],n=r[1];e>=0&&(this.datas.splice(e,1),n>=0&&this.sheet.resetData(this.datas[n]))}}},{key:"loadData",value:function(r){var e=Array.isArray(r)?r:[r];if(this.bottombar!==null&&this.bottombar.clear(),this.datas=[],e.length>0)for(var n=0;n<e.length;n+=1){var a=e[n],o=this.addSheet(a.name,n===0);o.setData(a),n===0&&this.sheet.resetData(o)}return this}},{key:"getData",value:function(){return this.datas.map(function(r){return r.getData()})}},{key:"cellText",value:function(r,e,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return this.datas[a].setCellText(r,e,n,"finished"),this}},{key:"cell",value:function(r,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return this.datas[n].getCell(r,e)}},{key:"cellStyle",value:function(r,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return this.datas[n].getCellStyle(r,e)}},{key:"reRender",value:function(){return this.sheet.table.render(),this}},{key:"on",value:function(r,e){return this.sheet.on(r,e),this}},{key:"validate",value:function(){return this.data.validations.errors.size<=0}},{key:"change",value:function(r){return this.sheet.on("change",r),this}}],[{key:"locale",value:function(r,e){Ud(r,e)}}]),t}();function O0(t,r,e,n,a,o,s){try{var i=t[o](s),c=i.value}catch(l){return void e(l)}i.done?r(c):Promise.resolve(c).then(n,a)}function xr(t){return function(){var r=this,e=arguments;return new Promise(function(n,a){var o=t.apply(r,e);function s(c){O0(o,n,a,s,i,"next",c)}function i(c){O0(o,n,a,s,i,"throw",c)}s(void 0)})}}function I0(t,r){this.v=t,this.k=r}function N0(t){return new I0(t,0)}function rc(t){var r,e;function n(o,s){try{var i=t[o](s),c=i.value,l=c instanceof I0;Promise.resolve(l?c.v:c).then(function(u){if(l){var f=o==="return"?"return":"next";if(!c.k||u.done)return n(f,u);u=t[f](u).value}a(i.done?"return":"normal",u)},function(u){n("throw",u)})}catch(u){a("throw",u)}}function a(o,s){switch(o){case"return":r.resolve({value:s,done:!0});break;case"throw":r.reject(s);break;default:r.resolve({value:s,done:!1})}(r=r.next)?n(r.key,r.arg):e=null}this._invoke=function(o,s){return new Promise(function(i,c){var l={key:o,arg:s,resolve:i,reject:c,next:null};e?e=e.next=l:(r=e=l,n(o,s))})},typeof t.return!="function"&&(this.return=void 0)}window&&(window.x_spreadsheet=function(t){return new M0(t,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{})},window.x_spreadsheet.locale=function(t,r){return Ud(t,r)}),rc.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},rc.prototype.next=function(t){return this._invoke("next",t)},rc.prototype.throw=function(t){return this._invoke("throw",t)},rc.prototype.return=function(t){return this._invoke("return",t)};var ur=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Ed!="undefined"?Ed:typeof self!="undefined"?self:{};function P0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var D0={exports:{}},F0={exports:{}};(function(t){function r(e){return t.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})(F0);var nw=F0.exports;(function(t){var r=nw.default;function e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=e=function(){return a},t.exports.__esModule=!0,t.exports.default=t.exports;var n,a={},o=Object.prototype,s=o.hasOwnProperty,i=Object.defineProperty||function(R,F,I){R[F]=I.value},c=typeof Symbol=="function"?Symbol:{},l=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function h(R,F,I){return Object.defineProperty(R,F,{value:I,enumerable:!0,configurable:!0,writable:!0}),R[F]}try{h({},"")}catch(R){h=function(F,I,B){return F[I]=B}}function d(R,F,I,B){var P=F&&F.prototype instanceof w?F:w,H=Object.create(P.prototype),Z=new E(B||[]);return i(H,"_invoke",{value:A(R,I,Z)}),H}function p(R,F,I){try{return{type:"normal",arg:R.call(F,I)}}catch(B){return{type:"throw",arg:B}}}a.wrap=d;var m="suspendedStart",v="suspendedYield",b="executing",g="completed",y={};function w(){}function x(){}function C(){}var O={};h(O,l,function(){return this});var D=Object.getPrototypeOf,j=D&&D(D(T([])));j&&j!==o&&s.call(j,l)&&(O=j);var U=C.prototype=w.prototype=Object.create(O);function L(R){["next","throw","return"].forEach(function(F){h(R,F,function(I){return this._invoke(F,I)})})}function V(R,F){function I(P,H,Z,Y){var dt=p(R[P],R,H);if(dt.type!=="throw"){var gt=dt.arg,bt=gt.value;return bt&&r(bt)=="object"&&s.call(bt,"__await")?F.resolve(bt.__await).then(function(Q){I("next",Q,Z,Y)},function(Q){I("throw",Q,Z,Y)}):F.resolve(bt).then(function(Q){gt.value=Q,Z(gt)},function(Q){return I("throw",Q,Z,Y)})}Y(dt.arg)}var B;i(this,"_invoke",{value:function(P,H){function Z(){return new F(function(Y,dt){I(P,H,Y,dt)})}return B=B?B.then(Z,Z):Z()}})}function A(R,F,I){var B=m;return function(P,H){if(B===b)throw new Error("Generator is already running");if(B===g){if(P==="throw")throw H;return{value:n,done:!0}}for(I.method=P,I.arg=H;;){var Z=I.delegate;if(Z){var Y=N(Z,I);if(Y){if(Y===y)continue;return Y}}if(I.method==="next")I.sent=I._sent=I.arg;else if(I.method==="throw"){if(B===m)throw B=g,I.arg;I.dispatchException(I.arg)}else I.method==="return"&&I.abrupt("return",I.arg);B=b;var dt=p(R,F,I);if(dt.type==="normal"){if(B=I.done?g:v,dt.arg===y)continue;return{value:dt.arg,done:I.done}}dt.type==="throw"&&(B=g,I.method="throw",I.arg=dt.arg)}}}function N(R,F){var I=F.method,B=R.iterator[I];if(B===n)return F.delegate=null,I==="throw"&&R.iterator.return&&(F.method="return",F.arg=n,N(R,F),F.method==="throw")||I!=="return"&&(F.method="throw",F.arg=new TypeError("The iterator does not provide a '"+I+"' method")),y;var P=p(B,R.iterator,F.arg);if(P.type==="throw")return F.method="throw",F.arg=P.arg,F.delegate=null,y;var H=P.arg;return H?H.done?(F[R.resultName]=H.value,F.next=R.nextLoc,F.method!=="return"&&(F.method="next",F.arg=n),F.delegate=null,y):H:(F.method="throw",F.arg=new TypeError("iterator result is not an object"),F.delegate=null,y)}function k(R){var F={tryLoc:R[0]};1 in R&&(F.catchLoc=R[1]),2 in R&&(F.finallyLoc=R[2],F.afterLoc=R[3]),this.tryEntries.push(F)}function S(R){var F=R.completion||{};F.type="normal",delete F.arg,R.completion=F}function E(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(k,this),this.reset(!0)}function T(R){if(R||R===""){var F=R[l];if(F)return F.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var I=-1,B=function P(){for(;++I<R.length;)if(s.call(R,I))return P.value=R[I],P.done=!1,P;return P.value=n,P.done=!0,P};return B.next=B}}throw new TypeError(r(R)+" is not iterable")}return x.prototype=C,i(U,"constructor",{value:C,configurable:!0}),i(C,"constructor",{value:x,configurable:!0}),x.displayName=h(C,f,"GeneratorFunction"),a.isGeneratorFunction=function(R){var F=typeof R=="function"&&R.constructor;return!!F&&(F===x||(F.displayName||F.name)==="GeneratorFunction")},a.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,C):(R.__proto__=C,h(R,f,"GeneratorFunction")),R.prototype=Object.create(U),R},a.awrap=function(R){return{__await:R}},L(V.prototype),h(V.prototype,u,function(){return this}),a.AsyncIterator=V,a.async=function(R,F,I,B,P){P===void 0&&(P=Promise);var H=new V(d(R,F,I,B),P);return a.isGeneratorFunction(F)?H:H.next().then(function(Z){return Z.done?Z.value:H.next()})},L(U),h(U,f,"Generator"),h(U,l,function(){return this}),h(U,"toString",function(){return"[object Generator]"}),a.keys=function(R){var F=Object(R),I=[];for(var B in F)I.push(B);return I.reverse(),function P(){for(;I.length;){var H=I.pop();if(H in F)return P.value=H,P.done=!1,P}return P.done=!0,P}},a.values=T,E.prototype={constructor:E,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(S),!R)for(var F in this)F.charAt(0)==="t"&&s.call(this,F)&&!isNaN(+F.slice(1))&&(this[F]=n)},stop:function(){this.done=!0;var R=this.tryEntries[0].completion;if(R.type==="throw")throw R.arg;return this.rval},dispatchException:function(R){if(this.done)throw R;var F=this;function I(dt,gt){return H.type="throw",H.arg=R,F.next=dt,gt&&(F.method="next",F.arg=n),!!gt}for(var B=this.tryEntries.length-1;B>=0;--B){var P=this.tryEntries[B],H=P.completion;if(P.tryLoc==="root")return I("end");if(P.tryLoc<=this.prev){var Z=s.call(P,"catchLoc"),Y=s.call(P,"finallyLoc");if(Z&&Y){if(this.prev<P.catchLoc)return I(P.catchLoc,!0);if(this.prev<P.finallyLoc)return I(P.finallyLoc)}else if(Z){if(this.prev<P.catchLoc)return I(P.catchLoc,!0)}else{if(!Y)throw new Error("try statement without catch or finally");if(this.prev<P.finallyLoc)return I(P.finallyLoc)}}}},abrupt:function(R,F){for(var I=this.tryEntries.length-1;I>=0;--I){var B=this.tryEntries[I];if(B.tryLoc<=this.prev&&s.call(B,"finallyLoc")&&this.prev<B.finallyLoc){var P=B;break}}P&&(R==="break"||R==="continue")&&P.tryLoc<=F&&F<=P.finallyLoc&&(P=null);var H=P?P.completion:{};return H.type=R,H.arg=F,P?(this.method="next",this.next=P.finallyLoc,y):this.complete(H)},complete:function(R,F){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"&&F&&(this.next=F),y},finish:function(R){for(var F=this.tryEntries.length-1;F>=0;--F){var I=this.tryEntries[F];if(I.finallyLoc===R)return this.complete(I.completion,I.afterLoc),S(I),y}},catch:function(R){for(var F=this.tryEntries.length-1;F>=0;--F){var I=this.tryEntries[F];if(I.tryLoc===R){var B=I.completion;if(B.type==="throw"){var P=B.arg;S(I)}return P}}throw new Error("illegal catch attempt")},delegateYield:function(R,F,I){return this.delegate={iterator:T(R),resultName:F,nextLoc:I},this.method==="next"&&(this.arg=n),y}},a}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(D0);var pl=(0,D0.exports)(),iw=pl;try{regeneratorRuntime=pl}catch(t){typeof globalThis=="object"?globalThis.regeneratorRuntime=pl:Function("r","regeneratorRuntime = r")(pl)}const Ne=P0(iw);function cf(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var j0={exports:{}};function Qt(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=be(t);if(r){var a=be(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return pr(this,e)}}function ml(t,r){var e=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(c,l){if(c){if(typeof c=="string")return L0(c,l);var u=Object.prototype.toString.call(c).slice(8,-1);if(u==="Object"&&c.constructor&&(u=c.constructor.name),u==="Map"||u==="Set")return Array.from(c);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return L0(c,l)}}(t))||r&&t&&typeof t.length=="number"){e&&(t=e);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,s=!0,i=!1;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return s=c.done,c},e:function(c){i=!0,o=c},f:function(){try{s||e.return==null||e.return()}finally{if(i)throw o}}}}function L0(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function B0(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),e.push.apply(e,n)}return e}function fn(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?B0(Object(e),!0).forEach(function(n){Qc(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):B0(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function lf(t){var r,e,n,a=2;for(typeof Symbol!="undefined"&&(e=Symbol.asyncIterator,n=Symbol.iterator);a--;){if(e&&(r=t[e])!=null)return r.call(t);if(n&&(r=t[n])!=null)return new uf(r.call(t));e="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function uf(t){function r(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var n=e.done;return Promise.resolve(e.value).then(function(a){return{value:a,done:n}})}return(uf=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return r(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return n===void 0?Promise.resolve({value:e,done:!0}):r(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return n===void 0?Promise.reject(e):r(n.apply(this.s,arguments))}},new uf(t)}j0.exports=function(){function t(r,e,n){function a(i,c){if(!e[i]){if(!r[i]){if(!c&&cf)return cf(i);if(o)return o(i,!0);var l=new Error("Cannot find module '"+i+"'");throw l.code="MODULE_NOT_FOUND",l}var u=e[i]={exports:{}};r[i][0].call(u.exports,function(f){return a(r[i][1][f]||f)},u,u.exports,t,r,e,n)}return e[i].exports}for(var o=cf,s=0;s<n.length;s++)a(n[s]);return a}return t}()({1:[function(t,r,e){var n=t("fs"),a=t("fast-csv"),o=t("dayjs/plugin/customParseFormat"),s=t("dayjs/plugin/utc"),i=t("dayjs").extend(o).extend(s),c=t("../utils/stream-buf"),l=t("../utils/utils").fs.exists,u={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!"}},f=function(){function h(d){At(this,h),this.workbook=d,this.worksheet=null}return Rt(h,[{key:"readFile",value:function(){var d=xr(Ne.mark(function m(v,b){var g,y;return Ne.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return b=b||{},w.next=3,l(v);case 3:if(w.sent){w.next=5;break}throw new Error("File not found: ".concat(v));case 5:return g=n.createReadStream(v),w.next=8,this.read(g,b);case 8:return y=w.sent,g.close(),w.abrupt("return",y);case 11:case"end":return w.stop()}},m,this)}));function p(m,v){return d.apply(this,arguments)}return p}()},{key:"read",value:function(d,p){var m=this;return p=p||{},new Promise(function(v,b){var g=m.workbook.addWorksheet(p.sheetName),y=p.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],w=p.map||function(C){if(C==="")return null;var O=Number(C);if(!Number.isNaN(O)&&O!==1/0)return O;var D=y.reduce(function(U,L){if(U)return U;var V=i(C,L,!0);return V.isValid()?V:null},null);if(D)return new Date(D.valueOf());var j=u[C];return j!==void 0?j:C},x=a.parse(p.parserOptions).on("data",function(C){g.addRow(C.map(w))}).on("end",function(){x.emit("worksheet",g)});x.on("worksheet",v).on("error",b),d.pipe(x)})}},{key:"createInputStream",value:function(){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")}},{key:"write",value:function(d,p){var m=this;return new Promise(function(v,b){p=p||{};var g=m.workbook.getWorksheet(p.sheetName||p.sheetId),y=a.format(p.formatterOptions);d.on("finish",function(){v()}),y.on("error",b),y.pipe(d);var w=p,x=w.dateFormat,C=w.dateUTC,O=p.map||function(U){if(U){if(U.text||U.hyperlink)return U.hyperlink||U.text||"";if(U.formula||U.result)return U.result||"";if(U instanceof Date)return x?C?i.utc(U).format(x):i(U).format(x):C?i.utc(U).format():i(U).format();if(U.error)return U.error;if(typeof U=="object")return JSON.stringify(U)}return U},D=p.includeEmptyRows===void 0||p.includeEmptyRows,j=1;g&&g.eachRow(function(U,L){if(D)for(;j++<L-1;)y.write([]);var V=U.values;V.shift(),y.write(V.map(O)),j=L}),y.end()})}},{key:"writeFile",value:function(d,p){var m={encoding:(p=p||{}).encoding||"utf8"},v=n.createWriteStream(d,m);return this.write(v,p)}},{key:"writeBuffer",value:function(){var d=xr(Ne.mark(function m(v){var b;return Ne.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return b=new c,g.next=3,this.write(b,v);case 3:return g.abrupt("return",b.read());case 4:case"end":return g.stop()}},m,this)}));function p(m){return d.apply(this,arguments)}return p}()}]),h}();r.exports=f},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(t,r,e){var n=t("../utils/col-cache"),a=function(){function o(s,i){At(this,o);var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=s,i)if(typeof i=="string"){var l=n.decodeAddress(i);this.nativeCol=l.col+c,this.nativeColOff=0,this.nativeRow=l.row+c,this.nativeRowOff=0}else i.nativeCol!==void 0?(this.nativeCol=i.nativeCol||0,this.nativeColOff=i.nativeColOff||0,this.nativeRow=i.nativeRow||0,this.nativeRowOff=i.nativeRowOff||0):i.col!==void 0?(this.col=i.col+c,this.row=i.row+c):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}return Rt(o,[{key:"col",get:function(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth},set:function(s){this.nativeCol=Math.floor(s),this.nativeColOff=Math.floor((s-this.nativeCol)*this.colWidth)}},{key:"row",get:function(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight},set:function(s){this.nativeRow=Math.floor(s),this.nativeRowOff=Math.floor((s-this.nativeRow)*this.rowHeight)}},{key:"colWidth",get:function(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}},{key:"rowHeight",get:function(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}},{key:"model",get:function(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}},set:function(s){this.nativeCol=s.nativeCol,this.nativeColOff=s.nativeColOff,this.nativeRow=s.nativeRow,this.nativeRowOff=s.nativeRowOff}}],[{key:"asInstance",value:function(s){return s instanceof o||s==null?s:new o(s)}}]),o}();r.exports=a},{"../utils/col-cache":19}],3:[function(t,r,e){var n=t("../utils/col-cache"),a=t("../utils/under-dash"),o=t("./enums"),s=t("../utils/shared-formula").slideFormula,i=t("./note"),c=function(){function C(O,D,j){if(At(this,C),!O||!D)throw new Error("A Cell needs a Row");this._row=O,this._column=D,n.validateAddress(j),this._address=j,this._value=x.create(C.Types.Null,this),this.style=this._mergeStyle(O.style,D.style,{}),this._mergeCount=0}return Rt(C,[{key:"worksheet",get:function(){return this._row.worksheet}},{key:"workbook",get:function(){return this._row.worksheet.workbook}},{key:"destroy",value:function(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}},{key:"numFmt",get:function(){return this.style.numFmt},set:function(O){this.style.numFmt=O}},{key:"font",get:function(){return this.style.font},set:function(O){this.style.font=O}},{key:"alignment",get:function(){return this.style.alignment},set:function(O){this.style.alignment=O}},{key:"border",get:function(){return this.style.border},set:function(O){this.style.border=O}},{key:"fill",get:function(){return this.style.fill},set:function(O){this.style.fill=O}},{key:"protection",get:function(){return this.style.protection},set:function(O){this.style.protection=O}},{key:"_mergeStyle",value:function(O,D,j){var U=O&&O.numFmt||D&&D.numFmt;U&&(j.numFmt=U);var L=O&&O.font||D&&D.font;L&&(j.font=L);var V=O&&O.alignment||D&&D.alignment;V&&(j.alignment=V);var A=O&&O.border||D&&D.border;A&&(j.border=A);var N=O&&O.fill||D&&D.fill;N&&(j.fill=N);var k=O&&O.protection||D&&D.protection;return k&&(j.protection=k),j}},{key:"address",get:function(){return this._address}},{key:"row",get:function(){return this._row.number}},{key:"col",get:function(){return this._column.number}},{key:"$col$row",get:function(){return"$".concat(this._column.letter,"$").concat(this.row)}},{key:"type",get:function(){return this._value.type}},{key:"effectiveType",get:function(){return this._value.effectiveType}},{key:"toCsvString",value:function(){return this._value.toCsvString()}},{key:"addMergeRef",value:function(){this._mergeCount++}},{key:"releaseMergeRef",value:function(){this._mergeCount--}},{key:"isMerged",get:function(){return this._mergeCount>0||this.type===C.Types.Merge}},{key:"merge",value:function(O,D){this._value.release(),this._value=x.create(C.Types.Merge,this,O),D||(this.style=O.style)}},{key:"unmerge",value:function(){this.type===C.Types.Merge&&(this._value.release(),this._value=x.create(C.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}},{key:"isMergedTo",value:function(O){return this._value.type===C.Types.Merge&&this._value.isMergedTo(O)}},{key:"master",get:function(){return this.type===C.Types.Merge?this._value.master:this}},{key:"isHyperlink",get:function(){return this._value.type===C.Types.Hyperlink}},{key:"hyperlink",get:function(){return this._value.hyperlink}},{key:"value",get:function(){return this._value.value},set:function(O){this.type!==C.Types.Merge?(this._value.release(),this._value=x.create(x.getType(O),this,O)):this._value.master.value=O}},{key:"note",get:function(){return this._comment&&this._comment.note},set:function(O){this._comment=new i(O)}},{key:"text",get:function(){return this._value.toString()}},{key:"html",get:function(){return a.escapeHtml(this.text)}},{key:"toString",value:function(){return this.text}},{key:"_upgradeToHyperlink",value:function(O){this.type===C.Types.String&&(this._value=x.create(C.Types.Hyperlink,this,{text:this._value.value,hyperlink:O}))}},{key:"formula",get:function(){return this._value.formula}},{key:"result",get:function(){return this._value.result}},{key:"formulaType",get:function(){return this._value.formulaType}},{key:"fullAddress",get:function(){return{sheetName:this._row.worksheet.name,address:this.address,row:this.row,col:this.col}}},{key:"name",get:function(){return this.names[0]},set:function(O){this.names=[O]}},{key:"names",get:function(){return this.workbook.definedNames.getNamesEx(this.fullAddress)},set:function(O){var D=this,j=this.workbook.definedNames;j.removeAllNames(this.fullAddress),O.forEach(function(U){j.addEx(D.fullAddress,U)})}},{key:"addName",value:function(O){this.workbook.definedNames.addEx(this.fullAddress,O)}},{key:"removeName",value:function(O){this.workbook.definedNames.removeEx(this.fullAddress,O)}},{key:"removeAllNames",value:function(){this.workbook.definedNames.removeAllNames(this.fullAddress)}},{key:"_dataValidations",get:function(){return this.worksheet.dataValidations}},{key:"dataValidation",get:function(){return this._dataValidations.find(this.address)},set:function(O){this._dataValidations.add(this.address,O)}},{key:"model",get:function(){var O=this._value.model;return O.style=this.style,this._comment&&(O.comment=this._comment.model),O},set:function(O){this._value.release(),this._value=x.create(O.type,this),this._value.model=O,O.comment&&O.comment.type==="note"&&(this._comment=i.fromModel(O.comment)),O.style?this.style=O.style:this.style={}}}]),C}();c.Types=o.ValueType;var l=function(){function C(O){At(this,C),this.model={address:O.address,type:c.Types.Null}}return Rt(C,[{key:"value",get:function(){return null},set:function(O){}},{key:"type",get:function(){return c.Types.Null}},{key:"effectiveType",get:function(){return c.Types.Null}},{key:"address",get:function(){return this.model.address},set:function(O){this.model.address=O}},{key:"toCsvString",value:function(){return""}},{key:"release",value:function(){}},{key:"toString",value:function(){return""}}]),C}(),u=function(){function C(O,D){At(this,C),this.model={address:O.address,type:c.Types.Number,value:D}}return Rt(C,[{key:"value",get:function(){return this.model.value},set:function(O){this.model.value=O}},{key:"type",get:function(){return c.Types.Number}},{key:"effectiveType",get:function(){return c.Types.Number}},{key:"address",get:function(){return this.model.address},set:function(O){this.model.address=O}},{key:"toCsvString",value:function(){return this.model.value.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}}]),C}(),f=function(){function C(O,D){At(this,C),this.model={address:O.address,type:c.Types.String,value:D}}return Rt(C,[{key:"value",get:function(){return this.model.value},set:function(O){this.model.value=O}},{key:"type",get:function(){return c.Types.String}},{key:"effectiveType",get:function(){return c.Types.String}},{key:"address",get:function(){return this.model.address},set:function(O){this.model.address=O}},{key:"toCsvString",value:function(){return'"'.concat(this.model.value.replace(/"/g,'""'),'"')}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value}}]),C}(),h=function(){function C(O,D){At(this,C),this.model={address:O.address,type:c.Types.String,value:D}}return Rt(C,[{key:"value",get:function(){return this.model.value},set:function(O){this.model.value=O}},{key:"toString",value:function(){return this.model.value.richText.map(function(O){return O.text}).join("")}},{key:"type",get:function(){return c.Types.RichText}},{key:"effectiveType",get:function(){return c.Types.RichText}},{key:"address",get:function(){return this.model.address},set:function(O){this.model.address=O}},{key:"toCsvString",value:function(){return'"'.concat(this.text.replace(/"/g,'""'),'"')}},{key:"release",value:function(){}}]),C}(),d=function(){function C(O,D){At(this,C),this.model={address:O.address,type:c.Types.Date,value:D}}return Rt(C,[{key:"value",get:function(){return this.model.value},set:function(O){this.model.value=O}},{key:"type",get:function(){return c.Types.Date}},{key:"effectiveType",get:function(){return c.Types.Date}},{key:"address",get:function(){return this.model.address},set:function(O){this.model.address=O}},{key:"toCsvString",value:function(){return this.model.value.toISOString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}}]),C}(),p=function(){function C(O,D){At(this,C),this.model={address:O.address,type:c.Types.Hyperlink,text:D?D.text:void 0,hyperlink:D?D.hyperlink:void 0},D&&D.tooltip&&(this.model.tooltip=D.tooltip)}return Rt(C,[{key:"value",get:function(){var O={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(O.tooltip=this.model.tooltip),O},set:function(O){this.model={text:O.text,hyperlink:O.hyperlink},O.tooltip&&(this.model.tooltip=O.tooltip)}},{key:"text",get:function(){return this.model.text},set:function(O){this.model.text=O}},{key:"hyperlink",get:function(){return this.model.hyperlink},set:function(O){this.model.hyperlink=O}},{key:"type",get:function(){return c.Types.Hyperlink}},{key:"effectiveType",get:function(){return c.Types.Hyperlink}},{key:"address",get:function(){return this.model.address},set:function(O){this.model.address=O}},{key:"toCsvString",value:function(){return this.model.hyperlink}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.text}}]),C}(),m=function(){function C(O,D){At(this,C),this.model={address:O.address,type:c.Types.Merge,master:D?D.address:void 0},this._master=D,D&&D.addMergeRef()}return Rt(C,[{key:"value",get:function(){return this._master.value},set:function(O){O instanceof c?(this._master&&this._master.releaseMergeRef(),O.addMergeRef(),this._master=O):this._master.value=O}},{key:"isMergedTo",value:function(O){return O===this._master}},{key:"master",get:function(){return this._master}},{key:"type",get:function(){return c.Types.Merge}},{key:"effectiveType",get:function(){return this._master.effectiveType}},{key:"address",get:function(){return this.model.address},set:function(O){this.model.address=O}},{key:"toCsvString",value:function(){return""}},{key:"release",value:function(){this._master.releaseMergeRef()}},{key:"toString",value:function(){return this.value.toString()}}]),C}(),v=function(){function C(O,D){At(this,C),this.cell=O,this.model={address:O.address,type:c.Types.Formula,shareType:D?D.shareType:void 0,ref:D?D.ref:void 0,formula:D?D.formula:void 0,sharedFormula:D?D.sharedFormula:void 0,result:D?D.result:void 0}}return Rt(C,[{key:"_copyModel",value:function(O){var D={},j=function(U){var L=O[U];L&&(D[U]=L)};return j("formula"),j("result"),j("ref"),j("shareType"),j("sharedFormula"),D}},{key:"value",get:function(){return this._copyModel(this.model)},set:function(O){this.model=this._copyModel(O)}},{key:"validate",value:function(O){switch(x.getType(O)){case c.Types.Null:case c.Types.String:case c.Types.Number:case c.Types.Date:break;case c.Types.Hyperlink:case c.Types.Formula:default:throw new Error("Cannot process that type of result value")}}},{key:"dependencies",get:function(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}},{key:"formula",get:function(){return this.model.formula||this._getTranslatedFormula()},set:function(O){this.model.formula=O}},{key:"formulaType",get:function(){return this.model.formula?o.FormulaType.Master:this.model.sharedFormula?o.FormulaType.Shared:o.FormulaType.None}},{key:"result",get:function(){return this.model.result},set:function(O){this.model.result=O}},{key:"type",get:function(){return c.Types.Formula}},{key:"effectiveType",get:function(){var O=this.model.result;return O==null?o.ValueType.Null:O instanceof String||typeof O=="string"?o.ValueType.String:typeof O=="number"?o.ValueType.Number:O instanceof Date?o.ValueType.Date:O.text&&O.hyperlink?o.ValueType.Hyperlink:O.formula?o.ValueType.Formula:o.ValueType.Null}},{key:"address",get:function(){return this.model.address},set:function(O){this.model.address=O}},{key:"_getTranslatedFormula",value:function(){if(!this._translatedFormula&&this.model.sharedFormula){var O=this.cell.worksheet.findCell(this.model.sharedFormula);this._translatedFormula=O&&s(O.formula,O.address,this.model.address)}return this._translatedFormula}},{key:"toCsvString",value:function(){return"".concat(this.model.result||"")}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.result?this.model.result.toString():""}}]),C}(),b=function(){function C(O,D){At(this,C),this.model={address:O.address,type:c.Types.SharedString,value:D}}return Rt(C,[{key:"value",get:function(){return this.model.value},set:function(O){this.model.value=O}},{key:"type",get:function(){return c.Types.SharedString}},{key:"effectiveType",get:function(){return c.Types.SharedString}},{key:"address",get:function(){return this.model.address},set:function(O){this.model.address=O}},{key:"toCsvString",value:function(){return this.model.value.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}}]),C}(),g=function(){function C(O,D){At(this,C),this.model={address:O.address,type:c.Types.Boolean,value:D}}return Rt(C,[{key:"value",get:function(){return this.model.value},set:function(O){this.model.value=O}},{key:"type",get:function(){return c.Types.Boolean}},{key:"effectiveType",get:function(){return c.Types.Boolean}},{key:"address",get:function(){return this.model.address},set:function(O){this.model.address=O}},{key:"toCsvString",value:function(){return this.model.value?1:0}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}}]),C}(),y=function(){function C(O,D){At(this,C),this.model={address:O.address,type:c.Types.Error,value:D}}return Rt(C,[{key:"value",get:function(){return this.model.value},set:function(O){this.model.value=O}},{key:"type",get:function(){return c.Types.Error}},{key:"effectiveType",get:function(){return c.Types.Error}},{key:"address",get:function(){return this.model.address},set:function(O){this.model.address=O}},{key:"toCsvString",value:function(){return this.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.error.toString()}}]),C}(),w=function(){function C(O,D){At(this,C),this.model={address:O.address,type:c.Types.String,value:JSON.stringify(D),rawValue:D}}return Rt(C,[{key:"value",get:function(){return this.model.rawValue},set:function(O){this.model.rawValue=O,this.model.value=JSON.stringify(O)}},{key:"type",get:function(){return c.Types.String}},{key:"effectiveType",get:function(){return c.Types.String}},{key:"address",get:function(){return this.model.address},set:function(O){this.model.address=O}},{key:"toCsvString",value:function(){return this.model.value}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value}}]),C}(),x={getType:function(C){return C==null?c.Types.Null:C instanceof String||typeof C=="string"?c.Types.String:typeof C=="number"?c.Types.Number:typeof C=="boolean"?c.Types.Boolean:C instanceof Date?c.Types.Date:C.text&&C.hyperlink?c.Types.Hyperlink:C.formula||C.sharedFormula?c.Types.Formula:C.richText?c.Types.RichText:C.sharedString?c.Types.SharedString:C.error?c.Types.Error:c.Types.JSON},types:[{t:c.Types.Null,f:l},{t:c.Types.Number,f:u},{t:c.Types.String,f},{t:c.Types.Date,f:d},{t:c.Types.Hyperlink,f:p},{t:c.Types.Formula,f:v},{t:c.Types.Merge,f:m},{t:c.Types.JSON,f:w},{t:c.Types.SharedString,f:b},{t:c.Types.RichText,f:h},{t:c.Types.Boolean,f:g},{t:c.Types.Error,f:y}].reduce(function(C,O){return C[O.t]=O.f,C},[]),create:function(C,O,D){var j=this.types[C];if(!j)throw new Error("Could not create Value of type ".concat(C));return new j(O,D)}};r.exports=c},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(t,r,e){var n=t("../utils/under-dash"),a=t("./enums"),o=t("../utils/col-cache"),s=9,i=function(){function c(l,u,f){At(this,c),this._worksheet=l,this._number=u,f!==!1&&(this.defn=f)}return Rt(c,[{key:"number",get:function(){return this._number}},{key:"worksheet",get:function(){return this._worksheet}},{key:"letter",get:function(){return o.n2l(this._number)}},{key:"isCustomWidth",get:function(){return this.width!==void 0&&this.width!==s}},{key:"defn",get:function(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}},set:function(l){l?(this.key=l.key,this.width=l.width!==void 0?l.width:s,this.outlineLevel=l.outlineLevel,l.style?this.style=l.style:this.style={},this.header=l.header,this._hidden=!!l.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}},{key:"headers",get:function(){return this._header&&this._header instanceof Array?this._header:[this._header]}},{key:"header",get:function(){return this._header},set:function(l){var u=this;l!==void 0?(this._header=l,this.headers.forEach(function(f,h){u._worksheet.getCell(h+1,u.number).value=f})):this._header=void 0}},{key:"key",get:function(){return this._key},set:function(l){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=l,l&&this._worksheet.setColumnKey(this._key,this)}},{key:"hidden",get:function(){return!!this._hidden},set:function(l){this._hidden=l}},{key:"outlineLevel",get:function(){return this._outlineLevel||0},set:function(l){this._outlineLevel=l}},{key:"collapsed",get:function(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}},{key:"toString",value:function(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}},{key:"equivalentTo",value:function(l){return this.width===l.width&&this.hidden===l.hidden&&this.outlineLevel===l.outlineLevel&&n.isEqual(this.style,l.style)}},{key:"isDefault",get:function(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;var l=this.style;return!l||!(l.font||l.numFmt||l.alignment||l.border||l.fill||l.protection)}},{key:"headerCount",get:function(){return this.headers.length}},{key:"eachCell",value:function(l,u){var f=this.number;u||(u=l,l=null),this._worksheet.eachRow(l,function(h,d){u(h.getCell(f),d)})}},{key:"values",get:function(){var l=[];return this.eachCell(function(u,f){u&&u.type!==a.ValueType.Null&&(l[f]=u.value)}),l},set:function(l){var u=this;if(l){var f=this.number,h=0;l.hasOwnProperty("0")&&(h=1),l.forEach(function(d,p){u._worksheet.getCell(p+h,f).value=d})}}},{key:"_applyStyle",value:function(l,u){return this.style[l]=u,this.eachCell(function(f){f[l]=u}),u}},{key:"numFmt",get:function(){return this.style.numFmt},set:function(l){this._applyStyle("numFmt",l)}},{key:"font",get:function(){return this.style.font},set:function(l){this._applyStyle("font",l)}},{key:"alignment",get:function(){return this.style.alignment},set:function(l){this._applyStyle("alignment",l)}},{key:"protection",get:function(){return this.style.protection},set:function(l){this._applyStyle("protection",l)}},{key:"border",get:function(){return this.style.border},set:function(l){this._applyStyle("border",l)}},{key:"fill",get:function(){return this.style.fill},set:function(l){this._applyStyle("fill",l)}}],[{key:"toModel",value:function(l){var u=[],f=null;return l&&l.forEach(function(h,d){h.isDefault?f&&(f=null):f&&h.equivalentTo(f)?f.max=d+1:(f={min:d+1,max:d+1,width:h.width!==void 0?h.width:s,style:h.style,isCustomWidth:h.isCustomWidth,hidden:h.hidden,outlineLevel:h.outlineLevel,collapsed:h.collapsed},u.push(f))}),u.length?u:void 0}},{key:"fromModel",value:function(l,u){var f=[],h=1,d=0;for(u=(u=u||[]).sort(function(m,v){return m.min-v.min});d<u.length;){for(var p=u[d++];h<p.min;)f.push(new c(l,h++));for(;h<=p.max;)f.push(new c(l,h++,p))}return f.length?f:null}}]),c}();r.exports=i},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(t,r,e){var n=function(){function a(o){At(this,a),this.model=o||{}}return Rt(a,[{key:"add",value:function(o,s){return this.model[o]=s}},{key:"find",value:function(o){return this.model[o]}},{key:"remove",value:function(o){this.model[o]=void 0}}]),a}();r.exports=n},{}],6:[function(t,r,e){var n=t("../utils/under-dash"),a=t("../utils/col-cache"),o=t("../utils/cell-matrix"),s=t("./range"),i=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,c=function(){function l(){At(this,l),this.matrixMap={}}return Rt(l,[{key:"getMatrix",value:function(u){return this.matrixMap[u]||(this.matrixMap[u]=new o)}},{key:"add",value:function(u,f){var h=a.decodeEx(u);this.addEx(h,f)}},{key:"addEx",value:function(u,f){var h=this.getMatrix(f);if(u.top)for(var d=u.left;d<=u.right;d++)for(var p=u.top;p<=u.bottom;p++){var m={sheetName:u.sheetName,address:a.n2l(d)+p,row:p,col:d};h.addCellEx(m)}else h.addCellEx(u)}},{key:"remove",value:function(u,f){var h=a.decodeEx(u);this.removeEx(h,f)}},{key:"removeEx",value:function(u,f){this.getMatrix(f).removeCellEx(u)}},{key:"removeAllNames",value:function(u){n.each(this.matrixMap,function(f){f.removeCellEx(u)})}},{key:"forEach",value:function(u){n.each(this.matrixMap,function(f,h){f.forEach(function(d){u(h,d)})})}},{key:"getNames",value:function(u){return this.getNamesEx(a.decodeEx(u))}},{key:"getNamesEx",value:function(u){return n.map(this.matrixMap,function(f,h){return f.findCellEx(u)&&h}).filter(Boolean)}},{key:"_explore",value:function(u,f){f.mark=!1;var h,d,p=f.sheetName,m=new s(f.row,f.col,f.row,f.col,p);function v(g,y){var w=u.findCellAt(p,g,f.col);return!(!w||!w.mark||(m[y]=g,w.mark=!1,0))}for(d=f.row-1;v(d,"top");d--);for(d=f.row+1;v(d,"bottom");d++);function b(g,y){var w=[];for(d=m.top;d<=m.bottom;d++){var x=u.findCellAt(p,d,g);if(!x||!x.mark)return!1;w.push(x)}m[y]=g;for(var C=0;C<w.length;C++)w[C].mark=!1;return!0}for(h=f.col-1;b(h,"left");h--);for(h=f.col+1;b(h,"right");h++);return m}},{key:"getRanges",value:function(u,f){var h=this;return(f=f||this.matrixMap[u])?(f.forEach(function(d){d.mark=!0}),{name:u,ranges:f.map(function(d){return d.mark&&h._explore(f,d)}).filter(Boolean).map(function(d){return d.$shortRange})}):{name:u,ranges:[]}}},{key:"normaliseMatrix",value:function(u,f){u.forEachInSheet(f,function(h,d,p){h&&(h.row===d&&h.col===p||(h.row=d,h.col=p,h.address=a.n2l(p)+d))})}},{key:"spliceRows",value:function(u,f,h,d){var p=this;n.each(this.matrixMap,function(m){m.spliceRows(u,f,h,d),p.normaliseMatrix(m,u)})}},{key:"spliceColumns",value:function(u,f,h,d){var p=this;n.each(this.matrixMap,function(m){m.spliceColumns(u,f,h,d),p.normaliseMatrix(m,u)})}},{key:"model",get:function(){var u=this;return n.map(this.matrixMap,function(f,h){return u.getRanges(h,f)}).filter(function(f){return f.ranges.length})},set:function(u){var f=this.matrixMap={};u.forEach(function(h){var d=f[h.name]=new o;h.ranges.forEach(function(p){i.test(p.split("!").pop()||"")&&d.addCell(p)})})}}]),l}();r.exports=c},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(t,r,e){r.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(t,r,e){var n=t("../utils/col-cache"),a=t("./anchor"),o=function(){function s(i,c){At(this,s),this.worksheet=i,this.model=c}return Rt(s,[{key:"model",get:function(){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:function(i){var c=i.type,l=i.imageId,u=i.range,f=i.hyperlinks;if(this.type=c,this.imageId=l,c==="image")if(typeof u=="string"){var h=n.decode(u);this.range={tl:new a(this.worksheet,{col:h.left,row:h.top},-1),br:new a(this.worksheet,{col:h.right,row:h.bottom},0),editAs:"oneCell"}}else this.range={tl:new a(this.worksheet,u.tl,0),br:u.br&&new a(this.worksheet,u.br,0),ext:u.ext,editAs:u.editAs,hyperlinks:f||u.hyperlinks}}}]),s}();r.exports=o},{"../utils/col-cache":19,"./anchor":2}],9:[function(t,r,e){var n=t("../utils/under-dash"),a=function(){function o(s){At(this,o),this.note=s}return Rt(o,[{key:"model",get:function(){var s=null;return s=typeof this.note=="string"?{type:"note",note:{texts:[{text:this.note}]}}:{type:"note",note:this.note},n.deepMerge({},o.DEFAULT_CONFIGS,s)},set:function(s){var i=s.note,c=i.texts;c.length===1&&Object.keys(c[0]).length===1?this.note=c[0].text:this.note=i}}],[{key:"fromModel",value:function(s){var i=new o;return i.model=s,i}}]),o}();a.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},r.exports=a},{"../utils/under-dash":26}],10:[function(t,r,e){var n=t("../utils/col-cache"),a=function(){function o(){At(this,o),this.decode(arguments)}return Rt(o,[{key:"setTLBR",value:function(s,i,c,l,u){if(arguments.length<4){var f=n.decodeAddress(s),h=n.decodeAddress(i);this.model={top:Math.min(f.row,h.row),left:Math.min(f.col,h.col),bottom:Math.max(f.row,h.row),right:Math.max(f.col,h.col),sheetName:c},this.setTLBR(f.row,f.col,h.row,h.col,u)}else this.model={top:Math.min(s,c),left:Math.min(i,l),bottom:Math.max(s,c),right:Math.max(i,l),sheetName:u}}},{key:"decode",value:function(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:var i=s[0];if(i instanceof o)this.model={top:i.model.top,left:i.model.left,bottom:i.model.bottom,right:i.model.right,sheetName:i.sheetName};else if(i instanceof Array)this.decode(i);else if(i.top&&i.left&&i.bottom&&i.right)this.model={top:i.top,left:i.left,bottom:i.bottom,right:i.right,sheetName:i.sheetName};else{var c=n.decodeEx(i);c.top?this.model={top:c.top,left:c.left,bottom:c.bottom,right:c.right,sheetName:c.sheetName}:this.model={top:c.row,left:c.col,bottom:c.row,right:c.col,sheetName:c.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() - ".concat(s.length))}}},{key:"top",get:function(){return this.model.top||1},set:function(s){this.model.top=s}},{key:"left",get:function(){return this.model.left||1},set:function(s){this.model.left=s}},{key:"bottom",get:function(){return this.model.bottom||1},set:function(s){this.model.bottom=s}},{key:"right",get:function(){return this.model.right||1},set:function(s){this.model.right=s}},{key:"sheetName",get:function(){return this.model.sheetName},set:function(s){this.model.sheetName=s}},{key:"_serialisedSheetName",get:function(){var s=this.model.sheetName;return s?/^[a-zA-Z0-9]*$/.test(s)?"".concat(s,"!"):"'".concat(s,"'!"):""}},{key:"expand",value:function(s,i,c,l){(!this.model.top||s<this.top)&&(this.top=s),(!this.model.left||i<this.left)&&(this.left=i),(!this.model.bottom||c>this.bottom)&&(this.bottom=c),(!this.model.right||l>this.right)&&(this.right=l)}},{key:"expandRow",value:function(s){if(s){var i=s.dimensions,c=s.number;i&&this.expand(c,i.min,c,i.max)}}},{key:"expandToAddress",value:function(s){var i=n.decodeEx(s);this.expand(i.row,i.col,i.row,i.col)}},{key:"tl",get:function(){return n.n2l(this.left)+this.top}},{key:"$t$l",get:function(){return"$".concat(n.n2l(this.left),"$").concat(this.top)}},{key:"br",get:function(){return n.n2l(this.right)+this.bottom}},{key:"$b$r",get:function(){return"$".concat(n.n2l(this.right),"$").concat(this.bottom)}},{key:"range",get:function(){return"".concat(this._serialisedSheetName+this.tl,":").concat(this.br)}},{key:"$range",get:function(){return"".concat(this._serialisedSheetName+this.$t$l,":").concat(this.$b$r)}},{key:"shortRange",get:function(){return this.count>1?this.range:this._serialisedSheetName+this.tl}},{key:"$shortRange",get:function(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}},{key:"count",get:function(){return(1+this.bottom-this.top)*(1+this.right-this.left)}},{key:"toString",value:function(){return this.range}},{key:"intersects",value:function(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)}},{key:"contains",value:function(s){var i=n.decodeEx(s);return this.containsEx(i)}},{key:"containsEx",value:function(s){return(!s.sheetName||!this.sheetName||s.sheetName===this.sheetName)&&s.row>=this.top&&s.row<=this.bottom&&s.col>=this.left&&s.col<=this.right}},{key:"forEachAddress",value:function(s){for(var i=this.left;i<=this.right;i++)for(var c=this.top;c<=this.bottom;c++)s(n.encodeAddress(c,i),c,i)}}]),o}();r.exports=a},{"../utils/col-cache":19}],11:[function(t,r,e){var n=t("../utils/under-dash"),a=t("./enums"),o=t("../utils/col-cache"),s=t("./cell"),i=function(){function c(l,u){At(this,c),this._worksheet=l,this._number=u,this._cells=[],this.style={},this.outlineLevel=0}return Rt(c,[{key:"number",get:function(){return this._number}},{key:"worksheet",get:function(){return this._worksheet}},{key:"commit",value:function(){this._worksheet._commitRow(this)}},{key:"destroy",value:function(){delete this._worksheet,delete this._cells,delete this.style}},{key:"findCell",value:function(l){return this._cells[l-1]}},{key:"getCellEx",value:function(l){var u=this._cells[l.col-1];if(!u){var f=this._worksheet.getColumn(l.col);u=new s(this,f,l.address),this._cells[l.col-1]=u}return u}},{key:"getCell",value:function(l){if(typeof l=="string"){var u=this._worksheet.getColumnKey(l);l=u?u.number:o.l2n(l)}return this._cells[l-1]||this.getCellEx({address:o.encodeAddress(this._number,l),row:this._number,col:l})}},{key:"splice",value:function(l,u){for(var f=l+u,h=arguments.length,d=new Array(h>2?h-2:0),p=2;p<h;p++)d[p-2]=arguments[p];var m,v,b,g=d.length-u,y=this._cells.length;if(g<0)for(m=l+d.length;m<=y;m++)b=this._cells[m-1],(v=this._cells[m-g-1])?((b=this.getCell(m)).value=v.value,b.style=v.style,b._comment=v._comment):b&&(b.value=null,b.style={},b._comment=void 0);else if(g>0)for(m=y;m>=f;m--)(v=this._cells[m-1])?((b=this.getCell(m+g)).value=v.value,b.style=v.style,b._comment=v._comment):this._cells[m+g-1]=void 0;for(m=0;m<d.length;m++)(b=this.getCell(l+m)).value=d[m],b.style={},b._comment=void 0}},{key:"eachCell",value:function(l,u){if(u||(u=l,l=null),l&&l.includeEmpty)for(var f=this._cells.length,h=1;h<=f;h++)u(this.getCell(h),h);else this._cells.forEach(function(d,p){d&&d.type!==a.ValueType.Null&&u(d,p+1)})}},{key:"addPageBreak",value:function(l,u){var f=this._worksheet,h=Math.max(0,l-1)||0,d=Math.max(0,u-1)||16838,p={id:this._number,max:d,man:1};h&&(p.min=h),f.rowBreaks.push(p)}},{key:"values",get:function(){var l=[];return this._cells.forEach(function(u){u&&u.type!==a.ValueType.Null&&(l[u.col]=u.value)}),l},set:function(l){var u=this;if(this._cells=[],l)if(l instanceof Array){var f=0;l.hasOwnProperty("0")&&(f=1),l.forEach(function(h,d){h!==void 0&&(u.getCellEx({address:o.encodeAddress(u._number,d+f),row:u._number,col:d+f}).value=h)})}else this._worksheet.eachColumnKey(function(h,d){l[d]!==void 0&&(u.getCellEx({address:o.encodeAddress(u._number,h.number),row:u._number,col:h.number}).value=l[d])})}},{key:"hasValues",get:function(){return n.some(this._cells,function(l){return l&&l.type!==a.ValueType.Null})}},{key:"cellCount",get:function(){return this._cells.length}},{key:"actualCellCount",get:function(){var l=0;return this.eachCell(function(){l++}),l}},{key:"dimensions",get:function(){var l=0,u=0;return this._cells.forEach(function(f){f&&f.type!==a.ValueType.Null&&((!l||l>f.col)&&(l=f.col),u<f.col&&(u=f.col))}),l>0?{min:l,max:u}:null}},{key:"_applyStyle",value:function(l,u){return this.style[l]=u,this._cells.forEach(function(f){f&&(f[l]=u)}),u}},{key:"numFmt",get:function(){return this.style.numFmt},set:function(l){this._applyStyle("numFmt",l)}},{key:"font",get:function(){return this.style.font},set:function(l){this._applyStyle("font",l)}},{key:"alignment",get:function(){return this.style.alignment},set:function(l){this._applyStyle("alignment",l)}},{key:"protection",get:function(){return this.style.protection},set:function(l){this._applyStyle("protection",l)}},{key:"border",get:function(){return this.style.border},set:function(l){this._applyStyle("border",l)}},{key:"fill",get:function(){return this.style.fill},set:function(l){this._applyStyle("fill",l)}},{key:"hidden",get:function(){return!!this._hidden},set:function(l){this._hidden=l}},{key:"outlineLevel",get:function(){return this._outlineLevel||0},set:function(l){this._outlineLevel=l}},{key:"collapsed",get:function(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}},{key:"model",get:function(){var l=[],u=0,f=0;return this._cells.forEach(function(h){if(h){var d=h.model;d&&((!u||u>h.col)&&(u=h.col),f<h.col&&(f=h.col),l.push(d))}}),this.height||l.length?{cells:l,number:this.number,min:u,max:f,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null},set:function(l){var u,f=this;if(l.number!==this._number)throw new Error("Invalid row number in model");this._cells=[],l.cells.forEach(function(h){if(h.type!==s.Types.Merge){var d;if(h.address)d=o.decodeAddress(h.address);else if(u){var p=u.row,m=u.col+1;d={row:p,col:m,address:o.encodeAddress(p,m),$col$row:"$".concat(o.n2l(m),"$").concat(p)}}u=d,f.getCellEx(d).model=h}}),l.height?this.height=l.height:delete this.height,this.hidden=l.hidden,this.outlineLevel=l.outlineLevel||0,this.style=l.style&&JSON.parse(JSON.stringify(l.style))||{}}}]),c}();r.exports=i},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(t,r,e){var n=t("../utils/col-cache"),a=function(){function s(i,c,l){At(this,s),this.table=i,this.column=c,this.index=l}return Rt(s,[{key:"_set",value:function(i,c){this.table.cacheState(),this.column[i]=c}},{key:"name",get:function(){return this.column.name},set:function(i){this._set("name",i)}},{key:"filterButton",get:function(){return this.column.filterButton},set:function(i){this.column.filterButton=i}},{key:"style",get:function(){return this.column.style},set:function(i){this.column.style=i}},{key:"totalsRowLabel",get:function(){return this.column.totalsRowLabel},set:function(i){this._set("totalsRowLabel",i)}},{key:"totalsRowFunction",get:function(){return this.column.totalsRowFunction},set:function(i){this._set("totalsRowFunction",i)}},{key:"totalsRowResult",get:function(){return this.column.totalsRowResult},set:function(i){this._set("totalsRowResult",i)}},{key:"totalsRowFormula",get:function(){return this.column.totalsRowFormula},set:function(i){this._set("totalsRowFormula",i)}}]),s}(),o=function(){function s(i,c){At(this,s),this.worksheet=i,c&&(this.table=c,this.validate(),this.store())}return Rt(s,[{key:"getFormula",value:function(i){switch(i.totalsRowFunction){case"none":return null;case"average":return"SUBTOTAL(101,".concat(this.table.name,"[").concat(i.name,"])");case"countNums":return"SUBTOTAL(102,".concat(this.table.name,"[").concat(i.name,"])");case"count":return"SUBTOTAL(103,".concat(this.table.name,"[").concat(i.name,"])");case"max":return"SUBTOTAL(104,".concat(this.table.name,"[").concat(i.name,"])");case"min":return"SUBTOTAL(105,".concat(this.table.name,"[").concat(i.name,"])");case"stdDev":return"SUBTOTAL(106,".concat(this.table.name,"[").concat(i.name,"])");case"var":return"SUBTOTAL(107,".concat(this.table.name,"[").concat(i.name,"])");case"sum":return"SUBTOTAL(109,".concat(this.table.name,"[").concat(i.name,"])");case"custom":return i.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: ".concat(i.totalsRowFunction))}}},{key:"width",get:function(){return this.table.columns.length}},{key:"height",get:function(){return this.table.rows.length}},{key:"filterHeight",get:function(){return this.height+(this.table.headerRow?1:0)}},{key:"tableHeight",get:function(){return this.filterHeight+(this.table.totalsRow?1:0)}},{key:"validate",value:function(){var i=this,c=this.table,l=function(b,g,y){b[g]===void 0&&(b[g]=y)};l(c,"headerRow",!0),l(c,"totalsRow",!1),l(c,"style",{}),l(c.style,"theme","TableStyleMedium2"),l(c.style,"showFirstColumn",!1),l(c.style,"showLastColumn",!1),l(c.style,"showRowStripes",!1),l(c.style,"showColumnStripes",!1);var u=function(b,g){if(!b)throw new Error(g)};u(c.ref,"Table must have ref"),u(c.columns,"Table must have column definitions"),u(c.rows,"Table must have row definitions"),c.tl=n.decodeAddress(c.ref);var f=c.tl,h=f.row,d=f.col;u(h>0,"Table must be on valid row"),u(d>0,"Table must be on valid col");var p=this.width,m=this.filterHeight,v=this.tableHeight;c.autoFilterRef=n.encode(h,d,h+m-1,d+p-1),c.tableRef=n.encode(h,d,h+v-1,d+p-1),c.columns.forEach(function(b,g){u(b.name,"Column ".concat(g," must have a name")),g===0?l(b,"totalsRowLabel","Total"):(l(b,"totalsRowFunction","none"),b.totalsRowFormula=i.getFormula(b))})}},{key:"store",value:function(){var i=this,c=function(b,g){g&&Object.keys(g).forEach(function(y){b[y]=g[y]})},l=this.worksheet,u=this.table,f=u.tl,h=f.row,d=f.col,p=0;if(u.headerRow){var m=l.getRow(h+p++);u.columns.forEach(function(b,g){var y=b.style,w=b.name,x=m.getCell(d+g);x.value=w,c(x,y)})}if(u.rows.forEach(function(b){var g=l.getRow(h+p++);b.forEach(function(y,w){var x=g.getCell(d+w);x.value=y,c(x,u.columns[w].style)})}),u.totalsRow){var v=l.getRow(h+p++);u.columns.forEach(function(b,g){var y=v.getCell(d+g);if(g===0)y.value=b.totalsRowLabel;else{var w=i.getFormula(b);y.value=w?{formula:b.totalsRowFormula,result:b.totalsRowResult}:null}c(y,b.style)})}}},{key:"load",value:function(i){var c=this,l=this.table,u=l.tl,f=u.row,h=u.col,d=0;if(l.headerRow){var p=i.getRow(f+d++);l.columns.forEach(function(v,b){p.getCell(h+b).value=v.name})}if(l.rows.forEach(function(v){var b=i.getRow(f+d++);v.forEach(function(g,y){b.getCell(h+y).value=g})}),l.totalsRow){var m=i.getRow(f+d++);l.columns.forEach(function(v,b){var g=m.getCell(h+b);b===0?g.value=v.totalsRowLabel:c.getFormula(v)&&(g.value={formula:v.totalsRowFormula,result:v.totalsRowResult})})}}},{key:"model",get:function(){return this.table},set:function(i){this.table=i}},{key:"cacheState",value:function(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}},{key:"commit",value:function(){if(this._cache){this.validate();var i=n.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(var c=0;c<this._cache.tableHeight;c++)for(var l=this.worksheet.getRow(i.row+c),u=0;u<this._cache.width;u++)l.getCell(i.col+u).value=null;else{for(var f=this.tableHeight;f<this._cache.tableHeight;f++)for(var h=this.worksheet.getRow(i.row+f),d=0;d<this._cache.width;d++)h.getCell(i.col+d).value=null;for(var p=0;p<this.tableHeight;p++)for(var m=this.worksheet.getRow(i.row+p),v=this.width;v<this._cache.width;v++)m.getCell(i.col+v).value=null}this.store()}}},{key:"addRow",value:function(i,c){this.cacheState(),c===void 0?this.table.rows.push(i):this.table.rows.splice(c,0,i)}},{key:"removeRows",value:function(i){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(i,c)}},{key:"getColumn",value:function(i){var c=this.table.columns[i];return new a(this,c,i)}},{key:"addColumn",value:function(i,c,l){this.cacheState(),l===void 0?(this.table.columns.push(i),this.table.rows.forEach(function(u,f){u.push(c[f])})):(this.table.columns.splice(l,0,i),this.table.rows.forEach(function(u,f){u.splice(l,0,c[f])}))}},{key:"removeColumns",value:function(i){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(i,c),this.table.rows.forEach(function(l){l.splice(i,c)})}},{key:"_assign",value:function(i,c,l){this.cacheState(),i[c]=l}},{key:"ref",get:function(){return this.table.ref},set:function(i){this._assign(this.table,"ref",i)}},{key:"name",get:function(){return this.table.name},set:function(i){this.table.name=i}},{key:"displayName",get:function(){return this.table.displyName||this.table.name}},{key:"displayNamename",set:function(i){this.table.displayName=i}},{key:"headerRow",get:function(){return this.table.headerRow},set:function(i){this._assign(this.table,"headerRow",i)}},{key:"totalsRow",get:function(){return this.table.totalsRow},set:function(i){this._assign(this.table,"totalsRow",i)}},{key:"theme",get:function(){return this.table.style.name},set:function(i){this.table.style.name=i}},{key:"showFirstColumn",get:function(){return this.table.style.showFirstColumn},set:function(i){this.table.style.showFirstColumn=i}},{key:"showLastColumn",get:function(){return this.table.style.showLastColumn},set:function(i){this.table.style.showLastColumn=i}},{key:"showRowStripes",get:function(){return this.table.style.showRowStripes},set:function(i){this.table.style.showRowStripes=i}},{key:"showColumnStripes",get:function(){return this.table.style.showColumnStripes},set:function(i){this.table.style.showColumnStripes=i}}]),s}();r.exports=o},{"../utils/col-cache":19}],13:[function(t,r,e){var n=t("./worksheet"),a=t("./defined-names"),o=t("../xlsx/xlsx"),s=t("../csv/csv"),i=function(){function c(){At(this,c),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 a}return Rt(c,[{key:"xlsx",get:function(){return this._xlsx||(this._xlsx=new o(this)),this._xlsx}},{key:"csv",get:function(){return this._csv||(this._csv=new s(this)),this._csv}},{key:"nextId",get:function(){for(var l=1;l<this._worksheets.length;l++)if(!this._worksheets[l])return l;return this._worksheets.length||1}},{key:"addWorksheet",value:function(l,u){var f=this.nextId;u&&(typeof u=="string"?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),u={properties:{tabColor:{argb:u}}}):(u.argb||u.theme||u.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),u={properties:{tabColor:u}}));var h=this._worksheets.reduce(function(m,v){return(v&&v.orderNo)>m?v.orderNo:m},0),d=Object.assign({},u,{id:f,name:l,orderNo:h+1,workbook:this}),p=new n(d);return this._worksheets[f]=p,p}},{key:"removeWorksheetEx",value:function(l){delete this._worksheets[l.id]}},{key:"removeWorksheet",value:function(l){var u=this.getWorksheet(l);u&&u.destroy()}},{key:"getWorksheet",value:function(l){return l===void 0?this._worksheets.find(Boolean):typeof l=="number"?this._worksheets[l]:typeof l=="string"?this._worksheets.find(function(u){return u&&u.name===l}):void 0}},{key:"worksheets",get:function(){return this._worksheets.slice(1).sort(function(l,u){return l.orderNo-u.orderNo}).filter(Boolean)}},{key:"eachSheet",value:function(l){this.worksheets.forEach(function(u){l(u,u.id)})}},{key:"definedNames",get:function(){return this._definedNames}},{key:"clearThemes",value:function(){this._themes=void 0}},{key:"addImage",value:function(l){var u=this.media.length;return this.media.push(Object.assign({},l,{type:"image"})),u}},{key:"getImage",value:function(l){return this.media[l]}},{key:"model",get:function(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(function(l){return l.model}),sheets:this.worksheets.map(function(l){return l.model}).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}},set:function(l){var u=this;this.creator=l.creator,this.lastModifiedBy=l.lastModifiedBy,this.lastPrinted=l.lastPrinted,this.created=l.created,this.modified=l.modified,this.company=l.company,this.manager=l.manager,this.title=l.title,this.subject=l.subject,this.keywords=l.keywords,this.category=l.category,this.description=l.description,this.language=l.language,this.revision=l.revision,this.contentStatus=l.contentStatus,this.properties=l.properties,this.calcProperties=l.calcProperties,this._worksheets=[],l.worksheets.forEach(function(f){var h=f.id,d=f.name,p=f.state,m=l.sheets&&l.sheets.findIndex(function(v){return v.id===h});(u._worksheets[h]=new n({id:h,name:d,orderNo:m,state:p,workbook:u})).model=f}),this._definedNames.model=l.definedNames,this.views=l.views,this._themes=l.themes,this.media=l.media||[]}}]),c}();r.exports=i},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(t,r,e){var n=t("../utils/under-dash"),a=t("../utils/col-cache"),o=t("./range"),s=t("./row"),i=t("./column"),c=t("./enums"),l=t("./image"),u=t("./table"),f=t("./data-validations"),h=t("../utils/encryptor"),d=t("../utils/copy-style").copyStyle,p=function(){function m(v){At(this,m),v=v||{},this._workbook=v.workbook,this.id=v.id,this.orderNo=v.orderNo,this.name=v.name,this.state=v.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},v.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:!(!v.pageSetup||!v.pageSetup.fitToWidth&&!v.pageSetup.fitToHeight||v.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},v.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},v.headerFooter),this.dataValidations=new f,this.views=v.views||[],this.autoFilter=v.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}return Rt(m,[{key:"name",get:function(){return this._name},set:function(v){if(v===void 0&&(v="sheet".concat(this.id)),this._name!==v){if(typeof v!="string")throw new Error("The name has to be a string.");if(v==="")throw new Error("The name can't be empty.");if(v==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(v))throw new Error("Worksheet name ".concat(v," cannot include any of the following characters: * ? : \\ / [ ]"));if(/(^')|('$)/.test(v))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: ".concat(v));if(v&&v.length>31&&(console.warn("Worksheet name ".concat(v," exceeds 31 chars. This will be truncated")),v=v.substring(0,31)),this._workbook._worksheets.find(function(b){return b&&b.name.toLowerCase()===v.toLowerCase()}))throw new Error("Worksheet name already exists: ".concat(v));this._name=v}}},{key:"workbook",get:function(){return this._workbook}},{key:"destroy",value:function(){this._workbook.removeWorksheetEx(this)}},{key:"dimensions",get:function(){var v=new o;return this._rows.forEach(function(b){if(b){var g=b.dimensions;g&&v.expand(b.number,g.min,b.number,g.max)}}),v}},{key:"columns",get:function(){return this._columns},set:function(v){var b=this;this._headerRowCount=v.reduce(function(w,x){var C=(x.header?1:x.headers&&x.headers.length)||0;return Math.max(w,C)},0);var g=1,y=this._columns=[];v.forEach(function(w){var x=new i(b,g++,!1);y.push(x),x.defn=w})}},{key:"getColumnKey",value:function(v){return this._keys[v]}},{key:"setColumnKey",value:function(v,b){this._keys[v]=b}},{key:"deleteColumnKey",value:function(v){delete this._keys[v]}},{key:"eachColumnKey",value:function(v){n.each(this._keys,v)}},{key:"getColumn",value:function(v){if(typeof v=="string"){var b=this._keys[v];if(b)return b;v=a.l2n(v)}if(this._columns||(this._columns=[]),v>this._columns.length)for(var g=this._columns.length+1;g<=v;)this._columns.push(new i(this,g++));return this._columns[v-1]}},{key:"spliceColumns",value:function(v,b){for(var g=this,y=this._rows.length,w=arguments.length,x=new Array(w>2?w-2:0),C=2;C<w;C++)x[C-2]=arguments[C];if(x.length>0)for(var O=function(k){var S=[v,b];x.forEach(function(T){S.push(T[k]||null)});var E=g.getRow(k+1);E.splice.apply(E,S)},D=0;D<y;D++)O(D);else this._rows.forEach(function(k){k&&k.splice(v,b)});var j=x.length-b,U=v+b,L=this._columns.length;if(j<0)for(var V=v+x.length;V<=L;V++)this.getColumn(V).defn=this.getColumn(V-j).defn;else if(j>0)for(var A=L;A>=U;A--)this.getColumn(A+j).defn=this.getColumn(A).defn;for(var N=v;N<v+x.length;N++)this.getColumn(N).defn=null;this.workbook.definedNames.spliceColumns(this.name,v,b,x.length)}},{key:"lastColumn",get:function(){return this.getColumn(this.columnCount)}},{key:"columnCount",get:function(){var v=0;return this.eachRow(function(b){v=Math.max(v,b.cellCount)}),v}},{key:"actualColumnCount",get:function(){var v=[],b=0;return this.eachRow(function(g){g.eachCell(function(y){var w=y.col;v[w]||(v[w]=!0,b++)})}),b}},{key:"_commitRow",value:function(){}},{key:"_lastRowNumber",get:function(){for(var v=this._rows,b=v.length;b>0&&v[b-1]===void 0;)b--;return b}},{key:"_nextRow",get:function(){return this._lastRowNumber+1}},{key:"lastRow",get:function(){if(this._rows.length)return this._rows[this._rows.length-1]}},{key:"findRow",value:function(v){return this._rows[v-1]}},{key:"findRows",value:function(v,b){return this._rows.slice(v-1,v-1+b)}},{key:"rowCount",get:function(){return this._lastRowNumber}},{key:"actualRowCount",get:function(){var v=0;return this.eachRow(function(){v++}),v}},{key:"getRow",value:function(v){var b=this._rows[v-1];return b||(b=this._rows[v-1]=new s(this,v)),b}},{key:"getRows",value:function(v,b){if(!(b<1)){for(var g=[],y=v;y<v+b;y++)g.push(this.getRow(y));return g}}},{key:"addRow",value:function(v){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n",g=this._nextRow,y=this.getRow(g);return y.values=v,this._setStyleOption(g,b[0]==="i"?b:"n"),y}},{key:"addRows",value:function(v){var b=this,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n",y=[];return v.forEach(function(w){y.push(b.addRow(w,g))}),y}},{key:"insertRow",value:function(v,b){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(v,0,b),this._setStyleOption(v,g),this.getRow(v)}},{key:"insertRows",value:function(v,b){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows.apply(this,[v,0].concat(lr(b))),g!=="n")for(var y=0;y<b.length;y++)g[0]==="o"&&this.findRow(b.length+v+y)!==void 0?this._copyStyle(b.length+v+y,v+y,g[1]==="+"):g[0]==="i"&&this.findRow(v-1)!==void 0&&this._copyStyle(v-1,v+y,g[1]==="+");return this.getRows(v,b.length)}},{key:"_setStyleOption",value:function(v){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";b[0]==="o"&&this.findRow(v+1)!==void 0?this._copyStyle(v+1,v,b[1]==="+"):b[0]==="i"&&this.findRow(v-1)!==void 0&&this._copyStyle(v-1,v,b[1]==="+")}},{key:"_copyStyle",value:function(v,b){var g=arguments.length>2&&arguments[2]!==void 0&&arguments[2],y=this.getRow(v),w=this.getRow(b);w.style=d(y.style),y.eachCell({includeEmpty:g},function(x,C){w.getCell(C).style=d(x.style)}),w.height=y.height}},{key:"duplicateRow",value:function(v,b){var g=this,y=arguments.length>2&&arguments[2]!==void 0&&arguments[2],w=this._rows[v-1],x=new Array(b).fill(w.values);this.spliceRows.apply(this,[v+1,y?0:b].concat(lr(x)));for(var C=function(){var D=g._rows[v+O];D.style=w.style,D.height=w.height,w.eachCell({includeEmpty:!0},function(j,U){D.getCell(U).style=j.style})},O=0;O<b;O++)C()}},{key:"spliceRows",value:function(v,b){for(var g=this,y=v+b,w=arguments.length,x=new Array(w>2?w-2:0),C=2;C<w;C++)x[C-2]=arguments[C];var O,D,j=x.length,U=j-b,L=this._rows.length;if(U<0){v===L&&(this._rows[L-1]=void 0);var V=function(){if(D=g._rows[O-1]){var k=g.getRow(O+U);k.values=D.values,k.style=D.style,k.height=D.height,D.eachCell({includeEmpty:!0},function(S,E){k.getCell(E).style=S.style}),g._rows[O-1]=void 0}else g._rows[O+U-1]=void 0};for(O=y;O<=L;O++)V()}else if(U>0){var A=function(){if(D=g._rows[O-1]){var k=g.getRow(O+U);k.values=D.values,k.style=D.style,k.height=D.height,D.eachCell({includeEmpty:!0},function(S,E){if(k.getCell(E).style=S.style,S._value.constructor.name==="MergeValue"){var T=g.getRow(S._row._number+j).getCell(E),R=S._value._master,F=g.getRow(R._row._number+j).getCell(R._column._number);T.merge(F)}})}else g._rows[O+U-1]=void 0};for(O=L;O>=y;O--)A()}for(O=0;O<j;O++){var N=this.getRow(v+O);N.style={},N.values=x[O]}this.workbook.definedNames.spliceRows(this.name,v,b,j)}},{key:"eachRow",value:function(v,b){if(b||(b=v,v=void 0),v&&v.includeEmpty)for(var g=this._rows.length,y=1;y<=g;y++)b(this.getRow(y),y);else this._rows.forEach(function(w){w&&w.hasValues&&b(w,w.number)})}},{key:"getSheetValues",value:function(){var v=[];return this._rows.forEach(function(b){b&&(v[b.number]=b.values)}),v}},{key:"findCell",value:function(v,b){var g=a.getAddress(v,b),y=this._rows[g.row-1];return y?y.findCell(g.col):void 0}},{key:"getCell",value:function(v,b){var g=a.getAddress(v,b);return this.getRow(g.row).getCellEx(g)}},{key:"mergeCells",value:function(){for(var v=arguments.length,b=new Array(v),g=0;g<v;g++)b[g]=arguments[g];var y=new o(b);this._mergeCellsInternal(y)}},{key:"mergeCellsWithoutStyle",value:function(){for(var v=arguments.length,b=new Array(v),g=0;g<v;g++)b[g]=arguments[g];var y=new o(b);this._mergeCellsInternal(y,!0)}},{key:"_mergeCellsInternal",value:function(v,b){n.each(this._merges,function(x){if(x.intersects(v))throw new Error("Cannot merge already merged cells")});for(var g=this.getCell(v.top,v.left),y=v.top;y<=v.bottom;y++)for(var w=v.left;w<=v.right;w++)(y>v.top||w>v.left)&&this.getCell(y,w).merge(g,b);this._merges[g.address]=v}},{key:"_unMergeMaster",value:function(v){var b=this._merges[v.address];if(b){for(var g=b.top;g<=b.bottom;g++)for(var y=b.left;y<=b.right;y++)this.getCell(g,y).unmerge();delete this._merges[v.address]}}},{key:"hasMerges",get:function(){return n.some(this._merges,Boolean)}},{key:"unMergeCells",value:function(){for(var v=arguments.length,b=new Array(v),g=0;g<v;g++)b[g]=arguments[g];for(var y=new o(b),w=y.top;w<=y.bottom;w++)for(var x=y.left;x<=y.right;x++){var C=this.findCell(w,x);C&&(C.type===c.ValueType.Merge?this._unMergeMaster(C.master):this._merges[C.address]&&this._unMergeMaster(C))}}},{key:"fillFormula",value:function(v,b,g){var y,w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"shared",x=a.decode(v),C=x.top,O=x.left,D=x.bottom,j=x.right,U=j-O+1,L=a.encodeAddress(C,O),V=w==="shared";y=typeof g=="function"?g:Array.isArray(g)?Array.isArray(g[0])?function(S,E){return g[S-C][E-O]}:function(S,E){return g[(S-C)*U+(E-O)]}:function(){};for(var A=!0,N=C;N<=D;N++)for(var k=O;k<=j;k++)A?(this.getCell(N,k).value={shareType:w,formula:b,ref:v,result:y(N,k)},A=!1):this.getCell(N,k).value=V?{sharedFormula:L,result:y(N,k)}:y(N,k)}},{key:"addImage",value:function(v,b){var g={type:"image",imageId:v,range:b};this._media.push(new l(this,g))}},{key:"getImages",value:function(){return this._media.filter(function(v){return v.type==="image"})}},{key:"addBackgroundImage",value:function(v){var b={type:"background",imageId:v};this._media.push(new l(this,b))}},{key:"getBackgroundImageId",value:function(){var v=this._media.find(function(b){return b.type==="background"});return v&&v.imageId}},{key:"protect",value:function(v,b){var g=this;return new Promise(function(y){g.sheetProtection={sheet:!0},b&&"spinCount"in b&&(b.spinCount=Number.isFinite(b.spinCount)?Math.round(Math.max(0,b.spinCount)):1e5),v&&(g.sheetProtection.algorithmName="SHA-512",g.sheetProtection.saltValue=h.randomBytes(16).toString("base64"),g.sheetProtection.spinCount=b&&"spinCount"in b?b.spinCount:1e5,g.sheetProtection.hashValue=h.convertPasswordToHash(v,"SHA512",g.sheetProtection.saltValue,g.sheetProtection.spinCount)),b&&(g.sheetProtection=Object.assign(g.sheetProtection,b),!v&&"spinCount"in b&&delete g.sheetProtection.spinCount),y()})}},{key:"unprotect",value:function(){this.sheetProtection=null}},{key:"addTable",value:function(v){var b=new u(this,v);return this.tables[v.name]=b,b}},{key:"getTable",value:function(v){return this.tables[v]}},{key:"removeTable",value:function(v){delete this.tables[v]}},{key:"getTables",value:function(){return Object.values(this.tables)}},{key:"addConditionalFormatting",value:function(v){this.conditionalFormattings.push(v)}},{key:"removeConditionalFormatting",value:function(v){typeof v=="number"?this.conditionalFormattings.splice(v,1):this.conditionalFormattings=v instanceof Function?this.conditionalFormattings.filter(v):[]}},{key:"tabColor",get:function(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor},set:function(v){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=v}},{key:"model",get:function(){var v={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(function(y){return y.model}),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(function(y){return y.model}),conditionalFormattings:this.conditionalFormattings};v.cols=i.toModel(this.columns);var b=v.rows=[],g=v.dimensions=new o;return this._rows.forEach(function(y){var w=y&&y.model;w&&(g.expand(w.number,w.min,w.number,w.max),b.push(w))}),v.merges=[],n.each(this._merges,function(y){v.merges.push(y.range)}),v},set:function(v){var b=this;this.name=v.name,this._columns=i.fromModel(this,v.cols),this._parseRows(v),this._parseMergeCells(v),this.dataValidations=new f(v.dataValidations),this.properties=v.properties,this.pageSetup=v.pageSetup,this.headerFooter=v.headerFooter,this.views=v.views,this.autoFilter=v.autoFilter,this._media=v.media.map(function(g){return new l(b,g)}),this.sheetProtection=v.sheetProtection,this.tables=v.tables.reduce(function(g,y){var w=new u;return w.model=y,g[y.name]=w,g},{}),this.conditionalFormattings=v.conditionalFormattings}},{key:"_parseRows",value:function(v){var b=this;this._rows=[],v.rows.forEach(function(g){var y=new s(b,g.number);b._rows[y.number-1]=y,y.model=g})}},{key:"_parseMergeCells",value:function(v){var b=this;n.each(v.mergeCells,function(g){b.mergeCellsWithoutStyle(g)})}}]),m}();r.exports=p},{"../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(t,r,e){t("core-js/modules/es.promise"),t("core-js/modules/es.promise.finally"),t("core-js/modules/es.object.assign"),t("core-js/modules/es.object.keys"),t("core-js/modules/es.object.values"),t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.async-iterator"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.find-index"),t("core-js/modules/es.array.find"),t("core-js/modules/es.string.from-code-point"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.number.is-nan"),t("regenerator-runtime/runtime");var n={Workbook:t("./doc/workbook")},a=t("./doc/enums");Object.keys(a).forEach(function(o){n[o]=a[o]}),r.exports=n},{"./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(t,r,e){var n=typeof TextDecoder=="undefined"?null:new TextDecoder("utf-8");function a(o){return typeof o=="string"?o:n?n.decode(o):o.toString()}e.bufferToString=a},{}],17:[function(t,r,e){var n=typeof TextEncoder=="undefined"?null:new TextEncoder("utf-8"),a=t("buffer").Buffer;function o(s){return typeof s!="string"?s:n?a.from(n.encode(s).buffer):a.from(s)}e.stringToBuffer=o},{buffer:220}],18:[function(t,r,e){var n=t("./under-dash"),a=t("./col-cache"),o=function(){function s(i){At(this,s),this.template=i,this.sheets={}}return Rt(s,[{key:"addCell",value:function(i){this.addCellEx(a.decodeEx(i))}},{key:"getCell",value:function(i){return this.findCellEx(a.decodeEx(i),!0)}},{key:"findCell",value:function(i){return this.findCellEx(a.decodeEx(i),!1)}},{key:"findCellAt",value:function(i,c,l){var u=this.sheets[i],f=u&&u[c];return f&&f[l]}},{key:"addCellEx",value:function(i){if(i.top)for(var c=i.top;c<=i.bottom;c++)for(var l=i.left;l<=i.right;l++)this.getCellAt(i.sheetName,c,l);else this.findCellEx(i,!0)}},{key:"getCellEx",value:function(i){return this.findCellEx(i,!0)}},{key:"findCellEx",value:function(i,c){var l=this.findSheet(i,c),u=this.findSheetRow(l,i,c);return this.findRowCell(u,i,c)}},{key:"getCellAt",value:function(i,c,l){var u=this.sheets[i]||(this.sheets[i]=[]),f=u[c]||(u[c]=[]);return f[l]||(f[l]={sheetName:i,address:a.n2l(l)+c,row:c,col:l})}},{key:"removeCellEx",value:function(i){var c=this.findSheet(i);if(c){var l=this.findSheetRow(c,i);l&&delete l[i.col]}}},{key:"forEachInSheet",value:function(i,c){var l=this.sheets[i];l&&l.forEach(function(u,f){u&&u.forEach(function(h,d){h&&c(h,f,d)})})}},{key:"forEach",value:function(i){var c=this;n.each(this.sheets,function(l,u){c.forEachInSheet(u,i)})}},{key:"map",value:function(i){var c=[];return this.forEach(function(l){c.push(i(l))}),c}},{key:"findSheet",value:function(i,c){var l=i.sheetName;return this.sheets[l]?this.sheets[l]:c?this.sheets[l]=[]:void 0}},{key:"findSheetRow",value:function(i,c,l){var u=c.row;return i&&i[u]?i[u]:l?i[u]=[]:void 0}},{key:"findRowCell",value:function(i,c,l){var u=c.col;return i&&i[u]?i[u]:l?i[u]=this.template?Object.assign(c,JSON.parse(JSON.stringify(this.template))):c:void 0}},{key:"spliceRows",value:function(i,c,l,u){var f=this.sheets[i];if(f){for(var h=[],d=0;d<u;d++)h.push([]);f.splice.apply(f,[c,l].concat(h))}}},{key:"spliceColumns",value:function(i,c,l,u){var f=this.sheets[i];if(f){for(var h=[],d=0;d<u;d++)h.push(null);n.each(f,function(p){p.splice.apply(p,[c,l].concat(h))})}}}]),s}();r.exports=o},{"./col-cache":19,"./under-dash":26}],19:[function(t,r,e){var n=/^[A-Z]+\d+$/,a={_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:function(o){return o<=26?1:o<=676?2:3},_fill:function(o){var s,i,c,l,u,f=1;if(o>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&o>=1){for(;f<=26;)s=this._dictionary[f-1],this._n2l[f]=s,this._l2n[s]=f,f++;this._l2nFill=1}if(this._l2nFill<2&&o>=2){for(f=27;f<=702;)c=(i=f-27)%26,l=Math.floor(i/26),s=this._dictionary[l]+this._dictionary[c],this._n2l[f]=s,this._l2n[s]=f,f++;this._l2nFill=2}if(this._l2nFill<3&&o>=3){for(f=703;f<=16384;)c=(i=f-703)%26,l=Math.floor(i/26)%26,u=Math.floor(i/676),s=this._dictionary[u]+this._dictionary[l]+this._dictionary[c],this._n2l[f]=s,this._l2n[s]=f,f++;this._l2nFill=3}},l2n:function(o){if(this._l2n[o]||this._fill(o.length),!this._l2n[o])throw new Error("Out of bounds. Invalid column letter: ".concat(o));return this._l2n[o]},n2l:function(o){if(o<1||o>16384)throw new Error("".concat(o," is out of bounds. Excel supports columns from 1 to 16384"));return this._n2l[o]||this._fill(this._level(o)),this._n2l[o]},_hash:{},validateAddress:function(o){if(!n.test(o))throw new Error("Invalid Address: ".concat(o));return!0},decodeAddress:function(o){var s=o.length<5&&this._hash[o];if(s)return s;for(var i,c=!1,l="",u=0,f=!1,h="",d=0,p=0;p<o.length;p++)if(i=o.charCodeAt(p),!f&&i>=65&&i<=90)c=!0,l+=o[p],u=26*u+i-64;else if(i>=48&&i<=57)f=!0,h+=o[p],d=10*d+i-48;else if(f&&c&&i!==36)break;if(c){if(u>16384)throw new Error("Out of bounds. Invalid column letter: ".concat(l))}else u=void 0;f||(d=void 0);var m={address:o=l+h,col:u,row:d,$col$row:"$".concat(l,"$").concat(h)};return u<=100&&d<=100&&(this._hash[o]=m,this._hash[m.$col$row]=m),m},getAddress:function(o,s){if(s){var i=this.n2l(s)+o;return this.decodeAddress(i)}return this.decodeAddress(o)},decode:function(o){var s=o.split(":");if(s.length===2){var i=this.decodeAddress(s[0]),c=this.decodeAddress(s[1]),l={top:Math.min(i.row,c.row),left:Math.min(i.col,c.col),bottom:Math.max(i.row,c.row),right:Math.max(i.col,c.col)};return l.tl=this.n2l(l.left)+l.top,l.br=this.n2l(l.right)+l.bottom,l.dimensions="".concat(l.tl,":").concat(l.br),l}return this.decodeAddress(o)},decodeEx:function(o){var s=o.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),i=s[1]||s[2],c=s[3],l=c.split(":");if(l.length>1){var u=this.decodeAddress(l[0]),f=this.decodeAddress(l[1]),h=Math.min(u.row,f.row),d=Math.min(u.col,f.col),p=Math.max(u.row,f.row),m=Math.max(u.col,f.col);return u=this.n2l(d)+h,f=this.n2l(m)+p,{top:h,left:d,bottom:p,right:m,sheetName:i,tl:{address:u,col:d,row:h,$col$row:"$".concat(this.n2l(d),"$").concat(h),sheetName:i},br:{address:f,col:m,row:p,$col$row:"$".concat(this.n2l(m),"$").concat(p),sheetName:i},dimensions:"".concat(u,":").concat(f)}}if(c.startsWith("#"))return i?{sheetName:i,error:c}:{error:c};var v=this.decodeAddress(c);return i?fn({sheetName:i},v):v},encodeAddress:function(o,s){return a.n2l(s)+o},encode:function(){switch(arguments.length){case 2:return a.encodeAddress(arguments[0],arguments[1]);case 4:return"".concat(a.encodeAddress(arguments[0],arguments[1]),":").concat(a.encodeAddress(arguments[2],arguments[3]));default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange:function(o,s){var i=$e(o,5),c=i[0],l=i[1],u=i[3],f=i[4],h=$e(s,2),d=h[0],p=h[1];return d>=c&&d<=u&&p>=l&&p<=f}};r.exports=a},{}],20:[function(t,r,e){var n=function(i,c){return fn(fn({},i),c.reduce(function(l,u){return i[u]&&(l[u]=fn({},i[u])),l},{}))},a=function(i,c,l){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];i[l]&&(c[l]=n(i[l],u))},o=function(i){return Object.keys(i).length===0},s=function(i){if(!i)return i;if(o(i))return{};var c=fn({},i);return a(i,c,"font",["color"]),a(i,c,"alignment"),a(i,c,"protection"),i.border&&(a(i,c,"border"),a(i.border,c.border,"top",["color"]),a(i.border,c.border,"left",["color"]),a(i.border,c.border,"bottom",["color"]),a(i.border,c.border,"right",["color"]),a(i.border,c.border,"diagonal",["color"])),i.fill&&(a(i,c,"fill",["fgColor","bgColor","center"]),i.fill.stops&&(c.fill.stops=i.fill.stops.map(function(l){return n(l,["color"])}))),c};e.copyStyle=s},{}],21:[function(t,r,e){(function(n){(function(){var a=t("crypto"),o={hash:function(s){for(var i=a.createHash(s),c=arguments.length,l=new Array(c>1?c-1:0),u=1;u<c;u++)l[u-1]=arguments[u];return i.update(n.concat(l)),i.digest()},convertPasswordToHash:function(s,i,c,l){if(i=i.toLowerCase(),a.getHashes().indexOf(i)<0)throw new Error("Hash algorithm '".concat(i,"' not supported!"));for(var u=n.from(s,"utf16le"),f=this.hash(i,n.from(c,"base64"),u),h=0;h<l;h++){var d=n.alloc(4);d.writeUInt32LE(h,0),f=this.hash(i,f,d)}return f.toString("base64")},randomBytes:function(s){return a.randomBytes(s)}};r.exports=o}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(t,r,e){var n=t("saxes").SaxesParser,a=t("readable-stream").PassThrough,o=t("./browser-buffer-decode").bufferToString;r.exports=function(){var s,i=(s=Ne.mark(function c(l){var u,f,h,d,p,m,v,b,g;return Ne.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:l.pipe&&!l[Symbol.asyncIterator]&&(l=l.pipe(new a)),(u=new n).on("error",function(w){f=w}),h=[],u.on("opentag",function(w){return h.push({eventType:"opentag",value:w})}),u.on("text",function(w){return h.push({eventType:"text",value:w})}),u.on("closetag",function(w){return h.push({eventType:"closetag",value:w})}),d=!1,p=!1,y.prev=9,v=lf(l);case 11:return y.next=13,N0(v.next());case 13:if(!(d=!(b=y.sent).done)){y.next=24;break}if(g=b.value,u.write(o(g)),!f){y.next=18;break}throw f;case 18:return y.next=20,h;case 20:h=[];case 21:d=!1,y.next=11;break;case 24:y.next=30;break;case 26:y.prev=26,y.t0=y.catch(9),p=!0,m=y.t0;case 30:if(y.prev=30,y.prev=31,!d||v.return==null){y.next=35;break}return y.next=35,N0(v.return());case 35:if(y.prev=35,!p){y.next=38;break}throw m;case 38:return y.finish(35);case 39:return y.finish(30);case 40:case"end":return y.stop()}},c,null,[[9,26,30,40],[31,,35,39]])}),function(){return new rc(s.apply(this,arguments))});return function(c){return i.apply(this,arguments)}}()},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(t,r,e){var n=t("./col-cache"),a=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,o=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;function s(i,c,l){var u=n.decode(c),f=n.decode(l);return i.replace(a,function(h,d,p,m,v){if(v)return h;var b=o.exec(m);if(b){var g=b[1],y=b[2].toUpperCase(),w=b[3],x=b[4];if(y.length>3||y.length===3&&y>"XFD")return h;var C=n.l2n(y),O=parseInt(x,10);return g||(C+=f.col-u.col),w||(O+=f.row-u.row),(d||"")+(g||"")+n.n2l(C)+(w||"")+O}return h})}r.exports={slideFormula:s}},{"./col-cache":19}],24:[function(t,r,e){(function(n,a){(function(){var o=t("readable-stream"),s=t("./utils"),i=t("./string-buf"),c=function(){function d(p,m){At(this,d),this._data=p,this._encoding=m}return Rt(d,[{key:"length",get:function(){return this.toBuffer().length}},{key:"copy",value:function(p,m,v,b){return this.toBuffer().copy(p,m,v,b)}},{key:"toBuffer",value:function(){return this._buffer||(this._buffer=a.from(this._data,this._encoding)),this._buffer}}]),d}(),l=function(){function d(p){At(this,d),this._data=p}return Rt(d,[{key:"length",get:function(){return this._data.length}},{key:"copy",value:function(p,m,v,b){return this._data._buf.copy(p,m,v,b)}},{key:"toBuffer",value:function(){return this._data.toBuffer()}}]),d}(),u=function(){function d(p){At(this,d),this._data=p}return Rt(d,[{key:"length",get:function(){return this._data.length}},{key:"copy",value:function(p,m,v,b){this._data.copy(p,m,v,b)}},{key:"toBuffer",value:function(){return this._data}}]),d}(),f=function(){function d(p){At(this,d),this.size=p,this.buffer=a.alloc(p),this.iRead=0,this.iWrite=0}return Rt(d,[{key:"toBuffer",value:function(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;var p=a.alloc(this.iWrite-this.iRead);return this.buffer.copy(p,0,this.iRead,this.iWrite),p}},{key:"length",get:function(){return this.iWrite-this.iRead}},{key:"eod",get:function(){return this.iRead===this.iWrite}},{key:"full",get:function(){return this.iWrite===this.size}},{key:"read",value:function(p){var m;return p===0?null:p===void 0||p>=this.length?(m=this.toBuffer(),this.iRead=this.iWrite,m):(m=a.alloc(p),this.buffer.copy(m,0,this.iRead,p),this.iRead+=p,m)}},{key:"write",value:function(p,m,v){var b=Math.min(v,this.size-this.iWrite);return p.copy(this.buffer,this.iWrite,m,m+b),this.iWrite+=b,b}}]),d}(),h=function(d){d=d||{},this.bufSize=d.bufSize||1048576,this.buffers=[],this.batch=d.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};s.inherits(h,o.Duplex,{toBuffer:function(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return a.concat(this.buffers.map(function(d){return d.toBuffer()}))}},_getWritableBuffer:function(){if(this.buffers.length){var d=this.buffers[this.buffers.length-1];if(!d.full)return d}var p=new f(this.bufSize);return this.buffers.push(p),p},_pipe:function(d){var p=this;return xr(Ne.mark(function m(){var v;return Ne.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return v=function(g){return new Promise(function(y){g.write(d.toBuffer(),function(){y()})})},b.next=3,Promise.all(p.pipes.map(v));case 3:case"end":return b.stop()}},m)}))()},_writeToBuffers:function(d){for(var p=0,m=d.length;p<m;)p+=this._getWritableBuffer().write(d,p,m-p)},write:function(d,p,m){var v=this;return xr(Ne.mark(function b(){var g;return Ne.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(p instanceof Function&&(m=p,p="utf8"),m=m||s.nop,!(d instanceof i)){y.next=6;break}g=new l(d),y.next=15;break;case 6:if(!(d instanceof a)){y.next=10;break}g=new u(d),y.next=15;break;case 10:if(!(typeof d=="string"||d instanceof String||d instanceof ArrayBuffer)){y.next=14;break}g=new c(d,p),y.next=15;break;case 14:throw new Error("Chunk must be one of type String, Buffer or StringBuf.");case 15:if(!v.pipes.length){y.next=31;break}if(!v.batch){y.next=21;break}for(v._writeToBuffers(g);!v.corked&&v.buffers.length>1;)v._pipe(v.buffers.shift());y.next=29;break;case 21:if(v.corked){y.next=27;break}return y.next=24,v._pipe(g);case 24:m(),y.next=29;break;case 27:v._writeToBuffers(g),n.nextTick(m);case 29:y.next=34;break;case 31:v.paused||v.emit("data",g.toBuffer()),v._writeToBuffers(g),v.emit("readable");case 34:return y.abrupt("return",!0);case 35:case"end":return y.stop()}},b)}))()},cork:function(){this.corked=!0},_flush:function(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork:function(){this.corked=!1,this._flush()},end:function(d,p,m){var v=this,b=function(g){g?m(g):(v._flush(),v.pipes.forEach(function(y){y.end()}),v.emit("finish"))};d?this.write(d,p,b):b()},read:function(d){var p;if(d){for(p=[];d&&this.buffers.length&&!this.buffers[0].eod;){var m=this.buffers[0],v=m.read(d);d-=v.length,p.push(v),m.eod&&m.full&&this.buffers.shift()}return a.concat(p)}return p=this.buffers.map(function(b){return b.toBuffer()}).filter(Boolean),this.buffers=[],a.concat(p)},setEncoding:function(d){this.encoding=d},pause:function(){this.paused=!0},resume:function(){this.paused=!1},isPaused:function(){return!!this.paused},pipe:function(d){this.pipes.push(d),!this.paused&&this.buffers.length&&this.end()},unpipe:function(d){this.pipes=this.pipes.filter(function(p){return p!==d})},unshift:function(){throw new Error("Not Implemented")},wrap:function(){throw new Error("Not Implemented")}}),r.exports=h}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(t,r,e){(function(n){(function(){var a=function(){function o(s){At(this,o),this._buf=n.alloc(s&&s.size||16384),this._encoding=s&&s.encoding||"utf8",this._inPos=0,this._buffer=void 0}return Rt(o,[{key:"length",get:function(){return this._inPos}},{key:"capacity",get:function(){return this._buf.length}},{key:"buffer",get:function(){return this._buf}},{key:"toBuffer",value:function(){return this._buffer||(this._buffer=n.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}},{key:"reset",value:function(s){s=s||0,this._buffer=void 0,this._inPos=s}},{key:"_grow",value:function(s){for(var i=2*this._buf.length;i<s;)i*=2;var c=n.alloc(i);this._buf.copy(c,0),this._buf=c}},{key:"addText",value:function(s){this._buffer=void 0;for(var i=this._inPos+this._buf.write(s,this._inPos,this._encoding);i>=this._buf.length-4;)this._grow(this._inPos+s.length),i=this._inPos+this._buf.write(s,this._inPos,this._encoding);this._inPos=i}},{key:"addStringBuf",value:function(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)}}]),o}();r.exports=a}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220}],26:[function(t,r,e){var n=Object.prototype.toString,a=/["&<>]/,o={each:function(s,i){s&&(Array.isArray(s)?s.forEach(i):Object.keys(s).forEach(function(c){i(s[c],c)}))},some:function(s,i){return!!s&&(Array.isArray(s)?s.some(i):Object.keys(s).some(function(c){return i(s[c],c)}))},every:function(s,i){return!s||(Array.isArray(s)?s.every(i):Object.keys(s).every(function(c){return i(s[c],c)}))},map:function(s,i){return s?Array.isArray(s)?s.map(i):Object.keys(s).map(function(c){return i(s[c],c)}):[]},keyBy:function(s,i){return s.reduce(function(c,l){return c[l[i]]=l,c},{})},isEqual:function(s,i){var c,l=typeof s,u=typeof i,f=Array.isArray(s),h=Array.isArray(i);if(l!==u)return!1;if(typeof s=="object"){if(f||h)return!(!f||!h)&&s.length===i.length&&s.every(function(v,b){var g=i[b];return o.isEqual(v,g)});if(s===null||i===null)return s===i;if(c=Object.keys(s),Object.keys(i).length!==c.length)return!1;var d,p=ml(c);try{for(p.s();!(d=p.n()).done;){var m=d.value;if(!i.hasOwnProperty(m))return!1}}catch(v){p.e(v)}finally{p.f()}return o.every(s,function(v,b){var g=i[b];return o.isEqual(v,g)})}return s===i},escapeHtml:function(s){var i=a.exec(s);if(!i)return s;for(var c="",l="",u=0,f=i.index;f<s.length;f++){switch(s.charAt(f)){case'"':l=""";break;case"&":l="&";break;case"'":l="'";break;case"<":l="<";break;case">":l=">";break;default:continue}u!==f&&(c+=s.substring(u,f)),u=f+1,c+=l}return u!==f?c+s.substring(u,f):c},strcmp:function(s,i){return s<i?-1:s>i?1:0},isUndefined:function(s){return n.call(s)==="[object Undefined]"},isObject:function(s){return n.call(s)==="[object Object]"},deepMerge:function(){var s,i,c,l=arguments[0]||{},u=arguments.length;function f(d,p){s=l[p],c=Array.isArray(d),o.isObject(d)||c?(c?(c=!1,i=s&&Array.isArray(s)?s:[]):i=s&&o.isObject(s)?s:{},l[p]=o.deepMerge(i,d)):o.isUndefined(d)||(l[p]=d)}for(var h=0;h<u;h++)o.each(arguments[h],f);return l}};r.exports=o},{}],27:[function(t,r,e){(function(n,a){(function(){var o=t("fs"),s=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,i={nop:function(){},promiseImmediate:function(c){return new Promise(function(l){n.setImmediate?a(function(){l(c)}):setTimeout(function(){l(c)},1)})},inherits:function(c,l,u,f){c.super_=l,f||(f=u,u=null),u&&Object.keys(u).forEach(function(d){Object.defineProperty(c,d,Object.getOwnPropertyDescriptor(u,d))});var h={constructor:{value:c,enumerable:!1,writable:!1,configurable:!0}};f&&Object.keys(f).forEach(function(d){h[d]=Object.getOwnPropertyDescriptor(f,d)}),c.prototype=Object.create(l.prototype,h)},dateToExcel:function(c,l){return 25569+c.getTime()/864e5-(l?1462:0)},excelToDate:function(c,l){var u=Math.round(24*(c-25569+(l?1462:0))*3600*1e3);return new Date(u)},parsePath:function(c){var l=c.lastIndexOf("/");return{path:c.substring(0,l),name:c.substring(l+1)}},getRelsPath:function(c){var l=i.parsePath(c);return"".concat(l.path,"/_rels/").concat(l.name,".rels")},xmlEncode:function(c){var l=s.exec(c);if(!l)return c;for(var u="",f="",h=0,d=l.index;d<c.length;d++){var p=c.charCodeAt(d);switch(p){case 34:f=""";break;case 38:f="&";break;case 39:f="'";break;case 60:f="<";break;case 62:f=">";break;case 127:f="";break;default:if(p<=31&&(p<=8||p>=11&&p!==13)){f="";break}continue}h!==d&&(u+=c.substring(h,d)),h=d+1,f&&(u+=f)}return h!==d?u+c.substring(h,d):u},xmlDecode:function(c){return c.replace(/&([a-z]*);/g,function(l){switch(l){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return l}})},validInt:function(c){var l=parseInt(c,10);return Number.isNaN(l)?0:l},isDateFmt:function(c){return!!c&&(c=(c=c.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null},fs:{exists:function(c){return new Promise(function(l){o.access(c,o.constants.F_OK,function(u){l(!u)})})}},toIsoDateString:function(c){return c.toIsoString().subsstr(0,10)},parseBoolean:function(c){return c===!0||c==="true"||c===1||c==="1"}};r.exports=i}).call(this)}).call(this,ur!==void 0?ur:typeof self!="undefined"?self:typeof window!="undefined"?window:{},t("timers").setImmediate)},{fs:216,timers:523}],28:[function(t,r,e){var n=t("./under-dash"),a=t("./utils"),o="<",s=">",i="</",c="/>";function l(h,d,p){h.push(" ".concat(d,'="').concat(a.xmlEncode(p.toString()),'"'))}function u(h,d){if(d){var p=[];n.each(d,function(m,v){m!==void 0&&l(p,v,m)}),h.push(p.join(""))}}var f=function(){function h(){At(this,h),this._xml=[],this._stack=[],this._rollbacks=[]}return Rt(h,[{key:"tos",get:function(){return this._stack.length?this._stack[this._stack.length-1]:void 0}},{key:"cursor",get:function(){return this._xml.length}},{key:"openXml",value:function(d){var p=this._xml;p.push("<?xml"),u(p,d),p.push(`?>
|
||
`)}},{key:"openNode",value:function(d,p){var m=this.tos,v=this._xml;m&&this.open&&v.push(s),this._stack.push(d),v.push(o),v.push(d),u(v,p),this.leaf=!0,this.open=!0}},{key:"addAttribute",value:function(d,p){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");p!==void 0&&l(this._xml,d,p)}},{key:"addAttributes",value:function(d){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");u(this._xml,d)}},{key:"writeText",value:function(d){var p=this._xml;this.open&&(p.push(s),this.open=!1),this.leaf=!1,p.push(a.xmlEncode(d.toString()))}},{key:"writeXml",value:function(d){this.open&&(this._xml.push(s),this.open=!1),this.leaf=!1,this._xml.push(d)}},{key:"closeNode",value:function(){var d=this._stack.pop(),p=this._xml;this.leaf?p.push(c):(p.push(i),p.push(d),p.push(s)),this.open=!1,this.leaf=!1}},{key:"leafNode",value:function(d,p,m){this.openNode(d,p),m!==void 0&&this.writeText(m),this.closeNode()}},{key:"closeAll",value:function(){for(;this._stack.length;)this.closeNode()}},{key:"addRollback",value:function(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}},{key:"commit",value:function(){this._rollbacks.pop()}},{key:"rollback",value:function(){var d=this._rollbacks.pop();this._xml.length>d.xml&&this._xml.splice(d.xml,this._xml.length-d.xml),this._stack.length>d.stack&&this._stack.splice(d.stack,this._stack.length-d.stack),this.leaf=d.leaf,this.open=d.open}},{key:"xml",get:function(){return this.closeAll(),this._xml.join("")}}]),h}();f.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},r.exports=f},{"./under-dash":26,"./utils":27}],29:[function(t,r,e){(function(n){(function(){var a=t("events"),o=t("jszip"),s=t("./stream-buf"),i=t("./browser-buffer-encode").stringToBuffer,c=function(l){Ht(f,l);var u=Qt(f);function f(h){var d;return At(this,f),(d=u.call(this)).options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},h),d.zip=new o,d.stream=new s,d}return Rt(f,[{key:"append",value:function(h,d){d.hasOwnProperty("base64")&&d.base64?this.zip.file(d.name,h,{base64:!0}):(n.browser&&typeof h=="string"&&(h=i(h)),this.zip.file(d.name,h))}},{key:"finalize",value:function(){var h=xr(Ne.mark(function p(){var m;return Ne.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,this.zip.generateAsync(this.options);case 2:m=v.sent,this.stream.end(m),this.emit("finish");case 5:case"end":return v.stop()}},p,this)}));function d(){return h.apply(this,arguments)}return d}()},{key:"read",value:function(h){return this.stream.read(h)}},{key:"setEncoding",value:function(h){return this.stream.setEncoding(h)}},{key:"pause",value:function(){return this.stream.pause()}},{key:"resume",value:function(){return this.stream.resume()}},{key:"isPaused",value:function(){return this.stream.isPaused()}},{key:"pipe",value:function(h,d){return this.stream.pipe(h,d)}},{key:"unpipe",value:function(h){return this.stream.unpipe(h)}},{key:"unshift",value:function(h){return this.stream.unshift(h)}},{key:"wrap",value:function(h){return this.stream.wrap(h)}}]),f}(a.EventEmitter);r.exports={ZipWriter:c}}).call(this)}).call(this,t("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(t,r,e){r.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(t,r,e){r.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(t,r,e){var n=t("../../utils/parse-sax"),a=t("../../utils/xml-stream"),o=function(){function s(){At(this,s)}return Rt(s,[{key:"prepare",value:function(){}},{key:"render",value:function(){}},{key:"parseOpen",value:function(i){}},{key:"parseText",value:function(i){}},{key:"parseClose",value:function(i){}},{key:"reconcile",value:function(i,c){}},{key:"reset",value:function(){this.model=null,this.map&&Object.values(this.map).forEach(function(i){i instanceof s?i.reset():i.xform&&i.xform.reset()})}},{key:"mergeModel",value:function(i){this.model=Object.assign(this.model||{},i)}},{key:"parse",value:function(){var i=xr(Ne.mark(function l(u){var f,h,d,p,m,v,b,g,y,w,x;return Ne.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:f=!1,h=!1,C.prev=2,p=lf(u);case 4:return C.next=6,p.next();case 6:if(!(f=!(m=C.sent).done)){C.next=37;break}v=m.value,b=ml(v),C.prev=9,b.s();case 11:if((g=b.n()).done){C.next=26;break}if(y=g.value,w=y.eventType,x=y.value,w!=="opentag"){C.next=17;break}this.parseOpen(x),C.next=24;break;case 17:if(w!=="text"){C.next=21;break}this.parseText(x),C.next=24;break;case 21:if(w!=="closetag"){C.next=24;break}if(this.parseClose(x.name)){C.next=24;break}return C.abrupt("return",this.model);case 24:C.next=11;break;case 26:C.next=31;break;case 28:C.prev=28,C.t0=C.catch(9),b.e(C.t0);case 31:return C.prev=31,b.f(),C.finish(31);case 34:f=!1,C.next=4;break;case 37:C.next=43;break;case 39:C.prev=39,C.t1=C.catch(2),h=!0,d=C.t1;case 43:if(C.prev=43,C.prev=44,!f||p.return==null){C.next=48;break}return C.next=48,p.return();case 48:if(C.prev=48,!h){C.next=51;break}throw d;case 51:return C.finish(48);case 52:return C.finish(43);case 53:return C.abrupt("return",this.model);case 54:case"end":return C.stop()}},l,this,[[2,39,43,53],[9,28,31,34],[44,,48,52]])}));function c(l){return i.apply(this,arguments)}return c}()},{key:"parseStream",value:function(){var i=xr(Ne.mark(function l(u){return Ne.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",this.parse(n(u)));case 1:case"end":return f.stop()}},l,this)}));function c(l){return i.apply(this,arguments)}return c}()},{key:"xml",get:function(){return this.toXml(this.model)}},{key:"toXml",value:function(i){var c=new a;return this.render(c,i),c.xml}}],[{key:"toAttribute",value:function(i,c){var l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(i===void 0){if(l)return c}else if(l||i!==c)return i.toString()}},{key:"toStringAttribute",value:function(i,c){var l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return s.toAttribute(i,c,l)}},{key:"toStringValue",value:function(i,c){return i===void 0?c:i}},{key:"toBoolAttribute",value:function(i,c){var l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(i===void 0){if(l)return c}else if(l||i!==c)return i?"1":"0"}},{key:"toBoolValue",value:function(i,c){return i===void 0?c:i==="1"}},{key:"toIntAttribute",value:function(i,c){var l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return s.toAttribute(i,c,l)}},{key:"toIntValue",value:function(i,c){return i===void 0?c:parseInt(i,10)}},{key:"toFloatAttribute",value:function(i,c){var l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return s.toAttribute(i,c,l)}},{key:"toFloatValue",value:function(i,c){return i===void 0?c:parseFloat(i)}}]),s}();r.exports=o},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(t,r,e){var n=t("../base-xform"),a=t("../../../utils/col-cache"),o=function(c){Ht(u,c);var l=Qt(u);function u(){return At(this,u),l.apply(this,arguments)}return Rt(u,[{key:"render",value:function(f,h){f.openNode("definedName",{name:h.name,localSheetId:h.localSheetId}),f.writeText(h.ranges.join(",")),f.closeNode()}},{key:"parseOpen",value:function(f){return f.name==="definedName"&&(this._parsedName=f.attributes.name,this._parsedLocalSheetId=f.attributes.localSheetId,this._parsedText=[],!0)}},{key:"parseText",value:function(f){this._parsedText.push(f)}},{key:"parseClose",value:function(){return this.model={name:this._parsedName,ranges:i(this._parsedText.join(""))},this._parsedLocalSheetId!==void 0&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}]),u}(n);function s(c){try{return a.decodeEx(c),!0}catch(l){return!1}}function i(c){var l=[],u=!1,f="";return c.split(",").forEach(function(h){if(h){var d=(h.match(/'/g)||[]).length;if(d){var p=d%2==0;!u&&p&&s(h)?l.push(h):u&&!p?(u=!1,s(f+h)&&l.push(f+h),f=""):(u=!0,f+="".concat(h,","))}else u?f+="".concat(h,","):s(h)&&l.push(h)}}),l}r.exports=o},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(t,r,e){var n=t("../../../utils/utils"),a=function(o){Ht(i,o);var s=Qt(i);function i(){return At(this,i),s.apply(this,arguments)}return Rt(i,[{key:"render",value:function(c,l){c.leafNode("sheet",{sheetId:l.id,name:l.name,state:l.state,"r:id":l.rId})}},{key:"parseOpen",value:function(c){return c.name==="sheet"&&(this.model={name:n.xmlDecode(c.attributes.name),id:parseInt(c.attributes.sheetId,10),state:c.attributes.state,rId:c.attributes["r:id"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),i}(t("../base-xform"));r.exports=a},{"../../../utils/utils":27,"../base-xform":32}],35:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"render",value:function(i,c){i.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:c.fullCalcOnLoad?1:void 0})}},{key:"parseOpen",value:function(i){return i.name==="calcPr"&&(this.model={},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],36:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"render",value:function(i,c){i.leafNode("workbookPr",{date1904:c.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}},{key:"parseOpen",value:function(i){return i.name==="workbookPr"&&(this.model={date1904:i.attributes.date1904==="1"},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],37:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"render",value:function(i,c){var l={xWindow:c.x||0,yWindow:c.y||0,windowWidth:c.width||12e3,windowHeight:c.height||24e3,firstSheet:c.firstSheet,activeTab:c.activeTab};c.visibility&&c.visibility!=="visible"&&(l.visibility=c.visibility),i.leafNode("workbookView",l)}},{key:"parseOpen",value:function(i){if(i.name==="workbookView"){var c=this.model={},l=function(f,h,d){var p=h!==void 0?c[f]=h:d;p!==void 0&&(c[f]=p)},u=function(f,h,d){var p=h!==void 0?c[f]=parseInt(h,10):d;p!==void 0&&(c[f]=p)};return u("x",i.attributes.xWindow,0),u("y",i.attributes.yWindow,0),u("width",i.attributes.windowWidth,25e3),u("height",i.attributes.windowHeight,1e4),l("visibility",i.attributes.visibility,"visible"),u("activeTab",i.attributes.activeTab,void 0),u("firstSheet",i.attributes.firstSheet,void 0),!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],38:[function(t,r,e){var n=t("../../../utils/under-dash"),a=t("../../../utils/col-cache"),o=t("../../../utils/xml-stream"),s=t("../base-xform"),i=t("../static-xform"),c=t("../list-xform"),l=t("./defined-name-xform"),u=t("./sheet-xform"),f=t("./workbook-view-xform"),h=t("./workbook-properties-xform"),d=t("./workbook-calc-properties-xform"),p=function(m){Ht(b,m);var v=Qt(b);function b(){var g;return At(this,b),(g=v.call(this)).map={fileVersion:b.STATIC_XFORMS.fileVersion,workbookPr:new h,bookViews:new c({tag:"bookViews",count:!1,childXform:new f}),sheets:new c({tag:"sheets",count:!1,childXform:new u}),definedNames:new c({tag:"definedNames",count:!1,childXform:new l}),calcPr:new d},g}return Rt(b,[{key:"prepare",value:function(g){g.sheets=g.worksheets;var y=[],w=0;g.sheets.forEach(function(x){if(x.pageSetup&&x.pageSetup.printArea&&x.pageSetup.printArea.split("&&").forEach(function(U){var L=U.split(":"),V={name:"_xlnm.Print_Area",ranges:["'".concat(x.name,"'!$").concat(L[0],":$").concat(L[1])],localSheetId:w};y.push(V)}),x.pageSetup&&(x.pageSetup.printTitlesRow||x.pageSetup.printTitlesColumn)){var C=[];if(x.pageSetup.printTitlesColumn){var O=x.pageSetup.printTitlesColumn.split(":");C.push("'".concat(x.name,"'!$").concat(O[0],":$").concat(O[1]))}if(x.pageSetup.printTitlesRow){var D=x.pageSetup.printTitlesRow.split(":");C.push("'".concat(x.name,"'!$").concat(D[0],":$").concat(D[1]))}var j={name:"_xlnm.Print_Titles",ranges:C,localSheetId:w};y.push(j)}w++}),y.length&&(g.definedNames=g.definedNames.concat(y)),(g.media||[]).forEach(function(x,C){x.name=x.type+(C+1)})}},{key:"render",value:function(g,y){g.openXml(o.StdDocAttributes),g.openNode("workbook",b.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(g),this.map.workbookPr.render(g,y.properties),this.map.bookViews.render(g,y.views),this.map.sheets.render(g,y.sheets),this.map.definedNames.render(g,y.definedNames),this.map.calcPr.render(g,y.calcProperties),g.closeNode()}},{key:"parseOpen",value:function(g){return this.parser?(this.parser.parseOpen(g),!0):(g.name==="workbook"||(this.parser=this.map[g.name],this.parser&&this.parser.parseOpen(g)),!0)}},{key:"parseText",value:function(g){this.parser&&this.parser.parseText(g)}},{key:"parseClose",value:function(g){return this.parser?(this.parser.parseClose(g)||(this.parser=void 0),!0):g!=="workbook"||(this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1)}},{key:"reconcile",value:function(g){var y,w=(g.workbookRels||[]).reduce(function(D,j){return D[j.Id]=j,D},{}),x=[],C=0;(g.sheets||[]).forEach(function(D){var j=w[D.rId];j&&(y=g.worksheetHash["xl/".concat(j.Target.replace(/^(\s|\/xl\/)+/,""))])&&(y.name=D.name,y.id=D.id,y.state=D.state,x[C++]=y)});var O=[];n.each(g.definedNames,function(D){if(D.name==="_xlnm.Print_Area"){if(y=x[D.localSheetId]){y.pageSetup||(y.pageSetup={});var j=a.decodeEx(D.ranges[0]);y.pageSetup.printArea=y.pageSetup.printArea?"".concat(y.pageSetup.printArea,"&&").concat(j.dimensions):j.dimensions}}else if(D.name==="_xlnm.Print_Titles"){if(y=x[D.localSheetId]){y.pageSetup||(y.pageSetup={});var U=D.ranges.join(","),L=/\$/g,V=/\$\d+:\$\d+/,A=U.match(V);if(A&&A.length){var N=A[0];y.pageSetup.printTitlesRow=N.replace(L,"")}var k=/\$[A-Z]+:\$[A-Z]+/,S=U.match(k);if(S&&S.length){var E=S[0];y.pageSetup.printTitlesColumn=E.replace(L,"")}}}else O.push(D)}),g.definedNames=O,g.media.forEach(function(D,j){D.index=j})}}]),b}(s);p.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"},p.STATIC_XFORMS={fileVersion:new i({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},r.exports=p},{"../../../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(t,r,e){var n=t("../strings/rich-text-xform"),a=t("../../../utils/utils"),o=t("../base-xform"),s=r.exports=function(i){this.model=i};a.inherits(s,o,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new n),this._richTextXform},render:function(i,c){var l=this;c=c||this.model,i.openNode("comment",{ref:c.ref,authorId:0}),i.openNode("text"),c&&c.note&&c.note.texts&&c.note.texts.forEach(function(u){l.richTextXform.render(i,u)}),i.closeNode(),i.closeNode()},parseOpen:function(i){if(this.parser)return this.parser.parseOpen(i),!0;switch(i.name){case"comment":return this.model=fn({type:"note",note:{texts:[]}},i.attributes),!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(i),!0;default:return!1}},parseText:function(i){this.parser&&this.parser.parseText(i)},parseClose:function(i){switch(i){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(i),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(t,r,e){var n=t("../../../utils/xml-stream"),a=t("../../../utils/utils"),o=t("../base-xform"),s=t("./comment-xform"),i=r.exports=function(){this.map={comment:new s}};a.inherits(i,o,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render:function(c,l){var u=this;l=l||this.model,c.openXml(n.StdDocAttributes),c.openNode("comments",i.COMMENTS_ATTRIBUTES),c.openNode("authors"),c.leafNode("author",null,"Author"),c.closeNode(),c.openNode("commentList"),l.comments.forEach(function(f){u.map.comment.render(c,f)}),c.closeNode(),c.closeNode()},parseOpen:function(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(c),!0;default:return!1}},parseText:function(c){this.parser&&this.parser.parseText(c)},parseClose:function(c){switch(c){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(c),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(i){var c;return At(this,s),(c=o.call(this))._model=i,c}return Rt(s,[{key:"tag",get:function(){return this._model&&this._model.tag}},{key:"render",value:function(i,c,l){(c===l[2]||this.tag==="x:SizeWithCells"&&c===l[1])&&i.leafNode(this.tag)}},{key:"parseOpen",value:function(i){return i.name===this.tag&&(this.model={},this.model[this.tag]=!0,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),s}(t("../../base-xform"));r.exports=n},{"../../base-xform":32}],42:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(i){var c;return At(this,s),(c=o.call(this))._model=i,c}return Rt(s,[{key:"tag",get:function(){return this._model&&this._model.tag}},{key:"render",value:function(i,c){i.leafNode(this.tag,null,c)}},{key:"parseOpen",value:function(i){return i.name===this.tag&&(this.text="",!0)}},{key:"parseText",value:function(i){this.text=i}},{key:"parseClose",value:function(){return!1}}]),s}(t("../../base-xform"));r.exports=n},{"../../base-xform":32}],43:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"tag",get:function(){return"x:Anchor"}},{key:"getAnchorRect",value:function(i){var c=Math.floor(i.left),l=Math.floor(68*(i.left-c)),u=Math.floor(i.top),f=Math.floor(18*(i.top-u)),h=Math.floor(i.right),d=Math.floor(68*(i.right-h)),p=Math.floor(i.bottom);return[c,l,u,f,h,d,p,Math.floor(18*(i.bottom-p))]}},{key:"getDefaultRect",value:function(i){var c=i.col,l=6,u=Math.max(i.row-2,0);return[c,l,u,14,c+2,2,u+4,16]}},{key:"render",value:function(i,c){var l=c.anchor?this.getAnchorRect(c.anchor):this.getDefaultRect(c.refAddress);i.leafNode("x:Anchor",null,l.join(", "))}},{key:"parseOpen",value:function(i){return i.name===this.tag&&(this.text="",!0)}},{key:"parseText",value:function(i){this.text=i}},{key:"parseClose",value:function(){return!1}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],44:[function(t,r,e){var n=t("../base-xform"),a=t("./vml-anchor-xform"),o=t("./style/vml-protection-xform"),s=t("./style/vml-position-xform"),i=["twoCells","oneCells","absolute"],c=function(l){Ht(f,l);var u=Qt(f);function f(){var h;return At(this,f),(h=u.call(this)).map={"x:Anchor":new a,"x:Locked":new o({tag:"x:Locked"}),"x:LockText":new o({tag:"x:LockText"}),"x:SizeWithCells":new s({tag:"x:SizeWithCells"}),"x:MoveWithCells":new s({tag:"x:MoveWithCells"})},h}return Rt(f,[{key:"tag",get:function(){return"x:ClientData"}},{key:"render",value:function(h,d){var p=d.note,m=p.protection,v=p.editAs;h.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(h,v,i),this.map["x:SizeWithCells"].render(h,v,i),this.map["x:Anchor"].render(h,d),this.map["x:Locked"].render(h,m.locked),h.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(h,m.lockText),h.leafNode("x:Row",null,d.refAddress.row-1),h.leafNode("x:Column",null,d.refAddress.col-1),h.closeNode()}},{key:"parseOpen",value:function(h){return h.name===this.tag?(this.reset(),this.model={anchor:[],protection:{},editAs:""}):(this.parser=this.map[h.name],this.parser&&this.parser.parseOpen(h)),!0}},{key:"parseText",value:function(h){this.parser&&this.parser.parseText(h)}},{key:"parseClose",value:function(h){return this.parser?(this.parser.parseClose(h)||(this.parser=void 0),!0):h!==this.tag||(this.normalizeModel(),!1)}},{key:"normalizeModel",value:function(){var h=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),d=Object.keys(h).length;this.model.editAs=i[d],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}}]),f}(n);r.exports=c},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(t,r,e){var n=t("../../../utils/xml-stream"),a=t("../base-xform"),o=t("./vml-shape-xform"),s=function(i){Ht(l,i);var c=Qt(l);function l(){var u;return At(this,l),(u=c.call(this)).map={"v:shape":new o},u}return Rt(l,[{key:"tag",get:function(){return"xml"}},{key:"render",value:function(u,f){var h=this;u.openXml(n.StdDocAttributes),u.openNode(this.tag,l.DRAWING_ATTRIBUTES),u.openNode("o:shapelayout",{"v:ext":"edit"}),u.leafNode("o:idmap",{"v:ext":"edit",data:1}),u.closeNode(),u.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),u.leafNode("v:stroke",{joinstyle:"miter"}),u.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),u.closeNode(),f.comments.forEach(function(d,p){h.map["v:shape"].render(u,d,p)}),u.closeNode()}},{key:"parseOpen",value:function(u){return this.parser?(this.parser.parseOpen(u),!0):(u.name===this.tag?(this.reset(),this.model={comments:[]}):(this.parser=this.map[u.name],this.parser&&this.parser.parseOpen(u)),!0)}},{key:"parseText",value:function(u){this.parser&&this.parser.parseText(u)}},{key:"parseClose",value:function(u){return this.parser?(this.parser.parseClose(u)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0):u!==this.tag}},{key:"reconcile",value:function(u,f){var h=this;u.anchors.forEach(function(d){d.br?h.map["xdr:twoCellAnchor"].reconcile(d,f):h.map["xdr:oneCellAnchor"].reconcile(d,f)})}}]),l}(a);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"},r.exports=s},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(t,r,e){var n=t("../base-xform"),a=t("./vml-textbox-xform"),o=t("./vml-client-data-xform"),s=function(i){Ht(l,i);var c=Qt(l);function l(){var u;return At(this,l),(u=c.call(this)).map={"v:textbox":new a,"x:ClientData":new o},u}return Rt(l,[{key:"tag",get:function(){return"v:shape"}},{key:"render",value:function(u,f,h){u.openNode("v:shape",l.V_SHAPE_ATTRIBUTES(f,h)),u.leafNode("v:fill",{color2:"infoBackground [80]"}),u.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),u.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(u,f),this.map["x:ClientData"].render(u,f),u.closeNode()}},{key:"parseOpen",value:function(u){return this.parser?(this.parser.parseOpen(u),!0):(u.name===this.tag?(this.reset(),this.model={margins:{insetmode:u.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}}):(this.parser=this.map[u.name],this.parser&&this.parser.parseOpen(u)),!0)}},{key:"parseText",value:function(u){this.parser&&this.parser.parseText(u)}},{key:"parseClose",value:function(u){return this.parser?(this.parser.parseClose(u)||(this.parser=void 0),!0):u!==this.tag||(this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1)}}]),l}(n);s.V_SHAPE_ATTRIBUTES=function(i,c){return{id:"_x0000_s".concat(1025+c),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":i.note.margins&&i.note.margins.insetmode}},r.exports=s},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"tag",get:function(){return"v:textbox"}},{key:"conversionUnit",value:function(i,c,l){return"".concat(parseFloat(i)*c.toFixed(2)).concat(l)}},{key:"reverseConversionUnit",value:function(i){var c=this;return(i||"").split(",").map(function(l){return Number(parseFloat(c.conversionUnit(parseFloat(l),.1,"")).toFixed(2))})}},{key:"render",value:function(i,c){var l=this,u={style:"mso-direction-alt:auto"};if(c&&c.note){var f=(c.note&&c.note.margins).inset;Array.isArray(f)&&(f=f.map(function(h){return l.conversionUnit(h,10,"mm")}).join(",")),f&&(u.inset=f)}i.openNode("v:textbox",u),i.leafNode("div",{style:"text-align:left"}),i.closeNode()}},{key:"parseOpen",value:function(i){return i.name!==this.tag||(this.model={inset:this.reverseConversionUnit(i.attributes.inset)},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(i){return i!==this.tag}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],48:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"createNewModel",value:function(i){return{}}},{key:"parseOpen",value:function(i){return this.parser=this.parser||this.map[i.name],this.parser?(this.parser.parseOpen(i),!0):i.name===this.tag&&(this.model=this.createNewModel(i),!0)}},{key:"parseText",value:function(i){this.parser&&this.parser.parseText(i)}},{key:"onParserClose",value:function(i,c){this.model[i]=c.model}},{key:"parseClose",value:function(i){return this.parser?(this.parser.parseClose(i)||(this.onParserClose(i,this.parser),this.parser=void 0),!0):i!==this.tag}}]),s}(t("./base-xform"));r.exports=n},{"./base-xform":32}],49:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"render",value:function(i,c){i.openNode("HeadingPairs"),i.openNode("vt:vector",{size:2,baseType:"variant"}),i.openNode("vt:variant"),i.leafNode("vt:lpstr",void 0,"Worksheets"),i.closeNode(),i.openNode("vt:variant"),i.leafNode("vt:i4",void 0,c.length),i.closeNode(),i.closeNode(),i.closeNode()}},{key:"parseOpen",value:function(i){return i.name==="HeadingPairs"}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(i){return i!=="HeadingPairs"}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],50:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"render",value:function(i,c){i.openNode("TitlesOfParts"),i.openNode("vt:vector",{size:c.length,baseType:"lpstr"}),c.forEach(function(l){i.leafNode("vt:lpstr",void 0,l.name)}),i.closeNode(),i.closeNode()}},{key:"parseOpen",value:function(i){return i.name==="TitlesOfParts"}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(i){return i!=="TitlesOfParts"}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],51:[function(t,r,e){var n=t("../../../utils/xml-stream"),a=t("../base-xform"),o=t("../simple/string-xform"),s=t("./app-heading-pairs-xform"),i=t("./app-titles-of-parts-xform"),c=function(l){Ht(f,l);var u=Qt(f);function f(){var h;return At(this,f),(h=u.call(this)).map={Company:new o({tag:"Company"}),Manager:new o({tag:"Manager"}),HeadingPairs:new s,TitleOfParts:new i},h}return Rt(f,[{key:"render",value:function(h,d){h.openXml(n.StdDocAttributes),h.openNode("Properties",f.PROPERTY_ATTRIBUTES),h.leafNode("Application",void 0,"Microsoft Excel"),h.leafNode("DocSecurity",void 0,"0"),h.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(h,d.worksheets),this.map.TitleOfParts.render(h,d.worksheets),this.map.Company.render(h,d.company||""),this.map.Manager.render(h,d.manager),h.leafNode("LinksUpToDate",void 0,"false"),h.leafNode("SharedDoc",void 0,"false"),h.leafNode("HyperlinksChanged",void 0,"false"),h.leafNode("AppVersion",void 0,"16.0300"),h.closeNode()}},{key:"parseOpen",value:function(h){return this.parser?(this.parser.parseOpen(h),!0):h.name==="Properties"||(this.parser=this.map[h.name],!!this.parser&&(this.parser.parseOpen(h),!0))}},{key:"parseText",value:function(h){this.parser&&this.parser.parseText(h)}},{key:"parseClose",value:function(h){return this.parser?(this.parser.parseClose(h)||(this.parser=void 0),!0):h!=="Properties"||(this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1)}}]),f}(a);c.DateFormat=function(l){return l.toISOString().replace(/[.]\d{3,6}/,"")},c.DateAttrs={"xsi:type":"dcterms:W3CDTF"},c.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},r.exports=c},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(t,r,e){var n=t("../../../utils/xml-stream"),a=function(o){Ht(i,o);var s=Qt(i);function i(){return At(this,i),s.apply(this,arguments)}return Rt(i,[{key:"render",value:function(c,l){c.openXml(n.StdDocAttributes),c.openNode("Types",i.PROPERTY_ATTRIBUTES);var u={};(l.media||[]).forEach(function(f){if(f.type==="image"){var h=f.extension;u[h]||(u[h]=!0,c.leafNode("Default",{Extension:h,ContentType:"image/".concat(h)}))}}),c.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),c.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),c.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),l.worksheets.forEach(function(f){var h="/xl/worksheets/sheet".concat(f.id,".xml");c.leafNode("Override",{PartName:h,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),c.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),c.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),l.sharedStrings&&l.sharedStrings.count&&c.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),l.tables&&l.tables.forEach(function(f){c.leafNode("Override",{PartName:"/xl/tables/".concat(f.target),ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),l.drawings&&l.drawings.forEach(function(f){c.leafNode("Override",{PartName:"/xl/drawings/".concat(f.name,".xml"),ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),l.commentRefs&&(c.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),l.commentRefs.forEach(function(f){var h=f.commentName;c.leafNode("Override",{PartName:"/xl/".concat(h,".xml"),ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),c.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),c.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),c.closeNode()}},{key:"parseOpen",value:function(){return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),i}(t("../base-xform"));a.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},r.exports=a},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(t,r,e){var n=t("../../../utils/xml-stream"),a=t("../base-xform"),o=t("../simple/date-xform"),s=t("../simple/string-xform"),i=t("../simple/integer-xform"),c=function(l){Ht(f,l);var u=Qt(f);function f(){var h;return At(this,f),(h=u.call(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 o({tag:"cp:lastPrinted",format:f.DateFormat}),"cp:revision":new i({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 o({tag:"dcterms:created",attrs:f.DateAttrs,format:f.DateFormat}),"dcterms:modified":new o({tag:"dcterms:modified",attrs:f.DateAttrs,format:f.DateFormat})},h}return Rt(f,[{key:"render",value:function(h,d){h.openXml(n.StdDocAttributes),h.openNode("cp:coreProperties",f.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(h,d.creator),this.map["dc:title"].render(h,d.title),this.map["dc:subject"].render(h,d.subject),this.map["dc:description"].render(h,d.description),this.map["dc:identifier"].render(h,d.identifier),this.map["dc:language"].render(h,d.language),this.map["cp:keywords"].render(h,d.keywords),this.map["cp:category"].render(h,d.category),this.map["cp:lastModifiedBy"].render(h,d.lastModifiedBy),this.map["cp:lastPrinted"].render(h,d.lastPrinted),this.map["cp:revision"].render(h,d.revision),this.map["cp:version"].render(h,d.version),this.map["cp:contentStatus"].render(h,d.contentStatus),this.map["cp:contentType"].render(h,d.contentType),this.map["dcterms:created"].render(h,d.created),this.map["dcterms:modified"].render(h,d.modified),h.closeNode()}},{key:"parseOpen",value:function(h){if(this.parser)return this.parser.parseOpen(h),!0;switch(h.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[h.name],this.parser)return this.parser.parseOpen(h),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(h)))}}},{key:"parseText",value:function(h){this.parser&&this.parser.parseText(h)}},{key:"parseClose",value:function(h){if(this.parser)return this.parser.parseClose(h)||(this.parser=void 0),!0;switch(h){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: ".concat(h))}}}]),f}(a);c.DateFormat=function(l){return l.toISOString().replace(/[.]\d{3}/,"")},c.DateAttrs={"xsi:type":"dcterms:W3CDTF"},c.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"},r.exports=c},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"render",value:function(i,c){i.leafNode("Relationship",c)}},{key:"parseOpen",value:function(i){return i.name==="Relationship"&&(this.model=i.attributes,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],55:[function(t,r,e){var n=t("../../../utils/xml-stream"),a=t("../base-xform"),o=t("./relationship-xform"),s=function(i){Ht(l,i);var c=Qt(l);function l(){var u;return At(this,l),(u=c.call(this)).map={Relationship:new o},u}return Rt(l,[{key:"render",value:function(u,f){var h=this;f=f||this._values,u.openXml(n.StdDocAttributes),u.openNode("Relationships",l.RELATIONSHIPS_ATTRIBUTES),f.forEach(function(d){h.map.Relationship.render(u,d)}),u.closeNode()}},{key:"parseOpen",value:function(u){if(this.parser)return this.parser.parseOpen(u),!0;if(u.name==="Relationships")return this.model=[],!0;if(this.parser=this.map[u.name],this.parser)return this.parser.parseOpen(u),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(u)))}},{key:"parseText",value:function(u){this.parser&&this.parser.parseText(u)}},{key:"parseClose",value:function(u){if(this.parser)return this.parser.parseClose(u)||(this.model.push(this.parser.model),this.parser=void 0),!0;if(u==="Relationships")return!1;throw new Error("Unexpected xml node in parseClose: ".concat(u))}}]),l}(a);s.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},r.exports=s},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"parseOpen",value:function(i){return this.parser?(this.parser.parseOpen(i),!0):(i.name===this.tag?(this.reset(),this.model={range:{editAs:i.attributes.editAs||"oneCell"}}):(this.parser=this.map[i.name],this.parser&&this.parser.parseOpen(i)),!0)}},{key:"parseText",value:function(i){this.parser&&this.parser.parseText(i)}},{key:"reconcilePicture",value:function(i,c){if(i&&i.rId){var l=c.rels[i.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(l){var u=l[1],f=c.mediaIndex[u];return c.media[f]}}}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],57:[function(t,r,e){var n=t("../base-xform"),a=t("./blip-xform"),o=function(s){Ht(c,s);var i=Qt(c);function c(){var l;return At(this,c),(l=i.call(this)).map={"a:blip":new a},l}return Rt(c,[{key:"tag",get:function(){return"xdr:blipFill"}},{key:"render",value:function(l,u){l.openNode(this.tag),this.map["a:blip"].render(l,u),l.openNode("a:stretch"),l.leafNode("a:fillRect"),l.closeNode(),l.closeNode()}},{key:"parseOpen",value:function(l){return this.parser?(this.parser.parseOpen(l),!0):(l.name===this.tag?this.reset():(this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(l){return this.parser?(this.parser.parseClose(l)||(this.parser=void 0),!0):l!==this.tag||(this.model=this.map["a:blip"].model,!1)}}]),c}(n);r.exports=o},{"../base-xform":32,"./blip-xform":58}],58:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"tag",get:function(){return"a:blip"}},{key:"render",value:function(i,c){i.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":c.rId,cstate:"print"})}},{key:"parseOpen",value:function(i){return i.name!==this.tag||(this.model={rId:i.attributes["r:embed"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(i){return i!==this.tag}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],59:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"tag",get:function(){return"xdr:cNvPicPr"}},{key:"render",value:function(i){i.openNode(this.tag),i.leafNode("a:picLocks",{noChangeAspect:"1"}),i.closeNode()}},{key:"parseOpen",value:function(i){return i.name,this.tag,!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(i){return i!==this.tag}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],60:[function(t,r,e){var n=t("../base-xform"),a=t("./hlink-click-xform"),o=t("./ext-lst-xform"),s=function(i){Ht(l,i);var c=Qt(l);function l(){var u;return At(this,l),(u=c.call(this)).map={"a:hlinkClick":new a,"a:extLst":new o},u}return Rt(l,[{key:"tag",get:function(){return"xdr:cNvPr"}},{key:"render",value:function(u,f){u.openNode(this.tag,{id:f.index,name:"Picture ".concat(f.index)}),this.map["a:hlinkClick"].render(u,f),this.map["a:extLst"].render(u,f),u.closeNode()}},{key:"parseOpen",value:function(u){return this.parser?(this.parser.parseOpen(u),!0):(u.name===this.tag?this.reset():(this.parser=this.map[u.name],this.parser&&this.parser.parseOpen(u)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(u){return this.parser?(this.parser.parseClose(u)||(this.parser=void 0),!0):u!==this.tag||(this.model=this.map["a:hlinkClick"].model,!1)}}]),l}(n);r.exports=s},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(t,r,e){var n=t("../base-xform"),a=t("../simple/integer-xform"),o=function(s){Ht(c,s);var i=Qt(c);function c(l){var u;return At(this,c),(u=i.call(this)).tag=l.tag,u.map={"xdr:col":new a({tag:"xdr:col",zero:!0}),"xdr:colOff":new a({tag:"xdr:colOff",zero:!0}),"xdr:row":new a({tag:"xdr:row",zero:!0}),"xdr:rowOff":new a({tag:"xdr:rowOff",zero:!0})},u}return Rt(c,[{key:"render",value:function(l,u){l.openNode(this.tag),this.map["xdr:col"].render(l,u.nativeCol),this.map["xdr:colOff"].render(l,u.nativeColOff),this.map["xdr:row"].render(l,u.nativeRow),this.map["xdr:rowOff"].render(l,u.nativeRowOff),l.closeNode()}},{key:"parseOpen",value:function(l){return this.parser?(this.parser.parseOpen(l),!0):(l.name===this.tag?this.reset():(this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)),!0)}},{key:"parseText",value:function(l){this.parser&&this.parser.parseText(l)}},{key:"parseClose",value:function(l){return this.parser?(this.parser.parseClose(l)||(this.parser=void 0),!0):l!==this.tag||(this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1)}}]),c}(n);r.exports=o},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(t,r,e){var n=t("../../../utils/col-cache"),a=t("../../../utils/xml-stream"),o=t("../base-xform"),s=t("./two-cell-anchor-xform"),i=t("./one-cell-anchor-xform");function c(u){return(typeof u.range=="string"?n.decode(u.range):u.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}var l=function(u){Ht(h,u);var f=Qt(h);function h(){var d;return At(this,h),(d=f.call(this)).map={"xdr:twoCellAnchor":new s,"xdr:oneCellAnchor":new i},d}return Rt(h,[{key:"prepare",value:function(d){var p=this;d.anchors.forEach(function(m,v){m.anchorType=c(m),p.map[m.anchorType].prepare(m,{index:v})})}},{key:"tag",get:function(){return"xdr:wsDr"}},{key:"render",value:function(d,p){var m=this;d.openXml(a.StdDocAttributes),d.openNode(this.tag,h.DRAWING_ATTRIBUTES),p.anchors.forEach(function(v){m.map[v.anchorType].render(d,v)}),d.closeNode()}},{key:"parseOpen",value:function(d){return this.parser?(this.parser.parseOpen(d),!0):(d.name===this.tag?(this.reset(),this.model={anchors:[]}):(this.parser=this.map[d.name],this.parser&&this.parser.parseOpen(d)),!0)}},{key:"parseText",value:function(d){this.parser&&this.parser.parseText(d)}},{key:"parseClose",value:function(d){return this.parser?(this.parser.parseClose(d)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0):d!==this.tag}},{key:"reconcile",value:function(d,p){var m=this;d.anchors.forEach(function(v){v.br?m.map["xdr:twoCellAnchor"].reconcile(v,p):m.map["xdr:oneCellAnchor"].reconcile(v,p)})}}]),h}(o);l.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},r.exports=l},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"tag",get:function(){return"a:extLst"}},{key:"render",value:function(i){i.openNode(this.tag),i.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),i.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),i.closeNode(),i.closeNode()}},{key:"parseOpen",value:function(i){return i.name,this.tag,!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(i){return i!==this.tag}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],64:[function(t,r,e){var n=t("../base-xform"),a=9525,o=function(s){Ht(c,s);var i=Qt(c);function c(l){var u;return At(this,c),(u=i.call(this)).tag=l.tag,u.map={},u}return Rt(c,[{key:"render",value:function(l,u){l.openNode(this.tag);var f=Math.floor(u.width*a),h=Math.floor(u.height*a);l.addAttribute("cx",f),l.addAttribute("cy",h),l.closeNode()}},{key:"parseOpen",value:function(l){return l.name===this.tag&&(this.model={width:parseInt(l.attributes.cx||"0",10)/a,height:parseInt(l.attributes.cy||"0",10)/a},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),c}(n);r.exports=o},{"../base-xform":32}],65:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"tag",get:function(){return"a:hlinkClick"}},{key:"render",value:function(i,c){c.hyperlinks&&c.hyperlinks.rId&&i.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":c.hyperlinks.rId,tooltip:c.hyperlinks.tooltip})}},{key:"parseOpen",value:function(i){return i.name!==this.tag||(this.model={hyperlinks:{rId:i.attributes["r:id"],tooltip:i.attributes.tooltip}},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],66:[function(t,r,e){var n=t("../base-xform"),a=t("./c-nv-pr-xform"),o=t("./c-nv-pic-pr-xform"),s=function(i){Ht(l,i);var c=Qt(l);function l(){var u;return At(this,l),(u=c.call(this)).map={"xdr:cNvPr":new a,"xdr:cNvPicPr":new o},u}return Rt(l,[{key:"tag",get:function(){return"xdr:nvPicPr"}},{key:"render",value:function(u,f){u.openNode(this.tag),this.map["xdr:cNvPr"].render(u,f),this.map["xdr:cNvPicPr"].render(u,f),u.closeNode()}},{key:"parseOpen",value:function(u){return this.parser?(this.parser.parseOpen(u),!0):(u.name===this.tag?this.reset():(this.parser=this.map[u.name],this.parser&&this.parser.parseOpen(u)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(u){return this.parser?(this.parser.parseClose(u)||(this.parser=void 0),!0):u!==this.tag||(this.model=this.map["xdr:cNvPr"].model,!1)}}]),l}(n);r.exports=s},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(t,r,e){var n=t("./base-cell-anchor-xform"),a=t("../static-xform"),o=t("./cell-position-xform"),s=t("./ext-xform"),i=t("./pic-xform"),c=function(l){Ht(f,l);var u=Qt(f);function f(){var h;return At(this,f),(h=u.call(this)).map={"xdr:from":new o({tag:"xdr:from"}),"xdr:ext":new s({tag:"xdr:ext"}),"xdr:pic":new i,"xdr:clientData":new a({tag:"xdr:clientData"})},h}return Rt(f,[{key:"tag",get:function(){return"xdr:oneCellAnchor"}},{key:"prepare",value:function(h,d){this.map["xdr:pic"].prepare(h.picture,d)}},{key:"render",value:function(h,d){h.openNode(this.tag,{editAs:d.range.editAs||"oneCell"}),this.map["xdr:from"].render(h,d.range.tl),this.map["xdr:ext"].render(h,d.range.ext),this.map["xdr:pic"].render(h,d.picture),this.map["xdr:clientData"].render(h,{}),h.closeNode()}},{key:"parseClose",value:function(h){return this.parser?(this.parser.parseClose(h)||(this.parser=void 0),!0):h!==this.tag||(this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1)}},{key:"reconcile",value:function(h,d){h.medium=this.reconcilePicture(h.picture,d)}}]),f}(n);r.exports=c},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(t,r,e){var n=t("../base-xform"),a=t("../static-xform"),o=t("./blip-fill-xform"),s=t("./nv-pic-pr-xform"),i=t("./sp-pr"),c=function(l){Ht(f,l);var u=Qt(f);function f(){var h;return At(this,f),(h=u.call(this)).map={"xdr:nvPicPr":new s,"xdr:blipFill":new o,"xdr:spPr":new a(i)},h}return Rt(f,[{key:"tag",get:function(){return"xdr:pic"}},{key:"prepare",value:function(h,d){h.index=d.index+1}},{key:"render",value:function(h,d){h.openNode(this.tag),this.map["xdr:nvPicPr"].render(h,d),this.map["xdr:blipFill"].render(h,d),this.map["xdr:spPr"].render(h,d),h.closeNode()}},{key:"parseOpen",value:function(h){return this.parser?(this.parser.parseOpen(h),!0):(h.name===this.tag?this.reset():(this.parser=this.map[h.name],this.parser&&this.parser.parseOpen(h)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(h){return this.parser?(this.parser.parseClose(h)||(this.mergeModel(this.parser.model),this.parser=void 0),!0):h!==this.tag}}]),f}(n);r.exports=c},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(t,r,e){r.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(t,r,e){var n=t("./base-cell-anchor-xform"),a=t("../static-xform"),o=t("./cell-position-xform"),s=t("./pic-xform"),i=function(c){Ht(u,c);var l=Qt(u);function u(){var f;return At(this,u),(f=l.call(this)).map={"xdr:from":new o({tag:"xdr:from"}),"xdr:to":new o({tag:"xdr:to"}),"xdr:pic":new s,"xdr:clientData":new a({tag:"xdr:clientData"})},f}return Rt(u,[{key:"tag",get:function(){return"xdr:twoCellAnchor"}},{key:"prepare",value:function(f,h){this.map["xdr:pic"].prepare(f.picture,h)}},{key:"render",value:function(f,h){f.openNode(this.tag,{editAs:h.range.editAs||"oneCell"}),this.map["xdr:from"].render(f,h.range.tl),this.map["xdr:to"].render(f,h.range.br),this.map["xdr:pic"].render(f,h.picture),this.map["xdr:clientData"].render(f,{}),f.closeNode()}},{key:"parseClose",value:function(f){return this.parser?(this.parser.parseClose(f)||(this.parser=void 0),!0):f!==this.tag||(this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1)}},{key:"reconcile",value:function(f,h){f.medium=this.reconcilePicture(f.picture,h)}}]),u}(n);r.exports=i},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(i){var c;return At(this,s),(c=o.call(this)).tag=i.tag,c.always=!!i.always,c.count=i.count,c.empty=i.empty,c.$count=i.$count||"count",c.$=i.$,c.childXform=i.childXform,c.maxItems=i.maxItems,c}return Rt(s,[{key:"prepare",value:function(i,c){var l=this.childXform;i&&i.forEach(function(u,f){c.index=f,l.prepare(u,c)})}},{key:"render",value:function(i,c){if(this.always||c&&c.length){i.openNode(this.tag,this.$),this.count&&i.addAttribute(this.$count,c&&c.length||0);var l=this.childXform;(c||[]).forEach(function(u,f){l.render(i,u,f)}),i.closeNode()}else this.empty&&i.leafNode(this.tag)}},{key:"parseOpen",value:function(i){return this.parser?(this.parser.parseOpen(i),!0):i.name===this.tag?(this.model=[],!0):!!this.childXform.parseOpen(i)&&(this.parser=this.childXform,!0)}},{key:"parseText",value:function(i){this.parser&&this.parser.parseText(i)}},{key:"parseClose",value:function(i){if(this.parser){if(!this.parser.parseClose(i)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error("Max ".concat(this.childXform.tag," count (").concat(this.maxItems,") exceeded"));return!0}return!1}},{key:"reconcile",value:function(i,c){if(i){var l=this.childXform;i.forEach(function(u){l.reconcile(u,c)})}}}]),s}(t("./base-xform"));r.exports=n},{"./base-xform":32}],72:[function(t,r,e){var n=t("../../../utils/col-cache"),a=function(o){Ht(i,o);var s=Qt(i);function i(){return At(this,i),s.apply(this,arguments)}return Rt(i,[{key:"tag",get:function(){return"autoFilter"}},{key:"render",value:function(c,l){if(l)if(typeof l=="string")c.leafNode("autoFilter",{ref:l});else{var u=function(d){return typeof d=="string"?d:n.getAddress(d.row,d.column).address},f=u(l.from),h=u(l.to);f&&h&&c.leafNode("autoFilter",{ref:"".concat(f,":").concat(h)})}}},{key:"parseOpen",value:function(c){c.name==="autoFilter"&&(this.model=c.attributes.ref)}}]),i}(t("../base-xform"));r.exports=a},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(t,r,e){var n=t("../../../utils/utils"),a=t("../base-xform"),o=t("../../../doc/range"),s=t("../../../doc/enums"),i=t("../strings/rich-text-xform");function c(f){if(f==null)return s.ValueType.Null;if(f instanceof String||typeof f=="string")return s.ValueType.String;if(typeof f=="number")return s.ValueType.Number;if(typeof f=="boolean")return s.ValueType.Boolean;if(f instanceof Date)return s.ValueType.Date;if(f.text&&f.hyperlink)return s.ValueType.Hyperlink;if(f.formula)return s.ValueType.Formula;if(f.error)return s.ValueType.Error;throw new Error("I could not understand type of value")}function l(f){return f.type===s.ValueType.Formula?c(f.result):f.type}var u=function(f){Ht(d,f);var h=Qt(d);function d(){var p;return At(this,d),(p=h.call(this)).richTextXForm=new i,p}return Rt(d,[{key:"tag",get:function(){return"c"}},{key:"prepare",value:function(p,m){var v=m.styles.addStyleModel(p.style||{},l(p));switch(v&&(p.styleId=v),p.comment&&m.comments.push(fn(fn({},p.comment),{},{ref:p.address})),p.type){case s.ValueType.String:case s.ValueType.RichText:m.sharedStrings&&(p.ssId=m.sharedStrings.add(p.value));break;case s.ValueType.Date:m.date1904&&(p.date1904=!0);break;case s.ValueType.Hyperlink:m.sharedStrings&&p.text!==void 0&&p.text!==null&&(p.ssId=m.sharedStrings.add(p.text)),m.hyperlinks.push({address:p.address,target:p.hyperlink,tooltip:p.tooltip});break;case s.ValueType.Merge:m.merges.add(p);break;case s.ValueType.Formula:if(m.date1904&&(p.date1904=!0),p.shareType==="shared"&&(p.si=m.siFormulae++),p.formula)m.formulae[p.address]=p;else if(p.sharedFormula){var b=m.formulae[p.sharedFormula];if(!b)throw new Error("Shared Formula master must exist above and or left of clone for cell ".concat(p.address));b.si===void 0?(b.shareType="shared",b.si=m.siFormulae++,b.range=new o(b.address,p.address)):b.range&&b.range.expandToAddress(p.address),p.si=b.si}}}},{key:"renderFormula",value:function(p,m){var v=null;switch(m.shareType){case"shared":v={t:"shared",ref:m.ref||m.range.range,si:m.si};break;case"array":v={t:"array",ref:m.ref};break;default:m.si!==void 0&&(v={t:"shared",si:m.si})}switch(c(m.result)){case s.ValueType.Null:p.leafNode("f",v,m.formula);break;case s.ValueType.String:p.addAttribute("t","str"),p.leafNode("f",v,m.formula),p.leafNode("v",null,m.result);break;case s.ValueType.Number:p.leafNode("f",v,m.formula),p.leafNode("v",null,m.result);break;case s.ValueType.Boolean:p.addAttribute("t","b"),p.leafNode("f",v,m.formula),p.leafNode("v",null,m.result?1:0);break;case s.ValueType.Error:p.addAttribute("t","e"),p.leafNode("f",v,m.formula),p.leafNode("v",null,m.result.error);break;case s.ValueType.Date:p.leafNode("f",v,m.formula),p.leafNode("v",null,n.dateToExcel(m.result,m.date1904));break;default:throw new Error("I could not understand type of value")}}},{key:"render",value:function(p,m){var v=this;if(m.type!==s.ValueType.Null||m.styleId){switch(p.openNode("c"),p.addAttribute("r",m.address),m.styleId&&p.addAttribute("s",m.styleId),m.type){case s.ValueType.Null:break;case s.ValueType.Number:p.leafNode("v",null,m.value);break;case s.ValueType.Boolean:p.addAttribute("t","b"),p.leafNode("v",null,m.value?"1":"0");break;case s.ValueType.Error:p.addAttribute("t","e"),p.leafNode("v",null,m.value.error);break;case s.ValueType.String:case s.ValueType.RichText:m.ssId!==void 0?(p.addAttribute("t","s"),p.leafNode("v",null,m.ssId)):m.value&&m.value.richText?(p.addAttribute("t","inlineStr"),p.openNode("is"),m.value.richText.forEach(function(b){v.richTextXForm.render(p,b)}),p.closeNode("is")):(p.addAttribute("t","str"),p.leafNode("v",null,m.value));break;case s.ValueType.Date:p.leafNode("v",null,n.dateToExcel(m.value,m.date1904));break;case s.ValueType.Hyperlink:m.ssId!==void 0?(p.addAttribute("t","s"),p.leafNode("v",null,m.ssId)):(p.addAttribute("t","str"),p.leafNode("v",null,m.text));break;case s.ValueType.Formula:this.renderFormula(p,m);case s.ValueType.Merge:}p.closeNode()}}},{key:"parseOpen",value:function(p){if(this.parser)return this.parser.parseOpen(p),!0;switch(p.name){case"c":return this.model={address:p.attributes.r},this.t=p.attributes.t,p.attributes.s&&(this.model.styleId=parseInt(p.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=p.attributes.si,this.model.shareType=p.attributes.t,this.model.ref=p.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(p),!0;default:return!1}}},{key:"parseText",value:function(p){if(this.parser)this.parser.parseText(p);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+p:p;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+p:p:this.model.value=this.model.value?this.model.value+p:p}}},{key:"parseClose",value:function(p){switch(p){case"c":var m=this.model;if(m.formula||m.shareType)m.type=s.ValueType.Formula,m.value&&(this.t==="str"?m.result=n.xmlDecode(m.value):this.t==="b"?m.result=parseInt(m.value,10)!==0:this.t==="e"?m.result={error:m.value}:m.result=parseFloat(m.value),m.value=void 0);else if(m.value!==void 0)switch(this.t){case"s":m.type=s.ValueType.String,m.value=parseInt(m.value,10);break;case"str":m.type=s.ValueType.String,m.value=n.xmlDecode(m.value);break;case"inlineStr":m.type=s.ValueType.String;break;case"b":m.type=s.ValueType.Boolean,m.value=parseInt(m.value,10)!==0;break;case"e":m.type=s.ValueType.Error,m.value={error:m.value};break;default:m.type=s.ValueType.Number,m.value=parseFloat(m.value)}else m.styleId?m.type=s.ValueType.Null:m.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(p),!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(p),!0)}}},{key:"reconcile",value:function(p,m){var v=p.styleId&&m.styles&&m.styles.getStyleModel(p.styleId);switch(v&&(p.style=v),p.styleId!==void 0&&(p.styleId=void 0),p.type){case s.ValueType.String:typeof p.value=="number"&&m.sharedStrings&&(p.value=m.sharedStrings.getString(p.value)),p.value.richText&&(p.type=s.ValueType.RichText);break;case s.ValueType.Number:v&&n.isDateFmt(v.numFmt)&&(p.type=s.ValueType.Date,p.value=n.excelToDate(p.value,m.date1904));break;case s.ValueType.Formula:p.result!==void 0&&v&&n.isDateFmt(v.numFmt)&&(p.result=n.excelToDate(p.result,m.date1904)),p.shareType==="shared"&&(p.ref?m.formulae[p.si]=p.address:(p.sharedFormula=m.formulae[p.si],delete p.shareType),delete p.si)}var b=m.hyperlinkMap[p.address];b&&(p.type===s.ValueType.Formula?(p.text=p.result,p.result=void 0):(p.text=p.value,p.value=void 0),p.type=s.ValueType.Hyperlink,p.hyperlink=b);var g=m.commentsMap&&m.commentsMap[p.address];g&&(p.comment=g)}}]),d}(a);r.exports=u},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(t,r,e){var n=t("../../base-xform"),a=function(o){Ht(i,o);var s=Qt(i);function i(){return At(this,i),s.apply(this,arguments)}return Rt(i,[{key:"tag",get:function(){return"x14:cfIcon"}},{key:"render",value:function(c,l){c.leafNode(this.tag,{iconSet:l.iconSet,iconId:l.iconId})}},{key:"parseOpen",value:function(c){var l=c.attributes;this.model={iconSet:l.iconSet,iconId:n.toIntValue(l.iconId)}}},{key:"parseClose",value:function(c){return c!==this.tag}}]),i}(n);r.exports=a},{"../../base-xform":32}],75:[function(t,r,e){var n=t("uuid").v4,a=t("../../base-xform"),o=t("../../composite-xform"),s=t("./databar-ext-xform"),i=t("./icon-set-ext-xform"),c={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},l=function(u){Ht(h,u);var f=Qt(h);function h(){var d;return At(this,h),(d=f.call(this)).map={"x14:dataBar":d.databarXform=new s,"x14:iconSet":d.iconSetXform=new i},d}return Rt(h,[{key:"tag",get:function(){return"x14:cfRule"}},{key:"prepare",value:function(d){h.isExt(d)&&(d.x14Id="{".concat(n(),"}").toUpperCase())}},{key:"render",value:function(d,p){if(h.isExt(p))switch(p.type){case"dataBar":this.renderDataBar(d,p);break;case"iconSet":this.renderIconSet(d,p)}}},{key:"renderDataBar",value:function(d,p){d.openNode(this.tag,{type:"dataBar",id:p.x14Id}),this.databarXform.render(d,p),d.closeNode()}},{key:"renderIconSet",value:function(d,p){d.openNode(this.tag,{type:"iconSet",priority:p.priority,id:p.x14Id||"{".concat(n(),"}")}),this.iconSetXform.render(d,p),d.closeNode()}},{key:"createNewModel",value:function(d){var p=d.attributes;return{type:p.type,x14Id:p.id,priority:a.toIntValue(p.priority)}}},{key:"onParserClose",value:function(d,p){Object.assign(this.model,p.model)}}],[{key:"isExt",value:function(d){return d.type==="dataBar"?s.isExt(d):!(d.type!=="iconSet"||!d.custom&&!c[d.iconSet])}}]),h}(o);r.exports=l},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(t,r,e){var n=t("../../composite-xform"),a=t("./f-ext-xform"),o=function(s){Ht(c,s);var i=Qt(c);function c(){var l;return At(this,c),(l=i.call(this)).map={"xm:f":l.fExtXform=new a},l}return Rt(c,[{key:"tag",get:function(){return"x14:cfvo"}},{key:"render",value:function(l,u){l.openNode(this.tag,{type:u.type}),u.value!==void 0&&this.fExtXform.render(l,u.value),l.closeNode()}},{key:"createNewModel",value:function(l){return{type:l.attributes.type}}},{key:"onParserClose",value:function(l,u){l==="xm:f"&&(this.model.value=u.model?parseFloat(u.model):0)}}]),c}(n);r.exports=o},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(t,r,e){var n=t("../../composite-xform"),a=t("./sqref-ext-xform"),o=t("./cf-rule-ext-xform"),s=function(i){Ht(l,i);var c=Qt(l);function l(){var u;return At(this,l),(u=c.call(this)).map={"xm:sqref":u.sqRef=new a,"x14:cfRule":u.cfRule=new o},u}return Rt(l,[{key:"tag",get:function(){return"x14:conditionalFormatting"}},{key:"prepare",value:function(u,f){var h=this;u.rules.forEach(function(d){h.cfRule.prepare(d,f)})}},{key:"render",value:function(u,f){var h=this;f.rules.some(o.isExt)&&(u.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),f.rules.filter(o.isExt).forEach(function(d){return h.cfRule.render(u,d)}),this.sqRef.render(u,f.ref),u.closeNode())}},{key:"createNewModel",value:function(){return{rules:[]}}},{key:"onParserClose",value:function(u,f){switch(u){case"xm:sqref":this.model.ref=f.model;break;case"x14:cfRule":this.model.rules.push(f.model)}}}]),l}(n);r.exports=s},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(t,r,e){var n=t("../../composite-xform"),a=t("./cf-rule-ext-xform"),o=t("./conditional-formatting-ext-xform"),s=function(i){Ht(l,i);var c=Qt(l);function l(){var u;return At(this,l),(u=c.call(this)).map={"x14:conditionalFormatting":u.cfXform=new o},u}return Rt(l,[{key:"tag",get:function(){return"x14:conditionalFormattings"}},{key:"hasContent",value:function(u){return u.hasExtContent===void 0&&(u.hasExtContent=u.some(function(f){return f.rules.some(a.isExt)})),u.hasExtContent}},{key:"prepare",value:function(u,f){var h=this;u.forEach(function(d){h.cfXform.prepare(d,f)})}},{key:"render",value:function(u,f){var h=this;this.hasContent(f)&&(u.openNode(this.tag),f.forEach(function(d){return h.cfXform.render(u,d)}),u.closeNode())}},{key:"createNewModel",value:function(){return[]}},{key:"onParserClose",value:function(u,f){this.model.push(f.model)}}]),l}(n);r.exports=s},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(t,r,e){var n=t("../../base-xform"),a=t("../../composite-xform"),o=t("../../style/color-xform"),s=t("./cfvo-ext-xform"),i=function(c){Ht(u,c);var l=Qt(u);function u(){var f;return At(this,u),(f=l.call(this)).map={"x14:cfvo":f.cfvoXform=new s,"x14:borderColor":f.borderColorXform=new o("x14:borderColor"),"x14:negativeBorderColor":f.negativeBorderColorXform=new o("x14:negativeBorderColor"),"x14:negativeFillColor":f.negativeFillColorXform=new o("x14:negativeFillColor"),"x14:axisColor":f.axisColorXform=new o("x14:axisColor")},f}return Rt(u,[{key:"tag",get:function(){return"x14:dataBar"}},{key:"render",value:function(f,h){var d=this;f.openNode(this.tag,{minLength:n.toIntAttribute(h.minLength,0,!0),maxLength:n.toIntAttribute(h.maxLength,100,!0),border:n.toBoolAttribute(h.border,!1),gradient:n.toBoolAttribute(h.gradient,!0),negativeBarColorSameAsPositive:n.toBoolAttribute(h.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:n.toBoolAttribute(h.negativeBarBorderColorSameAsPositive,!0),axisPosition:n.toAttribute(h.axisPosition,"auto"),direction:n.toAttribute(h.direction,"leftToRight")}),h.cfvo.forEach(function(p){d.cfvoXform.render(f,p)}),this.borderColorXform.render(f,h.borderColor),this.negativeBorderColorXform.render(f,h.negativeBorderColor),this.negativeFillColorXform.render(f,h.negativeFillColor),this.axisColorXform.render(f,h.axisColor),f.closeNode()}},{key:"createNewModel",value:function(f){var h=f.attributes;return{cfvo:[],minLength:n.toIntValue(h.minLength,0),maxLength:n.toIntValue(h.maxLength,100),border:n.toBoolValue(h.border,!1),gradient:n.toBoolValue(h.gradient,!0),negativeBarColorSameAsPositive:n.toBoolValue(h.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:n.toBoolValue(h.negativeBarBorderColorSameAsPositive,!0),axisPosition:n.toStringValue(h.axisPosition,"auto"),direction:n.toStringValue(h.direction,"leftToRight")}}},{key:"onParserClose",value:function(f,h){var d=$e(f.split(":"),2)[1];d==="cfvo"?this.model.cfvo.push(h.model):this.model[d]=h.model}}],[{key:"isExt",value:function(f){return!f.gradient}}]),u}(a);r.exports=i},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"tag",get:function(){return"xm:f"}},{key:"render",value:function(i,c){i.leafNode(this.tag,null,c)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(i){this.model+=i}},{key:"parseClose",value:function(i){return i!==this.tag}}]),s}(t("../../base-xform"));r.exports=n},{"../../base-xform":32}],81:[function(t,r,e){var n=t("../../base-xform"),a=t("../../composite-xform"),o=t("./cfvo-ext-xform"),s=t("./cf-icon-ext-xform"),i=function(c){Ht(u,c);var l=Qt(u);function u(){var f;return At(this,u),(f=l.call(this)).map={"x14:cfvo":f.cfvoXform=new o,"x14:cfIcon":f.cfIconXform=new s},f}return Rt(u,[{key:"tag",get:function(){return"x14:iconSet"}},{key:"render",value:function(f,h){var d=this;f.openNode(this.tag,{iconSet:n.toStringAttribute(h.iconSet),reverse:n.toBoolAttribute(h.reverse,!1),showValue:n.toBoolAttribute(h.showValue,!0),custom:n.toBoolAttribute(h.icons,!1)}),h.cfvo.forEach(function(p){d.cfvoXform.render(f,p)}),h.icons&&h.icons.forEach(function(p,m){p.iconId=m,d.cfIconXform.render(f,p)}),f.closeNode()}},{key:"createNewModel",value:function(f){var h=f.attributes;return{cfvo:[],iconSet:n.toStringValue(h.iconSet,"3TrafficLights"),reverse:n.toBoolValue(h.reverse,!1),showValue:n.toBoolValue(h.showValue,!0)}}},{key:"onParserClose",value:function(f,h){var d=$e(f.split(":"),2)[1];switch(d){case"cfvo":this.model.cfvo.push(h.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(h.model);break;default:this.model[d]=h.model}}}]),u}(a);r.exports=i},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"tag",get:function(){return"xm:sqref"}},{key:"render",value:function(i,c){i.leafNode(this.tag,null,c)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(i){this.model+=i}},{key:"parseClose",value:function(i){return i!==this.tag}}]),s}(t("../../base-xform"));r.exports=n},{"../../base-xform":32}],83:[function(t,r,e){var n=t("../../base-xform"),a=t("../../composite-xform"),o=t("../../../../doc/range"),s=t("./databar-xform"),i=t("./ext-lst-ref-xform"),c=t("./formula-xform"),l=t("./color-scale-xform"),u=t("./icon-set-xform"),f={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},h=function(v){if(v.formulae&&v.formulae[0])return v.formulae[0];var b=new o(v.ref).tl;switch(v.operator){case"containsText":return'NOT(ISERROR(SEARCH("'.concat(v.text,'",').concat(b,")))");case"containsBlanks":return"LEN(TRIM(".concat(b,"))=0");case"notContainsBlanks":return"LEN(TRIM(".concat(b,"))>0");case"containsErrors":return"ISERROR(".concat(b,")");case"notContainsErrors":return"NOT(ISERROR(".concat(b,"))");default:return}},d=function(v){if(v.formulae&&v.formulae[0])return v.formulae[0];var b=new o(v.ref).tl;switch(v.timePeriod){case"thisWeek":return"AND(TODAY()-ROUNDDOWN(".concat(b,",0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(").concat(b,",0)-TODAY()<=7-WEEKDAY(TODAY()))");case"lastWeek":return"AND(TODAY()-ROUNDDOWN(".concat(b,",0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(").concat(b,",0)<(WEEKDAY(TODAY())+7))");case"nextWeek":return"AND(ROUNDDOWN(".concat(b,",0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(").concat(b,",0)-TODAY()<(15-WEEKDAY(TODAY())))");case"yesterday":return"FLOOR(".concat(b,",1)=TODAY()-1");case"today":return"FLOOR(".concat(b,",1)=TODAY()");case"tomorrow":return"FLOOR(".concat(b,",1)=TODAY()+1");case"last7Days":return"AND(TODAY()-FLOOR(".concat(b,",1)<=6,FLOOR(").concat(b,",1)<=TODAY())");case"lastMonth":return"AND(MONTH(".concat(b,")=MONTH(EDATE(TODAY(),0-1)),YEAR(").concat(b,")=YEAR(EDATE(TODAY(),0-1)))");case"thisMonth":return"AND(MONTH(".concat(b,")=MONTH(TODAY()),YEAR(").concat(b,")=YEAR(TODAY()))");case"nextMonth":return"AND(MONTH(".concat(b,")=MONTH(EDATE(TODAY(),0+1)),YEAR(").concat(b,")=YEAR(EDATE(TODAY(),0+1)))");default:return}},p=function(v){var b=v.type,g=v.operator;switch(b){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:b};default:return{type:b,operator:g}}},m=function(v){Ht(g,v);var b=Qt(g);function g(){var y;return At(this,g),(y=b.call(this)).map={dataBar:y.databarXform=new s,extLst:y.extLstRefXform=new i,formula:y.formulaXform=new c,colorScale:y.colorScaleXform=new l,iconSet:y.iconSetXform=new u},y}return Rt(g,[{key:"tag",get:function(){return"cfRule"}},{key:"render",value:function(y,w){switch(w.type){case"expression":this.renderExpression(y,w);break;case"cellIs":this.renderCellIs(y,w);break;case"top10":this.renderTop10(y,w);break;case"aboveAverage":this.renderAboveAverage(y,w);break;case"dataBar":this.renderDataBar(y,w);break;case"colorScale":this.renderColorScale(y,w);break;case"iconSet":this.renderIconSet(y,w);break;case"containsText":this.renderText(y,w);break;case"timePeriod":this.renderTimePeriod(y,w)}}},{key:"renderExpression",value:function(y,w){y.openNode(this.tag,{type:"expression",dxfId:w.dxfId,priority:w.priority}),this.formulaXform.render(y,w.formulae[0]),y.closeNode()}},{key:"renderCellIs",value:function(y,w){var x=this;y.openNode(this.tag,{type:"cellIs",dxfId:w.dxfId,priority:w.priority,operator:w.operator}),w.formulae.forEach(function(C){x.formulaXform.render(y,C)}),y.closeNode()}},{key:"renderTop10",value:function(y,w){y.leafNode(this.tag,{type:"top10",dxfId:w.dxfId,priority:w.priority,percent:n.toBoolAttribute(w.percent,!1),bottom:n.toBoolAttribute(w.bottom,!1),rank:n.toIntValue(w.rank,10,!0)})}},{key:"renderAboveAverage",value:function(y,w){y.leafNode(this.tag,{type:"aboveAverage",dxfId:w.dxfId,priority:w.priority,aboveAverage:n.toBoolAttribute(w.aboveAverage,!0)})}},{key:"renderDataBar",value:function(y,w){y.openNode(this.tag,{type:"dataBar",priority:w.priority}),this.databarXform.render(y,w),this.extLstRefXform.render(y,w),y.closeNode()}},{key:"renderColorScale",value:function(y,w){y.openNode(this.tag,{type:"colorScale",priority:w.priority}),this.colorScaleXform.render(y,w),y.closeNode()}},{key:"renderIconSet",value:function(y,w){g.isPrimitive(w)&&(y.openNode(this.tag,{type:"iconSet",priority:w.priority}),this.iconSetXform.render(y,w),y.closeNode())}},{key:"renderText",value:function(y,w){y.openNode(this.tag,{type:w.operator,dxfId:w.dxfId,priority:w.priority,operator:n.toStringAttribute(w.operator,"containsText")});var x=h(w);x&&this.formulaXform.render(y,x),y.closeNode()}},{key:"renderTimePeriod",value:function(y,w){y.openNode(this.tag,{type:"timePeriod",dxfId:w.dxfId,priority:w.priority,timePeriod:w.timePeriod});var x=d(w);x&&this.formulaXform.render(y,x),y.closeNode()}},{key:"createNewModel",value:function(y){var w=y.attributes;return fn(fn({},p(w)),{},{dxfId:n.toIntValue(w.dxfId),priority:n.toIntValue(w.priority),timePeriod:w.timePeriod,percent:n.toBoolValue(w.percent),bottom:n.toBoolValue(w.bottom),rank:n.toIntValue(w.rank),aboveAverage:n.toBoolValue(w.aboveAverage)})}},{key:"onParserClose",value:function(y,w){switch(y){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,w.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(w.model)}}}],[{key:"isPrimitive",value:function(y){return y.type!=="iconSet"||!y.custom&&!f[y.iconSet]}}]),g}(a);r.exports=m},{"../../../../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(t,r,e){var n=t("../../base-xform"),a=function(o){Ht(i,o);var s=Qt(i);function i(){return At(this,i),s.apply(this,arguments)}return Rt(i,[{key:"tag",get:function(){return"cfvo"}},{key:"render",value:function(c,l){c.leafNode(this.tag,{type:l.type,val:l.value})}},{key:"parseOpen",value:function(c){this.model={type:c.attributes.type,value:n.toFloatValue(c.attributes.val)}}},{key:"parseClose",value:function(c){return c!==this.tag}}]),i}(n);r.exports=a},{"../../base-xform":32}],85:[function(t,r,e){var n=t("../../composite-xform"),a=t("../../style/color-xform"),o=t("./cfvo-xform"),s=function(i){Ht(l,i);var c=Qt(l);function l(){var u;return At(this,l),(u=c.call(this)).map={cfvo:u.cfvoXform=new o,color:u.colorXform=new a},u}return Rt(l,[{key:"tag",get:function(){return"colorScale"}},{key:"render",value:function(u,f){var h=this;u.openNode(this.tag),f.cfvo.forEach(function(d){h.cfvoXform.render(u,d)}),f.color.forEach(function(d){h.colorXform.render(u,d)}),u.closeNode()}},{key:"createNewModel",value:function(u){return{cfvo:[],color:[]}}},{key:"onParserClose",value:function(u,f){this.model[u].push(f.model)}}]),l}(n);r.exports=s},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(t,r,e){var n=t("../../composite-xform"),a=t("./cf-rule-xform"),o=function(s){Ht(c,s);var i=Qt(c);function c(){var l;return At(this,c),(l=i.call(this)).map={cfRule:new a},l}return Rt(c,[{key:"tag",get:function(){return"conditionalFormatting"}},{key:"render",value:function(l,u){var f=this;u.rules.some(a.isPrimitive)&&(l.openNode(this.tag,{sqref:u.ref}),u.rules.forEach(function(h){a.isPrimitive(h)&&(h.ref=u.ref,f.map.cfRule.render(l,h))}),l.closeNode())}},{key:"createNewModel",value:function(l){return{ref:l.attributes.sqref,rules:[]}}},{key:"onParserClose",value:function(l,u){this.model.rules.push(u.model)}}]),c}(n);r.exports=o},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(t,r,e){var n=t("../../base-xform"),a=t("./conditional-formatting-xform"),o=function(s){Ht(c,s);var i=Qt(c);function c(){var l;return At(this,c),(l=i.call(this)).cfXform=new a,l}return Rt(c,[{key:"tag",get:function(){return"conditionalFormatting"}},{key:"reset",value:function(){this.model=[]}},{key:"prepare",value:function(l,u){var f=l.reduce(function(h,d){return Math.max.apply(Math,[h].concat(lr(d.rules.map(function(p){return p.priority||0}))))},1);l.forEach(function(h){h.rules.forEach(function(d){d.priority||(d.priority=f++),d.style&&(d.dxfId=u.styles.addDxfStyle(d.style))})})}},{key:"render",value:function(l,u){var f=this;u.forEach(function(h){f.cfXform.render(l,h)})}},{key:"parseOpen",value:function(l){return this.parser?(this.parser.parseOpen(l),!0):l.name==="conditionalFormatting"&&(this.parser=this.cfXform,this.parser.parseOpen(l),!0)}},{key:"parseText",value:function(l){this.parser&&this.parser.parseText(l)}},{key:"parseClose",value:function(l){return!(!this.parser||!this.parser.parseClose(l)&&(this.model.push(this.parser.model),this.parser=void 0,1))}},{key:"reconcile",value:function(l,u){l.forEach(function(f){f.rules.forEach(function(h){h.dxfId!==void 0&&(h.style=u.styles.getDxfStyle(h.dxfId),delete h.dxfId)})})}}]),c}(n);r.exports=o},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(t,r,e){var n=t("../../composite-xform"),a=t("../../style/color-xform"),o=t("./cfvo-xform"),s=function(i){Ht(l,i);var c=Qt(l);function l(){var u;return At(this,l),(u=c.call(this)).map={cfvo:u.cfvoXform=new o,color:u.colorXform=new a},u}return Rt(l,[{key:"tag",get:function(){return"dataBar"}},{key:"render",value:function(u,f){var h=this;u.openNode(this.tag),f.cfvo.forEach(function(d){h.cfvoXform.render(u,d)}),this.colorXform.render(u,f.color),u.closeNode()}},{key:"createNewModel",value:function(){return{cfvo:[]}}},{key:"onParserClose",value:function(u,f){switch(u){case"cfvo":this.model.cfvo.push(f.model);break;case"color":this.model.color=f.model}}}]),l}(n);r.exports=s},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(t,r,e){var n=t("../../base-xform"),a=t("../../composite-xform"),o=function(c){Ht(u,c);var l=Qt(u);function u(){return At(this,u),l.apply(this,arguments)}return Rt(u,[{key:"tag",get:function(){return"x14:id"}},{key:"render",value:function(f,h){f.leafNode(this.tag,null,h)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(f){this.model+=f}},{key:"parseClose",value:function(f){return f!==this.tag}}]),u}(n),s=function(c){Ht(u,c);var l=Qt(u);function u(){var f;return At(this,u),(f=l.call(this)).map={"x14:id":f.idXform=new o},f}return Rt(u,[{key:"tag",get:function(){return"ext"}},{key:"render",value:function(f,h){f.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(f,h.x14Id),f.closeNode()}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(f,h){this.model.x14Id=h.model}}]),u}(a),i=function(c){Ht(u,c);var l=Qt(u);function u(){var f;return At(this,u),(f=l.call(this)).map={ext:new s},f}return Rt(u,[{key:"tag",get:function(){return"extLst"}},{key:"render",value:function(f,h){f.openNode(this.tag),this.map.ext.render(f,h),f.closeNode()}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(f,h){Object.assign(this.model,h.model)}}]),u}(a);r.exports=i},{"../../base-xform":32,"../../composite-xform":48}],90:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"tag",get:function(){return"formula"}},{key:"render",value:function(i,c){i.leafNode(this.tag,null,c)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(i){this.model+=i}},{key:"parseClose",value:function(i){return i!==this.tag}}]),s}(t("../../base-xform"));r.exports=n},{"../../base-xform":32}],91:[function(t,r,e){var n=t("../../base-xform"),a=t("../../composite-xform"),o=t("./cfvo-xform"),s=function(i){Ht(l,i);var c=Qt(l);function l(){var u;return At(this,l),(u=c.call(this)).map={cfvo:u.cfvoXform=new o},u}return Rt(l,[{key:"tag",get:function(){return"iconSet"}},{key:"render",value:function(u,f){var h=this;u.openNode(this.tag,{iconSet:n.toStringAttribute(f.iconSet,"3TrafficLights"),reverse:n.toBoolAttribute(f.reverse,!1),showValue:n.toBoolAttribute(f.showValue,!0)}),f.cfvo.forEach(function(d){h.cfvoXform.render(u,d)}),u.closeNode()}},{key:"createNewModel",value:function(u){var f=u.attributes;return{iconSet:n.toStringValue(f.iconSet,"3TrafficLights"),reverse:n.toBoolValue(f.reverse),showValue:n.toBoolValue(f.showValue),cfvo:[]}}},{key:"onParserClose",value:function(u,f){this.model[u].push(f.model)}}]),l}(a);r.exports=s},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(t,r,e){var n=t("../../../utils/utils"),a=function(o){Ht(i,o);var s=Qt(i);function i(){return At(this,i),s.apply(this,arguments)}return Rt(i,[{key:"tag",get:function(){return"col"}},{key:"prepare",value:function(c,l){var u=l.styles.addStyleModel(c.style||{});u&&(c.styleId=u)}},{key:"render",value:function(c,l){c.openNode("col"),c.addAttribute("min",l.min),c.addAttribute("max",l.max),l.width&&c.addAttribute("width",l.width),l.styleId&&c.addAttribute("style",l.styleId),l.hidden&&c.addAttribute("hidden","1"),l.bestFit&&c.addAttribute("bestFit","1"),l.outlineLevel&&c.addAttribute("outlineLevel",l.outlineLevel),l.collapsed&&c.addAttribute("collapsed","1"),c.addAttribute("customWidth","1"),c.closeNode()}},{key:"parseOpen",value:function(c){if(c.name==="col"){var l=this.model={min:parseInt(c.attributes.min||"0",10),max:parseInt(c.attributes.max||"0",10),width:c.attributes.width===void 0?void 0:parseFloat(c.attributes.width||"0")};return c.attributes.style&&(l.styleId=parseInt(c.attributes.style,10)),n.parseBoolean(c.attributes.hidden)&&(l.hidden=!0),n.parseBoolean(c.attributes.bestFit)&&(l.bestFit=!0),c.attributes.outlineLevel&&(l.outlineLevel=parseInt(c.attributes.outlineLevel,10)),n.parseBoolean(c.attributes.collapsed)&&(l.collapsed=!0),!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"reconcile",value:function(c,l){c.styleId&&(c.style=l.styles.getStyleModel(c.styleId))}}]),i}(t("../base-xform"));r.exports=a},{"../../../utils/utils":27,"../base-xform":32}],93:[function(t,r,e){var n=t("../../../utils/under-dash"),a=t("../../../utils/utils"),o=t("../../../utils/col-cache"),s=t("../base-xform"),i=t("../../../doc/range");function c(h,d,p,m){var v=d[p];v!==void 0?h[p]=v:m!==void 0&&(h[p]=m)}function l(h,d,p,m){var v=d[p];v!==void 0?h[p]=a.parseBoolean(v):m!==void 0&&(h[p]=m)}function u(h){var d=n.map(h,function(v,b){return{address:b,dataValidation:v,marked:!1}}).sort(function(v,b){return n.strcmp(v.address,b.address)}),p=n.keyBy(d,"address"),m=function(v,b,g){for(var y=0;y<b;y++){var w=o.encodeAddress(v.row+y,g);if(!h[w]||!n.isEqual(h[v.address],h[w]))return!1}return!0};return d.map(function(v){if(!v.marked){var b=o.decodeEx(v.address);if(b.dimensions)return p[b.dimensions].marked=!0,fn(fn({},v.dataValidation),{},{sqref:v.address});for(var g=1,y=o.encodeAddress(b.row+g,b.col);h[y]&&n.isEqual(v.dataValidation,h[y]);)g++,y=o.encodeAddress(b.row+g,b.col);for(var w=1;m(b,g,b.col+w);)w++;for(var x=0;x<g;x++)for(var C=0;C<w;C++)y=o.encodeAddress(b.row+x,b.col+C),p[y].marked=!0;if(g>1||w>1){var O=b.row+(g-1),D=b.col+(w-1);return fn(fn({},v.dataValidation),{},{sqref:"".concat(v.address,":").concat(o.encodeAddress(O,D))})}return fn(fn({},v.dataValidation),{},{sqref:v.address})}return null}).filter(Boolean)}var f=function(h){Ht(p,h);var d=Qt(p);function p(){return At(this,p),d.apply(this,arguments)}return Rt(p,[{key:"tag",get:function(){return"dataValidations"}},{key:"render",value:function(m,v){var b=u(v);b.length&&(m.openNode("dataValidations",{count:b.length}),b.forEach(function(g){m.openNode("dataValidation"),g.type!=="any"&&(m.addAttribute("type",g.type),g.operator&&g.type!=="list"&&g.operator!=="between"&&m.addAttribute("operator",g.operator),g.allowBlank&&m.addAttribute("allowBlank","1")),g.showInputMessage&&m.addAttribute("showInputMessage","1"),g.promptTitle&&m.addAttribute("promptTitle",g.promptTitle),g.prompt&&m.addAttribute("prompt",g.prompt),g.showErrorMessage&&m.addAttribute("showErrorMessage","1"),g.errorStyle&&m.addAttribute("errorStyle",g.errorStyle),g.errorTitle&&m.addAttribute("errorTitle",g.errorTitle),g.error&&m.addAttribute("error",g.error),m.addAttribute("sqref",g.sqref),(g.formulae||[]).forEach(function(y,w){m.openNode("formula".concat(w+1)),g.type==="date"?m.writeText(a.dateToExcel(new Date(y))):m.writeText(y),m.closeNode()}),m.closeNode()}),m.closeNode())}},{key:"parseOpen",value:function(m){switch(m.name){case"dataValidations":return this.model={},!0;case"dataValidation":this._address=m.attributes.sqref;var v={type:m.attributes.type||"any",formulae:[]};switch(m.attributes.type&&l(v,m.attributes,"allowBlank"),l(v,m.attributes,"showInputMessage"),l(v,m.attributes,"showErrorMessage"),v.type){case"any":case"list":case"custom":break;default:c(v,m.attributes,"operator","between")}return c(v,m.attributes,"promptTitle"),c(v,m.attributes,"prompt"),c(v,m.attributes,"errorStyle"),c(v,m.attributes,"errorTitle"),c(v,m.attributes,"error"),this._dataValidation=v,!0;case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}},{key:"parseText",value:function(m){this._formula&&this._formula.push(m)}},{key:"parseClose",value:function(m){var v=this;switch(m){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach(function(g){g.includes(":")?new i(g).forEachAddress(function(y){v.model[y]=v._dataValidation}):v.model[g]=v._dataValidation}),!0;case"formula1":case"formula2":var b=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":b=parseInt(b,10);break;case"decimal":b=parseFloat(b);break;case"date":b=a.excelToDate(parseFloat(b))}return this._dataValidation.formulae.push(b),this._formula=void 0,!0;default:return!0}}}]),p}(s);r.exports=f},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"tag",get:function(){return"dimension"}},{key:"render",value:function(i,c){c&&i.leafNode("dimension",{ref:c})}},{key:"parseOpen",value:function(i){return i.name==="dimension"&&(this.model=i.attributes.ref,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],95:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"tag",get:function(){return"drawing"}},{key:"render",value:function(i,c){c&&i.leafNode(this.tag,{"r:id":c.rId})}},{key:"parseOpen",value:function(i){return i.name===this.tag&&(this.model={rId:i.attributes["r:id"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],96:[function(t,r,e){var n=t("../composite-xform"),a=t("./cf-ext/conditional-formattings-ext-xform"),o=function(i){Ht(l,i);var c=Qt(l);function l(){var u;return At(this,l),(u=c.call(this)).map={"x14:conditionalFormattings":u.conditionalFormattings=new a},u}return Rt(l,[{key:"tag",get:function(){return"ext"}},{key:"hasContent",value:function(u){return this.conditionalFormattings.hasContent(u.conditionalFormattings)}},{key:"prepare",value:function(u,f){this.conditionalFormattings.prepare(u.conditionalFormattings,f)}},{key:"render",value:function(u,f){u.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(u,f.conditionalFormattings),u.closeNode()}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(u,f){this.model[u]=f.model}}]),l}(n),s=function(i){Ht(l,i);var c=Qt(l);function l(){var u;return At(this,l),(u=c.call(this)).map={ext:u.ext=new o},u}return Rt(l,[{key:"tag",get:function(){return"extLst"}},{key:"prepare",value:function(u,f){this.ext.prepare(u,f)}},{key:"hasContent",value:function(u){return this.ext.hasContent(u)}},{key:"render",value:function(u,f){this.hasContent(f)&&(u.openNode("extLst"),this.ext.render(u,f),u.closeNode())}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(u,f){Object.assign(this.model,f.model)}}]),l}(n);r.exports=s},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"tag",get:function(){return"headerFooter"}},{key:"render",value:function(i,c){if(c){i.addRollback();var l=!1;i.openNode("headerFooter"),c.differentFirst&&(i.addAttribute("differentFirst","1"),l=!0),c.differentOddEven&&(i.addAttribute("differentOddEven","1"),l=!0),c.oddHeader&&typeof c.oddHeader=="string"&&(i.leafNode("oddHeader",null,c.oddHeader),l=!0),c.oddFooter&&typeof c.oddFooter=="string"&&(i.leafNode("oddFooter",null,c.oddFooter),l=!0),c.evenHeader&&typeof c.evenHeader=="string"&&(i.leafNode("evenHeader",null,c.evenHeader),l=!0),c.evenFooter&&typeof c.evenFooter=="string"&&(i.leafNode("evenFooter",null,c.evenFooter),l=!0),c.firstHeader&&typeof c.firstHeader=="string"&&(i.leafNode("firstHeader",null,c.firstHeader),l=!0),c.firstFooter&&typeof c.firstFooter=="string"&&(i.leafNode("firstFooter",null,c.firstFooter),l=!0),l?(i.closeNode(),i.commit()):i.rollback()}}},{key:"parseOpen",value:function(i){switch(i.name){case"headerFooter":return this.model={},i.attributes.differentFirst&&(this.model.differentFirst=parseInt(i.attributes.differentFirst,0)===1),i.attributes.differentOddEven&&(this.model.differentOddEven=parseInt(i.attributes.differentOddEven,0)===1),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}},{key:"parseText",value:function(i){switch(this.currentNode){case"oddHeader":this.model.oddHeader=i;break;case"oddFooter":this.model.oddFooter=i;break;case"evenHeader":this.model.evenHeader=i;break;case"evenFooter":this.model.evenFooter=i;break;case"firstHeader":this.model.firstHeader=i;break;case"firstFooter":this.model.firstFooter=i}}},{key:"parseClose",value:function(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],98:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"tag",get:function(){return"hyperlink"}},{key:"render",value:function(i,c){this.isInternalLink(c)?i.leafNode("hyperlink",{ref:c.address,"r:id":c.rId,tooltip:c.tooltip,location:c.target}):i.leafNode("hyperlink",{ref:c.address,"r:id":c.rId,tooltip:c.tooltip})}},{key:"parseOpen",value:function(i){return i.name==="hyperlink"&&(this.model={address:i.attributes.ref,rId:i.attributes["r:id"],tooltip:i.attributes.tooltip},i.attributes.location&&(this.model.target=i.attributes.location),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"isInternalLink",value:function(i){return i.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(i.target)}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],99:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"tag",get:function(){return"mergeCell"}},{key:"render",value:function(i,c){i.leafNode("mergeCell",{ref:c})}},{key:"parseOpen",value:function(i){return i.name==="mergeCell"&&(this.model=i.attributes.ref,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],100:[function(t,r,e){var n=t("../../../utils/under-dash"),a=t("../../../doc/range"),o=t("../../../utils/col-cache"),s=t("../../../doc/enums"),i=function(){function c(){At(this,c),this.merges={}}return Rt(c,[{key:"add",value:function(l){if(this.merges[l.master])this.merges[l.master].expandToAddress(l.address);else{var u="".concat(l.master,":").concat(l.address);this.merges[l.master]=new a(u)}}},{key:"mergeCells",get:function(){return n.map(this.merges,function(l){return l.range})}},{key:"reconcile",value:function(l,u){n.each(l,function(f){for(var h=o.decode(f),d=h.top;d<=h.bottom;d++)for(var p=u[d-1],m=h.left;m<=h.right;m++){var v=p.cells[m-1];v?v.type===s.ValueType.Merge&&(v.master=h.tl):p.cells[m]={type:s.ValueType.Null,address:o.encodeAddress(d,m)}}})}},{key:"getMasterAddress",value:function(l){var u=this.hash[l];return u&&u.tl}}]),c}();r.exports=i},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(t,r,e){var n=t("../base-xform"),a=function(s){return s!==void 0},o=function(s){Ht(c,s);var i=Qt(c);function c(){return At(this,c),i.apply(this,arguments)}return Rt(c,[{key:"tag",get:function(){return"outlinePr"}},{key:"render",value:function(l,u){return!(!u||!a(u.summaryBelow)&&!a(u.summaryRight)||(l.leafNode(this.tag,{summaryBelow:a(u.summaryBelow)?Number(u.summaryBelow):void 0,summaryRight:a(u.summaryRight)?Number(u.summaryRight):void 0}),0))}},{key:"parseOpen",value:function(l){return l.name===this.tag&&(this.model={summaryBelow:a(l.attributes.summaryBelow)?!!Number(l.attributes.summaryBelow):void 0,summaryRight:a(l.attributes.summaryRight)?!!Number(l.attributes.summaryRight):void 0},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),c}(n);r.exports=o},{"../base-xform":32}],102:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"tag",get:function(){return"brk"}},{key:"render",value:function(i,c){i.leafNode("brk",c)}},{key:"parseOpen",value:function(i){return i.name==="brk"&&(this.model=i.attributes.ref,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],103:[function(t,r,e){var n=t("../../../utils/under-dash"),a=function(o){Ht(i,o);var s=Qt(i);function i(){return At(this,i),s.apply(this,arguments)}return Rt(i,[{key:"tag",get:function(){return"pageMargins"}},{key:"render",value:function(c,l){if(l){var u={left:l.left,right:l.right,top:l.top,bottom:l.bottom,header:l.header,footer:l.footer};n.some(u,function(f){return f!==void 0})&&c.leafNode(this.tag,u)}}},{key:"parseOpen",value:function(c){return c.name===this.tag&&(this.model={left:parseFloat(c.attributes.left||.7),right:parseFloat(c.attributes.right||.7),top:parseFloat(c.attributes.top||.75),bottom:parseFloat(c.attributes.bottom||.75),header:parseFloat(c.attributes.header||.3),footer:parseFloat(c.attributes.footer||.3)},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),i}(t("../base-xform"));r.exports=a},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"tag",get:function(){return"pageSetUpPr"}},{key:"render",value:function(i,c){return!(!c||!c.fitToPage||(i.leafNode(this.tag,{fitToPage:c.fitToPage?"1":void 0}),0))}},{key:"parseOpen",value:function(i){return i.name===this.tag&&(this.model={fitToPage:i.attributes.fitToPage==="1"},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],105:[function(t,r,e){var n=t("../../../utils/under-dash");function a(u){return u?"1":void 0}function o(u){if(u==="overThenDown")return u}function s(u){switch(u){case"atEnd":case"asDisplyed":return u;default:return}}function i(u){switch(u){case"dash":case"blank":case"NA":return u;default:return}}function c(u){return u!==void 0?parseInt(u,10):void 0}var l=function(u){Ht(h,u);var f=Qt(h);function h(){return At(this,h),f.apply(this,arguments)}return Rt(h,[{key:"tag",get:function(){return"pageSetup"}},{key:"render",value:function(d,p){if(p){var m={paperSize:p.paperSize,orientation:p.orientation,horizontalDpi:p.horizontalDpi,verticalDpi:p.verticalDpi,pageOrder:o(p.pageOrder),blackAndWhite:a(p.blackAndWhite),draft:a(p.draft),cellComments:s(p.cellComments),errors:i(p.errors),scale:p.scale,fitToWidth:p.fitToWidth,fitToHeight:p.fitToHeight,firstPageNumber:p.firstPageNumber,useFirstPageNumber:a(p.firstPageNumber),usePrinterDefaults:a(p.usePrinterDefaults),copies:p.copies};n.some(m,function(v){return v!==void 0})&&d.leafNode(this.tag,m)}}},{key:"parseOpen",value:function(d){return d.name===this.tag&&(this.model={paperSize:c(d.attributes.paperSize),orientation:d.attributes.orientation||"portrait",horizontalDpi:parseInt(d.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(d.attributes.verticalDpi||"4294967295",10),pageOrder:d.attributes.pageOrder||"downThenOver",blackAndWhite:d.attributes.blackAndWhite==="1",draft:d.attributes.draft==="1",cellComments:d.attributes.cellComments||"None",errors:d.attributes.errors||"displayed",scale:parseInt(d.attributes.scale||"100",10),fitToWidth:parseInt(d.attributes.fitToWidth||"1",10),fitToHeight:parseInt(d.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(d.attributes.firstPageNumber||"1",10),useFirstPageNumber:d.attributes.useFirstPageNumber==="1",usePrinterDefaults:d.attributes.usePrinterDefaults==="1",copies:parseInt(d.attributes.copies||"1",10)},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),h}(t("../base-xform"));r.exports=l},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"tag",get:function(){return"picture"}},{key:"render",value:function(i,c){c&&i.leafNode(this.tag,{"r:id":c.rId})}},{key:"parseOpen",value:function(i){return i.name===this.tag&&(this.model={rId:i.attributes["r:id"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],107:[function(t,r,e){var n=t("../../../utils/under-dash");function a(s){return s?"1":void 0}var o=function(s){Ht(c,s);var i=Qt(c);function c(){return At(this,c),i.apply(this,arguments)}return Rt(c,[{key:"tag",get:function(){return"printOptions"}},{key:"render",value:function(l,u){if(u){var f={headings:a(u.showRowColHeaders),gridLines:a(u.showGridLines),horizontalCentered:a(u.horizontalCentered),verticalCentered:a(u.verticalCentered)};n.some(f,function(h){return h!==void 0})&&l.leafNode(this.tag,f)}}},{key:"parseOpen",value:function(l){return l.name===this.tag&&(this.model={showRowColHeaders:l.attributes.headings==="1",showGridLines:l.attributes.gridLines==="1",horizontalCentered:l.attributes.horizontalCentered==="1",verticalCentered:l.attributes.verticalCentered==="1"},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),c}(t("../base-xform"));r.exports=o},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(t,r,e){var n=t("./page-breaks-xform"),a=function(o){Ht(i,o);var s=Qt(i);function i(){At(this,i);var c={tag:"rowBreaks",count:!0,childXform:new n};return s.call(this,c)}return Rt(i,[{key:"render",value:function(c,l){if(l&&l.length){c.openNode(this.tag,this.$),this.count&&(c.addAttribute(this.$count,l.length),c.addAttribute("manualBreakCount",l.length));var u=this.childXform;l.forEach(function(f){u.render(c,f)}),c.closeNode()}else this.empty&&c.leafNode(this.tag)}}]),i}(t("../list-xform"));r.exports=a},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(t,r,e){var n=t("../base-xform"),a=t("../../../utils/utils"),o=t("./cell-xform"),s=function(i){Ht(l,i);var c=Qt(l);function l(u){var f;return At(this,l),(f=c.call(this)).maxItems=u&&u.maxItems,f.map={c:new o},f}return Rt(l,[{key:"tag",get:function(){return"row"}},{key:"prepare",value:function(u,f){var h=f.styles.addStyleModel(u.style);h&&(u.styleId=h);var d=this.map.c;u.cells.forEach(function(p){d.prepare(p,f)})}},{key:"render",value:function(u,f,h){u.openNode("row"),u.addAttribute("r",f.number),f.height&&(u.addAttribute("ht",f.height),u.addAttribute("customHeight","1")),f.hidden&&u.addAttribute("hidden","1"),f.min>0&&f.max>0&&f.min<=f.max&&u.addAttribute("spans","".concat(f.min,":").concat(f.max)),f.styleId&&(u.addAttribute("s",f.styleId),u.addAttribute("customFormat","1")),u.addAttribute("x14ac:dyDescent","0.25"),f.outlineLevel&&u.addAttribute("outlineLevel",f.outlineLevel),f.collapsed&&u.addAttribute("collapsed","1");var d=this.map.c;f.cells.forEach(function(p){d.render(u,p,h)}),u.closeNode()}},{key:"parseOpen",value:function(u){if(this.parser)return this.parser.parseOpen(u),!0;if(u.name==="row"){this.numRowsSeen+=1;var f=u.attributes.spans?u.attributes.spans.split(":").map(function(d){return parseInt(d,10)}):[void 0,void 0],h=this.model={number:parseInt(u.attributes.r,10),min:f[0],max:f[1],cells:[]};return u.attributes.s&&(h.styleId=parseInt(u.attributes.s,10)),a.parseBoolean(u.attributes.hidden)&&(h.hidden=!0),a.parseBoolean(u.attributes.bestFit)&&(h.bestFit=!0),u.attributes.ht&&(h.height=parseFloat(u.attributes.ht)),u.attributes.outlineLevel&&(h.outlineLevel=parseInt(u.attributes.outlineLevel,10)),a.parseBoolean(u.attributes.collapsed)&&(h.collapsed=!0),!0}return this.parser=this.map[u.name],!!this.parser&&(this.parser.parseOpen(u),!0)}},{key:"parseText",value:function(u){this.parser&&this.parser.parseText(u)}},{key:"parseClose",value:function(u){if(this.parser){if(!this.parser.parseClose(u)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error("Max column count (".concat(this.maxItems,") exceeded"));this.parser=void 0}return!0}return!1}},{key:"reconcile",value:function(u,f){u.style=u.styleId?f.styles.getStyleModel(u.styleId):{},u.styleId!==void 0&&(u.styleId=void 0);var h=this.map.c;u.cells.forEach(function(d){h.reconcile(d,f)})}}]),l}(n);r.exports=s},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(t,r,e){var n=t("../../../utils/under-dash"),a=function(o){Ht(i,o);var s=Qt(i);function i(){return At(this,i),s.apply(this,arguments)}return Rt(i,[{key:"tag",get:function(){return"sheetFormatPr"}},{key:"render",value:function(c,l){if(l){var u={defaultRowHeight:l.defaultRowHeight,outlineLevelRow:l.outlineLevelRow,outlineLevelCol:l.outlineLevelCol,"x14ac:dyDescent":l.dyDescent};l.defaultColWidth&&(u.defaultColWidth=l.defaultColWidth),l.defaultRowHeight&&l.defaultRowHeight===15||(u.customHeight="1"),n.some(u,function(f){return f!==void 0})&&c.leafNode("sheetFormatPr",u)}}},{key:"parseOpen",value:function(c){return c.name==="sheetFormatPr"&&(this.model={defaultRowHeight:parseFloat(c.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(c.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(c.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(c.attributes.outlineLevelCol||"0",10)},c.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(c.attributes.defaultColWidth)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),i}(t("../base-xform"));r.exports=a},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(t,r,e){var n=t("../base-xform"),a=t("../style/color-xform"),o=t("./page-setup-properties-xform"),s=t("./outline-properties-xform"),i=function(c){Ht(u,c);var l=Qt(u);function u(){var f;return At(this,u),(f=l.call(this)).map={tabColor:new a("tabColor"),pageSetUpPr:new o,outlinePr:new s},f}return Rt(u,[{key:"tag",get:function(){return"sheetPr"}},{key:"render",value:function(f,h){if(h){f.addRollback(),f.openNode("sheetPr");var d=!1;d=this.map.tabColor.render(f,h.tabColor)||d,d=this.map.pageSetUpPr.render(f,h.pageSetup)||d,(d=this.map.outlinePr.render(f,h.outlineProperties)||d)?(f.closeNode(),f.commit()):f.rollback()}}},{key:"parseOpen",value:function(f){return this.parser?(this.parser.parseOpen(f),!0):f.name===this.tag?(this.reset(),!0):!!this.map[f.name]&&(this.parser=this.map[f.name],this.parser.parseOpen(f),!0)}},{key:"parseText",value:function(f){return!!this.parser&&(this.parser.parseText(f),!0)}},{key:"parseClose",value:function(f){return this.parser?(this.parser.parseClose(f)||(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)}}]),u}(n);r.exports=i},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(t,r,e){var n=t("../../../utils/under-dash");function a(i,c){return i?c:void 0}function o(i,c){return i===c||void 0}var s=function(i){Ht(l,i);var c=Qt(l);function l(){return At(this,l),c.apply(this,arguments)}return Rt(l,[{key:"tag",get:function(){return"sheetProtection"}},{key:"render",value:function(u,f){if(f){var h={sheet:a(f.sheet,"1"),selectLockedCells:f.selectLockedCells===!1?"1":void 0,selectUnlockedCells:f.selectUnlockedCells===!1?"1":void 0,formatCells:a(f.formatCells,"0"),formatColumns:a(f.formatColumns,"0"),formatRows:a(f.formatRows,"0"),insertColumns:a(f.insertColumns,"0"),insertRows:a(f.insertRows,"0"),insertHyperlinks:a(f.insertHyperlinks,"0"),deleteColumns:a(f.deleteColumns,"0"),deleteRows:a(f.deleteRows,"0"),sort:a(f.sort,"0"),autoFilter:a(f.autoFilter,"0"),pivotTables:a(f.pivotTables,"0")};f.sheet&&(h.algorithmName=f.algorithmName,h.hashValue=f.hashValue,h.saltValue=f.saltValue,h.spinCount=f.spinCount,h.objects=a(f.objects===!1,"1"),h.scenarios=a(f.scenarios===!1,"1")),n.some(h,function(d){return d!==void 0})&&u.leafNode(this.tag,h)}}},{key:"parseOpen",value:function(u){return u.name===this.tag&&(this.model={sheet:o(u.attributes.sheet,"1"),objects:u.attributes.objects!=="1"&&void 0,scenarios:u.attributes.scenarios!=="1"&&void 0,selectLockedCells:u.attributes.selectLockedCells!=="1"&&void 0,selectUnlockedCells:u.attributes.selectUnlockedCells!=="1"&&void 0,formatCells:o(u.attributes.formatCells,"0"),formatColumns:o(u.attributes.formatColumns,"0"),formatRows:o(u.attributes.formatRows,"0"),insertColumns:o(u.attributes.insertColumns,"0"),insertRows:o(u.attributes.insertRows,"0"),insertHyperlinks:o(u.attributes.insertHyperlinks,"0"),deleteColumns:o(u.attributes.deleteColumns,"0"),deleteRows:o(u.attributes.deleteRows,"0"),sort:o(u.attributes.sort,"0"),autoFilter:o(u.attributes.autoFilter,"0"),pivotTables:o(u.attributes.pivotTables,"0")},u.attributes.algorithmName&&(this.model.algorithmName=u.attributes.algorithmName,this.model.hashValue=u.attributes.hashValue,this.model.saltValue=u.attributes.saltValue,this.model.spinCount=parseInt(u.attributes.spinCount,10)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),l}(t("../base-xform"));r.exports=s},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(t,r,e){var n=t("../../../utils/col-cache"),a=t("../base-xform"),o={frozen:"frozen",frozenSplit:"frozen",split:"split"},s=function(i){Ht(l,i);var c=Qt(l);function l(){return At(this,l),c.apply(this,arguments)}return Rt(l,[{key:"tag",get:function(){return"sheetView"}},{key:"prepare",value:function(u){switch(u.state){case"frozen":case"split":break;default:u.state="normal"}}},{key:"render",value:function(u,f){u.openNode("sheetView",{workbookViewId:f.workbookViewId||0});var h,d,p,m,v=function(b,g,y){y&&u.addAttribute(b,g)};switch(v("rightToLeft","1",f.rightToLeft===!0),v("tabSelected","1",f.tabSelected),v("showRuler","0",f.showRuler===!1),v("showRowColHeaders","0",f.showRowColHeaders===!1),v("showGridLines","0",f.showGridLines===!1),v("zoomScale",f.zoomScale,f.zoomScale),v("zoomScaleNormal",f.zoomScaleNormal,f.zoomScaleNormal),v("view",f.style,f.style),f.state){case"frozen":d=f.xSplit||0,p=f.ySplit||0,h=f.topLeftCell||n.getAddress(p+1,d+1).address,m=(f.xSplit&&f.ySplit?"bottomRight":f.xSplit&&"topRight")||"bottomLeft",u.leafNode("pane",{xSplit:f.xSplit||void 0,ySplit:f.ySplit||void 0,topLeftCell:h,activePane:m,state:"frozen"}),u.leafNode("selection",{pane:m,activeCell:f.activeCell,sqref:f.activeCell});break;case"split":f.activePane==="topLeft"&&(f.activePane=void 0),u.leafNode("pane",{xSplit:f.xSplit||void 0,ySplit:f.ySplit||void 0,topLeftCell:f.topLeftCell,activePane:f.activePane}),u.leafNode("selection",{pane:f.activePane,activeCell:f.activeCell,sqref:f.activeCell});break;case"normal":f.activeCell&&u.leafNode("selection",{activeCell:f.activeCell,sqref:f.activeCell})}u.closeNode()}},{key:"parseOpen",value:function(u){switch(u.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(u.attributes.workbookViewId,10),rightToLeft:u.attributes.rightToLeft==="1",tabSelected:u.attributes.tabSelected==="1",showRuler:u.attributes.showRuler!=="0",showRowColHeaders:u.attributes.showRowColHeaders!=="0",showGridLines:u.attributes.showGridLines!=="0",zoomScale:parseInt(u.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(u.attributes.zoomScaleNormal||"100",10),style:u.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(u.attributes.xSplit||"0",10),ySplit:parseInt(u.attributes.ySplit||"0",10),topLeftCell:u.attributes.topLeftCell,activePane:u.attributes.activePane||"topLeft",state:u.attributes.state},!0;case"selection":var f=u.attributes.pane||"topLeft";return this.selections[f]={pane:f,activeCell:u.attributes.activeCell},!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(u){var f,h;return u!=="sheetView"||(this.sheetView&&this.pane?(f=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:o[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"&&(f.activePane=this.pane.activePane),(h=this.selections[this.pane.activePane])&&h.activeCell&&(f.activeCell=h.activeCell),this.sheetView.style&&(f.style=this.sheetView.style)):(f=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},(h=this.selections.topLeft)&&h.activeCell&&(f.activeCell=h.activeCell),this.sheetView.style&&(f.style=this.sheetView.style)),!1)}},{key:"reconcile",value:function(){}}]),l}(a);r.exports=s},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"tag",get:function(){return"tablePart"}},{key:"render",value:function(i,c){c&&i.leafNode(this.tag,{"r:id":c.rId})}},{key:"parseOpen",value:function(i){return i.name===this.tag&&(this.model={rId:i.attributes["r:id"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],115:[function(t,r,e){var n=t("../../../utils/under-dash"),a=t("../../../utils/col-cache"),o=t("../../../utils/xml-stream"),s=t("../../rel-type"),i=t("./merges"),c=t("../base-xform"),l=t("../list-xform"),u=t("./row-xform"),f=t("./col-xform"),h=t("./dimension-xform"),d=t("./hyperlink-xform"),p=t("./merge-cell-xform"),m=t("./data-validations-xform"),v=t("./sheet-properties-xform"),b=t("./sheet-format-properties-xform"),g=t("./sheet-view-xform"),y=t("./sheet-protection-xform"),w=t("./page-margins-xform"),x=t("./page-setup-xform"),C=t("./print-options-xform"),O=t("./auto-filter-xform"),D=t("./picture-xform"),j=t("./drawing-xform"),U=t("./table-part-xform"),L=t("./row-breaks-xform"),V=t("./header-footer-xform"),A=t("./cf/conditional-formattings-xform"),N=t("./ext-lst-xform"),k=function(T,R){Object.keys(R).forEach(function(F){var I=T[F],B=R[F];I===void 0&&B!==void 0&&(T[F]=B)})},S=function(T,R){if(!R||!R.length)return T;if(!T||!T.length)return R;var F={},I={};return T.forEach(function(B){F[B.ref]=B,B.rules.forEach(function(P){var H=P.x14Id;H&&(I[H]=P)})}),R.forEach(function(B){B.rules.forEach(function(P){var H=I[P.x14Id];H?k(H,P):F[B.ref]?F[B.ref].rules.push(P):T.push({ref:B.ref,rules:[P]})})}),T},E=function(T){Ht(F,T);var R=Qt(F);function F(I){var B;At(this,F),B=R.call(this);var P=I||{},H=P.maxRows,Z=P.maxCols,Y=P.ignoreNodes;return B.ignoreNodes=Y||[],B.map={sheetPr:new v,dimension:new h,sheetViews:new l({tag:"sheetViews",count:!1,childXform:new g}),sheetFormatPr:new b,cols:new l({tag:"cols",count:!1,childXform:new f}),sheetData:new l({tag:"sheetData",count:!1,empty:!0,childXform:new u({maxItems:Z}),maxItems:H}),autoFilter:new O,mergeCells:new l({tag:"mergeCells",count:!0,childXform:new p}),rowBreaks:new L,hyperlinks:new l({tag:"hyperlinks",count:!1,childXform:new d}),pageMargins:new w,dataValidations:new m,pageSetup:new x,headerFooter:new V,printOptions:new C,picture:new D,drawing:new j,sheetProtection:new y,tableParts:new l({tag:"tableParts",count:!0,childXform:new U}),conditionalFormatting:new A,extLst:new N},B}return Rt(F,[{key:"prepare",value:function(I,B){var P=this;B.merges=new i,I.hyperlinks=B.hyperlinks=[],I.comments=B.comments=[],B.formulae={},B.siFormulae=0,this.map.cols.prepare(I.cols,B),this.map.sheetData.prepare(I.rows,B),this.map.conditionalFormatting.prepare(I.conditionalFormattings,B),I.mergeCells=B.merges.mergeCells;var H=I.rels=[];function Z(Q){return"rId".concat(Q.length+1)}if(I.hyperlinks.forEach(function(Q){var q=Z(H);Q.rId=q,H.push({Id:q,Type:s.Hyperlink,Target:Q.target,TargetMode:"External"})}),I.comments.length>0){var Y={Id:Z(H),Type:s.Comments,Target:"../comments".concat(I.id,".xml")};H.push(Y);var dt={Id:Z(H),Type:s.VmlDrawing,Target:"../drawings/vmlDrawing".concat(I.id,".vml")};H.push(dt),I.comments.forEach(function(Q){Q.refAddress=a.decodeAddress(Q.ref)}),B.commentRefs.push({commentName:"comments".concat(I.id),vmlDrawing:"vmlDrawing".concat(I.id)})}var gt,bt=[];I.media.forEach(function(Q){if(Q.type==="background"){var q=Z(H);gt=B.media[Q.imageId],H.push({Id:q,Type:s.Image,Target:"../media/".concat(gt.name,".").concat(gt.extension)}),I.background={rId:q},I.image=B.media[Q.imageId]}else if(Q.type==="image"){var tt=I.drawing;gt=B.media[Q.imageId],tt||(tt=I.drawing={rId:Z(H),name:"drawing".concat(++B.drawingsCount),anchors:[],rels:[]},B.drawings.push(tt),H.push({Id:tt.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:"../drawings/".concat(tt.name,".xml")}));var et=P.preImageId===Q.imageId?bt[Q.imageId]:bt[tt.rels.length];et||(et=Z(tt.rels),bt[tt.rels.length]=et,tt.rels.push({Id:et,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:"../media/".concat(gt.name,".").concat(gt.extension)}));var _t={picture:{rId:et},range:Q.range};if(Q.hyperlinks&&Q.hyperlinks.hyperlink){var J=Z(tt.rels);bt[tt.rels.length]=J,_t.picture.hyperlinks={tooltip:Q.hyperlinks.tooltip,rId:J},tt.rels.push({Id:J,Type:s.Hyperlink,Target:Q.hyperlinks.hyperlink,TargetMode:"External"})}P.preImageId=Q.imageId,tt.anchors.push(_t)}}),I.tables.forEach(function(Q){var q=Z(H);Q.rId=q,H.push({Id:q,Type:s.Table,Target:"../tables/".concat(Q.target)}),Q.columns.forEach(function(tt){var et=tt.style;et&&(tt.dxfId=B.styles.addDxfStyle(et))})}),this.map.extLst.prepare(I,B)}},{key:"render",value:function(I,B){I.openXml(o.StdDocAttributes),I.openNode("worksheet",F.WORKSHEET_ATTRIBUTES);var P=B.properties?{defaultRowHeight:B.properties.defaultRowHeight,dyDescent:B.properties.dyDescent,outlineLevelCol:B.properties.outlineLevelCol,outlineLevelRow:B.properties.outlineLevelRow}:void 0;B.properties&&B.properties.defaultColWidth&&(P.defaultColWidth=B.properties.defaultColWidth);var H={outlineProperties:B.properties&&B.properties.outlineProperties,tabColor:B.properties&&B.properties.tabColor,pageSetup:B.pageSetup&&B.pageSetup.fitToPage?{fitToPage:B.pageSetup.fitToPage}:void 0},Z=B.pageSetup&&B.pageSetup.margins,Y={showRowColHeaders:B.pageSetup&&B.pageSetup.showRowColHeaders,showGridLines:B.pageSetup&&B.pageSetup.showGridLines,horizontalCentered:B.pageSetup&&B.pageSetup.horizontalCentered,verticalCentered:B.pageSetup&&B.pageSetup.verticalCentered},dt=B.sheetProtection;this.map.sheetPr.render(I,H),this.map.dimension.render(I,B.dimensions),this.map.sheetViews.render(I,B.views),this.map.sheetFormatPr.render(I,P),this.map.cols.render(I,B.cols),this.map.sheetData.render(I,B.rows),this.map.sheetProtection.render(I,dt),this.map.autoFilter.render(I,B.autoFilter),this.map.mergeCells.render(I,B.mergeCells),this.map.conditionalFormatting.render(I,B.conditionalFormattings),this.map.dataValidations.render(I,B.dataValidations),this.map.hyperlinks.render(I,B.hyperlinks),this.map.printOptions.render(I,Y),this.map.pageMargins.render(I,Z),this.map.pageSetup.render(I,B.pageSetup),this.map.headerFooter.render(I,B.headerFooter),this.map.rowBreaks.render(I,B.rowBreaks),this.map.drawing.render(I,B.drawing),this.map.picture.render(I,B.background),this.map.tableParts.render(I,B.tables),this.map.extLst.render(I,B),B.rels&&B.rels.forEach(function(gt){gt.Type===s.VmlDrawing&&I.leafNode("legacyDrawing",{"r:id":gt.Id})}),I.closeNode()}},{key:"parseOpen",value:function(I){return this.parser?(this.parser.parseOpen(I),!0):I.name==="worksheet"?(n.each(this.map,function(B){B.reset()}),!0):(this.map[I.name]&&!this.ignoreNodes.includes(I.name)&&(this.parser=this.map[I.name],this.parser.parseOpen(I)),!0)}},{key:"parseText",value:function(I){this.parser&&this.parser.parseText(I)}},{key:"parseClose",value:function(I){if(this.parser)return this.parser.parseClose(I)||(this.parser=void 0),!0;if(I==="worksheet"){var B=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(B.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(B.outlineProperties=this.map.sheetPr.model.outlineProperties);var P={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},H=Object.assign(P,this.map.pageSetup.model,this.map.printOptions.model),Z=S(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:B,views:this.map.sheetViews.model,pageSetup:H,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:Z},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}return!0}},{key:"reconcile",value:function(I,B){var P=(I.relationships||[]).reduce(function(bt,Q){if(bt[Q.Id]=Q,Q.Type===s.Comments&&(I.comments=B.comments[Q.Target].comments),Q.Type===s.VmlDrawing&&I.comments&&I.comments.length){var q=B.vmlDrawings[Q.Target].comments;I.comments.forEach(function(tt,et){tt.note=Object.assign({},tt.note,q[et])})}return bt},{});if(B.commentsMap=(I.comments||[]).reduce(function(bt,Q){return Q.ref&&(bt[Q.ref]=Q),bt},{}),B.hyperlinkMap=(I.hyperlinks||[]).reduce(function(bt,Q){return Q.rId&&(bt[Q.address]=P[Q.rId].Target),bt},{}),B.formulae={},I.rows=I.rows&&I.rows.filter(Boolean)||[],I.rows.forEach(function(bt){bt.cells=bt.cells&&bt.cells.filter(Boolean)||[]}),this.map.cols.reconcile(I.cols,B),this.map.sheetData.reconcile(I.rows,B),this.map.conditionalFormatting.reconcile(I.conditionalFormattings,B),I.media=[],I.drawing){var H=P[I.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(H){var Z=H[1];B.drawings[Z].anchors.forEach(function(bt){if(bt.medium){var Q={type:"image",imageId:bt.medium.index,range:bt.range,hyperlinks:bt.picture.hyperlinks};I.media.push(Q)}})}}var Y=I.background&&P[I.background.rId];if(Y){var dt=Y.Target.split("/media/")[1],gt=B.mediaIndex&&B.mediaIndex[dt];gt!==void 0&&I.media.push({type:"background",imageId:gt})}I.tables=(I.tables||[]).map(function(bt){var Q=P[bt.rId];return B.tables[Q.Target]}),delete I.relationships,delete I.hyperlinks,delete I.comments}}]),F}(c);E.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"},r.exports=E},{"../../../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(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(i){var c;return At(this,s),(c=o.call(this)).tag=i.tag,c.attr=i.attr,c}return Rt(s,[{key:"render",value:function(i,c){c&&(i.openNode(this.tag),i.closeNode())}},{key:"parseOpen",value:function(i){i.name===this.tag&&(this.model=!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],117:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(i){var c;return At(this,s),(c=o.call(this)).tag=i.tag,c.attr=i.attr,c.attrs=i.attrs,c._format=i.format||function(l){try{return Number.isNaN(l.getTime())?"":l.toISOString()}catch(u){return""}},c._parse=i.parse||function(l){return new Date(l)},c}return Rt(s,[{key:"render",value:function(i,c){c&&(i.openNode(this.tag),this.attrs&&i.addAttributes(this.attrs),this.attr?i.addAttribute(this.attr,this._format(c)):i.writeText(this._format(c)),i.closeNode())}},{key:"parseOpen",value:function(i){i.name===this.tag&&(this.attr?this.model=this._parse(i.attributes[this.attr]):this.text=[])}},{key:"parseText",value:function(i){this.attr||this.text.push(i)}},{key:"parseClose",value:function(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],118:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(i){var c;return At(this,s),(c=o.call(this)).tag=i.tag,c.attr=i.attr,c.attrs=i.attrs,c.zero=i.zero,c}return Rt(s,[{key:"render",value:function(i,c){(c||this.zero)&&(i.openNode(this.tag),this.attrs&&i.addAttributes(this.attrs),this.attr?i.addAttribute(this.attr,c):i.writeText(c),i.closeNode())}},{key:"parseOpen",value:function(i){return i.name===this.tag&&(this.attr?this.model=parseInt(i.attributes[this.attr],10):this.text=[],!0)}},{key:"parseText",value:function(i){this.attr||this.text.push(i)}},{key:"parseClose",value:function(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],119:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(i){var c;return At(this,s),(c=o.call(this)).tag=i.tag,c.attr=i.attr,c.attrs=i.attrs,c}return Rt(s,[{key:"render",value:function(i,c){c!==void 0&&(i.openNode(this.tag),this.attrs&&i.addAttributes(this.attrs),this.attr?i.addAttribute(this.attr,c):i.writeText(c),i.closeNode())}},{key:"parseOpen",value:function(i){i.name===this.tag&&(this.attr?this.model=i.attributes[this.attr]:this.text=[])}},{key:"parseText",value:function(i){this.attr||this.text.push(i)}},{key:"parseClose",value:function(){return this.attr||(this.model=this.text.join("")),!1}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],120:[function(t,r,e){var n=t("./base-xform"),a=t("../../utils/xml-stream");function o(i,c){i.openNode(c.tag,c.$),c.c&&c.c.forEach(function(l){o(i,l)}),c.t&&i.writeText(c.t),i.closeNode()}var s=function(i){Ht(l,i);var c=Qt(l);function l(u){var f;return At(this,l),(f=c.call(this))._model=u,f}return Rt(l,[{key:"render",value:function(u){if(!this._xml){var f=new a;o(f,this._model),this._xml=f.xml}u.writeXml(this._xml)}},{key:"parseOpen",value:function(){return!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(u){return u!==this._model.tag}}]),l}(n);r.exports=s},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(t,r,e){var n=t("./text-xform"),a=t("./rich-text-xform"),o=function(s){Ht(c,s);var i=Qt(c);function c(){var l;return At(this,c),(l=i.call(this)).map={r:new a,t:new n},l}return Rt(c,[{key:"tag",get:function(){return"rPh"}},{key:"render",value:function(l,u){if(l.openNode(this.tag,{sb:u.sb||0,eb:u.eb||0}),u&&u.hasOwnProperty("richText")&&u.richText){var f=this.map.r;u.richText.forEach(function(h){f.render(l,h)})}else u&&this.map.t.render(l,u.text);l.closeNode()}},{key:"parseOpen",value:function(l){var u=l.name;return this.parser?(this.parser.parseOpen(l),!0):u===this.tag?(this.model={sb:parseInt(l.attributes.sb,10),eb:parseInt(l.attributes.eb,10)},!0):(this.parser=this.map[u],!!this.parser&&(this.parser.parseOpen(l),!0))}},{key:"parseText",value:function(l){this.parser&&this.parser.parseText(l)}},{key:"parseClose",value:function(l){if(this.parser){if(!this.parser.parseClose(l)){switch(l){case"r":var u=this.model.richText;u||(u=this.model.richText=[]),u.push(this.parser.model);break;case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}return l!==this.tag}}]),c}(t("../base-xform"));r.exports=o},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(t,r,e){var n=t("./text-xform"),a=t("../style/font-xform"),o=function(s){Ht(c,s);var i=Qt(c);function c(l){var u;return At(this,c),(u=i.call(this)).model=l,u}return Rt(c,[{key:"tag",get:function(){return"r"}},{key:"textXform",get:function(){return this._textXform||(this._textXform=new n)}},{key:"fontXform",get:function(){return this._fontXform||(this._fontXform=new a(c.FONT_OPTIONS))}},{key:"render",value:function(l,u){u=u||this.model,l.openNode("r"),u.font&&this.fontXform.render(l,u.font),this.textXform.render(l,u.text),l.closeNode()}},{key:"parseOpen",value:function(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(l),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(l),!0;default:return!1}}},{key:"parseText",value:function(l){this.parser&&this.parser.parseText(l)}},{key:"parseClose",value:function(l){switch(l){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(l),!0}}}]),c}(t("../base-xform"));o.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},r.exports=o},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(t,r,e){var n=t("./text-xform"),a=t("./rich-text-xform"),o=t("./phonetic-text-xform"),s=function(i){Ht(l,i);var c=Qt(l);function l(u){var f;return At(this,l),(f=c.call(this)).model=u,f.map={r:new a,t:new n,rPh:new o},f}return Rt(l,[{key:"tag",get:function(){return"si"}},{key:"render",value:function(u,f){var h=this;u.openNode(this.tag),f&&f.hasOwnProperty("richText")&&f.richText?f.richText.length?f.richText.forEach(function(d){h.map.r.render(u,d)}):this.map.t.render(u,""):f!=null&&this.map.t.render(u,f),u.closeNode()}},{key:"parseOpen",value:function(u){var f=u.name;return this.parser?(this.parser.parseOpen(u),!0):f===this.tag?(this.model={},!0):(this.parser=this.map[f],!!this.parser&&(this.parser.parseOpen(u),!0))}},{key:"parseText",value:function(u){this.parser&&this.parser.parseText(u)}},{key:"parseClose",value:function(u){if(this.parser){if(!this.parser.parseClose(u)){switch(u){case"r":var f=this.model.richText;f||(f=this.model.richText=[]),f.push(this.parser.model);break;case"t":this.model=this.parser.model}this.parser=void 0}return!0}return u!==this.tag}}]),l}(t("../base-xform"));r.exports=s},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(t,r,e){var n=t("../../../utils/xml-stream"),a=t("../base-xform"),o=t("./shared-string-xform"),s=function(i){Ht(l,i);var c=Qt(l);function l(u){var f;return At(this,l),(f=c.call(this)).model=u||{values:[],count:0},f.hash=Object.create(null),f.rich=Object.create(null),f}return Rt(l,[{key:"sharedStringXform",get:function(){return this._sharedStringXform||(this._sharedStringXform=new o)}},{key:"values",get:function(){return this.model.values}},{key:"uniqueCount",get:function(){return this.model.values.length}},{key:"count",get:function(){return this.model.count}},{key:"getString",value:function(u){return this.model.values[u]}},{key:"add",value:function(u){return u.richText?this.addRichText(u):this.addText(u)}},{key:"addText",value:function(u){var f=this.hash[u];return f===void 0&&(f=this.hash[u]=this.model.values.length,this.model.values.push(u)),this.model.count++,f}},{key:"addRichText",value:function(u){var f=this.sharedStringXform.toXml(u),h=this.rich[f];return h===void 0&&(h=this.rich[f]=this.model.values.length,this.model.values.push(u)),this.model.count++,h}},{key:"render",value:function(u,f){f=f||this._values,u.openXml(n.StdDocAttributes),u.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:f.count,uniqueCount:f.values.length});var h=this.sharedStringXform;f.values.forEach(function(d){h.render(u,d)}),u.closeNode()}},{key:"parseOpen",value:function(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(u),!0;default:throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(u)))}}},{key:"parseText",value:function(u){this.parser&&this.parser.parseText(u)}},{key:"parseClose",value:function(u){if(this.parser)return this.parser.parseClose(u)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;if(u==="sst")return!1;throw new Error("Unexpected xml node in parseClose: ".concat(u))}}]),l}(a);r.exports=s},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"tag",get:function(){return"t"}},{key:"render",value:function(i,c){i.openNode("t"),/^\s|\n|\s$/.test(c)&&i.addAttribute("xml:space","preserve"),i.writeText(c),i.closeNode()}},{key:"model",get:function(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,function(i,c){return String.fromCharCode(parseInt(c,16))})}},{key:"parseOpen",value:function(i){return i.name==="t"&&(this._text=[],!0)}},{key:"parseText",value:function(i){this._text.push(i)}},{key:"parseClose",value:function(){return!1}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],126:[function(t,r,e){var n=t("../../../doc/enums"),a=t("../../../utils/utils"),o=t("../base-xform"),s={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce(function(l,u){return l[u]=!0,l},{}),horizontal:function(l){return this.horizontalValues[l]?l:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce(function(l,u){return l[u]=!0,l},{}),vertical:function(l){return l==="middle"?"center":this.verticalValues[l]?l:void 0},wrapText:function(l){return!!l||void 0},shrinkToFit:function(l){return!!l||void 0},textRotation:function(l){return l==="vertical"||(l=a.validInt(l))>=-90&&l<=90?l:void 0},indent:function(l){return l=a.validInt(l),Math.max(0,l)},readingOrder:function(l){switch(l){case"ltr":return n.ReadingOrder.LeftToRight;case"rtl":return n.ReadingOrder.RightToLeft;default:return}}},i={toXml:function(l){if(l=s.textRotation(l)){if(l==="vertical")return 255;var u=Math.round(l);if(u>=0&&u<=90)return u;if(u<0&&u>=-90)return 90-u}},toModel:function(l){var u=a.validInt(l);if(u!==void 0){if(u===255)return"vertical";if(u>=0&&u<=90)return u;if(u>90&&u<=180)return 90-u}}},c=function(l){Ht(f,l);var u=Qt(f);function f(){return At(this,f),u.apply(this,arguments)}return Rt(f,[{key:"tag",get:function(){return"alignment"}},{key:"render",value:function(h,d){h.addRollback(),h.openNode("alignment");var p=!1;function m(v,b){b&&(h.addAttribute(v,b),p=!0)}m("horizontal",s.horizontal(d.horizontal)),m("vertical",s.vertical(d.vertical)),m("wrapText",!!s.wrapText(d.wrapText)&&"1"),m("shrinkToFit",!!s.shrinkToFit(d.shrinkToFit)&&"1"),m("indent",s.indent(d.indent)),m("textRotation",i.toXml(d.textRotation)),m("readingOrder",s.readingOrder(d.readingOrder)),h.closeNode(),p?h.commit():h.rollback()}},{key:"parseOpen",value:function(h){var d={},p=!1;function m(v,b,g){v&&(d[b]=g,p=!0)}m(h.attributes.horizontal,"horizontal",h.attributes.horizontal),m(h.attributes.vertical,"vertical",h.attributes.vertical==="center"?"middle":h.attributes.vertical),m(h.attributes.wrapText,"wrapText",a.parseBoolean(h.attributes.wrapText)),m(h.attributes.shrinkToFit,"shrinkToFit",a.parseBoolean(h.attributes.shrinkToFit)),m(h.attributes.indent,"indent",parseInt(h.attributes.indent,10)),m(h.attributes.textRotation,"textRotation",i.toModel(h.attributes.textRotation)),m(h.attributes.readingOrder,"readingOrder",h.attributes.readingOrder==="2"?"rtl":"ltr"),this.model=p?d:null}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),f}(o);r.exports=c},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(t,r,e){var n=t("../base-xform"),a=t("../../../utils/utils"),o=t("./color-xform"),s=function(c){Ht(u,c);var l=Qt(u);function u(f){var h;return At(this,u),(h=l.call(this)).name=f,h.map={color:new o},h}return Rt(u,[{key:"tag",get:function(){return this.name}},{key:"render",value:function(f,h,d){var p=h&&h.color||d||this.defaultColor;f.openNode(this.name),h&&h.style&&(f.addAttribute("style",h.style),p&&this.map.color.render(f,p)),f.closeNode()}},{key:"parseOpen",value:function(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case this.name:var h=f.attributes.style;return this.model=h?{style:h}:void 0,!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(f),!0;default:return!1}}},{key:"parseText",value:function(f){this.parser&&this.parser.parseText(f)}},{key:"parseClose",value:function(f){return this.parser?(this.parser.parseClose(f)||(this.parser=void 0),!0):(f===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}},{key:"validStyle",value:function(f){return u.validStyleValues[f]}}]),u}(n);s.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce(function(c,l){return c[l]=!0,c},{});var i=function(c){Ht(u,c);var l=Qt(u);function u(){var f;return At(this,u),(f=l.call(this)).map={top:new s("top"),left:new s("left"),bottom:new s("bottom"),right:new s("right"),diagonal:new s("diagonal")},f}return Rt(u,[{key:"render",value:function(f,h){var d=h.color;function p(m,v){m&&!m.color&&h.color&&(m=fn(fn({},m),{},{color:h.color})),v.render(f,m,d)}f.openNode("border"),h.diagonal&&h.diagonal.style&&(h.diagonal.up&&f.addAttribute("diagonalUp","1"),h.diagonal.down&&f.addAttribute("diagonalDown","1")),p(h.left,this.map.left),p(h.right,this.map.right),p(h.top,this.map.top),p(h.bottom,this.map.bottom),p(h.diagonal,this.map.diagonal),f.closeNode()}},{key:"parseOpen",value:function(f){return this.parser?(this.parser.parseOpen(f),!0):f.name==="border"?(this.reset(),this.diagonalUp=a.parseBoolean(f.attributes.diagonalUp),this.diagonalDown=a.parseBoolean(f.attributes.diagonalDown),!0):(this.parser=this.map[f.name],!!this.parser&&(this.parser.parseOpen(f),!0))}},{key:"parseText",value:function(f){this.parser&&this.parser.parseText(f)}},{key:"parseClose",value:function(f){if(this.parser)return this.parser.parseClose(f)||(this.parser=void 0),!0;if(f==="border"){var h=this.model={},d=function(p,m,v){m&&(v&&Object.assign(m,v),h[p]=m)};d("left",this.map.left.model),d("right",this.map.right.model),d("top",this.map.top.model),d("bottom",this.map.bottom.model),d("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}]),u}(n);r.exports=i},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(i){var c;return At(this,s),(c=o.call(this)).name=i||"color",c}return Rt(s,[{key:"tag",get:function(){return this.name}},{key:"render",value:function(i,c){return!!c&&(i.openNode(this.name),c.argb?i.addAttribute("rgb",c.argb):c.theme!==void 0?(i.addAttribute("theme",c.theme),c.tint!==void 0&&i.addAttribute("tint",c.tint)):c.indexed!==void 0?i.addAttribute("indexed",c.indexed):i.addAttribute("auto","1"),i.closeNode(),!0)}},{key:"parseOpen",value:function(i){return i.name===this.name&&(i.attributes.rgb?this.model={argb:i.attributes.rgb}:i.attributes.theme?(this.model={theme:parseInt(i.attributes.theme,10)},i.attributes.tint&&(this.model.tint=parseFloat(i.attributes.tint))):i.attributes.indexed?this.model={indexed:parseInt(i.attributes.indexed,10)}:this.model=void 0,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],129:[function(t,r,e){var n=t("../base-xform"),a=t("./alignment-xform"),o=t("./border-xform"),s=t("./fill-xform"),i=t("./font-xform"),c=t("./numfmt-xform"),l=t("./protection-xform"),u=function(f){Ht(d,f);var h=Qt(d);function d(){var p;return At(this,d),(p=h.call(this)).map={alignment:new a,border:new o,fill:new s,font:new i,numFmt:new c,protection:new l},p}return Rt(d,[{key:"tag",get:function(){return"dxf"}},{key:"render",value:function(p,m){if(p.openNode(this.tag),m.font&&this.map.font.render(p,m.font),m.numFmt&&m.numFmtId){var v={id:m.numFmtId,formatCode:m.numFmt};this.map.numFmt.render(p,v)}m.fill&&this.map.fill.render(p,m.fill),m.alignment&&this.map.alignment.render(p,m.alignment),m.border&&this.map.border.render(p,m.border),m.protection&&this.map.protection.render(p,m.protection),p.closeNode()}},{key:"parseOpen",value:function(p){return this.parser?(this.parser.parseOpen(p),!0):p.name===this.tag?(this.reset(),!0):(this.parser=this.map[p.name],this.parser&&this.parser.parseOpen(p),!0)}},{key:"parseText",value:function(p){this.parser&&this.parser.parseText(p)}},{key:"parseClose",value:function(p){return this.parser?(this.parser.parseClose(p)||(this.parser=void 0),!0):p!==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)}}]),d}(n);r.exports=u},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(t,r,e){var n=t("../base-xform"),a=t("./color-xform"),o=function(l){Ht(f,l);var u=Qt(f);function f(){var h;return At(this,f),(h=u.call(this)).map={color:new a},h}return Rt(f,[{key:"tag",get:function(){return"stop"}},{key:"render",value:function(h,d){h.openNode("stop"),h.addAttribute("position",d.position),this.map.color.render(h,d.color),h.closeNode()}},{key:"parseOpen",value:function(h){if(this.parser)return this.parser.parseOpen(h),!0;switch(h.name){case"stop":return this.model={position:parseFloat(h.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(h),!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(h){return!!this.parser&&(this.parser.parseClose(h)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}]),f}(n),s=function(l){Ht(f,l);var u=Qt(f);function f(){var h;return At(this,f),(h=u.call(this)).map={fgColor:new a("fgColor"),bgColor:new a("bgColor")},h}return Rt(f,[{key:"name",get:function(){return"pattern"}},{key:"tag",get:function(){return"patternFill"}},{key:"render",value:function(h,d){h.openNode("patternFill"),h.addAttribute("patternType",d.pattern),d.fgColor&&this.map.fgColor.render(h,d.fgColor),d.bgColor&&this.map.bgColor.render(h,d.bgColor),h.closeNode()}},{key:"parseOpen",value:function(h){return this.parser?(this.parser.parseOpen(h),!0):h.name==="patternFill"?(this.model={type:"pattern",pattern:h.attributes.patternType},!0):(this.parser=this.map[h.name],!!this.parser&&(this.parser.parseOpen(h),!0))}},{key:"parseText",value:function(h){this.parser&&this.parser.parseText(h)}},{key:"parseClose",value:function(h){return!!this.parser&&(this.parser.parseClose(h)||(this.parser.model&&(this.model[h]=this.parser.model),this.parser=void 0),!0)}}]),f}(n),i=function(l){Ht(f,l);var u=Qt(f);function f(){var h;return At(this,f),(h=u.call(this)).map={stop:new o},h}return Rt(f,[{key:"name",get:function(){return"gradient"}},{key:"tag",get:function(){return"gradientFill"}},{key:"render",value:function(h,d){switch(h.openNode("gradientFill"),d.gradient){case"angle":h.addAttribute("degree",d.degree);break;case"path":h.addAttribute("type","path"),d.center.left&&(h.addAttribute("left",d.center.left),d.center.right===void 0&&h.addAttribute("right",d.center.left)),d.center.right&&h.addAttribute("right",d.center.right),d.center.top&&(h.addAttribute("top",d.center.top),d.center.bottom===void 0&&h.addAttribute("bottom",d.center.top)),d.center.bottom&&h.addAttribute("bottom",d.center.bottom)}var p=this.map.stop;d.stops.forEach(function(m){p.render(h,m)}),h.closeNode()}},{key:"parseOpen",value:function(h){if(this.parser)return this.parser.parseOpen(h),!0;switch(h.name){case"gradientFill":var d=this.model={stops:[]};return h.attributes.degree?(d.gradient="angle",d.degree=parseInt(h.attributes.degree,10)):h.attributes.type==="path"&&(d.gradient="path",d.center={left:h.attributes.left?parseFloat(h.attributes.left):0,top:h.attributes.top?parseFloat(h.attributes.top):0},h.attributes.right!==h.attributes.left&&(d.center.right=h.attributes.right?parseFloat(h.attributes.right):0),h.attributes.bottom!==h.attributes.top&&(d.center.bottom=h.attributes.bottom?parseFloat(h.attributes.bottom):0)),!0;case"stop":return this.parser=this.map.stop,this.parser.parseOpen(h),!0;default:return!1}}},{key:"parseText",value:function(h){this.parser&&this.parser.parseText(h)}},{key:"parseClose",value:function(h){return!!this.parser&&(this.parser.parseClose(h)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}]),f}(n),c=function(l){Ht(f,l);var u=Qt(f);function f(){var h;return At(this,f),(h=u.call(this)).map={patternFill:new s,gradientFill:new i},h}return Rt(f,[{key:"tag",get:function(){return"fill"}},{key:"render",value:function(h,d){switch(h.addRollback(),h.openNode("fill"),d.type){case"pattern":this.map.patternFill.render(h,d);break;case"gradient":this.map.gradientFill.render(h,d);break;default:return void h.rollback()}h.closeNode(),h.commit()}},{key:"parseOpen",value:function(h){return this.parser?(this.parser.parseOpen(h),!0):h.name==="fill"?(this.model={},!0):(this.parser=this.map[h.name],!!this.parser&&(this.parser.parseOpen(h),!0))}},{key:"parseText",value:function(h){this.parser&&this.parser.parseText(h)}},{key:"parseClose",value:function(h){return!!this.parser&&(this.parser.parseClose(h)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}},{key:"validStyle",value:function(h){return f.validPatternValues[h]}}]),f}(n);c.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce(function(l,u){return l[u]=!0,l},{}),c.StopXform=o,c.PatternFillXform=s,c.GradientFillXform=i,r.exports=c},{"../base-xform":32,"./color-xform":128}],131:[function(t,r,e){var n=t("./color-xform"),a=t("../simple/boolean-xform"),o=t("../simple/integer-xform"),s=t("../simple/string-xform"),i=t("./underline-xform"),c=t("../../../utils/under-dash"),l=function(u){Ht(h,u);var f=Qt(h);function h(d){var p;return At(this,h),(p=f.call(this)).options=d||h.OPTIONS,p.map={b:{prop:"bold",xform:new a({tag:"b",attr:"val"})},i:{prop:"italic",xform:new a({tag:"i",attr:"val"})},u:{prop:"underline",xform:new i},charset:{prop:"charset",xform:new o({tag:"charset",attr:"val"})},color:{prop:"color",xform:new n},condense:{prop:"condense",xform:new a({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new a({tag:"extend",attr:"val"})},family:{prop:"family",xform:new o({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new a({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 a({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new a({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new o({tag:"sz",attr:"val"})}},p.map[p.options.fontNameTag]={prop:"name",xform:new s({tag:p.options.fontNameTag,attr:"val"})},p}return Rt(h,[{key:"tag",get:function(){return this.options.tagName}},{key:"render",value:function(d,p){var m=this.map;d.openNode(this.options.tagName),c.each(this.map,function(v,b){m[b].xform.render(d,p[v.prop])}),d.closeNode()}},{key:"parseOpen",value:function(d){return this.parser?(this.parser.parseOpen(d),!0):this.map[d.name]?(this.parser=this.map[d.name].xform,this.parser.parseOpen(d)):d.name===this.options.tagName&&(this.model={},!0)}},{key:"parseText",value:function(d){this.parser&&this.parser.parseText(d)}},{key:"parseClose",value:function(d){if(this.parser&&!this.parser.parseClose(d)){var p=this.map[d];return this.parser.model&&(this.model[p.prop]=this.parser.model),this.parser=void 0,!0}return d!==this.options.tagName}}]),h}(t("../base-xform"));l.OPTIONS={tagName:"font",fontNameTag:"name"},r.exports=l},{"../../../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(t,r,e){var n=t("../../../utils/under-dash"),a=t("../../defaultnumformats"),o=t("../base-xform");function s(){var l={};return n.each(a,function(u,f){u.f&&(l[u.f]=parseInt(f,10))}),l}var i=s(),c=function(l){Ht(f,l);var u=Qt(f);function f(h,d){var p;return At(this,f),(p=u.call(this)).id=h,p.formatCode=d,p}return Rt(f,[{key:"tag",get:function(){return"numFmt"}},{key:"render",value:function(h,d){h.leafNode("numFmt",{numFmtId:d.id,formatCode:d.formatCode})}},{key:"parseOpen",value:function(h){return h.name==="numFmt"&&(this.model={id:parseInt(h.attributes.numFmtId,10),formatCode:h.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),f}(o);c.getDefaultFmtId=function(l){return i[l]},c.getDefaultFmtCode=function(l){return a[l]&&a[l].f},r.exports=c},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(t,r,e){var n=t("../base-xform"),a={boolean:function(s,i){return s===void 0?i:s}},o=function(s){Ht(c,s);var i=Qt(c);function c(){return At(this,c),i.apply(this,arguments)}return Rt(c,[{key:"tag",get:function(){return"protection"}},{key:"render",value:function(l,u){l.addRollback(),l.openNode("protection");var f=!1;function h(d,p){p!==void 0&&(l.addAttribute(d,p),f=!0)}h("locked",a.boolean(u.locked,!0)?void 0:"0"),h("hidden",a.boolean(u.hidden,!1)?"1":void 0),l.closeNode(),f?l.commit():l.rollback()}},{key:"parseOpen",value:function(l){var u={locked:l.attributes.locked!=="0",hidden:l.attributes.hidden==="1"},f=!u.locked||u.hidden;this.model=f?u:null}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),c}(n);r.exports=o},{"../base-xform":32}],134:[function(t,r,e){var n=t("../base-xform"),a=t("./alignment-xform"),o=t("./protection-xform"),s=function(i){Ht(l,i);var c=Qt(l);function l(u){var f;return At(this,l),(f=c.call(this)).xfId=!(!u||!u.xfId),f.map={alignment:new a,protection:new o},f}return Rt(l,[{key:"tag",get:function(){return"xf"}},{key:"render",value:function(u,f){u.openNode("xf",{numFmtId:f.numFmtId||0,fontId:f.fontId||0,fillId:f.fillId||0,borderId:f.borderId||0}),this.xfId&&u.addAttribute("xfId",f.xfId||0),f.numFmtId&&u.addAttribute("applyNumberFormat","1"),f.fontId&&u.addAttribute("applyFont","1"),f.fillId&&u.addAttribute("applyFill","1"),f.borderId&&u.addAttribute("applyBorder","1"),f.alignment&&u.addAttribute("applyAlignment","1"),f.protection&&u.addAttribute("applyProtection","1"),f.alignment&&this.map.alignment.render(u,f.alignment),f.protection&&this.map.protection.render(u,f.protection),u.closeNode()}},{key:"parseOpen",value:function(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"xf":return this.model={numFmtId:parseInt(u.attributes.numFmtId,10),fontId:parseInt(u.attributes.fontId,10),fillId:parseInt(u.attributes.fillId,10),borderId:parseInt(u.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(u.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(u),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(u),!0;default:return!1}}},{key:"parseText",value:function(u){this.parser&&this.parser.parseText(u)}},{key:"parseClose",value:function(u){return this.parser?(this.parser.parseClose(u)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):u!=="xf"}}]),l}(n);r.exports=s},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(t,r,e){var n=t("../../../doc/enums"),a=t("../../../utils/xml-stream"),o=t("../base-xform"),s=t("../static-xform"),i=t("../list-xform"),c=t("./font-xform"),l=t("./fill-xform"),u=t("./border-xform"),f=t("./numfmt-xform"),h=t("./style-xform"),d=t("./dxf-xform"),p=164,m=function(b){Ht(y,b);var g=Qt(y);function y(w){var x;return At(this,y),(x=g.call(this)).map={numFmts:new i({tag:"numFmts",count:!0,childXform:new f}),fonts:new i({tag:"fonts",count:!0,childXform:new c,$:{"x14ac:knownFonts":1}}),fills:new i({tag:"fills",count:!0,childXform:new l}),borders:new i({tag:"borders",count:!0,childXform:new u}),cellStyleXfs:new i({tag:"cellStyleXfs",count:!0,childXform:new h}),cellXfs:new i({tag:"cellXfs",count:!0,childXform:new h({xfId:!0})}),dxfs:new i({tag:"dxfs",always:!0,count:!0,childXform:new d}),numFmt:new f,font:new c,fill:new l,border:new u,style:new h({xfId:!0}),cellStyles:y.STATIC_XFORMS.cellStyles,tableStyles:y.STATIC_XFORMS.tableStyles,extLst:y.STATIC_XFORMS.extLst},w&&x.init(),x}return Rt(y,[{key:"initIndex",value:function(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}},{key:"init",value:function(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}},{key:"render",value:function(w,x){x=x||this.model,w.openXml(a.StdDocAttributes),w.openNode("styleSheet",y.STYLESHEET_ATTRIBUTES),this.index?(x.numFmts&&x.numFmts.length&&(w.openNode("numFmts",{count:x.numFmts.length}),x.numFmts.forEach(function(C){w.writeXml(C)}),w.closeNode()),x.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),w.openNode("fonts",{count:x.fonts.length,"x14ac:knownFonts":1}),x.fonts.forEach(function(C){w.writeXml(C)}),w.closeNode(),w.openNode("fills",{count:x.fills.length}),x.fills.forEach(function(C){w.writeXml(C)}),w.closeNode(),w.openNode("borders",{count:x.borders.length}),x.borders.forEach(function(C){w.writeXml(C)}),w.closeNode(),this.map.cellStyleXfs.render(w,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),w.openNode("cellXfs",{count:x.styles.length}),x.styles.forEach(function(C){w.writeXml(C)}),w.closeNode()):(this.map.numFmts.render(w,x.numFmts),this.map.fonts.render(w,x.fonts),this.map.fills.render(w,x.fills),this.map.borders.render(w,x.borders),this.map.cellStyleXfs.render(w,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(w,x.styles)),y.STATIC_XFORMS.cellStyles.render(w),this.map.dxfs.render(w,x.dxfs),y.STATIC_XFORMS.tableStyles.render(w),y.STATIC_XFORMS.extLst.render(w),w.closeNode()}},{key:"parseOpen",value:function(w){return this.parser?(this.parser.parseOpen(w),!0):w.name==="styleSheet"?(this.initIndex(),!0):(this.parser=this.map[w.name],this.parser&&this.parser.parseOpen(w),!0)}},{key:"parseText",value:function(w){this.parser&&this.parser.parseText(w)}},{key:"parseClose",value:function(w){var x=this;if(this.parser)return this.parser.parseClose(w)||(this.parser=void 0),!0;if(w==="styleSheet"){this.model={};var C=function(D,j){j.model&&j.model.length&&(x.model[D]=j.model)};if(C("numFmts",this.map.numFmts),C("fonts",this.map.fonts),C("fills",this.map.fills),C("borders",this.map.borders),C("styles",this.map.cellXfs),C("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){var O=this.index.numFmt;this.model.numFmts.forEach(function(D){O[D.id]=D.formatCode})}return!1}return!0}},{key:"addStyleModel",value:function(w,x){if(!w)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(w))return this.weakMap.get(w);var C={};if(x=x||n.ValueType.Number,w.numFmt)C.numFmtId=this._addNumFmtStr(w.numFmt);else switch(x){case n.ValueType.Number:C.numFmtId=this._addNumFmtStr("General");break;case n.ValueType.Date:C.numFmtId=this._addNumFmtStr("mm-dd-yy")}w.font&&(C.fontId=this._addFont(w.font)),w.border&&(C.borderId=this._addBorder(w.border)),w.fill&&(C.fillId=this._addFill(w.fill)),w.alignment&&(C.alignment=w.alignment),w.protection&&(C.protection=w.protection);var O=this._addStyle(C);return this.weakMap&&this.weakMap.set(w,O),O}},{key:"getStyleModel",value:function(w){var x=this.model.styles[w];if(!x)return null;var C=this.index.model[w];if(C)return C;if(C=this.index.model[w]={},x.numFmtId){var O=this.index.numFmt[x.numFmtId]||f.getDefaultFmtCode(x.numFmtId);O&&(C.numFmt=O)}function D(j,U,L){if(L||L===0){var V=U[L];V&&(C[j]=V)}}return D("font",this.model.fonts,x.fontId),D("border",this.model.borders,x.borderId),D("fill",this.model.fills,x.fillId),x.alignment&&(C.alignment=x.alignment),x.protection&&(C.protection=x.protection),C}},{key:"addDxfStyle",value:function(w){return w.numFmt&&(w.numFmtId=this._addNumFmtStr(w.numFmt)),this.model.dxfs.push(w),this.model.dxfs.length-1}},{key:"getDxfStyle",value:function(w){return this.model.dxfs[w]}},{key:"_addStyle",value:function(w){var x=this.map.style.toXml(w),C=this.index.style[x];return C===void 0&&(C=this.index.style[x]=this.model.styles.length,this.model.styles.push(x)),C}},{key:"_addNumFmtStr",value:function(w){var x=f.getDefaultFmtId(w);if(x!==void 0||(x=this.index.numFmt[w])!==void 0)return x;x=this.index.numFmt[w]=p+this.model.numFmts.length;var C=this.map.numFmt.toXml({id:x,formatCode:w});return this.model.numFmts.push(C),x}},{key:"_addFont",value:function(w){var x=this.map.font.toXml(w),C=this.index.font[x];return C===void 0&&(C=this.index.font[x]=this.model.fonts.length,this.model.fonts.push(x)),C}},{key:"_addBorder",value:function(w){var x=this.map.border.toXml(w),C=this.index.border[x];return C===void 0&&(C=this.index.border[x]=this.model.borders.length,this.model.borders.push(x)),C}},{key:"_addFill",value:function(w){var x=this.map.fill.toXml(w),C=this.index.fill[x];return C===void 0&&(C=this.index.fill[x]=this.model.fills.length,this.model.fills.push(x)),C}}]),y}(o);m.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"},m.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"}}]}]})};var v=function(b){Ht(y,b);var g=Qt(y);function y(){var w;return At(this,y),(w=g.call(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"}]},w}return Rt(y,[{key:"parseStream",value:function(w){return w.autodrain(),Promise.resolve()}},{key:"addStyleModel",value:function(w,x){return x===n.ValueType.Date?this.dateStyleId:0}},{key:"dateStyleId",get:function(){if(!this._dateStyleId){var w={numFmtId:f.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(w)}return this._dateStyleId}},{key:"getStyleModel",value:function(){return{}}}]),y}(m);m.Mock=v,r.exports=m},{"../../../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(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(i){var c;return At(this,s),(c=o.call(this)).model=i,c}return Rt(s,[{key:"tag",get:function(){return"u"}},{key:"render",value:function(i,c){if((c=c||this.model)===!0)i.leafNode("u");else{var l=s.Attributes[c];l&&i.leafNode("u",l)}}},{key:"parseOpen",value:function(i){i.name==="u"&&(this.model=i.attributes.val||!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),s}(t("../base-xform"));n.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},r.exports=n},{"../base-xform":32}],137:[function(t,r,e){var n=t("../base-xform"),a=t("./filter-column-xform"),o=function(s){Ht(c,s);var i=Qt(c);function c(){var l;return At(this,c),(l=i.call(this)).map={filterColumn:new a},l}return Rt(c,[{key:"tag",get:function(){return"autoFilter"}},{key:"prepare",value:function(l){var u=this;l.columns.forEach(function(f,h){u.map.filterColumn.prepare(f,{index:h})})}},{key:"render",value:function(l,u){var f=this;return l.openNode(this.tag,{ref:u.autoFilterRef}),u.columns.forEach(function(h){f.map.filterColumn.render(l,h)}),l.closeNode(),!0}},{key:"parseOpen",value:function(l){if(this.parser)return this.parser.parseOpen(l),!0;if(l.name===this.tag)return this.model={autoFilterRef:l.attributes.ref,columns:[]},!0;if(this.parser=this.map[l.name],this.parser)return this.parseOpen(l),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(l)))}},{key:"parseText",value:function(l){this.parser&&this.parser.parseText(l)}},{key:"parseClose",value:function(l){if(this.parser)return this.parser.parseClose(l)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;if(l===this.tag)return!1;throw new Error("Unexpected xml node in parseClose: ".concat(l))}}]),c}(n);r.exports=o},{"../base-xform":32,"./filter-column-xform":139}],138:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"tag",get:function(){return"customFilter"}},{key:"render",value:function(i,c){i.leafNode(this.tag,{val:c.val,operator:c.operator})}},{key:"parseOpen",value:function(i){return i.name===this.tag&&(this.model={val:i.attributes.val,operator:i.attributes.operator},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],139:[function(t,r,e){var n=t("../base-xform"),a=t("../list-xform"),o=t("./custom-filter-xform"),s=t("./filter-xform"),i=function(c){Ht(u,c);var l=Qt(u);function u(){var f;return At(this,u),(f=l.call(this)).map={customFilters:new a({tag:"customFilters",count:!1,empty:!0,childXform:new o}),filters:new a({tag:"filters",count:!1,empty:!0,childXform:new s})},f}return Rt(u,[{key:"tag",get:function(){return"filterColumn"}},{key:"prepare",value:function(f,h){f.colId=h.index.toString()}},{key:"render",value:function(f,h){return h.customFilters?(f.openNode(this.tag,{colId:h.colId,hiddenButton:h.filterButton?"0":"1"}),this.map.customFilters.render(f,h.customFilters),f.closeNode(),!0):(f.leafNode(this.tag,{colId:h.colId,hiddenButton:h.filterButton?"0":"1"}),!0)}},{key:"parseOpen",value:function(f){if(this.parser)return this.parser.parseOpen(f),!0;var h=f.attributes;if(f.name===this.tag)return this.model={filterButton:h.hiddenButton==="0"},!0;if(this.parser=this.map[f.name],this.parser)return this.parseOpen(f),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(f)))}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(f){return this.parser?(this.parser.parseClose(f)||(this.parser=void 0),!0):f!==this.tag||(this.model.customFilters=this.map.customFilters.model,!1)}}]),u}(n);r.exports=i},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"tag",get:function(){return"filter"}},{key:"render",value:function(i,c){i.leafNode(this.tag,{val:c.val})}},{key:"parseOpen",value:function(i){return i.name===this.tag&&(this.model={val:i.attributes.val},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],141:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"tag",get:function(){return"tableColumn"}},{key:"prepare",value:function(i,c){i.id=c.index+1}},{key:"render",value:function(i,c){return i.leafNode(this.tag,{id:c.id.toString(),name:c.name,totalsRowLabel:c.totalsRowLabel,totalsRowFunction:c.totalsRowFunction,dxfId:c.dxfId}),!0}},{key:"parseOpen",value:function(i){if(i.name===this.tag){var c=i.attributes;return this.model={name:c.name,totalsRowLabel:c.totalsRowLabel,totalsRowFunction:c.totalsRowFunction,dxfId:c.dxfId},!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],142:[function(t,r,e){var n=function(a){Ht(s,a);var o=Qt(s);function s(){return At(this,s),o.apply(this,arguments)}return Rt(s,[{key:"tag",get:function(){return"tableStyleInfo"}},{key:"render",value:function(i,c){return i.leafNode(this.tag,{name:c.theme?c.theme:void 0,showFirstColumn:c.showFirstColumn?"1":"0",showLastColumn:c.showLastColumn?"1":"0",showRowStripes:c.showRowStripes?"1":"0",showColumnStripes:c.showColumnStripes?"1":"0"}),!0}},{key:"parseOpen",value:function(i){if(i.name===this.tag){var c=i.attributes;return this.model={theme:c.name?c.name:null,showFirstColumn:c.showFirstColumn==="1",showLastColumn:c.showLastColumn==="1",showRowStripes:c.showRowStripes==="1",showColumnStripes:c.showColumnStripes==="1"},!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),s}(t("../base-xform"));r.exports=n},{"../base-xform":32}],143:[function(t,r,e){var n=t("../../../utils/xml-stream"),a=t("../base-xform"),o=t("../list-xform"),s=t("./auto-filter-xform"),i=t("./table-column-xform"),c=t("./table-style-info-xform"),l=function(u){Ht(h,u);var f=Qt(h);function h(){var d;return At(this,h),(d=f.call(this)).map={autoFilter:new s,tableColumns:new o({tag:"tableColumns",count:!0,empty:!0,childXform:new i}),tableStyleInfo:new c},d}return Rt(h,[{key:"prepare",value:function(d,p){this.map.autoFilter.prepare(d),this.map.tableColumns.prepare(d.columns,p)}},{key:"tag",get:function(){return"table"}},{key:"render",value:function(d,p){d.openXml(n.StdDocAttributes),d.openNode(this.tag,fn(fn({},h.TABLE_ATTRIBUTES),{},{id:p.id,name:p.name,displayName:p.displayName||p.name,ref:p.tableRef,totalsRowCount:p.totalsRow?"1":void 0,totalsRowShown:p.totalsRow?void 0:"1",headerRowCount:p.headerRow?"1":"0"})),this.map.autoFilter.render(d,p),this.map.tableColumns.render(d,p.columns),this.map.tableStyleInfo.render(d,p.style),d.closeNode()}},{key:"parseOpen",value:function(d){if(this.parser)return this.parser.parseOpen(d),!0;var p=d.name,m=d.attributes;return p===this.tag?(this.reset(),this.model={name:m.name,displayName:m.displayName||m.name,tableRef:m.ref,totalsRow:m.totalsRowCount==="1",headerRow:m.headerRowCount==="1"}):(this.parser=this.map[d.name],this.parser&&this.parser.parseOpen(d)),!0}},{key:"parseText",value:function(d){this.parser&&this.parser.parseText(d)}},{key:"parseClose",value:function(d){var p=this;return this.parser?(this.parser.parseClose(d)||(this.parser=void 0),!0):d!==this.tag||(this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach(function(m,v){p.model.columns[v].filterButton=m.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1)}},{key:"reconcile",value:function(d,p){d.columns.forEach(function(m){m.dxfId!==void 0&&(m.style=p.styles.getDxfStyle(m.dxfId))})}}]),h}(a);l.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"},r.exports=l},{"../../../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(t,r,e){(function(n,a){(function(){var o=t("fs"),s=t("jszip"),i=t("readable-stream").PassThrough,c=t("../utils/zip-stream"),l=t("../utils/stream-buf"),u=t("../utils/utils"),f=t("../utils/xml-stream"),h=t("../utils/browser-buffer-decode").bufferToString,d=t("./xform/style/styles-xform"),p=t("./xform/core/core-xform"),m=t("./xform/strings/shared-strings-xform"),v=t("./xform/core/relationships-xform"),b=t("./xform/core/content-types-xform"),g=t("./xform/core/app-xform"),y=t("./xform/book/workbook-xform"),w=t("./xform/sheet/worksheet-xform"),x=t("./xform/drawing/drawing-xform"),C=t("./xform/table/table-xform"),O=t("./xform/comment/comments-xform"),D=t("./xform/comment/vml-notes-xform"),j=t("./xml/theme1");function U(V,A){return new Promise(function(N,k){o.readFile(V,A,function(S,E){S?k(S):N(E)})})}var L=function(){function V(A){At(this,V),this.workbook=A}return Rt(V,[{key:"readFile",value:function(){var A=xr(Ne.mark(function k(S,E){var T,R;return Ne.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.next=2,u.fs.exists(S);case 2:if(F.sent){F.next=4;break}throw new Error("File not found: ".concat(S));case 4:return T=o.createReadStream(S),F.prev=5,F.next=8,this.read(T,E);case 8:return R=F.sent,T.close(),F.abrupt("return",R);case 13:throw F.prev=13,F.t0=F.catch(5),T.close(),F.t0;case 17:case"end":return F.stop()}},k,this,[[5,13]])}));function N(k,S){return A.apply(this,arguments)}return N}()},{key:"parseRels",value:function(A){return new v().parseStream(A)}},{key:"parseWorkbook",value:function(A){return new y().parseStream(A)}},{key:"parseSharedStrings",value:function(A){return new m().parseStream(A)}},{key:"reconcile",value:function(A,N){var k=new y,S=new w(N),E=new x,T=new C;k.reconcile(A);var R={media:A.media,mediaIndex:A.mediaIndex};Object.keys(A.drawings).forEach(function(B){var P=A.drawings[B],H=A.drawingRels[B];H&&(R.rels=H.reduce(function(Z,Y){return Z[Y.Id]=Y,Z},{}),(P.anchors||[]).forEach(function(Z){var Y=Z.picture&&Z.picture.hyperlinks;Y&&R.rels[Y.rId]&&(Y.hyperlink=R.rels[Y.rId].Target,delete Y.rId)}),E.reconcile(P,R))});var F={styles:A.styles};Object.values(A.tables).forEach(function(B){T.reconcile(B,F)});var I={styles:A.styles,sharedStrings:A.sharedStrings,media:A.media,mediaIndex:A.mediaIndex,date1904:A.properties&&A.properties.date1904,drawings:A.drawings,comments:A.comments,tables:A.tables,vmlDrawings:A.vmlDrawings};A.worksheets.forEach(function(B){B.relationships=A.worksheetRels[B.sheetNo],S.reconcile(B,I)}),delete A.worksheetHash,delete A.worksheetRels,delete A.globalRels,delete A.sharedStrings,delete A.workbookRels,delete A.sheetDefs,delete A.styles,delete A.mediaIndex,delete A.drawings,delete A.drawingRels,delete A.vmlDrawings}},{key:"_processWorksheetEntry",value:function(){var A=xr(Ne.mark(function k(S,E,T,R,F){var I,B;return Ne.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return I=new w(R),P.next=3,I.parseStream(S);case 3:(B=P.sent).sheetNo=T,E.worksheetHash[F]=B,E.worksheets.push(B);case 7:case"end":return P.stop()}},k)}));function N(k,S,E,T,R){return A.apply(this,arguments)}return N}()},{key:"_processCommentEntry",value:function(){var A=xr(Ne.mark(function k(S,E,T){var R,F;return Ne.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return R=new O,I.next=3,R.parseStream(S);case 3:F=I.sent,E.comments["../".concat(T,".xml")]=F;case 5:case"end":return I.stop()}},k)}));function N(k,S,E){return A.apply(this,arguments)}return N}()},{key:"_processTableEntry",value:function(){var A=xr(Ne.mark(function k(S,E,T){var R,F;return Ne.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return R=new C,I.next=3,R.parseStream(S);case 3:F=I.sent,E.tables["../tables/".concat(T,".xml")]=F;case 5:case"end":return I.stop()}},k)}));function N(k,S,E){return A.apply(this,arguments)}return N}()},{key:"_processWorksheetRelsEntry",value:function(){var A=xr(Ne.mark(function k(S,E,T){var R,F;return Ne.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return R=new v,I.next=3,R.parseStream(S);case 3:F=I.sent,E.worksheetRels[T]=F;case 5:case"end":return I.stop()}},k)}));function N(k,S,E){return A.apply(this,arguments)}return N}()},{key:"_processMediaEntry",value:function(){var A=xr(Ne.mark(function k(S,E,T){var R,F,I;return Ne.wrap(function(B){for(;;)switch(B.prev=B.next){case 0:if(!((R=T.lastIndexOf("."))>=1)){B.next=6;break}return F=T.substr(R+1),I=T.substr(0,R),B.next=6,new Promise(function(P,H){var Z=new l;Z.on("finish",function(){E.mediaIndex[T]=E.media.length,E.mediaIndex[I]=E.media.length;var Y={type:"image",name:I,extension:F,buffer:Z.toBuffer()};E.media.push(Y),P()}),S.on("error",function(Y){H(Y)}),S.pipe(Z)});case 6:case"end":return B.stop()}},k)}));function N(k,S,E){return A.apply(this,arguments)}return N}()},{key:"_processDrawingEntry",value:function(){var A=xr(Ne.mark(function k(S,E,T){var R,F;return Ne.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return R=new x,I.next=3,R.parseStream(S);case 3:F=I.sent,E.drawings[T]=F;case 5:case"end":return I.stop()}},k)}));function N(k,S,E){return A.apply(this,arguments)}return N}()},{key:"_processDrawingRelsEntry",value:function(){var A=xr(Ne.mark(function k(S,E,T){var R,F;return Ne.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return R=new v,I.next=3,R.parseStream(S);case 3:F=I.sent,E.drawingRels[T]=F;case 5:case"end":return I.stop()}},k)}));function N(k,S,E){return A.apply(this,arguments)}return N}()},{key:"_processVmlDrawingEntry",value:function(){var A=xr(Ne.mark(function k(S,E,T){var R,F;return Ne.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return R=new D,I.next=3,R.parseStream(S);case 3:F=I.sent,E.vmlDrawings["../drawings/".concat(T,".vml")]=F;case 5:case"end":return I.stop()}},k)}));function N(k,S,E){return A.apply(this,arguments)}return N}()},{key:"_processThemeEntry",value:function(){var A=xr(Ne.mark(function k(S,E,T){return Ne.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return R.next=2,new Promise(function(F,I){var B=new l;S.on("error",I),B.on("error",I),B.on("finish",function(){E.themes[T]=B.read().toString(),F()}),S.pipe(B)});case 2:case"end":return R.stop()}},k)}));function N(k,S,E){return A.apply(this,arguments)}return N}()},{key:"createInputStream",value:function(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}},{key:"read",value:function(){var A=xr(Ne.mark(function k(S,E){var T,R,F,I,B,P,H;return Ne.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:!S[Symbol.asyncIterator]&&S.pipe&&(S=S.pipe(new i)),T=[],R=!1,F=!1,Z.prev=4,B=lf(S);case 6:return Z.next=8,B.next();case 8:if(!(R=!(P=Z.sent).done)){Z.next=14;break}H=P.value,T.push(H);case 11:R=!1,Z.next=6;break;case 14:Z.next=20;break;case 16:Z.prev=16,Z.t0=Z.catch(4),F=!0,I=Z.t0;case 20:if(Z.prev=20,Z.prev=21,!R||B.return==null){Z.next=25;break}return Z.next=25,B.return();case 25:if(Z.prev=25,!F){Z.next=28;break}throw I;case 28:return Z.finish(25);case 29:return Z.finish(20);case 30:return Z.abrupt("return",this.load(a.concat(T),E));case 31:case"end":return Z.stop()}},k,this,[[4,16,20,30],[21,,25,29]])}));function N(k,S){return A.apply(this,arguments)}return N}()},{key:"load",value:function(){var A=xr(Ne.mark(function k(S,E){var T,R,F,I,B,P,H,Z,Y,dt,gt,bt,Q,q,tt,et,_t;return Ne.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return T=E&&E.base64?a.from(S.toString(),"base64"):S,R={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},J.next=4,s.loadAsync(T);case 4:F=J.sent,I=0,B=Object.values(F.files);case 6:if(!(I<B.length)){J.next=126;break}if((P=B[I]).dir){J.next=123;break}if((H=P.name)[0]==="/"&&(H=H.substr(1)),Z=void 0,!H.match(/xl\/media\//)&&!H.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/)){J.next=21;break}return Z=new i,J.t0=Z,J.next=17,P.async("nodebuffer");case 17:J.t1=J.sent,J.t0.write.call(J.t0,J.t1),J.next=36;break;case 21:if(Z=new i({writableObjectMode:!0,readableObjectMode:!0}),Y=void 0,!n.browser){J.next=31;break}return J.t2=h,J.next=27,P.async("nodebuffer");case 27:J.t3=J.sent,Y=(0,J.t2)(J.t3),J.next=34;break;case 31:return J.next=33,P.async("string");case 33:Y=J.sent;case 34:for(dt=16384,gt=0;gt<Y.length;gt+=dt)Z.write(Y.substring(gt,gt+dt));case 36:Z.end(),J.t4=H,J.next=J.t4==="_rels/.rels"?40:J.t4==="xl/workbook.xml"?44:J.t4==="xl/_rels/workbook.xml.rels"?53:J.t4==="xl/sharedStrings.xml"?57:J.t4==="xl/styles.xml"?61:J.t4==="docProps/app.xml"?65:J.t4==="docProps/core.xml"?72:78;break;case 40:return J.next=42,this.parseRels(Z);case 42:return R.globalRels=J.sent,J.abrupt("break",123);case 44:return J.next=46,this.parseWorkbook(Z);case 46:return bt=J.sent,R.sheets=bt.sheets,R.definedNames=bt.definedNames,R.views=bt.views,R.properties=bt.properties,R.calcProperties=bt.calcProperties,J.abrupt("break",123);case 53:return J.next=55,this.parseRels(Z);case 55:return R.workbookRels=J.sent,J.abrupt("break",123);case 57:return R.sharedStrings=new m,J.next=60,R.sharedStrings.parseStream(Z);case 60:return J.abrupt("break",123);case 61:return R.styles=new d,J.next=64,R.styles.parseStream(Z);case 64:return J.abrupt("break",123);case 65:return Q=new g,J.next=68,Q.parseStream(Z);case 68:return q=J.sent,R.company=q.company,R.manager=q.manager,J.abrupt("break",123);case 72:return tt=new p,J.next=75,tt.parseStream(Z);case 75:return et=J.sent,Object.assign(R,et),J.abrupt("break",123);case 78:if(!(_t=H.match(/xl\/worksheets\/sheet(\d+)[.]xml/))){J.next=83;break}return J.next=82,this._processWorksheetEntry(Z,R,_t[1],E,H);case 82:return J.abrupt("break",123);case 83:if(!(_t=H.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/))){J.next=88;break}return J.next=87,this._processWorksheetRelsEntry(Z,R,_t[1]);case 87:return J.abrupt("break",123);case 88:if(!(_t=H.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))){J.next=93;break}return J.next=92,this._processThemeEntry(Z,R,_t[1]);case 92:return J.abrupt("break",123);case 93:if(!(_t=H.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/))){J.next=98;break}return J.next=97,this._processMediaEntry(Z,R,_t[1]);case 97:return J.abrupt("break",123);case 98:if(!(_t=H.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/))){J.next=103;break}return J.next=102,this._processDrawingEntry(Z,R,_t[1]);case 102:return J.abrupt("break",123);case 103:if(!(_t=H.match(/xl\/(comments\d+)[.]xml/))){J.next=108;break}return J.next=107,this._processCommentEntry(Z,R,_t[1]);case 107:return J.abrupt("break",123);case 108:if(!(_t=H.match(/xl\/tables\/(table\d+)[.]xml/))){J.next=113;break}return J.next=112,this._processTableEntry(Z,R,_t[1]);case 112:return J.abrupt("break",123);case 113:if(!(_t=H.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/))){J.next=118;break}return J.next=117,this._processDrawingRelsEntry(Z,R,_t[1]);case 117:return J.abrupt("break",123);case 118:if(!(_t=H.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/))){J.next=123;break}return J.next=122,this._processVmlDrawingEntry(Z,R,_t[1]);case 122:return J.abrupt("break",123);case 123:I++,J.next=6;break;case 126:return this.reconcile(R,E),this.workbook.model=R,J.abrupt("return",this.workbook);case 129:case"end":return J.stop()}},k,this)}));function N(k,S){return A.apply(this,arguments)}return N}()},{key:"addMedia",value:function(){var A=xr(Ne.mark(function k(S,E){return Ne.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,Promise.all(E.media.map(function(){var R=xr(Ne.mark(function F(I){var B,P,H,Z;return Ne.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(I.type!=="image"){Y.next=13;break}if(B="xl/media/".concat(I.name,".").concat(I.extension),!I.filename){Y.next=7;break}return Y.next=5,U(I.filename);case 5:return P=Y.sent,Y.abrupt("return",S.append(P,{name:B}));case 7:if(!I.buffer){Y.next=9;break}return Y.abrupt("return",S.append(I.buffer,{name:B}));case 9:if(!I.base64){Y.next=13;break}return H=I.base64,Z=H.substring(H.indexOf(",")+1),Y.abrupt("return",S.append(Z,{name:B,base64:!0}));case 13:throw new Error("Unsupported media");case 14:case"end":return Y.stop()}},F)}));return function(F){return R.apply(this,arguments)}}()));case 2:case"end":return T.stop()}},k)}));function N(k,S){return A.apply(this,arguments)}return N}()},{key:"addDrawings",value:function(A,N){var k=new x,S=new v;N.worksheets.forEach(function(E){var T=E.drawing;if(T){k.prepare(T,{});var R=k.toXml(T);A.append(R,{name:"xl/drawings/".concat(T.name,".xml")}),R=S.toXml(T.rels),A.append(R,{name:"xl/drawings/_rels/".concat(T.name,".xml.rels")})}})}},{key:"addTables",value:function(A,N){var k=new C;N.worksheets.forEach(function(S){S.tables.forEach(function(E){k.prepare(E,{});var T=k.toXml(E);A.append(T,{name:"xl/tables/".concat(E.target)})})})}},{key:"addContentTypes",value:function(){var A=xr(Ne.mark(function k(S,E){var T,R;return Ne.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:T=new b,R=T.toXml(E),S.append(R,{name:"[Content_Types].xml"});case 3:case"end":return F.stop()}},k)}));function N(k,S){return A.apply(this,arguments)}return N}()},{key:"addApp",value:function(){var A=xr(Ne.mark(function k(S,E){var T,R;return Ne.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:T=new g,R=T.toXml(E),S.append(R,{name:"docProps/app.xml"});case 3:case"end":return F.stop()}},k)}));function N(k,S){return A.apply(this,arguments)}return N}()},{key:"addCore",value:function(){var A=xr(Ne.mark(function k(S,E){var T;return Ne.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:T=new p,S.append(T.toXml(E),{name:"docProps/core.xml"});case 2:case"end":return R.stop()}},k)}));function N(k,S){return A.apply(this,arguments)}return N}()},{key:"addThemes",value:function(){var A=xr(Ne.mark(function k(S,E){var T;return Ne.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:T=E.themes||{theme1:j},Object.keys(T).forEach(function(F){var I=T[F],B="xl/theme/".concat(F,".xml");S.append(I,{name:B})});case 2:case"end":return R.stop()}},k)}));function N(k,S){return A.apply(this,arguments)}return N}()},{key:"addOfficeRels",value:function(){var A=xr(Ne.mark(function k(S){var E,T;return Ne.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:E=new v,T=E.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"}]),S.append(T,{name:"_rels/.rels"});case 3:case"end":return R.stop()}},k)}));function N(k){return A.apply(this,arguments)}return N}()},{key:"addWorkbookRels",value:function(){var A=xr(Ne.mark(function k(S,E){var T,R,F,I;return Ne.wrap(function(B){for(;;)switch(B.prev=B.next){case 0:T=1,R=[{Id:"rId".concat(T++),Type:V.RelType.Styles,Target:"styles.xml"},{Id:"rId".concat(T++),Type:V.RelType.Theme,Target:"theme/theme1.xml"}],E.sharedStrings.count&&R.push({Id:"rId".concat(T++),Type:V.RelType.SharedStrings,Target:"sharedStrings.xml"}),E.worksheets.forEach(function(P){P.rId="rId".concat(T++),R.push({Id:P.rId,Type:V.RelType.Worksheet,Target:"worksheets/sheet".concat(P.id,".xml")})}),F=new v,I=F.toXml(R),S.append(I,{name:"xl/_rels/workbook.xml.rels"});case 7:case"end":return B.stop()}},k)}));function N(k,S){return A.apply(this,arguments)}return N}()},{key:"addSharedStrings",value:function(){var A=xr(Ne.mark(function k(S,E){return Ne.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:E.sharedStrings&&E.sharedStrings.count&&S.append(E.sharedStrings.xml,{name:"xl/sharedStrings.xml"});case 1:case"end":return T.stop()}},k)}));function N(k,S){return A.apply(this,arguments)}return N}()},{key:"addStyles",value:function(){var A=xr(Ne.mark(function k(S,E){var T;return Ne.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:(T=E.styles.xml)&&S.append(T,{name:"xl/styles.xml"});case 2:case"end":return R.stop()}},k)}));function N(k,S){return A.apply(this,arguments)}return N}()},{key:"addWorkbook",value:function(){var A=xr(Ne.mark(function k(S,E){var T;return Ne.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:T=new y,S.append(T.toXml(E),{name:"xl/workbook.xml"});case 2:case"end":return R.stop()}},k)}));function N(k,S){return A.apply(this,arguments)}return N}()},{key:"addWorksheets",value:function(){var A=xr(Ne.mark(function k(S,E){var T,R,F,I;return Ne.wrap(function(B){for(;;)switch(B.prev=B.next){case 0:T=new w,R=new v,F=new O,I=new D,E.worksheets.forEach(function(P){var H=new f;T.render(H,P),S.append(H.xml,{name:"xl/worksheets/sheet".concat(P.id,".xml")}),P.rels&&P.rels.length&&(H=new f,R.render(H,P.rels),S.append(H.xml,{name:"xl/worksheets/_rels/sheet".concat(P.id,".xml.rels")})),P.comments.length>0&&(H=new f,F.render(H,P),S.append(H.xml,{name:"xl/comments".concat(P.id,".xml")}),H=new f,I.render(H,P),S.append(H.xml,{name:"xl/drawings/vmlDrawing".concat(P.id,".vml")}))});case 5:case"end":return B.stop()}},k)}));function N(k,S){return A.apply(this,arguments)}return N}()},{key:"_finalize",value:function(A){var N=this;return new Promise(function(k,S){A.on("finish",function(){k(N)}),A.on("error",S),A.finalize()})}},{key:"prepareModel",value:function(A,N){A.creator=A.creator||"ExcelJS",A.lastModifiedBy=A.lastModifiedBy||"ExcelJS",A.created=A.created||new Date,A.modified=A.modified||new Date,A.useSharedStrings=N.useSharedStrings===void 0||N.useSharedStrings,A.useStyles=N.useStyles===void 0||N.useStyles,A.sharedStrings=new m,A.styles=A.useStyles?new d(!0):new d.Mock;var k=new y,S=new w;k.prepare(A);var E={sharedStrings:A.sharedStrings,styles:A.styles,date1904:A.properties.date1904,drawingsCount:0,media:A.media};E.drawings=A.drawings=[],E.commentRefs=A.commentRefs=[];var T=0;A.tables=[],A.worksheets.forEach(function(R){R.tables.forEach(function(F){T++,F.target="table".concat(T,".xml"),F.id=T,A.tables.push(F)}),S.prepare(R,E)})}},{key:"write",value:function(){var A=xr(Ne.mark(function k(S,E){var T,R;return Ne.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return E=E||{},T=this.workbook.model,(R=new c.ZipWriter(E.zip)).pipe(S),this.prepareModel(T,E),F.next=7,this.addContentTypes(R,T);case 7:return F.next=9,this.addOfficeRels(R,T);case 9:return F.next=11,this.addWorkbookRels(R,T);case 11:return F.next=13,this.addWorksheets(R,T);case 13:return F.next=15,this.addSharedStrings(R,T);case 15:return F.next=17,this.addDrawings(R,T);case 17:return F.next=19,this.addTables(R,T);case 19:return F.next=21,Promise.all([this.addThemes(R,T),this.addStyles(R,T)]);case 21:return F.next=23,this.addMedia(R,T);case 23:return F.next=25,Promise.all([this.addApp(R,T),this.addCore(R,T)]);case 25:return F.next=27,this.addWorkbook(R,T);case 27:return F.abrupt("return",this._finalize(R));case 28:case"end":return F.stop()}},k,this)}));function N(k,S){return A.apply(this,arguments)}return N}()},{key:"writeFile",value:function(A,N){var k=this,S=o.createWriteStream(A);return new Promise(function(E,T){S.on("finish",function(){E()}),S.on("error",function(R){T(R)}),k.write(S,N).then(function(){S.end()}).catch(function(R){T(R)})})}},{key:"writeBuffer",value:function(){var A=xr(Ne.mark(function k(S){var E;return Ne.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return E=new l,T.next=3,this.write(E,S);case 3:return T.abrupt("return",E.read());case 4:case"end":return T.stop()}},k,this)}));function N(k){return A.apply(this,arguments)}return N}()}]),V}();L.RelType=t("./rel-type"),r.exports=L}).call(this)}).call(this,t("_process"),t("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(t,r,e){r.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(t,r,e){(function(n){(function(){Object.defineProperty(e,"__esModule",{value:!0}),e.CsvFormatterStream=void 0;var a=t("stream"),o=t("./formatter"),s=function(i){Ht(l,i);var c=Qt(l);function l(u){var f;return At(this,l),(f=c.call(this,{writableObjectMode:u.objectMode})).hasWrittenBOM=!1,f.formatterOptions=u,f.rowFormatter=new o.RowFormatter(u),f.hasWrittenBOM=!u.writeBOM,f}return Rt(l,[{key:"transform",value:function(u){return this.rowFormatter.rowTransform=u,this}},{key:"_transform",value:function(u,f,h){var d=this,p=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(u,function(m,v){return m?(p=!0,h(m)):(v&&v.forEach(function(b){d.push(n.from(b,"utf8"))}),p=!0,h())})}catch(m){if(p)throw m;h(m)}}},{key:"_flush",value:function(u){var f=this;this.rowFormatter.finish(function(h,d){return h?u(h):(d&&d.forEach(function(p){f.push(n.from(p,"utf8"))}),u())})}}]),l}(a.Transform);e.CsvFormatterStream=s}).call(this)}).call(this,t("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.FormatterOptions=void 0;var n=Rt(function a(){At(this,a);var o,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.objectMode=!0,this.delimiter=",",this.rowDelimiter=`
|
||
`,this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\uFEFF",this.alwaysWriteHeaders=!1,Object.assign(this,s||{}),(s==null?void 0:s.quoteHeaders)===void 0&&(this.quoteHeaders=this.quoteColumns),(s==null?void 0:s.quote)===!0?this.quote='"':(s==null?void 0:s.quote)===!1&&(this.quote=""),typeof(s==null?void 0:s.escape)!="string"&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((o=s.writeHeaders)===null||o===void 0||o),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote="".concat(this.escape).concat(this.quote)});e.FormatterOptions=n},{}],148:[function(t,r,e){var n=function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.FieldFormatter=void 0;var a=n(t("lodash.isboolean")),o=n(t("lodash.isnil")),s=n(t("lodash.escaperegexp")),i=function(){function c(l){At(this,c),this._headers=null,this.formatterOptions=l,l.headers!==null&&(this.headers=l.headers),this.REPLACE_REGEXP=new RegExp(l.quote,"g");var u="[".concat(l.delimiter).concat(s.default(l.rowDelimiter),`|\r|
|
||
]`);this.ESCAPE_REGEXP=new RegExp(u)}return Rt(c,[{key:"headers",set:function(l){this._headers=l}},{key:"shouldQuote",value:function(l,u){var f=u?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return a.default(f)?f:Array.isArray(f)?f[l]:this._headers!==null&&f[this._headers[l]]}},{key:"format",value:function(l,u,f){var h="".concat(o.default(l)?"":l).replace(/\0/g,""),d=this.formatterOptions;return d.quote!==""&&h.indexOf(d.quote)!==-1?this.quoteField(h.replace(this.REPLACE_REGEXP,d.escapedQuote)):h.search(this.ESCAPE_REGEXP)!==-1||this.shouldQuote(u,f)?this.quoteField(h):h}},{key:"quoteField",value:function(l){var u=this.formatterOptions.quote;return"".concat(u).concat(l).concat(u)}}]),c}();e.FieldFormatter=i},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(t,r,e){var n=function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.RowFormatter=void 0;var a=n(t("lodash.isfunction")),o=n(t("lodash.isequal")),s=t("./FieldFormatter"),i=t("../types"),c=function(){function l(u){At(this,l),this.rowCount=0,this.formatterOptions=u,this.fieldFormatter=new s.FieldFormatter(u),this.headers=u.headers,this.shouldWriteHeaders=u.shouldWriteHeaders,this.hasWrittenHeaders=!1,this.headers!==null&&(this.fieldFormatter.headers=this.headers),u.transform&&(this.rowTransform=u.transform)}return Rt(l,[{key:"rowTransform",set:function(u){if(!a.default(u))throw new TypeError("The transform should be a function");this._rowTransform=l.createTransform(u)}},{key:"format",value:function(u,f){var h=this;this.callTransformer(u,function(d,p){if(d)return f(d);if(!u)return f(null);var m=[];if(p){var v=h.checkHeaders(p),b=v.shouldFormatColumns,g=v.headers;if(h.shouldWriteHeaders&&g&&!h.hasWrittenHeaders&&(m.push(h.formatColumns(g,!0)),h.hasWrittenHeaders=!0),b){var y=h.gatherColumns(p);m.push(h.formatColumns(y,!1))}}return f(null,m)})}},{key:"finish",value:function(u){var f=[];if(this.formatterOptions.alwaysWriteHeaders&&this.rowCount===0){if(!this.headers)return u(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));f.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&f.push(this.formatterOptions.rowDelimiter),u(null,f)}},{key:"checkHeaders",value:function(u){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};var f=l.gatherHeaders(u);return this.headers=f,this.fieldFormatter.headers=f,this.shouldWriteHeaders?{shouldFormatColumns:!o.default(f,u),headers:f}:{shouldFormatColumns:!0,headers:null}}},{key:"gatherColumns",value:function(u){if(this.headers===null)throw new Error("Headers is currently null");return Array.isArray(u)?l.isRowHashArray(u)?this.headers.map(function(f,h){var d=u[h];return d?d[1]:""}):l.isRowArray(u)&&!this.shouldWriteHeaders?u:this.headers.map(function(f,h){return u[h]}):this.headers.map(function(f){return u[f]})}},{key:"callTransformer",value:function(u,f){return this._rowTransform?this._rowTransform(u,f):f(null,u)}},{key:"formatColumns",value:function(u,f){var h=this,d=u.map(function(m,v){return h.fieldFormatter.format(m,v,f)}).join(this.formatterOptions.delimiter),p=this.rowCount;return this.rowCount+=1,p?[this.formatterOptions.rowDelimiter,d].join(""):d}}],[{key:"isRowHashArray",value:function(u){return!!Array.isArray(u)&&Array.isArray(u[0])&&u[0].length===2}},{key:"isRowArray",value:function(u){return Array.isArray(u)&&!this.isRowHashArray(u)}},{key:"gatherHeaders",value:function(u){return l.isRowHashArray(u)?u.map(function(f){return f[0]}):Array.isArray(u)?u:Object.keys(u)}},{key:"createTransform",value:function(u){return i.isSyncTransform(u)?function(f,h){var d=null;try{d=u(f)}catch(p){return h(p)}return h(null,d)}:function(f,h){u(f,h)}}}]),l}();e.RowFormatter=c},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.FieldFormatter=e.RowFormatter=void 0;var n=t("./RowFormatter");Object.defineProperty(e,"RowFormatter",{enumerable:!0,get:function(){return n.RowFormatter}});var a=t("./FieldFormatter");Object.defineProperty(e,"FieldFormatter",{enumerable:!0,get:function(){return a.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(t,r,e){(function(n){(function(){var a=Object.create?function(m,v,b,g){g===void 0&&(g=b),Object.defineProperty(m,g,{enumerable:!0,get:function(){return v[b]}})}:function(m,v,b,g){g===void 0&&(g=b),m[g]=v[b]},o=Object.create?function(m,v){Object.defineProperty(m,"default",{enumerable:!0,value:v})}:function(m,v){m.default=v},s=function(m){if(m&&m.__esModule)return m;var v={};if(m!=null)for(var b in m)b!=="default"&&Object.prototype.hasOwnProperty.call(m,b)&&a(v,m,b);return o(v,m),v},i=function(m,v){for(var b in m)b==="default"||Object.prototype.hasOwnProperty.call(v,b)||a(v,m,b)};Object.defineProperty(e,"__esModule",{value:!0}),e.writeToPath=e.writeToString=e.writeToBuffer=e.writeToStream=e.write=e.format=e.FormatterOptions=e.CsvFormatterStream=void 0;var c=t("util"),l=t("stream"),u=s(t("fs")),f=t("./FormatterOptions"),h=t("./CsvFormatterStream");i(t("./types"),e);var d=t("./CsvFormatterStream");Object.defineProperty(e,"CsvFormatterStream",{enumerable:!0,get:function(){return d.CsvFormatterStream}});var p=t("./FormatterOptions");Object.defineProperty(e,"FormatterOptions",{enumerable:!0,get:function(){return p.FormatterOptions}}),e.format=function(m){return new h.CsvFormatterStream(new f.FormatterOptions(m))},e.write=function(m,v){var b=e.format(v),g=c.promisify(function(y,w){b.write(y,void 0,w)});return m.reduce(function(y,w){return y.then(function(){return g(w)})},Promise.resolve()).then(function(){return b.end()}).catch(function(y){b.emit("error",y)}),b},e.writeToStream=function(m,v,b){return e.write(v,b).pipe(m)},e.writeToBuffer=function(m){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=[],g=new l.Writable({write:function(y,w,x){b.push(y),x()}});return new Promise(function(y,w){g.on("error",w).on("finish",function(){return y(n.concat(b))}),e.write(m,v).pipe(g)})},e.writeToString=function(m,v){return e.writeToBuffer(m,v).then(function(b){return b.toString()})},e.writeToPath=function(m,v,b){var g=u.createWriteStream(m,{encoding:"utf8"});return e.write(v,b).pipe(g)}}).call(this)}).call(this,t("buffer").Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.isSyncTransform=void 0,e.isSyncTransform=function(n){return n.length===1}},{}],153:[function(t,r,e){(function(n){(function(){Object.defineProperty(e,"__esModule",{value:!0}),e.CsvParserStream=void 0;var a=t("string_decoder"),o=t("stream"),s=t("./transforms"),i=t("./parser"),c=function(l){Ht(f,l);var u=Qt(f);function f(h){var d;return At(this,f),(d=u.call(this,{objectMode:h.objectMode})).lines="",d.rowCount=0,d.parsedRowCount=0,d.parsedLineCount=0,d.endEmitted=!1,d.headersEmitted=!1,d.parserOptions=h,d.parser=new i.Parser(h),d.headerTransformer=new s.HeaderTransformer(h),d.decoder=new a.StringDecoder(h.encoding),d.rowTransformerValidator=new s.RowTransformerValidator,d}return Rt(f,[{key:"hasHitRowLimit",get:function(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}},{key:"shouldEmitRows",get:function(){return this.parsedRowCount>this.parserOptions.skipRows}},{key:"shouldSkipLine",get:function(){return this.parsedLineCount<=this.parserOptions.skipLines}},{key:"transform",value:function(h){return this.rowTransformerValidator.rowTransform=h,this}},{key:"validate",value:function(h){return this.rowTransformerValidator.rowValidator=h,this}},{key:"emit",value:function(h){var d;if(h==="end")return this.endEmitted||(this.endEmitted=!0,As(be(f.prototype),"emit",this).call(this,"end",this.rowCount)),!1;for(var p=arguments.length,m=new Array(p>1?p-1:0),v=1;v<p;v++)m[v-1]=arguments[v];return(d=As(be(f.prototype),"emit",this)).call.apply(d,[this,h].concat(m))}},{key:"_transform",value:function(h,d,p){if(this.hasHitRowLimit)return p();var m=f.wrapDoneCallback(p);try{var v=this.lines+this.decoder.write(h),b=this.parse(v,!0);return this.processRows(b,m)}catch(g){return m(g)}}},{key:"_flush",value:function(h){var d=f.wrapDoneCallback(h);if(this.hasHitRowLimit)return d();try{var p=this.lines+this.decoder.end(),m=this.parse(p,!1);return this.processRows(m,d)}catch(v){return d(v)}}},{key:"parse",value:function(h,d){if(!h)return[];var p=this.parser.parse(h,d),m=p.line,v=p.rows;return this.lines=m,v}},{key:"processRows",value:function(h,d){var p=this,m=h.length;(function v(b){var g=function(x){return x?d(x):b%100!=0?v(b+1):void n(function(){return v(b+1)})};if(p.checkAndEmitHeaders(),b>=m||p.hasHitRowLimit)return d();if(p.parsedLineCount+=1,p.shouldSkipLine)return g();var y=h[b];p.rowCount+=1,p.parsedRowCount+=1;var w=p.rowCount;return p.transformRow(y,function(x,C){if(x)return p.rowCount-=1,g(x);if(!C)return g(new Error("expected transform result"));if(C.isValid){if(C.row)return p.pushRow(C.row,g)}else p.emit("data-invalid",C.row,w,C.reason);return g()})})(0)}},{key:"transformRow",value:function(h,d){var p=this;try{this.headerTransformer.transform(h,function(m,v){return m?d(m):v?v.isValid?v.row?p.shouldEmitRows?p.rowTransformerValidator.transformAndValidate(v.row,d):p.skipRow(d):(p.rowCount-=1,p.parsedRowCount-=1,d(null,{row:null,isValid:!0})):p.shouldEmitRows?d(null,{isValid:!1,row:h}):p.skipRow(d):d(new Error("Expected result from header transform"))})}catch(m){d(m)}}},{key:"checkAndEmitHeaders",value:function(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}},{key:"skipRow",value:function(h){return this.rowCount-=1,h(null,{row:null,isValid:!0})}},{key:"pushRow",value:function(h,d){try{this.parserOptions.objectMode?this.push(h):this.push(JSON.stringify(h)),d()}catch(p){d(p)}}}],[{key:"wrapDoneCallback",value:function(h){var d=!1;return function(p){if(p){if(d)throw p;return d=!0,void h(p)}for(var m=arguments.length,v=new Array(m>1?m-1:0),b=1;b<m;b++)v[b-1]=arguments[b];h.apply(void 0,v)}}}]),f}(o.Transform);e.CsvParserStream=c}).call(this)}).call(this,t("timers").setImmediate)},{"./parser":165,"./transforms":168,stream:505,string_decoder:218,timers:523}],154:[function(t,r,e){var n=function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParserOptions=void 0;var a=n(t("lodash.escaperegexp")),o=n(t("lodash.isnil")),s=Rt(function i(c){var l;if(At(this,i),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,c||{}),this.delimiter.length>1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=a.default(this.delimiter),this.escapeChar=(l=this.escape)!==null&&l!==void 0?l:this.quote,this.supportsComments=!o.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp("([^\\s]|\\r\\n|\\n|\\r|".concat(this.escapedDelimiter,")")),this.maxRows>0&&(this.limitRows=!0)});e.ParserOptions=s},{"lodash.escaperegexp":442,"lodash.isnil":447}],155:[function(t,r,e){var n=Object.create?function(d,p,m,v){v===void 0&&(v=m),Object.defineProperty(d,v,{enumerable:!0,get:function(){return p[m]}})}:function(d,p,m,v){v===void 0&&(v=m),d[v]=p[m]},a=Object.create?function(d,p){Object.defineProperty(d,"default",{enumerable:!0,value:p})}:function(d,p){d.default=p},o=function(d){if(d&&d.__esModule)return d;var p={};if(d!=null)for(var m in d)m!=="default"&&Object.prototype.hasOwnProperty.call(d,m)&&n(p,d,m);return a(p,d),p},s=function(d,p){for(var m in d)m==="default"||Object.prototype.hasOwnProperty.call(p,m)||n(p,d,m)};Object.defineProperty(e,"__esModule",{value:!0}),e.parseString=e.parseFile=e.parseStream=e.parse=e.ParserOptions=e.CsvParserStream=void 0;var i=o(t("fs")),c=t("stream"),l=t("./ParserOptions"),u=t("./CsvParserStream");s(t("./types"),e);var f=t("./CsvParserStream");Object.defineProperty(e,"CsvParserStream",{enumerable:!0,get:function(){return f.CsvParserStream}});var h=t("./ParserOptions");Object.defineProperty(e,"ParserOptions",{enumerable:!0,get:function(){return h.ParserOptions}}),e.parse=function(d){return new u.CsvParserStream(new l.ParserOptions(d))},e.parseStream=function(d,p){return d.pipe(new u.CsvParserStream(new l.ParserOptions(p)))},e.parseFile=function(d){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i.createReadStream(d).pipe(new u.CsvParserStream(new l.ParserOptions(p)))},e.parseString=function(d,p){var m=new c.Readable;return m.push(d),m.push(null),m.pipe(new u.CsvParserStream(new l.ParserOptions(p)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Parser=void 0;var n=t("./Scanner"),a=t("./RowParser"),o=t("./Token"),s=function(){function i(c){At(this,i),this.parserOptions=c,this.rowParser=new a.RowParser(this.parserOptions)}return Rt(i,[{key:"parse",value:function(c,l){var u=new n.Scanner({line:i.removeBOM(c),parserOptions:this.parserOptions,hasMoreData:l});return this.parserOptions.supportsComments?this.parseWithComments(u):this.parseWithoutComments(u)}},{key:"parseWithoutComments",value:function(c){for(var l=[],u=!0;u;)u=this.parseRow(c,l);return{line:c.line,rows:l}}},{key:"parseWithComments",value:function(c){for(var l=this.parserOptions,u=[],f=c.nextCharacterToken;f!==null;f=c.nextCharacterToken)if(o.Token.isTokenComment(f,l)){if(c.advancePastLine()===null)return{line:c.lineFromCursor,rows:u};if(!c.hasMoreCharacters)return{line:c.lineFromCursor,rows:u};c.truncateToCursor()}else if(!this.parseRow(c,u))break;return{line:c.line,rows:u}}},{key:"parseRow",value:function(c,l){if(!c.nextNonSpaceToken)return!1;var u=this.rowParser.parse(c);return u!==null&&(this.parserOptions.ignoreEmpty&&a.RowParser.isEmptyRow(u)||l.push(u),!0)}}],[{key:"removeBOM",value:function(c){return c&&c.charCodeAt(0)===65279?c.slice(1):c}}]),i}();e.Parser=s},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.RowParser=void 0;var n=t("./column"),a=t("./Token"),o="",s=function(){function i(c){At(this,i),this.parserOptions=c,this.columnParser=new n.ColumnParser(c)}return Rt(i,[{key:"parse",value:function(c){for(var l=this.parserOptions,u=c.hasMoreData,f=c,h=[],d=this.getStartToken(f,h);d;){if(a.Token.isTokenRowDelimiter(d))return f.advancePastToken(d),!f.hasMoreCharacters&&a.Token.isTokenCarriageReturn(d,l)&&u?null:(f.truncateToCursor(),h);if(!this.shouldSkipColumnParse(f,d,h)){var p=this.columnParser.parse(f);if(p===null)return null;h.push(p)}d=f.nextNonSpaceToken}return u?null:(f.truncateToCursor(),h)}},{key:"getStartToken",value:function(c,l){var u=c.nextNonSpaceToken;return u!==null&&a.Token.isTokenDelimiter(u,this.parserOptions)?(l.push(""),c.nextNonSpaceToken):u}},{key:"shouldSkipColumnParse",value:function(c,l,u){var f=this.parserOptions;if(a.Token.isTokenDelimiter(l,f)){c.advancePastToken(l);var h=c.nextCharacterToken;if(!c.hasMoreCharacters||h!==null&&a.Token.isTokenRowDelimiter(h)||h!==null&&a.Token.isTokenDelimiter(h,f))return u.push(""),!0}return!1}}],[{key:"isEmptyRow",value:function(c){return c.join(o).replace(/\s+/g,o)===o}}]),i}();e.RowParser=s},{"./Token":159,"./column":164}],158:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scanner=void 0;var n=t("./Token"),a=/((?:\r\n)|\n|\r)/,o=function(){function s(i){At(this,s),this.cursor=0,this.line=i.line,this.lineLength=this.line.length,this.parserOptions=i.parserOptions,this.hasMoreData=i.hasMoreData,this.cursor=i.cursor||0}return Rt(s,[{key:"hasMoreCharacters",get:function(){return this.lineLength>this.cursor}},{key:"nextNonSpaceToken",get:function(){var i=this.lineFromCursor,c=this.parserOptions.NEXT_TOKEN_REGEXP;if(i.search(c)===-1)return null;var l=c.exec(i);if(l==null)return null;var u=l[1],f=this.cursor+(l.index||0);return new n.Token({token:u,startCursor:f,endCursor:f+u.length-1})}},{key:"nextCharacterToken",get:function(){var i=this.cursor;return this.lineLength<=i?null:new n.Token({token:this.line[i],startCursor:i,endCursor:i})}},{key:"lineFromCursor",get:function(){return this.line.substr(this.cursor)}},{key:"advancePastLine",value:function(){var i=a.exec(this.lineFromCursor);return i?(this.cursor+=(i.index||0)+i[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}},{key:"advanceTo",value:function(i){return this.cursor=i,this}},{key:"advanceToToken",value:function(i){return this.cursor=i.startCursor,this}},{key:"advancePastToken",value:function(i){return this.cursor=i.endCursor+1,this}},{key:"truncateToCursor",value:function(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}]),s}();e.Scanner=o},{"./Token":159}],159:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Token=void 0;var n=function(){function a(o){At(this,a),this.token=o.token,this.startCursor=o.startCursor,this.endCursor=o.endCursor}return Rt(a,null,[{key:"isTokenRowDelimiter",value:function(o){var s=o.token;return s==="\r"||s===`
|
||
`||s===`\r
|
||
`}},{key:"isTokenCarriageReturn",value:function(o,s){return o.token===s.carriageReturn}},{key:"isTokenComment",value:function(o,s){return s.supportsComments&&!!o&&o.token===s.comment}},{key:"isTokenEscapeCharacter",value:function(o,s){return o.token===s.escapeChar}},{key:"isTokenQuote",value:function(o,s){return o.token===s.quote}},{key:"isTokenDelimiter",value:function(o,s){return o.token===s.delimiter}}]),a}();e.Token=n},{}],160:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ColumnFormatter=void 0;var n=Rt(function a(o){At(this,a),o.trim?this.format=function(s){return s.trim()}:o.ltrim?this.format=function(s){return s.trimLeft()}:o.rtrim?this.format=function(s){return s.trimRight()}:this.format=function(s){return s}});e.ColumnFormatter=n},{}],161:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ColumnParser=void 0;var n=t("./NonQuotedColumnParser"),a=t("./QuotedColumnParser"),o=t("../Token"),s=function(){function i(c){At(this,i),this.parserOptions=c,this.quotedColumnParser=new a.QuotedColumnParser(c),this.nonQuotedColumnParser=new n.NonQuotedColumnParser(c)}return Rt(i,[{key:"parse",value:function(c){var l=c.nextNonSpaceToken;return l!==null&&o.Token.isTokenQuote(l,this.parserOptions)?(c.advanceToToken(l),this.quotedColumnParser.parse(c)):this.nonQuotedColumnParser.parse(c)}}]),i}();e.ColumnParser=s},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.NonQuotedColumnParser=void 0;var n=t("./ColumnFormatter"),a=t("../Token"),o=function(){function s(i){At(this,s),this.parserOptions=i,this.columnFormatter=new n.ColumnFormatter(i)}return Rt(s,[{key:"parse",value:function(i){if(!i.hasMoreCharacters)return null;for(var c=this.parserOptions,l=[],u=i.nextCharacterToken;u&&!a.Token.isTokenDelimiter(u,c)&&!a.Token.isTokenRowDelimiter(u);u=i.nextCharacterToken)l.push(u.token),i.advancePastToken(u);return this.columnFormatter.format(l.join(""))}}]),s}();e.NonQuotedColumnParser=o},{"../Token":159,"./ColumnFormatter":160}],163:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.QuotedColumnParser=void 0;var n=t("./ColumnFormatter"),a=t("../Token"),o=function(){function s(i){At(this,s),this.parserOptions=i,this.columnFormatter=new n.ColumnFormatter(i)}return Rt(s,[{key:"parse",value:function(i){if(!i.hasMoreCharacters)return null;var c=i.cursor,l=this.gatherDataBetweenQuotes(i),u=l.foundClosingQuote,f=l.col;if(!u){if(i.advanceTo(c),!i.hasMoreData)throw new Error("Parse Error: missing closing: '".concat(this.parserOptions.quote||"","' in line: at '").concat(i.lineFromCursor.replace(/[\r\n]/g,"\\n'"),"'"));return null}return this.checkForMalformedColumn(i),f}},{key:"gatherDataBetweenQuotes",value:function(i){for(var c=this.parserOptions,l=!1,u=!1,f=[],h=i.nextCharacterToken;!u&&h!==null;h=i.nextCharacterToken){var d=a.Token.isTokenQuote(h,c);if(!l&&d)l=!0;else if(l)if(a.Token.isTokenEscapeCharacter(h,c)){i.advancePastToken(h);var p=i.nextCharacterToken;p!==null&&(a.Token.isTokenQuote(p,c)||a.Token.isTokenEscapeCharacter(p,c))?(f.push(p.token),h=p):d?u=!0:f.push(h.token)}else d?u=!0:f.push(h.token);i.advancePastToken(h)}return{col:this.columnFormatter.format(f.join("")),foundClosingQuote:u}}},{key:"checkForMalformedColumn",value:function(i){var c=this.parserOptions,l=i.nextNonSpaceToken;if(l){var u=a.Token.isTokenDelimiter(l,c),f=a.Token.isTokenRowDelimiter(l);if(!u&&!f){var h=i.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error("Parse Error: expected: '".concat(c.escapedDelimiter,"' OR new line got: '").concat(l.token,"'. at '").concat(h))}i.advanceToToken(l)}else i.hasMoreData||i.advancePastLine()}}]),s}();e.QuotedColumnParser=o},{"../Token":159,"./ColumnFormatter":160}],164:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ColumnFormatter=e.QuotedColumnParser=e.NonQuotedColumnParser=e.ColumnParser=void 0;var n=t("./ColumnParser");Object.defineProperty(e,"ColumnParser",{enumerable:!0,get:function(){return n.ColumnParser}});var a=t("./NonQuotedColumnParser");Object.defineProperty(e,"NonQuotedColumnParser",{enumerable:!0,get:function(){return a.NonQuotedColumnParser}});var o=t("./QuotedColumnParser");Object.defineProperty(e,"QuotedColumnParser",{enumerable:!0,get:function(){return o.QuotedColumnParser}});var s=t("./ColumnFormatter");Object.defineProperty(e,"ColumnFormatter",{enumerable:!0,get:function(){return s.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.QuotedColumnParser=e.NonQuotedColumnParser=e.ColumnParser=e.Token=e.Scanner=e.RowParser=e.Parser=void 0;var n=t("./Parser");Object.defineProperty(e,"Parser",{enumerable:!0,get:function(){return n.Parser}});var a=t("./RowParser");Object.defineProperty(e,"RowParser",{enumerable:!0,get:function(){return a.RowParser}});var o=t("./Scanner");Object.defineProperty(e,"Scanner",{enumerable:!0,get:function(){return o.Scanner}});var s=t("./Token");Object.defineProperty(e,"Token",{enumerable:!0,get:function(){return s.Token}});var i=t("./column");Object.defineProperty(e,"ColumnParser",{enumerable:!0,get:function(){return i.ColumnParser}}),Object.defineProperty(e,"NonQuotedColumnParser",{enumerable:!0,get:function(){return i.NonQuotedColumnParser}}),Object.defineProperty(e,"QuotedColumnParser",{enumerable:!0,get:function(){return i.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(t,r,e){var n=function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.HeaderTransformer=void 0;var a=n(t("lodash.isundefined")),o=n(t("lodash.isfunction")),s=n(t("lodash.uniq")),i=n(t("lodash.groupby")),c=function(){function l(u){At(this,l),this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=u,u.headers===!0?this.shouldUseFirstRow=!0:Array.isArray(u.headers)?this.setHeaders(u.headers):o.default(u.headers)&&(this.headersTransform=u.headers)}return Rt(l,[{key:"transform",value:function(u,f){return this.shouldMapRow(u)?f(null,this.processRow(u)):f(null,{row:null,isValid:!0})}},{key:"shouldMapRow",value:function(u){var f=this.parserOptions;if(!this.headersTransform&&f.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(u)){if(this.headersTransform)this.setHeaders(this.headersTransform(u));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(u)}return!1}return!0}},{key:"processRow",value:function(u){if(!this.headers)return{row:u,isValid:!0};var f=this.parserOptions;if(!f.discardUnmappedColumns&&u.length>this.headersLength){if(!f.strictColumnHandling)throw new Error("Unexpected Error: column header mismatch expected: ".concat(this.headersLength," columns got: ").concat(u.length));return{row:u,isValid:!1,reason:"Column header mismatch expected: ".concat(this.headersLength," columns got: ").concat(u.length)}}return f.strictColumnHandling&&u.length<this.headersLength?{row:u,isValid:!1,reason:"Column header mismatch expected: ".concat(this.headersLength," columns got: ").concat(u.length)}:{row:this.mapHeaders(u),isValid:!0}}},{key:"mapHeaders",value:function(u){for(var f={},h=this.headers,d=this.headersLength,p=0;p<d;p+=1){var m=h[p];if(!a.default(m)){var v=u[p];a.default(v)?f[m]="":f[m]=v}}return f}},{key:"setHeaders",value:function(u){var f,h=u.filter(function(m){return!!m});if(s.default(h).length!==h.length){var d=i.default(h),p=Object.keys(d).filter(function(m){return d[m].length>1});throw new Error("Duplicate headers found ".concat(JSON.stringify(p)))}this.headers=u,this.receivedHeaders=!0,this.headersLength=((f=this.headers)===null||f===void 0?void 0:f.length)||0}}]),l}();e.HeaderTransformer=c},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(t,r,e){var n=function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.RowTransformerValidator=void 0;var a=n(t("lodash.isfunction")),o=t("../types"),s=function(){function i(){At(this,i),this._rowTransform=null,this._rowValidator=null}return Rt(i,[{key:"rowTransform",set:function(c){if(!a.default(c))throw new TypeError("The transform should be a function");this._rowTransform=i.createTransform(c)}},{key:"rowValidator",set:function(c){if(!a.default(c))throw new TypeError("The validate should be a function");this._rowValidator=i.createValidator(c)}},{key:"transformAndValidate",value:function(c,l){var u=this;return this.callTransformer(c,function(f,h){return f?l(f):h?u.callValidator(h,function(d,p){return d?l(d):p&&!p.isValid?l(null,{row:h,isValid:!1,reason:p.reason}):l(null,{row:h,isValid:!0})}):l(null,{row:null,isValid:!0})})}},{key:"callTransformer",value:function(c,l){return this._rowTransform?this._rowTransform(c,l):l(null,c)}},{key:"callValidator",value:function(c,l){return this._rowValidator?this._rowValidator(c,l):l(null,{row:c,isValid:!0})}}],[{key:"createTransform",value:function(c){return o.isSyncTransform(c)?function(l,u){var f=null;try{f=c(l)}catch(h){return u(h)}return u(null,f)}:c}},{key:"createValidator",value:function(c){return o.isSyncValidate(c)?function(l,u){u(null,{row:l,isValid:c(l)})}:function(l,u){c(l,function(f,h,d){return f?u(f):u(null,h?{row:l,isValid:h,reason:d}:{row:l,isValid:!1,reason:d})})}}}]),i}();e.RowTransformerValidator=s},{"../types":169,"lodash.isfunction":446}],168:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.HeaderTransformer=e.RowTransformerValidator=void 0;var n=t("./RowTransformerValidator");Object.defineProperty(e,"RowTransformerValidator",{enumerable:!0,get:function(){return n.RowTransformerValidator}});var a=t("./HeaderTransformer");Object.defineProperty(e,"HeaderTransformer",{enumerable:!0,get:function(){return a.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.isSyncValidate=e.isSyncTransform=void 0,e.isSyncTransform=function(n){return n.length===1},e.isSyncValidate=function(n){return n.length===1}},{}],170:[function(t,r,e){var n=e;n.bignum=t("bn.js"),n.define=t("./asn1/api").define,n.base=t("./asn1/base"),n.constants=t("./asn1/constants"),n.decoders=t("./asn1/decoders"),n.encoders=t("./asn1/encoders")},{"./asn1/api":171,"./asn1/base":173,"./asn1/constants":177,"./asn1/decoders":179,"./asn1/encoders":182,"bn.js":184}],171:[function(t,r,e){var n=t("./encoders"),a=t("./decoders"),o=t("inherits");function s(i,c){this.name=i,this.body=c,this.decoders={},this.encoders={}}e.define=function(i,c){return new s(i,c)},s.prototype._createNamed=function(i){var c=this.name;function l(u){this._initNamed(u,c)}return o(l,i),l.prototype._initNamed=function(u,f){i.call(this,u,f)},new l(this)},s.prototype._getDecoder=function(i){return i=i||"der",this.decoders.hasOwnProperty(i)||(this.decoders[i]=this._createNamed(a[i])),this.decoders[i]},s.prototype.decode=function(i,c,l){return this._getDecoder(c).decode(i,l)},s.prototype._getEncoder=function(i){return i=i||"der",this.encoders.hasOwnProperty(i)||(this.encoders[i]=this._createNamed(n[i])),this.encoders[i]},s.prototype.encode=function(i,c,l){return this._getEncoder(c).encode(i,l)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(t,r,e){var n=t("inherits"),a=t("../base/reporter").Reporter,o=t("safer-buffer").Buffer;function s(c,l){a.call(this,l),o.isBuffer(c)?(this.base=c,this.offset=0,this.length=c.length):this.error("Input not Buffer")}function i(c,l){if(Array.isArray(c))this.length=0,this.value=c.map(function(u){return i.isEncoderBuffer(u)||(u=new i(u,l)),this.length+=u.length,u},this);else if(typeof c=="number"){if(!(0<=c&&c<=255))return l.error("non-byte EncoderBuffer value");this.value=c,this.length=1}else if(typeof c=="string")this.value=c,this.length=o.byteLength(c);else{if(!o.isBuffer(c))return l.error("Unsupported type: "+typeof c);this.value=c,this.length=c.length}}n(s,a),e.DecoderBuffer=s,s.isDecoderBuffer=function(c){return c instanceof s||typeof c=="object"&&o.isBuffer(c.base)&&c.constructor.name==="DecoderBuffer"&&typeof c.offset=="number"&&typeof c.length=="number"&&typeof c.save=="function"&&typeof c.restore=="function"&&typeof c.isEmpty=="function"&&typeof c.readUInt8=="function"&&typeof c.skip=="function"&&typeof c.raw=="function"},s.prototype.save=function(){return{offset:this.offset,reporter:a.prototype.save.call(this)}},s.prototype.restore=function(c){var l=new s(this.base);return l.offset=c.offset,l.length=this.offset,this.offset=c.offset,a.prototype.restore.call(this,c.reporter),l},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(c){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(c||"DecoderBuffer overrun")},s.prototype.skip=function(c,l){if(!(this.offset+c<=this.length))return this.error(l||"DecoderBuffer overrun");var u=new s(this.base);return u._reporterState=this._reporterState,u.offset=this.offset,u.length=this.offset+c,this.offset+=c,u},s.prototype.raw=function(c){return this.base.slice(c?c.offset:this.offset,this.length)},e.EncoderBuffer=i,i.isEncoderBuffer=function(c){return c instanceof i||typeof c=="object"&&c.constructor.name==="EncoderBuffer"&&typeof c.length=="number"&&typeof c.join=="function"},i.prototype.join=function(c,l){return c||(c=o.alloc(this.length)),l||(l=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(u){u.join(c,l),l+=u.length}):(typeof this.value=="number"?c[l]=this.value:typeof this.value=="string"?c.write(this.value,l):o.isBuffer(this.value)&&this.value.copy(c,l),l+=this.length)),c}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(t,r,e){var n=e;n.Reporter=t("./reporter").Reporter,n.DecoderBuffer=t("./buffer").DecoderBuffer,n.EncoderBuffer=t("./buffer").EncoderBuffer,n.Node=t("./node")},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(t,r,e){var n=t("../base/reporter").Reporter,a=t("../base/buffer").EncoderBuffer,o=t("../base/buffer").DecoderBuffer,s=t("minimalistic-assert"),i=["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"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(i),l=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function u(h,d,p){var m={};this._baseState=m,m.name=p,m.enc=h,m.parent=d||null,m.children=null,m.tag=null,m.args=null,m.reverseArgs=null,m.choice=null,m.optional=!1,m.any=!1,m.obj=!1,m.use=null,m.useDecoder=null,m.key=null,m.default=null,m.explicit=null,m.implicit=null,m.contains=null,m.parent||(m.children=[],this._wrap())}r.exports=u;var f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){var h=this._baseState,d={};f.forEach(function(m){d[m]=h[m]});var p=new this.constructor(d.parent);return p._baseState=d,p},u.prototype._wrap=function(){var h=this._baseState;c.forEach(function(d){this[d]=function(){var p=new this.constructor(this);return h.children.push(p),p[d].apply(p,arguments)}},this)},u.prototype._init=function(h){var d=this._baseState;s(d.parent===null),h.call(this),d.children=d.children.filter(function(p){return p._baseState.parent===this},this),s.equal(d.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(h){var d=this._baseState,p=h.filter(function(m){return m instanceof this.constructor},this);h=h.filter(function(m){return!(m instanceof this.constructor)},this),p.length!==0&&(s(d.children===null),d.children=p,p.forEach(function(m){m._baseState.parent=this},this)),h.length!==0&&(s(d.args===null),d.args=h,d.reverseArgs=h.map(function(m){if(typeof m!="object"||m.constructor!==Object)return m;var v={};return Object.keys(m).forEach(function(b){b==(0|b)&&(b|=0);var g=m[b];v[g]=b}),v}))},l.forEach(function(h){u.prototype[h]=function(){var d=this._baseState;throw new Error(h+" not implemented for encoding: "+d.enc)}}),i.forEach(function(h){u.prototype[h]=function(){var d=this._baseState,p=Array.prototype.slice.call(arguments);return s(d.tag===null),d.tag=h,this._useArgs(p),this}}),u.prototype.use=function(h){s(h);var d=this._baseState;return s(d.use===null),d.use=h,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(h){var d=this._baseState;return s(d.default===null),d.default=h,d.optional=!0,this},u.prototype.explicit=function(h){var d=this._baseState;return s(d.explicit===null&&d.implicit===null),d.explicit=h,this},u.prototype.implicit=function(h){var d=this._baseState;return s(d.explicit===null&&d.implicit===null),d.implicit=h,this},u.prototype.obj=function(){var h=this._baseState,d=Array.prototype.slice.call(arguments);return h.obj=!0,d.length!==0&&this._useArgs(d),this},u.prototype.key=function(h){var d=this._baseState;return s(d.key===null),d.key=h,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(h){var d=this._baseState;return s(d.choice===null),d.choice=h,this._useArgs(Object.keys(h).map(function(p){return h[p]})),this},u.prototype.contains=function(h){var d=this._baseState;return s(d.use===null),d.contains=h,this},u.prototype._decode=function(h,d){var p=this._baseState;if(p.parent===null)return h.wrapResult(p.children[0]._decode(h,d));var m,v=p.default,b=!0,g=null;if(p.key!==null&&(g=h.enterKey(p.key)),p.optional){var y=null;if(p.explicit!==null?y=p.explicit:p.implicit!==null?y=p.implicit:p.tag!==null&&(y=p.tag),y!==null||p.any){if(b=this._peekTag(h,y,p.any),h.isError(b))return b}else{var w=h.save();try{p.choice===null?this._decodeGeneric(p.tag,h,d):this._decodeChoice(h,d),b=!0}catch(U){b=!1}h.restore(w)}}if(p.obj&&b&&(m=h.enterObject()),b){if(p.explicit!==null){var x=this._decodeTag(h,p.explicit);if(h.isError(x))return x;h=x}var C=h.offset;if(p.use===null&&p.choice===null){var O;p.any&&(O=h.save());var D=this._decodeTag(h,p.implicit!==null?p.implicit:p.tag,p.any);if(h.isError(D))return D;p.any?v=h.raw(O):h=D}if(d&&d.track&&p.tag!==null&&d.track(h.path(),C,h.length,"tagged"),d&&d.track&&p.tag!==null&&d.track(h.path(),h.offset,h.length,"content"),p.any||(v=p.choice===null?this._decodeGeneric(p.tag,h,d):this._decodeChoice(h,d)),h.isError(v))return v;if(p.any||p.choice!==null||p.children===null||p.children.forEach(function(U){U._decode(h,d)}),p.contains&&(p.tag==="octstr"||p.tag==="bitstr")){var j=new o(v);v=this._getUse(p.contains,h._reporterState.obj)._decode(j,d)}}return p.obj&&b&&(v=h.leaveObject(m)),p.key===null||v===null&&b!==!0?g!==null&&h.exitKey(g):h.leaveKey(g,p.key,v),v},u.prototype._decodeGeneric=function(h,d,p){var m=this._baseState;return h==="seq"||h==="set"?null:h==="seqof"||h==="setof"?this._decodeList(d,h,m.args[0],p):/str$/.test(h)?this._decodeStr(d,h,p):h==="objid"&&m.args?this._decodeObjid(d,m.args[0],m.args[1],p):h==="objid"?this._decodeObjid(d,null,null,p):h==="gentime"||h==="utctime"?this._decodeTime(d,h,p):h==="null_"?this._decodeNull(d,p):h==="bool"?this._decodeBool(d,p):h==="objDesc"?this._decodeStr(d,h,p):h==="int"||h==="enum"?this._decodeInt(d,m.args&&m.args[0],p):m.use!==null?this._getUse(m.use,d._reporterState.obj)._decode(d,p):d.error("unknown tag: "+h)},u.prototype._getUse=function(h,d){var p=this._baseState;return p.useDecoder=this._use(h,d),s(p.useDecoder._baseState.parent===null),p.useDecoder=p.useDecoder._baseState.children[0],p.implicit!==p.useDecoder._baseState.implicit&&(p.useDecoder=p.useDecoder.clone(),p.useDecoder._baseState.implicit=p.implicit),p.useDecoder},u.prototype._decodeChoice=function(h,d){var p=this._baseState,m=null,v=!1;return Object.keys(p.choice).some(function(b){var g=h.save(),y=p.choice[b];try{var w=y._decode(h,d);if(h.isError(w))return!1;m={type:b,value:w},v=!0}catch(x){return h.restore(g),!1}return!0},this),v?m:h.error("Choice not matched")},u.prototype._createEncoderBuffer=function(h){return new a(h,this.reporter)},u.prototype._encode=function(h,d,p){var m=this._baseState;if(m.default===null||m.default!==h){var v=this._encodeValue(h,d,p);if(v!==void 0&&!this._skipDefault(v,d,p))return v}},u.prototype._encodeValue=function(h,d,p){var m=this._baseState;if(m.parent===null)return m.children[0]._encode(h,d||new n);var v=null;if(this.reporter=d,m.optional&&h===void 0){if(m.default===null)return;h=m.default}var b=null,g=!1;if(m.any)v=this._createEncoderBuffer(h);else if(m.choice)v=this._encodeChoice(h,d);else if(m.contains)b=this._getUse(m.contains,p)._encode(h,d),g=!0;else if(m.children)b=m.children.map(function(C){if(C._baseState.tag==="null_")return C._encode(null,d,h);if(C._baseState.key===null)return d.error("Child should have a key");var O=d.enterKey(C._baseState.key);if(typeof h!="object")return d.error("Child expected, but input is not object");var D=C._encode(h[C._baseState.key],d,h);return d.leaveKey(O),D},this).filter(function(C){return C}),b=this._createEncoderBuffer(b);else if(m.tag==="seqof"||m.tag==="setof"){if(!m.args||m.args.length!==1)return d.error("Too many args for : "+m.tag);if(!Array.isArray(h))return d.error("seqof/setof, but data is not Array");var y=this.clone();y._baseState.implicit=null,b=this._createEncoderBuffer(h.map(function(C){var O=this._baseState;return this._getUse(O.args[0],h)._encode(C,d)},y))}else m.use!==null?v=this._getUse(m.use,p)._encode(h,d):(b=this._encodePrimitive(m.tag,h),g=!0);if(!m.any&&m.choice===null){var w=m.implicit!==null?m.implicit:m.tag,x=m.implicit===null?"universal":"context";w===null?m.use===null&&d.error("Tag could be omitted only for .use()"):m.use===null&&(v=this._encodeComposite(w,g,x,b))}return m.explicit!==null&&(v=this._encodeComposite(m.explicit,!1,"context",v)),v},u.prototype._encodeChoice=function(h,d){var p=this._baseState,m=p.choice[h.type];return m||s(!1,h.type+" not found in "+JSON.stringify(Object.keys(p.choice))),m._encode(h.value,d)},u.prototype._encodePrimitive=function(h,d){var p=this._baseState;if(/str$/.test(h))return this._encodeStr(d,h);if(h==="objid"&&p.args)return this._encodeObjid(d,p.reverseArgs[0],p.args[1]);if(h==="objid")return this._encodeObjid(d,null,null);if(h==="gentime"||h==="utctime")return this._encodeTime(d,h);if(h==="null_")return this._encodeNull();if(h==="int"||h==="enum")return this._encodeInt(d,p.args&&p.reverseArgs[0]);if(h==="bool")return this._encodeBool(d);if(h==="objDesc")return this._encodeStr(d,h);throw new Error("Unsupported tag: "+h)},u.prototype._isNumstr=function(h){return/^[0-9 ]*$/.test(h)},u.prototype._isPrintstr=function(h){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(h)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(t,r,e){var n=t("inherits");function a(s){this._reporterState={obj:null,path:[],options:s||{},errors:[]}}function o(s,i){this.path=s,this.rethrow(i)}e.Reporter=a,a.prototype.isError=function(s){return s instanceof o},a.prototype.save=function(){var s=this._reporterState;return{obj:s.obj,pathLen:s.path.length}},a.prototype.restore=function(s){var i=this._reporterState;i.obj=s.obj,i.path=i.path.slice(0,s.pathLen)},a.prototype.enterKey=function(s){return this._reporterState.path.push(s)},a.prototype.exitKey=function(s){var i=this._reporterState;i.path=i.path.slice(0,s-1)},a.prototype.leaveKey=function(s,i,c){var l=this._reporterState;this.exitKey(s),l.obj!==null&&(l.obj[i]=c)},a.prototype.path=function(){return this._reporterState.path.join("/")},a.prototype.enterObject=function(){var s=this._reporterState,i=s.obj;return s.obj={},i},a.prototype.leaveObject=function(s){var i=this._reporterState,c=i.obj;return i.obj=s,c},a.prototype.error=function(s){var i,c=this._reporterState,l=s instanceof o;if(i=l?s:new o(c.path.map(function(u){return"["+JSON.stringify(u)+"]"}).join(""),s.message||s,s.stack),!c.options.partial)throw i;return l||c.errors.push(i),i},a.prototype.wrapResult=function(s){var i=this._reporterState;return i.options.partial?{result:this.isError(s)?null:s,errors:i.errors}:s},n(o,Error),o.prototype.rethrow=function(s){if(this.message=s+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(i){this.stack=i.stack}return this}},{inherits:440}],176:[function(t,r,e){function n(a){var o={};return Object.keys(a).forEach(function(s){(0|s)==s&&(s|=0);var i=a[s];o[i]=s}),o}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=n(e.tagClass),e.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"},e.tagByName=n(e.tag)},{}],177:[function(t,r,e){var n=e;n._reverse=function(a){var o={};return Object.keys(a).forEach(function(s){(0|s)==s&&(s|=0);var i=a[s];o[i]=s}),o},n.der=t("./der")},{"./der":176}],178:[function(t,r,e){var n=t("inherits"),a=t("bn.js"),o=t("../base/buffer").DecoderBuffer,s=t("../base/node"),i=t("../constants/der");function c(h){this.enc="der",this.name=h.name,this.entity=h,this.tree=new l,this.tree._init(h.body)}function l(h){s.call(this,"der",h)}function u(h,d){var p=h.readUInt8(d);if(h.isError(p))return p;var m=i.tagClass[p>>6],v=(32&p)==0;if((31&p)==31){var b=p;for(p=0;(128&b)==128;){if(b=h.readUInt8(d),h.isError(b))return b;p<<=7,p|=127&b}}else p&=31;return{cls:m,primitive:v,tag:p,tagStr:i.tag[p]}}function f(h,d,p){var m=h.readUInt8(p);if(h.isError(m))return m;if(!d&&m===128)return null;if(!(128&m))return m;var v=127&m;if(v>4)return h.error("length octect is too long");m=0;for(var b=0;b<v;b++){m<<=8;var g=h.readUInt8(p);if(h.isError(g))return g;m|=g}return m}r.exports=c,c.prototype.decode=function(h,d){return o.isDecoderBuffer(h)||(h=new o(h,d)),this.tree._decode(h,d)},n(l,s),l.prototype._peekTag=function(h,d,p){if(h.isEmpty())return!1;var m=h.save(),v=u(h,'Failed to peek tag: "'+d+'"');return h.isError(v)?v:(h.restore(m),v.tag===d||v.tagStr===d||v.tagStr+"of"===d||p)},l.prototype._decodeTag=function(h,d,p){var m=u(h,'Failed to decode tag of "'+d+'"');if(h.isError(m))return m;var v=f(h,m.primitive,'Failed to get length of "'+d+'"');if(h.isError(v))return v;if(!p&&m.tag!==d&&m.tagStr!==d&&m.tagStr+"of"!==d)return h.error('Failed to match tag: "'+d+'"');if(m.primitive||v!==null)return h.skip(v,'Failed to match body of: "'+d+'"');var b=h.save(),g=this._skipUntilEnd(h,'Failed to skip indefinite length body: "'+this.tag+'"');return h.isError(g)?g:(v=h.offset-b.offset,h.restore(b),h.skip(v,'Failed to match body of: "'+d+'"'))},l.prototype._skipUntilEnd=function(h,d){for(;;){var p=u(h,d);if(h.isError(p))return p;var m=f(h,p.primitive,d);if(h.isError(m))return m;var v=void 0;if(v=p.primitive||m!==null?h.skip(m):this._skipUntilEnd(h,d),h.isError(v))return v;if(p.tagStr==="end")break}},l.prototype._decodeList=function(h,d,p,m){for(var v=[];!h.isEmpty();){var b=this._peekTag(h,"end");if(h.isError(b))return b;var g=p.decode(h,"der",m);if(h.isError(g)&&b)break;v.push(g)}return v},l.prototype._decodeStr=function(h,d){if(d==="bitstr"){var p=h.readUInt8();return h.isError(p)?p:{unused:p,data:h.raw()}}if(d==="bmpstr"){var m=h.raw();if(m.length%2==1)return h.error("Decoding of string type: bmpstr length mismatch");for(var v="",b=0;b<m.length/2;b++)v+=String.fromCharCode(m.readUInt16BE(2*b));return v}if(d==="numstr"){var g=h.raw().toString("ascii");return this._isNumstr(g)?g:h.error("Decoding of string type: numstr unsupported characters")}if(d==="octstr"||d==="objDesc")return h.raw();if(d==="printstr"){var y=h.raw().toString("ascii");return this._isPrintstr(y)?y:h.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(d)?h.raw().toString():h.error("Decoding of string type: "+d+" unsupported")},l.prototype._decodeObjid=function(h,d,p){for(var m,v=[],b=0,g=0;!h.isEmpty();)b<<=7,b|=127&(g=h.readUInt8()),!(128&g)&&(v.push(b),b=0);128&g&&v.push(b);var y=v[0]/40|0,w=v[0]%40;if(m=p?v:[y,w].concat(v.slice(1)),d){var x=d[m.join(" ")];x===void 0&&(x=d[m.join(".")]),x!==void 0&&(m=x)}return m},l.prototype._decodeTime=function(h,d){var p,m,v,b,g,y,w=h.raw().toString();if(d==="gentime")p=0|w.slice(0,4),m=0|w.slice(4,6),v=0|w.slice(6,8),b=0|w.slice(8,10),g=0|w.slice(10,12),y=0|w.slice(12,14);else{if(d!=="utctime")return h.error("Decoding "+d+" time is not supported yet");p=0|w.slice(0,2),m=0|w.slice(2,4),v=0|w.slice(4,6),b=0|w.slice(6,8),g=0|w.slice(8,10),y=0|w.slice(10,12),p=p<70?2e3+p:1900+p}return Date.UTC(p,m-1,v,b,g,y,0)},l.prototype._decodeNull=function(){return null},l.prototype._decodeBool=function(h){var d=h.readUInt8();return h.isError(d)?d:d!==0},l.prototype._decodeInt=function(h,d){var p=h.raw(),m=new a(p);return d&&(m=d[m.toString(10)]||m),m},l.prototype._use=function(h,d){return typeof h=="function"&&(h=h(d)),h._getDecoder("der").tree}},{"../base/buffer":172,"../base/node":174,"../constants/der":176,"bn.js":184,inherits:440}],179:[function(t,r,e){var n=e;n.der=t("./der"),n.pem=t("./pem")},{"./der":178,"./pem":180}],180:[function(t,r,e){var n=t("inherits"),a=t("safer-buffer").Buffer,o=t("./der");function s(i){o.call(this,i),this.enc="pem"}n(s,o),r.exports=s,s.prototype.decode=function(i,c){for(var l=i.toString().split(/[\r\n]+/g),u=c.label.toUpperCase(),f=/^-----(BEGIN|END) ([^-]+)-----$/,h=-1,d=-1,p=0;p<l.length;p++){var m=l[p].match(f);if(m!==null&&m[2]===u){if(h!==-1){if(m[1]!=="END")break;d=p;break}if(m[1]!=="BEGIN")break;h=p}}if(h===-1||d===-1)throw new Error("PEM section not found for: "+u);var v=l.slice(h+1,d).join("");v.replace(/[^a-z0-9+/=]+/gi,"");var b=a.from(v,"base64");return o.prototype.decode.call(this,b,c)}},{"./der":178,inherits:440,"safer-buffer":495}],181:[function(t,r,e){var n=t("inherits"),a=t("safer-buffer").Buffer,o=t("../base/node"),s=t("../constants/der");function i(f){this.enc="der",this.name=f.name,this.entity=f,this.tree=new c,this.tree._init(f.body)}function c(f){o.call(this,"der",f)}function l(f){return f<10?"0"+f:f}function u(f,h,d,p){var m;if(f==="seqof"?f="seq":f==="setof"&&(f="set"),s.tagByName.hasOwnProperty(f))m=s.tagByName[f];else{if(typeof f!="number"||(0|f)!==f)return p.error("Unknown tag: "+f);m=f}return m>=31?p.error("Multi-octet tag encoding unsupported"):(h||(m|=32),m|=s.tagClassByName[d||"universal"]<<6)}r.exports=i,i.prototype.encode=function(f,h){return this.tree._encode(f,h).join()},n(c,o),c.prototype._encodeComposite=function(f,h,d,p){var m=u(f,h,d,this.reporter);if(p.length<128){var v=a.alloc(2);return v[0]=m,v[1]=p.length,this._createEncoderBuffer([v,p])}for(var b=1,g=p.length;g>=256;g>>=8)b++;var y=a.alloc(2+b);y[0]=m,y[1]=128|b;for(var w=1+b,x=p.length;x>0;w--,x>>=8)y[w]=255&x;return this._createEncoderBuffer([y,p])},c.prototype._encodeStr=function(f,h){if(h==="bitstr")return this._createEncoderBuffer([0|f.unused,f.data]);if(h==="bmpstr"){for(var d=a.alloc(2*f.length),p=0;p<f.length;p++)d.writeUInt16BE(f.charCodeAt(p),2*p);return this._createEncoderBuffer(d)}return h==="numstr"?this._isNumstr(f)?this._createEncoderBuffer(f):this.reporter.error("Encoding of string type: numstr supports only digits and space"):h==="printstr"?this._isPrintstr(f)?this._createEncoderBuffer(f):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(h)||h==="objDesc"?this._createEncoderBuffer(f):this.reporter.error("Encoding of string type: "+h+" unsupported")},c.prototype._encodeObjid=function(f,h,d){if(typeof f=="string"){if(!h)return this.reporter.error("string objid given, but no values map found");if(!h.hasOwnProperty(f))return this.reporter.error("objid not found in values map");f=h[f].split(/[\s.]+/g);for(var p=0;p<f.length;p++)f[p]|=0}else if(Array.isArray(f)){f=f.slice();for(var m=0;m<f.length;m++)f[m]|=0}if(!Array.isArray(f))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(f));if(!d){if(f[1]>=40)return this.reporter.error("Second objid identifier OOB");f.splice(0,2,40*f[0]+f[1])}for(var v=0,b=0;b<f.length;b++){var g=f[b];for(v++;g>=128;g>>=7)v++}for(var y=a.alloc(v),w=y.length-1,x=f.length-1;x>=0;x--){var C=f[x];for(y[w--]=127&C;(C>>=7)>0;)y[w--]=128|127&C}return this._createEncoderBuffer(y)},c.prototype._encodeTime=function(f,h){var d,p=new Date(f);return h==="gentime"?d=[l(p.getUTCFullYear()),l(p.getUTCMonth()+1),l(p.getUTCDate()),l(p.getUTCHours()),l(p.getUTCMinutes()),l(p.getUTCSeconds()),"Z"].join(""):h==="utctime"?d=[l(p.getUTCFullYear()%100),l(p.getUTCMonth()+1),l(p.getUTCDate()),l(p.getUTCHours()),l(p.getUTCMinutes()),l(p.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+h+" time is not supported yet"),this._encodeStr(d,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(f,h){if(typeof f=="string"){if(!h)return this.reporter.error("String int or enum given, but no values map");if(!h.hasOwnProperty(f))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(f));f=h[f]}if(typeof f!="number"&&!a.isBuffer(f)){var d=f.toArray();!f.sign&&128&d[0]&&d.unshift(0),f=a.from(d)}if(a.isBuffer(f)){var p=f.length;f.length===0&&p++;var m=a.alloc(p);return f.copy(m),f.length===0&&(m[0]=0),this._createEncoderBuffer(m)}if(f<128)return this._createEncoderBuffer(f);if(f<256)return this._createEncoderBuffer([0,f]);for(var v=1,b=f;b>=256;b>>=8)v++;for(var g=new Array(v),y=g.length-1;y>=0;y--)g[y]=255&f,f>>=8;return 128&g[0]&&g.unshift(0),this._createEncoderBuffer(a.from(g))},c.prototype._encodeBool=function(f){return this._createEncoderBuffer(f?255:0)},c.prototype._use=function(f,h){return typeof f=="function"&&(f=f(h)),f._getEncoder("der").tree},c.prototype._skipDefault=function(f,h,d){var p,m=this._baseState;if(m.default===null)return!1;var v=f.join();if(m.defaultBuffer===void 0&&(m.defaultBuffer=this._encodeValue(m.default,h,d).join()),v.length!==m.defaultBuffer.length)return!1;for(p=0;p<v.length;p++)if(v[p]!==m.defaultBuffer[p])return!1;return!0}},{"../base/node":174,"../constants/der":176,inherits:440,"safer-buffer":495}],182:[function(t,r,e){var n=e;n.der=t("./der"),n.pem=t("./pem")},{"./der":181,"./pem":183}],183:[function(t,r,e){var n=t("inherits"),a=t("./der");function o(s){a.call(this,s),this.enc="pem"}n(o,a),r.exports=o,o.prototype.encode=function(s,i){for(var c=a.prototype.encode.call(this,s).toString("base64"),l=["-----BEGIN "+i.label+"-----"],u=0;u<c.length;u+=64)l.push(c.slice(u,u+64));return l.push("-----END "+i.label+"-----"),l.join(`
|
||
`)}},{"./der":181,inherits:440}],184:[function(t,r,e){(function(n,a){function o(A,N){if(!A)throw new Error(N||"Assertion failed")}function s(A,N){A.super_=N;var k=function(){};k.prototype=N.prototype,A.prototype=new k,A.prototype.constructor=A}function i(A,N,k){if(i.isBN(A))return A;this.negative=0,this.words=null,this.length=0,this.red=null,A!==null&&(N!=="le"&&N!=="be"||(k=N,N=10),this._init(A||0,N||10,k||"be"))}var c;typeof n=="object"?n.exports=i:a.BN=i,i.BN=i,i.wordSize=26;try{c=typeof window!="undefined"&&window.Buffer!==void 0?window.Buffer:t("buffer").Buffer}catch(A){}function l(A,N){var k=A.charCodeAt(N);return k>=65&&k<=70?k-55:k>=97&&k<=102?k-87:k-48&15}function u(A,N,k){var S=l(A,k);return k-1>=N&&(S|=l(A,k-1)<<4),S}function f(A,N,k,S){for(var E=0,T=Math.min(A.length,k),R=N;R<T;R++){var F=A.charCodeAt(R)-48;E*=S,E+=F>=49?F-49+10:F>=17?F-17+10:F}return E}i.isBN=function(A){return A instanceof i||A!==null&&typeof A=="object"&&A.constructor.wordSize===i.wordSize&&Array.isArray(A.words)},i.max=function(A,N){return A.cmp(N)>0?A:N},i.min=function(A,N){return A.cmp(N)<0?A:N},i.prototype._init=function(A,N,k){if(typeof A=="number")return this._initNumber(A,N,k);if(typeof A=="object")return this._initArray(A,N,k);N==="hex"&&(N=16),o(N===(0|N)&&N>=2&&N<=36);var S=0;(A=A.toString().replace(/\s+/g,""))[0]==="-"&&(S++,this.negative=1),S<A.length&&(N===16?this._parseHex(A,S,k):(this._parseBase(A,N,S),k==="le"&&this._initArray(this.toArray(),N,k)))},i.prototype._initNumber=function(A,N,k){A<0&&(this.negative=1,A=-A),A<67108864?(this.words=[67108863&A],this.length=1):A<4503599627370496?(this.words=[67108863&A,A/67108864&67108863],this.length=2):(o(A<9007199254740992),this.words=[67108863&A,A/67108864&67108863,1],this.length=3),k==="le"&&this._initArray(this.toArray(),N,k)},i.prototype._initArray=function(A,N,k){if(o(typeof A.length=="number"),A.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(A.length/3),this.words=new Array(this.length);for(var S=0;S<this.length;S++)this.words[S]=0;var E,T,R=0;if(k==="be")for(S=A.length-1,E=0;S>=0;S-=3)T=A[S]|A[S-1]<<8|A[S-2]<<16,this.words[E]|=T<<R&67108863,this.words[E+1]=T>>>26-R&67108863,(R+=24)>=26&&(R-=26,E++);else if(k==="le")for(S=0,E=0;S<A.length;S+=3)T=A[S]|A[S+1]<<8|A[S+2]<<16,this.words[E]|=T<<R&67108863,this.words[E+1]=T>>>26-R&67108863,(R+=24)>=26&&(R-=26,E++);return this.strip()},i.prototype._parseHex=function(A,N,k){this.length=Math.ceil((A.length-N)/6),this.words=new Array(this.length);for(var S=0;S<this.length;S++)this.words[S]=0;var E,T=0,R=0;if(k==="be")for(S=A.length-1;S>=N;S-=2)E=u(A,N,S)<<T,this.words[R]|=67108863&E,T>=18?(T-=18,R+=1,this.words[R]|=E>>>26):T+=8;else for(S=(A.length-N)%2==0?N+1:N;S<A.length;S+=2)E=u(A,N,S)<<T,this.words[R]|=67108863&E,T>=18?(T-=18,R+=1,this.words[R]|=E>>>26):T+=8;this.strip()},i.prototype._parseBase=function(A,N,k){this.words=[0],this.length=1;for(var S=0,E=1;E<=67108863;E*=N)S++;S--,E=E/N|0;for(var T=A.length-k,R=T%S,F=Math.min(T,T-R)+k,I=0,B=k;B<F;B+=S)I=f(A,B,B+S,N),this.imuln(E),this.words[0]+I<67108864?this.words[0]+=I:this._iaddn(I);if(R!==0){var P=1;for(I=f(A,B,A.length,N),B=0;B<R;B++)P*=N;this.imuln(P),this.words[0]+I<67108864?this.words[0]+=I:this._iaddn(I)}this.strip()},i.prototype.copy=function(A){A.words=new Array(this.length);for(var N=0;N<this.length;N++)A.words[N]=this.words[N];A.length=this.length,A.negative=this.negative,A.red=this.red},i.prototype.clone=function(){var A=new i(null);return this.copy(A),A},i.prototype._expand=function(A){for(;this.length<A;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var h=["","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"],d=[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],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function m(A){for(var N=new Array(A.bitLength()),k=0;k<N.length;k++){var S=k/26|0,E=k%26;N[k]=(A.words[S]&1<<E)>>>E}return N}function v(A,N,k){k.negative=N.negative^A.negative;var S=A.length+N.length|0;k.length=S,S=S-1|0;var E=0|A.words[0],T=0|N.words[0],R=E*T,F=67108863&R,I=R/67108864|0;k.words[0]=F;for(var B=1;B<S;B++){for(var P=I>>>26,H=67108863&I,Z=Math.min(B,N.length-1),Y=Math.max(0,B-A.length+1);Y<=Z;Y++){var dt=B-Y|0;P+=(R=(E=0|A.words[dt])*(T=0|N.words[Y])+H)/67108864|0,H=67108863&R}k.words[B]=0|H,I=0|P}return I!==0?k.words[B]=0|I:k.length--,k.strip()}i.prototype.toString=function(A,N){var k;if(N=0|N||1,(A=A||10)===16||A==="hex"){k="";for(var S=0,E=0,T=0;T<this.length;T++){var R=this.words[T],F=(16777215&(R<<S|E)).toString(16);k=(E=R>>>24-S&16777215)!=0||T!==this.length-1?h[6-F.length]+F+k:F+k,(S+=2)>=26&&(S-=26,T--)}for(E!==0&&(k=E.toString(16)+k);k.length%N!=0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}if(A===(0|A)&&A>=2&&A<=36){var I=d[A],B=p[A];k="";var P=this.clone();for(P.negative=0;!P.isZero();){var H=P.modn(B).toString(A);k=(P=P.idivn(B)).isZero()?H+k:h[I-H.length]+H+k}for(this.isZero()&&(k="0"+k);k.length%N!=0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}o(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var A=this.words[0];return this.length===2?A+=67108864*this.words[1]:this.length===3&&this.words[2]===1?A+=4503599627370496+67108864*this.words[1]:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-A:A},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(A,N){return o(c!==void 0),this.toArrayLike(c,A,N)},i.prototype.toArray=function(A,N){return this.toArrayLike(Array,A,N)},i.prototype.toArrayLike=function(A,N,k){var S=this.byteLength(),E=k||Math.max(1,S);o(S<=E,"byte array longer than desired length"),o(E>0,"Requested array length <= 0"),this.strip();var T,R,F=N==="le",I=new A(E),B=this.clone();if(F){for(R=0;!B.isZero();R++)T=B.andln(255),B.iushrn(8),I[R]=T;for(;R<E;R++)I[R]=0}else{for(R=0;R<E-S;R++)I[R]=0;for(R=0;!B.isZero();R++)T=B.andln(255),B.iushrn(8),I[E-R-1]=T}return I},Math.clz32?i.prototype._countBits=function(A){return 32-Math.clz32(A)}:i.prototype._countBits=function(A){var N=A,k=0;return N>=4096&&(k+=13,N>>>=13),N>=64&&(k+=7,N>>>=7),N>=8&&(k+=4,N>>>=4),N>=2&&(k+=2,N>>>=2),k+N},i.prototype._zeroBits=function(A){if(A===0)return 26;var N=A,k=0;return!(8191&N)&&(k+=13,N>>>=13),!(127&N)&&(k+=7,N>>>=7),!(15&N)&&(k+=4,N>>>=4),!(3&N)&&(k+=2,N>>>=2),!(1&N)&&k++,k},i.prototype.bitLength=function(){var A=this.words[this.length-1],N=this._countBits(A);return 26*(this.length-1)+N},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var A=0,N=0;N<this.length;N++){var k=this._zeroBits(this.words[N]);if(A+=k,k!==26)break}return A},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(A){return this.negative!==0?this.abs().inotn(A).iaddn(1):this.clone()},i.prototype.fromTwos=function(A){return this.testn(A-1)?this.notn(A).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(A){for(;this.length<A.length;)this.words[this.length++]=0;for(var N=0;N<A.length;N++)this.words[N]=this.words[N]|A.words[N];return this.strip()},i.prototype.ior=function(A){return o((this.negative|A.negative)==0),this.iuor(A)},i.prototype.or=function(A){return this.length>A.length?this.clone().ior(A):A.clone().ior(this)},i.prototype.uor=function(A){return this.length>A.length?this.clone().iuor(A):A.clone().iuor(this)},i.prototype.iuand=function(A){var N;N=this.length>A.length?A:this;for(var k=0;k<N.length;k++)this.words[k]=this.words[k]&A.words[k];return this.length=N.length,this.strip()},i.prototype.iand=function(A){return o((this.negative|A.negative)==0),this.iuand(A)},i.prototype.and=function(A){return this.length>A.length?this.clone().iand(A):A.clone().iand(this)},i.prototype.uand=function(A){return this.length>A.length?this.clone().iuand(A):A.clone().iuand(this)},i.prototype.iuxor=function(A){var N,k;this.length>A.length?(N=this,k=A):(N=A,k=this);for(var S=0;S<k.length;S++)this.words[S]=N.words[S]^k.words[S];if(this!==N)for(;S<N.length;S++)this.words[S]=N.words[S];return this.length=N.length,this.strip()},i.prototype.ixor=function(A){return o((this.negative|A.negative)==0),this.iuxor(A)},i.prototype.xor=function(A){return this.length>A.length?this.clone().ixor(A):A.clone().ixor(this)},i.prototype.uxor=function(A){return this.length>A.length?this.clone().iuxor(A):A.clone().iuxor(this)},i.prototype.inotn=function(A){o(typeof A=="number"&&A>=0);var N=0|Math.ceil(A/26),k=A%26;this._expand(N),k>0&&N--;for(var S=0;S<N;S++)this.words[S]=67108863&~this.words[S];return k>0&&(this.words[S]=~this.words[S]&67108863>>26-k),this.strip()},i.prototype.notn=function(A){return this.clone().inotn(A)},i.prototype.setn=function(A,N){o(typeof A=="number"&&A>=0);var k=A/26|0,S=A%26;return this._expand(k+1),this.words[k]=N?this.words[k]|1<<S:this.words[k]&~(1<<S),this.strip()},i.prototype.iadd=function(A){var N,k,S;if(this.negative!==0&&A.negative===0)return this.negative=0,N=this.isub(A),this.negative^=1,this._normSign();if(this.negative===0&&A.negative!==0)return A.negative=0,N=this.isub(A),A.negative=1,N._normSign();this.length>A.length?(k=this,S=A):(k=A,S=this);for(var E=0,T=0;T<S.length;T++)N=(0|k.words[T])+(0|S.words[T])+E,this.words[T]=67108863&N,E=N>>>26;for(;E!==0&&T<k.length;T++)N=(0|k.words[T])+E,this.words[T]=67108863&N,E=N>>>26;if(this.length=k.length,E!==0)this.words[this.length]=E,this.length++;else if(k!==this)for(;T<k.length;T++)this.words[T]=k.words[T];return this},i.prototype.add=function(A){var N;return A.negative!==0&&this.negative===0?(A.negative=0,N=this.sub(A),A.negative^=1,N):A.negative===0&&this.negative!==0?(this.negative=0,N=A.sub(this),this.negative=1,N):this.length>A.length?this.clone().iadd(A):A.clone().iadd(this)},i.prototype.isub=function(A){if(A.negative!==0){A.negative=0;var N=this.iadd(A);return A.negative=1,N._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(A),this.negative=1,this._normSign();var k,S,E=this.cmp(A);if(E===0)return this.negative=0,this.length=1,this.words[0]=0,this;E>0?(k=this,S=A):(k=A,S=this);for(var T=0,R=0;R<S.length;R++)T=(N=(0|k.words[R])-(0|S.words[R])+T)>>26,this.words[R]=67108863&N;for(;T!==0&&R<k.length;R++)T=(N=(0|k.words[R])+T)>>26,this.words[R]=67108863&N;if(T===0&&R<k.length&&k!==this)for(;R<k.length;R++)this.words[R]=k.words[R];return this.length=Math.max(this.length,R),k!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(A){return this.clone().isub(A)};var b=function(A,N,k){var S,E,T,R=A.words,F=N.words,I=k.words,B=0,P=0|R[0],H=8191&P,Z=P>>>13,Y=0|R[1],dt=8191&Y,gt=Y>>>13,bt=0|R[2],Q=8191&bt,q=bt>>>13,tt=0|R[3],et=8191&tt,_t=tt>>>13,J=0|R[4],st=8191&J,Ot=J>>>13,W=0|R[5],X=8191&W,it=W>>>13,xt=0|R[6],Nt=8191&xt,G=xt>>>13,Mt=0|R[7],Pt=8191&Mt,lt=Mt>>>13,ct=0|R[8],pt=8191&ct,Dt=ct>>>13,rt=0|R[9],nt=8191&rt,ht=rt>>>13,St=0|F[0],ut=8191&St,vt=St>>>13,ft=0|F[1],yt=8191&ft,Ct=ft>>>13,zt=0|F[2],Bt=8191&zt,re=zt>>>13,Yt=0|F[3],qt=8191&Yt,te=Yt>>>13,le=0|F[4],ne=8191&le,de=le>>>13,Xt=0|F[5],pe=8191&Xt,Re=Xt>>>13,je=0|F[6],ie=8191&je,xe=je>>>13,ye=0|F[7],Zt=8191&ye,Te=ye>>>13,Se=0|F[8],Ae=8191&Se,Pe=Se>>>13,He=0|F[9],fe=8191&He,Be=He>>>13;k.negative=A.negative^N.negative,k.length=19;var ze=(B+(S=Math.imul(H,ut))|0)+((8191&(E=(E=Math.imul(H,vt))+Math.imul(Z,ut)|0))<<13)|0;B=((T=Math.imul(Z,vt))+(E>>>13)|0)+(ze>>>26)|0,ze&=67108863,S=Math.imul(dt,ut),E=(E=Math.imul(dt,vt))+Math.imul(gt,ut)|0,T=Math.imul(gt,vt);var qe=(B+(S=S+Math.imul(H,yt)|0)|0)+((8191&(E=(E=E+Math.imul(H,Ct)|0)+Math.imul(Z,yt)|0))<<13)|0;B=((T=T+Math.imul(Z,Ct)|0)+(E>>>13)|0)+(qe>>>26)|0,qe&=67108863,S=Math.imul(Q,ut),E=(E=Math.imul(Q,vt))+Math.imul(q,ut)|0,T=Math.imul(q,vt),S=S+Math.imul(dt,yt)|0,E=(E=E+Math.imul(dt,Ct)|0)+Math.imul(gt,yt)|0,T=T+Math.imul(gt,Ct)|0;var or=(B+(S=S+Math.imul(H,Bt)|0)|0)+((8191&(E=(E=E+Math.imul(H,re)|0)+Math.imul(Z,Bt)|0))<<13)|0;B=((T=T+Math.imul(Z,re)|0)+(E>>>13)|0)+(or>>>26)|0,or&=67108863,S=Math.imul(et,ut),E=(E=Math.imul(et,vt))+Math.imul(_t,ut)|0,T=Math.imul(_t,vt),S=S+Math.imul(Q,yt)|0,E=(E=E+Math.imul(Q,Ct)|0)+Math.imul(q,yt)|0,T=T+Math.imul(q,Ct)|0,S=S+Math.imul(dt,Bt)|0,E=(E=E+Math.imul(dt,re)|0)+Math.imul(gt,Bt)|0,T=T+Math.imul(gt,re)|0;var wt=(B+(S=S+Math.imul(H,qt)|0)|0)+((8191&(E=(E=E+Math.imul(H,te)|0)+Math.imul(Z,qt)|0))<<13)|0;B=((T=T+Math.imul(Z,te)|0)+(E>>>13)|0)+(wt>>>26)|0,wt&=67108863,S=Math.imul(st,ut),E=(E=Math.imul(st,vt))+Math.imul(Ot,ut)|0,T=Math.imul(Ot,vt),S=S+Math.imul(et,yt)|0,E=(E=E+Math.imul(et,Ct)|0)+Math.imul(_t,yt)|0,T=T+Math.imul(_t,Ct)|0,S=S+Math.imul(Q,Bt)|0,E=(E=E+Math.imul(Q,re)|0)+Math.imul(q,Bt)|0,T=T+Math.imul(q,re)|0,S=S+Math.imul(dt,qt)|0,E=(E=E+Math.imul(dt,te)|0)+Math.imul(gt,qt)|0,T=T+Math.imul(gt,te)|0;var Ft=(B+(S=S+Math.imul(H,ne)|0)|0)+((8191&(E=(E=E+Math.imul(H,de)|0)+Math.imul(Z,ne)|0))<<13)|0;B=((T=T+Math.imul(Z,de)|0)+(E>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,S=Math.imul(X,ut),E=(E=Math.imul(X,vt))+Math.imul(it,ut)|0,T=Math.imul(it,vt),S=S+Math.imul(st,yt)|0,E=(E=E+Math.imul(st,Ct)|0)+Math.imul(Ot,yt)|0,T=T+Math.imul(Ot,Ct)|0,S=S+Math.imul(et,Bt)|0,E=(E=E+Math.imul(et,re)|0)+Math.imul(_t,Bt)|0,T=T+Math.imul(_t,re)|0,S=S+Math.imul(Q,qt)|0,E=(E=E+Math.imul(Q,te)|0)+Math.imul(q,qt)|0,T=T+Math.imul(q,te)|0,S=S+Math.imul(dt,ne)|0,E=(E=E+Math.imul(dt,de)|0)+Math.imul(gt,ne)|0,T=T+Math.imul(gt,de)|0;var Ut=(B+(S=S+Math.imul(H,pe)|0)|0)+((8191&(E=(E=E+Math.imul(H,Re)|0)+Math.imul(Z,pe)|0))<<13)|0;B=((T=T+Math.imul(Z,Re)|0)+(E>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,S=Math.imul(Nt,ut),E=(E=Math.imul(Nt,vt))+Math.imul(G,ut)|0,T=Math.imul(G,vt),S=S+Math.imul(X,yt)|0,E=(E=E+Math.imul(X,Ct)|0)+Math.imul(it,yt)|0,T=T+Math.imul(it,Ct)|0,S=S+Math.imul(st,Bt)|0,E=(E=E+Math.imul(st,re)|0)+Math.imul(Ot,Bt)|0,T=T+Math.imul(Ot,re)|0,S=S+Math.imul(et,qt)|0,E=(E=E+Math.imul(et,te)|0)+Math.imul(_t,qt)|0,T=T+Math.imul(_t,te)|0,S=S+Math.imul(Q,ne)|0,E=(E=E+Math.imul(Q,de)|0)+Math.imul(q,ne)|0,T=T+Math.imul(q,de)|0,S=S+Math.imul(dt,pe)|0,E=(E=E+Math.imul(dt,Re)|0)+Math.imul(gt,pe)|0,T=T+Math.imul(gt,Re)|0;var ve=(B+(S=S+Math.imul(H,ie)|0)|0)+((8191&(E=(E=E+Math.imul(H,xe)|0)+Math.imul(Z,ie)|0))<<13)|0;B=((T=T+Math.imul(Z,xe)|0)+(E>>>13)|0)+(ve>>>26)|0,ve&=67108863,S=Math.imul(Pt,ut),E=(E=Math.imul(Pt,vt))+Math.imul(lt,ut)|0,T=Math.imul(lt,vt),S=S+Math.imul(Nt,yt)|0,E=(E=E+Math.imul(Nt,Ct)|0)+Math.imul(G,yt)|0,T=T+Math.imul(G,Ct)|0,S=S+Math.imul(X,Bt)|0,E=(E=E+Math.imul(X,re)|0)+Math.imul(it,Bt)|0,T=T+Math.imul(it,re)|0,S=S+Math.imul(st,qt)|0,E=(E=E+Math.imul(st,te)|0)+Math.imul(Ot,qt)|0,T=T+Math.imul(Ot,te)|0,S=S+Math.imul(et,ne)|0,E=(E=E+Math.imul(et,de)|0)+Math.imul(_t,ne)|0,T=T+Math.imul(_t,de)|0,S=S+Math.imul(Q,pe)|0,E=(E=E+Math.imul(Q,Re)|0)+Math.imul(q,pe)|0,T=T+Math.imul(q,Re)|0,S=S+Math.imul(dt,ie)|0,E=(E=E+Math.imul(dt,xe)|0)+Math.imul(gt,ie)|0,T=T+Math.imul(gt,xe)|0;var De=(B+(S=S+Math.imul(H,Zt)|0)|0)+((8191&(E=(E=E+Math.imul(H,Te)|0)+Math.imul(Z,Zt)|0))<<13)|0;B=((T=T+Math.imul(Z,Te)|0)+(E>>>13)|0)+(De>>>26)|0,De&=67108863,S=Math.imul(pt,ut),E=(E=Math.imul(pt,vt))+Math.imul(Dt,ut)|0,T=Math.imul(Dt,vt),S=S+Math.imul(Pt,yt)|0,E=(E=E+Math.imul(Pt,Ct)|0)+Math.imul(lt,yt)|0,T=T+Math.imul(lt,Ct)|0,S=S+Math.imul(Nt,Bt)|0,E=(E=E+Math.imul(Nt,re)|0)+Math.imul(G,Bt)|0,T=T+Math.imul(G,re)|0,S=S+Math.imul(X,qt)|0,E=(E=E+Math.imul(X,te)|0)+Math.imul(it,qt)|0,T=T+Math.imul(it,te)|0,S=S+Math.imul(st,ne)|0,E=(E=E+Math.imul(st,de)|0)+Math.imul(Ot,ne)|0,T=T+Math.imul(Ot,de)|0,S=S+Math.imul(et,pe)|0,E=(E=E+Math.imul(et,Re)|0)+Math.imul(_t,pe)|0,T=T+Math.imul(_t,Re)|0,S=S+Math.imul(Q,ie)|0,E=(E=E+Math.imul(Q,xe)|0)+Math.imul(q,ie)|0,T=T+Math.imul(q,xe)|0,S=S+Math.imul(dt,Zt)|0,E=(E=E+Math.imul(dt,Te)|0)+Math.imul(gt,Zt)|0,T=T+Math.imul(gt,Te)|0;var yr=(B+(S=S+Math.imul(H,Ae)|0)|0)+((8191&(E=(E=E+Math.imul(H,Pe)|0)+Math.imul(Z,Ae)|0))<<13)|0;B=((T=T+Math.imul(Z,Pe)|0)+(E>>>13)|0)+(yr>>>26)|0,yr&=67108863,S=Math.imul(nt,ut),E=(E=Math.imul(nt,vt))+Math.imul(ht,ut)|0,T=Math.imul(ht,vt),S=S+Math.imul(pt,yt)|0,E=(E=E+Math.imul(pt,Ct)|0)+Math.imul(Dt,yt)|0,T=T+Math.imul(Dt,Ct)|0,S=S+Math.imul(Pt,Bt)|0,E=(E=E+Math.imul(Pt,re)|0)+Math.imul(lt,Bt)|0,T=T+Math.imul(lt,re)|0,S=S+Math.imul(Nt,qt)|0,E=(E=E+Math.imul(Nt,te)|0)+Math.imul(G,qt)|0,T=T+Math.imul(G,te)|0,S=S+Math.imul(X,ne)|0,E=(E=E+Math.imul(X,de)|0)+Math.imul(it,ne)|0,T=T+Math.imul(it,de)|0,S=S+Math.imul(st,pe)|0,E=(E=E+Math.imul(st,Re)|0)+Math.imul(Ot,pe)|0,T=T+Math.imul(Ot,Re)|0,S=S+Math.imul(et,ie)|0,E=(E=E+Math.imul(et,xe)|0)+Math.imul(_t,ie)|0,T=T+Math.imul(_t,xe)|0,S=S+Math.imul(Q,Zt)|0,E=(E=E+Math.imul(Q,Te)|0)+Math.imul(q,Zt)|0,T=T+Math.imul(q,Te)|0,S=S+Math.imul(dt,Ae)|0,E=(E=E+Math.imul(dt,Pe)|0)+Math.imul(gt,Ae)|0,T=T+Math.imul(gt,Pe)|0;var Hr=(B+(S=S+Math.imul(H,fe)|0)|0)+((8191&(E=(E=E+Math.imul(H,Be)|0)+Math.imul(Z,fe)|0))<<13)|0;B=((T=T+Math.imul(Z,Be)|0)+(E>>>13)|0)+(Hr>>>26)|0,Hr&=67108863,S=Math.imul(nt,yt),E=(E=Math.imul(nt,Ct))+Math.imul(ht,yt)|0,T=Math.imul(ht,Ct),S=S+Math.imul(pt,Bt)|0,E=(E=E+Math.imul(pt,re)|0)+Math.imul(Dt,Bt)|0,T=T+Math.imul(Dt,re)|0,S=S+Math.imul(Pt,qt)|0,E=(E=E+Math.imul(Pt,te)|0)+Math.imul(lt,qt)|0,T=T+Math.imul(lt,te)|0,S=S+Math.imul(Nt,ne)|0,E=(E=E+Math.imul(Nt,de)|0)+Math.imul(G,ne)|0,T=T+Math.imul(G,de)|0,S=S+Math.imul(X,pe)|0,E=(E=E+Math.imul(X,Re)|0)+Math.imul(it,pe)|0,T=T+Math.imul(it,Re)|0,S=S+Math.imul(st,ie)|0,E=(E=E+Math.imul(st,xe)|0)+Math.imul(Ot,ie)|0,T=T+Math.imul(Ot,xe)|0,S=S+Math.imul(et,Zt)|0,E=(E=E+Math.imul(et,Te)|0)+Math.imul(_t,Zt)|0,T=T+Math.imul(_t,Te)|0,S=S+Math.imul(Q,Ae)|0,E=(E=E+Math.imul(Q,Pe)|0)+Math.imul(q,Ae)|0,T=T+Math.imul(q,Pe)|0;var Qr=(B+(S=S+Math.imul(dt,fe)|0)|0)+((8191&(E=(E=E+Math.imul(dt,Be)|0)+Math.imul(gt,fe)|0))<<13)|0;B=((T=T+Math.imul(gt,Be)|0)+(E>>>13)|0)+(Qr>>>26)|0,Qr&=67108863,S=Math.imul(nt,Bt),E=(E=Math.imul(nt,re))+Math.imul(ht,Bt)|0,T=Math.imul(ht,re),S=S+Math.imul(pt,qt)|0,E=(E=E+Math.imul(pt,te)|0)+Math.imul(Dt,qt)|0,T=T+Math.imul(Dt,te)|0,S=S+Math.imul(Pt,ne)|0,E=(E=E+Math.imul(Pt,de)|0)+Math.imul(lt,ne)|0,T=T+Math.imul(lt,de)|0,S=S+Math.imul(Nt,pe)|0,E=(E=E+Math.imul(Nt,Re)|0)+Math.imul(G,pe)|0,T=T+Math.imul(G,Re)|0,S=S+Math.imul(X,ie)|0,E=(E=E+Math.imul(X,xe)|0)+Math.imul(it,ie)|0,T=T+Math.imul(it,xe)|0,S=S+Math.imul(st,Zt)|0,E=(E=E+Math.imul(st,Te)|0)+Math.imul(Ot,Zt)|0,T=T+Math.imul(Ot,Te)|0,S=S+Math.imul(et,Ae)|0,E=(E=E+Math.imul(et,Pe)|0)+Math.imul(_t,Ae)|0,T=T+Math.imul(_t,Pe)|0;var Mn=(B+(S=S+Math.imul(Q,fe)|0)|0)+((8191&(E=(E=E+Math.imul(Q,Be)|0)+Math.imul(q,fe)|0))<<13)|0;B=((T=T+Math.imul(q,Be)|0)+(E>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,S=Math.imul(nt,qt),E=(E=Math.imul(nt,te))+Math.imul(ht,qt)|0,T=Math.imul(ht,te),S=S+Math.imul(pt,ne)|0,E=(E=E+Math.imul(pt,de)|0)+Math.imul(Dt,ne)|0,T=T+Math.imul(Dt,de)|0,S=S+Math.imul(Pt,pe)|0,E=(E=E+Math.imul(Pt,Re)|0)+Math.imul(lt,pe)|0,T=T+Math.imul(lt,Re)|0,S=S+Math.imul(Nt,ie)|0,E=(E=E+Math.imul(Nt,xe)|0)+Math.imul(G,ie)|0,T=T+Math.imul(G,xe)|0,S=S+Math.imul(X,Zt)|0,E=(E=E+Math.imul(X,Te)|0)+Math.imul(it,Zt)|0,T=T+Math.imul(it,Te)|0,S=S+Math.imul(st,Ae)|0,E=(E=E+Math.imul(st,Pe)|0)+Math.imul(Ot,Ae)|0,T=T+Math.imul(Ot,Pe)|0;var bn=(B+(S=S+Math.imul(et,fe)|0)|0)+((8191&(E=(E=E+Math.imul(et,Be)|0)+Math.imul(_t,fe)|0))<<13)|0;B=((T=T+Math.imul(_t,Be)|0)+(E>>>13)|0)+(bn>>>26)|0,bn&=67108863,S=Math.imul(nt,ne),E=(E=Math.imul(nt,de))+Math.imul(ht,ne)|0,T=Math.imul(ht,de),S=S+Math.imul(pt,pe)|0,E=(E=E+Math.imul(pt,Re)|0)+Math.imul(Dt,pe)|0,T=T+Math.imul(Dt,Re)|0,S=S+Math.imul(Pt,ie)|0,E=(E=E+Math.imul(Pt,xe)|0)+Math.imul(lt,ie)|0,T=T+Math.imul(lt,xe)|0,S=S+Math.imul(Nt,Zt)|0,E=(E=E+Math.imul(Nt,Te)|0)+Math.imul(G,Zt)|0,T=T+Math.imul(G,Te)|0,S=S+Math.imul(X,Ae)|0,E=(E=E+Math.imul(X,Pe)|0)+Math.imul(it,Ae)|0,T=T+Math.imul(it,Pe)|0;var on=(B+(S=S+Math.imul(st,fe)|0)|0)+((8191&(E=(E=E+Math.imul(st,Be)|0)+Math.imul(Ot,fe)|0))<<13)|0;B=((T=T+Math.imul(Ot,Be)|0)+(E>>>13)|0)+(on>>>26)|0,on&=67108863,S=Math.imul(nt,pe),E=(E=Math.imul(nt,Re))+Math.imul(ht,pe)|0,T=Math.imul(ht,Re),S=S+Math.imul(pt,ie)|0,E=(E=E+Math.imul(pt,xe)|0)+Math.imul(Dt,ie)|0,T=T+Math.imul(Dt,xe)|0,S=S+Math.imul(Pt,Zt)|0,E=(E=E+Math.imul(Pt,Te)|0)+Math.imul(lt,Zt)|0,T=T+Math.imul(lt,Te)|0,S=S+Math.imul(Nt,Ae)|0,E=(E=E+Math.imul(Nt,Pe)|0)+Math.imul(G,Ae)|0,T=T+Math.imul(G,Pe)|0;var yn=(B+(S=S+Math.imul(X,fe)|0)|0)+((8191&(E=(E=E+Math.imul(X,Be)|0)+Math.imul(it,fe)|0))<<13)|0;B=((T=T+Math.imul(it,Be)|0)+(E>>>13)|0)+(yn>>>26)|0,yn&=67108863,S=Math.imul(nt,ie),E=(E=Math.imul(nt,xe))+Math.imul(ht,ie)|0,T=Math.imul(ht,xe),S=S+Math.imul(pt,Zt)|0,E=(E=E+Math.imul(pt,Te)|0)+Math.imul(Dt,Zt)|0,T=T+Math.imul(Dt,Te)|0,S=S+Math.imul(Pt,Ae)|0,E=(E=E+Math.imul(Pt,Pe)|0)+Math.imul(lt,Ae)|0,T=T+Math.imul(lt,Pe)|0;var Je=(B+(S=S+Math.imul(Nt,fe)|0)|0)+((8191&(E=(E=E+Math.imul(Nt,Be)|0)+Math.imul(G,fe)|0))<<13)|0;B=((T=T+Math.imul(G,Be)|0)+(E>>>13)|0)+(Je>>>26)|0,Je&=67108863,S=Math.imul(nt,Zt),E=(E=Math.imul(nt,Te))+Math.imul(ht,Zt)|0,T=Math.imul(ht,Te),S=S+Math.imul(pt,Ae)|0,E=(E=E+Math.imul(pt,Pe)|0)+Math.imul(Dt,Ae)|0,T=T+Math.imul(Dt,Pe)|0;var Ke=(B+(S=S+Math.imul(Pt,fe)|0)|0)+((8191&(E=(E=E+Math.imul(Pt,Be)|0)+Math.imul(lt,fe)|0))<<13)|0;B=((T=T+Math.imul(lt,Be)|0)+(E>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,S=Math.imul(nt,Ae),E=(E=Math.imul(nt,Pe))+Math.imul(ht,Ae)|0,T=Math.imul(ht,Pe);var ai=(B+(S=S+Math.imul(pt,fe)|0)|0)+((8191&(E=(E=E+Math.imul(pt,Be)|0)+Math.imul(Dt,fe)|0))<<13)|0;B=((T=T+Math.imul(Dt,Be)|0)+(E>>>13)|0)+(ai>>>26)|0,ai&=67108863;var wn=(B+(S=Math.imul(nt,fe))|0)+((8191&(E=(E=Math.imul(nt,Be))+Math.imul(ht,fe)|0))<<13)|0;return B=((T=Math.imul(ht,Be))+(E>>>13)|0)+(wn>>>26)|0,wn&=67108863,I[0]=ze,I[1]=qe,I[2]=or,I[3]=wt,I[4]=Ft,I[5]=Ut,I[6]=ve,I[7]=De,I[8]=yr,I[9]=Hr,I[10]=Qr,I[11]=Mn,I[12]=bn,I[13]=on,I[14]=yn,I[15]=Je,I[16]=Ke,I[17]=ai,I[18]=wn,B!==0&&(I[19]=B,k.length++),k};function g(A,N,k){k.negative=N.negative^A.negative,k.length=A.length+N.length;for(var S=0,E=0,T=0;T<k.length-1;T++){var R=E;E=0;for(var F=67108863&S,I=Math.min(T,N.length-1),B=Math.max(0,T-A.length+1);B<=I;B++){var P=T-B,H=(0|A.words[P])*(0|N.words[B]),Z=67108863&H;F=67108863&(Z=Z+F|0),E+=(R=(R=R+(H/67108864|0)|0)+(Z>>>26)|0)>>>26,R&=67108863}k.words[T]=F,S=R,R=E}return S!==0?k.words[T]=S:k.length--,k.strip()}function y(A,N,k){return new w().mulp(A,N,k)}function w(A,N){this.x=A,this.y=N}Math.imul||(b=v),i.prototype.mulTo=function(A,N){var k=this.length+A.length;return this.length===10&&A.length===10?b(this,A,N):k<63?v(this,A,N):k<1024?g(this,A,N):y(this,A,N)},w.prototype.makeRBT=function(A){for(var N=new Array(A),k=i.prototype._countBits(A)-1,S=0;S<A;S++)N[S]=this.revBin(S,k,A);return N},w.prototype.revBin=function(A,N,k){if(A===0||A===k-1)return A;for(var S=0,E=0;E<N;E++)S|=(1&A)<<N-E-1,A>>=1;return S},w.prototype.permute=function(A,N,k,S,E,T){for(var R=0;R<T;R++)S[R]=N[A[R]],E[R]=k[A[R]]},w.prototype.transform=function(A,N,k,S,E,T){this.permute(T,A,N,k,S,E);for(var R=1;R<E;R<<=1)for(var F=R<<1,I=Math.cos(2*Math.PI/F),B=Math.sin(2*Math.PI/F),P=0;P<E;P+=F)for(var H=I,Z=B,Y=0;Y<R;Y++){var dt=k[P+Y],gt=S[P+Y],bt=k[P+Y+R],Q=S[P+Y+R],q=H*bt-Z*Q;Q=H*Q+Z*bt,bt=q,k[P+Y]=dt+bt,S[P+Y]=gt+Q,k[P+Y+R]=dt-bt,S[P+Y+R]=gt-Q,Y!==F&&(q=I*H-B*Z,Z=I*Z+B*H,H=q)}},w.prototype.guessLen13b=function(A,N){var k=1|Math.max(N,A),S=1&k,E=0;for(k=k/2|0;k;k>>>=1)E++;return 1<<E+1+S},w.prototype.conjugate=function(A,N,k){if(!(k<=1))for(var S=0;S<k/2;S++){var E=A[S];A[S]=A[k-S-1],A[k-S-1]=E,E=N[S],N[S]=-N[k-S-1],N[k-S-1]=-E}},w.prototype.normalize13b=function(A,N){for(var k=0,S=0;S<N/2;S++){var E=8192*Math.round(A[2*S+1]/N)+Math.round(A[2*S]/N)+k;A[S]=67108863&E,k=E<67108864?0:E/67108864|0}return A},w.prototype.convert13b=function(A,N,k,S){for(var E=0,T=0;T<N;T++)E+=0|A[T],k[2*T]=8191&E,E>>>=13,k[2*T+1]=8191&E,E>>>=13;for(T=2*N;T<S;++T)k[T]=0;o(E===0),o((-8192&E)==0)},w.prototype.stub=function(A){for(var N=new Array(A),k=0;k<A;k++)N[k]=0;return N},w.prototype.mulp=function(A,N,k){var S=2*this.guessLen13b(A.length,N.length),E=this.makeRBT(S),T=this.stub(S),R=new Array(S),F=new Array(S),I=new Array(S),B=new Array(S),P=new Array(S),H=new Array(S),Z=k.words;Z.length=S,this.convert13b(A.words,A.length,R,S),this.convert13b(N.words,N.length,B,S),this.transform(R,T,F,I,S,E),this.transform(B,T,P,H,S,E);for(var Y=0;Y<S;Y++){var dt=F[Y]*P[Y]-I[Y]*H[Y];I[Y]=F[Y]*H[Y]+I[Y]*P[Y],F[Y]=dt}return this.conjugate(F,I,S),this.transform(F,I,Z,T,S,E),this.conjugate(Z,T,S),this.normalize13b(Z,S),k.negative=A.negative^N.negative,k.length=A.length+N.length,k.strip()},i.prototype.mul=function(A){var N=new i(null);return N.words=new Array(this.length+A.length),this.mulTo(A,N)},i.prototype.mulf=function(A){var N=new i(null);return N.words=new Array(this.length+A.length),y(this,A,N)},i.prototype.imul=function(A){return this.clone().mulTo(A,this)},i.prototype.imuln=function(A){o(typeof A=="number"),o(A<67108864);for(var N=0,k=0;k<this.length;k++){var S=(0|this.words[k])*A,E=(67108863&S)+(67108863&N);N>>=26,N+=S/67108864|0,N+=E>>>26,this.words[k]=67108863&E}return N!==0&&(this.words[k]=N,this.length++),this},i.prototype.muln=function(A){return this.clone().imuln(A)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(A){var N=m(A);if(N.length===0)return new i(1);for(var k=this,S=0;S<N.length&&N[S]===0;S++,k=k.sqr());if(++S<N.length)for(var E=k.sqr();S<N.length;S++,E=E.sqr())N[S]!==0&&(k=k.mul(E));return k},i.prototype.iushln=function(A){o(typeof A=="number"&&A>=0);var N,k=A%26,S=(A-k)/26,E=67108863>>>26-k<<26-k;if(k!==0){var T=0;for(N=0;N<this.length;N++){var R=this.words[N]&E,F=(0|this.words[N])-R<<k;this.words[N]=F|T,T=R>>>26-k}T&&(this.words[N]=T,this.length++)}if(S!==0){for(N=this.length-1;N>=0;N--)this.words[N+S]=this.words[N];for(N=0;N<S;N++)this.words[N]=0;this.length+=S}return this.strip()},i.prototype.ishln=function(A){return o(this.negative===0),this.iushln(A)},i.prototype.iushrn=function(A,N,k){var S;o(typeof A=="number"&&A>=0),S=N?(N-N%26)/26:0;var E=A%26,T=Math.min((A-E)/26,this.length),R=67108863^67108863>>>E<<E,F=k;if(S-=T,S=Math.max(0,S),F){for(var I=0;I<T;I++)F.words[I]=this.words[I];F.length=T}if(T!==0)if(this.length>T)for(this.length-=T,I=0;I<this.length;I++)this.words[I]=this.words[I+T];else this.words[0]=0,this.length=1;var B=0;for(I=this.length-1;I>=0&&(B!==0||I>=S);I--){var P=0|this.words[I];this.words[I]=B<<26-E|P>>>E,B=P&R}return F&&B!==0&&(F.words[F.length++]=B),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(A,N,k){return o(this.negative===0),this.iushrn(A,N,k)},i.prototype.shln=function(A){return this.clone().ishln(A)},i.prototype.ushln=function(A){return this.clone().iushln(A)},i.prototype.shrn=function(A){return this.clone().ishrn(A)},i.prototype.ushrn=function(A){return this.clone().iushrn(A)},i.prototype.testn=function(A){o(typeof A=="number"&&A>=0);var N=A%26,k=(A-N)/26,S=1<<N;return!(this.length<=k||!(this.words[k]&S))},i.prototype.imaskn=function(A){o(typeof A=="number"&&A>=0);var N=A%26,k=(A-N)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=k)return this;if(N!==0&&k++,this.length=Math.min(k,this.length),N!==0){var S=67108863^67108863>>>N<<N;this.words[this.length-1]&=S}return this.strip()},i.prototype.maskn=function(A){return this.clone().imaskn(A)},i.prototype.iaddn=function(A){return o(typeof A=="number"),o(A<67108864),A<0?this.isubn(-A):this.negative!==0?this.length===1&&(0|this.words[0])<A?(this.words[0]=A-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(A),this.negative=1,this):this._iaddn(A)},i.prototype._iaddn=function(A){this.words[0]+=A;for(var N=0;N<this.length&&this.words[N]>=67108864;N++)this.words[N]-=67108864,N===this.length-1?this.words[N+1]=1:this.words[N+1]++;return this.length=Math.max(this.length,N+1),this},i.prototype.isubn=function(A){if(o(typeof A=="number"),o(A<67108864),A<0)return this.iaddn(-A);if(this.negative!==0)return this.negative=0,this.iaddn(A),this.negative=1,this;if(this.words[0]-=A,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var N=0;N<this.length&&this.words[N]<0;N++)this.words[N]+=67108864,this.words[N+1]-=1;return this.strip()},i.prototype.addn=function(A){return this.clone().iaddn(A)},i.prototype.subn=function(A){return this.clone().isubn(A)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(A,N,k){var S,E,T=A.length+k;this._expand(T);var R=0;for(S=0;S<A.length;S++){E=(0|this.words[S+k])+R;var F=(0|A.words[S])*N;R=((E-=67108863&F)>>26)-(F/67108864|0),this.words[S+k]=67108863&E}for(;S<this.length-k;S++)R=(E=(0|this.words[S+k])+R)>>26,this.words[S+k]=67108863&E;if(R===0)return this.strip();for(o(R===-1),R=0,S=0;S<this.length;S++)R=(E=-(0|this.words[S])+R)>>26,this.words[S]=67108863&E;return this.negative=1,this.strip()},i.prototype._wordDiv=function(A,N){var k=this.length-A.length,S=this.clone(),E=A,T=0|E.words[E.length-1];(k=26-this._countBits(T))!=0&&(E=E.ushln(k),S.iushln(k),T=0|E.words[E.length-1]);var R,F=S.length-E.length;if(N!=="mod"){(R=new i(null)).length=F+1,R.words=new Array(R.length);for(var I=0;I<R.length;I++)R.words[I]=0}var B=S.clone()._ishlnsubmul(E,1,F);B.negative===0&&(S=B,R&&(R.words[F]=1));for(var P=F-1;P>=0;P--){var H=67108864*(0|S.words[E.length+P])+(0|S.words[E.length+P-1]);for(H=Math.min(H/T|0,67108863),S._ishlnsubmul(E,H,P);S.negative!==0;)H--,S.negative=0,S._ishlnsubmul(E,1,P),S.isZero()||(S.negative^=1);R&&(R.words[P]=H)}return R&&R.strip(),S.strip(),N!=="div"&&k!==0&&S.iushrn(k),{div:R||null,mod:S}},i.prototype.divmod=function(A,N,k){return o(!A.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:this.negative!==0&&A.negative===0?(T=this.neg().divmod(A,N),N!=="mod"&&(S=T.div.neg()),N!=="div"&&(E=T.mod.neg(),k&&E.negative!==0&&E.iadd(A)),{div:S,mod:E}):this.negative===0&&A.negative!==0?(T=this.divmod(A.neg(),N),N!=="mod"&&(S=T.div.neg()),{div:S,mod:T.mod}):this.negative&A.negative?(T=this.neg().divmod(A.neg(),N),N!=="div"&&(E=T.mod.neg(),k&&E.negative!==0&&E.isub(A)),{div:T.div,mod:E}):A.length>this.length||this.cmp(A)<0?{div:new i(0),mod:this}:A.length===1?N==="div"?{div:this.divn(A.words[0]),mod:null}:N==="mod"?{div:null,mod:new i(this.modn(A.words[0]))}:{div:this.divn(A.words[0]),mod:new i(this.modn(A.words[0]))}:this._wordDiv(A,N);var S,E,T},i.prototype.div=function(A){return this.divmod(A,"div",!1).div},i.prototype.mod=function(A){return this.divmod(A,"mod",!1).mod},i.prototype.umod=function(A){return this.divmod(A,"mod",!0).mod},i.prototype.divRound=function(A){var N=this.divmod(A);if(N.mod.isZero())return N.div;var k=N.div.negative!==0?N.mod.isub(A):N.mod,S=A.ushrn(1),E=A.andln(1),T=k.cmp(S);return T<0||E===1&&T===0?N.div:N.div.negative!==0?N.div.isubn(1):N.div.iaddn(1)},i.prototype.modn=function(A){o(A<=67108863);for(var N=(1<<26)%A,k=0,S=this.length-1;S>=0;S--)k=(N*k+(0|this.words[S]))%A;return k},i.prototype.idivn=function(A){o(A<=67108863);for(var N=0,k=this.length-1;k>=0;k--){var S=(0|this.words[k])+67108864*N;this.words[k]=S/A|0,N=S%A}return this.strip()},i.prototype.divn=function(A){return this.clone().idivn(A)},i.prototype.egcd=function(A){o(A.negative===0),o(!A.isZero());var N=this,k=A.clone();N=N.negative!==0?N.umod(A):N.clone();for(var S=new i(1),E=new i(0),T=new i(0),R=new i(1),F=0;N.isEven()&&k.isEven();)N.iushrn(1),k.iushrn(1),++F;for(var I=k.clone(),B=N.clone();!N.isZero();){for(var P=0,H=1;!(N.words[0]&H)&&P<26;++P,H<<=1);if(P>0)for(N.iushrn(P);P-- >0;)(S.isOdd()||E.isOdd())&&(S.iadd(I),E.isub(B)),S.iushrn(1),E.iushrn(1);for(var Z=0,Y=1;!(k.words[0]&Y)&&Z<26;++Z,Y<<=1);if(Z>0)for(k.iushrn(Z);Z-- >0;)(T.isOdd()||R.isOdd())&&(T.iadd(I),R.isub(B)),T.iushrn(1),R.iushrn(1);N.cmp(k)>=0?(N.isub(k),S.isub(T),E.isub(R)):(k.isub(N),T.isub(S),R.isub(E))}return{a:T,b:R,gcd:k.iushln(F)}},i.prototype._invmp=function(A){o(A.negative===0),o(!A.isZero());var N=this,k=A.clone();N=N.negative!==0?N.umod(A):N.clone();for(var S,E=new i(1),T=new i(0),R=k.clone();N.cmpn(1)>0&&k.cmpn(1)>0;){for(var F=0,I=1;!(N.words[0]&I)&&F<26;++F,I<<=1);if(F>0)for(N.iushrn(F);F-- >0;)E.isOdd()&&E.iadd(R),E.iushrn(1);for(var B=0,P=1;!(k.words[0]&P)&&B<26;++B,P<<=1);if(B>0)for(k.iushrn(B);B-- >0;)T.isOdd()&&T.iadd(R),T.iushrn(1);N.cmp(k)>=0?(N.isub(k),E.isub(T)):(k.isub(N),T.isub(E))}return(S=N.cmpn(1)===0?E:T).cmpn(0)<0&&S.iadd(A),S},i.prototype.gcd=function(A){if(this.isZero())return A.abs();if(A.isZero())return this.abs();var N=this.clone(),k=A.clone();N.negative=0,k.negative=0;for(var S=0;N.isEven()&&k.isEven();S++)N.iushrn(1),k.iushrn(1);for(;;){for(;N.isEven();)N.iushrn(1);for(;k.isEven();)k.iushrn(1);var E=N.cmp(k);if(E<0){var T=N;N=k,k=T}else if(E===0||k.cmpn(1)===0)break;N.isub(k)}return k.iushln(S)},i.prototype.invm=function(A){return this.egcd(A).a.umod(A)},i.prototype.isEven=function(){return(1&this.words[0])==0},i.prototype.isOdd=function(){return(1&this.words[0])==1},i.prototype.andln=function(A){return this.words[0]&A},i.prototype.bincn=function(A){o(typeof A=="number");var N=A%26,k=(A-N)/26,S=1<<N;if(this.length<=k)return this._expand(k+1),this.words[k]|=S,this;for(var E=S,T=k;E!==0&&T<this.length;T++){var R=0|this.words[T];E=(R+=E)>>>26,R&=67108863,this.words[T]=R}return E!==0&&(this.words[T]=E,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(A){var N,k=A<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;if(this.strip(),this.length>1)N=1;else{k&&(A=-A),o(A<=67108863,"Number is too big");var S=0|this.words[0];N=S===A?0:S<A?-1:1}return this.negative!==0?0|-N:N},i.prototype.cmp=function(A){if(this.negative!==0&&A.negative===0)return-1;if(this.negative===0&&A.negative!==0)return 1;var N=this.ucmp(A);return this.negative!==0?0|-N:N},i.prototype.ucmp=function(A){if(this.length>A.length)return 1;if(this.length<A.length)return-1;for(var N=0,k=this.length-1;k>=0;k--){var S=0|this.words[k],E=0|A.words[k];if(S!==E){S<E?N=-1:S>E&&(N=1);break}}return N},i.prototype.gtn=function(A){return this.cmpn(A)===1},i.prototype.gt=function(A){return this.cmp(A)===1},i.prototype.gten=function(A){return this.cmpn(A)>=0},i.prototype.gte=function(A){return this.cmp(A)>=0},i.prototype.ltn=function(A){return this.cmpn(A)===-1},i.prototype.lt=function(A){return this.cmp(A)===-1},i.prototype.lten=function(A){return this.cmpn(A)<=0},i.prototype.lte=function(A){return this.cmp(A)<=0},i.prototype.eqn=function(A){return this.cmpn(A)===0},i.prototype.eq=function(A){return this.cmp(A)===0},i.red=function(A){return new L(A)},i.prototype.toRed=function(A){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),A.convertTo(this)._forceRed(A)},i.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(A){return this.red=A,this},i.prototype.forceRed=function(A){return o(!this.red,"Already a number in reduction context"),this._forceRed(A)},i.prototype.redAdd=function(A){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,A)},i.prototype.redIAdd=function(A){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,A)},i.prototype.redSub=function(A){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,A)},i.prototype.redISub=function(A){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,A)},i.prototype.redShl=function(A){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,A)},i.prototype.redMul=function(A){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,A),this.red.mul(this,A)},i.prototype.redIMul=function(A){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,A),this.red.imul(this,A)},i.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(A){return o(this.red&&!A.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,A)};var x={k256:null,p224:null,p192:null,p25519:null};function C(A,N){this.name=A,this.p=new i(N,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function O(){C.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function D(){C.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function j(){C.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function U(){C.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function L(A){if(typeof A=="string"){var N=i._prime(A);this.m=N.p,this.prime=N}else o(A.gtn(1),"modulus must be greater than 1"),this.m=A,this.prime=null}function V(A){L.call(this,A),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(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)}C.prototype._tmp=function(){var A=new i(null);return A.words=new Array(Math.ceil(this.n/13)),A},C.prototype.ireduce=function(A){var N,k=A;do this.split(k,this.tmp),N=(k=(k=this.imulK(k)).iadd(this.tmp)).bitLength();while(N>this.n);var S=N<this.n?-1:k.ucmp(this.p);return S===0?(k.words[0]=0,k.length=1):S>0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},C.prototype.split=function(A,N){A.iushrn(this.n,0,N)},C.prototype.imulK=function(A){return A.imul(this.k)},s(O,C),O.prototype.split=function(A,N){for(var k=4194303,S=Math.min(A.length,9),E=0;E<S;E++)N.words[E]=A.words[E];if(N.length=S,A.length<=9)return A.words[0]=0,void(A.length=1);var T=A.words[9];for(N.words[N.length++]=T&k,E=10;E<A.length;E++){var R=0|A.words[E];A.words[E-10]=(R&k)<<4|T>>>22,T=R}T>>>=22,A.words[E-10]=T,T===0&&A.length>10?A.length-=10:A.length-=9},O.prototype.imulK=function(A){A.words[A.length]=0,A.words[A.length+1]=0,A.length+=2;for(var N=0,k=0;k<A.length;k++){var S=0|A.words[k];N+=977*S,A.words[k]=67108863&N,N=64*S+(N/67108864|0)}return A.words[A.length-1]===0&&(A.length--,A.words[A.length-1]===0&&A.length--),A},s(D,C),s(j,C),s(U,C),U.prototype.imulK=function(A){for(var N=0,k=0;k<A.length;k++){var S=19*(0|A.words[k])+N,E=67108863&S;S>>>=26,A.words[k]=E,N=S}return N!==0&&(A.words[A.length++]=N),A},i._prime=function(A){if(x[A])return x[A];var N;if(A==="k256")N=new O;else if(A==="p224")N=new D;else if(A==="p192")N=new j;else{if(A!=="p25519")throw new Error("Unknown prime "+A);N=new U}return x[A]=N,N},L.prototype._verify1=function(A){o(A.negative===0,"red works only with positives"),o(A.red,"red works only with red numbers")},L.prototype._verify2=function(A,N){o((A.negative|N.negative)==0,"red works only with positives"),o(A.red&&A.red===N.red,"red works only with red numbers")},L.prototype.imod=function(A){return this.prime?this.prime.ireduce(A)._forceRed(this):A.umod(this.m)._forceRed(this)},L.prototype.neg=function(A){return A.isZero()?A.clone():this.m.sub(A)._forceRed(this)},L.prototype.add=function(A,N){this._verify2(A,N);var k=A.add(N);return k.cmp(this.m)>=0&&k.isub(this.m),k._forceRed(this)},L.prototype.iadd=function(A,N){this._verify2(A,N);var k=A.iadd(N);return k.cmp(this.m)>=0&&k.isub(this.m),k},L.prototype.sub=function(A,N){this._verify2(A,N);var k=A.sub(N);return k.cmpn(0)<0&&k.iadd(this.m),k._forceRed(this)},L.prototype.isub=function(A,N){this._verify2(A,N);var k=A.isub(N);return k.cmpn(0)<0&&k.iadd(this.m),k},L.prototype.shl=function(A,N){return this._verify1(A),this.imod(A.ushln(N))},L.prototype.imul=function(A,N){return this._verify2(A,N),this.imod(A.imul(N))},L.prototype.mul=function(A,N){return this._verify2(A,N),this.imod(A.mul(N))},L.prototype.isqr=function(A){return this.imul(A,A.clone())},L.prototype.sqr=function(A){return this.mul(A,A)},L.prototype.sqrt=function(A){if(A.isZero())return A.clone();var N=this.m.andln(3);if(o(N%2==1),N===3){var k=this.m.add(new i(1)).iushrn(2);return this.pow(A,k)}for(var S=this.m.subn(1),E=0;!S.isZero()&&S.andln(1)===0;)E++,S.iushrn(1);o(!S.isZero());var T=new i(1).toRed(this),R=T.redNeg(),F=this.m.subn(1).iushrn(1),I=this.m.bitLength();for(I=new i(2*I*I).toRed(this);this.pow(I,F).cmp(R)!==0;)I.redIAdd(R);for(var B=this.pow(I,S),P=this.pow(A,S.addn(1).iushrn(1)),H=this.pow(A,S),Z=E;H.cmp(T)!==0;){for(var Y=H,dt=0;Y.cmp(T)!==0;dt++)Y=Y.redSqr();o(dt<Z);var gt=this.pow(B,new i(1).iushln(Z-dt-1));P=P.redMul(gt),B=gt.redSqr(),H=H.redMul(B),Z=dt}return P},L.prototype.invm=function(A){var N=A._invmp(this.m);return N.negative!==0?(N.negative=0,this.imod(N).redNeg()):this.imod(N)},L.prototype.pow=function(A,N){if(N.isZero())return new i(1).toRed(this);if(N.cmpn(1)===0)return A.clone();var k=4,S=new Array(1<<k);S[0]=new i(1).toRed(this),S[1]=A;for(var E=2;E<S.length;E++)S[E]=this.mul(S[E-1],A);var T=S[0],R=0,F=0,I=N.bitLength()%26;for(I===0&&(I=26),E=N.length-1;E>=0;E--){for(var B=N.words[E],P=I-1;P>=0;P--){var H=B>>P&1;T!==S[0]&&(T=this.sqr(T)),H!==0||R!==0?(R<<=1,R|=H,(++F===k||E===0&&P===0)&&(T=this.mul(T,S[R]),F=0,R=0)):F=0}I=26}return T},L.prototype.convertTo=function(A){var N=A.umod(this.m);return N===A?N.clone():N},L.prototype.convertFrom=function(A){var N=A.clone();return N.red=null,N},i.mont=function(A){return new V(A)},s(V,L),V.prototype.convertTo=function(A){return this.imod(A.ushln(this.shift))},V.prototype.convertFrom=function(A){var N=this.imod(A.mul(this.rinv));return N.red=null,N},V.prototype.imul=function(A,N){if(A.isZero()||N.isZero())return A.words[0]=0,A.length=1,A;var k=A.imul(N),S=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=k.isub(S).iushrn(this.shift),T=E;return E.cmp(this.m)>=0?T=E.isub(this.m):E.cmpn(0)<0&&(T=E.iadd(this.m)),T._forceRed(this)},V.prototype.mul=function(A,N){if(A.isZero()||N.isZero())return new i(0)._forceRed(this);var k=A.mul(N),S=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=k.isub(S).iushrn(this.shift),T=E;return E.cmp(this.m)>=0?T=E.isub(this.m):E.cmpn(0)<0&&(T=E.iadd(this.m)),T._forceRed(this)},V.prototype.invm=function(A){return this.imod(A._invmp(this.m).mul(this.r2))._forceRed(this)}})(r===void 0||r,void 0)},{buffer:188}],185:[function(t,r,e){e.byteLength=u,e.toByteArray=h,e.fromByteArray=m;for(var n=[],a=[],o=typeof Uint8Array!="undefined"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,c=s.length;i<c;++i)n[i]=s[i],a[s.charCodeAt(i)]=i;function l(v){var b=v.length;if(b%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=v.indexOf("=");return g===-1&&(g=b),[g,g===b?0:4-g%4]}function u(v){var b=l(v),g=b[0],y=b[1];return 3*(g+y)/4-y}function f(v,b,g){return 3*(b+g)/4-g}function h(v){var b,g,y=l(v),w=y[0],x=y[1],C=new o(f(v,w,x)),O=0,D=x>0?w-4:w;for(g=0;g<D;g+=4)b=a[v.charCodeAt(g)]<<18|a[v.charCodeAt(g+1)]<<12|a[v.charCodeAt(g+2)]<<6|a[v.charCodeAt(g+3)],C[O++]=b>>16&255,C[O++]=b>>8&255,C[O++]=255&b;return x===2&&(b=a[v.charCodeAt(g)]<<2|a[v.charCodeAt(g+1)]>>4,C[O++]=255&b),x===1&&(b=a[v.charCodeAt(g)]<<10|a[v.charCodeAt(g+1)]<<4|a[v.charCodeAt(g+2)]>>2,C[O++]=b>>8&255,C[O++]=255&b),C}function d(v){return n[v>>18&63]+n[v>>12&63]+n[v>>6&63]+n[63&v]}function p(v,b,g){for(var y,w=[],x=b;x<g;x+=3)y=(v[x]<<16&16711680)+(v[x+1]<<8&65280)+(255&v[x+2]),w.push(d(y));return w.join("")}function m(v){for(var b,g=v.length,y=g%3,w=[],x=16383,C=0,O=g-y;C<O;C+=x)w.push(p(v,C,C+x>O?O:C+x));return y===1?(b=v[g-1],w.push(n[b>>2]+n[b<<4&63]+"==")):y===2&&(b=(v[g-2]<<8)+v[g-1],w.push(n[b>>10]+n[b>>4&63]+n[b<<2&63]+"=")),w.join("")}a[45]=62,a[95]=63},{}],186:[function(t,r,e){(function(n,a){function o(k,S){if(!k)throw new Error(S||"Assertion failed")}function s(k,S){k.super_=S;var E=function(){};E.prototype=S.prototype,k.prototype=new E,k.prototype.constructor=k}function i(k,S,E){if(i.isBN(k))return k;this.negative=0,this.words=null,this.length=0,this.red=null,k!==null&&(S!=="le"&&S!=="be"||(E=S,S=10),this._init(k||0,S||10,E||"be"))}var c;typeof n=="object"?n.exports=i:a.BN=i,i.BN=i,i.wordSize=26;try{c=typeof window!="undefined"&&window.Buffer!==void 0?window.Buffer:t("buffer").Buffer}catch(k){}function l(k,S){var E=k.charCodeAt(S);return E>=48&&E<=57?E-48:E>=65&&E<=70?E-55:E>=97&&E<=102?E-87:void o(!1,"Invalid character in "+k)}function u(k,S,E){var T=l(k,E);return E-1>=S&&(T|=l(k,E-1)<<4),T}function f(k,S,E,T){for(var R=0,F=0,I=Math.min(k.length,E),B=S;B<I;B++){var P=k.charCodeAt(B)-48;R*=T,F=P>=49?P-49+10:P>=17?P-17+10:P,o(P>=0&&F<T,"Invalid character"),R+=F}return R}function h(k,S){k.words=S.words,k.length=S.length,k.negative=S.negative,k.red=S.red}if(i.isBN=function(k){return k instanceof i||k!==null&&typeof k=="object"&&k.constructor.wordSize===i.wordSize&&Array.isArray(k.words)},i.max=function(k,S){return k.cmp(S)>0?k:S},i.min=function(k,S){return k.cmp(S)<0?k:S},i.prototype._init=function(k,S,E){if(typeof k=="number")return this._initNumber(k,S,E);if(typeof k=="object")return this._initArray(k,S,E);S==="hex"&&(S=16),o(S===(0|S)&&S>=2&&S<=36);var T=0;(k=k.toString().replace(/\s+/g,""))[0]==="-"&&(T++,this.negative=1),T<k.length&&(S===16?this._parseHex(k,T,E):(this._parseBase(k,S,T),E==="le"&&this._initArray(this.toArray(),S,E)))},i.prototype._initNumber=function(k,S,E){k<0&&(this.negative=1,k=-k),k<67108864?(this.words=[67108863&k],this.length=1):k<4503599627370496?(this.words=[67108863&k,k/67108864&67108863],this.length=2):(o(k<9007199254740992),this.words=[67108863&k,k/67108864&67108863,1],this.length=3),E==="le"&&this._initArray(this.toArray(),S,E)},i.prototype._initArray=function(k,S,E){if(o(typeof k.length=="number"),k.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(k.length/3),this.words=new Array(this.length);for(var T=0;T<this.length;T++)this.words[T]=0;var R,F,I=0;if(E==="be")for(T=k.length-1,R=0;T>=0;T-=3)F=k[T]|k[T-1]<<8|k[T-2]<<16,this.words[R]|=F<<I&67108863,this.words[R+1]=F>>>26-I&67108863,(I+=24)>=26&&(I-=26,R++);else if(E==="le")for(T=0,R=0;T<k.length;T+=3)F=k[T]|k[T+1]<<8|k[T+2]<<16,this.words[R]|=F<<I&67108863,this.words[R+1]=F>>>26-I&67108863,(I+=24)>=26&&(I-=26,R++);return this._strip()},i.prototype._parseHex=function(k,S,E){this.length=Math.ceil((k.length-S)/6),this.words=new Array(this.length);for(var T=0;T<this.length;T++)this.words[T]=0;var R,F=0,I=0;if(E==="be")for(T=k.length-1;T>=S;T-=2)R=u(k,S,T)<<F,this.words[I]|=67108863&R,F>=18?(F-=18,I+=1,this.words[I]|=R>>>26):F+=8;else for(T=(k.length-S)%2==0?S+1:S;T<k.length;T+=2)R=u(k,S,T)<<F,this.words[I]|=67108863&R,F>=18?(F-=18,I+=1,this.words[I]|=R>>>26):F+=8;this._strip()},i.prototype._parseBase=function(k,S,E){this.words=[0],this.length=1;for(var T=0,R=1;R<=67108863;R*=S)T++;T--,R=R/S|0;for(var F=k.length-E,I=F%T,B=Math.min(F,F-I)+E,P=0,H=E;H<B;H+=T)P=f(k,H,H+T,S),this.imuln(R),this.words[0]+P<67108864?this.words[0]+=P:this._iaddn(P);if(I!==0){var Z=1;for(P=f(k,H,k.length,S),H=0;H<I;H++)Z*=S;this.imuln(Z),this.words[0]+P<67108864?this.words[0]+=P:this._iaddn(P)}this._strip()},i.prototype.copy=function(k){k.words=new Array(this.length);for(var S=0;S<this.length;S++)k.words[S]=this.words[S];k.length=this.length,k.negative=this.negative,k.red=this.red},i.prototype._move=function(k){h(k,this)},i.prototype.clone=function(){var k=new i(null);return this.copy(k),k},i.prototype._expand=function(k){for(;this.length<k;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol!="undefined"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(k){i.prototype.inspect=d}else i.prototype.inspect=d;function d(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var p=["","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"],m=[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],v=[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];i.prototype.toString=function(k,S){var E;if(S=0|S||1,(k=k||10)===16||k==="hex"){E="";for(var T=0,R=0,F=0;F<this.length;F++){var I=this.words[F],B=(16777215&(I<<T|R)).toString(16);R=I>>>24-T&16777215,(T+=2)>=26&&(T-=26,F--),E=R!==0||F!==this.length-1?p[6-B.length]+B+E:B+E}for(R!==0&&(E=R.toString(16)+E);E.length%S!=0;)E="0"+E;return this.negative!==0&&(E="-"+E),E}if(k===(0|k)&&k>=2&&k<=36){var P=m[k],H=v[k];E="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var Y=Z.modrn(H).toString(k);E=(Z=Z.idivn(H)).isZero()?Y+E:p[P-Y.length]+Y+E}for(this.isZero()&&(E="0"+E);E.length%S!=0;)E="0"+E;return this.negative!==0&&(E="-"+E),E}o(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var k=this.words[0];return this.length===2?k+=67108864*this.words[1]:this.length===3&&this.words[2]===1?k+=4503599627370496+67108864*this.words[1]:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-k:k},i.prototype.toJSON=function(){return this.toString(16,2)},c&&(i.prototype.toBuffer=function(k,S){return this.toArrayLike(c,k,S)}),i.prototype.toArray=function(k,S){return this.toArrayLike(Array,k,S)};var b=function(k,S){return k.allocUnsafe?k.allocUnsafe(S):new k(S)};function g(k){for(var S=new Array(k.bitLength()),E=0;E<S.length;E++){var T=E/26|0,R=E%26;S[E]=k.words[T]>>>R&1}return S}function y(k,S,E){E.negative=S.negative^k.negative;var T=k.length+S.length|0;E.length=T,T=T-1|0;var R=0|k.words[0],F=0|S.words[0],I=R*F,B=67108863&I,P=I/67108864|0;E.words[0]=B;for(var H=1;H<T;H++){for(var Z=P>>>26,Y=67108863&P,dt=Math.min(H,S.length-1),gt=Math.max(0,H-k.length+1);gt<=dt;gt++){var bt=H-gt|0;Z+=(I=(R=0|k.words[bt])*(F=0|S.words[gt])+Y)/67108864|0,Y=67108863&I}E.words[H]=0|Y,P=0|Z}return P!==0?E.words[H]=0|P:E.length--,E._strip()}i.prototype.toArrayLike=function(k,S,E){this._strip();var T=this.byteLength(),R=E||Math.max(1,T);o(T<=R,"byte array longer than desired length"),o(R>0,"Requested array length <= 0");var F=b(k,R);return this["_toArrayLike"+(S==="le"?"LE":"BE")](F,T),F},i.prototype._toArrayLikeLE=function(k,S){for(var E=0,T=0,R=0,F=0;R<this.length;R++){var I=this.words[R]<<F|T;k[E++]=255&I,E<k.length&&(k[E++]=I>>8&255),E<k.length&&(k[E++]=I>>16&255),F===6?(E<k.length&&(k[E++]=I>>24&255),T=0,F=0):(T=I>>>24,F+=2)}if(E<k.length)for(k[E++]=T;E<k.length;)k[E++]=0},i.prototype._toArrayLikeBE=function(k,S){for(var E=k.length-1,T=0,R=0,F=0;R<this.length;R++){var I=this.words[R]<<F|T;k[E--]=255&I,E>=0&&(k[E--]=I>>8&255),E>=0&&(k[E--]=I>>16&255),F===6?(E>=0&&(k[E--]=I>>24&255),T=0,F=0):(T=I>>>24,F+=2)}if(E>=0)for(k[E--]=T;E>=0;)k[E--]=0},Math.clz32?i.prototype._countBits=function(k){return 32-Math.clz32(k)}:i.prototype._countBits=function(k){var S=k,E=0;return S>=4096&&(E+=13,S>>>=13),S>=64&&(E+=7,S>>>=7),S>=8&&(E+=4,S>>>=4),S>=2&&(E+=2,S>>>=2),E+S},i.prototype._zeroBits=function(k){if(k===0)return 26;var S=k,E=0;return!(8191&S)&&(E+=13,S>>>=13),!(127&S)&&(E+=7,S>>>=7),!(15&S)&&(E+=4,S>>>=4),!(3&S)&&(E+=2,S>>>=2),!(1&S)&&E++,E},i.prototype.bitLength=function(){var k=this.words[this.length-1],S=this._countBits(k);return 26*(this.length-1)+S},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var k=0,S=0;S<this.length;S++){var E=this._zeroBits(this.words[S]);if(k+=E,E!==26)break}return k},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(k){return this.negative!==0?this.abs().inotn(k).iaddn(1):this.clone()},i.prototype.fromTwos=function(k){return this.testn(k-1)?this.notn(k).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(k){for(;this.length<k.length;)this.words[this.length++]=0;for(var S=0;S<k.length;S++)this.words[S]=this.words[S]|k.words[S];return this._strip()},i.prototype.ior=function(k){return o((this.negative|k.negative)==0),this.iuor(k)},i.prototype.or=function(k){return this.length>k.length?this.clone().ior(k):k.clone().ior(this)},i.prototype.uor=function(k){return this.length>k.length?this.clone().iuor(k):k.clone().iuor(this)},i.prototype.iuand=function(k){var S;S=this.length>k.length?k:this;for(var E=0;E<S.length;E++)this.words[E]=this.words[E]&k.words[E];return this.length=S.length,this._strip()},i.prototype.iand=function(k){return o((this.negative|k.negative)==0),this.iuand(k)},i.prototype.and=function(k){return this.length>k.length?this.clone().iand(k):k.clone().iand(this)},i.prototype.uand=function(k){return this.length>k.length?this.clone().iuand(k):k.clone().iuand(this)},i.prototype.iuxor=function(k){var S,E;this.length>k.length?(S=this,E=k):(S=k,E=this);for(var T=0;T<E.length;T++)this.words[T]=S.words[T]^E.words[T];if(this!==S)for(;T<S.length;T++)this.words[T]=S.words[T];return this.length=S.length,this._strip()},i.prototype.ixor=function(k){return o((this.negative|k.negative)==0),this.iuxor(k)},i.prototype.xor=function(k){return this.length>k.length?this.clone().ixor(k):k.clone().ixor(this)},i.prototype.uxor=function(k){return this.length>k.length?this.clone().iuxor(k):k.clone().iuxor(this)},i.prototype.inotn=function(k){o(typeof k=="number"&&k>=0);var S=0|Math.ceil(k/26),E=k%26;this._expand(S),E>0&&S--;for(var T=0;T<S;T++)this.words[T]=67108863&~this.words[T];return E>0&&(this.words[T]=~this.words[T]&67108863>>26-E),this._strip()},i.prototype.notn=function(k){return this.clone().inotn(k)},i.prototype.setn=function(k,S){o(typeof k=="number"&&k>=0);var E=k/26|0,T=k%26;return this._expand(E+1),this.words[E]=S?this.words[E]|1<<T:this.words[E]&~(1<<T),this._strip()},i.prototype.iadd=function(k){var S,E,T;if(this.negative!==0&&k.negative===0)return this.negative=0,S=this.isub(k),this.negative^=1,this._normSign();if(this.negative===0&&k.negative!==0)return k.negative=0,S=this.isub(k),k.negative=1,S._normSign();this.length>k.length?(E=this,T=k):(E=k,T=this);for(var R=0,F=0;F<T.length;F++)S=(0|E.words[F])+(0|T.words[F])+R,this.words[F]=67108863&S,R=S>>>26;for(;R!==0&&F<E.length;F++)S=(0|E.words[F])+R,this.words[F]=67108863&S,R=S>>>26;if(this.length=E.length,R!==0)this.words[this.length]=R,this.length++;else if(E!==this)for(;F<E.length;F++)this.words[F]=E.words[F];return this},i.prototype.add=function(k){var S;return k.negative!==0&&this.negative===0?(k.negative=0,S=this.sub(k),k.negative^=1,S):k.negative===0&&this.negative!==0?(this.negative=0,S=k.sub(this),this.negative=1,S):this.length>k.length?this.clone().iadd(k):k.clone().iadd(this)},i.prototype.isub=function(k){if(k.negative!==0){k.negative=0;var S=this.iadd(k);return k.negative=1,S._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(k),this.negative=1,this._normSign();var E,T,R=this.cmp(k);if(R===0)return this.negative=0,this.length=1,this.words[0]=0,this;R>0?(E=this,T=k):(E=k,T=this);for(var F=0,I=0;I<T.length;I++)F=(S=(0|E.words[I])-(0|T.words[I])+F)>>26,this.words[I]=67108863&S;for(;F!==0&&I<E.length;I++)F=(S=(0|E.words[I])+F)>>26,this.words[I]=67108863&S;if(F===0&&I<E.length&&E!==this)for(;I<E.length;I++)this.words[I]=E.words[I];return this.length=Math.max(this.length,I),E!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(k){return this.clone().isub(k)};var w=function(k,S,E){var T,R,F,I=k.words,B=S.words,P=E.words,H=0,Z=0|I[0],Y=8191&Z,dt=Z>>>13,gt=0|I[1],bt=8191>,Q=gt>>>13,q=0|I[2],tt=8191&q,et=q>>>13,_t=0|I[3],J=8191&_t,st=_t>>>13,Ot=0|I[4],W=8191&Ot,X=Ot>>>13,it=0|I[5],xt=8191&it,Nt=it>>>13,G=0|I[6],Mt=8191&G,Pt=G>>>13,lt=0|I[7],ct=8191<,pt=lt>>>13,Dt=0|I[8],rt=8191&Dt,nt=Dt>>>13,ht=0|I[9],St=8191&ht,ut=ht>>>13,vt=0|B[0],ft=8191&vt,yt=vt>>>13,Ct=0|B[1],zt=8191&Ct,Bt=Ct>>>13,re=0|B[2],Yt=8191&re,qt=re>>>13,te=0|B[3],le=8191&te,ne=te>>>13,de=0|B[4],Xt=8191&de,pe=de>>>13,Re=0|B[5],je=8191&Re,ie=Re>>>13,xe=0|B[6],ye=8191&xe,Zt=xe>>>13,Te=0|B[7],Se=8191&Te,Ae=Te>>>13,Pe=0|B[8],He=8191&Pe,fe=Pe>>>13,Be=0|B[9],ze=8191&Be,qe=Be>>>13;E.negative=k.negative^S.negative,E.length=19;var or=(H+(T=Math.imul(Y,ft))|0)+((8191&(R=(R=Math.imul(Y,yt))+Math.imul(dt,ft)|0))<<13)|0;H=((F=Math.imul(dt,yt))+(R>>>13)|0)+(or>>>26)|0,or&=67108863,T=Math.imul(bt,ft),R=(R=Math.imul(bt,yt))+Math.imul(Q,ft)|0,F=Math.imul(Q,yt);var wt=(H+(T=T+Math.imul(Y,zt)|0)|0)+((8191&(R=(R=R+Math.imul(Y,Bt)|0)+Math.imul(dt,zt)|0))<<13)|0;H=((F=F+Math.imul(dt,Bt)|0)+(R>>>13)|0)+(wt>>>26)|0,wt&=67108863,T=Math.imul(tt,ft),R=(R=Math.imul(tt,yt))+Math.imul(et,ft)|0,F=Math.imul(et,yt),T=T+Math.imul(bt,zt)|0,R=(R=R+Math.imul(bt,Bt)|0)+Math.imul(Q,zt)|0,F=F+Math.imul(Q,Bt)|0;var Ft=(H+(T=T+Math.imul(Y,Yt)|0)|0)+((8191&(R=(R=R+Math.imul(Y,qt)|0)+Math.imul(dt,Yt)|0))<<13)|0;H=((F=F+Math.imul(dt,qt)|0)+(R>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,T=Math.imul(J,ft),R=(R=Math.imul(J,yt))+Math.imul(st,ft)|0,F=Math.imul(st,yt),T=T+Math.imul(tt,zt)|0,R=(R=R+Math.imul(tt,Bt)|0)+Math.imul(et,zt)|0,F=F+Math.imul(et,Bt)|0,T=T+Math.imul(bt,Yt)|0,R=(R=R+Math.imul(bt,qt)|0)+Math.imul(Q,Yt)|0,F=F+Math.imul(Q,qt)|0;var Ut=(H+(T=T+Math.imul(Y,le)|0)|0)+((8191&(R=(R=R+Math.imul(Y,ne)|0)+Math.imul(dt,le)|0))<<13)|0;H=((F=F+Math.imul(dt,ne)|0)+(R>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,T=Math.imul(W,ft),R=(R=Math.imul(W,yt))+Math.imul(X,ft)|0,F=Math.imul(X,yt),T=T+Math.imul(J,zt)|0,R=(R=R+Math.imul(J,Bt)|0)+Math.imul(st,zt)|0,F=F+Math.imul(st,Bt)|0,T=T+Math.imul(tt,Yt)|0,R=(R=R+Math.imul(tt,qt)|0)+Math.imul(et,Yt)|0,F=F+Math.imul(et,qt)|0,T=T+Math.imul(bt,le)|0,R=(R=R+Math.imul(bt,ne)|0)+Math.imul(Q,le)|0,F=F+Math.imul(Q,ne)|0;var ve=(H+(T=T+Math.imul(Y,Xt)|0)|0)+((8191&(R=(R=R+Math.imul(Y,pe)|0)+Math.imul(dt,Xt)|0))<<13)|0;H=((F=F+Math.imul(dt,pe)|0)+(R>>>13)|0)+(ve>>>26)|0,ve&=67108863,T=Math.imul(xt,ft),R=(R=Math.imul(xt,yt))+Math.imul(Nt,ft)|0,F=Math.imul(Nt,yt),T=T+Math.imul(W,zt)|0,R=(R=R+Math.imul(W,Bt)|0)+Math.imul(X,zt)|0,F=F+Math.imul(X,Bt)|0,T=T+Math.imul(J,Yt)|0,R=(R=R+Math.imul(J,qt)|0)+Math.imul(st,Yt)|0,F=F+Math.imul(st,qt)|0,T=T+Math.imul(tt,le)|0,R=(R=R+Math.imul(tt,ne)|0)+Math.imul(et,le)|0,F=F+Math.imul(et,ne)|0,T=T+Math.imul(bt,Xt)|0,R=(R=R+Math.imul(bt,pe)|0)+Math.imul(Q,Xt)|0,F=F+Math.imul(Q,pe)|0;var De=(H+(T=T+Math.imul(Y,je)|0)|0)+((8191&(R=(R=R+Math.imul(Y,ie)|0)+Math.imul(dt,je)|0))<<13)|0;H=((F=F+Math.imul(dt,ie)|0)+(R>>>13)|0)+(De>>>26)|0,De&=67108863,T=Math.imul(Mt,ft),R=(R=Math.imul(Mt,yt))+Math.imul(Pt,ft)|0,F=Math.imul(Pt,yt),T=T+Math.imul(xt,zt)|0,R=(R=R+Math.imul(xt,Bt)|0)+Math.imul(Nt,zt)|0,F=F+Math.imul(Nt,Bt)|0,T=T+Math.imul(W,Yt)|0,R=(R=R+Math.imul(W,qt)|0)+Math.imul(X,Yt)|0,F=F+Math.imul(X,qt)|0,T=T+Math.imul(J,le)|0,R=(R=R+Math.imul(J,ne)|0)+Math.imul(st,le)|0,F=F+Math.imul(st,ne)|0,T=T+Math.imul(tt,Xt)|0,R=(R=R+Math.imul(tt,pe)|0)+Math.imul(et,Xt)|0,F=F+Math.imul(et,pe)|0,T=T+Math.imul(bt,je)|0,R=(R=R+Math.imul(bt,ie)|0)+Math.imul(Q,je)|0,F=F+Math.imul(Q,ie)|0;var yr=(H+(T=T+Math.imul(Y,ye)|0)|0)+((8191&(R=(R=R+Math.imul(Y,Zt)|0)+Math.imul(dt,ye)|0))<<13)|0;H=((F=F+Math.imul(dt,Zt)|0)+(R>>>13)|0)+(yr>>>26)|0,yr&=67108863,T=Math.imul(ct,ft),R=(R=Math.imul(ct,yt))+Math.imul(pt,ft)|0,F=Math.imul(pt,yt),T=T+Math.imul(Mt,zt)|0,R=(R=R+Math.imul(Mt,Bt)|0)+Math.imul(Pt,zt)|0,F=F+Math.imul(Pt,Bt)|0,T=T+Math.imul(xt,Yt)|0,R=(R=R+Math.imul(xt,qt)|0)+Math.imul(Nt,Yt)|0,F=F+Math.imul(Nt,qt)|0,T=T+Math.imul(W,le)|0,R=(R=R+Math.imul(W,ne)|0)+Math.imul(X,le)|0,F=F+Math.imul(X,ne)|0,T=T+Math.imul(J,Xt)|0,R=(R=R+Math.imul(J,pe)|0)+Math.imul(st,Xt)|0,F=F+Math.imul(st,pe)|0,T=T+Math.imul(tt,je)|0,R=(R=R+Math.imul(tt,ie)|0)+Math.imul(et,je)|0,F=F+Math.imul(et,ie)|0,T=T+Math.imul(bt,ye)|0,R=(R=R+Math.imul(bt,Zt)|0)+Math.imul(Q,ye)|0,F=F+Math.imul(Q,Zt)|0;var Hr=(H+(T=T+Math.imul(Y,Se)|0)|0)+((8191&(R=(R=R+Math.imul(Y,Ae)|0)+Math.imul(dt,Se)|0))<<13)|0;H=((F=F+Math.imul(dt,Ae)|0)+(R>>>13)|0)+(Hr>>>26)|0,Hr&=67108863,T=Math.imul(rt,ft),R=(R=Math.imul(rt,yt))+Math.imul(nt,ft)|0,F=Math.imul(nt,yt),T=T+Math.imul(ct,zt)|0,R=(R=R+Math.imul(ct,Bt)|0)+Math.imul(pt,zt)|0,F=F+Math.imul(pt,Bt)|0,T=T+Math.imul(Mt,Yt)|0,R=(R=R+Math.imul(Mt,qt)|0)+Math.imul(Pt,Yt)|0,F=F+Math.imul(Pt,qt)|0,T=T+Math.imul(xt,le)|0,R=(R=R+Math.imul(xt,ne)|0)+Math.imul(Nt,le)|0,F=F+Math.imul(Nt,ne)|0,T=T+Math.imul(W,Xt)|0,R=(R=R+Math.imul(W,pe)|0)+Math.imul(X,Xt)|0,F=F+Math.imul(X,pe)|0,T=T+Math.imul(J,je)|0,R=(R=R+Math.imul(J,ie)|0)+Math.imul(st,je)|0,F=F+Math.imul(st,ie)|0,T=T+Math.imul(tt,ye)|0,R=(R=R+Math.imul(tt,Zt)|0)+Math.imul(et,ye)|0,F=F+Math.imul(et,Zt)|0,T=T+Math.imul(bt,Se)|0,R=(R=R+Math.imul(bt,Ae)|0)+Math.imul(Q,Se)|0,F=F+Math.imul(Q,Ae)|0;var Qr=(H+(T=T+Math.imul(Y,He)|0)|0)+((8191&(R=(R=R+Math.imul(Y,fe)|0)+Math.imul(dt,He)|0))<<13)|0;H=((F=F+Math.imul(dt,fe)|0)+(R>>>13)|0)+(Qr>>>26)|0,Qr&=67108863,T=Math.imul(St,ft),R=(R=Math.imul(St,yt))+Math.imul(ut,ft)|0,F=Math.imul(ut,yt),T=T+Math.imul(rt,zt)|0,R=(R=R+Math.imul(rt,Bt)|0)+Math.imul(nt,zt)|0,F=F+Math.imul(nt,Bt)|0,T=T+Math.imul(ct,Yt)|0,R=(R=R+Math.imul(ct,qt)|0)+Math.imul(pt,Yt)|0,F=F+Math.imul(pt,qt)|0,T=T+Math.imul(Mt,le)|0,R=(R=R+Math.imul(Mt,ne)|0)+Math.imul(Pt,le)|0,F=F+Math.imul(Pt,ne)|0,T=T+Math.imul(xt,Xt)|0,R=(R=R+Math.imul(xt,pe)|0)+Math.imul(Nt,Xt)|0,F=F+Math.imul(Nt,pe)|0,T=T+Math.imul(W,je)|0,R=(R=R+Math.imul(W,ie)|0)+Math.imul(X,je)|0,F=F+Math.imul(X,ie)|0,T=T+Math.imul(J,ye)|0,R=(R=R+Math.imul(J,Zt)|0)+Math.imul(st,ye)|0,F=F+Math.imul(st,Zt)|0,T=T+Math.imul(tt,Se)|0,R=(R=R+Math.imul(tt,Ae)|0)+Math.imul(et,Se)|0,F=F+Math.imul(et,Ae)|0,T=T+Math.imul(bt,He)|0,R=(R=R+Math.imul(bt,fe)|0)+Math.imul(Q,He)|0,F=F+Math.imul(Q,fe)|0;var Mn=(H+(T=T+Math.imul(Y,ze)|0)|0)+((8191&(R=(R=R+Math.imul(Y,qe)|0)+Math.imul(dt,ze)|0))<<13)|0;H=((F=F+Math.imul(dt,qe)|0)+(R>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,T=Math.imul(St,zt),R=(R=Math.imul(St,Bt))+Math.imul(ut,zt)|0,F=Math.imul(ut,Bt),T=T+Math.imul(rt,Yt)|0,R=(R=R+Math.imul(rt,qt)|0)+Math.imul(nt,Yt)|0,F=F+Math.imul(nt,qt)|0,T=T+Math.imul(ct,le)|0,R=(R=R+Math.imul(ct,ne)|0)+Math.imul(pt,le)|0,F=F+Math.imul(pt,ne)|0,T=T+Math.imul(Mt,Xt)|0,R=(R=R+Math.imul(Mt,pe)|0)+Math.imul(Pt,Xt)|0,F=F+Math.imul(Pt,pe)|0,T=T+Math.imul(xt,je)|0,R=(R=R+Math.imul(xt,ie)|0)+Math.imul(Nt,je)|0,F=F+Math.imul(Nt,ie)|0,T=T+Math.imul(W,ye)|0,R=(R=R+Math.imul(W,Zt)|0)+Math.imul(X,ye)|0,F=F+Math.imul(X,Zt)|0,T=T+Math.imul(J,Se)|0,R=(R=R+Math.imul(J,Ae)|0)+Math.imul(st,Se)|0,F=F+Math.imul(st,Ae)|0,T=T+Math.imul(tt,He)|0,R=(R=R+Math.imul(tt,fe)|0)+Math.imul(et,He)|0,F=F+Math.imul(et,fe)|0;var bn=(H+(T=T+Math.imul(bt,ze)|0)|0)+((8191&(R=(R=R+Math.imul(bt,qe)|0)+Math.imul(Q,ze)|0))<<13)|0;H=((F=F+Math.imul(Q,qe)|0)+(R>>>13)|0)+(bn>>>26)|0,bn&=67108863,T=Math.imul(St,Yt),R=(R=Math.imul(St,qt))+Math.imul(ut,Yt)|0,F=Math.imul(ut,qt),T=T+Math.imul(rt,le)|0,R=(R=R+Math.imul(rt,ne)|0)+Math.imul(nt,le)|0,F=F+Math.imul(nt,ne)|0,T=T+Math.imul(ct,Xt)|0,R=(R=R+Math.imul(ct,pe)|0)+Math.imul(pt,Xt)|0,F=F+Math.imul(pt,pe)|0,T=T+Math.imul(Mt,je)|0,R=(R=R+Math.imul(Mt,ie)|0)+Math.imul(Pt,je)|0,F=F+Math.imul(Pt,ie)|0,T=T+Math.imul(xt,ye)|0,R=(R=R+Math.imul(xt,Zt)|0)+Math.imul(Nt,ye)|0,F=F+Math.imul(Nt,Zt)|0,T=T+Math.imul(W,Se)|0,R=(R=R+Math.imul(W,Ae)|0)+Math.imul(X,Se)|0,F=F+Math.imul(X,Ae)|0,T=T+Math.imul(J,He)|0,R=(R=R+Math.imul(J,fe)|0)+Math.imul(st,He)|0,F=F+Math.imul(st,fe)|0;var on=(H+(T=T+Math.imul(tt,ze)|0)|0)+((8191&(R=(R=R+Math.imul(tt,qe)|0)+Math.imul(et,ze)|0))<<13)|0;H=((F=F+Math.imul(et,qe)|0)+(R>>>13)|0)+(on>>>26)|0,on&=67108863,T=Math.imul(St,le),R=(R=Math.imul(St,ne))+Math.imul(ut,le)|0,F=Math.imul(ut,ne),T=T+Math.imul(rt,Xt)|0,R=(R=R+Math.imul(rt,pe)|0)+Math.imul(nt,Xt)|0,F=F+Math.imul(nt,pe)|0,T=T+Math.imul(ct,je)|0,R=(R=R+Math.imul(ct,ie)|0)+Math.imul(pt,je)|0,F=F+Math.imul(pt,ie)|0,T=T+Math.imul(Mt,ye)|0,R=(R=R+Math.imul(Mt,Zt)|0)+Math.imul(Pt,ye)|0,F=F+Math.imul(Pt,Zt)|0,T=T+Math.imul(xt,Se)|0,R=(R=R+Math.imul(xt,Ae)|0)+Math.imul(Nt,Se)|0,F=F+Math.imul(Nt,Ae)|0,T=T+Math.imul(W,He)|0,R=(R=R+Math.imul(W,fe)|0)+Math.imul(X,He)|0,F=F+Math.imul(X,fe)|0;var yn=(H+(T=T+Math.imul(J,ze)|0)|0)+((8191&(R=(R=R+Math.imul(J,qe)|0)+Math.imul(st,ze)|0))<<13)|0;H=((F=F+Math.imul(st,qe)|0)+(R>>>13)|0)+(yn>>>26)|0,yn&=67108863,T=Math.imul(St,Xt),R=(R=Math.imul(St,pe))+Math.imul(ut,Xt)|0,F=Math.imul(ut,pe),T=T+Math.imul(rt,je)|0,R=(R=R+Math.imul(rt,ie)|0)+Math.imul(nt,je)|0,F=F+Math.imul(nt,ie)|0,T=T+Math.imul(ct,ye)|0,R=(R=R+Math.imul(ct,Zt)|0)+Math.imul(pt,ye)|0,F=F+Math.imul(pt,Zt)|0,T=T+Math.imul(Mt,Se)|0,R=(R=R+Math.imul(Mt,Ae)|0)+Math.imul(Pt,Se)|0,F=F+Math.imul(Pt,Ae)|0,T=T+Math.imul(xt,He)|0,R=(R=R+Math.imul(xt,fe)|0)+Math.imul(Nt,He)|0,F=F+Math.imul(Nt,fe)|0;var Je=(H+(T=T+Math.imul(W,ze)|0)|0)+((8191&(R=(R=R+Math.imul(W,qe)|0)+Math.imul(X,ze)|0))<<13)|0;H=((F=F+Math.imul(X,qe)|0)+(R>>>13)|0)+(Je>>>26)|0,Je&=67108863,T=Math.imul(St,je),R=(R=Math.imul(St,ie))+Math.imul(ut,je)|0,F=Math.imul(ut,ie),T=T+Math.imul(rt,ye)|0,R=(R=R+Math.imul(rt,Zt)|0)+Math.imul(nt,ye)|0,F=F+Math.imul(nt,Zt)|0,T=T+Math.imul(ct,Se)|0,R=(R=R+Math.imul(ct,Ae)|0)+Math.imul(pt,Se)|0,F=F+Math.imul(pt,Ae)|0,T=T+Math.imul(Mt,He)|0,R=(R=R+Math.imul(Mt,fe)|0)+Math.imul(Pt,He)|0,F=F+Math.imul(Pt,fe)|0;var Ke=(H+(T=T+Math.imul(xt,ze)|0)|0)+((8191&(R=(R=R+Math.imul(xt,qe)|0)+Math.imul(Nt,ze)|0))<<13)|0;H=((F=F+Math.imul(Nt,qe)|0)+(R>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,T=Math.imul(St,ye),R=(R=Math.imul(St,Zt))+Math.imul(ut,ye)|0,F=Math.imul(ut,Zt),T=T+Math.imul(rt,Se)|0,R=(R=R+Math.imul(rt,Ae)|0)+Math.imul(nt,Se)|0,F=F+Math.imul(nt,Ae)|0,T=T+Math.imul(ct,He)|0,R=(R=R+Math.imul(ct,fe)|0)+Math.imul(pt,He)|0,F=F+Math.imul(pt,fe)|0;var ai=(H+(T=T+Math.imul(Mt,ze)|0)|0)+((8191&(R=(R=R+Math.imul(Mt,qe)|0)+Math.imul(Pt,ze)|0))<<13)|0;H=((F=F+Math.imul(Pt,qe)|0)+(R>>>13)|0)+(ai>>>26)|0,ai&=67108863,T=Math.imul(St,Se),R=(R=Math.imul(St,Ae))+Math.imul(ut,Se)|0,F=Math.imul(ut,Ae),T=T+Math.imul(rt,He)|0,R=(R=R+Math.imul(rt,fe)|0)+Math.imul(nt,He)|0,F=F+Math.imul(nt,fe)|0;var wn=(H+(T=T+Math.imul(ct,ze)|0)|0)+((8191&(R=(R=R+Math.imul(ct,qe)|0)+Math.imul(pt,ze)|0))<<13)|0;H=((F=F+Math.imul(pt,qe)|0)+(R>>>13)|0)+(wn>>>26)|0,wn&=67108863,T=Math.imul(St,He),R=(R=Math.imul(St,fe))+Math.imul(ut,He)|0,F=Math.imul(ut,fe);var si=(H+(T=T+Math.imul(rt,ze)|0)|0)+((8191&(R=(R=R+Math.imul(rt,qe)|0)+Math.imul(nt,ze)|0))<<13)|0;H=((F=F+Math.imul(nt,qe)|0)+(R>>>13)|0)+(si>>>26)|0,si&=67108863;var Wi=(H+(T=Math.imul(St,ze))|0)+((8191&(R=(R=Math.imul(St,qe))+Math.imul(ut,ze)|0))<<13)|0;return H=((F=Math.imul(ut,qe))+(R>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,P[0]=or,P[1]=wt,P[2]=Ft,P[3]=Ut,P[4]=ve,P[5]=De,P[6]=yr,P[7]=Hr,P[8]=Qr,P[9]=Mn,P[10]=bn,P[11]=on,P[12]=yn,P[13]=Je,P[14]=Ke,P[15]=ai,P[16]=wn,P[17]=si,P[18]=Wi,H!==0&&(P[19]=H,E.length++),E};function x(k,S,E){E.negative=S.negative^k.negative,E.length=k.length+S.length;for(var T=0,R=0,F=0;F<E.length-1;F++){var I=R;R=0;for(var B=67108863&T,P=Math.min(F,S.length-1),H=Math.max(0,F-k.length+1);H<=P;H++){var Z=F-H,Y=(0|k.words[Z])*(0|S.words[H]),dt=67108863&Y;B=67108863&(dt=dt+B|0),R+=(I=(I=I+(Y/67108864|0)|0)+(dt>>>26)|0)>>>26,I&=67108863}E.words[F]=B,T=I,I=R}return T!==0?E.words[F]=T:E.length--,E._strip()}function C(k,S,E){return x(k,S,E)}Math.imul||(w=y),i.prototype.mulTo=function(k,S){var E=this.length+k.length;return this.length===10&&k.length===10?w(this,k,S):E<63?y(this,k,S):E<1024?x(this,k,S):C(this,k,S)},i.prototype.mul=function(k){var S=new i(null);return S.words=new Array(this.length+k.length),this.mulTo(k,S)},i.prototype.mulf=function(k){var S=new i(null);return S.words=new Array(this.length+k.length),C(this,k,S)},i.prototype.imul=function(k){return this.clone().mulTo(k,this)},i.prototype.imuln=function(k){var S=k<0;S&&(k=-k),o(typeof k=="number"),o(k<67108864);for(var E=0,T=0;T<this.length;T++){var R=(0|this.words[T])*k,F=(67108863&R)+(67108863&E);E>>=26,E+=R/67108864|0,E+=F>>>26,this.words[T]=67108863&F}return E!==0&&(this.words[T]=E,this.length++),S?this.ineg():this},i.prototype.muln=function(k){return this.clone().imuln(k)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(k){var S=g(k);if(S.length===0)return new i(1);for(var E=this,T=0;T<S.length&&S[T]===0;T++,E=E.sqr());if(++T<S.length)for(var R=E.sqr();T<S.length;T++,R=R.sqr())S[T]!==0&&(E=E.mul(R));return E},i.prototype.iushln=function(k){o(typeof k=="number"&&k>=0);var S,E=k%26,T=(k-E)/26,R=67108863>>>26-E<<26-E;if(E!==0){var F=0;for(S=0;S<this.length;S++){var I=this.words[S]&R,B=(0|this.words[S])-I<<E;this.words[S]=B|F,F=I>>>26-E}F&&(this.words[S]=F,this.length++)}if(T!==0){for(S=this.length-1;S>=0;S--)this.words[S+T]=this.words[S];for(S=0;S<T;S++)this.words[S]=0;this.length+=T}return this._strip()},i.prototype.ishln=function(k){return o(this.negative===0),this.iushln(k)},i.prototype.iushrn=function(k,S,E){var T;o(typeof k=="number"&&k>=0),T=S?(S-S%26)/26:0;var R=k%26,F=Math.min((k-R)/26,this.length),I=67108863^67108863>>>R<<R,B=E;if(T-=F,T=Math.max(0,T),B){for(var P=0;P<F;P++)B.words[P]=this.words[P];B.length=F}if(F!==0)if(this.length>F)for(this.length-=F,P=0;P<this.length;P++)this.words[P]=this.words[P+F];else this.words[0]=0,this.length=1;var H=0;for(P=this.length-1;P>=0&&(H!==0||P>=T);P--){var Z=0|this.words[P];this.words[P]=H<<26-R|Z>>>R,H=Z&I}return B&&H!==0&&(B.words[B.length++]=H),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(k,S,E){return o(this.negative===0),this.iushrn(k,S,E)},i.prototype.shln=function(k){return this.clone().ishln(k)},i.prototype.ushln=function(k){return this.clone().iushln(k)},i.prototype.shrn=function(k){return this.clone().ishrn(k)},i.prototype.ushrn=function(k){return this.clone().iushrn(k)},i.prototype.testn=function(k){o(typeof k=="number"&&k>=0);var S=k%26,E=(k-S)/26,T=1<<S;return!(this.length<=E||!(this.words[E]&T))},i.prototype.imaskn=function(k){o(typeof k=="number"&&k>=0);var S=k%26,E=(k-S)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=E)return this;if(S!==0&&E++,this.length=Math.min(E,this.length),S!==0){var T=67108863^67108863>>>S<<S;this.words[this.length-1]&=T}return this._strip()},i.prototype.maskn=function(k){return this.clone().imaskn(k)},i.prototype.iaddn=function(k){return o(typeof k=="number"),o(k<67108864),k<0?this.isubn(-k):this.negative!==0?this.length===1&&(0|this.words[0])<=k?(this.words[0]=k-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(k),this.negative=1,this):this._iaddn(k)},i.prototype._iaddn=function(k){this.words[0]+=k;for(var S=0;S<this.length&&this.words[S]>=67108864;S++)this.words[S]-=67108864,S===this.length-1?this.words[S+1]=1:this.words[S+1]++;return this.length=Math.max(this.length,S+1),this},i.prototype.isubn=function(k){if(o(typeof k=="number"),o(k<67108864),k<0)return this.iaddn(-k);if(this.negative!==0)return this.negative=0,this.iaddn(k),this.negative=1,this;if(this.words[0]-=k,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var S=0;S<this.length&&this.words[S]<0;S++)this.words[S]+=67108864,this.words[S+1]-=1;return this._strip()},i.prototype.addn=function(k){return this.clone().iaddn(k)},i.prototype.subn=function(k){return this.clone().isubn(k)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(k,S,E){var T,R,F=k.length+E;this._expand(F);var I=0;for(T=0;T<k.length;T++){R=(0|this.words[T+E])+I;var B=(0|k.words[T])*S;I=((R-=67108863&B)>>26)-(B/67108864|0),this.words[T+E]=67108863&R}for(;T<this.length-E;T++)I=(R=(0|this.words[T+E])+I)>>26,this.words[T+E]=67108863&R;if(I===0)return this._strip();for(o(I===-1),I=0,T=0;T<this.length;T++)I=(R=-(0|this.words[T])+I)>>26,this.words[T]=67108863&R;return this.negative=1,this._strip()},i.prototype._wordDiv=function(k,S){var E=this.length-k.length,T=this.clone(),R=k,F=0|R.words[R.length-1];(E=26-this._countBits(F))!=0&&(R=R.ushln(E),T.iushln(E),F=0|R.words[R.length-1]);var I,B=T.length-R.length;if(S!=="mod"){(I=new i(null)).length=B+1,I.words=new Array(I.length);for(var P=0;P<I.length;P++)I.words[P]=0}var H=T.clone()._ishlnsubmul(R,1,B);H.negative===0&&(T=H,I&&(I.words[B]=1));for(var Z=B-1;Z>=0;Z--){var Y=67108864*(0|T.words[R.length+Z])+(0|T.words[R.length+Z-1]);for(Y=Math.min(Y/F|0,67108863),T._ishlnsubmul(R,Y,Z);T.negative!==0;)Y--,T.negative=0,T._ishlnsubmul(R,1,Z),T.isZero()||(T.negative^=1);I&&(I.words[Z]=Y)}return I&&I._strip(),T._strip(),S!=="div"&&E!==0&&T.iushrn(E),{div:I||null,mod:T}},i.prototype.divmod=function(k,S,E){return o(!k.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:this.negative!==0&&k.negative===0?(F=this.neg().divmod(k,S),S!=="mod"&&(T=F.div.neg()),S!=="div"&&(R=F.mod.neg(),E&&R.negative!==0&&R.iadd(k)),{div:T,mod:R}):this.negative===0&&k.negative!==0?(F=this.divmod(k.neg(),S),S!=="mod"&&(T=F.div.neg()),{div:T,mod:F.mod}):this.negative&k.negative?(F=this.neg().divmod(k.neg(),S),S!=="div"&&(R=F.mod.neg(),E&&R.negative!==0&&R.isub(k)),{div:F.div,mod:R}):k.length>this.length||this.cmp(k)<0?{div:new i(0),mod:this}:k.length===1?S==="div"?{div:this.divn(k.words[0]),mod:null}:S==="mod"?{div:null,mod:new i(this.modrn(k.words[0]))}:{div:this.divn(k.words[0]),mod:new i(this.modrn(k.words[0]))}:this._wordDiv(k,S);var T,R,F},i.prototype.div=function(k){return this.divmod(k,"div",!1).div},i.prototype.mod=function(k){return this.divmod(k,"mod",!1).mod},i.prototype.umod=function(k){return this.divmod(k,"mod",!0).mod},i.prototype.divRound=function(k){var S=this.divmod(k);if(S.mod.isZero())return S.div;var E=S.div.negative!==0?S.mod.isub(k):S.mod,T=k.ushrn(1),R=k.andln(1),F=E.cmp(T);return F<0||R===1&&F===0?S.div:S.div.negative!==0?S.div.isubn(1):S.div.iaddn(1)},i.prototype.modrn=function(k){var S=k<0;S&&(k=-k),o(k<=67108863);for(var E=(1<<26)%k,T=0,R=this.length-1;R>=0;R--)T=(E*T+(0|this.words[R]))%k;return S?-T:T},i.prototype.modn=function(k){return this.modrn(k)},i.prototype.idivn=function(k){var S=k<0;S&&(k=-k),o(k<=67108863);for(var E=0,T=this.length-1;T>=0;T--){var R=(0|this.words[T])+67108864*E;this.words[T]=R/k|0,E=R%k}return this._strip(),S?this.ineg():this},i.prototype.divn=function(k){return this.clone().idivn(k)},i.prototype.egcd=function(k){o(k.negative===0),o(!k.isZero());var S=this,E=k.clone();S=S.negative!==0?S.umod(k):S.clone();for(var T=new i(1),R=new i(0),F=new i(0),I=new i(1),B=0;S.isEven()&&E.isEven();)S.iushrn(1),E.iushrn(1),++B;for(var P=E.clone(),H=S.clone();!S.isZero();){for(var Z=0,Y=1;!(S.words[0]&Y)&&Z<26;++Z,Y<<=1);if(Z>0)for(S.iushrn(Z);Z-- >0;)(T.isOdd()||R.isOdd())&&(T.iadd(P),R.isub(H)),T.iushrn(1),R.iushrn(1);for(var dt=0,gt=1;!(E.words[0]>)&&dt<26;++dt,gt<<=1);if(dt>0)for(E.iushrn(dt);dt-- >0;)(F.isOdd()||I.isOdd())&&(F.iadd(P),I.isub(H)),F.iushrn(1),I.iushrn(1);S.cmp(E)>=0?(S.isub(E),T.isub(F),R.isub(I)):(E.isub(S),F.isub(T),I.isub(R))}return{a:F,b:I,gcd:E.iushln(B)}},i.prototype._invmp=function(k){o(k.negative===0),o(!k.isZero());var S=this,E=k.clone();S=S.negative!==0?S.umod(k):S.clone();for(var T,R=new i(1),F=new i(0),I=E.clone();S.cmpn(1)>0&&E.cmpn(1)>0;){for(var B=0,P=1;!(S.words[0]&P)&&B<26;++B,P<<=1);if(B>0)for(S.iushrn(B);B-- >0;)R.isOdd()&&R.iadd(I),R.iushrn(1);for(var H=0,Z=1;!(E.words[0]&Z)&&H<26;++H,Z<<=1);if(H>0)for(E.iushrn(H);H-- >0;)F.isOdd()&&F.iadd(I),F.iushrn(1);S.cmp(E)>=0?(S.isub(E),R.isub(F)):(E.isub(S),F.isub(R))}return(T=S.cmpn(1)===0?R:F).cmpn(0)<0&&T.iadd(k),T},i.prototype.gcd=function(k){if(this.isZero())return k.abs();if(k.isZero())return this.abs();var S=this.clone(),E=k.clone();S.negative=0,E.negative=0;for(var T=0;S.isEven()&&E.isEven();T++)S.iushrn(1),E.iushrn(1);for(;;){for(;S.isEven();)S.iushrn(1);for(;E.isEven();)E.iushrn(1);var R=S.cmp(E);if(R<0){var F=S;S=E,E=F}else if(R===0||E.cmpn(1)===0)break;S.isub(E)}return E.iushln(T)},i.prototype.invm=function(k){return this.egcd(k).a.umod(k)},i.prototype.isEven=function(){return(1&this.words[0])==0},i.prototype.isOdd=function(){return(1&this.words[0])==1},i.prototype.andln=function(k){return this.words[0]&k},i.prototype.bincn=function(k){o(typeof k=="number");var S=k%26,E=(k-S)/26,T=1<<S;if(this.length<=E)return this._expand(E+1),this.words[E]|=T,this;for(var R=T,F=E;R!==0&&F<this.length;F++){var I=0|this.words[F];R=(I+=R)>>>26,I&=67108863,this.words[F]=I}return R!==0&&(this.words[F]=R,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(k){var S,E=k<0;if(this.negative!==0&&!E)return-1;if(this.negative===0&&E)return 1;if(this._strip(),this.length>1)S=1;else{E&&(k=-k),o(k<=67108863,"Number is too big");var T=0|this.words[0];S=T===k?0:T<k?-1:1}return this.negative!==0?0|-S:S},i.prototype.cmp=function(k){if(this.negative!==0&&k.negative===0)return-1;if(this.negative===0&&k.negative!==0)return 1;var S=this.ucmp(k);return this.negative!==0?0|-S:S},i.prototype.ucmp=function(k){if(this.length>k.length)return 1;if(this.length<k.length)return-1;for(var S=0,E=this.length-1;E>=0;E--){var T=0|this.words[E],R=0|k.words[E];if(T!==R){T<R?S=-1:T>R&&(S=1);break}}return S},i.prototype.gtn=function(k){return this.cmpn(k)===1},i.prototype.gt=function(k){return this.cmp(k)===1},i.prototype.gten=function(k){return this.cmpn(k)>=0},i.prototype.gte=function(k){return this.cmp(k)>=0},i.prototype.ltn=function(k){return this.cmpn(k)===-1},i.prototype.lt=function(k){return this.cmp(k)===-1},i.prototype.lten=function(k){return this.cmpn(k)<=0},i.prototype.lte=function(k){return this.cmp(k)<=0},i.prototype.eqn=function(k){return this.cmpn(k)===0},i.prototype.eq=function(k){return this.cmp(k)===0},i.red=function(k){return new A(k)},i.prototype.toRed=function(k){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),k.convertTo(this)._forceRed(k)},i.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(k){return this.red=k,this},i.prototype.forceRed=function(k){return o(!this.red,"Already a number in reduction context"),this._forceRed(k)},i.prototype.redAdd=function(k){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,k)},i.prototype.redIAdd=function(k){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,k)},i.prototype.redSub=function(k){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,k)},i.prototype.redISub=function(k){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,k)},i.prototype.redShl=function(k){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,k)},i.prototype.redMul=function(k){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,k),this.red.mul(this,k)},i.prototype.redIMul=function(k){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,k),this.red.imul(this,k)},i.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(k){return o(this.red&&!k.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,k)};var O={k256:null,p224:null,p192:null,p25519:null};function D(k,S){this.name=k,this.p=new i(S,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function j(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function U(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function L(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function V(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(k){if(typeof k=="string"){var S=i._prime(k);this.m=S.p,this.prime=S}else o(k.gtn(1),"modulus must be greater than 1"),this.m=k,this.prime=null}function N(k){A.call(this,k),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(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)}D.prototype._tmp=function(){var k=new i(null);return k.words=new Array(Math.ceil(this.n/13)),k},D.prototype.ireduce=function(k){var S,E=k;do this.split(E,this.tmp),S=(E=(E=this.imulK(E)).iadd(this.tmp)).bitLength();while(S>this.n);var T=S<this.n?-1:E.ucmp(this.p);return T===0?(E.words[0]=0,E.length=1):T>0?E.isub(this.p):E.strip!==void 0?E.strip():E._strip(),E},D.prototype.split=function(k,S){k.iushrn(this.n,0,S)},D.prototype.imulK=function(k){return k.imul(this.k)},s(j,D),j.prototype.split=function(k,S){for(var E=4194303,T=Math.min(k.length,9),R=0;R<T;R++)S.words[R]=k.words[R];if(S.length=T,k.length<=9)return k.words[0]=0,void(k.length=1);var F=k.words[9];for(S.words[S.length++]=F&E,R=10;R<k.length;R++){var I=0|k.words[R];k.words[R-10]=(I&E)<<4|F>>>22,F=I}F>>>=22,k.words[R-10]=F,F===0&&k.length>10?k.length-=10:k.length-=9},j.prototype.imulK=function(k){k.words[k.length]=0,k.words[k.length+1]=0,k.length+=2;for(var S=0,E=0;E<k.length;E++){var T=0|k.words[E];S+=977*T,k.words[E]=67108863&S,S=64*T+(S/67108864|0)}return k.words[k.length-1]===0&&(k.length--,k.words[k.length-1]===0&&k.length--),k},s(U,D),s(L,D),s(V,D),V.prototype.imulK=function(k){for(var S=0,E=0;E<k.length;E++){var T=19*(0|k.words[E])+S,R=67108863&T;T>>>=26,k.words[E]=R,S=T}return S!==0&&(k.words[k.length++]=S),k},i._prime=function(k){if(O[k])return O[k];var S;if(k==="k256")S=new j;else if(k==="p224")S=new U;else if(k==="p192")S=new L;else{if(k!=="p25519")throw new Error("Unknown prime "+k);S=new V}return O[k]=S,S},A.prototype._verify1=function(k){o(k.negative===0,"red works only with positives"),o(k.red,"red works only with red numbers")},A.prototype._verify2=function(k,S){o((k.negative|S.negative)==0,"red works only with positives"),o(k.red&&k.red===S.red,"red works only with red numbers")},A.prototype.imod=function(k){return this.prime?this.prime.ireduce(k)._forceRed(this):(h(k,k.umod(this.m)._forceRed(this)),k)},A.prototype.neg=function(k){return k.isZero()?k.clone():this.m.sub(k)._forceRed(this)},A.prototype.add=function(k,S){this._verify2(k,S);var E=k.add(S);return E.cmp(this.m)>=0&&E.isub(this.m),E._forceRed(this)},A.prototype.iadd=function(k,S){this._verify2(k,S);var E=k.iadd(S);return E.cmp(this.m)>=0&&E.isub(this.m),E},A.prototype.sub=function(k,S){this._verify2(k,S);var E=k.sub(S);return E.cmpn(0)<0&&E.iadd(this.m),E._forceRed(this)},A.prototype.isub=function(k,S){this._verify2(k,S);var E=k.isub(S);return E.cmpn(0)<0&&E.iadd(this.m),E},A.prototype.shl=function(k,S){return this._verify1(k),this.imod(k.ushln(S))},A.prototype.imul=function(k,S){return this._verify2(k,S),this.imod(k.imul(S))},A.prototype.mul=function(k,S){return this._verify2(k,S),this.imod(k.mul(S))},A.prototype.isqr=function(k){return this.imul(k,k.clone())},A.prototype.sqr=function(k){return this.mul(k,k)},A.prototype.sqrt=function(k){if(k.isZero())return k.clone();var S=this.m.andln(3);if(o(S%2==1),S===3){var E=this.m.add(new i(1)).iushrn(2);return this.pow(k,E)}for(var T=this.m.subn(1),R=0;!T.isZero()&&T.andln(1)===0;)R++,T.iushrn(1);o(!T.isZero());var F=new i(1).toRed(this),I=F.redNeg(),B=this.m.subn(1).iushrn(1),P=this.m.bitLength();for(P=new i(2*P*P).toRed(this);this.pow(P,B).cmp(I)!==0;)P.redIAdd(I);for(var H=this.pow(P,T),Z=this.pow(k,T.addn(1).iushrn(1)),Y=this.pow(k,T),dt=R;Y.cmp(F)!==0;){for(var gt=Y,bt=0;gt.cmp(F)!==0;bt++)gt=gt.redSqr();o(bt<dt);var Q=this.pow(H,new i(1).iushln(dt-bt-1));Z=Z.redMul(Q),H=Q.redSqr(),Y=Y.redMul(H),dt=bt}return Z},A.prototype.invm=function(k){var S=k._invmp(this.m);return S.negative!==0?(S.negative=0,this.imod(S).redNeg()):this.imod(S)},A.prototype.pow=function(k,S){if(S.isZero())return new i(1).toRed(this);if(S.cmpn(1)===0)return k.clone();var E=4,T=new Array(1<<E);T[0]=new i(1).toRed(this),T[1]=k;for(var R=2;R<T.length;R++)T[R]=this.mul(T[R-1],k);var F=T[0],I=0,B=0,P=S.bitLength()%26;for(P===0&&(P=26),R=S.length-1;R>=0;R--){for(var H=S.words[R],Z=P-1;Z>=0;Z--){var Y=H>>Z&1;F!==T[0]&&(F=this.sqr(F)),Y!==0||I!==0?(I<<=1,I|=Y,(++B===E||R===0&&Z===0)&&(F=this.mul(F,T[I]),B=0,I=0)):B=0}P=26}return F},A.prototype.convertTo=function(k){var S=k.umod(this.m);return S===k?S.clone():S},A.prototype.convertFrom=function(k){var S=k.clone();return S.red=null,S},i.mont=function(k){return new N(k)},s(N,A),N.prototype.convertTo=function(k){return this.imod(k.ushln(this.shift))},N.prototype.convertFrom=function(k){var S=this.imod(k.mul(this.rinv));return S.red=null,S},N.prototype.imul=function(k,S){if(k.isZero()||S.isZero())return k.words[0]=0,k.length=1,k;var E=k.imul(S),T=E.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),R=E.isub(T).iushrn(this.shift),F=R;return R.cmp(this.m)>=0?F=R.isub(this.m):R.cmpn(0)<0&&(F=R.iadd(this.m)),F._forceRed(this)},N.prototype.mul=function(k,S){if(k.isZero()||S.isZero())return new i(0)._forceRed(this);var E=k.mul(S),T=E.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),R=E.isub(T).iushrn(this.shift),F=R;return R.cmp(this.m)>=0?F=R.isub(this.m):R.cmpn(0)<0&&(F=R.iadd(this.m)),F._forceRed(this)},N.prototype.invm=function(k){return this.imod(k._invmp(this.m).mul(this.r2))._forceRed(this)}})(r===void 0||r,void 0)},{buffer:188}],187:[function(t,r,e){var n;function a(s){this.rand=s}if(r.exports=function(s){return n||(n=new a(null)),n.generate(s)},r.exports.Rand=a,a.prototype.generate=function(s){return this._rand(s)},a.prototype._rand=function(s){if(this.rand.getBytes)return this.rand.getBytes(s);for(var i=new Uint8Array(s),c=0;c<i.length;c++)i[c]=this.rand.getByte();return i},typeof self=="object")self.crypto&&self.crypto.getRandomValues?a.prototype._rand=function(s){var i=new Uint8Array(s);return self.crypto.getRandomValues(i),i}:self.msCrypto&&self.msCrypto.getRandomValues?a.prototype._rand=function(s){var i=new Uint8Array(s);return self.msCrypto.getRandomValues(i),i}:typeof window=="object"&&(a.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=t("crypto");if(typeof o.randomBytes!="function")throw new Error("Not supported");a.prototype._rand=function(s){return o.randomBytes(s)}}catch(s){}},{crypto:188}],188:[function(t,r,e){},{}],189:[function(t,r,e){var n=t("safe-buffer").Buffer;function a(u){n.isBuffer(u)||(u=n.from(u));for(var f=u.length/4|0,h=new Array(f),d=0;d<f;d++)h[d]=u.readUInt32BE(4*d);return h}function o(u){for(var f=0;f<u.length;u++)u[f]=0}function s(u,f,h,d,p){for(var m,v,b,g,y=h[0],w=h[1],x=h[2],C=h[3],O=u[0]^f[0],D=u[1]^f[1],j=u[2]^f[2],U=u[3]^f[3],L=4,V=1;V<p;V++)m=y[O>>>24]^w[D>>>16&255]^x[j>>>8&255]^C[255&U]^f[L++],v=y[D>>>24]^w[j>>>16&255]^x[U>>>8&255]^C[255&O]^f[L++],b=y[j>>>24]^w[U>>>16&255]^x[O>>>8&255]^C[255&D]^f[L++],g=y[U>>>24]^w[O>>>16&255]^x[D>>>8&255]^C[255&j]^f[L++],O=m,D=v,j=b,U=g;return m=(d[O>>>24]<<24|d[D>>>16&255]<<16|d[j>>>8&255]<<8|d[255&U])^f[L++],v=(d[D>>>24]<<24|d[j>>>16&255]<<16|d[U>>>8&255]<<8|d[255&O])^f[L++],b=(d[j>>>24]<<24|d[U>>>16&255]<<16|d[O>>>8&255]<<8|d[255&D])^f[L++],g=(d[U>>>24]<<24|d[O>>>16&255]<<16|d[D>>>8&255]<<8|d[255&j])^f[L++],[m>>>=0,v>>>=0,b>>>=0,g>>>=0]}var i=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var u=new Array(256),f=0;f<256;f++)u[f]=f<128?f<<1:f<<1^283;for(var h=[],d=[],p=[[],[],[],[]],m=[[],[],[],[]],v=0,b=0,g=0;g<256;++g){var y=b^b<<1^b<<2^b<<3^b<<4;y=y>>>8^255&y^99,h[v]=y,d[y]=v;var w=u[v],x=u[w],C=u[x],O=257*u[y]^16843008*y;p[0][v]=O<<24|O>>>8,p[1][v]=O<<16|O>>>16,p[2][v]=O<<8|O>>>24,p[3][v]=O,O=16843009*C^65537*x^257*w^16843008*v,m[0][y]=O<<24|O>>>8,m[1][y]=O<<16|O>>>16,m[2][y]=O<<8|O>>>24,m[3][y]=O,v===0?v=b=1:(v=w^u[u[u[C^w]]],b^=u[u[b]])}return{SBOX:h,INV_SBOX:d,SUB_MIX:p,INV_SUB_MIX:m}}();function l(u){this._key=a(u),this._reset()}l.blockSize=16,l.keySize=32,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var u=this._key,f=u.length,h=f+6,d=4*(h+1),p=[],m=0;m<f;m++)p[m]=u[m];for(m=f;m<d;m++){var v=p[m-1];m%f==0?(v=v<<8|v>>>24,v=c.SBOX[v>>>24]<<24|c.SBOX[v>>>16&255]<<16|c.SBOX[v>>>8&255]<<8|c.SBOX[255&v],v^=i[m/f|0]<<24):f>6&&m%f==4&&(v=c.SBOX[v>>>24]<<24|c.SBOX[v>>>16&255]<<16|c.SBOX[v>>>8&255]<<8|c.SBOX[255&v]),p[m]=p[m-f]^v}for(var b=[],g=0;g<d;g++){var y=d-g,w=p[y-(g%4?0:4)];b[g]=g<4||y<=4?w:c.INV_SUB_MIX[0][c.SBOX[w>>>24]]^c.INV_SUB_MIX[1][c.SBOX[w>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[w>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&w]]}this._nRounds=h,this._keySchedule=p,this._invKeySchedule=b},l.prototype.encryptBlockRaw=function(u){return s(u=a(u),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},l.prototype.encryptBlock=function(u){var f=this.encryptBlockRaw(u),h=n.allocUnsafe(16);return h.writeUInt32BE(f[0],0),h.writeUInt32BE(f[1],4),h.writeUInt32BE(f[2],8),h.writeUInt32BE(f[3],12),h},l.prototype.decryptBlock=function(u){var f=(u=a(u))[1];u[1]=u[3],u[3]=f;var h=s(u,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),d=n.allocUnsafe(16);return d.writeUInt32BE(h[0],0),d.writeUInt32BE(h[3],4),d.writeUInt32BE(h[2],8),d.writeUInt32BE(h[1],12),d},l.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},r.exports.AES=l},{"safe-buffer":494}],190:[function(t,r,e){var n=t("./aes"),a=t("safe-buffer").Buffer,o=t("cipher-base"),s=t("inherits"),i=t("./ghash"),c=t("buffer-xor"),l=t("./incr32");function u(d,p){var m=0;d.length!==p.length&&m++;for(var v=Math.min(d.length,p.length),b=0;b<v;++b)m+=d[b]^p[b];return m}function f(d,p,m){if(p.length===12)return d._finID=a.concat([p,a.from([0,0,0,1])]),a.concat([p,a.from([0,0,0,2])]);var v=new i(m),b=p.length,g=b%16;v.update(p),g&&(g=16-g,v.update(a.alloc(g,0))),v.update(a.alloc(8,0));var y=8*b,w=a.alloc(8);w.writeUIntBE(y,0,8),v.update(w),d._finID=v.state;var x=a.from(d._finID);return l(x),x}function h(d,p,m,v){o.call(this);var b=a.alloc(4,0);this._cipher=new n.AES(p);var g=this._cipher.encryptBlock(b);this._ghash=new i(g),m=f(this,m,g),this._prev=a.from(m),this._cache=a.allocUnsafe(0),this._secCache=a.allocUnsafe(0),this._decrypt=v,this._alen=0,this._len=0,this._mode=d,this._authTag=null,this._called=!1}s(h,o),h.prototype._update=function(d){if(!this._called&&this._alen){var p=16-this._alen%16;p<16&&(p=a.alloc(p,0),this._ghash.update(p))}this._called=!0;var m=this._mode.encrypt(this,d);return this._decrypt?this._ghash.update(d):this._ghash.update(m),this._len+=d.length,m},h.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var d=c(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&u(d,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=d,this._cipher.scrub()},h.prototype.getAuthTag=function(){if(this._decrypt||!a.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},h.prototype.setAuthTag=function(d){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=d},h.prototype.setAAD=function(d){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(d),this._alen+=d.length},r.exports=h},{"./aes":189,"./ghash":194,"./incr32":195,"buffer-xor":219,"cipher-base":221,inherits:440,"safe-buffer":494}],191:[function(t,r,e){var n=t("./encrypter"),a=t("./decrypter"),o=t("./modes/list.json");function s(){return Object.keys(o)}e.createCipher=e.Cipher=n.createCipher,e.createCipheriv=e.Cipheriv=n.createCipheriv,e.createDecipher=e.Decipher=a.createDecipher,e.createDecipheriv=e.Decipheriv=a.createDecipheriv,e.listCiphers=e.getCiphers=s},{"./decrypter":192,"./encrypter":193,"./modes/list.json":203}],192:[function(t,r,e){var n=t("./authCipher"),a=t("safe-buffer").Buffer,o=t("./modes"),s=t("./streamCipher"),i=t("cipher-base"),c=t("./aes"),l=t("evp_bytestokey");function u(m,v,b){i.call(this),this._cache=new f,this._last=void 0,this._cipher=new c.AES(v),this._prev=a.from(b),this._mode=m,this._autopadding=!0}function f(){this.cache=a.allocUnsafe(0)}function h(m){var v=m[15];if(v<1||v>16)throw new Error("unable to decrypt data");for(var b=-1;++b<v;)if(m[b+(16-v)]!==v)throw new Error("unable to decrypt data");if(v!==16)return m.slice(0,16-v)}function d(m,v,b){var g=o[m.toLowerCase()];if(!g)throw new TypeError("invalid suite type");if(typeof b=="string"&&(b=a.from(b)),g.mode!=="GCM"&&b.length!==g.iv)throw new TypeError("invalid iv length "+b.length);if(typeof v=="string"&&(v=a.from(v)),v.length!==g.key/8)throw new TypeError("invalid key length "+v.length);return g.type==="stream"?new s(g.module,v,b,!0):g.type==="auth"?new n(g.module,v,b,!0):new u(g.module,v,b)}function p(m,v){var b=o[m.toLowerCase()];if(!b)throw new TypeError("invalid suite type");var g=l(v,!1,b.key,b.iv);return d(m,g.key,g.iv)}t("inherits")(u,i),u.prototype._update=function(m){var v,b;this._cache.add(m);for(var g=[];v=this._cache.get(this._autopadding);)b=this._mode.decrypt(this,v),g.push(b);return a.concat(g)},u.prototype._final=function(){var m=this._cache.flush();if(this._autopadding)return h(this._mode.decrypt(this,m));if(m)throw new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(m){return this._autopadding=!!m,this},f.prototype.add=function(m){this.cache=a.concat([this.cache,m])},f.prototype.get=function(m){var v;if(m){if(this.cache.length>16)return v=this.cache.slice(0,16),this.cache=this.cache.slice(16),v}else if(this.cache.length>=16)return v=this.cache.slice(0,16),this.cache=this.cache.slice(16),v;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=p,e.createDecipheriv=d},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(t,r,e){var n=t("./modes"),a=t("./authCipher"),o=t("safe-buffer").Buffer,s=t("./streamCipher"),i=t("cipher-base"),c=t("./aes"),l=t("evp_bytestokey");function u(m,v,b){i.call(this),this._cache=new h,this._cipher=new c.AES(v),this._prev=o.from(b),this._mode=m,this._autopadding=!0}t("inherits")(u,i),u.prototype._update=function(m){var v,b;this._cache.add(m);for(var g=[];v=this._cache.get();)b=this._mode.encrypt(this,v),g.push(b);return o.concat(g)};var f=o.alloc(16,16);function h(){this.cache=o.allocUnsafe(0)}function d(m,v,b){var g=n[m.toLowerCase()];if(!g)throw new TypeError("invalid suite type");if(typeof v=="string"&&(v=o.from(v)),v.length!==g.key/8)throw new TypeError("invalid key length "+v.length);if(typeof b=="string"&&(b=o.from(b)),g.mode!=="GCM"&&b.length!==g.iv)throw new TypeError("invalid iv length "+b.length);return g.type==="stream"?new s(g.module,v,b):g.type==="auth"?new a(g.module,v,b):new u(g.module,v,b)}function p(m,v){var b=n[m.toLowerCase()];if(!b)throw new TypeError("invalid suite type");var g=l(v,!1,b.key,b.iv);return d(m,g.key,g.iv)}u.prototype._final=function(){var m=this._cache.flush();if(this._autopadding)return m=this._mode.encrypt(this,m),this._cipher.scrub(),m;if(!m.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(m){return this._autopadding=!!m,this},h.prototype.add=function(m){this.cache=o.concat([this.cache,m])},h.prototype.get=function(){if(this.cache.length>15){var m=this.cache.slice(0,16);return this.cache=this.cache.slice(16),m}return null},h.prototype.flush=function(){for(var m=16-this.cache.length,v=o.allocUnsafe(m),b=-1;++b<m;)v.writeUInt8(m,b);return o.concat([this.cache,v])},e.createCipheriv=d,e.createCipher=p},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],194:[function(t,r,e){var n=t("safe-buffer").Buffer,a=n.alloc(16,0);function o(c){return[c.readUInt32BE(0),c.readUInt32BE(4),c.readUInt32BE(8),c.readUInt32BE(12)]}function s(c){var l=n.allocUnsafe(16);return l.writeUInt32BE(c[0]>>>0,0),l.writeUInt32BE(c[1]>>>0,4),l.writeUInt32BE(c[2]>>>0,8),l.writeUInt32BE(c[3]>>>0,12),l}function i(c){this.h=c,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}i.prototype.ghash=function(c){for(var l=-1;++l<c.length;)this.state[l]^=c[l];this._multiply()},i.prototype._multiply=function(){for(var c,l,u=o(this.h),f=[0,0,0,0],h=-1;++h<128;){for(this.state[~~(h/8)]&1<<7-h%8&&(f[0]^=u[0],f[1]^=u[1],f[2]^=u[2],f[3]^=u[3]),l=(1&u[3])!=0,c=3;c>0;c--)u[c]=u[c]>>>1|(1&u[c-1])<<31;u[0]=u[0]>>>1,l&&(u[0]=u[0]^225<<24)}this.state=s(f)},i.prototype.update=function(c){var l;for(this.cache=n.concat([this.cache,c]);this.cache.length>=16;)l=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(l)},i.prototype.final=function(c,l){return this.cache.length&&this.ghash(n.concat([this.cache,a],16)),this.ghash(s([0,c,0,l])),this.state},r.exports=i},{"safe-buffer":494}],195:[function(t,r,e){function n(a){for(var o,s=a.length;s--;){if((o=a.readUInt8(s))!==255){o++,a.writeUInt8(o,s);break}a.writeUInt8(0,s)}}r.exports=n},{}],196:[function(t,r,e){var n=t("buffer-xor");e.encrypt=function(a,o){var s=n(o,a._prev);return a._prev=a._cipher.encryptBlock(s),a._prev},e.decrypt=function(a,o){var s=a._prev;a._prev=o;var i=a._cipher.decryptBlock(o);return n(i,s)}},{"buffer-xor":219}],197:[function(t,r,e){var n=t("safe-buffer").Buffer,a=t("buffer-xor");function o(s,i,c){var l=i.length,u=a(i,s._cache);return s._cache=s._cache.slice(l),s._prev=n.concat([s._prev,c?i:u]),u}e.encrypt=function(s,i,c){for(var l,u=n.allocUnsafe(0);i.length;){if(s._cache.length===0&&(s._cache=s._cipher.encryptBlock(s._prev),s._prev=n.allocUnsafe(0)),!(s._cache.length<=i.length)){u=n.concat([u,o(s,i,c)]);break}l=s._cache.length,u=n.concat([u,o(s,i.slice(0,l),c)]),i=i.slice(l)}return u}},{"buffer-xor":219,"safe-buffer":494}],198:[function(t,r,e){var n=t("safe-buffer").Buffer;function a(s,i,c){for(var l,u,f=-1,h=8,d=0;++f<h;)l=i&1<<7-f?128:0,d+=(128&(u=s._cipher.encryptBlock(s._prev)[0]^l))>>f%8,s._prev=o(s._prev,c?l:u);return d}function o(s,i){var c=s.length,l=-1,u=n.allocUnsafe(s.length);for(s=n.concat([s,n.from([i])]);++l<c;)u[l]=s[l]<<1|s[l+1]>>7;return u}e.encrypt=function(s,i,c){for(var l=i.length,u=n.allocUnsafe(l),f=-1;++f<l;)u[f]=a(s,i[f],c);return u}},{"safe-buffer":494}],199:[function(t,r,e){var n=t("safe-buffer").Buffer;function a(o,s,i){var c=o._cipher.encryptBlock(o._prev)[0]^s;return o._prev=n.concat([o._prev.slice(1),n.from([i?s:c])]),c}e.encrypt=function(o,s,i){for(var c=s.length,l=n.allocUnsafe(c),u=-1;++u<c;)l[u]=a(o,s[u],i);return l}},{"safe-buffer":494}],200:[function(t,r,e){var n=t("buffer-xor"),a=t("safe-buffer").Buffer,o=t("../incr32");function s(c){var l=c._cipher.encryptBlockRaw(c._prev);return o(c._prev),l}var i=16;e.encrypt=function(c,l){var u=Math.ceil(l.length/i),f=c._cache.length;c._cache=a.concat([c._cache,a.allocUnsafe(u*i)]);for(var h=0;h<u;h++){var d=s(c),p=f+h*i;c._cache.writeUInt32BE(d[0],p+0),c._cache.writeUInt32BE(d[1],p+4),c._cache.writeUInt32BE(d[2],p+8),c._cache.writeUInt32BE(d[3],p+12)}var m=c._cache.slice(0,l.length);return c._cache=c._cache.slice(l.length),n(l,m)}},{"../incr32":195,"buffer-xor":219,"safe-buffer":494}],201:[function(t,r,e){e.encrypt=function(n,a){return n._cipher.encryptBlock(a)},e.decrypt=function(n,a){return n._cipher.decryptBlock(a)}},{}],202:[function(t,r,e){var n={ECB:t("./ecb"),CBC:t("./cbc"),CFB:t("./cfb"),CFB8:t("./cfb8"),CFB1:t("./cfb1"),OFB:t("./ofb"),CTR:t("./ctr"),GCM:t("./ctr")},a=t("./list.json");for(var o in a)a[o].module=n[a[o].mode];r.exports=a},{"./cbc":196,"./cfb":197,"./cfb1":198,"./cfb8":199,"./ctr":200,"./ecb":201,"./list.json":203,"./ofb":204}],203:[function(t,r,e){r.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(t,r,e){(function(n){(function(){var a=t("buffer-xor");function o(s){return s._prev=s._cipher.encryptBlock(s._prev),s._prev}e.encrypt=function(s,i){for(;s._cache.length<i.length;)s._cache=n.concat([s._cache,o(s)]);var c=s._cache.slice(0,i.length);return s._cache=s._cache.slice(i.length),a(i,c)}}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220,"buffer-xor":219}],205:[function(t,r,e){var n=t("./aes"),a=t("safe-buffer").Buffer,o=t("cipher-base");function s(i,c,l,u){o.call(this),this._cipher=new n.AES(c),this._prev=a.from(l),this._cache=a.allocUnsafe(0),this._secCache=a.allocUnsafe(0),this._decrypt=u,this._mode=i}t("inherits")(s,o),s.prototype._update=function(i){return this._mode.encrypt(this,i,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},r.exports=s},{"./aes":189,"cipher-base":221,inherits:440,"safe-buffer":494}],206:[function(t,r,e){var n=t("browserify-des"),a=t("browserify-aes/browser"),o=t("browserify-aes/modes"),s=t("browserify-des/modes"),i=t("evp_bytestokey");function c(d,p){var m,v;if(d=d.toLowerCase(),o[d])m=o[d].key,v=o[d].iv;else{if(!s[d])throw new TypeError("invalid suite type");m=8*s[d].key,v=s[d].iv}var b=i(p,!1,m,v);return u(d,b.key,b.iv)}function l(d,p){var m,v;if(d=d.toLowerCase(),o[d])m=o[d].key,v=o[d].iv;else{if(!s[d])throw new TypeError("invalid suite type");m=8*s[d].key,v=s[d].iv}var b=i(p,!1,m,v);return f(d,b.key,b.iv)}function u(d,p,m){if(d=d.toLowerCase(),o[d])return a.createCipheriv(d,p,m);if(s[d])return new n({key:p,iv:m,mode:d});throw new TypeError("invalid suite type")}function f(d,p,m){if(d=d.toLowerCase(),o[d])return a.createDecipheriv(d,p,m);if(s[d])return new n({key:p,iv:m,mode:d,decrypt:!0});throw new TypeError("invalid suite type")}function h(){return Object.keys(s).concat(a.getCiphers())}e.createCipher=e.Cipher=c,e.createCipheriv=e.Cipheriv=u,e.createDecipher=e.Decipher=l,e.createDecipheriv=e.Decipheriv=f,e.listCiphers=e.getCiphers=h},{"browserify-aes/browser":191,"browserify-aes/modes":202,"browserify-des":207,"browserify-des/modes":208,evp_bytestokey:423}],207:[function(t,r,e){var n=t("cipher-base"),a=t("des.js"),o=t("inherits"),s=t("safe-buffer").Buffer,i={"des-ede3-cbc":a.CBC.instantiate(a.EDE),"des-ede3":a.EDE,"des-ede-cbc":a.CBC.instantiate(a.EDE),"des-ede":a.EDE,"des-cbc":a.CBC.instantiate(a.DES),"des-ecb":a.DES};function c(l){n.call(this);var u,f=l.mode.toLowerCase(),h=i[f];u=l.decrypt?"decrypt":"encrypt";var d=l.key;s.isBuffer(d)||(d=s.from(d)),f!=="des-ede"&&f!=="des-ede-cbc"||(d=s.concat([d,d.slice(0,8)]));var p=l.iv;s.isBuffer(p)||(p=s.from(p)),this._des=h.create({key:d,iv:p,type:u})}i.des=i["des-cbc"],i.des3=i["des-ede3-cbc"],r.exports=c,o(c,n),c.prototype._update=function(l){return s.from(this._des.update(l))},c.prototype._final=function(){return s.from(this._des.final())}},{"cipher-base":221,"des.js":394,inherits:440,"safe-buffer":494}],208:[function(t,r,e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},{}],209:[function(t,r,e){(function(n){(function(){var a=t("bn.js"),o=t("randombytes");function s(l){var u=i(l);return{blinder:u.toRed(a.mont(l.modulus)).redPow(new a(l.publicExponent)).fromRed(),unblinder:u.invm(l.modulus)}}function i(l){var u,f=l.modulus.byteLength();do u=new a(o(f));while(u.cmp(l.modulus)>=0||!u.umod(l.prime1)||!u.umod(l.prime2));return u}function c(l,u){var f=s(u),h=u.modulus.byteLength(),d=new a(l).mul(f.blinder).umod(u.modulus),p=d.toRed(a.mont(u.prime1)),m=d.toRed(a.mont(u.prime2)),v=u.coefficient,b=u.prime1,g=u.prime2,y=p.redPow(u.exponent1).fromRed(),w=m.redPow(u.exponent2).fromRed(),x=y.isub(w).imul(v).umod(b).imul(g);return w.iadd(x).imul(f.unblinder).umod(u.modulus).toArrayLike(n,"be",h)}c.getr=i,r.exports=c}).call(this)}).call(this,t("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(t,r,e){r.exports=t("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(t,r,e){r.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(t,r,e){r.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(t,r,e){var n=t("safe-buffer").Buffer,a=t("create-hash"),o=t("readable-stream"),s=t("inherits"),i=t("./sign"),c=t("./verify"),l=t("./algorithms.json");function u(p){o.Writable.call(this);var m=l[p];if(!m)throw new Error("Unknown message digest");this._hashType=m.hash,this._hash=a(m.hash),this._tag=m.id,this._signType=m.sign}function f(p){o.Writable.call(this);var m=l[p];if(!m)throw new Error("Unknown message digest");this._hash=a(m.hash),this._tag=m.id,this._signType=m.sign}function h(p){return new u(p)}function d(p){return new f(p)}Object.keys(l).forEach(function(p){l[p].id=n.from(l[p].id,"hex"),l[p.toLowerCase()]=l[p]}),s(u,o.Writable),u.prototype._write=function(p,m,v){this._hash.update(p),v()},u.prototype.update=function(p,m){return typeof p=="string"&&(p=n.from(p,m)),this._hash.update(p),this},u.prototype.sign=function(p,m){this.end();var v=this._hash.digest(),b=i(v,p,this._hashType,this._signType,this._tag);return m?b.toString(m):b},s(f,o.Writable),f.prototype._write=function(p,m,v){this._hash.update(p),v()},f.prototype.update=function(p,m){return typeof p=="string"&&(p=n.from(p,m)),this._hash.update(p),this},f.prototype.verify=function(p,m,v){typeof m=="string"&&(m=n.from(m,v)),this.end();var b=this._hash.digest();return c(m,b,p,this._signType,this._tag)},r.exports={Sign:h,Verify:d,createSign:h,createVerify:d}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(t,r,e){var n=t("safe-buffer").Buffer,a=t("create-hmac"),o=t("browserify-rsa"),s=t("elliptic").ec,i=t("bn.js"),c=t("parse-asn1"),l=t("./curves.json");function u(y,w,x,C,O){var D=c(w);if(D.curve){if(C!=="ecdsa"&&C!=="ecdsa/rsa")throw new Error("wrong private key type");return f(y,D)}if(D.type==="dsa"){if(C!=="dsa")throw new Error("wrong private key type");return h(y,D,x)}if(C!=="rsa"&&C!=="ecdsa/rsa")throw new Error("wrong private key type");y=n.concat([O,y]);for(var j=D.modulus.byteLength(),U=[0,1];y.length+U.length+1<j;)U.push(255);U.push(0);for(var L=-1;++L<y.length;)U.push(y[L]);return o(U,D)}function f(y,w){var x=l[w.curve.join(".")];if(!x)throw new Error("unknown curve "+w.curve.join("."));var C=new s(x).keyFromPrivate(w.privateKey).sign(y);return n.from(C.toDER())}function h(y,w,x){for(var C,O=w.params.priv_key,D=w.params.p,j=w.params.q,U=w.params.g,L=new i(0),V=m(y,j).mod(j),A=!1,N=p(O,j,y,x);A===!1;)L=g(U,C=b(j,N,x),D,j),(A=C.invm(j).imul(V.add(O.mul(L))).mod(j)).cmpn(0)===0&&(A=!1,L=new i(0));return d(L,A)}function d(y,w){y=y.toArray(),w=w.toArray(),128&y[0]&&(y=[0].concat(y)),128&w[0]&&(w=[0].concat(w));var x=[48,y.length+w.length+4,2,y.length];return x=x.concat(y,[2,w.length],w),n.from(x)}function p(y,w,x,C){if((y=n.from(y.toArray())).length<w.byteLength()){var O=n.alloc(w.byteLength()-y.length);y=n.concat([O,y])}var D=x.length,j=v(x,w),U=n.alloc(D);U.fill(1);var L=n.alloc(D);return L=a(C,L).update(U).update(n.from([0])).update(y).update(j).digest(),U=a(C,L).update(U).digest(),{k:L=a(C,L).update(U).update(n.from([1])).update(y).update(j).digest(),v:U=a(C,L).update(U).digest()}}function m(y,w){var x=new i(y),C=(y.length<<3)-w.bitLength();return C>0&&x.ishrn(C),x}function v(y,w){y=(y=m(y,w)).mod(w);var x=n.from(y.toArray());if(x.length<w.byteLength()){var C=n.alloc(w.byteLength()-x.length);x=n.concat([C,x])}return x}function b(y,w,x){var C,O;do{for(C=n.alloc(0);8*C.length<y.bitLength();)w.v=a(x,w.k).update(w.v).digest(),C=n.concat([C,w.v]);O=m(C,y),w.k=a(x,w.k).update(w.v).update(n.from([0])).digest(),w.v=a(x,w.k).update(w.v).digest()}while(O.cmp(y)!==-1);return O}function g(y,w,x,C){return y.toRed(i.mont(x)).redPow(w).fromRed().mod(C)}r.exports=u,r.exports.getKey=p,r.exports.makeKey=b},{"./curves.json":212,"bn.js":186,"browserify-rsa":209,"create-hmac":388,elliptic:405,"parse-asn1":459,"safe-buffer":494}],215:[function(t,r,e){var n=t("safe-buffer").Buffer,a=t("bn.js"),o=t("elliptic").ec,s=t("parse-asn1"),i=t("./curves.json");function c(h,d,p,m,v){var b=s(p);if(b.type==="ec"){if(m!=="ecdsa"&&m!=="ecdsa/rsa")throw new Error("wrong public key type");return l(h,d,b)}if(b.type==="dsa"){if(m!=="dsa")throw new Error("wrong public key type");return u(h,d,b)}if(m!=="rsa"&&m!=="ecdsa/rsa")throw new Error("wrong public key type");d=n.concat([v,d]);for(var g=b.modulus.byteLength(),y=[1],w=0;d.length+y.length+2<g;)y.push(255),w++;y.push(0);for(var x=-1;++x<d.length;)y.push(d[x]);y=n.from(y);var C=a.mont(b.modulus);h=(h=new a(h).toRed(C)).redPow(new a(b.publicExponent)),h=n.from(h.fromRed().toArray());var O=w<8?1:0;for(g=Math.min(h.length,y.length),h.length!==y.length&&(O=1),x=-1;++x<g;)O|=h[x]^y[x];return O===0}function l(h,d,p){var m=i[p.data.algorithm.curve.join(".")];if(!m)throw new Error("unknown curve "+p.data.algorithm.curve.join("."));var v=new o(m),b=p.data.subjectPrivateKey.data;return v.verify(d,h,b)}function u(h,d,p){var m=p.data.p,v=p.data.q,b=p.data.g,g=p.data.pub_key,y=s.signature.decode(h,"der"),w=y.s,x=y.r;f(w,v),f(x,v);var C=a.mont(m),O=w.invm(v);return b.toRed(C).redPow(new a(d).mul(O).mod(v)).fromRed().mul(g.toRed(C).redPow(x.mul(O).mod(v)).fromRed()).mod(m).mod(v).cmp(x)===0}function f(h,d){if(h.cmpn(0)<=0)throw new Error("invalid sig");if(h.cmp(d)>=d)throw new Error("invalid sig")}r.exports=c},{"./curves.json":212,"bn.js":186,elliptic:405,"parse-asn1":459,"safe-buffer":494}],216:[function(t,r,e){},{}],217:[function(t,r,e){var n=t("buffer"),a=n.Buffer;function o(i,c){for(var l in i)c[l]=i[l]}function s(i,c,l){return a(i,c,l)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?r.exports=n:(o(n,e),e.Buffer=s),o(a,s),s.from=function(i,c,l){if(typeof i=="number")throw new TypeError("Argument must not be a number");return a(i,c,l)},s.alloc=function(i,c,l){if(typeof i!="number")throw new TypeError("Argument must be a number");var u=a(i);return c!==void 0?typeof l=="string"?u.fill(c,l):u.fill(c):u.fill(0),u},s.allocUnsafe=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return a(i)},s.allocUnsafeSlow=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(i)}},{buffer:220}],218:[function(t,r,e){var n=t("safe-buffer").Buffer,a=n.isEncoding||function(w){switch((w=""+w)&&w.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 o(w){if(!w)return"utf8";for(var x;;)switch(w){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 w;default:if(x)return;w=(""+w).toLowerCase(),x=!0}}function s(w){var x=o(w);if(typeof x!="string"&&(n.isEncoding===a||!a(w)))throw new Error("Unknown encoding: "+w);return x||w}function i(w){var x;switch(this.encoding=s(w),this.encoding){case"utf16le":this.text=p,this.end=m,x=4;break;case"utf8":this.fillLast=f,x=4;break;case"base64":this.text=v,this.end=b,x=3;break;default:return this.write=g,void(this.end=y)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(x)}function c(w){return w<=127?0:w>>5==6?2:w>>4==14?3:w>>3==30?4:w>>6==2?-1:-2}function l(w,x,C){var O=x.length-1;if(O<C)return 0;var D=c(x[O]);return D>=0?(D>0&&(w.lastNeed=D-1),D):--O<C||D===-2?0:(D=c(x[O]))>=0?(D>0&&(w.lastNeed=D-2),D):--O<C||D===-2?0:(D=c(x[O]))>=0?(D>0&&(D===2?D=0:w.lastNeed=D-3),D):0}function u(w,x,C){if((192&x[0])!=128)return w.lastNeed=0,"<22>";if(w.lastNeed>1&&x.length>1){if((192&x[1])!=128)return w.lastNeed=1,"<22>";if(w.lastNeed>2&&x.length>2&&(192&x[2])!=128)return w.lastNeed=2,"<22>"}}function f(w){var x=this.lastTotal-this.lastNeed,C=u(this,w);return C!==void 0?C:this.lastNeed<=w.length?(w.copy(this.lastChar,x,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(w.copy(this.lastChar,x,0,w.length),void(this.lastNeed-=w.length))}function h(w,x){var C=l(this,w,x);if(!this.lastNeed)return w.toString("utf8",x);this.lastTotal=C;var O=w.length-(C-this.lastNeed);return w.copy(this.lastChar,0,O),w.toString("utf8",x,O)}function d(w){var x=w&&w.length?this.write(w):"";return this.lastNeed?x+"<22>":x}function p(w,x){if((w.length-x)%2==0){var C=w.toString("utf16le",x);if(C){var O=C.charCodeAt(C.length-1);if(O>=55296&&O<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1],C.slice(0,-1)}return C}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=w[w.length-1],w.toString("utf16le",x,w.length-1)}function m(w){var x=w&&w.length?this.write(w):"";if(this.lastNeed){var C=this.lastTotal-this.lastNeed;return x+this.lastChar.toString("utf16le",0,C)}return x}function v(w,x){var C=(w.length-x)%3;return C===0?w.toString("base64",x):(this.lastNeed=3-C,this.lastTotal=3,C===1?this.lastChar[0]=w[w.length-1]:(this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1]),w.toString("base64",x,w.length-C))}function b(w){var x=w&&w.length?this.write(w):"";return this.lastNeed?x+this.lastChar.toString("base64",0,3-this.lastNeed):x}function g(w){return w.toString(this.encoding)}function y(w){return w&&w.length?this.write(w):""}e.StringDecoder=i,i.prototype.write=function(w){if(w.length===0)return"";var x,C;if(this.lastNeed){if((x=this.fillLast(w))===void 0)return"";C=this.lastNeed,this.lastNeed=0}else C=0;return C<w.length?x?x+this.text(w,C):this.text(w,C):x||""},i.prototype.end=d,i.prototype.text=h,i.prototype.fillLast=function(w){if(this.lastNeed<=w.length)return w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,w.length),this.lastNeed-=w.length}},{"safe-buffer":217}],219:[function(t,r,e){(function(n){(function(){r.exports=function(a,o){for(var s=Math.min(a.length,o.length),i=new n(s),c=0;c<s;++c)i[c]=a[c]^o[c];return i}}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220}],220:[function(t,r,e){(function(n){(function(){var a=t("base64-js"),o=t("ieee754");e.Buffer=l,e.SlowBuffer=y,e.INSPECT_MAX_BYTES=50;var s=2147483647;function i(){try{var W=new Uint8Array(1);return W.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},W.foo()===42}catch(X){return!1}}function c(W){if(W>s)throw new RangeError('The value "'+W+'" is invalid for option "size"');var X=new Uint8Array(W);return X.__proto__=l.prototype,X}function l(W,X,it){if(typeof W=="number"){if(typeof X=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(W)}return u(W,X,it)}function u(W,X,it){if(typeof W=="string")return p(W,X);if(ArrayBuffer.isView(W))return m(W);if(W==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W);if(st(W,ArrayBuffer)||W&&st(W.buffer,ArrayBuffer))return v(W,X,it);if(typeof W=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var xt=W.valueOf&&W.valueOf();if(xt!=null&&xt!==W)return l.from(xt,X,it);var Nt=b(W);if(Nt)return Nt;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof W[Symbol.toPrimitive]=="function")return l.from(W[Symbol.toPrimitive]("string"),X,it);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W)}function f(W){if(typeof W!="number")throw new TypeError('"size" argument must be of type number');if(W<0)throw new RangeError('The value "'+W+'" is invalid for option "size"')}function h(W,X,it){return f(W),W<=0?c(W):X!==void 0?typeof it=="string"?c(W).fill(X,it):c(W).fill(X):c(W)}function d(W){return f(W),c(W<0?0:0|g(W))}function p(W,X){if(typeof X=="string"&&X!==""||(X="utf8"),!l.isEncoding(X))throw new TypeError("Unknown encoding: "+X);var it=0|w(W,X),xt=c(it),Nt=xt.write(W,X);return Nt!==it&&(xt=xt.slice(0,Nt)),xt}function m(W){for(var X=W.length<0?0:0|g(W.length),it=c(X),xt=0;xt<X;xt+=1)it[xt]=255&W[xt];return it}function v(W,X,it){if(X<0||W.byteLength<X)throw new RangeError('"offset" is outside of buffer bounds');if(W.byteLength<X+(it||0))throw new RangeError('"length" is outside of buffer bounds');var xt;return(xt=X===void 0&&it===void 0?new Uint8Array(W):it===void 0?new Uint8Array(W,X):new Uint8Array(W,X,it)).__proto__=l.prototype,xt}function b(W){if(l.isBuffer(W)){var X=0|g(W.length),it=c(X);return it.length===0||W.copy(it,0,0,X),it}return W.length!==void 0?typeof W.length!="number"||Ot(W.length)?c(0):m(W):W.type==="Buffer"&&Array.isArray(W.data)?m(W.data):void 0}function g(W){if(W>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|W}function y(W){return+W!=W&&(W=0),l.alloc(+W)}function w(W,X){if(l.isBuffer(W))return W.length;if(ArrayBuffer.isView(W)||st(W,ArrayBuffer))return W.byteLength;if(typeof W!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof W);var it=W.length,xt=arguments.length>2&&arguments[2]===!0;if(!xt&&it===0)return 0;for(var Nt=!1;;)switch(X){case"ascii":case"latin1":case"binary":return it;case"utf8":case"utf-8":return q(W).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*it;case"hex":return it>>>1;case"base64":return _t(W).length;default:if(Nt)return xt?-1:q(W).length;X=(""+X).toLowerCase(),Nt=!0}}function x(W,X,it){var xt=!1;if((X===void 0||X<0)&&(X=0),X>this.length||((it===void 0||it>this.length)&&(it=this.length),it<=0)||(it>>>=0)<=(X>>>=0))return"";for(W||(W="utf8");;)switch(W){case"hex":return I(this,X,it);case"utf8":case"utf-8":return S(this,X,it);case"ascii":return R(this,X,it);case"latin1":case"binary":return F(this,X,it);case"base64":return k(this,X,it);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,X,it);default:if(xt)throw new TypeError("Unknown encoding: "+W);W=(W+"").toLowerCase(),xt=!0}}function C(W,X,it){var xt=W[X];W[X]=W[it],W[it]=xt}function O(W,X,it,xt,Nt){if(W.length===0)return-1;if(typeof it=="string"?(xt=it,it=0):it>2147483647?it=2147483647:it<-2147483648&&(it=-2147483648),Ot(it=+it)&&(it=Nt?0:W.length-1),it<0&&(it=W.length+it),it>=W.length){if(Nt)return-1;it=W.length-1}else if(it<0){if(!Nt)return-1;it=0}if(typeof X=="string"&&(X=l.from(X,xt)),l.isBuffer(X))return X.length===0?-1:D(W,X,it,xt,Nt);if(typeof X=="number")return X&=255,typeof Uint8Array.prototype.indexOf=="function"?Nt?Uint8Array.prototype.indexOf.call(W,X,it):Uint8Array.prototype.lastIndexOf.call(W,X,it):D(W,[X],it,xt,Nt);throw new TypeError("val must be string, number or Buffer")}function D(W,X,it,xt,Nt){var G,Mt=1,Pt=W.length,lt=X.length;if(xt!==void 0&&((xt=String(xt).toLowerCase())==="ucs2"||xt==="ucs-2"||xt==="utf16le"||xt==="utf-16le")){if(W.length<2||X.length<2)return-1;Mt=2,Pt/=2,lt/=2,it/=2}function ct(nt,ht){return Mt===1?nt[ht]:nt.readUInt16BE(ht*Mt)}if(Nt){var pt=-1;for(G=it;G<Pt;G++)if(ct(W,G)===ct(X,pt===-1?0:G-pt)){if(pt===-1&&(pt=G),G-pt+1===lt)return pt*Mt}else pt!==-1&&(G-=G-pt),pt=-1}else for(it+lt>Pt&&(it=Pt-lt),G=it;G>=0;G--){for(var Dt=!0,rt=0;rt<lt;rt++)if(ct(W,G+rt)!==ct(X,rt)){Dt=!1;break}if(Dt)return G}return-1}function j(W,X,it,xt){it=Number(it)||0;var Nt=W.length-it;xt?(xt=Number(xt))>Nt&&(xt=Nt):xt=Nt;var G=X.length;xt>G/2&&(xt=G/2);for(var Mt=0;Mt<xt;++Mt){var Pt=parseInt(X.substr(2*Mt,2),16);if(Ot(Pt))return Mt;W[it+Mt]=Pt}return Mt}function U(W,X,it,xt){return J(q(X,W.length-it),W,it,xt)}function L(W,X,it,xt){return J(tt(X),W,it,xt)}function V(W,X,it,xt){return L(W,X,it,xt)}function A(W,X,it,xt){return J(_t(X),W,it,xt)}function N(W,X,it,xt){return J(et(X,W.length-it),W,it,xt)}function k(W,X,it){return X===0&&it===W.length?a.fromByteArray(W):a.fromByteArray(W.slice(X,it))}function S(W,X,it){it=Math.min(W.length,it);for(var xt=[],Nt=X;Nt<it;){var G,Mt,Pt,lt,ct=W[Nt],pt=null,Dt=ct>239?4:ct>223?3:ct>191?2:1;if(Nt+Dt<=it)switch(Dt){case 1:ct<128&&(pt=ct);break;case 2:(192&(G=W[Nt+1]))==128&&(lt=(31&ct)<<6|63&G)>127&&(pt=lt);break;case 3:G=W[Nt+1],Mt=W[Nt+2],(192&G)==128&&(192&Mt)==128&&(lt=(15&ct)<<12|(63&G)<<6|63&Mt)>2047&&(lt<55296||lt>57343)&&(pt=lt);break;case 4:G=W[Nt+1],Mt=W[Nt+2],Pt=W[Nt+3],(192&G)==128&&(192&Mt)==128&&(192&Pt)==128&&(lt=(15&ct)<<18|(63&G)<<12|(63&Mt)<<6|63&Pt)>65535&<<1114112&&(pt=lt)}pt===null?(pt=65533,Dt=1):pt>65535&&(pt-=65536,xt.push(pt>>>10&1023|55296),pt=56320|1023&pt),xt.push(pt),Nt+=Dt}return T(xt)}e.kMaxLength=s,l.TYPED_ARRAY_SUPPORT=i(),l.TYPED_ARRAY_SUPPORT||typeof console=="undefined"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),typeof Symbol!="undefined"&&Symbol.species!=null&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),l.poolSize=8192,l.from=function(W,X,it){return u(W,X,it)},l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,l.alloc=function(W,X,it){return h(W,X,it)},l.allocUnsafe=function(W){return d(W)},l.allocUnsafeSlow=function(W){return d(W)},l.isBuffer=function(W){return W!=null&&W._isBuffer===!0&&W!==l.prototype},l.compare=function(W,X){if(st(W,Uint8Array)&&(W=l.from(W,W.offset,W.byteLength)),st(X,Uint8Array)&&(X=l.from(X,X.offset,X.byteLength)),!l.isBuffer(W)||!l.isBuffer(X))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(W===X)return 0;for(var it=W.length,xt=X.length,Nt=0,G=Math.min(it,xt);Nt<G;++Nt)if(W[Nt]!==X[Nt]){it=W[Nt],xt=X[Nt];break}return it<xt?-1:xt<it?1:0},l.isEncoding=function(W){switch(String(W).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(W,X){if(!Array.isArray(W))throw new TypeError('"list" argument must be an Array of Buffers');if(W.length===0)return l.alloc(0);var it;if(X===void 0)for(X=0,it=0;it<W.length;++it)X+=W[it].length;var xt=l.allocUnsafe(X),Nt=0;for(it=0;it<W.length;++it){var G=W[it];if(st(G,Uint8Array)&&(G=l.from(G)),!l.isBuffer(G))throw new TypeError('"list" argument must be an Array of Buffers');G.copy(xt,Nt),Nt+=G.length}return xt},l.byteLength=w,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var W=this.length;if(W%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var X=0;X<W;X+=2)C(this,X,X+1);return this},l.prototype.swap32=function(){var W=this.length;if(W%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var X=0;X<W;X+=4)C(this,X,X+3),C(this,X+1,X+2);return this},l.prototype.swap64=function(){var W=this.length;if(W%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var X=0;X<W;X+=8)C(this,X,X+7),C(this,X+1,X+6),C(this,X+2,X+5),C(this,X+3,X+4);return this},l.prototype.toString=function(){var W=this.length;return W===0?"":arguments.length===0?S(this,0,W):x.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(W){if(!l.isBuffer(W))throw new TypeError("Argument must be a Buffer");return this===W||l.compare(this,W)===0},l.prototype.inspect=function(){var W="",X=e.INSPECT_MAX_BYTES;return W=this.toString("hex",0,X).replace(/(.{2})/g,"$1 ").trim(),this.length>X&&(W+=" ... "),"<Buffer "+W+">"},l.prototype.compare=function(W,X,it,xt,Nt){if(st(W,Uint8Array)&&(W=l.from(W,W.offset,W.byteLength)),!l.isBuffer(W))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof W);if(X===void 0&&(X=0),it===void 0&&(it=W?W.length:0),xt===void 0&&(xt=0),Nt===void 0&&(Nt=this.length),X<0||it>W.length||xt<0||Nt>this.length)throw new RangeError("out of range index");if(xt>=Nt&&X>=it)return 0;if(xt>=Nt)return-1;if(X>=it)return 1;if(this===W)return 0;for(var G=(Nt>>>=0)-(xt>>>=0),Mt=(it>>>=0)-(X>>>=0),Pt=Math.min(G,Mt),lt=this.slice(xt,Nt),ct=W.slice(X,it),pt=0;pt<Pt;++pt)if(lt[pt]!==ct[pt]){G=lt[pt],Mt=ct[pt];break}return G<Mt?-1:Mt<G?1:0},l.prototype.includes=function(W,X,it){return this.indexOf(W,X,it)!==-1},l.prototype.indexOf=function(W,X,it){return O(this,W,X,it,!0)},l.prototype.lastIndexOf=function(W,X,it){return O(this,W,X,it,!1)},l.prototype.write=function(W,X,it,xt){if(X===void 0)xt="utf8",it=this.length,X=0;else if(it===void 0&&typeof X=="string")xt=X,it=this.length,X=0;else{if(!isFinite(X))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");X>>>=0,isFinite(it)?(it>>>=0,xt===void 0&&(xt="utf8")):(xt=it,it=void 0)}var Nt=this.length-X;if((it===void 0||it>Nt)&&(it=Nt),W.length>0&&(it<0||X<0)||X>this.length)throw new RangeError("Attempt to write outside buffer bounds");xt||(xt="utf8");for(var G=!1;;)switch(xt){case"hex":return j(this,W,X,it);case"utf8":case"utf-8":return U(this,W,X,it);case"ascii":return L(this,W,X,it);case"latin1":case"binary":return V(this,W,X,it);case"base64":return A(this,W,X,it);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,W,X,it);default:if(G)throw new TypeError("Unknown encoding: "+xt);xt=(""+xt).toLowerCase(),G=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function T(W){var X=W.length;if(X<=E)return String.fromCharCode.apply(String,W);for(var it="",xt=0;xt<X;)it+=String.fromCharCode.apply(String,W.slice(xt,xt+=E));return it}function R(W,X,it){var xt="";it=Math.min(W.length,it);for(var Nt=X;Nt<it;++Nt)xt+=String.fromCharCode(127&W[Nt]);return xt}function F(W,X,it){var xt="";it=Math.min(W.length,it);for(var Nt=X;Nt<it;++Nt)xt+=String.fromCharCode(W[Nt]);return xt}function I(W,X,it){var xt=W.length;(!X||X<0)&&(X=0),(!it||it<0||it>xt)&&(it=xt);for(var Nt="",G=X;G<it;++G)Nt+=Q(W[G]);return Nt}function B(W,X,it){for(var xt=W.slice(X,it),Nt="",G=0;G<xt.length;G+=2)Nt+=String.fromCharCode(xt[G]+256*xt[G+1]);return Nt}function P(W,X,it){if(W%1!=0||W<0)throw new RangeError("offset is not uint");if(W+X>it)throw new RangeError("Trying to access beyond buffer length")}function H(W,X,it,xt,Nt,G){if(!l.isBuffer(W))throw new TypeError('"buffer" argument must be a Buffer instance');if(X>Nt||X<G)throw new RangeError('"value" argument is out of bounds');if(it+xt>W.length)throw new RangeError("Index out of range")}function Z(W,X,it,xt,Nt,G){if(it+xt>W.length)throw new RangeError("Index out of range");if(it<0)throw new RangeError("Index out of range")}function Y(W,X,it,xt,Nt){return X=+X,it>>>=0,Nt||Z(W,X,it,4),o.write(W,X,it,xt,23,4),it+4}function dt(W,X,it,xt,Nt){return X=+X,it>>>=0,Nt||Z(W,X,it,8),o.write(W,X,it,xt,52,8),it+8}l.prototype.slice=function(W,X){var it=this.length;(W=~~W)<0?(W+=it)<0&&(W=0):W>it&&(W=it),(X=X===void 0?it:~~X)<0?(X+=it)<0&&(X=0):X>it&&(X=it),X<W&&(X=W);var xt=this.subarray(W,X);return xt.__proto__=l.prototype,xt},l.prototype.readUIntLE=function(W,X,it){W>>>=0,X>>>=0,it||P(W,X,this.length);for(var xt=this[W],Nt=1,G=0;++G<X&&(Nt*=256);)xt+=this[W+G]*Nt;return xt},l.prototype.readUIntBE=function(W,X,it){W>>>=0,X>>>=0,it||P(W,X,this.length);for(var xt=this[W+--X],Nt=1;X>0&&(Nt*=256);)xt+=this[W+--X]*Nt;return xt},l.prototype.readUInt8=function(W,X){return W>>>=0,X||P(W,1,this.length),this[W]},l.prototype.readUInt16LE=function(W,X){return W>>>=0,X||P(W,2,this.length),this[W]|this[W+1]<<8},l.prototype.readUInt16BE=function(W,X){return W>>>=0,X||P(W,2,this.length),this[W]<<8|this[W+1]},l.prototype.readUInt32LE=function(W,X){return W>>>=0,X||P(W,4,this.length),(this[W]|this[W+1]<<8|this[W+2]<<16)+16777216*this[W+3]},l.prototype.readUInt32BE=function(W,X){return W>>>=0,X||P(W,4,this.length),16777216*this[W]+(this[W+1]<<16|this[W+2]<<8|this[W+3])},l.prototype.readIntLE=function(W,X,it){W>>>=0,X>>>=0,it||P(W,X,this.length);for(var xt=this[W],Nt=1,G=0;++G<X&&(Nt*=256);)xt+=this[W+G]*Nt;return xt>=(Nt*=128)&&(xt-=Math.pow(2,8*X)),xt},l.prototype.readIntBE=function(W,X,it){W>>>=0,X>>>=0,it||P(W,X,this.length);for(var xt=X,Nt=1,G=this[W+--xt];xt>0&&(Nt*=256);)G+=this[W+--xt]*Nt;return G>=(Nt*=128)&&(G-=Math.pow(2,8*X)),G},l.prototype.readInt8=function(W,X){return W>>>=0,X||P(W,1,this.length),128&this[W]?-1*(255-this[W]+1):this[W]},l.prototype.readInt16LE=function(W,X){W>>>=0,X||P(W,2,this.length);var it=this[W]|this[W+1]<<8;return 32768&it?4294901760|it:it},l.prototype.readInt16BE=function(W,X){W>>>=0,X||P(W,2,this.length);var it=this[W+1]|this[W]<<8;return 32768&it?4294901760|it:it},l.prototype.readInt32LE=function(W,X){return W>>>=0,X||P(W,4,this.length),this[W]|this[W+1]<<8|this[W+2]<<16|this[W+3]<<24},l.prototype.readInt32BE=function(W,X){return W>>>=0,X||P(W,4,this.length),this[W]<<24|this[W+1]<<16|this[W+2]<<8|this[W+3]},l.prototype.readFloatLE=function(W,X){return W>>>=0,X||P(W,4,this.length),o.read(this,W,!0,23,4)},l.prototype.readFloatBE=function(W,X){return W>>>=0,X||P(W,4,this.length),o.read(this,W,!1,23,4)},l.prototype.readDoubleLE=function(W,X){return W>>>=0,X||P(W,8,this.length),o.read(this,W,!0,52,8)},l.prototype.readDoubleBE=function(W,X){return W>>>=0,X||P(W,8,this.length),o.read(this,W,!1,52,8)},l.prototype.writeUIntLE=function(W,X,it,xt){W=+W,X>>>=0,it>>>=0,xt||H(this,W,X,it,Math.pow(2,8*it)-1,0);var Nt=1,G=0;for(this[X]=255&W;++G<it&&(Nt*=256);)this[X+G]=W/Nt&255;return X+it},l.prototype.writeUIntBE=function(W,X,it,xt){W=+W,X>>>=0,it>>>=0,xt||H(this,W,X,it,Math.pow(2,8*it)-1,0);var Nt=it-1,G=1;for(this[X+Nt]=255&W;--Nt>=0&&(G*=256);)this[X+Nt]=W/G&255;return X+it},l.prototype.writeUInt8=function(W,X,it){return W=+W,X>>>=0,it||H(this,W,X,1,255,0),this[X]=255&W,X+1},l.prototype.writeUInt16LE=function(W,X,it){return W=+W,X>>>=0,it||H(this,W,X,2,65535,0),this[X]=255&W,this[X+1]=W>>>8,X+2},l.prototype.writeUInt16BE=function(W,X,it){return W=+W,X>>>=0,it||H(this,W,X,2,65535,0),this[X]=W>>>8,this[X+1]=255&W,X+2},l.prototype.writeUInt32LE=function(W,X,it){return W=+W,X>>>=0,it||H(this,W,X,4,4294967295,0),this[X+3]=W>>>24,this[X+2]=W>>>16,this[X+1]=W>>>8,this[X]=255&W,X+4},l.prototype.writeUInt32BE=function(W,X,it){return W=+W,X>>>=0,it||H(this,W,X,4,4294967295,0),this[X]=W>>>24,this[X+1]=W>>>16,this[X+2]=W>>>8,this[X+3]=255&W,X+4},l.prototype.writeIntLE=function(W,X,it,xt){if(W=+W,X>>>=0,!xt){var Nt=Math.pow(2,8*it-1);H(this,W,X,it,Nt-1,-Nt)}var G=0,Mt=1,Pt=0;for(this[X]=255&W;++G<it&&(Mt*=256);)W<0&&Pt===0&&this[X+G-1]!==0&&(Pt=1),this[X+G]=(W/Mt>>0)-Pt&255;return X+it},l.prototype.writeIntBE=function(W,X,it,xt){if(W=+W,X>>>=0,!xt){var Nt=Math.pow(2,8*it-1);H(this,W,X,it,Nt-1,-Nt)}var G=it-1,Mt=1,Pt=0;for(this[X+G]=255&W;--G>=0&&(Mt*=256);)W<0&&Pt===0&&this[X+G+1]!==0&&(Pt=1),this[X+G]=(W/Mt>>0)-Pt&255;return X+it},l.prototype.writeInt8=function(W,X,it){return W=+W,X>>>=0,it||H(this,W,X,1,127,-128),W<0&&(W=255+W+1),this[X]=255&W,X+1},l.prototype.writeInt16LE=function(W,X,it){return W=+W,X>>>=0,it||H(this,W,X,2,32767,-32768),this[X]=255&W,this[X+1]=W>>>8,X+2},l.prototype.writeInt16BE=function(W,X,it){return W=+W,X>>>=0,it||H(this,W,X,2,32767,-32768),this[X]=W>>>8,this[X+1]=255&W,X+2},l.prototype.writeInt32LE=function(W,X,it){return W=+W,X>>>=0,it||H(this,W,X,4,2147483647,-2147483648),this[X]=255&W,this[X+1]=W>>>8,this[X+2]=W>>>16,this[X+3]=W>>>24,X+4},l.prototype.writeInt32BE=function(W,X,it){return W=+W,X>>>=0,it||H(this,W,X,4,2147483647,-2147483648),W<0&&(W=4294967295+W+1),this[X]=W>>>24,this[X+1]=W>>>16,this[X+2]=W>>>8,this[X+3]=255&W,X+4},l.prototype.writeFloatLE=function(W,X,it){return Y(this,W,X,!0,it)},l.prototype.writeFloatBE=function(W,X,it){return Y(this,W,X,!1,it)},l.prototype.writeDoubleLE=function(W,X,it){return dt(this,W,X,!0,it)},l.prototype.writeDoubleBE=function(W,X,it){return dt(this,W,X,!1,it)},l.prototype.copy=function(W,X,it,xt){if(!l.isBuffer(W))throw new TypeError("argument should be a Buffer");if(it||(it=0),xt||xt===0||(xt=this.length),X>=W.length&&(X=W.length),X||(X=0),xt>0&&xt<it&&(xt=it),xt===it||W.length===0||this.length===0)return 0;if(X<0)throw new RangeError("targetStart out of bounds");if(it<0||it>=this.length)throw new RangeError("Index out of range");if(xt<0)throw new RangeError("sourceEnd out of bounds");xt>this.length&&(xt=this.length),W.length-X<xt-it&&(xt=W.length-X+it);var Nt=xt-it;if(this===W&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(X,it,xt);else if(this===W&&it<X&&X<xt)for(var G=Nt-1;G>=0;--G)W[G+X]=this[G+it];else Uint8Array.prototype.set.call(W,this.subarray(it,xt),X);return Nt},l.prototype.fill=function(W,X,it,xt){if(typeof W=="string"){if(typeof X=="string"?(xt=X,X=0,it=this.length):typeof it=="string"&&(xt=it,it=this.length),xt!==void 0&&typeof xt!="string")throw new TypeError("encoding must be a string");if(typeof xt=="string"&&!l.isEncoding(xt))throw new TypeError("Unknown encoding: "+xt);if(W.length===1){var Nt=W.charCodeAt(0);(xt==="utf8"&&Nt<128||xt==="latin1")&&(W=Nt)}}else typeof W=="number"&&(W&=255);if(X<0||this.length<X||this.length<it)throw new RangeError("Out of range index");if(it<=X)return this;var G;if(X>>>=0,it=it===void 0?this.length:it>>>0,W||(W=0),typeof W=="number")for(G=X;G<it;++G)this[G]=W;else{var Mt=l.isBuffer(W)?W:l.from(W,xt),Pt=Mt.length;if(Pt===0)throw new TypeError('The value "'+W+'" is invalid for argument "value"');for(G=0;G<it-X;++G)this[G+X]=Mt[G%Pt]}return this};var gt=/[^+/0-9A-Za-z-_]/g;function bt(W){if((W=(W=W.split("=")[0]).trim().replace(gt,"")).length<2)return"";for(;W.length%4!=0;)W+="=";return W}function Q(W){return W<16?"0"+W.toString(16):W.toString(16)}function q(W,X){var it;X=X||1/0;for(var xt=W.length,Nt=null,G=[],Mt=0;Mt<xt;++Mt){if((it=W.charCodeAt(Mt))>55295&&it<57344){if(!Nt){if(it>56319){(X-=3)>-1&&G.push(239,191,189);continue}if(Mt+1===xt){(X-=3)>-1&&G.push(239,191,189);continue}Nt=it;continue}if(it<56320){(X-=3)>-1&&G.push(239,191,189),Nt=it;continue}it=65536+(Nt-55296<<10|it-56320)}else Nt&&(X-=3)>-1&&G.push(239,191,189);if(Nt=null,it<128){if((X-=1)<0)break;G.push(it)}else if(it<2048){if((X-=2)<0)break;G.push(it>>6|192,63&it|128)}else if(it<65536){if((X-=3)<0)break;G.push(it>>12|224,it>>6&63|128,63&it|128)}else{if(!(it<1114112))throw new Error("Invalid code point");if((X-=4)<0)break;G.push(it>>18|240,it>>12&63|128,it>>6&63|128,63&it|128)}}return G}function tt(W){for(var X=[],it=0;it<W.length;++it)X.push(255&W.charCodeAt(it));return X}function et(W,X){for(var it,xt,Nt,G=[],Mt=0;Mt<W.length&&!((X-=2)<0);++Mt)xt=(it=W.charCodeAt(Mt))>>8,Nt=it%256,G.push(Nt),G.push(xt);return G}function _t(W){return a.toByteArray(bt(W))}function J(W,X,it,xt){for(var Nt=0;Nt<xt&&!(Nt+it>=X.length||Nt>=W.length);++Nt)X[Nt+it]=W[Nt];return Nt}function st(W,X){return W instanceof X||W!=null&&W.constructor!=null&&W.constructor.name!=null&&W.constructor.name===X.name}function Ot(W){return W!=W}}).call(this)}).call(this,t("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(t,r,e){var n=t("safe-buffer").Buffer,a=t("stream").Transform,o=t("string_decoder").StringDecoder;function s(i){a.call(this),this.hashMode=typeof i=="string",this.hashMode?this[i]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}t("inherits")(s,a),s.prototype.update=function(i,c,l){typeof i=="string"&&(i=n.from(i,c));var u=this._update(i);return this.hashMode?this:(l&&(u=this._toString(u,l)),u)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(i,c,l){var u;try{this.hashMode?this._update(i):this.push(this._update(i))}catch(f){u=f}finally{l(u)}},s.prototype._flush=function(i){var c;try{this.push(this.__final())}catch(l){c=l}i(c)},s.prototype._finalOrDigest=function(i){var c=this.__final()||n.alloc(0);return i&&(c=this._toString(c,i,!0)),c},s.prototype._toString=function(i,c,l){if(this._decoder||(this._decoder=new o(c),this._encoding=c),this._encoding!==c)throw new Error("can't switch encodings");var u=this._decoder.write(i);return l&&(u+=this._decoder.end()),u},r.exports=s},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(t,r,e){var n=t("../internals/is-callable"),a=t("../internals/try-to-string"),o=TypeError;r.exports=function(s){if(n(s))return s;throw new o(a(s)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(t,r,e){var n=t("../internals/is-constructor"),a=t("../internals/try-to-string"),o=TypeError;r.exports=function(s){if(n(s))return s;throw new o(a(s)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(t,r,e){var n=t("../internals/is-callable"),a=String,o=TypeError;r.exports=function(s){if(typeof s=="object"||n(s))return s;throw new o("Can't set "+a(s)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(t,r,e){var n=t("../internals/well-known-symbol"),a=t("../internals/object-create"),o=t("../internals/object-define-property").f,s=n("unscopables"),i=Array.prototype;i[s]===void 0&&o(i,s,{configurable:!0,value:a(null)}),r.exports=function(c){i[s][c]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(t,r,e){var n=t("../internals/object-is-prototype-of"),a=TypeError;r.exports=function(o,s){if(n(s,o))return o;throw new a("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(t,r,e){var n=t("../internals/is-object"),a=String,o=TypeError;r.exports=function(s){if(n(s))return s;throw new o(a(s)+" is not an object")}},{"../internals/is-object":289}],228:[function(t,r,e){var n=t("../internals/to-indexed-object"),a=t("../internals/to-absolute-index"),o=t("../internals/length-of-array-like"),s=function(i){return function(c,l,u){var f,h=n(c),d=o(h),p=a(u,d);if(i&&l!=l){for(;d>p;)if((f=h[p++])!=f)return!0}else for(;d>p;p++)if((i||p in h)&&h[p]===l)return i||p||0;return!i&&-1}};r.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(t,r,e){var n=t("../internals/function-bind-context"),a=t("../internals/function-uncurry-this"),o=t("../internals/indexed-object"),s=t("../internals/to-object"),i=t("../internals/length-of-array-like"),c=t("../internals/array-species-create"),l=a([].push),u=function(f){var h=f===1,d=f===2,p=f===3,m=f===4,v=f===6,b=f===7,g=f===5||v;return function(y,w,x,C){for(var O,D,j=s(y),U=o(j),L=n(w,x),V=i(U),A=0,N=C||c,k=h?N(y,V):d||b?N(y,0):void 0;V>A;A++)if((g||A in U)&&(D=L(O=U[A],A,j),f))if(h)k[A]=D;else if(D)switch(f){case 3:return!0;case 5:return O;case 6:return A;case 2:l(k,O)}else switch(f){case 4:return!1;case 7:l(k,O)}return v?-1:p||m?m:k}};r.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(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(t,r,e){var n=t("../internals/to-absolute-index"),a=t("../internals/length-of-array-like"),o=t("../internals/create-property"),s=Array,i=Math.max;r.exports=function(c,l,u){for(var f=a(c),h=n(l,f),d=n(u===void 0?f:u,f),p=s(i(d-h,0)),m=0;h<d;h++,m++)o(p,m,c[h]);return p.length=m,p}},{"../internals/create-property":243,"../internals/length-of-array-like":299,"../internals/to-absolute-index":340}],231:[function(t,r,e){var n=t("../internals/function-uncurry-this");r.exports=n([].slice)},{"../internals/function-uncurry-this":268}],232:[function(t,r,e){var n=t("../internals/is-array"),a=t("../internals/is-constructor"),o=t("../internals/is-object"),s=t("../internals/well-known-symbol")("species"),i=Array;r.exports=function(c){var l;return n(c)&&(l=c.constructor,(a(l)&&(l===i||n(l.prototype))||o(l)&&(l=l[s])===null)&&(l=void 0)),l===void 0?i:l}},{"../internals/is-array":284,"../internals/is-constructor":286,"../internals/is-object":289,"../internals/well-known-symbol":357}],233:[function(t,r,e){var n=t("../internals/array-species-constructor");r.exports=function(a,o){return new(n(a))(o===0?0:o)}},{"../internals/array-species-constructor":232}],234:[function(t,r,e){var n=t("../internals/well-known-symbol")("iterator"),a=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){a=!0}};s[n]=function(){return this},Array.from(s,function(){throw 2})}catch(i){}r.exports=function(i,c){try{if(!c&&!a)return!1}catch(f){return!1}var l=!1;try{var u={};u[n]=function(){return{next:function(){return{done:l=!0}}}},i(u)}catch(f){}return l}},{"../internals/well-known-symbol":357}],235:[function(t,r,e){var n=t("../internals/function-uncurry-this"),a=n({}.toString),o=n("".slice);r.exports=function(s){return o(a(s),8,-1)}},{"../internals/function-uncurry-this":268}],236:[function(t,r,e){var n=t("../internals/to-string-tag-support"),a=t("../internals/is-callable"),o=t("../internals/classof-raw"),s=t("../internals/well-known-symbol")("toStringTag"),i=Object,c=o(function(){return arguments}())==="Arguments",l=function(u,f){try{return u[f]}catch(h){}};r.exports=n?o:function(u){var f,h,d;return u===void 0?"Undefined":u===null?"Null":typeof(h=l(f=i(u),s))=="string"?h:c?o(f):(d=o(f))==="Object"&&a(f.callee)?"Arguments":d}},{"../internals/classof-raw":235,"../internals/is-callable":285,"../internals/to-string-tag-support":347,"../internals/well-known-symbol":357}],237:[function(t,r,e){var n=t("../internals/has-own-property"),a=t("../internals/own-keys"),o=t("../internals/object-get-own-property-descriptor"),s=t("../internals/object-define-property");r.exports=function(i,c,l){for(var u=a(c),f=s.f,h=o.f,d=0;d<u.length;d++){var p=u[d];n(i,p)||l&&n(l,p)||f(i,p,h(c,p))}}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/own-keys":321}],238:[function(t,r,e){var n=t("../internals/well-known-symbol")("match");r.exports=function(a){var o=/./;try{"/./"[a](o)}catch(s){try{return o[n]=!1,"/./"[a](o)}catch(i){}}return!1}},{"../internals/well-known-symbol":357}],239:[function(t,r,e){var n=t("../internals/fails");r.exports=!n(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype})},{"../internals/fails":260}],240:[function(t,r,e){r.exports=function(n,a){return{value:n,done:a}}},{}],241:[function(t,r,e){var n=t("../internals/descriptors"),a=t("../internals/object-define-property"),o=t("../internals/create-property-descriptor");r.exports=n?function(s,i,c){return a.f(s,i,o(1,c))}:function(s,i,c){return s[i]=c,s}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/object-define-property":308}],242:[function(t,r,e){r.exports=function(n,a){return{enumerable:!(1&n),configurable:!(2&n),writable:!(4&n),value:a}}},{}],243:[function(t,r,e){var n=t("../internals/to-property-key"),a=t("../internals/object-define-property"),o=t("../internals/create-property-descriptor");r.exports=function(s,i,c){var l=n(i);l in s?a.f(s,l,o(0,c)):s[l]=c}},{"../internals/create-property-descriptor":242,"../internals/object-define-property":308,"../internals/to-property-key":346}],244:[function(t,r,e){var n=t("../internals/make-built-in"),a=t("../internals/object-define-property");r.exports=function(o,s,i){return i.get&&n(i.get,s,{getter:!0}),i.set&&n(i.set,s,{setter:!0}),a.f(o,s,i)}},{"../internals/make-built-in":300,"../internals/object-define-property":308}],245:[function(t,r,e){var n=t("../internals/is-callable"),a=t("../internals/object-define-property"),o=t("../internals/make-built-in"),s=t("../internals/define-global-property");r.exports=function(i,c,l,u){u||(u={});var f=u.enumerable,h=u.name!==void 0?u.name:c;if(n(l)&&o(l,h,u),u.global)f?i[c]=l:s(c,l);else{try{u.unsafe?i[c]&&(f=!0):delete i[c]}catch(d){}f?i[c]=l:a.f(i,c,{value:l,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return i}},{"../internals/define-global-property":246,"../internals/is-callable":285,"../internals/make-built-in":300,"../internals/object-define-property":308}],246:[function(t,r,e){var n=t("../internals/global"),a=Object.defineProperty;r.exports=function(o,s){try{a(n,o,{value:s,configurable:!0,writable:!0})}catch(i){n[o]=s}return s}},{"../internals/global":274}],247:[function(t,r,e){var n=t("../internals/fails");r.exports=!n(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},{"../internals/fails":260}],248:[function(t,r,e){var n=typeof document=="object"&&document.all,a=n===void 0&&n!==void 0;r.exports={all:n,IS_HTMLDDA:a}},{}],249:[function(t,r,e){var n=t("../internals/global"),a=t("../internals/is-object"),o=n.document,s=a(o)&&a(o.createElement);r.exports=function(i){return s?o.createElement(i):{}}},{"../internals/global":274,"../internals/is-object":289}],250:[function(t,r,e){var n=t("../internals/engine-is-deno"),a=t("../internals/engine-is-node");r.exports=!n&&!a&&typeof window=="object"&&typeof document=="object"},{"../internals/engine-is-deno":251,"../internals/engine-is-node":254}],251:[function(t,r,e){r.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},{}],252:[function(t,r,e){var n=t("../internals/engine-user-agent");r.exports=/ipad|iphone|ipod/i.test(n)&&typeof Pebble!="undefined"},{"../internals/engine-user-agent":256}],253:[function(t,r,e){var n=t("../internals/engine-user-agent");r.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},{"../internals/engine-user-agent":256}],254:[function(t,r,e){var n=t("../internals/global"),a=t("../internals/classof-raw");r.exports=a(n.process)==="process"},{"../internals/classof-raw":235,"../internals/global":274}],255:[function(t,r,e){var n=t("../internals/engine-user-agent");r.exports=/web0s(?!.*chrome)/i.test(n)},{"../internals/engine-user-agent":256}],256:[function(t,r,e){r.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},{}],257:[function(t,r,e){var n,a,o=t("../internals/global"),s=t("../internals/engine-user-agent"),i=o.process,c=o.Deno,l=i&&i.versions||c&&c.version,u=l&&l.v8;u&&(a=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!a&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(a=+n[1]),r.exports=a},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(t,r,e){r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(t,r,e){var n=t("../internals/global"),a=t("../internals/object-get-own-property-descriptor").f,o=t("../internals/create-non-enumerable-property"),s=t("../internals/define-built-in"),i=t("../internals/define-global-property"),c=t("../internals/copy-constructor-properties"),l=t("../internals/is-forced");r.exports=function(u,f){var h,d,p,m,v,b=u.target,g=u.global,y=u.stat;if(h=g?n:y?n[b]||i(b,{}):(n[b]||{}).prototype)for(d in f){if(m=f[d],p=u.dontCallGetSet?(v=a(h,d))&&v.value:h[d],!l(g?d:b+(y?".":"#")+d,u.forced)&&p!==void 0){if(typeof m==typeof p)continue;c(m,p)}(u.sham||p&&p.sham)&&o(m,"sham",!0),s(h,d,m,u)}}},{"../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(t,r,e){r.exports=function(n){try{return!!n()}catch(a){return!0}}},{}],261:[function(t,r,e){var n=t("../internals/function-bind-native"),a=Function.prototype,o=a.apply,s=a.call;r.exports=typeof Reflect=="object"&&Reflect.apply||(n?s.bind(o):function(){return s.apply(o,arguments)})},{"../internals/function-bind-native":263}],262:[function(t,r,e){var n=t("../internals/function-uncurry-this-clause"),a=t("../internals/a-callable"),o=t("../internals/function-bind-native"),s=n(n.bind);r.exports=function(i,c){return a(i),c===void 0?i:o?s(i,c):function(){return i.apply(c,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(t,r,e){var n=t("../internals/fails");r.exports=!n(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},{"../internals/fails":260}],264:[function(t,r,e){var n=t("../internals/function-bind-native"),a=Function.prototype.call;r.exports=n?a.bind(a):function(){return a.apply(a,arguments)}},{"../internals/function-bind-native":263}],265:[function(t,r,e){var n=t("../internals/descriptors"),a=t("../internals/has-own-property"),o=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,i=a(o,"name"),c=i&&function(){}.name==="something",l=i&&(!n||n&&s(o,"name").configurable);r.exports={EXISTS:i,PROPER:c,CONFIGURABLE:l}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(t,r,e){var n=t("../internals/function-uncurry-this"),a=t("../internals/a-callable");r.exports=function(o,s,i){try{return n(a(Object.getOwnPropertyDescriptor(o,s)[i]))}catch(c){}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(t,r,e){var n=t("../internals/classof-raw"),a=t("../internals/function-uncurry-this");r.exports=function(o){if(n(o)==="Function")return a(o)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(t,r,e){var n=t("../internals/function-bind-native"),a=Function.prototype,o=a.call,s=n&&a.bind.bind(o,o);r.exports=n?s:function(i){return function(){return o.apply(i,arguments)}}},{"../internals/function-bind-native":263}],269:[function(t,r,e){var n=t("../internals/global"),a=t("../internals/is-callable"),o=function(s){return a(s)?s:void 0};r.exports=function(s,i){return arguments.length<2?o(n[s]):n[s]&&n[s][i]}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(t,r,e){var n=t("../internals/classof"),a=t("../internals/get-method"),o=t("../internals/is-null-or-undefined"),s=t("../internals/iterators"),i=t("../internals/well-known-symbol")("iterator");r.exports=function(c){if(!o(c))return a(c,i)||a(c,"@@iterator")||s[n(c)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(t,r,e){var n=t("../internals/function-call"),a=t("../internals/a-callable"),o=t("../internals/an-object"),s=t("../internals/try-to-string"),i=t("../internals/get-iterator-method"),c=TypeError;r.exports=function(l,u){var f=arguments.length<2?i(l):u;if(a(f))return o(n(f,l));throw new c(s(l)+" 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(t,r,e){var n=t("../internals/function-uncurry-this"),a=t("../internals/is-array"),o=t("../internals/is-callable"),s=t("../internals/classof-raw"),i=t("../internals/to-string"),c=n([].push);r.exports=function(l){if(o(l))return l;if(a(l)){for(var u=l.length,f=[],h=0;h<u;h++){var d=l[h];typeof d=="string"?c(f,d):typeof d!="number"&&s(d)!=="Number"&&s(d)!=="String"||c(f,i(d))}var p=f.length,m=!0;return function(v,b){if(m)return m=!1,b;if(a(this))return b;for(var g=0;g<p;g++)if(f[g]===v)return b}}}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268,"../internals/is-array":284,"../internals/is-callable":285,"../internals/to-string":348}],273:[function(t,r,e){var n=t("../internals/a-callable"),a=t("../internals/is-null-or-undefined");r.exports=function(o,s){var i=o[s];return a(i)?void 0:n(i)}},{"../internals/a-callable":222,"../internals/is-null-or-undefined":288}],274:[function(t,r,e){(function(n){(function(){var a=function(o){return o&&o.Math===Math&&o};r.exports=a(typeof globalThis=="object"&&globalThis)||a(typeof window=="object"&&window)||a(typeof self=="object"&&self)||a(typeof n=="object"&&n)||function(){return this}()||this||Function("return this")()}).call(this)}).call(this,ur!==void 0?ur:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],275:[function(t,r,e){var n=t("../internals/function-uncurry-this"),a=t("../internals/to-object"),o=n({}.hasOwnProperty);r.exports=Object.hasOwn||function(s,i){return o(a(s),i)}},{"../internals/function-uncurry-this":268,"../internals/to-object":344}],276:[function(t,r,e){r.exports={}},{}],277:[function(t,r,e){r.exports=function(n,a){try{arguments.length===1?console.error(n):console.error(n,a)}catch(o){}}},{}],278:[function(t,r,e){var n=t("../internals/get-built-in");r.exports=n("document","documentElement")},{"../internals/get-built-in":269}],279:[function(t,r,e){var n=t("../internals/descriptors"),a=t("../internals/fails"),o=t("../internals/document-create-element");r.exports=!n&&!a(function(){return Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a!==7})},{"../internals/descriptors":247,"../internals/document-create-element":249,"../internals/fails":260}],280:[function(t,r,e){var n=t("../internals/function-uncurry-this"),a=t("../internals/fails"),o=t("../internals/classof-raw"),s=Object,i=n("".split);r.exports=a(function(){return!s("z").propertyIsEnumerable(0)})?function(c){return o(c)==="String"?i(c,""):s(c)}:s},{"../internals/classof-raw":235,"../internals/fails":260,"../internals/function-uncurry-this":268}],281:[function(t,r,e){var n=t("../internals/function-uncurry-this"),a=t("../internals/is-callable"),o=t("../internals/shared-store"),s=n(Function.toString);a(o.inspectSource)||(o.inspectSource=function(i){return s(i)}),r.exports=o.inspectSource},{"../internals/function-uncurry-this":268,"../internals/is-callable":285,"../internals/shared-store":333}],282:[function(t,r,e){var n,a,o,s=t("../internals/weak-map-basic-detection"),i=t("../internals/global"),c=t("../internals/is-object"),l=t("../internals/create-non-enumerable-property"),u=t("../internals/has-own-property"),f=t("../internals/shared-store"),h=t("../internals/shared-key"),d=t("../internals/hidden-keys"),p="Object already initialized",m=i.TypeError,v=i.WeakMap,b=function(x){return o(x)?a(x):n(x,{})},g=function(x){return function(C){var O;if(!c(C)||(O=a(C)).type!==x)throw new m("Incompatible receiver, "+x+" required");return O}};if(s||f.state){var y=f.state||(f.state=new v);y.get=y.get,y.has=y.has,y.set=y.set,n=function(x,C){if(y.has(x))throw new m(p);return C.facade=x,y.set(x,C),C},a=function(x){return y.get(x)||{}},o=function(x){return y.has(x)}}else{var w=h("state");d[w]=!0,n=function(x,C){if(u(x,w))throw new m(p);return C.facade=x,l(x,w,C),C},a=function(x){return u(x,w)?x[w]:{}},o=function(x){return u(x,w)}}r.exports={set:n,get:a,has:o,enforce:b,getterFor:g}},{"../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(t,r,e){var n=t("../internals/well-known-symbol"),a=t("../internals/iterators"),o=n("iterator"),s=Array.prototype;r.exports=function(i){return i!==void 0&&(a.Array===i||s[o]===i)}},{"../internals/iterators":298,"../internals/well-known-symbol":357}],284:[function(t,r,e){var n=t("../internals/classof-raw");r.exports=Array.isArray||function(a){return n(a)==="Array"}},{"../internals/classof-raw":235}],285:[function(t,r,e){var n=t("../internals/document-all"),a=n.all;r.exports=n.IS_HTMLDDA?function(o){return typeof o=="function"||o===a}:function(o){return typeof o=="function"}},{"../internals/document-all":248}],286:[function(t,r,e){var n=t("../internals/function-uncurry-this"),a=t("../internals/fails"),o=t("../internals/is-callable"),s=t("../internals/classof"),i=t("../internals/get-built-in"),c=t("../internals/inspect-source"),l=function(){},u=[],f=i("Reflect","construct"),h=/^\s*(?:class|function)\b/,d=n(h.exec),p=!h.test(l),m=function(b){if(!o(b))return!1;try{return f(l,u,b),!0}catch(g){return!1}},v=function(b){if(!o(b))return!1;switch(s(b)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(h,c(b))}catch(g){return!0}};v.sham=!0,r.exports=!f||a(function(){var b;return m(m.call)||!m(Object)||!m(function(){b=!0})||b})?v:m},{"../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(t,r,e){var n=t("../internals/fails"),a=t("../internals/is-callable"),o=/#|\.prototype\./,s=function(f,h){var d=c[i(f)];return d===u||d!==l&&(a(h)?n(h):!!h)},i=s.normalize=function(f){return String(f).replace(o,".").toLowerCase()},c=s.data={},l=s.NATIVE="N",u=s.POLYFILL="P";r.exports=s},{"../internals/fails":260,"../internals/is-callable":285}],288:[function(t,r,e){r.exports=function(n){return n==null}},{}],289:[function(t,r,e){var n=t("../internals/is-callable"),a=t("../internals/document-all"),o=a.all;r.exports=a.IS_HTMLDDA?function(s){return typeof s=="object"?s!==null:n(s)||s===o}:function(s){return typeof s=="object"?s!==null:n(s)}},{"../internals/document-all":248,"../internals/is-callable":285}],290:[function(t,r,e){r.exports=!1},{}],291:[function(t,r,e){var n=t("../internals/is-object"),a=t("../internals/classof-raw"),o=t("../internals/well-known-symbol")("match");r.exports=function(s){var i;return n(s)&&((i=s[o])!==void 0?!!i:a(s)==="RegExp")}},{"../internals/classof-raw":235,"../internals/is-object":289,"../internals/well-known-symbol":357}],292:[function(t,r,e){var n=t("../internals/get-built-in"),a=t("../internals/is-callable"),o=t("../internals/object-is-prototype-of"),s=t("../internals/use-symbol-as-uid"),i=Object;r.exports=s?function(c){return typeof c=="symbol"}:function(c){var l=n("Symbol");return a(l)&&o(l.prototype,i(c))}},{"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/object-is-prototype-of":314,"../internals/use-symbol-as-uid":351}],293:[function(t,r,e){var n=t("../internals/function-bind-context"),a=t("../internals/function-call"),o=t("../internals/an-object"),s=t("../internals/try-to-string"),i=t("../internals/is-array-iterator-method"),c=t("../internals/length-of-array-like"),l=t("../internals/object-is-prototype-of"),u=t("../internals/get-iterator"),f=t("../internals/get-iterator-method"),h=t("../internals/iterator-close"),d=TypeError,p=function(v,b){this.stopped=v,this.result=b},m=p.prototype;r.exports=function(v,b,g){var y,w,x,C,O,D,j,U=g&&g.that,L=!(!g||!g.AS_ENTRIES),V=!(!g||!g.IS_RECORD),A=!(!g||!g.IS_ITERATOR),N=!(!g||!g.INTERRUPTED),k=n(b,U),S=function(T){return y&&h(y,"normal",T),new p(!0,T)},E=function(T){return L?(o(T),N?k(T[0],T[1],S):k(T[0],T[1])):N?k(T,S):k(T)};if(V)y=v.iterator;else if(A)y=v;else{if(!(w=f(v)))throw new d(s(v)+" is not iterable");if(i(w)){for(x=0,C=c(v);C>x;x++)if((O=E(v[x]))&&l(m,O))return O;return new p(!1)}y=u(v,w)}for(D=V?v.next:y.next;!(j=a(D,y)).done;){try{O=E(j.value)}catch(T){h(y,"throw",T)}if(typeof O=="object"&&O&&l(m,O))return O}return new p(!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(t,r,e){var n=t("../internals/function-call"),a=t("../internals/an-object"),o=t("../internals/get-method");r.exports=function(s,i,c){var l,u;a(s);try{if(!(l=o(s,"return"))){if(i==="throw")throw c;return c}l=n(l,s)}catch(f){u=!0,l=f}if(i==="throw")throw c;if(u)throw l;return a(l),c}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(t,r,e){var n=t("../internals/iterators-core").IteratorPrototype,a=t("../internals/object-create"),o=t("../internals/create-property-descriptor"),s=t("../internals/set-to-string-tag"),i=t("../internals/iterators"),c=function(){return this};r.exports=function(l,u,f,h){var d=u+" Iterator";return l.prototype=a(n,{next:o(+!h,f)}),s(l,d,!1,!0),i[d]=c,l}},{"../internals/create-property-descriptor":242,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-create":306,"../internals/set-to-string-tag":331}],296:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/function-call"),o=t("../internals/is-pure"),s=t("../internals/function-name"),i=t("../internals/is-callable"),c=t("../internals/iterator-create-constructor"),l=t("../internals/object-get-prototype-of"),u=t("../internals/object-set-prototype-of"),f=t("../internals/set-to-string-tag"),h=t("../internals/create-non-enumerable-property"),d=t("../internals/define-built-in"),p=t("../internals/well-known-symbol"),m=t("../internals/iterators"),v=t("../internals/iterators-core"),b=s.PROPER,g=s.CONFIGURABLE,y=v.IteratorPrototype,w=v.BUGGY_SAFARI_ITERATORS,x=p("iterator"),C="keys",O="values",D="entries",j=function(){return this};r.exports=function(U,L,V,A,N,k,S){c(V,L,A);var E,T,R,F=function(dt){if(dt===N&&Z)return Z;if(!w&&dt&&dt in P)return P[dt];switch(dt){case C:case O:case D:return function(){return new V(this,dt)}}return function(){return new V(this)}},I=L+" Iterator",B=!1,P=U.prototype,H=P[x]||P["@@iterator"]||N&&P[N],Z=!w&&H||F(N),Y=L==="Array"&&P.entries||H;if(Y&&(E=l(Y.call(new U)))!==Object.prototype&&E.next&&(o||l(E)===y||(u?u(E,y):i(E[x])||d(E,x,j)),f(E,I,!0,!0),o&&(m[I]=j)),b&&N===O&&H&&H.name!==O&&(!o&&g?h(P,"name",O):(B=!0,Z=function(){return a(H,this)})),N)if(T={values:F(O),keys:k?Z:F(C),entries:F(D)},S)for(R in T)(w||B||!(R in P))&&d(P,R,T[R]);else n({target:L,proto:!0,forced:w||B},T);return o&&!S||P[x]===Z||d(P,x,Z,{name:N}),m[L]=Z,T}},{"../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(t,r,e){var n,a,o,s=t("../internals/fails"),i=t("../internals/is-callable"),c=t("../internals/is-object"),l=t("../internals/object-create"),u=t("../internals/object-get-prototype-of"),f=t("../internals/define-built-in"),h=t("../internals/well-known-symbol"),d=t("../internals/is-pure"),p=h("iterator"),m=!1;[].keys&&("next"in(o=[].keys())?(a=u(u(o)))!==Object.prototype&&(n=a):m=!0),!c(n)||s(function(){var v={};return n[p].call(v)!==v})?n={}:d&&(n=l(n)),i(n[p])||f(n,p,function(){return this}),r.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},{"../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(t,r,e){arguments[4][276][0].apply(e,arguments)},{dup:276}],299:[function(t,r,e){var n=t("../internals/to-length");r.exports=function(a){return n(a.length)}},{"../internals/to-length":343}],300:[function(t,r,e){var n=t("../internals/function-uncurry-this"),a=t("../internals/fails"),o=t("../internals/is-callable"),s=t("../internals/has-own-property"),i=t("../internals/descriptors"),c=t("../internals/function-name").CONFIGURABLE,l=t("../internals/inspect-source"),u=t("../internals/internal-state"),f=u.enforce,h=u.get,d=String,p=Object.defineProperty,m=n("".slice),v=n("".replace),b=n([].join),g=i&&!a(function(){return p(function(){},"length",{value:8}).length!==8}),y=String(String).split("String"),w=r.exports=function(x,C,O){m(d(C),0,7)==="Symbol("&&(C="["+v(d(C),/^Symbol\(([^)]*)\)/,"$1")+"]"),O&&O.getter&&(C="get "+C),O&&O.setter&&(C="set "+C),(!s(x,"name")||c&&x.name!==C)&&(i?p(x,"name",{value:C,configurable:!0}):x.name=C),g&&O&&s(O,"arity")&&x.length!==O.arity&&p(x,"length",{value:O.arity});try{O&&s(O,"constructor")&&O.constructor?i&&p(x,"prototype",{writable:!1}):x.prototype&&(x.prototype=void 0)}catch(j){}var D=f(x);return s(D,"source")||(D.source=b(y,typeof C=="string"?C:"")),x};Function.prototype.toString=w(function(){return o(this)&&h(this).source||l(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(t,r,e){var n=Math.ceil,a=Math.floor;r.exports=Math.trunc||function(o){var s=+o;return(s>0?a:n)(s)}},{}],302:[function(t,r,e){var n,a,o,s,i,c=t("../internals/global"),l=t("../internals/function-bind-context"),u=t("../internals/object-get-own-property-descriptor").f,f=t("../internals/task").set,h=t("../internals/queue"),d=t("../internals/engine-is-ios"),p=t("../internals/engine-is-ios-pebble"),m=t("../internals/engine-is-webos-webkit"),v=t("../internals/engine-is-node"),b=c.MutationObserver||c.WebKitMutationObserver,g=c.document,y=c.process,w=c.Promise,x=u(c,"queueMicrotask"),C=x&&x.value;if(!C){var O=new h,D=function(){var j,U;for(v&&(j=y.domain)&&j.exit();U=O.get();)try{U()}catch(L){throw O.head&&n(),L}j&&j.enter()};d||v||m||!b||!g?!p&&w&&w.resolve?((s=w.resolve(void 0)).constructor=w,i=l(s.then,s),n=function(){i(D)}):v?n=function(){y.nextTick(D)}:(f=l(f,c),n=function(){f(D)}):(a=!0,o=g.createTextNode(""),new b(D).observe(o,{characterData:!0}),n=function(){o.data=a=!a}),C=function(j){O.head||n(),O.add(j)}}r.exports=C},{"../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(t,r,e){var n=t("../internals/a-callable"),a=TypeError,o=function(s){var i,c;this.promise=new s(function(l,u){if(i!==void 0||c!==void 0)throw new a("Bad Promise constructor");i=l,c=u}),this.resolve=n(i),this.reject=n(c)};r.exports.f=function(s){return new o(s)}},{"../internals/a-callable":222}],304:[function(t,r,e){var n=t("../internals/is-regexp"),a=TypeError;r.exports=function(o){if(n(o))throw new a("The method doesn't accept regular expressions");return o}},{"../internals/is-regexp":291}],305:[function(t,r,e){var n=t("../internals/descriptors"),a=t("../internals/function-uncurry-this"),o=t("../internals/function-call"),s=t("../internals/fails"),i=t("../internals/object-keys"),c=t("../internals/object-get-own-property-symbols"),l=t("../internals/object-property-is-enumerable"),u=t("../internals/to-object"),f=t("../internals/indexed-object"),h=Object.assign,d=Object.defineProperty,p=a([].concat);r.exports=!h||s(function(){if(n&&h({b:1},h(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var m={},v={},b=Symbol("assign detection"),g="abcdefghijklmnopqrst";return m[b]=7,g.split("").forEach(function(y){v[y]=y}),h({},m)[b]!==7||i(h({},v)).join("")!==g})?function(m,v){for(var b=u(m),g=arguments.length,y=1,w=c.f,x=l.f;g>y;)for(var C,O=f(arguments[y++]),D=w?p(i(O),w(O)):i(O),j=D.length,U=0;j>U;)C=D[U++],n&&!o(x,O,C)||(b[C]=O[C]);return b}:h},{"../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(t,r,e){var n,a=t("../internals/an-object"),o=t("../internals/object-define-properties"),s=t("../internals/enum-bug-keys"),i=t("../internals/hidden-keys"),c=t("../internals/html"),l=t("../internals/document-create-element"),u=t("../internals/shared-key"),f=">",h="<",d="prototype",p="script",m=u("IE_PROTO"),v=function(){},b=function(x){return h+p+f+x+h+"/"+p+f},g=function(x){x.write(b("")),x.close();var C=x.parentWindow.Object;return x=null,C},y=function(){var x,C=l("iframe"),O="java"+p+":";return C.style.display="none",c.appendChild(C),C.src=String(O),(x=C.contentWindow.document).open(),x.write(b("document.F=Object")),x.close(),x.F},w=function(){try{n=new ActiveXObject("htmlfile")}catch(C){}w=typeof document!="undefined"?document.domain&&n?g(n):y():g(n);for(var x=s.length;x--;)delete w[d][s[x]];return w()};i[m]=!0,r.exports=Object.create||function(x,C){var O;return x!==null?(v[d]=a(x),O=new v,v[d]=null,O[m]=x):O=w(),C===void 0?O:o.f(O,C)}},{"../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(t,r,e){var n=t("../internals/descriptors"),a=t("../internals/v8-prototype-define-bug"),o=t("../internals/object-define-property"),s=t("../internals/an-object"),i=t("../internals/to-indexed-object"),c=t("../internals/object-keys");e.f=n&&!a?Object.defineProperties:function(l,u){s(l);for(var f,h=i(u),d=c(u),p=d.length,m=0;p>m;)o.f(l,f=d[m++],h[f]);return l}},{"../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(t,r,e){var n=t("../internals/descriptors"),a=t("../internals/ie8-dom-define"),o=t("../internals/v8-prototype-define-bug"),s=t("../internals/an-object"),i=t("../internals/to-property-key"),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",d="writable";e.f=n?o?function(p,m,v){if(s(p),m=i(m),s(v),typeof p=="function"&&m==="prototype"&&"value"in v&&d in v&&!v[d]){var b=u(p,m);b&&b[d]&&(p[m]=v.value,v={configurable:h in v?v[h]:b[h],enumerable:f in v?v[f]:b[f],writable:!1})}return l(p,m,v)}:l:function(p,m,v){if(s(p),m=i(m),s(v),a)try{return l(p,m,v)}catch(b){}if("get"in v||"set"in v)throw new c("Accessors not supported");return"value"in v&&(p[m]=v.value),p}},{"../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(t,r,e){var n=t("../internals/descriptors"),a=t("../internals/function-call"),o=t("../internals/object-property-is-enumerable"),s=t("../internals/create-property-descriptor"),i=t("../internals/to-indexed-object"),c=t("../internals/to-property-key"),l=t("../internals/has-own-property"),u=t("../internals/ie8-dom-define"),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(h,d){if(h=i(h),d=c(d),u)try{return f(h,d)}catch(p){}if(l(h,d))return s(!a(o.f,h,d),h[d])}},{"../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(t,r,e){var n=t("../internals/classof-raw"),a=t("../internals/to-indexed-object"),o=t("../internals/object-get-own-property-names").f,s=t("../internals/array-slice-simple"),i=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(l){try{return o(l)}catch(u){return s(i)}};r.exports.f=function(l){return i&&n(l)==="Window"?c(l):o(a(l))}},{"../internals/array-slice-simple":230,"../internals/classof-raw":235,"../internals/object-get-own-property-names":311,"../internals/to-indexed-object":341}],311:[function(t,r,e){var n=t("../internals/object-keys-internal"),a=t("../internals/enum-bug-keys").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(o){return n(o,a)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],312:[function(t,r,e){e.f=Object.getOwnPropertySymbols},{}],313:[function(t,r,e){var n=t("../internals/has-own-property"),a=t("../internals/is-callable"),o=t("../internals/to-object"),s=t("../internals/shared-key"),i=t("../internals/correct-prototype-getter"),c=s("IE_PROTO"),l=Object,u=l.prototype;r.exports=i?l.getPrototypeOf:function(f){var h=o(f);if(n(h,c))return h[c];var d=h.constructor;return a(d)&&h instanceof d?d.prototype:h instanceof l?u: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(t,r,e){var n=t("../internals/function-uncurry-this");r.exports=n({}.isPrototypeOf)},{"../internals/function-uncurry-this":268}],315:[function(t,r,e){var n=t("../internals/function-uncurry-this"),a=t("../internals/has-own-property"),o=t("../internals/to-indexed-object"),s=t("../internals/array-includes").indexOf,i=t("../internals/hidden-keys"),c=n([].push);r.exports=function(l,u){var f,h=o(l),d=0,p=[];for(f in h)!a(i,f)&&a(h,f)&&c(p,f);for(;u.length>d;)a(h,f=u[d++])&&(~s(p,f)||c(p,f));return p}},{"../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(t,r,e){var n=t("../internals/object-keys-internal"),a=t("../internals/enum-bug-keys");r.exports=Object.keys||function(o){return n(o,a)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],317:[function(t,r,e){var n={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,o=a&&!n.call({1:2},1);e.f=o?function(s){var i=a(this,s);return!!i&&i.enumerable}:n},{}],318:[function(t,r,e){var n=t("../internals/function-uncurry-this-accessor"),a=t("../internals/an-object"),o=t("../internals/a-possible-prototype");r.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var s,i=!1,c={};try{(s=n(Object.prototype,"__proto__","set"))(c,[]),i=c instanceof Array}catch(l){}return function(l,u){return a(l),o(u),i?s(l,u):l.__proto__=u,l}}():void 0)},{"../internals/a-possible-prototype":224,"../internals/an-object":227,"../internals/function-uncurry-this-accessor":266}],319:[function(t,r,e){var n=t("../internals/descriptors"),a=t("../internals/fails"),o=t("../internals/function-uncurry-this"),s=t("../internals/object-get-prototype-of"),i=t("../internals/object-keys"),c=t("../internals/to-indexed-object"),l=o(t("../internals/object-property-is-enumerable").f),u=o([].push),f=n&&a(function(){var d=Object.create(null);return d[2]=2,!l(d,2)}),h=function(d){return function(p){for(var m,v=c(p),b=i(v),g=f&&s(v)===null,y=b.length,w=0,x=[];y>w;)m=b[w++],n&&!(g?m in v:l(v,m))||u(x,d?[m,v[m]]:v[m]);return x}};r.exports={entries:h(!0),values:h(!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(t,r,e){var n=t("../internals/function-call"),a=t("../internals/is-callable"),o=t("../internals/is-object"),s=TypeError;r.exports=function(i,c){var l,u;if(c==="string"&&a(l=i.toString)&&!o(u=n(l,i))||a(l=i.valueOf)&&!o(u=n(l,i))||c!=="string"&&a(l=i.toString)&&!o(u=n(l,i)))return u;throw new s("Can't convert object to primitive value")}},{"../internals/function-call":264,"../internals/is-callable":285,"../internals/is-object":289}],321:[function(t,r,e){var n=t("../internals/get-built-in"),a=t("../internals/function-uncurry-this"),o=t("../internals/object-get-own-property-names"),s=t("../internals/object-get-own-property-symbols"),i=t("../internals/an-object"),c=a([].concat);r.exports=n("Reflect","ownKeys")||function(l){var u=o.f(i(l)),f=s.f;return f?c(u,f(l)):u}},{"../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(t,r,e){var n=t("../internals/global");r.exports=n},{"../internals/global":274}],323:[function(t,r,e){r.exports=function(n){try{return{error:!1,value:n()}}catch(a){return{error:!0,value:a}}}},{}],324:[function(t,r,e){var n=t("../internals/global"),a=t("../internals/promise-native-constructor"),o=t("../internals/is-callable"),s=t("../internals/is-forced"),i=t("../internals/inspect-source"),c=t("../internals/well-known-symbol"),l=t("../internals/engine-is-browser"),u=t("../internals/engine-is-deno"),f=t("../internals/is-pure"),h=t("../internals/engine-v8-version"),d=a&&a.prototype,p=c("species"),m=!1,v=o(n.PromiseRejectionEvent),b=s("Promise",function(){var g=i(a),y=g!==String(a);if(!y&&h===66||f&&(!d.catch||!d.finally))return!0;if(!h||h<51||!/native code/.test(g)){var w=new a(function(C){C(1)}),x=function(C){C(function(){},function(){})};if((w.constructor={})[p]=x,!(m=w.then(function(){})instanceof x))return!0}return!y&&(l||u)&&!v});r.exports={CONSTRUCTOR:b,REJECTION_EVENT:v,SUBCLASSING:m}},{"../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(t,r,e){var n=t("../internals/global");r.exports=n.Promise},{"../internals/global":274}],326:[function(t,r,e){var n=t("../internals/an-object"),a=t("../internals/is-object"),o=t("../internals/new-promise-capability");r.exports=function(s,i){if(n(s),a(i)&&i.constructor===s)return i;var c=o.f(s);return(0,c.resolve)(i),c.promise}},{"../internals/an-object":227,"../internals/is-object":289,"../internals/new-promise-capability":303}],327:[function(t,r,e){var n=t("../internals/promise-native-constructor"),a=t("../internals/check-correctness-of-iteration"),o=t("../internals/promise-constructor-detection").CONSTRUCTOR;r.exports=o||!a(function(s){n.all(s).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":234,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],328:[function(t,r,e){var n=function(){this.head=null,this.tail=null};n.prototype={add:function(a){var o={item:a,next:null},s=this.tail;s?s.next=o:this.head=o,this.tail=o},get:function(){var a=this.head;if(a)return(this.head=a.next)===null&&(this.tail=null),a.item}},r.exports=n},{}],329:[function(t,r,e){var n=t("../internals/is-null-or-undefined"),a=TypeError;r.exports=function(o){if(n(o))throw new a("Can't call method on "+o);return o}},{"../internals/is-null-or-undefined":288}],330:[function(t,r,e){var n=t("../internals/get-built-in"),a=t("../internals/define-built-in-accessor"),o=t("../internals/well-known-symbol"),s=t("../internals/descriptors"),i=o("species");r.exports=function(c){var l=n(c);s&&l&&!l[i]&&a(l,i,{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(t,r,e){var n=t("../internals/object-define-property").f,a=t("../internals/has-own-property"),o=t("../internals/well-known-symbol")("toStringTag");r.exports=function(s,i,c){s&&!c&&(s=s.prototype),s&&!a(s,o)&&n(s,o,{configurable:!0,value:i})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],332:[function(t,r,e){var n=t("../internals/shared"),a=t("../internals/uid"),o=n("keys");r.exports=function(s){return o[s]||(o[s]=a(s))}},{"../internals/shared":334,"../internals/uid":350}],333:[function(t,r,e){var n=t("../internals/global"),a=t("../internals/define-global-property"),o="__core-js_shared__",s=n[o]||a(o,{});r.exports=s},{"../internals/define-global-property":246,"../internals/global":274}],334:[function(t,r,e){var n=t("../internals/is-pure"),a=t("../internals/shared-store");(r.exports=function(o,s){return a[o]||(a[o]=s!==void 0?s:{})})("versions",[]).push({version:"3.33.0",mode:n?"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(t,r,e){var n=t("../internals/an-object"),a=t("../internals/a-constructor"),o=t("../internals/is-null-or-undefined"),s=t("../internals/well-known-symbol")("species");r.exports=function(i,c){var l,u=n(i).constructor;return u===void 0||o(l=n(u)[s])?c:a(l)}},{"../internals/a-constructor":223,"../internals/an-object":227,"../internals/is-null-or-undefined":288,"../internals/well-known-symbol":357}],336:[function(t,r,e){var n=t("../internals/engine-v8-version"),a=t("../internals/fails"),o=t("../internals/global").String;r.exports=!!Object.getOwnPropertySymbols&&!a(function(){var s=Symbol("symbol detection");return!o(s)||!(Object(s)instanceof Symbol)||!Symbol.sham&&n&&n<41})},{"../internals/engine-v8-version":257,"../internals/fails":260,"../internals/global":274}],337:[function(t,r,e){var n=t("../internals/function-call"),a=t("../internals/get-built-in"),o=t("../internals/well-known-symbol"),s=t("../internals/define-built-in");r.exports=function(){var i=a("Symbol"),c=i&&i.prototype,l=c&&c.valueOf,u=o("toPrimitive");c&&!c[u]&&s(c,u,function(f){return n(l,this)},{arity:1})}},{"../internals/define-built-in":245,"../internals/function-call":264,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],338:[function(t,r,e){var n=t("../internals/symbol-constructor-detection");r.exports=n&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/symbol-constructor-detection":336}],339:[function(t,r,e){var n,a,o,s,i=t("../internals/global"),c=t("../internals/function-apply"),l=t("../internals/function-bind-context"),u=t("../internals/is-callable"),f=t("../internals/has-own-property"),h=t("../internals/fails"),d=t("../internals/html"),p=t("../internals/array-slice"),m=t("../internals/document-create-element"),v=t("../internals/validate-arguments-length"),b=t("../internals/engine-is-ios"),g=t("../internals/engine-is-node"),y=i.setImmediate,w=i.clearImmediate,x=i.process,C=i.Dispatch,O=i.Function,D=i.MessageChannel,j=i.String,U=0,L={},V="onreadystatechange";h(function(){n=i.location});var A=function(E){if(f(L,E)){var T=L[E];delete L[E],T()}},N=function(E){return function(){A(E)}},k=function(E){A(E.data)},S=function(E){i.postMessage(j(E),n.protocol+"//"+n.host)};y&&w||(y=function(E){v(arguments.length,1);var T=u(E)?E:O(E),R=p(arguments,1);return L[++U]=function(){c(T,void 0,R)},a(U),U},w=function(E){delete L[E]},g?a=function(E){x.nextTick(N(E))}:C&&C.now?a=function(E){C.now(N(E))}:D&&!b?(s=(o=new D).port2,o.port1.onmessage=k,a=l(s.postMessage,s)):i.addEventListener&&u(i.postMessage)&&!i.importScripts&&n&&n.protocol!=="file:"&&!h(S)?(a=S,i.addEventListener("message",k,!1)):a=V in m("script")?function(E){d.appendChild(m("script"))[V]=function(){d.removeChild(this),A(E)}}:function(E){setTimeout(N(E),0)}),r.exports={set:y,clear:w}},{"../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(t,r,e){var n=t("../internals/to-integer-or-infinity"),a=Math.max,o=Math.min;r.exports=function(s,i){var c=n(s);return c<0?a(c+i,0):o(c,i)}},{"../internals/to-integer-or-infinity":342}],341:[function(t,r,e){var n=t("../internals/indexed-object"),a=t("../internals/require-object-coercible");r.exports=function(o){return n(a(o))}},{"../internals/indexed-object":280,"../internals/require-object-coercible":329}],342:[function(t,r,e){var n=t("../internals/math-trunc");r.exports=function(a){var o=+a;return o!=o||o===0?0:n(o)}},{"../internals/math-trunc":301}],343:[function(t,r,e){var n=t("../internals/to-integer-or-infinity"),a=Math.min;r.exports=function(o){return o>0?a(n(o),9007199254740991):0}},{"../internals/to-integer-or-infinity":342}],344:[function(t,r,e){var n=t("../internals/require-object-coercible"),a=Object;r.exports=function(o){return a(n(o))}},{"../internals/require-object-coercible":329}],345:[function(t,r,e){var n=t("../internals/function-call"),a=t("../internals/is-object"),o=t("../internals/is-symbol"),s=t("../internals/get-method"),i=t("../internals/ordinary-to-primitive"),c=t("../internals/well-known-symbol"),l=TypeError,u=c("toPrimitive");r.exports=function(f,h){if(!a(f)||o(f))return f;var d,p=s(f,u);if(p){if(h===void 0&&(h="default"),d=n(p,f,h),!a(d)||o(d))return d;throw new l("Can't convert object to primitive value")}return h===void 0&&(h="number"),i(f,h)}},{"../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(t,r,e){var n=t("../internals/to-primitive"),a=t("../internals/is-symbol");r.exports=function(o){var s=n(o,"string");return a(s)?s:s+""}},{"../internals/is-symbol":292,"../internals/to-primitive":345}],347:[function(t,r,e){var n={};n[t("../internals/well-known-symbol")("toStringTag")]="z",r.exports=String(n)==="[object z]"},{"../internals/well-known-symbol":357}],348:[function(t,r,e){var n=t("../internals/classof"),a=String;r.exports=function(o){if(n(o)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(o)}},{"../internals/classof":236}],349:[function(t,r,e){var n=String;r.exports=function(a){try{return n(a)}catch(o){return"Object"}}},{}],350:[function(t,r,e){var n=t("../internals/function-uncurry-this"),a=0,o=Math.random(),s=n(1 .toString);r.exports=function(i){return"Symbol("+(i===void 0?"":i)+")_"+s(++a+o,36)}},{"../internals/function-uncurry-this":268}],351:[function(t,r,e){var n=t("../internals/symbol-constructor-detection");r.exports=n&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/symbol-constructor-detection":336}],352:[function(t,r,e){var n=t("../internals/descriptors"),a=t("../internals/fails");r.exports=n&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},{"../internals/descriptors":247,"../internals/fails":260}],353:[function(t,r,e){var n=TypeError;r.exports=function(a,o){if(a<o)throw new n("Not enough arguments");return a}},{}],354:[function(t,r,e){var n=t("../internals/global"),a=t("../internals/is-callable"),o=n.WeakMap;r.exports=a(o)&&/native code/.test(String(o))},{"../internals/global":274,"../internals/is-callable":285}],355:[function(t,r,e){var n=t("../internals/path"),a=t("../internals/has-own-property"),o=t("../internals/well-known-symbol-wrapped"),s=t("../internals/object-define-property").f;r.exports=function(i){var c=n.Symbol||(n.Symbol={});a(c,i)||s(c,i,{value:o.f(i)})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/path":322,"../internals/well-known-symbol-wrapped":356}],356:[function(t,r,e){var n=t("../internals/well-known-symbol");e.f=n},{"../internals/well-known-symbol":357}],357:[function(t,r,e){var n=t("../internals/global"),a=t("../internals/shared"),o=t("../internals/has-own-property"),s=t("../internals/uid"),i=t("../internals/symbol-constructor-detection"),c=t("../internals/use-symbol-as-uid"),l=n.Symbol,u=a("wks"),f=c?l.for||l:l&&l.withoutSetter||s;r.exports=function(h){return o(u,h)||(u[h]=i&&o(l,h)?l[h]:f("Symbol."+h)),u[h]}},{"../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(t,r,e){var n=t("../internals/export"),a=t("../internals/array-iteration").findIndex,o=t("../internals/add-to-unscopables"),s="findIndex",i=!0;s in[]&&Array(1)[s](function(){i=!1}),n({target:"Array",proto:!0,forced:i},{findIndex:function(c){return a(this,c,arguments.length>1?arguments[1]:void 0)}}),o(s)},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],359:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/array-iteration").find,o=t("../internals/add-to-unscopables"),s="find",i=!0;s in[]&&Array(1)[s](function(){i=!1}),n({target:"Array",proto:!0,forced:i},{find:function(c){return a(this,c,arguments.length>1?arguments[1]:void 0)}}),o(s)},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],360:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/array-includes").includes,o=t("../internals/fails"),s=t("../internals/add-to-unscopables");n({target:"Array",proto:!0,forced:o(function(){return!Array(1).includes()})},{includes:function(i){return a(this,i,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(t,r,e){var n=t("../internals/to-indexed-object"),a=t("../internals/add-to-unscopables"),o=t("../internals/iterators"),s=t("../internals/internal-state"),i=t("../internals/object-define-property").f,c=t("../internals/iterator-define"),l=t("../internals/create-iter-result-object"),u=t("../internals/is-pure"),f=t("../internals/descriptors"),h="Array Iterator",d=s.set,p=s.getterFor(h);r.exports=c(Array,"Array",function(v,b){d(this,{type:h,target:n(v),index:0,kind:b})},function(){var v=p(this),b=v.target,g=v.kind,y=v.index++;if(!b||y>=b.length)return v.target=void 0,l(void 0,!0);switch(g){case"keys":return l(y,!1);case"values":return l(b[y],!1)}return l([y,b[y]],!1)},"values");var m=o.Arguments=o.Array;if(a("keys"),a("values"),a("entries"),!u&&f&&m.name!=="values")try{i(m,"name",{value:"values"})}catch(v){}},{"../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(t,r,e){var n=t("../internals/export"),a=t("../internals/get-built-in"),o=t("../internals/function-apply"),s=t("../internals/function-call"),i=t("../internals/function-uncurry-this"),c=t("../internals/fails"),l=t("../internals/is-callable"),u=t("../internals/is-symbol"),f=t("../internals/array-slice"),h=t("../internals/get-json-replacer-function"),d=t("../internals/symbol-constructor-detection"),p=String,m=a("JSON","stringify"),v=i(/./.exec),b=i("".charAt),g=i("".charCodeAt),y=i("".replace),w=i(1 .toString),x=/[\uD800-\uDFFF]/g,C=/^[\uD800-\uDBFF]$/,O=/^[\uDC00-\uDFFF]$/,D=!d||c(function(){var V=a("Symbol")("stringify detection");return m([V])!=="[null]"||m({a:V})!=="{}"||m(Object(V))!=="{}"}),j=c(function(){return m("\uDF06\uD834")!=='"\\udf06\\ud834"'||m("\uDEAD")!=='"\\udead"'}),U=function(V,A){var N=f(arguments),k=h(A);if(l(k)||V!==void 0&&!u(V))return N[1]=function(S,E){if(l(k)&&(E=s(k,this,p(S),E)),!u(E))return E},o(m,null,N)},L=function(V,A,N){var k=b(N,A-1),S=b(N,A+1);return v(C,V)&&!v(O,S)||v(O,V)&&!v(C,k)?"\\u"+w(g(V,0),16):V};m&&n({target:"JSON",stat:!0,arity:3,forced:D||j},{stringify:function(V,A,N){var k=f(arguments),S=o(D?U:m,null,k);return j&&typeof S=="string"?y(S,x,L):S}})},{"../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(t,r,e){t("../internals/export")({target:"Number",stat:!0},{isNaN:function(n){return n!=n}})},{"../internals/export":259}],364:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/object-assign");n({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},{"../internals/export":259,"../internals/object-assign":305}],365:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/symbol-constructor-detection"),o=t("../internals/fails"),s=t("../internals/object-get-own-property-symbols"),i=t("../internals/to-object");n({target:"Object",stat:!0,forced:!a||o(function(){s.f(1)})},{getOwnPropertySymbols:function(c){var l=s.f;return l?l(i(c)):[]}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-get-own-property-symbols":312,"../internals/symbol-constructor-detection":336,"../internals/to-object":344}],366:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/to-object"),o=t("../internals/object-keys");n({target:"Object",stat:!0,forced:t("../internals/fails")(function(){o(1)})},{keys:function(s){return o(a(s))}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-keys":316,"../internals/to-object":344}],367:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/object-to-array").values;n({target:"Object",stat:!0},{values:function(o){return a(o)}})},{"../internals/export":259,"../internals/object-to-array":319}],368:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/function-call"),o=t("../internals/a-callable"),s=t("../internals/new-promise-capability"),i=t("../internals/perform"),c=t("../internals/iterate");n({target:"Promise",stat:!0,forced:t("../internals/promise-statics-incorrect-iteration")},{all:function(l){var u=this,f=s.f(u),h=f.resolve,d=f.reject,p=i(function(){var m=o(u.resolve),v=[],b=0,g=1;c(l,function(y){var w=b++,x=!1;g++,a(m,u,y).then(function(C){x||(x=!0,v[w]=C,--g||h(v))},d)}),--g||h(v)});return p.error&&d(p.value),f.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(t,r,e){var n=t("../internals/export"),a=t("../internals/is-pure"),o=t("../internals/promise-constructor-detection").CONSTRUCTOR,s=t("../internals/promise-native-constructor"),i=t("../internals/get-built-in"),c=t("../internals/is-callable"),l=t("../internals/define-built-in"),u=s&&s.prototype;if(n({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(h){return this.then(void 0,h)}}),!a&&c(s)){var f=i("Promise").prototype.catch;u.catch!==f&&l(u,"catch",f,{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(t,r,e){var n,a,o,s,i=t("../internals/export"),c=t("../internals/is-pure"),l=t("../internals/engine-is-node"),u=t("../internals/global"),f=t("../internals/function-call"),h=t("../internals/define-built-in"),d=t("../internals/object-set-prototype-of"),p=t("../internals/set-to-string-tag"),m=t("../internals/set-species"),v=t("../internals/a-callable"),b=t("../internals/is-callable"),g=t("../internals/is-object"),y=t("../internals/an-instance"),w=t("../internals/species-constructor"),x=t("../internals/task").set,C=t("../internals/microtask"),O=t("../internals/host-report-errors"),D=t("../internals/perform"),j=t("../internals/queue"),U=t("../internals/internal-state"),L=t("../internals/promise-native-constructor"),V=t("../internals/promise-constructor-detection"),A=t("../internals/new-promise-capability"),N="Promise",k=V.CONSTRUCTOR,S=V.REJECTION_EVENT,E=V.SUBCLASSING,T=U.getterFor(N),R=U.set,F=L&&L.prototype,I=L,B=F,P=u.TypeError,H=u.document,Z=u.process,Y=A.f,dt=Y,gt=!!(H&&H.createEvent&&u.dispatchEvent),bt="unhandledrejection",Q="rejectionhandled",q=0,tt=1,et=2,_t=1,J=2,st=function(lt){var ct;return!(!g(lt)||!b(ct=lt.then))&&ct},Ot=function(lt,ct){var pt,Dt,rt,nt=ct.value,ht=ct.state===tt,St=ht?lt.ok:lt.fail,ut=lt.resolve,vt=lt.reject,ft=lt.domain;try{St?(ht||(ct.rejection===J&&Nt(ct),ct.rejection=_t),St===!0?pt=nt:(ft&&ft.enter(),pt=St(nt),ft&&(ft.exit(),rt=!0)),pt===lt.promise?vt(new P("Promise-chain cycle")):(Dt=st(pt))?f(Dt,pt,ut,vt):ut(pt)):vt(nt)}catch(yt){ft&&!rt&&ft.exit(),vt(yt)}},W=function(lt,ct){lt.notified||(lt.notified=!0,C(function(){for(var pt,Dt=lt.reactions;pt=Dt.get();)Ot(pt,lt);lt.notified=!1,ct&&!lt.rejection&&it(lt)}))},X=function(lt,ct,pt){var Dt,rt;gt?((Dt=H.createEvent("Event")).promise=ct,Dt.reason=pt,Dt.initEvent(lt,!1,!0),u.dispatchEvent(Dt)):Dt={promise:ct,reason:pt},!S&&(rt=u["on"+lt])?rt(Dt):lt===bt&&O("Unhandled promise rejection",pt)},it=function(lt){f(x,u,function(){var ct,pt=lt.facade,Dt=lt.value;if(xt(lt)&&(ct=D(function(){l?Z.emit("unhandledRejection",Dt,pt):X(bt,pt,Dt)}),lt.rejection=l||xt(lt)?J:_t,ct.error))throw ct.value})},xt=function(lt){return lt.rejection!==_t&&!lt.parent},Nt=function(lt){f(x,u,function(){var ct=lt.facade;l?Z.emit("rejectionHandled",ct):X(Q,ct,lt.value)})},G=function(lt,ct,pt){return function(Dt){lt(ct,Dt,pt)}},Mt=function(lt,ct,pt){lt.done||(lt.done=!0,pt&&(lt=pt),lt.value=ct,lt.state=et,W(lt,!0))},Pt=function lt(ct,pt,Dt){if(!ct.done){ct.done=!0,Dt&&(ct=Dt);try{if(ct.facade===pt)throw new P("Promise can't be resolved itself");var rt=st(pt);rt?C(function(){var nt={done:!1};try{f(rt,pt,G(lt,nt,ct),G(Mt,nt,ct))}catch(ht){Mt(nt,ht,ct)}}):(ct.value=pt,ct.state=tt,W(ct,!1))}catch(nt){Mt({done:!1},nt,ct)}}};if(k&&(B=(I=function(lt){y(this,B),v(lt),f(n,this);var ct=T(this);try{lt(G(Pt,ct),G(Mt,ct))}catch(pt){Mt(ct,pt)}}).prototype,(n=function(lt){R(this,{type:N,done:!1,notified:!1,parent:!1,reactions:new j,rejection:!1,state:q,value:void 0})}).prototype=h(B,"then",function(lt,ct){var pt=T(this),Dt=Y(w(this,I));return pt.parent=!0,Dt.ok=!b(lt)||lt,Dt.fail=b(ct)&&ct,Dt.domain=l?Z.domain:void 0,pt.state===q?pt.reactions.add(Dt):C(function(){Ot(Dt,pt)}),Dt.promise}),a=function(){var lt=new n,ct=T(lt);this.promise=lt,this.resolve=G(Pt,ct),this.reject=G(Mt,ct)},A.f=Y=function(lt){return lt===I||lt===o?new a(lt):dt(lt)},!c&&b(L)&&F!==Object.prototype)){s=F.then,E||h(F,"then",function(lt,ct){var pt=this;return new I(function(Dt,rt){f(s,pt,Dt,rt)}).then(lt,ct)},{unsafe:!0});try{delete F.constructor}catch(lt){}d&&d(F,B)}i({global:!0,constructor:!0,wrap:!0,forced:k},{Promise:I}),p(I,N,!1,!0),m(N)},{"../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(t,r,e){var n=t("../internals/export"),a=t("../internals/is-pure"),o=t("../internals/promise-native-constructor"),s=t("../internals/fails"),i=t("../internals/get-built-in"),c=t("../internals/is-callable"),l=t("../internals/species-constructor"),u=t("../internals/promise-resolve"),f=t("../internals/define-built-in"),h=o&&o.prototype;if(n({target:"Promise",proto:!0,real:!0,forced:!!o&&s(function(){h.finally.call({then:function(){}},function(){})})},{finally:function(p){var m=l(this,i("Promise")),v=c(p);return this.then(v?function(b){return u(m,p()).then(function(){return b})}:p,v?function(b){return u(m,p()).then(function(){throw b})}:p)}}),!a&&c(o)){var d=i("Promise").prototype.finally;h.finally!==d&&f(h,"finally",d,{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(t,r,e){t("../modules/es.promise.constructor"),t("../modules/es.promise.all"),t("../modules/es.promise.catch"),t("../modules/es.promise.race"),t("../modules/es.promise.reject"),t("../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(t,r,e){var n=t("../internals/export"),a=t("../internals/function-call"),o=t("../internals/a-callable"),s=t("../internals/new-promise-capability"),i=t("../internals/perform"),c=t("../internals/iterate");n({target:"Promise",stat:!0,forced:t("../internals/promise-statics-incorrect-iteration")},{race:function(l){var u=this,f=s.f(u),h=f.reject,d=i(function(){var p=o(u.resolve);c(l,function(m){a(p,u,m).then(f.resolve,h)})});return d.error&&h(d.value),f.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(t,r,e){var n=t("../internals/export"),a=t("../internals/function-call"),o=t("../internals/new-promise-capability");n({target:"Promise",stat:!0,forced:t("../internals/promise-constructor-detection").CONSTRUCTOR},{reject:function(s){var i=o.f(this);return a(i.reject,void 0,s),i.promise}})},{"../internals/export":259,"../internals/function-call":264,"../internals/new-promise-capability":303,"../internals/promise-constructor-detection":324}],375:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/get-built-in"),o=t("../internals/is-pure"),s=t("../internals/promise-native-constructor"),i=t("../internals/promise-constructor-detection").CONSTRUCTOR,c=t("../internals/promise-resolve"),l=a("Promise"),u=o&&!i;n({target:"Promise",stat:!0,forced:o||i},{resolve:function(f){return c(u&&this===l?s:this,f)}})},{"../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(t,r,e){var n=t("../internals/export"),a=t("../internals/function-uncurry-this"),o=t("../internals/to-absolute-index"),s=RangeError,i=String.fromCharCode,c=String.fromCodePoint,l=a([].join);n({target:"String",stat:!0,arity:1,forced:!!c&&c.length!==1},{fromCodePoint:function(u){for(var f,h=[],d=arguments.length,p=0;d>p;){if(f=+arguments[p++],o(f,1114111)!==f)throw new s(f+" is not a valid code point");h[p]=f<65536?i(f):i(55296+((f-=65536)>>10),f%1024+56320)}return l(h,"")}})},{"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/to-absolute-index":340}],377:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/function-uncurry-this"),o=t("../internals/not-a-regexp"),s=t("../internals/require-object-coercible"),i=t("../internals/to-string"),c=t("../internals/correct-is-regexp-logic"),l=a("".indexOf);n({target:"String",proto:!0,forced:!c("includes")},{includes:function(u){return!!~l(i(s(this)),i(o(u)),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(t,r,e){t("../internals/well-known-symbol-define")("asyncIterator")},{"../internals/well-known-symbol-define":355}],379:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/global"),o=t("../internals/function-call"),s=t("../internals/function-uncurry-this"),i=t("../internals/is-pure"),c=t("../internals/descriptors"),l=t("../internals/symbol-constructor-detection"),u=t("../internals/fails"),f=t("../internals/has-own-property"),h=t("../internals/object-is-prototype-of"),d=t("../internals/an-object"),p=t("../internals/to-indexed-object"),m=t("../internals/to-property-key"),v=t("../internals/to-string"),b=t("../internals/create-property-descriptor"),g=t("../internals/object-create"),y=t("../internals/object-keys"),w=t("../internals/object-get-own-property-names"),x=t("../internals/object-get-own-property-names-external"),C=t("../internals/object-get-own-property-symbols"),O=t("../internals/object-get-own-property-descriptor"),D=t("../internals/object-define-property"),j=t("../internals/object-define-properties"),U=t("../internals/object-property-is-enumerable"),L=t("../internals/define-built-in"),V=t("../internals/define-built-in-accessor"),A=t("../internals/shared"),N=t("../internals/shared-key"),k=t("../internals/hidden-keys"),S=t("../internals/uid"),E=t("../internals/well-known-symbol"),T=t("../internals/well-known-symbol-wrapped"),R=t("../internals/well-known-symbol-define"),F=t("../internals/symbol-define-to-primitive"),I=t("../internals/set-to-string-tag"),B=t("../internals/internal-state"),P=t("../internals/array-iteration").forEach,H=N("hidden"),Z="Symbol",Y="prototype",dt=B.set,gt=B.getterFor(Z),bt=Object[Y],Q=a.Symbol,q=Q&&Q[Y],tt=a.RangeError,et=a.TypeError,_t=a.QObject,J=O.f,st=D.f,Ot=x.f,W=U.f,X=s([].push),it=A("symbols"),xt=A("op-symbols"),Nt=A("wks"),G=!_t||!_t[Y]||!_t[Y].findChild,Mt=function(ut,vt,ft){var yt=J(bt,vt);yt&&delete bt[vt],st(ut,vt,ft),yt&&ut!==bt&&st(bt,vt,yt)},Pt=c&&u(function(){return g(st({},"a",{get:function(){return st(this,"a",{value:7}).a}})).a!==7})?Mt:st,lt=function(ut,vt){var ft=it[ut]=g(q);return dt(ft,{type:Z,tag:ut,description:vt}),c||(ft.description=vt),ft},ct=function(ut,vt,ft){ut===bt&&ct(xt,vt,ft),d(ut);var yt=m(vt);return d(ft),f(it,yt)?(ft.enumerable?(f(ut,H)&&ut[H][yt]&&(ut[H][yt]=!1),ft=g(ft,{enumerable:b(0,!1)})):(f(ut,H)||st(ut,H,b(1,{})),ut[H][yt]=!0),Pt(ut,yt,ft)):st(ut,yt,ft)},pt=function(ut,vt){d(ut);var ft=p(vt),yt=y(ft).concat(St(ft));return P(yt,function(Ct){c&&!o(rt,ft,Ct)||ct(ut,Ct,ft[Ct])}),ut},Dt=function(ut,vt){return vt===void 0?g(ut):pt(g(ut),vt)},rt=function(ut){var vt=m(ut),ft=o(W,this,vt);return!(this===bt&&f(it,vt)&&!f(xt,vt))&&(!(ft||!f(this,vt)||!f(it,vt)||f(this,H)&&this[H][vt])||ft)},nt=function(ut,vt){var ft=p(ut),yt=m(vt);if(ft!==bt||!f(it,yt)||f(xt,yt)){var Ct=J(ft,yt);return!Ct||!f(it,yt)||f(ft,H)&&ft[H][yt]||(Ct.enumerable=!0),Ct}},ht=function(ut){var vt=Ot(p(ut)),ft=[];return P(vt,function(yt){f(it,yt)||f(k,yt)||X(ft,yt)}),ft},St=function(ut){var vt=ut===bt,ft=Ot(vt?xt:p(ut)),yt=[];return P(ft,function(Ct){!f(it,Ct)||vt&&!f(bt,Ct)||X(yt,it[Ct])}),yt};l||(Q=function(){if(h(q,this))throw new et("Symbol is not a constructor");var ut=arguments.length&&arguments[0]!==void 0?v(arguments[0]):void 0,vt=S(ut),ft=function yt(Ct){this===bt&&o(yt,xt,Ct),f(this,H)&&f(this[H],vt)&&(this[H][vt]=!1);var zt=b(1,Ct);try{Pt(this,vt,zt)}catch(Bt){if(!(Bt instanceof tt))throw Bt;Mt(this,vt,zt)}};return c&&G&&Pt(bt,vt,{configurable:!0,set:ft}),lt(vt,ut)},L(q=Q[Y],"toString",function(){return gt(this).tag}),L(Q,"withoutSetter",function(ut){return lt(S(ut),ut)}),U.f=rt,D.f=ct,j.f=pt,O.f=nt,w.f=x.f=ht,C.f=St,T.f=function(ut){return lt(E(ut),ut)},c&&(V(q,"description",{configurable:!0,get:function(){return gt(this).description}}),i||L(bt,"propertyIsEnumerable",rt,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:Q}),P(y(Nt),function(ut){R(ut)}),n({target:Z,stat:!0,forced:!l},{useSetter:function(){G=!0},useSimple:function(){G=!1}}),n({target:"Object",stat:!0,forced:!l,sham:!c},{create:Dt,defineProperty:ct,defineProperties:pt,getOwnPropertyDescriptor:nt}),n({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:ht}),F(),I(Q,Z),k[H]=!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(t,r,e){var n=t("../internals/export"),a=t("../internals/get-built-in"),o=t("../internals/has-own-property"),s=t("../internals/to-string"),i=t("../internals/shared"),c=t("../internals/symbol-registry-detection"),l=i("string-to-symbol-registry"),u=i("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{for:function(f){var h=s(f);if(o(l,h))return l[h];var d=a("Symbol")(h);return l[h]=d,u[d]=h,d}})},{"../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(t,r,e){t("../modules/es.symbol.constructor"),t("../modules/es.symbol.for"),t("../modules/es.symbol.key-for"),t("../modules/es.json.stringify"),t("../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(t,r,e){var n=t("../internals/export"),a=t("../internals/has-own-property"),o=t("../internals/is-symbol"),s=t("../internals/try-to-string"),i=t("../internals/shared"),c=t("../internals/symbol-registry-detection"),l=i("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{keyFor:function(u){if(!o(u))throw new TypeError(s(u)+" is not a symbol");if(a(l,u))return l[u]}})},{"../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(t,r,e){function n(g){return Array.isArray?Array.isArray(g):b(g)==="[object Array]"}function a(g){return typeof g=="boolean"}function o(g){return g===null}function s(g){return g==null}function i(g){return typeof g=="number"}function c(g){return typeof g=="string"}function l(g){return typeof g=="symbol"}function u(g){return g===void 0}function f(g){return b(g)==="[object RegExp]"}function h(g){return typeof g=="object"&&g!==null}function d(g){return b(g)==="[object Date]"}function p(g){return b(g)==="[object Error]"||g instanceof Error}function m(g){return typeof g=="function"}function v(g){return g===null||typeof g=="boolean"||typeof g=="number"||typeof g=="string"||typeof g=="symbol"||g===void 0}function b(g){return Object.prototype.toString.call(g)}e.isArray=n,e.isBoolean=a,e.isNull=o,e.isNullOrUndefined=s,e.isNumber=i,e.isString=c,e.isSymbol=l,e.isUndefined=u,e.isRegExp=f,e.isObject=h,e.isDate=d,e.isError=p,e.isFunction=m,e.isPrimitive=v,e.isBuffer=t("buffer").Buffer.isBuffer},{buffer:220}],384:[function(t,r,e){(function(n){(function(){var a=t("elliptic"),o=t("bn.js");r.exports=function(l){return new i(l)};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}};function i(l){this.curveType=s[l],this.curveType||(this.curveType={name:l}),this.curve=new a.ec(this.curveType.name),this.keys=void 0}function c(l,u,f){Array.isArray(l)||(l=l.toArray());var h=new n(l);if(f&&h.length<f){var d=new n(f-h.length);d.fill(0),h=n.concat([d,h])}return u?h.toString(u):h}s.p224=s.secp224r1,s.p256=s.secp256r1=s.prime256v1,s.p192=s.secp192r1=s.prime192v1,s.p384=s.secp384r1,s.p521=s.secp521r1,i.prototype.generateKeys=function(l,u){return this.keys=this.curve.genKeyPair(),this.getPublicKey(l,u)},i.prototype.computeSecret=function(l,u,f){return u=u||"utf8",n.isBuffer(l)||(l=new n(l,u)),c(this.curve.keyFromPublic(l).getPublic().mul(this.keys.getPrivate()).getX(),f,this.curveType.byteLength)},i.prototype.getPublicKey=function(l,u){var f=this.keys.getPublic(u==="compressed",!0);return u==="hybrid"&&(f[f.length-1]%2?f[0]=7:f[0]=6),c(f,l)},i.prototype.getPrivateKey=function(l){return c(this.keys.getPrivate(),l)},i.prototype.setPublicKey=function(l,u){return u=u||"utf8",n.isBuffer(l)||(l=new n(l,u)),this.keys._importPublic(l),this},i.prototype.setPrivateKey=function(l,u){u=u||"utf8",n.isBuffer(l)||(l=new n(l,u));var f=new o(l);return f=f.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(f),this}}).call(this)}).call(this,t("buffer").Buffer)},{"bn.js":385,buffer:220,elliptic:405}],385:[function(t,r,e){arguments[4][184][0].apply(e,arguments)},{buffer:188,dup:184}],386:[function(t,r,e){var n=t("inherits"),a=t("md5.js"),o=t("ripemd160"),s=t("sha.js"),i=t("cipher-base");function c(l){i.call(this,"digest"),this._hash=l}n(c,i),c.prototype._update=function(l){this._hash.update(l)},c.prototype._final=function(){return this._hash.digest()},r.exports=function(l){return(l=l.toLowerCase())==="md5"?new a:l==="rmd160"||l==="ripemd160"?new o:new c(s(l))}},{"cipher-base":221,inherits:440,"md5.js":450,ripemd160:493,"sha.js":498}],387:[function(t,r,e){var n=t("md5.js");r.exports=function(a){return new n().update(a).digest()}},{"md5.js":450}],388:[function(t,r,e){var n=t("inherits"),a=t("./legacy"),o=t("cipher-base"),s=t("safe-buffer").Buffer,i=t("create-hash/md5"),c=t("ripemd160"),l=t("sha.js"),u=s.alloc(128);function f(h,d){o.call(this,"digest"),typeof d=="string"&&(d=s.from(d));var p=h==="sha512"||h==="sha384"?128:64;this._alg=h,this._key=d,d.length>p?d=(h==="rmd160"?new c:l(h)).update(d).digest():d.length<p&&(d=s.concat([d,u],p));for(var m=this._ipad=s.allocUnsafe(p),v=this._opad=s.allocUnsafe(p),b=0;b<p;b++)m[b]=54^d[b],v[b]=92^d[b];this._hash=h==="rmd160"?new c:l(h),this._hash.update(m)}n(f,o),f.prototype._update=function(h){this._hash.update(h)},f.prototype._final=function(){var h=this._hash.digest();return(this._alg==="rmd160"?new c:l(this._alg)).update(this._opad).update(h).digest()},r.exports=function(h,d){return(h=h.toLowerCase())==="rmd160"||h==="ripemd160"?new f("rmd160",d):h==="md5"?new a(i,d):new f(h,d)}},{"./legacy":389,"cipher-base":221,"create-hash/md5":387,inherits:440,ripemd160:493,"safe-buffer":494,"sha.js":498}],389:[function(t,r,e){var n=t("inherits"),a=t("safe-buffer").Buffer,o=t("cipher-base"),s=a.alloc(128),i=64;function c(l,u){o.call(this,"digest"),typeof u=="string"&&(u=a.from(u)),this._alg=l,this._key=u,u.length>i?u=l(u):u.length<i&&(u=a.concat([u,s],i));for(var f=this._ipad=a.allocUnsafe(i),h=this._opad=a.allocUnsafe(i),d=0;d<i;d++)f[d]=54^u[d],h[d]=92^u[d];this._hash=[f]}n(c,o),c.prototype._update=function(l){this._hash.push(l)},c.prototype._final=function(){var l=this._alg(a.concat(this._hash));return this._alg(a.concat([this._opad,l]))},r.exports=c},{"cipher-base":221,inherits:440,"safe-buffer":494}],390:[function(t,r,e){e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=t("randombytes"),e.createHash=e.Hash=t("create-hash"),e.createHmac=e.Hmac=t("create-hmac");var n=t("browserify-sign/algos"),a=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(a);e.getHashes=function(){return o};var s=t("pbkdf2");e.pbkdf2=s.pbkdf2,e.pbkdf2Sync=s.pbkdf2Sync;var i=t("browserify-cipher");e.Cipher=i.Cipher,e.createCipher=i.createCipher,e.Cipheriv=i.Cipheriv,e.createCipheriv=i.createCipheriv,e.Decipher=i.Decipher,e.createDecipher=i.createDecipher,e.Decipheriv=i.Decipheriv,e.createDecipheriv=i.createDecipheriv,e.getCiphers=i.getCiphers,e.listCiphers=i.listCiphers;var c=t("diffie-hellman");e.DiffieHellmanGroup=c.DiffieHellmanGroup,e.createDiffieHellmanGroup=c.createDiffieHellmanGroup,e.getDiffieHellman=c.getDiffieHellman,e.createDiffieHellman=c.createDiffieHellman,e.DiffieHellman=c.DiffieHellman;var l=t("browserify-sign");e.createSign=l.createSign,e.Sign=l.Sign,e.createVerify=l.createVerify,e.Verify=l.Verify,e.createECDH=t("create-ecdh");var u=t("public-encrypt");e.publicEncrypt=u.publicEncrypt,e.privateEncrypt=u.privateEncrypt,e.publicDecrypt=u.publicDecrypt,e.privateDecrypt=u.privateDecrypt;var f=t("randomfill");e.randomFill=f.randomFill,e.randomFillSync=f.randomFillSync,e.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
|
||
`))},e.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(t,r,e){var n,a;n=void 0,a=function(){var o=1e3,s=6e4,i=36e5,c="millisecond",l="second",u="minute",f="hour",h="day",d="week",p="month",m="quarter",v="year",b="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|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,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(E){var T=["th","st","nd","rd"],R=E%100;return"["+E+(T[(R-20)%10]||T[R]||T[0])+"]"}},C=function(E,T,R){var F=String(E);return!F||F.length>=T?E:""+Array(T+1-F.length).join(R)+E},O={s:C,z:function(E){var T=-E.utcOffset(),R=Math.abs(T),F=Math.floor(R/60),I=R%60;return(T<=0?"+":"-")+C(F,2,"0")+":"+C(I,2,"0")},m:function E(T,R){if(T.date()<R.date())return-E(R,T);var F=12*(R.year()-T.year())+(R.month()-T.month()),I=T.clone().add(F,p),B=R-I<0,P=T.clone().add(F+(B?-1:1),p);return+(-(F+(R-I)/(B?I-P:P-I))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:p,y:v,w:d,d:h,D:b,h:f,m:u,s:l,ms:c,Q:m}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},D="en",j={};j[D]=x;var U="$isDayjsObject",L=function(E){return E instanceof k||!(!E||!E[U])},V=function E(T,R,F){var I;if(!T)return D;if(typeof T=="string"){var B=T.toLowerCase();j[B]&&(I=B),R&&(j[B]=R,I=B);var P=T.split("-");if(!I&&P.length>1)return E(P[0])}else{var H=T.name;j[H]=T,I=H}return!F&&I&&(D=I),I||!F&&D},A=function(E,T){if(L(E))return E.clone();var R=typeof T=="object"?T:{};return R.date=E,R.args=arguments,new k(R)},N=O;N.l=V,N.i=L,N.w=function(E,T){return A(E,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var k=function(){function E(R){this.$L=V(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[U]=!0}var T=E.prototype;return T.parse=function(R){this.$d=function(F){var I=F.date,B=F.utc;if(I===null)return new Date(NaN);if(N.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var P=I.match(y);if(P){var H=P[2]-1||0,Z=(P[7]||"0").substring(0,3);return B?new Date(Date.UTC(P[1],H,P[3]||1,P[4]||0,P[5]||0,P[6]||0,Z)):new Date(P[1],H,P[3]||1,P[4]||0,P[5]||0,P[6]||0,Z)}}return new Date(I)}(R),this.init()},T.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},T.$utils=function(){return N},T.isValid=function(){return this.$d.toString()!==g},T.isSame=function(R,F){var I=A(R);return this.startOf(F)<=I&&I<=this.endOf(F)},T.isAfter=function(R,F){return A(R)<this.startOf(F)},T.isBefore=function(R,F){return this.endOf(F)<A(R)},T.$g=function(R,F,I){return N.u(R)?this[F]:this.set(I,R)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(R,F){var I=this,B=!!N.u(F)||F,P=N.p(R),H=function(tt,et){var _t=N.w(I.$u?Date.UTC(I.$y,et,tt):new Date(I.$y,et,tt),I);return B?_t:_t.endOf(h)},Z=function(tt,et){return N.w(I.toDate()[tt].apply(I.toDate("s"),(B?[0,0,0,0]:[23,59,59,999]).slice(et)),I)},Y=this.$W,dt=this.$M,gt=this.$D,bt="set"+(this.$u?"UTC":"");switch(P){case v:return B?H(1,0):H(31,11);case p:return B?H(1,dt):H(0,dt+1);case d:var Q=this.$locale().weekStart||0,q=(Y<Q?Y+7:Y)-Q;return H(B?gt-q:gt+(6-q),dt);case h:case b:return Z(bt+"Hours",0);case f:return Z(bt+"Minutes",1);case u:return Z(bt+"Seconds",2);case l:return Z(bt+"Milliseconds",3);default:return this.clone()}},T.endOf=function(R){return this.startOf(R,!1)},T.$set=function(R,F){var I,B=N.p(R),P="set"+(this.$u?"UTC":""),H=(I={},I[h]=P+"Date",I[b]=P+"Date",I[p]=P+"Month",I[v]=P+"FullYear",I[f]=P+"Hours",I[u]=P+"Minutes",I[l]=P+"Seconds",I[c]=P+"Milliseconds",I)[B],Z=B===h?this.$D+(F-this.$W):F;if(B===p||B===v){var Y=this.clone().set(b,1);Y.$d[H](Z),Y.init(),this.$d=Y.set(b,Math.min(this.$D,Y.daysInMonth())).$d}else H&&this.$d[H](Z);return this.init(),this},T.set=function(R,F){return this.clone().$set(R,F)},T.get=function(R){return this[N.p(R)]()},T.add=function(R,F){var I,B=this;R=Number(R);var P=N.p(F),H=function(dt){var gt=A(B);return N.w(gt.date(gt.date()+Math.round(dt*R)),B)};if(P===p)return this.set(p,this.$M+R);if(P===v)return this.set(v,this.$y+R);if(P===h)return H(1);if(P===d)return H(7);var Z=(I={},I[u]=s,I[f]=i,I[l]=o,I)[P]||1,Y=this.$d.getTime()+R*Z;return N.w(Y,this)},T.subtract=function(R,F){return this.add(-1*R,F)},T.format=function(R){var F=this,I=this.$locale();if(!this.isValid())return I.invalidDate||g;var B=R||"YYYY-MM-DDTHH:mm:ssZ",P=N.z(this),H=this.$H,Z=this.$m,Y=this.$M,dt=I.weekdays,gt=I.months,bt=I.meridiem,Q=function(et,_t,J,st){return et&&(et[_t]||et(F,B))||J[_t].slice(0,st)},q=function(et){return N.s(H%12||12,et,"0")},tt=bt||function(et,_t,J){var st=et<12?"AM":"PM";return J?st.toLowerCase():st};return B.replace(w,function(et,_t){return _t||function(J){switch(J){case"YY":return String(F.$y).slice(-2);case"YYYY":return N.s(F.$y,4,"0");case"M":return Y+1;case"MM":return N.s(Y+1,2,"0");case"MMM":return Q(I.monthsShort,Y,gt,3);case"MMMM":return Q(gt,Y);case"D":return F.$D;case"DD":return N.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return Q(I.weekdaysMin,F.$W,dt,2);case"ddd":return Q(I.weekdaysShort,F.$W,dt,3);case"dddd":return dt[F.$W];case"H":return String(H);case"HH":return N.s(H,2,"0");case"h":return q(1);case"hh":return q(2);case"a":return tt(H,Z,!0);case"A":return tt(H,Z,!1);case"m":return String(Z);case"mm":return N.s(Z,2,"0");case"s":return String(F.$s);case"ss":return N.s(F.$s,2,"0");case"SSS":return N.s(F.$ms,3,"0");case"Z":return P}return null}(et)||P.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(R,F,I){var B,P=this,H=N.p(F),Z=A(R),Y=(Z.utcOffset()-this.utcOffset())*s,dt=this-Z,gt=function(){return N.m(P,Z)};switch(H){case v:B=gt()/12;break;case p:B=gt();break;case m:B=gt()/3;break;case d:B=(dt-Y)/6048e5;break;case h:B=(dt-Y)/864e5;break;case f:B=dt/i;break;case u:B=dt/s;break;case l:B=dt/o;break;default:B=dt}return I?B:N.a(B)},T.daysInMonth=function(){return this.endOf(p).$D},T.$locale=function(){return j[this.$L]},T.locale=function(R,F){if(!R)return this.$L;var I=this.clone(),B=V(R,F,!0);return B&&(I.$L=B),I},T.clone=function(){return N.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},E}(),S=k.prototype;return A.prototype=S,[["$ms",c],["$s",l],["$m",u],["$H",f],["$W",h],["$M",p],["$y",v],["$D",b]].forEach(function(E){S[E[1]]=function(T){return this.$g(T,E[0],E[1])}}),A.extend=function(E,T){return E.$i||(E(T,k,A),E.$i=!0),A},A.locale=V,A.isDayjs=L,A.unix=function(E){return A(1e3*E)},A.en=j[D],A.Ls=j,A.p={},A},typeof e=="object"&&r!==void 0?r.exports=a():(n=typeof globalThis!="undefined"?globalThis:n||self).dayjs=a()},{}],392:[function(t,r,e){var n,a;n=void 0,a=function(){var o={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"},s=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d\d/,c=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,u={},f=function(g){return(g=+g)+(g>68?1900:2e3)},h=function(g){return function(y){this[g]=+y}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var w=y.match(/([+-]|\d\d)/g),x=60*w[1]+(+w[2]||0);return x===0?0:w[0]==="+"?-x:x}(g)}],p=function(g){var y=u[g];return y&&(y.indexOf?y:y.s.concat(y.f))},m=function(g,y){var w,x=u.meridiem;if(x){for(var C=1;C<=24;C+=1)if(g.indexOf(x(C,0,y))>-1){w=C>12;break}}else w=g===(y?"pm":"PM");return w},v={A:[l,function(g){this.afternoon=m(g,!1)}],a:[l,function(g){this.afternoon=m(g,!0)}],S:[/\d/,function(g){this.milliseconds=100*+g}],SS:[i,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[c,h("seconds")],ss:[c,h("seconds")],m:[c,h("minutes")],mm:[c,h("minutes")],H:[c,h("hours")],h:[c,h("hours")],HH:[c,h("hours")],hh:[c,h("hours")],D:[c,h("day")],DD:[i,h("day")],Do:[l,function(g){var y=u.ordinal,w=g.match(/\d+/);if(this.day=w[0],y)for(var x=1;x<=31;x+=1)y(x).replace(/\[|\]/g,"")===g&&(this.day=x)}],M:[c,h("month")],MM:[i,h("month")],MMM:[l,function(g){var y=p("months"),w=(p("monthsShort")||y.map(function(x){return x.slice(0,3)})).indexOf(g)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[l,function(g){var y=p("months").indexOf(g)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,h("year")],YY:[i,function(g){this.year=f(g)}],YYYY:[/\d{4}/,h("year")],Z:d,ZZ:d};function b(g){var y,w;y=g,w=u&&u.formats;for(var x=(g=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(V,A,N){var k=N&&N.toUpperCase();return A||w[N]||o[N]||w[k].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,E,T){return E||T.slice(1)})})).match(s),C=x.length,O=0;O<C;O+=1){var D=x[O],j=v[D],U=j&&j[0],L=j&&j[1];x[O]=L?{regex:U,parser:L}:D.replace(/^\[|\]$/g,"")}return function(V){for(var A={},N=0,k=0;N<C;N+=1){var S=x[N];if(typeof S=="string")k+=S.length;else{var E=S.regex,T=S.parser,R=V.slice(k),F=E.exec(R)[0];T.call(A,F),V=V.replace(F,"")}}return function(I){var B=I.afternoon;if(B!==void 0){var P=I.hours;B?P<12&&(I.hours+=12):P===12&&(I.hours=0),delete I.afternoon}}(A),A}}return function(g,y,w){w.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(f=g.parseTwoDigitYear);var x=y.prototype,C=x.parse;x.parse=function(O){var D=O.date,j=O.utc,U=O.args;this.$u=j;var L=U[1];if(typeof L=="string"){var V=U[2]===!0,A=U[3]===!0,N=V||A,k=U[2];A&&(k=U[2]),u=this.$locale(),!V&&k&&(u=w.Ls[k]),this.$d=function(R,F,I){try{if(["x","X"].indexOf(F)>-1)return new Date((F==="X"?1e3:1)*R);var B=b(F)(R),P=B.year,H=B.month,Z=B.day,Y=B.hours,dt=B.minutes,gt=B.seconds,bt=B.milliseconds,Q=B.zone,q=new Date,tt=Z||(P||H?1:q.getDate()),et=P||q.getFullYear(),_t=0;P&&!H||(_t=H>0?H-1:q.getMonth());var J=Y||0,st=dt||0,Ot=gt||0,W=bt||0;return Q?new Date(Date.UTC(et,_t,tt,J,st,Ot,W+60*Q.offset*1e3)):I?new Date(Date.UTC(et,_t,tt,J,st,Ot,W)):new Date(et,_t,tt,J,st,Ot,W)}catch(X){return new Date("")}}(D,L,j),this.init(),k&&k!==!0&&(this.$L=this.locale(k).$L),N&&D!=this.format(L)&&(this.$d=new Date("")),u={}}else if(L instanceof Array)for(var S=L.length,E=1;E<=S;E+=1){U[1]=L[E-1];var T=w.apply(this,U);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}E===S&&(this.$d=new Date(""))}else C.call(this,O)}}},typeof e=="object"&&r!==void 0?r.exports=a():(n=typeof globalThis!="undefined"?globalThis:n||self).dayjs_plugin_customParseFormat=a()},{}],393:[function(t,r,e){var n,a;n=void 0,a=function(){var o="minute",s=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(c,l,u){var f=l.prototype;u.utc=function(g){return new l({date:g,utc:!0,args:arguments})},f.utc=function(g){var y=u(this.toDate(),{locale:this.$L,utc:!0});return g?y.add(this.utcOffset(),o):y},f.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var h=f.parse;f.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),h.call(this,g)};var d=f.init;f.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else d.call(this)};var p=f.utcOffset;f.utcOffset=function(g,y){var w=this.$utils().u;if(w(g))return this.$u?0:w(this.$offset)?p.call(this):this.$offset;if(typeof g=="string"&&(g=function(D){D===void 0&&(D="");var j=D.match(s);if(!j)return null;var U=(""+j[0]).match(i)||["-",0,0],L=U[0],V=60*+U[1]+ +U[2];return V===0?0:L==="+"?V:-V}(g))===null)return this;var x=Math.abs(g)<=16?60*g:g,C=this;if(y)return C.$offset=x,C.$u=g===0,C;if(g!==0){var O=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(C=this.local().add(x+O,o)).$offset=x,C.$x.$localOffset=O}else C=this.utc();return C};var m=f.format;f.format=function(g){var y=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,y)},f.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},f.isUTC=function(){return!!this.$u},f.toISOString=function(){return this.toDate().toISOString()},f.toString=function(){return this.toDate().toUTCString()};var v=f.toDate;f.toDate=function(g){return g==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():v.call(this)};var b=f.diff;f.diff=function(g,y,w){if(g&&this.$u===g.$u)return b.call(this,g,y,w);var x=this.local(),C=u(g).local();return b.call(x,C,y,w)}}},typeof e=="object"&&r!==void 0?r.exports=a():(n=typeof globalThis!="undefined"?globalThis:n||self).dayjs_plugin_utc=a()},{}],394:[function(t,r,e){e.utils=t("./des/utils"),e.Cipher=t("./des/cipher"),e.DES=t("./des/des"),e.CBC=t("./des/cbc"),e.EDE=t("./des/ede")},{"./des/cbc":395,"./des/cipher":396,"./des/des":397,"./des/ede":398,"./des/utils":399}],395:[function(t,r,e){var n=t("minimalistic-assert"),a=t("inherits"),o={};function s(c){n.equal(c.length,8,"Invalid IV length"),this.iv=new Array(8);for(var l=0;l<this.iv.length;l++)this.iv[l]=c[l]}function i(c){function l(d){c.call(this,d),this._cbcInit()}a(l,c);for(var u=Object.keys(o),f=0;f<u.length;f++){var h=u[f];l.prototype[h]=o[h]}return l.create=function(d){return new l(d)},l}e.instantiate=i,o._cbcInit=function(){var c=new s(this.options.iv);this._cbcState=c},o._update=function(c,l,u,f){var h=this._cbcState,d=this.constructor.super_.prototype,p=h.iv;if(this.type==="encrypt"){for(var m=0;m<this.blockSize;m++)p[m]^=c[l+m];for(d._update.call(this,p,0,u,f),m=0;m<this.blockSize;m++)p[m]=u[f+m]}else{for(d._update.call(this,c,l,u,f),m=0;m<this.blockSize;m++)u[f+m]^=p[m];for(m=0;m<this.blockSize;m++)p[m]=c[l+m]}}},{inherits:440,"minimalistic-assert":453}],396:[function(t,r,e){var n=t("minimalistic-assert");function a(o){this.options=o,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=o.padding!==!1}r.exports=a,a.prototype._init=function(){},a.prototype.update=function(o){return o.length===0?[]:this.type==="decrypt"?this._updateDecrypt(o):this._updateEncrypt(o)},a.prototype._buffer=function(o,s){for(var i=Math.min(this.buffer.length-this.bufferOff,o.length-s),c=0;c<i;c++)this.buffer[this.bufferOff+c]=o[s+c];return this.bufferOff+=i,i},a.prototype._flushBuffer=function(o,s){return this._update(this.buffer,0,o,s),this.bufferOff=0,this.blockSize},a.prototype._updateEncrypt=function(o){var s=0,i=0,c=(this.bufferOff+o.length)/this.blockSize|0,l=new Array(c*this.blockSize);this.bufferOff!==0&&(s+=this._buffer(o,s),this.bufferOff===this.buffer.length&&(i+=this._flushBuffer(l,i)));for(var u=o.length-(o.length-s)%this.blockSize;s<u;s+=this.blockSize)this._update(o,s,l,i),i+=this.blockSize;for(;s<o.length;s++,this.bufferOff++)this.buffer[this.bufferOff]=o[s];return l},a.prototype._updateDecrypt=function(o){for(var s=0,i=0,c=Math.ceil((this.bufferOff+o.length)/this.blockSize)-1,l=new Array(c*this.blockSize);c>0;c--)s+=this._buffer(o,s),i+=this._flushBuffer(l,i);return s+=this._buffer(o,s),l},a.prototype.final=function(o){var s,i;return o&&(s=this.update(o)),i=this.type==="encrypt"?this._finalEncrypt():this._finalDecrypt(),s?s.concat(i):i},a.prototype._pad=function(o,s){if(s===0)return!1;for(;s<o.length;)o[s++]=0;return!0},a.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var o=new Array(this.blockSize);return this._update(this.buffer,0,o,0),o},a.prototype._unpad=function(o){return o},a.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var o=new Array(this.blockSize);return this._flushBuffer(o,0),this._unpad(o)}},{"minimalistic-assert":453}],397:[function(t,r,e){var n=t("minimalistic-assert"),a=t("inherits"),o=t("./utils"),s=t("./cipher");function i(){this.tmp=new Array(2),this.keys=null}function c(u){s.call(this,u);var f=new i;this._desState=f,this.deriveKeys(f,u.key)}a(c,s),r.exports=c,c.create=function(u){return new c(u)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];c.prototype.deriveKeys=function(u,f){u.keys=new Array(32),n.equal(f.length,this.blockSize,"Invalid key length");var h=o.readUInt32BE(f,0),d=o.readUInt32BE(f,4);o.pc1(h,d,u.tmp,0),h=u.tmp[0],d=u.tmp[1];for(var p=0;p<u.keys.length;p+=2){var m=l[p>>>1];h=o.r28shl(h,m),d=o.r28shl(d,m),o.pc2(h,d,u.keys,p)}},c.prototype._update=function(u,f,h,d){var p=this._desState,m=o.readUInt32BE(u,f),v=o.readUInt32BE(u,f+4);o.ip(m,v,p.tmp,0),m=p.tmp[0],v=p.tmp[1],this.type==="encrypt"?this._encrypt(p,m,v,p.tmp,0):this._decrypt(p,m,v,p.tmp,0),m=p.tmp[0],v=p.tmp[1],o.writeUInt32BE(h,m,d),o.writeUInt32BE(h,v,d+4)},c.prototype._pad=function(u,f){if(this.padding===!1)return!1;for(var h=u.length-f,d=f;d<u.length;d++)u[d]=h;return!0},c.prototype._unpad=function(u){if(this.padding===!1)return u;for(var f=u[u.length-1],h=u.length-f;h<u.length;h++)n.equal(u[h],f);return u.slice(0,u.length-f)},c.prototype._encrypt=function(u,f,h,d,p){for(var m=f,v=h,b=0;b<u.keys.length;b+=2){var g=u.keys[b],y=u.keys[b+1];o.expand(v,u.tmp,0),g^=u.tmp[0],y^=u.tmp[1];var w=o.substitute(g,y),x=v;v=(m^o.permute(w))>>>0,m=x}o.rip(v,m,d,p)},c.prototype._decrypt=function(u,f,h,d,p){for(var m=h,v=f,b=u.keys.length-2;b>=0;b-=2){var g=u.keys[b],y=u.keys[b+1];o.expand(m,u.tmp,0),g^=u.tmp[0],y^=u.tmp[1];var w=o.substitute(g,y),x=m;m=(v^o.permute(w))>>>0,v=x}o.rip(m,v,d,p)}},{"./cipher":396,"./utils":399,inherits:440,"minimalistic-assert":453}],398:[function(t,r,e){var n=t("minimalistic-assert"),a=t("inherits"),o=t("./cipher"),s=t("./des");function i(l,u){n.equal(u.length,24,"Invalid key length");var f=u.slice(0,8),h=u.slice(8,16),d=u.slice(16,24);this.ciphers=l==="encrypt"?[s.create({type:"encrypt",key:f}),s.create({type:"decrypt",key:h}),s.create({type:"encrypt",key:d})]:[s.create({type:"decrypt",key:d}),s.create({type:"encrypt",key:h}),s.create({type:"decrypt",key:f})]}function c(l){o.call(this,l);var u=new i(this.type,this.options.key);this._edeState=u}a(c,o),r.exports=c,c.create=function(l){return new c(l)},c.prototype._update=function(l,u,f,h){var d=this._edeState;d.ciphers[0]._update(l,u,f,h),d.ciphers[1]._update(f,h,f,h),d.ciphers[2]._update(f,h,f,h)},c.prototype._pad=s.prototype._pad,c.prototype._unpad=s.prototype._unpad},{"./cipher":396,"./des":397,inherits:440,"minimalistic-assert":453}],399:[function(t,r,e){e.readUInt32BE=function(s,i){return(s[0+i]<<24|s[1+i]<<16|s[2+i]<<8|s[3+i])>>>0},e.writeUInt32BE=function(s,i,c){s[0+c]=i>>>24,s[1+c]=i>>>16&255,s[2+c]=i>>>8&255,s[3+c]=255&i},e.ip=function(s,i,c,l){for(var u=0,f=0,h=6;h>=0;h-=2){for(var d=0;d<=24;d+=8)u<<=1,u|=i>>>d+h&1;for(d=0;d<=24;d+=8)u<<=1,u|=s>>>d+h&1}for(h=6;h>=0;h-=2){for(d=1;d<=25;d+=8)f<<=1,f|=i>>>d+h&1;for(d=1;d<=25;d+=8)f<<=1,f|=s>>>d+h&1}c[l+0]=u>>>0,c[l+1]=f>>>0},e.rip=function(s,i,c,l){for(var u=0,f=0,h=0;h<4;h++)for(var d=24;d>=0;d-=8)u<<=1,u|=i>>>d+h&1,u<<=1,u|=s>>>d+h&1;for(h=4;h<8;h++)for(d=24;d>=0;d-=8)f<<=1,f|=i>>>d+h&1,f<<=1,f|=s>>>d+h&1;c[l+0]=u>>>0,c[l+1]=f>>>0},e.pc1=function(s,i,c,l){for(var u=0,f=0,h=7;h>=5;h--){for(var d=0;d<=24;d+=8)u<<=1,u|=i>>d+h&1;for(d=0;d<=24;d+=8)u<<=1,u|=s>>d+h&1}for(d=0;d<=24;d+=8)u<<=1,u|=i>>d+h&1;for(h=1;h<=3;h++){for(d=0;d<=24;d+=8)f<<=1,f|=i>>d+h&1;for(d=0;d<=24;d+=8)f<<=1,f|=s>>d+h&1}for(d=0;d<=24;d+=8)f<<=1,f|=s>>d+h&1;c[l+0]=u>>>0,c[l+1]=f>>>0},e.r28shl=function(s,i){return s<<i&268435455|s>>>28-i};var n=[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];e.pc2=function(s,i,c,l){for(var u=0,f=0,h=n.length>>>1,d=0;d<h;d++)u<<=1,u|=s>>>n[d]&1;for(d=h;d<n.length;d++)f<<=1,f|=i>>>n[d]&1;c[l+0]=u>>>0,c[l+1]=f>>>0},e.expand=function(s,i,c){var l=0,u=0;l=(1&s)<<5|s>>>27;for(var f=23;f>=15;f-=4)l<<=6,l|=s>>>f&63;for(f=11;f>=3;f-=4)u|=s>>>f&63,u<<=6;u|=(31&s)<<1|s>>>31,i[c+0]=l>>>0,i[c+1]=u>>>0};var a=[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];e.substitute=function(s,i){for(var c=0,l=0;l<4;l++)c<<=4,c|=a[64*l+(s>>>18-6*l&63)];for(l=0;l<4;l++)c<<=4,c|=a[256+64*l+(i>>>18-6*l&63)];return c>>>0};var o=[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];e.permute=function(s){for(var i=0,c=0;c<o.length;c++)i<<=1,i|=s>>>o[c]&1;return i>>>0},e.padSplit=function(s,i,c){for(var l=s.toString(2);l.length<i;)l="0"+l;for(var u=[],f=0;f<i;f+=c)u.push(l.slice(f,f+c));return u.join(" ")}},{}],400:[function(t,r,e){(function(n){(function(){var a=t("./lib/generatePrime"),o=t("./lib/primes.json"),s=t("./lib/dh");function i(u){var f=new n(o[u].prime,"hex"),h=new n(o[u].gen,"hex");return new s(f,h)}var c={binary:!0,hex:!0,base64:!0};function l(u,f,h,d){return n.isBuffer(f)||c[f]===void 0?l(u,"binary",f,h):(f=f||"binary",d=d||"binary",h=h||new n([2]),n.isBuffer(h)||(h=new n(h,d)),typeof u=="number"?new s(a(u,h),h,!0):(n.isBuffer(u)||(u=new n(u,f)),new s(u,h,!0)))}e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=i,e.createDiffieHellman=e.DiffieHellman=l}).call(this)}).call(this,t("buffer").Buffer)},{"./lib/dh":401,"./lib/generatePrime":402,"./lib/primes.json":403,buffer:220}],401:[function(t,r,e){(function(n){(function(){var a=t("bn.js"),o=new(t("miller-rabin")),s=new a(24),i=new a(11),c=new a(10),l=new a(3),u=new a(7),f=t("./generatePrime"),h=t("randombytes");function d(y,w){return w=w||"utf8",n.isBuffer(y)||(y=new n(y,w)),this._pub=new a(y),this}function p(y,w){return w=w||"utf8",n.isBuffer(y)||(y=new n(y,w)),this._priv=new a(y),this}r.exports=b;var m={};function v(y,w){var x=w.toString("hex"),C=[x,y.toString(16)].join("_");if(C in m)return m[C];var O,D=0;if(y.isEven()||!f.simpleSieve||!f.fermatTest(y)||!o.test(y))return D+=1,D+=x==="02"||x==="05"?8:4,m[C]=D,D;switch(o.test(y.shrn(1))||(D+=2),x){case"02":y.mod(s).cmp(i)&&(D+=8);break;case"05":(O=y.mod(c)).cmp(l)&&O.cmp(u)&&(D+=8);break;default:D+=4}return m[C]=D,D}function b(y,w,x){this.setGenerator(w),this.__prime=new a(y),this._prime=a.mont(this.__prime),this._primeLen=y.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,x?(this.setPublicKey=d,this.setPrivateKey=p):this._primeCode=8}function g(y,w){var x=new n(y.toArray());return w?x.toString(w):x}Object.defineProperty(b.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=v(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new a(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(y){var w=(y=(y=new a(y)).toRed(this._prime)).redPow(this._priv).fromRed(),x=new n(w.toArray()),C=this.getPrime();if(x.length<C.length){var O=new n(C.length-x.length);O.fill(0),x=n.concat([O,x])}return x},b.prototype.getPublicKey=function(y){return g(this._pub,y)},b.prototype.getPrivateKey=function(y){return g(this._priv,y)},b.prototype.getPrime=function(y){return g(this.__prime,y)},b.prototype.getGenerator=function(y){return g(this._gen,y)},b.prototype.setGenerator=function(y,w){return w=w||"utf8",n.isBuffer(y)||(y=new n(y,w)),this.__gen=y,this._gen=new a(y),this}}).call(this)}).call(this,t("buffer").Buffer)},{"./generatePrime":402,"bn.js":404,buffer:220,"miller-rabin":451,randombytes:475}],402:[function(t,r,e){var n=t("randombytes");r.exports=g,g.simpleSieve=v,g.fermatTest=b;var a=t("bn.js"),o=new a(24),s=new(t("miller-rabin")),i=new a(1),c=new a(2),l=new a(5);new a(16),new a(8);var u=new a(10),f=new a(3);new a(7);var h=new a(11),d=new a(4);new a(12);var p=null;function m(){if(p!==null)return p;var y=1048576,w=[];w[0]=2;for(var x=1,C=3;C<y;C+=2){for(var O=Math.ceil(Math.sqrt(C)),D=0;D<x&&w[D]<=O&&C%w[D]!=0;D++);x!==D&&w[D]<=O||(w[x++]=C)}return p=w,w}function v(y){for(var w=m(),x=0;x<w.length;x++)if(y.modn(w[x])===0)return y.cmpn(w[x])===0;return!0}function b(y){var w=a.mont(y);return c.toRed(w).redPow(y.subn(1)).fromRed().cmpn(1)===0}function g(y,w){if(y<16)return new a(w===2||w===5?[140,123]:[140,39]);var x,C;for(w=new a(w);;){for(x=new a(n(Math.ceil(y/8)));x.bitLength()>y;)x.ishrn(1);if(x.isEven()&&x.iadd(i),x.testn(1)||x.iadd(c),w.cmp(c)){if(!w.cmp(l))for(;x.mod(u).cmp(f);)x.iadd(d)}else for(;x.mod(o).cmp(h);)x.iadd(d);if(v(C=x.shrn(1))&&v(x)&&b(C)&&b(x)&&s.test(C)&&s.test(x))return x}}},{"bn.js":404,"miller-rabin":451,randombytes:475}],403:[function(t,r,e){r.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(t,r,e){arguments[4][184][0].apply(e,arguments)},{buffer:188,dup:184}],405:[function(t,r,e){var n=e;n.version=t("../package.json").version,n.utils=t("./elliptic/utils"),n.rand=t("brorand"),n.curve=t("./elliptic/curve"),n.curves=t("./elliptic/curves"),n.ec=t("./elliptic/ec"),n.eddsa=t("./elliptic/eddsa")},{"../package.json":421,"./elliptic/curve":408,"./elliptic/curves":411,"./elliptic/ec":412,"./elliptic/eddsa":415,"./elliptic/utils":419,brorand:187}],406:[function(t,r,e){var n=t("bn.js"),a=t("../utils"),o=a.getNAF,s=a.getJSF,i=a.assert;function c(u,f){this.type=u,this.p=new n(f.p,16),this.red=f.prime?n.red(f.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=f.n&&new n(f.n,16),this.g=f.g&&this.pointFromJSON(f.g,f.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 h=this.n&&this.p.div(this.n);!h||h.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function l(u,f){this.curve=u,this.type=f,this.precomputed=null}r.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(u,f){i(u.precomputed);var h=u._getDoubles(),d=o(f,1,this._bitLength),p=(1<<h.step+1)-(h.step%2==0?2:1);p/=3;var m,v,b=[];for(m=0;m<d.length;m+=h.step){v=0;for(var g=m+h.step-1;g>=m;g--)v=(v<<1)+d[g];b.push(v)}for(var y=this.jpoint(null,null,null),w=this.jpoint(null,null,null),x=p;x>0;x--){for(m=0;m<b.length;m++)(v=b[m])===x?w=w.mixedAdd(h.points[m]):v===-x&&(w=w.mixedAdd(h.points[m].neg()));y=y.add(w)}return y.toP()},c.prototype._wnafMul=function(u,f){var h=4,d=u._getNAFPoints(h);h=d.wnd;for(var p=d.points,m=o(f,h,this._bitLength),v=this.jpoint(null,null,null),b=m.length-1;b>=0;b--){for(var g=0;b>=0&&m[b]===0;b--)g++;if(b>=0&&g++,v=v.dblp(g),b<0)break;var y=m[b];i(y!==0),v=u.type==="affine"?y>0?v.mixedAdd(p[y-1>>1]):v.mixedAdd(p[-y-1>>1].neg()):y>0?v.add(p[y-1>>1]):v.add(p[-y-1>>1].neg())}return u.type==="affine"?v.toP():v},c.prototype._wnafMulAdd=function(u,f,h,d,p){var m,v,b,g=this._wnafT1,y=this._wnafT2,w=this._wnafT3,x=0;for(m=0;m<d;m++){var C=(b=f[m])._getNAFPoints(u);g[m]=C.wnd,y[m]=C.points}for(m=d-1;m>=1;m-=2){var O=m-1,D=m;if(g[O]===1&&g[D]===1){var j=[f[O],null,null,f[D]];f[O].y.cmp(f[D].y)===0?(j[1]=f[O].add(f[D]),j[2]=f[O].toJ().mixedAdd(f[D].neg())):f[O].y.cmp(f[D].y.redNeg())===0?(j[1]=f[O].toJ().mixedAdd(f[D]),j[2]=f[O].add(f[D].neg())):(j[1]=f[O].toJ().mixedAdd(f[D]),j[2]=f[O].toJ().mixedAdd(f[D].neg()));var U=[-3,-1,-5,-7,0,7,5,1,3],L=s(h[O],h[D]);for(x=Math.max(L[0].length,x),w[O]=new Array(x),w[D]=new Array(x),v=0;v<x;v++){var V=0|L[0][v],A=0|L[1][v];w[O][v]=U[3*(V+1)+(A+1)],w[D][v]=0,y[O]=j}}else w[O]=o(h[O],g[O],this._bitLength),w[D]=o(h[D],g[D],this._bitLength),x=Math.max(w[O].length,x),x=Math.max(w[D].length,x)}var N=this.jpoint(null,null,null),k=this._wnafT4;for(m=x;m>=0;m--){for(var S=0;m>=0;){var E=!0;for(v=0;v<d;v++)k[v]=0|w[v][m],k[v]!==0&&(E=!1);if(!E)break;S++,m--}if(m>=0&&S++,N=N.dblp(S),m<0)break;for(v=0;v<d;v++){var T=k[v];T!==0&&(T>0?b=y[v][T-1>>1]:T<0&&(b=y[v][-T-1>>1].neg()),N=b.type==="affine"?N.mixedAdd(b):N.add(b))}}for(m=0;m<d;m++)y[m]=null;return p?N:N.toP()},c.BasePoint=l,l.prototype.eq=function(){throw new Error("Not implemented")},l.prototype.validate=function(){return this.curve.validate(this)},c.prototype.decodePoint=function(u,f){u=a.toArray(u,f);var h=this.p.byteLength();if((u[0]===4||u[0]===6||u[0]===7)&&u.length-1==2*h)return u[0]===6?i(u[u.length-1]%2==0):u[0]===7&&i(u[u.length-1]%2==1),this.point(u.slice(1,1+h),u.slice(1+h,1+2*h));if((u[0]===2||u[0]===3)&&u.length-1===h)return this.pointFromX(u.slice(1,1+h),u[0]===3);throw new Error("Unknown point format")},l.prototype.encodeCompressed=function(u){return this.encode(u,!0)},l.prototype._encode=function(u){var f=this.curve.p.byteLength(),h=this.getX().toArray("be",f);return u?[this.getY().isEven()?2:3].concat(h):[4].concat(h,this.getY().toArray("be",f))},l.prototype.encode=function(u,f){return a.encode(this._encode(f),u)},l.prototype.precompute=function(u){if(this.precomputed)return this;var f={doubles:null,naf:null,beta:null};return f.naf=this._getNAFPoints(8),f.doubles=this._getDoubles(4,u),f.beta=this._getBeta(),this.precomputed=f,this},l.prototype._hasDoubles=function(u){if(!this.precomputed)return!1;var f=this.precomputed.doubles;return!!f&&f.points.length>=Math.ceil((u.bitLength()+1)/f.step)},l.prototype._getDoubles=function(u,f){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var h=[this],d=this,p=0;p<f;p+=u){for(var m=0;m<u;m++)d=d.dbl();h.push(d)}return{step:u,points:h}},l.prototype._getNAFPoints=function(u){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var f=[this],h=(1<<u)-1,d=h===1?null:this.dbl(),p=1;p<h;p++)f[p]=f[p-1].add(d);return{wnd:u,points:f}},l.prototype._getBeta=function(){return null},l.prototype.dblp=function(u){for(var f=this,h=0;h<u;h++)f=f.dbl();return f}},{"../utils":419,"bn.js":420}],407:[function(t,r,e){var n=t("../utils"),a=t("bn.js"),o=t("inherits"),s=t("./base"),i=n.assert;function c(u){this.twisted=(0|u.a)!=1,this.mOneA=this.twisted&&(0|u.a)==-1,this.extended=this.mOneA,s.call(this,"edwards",u),this.a=new a(u.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new a(u.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new a(u.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),i(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|u.c)==1}function l(u,f,h,d,p){s.BasePoint.call(this,u,"projective"),f===null&&h===null&&d===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 a(f,16),this.y=new a(h,16),this.z=d?new a(d,16):this.curve.one,this.t=p&&new a(p,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()))))}o(c,s),r.exports=c,c.prototype._mulA=function(u){return this.mOneA?u.redNeg():this.a.redMul(u)},c.prototype._mulC=function(u){return this.oneC?u:this.c.redMul(u)},c.prototype.jpoint=function(u,f,h,d){return this.point(u,f,h,d)},c.prototype.pointFromX=function(u,f){(u=new a(u,16)).red||(u=u.toRed(this.red));var h=u.redSqr(),d=this.c2.redSub(this.a.redMul(h)),p=this.one.redSub(this.c2.redMul(this.d).redMul(h)),m=d.redMul(p.redInvm()),v=m.redSqrt();if(v.redSqr().redSub(m).cmp(this.zero)!==0)throw new Error("invalid point");var b=v.fromRed().isOdd();return(f&&!b||!f&&b)&&(v=v.redNeg()),this.point(u,v)},c.prototype.pointFromY=function(u,f){(u=new a(u,16)).red||(u=u.toRed(this.red));var h=u.redSqr(),d=h.redSub(this.c2),p=h.redMul(this.d).redMul(this.c2).redSub(this.a),m=d.redMul(p.redInvm());if(m.cmp(this.zero)===0){if(f)throw new Error("invalid point");return this.point(this.zero,u)}var v=m.redSqrt();if(v.redSqr().redSub(m).cmp(this.zero)!==0)throw new Error("invalid point");return v.fromRed().isOdd()!==f&&(v=v.redNeg()),this.point(v,u)},c.prototype.validate=function(u){if(u.isInfinity())return!0;u.normalize();var f=u.x.redSqr(),h=u.y.redSqr(),d=f.redMul(this.a).redAdd(h),p=this.c2.redMul(this.one.redAdd(this.d.redMul(f).redMul(h)));return d.cmp(p)===0},o(l,s.BasePoint),c.prototype.pointFromJSON=function(u){return l.fromJSON(this,u)},c.prototype.point=function(u,f,h,d){return new l(this,u,f,h,d)},l.fromJSON=function(u,f){return new l(u,f[0],f[1],f[2])},l.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)+">"},l.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},l.prototype._extDbl=function(){var u=this.x.redSqr(),f=this.y.redSqr(),h=this.z.redSqr();h=h.redIAdd(h);var d=this.curve._mulA(u),p=this.x.redAdd(this.y).redSqr().redISub(u).redISub(f),m=d.redAdd(f),v=m.redSub(h),b=d.redSub(f),g=p.redMul(v),y=m.redMul(b),w=p.redMul(b),x=v.redMul(m);return this.curve.point(g,y,x,w)},l.prototype._projDbl=function(){var u,f,h,d,p,m,v=this.x.redAdd(this.y).redSqr(),b=this.x.redSqr(),g=this.y.redSqr();if(this.curve.twisted){var y=(d=this.curve._mulA(b)).redAdd(g);this.zOne?(u=v.redSub(b).redSub(g).redMul(y.redSub(this.curve.two)),f=y.redMul(d.redSub(g)),h=y.redSqr().redSub(y).redSub(y)):(p=this.z.redSqr(),m=y.redSub(p).redISub(p),u=v.redSub(b).redISub(g).redMul(m),f=y.redMul(d.redSub(g)),h=y.redMul(m))}else d=b.redAdd(g),p=this.curve._mulC(this.z).redSqr(),m=d.redSub(p).redSub(p),u=this.curve._mulC(v.redISub(d)).redMul(m),f=this.curve._mulC(d).redMul(b.redISub(g)),h=d.redMul(m);return this.curve.point(u,f,h)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(u){var f=this.y.redSub(this.x).redMul(u.y.redSub(u.x)),h=this.y.redAdd(this.x).redMul(u.y.redAdd(u.x)),d=this.t.redMul(this.curve.dd).redMul(u.t),p=this.z.redMul(u.z.redAdd(u.z)),m=h.redSub(f),v=p.redSub(d),b=p.redAdd(d),g=h.redAdd(f),y=m.redMul(v),w=b.redMul(g),x=m.redMul(g),C=v.redMul(b);return this.curve.point(y,w,C,x)},l.prototype._projAdd=function(u){var f,h,d=this.z.redMul(u.z),p=d.redSqr(),m=this.x.redMul(u.x),v=this.y.redMul(u.y),b=this.curve.d.redMul(m).redMul(v),g=p.redSub(b),y=p.redAdd(b),w=this.x.redAdd(this.y).redMul(u.x.redAdd(u.y)).redISub(m).redISub(v),x=d.redMul(g).redMul(w);return this.curve.twisted?(f=d.redMul(y).redMul(v.redSub(this.curve._mulA(m))),h=g.redMul(y)):(f=d.redMul(y).redMul(v.redSub(m)),h=this.curve._mulC(g).redMul(y)),this.curve.point(x,f,h)},l.prototype.add=function(u){return this.isInfinity()?u:u.isInfinity()?this:this.curve.extended?this._extAdd(u):this._projAdd(u)},l.prototype.mul=function(u){return this._hasDoubles(u)?this.curve._fixedNafMul(this,u):this.curve._wnafMul(this,u)},l.prototype.mulAdd=function(u,f,h){return this.curve._wnafMulAdd(1,[this,f],[u,h],2,!1)},l.prototype.jmulAdd=function(u,f,h){return this.curve._wnafMulAdd(1,[this,f],[u,h],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var u=this.z.redInvm();return this.x=this.x.redMul(u),this.y=this.y.redMul(u),this.t&&(this.t=this.t.redMul(u)),this.z=this.curve.one,this.zOne=!0,this},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(u){return this===u||this.getX().cmp(u.getX())===0&&this.getY().cmp(u.getY())===0},l.prototype.eqXToP=function(u){var f=u.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(f)===0)return!0;for(var h=u.clone(),d=this.curve.redN.redMul(this.z);;){if(h.iadd(this.curve.n),h.cmp(this.curve.p)>=0)return!1;if(f.redIAdd(d),this.x.cmp(f)===0)return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],408:[function(t,r,e){var n=e;n.base=t("./base"),n.short=t("./short"),n.mont=t("./mont"),n.edwards=t("./edwards")},{"./base":406,"./edwards":407,"./mont":409,"./short":410}],409:[function(t,r,e){var n=t("bn.js"),a=t("inherits"),o=t("./base"),s=t("../utils");function i(l){o.call(this,"mont",l),this.a=new n(l.a,16).toRed(this.red),this.b=new n(l.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(l,u,f){o.BasePoint.call(this,l,"projective"),u===null&&f===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(u,16),this.z=new n(f,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}a(i,o),r.exports=i,i.prototype.validate=function(l){var u=l.normalize().x,f=u.redSqr(),h=f.redMul(u).redAdd(f.redMul(this.a)).redAdd(u);return h.redSqrt().redSqr().cmp(h)===0},a(c,o.BasePoint),i.prototype.decodePoint=function(l,u){return this.point(s.toArray(l,u),1)},i.prototype.point=function(l,u){return new c(this,l,u)},i.prototype.pointFromJSON=function(l){return c.fromJSON(this,l)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(l,u){return new c(l,u[0],u[1]||l.one)},c.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)+">"},c.prototype.isInfinity=function(){return this.z.cmpn(0)===0},c.prototype.dbl=function(){var l=this.x.redAdd(this.z).redSqr(),u=this.x.redSub(this.z).redSqr(),f=l.redSub(u),h=l.redMul(u),d=f.redMul(u.redAdd(this.curve.a24.redMul(f)));return this.curve.point(h,d)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(l,u){var f=this.x.redAdd(this.z),h=this.x.redSub(this.z),d=l.x.redAdd(l.z),p=l.x.redSub(l.z).redMul(f),m=d.redMul(h),v=u.z.redMul(p.redAdd(m).redSqr()),b=u.x.redMul(p.redISub(m).redSqr());return this.curve.point(v,b)},c.prototype.mul=function(l){for(var u=l.clone(),f=this,h=this.curve.point(null,null),d=this,p=[];u.cmpn(0)!==0;u.iushrn(1))p.push(u.andln(1));for(var m=p.length-1;m>=0;m--)p[m]===0?(f=f.diffAdd(h,d),h=h.dbl()):(h=f.diffAdd(h,d),f=f.dbl());return h},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(l){return this.getX().cmp(l.getX())===0},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],410:[function(t,r,e){var n=t("../utils"),a=t("bn.js"),o=t("inherits"),s=t("./base"),i=n.assert;function c(f){s.call(this,"short",f),this.a=new a(f.a,16).toRed(this.red),this.b=new a(f.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(f),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function l(f,h,d,p){s.BasePoint.call(this,f,"affine"),h===null&&d===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new a(h,16),this.y=new a(d,16),p&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(f,h,d,p){s.BasePoint.call(this,f,"jacobian"),h===null&&d===null&&p===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new a(0)):(this.x=new a(h,16),this.y=new a(d,16),this.z=new a(p,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}o(c,s),r.exports=c,c.prototype._getEndomorphism=function(f){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var h,d;if(f.beta)h=new a(f.beta,16).toRed(this.red);else{var p=this._getEndoRoots(this.p);h=(h=p[0].cmp(p[1])<0?p[0]:p[1]).toRed(this.red)}if(f.lambda)d=new a(f.lambda,16);else{var m=this._getEndoRoots(this.n);this.g.mul(m[0]).x.cmp(this.g.x.redMul(h))===0?d=m[0]:(d=m[1],i(this.g.mul(d).x.cmp(this.g.x.redMul(h))===0))}return{beta:h,lambda:d,basis:f.basis?f.basis.map(function(v){return{a:new a(v.a,16),b:new a(v.b,16)}}):this._getEndoBasis(d)}}},c.prototype._getEndoRoots=function(f){var h=f===this.p?this.red:a.mont(f),d=new a(2).toRed(h).redInvm(),p=d.redNeg(),m=new a(3).toRed(h).redNeg().redSqrt().redMul(d);return[p.redAdd(m).fromRed(),p.redSub(m).fromRed()]},c.prototype._getEndoBasis=function(f){for(var h,d,p,m,v,b,g,y,w,x=this.n.ushrn(Math.floor(this.n.bitLength()/2)),C=f,O=this.n.clone(),D=new a(1),j=new a(0),U=new a(0),L=new a(1),V=0;C.cmpn(0)!==0;){var A=O.div(C);y=O.sub(A.mul(C)),w=U.sub(A.mul(D));var N=L.sub(A.mul(j));if(!p&&y.cmp(x)<0)h=g.neg(),d=D,p=y.neg(),m=w;else if(p&&++V==2)break;g=y,O=C,C=y,U=D,D=w,L=j,j=N}v=y.neg(),b=w;var k=p.sqr().add(m.sqr());return v.sqr().add(b.sqr()).cmp(k)>=0&&(v=h,b=d),p.negative&&(p=p.neg(),m=m.neg()),v.negative&&(v=v.neg(),b=b.neg()),[{a:p,b:m},{a:v,b}]},c.prototype._endoSplit=function(f){var h=this.endo.basis,d=h[0],p=h[1],m=p.b.mul(f).divRound(this.n),v=d.b.neg().mul(f).divRound(this.n),b=m.mul(d.a),g=v.mul(p.a),y=m.mul(d.b),w=v.mul(p.b);return{k1:f.sub(b).sub(g),k2:y.add(w).neg()}},c.prototype.pointFromX=function(f,h){(f=new a(f,16)).red||(f=f.toRed(this.red));var d=f.redSqr().redMul(f).redIAdd(f.redMul(this.a)).redIAdd(this.b),p=d.redSqrt();if(p.redSqr().redSub(d).cmp(this.zero)!==0)throw new Error("invalid point");var m=p.fromRed().isOdd();return(h&&!m||!h&&m)&&(p=p.redNeg()),this.point(f,p)},c.prototype.validate=function(f){if(f.inf)return!0;var h=f.x,d=f.y,p=this.a.redMul(h),m=h.redSqr().redMul(h).redIAdd(p).redIAdd(this.b);return d.redSqr().redISub(m).cmpn(0)===0},c.prototype._endoWnafMulAdd=function(f,h,d){for(var p=this._endoWnafT1,m=this._endoWnafT2,v=0;v<f.length;v++){var b=this._endoSplit(h[v]),g=f[v],y=g._getBeta();b.k1.negative&&(b.k1.ineg(),g=g.neg(!0)),b.k2.negative&&(b.k2.ineg(),y=y.neg(!0)),p[2*v]=g,p[2*v+1]=y,m[2*v]=b.k1,m[2*v+1]=b.k2}for(var w=this._wnafMulAdd(1,p,m,2*v,d),x=0;x<2*v;x++)p[x]=null,m[x]=null;return w},o(l,s.BasePoint),c.prototype.point=function(f,h,d){return new l(this,f,h,d)},c.prototype.pointFromJSON=function(f,h){return l.fromJSON(this,f,h)},l.prototype._getBeta=function(){if(this.curve.endo){var f=this.precomputed;if(f&&f.beta)return f.beta;var h=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(f){var d=this.curve,p=function(m){return d.point(m.x.redMul(d.endo.beta),m.y)};f.beta=h,h.precomputed={beta:null,naf:f.naf&&{wnd:f.naf.wnd,points:f.naf.points.map(p)},doubles:f.doubles&&{step:f.doubles.step,points:f.doubles.points.map(p)}}}return h}},l.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]},l.fromJSON=function(f,h,d){typeof h=="string"&&(h=JSON.parse(h));var p=f.point(h[0],h[1],d);if(!h[2])return p;function m(b){return f.point(b[0],b[1],d)}var v=h[2];return p.precomputed={beta:null,doubles:v.doubles&&{step:v.doubles.step,points:[p].concat(v.doubles.points.map(m))},naf:v.naf&&{wnd:v.naf.wnd,points:[p].concat(v.naf.points.map(m))}},p},l.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)+">"},l.prototype.isInfinity=function(){return this.inf},l.prototype.add=function(f){if(this.inf)return f;if(f.inf)return this;if(this.eq(f))return this.dbl();if(this.neg().eq(f))return this.curve.point(null,null);if(this.x.cmp(f.x)===0)return this.curve.point(null,null);var h=this.y.redSub(f.y);h.cmpn(0)!==0&&(h=h.redMul(this.x.redSub(f.x).redInvm()));var d=h.redSqr().redISub(this.x).redISub(f.x),p=h.redMul(this.x.redSub(d)).redISub(this.y);return this.curve.point(d,p)},l.prototype.dbl=function(){if(this.inf)return this;var f=this.y.redAdd(this.y);if(f.cmpn(0)===0)return this.curve.point(null,null);var h=this.curve.a,d=this.x.redSqr(),p=f.redInvm(),m=d.redAdd(d).redIAdd(d).redIAdd(h).redMul(p),v=m.redSqr().redISub(this.x.redAdd(this.x)),b=m.redMul(this.x.redSub(v)).redISub(this.y);return this.curve.point(v,b)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(f){return f=new a(f,16),this.isInfinity()?this:this._hasDoubles(f)?this.curve._fixedNafMul(this,f):this.curve.endo?this.curve._endoWnafMulAdd([this],[f]):this.curve._wnafMul(this,f)},l.prototype.mulAdd=function(f,h,d){var p=[this,h],m=[f,d];return this.curve.endo?this.curve._endoWnafMulAdd(p,m):this.curve._wnafMulAdd(1,p,m,2)},l.prototype.jmulAdd=function(f,h,d){var p=[this,h],m=[f,d];return this.curve.endo?this.curve._endoWnafMulAdd(p,m,!0):this.curve._wnafMulAdd(1,p,m,2,!0)},l.prototype.eq=function(f){return this===f||this.inf===f.inf&&(this.inf||this.x.cmp(f.x)===0&&this.y.cmp(f.y)===0)},l.prototype.neg=function(f){if(this.inf)return this;var h=this.curve.point(this.x,this.y.redNeg());if(f&&this.precomputed){var d=this.precomputed,p=function(m){return m.neg()};h.precomputed={naf:d.naf&&{wnd:d.naf.wnd,points:d.naf.points.map(p)},doubles:d.doubles&&{step:d.doubles.step,points:d.doubles.points.map(p)}}}return h},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(u,s.BasePoint),c.prototype.jpoint=function(f,h,d){return new u(this,f,h,d)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var f=this.z.redInvm(),h=f.redSqr(),d=this.x.redMul(h),p=this.y.redMul(h).redMul(f);return this.curve.point(d,p)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(f){if(this.isInfinity())return f;if(f.isInfinity())return this;var h=f.z.redSqr(),d=this.z.redSqr(),p=this.x.redMul(h),m=f.x.redMul(d),v=this.y.redMul(h.redMul(f.z)),b=f.y.redMul(d.redMul(this.z)),g=p.redSub(m),y=v.redSub(b);if(g.cmpn(0)===0)return y.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var w=g.redSqr(),x=w.redMul(g),C=p.redMul(w),O=y.redSqr().redIAdd(x).redISub(C).redISub(C),D=y.redMul(C.redISub(O)).redISub(v.redMul(x)),j=this.z.redMul(f.z).redMul(g);return this.curve.jpoint(O,D,j)},u.prototype.mixedAdd=function(f){if(this.isInfinity())return f.toJ();if(f.isInfinity())return this;var h=this.z.redSqr(),d=this.x,p=f.x.redMul(h),m=this.y,v=f.y.redMul(h).redMul(this.z),b=d.redSub(p),g=m.redSub(v);if(b.cmpn(0)===0)return g.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var y=b.redSqr(),w=y.redMul(b),x=d.redMul(y),C=g.redSqr().redIAdd(w).redISub(x).redISub(x),O=g.redMul(x.redISub(C)).redISub(m.redMul(w)),D=this.z.redMul(b);return this.curve.jpoint(C,O,D)},u.prototype.dblp=function(f){if(f===0)return this;if(this.isInfinity())return this;if(!f)return this.dbl();var h;if(this.curve.zeroA||this.curve.threeA){var d=this;for(h=0;h<f;h++)d=d.dbl();return d}var p=this.curve.a,m=this.curve.tinv,v=this.x,b=this.y,g=this.z,y=g.redSqr().redSqr(),w=b.redAdd(b);for(h=0;h<f;h++){var x=v.redSqr(),C=w.redSqr(),O=C.redSqr(),D=x.redAdd(x).redIAdd(x).redIAdd(p.redMul(y)),j=v.redMul(C),U=D.redSqr().redISub(j.redAdd(j)),L=j.redISub(U),V=D.redMul(L);V=V.redIAdd(V).redISub(O);var A=w.redMul(g);h+1<f&&(y=y.redMul(O)),v=U,g=A,w=V}return this.curve.jpoint(v,w.redMul(m),g)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){var f,h,d;if(this.zOne){var p=this.x.redSqr(),m=this.y.redSqr(),v=m.redSqr(),b=this.x.redAdd(m).redSqr().redISub(p).redISub(v);b=b.redIAdd(b);var g=p.redAdd(p).redIAdd(p),y=g.redSqr().redISub(b).redISub(b),w=v.redIAdd(v);w=(w=w.redIAdd(w)).redIAdd(w),f=y,h=g.redMul(b.redISub(y)).redISub(w),d=this.y.redAdd(this.y)}else{var x=this.x.redSqr(),C=this.y.redSqr(),O=C.redSqr(),D=this.x.redAdd(C).redSqr().redISub(x).redISub(O);D=D.redIAdd(D);var j=x.redAdd(x).redIAdd(x),U=j.redSqr(),L=O.redIAdd(O);L=(L=L.redIAdd(L)).redIAdd(L),f=U.redISub(D).redISub(D),h=j.redMul(D.redISub(f)).redISub(L),d=(d=this.y.redMul(this.z)).redIAdd(d)}return this.curve.jpoint(f,h,d)},u.prototype._threeDbl=function(){var f,h,d;if(this.zOne){var p=this.x.redSqr(),m=this.y.redSqr(),v=m.redSqr(),b=this.x.redAdd(m).redSqr().redISub(p).redISub(v);b=b.redIAdd(b);var g=p.redAdd(p).redIAdd(p).redIAdd(this.curve.a),y=g.redSqr().redISub(b).redISub(b);f=y;var w=v.redIAdd(v);w=(w=w.redIAdd(w)).redIAdd(w),h=g.redMul(b.redISub(y)).redISub(w),d=this.y.redAdd(this.y)}else{var x=this.z.redSqr(),C=this.y.redSqr(),O=this.x.redMul(C),D=this.x.redSub(x).redMul(this.x.redAdd(x));D=D.redAdd(D).redIAdd(D);var j=O.redIAdd(O),U=(j=j.redIAdd(j)).redAdd(j);f=D.redSqr().redISub(U),d=this.y.redAdd(this.z).redSqr().redISub(C).redISub(x);var L=C.redSqr();L=(L=(L=L.redIAdd(L)).redIAdd(L)).redIAdd(L),h=D.redMul(j.redISub(f)).redISub(L)}return this.curve.jpoint(f,h,d)},u.prototype._dbl=function(){var f=this.curve.a,h=this.x,d=this.y,p=this.z,m=p.redSqr().redSqr(),v=h.redSqr(),b=d.redSqr(),g=v.redAdd(v).redIAdd(v).redIAdd(f.redMul(m)),y=h.redAdd(h),w=(y=y.redIAdd(y)).redMul(b),x=g.redSqr().redISub(w.redAdd(w)),C=w.redISub(x),O=b.redSqr();O=(O=(O=O.redIAdd(O)).redIAdd(O)).redIAdd(O);var D=g.redMul(C).redISub(O),j=d.redAdd(d).redMul(p);return this.curve.jpoint(x,D,j)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var f=this.x.redSqr(),h=this.y.redSqr(),d=this.z.redSqr(),p=h.redSqr(),m=f.redAdd(f).redIAdd(f),v=m.redSqr(),b=this.x.redAdd(h).redSqr().redISub(f).redISub(p),g=(b=(b=(b=b.redIAdd(b)).redAdd(b).redIAdd(b)).redISub(v)).redSqr(),y=p.redIAdd(p);y=(y=(y=y.redIAdd(y)).redIAdd(y)).redIAdd(y);var w=m.redIAdd(b).redSqr().redISub(v).redISub(g).redISub(y),x=h.redMul(w);x=(x=x.redIAdd(x)).redIAdd(x);var C=this.x.redMul(g).redISub(x);C=(C=C.redIAdd(C)).redIAdd(C);var O=this.y.redMul(w.redMul(y.redISub(w)).redISub(b.redMul(g)));O=(O=(O=O.redIAdd(O)).redIAdd(O)).redIAdd(O);var D=this.z.redAdd(b).redSqr().redISub(d).redISub(g);return this.curve.jpoint(C,O,D)},u.prototype.mul=function(f,h){return f=new a(f,h),this.curve._wnafMul(this,f)},u.prototype.eq=function(f){if(f.type==="affine")return this.eq(f.toJ());if(this===f)return!0;var h=this.z.redSqr(),d=f.z.redSqr();if(this.x.redMul(d).redISub(f.x.redMul(h)).cmpn(0)!==0)return!1;var p=h.redMul(this.z),m=d.redMul(f.z);return this.y.redMul(m).redISub(f.y.redMul(p)).cmpn(0)===0},u.prototype.eqXToP=function(f){var h=this.z.redSqr(),d=f.toRed(this.curve.red).redMul(h);if(this.x.cmp(d)===0)return!0;for(var p=f.clone(),m=this.curve.redN.redMul(h);;){if(p.iadd(this.curve.n),p.cmp(this.curve.p)>=0)return!1;if(d.redIAdd(m),this.x.cmp(d)===0)return!0}},u.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)+">"},u.prototype.isInfinity=function(){return this.z.cmpn(0)===0}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],411:[function(t,r,e){var n,a=e,o=t("hash.js"),s=t("./curve"),i=t("./utils").assert;function c(u){u.type==="short"?this.curve=new s.short(u):u.type==="edwards"?this.curve=new s.edwards(u):this.curve=new s.mont(u),this.g=this.curve.g,this.n=this.curve.n,this.hash=u.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(u,f){Object.defineProperty(a,u,{configurable:!0,enumerable:!0,get:function(){var h=new c(f);return Object.defineProperty(a,u,{configurable:!0,enumerable:!0,value:h}),h}})}a.PresetCurve=c,l("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:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("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:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("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:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("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:o.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"]}),l("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:o.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"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),l("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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=t("./precomputed/secp256k1")}catch(u){n=void 0}l("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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},{"./curve":408,"./precomputed/secp256k1":418,"./utils":419,"hash.js":426}],412:[function(t,r,e){var n=t("bn.js"),a=t("hmac-drbg"),o=t("../utils"),s=t("../curves"),i=t("brorand"),c=o.assert,l=t("./key"),u=t("./signature");function f(h){if(!(this instanceof f))return new f(h);typeof h=="string"&&(c(Object.prototype.hasOwnProperty.call(s,h),"Unknown curve "+h),h=s[h]),h instanceof s.PresetCurve&&(h={curve:h}),this.curve=h.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=h.curve.g,this.g.precompute(h.curve.n.bitLength()+1),this.hash=h.hash||h.curve.hash}r.exports=f,f.prototype.keyPair=function(h){return new l(this,h)},f.prototype.keyFromPrivate=function(h,d){return l.fromPrivate(this,h,d)},f.prototype.keyFromPublic=function(h,d){return l.fromPublic(this,h,d)},f.prototype.genKeyPair=function(h){h||(h={});for(var d=new a({hash:this.hash,pers:h.pers,persEnc:h.persEnc||"utf8",entropy:h.entropy||i(this.hash.hmacStrength),entropyEnc:h.entropy&&h.entropyEnc||"utf8",nonce:this.n.toArray()}),p=this.n.byteLength(),m=this.n.sub(new n(2));;){var v=new n(d.generate(p));if(!(v.cmp(m)>0))return v.iaddn(1),this.keyFromPrivate(v)}},f.prototype._truncateToN=function(h,d){var p=8*h.byteLength()-this.n.bitLength();return p>0&&(h=h.ushrn(p)),!d&&h.cmp(this.n)>=0?h.sub(this.n):h},f.prototype.sign=function(h,d,p,m){typeof p=="object"&&(m=p,p=null),m||(m={}),d=this.keyFromPrivate(d,p),h=this._truncateToN(new n(h,16));for(var v=this.n.byteLength(),b=d.getPrivate().toArray("be",v),g=h.toArray("be",v),y=new a({hash:this.hash,entropy:b,nonce:g,pers:m.pers,persEnc:m.persEnc||"utf8"}),w=this.n.sub(new n(1)),x=0;;x++){var C=m.k?m.k(x):new n(y.generate(this.n.byteLength()));if(!((C=this._truncateToN(C,!0)).cmpn(1)<=0||C.cmp(w)>=0)){var O=this.g.mul(C);if(!O.isInfinity()){var D=O.getX(),j=D.umod(this.n);if(j.cmpn(0)!==0){var U=C.invm(this.n).mul(j.mul(d.getPrivate()).iadd(h));if((U=U.umod(this.n)).cmpn(0)!==0){var L=(O.getY().isOdd()?1:0)|(D.cmp(j)!==0?2:0);return m.canonical&&U.cmp(this.nh)>0&&(U=this.n.sub(U),L^=1),new u({r:j,s:U,recoveryParam:L})}}}}}},f.prototype.verify=function(h,d,p,m){h=this._truncateToN(new n(h,16)),p=this.keyFromPublic(p,m);var v=(d=new u(d,"hex")).r,b=d.s;if(v.cmpn(1)<0||v.cmp(this.n)>=0||b.cmpn(1)<0||b.cmp(this.n)>=0)return!1;var g,y=b.invm(this.n),w=y.mul(h).umod(this.n),x=y.mul(v).umod(this.n);return this.curve._maxwellTrick?!(g=this.g.jmulAdd(w,p.getPublic(),x)).isInfinity()&&g.eqXToP(v):!(g=this.g.mulAdd(w,p.getPublic(),x)).isInfinity()&&g.getX().umod(this.n).cmp(v)===0},f.prototype.recoverPubKey=function(h,d,p,m){c((3&p)===p,"The recovery param is more than two bits"),d=new u(d,m);var v=this.n,b=new n(h),g=d.r,y=d.s,w=1&p,x=p>>1;if(g.cmp(this.curve.p.umod(this.curve.n))>=0&&x)throw new Error("Unable to find sencond key candinate");g=x?this.curve.pointFromX(g.add(this.curve.n),w):this.curve.pointFromX(g,w);var C=d.r.invm(v),O=v.sub(b).mul(C).umod(v),D=y.mul(C).umod(v);return this.g.mulAdd(O,g,D)},f.prototype.getKeyRecoveryParam=function(h,d,p,m){if((d=new u(d,m)).recoveryParam!==null)return d.recoveryParam;for(var v=0;v<4;v++){var b;try{b=this.recoverPubKey(h,d,v)}catch(g){continue}if(b.eq(p))return v}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(t,r,e){var n=t("bn.js"),a=t("../utils").assert;function o(s,i){this.ec=s,this.priv=null,this.pub=null,i.priv&&this._importPrivate(i.priv,i.privEnc),i.pub&&this._importPublic(i.pub,i.pubEnc)}r.exports=o,o.fromPublic=function(s,i,c){return i instanceof o?i:new o(s,{pub:i,pubEnc:c})},o.fromPrivate=function(s,i,c){return i instanceof o?i:new o(s,{priv:i,privEnc:c})},o.prototype.validate=function(){var s=this.getPublic();return s.isInfinity()?{result:!1,reason:"Invalid public key"}:s.validate()?s.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"}},o.prototype.getPublic=function(s,i){return typeof s=="string"&&(i=s,s=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),i?this.pub.encode(i,s):this.pub},o.prototype.getPrivate=function(s){return s==="hex"?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(s,i){this.priv=new n(s,i||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(s,i){if(s.x||s.y)return this.ec.curve.type==="mont"?a(s.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||a(s.x&&s.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(s.x,s.y));this.pub=this.ec.curve.decodePoint(s,i)},o.prototype.derive=function(s){return s.validate()||a(s.validate(),"public point not validated"),s.mul(this.priv).getX()},o.prototype.sign=function(s,i,c){return this.ec.sign(s,this,i,c)},o.prototype.verify=function(s,i){return this.ec.verify(s,i,this)},o.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(t,r,e){var n=t("bn.js"),a=t("../utils"),o=a.assert;function s(f,h){if(f instanceof s)return f;this._importDER(f,h)||(o(f.r&&f.s,"Signature without r or s"),this.r=new n(f.r,16),this.s=new n(f.s,16),f.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=f.recoveryParam)}function i(){this.place=0}function c(f,h){var d=f[h.place++];if(!(128&d))return d;var p=15&d;if(p===0||p>4)return!1;for(var m=0,v=0,b=h.place;v<p;v++,b++)m<<=8,m|=f[b],m>>>=0;return!(m<=127)&&(h.place=b,m)}function l(f){for(var h=0,d=f.length-1;!f[h]&&!(128&f[h+1])&&h<d;)h++;return h===0?f:f.slice(h)}function u(f,h){if(h<128)f.push(h);else{var d=1+(Math.log(h)/Math.LN2>>>3);for(f.push(128|d);--d;)f.push(h>>>(d<<3)&255);f.push(h)}}r.exports=s,s.prototype._importDER=function(f,h){f=a.toArray(f,h);var d=new i;if(f[d.place++]!==48)return!1;var p=c(f,d);if(p===!1||p+d.place!==f.length||f[d.place++]!==2)return!1;var m=c(f,d);if(m===!1)return!1;var v=f.slice(d.place,m+d.place);if(d.place+=m,f[d.place++]!==2)return!1;var b=c(f,d);if(b===!1||f.length!==b+d.place)return!1;var g=f.slice(d.place,b+d.place);if(v[0]===0){if(!(128&v[1]))return!1;v=v.slice(1)}if(g[0]===0){if(!(128&g[1]))return!1;g=g.slice(1)}return this.r=new n(v),this.s=new n(g),this.recoveryParam=null,!0},s.prototype.toDER=function(f){var h=this.r.toArray(),d=this.s.toArray();for(128&h[0]&&(h=[0].concat(h)),128&d[0]&&(d=[0].concat(d)),h=l(h),d=l(d);!(d[0]||128&d[1]);)d=d.slice(1);var p=[2];u(p,h.length),(p=p.concat(h)).push(2),u(p,d.length);var m=p.concat(d),v=[48];return u(v,m.length),v=v.concat(m),a.encode(v,f)}},{"../utils":419,"bn.js":420}],415:[function(t,r,e){var n=t("hash.js"),a=t("../curves"),o=t("../utils"),s=o.assert,i=o.parseBytes,c=t("./key"),l=t("./signature");function u(f){if(s(f==="ed25519","only tested with ed25519 so far"),!(this instanceof u))return new u(f);f=a[f].curve,this.curve=f,this.g=f.g,this.g.precompute(f.n.bitLength()+1),this.pointClass=f.point().constructor,this.encodingLength=Math.ceil(f.n.bitLength()/8),this.hash=n.sha512}r.exports=u,u.prototype.sign=function(f,h){f=i(f);var d=this.keyFromSecret(h),p=this.hashInt(d.messagePrefix(),f),m=this.g.mul(p),v=this.encodePoint(m),b=this.hashInt(v,d.pubBytes(),f).mul(d.priv()),g=p.add(b).umod(this.curve.n);return this.makeSignature({R:m,S:g,Rencoded:v})},u.prototype.verify=function(f,h,d){f=i(f),h=this.makeSignature(h);var p=this.keyFromPublic(d),m=this.hashInt(h.Rencoded(),p.pubBytes(),f),v=this.g.mul(h.S());return h.R().add(p.pub().mul(m)).eq(v)},u.prototype.hashInt=function(){for(var f=this.hash(),h=0;h<arguments.length;h++)f.update(arguments[h]);return o.intFromLE(f.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(f){return c.fromPublic(this,f)},u.prototype.keyFromSecret=function(f){return c.fromSecret(this,f)},u.prototype.makeSignature=function(f){return f instanceof l?f:new l(this,f)},u.prototype.encodePoint=function(f){var h=f.getY().toArray("le",this.encodingLength);return h[this.encodingLength-1]|=f.getX().isOdd()?128:0,h},u.prototype.decodePoint=function(f){var h=(f=o.parseBytes(f)).length-1,d=f.slice(0,h).concat(-129&f[h]),p=(128&f[h])!=0,m=o.intFromLE(d);return this.curve.pointFromY(m,p)},u.prototype.encodeInt=function(f){return f.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(f){return o.intFromLE(f)},u.prototype.isPoint=function(f){return f instanceof this.pointClass}},{"../curves":411,"../utils":419,"./key":416,"./signature":417,"hash.js":426}],416:[function(t,r,e){var n=t("../utils"),a=n.assert,o=n.parseBytes,s=n.cachedProperty;function i(c,l){this.eddsa=c,this._secret=o(l.secret),c.isPoint(l.pub)?this._pub=l.pub:this._pubBytes=o(l.pub)}i.fromPublic=function(c,l){return l instanceof i?l:new i(c,{pub:l})},i.fromSecret=function(c,l){return l instanceof i?l:new i(c,{secret:l})},i.prototype.secret=function(){return this._secret},s(i,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),s(i,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),s(i,"privBytes",function(){var c=this.eddsa,l=this.hash(),u=c.encodingLength-1,f=l.slice(0,c.encodingLength);return f[0]&=248,f[u]&=127,f[u]|=64,f}),s(i,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),s(i,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),s(i,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),i.prototype.sign=function(c){return a(this._secret,"KeyPair can only verify"),this.eddsa.sign(c,this)},i.prototype.verify=function(c,l){return this.eddsa.verify(c,l,this)},i.prototype.getSecret=function(c){return a(this._secret,"KeyPair is public only"),n.encode(this.secret(),c)},i.prototype.getPublic=function(c){return n.encode(this.pubBytes(),c)},r.exports=i},{"../utils":419}],417:[function(t,r,e){var n=t("bn.js"),a=t("../utils"),o=a.assert,s=a.cachedProperty,i=a.parseBytes;function c(l,u){this.eddsa=l,typeof u!="object"&&(u=i(u)),Array.isArray(u)&&(u={R:u.slice(0,l.encodingLength),S:u.slice(l.encodingLength)}),o(u.R&&u.S,"Signature without R or S"),l.isPoint(u.R)&&(this._R=u.R),u.S instanceof n&&(this._S=u.S),this._Rencoded=Array.isArray(u.R)?u.R:u.Rencoded,this._Sencoded=Array.isArray(u.S)?u.S:u.Sencoded}s(c,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),s(c,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),s(c,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),s(c,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return a.encode(this.toBytes(),"hex").toUpperCase()},r.exports=c},{"../utils":419,"bn.js":420}],418:[function(t,r,e){r.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(t,r,e){var n=e,a=t("bn.js"),o=t("minimalistic-assert"),s=t("minimalistic-crypto-utils");function i(h,d,p){var m=new Array(Math.max(h.bitLength(),p)+1);m.fill(0);for(var v=1<<d+1,b=h.clone(),g=0;g<m.length;g++){var y,w=b.andln(v-1);b.isOdd()?(y=w>(v>>1)-1?(v>>1)-w:w,b.isubn(y)):y=0,m[g]=y,b.iushrn(1)}return m}function c(h,d){var p=[[],[]];h=h.clone(),d=d.clone();for(var m,v=0,b=0;h.cmpn(-v)>0||d.cmpn(-b)>0;){var g,y,w=h.andln(3)+v&3,x=d.andln(3)+b&3;w===3&&(w=-1),x===3&&(x=-1),g=1&w?(m=h.andln(7)+v&7)!=3&&m!==5||x!==2?w:-w:0,p[0].push(g),y=1&x?(m=d.andln(7)+b&7)!=3&&m!==5||w!==2?x:-x:0,p[1].push(y),2*v===g+1&&(v=1-v),2*b===y+1&&(b=1-b),h.iushrn(1),d.iushrn(1)}return p}function l(h,d,p){var m="_"+d;h.prototype[d]=function(){return this[m]!==void 0?this[m]:this[m]=p.call(this)}}function u(h){return typeof h=="string"?n.toArray(h,"hex"):h}function f(h){return new a(h,"hex","le")}n.assert=o,n.toArray=s.toArray,n.zero2=s.zero2,n.toHex=s.toHex,n.encode=s.encode,n.getNAF=i,n.getJSF=c,n.cachedProperty=l,n.parseBytes=u,n.intFromLE=f},{"bn.js":420,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],420:[function(t,r,e){arguments[4][184][0].apply(e,arguments)},{buffer:188,dup:184}],421:[function(t,r,e){r.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(t,r,e){var n=Object.create||D,a=Object.keys||j,o=Function.prototype.bind||U;function s(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=n(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}r.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._maxListeners=void 0;var i,c=10;try{var l={};Object.defineProperty&&Object.defineProperty(l,"x",{value:0}),i=l.x===0}catch(L){i=!1}function u(L){return L._maxListeners===void 0?s.defaultMaxListeners:L._maxListeners}function f(L,V,A){if(V)L.call(A);else for(var N=L.length,k=C(L,N),S=0;S<N;++S)k[S].call(A)}function h(L,V,A,N){if(V)L.call(A,N);else for(var k=L.length,S=C(L,k),E=0;E<k;++E)S[E].call(A,N)}function d(L,V,A,N,k){if(V)L.call(A,N,k);else for(var S=L.length,E=C(L,S),T=0;T<S;++T)E[T].call(A,N,k)}function p(L,V,A,N,k,S){if(V)L.call(A,N,k,S);else for(var E=L.length,T=C(L,E),R=0;R<E;++R)T[R].call(A,N,k,S)}function m(L,V,A,N){if(V)L.apply(A,N);else for(var k=L.length,S=C(L,k),E=0;E<k;++E)S[E].apply(A,N)}function v(L,V,A,N){var k,S,E;if(typeof A!="function")throw new TypeError('"listener" argument must be a function');if((S=L._events)?(S.newListener&&(L.emit("newListener",V,A.listener?A.listener:A),S=L._events),E=S[V]):(S=L._events=n(null),L._eventsCount=0),E){if(typeof E=="function"?E=S[V]=N?[A,E]:[E,A]:N?E.unshift(A):E.push(A),!E.warned&&(k=u(L))&&k>0&&E.length>k){E.warned=!0;var T=new Error("Possible EventEmitter memory leak detected. "+E.length+' "'+String(V)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');T.name="MaxListenersExceededWarning",T.emitter=L,T.type=V,T.count=E.length,typeof console=="object"&&console.warn&&console.warn("%s: %s",T.name,T.message)}}else E=S[V]=A,++L._eventsCount;return L}function b(){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 L=new Array(arguments.length),V=0;V<L.length;++V)L[V]=arguments[V];this.listener.apply(this.target,L)}}function g(L,V,A){var N={fired:!1,wrapFn:void 0,target:L,type:V,listener:A},k=o.call(b,N);return k.listener=A,N.wrapFn=k,k}function y(L,V,A){var N=L._events;if(!N)return[];var k=N[V];return k?typeof k=="function"?A?[k.listener||k]:[k]:A?O(k):C(k,k.length):[]}function w(L){var V=this._events;if(V){var A=V[L];if(typeof A=="function")return 1;if(A)return A.length}return 0}function x(L,V){for(var A=V,N=A+1,k=L.length;N<k;A+=1,N+=1)L[A]=L[N];L.pop()}function C(L,V){for(var A=new Array(V),N=0;N<V;++N)A[N]=L[N];return A}function O(L){for(var V=new Array(L.length),A=0;A<V.length;++A)V[A]=L[A].listener||L[A];return V}function D(L){var V=function(){};return V.prototype=L,new V}function j(L){for(var V in L)Object.prototype.hasOwnProperty.call(L,V);return V}function U(L){var V=this;return function(){return V.apply(L,arguments)}}i?Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(L){if(typeof L!="number"||L<0||L!=L)throw new TypeError('"defaultMaxListeners" must be a positive number');c=L}}):s.defaultMaxListeners=c,s.prototype.setMaxListeners=function(L){if(typeof L!="number"||L<0||isNaN(L))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=L,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(L){var V,A,N,k,S,E,T=L==="error";if(E=this._events)T=T&&E.error==null;else if(!T)return!1;if(T){if(arguments.length>1&&(V=arguments[1]),V instanceof Error)throw V;var R=new Error('Unhandled "error" event. ('+V+")");throw R.context=V,R}if(!(A=E[L]))return!1;var F=typeof A=="function";switch(N=arguments.length){case 1:f(A,F,this);break;case 2:h(A,F,this,arguments[1]);break;case 3:d(A,F,this,arguments[1],arguments[2]);break;case 4:p(A,F,this,arguments[1],arguments[2],arguments[3]);break;default:for(k=new Array(N-1),S=1;S<N;S++)k[S-1]=arguments[S];m(A,F,this,k)}return!0},s.prototype.addListener=function(L,V){return v(this,L,V,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(L,V){return v(this,L,V,!0)},s.prototype.once=function(L,V){if(typeof V!="function")throw new TypeError('"listener" argument must be a function');return this.on(L,g(this,L,V)),this},s.prototype.prependOnceListener=function(L,V){if(typeof V!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(L,g(this,L,V)),this},s.prototype.removeListener=function(L,V){var A,N,k,S,E;if(typeof V!="function")throw new TypeError('"listener" argument must be a function');if(!(N=this._events))return this;if(!(A=N[L]))return this;if(A===V||A.listener===V)--this._eventsCount==0?this._events=n(null):(delete N[L],N.removeListener&&this.emit("removeListener",L,A.listener||V));else if(typeof A!="function"){for(k=-1,S=A.length-1;S>=0;S--)if(A[S]===V||A[S].listener===V){E=A[S].listener,k=S;break}if(k<0)return this;k===0?A.shift():x(A,k),A.length===1&&(N[L]=A[0]),N.removeListener&&this.emit("removeListener",L,E||V)}return this},s.prototype.removeAllListeners=function(L){var V,A,N;if(!(A=this._events))return this;if(!A.removeListener)return arguments.length===0?(this._events=n(null),this._eventsCount=0):A[L]&&(--this._eventsCount==0?this._events=n(null):delete A[L]),this;if(arguments.length===0){var k,S=a(A);for(N=0;N<S.length;++N)(k=S[N])!=="removeListener"&&this.removeAllListeners(k);return this.removeAllListeners("removeListener"),this._events=n(null),this._eventsCount=0,this}if(typeof(V=A[L])=="function")this.removeListener(L,V);else if(V)for(N=V.length-1;N>=0;N--)this.removeListener(L,V[N]);return this},s.prototype.listeners=function(L){return y(this,L,!0)},s.prototype.rawListeners=function(L){return y(this,L,!1)},s.listenerCount=function(L,V){return typeof L.listenerCount=="function"?L.listenerCount(V):w.call(L,V)},s.prototype.listenerCount=w,s.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],423:[function(t,r,e){var n=t("safe-buffer").Buffer,a=t("md5.js");function o(s,i,c,l){if(n.isBuffer(s)||(s=n.from(s,"binary")),i&&(n.isBuffer(i)||(i=n.from(i,"binary")),i.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var u=c/8,f=n.alloc(u),h=n.alloc(l||0),d=n.alloc(0);u>0||l>0;){var p=new a;p.update(d),p.update(s),i&&p.update(i),d=p.digest();var m=0;if(u>0){var v=f.length-u;m=Math.min(u,d.length),d.copy(f,v,0,m),u-=m}if(m<d.length&&l>0){var b=h.length-l,g=Math.min(l,d.length-m);d.copy(h,b,m,m+g),l-=g}}return d.fill(0),{key:f,iv:h}}r.exports=o},{"md5.js":450,"safe-buffer":494}],424:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.CsvParserStream=e.ParserOptions=e.parseFile=e.parseStream=e.parseString=e.parse=e.FormatterOptions=e.CsvFormatterStream=e.writeToPath=e.writeToString=e.writeToBuffer=e.writeToStream=e.write=e.format=void 0;var n=t("@fast-csv/format");Object.defineProperty(e,"format",{enumerable:!0,get:function(){return n.format}}),Object.defineProperty(e,"write",{enumerable:!0,get:function(){return n.write}}),Object.defineProperty(e,"writeToStream",{enumerable:!0,get:function(){return n.writeToStream}}),Object.defineProperty(e,"writeToBuffer",{enumerable:!0,get:function(){return n.writeToBuffer}}),Object.defineProperty(e,"writeToString",{enumerable:!0,get:function(){return n.writeToString}}),Object.defineProperty(e,"writeToPath",{enumerable:!0,get:function(){return n.writeToPath}}),Object.defineProperty(e,"CsvFormatterStream",{enumerable:!0,get:function(){return n.CsvFormatterStream}}),Object.defineProperty(e,"FormatterOptions",{enumerable:!0,get:function(){return n.FormatterOptions}});var a=t("@fast-csv/parse");Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return a.parse}}),Object.defineProperty(e,"parseString",{enumerable:!0,get:function(){return a.parseString}}),Object.defineProperty(e,"parseStream",{enumerable:!0,get:function(){return a.parseStream}}),Object.defineProperty(e,"parseFile",{enumerable:!0,get:function(){return a.parseFile}}),Object.defineProperty(e,"ParserOptions",{enumerable:!0,get:function(){return a.ParserOptions}}),Object.defineProperty(e,"CsvParserStream",{enumerable:!0,get:function(){return a.CsvParserStream}})},{"@fast-csv/format":151,"@fast-csv/parse":155}],425:[function(t,r,e){var n=t("safe-buffer").Buffer,a=t("readable-stream").Transform;function o(i,c){if(!n.isBuffer(i)&&typeof i!="string")throw new TypeError(c+" must be a string or a buffer")}function s(i){a.call(this),this._block=n.allocUnsafe(i),this._blockSize=i,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}t("inherits")(s,a),s.prototype._transform=function(i,c,l){var u=null;try{this.update(i,c)}catch(f){u=f}l(u)},s.prototype._flush=function(i){var c=null;try{this.push(this.digest())}catch(l){c=l}i(c)},s.prototype.update=function(i,c){if(o(i,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(i)||(i=n.from(i,c));for(var l=this._block,u=0;this._blockOffset+i.length-u>=this._blockSize;){for(var f=this._blockOffset;f<this._blockSize;)l[f++]=i[u++];this._update(),this._blockOffset=0}for(;u<i.length;)l[this._blockOffset++]=i[u++];for(var h=0,d=8*i.length;d>0;++h)this._length[h]+=d,(d=this._length[h]/4294967296|0)>0&&(this._length[h]-=4294967296*d);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(i){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var c=this._digest();i!==void 0&&(c=c.toString(i)),this._block.fill(0),this._blockOffset=0;for(var l=0;l<4;++l)this._length[l]=0;return c},s.prototype._digest=function(){throw new Error("_digest is not implemented")},r.exports=s},{inherits:440,"readable-stream":491,"safe-buffer":494}],426:[function(t,r,e){var n=e;n.utils=t("./hash/utils"),n.common=t("./hash/common"),n.sha=t("./hash/sha"),n.ripemd=t("./hash/ripemd"),n.hmac=t("./hash/hmac"),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},{"./hash/common":427,"./hash/hmac":428,"./hash/ripemd":429,"./hash/sha":430,"./hash/utils":437}],427:[function(t,r,e){var n=t("./utils"),a=t("minimalistic-assert");function o(){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}e.BlockHash=o,o.prototype.update=function(s,i){if(s=n.toArray(s,i),this.pending?this.pending=this.pending.concat(s):this.pending=s,this.pendingTotal+=s.length,this.pending.length>=this._delta8){var c=(s=this.pending).length%this._delta8;this.pending=s.slice(s.length-c,s.length),this.pending.length===0&&(this.pending=null),s=n.join32(s,0,s.length-c,this.endian);for(var l=0;l<s.length;l+=this._delta32)this._update(s,l,l+this._delta32)}return this},o.prototype.digest=function(s){return this.update(this._pad()),a(this.pending===null),this._digest(s)},o.prototype._pad=function(){var s=this.pendingTotal,i=this._delta8,c=i-(s+this.padLength)%i,l=new Array(c+this.padLength);l[0]=128;for(var u=1;u<c;u++)l[u]=0;if(s<<=3,this.endian==="big"){for(var f=8;f<this.padLength;f++)l[u++]=0;l[u++]=0,l[u++]=0,l[u++]=0,l[u++]=0,l[u++]=s>>>24&255,l[u++]=s>>>16&255,l[u++]=s>>>8&255,l[u++]=255&s}else for(l[u++]=255&s,l[u++]=s>>>8&255,l[u++]=s>>>16&255,l[u++]=s>>>24&255,l[u++]=0,l[u++]=0,l[u++]=0,l[u++]=0,f=8;f<this.padLength;f++)l[u++]=0;return l}},{"./utils":437,"minimalistic-assert":453}],428:[function(t,r,e){var n=t("./utils"),a=t("minimalistic-assert");function o(s,i,c){if(!(this instanceof o))return new o(s,i,c);this.Hash=s,this.blockSize=s.blockSize/8,this.outSize=s.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(i,c))}r.exports=o,o.prototype._init=function(s){s.length>this.blockSize&&(s=new this.Hash().update(s).digest()),a(s.length<=this.blockSize);for(var i=s.length;i<this.blockSize;i++)s.push(0);for(i=0;i<s.length;i++)s[i]^=54;for(this.inner=new this.Hash().update(s),i=0;i<s.length;i++)s[i]^=106;this.outer=new this.Hash().update(s)},o.prototype.update=function(s,i){return this.inner.update(s,i),this},o.prototype.digest=function(s){return this.outer.update(this.inner.digest()),this.outer.digest(s)}},{"./utils":437,"minimalistic-assert":453}],429:[function(t,r,e){var n=t("./utils"),a=t("./common"),o=n.rotl32,s=n.sum32,i=n.sum32_3,c=n.sum32_4,l=a.BlockHash;function u(){if(!(this instanceof u))return new u;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(g,y,w,x){return g<=15?y^w^x:g<=31?y&w|~y&x:g<=47?(y|~w)^x:g<=63?y&x|w&~x:y^(w|~x)}function h(g){return g<=15?0:g<=31?1518500249:g<=47?1859775393:g<=63?2400959708:2840853838}function d(g){return g<=15?1352829926:g<=31?1548603684:g<=47?1836072691:g<=63?2053994217:0}n.inherits(u,l),e.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(g,y){for(var w=this.h[0],x=this.h[1],C=this.h[2],O=this.h[3],D=this.h[4],j=w,U=x,L=C,V=O,A=D,N=0;N<80;N++){var k=s(o(c(w,f(N,x,C,O),g[p[N]+y],h(N)),v[N]),D);w=D,D=O,O=o(C,10),C=x,x=k,k=s(o(c(j,f(79-N,U,L,V),g[m[N]+y],d(N)),b[N]),A),j=A,A=V,V=o(L,10),L=U,U=k}k=i(this.h[1],C,V),this.h[1]=i(this.h[2],O,A),this.h[2]=i(this.h[3],D,j),this.h[3]=i(this.h[4],w,U),this.h[4]=i(this.h[0],x,L),this.h[0]=k},u.prototype._digest=function(g){return g==="hex"?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],v=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],b=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{"./common":427,"./utils":437}],430:[function(t,r,e){e.sha1=t("./sha/1"),e.sha224=t("./sha/224"),e.sha256=t("./sha/256"),e.sha384=t("./sha/384"),e.sha512=t("./sha/512")},{"./sha/1":431,"./sha/224":432,"./sha/256":433,"./sha/384":434,"./sha/512":435}],431:[function(t,r,e){var n=t("../utils"),a=t("../common"),o=t("./common"),s=n.rotl32,i=n.sum32,c=n.sum32_5,l=o.ft_1,u=a.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(h,u),r.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(d,p){for(var m=this.W,v=0;v<16;v++)m[v]=d[p+v];for(;v<m.length;v++)m[v]=s(m[v-3]^m[v-8]^m[v-14]^m[v-16],1);var b=this.h[0],g=this.h[1],y=this.h[2],w=this.h[3],x=this.h[4];for(v=0;v<m.length;v++){var C=~~(v/20),O=c(s(b,5),l(C,g,y,w),x,m[v],f[C]);x=w,w=y,y=s(g,30),g=b,b=O}this.h[0]=i(this.h[0],b),this.h[1]=i(this.h[1],g),this.h[2]=i(this.h[2],y),this.h[3]=i(this.h[3],w),this.h[4]=i(this.h[4],x)},h.prototype._digest=function(d){return d==="hex"?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436}],432:[function(t,r,e){var n=t("../utils"),a=t("./256");function o(){if(!(this instanceof o))return new o;a.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,a),r.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(s){return s==="hex"?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},{"../utils":437,"./256":433}],433:[function(t,r,e){var n=t("../utils"),a=t("../common"),o=t("./common"),s=t("minimalistic-assert"),i=n.sum32,c=n.sum32_4,l=n.sum32_5,u=o.ch32,f=o.maj32,h=o.s0_256,d=o.s1_256,p=o.g0_256,m=o.g1_256,v=a.BlockHash,b=[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 g(){if(!(this instanceof g))return new g;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=new Array(64)}n.inherits(g,v),r.exports=g,g.blockSize=512,g.outSize=256,g.hmacStrength=192,g.padLength=64,g.prototype._update=function(y,w){for(var x=this.W,C=0;C<16;C++)x[C]=y[w+C];for(;C<x.length;C++)x[C]=c(m(x[C-2]),x[C-7],p(x[C-15]),x[C-16]);var O=this.h[0],D=this.h[1],j=this.h[2],U=this.h[3],L=this.h[4],V=this.h[5],A=this.h[6],N=this.h[7];for(s(this.k.length===x.length),C=0;C<x.length;C++){var k=l(N,d(L),u(L,V,A),this.k[C],x[C]),S=i(h(O),f(O,D,j));N=A,A=V,V=L,L=i(U,k),U=j,j=D,D=O,O=i(k,S)}this.h[0]=i(this.h[0],O),this.h[1]=i(this.h[1],D),this.h[2]=i(this.h[2],j),this.h[3]=i(this.h[3],U),this.h[4]=i(this.h[4],L),this.h[5]=i(this.h[5],V),this.h[6]=i(this.h[6],A),this.h[7]=i(this.h[7],N)},g.prototype._digest=function(y){return y==="hex"?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436,"minimalistic-assert":453}],434:[function(t,r,e){var n=t("../utils"),a=t("./512");function o(){if(!(this instanceof o))return new o;a.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,a),r.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(s){return s==="hex"?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},{"../utils":437,"./512":435}],435:[function(t,r,e){var n=t("../utils"),a=t("../common"),o=t("minimalistic-assert"),s=n.rotr64_hi,i=n.rotr64_lo,c=n.shr64_hi,l=n.shr64_lo,u=n.sum64,f=n.sum64_hi,h=n.sum64_lo,d=n.sum64_4_hi,p=n.sum64_4_lo,m=n.sum64_5_hi,v=n.sum64_5_lo,b=a.BlockHash,g=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function y(){if(!(this instanceof y))return new y;b.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=g,this.W=new Array(160)}function w(S,E,T,R,F){var I=S&T^~S&F;return I<0&&(I+=4294967296),I}function x(S,E,T,R,F,I){var B=E&R^~E&I;return B<0&&(B+=4294967296),B}function C(S,E,T,R,F){var I=S&T^S&F^T&F;return I<0&&(I+=4294967296),I}function O(S,E,T,R,F,I){var B=E&R^E&I^R&I;return B<0&&(B+=4294967296),B}function D(S,E){var T=s(S,E,28)^s(E,S,2)^s(E,S,7);return T<0&&(T+=4294967296),T}function j(S,E){var T=i(S,E,28)^i(E,S,2)^i(E,S,7);return T<0&&(T+=4294967296),T}function U(S,E){var T=s(S,E,14)^s(S,E,18)^s(E,S,9);return T<0&&(T+=4294967296),T}function L(S,E){var T=i(S,E,14)^i(S,E,18)^i(E,S,9);return T<0&&(T+=4294967296),T}function V(S,E){var T=s(S,E,1)^s(S,E,8)^c(S,E,7);return T<0&&(T+=4294967296),T}function A(S,E){var T=i(S,E,1)^i(S,E,8)^l(S,E,7);return T<0&&(T+=4294967296),T}function N(S,E){var T=s(S,E,19)^s(E,S,29)^c(S,E,6);return T<0&&(T+=4294967296),T}function k(S,E){var T=i(S,E,19)^i(E,S,29)^l(S,E,6);return T<0&&(T+=4294967296),T}n.inherits(y,b),r.exports=y,y.blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(S,E){for(var T=this.W,R=0;R<32;R++)T[R]=S[E+R];for(;R<T.length;R+=2){var F=N(T[R-4],T[R-3]),I=k(T[R-4],T[R-3]),B=T[R-14],P=T[R-13],H=V(T[R-30],T[R-29]),Z=A(T[R-30],T[R-29]),Y=T[R-32],dt=T[R-31];T[R]=d(F,I,B,P,H,Z,Y,dt),T[R+1]=p(F,I,B,P,H,Z,Y,dt)}},y.prototype._update=function(S,E){this._prepareBlock(S,E);var T=this.W,R=this.h[0],F=this.h[1],I=this.h[2],B=this.h[3],P=this.h[4],H=this.h[5],Z=this.h[6],Y=this.h[7],dt=this.h[8],gt=this.h[9],bt=this.h[10],Q=this.h[11],q=this.h[12],tt=this.h[13],et=this.h[14],_t=this.h[15];o(this.k.length===T.length);for(var J=0;J<T.length;J+=2){var st=et,Ot=_t,W=U(dt,gt),X=L(dt,gt),it=w(dt,gt,bt,Q,q),xt=x(dt,gt,bt,Q,q,tt),Nt=this.k[J],G=this.k[J+1],Mt=T[J],Pt=T[J+1],lt=m(st,Ot,W,X,it,xt,Nt,G,Mt,Pt),ct=v(st,Ot,W,X,it,xt,Nt,G,Mt,Pt);st=D(R,F),Ot=j(R,F),W=C(R,F,I,B,P),X=O(R,F,I,B,P,H);var pt=f(st,Ot,W,X),Dt=h(st,Ot,W,X);et=q,_t=tt,q=bt,tt=Q,bt=dt,Q=gt,dt=f(Z,Y,lt,ct),gt=h(Y,Y,lt,ct),Z=P,Y=H,P=I,H=B,I=R,B=F,R=f(lt,ct,pt,Dt),F=h(lt,ct,pt,Dt)}u(this.h,0,R,F),u(this.h,2,I,B),u(this.h,4,P,H),u(this.h,6,Z,Y),u(this.h,8,dt,gt),u(this.h,10,bt,Q),u(this.h,12,q,tt),u(this.h,14,et,_t)},y.prototype._digest=function(S){return S==="hex"?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":427,"../utils":437,"minimalistic-assert":453}],436:[function(t,r,e){var n=t("../utils").rotr32;function a(h,d,p,m){return h===0?o(d,p,m):h===1||h===3?i(d,p,m):h===2?s(d,p,m):void 0}function o(h,d,p){return h&d^~h&p}function s(h,d,p){return h&d^h&p^d&p}function i(h,d,p){return h^d^p}function c(h){return n(h,2)^n(h,13)^n(h,22)}function l(h){return n(h,6)^n(h,11)^n(h,25)}function u(h){return n(h,7)^n(h,18)^h>>>3}function f(h){return n(h,17)^n(h,19)^h>>>10}e.ft_1=a,e.ch32=o,e.maj32=s,e.p32=i,e.s0_256=c,e.s1_256=l,e.g0_256=u,e.g1_256=f},{"../utils":437}],437:[function(t,r,e){var n=t("minimalistic-assert"),a=t("inherits");function o(k,S){return(64512&k.charCodeAt(S))==55296&&!(S<0||S+1>=k.length)&&(64512&k.charCodeAt(S+1))==56320}function s(k,S){if(Array.isArray(k))return k.slice();if(!k)return[];var E=[];if(typeof k=="string")if(S){if(S==="hex")for((k=k.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(k="0"+k),R=0;R<k.length;R+=2)E.push(parseInt(k[R]+k[R+1],16))}else for(var T=0,R=0;R<k.length;R++){var F=k.charCodeAt(R);F<128?E[T++]=F:F<2048?(E[T++]=F>>6|192,E[T++]=63&F|128):o(k,R)?(F=65536+((1023&F)<<10)+(1023&k.charCodeAt(++R)),E[T++]=F>>18|240,E[T++]=F>>12&63|128,E[T++]=F>>6&63|128,E[T++]=63&F|128):(E[T++]=F>>12|224,E[T++]=F>>6&63|128,E[T++]=63&F|128)}else for(R=0;R<k.length;R++)E[R]=0|k[R];return E}function i(k){for(var S="",E=0;E<k.length;E++)S+=u(k[E].toString(16));return S}function c(k){return(k>>>24|k>>>8&65280|k<<8&16711680|(255&k)<<24)>>>0}function l(k,S){for(var E="",T=0;T<k.length;T++){var R=k[T];S==="little"&&(R=c(R)),E+=f(R.toString(16))}return E}function u(k){return k.length===1?"0"+k:k}function f(k){return k.length===7?"0"+k:k.length===6?"00"+k:k.length===5?"000"+k:k.length===4?"0000"+k:k.length===3?"00000"+k:k.length===2?"000000"+k:k.length===1?"0000000"+k:k}function h(k,S,E,T){var R=E-S;n(R%4==0);for(var F=new Array(R/4),I=0,B=S;I<F.length;I++,B+=4){var P;P=T==="big"?k[B]<<24|k[B+1]<<16|k[B+2]<<8|k[B+3]:k[B+3]<<24|k[B+2]<<16|k[B+1]<<8|k[B],F[I]=P>>>0}return F}function d(k,S){for(var E=new Array(4*k.length),T=0,R=0;T<k.length;T++,R+=4){var F=k[T];S==="big"?(E[R]=F>>>24,E[R+1]=F>>>16&255,E[R+2]=F>>>8&255,E[R+3]=255&F):(E[R+3]=F>>>24,E[R+2]=F>>>16&255,E[R+1]=F>>>8&255,E[R]=255&F)}return E}function p(k,S){return k>>>S|k<<32-S}function m(k,S){return k<<S|k>>>32-S}function v(k,S){return k+S>>>0}function b(k,S,E){return k+S+E>>>0}function g(k,S,E,T){return k+S+E+T>>>0}function y(k,S,E,T,R){return k+S+E+T+R>>>0}function w(k,S,E,T){var R=k[S],F=T+k[S+1]>>>0,I=(F<T?1:0)+E+R;k[S]=I>>>0,k[S+1]=F}function x(k,S,E,T){return(S+T>>>0<S?1:0)+k+E>>>0}function C(k,S,E,T){return S+T>>>0}function O(k,S,E,T,R,F,I,B){var P=0,H=S;return P+=(H=H+T>>>0)<S?1:0,P+=(H=H+F>>>0)<F?1:0,k+E+R+I+(P+=(H=H+B>>>0)<B?1:0)>>>0}function D(k,S,E,T,R,F,I,B){return S+T+F+B>>>0}function j(k,S,E,T,R,F,I,B,P,H){var Z=0,Y=S;return Z+=(Y=Y+T>>>0)<S?1:0,Z+=(Y=Y+F>>>0)<F?1:0,Z+=(Y=Y+B>>>0)<B?1:0,k+E+R+I+P+(Z+=(Y=Y+H>>>0)<H?1:0)>>>0}function U(k,S,E,T,R,F,I,B,P,H){return S+T+F+B+H>>>0}function L(k,S,E){return(S<<32-E|k>>>E)>>>0}function V(k,S,E){return(k<<32-E|S>>>E)>>>0}function A(k,S,E){return k>>>E}function N(k,S,E){return(k<<32-E|S>>>E)>>>0}e.inherits=a,e.toArray=s,e.toHex=i,e.htonl=c,e.toHex32=l,e.zero2=u,e.zero8=f,e.join32=h,e.split32=d,e.rotr32=p,e.rotl32=m,e.sum32=v,e.sum32_3=b,e.sum32_4=g,e.sum32_5=y,e.sum64=w,e.sum64_hi=x,e.sum64_lo=C,e.sum64_4_hi=O,e.sum64_4_lo=D,e.sum64_5_hi=j,e.sum64_5_lo=U,e.rotr64_hi=L,e.rotr64_lo=V,e.shr64_hi=A,e.shr64_lo=N},{inherits:440,"minimalistic-assert":453}],438:[function(t,r,e){var n=t("hash.js"),a=t("minimalistic-crypto-utils"),o=t("minimalistic-assert");function s(i){if(!(this instanceof s))return new s(i);this.hash=i.hash,this.predResist=!!i.predResist,this.outLen=this.hash.outSize,this.minEntropy=i.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var c=a.toArray(i.entropy,i.entropyEnc||"hex"),l=a.toArray(i.nonce,i.nonceEnc||"hex"),u=a.toArray(i.pers,i.persEnc||"hex");o(c.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(c,l,u)}r.exports=s,s.prototype._init=function(i,c,l){var u=i.concat(c).concat(l);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var f=0;f<this.V.length;f++)this.K[f]=0,this.V[f]=1;this._update(u),this._reseed=1,this.reseedInterval=281474976710656},s.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},s.prototype._update=function(i){var c=this._hmac().update(this.V).update([0]);i&&(c=c.update(i)),this.K=c.digest(),this.V=this._hmac().update(this.V).digest(),i&&(this.K=this._hmac().update(this.V).update([1]).update(i).digest(),this.V=this._hmac().update(this.V).digest())},s.prototype.reseed=function(i,c,l,u){typeof c!="string"&&(u=l,l=c,c=null),i=a.toArray(i,c),l=a.toArray(l,u),o(i.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(i.concat(l||[])),this._reseed=1},s.prototype.generate=function(i,c,l,u){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof c!="string"&&(u=l,l=c,c=null),l&&(l=a.toArray(l,u||"hex"),this._update(l));for(var f=[];f.length<i;)this.V=this._hmac().update(this.V).digest(),f=f.concat(this.V);var h=f.slice(0,i);return this._update(l),this._reseed++,a.encode(h,c)}},{"hash.js":426,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],439:[function(t,r,e){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */e.read=function(n,a,o,s,i){var c,l,u=8*i-s-1,f=(1<<u)-1,h=f>>1,d=-7,p=o?i-1:0,m=o?-1:1,v=n[a+p];for(p+=m,c=v&(1<<-d)-1,v>>=-d,d+=u;d>0;c=256*c+n[a+p],p+=m,d-=8);for(l=c&(1<<-d)-1,c>>=-d,d+=s;d>0;l=256*l+n[a+p],p+=m,d-=8);if(c===0)c=1-h;else{if(c===f)return l?NaN:1/0*(v?-1:1);l+=Math.pow(2,s),c-=h}return(v?-1:1)*l*Math.pow(2,c-s)},e.write=function(n,a,o,s,i,c){var l,u,f,h=8*c-i-1,d=(1<<h)-1,p=d>>1,m=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=s?0:c-1,b=s?1:-1,g=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(u=isNaN(a)?1:0,l=d):(l=Math.floor(Math.log(a)/Math.LN2),a*(f=Math.pow(2,-l))<1&&(l--,f*=2),(a+=l+p>=1?m/f:m*Math.pow(2,1-p))*f>=2&&(l++,f/=2),l+p>=d?(u=0,l=d):l+p>=1?(u=(a*f-1)*Math.pow(2,i),l+=p):(u=a*Math.pow(2,p-1)*Math.pow(2,i),l=0));i>=8;n[o+v]=255&u,v+=b,u/=256,i-=8);for(l=l<<i|u,h+=i;h>0;n[o+v]=255&l,v+=b,l/=256,h-=8);n[o+v-b]|=128*g}},{}],440:[function(t,r,e){typeof Object.create=="function"?r.exports=function(n,a){a&&(n.super_=a,n.prototype=Object.create(a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:r.exports=function(n,a){if(a){n.super_=a;var o=function(){};o.prototype=a.prototype,n.prototype=new o,n.prototype.constructor=n}}},{}],441:[function(t,r,e){(function(n,a,o,s,i,c,l,u){(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(f){typeof e=="object"&&r!==void 0?r.exports=f():(typeof window!="undefined"?window:a!==void 0?a:typeof self!="undefined"?self:this).JSZip=f()})(function(){return function f(h,d,p){function m(g,y){if(!d[g]){if(!h[g]){var w=typeof t=="function"&&t;if(!y&&w)return w(g,!0);if(v)return v(g,!0);var x=new Error("Cannot find module '"+g+"'");throw x.code="MODULE_NOT_FOUND",x}var C=d[g]={exports:{}};h[g][0].call(C.exports,function(O){return m(h[g][1][O]||O)},C,C.exports,f,h,d,p)}return d[g].exports}for(var v=typeof t=="function"&&t,b=0;b<p.length;b++)m(p[b]);return m}({1:[function(f,h,d){var p=f("./utils"),m=f("./support"),v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";d.encode=function(b){for(var g,y,w,x,C,O,D,j=[],U=0,L=b.length,V=L,A=p.getTypeOf(b)!=="string";U<b.length;)V=L-U,w=A?(g=b[U++],y=U<L?b[U++]:0,U<L?b[U++]:0):(g=b.charCodeAt(U++),y=U<L?b.charCodeAt(U++):0,U<L?b.charCodeAt(U++):0),x=g>>2,C=(3&g)<<4|y>>4,O=1<V?(15&y)<<2|w>>6:64,D=2<V?63&w:64,j.push(v.charAt(x)+v.charAt(C)+v.charAt(O)+v.charAt(D));return j.join("")},d.decode=function(b){var g,y,w,x,C,O,D=0,j=0,U="data:";if(b.substr(0,U.length)===U)throw new Error("Invalid base64 input, it looks like a data url.");var L,V=3*(b=b.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(b.charAt(b.length-1)===v.charAt(64)&&V--,b.charAt(b.length-2)===v.charAt(64)&&V--,V%1!=0)throw new Error("Invalid base64 input, bad content length.");for(L=m.uint8array?new Uint8Array(0|V):new Array(0|V);D<b.length;)g=v.indexOf(b.charAt(D++))<<2|(x=v.indexOf(b.charAt(D++)))>>4,y=(15&x)<<4|(C=v.indexOf(b.charAt(D++)))>>2,w=(3&C)<<6|(O=v.indexOf(b.charAt(D++))),L[j++]=g,C!==64&&(L[j++]=y),O!==64&&(L[j++]=w);return L}},{"./support":30,"./utils":32}],2:[function(f,h,d){var p=f("./external"),m=f("./stream/DataWorker"),v=f("./stream/Crc32Probe"),b=f("./stream/DataLengthProbe");function g(y,w,x,C,O){this.compressedSize=y,this.uncompressedSize=w,this.crc32=x,this.compression=C,this.compressedContent=O}g.prototype={getContentWorker:function(){var y=new m(p.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new b("data_length")),w=this;return y.on("end",function(){if(this.streamInfo.data_length!==w.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),y},getCompressedWorker:function(){return new m(p.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},g.createWorkerFrom=function(y,w,x){return y.pipe(new v).pipe(new b("uncompressedSize")).pipe(w.compressWorker(x)).pipe(new b("compressedSize")).withStreamInfo("compression",w)},h.exports=g},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(f,h,d){var p=f("./stream/GenericWorker");d.STORE={magic:"\0\0",compressWorker:function(){return new p("STORE compression")},uncompressWorker:function(){return new p("STORE decompression")}},d.DEFLATE=f("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(f,h,d){var p=f("./utils"),m=function(){for(var v,b=[],g=0;g<256;g++){v=g;for(var y=0;y<8;y++)v=1&v?3988292384^v>>>1:v>>>1;b[g]=v}return b}();h.exports=function(v,b){return v!==void 0&&v.length?p.getTypeOf(v)!=="string"?function(g,y,w,x){var C=m,O=x+w;g^=-1;for(var D=x;D<O;D++)g=g>>>8^C[255&(g^y[D])];return-1^g}(0|b,v,v.length,0):function(g,y,w,x){var C=m,O=x+w;g^=-1;for(var D=x;D<O;D++)g=g>>>8^C[255&(g^y.charCodeAt(D))];return-1^g}(0|b,v,v.length,0):0}},{"./utils":32}],5:[function(f,h,d){d.base64=!1,d.binary=!1,d.dir=!1,d.createFolders=!0,d.date=null,d.compression=null,d.compressionOptions=null,d.comment=null,d.unixPermissions=null,d.dosPermissions=null},{}],6:[function(f,h,d){var p=null;p=typeof Promise!="undefined"?Promise:f("lie"),h.exports={Promise:p}},{lie:37}],7:[function(f,h,d){var p=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",m=f("pako"),v=f("./utils"),b=f("./stream/GenericWorker"),g=p?"uint8array":"array";function y(w,x){b.call(this,"FlateWorker/"+w),this._pako=null,this._pakoAction=w,this._pakoOptions=x,this.meta={}}d.magic="\b\0",v.inherits(y,b),y.prototype.processChunk=function(w){this.meta=w.meta,this._pako===null&&this._createPako(),this._pako.push(v.transformTo(g,w.data),!1)},y.prototype.flush=function(){b.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},y.prototype.cleanUp=function(){b.prototype.cleanUp.call(this),this._pako=null},y.prototype._createPako=function(){this._pako=new m[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var w=this;this._pako.onData=function(x){w.push({data:x,meta:w.meta})}},d.compressWorker=function(w){return new y("Deflate",w)},d.uncompressWorker=function(){return new y("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(f,h,d){function p(C,O){var D,j="";for(D=0;D<O;D++)j+=String.fromCharCode(255&C),C>>>=8;return j}function m(C,O,D,j,U,L){var V,A,N=C.file,k=C.compression,S=L!==g.utf8encode,E=v.transformTo("string",L(N.name)),T=v.transformTo("string",g.utf8encode(N.name)),R=N.comment,F=v.transformTo("string",L(R)),I=v.transformTo("string",g.utf8encode(R)),B=T.length!==N.name.length,P=I.length!==R.length,H="",Z="",Y="",dt=N.dir,gt=N.date,bt={crc32:0,compressedSize:0,uncompressedSize:0};O&&!D||(bt.crc32=C.crc32,bt.compressedSize=C.compressedSize,bt.uncompressedSize=C.uncompressedSize);var Q=0;O&&(Q|=8),S||!B&&!P||(Q|=2048);var q,tt,et,_t=0,J=0;dt&&(_t|=16),U==="UNIX"?(J=798,_t|=(q=N.unixPermissions,tt=dt,et=q,q||(et=tt?16893:33204),(65535&et)<<16)):(J=20,_t|=function(Ot){return 63&(Ot||0)}(N.dosPermissions)),V=gt.getUTCHours(),V<<=6,V|=gt.getUTCMinutes(),V<<=5,V|=gt.getUTCSeconds()/2,A=gt.getUTCFullYear()-1980,A<<=4,A|=gt.getUTCMonth()+1,A<<=5,A|=gt.getUTCDate(),B&&(Z=p(1,1)+p(y(E),4)+T,H+="up"+p(Z.length,2)+Z),P&&(Y=p(1,1)+p(y(F),4)+I,H+="uc"+p(Y.length,2)+Y);var st="";return st+=`
|
||
\0`,st+=p(Q,2),st+=k.magic,st+=p(V,2),st+=p(A,2),st+=p(bt.crc32,4),st+=p(bt.compressedSize,4),st+=p(bt.uncompressedSize,4),st+=p(E.length,2),st+=p(H.length,2),{fileRecord:w.LOCAL_FILE_HEADER+st+E+H,dirRecord:w.CENTRAL_FILE_HEADER+p(J,2)+st+p(F.length,2)+"\0\0\0\0"+p(_t,4)+p(j,4)+E+H+F}}var v=f("../utils"),b=f("../stream/GenericWorker"),g=f("../utf8"),y=f("../crc32"),w=f("../signature");function x(C,O,D,j){b.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=O,this.zipPlatform=D,this.encodeFileName=j,this.streamFiles=C,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}v.inherits(x,b),x.prototype.push=function(C){var O=C.meta.percent||0,D=this.entriesCount,j=this._sources.length;this.accumulate?this.contentBuffer.push(C):(this.bytesWritten+=C.data.length,b.prototype.push.call(this,{data:C.data,meta:{currentFile:this.currentFile,percent:D?(O+100*(D-j-1))/D:100}}))},x.prototype.openedSource=function(C){this.currentSourceOffset=this.bytesWritten,this.currentFile=C.file.name;var O=this.streamFiles&&!C.file.dir;if(O){var D=m(C,O,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:D.fileRecord,meta:{percent:0}})}else this.accumulate=!0},x.prototype.closedSource=function(C){this.accumulate=!1;var O,D=this.streamFiles&&!C.file.dir,j=m(C,D,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(j.dirRecord),D)this.push({data:(O=C,w.DATA_DESCRIPTOR+p(O.crc32,4)+p(O.compressedSize,4)+p(O.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:j.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},x.prototype.flush=function(){for(var C=this.bytesWritten,O=0;O<this.dirRecords.length;O++)this.push({data:this.dirRecords[O],meta:{percent:100}});var D,j,U,L,V,A,N=this.bytesWritten-C,k=(D=this.dirRecords.length,j=N,U=C,L=this.zipComment,V=this.encodeFileName,A=v.transformTo("string",V(L)),w.CENTRAL_DIRECTORY_END+"\0\0\0\0"+p(D,2)+p(D,2)+p(j,4)+p(U,4)+p(A.length,2)+A);this.push({data:k,meta:{percent:100}})},x.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},x.prototype.registerPrevious=function(C){this._sources.push(C);var O=this;return C.on("data",function(D){O.processChunk(D)}),C.on("end",function(){O.closedSource(O.previous.streamInfo),O._sources.length?O.prepareNextSource():O.end()}),C.on("error",function(D){O.error(D)}),this},x.prototype.resume=function(){return!!b.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},x.prototype.error=function(C){var O=this._sources;if(!b.prototype.error.call(this,C))return!1;for(var D=0;D<O.length;D++)try{O[D].error(C)}catch(j){}return!0},x.prototype.lock=function(){b.prototype.lock.call(this);for(var C=this._sources,O=0;O<C.length;O++)C[O].lock()},h.exports=x},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(f,h,d){var p=f("../compressions"),m=f("./ZipFileWorker");d.generateWorker=function(v,b,g){var y=new m(b.streamFiles,g,b.platform,b.encodeFileName),w=0;try{v.forEach(function(x,C){w++;var O=function(L,V){var A=L||V,N=p[A];if(!N)throw new Error(A+" is not a valid compression method !");return N}(C.options.compression,b.compression),D=C.options.compressionOptions||b.compressionOptions||{},j=C.dir,U=C.date;C._compressWorker(O,D).withStreamInfo("file",{name:x,dir:j,date:U,comment:C.comment||"",unixPermissions:C.unixPermissions,dosPermissions:C.dosPermissions}).pipe(y)}),y.entriesCount=w}catch(x){y.error(x)}return y}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(f,h,d){function p(){if(!(this instanceof p))return new p;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 m=new p;for(var v in this)typeof this[v]!="function"&&(m[v]=this[v]);return m}}(p.prototype=f("./object")).loadAsync=f("./load"),p.support=f("./support"),p.defaults=f("./defaults"),p.version="3.10.1",p.loadAsync=function(m,v){return new p().loadAsync(m,v)},p.external=f("./external"),h.exports=p},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(f,h,d){var p=f("./utils"),m=f("./external"),v=f("./utf8"),b=f("./zipEntries"),g=f("./stream/Crc32Probe"),y=f("./nodejsUtils");function w(x){return new m.Promise(function(C,O){var D=x.decompressed.getContentWorker().pipe(new g);D.on("error",function(j){O(j)}).on("end",function(){D.streamInfo.crc32!==x.decompressed.crc32?O(new Error("Corrupted zip : CRC32 mismatch")):C()}).resume()})}h.exports=function(x,C){var O=this;return C=p.extend(C||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:v.utf8decode}),y.isNode&&y.isStream(x)?m.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):p.prepareContent("the loaded zip file",x,!0,C.optimizedBinaryString,C.base64).then(function(D){var j=new b(C);return j.load(D),j}).then(function(D){var j=[m.Promise.resolve(D)],U=D.files;if(C.checkCRC32)for(var L=0;L<U.length;L++)j.push(w(U[L]));return m.Promise.all(j)}).then(function(D){for(var j=D.shift(),U=j.files,L=0;L<U.length;L++){var V=U[L],A=V.fileNameStr,N=p.resolve(V.fileNameStr);O.file(N,V.decompressed,{binary:!0,optimizedBinaryString:!0,date:V.date,dir:V.dir,comment:V.fileCommentStr.length?V.fileCommentStr:null,unixPermissions:V.unixPermissions,dosPermissions:V.dosPermissions,createFolders:C.createFolders}),V.dir||(O.file(N).unsafeOriginalName=A)}return j.zipComment.length&&(O.comment=j.zipComment),O})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(f,h,d){var p=f("../utils"),m=f("../stream/GenericWorker");function v(b,g){m.call(this,"Nodejs stream input adapter for "+b),this._upstreamEnded=!1,this._bindStream(g)}p.inherits(v,m),v.prototype._bindStream=function(b){var g=this;(this._stream=b).pause(),b.on("data",function(y){g.push({data:y,meta:{percent:0}})}).on("error",function(y){g.isPaused?this.generatedError=y:g.error(y)}).on("end",function(){g.isPaused?g._upstreamEnded=!0:g.end()})},v.prototype.pause=function(){return!!m.prototype.pause.call(this)&&(this._stream.pause(),!0)},v.prototype.resume=function(){return!!m.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},h.exports=v},{"../stream/GenericWorker":28,"../utils":32}],13:[function(f,h,d){var p=f("readable-stream").Readable;function m(v,b,g){p.call(this,b),this._helper=v;var y=this;v.on("data",function(w,x){y.push(w)||y._helper.pause(),g&&g(x)}).on("error",function(w){y.emit("error",w)}).on("end",function(){y.push(null)})}f("../utils").inherits(m,p),m.prototype._read=function(){this._helper.resume()},h.exports=m},{"../utils":32,"readable-stream":16}],14:[function(f,h,d){h.exports={isNode:o!==void 0,newBufferFrom:function(p,m){if(o.from&&o.from!==Uint8Array.from)return o.from(p,m);if(typeof p=="number")throw new Error('The "data" argument must not be a number');return new o(p,m)},allocBuffer:function(p){if(o.alloc)return o.alloc(p);var m=new o(p);return m.fill(0),m},isBuffer:function(p){return o.isBuffer(p)},isStream:function(p){return p&&typeof p.on=="function"&&typeof p.pause=="function"&&typeof p.resume=="function"}}},{}],15:[function(f,h,d){function p(N,k,S){var E,T=v.getTypeOf(k),R=v.extend(S||{},y);R.date=R.date||new Date,R.compression!==null&&(R.compression=R.compression.toUpperCase()),typeof R.unixPermissions=="string"&&(R.unixPermissions=parseInt(R.unixPermissions,8)),R.unixPermissions&&16384&R.unixPermissions&&(R.dir=!0),R.dosPermissions&&16&R.dosPermissions&&(R.dir=!0),R.dir&&(N=U(N)),R.createFolders&&(E=j(N))&&L.call(this,E,!0);var F=T==="string"&&R.binary===!1&&R.base64===!1;S&&S.binary!==void 0||(R.binary=!F),(k instanceof w&&k.uncompressedSize===0||R.dir||!k||k.length===0)&&(R.base64=!1,R.binary=!0,k="",R.compression="STORE",T="string");var I=null;I=k instanceof w||k instanceof b?k:O.isNode&&O.isStream(k)?new D(N,k):v.prepareContent(N,k,R.binary,R.optimizedBinaryString,R.base64);var B=new x(N,I,R);this.files[N]=B}var m=f("./utf8"),v=f("./utils"),b=f("./stream/GenericWorker"),g=f("./stream/StreamHelper"),y=f("./defaults"),w=f("./compressedObject"),x=f("./zipObject"),C=f("./generate"),O=f("./nodejsUtils"),D=f("./nodejs/NodejsStreamInputAdapter"),j=function(N){N.slice(-1)==="/"&&(N=N.substring(0,N.length-1));var k=N.lastIndexOf("/");return 0<k?N.substring(0,k):""},U=function(N){return N.slice(-1)!=="/"&&(N+="/"),N},L=function(N,k){return k=k!==void 0?k:y.createFolders,N=U(N),this.files[N]||p.call(this,N,null,{dir:!0,createFolders:k}),this.files[N]};function V(N){return Object.prototype.toString.call(N)==="[object RegExp]"}var A={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(N){var k,S,E;for(k in this.files)E=this.files[k],(S=k.slice(this.root.length,k.length))&&k.slice(0,this.root.length)===this.root&&N(S,E)},filter:function(N){var k=[];return this.forEach(function(S,E){N(S,E)&&k.push(E)}),k},file:function(N,k,S){if(arguments.length!==1)return N=this.root+N,p.call(this,N,k,S),this;if(V(N)){var E=N;return this.filter(function(R,F){return!F.dir&&E.test(R)})}var T=this.files[this.root+N];return T&&!T.dir?T:null},folder:function(N){if(!N)return this;if(V(N))return this.filter(function(T,R){return R.dir&&N.test(T)});var k=this.root+N,S=L.call(this,k),E=this.clone();return E.root=S.name,E},remove:function(N){N=this.root+N;var k=this.files[N];if(k||(N.slice(-1)!=="/"&&(N+="/"),k=this.files[N]),k&&!k.dir)delete this.files[N];else for(var S=this.filter(function(T,R){return R.name.slice(0,N.length)===N}),E=0;E<S.length;E++)delete this.files[S[E].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(N){var k,S={};try{if((S=v.extend(N||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:m.utf8encode})).type=S.type.toLowerCase(),S.compression=S.compression.toUpperCase(),S.type==="binarystring"&&(S.type="string"),!S.type)throw new Error("No output type specified.");v.checkSupport(S.type),S.platform!=="darwin"&&S.platform!=="freebsd"&&S.platform!=="linux"&&S.platform!=="sunos"||(S.platform="UNIX"),S.platform==="win32"&&(S.platform="DOS");var E=S.comment||this.comment||"";k=C.generateWorker(this,S,E)}catch(T){(k=new b("error")).error(T)}return new g(k,S.type||"string",S.mimeType)},generateAsync:function(N,k){return this.generateInternalStream(N).accumulate(k)},generateNodeStream:function(N,k){return(N=N||{}).type||(N.type="nodebuffer"),this.generateInternalStream(N).toNodejsStream(k)}};h.exports=A},{"./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(f,h,d){h.exports=f("stream")},{stream:void 0}],17:[function(f,h,d){var p=f("./DataReader");function m(v){p.call(this,v);for(var b=0;b<this.data.length;b++)v[b]=255&v[b]}f("../utils").inherits(m,p),m.prototype.byteAt=function(v){return this.data[this.zero+v]},m.prototype.lastIndexOfSignature=function(v){for(var b=v.charCodeAt(0),g=v.charCodeAt(1),y=v.charCodeAt(2),w=v.charCodeAt(3),x=this.length-4;0<=x;--x)if(this.data[x]===b&&this.data[x+1]===g&&this.data[x+2]===y&&this.data[x+3]===w)return x-this.zero;return-1},m.prototype.readAndCheckSignature=function(v){var b=v.charCodeAt(0),g=v.charCodeAt(1),y=v.charCodeAt(2),w=v.charCodeAt(3),x=this.readData(4);return b===x[0]&&g===x[1]&&y===x[2]&&w===x[3]},m.prototype.readData=function(v){if(this.checkOffset(v),v===0)return[];var b=this.data.slice(this.zero+this.index,this.zero+this.index+v);return this.index+=v,b},h.exports=m},{"../utils":32,"./DataReader":18}],18:[function(f,h,d){var p=f("../utils");function m(v){this.data=v,this.length=v.length,this.index=0,this.zero=0}m.prototype={checkOffset:function(v){this.checkIndex(this.index+v)},checkIndex:function(v){if(this.length<this.zero+v||v<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+v+"). Corrupted zip ?")},setIndex:function(v){this.checkIndex(v),this.index=v},skip:function(v){this.setIndex(this.index+v)},byteAt:function(){},readInt:function(v){var b,g=0;for(this.checkOffset(v),b=this.index+v-1;b>=this.index;b--)g=(g<<8)+this.byteAt(b);return this.index+=v,g},readString:function(v){return p.transformTo("string",this.readData(v))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var v=this.readInt(4);return new Date(Date.UTC(1980+(v>>25&127),(v>>21&15)-1,v>>16&31,v>>11&31,v>>5&63,(31&v)<<1))}},h.exports=m},{"../utils":32}],19:[function(f,h,d){var p=f("./Uint8ArrayReader");function m(v){p.call(this,v)}f("../utils").inherits(m,p),m.prototype.readData=function(v){this.checkOffset(v);var b=this.data.slice(this.zero+this.index,this.zero+this.index+v);return this.index+=v,b},h.exports=m},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(f,h,d){var p=f("./DataReader");function m(v){p.call(this,v)}f("../utils").inherits(m,p),m.prototype.byteAt=function(v){return this.data.charCodeAt(this.zero+v)},m.prototype.lastIndexOfSignature=function(v){return this.data.lastIndexOf(v)-this.zero},m.prototype.readAndCheckSignature=function(v){return v===this.readData(4)},m.prototype.readData=function(v){this.checkOffset(v);var b=this.data.slice(this.zero+this.index,this.zero+this.index+v);return this.index+=v,b},h.exports=m},{"../utils":32,"./DataReader":18}],21:[function(f,h,d){var p=f("./ArrayReader");function m(v){p.call(this,v)}f("../utils").inherits(m,p),m.prototype.readData=function(v){if(this.checkOffset(v),v===0)return new Uint8Array(0);var b=this.data.subarray(this.zero+this.index,this.zero+this.index+v);return this.index+=v,b},h.exports=m},{"../utils":32,"./ArrayReader":17}],22:[function(f,h,d){var p=f("../utils"),m=f("../support"),v=f("./ArrayReader"),b=f("./StringReader"),g=f("./NodeBufferReader"),y=f("./Uint8ArrayReader");h.exports=function(w){var x=p.getTypeOf(w);return p.checkSupport(x),x!=="string"||m.uint8array?x==="nodebuffer"?new g(w):m.uint8array?new y(p.transformTo("uint8array",w)):new v(p.transformTo("array",w)):new b(w)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(f,h,d){d.LOCAL_FILE_HEADER="PK",d.CENTRAL_FILE_HEADER="PK",d.CENTRAL_DIRECTORY_END="PK",d.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",d.ZIP64_CENTRAL_DIRECTORY_END="PK",d.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(f,h,d){var p=f("./GenericWorker"),m=f("../utils");function v(b){p.call(this,"ConvertWorker to "+b),this.destType=b}m.inherits(v,p),v.prototype.processChunk=function(b){this.push({data:m.transformTo(this.destType,b.data),meta:b.meta})},h.exports=v},{"../utils":32,"./GenericWorker":28}],25:[function(f,h,d){var p=f("./GenericWorker"),m=f("../crc32");function v(){p.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}f("../utils").inherits(v,p),v.prototype.processChunk=function(b){this.streamInfo.crc32=m(b.data,this.streamInfo.crc32||0),this.push(b)},h.exports=v},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(f,h,d){var p=f("../utils"),m=f("./GenericWorker");function v(b){m.call(this,"DataLengthProbe for "+b),this.propName=b,this.withStreamInfo(b,0)}p.inherits(v,m),v.prototype.processChunk=function(b){if(b){var g=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=g+b.data.length}m.prototype.processChunk.call(this,b)},h.exports=v},{"../utils":32,"./GenericWorker":28}],27:[function(f,h,d){var p=f("../utils"),m=f("./GenericWorker");function v(b){m.call(this,"DataWorker");var g=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,b.then(function(y){g.dataIsReady=!0,g.data=y,g.max=y&&y.length||0,g.type=p.getTypeOf(y),g.isPaused||g._tickAndRepeat()},function(y){g.error(y)})}p.inherits(v,m),v.prototype.cleanUp=function(){m.prototype.cleanUp.call(this),this.data=null},v.prototype.resume=function(){return!!m.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,p.delay(this._tickAndRepeat,[],this)),!0)},v.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(p.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},v.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var b=null,g=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":b=this.data.substring(this.index,g);break;case"uint8array":b=this.data.subarray(this.index,g);break;case"array":case"nodebuffer":b=this.data.slice(this.index,g)}return this.index=g,this.push({data:b,meta:{percent:this.max?this.index/this.max*100:0}})},h.exports=v},{"../utils":32,"./GenericWorker":28}],28:[function(f,h,d){function p(m){this.name=m||"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}p.prototype={push:function(m){this.emit("data",m)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(m){this.emit("error",m)}return!0},error:function(m){return!this.isFinished&&(this.isPaused?this.generatedError=m:(this.isFinished=!0,this.emit("error",m),this.previous&&this.previous.error(m),this.cleanUp()),!0)},on:function(m,v){return this._listeners[m].push(v),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(m,v){if(this._listeners[m])for(var b=0;b<this._listeners[m].length;b++)this._listeners[m][b].call(this,v)},pipe:function(m){return m.registerPrevious(this)},registerPrevious:function(m){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=m.streamInfo,this.mergeStreamInfo(),this.previous=m;var v=this;return m.on("data",function(b){v.processChunk(b)}),m.on("end",function(){v.end()}),m.on("error",function(b){v.error(b)}),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 m=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),m=!0),this.previous&&this.previous.resume(),!m},flush:function(){},processChunk:function(m){this.push(m)},withStreamInfo:function(m,v){return this.extraStreamInfo[m]=v,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var m in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,m)&&(this.streamInfo[m]=this.extraStreamInfo[m])},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 m="Worker "+this.name;return this.previous?this.previous+" -> "+m:m}},h.exports=p},{}],29:[function(f,h,d){var p=f("../utils"),m=f("./ConvertWorker"),v=f("./GenericWorker"),b=f("../base64"),g=f("../support"),y=f("../external"),w=null;if(g.nodestream)try{w=f("../nodejs/NodejsStreamOutputAdapter")}catch(O){}function x(O,D){return new y.Promise(function(j,U){var L=[],V=O._internalType,A=O._outputType,N=O._mimeType;O.on("data",function(k,S){L.push(k),D&&D(S)}).on("error",function(k){L=[],U(k)}).on("end",function(){try{var k=function(S,E,T){switch(S){case"blob":return p.newBlob(p.transformTo("arraybuffer",E),T);case"base64":return b.encode(E);default:return p.transformTo(S,E)}}(A,function(S,E){var T,R=0,F=null,I=0;for(T=0;T<E.length;T++)I+=E[T].length;switch(S){case"string":return E.join("");case"array":return Array.prototype.concat.apply([],E);case"uint8array":for(F=new Uint8Array(I),T=0;T<E.length;T++)F.set(E[T],R),R+=E[T].length;return F;case"nodebuffer":return o.concat(E);default:throw new Error("concat : unsupported type '"+S+"'")}}(V,L),N);j(k)}catch(S){U(S)}L=[]}).resume()})}function C(O,D,j){var U=D;switch(D){case"blob":case"arraybuffer":U="uint8array";break;case"base64":U="string"}try{this._internalType=U,this._outputType=D,this._mimeType=j,p.checkSupport(U),this._worker=O.pipe(new m(U)),O.lock()}catch(L){this._worker=new v("error"),this._worker.error(L)}}C.prototype={accumulate:function(O){return x(this,O)},on:function(O,D){var j=this;return O==="data"?this._worker.on(O,function(U){D.call(j,U.data,U.meta)}):this._worker.on(O,function(){p.delay(D,arguments,j)}),this},resume:function(){return p.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(O){if(p.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new w(this,{objectMode:this._outputType!=="nodebuffer"},O)}},h.exports=C},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(f,h,d){if(d.base64=!0,d.array=!0,d.string=!0,d.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",d.nodebuffer=o!==void 0,d.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")d.blob=!1;else{var p=new ArrayBuffer(0);try{d.blob=new Blob([p],{type:"application/zip"}).size===0}catch(v){try{var m=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);m.append(p),d.blob=m.getBlob("application/zip").size===0}catch(b){d.blob=!1}}}try{d.nodestream=!!f("readable-stream").Readable}catch(v){d.nodestream=!1}},{"readable-stream":16}],31:[function(f,h,d){for(var p=f("./utils"),m=f("./support"),v=f("./nodejsUtils"),b=f("./stream/GenericWorker"),g=new Array(256),y=0;y<256;y++)g[y]=252<=y?6:248<=y?5:240<=y?4:224<=y?3:192<=y?2:1;function w(){b.call(this,"utf-8 decode"),this.leftOver=null}function x(){b.call(this,"utf-8 encode")}g[254]=g[254]=1,d.utf8encode=function(C){return m.nodebuffer?v.newBufferFrom(C,"utf-8"):function(O){var D,j,U,L,V,A=O.length,N=0;for(L=0;L<A;L++)(64512&(j=O.charCodeAt(L)))==55296&&L+1<A&&(64512&(U=O.charCodeAt(L+1)))==56320&&(j=65536+(j-55296<<10)+(U-56320),L++),N+=j<128?1:j<2048?2:j<65536?3:4;for(D=m.uint8array?new Uint8Array(N):new Array(N),L=V=0;V<N;L++)(64512&(j=O.charCodeAt(L)))==55296&&L+1<A&&(64512&(U=O.charCodeAt(L+1)))==56320&&(j=65536+(j-55296<<10)+(U-56320),L++),j<128?D[V++]=j:(j<2048?D[V++]=192|j>>>6:(j<65536?D[V++]=224|j>>>12:(D[V++]=240|j>>>18,D[V++]=128|j>>>12&63),D[V++]=128|j>>>6&63),D[V++]=128|63&j);return D}(C)},d.utf8decode=function(C){return m.nodebuffer?p.transformTo("nodebuffer",C).toString("utf-8"):function(O){var D,j,U,L,V=O.length,A=new Array(2*V);for(D=j=0;D<V;)if((U=O[D++])<128)A[j++]=U;else if(4<(L=g[U]))A[j++]=65533,D+=L-1;else{for(U&=L===2?31:L===3?15:7;1<L&&D<V;)U=U<<6|63&O[D++],L--;1<L?A[j++]=65533:U<65536?A[j++]=U:(U-=65536,A[j++]=55296|U>>10&1023,A[j++]=56320|1023&U)}return A.length!==j&&(A.subarray?A=A.subarray(0,j):A.length=j),p.applyFromCharCode(A)}(C=p.transformTo(m.uint8array?"uint8array":"array",C))},p.inherits(w,b),w.prototype.processChunk=function(C){var O=p.transformTo(m.uint8array?"uint8array":"array",C.data);if(this.leftOver&&this.leftOver.length){if(m.uint8array){var D=O;(O=new Uint8Array(D.length+this.leftOver.length)).set(this.leftOver,0),O.set(D,this.leftOver.length)}else O=this.leftOver.concat(O);this.leftOver=null}var j=function(L,V){var A;for((V=V||L.length)>L.length&&(V=L.length),A=V-1;0<=A&&(192&L[A])==128;)A--;return A<0||A===0?V:A+g[L[A]]>V?A:V}(O),U=O;j!==O.length&&(m.uint8array?(U=O.subarray(0,j),this.leftOver=O.subarray(j,O.length)):(U=O.slice(0,j),this.leftOver=O.slice(j,O.length))),this.push({data:d.utf8decode(U),meta:C.meta})},w.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:d.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},d.Utf8DecodeWorker=w,p.inherits(x,b),x.prototype.processChunk=function(C){this.push({data:d.utf8encode(C.data),meta:C.meta})},d.Utf8EncodeWorker=x},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(f,h,d){var p=f("./support"),m=f("./base64"),v=f("./nodejsUtils"),b=f("./external");function g(D){return D}function y(D,j){for(var U=0;U<D.length;++U)j[U]=255&D.charCodeAt(U);return j}f("setimmediate"),d.newBlob=function(D,j){d.checkSupport("blob");try{return new Blob([D],{type:j})}catch(L){try{var U=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return U.append(D),U.getBlob(j)}catch(V){throw new Error("Bug : can't construct the Blob.")}}};var w={stringifyByChunk:function(D,j,U){var L=[],V=0,A=D.length;if(A<=U)return String.fromCharCode.apply(null,D);for(;V<A;)j==="array"||j==="nodebuffer"?L.push(String.fromCharCode.apply(null,D.slice(V,Math.min(V+U,A)))):L.push(String.fromCharCode.apply(null,D.subarray(V,Math.min(V+U,A)))),V+=U;return L.join("")},stringifyByChar:function(D){for(var j="",U=0;U<D.length;U++)j+=String.fromCharCode(D[U]);return j},applyCanBeUsed:{uint8array:function(){try{return p.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(D){return!1}}(),nodebuffer:function(){try{return p.nodebuffer&&String.fromCharCode.apply(null,v.allocBuffer(1)).length===1}catch(D){return!1}}()}};function x(D){var j=65536,U=d.getTypeOf(D),L=!0;if(U==="uint8array"?L=w.applyCanBeUsed.uint8array:U==="nodebuffer"&&(L=w.applyCanBeUsed.nodebuffer),L)for(;1<j;)try{return w.stringifyByChunk(D,U,j)}catch(V){j=Math.floor(j/2)}return w.stringifyByChar(D)}function C(D,j){for(var U=0;U<D.length;U++)j[U]=D[U];return j}d.applyFromCharCode=x;var O={};O.string={string:g,array:function(D){return y(D,new Array(D.length))},arraybuffer:function(D){return O.string.uint8array(D).buffer},uint8array:function(D){return y(D,new Uint8Array(D.length))},nodebuffer:function(D){return y(D,v.allocBuffer(D.length))}},O.array={string:x,array:g,arraybuffer:function(D){return new Uint8Array(D).buffer},uint8array:function(D){return new Uint8Array(D)},nodebuffer:function(D){return v.newBufferFrom(D)}},O.arraybuffer={string:function(D){return x(new Uint8Array(D))},array:function(D){return C(new Uint8Array(D),new Array(D.byteLength))},arraybuffer:g,uint8array:function(D){return new Uint8Array(D)},nodebuffer:function(D){return v.newBufferFrom(new Uint8Array(D))}},O.uint8array={string:x,array:function(D){return C(D,new Array(D.length))},arraybuffer:function(D){return D.buffer},uint8array:g,nodebuffer:function(D){return v.newBufferFrom(D)}},O.nodebuffer={string:x,array:function(D){return C(D,new Array(D.length))},arraybuffer:function(D){return O.nodebuffer.uint8array(D).buffer},uint8array:function(D){return C(D,new Uint8Array(D.length))},nodebuffer:g},d.transformTo=function(D,j){if(j=j||"",!D)return j;d.checkSupport(D);var U=d.getTypeOf(j);return O[U][D](j)},d.resolve=function(D){for(var j=D.split("/"),U=[],L=0;L<j.length;L++){var V=j[L];V==="."||V===""&&L!==0&&L!==j.length-1||(V===".."?U.pop():U.push(V))}return U.join("/")},d.getTypeOf=function(D){return typeof D=="string"?"string":Object.prototype.toString.call(D)==="[object Array]"?"array":p.nodebuffer&&v.isBuffer(D)?"nodebuffer":p.uint8array&&D instanceof Uint8Array?"uint8array":p.arraybuffer&&D instanceof ArrayBuffer?"arraybuffer":void 0},d.checkSupport=function(D){if(!p[D.toLowerCase()])throw new Error(D+" is not supported by this platform")},d.MAX_VALUE_16BITS=65535,d.MAX_VALUE_32BITS=-1,d.pretty=function(D){var j,U,L="";for(U=0;U<(D||"").length;U++)L+="\\x"+((j=D.charCodeAt(U))<16?"0":"")+j.toString(16).toUpperCase();return L},d.delay=function(D,j,U){u(function(){D.apply(U||null,j||[])})},d.inherits=function(D,j){function U(){}U.prototype=j.prototype,D.prototype=new U},d.extend=function(){var D,j,U={};for(D=0;D<arguments.length;D++)for(j in arguments[D])Object.prototype.hasOwnProperty.call(arguments[D],j)&&U[j]===void 0&&(U[j]=arguments[D][j]);return U},d.prepareContent=function(D,j,U,L,V){return b.Promise.resolve(j).then(function(A){return p.blob&&(A instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(A))!==-1)&&typeof FileReader!="undefined"?new b.Promise(function(N,k){var S=new FileReader;S.onload=function(E){N(E.target.result)},S.onerror=function(E){k(E.target.error)},S.readAsArrayBuffer(A)}):A}).then(function(A){var N,k=d.getTypeOf(A);return k?(k==="arraybuffer"?A=d.transformTo("uint8array",A):k==="string"&&(V?A=m.decode(A):U&&L!==!0&&(A=y(N=A,p.uint8array?new Uint8Array(N.length):new Array(N.length)))),A):b.Promise.reject(new Error("Can't read the data of '"+D+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(f,h,d){var p=f("./reader/readerFor"),m=f("./utils"),v=f("./signature"),b=f("./zipEntry"),g=f("./support");function y(w){this.files=[],this.loadOptions=w}y.prototype={checkSignature:function(w){if(!this.reader.readAndCheckSignature(w)){this.reader.index-=4;var x=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+m.pretty(x)+", expected "+m.pretty(w)+")")}},isSignature:function(w,x){var C=this.reader.index;this.reader.setIndex(w);var O=this.reader.readString(4)===x;return this.reader.setIndex(C),O},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 w=this.reader.readData(this.zipCommentLength),x=g.uint8array?"uint8array":"array",C=m.transformTo(x,w);this.zipComment=this.loadOptions.decodeFileName(C)},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 w,x,C,O=this.zip64EndOfCentralSize-44;0<O;)w=this.reader.readInt(2),x=this.reader.readInt(4),C=this.reader.readData(x),this.zip64ExtensibleData[w]={id:w,length:x,value:C}},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 w,x;for(w=0;w<this.files.length;w++)x=this.files[w],this.reader.setIndex(x.localHeaderOffset),this.checkSignature(v.LOCAL_FILE_HEADER),x.readLocalPart(this.reader),x.handleUTF8(),x.processAttributes()},readCentralDir:function(){var w;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(v.CENTRAL_FILE_HEADER);)(w=new b({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(w);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 w=this.reader.lastIndexOfSignature(v.CENTRAL_DIRECTORY_END);if(w<0)throw this.isSignature(0,v.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(w);var x=w;if(this.checkSignature(v.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===m.MAX_VALUE_16BITS||this.diskWithCentralDirStart===m.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===m.MAX_VALUE_16BITS||this.centralDirRecords===m.MAX_VALUE_16BITS||this.centralDirSize===m.MAX_VALUE_32BITS||this.centralDirOffset===m.MAX_VALUE_32BITS){if(this.zip64=!0,(w=this.reader.lastIndexOfSignature(v.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(w),this.checkSignature(v.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,v.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(v.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(v.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var C=this.centralDirOffset+this.centralDirSize;this.zip64&&(C+=20,C+=12+this.zip64EndOfCentralSize);var O=x-C;if(0<O)this.isSignature(x,v.CENTRAL_FILE_HEADER)||(this.reader.zero=O);else if(O<0)throw new Error("Corrupted zip: missing "+Math.abs(O)+" bytes.")},prepareReader:function(w){this.reader=p(w)},load:function(w){this.prepareReader(w),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},h.exports=y},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(f,h,d){var p=f("./reader/readerFor"),m=f("./utils"),v=f("./compressedObject"),b=f("./crc32"),g=f("./utf8"),y=f("./compressions"),w=f("./support");function x(C,O){this.options=C,this.loadOptions=O}x.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(C){var O,D;if(C.skip(22),this.fileNameLength=C.readInt(2),D=C.readInt(2),this.fileName=C.readData(this.fileNameLength),C.skip(D),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((O=function(j){for(var U in y)if(Object.prototype.hasOwnProperty.call(y,U)&&y[U].magic===j)return y[U];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+m.pretty(this.compressionMethod)+" unknown (inner file : "+m.transformTo("string",this.fileName)+")");this.decompressed=new v(this.compressedSize,this.uncompressedSize,this.crc32,O,C.readData(this.compressedSize))},readCentralPart:function(C){this.versionMadeBy=C.readInt(2),C.skip(2),this.bitFlag=C.readInt(2),this.compressionMethod=C.readString(2),this.date=C.readDate(),this.crc32=C.readInt(4),this.compressedSize=C.readInt(4),this.uncompressedSize=C.readInt(4);var O=C.readInt(2);if(this.extraFieldsLength=C.readInt(2),this.fileCommentLength=C.readInt(2),this.diskNumberStart=C.readInt(2),this.internalFileAttributes=C.readInt(2),this.externalFileAttributes=C.readInt(4),this.localHeaderOffset=C.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");C.skip(O),this.readExtraFields(C),this.parseZIP64ExtraField(C),this.fileComment=C.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var C=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),C==0&&(this.dosPermissions=63&this.externalFileAttributes),C==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var C=p(this.extraFields[1].value);this.uncompressedSize===m.MAX_VALUE_32BITS&&(this.uncompressedSize=C.readInt(8)),this.compressedSize===m.MAX_VALUE_32BITS&&(this.compressedSize=C.readInt(8)),this.localHeaderOffset===m.MAX_VALUE_32BITS&&(this.localHeaderOffset=C.readInt(8)),this.diskNumberStart===m.MAX_VALUE_32BITS&&(this.diskNumberStart=C.readInt(4))}},readExtraFields:function(C){var O,D,j,U=C.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});C.index+4<U;)O=C.readInt(2),D=C.readInt(2),j=C.readData(D),this.extraFields[O]={id:O,length:D,value:j};C.setIndex(U)},handleUTF8:function(){var C=w.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=g.utf8decode(this.fileName),this.fileCommentStr=g.utf8decode(this.fileComment);else{var O=this.findExtraFieldUnicodePath();if(O!==null)this.fileNameStr=O;else{var D=m.transformTo(C,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(D)}var j=this.findExtraFieldUnicodeComment();if(j!==null)this.fileCommentStr=j;else{var U=m.transformTo(C,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(U)}}},findExtraFieldUnicodePath:function(){var C=this.extraFields[28789];if(C){var O=p(C.value);return O.readInt(1)!==1||b(this.fileName)!==O.readInt(4)?null:g.utf8decode(O.readData(C.length-5))}return null},findExtraFieldUnicodeComment:function(){var C=this.extraFields[25461];if(C){var O=p(C.value);return O.readInt(1)!==1||b(this.fileComment)!==O.readInt(4)?null:g.utf8decode(O.readData(C.length-5))}return null}},h.exports=x},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(f,h,d){function p(O,D,j){this.name=O,this.dir=j.dir,this.date=j.date,this.comment=j.comment,this.unixPermissions=j.unixPermissions,this.dosPermissions=j.dosPermissions,this._data=D,this._dataBinary=j.binary,this.options={compression:j.compression,compressionOptions:j.compressionOptions}}var m=f("./stream/StreamHelper"),v=f("./stream/DataWorker"),b=f("./utf8"),g=f("./compressedObject"),y=f("./stream/GenericWorker");p.prototype={internalStream:function(O){var D=null,j="string";try{if(!O)throw new Error("No output type specified.");var U=(j=O.toLowerCase())==="string"||j==="text";j!=="binarystring"&&j!=="text"||(j="string"),D=this._decompressWorker();var L=!this._dataBinary;L&&!U&&(D=D.pipe(new b.Utf8EncodeWorker)),!L&&U&&(D=D.pipe(new b.Utf8DecodeWorker))}catch(V){(D=new y("error")).error(V)}return new m(D,j,"")},async:function(O,D){return this.internalStream(O).accumulate(D)},nodeStream:function(O,D){return this.internalStream(O||"nodebuffer").toNodejsStream(D)},_compressWorker:function(O,D){if(this._data instanceof g&&this._data.compression.magic===O.magic)return this._data.getCompressedWorker();var j=this._decompressWorker();return this._dataBinary||(j=j.pipe(new b.Utf8EncodeWorker)),g.createWorkerFrom(j,O,D)},_decompressWorker:function(){return this._data instanceof g?this._data.getContentWorker():this._data instanceof y?this._data:new v(this._data)}};for(var w=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],x=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},C=0;C<w.length;C++)p.prototype[w[C]]=x;h.exports=p},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(f,h,d){(function(p){var m,v,b=p.MutationObserver||p.WebKitMutationObserver;if(b){var g=0,y=new b(O),w=p.document.createTextNode("");y.observe(w,{characterData:!0}),m=function(){w.data=g=++g%2}}else if(p.setImmediate||p.MessageChannel===void 0)m="document"in p&&"onreadystatechange"in p.document.createElement("script")?function(){var D=p.document.createElement("script");D.onreadystatechange=function(){O(),D.onreadystatechange=null,D.parentNode.removeChild(D),D=null},p.document.documentElement.appendChild(D)}:function(){setTimeout(O,0)};else{var x=new p.MessageChannel;x.port1.onmessage=O,m=function(){x.port2.postMessage(0)}}var C=[];function O(){var D,j;v=!0;for(var U=C.length;U;){for(j=C,C=[],D=-1;++D<U;)j[D]();U=C.length}v=!1}h.exports=function(D){C.push(D)!==1||v||m()}}).call(this,a!==void 0?a:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(f,h,d){var p=f("immediate");function m(){}var v={},b=["REJECTED"],g=["FULFILLED"],y=["PENDING"];function w(U){if(typeof U!="function")throw new TypeError("resolver must be a function");this.state=y,this.queue=[],this.outcome=void 0,U!==m&&D(this,U)}function x(U,L,V){this.promise=U,typeof L=="function"&&(this.onFulfilled=L,this.callFulfilled=this.otherCallFulfilled),typeof V=="function"&&(this.onRejected=V,this.callRejected=this.otherCallRejected)}function C(U,L,V){p(function(){var A;try{A=L(V)}catch(N){return v.reject(U,N)}A===U?v.reject(U,new TypeError("Cannot resolve promise with itself")):v.resolve(U,A)})}function O(U){var L=U&&U.then;if(U&&(typeof U=="object"||typeof U=="function")&&typeof L=="function")return function(){L.apply(U,arguments)}}function D(U,L){var V=!1;function A(S){V||(V=!0,v.reject(U,S))}function N(S){V||(V=!0,v.resolve(U,S))}var k=j(function(){L(N,A)});k.status==="error"&&A(k.value)}function j(U,L){var V={};try{V.value=U(L),V.status="success"}catch(A){V.status="error",V.value=A}return V}(h.exports=w).prototype.finally=function(U){if(typeof U!="function")return this;var L=this.constructor;return this.then(function(V){return L.resolve(U()).then(function(){return V})},function(V){return L.resolve(U()).then(function(){throw V})})},w.prototype.catch=function(U){return this.then(null,U)},w.prototype.then=function(U,L){if(typeof U!="function"&&this.state===g||typeof L!="function"&&this.state===b)return this;var V=new this.constructor(m);return this.state!==y?C(V,this.state===g?U:L,this.outcome):this.queue.push(new x(V,U,L)),V},x.prototype.callFulfilled=function(U){v.resolve(this.promise,U)},x.prototype.otherCallFulfilled=function(U){C(this.promise,this.onFulfilled,U)},x.prototype.callRejected=function(U){v.reject(this.promise,U)},x.prototype.otherCallRejected=function(U){C(this.promise,this.onRejected,U)},v.resolve=function(U,L){var V=j(O,L);if(V.status==="error")return v.reject(U,V.value);var A=V.value;if(A)D(U,A);else{U.state=g,U.outcome=L;for(var N=-1,k=U.queue.length;++N<k;)U.queue[N].callFulfilled(L)}return U},v.reject=function(U,L){U.state=b,U.outcome=L;for(var V=-1,A=U.queue.length;++V<A;)U.queue[V].callRejected(L);return U},w.resolve=function(U){return U instanceof this?U:v.resolve(new this(m),U)},w.reject=function(U){var L=new this(m);return v.reject(L,U)},w.all=function(U){var L=this;if(Object.prototype.toString.call(U)!=="[object Array]")return this.reject(new TypeError("must be an array"));var V=U.length,A=!1;if(!V)return this.resolve([]);for(var N=new Array(V),k=0,S=-1,E=new this(m);++S<V;)T(U[S],S);return E;function T(R,F){L.resolve(R).then(function(I){N[F]=I,++k!==V||A||(A=!0,v.resolve(E,N))},function(I){A||(A=!0,v.reject(E,I))})}},w.race=function(U){var L=this;if(Object.prototype.toString.call(U)!=="[object Array]")return this.reject(new TypeError("must be an array"));var V=U.length,A=!1;if(!V)return this.resolve([]);for(var N,k=-1,S=new this(m);++k<V;)N=U[k],L.resolve(N).then(function(E){A||(A=!0,v.resolve(S,E))},function(E){A||(A=!0,v.reject(S,E))});return S}},{immediate:36}],38:[function(f,h,d){var p={};(0,f("./lib/utils/common").assign)(p,f("./lib/deflate"),f("./lib/inflate"),f("./lib/zlib/constants")),h.exports=p},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(f,h,d){var p=f("./zlib/deflate"),m=f("./utils/common"),v=f("./utils/strings"),b=f("./zlib/messages"),g=f("./zlib/zstream"),y=Object.prototype.toString,w=0,x=-1,C=0,O=8;function D(U){if(!(this instanceof D))return new D(U);this.options=m.assign({level:x,method:O,chunkSize:16384,windowBits:15,memLevel:8,strategy:C,to:""},U||{});var L=this.options;L.raw&&0<L.windowBits?L.windowBits=-L.windowBits:L.gzip&&0<L.windowBits&&L.windowBits<16&&(L.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new g,this.strm.avail_out=0;var V=p.deflateInit2(this.strm,L.level,L.method,L.windowBits,L.memLevel,L.strategy);if(V!==w)throw new Error(b[V]);if(L.header&&p.deflateSetHeader(this.strm,L.header),L.dictionary){var A;if(A=typeof L.dictionary=="string"?v.string2buf(L.dictionary):y.call(L.dictionary)==="[object ArrayBuffer]"?new Uint8Array(L.dictionary):L.dictionary,(V=p.deflateSetDictionary(this.strm,A))!==w)throw new Error(b[V]);this._dict_set=!0}}function j(U,L){var V=new D(L);if(V.push(U,!0),V.err)throw V.msg||b[V.err];return V.result}D.prototype.push=function(U,L){var V,A,N=this.strm,k=this.options.chunkSize;if(this.ended)return!1;A=L===~~L?L:L===!0?4:0,typeof U=="string"?N.input=v.string2buf(U):y.call(U)==="[object ArrayBuffer]"?N.input=new Uint8Array(U):N.input=U,N.next_in=0,N.avail_in=N.input.length;do{if(N.avail_out===0&&(N.output=new m.Buf8(k),N.next_out=0,N.avail_out=k),(V=p.deflate(N,A))!==1&&V!==w)return this.onEnd(V),!(this.ended=!0);N.avail_out!==0&&(N.avail_in!==0||A!==4&&A!==2)||(this.options.to==="string"?this.onData(v.buf2binstring(m.shrinkBuf(N.output,N.next_out))):this.onData(m.shrinkBuf(N.output,N.next_out)))}while((0<N.avail_in||N.avail_out===0)&&V!==1);return A===4?(V=p.deflateEnd(this.strm),this.onEnd(V),this.ended=!0,V===w):A!==2||(this.onEnd(w),!(N.avail_out=0))},D.prototype.onData=function(U){this.chunks.push(U)},D.prototype.onEnd=function(U){U===w&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=m.flattenChunks(this.chunks)),this.chunks=[],this.err=U,this.msg=this.strm.msg},d.Deflate=D,d.deflate=j,d.deflateRaw=function(U,L){return(L=L||{}).raw=!0,j(U,L)},d.gzip=function(U,L){return(L=L||{}).gzip=!0,j(U,L)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(f,h,d){var p=f("./zlib/inflate"),m=f("./utils/common"),v=f("./utils/strings"),b=f("./zlib/constants"),g=f("./zlib/messages"),y=f("./zlib/zstream"),w=f("./zlib/gzheader"),x=Object.prototype.toString;function C(D){if(!(this instanceof C))return new C(D);this.options=m.assign({chunkSize:16384,windowBits:0,to:""},D||{});var j=this.options;j.raw&&0<=j.windowBits&&j.windowBits<16&&(j.windowBits=-j.windowBits,j.windowBits===0&&(j.windowBits=-15)),!(0<=j.windowBits&&j.windowBits<16)||D&&D.windowBits||(j.windowBits+=32),15<j.windowBits&&j.windowBits<48&&!(15&j.windowBits)&&(j.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new y,this.strm.avail_out=0;var U=p.inflateInit2(this.strm,j.windowBits);if(U!==b.Z_OK)throw new Error(g[U]);this.header=new w,p.inflateGetHeader(this.strm,this.header)}function O(D,j){var U=new C(j);if(U.push(D,!0),U.err)throw U.msg||g[U.err];return U.result}C.prototype.push=function(D,j){var U,L,V,A,N,k,S=this.strm,E=this.options.chunkSize,T=this.options.dictionary,R=!1;if(this.ended)return!1;L=j===~~j?j:j===!0?b.Z_FINISH:b.Z_NO_FLUSH,typeof D=="string"?S.input=v.binstring2buf(D):x.call(D)==="[object ArrayBuffer]"?S.input=new Uint8Array(D):S.input=D,S.next_in=0,S.avail_in=S.input.length;do{if(S.avail_out===0&&(S.output=new m.Buf8(E),S.next_out=0,S.avail_out=E),(U=p.inflate(S,b.Z_NO_FLUSH))===b.Z_NEED_DICT&&T&&(k=typeof T=="string"?v.string2buf(T):x.call(T)==="[object ArrayBuffer]"?new Uint8Array(T):T,U=p.inflateSetDictionary(this.strm,k)),U===b.Z_BUF_ERROR&&R===!0&&(U=b.Z_OK,R=!1),U!==b.Z_STREAM_END&&U!==b.Z_OK)return this.onEnd(U),!(this.ended=!0);S.next_out&&(S.avail_out!==0&&U!==b.Z_STREAM_END&&(S.avail_in!==0||L!==b.Z_FINISH&&L!==b.Z_SYNC_FLUSH)||(this.options.to==="string"?(V=v.utf8border(S.output,S.next_out),A=S.next_out-V,N=v.buf2string(S.output,V),S.next_out=A,S.avail_out=E-A,A&&m.arraySet(S.output,S.output,V,A,0),this.onData(N)):this.onData(m.shrinkBuf(S.output,S.next_out)))),S.avail_in===0&&S.avail_out===0&&(R=!0)}while((0<S.avail_in||S.avail_out===0)&&U!==b.Z_STREAM_END);return U===b.Z_STREAM_END&&(L=b.Z_FINISH),L===b.Z_FINISH?(U=p.inflateEnd(this.strm),this.onEnd(U),this.ended=!0,U===b.Z_OK):L!==b.Z_SYNC_FLUSH||(this.onEnd(b.Z_OK),!(S.avail_out=0))},C.prototype.onData=function(D){this.chunks.push(D)},C.prototype.onEnd=function(D){D===b.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=m.flattenChunks(this.chunks)),this.chunks=[],this.err=D,this.msg=this.strm.msg},d.Inflate=C,d.inflate=O,d.inflateRaw=function(D,j){return(j=j||{}).raw=!0,O(D,j)},d.ungzip=O},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(f,h,d){var p=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";d.assign=function(b){for(var g=Array.prototype.slice.call(arguments,1);g.length;){var y=g.shift();if(y){if(typeof y!="object")throw new TypeError(y+"must be non-object");for(var w in y)y.hasOwnProperty(w)&&(b[w]=y[w])}}return b},d.shrinkBuf=function(b,g){return b.length===g?b:b.subarray?b.subarray(0,g):(b.length=g,b)};var m={arraySet:function(b,g,y,w,x){if(g.subarray&&b.subarray)b.set(g.subarray(y,y+w),x);else for(var C=0;C<w;C++)b[x+C]=g[y+C]},flattenChunks:function(b){var g,y,w,x,C,O;for(g=w=0,y=b.length;g<y;g++)w+=b[g].length;for(O=new Uint8Array(w),g=x=0,y=b.length;g<y;g++)C=b[g],O.set(C,x),x+=C.length;return O}},v={arraySet:function(b,g,y,w,x){for(var C=0;C<w;C++)b[x+C]=g[y+C]},flattenChunks:function(b){return[].concat.apply([],b)}};d.setTyped=function(b){b?(d.Buf8=Uint8Array,d.Buf16=Uint16Array,d.Buf32=Int32Array,d.assign(d,m)):(d.Buf8=Array,d.Buf16=Array,d.Buf32=Array,d.assign(d,v))},d.setTyped(p)},{}],42:[function(f,h,d){var p=f("./common"),m=!0,v=!0;try{String.fromCharCode.apply(null,[0])}catch(w){m=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(w){v=!1}for(var b=new p.Buf8(256),g=0;g<256;g++)b[g]=252<=g?6:248<=g?5:240<=g?4:224<=g?3:192<=g?2:1;function y(w,x){if(x<65537&&(w.subarray&&v||!w.subarray&&m))return String.fromCharCode.apply(null,p.shrinkBuf(w,x));for(var C="",O=0;O<x;O++)C+=String.fromCharCode(w[O]);return C}b[254]=b[254]=1,d.string2buf=function(w){var x,C,O,D,j,U=w.length,L=0;for(D=0;D<U;D++)(64512&(C=w.charCodeAt(D)))==55296&&D+1<U&&(64512&(O=w.charCodeAt(D+1)))==56320&&(C=65536+(C-55296<<10)+(O-56320),D++),L+=C<128?1:C<2048?2:C<65536?3:4;for(x=new p.Buf8(L),D=j=0;j<L;D++)(64512&(C=w.charCodeAt(D)))==55296&&D+1<U&&(64512&(O=w.charCodeAt(D+1)))==56320&&(C=65536+(C-55296<<10)+(O-56320),D++),C<128?x[j++]=C:(C<2048?x[j++]=192|C>>>6:(C<65536?x[j++]=224|C>>>12:(x[j++]=240|C>>>18,x[j++]=128|C>>>12&63),x[j++]=128|C>>>6&63),x[j++]=128|63&C);return x},d.buf2binstring=function(w){return y(w,w.length)},d.binstring2buf=function(w){for(var x=new p.Buf8(w.length),C=0,O=x.length;C<O;C++)x[C]=w.charCodeAt(C);return x},d.buf2string=function(w,x){var C,O,D,j,U=x||w.length,L=new Array(2*U);for(C=O=0;C<U;)if((D=w[C++])<128)L[O++]=D;else if(4<(j=b[D]))L[O++]=65533,C+=j-1;else{for(D&=j===2?31:j===3?15:7;1<j&&C<U;)D=D<<6|63&w[C++],j--;1<j?L[O++]=65533:D<65536?L[O++]=D:(D-=65536,L[O++]=55296|D>>10&1023,L[O++]=56320|1023&D)}return y(L,O)},d.utf8border=function(w,x){var C;for((x=x||w.length)>w.length&&(x=w.length),C=x-1;0<=C&&(192&w[C])==128;)C--;return C<0||C===0?x:C+b[w[C]]>x?C:x}},{"./common":41}],43:[function(f,h,d){h.exports=function(p,m,v,b){for(var g=65535&p|0,y=p>>>16&65535|0,w=0;v!==0;){for(v-=w=2e3<v?2e3:v;y=y+(g=g+m[b++]|0)|0,--w;);g%=65521,y%=65521}return g|y<<16|0}},{}],44:[function(f,h,d){h.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(f,h,d){var p=function(){for(var m,v=[],b=0;b<256;b++){m=b;for(var g=0;g<8;g++)m=1&m?3988292384^m>>>1:m>>>1;v[b]=m}return v}();h.exports=function(m,v,b,g){var y=p,w=g+b;m^=-1;for(var x=g;x<w;x++)m=m>>>8^y[255&(m^v[x])];return-1^m}},{}],46:[function(f,h,d){var p,m=f("../utils/common"),v=f("./trees"),b=f("./adler32"),g=f("./crc32"),y=f("./messages"),w=0,x=4,C=0,O=-2,D=-1,j=4,U=2,L=8,V=9,A=286,N=30,k=19,S=2*A+1,E=15,T=3,R=258,F=R+T+1,I=42,B=113,P=1,H=2,Z=3,Y=4;function dt(G,Mt){return G.msg=y[Mt],Mt}function gt(G){return(G<<1)-(4<G?9:0)}function bt(G){for(var Mt=G.length;0<=--Mt;)G[Mt]=0}function Q(G){var Mt=G.state,Pt=Mt.pending;Pt>G.avail_out&&(Pt=G.avail_out),Pt!==0&&(m.arraySet(G.output,Mt.pending_buf,Mt.pending_out,Pt,G.next_out),G.next_out+=Pt,Mt.pending_out+=Pt,G.total_out+=Pt,G.avail_out-=Pt,Mt.pending-=Pt,Mt.pending===0&&(Mt.pending_out=0))}function q(G,Mt){v._tr_flush_block(G,0<=G.block_start?G.block_start:-1,G.strstart-G.block_start,Mt),G.block_start=G.strstart,Q(G.strm)}function tt(G,Mt){G.pending_buf[G.pending++]=Mt}function et(G,Mt){G.pending_buf[G.pending++]=Mt>>>8&255,G.pending_buf[G.pending++]=255&Mt}function _t(G,Mt){var Pt,lt,ct=G.max_chain_length,pt=G.strstart,Dt=G.prev_length,rt=G.nice_match,nt=G.strstart>G.w_size-F?G.strstart-(G.w_size-F):0,ht=G.window,St=G.w_mask,ut=G.prev,vt=G.strstart+R,ft=ht[pt+Dt-1],yt=ht[pt+Dt];G.prev_length>=G.good_match&&(ct>>=2),rt>G.lookahead&&(rt=G.lookahead);do if(ht[(Pt=Mt)+Dt]===yt&&ht[Pt+Dt-1]===ft&&ht[Pt]===ht[pt]&&ht[++Pt]===ht[pt+1]){pt+=2,Pt++;do;while(ht[++pt]===ht[++Pt]&&ht[++pt]===ht[++Pt]&&ht[++pt]===ht[++Pt]&&ht[++pt]===ht[++Pt]&&ht[++pt]===ht[++Pt]&&ht[++pt]===ht[++Pt]&&ht[++pt]===ht[++Pt]&&ht[++pt]===ht[++Pt]&&pt<vt);if(lt=R-(vt-pt),pt=vt-R,Dt<lt){if(G.match_start=Mt,rt<=(Dt=lt))break;ft=ht[pt+Dt-1],yt=ht[pt+Dt]}}while((Mt=ut[Mt&St])>nt&&--ct!=0);return Dt<=G.lookahead?Dt:G.lookahead}function J(G){var Mt,Pt,lt,ct,pt,Dt,rt,nt,ht,St,ut=G.w_size;do{if(ct=G.window_size-G.lookahead-G.strstart,G.strstart>=ut+(ut-F)){for(m.arraySet(G.window,G.window,ut,ut,0),G.match_start-=ut,G.strstart-=ut,G.block_start-=ut,Mt=Pt=G.hash_size;lt=G.head[--Mt],G.head[Mt]=ut<=lt?lt-ut:0,--Pt;);for(Mt=Pt=ut;lt=G.prev[--Mt],G.prev[Mt]=ut<=lt?lt-ut:0,--Pt;);ct+=ut}if(G.strm.avail_in===0)break;if(Dt=G.strm,rt=G.window,nt=G.strstart+G.lookahead,St=void 0,(ht=ct)<(St=Dt.avail_in)&&(St=ht),Pt=St===0?0:(Dt.avail_in-=St,m.arraySet(rt,Dt.input,Dt.next_in,St,nt),Dt.state.wrap===1?Dt.adler=b(Dt.adler,rt,St,nt):Dt.state.wrap===2&&(Dt.adler=g(Dt.adler,rt,St,nt)),Dt.next_in+=St,Dt.total_in+=St,St),G.lookahead+=Pt,G.lookahead+G.insert>=T)for(pt=G.strstart-G.insert,G.ins_h=G.window[pt],G.ins_h=(G.ins_h<<G.hash_shift^G.window[pt+1])&G.hash_mask;G.insert&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[pt+T-1])&G.hash_mask,G.prev[pt&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=pt,pt++,G.insert--,!(G.lookahead+G.insert<T)););}while(G.lookahead<F&&G.strm.avail_in!==0)}function st(G,Mt){for(var Pt,lt;;){if(G.lookahead<F){if(J(G),G.lookahead<F&&Mt===w)return P;if(G.lookahead===0)break}if(Pt=0,G.lookahead>=T&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+T-1])&G.hash_mask,Pt=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart),Pt!==0&&G.strstart-Pt<=G.w_size-F&&(G.match_length=_t(G,Pt)),G.match_length>=T)if(lt=v._tr_tally(G,G.strstart-G.match_start,G.match_length-T),G.lookahead-=G.match_length,G.match_length<=G.max_lazy_match&&G.lookahead>=T){for(G.match_length--;G.strstart++,G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+T-1])&G.hash_mask,Pt=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart,--G.match_length!=0;);G.strstart++}else G.strstart+=G.match_length,G.match_length=0,G.ins_h=G.window[G.strstart],G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+1])&G.hash_mask;else lt=v._tr_tally(G,0,G.window[G.strstart]),G.lookahead--,G.strstart++;if(lt&&(q(G,!1),G.strm.avail_out===0))return P}return G.insert=G.strstart<T-1?G.strstart:T-1,Mt===x?(q(G,!0),G.strm.avail_out===0?Z:Y):G.last_lit&&(q(G,!1),G.strm.avail_out===0)?P:H}function Ot(G,Mt){for(var Pt,lt,ct;;){if(G.lookahead<F){if(J(G),G.lookahead<F&&Mt===w)return P;if(G.lookahead===0)break}if(Pt=0,G.lookahead>=T&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+T-1])&G.hash_mask,Pt=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart),G.prev_length=G.match_length,G.prev_match=G.match_start,G.match_length=T-1,Pt!==0&&G.prev_length<G.max_lazy_match&&G.strstart-Pt<=G.w_size-F&&(G.match_length=_t(G,Pt),G.match_length<=5&&(G.strategy===1||G.match_length===T&&4096<G.strstart-G.match_start)&&(G.match_length=T-1)),G.prev_length>=T&&G.match_length<=G.prev_length){for(ct=G.strstart+G.lookahead-T,lt=v._tr_tally(G,G.strstart-1-G.prev_match,G.prev_length-T),G.lookahead-=G.prev_length-1,G.prev_length-=2;++G.strstart<=ct&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+T-1])&G.hash_mask,Pt=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart),--G.prev_length!=0;);if(G.match_available=0,G.match_length=T-1,G.strstart++,lt&&(q(G,!1),G.strm.avail_out===0))return P}else if(G.match_available){if((lt=v._tr_tally(G,0,G.window[G.strstart-1]))&&q(G,!1),G.strstart++,G.lookahead--,G.strm.avail_out===0)return P}else G.match_available=1,G.strstart++,G.lookahead--}return G.match_available&&(lt=v._tr_tally(G,0,G.window[G.strstart-1]),G.match_available=0),G.insert=G.strstart<T-1?G.strstart:T-1,Mt===x?(q(G,!0),G.strm.avail_out===0?Z:Y):G.last_lit&&(q(G,!1),G.strm.avail_out===0)?P:H}function W(G,Mt,Pt,lt,ct){this.good_length=G,this.max_lazy=Mt,this.nice_length=Pt,this.max_chain=lt,this.func=ct}function X(){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=L,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 m.Buf16(2*S),this.dyn_dtree=new m.Buf16(2*(2*N+1)),this.bl_tree=new m.Buf16(2*(2*k+1)),bt(this.dyn_ltree),bt(this.dyn_dtree),bt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new m.Buf16(E+1),this.heap=new m.Buf16(2*A+1),bt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new m.Buf16(2*A+1),bt(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 it(G){var Mt;return G&&G.state?(G.total_in=G.total_out=0,G.data_type=U,(Mt=G.state).pending=0,Mt.pending_out=0,Mt.wrap<0&&(Mt.wrap=-Mt.wrap),Mt.status=Mt.wrap?I:B,G.adler=Mt.wrap===2?0:1,Mt.last_flush=w,v._tr_init(Mt),C):dt(G,O)}function xt(G){var Mt,Pt=it(G);return Pt===C&&((Mt=G.state).window_size=2*Mt.w_size,bt(Mt.head),Mt.max_lazy_match=p[Mt.level].max_lazy,Mt.good_match=p[Mt.level].good_length,Mt.nice_match=p[Mt.level].nice_length,Mt.max_chain_length=p[Mt.level].max_chain,Mt.strstart=0,Mt.block_start=0,Mt.lookahead=0,Mt.insert=0,Mt.match_length=Mt.prev_length=T-1,Mt.match_available=0,Mt.ins_h=0),Pt}function Nt(G,Mt,Pt,lt,ct,pt){if(!G)return O;var Dt=1;if(Mt===D&&(Mt=6),lt<0?(Dt=0,lt=-lt):15<lt&&(Dt=2,lt-=16),ct<1||V<ct||Pt!==L||lt<8||15<lt||Mt<0||9<Mt||pt<0||j<pt)return dt(G,O);lt===8&&(lt=9);var rt=new X;return(G.state=rt).strm=G,rt.wrap=Dt,rt.gzhead=null,rt.w_bits=lt,rt.w_size=1<<rt.w_bits,rt.w_mask=rt.w_size-1,rt.hash_bits=ct+7,rt.hash_size=1<<rt.hash_bits,rt.hash_mask=rt.hash_size-1,rt.hash_shift=~~((rt.hash_bits+T-1)/T),rt.window=new m.Buf8(2*rt.w_size),rt.head=new m.Buf16(rt.hash_size),rt.prev=new m.Buf16(rt.w_size),rt.lit_bufsize=1<<ct+6,rt.pending_buf_size=4*rt.lit_bufsize,rt.pending_buf=new m.Buf8(rt.pending_buf_size),rt.d_buf=1*rt.lit_bufsize,rt.l_buf=3*rt.lit_bufsize,rt.level=Mt,rt.strategy=pt,rt.method=Pt,xt(G)}p=[new W(0,0,0,0,function(G,Mt){var Pt=65535;for(Pt>G.pending_buf_size-5&&(Pt=G.pending_buf_size-5);;){if(G.lookahead<=1){if(J(G),G.lookahead===0&&Mt===w)return P;if(G.lookahead===0)break}G.strstart+=G.lookahead,G.lookahead=0;var lt=G.block_start+Pt;if((G.strstart===0||G.strstart>=lt)&&(G.lookahead=G.strstart-lt,G.strstart=lt,q(G,!1),G.strm.avail_out===0)||G.strstart-G.block_start>=G.w_size-F&&(q(G,!1),G.strm.avail_out===0))return P}return G.insert=0,Mt===x?(q(G,!0),G.strm.avail_out===0?Z:Y):(G.strstart>G.block_start&&(q(G,!1),G.strm.avail_out),P)}),new W(4,4,8,4,st),new W(4,5,16,8,st),new W(4,6,32,32,st),new W(4,4,16,16,Ot),new W(8,16,32,32,Ot),new W(8,16,128,128,Ot),new W(8,32,128,256,Ot),new W(32,128,258,1024,Ot),new W(32,258,258,4096,Ot)],d.deflateInit=function(G,Mt){return Nt(G,Mt,L,15,8,0)},d.deflateInit2=Nt,d.deflateReset=xt,d.deflateResetKeep=it,d.deflateSetHeader=function(G,Mt){return G&&G.state?G.state.wrap!==2?O:(G.state.gzhead=Mt,C):O},d.deflate=function(G,Mt){var Pt,lt,ct,pt;if(!G||!G.state||5<Mt||Mt<0)return G?dt(G,O):O;if(lt=G.state,!G.output||!G.input&&G.avail_in!==0||lt.status===666&&Mt!==x)return dt(G,G.avail_out===0?-5:O);if(lt.strm=G,Pt=lt.last_flush,lt.last_flush=Mt,lt.status===I)if(lt.wrap===2)G.adler=0,tt(lt,31),tt(lt,139),tt(lt,8),lt.gzhead?(tt(lt,(lt.gzhead.text?1:0)+(lt.gzhead.hcrc?2:0)+(lt.gzhead.extra?4:0)+(lt.gzhead.name?8:0)+(lt.gzhead.comment?16:0)),tt(lt,255<.gzhead.time),tt(lt,lt.gzhead.time>>8&255),tt(lt,lt.gzhead.time>>16&255),tt(lt,lt.gzhead.time>>24&255),tt(lt,lt.level===9?2:2<=lt.strategy||lt.level<2?4:0),tt(lt,255<.gzhead.os),lt.gzhead.extra&<.gzhead.extra.length&&(tt(lt,255<.gzhead.extra.length),tt(lt,lt.gzhead.extra.length>>8&255)),lt.gzhead.hcrc&&(G.adler=g(G.adler,lt.pending_buf,lt.pending,0)),lt.gzindex=0,lt.status=69):(tt(lt,0),tt(lt,0),tt(lt,0),tt(lt,0),tt(lt,0),tt(lt,lt.level===9?2:2<=lt.strategy||lt.level<2?4:0),tt(lt,3),lt.status=B);else{var Dt=L+(lt.w_bits-8<<4)<<8;Dt|=(2<=lt.strategy||lt.level<2?0:lt.level<6?1:lt.level===6?2:3)<<6,lt.strstart!==0&&(Dt|=32),Dt+=31-Dt%31,lt.status=B,et(lt,Dt),lt.strstart!==0&&(et(lt,G.adler>>>16),et(lt,65535&G.adler)),G.adler=1}if(lt.status===69)if(lt.gzhead.extra){for(ct=lt.pending;lt.gzindex<(65535<.gzhead.extra.length)&&(lt.pending!==lt.pending_buf_size||(lt.gzhead.hcrc&<.pending>ct&&(G.adler=g(G.adler,lt.pending_buf,lt.pending-ct,ct)),Q(G),ct=lt.pending,lt.pending!==lt.pending_buf_size));)tt(lt,255<.gzhead.extra[lt.gzindex]),lt.gzindex++;lt.gzhead.hcrc&<.pending>ct&&(G.adler=g(G.adler,lt.pending_buf,lt.pending-ct,ct)),lt.gzindex===lt.gzhead.extra.length&&(lt.gzindex=0,lt.status=73)}else lt.status=73;if(lt.status===73)if(lt.gzhead.name){ct=lt.pending;do{if(lt.pending===lt.pending_buf_size&&(lt.gzhead.hcrc&<.pending>ct&&(G.adler=g(G.adler,lt.pending_buf,lt.pending-ct,ct)),Q(G),ct=lt.pending,lt.pending===lt.pending_buf_size)){pt=1;break}pt=lt.gzindex<lt.gzhead.name.length?255<.gzhead.name.charCodeAt(lt.gzindex++):0,tt(lt,pt)}while(pt!==0);lt.gzhead.hcrc&<.pending>ct&&(G.adler=g(G.adler,lt.pending_buf,lt.pending-ct,ct)),pt===0&&(lt.gzindex=0,lt.status=91)}else lt.status=91;if(lt.status===91)if(lt.gzhead.comment){ct=lt.pending;do{if(lt.pending===lt.pending_buf_size&&(lt.gzhead.hcrc&<.pending>ct&&(G.adler=g(G.adler,lt.pending_buf,lt.pending-ct,ct)),Q(G),ct=lt.pending,lt.pending===lt.pending_buf_size)){pt=1;break}pt=lt.gzindex<lt.gzhead.comment.length?255<.gzhead.comment.charCodeAt(lt.gzindex++):0,tt(lt,pt)}while(pt!==0);lt.gzhead.hcrc&<.pending>ct&&(G.adler=g(G.adler,lt.pending_buf,lt.pending-ct,ct)),pt===0&&(lt.status=103)}else lt.status=103;if(lt.status===103&&(lt.gzhead.hcrc?(lt.pending+2>lt.pending_buf_size&&Q(G),lt.pending+2<=lt.pending_buf_size&&(tt(lt,255&G.adler),tt(lt,G.adler>>8&255),G.adler=0,lt.status=B)):lt.status=B),lt.pending!==0){if(Q(G),G.avail_out===0)return lt.last_flush=-1,C}else if(G.avail_in===0&>(Mt)<=gt(Pt)&&Mt!==x)return dt(G,-5);if(lt.status===666&&G.avail_in!==0)return dt(G,-5);if(G.avail_in!==0||lt.lookahead!==0||Mt!==w&<.status!==666){var rt=lt.strategy===2?function(nt,ht){for(var St;;){if(nt.lookahead===0&&(J(nt),nt.lookahead===0)){if(ht===w)return P;break}if(nt.match_length=0,St=v._tr_tally(nt,0,nt.window[nt.strstart]),nt.lookahead--,nt.strstart++,St&&(q(nt,!1),nt.strm.avail_out===0))return P}return nt.insert=0,ht===x?(q(nt,!0),nt.strm.avail_out===0?Z:Y):nt.last_lit&&(q(nt,!1),nt.strm.avail_out===0)?P:H}(lt,Mt):lt.strategy===3?function(nt,ht){for(var St,ut,vt,ft,yt=nt.window;;){if(nt.lookahead<=R){if(J(nt),nt.lookahead<=R&&ht===w)return P;if(nt.lookahead===0)break}if(nt.match_length=0,nt.lookahead>=T&&0<nt.strstart&&(ut=yt[vt=nt.strstart-1])===yt[++vt]&&ut===yt[++vt]&&ut===yt[++vt]){ft=nt.strstart+R;do;while(ut===yt[++vt]&&ut===yt[++vt]&&ut===yt[++vt]&&ut===yt[++vt]&&ut===yt[++vt]&&ut===yt[++vt]&&ut===yt[++vt]&&ut===yt[++vt]&&vt<ft);nt.match_length=R-(ft-vt),nt.match_length>nt.lookahead&&(nt.match_length=nt.lookahead)}if(nt.match_length>=T?(St=v._tr_tally(nt,1,nt.match_length-T),nt.lookahead-=nt.match_length,nt.strstart+=nt.match_length,nt.match_length=0):(St=v._tr_tally(nt,0,nt.window[nt.strstart]),nt.lookahead--,nt.strstart++),St&&(q(nt,!1),nt.strm.avail_out===0))return P}return nt.insert=0,ht===x?(q(nt,!0),nt.strm.avail_out===0?Z:Y):nt.last_lit&&(q(nt,!1),nt.strm.avail_out===0)?P:H}(lt,Mt):p[lt.level].func(lt,Mt);if(rt!==Z&&rt!==Y||(lt.status=666),rt===P||rt===Z)return G.avail_out===0&&(lt.last_flush=-1),C;if(rt===H&&(Mt===1?v._tr_align(lt):Mt!==5&&(v._tr_stored_block(lt,0,0,!1),Mt===3&&(bt(lt.head),lt.lookahead===0&&(lt.strstart=0,lt.block_start=0,lt.insert=0))),Q(G),G.avail_out===0))return lt.last_flush=-1,C}return Mt!==x?C:lt.wrap<=0?1:(lt.wrap===2?(tt(lt,255&G.adler),tt(lt,G.adler>>8&255),tt(lt,G.adler>>16&255),tt(lt,G.adler>>24&255),tt(lt,255&G.total_in),tt(lt,G.total_in>>8&255),tt(lt,G.total_in>>16&255),tt(lt,G.total_in>>24&255)):(et(lt,G.adler>>>16),et(lt,65535&G.adler)),Q(G),0<lt.wrap&&(lt.wrap=-lt.wrap),lt.pending!==0?C:1)},d.deflateEnd=function(G){var Mt;return G&&G.state?(Mt=G.state.status)!==I&&Mt!==69&&Mt!==73&&Mt!==91&&Mt!==103&&Mt!==B&&Mt!==666?dt(G,O):(G.state=null,Mt===B?dt(G,-3):C):O},d.deflateSetDictionary=function(G,Mt){var Pt,lt,ct,pt,Dt,rt,nt,ht,St=Mt.length;if(!G||!G.state||(pt=(Pt=G.state).wrap)===2||pt===1&&Pt.status!==I||Pt.lookahead)return O;for(pt===1&&(G.adler=b(G.adler,Mt,St,0)),Pt.wrap=0,St>=Pt.w_size&&(pt===0&&(bt(Pt.head),Pt.strstart=0,Pt.block_start=0,Pt.insert=0),ht=new m.Buf8(Pt.w_size),m.arraySet(ht,Mt,St-Pt.w_size,Pt.w_size,0),Mt=ht,St=Pt.w_size),Dt=G.avail_in,rt=G.next_in,nt=G.input,G.avail_in=St,G.next_in=0,G.input=Mt,J(Pt);Pt.lookahead>=T;){for(lt=Pt.strstart,ct=Pt.lookahead-(T-1);Pt.ins_h=(Pt.ins_h<<Pt.hash_shift^Pt.window[lt+T-1])&Pt.hash_mask,Pt.prev[lt&Pt.w_mask]=Pt.head[Pt.ins_h],Pt.head[Pt.ins_h]=lt,lt++,--ct;);Pt.strstart=lt,Pt.lookahead=T-1,J(Pt)}return Pt.strstart+=Pt.lookahead,Pt.block_start=Pt.strstart,Pt.insert=Pt.lookahead,Pt.lookahead=0,Pt.match_length=Pt.prev_length=T-1,Pt.match_available=0,G.next_in=rt,G.input=nt,G.avail_in=Dt,Pt.wrap=pt,C},d.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(f,h,d){h.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(f,h,d){h.exports=function(p,m){var v,b,g,y,w,x,C,O,D,j,U,L,V,A,N,k,S,E,T,R,F,I,B,P,H;v=p.state,b=p.next_in,P=p.input,g=b+(p.avail_in-5),y=p.next_out,H=p.output,w=y-(m-p.avail_out),x=y+(p.avail_out-257),C=v.dmax,O=v.wsize,D=v.whave,j=v.wnext,U=v.window,L=v.hold,V=v.bits,A=v.lencode,N=v.distcode,k=(1<<v.lenbits)-1,S=(1<<v.distbits)-1;t:do{V<15&&(L+=P[b++]<<V,V+=8,L+=P[b++]<<V,V+=8),E=A[L&k];e:for(;;){if(L>>>=T=E>>>24,V-=T,(T=E>>>16&255)==0)H[y++]=65535&E;else{if(!(16&T)){if(!(64&T)){E=A[(65535&E)+(L&(1<<T)-1)];continue e}if(32&T){v.mode=12;break t}p.msg="invalid literal/length code",v.mode=30;break t}R=65535&E,(T&=15)&&(V<T&&(L+=P[b++]<<V,V+=8),R+=L&(1<<T)-1,L>>>=T,V-=T),V<15&&(L+=P[b++]<<V,V+=8,L+=P[b++]<<V,V+=8),E=N[L&S];r:for(;;){if(L>>>=T=E>>>24,V-=T,!(16&(T=E>>>16&255))){if(!(64&T)){E=N[(65535&E)+(L&(1<<T)-1)];continue r}p.msg="invalid distance code",v.mode=30;break t}if(F=65535&E,V<(T&=15)&&(L+=P[b++]<<V,(V+=8)<T&&(L+=P[b++]<<V,V+=8)),C<(F+=L&(1<<T)-1)){p.msg="invalid distance too far back",v.mode=30;break t}if(L>>>=T,V-=T,(T=y-w)<F){if(D<(T=F-T)&&v.sane){p.msg="invalid distance too far back",v.mode=30;break t}if(B=U,(I=0)===j){if(I+=O-T,T<R){for(R-=T;H[y++]=U[I++],--T;);I=y-F,B=H}}else if(j<T){if(I+=O+j-T,(T-=j)<R){for(R-=T;H[y++]=U[I++],--T;);if(I=0,j<R){for(R-=T=j;H[y++]=U[I++],--T;);I=y-F,B=H}}}else if(I+=j-T,T<R){for(R-=T;H[y++]=U[I++],--T;);I=y-F,B=H}for(;2<R;)H[y++]=B[I++],H[y++]=B[I++],H[y++]=B[I++],R-=3;R&&(H[y++]=B[I++],1<R&&(H[y++]=B[I++]))}else{for(I=y-F;H[y++]=H[I++],H[y++]=H[I++],H[y++]=H[I++],2<(R-=3););R&&(H[y++]=H[I++],1<R&&(H[y++]=H[I++]))}break}}break}}while(b<g&&y<x);b-=R=V>>3,L&=(1<<(V-=R<<3))-1,p.next_in=b,p.next_out=y,p.avail_in=b<g?g-b+5:5-(b-g),p.avail_out=y<x?x-y+257:257-(y-x),v.hold=L,v.bits=V}},{}],49:[function(f,h,d){var p=f("../utils/common"),m=f("./adler32"),v=f("./crc32"),b=f("./inffast"),g=f("./inftrees"),y=1,w=2,x=0,C=-2,O=1,D=852,j=592;function U(I){return(I>>>24&255)+(I>>>8&65280)+((65280&I)<<8)+((255&I)<<24)}function L(){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 p.Buf16(320),this.work=new p.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function V(I){var B;return I&&I.state?(B=I.state,I.total_in=I.total_out=B.total=0,I.msg="",B.wrap&&(I.adler=1&B.wrap),B.mode=O,B.last=0,B.havedict=0,B.dmax=32768,B.head=null,B.hold=0,B.bits=0,B.lencode=B.lendyn=new p.Buf32(D),B.distcode=B.distdyn=new p.Buf32(j),B.sane=1,B.back=-1,x):C}function A(I){var B;return I&&I.state?((B=I.state).wsize=0,B.whave=0,B.wnext=0,V(I)):C}function N(I,B){var P,H;return I&&I.state?(H=I.state,B<0?(P=0,B=-B):(P=1+(B>>4),B<48&&(B&=15)),B&&(B<8||15<B)?C:(H.window!==null&&H.wbits!==B&&(H.window=null),H.wrap=P,H.wbits=B,A(I))):C}function k(I,B){var P,H;return I?(H=new L,(I.state=H).window=null,(P=N(I,B))!==x&&(I.state=null),P):C}var S,E,T=!0;function R(I){if(T){var B;for(S=new p.Buf32(512),E=new p.Buf32(32),B=0;B<144;)I.lens[B++]=8;for(;B<256;)I.lens[B++]=9;for(;B<280;)I.lens[B++]=7;for(;B<288;)I.lens[B++]=8;for(g(y,I.lens,0,288,S,0,I.work,{bits:9}),B=0;B<32;)I.lens[B++]=5;g(w,I.lens,0,32,E,0,I.work,{bits:5}),T=!1}I.lencode=S,I.lenbits=9,I.distcode=E,I.distbits=5}function F(I,B,P,H){var Z,Y=I.state;return Y.window===null&&(Y.wsize=1<<Y.wbits,Y.wnext=0,Y.whave=0,Y.window=new p.Buf8(Y.wsize)),H>=Y.wsize?(p.arraySet(Y.window,B,P-Y.wsize,Y.wsize,0),Y.wnext=0,Y.whave=Y.wsize):(H<(Z=Y.wsize-Y.wnext)&&(Z=H),p.arraySet(Y.window,B,P-H,Z,Y.wnext),(H-=Z)?(p.arraySet(Y.window,B,P-H,H,0),Y.wnext=H,Y.whave=Y.wsize):(Y.wnext+=Z,Y.wnext===Y.wsize&&(Y.wnext=0),Y.whave<Y.wsize&&(Y.whave+=Z))),0}d.inflateReset=A,d.inflateReset2=N,d.inflateResetKeep=V,d.inflateInit=function(I){return k(I,15)},d.inflateInit2=k,d.inflate=function(I,B){var P,H,Z,Y,dt,gt,bt,Q,q,tt,et,_t,J,st,Ot,W,X,it,xt,Nt,G,Mt,Pt,lt,ct=0,pt=new p.Buf8(4),Dt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!I||!I.state||!I.output||!I.input&&I.avail_in!==0)return C;(P=I.state).mode===12&&(P.mode=13),dt=I.next_out,Z=I.output,bt=I.avail_out,Y=I.next_in,H=I.input,gt=I.avail_in,Q=P.hold,q=P.bits,tt=gt,et=bt,Mt=x;t:for(;;)switch(P.mode){case O:if(P.wrap===0){P.mode=13;break}for(;q<16;){if(gt===0)break t;gt--,Q+=H[Y++]<<q,q+=8}if(2&P.wrap&&Q===35615){pt[P.check=0]=255&Q,pt[1]=Q>>>8&255,P.check=v(P.check,pt,2,0),q=Q=0,P.mode=2;break}if(P.flags=0,P.head&&(P.head.done=!1),!(1&P.wrap)||(((255&Q)<<8)+(Q>>8))%31){I.msg="incorrect header check",P.mode=30;break}if((15&Q)!=8){I.msg="unknown compression method",P.mode=30;break}if(q-=4,G=8+(15&(Q>>>=4)),P.wbits===0)P.wbits=G;else if(G>P.wbits){I.msg="invalid window size",P.mode=30;break}P.dmax=1<<G,I.adler=P.check=1,P.mode=512&Q?10:12,q=Q=0;break;case 2:for(;q<16;){if(gt===0)break t;gt--,Q+=H[Y++]<<q,q+=8}if(P.flags=Q,(255&P.flags)!=8){I.msg="unknown compression method",P.mode=30;break}if(57344&P.flags){I.msg="unknown header flags set",P.mode=30;break}P.head&&(P.head.text=Q>>8&1),512&P.flags&&(pt[0]=255&Q,pt[1]=Q>>>8&255,P.check=v(P.check,pt,2,0)),q=Q=0,P.mode=3;case 3:for(;q<32;){if(gt===0)break t;gt--,Q+=H[Y++]<<q,q+=8}P.head&&(P.head.time=Q),512&P.flags&&(pt[0]=255&Q,pt[1]=Q>>>8&255,pt[2]=Q>>>16&255,pt[3]=Q>>>24&255,P.check=v(P.check,pt,4,0)),q=Q=0,P.mode=4;case 4:for(;q<16;){if(gt===0)break t;gt--,Q+=H[Y++]<<q,q+=8}P.head&&(P.head.xflags=255&Q,P.head.os=Q>>8),512&P.flags&&(pt[0]=255&Q,pt[1]=Q>>>8&255,P.check=v(P.check,pt,2,0)),q=Q=0,P.mode=5;case 5:if(1024&P.flags){for(;q<16;){if(gt===0)break t;gt--,Q+=H[Y++]<<q,q+=8}P.length=Q,P.head&&(P.head.extra_len=Q),512&P.flags&&(pt[0]=255&Q,pt[1]=Q>>>8&255,P.check=v(P.check,pt,2,0)),q=Q=0}else P.head&&(P.head.extra=null);P.mode=6;case 6:if(1024&P.flags&&(gt<(_t=P.length)&&(_t=gt),_t&&(P.head&&(G=P.head.extra_len-P.length,P.head.extra||(P.head.extra=new Array(P.head.extra_len)),p.arraySet(P.head.extra,H,Y,_t,G)),512&P.flags&&(P.check=v(P.check,H,_t,Y)),gt-=_t,Y+=_t,P.length-=_t),P.length))break t;P.length=0,P.mode=7;case 7:if(2048&P.flags){if(gt===0)break t;for(_t=0;G=H[Y+_t++],P.head&&G&&P.length<65536&&(P.head.name+=String.fromCharCode(G)),G&&_t<gt;);if(512&P.flags&&(P.check=v(P.check,H,_t,Y)),gt-=_t,Y+=_t,G)break t}else P.head&&(P.head.name=null);P.length=0,P.mode=8;case 8:if(4096&P.flags){if(gt===0)break t;for(_t=0;G=H[Y+_t++],P.head&&G&&P.length<65536&&(P.head.comment+=String.fromCharCode(G)),G&&_t<gt;);if(512&P.flags&&(P.check=v(P.check,H,_t,Y)),gt-=_t,Y+=_t,G)break t}else P.head&&(P.head.comment=null);P.mode=9;case 9:if(512&P.flags){for(;q<16;){if(gt===0)break t;gt--,Q+=H[Y++]<<q,q+=8}if(Q!==(65535&P.check)){I.msg="header crc mismatch",P.mode=30;break}q=Q=0}P.head&&(P.head.hcrc=P.flags>>9&1,P.head.done=!0),I.adler=P.check=0,P.mode=12;break;case 10:for(;q<32;){if(gt===0)break t;gt--,Q+=H[Y++]<<q,q+=8}I.adler=P.check=U(Q),q=Q=0,P.mode=11;case 11:if(P.havedict===0)return I.next_out=dt,I.avail_out=bt,I.next_in=Y,I.avail_in=gt,P.hold=Q,P.bits=q,2;I.adler=P.check=1,P.mode=12;case 12:if(B===5||B===6)break t;case 13:if(P.last){Q>>>=7&q,q-=7&q,P.mode=27;break}for(;q<3;){if(gt===0)break t;gt--,Q+=H[Y++]<<q,q+=8}switch(P.last=1&Q,q-=1,3&(Q>>>=1)){case 0:P.mode=14;break;case 1:if(R(P),P.mode=20,B!==6)break;Q>>>=2,q-=2;break t;case 2:P.mode=17;break;case 3:I.msg="invalid block type",P.mode=30}Q>>>=2,q-=2;break;case 14:for(Q>>>=7&q,q-=7&q;q<32;){if(gt===0)break t;gt--,Q+=H[Y++]<<q,q+=8}if((65535&Q)!=(Q>>>16^65535)){I.msg="invalid stored block lengths",P.mode=30;break}if(P.length=65535&Q,q=Q=0,P.mode=15,B===6)break t;case 15:P.mode=16;case 16:if(_t=P.length){if(gt<_t&&(_t=gt),bt<_t&&(_t=bt),_t===0)break t;p.arraySet(Z,H,Y,_t,dt),gt-=_t,Y+=_t,bt-=_t,dt+=_t,P.length-=_t;break}P.mode=12;break;case 17:for(;q<14;){if(gt===0)break t;gt--,Q+=H[Y++]<<q,q+=8}if(P.nlen=257+(31&Q),Q>>>=5,q-=5,P.ndist=1+(31&Q),Q>>>=5,q-=5,P.ncode=4+(15&Q),Q>>>=4,q-=4,286<P.nlen||30<P.ndist){I.msg="too many length or distance symbols",P.mode=30;break}P.have=0,P.mode=18;case 18:for(;P.have<P.ncode;){for(;q<3;){if(gt===0)break t;gt--,Q+=H[Y++]<<q,q+=8}P.lens[Dt[P.have++]]=7&Q,Q>>>=3,q-=3}for(;P.have<19;)P.lens[Dt[P.have++]]=0;if(P.lencode=P.lendyn,P.lenbits=7,Pt={bits:P.lenbits},Mt=g(0,P.lens,0,19,P.lencode,0,P.work,Pt),P.lenbits=Pt.bits,Mt){I.msg="invalid code lengths set",P.mode=30;break}P.have=0,P.mode=19;case 19:for(;P.have<P.nlen+P.ndist;){for(;W=(ct=P.lencode[Q&(1<<P.lenbits)-1])>>>16&255,X=65535&ct,!((Ot=ct>>>24)<=q);){if(gt===0)break t;gt--,Q+=H[Y++]<<q,q+=8}if(X<16)Q>>>=Ot,q-=Ot,P.lens[P.have++]=X;else{if(X===16){for(lt=Ot+2;q<lt;){if(gt===0)break t;gt--,Q+=H[Y++]<<q,q+=8}if(Q>>>=Ot,q-=Ot,P.have===0){I.msg="invalid bit length repeat",P.mode=30;break}G=P.lens[P.have-1],_t=3+(3&Q),Q>>>=2,q-=2}else if(X===17){for(lt=Ot+3;q<lt;){if(gt===0)break t;gt--,Q+=H[Y++]<<q,q+=8}q-=Ot,G=0,_t=3+(7&(Q>>>=Ot)),Q>>>=3,q-=3}else{for(lt=Ot+7;q<lt;){if(gt===0)break t;gt--,Q+=H[Y++]<<q,q+=8}q-=Ot,G=0,_t=11+(127&(Q>>>=Ot)),Q>>>=7,q-=7}if(P.have+_t>P.nlen+P.ndist){I.msg="invalid bit length repeat",P.mode=30;break}for(;_t--;)P.lens[P.have++]=G}}if(P.mode===30)break;if(P.lens[256]===0){I.msg="invalid code -- missing end-of-block",P.mode=30;break}if(P.lenbits=9,Pt={bits:P.lenbits},Mt=g(y,P.lens,0,P.nlen,P.lencode,0,P.work,Pt),P.lenbits=Pt.bits,Mt){I.msg="invalid literal/lengths set",P.mode=30;break}if(P.distbits=6,P.distcode=P.distdyn,Pt={bits:P.distbits},Mt=g(w,P.lens,P.nlen,P.ndist,P.distcode,0,P.work,Pt),P.distbits=Pt.bits,Mt){I.msg="invalid distances set",P.mode=30;break}if(P.mode=20,B===6)break t;case 20:P.mode=21;case 21:if(6<=gt&&258<=bt){I.next_out=dt,I.avail_out=bt,I.next_in=Y,I.avail_in=gt,P.hold=Q,P.bits=q,b(I,et),dt=I.next_out,Z=I.output,bt=I.avail_out,Y=I.next_in,H=I.input,gt=I.avail_in,Q=P.hold,q=P.bits,P.mode===12&&(P.back=-1);break}for(P.back=0;W=(ct=P.lencode[Q&(1<<P.lenbits)-1])>>>16&255,X=65535&ct,!((Ot=ct>>>24)<=q);){if(gt===0)break t;gt--,Q+=H[Y++]<<q,q+=8}if(W&&!(240&W)){for(it=Ot,xt=W,Nt=X;W=(ct=P.lencode[Nt+((Q&(1<<it+xt)-1)>>it)])>>>16&255,X=65535&ct,!(it+(Ot=ct>>>24)<=q);){if(gt===0)break t;gt--,Q+=H[Y++]<<q,q+=8}Q>>>=it,q-=it,P.back+=it}if(Q>>>=Ot,q-=Ot,P.back+=Ot,P.length=X,W===0){P.mode=26;break}if(32&W){P.back=-1,P.mode=12;break}if(64&W){I.msg="invalid literal/length code",P.mode=30;break}P.extra=15&W,P.mode=22;case 22:if(P.extra){for(lt=P.extra;q<lt;){if(gt===0)break t;gt--,Q+=H[Y++]<<q,q+=8}P.length+=Q&(1<<P.extra)-1,Q>>>=P.extra,q-=P.extra,P.back+=P.extra}P.was=P.length,P.mode=23;case 23:for(;W=(ct=P.distcode[Q&(1<<P.distbits)-1])>>>16&255,X=65535&ct,!((Ot=ct>>>24)<=q);){if(gt===0)break t;gt--,Q+=H[Y++]<<q,q+=8}if(!(240&W)){for(it=Ot,xt=W,Nt=X;W=(ct=P.distcode[Nt+((Q&(1<<it+xt)-1)>>it)])>>>16&255,X=65535&ct,!(it+(Ot=ct>>>24)<=q);){if(gt===0)break t;gt--,Q+=H[Y++]<<q,q+=8}Q>>>=it,q-=it,P.back+=it}if(Q>>>=Ot,q-=Ot,P.back+=Ot,64&W){I.msg="invalid distance code",P.mode=30;break}P.offset=X,P.extra=15&W,P.mode=24;case 24:if(P.extra){for(lt=P.extra;q<lt;){if(gt===0)break t;gt--,Q+=H[Y++]<<q,q+=8}P.offset+=Q&(1<<P.extra)-1,Q>>>=P.extra,q-=P.extra,P.back+=P.extra}if(P.offset>P.dmax){I.msg="invalid distance too far back",P.mode=30;break}P.mode=25;case 25:if(bt===0)break t;if(_t=et-bt,P.offset>_t){if((_t=P.offset-_t)>P.whave&&P.sane){I.msg="invalid distance too far back",P.mode=30;break}J=_t>P.wnext?(_t-=P.wnext,P.wsize-_t):P.wnext-_t,_t>P.length&&(_t=P.length),st=P.window}else st=Z,J=dt-P.offset,_t=P.length;for(bt<_t&&(_t=bt),bt-=_t,P.length-=_t;Z[dt++]=st[J++],--_t;);P.length===0&&(P.mode=21);break;case 26:if(bt===0)break t;Z[dt++]=P.length,bt--,P.mode=21;break;case 27:if(P.wrap){for(;q<32;){if(gt===0)break t;gt--,Q|=H[Y++]<<q,q+=8}if(et-=bt,I.total_out+=et,P.total+=et,et&&(I.adler=P.check=P.flags?v(P.check,Z,et,dt-et):m(P.check,Z,et,dt-et)),et=bt,(P.flags?Q:U(Q))!==P.check){I.msg="incorrect data check",P.mode=30;break}q=Q=0}P.mode=28;case 28:if(P.wrap&&P.flags){for(;q<32;){if(gt===0)break t;gt--,Q+=H[Y++]<<q,q+=8}if(Q!==(4294967295&P.total)){I.msg="incorrect length check",P.mode=30;break}q=Q=0}P.mode=29;case 29:Mt=1;break t;case 30:Mt=-3;break t;case 31:return-4;default:return C}return I.next_out=dt,I.avail_out=bt,I.next_in=Y,I.avail_in=gt,P.hold=Q,P.bits=q,(P.wsize||et!==I.avail_out&&P.mode<30&&(P.mode<27||B!==4))&&F(I,I.output,I.next_out,et-I.avail_out)?(P.mode=31,-4):(tt-=I.avail_in,et-=I.avail_out,I.total_in+=tt,I.total_out+=et,P.total+=et,P.wrap&&et&&(I.adler=P.check=P.flags?v(P.check,Z,et,I.next_out-et):m(P.check,Z,et,I.next_out-et)),I.data_type=P.bits+(P.last?64:0)+(P.mode===12?128:0)+(P.mode===20||P.mode===15?256:0),(tt==0&&et===0||B===4)&&Mt===x&&(Mt=-5),Mt)},d.inflateEnd=function(I){if(!I||!I.state)return C;var B=I.state;return B.window&&(B.window=null),I.state=null,x},d.inflateGetHeader=function(I,B){var P;return I&&I.state&&2&(P=I.state).wrap?((P.head=B).done=!1,x):C},d.inflateSetDictionary=function(I,B){var P,H=B.length;return I&&I.state?(P=I.state).wrap!==0&&P.mode!==11?C:P.mode===11&&m(1,B,H,0)!==P.check?-3:F(I,B,H,H)?(P.mode=31,-4):(P.havedict=1,x):C},d.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(f,h,d){var p=f("../utils/common"),m=[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],v=[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],b=[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],g=[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];h.exports=function(y,w,x,C,O,D,j,U){var L,V,A,N,k,S,E,T,R,F=U.bits,I=0,B=0,P=0,H=0,Z=0,Y=0,dt=0,gt=0,bt=0,Q=0,q=null,tt=0,et=new p.Buf16(16),_t=new p.Buf16(16),J=null,st=0;for(I=0;I<=15;I++)et[I]=0;for(B=0;B<C;B++)et[w[x+B]]++;for(Z=F,H=15;1<=H&&et[H]===0;H--);if(H<Z&&(Z=H),H===0)return O[D++]=20971520,O[D++]=20971520,U.bits=1,0;for(P=1;P<H&&et[P]===0;P++);for(Z<P&&(Z=P),I=gt=1;I<=15;I++)if(gt<<=1,(gt-=et[I])<0)return-1;if(0<gt&&(y===0||H!==1))return-1;for(_t[1]=0,I=1;I<15;I++)_t[I+1]=_t[I]+et[I];for(B=0;B<C;B++)w[x+B]!==0&&(j[_t[w[x+B]]++]=B);if(S=y===0?(q=J=j,19):y===1?(q=m,tt-=257,J=v,st-=257,256):(q=b,J=g,-1),I=P,k=D,dt=B=Q=0,A=-1,N=(bt=1<<(Y=Z))-1,y===1&&852<bt||y===2&&592<bt)return 1;for(;;){for(E=I-dt,R=j[B]<S?(T=0,j[B]):j[B]>S?(T=J[st+j[B]],q[tt+j[B]]):(T=96,0),L=1<<I-dt,P=V=1<<Y;O[k+(Q>>dt)+(V-=L)]=E<<24|T<<16|R|0,V!==0;);for(L=1<<I-1;Q&L;)L>>=1;if(L!==0?(Q&=L-1,Q+=L):Q=0,B++,--et[I]==0){if(I===H)break;I=w[x+j[B]]}if(Z<I&&(Q&N)!==A){for(dt===0&&(dt=Z),k+=P,gt=1<<(Y=I-dt);Y+dt<H&&!((gt-=et[Y+dt])<=0);)Y++,gt<<=1;if(bt+=1<<Y,y===1&&852<bt||y===2&&592<bt)return 1;O[A=Q&N]=Z<<24|Y<<16|k-D|0}}return Q!==0&&(O[k+Q]=I-dt<<24|64<<16|0),U.bits=Z,0}},{"../utils/common":41}],51:[function(f,h,d){h.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(f,h,d){var p=f("../utils/common"),m=0,v=1;function b(ct){for(var pt=ct.length;0<=--pt;)ct[pt]=0}var g=0,y=29,w=256,x=w+1+y,C=30,O=19,D=2*x+1,j=15,U=16,L=7,V=256,A=16,N=17,k=18,S=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],E=[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],T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],R=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],F=new Array(2*(x+2));b(F);var I=new Array(2*C);b(I);var B=new Array(512);b(B);var P=new Array(256);b(P);var H=new Array(y);b(H);var Z,Y,dt,gt=new Array(C);function bt(ct,pt,Dt,rt,nt){this.static_tree=ct,this.extra_bits=pt,this.extra_base=Dt,this.elems=rt,this.max_length=nt,this.has_stree=ct&&ct.length}function Q(ct,pt){this.dyn_tree=ct,this.max_code=0,this.stat_desc=pt}function q(ct){return ct<256?B[ct]:B[256+(ct>>>7)]}function tt(ct,pt){ct.pending_buf[ct.pending++]=255&pt,ct.pending_buf[ct.pending++]=pt>>>8&255}function et(ct,pt,Dt){ct.bi_valid>U-Dt?(ct.bi_buf|=pt<<ct.bi_valid&65535,tt(ct,ct.bi_buf),ct.bi_buf=pt>>U-ct.bi_valid,ct.bi_valid+=Dt-U):(ct.bi_buf|=pt<<ct.bi_valid&65535,ct.bi_valid+=Dt)}function _t(ct,pt,Dt){et(ct,Dt[2*pt],Dt[2*pt+1])}function J(ct,pt){for(var Dt=0;Dt|=1&ct,ct>>>=1,Dt<<=1,0<--pt;);return Dt>>>1}function st(ct,pt,Dt){var rt,nt,ht=new Array(j+1),St=0;for(rt=1;rt<=j;rt++)ht[rt]=St=St+Dt[rt-1]<<1;for(nt=0;nt<=pt;nt++){var ut=ct[2*nt+1];ut!==0&&(ct[2*nt]=J(ht[ut]++,ut))}}function Ot(ct){var pt;for(pt=0;pt<x;pt++)ct.dyn_ltree[2*pt]=0;for(pt=0;pt<C;pt++)ct.dyn_dtree[2*pt]=0;for(pt=0;pt<O;pt++)ct.bl_tree[2*pt]=0;ct.dyn_ltree[2*V]=1,ct.opt_len=ct.static_len=0,ct.last_lit=ct.matches=0}function W(ct){8<ct.bi_valid?tt(ct,ct.bi_buf):0<ct.bi_valid&&(ct.pending_buf[ct.pending++]=ct.bi_buf),ct.bi_buf=0,ct.bi_valid=0}function X(ct,pt,Dt,rt){var nt=2*pt,ht=2*Dt;return ct[nt]<ct[ht]||ct[nt]===ct[ht]&&rt[pt]<=rt[Dt]}function it(ct,pt,Dt){for(var rt=ct.heap[Dt],nt=Dt<<1;nt<=ct.heap_len&&(nt<ct.heap_len&&X(pt,ct.heap[nt+1],ct.heap[nt],ct.depth)&&nt++,!X(pt,rt,ct.heap[nt],ct.depth));)ct.heap[Dt]=ct.heap[nt],Dt=nt,nt<<=1;ct.heap[Dt]=rt}function xt(ct,pt,Dt){var rt,nt,ht,St,ut=0;if(ct.last_lit!==0)for(;rt=ct.pending_buf[ct.d_buf+2*ut]<<8|ct.pending_buf[ct.d_buf+2*ut+1],nt=ct.pending_buf[ct.l_buf+ut],ut++,rt===0?_t(ct,nt,pt):(_t(ct,(ht=P[nt])+w+1,pt),(St=S[ht])!==0&&et(ct,nt-=H[ht],St),_t(ct,ht=q(--rt),Dt),(St=E[ht])!==0&&et(ct,rt-=gt[ht],St)),ut<ct.last_lit;);_t(ct,V,pt)}function Nt(ct,pt){var Dt,rt,nt,ht=pt.dyn_tree,St=pt.stat_desc.static_tree,ut=pt.stat_desc.has_stree,vt=pt.stat_desc.elems,ft=-1;for(ct.heap_len=0,ct.heap_max=D,Dt=0;Dt<vt;Dt++)ht[2*Dt]!==0?(ct.heap[++ct.heap_len]=ft=Dt,ct.depth[Dt]=0):ht[2*Dt+1]=0;for(;ct.heap_len<2;)ht[2*(nt=ct.heap[++ct.heap_len]=ft<2?++ft:0)]=1,ct.depth[nt]=0,ct.opt_len--,ut&&(ct.static_len-=St[2*nt+1]);for(pt.max_code=ft,Dt=ct.heap_len>>1;1<=Dt;Dt--)it(ct,ht,Dt);for(nt=vt;Dt=ct.heap[1],ct.heap[1]=ct.heap[ct.heap_len--],it(ct,ht,1),rt=ct.heap[1],ct.heap[--ct.heap_max]=Dt,ct.heap[--ct.heap_max]=rt,ht[2*nt]=ht[2*Dt]+ht[2*rt],ct.depth[nt]=(ct.depth[Dt]>=ct.depth[rt]?ct.depth[Dt]:ct.depth[rt])+1,ht[2*Dt+1]=ht[2*rt+1]=nt,ct.heap[1]=nt++,it(ct,ht,1),2<=ct.heap_len;);ct.heap[--ct.heap_max]=ct.heap[1],function(yt,Ct){var zt,Bt,re,Yt,qt,te,le=Ct.dyn_tree,ne=Ct.max_code,de=Ct.stat_desc.static_tree,Xt=Ct.stat_desc.has_stree,pe=Ct.stat_desc.extra_bits,Re=Ct.stat_desc.extra_base,je=Ct.stat_desc.max_length,ie=0;for(Yt=0;Yt<=j;Yt++)yt.bl_count[Yt]=0;for(le[2*yt.heap[yt.heap_max]+1]=0,zt=yt.heap_max+1;zt<D;zt++)je<(Yt=le[2*le[2*(Bt=yt.heap[zt])+1]+1]+1)&&(Yt=je,ie++),le[2*Bt+1]=Yt,ne<Bt||(yt.bl_count[Yt]++,qt=0,Re<=Bt&&(qt=pe[Bt-Re]),te=le[2*Bt],yt.opt_len+=te*(Yt+qt),Xt&&(yt.static_len+=te*(de[2*Bt+1]+qt)));if(ie!==0){do{for(Yt=je-1;yt.bl_count[Yt]===0;)Yt--;yt.bl_count[Yt]--,yt.bl_count[Yt+1]+=2,yt.bl_count[je]--,ie-=2}while(0<ie);for(Yt=je;Yt!==0;Yt--)for(Bt=yt.bl_count[Yt];Bt!==0;)ne<(re=yt.heap[--zt])||(le[2*re+1]!==Yt&&(yt.opt_len+=(Yt-le[2*re+1])*le[2*re],le[2*re+1]=Yt),Bt--)}}(ct,pt),st(ht,ft,ct.bl_count)}function G(ct,pt,Dt){var rt,nt,ht=-1,St=pt[1],ut=0,vt=7,ft=4;for(St===0&&(vt=138,ft=3),pt[2*(Dt+1)+1]=65535,rt=0;rt<=Dt;rt++)nt=St,St=pt[2*(rt+1)+1],++ut<vt&&nt===St||(ut<ft?ct.bl_tree[2*nt]+=ut:nt!==0?(nt!==ht&&ct.bl_tree[2*nt]++,ct.bl_tree[2*A]++):ut<=10?ct.bl_tree[2*N]++:ct.bl_tree[2*k]++,ht=nt,ft=(ut=0)===St?(vt=138,3):nt===St?(vt=6,3):(vt=7,4))}function Mt(ct,pt,Dt){var rt,nt,ht=-1,St=pt[1],ut=0,vt=7,ft=4;for(St===0&&(vt=138,ft=3),rt=0;rt<=Dt;rt++)if(nt=St,St=pt[2*(rt+1)+1],!(++ut<vt&&nt===St)){if(ut<ft)for(;_t(ct,nt,ct.bl_tree),--ut!=0;);else nt!==0?(nt!==ht&&(_t(ct,nt,ct.bl_tree),ut--),_t(ct,A,ct.bl_tree),et(ct,ut-3,2)):ut<=10?(_t(ct,N,ct.bl_tree),et(ct,ut-3,3)):(_t(ct,k,ct.bl_tree),et(ct,ut-11,7));ht=nt,ft=(ut=0)===St?(vt=138,3):nt===St?(vt=6,3):(vt=7,4)}}b(gt);var Pt=!1;function lt(ct,pt,Dt,rt){var nt,ht,St,ut;et(ct,(g<<1)+(rt?1:0),3),ht=pt,St=Dt,ut=!0,W(nt=ct),ut&&(tt(nt,St),tt(nt,~St)),p.arraySet(nt.pending_buf,nt.window,ht,St,nt.pending),nt.pending+=St}d._tr_init=function(ct){Pt||(function(){var pt,Dt,rt,nt,ht,St=new Array(j+1);for(nt=rt=0;nt<y-1;nt++)for(H[nt]=rt,pt=0;pt<1<<S[nt];pt++)P[rt++]=nt;for(P[rt-1]=nt,nt=ht=0;nt<16;nt++)for(gt[nt]=ht,pt=0;pt<1<<E[nt];pt++)B[ht++]=nt;for(ht>>=7;nt<C;nt++)for(gt[nt]=ht<<7,pt=0;pt<1<<E[nt]-7;pt++)B[256+ht++]=nt;for(Dt=0;Dt<=j;Dt++)St[Dt]=0;for(pt=0;pt<=143;)F[2*pt+1]=8,pt++,St[8]++;for(;pt<=255;)F[2*pt+1]=9,pt++,St[9]++;for(;pt<=279;)F[2*pt+1]=7,pt++,St[7]++;for(;pt<=287;)F[2*pt+1]=8,pt++,St[8]++;for(st(F,x+1,St),pt=0;pt<C;pt++)I[2*pt+1]=5,I[2*pt]=J(pt,5);Z=new bt(F,S,w+1,x,j),Y=new bt(I,E,0,C,j),dt=new bt(new Array(0),T,0,O,L)}(),Pt=!0),ct.l_desc=new Q(ct.dyn_ltree,Z),ct.d_desc=new Q(ct.dyn_dtree,Y),ct.bl_desc=new Q(ct.bl_tree,dt),ct.bi_buf=0,ct.bi_valid=0,Ot(ct)},d._tr_stored_block=lt,d._tr_flush_block=function(ct,pt,Dt,rt){var nt,ht,St=0;0<ct.level?(ct.strm.data_type===2&&(ct.strm.data_type=function(ut){var vt,ft=4093624447;for(vt=0;vt<=31;vt++,ft>>>=1)if(1&ft&&ut.dyn_ltree[2*vt]!==0)return m;if(ut.dyn_ltree[18]!==0||ut.dyn_ltree[20]!==0||ut.dyn_ltree[26]!==0)return v;for(vt=32;vt<w;vt++)if(ut.dyn_ltree[2*vt]!==0)return v;return m}(ct)),Nt(ct,ct.l_desc),Nt(ct,ct.d_desc),St=function(ut){var vt;for(G(ut,ut.dyn_ltree,ut.l_desc.max_code),G(ut,ut.dyn_dtree,ut.d_desc.max_code),Nt(ut,ut.bl_desc),vt=O-1;3<=vt&&ut.bl_tree[2*R[vt]+1]===0;vt--);return ut.opt_len+=3*(vt+1)+5+5+4,vt}(ct),nt=ct.opt_len+3+7>>>3,(ht=ct.static_len+3+7>>>3)<=nt&&(nt=ht)):nt=ht=Dt+5,Dt+4<=nt&&pt!==-1?lt(ct,pt,Dt,rt):ct.strategy===4||ht===nt?(et(ct,2+(rt?1:0),3),xt(ct,F,I)):(et(ct,4+(rt?1:0),3),function(ut,vt,ft,yt){var Ct;for(et(ut,vt-257,5),et(ut,ft-1,5),et(ut,yt-4,4),Ct=0;Ct<yt;Ct++)et(ut,ut.bl_tree[2*R[Ct]+1],3);Mt(ut,ut.dyn_ltree,vt-1),Mt(ut,ut.dyn_dtree,ft-1)}(ct,ct.l_desc.max_code+1,ct.d_desc.max_code+1,St+1),xt(ct,ct.dyn_ltree,ct.dyn_dtree)),Ot(ct),rt&&W(ct)},d._tr_tally=function(ct,pt,Dt){return ct.pending_buf[ct.d_buf+2*ct.last_lit]=pt>>>8&255,ct.pending_buf[ct.d_buf+2*ct.last_lit+1]=255&pt,ct.pending_buf[ct.l_buf+ct.last_lit]=255&Dt,ct.last_lit++,pt===0?ct.dyn_ltree[2*Dt]++:(ct.matches++,pt--,ct.dyn_ltree[2*(P[Dt]+w+1)]++,ct.dyn_dtree[2*q(pt)]++),ct.last_lit===ct.lit_bufsize-1},d._tr_align=function(ct){var pt;et(ct,2,3),_t(ct,V,F),(pt=ct).bi_valid===16?(tt(pt,pt.bi_buf),pt.bi_buf=0,pt.bi_valid=0):8<=pt.bi_valid&&(pt.pending_buf[pt.pending++]=255&pt.bi_buf,pt.bi_buf>>=8,pt.bi_valid-=8)}},{"../utils/common":41}],53:[function(f,h,d){h.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(f,h,d){(function(p){(function(m,v){if(!m.setImmediate){var b,g,y,w,x=1,C={},O=!1,D=m.document,j=Object.getPrototypeOf&&Object.getPrototypeOf(m);j=j&&j.setTimeout?j:m,b={}.toString.call(m.process)==="[object process]"?function(A){n.nextTick(function(){L(A)})}:function(){if(m.postMessage&&!m.importScripts){var A=!0,N=m.onmessage;return m.onmessage=function(){A=!1},m.postMessage("","*"),m.onmessage=N,A}}()?(w="setImmediate$"+Math.random()+"$",m.addEventListener?m.addEventListener("message",V,!1):m.attachEvent("onmessage",V),function(A){m.postMessage(w+A,"*")}):m.MessageChannel?((y=new MessageChannel).port1.onmessage=function(A){L(A.data)},function(A){y.port2.postMessage(A)}):D&&"onreadystatechange"in D.createElement("script")?(g=D.documentElement,function(A){var N=D.createElement("script");N.onreadystatechange=function(){L(A),N.onreadystatechange=null,g.removeChild(N),N=null},g.appendChild(N)}):function(A){setTimeout(L,0,A)},j.setImmediate=function(A){typeof A!="function"&&(A=new Function(""+A));for(var N=new Array(arguments.length-1),k=0;k<N.length;k++)N[k]=arguments[k+1];var S={callback:A,args:N};return C[x]=S,b(x),x++},j.clearImmediate=U}function U(A){delete C[A]}function L(A){if(O)setTimeout(L,0,A);else{var N=C[A];if(N){O=!0;try{(function(k){var S=k.callback,E=k.args;switch(E.length){case 0:S();break;case 1:S(E[0]);break;case 2:S(E[0],E[1]);break;case 3:S(E[0],E[1],E[2]);break;default:S.apply(v,E)}})(N)}finally{U(A),O=!1}}}}function V(A){A.source===m&&typeof A.data=="string"&&A.data.indexOf(w)===0&&L(+A.data.slice(w.length))}})(typeof self=="undefined"?p===void 0?this:p:self)}).call(this,a!==void 0?a:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})}).call(this)}).call(this,t("_process"),ur!==void 0?ur:typeof self!="undefined"?self:typeof window!="undefined"?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],t("timers").setImmediate)},{_process:467,buffer:220,timers:523}],442:[function(t,r,e){(function(n){(function(){var a=1/0,o="[object Symbol]",s=/[\\^$.*+?()[\]{}|]/g,i=RegExp(s.source),c=typeof n=="object"&&n&&n.Object===Object&&n,l=typeof self=="object"&&self&&self.Object===Object&&self,u=c||l||Function("return this")(),f=Object.prototype.toString,h=u.Symbol,d=h?h.prototype:void 0,p=d?d.toString:void 0;function m(w){if(typeof w=="string")return w;if(b(w))return p?p.call(w):"";var x=w+"";return x=="0"&&1/w==-a?"-0":x}function v(w){return!!w&&typeof w=="object"}function b(w){return typeof w=="symbol"||v(w)&&f.call(w)==o}function g(w){return w==null?"":m(w)}function y(w){return(w=g(w))&&i.test(w)?w.replace(s,"\\$&"):w}r.exports=y}).call(this)}).call(this,ur!==void 0?ur:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],443:[function(t,r,e){(function(n){(function(){var a=200,o="Expected a function",s="__lodash_hash_undefined__",i=1,c=2,l=1/0,u=9007199254740991,f="[object Arguments]",h="[object Array]",d="[object Boolean]",p="[object Date]",m="[object Error]",v="[object Function]",b="[object GeneratorFunction]",g="[object Map]",y="[object Number]",w="[object Object]",x="[object Promise]",C="[object RegExp]",O="[object Set]",D="[object String]",j="[object Symbol]",U="[object WeakMap]",L="[object ArrayBuffer]",V="[object DataView]",A="[object Float64Array]",N="[object Int8Array]",k="[object Int16Array]",S="[object Int32Array]",E="[object Uint8Array]",T="[object Uint8ClampedArray]",R="[object Uint16Array]",F="[object Uint32Array]",I=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,B=/^\w*$/,P=/^\./,H=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z=/[\\^$.*+?()[\]{}|]/g,Y=/\\(\\)?/g,dt=/^\[object .+?Constructor\]$/,gt=/^(?:0|[1-9]\d*)$/,bt={};bt["[object Float32Array]"]=bt[A]=bt[N]=bt[k]=bt[S]=bt[E]=bt[T]=bt[R]=bt[F]=!0,bt[f]=bt[h]=bt[L]=bt[d]=bt[V]=bt[p]=bt[m]=bt[v]=bt[g]=bt[y]=bt[w]=bt[C]=bt[O]=bt[D]=bt[U]=!1;var Q=typeof n=="object"&&n&&n.Object===Object&&n,q=typeof self=="object"&&self&&self.Object===Object&&self,tt=Q||q||Function("return this")(),et=typeof e=="object"&&e&&!e.nodeType&&e,_t=et&&typeof r=="object"&&r&&!r.nodeType&&r,J=_t&&_t.exports===et&&Q.process,st=function(){try{return J&&J.binding("util")}catch(ot){}}(),Ot=st&&st.isTypedArray;function W(ot,Et,$t,he){for(var Ee=-1,Ie=ot?ot.length:0;++Ee<Ie;){var vr=ot[Ee];Et(he,vr,$t(vr),ot)}return he}function X(ot,Et){for(var $t=-1,he=ot?ot.length:0;++$t<he;)if(Et(ot[$t],$t,ot))return!0;return!1}function it(ot){return function(Et){return Et==null?void 0:Et[ot]}}function xt(ot,Et){for(var $t=-1,he=Array(ot);++$t<ot;)he[$t]=Et($t);return he}function Nt(ot){return function(Et){return ot(Et)}}function G(ot,Et){return ot==null?void 0:ot[Et]}function Mt(ot){var Et=!1;if(ot!=null&&typeof ot.toString!="function")try{Et=!!(ot+"")}catch($t){}return Et}function Pt(ot){var Et=-1,$t=Array(ot.size);return ot.forEach(function(he,Ee){$t[++Et]=[Ee,he]}),$t}function lt(ot,Et){return function($t){return ot(Et($t))}}function ct(ot){var Et=-1,$t=Array(ot.size);return ot.forEach(function(he){$t[++Et]=he}),$t}var pt,Dt=Array.prototype,rt=Function.prototype,nt=Object.prototype,ht=tt["__core-js_shared__"],St=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"",ut=rt.toString,vt=nt.hasOwnProperty,ft=nt.toString,yt=RegExp("^"+ut.call(vt).replace(Z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ct=tt.Symbol,zt=tt.Uint8Array,Bt=nt.propertyIsEnumerable,re=Dt.splice,Yt=lt(Object.keys,Object),qt=ci(tt,"DataView"),te=ci(tt,"Map"),le=ci(tt,"Promise"),ne=ci(tt,"Set"),de=ci(tt,"WeakMap"),Xt=ci(Object,"create"),pe=Lt(qt),Re=Lt(te),je=Lt(le),ie=Lt(ne),xe=Lt(de),ye=Ct?Ct.prototype:void 0,Zt=ye?ye.valueOf:void 0,Te=ye?ye.toString:void 0;function Se(ot){var Et=-1,$t=ot?ot.length:0;for(this.clear();++Et<$t;){var he=ot[Et];this.set(he[0],he[1])}}function Ae(){this.__data__=Xt?Xt(null):{}}function Pe(ot){return this.has(ot)&&delete this.__data__[ot]}function He(ot){var Et=this.__data__;if(Xt){var $t=Et[ot];return $t===s?void 0:$t}return vt.call(Et,ot)?Et[ot]:void 0}function fe(ot){var Et=this.__data__;return Xt?Et[ot]!==void 0:vt.call(Et,ot)}function Be(ot,Et){return this.__data__[ot]=Xt&&Et===void 0?s:Et,this}function ze(ot){var Et=-1,$t=ot?ot.length:0;for(this.clear();++Et<$t;){var he=ot[Et];this.set(he[0],he[1])}}function qe(){this.__data__=[]}function or(ot){var Et=this.__data__,$t=Yr(Et,ot);return!($t<0||($t==Et.length-1?Et.pop():re.call(Et,$t,1),0))}function wt(ot){var Et=this.__data__,$t=Yr(Et,ot);return $t<0?void 0:Et[$t][1]}function Ft(ot){return Yr(this.__data__,ot)>-1}function Ut(ot,Et){var $t=this.__data__,he=Yr($t,ot);return he<0?$t.push([ot,Et]):$t[he][1]=Et,this}function ve(ot){var Et=-1,$t=ot?ot.length:0;for(this.clear();++Et<$t;){var he=ot[Et];this.set(he[0],he[1])}}function De(){this.__data__={hash:new Se,map:new(te||ze),string:new Se}}function yr(ot){return Ua(this,ot).delete(ot)}function Hr(ot){return Ua(this,ot).get(ot)}function Qr(ot){return Ua(this,ot).has(ot)}function Mn(ot,Et){return Ua(this,ot).set(ot,Et),this}function bn(ot){var Et=-1,$t=ot?ot.length:0;for(this.__data__=new ve;++Et<$t;)this.add(ot[Et])}function on(ot){return this.__data__.set(ot,s),this}function yn(ot){return this.__data__.has(ot)}function Je(ot){this.__data__=new ze(ot)}function Ke(){this.__data__=new ze}function ai(ot){return this.__data__.delete(ot)}function wn(ot){return this.__data__.get(ot)}function si(ot){return this.__data__.has(ot)}function Wi(ot,Et){var $t=this.__data__;if($t instanceof ze){var he=$t.__data__;if(!te||he.length<a-1)return he.push([ot,Et]),this;$t=this.__data__=new ve(he)}return $t.set(ot,Et),this}function Lc(ot,Et){var $t=Sr(ot)||er(ot)?xt(ot.length,String):[],he=$t.length,Ee=!!he;for(var Ie in ot)!Et&&!vt.call(ot,Ie)||Ee&&(Ie=="length"||ms(Ie,he))||$t.push(Ie);return $t}function Yr(ot,Et){for(var $t=ot.length;$t--;)if(Or(ot[$t][0],Et))return $t;return-1}function ka(ot,Et,$t,he){return sa(ot,function(Ee,Ie,vr){Et(he,Ee,$t(Ee),vr)}),he}Se.prototype.clear=Ae,Se.prototype.delete=Pe,Se.prototype.get=He,Se.prototype.has=fe,Se.prototype.set=Be,ze.prototype.clear=qe,ze.prototype.delete=or,ze.prototype.get=wt,ze.prototype.has=Ft,ze.prototype.set=Ut,ve.prototype.clear=De,ve.prototype.delete=yr,ve.prototype.get=Hr,ve.prototype.has=Qr,ve.prototype.set=Mn,bn.prototype.add=bn.prototype.push=on,bn.prototype.has=yn,Je.prototype.clear=Ke,Je.prototype.delete=ai,Je.prototype.get=wn,Je.prototype.has=si,Je.prototype.set=Wi;var sa=$i(hs),xa=Ys();function hs(ot,Et){return ot&&xa(ot,Et,Jt)}function On(ot,Et){for(var $t=0,he=(Et=ca(Et,ot)?[Et]:ps(Et)).length;ot!=null&&$t<he;)ot=ot[Tt(Et[$t++])];return $t&&$t==he?ot:void 0}function Oo(ot){return ft.call(ot)}function Io(ot,Et){return ot!=null&&Et in Object(ot)}function ds(ot,Et,$t,he,Ee){return ot===Et||(ot==null||Et==null||!kn(ot)&&!Kr(Et)?ot!=ot&&Et!=Et:No(ot,Et,ds,$t,he,Ee))}function No(ot,Et,$t,he,Ee,Ie){var vr=Sr(ot),hr=Sr(Et),Ur=h,en=h;vr||(Ur=(Ur=gi(ot))==f?w:Ur),hr||(en=(en=gi(Et))==f?w:en);var zr=Ur==w&&!Mt(ot),zn=en==w&&!Mt(Et),xn=Ur==en;if(xn&&!zr)return Ie||(Ie=new Je),vr||Bn(ot)?jo(ot,Et,$t,he,Ee,Ie):Ri(ot,Et,Ur,$t,he,Ee,Ie);if(!(Ee&c)){var ir=zr&&vt.call(ot,"__wrapped__"),bi=zn&&vt.call(Et,"__wrapped__");if(ir||bi){var qi=ir?ot.value():ot,Gi=bi?Et.value():Et;return Ie||(Ie=new Je),$t(qi,Gi,he,Ee,Ie)}}return!!xn&&(Ie||(Ie=new Je),Lo(ot,Et,$t,he,Ee,Ie))}function Gs(ot,Et,$t,he){var Ee=$t.length,Ie=Ee,vr=!he;if(ot==null)return!Ie;for(ot=Object(ot);Ee--;){var hr=$t[Ee];if(vr&&hr[2]?hr[1]!==ot[hr[0]]:!(hr[0]in ot))return!1}for(;++Ee<Ie;){var Ur=(hr=$t[Ee])[0],en=ot[Ur],zr=hr[1];if(vr&&hr[2]){if(en===void 0&&!(Ur in ot))return!1}else{var zn=new Je;if(he)var xn=he(en,zr,Ur,ot,Et,zn);if(!(xn===void 0?ds(zr,en,he,i|c,zn):xn))return!1}}return!0}function Po(ot){return!(!kn(ot)||Ta(ot))&&(Rr(ot)||Mt(ot)?yt:dt).test(Lt(ot))}function jn(ot){return Kr(ot)&&Cr(ot.length)&&!!bt[ft.call(ot)]}function Do(ot){return typeof ot=="function"?ot:ot==null?ue:typeof ot=="object"?Sr(ot)?Fo(ot[0],ot[1]):Sa(ot):Me(ot)}function _n(ot){if(!gs(ot))return Yt(ot);var Et=[];for(var $t in Object(ot))vt.call(ot,$t)&&$t!="constructor"&&Et.push($t);return Et}function Sa(ot){var Et=oa(ot);return Et.length==1&&Et[0][2]?Ks(Et[0][0],Et[0][1]):function($t){return $t===ot||Gs($t,ot,Et)}}function Fo(ot,Et){return ca(ot)&&bs(Et)?Ks(Tt(ot),Et):function($t){var he=Jn($t,ot);return he===void 0&&he===Et?Vt($t,ot):ds(Et,he,void 0,i|c)}}function Vi(ot){return function(Et){return On(Et,ot)}}function oi(ot){if(typeof ot=="string")return ot;if(jr(ot))return Te?Te.call(ot):"";var Et=ot+"";return Et=="0"&&1/ot==-l?"-0":Et}function ps(ot){return Sr(ot)?ot:Ln(ot)}function Br(ot,Et){return function($t,he){var Ee=Sr($t)?W:ka,Ie=Et?Et():{};return Ee($t,ot,Do(he),Ie)}}function $i(ot,Et){return function($t,he){if($t==null)return $t;if(!Fr($t))return ot($t,he);for(var Ee=$t.length,Ie=Et?Ee:-1,vr=Object($t);(Et?Ie--:++Ie<Ee)&&he(vr[Ie],Ie,vr)!==!1;);return $t}}function Ys(ot){return function(Et,$t,he){for(var Ee=-1,Ie=Object(Et),vr=he(Et),hr=vr.length;hr--;){var Ur=vr[ot?hr:++Ee];if($t(Ie[Ur],Ur,Ie)===!1)break}return Et}}function jo(ot,Et,$t,he,Ee,Ie){var vr=Ee&c,hr=ot.length,Ur=Et.length;if(hr!=Ur&&!(vr&&Ur>hr))return!1;var en=Ie.get(ot);if(en&&Ie.get(Et))return en==Et;var zr=-1,zn=!0,xn=Ee&i?new bn:void 0;for(Ie.set(ot,Et),Ie.set(Et,ot);++zr<hr;){var ir=ot[zr],bi=Et[zr];if(he)var qi=vr?he(bi,ir,zr,Et,ot,Ie):he(ir,bi,zr,ot,Et,Ie);if(qi!==void 0){if(qi)continue;zn=!1;break}if(xn){if(!X(Et,function(Gi,Ha){if(!xn.has(Ha)&&(ir===Gi||$t(ir,Gi,he,Ee,Ie)))return xn.add(Ha)})){zn=!1;break}}else if(ir!==bi&&!$t(ir,bi,he,Ee,Ie)){zn=!1;break}}return Ie.delete(ot),Ie.delete(Et),zn}function Ri(ot,Et,$t,he,Ee,Ie,vr){switch($t){case V:if(ot.byteLength!=Et.byteLength||ot.byteOffset!=Et.byteOffset)return!1;ot=ot.buffer,Et=Et.buffer;case L:return!(ot.byteLength!=Et.byteLength||!he(new zt(ot),new zt(Et)));case d:case p:case y:return Or(+ot,+Et);case m:return ot.name==Et.name&&ot.message==Et.message;case C:case D:return ot==Et+"";case g:var hr=Pt;case O:var Ur=Ie&c;if(hr||(hr=ct),ot.size!=Et.size&&!Ur)return!1;var en=vr.get(ot);if(en)return en==Et;Ie|=i,vr.set(ot,Et);var zr=jo(hr(ot),hr(Et),he,Ee,Ie,vr);return vr.delete(ot),zr;case j:if(Zt)return Zt.call(ot)==Zt.call(Et)}return!1}function Lo(ot,Et,$t,he,Ee,Ie){var vr=Ee&c,hr=Jt(ot),Ur=hr.length;if(Ur!=Jt(Et).length&&!vr)return!1;for(var en=Ur;en--;){var zr=hr[en];if(!(vr?zr in Et:vt.call(Et,zr)))return!1}var zn=Ie.get(ot);if(zn&&Ie.get(Et))return zn==Et;var xn=!0;Ie.set(ot,Et),Ie.set(Et,ot);for(var ir=vr;++en<Ur;){var bi=ot[zr=hr[en]],qi=Et[zr];if(he)var Gi=vr?he(qi,bi,zr,Et,ot,Ie):he(bi,qi,zr,ot,Et,Ie);if(!(Gi===void 0?bi===qi||$t(bi,qi,he,Ee,Ie):Gi)){xn=!1;break}ir||(ir=zr=="constructor")}if(xn&&!ir){var Ha=ot.constructor,zo=Et.constructor;Ha==zo||!("constructor"in ot)||!("constructor"in Et)||typeof Ha=="function"&&Ha instanceof Ha&&typeof zo=="function"&&zo instanceof zo||(xn=!1)}return Ie.delete(ot),Ie.delete(Et),xn}function Ua(ot,Et){var $t=ot.__data__;return vs(Et)?$t[typeof Et=="string"?"string":"hash"]:$t.map}function oa(ot){for(var Et=Jt(ot),$t=Et.length;$t--;){var he=Et[$t],Ee=ot[he];Et[$t]=[he,Ee,bs(Ee)]}return Et}function ci(ot,Et){var $t=G(ot,Et);return Po($t)?$t:void 0}var gi=Oo;function Bo(ot,Et,$t){for(var he,Ee=-1,Ie=(Et=ca(Et,ot)?[Et]:ps(Et)).length;++Ee<Ie;){var vr=Tt(Et[Ee]);if(!(he=ot!=null&&$t(ot,vr)))break;ot=ot[vr]}return he||!!(Ie=ot?ot.length:0)&&Cr(Ie)&&ms(vr,Ie)&&(Sr(ot)||er(ot))}function ms(ot,Et){return!!(Et=Et==null?u:Et)&&(typeof ot=="number"||gt.test(ot))&&ot>-1&&ot%1==0&&ot<Et}function ca(ot,Et){if(Sr(ot))return!1;var $t=typeof ot;return!($t!="number"&&$t!="symbol"&&$t!="boolean"&&ot!=null&&!jr(ot))||B.test(ot)||!I.test(ot)||Et!=null&&ot in Object(Et)}function vs(ot){var Et=typeof ot;return Et=="string"||Et=="number"||Et=="symbol"||Et=="boolean"?ot!=="__proto__":ot===null}function Ta(ot){return!!St&&St in ot}function gs(ot){var Et=ot&&ot.constructor;return ot===(typeof Et=="function"&&Et.prototype||nt)}function bs(ot){return ot==ot&&!kn(ot)}function Ks(ot,Et){return function($t){return $t!=null&&$t[ot]===Et&&(Et!==void 0||ot in Object($t))}}(qt&&gi(new qt(new ArrayBuffer(1)))!=V||te&&gi(new te)!=g||le&&gi(le.resolve())!=x||ne&&gi(new ne)!=O||de&&gi(new de)!=U)&&(gi=function(ot){var Et=ft.call(ot),$t=Et==w?ot.constructor:void 0,he=$t?Lt($t):void 0;if(he)switch(he){case pe:return V;case Re:return g;case je:return x;case ie:return O;case xe:return U}return Et});var Ln=Oe(function(ot){ot=Mi(ot);var Et=[];return P.test(ot)&&Et.push(""),ot.replace(H,function($t,he,Ee,Ie){Et.push(Ee?Ie.replace(Y,"$1"):he||$t)}),Et});function Tt(ot){if(typeof ot=="string"||jr(ot))return ot;var Et=ot+"";return Et=="0"&&1/ot==-l?"-0":Et}function Lt(ot){if(ot!=null){try{return ut.call(ot)}catch(Et){}try{return ot+""}catch(Et){}}return""}var se=Br(function(ot,Et,$t){vt.call(ot,$t)?ot[$t].push(Et):ot[$t]=[Et]});function Oe(ot,Et){if(typeof ot!="function"||Et&&typeof Et!="function")throw new TypeError(o);var $t=function he(){var Ee=arguments,Ie=Et?Et.apply(this,Ee):Ee[0],vr=he.cache;if(vr.has(Ie))return vr.get(Ie);var hr=ot.apply(this,Ee);return he.cache=vr.set(Ie,hr),hr};return $t.cache=new(Oe.Cache||ve),$t}function Or(ot,Et){return ot===Et||ot!=ot&&Et!=Et}function er(ot){return tn(ot)&&vt.call(ot,"callee")&&(!Bt.call(ot,"callee")||ft.call(ot)==f)}Oe.Cache=ve;var Sr=Array.isArray;function Fr(ot){return ot!=null&&Cr(ot.length)&&!Rr(ot)}function tn(ot){return Kr(ot)&&Fr(ot)}function Rr(ot){var Et=kn(ot)?ft.call(ot):"";return Et==v||Et==b}function Cr(ot){return typeof ot=="number"&&ot>-1&&ot%1==0&&ot<=u}function kn(ot){var Et=typeof ot;return!!ot&&(Et=="object"||Et=="function")}function Kr(ot){return!!ot&&typeof ot=="object"}function jr(ot){return typeof ot=="symbol"||Kr(ot)&&ft.call(ot)==j}var Bn=Ot?Nt(Ot):jn;function Mi(ot){return ot==null?"":oi(ot)}function Jn(ot,Et,$t){var he=ot==null?void 0:On(ot,Et);return he===void 0?$t:he}function Vt(ot,Et){return ot!=null&&Bo(ot,Et,Io)}function Jt(ot){return Fr(ot)?Lc(ot):_n(ot)}function ue(ot){return ot}function Me(ot){return ca(ot)?it(Tt(ot)):Vi(ot)}r.exports=se}).call(this)}).call(this,ur!==void 0?ur:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],444:[function(t,r,e){var n="[object Boolean]",a=Object.prototype.toString;function o(i){return i===!0||i===!1||s(i)&&a.call(i)==n}function s(i){return!!i&&typeof i=="object"}r.exports=o},{}],445:[function(t,r,e){(function(n){(function(){var a=200,o="__lodash_hash_undefined__",s=1,i=2,c=9007199254740991,l="[object Arguments]",u="[object Array]",f="[object AsyncFunction]",h="[object Boolean]",d="[object Date]",p="[object Error]",m="[object Function]",v="[object GeneratorFunction]",b="[object Map]",g="[object Number]",y="[object Null]",w="[object Object]",x="[object Promise]",C="[object Proxy]",O="[object RegExp]",D="[object Set]",j="[object String]",U="[object Symbol]",L="[object Undefined]",V="[object WeakMap]",A="[object ArrayBuffer]",N="[object DataView]",k="[object Float64Array]",S="[object Int8Array]",E="[object Int16Array]",T="[object Int32Array]",R="[object Uint8Array]",F="[object Uint8ClampedArray]",I="[object Uint16Array]",B="[object Uint32Array]",P=/[\\^$.*+?()[\]{}|]/g,H=/^\[object .+?Constructor\]$/,Z=/^(?:0|[1-9]\d*)$/,Y={};Y["[object Float32Array]"]=Y[k]=Y[S]=Y[E]=Y[T]=Y[R]=Y[F]=Y[I]=Y[B]=!0,Y[l]=Y[u]=Y[A]=Y[h]=Y[N]=Y[d]=Y[p]=Y[m]=Y[b]=Y[g]=Y[w]=Y[O]=Y[D]=Y[j]=Y[V]=!1;var dt=typeof n=="object"&&n&&n.Object===Object&&n,gt=typeof self=="object"&&self&&self.Object===Object&&self,bt=dt||gt||Function("return this")(),Q=typeof e=="object"&&e&&!e.nodeType&&e,q=Q&&typeof r=="object"&&r&&!r.nodeType&&r,tt=q&&q.exports===Q,et=tt&&dt.process,_t=function(){try{return et&&et.binding&&et.binding("util")}catch(Tt){}}(),J=_t&&_t.isTypedArray;function st(Tt,Lt){for(var se=-1,Oe=Tt==null?0:Tt.length,Or=0,er=[];++se<Oe;){var Sr=Tt[se];Lt(Sr,se,Tt)&&(er[Or++]=Sr)}return er}function Ot(Tt,Lt){for(var se=-1,Oe=Lt.length,Or=Tt.length;++se<Oe;)Tt[Or+se]=Lt[se];return Tt}function W(Tt,Lt){for(var se=-1,Oe=Tt==null?0:Tt.length;++se<Oe;)if(Lt(Tt[se],se,Tt))return!0;return!1}function X(Tt,Lt){for(var se=-1,Oe=Array(Tt);++se<Tt;)Oe[se]=Lt(se);return Oe}function it(Tt){return function(Lt){return Tt(Lt)}}function xt(Tt,Lt){return Tt.has(Lt)}function Nt(Tt,Lt){return Tt==null?void 0:Tt[Lt]}function G(Tt){var Lt=-1,se=Array(Tt.size);return Tt.forEach(function(Oe,Or){se[++Lt]=[Or,Oe]}),se}function Mt(Tt,Lt){return function(se){return Tt(Lt(se))}}function Pt(Tt){var Lt=-1,se=Array(Tt.size);return Tt.forEach(function(Oe){se[++Lt]=Oe}),se}var lt,ct=Array.prototype,pt=Function.prototype,Dt=Object.prototype,rt=bt["__core-js_shared__"],nt=pt.toString,ht=Dt.hasOwnProperty,St=(lt=/[^.]+$/.exec(rt&&rt.keys&&rt.keys.IE_PROTO||""))?"Symbol(src)_1."+lt:"",ut=Dt.toString,vt=RegExp("^"+nt.call(ht).replace(P,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ft=tt?bt.Buffer:void 0,yt=bt.Symbol,Ct=bt.Uint8Array,zt=Dt.propertyIsEnumerable,Bt=ct.splice,re=yt?yt.toStringTag:void 0,Yt=Object.getOwnPropertySymbols,qt=ft?ft.isBuffer:void 0,te=Mt(Object.keys,Object),le=Sa(bt,"DataView"),ne=Sa(bt,"Map"),de=Sa(bt,"Promise"),Xt=Sa(bt,"Set"),pe=Sa(bt,"WeakMap"),Re=Sa(Object,"create"),je=Ri(le),ie=Ri(ne),xe=Ri(de),ye=Ri(Xt),Zt=Ri(pe),Te=yt?yt.prototype:void 0,Se=Te?Te.valueOf:void 0;function Ae(Tt){var Lt=-1,se=Tt==null?0:Tt.length;for(this.clear();++Lt<se;){var Oe=Tt[Lt];this.set(Oe[0],Oe[1])}}function Pe(){this.__data__=Re?Re(null):{},this.size=0}function He(Tt){var Lt=this.has(Tt)&&delete this.__data__[Tt];return this.size-=Lt?1:0,Lt}function fe(Tt){var Lt=this.__data__;if(Re){var se=Lt[Tt];return se===o?void 0:se}return ht.call(Lt,Tt)?Lt[Tt]:void 0}function Be(Tt){var Lt=this.__data__;return Re?Lt[Tt]!==void 0:ht.call(Lt,Tt)}function ze(Tt,Lt){var se=this.__data__;return this.size+=this.has(Tt)?0:1,se[Tt]=Re&&Lt===void 0?o:Lt,this}function qe(Tt){var Lt=-1,se=Tt==null?0:Tt.length;for(this.clear();++Lt<se;){var Oe=Tt[Lt];this.set(Oe[0],Oe[1])}}function or(){this.__data__=[],this.size=0}function wt(Tt){var Lt=this.__data__,se=ka(Lt,Tt);return!(se<0||(se==Lt.length-1?Lt.pop():Bt.call(Lt,se,1),--this.size,0))}function Ft(Tt){var Lt=this.__data__,se=ka(Lt,Tt);return se<0?void 0:Lt[se][1]}function Ut(Tt){return ka(this.__data__,Tt)>-1}function ve(Tt,Lt){var se=this.__data__,Oe=ka(se,Tt);return Oe<0?(++this.size,se.push([Tt,Lt])):se[Oe][1]=Lt,this}function De(Tt){var Lt=-1,se=Tt==null?0:Tt.length;for(this.clear();++Lt<se;){var Oe=Tt[Lt];this.set(Oe[0],Oe[1])}}function yr(){this.size=0,this.__data__={hash:new Ae,map:new(ne||qe),string:new Ae}}function Hr(Tt){var Lt=_n(this,Tt).delete(Tt);return this.size-=Lt?1:0,Lt}function Qr(Tt){return _n(this,Tt).get(Tt)}function Mn(Tt){return _n(this,Tt).has(Tt)}function bn(Tt,Lt){var se=_n(this,Tt),Oe=se.size;return se.set(Tt,Lt),this.size+=se.size==Oe?0:1,this}function on(Tt){var Lt=-1,se=Tt==null?0:Tt.length;for(this.__data__=new De;++Lt<se;)this.add(Tt[Lt])}function yn(Tt){return this.__data__.set(Tt,o),this}function Je(Tt){return this.__data__.has(Tt)}function Ke(Tt){var Lt=this.__data__=new qe(Tt);this.size=Lt.size}function ai(){this.__data__=new qe,this.size=0}function wn(Tt){var Lt=this.__data__,se=Lt.delete(Tt);return this.size=Lt.size,se}function si(Tt){return this.__data__.get(Tt)}function Wi(Tt){return this.__data__.has(Tt)}function Lc(Tt,Lt){var se=this.__data__;if(se instanceof qe){var Oe=se.__data__;if(!ne||Oe.length<a-1)return Oe.push([Tt,Lt]),this.size=++se.size,this;se=this.__data__=new De(Oe)}return se.set(Tt,Lt),this.size=se.size,this}function Yr(Tt,Lt){var se=oa(Tt),Oe=!se&&Ua(Tt),Or=!se&&!Oe&&gi(Tt),er=!se&&!Oe&&!Or&&gs(Tt),Sr=se||Oe||Or||er,Fr=Sr?X(Tt.length,String):[],tn=Fr.length;for(var Rr in Tt)!Lt&&!ht.call(Tt,Rr)||Sr&&(Rr=="length"||Or&&(Rr=="offset"||Rr=="parent")||er&&(Rr=="buffer"||Rr=="byteLength"||Rr=="byteOffset")||ps(Rr,tn))||Fr.push(Rr);return Fr}function ka(Tt,Lt){for(var se=Tt.length;se--;)if(Lo(Tt[se][0],Lt))return se;return-1}function sa(Tt,Lt,se){var Oe=Lt(Tt);return oa(Tt)?Oe:Ot(Oe,se(Tt))}function xa(Tt){return Tt==null?Tt===void 0?L:y:re&&re in Object(Tt)?Fo(Tt):jo(Tt)}function hs(Tt){return Ta(Tt)&&xa(Tt)==l}function On(Tt,Lt,se,Oe,Or){return Tt===Lt||(Tt==null||Lt==null||!Ta(Tt)&&!Ta(Lt)?Tt!=Tt&&Lt!=Lt:Oo(Tt,Lt,se,Oe,On,Or))}function Oo(Tt,Lt,se,Oe,Or,er){var Sr=oa(Tt),Fr=oa(Lt),tn=Sr?u:oi(Tt),Rr=Fr?u:oi(Lt),Cr=(tn=tn==l?w:tn)==w,kn=(Rr=Rr==l?w:Rr)==w,Kr=tn==Rr;if(Kr&&gi(Tt)){if(!gi(Lt))return!1;Sr=!0,Cr=!1}if(Kr&&!Cr)return er||(er=new Ke),Sr||gs(Tt)?Gs(Tt,Lt,se,Oe,Or,er):Po(Tt,Lt,tn,se,Oe,Or,er);if(!(se&s)){var jr=Cr&&ht.call(Tt,"__wrapped__"),Bn=kn&&ht.call(Lt,"__wrapped__");if(jr||Bn){var Mi=jr?Tt.value():Tt,Jn=Bn?Lt.value():Lt;return er||(er=new Ke),Or(Mi,Jn,se,Oe,er)}}return!!Kr&&(er||(er=new Ke),jn(Tt,Lt,se,Oe,Or,er))}function Io(Tt){return!(!vs(Tt)||$i(Tt))&&(ms(Tt)?vt:H).test(Ri(Tt))}function ds(Tt){return Ta(Tt)&&ca(Tt.length)&&!!Y[xa(Tt)]}function No(Tt){if(!Ys(Tt))return te(Tt);var Lt=[];for(var se in Object(Tt))ht.call(Tt,se)&&se!="constructor"&&Lt.push(se);return Lt}function Gs(Tt,Lt,se,Oe,Or,er){var Sr=se&s,Fr=Tt.length,tn=Lt.length;if(Fr!=tn&&!(Sr&&tn>Fr))return!1;var Rr=er.get(Tt);if(Rr&&er.get(Lt))return Rr==Lt;var Cr=-1,kn=!0,Kr=se&i?new on:void 0;for(er.set(Tt,Lt),er.set(Lt,Tt);++Cr<Fr;){var jr=Tt[Cr],Bn=Lt[Cr];if(Oe)var Mi=Sr?Oe(Bn,jr,Cr,Lt,Tt,er):Oe(jr,Bn,Cr,Tt,Lt,er);if(Mi!==void 0){if(Mi)continue;kn=!1;break}if(Kr){if(!W(Lt,function(Jn,Vt){if(!xt(Kr,Vt)&&(jr===Jn||Or(jr,Jn,se,Oe,er)))return Kr.push(Vt)})){kn=!1;break}}else if(jr!==Bn&&!Or(jr,Bn,se,Oe,er)){kn=!1;break}}return er.delete(Tt),er.delete(Lt),kn}function Po(Tt,Lt,se,Oe,Or,er,Sr){switch(se){case N:if(Tt.byteLength!=Lt.byteLength||Tt.byteOffset!=Lt.byteOffset)return!1;Tt=Tt.buffer,Lt=Lt.buffer;case A:return!(Tt.byteLength!=Lt.byteLength||!er(new Ct(Tt),new Ct(Lt)));case h:case d:case g:return Lo(+Tt,+Lt);case p:return Tt.name==Lt.name&&Tt.message==Lt.message;case O:case j:return Tt==Lt+"";case b:var Fr=G;case D:var tn=Oe&s;if(Fr||(Fr=Pt),Tt.size!=Lt.size&&!tn)return!1;var Rr=Sr.get(Tt);if(Rr)return Rr==Lt;Oe|=i,Sr.set(Tt,Lt);var Cr=Gs(Fr(Tt),Fr(Lt),Oe,Or,er,Sr);return Sr.delete(Tt),Cr;case U:if(Se)return Se.call(Tt)==Se.call(Lt)}return!1}function jn(Tt,Lt,se,Oe,Or,er){var Sr=se&s,Fr=Do(Tt),tn=Fr.length;if(tn!=Do(Lt).length&&!Sr)return!1;for(var Rr=tn;Rr--;){var Cr=Fr[Rr];if(!(Sr?Cr in Lt:ht.call(Lt,Cr)))return!1}var kn=er.get(Tt);if(kn&&er.get(Lt))return kn==Lt;var Kr=!0;er.set(Tt,Lt),er.set(Lt,Tt);for(var jr=Sr;++Rr<tn;){var Bn=Tt[Cr=Fr[Rr]],Mi=Lt[Cr];if(Oe)var Jn=Sr?Oe(Mi,Bn,Cr,Lt,Tt,er):Oe(Bn,Mi,Cr,Tt,Lt,er);if(!(Jn===void 0?Bn===Mi||Or(Bn,Mi,se,Oe,er):Jn)){Kr=!1;break}jr||(jr=Cr=="constructor")}if(Kr&&!jr){var Vt=Tt.constructor,Jt=Lt.constructor;Vt==Jt||!("constructor"in Tt)||!("constructor"in Lt)||typeof Vt=="function"&&Vt instanceof Vt&&typeof Jt=="function"&&Jt instanceof Jt||(Kr=!1)}return er.delete(Tt),er.delete(Lt),Kr}function Do(Tt){return sa(Tt,bs,Vi)}function _n(Tt,Lt){var se=Tt.__data__;return Br(Lt)?se[typeof Lt=="string"?"string":"hash"]:se.map}function Sa(Tt,Lt){var se=Nt(Tt,Lt);return Io(se)?se:void 0}function Fo(Tt){var Lt=ht.call(Tt,re),se=Tt[re];try{Tt[re]=void 0;var Oe=!0}catch(er){}var Or=ut.call(Tt);return Oe&&(Lt?Tt[re]=se:delete Tt[re]),Or}Ae.prototype.clear=Pe,Ae.prototype.delete=He,Ae.prototype.get=fe,Ae.prototype.has=Be,Ae.prototype.set=ze,qe.prototype.clear=or,qe.prototype.delete=wt,qe.prototype.get=Ft,qe.prototype.has=Ut,qe.prototype.set=ve,De.prototype.clear=yr,De.prototype.delete=Hr,De.prototype.get=Qr,De.prototype.has=Mn,De.prototype.set=bn,on.prototype.add=on.prototype.push=yn,on.prototype.has=Je,Ke.prototype.clear=ai,Ke.prototype.delete=wn,Ke.prototype.get=si,Ke.prototype.has=Wi,Ke.prototype.set=Lc;var Vi=Yt?function(Tt){return Tt==null?[]:(Tt=Object(Tt),st(Yt(Tt),function(Lt){return zt.call(Tt,Lt)}))}:Ks,oi=xa;function ps(Tt,Lt){return!!(Lt=Lt==null?c:Lt)&&(typeof Tt=="number"||Z.test(Tt))&&Tt>-1&&Tt%1==0&&Tt<Lt}function Br(Tt){var Lt=typeof Tt;return Lt=="string"||Lt=="number"||Lt=="symbol"||Lt=="boolean"?Tt!=="__proto__":Tt===null}function $i(Tt){return!!St&&St in Tt}function Ys(Tt){var Lt=Tt&&Tt.constructor;return Tt===(typeof Lt=="function"&&Lt.prototype||Dt)}function jo(Tt){return ut.call(Tt)}function Ri(Tt){if(Tt!=null){try{return nt.call(Tt)}catch(Lt){}try{return Tt+""}catch(Lt){}}return""}function Lo(Tt,Lt){return Tt===Lt||Tt!=Tt&&Lt!=Lt}(le&&oi(new le(new ArrayBuffer(1)))!=N||ne&&oi(new ne)!=b||de&&oi(de.resolve())!=x||Xt&&oi(new Xt)!=D||pe&&oi(new pe)!=V)&&(oi=function(Tt){var Lt=xa(Tt),se=Lt==w?Tt.constructor:void 0,Oe=se?Ri(se):"";if(Oe)switch(Oe){case je:return N;case ie:return b;case xe:return x;case ye:return D;case Zt:return V}return Lt});var Ua=hs(function(){return arguments}())?hs:function(Tt){return Ta(Tt)&&ht.call(Tt,"callee")&&!zt.call(Tt,"callee")},oa=Array.isArray;function ci(Tt){return Tt!=null&&ca(Tt.length)&&!ms(Tt)}var gi=qt||Ln;function Bo(Tt,Lt){return On(Tt,Lt)}function ms(Tt){if(!vs(Tt))return!1;var Lt=xa(Tt);return Lt==m||Lt==v||Lt==f||Lt==C}function ca(Tt){return typeof Tt=="number"&&Tt>-1&&Tt%1==0&&Tt<=c}function vs(Tt){var Lt=typeof Tt;return Tt!=null&&(Lt=="object"||Lt=="function")}function Ta(Tt){return Tt!=null&&typeof Tt=="object"}var gs=J?it(J):ds;function bs(Tt){return ci(Tt)?Yr(Tt):No(Tt)}function Ks(){return[]}function Ln(){return!1}r.exports=Bo}).call(this)}).call(this,ur!==void 0?ur:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],446:[function(t,r,e){(function(n){(function(){var a="[object AsyncFunction]",o="[object Function]",s="[object GeneratorFunction]",i="[object Null]",c="[object Proxy]",l="[object Undefined]",u=typeof n=="object"&&n&&n.Object===Object&&n,f=typeof self=="object"&&self&&self.Object===Object&&self,h=u||f||Function("return this")(),d=Object.prototype,p=d.hasOwnProperty,m=d.toString,v=h.Symbol,b=v?v.toStringTag:void 0;function g(O){return O==null?O===void 0?l:i:b&&b in Object(O)?y(O):w(O)}function y(O){var D=p.call(O,b),j=O[b];try{O[b]=void 0;var U=!0}catch(V){}var L=m.call(O);return U&&(D?O[b]=j:delete O[b]),L}function w(O){return m.call(O)}function x(O){if(!C(O))return!1;var D=g(O);return D==o||D==s||D==a||D==c}function C(O){var D=typeof O;return O!=null&&(D=="object"||D=="function")}r.exports=x}).call(this)}).call(this,ur!==void 0?ur:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],447:[function(t,r,e){function n(a){return a==null}r.exports=n},{}],448:[function(t,r,e){function n(a){return a===void 0}r.exports=n},{}],449:[function(t,r,e){(function(n){(function(){var a=200,o="__lodash_hash_undefined__",s=1/0,i="[object Function]",c="[object GeneratorFunction]",l=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,f=typeof n=="object"&&n&&n.Object===Object&&n,h=typeof self=="object"&&self&&self.Object===Object&&self,d=f||h||Function("return this")();function p(ft,yt){return!(!ft||!ft.length)&&b(ft,yt,0)>-1}function m(ft,yt,Ct){for(var zt=-1,Bt=ft?ft.length:0;++zt<Bt;)if(Ct(yt,ft[zt]))return!0;return!1}function v(ft,yt,Ct,zt){for(var Bt=ft.length,re=Ct+(zt?1:-1);zt?re--:++re<Bt;)if(yt(ft[re],re,ft))return re;return-1}function b(ft,yt,Ct){if(yt!=yt)return v(ft,g,Ct);for(var zt=Ct-1,Bt=ft.length;++zt<Bt;)if(ft[zt]===yt)return zt;return-1}function g(ft){return ft!=ft}function y(ft,yt){return ft.has(yt)}function w(ft,yt){return ft==null?void 0:ft[yt]}function x(ft){var yt=!1;if(ft!=null&&typeof ft.toString!="function")try{yt=!!(ft+"")}catch(Ct){}return yt}function C(ft){var yt=-1,Ct=Array(ft.size);return ft.forEach(function(zt){Ct[++yt]=zt}),Ct}var O,D=Array.prototype,j=Function.prototype,U=Object.prototype,L=d["__core-js_shared__"],V=(O=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||""))?"Symbol(src)_1."+O:"",A=j.toString,N=U.hasOwnProperty,k=U.toString,S=RegExp("^"+A.call(N).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),E=D.splice,T=ct(d,"Map"),R=ct(d,"Set"),F=ct(Object,"create");function I(ft){var yt=-1,Ct=ft?ft.length:0;for(this.clear();++yt<Ct;){var zt=ft[yt];this.set(zt[0],zt[1])}}function B(){this.__data__=F?F(null):{}}function P(ft){return this.has(ft)&&delete this.__data__[ft]}function H(ft){var yt=this.__data__;if(F){var Ct=yt[ft];return Ct===o?void 0:Ct}return N.call(yt,ft)?yt[ft]:void 0}function Z(ft){var yt=this.__data__;return F?yt[ft]!==void 0:N.call(yt,ft)}function Y(ft,yt){return this.__data__[ft]=F&&yt===void 0?o:yt,this}function dt(ft){var yt=-1,Ct=ft?ft.length:0;for(this.clear();++yt<Ct;){var zt=ft[yt];this.set(zt[0],zt[1])}}function gt(){this.__data__=[]}function bt(ft){var yt=this.__data__,Ct=Nt(yt,ft);return!(Ct<0||(Ct==yt.length-1?yt.pop():E.call(yt,Ct,1),0))}function Q(ft){var yt=this.__data__,Ct=Nt(yt,ft);return Ct<0?void 0:yt[Ct][1]}function q(ft){return Nt(this.__data__,ft)>-1}function tt(ft,yt){var Ct=this.__data__,zt=Nt(Ct,ft);return zt<0?Ct.push([ft,yt]):Ct[zt][1]=yt,this}function et(ft){var yt=-1,Ct=ft?ft.length:0;for(this.clear();++yt<Ct;){var zt=ft[yt];this.set(zt[0],zt[1])}}function _t(){this.__data__={hash:new I,map:new(T||dt),string:new I}}function J(ft){return lt(this,ft).delete(ft)}function st(ft){return lt(this,ft).get(ft)}function Ot(ft){return lt(this,ft).has(ft)}function W(ft,yt){return lt(this,ft).set(ft,yt),this}function X(ft){var yt=-1,Ct=ft?ft.length:0;for(this.__data__=new et;++yt<Ct;)this.add(ft[yt])}function it(ft){return this.__data__.set(ft,o),this}function xt(ft){return this.__data__.has(ft)}function Nt(ft,yt){for(var Ct=ft.length;Ct--;)if(ht(ft[Ct][0],yt))return Ct;return-1}function G(ft){return!(!ut(ft)||Dt(ft))&&(St(ft)||x(ft)?S:u).test(rt(ft))}function Mt(ft,yt,Ct){var zt=-1,Bt=p,re=ft.length,Yt=!0,qt=[],te=qt;if(Ct)Yt=!1,Bt=m;else if(re>=a){var le=yt?null:Pt(ft);if(le)return C(le);Yt=!1,Bt=y,te=new X}else te=yt?[]:qt;t:for(;++zt<re;){var ne=ft[zt],de=yt?yt(ne):ne;if(ne=Ct||ne!==0?ne:0,Yt&&de==de){for(var Xt=te.length;Xt--;)if(te[Xt]===de)continue t;yt&&te.push(de),qt.push(ne)}else Bt(te,de,Ct)||(te!==qt&&te.push(de),qt.push(ne))}return qt}I.prototype.clear=B,I.prototype.delete=P,I.prototype.get=H,I.prototype.has=Z,I.prototype.set=Y,dt.prototype.clear=gt,dt.prototype.delete=bt,dt.prototype.get=Q,dt.prototype.has=q,dt.prototype.set=tt,et.prototype.clear=_t,et.prototype.delete=J,et.prototype.get=st,et.prototype.has=Ot,et.prototype.set=W,X.prototype.add=X.prototype.push=it,X.prototype.has=xt;var Pt=R&&1/C(new R([,-0]))[1]==s?function(ft){return new R(ft)}:vt;function lt(ft,yt){var Ct=ft.__data__;return pt(yt)?Ct[typeof yt=="string"?"string":"hash"]:Ct.map}function ct(ft,yt){var Ct=w(ft,yt);return G(Ct)?Ct:void 0}function pt(ft){var yt=typeof ft;return yt=="string"||yt=="number"||yt=="symbol"||yt=="boolean"?ft!=="__proto__":ft===null}function Dt(ft){return!!V&&V in ft}function rt(ft){if(ft!=null){try{return A.call(ft)}catch(yt){}try{return ft+""}catch(yt){}}return""}function nt(ft){return ft&&ft.length?Mt(ft):[]}function ht(ft,yt){return ft===yt||ft!=ft&&yt!=yt}function St(ft){var yt=ut(ft)?k.call(ft):"";return yt==i||yt==c}function ut(ft){var yt=typeof ft;return!!ft&&(yt=="object"||yt=="function")}function vt(){}r.exports=nt}).call(this)}).call(this,ur!==void 0?ur:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],450:[function(t,r,e){var n=t("inherits"),a=t("hash-base"),o=t("safe-buffer").Buffer,s=new Array(16);function i(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function c(d,p){return d<<p|d>>>32-p}function l(d,p,m,v,b,g,y){return c(d+(p&m|~p&v)+b+g|0,y)+p|0}function u(d,p,m,v,b,g,y){return c(d+(p&v|m&~v)+b+g|0,y)+p|0}function f(d,p,m,v,b,g,y){return c(d+(p^m^v)+b+g|0,y)+p|0}function h(d,p,m,v,b,g,y){return c(d+(m^(p|~v))+b+g|0,y)+p|0}n(i,a),i.prototype._update=function(){for(var d=s,p=0;p<16;++p)d[p]=this._block.readInt32LE(4*p);var m=this._a,v=this._b,b=this._c,g=this._d;m=l(m,v,b,g,d[0],3614090360,7),g=l(g,m,v,b,d[1],3905402710,12),b=l(b,g,m,v,d[2],606105819,17),v=l(v,b,g,m,d[3],3250441966,22),m=l(m,v,b,g,d[4],4118548399,7),g=l(g,m,v,b,d[5],1200080426,12),b=l(b,g,m,v,d[6],2821735955,17),v=l(v,b,g,m,d[7],4249261313,22),m=l(m,v,b,g,d[8],1770035416,7),g=l(g,m,v,b,d[9],2336552879,12),b=l(b,g,m,v,d[10],4294925233,17),v=l(v,b,g,m,d[11],2304563134,22),m=l(m,v,b,g,d[12],1804603682,7),g=l(g,m,v,b,d[13],4254626195,12),b=l(b,g,m,v,d[14],2792965006,17),m=u(m,v=l(v,b,g,m,d[15],1236535329,22),b,g,d[1],4129170786,5),g=u(g,m,v,b,d[6],3225465664,9),b=u(b,g,m,v,d[11],643717713,14),v=u(v,b,g,m,d[0],3921069994,20),m=u(m,v,b,g,d[5],3593408605,5),g=u(g,m,v,b,d[10],38016083,9),b=u(b,g,m,v,d[15],3634488961,14),v=u(v,b,g,m,d[4],3889429448,20),m=u(m,v,b,g,d[9],568446438,5),g=u(g,m,v,b,d[14],3275163606,9),b=u(b,g,m,v,d[3],4107603335,14),v=u(v,b,g,m,d[8],1163531501,20),m=u(m,v,b,g,d[13],2850285829,5),g=u(g,m,v,b,d[2],4243563512,9),b=u(b,g,m,v,d[7],1735328473,14),m=f(m,v=u(v,b,g,m,d[12],2368359562,20),b,g,d[5],4294588738,4),g=f(g,m,v,b,d[8],2272392833,11),b=f(b,g,m,v,d[11],1839030562,16),v=f(v,b,g,m,d[14],4259657740,23),m=f(m,v,b,g,d[1],2763975236,4),g=f(g,m,v,b,d[4],1272893353,11),b=f(b,g,m,v,d[7],4139469664,16),v=f(v,b,g,m,d[10],3200236656,23),m=f(m,v,b,g,d[13],681279174,4),g=f(g,m,v,b,d[0],3936430074,11),b=f(b,g,m,v,d[3],3572445317,16),v=f(v,b,g,m,d[6],76029189,23),m=f(m,v,b,g,d[9],3654602809,4),g=f(g,m,v,b,d[12],3873151461,11),b=f(b,g,m,v,d[15],530742520,16),m=h(m,v=f(v,b,g,m,d[2],3299628645,23),b,g,d[0],4096336452,6),g=h(g,m,v,b,d[7],1126891415,10),b=h(b,g,m,v,d[14],2878612391,15),v=h(v,b,g,m,d[5],4237533241,21),m=h(m,v,b,g,d[12],1700485571,6),g=h(g,m,v,b,d[3],2399980690,10),b=h(b,g,m,v,d[10],4293915773,15),v=h(v,b,g,m,d[1],2240044497,21),m=h(m,v,b,g,d[8],1873313359,6),g=h(g,m,v,b,d[15],4264355552,10),b=h(b,g,m,v,d[6],2734768916,15),v=h(v,b,g,m,d[13],1309151649,21),m=h(m,v,b,g,d[4],4149444226,6),g=h(g,m,v,b,d[11],3174756917,10),b=h(b,g,m,v,d[2],718787259,15),v=h(v,b,g,m,d[9],3951481745,21),this._a=this._a+m|0,this._b=this._b+v|0,this._c=this._c+b|0,this._d=this._d+g|0},i.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 d=o.allocUnsafe(16);return d.writeInt32LE(this._a,0),d.writeInt32LE(this._b,4),d.writeInt32LE(this._c,8),d.writeInt32LE(this._d,12),d},r.exports=i},{"hash-base":425,inherits:440,"safe-buffer":494}],451:[function(t,r,e){var n=t("bn.js"),a=t("brorand");function o(s){this.rand=s||new a.Rand}r.exports=o,o.create=function(s){return new o(s)},o.prototype._randbelow=function(s){var i=s.bitLength(),c=Math.ceil(i/8);do var l=new n(this.rand.generate(c));while(l.cmp(s)>=0);return l},o.prototype._randrange=function(s,i){var c=i.sub(s);return s.add(this._randbelow(c))},o.prototype.test=function(s,i,c){var l=s.bitLength(),u=n.mont(s),f=new n(1).toRed(u);i||(i=Math.max(1,l/48|0));for(var h=s.subn(1),d=0;!h.testn(d);d++);for(var p=s.shrn(d),m=h.toRed(u),v=!0;i>0;i--){var b=this._randrange(new n(2),h);c&&c(b);var g=b.toRed(u).redPow(p);if(g.cmp(f)!==0&&g.cmp(m)!==0){for(var y=1;y<d;y++){if((g=g.redSqr()).cmp(f)===0)return!1;if(g.cmp(m)===0)break}if(y===d)return!1}}return v},o.prototype.getDivisor=function(s,i){var c=s.bitLength(),l=n.mont(s),u=new n(1).toRed(l);i||(i=Math.max(1,c/48|0));for(var f=s.subn(1),h=0;!f.testn(h);h++);for(var d=s.shrn(h),p=f.toRed(l);i>0;i--){var m=this._randrange(new n(2),f),v=s.gcd(m);if(v.cmpn(1)!==0)return v;var b=m.toRed(l).redPow(d);if(b.cmp(u)!==0&&b.cmp(p)!==0){for(var g=1;g<h;g++){if((b=b.redSqr()).cmp(u)===0)return b.fromRed().subn(1).gcd(s);if(b.cmp(p)===0)break}if(g===h)return(b=b.redSqr()).fromRed().subn(1).gcd(s)}}return!1}},{"bn.js":452,brorand:187}],452:[function(t,r,e){arguments[4][184][0].apply(e,arguments)},{buffer:188,dup:184}],453:[function(t,r,e){function n(a,o){if(!a)throw new Error(o||"Assertion failed")}r.exports=n,n.equal=function(a,o,s){if(a!=o)throw new Error(s||"Assertion failed: "+a+" != "+o)}},{}],454:[function(t,r,e){var n=e;function a(i,c){if(Array.isArray(i))return i.slice();if(!i)return[];var l=[];if(typeof i!="string"){for(var u=0;u<i.length;u++)l[u]=0|i[u];return l}if(c==="hex")for((i=i.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(i="0"+i),u=0;u<i.length;u+=2)l.push(parseInt(i[u]+i[u+1],16));else for(u=0;u<i.length;u++){var f=i.charCodeAt(u),h=f>>8,d=255&f;h?l.push(h,d):l.push(d)}return l}function o(i){return i.length===1?"0"+i:i}function s(i){for(var c="",l=0;l<i.length;l++)c+=o(i[l].toString(16));return c}n.toArray=a,n.zero2=o,n.toHex=s,n.encode=function(i,c){return c==="hex"?s(i):i}},{}],455:[function(t,r,e){r.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(t,r,e){var n=t("asn1.js");e.certificate=t("./certificate");var a=n.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())});e.RSAPrivateKey=a;var o=n.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});e.RSAPublicKey=o;var s=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(i),this.key("subjectPublicKey").bitstr())});e.PublicKey=s;var i=n.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())}),c=n.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(i),this.key("subjectPrivateKey").octstr())});e.PrivateKey=c;var l=n.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())});e.EncryptedPrivateKey=l;var u=n.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())});e.DSAPrivateKey=u,e.DSAparam=n.define("DSAparam",function(){this.int()});var f=n.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(h),this.key("publicKey").optional().explicit(1).bitstr())});e.ECPrivateKey=f;var h=n.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});e.signature=n.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":457,"asn1.js":170}],457:[function(t,r,e){var n=t("asn1.js"),a=n.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),o=n.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),s=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),i=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}),c=n.define("RelativeDistinguishedName",function(){this.setof(o)}),l=n.define("RDNSequence",function(){this.seqof(c)}),u=n.define("Name",function(){this.choice({rdnSequence:this.use(l)})}),f=n.define("Validity",function(){this.seq().obj(this.key("notBefore").use(a),this.key("notAfter").use(a))}),h=n.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),d=n.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(u),this.key("validity").use(f),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(i),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(h).optional())}),p=n.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(s),this.key("signatureValue").bitstr())});r.exports=p},{"asn1.js":170}],458:[function(t,r,e){var n=/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,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,s=t("evp_bytestokey"),i=t("browserify-aes"),c=t("safe-buffer").Buffer;r.exports=function(l,u){var f,h=l.toString(),d=h.match(n);if(d){var p="aes"+d[1],m=c.from(d[2],"hex"),v=c.from(d[3].replace(/[\r\n]/g,""),"base64"),b=s(u,m.slice(0,8),parseInt(d[1],10)).key,g=[],y=i.createDecipheriv(p,b,m);g.push(y.update(v)),g.push(y.final()),f=c.concat(g)}else{var w=h.match(o);f=c.from(w[2].replace(/[\r\n]/g,""),"base64")}return{tag:h.match(a)[1],data:f}}},{"browserify-aes":191,evp_bytestokey:423,"safe-buffer":494}],459:[function(t,r,e){var n=t("./asn1"),a=t("./aesid.json"),o=t("./fixProc"),s=t("browserify-aes"),i=t("pbkdf2"),c=t("safe-buffer").Buffer;function l(f){var h;typeof f!="object"||c.isBuffer(f)||(h=f.passphrase,f=f.key),typeof f=="string"&&(f=c.from(f));var d,p,m=o(f,h),v=m.tag,b=m.data;switch(v){case"CERTIFICATE":p=n.certificate.decode(b,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(p||(p=n.PublicKey.decode(b,"der")),d=p.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(p.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return p.subjectPrivateKey=p.subjectPublicKey,{type:"ec",data:p};case"1.2.840.10040.4.1":return p.algorithm.params.pub_key=n.DSAparam.decode(p.subjectPublicKey.data,"der"),{type:"dsa",data:p.algorithm.params};default:throw new Error("unknown key id "+d)}case"ENCRYPTED PRIVATE KEY":b=u(b=n.EncryptedPrivateKey.decode(b,"der"),h);case"PRIVATE KEY":switch(d=(p=n.PrivateKey.decode(b,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(p.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:p.algorithm.curve,privateKey:n.ECPrivateKey.decode(p.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return p.algorithm.params.priv_key=n.DSAparam.decode(p.subjectPrivateKey,"der"),{type:"dsa",params:p.algorithm.params};default:throw new Error("unknown key id "+d)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(b,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(b,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(b,"der")};case"EC PRIVATE KEY":return{curve:(b=n.ECPrivateKey.decode(b,"der")).parameters.value,privateKey:b.privateKey};default:throw new Error("unknown key type "+v)}}function u(f,h){var d=f.algorithm.decrypt.kde.kdeparams.salt,p=parseInt(f.algorithm.decrypt.kde.kdeparams.iters.toString(),10),m=a[f.algorithm.decrypt.cipher.algo.join(".")],v=f.algorithm.decrypt.cipher.iv,b=f.subjectPrivateKey,g=parseInt(m.split("-")[1],10)/8,y=i.pbkdf2Sync(h,d,p,g,"sha1"),w=s.createDecipheriv(m,y,v),x=[];return x.push(w.update(b)),x.push(w.final()),c.concat(x)}r.exports=l,l.signature=n.signature},{"./aesid.json":455,"./asn1":456,"./fixProc":458,"browserify-aes":191,pbkdf2:460,"safe-buffer":494}],460:[function(t,r,e){e.pbkdf2=t("./lib/async"),e.pbkdf2Sync=t("./lib/sync")},{"./lib/async":461,"./lib/sync":464}],461:[function(t,r,e){(function(n){(function(){var a,o,s=t("safe-buffer").Buffer,i=t("./precondition"),c=t("./default-encoding"),l=t("./sync"),u=t("./to-buffer"),f=n.crypto&&n.crypto.subtle,h={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"},d=[];function p(g){if(n.process&&!n.process.browser||!f||!f.importKey||!f.deriveBits)return Promise.resolve(!1);if(d[g]!==void 0)return d[g];var y=v(a=a||s.alloc(8),a,10,128,g).then(function(){return!0}).catch(function(){return!1});return d[g]=y,y}function m(){return o||(o=n.process&&n.process.nextTick?n.process.nextTick:n.queueMicrotask?n.queueMicrotask:n.setImmediate?n.setImmediate:n.setTimeout)}function v(g,y,w,x,C){return f.importKey("raw",g,{name:"PBKDF2"},!1,["deriveBits"]).then(function(O){return f.deriveBits({name:"PBKDF2",salt:y,iterations:w,hash:{name:C}},O,x<<3)}).then(function(O){return s.from(O)})}function b(g,y){g.then(function(w){m()(function(){y(null,w)})},function(w){m()(function(){y(w)})})}r.exports=function(g,y,w,x,C,O){typeof C=="function"&&(O=C,C=void 0);var D=h[(C=C||"sha1").toLowerCase()];if(D&&typeof n.Promise=="function"){if(i(w,x),g=u(g,c,"Password"),y=u(y,c,"Salt"),typeof O!="function")throw new Error("No callback provided to pbkdf2");b(p(D).then(function(j){return j?v(g,y,w,x,D):l(g,y,w,x,C)}),O)}else m()(function(){var j;try{j=l(g,y,w,x,C)}catch(U){return O(U)}O(null,j)})}}).call(this)}).call(this,ur!==void 0?ur:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./default-encoding":462,"./precondition":463,"./sync":464,"./to-buffer":465,"safe-buffer":494}],462:[function(t,r,e){(function(n,a){(function(){var o;o=a.process&&a.process.browser?"utf-8":a.process&&a.process.version?parseInt(n.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",r.exports=o}).call(this)}).call(this,t("_process"),ur!==void 0?ur:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{_process:467}],463:[function(t,r,e){var n=Math.pow(2,30)-1;r.exports=function(a,o){if(typeof a!="number")throw new TypeError("Iterations not a number");if(a<0)throw new TypeError("Bad iterations");if(typeof o!="number")throw new TypeError("Key length not a number");if(o<0||o>n||o!=o)throw new TypeError("Bad key length")}},{}],464:[function(t,r,e){var n=t("create-hash/md5"),a=t("ripemd160"),o=t("sha.js"),s=t("safe-buffer").Buffer,i=t("./precondition"),c=t("./default-encoding"),l=t("./to-buffer"),u=s.alloc(128),f={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(m,v,b){var g=d(m),y=m==="sha512"||m==="sha384"?128:64;v.length>y?v=g(v):v.length<y&&(v=s.concat([v,u],y));for(var w=s.allocUnsafe(y+f[m]),x=s.allocUnsafe(y+f[m]),C=0;C<y;C++)w[C]=54^v[C],x[C]=92^v[C];var O=s.allocUnsafe(y+b+4);w.copy(O,0,0,y),this.ipad1=O,this.ipad2=w,this.opad=x,this.alg=m,this.blocksize=y,this.hash=g,this.size=f[m]}function d(m){function v(g){return o(m).update(g).digest()}function b(g){return new a().update(g).digest()}return m==="rmd160"||m==="ripemd160"?b:m==="md5"?n:v}function p(m,v,b,g,y){i(b,g);var w=new h(y=y||"sha1",m=l(m,c,"Password"),(v=l(v,c,"Salt")).length),x=s.allocUnsafe(g),C=s.allocUnsafe(v.length+4);v.copy(C,0,0,v.length);for(var O=0,D=f[y],j=Math.ceil(g/D),U=1;U<=j;U++){C.writeUInt32BE(U,v.length);for(var L=w.run(C,w.ipad1),V=L,A=1;A<b;A++){V=w.run(V,w.ipad2);for(var N=0;N<D;N++)L[N]^=V[N]}L.copy(x,O),O+=D}return x}h.prototype.run=function(m,v){return m.copy(v,this.blocksize),this.hash(v).copy(this.opad,this.blocksize),this.hash(this.opad)},r.exports=p},{"./default-encoding":462,"./precondition":463,"./to-buffer":465,"create-hash/md5":387,ripemd160:493,"safe-buffer":494,"sha.js":498}],465:[function(t,r,e){var n=t("safe-buffer").Buffer;r.exports=function(a,o,s){if(n.isBuffer(a))return a;if(typeof a=="string")return n.from(a,o);if(ArrayBuffer.isView(a))return n.from(a.buffer);throw new TypeError(s+" must be a string, a Buffer, a typed array or a DataView")}},{"safe-buffer":494}],466:[function(t,r,e){(function(n){(function(){function a(o,s,i,c){if(typeof o!="function")throw new TypeError('"callback" argument must be a function');var l,u,f=arguments.length;switch(f){case 0:case 1:return n.nextTick(o);case 2:return n.nextTick(function(){o.call(null,s)});case 3:return n.nextTick(function(){o.call(null,s,i)});case 4:return n.nextTick(function(){o.call(null,s,i,c)});default:for(l=new Array(f-1),u=0;u<l.length;)l[u++]=arguments[u];return n.nextTick(function(){o.apply(null,l)})}}n===void 0||!n.version||n.version.indexOf("v0.")===0||n.version.indexOf("v1.")===0&&n.version.indexOf("v1.8.")!==0?r.exports={nextTick:a}:r.exports=n}).call(this)}).call(this,t("_process"))},{_process:467}],467:[function(t,r,e){var n,a,o=r.exports={};function s(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function c(g){if(n===setTimeout)return setTimeout(g,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(g,0);try{return n(g,0)}catch(y){try{return n.call(null,g,0)}catch(w){return n.call(this,g,0)}}}function l(g){if(a===clearTimeout)return clearTimeout(g);if((a===i||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(g);try{return a(g)}catch(y){try{return a.call(null,g)}catch(w){return a.call(this,g)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:s}catch(g){n=s}try{a=typeof clearTimeout=="function"?clearTimeout:i}catch(g){a=i}})();var u,f=[],h=!1,d=-1;function p(){h&&u&&(h=!1,u.length?f=u.concat(f):d=-1,f.length&&m())}function m(){if(!h){var g=c(p);h=!0;for(var y=f.length;y;){for(u=f,f=[];++d<y;)u&&u[d].run();d=-1,y=f.length}u=null,h=!1,l(g)}}function v(g,y){this.fun=g,this.array=y}function b(){}o.nextTick=function(g){var y=new Array(arguments.length-1);if(arguments.length>1)for(var w=1;w<arguments.length;w++)y[w-1]=arguments[w];f.push(new v(g,y)),f.length!==1||h||c(m)},v.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=b,o.addListener=b,o.once=b,o.off=b,o.removeListener=b,o.removeAllListeners=b,o.emit=b,o.prependListener=b,o.prependOnceListener=b,o.listeners=function(g){return[]},o.binding=function(g){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(g){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],468:[function(t,r,e){e.publicEncrypt=t("./publicEncrypt"),e.privateDecrypt=t("./privateDecrypt"),e.privateEncrypt=function(n,a){return e.publicEncrypt(n,a,!0)},e.publicDecrypt=function(n,a){return e.privateDecrypt(n,a,!0)}},{"./privateDecrypt":471,"./publicEncrypt":472}],469:[function(t,r,e){var n=t("create-hash"),a=t("safe-buffer").Buffer;function o(s){var i=a.allocUnsafe(4);return i.writeUInt32BE(s,0),i}r.exports=function(s,i){for(var c,l=a.alloc(0),u=0;l.length<i;)c=o(u++),l=a.concat([l,n("sha1").update(s).update(c).digest()]);return l.slice(0,i)}},{"create-hash":386,"safe-buffer":494}],470:[function(t,r,e){arguments[4][184][0].apply(e,arguments)},{buffer:188,dup:184}],471:[function(t,r,e){var n=t("parse-asn1"),a=t("./mgf"),o=t("./xor"),s=t("bn.js"),i=t("browserify-rsa"),c=t("create-hash"),l=t("./withPublic"),u=t("safe-buffer").Buffer;function f(p,m){var v=p.modulus.byteLength(),b=c("sha1").update(u.alloc(0)).digest(),g=b.length;if(m[0]!==0)throw new Error("decryption error");var y=m.slice(1,g+1),w=m.slice(g+1),x=o(y,a(w,g)),C=o(w,a(x,v-g-1));if(d(b,C.slice(0,g)))throw new Error("decryption error");for(var O=g;C[O]===0;)O++;if(C[O++]!==1)throw new Error("decryption error");return C.slice(O)}function h(p,m,v){for(var b=m.slice(0,2),g=2,y=0;m[g++]!==0;)if(g>=m.length){y++;break}var w=m.slice(2,g-1);if((b.toString("hex")!=="0002"&&!v||b.toString("hex")!=="0001"&&v)&&y++,w.length<8&&y++,y)throw new Error("decryption error");return m.slice(g)}function d(p,m){p=u.from(p),m=u.from(m);var v=0,b=p.length;p.length!==m.length&&(v++,b=Math.min(p.length,m.length));for(var g=-1;++g<b;)v+=p[g]^m[g];return v}r.exports=function(p,m,v){var b;b=p.padding?p.padding:v?1:4;var g,y=n(p),w=y.modulus.byteLength();if(m.length>w||new s(m).cmp(y.modulus)>=0)throw new Error("decryption error");g=v?l(new s(m),y):i(m,y);var x=u.alloc(w-g.length);if(g=u.concat([x,g],w),b===4)return f(y,g);if(b===1)return h(y,g,v);if(b===3)return g;throw new Error("unknown padding")}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,"safe-buffer":494}],472:[function(t,r,e){var n=t("parse-asn1"),a=t("randombytes"),o=t("create-hash"),s=t("./mgf"),i=t("./xor"),c=t("bn.js"),l=t("./withPublic"),u=t("browserify-rsa"),f=t("safe-buffer").Buffer;function h(m,v){var b=m.modulus.byteLength(),g=v.length,y=o("sha1").update(f.alloc(0)).digest(),w=y.length,x=2*w;if(g>b-x-2)throw new Error("message too long");var C=f.alloc(b-g-x-2),O=b-w-1,D=a(w),j=i(f.concat([y,C,f.alloc(1,1),v],O),s(D,O)),U=i(D,s(j,w));return new c(f.concat([f.alloc(1),U,j],b))}function d(m,v,b){var g,y=v.length,w=m.modulus.byteLength();if(y>w-11)throw new Error("message too long");return g=b?f.alloc(w-y-3,255):p(w-y-3),new c(f.concat([f.from([0,b?1:2]),g,f.alloc(1),v],w))}function p(m){for(var v,b=f.allocUnsafe(m),g=0,y=a(2*m),w=0;g<m;)w===y.length&&(y=a(2*m),w=0),(v=y[w++])&&(b[g++]=v);return b}r.exports=function(m,v,b){var g;g=m.padding?m.padding:b?1:4;var y,w=n(m);if(g===4)y=h(w,v);else if(g===1)y=d(w,v,b);else{if(g!==3)throw new Error("unknown padding");if((y=new c(v)).cmp(w.modulus)>=0)throw new Error("data too long for modulus")}return b?u(y,w):l(y,w)}},{"./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(t,r,e){var n=t("bn.js"),a=t("safe-buffer").Buffer;function o(s,i){return a.from(s.toRed(n.mont(i.modulus)).redPow(new n(i.publicExponent)).fromRed().toArray())}r.exports=o},{"bn.js":470,"safe-buffer":494}],474:[function(t,r,e){r.exports=function(n,a){for(var o=n.length,s=-1;++s<o;)n[s]^=a[s];return n}},{}],475:[function(t,r,e){(function(n,a){(function(){var o=65536,s=4294967295;function i(){throw new Error(`Secure random number generation is not supported by this browser.
|
||
Use Chrome, Firefox or Internet Explorer 11`)}var c=t("safe-buffer").Buffer,l=a.crypto||a.msCrypto;function u(f,h){if(f>s)throw new RangeError("requested too many random bytes");var d=c.allocUnsafe(f);if(f>0)if(f>o)for(var p=0;p<f;p+=o)l.getRandomValues(d.slice(p,p+o));else l.getRandomValues(d);return typeof h=="function"?n.nextTick(function(){h(null,d)}):d}l&&l.getRandomValues?r.exports=u:r.exports=i}).call(this)}).call(this,t("_process"),ur!==void 0?ur:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{_process:467,"safe-buffer":494}],476:[function(t,r,e){(function(n,a){(function(){function o(){throw new Error(`secure random number generation not supported by this browser
|
||
use chrome, FireFox or Internet Explorer 11`)}var s=t("safe-buffer"),i=t("randombytes"),c=s.Buffer,l=s.kMaxLength,u=a.crypto||a.msCrypto,f=Math.pow(2,32)-1;function h(b,g){if(typeof b!="number"||b!=b)throw new TypeError("offset must be a number");if(b>f||b<0)throw new TypeError("offset must be a uint32");if(b>l||b>g)throw new RangeError("offset out of range")}function d(b,g,y){if(typeof b!="number"||b!=b)throw new TypeError("size must be a number");if(b>f||b<0)throw new TypeError("size must be a uint32");if(b+g>y||b>l)throw new RangeError("buffer too small")}function p(b,g,y,w){if(!(c.isBuffer(b)||b instanceof a.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof g=="function")w=g,g=0,y=b.length;else if(typeof y=="function")w=y,y=b.length-g;else if(typeof w!="function")throw new TypeError('"cb" argument must be a function');return h(g,b.length),d(y,g,b.length),m(b,g,y,w)}function m(b,g,y,w){if(n.browser){var x=b.buffer,C=new Uint8Array(x,g,y);return u.getRandomValues(C),w?void n.nextTick(function(){w(null,b)}):b}if(!w)return i(y).copy(b,g),b;i(y,function(O,D){if(O)return w(O);D.copy(b,g),w(null,b)})}function v(b,g,y){if(g===void 0&&(g=0),!(c.isBuffer(b)||b instanceof a.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return h(g,b.length),y===void 0&&(y=b.length-g),d(y,g,b.length),m(b,g,y)}u&&u.getRandomValues||!n.browser?(e.randomFill=p,e.randomFillSync=v):(e.randomFill=o,e.randomFillSync=o)}).call(this)}).call(this,t("_process"),ur!==void 0?ur:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{_process:467,randombytes:475,"safe-buffer":494}],477:[function(t,r,e){function n(u,f){u.prototype=Object.create(f.prototype),u.prototype.constructor=u,u.__proto__=f}var a={};function o(u,f,h){function d(m,v,b){return typeof f=="string"?f:f(m,v,b)}h||(h=Error);var p=function(m){function v(b,g,y){return m.call(this,d(b,g,y))||this}return n(v,m),v}(h);p.prototype.name=h.name,p.prototype.code=u,a[u]=p}function s(u,f){if(Array.isArray(u)){var h=u.length;return u=u.map(function(d){return String(d)}),h>2?"one of ".concat(f," ").concat(u.slice(0,h-1).join(", "),", or ")+u[h-1]:h===2?"one of ".concat(f," ").concat(u[0]," or ").concat(u[1]):"of ".concat(f," ").concat(u[0])}return"of ".concat(f," ").concat(String(u))}function i(u,f,h){return u.substr(!h||h<0?0:+h,f.length)===f}function c(u,f,h){return(h===void 0||h>u.length)&&(h=u.length),u.substring(h-f.length,h)===f}function l(u,f,h){return typeof h!="number"&&(h=0),!(h+f.length>u.length)&&u.indexOf(f,h)!==-1}o("ERR_INVALID_OPT_VALUE",function(u,f){return'The value "'+f+'" is invalid for option "'+u+'"'},TypeError),o("ERR_INVALID_ARG_TYPE",function(u,f,h){var d,p;if(typeof f=="string"&&i(f,"not ")?(d="must not be",f=f.replace(/^not /,"")):d="must be",c(u," argument"))p="The ".concat(u," ").concat(d," ").concat(s(f,"type"));else{var m=l(u,".")?"property":"argument";p='The "'.concat(u,'" ').concat(m," ").concat(d," ").concat(s(f,"type"))}return p+=". Received type ".concat(typeof h)},TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",function(u){return"The "+u+" method is not implemented"}),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",function(u){return"Cannot call "+u+" after a stream was destroyed"}),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",function(u){return"Unknown encoding: "+u},TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),r.exports.codes=a},{}],478:[function(t,r,e){(function(n){(function(){var a=Object.keys||function(d){var p=[];for(var m in d)p.push(m);return p};r.exports=u;var o=t("./_stream_readable"),s=t("./_stream_writable");t("inherits")(u,o);for(var i=a(s.prototype),c=0;c<i.length;c++){var l=i[c];u.prototype[l]||(u.prototype[l]=s.prototype[l])}function u(d){if(!(this instanceof u))return new u(d);o.call(this,d),s.call(this,d),this.allowHalfOpen=!0,d&&(d.readable===!1&&(this.readable=!1),d.writable===!1&&(this.writable=!1),d.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||n.nextTick(h,this)}function h(d){d.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(d){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=d,this._writableState.destroyed=d)}})}).call(this)}).call(this,t("_process"))},{"./_stream_readable":480,"./_stream_writable":482,_process:467,inherits:440}],479:[function(t,r,e){r.exports=a;var n=t("./_stream_transform");function a(o){if(!(this instanceof a))return new a(o);n.call(this,o)}t("inherits")(a,n),a.prototype._transform=function(o,s,i){i(null,o)}},{"./_stream_transform":481,inherits:440}],480:[function(t,r,e){(function(n,a){(function(){var o;r.exports=A,A.ReadableState=V,t("events").EventEmitter;var s=function(J,st){return J.listeners(st).length},i=t("./internal/streams/stream"),c=t("buffer").Buffer,l=(a!==void 0?a:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function u(J){return c.from(J)}function f(J){return c.isBuffer(J)||J instanceof l}var h,d=t("util");h=d&&d.debuglog?d.debuglog("stream"):function(){};var p,m,v,b=t("./internal/streams/buffer_list"),g=t("./internal/streams/destroy"),y=t("./internal/streams/state").getHighWaterMark,w=t("../errors").codes,x=w.ERR_INVALID_ARG_TYPE,C=w.ERR_STREAM_PUSH_AFTER_EOF,O=w.ERR_METHOD_NOT_IMPLEMENTED,D=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;t("inherits")(A,i);var j=g.errorOrDestroy,U=["error","close","destroy","pause","resume"];function L(J,st,Ot){if(typeof J.prependListener=="function")return J.prependListener(st,Ot);J._events&&J._events[st]?Array.isArray(J._events[st])?J._events[st].unshift(Ot):J._events[st]=[Ot,J._events[st]]:J.on(st,Ot)}function V(J,st,Ot){o=o||t("./_stream_duplex"),J=J||{},typeof Ot!="boolean"&&(Ot=st instanceof o),this.objectMode=!!J.objectMode,Ot&&(this.objectMode=this.objectMode||!!J.readableObjectMode),this.highWaterMark=y(this,J,"readableHighWaterMark",Ot),this.buffer=new b,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=J.emitClose!==!1,this.autoDestroy=!!J.autoDestroy,this.destroyed=!1,this.defaultEncoding=J.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,J.encoding&&(p||(p=t("string_decoder/").StringDecoder),this.decoder=new p(J.encoding),this.encoding=J.encoding)}function A(J){if(o=o||t("./_stream_duplex"),!(this instanceof A))return new A(J);var st=this instanceof o;this._readableState=new V(J,this,st),this.readable=!0,J&&(typeof J.read=="function"&&(this._read=J.read),typeof J.destroy=="function"&&(this._destroy=J.destroy)),i.call(this)}function N(J,st,Ot,W,X){h("readableAddChunk",st);var it,xt=J._readableState;if(st===null)xt.reading=!1,F(J,xt);else if(X||(it=S(xt,st)),it)j(J,it);else if(xt.objectMode||st&&st.length>0)if(typeof st=="string"||xt.objectMode||Object.getPrototypeOf(st)===c.prototype||(st=u(st)),W)xt.endEmitted?j(J,new D):k(J,xt,st,!0);else if(xt.ended)j(J,new C);else{if(xt.destroyed)return!1;xt.reading=!1,xt.decoder&&!Ot?(st=xt.decoder.write(st),xt.objectMode||st.length!==0?k(J,xt,st,!1):P(J,xt)):k(J,xt,st,!1)}else W||(xt.reading=!1,P(J,xt));return!xt.ended&&(xt.length<xt.highWaterMark||xt.length===0)}function k(J,st,Ot,W){st.flowing&&st.length===0&&!st.sync?(st.awaitDrain=0,J.emit("data",Ot)):(st.length+=st.objectMode?1:Ot.length,W?st.buffer.unshift(Ot):st.buffer.push(Ot),st.needReadable&&I(J)),P(J,st)}function S(J,st){var Ot;return f(st)||typeof st=="string"||st===void 0||J.objectMode||(Ot=new x("chunk",["string","Buffer","Uint8Array"],st)),Ot}Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(J){this._readableState&&(this._readableState.destroyed=J)}}),A.prototype.destroy=g.destroy,A.prototype._undestroy=g.undestroy,A.prototype._destroy=function(J,st){st(J)},A.prototype.push=function(J,st){var Ot,W=this._readableState;return W.objectMode?Ot=!0:typeof J=="string"&&((st=st||W.defaultEncoding)!==W.encoding&&(J=c.from(J,st),st=""),Ot=!0),N(this,J,st,!1,Ot)},A.prototype.unshift=function(J){return N(this,J,null,!0,!1)},A.prototype.isPaused=function(){return this._readableState.flowing===!1},A.prototype.setEncoding=function(J){p||(p=t("string_decoder/").StringDecoder);var st=new p(J);this._readableState.decoder=st,this._readableState.encoding=this._readableState.decoder.encoding;for(var Ot=this._readableState.buffer.head,W="";Ot!==null;)W+=st.write(Ot.data),Ot=Ot.next;return this._readableState.buffer.clear(),W!==""&&this._readableState.buffer.push(W),this._readableState.length=W.length,this};var E=1073741824;function T(J){return J>=E?J=E:(J--,J|=J>>>1,J|=J>>>2,J|=J>>>4,J|=J>>>8,J|=J>>>16,J++),J}function R(J,st){return J<=0||st.length===0&&st.ended?0:st.objectMode?1:J!=J?st.flowing&&st.length?st.buffer.head.data.length:st.length:(J>st.highWaterMark&&(st.highWaterMark=T(J)),J<=st.length?J:st.ended?st.length:(st.needReadable=!0,0))}function F(J,st){if(h("onEofChunk"),!st.ended){if(st.decoder){var Ot=st.decoder.end();Ot&&Ot.length&&(st.buffer.push(Ot),st.length+=st.objectMode?1:Ot.length)}st.ended=!0,st.sync?I(J):(st.needReadable=!1,st.emittedReadable||(st.emittedReadable=!0,B(J)))}}function I(J){var st=J._readableState;h("emitReadable",st.needReadable,st.emittedReadable),st.needReadable=!1,st.emittedReadable||(h("emitReadable",st.flowing),st.emittedReadable=!0,n.nextTick(B,J))}function B(J){var st=J._readableState;h("emitReadable_",st.destroyed,st.length,st.ended),st.destroyed||!st.length&&!st.ended||(J.emit("readable"),st.emittedReadable=!1),st.needReadable=!st.flowing&&!st.ended&&st.length<=st.highWaterMark,Q(J)}function P(J,st){st.readingMore||(st.readingMore=!0,n.nextTick(H,J,st))}function H(J,st){for(;!st.reading&&!st.ended&&(st.length<st.highWaterMark||st.flowing&&st.length===0);){var Ot=st.length;if(h("maybeReadMore read 0"),J.read(0),Ot===st.length)break}st.readingMore=!1}function Z(J){return function(){var st=J._readableState;h("pipeOnDrain",st.awaitDrain),st.awaitDrain&&st.awaitDrain--,st.awaitDrain===0&&s(J,"data")&&(st.flowing=!0,Q(J))}}function Y(J){var st=J._readableState;st.readableListening=J.listenerCount("readable")>0,st.resumeScheduled&&!st.paused?st.flowing=!0:J.listenerCount("data")>0&&J.resume()}function dt(J){h("readable nexttick read 0"),J.read(0)}function gt(J,st){st.resumeScheduled||(st.resumeScheduled=!0,n.nextTick(bt,J,st))}function bt(J,st){h("resume",st.reading),st.reading||J.read(0),st.resumeScheduled=!1,J.emit("resume"),Q(J),st.flowing&&!st.reading&&J.read(0)}function Q(J){var st=J._readableState;for(h("flow",st.flowing);st.flowing&&J.read()!==null;);}function q(J,st){return st.length===0?null:(st.objectMode?Ot=st.buffer.shift():!J||J>=st.length?(Ot=st.decoder?st.buffer.join(""):st.buffer.length===1?st.buffer.first():st.buffer.concat(st.length),st.buffer.clear()):Ot=st.buffer.consume(J,st.decoder),Ot);var Ot}function tt(J){var st=J._readableState;h("endReadable",st.endEmitted),st.endEmitted||(st.ended=!0,n.nextTick(et,st,J))}function et(J,st){if(h("endReadableNT",J.endEmitted,J.length),!J.endEmitted&&J.length===0&&(J.endEmitted=!0,st.readable=!1,st.emit("end"),J.autoDestroy)){var Ot=st._writableState;(!Ot||Ot.autoDestroy&&Ot.finished)&&st.destroy()}}function _t(J,st){for(var Ot=0,W=J.length;Ot<W;Ot++)if(J[Ot]===st)return Ot;return-1}A.prototype.read=function(J){h("read",J),J=parseInt(J,10);var st=this._readableState,Ot=J;if(J!==0&&(st.emittedReadable=!1),J===0&&st.needReadable&&((st.highWaterMark!==0?st.length>=st.highWaterMark:st.length>0)||st.ended))return h("read: emitReadable",st.length,st.ended),st.length===0&&st.ended?tt(this):I(this),null;if((J=R(J,st))===0&&st.ended)return st.length===0&&tt(this),null;var W,X=st.needReadable;return h("need readable",X),(st.length===0||st.length-J<st.highWaterMark)&&h("length less than watermark",X=!0),st.ended||st.reading?h("reading or ended",X=!1):X&&(h("do read"),st.reading=!0,st.sync=!0,st.length===0&&(st.needReadable=!0),this._read(st.highWaterMark),st.sync=!1,st.reading||(J=R(Ot,st))),(W=J>0?q(J,st):null)===null?(st.needReadable=st.length<=st.highWaterMark,J=0):(st.length-=J,st.awaitDrain=0),st.length===0&&(st.ended||(st.needReadable=!0),Ot!==J&&st.ended&&tt(this)),W!==null&&this.emit("data",W),W},A.prototype._read=function(J){j(this,new O("_read()"))},A.prototype.pipe=function(J,st){var Ot=this,W=this._readableState;switch(W.pipesCount){case 0:W.pipes=J;break;case 1:W.pipes=[W.pipes,J];break;default:W.pipes.push(J)}W.pipesCount+=1,h("pipe count=%d opts=%j",W.pipesCount,st);var X=st&&st.end===!1||J===n.stdout||J===n.stderr?Dt:xt;function it(rt,nt){h("onunpipe"),rt===Ot&&nt&&nt.hasUnpiped===!1&&(nt.hasUnpiped=!0,Mt())}function xt(){h("onend"),J.end()}W.endEmitted?n.nextTick(X):Ot.once("end",X),J.on("unpipe",it);var Nt=Z(Ot);J.on("drain",Nt);var G=!1;function Mt(){h("cleanup"),J.removeListener("close",ct),J.removeListener("finish",pt),J.removeListener("drain",Nt),J.removeListener("error",lt),J.removeListener("unpipe",it),Ot.removeListener("end",xt),Ot.removeListener("end",Dt),Ot.removeListener("data",Pt),G=!0,!W.awaitDrain||J._writableState&&!J._writableState.needDrain||Nt()}function Pt(rt){h("ondata");var nt=J.write(rt);h("dest.write",nt),nt===!1&&((W.pipesCount===1&&W.pipes===J||W.pipesCount>1&&_t(W.pipes,J)!==-1)&&!G&&(h("false write response, pause",W.awaitDrain),W.awaitDrain++),Ot.pause())}function lt(rt){h("onerror",rt),Dt(),J.removeListener("error",lt),s(J,"error")===0&&j(J,rt)}function ct(){J.removeListener("finish",pt),Dt()}function pt(){h("onfinish"),J.removeListener("close",ct),Dt()}function Dt(){h("unpipe"),Ot.unpipe(J)}return Ot.on("data",Pt),L(J,"error",lt),J.once("close",ct),J.once("finish",pt),J.emit("pipe",Ot),W.flowing||(h("pipe resume"),Ot.resume()),J},A.prototype.unpipe=function(J){var st=this._readableState,Ot={hasUnpiped:!1};if(st.pipesCount===0)return this;if(st.pipesCount===1)return J&&J!==st.pipes||(J||(J=st.pipes),st.pipes=null,st.pipesCount=0,st.flowing=!1,J&&J.emit("unpipe",this,Ot)),this;if(!J){var W=st.pipes,X=st.pipesCount;st.pipes=null,st.pipesCount=0,st.flowing=!1;for(var it=0;it<X;it++)W[it].emit("unpipe",this,{hasUnpiped:!1});return this}var xt=_t(st.pipes,J);return xt===-1||(st.pipes.splice(xt,1),st.pipesCount-=1,st.pipesCount===1&&(st.pipes=st.pipes[0]),J.emit("unpipe",this,Ot)),this},A.prototype.on=function(J,st){var Ot=i.prototype.on.call(this,J,st),W=this._readableState;return J==="data"?(W.readableListening=this.listenerCount("readable")>0,W.flowing!==!1&&this.resume()):J==="readable"&&(W.endEmitted||W.readableListening||(W.readableListening=W.needReadable=!0,W.flowing=!1,W.emittedReadable=!1,h("on readable",W.length,W.reading),W.length?I(this):W.reading||n.nextTick(dt,this))),Ot},A.prototype.addListener=A.prototype.on,A.prototype.removeListener=function(J,st){var Ot=i.prototype.removeListener.call(this,J,st);return J==="readable"&&n.nextTick(Y,this),Ot},A.prototype.removeAllListeners=function(J){var st=i.prototype.removeAllListeners.apply(this,arguments);return J!=="readable"&&J!==void 0||n.nextTick(Y,this),st},A.prototype.resume=function(){var J=this._readableState;return J.flowing||(h("resume"),J.flowing=!J.readableListening,gt(this,J)),J.paused=!1,this},A.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._readableState.paused=!0,this},A.prototype.wrap=function(J){var st=this,Ot=this._readableState,W=!1;for(var X in J.on("end",function(){if(h("wrapped end"),Ot.decoder&&!Ot.ended){var xt=Ot.decoder.end();xt&&xt.length&&st.push(xt)}st.push(null)}),J.on("data",function(xt){h("wrapped data"),Ot.decoder&&(xt=Ot.decoder.write(xt)),Ot.objectMode&&xt==null||(Ot.objectMode||xt&&xt.length)&&(st.push(xt)||(W=!0,J.pause()))}),J)this[X]===void 0&&typeof J[X]=="function"&&(this[X]=function(xt){return function(){return J[xt].apply(J,arguments)}}(X));for(var it=0;it<U.length;it++)J.on(U[it],this.emit.bind(this,U[it]));return this._read=function(xt){h("wrapped _read",xt),W&&(W=!1,J.resume())},this},typeof Symbol=="function"&&(A.prototype[Symbol.asyncIterator]=function(){return m===void 0&&(m=t("./internal/streams/async_iterator")),m(this)}),Object.defineProperty(A.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(A.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(A.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(J){this._readableState&&(this._readableState.flowing=J)}}),A._fromList=q,Object.defineProperty(A.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(A.from=function(J,st){return v===void 0&&(v=t("./internal/streams/from")),v(A,J,st)})}).call(this)}).call(this,t("_process"),ur!==void 0?ur:typeof self!="undefined"?self:typeof window!="undefined"?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(t,r,e){r.exports=u;var n=t("../errors").codes,a=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,i=n.ERR_TRANSFORM_WITH_LENGTH_0,c=t("./_stream_duplex");function l(d,p){var m=this._transformState;m.transforming=!1;var v=m.writecb;if(v===null)return this.emit("error",new o);m.writechunk=null,m.writecb=null,p!=null&&this.push(p),v(d);var b=this._readableState;b.reading=!1,(b.needReadable||b.length<b.highWaterMark)&&this._read(b.highWaterMark)}function u(d){if(!(this instanceof u))return new u(d);c.call(this,d),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",f)}function f(){var d=this;typeof this._flush!="function"||this._readableState.destroyed?h(this,null,null):this._flush(function(p,m){h(d,p,m)})}function h(d,p,m){if(p)return d.emit("error",p);if(m!=null&&d.push(m),d._writableState.length)throw new i;if(d._transformState.transforming)throw new s;return d.push(null)}t("inherits")(u,c),u.prototype.push=function(d,p){return this._transformState.needTransform=!1,c.prototype.push.call(this,d,p)},u.prototype._transform=function(d,p,m){m(new a("_transform()"))},u.prototype._write=function(d,p,m){var v=this._transformState;if(v.writecb=m,v.writechunk=d,v.writeencoding=p,!v.transforming){var b=this._readableState;(v.needTransform||b.needReadable||b.length<b.highWaterMark)&&this._read(b.highWaterMark)}},u.prototype._read=function(d){var p=this._transformState;p.writechunk===null||p.transforming?p.needTransform=!0:(p.transforming=!0,this._transform(p.writechunk,p.writeencoding,p.afterTransform))},u.prototype._destroy=function(d,p){c.prototype._destroy.call(this,d,function(m){p(m)})}},{"../errors":477,"./_stream_duplex":478,inherits:440}],482:[function(t,r,e){(function(n,a){(function(){function o(Q){var q=this;this.next=null,this.entry=null,this.finish=function(){bt(q,Q)}}var s;r.exports=V,V.WritableState=L;var i={deprecate:t("util-deprecate")},c=t("./internal/streams/stream"),l=t("buffer").Buffer,u=(a!==void 0?a:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function f(Q){return l.from(Q)}function h(Q){return l.isBuffer(Q)||Q instanceof u}var d,p=t("./internal/streams/destroy"),m=t("./internal/streams/state").getHighWaterMark,v=t("../errors").codes,b=v.ERR_INVALID_ARG_TYPE,g=v.ERR_METHOD_NOT_IMPLEMENTED,y=v.ERR_MULTIPLE_CALLBACK,w=v.ERR_STREAM_CANNOT_PIPE,x=v.ERR_STREAM_DESTROYED,C=v.ERR_STREAM_NULL_VALUES,O=v.ERR_STREAM_WRITE_AFTER_END,D=v.ERR_UNKNOWN_ENCODING,j=p.errorOrDestroy;function U(){}function L(Q,q,tt){s=s||t("./_stream_duplex"),Q=Q||{},typeof tt!="boolean"&&(tt=q instanceof s),this.objectMode=!!Q.objectMode,tt&&(this.objectMode=this.objectMode||!!Q.writableObjectMode),this.highWaterMark=m(this,Q,"writableHighWaterMark",tt),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var et=Q.decodeStrings===!1;this.decodeStrings=!et,this.defaultEncoding=Q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(_t){F(q,_t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Q.emitClose!==!1,this.autoDestroy=!!Q.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function V(Q){var q=this instanceof(s=s||t("./_stream_duplex"));if(!q&&!d.call(V,this))return new V(Q);this._writableState=new L(Q,this,q),this.writable=!0,Q&&(typeof Q.write=="function"&&(this._write=Q.write),typeof Q.writev=="function"&&(this._writev=Q.writev),typeof Q.destroy=="function"&&(this._destroy=Q.destroy),typeof Q.final=="function"&&(this._final=Q.final)),c.call(this)}function A(Q,q){var tt=new O;j(Q,tt),n.nextTick(q,tt)}function N(Q,q,tt,et){var _t;return tt===null?_t=new C:typeof tt=="string"||q.objectMode||(_t=new b("chunk",["string","Buffer"],tt)),!_t||(j(Q,_t),n.nextTick(et,_t),!1)}function k(Q,q,tt){return Q.objectMode||Q.decodeStrings===!1||typeof q!="string"||(q=l.from(q,tt)),q}function S(Q,q,tt,et,_t,J){if(!tt){var st=k(q,et,_t);et!==st&&(tt=!0,_t="buffer",et=st)}var Ot=q.objectMode?1:et.length;q.length+=Ot;var W=q.length<q.highWaterMark;if(W||(q.needDrain=!0),q.writing||q.corked){var X=q.lastBufferedRequest;q.lastBufferedRequest={chunk:et,encoding:_t,isBuf:tt,callback:J,next:null},X?X.next=q.lastBufferedRequest:q.bufferedRequest=q.lastBufferedRequest,q.bufferedRequestCount+=1}else E(Q,q,!1,Ot,et,_t,J);return W}function E(Q,q,tt,et,_t,J,st){q.writelen=et,q.writecb=st,q.writing=!0,q.sync=!0,q.destroyed?q.onwrite(new x("write")):tt?Q._writev(_t,q.onwrite):Q._write(_t,J,q.onwrite),q.sync=!1}function T(Q,q,tt,et,_t){--q.pendingcb,tt?(n.nextTick(_t,et),n.nextTick(dt,Q,q),Q._writableState.errorEmitted=!0,j(Q,et)):(_t(et),Q._writableState.errorEmitted=!0,j(Q,et),dt(Q,q))}function R(Q){Q.writing=!1,Q.writecb=null,Q.length-=Q.writelen,Q.writelen=0}function F(Q,q){var tt=Q._writableState,et=tt.sync,_t=tt.writecb;if(typeof _t!="function")throw new y;if(R(tt),q)T(Q,tt,et,q,_t);else{var J=H(tt)||Q.destroyed;J||tt.corked||tt.bufferProcessing||!tt.bufferedRequest||P(Q,tt),et?n.nextTick(I,Q,tt,J,_t):I(Q,tt,J,_t)}}function I(Q,q,tt,et){tt||B(Q,q),q.pendingcb--,et(),dt(Q,q)}function B(Q,q){q.length===0&&q.needDrain&&(q.needDrain=!1,Q.emit("drain"))}function P(Q,q){q.bufferProcessing=!0;var tt=q.bufferedRequest;if(Q._writev&&tt&&tt.next){var et=q.bufferedRequestCount,_t=new Array(et),J=q.corkedRequestsFree;J.entry=tt;for(var st=0,Ot=!0;tt;)_t[st]=tt,tt.isBuf||(Ot=!1),tt=tt.next,st+=1;_t.allBuffers=Ot,E(Q,q,!0,q.length,_t,"",J.finish),q.pendingcb++,q.lastBufferedRequest=null,J.next?(q.corkedRequestsFree=J.next,J.next=null):q.corkedRequestsFree=new o(q),q.bufferedRequestCount=0}else{for(;tt;){var W=tt.chunk,X=tt.encoding,it=tt.callback;if(E(Q,q,!1,q.objectMode?1:W.length,W,X,it),tt=tt.next,q.bufferedRequestCount--,q.writing)break}tt===null&&(q.lastBufferedRequest=null)}q.bufferedRequest=tt,q.bufferProcessing=!1}function H(Q){return Q.ending&&Q.length===0&&Q.bufferedRequest===null&&!Q.finished&&!Q.writing}function Z(Q,q){Q._final(function(tt){q.pendingcb--,tt&&j(Q,tt),q.prefinished=!0,Q.emit("prefinish"),dt(Q,q)})}function Y(Q,q){q.prefinished||q.finalCalled||(typeof Q._final!="function"||q.destroyed?(q.prefinished=!0,Q.emit("prefinish")):(q.pendingcb++,q.finalCalled=!0,n.nextTick(Z,Q,q)))}function dt(Q,q){var tt=H(q);if(tt&&(Y(Q,q),q.pendingcb===0&&(q.finished=!0,Q.emit("finish"),q.autoDestroy))){var et=Q._readableState;(!et||et.autoDestroy&&et.endEmitted)&&Q.destroy()}return tt}function gt(Q,q,tt){q.ending=!0,dt(Q,q),tt&&(q.finished?n.nextTick(tt):Q.once("finish",tt)),q.ended=!0,Q.writable=!1}function bt(Q,q,tt){var et=Q.entry;for(Q.entry=null;et;){var _t=et.callback;q.pendingcb--,_t(tt),et=et.next}q.corkedRequestsFree.next=Q}t("inherits")(V,c),L.prototype.getBuffer=function(){for(var Q=this.bufferedRequest,q=[];Q;)q.push(Q),Q=Q.next;return q},function(){try{Object.defineProperty(L.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Q){}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(V,Symbol.hasInstance,{value:function(Q){return!!d.call(this,Q)||this===V&&Q&&Q._writableState instanceof L}})):d=function(Q){return Q instanceof this},V.prototype.pipe=function(){j(this,new w)},V.prototype.write=function(Q,q,tt){var et=this._writableState,_t=!1,J=!et.objectMode&&h(Q);return J&&!l.isBuffer(Q)&&(Q=f(Q)),typeof q=="function"&&(tt=q,q=null),J?q="buffer":q||(q=et.defaultEncoding),typeof tt!="function"&&(tt=U),et.ending?A(this,tt):(J||N(this,et,Q,tt))&&(et.pendingcb++,_t=S(this,et,J,Q,q,tt)),_t},V.prototype.cork=function(){this._writableState.corked++},V.prototype.uncork=function(){var Q=this._writableState;Q.corked&&(Q.corked--,Q.writing||Q.corked||Q.bufferProcessing||!Q.bufferedRequest||P(this,Q))},V.prototype.setDefaultEncoding=function(Q){if(typeof Q=="string"&&(Q=Q.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Q+"").toLowerCase())>-1))throw new D(Q);return this._writableState.defaultEncoding=Q,this},Object.defineProperty(V.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(V.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),V.prototype._write=function(Q,q,tt){tt(new g("_write()"))},V.prototype._writev=null,V.prototype.end=function(Q,q,tt){var et=this._writableState;return typeof Q=="function"?(tt=Q,Q=null,q=null):typeof q=="function"&&(tt=q,q=null),Q!=null&&this.write(Q,q),et.corked&&(et.corked=1,this.uncork()),et.ending||gt(this,et,tt),this},Object.defineProperty(V.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(V.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(Q){this._writableState&&(this._writableState.destroyed=Q)}}),V.prototype.destroy=p.destroy,V.prototype._undestroy=p.undestroy,V.prototype._destroy=function(Q,q){q(Q)}}).call(this)}).call(this,t("_process"),ur!==void 0?ur:typeof self!="undefined"?self:typeof window!="undefined"?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(t,r,e){(function(n){(function(){var a;function o(O,D,j){return(D=s(D))in O?Object.defineProperty(O,D,{value:j,enumerable:!0,configurable:!0,writable:!0}):O[D]=j,O}function s(O){var D=i(O,"string");return typeof D=="symbol"?D:String(D)}function i(O,D){if(typeof O!="object"||O===null)return O;var j=O[Symbol.toPrimitive];if(j!==void 0){var U=j.call(O,D||"default");if(typeof U!="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return(D==="string"?String:Number)(O)}var c=t("./end-of-stream"),l=Symbol("lastResolve"),u=Symbol("lastReject"),f=Symbol("error"),h=Symbol("ended"),d=Symbol("lastPromise"),p=Symbol("handlePromise"),m=Symbol("stream");function v(O,D){return{value:O,done:D}}function b(O){var D=O[l];if(D!==null){var j=O[m].read();j!==null&&(O[d]=null,O[l]=null,O[u]=null,D(v(j,!1)))}}function g(O){n.nextTick(b,O)}function y(O,D){return function(j,U){O.then(function(){D[h]?j(v(void 0,!0)):D[p](j,U)},U)}}var w=Object.getPrototypeOf(function(){}),x=Object.setPrototypeOf((o(a={get stream(){return this[m]},next:function(){var O=this,D=this[f];if(D!==null)return Promise.reject(D);if(this[h])return Promise.resolve(v(void 0,!0));if(this[m].destroyed)return new Promise(function(V,A){n.nextTick(function(){O[f]?A(O[f]):V(v(void 0,!0))})});var j,U=this[d];if(U)j=new Promise(y(U,this));else{var L=this[m].read();if(L!==null)return Promise.resolve(v(L,!1));j=new Promise(this[p])}return this[d]=j,j}},Symbol.asyncIterator,function(){return this}),o(a,"return",function(){var O=this;return new Promise(function(D,j){O[m].destroy(null,function(U){U?j(U):D(v(void 0,!0))})})}),a),w),C=function(O){var D,j=Object.create(x,(o(D={},m,{value:O,writable:!0}),o(D,l,{value:null,writable:!0}),o(D,u,{value:null,writable:!0}),o(D,f,{value:null,writable:!0}),o(D,h,{value:O._readableState.endEmitted,writable:!0}),o(D,p,{value:function(U,L){var V=j[m].read();V?(j[d]=null,j[l]=null,j[u]=null,U(v(V,!1))):(j[l]=U,j[u]=L)},writable:!0}),D));return j[d]=null,c(O,function(U){if(U&&U.code!=="ERR_STREAM_PREMATURE_CLOSE"){var L=j[u];return L!==null&&(j[d]=null,j[l]=null,j[u]=null,L(U)),void(j[f]=U)}var V=j[l];V!==null&&(j[d]=null,j[l]=null,j[u]=null,V(v(void 0,!0))),j[h]=!0}),O.on("readable",g.bind(null,j)),j};r.exports=C}).call(this)}).call(this,t("_process"))},{"./end-of-stream":486,_process:467}],484:[function(t,r,e){function n(m,v){var b=Object.keys(m);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(m);v&&(g=g.filter(function(y){return Object.getOwnPropertyDescriptor(m,y).enumerable})),b.push.apply(b,g)}return b}function a(m){for(var v=1;v<arguments.length;v++){var b=arguments[v]!=null?arguments[v]:{};v%2?n(Object(b),!0).forEach(function(g){o(m,g,b[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(b)):n(Object(b)).forEach(function(g){Object.defineProperty(m,g,Object.getOwnPropertyDescriptor(b,g))})}return m}function o(m,v,b){return(v=l(v))in m?Object.defineProperty(m,v,{value:b,enumerable:!0,configurable:!0,writable:!0}):m[v]=b,m}function s(m,v){if(!(m instanceof v))throw new TypeError("Cannot call a class as a function")}function i(m,v){for(var b=0;b<v.length;b++){var g=v[b];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,l(g.key),g)}}function c(m,v,b){return v&&i(m.prototype,v),b&&i(m,b),Object.defineProperty(m,"prototype",{writable:!1}),m}function l(m){var v=u(m,"string");return typeof v=="symbol"?v:String(v)}function u(m,v){if(typeof m!="object"||m===null)return m;var b=m[Symbol.toPrimitive];if(b!==void 0){var g=b.call(m,v||"default");if(typeof g!="object")return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return(v==="string"?String:Number)(m)}var f=t("buffer").Buffer,h=t("util").inspect,d=h&&h.custom||"inspect";function p(m,v,b){f.prototype.copy.call(m,v,b)}r.exports=function(){function m(){s(this,m),this.head=null,this.tail=null,this.length=0}return c(m,[{key:"push",value:function(v){var b={data:v,next:null};this.length>0?this.tail.next=b:this.head=b,this.tail=b,++this.length}},{key:"unshift",value:function(v){var b={data:v,next:this.head};this.length===0&&(this.tail=b),this.head=b,++this.length}},{key:"shift",value:function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(v){if(this.length===0)return"";for(var b=this.head,g=""+b.data;b=b.next;)g+=v+b.data;return g}},{key:"concat",value:function(v){if(this.length===0)return f.alloc(0);for(var b=f.allocUnsafe(v>>>0),g=this.head,y=0;g;)p(g.data,b,y),y+=g.data.length,g=g.next;return b}},{key:"consume",value:function(v,b){var g;return v<this.head.data.length?(g=this.head.data.slice(0,v),this.head.data=this.head.data.slice(v)):g=v===this.head.data.length?this.shift():b?this._getString(v):this._getBuffer(v),g}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(v){var b=this.head,g=1,y=b.data;for(v-=y.length;b=b.next;){var w=b.data,x=v>w.length?w.length:v;if(x===w.length?y+=w:y+=w.slice(0,v),(v-=x)==0){x===w.length?(++g,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=w.slice(x));break}++g}return this.length-=g,y}},{key:"_getBuffer",value:function(v){var b=f.allocUnsafe(v),g=this.head,y=1;for(g.data.copy(b),v-=g.data.length;g=g.next;){var w=g.data,x=v>w.length?w.length:v;if(w.copy(b,b.length-v,0,x),(v-=x)==0){x===w.length?(++y,g.next?this.head=g.next:this.head=this.tail=null):(this.head=g,g.data=w.slice(x));break}++y}return this.length-=y,b}},{key:d,value:function(v,b){return h(this,a(a({},b),{},{depth:0,customInspect:!1}))}}]),m}()},{buffer:220,util:188}],485:[function(t,r,e){(function(n){(function(){function a(u,f){var h=this,d=this._readableState&&this._readableState.destroyed,p=this._writableState&&this._writableState.destroyed;return d||p?(f?f(u):u&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(c,this,u)):n.nextTick(c,this,u)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(u||null,function(m){!f&&m?h._writableState?h._writableState.errorEmitted?n.nextTick(s,h):(h._writableState.errorEmitted=!0,n.nextTick(o,h,m)):n.nextTick(o,h,m):f?(n.nextTick(s,h),f(m)):n.nextTick(s,h)}),this)}function o(u,f){c(u,f),s(u)}function s(u){u._writableState&&!u._writableState.emitClose||u._readableState&&!u._readableState.emitClose||u.emit("close")}function i(){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 c(u,f){u.emit("error",f)}function l(u,f){var h=u._readableState,d=u._writableState;h&&h.autoDestroy||d&&d.autoDestroy?u.destroy(f):u.emit("error",f)}r.exports={destroy:a,undestroy:i,errorOrDestroy:l}}).call(this)}).call(this,t("_process"))},{_process:467}],486:[function(t,r,e){var n=t("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function a(c){var l=!1;return function(){if(!l){l=!0;for(var u=arguments.length,f=new Array(u),h=0;h<u;h++)f[h]=arguments[h];c.apply(this,f)}}}function o(){}function s(c){return c.setHeader&&typeof c.abort=="function"}function i(c,l,u){if(typeof l=="function")return i(c,null,l);l||(l={}),u=a(u||o);var f=l.readable||l.readable!==!1&&c.readable,h=l.writable||l.writable!==!1&&c.writable,d=function(){c.writable||m()},p=c._writableState&&c._writableState.finished,m=function(){h=!1,p=!0,f||u.call(c)},v=c._readableState&&c._readableState.endEmitted,b=function(){f=!1,v=!0,h||u.call(c)},g=function(x){u.call(c,x)},y=function(){var x;return f&&!v?(c._readableState&&c._readableState.ended||(x=new n),u.call(c,x)):h&&!p?(c._writableState&&c._writableState.ended||(x=new n),u.call(c,x)):void 0},w=function(){c.req.on("finish",m)};return s(c)?(c.on("complete",m),c.on("abort",y),c.req?w():c.on("request",w)):h&&!c._writableState&&(c.on("end",d),c.on("close",d)),c.on("end",b),c.on("finish",m),l.error!==!1&&c.on("error",g),c.on("close",y),function(){c.removeListener("complete",m),c.removeListener("abort",y),c.removeListener("request",w),c.req&&c.req.removeListener("finish",m),c.removeListener("end",d),c.removeListener("close",d),c.removeListener("finish",m),c.removeListener("end",b),c.removeListener("error",g),c.removeListener("close",y)}}r.exports=i},{"../../../errors":477}],487:[function(t,r,e){r.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],488:[function(t,r,e){var n;function a(m){var v=!1;return function(){v||(v=!0,m.apply(void 0,arguments))}}var o=t("../../../errors").codes,s=o.ERR_MISSING_ARGS,i=o.ERR_STREAM_DESTROYED;function c(m){if(m)throw m}function l(m){return m.setHeader&&typeof m.abort=="function"}function u(m,v,b,g){g=a(g);var y=!1;m.on("close",function(){y=!0}),n===void 0&&(n=t("./end-of-stream")),n(m,{readable:v,writable:b},function(x){if(x)return g(x);y=!0,g()});var w=!1;return function(x){if(!y&&!w)return w=!0,l(m)?m.abort():typeof m.destroy=="function"?m.destroy():void g(x||new i("pipe"))}}function f(m){m()}function h(m,v){return m.pipe(v)}function d(m){return m.length?typeof m[m.length-1]!="function"?c:m.pop():c}function p(){for(var m=arguments.length,v=new Array(m),b=0;b<m;b++)v[b]=arguments[b];var g,y=d(v);if(Array.isArray(v[0])&&(v=v[0]),v.length<2)throw new s("streams");var w=v.map(function(x,C){var O=C<v.length-1;return u(x,O,C>0,function(D){g||(g=D),D&&w.forEach(f),O||(w.forEach(f),y(g))})});return v.reduce(h)}r.exports=p},{"../../../errors":477,"./end-of-stream":486}],489:[function(t,r,e){var n=t("../../../errors").codes.ERR_INVALID_OPT_VALUE;function a(s,i,c){return s.highWaterMark!=null?s.highWaterMark:i?s[c]:null}function o(s,i,c,l){var u=a(i,l,c);if(u!=null){if(!isFinite(u)||Math.floor(u)!==u||u<0)throw new n(l?c:"highWaterMark",u);return Math.floor(u)}return s.objectMode?16:16384}r.exports={getHighWaterMark:o}},{"../../../errors":477}],490:[function(t,r,e){r.exports=t("events").EventEmitter},{events:422}],491:[function(t,r,e){(e=r.exports=t("./lib/_stream_readable.js")).Stream=e,e.Readable=e,e.Writable=t("./lib/_stream_writable.js"),e.Duplex=t("./lib/_stream_duplex.js"),e.Transform=t("./lib/_stream_transform.js"),e.PassThrough=t("./lib/_stream_passthrough.js"),e.finished=t("./lib/internal/streams/end-of-stream.js"),e.pipeline=t("./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(t,r,e){var n=function(a){var o,s=Object.prototype,i=s.hasOwnProperty,c=Object.defineProperty||function(I,B,P){I[B]=P.value},l=typeof Symbol=="function"?Symbol:{},u=l.iterator||"@@iterator",f=l.asyncIterator||"@@asyncIterator",h=l.toStringTag||"@@toStringTag";function d(I,B,P){return Object.defineProperty(I,B,{value:P,enumerable:!0,configurable:!0,writable:!0}),I[B]}try{d({},"")}catch(I){d=function(B,P,H){return B[P]=H}}function p(I,B,P,H){var Z=B&&B.prototype instanceof x?B:x,Y=Object.create(Z.prototype),dt=new T(H||[]);return c(Y,"_invoke",{value:N(I,P,dt)}),Y}function m(I,B,P){try{return{type:"normal",arg:I.call(B,P)}}catch(H){return{type:"throw",arg:H}}}a.wrap=p;var v="suspendedStart",b="suspendedYield",g="executing",y="completed",w={};function x(){}function C(){}function O(){}var D={};d(D,u,function(){return this});var j=Object.getPrototypeOf,U=j&&j(j(R([])));U&&U!==s&&i.call(U,u)&&(D=U);var L=O.prototype=x.prototype=Object.create(D);function V(I){["next","throw","return"].forEach(function(B){d(I,B,function(P){return this._invoke(B,P)})})}function A(I,B){function P(Y,dt,gt,bt){var Q=m(I[Y],I,dt);if(Q.type!=="throw"){var q=Q.arg,tt=q.value;return tt&&typeof tt=="object"&&i.call(tt,"__await")?B.resolve(tt.__await).then(function(et){P("next",et,gt,bt)},function(et){P("throw",et,gt,bt)}):B.resolve(tt).then(function(et){q.value=et,gt(q)},function(et){return P("throw",et,gt,bt)})}bt(Q.arg)}var H;function Z(Y,dt){function gt(){return new B(function(bt,Q){P(Y,dt,bt,Q)})}return H=H?H.then(gt,gt):gt()}c(this,"_invoke",{value:Z})}function N(I,B,P){var H=v;return function(Z,Y){if(H===g)throw new Error("Generator is already running");if(H===y){if(Z==="throw")throw Y;return F()}for(P.method=Z,P.arg=Y;;){var dt=P.delegate;if(dt){var gt=k(dt,P);if(gt){if(gt===w)continue;return gt}}if(P.method==="next")P.sent=P._sent=P.arg;else if(P.method==="throw"){if(H===v)throw H=y,P.arg;P.dispatchException(P.arg)}else P.method==="return"&&P.abrupt("return",P.arg);H=g;var bt=m(I,B,P);if(bt.type==="normal"){if(H=P.done?y:b,bt.arg===w)continue;return{value:bt.arg,done:P.done}}bt.type==="throw"&&(H=y,P.method="throw",P.arg=bt.arg)}}}function k(I,B){var P=B.method,H=I.iterator[P];if(H===o)return B.delegate=null,P==="throw"&&I.iterator.return&&(B.method="return",B.arg=o,k(I,B),B.method==="throw")||P!=="return"&&(B.method="throw",B.arg=new TypeError("The iterator does not provide a '"+P+"' method")),w;var Z=m(H,I.iterator,B.arg);if(Z.type==="throw")return B.method="throw",B.arg=Z.arg,B.delegate=null,w;var Y=Z.arg;return Y?Y.done?(B[I.resultName]=Y.value,B.next=I.nextLoc,B.method!=="return"&&(B.method="next",B.arg=o),B.delegate=null,w):Y:(B.method="throw",B.arg=new TypeError("iterator result is not an object"),B.delegate=null,w)}function S(I){var B={tryLoc:I[0]};1 in I&&(B.catchLoc=I[1]),2 in I&&(B.finallyLoc=I[2],B.afterLoc=I[3]),this.tryEntries.push(B)}function E(I){var B=I.completion||{};B.type="normal",delete B.arg,I.completion=B}function T(I){this.tryEntries=[{tryLoc:"root"}],I.forEach(S,this),this.reset(!0)}function R(I){if(I){var B=I[u];if(B)return B.call(I);if(typeof I.next=="function")return I;if(!isNaN(I.length)){var P=-1,H=function Z(){for(;++P<I.length;)if(i.call(I,P))return Z.value=I[P],Z.done=!1,Z;return Z.value=o,Z.done=!0,Z};return H.next=H}}return{next:F}}function F(){return{value:o,done:!0}}return C.prototype=O,c(L,"constructor",{value:O,configurable:!0}),c(O,"constructor",{value:C,configurable:!0}),C.displayName=d(O,h,"GeneratorFunction"),a.isGeneratorFunction=function(I){var B=typeof I=="function"&&I.constructor;return!!B&&(B===C||(B.displayName||B.name)==="GeneratorFunction")},a.mark=function(I){return Object.setPrototypeOf?Object.setPrototypeOf(I,O):(I.__proto__=O,d(I,h,"GeneratorFunction")),I.prototype=Object.create(L),I},a.awrap=function(I){return{__await:I}},V(A.prototype),d(A.prototype,f,function(){return this}),a.AsyncIterator=A,a.async=function(I,B,P,H,Z){Z===void 0&&(Z=Promise);var Y=new A(p(I,B,P,H),Z);return a.isGeneratorFunction(B)?Y:Y.next().then(function(dt){return dt.done?dt.value:Y.next()})},V(L),d(L,h,"Generator"),d(L,u,function(){return this}),d(L,"toString",function(){return"[object Generator]"}),a.keys=function(I){var B=Object(I),P=[];for(var H in B)P.push(H);return P.reverse(),function Z(){for(;P.length;){var Y=P.pop();if(Y in B)return Z.value=Y,Z.done=!1,Z}return Z.done=!0,Z}},a.values=R,T.prototype={constructor:T,reset:function(I){if(this.prev=0,this.next=0,this.sent=this._sent=o,this.done=!1,this.delegate=null,this.method="next",this.arg=o,this.tryEntries.forEach(E),!I)for(var B in this)B.charAt(0)==="t"&&i.call(this,B)&&!isNaN(+B.slice(1))&&(this[B]=o)},stop:function(){this.done=!0;var I=this.tryEntries[0].completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(I){if(this.done)throw I;var B=this;function P(bt,Q){return Y.type="throw",Y.arg=I,B.next=bt,Q&&(B.method="next",B.arg=o),!!Q}for(var H=this.tryEntries.length-1;H>=0;--H){var Z=this.tryEntries[H],Y=Z.completion;if(Z.tryLoc==="root")return P("end");if(Z.tryLoc<=this.prev){var dt=i.call(Z,"catchLoc"),gt=i.call(Z,"finallyLoc");if(dt&>){if(this.prev<Z.catchLoc)return P(Z.catchLoc,!0);if(this.prev<Z.finallyLoc)return P(Z.finallyLoc)}else if(dt){if(this.prev<Z.catchLoc)return P(Z.catchLoc,!0)}else{if(!gt)throw new Error("try statement without catch or finally");if(this.prev<Z.finallyLoc)return P(Z.finallyLoc)}}}},abrupt:function(I,B){for(var P=this.tryEntries.length-1;P>=0;--P){var H=this.tryEntries[P];if(H.tryLoc<=this.prev&&i.call(H,"finallyLoc")&&this.prev<H.finallyLoc){var Z=H;break}}Z&&(I==="break"||I==="continue")&&Z.tryLoc<=B&&B<=Z.finallyLoc&&(Z=null);var Y=Z?Z.completion:{};return Y.type=I,Y.arg=B,Z?(this.method="next",this.next=Z.finallyLoc,w):this.complete(Y)},complete:function(I,B){if(I.type==="throw")throw I.arg;return I.type==="break"||I.type==="continue"?this.next=I.arg:I.type==="return"?(this.rval=this.arg=I.arg,this.method="return",this.next="end"):I.type==="normal"&&B&&(this.next=B),w},finish:function(I){for(var B=this.tryEntries.length-1;B>=0;--B){var P=this.tryEntries[B];if(P.finallyLoc===I)return this.complete(P.completion,P.afterLoc),E(P),w}},catch:function(I){for(var B=this.tryEntries.length-1;B>=0;--B){var P=this.tryEntries[B];if(P.tryLoc===I){var H=P.completion;if(H.type==="throw"){var Z=H.arg;E(P)}return Z}}throw new Error("illegal catch attempt")},delegateYield:function(I,B,P){return this.delegate={iterator:R(I),resultName:B,nextLoc:P},this.method==="next"&&(this.arg=o),w}},a}(typeof r=="object"?r.exports:{});try{regeneratorRuntime=n}catch(a){typeof globalThis=="object"?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},{}],493:[function(t,r,e){var n=t("buffer").Buffer,a=t("inherits"),o=t("hash-base"),s=new Array(16),i=[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],c=[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],l=[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],u=[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],f=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0];function d(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(w,x){return w<<x|w>>>32-x}function m(w,x,C,O,D,j,U,L){return p(w+(x^C^O)+j+U|0,L)+D|0}function v(w,x,C,O,D,j,U,L){return p(w+(x&C|~x&O)+j+U|0,L)+D|0}function b(w,x,C,O,D,j,U,L){return p(w+((x|~C)^O)+j+U|0,L)+D|0}function g(w,x,C,O,D,j,U,L){return p(w+(x&O|C&~O)+j+U|0,L)+D|0}function y(w,x,C,O,D,j,U,L){return p(w+(x^(C|~O))+j+U|0,L)+D|0}a(d,o),d.prototype._update=function(){for(var w=s,x=0;x<16;++x)w[x]=this._block.readInt32LE(4*x);for(var C=0|this._a,O=0|this._b,D=0|this._c,j=0|this._d,U=0|this._e,L=0|this._a,V=0|this._b,A=0|this._c,N=0|this._d,k=0|this._e,S=0;S<80;S+=1){var E,T;S<16?(E=m(C,O,D,j,U,w[i[S]],f[0],l[S]),T=y(L,V,A,N,k,w[c[S]],h[0],u[S])):S<32?(E=v(C,O,D,j,U,w[i[S]],f[1],l[S]),T=g(L,V,A,N,k,w[c[S]],h[1],u[S])):S<48?(E=b(C,O,D,j,U,w[i[S]],f[2],l[S]),T=b(L,V,A,N,k,w[c[S]],h[2],u[S])):S<64?(E=g(C,O,D,j,U,w[i[S]],f[3],l[S]),T=v(L,V,A,N,k,w[c[S]],h[3],u[S])):(E=y(C,O,D,j,U,w[i[S]],f[4],l[S]),T=m(L,V,A,N,k,w[c[S]],h[4],u[S])),C=U,U=j,j=p(D,10),D=O,O=E,L=k,k=N,N=p(A,10),A=V,V=T}var R=this._b+D+N|0;this._b=this._c+j+k|0,this._c=this._d+U+L|0,this._d=this._e+C+V|0,this._e=this._a+O+A|0,this._a=R},d.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 w=n.alloc?n.alloc(20):new n(20);return w.writeInt32LE(this._a,0),w.writeInt32LE(this._b,4),w.writeInt32LE(this._c,8),w.writeInt32LE(this._d,12),w.writeInt32LE(this._e,16),w},r.exports=d},{buffer:220,"hash-base":425,inherits:440}],494:[function(t,r,e){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var n=t("buffer"),a=n.Buffer;function o(i,c){for(var l in i)c[l]=i[l]}function s(i,c,l){return a(i,c,l)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?r.exports=n:(o(n,e),e.Buffer=s),s.prototype=Object.create(a.prototype),o(a,s),s.from=function(i,c,l){if(typeof i=="number")throw new TypeError("Argument must not be a number");return a(i,c,l)},s.alloc=function(i,c,l){if(typeof i!="number")throw new TypeError("Argument must be a number");var u=a(i);return c!==void 0?typeof l=="string"?u.fill(c,l):u.fill(c):u.fill(0),u},s.allocUnsafe=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return a(i)},s.allocUnsafeSlow=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(i)}},{buffer:220}],495:[function(t,r,e){(function(n){(function(){var a,o=t("buffer"),s=o.Buffer,i={};for(a in o)o.hasOwnProperty(a)&&a!=="SlowBuffer"&&a!=="Buffer"&&(i[a]=o[a]);var c=i.Buffer={};for(a in s)s.hasOwnProperty(a)&&a!=="allocUnsafe"&&a!=="allocUnsafeSlow"&&(c[a]=s[a]);if(i.Buffer.prototype=s.prototype,c.from&&c.from!==Uint8Array.from||(c.from=function(l,u,f){if(typeof l=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof l);if(l&&l.length===void 0)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof l);return s(l,u,f)}),c.alloc||(c.alloc=function(l,u,f){if(typeof l!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof l);if(l<0||l>=2*(1<<30))throw new RangeError('The value "'+l+'" is invalid for option "size"');var h=s(l);return u&&u.length!==0?typeof f=="string"?h.fill(u,f):h.fill(u):h.fill(0),h}),!i.kStringMaxLength)try{i.kStringMaxLength=n.binding("buffer").kStringMaxLength}catch(l){}i.constants||(i.constants={MAX_LENGTH:i.kMaxLength},i.kStringMaxLength&&(i.constants.MAX_STRING_LENGTH=i.kStringMaxLength)),r.exports=i}).call(this)}).call(this,t("_process"))},{_process:467,buffer:220}],496:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0});var n=t("xmlchars/xml/1.0/ed5"),a=t("xmlchars/xml/1.1/ed2"),o=t("xmlchars/xmlns/1.0/ed3"),s=n.isS,i=n.isChar,c=n.isNameStartChar,l=n.isNameChar,u=n.S_LIST,f=n.NAME_RE,h=a.isChar,d=o.isNCNameStartChar,p=o.isNCNameChar,m=o.NC_NAME_RE,v="http://www.w3.org/XML/1998/namespace",b="http://www.w3.org/2000/xmlns/",g={__proto__:null,xml:v,xmlns:b},y={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},w=-1,x=-2,C=0,O=1,D=2,j=3,U=4,L=5,V=6,A=7,N=8,k=9,S=10,E=11,T=12,R=13,F=14,I=15,B=16,P=17,H=18,Z=19,Y=20,dt=21,gt=22,bt=23,Q=24,q=25,tt=26,et=27,_t=28,J=29,st=30,Ot=31,W=32,X=33,it=34,xt=35,Nt=36,G=37,Mt=38,Pt=39,lt=40,ct=41,pt=42,Dt=43,rt=44,nt=9,ht=10,St=13,ut=32,vt=33,ft=34,yt=38,Ct=39,zt=45,Bt=47,re=59,Yt=60,qt=61,te=62,le=63,ne=91,de=93,Xt=133,pe=8232,Re=function(or){return or===ft||or===Ct},je=[ft,Ct],ie=[].concat(je,[ne,te]),xe=[].concat(je,[Yt,de]),ye=[qt,le].concat(lr(u)),Zt=[].concat(lr(u),[te,yt,Yt]);function Te(or,wt,Ft){switch(wt){case"xml":Ft!==v&&or.fail("xml prefix must be bound to ".concat(v,"."));break;case"xmlns":Ft!==b&&or.fail("xmlns prefix must be bound to ".concat(b,"."))}switch(Ft){case b:or.fail(wt===""?"the default namespace may not be set to ".concat(Ft,"."):'may not assign a prefix (even "xmlns") to the URI '.concat(b,"."));break;case v:switch(wt){case"xml":break;case"":or.fail("the default namespace may not be set to ".concat(Ft,"."));break;default:or.fail("may not assign the xml namespace to another prefix.")}}}function Se(or,wt){for(var Ft=0,Ut=Object.keys(wt);Ft<Ut.length;Ft++){var ve=Ut[Ft];Te(or,ve,wt[ve])}}var Ae=function(or){return m.test(or)},Pe=function(or){return f.test(or)},He=0,fe=1,Be=2;e.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];var ze={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"},qe=function(){function or(wt){At(this,or),this.opt=wt!=null?wt:{},this.fragmentOpt=!!this.opt.fragment;var Ft=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,Ft){this.nameStartCheck=d,this.nameCheck=p,this.isName=Ae,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},g);var Ut=this.opt.additionalNamespaces;Ut!=null&&(Se(this,Ut),Object.assign(this.ns,Ut))}else this.nameStartCheck=c,this.nameCheck=l,this.isName=Pe,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()}return Rt(or,[{key:"closed",get:function(){return this._closed}},{key:"_init",value:function(){var wt;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=He,this.attribList=[];var Ft=this.fragmentOpt;this.state=Ft?R:C,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=Ft,this.xmlDeclPossible=!Ft,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;var Ut=this.opt.defaultXMLVersion;if(Ut===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");Ut="1.0"}this.setXMLVersion(Ut),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(y),(wt=this.readyHandler)===null||wt===void 0||wt.call(this)}},{key:"position",get:function(){return this.chunkPosition+this.i}},{key:"columnIndex",get:function(){return this.position-this.positionAtNewLine}},{key:"on",value:function(wt,Ft){this[ze[wt]]=Ft}},{key:"off",value:function(wt){this[ze[wt]]=void 0}},{key:"makeError",value:function(wt){var Ft,Ut=(Ft=this.fileName)!==null&&Ft!==void 0?Ft:"";return this.trackPosition&&(Ut.length>0&&(Ut+=":"),Ut+="".concat(this.line,":").concat(this.column)),Ut.length>0&&(Ut+=": "),new Error(Ut+wt)}},{key:"fail",value:function(wt){var Ft=this.makeError(wt),Ut=this.errorHandler;if(Ut===void 0)throw Ft;return Ut(Ft),this}},{key:"write",value:function(wt){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");var Ft=!1;wt===null?(Ft=!0,wt=""):typeof wt=="object"&&(wt=wt.toString()),this.carriedFromPrevious!==void 0&&(wt="".concat(this.carriedFromPrevious).concat(wt),this.carriedFromPrevious=void 0);var Ut=wt.length,ve=wt.charCodeAt(Ut-1);!Ft&&(ve===St||ve>=55296&&ve<=56319)&&(this.carriedFromPrevious=wt[Ut-1],Ut--,wt=wt.slice(0,Ut));var De=this.stateTable;for(this.chunk=wt,this.i=0;this.i<Ut;)De[this.state].call(this);return this.chunkPosition+=Ut,Ft?this.end():this}},{key:"close",value:function(){return this.write(null)}},{key:"getCode10",value:function(){var wt=this.chunk,Ft=this.i;if(this.prevI=Ft,this.i=Ft+1,Ft>=wt.length)return w;var Ut=wt.charCodeAt(Ft);if(this.column++,Ut<55296){if(Ut>=ut||Ut===nt)return Ut;switch(Ut){case ht:return this.line++,this.column=0,this.positionAtNewLine=this.position,ht;case St:return wt.charCodeAt(Ft+1)===ht&&(this.i=Ft+2),this.line++,this.column=0,this.positionAtNewLine=this.position,x;default:return this.fail("disallowed character."),Ut}}if(Ut>56319)return Ut>=57344&&Ut<=65533||this.fail("disallowed character."),Ut;var ve=65536+1024*(Ut-55296)+(wt.charCodeAt(Ft+1)-56320);return this.i=Ft+2,ve>1114111&&this.fail("disallowed character."),ve}},{key:"getCode11",value:function(){var wt=this.chunk,Ft=this.i;if(this.prevI=Ft,this.i=Ft+1,Ft>=wt.length)return w;var Ut=wt.charCodeAt(Ft);if(this.column++,Ut<55296){if(Ut>31&&Ut<127||Ut>159&&Ut!==pe||Ut===nt)return Ut;switch(Ut){case ht:return this.line++,this.column=0,this.positionAtNewLine=this.position,ht;case St:var ve=wt.charCodeAt(Ft+1);ve!==ht&&ve!==Xt||(this.i=Ft+2);case Xt:case pe:return this.line++,this.column=0,this.positionAtNewLine=this.position,x;default:return this.fail("disallowed character."),Ut}}if(Ut>56319)return Ut>=57344&&Ut<=65533||this.fail("disallowed character."),Ut;var De=65536+1024*(Ut-55296)+(wt.charCodeAt(Ft+1)-56320);return this.i=Ft+2,De>1114111&&this.fail("disallowed character."),De}},{key:"getCodeNorm",value:function(){var wt=this.getCode();return wt===x?ht:wt}},{key:"unget",value:function(){this.i=this.prevI,this.column--}},{key:"captureTo",value:function(wt){for(var Ft=this.i,Ut=this.chunk;;){var ve=this.getCode(),De=ve===x,yr=De?ht:ve;if(yr===w||wt.includes(yr))return this.text+=Ut.slice(Ft,this.prevI),yr;De&&(this.text+="".concat(Ut.slice(Ft,this.prevI),`
|
||
`),Ft=this.i)}}},{key:"captureToChar",value:function(wt){for(var Ft=this.i,Ut=this.chunk;;){var ve=this.getCode();switch(ve){case x:this.text+="".concat(Ut.slice(Ft,this.prevI),`
|
||
`),Ft=this.i,ve=ht;break;case w:return this.text+=Ut.slice(Ft),!1}if(ve===wt)return this.text+=Ut.slice(Ft,this.prevI),!0}}},{key:"captureNameChars",value:function(){for(var wt=this.chunk,Ft=this.i;;){var Ut=this.getCode();if(Ut===w)return this.name+=wt.slice(Ft),w;if(!l(Ut))return this.name+=wt.slice(Ft,this.prevI),Ut===x?ht:Ut}}},{key:"skipSpaces",value:function(){for(;;){var wt=this.getCodeNorm();if(wt===w||!s(wt))return wt}}},{key:"setXMLVersion",value:function(wt){this.currentXMLVersion=wt,wt==="1.0"?(this.isChar=i,this.getCode=this.getCode10):(this.isChar=h,this.getCode=this.getCode11)}},{key:"sBegin",value:function(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=O}},{key:"sBeginWhitespace",value:function(){var wt=this.i,Ft=this.skipSpaces();switch(this.prevI!==wt&&(this.xmlDeclPossible=!1),Ft){case Yt:if(this.state=I,this.text.length!==0)throw new Error("no-empty text at start");break;case w:break;default:this.unget(),this.state=R,this.xmlDeclPossible=!1}}},{key:"sDoctype",value:function(){var wt,Ft=this.captureTo(ie);switch(Ft){case te:(wt=this.doctypeHandler)===null||wt===void 0||wt.call(this,this.text),this.text="",this.state=R,this.doctype=!0;break;case w:break;default:this.text+=String.fromCodePoint(Ft),Ft===ne?this.state=U:Re(Ft)&&(this.state=j,this.q=Ft)}}},{key:"sDoctypeQuote",value:function(){var wt=this.q;this.captureToChar(wt)&&(this.text+=String.fromCodePoint(wt),this.q=null,this.state=D)}},{key:"sDTD",value:function(){var wt=this.captureTo(xe);wt!==w&&(this.text+=String.fromCodePoint(wt),wt===de?this.state=D:wt===Yt?this.state=V:Re(wt)&&(this.state=L,this.q=wt))}},{key:"sDTDQuoted",value:function(){var wt=this.q;this.captureToChar(wt)&&(this.text+=String.fromCodePoint(wt),this.state=U,this.q=null)}},{key:"sDTDOpenWaka",value:function(){var wt=this.getCodeNorm();switch(this.text+=String.fromCodePoint(wt),wt){case vt:this.state=A,this.openWakaBang="";break;case le:this.state=E;break;default:this.state=U}}},{key:"sDTDOpenWakaBang",value:function(){var wt=String.fromCodePoint(this.getCodeNorm()),Ft=this.openWakaBang+=wt;this.text+=wt,Ft!=="-"&&(this.state=Ft==="--"?N:U,this.openWakaBang="")}},{key:"sDTDComment",value:function(){this.captureToChar(zt)&&(this.text+="-",this.state=k)}},{key:"sDTDCommentEnding",value:function(){var wt=this.getCodeNorm();this.text+=String.fromCodePoint(wt),this.state=wt===zt?S:N}},{key:"sDTDCommentEnded",value:function(){var wt=this.getCodeNorm();this.text+=String.fromCodePoint(wt),wt===te?this.state=U:(this.fail("malformed comment."),this.state=N)}},{key:"sDTDPI",value:function(){this.captureToChar(le)&&(this.text+="?",this.state=T)}},{key:"sDTDPIEnding",value:function(){var wt=this.getCodeNorm();this.text+=String.fromCodePoint(wt),wt===te&&(this.state=U)}},{key:"sText",value:function(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}},{key:"sEntity",value:function(){var wt=this.i,Ft=this.chunk;t:for(;;)switch(this.getCode()){case x:this.entity+="".concat(Ft.slice(wt,this.prevI),`
|
||
`),wt=this.i;break;case re:var Ut=this.entityReturnState,ve=this.entity+Ft.slice(wt,this.prevI);this.state=Ut;var De=void 0;ve===""?(this.fail("empty entity name."),De="&;"):(De=this.parseEntity(ve),this.entity=""),Ut===R&&this.textHandler===void 0||(this.text+=De);break t;case w:this.entity+=Ft.slice(wt);break t}}},{key:"sOpenWaka",value:function(){var wt=this.getCode();if(c(wt))this.state=it,this.unget(),this.xmlDeclPossible=!1;else switch(wt){case Bt:this.state=Dt,this.xmlDeclPossible=!1;break;case vt:this.state=B,this.openWakaBang="",this.xmlDeclPossible=!1;break;case le:this.state=bt;break;default:this.fail("disallowed character in tag name"),this.state=R,this.xmlDeclPossible=!1}}},{key:"sOpenWakaBang",value:function(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=Y,this.openWakaBang="";break;case"--":this.state=P,this.openWakaBang="";break;case"DOCTYPE":this.state=D,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}},{key:"sComment",value:function(){this.captureToChar(zt)&&(this.state=H)}},{key:"sCommentEnding",value:function(){var wt,Ft=this.getCodeNorm();Ft===zt?(this.state=Z,(wt=this.commentHandler)===null||wt===void 0||wt.call(this,this.text),this.text=""):(this.text+="-".concat(String.fromCodePoint(Ft)),this.state=P)}},{key:"sCommentEnded",value:function(){var wt=this.getCodeNorm();wt!==te?(this.fail("malformed comment."),this.text+="--".concat(String.fromCodePoint(wt)),this.state=P):this.state=R}},{key:"sCData",value:function(){this.captureToChar(de)&&(this.state=dt)}},{key:"sCDataEnding",value:function(){var wt=this.getCodeNorm();wt===de?this.state=gt:(this.text+="]".concat(String.fromCodePoint(wt)),this.state=Y)}},{key:"sCDataEnding2",value:function(){var wt,Ft=this.getCodeNorm();switch(Ft){case te:(wt=this.cdataHandler)===null||wt===void 0||wt.call(this,this.text),this.text="",this.state=R;break;case de:this.text+="]";break;default:this.text+="]]".concat(String.fromCodePoint(Ft)),this.state=Y}}},{key:"sPIFirstChar",value:function(){var wt=this.getCodeNorm();this.nameStartCheck(wt)?(this.piTarget+=String.fromCodePoint(wt),this.state=Q):wt===le||s(wt)?(this.fail("processing instruction without a target."),this.state=wt===le?tt:q):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(wt),this.state=Q)}},{key:"sPIRest",value:function(){for(var wt=this.chunk,Ft=this.i;;){var Ut=this.getCodeNorm();if(Ut===w)return void(this.piTarget+=wt.slice(Ft));if(!this.nameCheck(Ut)){this.piTarget+=wt.slice(Ft,this.prevI);var ve=Ut===le;ve||s(Ut)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=ve?X:et):this.state=ve?tt:q:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(Ut));break}}}},{key:"sPIBody",value:function(){if(this.text.length===0){var wt=this.getCodeNorm();wt===le?this.state=tt:s(wt)||(this.text=String.fromCodePoint(wt))}else this.captureToChar(le)&&(this.state=tt)}},{key:"sPIEnding",value:function(){var wt,Ft=this.getCodeNorm();if(Ft===te){var Ut=this.piTarget;Ut.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),(wt=this.piHandler)===null||wt===void 0||wt.call(this,{target:Ut,body:this.text}),this.piTarget=this.text="",this.state=R}else Ft===le?this.text+="?":(this.text+="?".concat(String.fromCodePoint(Ft)),this.state=q);this.xmlDeclPossible=!1}},{key:"sXMLDeclNameStart",value:function(){var wt=this.skipSpaces();wt!==le?wt!==w&&(this.state=_t,this.name=String.fromCodePoint(wt)):this.state=X}},{key:"sXMLDeclName",value:function(){var wt=this.captureTo(ye);if(wt===le)return this.state=X,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(s(wt)||wt===qt){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail("expected the name ".concat(this.xmlDeclExpects[0],"."));break;default:this.fail("expected one of ".concat(this.xmlDeclExpects.join(", ")))}this.state=wt===qt?st:J}}},{key:"sXMLDeclEq",value:function(){var wt=this.getCodeNorm();if(wt===le)return this.state=X,void this.fail("XML declaration is incomplete.");s(wt)||(wt!==qt&&this.fail("value required."),this.state=st)}},{key:"sXMLDeclValueStart",value:function(){var wt=this.getCodeNorm();if(wt===le)return this.state=X,void this.fail("XML declaration is incomplete.");s(wt)||(Re(wt)?this.q=wt:(this.fail("value must be quoted."),this.q=ut),this.state=Ot)}},{key:"sXMLDeclValue",value:function(){var wt=this.captureTo([this.q,le]);if(wt===le)return this.state=X,this.text="",void this.fail("XML declaration is incomplete.");if(wt!==w){var Ft=this.text;switch(this.text="",this.name){case"version":this.xmlDeclExpects=["encoding","standalone"];var Ut=Ft;this.xmlDecl.version=Ut,/^1\.[0-9]+$/.test(Ut)?this.opt.forceXMLVersion||this.setXMLVersion(Ut):this.fail("version number must match /^1\\.[0-9]+$/.");break;case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(Ft)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=Ft;break;case"standalone":Ft!=="yes"&&Ft!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=Ft}this.name="",this.state=W}}},{key:"sXMLDeclSeparator",value:function(){var wt=this.getCodeNorm();wt!==le?(s(wt)||(this.fail("whitespace required."),this.unget()),this.state=et):this.state=X}},{key:"sXMLDeclEnding",value:function(){var wt;this.getCodeNorm()===te?(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."),(wt=this.xmldeclHandler)===null||wt===void 0||wt.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=R):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}},{key:"sOpenTag",value:function(){var wt,Ft=this.captureNameChars();if(Ft!==w){var Ut=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=Ut.ns=Object.create(null)),(wt=this.openTagStartHandler)===null||wt===void 0||wt.call(this,Ut),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),Ft){case te:this.openTag();break;case Bt:this.state=xt;break;default:s(Ft)||this.fail("disallowed character in tag name."),this.state=Nt}}}},{key:"sOpenTagSlash",value:function(){this.getCode()===te?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=Nt)}},{key:"sAttrib",value:function(){var wt=this.skipSpaces();wt!==w&&(c(wt)?(this.unget(),this.state=G):wt===te?this.openTag():wt===Bt?this.state=xt:this.fail("disallowed character in attribute name."))}},{key:"sAttribName",value:function(){var wt=this.captureNameChars();wt===qt?this.state=Pt:s(wt)?this.state=Mt:wt===te?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):wt!==w&&this.fail("disallowed character in attribute name.")}},{key:"sAttribNameSawWhite",value:function(){var wt=this.skipSpaces();switch(wt){case w:return;case qt:this.state=Pt;break;default:this.fail("attribute without value."),this.text="",this.name="",wt===te?this.openTag():c(wt)?(this.unget(),this.state=G):(this.fail("disallowed character in attribute name."),this.state=Nt)}}},{key:"sAttribValue",value:function(){var wt=this.getCodeNorm();Re(wt)?(this.q=wt,this.state=lt):s(wt)||(this.fail("unquoted attribute value."),this.state=pt,this.unget())}},{key:"sAttribValueQuoted",value:function(){for(var wt=this.q,Ft=this.chunk,Ut=this.i;;)switch(this.getCode()){case wt:return this.pushAttrib(this.name,this.text+Ft.slice(Ut,this.prevI)),this.name=this.text="",this.q=null,void(this.state=ct);case yt:return this.text+=Ft.slice(Ut,this.prevI),this.state=F,void(this.entityReturnState=lt);case ht:case x:case nt:this.text+="".concat(Ft.slice(Ut,this.prevI)," "),Ut=this.i;break;case Yt:return this.text+=Ft.slice(Ut,this.prevI),void this.fail("disallowed character.");case w:return void(this.text+=Ft.slice(Ut))}}},{key:"sAttribValueClosed",value:function(){var wt=this.getCodeNorm();s(wt)?this.state=Nt:wt===te?this.openTag():wt===Bt?this.state=xt:c(wt)?(this.fail("no whitespace between attributes."),this.unget(),this.state=G):this.fail("disallowed character in attribute name.")}},{key:"sAttribValueUnquoted",value:function(){var wt=this.captureTo(Zt);switch(wt){case yt:this.state=F,this.entityReturnState=pt;break;case Yt:this.fail("disallowed character.");break;case w:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",wt===te?this.openTag():this.state=Nt}}},{key:"sCloseTag",value:function(){var wt=this.captureNameChars();wt===te?this.closeTag():s(wt)?this.state=rt:wt!==w&&this.fail("disallowed character in closing tag.")}},{key:"sCloseTagSawWhite",value:function(){switch(this.skipSpaces()){case te:this.closeTag();break;case w:break;default:this.fail("disallowed character in closing tag.")}}},{key:"handleTextInRoot",value:function(){var wt=this.i,Ft=this.forbiddenState,Ut=this.chunk,ve=this.textHandler;t:for(;;)switch(this.getCode()){case Yt:if(this.state=I,ve!==void 0){var De=this.text,yr=Ut.slice(wt,this.prevI);De.length!==0?(ve(De+yr),this.text=""):yr.length!==0&&ve(yr)}Ft=He;break t;case yt:this.state=F,this.entityReturnState=R,ve!==void 0&&(this.text+=Ut.slice(wt,this.prevI)),Ft=He;break t;case de:switch(Ft){case He:Ft=fe;break;case fe:Ft=Be;break;case Be:break;default:throw new Error("impossible state")}break;case te:Ft===Be&&this.fail('the string "]]>" is disallowed in char data.'),Ft=He;break;case x:ve!==void 0&&(this.text+="".concat(Ut.slice(wt,this.prevI),`
|
||
`)),wt=this.i,Ft=He;break;case w:ve!==void 0&&(this.text+=Ut.slice(wt));break t;default:Ft=He}this.forbiddenState=Ft}},{key:"handleTextOutsideRoot",value:function(){var wt=this.i,Ft=this.chunk,Ut=this.textHandler,ve=!1;t:for(;;){var De=this.getCode();switch(De){case Yt:if(this.state=I,Ut!==void 0){var yr=this.text,Hr=Ft.slice(wt,this.prevI);yr.length!==0?(Ut(yr+Hr),this.text=""):Hr.length!==0&&Ut(Hr)}break t;case yt:this.state=F,this.entityReturnState=R,Ut!==void 0&&(this.text+=Ft.slice(wt,this.prevI)),ve=!0;break t;case x:Ut!==void 0&&(this.text+="".concat(Ft.slice(wt,this.prevI),`
|
||
`)),wt=this.i;break;case w:Ut!==void 0&&(this.text+=Ft.slice(wt));break t;default:s(De)||(ve=!0)}}ve&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}},{key:"pushAttribNS",value:function(wt,Ft){var Ut,ve=this.qname(wt),De=ve.prefix,yr=ve.local,Hr={name:wt,prefix:De,local:yr,value:Ft};if(this.attribList.push(Hr),(Ut=this.attributeHandler)===null||Ut===void 0||Ut.call(this,Hr),De==="xmlns"){var Qr=Ft.trim();this.currentXMLVersion==="1.0"&&Qr===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[yr]=Qr,Te(this,yr,Qr)}else if(wt==="xmlns"){var Mn=Ft.trim();this.topNS[""]=Mn,Te(this,"",Mn)}}},{key:"pushAttribPlain",value:function(wt,Ft){var Ut,ve={name:wt,value:Ft};this.attribList.push(ve),(Ut=this.attributeHandler)===null||Ut===void 0||Ut.call(this,ve)}},{key:"end",value:function(){var wt,Ft;this.sawRoot||this.fail("document must contain a root element.");for(var Ut=this.tags;Ut.length>0;){var ve=Ut.pop();this.fail("unclosed tag: ".concat(ve.name))}this.state!==C&&this.state!==R&&this.fail("unexpected end.");var De=this.text;return De.length!==0&&((wt=this.textHandler)===null||wt===void 0||wt.call(this,De),this.text=""),this._closed=!0,(Ft=this.endHandler)===null||Ft===void 0||Ft.call(this),this._init(),this}},{key:"resolve",value:function(wt){var Ft,Ut,ve=this.topNS[wt];if(ve!==void 0)return ve;for(var De=this.tags,yr=De.length-1;yr>=0;yr--)if((ve=De[yr].ns[wt])!==void 0)return ve;return(ve=this.ns[wt])!==void 0?ve:(Ut=(Ft=this.opt).resolvePrefix)===null||Ut===void 0?void 0:Ut.call(Ft,wt)}},{key:"qname",value:function(wt){var Ft=wt.indexOf(":");if(Ft===-1)return{prefix:"",local:wt};var Ut=wt.slice(Ft+1),ve=wt.slice(0,Ft);return(ve===""||Ut===""||Ut.includes(":"))&&this.fail("malformed name: ".concat(wt,".")),{prefix:ve,local:Ut}}},{key:"processAttribsNS",value:function(){var wt,Ft=this.attribList,Ut=this.tag,ve=this.qname(Ut.name),De=ve.prefix,yr=ve.local;Ut.prefix=De,Ut.local=yr;var Hr=Ut.uri=(wt=this.resolve(De))!==null&&wt!==void 0?wt:"";if(De!==""&&(De==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),Hr===""&&(this.fail("unbound namespace prefix: ".concat(JSON.stringify(De),".")),Ut.uri=De)),Ft.length!==0){var Qr,Mn=Ut.attributes,bn=new Set,on=ml(Ft);try{for(on.s();!(Qr=on.n()).done;){var yn=Qr.value,Je=yn.name,Ke=yn.prefix,ai=yn.local,wn=void 0,si=void 0;Ke===""?(wn=Je==="xmlns"?b:"",si=Je):((wn=this.resolve(Ke))===void 0&&(this.fail("unbound namespace prefix: ".concat(JSON.stringify(Ke),".")),wn=Ke),si="{".concat(wn,"}").concat(ai)),bn.has(si)&&this.fail("duplicate attribute: ".concat(si,".")),bn.add(si),yn.uri=wn,Mn[Je]=yn}}catch(Wi){on.e(Wi)}finally{on.f()}this.attribList=[]}}},{key:"processAttribsPlain",value:function(){var wt,Ft=this.attribList,Ut=this.tag.attributes,ve=ml(Ft);try{for(ve.s();!(wt=ve.n()).done;){var De=wt.value,yr=De.name,Hr=De.value;Ut[yr]!==void 0&&this.fail("duplicate attribute: ".concat(yr,".")),Ut[yr]=Hr}}catch(Qr){ve.e(Qr)}finally{ve.f()}this.attribList=[]}},{key:"openTag",value:function(){var wt;this.processAttribs();var Ft=this.tags,Ut=this.tag;Ut.isSelfClosing=!1,(wt=this.openTagHandler)===null||wt===void 0||wt.call(this,Ut),Ft.push(Ut),this.state=R,this.name=""}},{key:"openSelfClosingTag",value:function(){var wt,Ft,Ut;this.processAttribs();var ve=this.tags,De=this.tag;De.isSelfClosing=!0,(wt=this.openTagHandler)===null||wt===void 0||wt.call(this,De),(Ft=this.closeTagHandler)===null||Ft===void 0||Ft.call(this,De),(this.tag=(Ut=ve[ve.length-1])!==null&&Ut!==void 0?Ut:null)===null&&(this.closedRoot=!0),this.state=R,this.name=""}},{key:"closeTag",value:function(){var wt=this.tags,Ft=this.name;if(this.state=R,this.name="",Ft==="")return this.fail("weird empty close tag."),void(this.text+="</>");for(var Ut=this.closeTagHandler,ve=wt.length;ve-- >0;){var De=this.tag=wt.pop();if(this.topNS=De.ns,Ut==null||Ut(De),De.name===Ft)break;this.fail("unexpected close tag.")}ve===0?this.closedRoot=!0:ve<0&&(this.fail("unmatched closing tag: ".concat(Ft,".")),this.text+="</".concat(Ft,">"))}},{key:"parseEntity",value:function(wt){if(wt[0]!=="#"){var Ft=this.ENTITIES[wt];return Ft!==void 0?Ft:(this.fail(this.isName(wt)?"undefined entity.":"disallowed character in entity name."),"&".concat(wt,";"))}var Ut=NaN;return wt[1]==="x"&&/^#x[0-9a-f]+$/i.test(wt)?Ut=parseInt(wt.slice(2),16):/^#[0-9]+$/.test(wt)&&(Ut=parseInt(wt.slice(1),10)),this.isChar(Ut)?String.fromCodePoint(Ut):(this.fail("malformed character entity."),"&".concat(wt,";"))}}]),or}();e.SaxesParser=qe},{"xmlchars/xml/1.0/ed5":543,"xmlchars/xml/1.1/ed2":544,"xmlchars/xmlns/1.0/ed3":545}],497:[function(t,r,e){var n=t("safe-buffer").Buffer;function a(o,s){this._block=n.alloc(o),this._finalSize=s,this._blockSize=o,this._len=0}a.prototype.update=function(o,s){typeof o=="string"&&(s=s||"utf8",o=n.from(o,s));for(var i=this._block,c=this._blockSize,l=o.length,u=this._len,f=0;f<l;){for(var h=u%c,d=Math.min(l-f,c-h),p=0;p<d;p++)i[h+p]=o[f+p];f+=d,(u+=d)%c==0&&this._update(i)}return this._len+=l,this},a.prototype.digest=function(o){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 i=8*this._len;if(i<=4294967295)this._block.writeUInt32BE(i,this._blockSize-4);else{var c=(4294967295&i)>>>0,l=(i-c)/4294967296;this._block.writeUInt32BE(l,this._blockSize-8),this._block.writeUInt32BE(c,this._blockSize-4)}this._update(this._block);var u=this._hash();return o?u.toString(o):u},a.prototype._update=function(){throw new Error("_update must be implemented by subclass")},r.exports=a},{"safe-buffer":494}],498:[function(t,r,e){var n=r.exports=function(a){a=a.toLowerCase();var o=n[a];if(!o)throw new Error(a+" is not supported (we accept pull requests)");return new o};n.sha=t("./sha"),n.sha1=t("./sha1"),n.sha224=t("./sha224"),n.sha256=t("./sha256"),n.sha384=t("./sha384"),n.sha512=t("./sha512")},{"./sha":499,"./sha1":500,"./sha224":501,"./sha256":502,"./sha384":503,"./sha512":504}],499:[function(t,r,e){var n=t("inherits"),a=t("./hash"),o=t("safe-buffer").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],i=new Array(80);function c(){this.init(),this._w=i,a.call(this,64,56)}function l(h){return h<<5|h>>>27}function u(h){return h<<30|h>>>2}function f(h,d,p,m){return h===0?d&p|~d&m:h===2?d&p|d&m|p&m:d^p^m}n(c,a),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(h){for(var d=this._w,p=0|this._a,m=0|this._b,v=0|this._c,b=0|this._d,g=0|this._e,y=0;y<16;++y)d[y]=h.readInt32BE(4*y);for(;y<80;++y)d[y]=d[y-3]^d[y-8]^d[y-14]^d[y-16];for(var w=0;w<80;++w){var x=~~(w/20),C=l(p)+f(x,m,v,b)+g+d[w]+s[x]|0;g=b,b=v,v=u(m),m=p,p=C}this._a=p+this._a|0,this._b=m+this._b|0,this._c=v+this._c|0,this._d=b+this._d|0,this._e=g+this._e|0},c.prototype._hash=function(){var h=o.allocUnsafe(20);return h.writeInt32BE(0|this._a,0),h.writeInt32BE(0|this._b,4),h.writeInt32BE(0|this._c,8),h.writeInt32BE(0|this._d,12),h.writeInt32BE(0|this._e,16),h},r.exports=c},{"./hash":497,inherits:440,"safe-buffer":494}],500:[function(t,r,e){var n=t("inherits"),a=t("./hash"),o=t("safe-buffer").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],i=new Array(80);function c(){this.init(),this._w=i,a.call(this,64,56)}function l(d){return d<<1|d>>>31}function u(d){return d<<5|d>>>27}function f(d){return d<<30|d>>>2}function h(d,p,m,v){return d===0?p&m|~p&v:d===2?p&m|p&v|m&v:p^m^v}n(c,a),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(d){for(var p=this._w,m=0|this._a,v=0|this._b,b=0|this._c,g=0|this._d,y=0|this._e,w=0;w<16;++w)p[w]=d.readInt32BE(4*w);for(;w<80;++w)p[w]=l(p[w-3]^p[w-8]^p[w-14]^p[w-16]);for(var x=0;x<80;++x){var C=~~(x/20),O=u(m)+h(C,v,b,g)+y+p[x]+s[C]|0;y=g,g=b,b=f(v),v=m,m=O}this._a=m+this._a|0,this._b=v+this._b|0,this._c=b+this._c|0,this._d=g+this._d|0,this._e=y+this._e|0},c.prototype._hash=function(){var d=o.allocUnsafe(20);return d.writeInt32BE(0|this._a,0),d.writeInt32BE(0|this._b,4),d.writeInt32BE(0|this._c,8),d.writeInt32BE(0|this._d,12),d.writeInt32BE(0|this._e,16),d},r.exports=c},{"./hash":497,inherits:440,"safe-buffer":494}],501:[function(t,r,e){var n=t("inherits"),a=t("./sha256"),o=t("./hash"),s=t("safe-buffer").Buffer,i=new Array(64);function c(){this.init(),this._w=i,o.call(this,64,56)}n(c,a),c.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},c.prototype._hash=function(){var l=s.allocUnsafe(28);return l.writeInt32BE(this._a,0),l.writeInt32BE(this._b,4),l.writeInt32BE(this._c,8),l.writeInt32BE(this._d,12),l.writeInt32BE(this._e,16),l.writeInt32BE(this._f,20),l.writeInt32BE(this._g,24),l},r.exports=c},{"./hash":497,"./sha256":502,inherits:440,"safe-buffer":494}],502:[function(t,r,e){var n=t("inherits"),a=t("./hash"),o=t("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],i=new Array(64);function c(){this.init(),this._w=i,a.call(this,64,56)}function l(m,v,b){return b^m&(v^b)}function u(m,v,b){return m&v|b&(m|v)}function f(m){return(m>>>2|m<<30)^(m>>>13|m<<19)^(m>>>22|m<<10)}function h(m){return(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7)}function d(m){return(m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3}function p(m){return(m>>>17|m<<15)^(m>>>19|m<<13)^m>>>10}n(c,a),c.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},c.prototype._update=function(m){for(var v=this._w,b=0|this._a,g=0|this._b,y=0|this._c,w=0|this._d,x=0|this._e,C=0|this._f,O=0|this._g,D=0|this._h,j=0;j<16;++j)v[j]=m.readInt32BE(4*j);for(;j<64;++j)v[j]=p(v[j-2])+v[j-7]+d(v[j-15])+v[j-16]|0;for(var U=0;U<64;++U){var L=D+h(x)+l(x,C,O)+s[U]+v[U]|0,V=f(b)+u(b,g,y)|0;D=O,O=C,C=x,x=w+L|0,w=y,y=g,g=b,b=L+V|0}this._a=b+this._a|0,this._b=g+this._b|0,this._c=y+this._c|0,this._d=w+this._d|0,this._e=x+this._e|0,this._f=C+this._f|0,this._g=O+this._g|0,this._h=D+this._h|0},c.prototype._hash=function(){var m=o.allocUnsafe(32);return m.writeInt32BE(this._a,0),m.writeInt32BE(this._b,4),m.writeInt32BE(this._c,8),m.writeInt32BE(this._d,12),m.writeInt32BE(this._e,16),m.writeInt32BE(this._f,20),m.writeInt32BE(this._g,24),m.writeInt32BE(this._h,28),m},r.exports=c},{"./hash":497,inherits:440,"safe-buffer":494}],503:[function(t,r,e){var n=t("inherits"),a=t("./sha512"),o=t("./hash"),s=t("safe-buffer").Buffer,i=new Array(160);function c(){this.init(),this._w=i,o.call(this,128,112)}n(c,a),c.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},c.prototype._hash=function(){var l=s.allocUnsafe(48);function u(f,h,d){l.writeInt32BE(f,d),l.writeInt32BE(h,d+4)}return u(this._ah,this._al,0),u(this._bh,this._bl,8),u(this._ch,this._cl,16),u(this._dh,this._dl,24),u(this._eh,this._el,32),u(this._fh,this._fl,40),l},r.exports=c},{"./hash":497,"./sha512":504,inherits:440,"safe-buffer":494}],504:[function(t,r,e){var n=t("inherits"),a=t("./hash"),o=t("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],i=new Array(160);function c(){this.init(),this._w=i,a.call(this,128,112)}function l(g,y,w){return w^g&(y^w)}function u(g,y,w){return g&y|w&(g|y)}function f(g,y){return(g>>>28|y<<4)^(y>>>2|g<<30)^(y>>>7|g<<25)}function h(g,y){return(g>>>14|y<<18)^(g>>>18|y<<14)^(y>>>9|g<<23)}function d(g,y){return(g>>>1|y<<31)^(g>>>8|y<<24)^g>>>7}function p(g,y){return(g>>>1|y<<31)^(g>>>8|y<<24)^(g>>>7|y<<25)}function m(g,y){return(g>>>19|y<<13)^(y>>>29|g<<3)^g>>>6}function v(g,y){return(g>>>19|y<<13)^(y>>>29|g<<3)^(g>>>6|y<<26)}function b(g,y){return g>>>0<y>>>0?1:0}n(c,a),c.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},c.prototype._update=function(g){for(var y=this._w,w=0|this._ah,x=0|this._bh,C=0|this._ch,O=0|this._dh,D=0|this._eh,j=0|this._fh,U=0|this._gh,L=0|this._hh,V=0|this._al,A=0|this._bl,N=0|this._cl,k=0|this._dl,S=0|this._el,E=0|this._fl,T=0|this._gl,R=0|this._hl,F=0;F<32;F+=2)y[F]=g.readInt32BE(4*F),y[F+1]=g.readInt32BE(4*F+4);for(;F<160;F+=2){var I=y[F-30],B=y[F-30+1],P=d(I,B),H=p(B,I),Z=m(I=y[F-4],B=y[F-4+1]),Y=v(B,I),dt=y[F-14],gt=y[F-14+1],bt=y[F-32],Q=y[F-32+1],q=H+gt|0,tt=P+dt+b(q,H)|0;tt=(tt=tt+Z+b(q=q+Y|0,Y)|0)+bt+b(q=q+Q|0,Q)|0,y[F]=tt,y[F+1]=q}for(var et=0;et<160;et+=2){tt=y[et],q=y[et+1];var _t=u(w,x,C),J=u(V,A,N),st=f(w,V),Ot=f(V,w),W=h(D,S),X=h(S,D),it=s[et],xt=s[et+1],Nt=l(D,j,U),G=l(S,E,T),Mt=R+X|0,Pt=L+W+b(Mt,R)|0;Pt=(Pt=(Pt=Pt+Nt+b(Mt=Mt+G|0,G)|0)+it+b(Mt=Mt+xt|0,xt)|0)+tt+b(Mt=Mt+q|0,q)|0;var lt=Ot+J|0,ct=st+_t+b(lt,Ot)|0;L=U,R=T,U=j,T=E,j=D,E=S,D=O+Pt+b(S=k+Mt|0,k)|0,O=C,k=N,C=x,N=A,x=w,A=V,w=Pt+ct+b(V=Mt+lt|0,Mt)|0}this._al=this._al+V|0,this._bl=this._bl+A|0,this._cl=this._cl+N|0,this._dl=this._dl+k|0,this._el=this._el+S|0,this._fl=this._fl+E|0,this._gl=this._gl+T|0,this._hl=this._hl+R|0,this._ah=this._ah+w+b(this._al,V)|0,this._bh=this._bh+x+b(this._bl,A)|0,this._ch=this._ch+C+b(this._cl,N)|0,this._dh=this._dh+O+b(this._dl,k)|0,this._eh=this._eh+D+b(this._el,S)|0,this._fh=this._fh+j+b(this._fl,E)|0,this._gh=this._gh+U+b(this._gl,T)|0,this._hh=this._hh+L+b(this._hl,R)|0},c.prototype._hash=function(){var g=o.allocUnsafe(64);function y(w,x,C){g.writeInt32BE(w,C),g.writeInt32BE(x,C+4)}return y(this._ah,this._al,0),y(this._bh,this._bl,8),y(this._ch,this._cl,16),y(this._dh,this._dl,24),y(this._eh,this._el,32),y(this._fh,this._fl,40),y(this._gh,this._gl,48),y(this._hh,this._hl,56),g},r.exports=c},{"./hash":497,inherits:440,"safe-buffer":494}],505:[function(t,r,e){r.exports=a;var n=t("events").EventEmitter;function a(){n.call(this)}t("inherits")(a,n),a.Readable=t("readable-stream/readable.js"),a.Writable=t("readable-stream/writable.js"),a.Duplex=t("readable-stream/duplex.js"),a.Transform=t("readable-stream/transform.js"),a.PassThrough=t("readable-stream/passthrough.js"),a.Stream=a,a.prototype.pipe=function(o,s){var i=this;function c(m){o.writable&&o.write(m)===!1&&i.pause&&i.pause()}function l(){i.readable&&i.resume&&i.resume()}i.on("data",c),o.on("drain",l),o._isStdio||s&&s.end===!1||(i.on("end",f),i.on("close",h));var u=!1;function f(){u||(u=!0,o.end())}function h(){u||(u=!0,typeof o.destroy=="function"&&o.destroy())}function d(m){if(p(),n.listenerCount(this,"error")===0)throw m}function p(){i.removeListener("data",c),o.removeListener("drain",l),i.removeListener("end",f),i.removeListener("close",h),i.removeListener("error",d),o.removeListener("error",d),i.removeListener("end",p),i.removeListener("close",p),o.removeListener("close",p)}return i.on("error",d),o.on("error",d),i.on("end",p),i.on("close",p),o.on("close",p),o.emit("pipe",i),o}},{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(t,r,e){var n={}.toString;r.exports=Array.isArray||function(a){return n.call(a)=="[object Array]"}},{}],507:[function(t,r,e){r.exports=t("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":508}],508:[function(t,r,e){var n=t("process-nextick-args"),a=Object.keys||function(p){var m=[];for(var v in p)m.push(v);return m};r.exports=f;var o=Object.create(t("core-util-is"));o.inherits=t("inherits");var s=t("./_stream_readable"),i=t("./_stream_writable");o.inherits(f,s);for(var c=a(i.prototype),l=0;l<c.length;l++){var u=c[l];f.prototype[u]||(f.prototype[u]=i.prototype[u])}function f(p){if(!(this instanceof f))return new f(p);s.call(this,p),i.call(this,p),p&&p.readable===!1&&(this.readable=!1),p&&p.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,p&&p.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||n.nextTick(d,this)}function d(p){p.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(p){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=p,this._writableState.destroyed=p)}}),f.prototype._destroy=function(p,m){this.push(null),this.end(),n.nextTick(m,p)}},{"./_stream_readable":510,"./_stream_writable":512,"core-util-is":383,inherits:440,"process-nextick-args":466}],509:[function(t,r,e){r.exports=o;var n=t("./_stream_transform"),a=Object.create(t("core-util-is"));function o(s){if(!(this instanceof o))return new o(s);n.call(this,s)}a.inherits=t("inherits"),a.inherits(o,n),o.prototype._transform=function(s,i,c){c(null,s)}},{"./_stream_transform":511,"core-util-is":383,inherits:440}],510:[function(t,r,e){(function(n,a){(function(){var o=t("process-nextick-args");r.exports=O;var s,i=t("isarray");O.ReadableState=C,t("events").EventEmitter;var c=function(tt,et){return tt.listeners(et).length},l=t("./internal/streams/stream"),u=t("safe-buffer").Buffer,f=(a!==void 0?a:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function h(tt){return u.from(tt)}function d(tt){return u.isBuffer(tt)||tt instanceof f}var p=Object.create(t("core-util-is"));p.inherits=t("inherits");var m=t("util"),v=void 0;v=m&&m.debuglog?m.debuglog("stream"):function(){};var b,g=t("./internal/streams/BufferList"),y=t("./internal/streams/destroy");p.inherits(O,l);var w=["error","close","destroy","pause","resume"];function x(tt,et,_t){if(typeof tt.prependListener=="function")return tt.prependListener(et,_t);tt._events&&tt._events[et]?i(tt._events[et])?tt._events[et].unshift(_t):tt._events[et]=[_t,tt._events[et]]:tt.on(et,_t)}function C(tt,et){tt=tt||{};var _t=et instanceof(s=s||t("./_stream_duplex"));this.objectMode=!!tt.objectMode,_t&&(this.objectMode=this.objectMode||!!tt.readableObjectMode);var J=tt.highWaterMark,st=tt.readableHighWaterMark,Ot=this.objectMode?16:16384;this.highWaterMark=J||J===0?J:_t&&(st||st===0)?st:Ot,this.highWaterMark=Math.floor(this.highWaterMark),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.destroyed=!1,this.defaultEncoding=tt.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,tt.encoding&&(b||(b=t("string_decoder/").StringDecoder),this.decoder=new b(tt.encoding),this.encoding=tt.encoding)}function O(tt){if(s=s||t("./_stream_duplex"),!(this instanceof O))return new O(tt);this._readableState=new C(tt,this),this.readable=!0,tt&&(typeof tt.read=="function"&&(this._read=tt.read),typeof tt.destroy=="function"&&(this._destroy=tt.destroy)),l.call(this)}function D(tt,et,_t,J,st){var Ot,W=tt._readableState;return et===null?(W.reading=!1,k(tt,W)):(st||(Ot=U(W,et)),Ot?tt.emit("error",Ot):W.objectMode||et&&et.length>0?(typeof et=="string"||W.objectMode||Object.getPrototypeOf(et)===u.prototype||(et=h(et)),J?W.endEmitted?tt.emit("error",new Error("stream.unshift() after end event")):j(tt,W,et,!0):W.ended?tt.emit("error",new Error("stream.push() after EOF")):(W.reading=!1,W.decoder&&!_t?(et=W.decoder.write(et),W.objectMode||et.length!==0?j(tt,W,et,!1):T(tt,W)):j(tt,W,et,!1))):J||(W.reading=!1)),L(W)}function j(tt,et,_t,J){et.flowing&&et.length===0&&!et.sync?(tt.emit("data",_t),tt.read(0)):(et.length+=et.objectMode?1:_t.length,J?et.buffer.unshift(_t):et.buffer.push(_t),et.needReadable&&S(tt)),T(tt,et)}function U(tt,et){var _t;return d(et)||typeof et=="string"||et===void 0||tt.objectMode||(_t=new TypeError("Invalid non-string/buffer chunk")),_t}function L(tt){return!tt.ended&&(tt.needReadable||tt.length<tt.highWaterMark||tt.length===0)}Object.defineProperty(O.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(tt){this._readableState&&(this._readableState.destroyed=tt)}}),O.prototype.destroy=y.destroy,O.prototype._undestroy=y.undestroy,O.prototype._destroy=function(tt,et){this.push(null),et(tt)},O.prototype.push=function(tt,et){var _t,J=this._readableState;return J.objectMode?_t=!0:typeof tt=="string"&&((et=et||J.defaultEncoding)!==J.encoding&&(tt=u.from(tt,et),et=""),_t=!0),D(this,tt,et,!1,_t)},O.prototype.unshift=function(tt){return D(this,tt,null,!0,!1)},O.prototype.isPaused=function(){return this._readableState.flowing===!1},O.prototype.setEncoding=function(tt){return b||(b=t("string_decoder/").StringDecoder),this._readableState.decoder=new b(tt),this._readableState.encoding=tt,this};var V=8388608;function A(tt){return tt>=V?tt=V:(tt--,tt|=tt>>>1,tt|=tt>>>2,tt|=tt>>>4,tt|=tt>>>8,tt|=tt>>>16,tt++),tt}function N(tt,et){return tt<=0||et.length===0&&et.ended?0:et.objectMode?1:tt!=tt?et.flowing&&et.length?et.buffer.head.data.length:et.length:(tt>et.highWaterMark&&(et.highWaterMark=A(tt)),tt<=et.length?tt:et.ended?et.length:(et.needReadable=!0,0))}function k(tt,et){if(!et.ended){if(et.decoder){var _t=et.decoder.end();_t&&_t.length&&(et.buffer.push(_t),et.length+=et.objectMode?1:_t.length)}et.ended=!0,S(tt)}}function S(tt){var et=tt._readableState;et.needReadable=!1,et.emittedReadable||(v("emitReadable",et.flowing),et.emittedReadable=!0,et.sync?o.nextTick(E,tt):E(tt))}function E(tt){v("emit readable"),tt.emit("readable"),H(tt)}function T(tt,et){et.readingMore||(et.readingMore=!0,o.nextTick(R,tt,et))}function R(tt,et){for(var _t=et.length;!et.reading&&!et.flowing&&!et.ended&&et.length<et.highWaterMark&&(v("maybeReadMore read 0"),tt.read(0),_t!==et.length);)_t=et.length;et.readingMore=!1}function F(tt){return function(){var et=tt._readableState;v("pipeOnDrain",et.awaitDrain),et.awaitDrain&&et.awaitDrain--,et.awaitDrain===0&&c(tt,"data")&&(et.flowing=!0,H(tt))}}function I(tt){v("readable nexttick read 0"),tt.read(0)}function B(tt,et){et.resumeScheduled||(et.resumeScheduled=!0,o.nextTick(P,tt,et))}function P(tt,et){et.reading||(v("resume read 0"),tt.read(0)),et.resumeScheduled=!1,et.awaitDrain=0,tt.emit("resume"),H(tt),et.flowing&&!et.reading&&tt.read(0)}function H(tt){var et=tt._readableState;for(v("flow",et.flowing);et.flowing&&tt.read()!==null;);}function Z(tt,et){return et.length===0?null:(et.objectMode?_t=et.buffer.shift():!tt||tt>=et.length?(_t=et.decoder?et.buffer.join(""):et.buffer.length===1?et.buffer.head.data:et.buffer.concat(et.length),et.buffer.clear()):_t=Y(tt,et.buffer,et.decoder),_t);var _t}function Y(tt,et,_t){var J;return tt<et.head.data.length?(J=et.head.data.slice(0,tt),et.head.data=et.head.data.slice(tt)):J=tt===et.head.data.length?et.shift():_t?dt(tt,et):gt(tt,et),J}function dt(tt,et){var _t=et.head,J=1,st=_t.data;for(tt-=st.length;_t=_t.next;){var Ot=_t.data,W=tt>Ot.length?Ot.length:tt;if(W===Ot.length?st+=Ot:st+=Ot.slice(0,tt),(tt-=W)==0){W===Ot.length?(++J,_t.next?et.head=_t.next:et.head=et.tail=null):(et.head=_t,_t.data=Ot.slice(W));break}++J}return et.length-=J,st}function gt(tt,et){var _t=u.allocUnsafe(tt),J=et.head,st=1;for(J.data.copy(_t),tt-=J.data.length;J=J.next;){var Ot=J.data,W=tt>Ot.length?Ot.length:tt;if(Ot.copy(_t,_t.length-tt,0,W),(tt-=W)==0){W===Ot.length?(++st,J.next?et.head=J.next:et.head=et.tail=null):(et.head=J,J.data=Ot.slice(W));break}++st}return et.length-=st,_t}function bt(tt){var et=tt._readableState;if(et.length>0)throw new Error('"endReadable()" called on non-empty stream');et.endEmitted||(et.ended=!0,o.nextTick(Q,et,tt))}function Q(tt,et){tt.endEmitted||tt.length!==0||(tt.endEmitted=!0,et.readable=!1,et.emit("end"))}function q(tt,et){for(var _t=0,J=tt.length;_t<J;_t++)if(tt[_t]===et)return _t;return-1}O.prototype.read=function(tt){v("read",tt),tt=parseInt(tt,10);var et=this._readableState,_t=tt;if(tt!==0&&(et.emittedReadable=!1),tt===0&&et.needReadable&&(et.length>=et.highWaterMark||et.ended))return v("read: emitReadable",et.length,et.ended),et.length===0&&et.ended?bt(this):S(this),null;if((tt=N(tt,et))===0&&et.ended)return et.length===0&&bt(this),null;var J,st=et.needReadable;return v("need readable",st),(et.length===0||et.length-tt<et.highWaterMark)&&v("length less than watermark",st=!0),et.ended||et.reading?v("reading or ended",st=!1):st&&(v("do read"),et.reading=!0,et.sync=!0,et.length===0&&(et.needReadable=!0),this._read(et.highWaterMark),et.sync=!1,et.reading||(tt=N(_t,et))),(J=tt>0?Z(tt,et):null)===null?(et.needReadable=!0,tt=0):et.length-=tt,et.length===0&&(et.ended||(et.needReadable=!0),_t!==tt&&et.ended&&bt(this)),J!==null&&this.emit("data",J),J},O.prototype._read=function(tt){this.emit("error",new Error("_read() is not implemented"))},O.prototype.pipe=function(tt,et){var _t=this,J=this._readableState;switch(J.pipesCount){case 0:J.pipes=tt;break;case 1:J.pipes=[J.pipes,tt];break;default:J.pipes.push(tt)}J.pipesCount+=1,v("pipe count=%d opts=%j",J.pipesCount,et);var st=et&&et.end===!1||tt===n.stdout||tt===n.stderr?ct:W;function Ot(pt,Dt){v("onunpipe"),pt===_t&&Dt&&Dt.hasUnpiped===!1&&(Dt.hasUnpiped=!0,xt())}function W(){v("onend"),tt.end()}J.endEmitted?o.nextTick(st):_t.once("end",st),tt.on("unpipe",Ot);var X=F(_t);tt.on("drain",X);var it=!1;function xt(){v("cleanup"),tt.removeListener("close",Pt),tt.removeListener("finish",lt),tt.removeListener("drain",X),tt.removeListener("error",Mt),tt.removeListener("unpipe",Ot),_t.removeListener("end",W),_t.removeListener("end",ct),_t.removeListener("data",G),it=!0,!J.awaitDrain||tt._writableState&&!tt._writableState.needDrain||X()}var Nt=!1;function G(pt){v("ondata"),Nt=!1,tt.write(pt)!==!1||Nt||((J.pipesCount===1&&J.pipes===tt||J.pipesCount>1&&q(J.pipes,tt)!==-1)&&!it&&(v("false write response, pause",J.awaitDrain),J.awaitDrain++,Nt=!0),_t.pause())}function Mt(pt){v("onerror",pt),ct(),tt.removeListener("error",Mt),c(tt,"error")===0&&tt.emit("error",pt)}function Pt(){tt.removeListener("finish",lt),ct()}function lt(){v("onfinish"),tt.removeListener("close",Pt),ct()}function ct(){v("unpipe"),_t.unpipe(tt)}return _t.on("data",G),x(tt,"error",Mt),tt.once("close",Pt),tt.once("finish",lt),tt.emit("pipe",_t),J.flowing||(v("pipe resume"),_t.resume()),tt},O.prototype.unpipe=function(tt){var et=this._readableState,_t={hasUnpiped:!1};if(et.pipesCount===0)return this;if(et.pipesCount===1)return tt&&tt!==et.pipes||(tt||(tt=et.pipes),et.pipes=null,et.pipesCount=0,et.flowing=!1,tt&&tt.emit("unpipe",this,_t)),this;if(!tt){var J=et.pipes,st=et.pipesCount;et.pipes=null,et.pipesCount=0,et.flowing=!1;for(var Ot=0;Ot<st;Ot++)J[Ot].emit("unpipe",this,{hasUnpiped:!1});return this}var W=q(et.pipes,tt);return W===-1||(et.pipes.splice(W,1),et.pipesCount-=1,et.pipesCount===1&&(et.pipes=et.pipes[0]),tt.emit("unpipe",this,_t)),this},O.prototype.on=function(tt,et){var _t=l.prototype.on.call(this,tt,et);if(tt==="data")this._readableState.flowing!==!1&&this.resume();else if(tt==="readable"){var J=this._readableState;J.endEmitted||J.readableListening||(J.readableListening=J.needReadable=!0,J.emittedReadable=!1,J.reading?J.length&&S(this):o.nextTick(I,this))}return _t},O.prototype.addListener=O.prototype.on,O.prototype.resume=function(){var tt=this._readableState;return tt.flowing||(v("resume"),tt.flowing=!0,B(this,tt)),this},O.prototype.pause=function(){return v("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(v("pause"),this._readableState.flowing=!1,this.emit("pause")),this},O.prototype.wrap=function(tt){var et=this,_t=this._readableState,J=!1;for(var st in tt.on("end",function(){if(v("wrapped end"),_t.decoder&&!_t.ended){var W=_t.decoder.end();W&&W.length&&et.push(W)}et.push(null)}),tt.on("data",function(W){v("wrapped data"),_t.decoder&&(W=_t.decoder.write(W)),_t.objectMode&&W==null||(_t.objectMode||W&&W.length)&&(et.push(W)||(J=!0,tt.pause()))}),tt)this[st]===void 0&&typeof tt[st]=="function"&&(this[st]=function(W){return function(){return tt[W].apply(tt,arguments)}}(st));for(var Ot=0;Ot<w.length;Ot++)tt.on(w[Ot],this.emit.bind(this,w[Ot]));return this._read=function(W){v("wrapped _read",W),J&&(J=!1,tt.resume())},this},Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),O._fromList=Z}).call(this)}).call(this,t("_process"),ur!==void 0?ur:typeof self!="undefined"?self:typeof window!="undefined"?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(t,r,e){r.exports=s;var n=t("./_stream_duplex"),a=Object.create(t("core-util-is"));function o(l,u){var f=this._transformState;f.transforming=!1;var h=f.writecb;if(!h)return this.emit("error",new Error("write callback called multiple times"));f.writechunk=null,f.writecb=null,u!=null&&this.push(u),h(l);var d=this._readableState;d.reading=!1,(d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}function s(l){if(!(this instanceof s))return new s(l);n.call(this,l),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,l&&(typeof l.transform=="function"&&(this._transform=l.transform),typeof l.flush=="function"&&(this._flush=l.flush)),this.on("prefinish",i)}function i(){var l=this;typeof this._flush=="function"?this._flush(function(u,f){c(l,u,f)}):c(this,null,null)}function c(l,u,f){if(u)return l.emit("error",u);if(f!=null&&l.push(f),l._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(l._transformState.transforming)throw new Error("Calling transform done when still transforming");return l.push(null)}a.inherits=t("inherits"),a.inherits(s,n),s.prototype.push=function(l,u){return this._transformState.needTransform=!1,n.prototype.push.call(this,l,u)},s.prototype._transform=function(l,u,f){throw new Error("_transform() is not implemented")},s.prototype._write=function(l,u,f){var h=this._transformState;if(h.writecb=f,h.writechunk=l,h.writeencoding=u,!h.transforming){var d=this._readableState;(h.needTransform||d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}},s.prototype._read=function(l){var u=this._transformState;u.writechunk!==null&&u.writecb&&!u.transforming?(u.transforming=!0,this._transform(u.writechunk,u.writeencoding,u.afterTransform)):u.needTransform=!0},s.prototype._destroy=function(l,u){var f=this;n.prototype._destroy.call(this,l,function(h){u(h),f.emit("close")})}},{"./_stream_duplex":508,"core-util-is":383,inherits:440}],512:[function(t,r,e){(function(n,a,o){(function(){var s=t("process-nextick-args");function i(P){var H=this;this.next=null,this.entry=null,this.finish=function(){B(H,P)}}r.exports=x;var c,l=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?o:s.nextTick;x.WritableState=w;var u=Object.create(t("core-util-is"));u.inherits=t("inherits");var f={deprecate:t("util-deprecate")},h=t("./internal/streams/stream"),d=t("safe-buffer").Buffer,p=(a!==void 0?a:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function m(P){return d.from(P)}function v(P){return d.isBuffer(P)||P instanceof p}var b,g=t("./internal/streams/destroy");function y(){}function w(P,H){c=c||t("./_stream_duplex"),P=P||{};var Z=H instanceof c;this.objectMode=!!P.objectMode,Z&&(this.objectMode=this.objectMode||!!P.writableObjectMode);var Y=P.highWaterMark,dt=P.writableHighWaterMark,gt=this.objectMode?16:16384;this.highWaterMark=Y||Y===0?Y:Z&&(dt||dt===0)?dt:gt,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 bt=P.decodeStrings===!1;this.decodeStrings=!bt,this.defaultEncoding=P.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Q){A(H,Q)},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 i(this)}function x(P){if(c=c||t("./_stream_duplex"),!(b.call(x,this)||this instanceof c))return new x(P);this._writableState=new w(P,this),this.writable=!0,P&&(typeof P.write=="function"&&(this._write=P.write),typeof P.writev=="function"&&(this._writev=P.writev),typeof P.destroy=="function"&&(this._destroy=P.destroy),typeof P.final=="function"&&(this._final=P.final)),h.call(this)}function C(P,H){var Z=new Error("write after end");P.emit("error",Z),s.nextTick(H,Z)}function O(P,H,Z,Y){var dt=!0,gt=!1;return Z===null?gt=new TypeError("May not write null values to stream"):typeof Z=="string"||Z===void 0||H.objectMode||(gt=new TypeError("Invalid non-string/buffer chunk")),gt&&(P.emit("error",gt),s.nextTick(Y,gt),dt=!1),dt}function D(P,H,Z){return P.objectMode||P.decodeStrings===!1||typeof H!="string"||(H=d.from(H,Z)),H}function j(P,H,Z,Y,dt,gt){if(!Z){var bt=D(H,Y,dt);Y!==bt&&(Z=!0,dt="buffer",Y=bt)}var Q=H.objectMode?1:Y.length;H.length+=Q;var q=H.length<H.highWaterMark;if(q||(H.needDrain=!0),H.writing||H.corked){var tt=H.lastBufferedRequest;H.lastBufferedRequest={chunk:Y,encoding:dt,isBuf:Z,callback:gt,next:null},tt?tt.next=H.lastBufferedRequest:H.bufferedRequest=H.lastBufferedRequest,H.bufferedRequestCount+=1}else U(P,H,!1,Q,Y,dt,gt);return q}function U(P,H,Z,Y,dt,gt,bt){H.writelen=Y,H.writecb=bt,H.writing=!0,H.sync=!0,Z?P._writev(dt,H.onwrite):P._write(dt,gt,H.onwrite),H.sync=!1}function L(P,H,Z,Y,dt){--H.pendingcb,Z?(s.nextTick(dt,Y),s.nextTick(F,P,H),P._writableState.errorEmitted=!0,P.emit("error",Y)):(dt(Y),P._writableState.errorEmitted=!0,P.emit("error",Y),F(P,H))}function V(P){P.writing=!1,P.writecb=null,P.length-=P.writelen,P.writelen=0}function A(P,H){var Z=P._writableState,Y=Z.sync,dt=Z.writecb;if(V(Z),H)L(P,Z,Y,H,dt);else{var gt=E(Z);gt||Z.corked||Z.bufferProcessing||!Z.bufferedRequest||S(P,Z),Y?l(N,P,Z,gt,dt):N(P,Z,gt,dt)}}function N(P,H,Z,Y){Z||k(P,H),H.pendingcb--,Y(),F(P,H)}function k(P,H){H.length===0&&H.needDrain&&(H.needDrain=!1,P.emit("drain"))}function S(P,H){H.bufferProcessing=!0;var Z=H.bufferedRequest;if(P._writev&&Z&&Z.next){var Y=H.bufferedRequestCount,dt=new Array(Y),gt=H.corkedRequestsFree;gt.entry=Z;for(var bt=0,Q=!0;Z;)dt[bt]=Z,Z.isBuf||(Q=!1),Z=Z.next,bt+=1;dt.allBuffers=Q,U(P,H,!0,H.length,dt,"",gt.finish),H.pendingcb++,H.lastBufferedRequest=null,gt.next?(H.corkedRequestsFree=gt.next,gt.next=null):H.corkedRequestsFree=new i(H),H.bufferedRequestCount=0}else{for(;Z;){var q=Z.chunk,tt=Z.encoding,et=Z.callback;if(U(P,H,!1,H.objectMode?1:q.length,q,tt,et),Z=Z.next,H.bufferedRequestCount--,H.writing)break}Z===null&&(H.lastBufferedRequest=null)}H.bufferedRequest=Z,H.bufferProcessing=!1}function E(P){return P.ending&&P.length===0&&P.bufferedRequest===null&&!P.finished&&!P.writing}function T(P,H){P._final(function(Z){H.pendingcb--,Z&&P.emit("error",Z),H.prefinished=!0,P.emit("prefinish"),F(P,H)})}function R(P,H){H.prefinished||H.finalCalled||(typeof P._final=="function"?(H.pendingcb++,H.finalCalled=!0,s.nextTick(T,P,H)):(H.prefinished=!0,P.emit("prefinish")))}function F(P,H){var Z=E(H);return Z&&(R(P,H),H.pendingcb===0&&(H.finished=!0,P.emit("finish"))),Z}function I(P,H,Z){H.ending=!0,F(P,H),Z&&(H.finished?s.nextTick(Z):P.once("finish",Z)),H.ended=!0,P.writable=!1}function B(P,H,Z){var Y=P.entry;for(P.entry=null;Y;){var dt=Y.callback;H.pendingcb--,dt(Z),Y=Y.next}H.corkedRequestsFree.next=P}u.inherits(x,h),w.prototype.getBuffer=function(){for(var P=this.bufferedRequest,H=[];P;)H.push(P),P=P.next;return H},function(){try{Object.defineProperty(w.prototype,"buffer",{get:f.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(P){}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(b=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(P){return!!b.call(this,P)||this===x&&P&&P._writableState instanceof w}})):b=function(P){return P instanceof this},x.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},x.prototype.write=function(P,H,Z){var Y=this._writableState,dt=!1,gt=!Y.objectMode&&v(P);return gt&&!d.isBuffer(P)&&(P=m(P)),typeof H=="function"&&(Z=H,H=null),gt?H="buffer":H||(H=Y.defaultEncoding),typeof Z!="function"&&(Z=y),Y.ended?C(this,Z):(gt||O(this,Y,P,Z))&&(Y.pendingcb++,dt=j(this,Y,gt,P,H,Z)),dt},x.prototype.cork=function(){this._writableState.corked++},x.prototype.uncork=function(){var P=this._writableState;P.corked&&(P.corked--,P.writing||P.corked||P.bufferProcessing||!P.bufferedRequest||S(this,P))},x.prototype.setDefaultEncoding=function(P){if(typeof P=="string"&&(P=P.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((P+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+P);return this._writableState.defaultEncoding=P,this},Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(P,H,Z){Z(new Error("_write() is not implemented"))},x.prototype._writev=null,x.prototype.end=function(P,H,Z){var Y=this._writableState;typeof P=="function"?(Z=P,P=null,H=null):typeof H=="function"&&(Z=H,H=null),P!=null&&this.write(P,H),Y.corked&&(Y.corked=1,this.uncork()),Y.ending||I(this,Y,Z)},Object.defineProperty(x.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(P){this._writableState&&(this._writableState.destroyed=P)}}),x.prototype.destroy=g.destroy,x.prototype._undestroy=g.undestroy,x.prototype._destroy=function(P,H){this.end(),H(P)}}).call(this)}).call(this,t("_process"),ur!==void 0?ur:typeof self!="undefined"?self:typeof window!="undefined"?window:{},t("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(t,r,e){function n(i,c){if(!(i instanceof c))throw new TypeError("Cannot call a class as a function")}var a=t("safe-buffer").Buffer,o=t("util");function s(i,c,l){i.copy(c,l)}r.exports=function(){function i(){n(this,i),this.head=null,this.tail=null,this.length=0}return i.prototype.push=function(c){var l={data:c,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length},i.prototype.unshift=function(c){var l={data:c,next:this.head};this.length===0&&(this.tail=l),this.head=l,++this.length},i.prototype.shift=function(){if(this.length!==0){var c=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,c}},i.prototype.clear=function(){this.head=this.tail=null,this.length=0},i.prototype.join=function(c){if(this.length===0)return"";for(var l=this.head,u=""+l.data;l=l.next;)u+=c+l.data;return u},i.prototype.concat=function(c){if(this.length===0)return a.alloc(0);for(var l=a.allocUnsafe(c>>>0),u=this.head,f=0;u;)s(u.data,l,f),f+=u.data.length,u=u.next;return l},i}(),o&&o.inspect&&o.inspect.custom&&(r.exports.prototype[o.inspect.custom]=function(){var i=o.inspect({length:this.length});return this.constructor.name+" "+i})},{"safe-buffer":520,util:188}],514:[function(t,r,e){var n=t("process-nextick-args");function a(i,c){var l=this,u=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return u||f?(c?c(i):i&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(s,this,i)):n.nextTick(s,this,i)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(i||null,function(h){!c&&h?l._writableState?l._writableState.errorEmitted||(l._writableState.errorEmitted=!0,n.nextTick(s,l,h)):n.nextTick(s,l,h):c&&c(h)}),this)}function o(){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(i,c){i.emit("error",c)}r.exports={destroy:a,undestroy:o}},{"process-nextick-args":466}],515:[function(t,r,e){arguments[4][490][0].apply(e,arguments)},{dup:490,events:422}],516:[function(t,r,e){r.exports=t("./readable").PassThrough},{"./readable":517}],517:[function(t,r,e){(e=r.exports=t("./lib/_stream_readable.js")).Stream=e,e.Readable=e,e.Writable=t("./lib/_stream_writable.js"),e.Duplex=t("./lib/_stream_duplex.js"),e.Transform=t("./lib/_stream_transform.js"),e.PassThrough=t("./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(t,r,e){r.exports=t("./readable").Transform},{"./readable":517}],519:[function(t,r,e){r.exports=t("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":512}],520:[function(t,r,e){arguments[4][217][0].apply(e,arguments)},{buffer:220,dup:217}],521:[function(t,r,e){arguments[4][218][0].apply(e,arguments)},{dup:218,"safe-buffer":520}],522:[function(t,r,e){arguments[4][218][0].apply(e,arguments)},{dup:218,"safe-buffer":494}],523:[function(t,r,e){(function(n,a){(function(){var o=t("process/browser.js").nextTick,s=Function.prototype.apply,i=Array.prototype.slice,c={},l=0;function u(f,h){this._id=f,this._clearFn=h}e.setTimeout=function(){return new u(s.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new u(s.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(f){f.close()},u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(f,h){clearTimeout(f._idleTimeoutId),f._idleTimeout=h},e.unenroll=function(f){clearTimeout(f._idleTimeoutId),f._idleTimeout=-1},e._unrefActive=e.active=function(f){clearTimeout(f._idleTimeoutId);var h=f._idleTimeout;h>=0&&(f._idleTimeoutId=setTimeout(function(){f._onTimeout&&f._onTimeout()},h))},e.setImmediate=typeof n=="function"?n:function(f){var h=l++,d=!(arguments.length<2)&&i.call(arguments,1);return c[h]=!0,o(function(){c[h]&&(d?f.apply(null,d):f.call(null),e.clearImmediate(h))}),h},e.clearImmediate=typeof a=="function"?a:function(f){delete c[f]}}).call(this)}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":467,timers:523}],524:[function(t,r,e){(function(n){(function(){function a(s,i){if(o("noDeprecation"))return s;var c=!1;function l(){if(!c){if(o("throwDeprecation"))throw new Error(i);o("traceDeprecation")?console.trace(i):console.warn(i),c=!0}return s.apply(this,arguments)}return l}function o(s){try{if(!n.localStorage)return!1}catch(c){return!1}var i=n.localStorage[s];return i!=null&&String(i).toLowerCase()==="true"}r.exports=a}).call(this)}).call(this,ur!==void 0?ur:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],525:[function(t,r,e){typeof Object.create=="function"?r.exports=function(n,a){n.super_=a,n.prototype=Object.create(a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:r.exports=function(n,a){n.super_=a;var o=function(){};o.prototype=a.prototype,n.prototype=new o,n.prototype.constructor=n}},{}],526:[function(t,r,e){r.exports=function(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.readUInt8=="function"}},{}],527:[function(t,r,e){(function(n,a){(function(){var o=/%[sdj%]/g;e.format=function(I){if(!O(I)){for(var B=[],P=0;P<arguments.length;P++)B.push(c(arguments[P]));return B.join(" ")}P=1;for(var H=arguments,Z=H.length,Y=String(I).replace(o,function(gt){if(gt==="%%")return"%";if(P>=Z)return gt;switch(gt){case"%s":return String(H[P++]);case"%d":return Number(H[P++]);case"%j":try{return JSON.stringify(H[P++])}catch(bt){return"[Circular]"}default:return gt}}),dt=H[P];P<Z;dt=H[++P])w(dt)||!L(dt)?Y+=" "+dt:Y+=" "+c(dt);return Y},e.deprecate=function(I,B){if(j(a.process))return function(){return e.deprecate(I,B).apply(this,arguments)};if(n.noDeprecation===!0)return I;var P=!1;function H(){if(!P){if(n.throwDeprecation)throw new Error(B);n.traceDeprecation?console.trace(B):console.error(B),P=!0}return I.apply(this,arguments)}return H};var s,i={};function c(I,B){var P={seen:[],stylize:u};return arguments.length>=3&&(P.depth=arguments[2]),arguments.length>=4&&(P.colors=arguments[3]),y(B)?P.showHidden=B:B&&e._extend(P,B),j(P.showHidden)&&(P.showHidden=!1),j(P.depth)&&(P.depth=2),j(P.colors)&&(P.colors=!1),j(P.customInspect)&&(P.customInspect=!0),P.colors&&(P.stylize=l),h(P,I,P.depth)}function l(I,B){var P=c.styles[B];return P?"\x1B["+c.colors[P][0]+"m"+I+"\x1B["+c.colors[P][1]+"m":I}function u(I,B){return I}function f(I){var B={};return I.forEach(function(P,H){B[P]=!0}),B}function h(I,B,P){if(I.customInspect&&B&&N(B.inspect)&&B.inspect!==e.inspect&&(!B.constructor||B.constructor.prototype!==B)){var H=B.inspect(P,I);return O(H)||(H=h(I,H,P)),H}var Z=d(I,B);if(Z)return Z;var Y=Object.keys(B),dt=f(Y);if(I.showHidden&&(Y=Object.getOwnPropertyNames(B)),A(B)&&(Y.indexOf("message")>=0||Y.indexOf("description")>=0))return p(B);if(Y.length===0){if(N(B)){var gt=B.name?": "+B.name:"";return I.stylize("[Function"+gt+"]","special")}if(U(B))return I.stylize(RegExp.prototype.toString.call(B),"regexp");if(V(B))return I.stylize(Date.prototype.toString.call(B),"date");if(A(B))return p(B)}var bt,Q="",q=!1,tt=["{","}"];return g(B)&&(q=!0,tt=["[","]"]),N(B)&&(Q=" [Function"+(B.name?": "+B.name:"")+"]"),U(B)&&(Q=" "+RegExp.prototype.toString.call(B)),V(B)&&(Q=" "+Date.prototype.toUTCString.call(B)),A(B)&&(Q=" "+p(B)),Y.length!==0||q&&B.length!=0?P<0?U(B)?I.stylize(RegExp.prototype.toString.call(B),"regexp"):I.stylize("[Object]","special"):(I.seen.push(B),bt=q?m(I,B,P,dt,Y):Y.map(function(et){return v(I,B,P,dt,et,q)}),I.seen.pop(),b(bt,Q,tt)):tt[0]+Q+tt[1]}function d(I,B){if(j(B))return I.stylize("undefined","undefined");if(O(B)){var P="'"+JSON.stringify(B).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return I.stylize(P,"string")}return C(B)?I.stylize(""+B,"number"):y(B)?I.stylize(""+B,"boolean"):w(B)?I.stylize("null","null"):void 0}function p(I){return"["+Error.prototype.toString.call(I)+"]"}function m(I,B,P,H,Z){for(var Y=[],dt=0,gt=B.length;dt<gt;++dt)F(B,String(dt))?Y.push(v(I,B,P,H,String(dt),!0)):Y.push("");return Z.forEach(function(bt){bt.match(/^\d+$/)||Y.push(v(I,B,P,H,bt,!0))}),Y}function v(I,B,P,H,Z,Y){var dt,gt,bt;if((bt=Object.getOwnPropertyDescriptor(B,Z)||{value:B[Z]}).get?gt=bt.set?I.stylize("[Getter/Setter]","special"):I.stylize("[Getter]","special"):bt.set&&(gt=I.stylize("[Setter]","special")),F(H,Z)||(dt="["+Z+"]"),gt||(I.seen.indexOf(bt.value)<0?(gt=w(P)?h(I,bt.value,null):h(I,bt.value,P-1)).indexOf(`
|
||
`)>-1&&(gt=Y?gt.split(`
|
||
`).map(function(Q){return" "+Q}).join(`
|
||
`).substr(2):`
|
||
`+gt.split(`
|
||
`).map(function(Q){return" "+Q}).join(`
|
||
`)):gt=I.stylize("[Circular]","special")),j(dt)){if(Y&&Z.match(/^\d+$/))return gt;(dt=JSON.stringify(""+Z)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(dt=dt.substr(1,dt.length-2),dt=I.stylize(dt,"name")):(dt=dt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),dt=I.stylize(dt,"string"))}return dt+": "+gt}function b(I,B,P){return I.reduce(function(H,Z){return Z.indexOf(`
|
||
`),H+Z.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?P[0]+(B===""?"":B+`
|
||
`)+" "+I.join(`,
|
||
`)+" "+P[1]:P[0]+B+" "+I.join(", ")+" "+P[1]}function g(I){return Array.isArray(I)}function y(I){return typeof I=="boolean"}function w(I){return I===null}function x(I){return I==null}function C(I){return typeof I=="number"}function O(I){return typeof I=="string"}function D(I){return typeof I=="symbol"}function j(I){return I===void 0}function U(I){return L(I)&&S(I)==="[object RegExp]"}function L(I){return typeof I=="object"&&I!==null}function V(I){return L(I)&&S(I)==="[object Date]"}function A(I){return L(I)&&(S(I)==="[object Error]"||I instanceof Error)}function N(I){return typeof I=="function"}function k(I){return I===null||typeof I=="boolean"||typeof I=="number"||typeof I=="string"||typeof I=="symbol"||I===void 0}function S(I){return Object.prototype.toString.call(I)}function E(I){return I<10?"0"+I.toString(10):I.toString(10)}e.debuglog=function(I){if(j(s)&&(s=n.env.NODE_DEBUG||""),I=I.toUpperCase(),!i[I])if(new RegExp("\\b"+I+"\\b","i").test(s)){var B=n.pid;i[I]=function(){var P=e.format.apply(e,arguments);console.error("%s %d: %s",I,B,P)}}else i[I]=function(){};return i[I]},e.inspect=c,c.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]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=g,e.isBoolean=y,e.isNull=w,e.isNullOrUndefined=x,e.isNumber=C,e.isString=O,e.isSymbol=D,e.isUndefined=j,e.isRegExp=U,e.isObject=L,e.isDate=V,e.isError=A,e.isFunction=N,e.isPrimitive=k,e.isBuffer=t("./support/isBuffer");var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(){var I=new Date,B=[E(I.getHours()),E(I.getMinutes()),E(I.getSeconds())].join(":");return[I.getDate(),T[I.getMonth()],B].join(" ")}function F(I,B){return Object.prototype.hasOwnProperty.call(I,B)}e.log=function(){console.log("%s - %s",R(),e.format.apply(e,arguments))},e.inherits=t("inherits"),e._extend=function(I,B){if(!B||!L(B))return I;for(var P=Object.keys(B),H=P.length;H--;)I[P[H]]=B[P[H]];return I}}).call(this)}).call(this,t("_process"),ur!==void 0?ur:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":526,_process:467,inherits:525}],528:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return f.default}});var n=h(t("./v1.js")),a=h(t("./v3.js")),o=h(t("./v4.js")),s=h(t("./v5.js")),i=h(t("./nil.js")),c=h(t("./version.js")),l=h(t("./validate.js")),u=h(t("./stringify.js")),f=h(t("./parse.js"));function h(d){return d&&d.__esModule?d:{default:d}}},{"./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(t,r,e){function n(v){if(typeof v=="string"){var b=unescape(encodeURIComponent(v));v=new Uint8Array(b.length);for(var g=0;g<b.length;++g)v[g]=b.charCodeAt(g)}return a(s(i(v),8*v.length))}function a(v){for(var b=[],g=32*v.length,y="0123456789abcdef",w=0;w<g;w+=8){var x=v[w>>5]>>>w%32&255,C=parseInt(y.charAt(x>>>4&15)+y.charAt(15&x),16);b.push(C)}return b}function o(v){return 14+(v+64>>>9<<4)+1}function s(v,b){v[b>>5]|=128<<b%32,v[o(b)-1]=b;for(var g=1732584193,y=-271733879,w=-1732584194,x=271733878,C=0;C<v.length;C+=16){var O=g,D=y,j=w,U=x;g=f(g,y,w,x,v[C],7,-680876936),x=f(x,g,y,w,v[C+1],12,-389564586),w=f(w,x,g,y,v[C+2],17,606105819),y=f(y,w,x,g,v[C+3],22,-1044525330),g=f(g,y,w,x,v[C+4],7,-176418897),x=f(x,g,y,w,v[C+5],12,1200080426),w=f(w,x,g,y,v[C+6],17,-1473231341),y=f(y,w,x,g,v[C+7],22,-45705983),g=f(g,y,w,x,v[C+8],7,1770035416),x=f(x,g,y,w,v[C+9],12,-1958414417),w=f(w,x,g,y,v[C+10],17,-42063),y=f(y,w,x,g,v[C+11],22,-1990404162),g=f(g,y,w,x,v[C+12],7,1804603682),x=f(x,g,y,w,v[C+13],12,-40341101),w=f(w,x,g,y,v[C+14],17,-1502002290),g=h(g,y=f(y,w,x,g,v[C+15],22,1236535329),w,x,v[C+1],5,-165796510),x=h(x,g,y,w,v[C+6],9,-1069501632),w=h(w,x,g,y,v[C+11],14,643717713),y=h(y,w,x,g,v[C],20,-373897302),g=h(g,y,w,x,v[C+5],5,-701558691),x=h(x,g,y,w,v[C+10],9,38016083),w=h(w,x,g,y,v[C+15],14,-660478335),y=h(y,w,x,g,v[C+4],20,-405537848),g=h(g,y,w,x,v[C+9],5,568446438),x=h(x,g,y,w,v[C+14],9,-1019803690),w=h(w,x,g,y,v[C+3],14,-187363961),y=h(y,w,x,g,v[C+8],20,1163531501),g=h(g,y,w,x,v[C+13],5,-1444681467),x=h(x,g,y,w,v[C+2],9,-51403784),w=h(w,x,g,y,v[C+7],14,1735328473),g=d(g,y=h(y,w,x,g,v[C+12],20,-1926607734),w,x,v[C+5],4,-378558),x=d(x,g,y,w,v[C+8],11,-2022574463),w=d(w,x,g,y,v[C+11],16,1839030562),y=d(y,w,x,g,v[C+14],23,-35309556),g=d(g,y,w,x,v[C+1],4,-1530992060),x=d(x,g,y,w,v[C+4],11,1272893353),w=d(w,x,g,y,v[C+7],16,-155497632),y=d(y,w,x,g,v[C+10],23,-1094730640),g=d(g,y,w,x,v[C+13],4,681279174),x=d(x,g,y,w,v[C],11,-358537222),w=d(w,x,g,y,v[C+3],16,-722521979),y=d(y,w,x,g,v[C+6],23,76029189),g=d(g,y,w,x,v[C+9],4,-640364487),x=d(x,g,y,w,v[C+12],11,-421815835),w=d(w,x,g,y,v[C+15],16,530742520),g=p(g,y=d(y,w,x,g,v[C+2],23,-995338651),w,x,v[C],6,-198630844),x=p(x,g,y,w,v[C+7],10,1126891415),w=p(w,x,g,y,v[C+14],15,-1416354905),y=p(y,w,x,g,v[C+5],21,-57434055),g=p(g,y,w,x,v[C+12],6,1700485571),x=p(x,g,y,w,v[C+3],10,-1894986606),w=p(w,x,g,y,v[C+10],15,-1051523),y=p(y,w,x,g,v[C+1],21,-2054922799),g=p(g,y,w,x,v[C+8],6,1873313359),x=p(x,g,y,w,v[C+15],10,-30611744),w=p(w,x,g,y,v[C+6],15,-1560198380),y=p(y,w,x,g,v[C+13],21,1309151649),g=p(g,y,w,x,v[C+4],6,-145523070),x=p(x,g,y,w,v[C+11],10,-1120210379),w=p(w,x,g,y,v[C+2],15,718787259),y=p(y,w,x,g,v[C+9],21,-343485551),g=c(g,O),y=c(y,D),w=c(w,j),x=c(x,U)}return[g,y,w,x]}function i(v){if(v.length===0)return[];for(var b=8*v.length,g=new Uint32Array(o(b)),y=0;y<b;y+=8)g[y>>5]|=(255&v[y/8])<<y%32;return g}function c(v,b){var g=(65535&v)+(65535&b);return(v>>16)+(b>>16)+(g>>16)<<16|65535&g}function l(v,b){return v<<b|v>>>32-b}function u(v,b,g,y,w,x){return c(l(c(c(b,v),c(y,x)),w),g)}function f(v,b,g,y,w,x,C){return u(b&g|~b&y,v,b,w,x,C)}function h(v,b,g,y,w,x,C){return u(b&y|g&~y,v,b,w,x,C)}function d(v,b,g,y,w,x,C){return u(b^g^y,v,b,w,x,C)}function p(v,b,g,y,w,x,C){return u(g^(b|~y),v,b,w,x,C)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var m=n;e.default=m},{}],530:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n="00000000-0000-0000-0000-000000000000";e.default=n},{}],531:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(t("./validate.js"));function a(i){return i&&i.__esModule?i:{default:i}}function o(i){if(!(0,n.default)(i))throw TypeError("Invalid UUID");var c,l=new Uint8Array(16);return l[0]=(c=parseInt(i.slice(0,8),16))>>>24,l[1]=c>>>16&255,l[2]=c>>>8&255,l[3]=255&c,l[4]=(c=parseInt(i.slice(9,13),16))>>>8,l[5]=255&c,l[6]=(c=parseInt(i.slice(14,18),16))>>>8,l[7]=255&c,l[8]=(c=parseInt(i.slice(19,23),16))>>>8,l[9]=255&c,l[10]=(c=parseInt(i.slice(24,36),16))/1099511627776&255,l[11]=c/4294967296&255,l[12]=c>>>24&255,l[13]=c>>>16&255,l[14]=c>>>8&255,l[15]=255&c,l}var s=o;e.default=s},{"./validate.js":541}],532:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=/^(?:[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;e.default=n},{}],533:[function(t,r,e){var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var a=new Uint8Array(16);function o(){if(!n&&!(n=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(a)}},{}],534:[function(t,r,e){function n(i,c,l,u){switch(i){case 0:return c&l^~c&u;case 1:case 3:return c^l^u;case 2:return c&l^c&u^l&u}}function a(i,c){return i<<c|i>>>32-c}function o(i){var c=[1518500249,1859775393,2400959708,3395469782],l=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof i=="string"){var u=unescape(encodeURIComponent(i));i=[];for(var f=0;f<u.length;++f)i.push(u.charCodeAt(f))}else Array.isArray(i)||(i=Array.prototype.slice.call(i));i.push(128);for(var h=i.length/4+2,d=Math.ceil(h/16),p=new Array(d),m=0;m<d;++m){for(var v=new Uint32Array(16),b=0;b<16;++b)v[b]=i[64*m+4*b]<<24|i[64*m+4*b+1]<<16|i[64*m+4*b+2]<<8|i[64*m+4*b+3];p[m]=v}p[d-1][14]=8*(i.length-1)/Math.pow(2,32),p[d-1][14]=Math.floor(p[d-1][14]),p[d-1][15]=8*(i.length-1)&4294967295;for(var g=0;g<d;++g){for(var y=new Uint32Array(80),w=0;w<16;++w)y[w]=p[g][w];for(var x=16;x<80;++x)y[x]=a(y[x-3]^y[x-8]^y[x-14]^y[x-16],1);for(var C=l[0],O=l[1],D=l[2],j=l[3],U=l[4],L=0;L<80;++L){var V=Math.floor(L/20),A=a(C,5)+n(V,O,D,j)+U+c[V]+y[L]>>>0;U=j,j=D,D=a(O,30)>>>0,O=C,C=A}l[0]=l[0]+C>>>0,l[1]=l[1]+O>>>0,l[2]=l[2]+D>>>0,l[3]=l[3]+j>>>0,l[4]=l[4]+U>>>0}return[l[0]>>24&255,l[0]>>16&255,l[0]>>8&255,255&l[0],l[1]>>24&255,l[1]>>16&255,l[1]>>8&255,255&l[1],l[2]>>24&255,l[2]>>16&255,l[2]>>8&255,255&l[2],l[3]>>24&255,l[3]>>16&255,l[3]>>8&255,255&l[3],l[4]>>24&255,l[4]>>16&255,l[4]>>8&255,255&l[4]]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=o;e.default=s},{}],535:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(t("./validate.js"));function a(l){return l&&l.__esModule?l:{default:l}}for(var o=[],s=0;s<256;++s)o.push((s+256).toString(16).substr(1));function i(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,f=(o[l[u+0]]+o[l[u+1]]+o[l[u+2]]+o[l[u+3]]+"-"+o[l[u+4]]+o[l[u+5]]+"-"+o[l[u+6]]+o[l[u+7]]+"-"+o[l[u+8]]+o[l[u+9]]+"-"+o[l[u+10]]+o[l[u+11]]+o[l[u+12]]+o[l[u+13]]+o[l[u+14]]+o[l[u+15]]).toLowerCase();if(!(0,n.default)(f))throw TypeError("Stringified UUID is invalid");return f}var c=i;e.default=c},{"./validate.js":541}],536:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,a,o=i(t("./rng.js")),s=i(t("./stringify.js"));function i(h){return h&&h.__esModule?h:{default:h}}var c=0,l=0;function u(h,d,p){var m=d&&p||0,v=d||new Array(16),b=(h=h||{}).node||n,g=h.clockseq!==void 0?h.clockseq:a;if(b==null||g==null){var y=h.random||(h.rng||o.default)();b==null&&(b=n=[1|y[0],y[1],y[2],y[3],y[4],y[5]]),g==null&&(g=a=16383&(y[6]<<8|y[7]))}var w=h.msecs!==void 0?h.msecs:Date.now(),x=h.nsecs!==void 0?h.nsecs:l+1,C=w-c+(x-l)/1e4;if(C<0&&h.clockseq===void 0&&(g=g+1&16383),(C<0||w>c)&&h.nsecs===void 0&&(x=0),x>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=w,l=x,a=g;var O=(1e4*(268435455&(w+=122192928e5))+x)%4294967296;v[m++]=O>>>24&255,v[m++]=O>>>16&255,v[m++]=O>>>8&255,v[m++]=255&O;var D=w/4294967296*1e4&268435455;v[m++]=D>>>8&255,v[m++]=255&D,v[m++]=D>>>24&15|16,v[m++]=D>>>16&255,v[m++]=g>>>8|128,v[m++]=255&g;for(var j=0;j<6;++j)v[m+j]=b[j];return d||(0,s.default)(v)}var f=u;e.default=f},{"./rng.js":533,"./stringify.js":535}],537:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(t("./v35.js")),a=o(t("./md5.js"));function o(i){return i&&i.__esModule?i:{default:i}}var s=(0,n.default)("v3",48,a.default);e.default=s},{"./md5.js":529,"./v35.js":538}],538:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l,e.URL=e.DNS=void 0;var n=o(t("./stringify.js")),a=o(t("./parse.js"));function o(u){return u&&u.__esModule?u:{default:u}}function s(u){u=unescape(encodeURIComponent(u));for(var f=[],h=0;h<u.length;++h)f.push(u.charCodeAt(h));return f}var i="6ba7b810-9dad-11d1-80b4-00c04fd430c8";e.DNS=i;var c="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function l(u,f,h){function d(p,m,v,b){if(typeof p=="string"&&(p=s(p)),typeof m=="string"&&(m=(0,a.default)(m)),m.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var g=new Uint8Array(16+p.length);if(g.set(m),g.set(p,m.length),(g=h(g))[6]=15&g[6]|f,g[8]=63&g[8]|128,v){b=b||0;for(var y=0;y<16;++y)v[b+y]=g[y];return v}return(0,n.default)(g)}try{d.name=u}catch(p){}return d.DNS=i,d.URL=c,d}e.URL=c},{"./parse.js":531,"./stringify.js":535}],539:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(t("./rng.js")),a=o(t("./stringify.js"));function o(c){return c&&c.__esModule?c:{default:c}}function s(c,l,u){var f=(c=c||{}).random||(c.rng||n.default)();if(f[6]=15&f[6]|64,f[8]=63&f[8]|128,l){u=u||0;for(var h=0;h<16;++h)l[u+h]=f[h];return l}return(0,a.default)(f)}var i=s;e.default=i},{"./rng.js":533,"./stringify.js":535}],540:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(t("./v35.js")),a=o(t("./sha1.js"));function o(i){return i&&i.__esModule?i:{default:i}}var s=(0,n.default)("v5",80,a.default);e.default=s},{"./sha1.js":534,"./v35.js":538}],541:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(t("./regex.js"));function a(i){return i&&i.__esModule?i:{default:i}}function o(i){return typeof i=="string"&&n.default.test(i)}var s=o;e.default=s},{"./regex.js":532}],542:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(t("./validate.js"));function a(i){return i&&i.__esModule?i:{default:i}}function o(i){if(!(0,n.default)(i))throw TypeError("Invalid UUID");return parseInt(i.substr(14,1),16)}var s=o;e.default=s},{"./validate.js":541}],543:[function(t,r,e){/**
|
||
* 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(e,"__esModule",{value:!0}),e.CHAR=`
|
||
\r --<2D>𐀀-`,e.S=` \r
|
||
`,e.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-<2D>𐀀-",e.NAME_CHAR="-"+e.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",e.CHAR_RE=new RegExp("^["+e.CHAR+"]$","u"),e.S_RE=new RegExp("^["+e.S+"]+$","u"),e.NAME_START_CHAR_RE=new RegExp("^["+e.NAME_START_CHAR+"]$","u"),e.NAME_CHAR_RE=new RegExp("^["+e.NAME_CHAR+"]$","u"),e.NAME_RE=new RegExp("^["+e.NAME_START_CHAR+"]["+e.NAME_CHAR+"]*$","u"),e.NMTOKEN_RE=new RegExp("^["+e.NAME_CHAR+"]+$","u");var n=9,a=10,o=13,s=32;function i(f){return f>=s&&f<=55295||f===a||f===o||f===n||f>=57344&&f<=65533||f>=65536&&f<=1114111}function c(f){return f===s||f===a||f===o||f===n}function l(f){return f>=65&&f<=90||f>=97&&f<=122||f===58||f===95||f===8204||f===8205||f>=192&&f<=214||f>=216&&f<=246||f>=248&&f<=767||f>=880&&f<=893||f>=895&&f<=8191||f>=8304&&f<=8591||f>=11264&&f<=12271||f>=12289&&f<=55295||f>=63744&&f<=64975||f>=65008&&f<=65533||f>=65536&&f<=983039}function u(f){return l(f)||f>=48&&f<=57||f===45||f===46||f===183||f>=768&&f<=879||f>=8255&&f<=8256}e.S_LIST=[s,a,o,n],e.isChar=i,e.isS=c,e.isNameStartChar=l,e.isNameChar=u},{}],544:[function(t,r,e){/**
|
||
* 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(e,"__esModule",{value:!0}),e.CHAR="--<2D>𐀀-",e.RESTRICTED_CHAR="-\b\v\f---",e.S=` \r
|
||
`,e.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-<2D>𐀀-",e.NAME_CHAR="-"+e.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",e.CHAR_RE=new RegExp("^["+e.CHAR+"]$","u"),e.RESTRICTED_CHAR_RE=new RegExp("^["+e.RESTRICTED_CHAR+"]$","u"),e.S_RE=new RegExp("^["+e.S+"]+$","u"),e.NAME_START_CHAR_RE=new RegExp("^["+e.NAME_START_CHAR+"]$","u"),e.NAME_CHAR_RE=new RegExp("^["+e.NAME_CHAR+"]$","u"),e.NAME_RE=new RegExp("^["+e.NAME_START_CHAR+"]["+e.NAME_CHAR+"]*$","u"),e.NMTOKEN_RE=new RegExp("^["+e.NAME_CHAR+"]+$","u");var n=9,a=10,o=13,s=32;function i(d){return d>=1&&d<=55295||d>=57344&&d<=65533||d>=65536&&d<=1114111}function c(d){return d>=1&&d<=8||d===11||d===12||d>=14&&d<=31||d>=127&&d<=132||d>=134&&d<=159}function l(d){return d===9||d===10||d===13||d>31&&d<127||d===133||d>159&&d<=55295||d>=57344&&d<=65533||d>=65536&&d<=1114111}function u(d){return d===s||d===a||d===o||d===n}function f(d){return d>=65&&d<=90||d>=97&&d<=122||d===58||d===95||d===8204||d===8205||d>=192&&d<=214||d>=216&&d<=246||d>=248&&d<=767||d>=880&&d<=893||d>=895&&d<=8191||d>=8304&&d<=8591||d>=11264&&d<=12271||d>=12289&&d<=55295||d>=63744&&d<=64975||d>=65008&&d<=65533||d>=65536&&d<=983039}function h(d){return f(d)||d>=48&&d<=57||d===45||d===46||d===183||d>=768&&d<=879||d>=8255&&d<=8256}e.S_LIST=[s,a,o,n],e.isChar=i,e.isRestrictedChar=c,e.isCharAndNotRestricted=l,e.isS=u,e.isNameStartChar=f,e.isNameChar=h},{}],545:[function(t,r,e){function n(o){return o>=65&&o<=90||o===95||o>=97&&o<=122||o>=192&&o<=214||o>=216&&o<=246||o>=248&&o<=767||o>=880&&o<=893||o>=895&&o<=8191||o>=8204&&o<=8205||o>=8304&&o<=8591||o>=11264&&o<=12271||o>=12289&&o<=55295||o>=63744&&o<=64975||o>=65008&&o<=65533||o>=65536&&o<=983039}function a(o){return n(o)||o===45||o===46||o>=48&&o<=57||o===183||o>=768&&o<=879||o>=8255&&o<=8256}/**
|
||
* Character class utilities for XML NS 1.0 edition 3.
|
||
*
|
||
* @author Louis-Dominique Dubeau
|
||
* @license MIT
|
||
* @copyright Louis-Dominique Dubeau
|
||
*/Object.defineProperty(e,"__esModule",{value:!0}),e.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-<2D>𐀀-",e.NC_NAME_CHAR="-"+e.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",e.NC_NAME_START_CHAR_RE=new RegExp("^["+e.NC_NAME_START_CHAR+"]$","u"),e.NC_NAME_CHAR_RE=new RegExp("^["+e.NC_NAME_CHAR+"]$","u"),e.NC_NAME_RE=new RegExp("^["+e.NC_NAME_START_CHAR+"]["+e.NC_NAME_CHAR+"]*$","u"),e.isNCNameStartChar=n,e.isNCNameChar=a},{}]},{},[15])(15);var aw=j0.exports;function z0(){return(z0=xr(Ne.mark(function t(r,e){return Ne.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(e){n.next=2;break}return n.abrupt("return");case 2:e instanceof ArrayBuffer&&(e=new Blob([e])),sw(r,URL.createObjectURL(e));case 4:case"end":return n.stop()}},t)}))).apply(this,arguments)}function sw(t,r){var e=document.createElement("a");e.download=t,e.style.display="none",e.href=r,document.body.appendChild(e),e.click(),document.body.removeChild(e)}function ff(t){return(ff=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(t)}var ow=/^\s+/,cw=/\s+$/;function Ue(t,r){if(r=r||{},(t=t||"")instanceof Ue)return t;if(!(this instanceof Ue))return new Ue(t,r);var e=function(n){var a={r:0,g:0,b:0},o=1,s=null,i=null,c=null,l=!1,u=!1;typeof n=="string"&&(n=function(p){p=p.replace(ow,"").replace(cw,"").toLowerCase();var m,v=!1;if(hf[p])p=hf[p],v=!0;else if(p=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(m=ea.rgb.exec(p))?{r:m[1],g:m[2],b:m[3]}:(m=ea.rgba.exec(p))?{r:m[1],g:m[2],b:m[3],a:m[4]}:(m=ea.hsl.exec(p))?{h:m[1],s:m[2],l:m[3]}:(m=ea.hsla.exec(p))?{h:m[1],s:m[2],l:m[3],a:m[4]}:(m=ea.hsv.exec(p))?{h:m[1],s:m[2],v:m[3]}:(m=ea.hsva.exec(p))?{h:m[1],s:m[2],v:m[3],a:m[4]}:(m=ea.hex8.exec(p))?{r:xi(m[1]),g:xi(m[2]),b:xi(m[3]),a:Y0(m[4]),format:v?"name":"hex8"}:(m=ea.hex6.exec(p))?{r:xi(m[1]),g:xi(m[2]),b:xi(m[3]),format:v?"name":"hex"}:(m=ea.hex4.exec(p))?{r:xi(m[1]+""+m[1]),g:xi(m[2]+""+m[2]),b:xi(m[3]+""+m[3]),a:Y0(m[4]+""+m[4]),format:v?"name":"hex8"}:(m=ea.hex3.exec(p))?{r:xi(m[1]+""+m[1]),g:xi(m[2]+""+m[2]),b:xi(m[3]+""+m[3]),format:v?"name":"hex"}:!1}(n)),ff(n)=="object"&&(Ia(n.r)&&Ia(n.g)&&Ia(n.b)?(f=n.r,h=n.g,d=n.b,a={r:255*qr(f,255),g:255*qr(h,255),b:255*qr(d,255)},l=!0,u=String(n.r).substr(-1)==="%"?"prgb":"rgb"):Ia(n.h)&&Ia(n.s)&&Ia(n.v)?(s=nc(n.s),i=nc(n.v),a=function(p,m,v){p=6*qr(p,360),m=qr(m,100),v=qr(v,100);var b=Math.floor(p),g=p-b,y=v*(1-m),w=v*(1-g*m),x=v*(1-(1-g)*m),C=b%6,O=[v,w,y,y,x,v][C],D=[x,v,v,w,y,y][C],j=[y,y,x,v,v,w][C];return{r:255*O,g:255*D,b:255*j}}(n.h,s,i),l=!0,u="hsv"):Ia(n.h)&&Ia(n.s)&&Ia(n.l)&&(s=nc(n.s),c=nc(n.l),a=function(p,m,v){var b,g,y;function w(O,D,j){return j<0&&(j+=1),j>1&&(j-=1),j<1/6?O+6*(D-O)*j:j<.5?D:j<2/3?O+(D-O)*(2/3-j)*6:O}if(p=qr(p,360),m=qr(m,100),v=qr(v,100),m===0)b=g=y=v;else{var x=v<.5?v*(1+m):v+m-v*m,C=2*v-x;b=w(C,x,p+1/3),g=w(C,x,p),y=w(C,x,p-1/3)}return{r:255*b,g:255*g,b:255*y}}(n.h,s,c),l=!0,u="hsl"),n.hasOwnProperty("a")&&(o=n.a));var f,h,d;return o=q0(o),{ok:l,format:n.format||u,r:Math.min(255,Math.max(a.r,0)),g:Math.min(255,Math.max(a.g,0)),b:Math.min(255,Math.max(a.b,0)),a:o}}(t);this._originalInput=t,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=r.format||e.format,this._gradientType=r.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}function U0(t,r,e){t=qr(t,255),r=qr(r,255),e=qr(e,255);var n,a,o=Math.max(t,r,e),s=Math.min(t,r,e),i=(o+s)/2;if(o==s)n=a=0;else{var c=o-s;switch(a=i>.5?c/(2-o-s):c/(o+s),o){case t:n=(r-e)/c+(r<e?6:0);break;case r:n=(e-t)/c+2;break;case e:n=(t-r)/c+4}n/=6}return{h:n,s:a,l:i}}function H0(t,r,e){t=qr(t,255),r=qr(r,255),e=qr(e,255);var n,a,o=Math.max(t,r,e),s=Math.min(t,r,e),i=o,c=o-s;if(a=o===0?0:c/o,o==s)n=0;else{switch(o){case t:n=(r-e)/c+(r<e?6:0);break;case r:n=(e-t)/c+2;break;case e:n=(t-r)/c+4}n/=6}return{h:n,s:a,v:i}}function W0(t,r,e,n){var a=[ta(Math.round(t).toString(16)),ta(Math.round(r).toString(16)),ta(Math.round(e).toString(16))];return n&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function V0(t,r,e,n){return[ta(G0(n)),ta(Math.round(t).toString(16)),ta(Math.round(r).toString(16)),ta(Math.round(e).toString(16))].join("")}function lw(t,r){r=r===0?0:r||10;var e=Ue(t).toHsl();return e.s-=r/100,e.s=vl(e.s),Ue(e)}function uw(t,r){r=r===0?0:r||10;var e=Ue(t).toHsl();return e.s+=r/100,e.s=vl(e.s),Ue(e)}function fw(t){return Ue(t).desaturate(100)}function hw(t,r){r=r===0?0:r||10;var e=Ue(t).toHsl();return e.l+=r/100,e.l=vl(e.l),Ue(e)}function dw(t,r){r=r===0?0:r||10;var e=Ue(t).toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(-r/100*255))),e.g=Math.max(0,Math.min(255,e.g-Math.round(-r/100*255))),e.b=Math.max(0,Math.min(255,e.b-Math.round(-r/100*255))),Ue(e)}function pw(t,r){r=r===0?0:r||10;var e=Ue(t).toHsl();return e.l-=r/100,e.l=vl(e.l),Ue(e)}function mw(t,r){var e=Ue(t).toHsl(),n=(e.h+r)%360;return e.h=n<0?360+n:n,Ue(e)}function vw(t){var r=Ue(t).toHsl();return r.h=(r.h+180)%360,Ue(r)}function $0(t,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var e=Ue(t).toHsl(),n=[Ue(t)],a=360/r,o=1;o<r;o++)n.push(Ue({h:(e.h+o*a)%360,s:e.s,l:e.l}));return n}function gw(t){var r=Ue(t).toHsl(),e=r.h;return[Ue(t),Ue({h:(e+72)%360,s:r.s,l:r.l}),Ue({h:(e+216)%360,s:r.s,l:r.l})]}function bw(t,r,e){r=r||6,e=e||30;var n=Ue(t).toHsl(),a=360/e,o=[Ue(t)];for(n.h=(n.h-(a*r>>1)+720)%360;--r;)n.h=(n.h+a)%360,o.push(Ue(n));return o}function yw(t,r){r=r||6;for(var e=Ue(t).toHsv(),n=e.h,a=e.s,o=e.v,s=[],i=1/r;r--;)s.push(Ue({h:n,s:a,v:o})),o=(o+i)%1;return s}Ue.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 t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,r,e,n=this.toRgb();return t=n.r/255,r=n.g/255,e=n.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))},setAlpha:function(t){return this._a=q0(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=H0(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=H0(this._r,this._g,this._b),r=Math.round(360*t.h),e=Math.round(100*t.s),n=Math.round(100*t.v);return this._a==1?"hsv("+r+", "+e+"%, "+n+"%)":"hsva("+r+", "+e+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=U0(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=U0(this._r,this._g,this._b),r=Math.round(360*t.h),e=Math.round(100*t.s),n=Math.round(100*t.l);return this._a==1?"hsl("+r+", "+e+"%, "+n+"%)":"hsla("+r+", "+e+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return W0(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(r,e,n,a,o){var s=[ta(Math.round(r).toString(16)),ta(Math.round(e).toString(16)),ta(Math.round(n).toString(16)),ta(G0(a))];return o&&s[0].charAt(0)==s[0].charAt(1)&&s[1].charAt(0)==s[1].charAt(1)&&s[2].charAt(0)==s[2].charAt(1)&&s[3].charAt(0)==s[3].charAt(1)?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0)+s[3].charAt(0):s.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*qr(this._r,255))+"%",g:Math.round(100*qr(this._g,255))+"%",b:Math.round(100*qr(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(100*qr(this._r,255))+"%, "+Math.round(100*qr(this._g,255))+"%, "+Math.round(100*qr(this._b,255))+"%)":"rgba("+Math.round(100*qr(this._r,255))+"%, "+Math.round(100*qr(this._g,255))+"%, "+Math.round(100*qr(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(ww[W0(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var r="#"+V0(this._r,this._g,this._b,this._a),e=r,n=this._gradientType?"GradientType = 1, ":"";if(t){var a=Ue(t);e="#"+V0(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+r+",endColorstr="+e+")"},toString:function(t){var r=!!t;t=t||this._format;var e=!1,n=this._a<1&&this._a>=0;return r||!n||t!=="hex"&&t!=="hex6"&&t!=="hex3"&&t!=="hex4"&&t!=="hex8"&&t!=="name"?(t==="rgb"&&(e=this.toRgbString()),t==="prgb"&&(e=this.toPercentageRgbString()),t!=="hex"&&t!=="hex6"||(e=this.toHexString()),t==="hex3"&&(e=this.toHexString(!0)),t==="hex4"&&(e=this.toHex8String(!0)),t==="hex8"&&(e=this.toHex8String()),t==="name"&&(e=this.toName()),t==="hsl"&&(e=this.toHslString()),t==="hsv"&&(e=this.toHsvString()),e||this.toHexString()):t==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return Ue(this.toString())},_applyModification:function(t,r){var e=t.apply(null,[this].concat([].slice.call(r)));return this._r=e._r,this._g=e._g,this._b=e._b,this.setAlpha(e._a),this},lighten:function(){return this._applyModification(hw,arguments)},brighten:function(){return this._applyModification(dw,arguments)},darken:function(){return this._applyModification(pw,arguments)},desaturate:function(){return this._applyModification(lw,arguments)},saturate:function(){return this._applyModification(uw,arguments)},greyscale:function(){return this._applyModification(fw,arguments)},spin:function(){return this._applyModification(mw,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(bw,arguments)},complement:function(){return this._applyCombination(vw,arguments)},monochromatic:function(){return this._applyCombination(yw,arguments)},splitcomplement:function(){return this._applyCombination(gw,arguments)},triad:function(){return this._applyCombination($0,[3])},tetrad:function(){return this._applyCombination($0,[4])}},Ue.fromRatio=function(t,r){if(ff(t)=="object"){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=n==="a"?t[n]:nc(t[n]));t=e}return Ue(t,r)},Ue.equals=function(t,r){return!(!t||!r)&&Ue(t).toRgbString()==Ue(r).toRgbString()},Ue.random=function(){return Ue.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},Ue.mix=function(t,r,e){e=e===0?0:e||50;var n=Ue(t).toRgb(),a=Ue(r).toRgb(),o=e/100;return Ue({r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a})},Ue.readability=function(t,r){var e=Ue(t),n=Ue(r);return(Math.max(e.getLuminance(),n.getLuminance())+.05)/(Math.min(e.getLuminance(),n.getLuminance())+.05)},Ue.isReadable=function(t,r,e){var n,a,o=Ue.readability(t,r);switch(a=!1,(n=function(s){var i,c;return i=((s=s||{level:"AA",size:"small"}).level||"AA").toUpperCase(),c=(s.size||"small").toLowerCase(),i!=="AA"&&i!=="AAA"&&(i="AA"),c!=="small"&&c!=="large"&&(c="small"),{level:i,size:c}}(e)).level+n.size){case"AAsmall":case"AAAlarge":a=o>=4.5;break;case"AAlarge":a=o>=3;break;case"AAAsmall":a=o>=7}return a},Ue.mostReadable=function(t,r,e){var n,a,o,s,i=null,c=0;a=(e=e||{}).includeFallbackColors,o=e.level,s=e.size;for(var l=0;l<r.length;l++)(n=Ue.readability(t,r[l]))>c&&(c=n,i=Ue(r[l]));return Ue.isReadable(t,i,{level:o,size:s})||!a?i:(e.includeFallbackColors=!1,Ue.mostReadable(t,["#fff","#000"],e))};var hf=Ue.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"},ww=Ue.hexNames=function(t){var r={};for(var e in t)t.hasOwnProperty(e)&&(r[t[e]]=e);return r}(hf);function q0(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function qr(t,r){(function(n){return typeof n=="string"&&n.indexOf(".")!=-1&&parseFloat(n)===1})(t)&&(t="100%");var e=function(n){return typeof n=="string"&&n.indexOf("%")!=-1}(t);return t=Math.min(r,Math.max(0,parseFloat(t))),e&&(t=parseInt(t*r,10)/100),Math.abs(t-r)<1e-6?1:t%r/parseFloat(r)}function vl(t){return Math.min(1,Math.max(0,t))}function xi(t){return parseInt(t,16)}function ta(t){return t.length==1?"0"+t:""+t}function nc(t){return t<=1&&(t=100*t+"%"),t}function G0(t){return Math.round(255*parseFloat(t)).toString(16)}function Y0(t){return xi(t)/255}var ts,gl,bl,ea=(gl="[\\s|\\(]+("+(ts="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+ts+")[,|\\s]+("+ts+")\\s*\\)?",bl="[\\s|\\(]+("+ts+")[,|\\s]+("+ts+")[,|\\s]+("+ts+")[,|\\s]+("+ts+")\\s*\\)?",{CSS_UNIT:new RegExp(ts),rgb:new RegExp("rgb"+gl),rgba:new RegExp("rgba"+bl),hsl:new RegExp("hsl"+gl),hsla:new RegExp("hsla"+bl),hsv:new RegExp("hsv"+gl),hsva:new RegExp("hsva"+bl),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 Ia(t){return!!ea.CSS_UNIT.exec(t)}var df={exports:{}};(function(t,r){(function(){var e,n="Expected a function",a="__lodash_hash_undefined__",o="__lodash_placeholder__",s=16,i=32,c=64,l=128,u=256,f=1/0,h=9007199254740991,d=NaN,p=4294967295,m=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",i],["partialRight",c],["rearg",u]],v="[object Arguments]",b="[object Array]",g="[object Boolean]",y="[object Date]",w="[object Error]",x="[object Function]",C="[object GeneratorFunction]",O="[object Map]",D="[object Number]",j="[object Object]",U="[object Promise]",L="[object RegExp]",V="[object Set]",A="[object String]",N="[object Symbol]",k="[object WeakMap]",S="[object ArrayBuffer]",E="[object DataView]",T="[object Float32Array]",R="[object Float64Array]",F="[object Int8Array]",I="[object Int16Array]",B="[object Int32Array]",P="[object Uint8Array]",H="[object Uint8ClampedArray]",Z="[object Uint16Array]",Y="[object Uint32Array]",dt=/\b__p \+= '';/g,gt=/\b(__p \+=) '' \+/g,bt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Q=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,tt=RegExp(Q.source),et=RegExp(q.source),_t=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,st=/<%=([\s\S]+?)%>/g,Ot=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,W=/^\w*$/,X=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,it=/[\\^$.*+?()[\]{}|]/g,xt=RegExp(it.source),Nt=/^\s+/,G=/\s/,Mt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Pt=/\{\n\/\* \[wrapped with (.+)\] \*/,lt=/,? & /,ct=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pt=/[()=,{}\[\]\/\s]/,Dt=/\\(\\)?/g,rt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,nt=/\w*$/,ht=/^[-+]0x[0-9a-f]+$/i,St=/^0b[01]+$/i,ut=/^\[object .+?Constructor\]$/,vt=/^0o[0-7]+$/i,ft=/^(?:0|[1-9]\d*)$/,yt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ct=/($^)/,zt=/['\n\r\u2028\u2029\\]/g,Bt="\\ud800-\\udfff",re="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Yt="\\u2700-\\u27bf",qt="a-z\\xdf-\\xf6\\xf8-\\xff",te="A-Z\\xc0-\\xd6\\xd8-\\xde",le="\\ufe0e\\ufe0f",ne="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",de="['’]",Xt="["+Bt+"]",pe="["+ne+"]",Re="["+re+"]",je="\\d+",ie="["+Yt+"]",xe="["+qt+"]",ye="[^"+Bt+ne+je+Yt+qt+te+"]",Zt="\\ud83c[\\udffb-\\udfff]",Te="[^"+Bt+"]",Se="(?:\\ud83c[\\udde6-\\uddff]){2}",Ae="[\\ud800-\\udbff][\\udc00-\\udfff]",Pe="["+te+"]",He="\\u200d",fe="(?:"+xe+"|"+ye+")",Be="(?:"+Pe+"|"+ye+")",ze="(?:['’](?:d|ll|m|re|s|t|ve))?",qe="(?:['’](?:D|LL|M|RE|S|T|VE))?",or="(?:"+Re+"|"+Zt+")?",wt="["+le+"]?",Ft=wt+or+("(?:"+He+"(?:"+[Te,Se,Ae].join("|")+")"+wt+or+")*"),Ut="(?:"+[ie,Se,Ae].join("|")+")"+Ft,ve="(?:"+[Te+Re+"?",Re,Se,Ae,Xt].join("|")+")",De=RegExp(de,"g"),yr=RegExp(Re,"g"),Hr=RegExp(Zt+"(?="+Zt+")|"+ve+Ft,"g"),Qr=RegExp([Pe+"?"+xe+"+"+ze+"(?="+[pe,Pe,"$"].join("|")+")",Be+"+"+qe+"(?="+[pe,Pe+fe,"$"].join("|")+")",Pe+"?"+fe+"+"+ze,Pe+"+"+qe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",je,Ut].join("|"),"g"),Mn=RegExp("["+He+Bt+re+le+"]"),bn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,on=["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"],yn=-1,Je={};Je[T]=Je[R]=Je[F]=Je[I]=Je[B]=Je[P]=Je[H]=Je[Z]=Je[Y]=!0,Je[v]=Je[b]=Je[S]=Je[g]=Je[E]=Je[y]=Je[w]=Je[x]=Je[O]=Je[D]=Je[j]=Je[L]=Je[V]=Je[A]=Je[k]=!1;var Ke={};Ke[v]=Ke[b]=Ke[S]=Ke[E]=Ke[g]=Ke[y]=Ke[T]=Ke[R]=Ke[F]=Ke[I]=Ke[B]=Ke[O]=Ke[D]=Ke[j]=Ke[L]=Ke[V]=Ke[A]=Ke[N]=Ke[P]=Ke[H]=Ke[Z]=Ke[Y]=!0,Ke[w]=Ke[x]=Ke[k]=!1;var ai={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},wn=parseFloat,si=parseInt,Wi=typeof ur=="object"&&ur&&ur.Object===Object&&ur,Lc=typeof self=="object"&&self&&self.Object===Object&&self,Yr=Wi||Lc||Function("return this")(),ka=r&&!r.nodeType&&r,sa=ka&&t&&!t.nodeType&&t,xa=sa&&sa.exports===ka,hs=xa&&Wi.process,On=function(){try{var Vt=sa&&sa.require&&sa.require("util").types;return Vt||hs&&hs.binding&&hs.binding("util")}catch(Jt){}}(),Oo=On&&On.isArrayBuffer,Io=On&&On.isDate,ds=On&&On.isMap,No=On&&On.isRegExp,Gs=On&&On.isSet,Po=On&&On.isTypedArray;function jn(Vt,Jt,ue){switch(ue.length){case 0:return Vt.call(Jt);case 1:return Vt.call(Jt,ue[0]);case 2:return Vt.call(Jt,ue[0],ue[1]);case 3:return Vt.call(Jt,ue[0],ue[1],ue[2])}return Vt.apply(Jt,ue)}function Do(Vt,Jt,ue,Me){for(var ot=-1,Et=Vt==null?0:Vt.length;++ot<Et;){var $t=Vt[ot];Jt(Me,$t,ue($t),Vt)}return Me}function _n(Vt,Jt){for(var ue=-1,Me=Vt==null?0:Vt.length;++ue<Me&&Jt(Vt[ue],ue,Vt)!==!1;);return Vt}function Sa(Vt,Jt){for(var ue=Vt==null?0:Vt.length;ue--&&Jt(Vt[ue],ue,Vt)!==!1;);return Vt}function Fo(Vt,Jt){for(var ue=-1,Me=Vt==null?0:Vt.length;++ue<Me;)if(!Jt(Vt[ue],ue,Vt))return!1;return!0}function Vi(Vt,Jt){for(var ue=-1,Me=Vt==null?0:Vt.length,ot=0,Et=[];++ue<Me;){var $t=Vt[ue];Jt($t,ue,Vt)&&(Et[ot++]=$t)}return Et}function oi(Vt,Jt){return!!(Vt!=null&&Vt.length)&&ci(Vt,Jt,0)>-1}function ps(Vt,Jt,ue){for(var Me=-1,ot=Vt==null?0:Vt.length;++Me<ot;)if(ue(Jt,Vt[Me]))return!0;return!1}function Br(Vt,Jt){for(var ue=-1,Me=Vt==null?0:Vt.length,ot=Array(Me);++ue<Me;)ot[ue]=Jt(Vt[ue],ue,Vt);return ot}function $i(Vt,Jt){for(var ue=-1,Me=Jt.length,ot=Vt.length;++ue<Me;)Vt[ot+ue]=Jt[ue];return Vt}function Ys(Vt,Jt,ue,Me){var ot=-1,Et=Vt==null?0:Vt.length;for(Me&&Et&&(ue=Vt[++ot]);++ot<Et;)ue=Jt(ue,Vt[ot],ot,Vt);return ue}function jo(Vt,Jt,ue,Me){var ot=Vt==null?0:Vt.length;for(Me&&ot&&(ue=Vt[--ot]);ot--;)ue=Jt(ue,Vt[ot],ot,Vt);return ue}function Ri(Vt,Jt){for(var ue=-1,Me=Vt==null?0:Vt.length;++ue<Me;)if(Jt(Vt[ue],ue,Vt))return!0;return!1}var Lo=ca("length");function Ua(Vt,Jt,ue){var Me;return ue(Vt,function(ot,Et,$t){if(Jt(ot,Et,$t))return Me=Et,!1}),Me}function oa(Vt,Jt,ue,Me){for(var ot=Vt.length,Et=ue+(Me?1:-1);Me?Et--:++Et<ot;)if(Jt(Vt[Et],Et,Vt))return Et;return-1}function ci(Vt,Jt,ue){return Jt==Jt?function(Me,ot,Et){for(var $t=Et-1,he=Me.length;++$t<he;)if(Me[$t]===ot)return $t;return-1}(Vt,Jt,ue):oa(Vt,Bo,ue)}function gi(Vt,Jt,ue,Me){for(var ot=ue-1,Et=Vt.length;++ot<Et;)if(Me(Vt[ot],Jt))return ot;return-1}function Bo(Vt){return Vt!=Vt}function ms(Vt,Jt){var ue=Vt==null?0:Vt.length;return ue?gs(Vt,Jt)/ue:d}function ca(Vt){return function(Jt){return Jt==null?e:Jt[Vt]}}function vs(Vt){return function(Jt){return Vt==null?e:Vt[Jt]}}function Ta(Vt,Jt,ue,Me,ot){return ot(Vt,function(Et,$t,he){ue=Me?(Me=!1,Et):Jt(ue,Et,$t,he)}),ue}function gs(Vt,Jt){for(var ue,Me=-1,ot=Vt.length;++Me<ot;){var Et=Jt(Vt[Me]);Et!==e&&(ue=ue===e?Et:ue+Et)}return ue}function bs(Vt,Jt){for(var ue=-1,Me=Array(Vt);++ue<Vt;)Me[ue]=Jt(ue);return Me}function Ks(Vt){return Vt&&Vt.slice(0,Bn(Vt)+1).replace(Nt,"")}function Ln(Vt){return function(Jt){return Vt(Jt)}}function Tt(Vt,Jt){return Br(Jt,function(ue){return Vt[ue]})}function Lt(Vt,Jt){return Vt.has(Jt)}function se(Vt,Jt){for(var ue=-1,Me=Vt.length;++ue<Me&&ci(Jt,Vt[ue],0)>-1;);return ue}function Oe(Vt,Jt){for(var ue=Vt.length;ue--&&ci(Jt,Vt[ue],0)>-1;);return ue}var Or=vs({À:"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"}),er=vs({"&":"&","<":"<",">":">",'"':""","'":"'"});function Sr(Vt){return"\\"+ai[Vt]}function Fr(Vt){return Mn.test(Vt)}function tn(Vt){var Jt=-1,ue=Array(Vt.size);return Vt.forEach(function(Me,ot){ue[++Jt]=[ot,Me]}),ue}function Rr(Vt,Jt){return function(ue){return Vt(Jt(ue))}}function Cr(Vt,Jt){for(var ue=-1,Me=Vt.length,ot=0,Et=[];++ue<Me;){var $t=Vt[ue];$t!==Jt&&$t!==o||(Vt[ue]=o,Et[ot++]=ue)}return Et}function kn(Vt){var Jt=-1,ue=Array(Vt.size);return Vt.forEach(function(Me){ue[++Jt]=Me}),ue}function Kr(Vt){return Fr(Vt)?function(Jt){for(var ue=Hr.lastIndex=0;Hr.test(Jt);)++ue;return ue}(Vt):Lo(Vt)}function jr(Vt){return Fr(Vt)?function(Jt){return Jt.match(Hr)||[]}(Vt):function(Jt){return Jt.split("")}(Vt)}function Bn(Vt){for(var Jt=Vt.length;Jt--&&G.test(Vt.charAt(Jt)););return Jt}var Mi=vs({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Jn=function Vt(Jt){var ue,Me=(Jt=Jt==null?Yr:Jn.defaults(Yr.Object(),Jt,Jn.pick(Yr,on))).Array,ot=Jt.Date,Et=Jt.Error,$t=Jt.Function,he=Jt.Math,Ee=Jt.Object,Ie=Jt.RegExp,vr=Jt.String,hr=Jt.TypeError,Ur=Me.prototype,en=$t.prototype,zr=Ee.prototype,zn=Jt["__core-js_shared__"],xn=en.toString,ir=zr.hasOwnProperty,bi=0,qi=(ue=/[^.]+$/.exec(zn&&zn.keys&&zn.keys.IE_PROTO||""))?"Symbol(src)_1."+ue:"",Gi=zr.toString,Ha=xn.call(Ee),zo=Yr._,N5=Ie("^"+xn.call(ir).replace(it,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ql=xa?Jt.Buffer:e,ys=Jt.Symbol,tu=Jt.Uint8Array,bv=Ql?Ql.allocUnsafe:e,eu=Rr(Ee.getPrototypeOf,Ee),yv=Ee.create,wv=zr.propertyIsEnumerable,ru=Ur.splice,_v=ys?ys.isConcatSpreadable:e,Bc=ys?ys.iterator:e,Xs=ys?ys.toStringTag:e,nu=function(){try{var _=eo(Ee,"defineProperty");return _({},"",{}),_}catch(M){}}(),P5=Jt.clearTimeout!==Yr.clearTimeout&&Jt.clearTimeout,D5=ot&&ot.now!==Yr.Date.now&&ot.now,F5=Jt.setTimeout!==Yr.setTimeout&&Jt.setTimeout,iu=he.ceil,au=he.floor,Ah=Ee.getOwnPropertySymbols,j5=Ql?Ql.isBuffer:e,kv=Jt.isFinite,L5=Ur.join,B5=Rr(Ee.keys,Ee),Sn=he.max,Qn=he.min,z5=ot.now,U5=Jt.parseInt,xv=he.random,H5=Ur.reverse,Rh=eo(Jt,"DataView"),zc=eo(Jt,"Map"),Mh=eo(Jt,"Promise"),Uo=eo(Jt,"Set"),Uc=eo(Jt,"WeakMap"),Hc=eo(Ee,"create"),su=Uc&&new Uc,Ho={},W5=ro(Rh),V5=ro(zc),$5=ro(Mh),q5=ro(Uo),G5=ro(Uc),ou=ys?ys.prototype:e,Wc=ou?ou.valueOf:e,Sv=ou?ou.toString:e;function mt(_){if(rn(_)&&!ar(_)&&!(_ instanceof kr)){if(_ instanceof Yi)return _;if(ir.call(_,"__wrapped__"))return Eg(_)}return new Yi(_)}var Wo=function(){function _(){}return function(M){if(!Xr(M))return{};if(yv)return yv(M);_.prototype=M;var z=new _;return _.prototype=e,z}}();function cu(){}function Yi(_,M){this.__wrapped__=_,this.__actions__=[],this.__chain__=!!M,this.__index__=0,this.__values__=e}function kr(_){this.__wrapped__=_,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Zs(_){var M=-1,z=_==null?0:_.length;for(this.clear();++M<z;){var K=_[M];this.set(K[0],K[1])}}function Wa(_){var M=-1,z=_==null?0:_.length;for(this.clear();++M<z;){var K=_[M];this.set(K[0],K[1])}}function Va(_){var M=-1,z=_==null?0:_.length;for(this.clear();++M<z;){var K=_[M];this.set(K[0],K[1])}}function Js(_){var M=-1,z=_==null?0:_.length;for(this.__data__=new Va;++M<z;)this.add(_[M])}function la(_){var M=this.__data__=new Wa(_);this.size=M.size}function Tv(_,M){var z=ar(_),K=!z&&no(_),at=!z&&!K&&Ss(_),kt=!z&&!K&&!at&&Go(_),It=z||K||at||kt,jt=It?bs(_.length,vr):[],Wt=jt.length;for(var ee in _)!M&&!ir.call(_,ee)||It&&(ee=="length"||at&&(ee=="offset"||ee=="parent")||kt&&(ee=="buffer"||ee=="byteLength"||ee=="byteOffset")||Ya(ee,Wt))||jt.push(ee);return jt}function Ev(_){var M=_.length;return M?_[Uh(0,M-1)]:e}function Y5(_,M){return ku(yi(_),Qs(M,0,_.length))}function K5(_){return ku(yi(_))}function Oh(_,M,z){(z!==e&&!ua(_[M],z)||z===e&&!(M in _))&&$a(_,M,z)}function Vc(_,M,z){var K=_[M];ir.call(_,M)&&ua(K,z)&&(z!==e||M in _)||$a(_,M,z)}function lu(_,M){for(var z=_.length;z--;)if(ua(_[z][0],M))return z;return-1}function X5(_,M,z,K){return ws(_,function(at,kt,It){M(K,at,z(at),It)}),K}function Cv(_,M){return _&&Ca(M,In(M),_)}function $a(_,M,z){M=="__proto__"&&nu?nu(_,M,{configurable:!0,enumerable:!0,value:z,writable:!0}):_[M]=z}function Ih(_,M){for(var z=-1,K=M.length,at=Me(K),kt=_==null;++z<K;)at[z]=kt?e:pd(_,M[z]);return at}function Qs(_,M,z){return _==_&&(z!==e&&(_=_<=z?_:z),M!==e&&(_=_>=M?_:M)),_}function Ki(_,M,z,K,at,kt){var It,jt=1&M,Wt=2&M,ee=4&M;if(z&&(It=at?z(_,K,at,kt):z(_)),It!==e)return It;if(!Xr(_))return _;var ae=ar(_);if(ae){if(It=function(oe){var _e=oe.length,Xe=new oe.constructor(_e);return _e&&typeof oe[0]=="string"&&ir.call(oe,"index")&&(Xe.index=oe.index,Xe.input=oe.input),Xe}(_),!jt)return yi(_,It)}else{var ge=ti(_),Fe=ge==x||ge==C;if(Ss(_))return Zv(_,jt);if(ge==j||ge==v||Fe&&!at){if(It=Wt||Fe?{}:vg(_),!jt)return Wt?function(oe,_e){return Ca(oe,pg(oe),_e)}(_,function(oe,_e){return oe&&Ca(_e,_i(_e),oe)}(It,_)):function(oe,_e){return Ca(oe,ed(oe),_e)}(_,Cv(It,_))}else{if(!Ke[ge])return at?_:{};It=function(oe,_e,Xe){var Ce=oe.constructor;switch(_e){case S:return Yh(oe);case g:case y:return new Ce(+oe);case E:return function(rr,Ar){var We=Ar?Yh(rr.buffer):rr.buffer;return new rr.constructor(We,rr.byteOffset,rr.byteLength)}(oe,Xe);case T:case R:case F:case I:case B:case P:case H:case Z:case Y:return Jv(oe,Xe);case O:return new Ce;case D:case A:return new Ce(oe);case L:return function(rr){var Ar=new rr.constructor(rr.source,nt.exec(rr));return Ar.lastIndex=rr.lastIndex,Ar}(oe);case V:return new Ce;case N:return cr=oe,Wc?Ee(Wc.call(cr)):{}}var cr}(_,ge,jt)}}kt||(kt=new la);var Le=kt.get(_);if(Le)return Le;kt.set(_,It),Vg(_)?_.forEach(function(oe){It.add(Ki(oe,M,z,oe,_,kt))}):Hg(_)&&_.forEach(function(oe,_e){It.set(_e,Ki(oe,M,z,_e,_,kt))});var Ge=ae?e:(ee?Wt?Jh:Zh:Wt?_i:In)(_);return _n(Ge||_,function(oe,_e){Ge&&(oe=_[_e=oe]),Vc(It,_e,Ki(oe,M,z,_e,_,kt))}),It}function Av(_,M,z){var K=z.length;if(_==null)return!K;for(_=Ee(_);K--;){var at=z[K],kt=M[at],It=_[at];if(It===e&&!(at in _)||!kt(It))return!1}return!0}function Rv(_,M,z){if(typeof _!="function")throw new hr(n);return Zc(function(){_.apply(e,z)},M)}function $c(_,M,z,K){var at=-1,kt=oi,It=!0,jt=_.length,Wt=[],ee=M.length;if(!jt)return Wt;z&&(M=Br(M,Ln(z))),K?(kt=ps,It=!1):M.length>=200&&(kt=Lt,It=!1,M=new Js(M));t:for(;++at<jt;){var ae=_[at],ge=z==null?ae:z(ae);if(ae=K||ae!==0?ae:0,It&&ge==ge){for(var Fe=ee;Fe--;)if(M[Fe]===ge)continue t;Wt.push(ae)}else kt(M,ge,K)||Wt.push(ae)}return Wt}mt.templateSettings={escape:_t,evaluate:J,interpolate:st,variable:"",imports:{_:mt}},mt.prototype=cu.prototype,mt.prototype.constructor=mt,Yi.prototype=Wo(cu.prototype),Yi.prototype.constructor=Yi,kr.prototype=Wo(cu.prototype),kr.prototype.constructor=kr,Zs.prototype.clear=function(){this.__data__=Hc?Hc(null):{},this.size=0},Zs.prototype.delete=function(_){var M=this.has(_)&&delete this.__data__[_];return this.size-=M?1:0,M},Zs.prototype.get=function(_){var M=this.__data__;if(Hc){var z=M[_];return z===a?e:z}return ir.call(M,_)?M[_]:e},Zs.prototype.has=function(_){var M=this.__data__;return Hc?M[_]!==e:ir.call(M,_)},Zs.prototype.set=function(_,M){var z=this.__data__;return this.size+=this.has(_)?0:1,z[_]=Hc&&M===e?a:M,this},Wa.prototype.clear=function(){this.__data__=[],this.size=0},Wa.prototype.delete=function(_){var M=this.__data__,z=lu(M,_);return!(z<0)&&(z==M.length-1?M.pop():ru.call(M,z,1),--this.size,!0)},Wa.prototype.get=function(_){var M=this.__data__,z=lu(M,_);return z<0?e:M[z][1]},Wa.prototype.has=function(_){return lu(this.__data__,_)>-1},Wa.prototype.set=function(_,M){var z=this.__data__,K=lu(z,_);return K<0?(++this.size,z.push([_,M])):z[K][1]=M,this},Va.prototype.clear=function(){this.size=0,this.__data__={hash:new Zs,map:new(zc||Wa),string:new Zs}},Va.prototype.delete=function(_){var M=_u(this,_).delete(_);return this.size-=M?1:0,M},Va.prototype.get=function(_){return _u(this,_).get(_)},Va.prototype.has=function(_){return _u(this,_).has(_)},Va.prototype.set=function(_,M){var z=_u(this,_),K=z.size;return z.set(_,M),this.size+=z.size==K?0:1,this},Js.prototype.add=Js.prototype.push=function(_){return this.__data__.set(_,a),this},Js.prototype.has=function(_){return this.__data__.has(_)},la.prototype.clear=function(){this.__data__=new Wa,this.size=0},la.prototype.delete=function(_){var M=this.__data__,z=M.delete(_);return this.size=M.size,z},la.prototype.get=function(_){return this.__data__.get(_)},la.prototype.has=function(_){return this.__data__.has(_)},la.prototype.set=function(_,M){var z=this.__data__;if(z instanceof Wa){var K=z.__data__;if(!zc||K.length<199)return K.push([_,M]),this.size=++z.size,this;z=this.__data__=new Va(K)}return z.set(_,M),this.size=z.size,this};var ws=rg(Ea),Mv=rg(Ph,!0);function Z5(_,M){var z=!0;return ws(_,function(K,at,kt){return z=!!M(K,at,kt)}),z}function uu(_,M,z){for(var K=-1,at=_.length;++K<at;){var kt=_[K],It=M(kt);if(It!=null&&(jt===e?It==It&&!Ii(It):z(It,jt)))var jt=It,Wt=kt}return Wt}function Ov(_,M){var z=[];return ws(_,function(K,at,kt){M(K,at,kt)&&z.push(K)}),z}function Un(_,M,z,K,at){var kt=-1,It=_.length;for(z||(z=l8),at||(at=[]);++kt<It;){var jt=_[kt];M>0&&z(jt)?M>1?Un(jt,M-1,z,K,at):$i(at,jt):K||(at[at.length]=jt)}return at}var Nh=ng(),Iv=ng(!0);function Ea(_,M){return _&&Nh(_,M,In)}function Ph(_,M){return _&&Iv(_,M,In)}function fu(_,M){return Vi(M,function(z){return Ka(_[z])})}function to(_,M){for(var z=0,K=(M=ks(M,_)).length;_!=null&&z<K;)_=_[Aa(M[z++])];return z&&z==K?_:e}function Nv(_,M,z){var K=M(_);return ar(_)?K:$i(K,z(_))}function li(_){return _==null?_===e?"[object Undefined]":"[object Null]":Xs&&Xs in Ee(_)?function(M){var z=ir.call(M,Xs),K=M[Xs];try{M[Xs]=e;var at=!0}catch(It){}var kt=Gi.call(M);return at&&(z?M[Xs]=K:delete M[Xs]),kt}(_):function(M){return Gi.call(M)}(_)}function Dh(_,M){return _>M}function J5(_,M){return _!=null&&ir.call(_,M)}function Q5(_,M){return _!=null&&M in Ee(_)}function Fh(_,M,z){for(var K=z?ps:oi,at=_[0].length,kt=_.length,It=kt,jt=Me(kt),Wt=1/0,ee=[];It--;){var ae=_[It];It&&M&&(ae=Br(ae,Ln(M))),Wt=Qn(ae.length,Wt),jt[It]=!z&&(M||at>=120&&ae.length>=120)?new Js(It&&ae):e}ae=_[0];var ge=-1,Fe=jt[0];t:for(;++ge<at&&ee.length<Wt;){var Le=ae[ge],Ge=M?M(Le):Le;if(Le=z||Le!==0?Le:0,!(Fe?Lt(Fe,Ge):K(ee,Ge,z))){for(It=kt;--It;){var oe=jt[It];if(!(oe?Lt(oe,Ge):K(_[It],Ge,z)))continue t}Fe&&Fe.push(Ge),ee.push(Le)}}return ee}function qc(_,M,z){var K=(_=wg(_,M=ks(M,_)))==null?_:_[Aa(Zi(M))];return K==null?e:jn(K,_,z)}function Pv(_){return rn(_)&&li(_)==v}function Gc(_,M,z,K,at){return _===M||(_==null||M==null||!rn(_)&&!rn(M)?_!=_&&M!=M:function(kt,It,jt,Wt,ee,ae){var ge=ar(kt),Fe=ar(It),Le=ge?b:ti(kt),Ge=Fe?b:ti(It),oe=(Le=Le==v?j:Le)==j,_e=(Ge=Ge==v?j:Ge)==j,Xe=Le==Ge;if(Xe&&Ss(kt)){if(!Ss(It))return!1;ge=!0,oe=!1}if(Xe&&!oe)return ae||(ae=new la),ge||Go(kt)?dg(kt,It,jt,Wt,ee,ae):function(We,Ze,Tn,ln,fi,$r,ei){switch(Tn){case E:if(We.byteLength!=Ze.byteLength||We.byteOffset!=Ze.byteOffset)return!1;We=We.buffer,Ze=Ze.buffer;case S:return!(We.byteLength!=Ze.byteLength||!$r(new tu(We),new tu(Ze)));case g:case y:case D:return ua(+We,+Ze);case w:return We.name==Ze.name&&We.message==Ze.message;case L:case A:return We==Ze+"";case O:var Ra=tn;case V:var Ts=1&ln;if(Ra||(Ra=kn),We.size!=Ze.size&&!Ts)return!1;var Ou=ei.get(We);if(Ou)return Ou==Ze;ln|=2,ei.set(We,Ze);var Sd=dg(Ra(We),Ra(Ze),ln,fi,$r,ei);return ei.delete(We),Sd;case N:if(Wc)return Wc.call(We)==Wc.call(Ze)}return!1}(kt,It,Le,jt,Wt,ee,ae);if(!(1&jt)){var Ce=oe&&ir.call(kt,"__wrapped__"),cr=_e&&ir.call(It,"__wrapped__");if(Ce||cr){var rr=Ce?kt.value():kt,Ar=cr?It.value():It;return ae||(ae=new la),ee(rr,Ar,jt,Wt,ae)}}return Xe?(ae||(ae=new la),function(We,Ze,Tn,ln,fi,$r){var ei=1&Tn,Ra=Zh(We),Ts=Ra.length,Ou=Zh(Ze),Sd=Ou.length;if(Ts!=Sd&&!ei)return!1;for(var Iu=Ts;Iu--;){var io=Ra[Iu];if(!(ei?io in Ze:ir.call(Ze,io)))return!1}var i2=$r.get(We),a2=$r.get(Ze);if(i2&&a2)return i2==Ze&&a2==We;var Nu=!0;$r.set(We,Ze),$r.set(Ze,We);for(var Td=ei;++Iu<Ts;){var Pu=We[io=Ra[Iu]],Du=Ze[io];if(ln)var s2=ei?ln(Du,Pu,io,Ze,We,$r):ln(Pu,Du,io,We,Ze,$r);if(!(s2===e?Pu===Du||fi(Pu,Du,Tn,ln,$r):s2)){Nu=!1;break}Td||(Td=io=="constructor")}if(Nu&&!Td){var Fu=We.constructor,ju=Ze.constructor;Fu==ju||!("constructor"in We)||!("constructor"in Ze)||typeof Fu=="function"&&Fu instanceof Fu&&typeof ju=="function"&&ju instanceof ju||(Nu=!1)}return $r.delete(We),$r.delete(Ze),Nu}(kt,It,jt,Wt,ee,ae)):!1}(_,M,z,K,Gc,at))}function jh(_,M,z,K){var at=z.length,kt=at,It=!K;if(_==null)return!kt;for(_=Ee(_);at--;){var jt=z[at];if(It&&jt[2]?jt[1]!==_[jt[0]]:!(jt[0]in _))return!1}for(;++at<kt;){var Wt=(jt=z[at])[0],ee=_[Wt],ae=jt[1];if(It&&jt[2]){if(ee===e&&!(Wt in _))return!1}else{var ge=new la;if(K)var Fe=K(ee,ae,Wt,_,M,ge);if(!(Fe===e?Gc(ae,ee,3,K,ge):Fe))return!1}}return!0}function Dv(_){return!(!Xr(_)||(M=_,qi&&qi in M))&&(Ka(_)?N5:ut).test(ro(_));var M}function Fv(_){return typeof _=="function"?_:_==null?ki:typeof _=="object"?ar(_)?Bv(_[0],_[1]):Lv(_):n2(_)}function Lh(_){if(!Xc(_))return B5(_);var M=[];for(var z in Ee(_))ir.call(_,z)&&z!="constructor"&&M.push(z);return M}function t8(_){if(!Xr(_))return function(at){var kt=[];if(at!=null)for(var It in Ee(at))kt.push(It);return kt}(_);var M=Xc(_),z=[];for(var K in _)(K!="constructor"||!M&&ir.call(_,K))&&z.push(K);return z}function Bh(_,M){return _<M}function jv(_,M){var z=-1,K=wi(_)?Me(_.length):[];return ws(_,function(at,kt,It){K[++z]=M(at,kt,It)}),K}function Lv(_){var M=td(_);return M.length==1&&M[0][2]?bg(M[0][0],M[0][1]):function(z){return z===_||jh(z,_,M)}}function Bv(_,M){return rd(_)&&gg(M)?bg(Aa(_),M):function(z){var K=pd(z,_);return K===e&&K===M?md(z,_):Gc(M,K,3)}}function hu(_,M,z,K,at){_!==M&&Nh(M,function(kt,It){if(at||(at=new la),Xr(kt))(function(Wt,ee,ae,ge,Fe,Le,Ge){var oe=id(Wt,ae),_e=id(ee,ae),Xe=Ge.get(_e);if(Xe)return void Oh(Wt,ae,Xe);var Ce=Le?Le(oe,_e,ae+"",Wt,ee,Ge):e,cr=Ce===e;if(cr){var rr=ar(_e),Ar=!rr&&Ss(_e),We=!rr&&!Ar&&Go(_e);Ce=_e,rr||Ar||We?ar(oe)?Ce=oe:cn(oe)?Ce=yi(oe):Ar?(cr=!1,Ce=Zv(_e,!0)):We?(cr=!1,Ce=Jv(_e,!0)):Ce=[]:Jc(_e)||no(_e)?(Ce=oe,no(oe)?Ce=Gg(oe):Xr(oe)&&!Ka(oe)||(Ce=vg(_e))):cr=!1}cr&&(Ge.set(_e,Ce),Fe(Ce,_e,ge,Le,Ge),Ge.delete(_e)),Oh(Wt,ae,Ce)})(_,M,It,z,hu,K,at);else{var jt=K?K(id(_,It),kt,It+"",_,M,at):e;jt===e&&(jt=kt),Oh(_,It,jt)}},_i)}function zv(_,M){var z=_.length;if(z)return Ya(M+=M<0?z:0,z)?_[M]:e}function Uv(_,M,z){M=M.length?Br(M,function(at){return ar(at)?function(kt){return to(kt,at.length===1?at[0]:at)}:at}):[ki];var K=-1;return M=Br(M,Ln(Ye())),function(at,kt){var It=at.length;for(at.sort(kt);It--;)at[It]=at[It].value;return at}(jv(_,function(at,kt,It){return{criteria:Br(M,function(jt){return jt(at)}),index:++K,value:at}}),function(at,kt){return function(It,jt,Wt){for(var ee=-1,ae=It.criteria,ge=jt.criteria,Fe=ae.length,Le=Wt.length;++ee<Fe;){var Ge=Qv(ae[ee],ge[ee]);if(Ge)return ee>=Le?Ge:Ge*(Wt[ee]=="desc"?-1:1)}return It.index-jt.index}(at,kt,z)})}function Hv(_,M,z){for(var K=-1,at=M.length,kt={};++K<at;){var It=M[K],jt=to(_,It);z(jt,It)&&Yc(kt,ks(It,_),jt)}return kt}function zh(_,M,z,K){var at=K?gi:ci,kt=-1,It=M.length,jt=_;for(_===M&&(M=yi(M)),z&&(jt=Br(_,Ln(z)));++kt<It;)for(var Wt=0,ee=M[kt],ae=z?z(ee):ee;(Wt=at(jt,ae,Wt,K))>-1;)jt!==_&&ru.call(jt,Wt,1),ru.call(_,Wt,1);return _}function Wv(_,M){for(var z=_?M.length:0,K=z-1;z--;){var at=M[z];if(z==K||at!==kt){var kt=at;Ya(at)?ru.call(_,at,1):Vh(_,at)}}return _}function Uh(_,M){return _+au(xv()*(M-_+1))}function Hh(_,M){var z="";if(!_||M<1||M>h)return z;do M%2&&(z+=_),(M=au(M/2))&&(_+=_);while(M);return z}function gr(_,M){return ad(yg(_,M,ki),_+"")}function e8(_){return Ev(Yo(_))}function r8(_,M){var z=Yo(_);return ku(z,Qs(M,0,z.length))}function Yc(_,M,z,K){if(!Xr(_))return _;for(var at=-1,kt=(M=ks(M,_)).length,It=kt-1,jt=_;jt!=null&&++at<kt;){var Wt=Aa(M[at]),ee=z;if(Wt==="__proto__"||Wt==="constructor"||Wt==="prototype")return _;if(at!=It){var ae=jt[Wt];(ee=K?K(ae,Wt,jt):e)===e&&(ee=Xr(ae)?ae:Ya(M[at+1])?[]:{})}Vc(jt,Wt,ee),jt=jt[Wt]}return _}var Vv=su?function(_,M){return su.set(_,M),_}:ki,n8=nu?function(_,M){return nu(_,"toString",{configurable:!0,enumerable:!1,value:gd(M),writable:!0})}:ki;function i8(_){return ku(Yo(_))}function Xi(_,M,z){var K=-1,at=_.length;M<0&&(M=-M>at?0:at+M),(z=z>at?at:z)<0&&(z+=at),at=M>z?0:z-M>>>0,M>>>=0;for(var kt=Me(at);++K<at;)kt[K]=_[K+M];return kt}function a8(_,M){var z;return ws(_,function(K,at,kt){return!(z=M(K,at,kt))}),!!z}function du(_,M,z){var K=0,at=_==null?K:_.length;if(typeof M=="number"&&M==M&&at<=2147483647){for(;K<at;){var kt=K+at>>>1,It=_[kt];It!==null&&!Ii(It)&&(z?It<=M:It<M)?K=kt+1:at=kt}return at}return Wh(_,M,ki,z)}function Wh(_,M,z,K){var at=0,kt=_==null?0:_.length;if(kt===0)return 0;for(var It=(M=z(M))!=M,jt=M===null,Wt=Ii(M),ee=M===e;at<kt;){var ae=au((at+kt)/2),ge=z(_[ae]),Fe=ge!==e,Le=ge===null,Ge=ge==ge,oe=Ii(ge);if(It)var _e=K||Ge;else _e=ee?Ge&&(K||Fe):jt?Ge&&Fe&&(K||!Le):Wt?Ge&&Fe&&!Le&&(K||!oe):!Le&&!oe&&(K?ge<=M:ge<M);_e?at=ae+1:kt=ae}return Qn(kt,4294967294)}function $v(_,M){for(var z=-1,K=_.length,at=0,kt=[];++z<K;){var It=_[z],jt=M?M(It):It;if(!z||!ua(jt,Wt)){var Wt=jt;kt[at++]=It===0?0:It}}return kt}function qv(_){return typeof _=="number"?_:Ii(_)?d:+_}function Oi(_){if(typeof _=="string")return _;if(ar(_))return Br(_,Oi)+"";if(Ii(_))return Sv?Sv.call(_):"";var M=_+"";return M=="0"&&1/_==-1/0?"-0":M}function _s(_,M,z){var K=-1,at=oi,kt=_.length,It=!0,jt=[],Wt=jt;if(z)It=!1,at=ps;else if(kt>=200){var ee=M?null:o8(_);if(ee)return kn(ee);It=!1,at=Lt,Wt=new Js}else Wt=M?[]:jt;t:for(;++K<kt;){var ae=_[K],ge=M?M(ae):ae;if(ae=z||ae!==0?ae:0,It&&ge==ge){for(var Fe=Wt.length;Fe--;)if(Wt[Fe]===ge)continue t;M&&Wt.push(ge),jt.push(ae)}else at(Wt,ge,z)||(Wt!==jt&&Wt.push(ge),jt.push(ae))}return jt}function Vh(_,M){return(_=wg(_,M=ks(M,_)))==null||delete _[Aa(Zi(M))]}function Gv(_,M,z,K){return Yc(_,M,z(to(_,M)),K)}function pu(_,M,z,K){for(var at=_.length,kt=K?at:-1;(K?kt--:++kt<at)&&M(_[kt],kt,_););return z?Xi(_,K?0:kt,K?kt+1:at):Xi(_,K?kt+1:0,K?at:kt)}function Yv(_,M){var z=_;return z instanceof kr&&(z=z.value()),Ys(M,function(K,at){return at.func.apply(at.thisArg,$i([K],at.args))},z)}function $h(_,M,z){var K=_.length;if(K<2)return K?_s(_[0]):[];for(var at=-1,kt=Me(K);++at<K;)for(var It=_[at],jt=-1;++jt<K;)jt!=at&&(kt[at]=$c(kt[at]||It,_[jt],M,z));return _s(Un(kt,1),M,z)}function Kv(_,M,z){for(var K=-1,at=_.length,kt=M.length,It={};++K<at;){var jt=K<kt?M[K]:e;z(It,_[K],jt)}return It}function qh(_){return cn(_)?_:[]}function Gh(_){return typeof _=="function"?_:ki}function ks(_,M){return ar(_)?_:rd(_,M)?[_]:Tg(Ir(_))}var s8=gr;function xs(_,M,z){var K=_.length;return z=z===e?K:z,!M&&z>=K?_:Xi(_,M,z)}var Xv=P5||function(_){return Yr.clearTimeout(_)};function Zv(_,M){if(M)return _.slice();var z=_.length,K=bv?bv(z):new _.constructor(z);return _.copy(K),K}function Yh(_){var M=new _.constructor(_.byteLength);return new tu(M).set(new tu(_)),M}function Jv(_,M){var z=M?Yh(_.buffer):_.buffer;return new _.constructor(z,_.byteOffset,_.length)}function Qv(_,M){if(_!==M){var z=_!==e,K=_===null,at=_==_,kt=Ii(_),It=M!==e,jt=M===null,Wt=M==M,ee=Ii(M);if(!jt&&!ee&&!kt&&_>M||kt&&It&&Wt&&!jt&&!ee||K&&It&&Wt||!z&&Wt||!at)return 1;if(!K&&!kt&&!ee&&_<M||ee&&z&&at&&!K&&!kt||jt&&z&&at||!It&&at||!Wt)return-1}return 0}function tg(_,M,z,K){for(var at=-1,kt=_.length,It=z.length,jt=-1,Wt=M.length,ee=Sn(kt-It,0),ae=Me(Wt+ee),ge=!K;++jt<Wt;)ae[jt]=M[jt];for(;++at<It;)(ge||at<kt)&&(ae[z[at]]=_[at]);for(;ee--;)ae[jt++]=_[at++];return ae}function eg(_,M,z,K){for(var at=-1,kt=_.length,It=-1,jt=z.length,Wt=-1,ee=M.length,ae=Sn(kt-jt,0),ge=Me(ae+ee),Fe=!K;++at<ae;)ge[at]=_[at];for(var Le=at;++Wt<ee;)ge[Le+Wt]=M[Wt];for(;++It<jt;)(Fe||at<kt)&&(ge[Le+z[It]]=_[at++]);return ge}function yi(_,M){var z=-1,K=_.length;for(M||(M=Me(K));++z<K;)M[z]=_[z];return M}function Ca(_,M,z,K){var at=!z;z||(z={});for(var kt=-1,It=M.length;++kt<It;){var jt=M[kt],Wt=K?K(z[jt],_[jt],jt,z,_):e;Wt===e&&(Wt=_[jt]),at?$a(z,jt,Wt):Vc(z,jt,Wt)}return z}function mu(_,M){return function(z,K){var at=ar(z)?Do:X5,kt=M?M():{};return at(z,_,Ye(K,2),kt)}}function Vo(_){return gr(function(M,z){var K=-1,at=z.length,kt=at>1?z[at-1]:e,It=at>2?z[2]:e;for(kt=_.length>3&&typeof kt=="function"?(at--,kt):e,It&&ui(z[0],z[1],It)&&(kt=at<3?e:kt,at=1),M=Ee(M);++K<at;){var jt=z[K];jt&&_(M,jt,K,kt)}return M})}function rg(_,M){return function(z,K){if(z==null)return z;if(!wi(z))return _(z,K);for(var at=z.length,kt=M?at:-1,It=Ee(z);(M?kt--:++kt<at)&&K(It[kt],kt,It)!==!1;);return z}}function ng(_){return function(M,z,K){for(var at=-1,kt=Ee(M),It=K(M),jt=It.length;jt--;){var Wt=It[_?jt:++at];if(z(kt[Wt],Wt,kt)===!1)break}return M}}function ig(_){return function(M){var z=Fr(M=Ir(M))?jr(M):e,K=z?z[0]:M.charAt(0),at=z?xs(z,1).join(""):M.slice(1);return K[_]()+at}}function $o(_){return function(M){return Ys(e2(t2(M).replace(De,"")),_,"")}}function Kc(_){return function(){var M=arguments;switch(M.length){case 0:return new _;case 1:return new _(M[0]);case 2:return new _(M[0],M[1]);case 3:return new _(M[0],M[1],M[2]);case 4:return new _(M[0],M[1],M[2],M[3]);case 5:return new _(M[0],M[1],M[2],M[3],M[4]);case 6:return new _(M[0],M[1],M[2],M[3],M[4],M[5]);case 7:return new _(M[0],M[1],M[2],M[3],M[4],M[5],M[6])}var z=Wo(_.prototype),K=_.apply(z,M);return Xr(K)?K:z}}function ag(_){return function(M,z,K){var at=Ee(M);if(!wi(M)){var kt=Ye(z,3);M=In(M),z=function(jt){return kt(at[jt],jt,at)}}var It=_(M,z,K);return It>-1?at[kt?M[It]:It]:e}}function sg(_){return Ga(function(M){var z=M.length,K=z,at=Yi.prototype.thru;for(_&&M.reverse();K--;){var kt=M[K];if(typeof kt!="function")throw new hr(n);if(at&&!It&&wu(kt)=="wrapper")var It=new Yi([],!0)}for(K=It?K:z;++K<z;){var jt=wu(kt=M[K]),Wt=jt=="wrapper"?Qh(kt):e;It=Wt&&nd(Wt[0])&&Wt[1]==424&&!Wt[4].length&&Wt[9]==1?It[wu(Wt[0])].apply(It,Wt[3]):kt.length==1&&nd(kt)?It[jt]():It.thru(kt)}return function(){var ee=arguments,ae=ee[0];if(It&&ee.length==1&&ar(ae))return It.plant(ae).value();for(var ge=0,Fe=z?M[ge].apply(this,ee):ae;++ge<z;)Fe=M[ge].call(this,Fe);return Fe}})}function vu(_,M,z,K,at,kt,It,jt,Wt,ee){var ae=M&l,ge=1&M,Fe=2&M,Le=24&M,Ge=512&M,oe=Fe?e:Kc(_);return function _e(){for(var Xe=arguments.length,Ce=Me(Xe),cr=Xe;cr--;)Ce[cr]=arguments[cr];if(Le)var rr=qo(_e),Ar=function(ln,fi){for(var $r=ln.length,ei=0;$r--;)ln[$r]===fi&&++ei;return ei}(Ce,rr);if(K&&(Ce=tg(Ce,K,at,Le)),kt&&(Ce=eg(Ce,kt,It,Le)),Xe-=Ar,Le&&Xe<ee){var We=Cr(Ce,rr);return lg(_,M,vu,_e.placeholder,z,Ce,We,jt,Wt,ee-Xe)}var Ze=ge?z:this,Tn=Fe?Ze[_]:_;return Xe=Ce.length,jt?Ce=function(ln,fi){for(var $r=ln.length,ei=Qn(fi.length,$r),Ra=yi(ln);ei--;){var Ts=fi[ei];ln[ei]=Ya(Ts,$r)?Ra[Ts]:e}return ln}(Ce,jt):Ge&&Xe>1&&Ce.reverse(),ae&&Wt<Xe&&(Ce.length=Wt),this&&this!==Yr&&this instanceof _e&&(Tn=oe||Kc(Tn)),Tn.apply(Ze,Ce)}}function og(_,M){return function(z,K){return function(at,kt,It,jt){return Ea(at,function(Wt,ee,ae){kt(jt,It(Wt),ee,ae)}),jt}(z,_,M(K),{})}}function gu(_,M){return function(z,K){var at;if(z===e&&K===e)return M;if(z!==e&&(at=z),K!==e){if(at===e)return K;typeof z=="string"||typeof K=="string"?(z=Oi(z),K=Oi(K)):(z=qv(z),K=qv(K)),at=_(z,K)}return at}}function Kh(_){return Ga(function(M){return M=Br(M,Ln(Ye())),gr(function(z){var K=this;return _(M,function(at){return jn(at,K,z)})})})}function bu(_,M){var z=(M=M===e?" ":Oi(M)).length;if(z<2)return z?Hh(M,_):M;var K=Hh(M,iu(_/Kr(M)));return Fr(M)?xs(jr(K),0,_).join(""):K.slice(0,_)}function cg(_){return function(M,z,K){return K&&typeof K!="number"&&ui(M,z,K)&&(z=K=e),M=Xa(M),z===e?(z=M,M=0):z=Xa(z),function(at,kt,It,jt){for(var Wt=-1,ee=Sn(iu((kt-at)/(It||1)),0),ae=Me(ee);ee--;)ae[jt?ee:++Wt]=at,at+=It;return ae}(M,z,K=K===e?M<z?1:-1:Xa(K),_)}}function yu(_){return function(M,z){return typeof M=="string"&&typeof z=="string"||(M=Ji(M),z=Ji(z)),_(M,z)}}function lg(_,M,z,K,at,kt,It,jt,Wt,ee){var ae=8&M;M|=ae?i:c,4&(M&=~(ae?c:i))||(M&=-4);var ge=[_,M,at,ae?kt:e,ae?It:e,ae?e:kt,ae?e:It,jt,Wt,ee],Fe=z.apply(e,ge);return nd(_)&&_g(Fe,ge),Fe.placeholder=K,kg(Fe,_,M)}function Xh(_){var M=he[_];return function(z,K){if(z=Ji(z),(K=K==null?0:Qn(dr(K),292))&&kv(z)){var at=(Ir(z)+"e").split("e");return+((at=(Ir(M(at[0]+"e"+(+at[1]+K)))+"e").split("e"))[0]+"e"+(+at[1]-K))}return M(z)}}var o8=Uo&&1/kn(new Uo([,-0]))[1]==f?function(_){return new Uo(_)}:wd;function ug(_){return function(M){var z=ti(M);return z==O?tn(M):z==V?function(K){var at=-1,kt=Array(K.size);return K.forEach(function(It){kt[++at]=[It,It]}),kt}(M):function(K,at){return Br(at,function(kt){return[kt,K[kt]]})}(M,_(M))}}function qa(_,M,z,K,at,kt,It,jt){var Wt=2&M;if(!Wt&&typeof _!="function")throw new hr(n);var ee=K?K.length:0;if(ee||(M&=-97,K=at=e),It=It===e?It:Sn(dr(It),0),jt=jt===e?jt:dr(jt),ee-=at?at.length:0,M&c){var ae=K,ge=at;K=at=e}var Fe=Wt?e:Qh(_),Le=[_,M,z,K,at,ae,ge,kt,It,jt];if(Fe&&function(oe,_e){var Xe=oe[1],Ce=_e[1],cr=Xe|Ce,rr=cr<131,Ar=Ce==l&&Xe==8||Ce==l&&Xe==u&&oe[7].length<=_e[8]||Ce==384&&_e[7].length<=_e[8]&&Xe==8;if(!rr&&!Ar)return oe;1&Ce&&(oe[2]=_e[2],cr|=1&Xe?0:4);var We=_e[3];if(We){var Ze=oe[3];oe[3]=Ze?tg(Ze,We,_e[4]):We,oe[4]=Ze?Cr(oe[3],o):_e[4]}(We=_e[5])&&(Ze=oe[5],oe[5]=Ze?eg(Ze,We,_e[6]):We,oe[6]=Ze?Cr(oe[5],o):_e[6]),(We=_e[7])&&(oe[7]=We),Ce&l&&(oe[8]=oe[8]==null?_e[8]:Qn(oe[8],_e[8])),oe[9]==null&&(oe[9]=_e[9]),oe[0]=_e[0],oe[1]=cr}(Le,Fe),_=Le[0],M=Le[1],z=Le[2],K=Le[3],at=Le[4],!(jt=Le[9]=Le[9]===e?Wt?0:_.length:Sn(Le[9]-ee,0))&&24&M&&(M&=-25),M&&M!=1)Ge=M==8||M==s?function(oe,_e,Xe){var Ce=Kc(oe);return function cr(){for(var rr=arguments.length,Ar=Me(rr),We=rr,Ze=qo(cr);We--;)Ar[We]=arguments[We];var Tn=rr<3&&Ar[0]!==Ze&&Ar[rr-1]!==Ze?[]:Cr(Ar,Ze);return(rr-=Tn.length)<Xe?lg(oe,_e,vu,cr.placeholder,e,Ar,Tn,e,e,Xe-rr):jn(this&&this!==Yr&&this instanceof cr?Ce:oe,this,Ar)}}(_,M,jt):M!=i&&M!=33||at.length?vu.apply(e,Le):function(oe,_e,Xe,Ce){var cr=1&_e,rr=Kc(oe);return function Ar(){for(var We=-1,Ze=arguments.length,Tn=-1,ln=Ce.length,fi=Me(ln+Ze),$r=this&&this!==Yr&&this instanceof Ar?rr:oe;++Tn<ln;)fi[Tn]=Ce[Tn];for(;Ze--;)fi[Tn++]=arguments[++We];return jn($r,cr?Xe:this,fi)}}(_,M,z,K);else var Ge=function(oe,_e,Xe){var Ce=1&_e,cr=Kc(oe);return function rr(){return(this&&this!==Yr&&this instanceof rr?cr:oe).apply(Ce?Xe:this,arguments)}}(_,M,z);return kg((Fe?Vv:_g)(Ge,Le),_,M)}function fg(_,M,z,K){return _===e||ua(_,zr[z])&&!ir.call(K,z)?M:_}function hg(_,M,z,K,at,kt){return Xr(_)&&Xr(M)&&(kt.set(M,_),hu(_,M,e,hg,kt),kt.delete(M)),_}function c8(_){return Jc(_)?e:_}function dg(_,M,z,K,at,kt){var It=1&z,jt=_.length,Wt=M.length;if(jt!=Wt&&!(It&&Wt>jt))return!1;var ee=kt.get(_),ae=kt.get(M);if(ee&&ae)return ee==M&&ae==_;var ge=-1,Fe=!0,Le=2&z?new Js:e;for(kt.set(_,M),kt.set(M,_);++ge<jt;){var Ge=_[ge],oe=M[ge];if(K)var _e=It?K(oe,Ge,ge,M,_,kt):K(Ge,oe,ge,_,M,kt);if(_e!==e){if(_e)continue;Fe=!1;break}if(Le){if(!Ri(M,function(Xe,Ce){if(!Lt(Le,Ce)&&(Ge===Xe||at(Ge,Xe,z,K,kt)))return Le.push(Ce)})){Fe=!1;break}}else if(Ge!==oe&&!at(Ge,oe,z,K,kt)){Fe=!1;break}}return kt.delete(_),kt.delete(M),Fe}function Ga(_){return ad(yg(_,e,Rg),_+"")}function Zh(_){return Nv(_,In,ed)}function Jh(_){return Nv(_,_i,pg)}var Qh=su?function(_){return su.get(_)}:wd;function wu(_){for(var M=_.name+"",z=Ho[M],K=ir.call(Ho,M)?z.length:0;K--;){var at=z[K],kt=at.func;if(kt==null||kt==_)return at.name}return M}function qo(_){return(ir.call(mt,"placeholder")?mt:_).placeholder}function Ye(){var _=mt.iteratee||bd;return _=_===bd?Fv:_,arguments.length?_(arguments[0],arguments[1]):_}function _u(_,M){var z,K,at=_.__data__;return((K=typeof(z=M))=="string"||K=="number"||K=="symbol"||K=="boolean"?z!=="__proto__":z===null)?at[typeof M=="string"?"string":"hash"]:at.map}function td(_){for(var M=In(_),z=M.length;z--;){var K=M[z],at=_[K];M[z]=[K,at,gg(at)]}return M}function eo(_,M){var z=function(K,at){return K==null?e:K[at]}(_,M);return Dv(z)?z:e}var ed=Ah?function(_){return _==null?[]:(_=Ee(_),Vi(Ah(_),function(M){return wv.call(_,M)}))}:_d,pg=Ah?function(_){for(var M=[];_;)$i(M,ed(_)),_=eu(_);return M}:_d,ti=li;function mg(_,M,z){for(var K=-1,at=(M=ks(M,_)).length,kt=!1;++K<at;){var It=Aa(M[K]);if(!(kt=_!=null&&z(_,It)))break;_=_[It]}return kt||++K!=at?kt:!!(at=_==null?0:_.length)&&Au(at)&&Ya(It,at)&&(ar(_)||no(_))}function vg(_){return typeof _.constructor!="function"||Xc(_)?{}:Wo(eu(_))}function l8(_){return ar(_)||no(_)||!!(_v&&_&&_[_v])}function Ya(_,M){var z=typeof _;return!!(M=M==null?h:M)&&(z=="number"||z!="symbol"&&ft.test(_))&&_>-1&&_%1==0&&_<M}function ui(_,M,z){if(!Xr(z))return!1;var K=typeof M;return!!(K=="number"?wi(z)&&Ya(M,z.length):K=="string"&&M in z)&&ua(z[M],_)}function rd(_,M){if(ar(_))return!1;var z=typeof _;return!(z!="number"&&z!="symbol"&&z!="boolean"&&_!=null&&!Ii(_))||W.test(_)||!Ot.test(_)||M!=null&&_ in Ee(M)}function nd(_){var M=wu(_),z=mt[M];if(typeof z!="function"||!(M in kr.prototype))return!1;if(_===z)return!0;var K=Qh(z);return!!K&&_===K[0]}(Rh&&ti(new Rh(new ArrayBuffer(1)))!=E||zc&&ti(new zc)!=O||Mh&&ti(Mh.resolve())!=U||Uo&&ti(new Uo)!=V||Uc&&ti(new Uc)!=k)&&(ti=function(_){var M=li(_),z=M==j?_.constructor:e,K=z?ro(z):"";if(K)switch(K){case W5:return E;case V5:return O;case $5:return U;case q5:return V;case G5:return k}return M});var u8=zn?Ka:kd;function Xc(_){var M=_&&_.constructor;return _===(typeof M=="function"&&M.prototype||zr)}function gg(_){return _==_&&!Xr(_)}function bg(_,M){return function(z){return z!=null&&z[_]===M&&(M!==e||_ in Ee(z))}}function yg(_,M,z){return M=Sn(M===e?_.length-1:M,0),function(){for(var K=arguments,at=-1,kt=Sn(K.length-M,0),It=Me(kt);++at<kt;)It[at]=K[M+at];at=-1;for(var jt=Me(M+1);++at<M;)jt[at]=K[at];return jt[M]=z(It),jn(_,this,jt)}}function wg(_,M){return M.length<2?_:to(_,Xi(M,0,-1))}function id(_,M){if((M!=="constructor"||typeof _[M]!="function")&&M!="__proto__")return _[M]}var _g=xg(Vv),Zc=F5||function(_,M){return Yr.setTimeout(_,M)},ad=xg(n8);function kg(_,M,z){var K=M+"";return ad(_,function(at,kt){var It=kt.length;if(!It)return at;var jt=It-1;return kt[jt]=(It>1?"& ":"")+kt[jt],kt=kt.join(It>2?", ":" "),at.replace(Mt,`{
|
||
/* [wrapped with `+kt+`] */
|
||
`)}(K,function(at,kt){return _n(m,function(It){var jt="_."+It[0];kt&It[1]&&!oi(at,jt)&&at.push(jt)}),at.sort()}(function(at){var kt=at.match(Pt);return kt?kt[1].split(lt):[]}(K),z)))}function xg(_){var M=0,z=0;return function(){var K=z5(),at=16-(K-z);if(z=K,at>0){if(++M>=800)return arguments[0]}else M=0;return _.apply(e,arguments)}}function ku(_,M){var z=-1,K=_.length,at=K-1;for(M=M===e?K:M;++z<M;){var kt=Uh(z,at),It=_[kt];_[kt]=_[z],_[z]=It}return _.length=M,_}var Sg,sd,od,Tg=(Sg=function(_){var M=[];return _.charCodeAt(0)===46&&M.push(""),_.replace(X,function(z,K,at,kt){M.push(at?kt.replace(Dt,"$1"):K||z)}),M},sd=Eu(Sg,function(_){return od.size===500&&od.clear(),_}),od=sd.cache,sd);function Aa(_){if(typeof _=="string"||Ii(_))return _;var M=_+"";return M=="0"&&1/_==-1/0?"-0":M}function ro(_){if(_!=null){try{return xn.call(_)}catch(M){}try{return _+""}catch(M){}}return""}function Eg(_){if(_ instanceof kr)return _.clone();var M=new Yi(_.__wrapped__,_.__chain__);return M.__actions__=yi(_.__actions__),M.__index__=_.__index__,M.__values__=_.__values__,M}var f8=gr(function(_,M){return cn(_)?$c(_,Un(M,1,cn,!0)):[]}),h8=gr(function(_,M){var z=Zi(M);return cn(z)&&(z=e),cn(_)?$c(_,Un(M,1,cn,!0),Ye(z,2)):[]}),d8=gr(function(_,M){var z=Zi(M);return cn(z)&&(z=e),cn(_)?$c(_,Un(M,1,cn,!0),e,z):[]});function Cg(_,M,z){var K=_==null?0:_.length;if(!K)return-1;var at=z==null?0:dr(z);return at<0&&(at=Sn(K+at,0)),oa(_,Ye(M,3),at)}function Ag(_,M,z){var K=_==null?0:_.length;if(!K)return-1;var at=K-1;return z!==e&&(at=dr(z),at=z<0?Sn(K+at,0):Qn(at,K-1)),oa(_,Ye(M,3),at,!0)}function Rg(_){return _!=null&&_.length?Un(_,1):[]}function Mg(_){return _&&_.length?_[0]:e}var p8=gr(function(_){var M=Br(_,qh);return M.length&&M[0]===_[0]?Fh(M):[]}),m8=gr(function(_){var M=Zi(_),z=Br(_,qh);return M===Zi(z)?M=e:z.pop(),z.length&&z[0]===_[0]?Fh(z,Ye(M,2)):[]}),v8=gr(function(_){var M=Zi(_),z=Br(_,qh);return(M=typeof M=="function"?M:e)&&z.pop(),z.length&&z[0]===_[0]?Fh(z,e,M):[]});function Zi(_){var M=_==null?0:_.length;return M?_[M-1]:e}var g8=gr(Og);function Og(_,M){return _&&_.length&&M&&M.length?zh(_,M):_}var b8=Ga(function(_,M){var z=_==null?0:_.length,K=Ih(_,M);return Wv(_,Br(M,function(at){return Ya(at,z)?+at:at}).sort(Qv)),K});function cd(_){return _==null?_:H5.call(_)}var y8=gr(function(_){return _s(Un(_,1,cn,!0))}),w8=gr(function(_){var M=Zi(_);return cn(M)&&(M=e),_s(Un(_,1,cn,!0),Ye(M,2))}),_8=gr(function(_){var M=Zi(_);return M=typeof M=="function"?M:e,_s(Un(_,1,cn,!0),e,M)});function ld(_){if(!_||!_.length)return[];var M=0;return _=Vi(_,function(z){if(cn(z))return M=Sn(z.length,M),!0}),bs(M,function(z){return Br(_,ca(z))})}function Ig(_,M){if(!_||!_.length)return[];var z=ld(_);return M==null?z:Br(z,function(K){return jn(M,e,K)})}var k8=gr(function(_,M){return cn(_)?$c(_,M):[]}),x8=gr(function(_){return $h(Vi(_,cn))}),S8=gr(function(_){var M=Zi(_);return cn(M)&&(M=e),$h(Vi(_,cn),Ye(M,2))}),T8=gr(function(_){var M=Zi(_);return M=typeof M=="function"?M:e,$h(Vi(_,cn),e,M)}),E8=gr(ld),C8=gr(function(_){var M=_.length,z=M>1?_[M-1]:e;return z=typeof z=="function"?(_.pop(),z):e,Ig(_,z)});function Ng(_){var M=mt(_);return M.__chain__=!0,M}function xu(_,M){return M(_)}var A8=Ga(function(_){var M=_.length,z=M?_[0]:0,K=this.__wrapped__,at=function(kt){return Ih(kt,_)};return!(M>1||this.__actions__.length)&&K instanceof kr&&Ya(z)?((K=K.slice(z,+z+(M?1:0))).__actions__.push({func:xu,args:[at],thisArg:e}),new Yi(K,this.__chain__).thru(function(kt){return M&&!kt.length&&kt.push(e),kt})):this.thru(at)}),R8=mu(function(_,M,z){ir.call(_,z)?++_[z]:$a(_,z,1)}),M8=ag(Cg),O8=ag(Ag);function Pg(_,M){return(ar(_)?_n:ws)(_,Ye(M,3))}function Dg(_,M){return(ar(_)?Sa:Mv)(_,Ye(M,3))}var I8=mu(function(_,M,z){ir.call(_,z)?_[z].push(M):$a(_,z,[M])}),N8=gr(function(_,M,z){var K=-1,at=typeof M=="function",kt=wi(_)?Me(_.length):[];return ws(_,function(It){kt[++K]=at?jn(M,It,z):qc(It,M,z)}),kt}),P8=mu(function(_,M,z){$a(_,z,M)});function Su(_,M){return(ar(_)?Br:jv)(_,Ye(M,3))}var D8=mu(function(_,M,z){_[z?0:1].push(M)},function(){return[[],[]]}),F8=gr(function(_,M){if(_==null)return[];var z=M.length;return z>1&&ui(_,M[0],M[1])?M=[]:z>2&&ui(M[0],M[1],M[2])&&(M=[M[0]]),Uv(_,Un(M,1),[])}),Tu=D5||function(){return Yr.Date.now()};function Fg(_,M,z){return M=z?e:M,M=_&&M==null?_.length:M,qa(_,l,e,e,e,e,M)}function jg(_,M){var z;if(typeof M!="function")throw new hr(n);return _=dr(_),function(){return--_>0&&(z=M.apply(this,arguments)),_<=1&&(M=e),z}}var ud=gr(function(_,M,z){var K=1;if(z.length){var at=Cr(z,qo(ud));K|=i}return qa(_,K,M,z,at)}),Lg=gr(function(_,M,z){var K=3;if(z.length){var at=Cr(z,qo(Lg));K|=i}return qa(M,K,_,z,at)});function Bg(_,M,z){var K,at,kt,It,jt,Wt,ee=0,ae=!1,ge=!1,Fe=!0;if(typeof _!="function")throw new hr(n);function Le(Ce){var cr=K,rr=at;return K=at=e,ee=Ce,It=_.apply(rr,cr)}function Ge(Ce){var cr=Ce-Wt;return Wt===e||cr>=M||cr<0||ge&&Ce-ee>=kt}function oe(){var Ce=Tu();if(Ge(Ce))return _e(Ce);jt=Zc(oe,function(cr){var rr=M-(cr-Wt);return ge?Qn(rr,kt-(cr-ee)):rr}(Ce))}function _e(Ce){return jt=e,Fe&&K?Le(Ce):(K=at=e,It)}function Xe(){var Ce=Tu(),cr=Ge(Ce);if(K=arguments,at=this,Wt=Ce,cr){if(jt===e)return function(rr){return ee=rr,jt=Zc(oe,M),ae?Le(rr):It}(Wt);if(ge)return Xv(jt),jt=Zc(oe,M),Le(Wt)}return jt===e&&(jt=Zc(oe,M)),It}return M=Ji(M)||0,Xr(z)&&(ae=!!z.leading,kt=(ge="maxWait"in z)?Sn(Ji(z.maxWait)||0,M):kt,Fe="trailing"in z?!!z.trailing:Fe),Xe.cancel=function(){jt!==e&&Xv(jt),ee=0,K=Wt=at=jt=e},Xe.flush=function(){return jt===e?It:_e(Tu())},Xe}var j8=gr(function(_,M){return Rv(_,1,M)}),L8=gr(function(_,M,z){return Rv(_,Ji(M)||0,z)});function Eu(_,M){if(typeof _!="function"||M!=null&&typeof M!="function")throw new hr(n);var z=function K(){var at=arguments,kt=M?M.apply(this,at):at[0],It=K.cache;if(It.has(kt))return It.get(kt);var jt=_.apply(this,at);return K.cache=It.set(kt,jt)||It,jt};return z.cache=new(Eu.Cache||Va),z}function Cu(_){if(typeof _!="function")throw new hr(n);return function(){var M=arguments;switch(M.length){case 0:return!_.call(this);case 1:return!_.call(this,M[0]);case 2:return!_.call(this,M[0],M[1]);case 3:return!_.call(this,M[0],M[1],M[2])}return!_.apply(this,M)}}Eu.Cache=Va;var B8=s8(function(_,M){var z=(M=M.length==1&&ar(M[0])?Br(M[0],Ln(Ye())):Br(Un(M,1),Ln(Ye()))).length;return gr(function(K){for(var at=-1,kt=Qn(K.length,z);++at<kt;)K[at]=M[at].call(this,K[at]);return jn(_,this,K)})}),fd=gr(function(_,M){var z=Cr(M,qo(fd));return qa(_,i,e,M,z)}),zg=gr(function(_,M){var z=Cr(M,qo(zg));return qa(_,c,e,M,z)}),z8=Ga(function(_,M){return qa(_,u,e,e,e,M)});function ua(_,M){return _===M||_!=_&&M!=M}var U8=yu(Dh),H8=yu(function(_,M){return _>=M}),no=Pv(function(){return arguments}())?Pv:function(_){return rn(_)&&ir.call(_,"callee")&&!wv.call(_,"callee")},ar=Me.isArray,W8=Oo?Ln(Oo):function(_){return rn(_)&&li(_)==S};function wi(_){return _!=null&&Au(_.length)&&!Ka(_)}function cn(_){return rn(_)&&wi(_)}var Ss=j5||kd,V8=Io?Ln(Io):function(_){return rn(_)&&li(_)==y};function hd(_){if(!rn(_))return!1;var M=li(_);return M==w||M=="[object DOMException]"||typeof _.message=="string"&&typeof _.name=="string"&&!Jc(_)}function Ka(_){if(!Xr(_))return!1;var M=li(_);return M==x||M==C||M=="[object AsyncFunction]"||M=="[object Proxy]"}function Ug(_){return typeof _=="number"&&_==dr(_)}function Au(_){return typeof _=="number"&&_>-1&&_%1==0&&_<=h}function Xr(_){var M=typeof _;return _!=null&&(M=="object"||M=="function")}function rn(_){return _!=null&&typeof _=="object"}var Hg=ds?Ln(ds):function(_){return rn(_)&&ti(_)==O};function Wg(_){return typeof _=="number"||rn(_)&&li(_)==D}function Jc(_){if(!rn(_)||li(_)!=j)return!1;var M=eu(_);if(M===null)return!0;var z=ir.call(M,"constructor")&&M.constructor;return typeof z=="function"&&z instanceof z&&xn.call(z)==Ha}var dd=No?Ln(No):function(_){return rn(_)&&li(_)==L},Vg=Gs?Ln(Gs):function(_){return rn(_)&&ti(_)==V};function Ru(_){return typeof _=="string"||!ar(_)&&rn(_)&&li(_)==A}function Ii(_){return typeof _=="symbol"||rn(_)&&li(_)==N}var Go=Po?Ln(Po):function(_){return rn(_)&&Au(_.length)&&!!Je[li(_)]},$8=yu(Bh),q8=yu(function(_,M){return _<=M});function $g(_){if(!_)return[];if(wi(_))return Ru(_)?jr(_):yi(_);if(Bc&&_[Bc])return function(z){for(var K,at=[];!(K=z.next()).done;)at.push(K.value);return at}(_[Bc]());var M=ti(_);return(M==O?tn:M==V?kn:Yo)(_)}function Xa(_){return _?(_=Ji(_))===f||_===-1/0?17976931348623157e292*(_<0?-1:1):_==_?_:0:_===0?_:0}function dr(_){var M=Xa(_),z=M%1;return M==M?z?M-z:M:0}function qg(_){return _?Qs(dr(_),0,p):0}function Ji(_){if(typeof _=="number")return _;if(Ii(_))return d;if(Xr(_)){var M=typeof _.valueOf=="function"?_.valueOf():_;_=Xr(M)?M+"":M}if(typeof _!="string")return _===0?_:+_;_=Ks(_);var z=St.test(_);return z||vt.test(_)?si(_.slice(2),z?2:8):ht.test(_)?d:+_}function Gg(_){return Ca(_,_i(_))}function Ir(_){return _==null?"":Oi(_)}var G8=Vo(function(_,M){if(Xc(M)||wi(M))Ca(M,In(M),_);else for(var z in M)ir.call(M,z)&&Vc(_,z,M[z])}),Yg=Vo(function(_,M){Ca(M,_i(M),_)}),Mu=Vo(function(_,M,z,K){Ca(M,_i(M),_,K)}),Y8=Vo(function(_,M,z,K){Ca(M,In(M),_,K)}),K8=Ga(Ih),X8=gr(function(_,M){_=Ee(_);var z=-1,K=M.length,at=K>2?M[2]:e;for(at&&ui(M[0],M[1],at)&&(K=1);++z<K;)for(var kt=M[z],It=_i(kt),jt=-1,Wt=It.length;++jt<Wt;){var ee=It[jt],ae=_[ee];(ae===e||ua(ae,zr[ee])&&!ir.call(_,ee))&&(_[ee]=kt[ee])}return _}),Z8=gr(function(_){return _.push(e,hg),jn(Kg,e,_)});function pd(_,M,z){var K=_==null?e:to(_,M);return K===e?z:K}function md(_,M){return _!=null&&mg(_,M,Q5)}var J8=og(function(_,M,z){M!=null&&typeof M.toString!="function"&&(M=Gi.call(M)),_[M]=z},gd(ki)),Q8=og(function(_,M,z){M!=null&&typeof M.toString!="function"&&(M=Gi.call(M)),ir.call(_,M)?_[M].push(z):_[M]=[z]},Ye),t_=gr(qc);function In(_){return wi(_)?Tv(_):Lh(_)}function _i(_){return wi(_)?Tv(_,!0):t8(_)}var e_=Vo(function(_,M,z){hu(_,M,z)}),Kg=Vo(function(_,M,z,K){hu(_,M,z,K)}),r_=Ga(function(_,M){var z={};if(_==null)return z;var K=!1;M=Br(M,function(kt){return kt=ks(kt,_),K||(K=kt.length>1),kt}),Ca(_,Jh(_),z),K&&(z=Ki(z,7,c8));for(var at=M.length;at--;)Vh(z,M[at]);return z}),n_=Ga(function(_,M){return _==null?{}:function(z,K){return Hv(z,K,function(at,kt){return md(z,kt)})}(_,M)});function Xg(_,M){if(_==null)return{};var z=Br(Jh(_),function(K){return[K]});return M=Ye(M),Hv(_,z,function(K,at){return M(K,at[0])})}var Zg=ug(In),Jg=ug(_i);function Yo(_){return _==null?[]:Tt(_,In(_))}var i_=$o(function(_,M,z){return M=M.toLowerCase(),_+(z?Qg(M):M)});function Qg(_){return vd(Ir(_).toLowerCase())}function t2(_){return(_=Ir(_))&&_.replace(yt,Or).replace(yr,"")}var a_=$o(function(_,M,z){return _+(z?"-":"")+M.toLowerCase()}),s_=$o(function(_,M,z){return _+(z?" ":"")+M.toLowerCase()}),o_=ig("toLowerCase"),c_=$o(function(_,M,z){return _+(z?"_":"")+M.toLowerCase()}),l_=$o(function(_,M,z){return _+(z?" ":"")+vd(M)}),u_=$o(function(_,M,z){return _+(z?" ":"")+M.toUpperCase()}),vd=ig("toUpperCase");function e2(_,M,z){return _=Ir(_),(M=z?e:M)===e?function(K){return bn.test(K)}(_)?function(K){return K.match(Qr)||[]}(_):function(K){return K.match(ct)||[]}(_):_.match(M)||[]}var r2=gr(function(_,M){try{return jn(_,e,M)}catch(z){return hd(z)?z:new Et(z)}}),f_=Ga(function(_,M){return _n(M,function(z){z=Aa(z),$a(_,z,ud(_[z],_))}),_});function gd(_){return function(){return _}}var h_=sg(),d_=sg(!0);function ki(_){return _}function bd(_){return Fv(typeof _=="function"?_:Ki(_,1))}var p_=gr(function(_,M){return function(z){return qc(z,_,M)}}),m_=gr(function(_,M){return function(z){return qc(_,z,M)}});function yd(_,M,z){var K=In(M),at=fu(M,K);z!=null||Xr(M)&&(at.length||!K.length)||(z=M,M=_,_=this,at=fu(M,In(M)));var kt=!(Xr(z)&&"chain"in z&&!z.chain),It=Ka(_);return _n(at,function(jt){var Wt=M[jt];_[jt]=Wt,It&&(_.prototype[jt]=function(){var ee=this.__chain__;if(kt||ee){var ae=_(this.__wrapped__);return(ae.__actions__=yi(this.__actions__)).push({func:Wt,args:arguments,thisArg:_}),ae.__chain__=ee,ae}return Wt.apply(_,$i([this.value()],arguments))})}),_}function wd(){}var v_=Kh(Br),g_=Kh(Fo),b_=Kh(Ri);function n2(_){return rd(_)?ca(Aa(_)):function(M){return function(z){return to(z,M)}}(_)}var y_=cg(),w_=cg(!0);function _d(){return[]}function kd(){return!1}var __=gu(function(_,M){return _+M},0),k_=Xh("ceil"),x_=gu(function(_,M){return _/M},1),S_=Xh("floor"),xd,T_=gu(function(_,M){return _*M},1),E_=Xh("round"),C_=gu(function(_,M){return _-M},0);return mt.after=function(_,M){if(typeof M!="function")throw new hr(n);return _=dr(_),function(){if(--_<1)return M.apply(this,arguments)}},mt.ary=Fg,mt.assign=G8,mt.assignIn=Yg,mt.assignInWith=Mu,mt.assignWith=Y8,mt.at=K8,mt.before=jg,mt.bind=ud,mt.bindAll=f_,mt.bindKey=Lg,mt.castArray=function(){if(!arguments.length)return[];var _=arguments[0];return ar(_)?_:[_]},mt.chain=Ng,mt.chunk=function(_,M,z){M=(z?ui(_,M,z):M===e)?1:Sn(dr(M),0);var K=_==null?0:_.length;if(!K||M<1)return[];for(var at=0,kt=0,It=Me(iu(K/M));at<K;)It[kt++]=Xi(_,at,at+=M);return It},mt.compact=function(_){for(var M=-1,z=_==null?0:_.length,K=0,at=[];++M<z;){var kt=_[M];kt&&(at[K++]=kt)}return at},mt.concat=function(){var _=arguments.length;if(!_)return[];for(var M=Me(_-1),z=arguments[0],K=_;K--;)M[K-1]=arguments[K];return $i(ar(z)?yi(z):[z],Un(M,1))},mt.cond=function(_){var M=_==null?0:_.length,z=Ye();return _=M?Br(_,function(K){if(typeof K[1]!="function")throw new hr(n);return[z(K[0]),K[1]]}):[],gr(function(K){for(var at=-1;++at<M;){var kt=_[at];if(jn(kt[0],this,K))return jn(kt[1],this,K)}})},mt.conforms=function(_){return function(M){var z=In(M);return function(K){return Av(K,M,z)}}(Ki(_,1))},mt.constant=gd,mt.countBy=R8,mt.create=function(_,M){var z=Wo(_);return M==null?z:Cv(z,M)},mt.curry=function _(M,z,K){var at=qa(M,8,e,e,e,e,e,z=K?e:z);return at.placeholder=_.placeholder,at},mt.curryRight=function _(M,z,K){var at=qa(M,s,e,e,e,e,e,z=K?e:z);return at.placeholder=_.placeholder,at},mt.debounce=Bg,mt.defaults=X8,mt.defaultsDeep=Z8,mt.defer=j8,mt.delay=L8,mt.difference=f8,mt.differenceBy=h8,mt.differenceWith=d8,mt.drop=function(_,M,z){var K=_==null?0:_.length;return K?Xi(_,(M=z||M===e?1:dr(M))<0?0:M,K):[]},mt.dropRight=function(_,M,z){var K=_==null?0:_.length;return K?Xi(_,0,(M=K-(M=z||M===e?1:dr(M)))<0?0:M):[]},mt.dropRightWhile=function(_,M){return _&&_.length?pu(_,Ye(M,3),!0,!0):[]},mt.dropWhile=function(_,M){return _&&_.length?pu(_,Ye(M,3),!0):[]},mt.fill=function(_,M,z,K){var at=_==null?0:_.length;return at?(z&&typeof z!="number"&&ui(_,M,z)&&(z=0,K=at),function(kt,It,jt,Wt){var ee=kt.length;for((jt=dr(jt))<0&&(jt=-jt>ee?0:ee+jt),(Wt=Wt===e||Wt>ee?ee:dr(Wt))<0&&(Wt+=ee),Wt=jt>Wt?0:qg(Wt);jt<Wt;)kt[jt++]=It;return kt}(_,M,z,K)):[]},mt.filter=function(_,M){return(ar(_)?Vi:Ov)(_,Ye(M,3))},mt.flatMap=function(_,M){return Un(Su(_,M),1)},mt.flatMapDeep=function(_,M){return Un(Su(_,M),f)},mt.flatMapDepth=function(_,M,z){return z=z===e?1:dr(z),Un(Su(_,M),z)},mt.flatten=Rg,mt.flattenDeep=function(_){return _!=null&&_.length?Un(_,f):[]},mt.flattenDepth=function(_,M){return _!=null&&_.length?Un(_,M=M===e?1:dr(M)):[]},mt.flip=function(_){return qa(_,512)},mt.flow=h_,mt.flowRight=d_,mt.fromPairs=function(_){for(var M=-1,z=_==null?0:_.length,K={};++M<z;){var at=_[M];K[at[0]]=at[1]}return K},mt.functions=function(_){return _==null?[]:fu(_,In(_))},mt.functionsIn=function(_){return _==null?[]:fu(_,_i(_))},mt.groupBy=I8,mt.initial=function(_){return _!=null&&_.length?Xi(_,0,-1):[]},mt.intersection=p8,mt.intersectionBy=m8,mt.intersectionWith=v8,mt.invert=J8,mt.invertBy=Q8,mt.invokeMap=N8,mt.iteratee=bd,mt.keyBy=P8,mt.keys=In,mt.keysIn=_i,mt.map=Su,mt.mapKeys=function(_,M){var z={};return M=Ye(M,3),Ea(_,function(K,at,kt){$a(z,M(K,at,kt),K)}),z},mt.mapValues=function(_,M){var z={};return M=Ye(M,3),Ea(_,function(K,at,kt){$a(z,at,M(K,at,kt))}),z},mt.matches=function(_){return Lv(Ki(_,1))},mt.matchesProperty=function(_,M){return Bv(_,Ki(M,1))},mt.memoize=Eu,mt.merge=e_,mt.mergeWith=Kg,mt.method=p_,mt.methodOf=m_,mt.mixin=yd,mt.negate=Cu,mt.nthArg=function(_){return _=dr(_),gr(function(M){return zv(M,_)})},mt.omit=r_,mt.omitBy=function(_,M){return Xg(_,Cu(Ye(M)))},mt.once=function(_){return jg(2,_)},mt.orderBy=function(_,M,z,K){return _==null?[]:(ar(M)||(M=M==null?[]:[M]),ar(z=K?e:z)||(z=z==null?[]:[z]),Uv(_,M,z))},mt.over=v_,mt.overArgs=B8,mt.overEvery=g_,mt.overSome=b_,mt.partial=fd,mt.partialRight=zg,mt.partition=D8,mt.pick=n_,mt.pickBy=Xg,mt.property=n2,mt.propertyOf=function(_){return function(M){return _==null?e:to(_,M)}},mt.pull=g8,mt.pullAll=Og,mt.pullAllBy=function(_,M,z){return _&&_.length&&M&&M.length?zh(_,M,Ye(z,2)):_},mt.pullAllWith=function(_,M,z){return _&&_.length&&M&&M.length?zh(_,M,e,z):_},mt.pullAt=b8,mt.range=y_,mt.rangeRight=w_,mt.rearg=z8,mt.reject=function(_,M){return(ar(_)?Vi:Ov)(_,Cu(Ye(M,3)))},mt.remove=function(_,M){var z=[];if(!_||!_.length)return z;var K=-1,at=[],kt=_.length;for(M=Ye(M,3);++K<kt;){var It=_[K];M(It,K,_)&&(z.push(It),at.push(K))}return Wv(_,at),z},mt.rest=function(_,M){if(typeof _!="function")throw new hr(n);return gr(_,M=M===e?M:dr(M))},mt.reverse=cd,mt.sampleSize=function(_,M,z){return M=(z?ui(_,M,z):M===e)?1:dr(M),(ar(_)?Y5:r8)(_,M)},mt.set=function(_,M,z){return _==null?_:Yc(_,M,z)},mt.setWith=function(_,M,z,K){return K=typeof K=="function"?K:e,_==null?_:Yc(_,M,z,K)},mt.shuffle=function(_){return(ar(_)?K5:i8)(_)},mt.slice=function(_,M,z){var K=_==null?0:_.length;return K?(z&&typeof z!="number"&&ui(_,M,z)?(M=0,z=K):(M=M==null?0:dr(M),z=z===e?K:dr(z)),Xi(_,M,z)):[]},mt.sortBy=F8,mt.sortedUniq=function(_){return _&&_.length?$v(_):[]},mt.sortedUniqBy=function(_,M){return _&&_.length?$v(_,Ye(M,2)):[]},mt.split=function(_,M,z){return z&&typeof z!="number"&&ui(_,M,z)&&(M=z=e),(z=z===e?p:z>>>0)?(_=Ir(_))&&(typeof M=="string"||M!=null&&!dd(M))&&!(M=Oi(M))&&Fr(_)?xs(jr(_),0,z):_.split(M,z):[]},mt.spread=function(_,M){if(typeof _!="function")throw new hr(n);return M=M==null?0:Sn(dr(M),0),gr(function(z){var K=z[M],at=xs(z,0,M);return K&&$i(at,K),jn(_,this,at)})},mt.tail=function(_){var M=_==null?0:_.length;return M?Xi(_,1,M):[]},mt.take=function(_,M,z){return _&&_.length?Xi(_,0,(M=z||M===e?1:dr(M))<0?0:M):[]},mt.takeRight=function(_,M,z){var K=_==null?0:_.length;return K?Xi(_,(M=K-(M=z||M===e?1:dr(M)))<0?0:M,K):[]},mt.takeRightWhile=function(_,M){return _&&_.length?pu(_,Ye(M,3),!1,!0):[]},mt.takeWhile=function(_,M){return _&&_.length?pu(_,Ye(M,3)):[]},mt.tap=function(_,M){return M(_),_},mt.throttle=function(_,M,z){var K=!0,at=!0;if(typeof _!="function")throw new hr(n);return Xr(z)&&(K="leading"in z?!!z.leading:K,at="trailing"in z?!!z.trailing:at),Bg(_,M,{leading:K,maxWait:M,trailing:at})},mt.thru=xu,mt.toArray=$g,mt.toPairs=Zg,mt.toPairsIn=Jg,mt.toPath=function(_){return ar(_)?Br(_,Aa):Ii(_)?[_]:yi(Tg(Ir(_)))},mt.toPlainObject=Gg,mt.transform=function(_,M,z){var K=ar(_),at=K||Ss(_)||Go(_);if(M=Ye(M,4),z==null){var kt=_&&_.constructor;z=at?K?new kt:[]:Xr(_)&&Ka(kt)?Wo(eu(_)):{}}return(at?_n:Ea)(_,function(It,jt,Wt){return M(z,It,jt,Wt)}),z},mt.unary=function(_){return Fg(_,1)},mt.union=y8,mt.unionBy=w8,mt.unionWith=_8,mt.uniq=function(_){return _&&_.length?_s(_):[]},mt.uniqBy=function(_,M){return _&&_.length?_s(_,Ye(M,2)):[]},mt.uniqWith=function(_,M){return M=typeof M=="function"?M:e,_&&_.length?_s(_,e,M):[]},mt.unset=function(_,M){return _==null||Vh(_,M)},mt.unzip=ld,mt.unzipWith=Ig,mt.update=function(_,M,z){return _==null?_:Gv(_,M,Gh(z))},mt.updateWith=function(_,M,z,K){return K=typeof K=="function"?K:e,_==null?_:Gv(_,M,Gh(z),K)},mt.values=Yo,mt.valuesIn=function(_){return _==null?[]:Tt(_,_i(_))},mt.without=k8,mt.words=e2,mt.wrap=function(_,M){return fd(Gh(M),_)},mt.xor=x8,mt.xorBy=S8,mt.xorWith=T8,mt.zip=E8,mt.zipObject=function(_,M){return Kv(_||[],M||[],Vc)},mt.zipObjectDeep=function(_,M){return Kv(_||[],M||[],Yc)},mt.zipWith=C8,mt.entries=Zg,mt.entriesIn=Jg,mt.extend=Yg,mt.extendWith=Mu,yd(mt,mt),mt.add=__,mt.attempt=r2,mt.camelCase=i_,mt.capitalize=Qg,mt.ceil=k_,mt.clamp=function(_,M,z){return z===e&&(z=M,M=e),z!==e&&(z=(z=Ji(z))==z?z:0),M!==e&&(M=(M=Ji(M))==M?M:0),Qs(Ji(_),M,z)},mt.clone=function(_){return Ki(_,4)},mt.cloneDeep=function(_){return Ki(_,5)},mt.cloneDeepWith=function(_,M){return Ki(_,5,M=typeof M=="function"?M:e)},mt.cloneWith=function(_,M){return Ki(_,4,M=typeof M=="function"?M:e)},mt.conformsTo=function(_,M){return M==null||Av(_,M,In(M))},mt.deburr=t2,mt.defaultTo=function(_,M){return _==null||_!=_?M:_},mt.divide=x_,mt.endsWith=function(_,M,z){_=Ir(_),M=Oi(M);var K=_.length,at=z=z===e?K:Qs(dr(z),0,K);return(z-=M.length)>=0&&_.slice(z,at)==M},mt.eq=ua,mt.escape=function(_){return(_=Ir(_))&&et.test(_)?_.replace(q,er):_},mt.escapeRegExp=function(_){return(_=Ir(_))&&xt.test(_)?_.replace(it,"\\$&"):_},mt.every=function(_,M,z){var K=ar(_)?Fo:Z5;return z&&ui(_,M,z)&&(M=e),K(_,Ye(M,3))},mt.find=M8,mt.findIndex=Cg,mt.findKey=function(_,M){return Ua(_,Ye(M,3),Ea)},mt.findLast=O8,mt.findLastIndex=Ag,mt.findLastKey=function(_,M){return Ua(_,Ye(M,3),Ph)},mt.floor=S_,mt.forEach=Pg,mt.forEachRight=Dg,mt.forIn=function(_,M){return _==null?_:Nh(_,Ye(M,3),_i)},mt.forInRight=function(_,M){return _==null?_:Iv(_,Ye(M,3),_i)},mt.forOwn=function(_,M){return _&&Ea(_,Ye(M,3))},mt.forOwnRight=function(_,M){return _&&Ph(_,Ye(M,3))},mt.get=pd,mt.gt=U8,mt.gte=H8,mt.has=function(_,M){return _!=null&&mg(_,M,J5)},mt.hasIn=md,mt.head=Mg,mt.identity=ki,mt.includes=function(_,M,z,K){_=wi(_)?_:Yo(_),z=z&&!K?dr(z):0;var at=_.length;return z<0&&(z=Sn(at+z,0)),Ru(_)?z<=at&&_.indexOf(M,z)>-1:!!at&&ci(_,M,z)>-1},mt.indexOf=function(_,M,z){var K=_==null?0:_.length;if(!K)return-1;var at=z==null?0:dr(z);return at<0&&(at=Sn(K+at,0)),ci(_,M,at)},mt.inRange=function(_,M,z){return M=Xa(M),z===e?(z=M,M=0):z=Xa(z),function(K,at,kt){return K>=Qn(at,kt)&&K<Sn(at,kt)}(_=Ji(_),M,z)},mt.invoke=t_,mt.isArguments=no,mt.isArray=ar,mt.isArrayBuffer=W8,mt.isArrayLike=wi,mt.isArrayLikeObject=cn,mt.isBoolean=function(_){return _===!0||_===!1||rn(_)&&li(_)==g},mt.isBuffer=Ss,mt.isDate=V8,mt.isElement=function(_){return rn(_)&&_.nodeType===1&&!Jc(_)},mt.isEmpty=function(_){if(_==null)return!0;if(wi(_)&&(ar(_)||typeof _=="string"||typeof _.splice=="function"||Ss(_)||Go(_)||no(_)))return!_.length;var M=ti(_);if(M==O||M==V)return!_.size;if(Xc(_))return!Lh(_).length;for(var z in _)if(ir.call(_,z))return!1;return!0},mt.isEqual=function(_,M){return Gc(_,M)},mt.isEqualWith=function(_,M,z){var K=(z=typeof z=="function"?z:e)?z(_,M):e;return K===e?Gc(_,M,e,z):!!K},mt.isError=hd,mt.isFinite=function(_){return typeof _=="number"&&kv(_)},mt.isFunction=Ka,mt.isInteger=Ug,mt.isLength=Au,mt.isMap=Hg,mt.isMatch=function(_,M){return _===M||jh(_,M,td(M))},mt.isMatchWith=function(_,M,z){return z=typeof z=="function"?z:e,jh(_,M,td(M),z)},mt.isNaN=function(_){return Wg(_)&&_!=+_},mt.isNative=function(_){if(u8(_))throw new Et("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dv(_)},mt.isNil=function(_){return _==null},mt.isNull=function(_){return _===null},mt.isNumber=Wg,mt.isObject=Xr,mt.isObjectLike=rn,mt.isPlainObject=Jc,mt.isRegExp=dd,mt.isSafeInteger=function(_){return Ug(_)&&_>=-9007199254740991&&_<=h},mt.isSet=Vg,mt.isString=Ru,mt.isSymbol=Ii,mt.isTypedArray=Go,mt.isUndefined=function(_){return _===e},mt.isWeakMap=function(_){return rn(_)&&ti(_)==k},mt.isWeakSet=function(_){return rn(_)&&li(_)=="[object WeakSet]"},mt.join=function(_,M){return _==null?"":L5.call(_,M)},mt.kebabCase=a_,mt.last=Zi,mt.lastIndexOf=function(_,M,z){var K=_==null?0:_.length;if(!K)return-1;var at=K;return z!==e&&(at=(at=dr(z))<0?Sn(K+at,0):Qn(at,K-1)),M==M?function(kt,It,jt){for(var Wt=jt+1;Wt--;)if(kt[Wt]===It)return Wt;return Wt}(_,M,at):oa(_,Bo,at,!0)},mt.lowerCase=s_,mt.lowerFirst=o_,mt.lt=$8,mt.lte=q8,mt.max=function(_){return _&&_.length?uu(_,ki,Dh):e},mt.maxBy=function(_,M){return _&&_.length?uu(_,Ye(M,2),Dh):e},mt.mean=function(_){return ms(_,ki)},mt.meanBy=function(_,M){return ms(_,Ye(M,2))},mt.min=function(_){return _&&_.length?uu(_,ki,Bh):e},mt.minBy=function(_,M){return _&&_.length?uu(_,Ye(M,2),Bh):e},mt.stubArray=_d,mt.stubFalse=kd,mt.stubObject=function(){return{}},mt.stubString=function(){return""},mt.stubTrue=function(){return!0},mt.multiply=T_,mt.nth=function(_,M){return _&&_.length?zv(_,dr(M)):e},mt.noConflict=function(){return Yr._===this&&(Yr._=zo),this},mt.noop=wd,mt.now=Tu,mt.pad=function(_,M,z){_=Ir(_);var K=(M=dr(M))?Kr(_):0;if(!M||K>=M)return _;var at=(M-K)/2;return bu(au(at),z)+_+bu(iu(at),z)},mt.padEnd=function(_,M,z){_=Ir(_);var K=(M=dr(M))?Kr(_):0;return M&&K<M?_+bu(M-K,z):_},mt.padStart=function(_,M,z){_=Ir(_);var K=(M=dr(M))?Kr(_):0;return M&&K<M?bu(M-K,z)+_:_},mt.parseInt=function(_,M,z){return z||M==null?M=0:M&&(M=+M),U5(Ir(_).replace(Nt,""),M||0)},mt.random=function(_,M,z){if(z&&typeof z!="boolean"&&ui(_,M,z)&&(M=z=e),z===e&&(typeof M=="boolean"?(z=M,M=e):typeof _=="boolean"&&(z=_,_=e)),_===e&&M===e?(_=0,M=1):(_=Xa(_),M===e?(M=_,_=0):M=Xa(M)),_>M){var K=_;_=M,M=K}if(z||_%1||M%1){var at=xv();return Qn(_+at*(M-_+wn("1e-"+((at+"").length-1))),M)}return Uh(_,M)},mt.reduce=function(_,M,z){var K=ar(_)?Ys:Ta,at=arguments.length<3;return K(_,Ye(M,4),z,at,ws)},mt.reduceRight=function(_,M,z){var K=ar(_)?jo:Ta,at=arguments.length<3;return K(_,Ye(M,4),z,at,Mv)},mt.repeat=function(_,M,z){return M=(z?ui(_,M,z):M===e)?1:dr(M),Hh(Ir(_),M)},mt.replace=function(){var _=arguments,M=Ir(_[0]);return _.length<3?M:M.replace(_[1],_[2])},mt.result=function(_,M,z){var K=-1,at=(M=ks(M,_)).length;for(at||(at=1,_=e);++K<at;){var kt=_==null?e:_[Aa(M[K])];kt===e&&(K=at,kt=z),_=Ka(kt)?kt.call(_):kt}return _},mt.round=E_,mt.runInContext=Vt,mt.sample=function(_){return(ar(_)?Ev:e8)(_)},mt.size=function(_){if(_==null)return 0;if(wi(_))return Ru(_)?Kr(_):_.length;var M=ti(_);return M==O||M==V?_.size:Lh(_).length},mt.snakeCase=c_,mt.some=function(_,M,z){var K=ar(_)?Ri:a8;return z&&ui(_,M,z)&&(M=e),K(_,Ye(M,3))},mt.sortedIndex=function(_,M){return du(_,M)},mt.sortedIndexBy=function(_,M,z){return Wh(_,M,Ye(z,2))},mt.sortedIndexOf=function(_,M){var z=_==null?0:_.length;if(z){var K=du(_,M);if(K<z&&ua(_[K],M))return K}return-1},mt.sortedLastIndex=function(_,M){return du(_,M,!0)},mt.sortedLastIndexBy=function(_,M,z){return Wh(_,M,Ye(z,2),!0)},mt.sortedLastIndexOf=function(_,M){if(_!=null&&_.length){var z=du(_,M,!0)-1;if(ua(_[z],M))return z}return-1},mt.startCase=l_,mt.startsWith=function(_,M,z){return _=Ir(_),z=z==null?0:Qs(dr(z),0,_.length),M=Oi(M),_.slice(z,z+M.length)==M},mt.subtract=C_,mt.sum=function(_){return _&&_.length?gs(_,ki):0},mt.sumBy=function(_,M){return _&&_.length?gs(_,Ye(M,2)):0},mt.template=function(_,M,z){var K=mt.templateSettings;z&&ui(_,M,z)&&(M=e),_=Ir(_),M=Mu({},M,K,fg);var at,kt,It=Mu({},M.imports,K.imports,fg),jt=In(It),Wt=Tt(It,jt),ee=0,ae=M.interpolate||Ct,ge="__p += '",Fe=Ie((M.escape||Ct).source+"|"+ae.source+"|"+(ae===st?rt:Ct).source+"|"+(M.evaluate||Ct).source+"|$","g"),Le="//# sourceURL="+(ir.call(M,"sourceURL")?(M.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++yn+"]")+`
|
||
`;_.replace(Fe,function(_e,Xe,Ce,cr,rr,Ar){return Ce||(Ce=cr),ge+=_.slice(ee,Ar).replace(zt,Sr),Xe&&(at=!0,ge+=`' +
|
||
__e(`+Xe+`) +
|
||
'`),rr&&(kt=!0,ge+=`';
|
||
`+rr+`;
|
||
__p += '`),Ce&&(ge+=`' +
|
||
((__t = (`+Ce+`)) == null ? '' : __t) +
|
||
'`),ee=Ar+_e.length,_e}),ge+=`';
|
||
`;var Ge=ir.call(M,"variable")&&M.variable;if(Ge){if(pt.test(Ge))throw new Et("Invalid `variable` option passed into `_.template`")}else ge=`with (obj) {
|
||
`+ge+`
|
||
}
|
||
`;ge=(kt?ge.replace(dt,""):ge).replace(gt,"$1").replace(bt,"$1;"),ge="function("+(Ge||"obj")+`) {
|
||
`+(Ge?"":`obj || (obj = {});
|
||
`)+"var __t, __p = ''"+(at?", __e = _.escape":"")+(kt?`, __j = Array.prototype.join;
|
||
function print() { __p += __j.call(arguments, '') }
|
||
`:`;
|
||
`)+ge+`return __p
|
||
}`;var oe=r2(function(){return $t(jt,Le+"return "+ge).apply(e,Wt)});if(oe.source=ge,hd(oe))throw oe;return oe},mt.times=function(_,M){if((_=dr(_))<1||_>h)return[];var z=p,K=Qn(_,p);M=Ye(M),_-=p;for(var at=bs(K,M);++z<_;)M(z);return at},mt.toFinite=Xa,mt.toInteger=dr,mt.toLength=qg,mt.toLower=function(_){return Ir(_).toLowerCase()},mt.toNumber=Ji,mt.toSafeInteger=function(_){return _?Qs(dr(_),-9007199254740991,h):_===0?_:0},mt.toString=Ir,mt.toUpper=function(_){return Ir(_).toUpperCase()},mt.trim=function(_,M,z){if((_=Ir(_))&&(z||M===e))return Ks(_);if(!_||!(M=Oi(M)))return _;var K=jr(_),at=jr(M);return xs(K,se(K,at),Oe(K,at)+1).join("")},mt.trimEnd=function(_,M,z){if((_=Ir(_))&&(z||M===e))return _.slice(0,Bn(_)+1);if(!_||!(M=Oi(M)))return _;var K=jr(_);return xs(K,0,Oe(K,jr(M))+1).join("")},mt.trimStart=function(_,M,z){if((_=Ir(_))&&(z||M===e))return _.replace(Nt,"");if(!_||!(M=Oi(M)))return _;var K=jr(_);return xs(K,se(K,jr(M))).join("")},mt.truncate=function(_,M){var z=30,K="...";if(Xr(M)){var at="separator"in M?M.separator:at;z="length"in M?dr(M.length):z,K="omission"in M?Oi(M.omission):K}var kt=(_=Ir(_)).length;if(Fr(_)){var It=jr(_);kt=It.length}if(z>=kt)return _;var jt=z-Kr(K);if(jt<1)return K;var Wt=It?xs(It,0,jt).join(""):_.slice(0,jt);if(at===e)return Wt+K;if(It&&(jt+=Wt.length-jt),dd(at)){if(_.slice(jt).search(at)){var ee,ae=Wt;for(at.global||(at=Ie(at.source,Ir(nt.exec(at))+"g")),at.lastIndex=0;ee=at.exec(ae);)var ge=ee.index;Wt=Wt.slice(0,ge===e?jt:ge)}}else if(_.indexOf(Oi(at),jt)!=jt){var Fe=Wt.lastIndexOf(at);Fe>-1&&(Wt=Wt.slice(0,Fe))}return Wt+K},mt.unescape=function(_){return(_=Ir(_))&&tt.test(_)?_.replace(Q,Mi):_},mt.uniqueId=function(_){var M=++bi;return Ir(_)+M},mt.upperCase=u_,mt.upperFirst=vd,mt.each=Pg,mt.eachRight=Dg,mt.first=Mg,yd(mt,(xd={},Ea(mt,function(_,M){ir.call(mt.prototype,M)||(xd[M]=_)}),xd),{chain:!1}),mt.VERSION="4.17.21",_n(["bind","bindKey","curry","curryRight","partial","partialRight"],function(_){mt[_].placeholder=mt}),_n(["drop","take"],function(_,M){kr.prototype[_]=function(z){z=z===e?1:Sn(dr(z),0);var K=this.__filtered__&&!M?new kr(this):this.clone();return K.__filtered__?K.__takeCount__=Qn(z,K.__takeCount__):K.__views__.push({size:Qn(z,p),type:_+(K.__dir__<0?"Right":"")}),K},kr.prototype[_+"Right"]=function(z){return this.reverse()[_](z).reverse()}}),_n(["filter","map","takeWhile"],function(_,M){var z=M+1,K=z==1||z==3;kr.prototype[_]=function(at){var kt=this.clone();return kt.__iteratees__.push({iteratee:Ye(at,3),type:z}),kt.__filtered__=kt.__filtered__||K,kt}}),_n(["head","last"],function(_,M){var z="take"+(M?"Right":"");kr.prototype[_]=function(){return this[z](1).value()[0]}}),_n(["initial","tail"],function(_,M){var z="drop"+(M?"":"Right");kr.prototype[_]=function(){return this.__filtered__?new kr(this):this[z](1)}}),kr.prototype.compact=function(){return this.filter(ki)},kr.prototype.find=function(_){return this.filter(_).head()},kr.prototype.findLast=function(_){return this.reverse().find(_)},kr.prototype.invokeMap=gr(function(_,M){return typeof _=="function"?new kr(this):this.map(function(z){return qc(z,_,M)})}),kr.prototype.reject=function(_){return this.filter(Cu(Ye(_)))},kr.prototype.slice=function(_,M){_=dr(_);var z=this;return z.__filtered__&&(_>0||M<0)?new kr(z):(_<0?z=z.takeRight(-_):_&&(z=z.drop(_)),M!==e&&(z=(M=dr(M))<0?z.dropRight(-M):z.take(M-_)),z)},kr.prototype.takeRightWhile=function(_){return this.reverse().takeWhile(_).reverse()},kr.prototype.toArray=function(){return this.take(p)},Ea(kr.prototype,function(_,M){var z=/^(?:filter|find|map|reject)|While$/.test(M),K=/^(?:head|last)$/.test(M),at=mt[K?"take"+(M=="last"?"Right":""):M],kt=K||/^find/.test(M);at&&(mt.prototype[M]=function(){var It=this.__wrapped__,jt=K?[1]:arguments,Wt=It instanceof kr,ee=jt[0],ae=Wt||ar(It),ge=function(Xe){var Ce=at.apply(mt,$i([Xe],jt));return K&&Fe?Ce[0]:Ce};ae&&z&&typeof ee=="function"&&ee.length!=1&&(Wt=ae=!1);var Fe=this.__chain__,Le=!!this.__actions__.length,Ge=kt&&!Fe,oe=Wt&&!Le;if(!kt&&ae){It=oe?It:new kr(this);var _e=_.apply(It,jt);return _e.__actions__.push({func:xu,args:[ge],thisArg:e}),new Yi(_e,Fe)}return Ge&&oe?_.apply(this,jt):(_e=this.thru(ge),Ge?K?_e.value()[0]:_e.value():_e)})}),_n(["pop","push","shift","sort","splice","unshift"],function(_){var M=Ur[_],z=/^(?:push|sort|unshift)$/.test(_)?"tap":"thru",K=/^(?:pop|shift)$/.test(_);mt.prototype[_]=function(){var at=arguments;if(K&&!this.__chain__){var kt=this.value();return M.apply(ar(kt)?kt:[],at)}return this[z](function(It){return M.apply(ar(It)?It:[],at)})}}),Ea(kr.prototype,function(_,M){var z=mt[M];if(z){var K=z.name+"";ir.call(Ho,K)||(Ho[K]=[]),Ho[K].push({name:M,func:z})}}),Ho[vu(e,2).name]=[{name:"wrapper",func:e}],kr.prototype.clone=function(){var _=new kr(this.__wrapped__);return _.__actions__=yi(this.__actions__),_.__dir__=this.__dir__,_.__filtered__=this.__filtered__,_.__iteratees__=yi(this.__iteratees__),_.__takeCount__=this.__takeCount__,_.__views__=yi(this.__views__),_},kr.prototype.reverse=function(){if(this.__filtered__){var _=new kr(this);_.__dir__=-1,_.__filtered__=!0}else(_=this.clone()).__dir__*=-1;return _},kr.prototype.value=function(){var _=this.__wrapped__.value(),M=this.__dir__,z=ar(_),K=M<0,at=z?_.length:0,kt=function(Ar,We,Ze){for(var Tn=-1,ln=Ze.length;++Tn<ln;){var fi=Ze[Tn],$r=fi.size;switch(fi.type){case"drop":Ar+=$r;break;case"dropRight":We-=$r;break;case"take":We=Qn(We,Ar+$r);break;case"takeRight":Ar=Sn(Ar,We-$r)}}return{start:Ar,end:We}}(0,at,this.__views__),It=kt.start,jt=kt.end,Wt=jt-It,ee=K?jt:It-1,ae=this.__iteratees__,ge=ae.length,Fe=0,Le=Qn(Wt,this.__takeCount__);if(!z||!K&&at==Wt&&Le==Wt)return Yv(_,this.__actions__);var Ge=[];t:for(;Wt--&&Fe<Le;){for(var oe=-1,_e=_[ee+=M];++oe<ge;){var Xe=ae[oe],Ce=Xe.iteratee,cr=Xe.type,rr=Ce(_e);if(cr==2)_e=rr;else if(!rr){if(cr==1)continue t;break t}}Ge[Fe++]=_e}return Ge},mt.prototype.at=A8,mt.prototype.chain=function(){return Ng(this)},mt.prototype.commit=function(){return new Yi(this.value(),this.__chain__)},mt.prototype.next=function(){this.__values__===e&&(this.__values__=$g(this.value()));var _=this.__index__>=this.__values__.length;return{done:_,value:_?e:this.__values__[this.__index__++]}},mt.prototype.plant=function(_){for(var M,z=this;z instanceof cu;){var K=Eg(z);K.__index__=0,K.__values__=e,M?at.__wrapped__=K:M=K;var at=K;z=z.__wrapped__}return at.__wrapped__=_,M},mt.prototype.reverse=function(){var _=this.__wrapped__;if(_ instanceof kr){var M=_;return this.__actions__.length&&(M=new kr(this)),(M=M.reverse()).__actions__.push({func:xu,args:[cd],thisArg:e}),new Yi(M,this.__chain__)}return this.thru(cd)},mt.prototype.toJSON=mt.prototype.valueOf=mt.prototype.value=function(){return Yv(this.__wrapped__,this.__actions__)},mt.prototype.first=mt.prototype.head,Bc&&(mt.prototype[Bc]=function(){return this}),mt}();sa?((sa.exports=Jn)._=Jn,ka._=Jn):Yr._=Jn}).call(ur)})(df,df.exports);var yl=df.exports;function K0(t){for(var r=(t=t.replace("#","")).match(/../g),e=0;e<3;e++)r[e]=parseInt(r[e],16);return r}function X0(t,r,e){for(var n=[t.toString(16),r.toString(16),e.toString(16)],a=0;a<3;a++)n[a].length==1&&(n[a]="0"+n[a]);return"#"+n.join("")}var Z0={exports:{}};(function(t,r){t.exports=function(){var e=1e3,n=6e4,a=36e5,o="millisecond",s="second",i="minute",c="hour",l="day",u="week",f="month",h="quarter",d="year",p="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|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,g={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(N){var k=["th","st","nd","rd"],S=N%100;return"["+N+(k[(S-20)%10]||k[S]||k[0])+"]"}},y=function(N,k,S){var E=String(N);return!E||E.length>=k?N:""+Array(k+1-E.length).join(S)+N},w={s:y,z:function(N){var k=-N.utcOffset(),S=Math.abs(k),E=Math.floor(S/60),T=S%60;return(k<=0?"+":"-")+y(E,2,"0")+":"+y(T,2,"0")},m:function N(k,S){if(k.date()<S.date())return-N(S,k);var E=12*(S.year()-k.year())+(S.month()-k.month()),T=k.clone().add(E,f),R=S-T<0,F=k.clone().add(E+(R?-1:1),f);return+(-(E+(S-T)/(R?T-F:F-T))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:f,y:d,w:u,d:l,D:p,h:c,m:i,s,ms:o,Q:h}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},x="en",C={};C[x]=g;var O="$isDayjsObject",D=function(N){return N instanceof V||!(!N||!N[O])},j=function N(k,S,E){var T;if(!k)return x;if(typeof k=="string"){var R=k.toLowerCase();C[R]&&(T=R),S&&(C[R]=S,T=R);var F=k.split("-");if(!T&&F.length>1)return N(F[0])}else{var I=k.name;C[I]=k,T=I}return!E&&T&&(x=T),T||!E&&x},U=function(N,k){if(D(N))return N.clone();var S=typeof k=="object"?k:{};return S.date=N,S.args=arguments,new V(S)},L=w;L.l=j,L.i=D,L.w=function(N,k){return U(N,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var V=function(){function N(S){this.$L=j(S.locale,null,!0),this.parse(S),this.$x=this.$x||S.x||{},this[O]=!0}var k=N.prototype;return k.parse=function(S){this.$d=function(E){var T=E.date,R=E.utc;if(T===null)return new Date(NaN);if(L.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var F=T.match(v);if(F){var I=F[2]-1||0,B=(F[7]||"0").substring(0,3);return R?new Date(Date.UTC(F[1],I,F[3]||1,F[4]||0,F[5]||0,F[6]||0,B)):new Date(F[1],I,F[3]||1,F[4]||0,F[5]||0,F[6]||0,B)}}return new Date(T)}(S),this.init()},k.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},k.$utils=function(){return L},k.isValid=function(){return this.$d.toString()!==m},k.isSame=function(S,E){var T=U(S);return this.startOf(E)<=T&&T<=this.endOf(E)},k.isAfter=function(S,E){return U(S)<this.startOf(E)},k.isBefore=function(S,E){return this.endOf(E)<U(S)},k.$g=function(S,E,T){return L.u(S)?this[E]:this.set(T,S)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(S,E){var T=this,R=!!L.u(E)||E,F=L.p(S),I=function(bt,Q){var q=L.w(T.$u?Date.UTC(T.$y,Q,bt):new Date(T.$y,Q,bt),T);return R?q:q.endOf(l)},B=function(bt,Q){return L.w(T.toDate()[bt].apply(T.toDate("s"),(R?[0,0,0,0]:[23,59,59,999]).slice(Q)),T)},P=this.$W,H=this.$M,Z=this.$D,Y="set"+(this.$u?"UTC":"");switch(F){case d:return R?I(1,0):I(31,11);case f:return R?I(1,H):I(0,H+1);case u:var dt=this.$locale().weekStart||0,gt=(P<dt?P+7:P)-dt;return I(R?Z-gt:Z+(6-gt),H);case l:case p:return B(Y+"Hours",0);case c:return B(Y+"Minutes",1);case i:return B(Y+"Seconds",2);case s:return B(Y+"Milliseconds",3);default:return this.clone()}},k.endOf=function(S){return this.startOf(S,!1)},k.$set=function(S,E){var T,R=L.p(S),F="set"+(this.$u?"UTC":""),I=(T={},T[l]=F+"Date",T[p]=F+"Date",T[f]=F+"Month",T[d]=F+"FullYear",T[c]=F+"Hours",T[i]=F+"Minutes",T[s]=F+"Seconds",T[o]=F+"Milliseconds",T)[R],B=R===l?this.$D+(E-this.$W):E;if(R===f||R===d){var P=this.clone().set(p,1);P.$d[I](B),P.init(),this.$d=P.set(p,Math.min(this.$D,P.daysInMonth())).$d}else I&&this.$d[I](B);return this.init(),this},k.set=function(S,E){return this.clone().$set(S,E)},k.get=function(S){return this[L.p(S)]()},k.add=function(S,E){var T,R=this;S=Number(S);var F=L.p(E),I=function(H){var Z=U(R);return L.w(Z.date(Z.date()+Math.round(H*S)),R)};if(F===f)return this.set(f,this.$M+S);if(F===d)return this.set(d,this.$y+S);if(F===l)return I(1);if(F===u)return I(7);var B=(T={},T[i]=n,T[c]=a,T[s]=e,T)[F]||1,P=this.$d.getTime()+S*B;return L.w(P,this)},k.subtract=function(S,E){return this.add(-1*S,E)},k.format=function(S){var E=this,T=this.$locale();if(!this.isValid())return T.invalidDate||m;var R=S||"YYYY-MM-DDTHH:mm:ssZ",F=L.z(this),I=this.$H,B=this.$m,P=this.$M,H=T.weekdays,Z=T.months,Y=T.meridiem,dt=function(Q,q,tt,et){return Q&&(Q[q]||Q(E,R))||tt[q].slice(0,et)},gt=function(Q){return L.s(I%12||12,Q,"0")},bt=Y||function(Q,q,tt){var et=Q<12?"AM":"PM";return tt?et.toLowerCase():et};return R.replace(b,function(Q,q){return q||function(tt){switch(tt){case"YY":return String(E.$y).slice(-2);case"YYYY":return L.s(E.$y,4,"0");case"M":return P+1;case"MM":return L.s(P+1,2,"0");case"MMM":return dt(T.monthsShort,P,Z,3);case"MMMM":return dt(Z,P);case"D":return E.$D;case"DD":return L.s(E.$D,2,"0");case"d":return String(E.$W);case"dd":return dt(T.weekdaysMin,E.$W,H,2);case"ddd":return dt(T.weekdaysShort,E.$W,H,3);case"dddd":return H[E.$W];case"H":return String(I);case"HH":return L.s(I,2,"0");case"h":return gt(1);case"hh":return gt(2);case"a":return bt(I,B,!0);case"A":return bt(I,B,!1);case"m":return String(B);case"mm":return L.s(B,2,"0");case"s":return String(E.$s);case"ss":return L.s(E.$s,2,"0");case"SSS":return L.s(E.$ms,3,"0");case"Z":return F}return null}(Q)||F.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(S,E,T){var R,F=this,I=L.p(E),B=U(S),P=(B.utcOffset()-this.utcOffset())*n,H=this-B,Z=function(){return L.m(F,B)};switch(I){case d:R=Z()/12;break;case f:R=Z();break;case h:R=Z()/3;break;case u:R=(H-P)/6048e5;break;case l:R=(H-P)/864e5;break;case c:R=H/a;break;case i:R=H/n;break;case s:R=H/e;break;default:R=H}return T?R:L.a(R)},k.daysInMonth=function(){return this.endOf(f).$D},k.$locale=function(){return C[this.$L]},k.locale=function(S,E){if(!S)return this.$L;var T=this.clone(),R=j(S,E,!0);return R&&(T.$L=R),T},k.clone=function(){return L.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},N}(),A=V.prototype;return U.prototype=A,[["$ms",o],["$s",s],["$m",i],["$H",c],["$W",l],["$M",f],["$y",d],["$D",p]].forEach(function(N){A[N[1]]=function(k){return this.$g(k,N[0],N[1])}}),U.extend=function(N,k){return N.$i||(N(k,V,U),N.$i=!0),U},U.locale=j,U.isDayjs=D,U.unix=function(N){return U(1e3*N)},U.en=C[x],U.Ls=C,U.p={},U}()})(Z0);const po=P0(Z0.exports);/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var pf={version:"0.18.5"},J0=1252,_w=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],mf={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},vf=function(t){_w.indexOf(t)!=-1&&(J0=mf[0]=t)},ra=function(t){vf(t)};function gf(){ra(1200),vf(1252)}function Q0(t){for(var r=[],e=0,n=t.length;e<n;++e)r[e]=t.charCodeAt(e);return r}function tp(t){for(var r=[],e=0;e<t.length>>1;++e)r[e]=String.fromCharCode(t.charCodeAt(2*e+1)+(t.charCodeAt(2*e)<<8));return r.join("")}var es,ic=function(t){var r=t.charCodeAt(0),e=t.charCodeAt(1);return r==255&&e==254?function(n){for(var a=[],o=0;o<n.length>>1;++o)a[o]=String.fromCharCode(n.charCodeAt(2*o)+(n.charCodeAt(2*o+1)<<8));return a.join("")}(t.slice(2)):r==254&&e==255?tp(t.slice(2)):r==65279?t.slice(1):t},wl=function(t){return String.fromCharCode(t)},ep=function(t){return String.fromCharCode(t)},rs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function ac(t){for(var r="",e=0,n=0,a=0,o=0,s=0,i=0,c=0,l=0;l<t.length;)o=(e=t.charCodeAt(l++))>>2,s=(3&e)<<4|(n=t.charCodeAt(l++))>>4,i=(15&n)<<2|(a=t.charCodeAt(l++))>>6,c=63&a,isNaN(n)?i=c=64:isNaN(a)&&(c=64),r+=rs.charAt(o)+rs.charAt(s)+rs.charAt(i)+rs.charAt(c);return r}function Si(t){var r="",e=0,n=0,a=0,o=0,s=0,i=0;t=t.replace(/[^\w\+\/\=]/g,"");for(var c=0;c<t.length;)e=rs.indexOf(t.charAt(c++))<<2|(o=rs.indexOf(t.charAt(c++)))>>4,r+=String.fromCharCode(e),n=(15&o)<<4|(s=rs.indexOf(t.charAt(c++)))>>2,s!==64&&(r+=String.fromCharCode(n)),a=(3&s)<<6|(i=rs.indexOf(t.charAt(c++))),i!==64&&(r+=String.fromCharCode(a));return r}var mr=function(){return typeof Buffer!="undefined"&&typeof process!="undefined"&&process.versions!==void 0&&!!process.versions.node}(),Na=function(){if(typeof Buffer!="undefined"){var t=!Buffer.from;if(!t)try{Buffer.from("foo","utf8")}catch(r){t=!0}return t?function(r,e){return e?new Buffer(r,e):new Buffer(r)}:Buffer.from.bind(Buffer)}return function(){}}();function ns(t){return mr?Buffer.alloc?Buffer.alloc(t):new Buffer(t):typeof Uint8Array!="undefined"?new Uint8Array(t):new Array(t)}function rp(t){return mr?Buffer.allocUnsafe?Buffer.allocUnsafe(t):new Buffer(t):typeof Uint8Array!="undefined"?new Uint8Array(t):new Array(t)}var Ti=function(t){return mr?Na(t,"binary"):t.split("").map(function(r){return 255&r.charCodeAt(0)})};function _l(t){if(typeof ArrayBuffer=="undefined")return Ti(t);for(var r=new ArrayBuffer(t.length),e=new Uint8Array(r),n=0;n!=t.length;++n)e[n]=255&t.charCodeAt(n);return r}function is(t){if(Array.isArray(t))return t.map(function(n){return String.fromCharCode(n)}).join("");for(var r=[],e=0;e<t.length;++e)r[e]=String.fromCharCode(t[e]);return r.join("")}function bf(t){if(typeof ArrayBuffer=="undefined")throw new Error("Unsupported");if(t instanceof ArrayBuffer)return bf(new Uint8Array(t));for(var r=new Array(t.length),e=0;e<t.length;++e)r[e]=t[e];return r}var En=mr?function(t){return Buffer.concat(t.map(function(r){return Buffer.isBuffer(r)?r:Na(r)}))}:function(t){if(typeof Uint8Array!="undefined"){var r=0,e=0;for(r=0;r<t.length;++r)e+=t[r].length;var n=new Uint8Array(e),a=0;for(r=0,e=0;r<t.length;e+=a,++r)if(a=t[r].length,t[r]instanceof Uint8Array)n.set(t[r],e);else{if(typeof t[r]=="string")throw"wtf";n.set(new Uint8Array(t[r]),e)}return n}return[].concat.apply([],t.map(function(o){return Array.isArray(o)?o:[].slice.call(o)}))},ri=/\u0000/g,sc=/[\u0001-\u0006]/g;function mo(t){for(var r="",e=t.length-1;e>=0;)r+=t.charAt(e--);return r}function na(t,r){var e=""+t;return e.length>=r?e:Zr("0",r-e.length)+e}function yf(t,r){var e=""+t;return e.length>=r?e:Zr(" ",r-e.length)+e}function kl(t,r){var e=""+t;return e.length>=r?e:e+Zr(" ",r-e.length)}var np=Math.pow(2,32);function vo(t,r){return t>np||t<-np?function(e,n){var a=""+Math.round(e);return a.length>=n?a:Zr("0",n-a.length)+a}(t,r):function(e,n){var a=""+e;return a.length>=n?a:Zr("0",n-a.length)+a}(Math.round(t),r)}function xl(t,r){return r=r||0,t.length>=7+r&&(32|t.charCodeAt(r))==103&&(32|t.charCodeAt(r+1))==101&&(32|t.charCodeAt(r+2))==110&&(32|t.charCodeAt(r+3))==101&&(32|t.charCodeAt(r+4))==114&&(32|t.charCodeAt(r+5))==97&&(32|t.charCodeAt(r+6))==108}var ip=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],wf=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]],Qe={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},ap={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},kw={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function Sl(t,r,e){for(var n=t<0?-1:1,a=t*n,o=0,s=1,i=0,c=1,l=0,u=0,f=Math.floor(a);l<r&&(i=(f=Math.floor(a))*s+o,u=f*l+c,!(a-f<5e-8));)a=1/(a-f),o=s,s=i,c=l,l=u;if(u>r&&(l>r?(u=c,i=o):(u=l,i=s)),!e)return[0,n*i,u];var h=Math.floor(n*i/u);return[h,n*i-h*u,u]}function Ms(t,r,e){if(t>2958465||t<0)return null;var n=0|t,a=Math.floor(86400*(t-n)),o=0,s=[],i={D:n,T:a,u:86400*(t-n)-a,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(i.u)<1e-6&&(i.u=0),r&&r.date1904&&(n+=1462),i.u>.9999&&(i.u=0,++a==86400&&(i.T=a=0,++n,++i.D)),n===60)s=e?[1317,10,29]:[1900,2,29],o=3;else if(n===0)s=e?[1317,8,29]:[1900,1,0],o=6;else{n>60&&--n;var c=new Date(1900,0,1);c.setDate(c.getDate()+n-1),s=[c.getFullYear(),c.getMonth()+1,c.getDate()],o=c.getDay(),n<60&&(o=(o+6)%7),e&&(o=function(l,u){u[0]-=581;var f=l.getDay();return l<60&&(f=(f+6)%7),f}(c,s))}return i.y=s[0],i.m=s[1],i.d=s[2],i.S=a%60,a=Math.floor(a/60),i.M=a%60,a=Math.floor(a/60),i.H=a,i.q=o,i}var sp=new Date(1899,11,31,0,0,0),xw=sp.getTime(),Sw=new Date(1900,2,1,0,0,0);function op(t,r){var e=t.getTime();return r?e-=1262304e5:t>=Sw&&(e+=864e5),(e-(xw+6e4*(t.getTimezoneOffset()-sp.getTimezoneOffset())))/864e5}function _f(t){return t.indexOf(".")==-1?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function oc(t){var r,e=Math.floor(Math.log(Math.abs(t))*Math.LOG10E);return r=e>=-4&&e<=-1?t.toPrecision(10+e):Math.abs(e)<=9?function(n){var a=n<0?12:11,o=_f(n.toFixed(12));return o.length<=a||(o=n.toPrecision(10)).length<=a?o:n.toExponential(5)}(t):e===10?t.toFixed(10).substr(0,12):function(n){var a=_f(n.toFixed(11));return a.length>(n<0?12:11)||a==="0"||a==="-0"?n.toPrecision(6):a}(t),_f(function(n){return n.indexOf("E")==-1?n:n.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(r.toUpperCase()))}function Os(t,r){switch(typeof t){case"string":return t;case"boolean":return t?"TRUE":"FALSE";case"number":return(0|t)===t?t.toString(10):oc(t);case"undefined":return"";case"object":if(t==null)return"";if(t instanceof Date)return Pi(14,op(t,r&&r.date1904),r)}throw new Error("unsupported value in General format: "+t)}function Tw(t,r,e,n){var a,o="",s=0,i=0,c=e.y,l=0;switch(t){case 98:c=e.y+543;case 121:switch(r.length){case 1:case 2:a=c%100,l=2;break;default:a=c%1e4,l=4}break;case 109:switch(r.length){case 1:case 2:a=e.m,l=r.length;break;case 3:return wf[e.m-1][1];case 5:return wf[e.m-1][0];default:return wf[e.m-1][2]}break;case 100:switch(r.length){case 1:case 2:a=e.d,l=r.length;break;case 3:return ip[e.q][0];default:return ip[e.q][1]}break;case 104:switch(r.length){case 1:case 2:a=1+(e.H+11)%12,l=r.length;break;default:throw"bad hour format: "+r}break;case 72:switch(r.length){case 1:case 2:a=e.H,l=r.length;break;default:throw"bad hour format: "+r}break;case 77:switch(r.length){case 1:case 2:a=e.M,l=r.length;break;default:throw"bad minute format: "+r}break;case 115:if(r!="s"&&r!="ss"&&r!=".0"&&r!=".00"&&r!=".000")throw"bad second format: "+r;return e.u!==0||r!="s"&&r!="ss"?(i=n>=2?n===3?1e3:100:n===1?10:1,(s=Math.round(i*(e.S+e.u)))>=60*i&&(s=0),r==="s"?s===0?"0":""+s/i:(o=na(s,2+n),r==="ss"?o.substr(0,2):"."+o.substr(2,r.length-1))):na(e.S,r.length);case 90:switch(r){case"[h]":case"[hh]":a=24*e.D+e.H;break;case"[m]":case"[mm]":a=60*(24*e.D+e.H)+e.M;break;case"[s]":case"[ss]":a=60*(60*(24*e.D+e.H)+e.M)+Math.round(e.S+e.u);break;default:throw"bad abstime format: "+r}l=r.length===3?1:2;break;case 101:a=c,l=1}return l>0?na(a,l):""}function as(t){if(t.length<=3)return t;for(var r=t.length%3,e=t.substr(0,r);r!=t.length;r+=3)e+=(e.length>0?",":"")+t.substr(r,3);return e}var cp=/%/g;function lp(t,r){var e,n=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";if(r<0)return"-"+lp(t,-r);var a=t.indexOf(".");a===-1&&(a=t.indexOf("E"));var o=Math.floor(Math.log(r)*Math.LOG10E)%a;if(o<0&&(o+=a),(e=(r/Math.pow(10,o)).toPrecision(n+1+(a+o)%a)).indexOf("e")===-1){var s=Math.floor(Math.log(r)*Math.LOG10E);for(e.indexOf(".")===-1?e=e.charAt(0)+"."+e.substr(1)+"E+"+(s-e.length+o):e+="E+"+(s-o);e.substr(0,2)==="0.";)e=(e=e.charAt(0)+e.substr(2,a)+"."+e.substr(2+a)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");e=e.replace(/\+-/,"-")}e=e.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(i,c,l,u){return c+l+u.substr(0,(a+o)%a)+"."+u.substr(o)+"E"})}else e=r.toExponential(n);return t.match(/E\+00$/)&&e.match(/e[+-]\d$/)&&(e=e.substr(0,e.length-1)+"0"+e.charAt(e.length-1)),t.match(/E\-/)&&e.match(/e\+/)&&(e=e.replace(/e\+/,"e")),e.replace("e","E")}var up=/# (\?+)( ?)\/( ?)(\d+)/,fp=/^#*0*\.([0#]+)/,hp=/\).*[0#]/,dp=/\(###\) ###\\?-####/;function ni(t){for(var r,e="",n=0;n!=t.length;++n)switch(r=t.charCodeAt(n)){case 35:break;case 63:e+=" ";break;case 48:e+="0";break;default:e+=String.fromCharCode(r)}return e}function pp(t,r){var e=Math.pow(10,r);return""+Math.round(t*e)/e}function mp(t,r){var e=t-Math.floor(t),n=Math.pow(10,r);return r<(""+Math.round(e*n)).length?0:Math.round(e*n)}function Ni(t,r,e){if(t.charCodeAt(0)===40&&!r.match(hp)){var n=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?Ni("n",n,e):"("+Ni("n",n,-e)+")"}if(r.charCodeAt(r.length-1)===44)return function(p,m,v){for(var b=m.length-1;m.charCodeAt(b-1)===44;)--b;return Pa(p,m.substr(0,b),v/Math.pow(10,3*(m.length-b)))}(t,r,e);if(r.indexOf("%")!==-1)return function(p,m,v){var b=m.replace(cp,""),g=m.length-b.length;return Pa(p,b,v*Math.pow(10,2*g))+Zr("%",g)}(t,r,e);if(r.indexOf("E")!==-1)return lp(r,e);if(r.charCodeAt(0)===36)return"$"+Ni(t,r.substr(r.charAt(1)==" "?2:1),e);var a,o,s,i,c=Math.abs(e),l=e<0?"-":"";if(r.match(/^00+$/))return l+vo(c,r.length);if(r.match(/^[#?]+$/))return(a=vo(e,0))==="0"&&(a=""),a.length>r.length?a:ni(r.substr(0,r.length-a.length))+a;if(o=r.match(up))return function(p,m,v){var b=parseInt(p[4],10),g=Math.round(m*b),y=Math.floor(g/b),w=g-y*b,x=b;return v+(y===0?"":""+y)+" "+(w===0?Zr(" ",p[1].length+1+p[4].length):yf(w,p[1].length)+p[2]+"/"+p[3]+na(x,p[4].length))}(o,c,l);if(r.match(/^#+0+$/))return l+vo(c,r.length-r.indexOf("0"));if(o=r.match(fp))return a=pp(e,o[1].length).replace(/^([^\.]+)$/,"$1."+ni(o[1])).replace(/\.$/,"."+ni(o[1])).replace(/\.(\d*)$/,function(p,m){return"."+m+Zr("0",ni(o[1]).length-m.length)}),r.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),o=r.match(/^(0*)\.(#*)$/))return l+pp(c,o[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=r.match(/^#{1,3},##0(\.?)$/))return l+as(vo(c,0));if(o=r.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+Ni(t,r,-e):as(""+(Math.floor(e)+function(p,m){return m<(""+Math.round((p-Math.floor(p))*Math.pow(10,m))).length?1:0}(e,o[1].length)))+"."+na(mp(e,o[1].length),o[1].length);if(o=r.match(/^#,#*,#0/))return Ni(t,r.replace(/^#,#*,/,""),e);if(o=r.match(/^([0#]+)(\\?-([0#]+))+$/))return a=mo(Ni(t,r.replace(/[\\-]/g,""),e)),s=0,mo(mo(r.replace(/\\/g,"")).replace(/[0#]/g,function(p){return s<a.length?a.charAt(s++):p==="0"?"0":""}));if(r.match(dp))return"("+(a=Ni(t,"##########",e)).substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var u="";if(o=r.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(o[4].length,7),i=Sl(c,Math.pow(10,s)-1,!1),a=""+l,(u=Pa("n",o[1],i[1])).charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),a+=u+o[2]+"/"+o[3],(u=kl(i[2],s)).length<o[4].length&&(u=ni(o[4].substr(o[4].length-u.length))+u),a+=u;if(o=r.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(o[1].length,o[4].length),7),l+((i=Sl(c,Math.pow(10,s)-1,!0))[0]||(i[1]?"":"0"))+" "+(i[1]?yf(i[1],s)+o[2]+"/"+o[3]+kl(i[2],s):Zr(" ",2*s+1+o[2].length+o[3].length));if(o=r.match(/^[#0?]+$/))return a=vo(e,0),r.length<=a.length?a:ni(r.substr(0,r.length-a.length))+a;if(o=r.match(/^([#0?]+)\.([#0]+)$/)){a=""+e.toFixed(Math.min(o[2].length,10)).replace(/([^0])0+$/,"$1"),s=a.indexOf(".");var f=r.indexOf(".")-s,h=r.length-a.length-f;return ni(r.substr(0,f)+a+r.substr(r.length-h))}if(o=r.match(/^00,000\.([#0]*0)$/))return s=mp(e,o[1].length),e<0?"-"+Ni(t,r,-e):as(function(p){return p<2147483647&&p>-2147483648?""+(p>=0?0|p:p-1|0):""+Math.floor(p)}(e)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(p){return"00,"+(p.length<3?na(0,3-p.length):"")+p})+"."+na(s,o[1].length);switch(r){case"###,##0.00":return Ni(t,"#,##0.00",e);case"###,###":case"##,###":case"#,###":var d=as(vo(c,0));return d!=="0"?l+d:"";case"###,###.00":return Ni(t,"###,##0.00",e).replace(/^0\./,".");case"#,###.00":return Ni(t,"#,##0.00",e).replace(/^0\./,".")}throw new Error("unsupported format |"+r+"|")}function vp(t,r){var e,n=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";if(r<0)return"-"+vp(t,-r);var a=t.indexOf(".");a===-1&&(a=t.indexOf("E"));var o=Math.floor(Math.log(r)*Math.LOG10E)%a;if(o<0&&(o+=a),!(e=(r/Math.pow(10,o)).toPrecision(n+1+(a+o)%a)).match(/[Ee]/)){var s=Math.floor(Math.log(r)*Math.LOG10E);e.indexOf(".")===-1?e=e.charAt(0)+"."+e.substr(1)+"E+"+(s-e.length+o):e+="E+"+(s-o),e=e.replace(/\+-/,"-")}e=e.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(i,c,l,u){return c+l+u.substr(0,(a+o)%a)+"."+u.substr(o)+"E"})}else e=r.toExponential(n);return t.match(/E\+00$/)&&e.match(/e[+-]\d$/)&&(e=e.substr(0,e.length-1)+"0"+e.charAt(e.length-1)),t.match(/E\-/)&&e.match(/e\+/)&&(e=e.replace(/e\+/,"e")),e.replace("e","E")}function ma(t,r,e){if(t.charCodeAt(0)===40&&!r.match(hp)){var n=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?ma("n",n,e):"("+ma("n",n,-e)+")"}if(r.charCodeAt(r.length-1)===44)return function(p,m,v){for(var b=m.length-1;m.charCodeAt(b-1)===44;)--b;return Pa(p,m.substr(0,b),v/Math.pow(10,3*(m.length-b)))}(t,r,e);if(r.indexOf("%")!==-1)return function(p,m,v){var b=m.replace(cp,""),g=m.length-b.length;return Pa(p,b,v*Math.pow(10,2*g))+Zr("%",g)}(t,r,e);if(r.indexOf("E")!==-1)return vp(r,e);if(r.charCodeAt(0)===36)return"$"+ma(t,r.substr(r.charAt(1)==" "?2:1),e);var a,o,s,i,c=Math.abs(e),l=e<0?"-":"";if(r.match(/^00+$/))return l+na(c,r.length);if(r.match(/^[#?]+$/))return a=""+e,e===0&&(a=""),a.length>r.length?a:ni(r.substr(0,r.length-a.length))+a;if(o=r.match(up))return function(p,m,v){return v+(m===0?"":""+m)+Zr(" ",p[1].length+2+p[4].length)}(o,c,l);if(r.match(/^#+0+$/))return l+na(c,r.length-r.indexOf("0"));if(o=r.match(fp))return a=(a=(""+e).replace(/^([^\.]+)$/,"$1."+ni(o[1])).replace(/\.$/,"."+ni(o[1]))).replace(/\.(\d*)$/,function(p,m){return"."+m+Zr("0",ni(o[1]).length-m.length)}),r.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),o=r.match(/^(0*)\.(#*)$/))return l+(""+c).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=r.match(/^#{1,3},##0(\.?)$/))return l+as(""+c);if(o=r.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+ma(t,r,-e):as(""+e)+"."+Zr("0",o[1].length);if(o=r.match(/^#,#*,#0/))return ma(t,r.replace(/^#,#*,/,""),e);if(o=r.match(/^([0#]+)(\\?-([0#]+))+$/))return a=mo(ma(t,r.replace(/[\\-]/g,""),e)),s=0,mo(mo(r.replace(/\\/g,"")).replace(/[0#]/g,function(p){return s<a.length?a.charAt(s++):p==="0"?"0":""}));if(r.match(dp))return"("+(a=ma(t,"##########",e)).substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var u="";if(o=r.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(o[4].length,7),i=Sl(c,Math.pow(10,s)-1,!1),a=""+l,(u=Pa("n",o[1],i[1])).charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),a+=u+o[2]+"/"+o[3],(u=kl(i[2],s)).length<o[4].length&&(u=ni(o[4].substr(o[4].length-u.length))+u),a+=u;if(o=r.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(o[1].length,o[4].length),7),l+((i=Sl(c,Math.pow(10,s)-1,!0))[0]||(i[1]?"":"0"))+" "+(i[1]?yf(i[1],s)+o[2]+"/"+o[3]+kl(i[2],s):Zr(" ",2*s+1+o[2].length+o[3].length));if(o=r.match(/^[#0?]+$/))return a=""+e,r.length<=a.length?a:ni(r.substr(0,r.length-a.length))+a;if(o=r.match(/^([#0]+)\.([#0]+)$/)){a=""+e.toFixed(Math.min(o[2].length,10)).replace(/([^0])0+$/,"$1"),s=a.indexOf(".");var f=r.indexOf(".")-s,h=r.length-a.length-f;return ni(r.substr(0,f)+a+r.substr(r.length-h))}if(o=r.match(/^00,000\.([#0]*0)$/))return e<0?"-"+ma(t,r,-e):as(""+e).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(p){return"00,"+(p.length<3?na(0,3-p.length):"")+p})+"."+na(0,o[1].length);switch(r){case"###,###":case"##,###":case"#,###":var d=as(""+c);return d!=="0"?l+d:"";default:if(r.match(/\.[0#?]*$/))return ma(t,r.slice(0,r.lastIndexOf(".")),e)+ni(r.slice(r.lastIndexOf(".")))}throw new Error("unsupported format |"+r+"|")}function Pa(t,r,e){return(0|e)===e?ma(t,r,e):Ni(t,r,e)}var gp=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function go(t){for(var r=0,e="",n="";r<t.length;)switch(e=t.charAt(r)){case"G":xl(t,r)&&(r+=6),r++;break;case'"':for(;t.charCodeAt(++r)!==34&&r<t.length;);++r;break;case"\\":case"_":r+=2;break;case"@":++r;break;case"B":case"b":if(t.charAt(r+1)==="1"||t.charAt(r+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(t.substr(r,3).toUpperCase()==="A/P"||t.substr(r,5).toUpperCase()==="AM/PM"||t.substr(r,5).toUpperCase()==="上午/下午")return!0;++r;break;case"[":for(n=e;t.charAt(r++)!=="]"&&r<t.length;)n+=t.charAt(r);if(n.match(gp))return!0;break;case".":case"0":case"#":for(;r<t.length&&("0#?.,E+-%".indexOf(e=t.charAt(++r))>-1||e=="\\"&&t.charAt(r+1)=="-"&&"0#".indexOf(t.charAt(r+2))>-1););break;case"?":for(;t.charAt(++r)===e;);break;case"*":++r,t.charAt(r)!=" "&&t.charAt(r)!="*"||++r;break;case"(":case")":++r;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;r<t.length&&"0123456789".indexOf(t.charAt(++r))>-1;);break;default:++r}return!1}var bp=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function yp(t,r){if(r==null)return!1;var e=parseFloat(r[2]);switch(r[1]){case"=":if(t==e)return!0;break;case">":if(t>e)return!0;break;case"<":if(t<e)return!0;break;case"<>":if(t!=e)return!0;break;case">=":if(t>=e)return!0;break;case"<=":if(t<=e)return!0}return!1}function Ew(t,r){var e=function(c){for(var l=[],u=!1,f=0,h=0;f<c.length;++f)switch(c.charCodeAt(f)){case 34:u=!u;break;case 95:case 42:case 92:++f;break;case 59:l[l.length]=c.substr(h,f-h),h=f+1}if(l[l.length]=c.substr(h),u===!0)throw new Error("Format |"+c+"| unterminated string ");return l}(t),n=e.length,a=e[n-1].indexOf("@");if(n<4&&a>-1&&--n,e.length>4)throw new Error("cannot find right format for |"+e.join("|")+"|");if(typeof r!="number")return[4,e.length===4||a>-1?e[e.length-1]:"@"];switch(e.length){case 1:e=a>-1?["General","General","General",e[0]]:[e[0],e[0],e[0],"@"];break;case 2:e=a>-1?[e[0],e[0],e[0],e[1]]:[e[0],e[1],e[0],"@"];break;case 3:e=a>-1?[e[0],e[1],e[0],e[2]]:[e[0],e[1],e[2],"@"]}var o=r>0?e[0]:r<0?e[1]:e[2];if(e[0].indexOf("[")===-1&&e[1].indexOf("[")===-1)return[n,o];if(e[0].match(/\[[=<>]/)!=null||e[1].match(/\[[=<>]/)!=null){var s=e[0].match(bp),i=e[1].match(bp);return yp(r,s)?[n,e[0]]:yp(r,i)?[n,e[1]]:[n,e[s!=null&&i!=null?2:1]]}return[n,o]}function Pi(t,r,e){e==null&&(e={});var n="";switch(typeof t){case"string":n=t=="m/d/yy"&&e.dateNF?e.dateNF:t;break;case"number":(n=t==14&&e.dateNF?e.dateNF:(e.table!=null?e.table:Qe)[t])==null&&(n=e.table&&e.table[ap[t]]||Qe[ap[t]]),n==null&&(n=kw[t]||"General")}if(xl(n,0))return Os(r,e);r instanceof Date&&(r=op(r,e.date1904));var a=Ew(n,r);if(xl(a[1]))return Os(r,e);if(r===!0)r="TRUE";else if(r===!1)r="FALSE";else if(r===""||r==null)return"";return function(o,s,i,c){for(var l,u,f,h=[],d="",p=0,m="",v="t",b="H";p<o.length;)switch(m=o.charAt(p)){case"G":if(!xl(o,p))throw new Error("unrecognized character "+m+" in "+o);h[h.length]={t:"G",v:"General"},p+=7;break;case'"':for(d="";(f=o.charCodeAt(++p))!==34&&p<o.length;)d+=String.fromCharCode(f);h[h.length]={t:"t",v:d},++p;break;case"\\":var g=o.charAt(++p),y=g==="("||g===")"?g:"t";h[h.length]={t:y,v:g},++p;break;case"_":h[h.length]={t:"t",v:" "},p+=2;break;case"@":h[h.length]={t:"T",v:s},++p;break;case"B":case"b":if(o.charAt(p+1)==="1"||o.charAt(p+1)==="2"){if(l==null&&(l=Ms(s,i,o.charAt(p+1)==="2"))==null)return"";h[h.length]={t:"X",v:o.substr(p,2)},v=m,p+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":m=m.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(s<0||l==null&&(l=Ms(s,i))==null)return"";for(d=m;++p<o.length&&o.charAt(p).toLowerCase()===m;)d+=m;m==="m"&&v.toLowerCase()==="h"&&(m="M"),m==="h"&&(m=b),h[h.length]={t:m,v:d},v=m;break;case"A":case"a":case"上":var w={t:m,v:m};if(l==null&&(l=Ms(s,i)),o.substr(p,3).toUpperCase()==="A/P"?(l!=null&&(w.v=l.H>=12?"P":"A"),w.t="T",b="h",p+=3):o.substr(p,5).toUpperCase()==="AM/PM"?(l!=null&&(w.v=l.H>=12?"PM":"AM"),w.t="T",p+=5,b="h"):o.substr(p,5).toUpperCase()==="上午/下午"?(l!=null&&(w.v=l.H>=12?"下午":"上午"),w.t="T",p+=5,b="h"):(w.t="t",++p),l==null&&w.t==="T")return"";h[h.length]=w,v=m;break;case"[":for(d=m;o.charAt(p++)!=="]"&&p<o.length;)d+=o.charAt(p);if(d.slice(-1)!=="]")throw'unterminated "[" block: |'+d+"|";if(d.match(gp)){if(l==null&&(l=Ms(s,i))==null)return"";h[h.length]={t:"Z",v:d.toLowerCase()},v=d.charAt(1)}else d.indexOf("$")>-1&&(d=(d.match(/\$([^-\[\]]*)/)||[])[1]||"$",go(o)||(h[h.length]={t:"t",v:d}));break;case".":if(l!=null){for(d=m;++p<o.length&&(m=o.charAt(p))==="0";)d+=m;h[h.length]={t:"s",v:d};break}case"0":case"#":for(d=m;++p<o.length&&"0#?.,E+-%".indexOf(m=o.charAt(p))>-1;)d+=m;h[h.length]={t:"n",v:d};break;case"?":for(d=m;o.charAt(++p)===m;)d+=m;h[h.length]={t:m,v:d},v=m;break;case"*":++p,o.charAt(p)!=" "&&o.charAt(p)!="*"||++p;break;case"(":case")":h[h.length]={t:c===1?"t":m,v:m},++p;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(d=m;p<o.length&&"0123456789".indexOf(o.charAt(++p))>-1;)d+=o.charAt(p);h[h.length]={t:"D",v:d};break;case" ":h[h.length]={t:m,v:m},++p;break;case"$":h[h.length]={t:"t",v:"$"},++p;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(m)===-1)throw new Error("unrecognized character "+m+" in "+o);h[h.length]={t:"t",v:m},++p}var x,C=0,O=0;for(p=h.length-1,v="t";p>=0;--p)switch(h[p].t){case"h":case"H":h[p].t=b,v="h",C<1&&(C=1);break;case"s":(x=h[p].v.match(/\.0+$/))&&(O=Math.max(O,x[0].length-1)),C<3&&(C=3);case"d":case"y":case"M":case"e":v=h[p].t;break;case"m":v==="s"&&(h[p].t="M",C<2&&(C=2));break;case"X":break;case"Z":C<1&&h[p].v.match(/[Hh]/)&&(C=1),C<2&&h[p].v.match(/[Mm]/)&&(C=2),C<3&&h[p].v.match(/[Ss]/)&&(C=3)}switch(C){case 0:break;case 1:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M),l.M>=60&&(l.M=0,++l.H);break;case 2:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M)}var D,j="";for(p=0;p<h.length;++p)switch(h[p].t){case"t":case"T":case" ":case"D":break;case"X":h[p].v="",h[p].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":h[p].v=Tw(h[p].t.charCodeAt(0),h[p].v,l,O),h[p].t="t";break;case"n":case"?":for(D=p+1;h[D]!=null&&((m=h[D].t)==="?"||m==="D"||(m===" "||m==="t")&&h[D+1]!=null&&(h[D+1].t==="?"||h[D+1].t==="t"&&h[D+1].v==="/")||h[p].t==="("&&(m===" "||m==="n"||m===")")||m==="t"&&(h[D].v==="/"||h[D].v===" "&&h[D+1]!=null&&h[D+1].t=="?"));)h[p].v+=h[D].v,h[D]={v:"",t:";"},++D;j+=h[p].v,p=D-1;break;case"G":h[p].t="t",h[p].v=Os(s,i)}var U,L,V="";if(j.length>0){j.charCodeAt(0)==40?(U=s<0&&j.charCodeAt(0)===45?-s:s,L=Pa("n",j,U)):(L=Pa("n",j,U=s<0&&c>1?-s:s),U<0&&h[0]&&h[0].t=="t"&&(L=L.substr(1),h[0].v="-"+h[0].v)),D=L.length-1;var A=h.length;for(p=0;p<h.length;++p)if(h[p]!=null&&h[p].t!="t"&&h[p].v.indexOf(".")>-1){A=p;break}var N=h.length;if(A===h.length&&L.indexOf("E")===-1){for(p=h.length-1;p>=0;--p)h[p]!=null&&"n?".indexOf(h[p].t)!==-1&&(D>=h[p].v.length-1?(D-=h[p].v.length,h[p].v=L.substr(D+1,h[p].v.length)):D<0?h[p].v="":(h[p].v=L.substr(0,D+1),D=-1),h[p].t="t",N=p);D>=0&&N<h.length&&(h[N].v=L.substr(0,D+1)+h[N].v)}else if(A!==h.length&&L.indexOf("E")===-1){for(D=L.indexOf(".")-1,p=A;p>=0;--p)if(h[p]!=null&&"n?".indexOf(h[p].t)!==-1){for(u=h[p].v.indexOf(".")>-1&&p===A?h[p].v.indexOf(".")-1:h[p].v.length-1,V=h[p].v.substr(u+1);u>=0;--u)D>=0&&(h[p].v.charAt(u)==="0"||h[p].v.charAt(u)==="#")&&(V=L.charAt(D--)+V);h[p].v=V,h[p].t="t",N=p}for(D>=0&&N<h.length&&(h[N].v=L.substr(0,D+1)+h[N].v),D=L.indexOf(".")+1,p=A;p<h.length;++p)if(h[p]!=null&&("n?(".indexOf(h[p].t)!==-1||p===A)){for(u=h[p].v.indexOf(".")>-1&&p===A?h[p].v.indexOf(".")+1:0,V=h[p].v.substr(0,u);u<h[p].v.length;++u)D<L.length&&(V+=L.charAt(D++));h[p].v=V,h[p].t="t",N=p}}}for(p=0;p<h.length;++p)h[p]!=null&&"n?".indexOf(h[p].t)>-1&&(U=c>1&&s<0&&p>0&&h[p-1].v==="-"?-s:s,h[p].v=Pa(h[p].t,h[p].v,U),h[p].t="t");var k="";for(p=0;p!==h.length;++p)h[p]!=null&&(k+=h[p].v);return k}(a[1],r,e,a[0])}function Da(t,r){if(typeof r!="number"){r=+r||-1;for(var e=0;e<392;++e)if(Qe[e]!=null){if(Qe[e]==t){r=e;break}}else r<0&&(r=e);r<0&&(r=391)}return Qe[r]=t,r}function Tl(t){for(var r=0;r!=392;++r)t[r]!==void 0&&Da(t[r],r)}function bo(){var t;t||(t={}),t[0]="General",t[1]="0",t[2]="0.00",t[3]="#,##0",t[4]="#,##0.00",t[9]="0%",t[10]="0.00%",t[11]="0.00E+00",t[12]="# ?/?",t[13]="# ??/??",t[14]="m/d/yy",t[15]="d-mmm-yy",t[16]="d-mmm",t[17]="mmm-yy",t[18]="h:mm AM/PM",t[19]="h:mm:ss AM/PM",t[20]="h:mm",t[21]="h:mm:ss",t[22]="m/d/yy h:mm",t[37]="#,##0 ;(#,##0)",t[38]="#,##0 ;[Red](#,##0)",t[39]="#,##0.00;(#,##0.00)",t[40]="#,##0.00;[Red](#,##0.00)",t[45]="mm:ss",t[46]="[h]:mm:ss",t[47]="mmss.0",t[48]="##0.0E+0",t[49]="@",t[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',Qe=t}var Cw={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},wp=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,Aw=function(){var t={};t.version="1.2.0";var r=function(){for(var g=0,y=new Array(256),w=0;w!=256;++w)g=1&(g=1&(g=1&(g=1&(g=1&(g=1&(g=1&(g=1&(g=w)?-306674912^g>>>1:g>>>1)?-306674912^g>>>1:g>>>1)?-306674912^g>>>1:g>>>1)?-306674912^g>>>1:g>>>1)?-306674912^g>>>1:g>>>1)?-306674912^g>>>1:g>>>1)?-306674912^g>>>1:g>>>1)?-306674912^g>>>1:g>>>1,y[w]=g;return typeof Int32Array!="undefined"?new Int32Array(y):y}(),e=function(g){var y=0,w=0,x=0,C=typeof Int32Array!="undefined"?new Int32Array(4096):new Array(4096);for(x=0;x!=256;++x)C[x]=g[x];for(x=0;x!=256;++x)for(w=g[x],y=256+x;y<4096;y+=256)w=C[y]=w>>>8^g[255&w];var O=[];for(x=1;x!=16;++x)O[x-1]=typeof Int32Array!="undefined"?C.subarray(256*x,256*x+256):C.slice(256*x,256*x+256);return O}(r),n=e[0],a=e[1],o=e[2],s=e[3],i=e[4],c=e[5],l=e[6],u=e[7],f=e[8],h=e[9],d=e[10],p=e[11],m=e[12],v=e[13],b=e[14];return t.table=r,t.bstr=function(g,y){for(var w=-1^y,x=0,C=g.length;x<C;)w=w>>>8^r[255&(w^g.charCodeAt(x++))];return~w},t.buf=function(g,y){for(var w=-1^y,x=g.length-15,C=0;C<x;)w=b[g[C++]^255&w]^v[g[C++]^w>>8&255]^m[g[C++]^w>>16&255]^p[g[C++]^w>>>24]^d[g[C++]]^h[g[C++]]^f[g[C++]]^u[g[C++]]^l[g[C++]]^c[g[C++]]^i[g[C++]]^s[g[C++]]^o[g[C++]]^a[g[C++]]^n[g[C++]]^r[g[C++]];for(x+=15;C<x;)w=w>>>8^r[255&(w^g[C++])];return~w},t.str=function(g,y){for(var w=-1^y,x=0,C=g.length,O=0,D=0;x<C;)(O=g.charCodeAt(x++))<128?w=w>>>8^r[255&(w^O)]:O<2048?w=(w=w>>>8^r[255&(w^(192|O>>6&31))])>>>8^r[255&(w^(128|63&O))]:O>=55296&&O<57344?(O=64+(1023&O),D=1023&g.charCodeAt(x++),w=(w=(w=(w=w>>>8^r[255&(w^(240|O>>8&7))])>>>8^r[255&(w^(128|O>>2&63))])>>>8^r[255&(w^(128|D>>6&15|(3&O)<<4))])>>>8^r[255&(w^(128|63&D))]):w=(w=(w=w>>>8^r[255&(w^(224|O>>12&15))])>>>8^r[255&(w^(128|O>>6&63))])>>>8^r[255&(w^(128|63&O))];return~w},t}(),Ve=function(){var t,r={};function e(rt){if(rt.charAt(rt.length-1)=="/")return rt.slice(0,-1).indexOf("/")===-1?rt:e(rt.slice(0,-1));var nt=rt.lastIndexOf("/");return nt===-1?rt:rt.slice(0,nt+1)}function n(rt){if(rt.charAt(rt.length-1)=="/")return n(rt.slice(0,-1));var nt=rt.lastIndexOf("/");return nt===-1?rt:rt.slice(nt+1)}function a(rt,nt){typeof nt=="string"&&(nt=new Date(nt));var ht=nt.getHours();ht=(ht=ht<<6|nt.getMinutes())<<5|nt.getSeconds()>>>1,rt.write_shift(2,ht);var St=nt.getFullYear()-1980;St=(St=St<<4|nt.getMonth()+1)<<5|nt.getDate(),rt.write_shift(2,St)}function o(rt){Dn(rt,0);for(var nt={},ht=0;rt.l<=rt.length-4;){var St=rt.read_shift(2),ut=rt.read_shift(2),vt=rt.l+ut,ft={};St===21589&&(1&(ht=rt.read_shift(1))&&(ft.mtime=rt.read_shift(4)),ut>5&&(2&ht&&(ft.atime=rt.read_shift(4)),4&ht&&(ft.ctime=rt.read_shift(4))),ft.mtime&&(ft.mt=new Date(1e3*ft.mtime))),rt.l=vt,nt[St]=ft}return nt}function s(){return t||(t={})}function i(rt,nt){if(rt[0]==80&&rt[1]==75)return Nt(rt,nt);if((32|rt[0])==109&&(32|rt[1])==105)return function(ie,xe){if(C(ie.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var ye=xe&&xe.root||"",Zt=(mr&&Buffer.isBuffer(ie)?ie.toString("binary"):C(ie)).split(`\r
|
||
`),Te=0,Se="";for(Te=0;Te<Zt.length;++Te)if(Se=Zt[Te],/^Content-Location:/i.test(Se)&&(Se=Se.slice(Se.indexOf("file")),ye||(ye=Se.slice(0,Se.lastIndexOf("/")+1)),Se.slice(0,ye.length)!=ye))for(;ye.length>0&&(ye=(ye=ye.slice(0,ye.length-1)).slice(0,ye.lastIndexOf("/")+1),Se.slice(0,ye.length)!=ye););var Ae=(Zt[1]||"").match(/boundary="(.*?)"/);if(!Ae)throw new Error("MAD cannot find boundary");var Pe="--"+(Ae[1]||""),He=[],fe=[],Be={FileIndex:He,FullPaths:fe};h(Be);var ze,qe=0;for(Te=0;Te<Zt.length;++Te){var or=Zt[Te];or!==Pe&&or!==Pe+"--"||(qe++&&pt(Be,Zt.slice(ze,Te),ye),ze=Te)}return Be}(rt,nt);if(rt.length<512)throw new Error("CFB file size "+rt.length+" < 512");var ht,St,ut,vt,ft,yt,Ct=512,zt=[],Bt=rt.slice(0,512);Dn(Bt,0);var re=function(ie){if(ie[ie.l]==80&&ie[ie.l+1]==75)return[0,0];ie.chk(g,"Header Signature: "),ie.l+=16;var xe=ie.read_shift(2,"u");return[ie.read_shift(2,"u"),xe]}(Bt);switch(ht=re[0]){case 3:Ct=512;break;case 4:Ct=4096;break;case 0:if(re[1]==0)return Nt(rt,nt);default:throw new Error("Major Version: Expected 3 or 4 saw "+ht)}Ct!==512&&Dn(Bt=rt.slice(0,Ct),28);var Yt=rt.slice(0,Ct);(function(ie,xe){var ye=9;switch(ie.l+=2,ye=ie.read_shift(2)){case 9:if(xe!=3)throw new Error("Sector Shift: Expected 9 saw "+ye);break;case 12:if(xe!=4)throw new Error("Sector Shift: Expected 12 saw "+ye);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+ye)}ie.chk("0600","Mini Sector Shift: "),ie.chk("000000000000","Reserved: ")})(Bt,ht);var qt=Bt.read_shift(4,"i");if(ht===3&&qt!==0)throw new Error("# Directory Sectors: Expected 0 saw "+qt);Bt.l+=4,vt=Bt.read_shift(4,"i"),Bt.l+=4,Bt.chk("00100000","Mini Stream Cutoff Size: "),ft=Bt.read_shift(4,"i"),St=Bt.read_shift(4,"i"),yt=Bt.read_shift(4,"i"),ut=Bt.read_shift(4,"i");for(var te=-1,le=0;le<109&&!((te=Bt.read_shift(4,"i"))<0);++le)zt[le]=te;var ne=function(ie,xe){for(var ye=Math.ceil(ie.length/xe)-1,Zt=[],Te=1;Te<ye;++Te)Zt[Te-1]=ie.slice(Te*xe,(Te+1)*xe);return Zt[ye-1]=ie.slice(ye*xe),Zt}(rt,Ct);l(yt,ut,ne,Ct,zt);var de=function(ie,xe,ye,Zt){var Te=ie.length,Se=[],Ae=[],Pe=[],He=[],fe=Zt-1,Be=0,ze=0,qe=0,or=0;for(Be=0;Be<Te;++Be)if(Pe=[],(qe=Be+xe)>=Te&&(qe-=Te),!Ae[qe]){He=[];var wt=[];for(ze=qe;ze>=0;){wt[ze]=!0,Ae[ze]=!0,Pe[Pe.length]=ze,He.push(ie[ze]);var Ft=ye[Math.floor(4*ze/Zt)];if(Zt<4+(or=4*ze&fe))throw new Error("FAT boundary crossed: "+ze+" 4 "+Zt);if(!ie[Ft]||wt[ze=Ps(ie[Ft],or)])break}Se[qe]={nodes:Pe,data:Up([He])}}return Se}(ne,vt,zt,Ct);de[vt].name="!Directory",St>0&&ft!==b&&(de[ft].name="!MiniFAT"),de[zt[0]].name="!FAT",de.fat_addrs=zt,de.ssz=Ct;var Xt=[],pe=[],Re=[];(function(ie,xe,ye,Zt,Te,Se,Ae,Pe){for(var He,fe=0,Be=Zt.length?2:0,ze=xe[ie].data,qe=0,or=0;qe<ze.length;qe+=128){var wt=ze.slice(qe,qe+128);Dn(wt,64),or=wt.read_shift(2),He=Mf(wt,0,or-Be),Zt.push(He);var Ft={name:He,type:wt.read_shift(1),color:wt.read_shift(1),L:wt.read_shift(4,"i"),R:wt.read_shift(4,"i"),C:wt.read_shift(4,"i"),clsid:wt.read_shift(16),state:wt.read_shift(4,"i"),start:0,size:0};wt.read_shift(2)+wt.read_shift(2)+wt.read_shift(2)+wt.read_shift(2)!==0&&(Ft.ct=f(wt,wt.l-8)),wt.read_shift(2)+wt.read_shift(2)+wt.read_shift(2)+wt.read_shift(2)!==0&&(Ft.mt=f(wt,wt.l-8)),Ft.start=wt.read_shift(4,"i"),Ft.size=wt.read_shift(4,"i"),Ft.size<0&&Ft.start<0&&(Ft.size=Ft.type=0,Ft.start=b,Ft.name=""),Ft.type===5?(fe=Ft.start,Te>0&&fe!==b&&(xe[fe].name="!StreamData")):Ft.size>=4096?(Ft.storage="fat",xe[Ft.start]===void 0&&(xe[Ft.start]=u(ye,Ft.start,xe.fat_addrs,xe.ssz)),xe[Ft.start].name=Ft.name,Ft.content=xe[Ft.start].data.slice(0,Ft.size)):(Ft.storage="minifat",Ft.size<0?Ft.size=0:fe!==b&&Ft.start!==b&&xe[fe]&&(Ft.content=c(Ft,xe[fe].data,(xe[Pe]||{}).data))),Ft.content&&Dn(Ft.content,0),Se[He]=Ft,Ae.push(Ft)}})(vt,de,ne,Xt,St,{},pe,ft),function(ie,xe,ye){for(var Zt=0,Te=0,Se=0,Ae=0,Pe=0,He=ye.length,fe=[],Be=[];Zt<He;++Zt)fe[Zt]=Be[Zt]=Zt,xe[Zt]=ye[Zt];for(;Pe<Be.length;++Pe)Te=ie[Zt=Be[Pe]].L,Se=ie[Zt].R,Ae=ie[Zt].C,fe[Zt]===Zt&&(Te!==-1&&fe[Te]!==Te&&(fe[Zt]=fe[Te]),Se!==-1&&fe[Se]!==Se&&(fe[Zt]=fe[Se])),Ae!==-1&&(fe[Ae]=Zt),Te!==-1&&Zt!=fe[Zt]&&(fe[Te]=fe[Zt],Be.lastIndexOf(Te)<Pe&&Be.push(Te)),Se!==-1&&Zt!=fe[Zt]&&(fe[Se]=fe[Zt],Be.lastIndexOf(Se)<Pe&&Be.push(Se));for(Zt=1;Zt<He;++Zt)fe[Zt]===Zt&&(Se!==-1&&fe[Se]!==Se?fe[Zt]=fe[Se]:Te!==-1&&fe[Te]!==Te&&(fe[Zt]=fe[Te]));for(Zt=1;Zt<He;++Zt)if(ie[Zt].type!==0){if((Pe=Zt)!=fe[Pe])do Pe=fe[Pe],xe[Zt]=xe[Pe]+"/"+xe[Zt];while(Pe!==0&&fe[Pe]!==-1&&Pe!=fe[Pe]);fe[Zt]=-1}for(xe[0]+="/",Zt=1;Zt<He;++Zt)ie[Zt].type!==2&&(xe[Zt]+="/")}(pe,Re,Xt),Xt.shift();var je={FileIndex:pe,FullPaths:Re};return nt&&nt.raw&&(je.raw={header:Yt,sectors:ne}),je}function c(rt,nt,ht){for(var St=rt.start,ut=rt.size,vt=[],ft=St;ht&&ut>0&&ft>=0;)vt.push(nt.slice(ft*v,ft*v+v)),ut-=v,ft=Ps(ht,4*ft);return vt.length===0?Kt(0):En(vt).slice(0,rt.size)}function l(rt,nt,ht,St,ut){var vt=b;if(rt===b){if(nt!==0)throw new Error("DIFAT chain shorter than expected")}else if(rt!==-1){var ft=ht[rt],yt=(St>>>2)-1;if(!ft)return;for(var Ct=0;Ct<yt&&(vt=Ps(ft,4*Ct))!==b;++Ct)ut.push(vt);l(Ps(ft,St-4),nt-1,ht,St,ut)}}function u(rt,nt,ht,St,ut){var vt=[],ft=[];ut||(ut=[]);var yt=St-1,Ct=0,zt=0;for(Ct=nt;Ct>=0;){ut[Ct]=!0,vt[vt.length]=Ct,ft.push(rt[Ct]);var Bt=ht[Math.floor(4*Ct/St)];if(St<4+(zt=4*Ct&yt))throw new Error("FAT boundary crossed: "+Ct+" 4 "+St);if(!rt[Bt])break;Ct=Ps(rt[Bt],zt)}return{nodes:vt,data:Up([ft])}}function f(rt,nt){return new Date(1e3*(Ai(rt,nt+4)/1e7*Math.pow(2,32)+Ai(rt,nt)/1e7-11644473600))}function h(rt,nt){var ht=nt||{},St=ht.root||"Root Entry";if(rt.FullPaths||(rt.FullPaths=[]),rt.FileIndex||(rt.FileIndex=[]),rt.FullPaths.length!==rt.FileIndex.length)throw new Error("inconsistent CFB structure");rt.FullPaths.length===0&&(rt.FullPaths[0]=St+"/",rt.FileIndex[0]={name:St,type:5}),ht.CLSID&&(rt.FileIndex[0].clsid=ht.CLSID),function(ut){var vt="Sh33tJ5";if(!Ve.find(ut,"/"+vt)){var ft=Kt(4);ft[0]=55,ft[1]=ft[3]=50,ft[2]=54,ut.FileIndex.push({name:vt,type:2,content:ft,size:4,L:69,R:69,C:69}),ut.FullPaths.push(ut.FullPaths[0]+vt),d(ut)}}(rt)}function d(rt,nt){h(rt);for(var ht=!1,St=!1,ut=rt.FullPaths.length-1;ut>=0;--ut){var vt=rt.FileIndex[ut];switch(vt.type){case 0:St?ht=!0:(rt.FileIndex.pop(),rt.FullPaths.pop());break;case 1:case 2:case 5:St=!0,isNaN(vt.R*vt.L*vt.C)&&(ht=!0),vt.R>-1&&vt.L>-1&&vt.R==vt.L&&(ht=!0);break;default:ht=!0}}if(ht||nt){var ft=new Date(1987,1,19),yt=0,Ct=Object.create?Object.create(null):{},zt=[];for(ut=0;ut<rt.FullPaths.length;++ut)Ct[rt.FullPaths[ut]]=!0,rt.FileIndex[ut].type!==0&&zt.push([rt.FullPaths[ut],rt.FileIndex[ut]]);for(ut=0;ut<zt.length;++ut){var Bt=e(zt[ut][0]);(St=Ct[Bt])||(zt.push([Bt,{name:n(Bt).replace("/",""),type:1,clsid:w,ct:ft,mt:ft,content:null}]),Ct[Bt]=!0)}for(zt.sort(function(qt,te){return function(le,ne){for(var de=le.split("/"),Xt=ne.split("/"),pe=0,Re=0,je=Math.min(de.length,Xt.length);pe<je;++pe){if(Re=de[pe].length-Xt[pe].length)return Re;if(de[pe]!=Xt[pe])return de[pe]<Xt[pe]?-1:1}return de.length-Xt.length}(qt[0],te[0])}),rt.FullPaths=[],rt.FileIndex=[],ut=0;ut<zt.length;++ut)rt.FullPaths[ut]=zt[ut][0],rt.FileIndex[ut]=zt[ut][1];for(ut=0;ut<zt.length;++ut){var re=rt.FileIndex[ut],Yt=rt.FullPaths[ut];if(re.name=n(Yt).replace("/",""),re.L=re.R=re.C=-(re.color=1),re.size=re.content?re.content.length:0,re.start=0,re.clsid=re.clsid||w,ut===0)re.C=zt.length>1?1:-1,re.size=0,re.type=5;else if(Yt.slice(-1)=="/"){for(yt=ut+1;yt<zt.length&&e(rt.FullPaths[yt])!=Yt;++yt);for(re.C=yt>=zt.length?-1:yt,yt=ut+1;yt<zt.length&&e(rt.FullPaths[yt])!=e(Yt);++yt);re.R=yt>=zt.length?-1:yt,re.type=1}else e(rt.FullPaths[ut+1]||"")==e(Yt)&&(re.R=ut+1),re.type=2}}}function p(rt,nt){var ht=nt||{};if(ht.fileType=="mad")return function(qt,te){for(var le=te||{},ne=le.boundary||"SheetJS",de=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(ne="------="+ne).slice(2)+'"',"","",""],Xt=qt.FullPaths[0],pe=Xt,Re=qt.FileIndex[0],je=1;je<qt.FullPaths.length;++je)if(pe=qt.FullPaths[je].slice(Xt.length),(Re=qt.FileIndex[je]).size&&Re.content&&pe!="Sh33tJ5"){pe=pe.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(Pe){return"_x"+Pe.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(Pe){return"_u"+Pe.charCodeAt(0).toString(16)+"_"});for(var ie=Re.content,xe=mr&&Buffer.isBuffer(ie)?ie.toString("binary"):C(ie),ye=0,Zt=Math.min(1024,xe.length),Te=0,Se=0;Se<=Zt;++Se)(Te=xe.charCodeAt(Se))>=32&&Te<128&&++ye;var Ae=ye>=4*Zt/5;de.push(ne),de.push("Content-Location: "+(le.root||"file:///C:/SheetJS/")+pe),de.push("Content-Transfer-Encoding: "+(Ae?"quoted-printable":"base64")),de.push("Content-Type: "+Pt(Re,pe)),de.push(""),de.push(Ae?ct(xe):lt(xe))}return de.push(ne+`--\r
|
||
`),de.join(`\r
|
||
`)}(rt,ht);if(d(rt),ht.fileType==="zip")return function(qt,te){var le=te||{},ne=[],de=[],Xt=Kt(1),pe=le.compression?8:0,Re=0,je=0,ie=0,xe=0,ye=0,Zt=qt.FullPaths[0],Te=Zt,Se=qt.FileIndex[0],Ae=[],Pe=0;for(je=1;je<qt.FullPaths.length;++je)if(Te=qt.FullPaths[je].slice(Zt.length),(Se=qt.FileIndex[je]).size&&Se.content&&Te!="Sh33tJ5"){var He=xe,fe=Kt(Te.length);for(ie=0;ie<Te.length;++ie)fe.write_shift(1,127&Te.charCodeAt(ie));fe=fe.slice(0,fe.l),Ae[ye]=Aw.buf(Se.content,0);var Be=Se.content;pe==8&&(Be=O(Be)),(Xt=Kt(30)).write_shift(4,67324752),Xt.write_shift(2,20),Xt.write_shift(2,Re),Xt.write_shift(2,pe),Se.mt?a(Xt,Se.mt):Xt.write_shift(4,0),Xt.write_shift(-4,Ae[ye]),Xt.write_shift(4,Be.length),Xt.write_shift(4,Se.content.length),Xt.write_shift(2,fe.length),Xt.write_shift(2,0),xe+=Xt.length,ne.push(Xt),xe+=fe.length,ne.push(fe),xe+=Be.length,ne.push(Be),(Xt=Kt(46)).write_shift(4,33639248),Xt.write_shift(2,0),Xt.write_shift(2,20),Xt.write_shift(2,Re),Xt.write_shift(2,pe),Xt.write_shift(4,0),Xt.write_shift(-4,Ae[ye]),Xt.write_shift(4,Be.length),Xt.write_shift(4,Se.content.length),Xt.write_shift(2,fe.length),Xt.write_shift(2,0),Xt.write_shift(2,0),Xt.write_shift(2,0),Xt.write_shift(2,0),Xt.write_shift(4,0),Xt.write_shift(4,He),Pe+=Xt.l,de.push(Xt),Pe+=fe.length,de.push(fe),++ye}return Xt=Kt(22),Xt.write_shift(4,101010256),Xt.write_shift(2,0),Xt.write_shift(2,0),Xt.write_shift(2,ye),Xt.write_shift(2,ye),Xt.write_shift(4,Pe),Xt.write_shift(4,xe),Xt.write_shift(2,0),En([En(ne),En(de),Xt])}(rt,ht);var St=function(qt){for(var te=0,le=0,ne=0;ne<qt.FileIndex.length;++ne){var de=qt.FileIndex[ne];if(de.content){var Xt=de.content.length;Xt>0&&(Xt<4096?te+=Xt+63>>6:le+=Xt+511>>9)}}for(var pe=qt.FullPaths.length+3>>2,Re=te+127>>7,je=(te+7>>3)+le+pe+Re,ie=je+127>>7,xe=ie<=109?0:Math.ceil((ie-109)/127);je+ie+xe+127>>7>ie;)xe=++ie<=109?0:Math.ceil((ie-109)/127);var ye=[1,xe,ie,Re,pe,le,te,0];return qt.FileIndex[0].size=te<<6,ye[7]=(qt.FileIndex[0].start=ye[0]+ye[1]+ye[2]+ye[3]+ye[4]+ye[5])+(ye[6]+7>>3),ye}(rt),ut=Kt(St[7]<<9),vt=0,ft=0;for(vt=0;vt<8;++vt)ut.write_shift(1,y[vt]);for(vt=0;vt<8;++vt)ut.write_shift(2,0);for(ut.write_shift(2,62),ut.write_shift(2,3),ut.write_shift(2,65534),ut.write_shift(2,9),ut.write_shift(2,6),vt=0;vt<3;++vt)ut.write_shift(2,0);for(ut.write_shift(4,0),ut.write_shift(4,St[2]),ut.write_shift(4,St[0]+St[1]+St[2]+St[3]-1),ut.write_shift(4,0),ut.write_shift(4,4096),ut.write_shift(4,St[3]?St[0]+St[1]+St[2]-1:b),ut.write_shift(4,St[3]),ut.write_shift(-4,St[1]?St[0]-1:b),ut.write_shift(4,St[1]),vt=0;vt<109;++vt)ut.write_shift(-4,vt<St[2]?St[1]+vt:-1);if(St[1])for(ft=0;ft<St[1];++ft){for(;vt<236+127*ft;++vt)ut.write_shift(-4,vt<St[2]?St[1]+vt:-1);ut.write_shift(-4,ft===St[1]-1?b:ft+1)}var yt=function(qt){for(ft+=qt;vt<ft-1;++vt)ut.write_shift(-4,vt+1);qt&&(++vt,ut.write_shift(-4,b))};for(ft=vt=0,ft+=St[1];vt<ft;++vt)ut.write_shift(-4,x.DIFSECT);for(ft+=St[2];vt<ft;++vt)ut.write_shift(-4,x.FATSECT);yt(St[3]),yt(St[4]);for(var Ct=0,zt=0,Bt=rt.FileIndex[0];Ct<rt.FileIndex.length;++Ct)(Bt=rt.FileIndex[Ct]).content&&((zt=Bt.content.length)<4096||(Bt.start=ft,yt(zt+511>>9)));for(yt(St[6]+7>>3);511&ut.l;)ut.write_shift(-4,x.ENDOFCHAIN);for(ft=vt=0,Ct=0;Ct<rt.FileIndex.length;++Ct)(Bt=rt.FileIndex[Ct]).content&&(!(zt=Bt.content.length)||zt>=4096||(Bt.start=ft,yt(zt+63>>6)));for(;511&ut.l;)ut.write_shift(-4,x.ENDOFCHAIN);for(vt=0;vt<St[4]<<2;++vt){var re=rt.FullPaths[vt];if(re&&re.length!==0){Bt=rt.FileIndex[vt],vt===0&&(Bt.start=Bt.size?Bt.start-1:b);var Yt=vt===0&&ht.root||Bt.name;if(zt=2*(Yt.length+1),ut.write_shift(64,Yt,"utf16le"),ut.write_shift(2,zt),ut.write_shift(1,Bt.type),ut.write_shift(1,Bt.color),ut.write_shift(-4,Bt.L),ut.write_shift(-4,Bt.R),ut.write_shift(-4,Bt.C),Bt.clsid)ut.write_shift(16,Bt.clsid,"hex");else for(Ct=0;Ct<4;++Ct)ut.write_shift(4,0);ut.write_shift(4,Bt.state||0),ut.write_shift(4,0),ut.write_shift(4,0),ut.write_shift(4,0),ut.write_shift(4,0),ut.write_shift(4,Bt.start),ut.write_shift(4,Bt.size),ut.write_shift(4,0)}else{for(Ct=0;Ct<17;++Ct)ut.write_shift(4,0);for(Ct=0;Ct<3;++Ct)ut.write_shift(4,-1);for(Ct=0;Ct<12;++Ct)ut.write_shift(4,0)}}for(vt=1;vt<rt.FileIndex.length;++vt)if((Bt=rt.FileIndex[vt]).size>=4096)if(ut.l=Bt.start+1<<9,mr&&Buffer.isBuffer(Bt.content))Bt.content.copy(ut,ut.l,0,Bt.size),ut.l+=Bt.size+511&-512;else{for(Ct=0;Ct<Bt.size;++Ct)ut.write_shift(1,Bt.content[Ct]);for(;511&Ct;++Ct)ut.write_shift(1,0)}for(vt=1;vt<rt.FileIndex.length;++vt)if((Bt=rt.FileIndex[vt]).size>0&&Bt.size<4096)if(mr&&Buffer.isBuffer(Bt.content))Bt.content.copy(ut,ut.l,0,Bt.size),ut.l+=Bt.size+63&-64;else{for(Ct=0;Ct<Bt.size;++Ct)ut.write_shift(1,Bt.content[Ct]);for(;63&Ct;++Ct)ut.write_shift(1,0)}if(mr)ut.l=ut.length;else for(;ut.l<ut.length;)ut.write_shift(1,0);return ut}r.version="1.2.1";var m,v=64,b=-2,g="d0cf11e0a1b11ae1",y=[208,207,17,224,161,177,26,225],w="00000000000000000000000000000000",x={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:b,FREESECT:-1,HEADER_SIGNATURE:g,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:w,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function C(rt){for(var nt=new Array(rt.length),ht=0;ht<rt.length;++ht)nt[ht]=String.fromCharCode(rt[ht]);return nt.join("")}function O(rt){return m?m.deflateRawSync(rt):et(rt)}for(var D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=[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],U=[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],L,V,A=typeof Uint8Array!="undefined",N=A?new Uint8Array(256):[],k=0;k<256;++k)N[k]=(V=void 0,255&((V=139536&((L=k)<<1|L<<11)|558144&(L<<5|L<<15))>>16|V>>8|V));function S(rt,nt){var ht=N[255&rt];return nt<=8?ht>>>8-nt:(ht=ht<<8|N[rt>>8&255],nt<=16?ht>>>16-nt:(ht=ht<<8|N[rt>>16&255])>>>24-nt)}function E(rt,nt){var ht=7&nt,St=nt>>>3;return(rt[St]|(ht<=6?0:rt[St+1]<<8))>>>ht&3}function T(rt,nt){var ht=7&nt,St=nt>>>3;return(rt[St]|(ht<=5?0:rt[St+1]<<8))>>>ht&7}function R(rt,nt){var ht=7&nt,St=nt>>>3;return(rt[St]|(ht<=3?0:rt[St+1]<<8))>>>ht&31}function F(rt,nt){var ht=7&nt,St=nt>>>3;return(rt[St]|(ht<=1?0:rt[St+1]<<8))>>>ht&127}function I(rt,nt,ht){var St=7&nt,ut=nt>>>3,vt=(1<<ht)-1,ft=rt[ut]>>>St;return ht<8-St?ft&vt:(ft|=rt[ut+1]<<8-St,ht<16-St?ft&vt:(ft|=rt[ut+2]<<16-St,ht<24-St?ft&vt:(ft|=rt[ut+3]<<24-St)&vt))}function B(rt,nt,ht){var St=7&nt,ut=nt>>>3;return St<=5?rt[ut]|=(7&ht)<<St:(rt[ut]|=ht<<St&255,rt[ut+1]=(7&ht)>>8-St),nt+3}function P(rt,nt,ht){return ht=(1&ht)<<(7&nt),rt[nt>>>3]|=ht,nt+1}function H(rt,nt,ht){var St=nt>>>3;return ht<<=7&nt,rt[St]|=255&ht,ht>>>=8,rt[St+1]=ht,nt+8}function Z(rt,nt,ht){var St=nt>>>3;return ht<<=7&nt,rt[St]|=255&ht,ht>>>=8,rt[St+1]=255&ht,rt[St+2]=ht>>>8,nt+16}function Y(rt,nt){var ht=rt.length,St=2*ht>nt?2*ht:nt+5,ut=0;if(ht>=nt)return rt;if(mr){var vt=rp(St);if(rt.copy)rt.copy(vt);else for(;ut<rt.length;++ut)vt[ut]=rt[ut];return vt}if(A){var ft=new Uint8Array(St);if(ft.set)ft.set(rt);else for(;ut<ht;++ut)ft[ut]=rt[ut];return ft}return rt.length=St,rt}function dt(rt){for(var nt=new Array(rt),ht=0;ht<rt;++ht)nt[ht]=0;return nt}function gt(rt,nt,ht){var St=1,ut=0,vt=0,ft=0,yt=0,Ct=rt.length,zt=A?new Uint16Array(32):dt(32);for(vt=0;vt<32;++vt)zt[vt]=0;for(vt=Ct;vt<ht;++vt)rt[vt]=0;Ct=rt.length;var Bt=A?new Uint16Array(Ct):dt(Ct);for(vt=0;vt<Ct;++vt)zt[ut=rt[vt]]++,St<ut&&(St=ut),Bt[vt]=0;for(zt[0]=0,vt=1;vt<=St;++vt)zt[vt+16]=yt=yt+zt[vt-1]<<1;for(vt=0;vt<Ct;++vt)(yt=rt[vt])!=0&&(Bt[vt]=zt[yt+16]++);var re=0;for(vt=0;vt<Ct;++vt)if((re=rt[vt])!=0)for(yt=S(Bt[vt],St)>>St-re,ft=(1<<St+4-re)-1;ft>=0;--ft)nt[yt|ft<<re]=15&re|vt<<4;return St}var bt=A?new Uint16Array(512):dt(512),Q=A?new Uint16Array(32):dt(32);if(!A){for(var q=0;q<512;++q)bt[q]=0;for(q=0;q<32;++q)Q[q]=0}(function(){for(var rt=[],nt=0;nt<32;nt++)rt.push(5);gt(rt,Q,32);var ht=[];for(nt=0;nt<=143;nt++)ht.push(8);for(;nt<=255;nt++)ht.push(9);for(;nt<=279;nt++)ht.push(7);for(;nt<=287;nt++)ht.push(8);gt(ht,bt,288)})();var tt=function(){for(var rt=A?new Uint8Array(32768):[],nt=0,ht=0;nt<U.length-1;++nt)for(;ht<U[nt+1];++ht)rt[ht]=nt;for(;ht<32768;++ht)rt[ht]=29;var St=A?new Uint8Array(259):[];for(nt=0,ht=0;nt<j.length-1;++nt)for(;ht<j[nt+1];++ht)St[ht]=nt;return function(ut,vt){return ut.length<8?function(ft,yt){for(var Ct=0;Ct<ft.length;){var zt=Math.min(65535,ft.length-Ct),Bt=Ct+zt==ft.length;for(yt.write_shift(1,+Bt),yt.write_shift(2,zt),yt.write_shift(2,65535&~zt);zt-- >0;)yt[yt.l++]=ft[Ct++]}return yt.l}(ut,vt):function(ft,yt){for(var Ct=0,zt=0,Bt=A?new Uint16Array(32768):[];zt<ft.length;){var re=Math.min(65535,ft.length-zt);if(re<10){for(7&(Ct=B(yt,Ct,+(zt+re==ft.length)))&&(Ct+=8-(7&Ct)),yt.l=Ct/8|0,yt.write_shift(2,re),yt.write_shift(2,65535&~re);re-- >0;)yt[yt.l++]=ft[zt++];Ct=8*yt.l}else{Ct=B(yt,Ct,+(zt+re==ft.length)+2);for(var Yt=0;re-- >0;){var qt=ft[zt],te=-1,le=0;if((te=Bt[Yt=32767&(Yt<<5^qt)])&&((te|=-32768&zt)>zt&&(te-=32768),te<zt))for(;ft[te+le]==ft[zt+le]&&le<250;)++le;if(le>2){(qt=St[le])<=22?Ct=H(yt,Ct,N[qt+1]>>1)-1:(H(yt,Ct,3),H(yt,Ct+=5,N[qt-23]>>5),Ct+=3);var ne=qt<8?0:qt-4>>2;ne>0&&(Z(yt,Ct,le-j[qt]),Ct+=ne),qt=rt[zt-te],Ct=H(yt,Ct,N[qt]>>3),Ct-=3;var de=qt<4?0:qt-2>>1;de>0&&(Z(yt,Ct,zt-te-U[qt]),Ct+=de);for(var Xt=0;Xt<le;++Xt)Bt[Yt]=32767&zt,Yt=32767&(Yt<<5^ft[zt]),++zt;re-=le-1}else qt<=143?qt+=48:Ct=P(yt,Ct,1),Ct=H(yt,Ct,N[qt]),Bt[Yt]=32767&zt,++zt}Ct=H(yt,Ct,0)-1}}return yt.l=(Ct+7)/8|0,yt.l}(ut,vt)}}();function et(rt){var nt=Kt(50+Math.floor(1.1*rt.length)),ht=tt(rt,nt);return nt.slice(0,ht)}var _t=A?new Uint16Array(32768):dt(32768),J=A?new Uint16Array(32768):dt(32768),st=A?new Uint16Array(128):dt(128),Ot=1,W=1;function X(rt,nt){var ht=R(rt,nt)+257,St=R(rt,nt+=5)+1,ut=function(pe,Re){var je=7&Re,ie=Re>>>3;return(pe[ie]|(je<=4?0:pe[ie+1]<<8))>>>je&15}(rt,nt+=5)+4;nt+=4;for(var vt=0,ft=A?new Uint8Array(19):dt(19),yt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Ct=1,zt=A?new Uint8Array(8):dt(8),Bt=A?new Uint8Array(8):dt(8),re=ft.length,Yt=0;Yt<ut;++Yt)ft[D[Yt]]=vt=T(rt,nt),Ct<vt&&(Ct=vt),zt[vt]++,nt+=3;var qt=0;for(zt[0]=0,Yt=1;Yt<=Ct;++Yt)Bt[Yt]=qt=qt+zt[Yt-1]<<1;for(Yt=0;Yt<re;++Yt)(qt=ft[Yt])!=0&&(yt[Yt]=Bt[qt]++);var te=0;for(Yt=0;Yt<re;++Yt)if((te=ft[Yt])!=0){qt=N[yt[Yt]]>>8-te;for(var le=(1<<7-te)-1;le>=0;--le)st[qt|le<<te]=7&te|Yt<<3}var ne=[];for(Ct=1;ne.length<ht+St;)switch(nt+=7&(qt=st[F(rt,nt)]),qt>>>=3){case 16:for(vt=3+E(rt,nt),nt+=2,qt=ne[ne.length-1];vt-- >0;)ne.push(qt);break;case 17:for(vt=3+T(rt,nt),nt+=3;vt-- >0;)ne.push(0);break;case 18:for(vt=11+F(rt,nt),nt+=7;vt-- >0;)ne.push(0);break;default:ne.push(qt),Ct<qt&&(Ct=qt)}var de=ne.slice(0,ht),Xt=ne.slice(ht);for(Yt=ht;Yt<286;++Yt)de[Yt]=0;for(Yt=St;Yt<30;++Yt)Xt[Yt]=0;return Ot=gt(de,_t,286),W=gt(Xt,J,30),nt}function it(rt,nt){var ht=function(St,ut){if(St[0]==3&&!(3&St[1]))return[ns(ut),2];for(var vt=0,ft=0,yt=rp(ut||262144),Ct=0,zt=yt.length>>>0,Bt=0,re=0;!(1&ft);)if(ft=T(St,vt),vt+=3,ft>>>1!=0)for(ft>>1==1?(Bt=9,re=5):(vt=X(St,vt),Bt=Ot,re=W);;){!ut&&zt<Ct+32767&&(zt=(yt=Y(yt,Ct+32767)).length);var Yt=I(St,vt,Bt),qt=ft>>>1==1?bt[Yt]:_t[Yt];if(vt+=15&qt,((qt>>>=4)>>>8&255)==0)yt[Ct++]=qt;else{if(qt==256)break;var te=(qt-=257)<8?0:qt-4>>2;te>5&&(te=0);var le=Ct+j[qt];te>0&&(le+=I(St,vt,te),vt+=te),Yt=I(St,vt,re),vt+=15&(qt=ft>>>1==1?Q[Yt]:J[Yt]);var ne=(qt>>>=4)<4?0:qt-2>>1,de=U[qt];for(ne>0&&(de+=I(St,vt,ne),vt+=ne),!ut&&zt<le&&(zt=(yt=Y(yt,le+100)).length);Ct<le;)yt[Ct]=yt[Ct-de],++Ct}}else{7&vt&&(vt+=8-(7&vt));var Xt=St[vt>>>3]|St[1+(vt>>>3)]<<8;if(vt+=32,Xt>0)for(!ut&&zt<Ct+Xt&&(zt=(yt=Y(yt,Ct+Xt)).length);Xt-- >0;)yt[Ct++]=St[vt>>>3],vt+=8}return ut?[yt,vt+7>>>3]:[yt.slice(0,Ct),vt+7>>>3]}(rt.slice(rt.l||0),nt);return rt.l+=ht[1],ht[0]}function xt(rt,nt){if(!rt)throw new Error(nt);typeof console!="undefined"&&console.error(nt)}function Nt(rt,nt){var ht=rt;Dn(ht,0);var St={FileIndex:[],FullPaths:[]};h(St,{root:nt.root});for(var ut=ht.length-4;(ht[ut]!=80||ht[ut+1]!=75||ht[ut+2]!=5||ht[ut+3]!=6)&&ut>=0;)--ut;ht.l=ut+4,ht.l+=4;var vt=ht.read_shift(2);ht.l+=6;var ft=ht.read_shift(4);for(ht.l=ft,ut=0;ut<vt;++ut){ht.l+=20;var yt=ht.read_shift(4),Ct=ht.read_shift(4),zt=ht.read_shift(2),Bt=ht.read_shift(2),re=ht.read_shift(2);ht.l+=8;var Yt=ht.read_shift(4),qt=o(ht.slice(ht.l+zt,ht.l+zt+Bt));ht.l+=zt+Bt+re;var te=ht.l;ht.l=Yt+4,G(ht,yt,Ct,St,qt),ht.l=te}return St}function G(rt,nt,ht,St,ut){rt.l+=2;var vt=rt.read_shift(2),ft=rt.read_shift(2),yt=function(de){var Xt=65535&de.read_shift(2),pe=65535&de.read_shift(2),Re=new Date,je=31&pe,ie=15&(pe>>>=5);pe>>>=4,Re.setMilliseconds(0),Re.setFullYear(pe+1980),Re.setMonth(ie-1),Re.setDate(je);var xe=31&Xt,ye=63&(Xt>>>=5);return Xt>>>=6,Re.setHours(Xt),Re.setMinutes(ye),Re.setSeconds(xe<<1),Re}(rt);if(8257&vt)throw new Error("Unsupported ZIP encryption");rt.read_shift(4);for(var Ct=rt.read_shift(4),zt=rt.read_shift(4),Bt=rt.read_shift(2),re=rt.read_shift(2),Yt="",qt=0;qt<Bt;++qt)Yt+=String.fromCharCode(rt[rt.l++]);if(re){var te=o(rt.slice(rt.l,rt.l+re));(te[21589]||{}).mt&&(yt=te[21589].mt),((ut||{})[21589]||{}).mt&&(yt=ut[21589].mt)}rt.l+=re;var le=rt.slice(rt.l,rt.l+Ct);switch(ft){case 8:le=function(de,Xt){if(!m)return it(de,Xt);var pe=new m.InflateRaw,Re=pe._processChunk(de.slice(de.l),pe._finishFlushFlag);return de.l+=pe.bytesRead,Re}(rt,zt);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+ft)}var ne=!1;8&vt&&(rt.read_shift(4)==134695760&&(rt.read_shift(4),ne=!0),Ct=rt.read_shift(4),zt=rt.read_shift(4)),Ct!=nt&&xt(ne,"Bad compressed size: "+nt+" != "+Ct),zt!=ht&&xt(ne,"Bad uncompressed size: "+ht+" != "+zt),Dt(St,Yt,le,{unsafe:!0,mt:yt})}var Mt={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function Pt(rt,nt){if(rt.ctype)return rt.ctype;var ht=rt.name||"",St=ht.match(/\.([^\.]+)$/);return St&&Mt[St[1]]||nt&&(St=(ht=nt).match(/[\.\\]([^\.\\])+$/))&&Mt[St[1]]?Mt[St[1]]:"application/octet-stream"}function lt(rt){for(var nt=ac(rt),ht=[],St=0;St<nt.length;St+=76)ht.push(nt.slice(St,St+76));return ht.join(`\r
|
||
`)+`\r
|
||
`}function ct(rt){var nt=rt.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(zt){var Bt=zt.charCodeAt(0).toString(16).toUpperCase();return"="+(Bt.length==1?"0"+Bt:Bt)});(nt=nt.replace(/ $/gm,"=20").replace(/\t$/gm,"=09")).charAt(0)==`
|
||
`&&(nt="=0D"+nt.slice(1));for(var ht=[],St=(nt=nt.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,`
|
||
=0A`).replace(/([^\r\n])\n/gm,"$1=0A")).split(`\r
|
||
`),ut=0;ut<St.length;++ut){var vt=St[ut];if(vt.length!=0)for(var ft=0;ft<vt.length;){var yt=76,Ct=vt.slice(ft,ft+yt);Ct.charAt(yt-1)=="="?yt--:Ct.charAt(yt-2)=="="?yt-=2:Ct.charAt(yt-3)=="="&&(yt-=3),Ct=vt.slice(ft,ft+yt),(ft+=yt)<vt.length&&(Ct+="="),ht.push(Ct)}else ht.push("")}return ht.join(`\r
|
||
`)}function pt(rt,nt,ht){for(var St,ut="",vt="",ft="",yt=0;yt<10;++yt){var Ct=nt[yt];if(!Ct||Ct.match(/^\s*$/))break;var zt=Ct.match(/^(.*?):\s*([^\s].*)$/);if(zt)switch(zt[1].toLowerCase()){case"content-location":ut=zt[2].trim();break;case"content-type":ft=zt[2].trim();break;case"content-transfer-encoding":vt=zt[2].trim()}}switch(++yt,vt.toLowerCase()){case"base64":St=Ti(Si(nt.slice(yt).join("")));break;case"quoted-printable":St=function(re){for(var Yt=[],qt=0;qt<re.length;++qt){for(var te=re[qt];qt<=re.length&&te.charAt(te.length-1)=="=";)te=te.slice(0,te.length-1)+re[++qt];Yt.push(te)}for(var le=0;le<Yt.length;++le)Yt[le]=Yt[le].replace(/[=][0-9A-Fa-f]{2}/g,function(ne){return String.fromCharCode(parseInt(ne.slice(1),16))});return Ti(Yt.join(`\r
|
||
`))}(nt.slice(yt));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+vt)}var Bt=Dt(rt,ut.slice(ht.length),St,{unsafe:!0});ft&&(Bt.ctype=ft)}function Dt(rt,nt,ht,St){var ut=St&&St.unsafe;ut||h(rt);var vt=!ut&&Ve.find(rt,nt);if(!vt){var ft=rt.FullPaths[0];nt.slice(0,ft.length)==ft?ft=nt:(ft.slice(-1)!="/"&&(ft+="/"),ft=(ft+nt).replace("//","/")),vt={name:n(nt),type:2},rt.FileIndex.push(vt),rt.FullPaths.push(ft),ut||Ve.utils.cfb_gc(rt)}return vt.content=ht,vt.size=ht?ht.length:0,St&&(St.CLSID&&(vt.clsid=St.CLSID),St.mt&&(vt.mt=St.mt),St.ct&&(vt.ct=St.ct)),vt}return r.find=function(rt,nt){var ht=rt.FullPaths.map(function(Ct){return Ct.toUpperCase()}),St=ht.map(function(Ct){var zt=Ct.split("/");return zt[zt.length-(Ct.slice(-1)=="/"?2:1)]}),ut=!1;nt.charCodeAt(0)===47?(ut=!0,nt=ht[0].slice(0,-1)+nt):ut=nt.indexOf("/")!==-1;var vt=nt.toUpperCase(),ft=ut===!0?ht.indexOf(vt):St.indexOf(vt);if(ft!==-1)return rt.FileIndex[ft];var yt=!vt.match(sc);for(vt=vt.replace(ri,""),yt&&(vt=vt.replace(sc,"!")),ft=0;ft<ht.length;++ft)if((yt?ht[ft].replace(sc,"!"):ht[ft]).replace(ri,"")==vt||(yt?St[ft].replace(sc,"!"):St[ft]).replace(ri,"")==vt)return rt.FileIndex[ft];return null},r.read=function(rt,nt){var ht=nt&&nt.type;switch(ht||mr&&Buffer.isBuffer(rt)&&(ht="buffer"),ht||"base64"){case"file":return function(St,ut){return s(),i(t.readFileSync(St),ut)}(rt,nt);case"base64":return i(Ti(Si(rt)),nt);case"binary":return i(Ti(rt),nt)}return i(rt,nt)},r.parse=i,r.write=function(rt,nt){var ht=p(rt,nt);switch(nt&&nt.type||"buffer"){case"file":return s(),t.writeFileSync(nt.filename,ht),ht;case"binary":return typeof ht=="string"?ht:C(ht);case"base64":return ac(typeof ht=="string"?ht:C(ht));case"buffer":if(mr)return Buffer.isBuffer(ht)?ht:Na(ht);case"array":return typeof ht=="string"?Ti(ht):ht}return ht},r.writeFile=function(rt,nt,ht){s();var St=p(rt,ht);t.writeFileSync(nt,St)},r.utils={cfb_new:function(rt){var nt={};return h(nt,rt),nt},cfb_add:Dt,cfb_del:function(rt,nt){h(rt);var ht=Ve.find(rt,nt);if(ht){for(var St=0;St<rt.FileIndex.length;++St)if(rt.FileIndex[St]==ht)return rt.FileIndex.splice(St,1),rt.FullPaths.splice(St,1),!0}return!1},cfb_mov:function(rt,nt,ht){h(rt);var St=Ve.find(rt,nt);if(St){for(var ut=0;ut<rt.FileIndex.length;++ut)if(rt.FileIndex[ut]==St)return rt.FileIndex[ut].name=n(ht),rt.FullPaths[ut]=ht,!0}return!1},cfb_gc:function(rt){d(rt,!0)},ReadShift:mc,CheckField:n1,prep_blob:Dn,bconcat:En,use_zlib:function(rt){try{var nt=new rt.InflateRaw;if(nt._processChunk(new Uint8Array([3,0]),nt._finishFlushFlag),!nt.bytesRead)throw new Error("zlib does not expose bytesRead");m=rt}catch(ht){console.error("cannot use native zlib: "+(ht.message||ht))}},_deflateRaw:et,_inflateRaw:it,consts:x},r}();function Rw(t){return typeof t=="string"?_l(t):Array.isArray(t)?function(r){if(typeof Uint8Array=="undefined")throw new Error("Unsupported");return new Uint8Array(r)}(t):t}function cc(t,r,e){if(typeof Deno!="undefined"){if(e&&typeof r=="string")switch(e){case"utf8":r=new TextEncoder(e).encode(r);break;case"binary":r=_l(r);break;default:throw new Error("Unsupported encoding "+e)}return Deno.writeFileSync(t,r)}var n=e=="utf8"?ga(r):r;if(typeof IE_SaveFile!="undefined")return IE_SaveFile(n,t);if(typeof Blob!="undefined"){var a=new Blob([Rw(n)],{type:"application/octet-stream"});if(typeof navigator!="undefined"&&navigator.msSaveBlob)return navigator.msSaveBlob(a,t);if(typeof saveAs!="undefined")return saveAs(a,t);if(typeof URL!="undefined"&&typeof document!="undefined"&&document.createElement&&URL.createObjectURL){var o=URL.createObjectURL(a);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout!="undefined"&&setTimeout(function(){URL.revokeObjectURL(o)},6e4),chrome.downloads.download({url:o,filename:t,saveAs:!0});var s=document.createElement("a");if(s.download!=null)return s.download=t,s.href=o,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL&&typeof setTimeout!="undefined"&&setTimeout(function(){URL.revokeObjectURL(o)},6e4),o}}if(typeof $!="undefined"&&typeof File!="undefined"&&typeof Folder!="undefined")try{var i=File(t);return i.open("w"),i.encoding="binary",Array.isArray(r)&&(r=is(r)),i.write(r),i.close(),r}catch(c){if(!c.message||!c.message.match(/onstruct/))throw c}throw new Error("cannot save file "+t)}function nn(t){for(var r=Object.keys(t),e=[],n=0;n<r.length;++n)Object.prototype.hasOwnProperty.call(t,r[n])&&e.push(r[n]);return e}function _p(t,r){for(var e=[],n=nn(t),a=0;a!==n.length;++a)e[t[n[a]][r]]==null&&(e[t[n[a]][r]]=n[a]);return e}function El(t){for(var r=[],e=nn(t),n=0;n!==e.length;++n)r[t[e[n]]]=e[n];return r}function Cl(t){for(var r=[],e=nn(t),n=0;n!==e.length;++n)r[t[e[n]]]=parseInt(e[n],10);return r}var Al=new Date(1899,11,30,0,0,0);function Nn(t,r){var e=t.getTime();return r&&(e-=1263168e5),(e-(Al.getTime()+6e4*(t.getTimezoneOffset()-Al.getTimezoneOffset())))/864e5}var kp=new Date,Mw=Al.getTime()+6e4*(kp.getTimezoneOffset()-Al.getTimezoneOffset()),xp=kp.getTimezoneOffset();function Rl(t){var r=new Date;return r.setTime(24*t*60*60*1e3+Mw),r.getTimezoneOffset()!==xp&&r.setTime(r.getTime()+6e4*(r.getTimezoneOffset()-xp)),r}function Ow(t){var r=0,e=0,n=!1,a=t.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!a)throw new Error("|"+t+"| is not an ISO8601 Duration");for(var o=1;o!=a.length;++o)if(a[o]){switch(e=1,o>3&&(n=!0),a[o].slice(a[o].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+a[o].slice(a[o].length-1));case"D":e*=24;case"H":e*=60;case"M":if(!n)throw new Error("Unsupported ISO Duration Field: M");e*=60}r+=e*parseInt(a[o],10)}return r}var Sp=new Date("2017-02-19T19:06:09.000Z"),Tp=isNaN(Sp.getFullYear())?new Date("2/19/17"):Sp,Iw=Tp.getFullYear()==2017;function Gr(t,r){var e=new Date(t);if(Iw)return r>0?e.setTime(e.getTime()+60*e.getTimezoneOffset()*1e3):r<0&&e.setTime(e.getTime()-60*e.getTimezoneOffset()*1e3),e;if(t instanceof Date)return t;if(Tp.getFullYear()==1917&&!isNaN(e.getFullYear())){var n=e.getFullYear();return t.indexOf(""+n)>-1||e.setFullYear(e.getFullYear()+100),e}var a=t.match(/\d+/g)||["2017","2","19","0","0","0"],o=new Date(+a[0],+a[1]-1,+a[2],+a[3]||0,+a[4]||0,+a[5]||0);return t.indexOf("Z")>-1&&(o=new Date(o.getTime()-60*o.getTimezoneOffset()*1e3)),o}function Is(t,r){if(mr&&Buffer.isBuffer(t)){if(r){if(t[0]==255&&t[1]==254)return ga(t.slice(2).toString("utf16le"));if(t[1]==254&&t[2]==255)return ga(tp(t.slice(2).toString("binary")))}return t.toString("binary")}if(typeof TextDecoder!="undefined")try{if(r){if(t[0]==255&&t[1]==254)return ga(new TextDecoder("utf-16le").decode(t.slice(2)));if(t[0]==254&&t[1]==255)return ga(new TextDecoder("utf-16be").decode(t.slice(2)))}var e={"€":"","‚":"",ƒ:"","„":"","…":"
","†":"","‡":"","ˆ":"","‰":"",Š:"","‹":"",Œ:"",Ž:"","‘":"","’":"","“":"","”":"","•":"","–":"","—":"","˜":"","™":"",š:"","›":"",œ:"",ž:"",Ÿ:""};return Array.isArray(t)&&(t=new Uint8Array(t)),new TextDecoder("latin1").decode(t).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(o){return e[o]||o})}catch(o){}for(var n=[],a=0;a!=t.length;++a)n.push(String.fromCharCode(t[a]));return n.join("")}function Wr(t){if(typeof JSON!="undefined"&&!Array.isArray(t))return JSON.parse(JSON.stringify(t));if(typeof t!="object"||t==null)return t;if(t instanceof Date)return new Date(t.getTime());var r={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=Wr(t[e]));return r}function Zr(t,r){for(var e="";e.length<r;)e+=t;return e}function Fa(t){var r=Number(t);if(!isNaN(r))return isFinite(r)?r:NaN;if(!/\d/.test(t))return r;var e=1,n=t.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return e*=100,""});return isNaN(r=Number(n))?(n=n.replace(/[(](.*)[)]/,function(a,o){return e=-e,o}),isNaN(r=Number(n))?r:r/e):r/e}var Nw=["january","february","march","april","may","june","july","august","september","october","november","december"];function lc(t){var r=new Date(t),e=new Date(NaN),n=r.getYear(),a=r.getMonth(),o=r.getDate();if(isNaN(o))return e;var s=t.toLowerCase();if(s.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if((s=s.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"")).length>3&&Nw.indexOf(s)==-1)return e}else if(s.match(/[a-z]/))return e;return n<0||n>8099?e:(a>0||o>1)&&n!=101?r:t.match(/[^-0-9:,\/\\]/)?e:r}var Pw=function(){var t="abacaba".split(/(:?b)/i).length==5;return function(r,e,n){if(t||typeof e=="string")return r.split(e);for(var a=r.split(e),o=[a[0]],s=1;s<a.length;++s)o.push(n),o.push(a[s]);return o}}();function Ep(t){return t?t.content&&t.type?Is(t.content,!0):t.data?ic(t.data):t.asNodeBuffer&&mr?ic(t.asNodeBuffer().toString("binary")):t.asBinary?ic(t.asBinary()):t._data&&t._data.getContent?ic(Is(Array.prototype.slice.call(t._data.getContent(),0))):null:null}function Cp(t){if(!t)return null;if(t.data)return Q0(t.data);if(t.asNodeBuffer&&mr)return t.asNodeBuffer();if(t._data&&t._data.getContent){var r=t._data.getContent();return typeof r=="string"?Q0(r):Array.prototype.slice.call(r)}return t.content&&t.type?t.content:null}function Di(t,r){for(var e=t.FullPaths||nn(t.files),n=r.toLowerCase().replace(/[\/]/g,"\\"),a=n.replace(/\\/g,"/"),o=0;o<e.length;++o){var s=e[o].replace(/^Root Entry[\/]/,"").toLowerCase();if(n==s||a==s)return t.files?t.files[e[o]]:t.FileIndex[o]}return null}function kf(t,r){var e=Di(t,r);if(e==null)throw new Error("Cannot find file "+r+" in zip");return e}function hn(t,r,e){if(!e)return(n=kf(t,r))&&n.name.slice(-4)===".bin"?Cp(n):Ep(n);var n;if(!r)return null;try{return hn(t,r)}catch(a){return null}}function Ei(t,r,e){if(!e)return Ep(kf(t,r));if(!r)return null;try{return Ei(t,r)}catch(n){return null}}function Ap(t,r,e){if(!e)return Cp(kf(t,r));if(!r)return null;try{return Ap(t,r)}catch(n){return null}}function Rp(t){for(var r=t.FullPaths||nn(t.files),e=[],n=0;n<r.length;++n)r[n].slice(-1)!="/"&&e.push(r[n].replace(/^Root Entry[\/]/,""));return e.sort()}function fr(t,r,e){if(t.FullPaths){var n;if(typeof e=="string")return n=mr?Na(e):function(a){for(var o=[],s=0,i=a.length+250,c=ns(a.length+255),l=0;l<a.length;++l){var u=a.charCodeAt(l);if(u<128)c[s++]=u;else if(u<2048)c[s++]=192|u>>6&31,c[s++]=128|63&u;else if(u>=55296&&u<57344){u=64+(1023&u);var f=1023&a.charCodeAt(++l);c[s++]=240|u>>8&7,c[s++]=128|u>>2&63,c[s++]=128|f>>6&15|(3&u)<<4,c[s++]=128|63&f}else c[s++]=224|u>>12&15,c[s++]=128|u>>6&63,c[s++]=128|63&u;s>i&&(o.push(c.slice(0,s)),s=0,c=ns(65535),i=65530)}return o.push(c.slice(0,s)),En(o)}(e),Ve.utils.cfb_add(t,r,n);Ve.utils.cfb_add(t,r,e)}else t.file(r,e)}function xf(){return Ve.utils.cfb_new()}function Mp(t,r){switch(r.type){case"base64":return Ve.read(t,{type:"base64"});case"binary":return Ve.read(t,{type:"binary"});case"buffer":case"array":return Ve.read(t,{type:"buffer"})}throw new Error("Unrecognized type "+r.type)}function uc(t,r){if(t.charAt(0)=="/")return t.slice(1);var e=r.split("/");r.slice(-1)!="/"&&e.pop();for(var n=t.split("/");n.length!==0;){var a=n.shift();a===".."?e.pop():a!=="."&&e.push(a)}return e.join("/")}var an=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
|
||
`,Dw=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,Op=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm,Vn=an.match(Op)?Op:/<[^>]*>/g,Fw=/<\w*:/,jw=/<(\/?)\w+:/;function tr(t,r,e){for(var n={},a=0,o=0;a!==t.length&&(o=t.charCodeAt(a))!==32&&o!==10&&o!==13;++a);if(r||(n[0]=t.slice(0,a)),a===t.length)return n;var s=t.match(Dw),i=0,c="",l=0,u="",f="",h=1;if(s)for(l=0;l!=s.length;++l){for(f=s[l],o=0;o!=f.length&&f.charCodeAt(o)!==61;++o);for(u=f.slice(0,o).trim();f.charCodeAt(o+1)==32;)++o;for(h=(a=f.charCodeAt(o+1))==34||a==39?1:0,c=f.slice(o+1+h,f.length-h),i=0;i!=u.length&&u.charCodeAt(i)!==58;++i);if(i===u.length)u.indexOf("_")>0&&(u=u.slice(0,u.indexOf("_"))),n[u]=c,e||(n[u.toLowerCase()]=c);else{var d=(i===5&&u.slice(0,5)==="xmlns"?"xmlns":"")+u.slice(i+1);if(n[d]&&u.slice(i-3,i)=="ext")continue;n[d]=c,e||(n[d.toLowerCase()]=c)}}return n}function va(t){return t.replace(jw,"<$1")}var Ip={""":'"',"'":"'",">":">","<":"<","&":"&"},Sf=El(Ip),Tr=function(){var t=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,r=/_x([\da-fA-F]{4})_/gi;return function e(n){var a=n+"",o=a.indexOf("<![CDATA[");if(o==-1)return a.replace(t,function(i,c){return Ip[i]||String.fromCharCode(parseInt(c,i.indexOf("x")>-1?16:10))||i}).replace(r,function(i,c){return String.fromCharCode(parseInt(c,16))});var s=a.indexOf("]]>");return e(a.slice(0,o))+a.slice(o+9,s)+e(a.slice(s+3))}}(),Tf=/[&<>'"]/g,Lw=/[\u0000-\u0008\u000b-\u001f]/g;function Nr(t){return(t+"").replace(Tf,function(r){return Sf[r]}).replace(Lw,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function Np(t){return Nr(t).replace(/ /g,"_x0020_")}var Pp=/[\u0000-\u001f]/g;function Ef(t){return(t+"").replace(Tf,function(r){return Sf[r]}).replace(/\n/g,"<br/>").replace(Pp,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}var Dp=function(){var t=/&#(\d+);/g;function r(e,n){return String.fromCharCode(parseInt(n,10))}return function(e){return e.replace(t,r)}}();function Vr(t){switch(t){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Cf(t){for(var r="",e=0,n=0,a=0,o=0,s=0,i=0;e<t.length;)(n=t.charCodeAt(e++))<128?r+=String.fromCharCode(n):(a=t.charCodeAt(e++),n>191&&n<224?(s=(31&n)<<6,s|=63&a,r+=String.fromCharCode(s)):(o=t.charCodeAt(e++),n<240?r+=String.fromCharCode((15&n)<<12|(63&a)<<6|63&o):(i=((7&n)<<18|(63&a)<<12|(63&o)<<6|63&(s=t.charCodeAt(e++)))-65536,r+=String.fromCharCode(55296+(i>>>10&1023)),r+=String.fromCharCode(56320+(1023&i)))));return r}function Fp(t){var r,e,n,a=ns(2*t.length),o=1,s=0,i=0;for(e=0;e<t.length;e+=o)o=1,(n=t.charCodeAt(e))<128?r=n:n<224?(r=64*(31&n)+(63&t.charCodeAt(e+1)),o=2):n<240?(r=4096*(15&n)+64*(63&t.charCodeAt(e+1))+(63&t.charCodeAt(e+2)),o=3):(o=4,r=262144*(7&n)+4096*(63&t.charCodeAt(e+1))+64*(63&t.charCodeAt(e+2))+(63&t.charCodeAt(e+3)),i=55296+((r-=65536)>>>10&1023),r=56320+(1023&r)),i!==0&&(a[s++]=255&i,a[s++]=i>>>8,i=0),a[s++]=r%256,a[s++]=r>>>8;return a.slice(0,s).toString("ucs2")}function jp(t){return Na(t,"binary").toString("utf8")}var Ml="foo bar bazâð£",Lr=mr&&(jp(Ml)==Cf(Ml)&&jp||Fp(Ml)==Cf(Ml)&&Fp)||Cf,ga=mr?function(t){return Na(t,"utf8").toString("binary")}:function(t){for(var r=[],e=0,n=0,a=0;e<t.length;)switch(n=t.charCodeAt(e++),!0){case n<128:r.push(String.fromCharCode(n));break;case n<2048:r.push(String.fromCharCode(192+(n>>6))),r.push(String.fromCharCode(128+(63&n)));break;case(n>=55296&&n<57344):n-=55296,a=t.charCodeAt(e++)-56320+(n<<10),r.push(String.fromCharCode(240+(a>>18&7))),r.push(String.fromCharCode(144+(a>>12&63))),r.push(String.fromCharCode(128+(a>>6&63))),r.push(String.fromCharCode(128+(63&a)));break;default:r.push(String.fromCharCode(224+(n>>12))),r.push(String.fromCharCode(128+(n>>6&63))),r.push(String.fromCharCode(128+(63&n)))}return r.join("")},fc=function(){var t={};return function(r,e){var n=r+"|"+(e||"");return t[n]?t[n]:t[n]=new RegExp("<(?:\\w+:)?"+r+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+r+">",e||"")}}(),Bw=function(){var t=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(r){return[new RegExp("&"+r[0]+";","ig"),r[1]]});return function(r){for(var e=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
|
||
`).replace(/<[^>]*>/g,""),n=0;n<t.length;++n)e=e.replace(t[n][0],t[n][1]);return e}}(),zw=function(){var t={};return function(r){return t[r]!==void 0?t[r]:t[r]=new RegExp("<(?:vt:)?"+r+">([\\s\\S]*?)</(?:vt:)?"+r+">","g")}}(),Uw=/<\/?(?:vt:)?variant>/g,Hw=/<(?:vt:)([^>]*)>([\s\S]*)</;function Lp(t,r){var e=tr(t),n=t.match(zw(e.baseType))||[],a=[];if(n.length!=e.size){if(r.WTF)throw new Error("unexpected vector length "+n.length+" != "+e.size);return a}return n.forEach(function(o){var s=o.replace(Uw,"").match(Hw);s&&a.push({v:Lr(s[2]),t:s[1]})}),a}var Bp=/(^\s|\s$|\n)/;function Pn(t,r){return"<"+t+(r.match(Bp)?' xml:space="preserve"':"")+">"+r+"</"+t+">"}function hc(t){return nn(t).map(function(r){return" "+r+'="'+t[r]+'"'}).join("")}function we(t,r,e){return"<"+t+(e!=null?hc(e):"")+(r!=null?(r.match(Bp)?' xml:space="preserve"':"")+">"+r+"</"+t:"/")+">"}function Af(t,r){try{return t.toISOString().replace(/\.\d*/,"")}catch(e){if(r)throw e}return""}function Rf(t){if(mr&&Buffer.isBuffer(t))return t.toString("utf8");if(typeof t=="string")return t;if(typeof Uint8Array!="undefined"&&t instanceof Uint8Array)return Lr(is(bf(t)));throw new Error("Bad input format: expected Buffer or string")}var dc=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/gm,vn={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Ns=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Ci={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"},zp=function(t){for(var r=[],e=0;e<t[0].length;++e)if(t[0][e])for(var n=0,a=t[0][e].length;n<a;n+=10240)r.push.apply(r,t[0][e].slice(n,n+10240));return r},Up=mr?function(t){return t[0].length>0&&Buffer.isBuffer(t[0][0])?Buffer.concat(t[0].map(function(r){return Buffer.isBuffer(r)?r:Na(r)})):zp(t)}:zp,Hp=function(t,r,e){for(var n=[],a=r;a<e;a+=2)n.push(String.fromCharCode(ja(t,a)));return n.join("").replace(ri,"")},Mf=mr?function(t,r,e){return Buffer.isBuffer(t)?t.toString("utf16le",r,e).replace(ri,""):Hp(t,r,e)}:Hp,Wp=function(t,r,e){for(var n=[],a=r;a<r+e;++a)n.push(("0"+t[a].toString(16)).slice(-2));return n.join("")},Vp=mr?function(t,r,e){return Buffer.isBuffer(t)?t.toString("hex",r,r+e):Wp(t,r,e)}:Wp,$p=function(t,r,e){for(var n=[],a=r;a<e;a++)n.push(String.fromCharCode(yo(t,a)));return n.join("")},pc=mr?function(t,r,e){return Buffer.isBuffer(t)?t.toString("utf8",r,e):$p(t,r,e)}:$p,qp=function(t,r){var e=Ai(t,r);return e>0?pc(t,r+4,r+4+e-1):""},Gp=qp,Yp=function(t,r){var e=Ai(t,r);return e>0?pc(t,r+4,r+4+e-1):""},Kp=Yp,Xp=function(t,r){var e=2*Ai(t,r);return e>0?pc(t,r+4,r+4+e-1):""},Zp=Xp,Jp=function(t,r){var e=Ai(t,r);return e>0?Mf(t,r+4,r+4+e):""},Qp=Jp,t1=function(t,r){var e=Ai(t,r);return e>0?pc(t,r+4,r+4+e):""},e1=t1,r1=function(t,r){return function(e,n){for(var a=1-2*(e[n+7]>>>7),o=((127&e[n+7])<<4)+(e[n+6]>>>4&15),s=15&e[n+6],i=5;i>=0;--i)s=256*s+e[n+i];return o==2047?s==0?a*(1/0):NaN:(o==0?o=-1022:(o-=1023,s+=Math.pow(2,52)),a*Math.pow(2,o-52)*s)}(t,r)},Ol=r1,Of=function(t){return Array.isArray(t)||typeof Uint8Array!="undefined"&&t instanceof Uint8Array};mr&&(Gp=function(t,r){if(!Buffer.isBuffer(t))return qp(t,r);var e=t.readUInt32LE(r);return e>0?t.toString("utf8",r+4,r+4+e-1):""},Kp=function(t,r){if(!Buffer.isBuffer(t))return Yp(t,r);var e=t.readUInt32LE(r);return e>0?t.toString("utf8",r+4,r+4+e-1):""},Zp=function(t,r){if(!Buffer.isBuffer(t))return Xp(t,r);var e=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+e-1)},Qp=function(t,r){if(!Buffer.isBuffer(t))return Jp(t,r);var e=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+e)},e1=function(t,r){if(!Buffer.isBuffer(t))return t1(t,r);var e=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+e)},Ol=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):r1(t,r)},Of=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array!="undefined"&&t instanceof Uint8Array});var yo=function(t,r){return t[r]},ja=function(t,r){return 256*t[r+1]+t[r]},Ww=function(t,r){var e=256*t[r+1]+t[r];return e<32768?e:-1*(65535-e+1)},Ai=function(t,r){return t[r+3]*(1<<24)+(t[r+2]<<16)+(t[r+1]<<8)+t[r]},Ps=function(t,r){return t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]},Vw=function(t,r){return t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]};function mc(t,r){var e,n,a,o,s,i,c="",l=[];switch(r){case"dbcs":if(i=this.l,mr&&Buffer.isBuffer(this))c=this.slice(this.l,this.l+2*t).toString("utf16le");else for(s=0;s<t;++s)c+=String.fromCharCode(ja(this,i)),i+=2;t*=2;break;case"utf8":c=pc(this,this.l,this.l+t);break;case"utf16le":t*=2,c=Mf(this,this.l,this.l+t);break;case"wstr":return mc.call(this,t,"dbcs");case"lpstr-ansi":c=Gp(this,this.l),t=4+Ai(this,this.l);break;case"lpstr-cp":c=Kp(this,this.l),t=4+Ai(this,this.l);break;case"lpwstr":c=Zp(this,this.l),t=4+2*Ai(this,this.l);break;case"lpp4":t=4+Ai(this,this.l),c=Qp(this,this.l),2&t&&(t+=2);break;case"8lpp4":t=4+Ai(this,this.l),c=e1(this,this.l),3&t&&(t+=4-(3&t));break;case"cstr":for(t=0,c="";(a=yo(this,this.l+t++))!==0;)l.push(wl(a));c=l.join("");break;case"_wstr":for(t=0,c="";(a=ja(this,this.l+t))!==0;)l.push(wl(a)),t+=2;t+=2,c=l.join("");break;case"dbcs-cont":for(c="",i=this.l,s=0;s<t;++s){if(this.lens&&this.lens.indexOf(i)!==-1)return a=yo(this,i),this.l=i+1,o=mc.call(this,t-s,a?"dbcs-cont":"sbcs-cont"),l.join("")+o;l.push(wl(ja(this,i))),i+=2}c=l.join(""),t*=2;break;case"cpstr":case"sbcs-cont":for(c="",i=this.l,s=0;s!=t;++s){if(this.lens&&this.lens.indexOf(i)!==-1)return a=yo(this,i),this.l=i+1,o=mc.call(this,t-s,a?"dbcs-cont":"sbcs-cont"),l.join("")+o;l.push(wl(yo(this,i))),i+=1}c=l.join("");break;default:switch(t){case 1:return e=yo(this,this.l),this.l++,e;case 2:return e=(r==="i"?Ww:ja)(this,this.l),this.l+=2,e;case 4:case-4:return r==="i"||!(128&this[this.l+3])?(e=(t>0?Ps:Vw)(this,this.l),this.l+=4,e):(n=Ai(this,this.l),this.l+=4,n);case 8:case-8:if(r==="f")return n=t==8?Ol(this,this.l):Ol([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,n;t=8;case 16:c=Vp(this,this.l,t)}}return this.l+=t,c}var $w=function(t,r,e){t[e]=255&r,t[e+1]=r>>>8&255,t[e+2]=r>>>16&255,t[e+3]=r>>>24&255},qw=function(t,r,e){t[e]=255&r,t[e+1]=r>>8&255,t[e+2]=r>>16&255,t[e+3]=r>>24&255},Gw=function(t,r,e){t[e]=255&r,t[e+1]=r>>>8&255};function Yw(t,r,e){var n=0,a=0;if(e==="dbcs"){for(a=0;a!=r.length;++a)Gw(this,r.charCodeAt(a),this.l+2*a);n=2*r.length}else if(e==="sbcs"){for(r=r.replace(/[^\x00-\x7F]/g,"_"),a=0;a!=r.length;++a)this[this.l+a]=255&r.charCodeAt(a);n=r.length}else{if(e==="hex"){for(;a<t;++a)this[this.l++]=parseInt(r.slice(2*a,2*a+2),16)||0;return this}if(e==="utf16le"){var o=Math.min(this.l+t,this.length);for(a=0;a<Math.min(r.length,t);++a){var s=r.charCodeAt(a);this[this.l++]=255&s,this[this.l++]=s>>8}for(;this.l<o;)this[this.l++]=0;return this}switch(t){case 1:n=1,this[this.l]=255&r;break;case 2:n=2,this[this.l]=255&r,r>>>=8,this[this.l+1]=255&r;break;case 3:n=3,this[this.l]=255&r,r>>>=8,this[this.l+1]=255&r,r>>>=8,this[this.l+2]=255&r;break;case 4:n=4,$w(this,r,this.l);break;case 8:if(n=8,e==="f"){(function(i,c,l){var u=(c<0||1/c==-1/0?1:0)<<7,f=0,h=0,d=u?-c:c;isFinite(d)?d==0?f=h=0:(f=Math.floor(Math.log(d)/Math.LN2),h=d*Math.pow(2,52-f),f<=-1023&&(!isFinite(h)||h<Math.pow(2,52))?f=-1022:(h-=Math.pow(2,52),f+=1023)):(f=2047,h=isNaN(c)?26985:0);for(var p=0;p<=5;++p,h/=256)i[l+p]=255&h;i[l+6]=(15&f)<<4|15&h,i[l+7]=f>>4|u})(this,r,this.l);break}case 16:break;case-4:n=4,qw(this,r,this.l)}}return this.l+=n,this}function n1(t,r){var e=Vp(this,this.l,t.length>>1);if(e!==t)throw new Error(r+"Expected "+t+" saw "+e);this.l+=t.length>>1}function Dn(t,r){t.l=r,t.read_shift=mc,t.chk=n1,t.write_shift=Yw}function $n(t,r){t.l+=r}function Kt(t){var r=ns(t);return Dn(r,0),r}function La(t,r,e){if(t){var n,a,o;Dn(t,t.l||0);for(var s=t.length,i=0,c=0;t.l<s;){128&(i=t.read_shift(1))&&(i=(127&i)+((127&t.read_shift(1))<<7));var l=Dc[i]||Dc[65535];for(o=127&(n=t.read_shift(1)),a=1;a<4&&128&n;++a)o+=(127&(n=t.read_shift(1)))<<7*a;c=t.l+o;var u=l.f&&l.f(t,o,e);if(t.l=c,r(u,l,i))return}}}function mi(){var t=[],r=mr?256:2048,e=function(s){var i=Kt(s);return Dn(i,0),i},n=e(r),a=function(){n&&(n.length>n.l&&((n=n.slice(0,n.l)).l=n.length),n.length>0&&t.push(n),n=null)},o=function(s){return n&&s<n.length-n.l?n:(a(),n=e(Math.max(s+1,r)))};return{next:o,push:function(s){a(),(n=s).l==null&&(n.l=n.length),o(r)},end:function(){return a(),En(t)},_bufs:t}}function ce(t,r,e,n){var a,o=+r;if(!isNaN(o)){n||(n=Dc[o].p||(e||[]).length||0),a=1+(o>=128?1:0)+1,n>=128&&++a,n>=16384&&++a,n>=2097152&&++a;var s=t.next(a);o<=127?s.write_shift(1,o):(s.write_shift(1,128+(127&o)),s.write_shift(1,o>>7));for(var i=0;i!=4;++i){if(!(n>=128)){s.write_shift(1,n);break}s.write_shift(1,128+(127&n)),n>>=7}n>0&&Of(e)&&t.push(e)}}function vc(t,r,e){var n=Wr(t);if(r.s?(n.cRel&&(n.c+=r.s.c),n.rRel&&(n.r+=r.s.r)):(n.cRel&&(n.c+=r.c),n.rRel&&(n.r+=r.r)),!e||e.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function i1(t,r,e){var n=Wr(t);return n.s=vc(n.s,r.s,e),n.e=vc(n.e,r.s,e),n}function gc(t,r){if(t.cRel&&t.c<0)for(t=Wr(t);t.c<0;)t.c+=r>8?16384:256;if(t.rRel&&t.r<0)for(t=Wr(t);t.r<0;)t.r+=r>8?1048576:r>5?65536:16384;var e=nr(t);return t.cRel||t.cRel==null||(e=e.replace(/^([A-Z])/,"$$$1")),t.rRel||t.rRel==null||(e=function(n){return n.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(e)),e}function If(t,r){return t.s.r!=0||t.s.rRel||t.e.r!=(r.biff>=12?1048575:r.biff>=8?65536:16384)||t.e.rRel?t.s.c!=0||t.s.cRel||t.e.c!=(r.biff>=12?16383:255)||t.e.cRel?gc(t.s,r.biff)+":"+gc(t.e,r.biff):(t.s.rRel?"":"$")+Cn(t.s.r)+":"+(t.e.rRel?"":"$")+Cn(t.e.r):(t.s.cRel?"":"$")+dn(t.s.c)+":"+(t.e.cRel?"":"$")+dn(t.e.c)}function a1(t){return parseInt(t.replace(/\$(\d+)$/,"$1"),10)-1}function Cn(t){return""+(t+1)}function s1(t){for(var r=t.replace(/^\$([A-Z])/,"$1"),e=0,n=0;n!==r.length;++n)e=26*e+r.charCodeAt(n)-64;return e-1}function dn(t){if(t<0)throw new Error("invalid column "+t);var r="";for(++t;t;t=Math.floor((t-1)/26))r=String.fromCharCode((t-1)%26+65)+r;return r}function gn(t){for(var r=0,e=0,n=0;n<t.length;++n){var a=t.charCodeAt(n);a>=48&&a<=57?r=10*r+(a-48):a>=65&&a<=90&&(e=26*e+(a-64))}return{c:e-1,r:r-1}}function nr(t){for(var r=t.c+1,e="";r;r=(r-1)/26|0)e=String.fromCharCode((r-1)%26+65)+e;return e+(t.r+1)}function Fi(t){var r=t.indexOf(":");return r==-1?{s:gn(t),e:gn(t)}:{s:gn(t.slice(0,r)),e:gn(t.slice(r+1))}}function wr(t,r){return r===void 0||typeof r=="number"?wr(t.s,t.e):(typeof t!="string"&&(t=nr(t)),typeof r!="string"&&(r=nr(r)),t==r?t:t+":"+r)}function Mr(t){var r={s:{c:0,r:0},e:{c:0,r:0}},e=0,n=0,a=0,o=t.length;for(e=0;n<o&&!((a=t.charCodeAt(n)-64)<1||a>26);++n)e=26*e+a;for(r.s.c=--e,e=0;n<o&&!((a=t.charCodeAt(n)-48)<0||a>9);++n)e=10*e+a;if(r.s.r=--e,n===o||a!=10)return r.e.c=r.s.c,r.e.r=r.s.r,r;for(++n,e=0;n!=o&&!((a=t.charCodeAt(n)-64)<1||a>26);++n)e=26*e+a;for(r.e.c=--e,e=0;n!=o&&!((a=t.charCodeAt(n)-48)<0||a>9);++n)e=10*e+a;return r.e.r=--e,r}function Kw(t,r){var e=t.t=="d"&&r instanceof Date;if(t.z!=null)try{return t.w=Pi(t.z,e?Nn(r):r)}catch(n){}try{return t.w=Pi((t.XF||{}).numFmtId||(e?14:0),e?Nn(r):r)}catch(n){return""+r}}function ss(t,r,e){return t==null||t.t==null||t.t=="z"?"":t.w!==void 0?t.w:(t.t=="d"&&!t.z&&e&&e.dateNF&&(t.z=e.dateNF),t.t=="e"?Ba[t.v]||t.v:Kw(t,r==null?t.v:r))}function Ds(t,r){var e=r&&r.sheet?r.sheet:"Sheet1",n={};return n[e]=t,{SheetNames:[e],Sheets:n}}function bc(t,r){return function(e,n,a){var o=a||{},s=e?Array.isArray(e):o.dense,i=e||(s?[]:{}),c=0,l=0;if(i&&o.origin!=null){if(typeof o.origin=="number")c=o.origin;else{var u=typeof o.origin=="string"?gn(o.origin):o.origin;c=u.r,l=u.c}i["!ref"]||(i["!ref"]="A1:A1")}var f={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var h=Mr(i["!ref"]);f.s.c=h.s.c,f.s.r=h.s.r,f.e.c=Math.max(f.e.c,h.e.c),f.e.r=Math.max(f.e.r,h.e.r),c==-1&&(f.e.r=c=h.e.r+1)}for(var d=0;d!=n.length;++d)if(n[d]){if(!Array.isArray(n[d]))throw new Error("aoa_to_sheet expects an array of arrays");for(var p=0;p!=n[d].length;++p)if(n[d][p]!==void 0){var m={v:n[d][p]},v=c+d,b=l+p;if(f.s.r>v&&(f.s.r=v),f.s.c>b&&(f.s.c=b),f.e.r<v&&(f.e.r=v),f.e.c<b&&(f.e.c=b),!n[d][p]||typeof n[d][p]!="object"||Array.isArray(n[d][p])||n[d][p]instanceof Date)if(Array.isArray(m.v)&&(m.f=n[d][p][1],m.v=m.v[0]),m.v===null)if(m.f)m.t="n";else if(o.nullError)m.t="e",m.v=0;else{if(!o.sheetStubs)continue;m.t="z"}else typeof m.v=="number"?m.t="n":typeof m.v=="boolean"?m.t="b":m.v instanceof Date?(m.z=o.dateNF||Qe[14],o.cellDates?(m.t="d",m.w=Pi(m.z,Nn(m.v))):(m.t="n",m.v=Nn(m.v),m.w=Pi(m.z,m.v))):m.t="s";else m=n[d][p];if(s)i[v]||(i[v]=[]),i[v][b]&&i[v][b].z&&(m.z=i[v][b].z),i[v][b]=m;else{var g=nr({c:b,r:v});i[g]&&i[g].z&&(m.z=i[g].z),i[g]=m}}}return f.s.c<1e7&&(i["!ref"]=wr(f)),i}(null,t,r)}function ia(t,r){return r||(r=Kt(4)),r.write_shift(4,t),r}function qn(t){var r=t.read_shift(4);return r===0?"":t.read_shift(r,"dbcs")}function An(t,r){var e=!1;return r==null&&(e=!0,r=Kt(4+2*t.length)),r.write_shift(4,t.length),t.length>0&&r.write_shift(0,t,"dbcs"),e?r.slice(0,r.l):r}function Xw(t){return{ich:t.read_shift(2),ifnt:t.read_shift(2)}}function Nf(t,r){var e=t.l,n=t.read_shift(1),a=qn(t),o=[],s={t:a,h:a};if(1&n){for(var i=t.read_shift(4),c=0;c!=i;++c)o.push(Xw(t));s.r=o}else s.r=[{ich:0,ifnt:0}];return t.l=e+r,s}var Zw=Nf;function Jw(t,r){var e=!1;return r==null&&(e=!0,r=Kt(23+4*t.t.length)),r.write_shift(1,1),An(t.t,r),r.write_shift(4,1),function(n,a){a||(a=Kt(4)),a.write_shift(2,n.ich||0),a.write_shift(2,n.ifnt||0)}({ich:0,ifnt:0},r),e?r.slice(0,r.l):r}function ji(t){var r=t.read_shift(4),e=t.read_shift(2);return e+=t.read_shift(1)<<16,t.l++,{c:r,iStyleRef:e}}function Fs(t,r){return r==null&&(r=Kt(8)),r.write_shift(-4,t.c),r.write_shift(3,t.iStyleRef||t.s),r.write_shift(1,0),r}function js(t){var r=t.read_shift(2);return r+=t.read_shift(1)<<16,t.l++,{c:-1,iStyleRef:r}}function Ls(t,r){return r==null&&(r=Kt(4)),r.write_shift(3,t.iStyleRef||t.s),r.write_shift(1,0),r}var Qw=qn,o1=An;function Pf(t){var r=t.read_shift(4);return r===0||r===4294967295?"":t.read_shift(r,"dbcs")}function Il(t,r){var e=!1;return r==null&&(e=!0,r=Kt(127)),r.write_shift(4,t.length>0?t.length:4294967295),t.length>0&&r.write_shift(0,t,"dbcs"),e?r.slice(0,r.l):r}var t3=qn,Df=Pf,Ff=Il;function jf(t){var r=t.slice(t.l,t.l+4),e=1&r[0],n=2&r[0];t.l+=4;var a=n===0?Ol([0,0,0,0,252&r[0],r[1],r[2],r[3]],0):Ps(r,0)>>2;return e?a/100:a}function c1(t,r){r==null&&(r=Kt(4));var e=0,n=0,a=100*t;if(t==(0|t)&&t>=-(1<<29)&&t<1<<29?n=1:a==(0|a)&&a>=-(1<<29)&&a<1<<29&&(n=1,e=1),!n)throw new Error("unsupported RkNumber "+t);r.write_shift(-4,((e?a:t)<<2)+(e+2))}function l1(t){var r={s:{},e:{}};return r.s.r=t.read_shift(4),r.e.r=t.read_shift(4),r.s.c=t.read_shift(4),r.e.c=t.read_shift(4),r}var Bs=l1,wo=function(t,r){return r||(r=Kt(16)),r.write_shift(4,t.s.r),r.write_shift(4,t.e.r),r.write_shift(4,t.s.c),r.write_shift(4,t.e.c),r};function Gn(t){if(t.length-t.l<8)throw"XLS Xnum Buffer underflow";return t.read_shift(8,"f")}function _o(t,r){return(r||Kt(8)).write_shift(8,t,"f")}function Nl(t,r){if(r||(r=Kt(8)),!t||t.auto)return r.write_shift(4,0),r.write_shift(4,0),r;t.index!=null?(r.write_shift(1,2),r.write_shift(1,t.index)):t.theme!=null?(r.write_shift(1,6),r.write_shift(1,t.theme)):(r.write_shift(1,5),r.write_shift(1,0));var e=t.tint||0;if(e>0?e*=32767:e<0&&(e*=32768),r.write_shift(2,e),t.rgb&&t.theme==null){var n=t.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),r.write_shift(1,parseInt(n.slice(0,2),16)),r.write_shift(1,parseInt(n.slice(2,4),16)),r.write_shift(1,parseInt(n.slice(4,6),16)),r.write_shift(1,255)}else r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);return r}function u1(t,r){var e=t.read_shift(4);switch(e){case 0:return"";case 4294967295:case 4294967294:return{2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"}[t.read_shift(4)]||""}if(e>400)throw new Error("Unsupported Clipboard: "+e.toString(16));return t.l-=4,t.read_shift(0,r==1?"lpstr":"lpwstr")}var Lf=2,vi=3,f1=12,Rn=80,h1=81,e3=[Rn,h1],Bf={1:{n:"CodePage",t:Lf},2:{n:"Category",t:Rn},3:{n:"PresentationFormat",t:Rn},4:{n:"ByteCount",t:vi},5:{n:"LineCount",t:vi},6:{n:"ParagraphCount",t:vi},7:{n:"SlideCount",t:vi},8:{n:"NoteCount",t:vi},9:{n:"HiddenCount",t:vi},10:{n:"MultimediaClipCount",t:vi},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:Rn},15:{n:"Company",t:Rn},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:vi},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:vi,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:Rn},27:{n:"ContentStatus",t:Rn},28:{n:"Language",t:Rn},29:{n:"Version",t:Rn},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},zf={1:{n:"CodePage",t:Lf},2:{n:"Title",t:Rn},3:{n:"Subject",t:Rn},4:{n:"Author",t:Rn},5:{n:"Keywords",t:Rn},6:{n:"Comments",t:Rn},7:{n:"Template",t:Rn},8:{n:"LastAuthor",t:Rn},9:{n:"RevNumber",t:Rn},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:vi},15:{n:"WordCount",t:vi},16:{n:"CharCount",t:vi},17:{n:"Thumbnail",t:71},18:{n:"Application",t:Rn},19:{n:"DocSecurity",t:vi},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},d1={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},r3=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function n3(t){return t.map(function(r){return[r>>16&255,r>>8&255,255&r]})}var ko=Wr(n3([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),Ba={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},p1={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},Uf={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Pl={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function m1(t,r){var e,n=function(c){for(var l=[],u=nn(c),f=0;f!==u.length;++f)l[c[u[f]]]==null&&(l[c[u[f]]]=[]),l[c[u[f]]].push(u[f]);return l}(Uf),a=[];a[a.length]=an,a[a.length]=we("Types",null,{xmlns:vn.CT,"xmlns:xsd":vn.xsd,"xmlns:xsi":vn.xsi}),a=a.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(c){return we("Default",null,{Extension:c[0],ContentType:c[1]})}));var o=function(c){t[c]&&t[c].length>0&&(e=t[c][0],a[a.length]=we("Override",null,{PartName:(e[0]=="/"?"":"/")+e,ContentType:Pl[c][r.bookType]||Pl[c].xlsx}))},s=function(c){(t[c]||[]).forEach(function(l){a[a.length]=we("Override",null,{PartName:(l[0]=="/"?"":"/")+l,ContentType:Pl[c][r.bookType]||Pl[c].xlsx})})},i=function(c){(t[c]||[]).forEach(function(l){a[a.length]=we("Override",null,{PartName:(l[0]=="/"?"":"/")+l,ContentType:n[c][0]})})};return o("workbooks"),s("sheets"),s("charts"),i("themes"),["strs","styles"].forEach(o),["coreprops","extprops","custprops"].forEach(i),i("vba"),i("comments"),i("threadedcomments"),i("drawings"),s("metadata"),i("people"),a.length>2&&(a[a.length]="</Types>",a[1]=a[1].replace("/>",">")),a.join("")}var br={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function yc(t){var r=t.lastIndexOf("/");return t.slice(0,r+1)+"_rels/"+t.slice(r+1)+".rels"}function wc(t,r){var e={"!id":{}};if(!t)return e;r.charAt(0)!=="/"&&(r="/"+r);var n={};return(t.match(Vn)||[]).forEach(function(a){var o=tr(a);if(o[0]==="<Relationship"){var s={};s.Type=o.Type,s.Target=o.Target,s.Id=o.Id,o.TargetMode&&(s.TargetMode=o.TargetMode);var i=o.TargetMode==="External"?o.Target:uc(o.Target,r);e[i]=s,n[o.Id]=s}}),e["!id"]=n,e}function xo(t){var r=[an,we("Relationships",null,{xmlns:vn.RELS})];return nn(t["!id"]).forEach(function(e){r[r.length]=we("Relationship",null,t["!id"][e])}),r.length>2&&(r[r.length]="</Relationships>",r[1]=r[1].replace("/>",">")),r.join("")}function Pr(t,r,e,n,a,o){if(a||(a={}),t["!id"]||(t["!id"]={}),t["!idx"]||(t["!idx"]=1),r<0)for(r=t["!idx"];t["!id"]["rId"+r];++r);if(t["!idx"]=r+1,a.Id="rId"+r,a.Type=n,a.Target=e,o?a.TargetMode=o:[br.HLINK,br.XPATH,br.XMISS].indexOf(a.Type)>-1&&(a.TargetMode="External"),t["!id"][a.Id])throw new Error("Cannot rewrite rId "+r);return t["!id"][a.Id]=a,t[("/"+a.Target).replace("//","/")]=a,r}var i3="application/vnd.oasis.opendocument.spreadsheet";function v1(t,r,e){return[' <rdf:Description rdf:about="'+t+`">
|
||
`,' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(e||"odf")+"#"+r+`"/>
|
||
`,` </rdf:Description>
|
||
`].join("")}function g1(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+pf.version+"</meta:generator></office:meta></office:document-meta>"}var Li=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],a3=function(){for(var t=new Array(Li.length),r=0;r<Li.length;++r){var e=Li[r],n="(?:"+e[0].slice(0,e[0].indexOf(":"))+":)"+e[0].slice(e[0].indexOf(":")+1);t[r]=new RegExp("<"+n+"[^>]*>([\\s\\S]*?)</"+n+">")}return t}();function b1(t){var r={};t=Lr(t);for(var e=0;e<Li.length;++e){var n=Li[e],a=t.match(a3[e]);a!=null&&a.length>0&&(r[n[1]]=Tr(a[1])),n[2]==="date"&&r[n[1]]&&(r[n[1]]=Gr(r[n[1]]))}return r}function Hf(t,r,e,n,a){a[t]==null&&r!=null&&r!==""&&(a[t]=r,r=Nr(r),n[n.length]=e?we(t,r,e):Pn(t,r))}function y1(t,r){var e=r||{},n=[an,we("cp:coreProperties",null,{"xmlns:cp":vn.CORE_PROPS,"xmlns:dc":vn.dc,"xmlns:dcterms":vn.dcterms,"xmlns:dcmitype":vn.dcmitype,"xmlns:xsi":vn.xsi})],a={};if(!t&&!e.Props)return n.join("");t&&(t.CreatedDate!=null&&Hf("dcterms:created",typeof t.CreatedDate=="string"?t.CreatedDate:Af(t.CreatedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a),t.ModifiedDate!=null&&Hf("dcterms:modified",typeof t.ModifiedDate=="string"?t.ModifiedDate:Af(t.ModifiedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a));for(var o=0;o!=Li.length;++o){var s=Li[o],i=e.Props&&e.Props[s[1]]!=null?e.Props[s[1]]:t?t[s[1]]:null;i===!0?i="1":i===!1?i="0":typeof i=="number"&&(i=String(i)),i!=null&&Hf(s[0],i,null,n,a)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var zs=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],w1=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function _1(t,r,e,n){var a=[];if(typeof t=="string")a=Lp(t,n);else for(var o=0;o<t.length;++o)a=a.concat(t[o].map(function(u){return{v:u}}));var s=typeof r=="string"?Lp(r,n).map(function(u){return u.v}):r,i=0,c=0;if(s.length>0)for(var l=0;l!==a.length;l+=2){switch(c=+a[l+1].v,a[l].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":e.Worksheets=c,e.SheetNames=s.slice(i,i+c);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":e.NamedRanges=c,e.DefinedNames=s.slice(i,i+c);break;case"Charts":case"Diagramme":e.Chartsheets=c,e.ChartNames=s.slice(i,i+c)}i+=c}}function k1(t){var r=[],e=we;return t||(t={}),t.Application="SheetJS",r[r.length]=an,r[r.length]=we("Properties",null,{xmlns:vn.EXT_PROPS,"xmlns:vt":vn.vt}),zs.forEach(function(n){if(t[n[1]]!==void 0){var a;switch(n[2]){case"string":a=Nr(String(t[n[1]]));break;case"bool":a=t[n[1]]?"true":"false"}a!==void 0&&(r[r.length]=e(n[0],a))}}),r[r.length]=e("HeadingPairs",e("vt:vector",e("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+e("vt:variant",e("vt:i4",String(t.Worksheets))),{size:2,baseType:"variant"})),r[r.length]=e("TitlesOfParts",e("vt:vector",t.SheetNames.map(function(n){return"<vt:lpstr>"+Nr(n)+"</vt:lpstr>"}).join(""),{size:t.Worksheets,baseType:"lpstr"})),r.length>2&&(r[r.length]="</Properties>",r[1]=r[1].replace("/>",">")),r.join("")}var s3=/<[^>]+>[^<]*/g;function x1(t){var r=[an,we("Properties",null,{xmlns:vn.CUST_PROPS,"xmlns:vt":vn.vt})];if(!t)return r.join("");var e=1;return nn(t).forEach(function(n){++e,r[r.length]=we("property",function(a,o){switch(typeof a){case"string":var s=we("vt:lpwstr",Nr(a));return o&&(s=s.replace(/"/g,"_x0022_")),s;case"number":return we((0|a)==a?"vt:i4":"vt:r8",Nr(String(a)));case"boolean":return we("vt:bool",a?"true":"false")}if(a instanceof Date)return we("vt:filetime",Af(a));throw new Error("Unable to serialize "+a)}(t[n],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e,name:Nr(n)})}),r.length>2&&(r[r.length]="</Properties>",r[1]=r[1].replace("/>",">")),r.join("")}var Wf,Vf={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function o3(t,r,e){Wf||(Wf=El(Vf)),t[r=Wf[r]||r]=e}function $f(t){var r=t.read_shift(4),e=t.read_shift(4);return new Date(1e3*(e/1e7*Math.pow(2,32)+r/1e7-11644473600)).toISOString().replace(/\.000/,"")}function S1(t,r,e){var n=t.l,a=t.read_shift(0,"lpstr-cp");if(e)for(;t.l-n&3;)++t.l;return a}function T1(t,r,e){var n=t.read_shift(0,"lpwstr");return e&&(t.l+=4-(n.length+1&3)&3),n}function E1(t,r,e){return r===31?T1(t):S1(t,0,e)}function C1(t,r,e){return E1(t,r,e===!1?0:4)}function c3(t){var r=t.l,e=Dl(t,h1);return t[t.l]==0&&t[t.l+1]==0&&t.l-r&2&&(t.l+=2),[e,Dl(t,vi)]}function A1(t,r){for(var e=t.read_shift(4),n={},a=0;a!=e;++a){var o=t.read_shift(4),s=t.read_shift(4);n[o]=t.read_shift(s,r===1200?"utf16le":"utf8").replace(ri,"").replace(sc,"!"),r===1200&&s%2&&(t.l+=2)}return 3&t.l&&(t.l=t.l>>3<<2),n}function R1(t){var r=t.read_shift(4),e=t.slice(t.l,t.l+r);return t.l+=r,(3&r)>0&&(t.l+=4-(3&r)&3),e}function Dl(t,r,e){var n,a=t.read_shift(2),o=e||{};if(t.l+=2,r!==f1&&a!==r&&e3.indexOf(r)===-1&&((65534&r)!=4126||(65534&a)!=4126))throw new Error("Expected type "+r+" saw "+a);switch(r===f1?a:r){case 2:return n=t.read_shift(2,"i"),o.raw||(t.l+=2),n;case 3:return n=t.read_shift(4,"i");case 11:return t.read_shift(4)!==0;case 19:return n=t.read_shift(4);case 30:return S1(t,0,4).replace(ri,"");case 31:return T1(t);case 64:return $f(t);case 65:return R1(t);case 71:return function(s){var i={};return i.Size=s.read_shift(4),s.l+=i.Size+3-(i.Size-1)%4,i}(t);case 80:return C1(t,a,!o.raw).replace(ri,"");case 81:return function(s,i){if(!i)throw new Error("VtUnalignedString must have positive length");return E1(s,i,0)}(t,a).replace(ri,"");case 4108:return function(s){for(var i=s.read_shift(4),c=[],l=0;l<i/2;++l)c.push(c3(s));return c}(t);case 4126:case 4127:return a==4127?function(s){for(var i=s.read_shift(4),c=[],l=0;l!=i;++l){var u=s.l;c[l]=s.read_shift(0,"lpwstr").replace(ri,""),s.l-u&2&&(s.l+=2)}return c}(t):function(s){for(var i=s.read_shift(4),c=[],l=0;l!=i;++l)c[l]=s.read_shift(0,"lpstr-cp").replace(ri,"");return c}(t);default:throw new Error("TypedPropertyValue unrecognized type "+r+" "+a)}}function M1(t,r){var e=Kt(4),n=Kt(4);switch(e.write_shift(4,t==80?31:t),t){case 3:n.write_shift(-4,r);break;case 5:(n=Kt(8)).write_shift(8,r,"f");break;case 11:n.write_shift(4,r?1:0);break;case 64:n=function(a){var o=(typeof a=="string"?new Date(Date.parse(a)):a).getTime()/1e3+11644473600,s=o%Math.pow(2,32),i=(o-s)/Math.pow(2,32);i*=1e7;var c=(s*=1e7)/Math.pow(2,32)|0;c>0&&(s%=Math.pow(2,32),i+=c);var l=Kt(8);return l.write_shift(4,s),l.write_shift(4,i),l}(r);break;case 31:case 80:for((n=Kt(4+2*(r.length+1)+(r.length%2?0:2))).write_shift(4,r.length+1),n.write_shift(0,r,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+r)}return En([e,n])}function O1(t,r){var e=t.l,n=t.read_shift(4),a=t.read_shift(4),o=[],s=0,i=0,c=-1,l={};for(s=0;s!=a;++s){var u=t.read_shift(4),f=t.read_shift(4);o[s]=[u,f+e]}o.sort(function(g,y){return g[1]-y[1]});var h={};for(s=0;s!=a;++s){if(t.l!==o[s][1]){var d=!0;if(s>0&&r)switch(r[o[s-1][0]].t){case 2:t.l+2===o[s][1]&&(t.l+=2,d=!1);break;case 80:case 4108:t.l<=o[s][1]&&(t.l=o[s][1],d=!1)}if((!r||s==0)&&t.l<=o[s][1]&&(d=!1,t.l=o[s][1]),d)throw new Error("Read Error: Expected address "+o[s][1]+" at "+t.l+" :"+s)}if(r){var p=r[o[s][0]];if(h[p.n]=Dl(t,p.t,{raw:!0}),p.p==="version"&&(h[p.n]=String(h[p.n]>>16)+"."+("0000"+String(65535&h[p.n])).slice(-4)),p.n=="CodePage")switch(h[p.n]){case 0:h[p.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:ra(i=h[p.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+h[p.n])}}else if(o[s][0]===1){if(i=h.CodePage=Dl(t,Lf),ra(i),c!==-1){var m=t.l;t.l=o[c][1],l=A1(t,i),t.l=m}}else if(o[s][0]===0){if(i===0){c=s,t.l=o[s+1][1];continue}l=A1(t,i)}else{var v,b=l[o[s][0]];switch(t[t.l]){case 65:t.l+=4,v=R1(t);break;case 30:case 31:t.l+=4,v=C1(t,t[t.l-4]).replace(/\u0000+$/,"");break;case 3:t.l+=4,v=t.read_shift(4,"i");break;case 19:t.l+=4,v=t.read_shift(4);break;case 5:t.l+=4,v=t.read_shift(8,"f");break;case 11:t.l+=4,v=sn(t,4);break;case 64:t.l+=4,v=Gr($f(t));break;default:throw new Error("unparsed value: "+t[t.l])}h[b]=v}}return t.l=e+n,h}var I1=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function l3(t){switch(typeof t){case"boolean":return 11;case"number":return(0|t)==t?3:5;case"string":return 31;case"object":if(t instanceof Date)return 64}return-1}function N1(t,r,e){var n=Kt(8),a=[],o=[],s=8,i=0,c=Kt(8),l=Kt(8);if(c.write_shift(4,2),c.write_shift(4,1200),l.write_shift(4,1),o.push(c),a.push(l),s+=8+c.length,!r){(l=Kt(8)).write_shift(4,0),a.unshift(l);var u=[Kt(4)];for(u[0].write_shift(4,t.length),i=0;i<t.length;++i){var f=t[i][0];for((c=Kt(8+2*(f.length+1)+(f.length%2?0:2))).write_shift(4,i+2),c.write_shift(4,f.length+1),c.write_shift(0,f,"dbcs");c.l!=c.length;)c.write_shift(1,0);u.push(c)}c=En(u),o.unshift(c),s+=8+c.length}for(i=0;i<t.length;++i)if((!r||r[t[i][0]])&&!(I1.indexOf(t[i][0])>-1||w1.indexOf(t[i][0])>-1)&&t[i][1]!=null){var h=t[i][1],d=0;if(r){var p=e[d=+r[t[i][0]]];if(p.p=="version"&&typeof h=="string"){var m=h.split(".");h=(+m[0]<<16)+(+m[1]||0)}c=M1(p.t,h)}else{var v=l3(h);v==-1&&(v=31,h=String(h)),c=M1(v,h)}o.push(c),(l=Kt(8)).write_shift(4,r?d:2+i),a.push(l),s+=8+c.length}var b=8*(o.length+1);for(i=0;i<o.length;++i)a[i].write_shift(4,b),b+=o[i].length;return n.write_shift(4,s),n.write_shift(4,o.length),En([n].concat(a).concat(o))}function P1(t,r,e){var n=t.content;if(!n)return{};Dn(n,0);var a,o,s,i,c=0;n.chk("feff","Byte Order: "),n.read_shift(2);var l=n.read_shift(4),u=n.read_shift(16);if(u!==Ve.utils.consts.HEADER_CLSID&&u!==e)throw new Error("Bad PropertySet CLSID "+u);if((a=n.read_shift(4))!==1&&a!==2)throw new Error("Unrecognized #Sets: "+a);if(o=n.read_shift(16),i=n.read_shift(4),a===1&&i!==n.l)throw new Error("Length mismatch: "+i+" !== "+n.l);a===2&&(s=n.read_shift(16),c=n.read_shift(4));var f,h=O1(n,r),d={SystemIdentifier:l};for(var p in h)d[p]=h[p];if(d.FMTID=o,a===1)return d;if(c-n.l==2&&(n.l+=2),n.l!==c)throw new Error("Length mismatch 2: "+n.l+" !== "+c);try{f=O1(n,null)}catch(m){}for(p in f)d[p]=f[p];return d.FMTID=[o,s],d}function D1(t,r,e,n,a,o){var s=Kt(a?68:48),i=[s];s.write_shift(2,65534),s.write_shift(2,0),s.write_shift(4,842412599),s.write_shift(16,Ve.utils.consts.HEADER_CLSID,"hex"),s.write_shift(4,a?2:1),s.write_shift(16,r,"hex"),s.write_shift(4,a?68:48);var c=N1(t,e,n);if(i.push(c),a){var l=N1(a,null,null);s.write_shift(16,o,"hex"),s.write_shift(4,68+c.length),i.push(l)}return En(i)}function os(t,r){return t.read_shift(r),null}function sn(t,r){return t.read_shift(r)===1}function ii(t,r){return r||(r=Kt(2)),r.write_shift(2,+!!t),r}function pn(t){return t.read_shift(2,"u")}function Bi(t,r){return r||(r=Kt(2)),r.write_shift(2,t),r}function F1(t,r){return function(e,n,a){for(var o=[],s=e.l+n;e.l<s;)o.push(a(e,s-e.l));if(s!==e.l)throw new Error("Slurp error");return o}(t,r,pn)}function j1(t,r,e){return e||(e=Kt(2)),e.write_shift(1,r=="e"?+t:+!!t),e.write_shift(1,r=="e"?1:0),e}function _c(t,r,e){var n=t.read_shift(e&&e.biff>=12?2:1),a="sbcs-cont";return e&&e.biff,e&&e.biff!=8?e.biff==12&&(a="wstr"):t.read_shift(1)&&(a="dbcs-cont"),e.biff>=2&&e.biff<=5&&(a="cpstr"),n?t.read_shift(n,a):""}function u3(t){var r,e=t.read_shift(2),n=t.read_shift(1),a=4&n,o=8&n,s=1+(1&n),i=0,c={};o&&(i=t.read_shift(2)),a&&(r=t.read_shift(4));var l=s==2?"dbcs-cont":"sbcs-cont",u=e===0?"":t.read_shift(e,l);return o&&(t.l+=4*i),a&&(t.l+=r),c.t=u,o||(c.raw="<t>"+c.t+"</t>",c.r=c.t),c}function f3(t){var r=t.t||"",e=Kt(3);e.write_shift(2,r.length),e.write_shift(1,1);var n=Kt(2*r.length);return n.write_shift(2*r.length,r,"utf16le"),En([e,n])}function Us(t,r,e){if(e){if(e.biff>=2&&e.biff<=5)return t.read_shift(r,"cpstr");if(e.biff>=12)return t.read_shift(r,"dbcs-cont")}return t.read_shift(1)===0?t.read_shift(r,"sbcs-cont"):t.read_shift(r,"dbcs-cont")}function kc(t,r,e){var n=t.read_shift(e&&e.biff==2?1:2);return n===0?(t.l++,""):Us(t,n,e)}function Hs(t,r,e){if(e.biff>5)return kc(t,0,e);var n=t.read_shift(1);return n===0?(t.l++,""):t.read_shift(n,e.biff<=4||!t.lens?"cpstr":"sbcs-cont")}function L1(t,r,e){return e||(e=Kt(3+2*t.length)),e.write_shift(2,t.length),e.write_shift(1,1),e.write_shift(31,t,"utf16le"),e}function h3(t,r){var e=t.read_shift(16);switch(e){case"e0c9ea79f9bace118c8200aa004ba90b":return function(n){var a=n.read_shift(4),o=n.l,s=!1;a>24&&(n.l+=a-24,n.read_shift(16)==="795881f43b1d7f48af2c825dc4852763"&&(s=!0),n.l=o);var i=n.read_shift((s?a-24:a)>>1,"utf16le").replace(ri,"");return s&&(n.l+=24),i}(t);case"0303000000000000c000000000000046":return function(n){for(var a=n.read_shift(2),o="";a-- >0;)o+="../";var s=n.read_shift(0,"lpstr-ansi");if(n.l+=2,n.read_shift(2)!=57005)throw new Error("Bad FileMoniker");if(n.read_shift(4)===0)return o+s.replace(/\\/g,"/");var i=n.read_shift(4);if(n.read_shift(2)!=3)throw new Error("Bad FileMoniker");return o+n.read_shift(i>>1,"utf16le").replace(ri,"")}(t);default:throw new Error("Unsupported Moniker "+e)}}function Fl(t){var r=t.read_shift(4);return r>0?t.read_shift(r,"utf16le").replace(ri,""):""}function B1(t,r){r||(r=Kt(6+2*t.length)),r.write_shift(4,1+t.length);for(var e=0;e<t.length;++e)r.write_shift(2,t.charCodeAt(e));return r.write_shift(2,0),r}function d3(t){var r=Kt(512),e=0,n=t.Target;n.slice(0,7)=="file://"&&(n=n.slice(7));var a=n.indexOf("#"),o=a>-1?31:23;switch(n.charAt(0)){case"#":o=28;break;case".":o&=-3}r.write_shift(4,2),r.write_shift(4,o);var s=[8,6815827,6619237,4849780,83];for(e=0;e<s.length;++e)r.write_shift(4,s[e]);if(o==28)B1(n=n.slice(1),r);else if(2&o){for(s="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),e=0;e<s.length;++e)r.write_shift(1,parseInt(s[e],16));var i=a>-1?n.slice(0,a):n;for(r.write_shift(4,2*(i.length+1)),e=0;e<i.length;++e)r.write_shift(2,i.charCodeAt(e));r.write_shift(2,0),8&o&&B1(a>-1?n.slice(a+1):"",r)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),e=0;e<s.length;++e)r.write_shift(1,parseInt(s[e],16));for(var c=0;n.slice(3*c,3*c+3)=="../"||n.slice(3*c,3*c+3)=="..\\";)++c;for(r.write_shift(2,c),r.write_shift(4,n.length-3*c+1),e=0;e<n.length-3*c;++e)r.write_shift(1,255&n.charCodeAt(e+3*c));for(r.write_shift(1,0),r.write_shift(2,65535),r.write_shift(2,57005),e=0;e<6;++e)r.write_shift(4,0)}return r.slice(0,r.l)}function z1(t){return[t.read_shift(1),t.read_shift(1),t.read_shift(1),t.read_shift(1)]}function U1(t,r){var e=z1(t);return e[3]=0,e}function ba(t){return{r:t.read_shift(2),c:t.read_shift(2),ixfe:t.read_shift(2)}}function Ws(t,r,e,n){return n||(n=Kt(6)),n.write_shift(2,t),n.write_shift(2,r),n.write_shift(2,e||0),n}function p3(t,r,e){var n=e.biff>8?4:2;return[t.read_shift(n),t.read_shift(n,"i"),t.read_shift(n,"i")]}function H1(t){return[t.read_shift(2),jf(t)]}function jl(t){var r=t.read_shift(2),e=t.read_shift(2);return{s:{c:t.read_shift(2),r},e:{c:t.read_shift(2),r:e}}}function W1(t,r){return r||(r=Kt(8)),r.write_shift(2,t.s.r),r.write_shift(2,t.e.r),r.write_shift(2,t.s.c),r.write_shift(2,t.e.c),r}function V1(t){var r=t.read_shift(2),e=t.read_shift(2);return{s:{c:t.read_shift(1),r},e:{c:t.read_shift(1),r:e}}}var m3=V1;function $1(t){t.l+=4;var r=t.read_shift(2),e=t.read_shift(2),n=t.read_shift(2);return t.l+=12,[e,r,n]}function Yn(t){t.l+=2,t.l+=t.read_shift(2)}var v3={0:Yn,4:Yn,5:Yn,6:Yn,7:function(t){return t.l+=4,t.cf=t.read_shift(2),{}},8:Yn,9:Yn,10:Yn,11:Yn,12:Yn,13:function(t){var r={};return t.l+=4,t.l+=16,r.fSharedNote=t.read_shift(2),t.l+=4,r},14:Yn,15:Yn,16:Yn,17:Yn,18:Yn,19:Yn,20:Yn,21:$1};function Ll(t,r){var e={BIFFVer:0,dt:0};switch(e.BIFFVer=t.read_shift(2),(r-=2)>=2&&(e.dt=t.read_shift(2),t.l-=2),e.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(r>6)throw new Error("Unexpected BIFF Ver "+e.BIFFVer)}return t.read_shift(r),e}function qf(t,r,e){var n=1536,a=16;switch(e.bookType){case"biff8":case"xla":break;case"biff5":n=1280,a=8;break;case"biff4":n=4,a=6;break;case"biff3":n=3,a=6;break;case"biff2":n=2,a=4;break;default:throw new Error("unsupported BIFF version")}var o=Kt(a);return o.write_shift(2,n),o.write_shift(2,r),a>4&&o.write_shift(2,29282),a>6&&o.write_shift(2,1997),a>8&&(o.write_shift(2,49161),o.write_shift(2,1),o.write_shift(2,1798),o.write_shift(2,0)),o}function g3(t,r){var e=!r||r.biff>=8?2:1,n=Kt(8+e*t.name.length);n.write_shift(4,t.pos),n.write_shift(1,t.hs||0),n.write_shift(1,t.dt),n.write_shift(1,t.name.length),r.biff>=8&&n.write_shift(1,1),n.write_shift(e*t.name.length,t.name,r.biff<8?"sbcs":"utf16le");var a=n.slice(0,n.l);return a.l=n.l,a}function q1(t,r,e){var n=0;e&&e.biff==2||(n=t.read_shift(2));var a=t.read_shift(2);return e&&e.biff==2&&(n=1-(a>>15),a&=32767),[{Unsynced:1&n,DyZero:(2&n)>>1,ExAsc:(4&n)>>2,ExDsc:(8&n)>>3},a]}function b3(t,r,e,n){var a=e&&e.biff==5;n||(n=Kt(a?3+r.length:5+2*r.length)),n.write_shift(2,t),n.write_shift(a?1:2,r.length),a||n.write_shift(1,1),n.write_shift((a?1:2)*r.length,r,a?"sbcs":"utf16le");var o=n.length>n.l?n.slice(0,n.l):n;return o.l==null&&(o.l=o.length),o}var y3=Hs;function G1(t,r,e){var n=t.l+r,a=e.biff!=8&&e.biff?2:4,o=t.read_shift(a),s=t.read_shift(a),i=t.read_shift(2),c=t.read_shift(2);return t.l=n,{s:{r:o,c:i},e:{r:s,c}}}function Y1(t,r,e,n){var a=e&&e.biff==5;n||(n=Kt(a?16:20)),n.write_shift(2,0),t.style?(n.write_shift(2,t.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,t.numFmtId||0),n.write_shift(2,r<<4));var o=0;return t.numFmtId>0&&a&&(o|=1024),n.write_shift(4,o),n.write_shift(4,0),a||n.write_shift(4,0),n.write_shift(2,0),n}function K1(t,r,e){var n=ba(t);e.biff!=2&&r!=9||++t.l;var a=function(o){var s=o.read_shift(1);return o.read_shift(1)===1?s:s===1}(t);return n.val=a,n.t=a===!0||a===!1?"b":"e",n}var X1=function(t,r,e){return r===0?"":Hs(t,0,e)};function Z1(t,r,e){var n,a=t.read_shift(2),o={fBuiltIn:1&a,fWantAdvise:a>>>1&1,fWantPict:a>>>2&1,fOle:a>>>3&1,fOleLink:a>>>4&1,cf:a>>>5&1023,fIcon:a>>>15&1};return e.sbcch===14849&&(n=function(s,i,c){s.l+=4,i-=4;var l=s.l+i,u=_c(s,0,c),f=s.read_shift(2);if(f!==(l-=s.l))throw new Error("Malformed AddinUdf: padding = "+l+" != "+f);return s.l+=f,u}(t,r-2,e)),o.body=n||t.read_shift(r-2),typeof n=="string"&&(o.Name=n),o}var w3=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function J1(t,r,e){var n=t.l+r,a=t.read_shift(2),o=t.read_shift(1),s=t.read_shift(1),i=t.read_shift(e&&e.biff==2?1:2),c=0;(!e||e.biff>=5)&&(e.biff!=5&&(t.l+=2),c=t.read_shift(2),e.biff==5&&(t.l+=2),t.l+=4);var l=Us(t,s,e);32&a&&(l=w3[l.charCodeAt(0)]);var u=n-t.l;e&&e.biff==2&&--u;var f=n!=t.l&&i!==0&&u>0?function(h,d,p,m){var v,b=h.l+d,g=Mc(h,m,p);return b!==h.l&&(v=Rc(h,b-h.l,g,p)),[g,v]}(t,u,e,i):[];return{chKey:o,Name:l,itab:c,rgce:f}}function Q1(t,r,e){if(e.biff<8)return function(s,i,c){s[s.l+1]==3&&s[s.l]++;var l=_c(s,0,c);return l.charCodeAt(0)==3?l.slice(1):l}(t,0,e);for(var n=[],a=t.l+r,o=t.read_shift(e.biff>8?4:2);o--!=0;)n.push(p3(t,e.biff,e));if(t.l!=a)throw new Error("Bad ExternSheet: "+t.l+" != "+a);return n}function tm(t,r,e){var n=m3(t);switch(e.biff){case 2:t.l++,r-=7;break;case 3:case 4:t.l+=2,r-=8;break;default:t.l+=6,r-=12}return[n,O4(t,r,e)]}var _3={8:function(t,r){var e=t.l+r;t.l+=10;var n=t.read_shift(2);t.l+=4,t.l+=2,t.l+=2,t.l+=2,t.l+=4;var a=t.read_shift(1);return t.l+=a,t.l=e,{fmt:n}}};function k3(t){var r=Kt(24),e=gn(t[0]);r.write_shift(2,e.r),r.write_shift(2,e.r),r.write_shift(2,e.c),r.write_shift(2,e.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),a=0;a<16;++a)r.write_shift(1,parseInt(n[a],16));return En([r,d3(t[1])])}function x3(t){var r=t[1].Tooltip,e=Kt(10+2*(r.length+1));e.write_shift(2,2048);var n=gn(t[0]);e.write_shift(2,n.r),e.write_shift(2,n.r),e.write_shift(2,n.c),e.write_shift(2,n.c);for(var a=0;a<r.length;++a)e.write_shift(2,r.charCodeAt(a));return e.write_shift(2,0),e}function em(t,r,e){if(!e.cellStyles)return $n(t,r);var n=e&&e.biff>=12?4:2,a=t.read_shift(n),o=t.read_shift(n),s=t.read_shift(n),i=t.read_shift(n),c=t.read_shift(2);n==2&&(t.l+=2);var l={s:a,e:o,w:s,ixfe:i,flags:c};return(e.biff>=5||!e.biff)&&(l.level=c>>8&7),l}var S3=ba,T3=F1,E3=kc,C3=[2,3,48,49,131,139,140,245],Gf=function(){var t={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},r=El({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function e(a,o){var s=o||{};s.dateNF||(s.dateNF="yyyymmdd");var i=bc(function(c,l){var u=[],f=ns(1);switch(l.type){case"base64":f=Ti(Si(c));break;case"binary":f=Ti(c);break;case"buffer":case"array":f=c}Dn(f,0);var h=f.read_shift(1),d=!!(136&h),p=!1,m=!1;switch(h){case 2:case 3:case 131:case 139:case 245:break;case 48:case 49:p=!0,d=!0;break;case 140:m=!0;break;default:throw new Error("DBF Unsupported Version: "+h.toString(16))}var v=0,b=521;h==2&&(v=f.read_shift(2)),f.l+=3,h!=2&&(v=f.read_shift(4)),v>1048576&&(v=1e6),h!=2&&(b=f.read_shift(2));var g=f.read_shift(2),y=l.codepage||1252;h!=2&&(f.l+=16,f.read_shift(1),f[f.l]!==0&&(y=t[f[f.l]]),f.l+=1,f.l+=2),m&&(f.l+=36);for(var w=[],x={},C=Math.min(f.length,h==2?521:b-10-(p?264:0)),O=m?32:11;f.l<C&&f[f.l]!=13;)switch((x={}).name=es.utils.decode(y,f.slice(f.l,f.l+O)).replace(/[\u0000\r\n].*$/g,""),f.l+=O,x.type=String.fromCharCode(f.read_shift(1)),h==2||m||(x.offset=f.read_shift(4)),x.len=f.read_shift(1),h==2&&(x.offset=f.read_shift(2)),x.dec=f.read_shift(1),x.name.length&&w.push(x),h!=2&&(f.l+=m?13:14),x.type){case"B":p&&x.len==8||!l.WTF||console.log("Skipping "+x.name+":"+x.type);break;case"G":case"P":l.WTF&&console.log("Skipping "+x.name+":"+x.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+x.type)}if(f[f.l]!==13&&(f.l=b-1),f.read_shift(1)!==13)throw new Error("DBF Terminator not found "+f.l+" "+f[f.l]);f.l=b;var D=0,j=0;for(u[0]=[],j=0;j!=w.length;++j)u[0][j]=w[j].name;for(;v-- >0;)if(f[f.l]!==42)for(++f.l,u[++D]=[],j=0,j=0;j!=w.length;++j){var U=f.slice(f.l,f.l+w[j].len);f.l+=w[j].len,Dn(U,0);var L=es.utils.decode(y,U);switch(w[j].type){case"C":L.trim().length&&(u[D][j]=L.replace(/\s+$/,""));break;case"D":L.length===8?u[D][j]=new Date(+L.slice(0,4),+L.slice(4,6)-1,+L.slice(6,8)):u[D][j]=L;break;case"F":u[D][j]=parseFloat(L.trim());break;case"+":case"I":u[D][j]=m?2147483648^U.read_shift(-4,"i"):U.read_shift(4,"i");break;case"L":switch(L.trim().toUpperCase()){case"Y":case"T":u[D][j]=!0;break;case"N":case"F":u[D][j]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+L+"|")}break;case"M":if(!d)throw new Error("DBF Unexpected MEMO for type "+h.toString(16));u[D][j]="##MEMO##"+(m?parseInt(L.trim(),10):U.read_shift(4));break;case"N":(L=L.replace(/\u0000/g,"").trim())&&L!="."&&(u[D][j]=+L||0);break;case"@":u[D][j]=new Date(U.read_shift(-8,"f")-621356832e5);break;case"T":u[D][j]=new Date(864e5*(U.read_shift(4)-2440588)+U.read_shift(4));break;case"Y":u[D][j]=U.read_shift(4,"i")/1e4+U.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":u[D][j]=-U.read_shift(-8,"f");break;case"B":if(p&&w[j].len==8){u[D][j]=U.read_shift(8,"f");break}case"G":case"P":U.l+=w[j].len;break;case"0":if(w[j].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+w[j].type)}}else f.l+=g;if(h!=2&&f.l<f.length&&f[f.l++]!=26)throw new Error("DBF EOF Marker missing "+(f.l-1)+" of "+f.length+" "+f[f.l-1].toString(16));return l&&l.sheetRows&&(u=u.slice(0,l.sheetRows)),l.DBF=w,u}(a,s),s);return i["!cols"]=s.DBF.map(function(c){return{wch:c.len,DBF:c}}),delete s.DBF,i}var n={B:8,C:250,L:1,D:8,"?":0,"":0};return{to_workbook:function(a,o){try{return Ds(e(a,o),o)}catch(s){if(o&&o.WTF)throw s}return{SheetNames:[],Sheets:{}}},to_sheet:e,from_sheet:function(a,o){var s=o||{};if(+s.codepage>=0&&ra(+s.codepage),s.type=="string")throw new Error("Cannot write DBF to JS string");var i=mi(),c=cv(a,{header:1,raw:!0,cellDates:!0}),l=c[0],u=c.slice(1),f=a["!cols"]||[],h=0,d=0,p=0,m=1;for(h=0;h<l.length;++h)if(((f[h]||{}).DBF||{}).name)l[h]=f[h].DBF.name,++p;else if(l[h]!=null){if(++p,typeof l[h]=="number"&&(l[h]=l[h].toString(10)),typeof l[h]!="string")throw new Error("DBF Invalid column name "+l[h]+" |"+typeof l[h]+"|");if(l.indexOf(l[h])!==h){for(d=0;d<1024;++d)if(l.indexOf(l[h]+"_"+d)==-1){l[h]+="_"+d;break}}}var v=Mr(a["!ref"]),b=[],g=[],y=[];for(h=0;h<=v.e.c-v.s.c;++h){var w="",x="",C=0,O=[];for(d=0;d<u.length;++d)u[d][h]!=null&&O.push(u[d][h]);if(O.length!=0&&l[h]!=null){for(d=0;d<O.length;++d){switch(typeof O[d]){case"number":x="B";break;case"string":default:x="C";break;case"boolean":x="L";break;case"object":x=O[d]instanceof Date?"D":"C"}C=Math.max(C,String(O[d]).length),w=w&&w!=x?"C":x}C>250&&(C=250),(x=((f[h]||{}).DBF||{}).type)=="C"&&f[h].DBF.len>C&&(C=f[h].DBF.len),w=="B"&&x=="N"&&(w="N",y[h]=f[h].DBF.dec,C=f[h].DBF.len),g[h]=w=="C"||x=="N"?C:n[w]||0,m+=g[h],b[h]=w}else b[h]="?"}var D=i.next(32);for(D.write_shift(4,318902576),D.write_shift(4,u.length),D.write_shift(2,296+32*p),D.write_shift(2,m),h=0;h<4;++h)D.write_shift(4,0);for(D.write_shift(4,0|(+r[J0]||3)<<8),h=0,d=0;h<l.length;++h)if(l[h]!=null){var j=i.next(32),U=(l[h].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);j.write_shift(1,U,"sbcs"),j.write_shift(1,b[h]=="?"?"C":b[h],"sbcs"),j.write_shift(4,d),j.write_shift(1,g[h]||n[b[h]]||0),j.write_shift(1,y[h]||0),j.write_shift(1,2),j.write_shift(4,0),j.write_shift(1,0),j.write_shift(4,0),j.write_shift(4,0),d+=g[h]||n[b[h]]||0}var L=i.next(264);for(L.write_shift(4,13),h=0;h<65;++h)L.write_shift(4,0);for(h=0;h<u.length;++h){var V=i.next(m);for(V.write_shift(1,0),d=0;d<l.length;++d)if(l[d]!=null)switch(b[d]){case"L":V.write_shift(1,u[h][d]==null?63:u[h][d]?84:70);break;case"B":V.write_shift(8,u[h][d]||0,"f");break;case"N":var A="0";for(typeof u[h][d]=="number"&&(A=u[h][d].toFixed(y[d]||0)),p=0;p<g[d]-A.length;++p)V.write_shift(1,32);V.write_shift(1,A,"sbcs");break;case"D":u[h][d]?(V.write_shift(4,("0000"+u[h][d].getFullYear()).slice(-4),"sbcs"),V.write_shift(2,("00"+(u[h][d].getMonth()+1)).slice(-2),"sbcs"),V.write_shift(2,("00"+u[h][d].getDate()).slice(-2),"sbcs")):V.write_shift(8,"00000000","sbcs");break;case"C":var N=String(u[h][d]!=null?u[h][d]:"").slice(0,g[d]);for(V.write_shift(1,N,"sbcs"),p=0;p<g[d]-N.length;++p)V.write_shift(1,32)}}return i.next(1).write_shift(1,26),i.end()}}}(),rm=function(){var t={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},r=new RegExp("\x1BN("+nn(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),e=function(i,c){var l=t[c];return typeof l=="number"?ep(l):l},n=function(i,c,l){var u=c.charCodeAt(0)-32<<4|l.charCodeAt(0)-48;return u==59?i:ep(u)};function a(i,c){var l,u=i.split(/[\n\r]+/),f=-1,h=-1,d=0,p=0,m=[],v=[],b=null,g={},y=[],w=[],x=[],C=0;for(+c.codepage>=0&&ra(+c.codepage);d!==u.length;++d){C=0;var O,D=u[d].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(r,e),j=D.replace(/;;/g,"\0").split(";").map(function(F){return F.replace(/\u0000/g,";")}),U=j[0];if(D.length>0)switch(U){case"ID":case"E":case"B":case"O":case"W":break;case"P":j[1].charAt(0)=="P"&&v.push(D.slice(3).replace(/;;/g,";"));break;case"C":var L=!1,V=!1,A=!1,N=!1,k=-1,S=-1;for(p=1;p<j.length;++p)switch(j[p].charAt(0)){case"A":case"G":break;case"X":h=parseInt(j[p].slice(1))-1,V=!0;break;case"Y":for(f=parseInt(j[p].slice(1))-1,V||(h=0),l=m.length;l<=f;++l)m[l]=[];break;case"K":(O=j[p].slice(1)).charAt(0)==='"'?O=O.slice(1,O.length-1):O==="TRUE"?O=!0:O==="FALSE"?O=!1:isNaN(Fa(O))?isNaN(lc(O).getDate())||(O=Gr(O)):(O=Fa(O),b!==null&&go(b)&&(O=Rl(O))),L=!0;break;case"E":N=!0;var E=Co(j[p].slice(1),{r:f,c:h});m[f][h]=[m[f][h],E];break;case"S":A=!0,m[f][h]=[m[f][h],"S5S"];break;case"R":k=parseInt(j[p].slice(1))-1;break;case"C":S=parseInt(j[p].slice(1))-1;break;default:if(c&&c.WTF)throw new Error("SYLK bad record "+D)}if(L&&(m[f][h]&&m[f][h].length==2?m[f][h][0]=O:m[f][h]=O,b=null),A){if(N)throw new Error("SYLK shared formula cannot have own formula");var T=k>-1&&m[k][S];if(!T||!T[1])throw new Error("SYLK shared formula cannot find base");m[f][h][1]=km(T[1],{r:f-k,c:h-S})}break;case"F":var R=0;for(p=1;p<j.length;++p)switch(j[p].charAt(0)){case"X":h=parseInt(j[p].slice(1))-1,++R;break;case"Y":for(f=parseInt(j[p].slice(1))-1,l=m.length;l<=f;++l)m[l]=[];break;case"M":C=parseInt(j[p].slice(1))/20;break;case"F":case"G":case"S":case"D":case"N":break;case"P":b=v[parseInt(j[p].slice(1))];break;case"W":for(x=j[p].slice(1).split(" "),l=parseInt(x[0],10);l<=parseInt(x[1],10);++l)C=parseInt(x[2],10),w[l-1]=C===0?{hidden:!0}:{wch:C},cs(w[l-1]);break;case"C":w[h=parseInt(j[p].slice(1))-1]||(w[h]={});break;case"R":y[f=parseInt(j[p].slice(1))-1]||(y[f]={}),C>0?(y[f].hpt=C,y[f].hpx=To(C)):C===0&&(y[f].hidden=!0);break;default:if(c&&c.WTF)throw new Error("SYLK bad record "+D)}R<1&&(b=null);break;default:if(c&&c.WTF)throw new Error("SYLK bad record "+D)}}return y.length>0&&(g["!rows"]=y),w.length>0&&(g["!cols"]=w),c&&c.sheetRows&&(m=m.slice(0,c.sheetRows)),[m,g]}function o(i,c){var l=function(d,p){switch(p.type){case"base64":return a(Si(d),p);case"binary":return a(d,p);case"buffer":return a(mr&&Buffer.isBuffer(d)?d.toString("binary"):is(d),p);case"array":return a(Is(d),p)}throw new Error("Unrecognized type "+p.type)}(i,c),u=l[0],f=l[1],h=bc(u,c);return nn(f).forEach(function(d){h[d]=f[d]}),h}function s(i,c,l,u){var f="C;Y"+(l+1)+";X"+(u+1)+";K";switch(i.t){case"n":f+=i.v||0,i.f&&!i.F&&(f+=";E"+eh(i.f,{r:l,c:u}));break;case"b":f+=i.v?"TRUE":"FALSE";break;case"e":f+=i.w||i.v;break;case"d":f+='"'+(i.w||i.v)+'"';break;case"s":f+='"'+i.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return f}return t["|"]=254,{to_workbook:function(i,c){return Ds(o(i,c),c)},to_sheet:o,from_sheet:function(i,c){var l,u,f=["ID;PWXL;N;E"],h=[],d=Mr(i["!ref"]),p=Array.isArray(i),m=`\r
|
||
`;f.push("P;PGeneral"),f.push("F;P0;DG0G8;M255"),i["!cols"]&&(u=f,i["!cols"].forEach(function(y,w){var x="F;W"+(w+1)+" "+(w+1)+" ";y.hidden?x+="0":(typeof y.width!="number"||y.wpx||(y.wpx=Sc(y.width)),typeof y.wpx!="number"||y.wch||(y.wch=Tc(y.wpx)),typeof y.wch=="number"&&(x+=Math.round(y.wch))),x.charAt(x.length-1)!=" "&&u.push(x)})),i["!rows"]&&function(y,w){w.forEach(function(x,C){var O="F;";x.hidden?O+="M0;":x.hpt?O+="M"+20*x.hpt+";":x.hpx&&(O+="M"+20*Ec(x.hpx)+";"),O.length>2&&y.push(O+"R"+(C+1))})}(f,i["!rows"]),f.push("B;Y"+(d.e.r-d.s.r+1)+";X"+(d.e.c-d.s.c+1)+";D"+[d.s.c,d.s.r,d.e.c,d.e.r].join(" "));for(var v=d.s.r;v<=d.e.r;++v)for(var b=d.s.c;b<=d.e.c;++b){var g=nr({r:v,c:b});(l=p?(i[v]||[])[b]:i[g])&&(l.v!=null||l.f&&!l.F)&&h.push(s(l,0,v,b))}return f.join(m)+m+h.join(m)+m+"E"+m}}}(),nm=function(){function t(e,n){for(var a=e.split(`
|
||
`),o=-1,s=-1,i=0,c=[];i!==a.length;++i)if(a[i].trim()!=="BOT"){if(!(o<0)){for(var l=a[i].trim().split(","),u=l[0],f=l[1],h=a[++i]||"";1&(h.match(/["]/g)||[]).length&&i<a.length-1;)h+=`
|
||
`+a[++i];switch(h=h.trim(),+u){case-1:if(h==="BOT"){c[++o]=[],s=0;continue}if(h!=="EOD")throw new Error("Unrecognized DIF special command "+h);break;case 0:h==="TRUE"?c[o][s]=!0:h==="FALSE"?c[o][s]=!1:isNaN(Fa(f))?isNaN(lc(f).getDate())?c[o][s]=f:c[o][s]=Gr(f):c[o][s]=Fa(f),++s;break;case 1:(h=(h=h.slice(1,h.length-1)).replace(/""/g,'"'))&&h.match(/^=".*"$/)&&(h=h.slice(2,-1)),c[o][s++]=h!==""?h:null}if(h==="EOD")break}}else c[++o]=[],s=0;return n&&n.sheetRows&&(c=c.slice(0,n.sheetRows)),c}function r(e,n){return bc(function(a,o){switch(o.type){case"base64":return t(Si(a),o);case"binary":return t(a,o);case"buffer":return t(mr&&Buffer.isBuffer(a)?a.toString("binary"):is(a),o);case"array":return t(Is(a),o)}throw new Error("Unrecognized type "+o.type)}(e,n),n)}return{to_workbook:function(e,n){return Ds(r(e,n),n)},to_sheet:r,from_sheet:function(){var e=function(a,o,s,i,c){a.push(o),a.push(s+","+i),a.push('"'+c.replace(/"/g,'""')+'"')},n=function(a,o,s,i){a.push(o+","+s),a.push(o==1?'"'+i.replace(/"/g,'""')+'"':i)};return function(a){var o,s=[],i=Mr(a["!ref"]),c=Array.isArray(a);e(s,"TABLE",0,1,"sheetjs"),e(s,"VECTORS",0,i.e.r-i.s.r+1,""),e(s,"TUPLES",0,i.e.c-i.s.c+1,""),e(s,"DATA",0,0,"");for(var l=i.s.r;l<=i.e.r;++l){n(s,-1,0,"BOT");for(var u=i.s.c;u<=i.e.c;++u){var f=nr({r:l,c:u});if(o=c?(a[l]||[])[u]:a[f])switch(o.t){case"n":var h=o.w;h||o.v==null||(h=o.v),h==null?o.f&&!o.F?n(s,1,0,"="+o.f):n(s,1,0,""):n(s,0,h,"V");break;case"b":n(s,0,o.v?1:0,o.v?"TRUE":"FALSE");break;case"s":n(s,1,0,isNaN(o.v)?o.v:'="'+o.v+'"');break;case"d":o.w||(o.w=Pi(o.z||Qe[14],Nn(Gr(o.v)))),n(s,0,o.w,"V");break;default:n(s,1,0,"")}else n(s,1,0,"")}}return n(s,-1,0,"EOD"),s.join(`\r
|
||
`)}}()}}(),im=function(){function t(i){return i.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(i,c){return bc(function(l,u){for(var f=l.split(`
|
||
`),h=-1,d=-1,p=0,m=[];p!==f.length;++p){var v=f[p].trim().split(":");if(v[0]==="cell"){var b=gn(v[1]);if(m.length<=b.r)for(h=m.length;h<=b.r;++h)m[h]||(m[h]=[]);switch(h=b.r,d=b.c,v[2]){case"t":m[h][d]=v[3].replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
|
||
`);break;case"v":m[h][d]=+v[3];break;case"vtf":var g=v[v.length-1];case"vtc":v[3]==="nl"?m[h][d]=!!+v[4]:m[h][d]=+v[4],v[2]=="vtf"&&(m[h][d]=[m[h][d],g])}}}return u&&u.sheetRows&&(m=m.slice(0,u.sheetRows)),m}(i,c),c)}var e=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
|
||
`),n=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
|
||
`)+`
|
||
`,a=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
|
||
`),o="--SocialCalcSpreadsheetControlSave--";function s(i){if(!i||!i["!ref"])return"";for(var c,l=[],u=[],f="",h=Fi(i["!ref"]),d=Array.isArray(i),p=h.s.r;p<=h.e.r;++p)for(var m=h.s.c;m<=h.e.c;++m)if(f=nr({r:p,c:m}),(c=d?(i[p]||[])[m]:i[f])&&c.v!=null&&c.t!=="z"){switch(u=["cell",f,"t"],c.t){case"s":case"str":u.push(t(c.v));break;case"n":c.f?(u[2]="vtf",u[3]="n",u[4]=c.v,u[5]=t(c.f)):(u[2]="v",u[3]=c.v);break;case"b":u[2]="vt"+(c.f?"f":"c"),u[3]="nl",u[4]=c.v?"1":"0",u[5]=t(c.f||(c.v?"TRUE":"FALSE"));break;case"d":var v=Nn(Gr(c.v));u[2]="vtc",u[3]="nd",u[4]=""+v,u[5]=c.w||Pi(c.z||Qe[14],v);break;case"e":continue}l.push(u.join(":"))}return l.push("sheet:c:"+(h.e.c-h.s.c+1)+":r:"+(h.e.r-h.s.r+1)+":tvf:1"),l.push("valueformat:1:text-wiki"),l.join(`
|
||
`)}return{to_workbook:function(i,c){return Ds(r(i,c),c)},to_sheet:r,from_sheet:function(i){return[e,n,a,n,s(i),o].join(`
|
||
`)}}}(),So=function(){function t(i,c,l,u,f){f.raw?c[l][u]=i:i===""||(i==="TRUE"?c[l][u]=!0:i==="FALSE"?c[l][u]=!1:isNaN(Fa(i))?isNaN(lc(i).getDate())?c[l][u]=i:c[l][u]=Gr(i):c[l][u]=Fa(i))}var r={44:",",9:" ",59:";",124:"|"},e={44:3,9:2,59:1,124:0};function n(i){for(var c={},l=!1,u=0,f=0;u<i.length;++u)(f=i.charCodeAt(u))==34?l=!l:!l&&f in r&&(c[f]=(c[f]||0)+1);for(u in f=[],c)Object.prototype.hasOwnProperty.call(c,u)&&f.push([c[u],u]);if(!f.length)for(u in c=e)Object.prototype.hasOwnProperty.call(c,u)&&f.push([c[u],u]);return f.sort(function(h,d){return h[0]-d[0]||e[h[1]]-e[d[1]]}),r[f.pop()[1]]||44}function a(i,c){var l=c||{},u="",f=l.dense?[]:{},h={s:{c:0,r:0},e:{c:0,r:0}};i.slice(0,4)=="sep="?i.charCodeAt(5)==13&&i.charCodeAt(6)==10?(u=i.charAt(4),i=i.slice(7)):i.charCodeAt(5)==13||i.charCodeAt(5)==10?(u=i.charAt(4),i=i.slice(6)):u=n(i.slice(0,1024)):u=l&&l.FS?l.FS:n(i.slice(0,1024));var d=0,p=0,m=0,v=0,b=0,g=u.charCodeAt(0),y=!1,w=0,x=i.charCodeAt(0);i=i.replace(/\r\n/gm,`
|
||
`);var C,O,D=l.dateNF!=null?(C=l.dateNF,O=(O=typeof C=="number"?Qe[C]:C).replace(wp,"(\\d+)"),new RegExp("^"+O+"$")):null;function j(){var U=i.slice(v,b),L={};if(U.charAt(0)=='"'&&U.charAt(U.length-1)=='"'&&(U=U.slice(1,-1).replace(/""/g,'"')),U.length===0)L.t="z";else if(l.raw)L.t="s",L.v=U;else if(U.trim().length===0)L.t="s",L.v=U;else if(U.charCodeAt(0)==61)U.charCodeAt(1)==34&&U.charCodeAt(U.length-1)==34?(L.t="s",L.v=U.slice(2,-1).replace(/""/g,'"')):U.length!=1?(L.t="n",L.f=U.slice(1)):(L.t="s",L.v=U);else if(U=="TRUE")L.t="b",L.v=!0;else if(U=="FALSE")L.t="b",L.v=!1;else if(isNaN(m=Fa(U)))if(!isNaN(lc(U).getDate())||D&&U.match(D)){L.z=l.dateNF||Qe[14];var V=0;D&&U.match(D)&&(U=function(A,N,k){var S=-1,E=-1,T=-1,R=-1,F=-1,I=-1;(N.match(wp)||[]).forEach(function(H,Z){var Y=parseInt(k[Z+1],10);switch(H.toLowerCase().charAt(0)){case"y":S=Y;break;case"d":T=Y;break;case"h":R=Y;break;case"s":I=Y;break;case"m":R>=0?F=Y:E=Y}}),I>=0&&F==-1&&E>=0&&(F=E,E=-1);var B=(""+(S>=0?S:new Date().getFullYear())).slice(-4)+"-"+("00"+(E>=1?E:1)).slice(-2)+"-"+("00"+(T>=1?T:1)).slice(-2);B.length==7&&(B="0"+B),B.length==8&&(B="20"+B);var P=("00"+(R>=0?R:0)).slice(-2)+":"+("00"+(F>=0?F:0)).slice(-2)+":"+("00"+(I>=0?I:0)).slice(-2);return R==-1&&F==-1&&I==-1?B:S==-1&&E==-1&&T==-1?P:B+"T"+P}(0,l.dateNF,U.match(D)||[]),V=1),l.cellDates?(L.t="d",L.v=Gr(U,V)):(L.t="n",L.v=Nn(Gr(U,V))),l.cellText!==!1&&(L.w=Pi(L.z,L.v instanceof Date?Nn(L.v):L.v)),l.cellNF||delete L.z}else L.t="s",L.v=U;else L.t="n",l.cellText!==!1&&(L.w=U),L.v=m;if(L.t=="z"||(l.dense?(f[d]||(f[d]=[]),f[d][p]=L):f[nr({c:p,r:d})]=L),v=b+1,x=i.charCodeAt(v),h.e.c<p&&(h.e.c=p),h.e.r<d&&(h.e.r=d),w==g)++p;else if(p=0,++d,l.sheetRows&&l.sheetRows<=d)return!0}t:for(;b<i.length;++b)switch(w=i.charCodeAt(b)){case 34:x===34&&(y=!y);break;case g:case 10:case 13:if(!y&&j())break t}return b-v>0&&j(),f["!ref"]=wr(h),f}function o(i,c){return c&&c.PRN?c.FS||i.slice(0,4)=="sep="||i.indexOf(" ")>=0||i.indexOf(",")>=0||i.indexOf(";")>=0?a(i,c):bc(function(l,u){var f=u||{},h=[];if(!l||l.length===0)return h;for(var d=l.split(/[\r\n]/),p=d.length-1;p>=0&&d[p].length===0;)--p;for(var m=10,v=0,b=0;b<=p;++b)(v=d[b].indexOf(" "))==-1?v=d[b].length:v++,m=Math.max(m,v);for(b=0;b<=p;++b){h[b]=[];var g=0;for(t(d[b].slice(0,m).trim(),h,b,g,f),g=1;g<=(d[b].length-m)/10+1;++g)t(d[b].slice(m+10*(g-1),m+10*g).trim(),h,b,g,f)}return f.sheetRows&&(h=h.slice(0,f.sheetRows)),h}(i,c),c):a(i,c)}function s(i,c){var l="",u=c.type=="string"?[0,0,0,0]:bh(i,c);switch(c.type){case"base64":l=Si(i);break;case"binary":case"string":l=i;break;case"buffer":l=c.codepage==65001?i.toString("utf8"):c.codepage&&es!==void 0?es.utils.decode(c.codepage,i):mr&&Buffer.isBuffer(i)?i.toString("binary"):is(i);break;case"array":l=Is(i);break;default:throw new Error("Unrecognized type "+c.type)}return u[0]==239&&u[1]==187&&u[2]==191?l=Lr(l.slice(3)):c.type!="string"&&c.type!="buffer"&&c.codepage==65001?l=Lr(l):c.type=="binary"&&es!==void 0&&c.codepage&&(l=es.utils.decode(c.codepage,es.utils.encode(28591,l))),l.slice(0,19)=="socialcalc:version:"?im.to_sheet(c.type=="string"?l:Lr(l),c):o(l,c)}return{to_workbook:function(i,c){return Ds(s(i,c),c)},to_sheet:s,from_sheet:function(i){for(var c,l=[],u=Mr(i["!ref"]),f=Array.isArray(i),h=u.s.r;h<=u.e.r;++h){for(var d=[],p=u.s.c;p<=u.e.c;++p){var m=nr({r:h,c:p});if((c=f?(i[h]||[])[p]:i[m])&&c.v!=null){for(var v=(c.w||(ss(c),c.w)||"").slice(0,10);v.length<10;)v+=" ";d.push(v+(p===0?" ":""))}else d.push(" ")}l.push(d.join(""))}return l.join(`
|
||
`)}}}(),Vs=function(){function t(y,w,x){if(y){Dn(y,y.l||0);for(var C=x.Enum||b;y.l<y.length;){var O=y.read_shift(2),D=C[O]||C[65535],j=y.read_shift(2),U=y.l+j,L=D.f&&D.f(y,j,x);if(y.l=U,w(L,D,O))return}}}function r(y,w){if(!y)return y;var x=w||{},C=x.dense?[]:{},O="Sheet1",D="",j=0,U={},L=[],V=[],A={s:{r:0,c:0},e:{r:0,c:0}},N=x.sheetRows||0;if(y[2]==0&&(y[3]==8||y[3]==9)&&y.length>=16&&y[14]==5&&y[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(y[2]==2)x.Enum=b,t(y,function(T,R,F){switch(F){case 0:x.vers=T,T>=4096&&(x.qpro=!0);break;case 6:A=T;break;case 204:T&&(D=T);break;case 222:D=T;break;case 15:case 51:x.qpro||(T[1].v=T[1].v.slice(1));case 13:case 14:case 16:F==14&&(112&T[2])==112&&(15&T[2])>1&&(15&T[2])<15&&(T[1].z=x.dateNF||Qe[14],x.cellDates&&(T[1].t="d",T[1].v=Rl(T[1].v))),x.qpro&&T[3]>j&&(C["!ref"]=wr(A),U[O]=C,L.push(O),C=x.dense?[]:{},A={s:{r:0,c:0},e:{r:0,c:0}},j=T[3],O=D||"Sheet"+(j+1),D="");var I=x.dense?(C[T[0].r]||[])[T[0].c]:C[nr(T[0])];if(I){I.t=T[1].t,I.v=T[1].v,T[1].z!=null&&(I.z=T[1].z),T[1].f!=null&&(I.f=T[1].f);break}x.dense?(C[T[0].r]||(C[T[0].r]=[]),C[T[0].r][T[0].c]=T[1]):C[nr(T[0])]=T[1]}},x);else{if(y[2]!=26&&y[2]!=14)throw new Error("Unrecognized LOTUS BOF "+y[2]);x.Enum=g,y[2]==14&&(x.qpro=!0,y.l=0),t(y,function(T,R,F){switch(F){case 204:O=T;break;case 22:T[1].v=T[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(T[3]>j&&(C["!ref"]=wr(A),U[O]=C,L.push(O),C=x.dense?[]:{},A={s:{r:0,c:0},e:{r:0,c:0}},j=T[3],O="Sheet"+(j+1)),N>0&&T[0].r>=N)break;x.dense?(C[T[0].r]||(C[T[0].r]=[]),C[T[0].r][T[0].c]=T[1]):C[nr(T[0])]=T[1],A.e.c<T[0].c&&(A.e.c=T[0].c),A.e.r<T[0].r&&(A.e.r=T[0].r);break;case 27:T[14e3]&&(V[T[14e3][0]]=T[14e3][1]);break;case 1537:V[T[0]]=T[1],T[0]==j&&(O=T[1])}},x)}if(C["!ref"]=wr(A),U[D||O]=C,L.push(D||O),!V.length)return{SheetNames:L,Sheets:U};for(var k={},S=[],E=0;E<V.length;++E)U[L[E]]?(S.push(V[E]||L[E]),k[V[E]]=U[V[E]]||U[L[E]]):(S.push(V[E]),k[V[E]]={"!ref":"A1"});return{SheetNames:S,Sheets:k}}function e(y,w,x){var C=[{c:0,r:0},{t:"n",v:0},0,0];return x.qpro&&x.vers!=20768?(C[0].c=y.read_shift(1),C[3]=y.read_shift(1),C[0].r=y.read_shift(2),y.l+=2):(C[2]=y.read_shift(1),C[0].c=y.read_shift(2),C[0].r=y.read_shift(2)),C}function n(y,w,x){var C=y.l+w,O=e(y,0,x);if(O[1].t="s",x.vers==20768){y.l++;var D=y.read_shift(1);return O[1].v=y.read_shift(D,"utf8"),O}return x.qpro&&y.l++,O[1].v=y.read_shift(C-y.l,"cstr"),O}function a(y,w,x){var C=Kt(7+x.length);C.write_shift(1,255),C.write_shift(2,w),C.write_shift(2,y),C.write_shift(1,39);for(var O=0;O<C.length;++O){var D=x.charCodeAt(O);C.write_shift(1,D>=128?95:D)}return C.write_shift(1,0),C}function o(y,w,x){var C=Kt(7);return C.write_shift(1,255),C.write_shift(2,w),C.write_shift(2,y),C.write_shift(2,x,"i"),C}function s(y,w,x){var C=Kt(13);return C.write_shift(1,255),C.write_shift(2,w),C.write_shift(2,y),C.write_shift(8,x,"f"),C}function i(y,w,x){var C=32768&w;return w=(C?y:0)+((w&=-32769)>=8192?w-16384:w),(C?"":"$")+(x?dn(w):Cn(w))}var c={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},l=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function u(y){var w=[{c:0,r:0},{t:"n",v:0},0];return w[0].r=y.read_shift(2),w[3]=y[y.l++],w[0].c=y[y.l++],w}function f(y,w,x,C){var O=Kt(6+C.length);O.write_shift(2,y),O.write_shift(1,x),O.write_shift(1,w),O.write_shift(1,39);for(var D=0;D<C.length;++D){var j=C.charCodeAt(D);O.write_shift(1,j>=128?95:j)}return O.write_shift(1,0),O}function h(y,w){var x=u(y),C=y.read_shift(4),O=y.read_shift(4),D=y.read_shift(2);if(D==65535)return C===0&&O===3221225472?(x[1].t="e",x[1].v=15):C===0&&O===3489660928?(x[1].t="e",x[1].v=42):x[1].v=0,x;var j=32768&D;return D=(32767&D)-16446,x[1].v=(1-2*j)*(O*Math.pow(2,D+32)+C*Math.pow(2,D)),x}function d(y,w,x,C){var O=Kt(14);if(O.write_shift(2,y),O.write_shift(1,x),O.write_shift(1,w),C==0)return O.write_shift(4,0),O.write_shift(4,0),O.write_shift(2,65535),O;var D,j=0,U=0,L=0;return C<0&&(j=1,C=-C),U=0|Math.log2(C),!(2147483648&(L=(C/=Math.pow(2,U-31))>>>0))&&(++U,L=(C/=2)>>>0),C-=L,L|=2147483648,L>>>=0,D=(C*=Math.pow(2,32))>>>0,O.write_shift(4,D),O.write_shift(4,L),U+=16383+(j?32768:0),O.write_shift(2,U),O}function p(y,w){var x=u(y),C=y.read_shift(8,"f");return x[1].v=C,x}function m(y,w){return y[y.l+w-1]==0?y.read_shift(w,"cstr"):""}function v(y,w){var x=Kt(5+y.length);x.write_shift(2,14e3),x.write_shift(2,w);for(var C=0;C<y.length;++C){var O=y.charCodeAt(C);x[x.l++]=O>127?95:O}return x[x.l++]=0,x}var b={0:{n:"BOF",f:pn},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function(y,w,x){var C={s:{c:0,r:0},e:{c:0,r:0}};return w==8&&x.qpro?(C.s.c=y.read_shift(1),y.l++,C.s.r=y.read_shift(2),C.e.c=y.read_shift(1),y.l++,C.e.r=y.read_shift(2),C):(C.s.c=y.read_shift(2),C.s.r=y.read_shift(2),w==12&&x.qpro&&(y.l+=2),C.e.c=y.read_shift(2),C.e.r=y.read_shift(2),w==12&&x.qpro&&(y.l+=2),C.s.c==65535&&(C.s.c=C.e.c=C.s.r=C.e.r=0),C)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function(y,w,x){var C=e(y,0,x);return C[1].v=y.read_shift(2,"i"),C}},14:{n:"NUMBER",f:function(y,w,x){var C=e(y,0,x);return C[1].v=y.read_shift(8,"f"),C}},15:{n:"LABEL",f:n},16:{n:"FORMULA",f:function(y,w,x){var C=y.l+w,O=e(y,0,x);if(O[1].v=y.read_shift(8,"f"),x.qpro)y.l=C;else{var D=y.read_shift(2);(function(j,U){Dn(j,0);for(var L=[],V=0,A="",N="",k="",S="";j.l<j.length;){var E=j[j.l++];switch(E){case 0:L.push(j.read_shift(8,"f"));break;case 1:N=i(U[0].c,j.read_shift(2),!0),A=i(U[0].r,j.read_shift(2),!1),L.push(N+A);break;case 2:var T=i(U[0].c,j.read_shift(2),!0),R=i(U[0].r,j.read_shift(2),!1);N=i(U[0].c,j.read_shift(2),!0),A=i(U[0].r,j.read_shift(2),!1),L.push(T+R+":"+N+A);break;case 3:if(j.l<j.length)return void console.error("WK1 premature formula end");break;case 4:L.push("("+L.pop()+")");break;case 5:L.push(j.read_shift(2));break;case 6:for(var F="";E=j[j.l++];)F+=String.fromCharCode(E);L.push('"'+F.replace(/"/g,'""')+'"');break;case 8:L.push("-"+L.pop());break;case 23:L.push("+"+L.pop());break;case 22:L.push("NOT("+L.pop()+")");break;case 20:case 21:S=L.pop(),k=L.pop(),L.push(["AND","OR"][E-20]+"("+k+","+S+")");break;default:if(E<32&&l[E])S=L.pop(),k=L.pop(),L.push(k+l[E]+S);else{if(!c[E])return E<=7?console.error("WK1 invalid opcode "+E.toString(16)):E<=24?console.error("WK1 unsupported op "+E.toString(16)):E<=30?console.error("WK1 invalid opcode "+E.toString(16)):E<=115?console.error("WK1 unsupported function opcode "+E.toString(16)):console.error("WK1 unrecognized opcode "+E.toString(16));if((V=c[E][1])==69&&(V=j[j.l++]),V>L.length)return void console.error("WK1 bad formula parse 0x"+E.toString(16)+":|"+L.join("|")+"|");var I=L.slice(-V);L.length-=V,L.push(c[E][0]+"("+I.join(",")+")")}}}L.length==1?U[1].f=""+L[0]:console.error("WK1 bad formula parse |"+L.join("|")+"|")})(y.slice(y.l,y.l+D),O),y.l+=D}return O}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:n},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:m},222:{n:"SHEETNAMELP",f:function(y,w){var x=y[y.l++];x>w-1&&(x=w-1);for(var C="";C.length<x;)C+=String.fromCharCode(y[y.l++]);return C}},65535:{n:""}},g={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:function(y,w){var x=u(y);return x[1].t="s",x[1].v=y.read_shift(w-4,"cstr"),x}},23:{n:"NUMBER17",f:h},24:{n:"NUMBER18",f:function(y,w){var x=u(y);x[1].v=y.read_shift(2);var C=x[1].v>>1;if(1&x[1].v)switch(7&C){case 0:C=5e3*(C>>3);break;case 1:C=500*(C>>3);break;case 2:C=(C>>3)/20;break;case 3:C=(C>>3)/200;break;case 4:C=(C>>3)/2e3;break;case 5:C=(C>>3)/2e4;break;case 6:C=(C>>3)/16;break;case 7:C=(C>>3)/64}return x[1].v=C,x}},25:{n:"FORMULA19",f:function(y,w){var x=h(y);return y.l+=w-14,x}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function(y,w){for(var x={},C=y.l+w;y.l<C;){var O=y.read_shift(2);if(O==14e3){for(x[O]=[0,""],x[O][0]=y.read_shift(2);y[y.l];)x[O][1]+=String.fromCharCode(y[y.l]),y.l++;y.l++}}return x}},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:function(y,w){var x=u(y),C=y.read_shift(4);return x[1].v=C>>6,x}},38:{n:"??"},39:{n:"NUMBER27",f:p},40:{n:"FORMULA28",f:function(y,w){var x=p(y);return y.l+=w-10,x}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:m},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function(y,w,x){if(x.qpro&&!(w<21)){var C=y.read_shift(1);return y.l+=17,y.l+=1,y.l+=2,[C,y.read_shift(w-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function(y,w){var x=w||{};if(+x.codepage>=0&&ra(+x.codepage),x.type=="string")throw new Error("Cannot write WK1 to JS string");var C,O,D=mi(),j=Mr(y["!ref"]),U=Array.isArray(y),L=[];ke(D,0,(C=1030,(O=Kt(2)).write_shift(2,C),O)),ke(D,6,function(T){var R=Kt(8);return R.write_shift(2,T.s.c),R.write_shift(2,T.s.r),R.write_shift(2,T.e.c),R.write_shift(2,T.e.r),R}(j));for(var V=Math.min(j.e.r,8191),A=j.s.r;A<=V;++A)for(var N=Cn(A),k=j.s.c;k<=j.e.c;++k){A===j.s.r&&(L[k]=dn(k));var S=L[k]+N,E=U?(y[A]||[])[k]:y[S];E&&E.t!="z"&&(E.t=="n"?(0|E.v)==E.v&&E.v>=-32768&&E.v<=32767?ke(D,13,o(A,k,E.v)):ke(D,14,s(A,k,E.v)):ke(D,15,a(A,k,ss(E).slice(0,239))))}return ke(D,1),D.end()},book_to_wk3:function(y,w){var x=w||{};if(+x.codepage>=0&&ra(+x.codepage),x.type=="string")throw new Error("Cannot write WK3 to JS string");var C=mi();ke(C,0,function(F){var I=Kt(26);I.write_shift(2,4096),I.write_shift(2,4),I.write_shift(4,0);for(var B=0,P=0,H=0,Z=0;Z<F.SheetNames.length;++Z){var Y=F.SheetNames[Z],dt=F.Sheets[Y];if(dt&&dt["!ref"]){++H;var gt=Fi(dt["!ref"]);B<gt.e.r&&(B=gt.e.r),P<gt.e.c&&(P=gt.e.c)}}return B>8191&&(B=8191),I.write_shift(2,B),I.write_shift(1,H),I.write_shift(1,P),I.write_shift(2,0),I.write_shift(2,0),I.write_shift(1,1),I.write_shift(1,2),I.write_shift(4,0),I.write_shift(4,0),I}(y));for(var O=0,D=0;O<y.SheetNames.length;++O)(y.Sheets[y.SheetNames[O]]||{})["!ref"]&&ke(C,27,v(y.SheetNames[O],D++));var j=0;for(O=0;O<y.SheetNames.length;++O){var U=y.Sheets[y.SheetNames[O]];if(U&&U["!ref"]){for(var L=Mr(U["!ref"]),V=Array.isArray(U),A=[],N=Math.min(L.e.r,8191),k=L.s.r;k<=N;++k)for(var S=Cn(k),E=L.s.c;E<=L.e.c;++E){k===L.s.r&&(A[E]=dn(E));var T=A[E]+S,R=V?(U[k]||[])[E]:U[T];R&&R.t!="z"&&(R.t=="n"?ke(C,23,d(k,E,j,R.v)):ke(C,22,f(k,E,j,ss(R).slice(0,239))))}++j}}return ke(C,1),C.end()},to_workbook:function(y,w){switch(w.type){case"base64":return r(Ti(Si(y)),w);case"binary":return r(Ti(y),w);case"buffer":case"array":return r(y,w)}throw"Unsupported type "+w.type}}}(),A3=function(){var t=fc("t"),r=fc("rPr");function e(o){var s=o.match(t);if(!s)return{t:"s",v:""};var i={t:"s",v:Tr(s[1])},c=o.match(r);return c&&(i.s=function(l){var u={},f=l.match(Vn),h=0,d=!1;if(f)for(;h!=f.length;++h){var p=tr(f[h]);switch(p[0].replace(/\w*:/g,"")){case"<condense":case"<extend":break;case"<shadow":if(!p.val)break;case"<shadow>":case"<shadow/>":u.shadow=1;break;case"</shadow>":break;case"<charset":if(p.val=="1")break;u.cp=mf[parseInt(p.val,10)];break;case"<outline":if(!p.val)break;case"<outline>":case"<outline/>":u.outline=1;break;case"</outline>":break;case"<rFont":u.name=p.val;break;case"<sz":u.sz=p.val;break;case"<strike":if(!p.val)break;case"<strike>":case"<strike/>":u.strike=1;break;case"</strike>":break;case"<u":if(!p.val)break;switch(p.val){case"double":u.uval="double";break;case"singleAccounting":u.uval="single-accounting";break;case"doubleAccounting":u.uval="double-accounting"}case"<u>":case"<u/>":u.u=1;break;case"</u>":break;case"<b":if(p.val=="0")break;case"<b>":case"<b/>":u.b=1;break;case"</b>":break;case"<i":if(p.val=="0")break;case"<i>":case"<i/>":u.i=1;break;case"</i>":break;case"<color":p.rgb&&(u.color=p.rgb.slice(2,8));break;case"<color>":case"<color/>":case"</color>":break;case"<family":u.family=p.val;break;case"<family>":case"<family/>":case"</family>":break;case"<vertAlign":u.valign=p.val;break;case"<vertAlign>":case"<vertAlign/>":case"</vertAlign>":case"<scheme":case"<scheme>":case"<scheme/>":case"</scheme>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":d=!0;break;case"</ext>":d=!1;break;default:if(p[0].charCodeAt(1)!==47&&!d)throw new Error("Unrecognized rich format "+p[0])}}return u}(c[1])),i}var n=/<(?:\w+:)?r>/g,a=/<\/(?:\w+:)?r>/;return function(o){return o.replace(n,"").split(a).map(e).filter(function(s){return s.v})}}(),R3=function(){var t=/(\r\n|\n)/g;function r(e){var n=[[],e.v,[]];return e.v?(e.s&&function(a,o,s){var i=[];a.u&&i.push("text-decoration: underline;"),a.uval&&i.push("text-underline-style:"+a.uval+";"),a.sz&&i.push("font-size:"+a.sz+"pt;"),a.outline&&i.push("text-effect: outline;"),a.shadow&&i.push("text-shadow: auto;"),o.push('<span style="'+i.join("")+'">'),a.b&&(o.push("<b>"),s.push("</b>")),a.i&&(o.push("<i>"),s.push("</i>")),a.strike&&(o.push("<s>"),s.push("</s>"));var c=a.valign||"";c=="superscript"||c=="super"?c="sup":c=="subscript"&&(c="sub"),c!=""&&(o.push("<"+c+">"),s.push("</"+c+">")),s.push("</span>")}(e.s,n[0],n[2]),n[0].join("")+n[1].replace(t,"<br/>")+n[2].join("")):""}return function(e){return e.map(r).join("")}}(),M3=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,O3=/<(?:\w+:)?r>/,I3=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function Yf(t,r){var e=!r||r.cellHTML,n={};return t?(t.match(/^\s*<(?:\w+:)?t[^>]*>/)?(n.t=Tr(Lr(t.slice(t.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),n.r=Lr(t),e&&(n.h=Ef(n.t))):t.match(O3)&&(n.r=Lr(t),n.t=Tr(Lr((t.replace(I3,"").match(M3)||[]).join("").replace(Vn,""))),e&&(n.h=R3(A3(n.r)))),n):{t:""}}var N3=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,P3=/<(?:\w+:)?(?:si|sstItem)>/g,D3=/<\/(?:\w+:)?(?:si|sstItem)>/,F3=/^\s|\s$|[\t\n\r]/;function am(t,r){if(!r.bookSST)return"";var e=[an];e[e.length]=we("sst",null,{xmlns:Ns[0],count:t.Count,uniqueCount:t.Unique});for(var n=0;n!=t.length;++n)if(t[n]!=null){var a=t[n],o="<si>";a.r?o+=a.r:(o+="<t",a.t||(a.t=""),a.t.match(F3)&&(o+=' xml:space="preserve"'),o+=">"+Nr(a.t)+"</t>"),o+="</si>",e[e.length]=o}return e.length>2&&(e[e.length]="</sst>",e[1]=e[1].replace("/>",">")),e.join("")}var j3=function(t,r){var e=!1;return r==null&&(e=!0,r=Kt(15+4*t.t.length)),r.write_shift(1,0),An(t.t,r),e?r.slice(0,r.l):r};function L3(t){var r=mi();ce(r,159,function(n,a){return a||(a=Kt(8)),a.write_shift(4,n.Count),a.write_shift(4,n.Unique),a}(t));for(var e=0;e<t.length;++e)ce(r,19,j3(t[e]));return ce(r,160),r.end()}function sm(t){for(var r=[],e=t.split(""),n=0;n<e.length;++n)r[n]=e[n].charCodeAt(0);return r}function za(t,r){var e={};return e.Major=t.read_shift(2),e.Minor=t.read_shift(2),r>=4&&(t.l+=r-4),e}function B3(t){for(var r=t.read_shift(4),e=t.l+r-4,n={},a=t.read_shift(4),o=[];a-- >0;)o.push({t:t.read_shift(4),v:t.read_shift(0,"lpp4")});if(n.name=t.read_shift(0,"lpp4"),n.comps=o,t.l!=e)throw new Error("Bad DataSpaceMapEntry: "+t.l+" != "+e);return n}function z3(t){var r=function(e){var n={};return e.read_shift(4),e.l+=4,n.id=e.read_shift(0,"lpp4"),n.name=e.read_shift(0,"lpp4"),n.R=za(e,4),n.U=za(e,4),n.W=za(e,4),n}(t);if(r.ename=t.read_shift(0,"8lpp4"),r.blksz=t.read_shift(4),r.cmode=t.read_shift(4),t.read_shift(4)!=4)throw new Error("Bad !Primary record");return r}function om(t,r){var e=t.l+r,n={};n.Flags=63&t.read_shift(4),t.l+=4,n.AlgID=t.read_shift(4);var a=!1;switch(n.AlgID){case 26126:case 26127:case 26128:a=n.Flags==36;break;case 26625:a=n.Flags==4;break;case 0:a=n.Flags==16||n.Flags==4||n.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+n.AlgID}if(!a)throw new Error("Encryption Flags/AlgID mismatch");return n.AlgIDHash=t.read_shift(4),n.KeySize=t.read_shift(4),n.ProviderType=t.read_shift(4),t.l+=8,n.CSPName=t.read_shift(e-t.l>>1,"utf16le"),t.l=e,n}function cm(t,r){var e={},n=t.l+r;return t.l+=4,e.Salt=t.slice(t.l,t.l+16),t.l+=16,e.Verifier=t.slice(t.l,t.l+16),t.l+=16,t.read_shift(4),e.VerifierHash=t.slice(t.l,n),t.l=n,e}function U3(t){if((63&t.read_shift(4))!=36)throw new Error("EncryptionInfo mismatch");var r=t.read_shift(4);return{t:"Std",h:om(t,r),v:cm(t,t.length-t.l)}}function H3(){throw new Error("File is password-protected: ECMA-376 Extensible")}function W3(t){var r=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];t.l+=4;var e=t.read_shift(t.length-t.l,"utf8"),n={};return e.replace(Vn,function(a){var o=tr(a);switch(va(o[0])){case"<?xml":case"<encryption":case"</encryption>":case"</keyEncryptors>":case"</keyEncryptor>":break;case"<keyData":r.forEach(function(s){n[s]=o[s]});break;case"<dataIntegrity":n.encryptedHmacKey=o.encryptedHmacKey,n.encryptedHmacValue=o.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":n.encs=[];break;case"<keyEncryptor":n.uri=o.uri;break;case"<encryptedKey":n.encs.push(o);break;default:throw o[0]}}),n}function Kf(t){var r,e,n=0,a=sm(t),o=a.length+1;for((r=ns(o))[0]=a.length,e=1;e!=o;++e)r[e]=a[e-1];for(e=o-1;e>=0;--e)n=((16384&n?1:0)|n<<1&32767)^r[e];return 52811^n}var lm=function(){var t=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],r=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],e=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],n=function(a,o){return 255&((s=a^o)/2|128*s);var s};return function(a){for(var o,s,i,c=sm(a),l=function(d){for(var p=r[d.length-1],m=104,v=d.length-1;v>=0;--v)for(var b=d[v],g=0;g!=7;++g)64&b&&(p^=e[m]),b*=2,--m;return p}(c),u=c.length,f=ns(16),h=0;h!=16;++h)f[h]=0;for((1&u)==1&&(o=l>>8,f[u]=n(t[0],o),--u,o=255&l,s=c[c.length-1],f[u]=n(s,o));u>0;)o=l>>8,f[--u]=n(c[u],o),o=255&l,f[--u]=n(c[u],o);for(u=15,i=15-c.length;i>0;)o=l>>8,f[u]=n(t[i],o),--i,o=255&l,f[--u]=n(c[u],o),--u,--i;return f}}(),V3=function(t){var r=0,e=lm(t);return function(n){var a=function(o,s,i,c,l){var u,f;for(l||(l=s),c||(c=lm(o)),u=0;u!=s.length;++u)f=s[u],f=255&((f^=c[i])>>5|f<<3),l[u]=f,++i;return[l,i,c]}("",n,r,e);return r=a[1],a[0]}};function $3(t,r,e){var n=e||{};return n.Info=t.read_shift(2),t.l-=2,n.Info===1?n.Data=function(a){var o={},s=o.EncryptionVersionInfo=za(a,4);if(s.Major!=1||s.Minor!=1)throw"unrecognized version code "+s.Major+" : "+s.Minor;return o.Salt=a.read_shift(16),o.EncryptedVerifier=a.read_shift(16),o.EncryptedVerifierHash=a.read_shift(16),o}(t):n.Data=function(a,o){var s={},i=s.EncryptionVersionInfo=za(a,4);if(o-=4,i.Minor!=2)throw new Error("unrecognized minor version code: "+i.Minor);if(i.Major>4||i.Major<2)throw new Error("unrecognized major version code: "+i.Major);s.Flags=a.read_shift(4),o-=4;var c=a.read_shift(4);return o-=4,s.EncryptionHeader=om(a,c),o-=c,s.EncryptionVerifier=cm(a,o),s}(t,r),n}var um=function(){function t(e,n){switch(n.type){case"base64":return r(Si(e),n);case"binary":return r(e,n);case"buffer":return r(mr&&Buffer.isBuffer(e)?e.toString("binary"):is(e),n);case"array":return r(Is(e),n)}throw new Error("Unrecognized type "+n.type)}function r(e,n){var a=(n||{}).dense?[]:{},o=e.match(/\\trowd.*?\\row\b/g);if(!o.length)throw new Error("RTF missing table");var s={s:{c:0,r:0},e:{c:0,r:o.length-1}};return o.forEach(function(i,c){Array.isArray(a)&&(a[c]=[]);for(var l,u=/\\\w+\b/g,f=0,h=-1;l=u.exec(i);){if(l[0]==="\\cell"){var d=i.slice(f,u.lastIndex-l[0].length);if(d[0]==" "&&(d=d.slice(1)),++h,d.length){var p={v:d,t:"s"};Array.isArray(a)?a[c][h]=p:a[nr({r:c,c:h})]=p}}f=u.lastIndex}h>s.e.c&&(s.e.c=h)}),a["!ref"]=wr(s),a}return{to_workbook:function(e,n){return Ds(t(e,n),n)},to_sheet:t,from_sheet:function(e){for(var n,a=["{\\rtf1\\ansi"],o=Mr(e["!ref"]),s=Array.isArray(e),i=o.s.r;i<=o.e.r;++i){a.push("\\trowd\\trautofit1");for(var c=o.s.c;c<=o.e.c;++c)a.push("\\cellx"+(c+1));for(a.push("\\pard\\intbl"),c=o.s.c;c<=o.e.c;++c){var l=nr({r:i,c});(n=s?(e[i]||[])[c]:e[l])&&(n.v!=null||n.f&&!n.F)&&(a.push(" "+(n.w||(ss(n),n.w))),a.push("\\cell"))}a.push("\\pard\\intbl\\row")}return a.join("")+"}"}}}();function xc(t){for(var r=0,e=1;r!=3;++r)e=256*e+(t[r]>255?255:t[r]<0?0:t[r]);return e.toString(16).toUpperCase().slice(1)}function Bl(t,r){if(r===0)return t;var e,n,a=function(o){var s=o[0]/255,i=o[1]/255,c=o[2]/255,l=Math.max(s,i,c),u=Math.min(s,i,c),f=l-u;if(f===0)return[0,0,s];var h,d=0,p=l+u;switch(h=f/(p>1?2-p:p),l){case s:d=((i-c)/f+6)%6;break;case i:d=(c-s)/f+2;break;case c:d=(s-i)/f+4}return[d/6,h,p/2]}((n=(e=t).slice(e[0]==="#"?1:0).slice(0,6),[parseInt(n.slice(0,2),16),parseInt(n.slice(2,4),16),parseInt(n.slice(4,6),16)]));return a[2]=r<0?a[2]*(1+r):1-(1-a[2])*(1-r),xc(function(o){var s,i=o[0],c=o[1],l=o[2],u=2*c*(l<.5?l:1-l),f=l-u/2,h=[f,f,f],d=6*i;if(c!==0)switch(0|d){case 0:case 6:s=u*d,h[0]+=u,h[1]+=s;break;case 1:s=u*(2-d),h[0]+=s,h[1]+=u;break;case 2:s=u*(d-2),h[1]+=u,h[2]+=s;break;case 3:s=u*(4-d),h[1]+=s,h[2]+=u;break;case 4:s=u*(d-4),h[2]+=u,h[0]+=s;break;case 5:s=u*(6-d),h[2]+=s,h[0]+=u}for(var p=0;p!=3;++p)h[p]=Math.round(255*h[p]);return h}(a))}var fm=6,q3=15,G3=1,Kn=fm;function Sc(t){return Math.floor((t+Math.round(128/Kn)/256)*Kn)}function Tc(t){return Math.floor((t-5)/Kn*100+.5)/100}function zl(t){return Math.round((t*Kn+5)/Kn*256)/256}function Xf(t){return zl(Tc(Sc(t)))}function Zf(t){var r=Math.abs(t-Xf(t)),e=Kn;if(r>.005)for(Kn=G3;Kn<q3;++Kn)Math.abs(t-Xf(t))<=r&&(r=Math.abs(t-Xf(t)),e=Kn);Kn=e}function cs(t){t.width?(t.wpx=Sc(t.width),t.wch=Tc(t.wpx),t.MDW=Kn):t.wpx?(t.wch=Tc(t.wpx),t.width=zl(t.wch),t.MDW=Kn):typeof t.wch=="number"&&(t.width=zl(t.wch),t.wpx=Sc(t.width),t.MDW=Kn),t.customWidth&&delete t.customWidth}var hm=96;function Ec(t){return 96*t/hm}function To(t){return t*hm/96}var Y3={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"},Ul=["numFmtId","fillId","fontId","borderId","xfId"],Hl=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"],K3=function(){var t=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,r=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,e=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,n=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,a=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(o,s,i){var c,l={};return o&&((c=(o=o.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"")).match(t))&&function(u,f,h){f.NumberFmt=[];for(var d=nn(Qe),p=0;p<d.length;++p)f.NumberFmt[d[p]]=Qe[d[p]];var m=u[0].match(Vn);if(m)for(p=0;p<m.length;++p){var v=tr(m[p]);switch(va(v[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":case"</numFmt>":break;case"<numFmt":var b=Tr(Lr(v.formatCode)),g=parseInt(v.numFmtId,10);if(f.NumberFmt[g]=b,g>0){if(g>392){for(g=392;g>60&&f.NumberFmt[g]!=null;--g);f.NumberFmt[g]=b}Da(b,g)}break;default:if(h.WTF)throw new Error("unrecognized "+v[0]+" in numFmts")}}}(c,l,i),(c=o.match(n))&&function(u,f,h,d){f.Fonts=[];var p={},m=!1;(u[0].match(Vn)||[]).forEach(function(v){var b=tr(v);switch(va(b[0])){case"<fonts":case"<fonts>":case"</fonts>":case"<font":case"<font>":case"<name/>":case"</name>":case"<sz/>":case"</sz>":case"<vertAlign/>":case"</vertAlign>":case"<family/>":case"</family>":case"<scheme/>":case"</scheme>":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"</font>":case"<font/>":f.Fonts.push(p),p={};break;case"<name":b.val&&(p.name=Lr(b.val));break;case"<b":p.bold=b.val?Vr(b.val):1;break;case"<b/>":p.bold=1;break;case"<i":p.italic=b.val?Vr(b.val):1;break;case"<i/>":p.italic=1;break;case"<u":switch(b.val){case"none":p.underline=0;break;case"single":p.underline=1;break;case"double":p.underline=2;break;case"singleAccounting":p.underline=33;break;case"doubleAccounting":p.underline=34}break;case"<u/>":p.underline=1;break;case"<strike":p.strike=b.val?Vr(b.val):1;break;case"<strike/>":p.strike=1;break;case"<outline":p.outline=b.val?Vr(b.val):1;break;case"<outline/>":p.outline=1;break;case"<shadow":p.shadow=b.val?Vr(b.val):1;break;case"<shadow/>":p.shadow=1;break;case"<condense":p.condense=b.val?Vr(b.val):1;break;case"<condense/>":p.condense=1;break;case"<extend":p.extend=b.val?Vr(b.val):1;break;case"<extend/>":p.extend=1;break;case"<sz":b.val&&(p.sz=+b.val);break;case"<vertAlign":b.val&&(p.vertAlign=b.val);break;case"<family":b.val&&(p.family=parseInt(b.val,10));break;case"<scheme":b.val&&(p.scheme=b.val);break;case"<charset":if(b.val=="1")break;b.codepage=mf[parseInt(b.val,10)];break;case"<color":if(p.color||(p.color={}),b.auto&&(p.color.auto=Vr(b.auto)),b.rgb)p.color.rgb=b.rgb.slice(-6);else if(b.indexed){p.color.index=parseInt(b.indexed,10);var g=ko[p.color.index];p.color.index==81&&(g=ko[1]),g||(g=ko[1]),p.color.rgb=g[0].toString(16)+g[1].toString(16)+g[2].toString(16)}else b.theme&&(p.color.theme=parseInt(b.theme,10),b.tint&&(p.color.tint=parseFloat(b.tint)),b.theme&&h.themeElements&&h.themeElements.clrScheme&&(p.color.rgb=Bl(h.themeElements.clrScheme[p.color.theme].rgb,p.color.tint||0)));break;case"<AlternateContent":case"<ext":m=!0;break;case"</AlternateContent>":case"</ext>":m=!1;break;default:if(d&&d.WTF&&!m)throw new Error("unrecognized "+b[0]+" in fonts")}})}(c,l,s,i),(c=o.match(e))&&function(u,f,h,d){f.Fills=[];var p={},m=!1;(u[0].match(Vn)||[]).forEach(function(v){var b=tr(v);switch(va(b[0])){case"<fills":case"<fills>":case"</fills>":case"</fill>":case"<gradientFill>":case"<patternFill/>":case"</patternFill>":case"<bgColor/>":case"</bgColor>":case"<fgColor/>":case"</fgColor>":case"<stop":case"<stop/>":case"</stop>":case"<color":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<fill>":case"<fill":case"<fill/>":p={},f.Fills.push(p);break;case"<gradientFill":case"</gradientFill>":f.Fills.push(p),p={};break;case"<patternFill":case"<patternFill>":b.patternType&&(p.patternType=b.patternType);break;case"<bgColor":p.bgColor||(p.bgColor={}),b.indexed&&(p.bgColor.indexed=parseInt(b.indexed,10)),b.theme&&(p.bgColor.theme=parseInt(b.theme,10)),b.tint&&(p.bgColor.tint=parseFloat(b.tint)),b.rgb&&(p.bgColor.rgb=b.rgb.slice(-6));break;case"<fgColor":p.fgColor||(p.fgColor={}),b.theme&&(p.fgColor.theme=parseInt(b.theme,10)),b.tint&&(p.fgColor.tint=parseFloat(b.tint)),b.rgb!=null&&(p.fgColor.rgb=b.rgb.slice(-6));break;case"<ext":m=!0;break;case"</ext>":m=!1;break;default:if(d&&d.WTF&&!m)throw new Error("unrecognized "+b[0]+" in fills")}})}(c,l,0,i),(c=o.match(a))&&function(u,f,h,d){f.Borders=[];var p={},m=!1;(u[0].match(Vn)||[]).forEach(function(v){var b=tr(v);switch(va(b[0])){case"<borders":case"<borders>":case"</borders>":case"</border>":case"<left/>":case"<left":case"<left>":case"</left>":case"<right/>":case"<right":case"<right>":case"</right>":case"<top/>":case"<top":case"<top>":case"</top>":case"<bottom/>":case"<bottom":case"<bottom>":case"</bottom>":case"<diagonal":case"<diagonal>":case"<diagonal/>":case"</diagonal>":case"<horizontal":case"<horizontal>":case"<horizontal/>":case"</horizontal>":case"<vertical":case"<vertical>":case"<vertical/>":case"</vertical>":case"<start":case"<start>":case"<start/>":case"</start>":case"<end":case"<end>":case"<end/>":case"</end>":case"<color":case"<color>":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<border":case"<border>":case"<border/>":p={},b.diagonalUp&&(p.diagonalUp=Vr(b.diagonalUp)),b.diagonalDown&&(p.diagonalDown=Vr(b.diagonalDown)),f.Borders.push(p);break;case"<ext":m=!0;break;case"</ext>":m=!1;break;default:if(d&&d.WTF&&!m)throw new Error("unrecognized "+b[0]+" in borders")}})}(c,l,0,i),(c=o.match(r))&&function(u,f,h){var d;f.CellXf=[];var p=!1;(u[0].match(Vn)||[]).forEach(function(m){var v=tr(m),b=0;switch(va(v[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":case"</xf>":case"</alignment>":case"<protection":case"</protection>":case"<protection/>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<xf":case"<xf/>":for(delete(d=v)[0],b=0;b<Ul.length;++b)d[Ul[b]]&&(d[Ul[b]]=parseInt(d[Ul[b]],10));for(b=0;b<Hl.length;++b)d[Hl[b]]&&(d[Hl[b]]=Vr(d[Hl[b]]));if(f.NumberFmt&&d.numFmtId>392){for(b=392;b>60;--b)if(f.NumberFmt[d.numFmtId]==f.NumberFmt[b]){d.numFmtId=b;break}}f.CellXf.push(d);break;case"<alignment":case"<alignment/>":var g={};v.vertical&&(g.vertical=v.vertical),v.horizontal&&(g.horizontal=v.horizontal),v.textRotation!=null&&(g.textRotation=v.textRotation),v.indent&&(g.indent=v.indent),v.wrapText&&(g.wrapText=Vr(v.wrapText)),d.alignment=g;break;case"<AlternateContent":case"<ext":p=!0;break;case"</AlternateContent>":case"</ext>":p=!1;break;default:if(h&&h.WTF&&!p)throw new Error("unrecognized "+v[0]+" in cellXfs")}})}(c,l,i)),l}}();function dm(t,r){var e,n=[an,we("styleSheet",null,{xmlns:Ns[0],"xmlns:vt":vn.vt})];return t.SSF&&(e=function(a){var o=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(s){for(var i=s[0];i<=s[1];++i)a[i]!=null&&(o[o.length]=we("numFmt",null,{numFmtId:i,formatCode:Nr(a[i])}))}),o.length===1?"":(o[o.length]="</numFmts>",o[0]=we("numFmts",null,{count:o.length-2}).replace("/>",">"),o.join(""))}(t.SSF))!=null&&(n[n.length]=e),n[n.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',n[n.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',n[n.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',n[n.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(e=function(a){var o=[];return o[o.length]=we("cellXfs",null),a.forEach(function(s){o[o.length]=we("xf",null,s)}),o[o.length]="</cellXfs>",o.length===2?"":(o[0]=we("cellXfs",null,{count:o.length-2}).replace("/>",">"),o.join(""))}(r.cellXfs))&&(n[n.length]=e),n[n.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',n[n.length]='<dxfs count="0"/>',n[n.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',n.length>2&&(n[n.length]="</styleSheet>",n[1]=n[1].replace("/>",">")),n.join("")}function X3(t,r,e){e||(e=Kt(6+4*r.length)),e.write_shift(2,t),An(r,e);var n=e.length>e.l?e.slice(0,e.l):e;return e.l==null&&(e.l=e.length),n}function Z3(t,r){r||(r=Kt(153)),r.write_shift(2,20*t.sz),function(a,o){o||(o=Kt(2));var s=(a.italic?2:0)|(a.strike?8:0)|(a.outline?16:0)|(a.shadow?32:0)|(a.condense?64:0)|(a.extend?128:0);o.write_shift(1,s),o.write_shift(1,0)}(t,r),r.write_shift(2,t.bold?700:400);var e=0;t.vertAlign=="superscript"?e=1:t.vertAlign=="subscript"&&(e=2),r.write_shift(2,e),r.write_shift(1,t.underline||0),r.write_shift(1,t.family||0),r.write_shift(1,t.charset||0),r.write_shift(1,0),Nl(t.color,r);var n=0;return t.scheme=="major"&&(n=1),t.scheme=="minor"&&(n=2),r.write_shift(1,n),An(t.name,r),r.length>r.l?r.slice(0,r.l):r}var Jf,J3=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Q3=$n;function pm(t,r){r||(r=Kt(84)),Jf||(Jf=El(J3));var e=Jf[t.patternType];e==null&&(e=40),r.write_shift(4,e);var n=0;if(e!=40)for(Nl({auto:1},r),Nl({auto:1},r);n<12;++n)r.write_shift(4,0);else{for(;n<4;++n)r.write_shift(4,0);for(;n<12;++n)r.write_shift(4,0)}return r.length>r.l?r.slice(0,r.l):r}function mm(t,r,e){return e||(e=Kt(16)),e.write_shift(2,r||0),e.write_shift(2,t.numFmtId||0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e}function Cc(t,r){return r||(r=Kt(10)),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(4,0),r}var t4=$n;function e4(t){var r;ce(t,613,ia(1)),ce(t,46,(r||(r=Kt(51)),r.write_shift(1,0),Cc(0,r),Cc(0,r),Cc(0,r),Cc(0,r),Cc(0,r),r.length>r.l?r.slice(0,r.l):r)),ce(t,614)}function r4(t){var r,e;ce(t,619,ia(1)),ce(t,48,(r={xfId:0,builtinId:0,name:"Normal"},e||(e=Kt(52)),e.write_shift(4,r.xfId),e.write_shift(2,1),e.write_shift(1,+r.builtinId),e.write_shift(1,0),Il(r.name||"",e),e.length>e.l?e.slice(0,e.l):e)),ce(t,620)}function n4(t){ce(t,508,function(r,e,n){var a=Kt(2052);return a.write_shift(4,r),Il(e,a),Il(n,a),a.length>a.l?a.slice(0,a.l):a}(0,"TableStyleMedium9","PivotStyleMedium4")),ce(t,509)}function i4(t,r){var e=mi();return ce(e,278),function(n,a){if(a){var o=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(s){for(var i=s[0];i<=s[1];++i)a[i]!=null&&++o}),o!=0&&(ce(n,615,ia(o)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(s){for(var i=s[0];i<=s[1];++i)a[i]!=null&&ce(n,44,X3(i,a[i]))}),ce(n,616))}}(e,t.SSF),function(n){ce(n,611,ia(1)),ce(n,43,Z3({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),ce(n,612)}(e),function(n){ce(n,603,ia(2)),ce(n,45,pm({patternType:"none"})),ce(n,45,pm({patternType:"gray125"})),ce(n,604)}(e),e4(e),function(n){ce(n,626,ia(1)),ce(n,47,mm({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),ce(n,627)}(e),function(n,a){ce(n,617,ia(a.length)),a.forEach(function(o){ce(n,47,mm(o,0))}),ce(n,618)}(e,r.cellXfs),r4(e),function(n){ce(n,505,ia(0)),ce(n,506)}(e),n4(e),ce(e,279),e.end()}var a4=["</a:lt1>","</a:dk1>","</a:lt2>","</a:dk2>","</a:accent1>","</a:accent2>","</a:accent3>","</a:accent4>","</a:accent5>","</a:accent6>","</a:hlink>","</a:folHlink>"];function s4(t,r,e){r.themeElements.clrScheme=[];var n={};(t[0].match(Vn)||[]).forEach(function(a){var o=tr(a);switch(o[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":n.rgb=o.val;break;case"<a:sysClr":n.rgb=o.lastClr;break;case"<a:dk1>":case"</a:dk1>":case"<a:lt1>":case"</a:lt1>":case"<a:dk2>":case"</a:dk2>":case"<a:lt2>":case"</a:lt2>":case"<a:accent1>":case"</a:accent1>":case"<a:accent2>":case"</a:accent2>":case"<a:accent3>":case"</a:accent3>":case"<a:accent4>":case"</a:accent4>":case"<a:accent5>":case"</a:accent5>":case"<a:accent6>":case"</a:accent6>":case"<a:hlink>":case"</a:hlink>":case"<a:folHlink>":case"</a:folHlink>":o[0].charAt(1)==="/"?(r.themeElements.clrScheme[a4.indexOf(o[0])]=n,n={}):n.name=o[0].slice(3,o[0].length-1);break;default:if(e&&e.WTF)throw new Error("Unrecognized "+o[0]+" in clrScheme")}})}function o4(){}function c4(){}var l4=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,u4=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,f4=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/,h4=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function vm(t,r){var e;t&&t.length!==0||(t=Qf());var n={};if(!(e=t.match(h4)))throw new Error("themeElements not found in theme");return function(a,o,s){var i;o.themeElements={},[["clrScheme",l4,s4],["fontScheme",u4,o4],["fmtScheme",f4,c4]].forEach(function(c){if(!(i=a.match(c[1])))throw new Error(c[0]+" not found in themeElements");c[2](i,o,s)})}(e[0],n,r),n.raw=t,n}function Qf(t,r){if(r&&r.themeXLSX)return r.themeXLSX;if(t&&typeof t.raw=="string")return t.raw;var e=[an];return e[e.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',e[e.length]="<a:themeElements>",e[e.length]='<a:clrScheme name="Office">',e[e.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',e[e.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',e[e.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',e[e.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',e[e.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',e[e.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',e[e.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',e[e.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',e[e.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',e[e.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',e[e.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',e[e.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',e[e.length]="</a:clrScheme>",e[e.length]='<a:fontScheme name="Office">',e[e.length]="<a:majorFont>",e[e.length]='<a:latin typeface="Cambria"/>',e[e.length]='<a:ea typeface=""/>',e[e.length]='<a:cs typeface=""/>',e[e.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',e[e.length]='<a:font script="Hang" typeface="맑은 고딕"/>',e[e.length]='<a:font script="Hans" typeface="宋体"/>',e[e.length]='<a:font script="Hant" typeface="新細明體"/>',e[e.length]='<a:font script="Arab" typeface="Times New Roman"/>',e[e.length]='<a:font script="Hebr" typeface="Times New Roman"/>',e[e.length]='<a:font script="Thai" typeface="Tahoma"/>',e[e.length]='<a:font script="Ethi" typeface="Nyala"/>',e[e.length]='<a:font script="Beng" typeface="Vrinda"/>',e[e.length]='<a:font script="Gujr" typeface="Shruti"/>',e[e.length]='<a:font script="Khmr" typeface="MoolBoran"/>',e[e.length]='<a:font script="Knda" typeface="Tunga"/>',e[e.length]='<a:font script="Guru" typeface="Raavi"/>',e[e.length]='<a:font script="Cans" typeface="Euphemia"/>',e[e.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',e[e.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',e[e.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',e[e.length]='<a:font script="Thaa" typeface="MV Boli"/>',e[e.length]='<a:font script="Deva" typeface="Mangal"/>',e[e.length]='<a:font script="Telu" typeface="Gautami"/>',e[e.length]='<a:font script="Taml" typeface="Latha"/>',e[e.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',e[e.length]='<a:font script="Orya" typeface="Kalinga"/>',e[e.length]='<a:font script="Mlym" typeface="Kartika"/>',e[e.length]='<a:font script="Laoo" typeface="DokChampa"/>',e[e.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',e[e.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',e[e.length]='<a:font script="Viet" typeface="Times New Roman"/>',e[e.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',e[e.length]='<a:font script="Geor" typeface="Sylfaen"/>',e[e.length]="</a:majorFont>",e[e.length]="<a:minorFont>",e[e.length]='<a:latin typeface="Calibri"/>',e[e.length]='<a:ea typeface=""/>',e[e.length]='<a:cs typeface=""/>',e[e.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',e[e.length]='<a:font script="Hang" typeface="맑은 고딕"/>',e[e.length]='<a:font script="Hans" typeface="宋体"/>',e[e.length]='<a:font script="Hant" typeface="新細明體"/>',e[e.length]='<a:font script="Arab" typeface="Arial"/>',e[e.length]='<a:font script="Hebr" typeface="Arial"/>',e[e.length]='<a:font script="Thai" typeface="Tahoma"/>',e[e.length]='<a:font script="Ethi" typeface="Nyala"/>',e[e.length]='<a:font script="Beng" typeface="Vrinda"/>',e[e.length]='<a:font script="Gujr" typeface="Shruti"/>',e[e.length]='<a:font script="Khmr" typeface="DaunPenh"/>',e[e.length]='<a:font script="Knda" typeface="Tunga"/>',e[e.length]='<a:font script="Guru" typeface="Raavi"/>',e[e.length]='<a:font script="Cans" typeface="Euphemia"/>',e[e.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',e[e.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',e[e.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',e[e.length]='<a:font script="Thaa" typeface="MV Boli"/>',e[e.length]='<a:font script="Deva" typeface="Mangal"/>',e[e.length]='<a:font script="Telu" typeface="Gautami"/>',e[e.length]='<a:font script="Taml" typeface="Latha"/>',e[e.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',e[e.length]='<a:font script="Orya" typeface="Kalinga"/>',e[e.length]='<a:font script="Mlym" typeface="Kartika"/>',e[e.length]='<a:font script="Laoo" typeface="DokChampa"/>',e[e.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',e[e.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',e[e.length]='<a:font script="Viet" typeface="Arial"/>',e[e.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',e[e.length]='<a:font script="Geor" typeface="Sylfaen"/>',e[e.length]="</a:minorFont>",e[e.length]="</a:fontScheme>",e[e.length]='<a:fmtScheme name="Office">',e[e.length]="<a:fillStyleLst>",e[e.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',e[e.length]='<a:gradFill rotWithShape="1">',e[e.length]="<a:gsLst>",e[e.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',e[e.length]="</a:gsLst>",e[e.length]='<a:lin ang="16200000" scaled="1"/>',e[e.length]="</a:gradFill>",e[e.length]='<a:gradFill rotWithShape="1">',e[e.length]="<a:gsLst>",e[e.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',e[e.length]="</a:gsLst>",e[e.length]='<a:lin ang="16200000" scaled="0"/>',e[e.length]="</a:gradFill>",e[e.length]="</a:fillStyleLst>",e[e.length]="<a:lnStyleLst>",e[e.length]='<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>',e[e.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',e[e.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',e[e.length]="</a:lnStyleLst>",e[e.length]="<a:effectStyleLst>",e[e.length]="<a:effectStyle>",e[e.length]="<a:effectLst>",e[e.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',e[e.length]="</a:effectLst>",e[e.length]="</a:effectStyle>",e[e.length]="<a:effectStyle>",e[e.length]="<a:effectLst>",e[e.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',e[e.length]="</a:effectLst>",e[e.length]="</a:effectStyle>",e[e.length]="<a:effectStyle>",e[e.length]="<a:effectLst>",e[e.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',e[e.length]="</a:effectLst>",e[e.length]='<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>',e[e.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',e[e.length]="</a:effectStyle>",e[e.length]="</a:effectStyleLst>",e[e.length]="<a:bgFillStyleLst>",e[e.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',e[e.length]='<a:gradFill rotWithShape="1">',e[e.length]="<a:gsLst>",e[e.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',e[e.length]="</a:gsLst>",e[e.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',e[e.length]="</a:gradFill>",e[e.length]='<a:gradFill rotWithShape="1">',e[e.length]="<a:gsLst>",e[e.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',e[e.length]="</a:gsLst>",e[e.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',e[e.length]="</a:gradFill>",e[e.length]="</a:bgFillStyleLst>",e[e.length]="</a:fmtScheme>",e[e.length]="</a:themeElements>",e[e.length]="<a:objectDefaults>",e[e.length]="<a:spDef>",e[e.length]='<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>',e[e.length]="</a:spDef>",e[e.length]="<a:lnDef>",e[e.length]='<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>',e[e.length]="</a:lnDef>",e[e.length]="</a:objectDefaults>",e[e.length]="<a:extraClrSchemeLst/>",e[e.length]="</a:theme>",e.join("")}function d4(t){var r={};switch(r.xclrType=t.read_shift(2),r.nTintShade=t.read_shift(2),r.xclrType){case 0:case 4:t.l+=4;break;case 1:r.xclrValue=function(e,n){return $n(e,n)}(t,4);break;case 2:r.xclrValue=z1(t);break;case 3:r.xclrValue=function(e){return e.read_shift(4)}(t)}return t.l+=8,r}function p4(t){var r=t.read_shift(2),e=t.read_shift(2)-4,n=[r];switch(r){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:n[1]=d4(t);break;case 6:n[1]=function(a,o){return $n(a,o)}(t,e);break;case 14:case 15:n[1]=t.read_shift(e===1?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+r+" "+e)}return n}function m4(){var t,r,e=mi();return ce(e,332),ce(e,334,ia(1)),ce(e,335,((r=Kt(12+2*(t={name:"XLDAPR",version:12e4,flags:3496657072}).name.length)).write_shift(4,t.flags),r.write_shift(4,t.version),An(t.name,r),r.slice(0,r.l))),ce(e,336),ce(e,339,function(n,a){var o=Kt(8+2*a.length);return o.write_shift(4,n),An(a,o),o.slice(0,o.l)}(1,"XLDAPR")),ce(e,52),ce(e,35,ia(514)),ce(e,4096,ia(0)),ce(e,4097,Bi(1)),ce(e,36),ce(e,53),ce(e,340),ce(e,337,function(n,a){var o=Kt(8);return o.write_shift(4,n),o.write_shift(4,a?1:0),o}(1,!0)),ce(e,51,function(n){var a=Kt(4+8*n.length);a.write_shift(4,n.length);for(var o=0;o<n.length;++o)a.write_shift(4,n[o][0]),a.write_shift(4,n[o][1]);return a}([[1,0]])),ce(e,338),ce(e,333),e.end()}function gm(){var t=[an];return t.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">
|
||
<metadataTypes count="1">
|
||
<metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>
|
||
</metadataTypes>
|
||
<futureMetadata name="XLDAPR" count="1">
|
||
<bk>
|
||
<extLst>
|
||
<ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">
|
||
<xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>
|
||
</ext>
|
||
</extLst>
|
||
</bk>
|
||
</futureMetadata>
|
||
<cellMetadata count="1">
|
||
<bk>
|
||
<rc t="1" v="0"/>
|
||
</bk>
|
||
</cellMetadata>
|
||
</metadata>`),t.join("")}var Eo=1024;function bm(t,r){for(var e=[21600,21600],n=["m0,0l0",e[1],e[0],e[1],e[0],"0xe"].join(","),a=[we("xml",null,{"xmlns:v":Ci.v,"xmlns:o":Ci.o,"xmlns:x":Ci.x,"xmlns:mv":Ci.mv}).replace(/\/>/,">"),we("o:shapelayout",we("o:idmap",null,{"v:ext":"edit",data:t}),{"v:ext":"edit"}),we("v:shapetype",[we("v:stroke",null,{joinstyle:"miter"}),we("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:e.join(","),path:n})];Eo<1e3*t;)Eo+=1e3;return r.forEach(function(o){var s=gn(o[0]),i={color2:"#BEFF82",type:"gradient"};i.type=="gradient"&&(i.angle="-180");var c=i.type=="gradient"?we("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,l=we("v:fill",c,i);++Eo,a=a.concat(["<v:shape"+hc({id:"_x0000_s"+Eo,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(o[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",l,we("v:shadow",null,{on:"t",obscured:"t"}),we("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Pn("x:Anchor",[s.c+1,0,s.r+1,0,s.c+3,20,s.r+5,20].join(",")),Pn("x:AutoFill","False"),Pn("x:Row",String(s.r)),Pn("x:Column",String(s.c)),o[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),a.push("</xml>"),a.join("")}function ym(t,r,e,n){var a,o=Array.isArray(t);r.forEach(function(s){var i=gn(s.ref);if(o?(t[i.r]||(t[i.r]=[]),a=t[i.r][i.c]):a=t[s.ref],!a){a={t:"z"},o?t[i.r][i.c]=a:t[s.ref]=a;var c=Mr(t["!ref"]||"BDWGO1000001:A1");c.s.r>i.r&&(c.s.r=i.r),c.e.r<i.r&&(c.e.r=i.r),c.s.c>i.c&&(c.s.c=i.c),c.e.c<i.c&&(c.e.c=i.c);var l=wr(c);l!==t["!ref"]&&(t["!ref"]=l)}a.c||(a.c=[]);var u={a:s.author,t:s.t,r:s.r,T:e};s.h&&(u.h=s.h);for(var f=a.c.length-1;f>=0;--f){if(!e&&a.c[f].T)return;e&&!a.c[f].T&&a.c.splice(f,1)}if(e&&n){for(f=0;f<n.length;++f)if(u.a==n[f].id){u.a=n[f].name||u.a;break}}a.c.push(u)})}function wm(t){var r=[an,we("comments",null,{xmlns:Ns[0]})],e=[];return r.push("<authors>"),t.forEach(function(n){n[1].forEach(function(a){var o=Nr(a.a);e.indexOf(o)==-1&&(e.push(o),r.push("<author>"+o+"</author>")),a.T&&a.ID&&e.indexOf("tc="+a.ID)==-1&&(e.push("tc="+a.ID),r.push("<author>tc="+a.ID+"</author>"))})}),e.length==0&&(e.push("SheetJ5"),r.push("<author>SheetJ5</author>")),r.push("</authors>"),r.push("<commentList>"),t.forEach(function(n){var a=0,o=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?a=e.indexOf("tc="+n[1][0].ID):n[1].forEach(function(c){c.a&&(a=e.indexOf(Nr(c.a))),o.push(c.t||"")}),r.push('<comment ref="'+n[0]+'" authorId="'+a+'"><text>'),o.length<=1)r.push(Pn("t",Nr(o[0]||"")));else{for(var s=`Comment:
|
||
`+o[0]+`
|
||
`,i=1;i<o.length;++i)s+=`Reply:
|
||
`+o[i]+`
|
||
`;r.push(Pn("t",Nr(s)))}r.push("</text></comment>")}),r.push("</commentList>"),r.length>2&&(r[r.length]="</comments>",r[1]=r[1].replace("/>",">")),r.join("")}function v4(t,r,e){var n=[an,we("ThreadedComments",null,{xmlns:vn.TCMNT}).replace(/[\/]>/,">")];return t.forEach(function(a){var o="";(a[1]||[]).forEach(function(s,i){if(s.T){s.a&&r.indexOf(s.a)==-1&&r.push(s.a);var c={ref:a[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+e.tcid++).slice(-12)+"}"};i==0?o=c.id:c.parentId=o,s.ID=c.id,s.a&&(c.personId="{54EE7950-7262-4200-6969-"+("000000000000"+r.indexOf(s.a)).slice(-12)+"}"),n.push(we("threadedComment",Pn("text",s.t||""),c))}else delete s.ID})}),n.push("</ThreadedComments>"),n.join("")}var g4=qn;function b4(t){var r=mi(),e=[];return ce(r,628),ce(r,630),t.forEach(function(n){n[1].forEach(function(a){e.indexOf(a.a)>-1||(e.push(a.a.slice(0,54)),ce(r,632,function(o){return An(o.slice(0,54))}(a.a)))})}),ce(r,631),ce(r,633),t.forEach(function(n){n[1].forEach(function(a){a.iauthor=e.indexOf(a.a);var o={s:gn(n[0]),e:gn(n[0])};ce(r,635,function(s,i){return i==null&&(i=Kt(36)),i.write_shift(4,s[1].iauthor),wo(s[0],i),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i}([o,a])),a.t&&a.t.length>0&&ce(r,637,Jw(a)),ce(r,636),delete a.iauthor})}),ce(r,634),ce(r,629),r.end()}var y4="application/vnd.ms-office.vbaProject",_m=["xlsb","xlsm","xlam","biff8","xla"],Co=function(){var t=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,r={r:0,c:0};function e(n,a,o,s){var i=!1,c=!1;o.length==0?c=!0:o.charAt(0)=="["&&(c=!0,o=o.slice(1,-1)),s.length==0?i=!0:s.charAt(0)=="["&&(i=!0,s=s.slice(1,-1));var l=o.length>0?0|parseInt(o,10):0,u=s.length>0?0|parseInt(s,10):0;return i?u+=r.c:--u,c?l+=r.r:--l,a+(i?"":"$")+dn(u)+(c?"":"$")+Cn(l)}return function(n,a){return r=a,n.replace(t,e)}}(),th=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,eh=function(){return function(t,r){return t.replace(th,function(e,n,a,o,s,i){var c=s1(o)-(a?0:r.c),l=a1(i)-(s?0:r.r);return n+"R"+(l==0?"":s?l+1:"["+l+"]")+"C"+(c==0?"":a?c+1:"["+c+"]")})}}();function km(t,r){return t.replace(th,function(e,n,a,o,s,i){return n+(a=="$"?a+o:dn(s1(o)+r.c))+(s=="$"?s+i:Cn(a1(i)+r.r))})}function w4(t,r,e){var n=Fi(r).s,a=gn(e);return km(t,{r:a.r-n.r,c:a.c-n.c})}function xm(t){return t.replace(/_xlfn\./g,"")}function mn(t){t.l+=1}function ls(t,r){var e=t.read_shift(r==1?1:2);return[16383&e,e>>14&1,e>>15&1]}function Sm(t,r,e){var n=2;if(e){if(e.biff>=2&&e.biff<=5)return Tm(t);e.biff==12&&(n=4)}var a=t.read_shift(n),o=t.read_shift(n),s=ls(t,2),i=ls(t,2);return{s:{r:a,c:s[0],cRel:s[1],rRel:s[2]},e:{r:o,c:i[0],cRel:i[1],rRel:i[2]}}}function Tm(t){var r=ls(t,2),e=ls(t,2),n=t.read_shift(1),a=t.read_shift(1);return{s:{r:r[0],c:n,cRel:r[1],rRel:r[2]},e:{r:e[0],c:a,cRel:e[1],rRel:e[2]}}}function Em(t,r,e){if(e&&e.biff>=2&&e.biff<=5)return function(o){var s=ls(o,2),i=o.read_shift(1);return{r:s[0],c:i,cRel:s[1],rRel:s[2]}}(t);var n=t.read_shift(e&&e.biff==12?4:2),a=ls(t,2);return{r:n,c:a[0],cRel:a[1],rRel:a[2]}}function _4(t){var r=t.read_shift(2),e=t.read_shift(2);return{r,c:255&e,fQuoted:!!(16384&e),cRel:e>>15,rRel:e>>15}}function Cm(t){var r=1&t[t.l+1];return t.l+=4,[r,1]}function Am(t){return[t.read_shift(1),t.read_shift(1)]}function k4(t,r){var e=[t.read_shift(1)];if(r==12)switch(e[0]){case 2:e[0]=4;break;case 4:e[0]=16;break;case 0:e[0]=1;break;case 1:e[0]=2}switch(e[0]){case 4:e[1]=sn(t,1)?"TRUE":"FALSE",r!=12&&(t.l+=7);break;case 37:case 16:e[1]=Ba[t[t.l]],t.l+=r==12?4:8;break;case 0:t.l+=8;break;case 1:e[1]=Gn(t);break;case 2:e[1]=Hs(t,0,{biff:r>0&&r<8?2:r});break;default:throw new Error("Bad SerAr: "+e[0])}return e}function x4(t,r,e){for(var n=t.read_shift(e.biff==12?4:2),a=[],o=0;o!=n;++o)a.push((e.biff==12?Bs:jl)(t));return a}function S4(t,r,e){var n=0,a=0;e.biff==12?(n=t.read_shift(4),a=t.read_shift(4)):(a=1+t.read_shift(1),n=1+t.read_shift(2)),e.biff>=2&&e.biff<8&&(--n,--a==0&&(a=256));for(var o=0,s=[];o!=n&&(s[o]=[]);++o)for(var i=0;i!=a;++i)s[o][i]=k4(t,e.biff);return s}function Ac(t,r,e){return t.l+=2,[_4(t)]}function rh(t){return t.l+=6,[]}function Rm(t){return t.l+=2,[pn(t),1&t.read_shift(2)]}var T4=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],Mm={1:{n:"PtgExp",f:function(t,r,e){return t.l++,e&&e.biff==12?[t.read_shift(4,"i"),0]:[t.read_shift(2),t.read_shift(e&&e.biff==2?1:2)]}},2:{n:"PtgTbl",f:$n},3:{n:"PtgAdd",f:mn},4:{n:"PtgSub",f:mn},5:{n:"PtgMul",f:mn},6:{n:"PtgDiv",f:mn},7:{n:"PtgPower",f:mn},8:{n:"PtgConcat",f:mn},9:{n:"PtgLt",f:mn},10:{n:"PtgLe",f:mn},11:{n:"PtgEq",f:mn},12:{n:"PtgGe",f:mn},13:{n:"PtgGt",f:mn},14:{n:"PtgNe",f:mn},15:{n:"PtgIsect",f:mn},16:{n:"PtgUnion",f:mn},17:{n:"PtgRange",f:mn},18:{n:"PtgUplus",f:mn},19:{n:"PtgUminus",f:mn},20:{n:"PtgPercent",f:mn},21:{n:"PtgParen",f:mn},22:{n:"PtgMissArg",f:mn},23:{n:"PtgStr",f:function(t,r,e){return t.l++,_c(t,0,e)}},26:{n:"PtgSheet",f:function(t,r,e){return t.l+=5,t.l+=2,t.l+=e.biff==2?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(t,r,e){return t.l+=e.biff==2?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function(t){return t.l++,Ba[t.read_shift(1)]}},29:{n:"PtgBool",f:function(t){return t.l++,t.read_shift(1)!==0}},30:{n:"PtgInt",f:function(t){return t.l++,t.read_shift(2)}},31:{n:"PtgNum",f:function(t){return t.l++,Gn(t)}},32:{n:"PtgArray",f:function(t,r,e){var n=(96&t[t.l++])>>5;return t.l+=e.biff==2?6:e.biff==12?14:7,[n]}},33:{n:"PtgFunc",f:function(t,r,e){var n=(96&t[t.l])>>5;t.l+=1;var a=t.read_shift(e&&e.biff<=3?1:2);return[L4[a],Nm[a],n]}},34:{n:"PtgFuncVar",f:function(t,r,e){var n=t[t.l++],a=t.read_shift(1),o=e&&e.biff<=3?[n==88?-1:0,t.read_shift(1)]:function(s){return[s[s.l+1]>>7,32767&s.read_shift(2)]}(t);return[a,(o[0]===0?Nm:j4)[o[1]]]}},35:{n:"PtgName",f:function(t,r,e){var n=t.read_shift(1)>>>5&3,a=!e||e.biff>=8?4:2,o=t.read_shift(a);switch(e.biff){case 2:t.l+=5;break;case 3:case 4:t.l+=8;break;case 5:t.l+=12}return[n,0,o]}},36:{n:"PtgRef",f:function(t,r,e){var n=(96&t[t.l])>>5;return t.l+=1,[n,Em(t,0,e)]}},37:{n:"PtgArea",f:function(t,r,e){return[(96&t[t.l++])>>5,Sm(t,e.biff>=2&&e.biff,e)]}},38:{n:"PtgMemArea",f:function(t,r,e){var n=t.read_shift(1)>>>5&3;return t.l+=e&&e.biff==2?3:4,[n,t.read_shift(e&&e.biff==2?1:2)]}},39:{n:"PtgMemErr",f:$n},40:{n:"PtgMemNoMem",f:$n},41:{n:"PtgMemFunc",f:function(t,r,e){return[t.read_shift(1)>>>5&3,t.read_shift(e&&e.biff==2?1:2)]}},42:{n:"PtgRefErr",f:function(t,r,e){var n=t.read_shift(1)>>>5&3;return t.l+=4,e.biff<8&&t.l--,e.biff==12&&(t.l+=2),[n]}},43:{n:"PtgAreaErr",f:function(t,r,e){var n=(96&t[t.l++])>>5;return t.l+=e&&e.biff>8?12:e.biff<8?6:8,[n]}},44:{n:"PtgRefN",f:function(t,r,e){var n=(96&t[t.l])>>5;t.l+=1;var a=function(o,s,i){var c=i&&i.biff?i.biff:8;if(c>=2&&c<=5)return function(d){var p=d.read_shift(2),m=d.read_shift(1),v=(32768&p)>>15,b=(16384&p)>>14;return p&=16383,v==1&&p>=8192&&(p-=16384),b==1&&m>=128&&(m-=256),{r:p,c:m,cRel:b,rRel:v}}(o);var l=o.read_shift(c>=12?4:2),u=o.read_shift(2),f=(16384&u)>>14,h=(32768&u)>>15;if(u&=16383,h==1)for(;l>524287;)l-=1048576;if(f==1)for(;u>8191;)u-=16384;return{r:l,c:u,cRel:f,rRel:h}}(t,0,e);return[n,a]}},45:{n:"PtgAreaN",f:function(t,r,e){var n=(96&t[t.l++])>>5,a=function(o,s,i){if(i.biff<8)return Tm(o);var c=o.read_shift(i.biff==12?4:2),l=o.read_shift(i.biff==12?4:2),u=ls(o,2),f=ls(o,2);return{s:{r:c,c:u[0],cRel:u[1],rRel:u[2]},e:{r:l,c:f[0],cRel:f[1],rRel:f[2]}}}(t,0,e);return[n,a]}},46:{n:"PtgMemAreaN",f:function(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},57:{n:"PtgNameX",f:function(t,r,e){return e.biff==5?function(n){var a=n.read_shift(1)>>>5&3,o=n.read_shift(2,"i");n.l+=8;var s=n.read_shift(2);return n.l+=12,[a,o,s]}(t):[t.read_shift(1)>>>5&3,t.read_shift(2),t.read_shift(4)]}},58:{n:"PtgRef3d",f:function(t,r,e){var n=(96&t[t.l])>>5;t.l+=1;var a=t.read_shift(2);return e&&e.biff==5&&(t.l+=12),[n,a,Em(t,0,e)]}},59:{n:"PtgArea3d",f:function(t,r,e){var n=(96&t[t.l++])>>5,a=t.read_shift(2,"i");if(e)switch(e.biff){case 5:t.l+=12;break}return[n,a,Sm(t,0,e)]}},60:{n:"PtgRefErr3d",f:function(t,r,e){var n=(96&t[t.l++])>>5,a=t.read_shift(2),o=4;if(e)switch(e.biff){case 5:o=15;break;case 12:o=6}return t.l+=o,[n,a]}},61:{n:"PtgAreaErr3d",f:function(t,r,e){var n=(96&t[t.l++])>>5,a=t.read_shift(2),o=8;if(e)switch(e.biff){case 5:t.l+=12,o=6;break;case 12:o=12}return t.l+=o,[n,a]}},255:{}},E4={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},C4={1:{n:"PtgElfLel",f:Rm},2:{n:"PtgElfRw",f:Ac},3:{n:"PtgElfCol",f:Ac},6:{n:"PtgElfRwV",f:Ac},7:{n:"PtgElfColV",f:Ac},10:{n:"PtgElfRadical",f:Ac},11:{n:"PtgElfRadicalS",f:rh},13:{n:"PtgElfColS",f:rh},15:{n:"PtgElfColSV",f:rh},16:{n:"PtgElfRadicalLel",f:Rm},25:{n:"PtgList",f:function(t){t.l+=2;var r=t.read_shift(2),e=t.read_shift(2),n=t.read_shift(4),a=t.read_shift(2),o=t.read_shift(2);return{ixti:r,coltype:3&e,rt:T4[e>>2&31],idx:n,c:a,C:o}}},29:{n:"PtgSxName",f:function(t){return t.l+=2,[t.read_shift(4)]}},255:{}},A4={0:{n:"PtgAttrNoop",f:function(t){return t.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(t,r,e){var n=255&t[t.l+1]?1:0;return t.l+=e&&e.biff==2?3:4,[n]}},2:{n:"PtgAttrIf",f:function(t,r,e){var n=255&t[t.l+1]?1:0;return t.l+=2,[n,t.read_shift(e&&e.biff==2?1:2)]}},4:{n:"PtgAttrChoose",f:function(t,r,e){t.l+=2;for(var n=t.read_shift(e&&e.biff==2?1:2),a=[],o=0;o<=n;++o)a.push(t.read_shift(e&&e.biff==2?1:2));return a}},8:{n:"PtgAttrGoto",f:function(t,r,e){var n=255&t[t.l+1]?1:0;return t.l+=2,[n,t.read_shift(e&&e.biff==2?1:2)]}},16:{n:"PtgAttrSum",f:function(t,r,e){t.l+=e&&e.biff==2?3:4}},32:{n:"PtgAttrBaxcel",f:Cm},33:{n:"PtgAttrBaxcel",f:Cm},64:{n:"PtgAttrSpace",f:function(t){return t.read_shift(2),Am(t)}},65:{n:"PtgAttrSpaceSemi",f:function(t){return t.read_shift(2),Am(t)}},128:{n:"PtgAttrIfError",f:function(t){var r=255&t[t.l+1]?1:0;return t.l+=2,[r,t.read_shift(2)]}},255:{}};function Rc(t,r,e,n){if(n.biff<8)return $n(t,r);for(var a=t.l+r,o=[],s=0;s!==e.length;++s)switch(e[s][0]){case"PtgArray":e[s][1]=S4(t,0,n),o.push(e[s][1]);break;case"PtgMemArea":e[s][2]=x4(t,e[s][1],n),o.push(e[s][2]);break;case"PtgExp":n&&n.biff==12&&(e[s][1][1]=t.read_shift(4),o.push(e[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+e[s][0]}return(r=a-t.l)!==0&&o.push($n(t,r)),o}function Mc(t,r,e){for(var n,a,o=t.l+r,s=[];o!=t.l;)r=o-t.l,a=t[t.l],n=Mm[a]||Mm[E4[a]],a!==24&&a!==25||(n=(a===24?C4:A4)[t[t.l+1]]),n&&n.f?s.push([n.n,n.f(t,r,e)]):$n(t,r);return s}function R4(t){for(var r=[],e=0;e<t.length;++e){for(var n=t[e],a=[],o=0;o<n.length;++o){var s=n[o];s?s[0]===2?a.push('"'+s[1].replace(/"/g,'""')+'"'):a.push(s[1]):a.push("")}r.push(a.join(","))}return r.join(";")}var M4={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Om(t,r,e){if(!t)return"SH33TJSERR0";if(e.biff>8&&(!t.XTI||!t.XTI[r]))return t.SheetNames[r];if(!t.XTI)return"SH33TJSERR6";var n=t.XTI[r];if(e.biff<8)return r>1e4&&(r-=65536),r<0&&(r=-r),r==0?"":t.XTI[r-1];if(!n)return"SH33TJSERR1";var a="";if(e.biff>8)switch(t[n[0]][0]){case 357:return a=n[1]==-1?"#REF":t.SheetNames[n[1]],n[1]==n[2]?a:a+":"+t.SheetNames[n[2]];case 358:return e.SID!=null?t.SheetNames[e.SID]:"SH33TJSSAME"+t[n[0]][0];default:return"SH33TJSSRC"+t[n[0]][0]}switch(t[n[0]][0][0]){case 1025:return a=n[1]==-1?"#REF":t.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?a:a+":"+t.SheetNames[n[2]];case 14849:return t[n[0]].slice(1).map(function(o){return o.Name}).join(";;");default:return t[n[0]][0][3]?(a=n[1]==-1?"#REF":t[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?a:a+":"+t[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function Im(t,r,e){var n=Om(t,r,e);return n=="#REF"?n:function(a,o){if(!(a||o&&o.biff<=5&&o.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(a)?"'"+a+"'":a}(n,e)}function Xn(t,r,e,n,a){var o,s,i,c,l=a&&a.biff||8,u={s:{c:0,r:0},e:{c:0,r:0}},f=[],h=0,d=0,p="";if(!t[0]||!t[0][0])return"";for(var m=-1,v="",b=0,g=t[0].length;b<g;++b){var y=t[0][b];switch(y[0]){case"PtgUminus":f.push("-"+f.pop());break;case"PtgUplus":f.push("+"+f.pop());break;case"PtgPercent":f.push(f.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(o=f.pop(),s=f.pop(),m>=0){switch(t[0][m][1][0]){case 0:v=Zr(" ",t[0][m][1][1]);break;case 1:v=Zr("\r",t[0][m][1][1]);break;default:if(v="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][m][1][0])}s+=v,m=-1}f.push(s+M4[y[0]]+o);break;case"PtgIsect":o=f.pop(),s=f.pop(),f.push(s+" "+o);break;case"PtgUnion":o=f.pop(),s=f.pop(),f.push(s+","+o);break;case"PtgRange":o=f.pop(),s=f.pop(),f.push(s+":"+o);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":case"PtgAttrBaxcel":case"PtgAttrSemi":case"PtgMemArea":case"PtgTbl":case"PtgMemErr":case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgRef":i=vc(y[1][1],u,a),f.push(gc(i,l));break;case"PtgRefN":i=e?vc(y[1][1],e,a):y[1][1],f.push(gc(i,l));break;case"PtgRef3d":h=y[1][1],i=vc(y[1][2],u,a),p=Im(n,h,a),f.push(p+"!"+gc(i,l));break;case"PtgFunc":case"PtgFuncVar":var w=y[1][0],x=y[1][1];w||(w=0);var C=(w&=127)==0?[]:f.slice(-w);f.length-=w,x==="User"&&(x=C.shift()),f.push(x+"("+C.join(",")+")");break;case"PtgBool":f.push(y[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":f.push(y[1]);break;case"PtgNum":f.push(String(y[1]));break;case"PtgStr":f.push('"'+y[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":c=i1(y[1][1],e?{s:e}:u,a),f.push(If(c,a));break;case"PtgArea":c=i1(y[1][1],u,a),f.push(If(c,a));break;case"PtgArea3d":h=y[1][1],c=y[1][2],p=Im(n,h,a),f.push(p+"!"+If(c,a));break;case"PtgAttrSum":f.push("SUM("+f.pop()+")");break;case"PtgName":d=y[1][2];var O=(n.names||[])[d-1]||(n[0]||[])[d],D=O?O.Name:"SH33TJSNAME"+String(d);D&&D.slice(0,6)=="_xlfn."&&!a.xlfn&&(D=D.slice(6)),f.push(D);break;case"PtgNameX":var j,U=y[1][1];if(d=y[1][2],!(a.biff<=5)){var L="";if(((n[U]||[])[0]||[])[0]==14849||(((n[U]||[])[0]||[])[0]==1025?n[U][d]&&n[U][d].itab>0&&(L=n.SheetNames[n[U][d].itab-1]+"!"):L=n.SheetNames[d-1]+"!"),n[U]&&n[U][d])L+=n[U][d].Name;else if(n[0]&&n[0][d])L+=n[0][d].Name;else{var V=(Om(n,U,a)||"").split(";;");V[d-1]?L=V[d-1]:L+="SH33TJSERRX"}f.push(L);break}U<0&&(U=-U),n[U]&&(j=n[U][d]),j||(j={Name:"SH33TJSERRY"}),f.push(j.Name);break;case"PtgParen":var A="(",N=")";if(m>=0){switch(v="",t[0][m][1][0]){case 2:A=Zr(" ",t[0][m][1][1])+A;break;case 3:A=Zr("\r",t[0][m][1][1])+A;break;case 4:N=Zr(" ",t[0][m][1][1])+N;break;case 5:N=Zr("\r",t[0][m][1][1])+N;break;default:if(a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][m][1][0])}m=-1}f.push(A+f.pop()+N);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":f.push("#REF!");break;case"PtgExp":i={c:y[1][1],r:y[1][0]};var k={c:e.c,r:e.r};if(n.sharedf[nr(i)]){var S=n.sharedf[nr(i)];f.push(Xn(S,u,k,n,a))}else{var E=!1;for(o=0;o!=n.arrayf.length;++o)if(s=n.arrayf[o],!(i.c<s[0].s.c||i.c>s[0].e.c||i.r<s[0].s.r||i.r>s[0].e.r)){f.push(Xn(s[1],u,k,n,a)),E=!0;break}E||f.push(y[1])}break;case"PtgArray":f.push("{"+R4(y[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":m=b;break;case"PtgMissArg":f.push("");break;case"PtgList":f.push("Table"+y[1].idx+"[#"+y[1].rt+"]");break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(y))}if(a.biff!=3&&m>=0&&["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(t[0][b][0])==-1){var T=!0;switch((y=t[0][m])[1][0]){case 4:T=!1;case 0:v=Zr(" ",y[1][1]);break;case 5:T=!1;case 1:v=Zr("\r",y[1][1]);break;default:if(v="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+y[1][0])}f.push((T?v:"")+f.pop()+(T?"":v)),m=-1}}if(f.length>1&&a.WTF)throw new Error("bad formula stack");return f[0]}function O4(t,r,e){var n,a=t.l+r,o=e.biff==2?1:2,s=t.read_shift(o);if(s==65535)return[[],$n(t,r-2)];var i=Mc(t,s,e);return r!==s+o&&(n=Rc(t,r-s-o,i,e)),t.l=a,[i,n]}function I4(t,r,e){var n,a=t.l+r,o=t.read_shift(2),s=Mc(t,o,e);return o==65535?[[],$n(t,r-2)]:(r!==o+2&&(n=Rc(t,a-o-2,s,e)),[s,n])}function nh(t,r,e){var n=t.l+r,a=ba(t);e.biff==2&&++t.l;var o=function(c){var l;if(ja(c,c.l+6)!==65535)return[Gn(c),"n"];switch(c[c.l]){case 0:return c.l+=8,["String","s"];case 1:return l=c[c.l+2]===1,c.l+=8,[l,"b"];case 2:return l=c[c.l+2],c.l+=8,[l,"e"];case 3:return c.l+=8,["","s"]}return[]}(t),s=t.read_shift(1);e.biff!=2&&(t.read_shift(1),e.biff>=5&&t.read_shift(4));var i=function(c,l,u){var f,h=c.l+l,d=u.biff==2?1:2,p=c.read_shift(d);if(p==65535)return[[],$n(c,l-2)];var m=Mc(c,p,u);return l!==p+d&&(f=Rc(c,l-p-d,m,u)),c.l=h,[m,f]}(t,n-t.l,e);return{cell:a,val:o[0],formula:i,shared:s>>3&1,tt:o[1]}}function N4(t,r,e,n,a){var o=Ws(r,e,a),s=function(u){if(u==null){var f=Kt(8);return f.write_shift(1,3),f.write_shift(1,0),f.write_shift(2,0),f.write_shift(2,0),f.write_shift(2,65535),f}return _o(typeof u=="number"?u:0)}(t.v),i=Kt(6);i.write_shift(2,33),i.write_shift(4,0);for(var c=Kt(t.bf.length),l=0;l<t.bf.length;++l)c[l]=t.bf[l];return En([o,s,i,c])}function Wl(t,r,e){var n=t.read_shift(4),a=Mc(t,n,e),o=t.read_shift(4);return[a,o>0?Rc(t,o,a,e):null]}var P4=Wl,Vl=Wl,D4=Wl,F4=Wl,j4={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},Nm={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},L4={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function Pm(t){return t.slice(0,3)=="of:"&&(t=t.slice(3)),t.charCodeAt(0)==61&&(t=t.slice(1)).charCodeAt(0)==61&&(t=t.slice(1)),(t=(t=(t=t.replace(/COM\.MICROSOFT\./g,"")).replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(r,e){return e.replace(/\./g,"")})).replace(/\[.(#[A-Z]*[?!])\]/g,"$1")).replace(/[;~]/g,",").replace(/\|/g,";")}function ih(t){var r=t.split(":");return[r[0].split(".")[0],r[0].split(".")[1]+(r.length>1?":"+(r[1].split(".")[1]||r[1].split(".")[0]):"")]}var Oc={},Ao={},Ic=typeof Map!="undefined";function ah(t,r,e){var n=0,a=t.length;if(e){if(Ic?e.has(r):Object.prototype.hasOwnProperty.call(e,r)){for(var o=Ic?e.get(r):e[r];n<o.length;++n)if(t[o[n]].t===r)return t.Count++,o[n]}}else for(;n<a;++n)if(t[n].t===r)return t.Count++,n;return t[a]={t:r},t.Count++,t.Unique++,e&&(Ic?(e.has(r)||e.set(r,[]),e.get(r).push(a)):(Object.prototype.hasOwnProperty.call(e,r)||(e[r]=[]),e[r].push(a))),a}function $l(t,r){var e={min:t+1,max:t+1},n=-1;return r.MDW&&(Kn=r.MDW),r.width!=null?e.customWidth=1:r.wpx!=null?n=Tc(r.wpx):r.wch!=null&&(n=r.wch),n>-1?(e.width=zl(n),e.customWidth=1):r.width!=null&&(e.width=r.width),r.hidden&&(e.hidden=!0),r.level!=null&&(e.outlineLevel=e.level=r.level),e}function $s(t,r){if(t){var e=[.7,.7,.75,.75,.3,.3];r=="xlml"&&(e=[1,1,1,1,.5,.5]),t.left==null&&(t.left=e[0]),t.right==null&&(t.right=e[1]),t.top==null&&(t.top=e[2]),t.bottom==null&&(t.bottom=e[3]),t.header==null&&(t.header=e[4]),t.footer==null&&(t.footer=e[5])}}function us(t,r,e){var n=e.revssf[r.z!=null?r.z:"General"],a=60,o=t.length;if(n==null&&e.ssf){for(;a<392;++a)if(e.ssf[a]==null){Da(r.z,a),e.ssf[a]=r.z,e.revssf[r.z]=n=a;break}}for(a=0;a!=o;++a)if(t[a].numFmtId===n)return a;return t[o]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},o}function Dm(t,r,e,n,a,o){try{n.cellNF&&(t.z=Qe[r])}catch(i){if(n.WTF)throw i}if(t.t!=="z"||n.cellStyles){if(t.t==="d"&&typeof t.v=="string"&&(t.v=Gr(t.v)),(!n||n.cellText!==!1)&&t.t!=="z")try{if(Qe[r]==null&&Da(Cw[r]||"General",r),t.t==="e")t.w=t.w||Ba[t.v];else if(r===0)if(t.t==="n")(0|t.v)===t.v?t.w=t.v.toString(10):t.w=oc(t.v);else if(t.t==="d"){var s=Nn(t.v);t.w=(0|s)===s?s.toString(10):oc(s)}else{if(t.v===void 0)return"";t.w=Os(t.v,Ao)}else t.t==="d"?t.w=Pi(r,Nn(t.v),Ao):t.w=Pi(r,t.v,Ao)}catch(i){if(n.WTF)throw i}if(n.cellStyles&&e!=null)try{t.s=o.Fills[e],t.s.fgColor&&t.s.fgColor.theme&&!t.s.fgColor.rgb&&(t.s.fgColor.rgb=Bl(a.themeElements.clrScheme[t.s.fgColor.theme].rgb,t.s.fgColor.tint||0),n.WTF&&(t.s.fgColor.raw_rgb=a.themeElements.clrScheme[t.s.fgColor.theme].rgb)),t.s.bgColor&&t.s.bgColor.theme&&(t.s.bgColor.rgb=Bl(a.themeElements.clrScheme[t.s.bgColor.theme].rgb,t.s.bgColor.tint||0),n.WTF&&(t.s.bgColor.raw_rgb=a.themeElements.clrScheme[t.s.bgColor.theme].rgb))}catch(i){if(n.WTF&&o.Fills)throw i}}}function B4(t,r,e){if(t&&t["!ref"]){var n=Mr(t["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+e+"): "+t["!ref"])}}var z4=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,U4=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,H4=/<(?:\w:)?hyperlink [^>]*>/gm,W4=/"(\w*:\w*)"/,V4=/<(?:\w:)?col\b[^>]*[\/]?>/g,$4=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,q4=/<(?:\w:)?pageMargins[^>]*\/>/g,Fm=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,G4=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,Y4=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function K4(t,r,e,n,a,o,s){if(!t)return t;n||(n={"!id":{}});var i=r.dense?[]:{},c={s:{r:2e6,c:2e6},e:{r:0,c:0}},l="",u="",f=t.match(U4);f?(l=t.slice(0,f.index),u=t.slice(f.index+f[0].length)):l=u=t;var h=l.match(Fm);h?sh(h[0],i,a,e):(h=l.match(G4))&&function(U,L,V,A,N){sh(U.slice(0,U.indexOf(">")),V,A,N)}(h[0],h[1],i,a,e);var d=(l.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(d>0){var p=l.slice(d,d+50).match(W4);p&&function(U,L){var V=Mr(L);V.s.r<=V.e.r&&V.s.c<=V.e.c&&V.s.r>=0&&V.s.c>=0&&(U["!ref"]=wr(V))}(i,p[1])}var m=l.match(Y4);m&&m[1]&&function(U,L){L.Views||(L.Views=[{}]),(U.match(J4)||[]).forEach(function(V,A){var N=tr(V);L.Views[A]||(L.Views[A]={}),+N.zoomScale&&(L.Views[A].zoom=+N.zoomScale),Vr(N.rightToLeft)&&(L.Views[A].RTL=!0)})}(m[1],a);var v=[];if(r.cellStyles){var b=l.match(V4);b&&function(U,L){for(var V=!1,A=0;A!=L.length;++A){var N=tr(L[A],!0);N.hidden&&(N.hidden=Vr(N.hidden));var k=parseInt(N.min,10)-1,S=parseInt(N.max,10)-1;for(N.outlineLevel&&(N.level=+N.outlineLevel||0),delete N.min,delete N.max,N.width=+N.width,!V&&N.width&&(V=!0,Zf(N.width)),cs(N);k<=S;)U[k++]=Wr(N)}}(v,b)}f&&t6(f[1],i,r,c,o,s);var g=u.match($4);g&&(i["!autofilter"]=function(U){var L={ref:(U.match(/ref="([^"]*)"/)||[])[1]};return L}(g[0]));var y=[],w=u.match(z4);if(w)for(d=0;d!=w.length;++d)y[d]=Mr(w[d].slice(w[d].indexOf('"')+1));var x=u.match(H4);x&&function(U,L,V){for(var A=Array.isArray(U),N=0;N!=L.length;++N){var k=tr(Lr(L[N]),!0);if(!k.ref)return;var S=((V||{})["!id"]||[])[k.id];S?(k.Target=S.Target,k.location&&(k.Target+="#"+Tr(k.location))):(k.Target="#"+Tr(k.location),S={Target:k.Target,TargetMode:"Internal"}),k.Rel=S,k.tooltip&&(k.Tooltip=k.tooltip,delete k.tooltip);for(var E=Mr(k.ref),T=E.s.r;T<=E.e.r;++T)for(var R=E.s.c;R<=E.e.c;++R){var F=nr({c:R,r:T});A?(U[T]||(U[T]=[]),U[T][R]||(U[T][R]={t:"z",v:void 0}),U[T][R].l=k):(U[F]||(U[F]={t:"z",v:void 0}),U[F].l=k)}}}(i,x,n);var C,O,D=u.match(q4);if(D&&(i["!margins"]=(C=tr(D[0]),O={},["left","right","top","bottom","header","footer"].forEach(function(U){C[U]&&(O[U]=parseFloat(C[U]))}),O)),!i["!ref"]&&c.e.c>=c.s.c&&c.e.r>=c.s.r&&(i["!ref"]=wr(c)),r.sheetRows>0&&i["!ref"]){var j=Mr(i["!ref"]);r.sheetRows<=+j.e.r&&(j.e.r=r.sheetRows-1,j.e.r>c.e.r&&(j.e.r=c.e.r),j.e.r<j.s.r&&(j.s.r=j.e.r),j.e.c>c.e.c&&(j.e.c=c.e.c),j.e.c<j.s.c&&(j.s.c=j.e.c),i["!fullref"]=i["!ref"],i["!ref"]=wr(j))}return v.length>0&&(i["!cols"]=v),y.length>0&&(i["!merges"]=y),i}function sh(t,r,e,n){var a=tr(t);e.Sheets[n]||(e.Sheets[n]={}),a.codeName&&(e.Sheets[n].CodeName=Tr(Lr(a.codeName)))}var X4=["objects","scenarios","selectLockedCells","selectUnlockedCells"],Z4=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"],J4=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function Q4(t,r,e,n){if(t.c&&e["!comments"].push([r,t.c]),t.v===void 0&&typeof t.f!="string"||t.t==="z"&&!t.f)return"";var a="",o=t.t,s=t.v;if(t.t!=="z")switch(t.t){case"b":a=t.v?"1":"0";break;case"n":a=""+t.v;break;case"e":a=Ba[t.v];break;case"d":n&&n.cellDates?a=Gr(t.v,-1).toISOString():((t=Wr(t)).t="n",a=""+(t.v=Nn(Gr(t.v)))),t.z===void 0&&(t.z=Qe[14]);break;default:a=t.v}var i=Pn("v",Nr(a)),c={r},l=us(n.cellXfs,t,n);switch(l!==0&&(c.s=l),t.t){case"n":case"z":break;case"d":c.t="d";break;case"b":c.t="b";break;case"e":c.t="e";break;default:if(t.v==null){delete t.t;break}if(t.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){i=Pn("v",""+ah(n.Strings,t.v,n.revStrings)),c.t="s";break}c.t="str"}if(t.t!=o&&(t.t=o,t.v=s),typeof t.f=="string"&&t.f){var u=t.F&&t.F.slice(0,r.length)==r?{t:"array",ref:t.F}:null;i=we("f",Nr(t.f),u)+(t.v!=null?i:"")}return t.l&&e["!links"].push([r,t.l]),t.D&&(c.cm=1),we("c",i,c)}var t6=function(){var t=/<(?:\w+:)?c[ \/>]/,r=/<\/(?:\w+:)?row>/,e=/r=["']([^"']*)["']/,n=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,a=/ref=["']([^"']*)["']/,o=fc("v"),s=fc("f");return function(i,c,l,u,f,h){for(var d,p,m,v,b,g=0,y="",w=[],x=[],C=0,O=0,D=0,j="",U=0,L=0,V=0,A=0,N=Array.isArray(h.CellXf),k=[],S=[],E=Array.isArray(c),T=[],R={},F=!1,I=!!l.sheetStubs,B=i.split(r),P=0,H=B.length;P!=H;++P){var Z=(y=B[P].trim()).length;if(Z!==0){var Y=0;t:for(g=0;g<Z;++g)switch(y[g]){case">":if(y[g-1]!="/"){++g;break t}if(l&&l.cellStyles){if(U=(p=tr(y.slice(Y,g),!0)).r!=null?parseInt(p.r,10):U+1,L=-1,l.sheetRows&&l.sheetRows<U)continue;R={},F=!1,p.ht&&(F=!0,R.hpt=parseFloat(p.ht),R.hpx=To(R.hpt)),p.hidden=="1"&&(F=!0,R.hidden=!0),p.outlineLevel!=null&&(F=!0,R.level=+p.outlineLevel),F&&(T[U-1]=R)}break;case"<":Y=g}if(Y>=g)break;if(U=(p=tr(y.slice(Y,g),!0)).r!=null?parseInt(p.r,10):U+1,L=-1,!(l.sheetRows&&l.sheetRows<U)){u.s.r>U-1&&(u.s.r=U-1),u.e.r<U-1&&(u.e.r=U-1),l&&l.cellStyles&&(R={},F=!1,p.ht&&(F=!0,R.hpt=parseFloat(p.ht),R.hpx=To(R.hpt)),p.hidden=="1"&&(F=!0,R.hidden=!0),p.outlineLevel!=null&&(F=!0,R.level=+p.outlineLevel),F&&(T[U-1]=R)),w=y.slice(g).split(t);for(var dt=0;dt!=w.length&&w[dt].trim().charAt(0)=="<";++dt);for(w=w.slice(dt),g=0;g!=w.length;++g)if((y=w[g].trim()).length!==0){if(x=y.match(e),C=g,O=0,D=0,y="<c "+(y.slice(0,1)=="<"?">":"")+y,x!=null&&x.length===2){for(C=0,j=x[1],O=0;O!=j.length&&!((D=j.charCodeAt(O)-64)<1||D>26);++O)C=26*C+D;L=--C}else++L;for(O=0;O!=y.length&&y.charCodeAt(O)!==62;++O);if(++O,(p=tr(y.slice(0,O),!0)).r||(p.r=nr({r:U-1,c:L})),d={t:""},(x=(j=y.slice(O)).match(o))!=null&&x[1]!==""&&(d.v=Tr(x[1])),l.cellFormula){if((x=j.match(s))!=null&&x[1]!==""){if(d.f=Tr(Lr(x[1])).replace(/\r\n/g,`
|
||
`),l.xlfn||(d.f=xm(d.f)),x[0].indexOf('t="array"')>-1)d.F=(j.match(a)||[])[1],d.F.indexOf(":")>-1&&k.push([Mr(d.F),d.F]);else if(x[0].indexOf('t="shared"')>-1){v=tr(x[0]);var gt=Tr(Lr(x[1]));l.xlfn||(gt=xm(gt)),S[parseInt(v.si,10)]=[v,gt,p.r]}}else(x=j.match(/<f[^>]*\/>/))&&S[(v=tr(x[0])).si]&&(d.f=w4(S[v.si][1],S[v.si][2],p.r));var bt=gn(p.r);for(O=0;O<k.length;++O)bt.r>=k[O][0].s.r&&bt.r<=k[O][0].e.r&&bt.c>=k[O][0].s.c&&bt.c<=k[O][0].e.c&&(d.F=k[O][1])}if(p.t==null&&d.v===void 0)if(d.f||d.F)d.v=0,d.t="n";else{if(!I)continue;d.t="z"}else d.t=p.t||"n";switch(u.s.c>L&&(u.s.c=L),u.e.c<L&&(u.e.c=L),d.t){case"n":if(d.v==""||d.v==null){if(!I)continue;d.t="z"}else d.v=parseFloat(d.v);break;case"s":if(d.v===void 0){if(!I)continue;d.t="z"}else m=Oc[parseInt(d.v,10)],d.v=m.t,d.r=m.r,l.cellHTML&&(d.h=m.h);break;case"str":d.t="s",d.v=d.v!=null?Lr(d.v):"",l.cellHTML&&(d.h=Ef(d.v));break;case"inlineStr":x=j.match(n),d.t="s",x!=null&&(m=Yf(x[1]))?(d.v=m.t,l.cellHTML&&(d.h=m.h)):d.v="";break;case"b":d.v=Vr(d.v);break;case"d":l.cellDates?d.v=Gr(d.v,1):(d.v=Nn(Gr(d.v,1)),d.t="n");break;case"e":l&&l.cellText===!1||(d.w=d.v),d.v=p1[d.v]}if(V=A=0,b=null,N&&p.s!==void 0&&(b=h.CellXf[p.s])!=null&&(b.numFmtId!=null&&(V=b.numFmtId),l.cellStyles&&b.fillId!=null&&(A=b.fillId)),Dm(d,V,A,l,f,h),l.cellDates&&N&&d.t=="n"&&go(Qe[V])&&(d.t="d",d.v=Rl(d.v)),p.cm&&l.xlmeta){var Q=(l.xlmeta.Cell||[])[+p.cm-1];Q&&Q.type=="XLDAPR"&&(d.D=!0)}if(E){var q=gn(p.r);c[q.r]||(c[q.r]=[]),c[q.r][q.c]=d}else c[p.r]=d}}}}T.length>0&&(c["!rows"]=T)}}();function jm(t,r,e,n){var a,o=[an,we("worksheet",null,{xmlns:Ns[0],"xmlns:r":vn.r})],s=e.SheetNames[t],i="",c=e.Sheets[s];c==null&&(c={});var l=c["!ref"]||"A1",u=Mr(l);if(u.e.c>16383||u.e.r>1048575){if(r.WTF)throw new Error("Range "+l+" exceeds format limit A1:XFD1048576");u.e.c=Math.min(u.e.c,16383),u.e.r=Math.min(u.e.c,1048575),l=wr(u)}n||(n={}),c["!comments"]=[];var f=[];(function(v,b,g,y,w){var x=!1,C={},O=null;if(y.bookType!=="xlsx"&&b.vbaraw){var D=b.SheetNames[g];try{b.Workbook&&(D=b.Workbook.Sheets[g].CodeName||D)}catch(U){}x=!0,C.codeName=ga(Nr(D))}if(v&&v["!outline"]){var j={summaryBelow:1,summaryRight:1};v["!outline"].above&&(j.summaryBelow=0),v["!outline"].left&&(j.summaryRight=0),O=(O||"")+we("outlinePr",null,j)}(x||O)&&(w[w.length]=we("sheetPr",O,C))})(c,e,t,r,o),o[o.length]=we("dimension",null,{ref:l}),o[o.length]=function(v,b,g,y){var w={workbookViewId:"0"};return(((y||{}).Workbook||{}).Views||[])[0]&&(w.rightToLeft=y.Workbook.Views[0].RTL?"1":"0"),we("sheetViews",we("sheetView",null,w),{})}(0,0,0,e),r.sheetFormat&&(o[o.length]=we("sheetFormatPr",null,{defaultRowHeight:r.sheetFormat.defaultRowHeight||"16",baseColWidth:r.sheetFormat.baseColWidth||"10",outlineLevelRow:r.sheetFormat.outlineLevelRow||"7"})),c["!cols"]!=null&&c["!cols"].length>0&&(o[o.length]=function(v,b){for(var g,y=["<cols>"],w=0;w!=b.length;++w)(g=b[w])&&(y[y.length]=we("col",null,$l(w,g)));return y[y.length]="</cols>",y.join("")}(0,c["!cols"])),o[a=o.length]="<sheetData/>",c["!links"]=[],c["!ref"]!=null&&(i=function(v,b,g,y){var w,x,C=[],O=[],D=Mr(v["!ref"]),j="",U="",L=[],V=0,A=0,N=v["!rows"],k=Array.isArray(v),S={r:U},E=-1;for(A=D.s.c;A<=D.e.c;++A)L[A]=dn(A);for(V=D.s.r;V<=D.e.r;++V){for(O=[],U=Cn(V),A=D.s.c;A<=D.e.c;++A){w=L[A]+U;var T=k?(v[V]||[])[A]:v[w];T!==void 0&&(j=Q4(T,w,v,b))!=null&&O.push(j)}(O.length>0||N&&N[V])&&(S={r:U},N&&N[V]&&((x=N[V]).hidden&&(S.hidden=1),E=-1,x.hpx?E=Ec(x.hpx):x.hpt&&(E=x.hpt),E>-1&&(S.ht=E,S.customHeight=1),x.level&&(S.outlineLevel=x.level)),C[C.length]=we("row",O.join(""),S))}if(N)for(;V<N.length;++V)N&&N[V]&&(S={r:V+1},(x=N[V]).hidden&&(S.hidden=1),E=-1,x.hpx?E=Ec(x.hpx):x.hpt&&(E=x.hpt),E>-1&&(S.ht=E,S.customHeight=1),x.level&&(S.outlineLevel=x.level),C[C.length]=we("row","",S));return C.join("")}(c,r),i.length>0&&(o[o.length]=i)),o.length>a+1&&(o[o.length]="</sheetData>",o[a]=o[a].replace("/>",">")),c["!protect"]&&(o[o.length]=function(v){var b={sheet:1};return X4.forEach(function(g){v[g]!=null&&v[g]&&(b[g]="1")}),Z4.forEach(function(g){v[g]==null||v[g]||(b[g]="0")}),v.password&&(b.password=Kf(v.password).toString(16).toUpperCase()),we("sheetProtection",null,b)}(c["!protect"])),c["!autofilter"]!=null&&(o[o.length]=function(v,b,g,y){var w=typeof v.ref=="string"?v.ref:wr(v.ref);g.Workbook||(g.Workbook={Sheets:[]}),g.Workbook.Names||(g.Workbook.Names=[]);var x=g.Workbook.Names,C=Fi(w);C.s.r==C.e.r&&(C.e.r=Fi(b["!ref"]).e.r,w=wr(C));for(var O=0;O<x.length;++O){var D=x[O];if(D.Name=="_xlnm._FilterDatabase"&&D.Sheet==y){D.Ref="'"+g.SheetNames[y]+"'!"+w;break}}return O==x.length&&x.push({Name:"_xlnm._FilterDatabase",Sheet:y,Ref:"'"+g.SheetNames[y]+"'!"+w}),we("autoFilter",null,{ref:w})}(c["!autofilter"],c,e,t)),c["!merges"]!=null&&c["!merges"].length>0&&(o[o.length]=function(v){if(v.length===0)return"";for(var b='<mergeCells count="'+v.length+'">',g=0;g!=v.length;++g)b+='<mergeCell ref="'+wr(v[g])+'"/>';return b+"</mergeCells>"}(c["!merges"]));var h,d,p=-1,m=-1;return c["!links"].length>0&&(o[o.length]="<hyperlinks>",c["!links"].forEach(function(v){v[1].Target&&(h={ref:v[0]},v[1].Target.charAt(0)!="#"&&(m=Pr(n,-1,Nr(v[1].Target).replace(/#.*$/,""),br.HLINK),h["r:id"]="rId"+m),(p=v[1].Target.indexOf("#"))>-1&&(h.location=Nr(v[1].Target.slice(p+1))),v[1].Tooltip&&(h.tooltip=Nr(v[1].Tooltip)),o[o.length]=we("hyperlink",null,h))}),o[o.length]="</hyperlinks>"),delete c["!links"],c["!margins"]!=null&&(o[o.length]=($s(d=c["!margins"]),we("pageMargins",null,d))),r&&!r.ignoreEC&&r.ignoreEC!=null||(o[o.length]=Pn("ignoredErrors",we("ignoredError",null,{numberStoredAsText:1,sqref:l}))),f.length>0&&(m=Pr(n,-1,"../drawings/drawing"+(t+1)+".xml",br.DRAW),o[o.length]=we("drawing",null,{"r:id":"rId"+m}),c["!drawing"]=f),c["!comments"].length>0&&(m=Pr(n,-1,"../drawings/vmlDrawing"+(t+1)+".vml",br.VML),o[o.length]=we("legacyDrawing",null,{"r:id":"rId"+m}),c["!legacy"]=m),o.length>1&&(o[o.length]="</worksheet>",o[1]=o[1].replace("/>",">")),o.join("")}function e6(t,r,e,n){var a=function(o,s,i){var c=Kt(145),l=(i["!rows"]||[])[o]||{};c.write_shift(4,o),c.write_shift(4,0);var u=320;l.hpx?u=20*Ec(l.hpx):l.hpt&&(u=20*l.hpt),c.write_shift(2,u),c.write_shift(1,0);var f=0;l.level&&(f|=l.level),l.hidden&&(f|=16),(l.hpx||l.hpt)&&(f|=32),c.write_shift(1,f),c.write_shift(1,0);var h=0,d=c.l;c.l+=4;for(var p={r:o,c:0},m=0;m<16;++m)if(!(s.s.c>m+1<<10||s.e.c<m<<10)){for(var v=-1,b=-1,g=m<<10;g<m+1<<10;++g)p.c=g,(Array.isArray(i)?(i[p.r]||[])[p.c]:i[nr(p)])&&(v<0&&(v=g),b=g);v<0||(++h,c.write_shift(4,v),c.write_shift(4,b))}var y=c.l;return c.l=d,c.write_shift(4,h),c.l=y,c.length>c.l?c.slice(0,c.l):c}(n,e,r);(a.length>17||(r["!rows"]||[])[n])&&ce(t,0,a)}var r6=Bs,n6=wo;function Lm(t){return[js(t),Gn(t),"n"]}var i6=Bs,a6=wo,Bm=["left","right","top","bottom","header","footer"];function s6(t,r,e,n,a,o,s){if(r.v===void 0)return!1;var i="";switch(r.t){case"b":i=r.v?"1":"0";break;case"d":(r=Wr(r)).z=r.z||Qe[14],r.v=Nn(Gr(r.v)),r.t="n";break;case"n":case"e":i=""+r.v;break;default:i=r.v}var c={r:e,c:n};switch(c.s=us(a.cellXfs,r,a),r.l&&o["!links"].push([nr(c),r.l]),r.c&&o["!comments"].push([nr(c),r.c]),r.t){case"s":case"str":return a.bookSST?(i=ah(a.Strings,r.v,a.revStrings),c.t="s",c.v=i,s?ce(t,18,function(l,u,f){return f==null&&(f=Kt(8)),Ls(u,f),f.write_shift(4,u.v),f}(0,c)):ce(t,7,function(l,u,f){return f==null&&(f=Kt(12)),Fs(u,f),f.write_shift(4,u.v),f}(0,c))):(c.t="str",s?ce(t,17,function(l,u,f){return f==null&&(f=Kt(8+4*l.v.length)),Ls(u,f),An(l.v,f),f.length>f.l?f.slice(0,f.l):f}(r,c)):ce(t,6,function(l,u,f){return f==null&&(f=Kt(12+4*l.v.length)),Fs(u,f),An(l.v,f),f.length>f.l?f.slice(0,f.l):f}(r,c))),!0;case"n":return r.v==(0|r.v)&&r.v>-1e3&&r.v<1e3?s?ce(t,13,function(l,u,f){return f==null&&(f=Kt(8)),Ls(u,f),c1(l.v,f),f}(r,c)):ce(t,2,function(l,u,f){return f==null&&(f=Kt(12)),Fs(u,f),c1(l.v,f),f}(r,c)):s?ce(t,16,function(l,u,f){return f==null&&(f=Kt(12)),Ls(u,f),_o(l.v,f),f}(r,c)):ce(t,5,function(l,u,f){return f==null&&(f=Kt(16)),Fs(u,f),_o(l.v,f),f}(r,c)),!0;case"b":return c.t="b",s?ce(t,15,function(l,u,f){return f==null&&(f=Kt(5)),Ls(u,f),f.write_shift(1,l.v?1:0),f}(r,c)):ce(t,4,function(l,u,f){return f==null&&(f=Kt(9)),Fs(u,f),f.write_shift(1,l.v?1:0),f}(r,c)),!0;case"e":return c.t="e",s?ce(t,14,function(l,u,f){return f==null&&(f=Kt(8)),Ls(u,f),f.write_shift(1,l.v),f.write_shift(2,0),f.write_shift(1,0),f}(r,c)):ce(t,3,function(l,u,f){return f==null&&(f=Kt(9)),Fs(u,f),f.write_shift(1,l.v),f}(r,c)),!0}return s?ce(t,12,function(l,u,f){return f==null&&(f=Kt(4)),Ls(u,f)}(0,c)):ce(t,1,function(l,u,f){return f==null&&(f=Kt(8)),Fs(u,f)}(0,c)),!0}function o6(t,r){var e,n;r&&r["!merges"]&&(ce(t,177,(e=r["!merges"].length,n==null&&(n=Kt(4)),n.write_shift(4,e),n)),r["!merges"].forEach(function(a){ce(t,176,a6(a))}),ce(t,178))}function c6(t,r){r&&r["!cols"]&&(ce(t,390),r["!cols"].forEach(function(e,n){e&&ce(t,60,function(a,o,s){s==null&&(s=Kt(18));var i=$l(a,o);s.write_shift(-4,a),s.write_shift(-4,a),s.write_shift(4,256*(i.width||10)),s.write_shift(4,0);var c=0;return o.hidden&&(c|=1),typeof i.width=="number"&&(c|=2),o.level&&(c|=o.level<<8),s.write_shift(2,c),s}(n,e))}),ce(t,391))}function l6(t,r){var e,n;r&&r["!ref"]&&(ce(t,648),ce(t,649,(e=Mr(r["!ref"]),(n=Kt(24)).write_shift(4,4),n.write_shift(4,1),wo(e,n),n)),ce(t,650))}function u6(t,r,e){r["!links"].forEach(function(n){if(n[1].Target){var a=Pr(e,-1,n[1].Target.replace(/#.*$/,""),br.HLINK);ce(t,494,function(o,s){var i=Kt(50+4*(o[1].Target.length+(o[1].Tooltip||"").length));wo({s:gn(o[0]),e:gn(o[0])},i),Ff("rId"+s,i);var c=o[1].Target.indexOf("#");return An((c==-1?"":o[1].Target.slice(c+1))||"",i),An(o[1].Tooltip||"",i),An("",i),i.slice(0,i.l)}(n,a))}}),delete r["!links"]}function f6(t,r,e){ce(t,133),ce(t,137,function(n,a,o){o==null&&(o=Kt(30));var s=924;return(((a||{}).Views||[])[0]||{}).RTL&&(s|=32),o.write_shift(2,s),o.write_shift(4,0),o.write_shift(4,0),o.write_shift(4,0),o.write_shift(1,0),o.write_shift(1,0),o.write_shift(2,0),o.write_shift(2,100),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(4,0),o}(0,e)),ce(t,138),ce(t,134)}function h6(t,r){var e,n;r["!protect"]&&ce(t,535,(e=r["!protect"],n==null&&(n=Kt(66)),n.write_shift(2,e.password?Kf(e.password):0),n.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(a){a[1]?n.write_shift(4,e[a[0]]==null||e[a[0]]?0:1):n.write_shift(4,e[a[0]]!=null&&e[a[0]]?0:1)}),n))}function d6(t,r,e,n){var a=mi(),o=e.SheetNames[t],s=e.Sheets[o]||{},i=o;try{e&&e.Workbook&&(i=e.Workbook.Sheets[t].CodeName||i)}catch(f){}var c,l,u=Mr(s["!ref"]||"A1");if(u.e.c>16383||u.e.r>1048575){if(r.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");u.e.c=Math.min(u.e.c,16383),u.e.r=Math.min(u.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],ce(a,129),(e.vbaraw||s["!outline"])&&ce(a,147,function(f,h,d){d==null&&(d=Kt(84+4*f.length));var p=192;h&&(h.above&&(p&=-65),h.left&&(p&=-129)),d.write_shift(1,p);for(var m=1;m<3;++m)d.write_shift(1,0);return Nl({auto:1},d),d.write_shift(-4,-1),d.write_shift(-4,-1),o1(f,d),d.slice(0,d.l)}(i,s["!outline"])),ce(a,148,n6(u)),f6(a,0,e.Workbook),c6(a,s),function(f,h,d,p){var m,v=Mr(h["!ref"]||"A1"),b="",g=[];ce(f,145);var y=Array.isArray(h),w=v.e.r;h["!rows"]&&(w=Math.max(v.e.r,h["!rows"].length-1));for(var x=v.s.r;x<=w;++x){b=Cn(x),e6(f,h,v,x);var C=!1;if(x<=v.e.r)for(var O=v.s.c;O<=v.e.c;++O){x===v.s.r&&(g[O]=dn(O)),m=g[O]+b;var D=y?(h[x]||[])[O]:h[m];C=!!D&&s6(f,D,x,O,p,h,C)}}ce(f,146)}(a,s,0,r),h6(a,s),function(f,h,d,p){if(h["!autofilter"]){var m=h["!autofilter"],v=typeof m.ref=="string"?m.ref:wr(m.ref);d.Workbook||(d.Workbook={Sheets:[]}),d.Workbook.Names||(d.Workbook.Names=[]);var b=d.Workbook.Names,g=Fi(v);g.s.r==g.e.r&&(g.e.r=Fi(h["!ref"]).e.r,v=wr(g));for(var y=0;y<b.length;++y){var w=b[y];if(w.Name=="_xlnm._FilterDatabase"&&w.Sheet==p){w.Ref="'"+d.SheetNames[p]+"'!"+v;break}}y==b.length&&b.push({Name:"_xlnm._FilterDatabase",Sheet:p,Ref:"'"+d.SheetNames[p]+"'!"+v}),ce(f,161,wo(Mr(v))),ce(f,162)}}(a,s,e,t),o6(a,s),u6(a,s,n),s["!margins"]&&ce(a,476,(c=s["!margins"],l==null&&(l=Kt(48)),$s(c),Bm.forEach(function(f){_o(c[f],l)}),l)),r&&!r.ignoreEC&&r.ignoreEC!=null||l6(a,s),function(f,h,d,p){if(h["!comments"].length>0){var m=Pr(p,-1,"../drawings/vmlDrawing"+(d+1)+".vml",br.VML);ce(f,551,Ff("rId"+m)),h["!legacy"]=m}}(a,s,t,n),ce(a,130),a.end()}function p6(t,r,e,n,a,o){var s=o||{"!type":"chart"};if(!t)return o;var i=0,c=0,l="A",u={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(t.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(f){var h=function(d){var p,m=[],v=d.match(/^<c:numCache>/);(d.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/gm)||[]).forEach(function(g){var y=g.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/);y&&(m[+y[1]]=v?+y[2]:y[2])});var b=Tr((d.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(d.match(/<c:f>(.*?)<\/c:f>/gm)||[]).forEach(function(g){p=g.replace(/<.*?>/g,"")}),[m,b,p]}(f);u.s.r=u.s.c=0,u.e.c=i,l=dn(i),h[0].forEach(function(d,p){s[l+Cn(p)]={t:"n",v:d,z:h[1]},c=p}),u.e.r<c&&(u.e.r=c),++i}),i>0&&(s["!ref"]=wr(u)),s}var oh=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],m6=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],v6=[],g6=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function zm(t,r){for(var e=0;e!=t.length;++e)for(var n=t[e],a=0;a!=r.length;++a){var o=r[a];if(n[o[0]]==null)n[o[0]]=o[1];else switch(o[2]){case"bool":typeof n[o[0]]=="string"&&(n[o[0]]=Vr(n[o[0]]));break;case"int":typeof n[o[0]]=="string"&&(n[o[0]]=parseInt(n[o[0]],10))}}}function Um(t,r){for(var e=0;e!=r.length;++e){var n=r[e];if(t[n[0]]==null)t[n[0]]=n[1];else switch(n[2]){case"bool":typeof t[n[0]]=="string"&&(t[n[0]]=Vr(t[n[0]]));break;case"int":typeof t[n[0]]=="string"&&(t[n[0]]=parseInt(t[n[0]],10))}}}function Hm(t){Um(t.WBProps,oh),Um(t.CalcPr,g6),zm(t.WBView,m6),zm(t.Sheets,v6),Ao.date1904=Vr(t.WBProps.date1904)}var b6="][*?/\\".split("");function Wm(t,r){if(t.length>31){if(r)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var e=!0;return b6.forEach(function(n){if(t.indexOf(n)!=-1){if(!r)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");e=!1}}),e}function y6(t){if(!t||!t.SheetNames||!t.Sheets)throw new Error("Invalid Workbook");if(!t.SheetNames.length)throw new Error("Workbook is empty");var r,e,n,a=t.Workbook&&t.Workbook.Sheets||[];r=t.SheetNames,e=a,n=!!t.vbaraw,r.forEach(function(s,i){Wm(s);for(var c=0;c<i;++c)if(s==r[c])throw new Error("Duplicate Sheet Name: "+s);if(n){var l=e&&e[i]&&e[i].CodeName||s;if(l.charCodeAt(0)==95&&l.length>22)throw new Error("Bad Code Name: Worksheet"+l)}});for(var o=0;o<t.SheetNames.length;++o)B4(t.Sheets[t.SheetNames[o]],t.SheetNames[o],o)}var w6=/<\w+:workbook/;function Vm(t){var r=[an];r[r.length]=we("workbook",null,{xmlns:Ns[0],"xmlns:r":vn.r});var e=t.Workbook&&(t.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(oh.forEach(function(i){t.Workbook.WBProps[i[0]]!=null&&t.Workbook.WBProps[i[0]]!=i[1]&&(n[i[0]]=t.Workbook.WBProps[i[0]])}),t.Workbook.WBProps.CodeName&&(n.codeName=t.Workbook.WBProps.CodeName,delete n.CodeName)),r[r.length]=we("workbookPr",null,n);var a=t.Workbook&&t.Workbook.Sheets||[],o=0;if(a&&a[0]&&a[0].Hidden){for(r[r.length]="<bookViews>",o=0;o!=t.SheetNames.length&&a[o]&&a[o].Hidden;++o);o==t.SheetNames.length&&(o=0),r[r.length]='<workbookView firstSheet="'+o+'" activeTab="'+o+'"/>',r[r.length]="</bookViews>"}for(r[r.length]="<sheets>",o=0;o!=t.SheetNames.length;++o){var s={name:Nr(t.SheetNames[o].slice(0,31))};if(s.sheetId=""+(o+1),s["r:id"]="rId"+(o+1),a[o])switch(a[o].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden"}r[r.length]=we("sheet",null,s)}return r[r.length]="</sheets>",e&&(r[r.length]="<definedNames>",t.Workbook&&t.Workbook.Names&&t.Workbook.Names.forEach(function(i){var c={name:i.Name};i.Comment&&(c.comment=i.Comment),i.Sheet!=null&&(c.localSheetId=""+i.Sheet),i.Hidden&&(c.hidden="1"),i.Ref&&(r[r.length]=we("definedName",Nr(i.Ref),c))}),r[r.length]="</definedNames>"),r.length>2&&(r[r.length]="</workbook>",r[1]=r[1].replace("/>",">")),r.join("")}function _6(t,r){var e={};return t.read_shift(4),e.ArchID=t.read_shift(4),t.l+=r-8,e}function k6(t,r){if(r.Workbook&&r.Workbook.Sheets){for(var e,n,a=r.Workbook.Sheets,o=0,s=-1,i=-1;o<a.length;++o)!a[o]||!a[o].Hidden&&s==-1?s=o:a[o].Hidden==1&&i==-1&&(i=o);i>s||(ce(t,135),ce(t,158,(e=s,n||(n=Kt(29)),n.write_shift(-4,0),n.write_shift(-4,460),n.write_shift(4,28800),n.write_shift(4,17600),n.write_shift(4,500),n.write_shift(4,e),n.write_shift(4,e),n.write_shift(1,120),n.length>n.l?n.slice(0,n.l):n)),ce(t,136))}}function x6(t,r){var e=mi();return ce(e,131),ce(e,128,function(n,a){a||(a=Kt(127));for(var o=0;o!=4;++o)a.write_shift(4,0);return An("SheetJS",a),An(pf.version,a),An(pf.version,a),An("7262",a),a.length>a.l?a.slice(0,a.l):a}()),ce(e,153,function(n,a){a||(a=Kt(72));var o=0;return n&&n.filterPrivacy&&(o|=8),a.write_shift(4,o),a.write_shift(4,0),o1(n&&n.CodeName||"ThisWorkbook",a),a.slice(0,a.l)}(t.Workbook&&t.Workbook.WBProps||null)),k6(e,t),function(n,a){ce(n,143);for(var o=0;o!=a.SheetNames.length;++o)ce(n,156,(s={Hidden:a.Workbook&&a.Workbook.Sheets&&a.Workbook.Sheets[o]&&a.Workbook.Sheets[o].Hidden||0,iTabID:o+1,strRelID:"rId"+(o+1),name:a.SheetNames[o]},(i=void 0)||(i=Kt(127)),i.write_shift(4,s.Hidden),i.write_shift(4,s.iTabID),Ff(s.strRelID,i),An(s.name.slice(0,31),i),i.length>i.l?i.slice(0,i.l):i));var s,i;ce(n,144)}(e,t),ce(e,132),e.end()}function S6(t,r,e){return r.slice(-4)===".bin"?function(n,a){var o={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},s=[],i=!1;a||(a={}),a.biff=12;var c=[],l=[[]];return l.SheetNames=[],l.XTI=[],Dc[16]={n:"BrtFRTArchID$",f:_6},La(n,function(u,f,h){switch(h){case 156:l.SheetNames.push(u.name),o.Sheets.push(u);break;case 153:o.WBProps=u;break;case 39:u.Sheet!=null&&(a.SID=u.Sheet),u.Ref=Xn(u.Ptg,0,null,l,a),delete a.SID,delete u.Ptg,c.push(u);break;case 1036:case 361:case 2071:case 158:case 143:case 664:case 353:case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:case 16:break;case 357:case 358:case 355:case 667:l[0].length?l.push([h,u]):l[0]=[h,u],l[l.length-1].XTI=[];break;case 362:l.length===0&&(l[0]=[],l[0].XTI=[]),l[l.length-1].XTI=l[l.length-1].XTI.concat(u),l.XTI=l.XTI.concat(u);break;case 35:case 37:s.push(h),i=!0;break;case 36:case 38:s.pop(),i=!1;break;default:if(!f.T){if(!i||a.WTF&&s[s.length-1]!=37&&s[s.length-1]!=35)throw new Error("Unexpected record 0x"+h.toString(16))}}},a),Hm(o),o.Names=c,o.supbooks=l,o}(t,e):function(n,a){if(!n)throw new Error("Could not find file");var o={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},s=!1,i="xmlns",c={},l=0;if(n.replace(Vn,function(u,f){var h=tr(u);switch(va(h[0])){case"<?xml":case"</workbook>":case"<fileVersion/>":case"</fileVersion>":case"<fileSharing":case"<fileSharing/>":case"</workbookPr>":case"<workbookProtection":case"<workbookProtection/>":case"<bookViews":case"<bookViews>":case"</bookViews>":case"</workbookView>":case"<sheets":case"<sheets>":case"</sheets>":case"</sheet>":case"<functionGroups":case"<functionGroups/>":case"<functionGroup":case"<externalReferences":case"</externalReferences>":case"<externalReferences>":case"<externalReference":case"<definedNames/>":case"<definedName/>":case"</calcPr>":case"<oleSize":case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":case"<customWorkbookView":case"</customWorkbookView>":case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":case"<pivotCache":case"<smartTagPr":case"<smartTagPr/>":case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":case"<smartTagType":case"<webPublishing":case"<webPublishing/>":case"<fileRecoveryPr":case"<fileRecoveryPr/>":case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":case"<webPublishObject":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":case"<ArchID":case"<revisionPtr":break;case"<workbook":u.match(w6)&&(i="xmlns"+u.match(/<(\w+):/)[1]),o.xmlns=h[i];break;case"<fileVersion":delete h[0],o.AppVersion=h;break;case"<workbookPr":case"<workbookPr/>":oh.forEach(function(d){if(h[d[0]]!=null)switch(d[2]){case"bool":o.WBProps[d[0]]=Vr(h[d[0]]);break;case"int":o.WBProps[d[0]]=parseInt(h[d[0]],10);break;default:o.WBProps[d[0]]=h[d[0]]}}),h.codeName&&(o.WBProps.CodeName=Lr(h.codeName));break;case"<workbookView":case"<workbookView/>":delete h[0],o.WBView.push(h);break;case"<sheet":switch(h.state){case"hidden":h.Hidden=1;break;case"veryHidden":h.Hidden=2;break;default:h.Hidden=0}delete h.state,h.name=Tr(Lr(h.name)),delete h[0],o.Sheets.push(h);break;case"<definedNames>":case"<definedNames":case"<ext":case"<AlternateContent":case"<AlternateContent>":s=!0;break;case"</definedNames>":case"</ext>":case"</AlternateContent>":s=!1;break;case"<definedName":(c={}).Name=Lr(h.name),h.comment&&(c.Comment=h.comment),h.localSheetId&&(c.Sheet=+h.localSheetId),Vr(h.hidden||"0")&&(c.Hidden=!0),l=f+u.length;break;case"</definedName>":c.Ref=Tr(Lr(n.slice(l,f))),o.Names.push(c);break;case"<calcPr":case"<calcPr/>":delete h[0],o.CalcPr=h;break;default:if(!s&&a.WTF)throw new Error("unrecognized "+h[0]+" in workbook")}return u}),Ns.indexOf(o.xmlns)===-1)throw new Error("Unknown Namespace: "+o.xmlns);return Hm(o),o}(t,e)}function T6(t,r,e,n,a,o,s,i){return r.slice(-4)===".bin"?function(c,l,u,f,h,d,p){if(!c)return c;var m=l||{};f||(f={"!id":{}});var v,b,g,y,w,x,C,O,D,j,U=m.dense?[]:{},L={s:{r:2e6,c:2e6},e:{r:0,c:0}},V=!1,A=!1,N=[];m.biff=12,m["!row"]=0;var k=0,S=!1,E=[],T={},R=m.supbooks||h.supbooks||[[]];if(R.sharedf=T,R.arrayf=E,R.SheetNames=h.SheetNames||h.Sheets.map(function(Y){return Y.name}),!m.supbooks&&(m.supbooks=R,h.Names))for(var F=0;F<h.Names.length;++F)R[0][F+1]=h.Names[F];var I,B=[],P=[],H=!1;if(Dc[16]={n:"BrtShortReal",f:Lm},La(c,function(Y,dt,gt){if(!A)switch(gt){case 148:v=Y;break;case 0:b=Y,m.sheetRows&&m.sheetRows<=b.r&&(A=!0),D=Cn(w=b.r),m["!row"]=b.r,(Y.hidden||Y.hpt||Y.level!=null)&&(Y.hpt&&(Y.hpx=To(Y.hpt)),P[Y.r]=Y);break;case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 62:switch(g={t:Y[2]},Y[2]){case"n":g.v=Y[1];break;case"s":O=Oc[Y[1]],g.v=O.t,g.r=O.r;break;case"b":g.v=!!Y[1];break;case"e":g.v=Y[1],m.cellText!==!1&&(g.w=Ba[g.v]);break;case"str":g.t="s",g.v=Y[1];break;case"is":g.t="s",g.v=Y[1].t}if((y=p.CellXf[Y[0].iStyleRef])&&Dm(g,y.numFmtId,null,m,d,p),x=Y[0].c==-1?x+1:Y[0].c,m.dense?(U[w]||(U[w]=[]),U[w][x]=g):U[dn(x)+D]=g,m.cellFormula){for(S=!1,k=0;k<E.length;++k){var bt=E[k];b.r>=bt[0].s.r&&b.r<=bt[0].e.r&&x>=bt[0].s.c&&x<=bt[0].e.c&&(g.F=wr(bt[0]),S=!0)}!S&&Y.length>3&&(g.f=Y[3])}if(L.s.r>b.r&&(L.s.r=b.r),L.s.c>x&&(L.s.c=x),L.e.r<b.r&&(L.e.r=b.r),L.e.c<x&&(L.e.c=x),m.cellDates&&y&&g.t=="n"&&go(Qe[y.numFmtId])){var Q=Ms(g.v);Q&&(g.t="d",g.v=new Date(Q.y,Q.m-1,Q.d,Q.H,Q.M,Q.S,Q.u))}I&&(I.type=="XLDAPR"&&(g.D=!0),I=void 0);break;case 1:case 12:if(!m.sheetStubs||V)break;g={t:"z",v:void 0},x=Y[0].c==-1?x+1:Y[0].c,m.dense?(U[w]||(U[w]=[]),U[w][x]=g):U[dn(x)+D]=g,L.s.r>b.r&&(L.s.r=b.r),L.s.c>x&&(L.s.c=x),L.e.r<b.r&&(L.e.r=b.r),L.e.c<x&&(L.e.c=x),I&&(I.type=="XLDAPR"&&(g.D=!0),I=void 0);break;case 176:N.push(Y);break;case 49:I=((m.xlmeta||{}).Cell||[])[Y-1];break;case 494:var q=f["!id"][Y.relId];for(q?(Y.Target=q.Target,Y.loc&&(Y.Target+="#"+Y.loc),Y.Rel=q):Y.relId==""&&(Y.Target="#"+Y.loc),w=Y.rfx.s.r;w<=Y.rfx.e.r;++w)for(x=Y.rfx.s.c;x<=Y.rfx.e.c;++x)m.dense?(U[w]||(U[w]=[]),U[w][x]||(U[w][x]={t:"z",v:void 0}),U[w][x].l=Y):(C=nr({c:x,r:w}),U[C]||(U[C]={t:"z",v:void 0}),U[C].l=Y);break;case 426:if(!m.cellFormula)break;E.push(Y),(j=m.dense?U[w][x]:U[dn(x)+D]).f=Xn(Y[1],0,{r:b.r,c:x},R,m),j.F=wr(Y[0]);break;case 427:if(!m.cellFormula)break;T[nr(Y[0].s)]=Y[1],(j=m.dense?U[w][x]:U[dn(x)+D]).f=Xn(Y[1],0,{r:b.r,c:x},R,m);break;case 60:if(!m.cellStyles)break;for(;Y.e>=Y.s;)B[Y.e--]={width:Y.w/256,hidden:!!(1&Y.flags),level:Y.level},H||(H=!0,Zf(Y.w/256)),cs(B[Y.e+1]);break;case 161:U["!autofilter"]={ref:wr(Y)};break;case 476:U["!margins"]=Y;break;case 147:h.Sheets[u]||(h.Sheets[u]={}),Y.name&&(h.Sheets[u].CodeName=Y.name),(Y.above||Y.left)&&(U["!outline"]={above:Y.above,left:Y.left});break;case 137:h.Views||(h.Views=[{}]),h.Views[0]||(h.Views[0]={}),Y.RTL&&(h.Views[0].RTL=!0);break;case 485:case 64:case 1053:case 151:case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:case 37:V=!0;break;case 36:case 38:V=!1;break;default:if(!dt.T){if(!V||m.WTF)throw new Error("Unexpected record 0x"+gt.toString(16))}}},m),delete m.supbooks,delete m["!row"],!U["!ref"]&&(L.s.r<2e6||v&&(v.e.r>0||v.e.c>0||v.s.r>0||v.s.c>0))&&(U["!ref"]=wr(v||L)),m.sheetRows&&U["!ref"]){var Z=Mr(U["!ref"]);m.sheetRows<=+Z.e.r&&(Z.e.r=m.sheetRows-1,Z.e.r>L.e.r&&(Z.e.r=L.e.r),Z.e.r<Z.s.r&&(Z.s.r=Z.e.r),Z.e.c>L.e.c&&(Z.e.c=L.e.c),Z.e.c<Z.s.c&&(Z.s.c=Z.e.c),U["!fullref"]=U["!ref"],U["!ref"]=wr(Z))}return N.length>0&&(U["!merges"]=N),B.length>0&&(U["!cols"]=B),P.length>0&&(U["!rows"]=P),U}(t,n,e,a,o,s,i):K4(t,n,e,a,o,s,i)}function E6(t,r,e,n,a,o,s,i){return r.slice(-4)===".bin"?function(c,l,u,f,h){if(!c)return c;f||(f={"!id":{}});var d={"!type":"chart","!drawel":null,"!rel":""},p=!1;return La(c,function(m,v,b){switch(b){case 550:d["!rel"]=m;break;case 651:h.Sheets[u]||(h.Sheets[u]={}),m.name&&(h.Sheets[u].CodeName=m.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:case 37:case 38:break;case 35:p=!0;break;case 36:p=!1;break;default:if(!(v.T>0)){if(!(v.T<0)){if(!p||l.WTF)throw new Error("Unexpected record 0x"+b.toString(16))}}}},l),f["!id"][d["!rel"]]&&(d["!drawel"]=f["!id"][d["!rel"]]),d}(t,n,e,a,o):function(c,l,u,f,h){if(!c)return c;f||(f={"!id":{}});var d,p={"!type":"chart","!drawel":null,"!rel":""},m=c.match(Fm);return m&&sh(m[0],0,h,u),(d=c.match(/drawing r:id="(.*?)"/))&&(p["!rel"]=d[1]),f["!id"][p["!rel"]]&&(p["!drawel"]=f["!id"][p["!rel"]]),p}(t,0,e,a,o)}function C6(t,r,e,n){return r.slice(-4)===".bin"?function(a,o,s){var i={NumberFmt:[]};for(var c in Qe)i.NumberFmt[c]=Qe[c];i.CellXf=[],i.Fonts=[];var l=[],u=!1;return La(a,function(f,h,d){switch(d){case 44:i.NumberFmt[f[0]]=f[1],Da(f[1],f[0]);break;case 43:i.Fonts.push(f),f.color.theme!=null&&o&&o.themeElements&&o.themeElements.clrScheme&&(f.color.rgb=Bl(o.themeElements.clrScheme[f.color.theme].rgb,f.color.tint||0));break;case 1025:case 45:case 46:case 48:case 507:case 572:case 475:case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 47:l[l.length-1]==617&&i.CellXf.push(f);break;case 35:u=!0;break;case 36:u=!1;break;case 37:l.push(d),u=!0;break;case 38:l.pop(),u=!1;break;default:if(h.T>0)l.push(d);else if(h.T<0)l.pop();else if(!u||s.WTF&&l[l.length-1]!=37)throw new Error("Unexpected record 0x"+d.toString(16))}}),i}(t,e,n):K3(t,e,n)}function A6(t,r,e){return r.slice(-4)===".bin"?function(n,a){var o=[],s=!1;return La(n,function(i,c,l){switch(l){case 159:o.Count=i[0],o.Unique=i[1];break;case 19:o.push(i);break;case 160:return!0;case 35:s=!0;break;case 36:s=!1;break;default:if(c.T,!s||a.WTF)throw new Error("Unexpected record 0x"+l.toString(16))}}),o}(t,e):function(n,a){var o=[],s="";if(!n)return o;var i=n.match(N3);if(i){s=i[2].replace(P3,"").split(D3);for(var c=0;c!=s.length;++c){var l=Yf(s[c].trim(),a);l!=null&&(o[o.length]=l)}i=tr(i[1]),o.Count=i.count,o.Unique=i.uniqueCount}return o}(t,e)}function R6(t,r,e){return r.slice(-4)===".bin"?function(n,a){var o=[],s=[],i={},c=!1;return La(n,function(l,u,f){switch(f){case 632:s.push(l);break;case 635:i=l;break;case 637:i.t=l.t,i.h=l.h,i.r=l.r;break;case 636:if(i.author=s[i.iauthor],delete i.iauthor,a.sheetRows&&i.rfx&&a.sheetRows<=i.rfx.r)break;i.t||(i.t=""),delete i.rfx,o.push(i);break;case 3072:case 37:case 38:break;case 35:c=!0;break;case 36:c=!1;break;default:if(!u.T){if(!c||a.WTF)throw new Error("Unexpected record 0x"+f.toString(16))}}}),o}(t,e):function(n,a){if(n.match(/<(?:\w+:)?comments *\/>/))return[];var o=[],s=[],i=n.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);i&&i[1]&&i[1].split(/<\/\w*:?author>/).forEach(function(l){if(l!==""&&l.trim()!==""){var u=l.match(/<(?:\w+:)?author[^>]*>(.*)/);u&&o.push(u[1])}});var c=n.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return c&&c[1]&&c[1].split(/<\/\w*:?comment>/).forEach(function(l){if(l!==""&&l.trim()!==""){var u=l.match(/<(?:\w+:)?comment[^>]*>/);if(u){var f=tr(u[0]),h={author:f.authorId&&o[f.authorId]||"sheetjsghost",ref:f.ref,guid:f.guid},d=gn(f.ref);if(!(a.sheetRows&&a.sheetRows<=d.r)){var p=l.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),m=!!p&&!!p[1]&&Yf(p[1])||{r:"",t:"",h:""};h.r=m.r,m.r=="<t></t>"&&(m.t=m.h=""),h.t=(m.t||"").replace(/\r\n/g,`
|
||
`).replace(/\r/g,`
|
||
`),a.cellHTML&&(h.h=m.h),s.push(h)}}}}),s}(t,e)}function M6(t,r,e){return r.slice(-4)===".bin"?function(n,a,o){var s=[];return La(n,function(i,c,l){if(l===63)s.push(i);else if(!c.T)throw new Error("Unexpected record 0x"+l.toString(16))}),s}(t):function(n){var a=[];if(!n)return a;var o=1;return(n.match(Vn)||[]).forEach(function(s){var i=tr(s);switch(i[0]){case"<?xml":case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete i[0],i.i?o=i.i:i.i=o,a.push(i)}}),a}(t)}function O6(t,r,e,n){if(e.slice(-4)===".bin")return function(a,o,s,i){if(!a)return a;var c=i||{},l=!1;La(a,function(u,f,h){switch(h){case 359:case 363:case 364:case 366:case 367:case 368:case 369:case 370:case 371:case 472:case 577:case 578:case 579:case 580:case 581:case 582:case 583:case 584:case 585:case 586:case 587:break;case 35:l=!0;break;case 36:l=!1;break;default:if(!f.T){if(!l||c.WTF)throw new Error("Unexpected record 0x"+h.toString(16))}}},c)}(t,0,0,n)}function I6(t,r,e){return r.slice(-4)===".bin"?function(n,a,o){var s={Types:[],Cell:[],Value:[]},i=o||{},c=[],l=!1,u=2;return La(n,function(f,h,d){switch(d){case 335:s.Types.push({name:f.name});break;case 51:f.forEach(function(p){u==1?s.Cell.push({type:s.Types[p[0]-1].name,index:p[1]}):u==0&&s.Value.push({type:s.Types[p[0]-1].name,index:p[1]})});break;case 337:u=f?1:0;break;case 338:u=2;break;case 35:c.push(d),l=!0;break;case 36:c.pop(),l=!1;break;default:if(!h.T){if(!l||i.WTF&&c[c.length-1]!=35)throw new Error("Unexpected record 0x"+d.toString(16))}}}),s}(t,0,e):function(n,a,o){var s={Types:[],Cell:[],Value:[]};if(!n)return s;var i,c=!1,l=2;return n.replace(Vn,function(u){var f=tr(u);switch(va(f[0])){case"<?xml":case"<metadata":case"</metadata>":case"<metadataTypes":case"</metadataTypes>":case"</metadataType>":case"</futureMetadata>":case"<bk>":case"</bk>":case"</rc>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<metadataType":s.Types.push({name:f.name});break;case"<futureMetadata":for(var h=0;h<s.Types.length;++h)s.Types[h].name==f.name&&(i=s.Types[h]);break;case"<rc":l==1?s.Cell.push({type:s.Types[f.t-1].name,index:+f.v}):l==0&&s.Value.push({type:s.Types[f.t-1].name,index:+f.v});break;case"<cellMetadata":l=1;break;case"</cellMetadata>":case"</valueMetadata>":l=2;break;case"<valueMetadata":l=0;break;case"<ext":c=!0;break;case"</ext>":c=!1;break;case"<rvb":if(!i)break;i.offsets||(i.offsets=[]),i.offsets.push(+f.i);break;default:if(!c&&o.WTF)throw new Error("unrecognized "+f[0]+" in metadata")}return u}),s}(t,0,e)}function N6(t,r,e,n,a){return(r.slice(-4)===".bin"?d6:jm)(t,e,n,a)}function P6(t,r,e){return(r.slice(-4)===".bin"?b4:wm)(t)}var Nc,$m=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,qm=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function aa(t,r){var e=t.split(/\s+/),n=[];if(r||(n[0]=e[0]),e.length===1)return n;var a,o,s,i=t.match($m);if(i)for(s=0;s!=i.length;++s)(o=(a=i[s].match(qm))[1].indexOf(":"))===-1?n[a[1]]=a[2].slice(1,a[2].length-1):n[a[1].slice(0,6)==="xmlns:"?"xmlns"+a[1].slice(6):a[1].slice(o+1)]=a[2].slice(1,a[2].length-1);return n}function D6(t){var r={};if(t.split(/\s+/).length===1)return r;var e,n,a,o=t.match($m);if(o)for(a=0;a!=o.length;++a)(n=(e=o[a].match(qm))[1].indexOf(":"))===-1?r[e[1]]=e[2].slice(1,e[2].length-1):r[e[1].slice(0,6)==="xmlns:"?"xmlns"+e[1].slice(6):e[1].slice(n+1)]=e[2].slice(1,e[2].length-1);return r}function F6(t,r,e,n){var a=n;switch((e[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":a=Vr(n);break;case"i2":case"int":a=parseInt(n,10);break;case"r4":case"float":a=parseFloat(n);break;case"date":case"dateTime.tz":a=Gr(n);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+e[0])}t[Tr(r)]=a}function j6(t,r,e){if(t.t!=="z"){if(!e||e.cellText!==!1)try{t.t==="e"?t.w=t.w||Ba[t.v]:r==="General"?t.t==="n"?(0|t.v)===t.v?t.w=t.v.toString(10):t.w=oc(t.v):t.w=Os(t.v):t.w=(n=r||"General",a=t.v,(o=Nc[n]||Tr(n))==="General"?Os(a):Pi(o,a))}catch(c){if(e.WTF)throw c}var n,a,o;try{var s=Nc[r]||r||"General";if(e.cellNF&&(t.z=s),e.cellDates&&t.t=="n"&&go(s)){var i=Ms(t.v);i&&(t.t="d",t.v=new Date(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u))}}catch(c){if(e.WTF)throw c}}}function L6(t,r,e){if(e.cellStyles&&r.Interior){var n=r.Interior;n.Pattern&&(n.patternType=Y3[n.Pattern]||n.Pattern)}t[r.ID]=r}function B6(t,r,e,n,a,o,s,i,c,l){var u="General",f=n.StyleID,h={};l=l||{};var d=[],p=0;for(f===void 0&&i&&(f=i.StyleID),f===void 0&&s&&(f=s.StyleID);o[f]!==void 0&&(o[f].nf&&(u=o[f].nf),o[f].Interior&&d.push(o[f].Interior),o[f].Parent);)f=o[f].Parent;switch(e.Type){case"Boolean":n.t="b",n.v=Vr(t);break;case"String":n.t="s",n.r=Dp(Tr(t)),n.v=t.indexOf("<")>-1?Tr(r||t).replace(/<.*?>/g,""):n.r;break;case"DateTime":t.slice(-1)!="Z"&&(t+="Z"),n.v=(Gr(t)-new Date(Date.UTC(1899,11,30)))/864e5,n.v!=n.v?n.v=Tr(t):n.v<60&&(n.v=n.v-1),u&&u!="General"||(u="yyyy-mm-dd");case"Number":n.v===void 0&&(n.v=+t),n.t||(n.t="n");break;case"Error":n.t="e",n.v=p1[t],l.cellText!==!1&&(n.w=t);break;default:t==""&&r==""?n.t="z":(n.t="s",n.v=Dp(r||t))}if(j6(n,u,l),l.cellFormula!==!1)if(n.Formula){var m=Tr(n.Formula);m.charCodeAt(0)==61&&(m=m.slice(1)),n.f=Co(m,a),delete n.Formula,n.ArrayRange=="RC"?n.F=Co("RC:RC",a):n.ArrayRange&&(n.F=Co(n.ArrayRange,a),c.push([Mr(n.F),n.F]))}else for(p=0;p<c.length;++p)a.r>=c[p][0].s.r&&a.r<=c[p][0].e.r&&a.c>=c[p][0].s.c&&a.c<=c[p][0].e.c&&(n.F=c[p][1]);l.cellStyles&&(d.forEach(function(v){!h.patternType&&v.patternType&&(h.patternType=v.patternType)}),n.s=h),n.StyleID!==void 0&&(n.ixfe=n.StyleID)}function z6(t){t.t=t.v||"",t.t=t.t.replace(/\r\n/g,`
|
||
`).replace(/\r/g,`
|
||
`),t.v=t.w=t.ixfe=void 0}function ch(t,r){var e=r||{};bo();var n=ic(Rf(t));e.type!="binary"&&e.type!="array"&&e.type!="base64"||(n=Lr(n));var a,o=n.slice(0,1024).toLowerCase(),s=!1;if((1023&(o=o.replace(/".*?"/g,"")).indexOf(">"))>Math.min(1023&o.indexOf(","),1023&o.indexOf(";"))){var i=Wr(e);return i.type="string",So.to_workbook(n,i)}if(o.indexOf("<?xml")==-1&&["html","table","head","meta","script","style","div"].forEach(function(W){o.indexOf("<"+W)>=0&&(s=!0)}),s)return function(W,X){var it=W.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi);if(!it||it.length==0)throw new Error("Invalid HTML: could not find <table>");if(it.length==1)return Ds(Xm(it[0],X),X);var xt={SheetNames:[],Sheets:{}};return it.forEach(function(Nt,G){fv(xt,Xm(Nt,X),"Sheet"+(G+1))}),xt}(n,e);Nc={"General Number":"General","General Date":Qe[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":Qe[15],"Short Date":Qe[14],"Long Time":Qe[19],"Medium Time":Qe[18],"Short Time":Qe[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:Qe[2],Standard:Qe[4],Percent:Qe[10],Scientific:Qe[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var c,l,u=[],f={},h=[],d=e.dense?[]:{},p="",m={},v={},b=aa('<Data ss:Type="String">'),g=0,y=0,w=0,x={s:{r:2e6,c:2e6},e:{r:0,c:0}},C={},O={},D="",j=0,U=[],L={},V={},A=0,N=[],k=[],S={},E=[],T=!1,R=[],F=[],I={},B=0,P=0,H={Sheets:[],WBProps:{date1904:!1}},Z={};dc.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/gm,"");for(var Y="";a=dc.exec(n);)switch(a[3]=(Y=a[3]).toLowerCase()){case"data":if(Y=="data"){if(a[1]==="/"){if((c=u.pop())[0]!==a[3])throw new Error("Bad state: "+c.join("|"))}else a[0].charAt(a[0].length-2)!=="/"&&u.push([a[3],!0]);break}if(u[u.length-1][1])break;a[1]==="/"?B6(n.slice(g,a.index),D,b,u[u.length-1][0]=="comment"?S:m,{c:y,r:w},C,E[y],v,R,e):(D="",b=aa(a[0]),g=a.index+a[0].length);break;case"cell":if(a[1]==="/")if(k.length>0&&(m.c=k),(!e.sheetRows||e.sheetRows>w)&&m.v!==void 0&&(e.dense?(d[w]||(d[w]=[]),d[w][y]=m):d[dn(y)+Cn(w)]=m),m.HRef&&(m.l={Target:Tr(m.HRef)},m.HRefScreenTip&&(m.l.Tooltip=m.HRefScreenTip),delete m.HRef,delete m.HRefScreenTip),(m.MergeAcross||m.MergeDown)&&(B=y+(0|parseInt(m.MergeAcross,10)),P=w+(0|parseInt(m.MergeDown,10)),U.push({s:{c:y,r:w},e:{c:B,r:P}})),e.sheetStubs)if(m.MergeAcross||m.MergeDown){for(var dt=y;dt<=B;++dt)for(var gt=w;gt<=P;++gt)(dt>y||gt>w)&&(e.dense?(d[gt]||(d[gt]=[]),d[gt][dt]={t:"z"}):d[dn(dt)+Cn(gt)]={t:"z"});y=B+1}else++y;else m.MergeAcross?y=B+1:++y;else(m=D6(a[0])).Index&&(y=+m.Index-1),y<x.s.c&&(x.s.c=y),y>x.e.c&&(x.e.c=y),a[0].slice(-2)==="/>"&&++y,k=[];break;case"row":a[1]==="/"||a[0].slice(-2)==="/>"?(w<x.s.r&&(x.s.r=w),w>x.e.r&&(x.e.r=w),a[0].slice(-2)==="/>"&&(v=aa(a[0])).Index&&(w=+v.Index-1),y=0,++w):((v=aa(a[0])).Index&&(w=+v.Index-1),I={},(v.AutoFitHeight=="0"||v.Height)&&(I.hpx=parseInt(v.Height,10),I.hpt=Ec(I.hpx),F[w]=I),v.Hidden=="1"&&(I.hidden=!0,F[w]=I));break;case"worksheet":if(a[1]==="/"){if((c=u.pop())[0]!==a[3])throw new Error("Bad state: "+c.join("|"));h.push(p),x.s.r<=x.e.r&&x.s.c<=x.e.c&&(d["!ref"]=wr(x),e.sheetRows&&e.sheetRows<=x.e.r&&(d["!fullref"]=d["!ref"],x.e.r=e.sheetRows-1,d["!ref"]=wr(x))),U.length&&(d["!merges"]=U),E.length>0&&(d["!cols"]=E),F.length>0&&(d["!rows"]=F),f[p]=d}else x={s:{r:2e6,c:2e6},e:{r:0,c:0}},w=y=0,u.push([a[3],!1]),c=aa(a[0]),p=Tr(c.Name),d=e.dense?[]:{},U=[],R=[],F=[],Z={name:p,Hidden:0},H.Sheets.push(Z);break;case"table":if(a[1]==="/"){if((c=u.pop())[0]!==a[3])throw new Error("Bad state: "+c.join("|"))}else{if(a[0].slice(-2)=="/>")break;u.push([a[3],!1]),E=[],T=!1}break;case"style":a[1]==="/"?L6(C,O,e):O=aa(a[0]);break;case"numberformat":O.nf=Tr(aa(a[0]).Format||"General"),Nc[O.nf]&&(O.nf=Nc[O.nf]);for(var bt=0;bt!=392&&Qe[bt]!=O.nf;++bt);if(bt==392){for(bt=57;bt!=392;++bt)if(Qe[bt]==null){Da(O.nf,bt);break}}break;case"column":if(u[u.length-1][0]!=="table")break;if((l=aa(a[0])).Hidden&&(l.hidden=!0,delete l.Hidden),l.Width&&(l.wpx=parseInt(l.Width,10)),!T&&l.wpx>10){T=!0,Kn=fm;for(var Q=0;Q<E.length;++Q)E[Q]&&cs(E[Q])}T&&cs(l),E[l.Index-1||E.length]=l;for(var q=0;q<+l.Span;++q)E[E.length]=Wr(l);break;case"namedrange":if(a[1]==="/")break;H.Names||(H.Names=[]);var tt=tr(a[0]),et={Name:tt.Name,Ref:Co(tt.RefersTo.slice(1),{r:0,c:0})};H.Sheets.length>0&&(et.Sheet=H.Sheets.length-1),H.Names.push(et);break;case"namedcell":case"b":case"i":case"u":case"s":case"em":case"h2":case"h3":case"sub":case"sup":case"span":case"alignment":case"borders":case"border":case"protection":case"paragraphs":case"name":case"pixelsperinch":case"null":break;case"font":if(a[0].slice(-2)==="/>")break;a[1]==="/"?D+=n.slice(j,a.index):j=a.index+a[0].length;break;case"interior":if(!e.cellStyles)break;O.Interior=aa(a[0]);break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if(a[0].slice(-2)==="/>")break;a[1]==="/"?o3(L,Y,n.slice(A,a.index)):A=a.index+a[0].length;break;case"styles":case"workbook":if(a[1]==="/"){if((c=u.pop())[0]!==a[3])throw new Error("Bad state: "+c.join("|"))}else u.push([a[3],!1]);break;case"comment":if(a[1]==="/"){if((c=u.pop())[0]!==a[3])throw new Error("Bad state: "+c.join("|"));z6(S),k.push(S)}else u.push([a[3],!1]),S={a:(c=aa(a[0])).Author};break;case"autofilter":if(a[1]==="/"){if((c=u.pop())[0]!==a[3])throw new Error("Bad state: "+c.join("|"))}else if(a[0].charAt(a[0].length-2)!=="/"){var _t=aa(a[0]);d["!autofilter"]={ref:Co(_t.Range).replace(/\$/g,"")},u.push([a[3],!0])}break;case"datavalidation":if(a[1]==="/"){if((c=u.pop())[0]!==a[3])throw new Error("Bad state: "+c.join("|"))}else a[0].charAt(a[0].length-2)!=="/"&&u.push([a[3],!0]);break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if(a[1]==="/"){if((c=u.pop())[0]!==a[3])throw new Error("Bad state: "+c.join("|"))}else a[0].charAt(a[0].length-2)!=="/"&&u.push([a[3],!0]);break;default:if(u.length==0&&a[3]=="document"||u.length==0&&a[3]=="uof")return Qm(n,e);var J=!0;switch(u[u.length-1][0]){case"officedocumentsettings":switch(a[3]){case"allowpng":case"removepersonalinformation":case"downloadcomponents":case"locationofcomponents":case"colors":case"color":case"index":case"rgb":case"targetscreensize":case"readonlyrecommended":break;default:J=!1}break;case"componentoptions":switch(a[3]){case"toolbar":case"hideofficelogo":case"spreadsheetautofit":case"label":case"caption":case"maxheight":case"maxwidth":case"nextsheetnumber":break;default:J=!1}break;case"excelworkbook":switch(a[3]){case"date1904":H.WBProps.date1904=!0;break;case"windowheight":case"windowwidth":case"windowtopx":case"windowtopy":case"tabratio":case"protectstructure":case"protectwindow":case"protectwindows":case"activesheet":case"displayinknotes":case"firstvisiblesheet":case"supbook":case"sheetname":case"sheetindex":case"sheetindexfirst":case"sheetindexlast":case"dll":case"acceptlabelsinformulas":case"donotsavelinkvalues":case"iteration":case"maxiterations":case"maxchange":case"path":case"xct":case"count":case"selectedsheets":case"calculation":case"uncalced":case"startupprompt":case"crn":case"externname":case"formula":case"colfirst":case"collast":case"wantadvise":case"boolean":case"error":case"text":case"ole":case"noautorecover":case"publishobjects":case"donotcalculatebeforesave":case"number":case"refmoder1c1":case"embedsavesmarttags":break;default:J=!1}break;case"workbookoptions":switch(a[3]){case"owcversion":case"height":case"width":break;default:J=!1}break;case"worksheetoptions":switch(a[3]){case"visible":if(a[0].slice(-2)!=="/>")if(a[1]==="/")switch(n.slice(A,a.index)){case"SheetHidden":Z.Hidden=1;break;case"SheetVeryHidden":Z.Hidden=2}else A=a.index+a[0].length;break;case"header":d["!margins"]||$s(d["!margins"]={},"xlml"),isNaN(+tr(a[0]).Margin)||(d["!margins"].header=+tr(a[0]).Margin);break;case"footer":d["!margins"]||$s(d["!margins"]={},"xlml"),isNaN(+tr(a[0]).Margin)||(d["!margins"].footer=+tr(a[0]).Margin);break;case"pagemargins":var st=tr(a[0]);d["!margins"]||$s(d["!margins"]={},"xlml"),isNaN(+st.Top)||(d["!margins"].top=+st.Top),isNaN(+st.Left)||(d["!margins"].left=+st.Left),isNaN(+st.Right)||(d["!margins"].right=+st.Right),isNaN(+st.Bottom)||(d["!margins"].bottom=+st.Bottom);break;case"displayrighttoleft":H.Views||(H.Views=[]),H.Views[0]||(H.Views[0]={}),H.Views[0].RTL=!0;break;case"freezepanes":case"frozennosplit":case"splithorizontal":case"splitvertical":case"donotdisplaygridlines":case"activerow":case"activecol":case"toprowbottompane":case"leftcolumnrightpane":case"unsynced":case"print":case"printerrors":case"panes":case"scale":case"pane":case"number":case"layout":case"pagesetup":case"selected":case"protectobjects":case"enableselection":case"protectscenarios":case"validprinterinfo":case"horizontalresolution":case"verticalresolution":case"numberofcopies":case"activepane":case"toprowvisible":case"leftcolumnvisible":case"fittopage":case"rangeselection":case"papersizeindex":case"pagelayoutzoom":case"pagebreakzoom":case"filteron":case"fitwidth":case"fitheight":case"commentslayout":case"zoom":case"lefttoright":case"gridlines":case"allowsort":case"allowfilter":case"allowinsertrows":case"allowdeleterows":case"allowinsertcols":case"allowdeletecols":case"allowinserthyperlinks":case"allowformatcells":case"allowsizecols":case"allowsizerows":case"tabcolorindex":case"donotdisplayheadings":case"showpagelayoutzoom":case"blackandwhite":case"donotdisplayzeros":case"displaypagebreak":case"rowcolheadings":case"donotdisplayoutline":case"noorientation":case"allowusepivottables":case"zeroheight":case"viewablerange":case"selection":case"protectcontents":break;case"nosummaryrowsbelowdetail":d["!outline"]||(d["!outline"]={}),d["!outline"].above=!0;break;case"nosummarycolumnsrightdetail":d["!outline"]||(d["!outline"]={}),d["!outline"].left=!0;break;default:J=!1}break;case"pivottable":case"pivotcache":switch(a[3]){case"immediateitemsondrop":case"showpagemultipleitemlabel":case"compactrowindent":case"location":case"pivotfield":case"orientation":case"layoutform":case"layoutsubtotallocation":case"layoutcompactrow":case"position":case"pivotitem":case"datatype":case"datafield":case"sourcename":case"parentfield":case"ptlineitems":case"ptlineitem":case"countofsameitems":case"item":case"itemtype":case"ptsource":case"cacheindex":case"consolidationreference":case"filename":case"reference":case"nocolumngrand":case"norowgrand":case"blanklineafteritems":case"hidden":case"subtotal":case"basefield":case"mapchilditems":case"function":case"refreshonfileopen":case"printsettitles":case"mergelabels":case"defaultversion":case"refreshname":case"refreshdate":case"refreshdatecopy":case"versionlastrefresh":case"versionlastupdate":case"versionupdateablemin":case"versionrefreshablemin":case"calculation":break;default:J=!1}break;case"pagebreaks":switch(a[3]){case"colbreaks":case"colbreak":case"rowbreaks":case"rowbreak":case"colstart":case"colend":case"rowend":break;default:J=!1}break;case"autofilter":switch(a[3]){case"autofiltercolumn":case"autofiltercondition":case"autofilterand":case"autofilteror":break;default:J=!1}break;case"querytable":switch(a[3]){case"id":case"autoformatfont":case"autoformatpattern":case"querysource":case"querytype":case"enableredirections":case"refreshedinxl9":case"urlstring":case"htmltables":case"connection":case"commandtext":case"refreshinfo":case"notitles":case"nextid":case"columninfo":case"overwritecells":case"donotpromptforfile":case"textwizardsettings":case"source":case"number":case"decimal":case"thousandseparator":case"trailingminusnumbers":case"formatsettings":case"fieldtype":case"delimiters":case"tab":case"comma":case"autoformatname":case"versionlastedit":case"versionlastrefresh":break;default:J=!1}break;case"datavalidation":switch(a[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":case"cellrangelist":break;default:J=!1}break;case"sorting":case"conditionalformatting":switch(a[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"cellrangelist":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":break;default:J=!1}break;case"mapinfo":case"schema":case"data":switch(a[3]){case"map":case"entry":case"range":case"xpath":case"field":case"xsdtype":case"filteron":case"aggregate":case"elementtype":case"attributetype":case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":case"row":break;default:J=!1}break;case"smarttags":break;default:J=!1}if(J||a[3].match(/!\[CDATA/))break;if(!u[u.length-1][1])throw"Unrecognized tag: "+a[3]+"|"+u.join("|");if(u[u.length-1][0]==="customdocumentproperties"){if(a[0].slice(-2)==="/>")break;a[1]==="/"?F6(V,Y,N,n.slice(A,a.index)):(N=a,A=a.index+a[0].length);break}if(e.WTF)throw"Unrecognized tag: "+a[3]+"|"+u.join("|")}var Ot={};return e.bookSheets||e.bookProps||(Ot.Sheets=f),Ot.SheetNames=h,Ot.Workbook=H,Ot.SSF=Wr(Qe),Ot.Props=L,Ot.Custprops=V,Ot}function lh(t,r){switch(vh(r=r||{}),r.type||"base64"){case"base64":return ch(Si(t),r);case"binary":case"buffer":case"file":return ch(t,r);case"array":return ch(is(t),r)}}function U6(t,r){var e=[];return t.Props&&e.push(function(n,a){var o=[];return nn(Vf).map(function(s){for(var i=0;i<Li.length;++i)if(Li[i][1]==s)return Li[i];for(i=0;i<zs.length;++i)if(zs[i][1]==s)return zs[i];throw s}).forEach(function(s){if(n[s[1]]!=null){var i=a&&a.Props&&a.Props[s[1]]!=null?a.Props[s[1]]:n[s[1]];s[2]==="date"&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"Z")),typeof i=="number"?i=String(i):i===!0||i===!1?i=i?"1":"0":i instanceof Date&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"")),o.push(Pn(Vf[s[1]]||s[1],i))}}),we("DocumentProperties",o.join(""),{xmlns:Ci.o})}(t.Props,r)),t.Custprops&&e.push(function(n,a){var o=["Worksheets","SheetNames"],s="CustomDocumentProperties",i=[];return n&&nn(n).forEach(function(c){if(Object.prototype.hasOwnProperty.call(n,c)){for(var l=0;l<Li.length;++l)if(c==Li[l][1])return;for(l=0;l<zs.length;++l)if(c==zs[l][1])return;for(l=0;l<o.length;++l)if(c==o[l])return;var u=n[c],f="string";typeof u=="number"?(f="float",u=String(u)):u===!0||u===!1?(f="boolean",u=u?"1":"0"):u=String(u),i.push(we(Np(c),u,{"dt:dt":f}))}}),a&&nn(a).forEach(function(c){if(Object.prototype.hasOwnProperty.call(a,c)&&(!n||!Object.prototype.hasOwnProperty.call(n,c))){var l=a[c],u="string";typeof l=="number"?(u="float",l=String(l)):l===!0||l===!1?(u="boolean",l=l?"1":"0"):l instanceof Date?(u="dateTime.tz",l=l.toISOString()):l=String(l),i.push(we(Np(c),l,{"dt:dt":u}))}}),"<"+s+' xmlns="'+Ci.o+'">'+i.join("")+"</"+s+">"}(t.Props,t.Custprops)),e.join("")}function Gm(t){return we("NamedRange",null,{"ss:Name":t.Name,"ss:RefersTo":"="+eh(t.Ref,{r:0,c:0})})}function H6(t,r,e,n,a,o,s){if(!t||t.v==null&&t.f==null)return"";var i={};if(t.f&&(i["ss:Formula"]="="+Nr(eh(t.f,s))),t.F&&t.F.slice(0,r.length)==r){var c=gn(t.F.slice(r.length+1));i["ss:ArrayRange"]="RC:R"+(c.r==s.r?"":"["+(c.r-s.r)+"]")+"C"+(c.c==s.c?"":"["+(c.c-s.c)+"]")}if(t.l&&t.l.Target&&(i["ss:HRef"]=Nr(t.l.Target),t.l.Tooltip&&(i["x:HRefScreenTip"]=Nr(t.l.Tooltip))),e["!merges"])for(var l=e["!merges"],u=0;u!=l.length;++u)l[u].s.c==s.c&&l[u].s.r==s.r&&(l[u].e.c>l[u].s.c&&(i["ss:MergeAcross"]=l[u].e.c-l[u].s.c),l[u].e.r>l[u].s.r&&(i["ss:MergeDown"]=l[u].e.r-l[u].s.r));var f="",h="";switch(t.t){case"z":if(!n.sheetStubs)return"";break;case"n":f="Number",h=String(t.v);break;case"b":f="Boolean",h=t.v?"1":"0";break;case"e":f="Error",h=Ba[t.v];break;case"d":f="DateTime",h=new Date(t.v).toISOString(),t.z==null&&(t.z=t.z||Qe[14]);break;case"s":f="String",h=((t.v||"")+"").replace(Tf,function(v){return Sf[v]}).replace(Pp,function(v){return"&#x"+v.charCodeAt(0).toString(16).toUpperCase()+";"})}var d=us(n.cellXfs,t,n);i["ss:StyleID"]="s"+(21+d),i["ss:Index"]=s.c+1;var p=t.v!=null?h:"",m=t.t=="z"?"":'<Data ss:Type="'+f+'">'+p+"</Data>";return(t.c||[]).length>0&&(m+=t.c.map(function(v){var b=we("ss:Data",(v.t||"").replace(/(\r\n|[\r\n])/g," "),{xmlns:"http://www.w3.org/TR/REC-html40"});return we("Comment",b,{"ss:Author":v.a})}).join("")),we("Cell",m,i)}function W6(t,r){var e='<Row ss:Index="'+(t+1)+'"';return r&&(r.hpt&&!r.hpx&&(r.hpx=To(r.hpt)),r.hpx&&(e+=' ss:AutoFitHeight="0" ss:Height="'+r.hpx+'"'),r.hidden&&(e+=' ss:Hidden="1"')),e+">"}function V6(t,r,e){var n=[],a=e.SheetNames[t],o=e.Sheets[a],s=o?function(i,c,l,u){if(!i||!((u||{}).Workbook||{}).Names)return"";for(var f=u.Workbook.Names,h=[],d=0;d<f.length;++d){var p=f[d];p.Sheet==l&&(p.Name.match(/^_xlfn\./)||h.push(Gm(p)))}return h.join("")}(o,0,t,e):"";return s.length>0&&n.push("<Names>"+s+"</Names>"),s=o?function(i,c,l,u){if(!i["!ref"])return"";var f=Mr(i["!ref"]),h=i["!merges"]||[],d=0,p=[];i["!cols"]&&i["!cols"].forEach(function(O,D){cs(O);var j=!!O.width,U=$l(D,O),L={"ss:Index":D+1};j&&(L["ss:Width"]=Sc(U.width)),O.hidden&&(L["ss:Hidden"]="1"),p.push(we("Column",null,L))});for(var m=Array.isArray(i),v=f.s.r;v<=f.e.r;++v){for(var b=[W6(v,(i["!rows"]||[])[v])],g=f.s.c;g<=f.e.c;++g){var y=!1;for(d=0;d!=h.length;++d)if(!(h[d].s.c>g||h[d].s.r>v||h[d].e.c<g||h[d].e.r<v)){h[d].s.c==g&&h[d].s.r==v||(y=!0);break}if(!y){var w={r:v,c:g},x=nr(w),C=m?(i[v]||[])[g]:i[x];b.push(H6(C,x,i,c,0,0,w))}}b.push("</Row>"),b.length>2&&p.push(b.join(""))}return p.join("")}(o,r):"",s.length>0&&n.push("<Table>"+s+"</Table>"),n.push(function(i,c,l,u){if(!i)return"";var f=[];if(i["!margins"]&&(f.push("<PageSetup>"),i["!margins"].header&&f.push(we("Header",null,{"x:Margin":i["!margins"].header})),i["!margins"].footer&&f.push(we("Footer",null,{"x:Margin":i["!margins"].footer})),f.push(we("PageMargins",null,{"x:Bottom":i["!margins"].bottom||"0.75","x:Left":i["!margins"].left||"0.7","x:Right":i["!margins"].right||"0.7","x:Top":i["!margins"].top||"0.75"})),f.push("</PageSetup>")),u&&u.Workbook&&u.Workbook.Sheets&&u.Workbook.Sheets[l])if(u.Workbook.Sheets[l].Hidden)f.push(we("Visible",u.Workbook.Sheets[l].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var h=0;h<l&&(!u.Workbook.Sheets[h]||u.Workbook.Sheets[h].Hidden);++h);h==l&&f.push("<Selected/>")}return((((u||{}).Workbook||{}).Views||[])[0]||{}).RTL&&f.push("<DisplayRightToLeft/>"),i["!protect"]&&(f.push(Pn("ProtectContents","True")),i["!protect"].objects&&f.push(Pn("ProtectObjects","True")),i["!protect"].scenarios&&f.push(Pn("ProtectScenarios","True")),i["!protect"].selectLockedCells==null||i["!protect"].selectLockedCells?i["!protect"].selectUnlockedCells==null||i["!protect"].selectUnlockedCells||f.push(Pn("EnableSelection","UnlockedCells")):f.push(Pn("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(d){i["!protect"][d[0]]&&f.push("<"+d[1]+"/>")})),f.length==0?"":we("WorksheetOptions",f.join(""),{xmlns:Ci.x})}(o,0,t,e)),n.join("")}function $6(t,r){r||(r={}),t.SSF||(t.SSF=Wr(Qe)),t.SSF&&(bo(),Tl(t.SSF),r.revssf=Cl(t.SSF),r.revssf[t.SSF[65535]]=0,r.ssf=t.SSF,r.cellXfs=[],us(r.cellXfs,{},{revssf:{General:0}}));var e=[];e.push(U6(t,r)),e.push(""),e.push(""),e.push("");for(var n=0;n<t.SheetNames.length;++n)e.push(we("Worksheet",V6(n,r,t),{"ss:Name":Nr(t.SheetNames[n])}));return e[2]=function(a,o){var s=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return o.cellXfs.forEach(function(i,c){var l=[];l.push(we("NumberFormat",null,{"ss:Format":Nr(Qe[i.numFmtId])}));var u={"ss:ID":"s"+(21+c)};s.push(we("Style",l.join(""),u))}),we("Styles",s.join(""))}(0,r),e[3]=function(a){if(!((a||{}).Workbook||{}).Names)return"";for(var o=a.Workbook.Names,s=[],i=0;i<o.length;++i){var c=o[i];c.Sheet==null&&(c.Name.match(/^_xlfn\./)||s.push(Gm(c)))}return we("Names",s.join(""))}(t),an+we("Workbook",e.join(""),{xmlns:Ci.ss,"xmlns:o":Ci.o,"xmlns:x":Ci.x,"xmlns:ss":Ci.ss,"xmlns:dt":Ci.dt,"xmlns:html":Ci.html})}function q6(t){var r={},e=t.content;if(e.l=28,r.AnsiUserType=e.read_shift(0,"lpstr-ansi"),r.AnsiClipboardFormat=function(a){return u1(a,1)}(e),e.length-e.l<=4)return r;var n=e.read_shift(4);return n==0||n>40?r:(e.l-=4,r.Reserved1=e.read_shift(0,"lpstr-ansi"),e.length-e.l<=4||(n=e.read_shift(4))!==1907505652?r:(r.UnicodeClipboardFormat=function(a){return u1(a,2)}(e),(n=e.read_shift(4))==0||n>40?r:(e.l-=4,void(r.Reserved2=e.read_shift(0,"lpwstr")))))}var G6=[60,1084,2066,2165,2175];function Y6(t,r,e,n,a){var o=n,s=[],i=e.slice(e.l,e.l+o);if(a&&a.enc&&a.enc.insitu&&i.length>0)switch(t){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:case 133:break;default:a.enc.insitu(i)}s.push(i),e.l+=o;for(var c=ja(e,e.l),l=uh[c],u=0;l!=null&&G6.indexOf(c)>-1;)o=ja(e,e.l+2),u=e.l+4,c==2066?u+=4:c!=2165&&c!=2175||(u+=12),i=e.slice(u,e.l+4+o),s.push(i),e.l+=4+o,l=uh[c=ja(e,e.l)];var f=En(s);Dn(f,0);var h=0;f.lens=[];for(var d=0;d<s.length;++d)f.lens.push(h),h+=s[d].length;if(f.length<n)throw"XLS Record 0x"+t.toString(16)+" Truncated: "+f.length+" < "+n;return r.f(f,f.length,a)}function ya(t,r,e){if(t.t!=="z"&&t.XF){var n=0;try{n=t.z||t.XF.numFmtId||0,r.cellNF&&(t.z=Qe[n])}catch(o){if(r.WTF)throw o}if(!r||r.cellText!==!1)try{t.t==="e"?t.w=t.w||Ba[t.v]:n===0||n=="General"?t.t==="n"?(0|t.v)===t.v?t.w=t.v.toString(10):t.w=oc(t.v):t.w=Os(t.v):t.w=Pi(n,t.v,{date1904:!!e,dateNF:r&&r.dateNF})}catch(o){if(r.WTF)throw o}if(r.cellDates&&n&&t.t=="n"&&go(Qe[n]||String(n))){var a=Ms(t.v);a&&(t.t="d",t.v=new Date(a.y,a.m-1,a.d,a.H,a.M,a.S,a.u))}}}function ql(t,r,e){return{v:t,ixfe:r,t:e}}function K6(t,r){var e,n,a,o,s,i,c,l,u={opts:{}},f={},h=r.dense?[]:{},d={},p={},m=null,v=[],b="",g={},y="",w={},x=[],C=[],O=[],D={Sheets:[],WBProps:{date1904:!1},Views:[{}]},j={},U=function(pt){return pt<8?ko[pt]:pt<64&&O[pt-8]||ko[pt]},L=function(pt,Dt,rt){if(!(I>1||rt.sheetRows&&pt.r>=rt.sheetRows)){if(rt.cellStyles&&Dt.XF&&Dt.XF.data&&function(ht,St,ut){var vt,ft=St.XF.data;ft&&ft.patternType&&ut&&ut.cellStyles&&(St.s={},St.s.patternType=ft.patternType,(vt=xc(U(ft.icvFore)))&&(St.s.fgColor={rgb:vt}),(vt=xc(U(ft.icvBack)))&&(St.s.bgColor={rgb:vt}))}(0,Dt,rt),delete Dt.ixfe,delete Dt.XF,e=pt,y=nr(pt),p&&p.s&&p.e||(p={s:{r:0,c:0},e:{r:0,c:0}}),pt.r<p.s.r&&(p.s.r=pt.r),pt.c<p.s.c&&(p.s.c=pt.c),pt.r+1>p.e.r&&(p.e.r=pt.r+1),pt.c+1>p.e.c&&(p.e.c=pt.c+1),rt.cellFormula&&Dt.f){for(var nt=0;nt<x.length;++nt)if(!(x[nt][0].s.c>pt.c||x[nt][0].s.r>pt.r||x[nt][0].e.c<pt.c||x[nt][0].e.r<pt.r)){Dt.F=wr(x[nt][0]),x[nt][0].s.c==pt.c&&x[nt][0].s.r==pt.r||delete Dt.f,Dt.f&&(Dt.f=""+Xn(x[nt][1],0,pt,T,V));break}}rt.dense?(h[pt.r]||(h[pt.r]=[]),h[pt.r][pt.c]=Dt):h[y]=Dt}},V={enc:!1,sbcch:0,snames:[],sharedf:w,arrayf:x,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!r&&!!r.cellStyles,WTF:!!r&&!!r.wtf};r.password&&(V.password=r.password);var A=[],N=[],k=[],S=[],E=!1,T=[];T.SheetNames=V.snames,T.sharedf=V.sharedf,T.arrayf=V.arrayf,T.names=[],T.XTI=[];var R,F=0,I=0,B=0,P=[],H=[];V.codepage=1200,ra(1200);for(var Z=!1;t.l<t.length-1;){var Y=t.l,dt=t.read_shift(2);if(dt===0&&F===10)break;var gt=t.l===t.length?0:t.read_shift(2),bt=uh[dt];if(bt&&bt.f){if(r.bookSheets&&F===133&&dt!==133)break;if(F=dt,bt.r===2||bt.r==12){var Q=t.read_shift(2);if(gt-=2,!V.enc&&Q!==dt&&((255&Q)<<8|Q>>8)!==dt)throw new Error("rt mismatch: "+Q+"!="+dt);bt.r==12&&(t.l+=10,gt-=10)}var q={};if(q=dt===10?bt.f(t,gt,V):Y6(dt,bt,t,gt,V),I==0&&[9,521,1033,2057].indexOf(F)===-1)continue;switch(dt){case 34:u.opts.Date1904=D.WBProps.date1904=q;break;case 134:u.opts.WriteProtect=!0;break;case 47:if(V.enc||(t.l=0),V.enc=q,!r.password)throw new Error("File is password-protected");if(q.valid==null)throw new Error("Encryption scheme unsupported");if(!q.valid)throw new Error("Password is incorrect");break;case 92:V.lastuser=q;break;case 66:var tt=Number(q);switch(tt){case 21010:tt=1200;break;case 32768:tt=1e4;break;case 32769:tt=1252}ra(V.codepage=tt),Z=!0;break;case 317:V.rrtabid=q;break;case 25:V.winlocked=q;break;case 439:u.opts.RefreshAll=q;break;case 12:u.opts.CalcCount=q;break;case 16:u.opts.CalcDelta=q;break;case 17:u.opts.CalcIter=q;break;case 13:u.opts.CalcMode=q;break;case 14:u.opts.CalcPrecision=q;break;case 95:u.opts.CalcSaveRecalc=q;break;case 15:V.CalcRefMode=q;break;case 2211:u.opts.FullCalc=q;break;case 129:q.fDialog&&(h["!type"]="dialog"),q.fBelow||((h["!outline"]||(h["!outline"]={})).above=!0),q.fRight||((h["!outline"]||(h["!outline"]={})).left=!0);break;case 224:C.push(q);break;case 430:T.push([q]),T[T.length-1].XTI=[];break;case 35:case 547:T[T.length-1].push(q);break;case 24:case 536:R={Name:q.Name,Ref:Xn(q.rgce,0,null,T,V)},q.itab>0&&(R.Sheet=q.itab-1),T.names.push(R),T[0]||(T[0]=[],T[0].XTI=[]),T[T.length-1].push(q),q.Name=="_xlnm._FilterDatabase"&&q.itab>0&&q.rgce&&q.rgce[0]&&q.rgce[0][0]&&q.rgce[0][0][0]=="PtgArea3d"&&(H[q.itab-1]={ref:wr(q.rgce[0][0][1][2])});break;case 22:V.ExternCount=q;break;case 23:T.length==0&&(T[0]=[],T[0].XTI=[]),T[T.length-1].XTI=T[T.length-1].XTI.concat(q),T.XTI=T.XTI.concat(q);break;case 2196:if(V.biff<8)break;R!=null&&(R.Comment=q[1]);break;case 18:h["!protect"]=q;break;case 19:q!==0&&V.WTF&&console.error("Password verifier: "+q);break;case 133:d[q.pos]=q,V.snames.push(q.name);break;case 10:if(--I)break;if(p.e){if(p.e.r>0&&p.e.c>0){if(p.e.r--,p.e.c--,h["!ref"]=wr(p),r.sheetRows&&r.sheetRows<=p.e.r){var et=p.e.r;p.e.r=r.sheetRows-1,h["!fullref"]=h["!ref"],h["!ref"]=wr(p),p.e.r=et}p.e.r++,p.e.c++}A.length>0&&(h["!merges"]=A),N.length>0&&(h["!objects"]=N),k.length>0&&(h["!cols"]=k),S.length>0&&(h["!rows"]=S),D.Sheets.push(j)}b===""?g=h:f[b]=h,h=r.dense?[]:{};break;case 9:case 521:case 1033:case 2057:if(V.biff===8&&(V.biff={9:2,521:3,1033:4}[dt]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[q.BIFFVer]||8),V.biffguess=q.BIFFVer==0,q.BIFFVer==0&&q.dt==4096&&(V.biff=5,Z=!0,ra(V.codepage=28591)),V.biff==8&&q.BIFFVer==0&&q.dt==16&&(V.biff=2),I++)break;if(h=r.dense?[]:{},V.biff<8&&!Z&&(Z=!0,ra(V.codepage=r.codepage||1252)),V.biff<5||q.BIFFVer==0&&q.dt==4096){b===""&&(b="Sheet1"),p={s:{r:0,c:0},e:{r:0,c:0}};var _t={pos:t.l-gt,name:b};d[_t.pos]=_t,V.snames.push(b)}else b=(d[Y]||{name:""}).name;q.dt==32&&(h["!type"]="chart"),q.dt==64&&(h["!type"]="macro"),A=[],N=[],V.arrayf=x=[],k=[],S=[],E=!1,j={Hidden:(d[Y]||{hs:0}).hs,name:b};break;case 515:case 3:case 2:h["!type"]=="chart"&&(r.dense?(h[q.r]||[])[q.c]:h[nr({c:q.c,r:q.r})])&&++q.c,i={ixfe:q.ixfe,XF:C[q.ixfe]||{},v:q.val,t:"n"},B>0&&(i.z=P[i.ixfe>>8&63]),ya(i,r,u.opts.Date1904),L({c:q.c,r:q.r},i,r);break;case 5:case 517:i={ixfe:q.ixfe,XF:C[q.ixfe],v:q.val,t:q.t},B>0&&(i.z=P[i.ixfe>>8&63]),ya(i,r,u.opts.Date1904),L({c:q.c,r:q.r},i,r);break;case 638:i={ixfe:q.ixfe,XF:C[q.ixfe],v:q.rknum,t:"n"},B>0&&(i.z=P[i.ixfe>>8&63]),ya(i,r,u.opts.Date1904),L({c:q.c,r:q.r},i,r);break;case 189:for(var J=q.c;J<=q.C;++J){var st=q.rkrec[J-q.c][0];i={ixfe:st,XF:C[st],v:q.rkrec[J-q.c][1],t:"n"},B>0&&(i.z=P[i.ixfe>>8&63]),ya(i,r,u.opts.Date1904),L({c:J,r:q.r},i,r)}break;case 6:case 518:case 1030:if(q.val=="String"){m=q;break}if((i=ql(q.val,q.cell.ixfe,q.tt)).XF=C[i.ixfe],r.cellFormula){var Ot=q.formula;if(Ot&&Ot[0]&&Ot[0][0]&&Ot[0][0][0]=="PtgExp"){var W=Ot[0][0][1][0],X=Ot[0][0][1][1],it=nr({r:W,c:X});w[it]?i.f=""+Xn(q.formula,0,q.cell,T,V):i.F=((r.dense?(h[W]||[])[X]:h[it])||{}).F}else i.f=""+Xn(q.formula,0,q.cell,T,V)}B>0&&(i.z=P[i.ixfe>>8&63]),ya(i,r,u.opts.Date1904),L(q.cell,i,r),m=q;break;case 7:case 519:if(!m)throw new Error("String record expects Formula");m.val=q,(i=ql(q,m.cell.ixfe,"s")).XF=C[i.ixfe],r.cellFormula&&(i.f=""+Xn(m.formula,0,m.cell,T,V)),B>0&&(i.z=P[i.ixfe>>8&63]),ya(i,r,u.opts.Date1904),L(m.cell,i,r),m=null;break;case 33:case 545:x.push(q);var xt=nr(q[0].s);if(n=r.dense?(h[q[0].s.r]||[])[q[0].s.c]:h[xt],r.cellFormula&&n){if(!m||!xt||!n)break;n.f=""+Xn(q[1],0,q[0],T,V),n.F=wr(q[0])}break;case 1212:if(!r.cellFormula)break;if(y){if(!m)break;w[nr(m.cell)]=q[0],((n=r.dense?(h[m.cell.r]||[])[m.cell.c]:h[nr(m.cell)])||{}).f=""+Xn(q[0],0,e,T,V)}break;case 253:i=ql(v[q.isst].t,q.ixfe,"s"),v[q.isst].h&&(i.h=v[q.isst].h),i.XF=C[i.ixfe],B>0&&(i.z=P[i.ixfe>>8&63]),ya(i,r,u.opts.Date1904),L({c:q.c,r:q.r},i,r);break;case 513:r.sheetStubs&&(i={ixfe:q.ixfe,XF:C[q.ixfe],t:"z"},B>0&&(i.z=P[i.ixfe>>8&63]),ya(i,r,u.opts.Date1904),L({c:q.c,r:q.r},i,r));break;case 190:if(r.sheetStubs)for(var Nt=q.c;Nt<=q.C;++Nt){var G=q.ixfe[Nt-q.c];i={ixfe:G,XF:C[G],t:"z"},B>0&&(i.z=P[i.ixfe>>8&63]),ya(i,r,u.opts.Date1904),L({c:Nt,r:q.r},i,r)}break;case 214:case 516:case 4:(i=ql(q.val,q.ixfe,"s")).XF=C[i.ixfe],B>0&&(i.z=P[i.ixfe>>8&63]),ya(i,r,u.opts.Date1904),L({c:q.c,r:q.r},i,r);break;case 0:case 512:I===1&&(p=q);break;case 252:v=q;break;case 1054:if(V.biff==4){P[B++]=q[1];for(var Mt=0;Mt<B+163&&Qe[Mt]!=q[1];++Mt);Mt>=163&&Da(q[1],B+163)}else Da(q[1],q[0]);break;case 30:P[B++]=q;for(var Pt=0;Pt<B+163&&Qe[Pt]!=q;++Pt);Pt>=163&&Da(q,B+163);break;case 229:A=A.concat(q);break;case 93:N[q.cmo[0]]=V.lastobj=q;break;case 438:V.lastobj.TxO=q;break;case 127:V.lastobj.ImData=q;break;case 440:for(s=q[0].s.r;s<=q[0].e.r;++s)for(o=q[0].s.c;o<=q[0].e.c;++o)(n=r.dense?(h[s]||[])[o]:h[nr({c:o,r:s})])&&(n.l=q[1]);break;case 2048:for(s=q[0].s.r;s<=q[0].e.r;++s)for(o=q[0].s.c;o<=q[0].e.c;++o)(n=r.dense?(h[s]||[])[o]:h[nr({c:o,r:s})])&&n.l&&(n.l.Tooltip=q[1]);break;case 28:if(V.biff<=5&&V.biff>=2)break;n=r.dense?(h[q[0].r]||[])[q[0].c]:h[nr(q[0])];var lt=N[q[2]];n||(r.dense?(h[q[0].r]||(h[q[0].r]=[]),n=h[q[0].r][q[0].c]={t:"z"}):n=h[nr(q[0])]={t:"z"},p.e.r=Math.max(p.e.r,q[0].r),p.s.r=Math.min(p.s.r,q[0].r),p.e.c=Math.max(p.e.c,q[0].c),p.s.c=Math.min(p.s.c,q[0].c)),n.c||(n.c=[]),a={a:q[1],t:lt.TxO.t},n.c.push(a);break;case 2173:C[q.ixfe],q.ext.forEach(function(pt){pt[0]});break;case 125:if(!V.cellStyles)break;for(;q.e>=q.s;)k[q.e--]={width:q.w/256,level:q.level||0,hidden:!!(1&q.flags)},E||(E=!0,Zf(q.w/256)),cs(k[q.e+1]);break;case 520:var ct={};q.level!=null&&(S[q.r]=ct,ct.level=q.level),q.hidden&&(S[q.r]=ct,ct.hidden=!0),q.hpt&&(S[q.r]=ct,ct.hpt=q.hpt,ct.hpx=To(q.hpt));break;case 38:case 39:case 40:case 41:h["!margins"]||$s(h["!margins"]={}),h["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[dt]]=q;break;case 161:h["!margins"]||$s(h["!margins"]={}),h["!margins"].header=q.header,h["!margins"].footer=q.footer;break;case 574:q.RTL&&(D.Views[0].RTL=!0);break;case 146:O=q;break;case 2198:l=q;break;case 140:c=q;break;case 442:b?j.CodeName=q||j.name:D.WBProps.CodeName=q||"ThisWorkbook"}}else bt||console.error("Missing Info for XLS Record 0x"+dt.toString(16)),t.l+=gt}return u.SheetNames=nn(d).sort(function(pt,Dt){return Number(pt)-Number(Dt)}).map(function(pt){return d[pt].name}),r.bookSheets||(u.Sheets=f),!u.SheetNames.length&&g["!ref"]?(u.SheetNames.push("Sheet1"),u.Sheets&&(u.Sheets.Sheet1=g)):u.Preamble=g,u.Sheets&&H.forEach(function(pt,Dt){u.Sheets[u.SheetNames[Dt]]["!autofilter"]=pt}),u.Strings=v,u.SSF=Wr(Qe),V.enc&&(u.Encryption=V.enc),l&&(u.Themes=l),u.Metadata={},c!==void 0&&(u.Metadata.Country=c),T.names.length>0&&(D.Names=T.names),u.Workbook=D,u}var Pc={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function Ym(t,r){var e,n,a,o;if(r||(r={}),vh(r),gf(),r.codepage&&vf(r.codepage),t.FullPaths){if(Ve.find(t,"/encryption"))throw new Error("File is password-protected");e=Ve.find(t,"!CompObj"),n=Ve.find(t,"/Workbook")||Ve.find(t,"/Book")}else{switch(r.type){case"base64":t=Ti(Si(t));break;case"binary":t=Ti(t);break;case"buffer":break;case"array":Array.isArray(t)||(t=Array.prototype.slice.call(t))}Dn(t,0),n={content:t}}if(e&&q6(e),r.bookProps&&!r.bookSheets)a={};else{var s=mr?"buffer":"array";if(n&&n.content)a=K6(n.content,r);else if((o=Ve.find(t,"PerfectOffice_MAIN"))&&o.content)a=Vs.to_workbook(o.content,(r.type=s,r));else{if(!(o=Ve.find(t,"NativeContent_MAIN"))||!o.content)throw(o=Ve.find(t,"MN0"))&&o.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");a=Vs.to_workbook(o.content,(r.type=s,r))}r.bookVBA&&t.FullPaths&&Ve.find(t,"/_VBA_PROJECT_CUR/VBA/dir")&&(a.vbaraw=function(c){var l=Ve.utils.cfb_new({root:"R"});return c.FullPaths.forEach(function(u,f){if(u.slice(-1)!=="/"&&u.match(/_VBA_PROJECT_CUR/)){var h=u.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");Ve.utils.cfb_add(l,h,c.FileIndex[f].content)}}),Ve.write(l)}(t))}var i={};return t.FullPaths&&function(c,l,u){var f=Ve.find(c,"/!DocumentSummaryInformation");if(f&&f.size>0)try{var h=P1(f,Bf,Pc.DSI);for(var d in h)l[d]=h[d]}catch(b){if(u.WTF)throw b}var p=Ve.find(c,"/!SummaryInformation");if(p&&p.size>0)try{var m=P1(p,zf,Pc.SI);for(var v in m)l[v]==null&&(l[v]=m[v])}catch(b){if(u.WTF)throw b}l.HeadingPairs&&l.TitlesOfParts&&(_1(l.HeadingPairs,l.TitlesOfParts,l,u),delete l.HeadingPairs,delete l.TitlesOfParts)}(t,i,r),a.Props=a.Custprops=i,r.bookFiles&&(a.cfb=t),a}function X6(t,r){var e=r||{},n=Ve.utils.cfb_new({root:"R"}),a="/Workbook";switch(e.bookType||"xls"){case"xls":e.bookType="biff8";case"xla":e.bookType||(e.bookType="xla");case"biff8":a="/Workbook",e.biff=8;break;case"biff5":a="/Book",e.biff=5;break;default:throw new Error("invalid type "+e.bookType+" for XLS CFB")}return Ve.utils.cfb_add(n,a,Km(t,e)),e.biff==8&&(t.Props||t.Custprops)&&function(o,s){var i,c=[],l=[],u=[],f=0,h=_p(Bf,"n"),d=_p(zf,"n");if(o.Props)for(i=nn(o.Props),f=0;f<i.length;++f)(Object.prototype.hasOwnProperty.call(h,i[f])?c:Object.prototype.hasOwnProperty.call(d,i[f])?l:u).push([i[f],o.Props[i[f]]]);if(o.Custprops)for(i=nn(o.Custprops),f=0;f<i.length;++f)Object.prototype.hasOwnProperty.call(o.Props||{},i[f])||(Object.prototype.hasOwnProperty.call(h,i[f])?c:Object.prototype.hasOwnProperty.call(d,i[f])?l:u).push([i[f],o.Custprops[i[f]]]);var p=[];for(f=0;f<u.length;++f)I1.indexOf(u[f][0])>-1||w1.indexOf(u[f][0])>-1||u[f][1]!=null&&p.push(u[f]);l.length&&Ve.utils.cfb_add(s,"/SummaryInformation",D1(l,Pc.SI,d,zf)),(c.length||p.length)&&Ve.utils.cfb_add(s,"/DocumentSummaryInformation",D1(c,Pc.DSI,h,Bf,p.length?p:null,Pc.UDI))}(t,n),e.biff==8&&t.vbaraw&&function(o,s){s.FullPaths.forEach(function(i,c){if(c!=0){var l=i.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");l.slice(-1)!=="/"&&Ve.utils.cfb_add(o,l,s.FileIndex[c].content)}})}(n,Ve.read(t.vbaraw,{type:typeof t.vbaraw=="string"?"binary":"buffer"})),n}var Dc={0:{f:function(t,r){var e={},n=t.l+r;e.r=t.read_shift(4),t.l+=4;var a=t.read_shift(2);t.l+=1;var o=t.read_shift(1);return t.l=n,7&o&&(e.level=7&o),16&o&&(e.hidden=!0),32&o&&(e.hpt=a/20),e}},1:{f:function(t){return[ji(t)]}},2:{f:function(t){return[ji(t),jf(t),"n"]}},3:{f:function(t){return[ji(t),t.read_shift(1),"e"]}},4:{f:function(t){return[ji(t),t.read_shift(1),"b"]}},5:{f:function(t){return[ji(t),Gn(t),"n"]}},6:{f:function(t){return[ji(t),qn(t),"str"]}},7:{f:function(t){return[ji(t),t.read_shift(4),"s"]}},8:{f:function(t,r,e){var n=t.l+r,a=ji(t);a.r=e["!row"];var o=[a,qn(t),"str"];if(e.cellFormula){t.l+=2;var s=Vl(t,n-t.l,e);o[3]=Xn(s,0,a,e.supbooks,e)}else t.l=n;return o}},9:{f:function(t,r,e){var n=t.l+r,a=ji(t);a.r=e["!row"];var o=[a,Gn(t),"n"];if(e.cellFormula){t.l+=2;var s=Vl(t,n-t.l,e);o[3]=Xn(s,0,a,e.supbooks,e)}else t.l=n;return o}},10:{f:function(t,r,e){var n=t.l+r,a=ji(t);a.r=e["!row"];var o=[a,t.read_shift(1),"b"];if(e.cellFormula){t.l+=2;var s=Vl(t,n-t.l,e);o[3]=Xn(s,0,a,e.supbooks,e)}else t.l=n;return o}},11:{f:function(t,r,e){var n=t.l+r,a=ji(t);a.r=e["!row"];var o=[a,t.read_shift(1),"e"];if(e.cellFormula){t.l+=2;var s=Vl(t,n-t.l,e);o[3]=Xn(s,0,a,e.supbooks,e)}else t.l=n;return o}},12:{f:function(t){return[js(t)]}},13:{f:function(t){return[js(t),jf(t),"n"]}},14:{f:function(t){return[js(t),t.read_shift(1),"e"]}},15:{f:function(t){return[js(t),t.read_shift(1),"b"]}},16:{f:Lm},17:{f:function(t){return[js(t),qn(t),"str"]}},18:{f:function(t){return[js(t),t.read_shift(4),"s"]}},19:{f:Nf},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:function(t,r,e){var n=t.l+r;t.l+=4,t.l+=1;var a=t.read_shift(4),o=t3(t),s=D4(t,0,e),i=Pf(t);t.l=n;var c={Name:o,Ptg:s};return a<268435455&&(c.Sheet=a),i&&(c.Comment=i),c}},40:{},42:{},43:{f:function(t,r,e){var n={};n.sz=t.read_shift(2)/20;var a=function(c){var l=c.read_shift(1);return c.l++,{fBold:1&l,fItalic:2&l,fUnderline:4&l,fStrikeout:8&l,fOutline:16&l,fShadow:32&l,fCondense:64&l,fExtend:128&l}}(t);switch(a.fItalic&&(n.italic=1),a.fCondense&&(n.condense=1),a.fExtend&&(n.extend=1),a.fShadow&&(n.shadow=1),a.fOutline&&(n.outline=1),a.fStrikeout&&(n.strike=1),t.read_shift(2)===700&&(n.bold=1),t.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript"}var o=t.read_shift(1);o!=0&&(n.underline=o);var s=t.read_shift(1);s>0&&(n.family=s);var i=t.read_shift(1);switch(i>0&&(n.charset=i),t.l++,n.color=function(c){var l={},u=c.read_shift(1)>>>1,f=c.read_shift(1),h=c.read_shift(2,"i"),d=c.read_shift(1),p=c.read_shift(1),m=c.read_shift(1);switch(c.l++,u){case 0:l.auto=1;break;case 1:l.index=f;var v=ko[f];v&&(l.rgb=xc(v));break;case 2:l.rgb=xc([d,p,m]);break;case 3:l.theme=f}return h!=0&&(l.tint=h>0?h/32767:h/32768),l}(t),t.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor"}return n.name=qn(t),n}},44:{f:function(t,r){return[t.read_shift(2),qn(t)]}},45:{f:Q3},46:{f:t4},47:{f:function(t,r){var e=t.l+r,n=t.read_shift(2),a=t.read_shift(2);return t.l=e,{ixfe:n,numFmtId:a}}},48:{},49:{f:function(t){return t.read_shift(4,"i")}},50:{},51:{f:function(t){for(var r=[],e=t.read_shift(4);e-- >0;)r.push([t.read_shift(4),t.read_shift(4)]);return r}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:em},62:{f:function(t){return[ji(t),Nf(t),"is"]}},63:{f:function(t){var r={};r.i=t.read_shift(4);var e={};e.r=t.read_shift(4),e.c=t.read_shift(4),r.r=nr(e);var n=t.read_shift(1);return 2&n&&(r.l="1"),8&n&&(r.a="1"),r}},64:{f:function(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:$n,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function(t){var r=t.read_shift(2);return t.l+=28,{RTL:32&r}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function(t,r){var e={},n=t[t.l];return++t.l,e.above=!(64&n),e.left=!(128&n),t.l+=18,e.name=Qw(t),e}},148:{f:r6,p:16},151:{f:function(){}},152:{},153:{f:function(t,r){var e={},n=t.read_shift(4);e.defaultThemeVersion=t.read_shift(4);var a=r>8?qn(t):"";return a.length>0&&(e.CodeName=a),e.autoCompressPictures=!!(65536&n),e.backupFile=!!(64&n),e.checkCompatibility=!!(4096&n),e.date1904=!!(1&n),e.filterPrivacy=!!(8&n),e.hidePivotFieldList=!!(1024&n),e.promptedSolutions=!!(16&n),e.publishItems=!!(2048&n),e.refreshAllConnections=!!(262144&n),e.saveExternalLinkValues=!!(128&n),e.showBorderUnselectedTables=!!(4&n),e.showInkAnnotation=!!(32&n),e.showObjects=["all","placeholders","none"][n>>13&3],e.showPivotChartFilter=!!(32768&n),e.updateLinks=["userSet","never","always"][n>>8&3],e}},154:{},155:{},156:{f:function(t,r){var e={};return e.Hidden=t.read_shift(4),e.iTabID=t.read_shift(4),e.strRelID=Df(t),e.name=qn(t),e}},157:{},158:{},159:{T:1,f:function(t){return[t.read_shift(4),t.read_shift(4)]}},160:{T:-1},161:{T:1,f:Bs},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:i6},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function(t,r){return{flags:t.read_shift(4),version:t.read_shift(4),name:qn(t)}}},336:{T:-1},337:{f:function(t){return t.l+=4,t.read_shift(4)!=0},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Df},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Q1},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function(t,r,e){var n=t.l+r,a=l1(t),o=t.read_shift(1),s=[a];if(s[2]=o,e.cellFormula){var i=P4(t,n-t.l,e);s[1]=i}else t.l=n;return s}},427:{f:function(t,r,e){var n=t.l+r,a=[Bs(t)];if(e.cellFormula){var o=F4(t,n-t.l,e);a[1]=o,t.l=n}else t.l=n;return a}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function(t){var r={};return Bm.forEach(function(e){r[e]=Gn(t)}),r}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function(t,r){var e=t.l+r,n=Bs(t),a=Pf(t),o=qn(t),s=qn(t),i=qn(t);t.l=e;var c={rfx:n,relId:a,loc:o,display:i};return s&&(c.Tooltip=s),c}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Df},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:g4},633:{T:1},634:{T:-1},635:{T:1,f:function(t){var r={};r.iauthor=t.read_shift(4);var e=Bs(t);return r.rfx=e.s,r.ref=nr(e.s),t.l+=16,r}},636:{T:-1},637:{f:Zw},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function(t,r){return t.l+=10,{name:qn(t)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},uh={6:{f:nh},10:{f:os},12:{f:pn},13:{f:pn},14:{f:sn},15:{f:sn},16:{f:Gn},17:{f:sn},18:{f:sn},19:{f:pn},20:{f:X1},21:{f:X1},23:{f:Q1},24:{f:J1},25:{f:sn},26:{},27:{},28:{f:function(t,r,e){return function(n,a,o){if(!(o.biff<8)){var s=n.read_shift(2),i=n.read_shift(2),c=n.read_shift(2),l=n.read_shift(2),u=Hs(n,0,o);return o.biff<8&&n.read_shift(1),[{r:s,c:i},u,l,c]}}(t,0,e)}},29:{},34:{f:sn},35:{f:Z1},38:{f:Gn},39:{f:Gn},40:{f:Gn},41:{f:Gn},42:{f:sn},43:{f:sn},47:{f:function(t,r,e){var n={Type:e.biff>=8?t.read_shift(2):0};return n.Type?$3(t,r-2,n):function(a,o,s,i){var c={key:pn(a),verificationBytes:pn(a)};s.password&&(c.verifier=Kf(s.password)),i.valid=c.verificationBytes===c.verifier,i.valid&&(i.insitu=V3(s.password))}(t,e.biff,e,n),n}},49:{f:function(t,r,e){var n={dyHeight:t.read_shift(2),fl:t.read_shift(2)};switch(e&&e.biff||8){case 2:break;case 3:case 4:t.l+=2;break;default:t.l+=10}return n.name=_c(t,0,e),n}},51:{f:pn},60:{},61:{f:function(t){return{Pos:[t.read_shift(2),t.read_shift(2)],Dim:[t.read_shift(2),t.read_shift(2)],Flags:t.read_shift(2),CurTab:t.read_shift(2),FirstTab:t.read_shift(2),Selected:t.read_shift(2),TabRatio:t.read_shift(2)}}},64:{f:sn},65:{f:function(){}},66:{f:pn},77:{},80:{},81:{},82:{},85:{f:pn},89:{},90:{},91:{},92:{f:function(t,r,e){if(e.enc)return t.l+=r,"";var n=t.l,a=Hs(t,0,e);return t.read_shift(r+n-t.l),a}},93:{f:function(t,r,e){if(e&&e.biff<8)return function(o,s,i){o.l+=4;var c=o.read_shift(2),l=o.read_shift(2),u=o.read_shift(2);o.l+=2,o.l+=2,o.l+=2,o.l+=2,o.l+=2,o.l+=2,o.l+=2,o.l+=2,o.l+=2,o.l+=6,s-=36;var f=[];return f.push((_3[c]||$n)(o,s,i)),{cmo:[l,c,u],ft:f}}(t,r,e);var n=$1(t),a=function(o,s){for(var i=o.l+s,c=[];o.l<i;){var l=o.read_shift(2);o.l-=2;try{c.push(v3[l](o,i-o.l))}catch(u){return o.l=i,c}}return o.l!=i&&(o.l=i),c}(t,r-22,n[1]);return{cmo:n,ft:a}}},94:{},95:{f:sn},96:{},97:{},99:{f:sn},125:{f:em},128:{f:function(t){t.l+=4;var r=[t.read_shift(2),t.read_shift(2)];if(r[0]!==0&&r[0]--,r[1]!==0&&r[1]--,r[0]>7||r[1]>7)throw new Error("Bad Gutters: "+r.join("|"));return r}},129:{f:function(t,r,e){var n=e&&e.biff==8||r==2?t.read_shift(2):(t.l+=r,0);return{fDialog:16&n,fBelow:64&n,fRight:128&n}}},130:{f:pn},131:{f:sn},132:{f:sn},133:{f:function(t,r,e){var n=t.read_shift(4),a=3&t.read_shift(1),o=t.read_shift(1);switch(o){case 0:o="Worksheet";break;case 1:o="Macrosheet";break;case 2:o="Chartsheet";break;case 6:o="VBAModule"}var s=_c(t,0,e);return s.length===0&&(s="Sheet1"),{pos:n,hs:a,dt:o,name:s}}},134:{},140:{f:function(t){var r,e=[0,0];return r=t.read_shift(2),e[0]=d1[r]||r,r=t.read_shift(2),e[1]=d1[r]||r,e}},141:{f:pn},144:{},146:{f:function(t){for(var r=t.read_shift(2),e=[];r-- >0;)e.push(U1(t));return e}},151:{},152:{},153:{},154:{},155:{},156:{f:pn},157:{},158:{},160:{f:T3},161:{f:function(t,r){var e={};return r<32||(t.l+=16,e.header=Gn(t),e.footer=Gn(t),t.l+=2),e}},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:function(t,r){for(var e=t.l+r-2,n=t.read_shift(2),a=t.read_shift(2),o=[];t.l<e;)o.push(H1(t));if(t.l!==e)throw new Error("MulRK read error");var s=t.read_shift(2);if(o.length!=s-a+1)throw new Error("MulRK length mismatch");return{r:n,c:a,C:s,rkrec:o}}},190:{f:function(t,r){for(var e=t.l+r-2,n=t.read_shift(2),a=t.read_shift(2),o=[];t.l<e;)o.push(t.read_shift(2));if(t.l!==e)throw new Error("MulBlank read error");var s=t.read_shift(2);if(o.length!=s-a+1)throw new Error("MulBlank length mismatch");return{r:n,c:a,C:s,ixfe:o}}},193:{f:os},197:{},198:{},199:{},200:{},201:{},202:{f:sn},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:pn},220:{},221:{f:sn},222:{},224:{f:function(t,r,e){var n={};return n.ifnt=t.read_shift(2),n.numFmtId=t.read_shift(2),n.flags=t.read_shift(2),n.fStyle=n.flags>>2&1,n.data=function(a,o,s,i){var c={},l=a.read_shift(4),u=a.read_shift(4),f=a.read_shift(4),h=a.read_shift(2);return c.patternType=r3[f>>26],i.cellStyles&&(c.alc=7&l,c.fWrap=l>>3&1,c.alcV=l>>4&7,c.fJustLast=l>>7&1,c.trot=l>>8&255,c.cIndent=l>>16&15,c.fShrinkToFit=l>>20&1,c.iReadOrder=l>>22&2,c.fAtrNum=l>>26&1,c.fAtrFnt=l>>27&1,c.fAtrAlc=l>>28&1,c.fAtrBdr=l>>29&1,c.fAtrPat=l>>30&1,c.fAtrProt=l>>31&1,c.dgLeft=15&u,c.dgRight=u>>4&15,c.dgTop=u>>8&15,c.dgBottom=u>>12&15,c.icvLeft=u>>16&127,c.icvRight=u>>23&127,c.grbitDiag=u>>30&3,c.icvTop=127&f,c.icvBottom=f>>7&127,c.icvDiag=f>>14&127,c.dgDiag=f>>21&15,c.icvFore=127&h,c.icvBack=h>>7&127,c.fsxButton=h>>14&1),c}(t,0,n.fStyle,e),n}},225:{f:function(t,r){return r===0||t.read_shift(2),1200}},226:{f:os},227:{},229:{f:function(t,r){for(var e=[],n=t.read_shift(2);n--;)e.push(jl(t));return e}},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:function(t,r){for(var e=t.l+r,n=t.read_shift(4),a=t.read_shift(4),o=[],s=0;s!=a&&t.l<e;++s)o.push(u3(t));return o.Count=n,o.Unique=a,o}},253:{f:function(t){var r=ba(t);return r.isst=t.read_shift(4),r}},255:{f:function(t,r){var e={};return e.dsst=t.read_shift(2),t.l+=r-2,e}},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:F1},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:sn},353:{f:os},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:function(t,r,e){var n=t.l+r,a=t.read_shift(2),o=t.read_shift(2);if(e.sbcch=o,o==1025||o==14849)return[o,a];if(o<1||o>255)throw new Error("Unexpected SupBook type: "+o);for(var s=Us(t,o),i=[];n>t.l;)i.push(kc(t));return[o,a,s,i]}},431:{f:sn},432:{},433:{},434:{},437:{},438:{f:function(t,r,e){var n=t.l,a="";try{t.l+=4;var o=(e.lastobj||{cmo:[0,0]}).cmo[1];[0,5,7,11,12,14].indexOf(o)==-1?t.l+=6:function(u){var f=u.read_shift(1);u.l++;var h=u.read_shift(2);return u.l+=2,[f,h]}(t);var s=t.read_shift(2);t.read_shift(2),pn(t);var i=t.read_shift(2);t.l+=i;for(var c=1;c<t.lens.length-1;++c){if(t.l-n!=t.lens[c])throw new Error("TxO: bad continue record");var l=t[t.l];if((a+=Us(t,t.lens[c+1]-t.lens[c]-1)).length>=(l?s:2*s))break}if(a.length!==s&&a.length!==2*s)throw new Error("cchText: "+s+" != "+a.length);return t.l=n+r,{t:a}}catch(u){return t.l=n+r,{t:a}}}},439:{f:sn},440:{f:function(t,r){var e=jl(t);t.l+=16;var n=function(a,o){var s=a.l+o,i=a.read_shift(4);if(i!==2)throw new Error("Unrecognized streamVersion: "+i);var c=a.read_shift(2);a.l+=2;var l,u,f,h,d,p,m="";16&c&&(l=Fl(a,a.l)),128&c&&(u=Fl(a,a.l)),(257&c)==257&&(f=Fl(a,a.l)),(257&c)==1&&(h=h3(a,a.l)),8&c&&(m=Fl(a,a.l)),32&c&&(d=a.read_shift(16)),64&c&&(p=$f(a)),a.l=s;var v=u||f||h||"";v&&m&&(v+="#"+m),v||(v="#"+m),2&c&&v.charAt(0)=="/"&&v.charAt(1)!="/"&&(v="file://"+v);var b={Target:v};return d&&(b.guid=d),p&&(b.time=p),l&&(b.Tooltip=l),b}(t,r-24);return[e,n]}},441:{},442:{f:kc},443:{},444:{f:pn},445:{},446:{},448:{f:os},449:{f:function(t){return t.read_shift(2),t.read_shift(4)},r:2},450:{f:os},512:{f:G1},513:{f:S3},515:{f:function(t,r,e){e.biffguess&&e.biff==2&&(e.biff=5);var n=ba(t),a=Gn(t);return n.val=a,n}},516:{f:function(t,r,e){e.biffguess&&e.biff==2&&(e.biff=5),t.l;var n=ba(t);e.biff==2&&t.l++;var a=kc(t,t.l,e);return n.val=a,n}},517:{f:K1},519:{f:E3},520:{f:function(t){var r={};r.r=t.read_shift(2),r.c=t.read_shift(2),r.cnt=t.read_shift(2)-r.c;var e=t.read_shift(2);t.l+=4;var n=t.read_shift(1);return t.l+=3,7&n&&(r.level=7&n),32&n&&(r.hidden=!0),64&n&&(r.hpt=e/20),r}},523:{},545:{f:tm},549:{f:q1},566:{},574:{f:function(t,r,e){return e&&e.biff>=2&&e.biff<5?{}:{RTL:64&t.read_shift(2)}}},638:{f:function(t){var r=t.read_shift(2),e=t.read_shift(2),n=H1(t);return{r,c:e,ixfe:n[0],rknum:n[1]}}},659:{},1048:{},1054:{f:function(t,r,e){return[t.read_shift(2),Hs(t,0,e)]}},1084:{},1212:{f:function(t,r,e){var n=V1(t);t.l++;var a=t.read_shift(1);return[I4(t,r-=8,e),a,n]}},2048:{f:function(t,r){t.read_shift(2);var e=jl(t),n=t.read_shift((r-10)/2,"dbcs-cont");return[e,n=n.replace(ri,"")]}},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:Ll},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:os},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:function(t){t.l+=2;var r={cxfs:0,crc:0};return r.cxfs=t.read_shift(2),r.crc=t.read_shift(4),r},r:12},2173:{f:function(t,r){t.l,t.l+=2;var e=t.read_shift(2);t.l+=2;for(var n=t.read_shift(2),a=[];n-- >0;)a.push(p4(t,t.l));return{ixfe:e,ext:a}},r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:sn,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:function(t,r,e){if(!(e.biff<8)){var n=t.read_shift(2),a=t.read_shift(2);return[Us(t,n,e),Us(t,a,e)]}t.l+=r},r:12},2197:{},2198:{f:function(t,r,e){var n=t.l+r;if(t.read_shift(4)!==124226)if(e.cellStyles){var a,o=t.slice(t.l);t.l=n;try{a=Mp(o,{type:"array"})}catch(i){return}var s=Ei(a,"theme/theme/theme1.xml",!0);if(s)return vm(s,e)}else t.l=n},r:12},2199:{},2200:{},2201:{},2202:{f:function(t){return[t.read_shift(4)!==0,t.read_shift(4)!==0,t.read_shift(4)]},r:12},2203:{f:os},2204:{},2205:{},2206:{},2207:{},2211:{f:function(t){var r=function(e){var n=e.read_shift(2),a=e.read_shift(2);return e.l+=8,{type:n,flags:a}}(t);if(r.type!=2211)throw new Error("Invalid Future Record "+r.type);return t.read_shift(4)!==0}},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:pn},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:function(t,r,e){var n={area:!1};if(e.biff!=5)return t.l+=r,n;var a=t.read_shift(1);return t.l+=3,16&a&&(n.area=!0),n}},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:function(t){for(var r=t.read_shift(2),e=[];r-- >0;)e.push(U1(t));return e}},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:G1},1:{},2:{f:function(t){var r=ba(t);++t.l;var e=t.read_shift(2);return r.t="n",r.val=e,r}},3:{f:function(t){var r=ba(t);++t.l;var e=Gn(t);return r.t="n",r.val=e,r}},4:{f:function(t,r,e){e.biffguess&&e.biff==5&&(e.biff=2);var n=ba(t);++t.l;var a=Hs(t,0,e);return n.t="str",n.val=a,n}},5:{f:K1},7:{f:function(t){var r=t.read_shift(1);return r===0?(t.l++,""):t.read_shift(r,"sbcs-cont")}},8:{},9:{f:Ll},11:{},22:{f:pn},30:{f:y3},31:{},32:{},33:{f:tm},36:{},37:{f:q1},50:{f:function(t,r){t.l+=6,t.l+=2,t.l+=1,t.l+=3,t.l+=1,t.l+=r-13}},62:{},52:{},67:{},68:{f:pn},69:{},86:{},126:{},127:{f:function(t){var r=t.read_shift(2),e=t.read_shift(2),n=t.read_shift(4),a={fmt:r,env:e,len:n,data:t.slice(t.l,t.l+n)};return t.l+=n,a}},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:function(t,r,e){var n=t.l+r,a=ba(t),o=t.read_shift(2),s=Us(t,o,e);return t.l=n,a.t="str",a.val=s,a}},223:{},234:{},354:{},421:{},518:{f:nh},521:{f:Ll},536:{f:J1},547:{f:Z1},561:{},579:{},1030:{f:nh},1033:{f:Ll},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function ke(t,r,e,n){var a=r;if(!isNaN(a)){var o=n||(e||[]).length||0,s=t.next(4);s.write_shift(2,a),s.write_shift(2,o),o>0&&Of(e)&&t.push(e)}}function Fc(t,r,e){return t||(t=Kt(7)),t.write_shift(2,r),t.write_shift(2,e),t.write_shift(2,0),t.write_shift(1,0),t}function Z6(t,r,e,n){if(r.v!=null)switch(r.t){case"d":case"n":var a=r.t=="d"?Nn(Gr(r.v)):r.v;return void(a==(0|a)&&a>=0&&a<65536?ke(t,2,(o=e,s=n,i=a,c=Kt(9),Fc(c,o,s),c.write_shift(2,i),c)):ke(t,3,function(l,u,f){var h=Kt(15);return Fc(h,l,u),h.write_shift(8,f,"f"),h}(e,n,a)));case"b":case"e":return void ke(t,5,function(l,u,f,h){var d=Kt(9);return Fc(d,l,u),j1(f,h||"b",d),d}(e,n,r.v,r.t));case"s":case"str":return void ke(t,4,function(l,u,f){var h=Kt(8+2*f.length);return Fc(h,l,u),h.write_shift(1,f.length),h.write_shift(f.length,f,"sbcs"),h.l<h.length?h.slice(0,h.l):h}(e,n,(r.v||"").slice(0,255)))}var o,s,i,c;ke(t,1,Fc(null,e,n))}function J6(t,r){for(var e=r||{},n=mi(),a=0,o=0;o<t.SheetNames.length;++o)t.SheetNames[o]==e.sheet&&(a=o);if(a==0&&e.sheet&&t.SheetNames[0]!=e.sheet)throw new Error("Sheet not found: "+e.sheet);return ke(n,e.biff==4?1033:e.biff==3?521:9,qf(0,16,e)),function(s,i,c,l){var u,f=Array.isArray(i),h=Mr(i["!ref"]||"A1"),d="",p=[];if(h.e.c>255||h.e.r>16383){if(l.WTF)throw new Error("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:IV16384");h.e.c=Math.min(h.e.c,255),h.e.r=Math.min(h.e.c,16383),u=wr(h)}for(var m=h.s.r;m<=h.e.r;++m){d=Cn(m);for(var v=h.s.c;v<=h.e.c;++v){m===h.s.r&&(p[v]=dn(v)),u=p[v]+d;var b=f?(i[m]||[])[v]:i[u];b&&Z6(s,b,m,v)}}}(n,t.Sheets[t.SheetNames[a]],0,e),ke(n,10),n.end()}function Q6(t,r,e){ke(t,49,function(n,a){var o=n.name||"Arial",s=a&&a.biff==5,i=Kt(s?15+o.length:16+2*o.length);return i.write_shift(2,20*(n.sz||12)),i.write_shift(4,0),i.write_shift(2,400),i.write_shift(4,0),i.write_shift(2,0),i.write_shift(1,o.length),s||i.write_shift(1,1),i.write_shift((s?1:2)*o.length,o,s?"sbcs":"utf16le"),i}({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},e))}function t5(t,r){if(r){var e=0;r.forEach(function(n,a){++e<=256&&n&&ke(t,125,function(o,s){var i=Kt(12);i.write_shift(2,s),i.write_shift(2,s),i.write_shift(2,256*o.width),i.write_shift(2,0);var c=0;return o.hidden&&(c|=1),i.write_shift(1,c),c=o.level||0,i.write_shift(1,c),i.write_shift(2,0),i}($l(a,n),a))})}}function e5(t,r,e,n,a){var o=16+us(a.cellXfs,r,a);if(r.v!=null||r.bf)if(r.bf)ke(t,6,N4(r,e,n,0,o));else switch(r.t){case"d":case"n":ke(t,515,function(s,i,c,l){var u=Kt(14);return Ws(s,i,l,u),_o(c,u),u}(e,n,r.t=="d"?Nn(Gr(r.v)):r.v,o));break;case"b":case"e":ke(t,517,function(s,i,c,l,u,f){var h=Kt(8);return Ws(s,i,l,h),j1(c,f,h),h}(e,n,r.v,o,0,r.t));break;case"s":case"str":a.bookSST?ke(t,253,function(s,i,c,l){var u=Kt(10);return Ws(s,i,l,u),u.write_shift(4,c),u}(e,n,ah(a.Strings,r.v,a.revStrings),o)):ke(t,516,function(s,i,c,l,u){var f=!u||u.biff==8,h=Kt(+f+8+(1+f)*c.length);return Ws(s,i,l,h),h.write_shift(2,c.length),f&&h.write_shift(1,1),h.write_shift((1+f)*c.length,c,f?"utf16le":"sbcs"),h}(e,n,(r.v||"").slice(0,255),o,a));break;default:ke(t,513,Ws(e,n,o))}else ke(t,513,Ws(e,n,o))}function r5(t,r,e){var n,a,o,s=mi(),i=e.SheetNames[t],c=e.Sheets[i]||{},l=(e||{}).Workbook||{},u=(l.Sheets||[])[t]||{},f=Array.isArray(c),h=r.biff==8,d="",p=[],m=Mr(c["!ref"]||"A1"),v=h?65536:16384;if(m.e.c>255||m.e.r>=v){if(r.WTF)throw new Error("Range "+(c["!ref"]||"A1")+" exceeds format limit A1:IV16384");m.e.c=Math.min(m.e.c,255),m.e.r=Math.min(m.e.c,v-1)}ke(s,2057,qf(0,16,r)),ke(s,13,Bi(1)),ke(s,12,Bi(100)),ke(s,15,ii(!0)),ke(s,17,ii(!1)),ke(s,16,_o(.001)),ke(s,95,ii(!0)),ke(s,42,ii(!1)),ke(s,43,ii(!1)),ke(s,130,Bi(1)),ke(s,128,(a=[0,0],(o=Kt(8)).write_shift(4,0),o.write_shift(2,a[0]?a[0]+1:0),o.write_shift(2,a[1]?a[1]+1:0),o)),ke(s,131,ii(!1)),ke(s,132,ii(!1)),h&&t5(s,c["!cols"]),ke(s,512,function(x,C){var O=C.biff!=8&&C.biff?2:4,D=Kt(2*O+6);return D.write_shift(O,x.s.r),D.write_shift(O,x.e.r+1),D.write_shift(2,x.s.c),D.write_shift(2,x.e.c+1),D.write_shift(2,0),D}(m,r)),h&&(c["!links"]=[]);for(var b=m.s.r;b<=m.e.r;++b){d=Cn(b);for(var g=m.s.c;g<=m.e.c;++g){b===m.s.r&&(p[g]=dn(g)),n=p[g]+d;var y=f?(c[b]||[])[g]:c[n];y&&(e5(s,y,b,g,r),h&&y.l&&c["!links"].push([n,y.l]))}}var w=u.CodeName||u.name||i;return h&&ke(s,574,function(x){var C=Kt(18),O=1718;return x&&x.RTL&&(O|=64),C.write_shift(2,O),C.write_shift(4,0),C.write_shift(4,64),C.write_shift(4,0),C.write_shift(4,0),C}((l.Views||[])[0])),h&&(c["!merges"]||[]).length&&ke(s,229,function(x){var C=Kt(2+8*x.length);C.write_shift(2,x.length);for(var O=0;O<x.length;++O)W1(x[O],C);return C}(c["!merges"])),h&&function(x,C){for(var O=0;O<C["!links"].length;++O){var D=C["!links"][O];ke(x,440,k3(D)),D[1].Tooltip&&ke(x,2048,x3(D))}delete C["!links"]}(s,c),ke(s,442,L1(w)),h&&function(x,C){var O=Kt(19);O.write_shift(4,2151),O.write_shift(4,0),O.write_shift(4,0),O.write_shift(2,3),O.write_shift(1,1),O.write_shift(4,0),ke(x,2151,O),(O=Kt(39)).write_shift(4,2152),O.write_shift(4,0),O.write_shift(4,0),O.write_shift(2,3),O.write_shift(1,0),O.write_shift(4,0),O.write_shift(2,1),O.write_shift(4,4),O.write_shift(2,0),W1(Mr(C["!ref"]||"A1"),O),O.write_shift(4,4),ke(x,2152,O)}(s,c),ke(s,10),s.end()}function n5(t,r,e){var n,a=mi(),o=(t||{}).Workbook||{},s=o.Sheets||[],i=o.WBProps||{},c=e.biff==8,l=e.biff==5;ke(a,2057,qf(0,5,e)),e.bookType=="xla"&&ke(a,135),ke(a,225,c?Bi(1200):null),ke(a,193,function(y,w){w||(w=Kt(y));for(var x=0;x<y;++x)w.write_shift(1,0);return w}(2)),l&&ke(a,191),l&&ke(a,192),ke(a,226),ke(a,92,function(y,w){var x=!w||w.biff==8,C=Kt(x?112:54);for(C.write_shift(w.biff==8?2:1,7),x&&C.write_shift(1,0),C.write_shift(4,859007059),C.write_shift(4,5458548|(x?0:536870912));C.l<C.length;)C.write_shift(1,x?0:32);return C}(0,e)),ke(a,66,Bi(c?1200:1252)),c&&ke(a,353,Bi(0)),c&&ke(a,448),ke(a,317,function(y){for(var w=Kt(2*y),x=0;x<y;++x)w.write_shift(2,x+1);return w}(t.SheetNames.length)),c&&t.vbaraw&&ke(a,211),c&&t.vbaraw&&ke(a,442,L1(i.CodeName||"ThisWorkbook")),ke(a,156,Bi(17)),ke(a,25,ii(!1)),ke(a,18,ii(!1)),ke(a,19,Bi(0)),c&&ke(a,431,ii(!1)),c&&ke(a,444,Bi(0)),ke(a,61,((n=Kt(18)).write_shift(2,0),n.write_shift(2,0),n.write_shift(2,29280),n.write_shift(2,17600),n.write_shift(2,56),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,1),n.write_shift(2,500),n)),ke(a,64,ii(!1)),ke(a,141,Bi(0)),ke(a,34,ii(function(y){return y.Workbook&&y.Workbook.WBProps&&Vr(y.Workbook.WBProps.date1904)?"true":"false"}(t)=="true")),ke(a,14,ii(!0)),c&&ke(a,439,ii(!1)),ke(a,218,Bi(0)),Q6(a,0,e),function(y,w,x){w&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(C){for(var O=C[0];O<=C[1];++O)w[O]!=null&&ke(y,1054,b3(O,w[O],x))})}(a,t.SSF,e),function(y,w){for(var x=0;x<16;++x)ke(y,224,Y1({numFmtId:0,style:!0},0,w));w.cellXfs.forEach(function(C){ke(y,224,Y1(C,0,w))})}(a,e),c&&ke(a,352,ii(!1));var u=a.end(),f=mi();c&&ke(f,140,function(y){return y||(y=Kt(4)),y.write_shift(2,1),y.write_shift(2,1),y}()),c&&e.Strings&&function(y,w,x,C){var O=C||(x||[]).length||0;if(O<=8224)return ke(y,w,x,O);var D=w;if(!isNaN(D)){for(var j=x.parts||[],U=0,L=0,V=0;V+(j[U]||8224)<=8224;)V+=j[U]||8224,U++;var A=y.next(4);for(A.write_shift(2,D),A.write_shift(2,V),y.push(x.slice(L,L+V)),L+=V;L<O;){for((A=y.next(4)).write_shift(2,60),V=0;V+(j[U]||8224)<=8224;)V+=j[U]||8224,U++;A.write_shift(2,V),y.push(x.slice(L,L+V)),L+=V}}}(f,252,function(y,w){var x=Kt(8);x.write_shift(4,y.Count),x.write_shift(4,y.Unique);for(var C=[],O=0;O<y.length;++O)C[O]=f3(y[O]);var D=En([x].concat(C));return D.parts=[x.length].concat(C.map(function(j){return j.length})),D}(e.Strings)),ke(f,10);var h=f.end(),d=mi(),p=0,m=0;for(m=0;m<t.SheetNames.length;++m)p+=(c?12:11)+(c?2:1)*t.SheetNames[m].length;var v=u.length+p+h.length;for(m=0;m<t.SheetNames.length;++m)ke(d,133,g3({pos:v,hs:(s[m]||{}).Hidden||0,dt:0,name:t.SheetNames[m]},e)),v+=r[m].length;var b=d.end();if(p!=b.length)throw new Error("BS8 "+p+" != "+b.length);var g=[];return u.length&&g.push(u),b.length&&g.push(b),h.length&&g.push(h),En(g)}function Km(t,r){for(var e=0;e<=t.SheetNames.length;++e){var n=t.Sheets[t.SheetNames[e]];n&&n["!ref"]&&Fi(n["!ref"]).e.c>255&&typeof console!="undefined"&&console.error&&console.error("Worksheet '"+t.SheetNames[e]+"' extends beyond column IV (255). Data may be lost.")}var a=r||{};switch(a.biff||2){case 8:case 5:return function(o,s){var i=s||{},c=[];o&&!o.SSF&&(o.SSF=Wr(Qe)),o&&o.SSF&&(bo(),Tl(o.SSF),i.revssf=Cl(o.SSF),i.revssf[o.SSF[65535]]=0,i.ssf=o.SSF),i.Strings=[],i.Strings.Count=0,i.Strings.Unique=0,gh(i),i.cellXfs=[],us(i.cellXfs,{},{revssf:{General:0}}),o.Props||(o.Props={});for(var l=0;l<o.SheetNames.length;++l)c[c.length]=r5(l,i,o);return c.unshift(n5(o,c,i)),En(c)}(t,r);case 4:case 3:case 2:return J6(t,r)}throw new Error("invalid type "+a.bookType+" for BIFF")}function Xm(t,r){var e=r||{},n=e.dense?[]:{},a=(t=t.replace(/<!--.*?-->/g,"")).match(/<table/i);if(!a)throw new Error("Invalid HTML: could not find <table>");var o=t.match(/<\/table/i),s=a.index,i=o&&o.index||t.length,c=Pw(t.slice(s,i),/(:?<tr[^>]*>)/i,"<tr>"),l=-1,u=0,f=0,h=0,d={s:{r:1e7,c:1e7},e:{r:0,c:0}},p=[];for(s=0;s<c.length;++s){var m=c[s].trim(),v=m.slice(0,3).toLowerCase();if(v!="<tr"){if(v=="<td"||v=="<th"){var b=m.split(/<\/t[dh]>/i);for(i=0;i<b.length;++i){var g=b[i].trim();if(g.match(/<t[dh]/i)){for(var y=g,w=0;y.charAt(0)=="<"&&(w=y.indexOf(">"))>-1;)y=y.slice(w+1);for(var x=0;x<p.length;++x){var C=p[x];C.s.c==u&&C.s.r<l&&l<=C.e.r&&(u=C.e.c+1,x=-1)}var O=tr(g.slice(0,g.indexOf(">")));h=O.colspan?+O.colspan:1,((f=+O.rowspan)>1||h>1)&&p.push({s:{r:l,c:u},e:{r:l+(f||1)-1,c:u+h-1}});var D=O.t||O["data-t"]||"";if(y.length)if(y=Bw(y),d.s.r>l&&(d.s.r=l),d.e.r<l&&(d.e.r=l),d.s.c>u&&(d.s.c=u),d.e.c<u&&(d.e.c=u),y.length){var j={t:"s",v:y};e.raw||!y.trim().length||D=="s"||(y==="TRUE"?j={t:"b",v:!0}:y==="FALSE"?j={t:"b",v:!1}:isNaN(Fa(y))?isNaN(lc(y).getDate())||(j={t:"d",v:Gr(y)},e.cellDates||(j={t:"n",v:Nn(j.v)}),j.z=e.dateNF||Qe[14]):j={t:"n",v:Fa(y)}),e.dense?(n[l]||(n[l]=[]),n[l][u]=j):n[nr({r:l,c:u})]=j,u+=h}else u+=h;else u+=h}}}}else{if(++l,e.sheetRows&&e.sheetRows<=l){--l;break}u=0}}return n["!ref"]=wr(d),p.length&&(n["!merges"]=p),n}function i5(t,r,e,n){for(var a=t["!merges"]||[],o=[],s=r.s.c;s<=r.e.c;++s){for(var i=0,c=0,l=0;l<a.length;++l)if(!(a[l].s.r>e||a[l].s.c>s||a[l].e.r<e||a[l].e.c<s)){if(a[l].s.r<e||a[l].s.c<s){i=-1;break}i=a[l].e.r-a[l].s.r+1,c=a[l].e.c-a[l].s.c+1;break}if(!(i<0)){var u=nr({r:e,c:s}),f=n.dense?(t[e]||[])[s]:t[u],h=f&&f.v!=null&&(f.h||Ef(f.w||(ss(f),f.w)||""))||"",d={};i>1&&(d.rowspan=i),c>1&&(d.colspan=c),n.editable?h='<span contenteditable="true">'+h+"</span>":f&&(d["data-t"]=f&&f.t||"z",f.v!=null&&(d["data-v"]=f.v),f.z!=null&&(d["data-z"]=f.z),f.l&&(f.l.Target||"#").charAt(0)!="#"&&(h='<a href="'+f.l.Target+'">'+h+"</a>")),d.id=(n.id||"sjs")+"-"+u,o.push(we("td",h,d))}}return"<tr>"+o.join("")+"</tr>"}var a5='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',s5="</body></html>",o5={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function Zm(t,r){var e,n,a,o,s,i,c,l,u=r||{},f=Rf(t),h=[],d={name:""},p="",m=0,v={},b=[],g=u.dense?[]:{},y={value:""},w="",x=0,C=[],O=-1,D=-1,j={s:{r:1e6,c:1e7},e:{r:0,c:0}},U=0,L={},V=[],A={},N=[],k=1,S=1,E=[],T={Names:[]},R={},F=["",""],I=[],B={},P="",H=0,Z=!1,Y=!1,dt=0;for(dc.lastIndex=0,f=f.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");s=dc.exec(f);)switch(s[3]=s[3].replace(/_.*$/,"")){case"table":case"工作表":s[1]==="/"?(j.e.c>=j.s.c&&j.e.r>=j.s.r?g["!ref"]=wr(j):g["!ref"]="A1:A1",u.sheetRows>0&&u.sheetRows<=j.e.r&&(g["!fullref"]=g["!ref"],j.e.r=u.sheetRows-1,g["!ref"]=wr(j)),V.length&&(g["!merges"]=V),N.length&&(g["!rows"]=N),a.name=a.名称||a.name,typeof JSON!="undefined"&&JSON.stringify(a),b.push(a.name),v[a.name]=g,Y=!1):s[0].charAt(s[0].length-2)!=="/"&&(a=tr(s[0],!1),O=D=-1,j.s.r=j.s.c=1e7,j.e.r=j.e.c=0,g=u.dense?[]:{},V=[],N=[],Y=!0);break;case"table-row-group":s[1]==="/"?--U:++U;break;case"table-row":case"行":if(s[1]==="/"){O+=k,k=1;break}if((o=tr(s[0],!1)).行号?O=o.行号-1:O==-1&&(O=0),(k=+o["number-rows-repeated"]||1)<10)for(dt=0;dt<k;++dt)U>0&&(N[O+dt]={level:U});D=-1;break;case"covered-table-cell":s[1]!=="/"&&++D,u.sheetStubs&&(u.dense?(g[O]||(g[O]=[]),g[O][D]={t:"z"}):g[nr({r:O,c:D})]={t:"z"}),w="",C=[];break;case"table-cell":case"数据":if(s[0].charAt(s[0].length-2)==="/")++D,y=tr(s[0],!1),S=parseInt(y["number-columns-repeated"]||"1",10),i={t:"z",v:null},y.formula&&u.cellFormula!=0&&(i.f=Pm(Tr(y.formula))),(y.数据类型||y["value-type"])=="string"&&(i.t="s",i.v=Tr(y["string-value"]||""),u.dense?(g[O]||(g[O]=[]),g[O][D]=i):g[nr({r:O,c:D})]=i),D+=S-1;else if(s[1]!=="/"){w="",x=0,C=[],S=1;var gt=k?O+k-1:O;if(++D>j.e.c&&(j.e.c=D),D<j.s.c&&(j.s.c=D),O<j.s.r&&(j.s.r=O),gt>j.e.r&&(j.e.r=gt),I=[],B={},i={t:(y=tr(s[0],!1)).数据类型||y["value-type"],v:null},u.cellFormula)if(y.formula&&(y.formula=Tr(y.formula)),y["number-matrix-columns-spanned"]&&y["number-matrix-rows-spanned"]&&(A={s:{r:O,c:D},e:{r:O+(parseInt(y["number-matrix-rows-spanned"],10)||0)-1,c:D+(parseInt(y["number-matrix-columns-spanned"],10)||0)-1}},i.F=wr(A),E.push([A,i.F])),y.formula)i.f=Pm(y.formula);else for(dt=0;dt<E.length;++dt)O>=E[dt][0].s.r&&O<=E[dt][0].e.r&&D>=E[dt][0].s.c&&D<=E[dt][0].e.c&&(i.F=E[dt][1]);switch((y["number-columns-spanned"]||y["number-rows-spanned"])&&(A={s:{r:O,c:D},e:{r:O+(parseInt(y["number-rows-spanned"],10)||0)-1,c:D+(parseInt(y["number-columns-spanned"],10)||0)-1}},V.push(A)),y["number-columns-repeated"]&&(S=parseInt(y["number-columns-repeated"],10)),i.t){case"boolean":i.t="b",i.v=Vr(y["boolean-value"]);break;case"float":case"percentage":case"currency":i.t="n",i.v=parseFloat(y.value);break;case"date":i.t="d",i.v=Gr(y["date-value"]),u.cellDates||(i.t="n",i.v=Nn(i.v)),i.z="m/d/yy";break;case"time":i.t="n",i.v=Ow(y["time-value"])/86400,u.cellDates&&(i.t="d",i.v=Rl(i.v)),i.z="HH:MM:SS";break;case"number":i.t="n",i.v=parseFloat(y.数据数值);break;default:if(i.t!=="string"&&i.t!=="text"&&i.t)throw new Error("Unsupported value type "+i.t);i.t="s",y["string-value"]!=null&&(w=Tr(y["string-value"]),C=[])}}else{if(Z=!1,i.t==="s"&&(i.v=w||"",C.length&&(i.R=C),Z=x==0),R.Target&&(i.l=R),I.length>0&&(i.c=I,I=[]),w&&u.cellText!==!1&&(i.w=w),Z&&(i.t="z",delete i.v),(!Z||u.sheetStubs)&&!(u.sheetRows&&u.sheetRows<=O))for(var bt=0;bt<k;++bt){if(S=parseInt(y["number-columns-repeated"]||"1",10),u.dense)for(g[O+bt]||(g[O+bt]=[]),g[O+bt][D]=bt==0?i:Wr(i);--S>0;)g[O+bt][D+S]=Wr(i);else for(g[nr({r:O+bt,c:D})]=i;--S>0;)g[nr({r:O+bt,c:D+S})]=Wr(i);j.e.c<=D&&(j.e.c=D)}D+=(S=parseInt(y["number-columns-repeated"]||"1",10))-1,S=0,i={},w="",C=[]}R={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(s[1]==="/"){if((e=h.pop())[0]!==s[3])throw"Bad state: "+e}else s[0].charAt(s[0].length-2)!=="/"&&h.push([s[3],!0]);break;case"annotation":if(s[1]==="/"){if((e=h.pop())[0]!==s[3])throw"Bad state: "+e;B.t=w,C.length&&(B.R=C),B.a=P,I.push(B)}else s[0].charAt(s[0].length-2)!=="/"&&h.push([s[3],!1]);P="",H=0,w="",x=0,C=[];break;case"creator":s[1]==="/"?P=f.slice(H,s.index):H=s.index+s[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if(s[1]==="/"){if((e=h.pop())[0]!==s[3])throw"Bad state: "+e}else s[0].charAt(s[0].length-2)!=="/"&&h.push([s[3],!1]);w="",x=0,C=[];break;case"scientific-number":case"currency-symbol":case"currency-style":case"script":case"libraries":case"automatic-styles":case"default-style":case"page-layout":case"style":case"map":case"font-face":case"paragraph-properties":case"table-properties":case"table-column-properties":case"table-row-properties":case"table-cell-properties":case"fraction":case"boolean-style":case"boolean":case"text-style":case"text-content":case"text-properties":case"embedded-text":case"body":case"电子表格":case"forms":case"table-column":case"table-header-rows":case"table-rows":case"table-column-group":case"table-header-columns":case"table-columns":case"null-date":case"graphic-properties":case"calculation-settings":case"named-expressions":case"label-range":case"label-ranges":case"named-expression":case"sort":case"sort-by":case"sort-groups":case"tab":case"line-break":case"span":case"s":case"date":case"object":case"title":case"标题":case"desc":case"binary-data":case"table-source":case"scenario":case"iteration":case"content-validations":case"content-validation":case"help-message":case"error-message":case"database-ranges":case"filter":case"filter-and":case"filter-or":case"filter-condition":case"list-level-style-bullet":case"list-level-style-number":case"list-level-properties":case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":case"event-listener":case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":case"config-item":case"page-number":case"page-count":case"time":case"cell-range-source":case"detective":case"operation":case"highlighted-range":case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":case"rect":case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":case"properties":case"property":case"table-protection":case"data-pilot-grand-total":case"office-document-common-attrs":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if(s[1]==="/"){if(L[d.name]=p,(e=h.pop())[0]!==s[3])throw"Bad state: "+e}else s[0].charAt(s[0].length-2)!=="/"&&(p="",d=tr(s[0],!1),h.push([s[3],!0]));break;case"number":case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(h[h.length-1][0]){case"time-style":case"date-style":n=tr(s[0],!1),p+=o5[s[3]][n.style==="long"?1:0]}break;case"text":if(s[0].slice(-2)==="/>")break;if(s[1]==="/")switch(h[h.length-1][0]){case"number-style":case"date-style":case"time-style":p+=f.slice(m,s.index)}else m=s.index+s[0].length;break;case"named-range":F=ih((n=tr(s[0],!1))["cell-range-address"]);var Q={Name:n.name,Ref:F[0]+"!"+F[1]};Y&&(Q.Sheet=b.length),T.Names.push(Q);break;case"p":case"文本串":if(["master-styles"].indexOf(h[h.length-1][0])>-1)break;if(s[1]!=="/"||y&&y["string-value"])tr(s[0],!1),x=s.index+s[0].length;else{var q=(c=f.slice(x,s.index),l=void 0,l=c.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,function(et,_t){return Array(parseInt(_t,10)+1).join(" ")}).replace(/<text:tab[^>]*\/>/g," ").replace(/<text:line-break\/>/g,`
|
||
`),[Tr(l.replace(/<[^>]*>/g,""))]);w=(w.length>0?w+`
|
||
`:"")+q[0]}break;case"database-range":if(s[1]==="/")break;try{v[(F=ih(tr(s[0])["target-range-address"]))[0]]["!autofilter"]={ref:F[1]}}catch(et){}break;case"a":if(s[1]!=="/"){if(!(R=tr(s[0],!1)).href)break;R.Target=Tr(R.href),delete R.href,R.Target.charAt(0)=="#"&&R.Target.indexOf(".")>-1?(F=ih(R.Target.slice(1)),R.Target="#"+F[0]+"!"+F[1]):R.Target.match(/^\.\.[\\\/]/)&&(R.Target=R.Target.slice(3))}break;default:switch(s[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(u.WTF)throw new Error(s)}}var tt={Sheets:v,SheetNames:b,Workbook:T};return u.bookSheets&&delete tt.Sheets,tt}function Jm(t,r){r=r||{},Di(t,"META-INF/manifest.xml")&&function(a,o){for(var s,i,c=Rf(a);s=dc.exec(c);)switch(s[3]){case"manifest":break;case"file-entry":if((i=tr(s[0],!1)).path=="/"&&i.type!==i3)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(o&&o.WTF)throw s}}(hn(t,"META-INF/manifest.xml"),r);var e=Ei(t,"content.xml");if(!e)throw new Error("Missing content.xml in ODS / UOF file");var n=Zm(Lr(e),r);return Di(t,"meta.xml")&&(n.Props=b1(hn(t,"meta.xml"))),n}function Qm(t,r){return Zm(t,r)}var c5=function(){var t=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),r="<office:document-styles "+hc({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+t+"</office:document-styles>";return function(){return an+r}}(),tv=function(){var t=` <table:table-cell />
|
||
`,r=function(e,n,a){var o=[];o.push(' <table:table table:name="'+Nr(n.SheetNames[a])+`" table:style-name="ta1">
|
||
`);var s=0,i=0,c=Fi(e["!ref"]||"A1"),l=e["!merges"]||[],u=0,f=Array.isArray(e);if(e["!cols"])for(i=0;i<=c.e.c;++i)o.push(" <table:table-column"+(e["!cols"][i]?' table:style-name="co'+e["!cols"][i].ods+'"':"")+`></table:table-column>
|
||
`);var h="",d=e["!rows"]||[];for(s=0;s<c.s.r;++s)h=d[s]?' table:style-name="ro'+d[s].ods+'"':"",o.push(" <table:table-row"+h+`></table:table-row>
|
||
`);for(;s<=c.e.r;++s){for(h=d[s]?' table:style-name="ro'+d[s].ods+'"':"",o.push(" <table:table-row"+h+`>
|
||
`),i=0;i<c.s.c;++i)o.push(t);for(;i<=c.e.c;++i){var p=!1,m={},v="";for(u=0;u!=l.length;++u)if(!(l[u].s.c>i||l[u].s.r>s||l[u].e.c<i||l[u].e.r<s)){l[u].s.c==i&&l[u].s.r==s||(p=!0),m["table:number-columns-spanned"]=l[u].e.c-l[u].s.c+1,m["table:number-rows-spanned"]=l[u].e.r-l[u].s.r+1;break}if(p)o.push(` <table:covered-table-cell/>
|
||
`);else{var b=nr({r:s,c:i}),g=f?(e[s]||[])[i]:e[b];if(g&&g.f&&(m["table:formula"]=Nr(("of:="+g.f.replace(th,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")),g.F&&g.F.slice(0,b.length)==b)){var y=Fi(g.F);m["table:number-matrix-columns-spanned"]=y.e.c-y.s.c+1,m["table:number-matrix-rows-spanned"]=y.e.r-y.s.r+1}if(g){switch(g.t){case"b":v=g.v?"TRUE":"FALSE",m["office:value-type"]="boolean",m["office:boolean-value"]=g.v?"true":"false";break;case"n":v=g.w||String(g.v||0),m["office:value-type"]="float",m["office:value"]=g.v||0;break;case"s":case"str":v=g.v==null?"":g.v,m["office:value-type"]="string";break;case"d":v=g.w||Gr(g.v).toISOString(),m["office:value-type"]="date",m["office:date-value"]=Gr(g.v).toISOString(),m["table:style-name"]="ce1";break;default:o.push(t);continue}var w=Nr(v).replace(/ +/g,function(C){return'<text:s text:c="'+C.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>");if(g.l&&g.l.Target){var x=g.l.Target;(x=x.charAt(0)=="#"?"#"+x.slice(1).replace(/\./,"!"):x).charAt(0)=="#"||x.match(/^\w+:/)||(x="../"+x),w=we("text:a",w,{"xlink:href":x.replace(/&/g,"&")})}o.push(" "+we("table:table-cell",we("text:p",w,{}),m)+`
|
||
`)}else o.push(t)}}o.push(` </table:table-row>
|
||
`)}return o.push(` </table:table>
|
||
`),o.join("")};return function(e,n){var a=[an],o=hc({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),s=hc({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});n.bookType=="fods"?(a.push("<office:document"+o+s+`>
|
||
`),a.push(g1().replace(/office:document-meta/g,"office:meta"))):a.push("<office:document-content"+o+`>
|
||
`),function(c,l){c.push(` <office:automatic-styles>
|
||
`),c.push(` <number:date-style style:name="N37" number:automatic-order="true">
|
||
`),c.push(` <number:month number:style="long"/>
|
||
`),c.push(` <number:text>/</number:text>
|
||
`),c.push(` <number:day number:style="long"/>
|
||
`),c.push(` <number:text>/</number:text>
|
||
`),c.push(` <number:year/>
|
||
`),c.push(` </number:date-style>
|
||
`);var u=0;l.SheetNames.map(function(h){return l.Sheets[h]}).forEach(function(h){if(h&&h["!cols"]){for(var d=0;d<h["!cols"].length;++d)if(h["!cols"][d]){var p=h["!cols"][d];if(p.width==null&&p.wpx==null&&p.wch==null)continue;cs(p),p.ods=u;var m=h["!cols"][d].wpx+"px";c.push(' <style:style style:name="co'+u+`" style:family="table-column">
|
||
`),c.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+m+`"/>
|
||
`),c.push(` </style:style>
|
||
`),++u}}});var f=0;l.SheetNames.map(function(h){return l.Sheets[h]}).forEach(function(h){if(h&&h["!rows"]){for(var d=0;d<h["!rows"].length;++d)if(h["!rows"][d]){h["!rows"][d].ods=f;var p=h["!rows"][d].hpx+"px";c.push(' <style:style style:name="ro'+f+`" style:family="table-row">
|
||
`),c.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+p+`"/>
|
||
`),c.push(` </style:style>
|
||
`),++f}}}),c.push(` <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
|
||
`),c.push(` <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
|
||
`),c.push(` </style:style>
|
||
`),c.push(` <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
|
||
`),c.push(` </office:automatic-styles>
|
||
`)}(a,e),a.push(` <office:body>
|
||
`),a.push(` <office:spreadsheet>
|
||
`);for(var i=0;i!=e.SheetNames.length;++i)a.push(r(e.Sheets[e.SheetNames[i]],e,i));return a.push(` </office:spreadsheet>
|
||
`),a.push(` </office:body>
|
||
`),n.bookType=="fods"?a.push("</office:document>"):a.push("</office:document-content>"),a.join("")}}();function ev(t,r){if(r.bookType=="fods")return tv(t,r);var e=xf(),n="",a=[],o=[];return fr(e,n="mimetype","application/vnd.oasis.opendocument.spreadsheet"),fr(e,n="content.xml",tv(t,r)),a.push([n,"text/xml"]),o.push([n,"ContentFile"]),fr(e,n="styles.xml",c5(t,r)),a.push([n,"text/xml"]),o.push([n,"StylesFile"]),fr(e,n="meta.xml",an+g1()),a.push([n,"text/xml"]),o.push([n,"MetadataFile"]),fr(e,n="manifest.rdf",function(s){var i,c,l=[an];l.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
||
`);for(var u=0;u!=s.length;++u)l.push(v1(s[u][0],s[u][1])),l.push((i="",c=s[u][0],[' <rdf:Description rdf:about="'+i+`">
|
||
`,' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+c+`"/>
|
||
`,` </rdf:Description>
|
||
`].join("")));return l.push(v1("","Document","pkg")),l.push("</rdf:RDF>"),l.join("")}(o)),a.push([n,"application/rdf+xml"]),fr(e,n="META-INF/manifest.xml",function(s){var i=[an];i.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
|
||
`),i.push(` <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
|
||
`);for(var c=0;c<s.length;++c)i.push(' <manifest:file-entry manifest:full-path="'+s[c][0]+'" manifest:media-type="'+s[c][1]+`"/>
|
||
`);return i.push("</manifest:manifest>"),i.join("")}(a)),e}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function qs(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function fh(t){return typeof TextDecoder!="undefined"?new TextDecoder().decode(t):Lr(is(t))}function l5(t){return typeof TextEncoder!="undefined"?new TextEncoder().encode(t):Ti(ga(t))}function fs(t){var r=t.reduce(function(a,o){return a+o.length},0),e=new Uint8Array(r),n=0;return t.forEach(function(a){e.set(a,n),n+=a.length}),e}function rv(t){return 16843009*((t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135)>>>24}function jc(t,r){var e=r?r[0]:0,n=127&t[e];t:if(t[e++]>=128&&(n|=(127&t[e])<<7,t[e++]<128||(n|=(127&t[e])<<14,t[e++]<128)||(n|=(127&t[e])<<21,t[e++]<128)||(n+=(127&t[e])*Math.pow(2,28),++e,t[e++]<128)||(n+=(127&t[e])*Math.pow(2,35),++e,t[e++]<128)||(n+=(127&t[e])*Math.pow(2,42),++e,t[e++]<128)))break t;return r&&(r[0]=e),n}function Dr(t){var r=new Uint8Array(7);r[0]=127&t;var e=1;t:if(t>127){if(r[e-1]|=128,r[e]=t>>7&127,++e,t<=16383||(r[e-1]|=128,r[e]=t>>14&127,++e,t<=2097151)||(r[e-1]|=128,r[e]=t>>21&127,++e,t<=268435455)||(r[e-1]|=128,r[e]=t/256>>>21&127,++e,t<=34359738367)||(r[e-1]|=128,r[e]=t/65536>>>21&127,++e,t<=4398046511103))break t;r[e-1]|=128,r[e]=t/16777216>>>21&127,++e}return r.slice(0,e)}function Jr(t){var r=0,e=127&t[r];t:if(t[r++]>=128){if(e|=(127&t[r])<<7,t[r++]<128||(e|=(127&t[r])<<14,t[r++]<128)||(e|=(127&t[r])<<21,t[r++]<128))break t;e|=(127&t[r])<<28}return e}function Er(t){for(var r=[],e=[0];e[0]<t.length;){var n,a=e[0],o=jc(t,e),s=7&o,i=0;if((o=Math.floor(o/8))==0)break;switch(s){case 0:for(var c=e[0];t[e[0]++]>=128;);n=t.slice(c,e[0]);break;case 5:i=4,n=t.slice(e[0],e[0]+i),e[0]+=i;break;case 1:i=8,n=t.slice(e[0],e[0]+i),e[0]+=i;break;case 2:i=jc(t,e),n=t.slice(e[0],e[0]+i),e[0]+=i;break;default:throw new Error("PB Type ".concat(s," for Field ").concat(o," at offset ").concat(a))}var l={data:n,type:s};r[o]==null?r[o]=[l]:r[o].push(l)}return r}function Fn(t){var r=[];return t.forEach(function(e,n){e.forEach(function(a){a.data&&(r.push(Dr(8*n+a.type)),a.type==2&&r.push(Dr(a.data.length)),r.push(a.data))})}),fs(r)}function hh(t,r){return(t==null?void 0:t.map(function(e){return r(e.data)}))||[]}function zi(t){for(var r,e=[],n=[0];n[0]<t.length;){var a=jc(t,n),o=Er(t.slice(n[0],n[0]+a));n[0]+=a;var s={id:Jr(o[1][0].data),messages:[]};o[2].forEach(function(i){var c=Er(i.data),l=Jr(c[3][0].data);s.messages.push({meta:c,data:t.slice(n[0],n[0]+l)}),n[0]+=l}),(r=o[3])!=null&&r[0]&&(s.merge=Jr(o[3][0].data)>>>0>0),e.push(s)}return e}function Ro(t){var r=[];return t.forEach(function(e){var n=[];n[1]=[{data:Dr(e.id),type:0}],n[2]=[],e.merge!=null&&(n[3]=[{data:Dr(+!!e.merge),type:0}]);var a=[];e.messages.forEach(function(s){a.push(s.data),s.meta[3]=[{type:0,data:Dr(s.data.length)}],n[2].push({data:Fn(s.meta),type:2})});var o=Fn(n);r.push(Dr(o.length)),r.push(o),a.forEach(function(s){return r.push(s)})}),fs(r)}function u5(t,r){if(t!=0)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var e=[0],n=jc(r,e),a=[];e[0]<r.length;){var o=3&r[e[0]];if(o!=0){var s=0,i=0;if(o==1?(i=4+(r[e[0]]>>2&7),s=(224&r[e[0]++])<<3,s|=r[e[0]++]):(i=1+(r[e[0]++]>>2),o==2?(s=r[e[0]]|r[e[0]+1]<<8,e[0]+=2):(s=(r[e[0]]|r[e[0]+1]<<8|r[e[0]+2]<<16|r[e[0]+3]<<24)>>>0,e[0]+=4)),a=[fs(a)],s==0)throw new Error("Invalid offset 0");if(s>a[0].length)throw new Error("Invalid offset beyond length");if(i>=s)for(a.push(a[0].slice(-s)),i-=s;i>=a[a.length-1].length;)a.push(a[a.length-1]),i-=a[a.length-1].length;a.push(a[0].slice(-s,-s+i))}else{var c=r[e[0]++]>>2;if(c<60)++c;else{var l=c-59;c=r[e[0]],l>1&&(c|=r[e[0]+1]<<8),l>2&&(c|=r[e[0]+2]<<16),l>3&&(c|=r[e[0]+3]<<24),c>>>=0,c++,e[0]+=l}a.push(r.slice(e[0],e[0]+c)),e[0]+=c}}var u=fs(a);if(u.length!=n)throw new Error("Unexpected length: ".concat(u.length," != ").concat(n));return u}function Ui(t){for(var r=[],e=0;e<t.length;){var n=t[e++],a=t[e]|t[e+1]<<8|t[e+2]<<16;e+=3,r.push(u5(n,t.slice(e,e+a))),e+=a}if(e!==t.length)throw new Error("data is not a valid framed stream!");return fs(r)}function Mo(t){for(var r=[],e=0;e<t.length;){var n=Math.min(t.length-e,268435455),a=new Uint8Array(4);r.push(a);var o=Dr(n),s=o.length;r.push(o),n<=60?(s++,r.push(new Uint8Array([n-1<<2]))):n<=256?(s+=2,r.push(new Uint8Array([240,n-1&255]))):n<=65536?(s+=3,r.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(s+=4,r.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(s+=5,r.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),r.push(t.slice(e,e+n)),s+=n,a[0]=0,a[1]=255&s,a[2]=s>>8&255,a[3]=s>>16&255,e+=n}return fs(r)}function f5(t,r,e){var n,a=qs(t),o=a.getUint32(8,!0),s=12,i=-1,c=-1,l=NaN,u=NaN,f=new Date(2001,0,1);switch(1&o&&(l=function(h,d){for(var p=(127&h[d+15])<<7|h[d+14]>>1,m=1&h[d+14],v=d+13;v>=d;--v)m=256*m+h[v];return(128&h[d+15]?-m:m)*Math.pow(10,p-6176)}(t,s),s+=16),2&o&&(u=a.getFloat64(s,!0),s+=8),4&o&&(f.setTime(f.getTime()+1e3*a.getFloat64(s,!0)),s+=8),8&o&&(c=a.getUint32(s,!0),s+=4),16&o&&(i=a.getUint32(s,!0),s+=4),t[1]){case 0:break;case 2:case 10:n={t:"n",v:l};break;case 3:n={t:"s",v:r[c]};break;case 5:n={t:"d",v:f};break;case 6:n={t:"b",v:u>0};break;case 7:n={t:"n",v:u/86400};break;case 8:n={t:"e",v:0};break;case 9:if(!(i>-1))throw new Error("Unsupported cell type ".concat(t[1]," : ").concat(31&o," : ").concat(t.slice(0,4)));n={t:"s",v:e[i]};break;default:throw new Error("Unsupported cell type ".concat(t[1]," : ").concat(31&o," : ").concat(t.slice(0,4)))}return n}function dh(t,r){var e=new Uint8Array(32),n=qs(e),a=12,o=0;switch(e[0]=5,t.t){case"n":e[1]=2,function(s,i,c){var l=Math.floor(c==0?0:Math.LOG10E*Math.log(Math.abs(c)))+6176-20,u=c/Math.pow(10,l-6176);s[i+15]|=l>>7,s[i+14]|=(127&l)<<1;for(var f=0;u>=1;++f,u/=256)s[i+f]=255&u;s[i+15]|=c>=0?0:128}(e,a,t.v),o|=1,a+=16;break;case"b":e[1]=6,n.setFloat64(a,t.v?1:0,!0),o|=2,a+=8;break;case"s":if(r.indexOf(t.v)==-1)throw new Error("Value ".concat(t.v," missing from SST!"));e[1]=3,n.setUint32(a,r.indexOf(t.v),!0),o|=8,a+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(8,o,!0),e.slice(0,a)}function ph(t,r){var e=new Uint8Array(32),n=qs(e),a=12,o=0;switch(e[0]=3,t.t){case"n":e[2]=2,n.setFloat64(a,t.v,!0),o|=32,a+=8;break;case"b":e[2]=6,n.setFloat64(a,t.v?1:0,!0),o|=32,a+=8;break;case"s":if(r.indexOf(t.v)==-1)throw new Error("Value ".concat(t.v," missing from SST!"));e[2]=3,n.setUint32(a,r.indexOf(t.v),!0),o|=16,a+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(4,o,!0),e.slice(0,a)}function h5(t,r,e){switch(t[0]){case 0:case 1:case 2:case 3:return function(n,a,o,s){var i,c=qs(n),l=c.getUint32(4,!0),u=(s>1?12:8)+4*rv(l&(s>1?3470:398)),f=-1,h=-1,d=NaN,p=new Date(2001,0,1);switch(512&l&&(f=c.getUint32(u,!0),u+=4),u+=4*rv(l&(s>1?12288:4096)),16&l&&(h=c.getUint32(u,!0),u+=4),32&l&&(d=c.getFloat64(u,!0),u+=8),64&l&&(p.setTime(p.getTime()+1e3*c.getFloat64(u,!0)),u+=8),n[2]){case 0:break;case 2:i={t:"n",v:d};break;case 3:i={t:"s",v:a[h]};break;case 5:i={t:"d",v:p};break;case 6:i={t:"b",v:d>0};break;case 7:i={t:"n",v:d/86400};break;case 8:i={t:"e",v:0};break;case 9:if(f>-1)i={t:"s",v:o[f]};else if(h>-1)i={t:"s",v:a[h]};else{if(isNaN(d))throw new Error("Unsupported cell type ".concat(n.slice(0,4)));i={t:"n",v:d}}break;default:throw new Error("Unsupported cell type ".concat(n.slice(0,4)))}return i}(t,r,e,t[0]);case 5:return f5(t,r,e);default:throw new Error("Unsupported payload version ".concat(t[0]))}}function Zn(t){return jc(Er(t)[1][0].data)}function nv(t,r){var e=Er(r.data),n=Jr(e[1][0].data),a=e[3],o=[];return(a||[]).forEach(function(s){var i=Er(s.data),c=Jr(i[1][0].data)>>>0;switch(n){case 1:o[c]=fh(i[3][0].data);break;case 8:var l=Er(t[Zn(i[9][0].data)][0].data),u=t[Zn(l[1][0].data)][0],f=Jr(u.meta[1][0].data);if(f!=2001)throw new Error("2000 unexpected reference to ".concat(f));var h=Er(u.data);o[c]=h[3].map(function(d){return fh(d.data)}).join("")}}),o}function d5(t,r){var e,n=Er(r.data),a=(e=n==null?void 0:n[7])!=null&&e[0]?Jr(n[7][0].data)>>>0>0?1:0:-1,o=hh(n[5],function(s){return function(i,c){var l,u,f,h,d,p,m,v,b,g,y,w,x,C,O,D,j=Er(i),U=Jr(j[1][0].data)>>>0,L=Jr(j[2][0].data)>>>0,V=((u=(l=j[8])==null?void 0:l[0])==null?void 0:u.data)&&Jr(j[8][0].data)>0||!1;if((h=(f=j[7])==null?void 0:f[0])!=null&&h.data&&c!=0)O=(p=(d=j[7])==null?void 0:d[0])==null?void 0:p.data,D=(v=(m=j[6])==null?void 0:m[0])==null?void 0:v.data;else{if(!((g=(b=j[4])==null?void 0:b[0])!=null&&g.data)||c==1)throw"NUMBERS Tile missing ".concat(c," cell storage");O=(w=(y=j[4])==null?void 0:y[0])==null?void 0:w.data,D=(C=(x=j[3])==null?void 0:x[0])==null?void 0:C.data}for(var A=V?4:1,N=qs(O),k=[],S=0;S<O.length/2;++S){var E=N.getUint16(2*S,!0);E<65535&&k.push([S,E])}if(k.length!=L)throw"Expected ".concat(L," cells, found ").concat(k.length);var T=[];for(S=0;S<k.length-1;++S)T[k[S][0]]=D.subarray(k[S][1]*A,k[S+1][1]*A);return k.length>=1&&(T[k[k.length-1][0]]=D.subarray(k[k.length-1][1]*A)),{R:U,cells:T}}(s,a)});return{nrows:Jr(n[4][0].data)>>>0,data:o.reduce(function(s,i){return s[i.R]||(s[i.R]=[]),i.cells.forEach(function(c,l){if(s[i.R][l])throw new Error("Duplicate cell r=".concat(i.R," c=").concat(l));s[i.R][l]=c}),s},[])}}function p5(t,r){var e={"!ref":"A1"},n=t[Zn(Er(r.data)[2][0].data)],a=Jr(n[0].meta[1][0].data);if(a!=6001)throw new Error("6000 unexpected reference to ".concat(a));return function(o,s,i){var c,l=Er(s.data),u={s:{r:0,c:0},e:{r:0,c:0}};if(u.e.r=(Jr(l[6][0].data)>>>0)-1,u.e.r<0)throw new Error("Invalid row varint ".concat(l[6][0].data));if(u.e.c=(Jr(l[7][0].data)>>>0)-1,u.e.c<0)throw new Error("Invalid col varint ".concat(l[7][0].data));i["!ref"]=wr(u);var f=Er(l[4][0].data),h=nv(o,o[Zn(f[4][0].data)][0]),d=(c=f[17])!=null&&c[0]?nv(o,o[Zn(f[17][0].data)][0]):[],p=Er(f[3][0].data),m=0;p[1].forEach(function(v){var b=Er(v.data),g=o[Zn(b[2][0].data)][0],y=Jr(g.meta[1][0].data);if(y!=6002)throw new Error("6001 unexpected reference to ".concat(y));var w=d5(0,g);w.data.forEach(function(x,C){x.forEach(function(O,D){var j=nr({r:m+C,c:D}),U=h5(O,h,d);U&&(i[j]=U)})}),m+=w.nrows})}(t,n[0],e),e}function m5(t,r){var e={SheetNames:[],Sheets:{}};if(hh(Er(r.data)[1],Zn).forEach(function(n){t[n].forEach(function(a){if(Jr(a.meta[1][0].data)==2){var o=function(s,i){var c,l=Er(i.data),u={name:(c=l[1])!=null&&c[0]?fh(l[1][0].data):"",sheets:[]};return hh(l[2],Zn).forEach(function(f){s[f].forEach(function(h){Jr(h.meta[1][0].data)==6e3&&u.sheets.push(p5(s,h))})}),u}(t,a);o.sheets.forEach(function(s,i){fv(e,s,i==0?o.name:o.name+"_"+i,!0)})}})}),e.SheetNames.length==0)throw new Error("Empty NUMBERS file");return e}function mh(t){var r,e,n,a,o={},s=[];if(t.FullPaths.forEach(function(c){if(c.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),t.FileIndex.forEach(function(c){if(c.name.match(/\.iwa$/)){var l,u;try{l=Ui(c.content)}catch(f){return console.log("?? "+c.content.length+" "+(f.message||f))}try{u=zi(l)}catch(f){return console.log("## "+(f.message||f))}u.forEach(function(f){o[f.id]=f.messages,s.push(f.id)})}}),!s.length)throw new Error("File has no messages");var i=((a=(n=(e=(r=o==null?void 0:o[1])==null?void 0:r[0])==null?void 0:e.meta)==null?void 0:n[1])==null?void 0:a[0].data)&&Jr(o[1][0].meta[1][0].data)==1&&o[1][0];if(i||s.forEach(function(c){o[c].forEach(function(l){if(Jr(l.meta[1][0].data)>>>0==1){if(i)throw new Error("Document has multiple roots");i=l}})}),!i)throw new Error("Cannot find Document root");return m5(o,i)}function v5(t,r,e){var n,a,o,s;if(!((n=t[6])!=null&&n[0])||!((a=t[7])!=null&&a[0]))throw"Mutation only works on post-BNC storages!";if((s=(o=t[8])==null?void 0:o[0])!=null&&s.data&&Jr(t[8][0].data)>0)throw"Math only works with normal offsets";for(var i=0,c=qs(t[7][0].data),l=0,u=[],f=qs(t[4][0].data),h=0,d=[],p=0;p<r.length;++p)if(r[p]!=null){var m,v;switch(c.setUint16(2*p,l,!0),f.setUint16(2*p,h,!0),typeof r[p]){case"string":m=dh({t:"s",v:r[p]},e),v=ph({t:"s",v:r[p]},e);break;case"number":m=dh({t:"n",v:r[p]},e),v=ph({t:"n",v:r[p]},e);break;case"boolean":m=dh({t:"b",v:r[p]},e),v=ph({t:"b",v:r[p]},e);break;default:throw new Error("Unsupported value "+r[p])}u.push(m),l+=m.length,d.push(v),h+=v.length,++i}else c.setUint16(2*p,65535,!0),f.setUint16(2*p,65535);for(t[2][0].data=Dr(i);p<t[7][0].data.length/2;++p)c.setUint16(2*p,65535,!0),f.setUint16(2*p,65535,!0);return t[6][0].data=fs(u),t[3][0].data=fs(d),i}function iv(t){return function(r){for(var e=0;e!=t.length;++e){var n=t[e];r[n[0]]===void 0&&(r[n[0]]=n[1]),n[2]==="n"&&(r[n[0]]=Number(r[n[0]]))}}}function vh(t){iv([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(t)}function gh(t){iv([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(t)}function g5(t,r,e,n,a,o,s,i,c,l,u,f){try{o[n]=wc(Ei(t,e,!0),r);var h,d=hn(t,r);switch(i){case"sheet":h=T6(d,r,a,c,o[n],l,u,f);break;case"chart":if(!(h=E6(d,r,a,c,o[n],l))||!h["!drawel"])break;var p=uc(h["!drawel"].Target,r),m=yc(p),v=function(x,C){if(!x)return"??";var O=(x.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return C["!id"][O].Target}(Ei(t,p,!0),wc(Ei(t,m,!0),p)),b=uc(v,p),g=yc(b);h=p6(Ei(t,b,!0),0,0,wc(Ei(t,g,!0),b),0,h);break;case"macro":w=r,o[n],w.slice(-4),h={"!type":"macro"};break;case"dialog":h=function(x,C,O,D,j,U,L,V){return C.slice(-4),{"!type":"dialog"}}(0,r,0,0,o[n]);break;default:throw new Error("Unrecognized sheet type "+i)}s[n]=h;var y=[];o&&o[n]&&nn(o[n]).forEach(function(x){var C="";if(o[n][x].Type==br.CMNT){C=uc(o[n][x].Target,r);var O=R6(hn(t,C,!0),C,c);if(!O||!O.length)return;ym(h,O,!1)}o[n][x].Type==br.TCMNT&&(C=uc(o[n][x].Target,r),y=y.concat(function(D,j){var U=[],L=!1,V={},A=0;return D.replace(Vn,function(N,k){var S=tr(N);switch(va(S[0])){case"<?xml":case"<ThreadedComments":case"</ThreadedComments>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<threadedComment":V={author:S.personId,guid:S.id,ref:S.ref,T:1};break;case"</threadedComment>":V.t!=null&&U.push(V);break;case"<text>":case"<text":A=k+N.length;break;case"</text>":V.t=D.slice(A,k).replace(/\r\n/g,`
|
||
`).replace(/\r/g,`
|
||
`);break;case"<mentions":case"<mentions>":case"<ext":L=!0;break;case"</mentions>":case"</ext>":L=!1;break;default:if(!L&&j.WTF)throw new Error("unrecognized "+S[0]+" in threaded comments")}return N}),U}(hn(t,C,!0),c)))}),y&&y.length&&ym(h,y,!0,c.people||[])}catch(x){if(c.WTF)throw x}var w}function Hi(t){return t.charAt(0)=="/"?t.slice(1):t}function b5(t,r){if(bo(),vh(r=r||{}),Di(t,"META-INF/manifest.xml")||Di(t,"objectdata.xml"))return Jm(t,r);if(Di(t,"Index/Document.iwa")){if(typeof Uint8Array=="undefined")throw new Error("NUMBERS file parsing requires Uint8Array support");if(mh!==void 0){if(t.FileIndex)return mh(t);var e=Ve.utils.cfb_new();return Rp(t).forEach(function(N){fr(e,N,Ap(t,N))}),mh(e)}throw new Error("Unsupported NUMBERS file")}if(!Di(t,"[Content_Types].xml"))throw Di(t,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):Di(t,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var n,a,o=Rp(t),s=function(N){var k={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};if(!N||!N.match)return k;var S={};if((N.match(Vn)||[]).forEach(function(E){var T=tr(E);switch(T[0].replace(Fw,"<")){case"<?xml":break;case"<Types":k.xmlns=T["xmlns"+(T[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":S[T.Extension]=T.ContentType;break;case"<Override":k[Uf[T.ContentType]]!==void 0&&k[Uf[T.ContentType]].push(T.PartName)}}),k.xmlns!==vn.CT)throw new Error("Unknown Namespace: "+k.xmlns);return k.calcchain=k.calcchains.length>0?k.calcchains[0]:"",k.sst=k.strs.length>0?k.strs[0]:"",k.style=k.styles.length>0?k.styles[0]:"",k.defaults=S,delete k.calcchains,k}(Ei(t,"[Content_Types].xml")),i=!1;if(s.workbooks.length===0&&hn(t,a="xl/workbook.xml",!0)&&s.workbooks.push(a),s.workbooks.length===0){if(!hn(t,a="xl/workbook.bin",!0))throw new Error("Could not find workbook");s.workbooks.push(a),i=!0}s.workbooks[0].slice(-3)=="bin"&&(i=!0);var c={},l={};if(!r.bookSheets&&!r.bookProps){if(Oc=[],s.sst)try{Oc=A6(hn(t,Hi(s.sst)),s.sst,r)}catch(N){if(r.WTF)throw N}r.cellStyles&&s.themes.length&&(c=function(N,k,S){return vm(N,S)}(Ei(t,s.themes[0].replace(/^\//,""),!0)||"",s.themes[0],r)),s.style&&(l=C6(hn(t,Hi(s.style)),s.style,c,r))}s.links.map(function(N){try{return wc(Ei(t,yc(Hi(N))),N),O6(hn(t,Hi(N)),0,N,r)}catch(k){}});var u=S6(hn(t,Hi(s.workbooks[0])),s.workbooks[0],r),f={},h="";s.coreprops.length&&((h=hn(t,Hi(s.coreprops[0]),!0))&&(f=b1(h)),s.extprops.length!==0&&(h=hn(t,Hi(s.extprops[0]),!0))&&function(N,k,S){var E={};k||(k={}),N=Lr(N),zs.forEach(function(T){var R=(N.match(fc(T[0]))||[])[1];switch(T[2]){case"string":R&&(k[T[1]]=Tr(R));break;case"bool":k[T[1]]=R==="true";break;case"raw":var F=N.match(new RegExp("<"+T[0]+"[^>]*>([\\s\\S]*?)</"+T[0]+">"));F&&F.length>0&&(E[T[1]]=F[1])}}),E.HeadingPairs&&E.TitlesOfParts&&_1(E.HeadingPairs,E.TitlesOfParts,k,S)}(h,f,r));var d={};r.bookSheets&&!r.bookProps||s.custprops.length!==0&&(h=Ei(t,Hi(s.custprops[0]),!0))&&(d=function(N,k){var S={},E="",T=N.match(s3);if(T)for(var R=0;R!=T.length;++R){var F=T[R],I=tr(F);switch(I[0]){case"<?xml":case"<Properties":break;case"<property":E=Tr(I.name);break;case"</property>":E=null;break;default:if(F.indexOf("<vt:")===0){var B=F.split(">"),P=B[0].slice(4),H=B[1];switch(P){case"lpstr":case"bstr":case"lpwstr":case"cy":case"error":S[E]=Tr(H);break;case"bool":S[E]=Vr(H);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":S[E]=parseInt(H,10);break;case"r4":case"r8":case"decimal":S[E]=parseFloat(H);break;case"filetime":case"date":S[E]=Gr(H);break;default:if(P.slice(-1)=="/")break;k.WTF&&typeof console!="undefined"&&console.warn("Unexpected",F,P,B)}}else if(F.slice(0,2)!=="</"){if(k.WTF)throw new Error(F)}}}return S}(h,r));var p={};if((r.bookSheets||r.bookProps)&&(u.Sheets?n=u.Sheets.map(function(N){return N.name}):f.Worksheets&&f.SheetNames.length>0&&(n=f.SheetNames),r.bookProps&&(p.Props=f,p.Custprops=d),r.bookSheets&&n!==void 0&&(p.SheetNames=n),r.bookSheets?p.SheetNames:r.bookProps))return p;n={};var m={};r.bookDeps&&s.calcchain&&(m=M6(hn(t,Hi(s.calcchain)),s.calcchain));var v,b,g=0,y={},w=u.Sheets;f.Worksheets=w.length,f.SheetNames=[];for(var x=0;x!=w.length;++x)f.SheetNames[x]=w[x].name;var C=i?"bin":"xml",O=s.workbooks[0].lastIndexOf("/"),D=(s.workbooks[0].slice(0,O+1)+"_rels/"+s.workbooks[0].slice(O+1)+".rels").replace(/^\//,"");Di(t,D)||(D="xl/_rels/workbook."+C+".rels");var j=wc(Ei(t,D,!0),D.replace(/_rels.*/,"s5s"));(s.metadata||[]).length>=1&&(r.xlmeta=I6(hn(t,Hi(s.metadata[0])),s.metadata[0],r)),(s.people||[]).length>=1&&(r.people=function(N,k){var S=[],E=!1;return N.replace(Vn,function(T){var R=tr(T);switch(va(R[0])){case"<?xml":case"<personList":case"</personList>":case"</person>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<person":S.push({name:R.displayname,id:R.id});break;case"<ext":E=!0;break;case"</ext>":E=!1;break;default:if(!E&&k.WTF)throw new Error("unrecognized "+R[0]+" in threaded comments")}return T}),S}(hn(t,Hi(s.people[0])),r)),j&&(j=function(N,k){if(!N)return 0;try{N=k.map(function(S){return S.id||(S.id=S.strRelID),[S.name,N["!id"][S.id].Target,(E=N["!id"][S.id].Type,br.WS.indexOf(E)>-1?"sheet":E==br.CS?"chart":E==br.DS?"dialog":E==br.MS?"macro":E&&E.length?E:"sheet")];var E})}catch(S){return null}return N&&N.length!==0?N:null}(j,u.Sheets));var U=hn(t,"xl/worksheets/sheet.xml",!0)?1:0;t:for(g=0;g!=f.Worksheets;++g){var L="sheet";if(j&&j[g]?(v="xl/"+j[g][1].replace(/[\/]?xl\//,""),Di(t,v)||(v=j[g][1]),Di(t,v)||(v=D.replace(/_rels\/.*$/,"")+j[g][1]),L=j[g][2]):v=(v="xl/worksheets/sheet"+(g+1-U)+"."+C).replace(/sheet0\./,"sheet."),b=v.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),r&&r.sheets!=null)switch(typeof r.sheets){case"number":if(g!=r.sheets)continue t;break;case"string":if(f.SheetNames[g].toLowerCase()!=r.sheets.toLowerCase())continue t;break;default:if(Array.isArray&&Array.isArray(r.sheets)){for(var V=!1,A=0;A!=r.sheets.length;++A)typeof r.sheets[A]=="number"&&r.sheets[A]==g&&(V=1),typeof r.sheets[A]=="string"&&r.sheets[A].toLowerCase()==f.SheetNames[g].toLowerCase()&&(V=1);if(!V)continue t}}g5(t,v,b,f.SheetNames[g],g,y,n,L,r,u,c,l)}return p={Directory:s,Workbook:u,Props:f,Custprops:d,Deps:m,Sheets:n,SheetNames:f.SheetNames,Strings:Oc,Styles:l,Themes:c,SSF:Wr(Qe)},r&&r.bookFiles&&(t.files?(p.keys=o,p.files=t.files):(p.keys=[],p.files={},t.FullPaths.forEach(function(N,k){N=N.replace(/^Root Entry[\/]/,""),p.keys.push(N),p.files[N]=t.FileIndex[k]}))),r&&r.bookVBA&&(s.vba.length>0?p.vbaraw=hn(t,Hi(s.vba[0]),!0):s.defaults&&s.defaults.bin===y4&&(p.vbaraw=hn(t,"xl/vbaProject.bin",!0))),p}function y5(t,r){var e,n,a=r||{},o="Workbook",s=Ve.find(t,o);try{if(o="/!DataSpaces/Version",!(s=Ve.find(t,o))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+o);if(e=s.content,(n={}).id=e.read_shift(0,"lpp4"),n.R=za(e,4),n.U=za(e,4),n.W=za(e,4),o="/!DataSpaces/DataSpaceMap",!(s=Ve.find(t,o))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+o);var i=function(u){var f=[];u.l+=4;for(var h=u.read_shift(4);h-- >0;)f.push(B3(u));return f}(s.content);if(i.length!==1||i[0].comps.length!==1||i[0].comps[0].t!==0||i[0].name!=="StrongEncryptionDataSpace"||i[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+o);if(o="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",!(s=Ve.find(t,o))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+o);var c=function(u){var f=[];u.l+=4;for(var h=u.read_shift(4);h-- >0;)f.push(u.read_shift(0,"lpp4"));return f}(s.content);if(c.length!=1||c[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+o);if(o="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",!(s=Ve.find(t,o))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+o);z3(s.content)}catch(u){}if(o="/EncryptionInfo",!(s=Ve.find(t,o))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+o);var l=function(u){var f=za(u);switch(f.Minor){case 2:return[f.Minor,U3(u)];case 3:return[f.Minor,H3()];case 4:return[f.Minor,W3(u)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+f.Minor)}(s.content);if(o="/EncryptedPackage",!(s=Ve.find(t,o))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+o);if(l[0]==4&&typeof decrypt_agile!="undefined")return decrypt_agile(l[1],s.content,a.password||"",a);if(l[0]==2&&typeof decrypt_std76!="undefined")return decrypt_std76(l[1],s.content,a.password||"",a);throw new Error("File is password-protected")}function w5(t,r){return r.bookType=="ods"?ev(t,r):r.bookType=="numbers"?function(e,n){if(!n||!n.numbers)throw new Error("Must pass a `numbers` option -- check the README");var a=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var o=Fi(a["!ref"]);o.s.r=o.s.c=0;var s=!1;o.e.c>9&&(s=!0,o.e.c=9),o.e.r>49&&(s=!0,o.e.r=49),s&&console.error("The Numbers writer is currently limited to ".concat(wr(o)));var i=cv(a,{range:o,header:1}),c=["~Sh33tJ5~"];i.forEach(function(P){return P.forEach(function(H){typeof H=="string"&&c.push(H)})});var l={},u=[],f=Ve.read(n.numbers,{type:"base64"});f.FileIndex.map(function(P,H){return[P,f.FullPaths[H]]}).forEach(function(P){var H=P[0],Z=P[1];H.type==2&&H.name.match(/\.iwa/)&&zi(Ui(H.content)).forEach(function(Y){u.push(Y.id),l[Y.id]={deps:[],location:Z,type:Jr(Y.messages[0].meta[1][0].data)}})}),u.sort(function(P,H){return P-H});var h=u.filter(function(P){return P>1}).map(function(P){return[P,Dr(P)]});f.FileIndex.map(function(P,H){return[P,f.FullPaths[H]]}).forEach(function(P){var H=P[0];P[1],H.name.match(/\.iwa/)&&zi(Ui(H.content)).forEach(function(Z){Z.messages.forEach(function(Y){h.forEach(function(dt){Z.messages.some(function(gt){return Jr(gt.meta[1][0].data)!=11006&&function(bt,Q){t:for(var q=0;q<=bt.length-Q.length;++q){for(var tt=0;tt<Q.length;++tt)if(bt[q+tt]!=Q[tt])continue t;return!0}return!1}(gt.data,dt[1])})&&l[dt[0]].deps.push(Z.id)})})})});for(var d,p=Ve.find(f,l[1].location),m=zi(Ui(p.content)),v=0;v<m.length;++v){var b=m[v];b.id==1&&(d=b)}var g=Zn(Er(d.messages[0].data)[1][0].data);for(m=zi(Ui((p=Ve.find(f,l[g].location)).content)),v=0;v<m.length;++v)(b=m[v]).id==g&&(d=b);for(g=Zn(Er(d.messages[0].data)[2][0].data),m=zi(Ui((p=Ve.find(f,l[g].location)).content)),v=0;v<m.length;++v)(b=m[v]).id==g&&(d=b);for(g=Zn(Er(d.messages[0].data)[2][0].data),m=zi(Ui((p=Ve.find(f,l[g].location)).content)),v=0;v<m.length;++v)(b=m[v]).id==g&&(d=b);var y=Er(d.messages[0].data);y[6][0].data=Dr(o.e.r+1),y[7][0].data=Dr(o.e.c+1);for(var w=Zn(y[46][0].data),x=Ve.find(f,l[w].location),C=zi(Ui(x.content)),O=0;O<C.length&&C[O].id!=w;++O);if(C[O].id!=w)throw"Bad ColumnRowUIDMapArchive";var D=Er(C[O].messages[0].data);D[1]=[],D[2]=[],D[3]=[];for(var j=0;j<=o.e.c;++j){var U=[];U[1]=U[2]=[{type:0,data:Dr(j+420690)}],D[1].push({type:2,data:Fn(U)}),D[2].push({type:0,data:Dr(j)}),D[3].push({type:0,data:Dr(j)})}D[4]=[],D[5]=[],D[6]=[];for(var L=0;L<=o.e.r;++L)(U=[])[1]=U[2]=[{type:0,data:Dr(L+726270)}],D[4].push({type:2,data:Fn(U)}),D[5].push({type:0,data:Dr(L)}),D[6].push({type:0,data:Dr(L)});C[O].messages[0].data=Fn(D),x.content=Mo(Ro(C)),x.size=x.content.length,delete y[46];var V=Er(y[4][0].data);V[7][0].data=Dr(o.e.r+1);var A=Zn(Er(V[1][0].data)[2][0].data);if((C=zi(Ui((x=Ve.find(f,l[A].location)).content)))[0].id!=A)throw"Bad HeaderStorageBucket";var N=Er(C[0].messages[0].data);for(L=0;L<i.length;++L){var k=Er(N[2][0].data);k[1][0].data=Dr(L),k[4][0].data=Dr(i[L].length),N[2][L]={type:N[2][0].type,data:Fn(k)}}C[0].messages[0].data=Fn(N),x.content=Mo(Ro(C)),x.size=x.content.length;var S=Zn(V[2][0].data);if((C=zi(Ui((x=Ve.find(f,l[S].location)).content)))[0].id!=S)throw"Bad HeaderStorageBucket";for(N=Er(C[0].messages[0].data),j=0;j<=o.e.c;++j)(k=Er(N[2][0].data))[1][0].data=Dr(j),k[4][0].data=Dr(o.e.r+1),N[2][j]={type:N[2][0].type,data:Fn(k)};C[0].messages[0].data=Fn(N),x.content=Mo(Ro(C)),x.size=x.content.length;var E=Zn(V[4][0].data);(function(){for(var P,H=Ve.find(f,l[E].location),Z=zi(Ui(H.content)),Y=0;Y<Z.length;++Y){var dt=Z[Y];dt.id==E&&(P=dt)}var gt=Er(P.messages[0].data);gt[3]=[];var bt=[];c.forEach(function(q,tt){bt[1]=[{type:0,data:Dr(tt)}],bt[2]=[{type:0,data:Dr(1)}],bt[3]=[{type:2,data:l5(q)}],gt[3].push({type:2,data:Fn(bt)})}),P.messages[0].data=Fn(gt);var Q=Mo(Ro(Z));H.content=Q,H.size=H.content.length})();var T=Er(V[3][0].data),R=T[1][0];delete T[2];var F=Er(R.data),I=Zn(F[2][0].data);(function(){for(var P,H=Ve.find(f,l[I].location),Z=zi(Ui(H.content)),Y=0;Y<Z.length;++Y){var dt=Z[Y];dt.id==I&&(P=dt)}var gt=Er(P.messages[0].data);delete gt[6],delete T[7];var bt=new Uint8Array(gt[5][0].data);gt[5]=[];for(var Q=0,q=0;q<=o.e.r;++q){var tt=Er(bt);Q+=v5(tt,i[q],c),tt[1][0].data=Dr(q),gt[5].push({data:Fn(tt),type:2})}gt[1]=[{type:0,data:Dr(o.e.c+1)}],gt[2]=[{type:0,data:Dr(o.e.r+1)}],gt[3]=[{type:0,data:Dr(Q)}],gt[4]=[{type:0,data:Dr(o.e.r+1)}],P.messages[0].data=Fn(gt);var et=Mo(Ro(Z));H.content=et,H.size=H.content.length})(),R.data=Fn(F),V[3][0].data=Fn(T),y[4][0].data=Fn(V),d.messages[0].data=Fn(y);var B=Mo(Ro(m));return p.content=B,p.size=p.content.length,f}(t,r):r.bookType=="xlsb"?function(e,n){Eo=1024,e&&!e.SSF&&(e.SSF=Wr(Qe)),e&&e.SSF&&(bo(),Tl(e.SSF),n.revssf=Cl(e.SSF),n.revssf[e.SSF[65535]]=0,n.ssf=e.SSF),n.rels={},n.wbrels={},n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,Ic?n.revStrings=new Map:(n.revStrings={},n.revStrings.foo=[],delete n.revStrings.foo);var a=n.bookType=="xlsb"?"bin":"xml",o=_m.indexOf(n.bookType)>-1,s={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};gh(n=n||{});var i=xf(),c="",l=0;if(n.cellXfs=[],us(n.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),fr(i,c="docProps/core.xml",y1(e.Props,n)),s.coreprops.push(c),Pr(n.rels,2,c,br.CORE_PROPS),c="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(e.Workbook&&e.Workbook.Sheets){for(var u=[],f=0;f<e.SheetNames.length;++f)(e.Workbook.Sheets[f]||{}).Hidden!=2&&u.push(e.SheetNames[f]);e.Props.SheetNames=u}else e.Props.SheetNames=e.SheetNames;for(e.Props.Worksheets=e.Props.SheetNames.length,fr(i,c,k1(e.Props)),s.extprops.push(c),Pr(n.rels,3,c,br.EXT_PROPS),e.Custprops!==e.Props&&nn(e.Custprops||{}).length>0&&(fr(i,c="docProps/custom.xml",x1(e.Custprops)),s.custprops.push(c),Pr(n.rels,4,c,br.CUST_PROPS)),l=1;l<=e.SheetNames.length;++l){var h={"!id":{}},d=e.Sheets[e.SheetNames[l-1]];if((d||{})["!type"],fr(i,c="xl/worksheets/sheet"+l+"."+a,N6(l-1,c,n,e,h)),s.sheets.push(c),Pr(n.wbrels,-1,"worksheets/sheet"+l+"."+a,br.WS[0]),d){var p=d["!comments"],m=!1,v="";p&&p.length>0&&(fr(i,v="xl/comments"+l+"."+a,P6(p,v)),s.comments.push(v),Pr(h,-1,"../comments"+l+"."+a,br.CMNT),m=!0),d["!legacy"]&&m&&fr(i,"xl/drawings/vmlDrawing"+l+".vml",bm(l,d["!comments"])),delete d["!comments"],delete d["!legacy"]}h["!id"].rId1&&fr(i,yc(c),xo(h))}return n.Strings!=null&&n.Strings.length>0&&(fr(i,c="xl/sharedStrings."+a,function(b,g,y){return(g.slice(-4)===".bin"?L3:am)(b,y)}(n.Strings,c,n)),s.strs.push(c),Pr(n.wbrels,-1,"sharedStrings."+a,br.SST)),fr(i,c="xl/workbook."+a,function(b,g,y){return(g.slice(-4)===".bin"?x6:Vm)(b)}(e,c)),s.workbooks.push(c),Pr(n.rels,1,c,br.WB),fr(i,c="xl/theme/theme1.xml",Qf(e.Themes,n)),s.themes.push(c),Pr(n.wbrels,-1,"theme/theme1.xml",br.THEME),fr(i,c="xl/styles."+a,function(b,g,y){return(g.slice(-4)===".bin"?i4:dm)(b,y)}(e,c,n)),s.styles.push(c),Pr(n.wbrels,-1,"styles."+a,br.STY),e.vbaraw&&o&&(fr(i,c="xl/vbaProject.bin",e.vbaraw),s.vba.push(c),Pr(n.wbrels,-1,"vbaProject.bin",br.VBA)),fr(i,c="xl/metadata."+a,function(b){return(b.slice(-4)===".bin"?m4:gm)()}(c)),s.metadata.push(c),Pr(n.wbrels,-1,"metadata."+a,br.XLMETA),fr(i,"[Content_Types].xml",m1(s,n)),fr(i,"_rels/.rels",xo(n.rels)),fr(i,"xl/_rels/workbook."+a+".rels",xo(n.wbrels)),delete n.revssf,delete n.ssf,i}(t,r):function(e,n){Eo=1024,e&&!e.SSF&&(e.SSF=Wr(Qe)),e&&e.SSF&&(bo(),Tl(e.SSF),n.revssf=Cl(e.SSF),n.revssf[e.SSF[65535]]=0,n.ssf=e.SSF),n.rels={},n.wbrels={},n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,Ic?n.revStrings=new Map:(n.revStrings={},n.revStrings.foo=[],delete n.revStrings.foo);var a="xml",o=_m.indexOf(n.bookType)>-1,s={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};gh(n=n||{});var i=xf(),c="",l=0;if(n.cellXfs=[],us(n.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),fr(i,c="docProps/core.xml",y1(e.Props,n)),s.coreprops.push(c),Pr(n.rels,2,c,br.CORE_PROPS),c="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(e.Workbook&&e.Workbook.Sheets){for(var u=[],f=0;f<e.SheetNames.length;++f)(e.Workbook.Sheets[f]||{}).Hidden!=2&&u.push(e.SheetNames[f]);e.Props.SheetNames=u}else e.Props.SheetNames=e.SheetNames;e.Props.Worksheets=e.Props.SheetNames.length,fr(i,c,k1(e.Props)),s.extprops.push(c),Pr(n.rels,3,c,br.EXT_PROPS),e.Custprops!==e.Props&&nn(e.Custprops||{}).length>0&&(fr(i,c="docProps/custom.xml",x1(e.Custprops)),s.custprops.push(c),Pr(n.rels,4,c,br.CUST_PROPS));var h=["SheetJ5"];for(n.tcid=0,l=1;l<=e.SheetNames.length;++l){var d={"!id":{}},p=e.Sheets[e.SheetNames[l-1]];if((p||{})["!type"],fr(i,c="xl/worksheets/sheet"+l+"."+a,jm(l-1,n,e,d)),s.sheets.push(c),Pr(n.wbrels,-1,"worksheets/sheet"+l+"."+a,br.WS[0]),p){var m=p["!comments"],v=!1,b="";if(m&&m.length>0){var g=!1;m.forEach(function(y){y[1].forEach(function(w){w.T==1&&(g=!0)})}),g&&(fr(i,b="xl/threadedComments/threadedComment"+l+"."+a,v4(m,h,n)),s.threadedcomments.push(b),Pr(d,-1,"../threadedComments/threadedComment"+l+"."+a,br.TCMNT)),fr(i,b="xl/comments"+l+"."+a,wm(m)),s.comments.push(b),Pr(d,-1,"../comments"+l+"."+a,br.CMNT),v=!0}p["!legacy"]&&v&&fr(i,"xl/drawings/vmlDrawing"+l+".vml",bm(l,p["!comments"])),delete p["!comments"],delete p["!legacy"]}d["!id"].rId1&&fr(i,yc(c),xo(d))}return n.Strings!=null&&n.Strings.length>0&&(fr(i,c="xl/sharedStrings."+a,am(n.Strings,n)),s.strs.push(c),Pr(n.wbrels,-1,"sharedStrings."+a,br.SST)),fr(i,c="xl/workbook."+a,Vm(e)),s.workbooks.push(c),Pr(n.rels,1,c,br.WB),fr(i,c="xl/theme/theme1.xml",Qf(e.Themes,n)),s.themes.push(c),Pr(n.wbrels,-1,"theme/theme1.xml",br.THEME),fr(i,c="xl/styles."+a,dm(e,n)),s.styles.push(c),Pr(n.wbrels,-1,"styles."+a,br.STY),e.vbaraw&&o&&(fr(i,c="xl/vbaProject.bin",e.vbaraw),s.vba.push(c),Pr(n.wbrels,-1,"vbaProject.bin",br.VBA)),fr(i,c="xl/metadata."+a,gm()),s.metadata.push(c),Pr(n.wbrels,-1,"metadata."+a,br.XLMETA),h.length>1&&(fr(i,c="xl/persons/person.xml",function(y){var w=[an,we("personList",null,{xmlns:vn.TCMNT,"xmlns:x":Ns[0]}).replace(/[\/]>/,">")];return y.forEach(function(x,C){w.push(we("person",null,{displayName:x,id:"{54EE7950-7262-4200-6969-"+("000000000000"+C).slice(-12)+"}",userId:x,providerId:"None"}))}),w.push("</personList>"),w.join("")}(h)),s.people.push(c),Pr(n.wbrels,-1,"persons/person.xml",br.PEOPLE)),fr(i,"[Content_Types].xml",m1(s,n)),fr(i,"_rels/.rels",xo(n.rels)),fr(i,"xl/_rels/workbook."+a+".rels",xo(n.wbrels)),delete n.revssf,delete n.ssf,i}(t,r)}function bh(t,r){var e="";switch((r||{}).type||"base64"){case"buffer":case"array":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];case"base64":e=Si(t.slice(0,12));break;case"binary":e=t;break;default:throw new Error("Unrecognized type "+(r&&r.type||"undefined"))}return[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3),e.charCodeAt(4),e.charCodeAt(5),e.charCodeAt(6),e.charCodeAt(7)]}function av(t,r){var e=0;t:for(;e<t.length;)switch(t.charCodeAt(e)){case 10:case 13:case 32:++e;break;case 60:return lh(t.slice(e),r);default:break t}return So.to_workbook(t,r)}function yh(t,r,e,n){return n?(e.type="string",So.to_workbook(t,e)):So.to_workbook(r,e)}function wh(t,r){gf();var e=r||{};if(typeof ArrayBuffer!="undefined"&&t instanceof ArrayBuffer)return wh(new Uint8Array(t),((e=Wr(e)).type="array",e));typeof Uint8Array!="undefined"&&t instanceof Uint8Array&&!e.type&&(e.type=typeof Deno!="undefined"?"buffer":"array");var n,a=t,o=!1;if(e.cellStyles&&(e.cellNF=!0,e.sheetStubs=!0),Ao={},e.dateNF&&(Ao.dateNF=e.dateNF),e.type||(e.type=mr&&Buffer.isBuffer(t)?"buffer":"base64"),e.type=="file"&&(e.type=mr?"buffer":"binary",a=function(c){if(typeof Deno!="undefined")return Deno.readFileSync(c);if(typeof $!="undefined"&&typeof File!="undefined"&&typeof Folder!="undefined")try{var l=File(c);l.open("r"),l.encoding="binary";var u=l.read();return l.close(),u}catch(f){if(!f.message||!f.message.match(/onstruct/))throw f}throw new Error("Cannot access file "+c)}(t),typeof Uint8Array=="undefined"||mr||(e.type="array")),e.type=="string"&&(o=!0,e.type="binary",e.codepage=65001,a=function(c){return c.match(/[^\x00-\x7F]/)?ga(c):c}(t)),e.type=="array"&&typeof Uint8Array!="undefined"&&t instanceof Uint8Array&&typeof ArrayBuffer!="undefined"){var s=new ArrayBuffer(3),i=new Uint8Array(s);if(i.foo="bar",!i.foo)return(e=Wr(e)).type="array",wh(bf(a),e)}switch((n=bh(a,e))[0]){case 208:if(n[1]===207&&n[2]===17&&n[3]===224&&n[4]===161&&n[5]===177&&n[6]===26&&n[7]===225)return function(c,l){return Ve.find(c,"EncryptedPackage")?y5(c,l):Ym(c,l)}(Ve.read(a,e),e);break;case 9:if(n[1]<=8)return Ym(a,e);break;case 60:return lh(a,e);case 73:if(n[1]===73&&n[2]===42&&n[3]===0)throw new Error("TIFF Image File is not a spreadsheet");if(n[1]===68)return function(c,l){var u=l||{},f=!!u.WTF;u.WTF=!0;try{var h=rm.to_workbook(c,u);return u.WTF=f,h}catch(d){if(u.WTF=f,!d.message.match(/SYLK bad record ID/)&&f)throw d;return So.to_workbook(c,l)}}(a,e);break;case 84:if(n[1]===65&&n[2]===66&&n[3]===76)return nm.to_workbook(a,e);break;case 80:return n[1]===75&&n[2]<9&&n[3]<9?function(c,l){var u=c,f=l||{};return f.type||(f.type=mr&&Buffer.isBuffer(c)?"buffer":"base64"),b5(Mp(u,f),f)}(a,e):yh(t,a,e,o);case 239:return n[3]===60?lh(a,e):yh(t,a,e,o);case 255:if(n[1]===254)return function(c,l){var u=c;return l.type=="base64"&&(u=Si(u)),u=es.utils.decode(1200,u.slice(2),"str"),l.type="binary",av(u,l)}(a,e);if(n[1]===0&&n[2]===2&&n[3]===0)return Vs.to_workbook(a,e);break;case 0:if(n[1]===0&&(n[2]>=2&&n[3]===0||n[2]===0&&(n[3]===8||n[3]===9)))return Vs.to_workbook(a,e);break;case 3:case 131:case 139:case 140:return Gf.to_workbook(a,e);case 123:if(n[1]===92&&n[2]===114&&n[3]===116)return um.to_workbook(a,e);break;case 10:case 13:case 32:return function(c,l){var u="",f=bh(c,l);switch(l.type){case"base64":u=Si(c);break;case"binary":u=c;break;case"buffer":u=c.toString("binary");break;case"array":u=Is(c);break;default:throw new Error("Unrecognized type "+l.type)}return f[0]==239&&f[1]==187&&f[2]==191&&(u=Lr(u)),l.type="binary",av(u,l)}(a,e);case 137:if(n[1]===80&&n[2]===78&&n[3]===71)throw new Error("PNG Image File is not a spreadsheet")}return C3.indexOf(n[0])>-1&&n[2]<=12&&n[3]<=31?Gf.to_workbook(a,e):yh(t,a,e,o)}function sv(t,r){switch(r.type){case"base64":case"binary":break;case"buffer":case"array":r.type="";break;case"file":return cc(r.file,Ve.write(t,{type:mr?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");default:throw new Error("Unrecognized type "+r.type)}return Ve.write(t,r)}function _5(t,r){var e=Wr(r||{});return function(n,a){var o={},s=mr?"nodebuffer":typeof Uint8Array!="undefined"?"array":"string";if(a.compression&&(o.compression="DEFLATE"),a.password)o.type=s;else switch(a.type){case"base64":o.type="base64";break;case"binary":o.type="string";break;case"string":throw new Error("'string' output type invalid for '"+a.bookType+"' files");case"buffer":case"file":o.type=s;break;default:throw new Error("Unrecognized type "+a.type)}var i=n.FullPaths?Ve.write(n,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[o.type]||o.type,compression:!!a.compression}):n.generate(o);if(typeof Deno!="undefined"&&typeof i=="string"){if(a.type=="binary"||a.type=="base64")return i;i=new Uint8Array(_l(i))}return a.password&&typeof encrypt_agile!="undefined"?sv(encrypt_agile(i,a.password),a):a.type==="file"?cc(a.file,i):a.type=="string"?Lr(i):i}(w5(t,e),e)}function wa(t,r,e){e||(e="");var n=e+t;switch(r.type){case"base64":return ac(ga(n));case"binary":return ga(n);case"string":return t;case"file":return cc(r.file,n,"utf8");case"buffer":return mr?Na(n,"utf8"):typeof TextEncoder!="undefined"?new TextEncoder().encode(n):wa(n,{type:"binary"}).split("").map(function(a){return a.charCodeAt(0)})}throw new Error("Unrecognized type "+r.type)}function Gl(t,r){switch(r.type){case"string":case"base64":case"binary":for(var e="",n=0;n<t.length;++n)e+=String.fromCharCode(t[n]);return r.type=="base64"?ac(e):r.type=="string"?Lr(e):e;case"file":return cc(r.file,t);case"buffer":return t;default:throw new Error("Unrecognized type "+r.type)}}function ov(t,r){gf(),y6(t);var e=Wr(r||{});if(e.cellStyles&&(e.cellNF=!0,e.sheetStubs=!0),e.type=="array"){e.type="binary";var n=ov(t,e);return e.type="array",_l(n)}var a=0;if(e.sheet&&(a=typeof e.sheet=="number"?e.sheet:t.SheetNames.indexOf(e.sheet),!t.SheetNames[a]))throw new Error("Sheet not found: "+e.sheet+" : "+typeof e.sheet);switch(e.bookType||"xlsb"){case"xml":case"xlml":return wa($6(t,e),e);case"slk":case"sylk":return wa(rm.from_sheet(t.Sheets[t.SheetNames[a]],e),e);case"htm":case"html":return wa(function(o,s){var i=s||{},c=i.header!=null?i.header:a5,l=i.footer!=null?i.footer:s5,u=[c],f=Fi(o["!ref"]);i.dense=Array.isArray(o),u.push(function(d,p,m){return[].join("")+"<table"+(m&&m.id?' id="'+m.id+'"':"")+">"}(0,0,i));for(var h=f.s.r;h<=f.e.r;++h)u.push(i5(o,f,h,i));return u.push("</table>"+l),u.join("")}(t.Sheets[t.SheetNames[a]],e),e);case"txt":return function(o,s){switch(s.type){case"base64":return ac(o);case"binary":case"string":return o;case"file":return cc(s.file,o,"binary");case"buffer":return mr?Na(o,"binary"):o.split("").map(function(i){return i.charCodeAt(0)})}throw new Error("Unrecognized type "+s.type)}(function(o,s){s||(s={}),s.FS=" ",s.RS=`
|
||
`;var i=uv(o,s);return i}(t.Sheets[t.SheetNames[a]],e),e);case"csv":return wa(uv(t.Sheets[t.SheetNames[a]],e),e,"\uFEFF");case"dif":return wa(nm.from_sheet(t.Sheets[t.SheetNames[a]],e),e);case"dbf":return Gl(Gf.from_sheet(t.Sheets[t.SheetNames[a]],e),e);case"prn":return wa(So.from_sheet(t.Sheets[t.SheetNames[a]],e),e);case"rtf":return wa(um.from_sheet(t.Sheets[t.SheetNames[a]],e),e);case"eth":return wa(im.from_sheet(t.Sheets[t.SheetNames[a]],e),e);case"fods":return wa(ev(t,e),e);case"wk1":return Gl(Vs.sheet_to_wk1(t.Sheets[t.SheetNames[a]],e),e);case"wk3":return Gl(Vs.book_to_wk3(t,e),e);case"biff2":e.biff||(e.biff=2);case"biff3":e.biff||(e.biff=3);case"biff4":return e.biff||(e.biff=4),Gl(Km(t,e),e);case"biff5":e.biff||(e.biff=5);case"biff8":case"xla":case"xls":return e.biff||(e.biff=8),function(o,s){var i=s||{};return sv(X6(o,i),i)}(t,e);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return _5(t,e);default:throw new Error("Unrecognized bookType |"+e.bookType+"|")}}function k5(t,r,e,n,a,o,s,i){var c=Cn(e),l=i.defval,u=i.raw||!Object.prototype.hasOwnProperty.call(i,"raw"),f=!0,h=a===1?[]:{};if(a!==1)if(Object.defineProperty)try{Object.defineProperty(h,"__rowNum__",{value:e,enumerable:!1})}catch(v){h.__rowNum__=e}else h.__rowNum__=e;if(!s||t[e])for(var d=r.s.c;d<=r.e.c;++d){var p=s?t[e][d]:t[n[d]+c];if(p!==void 0&&p.t!==void 0){var m=p.v;switch(p.t){case"z":if(m==null)break;continue;case"e":m=m==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+p.t)}if(o[d]!=null){if(m==null)if(p.t=="e"&&m===null)h[o[d]]=null;else if(l!==void 0)h[o[d]]=l;else{if(!u||m!==null)continue;h[o[d]]=null}else h[o[d]]=u&&(p.t!=="n"||p.t==="n"&&i.rawNumbers!==!1)?m:ss(p,m,i);m!=null&&(f=!1)}}else{if(l===void 0)continue;o[d]!=null&&(h[o[d]]=l)}}return{row:h,isempty:f}}function cv(t,r){if(t==null||t["!ref"]==null)return[];var e={t:"n",v:0},n=0,a=1,o=[],s=0,i="",c={s:{r:0,c:0},e:{r:0,c:0}},l=r||{},u=l.range!=null?l.range:t["!ref"];switch(l.header===1?n=1:l.header==="A"?n=2:Array.isArray(l.header)?n=3:l.header==null&&(n=0),typeof u){case"string":c=Mr(u);break;case"number":(c=Mr(t["!ref"])).s.r=u;break;default:c=u}n>0&&(a=0);var f=Cn(c.s.r),h=[],d=[],p=0,m=0,v=Array.isArray(t),b=c.s.r,g=0,y={};v&&!t[b]&&(t[b]=[]);var w=l.skipHidden&&t["!cols"]||[],x=l.skipHidden&&t["!rows"]||[];for(g=c.s.c;g<=c.e.c;++g)if(!(w[g]||{}).hidden)switch(h[g]=dn(g),e=v?t[b][g]:t[h[g]+f],n){case 1:o[g]=g-c.s.c;break;case 2:o[g]=h[g];break;case 3:o[g]=l.header[g-c.s.c];break;default:if(e==null&&(e={w:"__EMPTY",t:"s"}),i=s=ss(e,null,l),m=y[s]||0){do i=s+"_"+m++;while(y[i]);y[s]=m,y[i]=1}else y[s]=1;o[g]=i}for(b=c.s.r+a;b<=c.e.r;++b)if(!(x[b]||{}).hidden){var C=k5(t,c,b,h,n,o,v,l);(C.isempty===!1||(n===1?l.blankrows!==!1:l.blankrows))&&(d[p++]=C.row)}return d.length=p,d}var lv=/"/g;function x5(t,r,e,n,a,o,s,i){for(var c=!0,l=[],u="",f=Cn(e),h=r.s.c;h<=r.e.c;++h)if(n[h]){var d=i.dense?(t[e]||[])[h]:t[n[h]+f];if(d==null)u="";else if(d.v!=null){c=!1,u=""+(i.rawNumbers&&d.t=="n"?d.v:ss(d,null,i));for(var p=0,m=0;p!==u.length;++p)if((m=u.charCodeAt(p))===a||m===o||m===34||i.forceQuotes){u='"'+u.replace(lv,'""')+'"';break}u=="ID"&&(u='"ID"')}else d.f==null||d.F?u="":(c=!1,(u="="+d.f).indexOf(",")>=0&&(u='"'+u.replace(lv,'""')+'"'));l.push(u)}return i.blankrows===!1&&c?null:l.join(s)}function uv(t,r){var e=[],n=r==null?{}:r;if(t==null||t["!ref"]==null)return"";var a=Mr(t["!ref"]),o=n.FS!==void 0?n.FS:",",s=o.charCodeAt(0),i=n.RS!==void 0?n.RS:`
|
||
`,c=i.charCodeAt(0),l=new RegExp((o=="|"?"\\|":o)+"+$"),u="",f=[];n.dense=Array.isArray(t);for(var h=n.skipHidden&&t["!cols"]||[],d=n.skipHidden&&t["!rows"]||[],p=a.s.c;p<=a.e.c;++p)(h[p]||{}).hidden||(f[p]=dn(p));for(var m=0,v=a.s.r;v<=a.e.r;++v)(d[v]||{}).hidden||(u=x5(t,a,v,f,s,c,o,n))!=null&&(n.strip&&(u=u.replace(l,"")),(u||n.blankrows!==!1)&&e.push((m++?i:"")+u));return delete n.dense,e.join("")}function fv(t,r,e,n){var a=1;if(!e)for(;a<=65535&&t.SheetNames.indexOf(e="Sheet"+a)!=-1;++a,e=void 0);if(!e||t.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&t.SheetNames.indexOf(e)>=0){var o=e.match(/(^.*?)(\d+)$/);a=o&&+o[2]||0;var s=o&&o[1]||e;for(++a;a<=65535&&t.SheetNames.indexOf(e=s+a)!=-1;++a);}if(Wm(e),t.SheetNames.indexOf(e)>=0)throw new Error("Worksheet with name |"+e+"| already exists!");return t.SheetNames.push(e),t.Sheets[e]=r,e}function hv(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),e.push.apply(e,n)}return e}var _h=["#FFFFFF","#000000","#BFBFBF","#323232","#4472C4","#ED7D31","#A5A5A5","#FFC000","#5B9BD5","#71AD47"],kh=["#000000","#FFFFFF","#FF0000","#00FF00","#0000FF","#FFFF00","#FF00FF","#00FFFF","#000000","#FFFFFF","#FF0000","#00FF00","#0000FF","#FFFF00","#FF00FF","#00FFFF","#800000","#008000","#000080","#808000","#800080","#008080","#C0C0C0","#808080","#9999FF","#993366","#FFFFCC","#CCFFFF","#660066","#FF8080","#0066CC","#CCCCFF","#000080","#FF00FF","#FFFF00","#00FFFF","#800080","#800000","#008080","#0000FF","#00CCFF","#CCFFFF","#CCFFCC","#FFFF99","#99CCFF","#FF99CC","#CC99FF","#FFCC99","#3366FF","#33CCCC","#99CC00","#FFCC00","#FF9900","#FF6600","#666699","#969696","#003366","#339966","#003300","#333300","#993300","#993366","#333399","#333333","#000000"],S5=80;function dv(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(e,n){return new Promise(function(a,o){var s=new XMLHttpRequest;s.open(n.method||"GET",e,!0),s.responseType=n.responseType||"arraybuffer",s.onload=function(){s.status===200?a(s.response):o(s.status)},s.onerror=function(){o(s.status)},s.withCredentials=n.withCredentials||!1,n.headers&&Object.keys(n.headers).forEach(function(i){s.setRequestHeader(i,n.headers[i])}),s.send(n.body)})}(function(e){return typeof e=="string"?e:e instanceof Blob?URL.createObjectURL(e):e instanceof ArrayBuffer?URL.createObjectURL(new Blob([e])):e instanceof Response?URL.createObjectURL(e.blob()):e}(t),r)}function xh(t){if(typeof t=="object")return"#000000";if(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.test(t))return t.startsWith("#")?t:"#"+t;t=t.trim().toLowerCase();var r={};try{var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return r.r=parseInt(e[2],16),r.g=parseInt(e[3],16),r.b=parseInt(e[4],16),r.a=parseInt(e[1],16)/255,Ue("rgba(".concat(r.r,", ").concat(r.g,", ").concat(r.b,", ").concat(r.a,")")).toHexString()}catch(n){console.warn(n)}}function Sh(t,r){return t>9?"#C7C9CC":r===void 0?_h[t]:r>0?function(e,n){for(var a=K0(e),o=0;o<3;o++)a[o]=Math.floor((255-a[o])*n+a[o]);return X0(a[0],a[1],a[2])}(_h[t],r):function(e,n){for(var a=K0(e),o=0;o<3;o++)a[o]=Math.floor(a[o]*(1-n));return X0(a[0],a[1],a[2])}(_h[t],Math.abs(r))}function T5(t){t.style=yl.cloneDeep(t.style);var r=null;t.style.fill&&t.style.fill.fgColor&&(r=t.style.fill.fgColor.argb?xh(t.style.fill.fgColor.argb):t.style.fill.fgColor.hasOwnProperty("theme")?Sh(t.style.fill.fgColor.theme,t.style.fill.fgColor.tint):t.style.fill.fgColor.indexed&&kh[t.style.fill.fgColor.indexed]||"#C7C9CC"),r&&(t.style.bgcolor=r);var e=null;if(t.style.font&&t.style.font.color&&(e=t.style.font.color.argb?xh(t.style.font.color.argb):t.style.font.color.hasOwnProperty("theme")?Sh(t.style.font.color.theme,t.style.font.color.tint):t.style.font.color.indexed&&kh[t.style.font.color.indexed]||"#000000"),e&&(t.style.color=e),t.style.alignment&&(t.style.alignment.horizontal&&(t.style.align=t.style.alignment.horizontal),t.style.alignment.vertical&&(t.style.valign=t.style.alignment.vertical)),t.style.alignment&&t.style.alignment.wrapText&&(t.style.textwrap=!0),t.style.border){var n={};Object.keys(t.style.border).forEach(function(a){var o=t.style.border[a],s="#000000";typeof o.color=="string"?s=o.color:o.color&&(o.color.argb?s=xh(o.color.argb):o.color.hasOwnProperty("theme")?s=Sh(o.color.theme,o.color.tint):o.color.indexed&&(s=kh[o.color.indexed])),n[a]=[o.style||"thin",s]}),t.style.border2=function(a){for(var o=1;o<arguments.length;o++){var s=arguments[o]!=null?arguments[o]:{};o%2?hv(Object(s),!0).forEach(function(i){Qc(a,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(s)):hv(Object(s)).forEach(function(i){Object.defineProperty(a,i,Object.getOwnPropertyDescriptor(s,i))})}return a}({},t.style.border),t.style.border=n}return t.style.font&&t.style.font.size&&typeof t.style.font.size=="number"&&(t.style.font.size=Math.round(t.style.font.size/1.333333)),t.style}function E5(t,r){var e=[],n=[];return t.eachSheet(function(a){n.push(a);var o={name:a.name,styles:[],rows:{},cols:{},merges:[],media:[]},s=[];for(var i in a._merges){o.merges.push(a._merges[i].shortRange);var c={};c.startAddress=a._merges[i].tl,c.endAddress=a._merges[i].br,c.YRange=a._merges[i].model.bottom-a._merges[i].model.top,c.XRange=a._merges[i].model.right-a._merges[i].model.left,s.push(c)}(function(u,f,h){for(var d=0;d<(u.columns||[]).length;d++)f.cols[d.toString()]={},u.columns[d].width?f.cols[d.toString()].width=6*u.columns[d].width+(h.widthOffset||0):f.cols[d.toString()].width=S5+(h.widthOffset||0);f.cols.len=Math.max(Object.keys(f.cols).length,h.minColLength||0)})(a,o,r),(a._rows||[]).forEach(function(u,f){o.rows[f]={cells:{}},u.height?o.rows[f].height=u.height+(r.heightOffset||0):o.rows[f].height=24+(r.heightOffset||0),(u._cells||[]).forEach(function(h,d){o.rows[f].cells[d]={};var p=yl.find(s,function(m){return m.startAddress==h._address});p&&h.master.address!=p.startAddress||(p&&(o.rows[f].cells[d].merge=[p.YRange,p.XRange]),o.rows[f].cells[d].text=function(m){var v=m.numFmt,b=m.value;switch(m.type){case 2:try{if(m.style.numFmt){if(m.style.numFmt.endsWith("%")){var g=m.style.numFmt.match(/\.(\d+)%/);return g?(100*b).toFixed(g[1].length)+"%":100*b+"%"}if(/0(\.0+)?/.test(m.style.numFmt)){var y="";if(m.style.numFmt.startsWith("$")?y="$":m.style.numFmt.startsWith('"¥')&&(y="¥"),b===0&&m.style.numFmt.startsWith("_"))return"-";var w=m.style.numFmt.match(/0\.(0+)(_|;|$)/);w=w?w[1].length:0;var x=b.toFixed(w)+"";if(m.style.numFmt.includes("#,##")){for(var C=(x=x.split("."))[0].split("").reverse(),O=[],D=0;D<C.length;D++)O.push(C[D]),(D+1)%3==0&&D<C.length-1&&C[D+1]!=="-"&&O.push(",");x[0]=O.reverse().join(""),x=x.join(".")}return y+x}}return b+""}catch(j){return b}case 3:return b;case 4:switch(v){case"yyyy-mm-dd;@":default:return po(b).format("YYYY-MM-DD");case"mm-dd-yy":return po(b).format("YYYY/MM/DD");case"[$-F800]dddd, mmmm dd, yyyy":return po(b).format("YYYY年M月D日 ddd");case'm"月"d"日";@':return po(b).format("M月D日");case"yyyy/m/d h:mm;@":case'm/d/yy "h":mm':return po(b).subtract(8,"hour").format("YYYY/M/DD HH:mm");case"h:mm;@":return po(b).format("HH:mm")}case 5:return b.text;case 6:return yl.get(b,"result.error")||b.result;case 8:return m.text;case 9:return m.text.toUpperCase();default:return b}}(h),o.styles.push(T5(h)),o.rows[f].cells[d].style=o.styles.length-1)})}),o._media&&(o.media=o._media);var l=Object.keys(o.rows);o.rows.len=Math.max(+l[l.length-1]+1,r.hasOwnProperty("minRowLength")?r.minRowLength:100),e.push(o)}),t._worksheets=n,{workbookData:e,workbookSource:t,medias:t.media||[]}}var Yl=[];function Kl(t,r,e,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};e&&e._media.length&&e._media.forEach(function(o){var s=o.imageId,i=o.range;if(o.type==="image"){var c=function(l,u,f,h){for(var d,p,m=h.widthOffset,v=h.heightOffset,b=u.tl,g=u.br,y=u.ext,w=b||{},x=w.nativeCol,C=x===void 0?0:x,O=w.nativeColOff,D=O===void 0?0:O,j=w.nativeRow,U=j===void 0?0:j,L=w.nativeRowOff,V=L===void 0?0:L,A=Xl,N=Zl,k=0;k<C;k++){var S;A+=6*(l==null||(S=l._columns)===null||S===void 0||(S=S[k])===null||S===void 0?void 0:S.width)||Th,A+=m||0}for(var E=0;E<U;E++){var T;N+=(l==null||(T=l._rows)===null||T===void 0||(T=T[E])===null||T===void 0?void 0:T.height)||Eh,N+=v||0}var R,F=A+D/12700,I=N+V/12700,B=g||{},P=B.nativeCol,H=P===void 0?0:P,Z=B.nativeColOff,Y=Z===void 0?0:Z,dt=B.nativeRow,gt=dt===void 0?0:dt,bt=B.nativeRowOff,Q=bt===void 0?0:bt,q=0;if(C===H)q=(Y-D)/12700;else if(g){var tt;q=(6*(l==null||(tt=l._columns)===null||tt===void 0||(tt=tt[C])===null||tt===void 0?void 0:tt.width)||Th)-D/12700;for(var et=C+1;et<H;et++){var _t;q+=6*(l==null||(_t=l._columns)===null||_t===void 0||(_t=_t[et])===null||_t===void 0?void 0:_t.width)||Th}q+=Y/12700}else y!=null&&y.width&&(q=y.width/1.333333);if(U===gt)R=(Q-V)/12700;else if(g){var J;R=((l==null||(J=l._rows)===null||J===void 0||(J=J[U])===null||J===void 0?void 0:J.height)||Eh)-V/12700;for(var st=U+1;st<gt;st++){var Ot;R+=(l==null||(Ot=l._rows)===null||Ot===void 0||(Ot=Ot[st])===null||Ot===void 0?void 0:Ot.height)||Eh}R+=Q/12700}else y!=null&&y.height&&(R=y.height/1.333333);return{x:(F-((f==null||(d=f.scroll)===null||d===void 0?void 0:d.x)||0))*_a,y:(I-((f==null||(p=f.scroll)===null||p===void 0?void 0:p.y)||0))*_a,width:q*_a,height:R*_a}}(e,i,n,a);(function(l,u,f,h){(function(d,p){return new Promise(function(m,v){if(Yl[d])return m(Yl[d]);var b=p.buffer.buffer,g=new Blob([b],{type:"image/"+p.extension}),y=URL.createObjectURL(g),w=new Image;w.src=y,w.onload=function(){m(w),Yl[d]=w},w.onerror=function(x){v(x)}})})(u,f).then(function(d){var p=0,m=0,v=d.width,b=d.height,g=h.x,y=h.y,w=h.width,x=h.height,C=w/v,O=x/b;if(g<Xl*_a){var D=Xl*_a-g;g=Xl*_a,w-=D,v-=D/C,p+=D/C}if(y<Zl*_a){var j=Zl*_a-y;y=Zl*_a,x-=j,b-=j/O,m+=j/O}l.drawImage(d,p,m,v,b,g,y,w,x)}).catch(function(d){console.error(d)})})(t,s,r[s],c)}})}var Xl=60,Zl=25,Th=80,Eh=24,_a=window.devicePixelRatio;function pv(){Yl=[]}function C5(t,r){var e=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(c,l){if(c){if(typeof c=="string")return mv(c,l);var u=Object.prototype.toString.call(c).slice(8,-1);if(u==="Object"&&c.constructor&&(u=c.constructor.name),u==="Map"||u==="Set")return Array.from(c);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return mv(c,l)}}(t))||r&&t&&typeof t.length=="number"){e&&(t=e);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,s=!0,i=!1;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return s=c.done,c},e:function(c){i=!0,o=c},f:function(){try{s||e.return==null||e.return()}finally{if(i)throw o}}}}function mv(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function A5(t){if(t){var r,e=C5(t.querySelectorAll("input"));try{for(e.s();!(r=e.n()).done;){var n=r.value;n&&!n.readOnly&&(n.readOnly=!0)}}catch(a){e.e(a)}finally{e.f()}document.activeElement&&document.activeElement.blur()}}const R5=(t,r)=>{const e=t.__vccOpts||t;for(const[n,a]of r)e[n]=a;return e};function vv(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),e.push.apply(e,n)}return e}function Ch(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?vv(Object(e),!0).forEach(function(n){Qc(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):vv(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}var gv={xls:!1,minColLength:20},M5=fa.defineComponent({name:"VueOfficeExcel",props:{src:[String,ArrayBuffer,Blob],requestOptions:{type:Object,default:function(){return{}}},options:{type:Object,default:function(){return Ch({},gv)}}},emits:["rendered","error","switchSheet"],setup:function(t,r){var e=r.emit,n=fa.ref(null),a=fa.ref(null),o={_worksheets:[]},s=[],i=0,c=null,l=null,u=null,f=null;function h(v){f=v,function(b,g){try{return g&&(b=ov(wh(b,{type:"array"}),{bookType:"xlsx",type:"array"})),new aw.Workbook().xlsx.load(b)}catch(y){return console.warn(y),Promise.reject(y)}}(v,t.options.xls).then(function(b){if(!b._worksheets||b._worksheets.length===0)throw new Error("未获取到数据,可能文件格式不正确或文件已损坏");t.options.beforeTransformData&&typeof t.options.beforeTransformData=="function"&&(b=t.options.beforeTransformData(b));var g=E5(b,Ch(Ch({},gv),t.options)),y=g.workbookData,w=g.medias,x=g.workbookSource;t.options.transformData&&typeof t.options.transformData=="function"&&(y=t.options.transformData(y)),s=w,o=x,u=null,i=0,pv(),l.loadData(y),Kl(c,s,o._worksheets[i],u,t.options),e("rendered"),e("switchSheet",0)}).catch(function(b){console.warn(b),s=[],o={_worksheets:[]},pv(),l&&l.loadData({}),e("error",b),e("switchSheet",0)})}var d=yl.debounce(A5,200).bind(this,a.value),p=new MutationObserver(d),m={attributes:!0,childList:!0,subtree:!0};return fa.onMounted(function(){fa.nextTick(function(){p.observe(a.value,m),d(a);var v=(l=new M0(a.value,{mode:"read",showToolbar:!1,showContextmenu:t.options.showContextmenu||!1,view:{height:function(){return n.value&&n.value.clientHeight||300},width:function(){return n.value&&n.value.clientWidth||1200}},row:{height:24,len:100},col:{len:26,width:80,indexWidth:60,minWidth:60},autoFocus:!1}).loadData({})).bottombar.swapFunc;l.bottombar.swapFunc=function(w){v.call(l.bottombar,w),i=w,setTimeout(function(){l.reRender(),Kl(c,s,o._worksheets[i],u,t.options),e("switchSheet",w)})};var b=l.sheet.editor.clear;l.sheet.editor.clear=function(){for(var w=arguments.length,x=new Array(w),C=0;C<w;C++)x[C]=arguments[C];b.apply(l.sheet.editor,x),setTimeout(function(){Kl(c,s,o._worksheets[i],u,t.options)})};var g=l.sheet.editor.setOffset;l.sheet.editor.setOffset=function(){for(var w=arguments.length,x=new Array(w),C=0;C<w;C++)x[C]=arguments[C];g.apply(l.sheet.editor,x),u=x[0],Kl(c,s,o._worksheets[i],u,t.options)};var y=a.value.querySelector("canvas");c=y.getContext("2d"),t.src&&dv(t.src,t.requestOptions).then(h).catch(function(w){s=[],o={_worksheets:[]},l.loadData({}),e("error",w)})})}),fa.onBeforeUnmount(function(){p.disconnect(),l=null}),fa.watch(function(){return t.src},function(){t.src?dv(t.src,t.requestOptions).then(h).catch(function(v){s=[],o={_worksheets:[]},l.loadData({}),e("error",v)}):(s=[],o={_worksheets:[]},l.loadData({}),e("error",new Error("src属性不能为空")))}),{wrapperRef:n,rootRef:a,save:function(v){(function(b,g){z0.apply(this,arguments)})(v||"vue-office-excel-".concat(new Date().getTime(),".xlsx"),f)}}}}),O5={class:"vue-office-excel",ref:"wrapperRef"},I5={class:"vue-office-excel-main",ref:"rootRef"};const Jl=R5(M5,[["render",function(t,r,e,n,a,o){return ao.openBlock(),ao.createElementBlock("div",O5,[ao.createElementVNode("div",I5,null,512)],512)}]]);return Jl.install=function(t){t.component(Jl.name,Jl)},Jl})})(o2);var D_=o2.exports;const F_=A_(D_),j_="https://xiaoxian521.github.io/hyperlink/other/excel.xlsx",z_=R_({name:"Excels",__name:"excels",setup(Cd){function Ad(){}function fa(){}return(ao,so)=>(I_(),M_(O_(F_),{src:j_,style:{height:"100vh"},onRendered:Ad,onError:fa}))}});export{z_ as default};
|