@ianicdev/datatables2 0.0.5 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,63 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("vue"),Ws=require("pinia");var Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Go(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}function an(l){throw new Error('Could not dynamically require "'+l+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var qs={exports:{}};/*! ExcelJS 19-10-2023 */(function(l,A){(function(e){l.exports=e()})(function(){return function e(p,g,u){function i(t,n){if(!g[t]){if(!p[t]){var c=typeof an=="function"&&an;if(!n&&c)return c(t,!0);if(o)return o(t,!0);var s=new Error("Cannot find module '"+t+"'");throw s.code="MODULE_NOT_FOUND",s}var a=g[t]={exports:{}};p[t][0].call(a.exports,function(f){return i(p[t][1][f]||f)},a,a.exports,e,p,g,u)}return g[t].exports}for(var o=typeof an=="function"&&an,r=0;r<u.length;r++)i(u[r]);return i}({1:[function(e,p,g){const u=e("fs"),i=e("fast-csv"),o=e("dayjs/plugin/customParseFormat"),r=e("dayjs/plugin/utc"),t=e("dayjs").extend(o).extend(r),n=e("../utils/stream-buf"),{fs:{exists:c}}=e("../utils/utils"),s={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!"}};p.exports=class{constructor(a){this.workbook=a,this.worksheet=null}async readFile(a,f){if(f=f||{},!await c(a))throw new Error("File not found: "+a);const h=u.createReadStream(a),d=await this.read(h,f);return h.close(),d}read(a,f){return f=f||{},new Promise((h,d)=>{const b=this.workbook.addWorksheet(f.sheetName),m=f.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],x=f.map||function(R){if(R==="")return null;const F=Number(R);if(!Number.isNaN(F)&&F!==1/0)return F;const L=m.reduce((D,z)=>{if(D)return D;const $=t(R,z,!0);return $.isValid()?$:null},null);if(L)return new Date(L.valueOf());const j=s[R];return j!==void 0?j:R},k=i.parse(f.parserOptions).on("data",R=>{b.addRow(R.map(x))}).on("end",()=>{k.emit("worksheet",b)});k.on("worksheet",h).on("error",d),a.pipe(k)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(a,f){return new Promise((h,d)=>{f=f||{};const b=this.workbook.getWorksheet(f.sheetName||f.sheetId),m=i.format(f.formatterOptions);a.on("finish",()=>{h()}),m.on("error",d),m.pipe(a);const{dateFormat:x,dateUTC:k}=f,R=f.map||(j=>{if(j){if(j.text||j.hyperlink)return j.hyperlink||j.text||"";if(j.formula||j.result)return j.result||"";if(j instanceof Date)return x?k?t.utc(j).format(x):t(j).format(x):k?t.utc(j).format():t(j).format();if(j.error)return j.error;if(typeof j=="object")return JSON.stringify(j)}return j}),F=f.includeEmptyRows===void 0||f.includeEmptyRows;let L=1;b&&b.eachRow((j,D)=>{if(F)for(;L++<D-1;)m.write([]);const{values:z}=j;z.shift(),m.write(z.map(R)),L=D}),m.end()})}writeFile(a,f){const h={encoding:(f=f||{}).encoding||"utf8"},d=u.createWriteStream(a,h);return this.write(d,f)}async writeBuffer(a){const f=new n;return await this.write(f,a),f.read()}}},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(e,p,g){const u=e("../utils/col-cache");class i{constructor(r,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=r,t)if(typeof t=="string"){const c=u.decodeAddress(t);this.nativeCol=c.col+n,this.nativeColOff=0,this.nativeRow=c.row+n,this.nativeRowOff=0}else t.nativeCol!==void 0?(this.nativeCol=t.nativeCol||0,this.nativeColOff=t.nativeColOff||0,this.nativeRow=t.nativeRow||0,this.nativeRowOff=t.nativeRowOff||0):t.col!==void 0?(this.col=t.col+n,this.row=t.row+n):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(r){return r instanceof i||r==null?r:new i(r)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(r){this.nativeCol=Math.floor(r),this.nativeColOff=Math.floor((r-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(r){this.nativeRow=Math.floor(r),this.nativeRowOff=Math.floor((r-this.nativeRow)*this.rowHeight)}get colWidth(){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}get rowHeight(){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}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(r){this.nativeCol=r.nativeCol,this.nativeColOff=r.nativeColOff,this.nativeRow=r.nativeRow,this.nativeRowOff=r.nativeRowOff}}p.exports=i},{"../utils/col-cache":19}],3:[function(e,p,g){const u=e("../utils/col-cache"),i=e("../utils/under-dash"),o=e("./enums"),{slideFormula:r}=e("../utils/shared-formula"),t=e("./note");class n{constructor(a,f,h){if(!a||!f)throw new Error("A Cell needs a Row");this._row=a,this._column=f,u.validateAddress(h),this._address=h,this._value=c.create(n.Types.Null,this),this.style=this._mergeStyle(a.style,f.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(a){this.style.numFmt=a}get font(){return this.style.font}set font(a){this.style.font=a}get alignment(){return this.style.alignment}set alignment(a){this.style.alignment=a}get border(){return this.style.border}set border(a){this.style.border=a}get fill(){return this.style.fill}set fill(a){this.style.fill=a}get protection(){return this.style.protection}set protection(a){this.style.protection=a}_mergeStyle(a,f,h){const d=a&&a.numFmt||f&&f.numFmt;d&&(h.numFmt=d);const b=a&&a.font||f&&f.font;b&&(h.font=b);const m=a&&a.alignment||f&&f.alignment;m&&(h.alignment=m);const x=a&&a.border||f&&f.border;x&&(h.border=x);const k=a&&a.fill||f&&f.fill;k&&(h.fill=k);const R=a&&a.protection||f&&f.protection;return R&&(h.protection=R),h}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===n.Types.Merge}merge(a,f){this._value.release(),this._value=c.create(n.Types.Merge,this,a),f||(this.style=a.style)}unmerge(){this.type===n.Types.Merge&&(this._value.release(),this._value=c.create(n.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(a){return this._value.type===n.Types.Merge&&this._value.isMergedTo(a)}get master(){return this.type===n.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===n.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(a){this.type!==n.Types.Merge?(this._value.release(),this._value=c.create(c.getType(a),this,a)):this._value.master.value=a}get note(){return this._comment&&this._comment.note}set note(a){this._comment=new t(a)}get text(){return this._value.toString()}get html(){return i.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(a){this.type===n.Types.String&&(this._value=c.create(n.Types.Hyperlink,this,{text:this._value.value,hyperlink:a}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:a}=this._row;return{sheetName:a.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(a){this.names=[a]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(a){const{definedNames:f}=this.workbook;f.removeAllNames(this.fullAddress),a.forEach(h=>{f.addEx(this.fullAddress,h)})}addName(a){this.workbook.definedNames.addEx(this.fullAddress,a)}removeName(a){this.workbook.definedNames.removeEx(this.fullAddress,a)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(a){this._dataValidations.add(this.address,a)}get model(){const{model:a}=this._value;return a.style=this.style,this._comment&&(a.comment=this._comment.model),a}set model(a){if(this._value.release(),this._value=c.create(a.type,this),this._value.model=a,a.comment)switch(a.comment.type){case"note":this._comment=t.fromModel(a.comment)}a.style?this.style=a.style:this.style={}}}n.Types=o.ValueType;const c={getType:s=>s==null?n.Types.Null:s instanceof String||typeof s=="string"?n.Types.String:typeof s=="number"?n.Types.Number:typeof s=="boolean"?n.Types.Boolean:s instanceof Date?n.Types.Date:s.text&&s.hyperlink?n.Types.Hyperlink:s.formula||s.sharedFormula?n.Types.Formula:s.richText?n.Types.RichText:s.sharedString?n.Types.SharedString:s.error?n.Types.Error:n.Types.JSON,types:[{t:n.Types.Null,f:class{constructor(s){this.model={address:s.address,type:n.Types.Null}}get value(){return null}set value(s){}get type(){return n.Types.Null}get effectiveType(){return n.Types.Null}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return""}release(){}toString(){return""}}},{t:n.Types.Number,f:class{constructor(s,a){this.model={address:s.address,type:n.Types.Number,value:a}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return n.Types.Number}get effectiveType(){return n.Types.Number}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:n.Types.String,f:class{constructor(s,a){this.model={address:s.address,type:n.Types.String,value:a}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return n.Types.String}get effectiveType(){return n.Types.String}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:n.Types.Date,f:class{constructor(s,a){this.model={address:s.address,type:n.Types.Date,value:a}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return n.Types.Date}get effectiveType(){return n.Types.Date}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:n.Types.Hyperlink,f:class{constructor(s,a){this.model={address:s.address,type:n.Types.Hyperlink,text:a?a.text:void 0,hyperlink:a?a.hyperlink:void 0},a&&a.tooltip&&(this.model.tooltip=a.tooltip)}get value(){const s={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(s.tooltip=this.model.tooltip),s}set value(s){this.model={text:s.text,hyperlink:s.hyperlink},s.tooltip&&(this.model.tooltip=s.tooltip)}get text(){return this.model.text}set text(s){this.model.text=s}get hyperlink(){return this.model.hyperlink}set hyperlink(s){this.model.hyperlink=s}get type(){return n.Types.Hyperlink}get effectiveType(){return n.Types.Hyperlink}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:n.Types.Formula,f:class{constructor(s,a){this.cell=s,this.model={address:s.address,type:n.Types.Formula,shareType:a?a.shareType:void 0,ref:a?a.ref:void 0,formula:a?a.formula:void 0,sharedFormula:a?a.sharedFormula:void 0,result:a?a.result:void 0}}_copyModel(s){const a={},f=h=>{const d=s[h];d&&(a[h]=d)};return f("formula"),f("result"),f("ref"),f("shareType"),f("sharedFormula"),a}get value(){return this._copyModel(this.model)}set value(s){this.model=this._copyModel(s)}validate(s){switch(c.getType(s)){case n.Types.Null:case n.Types.String:case n.Types.Number:case n.Types.Date:break;case n.Types.Hyperlink:case n.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){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)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(s){this.model.formula=s}get formulaType(){return this.model.formula?o.FormulaType.Master:this.model.sharedFormula?o.FormulaType.Shared:o.FormulaType.None}get result(){return this.model.result}set result(s){this.model.result=s}get type(){return n.Types.Formula}get effectiveType(){const s=this.model.result;return s==null?o.ValueType.Null:s instanceof String||typeof s=="string"?o.ValueType.String:typeof s=="number"?o.ValueType.Number:s instanceof Date?o.ValueType.Date:s.text&&s.hyperlink?o.ValueType.Hyperlink:s.formula?o.ValueType.Formula:o.ValueType.Null}get address(){return this.model.address}set address(s){this.model.address=s}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:s}=this.cell,a=s.findCell(this.model.sharedFormula);this._translatedFormula=a&&r(a.formula,a.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:n.Types.Merge,f:class{constructor(s,a){this.model={address:s.address,type:n.Types.Merge,master:a?a.address:void 0},this._master=a,a&&a.addMergeRef()}get value(){return this._master.value}set value(s){s instanceof n?(this._master&&this._master.releaseMergeRef(),s.addMergeRef(),this._master=s):this._master.value=s}isMergedTo(s){return s===this._master}get master(){return this._master}get type(){return n.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:n.Types.JSON,f:class{constructor(s,a){this.model={address:s.address,type:n.Types.String,value:JSON.stringify(a),rawValue:a}}get value(){return this.model.rawValue}set value(s){this.model.rawValue=s,this.model.value=JSON.stringify(s)}get type(){return n.Types.String}get effectiveType(){return n.Types.String}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:n.Types.SharedString,f:class{constructor(s,a){this.model={address:s.address,type:n.Types.SharedString,value:a}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return n.Types.SharedString}get effectiveType(){return n.Types.SharedString}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:n.Types.RichText,f:class{constructor(s,a){this.model={address:s.address,type:n.Types.String,value:a}}get value(){return this.model.value}set value(s){this.model.value=s}toString(){return this.model.value.richText.map(s=>s.text).join("")}get type(){return n.Types.RichText}get effectiveType(){return n.Types.RichText}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:n.Types.Boolean,f:class{constructor(s,a){this.model={address:s.address,type:n.Types.Boolean,value:a}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return n.Types.Boolean}get effectiveType(){return n.Types.Boolean}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:n.Types.Error,f:class{constructor(s,a){this.model={address:s.address,type:n.Types.Error,value:a}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return n.Types.Error}get effectiveType(){return n.Types.Error}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((s,a)=>(s[a.t]=a.f,s),[]),create(s,a,f){const h=this.types[s];if(!h)throw new Error("Could not create Value of type "+s);return new h(a,f)}};p.exports=n},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(e,p,g){const u=e("../utils/under-dash"),i=e("./enums"),o=e("../utils/col-cache");class r{constructor(n,c,s){this._worksheet=n,this._number=c,s!==!1&&(this.defn=s)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return o.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(n){n?(this.key=n.key,this.width=n.width!==void 0?n.width:9,this.outlineLevel=n.outlineLevel,n.style?this.style=n.style:this.style={},this.header=n.header,this._hidden=!!n.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(n){n!==void 0?(this._header=n,this.headers.forEach((c,s)=>{this._worksheet.getCell(s+1,this.number).value=c})):this._header=void 0}get key(){return this._key}set key(n){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=n,n&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(n){this._hidden=n}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(n){this._outlineLevel=n}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(n){return this.width===n.width&&this.hidden===n.hidden&&this.outlineLevel===n.outlineLevel&&u.isEqual(this.style,n.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const n=this.style;return!n||!(n.font||n.numFmt||n.alignment||n.border||n.fill||n.protection)}get headerCount(){return this.headers.length}eachCell(n,c){const s=this.number;c||(c=n,n=null),this._worksheet.eachRow(n,(a,f)=>{c(a.getCell(s),f)})}get values(){const n=[];return this.eachCell((c,s)=>{c&&c.type!==i.ValueType.Null&&(n[s]=c.value)}),n}set values(n){if(!n)return;const c=this.number;let s=0;n.hasOwnProperty("0")&&(s=1),n.forEach((a,f)=>{this._worksheet.getCell(f+s,c).value=a})}_applyStyle(n,c){return this.style[n]=c,this.eachCell(s=>{s[n]=c}),c}get numFmt(){return this.style.numFmt}set numFmt(n){this._applyStyle("numFmt",n)}get font(){return this.style.font}set font(n){this._applyStyle("font",n)}get alignment(){return this.style.alignment}set alignment(n){this._applyStyle("alignment",n)}get protection(){return this.style.protection}set protection(n){this._applyStyle("protection",n)}get border(){return this.style.border}set border(n){this._applyStyle("border",n)}get fill(){return this.style.fill}set fill(n){this._applyStyle("fill",n)}static toModel(n){const c=[];let s=null;return n&&n.forEach((a,f)=>{a.isDefault?s&&(s=null):s&&a.equivalentTo(s)?s.max=f+1:(s={min:f+1,max:f+1,width:a.width!==void 0?a.width:9,style:a.style,isCustomWidth:a.isCustomWidth,hidden:a.hidden,outlineLevel:a.outlineLevel,collapsed:a.collapsed},c.push(s))}),c.length?c:void 0}static fromModel(n,c){const s=[];let a=1,f=0;for(c=(c=c||[]).sort(function(h,d){return h.min-d.min});f<c.length;){const h=c[f++];for(;a<h.min;)s.push(new r(n,a++));for(;a<=h.max;)s.push(new r(n,a++,h))}return s.length?s:null}}p.exports=r},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(e,p,g){p.exports=class{constructor(u){this.model=u||{}}add(u,i){return this.model[u]=i}find(u){return this.model[u]}remove(u){this.model[u]=void 0}}},{}],6:[function(e,p,g){const u=e("../utils/under-dash"),i=e("../utils/col-cache"),o=e("../utils/cell-matrix"),r=e("./range"),t=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;p.exports=class{constructor(){this.matrixMap={}}getMatrix(n){return this.matrixMap[n]||(this.matrixMap[n]=new o)}add(n,c){const s=i.decodeEx(n);this.addEx(s,c)}addEx(n,c){const s=this.getMatrix(c);if(n.top)for(let a=n.left;a<=n.right;a++)for(let f=n.top;f<=n.bottom;f++){const h={sheetName:n.sheetName,address:i.n2l(a)+f,row:f,col:a};s.addCellEx(h)}else s.addCellEx(n)}remove(n,c){const s=i.decodeEx(n);this.removeEx(s,c)}removeEx(n,c){this.getMatrix(c).removeCellEx(n)}removeAllNames(n){u.each(this.matrixMap,c=>{c.removeCellEx(n)})}forEach(n){u.each(this.matrixMap,(c,s)=>{c.forEach(a=>{n(s,a)})})}getNames(n){return this.getNamesEx(i.decodeEx(n))}getNamesEx(n){return u.map(this.matrixMap,(c,s)=>c.findCellEx(n)&&s).filter(Boolean)}_explore(n,c){c.mark=!1;const{sheetName:s}=c,a=new r(c.row,c.col,c.row,c.col,s);let f,h;function d(m,x){const k=n.findCellAt(s,m,c.col);return!(!k||!k.mark)&&(a[x]=m,k.mark=!1,!0)}for(h=c.row-1;d(h,"top");h--);for(h=c.row+1;d(h,"bottom");h++);function b(m,x){const k=[];for(h=a.top;h<=a.bottom;h++){const R=n.findCellAt(s,h,m);if(!R||!R.mark)return!1;k.push(R)}a[x]=m;for(let R=0;R<k.length;R++)k[R].mark=!1;return!0}for(f=c.col-1;b(f,"left");f--);for(f=c.col+1;b(f,"right");f++);return a}getRanges(n,c){return(c=c||this.matrixMap[n])?(c.forEach(s=>{s.mark=!0}),{name:n,ranges:c.map(s=>s.mark&&this._explore(c,s)).filter(Boolean).map(s=>s.$shortRange)}):{name:n,ranges:[]}}normaliseMatrix(n,c){n.forEachInSheet(c,(s,a,f)=>{s&&(s.row===a&&s.col===f||(s.row=a,s.col=f,s.address=i.n2l(f)+a))})}spliceRows(n,c,s,a){u.each(this.matrixMap,f=>{f.spliceRows(n,c,s,a),this.normaliseMatrix(f,n)})}spliceColumns(n,c,s,a){u.each(this.matrixMap,f=>{f.spliceColumns(n,c,s,a),this.normaliseMatrix(f,n)})}get model(){return u.map(this.matrixMap,(n,c)=>this.getRanges(c,n)).filter(n=>n.ranges.length)}set model(n){const c=this.matrixMap={};n.forEach(s=>{const a=c[s.name]=new o;s.ranges.forEach(f=>{t.test(f.split("!").pop()||"")&&a.addCell(f)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(e,p,g){p.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(e,p,g){const u=e("../utils/col-cache"),i=e("./anchor");p.exports=class{constructor(o,r){this.worksheet=o,this.model=r}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(o){let{type:r,imageId:t,range:n,hyperlinks:c}=o;if(this.type=r,this.imageId=t,r==="image")if(typeof n=="string"){const s=u.decode(n);this.range={tl:new i(this.worksheet,{col:s.left,row:s.top},-1),br:new i(this.worksheet,{col:s.right,row:s.bottom},0),editAs:"oneCell"}}else this.range={tl:new i(this.worksheet,n.tl,0),br:n.br&&new i(this.worksheet,n.br,0),ext:n.ext,editAs:n.editAs,hyperlinks:c||n.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(e,p,g){const u=e("../utils/under-dash");class i{constructor(r){this.note=r}get model(){let r=null;switch(typeof this.note){case"string":r={type:"note",note:{texts:[{text:this.note}]}};break;default:r={type:"note",note:this.note}}return u.deepMerge({},i.DEFAULT_CONFIGS,r)}set model(r){const{note:t}=r,{texts:n}=t;n.length===1&&Object.keys(n[0]).length===1?this.note=n[0].text:this.note=t}static fromModel(r){const t=new i;return t.model=r,t}}i.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},p.exports=i},{"../utils/under-dash":26}],10:[function(e,p,g){const u=e("../utils/col-cache");class i{constructor(){this.decode(arguments)}setTLBR(r,t,n,c,s){if(arguments.length<4){const a=u.decodeAddress(r),f=u.decodeAddress(t);this.model={top:Math.min(a.row,f.row),left:Math.min(a.col,f.col),bottom:Math.max(a.row,f.row),right:Math.max(a.col,f.col),sheetName:n},this.setTLBR(a.row,a.col,f.row,f.col,s)}else this.model={top:Math.min(r,n),left:Math.min(t,c),bottom:Math.max(r,n),right:Math.max(t,c),sheetName:s}}decode(r){switch(r.length){case 5:this.setTLBR(r[0],r[1],r[2],r[3],r[4]);break;case 4:this.setTLBR(r[0],r[1],r[2],r[3]);break;case 3:this.setTLBR(r[0],r[1],r[2]);break;case 2:this.setTLBR(r[0],r[1]);break;case 1:{const t=r[0];if(t instanceof i)this.model={top:t.model.top,left:t.model.left,bottom:t.model.bottom,right:t.model.right,sheetName:t.sheetName};else if(t instanceof Array)this.decode(t);else if(t.top&&t.left&&t.bottom&&t.right)this.model={top:t.top,left:t.left,bottom:t.bottom,right:t.right,sheetName:t.sheetName};else{const n=u.decodeEx(t);n.top?this.model={top:n.top,left:n.left,bottom:n.bottom,right:n.right,sheetName:n.sheetName}:this.model={top:n.row,left:n.col,bottom:n.row,right:n.col,sheetName:n.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+r.length)}}get top(){return this.model.top||1}set top(r){this.model.top=r}get left(){return this.model.left||1}set left(r){this.model.left=r}get bottom(){return this.model.bottom||1}set bottom(r){this.model.bottom=r}get right(){return this.model.right||1}set right(r){this.model.right=r}get sheetName(){return this.model.sheetName}set sheetName(r){this.model.sheetName=r}get _serialisedSheetName(){const{sheetName:r}=this.model;return r?/^[a-zA-Z0-9]*$/.test(r)?r+"!":`'${r}'!`:""}expand(r,t,n,c){(!this.model.top||r<this.top)&&(this.top=r),(!this.model.left||t<this.left)&&(this.left=t),(!this.model.bottom||n>this.bottom)&&(this.bottom=n),(!this.model.right||c>this.right)&&(this.right=c)}expandRow(r){if(r){const{dimensions:t,number:n}=r;t&&this.expand(n,t.min,n,t.max)}}expandToAddress(r){const t=u.decodeEx(r);this.expand(t.row,t.col,t.row,t.col)}get tl(){return u.n2l(this.left)+this.top}get $t$l(){return`$${u.n2l(this.left)}$${this.top}`}get br(){return u.n2l(this.right)+this.bottom}get $b$r(){return`$${u.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(r){return(!r.sheetName||!this.sheetName||r.sheetName===this.sheetName)&&!(r.bottom<this.top)&&!(r.top>this.bottom)&&!(r.right<this.left)&&!(r.left>this.right)}contains(r){const t=u.decodeEx(r);return this.containsEx(t)}containsEx(r){return(!r.sheetName||!this.sheetName||r.sheetName===this.sheetName)&&r.row>=this.top&&r.row<=this.bottom&&r.col>=this.left&&r.col<=this.right}forEachAddress(r){for(let t=this.left;t<=this.right;t++)for(let n=this.top;n<=this.bottom;n++)r(u.encodeAddress(n,t),n,t)}}p.exports=i},{"../utils/col-cache":19}],11:[function(e,p,g){const u=e("../utils/under-dash"),i=e("./enums"),o=e("../utils/col-cache"),r=e("./cell");p.exports=class{constructor(t,n){this._worksheet=t,this._number=n,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(t){return this._cells[t-1]}getCellEx(t){let n=this._cells[t.col-1];if(!n){const c=this._worksheet.getColumn(t.col);n=new r(this,c,t.address),this._cells[t.col-1]=n}return n}getCell(t){if(typeof t=="string"){const n=this._worksheet.getColumnKey(t);t=n?n.number:o.l2n(t)}return this._cells[t-1]||this.getCellEx({address:o.encodeAddress(this._number,t),row:this._number,col:t})}splice(t,n){const c=t+n;for(var s=arguments.length,a=new Array(s>2?s-2:0),f=2;f<s;f++)a[f-2]=arguments[f];const h=a.length-n,d=this._cells.length;let b,m,x;if(h<0)for(b=t+a.length;b<=d;b++)x=this._cells[b-1],m=this._cells[b-h-1],m?(x=this.getCell(b),x.value=m.value,x.style=m.style,x._comment=m._comment):x&&(x.value=null,x.style={},x._comment=void 0);else if(h>0)for(b=d;b>=c;b--)m=this._cells[b-1],m?(x=this.getCell(b+h),x.value=m.value,x.style=m.style,x._comment=m._comment):this._cells[b+h-1]=void 0;for(b=0;b<a.length;b++)x=this.getCell(t+b),x.value=a[b],x.style={},x._comment=void 0}eachCell(t,n){if(n||(n=t,t=null),t&&t.includeEmpty){const c=this._cells.length;for(let s=1;s<=c;s++)n(this.getCell(s),s)}else this._cells.forEach((c,s)=>{c&&c.type!==i.ValueType.Null&&n(c,s+1)})}addPageBreak(t,n){const c=this._worksheet,s=Math.max(0,t-1)||0,a=Math.max(0,n-1)||16838,f={id:this._number,max:a,man:1};s&&(f.min=s),c.rowBreaks.push(f)}get values(){const t=[];return this._cells.forEach(n=>{n&&n.type!==i.ValueType.Null&&(t[n.col]=n.value)}),t}set values(t){if(this._cells=[],t)if(t instanceof Array){let n=0;t.hasOwnProperty("0")&&(n=1),t.forEach((c,s)=>{c!==void 0&&(this.getCellEx({address:o.encodeAddress(this._number,s+n),row:this._number,col:s+n}).value=c)})}else this._worksheet.eachColumnKey((n,c)=>{t[c]!==void 0&&(this.getCellEx({address:o.encodeAddress(this._number,n.number),row:this._number,col:n.number}).value=t[c])})}get hasValues(){return u.some(this._cells,t=>t&&t.type!==i.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let t=0;return this.eachCell(()=>{t++}),t}get dimensions(){let t=0,n=0;return this._cells.forEach(c=>{c&&c.type!==i.ValueType.Null&&((!t||t>c.col)&&(t=c.col),n<c.col&&(n=c.col))}),t>0?{min:t,max:n}:null}_applyStyle(t,n){return this.style[t]=n,this._cells.forEach(c=>{c&&(c[t]=n)}),n}get numFmt(){return this.style.numFmt}set numFmt(t){this._applyStyle("numFmt",t)}get font(){return this.style.font}set font(t){this._applyStyle("font",t)}get alignment(){return this.style.alignment}set alignment(t){this._applyStyle("alignment",t)}get protection(){return this.style.protection}set protection(t){this._applyStyle("protection",t)}get border(){return this.style.border}set border(t){this._applyStyle("border",t)}get fill(){return this.style.fill}set fill(t){this._applyStyle("fill",t)}get hidden(){return!!this._hidden}set hidden(t){this._hidden=t}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(t){this._outlineLevel=t}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const t=[];let n=0,c=0;return this._cells.forEach(s=>{if(s){const a=s.model;a&&((!n||n>s.col)&&(n=s.col),c<s.col&&(c=s.col),t.push(a))}}),this.height||t.length?{cells:t,number:this.number,min:n,max:c,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(t){if(t.number!==this._number)throw new Error("Invalid row number in model");let n;this._cells=[],t.cells.forEach(c=>{switch(c.type){case r.Types.Merge:break;default:{let s;if(c.address)s=o.decodeAddress(c.address);else if(n){const{row:a}=n,f=n.col+1;s={row:a,col:f,address:o.encodeAddress(a,f),$col$row:`$${o.n2l(f)}$${a}`}}n=s,this.getCellEx(s).model=c;break}}}),t.height?this.height=t.height:delete this.height,this.hidden=t.hidden,this.outlineLevel=t.outlineLevel||0,this.style=t.style&&JSON.parse(JSON.stringify(t.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(e,p,g){const u=e("../utils/col-cache");class i{constructor(r,t,n){this.table=r,this.column=t,this.index=n}_set(r,t){this.table.cacheState(),this.column[r]=t}get name(){return this.column.name}set name(r){this._set("name",r)}get filterButton(){return this.column.filterButton}set filterButton(r){this.column.filterButton=r}get style(){return this.column.style}set style(r){this.column.style=r}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(r){this._set("totalsRowLabel",r)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(r){this._set("totalsRowFunction",r)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(r){this._set("totalsRowResult",r)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(r){this._set("totalsRowFormula",r)}}p.exports=class{constructor(o,r){this.worksheet=o,r&&(this.table=r,this.validate(),this.store())}getFormula(o){switch(o.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${o.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${o.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${o.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${o.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${o.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${o.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${o.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${o.name}])`;case"custom":return o.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+o.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:o}=this,r=(h,d,b)=>{h[d]===void 0&&(h[d]=b)};r(o,"headerRow",!0),r(o,"totalsRow",!1),r(o,"style",{}),r(o.style,"theme","TableStyleMedium2"),r(o.style,"showFirstColumn",!1),r(o.style,"showLastColumn",!1),r(o.style,"showRowStripes",!1),r(o.style,"showColumnStripes",!1);const t=(h,d)=>{if(!h)throw new Error(d)};t(o.ref,"Table must have ref"),t(o.columns,"Table must have column definitions"),t(o.rows,"Table must have row definitions"),o.tl=u.decodeAddress(o.ref);const{row:n,col:c}=o.tl;t(n>0,"Table must be on valid row"),t(c>0,"Table must be on valid col");const{width:s,filterHeight:a,tableHeight:f}=this;o.autoFilterRef=u.encode(n,c,n+a-1,c+s-1),o.tableRef=u.encode(n,c,n+f-1,c+s-1),o.columns.forEach((h,d)=>{t(h.name,`Column ${d} must have a name`),d===0?r(h,"totalsRowLabel","Total"):(r(h,"totalsRowFunction","none"),h.totalsRowFormula=this.getFormula(h))})}store(){const o=(a,f)=>{f&&Object.keys(f).forEach(h=>{a[h]=f[h]})},{worksheet:r,table:t}=this,{row:n,col:c}=t.tl;let s=0;if(t.headerRow){const a=r.getRow(n+s++);t.columns.forEach((f,h)=>{const{style:d,name:b}=f,m=a.getCell(c+h);m.value=b,o(m,d)})}if(t.rows.forEach(a=>{const f=r.getRow(n+s++);a.forEach((h,d)=>{const b=f.getCell(c+d);b.value=h,o(b,t.columns[d].style)})}),t.totalsRow){const a=r.getRow(n+s++);t.columns.forEach((f,h)=>{const d=a.getCell(c+h);if(h===0)d.value=f.totalsRowLabel;else{const b=this.getFormula(f);d.value=b?{formula:f.totalsRowFormula,result:f.totalsRowResult}:null}o(d,f.style)})}}load(o){const{table:r}=this,{row:t,col:n}=r.tl;let c=0;if(r.headerRow){const s=o.getRow(t+c++);r.columns.forEach((a,f)=>{s.getCell(n+f).value=a.name})}if(r.rows.forEach(s=>{const a=o.getRow(t+c++);s.forEach((f,h)=>{a.getCell(n+h).value=f})}),r.totalsRow){const s=o.getRow(t+c++);r.columns.forEach((a,f)=>{const h=s.getCell(n+f);f===0?h.value=a.totalsRowLabel:this.getFormula(a)&&(h.value={formula:a.totalsRowFormula,result:a.totalsRowResult})})}}get model(){return this.table}set model(o){this.table=o}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const o=u.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let r=0;r<this._cache.tableHeight;r++){const t=this.worksheet.getRow(o.row+r);for(let n=0;n<this._cache.width;n++)t.getCell(o.col+n).value=null}else{for(let r=this.tableHeight;r<this._cache.tableHeight;r++){const t=this.worksheet.getRow(o.row+r);for(let n=0;n<this._cache.width;n++)t.getCell(o.col+n).value=null}for(let r=0;r<this.tableHeight;r++){const t=this.worksheet.getRow(o.row+r);for(let n=this.width;n<this._cache.width;n++)t.getCell(o.col+n).value=null}}this.store()}addRow(o,r){this.cacheState(),r===void 0?this.table.rows.push(o):this.table.rows.splice(r,0,o)}removeRows(o){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(o,r)}getColumn(o){const r=this.table.columns[o];return new i(this,r,o)}addColumn(o,r,t){this.cacheState(),t===void 0?(this.table.columns.push(o),this.table.rows.forEach((n,c)=>{n.push(r[c])})):(this.table.columns.splice(t,0,o),this.table.rows.forEach((n,c)=>{n.splice(t,0,r[c])}))}removeColumns(o){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(o,r),this.table.rows.forEach(t=>{t.splice(o,r)})}_assign(o,r,t){this.cacheState(),o[r]=t}get ref(){return this.table.ref}set ref(o){this._assign(this.table,"ref",o)}get name(){return this.table.name}set name(o){this.table.name=o}get displayName(){return this.table.displyName||this.table.name}set displayNamename(o){this.table.displayName=o}get headerRow(){return this.table.headerRow}set headerRow(o){this._assign(this.table,"headerRow",o)}get totalsRow(){return this.table.totalsRow}set totalsRow(o){this._assign(this.table,"totalsRow",o)}get theme(){return this.table.style.name}set theme(o){this.table.style.name=o}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(o){this.table.style.showFirstColumn=o}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(o){this.table.style.showLastColumn=o}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(o){this.table.style.showRowStripes=o}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(o){this.table.style.showColumnStripes=o}}},{"../utils/col-cache":19}],13:[function(e,p,g){const u=e("./worksheet"),i=e("./defined-names"),o=e("../xlsx/xlsx"),r=e("../csv/csv");p.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new i}get xlsx(){return this._xlsx||(this._xlsx=new o(this)),this._xlsx}get csv(){return this._csv||(this._csv=new r(this)),this._csv}get nextId(){for(let t=1;t<this._worksheets.length;t++)if(!this._worksheets[t])return t;return this._worksheets.length||1}addWorksheet(t,n){const c=this.nextId;n&&(typeof n=="string"?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),n={properties:{tabColor:{argb:n}}}):(n.argb||n.theme||n.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),n={properties:{tabColor:n}}));const s=this._worksheets.reduce((h,d)=>(d&&d.orderNo)>h?d.orderNo:h,0),a=Object.assign({},n,{id:c,name:t,orderNo:s+1,workbook:this}),f=new u(a);return this._worksheets[c]=f,f}removeWorksheetEx(t){delete this._worksheets[t.id]}removeWorksheet(t){const n=this.getWorksheet(t);n&&n.destroy()}getWorksheet(t){return t===void 0?this._worksheets.find(Boolean):typeof t=="number"?this._worksheets[t]:typeof t=="string"?this._worksheets.find(n=>n&&n.name===t):void 0}get worksheets(){return this._worksheets.slice(1).sort((t,n)=>t.orderNo-n.orderNo).filter(Boolean)}eachSheet(t){this.worksheets.forEach(n=>{t(n,n.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(t){const n=this.media.length;return this.media.push(Object.assign({},t,{type:"image"})),n}getImage(t){return this.media[t]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(t=>t.model),sheets:this.worksheets.map(t=>t.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(t){this.creator=t.creator,this.lastModifiedBy=t.lastModifiedBy,this.lastPrinted=t.lastPrinted,this.created=t.created,this.modified=t.modified,this.company=t.company,this.manager=t.manager,this.title=t.title,this.subject=t.subject,this.keywords=t.keywords,this.category=t.category,this.description=t.description,this.language=t.language,this.revision=t.revision,this.contentStatus=t.contentStatus,this.properties=t.properties,this.calcProperties=t.calcProperties,this._worksheets=[],t.worksheets.forEach(n=>{const{id:c,name:s,state:a}=n,f=t.sheets&&t.sheets.findIndex(h=>h.id===c);(this._worksheets[c]=new u({id:c,name:s,orderNo:f,state:a,workbook:this})).model=n}),this._definedNames.model=t.definedNames,this.views=t.views,this._themes=t.themes,this.media=t.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(e,p,g){const u=e("../utils/under-dash"),i=e("../utils/col-cache"),o=e("./range"),r=e("./row"),t=e("./column"),n=e("./enums"),c=e("./image"),s=e("./table"),a=e("./data-validations"),f=e("../utils/encryptor"),{copyStyle:h}=e("../utils/copy-style");p.exports=class{constructor(d){d=d||{},this._workbook=d.workbook,this.id=d.id,this.orderNo=d.orderNo,this.name=d.name,this.state=d.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},d.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!d.pageSetup||!d.pageSetup.fitToWidth&&!d.pageSetup.fitToHeight||d.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},d.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},d.headerFooter),this.dataValidations=new a,this.views=d.views||[],this.autoFilter=d.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(d){if(d===void 0&&(d="sheet"+this.id),this._name!==d){if(typeof d!="string")throw new Error("The name has to be a string.");if(d==="")throw new Error("The name can't be empty.");if(d==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(d))throw new Error(`Worksheet name ${d} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(d))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+d);if(d&&d.length>31&&(console.warn(`Worksheet name ${d} exceeds 31 chars. This will be truncated`),d=d.substring(0,31)),this._workbook._worksheets.find(b=>b&&b.name.toLowerCase()===d.toLowerCase()))throw new Error("Worksheet name already exists: "+d);this._name=d}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const d=new o;return this._rows.forEach(b=>{if(b){const m=b.dimensions;m&&d.expand(b.number,m.min,b.number,m.max)}}),d}get columns(){return this._columns}set columns(d){this._headerRowCount=d.reduce((x,k)=>{const R=(k.header?1:k.headers&&k.headers.length)||0;return Math.max(x,R)},0);let b=1;const m=this._columns=[];d.forEach(x=>{const k=new t(this,b++,!1);m.push(k),k.defn=x})}getColumnKey(d){return this._keys[d]}setColumnKey(d,b){this._keys[d]=b}deleteColumnKey(d){delete this._keys[d]}eachColumnKey(d){u.each(this._keys,d)}getColumn(d){if(typeof d=="string"){const b=this._keys[d];if(b)return b;d=i.l2n(d)}if(this._columns||(this._columns=[]),d>this._columns.length){let b=this._columns.length+1;for(;b<=d;)this._columns.push(new t(this,b++))}return this._columns[d-1]}spliceColumns(d,b){const m=this._rows.length;for(var x=arguments.length,k=new Array(x>2?x-2:0),R=2;R<x;R++)k[R-2]=arguments[R];if(k.length>0)for(let D=0;D<m;D++){const z=[d,b];k.forEach(V=>{z.push(V[D]||null)});const $=this.getRow(D+1);$.splice.apply($,z)}else this._rows.forEach(D=>{D&&D.splice(d,b)});const F=k.length-b,L=d+b,j=this._columns.length;if(F<0)for(let D=d+k.length;D<=j;D++)this.getColumn(D).defn=this.getColumn(D-F).defn;else if(F>0)for(let D=j;D>=L;D--)this.getColumn(D+F).defn=this.getColumn(D).defn;for(let D=d;D<d+k.length;D++)this.getColumn(D).defn=null;this.workbook.definedNames.spliceColumns(this.name,d,b,k.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let d=0;return this.eachRow(b=>{d=Math.max(d,b.cellCount)}),d}get actualColumnCount(){const d=[];let b=0;return this.eachRow(m=>{m.eachCell(x=>{let{col:k}=x;d[k]||(d[k]=!0,b++)})}),b}_commitRow(){}get _lastRowNumber(){const d=this._rows;let b=d.length;for(;b>0&&d[b-1]===void 0;)b--;return b}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(d){return this._rows[d-1]}findRows(d,b){return this._rows.slice(d-1,d-1+b)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let d=0;return this.eachRow(()=>{d++}),d}getRow(d){let b=this._rows[d-1];return b||(b=this._rows[d-1]=new r(this,d)),b}getRows(d,b){if(b<1)return;const m=[];for(let x=d;x<d+b;x++)m.push(this.getRow(x));return m}addRow(d){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const m=this._nextRow,x=this.getRow(m);return x.values=d,this._setStyleOption(m,b[0]==="i"?b:"n"),x}addRows(d){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const m=[];return d.forEach(x=>{m.push(this.addRow(x,b))}),m}insertRow(d,b){let m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(d,0,b),this._setStyleOption(d,m),this.getRow(d)}insertRows(d,b){let m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(d,0,...b),m!=="n")for(let x=0;x<b.length;x++)m[0]==="o"&&this.findRow(b.length+d+x)!==void 0?this._copyStyle(b.length+d+x,d+x,m[1]==="+"):m[0]==="i"&&this.findRow(d-1)!==void 0&&this._copyStyle(d-1,d+x,m[1]==="+");return this.getRows(d,b.length)}_setStyleOption(d){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";b[0]==="o"&&this.findRow(d+1)!==void 0?this._copyStyle(d+1,d,b[1]==="+"):b[0]==="i"&&this.findRow(d-1)!==void 0&&this._copyStyle(d-1,d,b[1]==="+")}_copyStyle(d,b){let m=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const x=this.getRow(d),k=this.getRow(b);k.style=h(x.style),x.eachCell({includeEmpty:m},(R,F)=>{k.getCell(F).style=h(R.style)}),k.height=x.height}duplicateRow(d,b){let m=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const x=this._rows[d-1],k=new Array(b).fill(x.values);this.spliceRows(d+1,m?0:b,...k);for(let R=0;R<b;R++){const F=this._rows[d+R];F.style=x.style,F.height=x.height,x.eachCell({includeEmpty:!0},(L,j)=>{F.getCell(j).style=L.style})}}spliceRows(d,b){const m=d+b;for(var x=arguments.length,k=new Array(x>2?x-2:0),R=2;R<x;R++)k[R-2]=arguments[R];const F=k.length,L=F-b,j=this._rows.length;let D,z;if(L<0)for(d===j&&(this._rows[j-1]=void 0),D=m;D<=j;D++)if(z=this._rows[D-1],z){const $=this.getRow(D+L);$.values=z.values,$.style=z.style,$.height=z.height,z.eachCell({includeEmpty:!0},(V,T)=>{$.getCell(T).style=V.style}),this._rows[D-1]=void 0}else this._rows[D+L-1]=void 0;else if(L>0)for(D=j;D>=m;D--)if(z=this._rows[D-1],z){const $=this.getRow(D+L);$.values=z.values,$.style=z.style,$.height=z.height,z.eachCell({includeEmpty:!0},(V,T)=>{if($.getCell(T).style=V.style,V._value.constructor.name==="MergeValue"){const M=this.getRow(V._row._number+F).getCell(T),S=V._value._master,v=this.getRow(S._row._number+F).getCell(S._column._number);M.merge(v)}})}else this._rows[D+L-1]=void 0;for(D=0;D<F;D++){const $=this.getRow(d+D);$.style={},$.values=k[D]}this.workbook.definedNames.spliceRows(this.name,d,b,F)}eachRow(d,b){if(b||(b=d,d=void 0),d&&d.includeEmpty){const m=this._rows.length;for(let x=1;x<=m;x++)b(this.getRow(x),x)}else this._rows.forEach(m=>{m&&m.hasValues&&b(m,m.number)})}getSheetValues(){const d=[];return this._rows.forEach(b=>{b&&(d[b.number]=b.values)}),d}findCell(d,b){const m=i.getAddress(d,b),x=this._rows[m.row-1];return x?x.findCell(m.col):void 0}getCell(d,b){const m=i.getAddress(d,b);return this.getRow(m.row).getCellEx(m)}mergeCells(){for(var d=arguments.length,b=new Array(d),m=0;m<d;m++)b[m]=arguments[m];const x=new o(b);this._mergeCellsInternal(x)}mergeCellsWithoutStyle(){for(var d=arguments.length,b=new Array(d),m=0;m<d;m++)b[m]=arguments[m];const x=new o(b);this._mergeCellsInternal(x,!0)}_mergeCellsInternal(d,b){u.each(this._merges,x=>{if(x.intersects(d))throw new Error("Cannot merge already merged cells")});const m=this.getCell(d.top,d.left);for(let x=d.top;x<=d.bottom;x++)for(let k=d.left;k<=d.right;k++)(x>d.top||k>d.left)&&this.getCell(x,k).merge(m,b);this._merges[m.address]=d}_unMergeMaster(d){const b=this._merges[d.address];if(b){for(let m=b.top;m<=b.bottom;m++)for(let x=b.left;x<=b.right;x++)this.getCell(m,x).unmerge();delete this._merges[d.address]}}get hasMerges(){return u.some(this._merges,Boolean)}unMergeCells(){for(var d=arguments.length,b=new Array(d),m=0;m<d;m++)b[m]=arguments[m];const x=new o(b);for(let k=x.top;k<=x.bottom;k++)for(let R=x.left;R<=x.right;R++){const F=this.findCell(k,R);F&&(F.type===n.ValueType.Merge?this._unMergeMaster(F.master):this._merges[F.address]&&this._unMergeMaster(F))}}fillFormula(d,b,m){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"shared";const k=i.decode(d),{top:R,left:F,bottom:L,right:j}=k,D=j-F+1,z=i.encodeAddress(R,F),$=x==="shared";let V;V=typeof m=="function"?m:Array.isArray(m)?Array.isArray(m[0])?(M,S)=>m[M-R][S-F]:(M,S)=>m[(M-R)*D+(S-F)]:()=>{};let T=!0;for(let M=R;M<=L;M++)for(let S=F;S<=j;S++)T?(this.getCell(M,S).value={shareType:x,formula:b,ref:d,result:V(M,S)},T=!1):this.getCell(M,S).value=$?{sharedFormula:z,result:V(M,S)}:V(M,S)}addImage(d,b){const m={type:"image",imageId:d,range:b};this._media.push(new c(this,m))}getImages(){return this._media.filter(d=>d.type==="image")}addBackgroundImage(d){const b={type:"background",imageId:d};this._media.push(new c(this,b))}getBackgroundImageId(){const d=this._media.find(b=>b.type==="background");return d&&d.imageId}protect(d,b){return new Promise(m=>{this.sheetProtection={sheet:!0},b&&"spinCount"in b&&(b.spinCount=Number.isFinite(b.spinCount)?Math.round(Math.max(0,b.spinCount)):1e5),d&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=f.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=b&&"spinCount"in b?b.spinCount:1e5,this.sheetProtection.hashValue=f.convertPasswordToHash(d,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),b&&(this.sheetProtection=Object.assign(this.sheetProtection,b),!d&&"spinCount"in b&&delete this.sheetProtection.spinCount),m()})}unprotect(){this.sheetProtection=null}addTable(d){const b=new s(this,d);return this.tables[d.name]=b,b}getTable(d){return this.tables[d]}removeTable(d){delete this.tables[d]}getTables(){return Object.values(this.tables)}addConditionalFormatting(d){this.conditionalFormattings.push(d)}removeConditionalFormatting(d){typeof d=="number"?this.conditionalFormattings.splice(d,1):this.conditionalFormattings=d instanceof Function?this.conditionalFormattings.filter(d):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(d){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=d}get model(){const d={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(x=>x.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(x=>x.model),conditionalFormattings:this.conditionalFormattings};d.cols=t.toModel(this.columns);const b=d.rows=[],m=d.dimensions=new o;return this._rows.forEach(x=>{const k=x&&x.model;k&&(m.expand(k.number,k.min,k.number,k.max),b.push(k))}),d.merges=[],u.each(this._merges,x=>{d.merges.push(x.range)}),d}_parseRows(d){this._rows=[],d.rows.forEach(b=>{const m=new r(this,b.number);this._rows[m.number-1]=m,m.model=b})}_parseMergeCells(d){u.each(d.mergeCells,b=>{this.mergeCellsWithoutStyle(b)})}set model(d){this.name=d.name,this._columns=t.fromModel(this,d.cols),this._parseRows(d),this._parseMergeCells(d),this.dataValidations=new a(d.dataValidations),this.properties=d.properties,this.pageSetup=d.pageSetup,this.headerFooter=d.headerFooter,this.views=d.views,this.autoFilter=d.autoFilter,this._media=d.media.map(b=>new c(this,b)),this.sheetProtection=d.sheetProtection,this.tables=d.tables.reduce((b,m)=>{const x=new s;return x.model=m,b[m.name]=x,b},{}),this.conditionalFormattings=d.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(e,p,g){e("core-js/modules/es.promise"),e("core-js/modules/es.promise.finally"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.values"),e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.async-iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.find-index"),e("core-js/modules/es.array.find"),e("core-js/modules/es.string.from-code-point"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.number.is-nan"),e("regenerator-runtime/runtime");const u={Workbook:e("./doc/workbook")},i=e("./doc/enums");Object.keys(i).forEach(o=>{u[o]=i[o]}),p.exports=u},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(e,p,g){const u=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");g.bufferToString=function(i){return typeof i=="string"?i:u?u.decode(i):i.toString()}},{}],17:[function(e,p,g){const u=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:i}=e("buffer");g.stringToBuffer=function(o){return typeof o!="string"?o:u?i.from(u.encode(o).buffer):i.from(o)}},{buffer:220}],18:[function(e,p,g){const u=e("./under-dash"),i=e("./col-cache");p.exports=class{constructor(o){this.template=o,this.sheets={}}addCell(o){this.addCellEx(i.decodeEx(o))}getCell(o){return this.findCellEx(i.decodeEx(o),!0)}findCell(o){return this.findCellEx(i.decodeEx(o),!1)}findCellAt(o,r,t){const n=this.sheets[o],c=n&&n[r];return c&&c[t]}addCellEx(o){if(o.top)for(let r=o.top;r<=o.bottom;r++)for(let t=o.left;t<=o.right;t++)this.getCellAt(o.sheetName,r,t);else this.findCellEx(o,!0)}getCellEx(o){return this.findCellEx(o,!0)}findCellEx(o,r){const t=this.findSheet(o,r),n=this.findSheetRow(t,o,r);return this.findRowCell(n,o,r)}getCellAt(o,r,t){const n=this.sheets[o]||(this.sheets[o]=[]),c=n[r]||(n[r]=[]);return c[t]||(c[t]={sheetName:o,address:i.n2l(t)+r,row:r,col:t})}removeCellEx(o){const r=this.findSheet(o);if(!r)return;const t=this.findSheetRow(r,o);t&&delete t[o.col]}forEachInSheet(o,r){const t=this.sheets[o];t&&t.forEach((n,c)=>{n&&n.forEach((s,a)=>{s&&r(s,c,a)})})}forEach(o){u.each(this.sheets,(r,t)=>{this.forEachInSheet(t,o)})}map(o){const r=[];return this.forEach(t=>{r.push(o(t))}),r}findSheet(o,r){const t=o.sheetName;return this.sheets[t]?this.sheets[t]:r?this.sheets[t]=[]:void 0}findSheetRow(o,r,t){const{row:n}=r;return o&&o[n]?o[n]:t?o[n]=[]:void 0}findRowCell(o,r,t){const{col:n}=r;return o&&o[n]?o[n]:t?o[n]=this.template?Object.assign(r,JSON.parse(JSON.stringify(this.template))):r:void 0}spliceRows(o,r,t,n){const c=this.sheets[o];if(c){const s=[];for(let a=0;a<n;a++)s.push([]);c.splice(r,t,...s)}}spliceColumns(o,r,t,n){const c=this.sheets[o];if(c){const s=[];for(let a=0;a<n;a++)s.push(null);u.each(c,a=>{a.splice(r,t,...s)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(e,p,g){const u=/^[A-Z]+\d+$/,i={_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:o=>o<=26?1:o<=676?2:3,_fill(o){let r,t,n,c,s,a=1;if(o>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&o>=1){for(;a<=26;)r=this._dictionary[a-1],this._n2l[a]=r,this._l2n[r]=a,a++;this._l2nFill=1}if(this._l2nFill<2&&o>=2){for(a=27;a<=702;)t=a-27,n=t%26,c=Math.floor(t/26),r=this._dictionary[c]+this._dictionary[n],this._n2l[a]=r,this._l2n[r]=a,a++;this._l2nFill=2}if(this._l2nFill<3&&o>=3){for(a=703;a<=16384;)t=a-703,n=t%26,c=Math.floor(t/26)%26,s=Math.floor(t/676),r=this._dictionary[s]+this._dictionary[c]+this._dictionary[n],this._n2l[a]=r,this._l2n[r]=a,a++;this._l2nFill=3}},l2n(o){if(this._l2n[o]||this._fill(o.length),!this._l2n[o])throw new Error("Out of bounds. Invalid column letter: "+o);return this._l2n[o]},n2l(o){if(o<1||o>16384)throw new Error(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(o){if(!u.test(o))throw new Error("Invalid Address: "+o);return!0},decodeAddress(o){const r=o.length<5&&this._hash[o];if(r)return r;let t=!1,n="",c=0,s=!1,a="",f=0;for(let d,b=0;b<o.length;b++)if(d=o.charCodeAt(b),!s&&d>=65&&d<=90)t=!0,n+=o[b],c=26*c+d-64;else if(d>=48&&d<=57)s=!0,a+=o[b],f=10*f+d-48;else if(s&&t&&d!==36)break;if(t){if(c>16384)throw new Error("Out of bounds. Invalid column letter: "+n)}else c=void 0;s||(f=void 0);const h={address:o=n+a,col:c,row:f,$col$row:`$${n}$${a}`};return c<=100&&f<=100&&(this._hash[o]=h,this._hash[h.$col$row]=h),h},getAddress(o,r){if(r){const t=this.n2l(r)+o;return this.decodeAddress(t)}return this.decodeAddress(o)},decode(o){const r=o.split(":");if(r.length===2){const t=this.decodeAddress(r[0]),n=this.decodeAddress(r[1]),c={top:Math.min(t.row,n.row),left:Math.min(t.col,n.col),bottom:Math.max(t.row,n.row),right:Math.max(t.col,n.col)};return c.tl=this.n2l(c.left)+c.top,c.br=this.n2l(c.right)+c.bottom,c.dimensions=`${c.tl}:${c.br}`,c}return this.decodeAddress(o)},decodeEx(o){const r=o.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),t=r[1]||r[2],n=r[3],c=n.split(":");if(c.length>1){let a=this.decodeAddress(c[0]),f=this.decodeAddress(c[1]);const h=Math.min(a.row,f.row),d=Math.min(a.col,f.col),b=Math.max(a.row,f.row),m=Math.max(a.col,f.col);return a=this.n2l(d)+h,f=this.n2l(m)+b,{top:h,left:d,bottom:b,right:m,sheetName:t,tl:{address:a,col:d,row:h,$col$row:`$${this.n2l(d)}$${h}`,sheetName:t},br:{address:f,col:m,row:b,$col$row:`$${this.n2l(m)}$${b}`,sheetName:t},dimensions:`${a}:${f}`}}if(n.startsWith("#"))return t?{sheetName:t,error:n}:{error:n};const s=this.decodeAddress(n);return t?{sheetName:t,...s}:s},encodeAddress:(o,r)=>i.n2l(r)+o,encode(){switch(arguments.length){case 2:return i.encodeAddress(arguments[0],arguments[1]);case 4:return`${i.encodeAddress(arguments[0],arguments[1])}:${i.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(o,r){const[t,n,,c,s]=o,[a,f]=r;return a>=t&&a<=c&&f>=n&&f<=s}};p.exports=i},{}],20:[function(e,p,g){const u=(o,r)=>({...o,...r.reduce((t,n)=>(o[n]&&(t[n]={...o[n]}),t),{})}),i=function(o,r,t){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];o[t]&&(r[t]=u(o[t],n))};g.copyStyle=o=>{if(!o)return o;if(r=o,Object.keys(r).length===0)return{};var r;const t={...o};return i(o,t,"font",["color"]),i(o,t,"alignment"),i(o,t,"protection"),o.border&&(i(o,t,"border"),i(o.border,t.border,"top",["color"]),i(o.border,t.border,"left",["color"]),i(o.border,t.border,"bottom",["color"]),i(o.border,t.border,"right",["color"]),i(o.border,t.border,"diagonal",["color"])),o.fill&&(i(o,t,"fill",["fgColor","bgColor","center"]),o.fill.stops&&(t.fill.stops=o.fill.stops.map(n=>u(n,["color"])))),t}},{}],21:[function(e,p,g){(function(u){(function(){const i=e("crypto"),o={hash(r){const t=i.createHash(r);for(var n=arguments.length,c=new Array(n>1?n-1:0),s=1;s<n;s++)c[s-1]=arguments[s];return t.update(u.concat(c)),t.digest()},convertPasswordToHash(r,t,n,c){if(t=t.toLowerCase(),i.getHashes().indexOf(t)<0)throw new Error(`Hash algorithm '${t}' not supported!`);const s=u.from(r,"utf16le");let a=this.hash(t,u.from(n,"base64"),s);for(let f=0;f<c;f++){const h=u.alloc(4);h.writeUInt32LE(f,0),a=this.hash(t,a,h)}return a.toString("base64")},randomBytes:r=>i.randomBytes(r)};p.exports=o}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(e,p,g){const{SaxesParser:u}=e("saxes"),{PassThrough:i}=e("readable-stream"),{bufferToString:o}=e("./browser-buffer-decode");p.exports=async function*(r){r.pipe&&!r[Symbol.asyncIterator]&&(r=r.pipe(new i));const t=new u;let n;t.on("error",s=>{n=s});let c=[];t.on("opentag",s=>c.push({eventType:"opentag",value:s})),t.on("text",s=>c.push({eventType:"text",value:s})),t.on("closetag",s=>c.push({eventType:"closetag",value:s}));for await(const s of r){if(t.write(o(s)),n)throw n;yield c,c=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(e,p,g){const u=e("./col-cache"),i=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,o=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;p.exports={slideFormula:function(r,t,n){const c=u.decode(t),s=u.decode(n);return r.replace(i,(a,f,h,d,b)=>{if(b)return a;const m=o.exec(d);if(m){const x=m[1],k=m[2].toUpperCase(),R=m[3],F=m[4];if(k.length>3||k.length===3&&k>"XFD")return a;let L=u.l2n(k),j=parseInt(F,10);return x||(L+=s.col-c.col),R||(j+=s.row-c.row),(f||"")+(x||"")+u.n2l(L)+(R||"")+j}return a})}}},{"./col-cache":19}],24:[function(e,p,g){(function(u,i){(function(){const o=e("readable-stream"),r=e("./utils"),t=e("./string-buf");class n{constructor(d,b){this._data=d,this._encoding=b}get length(){return this.toBuffer().length}copy(d,b,m,x){return this.toBuffer().copy(d,b,m,x)}toBuffer(){return this._buffer||(this._buffer=i.from(this._data,this._encoding)),this._buffer}}class c{constructor(d){this._data=d}get length(){return this._data.length}copy(d,b,m,x){return this._data._buf.copy(d,b,m,x)}toBuffer(){return this._data.toBuffer()}}class s{constructor(d){this._data=d}get length(){return this._data.length}copy(d,b,m,x){this._data.copy(d,b,m,x)}toBuffer(){return this._data}}class a{constructor(d){this.size=d,this.buffer=i.alloc(d),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const d=i.alloc(this.iWrite-this.iRead);return this.buffer.copy(d,0,this.iRead,this.iWrite),d}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(d){let b;return d===0?null:d===void 0||d>=this.length?(b=this.toBuffer(),this.iRead=this.iWrite,b):(b=i.alloc(d),this.buffer.copy(b,0,this.iRead,d),this.iRead+=d,b)}write(d,b,m){const x=Math.min(m,this.size-this.iWrite);return d.copy(this.buffer,this.iWrite,b,b+x),this.iWrite+=x,x}}const f=function(h){h=h||{},this.bufSize=h.bufSize||1048576,this.buffers=[],this.batch=h.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};r.inherits(f,o.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return i.concat(this.buffers.map(h=>h.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const d=this.buffers[this.buffers.length-1];if(!d.full)return d}const h=new a(this.bufSize);return this.buffers.push(h),h},async _pipe(h){await Promise.all(this.pipes.map(function(d){return new Promise(b=>{d.write(h.toBuffer(),()=>{b()})})}))},_writeToBuffers(h){let d=0;const b=h.length;for(;d<b;)d+=this._getWritableBuffer().write(h,d,b-d)},async write(h,d,b){let m;if(d instanceof Function&&(b=d,d="utf8"),b=b||r.nop,h instanceof t)m=new c(h);else if(h instanceof i)m=new s(h);else{if(!(typeof h=="string"||h instanceof String||h instanceof ArrayBuffer))throw new Error("Chunk must be one of type String, Buffer or StringBuf.");m=new n(h,d)}if(this.pipes.length)if(this.batch)for(this._writeToBuffers(m);!this.corked&&this.buffers.length>1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(m),u.nextTick(b)):(await this._pipe(m),b());else this.paused||this.emit("data",m.toBuffer()),this._writeToBuffers(m),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(h,d,b){const m=x=>{x?b(x):(this._flush(),this.pipes.forEach(k=>{k.end()}),this.emit("finish"))};h?this.write(h,d,m):m()},read(h){let d;if(h){for(d=[];h&&this.buffers.length&&!this.buffers[0].eod;){const b=this.buffers[0],m=b.read(h);h-=m.length,d.push(m),b.eod&&b.full&&this.buffers.shift()}return i.concat(d)}return d=this.buffers.map(b=>b.toBuffer()).filter(Boolean),this.buffers=[],i.concat(d)},setEncoding(h){this.encoding=h},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(h){this.pipes.push(h),!this.paused&&this.buffers.length&&this.end()},unpipe(h){this.pipes=this.pipes.filter(d=>d!==h)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),p.exports=f}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(e,p,g){(function(u){(function(){p.exports=class{constructor(i){this._buf=u.alloc(i&&i.size||16384),this._encoding=i&&i.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=u.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(i){i=i||0,this._buffer=void 0,this._inPos=i}_grow(i){let o=2*this._buf.length;for(;o<i;)o*=2;const r=u.alloc(o);this._buf.copy(r,0),this._buf=r}addText(i){this._buffer=void 0;let o=this._inPos+this._buf.write(i,this._inPos,this._encoding);for(;o>=this._buf.length-4;)this._grow(this._inPos+i.length),o=this._inPos+this._buf.write(i,this._inPos,this._encoding);this._inPos=o}addStringBuf(i){i.length&&(this._buffer=void 0,this.length+i.length>this.capacity&&this._grow(this.length+i.length),i._buf.copy(this._buf,this._inPos,0,i.length),this._inPos+=i.length)}}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],26:[function(e,p,g){const{toString:u}=Object.prototype,i=/["&<>]/,o={each:function(r,t){r&&(Array.isArray(r)?r.forEach(t):Object.keys(r).forEach(n=>{t(r[n],n)}))},some:function(r,t){return!!r&&(Array.isArray(r)?r.some(t):Object.keys(r).some(n=>t(r[n],n)))},every:function(r,t){return!r||(Array.isArray(r)?r.every(t):Object.keys(r).every(n=>t(r[n],n)))},map:function(r,t){return r?Array.isArray(r)?r.map(t):Object.keys(r).map(n=>t(r[n],n)):[]},keyBy:(r,t)=>r.reduce((n,c)=>(n[c[t]]=c,n),{}),isEqual:function(r,t){const n=typeof r,c=typeof t,s=Array.isArray(r),a=Array.isArray(t);let f;if(n!==c)return!1;switch(typeof r){case"object":if(s||a)return!(!s||!a)&&r.length===t.length&&r.every((h,d)=>{const b=t[d];return o.isEqual(h,b)});if(r===null||t===null)return r===t;if(f=Object.keys(r),Object.keys(t).length!==f.length)return!1;for(const h of f)if(!t.hasOwnProperty(h))return!1;return o.every(r,(h,d)=>{const b=t[d];return o.isEqual(h,b)});default:return r===t}},escapeHtml(r){const t=i.exec(r);if(!t)return r;let n="",c="",s=0,a=t.index;for(;a<r.length;a++){switch(r.charAt(a)){case'"':c="&quot;";break;case"&":c="&amp;";break;case"'":c="&apos;";break;case"<":c="&lt;";break;case">":c="&gt;";break;default:continue}s!==a&&(n+=r.substring(s,a)),s=a+1,n+=c}return s!==a?n+r.substring(s,a):n},strcmp:(r,t)=>r<t?-1:r>t?1:0,isUndefined:r=>u.call(r)==="[object Undefined]",isObject:r=>u.call(r)==="[object Object]",deepMerge(){const r=arguments[0]||{},{length:t}=arguments;let n,c,s;function a(f,h){n=r[h],s=Array.isArray(f),o.isObject(f)||s?(s?(s=!1,c=n&&Array.isArray(n)?n:[]):c=n&&o.isObject(n)?n:{},r[h]=o.deepMerge(c,f)):o.isUndefined(f)||(r[h]=f)}for(let f=0;f<t;f++)o.each(arguments[f],a);return r}};p.exports=o},{}],27:[function(e,p,g){(function(u,i){(function(){const o=e("fs"),r=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,t={nop(){},promiseImmediate:n=>new Promise(c=>{u.setImmediate?i(()=>{c(n)}):setTimeout(()=>{c(n)},1)}),inherits:function(n,c,s,a){n.super_=c,a||(a=s,s=null),s&&Object.keys(s).forEach(h=>{Object.defineProperty(n,h,Object.getOwnPropertyDescriptor(s,h))});const f={constructor:{value:n,enumerable:!1,writable:!1,configurable:!0}};a&&Object.keys(a).forEach(h=>{f[h]=Object.getOwnPropertyDescriptor(a,h)}),n.prototype=Object.create(c.prototype,f)},dateToExcel:(n,c)=>25569+n.getTime()/864e5-(c?1462:0),excelToDate(n,c){const s=Math.round(24*(n-25569+(c?1462:0))*3600*1e3);return new Date(s)},parsePath(n){const c=n.lastIndexOf("/");return{path:n.substring(0,c),name:n.substring(c+1)}},getRelsPath(n){const c=t.parsePath(n);return`${c.path}/_rels/${c.name}.rels`},xmlEncode(n){const c=r.exec(n);if(!c)return n;let s="",a="",f=0,h=c.index;for(;h<n.length;h++){const d=n.charCodeAt(h);switch(d){case 34:a="&quot;";break;case 38:a="&amp;";break;case 39:a="&apos;";break;case 60:a="&lt;";break;case 62:a="&gt;";break;case 127:a="";break;default:if(d<=31&&(d<=8||d>=11&&d!==13)){a="";break}continue}f!==h&&(s+=n.substring(f,h)),f=h+1,a&&(s+=a)}return f!==h?s+n.substring(f,h):s},xmlDecode:n=>n.replace(/&([a-z]*);/g,c=>{switch(c){case"&lt;":return"<";case"&gt;":return">";case"&amp;":return"&";case"&apos;":return"'";case"&quot;":return'"';default:return c}}),validInt(n){const c=parseInt(n,10);return Number.isNaN(c)?0:c},isDateFmt(n){return n?(n=(n=n.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:n=>new Promise(c=>{o.access(n,o.constants.F_OK,s=>{c(!s)})})},toIsoDateString:n=>n.toIsoString().subsstr(0,10),parseBoolean:n=>n===!0||n==="true"||n===1||n==="1"};p.exports=t}).call(this)}).call(this,typeof Ye<"u"?Ye:typeof self<"u"?self:typeof window<"u"?window:{},e("timers").setImmediate)},{fs:216,timers:523}],28:[function(e,p,g){const u=e("./under-dash"),i=e("./utils");function o(n,c,s){n.push(` ${c}="${i.xmlEncode(s.toString())}"`)}function r(n,c){if(c){const s=[];u.each(c,(a,f)=>{a!==void 0&&o(s,f,a)}),n.push(s.join(""))}}class t{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(c){const s=this._xml;s.push("<?xml"),r(s,c),s.push(`?>
2
- `)}openNode(c,s){const a=this.tos,f=this._xml;a&&this.open&&f.push(">"),this._stack.push(c),f.push("<"),f.push(c),r(f,s),this.leaf=!0,this.open=!0}addAttribute(c,s){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");s!==void 0&&o(this._xml,c,s)}addAttributes(c){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");r(this._xml,c)}writeText(c){const s=this._xml;this.open&&(s.push(">"),this.open=!1),this.leaf=!1,s.push(i.xmlEncode(c.toString()))}writeXml(c){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(c)}closeNode(){const c=this._stack.pop(),s=this._xml;this.leaf?s.push("/>"):(s.push("</"),s.push(c),s.push(">")),this.open=!1,this.leaf=!1}leafNode(c,s,a){this.openNode(c,s),a!==void 0&&this.writeText(a),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){const c=this._rollbacks.pop();this._xml.length>c.xml&&this._xml.splice(c.xml,this._xml.length-c.xml),this._stack.length>c.stack&&this._stack.splice(c.stack,this._stack.length-c.stack),this.leaf=c.leaf,this.open=c.open}get xml(){return this.closeAll(),this._xml.join("")}}t.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},p.exports=t},{"./under-dash":26,"./utils":27}],29:[function(e,p,g){(function(u){(function(){const i=e("events"),o=e("jszip"),r=e("./stream-buf"),{stringToBuffer:t}=e("./browser-buffer-encode");class n extends i.EventEmitter{constructor(s){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},s),this.zip=new o,this.stream=new r}append(s,a){a.hasOwnProperty("base64")&&a.base64?this.zip.file(a.name,s,{base64:!0}):(u.browser&&typeof s=="string"&&(s=t(s)),this.zip.file(a.name,s))}async finalize(){const s=await this.zip.generateAsync(this.options);this.stream.end(s),this.emit("finish")}read(s){return this.stream.read(s)}setEncoding(s){return this.stream.setEncoding(s)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(s,a){return this.stream.pipe(s,a)}unpipe(s){return this.stream.unpipe(s)}unshift(s){return this.stream.unshift(s)}wrap(s){return this.stream.wrap(s)}}p.exports={ZipWriter:n}}).call(this)}).call(this,e("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(e,p,g){p.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],31:[function(e,p,g){p.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],32:[function(e,p,g){const u=e("../../utils/parse-sax"),i=e("../../utils/xml-stream");class o{prepare(){}render(){}parseOpen(t){}parseText(t){}parseClose(t){}reconcile(t,n){}reset(){this.model=null,this.map&&Object.values(this.map).forEach(t=>{t instanceof o?t.reset():t.xform&&t.xform.reset()})}mergeModel(t){this.model=Object.assign(this.model||{},t)}async parse(t){for await(const n of t)for(const{eventType:c,value:s}of n)if(c==="opentag")this.parseOpen(s);else if(c==="text")this.parseText(s);else if(c==="closetag"&&!this.parseClose(s.name))return this.model;return this.model}async parseStream(t){return this.parse(u(t))}get xml(){return this.toXml(this.model)}toXml(t){const n=new i;return this.render(n,t),n.xml}static toAttribute(t,n){let c=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(t===void 0){if(c)return n}else if(c||t!==n)return t.toString()}static toStringAttribute(t,n){let c=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return o.toAttribute(t,n,c)}static toStringValue(t,n){return t===void 0?n:t}static toBoolAttribute(t,n){let c=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(t===void 0){if(c)return n}else if(c||t!==n)return t?"1":"0"}static toBoolValue(t,n){return t===void 0?n:t==="1"}static toIntAttribute(t,n){let c=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return o.toAttribute(t,n,c)}static toIntValue(t,n){return t===void 0?n:parseInt(t,10)}static toFloatAttribute(t,n){let c=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return o.toAttribute(t,n,c)}static toFloatValue(t,n){return t===void 0?n:parseFloat(t)}}p.exports=o},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(e,p,g){const u=e("../base-xform"),i=e("../../../utils/col-cache");function o(t){try{return i.decodeEx(t),!0}catch{return!1}}function r(t){const n=[];let c=!1,s="";return t.split(",").forEach(a=>{if(!a)return;const f=(a.match(/'/g)||[]).length;if(!f)return void(c?s+=a+",":o(a)&&n.push(a));const h=f%2==0;!c&&h&&o(a)?n.push(a):c&&!h?(c=!1,o(s+a)&&n.push(s+a),s=""):(c=!0,s+=a+",")}),n}p.exports=class extends u{render(t,n){t.openNode("definedName",{name:n.name,localSheetId:n.localSheetId}),t.writeText(n.ranges.join(",")),t.closeNode()}parseOpen(t){switch(t.name){case"definedName":return this._parsedName=t.attributes.name,this._parsedLocalSheetId=t.attributes.localSheetId,this._parsedText=[],!0;default:return!1}}parseText(t){this._parsedText.push(t)}parseClose(){return this.model={name:this._parsedName,ranges:r(this._parsedText.join(""))},this._parsedLocalSheetId!==void 0&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(e,p,g){const u=e("../../../utils/utils"),i=e("../base-xform");p.exports=class extends i{render(o,r){o.leafNode("sheet",{sheetId:r.id,name:r.name,state:r.state,"r:id":r.rId})}parseOpen(o){return o.name==="sheet"&&(this.model={name:u.xmlDecode(o.attributes.name),id:parseInt(o.attributes.sheetId,10),state:o.attributes.state,rId:o.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{render(i,o){i.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:o.fullCalcOnLoad?1:void 0})}parseOpen(i){return i.name==="calcPr"&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{render(i,o){i.leafNode("workbookPr",{date1904:o.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(i){return i.name==="workbookPr"&&(this.model={date1904:i.attributes.date1904==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{render(i,o){const r={xWindow:o.x||0,yWindow:o.y||0,windowWidth:o.width||12e3,windowHeight:o.height||24e3,firstSheet:o.firstSheet,activeTab:o.activeTab};o.visibility&&o.visibility!=="visible"&&(r.visibility=o.visibility),i.leafNode("workbookView",r)}parseOpen(i){if(i.name==="workbookView"){const o=this.model={},r=function(n,c,s){const a=c!==void 0?o[n]=c:s;a!==void 0&&(o[n]=a)},t=function(n,c,s){const a=c!==void 0?o[n]=parseInt(c,10):s;a!==void 0&&(o[n]=a)};return t("x",i.attributes.xWindow,0),t("y",i.attributes.yWindow,0),t("width",i.attributes.windowWidth,25e3),t("height",i.attributes.windowHeight,1e4),r("visibility",i.attributes.visibility,"visible"),t("activeTab",i.attributes.activeTab,void 0),t("firstSheet",i.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(e,p,g){const u=e("../../../utils/under-dash"),i=e("../../../utils/col-cache"),o=e("../../../utils/xml-stream"),r=e("../base-xform"),t=e("../static-xform"),n=e("../list-xform"),c=e("./defined-name-xform"),s=e("./sheet-xform"),a=e("./workbook-view-xform"),f=e("./workbook-properties-xform"),h=e("./workbook-calc-properties-xform");class d extends r{constructor(){super(),this.map={fileVersion:d.STATIC_XFORMS.fileVersion,workbookPr:new f,bookViews:new n({tag:"bookViews",count:!1,childXform:new a}),sheets:new n({tag:"sheets",count:!1,childXform:new s}),definedNames:new n({tag:"definedNames",count:!1,childXform:new c}),calcPr:new h}}prepare(m){m.sheets=m.worksheets;const x=[];let k=0;m.sheets.forEach(R=>{if(R.pageSetup&&R.pageSetup.printArea&&R.pageSetup.printArea.split("&&").forEach(F=>{const L=F.split(":"),j={name:"_xlnm.Print_Area",ranges:[`'${R.name}'!$${L[0]}:$${L[1]}`],localSheetId:k};x.push(j)}),R.pageSetup&&(R.pageSetup.printTitlesRow||R.pageSetup.printTitlesColumn)){const F=[];if(R.pageSetup.printTitlesColumn){const j=R.pageSetup.printTitlesColumn.split(":");F.push(`'${R.name}'!$${j[0]}:$${j[1]}`)}if(R.pageSetup.printTitlesRow){const j=R.pageSetup.printTitlesRow.split(":");F.push(`'${R.name}'!$${j[0]}:$${j[1]}`)}const L={name:"_xlnm.Print_Titles",ranges:F,localSheetId:k};x.push(L)}k++}),x.length&&(m.definedNames=m.definedNames.concat(x)),(m.media||[]).forEach((R,F)=>{R.name=R.type+(F+1)})}render(m,x){m.openXml(o.StdDocAttributes),m.openNode("workbook",d.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(m),this.map.workbookPr.render(m,x.properties),this.map.bookViews.render(m,x.views),this.map.sheets.render(m,x.sheets),this.map.definedNames.render(m,x.definedNames),this.map.calcPr.render(m,x.calcProperties),m.closeNode()}parseOpen(m){if(this.parser)return this.parser.parseOpen(m),!0;switch(m.name){case"workbook":return!0;default:return this.parser=this.map[m.name],this.parser&&this.parser.parseOpen(m),!0}}parseText(m){this.parser&&this.parser.parseText(m)}parseClose(m){if(this.parser)return this.parser.parseClose(m)||(this.parser=void 0),!0;switch(m){case"workbook":return this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1;default:return!0}}reconcile(m){const x=(m.workbookRels||[]).reduce((j,D)=>(j[D.Id]=D,j),{}),k=[];let R,F=0;(m.sheets||[]).forEach(j=>{const D=x[j.rId];D&&(R=m.worksheetHash["xl/"+D.Target.replace(/^(\s|\/xl\/)+/,"")],R&&(R.name=j.name,R.id=j.id,R.state=j.state,k[F++]=R))});const L=[];u.each(m.definedNames,j=>{if(j.name==="_xlnm.Print_Area"){if(R=k[j.localSheetId],R){R.pageSetup||(R.pageSetup={});const D=i.decodeEx(j.ranges[0]);R.pageSetup.printArea=R.pageSetup.printArea?`${R.pageSetup.printArea}&&${D.dimensions}`:D.dimensions}}else if(j.name==="_xlnm.Print_Titles"){if(R=k[j.localSheetId],R){R.pageSetup||(R.pageSetup={});const D=j.ranges.join(","),z=/\$/g,$=/\$\d+:\$\d+/,V=D.match($);if(V&&V.length){const S=V[0];R.pageSetup.printTitlesRow=S.replace(z,"")}const T=/\$[A-Z]+:\$[A-Z]+/,M=D.match(T);if(M&&M.length){const S=M[0];R.pageSetup.printTitlesColumn=S.replace(z,"")}}}else L.push(j)}),m.definedNames=L,m.media.forEach((j,D)=>{j.index=D})}}d.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"},d.STATIC_XFORMS={fileVersion:new t({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},p.exports=d},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(e,p,g){const u=e("../strings/rich-text-xform"),i=e("../../../utils/utils"),o=e("../base-xform"),r=p.exports=function(t){this.model=t};i.inherits(r,o,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new u),this._richTextXform},render(t,n){n=n||this.model,t.openNode("comment",{ref:n.ref,authorId:0}),t.openNode("text"),n&&n.note&&n.note.texts&&n.note.texts.forEach(c=>{this.richTextXform.render(t,c)}),t.closeNode(),t.closeNode()},parseOpen(t){if(this.parser)return this.parser.parseOpen(t),!0;switch(t.name){case"comment":return this.model={type:"note",note:{texts:[]},...t.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(t),!0;default:return!1}},parseText(t){this.parser&&this.parser.parseText(t)},parseClose(t){switch(t){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(t),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(e,p,g){const u=e("../../../utils/xml-stream"),i=e("../../../utils/utils"),o=e("../base-xform"),r=e("./comment-xform"),t=p.exports=function(){this.map={comment:new r}};i.inherits(t,o,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(n,c){c=c||this.model,n.openXml(u.StdDocAttributes),n.openNode("comments",t.COMMENTS_ATTRIBUTES),n.openNode("authors"),n.leafNode("author",null,"Author"),n.closeNode(),n.openNode("commentList"),c.comments.forEach(s=>{this.map.comment.render(n,s)}),n.closeNode(),n.closeNode()},parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(n),!0;default:return!1}},parseText(n){this.parser&&this.parser.parseText(n)},parseClose(n){switch(n){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(n),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(e,p,g){const u=e("../../base-xform");p.exports=class extends u{constructor(i){super(),this._model=i}get tag(){return this._model&&this._model.tag}render(i,o,r){(o===r[2]||this.tag==="x:SizeWithCells"&&o===r[1])&&i.leafNode(this.tag)}parseOpen(i){switch(i.name){case this.tag:return this.model={},this.model[this.tag]=!0,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../base-xform":32}],42:[function(e,p,g){const u=e("../../base-xform");p.exports=class extends u{constructor(i){super(),this._model=i}get tag(){return this._model&&this._model.tag}render(i,o){i.leafNode(this.tag,null,o)}parseOpen(i){switch(i.name){case this.tag:return this.text="",!0;default:return!1}}parseText(i){this.text=i}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{get tag(){return"x:Anchor"}getAnchorRect(i){const o=Math.floor(i.left),r=Math.floor(68*(i.left-o)),t=Math.floor(i.top),n=Math.floor(18*(i.top-t)),c=Math.floor(i.right),s=Math.floor(68*(i.right-c)),a=Math.floor(i.bottom);return[o,r,t,n,c,s,a,Math.floor(18*(i.bottom-a))]}getDefaultRect(i){const o=i.col,r=Math.max(i.row-2,0);return[o,6,r,14,o+2,2,r+4,16]}render(i,o){const r=o.anchor?this.getAnchorRect(o.anchor):this.getDefaultRect(o.refAddress);i.leafNode("x:Anchor",null,r.join(", "))}parseOpen(i){switch(i.name){case this.tag:return this.text="",!0;default:return!1}}parseText(i){this.text=i}parseClose(){return!1}}},{"../base-xform":32}],44:[function(e,p,g){const u=e("../base-xform"),i=e("./vml-anchor-xform"),o=e("./style/vml-protection-xform"),r=e("./style/vml-position-xform"),t=["twoCells","oneCells","absolute"];p.exports=class extends u{constructor(){super(),this.map={"x:Anchor":new i,"x:Locked":new o({tag:"x:Locked"}),"x:LockText":new o({tag:"x:LockText"}),"x:SizeWithCells":new r({tag:"x:SizeWithCells"}),"x:MoveWithCells":new r({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(n,c){const{protection:s,editAs:a}=c.note;n.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(n,a,t),this.map["x:SizeWithCells"].render(n,a,t),this.map["x:Anchor"].render(n,c),this.map["x:Locked"].render(n,s.locked),n.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(n,s.lockText),n.leafNode("x:Row",null,c.refAddress.row-1),n.leafNode("x:Column",null,c.refAddress.col-1),n.closeNode()}parseOpen(n){switch(n.name){case this.tag:this.reset(),this.model={anchor:[],protection:{},editAs:""};break;default:this.parser=this.map[n.name],this.parser&&this.parser.parseOpen(n)}return!0}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.parser=void 0),!0;switch(n){case this.tag:return this.normalizeModel(),!1;default:return!0}}normalizeModel(){const n=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),c=Object.keys(n).length;this.model.editAs=t[c],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}}},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(e,p,g){const u=e("../../../utils/xml-stream"),i=e("../base-xform"),o=e("./vml-shape-xform");class r extends i{constructor(){super(),this.map={"v:shape":new o}}get tag(){return"xml"}render(n,c){n.openXml(u.StdDocAttributes),n.openNode(this.tag,r.DRAWING_ATTRIBUTES),n.openNode("o:shapelayout",{"v:ext":"edit"}),n.leafNode("o:idmap",{"v:ext":"edit",data:1}),n.closeNode(),n.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),n.leafNode("v:stroke",{joinstyle:"miter"}),n.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),n.closeNode(),c.comments.forEach((s,a)=>{this.map["v:shape"].render(n,s,a)}),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case this.tag:this.reset(),this.model={comments:[]};break;default:this.parser=this.map[n.name],this.parser&&this.parser.parseOpen(n)}return!0}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0;switch(n){case this.tag:return!1;default:return!0}}reconcile(n,c){n.anchors.forEach(s=>{s.br?this.map["xdr:twoCellAnchor"].reconcile(s,c):this.map["xdr:oneCellAnchor"].reconcile(s,c)})}}r.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"},p.exports=r},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(e,p,g){const u=e("../base-xform"),i=e("./vml-textbox-xform"),o=e("./vml-client-data-xform");class r extends u{constructor(){super(),this.map={"v:textbox":new i,"x:ClientData":new o}}get tag(){return"v:shape"}render(n,c,s){n.openNode("v:shape",r.V_SHAPE_ATTRIBUTES(c,s)),n.leafNode("v:fill",{color2:"infoBackground [80]"}),n.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),n.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(n,c),this.map["x:ClientData"].render(n,c),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case this.tag:this.reset(),this.model={margins:{insetmode:n.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}};break;default:this.parser=this.map[n.name],this.parser&&this.parser.parseOpen(n)}return!0}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.parser=void 0),!0;switch(n){case this.tag:return this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1;default:return!0}}}r.V_SHAPE_ATTRIBUTES=(t,n)=>({id:"_x0000_s"+(1025+n),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":t.note.margins&&t.note.margins.insetmode}),p.exports=r},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{get tag(){return"v:textbox"}conversionUnit(i,o,r){return`${parseFloat(i)*o.toFixed(2)}${r}`}reverseConversionUnit(i){return(i||"").split(",").map(o=>Number(parseFloat(this.conversionUnit(parseFloat(o),.1,"")).toFixed(2)))}render(i,o){const r={style:"mso-direction-alt:auto"};if(o&&o.note){let{inset:t}=o.note&&o.note.margins;Array.isArray(t)&&(t=t.map(n=>this.conversionUnit(n,10,"mm")).join(",")),t&&(r.inset=t)}i.openNode("v:textbox",r),i.leafNode("div",{style:"text-align:left"}),i.closeNode()}parseOpen(i){switch(i.name){case this.tag:return this.model={inset:this.reverseConversionUnit(i.attributes.inset)},!0;default:return!0}}parseText(){}parseClose(i){switch(i){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],48:[function(e,p,g){const u=e("./base-xform");p.exports=class extends u{createNewModel(i){return{}}parseOpen(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)}parseText(i){this.parser&&this.parser.parseText(i)}onParserClose(i,o){this.model[i]=o.model}parseClose(i){return this.parser?(this.parser.parseClose(i)||(this.onParserClose(i,this.parser),this.parser=void 0),!0):i!==this.tag}}},{"./base-xform":32}],49:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{render(i,o){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,o.length),i.closeNode(),i.closeNode(),i.closeNode()}parseOpen(i){return i.name==="HeadingPairs"}parseText(){}parseClose(i){return i!=="HeadingPairs"}}},{"../base-xform":32}],50:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{render(i,o){i.openNode("TitlesOfParts"),i.openNode("vt:vector",{size:o.length,baseType:"lpstr"}),o.forEach(r=>{i.leafNode("vt:lpstr",void 0,r.name)}),i.closeNode(),i.closeNode()}parseOpen(i){return i.name==="TitlesOfParts"}parseText(){}parseClose(i){return i!=="TitlesOfParts"}}},{"../base-xform":32}],51:[function(e,p,g){const u=e("../../../utils/xml-stream"),i=e("../base-xform"),o=e("../simple/string-xform"),r=e("./app-heading-pairs-xform"),t=e("./app-titles-of-parts-xform");class n extends i{constructor(){super(),this.map={Company:new o({tag:"Company"}),Manager:new o({tag:"Manager"}),HeadingPairs:new r,TitleOfParts:new t}}render(s,a){s.openXml(u.StdDocAttributes),s.openNode("Properties",n.PROPERTY_ATTRIBUTES),s.leafNode("Application",void 0,"Microsoft Excel"),s.leafNode("DocSecurity",void 0,"0"),s.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(s,a.worksheets),this.map.TitleOfParts.render(s,a.worksheets),this.map.Company.render(s,a.company||""),this.map.Manager.render(s,a.manager),s.leafNode("LinksUpToDate",void 0,"false"),s.leafNode("SharedDoc",void 0,"false"),s.leafNode("HyperlinksChanged",void 0,"false"),s.leafNode("AppVersion",void 0,"16.0300"),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"Properties":return!0;default:return this.parser=this.map[s.name],!!this.parser&&(this.parser.parseOpen(s),!0)}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){if(this.parser)return this.parser.parseClose(s)||(this.parser=void 0),!0;switch(s){case"Properties":return this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1;default:return!0}}}n.DateFormat=function(c){return c.toISOString().replace(/[.]\d{3,6}/,"")},n.DateAttrs={"xsi:type":"dcterms:W3CDTF"},n.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},p.exports=n},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(e,p,g){const u=e("../../../utils/xml-stream"),i=e("../base-xform");class o extends i{render(t,n){t.openXml(u.StdDocAttributes),t.openNode("Types",o.PROPERTY_ATTRIBUTES);const c={};(n.media||[]).forEach(s=>{if(s.type==="image"){const a=s.extension;c[a]||(c[a]=!0,t.leafNode("Default",{Extension:a,ContentType:"image/"+a}))}}),t.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),t.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),t.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),n.worksheets.forEach(s=>{const a=`/xl/worksheets/sheet${s.id}.xml`;t.leafNode("Override",{PartName:a,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),t.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),t.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),n.sharedStrings&&n.sharedStrings.count&&t.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),n.tables&&n.tables.forEach(s=>{t.leafNode("Override",{PartName:"/xl/tables/"+s.target,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),n.drawings&&n.drawings.forEach(s=>{t.leafNode("Override",{PartName:`/xl/drawings/${s.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),n.commentRefs&&(t.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),n.commentRefs.forEach(s=>{let{commentName:a}=s;t.leafNode("Override",{PartName:`/xl/${a}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),t.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),t.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),t.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}o.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},p.exports=o},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(e,p,g){const u=e("../../../utils/xml-stream"),i=e("../base-xform"),o=e("../simple/date-xform"),r=e("../simple/string-xform"),t=e("../simple/integer-xform");class n extends i{constructor(){super(),this.map={"dc:creator":new r({tag:"dc:creator"}),"dc:title":new r({tag:"dc:title"}),"dc:subject":new r({tag:"dc:subject"}),"dc:description":new r({tag:"dc:description"}),"dc:identifier":new r({tag:"dc:identifier"}),"dc:language":new r({tag:"dc:language"}),"cp:keywords":new r({tag:"cp:keywords"}),"cp:category":new r({tag:"cp:category"}),"cp:lastModifiedBy":new r({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new o({tag:"cp:lastPrinted",format:n.DateFormat}),"cp:revision":new t({tag:"cp:revision"}),"cp:version":new r({tag:"cp:version"}),"cp:contentStatus":new r({tag:"cp:contentStatus"}),"cp:contentType":new r({tag:"cp:contentType"}),"dcterms:created":new o({tag:"dcterms:created",attrs:n.DateAttrs,format:n.DateFormat}),"dcterms:modified":new o({tag:"dcterms:modified",attrs:n.DateAttrs,format:n.DateFormat})}}render(s,a){s.openXml(u.StdDocAttributes),s.openNode("cp:coreProperties",n.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(s,a.creator),this.map["dc:title"].render(s,a.title),this.map["dc:subject"].render(s,a.subject),this.map["dc:description"].render(s,a.description),this.map["dc:identifier"].render(s,a.identifier),this.map["dc:language"].render(s,a.language),this.map["cp:keywords"].render(s,a.keywords),this.map["cp:category"].render(s,a.category),this.map["cp:lastModifiedBy"].render(s,a.lastModifiedBy),this.map["cp:lastPrinted"].render(s,a.lastPrinted),this.map["cp:revision"].render(s,a.revision),this.map["cp:version"].render(s,a.version),this.map["cp:contentStatus"].render(s,a.contentStatus),this.map["cp:contentType"].render(s,a.contentType),this.map["dcterms:created"].render(s,a.created),this.map["dcterms:modified"].render(s,a.modified),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[s.name],this.parser)return this.parser.parseOpen(s),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(s))}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){if(this.parser)return this.parser.parseClose(s)||(this.parser=void 0),!0;switch(s){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: "+s)}}}n.DateFormat=function(c){return c.toISOString().replace(/[.]\d{3}/,"")},n.DateAttrs={"xsi:type":"dcterms:W3CDTF"},n.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},p.exports=n},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{render(i,o){i.leafNode("Relationship",o)}parseOpen(i){switch(i.name){case"Relationship":return this.model=i.attributes,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(e,p,g){const u=e("../../../utils/xml-stream"),i=e("../base-xform"),o=e("./relationship-xform");class r extends i{constructor(){super(),this.map={Relationship:new o}}render(n,c){c=c||this._values,n.openXml(u.StdDocAttributes),n.openNode("Relationships",r.RELATIONSHIPS_ATTRIBUTES),c.forEach(s=>{this.map.Relationship.render(n,s)}),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"Relationships":return this.model=[],!0;default:if(this.parser=this.map[n.name],this.parser)return this.parser.parseOpen(n),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(n))}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.model.push(this.parser.model),this.parser=void 0),!0;switch(n){case"Relationships":return!1;default:throw new Error("Unexpected xml node in parseClose: "+n)}}}r.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},p.exports=r},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;switch(i.name){case this.tag:this.reset(),this.model={range:{editAs:i.attributes.editAs||"oneCell"}};break;default:this.parser=this.map[i.name],this.parser&&this.parser.parseOpen(i)}return!0}parseText(i){this.parser&&this.parser.parseText(i)}reconcilePicture(i,o){if(i&&i.rId){const r=o.rels[i.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(r){const t=r[1],n=o.mediaIndex[t];return o.media[n]}}}}},{"../base-xform":32}],57:[function(e,p,g){const u=e("../base-xform"),i=e("./blip-xform");p.exports=class extends u{constructor(){super(),this.map={"a:blip":new i}}get tag(){return"xdr:blipFill"}render(o,r){o.openNode(this.tag),this.map["a:blip"].render(o,r),o.openNode("a:stretch"),o.leafNode("a:fillRect"),o.closeNode(),o.closeNode()}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:this.reset();break;default:this.parser=this.map[o.name],this.parser&&this.parser.parseOpen(o)}return!0}parseText(){}parseClose(o){if(this.parser)return this.parser.parseClose(o)||(this.parser=void 0),!0;switch(o){case this.tag:return this.model=this.map["a:blip"].model,!1;default:return!0}}}},{"../base-xform":32,"./blip-xform":58}],58:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{get tag(){return"a:blip"}render(i,o){i.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":o.rId,cstate:"print"})}parseOpen(i){switch(i.name){case this.tag:return this.model={rId:i.attributes["r:embed"]},!0;default:return!0}}parseText(){}parseClose(i){switch(i){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],59:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{get tag(){return"xdr:cNvPicPr"}render(i){i.openNode(this.tag),i.leafNode("a:picLocks",{noChangeAspect:"1"}),i.closeNode()}parseOpen(i){switch(i.name){case this.tag:default:return!0}}parseText(){}parseClose(i){switch(i){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],60:[function(e,p,g){const u=e("../base-xform"),i=e("./hlink-click-xform"),o=e("./ext-lst-xform");p.exports=class extends u{constructor(){super(),this.map={"a:hlinkClick":new i,"a:extLst":new o}}get tag(){return"xdr:cNvPr"}render(r,t){r.openNode(this.tag,{id:t.index,name:"Picture "+t.index}),this.map["a:hlinkClick"].render(r,t),this.map["a:extLst"].render(r,t),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case this.tag:this.reset();break;default:this.parser=this.map[r.name],this.parser&&this.parser.parseOpen(r)}return!0}parseText(){}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.parser=void 0),!0;switch(r){case this.tag:return this.model=this.map["a:hlinkClick"].model,!1;default:return!0}}}},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(e,p,g){const u=e("../base-xform"),i=e("../simple/integer-xform");p.exports=class extends u{constructor(o){super(),this.tag=o.tag,this.map={"xdr:col":new i({tag:"xdr:col",zero:!0}),"xdr:colOff":new i({tag:"xdr:colOff",zero:!0}),"xdr:row":new i({tag:"xdr:row",zero:!0}),"xdr:rowOff":new i({tag:"xdr:rowOff",zero:!0})}}render(o,r){o.openNode(this.tag),this.map["xdr:col"].render(o,r.nativeCol),this.map["xdr:colOff"].render(o,r.nativeColOff),this.map["xdr:row"].render(o,r.nativeRow),this.map["xdr:rowOff"].render(o,r.nativeRowOff),o.closeNode()}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:this.reset();break;default:this.parser=this.map[o.name],this.parser&&this.parser.parseOpen(o)}return!0}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){if(this.parser)return this.parser.parseClose(o)||(this.parser=void 0),!0;switch(o){case this.tag:return this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1;default:return!0}}}},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(e,p,g){const u=e("../../../utils/col-cache"),i=e("../../../utils/xml-stream"),o=e("../base-xform"),r=e("./two-cell-anchor-xform"),t=e("./one-cell-anchor-xform");class n extends o{constructor(){super(),this.map={"xdr:twoCellAnchor":new r,"xdr:oneCellAnchor":new t}}prepare(s){s.anchors.forEach((a,f)=>{a.anchorType=function(h){return(typeof h.range=="string"?u.decode(h.range):h.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}(a),this.map[a.anchorType].prepare(a,{index:f})})}get tag(){return"xdr:wsDr"}render(s,a){s.openXml(i.StdDocAttributes),s.openNode(this.tag,n.DRAWING_ATTRIBUTES),a.anchors.forEach(f=>{this.map[f.anchorType].render(s,f)}),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case this.tag:this.reset(),this.model={anchors:[]};break;default:this.parser=this.map[s.name],this.parser&&this.parser.parseOpen(s)}return!0}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){if(this.parser)return this.parser.parseClose(s)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0;switch(s){case this.tag:return!1;default:return!0}}reconcile(s,a){s.anchors.forEach(f=>{f.br?this.map["xdr:twoCellAnchor"].reconcile(f,a):this.map["xdr:oneCellAnchor"].reconcile(f,a)})}}n.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},p.exports=n},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{get tag(){return"a:extLst"}render(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()}parseOpen(i){switch(i.name){case this.tag:default:return!0}}parseText(){}parseClose(i){switch(i){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],64:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{constructor(i){super(),this.tag=i.tag,this.map={}}render(i,o){i.openNode(this.tag);const r=Math.floor(9525*o.width),t=Math.floor(9525*o.height);i.addAttribute("cx",r),i.addAttribute("cy",t),i.closeNode()}parseOpen(i){return i.name===this.tag&&(this.model={width:parseInt(i.attributes.cx||"0",10)/9525,height:parseInt(i.attributes.cy||"0",10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{get tag(){return"a:hlinkClick"}render(i,o){o.hyperlinks&&o.hyperlinks.rId&&i.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":o.hyperlinks.rId,tooltip:o.hyperlinks.tooltip})}parseOpen(i){switch(i.name){case this.tag:return this.model={hyperlinks:{rId:i.attributes["r:id"],tooltip:i.attributes.tooltip}},!0;default:return!0}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(e,p,g){const u=e("../base-xform"),i=e("./c-nv-pr-xform"),o=e("./c-nv-pic-pr-xform");p.exports=class extends u{constructor(){super(),this.map={"xdr:cNvPr":new i,"xdr:cNvPicPr":new o}}get tag(){return"xdr:nvPicPr"}render(r,t){r.openNode(this.tag),this.map["xdr:cNvPr"].render(r,t),this.map["xdr:cNvPicPr"].render(r,t),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case this.tag:this.reset();break;default:this.parser=this.map[r.name],this.parser&&this.parser.parseOpen(r)}return!0}parseText(){}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.parser=void 0),!0;switch(r){case this.tag:return this.model=this.map["xdr:cNvPr"].model,!1;default:return!0}}}},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(e,p,g){const u=e("./base-cell-anchor-xform"),i=e("../static-xform"),o=e("./cell-position-xform"),r=e("./ext-xform"),t=e("./pic-xform");p.exports=class extends u{constructor(){super(),this.map={"xdr:from":new o({tag:"xdr:from"}),"xdr:ext":new r({tag:"xdr:ext"}),"xdr:pic":new t,"xdr:clientData":new i({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(n,c){this.map["xdr:pic"].prepare(n.picture,c)}render(n,c){n.openNode(this.tag,{editAs:c.range.editAs||"oneCell"}),this.map["xdr:from"].render(n,c.range.tl),this.map["xdr:ext"].render(n,c.range.ext),this.map["xdr:pic"].render(n,c.picture),this.map["xdr:clientData"].render(n,{}),n.closeNode()}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.parser=void 0),!0;switch(n){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(n,c){n.medium=this.reconcilePicture(n.picture,c)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(e,p,g){const u=e("../base-xform"),i=e("../static-xform"),o=e("./blip-fill-xform"),r=e("./nv-pic-pr-xform"),t=e("./sp-pr");p.exports=class extends u{constructor(){super(),this.map={"xdr:nvPicPr":new r,"xdr:blipFill":new o,"xdr:spPr":new i(t)}}get tag(){return"xdr:pic"}prepare(n,c){n.index=c.index+1}render(n,c){n.openNode(this.tag),this.map["xdr:nvPicPr"].render(n,c),this.map["xdr:blipFill"].render(n,c),this.map["xdr:spPr"].render(n,c),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case this.tag:this.reset();break;default:this.parser=this.map[n.name],this.parser&&this.parser.parseOpen(n)}return!0}parseText(){}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.mergeModel(this.parser.model),this.parser=void 0),!0;switch(n){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(e,p,g){p.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],70:[function(e,p,g){const u=e("./base-cell-anchor-xform"),i=e("../static-xform"),o=e("./cell-position-xform"),r=e("./pic-xform");p.exports=class extends u{constructor(){super(),this.map={"xdr:from":new o({tag:"xdr:from"}),"xdr:to":new o({tag:"xdr:to"}),"xdr:pic":new r,"xdr:clientData":new i({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(t,n){this.map["xdr:pic"].prepare(t.picture,n)}render(t,n){t.openNode(this.tag,{editAs:n.range.editAs||"oneCell"}),this.map["xdr:from"].render(t,n.range.tl),this.map["xdr:to"].render(t,n.range.br),this.map["xdr:pic"].render(t,n.picture),this.map["xdr:clientData"].render(t,{}),t.closeNode()}parseClose(t){if(this.parser)return this.parser.parseClose(t)||(this.parser=void 0),!0;switch(t){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(t,n){t.medium=this.reconcilePicture(t.picture,n)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(e,p,g){const u=e("./base-xform");p.exports=class extends u{constructor(i){super(),this.tag=i.tag,this.always=!!i.always,this.count=i.count,this.empty=i.empty,this.$count=i.$count||"count",this.$=i.$,this.childXform=i.childXform,this.maxItems=i.maxItems}prepare(i,o){const{childXform:r}=this;i&&i.forEach((t,n)=>{o.index=n,r.prepare(t,o)})}render(i,o){if(this.always||o&&o.length){i.openNode(this.tag,this.$),this.count&&i.addAttribute(this.$count,o&&o.length||0);const{childXform:r}=this;(o||[]).forEach((t,n)=>{r.render(i,t,n)}),i.closeNode()}else this.empty&&i.leafNode(this.tag)}parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;switch(i.name){case this.tag:return this.model=[],!0;default:return!!this.childXform.parseOpen(i)&&(this.parser=this.childXform,!0)}}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(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 ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(i,o){if(i){const{childXform:r}=this;i.forEach(t=>{r.reconcile(t,o)})}}}},{"./base-xform":32}],72:[function(e,p,g){const u=e("../../../utils/col-cache"),i=e("../base-xform");p.exports=class extends i{get tag(){return"autoFilter"}render(o,r){if(r)if(typeof r=="string")o.leafNode("autoFilter",{ref:r});else{const t=function(s){return typeof s=="string"?s:u.getAddress(s.row,s.column).address},n=t(r.from),c=t(r.to);n&&c&&o.leafNode("autoFilter",{ref:`${n}:${c}`})}}parseOpen(o){o.name==="autoFilter"&&(this.model=o.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(e,p,g){const u=e("../../../utils/utils"),i=e("../base-xform"),o=e("../../../doc/range"),r=e("../../../doc/enums"),t=e("../strings/rich-text-xform");function n(c){if(c==null)return r.ValueType.Null;if(c instanceof String||typeof c=="string")return r.ValueType.String;if(typeof c=="number")return r.ValueType.Number;if(typeof c=="boolean")return r.ValueType.Boolean;if(c instanceof Date)return r.ValueType.Date;if(c.text&&c.hyperlink)return r.ValueType.Hyperlink;if(c.formula)return r.ValueType.Formula;if(c.error)return r.ValueType.Error;throw new Error("I could not understand type of value")}p.exports=class extends i{constructor(){super(),this.richTextXForm=new t}get tag(){return"c"}prepare(c,s){const a=s.styles.addStyleModel(c.style||{},function(f){switch(f.type){case r.ValueType.Formula:return n(f.result);default:return f.type}}(c));switch(a&&(c.styleId=a),c.comment&&s.comments.push({...c.comment,ref:c.address}),c.type){case r.ValueType.String:case r.ValueType.RichText:s.sharedStrings&&(c.ssId=s.sharedStrings.add(c.value));break;case r.ValueType.Date:s.date1904&&(c.date1904=!0);break;case r.ValueType.Hyperlink:s.sharedStrings&&c.text!==void 0&&c.text!==null&&(c.ssId=s.sharedStrings.add(c.text)),s.hyperlinks.push({address:c.address,target:c.hyperlink,tooltip:c.tooltip});break;case r.ValueType.Merge:s.merges.add(c);break;case r.ValueType.Formula:if(s.date1904&&(c.date1904=!0),c.shareType==="shared"&&(c.si=s.siFormulae++),c.formula)s.formulae[c.address]=c;else if(c.sharedFormula){const f=s.formulae[c.sharedFormula];if(!f)throw new Error("Shared Formula master must exist above and or left of clone for cell "+c.address);f.si===void 0?(f.shareType="shared",f.si=s.siFormulae++,f.range=new o(f.address,c.address)):f.range&&f.range.expandToAddress(c.address),c.si=f.si}}}renderFormula(c,s){let a=null;switch(s.shareType){case"shared":a={t:"shared",ref:s.ref||s.range.range,si:s.si};break;case"array":a={t:"array",ref:s.ref};break;default:s.si!==void 0&&(a={t:"shared",si:s.si})}switch(n(s.result)){case r.ValueType.Null:c.leafNode("f",a,s.formula);break;case r.ValueType.String:c.addAttribute("t","str"),c.leafNode("f",a,s.formula),c.leafNode("v",null,s.result);break;case r.ValueType.Number:c.leafNode("f",a,s.formula),c.leafNode("v",null,s.result);break;case r.ValueType.Boolean:c.addAttribute("t","b"),c.leafNode("f",a,s.formula),c.leafNode("v",null,s.result?1:0);break;case r.ValueType.Error:c.addAttribute("t","e"),c.leafNode("f",a,s.formula),c.leafNode("v",null,s.result.error);break;case r.ValueType.Date:c.leafNode("f",a,s.formula),c.leafNode("v",null,u.dateToExcel(s.result,s.date1904));break;default:throw new Error("I could not understand type of value")}}render(c,s){if(s.type!==r.ValueType.Null||s.styleId){switch(c.openNode("c"),c.addAttribute("r",s.address),s.styleId&&c.addAttribute("s",s.styleId),s.type){case r.ValueType.Null:break;case r.ValueType.Number:c.leafNode("v",null,s.value);break;case r.ValueType.Boolean:c.addAttribute("t","b"),c.leafNode("v",null,s.value?"1":"0");break;case r.ValueType.Error:c.addAttribute("t","e"),c.leafNode("v",null,s.value.error);break;case r.ValueType.String:case r.ValueType.RichText:s.ssId!==void 0?(c.addAttribute("t","s"),c.leafNode("v",null,s.ssId)):s.value&&s.value.richText?(c.addAttribute("t","inlineStr"),c.openNode("is"),s.value.richText.forEach(a=>{this.richTextXForm.render(c,a)}),c.closeNode("is")):(c.addAttribute("t","str"),c.leafNode("v",null,s.value));break;case r.ValueType.Date:c.leafNode("v",null,u.dateToExcel(s.value,s.date1904));break;case r.ValueType.Hyperlink:s.ssId!==void 0?(c.addAttribute("t","s"),c.leafNode("v",null,s.ssId)):(c.addAttribute("t","str"),c.leafNode("v",null,s.text));break;case r.ValueType.Formula:this.renderFormula(c,s);break;case r.ValueType.Merge:}c.closeNode()}}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case"c":return this.model={address:c.attributes.r},this.t=c.attributes.t,c.attributes.s&&(this.model.styleId=parseInt(c.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=c.attributes.si,this.model.shareType=c.attributes.t,this.model.ref=c.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(c),!0;default:return!1}}parseText(c){if(this.parser)this.parser.parseText(c);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+c:c;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+c:c:this.model.value=this.model.value?this.model.value+c:c}}parseClose(c){switch(c){case"c":{const{model:s}=this;if(s.formula||s.shareType)s.type=r.ValueType.Formula,s.value&&(this.t==="str"?s.result=u.xmlDecode(s.value):this.t==="b"?s.result=parseInt(s.value,10)!==0:this.t==="e"?s.result={error:s.value}:s.result=parseFloat(s.value),s.value=void 0);else if(s.value!==void 0)switch(this.t){case"s":s.type=r.ValueType.String,s.value=parseInt(s.value,10);break;case"str":s.type=r.ValueType.String,s.value=u.xmlDecode(s.value);break;case"inlineStr":s.type=r.ValueType.String;break;case"b":s.type=r.ValueType.Boolean,s.value=parseInt(s.value,10)!==0;break;case"e":s.type=r.ValueType.Error,s.value={error:s.value};break;default:s.type=r.ValueType.Number,s.value=parseFloat(s.value)}else s.styleId?s.type=r.ValueType.Null:s.type=r.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(c),!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(c),!0)}}reconcile(c,s){const a=c.styleId&&s.styles&&s.styles.getStyleModel(c.styleId);switch(a&&(c.style=a),c.styleId!==void 0&&(c.styleId=void 0),c.type){case r.ValueType.String:typeof c.value=="number"&&s.sharedStrings&&(c.value=s.sharedStrings.getString(c.value)),c.value.richText&&(c.type=r.ValueType.RichText);break;case r.ValueType.Number:a&&u.isDateFmt(a.numFmt)&&(c.type=r.ValueType.Date,c.value=u.excelToDate(c.value,s.date1904));break;case r.ValueType.Formula:c.result!==void 0&&a&&u.isDateFmt(a.numFmt)&&(c.result=u.excelToDate(c.result,s.date1904)),c.shareType==="shared"&&(c.ref?s.formulae[c.si]=c.address:(c.sharedFormula=s.formulae[c.si],delete c.shareType),delete c.si)}const f=s.hyperlinkMap[c.address];f&&(c.type===r.ValueType.Formula?(c.text=c.result,c.result=void 0):(c.text=c.value,c.value=void 0),c.type=r.ValueType.Hyperlink,c.hyperlink=f);const h=s.commentsMap&&s.commentsMap[c.address];h&&(c.comment=h)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(e,p,g){const u=e("../../base-xform");p.exports=class extends u{get tag(){return"x14:cfIcon"}render(i,o){i.leafNode(this.tag,{iconSet:o.iconSet,iconId:o.iconId})}parseOpen(i){let{attributes:o}=i;this.model={iconSet:o.iconSet,iconId:u.toIntValue(o.iconId)}}parseClose(i){return i!==this.tag}}},{"../../base-xform":32}],75:[function(e,p,g){const{v4:u}=e("uuid"),i=e("../../base-xform"),o=e("../../composite-xform"),r=e("./databar-ext-xform"),t=e("./icon-set-ext-xform"),n={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class c extends o{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new r,"x14:iconSet":this.iconSetXform=new t}}get tag(){return"x14:cfRule"}static isExt(a){return a.type==="dataBar"?r.isExt(a):!(a.type!=="iconSet"||!a.custom&&!n[a.iconSet])}prepare(a){c.isExt(a)&&(a.x14Id=`{${u()}}`.toUpperCase())}render(a,f){if(c.isExt(f))switch(f.type){case"dataBar":this.renderDataBar(a,f);break;case"iconSet":this.renderIconSet(a,f)}}renderDataBar(a,f){a.openNode(this.tag,{type:"dataBar",id:f.x14Id}),this.databarXform.render(a,f),a.closeNode()}renderIconSet(a,f){a.openNode(this.tag,{type:"iconSet",priority:f.priority,id:f.x14Id||`{${u()}}`}),this.iconSetXform.render(a,f),a.closeNode()}createNewModel(a){let{attributes:f}=a;return{type:f.type,x14Id:f.id,priority:i.toIntValue(f.priority)}}onParserClose(a,f){Object.assign(this.model,f.model)}}p.exports=c},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(e,p,g){const u=e("../../composite-xform"),i=e("./f-ext-xform");p.exports=class extends u{constructor(){super(),this.map={"xm:f":this.fExtXform=new i}}get tag(){return"x14:cfvo"}render(o,r){o.openNode(this.tag,{type:r.type}),r.value!==void 0&&this.fExtXform.render(o,r.value),o.closeNode()}createNewModel(o){return{type:o.attributes.type}}onParserClose(o,r){switch(o){case"xm:f":this.model.value=r.model?parseFloat(r.model):0}}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(e,p,g){const u=e("../../composite-xform"),i=e("./sqref-ext-xform"),o=e("./cf-rule-ext-xform");p.exports=class extends u{constructor(){super(),this.map={"xm:sqref":this.sqRef=new i,"x14:cfRule":this.cfRule=new o}}get tag(){return"x14:conditionalFormatting"}prepare(r,t){r.rules.forEach(n=>{this.cfRule.prepare(n,t)})}render(r,t){t.rules.some(o.isExt)&&(r.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),t.rules.filter(o.isExt).forEach(n=>this.cfRule.render(r,n)),this.sqRef.render(r,t.ref),r.closeNode())}createNewModel(){return{rules:[]}}onParserClose(r,t){switch(r){case"xm:sqref":this.model.ref=t.model;break;case"x14:cfRule":this.model.rules.push(t.model)}}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(e,p,g){const u=e("../../composite-xform"),i=e("./cf-rule-ext-xform"),o=e("./conditional-formatting-ext-xform");p.exports=class extends u{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new o}}get tag(){return"x14:conditionalFormattings"}hasContent(r){return r.hasExtContent===void 0&&(r.hasExtContent=r.some(t=>t.rules.some(i.isExt))),r.hasExtContent}prepare(r,t){r.forEach(n=>{this.cfXform.prepare(n,t)})}render(r,t){this.hasContent(t)&&(r.openNode(this.tag),t.forEach(n=>this.cfXform.render(r,n)),r.closeNode())}createNewModel(){return[]}onParserClose(r,t){this.model.push(t.model)}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(e,p,g){const u=e("../../base-xform"),i=e("../../composite-xform"),o=e("../../style/color-xform"),r=e("./cfvo-ext-xform");p.exports=class extends i{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new r,"x14:borderColor":this.borderColorXform=new o("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new o("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new o("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new o("x14:axisColor")}}static isExt(t){return!t.gradient}get tag(){return"x14:dataBar"}render(t,n){t.openNode(this.tag,{minLength:u.toIntAttribute(n.minLength,0,!0),maxLength:u.toIntAttribute(n.maxLength,100,!0),border:u.toBoolAttribute(n.border,!1),gradient:u.toBoolAttribute(n.gradient,!0),negativeBarColorSameAsPositive:u.toBoolAttribute(n.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:u.toBoolAttribute(n.negativeBarBorderColorSameAsPositive,!0),axisPosition:u.toAttribute(n.axisPosition,"auto"),direction:u.toAttribute(n.direction,"leftToRight")}),n.cfvo.forEach(c=>{this.cfvoXform.render(t,c)}),this.borderColorXform.render(t,n.borderColor),this.negativeBorderColorXform.render(t,n.negativeBorderColor),this.negativeFillColorXform.render(t,n.negativeFillColor),this.axisColorXform.render(t,n.axisColor),t.closeNode()}createNewModel(t){let{attributes:n}=t;return{cfvo:[],minLength:u.toIntValue(n.minLength,0),maxLength:u.toIntValue(n.maxLength,100),border:u.toBoolValue(n.border,!1),gradient:u.toBoolValue(n.gradient,!0),negativeBarColorSameAsPositive:u.toBoolValue(n.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:u.toBoolValue(n.negativeBarBorderColorSameAsPositive,!0),axisPosition:u.toStringValue(n.axisPosition,"auto"),direction:u.toStringValue(n.direction,"leftToRight")}}onParserClose(t,n){const[,c]=t.split(":");switch(c){case"cfvo":this.model.cfvo.push(n.model);break;default:this.model[c]=n.model}}}},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(e,p,g){const u=e("../../base-xform");p.exports=class extends u{get tag(){return"xm:f"}render(i,o){i.leafNode(this.tag,null,o)}parseOpen(){this.model=""}parseText(i){this.model+=i}parseClose(i){return i!==this.tag}}},{"../../base-xform":32}],81:[function(e,p,g){const u=e("../../base-xform"),i=e("../../composite-xform"),o=e("./cfvo-ext-xform"),r=e("./cf-icon-ext-xform");p.exports=class extends i{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new o,"x14:cfIcon":this.cfIconXform=new r}}get tag(){return"x14:iconSet"}render(t,n){t.openNode(this.tag,{iconSet:u.toStringAttribute(n.iconSet),reverse:u.toBoolAttribute(n.reverse,!1),showValue:u.toBoolAttribute(n.showValue,!0),custom:u.toBoolAttribute(n.icons,!1)}),n.cfvo.forEach(c=>{this.cfvoXform.render(t,c)}),n.icons&&n.icons.forEach((c,s)=>{c.iconId=s,this.cfIconXform.render(t,c)}),t.closeNode()}createNewModel(t){let{attributes:n}=t;return{cfvo:[],iconSet:u.toStringValue(n.iconSet,"3TrafficLights"),reverse:u.toBoolValue(n.reverse,!1),showValue:u.toBoolValue(n.showValue,!0)}}onParserClose(t,n){const[,c]=t.split(":");switch(c){case"cfvo":this.model.cfvo.push(n.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(n.model);break;default:this.model[c]=n.model}}}},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(e,p,g){const u=e("../../base-xform");p.exports=class extends u{get tag(){return"xm:sqref"}render(i,o){i.leafNode(this.tag,null,o)}parseOpen(){this.model=""}parseText(i){this.model+=i}parseClose(i){return i!==this.tag}}},{"../../base-xform":32}],83:[function(e,p,g){const u=e("../../base-xform"),i=e("../../composite-xform"),o=e("../../../../doc/range"),r=e("./databar-xform"),t=e("./ext-lst-ref-xform"),n=e("./formula-xform"),c=e("./color-scale-xform"),s=e("./icon-set-xform"),a={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},f=d=>{const{type:b,operator:m}=d;switch(b){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:b};default:return{type:b,operator:m}}};class h extends i{constructor(){super(),this.map={dataBar:this.databarXform=new r,extLst:this.extLstRefXform=new t,formula:this.formulaXform=new n,colorScale:this.colorScaleXform=new c,iconSet:this.iconSetXform=new s}}get tag(){return"cfRule"}static isPrimitive(b){return b.type!=="iconSet"||!b.custom&&!a[b.iconSet]}render(b,m){switch(m.type){case"expression":this.renderExpression(b,m);break;case"cellIs":this.renderCellIs(b,m);break;case"top10":this.renderTop10(b,m);break;case"aboveAverage":this.renderAboveAverage(b,m);break;case"dataBar":this.renderDataBar(b,m);break;case"colorScale":this.renderColorScale(b,m);break;case"iconSet":this.renderIconSet(b,m);break;case"containsText":this.renderText(b,m);break;case"timePeriod":this.renderTimePeriod(b,m)}}renderExpression(b,m){b.openNode(this.tag,{type:"expression",dxfId:m.dxfId,priority:m.priority}),this.formulaXform.render(b,m.formulae[0]),b.closeNode()}renderCellIs(b,m){b.openNode(this.tag,{type:"cellIs",dxfId:m.dxfId,priority:m.priority,operator:m.operator}),m.formulae.forEach(x=>{this.formulaXform.render(b,x)}),b.closeNode()}renderTop10(b,m){b.leafNode(this.tag,{type:"top10",dxfId:m.dxfId,priority:m.priority,percent:u.toBoolAttribute(m.percent,!1),bottom:u.toBoolAttribute(m.bottom,!1),rank:u.toIntValue(m.rank,10,!0)})}renderAboveAverage(b,m){b.leafNode(this.tag,{type:"aboveAverage",dxfId:m.dxfId,priority:m.priority,aboveAverage:u.toBoolAttribute(m.aboveAverage,!0)})}renderDataBar(b,m){b.openNode(this.tag,{type:"dataBar",priority:m.priority}),this.databarXform.render(b,m),this.extLstRefXform.render(b,m),b.closeNode()}renderColorScale(b,m){b.openNode(this.tag,{type:"colorScale",priority:m.priority}),this.colorScaleXform.render(b,m),b.closeNode()}renderIconSet(b,m){h.isPrimitive(m)&&(b.openNode(this.tag,{type:"iconSet",priority:m.priority}),this.iconSetXform.render(b,m),b.closeNode())}renderText(b,m){b.openNode(this.tag,{type:m.operator,dxfId:m.dxfId,priority:m.priority,operator:u.toStringAttribute(m.operator,"containsText")});const x=(k=>{if(k.formulae&&k.formulae[0])return k.formulae[0];const R=new o(k.ref),{tl:F}=R;switch(k.operator){case"containsText":return`NOT(ISERROR(SEARCH("${k.text}",${F})))`;case"containsBlanks":return`LEN(TRIM(${F}))=0`;case"notContainsBlanks":return`LEN(TRIM(${F}))>0`;case"containsErrors":return`ISERROR(${F})`;case"notContainsErrors":return`NOT(ISERROR(${F}))`;default:return}})(m);x&&this.formulaXform.render(b,x),b.closeNode()}renderTimePeriod(b,m){b.openNode(this.tag,{type:"timePeriod",dxfId:m.dxfId,priority:m.priority,timePeriod:m.timePeriod});const x=(k=>{if(k.formulae&&k.formulae[0])return k.formulae[0];const R=new o(k.ref),{tl:F}=R;switch(k.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${F},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${F},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${F},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${F},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${F},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${F},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${F},1)=TODAY()-1`;case"today":return`FLOOR(${F},1)=TODAY()`;case"tomorrow":return`FLOOR(${F},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${F},1)<=6,FLOOR(${F},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${F})=MONTH(EDATE(TODAY(),0-1)),YEAR(${F})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${F})=MONTH(TODAY()),YEAR(${F})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${F})=MONTH(EDATE(TODAY(),0+1)),YEAR(${F})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(m);x&&this.formulaXform.render(b,x),b.closeNode()}createNewModel(b){let{attributes:m}=b;return{...f(m),dxfId:u.toIntValue(m.dxfId),priority:u.toIntValue(m.priority),timePeriod:m.timePeriod,percent:u.toBoolValue(m.percent),bottom:u.toBoolValue(m.bottom),rank:u.toIntValue(m.rank),aboveAverage:u.toBoolValue(m.aboveAverage)}}onParserClose(b,m){switch(b){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,m.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(m.model)}}}p.exports=h},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(e,p,g){const u=e("../../base-xform");p.exports=class extends u{get tag(){return"cfvo"}render(i,o){i.leafNode(this.tag,{type:o.type,val:o.value})}parseOpen(i){this.model={type:i.attributes.type,value:u.toFloatValue(i.attributes.val)}}parseClose(i){return i!==this.tag}}},{"../../base-xform":32}],85:[function(e,p,g){const u=e("../../composite-xform"),i=e("../../style/color-xform"),o=e("./cfvo-xform");p.exports=class extends u{constructor(){super(),this.map={cfvo:this.cfvoXform=new o,color:this.colorXform=new i}}get tag(){return"colorScale"}render(r,t){r.openNode(this.tag),t.cfvo.forEach(n=>{this.cfvoXform.render(r,n)}),t.color.forEach(n=>{this.colorXform.render(r,n)}),r.closeNode()}createNewModel(r){return{cfvo:[],color:[]}}onParserClose(r,t){this.model[r].push(t.model)}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(e,p,g){const u=e("../../composite-xform"),i=e("./cf-rule-xform");p.exports=class extends u{constructor(){super(),this.map={cfRule:new i}}get tag(){return"conditionalFormatting"}render(o,r){r.rules.some(i.isPrimitive)&&(o.openNode(this.tag,{sqref:r.ref}),r.rules.forEach(t=>{i.isPrimitive(t)&&(t.ref=r.ref,this.map.cfRule.render(o,t))}),o.closeNode())}createNewModel(o){let{attributes:r}=o;return{ref:r.sqref,rules:[]}}onParserClose(o,r){this.model.rules.push(r.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(e,p,g){const u=e("../../base-xform"),i=e("./conditional-formatting-xform");p.exports=class extends u{constructor(){super(),this.cfXform=new i}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(o,r){let t=o.reduce((n,c)=>Math.max(n,...c.rules.map(s=>s.priority||0)),1);o.forEach(n=>{n.rules.forEach(c=>{c.priority||(c.priority=t++),c.style&&(c.dxfId=r.styles.addDxfStyle(c.style))})})}render(o,r){r.forEach(t=>{this.cfXform.render(o,t)})}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case"conditionalFormatting":return this.parser=this.cfXform,this.parser.parseOpen(o),!0;default:return!1}}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){return!!this.parser&&(!!this.parser.parseClose(o)||(this.model.push(this.parser.model),this.parser=void 0,!1))}reconcile(o,r){o.forEach(t=>{t.rules.forEach(n=>{n.dxfId!==void 0&&(n.style=r.styles.getDxfStyle(n.dxfId),delete n.dxfId)})})}}},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(e,p,g){const u=e("../../composite-xform"),i=e("../../style/color-xform"),o=e("./cfvo-xform");p.exports=class extends u{constructor(){super(),this.map={cfvo:this.cfvoXform=new o,color:this.colorXform=new i}}get tag(){return"dataBar"}render(r,t){r.openNode(this.tag),t.cfvo.forEach(n=>{this.cfvoXform.render(r,n)}),this.colorXform.render(r,t.color),r.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(r,t){switch(r){case"cfvo":this.model.cfvo.push(t.model);break;case"color":this.model.color=t.model}}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(e,p,g){const u=e("../../base-xform"),i=e("../../composite-xform");class o extends u{get tag(){return"x14:id"}render(n,c){n.leafNode(this.tag,null,c)}parseOpen(){this.model=""}parseText(n){this.model+=n}parseClose(n){return n!==this.tag}}class r extends i{constructor(){super(),this.map={"x14:id":this.idXform=new o}}get tag(){return"ext"}render(n,c){n.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(n,c.x14Id),n.closeNode()}createNewModel(){return{}}onParserClose(n,c){this.model.x14Id=c.model}}p.exports=class extends i{constructor(){super(),this.map={ext:new r}}get tag(){return"extLst"}render(t,n){t.openNode(this.tag),this.map.ext.render(t,n),t.closeNode()}createNewModel(){return{}}onParserClose(t,n){Object.assign(this.model,n.model)}}},{"../../base-xform":32,"../../composite-xform":48}],90:[function(e,p,g){const u=e("../../base-xform");p.exports=class extends u{get tag(){return"formula"}render(i,o){i.leafNode(this.tag,null,o)}parseOpen(){this.model=""}parseText(i){this.model+=i}parseClose(i){return i!==this.tag}}},{"../../base-xform":32}],91:[function(e,p,g){const u=e("../../base-xform"),i=e("../../composite-xform"),o=e("./cfvo-xform");p.exports=class extends i{constructor(){super(),this.map={cfvo:this.cfvoXform=new o}}get tag(){return"iconSet"}render(r,t){r.openNode(this.tag,{iconSet:u.toStringAttribute(t.iconSet,"3TrafficLights"),reverse:u.toBoolAttribute(t.reverse,!1),showValue:u.toBoolAttribute(t.showValue,!0)}),t.cfvo.forEach(n=>{this.cfvoXform.render(r,n)}),r.closeNode()}createNewModel(r){let{attributes:t}=r;return{iconSet:u.toStringValue(t.iconSet,"3TrafficLights"),reverse:u.toBoolValue(t.reverse),showValue:u.toBoolValue(t.showValue),cfvo:[]}}onParserClose(r,t){this.model[r].push(t.model)}}},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(e,p,g){const u=e("../../../utils/utils"),i=e("../base-xform");p.exports=class extends i{get tag(){return"col"}prepare(o,r){const t=r.styles.addStyleModel(o.style||{});t&&(o.styleId=t)}render(o,r){o.openNode("col"),o.addAttribute("min",r.min),o.addAttribute("max",r.max),r.width&&o.addAttribute("width",r.width),r.styleId&&o.addAttribute("style",r.styleId),r.hidden&&o.addAttribute("hidden","1"),r.bestFit&&o.addAttribute("bestFit","1"),r.outlineLevel&&o.addAttribute("outlineLevel",r.outlineLevel),r.collapsed&&o.addAttribute("collapsed","1"),o.addAttribute("customWidth","1"),o.closeNode()}parseOpen(o){if(o.name==="col"){const r=this.model={min:parseInt(o.attributes.min||"0",10),max:parseInt(o.attributes.max||"0",10),width:o.attributes.width===void 0?void 0:parseFloat(o.attributes.width||"0")};return o.attributes.style&&(r.styleId=parseInt(o.attributes.style,10)),u.parseBoolean(o.attributes.hidden)&&(r.hidden=!0),u.parseBoolean(o.attributes.bestFit)&&(r.bestFit=!0),o.attributes.outlineLevel&&(r.outlineLevel=parseInt(o.attributes.outlineLevel,10)),u.parseBoolean(o.attributes.collapsed)&&(r.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(o,r){o.styleId&&(o.style=r.styles.getStyleModel(o.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(e,p,g){const u=e("../../../utils/under-dash"),i=e("../../../utils/utils"),o=e("../../../utils/col-cache"),r=e("../base-xform"),t=e("../../../doc/range");function n(s,a,f,h){const d=a[f];d!==void 0?s[f]=d:h!==void 0&&(s[f]=h)}function c(s,a,f,h){const d=a[f];d!==void 0&&(s[f]=i.parseBoolean(d))}p.exports=class extends r{get tag(){return"dataValidations"}render(s,a){const f=function(h){const d=u.map(h,(x,k)=>({address:k,dataValidation:x,marked:!1})).sort((x,k)=>u.strcmp(x.address,k.address)),b=u.keyBy(d,"address"),m=(x,k,R)=>{for(let F=0;F<k;F++){const L=o.encodeAddress(x.row+F,R);if(!h[L]||!u.isEqual(h[x.address],h[L]))return!1}return!0};return d.map(x=>{if(!x.marked){const k=o.decodeEx(x.address);if(k.dimensions)return b[k.dimensions].marked=!0,{...x.dataValidation,sqref:x.address};let R=1,F=o.encodeAddress(k.row+R,k.col);for(;h[F]&&u.isEqual(x.dataValidation,h[F]);)R++,F=o.encodeAddress(k.row+R,k.col);let L=1;for(;m(k,R,k.col+L);)L++;for(let j=0;j<R;j++)for(let D=0;D<L;D++)F=o.encodeAddress(k.row+j,k.col+D),b[F].marked=!0;if(R>1||L>1){const j=k.row+(R-1),D=k.col+(L-1);return{...x.dataValidation,sqref:`${x.address}:${o.encodeAddress(j,D)}`}}return{...x.dataValidation,sqref:x.address}}return null}).filter(Boolean)}(a);f.length&&(s.openNode("dataValidations",{count:f.length}),f.forEach(h=>{s.openNode("dataValidation"),h.type!=="any"&&(s.addAttribute("type",h.type),h.operator&&h.type!=="list"&&h.operator!=="between"&&s.addAttribute("operator",h.operator),h.allowBlank&&s.addAttribute("allowBlank","1")),h.showInputMessage&&s.addAttribute("showInputMessage","1"),h.promptTitle&&s.addAttribute("promptTitle",h.promptTitle),h.prompt&&s.addAttribute("prompt",h.prompt),h.showErrorMessage&&s.addAttribute("showErrorMessage","1"),h.errorStyle&&s.addAttribute("errorStyle",h.errorStyle),h.errorTitle&&s.addAttribute("errorTitle",h.errorTitle),h.error&&s.addAttribute("error",h.error),s.addAttribute("sqref",h.sqref),(h.formulae||[]).forEach((d,b)=>{s.openNode("formula"+(b+1)),h.type==="date"?s.writeText(i.dateToExcel(new Date(d))):s.writeText(d),s.closeNode()}),s.closeNode()}),s.closeNode())}parseOpen(s){switch(s.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=s.attributes.sqref;const a={type:s.attributes.type||"any",formulae:[]};switch(s.attributes.type&&c(a,s.attributes,"allowBlank"),c(a,s.attributes,"showInputMessage"),c(a,s.attributes,"showErrorMessage"),a.type){case"any":case"list":case"custom":break;default:n(a,s.attributes,"operator","between")}return n(a,s.attributes,"promptTitle"),n(a,s.attributes,"prompt"),n(a,s.attributes,"errorStyle"),n(a,s.attributes,"errorTitle"),n(a,s.attributes,"error"),this._dataValidation=a,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(s){this._formula&&this._formula.push(s)}parseClose(s){switch(s){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach(a=>{a.includes(":")?new t(a).forEachAddress(f=>{this.model[f]=this._dataValidation}):this.model[a]=this._dataValidation}),!0;case"formula1":case"formula2":{let a=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":a=parseInt(a,10);break;case"decimal":a=parseFloat(a);break;case"date":a=i.excelToDate(parseFloat(a))}return this._dataValidation.formulae.push(a),this._formula=void 0,!0}default:return!0}}}},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{get tag(){return"dimension"}render(i,o){o&&i.leafNode("dimension",{ref:o})}parseOpen(i){return i.name==="dimension"&&(this.model=i.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{get tag(){return"drawing"}render(i,o){o&&i.leafNode(this.tag,{"r:id":o.rId})}parseOpen(i){switch(i.name){case this.tag:return this.model={rId:i.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(e,p,g){const u=e("../composite-xform"),i=e("./cf-ext/conditional-formattings-ext-xform");class o extends u{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new i}}get tag(){return"ext"}hasContent(t){return this.conditionalFormattings.hasContent(t.conditionalFormattings)}prepare(t,n){this.conditionalFormattings.prepare(t.conditionalFormattings,n)}render(t,n){t.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(t,n.conditionalFormattings),t.closeNode()}createNewModel(){return{}}onParserClose(t,n){this.model[t]=n.model}}p.exports=class extends u{constructor(){super(),this.map={ext:this.ext=new o}}get tag(){return"extLst"}prepare(r,t){this.ext.prepare(r,t)}hasContent(r){return this.ext.hasContent(r)}render(r,t){this.hasContent(t)&&(r.openNode("extLst"),this.ext.render(r,t),r.closeNode())}createNewModel(){return{}}onParserClose(r,t){Object.assign(this.model,t.model)}}},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{get tag(){return"headerFooter"}render(i,o){if(o){i.addRollback();let r=!1;i.openNode("headerFooter"),o.differentFirst&&(i.addAttribute("differentFirst","1"),r=!0),o.differentOddEven&&(i.addAttribute("differentOddEven","1"),r=!0),o.oddHeader&&typeof o.oddHeader=="string"&&(i.leafNode("oddHeader",null,o.oddHeader),r=!0),o.oddFooter&&typeof o.oddFooter=="string"&&(i.leafNode("oddFooter",null,o.oddFooter),r=!0),o.evenHeader&&typeof o.evenHeader=="string"&&(i.leafNode("evenHeader",null,o.evenHeader),r=!0),o.evenFooter&&typeof o.evenFooter=="string"&&(i.leafNode("evenFooter",null,o.evenFooter),r=!0),o.firstHeader&&typeof o.firstHeader=="string"&&(i.leafNode("firstHeader",null,o.firstHeader),r=!0),o.firstFooter&&typeof o.firstFooter=="string"&&(i.leafNode("firstFooter",null,o.firstFooter),r=!0),r?(i.closeNode(),i.commit()):i.rollback()}}parseOpen(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}}parseText(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}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}},{"../base-xform":32}],98:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{get tag(){return"hyperlink"}render(i,o){this.isInternalLink(o)?i.leafNode("hyperlink",{ref:o.address,"r:id":o.rId,tooltip:o.tooltip,location:o.target}):i.leafNode("hyperlink",{ref:o.address,"r:id":o.rId,tooltip:o.tooltip})}parseOpen(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)}parseText(){}parseClose(){return!1}isInternalLink(i){return i.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(i.target)}}},{"../base-xform":32}],99:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{get tag(){return"mergeCell"}render(i,o){i.leafNode("mergeCell",{ref:o})}parseOpen(i){return i.name==="mergeCell"&&(this.model=i.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(e,p,g){const u=e("../../../utils/under-dash"),i=e("../../../doc/range"),o=e("../../../utils/col-cache"),r=e("../../../doc/enums");p.exports=class{constructor(){this.merges={}}add(t){if(this.merges[t.master])this.merges[t.master].expandToAddress(t.address);else{const n=`${t.master}:${t.address}`;this.merges[t.master]=new i(n)}}get mergeCells(){return u.map(this.merges,t=>t.range)}reconcile(t,n){u.each(t,c=>{const s=o.decode(c);for(let a=s.top;a<=s.bottom;a++){const f=n[a-1];for(let h=s.left;h<=s.right;h++){const d=f.cells[h-1];d?d.type===r.ValueType.Merge&&(d.master=s.tl):f.cells[h]={type:r.ValueType.Null,address:o.encodeAddress(a,h)}}}})}getMasterAddress(t){const n=this.hash[t];return n&&n.tl}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(e,p,g){const u=e("../base-xform"),i=o=>o!==void 0;p.exports=class extends u{get tag(){return"outlinePr"}render(o,r){return!(!r||!i(r.summaryBelow)&&!i(r.summaryRight))&&(o.leafNode(this.tag,{summaryBelow:i(r.summaryBelow)?Number(r.summaryBelow):void 0,summaryRight:i(r.summaryRight)?Number(r.summaryRight):void 0}),!0)}parseOpen(o){return o.name===this.tag&&(this.model={summaryBelow:i(o.attributes.summaryBelow)?!!Number(o.attributes.summaryBelow):void 0,summaryRight:i(o.attributes.summaryRight)?!!Number(o.attributes.summaryRight):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{get tag(){return"brk"}render(i,o){i.leafNode("brk",o)}parseOpen(i){return i.name==="brk"&&(this.model=i.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(e,p,g){const u=e("../../../utils/under-dash"),i=e("../base-xform");p.exports=class extends i{get tag(){return"pageMargins"}render(o,r){if(r){const t={left:r.left,right:r.right,top:r.top,bottom:r.bottom,header:r.header,footer:r.footer};u.some(t,n=>n!==void 0)&&o.leafNode(this.tag,t)}}parseOpen(o){switch(o.name){case this.tag:return this.model={left:parseFloat(o.attributes.left||.7),right:parseFloat(o.attributes.right||.7),top:parseFloat(o.attributes.top||.75),bottom:parseFloat(o.attributes.bottom||.75),header:parseFloat(o.attributes.header||.3),footer:parseFloat(o.attributes.footer||.3)},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{get tag(){return"pageSetUpPr"}render(i,o){return!(!o||!o.fitToPage)&&(i.leafNode(this.tag,{fitToPage:o.fitToPage?"1":void 0}),!0)}parseOpen(i){return i.name===this.tag&&(this.model={fitToPage:i.attributes.fitToPage==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(e,p,g){const u=e("../../../utils/under-dash"),i=e("../base-xform");function o(c){return c?"1":void 0}function r(c){switch(c){case"overThenDown":return c;default:return}}function t(c){switch(c){case"atEnd":case"asDisplyed":return c;default:return}}function n(c){switch(c){case"dash":case"blank":case"NA":return c;default:return}}p.exports=class extends i{get tag(){return"pageSetup"}render(c,s){if(s){const a={paperSize:s.paperSize,orientation:s.orientation,horizontalDpi:s.horizontalDpi,verticalDpi:s.verticalDpi,pageOrder:r(s.pageOrder),blackAndWhite:o(s.blackAndWhite),draft:o(s.draft),cellComments:t(s.cellComments),errors:n(s.errors),scale:s.scale,fitToWidth:s.fitToWidth,fitToHeight:s.fitToHeight,firstPageNumber:s.firstPageNumber,useFirstPageNumber:o(s.firstPageNumber),usePrinterDefaults:o(s.usePrinterDefaults),copies:s.copies};u.some(a,f=>f!==void 0)&&c.leafNode(this.tag,a)}}parseOpen(c){switch(c.name){case this.tag:return this.model={paperSize:(s=c.attributes.paperSize,s!==void 0?parseInt(s,10):void 0),orientation:c.attributes.orientation||"portrait",horizontalDpi:parseInt(c.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(c.attributes.verticalDpi||"4294967295",10),pageOrder:c.attributes.pageOrder||"downThenOver",blackAndWhite:c.attributes.blackAndWhite==="1",draft:c.attributes.draft==="1",cellComments:c.attributes.cellComments||"None",errors:c.attributes.errors||"displayed",scale:parseInt(c.attributes.scale||"100",10),fitToWidth:parseInt(c.attributes.fitToWidth||"1",10),fitToHeight:parseInt(c.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(c.attributes.firstPageNumber||"1",10),useFirstPageNumber:c.attributes.useFirstPageNumber==="1",usePrinterDefaults:c.attributes.usePrinterDefaults==="1",copies:parseInt(c.attributes.copies||"1",10)},!0;default:return!1}var s}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{get tag(){return"picture"}render(i,o){o&&i.leafNode(this.tag,{"r:id":o.rId})}parseOpen(i){switch(i.name){case this.tag:return this.model={rId:i.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(e,p,g){const u=e("../../../utils/under-dash"),i=e("../base-xform");function o(r){return r?"1":void 0}p.exports=class extends i{get tag(){return"printOptions"}render(r,t){if(t){const n={headings:o(t.showRowColHeaders),gridLines:o(t.showGridLines),horizontalCentered:o(t.horizontalCentered),verticalCentered:o(t.verticalCentered)};u.some(n,c=>c!==void 0)&&r.leafNode(this.tag,n)}}parseOpen(r){switch(r.name){case this.tag:return this.model={showRowColHeaders:r.attributes.headings==="1",showGridLines:r.attributes.gridLines==="1",horizontalCentered:r.attributes.horizontalCentered==="1",verticalCentered:r.attributes.verticalCentered==="1"},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(e,p,g){const u=e("./page-breaks-xform"),i=e("../list-xform");p.exports=class extends i{constructor(){super({tag:"rowBreaks",count:!0,childXform:new u})}render(o,r){if(r&&r.length){o.openNode(this.tag,this.$),this.count&&(o.addAttribute(this.$count,r.length),o.addAttribute("manualBreakCount",r.length));const{childXform:t}=this;r.forEach(n=>{t.render(o,n)}),o.closeNode()}else this.empty&&o.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(e,p,g){const u=e("../base-xform"),i=e("../../../utils/utils"),o=e("./cell-xform");p.exports=class extends u{constructor(r){super(),this.maxItems=r&&r.maxItems,this.map={c:new o}}get tag(){return"row"}prepare(r,t){const n=t.styles.addStyleModel(r.style);n&&(r.styleId=n);const c=this.map.c;r.cells.forEach(s=>{c.prepare(s,t)})}render(r,t,n){r.openNode("row"),r.addAttribute("r",t.number),t.height&&(r.addAttribute("ht",t.height),r.addAttribute("customHeight","1")),t.hidden&&r.addAttribute("hidden","1"),t.min>0&&t.max>0&&t.min<=t.max&&r.addAttribute("spans",`${t.min}:${t.max}`),t.styleId&&(r.addAttribute("s",t.styleId),r.addAttribute("customFormat","1")),r.addAttribute("x14ac:dyDescent","0.25"),t.outlineLevel&&r.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&r.addAttribute("collapsed","1");const c=this.map.c;t.cells.forEach(s=>{c.render(r,s,n)}),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;if(r.name==="row"){this.numRowsSeen+=1;const t=r.attributes.spans?r.attributes.spans.split(":").map(c=>parseInt(c,10)):[void 0,void 0],n=this.model={number:parseInt(r.attributes.r,10),min:t[0],max:t[1],cells:[]};return r.attributes.s&&(n.styleId=parseInt(r.attributes.s,10)),i.parseBoolean(r.attributes.hidden)&&(n.hidden=!0),i.parseBoolean(r.attributes.bestFit)&&(n.bestFit=!0),r.attributes.ht&&(n.height=parseFloat(r.attributes.ht)),r.attributes.outlineLevel&&(n.outlineLevel=parseInt(r.attributes.outlineLevel,10)),i.parseBoolean(r.attributes.collapsed)&&(n.collapsed=!0),!0}return this.parser=this.map[r.name],!!this.parser&&(this.parser.parseOpen(r),!0)}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser){if(!this.parser.parseClose(r)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(r,t){r.style=r.styleId?t.styles.getStyleModel(r.styleId):{},r.styleId!==void 0&&(r.styleId=void 0);const n=this.map.c;r.cells.forEach(c=>{n.reconcile(c,t)})}}},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(e,p,g){const u=e("../../../utils/under-dash"),i=e("../base-xform");p.exports=class extends i{get tag(){return"sheetFormatPr"}render(o,r){if(r){const t={defaultRowHeight:r.defaultRowHeight,outlineLevelRow:r.outlineLevelRow,outlineLevelCol:r.outlineLevelCol,"x14ac:dyDescent":r.dyDescent};r.defaultColWidth&&(t.defaultColWidth=r.defaultColWidth),r.defaultRowHeight&&r.defaultRowHeight===15||(t.customHeight="1"),u.some(t,n=>n!==void 0)&&o.leafNode("sheetFormatPr",t)}}parseOpen(o){return o.name==="sheetFormatPr"&&(this.model={defaultRowHeight:parseFloat(o.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(o.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(o.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(o.attributes.outlineLevelCol||"0",10)},o.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(o.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(e,p,g){const u=e("../base-xform"),i=e("../style/color-xform"),o=e("./page-setup-properties-xform"),r=e("./outline-properties-xform");p.exports=class extends u{constructor(){super(),this.map={tabColor:new i("tabColor"),pageSetUpPr:new o,outlinePr:new r}}get tag(){return"sheetPr"}render(t,n){if(n){t.addRollback(),t.openNode("sheetPr");let c=!1;c=this.map.tabColor.render(t,n.tabColor)||c,c=this.map.pageSetUpPr.render(t,n.pageSetup)||c,c=this.map.outlinePr.render(t,n.outlineProperties)||c,c?(t.closeNode(),t.commit()):t.rollback()}}parseOpen(t){return this.parser?(this.parser.parseOpen(t),!0):t.name===this.tag?(this.reset(),!0):!!this.map[t.name]&&(this.parser=this.map[t.name],this.parser.parseOpen(t),!0)}parseText(t){return!!this.parser&&(this.parser.parseText(t),!0)}parseClose(t){return this.parser?(this.parser.parseClose(t)||(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)}}},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(e,p,g){const u=e("../../../utils/under-dash"),i=e("../base-xform");function o(t,n){return t?n:void 0}function r(t,n){return t===n||void 0}p.exports=class extends i{get tag(){return"sheetProtection"}render(t,n){if(n){const c={sheet:o(n.sheet,"1"),selectLockedCells:n.selectLockedCells===!1?"1":void 0,selectUnlockedCells:n.selectUnlockedCells===!1?"1":void 0,formatCells:o(n.formatCells,"0"),formatColumns:o(n.formatColumns,"0"),formatRows:o(n.formatRows,"0"),insertColumns:o(n.insertColumns,"0"),insertRows:o(n.insertRows,"0"),insertHyperlinks:o(n.insertHyperlinks,"0"),deleteColumns:o(n.deleteColumns,"0"),deleteRows:o(n.deleteRows,"0"),sort:o(n.sort,"0"),autoFilter:o(n.autoFilter,"0"),pivotTables:o(n.pivotTables,"0")};n.sheet&&(c.algorithmName=n.algorithmName,c.hashValue=n.hashValue,c.saltValue=n.saltValue,c.spinCount=n.spinCount,c.objects=o(n.objects===!1,"1"),c.scenarios=o(n.scenarios===!1,"1")),u.some(c,s=>s!==void 0)&&t.leafNode(this.tag,c)}}parseOpen(t){switch(t.name){case this.tag:return this.model={sheet:r(t.attributes.sheet,"1"),objects:t.attributes.objects!=="1"&&void 0,scenarios:t.attributes.scenarios!=="1"&&void 0,selectLockedCells:t.attributes.selectLockedCells!=="1"&&void 0,selectUnlockedCells:t.attributes.selectUnlockedCells!=="1"&&void 0,formatCells:r(t.attributes.formatCells,"0"),formatColumns:r(t.attributes.formatColumns,"0"),formatRows:r(t.attributes.formatRows,"0"),insertColumns:r(t.attributes.insertColumns,"0"),insertRows:r(t.attributes.insertRows,"0"),insertHyperlinks:r(t.attributes.insertHyperlinks,"0"),deleteColumns:r(t.attributes.deleteColumns,"0"),deleteRows:r(t.attributes.deleteRows,"0"),sort:r(t.attributes.sort,"0"),autoFilter:r(t.attributes.autoFilter,"0"),pivotTables:r(t.attributes.pivotTables,"0")},t.attributes.algorithmName&&(this.model.algorithmName=t.attributes.algorithmName,this.model.hashValue=t.attributes.hashValue,this.model.saltValue=t.attributes.saltValue,this.model.spinCount=parseInt(t.attributes.spinCount,10)),!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(e,p,g){const u=e("../../../utils/col-cache"),i=e("../base-xform"),o={frozen:"frozen",frozenSplit:"frozen",split:"split"};p.exports=class extends i{get tag(){return"sheetView"}prepare(r){switch(r.state){case"frozen":case"split":break;default:r.state="normal"}}render(r,t){r.openNode("sheetView",{workbookViewId:t.workbookViewId||0});const n=function(h,d,b){b&&r.addAttribute(h,d)};let c,s,a,f;switch(n("rightToLeft","1",t.rightToLeft===!0),n("tabSelected","1",t.tabSelected),n("showRuler","0",t.showRuler===!1),n("showRowColHeaders","0",t.showRowColHeaders===!1),n("showGridLines","0",t.showGridLines===!1),n("zoomScale",t.zoomScale,t.zoomScale),n("zoomScaleNormal",t.zoomScaleNormal,t.zoomScaleNormal),n("view",t.style,t.style),t.state){case"frozen":s=t.xSplit||0,a=t.ySplit||0,c=t.topLeftCell||u.getAddress(a+1,s+1).address,f=(t.xSplit&&t.ySplit?"bottomRight":t.xSplit&&"topRight")||"bottomLeft",r.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:c,activePane:f,state:"frozen"}),r.leafNode("selection",{pane:f,activeCell:t.activeCell,sqref:t.activeCell});break;case"split":t.activePane==="topLeft"&&(t.activePane=void 0),r.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:t.topLeftCell,activePane:t.activePane}),r.leafNode("selection",{pane:t.activePane,activeCell:t.activeCell,sqref:t.activeCell});break;case"normal":t.activeCell&&r.leafNode("selection",{activeCell:t.activeCell,sqref:t.activeCell})}r.closeNode()}parseOpen(r){switch(r.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(r.attributes.workbookViewId,10),rightToLeft:r.attributes.rightToLeft==="1",tabSelected:r.attributes.tabSelected==="1",showRuler:r.attributes.showRuler!=="0",showRowColHeaders:r.attributes.showRowColHeaders!=="0",showGridLines:r.attributes.showGridLines!=="0",zoomScale:parseInt(r.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(r.attributes.zoomScaleNormal||"100",10),style:r.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(r.attributes.xSplit||"0",10),ySplit:parseInt(r.attributes.ySplit||"0",10),topLeftCell:r.attributes.topLeftCell,activePane:r.attributes.activePane||"topLeft",state:r.attributes.state},!0;case"selection":{const t=r.attributes.pane||"topLeft";return this.selections[t]={pane:t,activeCell:r.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(r){let t,n;switch(r){case"sheetView":return this.sheetView&&this.pane?(t=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"&&(t.activePane=this.pane.activePane),n=this.selections[this.pane.activePane],n&&n.activeCell&&(t.activeCell=n.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)):(t=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},n=this.selections.topLeft,n&&n.activeCell&&(t.activeCell=n.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)),!1;default:return!0}}reconcile(){}}},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{get tag(){return"tablePart"}render(i,o){o&&i.leafNode(this.tag,{"r:id":o.rId})}parseOpen(i){switch(i.name){case this.tag:return this.model={rId:i.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(e,p,g){const u=e("../../../utils/under-dash"),i=e("../../../utils/col-cache"),o=e("../../../utils/xml-stream"),r=e("../../rel-type"),t=e("./merges"),n=e("../base-xform"),c=e("../list-xform"),s=e("./row-xform"),a=e("./col-xform"),f=e("./dimension-xform"),h=e("./hyperlink-xform"),d=e("./merge-cell-xform"),b=e("./data-validations-xform"),m=e("./sheet-properties-xform"),x=e("./sheet-format-properties-xform"),k=e("./sheet-view-xform"),R=e("./sheet-protection-xform"),F=e("./page-margins-xform"),L=e("./page-setup-xform"),j=e("./print-options-xform"),D=e("./auto-filter-xform"),z=e("./picture-xform"),$=e("./drawing-xform"),V=e("./table-part-xform"),T=e("./row-breaks-xform"),M=e("./header-footer-xform"),S=e("./cf/conditional-formattings-xform"),v=e("./ext-lst-xform"),w=(_,C)=>{if(!C||!C.length)return _;if(!_||!_.length)return C;const I={},P={};return _.forEach(H=>{I[H.ref]=H,H.rules.forEach(W=>{const{x14Id:K}=W;K&&(P[K]=W)})}),C.forEach(H=>{H.rules.forEach(W=>{const K=P[W.x14Id];K?((B,q)=>{Object.keys(q).forEach(O=>{const N=B[O],U=q[O];N===void 0&&U!==void 0&&(B[O]=U)})})(K,W):I[H.ref]?I[H.ref].rules.push(W):_.push({ref:H.ref,rules:[W]})})}),_};class y extends n{constructor(C){super();const{maxRows:I,maxCols:P,ignoreNodes:H}=C||{};this.ignoreNodes=H||[],this.map={sheetPr:new m,dimension:new f,sheetViews:new c({tag:"sheetViews",count:!1,childXform:new k}),sheetFormatPr:new x,cols:new c({tag:"cols",count:!1,childXform:new a}),sheetData:new c({tag:"sheetData",count:!1,empty:!0,childXform:new s({maxItems:P}),maxItems:I}),autoFilter:new D,mergeCells:new c({tag:"mergeCells",count:!0,childXform:new d}),rowBreaks:new T,hyperlinks:new c({tag:"hyperlinks",count:!1,childXform:new h}),pageMargins:new F,dataValidations:new b,pageSetup:new L,headerFooter:new M,printOptions:new j,picture:new z,drawing:new $,sheetProtection:new R,tableParts:new c({tag:"tableParts",count:!0,childXform:new V}),conditionalFormatting:new S,extLst:new v}}prepare(C,I){I.merges=new t,C.hyperlinks=I.hyperlinks=[],C.comments=I.comments=[],I.formulae={},I.siFormulae=0,this.map.cols.prepare(C.cols,I),this.map.sheetData.prepare(C.rows,I),this.map.conditionalFormatting.prepare(C.conditionalFormattings,I),C.mergeCells=I.merges.mergeCells;const P=C.rels=[];function H(B){return"rId"+(B.length+1)}if(C.hyperlinks.forEach(B=>{const q=H(P);B.rId=q,P.push({Id:q,Type:r.Hyperlink,Target:B.target,TargetMode:"External"})}),C.comments.length>0){const B={Id:H(P),Type:r.Comments,Target:`../comments${C.id}.xml`};P.push(B);const q={Id:H(P),Type:r.VmlDrawing,Target:`../drawings/vmlDrawing${C.id}.vml`};P.push(q),C.comments.forEach(O=>{O.refAddress=i.decodeAddress(O.ref)}),I.commentRefs.push({commentName:"comments"+C.id,vmlDrawing:"vmlDrawing"+C.id})}const W=[];let K;C.media.forEach(B=>{if(B.type==="background"){const q=H(P);K=I.media[B.imageId],P.push({Id:q,Type:r.Image,Target:`../media/${K.name}.${K.extension}`}),C.background={rId:q},C.image=I.media[B.imageId]}else if(B.type==="image"){let{drawing:q}=C;K=I.media[B.imageId],q||(q=C.drawing={rId:H(P),name:"drawing"+ ++I.drawingsCount,anchors:[],rels:[]},I.drawings.push(q),P.push({Id:q.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${q.name}.xml`}));let O=this.preImageId===B.imageId?W[B.imageId]:W[q.rels.length];O||(O=H(q.rels),W[q.rels.length]=O,q.rels.push({Id:O,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${K.name}.${K.extension}`}));const N={picture:{rId:O},range:B.range};if(B.hyperlinks&&B.hyperlinks.hyperlink){const U=H(q.rels);W[q.rels.length]=U,N.picture.hyperlinks={tooltip:B.hyperlinks.tooltip,rId:U},q.rels.push({Id:U,Type:r.Hyperlink,Target:B.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=B.imageId,q.anchors.push(N)}}),C.tables.forEach(B=>{const q=H(P);B.rId=q,P.push({Id:q,Type:r.Table,Target:"../tables/"+B.target}),B.columns.forEach(O=>{const{style:N}=O;N&&(O.dxfId=I.styles.addDxfStyle(N))})}),this.map.extLst.prepare(C,I)}render(C,I){C.openXml(o.StdDocAttributes),C.openNode("worksheet",y.WORKSHEET_ATTRIBUTES);const P=I.properties?{defaultRowHeight:I.properties.defaultRowHeight,dyDescent:I.properties.dyDescent,outlineLevelCol:I.properties.outlineLevelCol,outlineLevelRow:I.properties.outlineLevelRow}:void 0;I.properties&&I.properties.defaultColWidth&&(P.defaultColWidth=I.properties.defaultColWidth);const H={outlineProperties:I.properties&&I.properties.outlineProperties,tabColor:I.properties&&I.properties.tabColor,pageSetup:I.pageSetup&&I.pageSetup.fitToPage?{fitToPage:I.pageSetup.fitToPage}:void 0},W=I.pageSetup&&I.pageSetup.margins,K={showRowColHeaders:I.pageSetup&&I.pageSetup.showRowColHeaders,showGridLines:I.pageSetup&&I.pageSetup.showGridLines,horizontalCentered:I.pageSetup&&I.pageSetup.horizontalCentered,verticalCentered:I.pageSetup&&I.pageSetup.verticalCentered},B=I.sheetProtection;this.map.sheetPr.render(C,H),this.map.dimension.render(C,I.dimensions),this.map.sheetViews.render(C,I.views),this.map.sheetFormatPr.render(C,P),this.map.cols.render(C,I.cols),this.map.sheetData.render(C,I.rows),this.map.sheetProtection.render(C,B),this.map.autoFilter.render(C,I.autoFilter),this.map.mergeCells.render(C,I.mergeCells),this.map.conditionalFormatting.render(C,I.conditionalFormattings),this.map.dataValidations.render(C,I.dataValidations),this.map.hyperlinks.render(C,I.hyperlinks),this.map.printOptions.render(C,K),this.map.pageMargins.render(C,W),this.map.pageSetup.render(C,I.pageSetup),this.map.headerFooter.render(C,I.headerFooter),this.map.rowBreaks.render(C,I.rowBreaks),this.map.drawing.render(C,I.drawing),this.map.picture.render(C,I.background),this.map.tableParts.render(C,I.tables),this.map.extLst.render(C,I),I.rels&&I.rels.forEach(q=>{q.Type===r.VmlDrawing&&C.leafNode("legacyDrawing",{"r:id":q.Id})}),C.closeNode()}parseOpen(C){return this.parser?(this.parser.parseOpen(C),!0):C.name==="worksheet"?(u.each(this.map,I=>{I.reset()}),!0):(this.map[C.name]&&!this.ignoreNodes.includes(C.name)&&(this.parser=this.map[C.name],this.parser.parseOpen(C)),!0)}parseText(C){this.parser&&this.parser.parseText(C)}parseClose(C){if(this.parser)return this.parser.parseClose(C)||(this.parser=void 0),!0;switch(C){case"worksheet":{const I=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(I.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(I.outlineProperties=this.map.sheetPr.model.outlineProperties);const 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),W=w(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:I,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:W},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}default:return!0}}reconcile(C,I){const P=(C.relationships||[]).reduce((W,K)=>{if(W[K.Id]=K,K.Type===r.Comments&&(C.comments=I.comments[K.Target].comments),K.Type===r.VmlDrawing&&C.comments&&C.comments.length){const B=I.vmlDrawings[K.Target].comments;C.comments.forEach((q,O)=>{q.note=Object.assign({},q.note,B[O])})}return W},{});if(I.commentsMap=(C.comments||[]).reduce((W,K)=>(K.ref&&(W[K.ref]=K),W),{}),I.hyperlinkMap=(C.hyperlinks||[]).reduce((W,K)=>(K.rId&&(W[K.address]=P[K.rId].Target),W),{}),I.formulae={},C.rows=C.rows&&C.rows.filter(Boolean)||[],C.rows.forEach(W=>{W.cells=W.cells&&W.cells.filter(Boolean)||[]}),this.map.cols.reconcile(C.cols,I),this.map.sheetData.reconcile(C.rows,I),this.map.conditionalFormatting.reconcile(C.conditionalFormattings,I),C.media=[],C.drawing){const W=P[C.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(W){const K=W[1];I.drawings[K].anchors.forEach(B=>{if(B.medium){const q={type:"image",imageId:B.medium.index,range:B.range,hyperlinks:B.picture.hyperlinks};C.media.push(q)}})}}const H=C.background&&P[C.background.rId];if(H){const W=H.Target.split("/media/")[1],K=I.mediaIndex&&I.mediaIndex[W];K!==void 0&&C.media.push({type:"background",imageId:K})}C.tables=(C.tables||[]).map(W=>{const K=P[W.rId];return I.tables[K.Target]}),delete C.relationships,delete C.hyperlinks,delete C.comments}}y.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"},p.exports=y},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{constructor(i){super(),this.tag=i.tag,this.attr=i.attr}render(i,o){o&&(i.openNode(this.tag),i.closeNode())}parseOpen(i){i.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{constructor(i){super(),this.tag=i.tag,this.attr=i.attr,this.attrs=i.attrs,this._format=i.format||function(o){try{return Number.isNaN(o.getTime())?"":o.toISOString()}catch{return""}},this._parse=i.parse||function(o){return new Date(o)}}render(i,o){o&&(i.openNode(this.tag),this.attrs&&i.addAttributes(this.attrs),this.attr?i.addAttribute(this.attr,this._format(o)):i.writeText(this._format(o)),i.closeNode())}parseOpen(i){i.name===this.tag&&(this.attr?this.model=this._parse(i.attributes[this.attr]):this.text=[])}parseText(i){this.attr||this.text.push(i)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},{"../base-xform":32}],118:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{constructor(i){super(),this.tag=i.tag,this.attr=i.attr,this.attrs=i.attrs,this.zero=i.zero}render(i,o){(o||this.zero)&&(i.openNode(this.tag),this.attrs&&i.addAttributes(this.attrs),this.attr?i.addAttribute(this.attr,o):i.writeText(o),i.closeNode())}parseOpen(i){return i.name===this.tag&&(this.attr?this.model=parseInt(i.attributes[this.attr],10):this.text=[],!0)}parseText(i){this.attr||this.text.push(i)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},{"../base-xform":32}],119:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{constructor(i){super(),this.tag=i.tag,this.attr=i.attr,this.attrs=i.attrs}render(i,o){o!==void 0&&(i.openNode(this.tag),this.attrs&&i.addAttributes(this.attrs),this.attr?i.addAttribute(this.attr,o):i.writeText(o),i.closeNode())}parseOpen(i){i.name===this.tag&&(this.attr?this.model=i.attributes[this.attr]:this.text=[])}parseText(i){this.attr||this.text.push(i)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},{"../base-xform":32}],120:[function(e,p,g){const u=e("./base-xform"),i=e("../../utils/xml-stream");p.exports=class extends u{constructor(o){super(),this._model=o}render(o){if(!this._xml){const r=new i;(function t(n,c){n.openNode(c.tag,c.$),c.c&&c.c.forEach(s=>{t(n,s)}),c.t&&n.writeText(c.t),n.closeNode()})(r,this._model),this._xml=r.xml}o.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(o){switch(o){case this._model.tag:return!1;default:return!0}}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(e,p,g){const u=e("./text-xform"),i=e("./rich-text-xform"),o=e("../base-xform");p.exports=class extends o{constructor(){super(),this.map={r:new i,t:new u}}get tag(){return"rPh"}render(r,t){if(r.openNode(this.tag,{sb:t.sb||0,eb:t.eb||0}),t&&t.hasOwnProperty("richText")&&t.richText){const{r:n}=this.map;t.richText.forEach(c=>{n.render(r,c)})}else t&&this.map.t.render(r,t.text);r.closeNode()}parseOpen(r){const{name:t}=r;return this.parser?(this.parser.parseOpen(r),!0):t===this.tag?(this.model={sb:parseInt(r.attributes.sb,10),eb:parseInt(r.attributes.eb,10)},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(r),!0))}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser){if(!this.parser.parseClose(r)){switch(r){case"r":{let t=this.model.richText;t||(t=this.model.richText=[]),t.push(this.parser.model);break}case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}switch(r){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(e,p,g){const u=e("./text-xform"),i=e("../style/font-xform"),o=e("../base-xform");class r extends o{constructor(n){super(),this.model=n}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new u)}get fontXform(){return this._fontXform||(this._fontXform=new i(r.FONT_OPTIONS))}render(n,c){c=c||this.model,n.openNode("r"),c.font&&this.fontXform.render(n,c.font),this.textXform.render(n,c.text),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(n),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(n),!0;default:return!1}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){switch(n){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(n),!0}}}r.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},p.exports=r},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(e,p,g){const u=e("./text-xform"),i=e("./rich-text-xform"),o=e("./phonetic-text-xform"),r=e("../base-xform");p.exports=class extends r{constructor(t){super(),this.model=t,this.map={r:new i,t:new u,rPh:new o}}get tag(){return"si"}render(t,n){t.openNode(this.tag),n&&n.hasOwnProperty("richText")&&n.richText?n.richText.length?n.richText.forEach(c=>{this.map.r.render(t,c)}):this.map.t.render(t,""):n!=null&&this.map.t.render(t,n),t.closeNode()}parseOpen(t){const{name:n}=t;return this.parser?(this.parser.parseOpen(t),!0):n===this.tag?(this.model={},!0):(this.parser=this.map[n],!!this.parser&&(this.parser.parseOpen(t),!0))}parseText(t){this.parser&&this.parser.parseText(t)}parseClose(t){if(this.parser){if(!this.parser.parseClose(t)){switch(t){case"r":{let n=this.model.richText;n||(n=this.model.richText=[]),n.push(this.parser.model);break}case"t":this.model=this.parser.model}this.parser=void 0}return!0}switch(t){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(e,p,g){const u=e("../../../utils/xml-stream"),i=e("../base-xform"),o=e("./shared-string-xform");p.exports=class extends i{constructor(r){super(),this.model=r||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new o)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(r){return this.model.values[r]}add(r){return r.richText?this.addRichText(r):this.addText(r)}addText(r){let t=this.hash[r];return t===void 0&&(t=this.hash[r]=this.model.values.length,this.model.values.push(r)),this.model.count++,t}addRichText(r){const t=this.sharedStringXform.toXml(r);let n=this.rich[t];return n===void 0&&(n=this.rich[t]=this.model.values.length,this.model.values.push(r)),this.model.count++,n}render(r,t){t=t||this._values,r.openXml(u.StdDocAttributes),r.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:t.count,uniqueCount:t.values.length});const n=this.sharedStringXform;t.values.forEach(c=>{n.render(r,c)}),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(r),!0;default:throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(r))}}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;switch(r){case"sst":return!1;default:throw new Error("Unexpected xml node in parseClose: "+r)}}}},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{get tag(){return"t"}render(i,o){i.openNode("t"),/^\s|\n|\s$/.test(o)&&i.addAttribute("xml:space","preserve"),i.writeText(o),i.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(i,o)=>String.fromCharCode(parseInt(o,16)))}parseOpen(i){switch(i.name){case"t":return this._text=[],!0;default:return!1}}parseText(i){this._text.push(i)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(e,p,g){const u=e("../../../doc/enums"),i=e("../../../utils/utils"),o=e("../base-xform"),r={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((n,c)=>(n[c]=!0,n),{}),horizontal(n){return this.horizontalValues[n]?n:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((n,c)=>(n[c]=!0,n),{}),vertical(n){return n==="middle"?"center":this.verticalValues[n]?n:void 0},wrapText:n=>!!n||void 0,shrinkToFit:n=>!!n||void 0,textRotation(n){switch(n){case"vertical":return n;default:return(n=i.validInt(n))>=-90&&n<=90?n:void 0}},indent:n=>(n=i.validInt(n),Math.max(0,n)),readingOrder(n){switch(n){case"ltr":return u.ReadingOrder.LeftToRight;case"rtl":return u.ReadingOrder.RightToLeft;default:return}}},t={toXml(n){if(n=r.textRotation(n)){if(n==="vertical")return 255;const c=Math.round(n);if(c>=0&&c<=90)return c;if(c<0&&c>=-90)return 90-c}},toModel(n){const c=i.validInt(n);if(c!==void 0){if(c===255)return"vertical";if(c>=0&&c<=90)return c;if(c>90&&c<=180)return 90-c}}};p.exports=class extends o{get tag(){return"alignment"}render(n,c){n.addRollback(),n.openNode("alignment");let s=!1;function a(f,h){h&&(n.addAttribute(f,h),s=!0)}a("horizontal",r.horizontal(c.horizontal)),a("vertical",r.vertical(c.vertical)),a("wrapText",!!r.wrapText(c.wrapText)&&"1"),a("shrinkToFit",!!r.shrinkToFit(c.shrinkToFit)&&"1"),a("indent",r.indent(c.indent)),a("textRotation",t.toXml(c.textRotation)),a("readingOrder",r.readingOrder(c.readingOrder)),n.closeNode(),s?n.commit():n.rollback()}parseOpen(n){const c={};let s=!1;function a(f,h,d){f&&(c[h]=d,s=!0)}a(n.attributes.horizontal,"horizontal",n.attributes.horizontal),a(n.attributes.vertical,"vertical",n.attributes.vertical==="center"?"middle":n.attributes.vertical),a(n.attributes.wrapText,"wrapText",i.parseBoolean(n.attributes.wrapText)),a(n.attributes.shrinkToFit,"shrinkToFit",i.parseBoolean(n.attributes.shrinkToFit)),a(n.attributes.indent,"indent",parseInt(n.attributes.indent,10)),a(n.attributes.textRotation,"textRotation",t.toModel(n.attributes.textRotation)),a(n.attributes.readingOrder,"readingOrder",n.attributes.readingOrder==="2"?"rtl":"ltr"),this.model=s?c:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(e,p,g){const u=e("../base-xform"),i=e("../../../utils/utils"),o=e("./color-xform");class r extends u{constructor(n){super(),this.name=n,this.map={color:new o}}get tag(){return this.name}render(n,c,s){const a=c&&c.color||s||this.defaultColor;n.openNode(this.name),c&&c.style&&(n.addAttribute("style",c.style),a&&this.map.color.render(n,a)),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case this.name:{const{style:c}=n.attributes;return this.model=c?{style:c}:void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(n),!0;default:return!1}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){return this.parser?(this.parser.parseClose(n)||(this.parser=void 0),!0):(n===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(n){return r.validStyleValues[n]}}r.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((t,n)=>(t[n]=!0,t),{}),p.exports=class extends u{constructor(){super(),this.map={top:new r("top"),left:new r("left"),bottom:new r("bottom"),right:new r("right"),diagonal:new r("diagonal")}}render(t,n){const{color:c}=n;function s(a,f){a&&!a.color&&n.color&&(a={...a,color:n.color}),f.render(t,a,c)}t.openNode("border"),n.diagonal&&n.diagonal.style&&(n.diagonal.up&&t.addAttribute("diagonalUp","1"),n.diagonal.down&&t.addAttribute("diagonalDown","1")),s(n.left,this.map.left),s(n.right,this.map.right),s(n.top,this.map.top),s(n.bottom,this.map.bottom),s(n.diagonal,this.map.diagonal),t.closeNode()}parseOpen(t){if(this.parser)return this.parser.parseOpen(t),!0;switch(t.name){case"border":return this.reset(),this.diagonalUp=i.parseBoolean(t.attributes.diagonalUp),this.diagonalDown=i.parseBoolean(t.attributes.diagonalDown),!0;default:return this.parser=this.map[t.name],!!this.parser&&(this.parser.parseOpen(t),!0)}}parseText(t){this.parser&&this.parser.parseText(t)}parseClose(t){if(this.parser)return this.parser.parseClose(t)||(this.parser=void 0),!0;if(t==="border"){const n=this.model={},c=function(s,a,f){a&&(f&&Object.assign(a,f),n[s]=a)};c("left",this.map.left.model),c("right",this.map.right.model),c("top",this.map.top.model),c("bottom",this.map.bottom.model),c("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{constructor(i){super(),this.name=i||"color"}get tag(){return this.name}render(i,o){return!!o&&(i.openNode(this.name),o.argb?i.addAttribute("rgb",o.argb):o.theme!==void 0?(i.addAttribute("theme",o.theme),o.tint!==void 0&&i.addAttribute("tint",o.tint)):o.indexed!==void 0?i.addAttribute("indexed",o.indexed):i.addAttribute("auto","1"),i.closeNode(),!0)}parseOpen(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)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(e,p,g){const u=e("../base-xform"),i=e("./alignment-xform"),o=e("./border-xform"),r=e("./fill-xform"),t=e("./font-xform"),n=e("./numfmt-xform"),c=e("./protection-xform");p.exports=class extends u{constructor(){super(),this.map={alignment:new i,border:new o,fill:new r,font:new t,numFmt:new n,protection:new c}}get tag(){return"dxf"}render(s,a){if(s.openNode(this.tag),a.font&&this.map.font.render(s,a.font),a.numFmt&&a.numFmtId){const f={id:a.numFmtId,formatCode:a.numFmt};this.map.numFmt.render(s,f)}a.fill&&this.map.fill.render(s,a.fill),a.alignment&&this.map.alignment.render(s,a.alignment),a.border&&this.map.border.render(s,a.border),a.protection&&this.map.protection.render(s,a.protection),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case this.tag:return this.reset(),!0;default:return this.parser=this.map[s.name],this.parser&&this.parser.parseOpen(s),!0}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){return this.parser?(this.parser.parseClose(s)||(this.parser=void 0),!0):s!==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)}}},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(e,p,g){const u=e("../base-xform"),i=e("./color-xform");class o extends u{constructor(){super(),this.map={color:new i}}get tag(){return"stop"}render(s,a){s.openNode("stop"),s.addAttribute("position",a.position),this.map.color.render(s,a.color),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"stop":return this.model={position:parseFloat(s.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(s),!0;default:return!1}}parseText(){}parseClose(s){return!!this.parser&&(this.parser.parseClose(s)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class r extends u{constructor(){super(),this.map={fgColor:new i("fgColor"),bgColor:new i("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(s,a){s.openNode("patternFill"),s.addAttribute("patternType",a.pattern),a.fgColor&&this.map.fgColor.render(s,a.fgColor),a.bgColor&&this.map.bgColor.render(s,a.bgColor),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"patternFill":return this.model={type:"pattern",pattern:s.attributes.patternType},!0;default:return this.parser=this.map[s.name],!!this.parser&&(this.parser.parseOpen(s),!0)}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){return!!this.parser&&(this.parser.parseClose(s)||(this.parser.model&&(this.model[s]=this.parser.model),this.parser=void 0),!0)}}class t extends u{constructor(){super(),this.map={stop:new o}}get name(){return"gradient"}get tag(){return"gradientFill"}render(s,a){switch(s.openNode("gradientFill"),a.gradient){case"angle":s.addAttribute("degree",a.degree);break;case"path":s.addAttribute("type","path"),a.center.left&&(s.addAttribute("left",a.center.left),a.center.right===void 0&&s.addAttribute("right",a.center.left)),a.center.right&&s.addAttribute("right",a.center.right),a.center.top&&(s.addAttribute("top",a.center.top),a.center.bottom===void 0&&s.addAttribute("bottom",a.center.top)),a.center.bottom&&s.addAttribute("bottom",a.center.bottom)}const f=this.map.stop;a.stops.forEach(h=>{f.render(s,h)}),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"gradientFill":{const a=this.model={stops:[]};return s.attributes.degree?(a.gradient="angle",a.degree=parseInt(s.attributes.degree,10)):s.attributes.type==="path"&&(a.gradient="path",a.center={left:s.attributes.left?parseFloat(s.attributes.left):0,top:s.attributes.top?parseFloat(s.attributes.top):0},s.attributes.right!==s.attributes.left&&(a.center.right=s.attributes.right?parseFloat(s.attributes.right):0),s.attributes.bottom!==s.attributes.top&&(a.center.bottom=s.attributes.bottom?parseFloat(s.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen(s),!0;default:return!1}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){return!!this.parser&&(this.parser.parseClose(s)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class n extends u{constructor(){super(),this.map={patternFill:new r,gradientFill:new t}}get tag(){return"fill"}render(s,a){switch(s.addRollback(),s.openNode("fill"),a.type){case"pattern":this.map.patternFill.render(s,a);break;case"gradient":this.map.gradientFill.render(s,a);break;default:return void s.rollback()}s.closeNode(),s.commit()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"fill":return this.model={},!0;default:return this.parser=this.map[s.name],!!this.parser&&(this.parser.parseOpen(s),!0)}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){return!!this.parser&&(this.parser.parseClose(s)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(s){return n.validPatternValues[s]}}n.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((c,s)=>(c[s]=!0,c),{}),n.StopXform=o,n.PatternFillXform=r,n.GradientFillXform=t,p.exports=n},{"../base-xform":32,"./color-xform":128}],131:[function(e,p,g){const u=e("./color-xform"),i=e("../simple/boolean-xform"),o=e("../simple/integer-xform"),r=e("../simple/string-xform"),t=e("./underline-xform"),n=e("../../../utils/under-dash"),c=e("../base-xform");class s extends c{constructor(f){super(),this.options=f||s.OPTIONS,this.map={b:{prop:"bold",xform:new i({tag:"b",attr:"val"})},i:{prop:"italic",xform:new i({tag:"i",attr:"val"})},u:{prop:"underline",xform:new t},charset:{prop:"charset",xform:new o({tag:"charset",attr:"val"})},color:{prop:"color",xform:new u},condense:{prop:"condense",xform:new i({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new i({tag:"extend",attr:"val"})},family:{prop:"family",xform:new o({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new i({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new r({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new r({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new i({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new i({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new o({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new r({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(f,h){const{map:d}=this;f.openNode(this.options.tagName),n.each(this.map,(b,m)=>{d[m].xform.render(f,h[b.prop])}),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;if(this.map[f.name])return this.parser=this.map[f.name].xform,this.parser.parseOpen(f);switch(f.name){case this.options.tagName:return this.model={},!0;default:return!1}}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser&&!this.parser.parseClose(f)){const h=this.map[f];return this.parser.model&&(this.model[h.prop]=this.parser.model),this.parser=void 0,!0}switch(f){case this.options.tagName:return!1;default:return!0}}}s.OPTIONS={tagName:"font",fontNameTag:"name"},p.exports=s},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(e,p,g){const u=e("../../../utils/under-dash"),i=e("../../defaultnumformats"),o=e("../base-xform"),r=function(){const n={};return u.each(i,(c,s)=>{c.f&&(n[c.f]=parseInt(s,10))}),n}();class t extends o{constructor(c,s){super(),this.id=c,this.formatCode=s}get tag(){return"numFmt"}render(c,s){c.leafNode("numFmt",{numFmtId:s.id,formatCode:s.formatCode})}parseOpen(c){switch(c.name){case"numFmt":return this.model={id:parseInt(c.attributes.numFmtId,10),formatCode:c.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0;default:return!1}}parseText(){}parseClose(){return!1}}t.getDefaultFmtId=function(n){return r[n]},t.getDefaultFmtCode=function(n){return i[n]&&i[n].f},p.exports=t},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(e,p,g){const u=e("../base-xform"),i={boolean:(o,r)=>o===void 0?r:o};p.exports=class extends u{get tag(){return"protection"}render(o,r){o.addRollback(),o.openNode("protection");let t=!1;function n(c,s){s!==void 0&&(o.addAttribute(c,s),t=!0)}n("locked",i.boolean(r.locked,!0)?void 0:"0"),n("hidden",i.boolean(r.hidden,!1)?"1":void 0),o.closeNode(),t?o.commit():o.rollback()}parseOpen(o){const r={locked:o.attributes.locked!=="0",hidden:o.attributes.hidden==="1"},t=!r.locked||r.hidden;this.model=t?r:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(e,p,g){const u=e("../base-xform"),i=e("./alignment-xform"),o=e("./protection-xform");p.exports=class extends u{constructor(r){super(),this.xfId=!(!r||!r.xfId),this.map={alignment:new i,protection:new o}}get tag(){return"xf"}render(r,t){r.openNode("xf",{numFmtId:t.numFmtId||0,fontId:t.fontId||0,fillId:t.fillId||0,borderId:t.borderId||0}),this.xfId&&r.addAttribute("xfId",t.xfId||0),t.numFmtId&&r.addAttribute("applyNumberFormat","1"),t.fontId&&r.addAttribute("applyFont","1"),t.fillId&&r.addAttribute("applyFill","1"),t.borderId&&r.addAttribute("applyBorder","1"),t.alignment&&r.addAttribute("applyAlignment","1"),t.protection&&r.addAttribute("applyProtection","1"),t.alignment&&this.map.alignment.render(r,t.alignment),t.protection&&this.map.protection.render(r,t.protection),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case"xf":return this.model={numFmtId:parseInt(r.attributes.numFmtId,10),fontId:parseInt(r.attributes.fontId,10),fillId:parseInt(r.attributes.fillId,10),borderId:parseInt(r.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(r.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(r),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(r),!0;default:return!1}}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){return this.parser?(this.parser.parseClose(r)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):r!=="xf"}}},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(e,p,g){const u=e("../../../doc/enums"),i=e("../../../utils/xml-stream"),o=e("../base-xform"),r=e("../static-xform"),t=e("../list-xform"),n=e("./font-xform"),c=e("./fill-xform"),s=e("./border-xform"),a=e("./numfmt-xform"),f=e("./style-xform"),h=e("./dxf-xform");class d extends o{constructor(m){super(),this.map={numFmts:new t({tag:"numFmts",count:!0,childXform:new a}),fonts:new t({tag:"fonts",count:!0,childXform:new n,$:{"x14ac:knownFonts":1}}),fills:new t({tag:"fills",count:!0,childXform:new c}),borders:new t({tag:"borders",count:!0,childXform:new s}),cellStyleXfs:new t({tag:"cellStyleXfs",count:!0,childXform:new f}),cellXfs:new t({tag:"cellXfs",count:!0,childXform:new f({xfId:!0})}),dxfs:new t({tag:"dxfs",always:!0,count:!0,childXform:new h}),numFmt:new a,font:new n,fill:new c,border:new s,style:new f({xfId:!0}),cellStyles:d.STATIC_XFORMS.cellStyles,tableStyles:d.STATIC_XFORMS.tableStyles,extLst:d.STATIC_XFORMS.extLst},m&&this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}render(m,x){x=x||this.model,m.openXml(i.StdDocAttributes),m.openNode("styleSheet",d.STYLESHEET_ATTRIBUTES),this.index?(x.numFmts&&x.numFmts.length&&(m.openNode("numFmts",{count:x.numFmts.length}),x.numFmts.forEach(k=>{m.writeXml(k)}),m.closeNode()),x.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),m.openNode("fonts",{count:x.fonts.length,"x14ac:knownFonts":1}),x.fonts.forEach(k=>{m.writeXml(k)}),m.closeNode(),m.openNode("fills",{count:x.fills.length}),x.fills.forEach(k=>{m.writeXml(k)}),m.closeNode(),m.openNode("borders",{count:x.borders.length}),x.borders.forEach(k=>{m.writeXml(k)}),m.closeNode(),this.map.cellStyleXfs.render(m,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),m.openNode("cellXfs",{count:x.styles.length}),x.styles.forEach(k=>{m.writeXml(k)}),m.closeNode()):(this.map.numFmts.render(m,x.numFmts),this.map.fonts.render(m,x.fonts),this.map.fills.render(m,x.fills),this.map.borders.render(m,x.borders),this.map.cellStyleXfs.render(m,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(m,x.styles)),d.STATIC_XFORMS.cellStyles.render(m),this.map.dxfs.render(m,x.dxfs),d.STATIC_XFORMS.tableStyles.render(m),d.STATIC_XFORMS.extLst.render(m),m.closeNode()}parseOpen(m){if(this.parser)return this.parser.parseOpen(m),!0;switch(m.name){case"styleSheet":return this.initIndex(),!0;default:return this.parser=this.map[m.name],this.parser&&this.parser.parseOpen(m),!0}}parseText(m){this.parser&&this.parser.parseText(m)}parseClose(m){if(this.parser)return this.parser.parseClose(m)||(this.parser=void 0),!0;switch(m){case"styleSheet":{this.model={};const x=(k,R)=>{R.model&&R.model.length&&(this.model[k]=R.model)};if(x("numFmts",this.map.numFmts),x("fonts",this.map.fonts),x("fills",this.map.fills),x("borders",this.map.borders),x("styles",this.map.cellXfs),x("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const k=this.index.numFmt;this.model.numFmts.forEach(R=>{k[R.id]=R.formatCode})}return!1}default:return!0}}addStyleModel(m,x){if(!m)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(m))return this.weakMap.get(m);const k={};if(x=x||u.ValueType.Number,m.numFmt)k.numFmtId=this._addNumFmtStr(m.numFmt);else switch(x){case u.ValueType.Number:k.numFmtId=this._addNumFmtStr("General");break;case u.ValueType.Date:k.numFmtId=this._addNumFmtStr("mm-dd-yy")}m.font&&(k.fontId=this._addFont(m.font)),m.border&&(k.borderId=this._addBorder(m.border)),m.fill&&(k.fillId=this._addFill(m.fill)),m.alignment&&(k.alignment=m.alignment),m.protection&&(k.protection=m.protection);const R=this._addStyle(k);return this.weakMap&&this.weakMap.set(m,R),R}getStyleModel(m){const x=this.model.styles[m];if(!x)return null;let k=this.index.model[m];if(k)return k;if(k=this.index.model[m]={},x.numFmtId){const F=this.index.numFmt[x.numFmtId]||a.getDefaultFmtCode(x.numFmtId);F&&(k.numFmt=F)}function R(F,L,j){if(j||j===0){const D=L[j];D&&(k[F]=D)}}return R("font",this.model.fonts,x.fontId),R("border",this.model.borders,x.borderId),R("fill",this.model.fills,x.fillId),x.alignment&&(k.alignment=x.alignment),x.protection&&(k.protection=x.protection),k}addDxfStyle(m){return m.numFmt&&(m.numFmtId=this._addNumFmtStr(m.numFmt)),this.model.dxfs.push(m),this.model.dxfs.length-1}getDxfStyle(m){return this.model.dxfs[m]}_addStyle(m){const x=this.map.style.toXml(m);let k=this.index.style[x];return k===void 0&&(k=this.index.style[x]=this.model.styles.length,this.model.styles.push(x)),k}_addNumFmtStr(m){let x=a.getDefaultFmtId(m);if(x!==void 0||(x=this.index.numFmt[m],x!==void 0))return x;x=this.index.numFmt[m]=164+this.model.numFmts.length;const k=this.map.numFmt.toXml({id:x,formatCode:m});return this.model.numFmts.push(k),x}_addFont(m){const x=this.map.font.toXml(m);let k=this.index.font[x];return k===void 0&&(k=this.index.font[x]=this.model.fonts.length,this.model.fonts.push(x)),k}_addBorder(m){const x=this.map.border.toXml(m);let k=this.index.border[x];return k===void 0&&(k=this.index.border[x]=this.model.borders.length,this.model.borders.push(x)),k}_addFill(m){const x=this.map.fill.toXml(m);let k=this.index.fill[x];return k===void 0&&(k=this.index.fill[x]=this.model.fills.length,this.model.fills.push(x)),k}}d.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"},d.STATIC_XFORMS={cellStyles:new r({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new r({tag:"dxfs",$:{count:0}}),tableStyles:new r({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new r({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"}}]}]})},d.Mock=class extends d{constructor(){super(),this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream(b){return b.autodrain(),Promise.resolve()}addStyleModel(b,m){switch(m){case u.ValueType.Date:return this.dateStyleId;default:return 0}}get dateStyleId(){if(!this._dateStyleId){const b={numFmtId:a.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(b)}return this._dateStyleId}getStyleModel(){return{}}},p.exports=d},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(e,p,g){const u=e("../base-xform");class i extends u{constructor(r){super(),this.model=r}get tag(){return"u"}render(r,t){if((t=t||this.model)===!0)r.leafNode("u");else{const n=i.Attributes[t];n&&r.leafNode("u",n)}}parseOpen(r){r.name==="u"&&(this.model=r.attributes.val||!0)}parseText(){}parseClose(){return!1}}i.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},p.exports=i},{"../base-xform":32}],137:[function(e,p,g){const u=e("../base-xform"),i=e("./filter-column-xform");p.exports=class extends u{constructor(){super(),this.map={filterColumn:new i}}get tag(){return"autoFilter"}prepare(o){o.columns.forEach((r,t)=>{this.map.filterColumn.prepare(r,{index:t})})}render(o,r){return o.openNode(this.tag,{ref:r.autoFilterRef}),r.columns.forEach(t=>{this.map.filterColumn.render(o,t)}),o.closeNode(),!0}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:return this.model={autoFilterRef:o.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[o.name],this.parser)return this.parseOpen(o),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(o))}}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){if(this.parser)return this.parser.parseClose(o)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;switch(o){case this.tag:return!1;default:throw new Error("Unexpected xml node in parseClose: "+o)}}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{get tag(){return"customFilter"}render(i,o){i.leafNode(this.tag,{val:o.val,operator:o.operator})}parseOpen(i){return i.name===this.tag&&(this.model={val:i.attributes.val,operator:i.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(e,p,g){const u=e("../base-xform"),i=e("../list-xform"),o=e("./custom-filter-xform"),r=e("./filter-xform");p.exports=class extends u{constructor(){super(),this.map={customFilters:new i({tag:"customFilters",count:!1,empty:!0,childXform:new o}),filters:new i({tag:"filters",count:!1,empty:!0,childXform:new r})}}get tag(){return"filterColumn"}prepare(t,n){t.colId=n.index.toString()}render(t,n){return n.customFilters?(t.openNode(this.tag,{colId:n.colId,hiddenButton:n.filterButton?"0":"1"}),this.map.customFilters.render(t,n.customFilters),t.closeNode(),!0):(t.leafNode(this.tag,{colId:n.colId,hiddenButton:n.filterButton?"0":"1"}),!0)}parseOpen(t){if(this.parser)return this.parser.parseOpen(t),!0;const{attributes:n}=t;switch(t.name){case this.tag:return this.model={filterButton:n.hiddenButton==="0"},!0;default:if(this.parser=this.map[t.name],this.parser)return this.parseOpen(t),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(t))}}parseText(){}parseClose(t){if(this.parser)return this.parser.parseClose(t)||(this.parser=void 0),!0;switch(t){case this.tag:return this.model.customFilters=this.map.customFilters.model,!1;default:return!0}}}},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{get tag(){return"filter"}render(i,o){i.leafNode(this.tag,{val:o.val})}parseOpen(i){return i.name===this.tag&&(this.model={val:i.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{get tag(){return"tableColumn"}prepare(i,o){i.id=o.index+1}render(i,o){return i.leafNode(this.tag,{id:o.id.toString(),name:o.name,totalsRowLabel:o.totalsRowLabel,totalsRowFunction:o.totalsRowFunction,dxfId:o.dxfId}),!0}parseOpen(i){if(i.name===this.tag){const{attributes:o}=i;return this.model={name:o.name,totalsRowLabel:o.totalsRowLabel,totalsRowFunction:o.totalsRowFunction,dxfId:o.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(e,p,g){const u=e("../base-xform");p.exports=class extends u{get tag(){return"tableStyleInfo"}render(i,o){return i.leafNode(this.tag,{name:o.theme?o.theme:void 0,showFirstColumn:o.showFirstColumn?"1":"0",showLastColumn:o.showLastColumn?"1":"0",showRowStripes:o.showRowStripes?"1":"0",showColumnStripes:o.showColumnStripes?"1":"0"}),!0}parseOpen(i){if(i.name===this.tag){const{attributes:o}=i;return this.model={theme:o.name?o.name:null,showFirstColumn:o.showFirstColumn==="1",showLastColumn:o.showLastColumn==="1",showRowStripes:o.showRowStripes==="1",showColumnStripes:o.showColumnStripes==="1"},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(e,p,g){const u=e("../../../utils/xml-stream"),i=e("../base-xform"),o=e("../list-xform"),r=e("./auto-filter-xform"),t=e("./table-column-xform"),n=e("./table-style-info-xform");class c extends i{constructor(){super(),this.map={autoFilter:new r,tableColumns:new o({tag:"tableColumns",count:!0,empty:!0,childXform:new t}),tableStyleInfo:new n}}prepare(a,f){this.map.autoFilter.prepare(a),this.map.tableColumns.prepare(a.columns,f)}get tag(){return"table"}render(a,f){a.openXml(u.StdDocAttributes),a.openNode(this.tag,{...c.TABLE_ATTRIBUTES,id:f.id,name:f.name,displayName:f.displayName||f.name,ref:f.tableRef,totalsRowCount:f.totalsRow?"1":void 0,totalsRowShown:f.totalsRow?void 0:"1",headerRowCount:f.headerRow?"1":"0"}),this.map.autoFilter.render(a,f),this.map.tableColumns.render(a,f.columns),this.map.tableStyleInfo.render(a,f.style),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;const{name:f,attributes:h}=a;switch(f){case this.tag:this.reset(),this.model={name:h.name,displayName:h.displayName||h.name,tableRef:h.ref,totalsRow:h.totalsRowCount==="1",headerRow:h.headerRowCount==="1"};break;default:this.parser=this.map[a.name],this.parser&&this.parser.parseOpen(a)}return!0}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.parser=void 0),!0;switch(a){case this.tag:return this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach((f,h)=>{this.model.columns[h].filterButton=f.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1;default:return!0}}reconcile(a,f){a.columns.forEach(h=>{h.dxfId!==void 0&&(h.style=f.styles.getDxfStyle(h.dxfId))})}}c.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"},p.exports=c},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(e,p,g){(function(u,i){(function(){const o=e("fs"),r=e("jszip"),{PassThrough:t}=e("readable-stream"),n=e("../utils/zip-stream"),c=e("../utils/stream-buf"),s=e("../utils/utils"),a=e("../utils/xml-stream"),{bufferToString:f}=e("../utils/browser-buffer-decode"),h=e("./xform/style/styles-xform"),d=e("./xform/core/core-xform"),b=e("./xform/strings/shared-strings-xform"),m=e("./xform/core/relationships-xform"),x=e("./xform/core/content-types-xform"),k=e("./xform/core/app-xform"),R=e("./xform/book/workbook-xform"),F=e("./xform/sheet/worksheet-xform"),L=e("./xform/drawing/drawing-xform"),j=e("./xform/table/table-xform"),D=e("./xform/comment/comments-xform"),z=e("./xform/comment/vml-notes-xform"),$=e("./xml/theme1");class V{constructor(M){this.workbook=M}async readFile(M,S){if(!await s.fs.exists(M))throw new Error("File not found: "+M);const v=o.createReadStream(M);try{const w=await this.read(v,S);return v.close(),w}catch(w){throw v.close(),w}}parseRels(M){return new m().parseStream(M)}parseWorkbook(M){return new R().parseStream(M)}parseSharedStrings(M){return new b().parseStream(M)}reconcile(M,S){const v=new R,w=new F(S),y=new L,_=new j;v.reconcile(M);const C={media:M.media,mediaIndex:M.mediaIndex};Object.keys(M.drawings).forEach(H=>{const W=M.drawings[H],K=M.drawingRels[H];K&&(C.rels=K.reduce((B,q)=>(B[q.Id]=q,B),{}),(W.anchors||[]).forEach(B=>{const q=B.picture&&B.picture.hyperlinks;q&&C.rels[q.rId]&&(q.hyperlink=C.rels[q.rId].Target,delete q.rId)}),y.reconcile(W,C))});const I={styles:M.styles};Object.values(M.tables).forEach(H=>{_.reconcile(H,I)});const P={styles:M.styles,sharedStrings:M.sharedStrings,media:M.media,mediaIndex:M.mediaIndex,date1904:M.properties&&M.properties.date1904,drawings:M.drawings,comments:M.comments,tables:M.tables,vmlDrawings:M.vmlDrawings};M.worksheets.forEach(H=>{H.relationships=M.worksheetRels[H.sheetNo],w.reconcile(H,P)}),delete M.worksheetHash,delete M.worksheetRels,delete M.globalRels,delete M.sharedStrings,delete M.workbookRels,delete M.sheetDefs,delete M.styles,delete M.mediaIndex,delete M.drawings,delete M.drawingRels,delete M.vmlDrawings}async _processWorksheetEntry(M,S,v,w,y){const _=new F(w),C=await _.parseStream(M);C.sheetNo=v,S.worksheetHash[y]=C,S.worksheets.push(C)}async _processCommentEntry(M,S,v){const w=new D,y=await w.parseStream(M);S.comments[`../${v}.xml`]=y}async _processTableEntry(M,S,v){const w=new j,y=await w.parseStream(M);S.tables[`../tables/${v}.xml`]=y}async _processWorksheetRelsEntry(M,S,v){const w=new m,y=await w.parseStream(M);S.worksheetRels[v]=y}async _processMediaEntry(M,S,v){const w=v.lastIndexOf(".");if(w>=1){const y=v.substr(w+1),_=v.substr(0,w);await new Promise((C,I)=>{const P=new c;P.on("finish",()=>{S.mediaIndex[v]=S.media.length,S.mediaIndex[_]=S.media.length;const H={type:"image",name:_,extension:y,buffer:P.toBuffer()};S.media.push(H),C()}),M.on("error",H=>{I(H)}),M.pipe(P)})}}async _processDrawingEntry(M,S,v){const w=new L,y=await w.parseStream(M);S.drawings[v]=y}async _processDrawingRelsEntry(M,S,v){const w=new m,y=await w.parseStream(M);S.drawingRels[v]=y}async _processVmlDrawingEntry(M,S,v){const w=new z,y=await w.parseStream(M);S.vmlDrawings[`../drawings/${v}.vml`]=y}async _processThemeEntry(M,S,v){await new Promise((w,y)=>{const _=new c;M.on("error",y),_.on("error",y),_.on("finish",()=>{S.themes[v]=_.read().toString(),w()}),M.pipe(_)})}createInputStream(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}async read(M,S){!M[Symbol.asyncIterator]&&M.pipe&&(M=M.pipe(new t));const v=[];for await(const w of M)v.push(w);return this.load(i.concat(v),S)}async load(M,S){let v;v=S&&S.base64?i.from(M.toString(),"base64"):M;const w={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},y=await r.loadAsync(v);for(const _ of Object.values(y.files))if(!_.dir){let C,I=_.name;if(I[0]==="/"&&(I=I.substr(1)),I.match(/xl\/media\//)||I.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))C=new t,C.write(await _.async("nodebuffer"));else{let P;C=new t({writableObjectMode:!0,readableObjectMode:!0}),P=u.browser?f(await _.async("nodebuffer")):await _.async("string");const H=16384;for(let W=0;W<P.length;W+=H)C.write(P.substring(W,W+H))}switch(C.end(),I){case"_rels/.rels":w.globalRels=await this.parseRels(C);break;case"xl/workbook.xml":{const P=await this.parseWorkbook(C);w.sheets=P.sheets,w.definedNames=P.definedNames,w.views=P.views,w.properties=P.properties,w.calcProperties=P.calcProperties;break}case"xl/_rels/workbook.xml.rels":w.workbookRels=await this.parseRels(C);break;case"xl/sharedStrings.xml":w.sharedStrings=new b,await w.sharedStrings.parseStream(C);break;case"xl/styles.xml":w.styles=new h,await w.styles.parseStream(C);break;case"docProps/app.xml":{const P=new k,H=await P.parseStream(C);w.company=H.company,w.manager=H.manager;break}case"docProps/core.xml":{const P=new d,H=await P.parseStream(C);Object.assign(w,H);break}default:{let P=I.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(P){await this._processWorksheetEntry(C,w,P[1],S,I);break}if(P=I.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),P){await this._processWorksheetRelsEntry(C,w,P[1]);break}if(P=I.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/),P){await this._processThemeEntry(C,w,P[1]);break}if(P=I.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/),P){await this._processMediaEntry(C,w,P[1]);break}if(P=I.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/),P){await this._processDrawingEntry(C,w,P[1]);break}if(P=I.match(/xl\/(comments\d+)[.]xml/),P){await this._processCommentEntry(C,w,P[1]);break}if(P=I.match(/xl\/tables\/(table\d+)[.]xml/),P){await this._processTableEntry(C,w,P[1]);break}if(P=I.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/),P){await this._processDrawingRelsEntry(C,w,P[1]);break}if(P=I.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/),P){await this._processVmlDrawingEntry(C,w,P[1]);break}}}}return this.reconcile(w,S),this.workbook.model=w,this.workbook}async addMedia(M,S){await Promise.all(S.media.map(async v=>{if(v.type==="image"){const w=`xl/media/${v.name}.${v.extension}`;if(v.filename){const y=await function(_,C){return new Promise((I,P)=>{o.readFile(_,C,(H,W)=>{H?P(H):I(W)})})}(v.filename);return M.append(y,{name:w})}if(v.buffer)return M.append(v.buffer,{name:w});if(v.base64){const y=v.base64,_=y.substring(y.indexOf(",")+1);return M.append(_,{name:w,base64:!0})}}throw new Error("Unsupported media")}))}addDrawings(M,S){const v=new L,w=new m;S.worksheets.forEach(y=>{const{drawing:_}=y;if(_){v.prepare(_,{});let C=v.toXml(_);M.append(C,{name:`xl/drawings/${_.name}.xml`}),C=w.toXml(_.rels),M.append(C,{name:`xl/drawings/_rels/${_.name}.xml.rels`})}})}addTables(M,S){const v=new j;S.worksheets.forEach(w=>{const{tables:y}=w;y.forEach(_=>{v.prepare(_,{});const C=v.toXml(_);M.append(C,{name:"xl/tables/"+_.target})})})}async addContentTypes(M,S){const v=new x().toXml(S);M.append(v,{name:"[Content_Types].xml"})}async addApp(M,S){const v=new k().toXml(S);M.append(v,{name:"docProps/app.xml"})}async addCore(M,S){const v=new d;M.append(v.toXml(S),{name:"docProps/core.xml"})}async addThemes(M,S){const v=S.themes||{theme1:$};Object.keys(v).forEach(w=>{const y=v[w],_=`xl/theme/${w}.xml`;M.append(y,{name:_})})}async addOfficeRels(M){const S=new m().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"}]);M.append(S,{name:"_rels/.rels"})}async addWorkbookRels(M,S){let v=1;const w=[{Id:"rId"+v++,Type:V.RelType.Styles,Target:"styles.xml"},{Id:"rId"+v++,Type:V.RelType.Theme,Target:"theme/theme1.xml"}];S.sharedStrings.count&&w.push({Id:"rId"+v++,Type:V.RelType.SharedStrings,Target:"sharedStrings.xml"}),S.worksheets.forEach(_=>{_.rId="rId"+v++,w.push({Id:_.rId,Type:V.RelType.Worksheet,Target:`worksheets/sheet${_.id}.xml`})});const y=new m().toXml(w);M.append(y,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(M,S){S.sharedStrings&&S.sharedStrings.count&&M.append(S.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(M,S){const{xml:v}=S.styles;v&&M.append(v,{name:"xl/styles.xml"})}async addWorkbook(M,S){const v=new R;M.append(v.toXml(S),{name:"xl/workbook.xml"})}async addWorksheets(M,S){const v=new F,w=new m,y=new D,_=new z;S.worksheets.forEach(C=>{let I=new a;v.render(I,C),M.append(I.xml,{name:`xl/worksheets/sheet${C.id}.xml`}),C.rels&&C.rels.length&&(I=new a,w.render(I,C.rels),M.append(I.xml,{name:`xl/worksheets/_rels/sheet${C.id}.xml.rels`})),C.comments.length>0&&(I=new a,y.render(I,C),M.append(I.xml,{name:`xl/comments${C.id}.xml`}),I=new a,_.render(I,C),M.append(I.xml,{name:`xl/drawings/vmlDrawing${C.id}.vml`}))})}_finalize(M){return new Promise((S,v)=>{M.on("finish",()=>{S(this)}),M.on("error",v),M.finalize()})}prepareModel(M,S){M.creator=M.creator||"ExcelJS",M.lastModifiedBy=M.lastModifiedBy||"ExcelJS",M.created=M.created||new Date,M.modified=M.modified||new Date,M.useSharedStrings=S.useSharedStrings===void 0||S.useSharedStrings,M.useStyles=S.useStyles===void 0||S.useStyles,M.sharedStrings=new b,M.styles=M.useStyles?new h(!0):new h.Mock;const v=new R,w=new F;v.prepare(M);const y={sharedStrings:M.sharedStrings,styles:M.styles,date1904:M.properties.date1904,drawingsCount:0,media:M.media};y.drawings=M.drawings=[],y.commentRefs=M.commentRefs=[];let _=0;M.tables=[],M.worksheets.forEach(C=>{C.tables.forEach(I=>{_++,I.target=`table${_}.xml`,I.id=_,M.tables.push(I)}),w.prepare(C,y)})}async write(M,S){S=S||{};const{model:v}=this.workbook,w=new n.ZipWriter(S.zip);return w.pipe(M),this.prepareModel(v,S),await this.addContentTypes(w,v),await this.addOfficeRels(w,v),await this.addWorkbookRels(w,v),await this.addWorksheets(w,v),await this.addSharedStrings(w,v),await this.addDrawings(w,v),await this.addTables(w,v),await Promise.all([this.addThemes(w,v),this.addStyles(w,v)]),await this.addMedia(w,v),await Promise.all([this.addApp(w,v),this.addCore(w,v)]),await this.addWorkbook(w,v),this._finalize(w)}writeFile(M,S){const v=o.createWriteStream(M);return new Promise((w,y)=>{v.on("finish",()=>{w()}),v.on("error",_=>{y(_)}),this.write(v,S).then(()=>{v.end()}).catch(_=>{y(_)})})}async writeBuffer(M){const S=new c;return await this.write(S,M),S.read()}}V.RelType=e("./rel-type"),p.exports=V}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/worksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(e,p,g){p.exports=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
3
- <a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="15000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="1"/> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="100000"/> <a:shade val="100000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:shade val="100000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="0"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"> <a:shade val="95000"/> <a:satMod val="105000"/> </a:schemeClr> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="38000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> <a:scene3d> <a:camera prst="orthographicFront"> <a:rot lat="0" lon="0" rev="0"/> </a:camera> <a:lightRig rig="threePt" dir="t"> <a:rot lat="0" lon="0" rev="1200000"/> </a:lightRig> </a:scene3d> <a:sp3d> <a:bevelT w="63500" h="25400"/> </a:sp3d> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="40000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="40000"> <a:schemeClr val="phClr"> <a:tint val="45000"/> <a:shade val="99000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="20000"/> <a:satMod val="255000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="-80000" r="50000" b="180000"/> </a:path> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="80000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="30000"/> <a:satMod val="200000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="50000" r="50000" b="50000"/> </a:path> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults> <a:spDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="1"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="3"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="2"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="lt1"/> </a:fontRef> </a:style> </a:spDef> <a:lnDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="2"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="0"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="1"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="tx1"/> </a:fontRef> </a:style> </a:lnDef> </a:objectDefaults> <a:extraClrSchemeLst/> </a:theme>`},{}],146:[function(e,p,g){(function(u){(function(){Object.defineProperty(g,"__esModule",{value:!0}),g.CsvFormatterStream=void 0;const i=e("stream"),o=e("./formatter");class r extends i.Transform{constructor(n){super({writableObjectMode:n.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=n,this.rowFormatter=new o.RowFormatter(n),this.hasWrittenBOM=!n.writeBOM}transform(n){return this.rowFormatter.rowTransform=n,this}_transform(n,c,s){let a=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(n,(f,h)=>f?(a=!0,s(f)):(h&&h.forEach(d=>{this.push(u.from(d,"utf8"))}),a=!0,s()))}catch(f){if(a)throw f;s(f)}}_flush(n){this.rowFormatter.finish((c,s)=>c?n(c):(s&&s.forEach(a=>{this.push(u.from(a,"utf8"))}),n()))}}g.CsvFormatterStream=r}).call(this)}).call(this,e("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(e,p,g){Object.defineProperty(g,"__esModule",{value:!0}),g.FormatterOptions=void 0,g.FormatterOptions=class{constructor(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var i;this.objectMode=!0,this.delimiter=",",this.rowDelimiter=`
4
- `,this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\uFEFF",this.alwaysWriteHeaders=!1,Object.assign(this,u||{}),(u==null?void 0:u.quoteHeaders)===void 0&&(this.quoteHeaders=this.quoteColumns),(u==null?void 0:u.quote)===!0?this.quote='"':(u==null?void 0:u.quote)===!1&&(this.quote=""),typeof(u==null?void 0:u.escape)!="string"&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((i=u.writeHeaders)===null||i===void 0||i),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(e,p,g){var u=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(g,"__esModule",{value:!0}),g.FieldFormatter=void 0;const i=u(e("lodash.isboolean")),o=u(e("lodash.isnil")),r=u(e("lodash.escaperegexp"));g.FieldFormatter=class{constructor(t){this._headers=null,this.formatterOptions=t,t.headers!==null&&(this.headers=t.headers),this.REPLACE_REGEXP=new RegExp(t.quote,"g");const n=`[${t.delimiter}${r.default(t.rowDelimiter)}|\r|
5
- ]`;this.ESCAPE_REGEXP=new RegExp(n)}set headers(t){this._headers=t}shouldQuote(t,n){const c=n?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return i.default(c)?c:Array.isArray(c)?c[t]:this._headers!==null&&c[this._headers[t]]}format(t,n,c){const s=(""+(o.default(t)?"":t)).replace(/\0/g,""),{formatterOptions:a}=this;return a.quote!==""&&s.indexOf(a.quote)!==-1?this.quoteField(s.replace(this.REPLACE_REGEXP,a.escapedQuote)):s.search(this.ESCAPE_REGEXP)!==-1||this.shouldQuote(n,c)?this.quoteField(s):s}quoteField(t){const{quote:n}=this.formatterOptions;return`${n}${t}${n}`}}},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(e,p,g){var u=function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(g,"__esModule",{value:!0}),g.RowFormatter=void 0;const i=u(e("lodash.isfunction")),o=u(e("lodash.isequal")),r=e("./FieldFormatter"),t=e("../types");class n{constructor(s){this.rowCount=0,this.formatterOptions=s,this.fieldFormatter=new r.FieldFormatter(s),this.headers=s.headers,this.shouldWriteHeaders=s.shouldWriteHeaders,this.hasWrittenHeaders=!1,this.headers!==null&&(this.fieldFormatter.headers=this.headers),s.transform&&(this.rowTransform=s.transform)}static isRowHashArray(s){return!!Array.isArray(s)&&Array.isArray(s[0])&&s[0].length===2}static isRowArray(s){return Array.isArray(s)&&!this.isRowHashArray(s)}static gatherHeaders(s){return n.isRowHashArray(s)?s.map(a=>a[0]):Array.isArray(s)?s:Object.keys(s)}static createTransform(s){return t.isSyncTransform(s)?(a,f)=>{let h=null;try{h=s(a)}catch(d){return f(d)}return f(null,h)}:(a,f)=>{s(a,f)}}set rowTransform(s){if(!i.default(s))throw new TypeError("The transform should be a function");this._rowTransform=n.createTransform(s)}format(s,a){this.callTransformer(s,(f,h)=>{if(f)return a(f);if(!s)return a(null);const d=[];if(h){const{shouldFormatColumns:b,headers:m}=this.checkHeaders(h);if(this.shouldWriteHeaders&&m&&!this.hasWrittenHeaders&&(d.push(this.formatColumns(m,!0)),this.hasWrittenHeaders=!0),b){const x=this.gatherColumns(h);d.push(this.formatColumns(x,!1))}}return a(null,d)})}finish(s){const a=[];if(this.formatterOptions.alwaysWriteHeaders&&this.rowCount===0){if(!this.headers)return s(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));a.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&a.push(this.formatterOptions.rowDelimiter),s(null,a)}checkHeaders(s){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};const a=n.gatherHeaders(s);return this.headers=a,this.fieldFormatter.headers=a,this.shouldWriteHeaders?{shouldFormatColumns:!o.default(a,s),headers:a}:{shouldFormatColumns:!0,headers:null}}gatherColumns(s){if(this.headers===null)throw new Error("Headers is currently null");return Array.isArray(s)?n.isRowHashArray(s)?this.headers.map((a,f)=>{const h=s[f];return h?h[1]:""}):n.isRowArray(s)&&!this.shouldWriteHeaders?s:this.headers.map((a,f)=>s[f]):this.headers.map(a=>s[a])}callTransformer(s,a){return this._rowTransform?this._rowTransform(s,a):a(null,s)}formatColumns(s,a){const f=s.map((d,b)=>this.fieldFormatter.format(d,b,a)).join(this.formatterOptions.delimiter),{rowCount:h}=this;return this.rowCount+=1,h?[this.formatterOptions.rowDelimiter,f].join(""):f}}g.RowFormatter=n},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(e,p,g){Object.defineProperty(g,"__esModule",{value:!0}),g.FieldFormatter=g.RowFormatter=void 0;var u=e("./RowFormatter");Object.defineProperty(g,"RowFormatter",{enumerable:!0,get:function(){return u.RowFormatter}});var i=e("./FieldFormatter");Object.defineProperty(g,"FieldFormatter",{enumerable:!0,get:function(){return i.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(e,p,g){(function(u){(function(){var i=Object.create?function(b,m,x,k){k===void 0&&(k=x),Object.defineProperty(b,k,{enumerable:!0,get:function(){return m[x]}})}:function(b,m,x,k){k===void 0&&(k=x),b[k]=m[x]},o=Object.create?function(b,m){Object.defineProperty(b,"default",{enumerable:!0,value:m})}:function(b,m){b.default=m},r=function(b){if(b&&b.__esModule)return b;var m={};if(b!=null)for(var x in b)x!=="default"&&Object.prototype.hasOwnProperty.call(b,x)&&i(m,b,x);return o(m,b),m},t=function(b,m){for(var x in b)x==="default"||Object.prototype.hasOwnProperty.call(m,x)||i(m,b,x)};Object.defineProperty(g,"__esModule",{value:!0}),g.writeToPath=g.writeToString=g.writeToBuffer=g.writeToStream=g.write=g.format=g.FormatterOptions=g.CsvFormatterStream=void 0;const n=e("util"),c=e("stream"),s=r(e("fs")),a=e("./FormatterOptions"),f=e("./CsvFormatterStream");t(e("./types"),g);var h=e("./CsvFormatterStream");Object.defineProperty(g,"CsvFormatterStream",{enumerable:!0,get:function(){return h.CsvFormatterStream}});var d=e("./FormatterOptions");Object.defineProperty(g,"FormatterOptions",{enumerable:!0,get:function(){return d.FormatterOptions}}),g.format=b=>new f.CsvFormatterStream(new a.FormatterOptions(b)),g.write=(b,m)=>{const x=g.format(m),k=n.promisify((R,F)=>{x.write(R,void 0,F)});return b.reduce((R,F)=>R.then(()=>k(F)),Promise.resolve()).then(()=>x.end()).catch(R=>{x.emit("error",R)}),x},g.writeToStream=(b,m,x)=>g.write(m,x).pipe(b),g.writeToBuffer=function(b){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const x=[],k=new c.Writable({write(R,F,L){x.push(R),L()}});return new Promise((R,F)=>{k.on("error",F).on("finish",()=>R(u.concat(x))),g.write(b,m).pipe(k)})},g.writeToString=(b,m)=>g.writeToBuffer(b,m).then(x=>x.toString()),g.writeToPath=(b,m,x)=>{const k=s.createWriteStream(b,{encoding:"utf8"});return g.write(m,x).pipe(k)}}).call(this)}).call(this,e("buffer").Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(e,p,g){Object.defineProperty(g,"__esModule",{value:!0}),g.isSyncTransform=void 0,g.isSyncTransform=u=>u.length===1},{}],153:[function(e,p,g){(function(u){(function(){Object.defineProperty(g,"__esModule",{value:!0}),g.CsvParserStream=void 0;const i=e("string_decoder"),o=e("stream"),r=e("./transforms"),t=e("./parser");class n extends o.Transform{constructor(s){super({objectMode:s.objectMode}),this.lines="",this.rowCount=0,this.parsedRowCount=0,this.parsedLineCount=0,this.endEmitted=!1,this.headersEmitted=!1,this.parserOptions=s,this.parser=new t.Parser(s),this.headerTransformer=new r.HeaderTransformer(s),this.decoder=new i.StringDecoder(s.encoding),this.rowTransformerValidator=new r.RowTransformerValidator}get hasHitRowLimit(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}get shouldEmitRows(){return this.parsedRowCount>this.parserOptions.skipRows}get shouldSkipLine(){return this.parsedLineCount<=this.parserOptions.skipLines}transform(s){return this.rowTransformerValidator.rowTransform=s,this}validate(s){return this.rowTransformerValidator.rowValidator=s,this}emit(s){if(s==="end")return this.endEmitted||(this.endEmitted=!0,super.emit("end",this.rowCount)),!1;for(var a=arguments.length,f=new Array(a>1?a-1:0),h=1;h<a;h++)f[h-1]=arguments[h];return super.emit(s,...f)}_transform(s,a,f){if(this.hasHitRowLimit)return f();const h=n.wrapDoneCallback(f);try{const{lines:d}=this,b=d+this.decoder.write(s),m=this.parse(b,!0);return this.processRows(m,h)}catch(d){return h(d)}}_flush(s){const a=n.wrapDoneCallback(s);if(this.hasHitRowLimit)return a();try{const f=this.lines+this.decoder.end(),h=this.parse(f,!1);return this.processRows(h,a)}catch(f){return a(f)}}parse(s,a){if(!s)return[];const{line:f,rows:h}=this.parser.parse(s,a);return this.lines=f,h}processRows(s,a){const f=s.length,h=d=>{const b=k=>k?a(k):d%100!=0?h(d+1):void u(()=>h(d+1));if(this.checkAndEmitHeaders(),d>=f||this.hasHitRowLimit)return a();if(this.parsedLineCount+=1,this.shouldSkipLine)return b();const m=s[d];this.rowCount+=1,this.parsedRowCount+=1;const x=this.rowCount;return this.transformRow(m,(k,R)=>{if(k)return this.rowCount-=1,b(k);if(!R)return b(new Error("expected transform result"));if(R.isValid){if(R.row)return this.pushRow(R.row,b)}else this.emit("data-invalid",R.row,x,R.reason);return b()})};h(0)}transformRow(s,a){try{this.headerTransformer.transform(s,(f,h)=>f?a(f):h?h.isValid?h.row?this.shouldEmitRows?this.rowTransformerValidator.transformAndValidate(h.row,a):this.skipRow(a):(this.rowCount-=1,this.parsedRowCount-=1,a(null,{row:null,isValid:!0})):this.shouldEmitRows?a(null,{isValid:!1,row:s}):this.skipRow(a):a(new Error("Expected result from header transform")))}catch(f){a(f)}}checkAndEmitHeaders(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}skipRow(s){return this.rowCount-=1,s(null,{row:null,isValid:!0})}pushRow(s,a){try{this.parserOptions.objectMode?this.push(s):this.push(JSON.stringify(s)),a()}catch(f){a(f)}}static wrapDoneCallback(s){let a=!1;return function(f){if(f){if(a)throw f;return a=!0,void s(f)}for(var h=arguments.length,d=new Array(h>1?h-1:0),b=1;b<h;b++)d[b-1]=arguments[b];s(...d)}}}g.CsvParserStream=n}).call(this)}).call(this,e("timers").setImmediate)},{"./parser":165,"./transforms":168,stream:505,string_decoder:218,timers:523}],154:[function(e,p,g){var u=function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(g,"__esModule",{value:!0}),g.ParserOptions=void 0;const i=u(e("lodash.escaperegexp")),o=u(e("lodash.isnil"));g.ParserOptions=class{constructor(r){var t;if(this.objectMode=!0,this.delimiter=",",this.ignoreEmpty=!1,this.quote='"',this.escape=null,this.escapeChar=this.quote,this.comment=null,this.supportsComments=!1,this.ltrim=!1,this.rtrim=!1,this.trim=!1,this.headers=null,this.renameHeaders=!1,this.strictColumnHandling=!1,this.discardUnmappedColumns=!1,this.carriageReturn="\r",this.encoding="utf8",this.limitRows=!1,this.maxRows=0,this.skipLines=0,this.skipRows=0,Object.assign(this,r||{}),this.delimiter.length>1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=i.default(this.delimiter),this.escapeChar=(t=this.escape)!==null&&t!==void 0?t:this.quote,this.supportsComments=!o.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp(`([^\\s]|\\r\\n|\\n|\\r|${this.escapedDelimiter})`),this.maxRows>0&&(this.limitRows=!0)}}},{"lodash.escaperegexp":442,"lodash.isnil":447}],155:[function(e,p,g){var u=Object.create?function(h,d,b,m){m===void 0&&(m=b),Object.defineProperty(h,m,{enumerable:!0,get:function(){return d[b]}})}:function(h,d,b,m){m===void 0&&(m=b),h[m]=d[b]},i=Object.create?function(h,d){Object.defineProperty(h,"default",{enumerable:!0,value:d})}:function(h,d){h.default=d},o=function(h){if(h&&h.__esModule)return h;var d={};if(h!=null)for(var b in h)b!=="default"&&Object.prototype.hasOwnProperty.call(h,b)&&u(d,h,b);return i(d,h),d},r=function(h,d){for(var b in h)b==="default"||Object.prototype.hasOwnProperty.call(d,b)||u(d,h,b)};Object.defineProperty(g,"__esModule",{value:!0}),g.parseString=g.parseFile=g.parseStream=g.parse=g.ParserOptions=g.CsvParserStream=void 0;const t=o(e("fs")),n=e("stream"),c=e("./ParserOptions"),s=e("./CsvParserStream");r(e("./types"),g);var a=e("./CsvParserStream");Object.defineProperty(g,"CsvParserStream",{enumerable:!0,get:function(){return a.CsvParserStream}});var f=e("./ParserOptions");Object.defineProperty(g,"ParserOptions",{enumerable:!0,get:function(){return f.ParserOptions}}),g.parse=h=>new s.CsvParserStream(new c.ParserOptions(h)),g.parseStream=(h,d)=>h.pipe(new s.CsvParserStream(new c.ParserOptions(d))),g.parseFile=function(h){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.createReadStream(h).pipe(new s.CsvParserStream(new c.ParserOptions(d)))},g.parseString=(h,d)=>{const b=new n.Readable;return b.push(h),b.push(null),b.pipe(new s.CsvParserStream(new c.ParserOptions(d)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(e,p,g){Object.defineProperty(g,"__esModule",{value:!0}),g.Parser=void 0;const u=e("./Scanner"),i=e("./RowParser"),o=e("./Token");class r{constructor(n){this.parserOptions=n,this.rowParser=new i.RowParser(this.parserOptions)}static removeBOM(n){return n&&n.charCodeAt(0)===65279?n.slice(1):n}parse(n,c){const s=new u.Scanner({line:r.removeBOM(n),parserOptions:this.parserOptions,hasMoreData:c});return this.parserOptions.supportsComments?this.parseWithComments(s):this.parseWithoutComments(s)}parseWithoutComments(n){const c=[];let s=!0;for(;s;)s=this.parseRow(n,c);return{line:n.line,rows:c}}parseWithComments(n){const{parserOptions:c}=this,s=[];for(let a=n.nextCharacterToken;a!==null;a=n.nextCharacterToken)if(o.Token.isTokenComment(a,c)){if(n.advancePastLine()===null)return{line:n.lineFromCursor,rows:s};if(!n.hasMoreCharacters)return{line:n.lineFromCursor,rows:s};n.truncateToCursor()}else if(!this.parseRow(n,s))break;return{line:n.line,rows:s}}parseRow(n,c){if(!n.nextNonSpaceToken)return!1;const s=this.rowParser.parse(n);return s!==null&&(this.parserOptions.ignoreEmpty&&i.RowParser.isEmptyRow(s)||c.push(s),!0)}}g.Parser=r},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(e,p,g){Object.defineProperty(g,"__esModule",{value:!0}),g.RowParser=void 0;const u=e("./column"),i=e("./Token");g.RowParser=class{constructor(o){this.parserOptions=o,this.columnParser=new u.ColumnParser(o)}static isEmptyRow(o){return o.join("").replace(/\s+/g,"")===""}parse(o){const{parserOptions:r}=this,{hasMoreData:t}=o,n=o,c=[];let s=this.getStartToken(n,c);for(;s;){if(i.Token.isTokenRowDelimiter(s))return n.advancePastToken(s),!n.hasMoreCharacters&&i.Token.isTokenCarriageReturn(s,r)&&t?null:(n.truncateToCursor(),c);if(!this.shouldSkipColumnParse(n,s,c)){const a=this.columnParser.parse(n);if(a===null)return null;c.push(a)}s=n.nextNonSpaceToken}return t?null:(n.truncateToCursor(),c)}getStartToken(o,r){const t=o.nextNonSpaceToken;return t!==null&&i.Token.isTokenDelimiter(t,this.parserOptions)?(r.push(""),o.nextNonSpaceToken):t}shouldSkipColumnParse(o,r,t){const{parserOptions:n}=this;if(i.Token.isTokenDelimiter(r,n)){o.advancePastToken(r);const c=o.nextCharacterToken;if(!o.hasMoreCharacters||c!==null&&i.Token.isTokenRowDelimiter(c)||c!==null&&i.Token.isTokenDelimiter(c,n))return t.push(""),!0}return!1}}},{"./Token":159,"./column":164}],158:[function(e,p,g){Object.defineProperty(g,"__esModule",{value:!0}),g.Scanner=void 0;const u=e("./Token"),i=/((?:\r\n)|\n|\r)/;g.Scanner=class{constructor(o){this.cursor=0,this.line=o.line,this.lineLength=this.line.length,this.parserOptions=o.parserOptions,this.hasMoreData=o.hasMoreData,this.cursor=o.cursor||0}get hasMoreCharacters(){return this.lineLength>this.cursor}get nextNonSpaceToken(){const{lineFromCursor:o}=this,r=this.parserOptions.NEXT_TOKEN_REGEXP;if(o.search(r)===-1)return null;const t=r.exec(o);if(t==null)return null;const n=t[1],c=this.cursor+(t.index||0);return new u.Token({token:n,startCursor:c,endCursor:c+n.length-1})}get nextCharacterToken(){const{cursor:o,lineLength:r}=this;return r<=o?null:new u.Token({token:this.line[o],startCursor:o,endCursor:o})}get lineFromCursor(){return this.line.substr(this.cursor)}advancePastLine(){const o=i.exec(this.lineFromCursor);return o?(this.cursor+=(o.index||0)+o[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}advanceTo(o){return this.cursor=o,this}advanceToToken(o){return this.cursor=o.startCursor,this}advancePastToken(o){return this.cursor=o.endCursor+1,this}truncateToCursor(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}},{"./Token":159}],159:[function(e,p,g){Object.defineProperty(g,"__esModule",{value:!0}),g.Token=void 0,g.Token=class{constructor(u){this.token=u.token,this.startCursor=u.startCursor,this.endCursor=u.endCursor}static isTokenRowDelimiter(u){const i=u.token;return i==="\r"||i===`
6
- `||i===`\r
7
- `}static isTokenCarriageReturn(u,i){return u.token===i.carriageReturn}static isTokenComment(u,i){return i.supportsComments&&!!u&&u.token===i.comment}static isTokenEscapeCharacter(u,i){return u.token===i.escapeChar}static isTokenQuote(u,i){return u.token===i.quote}static isTokenDelimiter(u,i){return u.token===i.delimiter}}},{}],160:[function(e,p,g){Object.defineProperty(g,"__esModule",{value:!0}),g.ColumnFormatter=void 0,g.ColumnFormatter=class{constructor(u){u.trim?this.format=i=>i.trim():u.ltrim?this.format=i=>i.trimLeft():u.rtrim?this.format=i=>i.trimRight():this.format=i=>i}}},{}],161:[function(e,p,g){Object.defineProperty(g,"__esModule",{value:!0}),g.ColumnParser=void 0;const u=e("./NonQuotedColumnParser"),i=e("./QuotedColumnParser"),o=e("../Token");g.ColumnParser=class{constructor(r){this.parserOptions=r,this.quotedColumnParser=new i.QuotedColumnParser(r),this.nonQuotedColumnParser=new u.NonQuotedColumnParser(r)}parse(r){const{nextNonSpaceToken:t}=r;return t!==null&&o.Token.isTokenQuote(t,this.parserOptions)?(r.advanceToToken(t),this.quotedColumnParser.parse(r)):this.nonQuotedColumnParser.parse(r)}}},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(e,p,g){Object.defineProperty(g,"__esModule",{value:!0}),g.NonQuotedColumnParser=void 0;const u=e("./ColumnFormatter"),i=e("../Token");g.NonQuotedColumnParser=class{constructor(o){this.parserOptions=o,this.columnFormatter=new u.ColumnFormatter(o)}parse(o){if(!o.hasMoreCharacters)return null;const{parserOptions:r}=this,t=[];let n=o.nextCharacterToken;for(;n&&!i.Token.isTokenDelimiter(n,r)&&!i.Token.isTokenRowDelimiter(n);n=o.nextCharacterToken)t.push(n.token),o.advancePastToken(n);return this.columnFormatter.format(t.join(""))}}},{"../Token":159,"./ColumnFormatter":160}],163:[function(e,p,g){Object.defineProperty(g,"__esModule",{value:!0}),g.QuotedColumnParser=void 0;const u=e("./ColumnFormatter"),i=e("../Token");g.QuotedColumnParser=class{constructor(o){this.parserOptions=o,this.columnFormatter=new u.ColumnFormatter(o)}parse(o){if(!o.hasMoreCharacters)return null;const r=o.cursor,{foundClosingQuote:t,col:n}=this.gatherDataBetweenQuotes(o);if(!t){if(o.advanceTo(r),!o.hasMoreData)throw new Error(`Parse Error: missing closing: '${this.parserOptions.quote||""}' in line: at '${o.lineFromCursor.replace(/[\r\n]/g,"\\n'")}'`);return null}return this.checkForMalformedColumn(o),n}gatherDataBetweenQuotes(o){const{parserOptions:r}=this;let t=!1,n=!1;const c=[];let s=o.nextCharacterToken;for(;!n&&s!==null;s=o.nextCharacterToken){const a=i.Token.isTokenQuote(s,r);if(!t&&a)t=!0;else if(t)if(i.Token.isTokenEscapeCharacter(s,r)){o.advancePastToken(s);const f=o.nextCharacterToken;f!==null&&(i.Token.isTokenQuote(f,r)||i.Token.isTokenEscapeCharacter(f,r))?(c.push(f.token),s=f):a?n=!0:c.push(s.token)}else a?n=!0:c.push(s.token);o.advancePastToken(s)}return{col:this.columnFormatter.format(c.join("")),foundClosingQuote:n}}checkForMalformedColumn(o){const{parserOptions:r}=this,{nextNonSpaceToken:t}=o;if(t){const n=i.Token.isTokenDelimiter(t,r),c=i.Token.isTokenRowDelimiter(t);if(!n&&!c){const s=o.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error(`Parse Error: expected: '${r.escapedDelimiter}' OR new line got: '${t.token}'. at '${s}`)}o.advanceToToken(t)}else o.hasMoreData||o.advancePastLine()}}},{"../Token":159,"./ColumnFormatter":160}],164:[function(e,p,g){Object.defineProperty(g,"__esModule",{value:!0}),g.ColumnFormatter=g.QuotedColumnParser=g.NonQuotedColumnParser=g.ColumnParser=void 0;var u=e("./ColumnParser");Object.defineProperty(g,"ColumnParser",{enumerable:!0,get:function(){return u.ColumnParser}});var i=e("./NonQuotedColumnParser");Object.defineProperty(g,"NonQuotedColumnParser",{enumerable:!0,get:function(){return i.NonQuotedColumnParser}});var o=e("./QuotedColumnParser");Object.defineProperty(g,"QuotedColumnParser",{enumerable:!0,get:function(){return o.QuotedColumnParser}});var r=e("./ColumnFormatter");Object.defineProperty(g,"ColumnFormatter",{enumerable:!0,get:function(){return r.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(e,p,g){Object.defineProperty(g,"__esModule",{value:!0}),g.QuotedColumnParser=g.NonQuotedColumnParser=g.ColumnParser=g.Token=g.Scanner=g.RowParser=g.Parser=void 0;var u=e("./Parser");Object.defineProperty(g,"Parser",{enumerable:!0,get:function(){return u.Parser}});var i=e("./RowParser");Object.defineProperty(g,"RowParser",{enumerable:!0,get:function(){return i.RowParser}});var o=e("./Scanner");Object.defineProperty(g,"Scanner",{enumerable:!0,get:function(){return o.Scanner}});var r=e("./Token");Object.defineProperty(g,"Token",{enumerable:!0,get:function(){return r.Token}});var t=e("./column");Object.defineProperty(g,"ColumnParser",{enumerable:!0,get:function(){return t.ColumnParser}}),Object.defineProperty(g,"NonQuotedColumnParser",{enumerable:!0,get:function(){return t.NonQuotedColumnParser}}),Object.defineProperty(g,"QuotedColumnParser",{enumerable:!0,get:function(){return t.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(e,p,g){var u=function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(g,"__esModule",{value:!0}),g.HeaderTransformer=void 0;const i=u(e("lodash.isundefined")),o=u(e("lodash.isfunction")),r=u(e("lodash.uniq")),t=u(e("lodash.groupby"));g.HeaderTransformer=class{constructor(n){this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=n,n.headers===!0?this.shouldUseFirstRow=!0:Array.isArray(n.headers)?this.setHeaders(n.headers):o.default(n.headers)&&(this.headersTransform=n.headers)}transform(n,c){return this.shouldMapRow(n)?c(null,this.processRow(n)):c(null,{row:null,isValid:!0})}shouldMapRow(n){const{parserOptions:c}=this;if(!this.headersTransform&&c.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(n)){if(this.headersTransform)this.setHeaders(this.headersTransform(n));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(n)}return!1}return!0}processRow(n){if(!this.headers)return{row:n,isValid:!0};const{parserOptions:c}=this;if(!c.discardUnmappedColumns&&n.length>this.headersLength){if(!c.strictColumnHandling)throw new Error(`Unexpected Error: column header mismatch expected: ${this.headersLength} columns got: ${n.length}`);return{row:n,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${n.length}`}}return c.strictColumnHandling&&n.length<this.headersLength?{row:n,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${n.length}`}:{row:this.mapHeaders(n),isValid:!0}}mapHeaders(n){const c={},{headers:s,headersLength:a}=this;for(let f=0;f<a;f+=1){const h=s[f];if(!i.default(h)){const d=n[f];i.default(d)?c[h]="":c[h]=d}}return c}setHeaders(n){var c;const s=n.filter(a=>!!a);if(r.default(s).length!==s.length){const a=t.default(s),f=Object.keys(a).filter(h=>a[h].length>1);throw new Error("Duplicate headers found "+JSON.stringify(f))}this.headers=n,this.receivedHeaders=!0,this.headersLength=((c=this.headers)===null||c===void 0?void 0:c.length)||0}}},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(e,p,g){var u=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(g,"__esModule",{value:!0}),g.RowTransformerValidator=void 0;const i=u(e("lodash.isfunction")),o=e("../types");class r{constructor(){this._rowTransform=null,this._rowValidator=null}static createTransform(n){return o.isSyncTransform(n)?(c,s)=>{let a=null;try{a=n(c)}catch(f){return s(f)}return s(null,a)}:n}static createValidator(n){return o.isSyncValidate(n)?(c,s)=>{s(null,{row:c,isValid:n(c)})}:(c,s)=>{n(c,(a,f,h)=>a?s(a):s(null,f?{row:c,isValid:f,reason:h}:{row:c,isValid:!1,reason:h}))}}set rowTransform(n){if(!i.default(n))throw new TypeError("The transform should be a function");this._rowTransform=r.createTransform(n)}set rowValidator(n){if(!i.default(n))throw new TypeError("The validate should be a function");this._rowValidator=r.createValidator(n)}transformAndValidate(n,c){return this.callTransformer(n,(s,a)=>s?c(s):a?this.callValidator(a,(f,h)=>f?c(f):h&&!h.isValid?c(null,{row:a,isValid:!1,reason:h.reason}):c(null,{row:a,isValid:!0})):c(null,{row:null,isValid:!0}))}callTransformer(n,c){return this._rowTransform?this._rowTransform(n,c):c(null,n)}callValidator(n,c){return this._rowValidator?this._rowValidator(n,c):c(null,{row:n,isValid:!0})}}g.RowTransformerValidator=r},{"../types":169,"lodash.isfunction":446}],168:[function(e,p,g){Object.defineProperty(g,"__esModule",{value:!0}),g.HeaderTransformer=g.RowTransformerValidator=void 0;var u=e("./RowTransformerValidator");Object.defineProperty(g,"RowTransformerValidator",{enumerable:!0,get:function(){return u.RowTransformerValidator}});var i=e("./HeaderTransformer");Object.defineProperty(g,"HeaderTransformer",{enumerable:!0,get:function(){return i.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(e,p,g){Object.defineProperty(g,"__esModule",{value:!0}),g.isSyncValidate=g.isSyncTransform=void 0,g.isSyncTransform=u=>u.length===1,g.isSyncValidate=u=>u.length===1},{}],170:[function(e,p,g){const u=g;u.bignum=e("bn.js"),u.define=e("./asn1/api").define,u.base=e("./asn1/base"),u.constants=e("./asn1/constants"),u.decoders=e("./asn1/decoders"),u.encoders=e("./asn1/encoders")},{"./asn1/api":171,"./asn1/base":173,"./asn1/constants":177,"./asn1/decoders":179,"./asn1/encoders":182,"bn.js":184}],171:[function(e,p,g){const u=e("./encoders"),i=e("./decoders"),o=e("inherits");function r(t,n){this.name=t,this.body=n,this.decoders={},this.encoders={}}g.define=function(t,n){return new r(t,n)},r.prototype._createNamed=function(t){const n=this.name;function c(s){this._initNamed(s,n)}return o(c,t),c.prototype._initNamed=function(s,a){t.call(this,s,a)},new c(this)},r.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(i[t])),this.decoders[t]},r.prototype.decode=function(t,n,c){return this._getDecoder(n).decode(t,c)},r.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(u[t])),this.encoders[t]},r.prototype.encode=function(t,n,c){return this._getEncoder(n).encode(t,c)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(e,p,g){const u=e("inherits"),i=e("../base/reporter").Reporter,o=e("safer-buffer").Buffer;function r(n,c){i.call(this,c),o.isBuffer(n)?(this.base=n,this.offset=0,this.length=n.length):this.error("Input not Buffer")}function t(n,c){if(Array.isArray(n))this.length=0,this.value=n.map(function(s){return t.isEncoderBuffer(s)||(s=new t(s,c)),this.length+=s.length,s},this);else if(typeof n=="number"){if(!(0<=n&&n<=255))return c.error("non-byte EncoderBuffer value");this.value=n,this.length=1}else if(typeof n=="string")this.value=n,this.length=o.byteLength(n);else{if(!o.isBuffer(n))return c.error("Unsupported type: "+typeof n);this.value=n,this.length=n.length}}u(r,i),g.DecoderBuffer=r,r.isDecoderBuffer=function(n){return n instanceof r?!0:typeof n=="object"&&o.isBuffer(n.base)&&n.constructor.name==="DecoderBuffer"&&typeof n.offset=="number"&&typeof n.length=="number"&&typeof n.save=="function"&&typeof n.restore=="function"&&typeof n.isEmpty=="function"&&typeof n.readUInt8=="function"&&typeof n.skip=="function"&&typeof n.raw=="function"},r.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},r.prototype.restore=function(n){const c=new r(this.base);return c.offset=n.offset,c.length=this.offset,this.offset=n.offset,i.prototype.restore.call(this,n.reporter),c},r.prototype.isEmpty=function(){return this.offset===this.length},r.prototype.readUInt8=function(n){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(n||"DecoderBuffer overrun")},r.prototype.skip=function(n,c){if(!(this.offset+n<=this.length))return this.error(c||"DecoderBuffer overrun");const s=new r(this.base);return s._reporterState=this._reporterState,s.offset=this.offset,s.length=this.offset+n,this.offset+=n,s},r.prototype.raw=function(n){return this.base.slice(n?n.offset:this.offset,this.length)},g.EncoderBuffer=t,t.isEncoderBuffer=function(n){return n instanceof t?!0:typeof n=="object"&&n.constructor.name==="EncoderBuffer"&&typeof n.length=="number"&&typeof n.join=="function"},t.prototype.join=function(n,c){return n||(n=o.alloc(this.length)),c||(c=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(s){s.join(n,c),c+=s.length}):(typeof this.value=="number"?n[c]=this.value:typeof this.value=="string"?n.write(this.value,c):o.isBuffer(this.value)&&this.value.copy(n,c),c+=this.length)),n}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(e,p,g){const u=g;u.Reporter=e("./reporter").Reporter,u.DecoderBuffer=e("./buffer").DecoderBuffer,u.EncoderBuffer=e("./buffer").EncoderBuffer,u.Node=e("./node")},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(e,p,g){const u=e("../base/reporter").Reporter,i=e("../base/buffer").EncoderBuffer,o=e("../base/buffer").DecoderBuffer,r=e("minimalistic-assert"),t=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],n=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(t);function c(a,f,h){const d={};this._baseState=d,d.name=h,d.enc=a,d.parent=f||null,d.children=null,d.tag=null,d.args=null,d.reverseArgs=null,d.choice=null,d.optional=!1,d.any=!1,d.obj=!1,d.use=null,d.useDecoder=null,d.key=null,d.default=null,d.explicit=null,d.implicit=null,d.contains=null,d.parent||(d.children=[],this._wrap())}p.exports=c;const s=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){const a=this._baseState,f={};s.forEach(function(d){f[d]=a[d]});const h=new this.constructor(f.parent);return h._baseState=f,h},c.prototype._wrap=function(){const a=this._baseState;n.forEach(function(f){this[f]=function(){const h=new this.constructor(this);return a.children.push(h),h[f].apply(h,arguments)}},this)},c.prototype._init=function(a){const f=this._baseState;r(f.parent===null),a.call(this),f.children=f.children.filter(function(h){return h._baseState.parent===this},this),r.equal(f.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(a){const f=this._baseState,h=a.filter(function(d){return d instanceof this.constructor},this);a=a.filter(function(d){return!(d instanceof this.constructor)},this),h.length!==0&&(r(f.children===null),f.children=h,h.forEach(function(d){d._baseState.parent=this},this)),a.length!==0&&(r(f.args===null),f.args=a,f.reverseArgs=a.map(function(d){if(typeof d!="object"||d.constructor!==Object)return d;const b={};return Object.keys(d).forEach(function(m){m==(0|m)&&(m|=0);const x=d[m];b[x]=m}),b}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(a){c.prototype[a]=function(){const f=this._baseState;throw new Error(a+" not implemented for encoding: "+f.enc)}}),t.forEach(function(a){c.prototype[a]=function(){const f=this._baseState,h=Array.prototype.slice.call(arguments);return r(f.tag===null),f.tag=a,this._useArgs(h),this}}),c.prototype.use=function(a){r(a);const f=this._baseState;return r(f.use===null),f.use=a,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(a){const f=this._baseState;return r(f.default===null),f.default=a,f.optional=!0,this},c.prototype.explicit=function(a){const f=this._baseState;return r(f.explicit===null&&f.implicit===null),f.explicit=a,this},c.prototype.implicit=function(a){const f=this._baseState;return r(f.explicit===null&&f.implicit===null),f.implicit=a,this},c.prototype.obj=function(){const a=this._baseState,f=Array.prototype.slice.call(arguments);return a.obj=!0,f.length!==0&&this._useArgs(f),this},c.prototype.key=function(a){const f=this._baseState;return r(f.key===null),f.key=a,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(a){const f=this._baseState;return r(f.choice===null),f.choice=a,this._useArgs(Object.keys(a).map(function(h){return a[h]})),this},c.prototype.contains=function(a){const f=this._baseState;return r(f.use===null),f.contains=a,this},c.prototype._decode=function(a,f){const h=this._baseState;if(h.parent===null)return a.wrapResult(h.children[0]._decode(a,f));let d,b=h.default,m=!0,x=null;if(h.key!==null&&(x=a.enterKey(h.key)),h.optional){let k=null;if(h.explicit!==null?k=h.explicit:h.implicit!==null?k=h.implicit:h.tag!==null&&(k=h.tag),k!==null||h.any){if(m=this._peekTag(a,k,h.any),a.isError(m))return m}else{const R=a.save();try{h.choice===null?this._decodeGeneric(h.tag,a,f):this._decodeChoice(a,f),m=!0}catch{m=!1}a.restore(R)}}if(h.obj&&m&&(d=a.enterObject()),m){if(h.explicit!==null){const R=this._decodeTag(a,h.explicit);if(a.isError(R))return R;a=R}const k=a.offset;if(h.use===null&&h.choice===null){let R;h.any&&(R=a.save());const F=this._decodeTag(a,h.implicit!==null?h.implicit:h.tag,h.any);if(a.isError(F))return F;h.any?b=a.raw(R):a=F}if(f&&f.track&&h.tag!==null&&f.track(a.path(),k,a.length,"tagged"),f&&f.track&&h.tag!==null&&f.track(a.path(),a.offset,a.length,"content"),h.any||(b=h.choice===null?this._decodeGeneric(h.tag,a,f):this._decodeChoice(a,f)),a.isError(b))return b;if(h.any||h.choice!==null||h.children===null||h.children.forEach(function(R){R._decode(a,f)}),h.contains&&(h.tag==="octstr"||h.tag==="bitstr")){const R=new o(b);b=this._getUse(h.contains,a._reporterState.obj)._decode(R,f)}}return h.obj&&m&&(b=a.leaveObject(d)),h.key===null||b===null&&m!==!0?x!==null&&a.exitKey(x):a.leaveKey(x,h.key,b),b},c.prototype._decodeGeneric=function(a,f,h){const d=this._baseState;return a==="seq"||a==="set"?null:a==="seqof"||a==="setof"?this._decodeList(f,a,d.args[0],h):/str$/.test(a)?this._decodeStr(f,a,h):a==="objid"&&d.args?this._decodeObjid(f,d.args[0],d.args[1],h):a==="objid"?this._decodeObjid(f,null,null,h):a==="gentime"||a==="utctime"?this._decodeTime(f,a,h):a==="null_"?this._decodeNull(f,h):a==="bool"?this._decodeBool(f,h):a==="objDesc"?this._decodeStr(f,a,h):a==="int"||a==="enum"?this._decodeInt(f,d.args&&d.args[0],h):d.use!==null?this._getUse(d.use,f._reporterState.obj)._decode(f,h):f.error("unknown tag: "+a)},c.prototype._getUse=function(a,f){const h=this._baseState;return h.useDecoder=this._use(a,f),r(h.useDecoder._baseState.parent===null),h.useDecoder=h.useDecoder._baseState.children[0],h.implicit!==h.useDecoder._baseState.implicit&&(h.useDecoder=h.useDecoder.clone(),h.useDecoder._baseState.implicit=h.implicit),h.useDecoder},c.prototype._decodeChoice=function(a,f){const h=this._baseState;let d=null,b=!1;return Object.keys(h.choice).some(function(m){const x=a.save(),k=h.choice[m];try{const R=k._decode(a,f);if(a.isError(R))return!1;d={type:m,value:R},b=!0}catch{return a.restore(x),!1}return!0},this),b?d:a.error("Choice not matched")},c.prototype._createEncoderBuffer=function(a){return new i(a,this.reporter)},c.prototype._encode=function(a,f,h){const d=this._baseState;if(d.default!==null&&d.default===a)return;const b=this._encodeValue(a,f,h);return b===void 0||this._skipDefault(b,f,h)?void 0:b},c.prototype._encodeValue=function(a,f,h){const d=this._baseState;if(d.parent===null)return d.children[0]._encode(a,f||new u);let b=null;if(this.reporter=f,d.optional&&a===void 0){if(d.default===null)return;a=d.default}let m=null,x=!1;if(d.any)b=this._createEncoderBuffer(a);else if(d.choice)b=this._encodeChoice(a,f);else if(d.contains)m=this._getUse(d.contains,h)._encode(a,f),x=!0;else if(d.children)m=d.children.map(function(k){if(k._baseState.tag==="null_")return k._encode(null,f,a);if(k._baseState.key===null)return f.error("Child should have a key");const R=f.enterKey(k._baseState.key);if(typeof a!="object")return f.error("Child expected, but input is not object");const F=k._encode(a[k._baseState.key],f,a);return f.leaveKey(R),F},this).filter(function(k){return k}),m=this._createEncoderBuffer(m);else if(d.tag==="seqof"||d.tag==="setof"){if(!d.args||d.args.length!==1)return f.error("Too many args for : "+d.tag);if(!Array.isArray(a))return f.error("seqof/setof, but data is not Array");const k=this.clone();k._baseState.implicit=null,m=this._createEncoderBuffer(a.map(function(R){const F=this._baseState;return this._getUse(F.args[0],a)._encode(R,f)},k))}else d.use!==null?b=this._getUse(d.use,h)._encode(a,f):(m=this._encodePrimitive(d.tag,a),x=!0);if(!d.any&&d.choice===null){const k=d.implicit!==null?d.implicit:d.tag,R=d.implicit===null?"universal":"context";k===null?d.use===null&&f.error("Tag could be omitted only for .use()"):d.use===null&&(b=this._encodeComposite(k,x,R,m))}return d.explicit!==null&&(b=this._encodeComposite(d.explicit,!1,"context",b)),b},c.prototype._encodeChoice=function(a,f){const h=this._baseState,d=h.choice[a.type];return d||r(!1,a.type+" not found in "+JSON.stringify(Object.keys(h.choice))),d._encode(a.value,f)},c.prototype._encodePrimitive=function(a,f){const h=this._baseState;if(/str$/.test(a))return this._encodeStr(f,a);if(a==="objid"&&h.args)return this._encodeObjid(f,h.reverseArgs[0],h.args[1]);if(a==="objid")return this._encodeObjid(f,null,null);if(a==="gentime"||a==="utctime")return this._encodeTime(f,a);if(a==="null_")return this._encodeNull();if(a==="int"||a==="enum")return this._encodeInt(f,h.args&&h.reverseArgs[0]);if(a==="bool")return this._encodeBool(f);if(a==="objDesc")return this._encodeStr(f,a);throw new Error("Unsupported tag: "+a)},c.prototype._isNumstr=function(a){return/^[0-9 ]*$/.test(a)},c.prototype._isPrintstr=function(a){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(a)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(e,p,g){const u=e("inherits");function i(r){this._reporterState={obj:null,path:[],options:r||{},errors:[]}}function o(r,t){this.path=r,this.rethrow(t)}g.Reporter=i,i.prototype.isError=function(r){return r instanceof o},i.prototype.save=function(){const r=this._reporterState;return{obj:r.obj,pathLen:r.path.length}},i.prototype.restore=function(r){const t=this._reporterState;t.obj=r.obj,t.path=t.path.slice(0,r.pathLen)},i.prototype.enterKey=function(r){return this._reporterState.path.push(r)},i.prototype.exitKey=function(r){const t=this._reporterState;t.path=t.path.slice(0,r-1)},i.prototype.leaveKey=function(r,t,n){const c=this._reporterState;this.exitKey(r),c.obj!==null&&(c.obj[t]=n)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){const r=this._reporterState,t=r.obj;return r.obj={},t},i.prototype.leaveObject=function(r){const t=this._reporterState,n=t.obj;return t.obj=r,n},i.prototype.error=function(r){let t;const n=this._reporterState,c=r instanceof o;if(t=c?r:new o(n.path.map(function(s){return"["+JSON.stringify(s)+"]"}).join(""),r.message||r,r.stack),!n.options.partial)throw t;return c||n.errors.push(t),t},i.prototype.wrapResult=function(r){const t=this._reporterState;return t.options.partial?{result:this.isError(r)?null:r,errors:t.errors}:r},u(o,Error),o.prototype.rethrow=function(r){if(this.message=r+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},{inherits:440}],176:[function(e,p,g){function u(i){const o={};return Object.keys(i).forEach(function(r){(0|r)==r&&(r|=0);const t=i[r];o[t]=r}),o}g.tagClass={0:"universal",1:"application",2:"context",3:"private"},g.tagClassByName=u(g.tagClass),g.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"},g.tagByName=u(g.tag)},{}],177:[function(e,p,g){const u=g;u._reverse=function(i){const o={};return Object.keys(i).forEach(function(r){(0|r)==r&&(r|=0);const t=i[r];o[t]=r}),o},u.der=e("./der")},{"./der":176}],178:[function(e,p,g){const u=e("inherits"),i=e("bn.js"),o=e("../base/buffer").DecoderBuffer,r=e("../base/node"),t=e("../constants/der");function n(f){this.enc="der",this.name=f.name,this.entity=f,this.tree=new c,this.tree._init(f.body)}function c(f){r.call(this,"der",f)}function s(f,h){let d=f.readUInt8(h);if(f.isError(d))return d;const b=t.tagClass[d>>6],m=(32&d)==0;if((31&d)==31){let x=d;for(d=0;(128&x)==128;){if(x=f.readUInt8(h),f.isError(x))return x;d<<=7,d|=127&x}}else d&=31;return{cls:b,primitive:m,tag:d,tagStr:t.tag[d]}}function a(f,h,d){let b=f.readUInt8(d);if(f.isError(b))return b;if(!h&&b===128)return null;if(!(128&b))return b;const m=127&b;if(m>4)return f.error("length octect is too long");b=0;for(let x=0;x<m;x++){b<<=8;const k=f.readUInt8(d);if(f.isError(k))return k;b|=k}return b}p.exports=n,n.prototype.decode=function(f,h){return o.isDecoderBuffer(f)||(f=new o(f,h)),this.tree._decode(f,h)},u(c,r),c.prototype._peekTag=function(f,h,d){if(f.isEmpty())return!1;const b=f.save(),m=s(f,'Failed to peek tag: "'+h+'"');return f.isError(m)?m:(f.restore(b),m.tag===h||m.tagStr===h||m.tagStr+"of"===h||d)},c.prototype._decodeTag=function(f,h,d){const b=s(f,'Failed to decode tag of "'+h+'"');if(f.isError(b))return b;let m=a(f,b.primitive,'Failed to get length of "'+h+'"');if(f.isError(m))return m;if(!d&&b.tag!==h&&b.tagStr!==h&&b.tagStr+"of"!==h)return f.error('Failed to match tag: "'+h+'"');if(b.primitive||m!==null)return f.skip(m,'Failed to match body of: "'+h+'"');const x=f.save(),k=this._skipUntilEnd(f,'Failed to skip indefinite length body: "'+this.tag+'"');return f.isError(k)?k:(m=f.offset-x.offset,f.restore(x),f.skip(m,'Failed to match body of: "'+h+'"'))},c.prototype._skipUntilEnd=function(f,h){for(;;){const d=s(f,h);if(f.isError(d))return d;const b=a(f,d.primitive,h);if(f.isError(b))return b;let m;if(m=d.primitive||b!==null?f.skip(b):this._skipUntilEnd(f,h),f.isError(m))return m;if(d.tagStr==="end")break}},c.prototype._decodeList=function(f,h,d,b){const m=[];for(;!f.isEmpty();){const x=this._peekTag(f,"end");if(f.isError(x))return x;const k=d.decode(f,"der",b);if(f.isError(k)&&x)break;m.push(k)}return m},c.prototype._decodeStr=function(f,h){if(h==="bitstr"){const d=f.readUInt8();return f.isError(d)?d:{unused:d,data:f.raw()}}if(h==="bmpstr"){const d=f.raw();if(d.length%2==1)return f.error("Decoding of string type: bmpstr length mismatch");let b="";for(let m=0;m<d.length/2;m++)b+=String.fromCharCode(d.readUInt16BE(2*m));return b}if(h==="numstr"){const d=f.raw().toString("ascii");return this._isNumstr(d)?d:f.error("Decoding of string type: numstr unsupported characters")}if(h==="octstr"||h==="objDesc")return f.raw();if(h==="printstr"){const d=f.raw().toString("ascii");return this._isPrintstr(d)?d:f.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(h)?f.raw().toString():f.error("Decoding of string type: "+h+" unsupported")},c.prototype._decodeObjid=function(f,h,d){let b;const m=[];let x=0,k=0;for(;!f.isEmpty();)k=f.readUInt8(),x<<=7,x|=127&k,!(128&k)&&(m.push(x),x=0);128&k&&m.push(x);const R=m[0]/40|0,F=m[0]%40;if(b=d?m:[R,F].concat(m.slice(1)),h){let L=h[b.join(" ")];L===void 0&&(L=h[b.join(".")]),L!==void 0&&(b=L)}return b},c.prototype._decodeTime=function(f,h){const d=f.raw().toString();let b,m,x,k,R,F;if(h==="gentime")b=0|d.slice(0,4),m=0|d.slice(4,6),x=0|d.slice(6,8),k=0|d.slice(8,10),R=0|d.slice(10,12),F=0|d.slice(12,14);else{if(h!=="utctime")return f.error("Decoding "+h+" time is not supported yet");b=0|d.slice(0,2),m=0|d.slice(2,4),x=0|d.slice(4,6),k=0|d.slice(6,8),R=0|d.slice(8,10),F=0|d.slice(10,12),b=b<70?2e3+b:1900+b}return Date.UTC(b,m-1,x,k,R,F,0)},c.prototype._decodeNull=function(){return null},c.prototype._decodeBool=function(f){const h=f.readUInt8();return f.isError(h)?h:h!==0},c.prototype._decodeInt=function(f,h){const d=f.raw();let b=new i(d);return h&&(b=h[b.toString(10)]||b),b},c.prototype._use=function(f,h){return typeof f=="function"&&(f=f(h)),f._getDecoder("der").tree}},{"../base/buffer":172,"../base/node":174,"../constants/der":176,"bn.js":184,inherits:440}],179:[function(e,p,g){const u=g;u.der=e("./der"),u.pem=e("./pem")},{"./der":178,"./pem":180}],180:[function(e,p,g){const u=e("inherits"),i=e("safer-buffer").Buffer,o=e("./der");function r(t){o.call(this,t),this.enc="pem"}u(r,o),p.exports=r,r.prototype.decode=function(t,n){const c=t.toString().split(/[\r\n]+/g),s=n.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/;let f=-1,h=-1;for(let m=0;m<c.length;m++){const x=c[m].match(a);if(x!==null&&x[2]===s){if(f!==-1){if(x[1]!=="END")break;h=m;break}if(x[1]!=="BEGIN")break;f=m}}if(f===-1||h===-1)throw new Error("PEM section not found for: "+s);const d=c.slice(f+1,h).join("");d.replace(/[^a-z0-9+/=]+/gi,"");const b=i.from(d,"base64");return o.prototype.decode.call(this,b,n)}},{"./der":178,inherits:440,"safer-buffer":495}],181:[function(e,p,g){const u=e("inherits"),i=e("safer-buffer").Buffer,o=e("../base/node"),r=e("../constants/der");function t(s){this.enc="der",this.name=s.name,this.entity=s,this.tree=new n,this.tree._init(s.body)}function n(s){o.call(this,"der",s)}function c(s){return s<10?"0"+s:s}p.exports=t,t.prototype.encode=function(s,a){return this.tree._encode(s,a).join()},u(n,o),n.prototype._encodeComposite=function(s,a,f,h){const d=function(x,k,R,F){let L;if(x==="seqof"?x="seq":x==="setof"&&(x="set"),r.tagByName.hasOwnProperty(x))L=r.tagByName[x];else{if(typeof x!="number"||(0|x)!==x)return F.error("Unknown tag: "+x);L=x}return L>=31?F.error("Multi-octet tag encoding unsupported"):(k||(L|=32),L|=r.tagClassByName[R||"universal"]<<6,L)}(s,a,f,this.reporter);if(h.length<128){const x=i.alloc(2);return x[0]=d,x[1]=h.length,this._createEncoderBuffer([x,h])}let b=1;for(let x=h.length;x>=256;x>>=8)b++;const m=i.alloc(2+b);m[0]=d,m[1]=128|b;for(let x=1+b,k=h.length;k>0;x--,k>>=8)m[x]=255&k;return this._createEncoderBuffer([m,h])},n.prototype._encodeStr=function(s,a){if(a==="bitstr")return this._createEncoderBuffer([0|s.unused,s.data]);if(a==="bmpstr"){const f=i.alloc(2*s.length);for(let h=0;h<s.length;h++)f.writeUInt16BE(s.charCodeAt(h),2*h);return this._createEncoderBuffer(f)}return a==="numstr"?this._isNumstr(s)?this._createEncoderBuffer(s):this.reporter.error("Encoding of string type: numstr supports only digits and space"):a==="printstr"?this._isPrintstr(s)?this._createEncoderBuffer(s):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(a)||a==="objDesc"?this._createEncoderBuffer(s):this.reporter.error("Encoding of string type: "+a+" unsupported")},n.prototype._encodeObjid=function(s,a,f){if(typeof s=="string"){if(!a)return this.reporter.error("string objid given, but no values map found");if(!a.hasOwnProperty(s))return this.reporter.error("objid not found in values map");s=a[s].split(/[\s.]+/g);for(let m=0;m<s.length;m++)s[m]|=0}else if(Array.isArray(s)){s=s.slice();for(let m=0;m<s.length;m++)s[m]|=0}if(!Array.isArray(s))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(s));if(!f){if(s[1]>=40)return this.reporter.error("Second objid identifier OOB");s.splice(0,2,40*s[0]+s[1])}let h=0;for(let m=0;m<s.length;m++){let x=s[m];for(h++;x>=128;x>>=7)h++}const d=i.alloc(h);let b=d.length-1;for(let m=s.length-1;m>=0;m--){let x=s[m];for(d[b--]=127&x;(x>>=7)>0;)d[b--]=128|127&x}return this._createEncoderBuffer(d)},n.prototype._encodeTime=function(s,a){let f;const h=new Date(s);return a==="gentime"?f=[c(h.getUTCFullYear()),c(h.getUTCMonth()+1),c(h.getUTCDate()),c(h.getUTCHours()),c(h.getUTCMinutes()),c(h.getUTCSeconds()),"Z"].join(""):a==="utctime"?f=[c(h.getUTCFullYear()%100),c(h.getUTCMonth()+1),c(h.getUTCDate()),c(h.getUTCHours()),c(h.getUTCMinutes()),c(h.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+a+" time is not supported yet"),this._encodeStr(f,"octstr")},n.prototype._encodeNull=function(){return this._createEncoderBuffer("")},n.prototype._encodeInt=function(s,a){if(typeof s=="string"){if(!a)return this.reporter.error("String int or enum given, but no values map");if(!a.hasOwnProperty(s))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(s));s=a[s]}if(typeof s!="number"&&!i.isBuffer(s)){const d=s.toArray();!s.sign&&128&d[0]&&d.unshift(0),s=i.from(d)}if(i.isBuffer(s)){let d=s.length;s.length===0&&d++;const b=i.alloc(d);return s.copy(b),s.length===0&&(b[0]=0),this._createEncoderBuffer(b)}if(s<128)return this._createEncoderBuffer(s);if(s<256)return this._createEncoderBuffer([0,s]);let f=1;for(let d=s;d>=256;d>>=8)f++;const h=new Array(f);for(let d=h.length-1;d>=0;d--)h[d]=255&s,s>>=8;return 128&h[0]&&h.unshift(0),this._createEncoderBuffer(i.from(h))},n.prototype._encodeBool=function(s){return this._createEncoderBuffer(s?255:0)},n.prototype._use=function(s,a){return typeof s=="function"&&(s=s(a)),s._getEncoder("der").tree},n.prototype._skipDefault=function(s,a,f){const h=this._baseState;let d;if(h.default===null)return!1;const b=s.join();if(h.defaultBuffer===void 0&&(h.defaultBuffer=this._encodeValue(h.default,a,f).join()),b.length!==h.defaultBuffer.length)return!1;for(d=0;d<b.length;d++)if(b[d]!==h.defaultBuffer[d])return!1;return!0}},{"../base/node":174,"../constants/der":176,inherits:440,"safer-buffer":495}],182:[function(e,p,g){const u=g;u.der=e("./der"),u.pem=e("./pem")},{"./der":181,"./pem":183}],183:[function(e,p,g){const u=e("inherits"),i=e("./der");function o(r){i.call(this,r),this.enc="pem"}u(o,i),p.exports=o,o.prototype.encode=function(r,t){const n=i.prototype.encode.call(this,r).toString("base64"),c=["-----BEGIN "+t.label+"-----"];for(let s=0;s<n.length;s+=64)c.push(n.slice(s,s+64));return c.push("-----END "+t.label+"-----"),c.join(`
8
- `)}},{"./der":181,inherits:440}],184:[function(e,p,g){(function(u,i){function o(T,M){if(!T)throw new Error(M||"Assertion failed")}function r(T,M){T.super_=M;var S=function(){};S.prototype=M.prototype,T.prototype=new S,T.prototype.constructor=T}function t(T,M,S){if(t.isBN(T))return T;this.negative=0,this.words=null,this.length=0,this.red=null,T!==null&&(M!=="le"&&M!=="be"||(S=M,M=10),this._init(T||0,M||10,S||"be"))}var n;typeof u=="object"?u.exports=t:(void 0).BN=t,t.BN=t,t.wordSize=26;try{n=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:e("buffer").Buffer}catch{}function c(T,M){var S=T.charCodeAt(M);return S>=65&&S<=70?S-55:S>=97&&S<=102?S-87:S-48&15}function s(T,M,S){var v=c(T,S);return S-1>=M&&(v|=c(T,S-1)<<4),v}function a(T,M,S,v){for(var w=0,y=Math.min(T.length,S),_=M;_<y;_++){var C=T.charCodeAt(_)-48;w*=v,w+=C>=49?C-49+10:C>=17?C-17+10:C}return w}t.isBN=function(T){return T instanceof t||T!==null&&typeof T=="object"&&T.constructor.wordSize===t.wordSize&&Array.isArray(T.words)},t.max=function(T,M){return T.cmp(M)>0?T:M},t.min=function(T,M){return T.cmp(M)<0?T:M},t.prototype._init=function(T,M,S){if(typeof T=="number")return this._initNumber(T,M,S);if(typeof T=="object")return this._initArray(T,M,S);M==="hex"&&(M=16),o(M===(0|M)&&M>=2&&M<=36);var v=0;(T=T.toString().replace(/\s+/g,""))[0]==="-"&&(v++,this.negative=1),v<T.length&&(M===16?this._parseHex(T,v,S):(this._parseBase(T,M,v),S==="le"&&this._initArray(this.toArray(),M,S)))},t.prototype._initNumber=function(T,M,S){T<0&&(this.negative=1,T=-T),T<67108864?(this.words=[67108863&T],this.length=1):T<4503599627370496?(this.words=[67108863&T,T/67108864&67108863],this.length=2):(o(T<9007199254740992),this.words=[67108863&T,T/67108864&67108863,1],this.length=3),S==="le"&&this._initArray(this.toArray(),M,S)},t.prototype._initArray=function(T,M,S){if(o(typeof T.length=="number"),T.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(T.length/3),this.words=new Array(this.length);for(var v=0;v<this.length;v++)this.words[v]=0;var w,y,_=0;if(S==="be")for(v=T.length-1,w=0;v>=0;v-=3)y=T[v]|T[v-1]<<8|T[v-2]<<16,this.words[w]|=y<<_&67108863,this.words[w+1]=y>>>26-_&67108863,(_+=24)>=26&&(_-=26,w++);else if(S==="le")for(v=0,w=0;v<T.length;v+=3)y=T[v]|T[v+1]<<8|T[v+2]<<16,this.words[w]|=y<<_&67108863,this.words[w+1]=y>>>26-_&67108863,(_+=24)>=26&&(_-=26,w++);return this.strip()},t.prototype._parseHex=function(T,M,S){this.length=Math.ceil((T.length-M)/6),this.words=new Array(this.length);for(var v=0;v<this.length;v++)this.words[v]=0;var w,y=0,_=0;if(S==="be")for(v=T.length-1;v>=M;v-=2)w=s(T,M,v)<<y,this.words[_]|=67108863&w,y>=18?(y-=18,_+=1,this.words[_]|=w>>>26):y+=8;else for(v=(T.length-M)%2==0?M+1:M;v<T.length;v+=2)w=s(T,M,v)<<y,this.words[_]|=67108863&w,y>=18?(y-=18,_+=1,this.words[_]|=w>>>26):y+=8;this.strip()},t.prototype._parseBase=function(T,M,S){this.words=[0],this.length=1;for(var v=0,w=1;w<=67108863;w*=M)v++;v--,w=w/M|0;for(var y=T.length-S,_=y%v,C=Math.min(y,y-_)+S,I=0,P=S;P<C;P+=v)I=a(T,P,P+v,M),this.imuln(w),this.words[0]+I<67108864?this.words[0]+=I:this._iaddn(I);if(_!==0){var H=1;for(I=a(T,P,T.length,M),P=0;P<_;P++)H*=M;this.imuln(H),this.words[0]+I<67108864?this.words[0]+=I:this._iaddn(I)}this.strip()},t.prototype.copy=function(T){T.words=new Array(this.length);for(var M=0;M<this.length;M++)T.words[M]=this.words[M];T.length=this.length,T.negative=this.negative,T.red=this.red},t.prototype.clone=function(){var T=new t(null);return this.copy(T),T},t.prototype._expand=function(T){for(;this.length<T;)this.words[this.length++]=0;return this},t.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},t.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},t.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","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"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function b(T,M,S){S.negative=M.negative^T.negative;var v=T.length+M.length|0;S.length=v,v=v-1|0;var w=0|T.words[0],y=0|M.words[0],_=w*y,C=67108863&_,I=_/67108864|0;S.words[0]=C;for(var P=1;P<v;P++){for(var H=I>>>26,W=67108863&I,K=Math.min(P,M.length-1),B=Math.max(0,P-T.length+1);B<=K;B++){var q=P-B|0;H+=(_=(w=0|T.words[q])*(y=0|M.words[B])+W)/67108864|0,W=67108863&_}S.words[P]=0|W,I=0|H}return I!==0?S.words[P]=0|I:S.length--,S.strip()}t.prototype.toString=function(T,M){var S;if(M=0|M||1,(T=T||10)===16||T==="hex"){S="";for(var v=0,w=0,y=0;y<this.length;y++){var _=this.words[y],C=(16777215&(_<<v|w)).toString(16);S=(w=_>>>24-v&16777215)!==0||y!==this.length-1?f[6-C.length]+C+S:C+S,(v+=2)>=26&&(v-=26,y--)}for(w!==0&&(S=w.toString(16)+S);S.length%M!=0;)S="0"+S;return this.negative!==0&&(S="-"+S),S}if(T===(0|T)&&T>=2&&T<=36){var I=h[T],P=d[T];S="";var H=this.clone();for(H.negative=0;!H.isZero();){var W=H.modn(P).toString(T);S=(H=H.idivn(P)).isZero()?W+S:f[I-W.length]+W+S}for(this.isZero()&&(S="0"+S);S.length%M!=0;)S="0"+S;return this.negative!==0&&(S="-"+S),S}o(!1,"Base should be between 2 and 36")},t.prototype.toNumber=function(){var T=this.words[0];return this.length===2?T+=67108864*this.words[1]:this.length===3&&this.words[2]===1?T+=4503599627370496+67108864*this.words[1]:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-T:T},t.prototype.toJSON=function(){return this.toString(16)},t.prototype.toBuffer=function(T,M){return o(n!==void 0),this.toArrayLike(n,T,M)},t.prototype.toArray=function(T,M){return this.toArrayLike(Array,T,M)},t.prototype.toArrayLike=function(T,M,S){var v=this.byteLength(),w=S||Math.max(1,v);o(v<=w,"byte array longer than desired length"),o(w>0,"Requested array length <= 0"),this.strip();var y,_,C=M==="le",I=new T(w),P=this.clone();if(C){for(_=0;!P.isZero();_++)y=P.andln(255),P.iushrn(8),I[_]=y;for(;_<w;_++)I[_]=0}else{for(_=0;_<w-v;_++)I[_]=0;for(_=0;!P.isZero();_++)y=P.andln(255),P.iushrn(8),I[w-_-1]=y}return I},Math.clz32?t.prototype._countBits=function(T){return 32-Math.clz32(T)}:t.prototype._countBits=function(T){var M=T,S=0;return M>=4096&&(S+=13,M>>>=13),M>=64&&(S+=7,M>>>=7),M>=8&&(S+=4,M>>>=4),M>=2&&(S+=2,M>>>=2),S+M},t.prototype._zeroBits=function(T){if(T===0)return 26;var M=T,S=0;return!(8191&M)&&(S+=13,M>>>=13),!(127&M)&&(S+=7,M>>>=7),!(15&M)&&(S+=4,M>>>=4),!(3&M)&&(S+=2,M>>>=2),!(1&M)&&S++,S},t.prototype.bitLength=function(){var T=this.words[this.length-1],M=this._countBits(T);return 26*(this.length-1)+M},t.prototype.zeroBits=function(){if(this.isZero())return 0;for(var T=0,M=0;M<this.length;M++){var S=this._zeroBits(this.words[M]);if(T+=S,S!==26)break}return T},t.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},t.prototype.toTwos=function(T){return this.negative!==0?this.abs().inotn(T).iaddn(1):this.clone()},t.prototype.fromTwos=function(T){return this.testn(T-1)?this.notn(T).iaddn(1).ineg():this.clone()},t.prototype.isNeg=function(){return this.negative!==0},t.prototype.neg=function(){return this.clone().ineg()},t.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},t.prototype.iuor=function(T){for(;this.length<T.length;)this.words[this.length++]=0;for(var M=0;M<T.length;M++)this.words[M]=this.words[M]|T.words[M];return this.strip()},t.prototype.ior=function(T){return o((this.negative|T.negative)==0),this.iuor(T)},t.prototype.or=function(T){return this.length>T.length?this.clone().ior(T):T.clone().ior(this)},t.prototype.uor=function(T){return this.length>T.length?this.clone().iuor(T):T.clone().iuor(this)},t.prototype.iuand=function(T){var M;M=this.length>T.length?T:this;for(var S=0;S<M.length;S++)this.words[S]=this.words[S]&T.words[S];return this.length=M.length,this.strip()},t.prototype.iand=function(T){return o((this.negative|T.negative)==0),this.iuand(T)},t.prototype.and=function(T){return this.length>T.length?this.clone().iand(T):T.clone().iand(this)},t.prototype.uand=function(T){return this.length>T.length?this.clone().iuand(T):T.clone().iuand(this)},t.prototype.iuxor=function(T){var M,S;this.length>T.length?(M=this,S=T):(M=T,S=this);for(var v=0;v<S.length;v++)this.words[v]=M.words[v]^S.words[v];if(this!==M)for(;v<M.length;v++)this.words[v]=M.words[v];return this.length=M.length,this.strip()},t.prototype.ixor=function(T){return o((this.negative|T.negative)==0),this.iuxor(T)},t.prototype.xor=function(T){return this.length>T.length?this.clone().ixor(T):T.clone().ixor(this)},t.prototype.uxor=function(T){return this.length>T.length?this.clone().iuxor(T):T.clone().iuxor(this)},t.prototype.inotn=function(T){o(typeof T=="number"&&T>=0);var M=0|Math.ceil(T/26),S=T%26;this._expand(M),S>0&&M--;for(var v=0;v<M;v++)this.words[v]=67108863&~this.words[v];return S>0&&(this.words[v]=~this.words[v]&67108863>>26-S),this.strip()},t.prototype.notn=function(T){return this.clone().inotn(T)},t.prototype.setn=function(T,M){o(typeof T=="number"&&T>=0);var S=T/26|0,v=T%26;return this._expand(S+1),this.words[S]=M?this.words[S]|1<<v:this.words[S]&~(1<<v),this.strip()},t.prototype.iadd=function(T){var M,S,v;if(this.negative!==0&&T.negative===0)return this.negative=0,M=this.isub(T),this.negative^=1,this._normSign();if(this.negative===0&&T.negative!==0)return T.negative=0,M=this.isub(T),T.negative=1,M._normSign();this.length>T.length?(S=this,v=T):(S=T,v=this);for(var w=0,y=0;y<v.length;y++)M=(0|S.words[y])+(0|v.words[y])+w,this.words[y]=67108863&M,w=M>>>26;for(;w!==0&&y<S.length;y++)M=(0|S.words[y])+w,this.words[y]=67108863&M,w=M>>>26;if(this.length=S.length,w!==0)this.words[this.length]=w,this.length++;else if(S!==this)for(;y<S.length;y++)this.words[y]=S.words[y];return this},t.prototype.add=function(T){var M;return T.negative!==0&&this.negative===0?(T.negative=0,M=this.sub(T),T.negative^=1,M):T.negative===0&&this.negative!==0?(this.negative=0,M=T.sub(this),this.negative=1,M):this.length>T.length?this.clone().iadd(T):T.clone().iadd(this)},t.prototype.isub=function(T){if(T.negative!==0){T.negative=0;var M=this.iadd(T);return T.negative=1,M._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(T),this.negative=1,this._normSign();var S,v,w=this.cmp(T);if(w===0)return this.negative=0,this.length=1,this.words[0]=0,this;w>0?(S=this,v=T):(S=T,v=this);for(var y=0,_=0;_<v.length;_++)y=(M=(0|S.words[_])-(0|v.words[_])+y)>>26,this.words[_]=67108863&M;for(;y!==0&&_<S.length;_++)y=(M=(0|S.words[_])+y)>>26,this.words[_]=67108863&M;if(y===0&&_<S.length&&S!==this)for(;_<S.length;_++)this.words[_]=S.words[_];return this.length=Math.max(this.length,_),S!==this&&(this.negative=1),this.strip()},t.prototype.sub=function(T){return this.clone().isub(T)};var m=function(T,M,S){var v,w,y,_=T.words,C=M.words,I=S.words,P=0,H=0|_[0],W=8191&H,K=H>>>13,B=0|_[1],q=8191&B,O=B>>>13,N=0|_[2],U=8191&N,X=N>>>13,Z=0|_[3],G=8191&Z,J=Z>>>13,ne=0|_[4],ie=8191&ne,Y=ne>>>13,te=0|_[5],ee=8191&te,ae=te>>>13,se=0|_[6],le=8191&se,ce=se>>>13,de=0|_[7],pe=8191&de,ke=de>>>13,Se=0|_[8],ye=8191&Se,Ie=Se>>>13,Re=0|_[9],Ne=8191&Re,je=Re>>>13,Ce=0|C[0],be=8191&Ce,Te=Ce>>>13,Me=0|C[1],Ee=8191&Me,tt=Me>>>13,ut=0|C[2],Be=8191&ut,at=ut>>>13,et=0|C[3],We=8191&et,gt=et>>>13,ot=0|C[4],Le=8191&ot,nt=ot>>>13,ht=0|C[5],ze=8191&ht,lt=ht>>>13,pt=0|C[6],Ke=8191&pt,re=pt>>>13,oe=0|C[7],fe=8191&oe,we=oe>>>13,Fe=0|C[8],xe=8191&Fe,$e=Fe>>>13,De=0|C[9],Pe=8191&De,Xe=De>>>13;S.negative=T.negative^M.negative,S.length=19;var Ue=(P+(v=Math.imul(W,be))|0)+((8191&(w=(w=Math.imul(W,Te))+Math.imul(K,be)|0))<<13)|0;P=((y=Math.imul(K,Te))+(w>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,v=Math.imul(q,be),w=(w=Math.imul(q,Te))+Math.imul(O,be)|0,y=Math.imul(O,Te);var Ze=(P+(v=v+Math.imul(W,Ee)|0)|0)+((8191&(w=(w=w+Math.imul(W,tt)|0)+Math.imul(K,Ee)|0))<<13)|0;P=((y=y+Math.imul(K,tt)|0)+(w>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,v=Math.imul(U,be),w=(w=Math.imul(U,Te))+Math.imul(X,be)|0,y=Math.imul(X,Te),v=v+Math.imul(q,Ee)|0,w=(w=w+Math.imul(q,tt)|0)+Math.imul(O,Ee)|0,y=y+Math.imul(O,tt)|0;var wt=(P+(v=v+Math.imul(W,Be)|0)|0)+((8191&(w=(w=w+Math.imul(W,at)|0)+Math.imul(K,Be)|0))<<13)|0;P=((y=y+Math.imul(K,at)|0)+(w>>>13)|0)+(wt>>>26)|0,wt&=67108863,v=Math.imul(G,be),w=(w=Math.imul(G,Te))+Math.imul(J,be)|0,y=Math.imul(J,Te),v=v+Math.imul(U,Ee)|0,w=(w=w+Math.imul(U,tt)|0)+Math.imul(X,Ee)|0,y=y+Math.imul(X,tt)|0,v=v+Math.imul(q,Be)|0,w=(w=w+Math.imul(q,at)|0)+Math.imul(O,Be)|0,y=y+Math.imul(O,at)|0;var bt=(P+(v=v+Math.imul(W,We)|0)|0)+((8191&(w=(w=w+Math.imul(W,gt)|0)+Math.imul(K,We)|0))<<13)|0;P=((y=y+Math.imul(K,gt)|0)+(w>>>13)|0)+(bt>>>26)|0,bt&=67108863,v=Math.imul(ie,be),w=(w=Math.imul(ie,Te))+Math.imul(Y,be)|0,y=Math.imul(Y,Te),v=v+Math.imul(G,Ee)|0,w=(w=w+Math.imul(G,tt)|0)+Math.imul(J,Ee)|0,y=y+Math.imul(J,tt)|0,v=v+Math.imul(U,Be)|0,w=(w=w+Math.imul(U,at)|0)+Math.imul(X,Be)|0,y=y+Math.imul(X,at)|0,v=v+Math.imul(q,We)|0,w=(w=w+Math.imul(q,gt)|0)+Math.imul(O,We)|0,y=y+Math.imul(O,gt)|0;var Ct=(P+(v=v+Math.imul(W,Le)|0)|0)+((8191&(w=(w=w+Math.imul(W,nt)|0)+Math.imul(K,Le)|0))<<13)|0;P=((y=y+Math.imul(K,nt)|0)+(w>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,v=Math.imul(ee,be),w=(w=Math.imul(ee,Te))+Math.imul(ae,be)|0,y=Math.imul(ae,Te),v=v+Math.imul(ie,Ee)|0,w=(w=w+Math.imul(ie,tt)|0)+Math.imul(Y,Ee)|0,y=y+Math.imul(Y,tt)|0,v=v+Math.imul(G,Be)|0,w=(w=w+Math.imul(G,at)|0)+Math.imul(J,Be)|0,y=y+Math.imul(J,at)|0,v=v+Math.imul(U,We)|0,w=(w=w+Math.imul(U,gt)|0)+Math.imul(X,We)|0,y=y+Math.imul(X,gt)|0,v=v+Math.imul(q,Le)|0,w=(w=w+Math.imul(q,nt)|0)+Math.imul(O,Le)|0,y=y+Math.imul(O,nt)|0;var Tt=(P+(v=v+Math.imul(W,ze)|0)|0)+((8191&(w=(w=w+Math.imul(W,lt)|0)+Math.imul(K,ze)|0))<<13)|0;P=((y=y+Math.imul(K,lt)|0)+(w>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,v=Math.imul(le,be),w=(w=Math.imul(le,Te))+Math.imul(ce,be)|0,y=Math.imul(ce,Te),v=v+Math.imul(ee,Ee)|0,w=(w=w+Math.imul(ee,tt)|0)+Math.imul(ae,Ee)|0,y=y+Math.imul(ae,tt)|0,v=v+Math.imul(ie,Be)|0,w=(w=w+Math.imul(ie,at)|0)+Math.imul(Y,Be)|0,y=y+Math.imul(Y,at)|0,v=v+Math.imul(G,We)|0,w=(w=w+Math.imul(G,gt)|0)+Math.imul(J,We)|0,y=y+Math.imul(J,gt)|0,v=v+Math.imul(U,Le)|0,w=(w=w+Math.imul(U,nt)|0)+Math.imul(X,Le)|0,y=y+Math.imul(X,nt)|0,v=v+Math.imul(q,ze)|0,w=(w=w+Math.imul(q,lt)|0)+Math.imul(O,ze)|0,y=y+Math.imul(O,lt)|0;var Pt=(P+(v=v+Math.imul(W,Ke)|0)|0)+((8191&(w=(w=w+Math.imul(W,re)|0)+Math.imul(K,Ke)|0))<<13)|0;P=((y=y+Math.imul(K,re)|0)+(w>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,v=Math.imul(pe,be),w=(w=Math.imul(pe,Te))+Math.imul(ke,be)|0,y=Math.imul(ke,Te),v=v+Math.imul(le,Ee)|0,w=(w=w+Math.imul(le,tt)|0)+Math.imul(ce,Ee)|0,y=y+Math.imul(ce,tt)|0,v=v+Math.imul(ee,Be)|0,w=(w=w+Math.imul(ee,at)|0)+Math.imul(ae,Be)|0,y=y+Math.imul(ae,at)|0,v=v+Math.imul(ie,We)|0,w=(w=w+Math.imul(ie,gt)|0)+Math.imul(Y,We)|0,y=y+Math.imul(Y,gt)|0,v=v+Math.imul(G,Le)|0,w=(w=w+Math.imul(G,nt)|0)+Math.imul(J,Le)|0,y=y+Math.imul(J,nt)|0,v=v+Math.imul(U,ze)|0,w=(w=w+Math.imul(U,lt)|0)+Math.imul(X,ze)|0,y=y+Math.imul(X,lt)|0,v=v+Math.imul(q,Ke)|0,w=(w=w+Math.imul(q,re)|0)+Math.imul(O,Ke)|0,y=y+Math.imul(O,re)|0;var Q=(P+(v=v+Math.imul(W,fe)|0)|0)+((8191&(w=(w=w+Math.imul(W,we)|0)+Math.imul(K,fe)|0))<<13)|0;P=((y=y+Math.imul(K,we)|0)+(w>>>13)|0)+(Q>>>26)|0,Q&=67108863,v=Math.imul(ye,be),w=(w=Math.imul(ye,Te))+Math.imul(Ie,be)|0,y=Math.imul(Ie,Te),v=v+Math.imul(pe,Ee)|0,w=(w=w+Math.imul(pe,tt)|0)+Math.imul(ke,Ee)|0,y=y+Math.imul(ke,tt)|0,v=v+Math.imul(le,Be)|0,w=(w=w+Math.imul(le,at)|0)+Math.imul(ce,Be)|0,y=y+Math.imul(ce,at)|0,v=v+Math.imul(ee,We)|0,w=(w=w+Math.imul(ee,gt)|0)+Math.imul(ae,We)|0,y=y+Math.imul(ae,gt)|0,v=v+Math.imul(ie,Le)|0,w=(w=w+Math.imul(ie,nt)|0)+Math.imul(Y,Le)|0,y=y+Math.imul(Y,nt)|0,v=v+Math.imul(G,ze)|0,w=(w=w+Math.imul(G,lt)|0)+Math.imul(J,ze)|0,y=y+Math.imul(J,lt)|0,v=v+Math.imul(U,Ke)|0,w=(w=w+Math.imul(U,re)|0)+Math.imul(X,Ke)|0,y=y+Math.imul(X,re)|0,v=v+Math.imul(q,fe)|0,w=(w=w+Math.imul(q,we)|0)+Math.imul(O,fe)|0,y=y+Math.imul(O,we)|0;var ue=(P+(v=v+Math.imul(W,xe)|0)|0)+((8191&(w=(w=w+Math.imul(W,$e)|0)+Math.imul(K,xe)|0))<<13)|0;P=((y=y+Math.imul(K,$e)|0)+(w>>>13)|0)+(ue>>>26)|0,ue&=67108863,v=Math.imul(Ne,be),w=(w=Math.imul(Ne,Te))+Math.imul(je,be)|0,y=Math.imul(je,Te),v=v+Math.imul(ye,Ee)|0,w=(w=w+Math.imul(ye,tt)|0)+Math.imul(Ie,Ee)|0,y=y+Math.imul(Ie,tt)|0,v=v+Math.imul(pe,Be)|0,w=(w=w+Math.imul(pe,at)|0)+Math.imul(ke,Be)|0,y=y+Math.imul(ke,at)|0,v=v+Math.imul(le,We)|0,w=(w=w+Math.imul(le,gt)|0)+Math.imul(ce,We)|0,y=y+Math.imul(ce,gt)|0,v=v+Math.imul(ee,Le)|0,w=(w=w+Math.imul(ee,nt)|0)+Math.imul(ae,Le)|0,y=y+Math.imul(ae,nt)|0,v=v+Math.imul(ie,ze)|0,w=(w=w+Math.imul(ie,lt)|0)+Math.imul(Y,ze)|0,y=y+Math.imul(Y,lt)|0,v=v+Math.imul(G,Ke)|0,w=(w=w+Math.imul(G,re)|0)+Math.imul(J,Ke)|0,y=y+Math.imul(J,re)|0,v=v+Math.imul(U,fe)|0,w=(w=w+Math.imul(U,we)|0)+Math.imul(X,fe)|0,y=y+Math.imul(X,we)|0,v=v+Math.imul(q,xe)|0,w=(w=w+Math.imul(q,$e)|0)+Math.imul(O,xe)|0,y=y+Math.imul(O,$e)|0;var he=(P+(v=v+Math.imul(W,Pe)|0)|0)+((8191&(w=(w=w+Math.imul(W,Xe)|0)+Math.imul(K,Pe)|0))<<13)|0;P=((y=y+Math.imul(K,Xe)|0)+(w>>>13)|0)+(he>>>26)|0,he&=67108863,v=Math.imul(Ne,Ee),w=(w=Math.imul(Ne,tt))+Math.imul(je,Ee)|0,y=Math.imul(je,tt),v=v+Math.imul(ye,Be)|0,w=(w=w+Math.imul(ye,at)|0)+Math.imul(Ie,Be)|0,y=y+Math.imul(Ie,at)|0,v=v+Math.imul(pe,We)|0,w=(w=w+Math.imul(pe,gt)|0)+Math.imul(ke,We)|0,y=y+Math.imul(ke,gt)|0,v=v+Math.imul(le,Le)|0,w=(w=w+Math.imul(le,nt)|0)+Math.imul(ce,Le)|0,y=y+Math.imul(ce,nt)|0,v=v+Math.imul(ee,ze)|0,w=(w=w+Math.imul(ee,lt)|0)+Math.imul(ae,ze)|0,y=y+Math.imul(ae,lt)|0,v=v+Math.imul(ie,Ke)|0,w=(w=w+Math.imul(ie,re)|0)+Math.imul(Y,Ke)|0,y=y+Math.imul(Y,re)|0,v=v+Math.imul(G,fe)|0,w=(w=w+Math.imul(G,we)|0)+Math.imul(J,fe)|0,y=y+Math.imul(J,we)|0,v=v+Math.imul(U,xe)|0,w=(w=w+Math.imul(U,$e)|0)+Math.imul(X,xe)|0,y=y+Math.imul(X,$e)|0;var me=(P+(v=v+Math.imul(q,Pe)|0)|0)+((8191&(w=(w=w+Math.imul(q,Xe)|0)+Math.imul(O,Pe)|0))<<13)|0;P=((y=y+Math.imul(O,Xe)|0)+(w>>>13)|0)+(me>>>26)|0,me&=67108863,v=Math.imul(Ne,Be),w=(w=Math.imul(Ne,at))+Math.imul(je,Be)|0,y=Math.imul(je,at),v=v+Math.imul(ye,We)|0,w=(w=w+Math.imul(ye,gt)|0)+Math.imul(Ie,We)|0,y=y+Math.imul(Ie,gt)|0,v=v+Math.imul(pe,Le)|0,w=(w=w+Math.imul(pe,nt)|0)+Math.imul(ke,Le)|0,y=y+Math.imul(ke,nt)|0,v=v+Math.imul(le,ze)|0,w=(w=w+Math.imul(le,lt)|0)+Math.imul(ce,ze)|0,y=y+Math.imul(ce,lt)|0,v=v+Math.imul(ee,Ke)|0,w=(w=w+Math.imul(ee,re)|0)+Math.imul(ae,Ke)|0,y=y+Math.imul(ae,re)|0,v=v+Math.imul(ie,fe)|0,w=(w=w+Math.imul(ie,we)|0)+Math.imul(Y,fe)|0,y=y+Math.imul(Y,we)|0,v=v+Math.imul(G,xe)|0,w=(w=w+Math.imul(G,$e)|0)+Math.imul(J,xe)|0,y=y+Math.imul(J,$e)|0;var Ae=(P+(v=v+Math.imul(U,Pe)|0)|0)+((8191&(w=(w=w+Math.imul(U,Xe)|0)+Math.imul(X,Pe)|0))<<13)|0;P=((y=y+Math.imul(X,Xe)|0)+(w>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,v=Math.imul(Ne,We),w=(w=Math.imul(Ne,gt))+Math.imul(je,We)|0,y=Math.imul(je,gt),v=v+Math.imul(ye,Le)|0,w=(w=w+Math.imul(ye,nt)|0)+Math.imul(Ie,Le)|0,y=y+Math.imul(Ie,nt)|0,v=v+Math.imul(pe,ze)|0,w=(w=w+Math.imul(pe,lt)|0)+Math.imul(ke,ze)|0,y=y+Math.imul(ke,lt)|0,v=v+Math.imul(le,Ke)|0,w=(w=w+Math.imul(le,re)|0)+Math.imul(ce,Ke)|0,y=y+Math.imul(ce,re)|0,v=v+Math.imul(ee,fe)|0,w=(w=w+Math.imul(ee,we)|0)+Math.imul(ae,fe)|0,y=y+Math.imul(ae,we)|0,v=v+Math.imul(ie,xe)|0,w=(w=w+Math.imul(ie,$e)|0)+Math.imul(Y,xe)|0,y=y+Math.imul(Y,$e)|0;var ve=(P+(v=v+Math.imul(G,Pe)|0)|0)+((8191&(w=(w=w+Math.imul(G,Xe)|0)+Math.imul(J,Pe)|0))<<13)|0;P=((y=y+Math.imul(J,Xe)|0)+(w>>>13)|0)+(ve>>>26)|0,ve&=67108863,v=Math.imul(Ne,Le),w=(w=Math.imul(Ne,nt))+Math.imul(je,Le)|0,y=Math.imul(je,nt),v=v+Math.imul(ye,ze)|0,w=(w=w+Math.imul(ye,lt)|0)+Math.imul(Ie,ze)|0,y=y+Math.imul(Ie,lt)|0,v=v+Math.imul(pe,Ke)|0,w=(w=w+Math.imul(pe,re)|0)+Math.imul(ke,Ke)|0,y=y+Math.imul(ke,re)|0,v=v+Math.imul(le,fe)|0,w=(w=w+Math.imul(le,we)|0)+Math.imul(ce,fe)|0,y=y+Math.imul(ce,we)|0,v=v+Math.imul(ee,xe)|0,w=(w=w+Math.imul(ee,$e)|0)+Math.imul(ae,xe)|0,y=y+Math.imul(ae,$e)|0;var _e=(P+(v=v+Math.imul(ie,Pe)|0)|0)+((8191&(w=(w=w+Math.imul(ie,Xe)|0)+Math.imul(Y,Pe)|0))<<13)|0;P=((y=y+Math.imul(Y,Xe)|0)+(w>>>13)|0)+(_e>>>26)|0,_e&=67108863,v=Math.imul(Ne,ze),w=(w=Math.imul(Ne,lt))+Math.imul(je,ze)|0,y=Math.imul(je,lt),v=v+Math.imul(ye,Ke)|0,w=(w=w+Math.imul(ye,re)|0)+Math.imul(Ie,Ke)|0,y=y+Math.imul(Ie,re)|0,v=v+Math.imul(pe,fe)|0,w=(w=w+Math.imul(pe,we)|0)+Math.imul(ke,fe)|0,y=y+Math.imul(ke,we)|0,v=v+Math.imul(le,xe)|0,w=(w=w+Math.imul(le,$e)|0)+Math.imul(ce,xe)|0,y=y+Math.imul(ce,$e)|0;var rt=(P+(v=v+Math.imul(ee,Pe)|0)|0)+((8191&(w=(w=w+Math.imul(ee,Xe)|0)+Math.imul(ae,Pe)|0))<<13)|0;P=((y=y+Math.imul(ae,Xe)|0)+(w>>>13)|0)+(rt>>>26)|0,rt&=67108863,v=Math.imul(Ne,Ke),w=(w=Math.imul(Ne,re))+Math.imul(je,Ke)|0,y=Math.imul(je,re),v=v+Math.imul(ye,fe)|0,w=(w=w+Math.imul(ye,we)|0)+Math.imul(Ie,fe)|0,y=y+Math.imul(Ie,we)|0,v=v+Math.imul(pe,xe)|0,w=(w=w+Math.imul(pe,$e)|0)+Math.imul(ke,xe)|0,y=y+Math.imul(ke,$e)|0;var Ge=(P+(v=v+Math.imul(le,Pe)|0)|0)+((8191&(w=(w=w+Math.imul(le,Xe)|0)+Math.imul(ce,Pe)|0))<<13)|0;P=((y=y+Math.imul(ce,Xe)|0)+(w>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,v=Math.imul(Ne,fe),w=(w=Math.imul(Ne,we))+Math.imul(je,fe)|0,y=Math.imul(je,we),v=v+Math.imul(ye,xe)|0,w=(w=w+Math.imul(ye,$e)|0)+Math.imul(Ie,xe)|0,y=y+Math.imul(Ie,$e)|0;var Je=(P+(v=v+Math.imul(pe,Pe)|0)|0)+((8191&(w=(w=w+Math.imul(pe,Xe)|0)+Math.imul(ke,Pe)|0))<<13)|0;P=((y=y+Math.imul(ke,Xe)|0)+(w>>>13)|0)+(Je>>>26)|0,Je&=67108863,v=Math.imul(Ne,xe),w=(w=Math.imul(Ne,$e))+Math.imul(je,xe)|0,y=Math.imul(je,$e);var Ve=(P+(v=v+Math.imul(ye,Pe)|0)|0)+((8191&(w=(w=w+Math.imul(ye,Xe)|0)+Math.imul(Ie,Pe)|0))<<13)|0;P=((y=y+Math.imul(Ie,Xe)|0)+(w>>>13)|0)+(Ve>>>26)|0,Ve&=67108863;var ct=(P+(v=Math.imul(Ne,Pe))|0)+((8191&(w=(w=Math.imul(Ne,Xe))+Math.imul(je,Pe)|0))<<13)|0;return P=((y=Math.imul(je,Xe))+(w>>>13)|0)+(ct>>>26)|0,ct&=67108863,I[0]=Ue,I[1]=Ze,I[2]=wt,I[3]=bt,I[4]=Ct,I[5]=Tt,I[6]=Pt,I[7]=Q,I[8]=ue,I[9]=he,I[10]=me,I[11]=Ae,I[12]=ve,I[13]=_e,I[14]=rt,I[15]=Ge,I[16]=Je,I[17]=Ve,I[18]=ct,P!==0&&(I[19]=P,S.length++),S};function x(T,M,S){return new k().mulp(T,M,S)}function k(T,M){this.x=T,this.y=M}Math.imul||(m=b),t.prototype.mulTo=function(T,M){var S=this.length+T.length;return this.length===10&&T.length===10?m(this,T,M):S<63?b(this,T,M):S<1024?function(v,w,y){y.negative=w.negative^v.negative,y.length=v.length+w.length;for(var _=0,C=0,I=0;I<y.length-1;I++){var P=C;C=0;for(var H=67108863&_,W=Math.min(I,w.length-1),K=Math.max(0,I-v.length+1);K<=W;K++){var B=I-K,q=(0|v.words[B])*(0|w.words[K]),O=67108863&q;H=67108863&(O=O+H|0),C+=(P=(P=P+(q/67108864|0)|0)+(O>>>26)|0)>>>26,P&=67108863}y.words[I]=H,_=P,P=C}return _!==0?y.words[I]=_:y.length--,y.strip()}(this,T,M):x(this,T,M)},k.prototype.makeRBT=function(T){for(var M=new Array(T),S=t.prototype._countBits(T)-1,v=0;v<T;v++)M[v]=this.revBin(v,S,T);return M},k.prototype.revBin=function(T,M,S){if(T===0||T===S-1)return T;for(var v=0,w=0;w<M;w++)v|=(1&T)<<M-w-1,T>>=1;return v},k.prototype.permute=function(T,M,S,v,w,y){for(var _=0;_<y;_++)v[_]=M[T[_]],w[_]=S[T[_]]},k.prototype.transform=function(T,M,S,v,w,y){this.permute(y,T,M,S,v,w);for(var _=1;_<w;_<<=1)for(var C=_<<1,I=Math.cos(2*Math.PI/C),P=Math.sin(2*Math.PI/C),H=0;H<w;H+=C)for(var W=I,K=P,B=0;B<_;B++){var q=S[H+B],O=v[H+B],N=S[H+B+_],U=v[H+B+_],X=W*N-K*U;U=W*U+K*N,N=X,S[H+B]=q+N,v[H+B]=O+U,S[H+B+_]=q-N,v[H+B+_]=O-U,B!==C&&(X=I*W-P*K,K=I*K+P*W,W=X)}},k.prototype.guessLen13b=function(T,M){var S=1|Math.max(M,T),v=1&S,w=0;for(S=S/2|0;S;S>>>=1)w++;return 1<<w+1+v},k.prototype.conjugate=function(T,M,S){if(!(S<=1))for(var v=0;v<S/2;v++){var w=T[v];T[v]=T[S-v-1],T[S-v-1]=w,w=M[v],M[v]=-M[S-v-1],M[S-v-1]=-w}},k.prototype.normalize13b=function(T,M){for(var S=0,v=0;v<M/2;v++){var w=8192*Math.round(T[2*v+1]/M)+Math.round(T[2*v]/M)+S;T[v]=67108863&w,S=w<67108864?0:w/67108864|0}return T},k.prototype.convert13b=function(T,M,S,v){for(var w=0,y=0;y<M;y++)w+=0|T[y],S[2*y]=8191&w,w>>>=13,S[2*y+1]=8191&w,w>>>=13;for(y=2*M;y<v;++y)S[y]=0;o(w===0),o((-8192&w)==0)},k.prototype.stub=function(T){for(var M=new Array(T),S=0;S<T;S++)M[S]=0;return M},k.prototype.mulp=function(T,M,S){var v=2*this.guessLen13b(T.length,M.length),w=this.makeRBT(v),y=this.stub(v),_=new Array(v),C=new Array(v),I=new Array(v),P=new Array(v),H=new Array(v),W=new Array(v),K=S.words;K.length=v,this.convert13b(T.words,T.length,_,v),this.convert13b(M.words,M.length,P,v),this.transform(_,y,C,I,v,w),this.transform(P,y,H,W,v,w);for(var B=0;B<v;B++){var q=C[B]*H[B]-I[B]*W[B];I[B]=C[B]*W[B]+I[B]*H[B],C[B]=q}return this.conjugate(C,I,v),this.transform(C,I,K,y,v,w),this.conjugate(K,y,v),this.normalize13b(K,v),S.negative=T.negative^M.negative,S.length=T.length+M.length,S.strip()},t.prototype.mul=function(T){var M=new t(null);return M.words=new Array(this.length+T.length),this.mulTo(T,M)},t.prototype.mulf=function(T){var M=new t(null);return M.words=new Array(this.length+T.length),x(this,T,M)},t.prototype.imul=function(T){return this.clone().mulTo(T,this)},t.prototype.imuln=function(T){o(typeof T=="number"),o(T<67108864);for(var M=0,S=0;S<this.length;S++){var v=(0|this.words[S])*T,w=(67108863&v)+(67108863&M);M>>=26,M+=v/67108864|0,M+=w>>>26,this.words[S]=67108863&w}return M!==0&&(this.words[S]=M,this.length++),this},t.prototype.muln=function(T){return this.clone().imuln(T)},t.prototype.sqr=function(){return this.mul(this)},t.prototype.isqr=function(){return this.imul(this.clone())},t.prototype.pow=function(T){var M=function(y){for(var _=new Array(y.bitLength()),C=0;C<_.length;C++){var I=C/26|0,P=C%26;_[C]=(y.words[I]&1<<P)>>>P}return _}(T);if(M.length===0)return new t(1);for(var S=this,v=0;v<M.length&&M[v]===0;v++,S=S.sqr());if(++v<M.length)for(var w=S.sqr();v<M.length;v++,w=w.sqr())M[v]!==0&&(S=S.mul(w));return S},t.prototype.iushln=function(T){o(typeof T=="number"&&T>=0);var M,S=T%26,v=(T-S)/26,w=67108863>>>26-S<<26-S;if(S!==0){var y=0;for(M=0;M<this.length;M++){var _=this.words[M]&w,C=(0|this.words[M])-_<<S;this.words[M]=C|y,y=_>>>26-S}y&&(this.words[M]=y,this.length++)}if(v!==0){for(M=this.length-1;M>=0;M--)this.words[M+v]=this.words[M];for(M=0;M<v;M++)this.words[M]=0;this.length+=v}return this.strip()},t.prototype.ishln=function(T){return o(this.negative===0),this.iushln(T)},t.prototype.iushrn=function(T,M,S){var v;o(typeof T=="number"&&T>=0),v=M?(M-M%26)/26:0;var w=T%26,y=Math.min((T-w)/26,this.length),_=67108863^67108863>>>w<<w,C=S;if(v-=y,v=Math.max(0,v),C){for(var I=0;I<y;I++)C.words[I]=this.words[I];C.length=y}if(y!==0)if(this.length>y)for(this.length-=y,I=0;I<this.length;I++)this.words[I]=this.words[I+y];else this.words[0]=0,this.length=1;var P=0;for(I=this.length-1;I>=0&&(P!==0||I>=v);I--){var H=0|this.words[I];this.words[I]=P<<26-w|H>>>w,P=H&_}return C&&P!==0&&(C.words[C.length++]=P),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},t.prototype.ishrn=function(T,M,S){return o(this.negative===0),this.iushrn(T,M,S)},t.prototype.shln=function(T){return this.clone().ishln(T)},t.prototype.ushln=function(T){return this.clone().iushln(T)},t.prototype.shrn=function(T){return this.clone().ishrn(T)},t.prototype.ushrn=function(T){return this.clone().iushrn(T)},t.prototype.testn=function(T){o(typeof T=="number"&&T>=0);var M=T%26,S=(T-M)/26,v=1<<M;return!(this.length<=S)&&!!(this.words[S]&v)},t.prototype.imaskn=function(T){o(typeof T=="number"&&T>=0);var M=T%26,S=(T-M)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=S)return this;if(M!==0&&S++,this.length=Math.min(S,this.length),M!==0){var v=67108863^67108863>>>M<<M;this.words[this.length-1]&=v}return this.strip()},t.prototype.maskn=function(T){return this.clone().imaskn(T)},t.prototype.iaddn=function(T){return o(typeof T=="number"),o(T<67108864),T<0?this.isubn(-T):this.negative!==0?this.length===1&&(0|this.words[0])<T?(this.words[0]=T-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(T),this.negative=1,this):this._iaddn(T)},t.prototype._iaddn=function(T){this.words[0]+=T;for(var M=0;M<this.length&&this.words[M]>=67108864;M++)this.words[M]-=67108864,M===this.length-1?this.words[M+1]=1:this.words[M+1]++;return this.length=Math.max(this.length,M+1),this},t.prototype.isubn=function(T){if(o(typeof T=="number"),o(T<67108864),T<0)return this.iaddn(-T);if(this.negative!==0)return this.negative=0,this.iaddn(T),this.negative=1,this;if(this.words[0]-=T,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var M=0;M<this.length&&this.words[M]<0;M++)this.words[M]+=67108864,this.words[M+1]-=1;return this.strip()},t.prototype.addn=function(T){return this.clone().iaddn(T)},t.prototype.subn=function(T){return this.clone().isubn(T)},t.prototype.iabs=function(){return this.negative=0,this},t.prototype.abs=function(){return this.clone().iabs()},t.prototype._ishlnsubmul=function(T,M,S){var v,w,y=T.length+S;this._expand(y);var _=0;for(v=0;v<T.length;v++){w=(0|this.words[v+S])+_;var C=(0|T.words[v])*M;_=((w-=67108863&C)>>26)-(C/67108864|0),this.words[v+S]=67108863&w}for(;v<this.length-S;v++)_=(w=(0|this.words[v+S])+_)>>26,this.words[v+S]=67108863&w;if(_===0)return this.strip();for(o(_===-1),_=0,v=0;v<this.length;v++)_=(w=-(0|this.words[v])+_)>>26,this.words[v]=67108863&w;return this.negative=1,this.strip()},t.prototype._wordDiv=function(T,M){var S=(this.length,T.length),v=this.clone(),w=T,y=0|w.words[w.length-1];(S=26-this._countBits(y))!==0&&(w=w.ushln(S),v.iushln(S),y=0|w.words[w.length-1]);var _,C=v.length-w.length;if(M!=="mod"){(_=new t(null)).length=C+1,_.words=new Array(_.length);for(var I=0;I<_.length;I++)_.words[I]=0}var P=v.clone()._ishlnsubmul(w,1,C);P.negative===0&&(v=P,_&&(_.words[C]=1));for(var H=C-1;H>=0;H--){var W=67108864*(0|v.words[w.length+H])+(0|v.words[w.length+H-1]);for(W=Math.min(W/y|0,67108863),v._ishlnsubmul(w,W,H);v.negative!==0;)W--,v.negative=0,v._ishlnsubmul(w,1,H),v.isZero()||(v.negative^=1);_&&(_.words[H]=W)}return _&&_.strip(),v.strip(),M!=="div"&&S!==0&&v.iushrn(S),{div:_||null,mod:v}},t.prototype.divmod=function(T,M,S){return o(!T.isZero()),this.isZero()?{div:new t(0),mod:new t(0)}:this.negative!==0&&T.negative===0?(y=this.neg().divmod(T,M),M!=="mod"&&(v=y.div.neg()),M!=="div"&&(w=y.mod.neg(),S&&w.negative!==0&&w.iadd(T)),{div:v,mod:w}):this.negative===0&&T.negative!==0?(y=this.divmod(T.neg(),M),M!=="mod"&&(v=y.div.neg()),{div:v,mod:y.mod}):this.negative&T.negative?(y=this.neg().divmod(T.neg(),M),M!=="div"&&(w=y.mod.neg(),S&&w.negative!==0&&w.isub(T)),{div:y.div,mod:w}):T.length>this.length||this.cmp(T)<0?{div:new t(0),mod:this}:T.length===1?M==="div"?{div:this.divn(T.words[0]),mod:null}:M==="mod"?{div:null,mod:new t(this.modn(T.words[0]))}:{div:this.divn(T.words[0]),mod:new t(this.modn(T.words[0]))}:this._wordDiv(T,M);var v,w,y},t.prototype.div=function(T){return this.divmod(T,"div",!1).div},t.prototype.mod=function(T){return this.divmod(T,"mod",!1).mod},t.prototype.umod=function(T){return this.divmod(T,"mod",!0).mod},t.prototype.divRound=function(T){var M=this.divmod(T);if(M.mod.isZero())return M.div;var S=M.div.negative!==0?M.mod.isub(T):M.mod,v=T.ushrn(1),w=T.andln(1),y=S.cmp(v);return y<0||w===1&&y===0?M.div:M.div.negative!==0?M.div.isubn(1):M.div.iaddn(1)},t.prototype.modn=function(T){o(T<=67108863);for(var M=(1<<26)%T,S=0,v=this.length-1;v>=0;v--)S=(M*S+(0|this.words[v]))%T;return S},t.prototype.idivn=function(T){o(T<=67108863);for(var M=0,S=this.length-1;S>=0;S--){var v=(0|this.words[S])+67108864*M;this.words[S]=v/T|0,M=v%T}return this.strip()},t.prototype.divn=function(T){return this.clone().idivn(T)},t.prototype.egcd=function(T){o(T.negative===0),o(!T.isZero());var M=this,S=T.clone();M=M.negative!==0?M.umod(T):M.clone();for(var v=new t(1),w=new t(0),y=new t(0),_=new t(1),C=0;M.isEven()&&S.isEven();)M.iushrn(1),S.iushrn(1),++C;for(var I=S.clone(),P=M.clone();!M.isZero();){for(var H=0,W=1;!(M.words[0]&W)&&H<26;++H,W<<=1);if(H>0)for(M.iushrn(H);H-- >0;)(v.isOdd()||w.isOdd())&&(v.iadd(I),w.isub(P)),v.iushrn(1),w.iushrn(1);for(var K=0,B=1;!(S.words[0]&B)&&K<26;++K,B<<=1);if(K>0)for(S.iushrn(K);K-- >0;)(y.isOdd()||_.isOdd())&&(y.iadd(I),_.isub(P)),y.iushrn(1),_.iushrn(1);M.cmp(S)>=0?(M.isub(S),v.isub(y),w.isub(_)):(S.isub(M),y.isub(v),_.isub(w))}return{a:y,b:_,gcd:S.iushln(C)}},t.prototype._invmp=function(T){o(T.negative===0),o(!T.isZero());var M=this,S=T.clone();M=M.negative!==0?M.umod(T):M.clone();for(var v,w=new t(1),y=new t(0),_=S.clone();M.cmpn(1)>0&&S.cmpn(1)>0;){for(var C=0,I=1;!(M.words[0]&I)&&C<26;++C,I<<=1);if(C>0)for(M.iushrn(C);C-- >0;)w.isOdd()&&w.iadd(_),w.iushrn(1);for(var P=0,H=1;!(S.words[0]&H)&&P<26;++P,H<<=1);if(P>0)for(S.iushrn(P);P-- >0;)y.isOdd()&&y.iadd(_),y.iushrn(1);M.cmp(S)>=0?(M.isub(S),w.isub(y)):(S.isub(M),y.isub(w))}return(v=M.cmpn(1)===0?w:y).cmpn(0)<0&&v.iadd(T),v},t.prototype.gcd=function(T){if(this.isZero())return T.abs();if(T.isZero())return this.abs();var M=this.clone(),S=T.clone();M.negative=0,S.negative=0;for(var v=0;M.isEven()&&S.isEven();v++)M.iushrn(1),S.iushrn(1);for(;;){for(;M.isEven();)M.iushrn(1);for(;S.isEven();)S.iushrn(1);var w=M.cmp(S);if(w<0){var y=M;M=S,S=y}else if(w===0||S.cmpn(1)===0)break;M.isub(S)}return S.iushln(v)},t.prototype.invm=function(T){return this.egcd(T).a.umod(T)},t.prototype.isEven=function(){return(1&this.words[0])==0},t.prototype.isOdd=function(){return(1&this.words[0])==1},t.prototype.andln=function(T){return this.words[0]&T},t.prototype.bincn=function(T){o(typeof T=="number");var M=T%26,S=(T-M)/26,v=1<<M;if(this.length<=S)return this._expand(S+1),this.words[S]|=v,this;for(var w=v,y=S;w!==0&&y<this.length;y++){var _=0|this.words[y];w=(_+=w)>>>26,_&=67108863,this.words[y]=_}return w!==0&&(this.words[y]=w,this.length++),this},t.prototype.isZero=function(){return this.length===1&&this.words[0]===0},t.prototype.cmpn=function(T){var M,S=T<0;if(this.negative!==0&&!S)return-1;if(this.negative===0&&S)return 1;if(this.strip(),this.length>1)M=1;else{S&&(T=-T),o(T<=67108863,"Number is too big");var v=0|this.words[0];M=v===T?0:v<T?-1:1}return this.negative!==0?0|-M:M},t.prototype.cmp=function(T){if(this.negative!==0&&T.negative===0)return-1;if(this.negative===0&&T.negative!==0)return 1;var M=this.ucmp(T);return this.negative!==0?0|-M:M},t.prototype.ucmp=function(T){if(this.length>T.length)return 1;if(this.length<T.length)return-1;for(var M=0,S=this.length-1;S>=0;S--){var v=0|this.words[S],w=0|T.words[S];if(v!==w){v<w?M=-1:v>w&&(M=1);break}}return M},t.prototype.gtn=function(T){return this.cmpn(T)===1},t.prototype.gt=function(T){return this.cmp(T)===1},t.prototype.gten=function(T){return this.cmpn(T)>=0},t.prototype.gte=function(T){return this.cmp(T)>=0},t.prototype.ltn=function(T){return this.cmpn(T)===-1},t.prototype.lt=function(T){return this.cmp(T)===-1},t.prototype.lten=function(T){return this.cmpn(T)<=0},t.prototype.lte=function(T){return this.cmp(T)<=0},t.prototype.eqn=function(T){return this.cmpn(T)===0},t.prototype.eq=function(T){return this.cmp(T)===0},t.red=function(T){return new $(T)},t.prototype.toRed=function(T){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),T.convertTo(this)._forceRed(T)},t.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},t.prototype._forceRed=function(T){return this.red=T,this},t.prototype.forceRed=function(T){return o(!this.red,"Already a number in reduction context"),this._forceRed(T)},t.prototype.redAdd=function(T){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,T)},t.prototype.redIAdd=function(T){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,T)},t.prototype.redSub=function(T){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,T)},t.prototype.redISub=function(T){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,T)},t.prototype.redShl=function(T){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,T)},t.prototype.redMul=function(T){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,T),this.red.mul(this,T)},t.prototype.redIMul=function(T){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,T),this.red.imul(this,T)},t.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},t.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},t.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},t.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},t.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},t.prototype.redPow=function(T){return o(this.red&&!T.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,T)};var R={k256:null,p224:null,p192:null,p25519:null};function F(T,M){this.name=T,this.p=new t(M,16),this.n=this.p.bitLength(),this.k=new t(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function L(){F.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function j(){F.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function D(){F.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function z(){F.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function $(T){if(typeof T=="string"){var M=t._prime(T);this.m=M.p,this.prime=M}else o(T.gtn(1),"modulus must be greater than 1"),this.m=T,this.prime=null}function V(T){$.call(this,T),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new t(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}F.prototype._tmp=function(){var T=new t(null);return T.words=new Array(Math.ceil(this.n/13)),T},F.prototype.ireduce=function(T){var M,S=T;do this.split(S,this.tmp),M=(S=(S=this.imulK(S)).iadd(this.tmp)).bitLength();while(M>this.n);var v=M<this.n?-1:S.ucmp(this.p);return v===0?(S.words[0]=0,S.length=1):v>0?S.isub(this.p):S.strip!==void 0?S.strip():S._strip(),S},F.prototype.split=function(T,M){T.iushrn(this.n,0,M)},F.prototype.imulK=function(T){return T.imul(this.k)},r(L,F),L.prototype.split=function(T,M){for(var S=Math.min(T.length,9),v=0;v<S;v++)M.words[v]=T.words[v];if(M.length=S,T.length<=9)return T.words[0]=0,void(T.length=1);var w=T.words[9];for(M.words[M.length++]=4194303&w,v=10;v<T.length;v++){var y=0|T.words[v];T.words[v-10]=(4194303&y)<<4|w>>>22,w=y}w>>>=22,T.words[v-10]=w,w===0&&T.length>10?T.length-=10:T.length-=9},L.prototype.imulK=function(T){T.words[T.length]=0,T.words[T.length+1]=0,T.length+=2;for(var M=0,S=0;S<T.length;S++){var v=0|T.words[S];M+=977*v,T.words[S]=67108863&M,M=64*v+(M/67108864|0)}return T.words[T.length-1]===0&&(T.length--,T.words[T.length-1]===0&&T.length--),T},r(j,F),r(D,F),r(z,F),z.prototype.imulK=function(T){for(var M=0,S=0;S<T.length;S++){var v=19*(0|T.words[S])+M,w=67108863&v;v>>>=26,T.words[S]=w,M=v}return M!==0&&(T.words[T.length++]=M),T},t._prime=function(T){if(R[T])return R[T];var M;if(T==="k256")M=new L;else if(T==="p224")M=new j;else if(T==="p192")M=new D;else{if(T!=="p25519")throw new Error("Unknown prime "+T);M=new z}return R[T]=M,M},$.prototype._verify1=function(T){o(T.negative===0,"red works only with positives"),o(T.red,"red works only with red numbers")},$.prototype._verify2=function(T,M){o((T.negative|M.negative)==0,"red works only with positives"),o(T.red&&T.red===M.red,"red works only with red numbers")},$.prototype.imod=function(T){return this.prime?this.prime.ireduce(T)._forceRed(this):T.umod(this.m)._forceRed(this)},$.prototype.neg=function(T){return T.isZero()?T.clone():this.m.sub(T)._forceRed(this)},$.prototype.add=function(T,M){this._verify2(T,M);var S=T.add(M);return S.cmp(this.m)>=0&&S.isub(this.m),S._forceRed(this)},$.prototype.iadd=function(T,M){this._verify2(T,M);var S=T.iadd(M);return S.cmp(this.m)>=0&&S.isub(this.m),S},$.prototype.sub=function(T,M){this._verify2(T,M);var S=T.sub(M);return S.cmpn(0)<0&&S.iadd(this.m),S._forceRed(this)},$.prototype.isub=function(T,M){this._verify2(T,M);var S=T.isub(M);return S.cmpn(0)<0&&S.iadd(this.m),S},$.prototype.shl=function(T,M){return this._verify1(T),this.imod(T.ushln(M))},$.prototype.imul=function(T,M){return this._verify2(T,M),this.imod(T.imul(M))},$.prototype.mul=function(T,M){return this._verify2(T,M),this.imod(T.mul(M))},$.prototype.isqr=function(T){return this.imul(T,T.clone())},$.prototype.sqr=function(T){return this.mul(T,T)},$.prototype.sqrt=function(T){if(T.isZero())return T.clone();var M=this.m.andln(3);if(o(M%2==1),M===3){var S=this.m.add(new t(1)).iushrn(2);return this.pow(T,S)}for(var v=this.m.subn(1),w=0;!v.isZero()&&v.andln(1)===0;)w++,v.iushrn(1);o(!v.isZero());var y=new t(1).toRed(this),_=y.redNeg(),C=this.m.subn(1).iushrn(1),I=this.m.bitLength();for(I=new t(2*I*I).toRed(this);this.pow(I,C).cmp(_)!==0;)I.redIAdd(_);for(var P=this.pow(I,v),H=this.pow(T,v.addn(1).iushrn(1)),W=this.pow(T,v),K=w;W.cmp(y)!==0;){for(var B=W,q=0;B.cmp(y)!==0;q++)B=B.redSqr();o(q<K);var O=this.pow(P,new t(1).iushln(K-q-1));H=H.redMul(O),P=O.redSqr(),W=W.redMul(P),K=q}return H},$.prototype.invm=function(T){var M=T._invmp(this.m);return M.negative!==0?(M.negative=0,this.imod(M).redNeg()):this.imod(M)},$.prototype.pow=function(T,M){if(M.isZero())return new t(1).toRed(this);if(M.cmpn(1)===0)return T.clone();var S=new Array(16);S[0]=new t(1).toRed(this),S[1]=T;for(var v=2;v<S.length;v++)S[v]=this.mul(S[v-1],T);var w=S[0],y=0,_=0,C=M.bitLength()%26;for(C===0&&(C=26),v=M.length-1;v>=0;v--){for(var I=M.words[v],P=C-1;P>=0;P--){var H=I>>P&1;w!==S[0]&&(w=this.sqr(w)),H!==0||y!==0?(y<<=1,y|=H,(++_===4||v===0&&P===0)&&(w=this.mul(w,S[y]),_=0,y=0)):_=0}C=26}return w},$.prototype.convertTo=function(T){var M=T.umod(this.m);return M===T?M.clone():M},$.prototype.convertFrom=function(T){var M=T.clone();return M.red=null,M},t.mont=function(T){return new V(T)},r(V,$),V.prototype.convertTo=function(T){return this.imod(T.ushln(this.shift))},V.prototype.convertFrom=function(T){var M=this.imod(T.mul(this.rinv));return M.red=null,M},V.prototype.imul=function(T,M){if(T.isZero()||M.isZero())return T.words[0]=0,T.length=1,T;var S=T.imul(M),v=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=S.isub(v).iushrn(this.shift),y=w;return w.cmp(this.m)>=0?y=w.isub(this.m):w.cmpn(0)<0&&(y=w.iadd(this.m)),y._forceRed(this)},V.prototype.mul=function(T,M){if(T.isZero()||M.isZero())return new t(0)._forceRed(this);var S=T.mul(M),v=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=S.isub(v).iushrn(this.shift),y=w;return w.cmp(this.m)>=0?y=w.isub(this.m):w.cmpn(0)<0&&(y=w.iadd(this.m)),y._forceRed(this)},V.prototype.invm=function(T){return this.imod(T._invmp(this.m).mul(this.r2))._forceRed(this)}})(p===void 0||p)},{buffer:188}],185:[function(e,p,g){g.byteLength=function(a){var f=c(a),h=f[0],d=f[1];return 3*(h+d)/4-d},g.toByteArray=function(a){var f,h,d=c(a),b=d[0],m=d[1],x=new o(function(F,L,j){return 3*(L+j)/4-j}(0,b,m)),k=0,R=m>0?b-4:b;for(h=0;h<R;h+=4)f=i[a.charCodeAt(h)]<<18|i[a.charCodeAt(h+1)]<<12|i[a.charCodeAt(h+2)]<<6|i[a.charCodeAt(h+3)],x[k++]=f>>16&255,x[k++]=f>>8&255,x[k++]=255&f;return m===2&&(f=i[a.charCodeAt(h)]<<2|i[a.charCodeAt(h+1)]>>4,x[k++]=255&f),m===1&&(f=i[a.charCodeAt(h)]<<10|i[a.charCodeAt(h+1)]<<4|i[a.charCodeAt(h+2)]>>2,x[k++]=f>>8&255,x[k++]=255&f),x},g.fromByteArray=function(a){for(var f,h=a.length,d=h%3,b=[],m=0,x=h-d;m<x;m+=16383)b.push(s(a,m,m+16383>x?x:m+16383));return d===1?(f=a[h-1],b.push(u[f>>2]+u[f<<4&63]+"==")):d===2&&(f=(a[h-2]<<8)+a[h-1],b.push(u[f>>10]+u[f>>4&63]+u[f<<2&63]+"=")),b.join("")};for(var u=[],i=[],o=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=r.length;t<n;++t)u[t]=r[t],i[r.charCodeAt(t)]=t;function c(a){var f=a.length;if(f%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var h=a.indexOf("=");return h===-1&&(h=f),[h,h===f?0:4-h%4]}function s(a,f,h){for(var d,b,m=[],x=f;x<h;x+=3)d=(a[x]<<16&16711680)+(a[x+1]<<8&65280)+(255&a[x+2]),m.push(u[(b=d)>>18&63]+u[b>>12&63]+u[b>>6&63]+u[63&b]);return m.join("")}i[45]=62,i[95]=63},{}],186:[function(e,p,g){(function(u,i){function o(S,v){if(!S)throw new Error(v||"Assertion failed")}function r(S,v){S.super_=v;var w=function(){};w.prototype=v.prototype,S.prototype=new w,S.prototype.constructor=S}function t(S,v,w){if(t.isBN(S))return S;this.negative=0,this.words=null,this.length=0,this.red=null,S!==null&&(v!=="le"&&v!=="be"||(w=v,v=10),this._init(S||0,v||10,w||"be"))}var n;typeof u=="object"?u.exports=t:(void 0).BN=t,t.BN=t,t.wordSize=26;try{n=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:e("buffer").Buffer}catch{}function c(S,v){var w=S.charCodeAt(v);return w>=48&&w<=57?w-48:w>=65&&w<=70?w-55:w>=97&&w<=102?w-87:void o(!1,"Invalid character in "+S)}function s(S,v,w){var y=c(S,w);return w-1>=v&&(y|=c(S,w-1)<<4),y}function a(S,v,w,y){for(var _=0,C=0,I=Math.min(S.length,w),P=v;P<I;P++){var H=S.charCodeAt(P)-48;_*=y,C=H>=49?H-49+10:H>=17?H-17+10:H,o(H>=0&&C<y,"Invalid character"),_+=C}return _}function f(S,v){S.words=v.words,S.length=v.length,S.negative=v.negative,S.red=v.red}if(t.isBN=function(S){return S instanceof t||S!==null&&typeof S=="object"&&S.constructor.wordSize===t.wordSize&&Array.isArray(S.words)},t.max=function(S,v){return S.cmp(v)>0?S:v},t.min=function(S,v){return S.cmp(v)<0?S:v},t.prototype._init=function(S,v,w){if(typeof S=="number")return this._initNumber(S,v,w);if(typeof S=="object")return this._initArray(S,v,w);v==="hex"&&(v=16),o(v===(0|v)&&v>=2&&v<=36);var y=0;(S=S.toString().replace(/\s+/g,""))[0]==="-"&&(y++,this.negative=1),y<S.length&&(v===16?this._parseHex(S,y,w):(this._parseBase(S,v,y),w==="le"&&this._initArray(this.toArray(),v,w)))},t.prototype._initNumber=function(S,v,w){S<0&&(this.negative=1,S=-S),S<67108864?(this.words=[67108863&S],this.length=1):S<4503599627370496?(this.words=[67108863&S,S/67108864&67108863],this.length=2):(o(S<9007199254740992),this.words=[67108863&S,S/67108864&67108863,1],this.length=3),w==="le"&&this._initArray(this.toArray(),v,w)},t.prototype._initArray=function(S,v,w){if(o(typeof S.length=="number"),S.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(S.length/3),this.words=new Array(this.length);for(var y=0;y<this.length;y++)this.words[y]=0;var _,C,I=0;if(w==="be")for(y=S.length-1,_=0;y>=0;y-=3)C=S[y]|S[y-1]<<8|S[y-2]<<16,this.words[_]|=C<<I&67108863,this.words[_+1]=C>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if(w==="le")for(y=0,_=0;y<S.length;y+=3)C=S[y]|S[y+1]<<8|S[y+2]<<16,this.words[_]|=C<<I&67108863,this.words[_+1]=C>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this._strip()},t.prototype._parseHex=function(S,v,w){this.length=Math.ceil((S.length-v)/6),this.words=new Array(this.length);for(var y=0;y<this.length;y++)this.words[y]=0;var _,C=0,I=0;if(w==="be")for(y=S.length-1;y>=v;y-=2)_=s(S,v,y)<<C,this.words[I]|=67108863&_,C>=18?(C-=18,I+=1,this.words[I]|=_>>>26):C+=8;else for(y=(S.length-v)%2==0?v+1:v;y<S.length;y+=2)_=s(S,v,y)<<C,this.words[I]|=67108863&_,C>=18?(C-=18,I+=1,this.words[I]|=_>>>26):C+=8;this._strip()},t.prototype._parseBase=function(S,v,w){this.words=[0],this.length=1;for(var y=0,_=1;_<=67108863;_*=v)y++;y--,_=_/v|0;for(var C=S.length-w,I=C%y,P=Math.min(C,C-I)+w,H=0,W=w;W<P;W+=y)H=a(S,W,W+y,v),this.imuln(_),this.words[0]+H<67108864?this.words[0]+=H:this._iaddn(H);if(I!==0){var K=1;for(H=a(S,W,S.length,v),W=0;W<I;W++)K*=v;this.imuln(K),this.words[0]+H<67108864?this.words[0]+=H:this._iaddn(H)}this._strip()},t.prototype.copy=function(S){S.words=new Array(this.length);for(var v=0;v<this.length;v++)S.words[v]=this.words[v];S.length=this.length,S.negative=this.negative,S.red=this.red},t.prototype._move=function(S){f(S,this)},t.prototype.clone=function(){var S=new t(null);return this.copy(S),S},t.prototype._expand=function(S){for(;this.length<S;)this.words[this.length++]=0;return this},t.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},t.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{t.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch{t.prototype.inspect=h}else t.prototype.inspect=h;function h(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],b=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];t.prototype.toString=function(S,v){var w;if(v=0|v||1,(S=S||10)===16||S==="hex"){w="";for(var y=0,_=0,C=0;C<this.length;C++){var I=this.words[C],P=(16777215&(I<<y|_)).toString(16);_=I>>>24-y&16777215,(y+=2)>=26&&(y-=26,C--),w=_!==0||C!==this.length-1?d[6-P.length]+P+w:P+w}for(_!==0&&(w=_.toString(16)+w);w.length%v!=0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}if(S===(0|S)&&S>=2&&S<=36){var H=b[S],W=m[S];w="";var K=this.clone();for(K.negative=0;!K.isZero();){var B=K.modrn(W).toString(S);w=(K=K.idivn(W)).isZero()?B+w:d[H-B.length]+B+w}for(this.isZero()&&(w="0"+w);w.length%v!=0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}o(!1,"Base should be between 2 and 36")},t.prototype.toNumber=function(){var S=this.words[0];return this.length===2?S+=67108864*this.words[1]:this.length===3&&this.words[2]===1?S+=4503599627370496+67108864*this.words[1]:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-S:S},t.prototype.toJSON=function(){return this.toString(16,2)},n&&(t.prototype.toBuffer=function(S,v){return this.toArrayLike(n,S,v)}),t.prototype.toArray=function(S,v){return this.toArrayLike(Array,S,v)};function x(S,v,w){w.negative=v.negative^S.negative;var y=S.length+v.length|0;w.length=y,y=y-1|0;var _=0|S.words[0],C=0|v.words[0],I=_*C,P=67108863&I,H=I/67108864|0;w.words[0]=P;for(var W=1;W<y;W++){for(var K=H>>>26,B=67108863&H,q=Math.min(W,v.length-1),O=Math.max(0,W-S.length+1);O<=q;O++){var N=W-O|0;K+=(I=(_=0|S.words[N])*(C=0|v.words[O])+B)/67108864|0,B=67108863&I}w.words[W]=0|B,H=0|K}return H!==0?w.words[W]=0|H:w.length--,w._strip()}t.prototype.toArrayLike=function(S,v,w){this._strip();var y=this.byteLength(),_=w||Math.max(1,y);o(y<=_,"byte array longer than desired length"),o(_>0,"Requested array length <= 0");var C=function(I,P){return I.allocUnsafe?I.allocUnsafe(P):new I(P)}(S,_);return this["_toArrayLike"+(v==="le"?"LE":"BE")](C,y),C},t.prototype._toArrayLikeLE=function(S,v){for(var w=0,y=0,_=0,C=0;_<this.length;_++){var I=this.words[_]<<C|y;S[w++]=255&I,w<S.length&&(S[w++]=I>>8&255),w<S.length&&(S[w++]=I>>16&255),C===6?(w<S.length&&(S[w++]=I>>24&255),y=0,C=0):(y=I>>>24,C+=2)}if(w<S.length)for(S[w++]=y;w<S.length;)S[w++]=0},t.prototype._toArrayLikeBE=function(S,v){for(var w=S.length-1,y=0,_=0,C=0;_<this.length;_++){var I=this.words[_]<<C|y;S[w--]=255&I,w>=0&&(S[w--]=I>>8&255),w>=0&&(S[w--]=I>>16&255),C===6?(w>=0&&(S[w--]=I>>24&255),y=0,C=0):(y=I>>>24,C+=2)}if(w>=0)for(S[w--]=y;w>=0;)S[w--]=0},Math.clz32?t.prototype._countBits=function(S){return 32-Math.clz32(S)}:t.prototype._countBits=function(S){var v=S,w=0;return v>=4096&&(w+=13,v>>>=13),v>=64&&(w+=7,v>>>=7),v>=8&&(w+=4,v>>>=4),v>=2&&(w+=2,v>>>=2),w+v},t.prototype._zeroBits=function(S){if(S===0)return 26;var v=S,w=0;return!(8191&v)&&(w+=13,v>>>=13),!(127&v)&&(w+=7,v>>>=7),!(15&v)&&(w+=4,v>>>=4),!(3&v)&&(w+=2,v>>>=2),!(1&v)&&w++,w},t.prototype.bitLength=function(){var S=this.words[this.length-1],v=this._countBits(S);return 26*(this.length-1)+v},t.prototype.zeroBits=function(){if(this.isZero())return 0;for(var S=0,v=0;v<this.length;v++){var w=this._zeroBits(this.words[v]);if(S+=w,w!==26)break}return S},t.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},t.prototype.toTwos=function(S){return this.negative!==0?this.abs().inotn(S).iaddn(1):this.clone()},t.prototype.fromTwos=function(S){return this.testn(S-1)?this.notn(S).iaddn(1).ineg():this.clone()},t.prototype.isNeg=function(){return this.negative!==0},t.prototype.neg=function(){return this.clone().ineg()},t.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},t.prototype.iuor=function(S){for(;this.length<S.length;)this.words[this.length++]=0;for(var v=0;v<S.length;v++)this.words[v]=this.words[v]|S.words[v];return this._strip()},t.prototype.ior=function(S){return o((this.negative|S.negative)==0),this.iuor(S)},t.prototype.or=function(S){return this.length>S.length?this.clone().ior(S):S.clone().ior(this)},t.prototype.uor=function(S){return this.length>S.length?this.clone().iuor(S):S.clone().iuor(this)},t.prototype.iuand=function(S){var v;v=this.length>S.length?S:this;for(var w=0;w<v.length;w++)this.words[w]=this.words[w]&S.words[w];return this.length=v.length,this._strip()},t.prototype.iand=function(S){return o((this.negative|S.negative)==0),this.iuand(S)},t.prototype.and=function(S){return this.length>S.length?this.clone().iand(S):S.clone().iand(this)},t.prototype.uand=function(S){return this.length>S.length?this.clone().iuand(S):S.clone().iuand(this)},t.prototype.iuxor=function(S){var v,w;this.length>S.length?(v=this,w=S):(v=S,w=this);for(var y=0;y<w.length;y++)this.words[y]=v.words[y]^w.words[y];if(this!==v)for(;y<v.length;y++)this.words[y]=v.words[y];return this.length=v.length,this._strip()},t.prototype.ixor=function(S){return o((this.negative|S.negative)==0),this.iuxor(S)},t.prototype.xor=function(S){return this.length>S.length?this.clone().ixor(S):S.clone().ixor(this)},t.prototype.uxor=function(S){return this.length>S.length?this.clone().iuxor(S):S.clone().iuxor(this)},t.prototype.inotn=function(S){o(typeof S=="number"&&S>=0);var v=0|Math.ceil(S/26),w=S%26;this._expand(v),w>0&&v--;for(var y=0;y<v;y++)this.words[y]=67108863&~this.words[y];return w>0&&(this.words[y]=~this.words[y]&67108863>>26-w),this._strip()},t.prototype.notn=function(S){return this.clone().inotn(S)},t.prototype.setn=function(S,v){o(typeof S=="number"&&S>=0);var w=S/26|0,y=S%26;return this._expand(w+1),this.words[w]=v?this.words[w]|1<<y:this.words[w]&~(1<<y),this._strip()},t.prototype.iadd=function(S){var v,w,y;if(this.negative!==0&&S.negative===0)return this.negative=0,v=this.isub(S),this.negative^=1,this._normSign();if(this.negative===0&&S.negative!==0)return S.negative=0,v=this.isub(S),S.negative=1,v._normSign();this.length>S.length?(w=this,y=S):(w=S,y=this);for(var _=0,C=0;C<y.length;C++)v=(0|w.words[C])+(0|y.words[C])+_,this.words[C]=67108863&v,_=v>>>26;for(;_!==0&&C<w.length;C++)v=(0|w.words[C])+_,this.words[C]=67108863&v,_=v>>>26;if(this.length=w.length,_!==0)this.words[this.length]=_,this.length++;else if(w!==this)for(;C<w.length;C++)this.words[C]=w.words[C];return this},t.prototype.add=function(S){var v;return S.negative!==0&&this.negative===0?(S.negative=0,v=this.sub(S),S.negative^=1,v):S.negative===0&&this.negative!==0?(this.negative=0,v=S.sub(this),this.negative=1,v):this.length>S.length?this.clone().iadd(S):S.clone().iadd(this)},t.prototype.isub=function(S){if(S.negative!==0){S.negative=0;var v=this.iadd(S);return S.negative=1,v._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(S),this.negative=1,this._normSign();var w,y,_=this.cmp(S);if(_===0)return this.negative=0,this.length=1,this.words[0]=0,this;_>0?(w=this,y=S):(w=S,y=this);for(var C=0,I=0;I<y.length;I++)C=(v=(0|w.words[I])-(0|y.words[I])+C)>>26,this.words[I]=67108863&v;for(;C!==0&&I<w.length;I++)C=(v=(0|w.words[I])+C)>>26,this.words[I]=67108863&v;if(C===0&&I<w.length&&w!==this)for(;I<w.length;I++)this.words[I]=w.words[I];return this.length=Math.max(this.length,I),w!==this&&(this.negative=1),this._strip()},t.prototype.sub=function(S){return this.clone().isub(S)};var k=function(S,v,w){var y,_,C,I=S.words,P=v.words,H=w.words,W=0,K=0|I[0],B=8191&K,q=K>>>13,O=0|I[1],N=8191&O,U=O>>>13,X=0|I[2],Z=8191&X,G=X>>>13,J=0|I[3],ne=8191&J,ie=J>>>13,Y=0|I[4],te=8191&Y,ee=Y>>>13,ae=0|I[5],se=8191&ae,le=ae>>>13,ce=0|I[6],de=8191&ce,pe=ce>>>13,ke=0|I[7],Se=8191&ke,ye=ke>>>13,Ie=0|I[8],Re=8191&Ie,Ne=Ie>>>13,je=0|I[9],Ce=8191&je,be=je>>>13,Te=0|P[0],Me=8191&Te,Ee=Te>>>13,tt=0|P[1],ut=8191&tt,Be=tt>>>13,at=0|P[2],et=8191&at,We=at>>>13,gt=0|P[3],ot=8191&gt,Le=gt>>>13,nt=0|P[4],ht=8191&nt,ze=nt>>>13,lt=0|P[5],pt=8191&lt,Ke=lt>>>13,re=0|P[6],oe=8191&re,fe=re>>>13,we=0|P[7],Fe=8191&we,xe=we>>>13,$e=0|P[8],De=8191&$e,Pe=$e>>>13,Xe=0|P[9],Ue=8191&Xe,Ze=Xe>>>13;w.negative=S.negative^v.negative,w.length=19;var wt=(W+(y=Math.imul(B,Me))|0)+((8191&(_=(_=Math.imul(B,Ee))+Math.imul(q,Me)|0))<<13)|0;W=((C=Math.imul(q,Ee))+(_>>>13)|0)+(wt>>>26)|0,wt&=67108863,y=Math.imul(N,Me),_=(_=Math.imul(N,Ee))+Math.imul(U,Me)|0,C=Math.imul(U,Ee);var bt=(W+(y=y+Math.imul(B,ut)|0)|0)+((8191&(_=(_=_+Math.imul(B,Be)|0)+Math.imul(q,ut)|0))<<13)|0;W=((C=C+Math.imul(q,Be)|0)+(_>>>13)|0)+(bt>>>26)|0,bt&=67108863,y=Math.imul(Z,Me),_=(_=Math.imul(Z,Ee))+Math.imul(G,Me)|0,C=Math.imul(G,Ee),y=y+Math.imul(N,ut)|0,_=(_=_+Math.imul(N,Be)|0)+Math.imul(U,ut)|0,C=C+Math.imul(U,Be)|0;var Ct=(W+(y=y+Math.imul(B,et)|0)|0)+((8191&(_=(_=_+Math.imul(B,We)|0)+Math.imul(q,et)|0))<<13)|0;W=((C=C+Math.imul(q,We)|0)+(_>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,y=Math.imul(ne,Me),_=(_=Math.imul(ne,Ee))+Math.imul(ie,Me)|0,C=Math.imul(ie,Ee),y=y+Math.imul(Z,ut)|0,_=(_=_+Math.imul(Z,Be)|0)+Math.imul(G,ut)|0,C=C+Math.imul(G,Be)|0,y=y+Math.imul(N,et)|0,_=(_=_+Math.imul(N,We)|0)+Math.imul(U,et)|0,C=C+Math.imul(U,We)|0;var Tt=(W+(y=y+Math.imul(B,ot)|0)|0)+((8191&(_=(_=_+Math.imul(B,Le)|0)+Math.imul(q,ot)|0))<<13)|0;W=((C=C+Math.imul(q,Le)|0)+(_>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,y=Math.imul(te,Me),_=(_=Math.imul(te,Ee))+Math.imul(ee,Me)|0,C=Math.imul(ee,Ee),y=y+Math.imul(ne,ut)|0,_=(_=_+Math.imul(ne,Be)|0)+Math.imul(ie,ut)|0,C=C+Math.imul(ie,Be)|0,y=y+Math.imul(Z,et)|0,_=(_=_+Math.imul(Z,We)|0)+Math.imul(G,et)|0,C=C+Math.imul(G,We)|0,y=y+Math.imul(N,ot)|0,_=(_=_+Math.imul(N,Le)|0)+Math.imul(U,ot)|0,C=C+Math.imul(U,Le)|0;var Pt=(W+(y=y+Math.imul(B,ht)|0)|0)+((8191&(_=(_=_+Math.imul(B,ze)|0)+Math.imul(q,ht)|0))<<13)|0;W=((C=C+Math.imul(q,ze)|0)+(_>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,y=Math.imul(se,Me),_=(_=Math.imul(se,Ee))+Math.imul(le,Me)|0,C=Math.imul(le,Ee),y=y+Math.imul(te,ut)|0,_=(_=_+Math.imul(te,Be)|0)+Math.imul(ee,ut)|0,C=C+Math.imul(ee,Be)|0,y=y+Math.imul(ne,et)|0,_=(_=_+Math.imul(ne,We)|0)+Math.imul(ie,et)|0,C=C+Math.imul(ie,We)|0,y=y+Math.imul(Z,ot)|0,_=(_=_+Math.imul(Z,Le)|0)+Math.imul(G,ot)|0,C=C+Math.imul(G,Le)|0,y=y+Math.imul(N,ht)|0,_=(_=_+Math.imul(N,ze)|0)+Math.imul(U,ht)|0,C=C+Math.imul(U,ze)|0;var Q=(W+(y=y+Math.imul(B,pt)|0)|0)+((8191&(_=(_=_+Math.imul(B,Ke)|0)+Math.imul(q,pt)|0))<<13)|0;W=((C=C+Math.imul(q,Ke)|0)+(_>>>13)|0)+(Q>>>26)|0,Q&=67108863,y=Math.imul(de,Me),_=(_=Math.imul(de,Ee))+Math.imul(pe,Me)|0,C=Math.imul(pe,Ee),y=y+Math.imul(se,ut)|0,_=(_=_+Math.imul(se,Be)|0)+Math.imul(le,ut)|0,C=C+Math.imul(le,Be)|0,y=y+Math.imul(te,et)|0,_=(_=_+Math.imul(te,We)|0)+Math.imul(ee,et)|0,C=C+Math.imul(ee,We)|0,y=y+Math.imul(ne,ot)|0,_=(_=_+Math.imul(ne,Le)|0)+Math.imul(ie,ot)|0,C=C+Math.imul(ie,Le)|0,y=y+Math.imul(Z,ht)|0,_=(_=_+Math.imul(Z,ze)|0)+Math.imul(G,ht)|0,C=C+Math.imul(G,ze)|0,y=y+Math.imul(N,pt)|0,_=(_=_+Math.imul(N,Ke)|0)+Math.imul(U,pt)|0,C=C+Math.imul(U,Ke)|0;var ue=(W+(y=y+Math.imul(B,oe)|0)|0)+((8191&(_=(_=_+Math.imul(B,fe)|0)+Math.imul(q,oe)|0))<<13)|0;W=((C=C+Math.imul(q,fe)|0)+(_>>>13)|0)+(ue>>>26)|0,ue&=67108863,y=Math.imul(Se,Me),_=(_=Math.imul(Se,Ee))+Math.imul(ye,Me)|0,C=Math.imul(ye,Ee),y=y+Math.imul(de,ut)|0,_=(_=_+Math.imul(de,Be)|0)+Math.imul(pe,ut)|0,C=C+Math.imul(pe,Be)|0,y=y+Math.imul(se,et)|0,_=(_=_+Math.imul(se,We)|0)+Math.imul(le,et)|0,C=C+Math.imul(le,We)|0,y=y+Math.imul(te,ot)|0,_=(_=_+Math.imul(te,Le)|0)+Math.imul(ee,ot)|0,C=C+Math.imul(ee,Le)|0,y=y+Math.imul(ne,ht)|0,_=(_=_+Math.imul(ne,ze)|0)+Math.imul(ie,ht)|0,C=C+Math.imul(ie,ze)|0,y=y+Math.imul(Z,pt)|0,_=(_=_+Math.imul(Z,Ke)|0)+Math.imul(G,pt)|0,C=C+Math.imul(G,Ke)|0,y=y+Math.imul(N,oe)|0,_=(_=_+Math.imul(N,fe)|0)+Math.imul(U,oe)|0,C=C+Math.imul(U,fe)|0;var he=(W+(y=y+Math.imul(B,Fe)|0)|0)+((8191&(_=(_=_+Math.imul(B,xe)|0)+Math.imul(q,Fe)|0))<<13)|0;W=((C=C+Math.imul(q,xe)|0)+(_>>>13)|0)+(he>>>26)|0,he&=67108863,y=Math.imul(Re,Me),_=(_=Math.imul(Re,Ee))+Math.imul(Ne,Me)|0,C=Math.imul(Ne,Ee),y=y+Math.imul(Se,ut)|0,_=(_=_+Math.imul(Se,Be)|0)+Math.imul(ye,ut)|0,C=C+Math.imul(ye,Be)|0,y=y+Math.imul(de,et)|0,_=(_=_+Math.imul(de,We)|0)+Math.imul(pe,et)|0,C=C+Math.imul(pe,We)|0,y=y+Math.imul(se,ot)|0,_=(_=_+Math.imul(se,Le)|0)+Math.imul(le,ot)|0,C=C+Math.imul(le,Le)|0,y=y+Math.imul(te,ht)|0,_=(_=_+Math.imul(te,ze)|0)+Math.imul(ee,ht)|0,C=C+Math.imul(ee,ze)|0,y=y+Math.imul(ne,pt)|0,_=(_=_+Math.imul(ne,Ke)|0)+Math.imul(ie,pt)|0,C=C+Math.imul(ie,Ke)|0,y=y+Math.imul(Z,oe)|0,_=(_=_+Math.imul(Z,fe)|0)+Math.imul(G,oe)|0,C=C+Math.imul(G,fe)|0,y=y+Math.imul(N,Fe)|0,_=(_=_+Math.imul(N,xe)|0)+Math.imul(U,Fe)|0,C=C+Math.imul(U,xe)|0;var me=(W+(y=y+Math.imul(B,De)|0)|0)+((8191&(_=(_=_+Math.imul(B,Pe)|0)+Math.imul(q,De)|0))<<13)|0;W=((C=C+Math.imul(q,Pe)|0)+(_>>>13)|0)+(me>>>26)|0,me&=67108863,y=Math.imul(Ce,Me),_=(_=Math.imul(Ce,Ee))+Math.imul(be,Me)|0,C=Math.imul(be,Ee),y=y+Math.imul(Re,ut)|0,_=(_=_+Math.imul(Re,Be)|0)+Math.imul(Ne,ut)|0,C=C+Math.imul(Ne,Be)|0,y=y+Math.imul(Se,et)|0,_=(_=_+Math.imul(Se,We)|0)+Math.imul(ye,et)|0,C=C+Math.imul(ye,We)|0,y=y+Math.imul(de,ot)|0,_=(_=_+Math.imul(de,Le)|0)+Math.imul(pe,ot)|0,C=C+Math.imul(pe,Le)|0,y=y+Math.imul(se,ht)|0,_=(_=_+Math.imul(se,ze)|0)+Math.imul(le,ht)|0,C=C+Math.imul(le,ze)|0,y=y+Math.imul(te,pt)|0,_=(_=_+Math.imul(te,Ke)|0)+Math.imul(ee,pt)|0,C=C+Math.imul(ee,Ke)|0,y=y+Math.imul(ne,oe)|0,_=(_=_+Math.imul(ne,fe)|0)+Math.imul(ie,oe)|0,C=C+Math.imul(ie,fe)|0,y=y+Math.imul(Z,Fe)|0,_=(_=_+Math.imul(Z,xe)|0)+Math.imul(G,Fe)|0,C=C+Math.imul(G,xe)|0,y=y+Math.imul(N,De)|0,_=(_=_+Math.imul(N,Pe)|0)+Math.imul(U,De)|0,C=C+Math.imul(U,Pe)|0;var Ae=(W+(y=y+Math.imul(B,Ue)|0)|0)+((8191&(_=(_=_+Math.imul(B,Ze)|0)+Math.imul(q,Ue)|0))<<13)|0;W=((C=C+Math.imul(q,Ze)|0)+(_>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,y=Math.imul(Ce,ut),_=(_=Math.imul(Ce,Be))+Math.imul(be,ut)|0,C=Math.imul(be,Be),y=y+Math.imul(Re,et)|0,_=(_=_+Math.imul(Re,We)|0)+Math.imul(Ne,et)|0,C=C+Math.imul(Ne,We)|0,y=y+Math.imul(Se,ot)|0,_=(_=_+Math.imul(Se,Le)|0)+Math.imul(ye,ot)|0,C=C+Math.imul(ye,Le)|0,y=y+Math.imul(de,ht)|0,_=(_=_+Math.imul(de,ze)|0)+Math.imul(pe,ht)|0,C=C+Math.imul(pe,ze)|0,y=y+Math.imul(se,pt)|0,_=(_=_+Math.imul(se,Ke)|0)+Math.imul(le,pt)|0,C=C+Math.imul(le,Ke)|0,y=y+Math.imul(te,oe)|0,_=(_=_+Math.imul(te,fe)|0)+Math.imul(ee,oe)|0,C=C+Math.imul(ee,fe)|0,y=y+Math.imul(ne,Fe)|0,_=(_=_+Math.imul(ne,xe)|0)+Math.imul(ie,Fe)|0,C=C+Math.imul(ie,xe)|0,y=y+Math.imul(Z,De)|0,_=(_=_+Math.imul(Z,Pe)|0)+Math.imul(G,De)|0,C=C+Math.imul(G,Pe)|0;var ve=(W+(y=y+Math.imul(N,Ue)|0)|0)+((8191&(_=(_=_+Math.imul(N,Ze)|0)+Math.imul(U,Ue)|0))<<13)|0;W=((C=C+Math.imul(U,Ze)|0)+(_>>>13)|0)+(ve>>>26)|0,ve&=67108863,y=Math.imul(Ce,et),_=(_=Math.imul(Ce,We))+Math.imul(be,et)|0,C=Math.imul(be,We),y=y+Math.imul(Re,ot)|0,_=(_=_+Math.imul(Re,Le)|0)+Math.imul(Ne,ot)|0,C=C+Math.imul(Ne,Le)|0,y=y+Math.imul(Se,ht)|0,_=(_=_+Math.imul(Se,ze)|0)+Math.imul(ye,ht)|0,C=C+Math.imul(ye,ze)|0,y=y+Math.imul(de,pt)|0,_=(_=_+Math.imul(de,Ke)|0)+Math.imul(pe,pt)|0,C=C+Math.imul(pe,Ke)|0,y=y+Math.imul(se,oe)|0,_=(_=_+Math.imul(se,fe)|0)+Math.imul(le,oe)|0,C=C+Math.imul(le,fe)|0,y=y+Math.imul(te,Fe)|0,_=(_=_+Math.imul(te,xe)|0)+Math.imul(ee,Fe)|0,C=C+Math.imul(ee,xe)|0,y=y+Math.imul(ne,De)|0,_=(_=_+Math.imul(ne,Pe)|0)+Math.imul(ie,De)|0,C=C+Math.imul(ie,Pe)|0;var _e=(W+(y=y+Math.imul(Z,Ue)|0)|0)+((8191&(_=(_=_+Math.imul(Z,Ze)|0)+Math.imul(G,Ue)|0))<<13)|0;W=((C=C+Math.imul(G,Ze)|0)+(_>>>13)|0)+(_e>>>26)|0,_e&=67108863,y=Math.imul(Ce,ot),_=(_=Math.imul(Ce,Le))+Math.imul(be,ot)|0,C=Math.imul(be,Le),y=y+Math.imul(Re,ht)|0,_=(_=_+Math.imul(Re,ze)|0)+Math.imul(Ne,ht)|0,C=C+Math.imul(Ne,ze)|0,y=y+Math.imul(Se,pt)|0,_=(_=_+Math.imul(Se,Ke)|0)+Math.imul(ye,pt)|0,C=C+Math.imul(ye,Ke)|0,y=y+Math.imul(de,oe)|0,_=(_=_+Math.imul(de,fe)|0)+Math.imul(pe,oe)|0,C=C+Math.imul(pe,fe)|0,y=y+Math.imul(se,Fe)|0,_=(_=_+Math.imul(se,xe)|0)+Math.imul(le,Fe)|0,C=C+Math.imul(le,xe)|0,y=y+Math.imul(te,De)|0,_=(_=_+Math.imul(te,Pe)|0)+Math.imul(ee,De)|0,C=C+Math.imul(ee,Pe)|0;var rt=(W+(y=y+Math.imul(ne,Ue)|0)|0)+((8191&(_=(_=_+Math.imul(ne,Ze)|0)+Math.imul(ie,Ue)|0))<<13)|0;W=((C=C+Math.imul(ie,Ze)|0)+(_>>>13)|0)+(rt>>>26)|0,rt&=67108863,y=Math.imul(Ce,ht),_=(_=Math.imul(Ce,ze))+Math.imul(be,ht)|0,C=Math.imul(be,ze),y=y+Math.imul(Re,pt)|0,_=(_=_+Math.imul(Re,Ke)|0)+Math.imul(Ne,pt)|0,C=C+Math.imul(Ne,Ke)|0,y=y+Math.imul(Se,oe)|0,_=(_=_+Math.imul(Se,fe)|0)+Math.imul(ye,oe)|0,C=C+Math.imul(ye,fe)|0,y=y+Math.imul(de,Fe)|0,_=(_=_+Math.imul(de,xe)|0)+Math.imul(pe,Fe)|0,C=C+Math.imul(pe,xe)|0,y=y+Math.imul(se,De)|0,_=(_=_+Math.imul(se,Pe)|0)+Math.imul(le,De)|0,C=C+Math.imul(le,Pe)|0;var Ge=(W+(y=y+Math.imul(te,Ue)|0)|0)+((8191&(_=(_=_+Math.imul(te,Ze)|0)+Math.imul(ee,Ue)|0))<<13)|0;W=((C=C+Math.imul(ee,Ze)|0)+(_>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,y=Math.imul(Ce,pt),_=(_=Math.imul(Ce,Ke))+Math.imul(be,pt)|0,C=Math.imul(be,Ke),y=y+Math.imul(Re,oe)|0,_=(_=_+Math.imul(Re,fe)|0)+Math.imul(Ne,oe)|0,C=C+Math.imul(Ne,fe)|0,y=y+Math.imul(Se,Fe)|0,_=(_=_+Math.imul(Se,xe)|0)+Math.imul(ye,Fe)|0,C=C+Math.imul(ye,xe)|0,y=y+Math.imul(de,De)|0,_=(_=_+Math.imul(de,Pe)|0)+Math.imul(pe,De)|0,C=C+Math.imul(pe,Pe)|0;var Je=(W+(y=y+Math.imul(se,Ue)|0)|0)+((8191&(_=(_=_+Math.imul(se,Ze)|0)+Math.imul(le,Ue)|0))<<13)|0;W=((C=C+Math.imul(le,Ze)|0)+(_>>>13)|0)+(Je>>>26)|0,Je&=67108863,y=Math.imul(Ce,oe),_=(_=Math.imul(Ce,fe))+Math.imul(be,oe)|0,C=Math.imul(be,fe),y=y+Math.imul(Re,Fe)|0,_=(_=_+Math.imul(Re,xe)|0)+Math.imul(Ne,Fe)|0,C=C+Math.imul(Ne,xe)|0,y=y+Math.imul(Se,De)|0,_=(_=_+Math.imul(Se,Pe)|0)+Math.imul(ye,De)|0,C=C+Math.imul(ye,Pe)|0;var Ve=(W+(y=y+Math.imul(de,Ue)|0)|0)+((8191&(_=(_=_+Math.imul(de,Ze)|0)+Math.imul(pe,Ue)|0))<<13)|0;W=((C=C+Math.imul(pe,Ze)|0)+(_>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,y=Math.imul(Ce,Fe),_=(_=Math.imul(Ce,xe))+Math.imul(be,Fe)|0,C=Math.imul(be,xe),y=y+Math.imul(Re,De)|0,_=(_=_+Math.imul(Re,Pe)|0)+Math.imul(Ne,De)|0,C=C+Math.imul(Ne,Pe)|0;var ct=(W+(y=y+Math.imul(Se,Ue)|0)|0)+((8191&(_=(_=_+Math.imul(Se,Ze)|0)+Math.imul(ye,Ue)|0))<<13)|0;W=((C=C+Math.imul(ye,Ze)|0)+(_>>>13)|0)+(ct>>>26)|0,ct&=67108863,y=Math.imul(Ce,De),_=(_=Math.imul(Ce,Pe))+Math.imul(be,De)|0,C=Math.imul(be,Pe);var dt=(W+(y=y+Math.imul(Re,Ue)|0)|0)+((8191&(_=(_=_+Math.imul(Re,Ze)|0)+Math.imul(Ne,Ue)|0))<<13)|0;W=((C=C+Math.imul(Ne,Ze)|0)+(_>>>13)|0)+(dt>>>26)|0,dt&=67108863;var mt=(W+(y=Math.imul(Ce,Ue))|0)+((8191&(_=(_=Math.imul(Ce,Ze))+Math.imul(be,Ue)|0))<<13)|0;return W=((C=Math.imul(be,Ze))+(_>>>13)|0)+(mt>>>26)|0,mt&=67108863,H[0]=wt,H[1]=bt,H[2]=Ct,H[3]=Tt,H[4]=Pt,H[5]=Q,H[6]=ue,H[7]=he,H[8]=me,H[9]=Ae,H[10]=ve,H[11]=_e,H[12]=rt,H[13]=Ge,H[14]=Je,H[15]=Ve,H[16]=ct,H[17]=dt,H[18]=mt,W!==0&&(H[19]=W,w.length++),w};function R(S,v,w){w.negative=v.negative^S.negative,w.length=S.length+v.length;for(var y=0,_=0,C=0;C<w.length-1;C++){var I=_;_=0;for(var P=67108863&y,H=Math.min(C,v.length-1),W=Math.max(0,C-S.length+1);W<=H;W++){var K=C-W,B=(0|S.words[K])*(0|v.words[W]),q=67108863&B;P=67108863&(q=q+P|0),_+=(I=(I=I+(B/67108864|0)|0)+(q>>>26)|0)>>>26,I&=67108863}w.words[C]=P,y=I,I=_}return y!==0?w.words[C]=y:w.length--,w._strip()}function F(S,v,w){return R(S,v,w)}Math.imul||(k=x),t.prototype.mulTo=function(S,v){var w=this.length+S.length;return this.length===10&&S.length===10?k(this,S,v):w<63?x(this,S,v):w<1024?R(this,S,v):F(this,S,v)},t.prototype.mul=function(S){var v=new t(null);return v.words=new Array(this.length+S.length),this.mulTo(S,v)},t.prototype.mulf=function(S){var v=new t(null);return v.words=new Array(this.length+S.length),F(this,S,v)},t.prototype.imul=function(S){return this.clone().mulTo(S,this)},t.prototype.imuln=function(S){var v=S<0;v&&(S=-S),o(typeof S=="number"),o(S<67108864);for(var w=0,y=0;y<this.length;y++){var _=(0|this.words[y])*S,C=(67108863&_)+(67108863&w);w>>=26,w+=_/67108864|0,w+=C>>>26,this.words[y]=67108863&C}return w!==0&&(this.words[y]=w,this.length++),v?this.ineg():this},t.prototype.muln=function(S){return this.clone().imuln(S)},t.prototype.sqr=function(){return this.mul(this)},t.prototype.isqr=function(){return this.imul(this.clone())},t.prototype.pow=function(S){var v=function(C){for(var I=new Array(C.bitLength()),P=0;P<I.length;P++){var H=P/26|0,W=P%26;I[P]=C.words[H]>>>W&1}return I}(S);if(v.length===0)return new t(1);for(var w=this,y=0;y<v.length&&v[y]===0;y++,w=w.sqr());if(++y<v.length)for(var _=w.sqr();y<v.length;y++,_=_.sqr())v[y]!==0&&(w=w.mul(_));return w},t.prototype.iushln=function(S){o(typeof S=="number"&&S>=0);var v,w=S%26,y=(S-w)/26,_=67108863>>>26-w<<26-w;if(w!==0){var C=0;for(v=0;v<this.length;v++){var I=this.words[v]&_,P=(0|this.words[v])-I<<w;this.words[v]=P|C,C=I>>>26-w}C&&(this.words[v]=C,this.length++)}if(y!==0){for(v=this.length-1;v>=0;v--)this.words[v+y]=this.words[v];for(v=0;v<y;v++)this.words[v]=0;this.length+=y}return this._strip()},t.prototype.ishln=function(S){return o(this.negative===0),this.iushln(S)},t.prototype.iushrn=function(S,v,w){var y;o(typeof S=="number"&&S>=0),y=v?(v-v%26)/26:0;var _=S%26,C=Math.min((S-_)/26,this.length),I=67108863^67108863>>>_<<_,P=w;if(y-=C,y=Math.max(0,y),P){for(var H=0;H<C;H++)P.words[H]=this.words[H];P.length=C}if(C!==0)if(this.length>C)for(this.length-=C,H=0;H<this.length;H++)this.words[H]=this.words[H+C];else this.words[0]=0,this.length=1;var W=0;for(H=this.length-1;H>=0&&(W!==0||H>=y);H--){var K=0|this.words[H];this.words[H]=W<<26-_|K>>>_,W=K&I}return P&&W!==0&&(P.words[P.length++]=W),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},t.prototype.ishrn=function(S,v,w){return o(this.negative===0),this.iushrn(S,v,w)},t.prototype.shln=function(S){return this.clone().ishln(S)},t.prototype.ushln=function(S){return this.clone().iushln(S)},t.prototype.shrn=function(S){return this.clone().ishrn(S)},t.prototype.ushrn=function(S){return this.clone().iushrn(S)},t.prototype.testn=function(S){o(typeof S=="number"&&S>=0);var v=S%26,w=(S-v)/26,y=1<<v;return!(this.length<=w)&&!!(this.words[w]&y)},t.prototype.imaskn=function(S){o(typeof S=="number"&&S>=0);var v=S%26,w=(S-v)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=w)return this;if(v!==0&&w++,this.length=Math.min(w,this.length),v!==0){var y=67108863^67108863>>>v<<v;this.words[this.length-1]&=y}return this._strip()},t.prototype.maskn=function(S){return this.clone().imaskn(S)},t.prototype.iaddn=function(S){return o(typeof S=="number"),o(S<67108864),S<0?this.isubn(-S):this.negative!==0?this.length===1&&(0|this.words[0])<=S?(this.words[0]=S-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(S),this.negative=1,this):this._iaddn(S)},t.prototype._iaddn=function(S){this.words[0]+=S;for(var v=0;v<this.length&&this.words[v]>=67108864;v++)this.words[v]-=67108864,v===this.length-1?this.words[v+1]=1:this.words[v+1]++;return this.length=Math.max(this.length,v+1),this},t.prototype.isubn=function(S){if(o(typeof S=="number"),o(S<67108864),S<0)return this.iaddn(-S);if(this.negative!==0)return this.negative=0,this.iaddn(S),this.negative=1,this;if(this.words[0]-=S,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var v=0;v<this.length&&this.words[v]<0;v++)this.words[v]+=67108864,this.words[v+1]-=1;return this._strip()},t.prototype.addn=function(S){return this.clone().iaddn(S)},t.prototype.subn=function(S){return this.clone().isubn(S)},t.prototype.iabs=function(){return this.negative=0,this},t.prototype.abs=function(){return this.clone().iabs()},t.prototype._ishlnsubmul=function(S,v,w){var y,_,C=S.length+w;this._expand(C);var I=0;for(y=0;y<S.length;y++){_=(0|this.words[y+w])+I;var P=(0|S.words[y])*v;I=((_-=67108863&P)>>26)-(P/67108864|0),this.words[y+w]=67108863&_}for(;y<this.length-w;y++)I=(_=(0|this.words[y+w])+I)>>26,this.words[y+w]=67108863&_;if(I===0)return this._strip();for(o(I===-1),I=0,y=0;y<this.length;y++)I=(_=-(0|this.words[y])+I)>>26,this.words[y]=67108863&_;return this.negative=1,this._strip()},t.prototype._wordDiv=function(S,v){var w=(this.length,S.length),y=this.clone(),_=S,C=0|_.words[_.length-1];(w=26-this._countBits(C))!==0&&(_=_.ushln(w),y.iushln(w),C=0|_.words[_.length-1]);var I,P=y.length-_.length;if(v!=="mod"){(I=new t(null)).length=P+1,I.words=new Array(I.length);for(var H=0;H<I.length;H++)I.words[H]=0}var W=y.clone()._ishlnsubmul(_,1,P);W.negative===0&&(y=W,I&&(I.words[P]=1));for(var K=P-1;K>=0;K--){var B=67108864*(0|y.words[_.length+K])+(0|y.words[_.length+K-1]);for(B=Math.min(B/C|0,67108863),y._ishlnsubmul(_,B,K);y.negative!==0;)B--,y.negative=0,y._ishlnsubmul(_,1,K),y.isZero()||(y.negative^=1);I&&(I.words[K]=B)}return I&&I._strip(),y._strip(),v!=="div"&&w!==0&&y.iushrn(w),{div:I||null,mod:y}},t.prototype.divmod=function(S,v,w){return o(!S.isZero()),this.isZero()?{div:new t(0),mod:new t(0)}:this.negative!==0&&S.negative===0?(C=this.neg().divmod(S,v),v!=="mod"&&(y=C.div.neg()),v!=="div"&&(_=C.mod.neg(),w&&_.negative!==0&&_.iadd(S)),{div:y,mod:_}):this.negative===0&&S.negative!==0?(C=this.divmod(S.neg(),v),v!=="mod"&&(y=C.div.neg()),{div:y,mod:C.mod}):this.negative&S.negative?(C=this.neg().divmod(S.neg(),v),v!=="div"&&(_=C.mod.neg(),w&&_.negative!==0&&_.isub(S)),{div:C.div,mod:_}):S.length>this.length||this.cmp(S)<0?{div:new t(0),mod:this}:S.length===1?v==="div"?{div:this.divn(S.words[0]),mod:null}:v==="mod"?{div:null,mod:new t(this.modrn(S.words[0]))}:{div:this.divn(S.words[0]),mod:new t(this.modrn(S.words[0]))}:this._wordDiv(S,v);var y,_,C},t.prototype.div=function(S){return this.divmod(S,"div",!1).div},t.prototype.mod=function(S){return this.divmod(S,"mod",!1).mod},t.prototype.umod=function(S){return this.divmod(S,"mod",!0).mod},t.prototype.divRound=function(S){var v=this.divmod(S);if(v.mod.isZero())return v.div;var w=v.div.negative!==0?v.mod.isub(S):v.mod,y=S.ushrn(1),_=S.andln(1),C=w.cmp(y);return C<0||_===1&&C===0?v.div:v.div.negative!==0?v.div.isubn(1):v.div.iaddn(1)},t.prototype.modrn=function(S){var v=S<0;v&&(S=-S),o(S<=67108863);for(var w=(1<<26)%S,y=0,_=this.length-1;_>=0;_--)y=(w*y+(0|this.words[_]))%S;return v?-y:y},t.prototype.modn=function(S){return this.modrn(S)},t.prototype.idivn=function(S){var v=S<0;v&&(S=-S),o(S<=67108863);for(var w=0,y=this.length-1;y>=0;y--){var _=(0|this.words[y])+67108864*w;this.words[y]=_/S|0,w=_%S}return this._strip(),v?this.ineg():this},t.prototype.divn=function(S){return this.clone().idivn(S)},t.prototype.egcd=function(S){o(S.negative===0),o(!S.isZero());var v=this,w=S.clone();v=v.negative!==0?v.umod(S):v.clone();for(var y=new t(1),_=new t(0),C=new t(0),I=new t(1),P=0;v.isEven()&&w.isEven();)v.iushrn(1),w.iushrn(1),++P;for(var H=w.clone(),W=v.clone();!v.isZero();){for(var K=0,B=1;!(v.words[0]&B)&&K<26;++K,B<<=1);if(K>0)for(v.iushrn(K);K-- >0;)(y.isOdd()||_.isOdd())&&(y.iadd(H),_.isub(W)),y.iushrn(1),_.iushrn(1);for(var q=0,O=1;!(w.words[0]&O)&&q<26;++q,O<<=1);if(q>0)for(w.iushrn(q);q-- >0;)(C.isOdd()||I.isOdd())&&(C.iadd(H),I.isub(W)),C.iushrn(1),I.iushrn(1);v.cmp(w)>=0?(v.isub(w),y.isub(C),_.isub(I)):(w.isub(v),C.isub(y),I.isub(_))}return{a:C,b:I,gcd:w.iushln(P)}},t.prototype._invmp=function(S){o(S.negative===0),o(!S.isZero());var v=this,w=S.clone();v=v.negative!==0?v.umod(S):v.clone();for(var y,_=new t(1),C=new t(0),I=w.clone();v.cmpn(1)>0&&w.cmpn(1)>0;){for(var P=0,H=1;!(v.words[0]&H)&&P<26;++P,H<<=1);if(P>0)for(v.iushrn(P);P-- >0;)_.isOdd()&&_.iadd(I),_.iushrn(1);for(var W=0,K=1;!(w.words[0]&K)&&W<26;++W,K<<=1);if(W>0)for(w.iushrn(W);W-- >0;)C.isOdd()&&C.iadd(I),C.iushrn(1);v.cmp(w)>=0?(v.isub(w),_.isub(C)):(w.isub(v),C.isub(_))}return(y=v.cmpn(1)===0?_:C).cmpn(0)<0&&y.iadd(S),y},t.prototype.gcd=function(S){if(this.isZero())return S.abs();if(S.isZero())return this.abs();var v=this.clone(),w=S.clone();v.negative=0,w.negative=0;for(var y=0;v.isEven()&&w.isEven();y++)v.iushrn(1),w.iushrn(1);for(;;){for(;v.isEven();)v.iushrn(1);for(;w.isEven();)w.iushrn(1);var _=v.cmp(w);if(_<0){var C=v;v=w,w=C}else if(_===0||w.cmpn(1)===0)break;v.isub(w)}return w.iushln(y)},t.prototype.invm=function(S){return this.egcd(S).a.umod(S)},t.prototype.isEven=function(){return(1&this.words[0])==0},t.prototype.isOdd=function(){return(1&this.words[0])==1},t.prototype.andln=function(S){return this.words[0]&S},t.prototype.bincn=function(S){o(typeof S=="number");var v=S%26,w=(S-v)/26,y=1<<v;if(this.length<=w)return this._expand(w+1),this.words[w]|=y,this;for(var _=y,C=w;_!==0&&C<this.length;C++){var I=0|this.words[C];_=(I+=_)>>>26,I&=67108863,this.words[C]=I}return _!==0&&(this.words[C]=_,this.length++),this},t.prototype.isZero=function(){return this.length===1&&this.words[0]===0},t.prototype.cmpn=function(S){var v,w=S<0;if(this.negative!==0&&!w)return-1;if(this.negative===0&&w)return 1;if(this._strip(),this.length>1)v=1;else{w&&(S=-S),o(S<=67108863,"Number is too big");var y=0|this.words[0];v=y===S?0:y<S?-1:1}return this.negative!==0?0|-v:v},t.prototype.cmp=function(S){if(this.negative!==0&&S.negative===0)return-1;if(this.negative===0&&S.negative!==0)return 1;var v=this.ucmp(S);return this.negative!==0?0|-v:v},t.prototype.ucmp=function(S){if(this.length>S.length)return 1;if(this.length<S.length)return-1;for(var v=0,w=this.length-1;w>=0;w--){var y=0|this.words[w],_=0|S.words[w];if(y!==_){y<_?v=-1:y>_&&(v=1);break}}return v},t.prototype.gtn=function(S){return this.cmpn(S)===1},t.prototype.gt=function(S){return this.cmp(S)===1},t.prototype.gten=function(S){return this.cmpn(S)>=0},t.prototype.gte=function(S){return this.cmp(S)>=0},t.prototype.ltn=function(S){return this.cmpn(S)===-1},t.prototype.lt=function(S){return this.cmp(S)===-1},t.prototype.lten=function(S){return this.cmpn(S)<=0},t.prototype.lte=function(S){return this.cmp(S)<=0},t.prototype.eqn=function(S){return this.cmpn(S)===0},t.prototype.eq=function(S){return this.cmp(S)===0},t.red=function(S){return new T(S)},t.prototype.toRed=function(S){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),S.convertTo(this)._forceRed(S)},t.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},t.prototype._forceRed=function(S){return this.red=S,this},t.prototype.forceRed=function(S){return o(!this.red,"Already a number in reduction context"),this._forceRed(S)},t.prototype.redAdd=function(S){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,S)},t.prototype.redIAdd=function(S){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,S)},t.prototype.redSub=function(S){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,S)},t.prototype.redISub=function(S){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,S)},t.prototype.redShl=function(S){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,S)},t.prototype.redMul=function(S){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,S),this.red.mul(this,S)},t.prototype.redIMul=function(S){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,S),this.red.imul(this,S)},t.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},t.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},t.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},t.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},t.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},t.prototype.redPow=function(S){return o(this.red&&!S.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,S)};var L={k256:null,p224:null,p192:null,p25519:null};function j(S,v){this.name=S,this.p=new t(v,16),this.n=this.p.bitLength(),this.k=new t(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function D(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function z(){j.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function $(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function V(){j.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function T(S){if(typeof S=="string"){var v=t._prime(S);this.m=v.p,this.prime=v}else o(S.gtn(1),"modulus must be greater than 1"),this.m=S,this.prime=null}function M(S){T.call(this,S),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new t(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}j.prototype._tmp=function(){var S=new t(null);return S.words=new Array(Math.ceil(this.n/13)),S},j.prototype.ireduce=function(S){var v,w=S;do this.split(w,this.tmp),v=(w=(w=this.imulK(w)).iadd(this.tmp)).bitLength();while(v>this.n);var y=v<this.n?-1:w.ucmp(this.p);return y===0?(w.words[0]=0,w.length=1):y>0?w.isub(this.p):w.strip!==void 0?w.strip():w._strip(),w},j.prototype.split=function(S,v){S.iushrn(this.n,0,v)},j.prototype.imulK=function(S){return S.imul(this.k)},r(D,j),D.prototype.split=function(S,v){for(var w=Math.min(S.length,9),y=0;y<w;y++)v.words[y]=S.words[y];if(v.length=w,S.length<=9)return S.words[0]=0,void(S.length=1);var _=S.words[9];for(v.words[v.length++]=4194303&_,y=10;y<S.length;y++){var C=0|S.words[y];S.words[y-10]=(4194303&C)<<4|_>>>22,_=C}_>>>=22,S.words[y-10]=_,_===0&&S.length>10?S.length-=10:S.length-=9},D.prototype.imulK=function(S){S.words[S.length]=0,S.words[S.length+1]=0,S.length+=2;for(var v=0,w=0;w<S.length;w++){var y=0|S.words[w];v+=977*y,S.words[w]=67108863&v,v=64*y+(v/67108864|0)}return S.words[S.length-1]===0&&(S.length--,S.words[S.length-1]===0&&S.length--),S},r(z,j),r($,j),r(V,j),V.prototype.imulK=function(S){for(var v=0,w=0;w<S.length;w++){var y=19*(0|S.words[w])+v,_=67108863&y;y>>>=26,S.words[w]=_,v=y}return v!==0&&(S.words[S.length++]=v),S},t._prime=function(S){if(L[S])return L[S];var v;if(S==="k256")v=new D;else if(S==="p224")v=new z;else if(S==="p192")v=new $;else{if(S!=="p25519")throw new Error("Unknown prime "+S);v=new V}return L[S]=v,v},T.prototype._verify1=function(S){o(S.negative===0,"red works only with positives"),o(S.red,"red works only with red numbers")},T.prototype._verify2=function(S,v){o((S.negative|v.negative)==0,"red works only with positives"),o(S.red&&S.red===v.red,"red works only with red numbers")},T.prototype.imod=function(S){return this.prime?this.prime.ireduce(S)._forceRed(this):(f(S,S.umod(this.m)._forceRed(this)),S)},T.prototype.neg=function(S){return S.isZero()?S.clone():this.m.sub(S)._forceRed(this)},T.prototype.add=function(S,v){this._verify2(S,v);var w=S.add(v);return w.cmp(this.m)>=0&&w.isub(this.m),w._forceRed(this)},T.prototype.iadd=function(S,v){this._verify2(S,v);var w=S.iadd(v);return w.cmp(this.m)>=0&&w.isub(this.m),w},T.prototype.sub=function(S,v){this._verify2(S,v);var w=S.sub(v);return w.cmpn(0)<0&&w.iadd(this.m),w._forceRed(this)},T.prototype.isub=function(S,v){this._verify2(S,v);var w=S.isub(v);return w.cmpn(0)<0&&w.iadd(this.m),w},T.prototype.shl=function(S,v){return this._verify1(S),this.imod(S.ushln(v))},T.prototype.imul=function(S,v){return this._verify2(S,v),this.imod(S.imul(v))},T.prototype.mul=function(S,v){return this._verify2(S,v),this.imod(S.mul(v))},T.prototype.isqr=function(S){return this.imul(S,S.clone())},T.prototype.sqr=function(S){return this.mul(S,S)},T.prototype.sqrt=function(S){if(S.isZero())return S.clone();var v=this.m.andln(3);if(o(v%2==1),v===3){var w=this.m.add(new t(1)).iushrn(2);return this.pow(S,w)}for(var y=this.m.subn(1),_=0;!y.isZero()&&y.andln(1)===0;)_++,y.iushrn(1);o(!y.isZero());var C=new t(1).toRed(this),I=C.redNeg(),P=this.m.subn(1).iushrn(1),H=this.m.bitLength();for(H=new t(2*H*H).toRed(this);this.pow(H,P).cmp(I)!==0;)H.redIAdd(I);for(var W=this.pow(H,y),K=this.pow(S,y.addn(1).iushrn(1)),B=this.pow(S,y),q=_;B.cmp(C)!==0;){for(var O=B,N=0;O.cmp(C)!==0;N++)O=O.redSqr();o(N<q);var U=this.pow(W,new t(1).iushln(q-N-1));K=K.redMul(U),W=U.redSqr(),B=B.redMul(W),q=N}return K},T.prototype.invm=function(S){var v=S._invmp(this.m);return v.negative!==0?(v.negative=0,this.imod(v).redNeg()):this.imod(v)},T.prototype.pow=function(S,v){if(v.isZero())return new t(1).toRed(this);if(v.cmpn(1)===0)return S.clone();var w=new Array(16);w[0]=new t(1).toRed(this),w[1]=S;for(var y=2;y<w.length;y++)w[y]=this.mul(w[y-1],S);var _=w[0],C=0,I=0,P=v.bitLength()%26;for(P===0&&(P=26),y=v.length-1;y>=0;y--){for(var H=v.words[y],W=P-1;W>=0;W--){var K=H>>W&1;_!==w[0]&&(_=this.sqr(_)),K!==0||C!==0?(C<<=1,C|=K,(++I===4||y===0&&W===0)&&(_=this.mul(_,w[C]),I=0,C=0)):I=0}P=26}return _},T.prototype.convertTo=function(S){var v=S.umod(this.m);return v===S?v.clone():v},T.prototype.convertFrom=function(S){var v=S.clone();return v.red=null,v},t.mont=function(S){return new M(S)},r(M,T),M.prototype.convertTo=function(S){return this.imod(S.ushln(this.shift))},M.prototype.convertFrom=function(S){var v=this.imod(S.mul(this.rinv));return v.red=null,v},M.prototype.imul=function(S,v){if(S.isZero()||v.isZero())return S.words[0]=0,S.length=1,S;var w=S.imul(v),y=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=w.isub(y).iushrn(this.shift),C=_;return _.cmp(this.m)>=0?C=_.isub(this.m):_.cmpn(0)<0&&(C=_.iadd(this.m)),C._forceRed(this)},M.prototype.mul=function(S,v){if(S.isZero()||v.isZero())return new t(0)._forceRed(this);var w=S.mul(v),y=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=w.isub(y).iushrn(this.shift),C=_;return _.cmp(this.m)>=0?C=_.isub(this.m):_.cmpn(0)<0&&(C=_.iadd(this.m)),C._forceRed(this)},M.prototype.invm=function(S){return this.imod(S._invmp(this.m).mul(this.r2))._forceRed(this)}})(p===void 0||p)},{buffer:188}],187:[function(e,p,g){var u;function i(r){this.rand=r}if(p.exports=function(r){return u||(u=new i(null)),u.generate(r)},p.exports.Rand=i,i.prototype.generate=function(r){return this._rand(r)},i.prototype._rand=function(r){if(this.rand.getBytes)return this.rand.getBytes(r);for(var t=new Uint8Array(r),n=0;n<t.length;n++)t[n]=this.rand.getByte();return t},typeof self=="object")self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(r){var t=new Uint8Array(r);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(r){var t=new Uint8Array(r);return self.msCrypto.getRandomValues(t),t}:typeof window=="object"&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=e("crypto");if(typeof o.randomBytes!="function")throw new Error("Not supported");i.prototype._rand=function(r){return o.randomBytes(r)}}catch{}},{crypto:188}],188:[function(e,p,g){},{}],189:[function(e,p,g){var u=e("safe-buffer").Buffer;function i(s){u.isBuffer(s)||(s=u.from(s));for(var a=s.length/4|0,f=new Array(a),h=0;h<a;h++)f[h]=s.readUInt32BE(4*h);return f}function o(s){for(;0<s.length;s++)s[0]=0}function r(s,a,f,h,d){for(var b,m,x,k,R=f[0],F=f[1],L=f[2],j=f[3],D=s[0]^a[0],z=s[1]^a[1],$=s[2]^a[2],V=s[3]^a[3],T=4,M=1;M<d;M++)b=R[D>>>24]^F[z>>>16&255]^L[$>>>8&255]^j[255&V]^a[T++],m=R[z>>>24]^F[$>>>16&255]^L[V>>>8&255]^j[255&D]^a[T++],x=R[$>>>24]^F[V>>>16&255]^L[D>>>8&255]^j[255&z]^a[T++],k=R[V>>>24]^F[D>>>16&255]^L[z>>>8&255]^j[255&$]^a[T++],D=b,z=m,$=x,V=k;return b=(h[D>>>24]<<24|h[z>>>16&255]<<16|h[$>>>8&255]<<8|h[255&V])^a[T++],m=(h[z>>>24]<<24|h[$>>>16&255]<<16|h[V>>>8&255]<<8|h[255&D])^a[T++],x=(h[$>>>24]<<24|h[V>>>16&255]<<16|h[D>>>8&255]<<8|h[255&z])^a[T++],k=(h[V>>>24]<<24|h[D>>>16&255]<<16|h[z>>>8&255]<<8|h[255&$])^a[T++],[b>>>=0,m>>>=0,x>>>=0,k>>>=0]}var t=[0,1,2,4,8,16,32,64,128,27,54],n=function(){for(var s=new Array(256),a=0;a<256;a++)s[a]=a<128?a<<1:a<<1^283;for(var f=[],h=[],d=[[],[],[],[]],b=[[],[],[],[]],m=0,x=0,k=0;k<256;++k){var R=x^x<<1^x<<2^x<<3^x<<4;R=R>>>8^255&R^99,f[m]=R,h[R]=m;var F=s[m],L=s[F],j=s[L],D=257*s[R]^16843008*R;d[0][m]=D<<24|D>>>8,d[1][m]=D<<16|D>>>16,d[2][m]=D<<8|D>>>24,d[3][m]=D,D=16843009*j^65537*L^257*F^16843008*m,b[0][R]=D<<24|D>>>8,b[1][R]=D<<16|D>>>16,b[2][R]=D<<8|D>>>24,b[3][R]=D,m===0?m=x=1:(m=F^s[s[s[j^F]]],x^=s[s[x]])}return{SBOX:f,INV_SBOX:h,SUB_MIX:d,INV_SUB_MIX:b}}();function c(s){this._key=i(s),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var s=this._key,a=s.length,f=a+6,h=4*(f+1),d=[],b=0;b<a;b++)d[b]=s[b];for(b=a;b<h;b++){var m=d[b-1];b%a==0?(m=m<<8|m>>>24,m=n.SBOX[m>>>24]<<24|n.SBOX[m>>>16&255]<<16|n.SBOX[m>>>8&255]<<8|n.SBOX[255&m],m^=t[b/a|0]<<24):a>6&&b%a==4&&(m=n.SBOX[m>>>24]<<24|n.SBOX[m>>>16&255]<<16|n.SBOX[m>>>8&255]<<8|n.SBOX[255&m]),d[b]=d[b-a]^m}for(var x=[],k=0;k<h;k++){var R=h-k,F=d[R-(k%4?0:4)];x[k]=k<4||R<=4?F:n.INV_SUB_MIX[0][n.SBOX[F>>>24]]^n.INV_SUB_MIX[1][n.SBOX[F>>>16&255]]^n.INV_SUB_MIX[2][n.SBOX[F>>>8&255]]^n.INV_SUB_MIX[3][n.SBOX[255&F]]}this._nRounds=f,this._keySchedule=d,this._invKeySchedule=x},c.prototype.encryptBlockRaw=function(s){return r(s=i(s),this._keySchedule,n.SUB_MIX,n.SBOX,this._nRounds)},c.prototype.encryptBlock=function(s){var a=this.encryptBlockRaw(s),f=u.allocUnsafe(16);return f.writeUInt32BE(a[0],0),f.writeUInt32BE(a[1],4),f.writeUInt32BE(a[2],8),f.writeUInt32BE(a[3],12),f},c.prototype.decryptBlock=function(s){var a=(s=i(s))[1];s[1]=s[3],s[3]=a;var f=r(s,this._invKeySchedule,n.INV_SUB_MIX,n.INV_SBOX,this._nRounds),h=u.allocUnsafe(16);return h.writeUInt32BE(f[0],0),h.writeUInt32BE(f[3],4),h.writeUInt32BE(f[2],8),h.writeUInt32BE(f[1],12),h},c.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},p.exports.AES=c},{"safe-buffer":494}],190:[function(e,p,g){var u=e("./aes"),i=e("safe-buffer").Buffer,o=e("cipher-base"),r=e("inherits"),t=e("./ghash"),n=e("buffer-xor"),c=e("./incr32");function s(a,f,h,d){o.call(this);var b=i.alloc(4,0);this._cipher=new u.AES(f);var m=this._cipher.encryptBlock(b);this._ghash=new t(m),h=function(x,k,R){if(k.length===12)return x._finID=i.concat([k,i.from([0,0,0,1])]),i.concat([k,i.from([0,0,0,2])]);var F=new t(R),L=k.length,j=L%16;F.update(k),j&&(j=16-j,F.update(i.alloc(j,0))),F.update(i.alloc(8,0));var D=8*L,z=i.alloc(8);z.writeUIntBE(D,0,8),F.update(z),x._finID=F.state;var $=i.from(x._finID);return c($),$}(this,h,m),this._prev=i.from(h),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=d,this._alen=0,this._len=0,this._mode=a,this._authTag=null,this._called=!1}r(s,o),s.prototype._update=function(a){if(!this._called&&this._alen){var f=16-this._alen%16;f<16&&(f=i.alloc(f,0),this._ghash.update(f))}this._called=!0;var h=this._mode.encrypt(this,a);return this._decrypt?this._ghash.update(a):this._ghash.update(h),this._len+=a.length,h},s.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var a=n(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(f,h){var d=0;f.length!==h.length&&d++;for(var b=Math.min(f.length,h.length),m=0;m<b;++m)d+=f[m]^h[m];return d}(a,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=a,this._cipher.scrub()},s.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},s.prototype.setAuthTag=function(a){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=a},s.prototype.setAAD=function(a){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(a),this._alen+=a.length},p.exports=s},{"./aes":189,"./ghash":194,"./incr32":195,"buffer-xor":219,"cipher-base":221,inherits:440,"safe-buffer":494}],191:[function(e,p,g){var u=e("./encrypter"),i=e("./decrypter"),o=e("./modes/list.json");g.createCipher=g.Cipher=u.createCipher,g.createCipheriv=g.Cipheriv=u.createCipheriv,g.createDecipher=g.Decipher=i.createDecipher,g.createDecipheriv=g.Decipheriv=i.createDecipheriv,g.listCiphers=g.getCiphers=function(){return Object.keys(o)}},{"./decrypter":192,"./encrypter":193,"./modes/list.json":203}],192:[function(e,p,g){var u=e("./authCipher"),i=e("safe-buffer").Buffer,o=e("./modes"),r=e("./streamCipher"),t=e("cipher-base"),n=e("./aes"),c=e("evp_bytestokey");function s(h,d,b){t.call(this),this._cache=new a,this._last=void 0,this._cipher=new n.AES(d),this._prev=i.from(b),this._mode=h,this._autopadding=!0}function a(){this.cache=i.allocUnsafe(0)}function f(h,d,b){var m=o[h.toLowerCase()];if(!m)throw new TypeError("invalid suite type");if(typeof b=="string"&&(b=i.from(b)),m.mode!=="GCM"&&b.length!==m.iv)throw new TypeError("invalid iv length "+b.length);if(typeof d=="string"&&(d=i.from(d)),d.length!==m.key/8)throw new TypeError("invalid key length "+d.length);return m.type==="stream"?new r(m.module,d,b,!0):m.type==="auth"?new u(m.module,d,b,!0):new s(m.module,d,b)}e("inherits")(s,t),s.prototype._update=function(h){var d,b;this._cache.add(h);for(var m=[];d=this._cache.get(this._autopadding);)b=this._mode.decrypt(this,d),m.push(b);return i.concat(m)},s.prototype._final=function(){var h=this._cache.flush();if(this._autopadding)return function(d){var b=d[15];if(b<1||b>16)throw new Error("unable to decrypt data");for(var m=-1;++m<b;)if(d[m+(16-b)]!==b)throw new Error("unable to decrypt data");if(b!==16)return d.slice(0,16-b)}(this._mode.decrypt(this,h));if(h)throw new Error("data not multiple of block length")},s.prototype.setAutoPadding=function(h){return this._autopadding=!!h,this},a.prototype.add=function(h){this.cache=i.concat([this.cache,h])},a.prototype.get=function(h){var d;if(h){if(this.cache.length>16)return d=this.cache.slice(0,16),this.cache=this.cache.slice(16),d}else if(this.cache.length>=16)return d=this.cache.slice(0,16),this.cache=this.cache.slice(16),d;return null},a.prototype.flush=function(){if(this.cache.length)return this.cache},g.createDecipher=function(h,d){var b=o[h.toLowerCase()];if(!b)throw new TypeError("invalid suite type");var m=c(d,!1,b.key,b.iv);return f(h,m.key,m.iv)},g.createDecipheriv=f},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(e,p,g){var u=e("./modes"),i=e("./authCipher"),o=e("safe-buffer").Buffer,r=e("./streamCipher"),t=e("cipher-base"),n=e("./aes"),c=e("evp_bytestokey");function s(d,b,m){t.call(this),this._cache=new f,this._cipher=new n.AES(b),this._prev=o.from(m),this._mode=d,this._autopadding=!0}e("inherits")(s,t),s.prototype._update=function(d){var b,m;this._cache.add(d);for(var x=[];b=this._cache.get();)m=this._mode.encrypt(this,b),x.push(m);return o.concat(x)};var a=o.alloc(16,16);function f(){this.cache=o.allocUnsafe(0)}function h(d,b,m){var x=u[d.toLowerCase()];if(!x)throw new TypeError("invalid suite type");if(typeof b=="string"&&(b=o.from(b)),b.length!==x.key/8)throw new TypeError("invalid key length "+b.length);if(typeof m=="string"&&(m=o.from(m)),x.mode!=="GCM"&&m.length!==x.iv)throw new TypeError("invalid iv length "+m.length);return x.type==="stream"?new r(x.module,b,m):x.type==="auth"?new i(x.module,b,m):new s(x.module,b,m)}s.prototype._final=function(){var d=this._cache.flush();if(this._autopadding)return d=this._mode.encrypt(this,d),this._cipher.scrub(),d;if(!d.equals(a))throw this._cipher.scrub(),new Error("data not multiple of block length")},s.prototype.setAutoPadding=function(d){return this._autopadding=!!d,this},f.prototype.add=function(d){this.cache=o.concat([this.cache,d])},f.prototype.get=function(){if(this.cache.length>15){var d=this.cache.slice(0,16);return this.cache=this.cache.slice(16),d}return null},f.prototype.flush=function(){for(var d=16-this.cache.length,b=o.allocUnsafe(d),m=-1;++m<d;)b.writeUInt8(d,m);return o.concat([this.cache,b])},g.createCipheriv=h,g.createCipher=function(d,b){var m=u[d.toLowerCase()];if(!m)throw new TypeError("invalid suite type");var x=c(b,!1,m.key,m.iv);return h(d,x.key,x.iv)}},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],194:[function(e,p,g){var u=e("safe-buffer").Buffer,i=u.alloc(16,0);function o(t){var n=u.allocUnsafe(16);return n.writeUInt32BE(t[0]>>>0,0),n.writeUInt32BE(t[1]>>>0,4),n.writeUInt32BE(t[2]>>>0,8),n.writeUInt32BE(t[3]>>>0,12),n}function r(t){this.h=t,this.state=u.alloc(16,0),this.cache=u.allocUnsafe(0)}r.prototype.ghash=function(t){for(var n=-1;++n<t.length;)this.state[n]^=t[n];this._multiply()},r.prototype._multiply=function(){for(var t,n,c,s=[(t=this.h).readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)],a=[0,0,0,0],f=-1;++f<128;){for(this.state[~~(f/8)]&1<<7-f%8&&(a[0]^=s[0],a[1]^=s[1],a[2]^=s[2],a[3]^=s[3]),c=(1&s[3])!=0,n=3;n>0;n--)s[n]=s[n]>>>1|(1&s[n-1])<<31;s[0]=s[0]>>>1,c&&(s[0]=s[0]^225<<24)}this.state=o(a)},r.prototype.update=function(t){var n;for(this.cache=u.concat([this.cache,t]);this.cache.length>=16;)n=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(n)},r.prototype.final=function(t,n){return this.cache.length&&this.ghash(u.concat([this.cache,i],16)),this.ghash(o([0,t,0,n])),this.state},p.exports=r},{"safe-buffer":494}],195:[function(e,p,g){p.exports=function(u){for(var i,o=u.length;o--;){if((i=u.readUInt8(o))!==255){i++,u.writeUInt8(i,o);break}u.writeUInt8(0,o)}}},{}],196:[function(e,p,g){var u=e("buffer-xor");g.encrypt=function(i,o){var r=u(o,i._prev);return i._prev=i._cipher.encryptBlock(r),i._prev},g.decrypt=function(i,o){var r=i._prev;i._prev=o;var t=i._cipher.decryptBlock(o);return u(t,r)}},{"buffer-xor":219}],197:[function(e,p,g){var u=e("safe-buffer").Buffer,i=e("buffer-xor");function o(r,t,n){var c=t.length,s=i(t,r._cache);return r._cache=r._cache.slice(c),r._prev=u.concat([r._prev,n?t:s]),s}g.encrypt=function(r,t,n){for(var c,s=u.allocUnsafe(0);t.length;){if(r._cache.length===0&&(r._cache=r._cipher.encryptBlock(r._prev),r._prev=u.allocUnsafe(0)),!(r._cache.length<=t.length)){s=u.concat([s,o(r,t,n)]);break}c=r._cache.length,s=u.concat([s,o(r,t.slice(0,c),n)]),t=t.slice(c)}return s}},{"buffer-xor":219,"safe-buffer":494}],198:[function(e,p,g){var u=e("safe-buffer").Buffer;function i(r,t,n){for(var c,s,a=-1,f=0;++a<8;)c=t&1<<7-a?128:0,f+=(128&(s=r._cipher.encryptBlock(r._prev)[0]^c))>>a%8,r._prev=o(r._prev,n?c:s);return f}function o(r,t){var n=r.length,c=-1,s=u.allocUnsafe(r.length);for(r=u.concat([r,u.from([t])]);++c<n;)s[c]=r[c]<<1|r[c+1]>>7;return s}g.encrypt=function(r,t,n){for(var c=t.length,s=u.allocUnsafe(c),a=-1;++a<c;)s[a]=i(r,t[a],n);return s}},{"safe-buffer":494}],199:[function(e,p,g){var u=e("safe-buffer").Buffer;function i(o,r,t){var n=o._cipher.encryptBlock(o._prev)[0]^r;return o._prev=u.concat([o._prev.slice(1),u.from([t?r:n])]),n}g.encrypt=function(o,r,t){for(var n=r.length,c=u.allocUnsafe(n),s=-1;++s<n;)c[s]=i(o,r[s],t);return c}},{"safe-buffer":494}],200:[function(e,p,g){var u=e("buffer-xor"),i=e("safe-buffer").Buffer,o=e("../incr32");function r(t){var n=t._cipher.encryptBlockRaw(t._prev);return o(t._prev),n}g.encrypt=function(t,n){var c=Math.ceil(n.length/16),s=t._cache.length;t._cache=i.concat([t._cache,i.allocUnsafe(16*c)]);for(var a=0;a<c;a++){var f=r(t),h=s+16*a;t._cache.writeUInt32BE(f[0],h+0),t._cache.writeUInt32BE(f[1],h+4),t._cache.writeUInt32BE(f[2],h+8),t._cache.writeUInt32BE(f[3],h+12)}var d=t._cache.slice(0,n.length);return t._cache=t._cache.slice(n.length),u(n,d)}},{"../incr32":195,"buffer-xor":219,"safe-buffer":494}],201:[function(e,p,g){g.encrypt=function(u,i){return u._cipher.encryptBlock(i)},g.decrypt=function(u,i){return u._cipher.decryptBlock(i)}},{}],202:[function(e,p,g){var u={ECB:e("./ecb"),CBC:e("./cbc"),CFB:e("./cfb"),CFB8:e("./cfb8"),CFB1:e("./cfb1"),OFB:e("./ofb"),CTR:e("./ctr"),GCM:e("./ctr")},i=e("./list.json");for(var o in i)i[o].module=u[i[o].mode];p.exports=i},{"./cbc":196,"./cfb":197,"./cfb1":198,"./cfb8":199,"./ctr":200,"./ecb":201,"./list.json":203,"./ofb":204}],203:[function(e,p,g){p.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},{}],204:[function(e,p,g){(function(u){(function(){var i=e("buffer-xor");function o(r){return r._prev=r._cipher.encryptBlock(r._prev),r._prev}g.encrypt=function(r,t){for(;r._cache.length<t.length;)r._cache=u.concat([r._cache,o(r)]);var n=r._cache.slice(0,t.length);return r._cache=r._cache.slice(t.length),i(t,n)}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,"buffer-xor":219}],205:[function(e,p,g){var u=e("./aes"),i=e("safe-buffer").Buffer,o=e("cipher-base");function r(t,n,c,s){o.call(this),this._cipher=new u.AES(n),this._prev=i.from(c),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=s,this._mode=t}e("inherits")(r,o),r.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},r.prototype._final=function(){this._cipher.scrub()},p.exports=r},{"./aes":189,"cipher-base":221,inherits:440,"safe-buffer":494}],206:[function(e,p,g){var u=e("browserify-des"),i=e("browserify-aes/browser"),o=e("browserify-aes/modes"),r=e("browserify-des/modes"),t=e("evp_bytestokey");function n(s,a,f){if(s=s.toLowerCase(),o[s])return i.createCipheriv(s,a,f);if(r[s])return new u({key:a,iv:f,mode:s});throw new TypeError("invalid suite type")}function c(s,a,f){if(s=s.toLowerCase(),o[s])return i.createDecipheriv(s,a,f);if(r[s])return new u({key:a,iv:f,mode:s,decrypt:!0});throw new TypeError("invalid suite type")}g.createCipher=g.Cipher=function(s,a){var f,h;if(s=s.toLowerCase(),o[s])f=o[s].key,h=o[s].iv;else{if(!r[s])throw new TypeError("invalid suite type");f=8*r[s].key,h=r[s].iv}var d=t(a,!1,f,h);return n(s,d.key,d.iv)},g.createCipheriv=g.Cipheriv=n,g.createDecipher=g.Decipher=function(s,a){var f,h;if(s=s.toLowerCase(),o[s])f=o[s].key,h=o[s].iv;else{if(!r[s])throw new TypeError("invalid suite type");f=8*r[s].key,h=r[s].iv}var d=t(a,!1,f,h);return c(s,d.key,d.iv)},g.createDecipheriv=g.Decipheriv=c,g.listCiphers=g.getCiphers=function(){return Object.keys(r).concat(i.getCiphers())}},{"browserify-aes/browser":191,"browserify-aes/modes":202,"browserify-des":207,"browserify-des/modes":208,evp_bytestokey:423}],207:[function(e,p,g){var u=e("cipher-base"),i=e("des.js"),o=e("inherits"),r=e("safe-buffer").Buffer,t={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function n(c){u.call(this);var s,a=c.mode.toLowerCase(),f=t[a];s=c.decrypt?"decrypt":"encrypt";var h=c.key;r.isBuffer(h)||(h=r.from(h)),a!=="des-ede"&&a!=="des-ede-cbc"||(h=r.concat([h,h.slice(0,8)]));var d=c.iv;r.isBuffer(d)||(d=r.from(d)),this._des=f.create({key:h,iv:d,type:s})}t.des=t["des-cbc"],t.des3=t["des-ede3-cbc"],p.exports=n,o(n,u),n.prototype._update=function(c){return r.from(this._des.update(c))},n.prototype._final=function(){return r.from(this._des.final())}},{"cipher-base":221,"des.js":394,inherits:440,"safe-buffer":494}],208:[function(e,p,g){g["des-ecb"]={key:8,iv:0},g["des-cbc"]=g.des={key:8,iv:8},g["des-ede3-cbc"]=g.des3={key:24,iv:8},g["des-ede3"]={key:24,iv:0},g["des-ede-cbc"]={key:16,iv:8},g["des-ede"]={key:16,iv:0}},{}],209:[function(e,p,g){(function(u){(function(){var i=e("bn.js"),o=e("randombytes");function r(n){var c,s=n.modulus.byteLength();do c=new i(o(s));while(c.cmp(n.modulus)>=0||!c.umod(n.prime1)||!c.umod(n.prime2));return c}function t(n,c){var s=function(L){var j=r(L);return{blinder:j.toRed(i.mont(L.modulus)).redPow(new i(L.publicExponent)).fromRed(),unblinder:j.invm(L.modulus)}}(c),a=c.modulus.byteLength(),f=new i(n).mul(s.blinder).umod(c.modulus),h=f.toRed(i.mont(c.prime1)),d=f.toRed(i.mont(c.prime2)),b=c.coefficient,m=c.prime1,x=c.prime2,k=h.redPow(c.exponent1).fromRed(),R=d.redPow(c.exponent2).fromRed(),F=k.isub(R).imul(b).umod(m).imul(x);return R.iadd(F).imul(s.unblinder).umod(c.modulus).toArrayLike(u,"be",a)}t.getr=r,p.exports=t}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(e,p,g){p.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(e,p,g){p.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],212:[function(e,p,g){p.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],213:[function(e,p,g){var u=e("safe-buffer").Buffer,i=e("create-hash"),o=e("readable-stream"),r=e("inherits"),t=e("./sign"),n=e("./verify"),c=e("./algorithms.json");function s(d){o.Writable.call(this);var b=c[d];if(!b)throw new Error("Unknown message digest");this._hashType=b.hash,this._hash=i(b.hash),this._tag=b.id,this._signType=b.sign}function a(d){o.Writable.call(this);var b=c[d];if(!b)throw new Error("Unknown message digest");this._hash=i(b.hash),this._tag=b.id,this._signType=b.sign}function f(d){return new s(d)}function h(d){return new a(d)}Object.keys(c).forEach(function(d){c[d].id=u.from(c[d].id,"hex"),c[d.toLowerCase()]=c[d]}),r(s,o.Writable),s.prototype._write=function(d,b,m){this._hash.update(d),m()},s.prototype.update=function(d,b){return typeof d=="string"&&(d=u.from(d,b)),this._hash.update(d),this},s.prototype.sign=function(d,b){this.end();var m=this._hash.digest(),x=t(m,d,this._hashType,this._signType,this._tag);return b?x.toString(b):x},r(a,o.Writable),a.prototype._write=function(d,b,m){this._hash.update(d),m()},a.prototype.update=function(d,b){return typeof d=="string"&&(d=u.from(d,b)),this._hash.update(d),this},a.prototype.verify=function(d,b,m){typeof b=="string"&&(b=u.from(b,m)),this.end();var x=this._hash.digest();return n(b,x,d,this._signType,this._tag)},p.exports={Sign:f,Verify:h,createSign:f,createVerify:h}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(e,p,g){var u=e("safe-buffer").Buffer,i=e("create-hmac"),o=e("browserify-rsa"),r=e("elliptic").ec,t=e("bn.js"),n=e("parse-asn1"),c=e("./curves.json");function s(d,b,m,x){if((d=u.from(d.toArray())).length<b.byteLength()){var k=u.alloc(b.byteLength()-d.length);d=u.concat([k,d])}var R=m.length,F=function(D,z){D=(D=a(D,z)).mod(z);var $=u.from(D.toArray());if($.length<z.byteLength()){var V=u.alloc(z.byteLength()-$.length);$=u.concat([V,$])}return $}(m,b),L=u.alloc(R);L.fill(1);var j=u.alloc(R);return j=i(x,j).update(L).update(u.from([0])).update(d).update(F).digest(),L=i(x,j).update(L).digest(),{k:j=i(x,j).update(L).update(u.from([1])).update(d).update(F).digest(),v:L=i(x,j).update(L).digest()}}function a(d,b){var m=new t(d),x=(d.length<<3)-b.bitLength();return x>0&&m.ishrn(x),m}function f(d,b,m){var x,k;do{for(x=u.alloc(0);8*x.length<d.bitLength();)b.v=i(m,b.k).update(b.v).digest(),x=u.concat([x,b.v]);k=a(x,d),b.k=i(m,b.k).update(b.v).update(u.from([0])).digest(),b.v=i(m,b.k).update(b.v).digest()}while(k.cmp(d)!==-1);return k}function h(d,b,m,x){return d.toRed(t.mont(m)).redPow(b).fromRed().mod(x)}p.exports=function(d,b,m,x,k){var R=n(b);if(R.curve){if(x!=="ecdsa"&&x!=="ecdsa/rsa")throw new Error("wrong private key type");return function(D,z){var $=c[z.curve.join(".")];if(!$)throw new Error("unknown curve "+z.curve.join("."));var V=new r($).keyFromPrivate(z.privateKey).sign(D);return u.from(V.toDER())}(d,R)}if(R.type==="dsa"){if(x!=="dsa")throw new Error("wrong private key type");return function(D,z,$){for(var V,T=z.params.priv_key,M=z.params.p,S=z.params.q,v=z.params.g,w=new t(0),y=a(D,S).mod(S),_=!1,C=s(T,S,D,$);_===!1;)V=f(S,C,$),w=h(v,V,M,S),(_=V.invm(S).imul(y.add(T.mul(w))).mod(S)).cmpn(0)===0&&(_=!1,w=new t(0));return function(I,P){I=I.toArray(),P=P.toArray(),128&I[0]&&(I=[0].concat(I)),128&P[0]&&(P=[0].concat(P));var H=[48,I.length+P.length+4,2,I.length];return H=H.concat(I,[2,P.length],P),u.from(H)}(w,_)}(d,R,m)}if(x!=="rsa"&&x!=="ecdsa/rsa")throw new Error("wrong private key type");d=u.concat([k,d]);for(var F=R.modulus.byteLength(),L=[0,1];d.length+L.length+1<F;)L.push(255);L.push(0);for(var j=-1;++j<d.length;)L.push(d[j]);return o(L,R)},p.exports.getKey=s,p.exports.makeKey=f},{"./curves.json":212,"bn.js":186,"browserify-rsa":209,"create-hmac":388,elliptic:405,"parse-asn1":459,"safe-buffer":494}],215:[function(e,p,g){var u=e("safe-buffer").Buffer,i=e("bn.js"),o=e("elliptic").ec,r=e("parse-asn1"),t=e("./curves.json");function n(c,s){if(c.cmpn(0)<=0)throw new Error("invalid sig");if(c.cmp(s)>=s)throw new Error("invalid sig")}p.exports=function(c,s,a,f,h){var d=r(a);if(d.type==="ec"){if(f!=="ecdsa"&&f!=="ecdsa/rsa")throw new Error("wrong public key type");return function(L,j,D){var z=t[D.data.algorithm.curve.join(".")];if(!z)throw new Error("unknown curve "+D.data.algorithm.curve.join("."));var $=new o(z),V=D.data.subjectPrivateKey.data;return $.verify(j,L,V)}(c,s,d)}if(d.type==="dsa"){if(f!=="dsa")throw new Error("wrong public key type");return function(L,j,D){var z=D.data.p,$=D.data.q,V=D.data.g,T=D.data.pub_key,M=r.signature.decode(L,"der"),S=M.s,v=M.r;n(S,$),n(v,$);var w=i.mont(z),y=S.invm($);return V.toRed(w).redPow(new i(j).mul(y).mod($)).fromRed().mul(T.toRed(w).redPow(v.mul(y).mod($)).fromRed()).mod(z).mod($).cmp(v)===0}(c,s,d)}if(f!=="rsa"&&f!=="ecdsa/rsa")throw new Error("wrong public key type");s=u.concat([h,s]);for(var b=d.modulus.byteLength(),m=[1],x=0;s.length+m.length+2<b;)m.push(255),x++;m.push(0);for(var k=-1;++k<s.length;)m.push(s[k]);m=u.from(m);var R=i.mont(d.modulus);c=(c=new i(c).toRed(R)).redPow(new i(d.publicExponent)),c=u.from(c.fromRed().toArray());var F=x<8?1:0;for(b=Math.min(c.length,m.length),c.length!==m.length&&(F=1),k=-1;++k<b;)F|=c[k]^m[k];return F===0}},{"./curves.json":212,"bn.js":186,elliptic:405,"parse-asn1":459,"safe-buffer":494}],216:[function(e,p,g){},{}],217:[function(e,p,g){var u=e("buffer"),i=u.Buffer;function o(t,n){for(var c in t)n[c]=t[c]}function r(t,n,c){return i(t,n,c)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?p.exports=u:(o(u,g),g.Buffer=r),o(i,r),r.from=function(t,n,c){if(typeof t=="number")throw new TypeError("Argument must not be a number");return i(t,n,c)},r.alloc=function(t,n,c){if(typeof t!="number")throw new TypeError("Argument must be a number");var s=i(t);return n!==void 0?typeof c=="string"?s.fill(n,c):s.fill(n):s.fill(0),s},r.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return i(t)},r.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return u.SlowBuffer(t)}},{buffer:220}],218:[function(e,p,g){var u=e("safe-buffer").Buffer,i=u.isEncoding||function(d){switch((d=""+d)&&d.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(d){var b;switch(this.encoding=function(m){var x=function(k){if(!k)return"utf8";for(var R;;)switch(k){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 k;default:if(R)return;k=(""+k).toLowerCase(),R=!0}}(m);if(typeof x!="string"&&(u.isEncoding===i||!i(m)))throw new Error("Unknown encoding: "+m);return x||m}(d),this.encoding){case"utf16le":this.text=n,this.end=c,b=4;break;case"utf8":this.fillLast=t,b=4;break;case"base64":this.text=s,this.end=a,b=3;break;default:return this.write=f,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=u.allocUnsafe(b)}function r(d){return d<=127?0:d>>5==6?2:d>>4==14?3:d>>3==30?4:d>>6==2?-1:-2}function t(d){var b=this.lastTotal-this.lastNeed,m=function(x,k,R){if((192&k[0])!=128)return x.lastNeed=0,"�";if(x.lastNeed>1&&k.length>1){if((192&k[1])!=128)return x.lastNeed=1,"�";if(x.lastNeed>2&&k.length>2&&(192&k[2])!=128)return x.lastNeed=2,"�"}}(this,d);return m!==void 0?m:this.lastNeed<=d.length?(d.copy(this.lastChar,b,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(d.copy(this.lastChar,b,0,d.length),void(this.lastNeed-=d.length))}function n(d,b){if((d.length-b)%2==0){var m=d.toString("utf16le",b);if(m){var x=m.charCodeAt(m.length-1);if(x>=55296&&x<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1],m.slice(0,-1)}return m}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=d[d.length-1],d.toString("utf16le",b,d.length-1)}function c(d){var b=d&&d.length?this.write(d):"";if(this.lastNeed){var m=this.lastTotal-this.lastNeed;return b+this.lastChar.toString("utf16le",0,m)}return b}function s(d,b){var m=(d.length-b)%3;return m===0?d.toString("base64",b):(this.lastNeed=3-m,this.lastTotal=3,m===1?this.lastChar[0]=d[d.length-1]:(this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1]),d.toString("base64",b,d.length-m))}function a(d){var b=d&&d.length?this.write(d):"";return this.lastNeed?b+this.lastChar.toString("base64",0,3-this.lastNeed):b}function f(d){return d.toString(this.encoding)}function h(d){return d&&d.length?this.write(d):""}g.StringDecoder=o,o.prototype.write=function(d){if(d.length===0)return"";var b,m;if(this.lastNeed){if((b=this.fillLast(d))===void 0)return"";m=this.lastNeed,this.lastNeed=0}else m=0;return m<d.length?b?b+this.text(d,m):this.text(d,m):b||""},o.prototype.end=function(d){var b=d&&d.length?this.write(d):"";return this.lastNeed?b+"�":b},o.prototype.text=function(d,b){var m=function(k,R,F){var L=R.length-1;if(L<F)return 0;var j=r(R[L]);return j>=0?(j>0&&(k.lastNeed=j-1),j):--L<F||j===-2?0:(j=r(R[L]))>=0?(j>0&&(k.lastNeed=j-2),j):--L<F||j===-2?0:(j=r(R[L]))>=0?(j>0&&(j===2?j=0:k.lastNeed=j-3),j):0}(this,d,b);if(!this.lastNeed)return d.toString("utf8",b);this.lastTotal=m;var x=d.length-(m-this.lastNeed);return d.copy(this.lastChar,0,x),d.toString("utf8",b,x)},o.prototype.fillLast=function(d){if(this.lastNeed<=d.length)return d.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);d.copy(this.lastChar,this.lastTotal-this.lastNeed,0,d.length),this.lastNeed-=d.length}},{"safe-buffer":217}],219:[function(e,p,g){(function(u){(function(){p.exports=function(i,o){for(var r=Math.min(i.length,o.length),t=new u(r),n=0;n<r;++n)t[n]=i[n]^o[n];return t}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],220:[function(e,p,g){(function(u){(function(){var i=e("base64-js"),o=e("ieee754");g.Buffer=t,g.SlowBuffer=function(O){return+O!=O&&(O=0),t.alloc(+O)},g.INSPECT_MAX_BYTES=50;function r(O){if(O>2147483647)throw new RangeError('The value "'+O+'" is invalid for option "size"');var N=new Uint8Array(O);return N.__proto__=t.prototype,N}function t(O,N,U){if(typeof O=="number"){if(typeof N=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return s(O)}return n(O,N,U)}function n(O,N,U){if(typeof O=="string")return function(G,J){if(typeof J=="string"&&J!==""||(J="utf8"),!t.isEncoding(J))throw new TypeError("Unknown encoding: "+J);var ne=0|h(G,J),ie=r(ne),Y=ie.write(G,J);return Y!==ne&&(ie=ie.slice(0,Y)),ie}(O,N);if(ArrayBuffer.isView(O))return a(O);if(O==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof O);if(B(O,ArrayBuffer)||O&&B(O.buffer,ArrayBuffer))return function(G,J,ne){if(J<0||G.byteLength<J)throw new RangeError('"offset" is outside of buffer bounds');if(G.byteLength<J+(ne||0))throw new RangeError('"length" is outside of buffer bounds');var ie;return ie=J===void 0&&ne===void 0?new Uint8Array(G):ne===void 0?new Uint8Array(G,J):new Uint8Array(G,J,ne),ie.__proto__=t.prototype,ie}(O,N,U);if(typeof O=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var X=O.valueOf&&O.valueOf();if(X!=null&&X!==O)return t.from(X,N,U);var Z=function(G){if(t.isBuffer(G)){var J=0|f(G.length),ne=r(J);return ne.length===0||G.copy(ne,0,0,J),ne}if(G.length!==void 0)return typeof G.length!="number"||q(G.length)?r(0):a(G);if(G.type==="Buffer"&&Array.isArray(G.data))return a(G.data)}(O);if(Z)return Z;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof O[Symbol.toPrimitive]=="function")return t.from(O[Symbol.toPrimitive]("string"),N,U);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof O)}function c(O){if(typeof O!="number")throw new TypeError('"size" argument must be of type number');if(O<0)throw new RangeError('The value "'+O+'" is invalid for option "size"')}function s(O){return c(O),r(O<0?0:0|f(O))}function a(O){for(var N=O.length<0?0:0|f(O.length),U=r(N),X=0;X<N;X+=1)U[X]=255&O[X];return U}function f(O){if(O>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|O}function h(O,N){if(t.isBuffer(O))return O.length;if(ArrayBuffer.isView(O)||B(O,ArrayBuffer))return O.byteLength;if(typeof O!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof O);var U=O.length,X=arguments.length>2&&arguments[2]===!0;if(!X&&U===0)return 0;for(var Z=!1;;)switch(N){case"ascii":case"latin1":case"binary":return U;case"utf8":case"utf-8":return H(O).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*U;case"hex":return U>>>1;case"base64":return W(O).length;default:if(Z)return X?-1:H(O).length;N=(""+N).toLowerCase(),Z=!0}}function d(O,N,U){var X=!1;if((N===void 0||N<0)&&(N=0),N>this.length||((U===void 0||U>this.length)&&(U=this.length),U<=0)||(U>>>=0)<=(N>>>=0))return"";for(O||(O="utf8");;)switch(O){case"hex":return M(this,N,U);case"utf8":case"utf-8":return $(this,N,U);case"ascii":return V(this,N,U);case"latin1":case"binary":return T(this,N,U);case"base64":return z(this,N,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,N,U);default:if(X)throw new TypeError("Unknown encoding: "+O);O=(O+"").toLowerCase(),X=!0}}function b(O,N,U){var X=O[N];O[N]=O[U],O[U]=X}function m(O,N,U,X,Z){if(O.length===0)return-1;if(typeof U=="string"?(X=U,U=0):U>2147483647?U=2147483647:U<-2147483648&&(U=-2147483648),q(U=+U)&&(U=Z?0:O.length-1),U<0&&(U=O.length+U),U>=O.length){if(Z)return-1;U=O.length-1}else if(U<0){if(!Z)return-1;U=0}if(typeof N=="string"&&(N=t.from(N,X)),t.isBuffer(N))return N.length===0?-1:x(O,N,U,X,Z);if(typeof N=="number")return N&=255,typeof Uint8Array.prototype.indexOf=="function"?Z?Uint8Array.prototype.indexOf.call(O,N,U):Uint8Array.prototype.lastIndexOf.call(O,N,U):x(O,[N],U,X,Z);throw new TypeError("val must be string, number or Buffer")}function x(O,N,U,X,Z){var G,J=1,ne=O.length,ie=N.length;if(X!==void 0&&((X=String(X).toLowerCase())==="ucs2"||X==="ucs-2"||X==="utf16le"||X==="utf-16le")){if(O.length<2||N.length<2)return-1;J=2,ne/=2,ie/=2,U/=2}function Y(se,le){return J===1?se[le]:se.readUInt16BE(le*J)}if(Z){var te=-1;for(G=U;G<ne;G++)if(Y(O,G)===Y(N,te===-1?0:G-te)){if(te===-1&&(te=G),G-te+1===ie)return te*J}else te!==-1&&(G-=G-te),te=-1}else for(U+ie>ne&&(U=ne-ie),G=U;G>=0;G--){for(var ee=!0,ae=0;ae<ie;ae++)if(Y(O,G+ae)!==Y(N,ae)){ee=!1;break}if(ee)return G}return-1}function k(O,N,U,X){U=Number(U)||0;var Z=O.length-U;X?(X=Number(X))>Z&&(X=Z):X=Z;var G=N.length;X>G/2&&(X=G/2);for(var J=0;J<X;++J){var ne=parseInt(N.substr(2*J,2),16);if(q(ne))return J;O[U+J]=ne}return J}function R(O,N,U,X){return K(H(N,O.length-U),O,U,X)}function F(O,N,U,X){return K(function(Z){for(var G=[],J=0;J<Z.length;++J)G.push(255&Z.charCodeAt(J));return G}(N),O,U,X)}function L(O,N,U,X){return F(O,N,U,X)}function j(O,N,U,X){return K(W(N),O,U,X)}function D(O,N,U,X){return K(function(Z,G){for(var J,ne,ie,Y=[],te=0;te<Z.length&&!((G-=2)<0);++te)J=Z.charCodeAt(te),ne=J>>8,ie=J%256,Y.push(ie),Y.push(ne);return Y}(N,O.length-U),O,U,X)}function z(O,N,U){return N===0&&U===O.length?i.fromByteArray(O):i.fromByteArray(O.slice(N,U))}function $(O,N,U){U=Math.min(O.length,U);for(var X=[],Z=N;Z<U;){var G,J,ne,ie,Y=O[Z],te=null,ee=Y>239?4:Y>223?3:Y>191?2:1;if(Z+ee<=U)switch(ee){case 1:Y<128&&(te=Y);break;case 2:(192&(G=O[Z+1]))==128&&(ie=(31&Y)<<6|63&G)>127&&(te=ie);break;case 3:G=O[Z+1],J=O[Z+2],(192&G)==128&&(192&J)==128&&(ie=(15&Y)<<12|(63&G)<<6|63&J)>2047&&(ie<55296||ie>57343)&&(te=ie);break;case 4:G=O[Z+1],J=O[Z+2],ne=O[Z+3],(192&G)==128&&(192&J)==128&&(192&ne)==128&&(ie=(15&Y)<<18|(63&G)<<12|(63&J)<<6|63&ne)>65535&&ie<1114112&&(te=ie)}te===null?(te=65533,ee=1):te>65535&&(te-=65536,X.push(te>>>10&1023|55296),te=56320|1023&te),X.push(te),Z+=ee}return function(ae){var se=ae.length;if(se<=4096)return String.fromCharCode.apply(String,ae);for(var le="",ce=0;ce<se;)le+=String.fromCharCode.apply(String,ae.slice(ce,ce+=4096));return le}(X)}g.kMaxLength=2147483647,t.TYPED_ARRAY_SUPPORT=function(){try{var O=new Uint8Array(1);return O.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},O.foo()===42}catch{return!1}}(),t.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(t.prototype,"parent",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.buffer}}),Object.defineProperty(t.prototype,"offset",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.byteOffset}}),typeof Symbol<"u"&&Symbol.species!=null&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),t.poolSize=8192,t.from=function(O,N,U){return n(O,N,U)},t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array,t.alloc=function(O,N,U){return function(X,Z,G){return c(X),X<=0?r(X):Z!==void 0?typeof G=="string"?r(X).fill(Z,G):r(X).fill(Z):r(X)}(O,N,U)},t.allocUnsafe=function(O){return s(O)},t.allocUnsafeSlow=function(O){return s(O)},t.isBuffer=function(O){return O!=null&&O._isBuffer===!0&&O!==t.prototype},t.compare=function(O,N){if(B(O,Uint8Array)&&(O=t.from(O,O.offset,O.byteLength)),B(N,Uint8Array)&&(N=t.from(N,N.offset,N.byteLength)),!t.isBuffer(O)||!t.isBuffer(N))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(O===N)return 0;for(var U=O.length,X=N.length,Z=0,G=Math.min(U,X);Z<G;++Z)if(O[Z]!==N[Z]){U=O[Z],X=N[Z];break}return U<X?-1:X<U?1:0},t.isEncoding=function(O){switch(String(O).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}},t.concat=function(O,N){if(!Array.isArray(O))throw new TypeError('"list" argument must be an Array of Buffers');if(O.length===0)return t.alloc(0);var U;if(N===void 0)for(N=0,U=0;U<O.length;++U)N+=O[U].length;var X=t.allocUnsafe(N),Z=0;for(U=0;U<O.length;++U){var G=O[U];if(B(G,Uint8Array)&&(G=t.from(G)),!t.isBuffer(G))throw new TypeError('"list" argument must be an Array of Buffers');G.copy(X,Z),Z+=G.length}return X},t.byteLength=h,t.prototype._isBuffer=!0,t.prototype.swap16=function(){var O=this.length;if(O%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var N=0;N<O;N+=2)b(this,N,N+1);return this},t.prototype.swap32=function(){var O=this.length;if(O%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var N=0;N<O;N+=4)b(this,N,N+3),b(this,N+1,N+2);return this},t.prototype.swap64=function(){var O=this.length;if(O%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var N=0;N<O;N+=8)b(this,N,N+7),b(this,N+1,N+6),b(this,N+2,N+5),b(this,N+3,N+4);return this},t.prototype.toString=function(){var O=this.length;return O===0?"":arguments.length===0?$(this,0,O):d.apply(this,arguments)},t.prototype.toLocaleString=t.prototype.toString,t.prototype.equals=function(O){if(!t.isBuffer(O))throw new TypeError("Argument must be a Buffer");return this===O||t.compare(this,O)===0},t.prototype.inspect=function(){var O="",N=g.INSPECT_MAX_BYTES;return O=this.toString("hex",0,N).replace(/(.{2})/g,"$1 ").trim(),this.length>N&&(O+=" ... "),"<Buffer "+O+">"},t.prototype.compare=function(O,N,U,X,Z){if(B(O,Uint8Array)&&(O=t.from(O,O.offset,O.byteLength)),!t.isBuffer(O))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof O);if(N===void 0&&(N=0),U===void 0&&(U=O?O.length:0),X===void 0&&(X=0),Z===void 0&&(Z=this.length),N<0||U>O.length||X<0||Z>this.length)throw new RangeError("out of range index");if(X>=Z&&N>=U)return 0;if(X>=Z)return-1;if(N>=U)return 1;if(this===O)return 0;for(var G=(Z>>>=0)-(X>>>=0),J=(U>>>=0)-(N>>>=0),ne=Math.min(G,J),ie=this.slice(X,Z),Y=O.slice(N,U),te=0;te<ne;++te)if(ie[te]!==Y[te]){G=ie[te],J=Y[te];break}return G<J?-1:J<G?1:0},t.prototype.includes=function(O,N,U){return this.indexOf(O,N,U)!==-1},t.prototype.indexOf=function(O,N,U){return m(this,O,N,U,!0)},t.prototype.lastIndexOf=function(O,N,U){return m(this,O,N,U,!1)},t.prototype.write=function(O,N,U,X){if(N===void 0)X="utf8",U=this.length,N=0;else if(U===void 0&&typeof N=="string")X=N,U=this.length,N=0;else{if(!isFinite(N))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");N>>>=0,isFinite(U)?(U>>>=0,X===void 0&&(X="utf8")):(X=U,U=void 0)}var Z=this.length-N;if((U===void 0||U>Z)&&(U=Z),O.length>0&&(U<0||N<0)||N>this.length)throw new RangeError("Attempt to write outside buffer bounds");X||(X="utf8");for(var G=!1;;)switch(X){case"hex":return k(this,O,N,U);case"utf8":case"utf-8":return R(this,O,N,U);case"ascii":return F(this,O,N,U);case"latin1":case"binary":return L(this,O,N,U);case"base64":return j(this,O,N,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,O,N,U);default:if(G)throw new TypeError("Unknown encoding: "+X);X=(""+X).toLowerCase(),G=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function V(O,N,U){var X="";U=Math.min(O.length,U);for(var Z=N;Z<U;++Z)X+=String.fromCharCode(127&O[Z]);return X}function T(O,N,U){var X="";U=Math.min(O.length,U);for(var Z=N;Z<U;++Z)X+=String.fromCharCode(O[Z]);return X}function M(O,N,U){var X=O.length;(!N||N<0)&&(N=0),(!U||U<0||U>X)&&(U=X);for(var Z="",G=N;G<U;++G)Z+=P(O[G]);return Z}function S(O,N,U){for(var X=O.slice(N,U),Z="",G=0;G<X.length;G+=2)Z+=String.fromCharCode(X[G]+256*X[G+1]);return Z}function v(O,N,U){if(O%1!=0||O<0)throw new RangeError("offset is not uint");if(O+N>U)throw new RangeError("Trying to access beyond buffer length")}function w(O,N,U,X,Z,G){if(!t.isBuffer(O))throw new TypeError('"buffer" argument must be a Buffer instance');if(N>Z||N<G)throw new RangeError('"value" argument is out of bounds');if(U+X>O.length)throw new RangeError("Index out of range")}function y(O,N,U,X,Z,G){if(U+X>O.length)throw new RangeError("Index out of range");if(U<0)throw new RangeError("Index out of range")}function _(O,N,U,X,Z){return N=+N,U>>>=0,Z||y(O,0,U,4),o.write(O,N,U,X,23,4),U+4}function C(O,N,U,X,Z){return N=+N,U>>>=0,Z||y(O,0,U,8),o.write(O,N,U,X,52,8),U+8}t.prototype.slice=function(O,N){var U=this.length;(O=~~O)<0?(O+=U)<0&&(O=0):O>U&&(O=U),(N=N===void 0?U:~~N)<0?(N+=U)<0&&(N=0):N>U&&(N=U),N<O&&(N=O);var X=this.subarray(O,N);return X.__proto__=t.prototype,X},t.prototype.readUIntLE=function(O,N,U){O>>>=0,N>>>=0,U||v(O,N,this.length);for(var X=this[O],Z=1,G=0;++G<N&&(Z*=256);)X+=this[O+G]*Z;return X},t.prototype.readUIntBE=function(O,N,U){O>>>=0,N>>>=0,U||v(O,N,this.length);for(var X=this[O+--N],Z=1;N>0&&(Z*=256);)X+=this[O+--N]*Z;return X},t.prototype.readUInt8=function(O,N){return O>>>=0,N||v(O,1,this.length),this[O]},t.prototype.readUInt16LE=function(O,N){return O>>>=0,N||v(O,2,this.length),this[O]|this[O+1]<<8},t.prototype.readUInt16BE=function(O,N){return O>>>=0,N||v(O,2,this.length),this[O]<<8|this[O+1]},t.prototype.readUInt32LE=function(O,N){return O>>>=0,N||v(O,4,this.length),(this[O]|this[O+1]<<8|this[O+2]<<16)+16777216*this[O+3]},t.prototype.readUInt32BE=function(O,N){return O>>>=0,N||v(O,4,this.length),16777216*this[O]+(this[O+1]<<16|this[O+2]<<8|this[O+3])},t.prototype.readIntLE=function(O,N,U){O>>>=0,N>>>=0,U||v(O,N,this.length);for(var X=this[O],Z=1,G=0;++G<N&&(Z*=256);)X+=this[O+G]*Z;return X>=(Z*=128)&&(X-=Math.pow(2,8*N)),X},t.prototype.readIntBE=function(O,N,U){O>>>=0,N>>>=0,U||v(O,N,this.length);for(var X=N,Z=1,G=this[O+--X];X>0&&(Z*=256);)G+=this[O+--X]*Z;return G>=(Z*=128)&&(G-=Math.pow(2,8*N)),G},t.prototype.readInt8=function(O,N){return O>>>=0,N||v(O,1,this.length),128&this[O]?-1*(255-this[O]+1):this[O]},t.prototype.readInt16LE=function(O,N){O>>>=0,N||v(O,2,this.length);var U=this[O]|this[O+1]<<8;return 32768&U?4294901760|U:U},t.prototype.readInt16BE=function(O,N){O>>>=0,N||v(O,2,this.length);var U=this[O+1]|this[O]<<8;return 32768&U?4294901760|U:U},t.prototype.readInt32LE=function(O,N){return O>>>=0,N||v(O,4,this.length),this[O]|this[O+1]<<8|this[O+2]<<16|this[O+3]<<24},t.prototype.readInt32BE=function(O,N){return O>>>=0,N||v(O,4,this.length),this[O]<<24|this[O+1]<<16|this[O+2]<<8|this[O+3]},t.prototype.readFloatLE=function(O,N){return O>>>=0,N||v(O,4,this.length),o.read(this,O,!0,23,4)},t.prototype.readFloatBE=function(O,N){return O>>>=0,N||v(O,4,this.length),o.read(this,O,!1,23,4)},t.prototype.readDoubleLE=function(O,N){return O>>>=0,N||v(O,8,this.length),o.read(this,O,!0,52,8)},t.prototype.readDoubleBE=function(O,N){return O>>>=0,N||v(O,8,this.length),o.read(this,O,!1,52,8)},t.prototype.writeUIntLE=function(O,N,U,X){O=+O,N>>>=0,U>>>=0,X||w(this,O,N,U,Math.pow(2,8*U)-1,0);var Z=1,G=0;for(this[N]=255&O;++G<U&&(Z*=256);)this[N+G]=O/Z&255;return N+U},t.prototype.writeUIntBE=function(O,N,U,X){O=+O,N>>>=0,U>>>=0,X||w(this,O,N,U,Math.pow(2,8*U)-1,0);var Z=U-1,G=1;for(this[N+Z]=255&O;--Z>=0&&(G*=256);)this[N+Z]=O/G&255;return N+U},t.prototype.writeUInt8=function(O,N,U){return O=+O,N>>>=0,U||w(this,O,N,1,255,0),this[N]=255&O,N+1},t.prototype.writeUInt16LE=function(O,N,U){return O=+O,N>>>=0,U||w(this,O,N,2,65535,0),this[N]=255&O,this[N+1]=O>>>8,N+2},t.prototype.writeUInt16BE=function(O,N,U){return O=+O,N>>>=0,U||w(this,O,N,2,65535,0),this[N]=O>>>8,this[N+1]=255&O,N+2},t.prototype.writeUInt32LE=function(O,N,U){return O=+O,N>>>=0,U||w(this,O,N,4,4294967295,0),this[N+3]=O>>>24,this[N+2]=O>>>16,this[N+1]=O>>>8,this[N]=255&O,N+4},t.prototype.writeUInt32BE=function(O,N,U){return O=+O,N>>>=0,U||w(this,O,N,4,4294967295,0),this[N]=O>>>24,this[N+1]=O>>>16,this[N+2]=O>>>8,this[N+3]=255&O,N+4},t.prototype.writeIntLE=function(O,N,U,X){if(O=+O,N>>>=0,!X){var Z=Math.pow(2,8*U-1);w(this,O,N,U,Z-1,-Z)}var G=0,J=1,ne=0;for(this[N]=255&O;++G<U&&(J*=256);)O<0&&ne===0&&this[N+G-1]!==0&&(ne=1),this[N+G]=(O/J>>0)-ne&255;return N+U},t.prototype.writeIntBE=function(O,N,U,X){if(O=+O,N>>>=0,!X){var Z=Math.pow(2,8*U-1);w(this,O,N,U,Z-1,-Z)}var G=U-1,J=1,ne=0;for(this[N+G]=255&O;--G>=0&&(J*=256);)O<0&&ne===0&&this[N+G+1]!==0&&(ne=1),this[N+G]=(O/J>>0)-ne&255;return N+U},t.prototype.writeInt8=function(O,N,U){return O=+O,N>>>=0,U||w(this,O,N,1,127,-128),O<0&&(O=255+O+1),this[N]=255&O,N+1},t.prototype.writeInt16LE=function(O,N,U){return O=+O,N>>>=0,U||w(this,O,N,2,32767,-32768),this[N]=255&O,this[N+1]=O>>>8,N+2},t.prototype.writeInt16BE=function(O,N,U){return O=+O,N>>>=0,U||w(this,O,N,2,32767,-32768),this[N]=O>>>8,this[N+1]=255&O,N+2},t.prototype.writeInt32LE=function(O,N,U){return O=+O,N>>>=0,U||w(this,O,N,4,2147483647,-2147483648),this[N]=255&O,this[N+1]=O>>>8,this[N+2]=O>>>16,this[N+3]=O>>>24,N+4},t.prototype.writeInt32BE=function(O,N,U){return O=+O,N>>>=0,U||w(this,O,N,4,2147483647,-2147483648),O<0&&(O=4294967295+O+1),this[N]=O>>>24,this[N+1]=O>>>16,this[N+2]=O>>>8,this[N+3]=255&O,N+4},t.prototype.writeFloatLE=function(O,N,U){return _(this,O,N,!0,U)},t.prototype.writeFloatBE=function(O,N,U){return _(this,O,N,!1,U)},t.prototype.writeDoubleLE=function(O,N,U){return C(this,O,N,!0,U)},t.prototype.writeDoubleBE=function(O,N,U){return C(this,O,N,!1,U)},t.prototype.copy=function(O,N,U,X){if(!t.isBuffer(O))throw new TypeError("argument should be a Buffer");if(U||(U=0),X||X===0||(X=this.length),N>=O.length&&(N=O.length),N||(N=0),X>0&&X<U&&(X=U),X===U||O.length===0||this.length===0)return 0;if(N<0)throw new RangeError("targetStart out of bounds");if(U<0||U>=this.length)throw new RangeError("Index out of range");if(X<0)throw new RangeError("sourceEnd out of bounds");X>this.length&&(X=this.length),O.length-N<X-U&&(X=O.length-N+U);var Z=X-U;if(this===O&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(N,U,X);else if(this===O&&U<N&&N<X)for(var G=Z-1;G>=0;--G)O[G+N]=this[G+U];else Uint8Array.prototype.set.call(O,this.subarray(U,X),N);return Z},t.prototype.fill=function(O,N,U,X){if(typeof O=="string"){if(typeof N=="string"?(X=N,N=0,U=this.length):typeof U=="string"&&(X=U,U=this.length),X!==void 0&&typeof X!="string")throw new TypeError("encoding must be a string");if(typeof X=="string"&&!t.isEncoding(X))throw new TypeError("Unknown encoding: "+X);if(O.length===1){var Z=O.charCodeAt(0);(X==="utf8"&&Z<128||X==="latin1")&&(O=Z)}}else typeof O=="number"&&(O&=255);if(N<0||this.length<N||this.length<U)throw new RangeError("Out of range index");if(U<=N)return this;var G;if(N>>>=0,U=U===void 0?this.length:U>>>0,O||(O=0),typeof O=="number")for(G=N;G<U;++G)this[G]=O;else{var J=t.isBuffer(O)?O:t.from(O,X),ne=J.length;if(ne===0)throw new TypeError('The value "'+O+'" is invalid for argument "value"');for(G=0;G<U-N;++G)this[G+N]=J[G%ne]}return this};var I=/[^+/0-9A-Za-z-_]/g;function P(O){return O<16?"0"+O.toString(16):O.toString(16)}function H(O,N){var U;N=N||1/0;for(var X=O.length,Z=null,G=[],J=0;J<X;++J){if((U=O.charCodeAt(J))>55295&&U<57344){if(!Z){if(U>56319){(N-=3)>-1&&G.push(239,191,189);continue}if(J+1===X){(N-=3)>-1&&G.push(239,191,189);continue}Z=U;continue}if(U<56320){(N-=3)>-1&&G.push(239,191,189),Z=U;continue}U=65536+(Z-55296<<10|U-56320)}else Z&&(N-=3)>-1&&G.push(239,191,189);if(Z=null,U<128){if((N-=1)<0)break;G.push(U)}else if(U<2048){if((N-=2)<0)break;G.push(U>>6|192,63&U|128)}else if(U<65536){if((N-=3)<0)break;G.push(U>>12|224,U>>6&63|128,63&U|128)}else{if(!(U<1114112))throw new Error("Invalid code point");if((N-=4)<0)break;G.push(U>>18|240,U>>12&63|128,U>>6&63|128,63&U|128)}}return G}function W(O){return i.toByteArray(function(N){if((N=(N=N.split("=")[0]).trim().replace(I,"")).length<2)return"";for(;N.length%4!=0;)N+="=";return N}(O))}function K(O,N,U,X){for(var Z=0;Z<X&&!(Z+U>=N.length||Z>=O.length);++Z)N[Z+U]=O[Z];return Z}function B(O,N){return O instanceof N||O!=null&&O.constructor!=null&&O.constructor.name!=null&&O.constructor.name===N.name}function q(O){return O!=O}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(e,p,g){var u=e("safe-buffer").Buffer,i=e("stream").Transform,o=e("string_decoder").StringDecoder;function r(t){i.call(this),this.hashMode=typeof t=="string",this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e("inherits")(r,i),r.prototype.update=function(t,n,c){typeof t=="string"&&(t=u.from(t,n));var s=this._update(t);return this.hashMode?this:(c&&(s=this._toString(s,c)),s)},r.prototype.setAutoPadding=function(){},r.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},r.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},r.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},r.prototype._transform=function(t,n,c){var s;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(a){s=a}finally{c(s)}},r.prototype._flush=function(t){var n;try{this.push(this.__final())}catch(c){n=c}t(n)},r.prototype._finalOrDigest=function(t){var n=this.__final()||u.alloc(0);return t&&(n=this._toString(n,t,!0)),n},r.prototype._toString=function(t,n,c){if(this._decoder||(this._decoder=new o(n),this._encoding=n),this._encoding!==n)throw new Error("can't switch encodings");var s=this._decoder.write(t);return c&&(s+=this._decoder.end()),s},p.exports=r},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(e,p,g){var u=e("../internals/is-callable"),i=e("../internals/try-to-string"),o=TypeError;p.exports=function(r){if(u(r))return r;throw new o(i(r)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(e,p,g){var u=e("../internals/is-constructor"),i=e("../internals/try-to-string"),o=TypeError;p.exports=function(r){if(u(r))return r;throw new o(i(r)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(e,p,g){var u=e("../internals/is-callable"),i=String,o=TypeError;p.exports=function(r){if(typeof r=="object"||u(r))return r;throw new o("Can't set "+i(r)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(e,p,g){var u=e("../internals/well-known-symbol"),i=e("../internals/object-create"),o=e("../internals/object-define-property").f,r=u("unscopables"),t=Array.prototype;t[r]===void 0&&o(t,r,{configurable:!0,value:i(null)}),p.exports=function(n){t[r][n]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(e,p,g){var u=e("../internals/object-is-prototype-of"),i=TypeError;p.exports=function(o,r){if(u(r,o))return o;throw new i("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(e,p,g){var u=e("../internals/is-object"),i=String,o=TypeError;p.exports=function(r){if(u(r))return r;throw new o(i(r)+" is not an object")}},{"../internals/is-object":289}],228:[function(e,p,g){var u=e("../internals/to-indexed-object"),i=e("../internals/to-absolute-index"),o=e("../internals/length-of-array-like"),r=function(t){return function(n,c,s){var a,f=u(n),h=o(f),d=i(s,h);if(t&&c!=c){for(;h>d;)if((a=f[d++])!=a)return!0}else for(;h>d;d++)if((t||d in f)&&f[d]===c)return t||d||0;return!t&&-1}};p.exports={includes:r(!0),indexOf:r(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(e,p,g){var u=e("../internals/function-bind-context"),i=e("../internals/function-uncurry-this"),o=e("../internals/indexed-object"),r=e("../internals/to-object"),t=e("../internals/length-of-array-like"),n=e("../internals/array-species-create"),c=i([].push),s=function(a){var f=a===1,h=a===2,d=a===3,b=a===4,m=a===6,x=a===7,k=a===5||m;return function(R,F,L,j){for(var D,z,$=r(R),V=o($),T=u(F,L),M=t(V),S=0,v=j||n,w=f?v(R,M):h||x?v(R,0):void 0;M>S;S++)if((k||S in V)&&(z=T(D=V[S],S,$),a))if(f)w[S]=z;else if(z)switch(a){case 3:return!0;case 5:return D;case 6:return S;case 2:c(w,D)}else switch(a){case 4:return!1;case 7:c(w,D)}return m?-1:d||b?b:w}};p.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},{"../internals/array-species-create":233,"../internals/function-bind-context":262,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/length-of-array-like":299,"../internals/to-object":344}],230:[function(e,p,g){var u=e("../internals/to-absolute-index"),i=e("../internals/length-of-array-like"),o=e("../internals/create-property"),r=Array,t=Math.max;p.exports=function(n,c,s){for(var a=i(n),f=u(c,a),h=u(s===void 0?a:s,a),d=r(t(h-f,0)),b=0;f<h;f++,b++)o(d,b,n[f]);return d.length=b,d}},{"../internals/create-property":243,"../internals/length-of-array-like":299,"../internals/to-absolute-index":340}],231:[function(e,p,g){var u=e("../internals/function-uncurry-this");p.exports=u([].slice)},{"../internals/function-uncurry-this":268}],232:[function(e,p,g){var u=e("../internals/is-array"),i=e("../internals/is-constructor"),o=e("../internals/is-object"),r=e("../internals/well-known-symbol")("species"),t=Array;p.exports=function(n){var c;return u(n)&&(c=n.constructor,(i(c)&&(c===t||u(c.prototype))||o(c)&&(c=c[r])===null)&&(c=void 0)),c===void 0?t:c}},{"../internals/is-array":284,"../internals/is-constructor":286,"../internals/is-object":289,"../internals/well-known-symbol":357}],233:[function(e,p,g){var u=e("../internals/array-species-constructor");p.exports=function(i,o){return new(u(i))(o===0?0:o)}},{"../internals/array-species-constructor":232}],234:[function(e,p,g){var u=e("../internals/well-known-symbol")("iterator"),i=!1;try{var o=0,r={next:function(){return{done:!!o++}},return:function(){i=!0}};r[u]=function(){return this},Array.from(r,function(){throw 2})}catch{}p.exports=function(t,n){try{if(!n&&!i)return!1}catch{return!1}var c=!1;try{var s={};s[u]=function(){return{next:function(){return{done:c=!0}}}},t(s)}catch{}return c}},{"../internals/well-known-symbol":357}],235:[function(e,p,g){var u=e("../internals/function-uncurry-this"),i=u({}.toString),o=u("".slice);p.exports=function(r){return o(i(r),8,-1)}},{"../internals/function-uncurry-this":268}],236:[function(e,p,g){var u=e("../internals/to-string-tag-support"),i=e("../internals/is-callable"),o=e("../internals/classof-raw"),r=e("../internals/well-known-symbol")("toStringTag"),t=Object,n=o(function(){return arguments}())==="Arguments";p.exports=u?o:function(c){var s,a,f;return c===void 0?"Undefined":c===null?"Null":typeof(a=function(h,d){try{return h[d]}catch{}}(s=t(c),r))=="string"?a:n?o(s):(f=o(s))==="Object"&&i(s.callee)?"Arguments":f}},{"../internals/classof-raw":235,"../internals/is-callable":285,"../internals/to-string-tag-support":347,"../internals/well-known-symbol":357}],237:[function(e,p,g){var u=e("../internals/has-own-property"),i=e("../internals/own-keys"),o=e("../internals/object-get-own-property-descriptor"),r=e("../internals/object-define-property");p.exports=function(t,n,c){for(var s=i(n),a=r.f,f=o.f,h=0;h<s.length;h++){var d=s[h];u(t,d)||c&&u(c,d)||a(t,d,f(n,d))}}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/own-keys":321}],238:[function(e,p,g){var u=e("../internals/well-known-symbol")("match");p.exports=function(i){var o=/./;try{"/./"[i](o)}catch{try{return o[u]=!1,"/./"[i](o)}catch{}}return!1}},{"../internals/well-known-symbol":357}],239:[function(e,p,g){var u=e("../internals/fails");p.exports=!u(function(){function i(){}return i.prototype.constructor=null,Object.getPrototypeOf(new i)!==i.prototype})},{"../internals/fails":260}],240:[function(e,p,g){p.exports=function(u,i){return{value:u,done:i}}},{}],241:[function(e,p,g){var u=e("../internals/descriptors"),i=e("../internals/object-define-property"),o=e("../internals/create-property-descriptor");p.exports=u?function(r,t,n){return i.f(r,t,o(1,n))}:function(r,t,n){return r[t]=n,r}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/object-define-property":308}],242:[function(e,p,g){p.exports=function(u,i){return{enumerable:!(1&u),configurable:!(2&u),writable:!(4&u),value:i}}},{}],243:[function(e,p,g){var u=e("../internals/to-property-key"),i=e("../internals/object-define-property"),o=e("../internals/create-property-descriptor");p.exports=function(r,t,n){var c=u(t);c in r?i.f(r,c,o(0,n)):r[c]=n}},{"../internals/create-property-descriptor":242,"../internals/object-define-property":308,"../internals/to-property-key":346}],244:[function(e,p,g){var u=e("../internals/make-built-in"),i=e("../internals/object-define-property");p.exports=function(o,r,t){return t.get&&u(t.get,r,{getter:!0}),t.set&&u(t.set,r,{setter:!0}),i.f(o,r,t)}},{"../internals/make-built-in":300,"../internals/object-define-property":308}],245:[function(e,p,g){var u=e("../internals/is-callable"),i=e("../internals/object-define-property"),o=e("../internals/make-built-in"),r=e("../internals/define-global-property");p.exports=function(t,n,c,s){s||(s={});var a=s.enumerable,f=s.name!==void 0?s.name:n;if(u(c)&&o(c,f,s),s.global)a?t[n]=c:r(n,c);else{try{s.unsafe?t[n]&&(a=!0):delete t[n]}catch{}a?t[n]=c:i.f(t,n,{value:c,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},{"../internals/define-global-property":246,"../internals/is-callable":285,"../internals/make-built-in":300,"../internals/object-define-property":308}],246:[function(e,p,g){var u=e("../internals/global"),i=Object.defineProperty;p.exports=function(o,r){try{i(u,o,{value:r,configurable:!0,writable:!0})}catch{u[o]=r}return r}},{"../internals/global":274}],247:[function(e,p,g){var u=e("../internals/fails");p.exports=!u(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},{"../internals/fails":260}],248:[function(e,p,g){var u=typeof document=="object"&&document.all,i=u===void 0&&u!==void 0;p.exports={all:u,IS_HTMLDDA:i}},{}],249:[function(e,p,g){var u=e("../internals/global"),i=e("../internals/is-object"),o=u.document,r=i(o)&&i(o.createElement);p.exports=function(t){return r?o.createElement(t):{}}},{"../internals/global":274,"../internals/is-object":289}],250:[function(e,p,g){var u=e("../internals/engine-is-deno"),i=e("../internals/engine-is-node");p.exports=!u&&!i&&typeof window=="object"&&typeof document=="object"},{"../internals/engine-is-deno":251,"../internals/engine-is-node":254}],251:[function(e,p,g){p.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},{}],252:[function(e,p,g){var u=e("../internals/engine-user-agent");p.exports=/ipad|iphone|ipod/i.test(u)&&typeof Pebble<"u"},{"../internals/engine-user-agent":256}],253:[function(e,p,g){var u=e("../internals/engine-user-agent");p.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(u)},{"../internals/engine-user-agent":256}],254:[function(e,p,g){var u=e("../internals/global"),i=e("../internals/classof-raw");p.exports=i(u.process)==="process"},{"../internals/classof-raw":235,"../internals/global":274}],255:[function(e,p,g){var u=e("../internals/engine-user-agent");p.exports=/web0s(?!.*chrome)/i.test(u)},{"../internals/engine-user-agent":256}],256:[function(e,p,g){p.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},{}],257:[function(e,p,g){var u,i,o=e("../internals/global"),r=e("../internals/engine-user-agent"),t=o.process,n=o.Deno,c=t&&t.versions||n&&n.version,s=c&&c.v8;s&&(i=(u=s.split("."))[0]>0&&u[0]<4?1:+(u[0]+u[1])),!i&&r&&(!(u=r.match(/Edge\/(\d+)/))||u[1]>=74)&&(u=r.match(/Chrome\/(\d+)/))&&(i=+u[1]),p.exports=i},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(e,p,g){p.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(e,p,g){var u=e("../internals/global"),i=e("../internals/object-get-own-property-descriptor").f,o=e("../internals/create-non-enumerable-property"),r=e("../internals/define-built-in"),t=e("../internals/define-global-property"),n=e("../internals/copy-constructor-properties"),c=e("../internals/is-forced");p.exports=function(s,a){var f,h,d,b,m,x=s.target,k=s.global,R=s.stat;if(f=k?u:R?u[x]||t(x,{}):(u[x]||{}).prototype)for(h in a){if(b=a[h],d=s.dontCallGetSet?(m=i(f,h))&&m.value:f[h],!c(k?h:x+(R?".":"#")+h,s.forced)&&d!==void 0){if(typeof b==typeof d)continue;n(b,d)}(s.sham||d&&d.sham)&&o(b,"sham",!0),r(f,h,b,s)}}},{"../internals/copy-constructor-properties":237,"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/define-global-property":246,"../internals/global":274,"../internals/is-forced":287,"../internals/object-get-own-property-descriptor":309}],260:[function(e,p,g){p.exports=function(u){try{return!!u()}catch{return!0}}},{}],261:[function(e,p,g){var u=e("../internals/function-bind-native"),i=Function.prototype,o=i.apply,r=i.call;p.exports=typeof Reflect=="object"&&Reflect.apply||(u?r.bind(o):function(){return r.apply(o,arguments)})},{"../internals/function-bind-native":263}],262:[function(e,p,g){var u=e("../internals/function-uncurry-this-clause"),i=e("../internals/a-callable"),o=e("../internals/function-bind-native"),r=u(u.bind);p.exports=function(t,n){return i(t),n===void 0?t:o?r(t,n):function(){return t.apply(n,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(e,p,g){var u=e("../internals/fails");p.exports=!u(function(){var i=(function(){}).bind();return typeof i!="function"||i.hasOwnProperty("prototype")})},{"../internals/fails":260}],264:[function(e,p,g){var u=e("../internals/function-bind-native"),i=Function.prototype.call;p.exports=u?i.bind(i):function(){return i.apply(i,arguments)}},{"../internals/function-bind-native":263}],265:[function(e,p,g){var u=e("../internals/descriptors"),i=e("../internals/has-own-property"),o=Function.prototype,r=u&&Object.getOwnPropertyDescriptor,t=i(o,"name"),n=t&&(function(){}).name==="something",c=t&&(!u||u&&r(o,"name").configurable);p.exports={EXISTS:t,PROPER:n,CONFIGURABLE:c}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(e,p,g){var u=e("../internals/function-uncurry-this"),i=e("../internals/a-callable");p.exports=function(o,r,t){try{return u(i(Object.getOwnPropertyDescriptor(o,r)[t]))}catch{}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(e,p,g){var u=e("../internals/classof-raw"),i=e("../internals/function-uncurry-this");p.exports=function(o){if(u(o)==="Function")return i(o)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(e,p,g){var u=e("../internals/function-bind-native"),i=Function.prototype,o=i.call,r=u&&i.bind.bind(o,o);p.exports=u?r:function(t){return function(){return o.apply(t,arguments)}}},{"../internals/function-bind-native":263}],269:[function(e,p,g){var u=e("../internals/global"),i=e("../internals/is-callable"),o=function(r){return i(r)?r:void 0};p.exports=function(r,t){return arguments.length<2?o(u[r]):u[r]&&u[r][t]}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(e,p,g){var u=e("../internals/classof"),i=e("../internals/get-method"),o=e("../internals/is-null-or-undefined"),r=e("../internals/iterators"),t=e("../internals/well-known-symbol")("iterator");p.exports=function(n){if(!o(n))return i(n,t)||i(n,"@@iterator")||r[u(n)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(e,p,g){var u=e("../internals/function-call"),i=e("../internals/a-callable"),o=e("../internals/an-object"),r=e("../internals/try-to-string"),t=e("../internals/get-iterator-method"),n=TypeError;p.exports=function(c,s){var a=arguments.length<2?t(c):s;if(i(a))return o(u(a,c));throw new n(r(c)+" is not iterable")}},{"../internals/a-callable":222,"../internals/an-object":227,"../internals/function-call":264,"../internals/get-iterator-method":270,"../internals/try-to-string":349}],272:[function(e,p,g){var u=e("../internals/function-uncurry-this"),i=e("../internals/is-array"),o=e("../internals/is-callable"),r=e("../internals/classof-raw"),t=e("../internals/to-string"),n=u([].push);p.exports=function(c){if(o(c))return c;if(i(c)){for(var s=c.length,a=[],f=0;f<s;f++){var h=c[f];typeof h=="string"?n(a,h):typeof h!="number"&&r(h)!=="Number"&&r(h)!=="String"||n(a,t(h))}var d=a.length,b=!0;return function(m,x){if(b)return b=!1,x;if(i(this))return x;for(var k=0;k<d;k++)if(a[k]===m)return x}}}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268,"../internals/is-array":284,"../internals/is-callable":285,"../internals/to-string":348}],273:[function(e,p,g){var u=e("../internals/a-callable"),i=e("../internals/is-null-or-undefined");p.exports=function(o,r){var t=o[r];return i(t)?void 0:u(t)}},{"../internals/a-callable":222,"../internals/is-null-or-undefined":288}],274:[function(e,p,g){(function(u){(function(){var i=function(o){return o&&o.Math===Math&&o};p.exports=i(typeof globalThis=="object"&&globalThis)||i(typeof window=="object"&&window)||i(typeof self=="object"&&self)||i(typeof u=="object"&&u)||function(){return this}()||this||Function("return this")()}).call(this)}).call(this,typeof Ye<"u"?Ye:typeof self<"u"?self:typeof window<"u"?window:{})},{}],275:[function(e,p,g){var u=e("../internals/function-uncurry-this"),i=e("../internals/to-object"),o=u({}.hasOwnProperty);p.exports=Object.hasOwn||function(r,t){return o(i(r),t)}},{"../internals/function-uncurry-this":268,"../internals/to-object":344}],276:[function(e,p,g){p.exports={}},{}],277:[function(e,p,g){p.exports=function(u,i){try{arguments.length===1?console.error(u):console.error(u,i)}catch{}}},{}],278:[function(e,p,g){var u=e("../internals/get-built-in");p.exports=u("document","documentElement")},{"../internals/get-built-in":269}],279:[function(e,p,g){var u=e("../internals/descriptors"),i=e("../internals/fails"),o=e("../internals/document-create-element");p.exports=!u&&!i(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(e,p,g){var u=e("../internals/function-uncurry-this"),i=e("../internals/fails"),o=e("../internals/classof-raw"),r=Object,t=u("".split);p.exports=i(function(){return!r("z").propertyIsEnumerable(0)})?function(n){return o(n)==="String"?t(n,""):r(n)}:r},{"../internals/classof-raw":235,"../internals/fails":260,"../internals/function-uncurry-this":268}],281:[function(e,p,g){var u=e("../internals/function-uncurry-this"),i=e("../internals/is-callable"),o=e("../internals/shared-store"),r=u(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return r(t)}),p.exports=o.inspectSource},{"../internals/function-uncurry-this":268,"../internals/is-callable":285,"../internals/shared-store":333}],282:[function(e,p,g){var u,i,o,r=e("../internals/weak-map-basic-detection"),t=e("../internals/global"),n=e("../internals/is-object"),c=e("../internals/create-non-enumerable-property"),s=e("../internals/has-own-property"),a=e("../internals/shared-store"),f=e("../internals/shared-key"),h=e("../internals/hidden-keys"),d=t.TypeError,b=t.WeakMap;if(r||a.state){var m=a.state||(a.state=new b);m.get=m.get,m.has=m.has,m.set=m.set,u=function(k,R){if(m.has(k))throw new d("Object already initialized");return R.facade=k,m.set(k,R),R},i=function(k){return m.get(k)||{}},o=function(k){return m.has(k)}}else{var x=f("state");h[x]=!0,u=function(k,R){if(s(k,x))throw new d("Object already initialized");return R.facade=k,c(k,x,R),R},i=function(k){return s(k,x)?k[x]:{}},o=function(k){return s(k,x)}}p.exports={set:u,get:i,has:o,enforce:function(k){return o(k)?i(k):u(k,{})},getterFor:function(k){return function(R){var F;if(!n(R)||(F=i(R)).type!==k)throw new d("Incompatible receiver, "+k+" required");return F}}}},{"../internals/create-non-enumerable-property":241,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/is-object":289,"../internals/shared-key":332,"../internals/shared-store":333,"../internals/weak-map-basic-detection":354}],283:[function(e,p,g){var u=e("../internals/well-known-symbol"),i=e("../internals/iterators"),o=u("iterator"),r=Array.prototype;p.exports=function(t){return t!==void 0&&(i.Array===t||r[o]===t)}},{"../internals/iterators":298,"../internals/well-known-symbol":357}],284:[function(e,p,g){var u=e("../internals/classof-raw");p.exports=Array.isArray||function(i){return u(i)==="Array"}},{"../internals/classof-raw":235}],285:[function(e,p,g){var u=e("../internals/document-all"),i=u.all;p.exports=u.IS_HTMLDDA?function(o){return typeof o=="function"||o===i}:function(o){return typeof o=="function"}},{"../internals/document-all":248}],286:[function(e,p,g){var u=e("../internals/function-uncurry-this"),i=e("../internals/fails"),o=e("../internals/is-callable"),r=e("../internals/classof"),t=e("../internals/get-built-in"),n=e("../internals/inspect-source"),c=function(){},s=[],a=t("Reflect","construct"),f=/^\s*(?:class|function)\b/,h=u(f.exec),d=!f.test(c),b=function(x){if(!o(x))return!1;try{return a(c,s,x),!0}catch{return!1}},m=function(x){if(!o(x))return!1;switch(r(x)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!h(f,n(x))}catch{return!0}};m.sham=!0,p.exports=!a||i(function(){var x;return b(b.call)||!b(Object)||!b(function(){x=!0})||x})?m:b},{"../internals/classof":236,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/inspect-source":281,"../internals/is-callable":285}],287:[function(e,p,g){var u=e("../internals/fails"),i=e("../internals/is-callable"),o=/#|\.prototype\./,r=function(a,f){var h=n[t(a)];return h===s||h!==c&&(i(f)?u(f):!!f)},t=r.normalize=function(a){return String(a).replace(o,".").toLowerCase()},n=r.data={},c=r.NATIVE="N",s=r.POLYFILL="P";p.exports=r},{"../internals/fails":260,"../internals/is-callable":285}],288:[function(e,p,g){p.exports=function(u){return u==null}},{}],289:[function(e,p,g){var u=e("../internals/is-callable"),i=e("../internals/document-all"),o=i.all;p.exports=i.IS_HTMLDDA?function(r){return typeof r=="object"?r!==null:u(r)||r===o}:function(r){return typeof r=="object"?r!==null:u(r)}},{"../internals/document-all":248,"../internals/is-callable":285}],290:[function(e,p,g){p.exports=!1},{}],291:[function(e,p,g){var u=e("../internals/is-object"),i=e("../internals/classof-raw"),o=e("../internals/well-known-symbol")("match");p.exports=function(r){var t;return u(r)&&((t=r[o])!==void 0?!!t:i(r)==="RegExp")}},{"../internals/classof-raw":235,"../internals/is-object":289,"../internals/well-known-symbol":357}],292:[function(e,p,g){var u=e("../internals/get-built-in"),i=e("../internals/is-callable"),o=e("../internals/object-is-prototype-of"),r=e("../internals/use-symbol-as-uid"),t=Object;p.exports=r?function(n){return typeof n=="symbol"}:function(n){var c=u("Symbol");return i(c)&&o(c.prototype,t(n))}},{"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/object-is-prototype-of":314,"../internals/use-symbol-as-uid":351}],293:[function(e,p,g){var u=e("../internals/function-bind-context"),i=e("../internals/function-call"),o=e("../internals/an-object"),r=e("../internals/try-to-string"),t=e("../internals/is-array-iterator-method"),n=e("../internals/length-of-array-like"),c=e("../internals/object-is-prototype-of"),s=e("../internals/get-iterator"),a=e("../internals/get-iterator-method"),f=e("../internals/iterator-close"),h=TypeError,d=function(m,x){this.stopped=m,this.result=x},b=d.prototype;p.exports=function(m,x,k){var R,F,L,j,D,z,$,V=k&&k.that,T=!(!k||!k.AS_ENTRIES),M=!(!k||!k.IS_RECORD),S=!(!k||!k.IS_ITERATOR),v=!(!k||!k.INTERRUPTED),w=u(x,V),y=function(C){return R&&f(R,"normal",C),new d(!0,C)},_=function(C){return T?(o(C),v?w(C[0],C[1],y):w(C[0],C[1])):v?w(C,y):w(C)};if(M)R=m.iterator;else if(S)R=m;else{if(!(F=a(m)))throw new h(r(m)+" is not iterable");if(t(F)){for(L=0,j=n(m);j>L;L++)if((D=_(m[L]))&&c(b,D))return D;return new d(!1)}R=s(m,F)}for(z=M?m.next:R.next;!($=i(z,R)).done;){try{D=_($.value)}catch(C){f(R,"throw",C)}if(typeof D=="object"&&D&&c(b,D))return D}return new d(!1)}},{"../internals/an-object":227,"../internals/function-bind-context":262,"../internals/function-call":264,"../internals/get-iterator":271,"../internals/get-iterator-method":270,"../internals/is-array-iterator-method":283,"../internals/iterator-close":294,"../internals/length-of-array-like":299,"../internals/object-is-prototype-of":314,"../internals/try-to-string":349}],294:[function(e,p,g){var u=e("../internals/function-call"),i=e("../internals/an-object"),o=e("../internals/get-method");p.exports=function(r,t,n){var c,s;i(r);try{if(!(c=o(r,"return"))){if(t==="throw")throw n;return n}c=u(c,r)}catch(a){s=!0,c=a}if(t==="throw")throw n;if(s)throw c;return i(c),n}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(e,p,g){var u=e("../internals/iterators-core").IteratorPrototype,i=e("../internals/object-create"),o=e("../internals/create-property-descriptor"),r=e("../internals/set-to-string-tag"),t=e("../internals/iterators"),n=function(){return this};p.exports=function(c,s,a,f){var h=s+" Iterator";return c.prototype=i(u,{next:o(+!f,a)}),r(c,h,!1,!0),t[h]=n,c}},{"../internals/create-property-descriptor":242,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-create":306,"../internals/set-to-string-tag":331}],296:[function(e,p,g){var u=e("../internals/export"),i=e("../internals/function-call"),o=e("../internals/is-pure"),r=e("../internals/function-name"),t=e("../internals/is-callable"),n=e("../internals/iterator-create-constructor"),c=e("../internals/object-get-prototype-of"),s=e("../internals/object-set-prototype-of"),a=e("../internals/set-to-string-tag"),f=e("../internals/create-non-enumerable-property"),h=e("../internals/define-built-in"),d=e("../internals/well-known-symbol"),b=e("../internals/iterators"),m=e("../internals/iterators-core"),x=r.PROPER,k=r.CONFIGURABLE,R=m.IteratorPrototype,F=m.BUGGY_SAFARI_ITERATORS,L=d("iterator"),j=function(){return this};p.exports=function(D,z,$,V,T,M,S){n($,z,V);var v,w,y,_=function(B){if(B===T&&W)return W;if(!F&&B&&B in P)return P[B];switch(B){case"keys":case"values":case"entries":return function(){return new $(this,B)}}return function(){return new $(this)}},C=z+" Iterator",I=!1,P=D.prototype,H=P[L]||P["@@iterator"]||T&&P[T],W=!F&&H||_(T),K=z==="Array"&&P.entries||H;if(K&&(v=c(K.call(new D)))!==Object.prototype&&v.next&&(o||c(v)===R||(s?s(v,R):t(v[L])||h(v,L,j)),a(v,C,!0,!0),o&&(b[C]=j)),x&&T==="values"&&H&&H.name!=="values"&&(!o&&k?f(P,"name","values"):(I=!0,W=function(){return i(H,this)})),T)if(w={values:_("values"),keys:M?W:_("keys"),entries:_("entries")},S)for(y in w)(F||I||!(y in P))&&h(P,y,w[y]);else u({target:z,proto:!0,forced:F||I},w);return o&&!S||P[L]===W||h(P,L,W,{name:T}),b[z]=W,w}},{"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/export":259,"../internals/function-call":264,"../internals/function-name":265,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/iterator-create-constructor":295,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-get-prototype-of":313,"../internals/object-set-prototype-of":318,"../internals/set-to-string-tag":331,"../internals/well-known-symbol":357}],297:[function(e,p,g){var u,i,o,r=e("../internals/fails"),t=e("../internals/is-callable"),n=e("../internals/is-object"),c=e("../internals/object-create"),s=e("../internals/object-get-prototype-of"),a=e("../internals/define-built-in"),f=e("../internals/well-known-symbol"),h=e("../internals/is-pure"),d=f("iterator"),b=!1;[].keys&&("next"in(o=[].keys())?(i=s(s(o)))!==Object.prototype&&(u=i):b=!0),!n(u)||r(function(){var m={};return u[d].call(m)!==m})?u={}:h&&(u=c(u)),t(u[d])||a(u,d,function(){return this}),p.exports={IteratorPrototype:u,BUGGY_SAFARI_ITERATORS:b}},{"../internals/define-built-in":245,"../internals/fails":260,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-get-prototype-of":313,"../internals/well-known-symbol":357}],298:[function(e,p,g){arguments[4][276][0].apply(g,arguments)},{dup:276}],299:[function(e,p,g){var u=e("../internals/to-length");p.exports=function(i){return u(i.length)}},{"../internals/to-length":343}],300:[function(e,p,g){var u=e("../internals/function-uncurry-this"),i=e("../internals/fails"),o=e("../internals/is-callable"),r=e("../internals/has-own-property"),t=e("../internals/descriptors"),n=e("../internals/function-name").CONFIGURABLE,c=e("../internals/inspect-source"),s=e("../internals/internal-state"),a=s.enforce,f=s.get,h=String,d=Object.defineProperty,b=u("".slice),m=u("".replace),x=u([].join),k=t&&!i(function(){return d(function(){},"length",{value:8}).length!==8}),R=String(String).split("String"),F=p.exports=function(L,j,D){b(h(j),0,7)==="Symbol("&&(j="["+m(h(j),/^Symbol\(([^)]*)\)/,"$1")+"]"),D&&D.getter&&(j="get "+j),D&&D.setter&&(j="set "+j),(!r(L,"name")||n&&L.name!==j)&&(t?d(L,"name",{value:j,configurable:!0}):L.name=j),k&&D&&r(D,"arity")&&L.length!==D.arity&&d(L,"length",{value:D.arity});try{D&&r(D,"constructor")&&D.constructor?t&&d(L,"prototype",{writable:!1}):L.prototype&&(L.prototype=void 0)}catch{}var z=a(L);return r(z,"source")||(z.source=x(R,typeof j=="string"?j:"")),L};Function.prototype.toString=F(function(){return o(this)&&f(this).source||c(this)},"toString")},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-name":265,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/inspect-source":281,"../internals/internal-state":282,"../internals/is-callable":285}],301:[function(e,p,g){var u=Math.ceil,i=Math.floor;p.exports=Math.trunc||function(o){var r=+o;return(r>0?i:u)(r)}},{}],302:[function(e,p,g){var u,i,o,r,t,n=e("../internals/global"),c=e("../internals/function-bind-context"),s=e("../internals/object-get-own-property-descriptor").f,a=e("../internals/task").set,f=e("../internals/queue"),h=e("../internals/engine-is-ios"),d=e("../internals/engine-is-ios-pebble"),b=e("../internals/engine-is-webos-webkit"),m=e("../internals/engine-is-node"),x=n.MutationObserver||n.WebKitMutationObserver,k=n.document,R=n.process,F=n.Promise,L=s(n,"queueMicrotask"),j=L&&L.value;if(!j){var D=new f,z=function(){var $,V;for(m&&($=R.domain)&&$.exit();V=D.get();)try{V()}catch(T){throw D.head&&u(),T}$&&$.enter()};h||m||b||!x||!k?!d&&F&&F.resolve?((r=F.resolve(void 0)).constructor=F,t=c(r.then,r),u=function(){t(z)}):m?u=function(){R.nextTick(z)}:(a=c(a,n),u=function(){a(z)}):(i=!0,o=k.createTextNode(""),new x(z).observe(o,{characterData:!0}),u=function(){o.data=i=!i}),j=function($){D.head||u(),D.add($)}}p.exports=j},{"../internals/engine-is-ios":253,"../internals/engine-is-ios-pebble":252,"../internals/engine-is-node":254,"../internals/engine-is-webos-webkit":255,"../internals/function-bind-context":262,"../internals/global":274,"../internals/object-get-own-property-descriptor":309,"../internals/queue":328,"../internals/task":339}],303:[function(e,p,g){var u=e("../internals/a-callable"),i=TypeError,o=function(r){var t,n;this.promise=new r(function(c,s){if(t!==void 0||n!==void 0)throw new i("Bad Promise constructor");t=c,n=s}),this.resolve=u(t),this.reject=u(n)};p.exports.f=function(r){return new o(r)}},{"../internals/a-callable":222}],304:[function(e,p,g){var u=e("../internals/is-regexp"),i=TypeError;p.exports=function(o){if(u(o))throw new i("The method doesn't accept regular expressions");return o}},{"../internals/is-regexp":291}],305:[function(e,p,g){var u=e("../internals/descriptors"),i=e("../internals/function-uncurry-this"),o=e("../internals/function-call"),r=e("../internals/fails"),t=e("../internals/object-keys"),n=e("../internals/object-get-own-property-symbols"),c=e("../internals/object-property-is-enumerable"),s=e("../internals/to-object"),a=e("../internals/indexed-object"),f=Object.assign,h=Object.defineProperty,d=i([].concat);p.exports=!f||r(function(){if(u&&f({b:1},f(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var b={},m={},x=Symbol("assign detection");return b[x]=7,"abcdefghijklmnopqrst".split("").forEach(function(k){m[k]=k}),f({},b)[x]!==7||t(f({},m)).join("")!=="abcdefghijklmnopqrst"})?function(b,m){for(var x=s(b),k=arguments.length,R=1,F=n.f,L=c.f;k>R;)for(var j,D=a(arguments[R++]),z=F?d(t(D),F(D)):t(D),$=z.length,V=0;$>V;)j=z[V++],u&&!o(L,D,j)||(x[j]=D[j]);return x}:f},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/object-get-own-property-symbols":312,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-object":344}],306:[function(e,p,g){var u,i=e("../internals/an-object"),o=e("../internals/object-define-properties"),r=e("../internals/enum-bug-keys"),t=e("../internals/hidden-keys"),n=e("../internals/html"),c=e("../internals/document-create-element"),s=e("../internals/shared-key"),a=s("IE_PROTO"),f=function(){},h=function(m){return"<script>"+m+"<\/script>"},d=function(m){m.write(h("")),m.close();var x=m.parentWindow.Object;return m=null,x},b=function(){try{u=new ActiveXObject("htmlfile")}catch{}var m,x;b=typeof document<"u"?document.domain&&u?d(u):((x=c("iframe")).style.display="none",n.appendChild(x),x.src="javascript:",(m=x.contentWindow.document).open(),m.write(h("document.F=Object")),m.close(),m.F):d(u);for(var k=r.length;k--;)delete b.prototype[r[k]];return b()};t[a]=!0,p.exports=Object.create||function(m,x){var k;return m!==null?(f.prototype=i(m),k=new f,f.prototype=null,k[a]=m):k=b(),x===void 0?k:o.f(k,x)}},{"../internals/an-object":227,"../internals/document-create-element":249,"../internals/enum-bug-keys":258,"../internals/hidden-keys":276,"../internals/html":278,"../internals/object-define-properties":307,"../internals/shared-key":332}],307:[function(e,p,g){var u=e("../internals/descriptors"),i=e("../internals/v8-prototype-define-bug"),o=e("../internals/object-define-property"),r=e("../internals/an-object"),t=e("../internals/to-indexed-object"),n=e("../internals/object-keys");g.f=u&&!i?Object.defineProperties:function(c,s){r(c);for(var a,f=t(s),h=n(s),d=h.length,b=0;d>b;)o.f(c,a=h[b++],f[a]);return c}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/object-define-property":308,"../internals/object-keys":316,"../internals/to-indexed-object":341,"../internals/v8-prototype-define-bug":352}],308:[function(e,p,g){var u=e("../internals/descriptors"),i=e("../internals/ie8-dom-define"),o=e("../internals/v8-prototype-define-bug"),r=e("../internals/an-object"),t=e("../internals/to-property-key"),n=TypeError,c=Object.defineProperty,s=Object.getOwnPropertyDescriptor;g.f=u?o?function(a,f,h){if(r(a),f=t(f),r(h),typeof a=="function"&&f==="prototype"&&"value"in h&&"writable"in h&&!h.writable){var d=s(a,f);d&&d.writable&&(a[f]=h.value,h={configurable:"configurable"in h?h.configurable:d.configurable,enumerable:"enumerable"in h?h.enumerable:d.enumerable,writable:!1})}return c(a,f,h)}:c:function(a,f,h){if(r(a),f=t(f),r(h),i)try{return c(a,f,h)}catch{}if("get"in h||"set"in h)throw new n("Accessors not supported");return"value"in h&&(a[f]=h.value),a}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/ie8-dom-define":279,"../internals/to-property-key":346,"../internals/v8-prototype-define-bug":352}],309:[function(e,p,g){var u=e("../internals/descriptors"),i=e("../internals/function-call"),o=e("../internals/object-property-is-enumerable"),r=e("../internals/create-property-descriptor"),t=e("../internals/to-indexed-object"),n=e("../internals/to-property-key"),c=e("../internals/has-own-property"),s=e("../internals/ie8-dom-define"),a=Object.getOwnPropertyDescriptor;g.f=u?a:function(f,h){if(f=t(f),h=n(h),s)try{return a(f,h)}catch{}if(c(f,h))return r(!i(o.f,f,h),f[h])}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/function-call":264,"../internals/has-own-property":275,"../internals/ie8-dom-define":279,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341,"../internals/to-property-key":346}],310:[function(e,p,g){var u=e("../internals/classof-raw"),i=e("../internals/to-indexed-object"),o=e("../internals/object-get-own-property-names").f,r=e("../internals/array-slice-simple"),t=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];p.exports.f=function(n){return t&&u(n)==="Window"?function(c){try{return o(c)}catch{return r(t)}}(n):o(i(n))}},{"../internals/array-slice-simple":230,"../internals/classof-raw":235,"../internals/object-get-own-property-names":311,"../internals/to-indexed-object":341}],311:[function(e,p,g){var u=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys").concat("length","prototype");g.f=Object.getOwnPropertyNames||function(o){return u(o,i)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],312:[function(e,p,g){g.f=Object.getOwnPropertySymbols},{}],313:[function(e,p,g){var u=e("../internals/has-own-property"),i=e("../internals/is-callable"),o=e("../internals/to-object"),r=e("../internals/shared-key"),t=e("../internals/correct-prototype-getter"),n=r("IE_PROTO"),c=Object,s=c.prototype;p.exports=t?c.getPrototypeOf:function(a){var f=o(a);if(u(f,n))return f[n];var h=f.constructor;return i(h)&&f instanceof h?h.prototype:f instanceof c?s:null}},{"../internals/correct-prototype-getter":239,"../internals/has-own-property":275,"../internals/is-callable":285,"../internals/shared-key":332,"../internals/to-object":344}],314:[function(e,p,g){var u=e("../internals/function-uncurry-this");p.exports=u({}.isPrototypeOf)},{"../internals/function-uncurry-this":268}],315:[function(e,p,g){var u=e("../internals/function-uncurry-this"),i=e("../internals/has-own-property"),o=e("../internals/to-indexed-object"),r=e("../internals/array-includes").indexOf,t=e("../internals/hidden-keys"),n=u([].push);p.exports=function(c,s){var a,f=o(c),h=0,d=[];for(a in f)!i(t,a)&&i(f,a)&&n(d,a);for(;s.length>h;)i(f,a=s[h++])&&(~r(d,a)||n(d,a));return d}},{"../internals/array-includes":228,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/to-indexed-object":341}],316:[function(e,p,g){var u=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys");p.exports=Object.keys||function(o){return u(o,i)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],317:[function(e,p,g){var u={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!u.call({1:2},1);g.f=o?function(r){var t=i(this,r);return!!t&&t.enumerable}:u},{}],318:[function(e,p,g){var u=e("../internals/function-uncurry-this-accessor"),i=e("../internals/an-object"),o=e("../internals/a-possible-prototype");p.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r,t=!1,n={};try{(r=u(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch{}return function(c,s){return i(c),o(s),t?r(c,s):c.__proto__=s,c}}():void 0)},{"../internals/a-possible-prototype":224,"../internals/an-object":227,"../internals/function-uncurry-this-accessor":266}],319:[function(e,p,g){var u=e("../internals/descriptors"),i=e("../internals/fails"),o=e("../internals/function-uncurry-this"),r=e("../internals/object-get-prototype-of"),t=e("../internals/object-keys"),n=e("../internals/to-indexed-object"),c=o(e("../internals/object-property-is-enumerable").f),s=o([].push),a=u&&i(function(){var h=Object.create(null);return h[2]=2,!c(h,2)}),f=function(h){return function(d){for(var b,m=n(d),x=t(m),k=a&&r(m)===null,R=x.length,F=0,L=[];R>F;)b=x[F++],u&&!(k?b in m:c(m,b))||s(L,h?[b,m[b]]:m[b]);return L}};p.exports={entries:f(!0),values:f(!1)}},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/object-get-prototype-of":313,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341}],320:[function(e,p,g){var u=e("../internals/function-call"),i=e("../internals/is-callable"),o=e("../internals/is-object"),r=TypeError;p.exports=function(t,n){var c,s;if(n==="string"&&i(c=t.toString)&&!o(s=u(c,t))||i(c=t.valueOf)&&!o(s=u(c,t))||n!=="string"&&i(c=t.toString)&&!o(s=u(c,t)))return s;throw new r("Can't convert object to primitive value")}},{"../internals/function-call":264,"../internals/is-callable":285,"../internals/is-object":289}],321:[function(e,p,g){var u=e("../internals/get-built-in"),i=e("../internals/function-uncurry-this"),o=e("../internals/object-get-own-property-names"),r=e("../internals/object-get-own-property-symbols"),t=e("../internals/an-object"),n=i([].concat);p.exports=u("Reflect","ownKeys")||function(c){var s=o.f(t(c)),a=r.f;return a?n(s,a(c)):s}},{"../internals/an-object":227,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-symbols":312}],322:[function(e,p,g){var u=e("../internals/global");p.exports=u},{"../internals/global":274}],323:[function(e,p,g){p.exports=function(u){try{return{error:!1,value:u()}}catch(i){return{error:!0,value:i}}}},{}],324:[function(e,p,g){var u=e("../internals/global"),i=e("../internals/promise-native-constructor"),o=e("../internals/is-callable"),r=e("../internals/is-forced"),t=e("../internals/inspect-source"),n=e("../internals/well-known-symbol"),c=e("../internals/engine-is-browser"),s=e("../internals/engine-is-deno"),a=e("../internals/is-pure"),f=e("../internals/engine-v8-version"),h=i&&i.prototype,d=n("species"),b=!1,m=o(u.PromiseRejectionEvent),x=r("Promise",function(){var k=t(i),R=k!==String(i);if(!R&&f===66||a&&(!h.catch||!h.finally))return!0;if(!f||f<51||!/native code/.test(k)){var F=new i(function(j){j(1)}),L=function(j){j(function(){},function(){})};if((F.constructor={})[d]=L,!(b=F.then(function(){})instanceof L))return!0}return!R&&(c||s)&&!m});p.exports={CONSTRUCTOR:x,REJECTION_EVENT:m,SUBCLASSING:b}},{"../internals/engine-is-browser":250,"../internals/engine-is-deno":251,"../internals/engine-v8-version":257,"../internals/global":274,"../internals/inspect-source":281,"../internals/is-callable":285,"../internals/is-forced":287,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/well-known-symbol":357}],325:[function(e,p,g){var u=e("../internals/global");p.exports=u.Promise},{"../internals/global":274}],326:[function(e,p,g){var u=e("../internals/an-object"),i=e("../internals/is-object"),o=e("../internals/new-promise-capability");p.exports=function(r,t){if(u(r),i(t)&&t.constructor===r)return t;var n=o.f(r);return(0,n.resolve)(t),n.promise}},{"../internals/an-object":227,"../internals/is-object":289,"../internals/new-promise-capability":303}],327:[function(e,p,g){var u=e("../internals/promise-native-constructor"),i=e("../internals/check-correctness-of-iteration"),o=e("../internals/promise-constructor-detection").CONSTRUCTOR;p.exports=o||!i(function(r){u.all(r).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":234,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],328:[function(e,p,g){var u=function(){this.head=null,this.tail=null};u.prototype={add:function(i){var o={item:i,next:null},r=this.tail;r?r.next=o:this.head=o,this.tail=o},get:function(){var i=this.head;if(i)return(this.head=i.next)===null&&(this.tail=null),i.item}},p.exports=u},{}],329:[function(e,p,g){var u=e("../internals/is-null-or-undefined"),i=TypeError;p.exports=function(o){if(u(o))throw new i("Can't call method on "+o);return o}},{"../internals/is-null-or-undefined":288}],330:[function(e,p,g){var u=e("../internals/get-built-in"),i=e("../internals/define-built-in-accessor"),o=e("../internals/well-known-symbol"),r=e("../internals/descriptors"),t=o("species");p.exports=function(n){var c=u(n);r&&c&&!c[t]&&i(c,t,{configurable:!0,get:function(){return this}})}},{"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],331:[function(e,p,g){var u=e("../internals/object-define-property").f,i=e("../internals/has-own-property"),o=e("../internals/well-known-symbol")("toStringTag");p.exports=function(r,t,n){r&&!n&&(r=r.prototype),r&&!i(r,o)&&u(r,o,{configurable:!0,value:t})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],332:[function(e,p,g){var u=e("../internals/shared"),i=e("../internals/uid"),o=u("keys");p.exports=function(r){return o[r]||(o[r]=i(r))}},{"../internals/shared":334,"../internals/uid":350}],333:[function(e,p,g){var u=e("../internals/global"),i=e("../internals/define-global-property"),o=u["__core-js_shared__"]||i("__core-js_shared__",{});p.exports=o},{"../internals/define-global-property":246,"../internals/global":274}],334:[function(e,p,g){var u=e("../internals/is-pure"),i=e("../internals/shared-store");(p.exports=function(o,r){return i[o]||(i[o]=r!==void 0?r:{})})("versions",[]).push({version:"3.33.0",mode:u?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":290,"../internals/shared-store":333}],335:[function(e,p,g){var u=e("../internals/an-object"),i=e("../internals/a-constructor"),o=e("../internals/is-null-or-undefined"),r=e("../internals/well-known-symbol")("species");p.exports=function(t,n){var c,s=u(t).constructor;return s===void 0||o(c=u(s)[r])?n:i(c)}},{"../internals/a-constructor":223,"../internals/an-object":227,"../internals/is-null-or-undefined":288,"../internals/well-known-symbol":357}],336:[function(e,p,g){var u=e("../internals/engine-v8-version"),i=e("../internals/fails"),o=e("../internals/global").String;p.exports=!!Object.getOwnPropertySymbols&&!i(function(){var r=Symbol("symbol detection");return!o(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&u&&u<41})},{"../internals/engine-v8-version":257,"../internals/fails":260,"../internals/global":274}],337:[function(e,p,g){var u=e("../internals/function-call"),i=e("../internals/get-built-in"),o=e("../internals/well-known-symbol"),r=e("../internals/define-built-in");p.exports=function(){var t=i("Symbol"),n=t&&t.prototype,c=n&&n.valueOf,s=o("toPrimitive");n&&!n[s]&&r(n,s,function(a){return u(c,this)},{arity:1})}},{"../internals/define-built-in":245,"../internals/function-call":264,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],338:[function(e,p,g){var u=e("../internals/symbol-constructor-detection");p.exports=u&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/symbol-constructor-detection":336}],339:[function(e,p,g){var u,i,o,r,t=e("../internals/global"),n=e("../internals/function-apply"),c=e("../internals/function-bind-context"),s=e("../internals/is-callable"),a=e("../internals/has-own-property"),f=e("../internals/fails"),h=e("../internals/html"),d=e("../internals/array-slice"),b=e("../internals/document-create-element"),m=e("../internals/validate-arguments-length"),x=e("../internals/engine-is-ios"),k=e("../internals/engine-is-node"),R=t.setImmediate,F=t.clearImmediate,L=t.process,j=t.Dispatch,D=t.Function,z=t.MessageChannel,$=t.String,V=0,T={};f(function(){u=t.location});var M=function(y){if(a(T,y)){var _=T[y];delete T[y],_()}},S=function(y){return function(){M(y)}},v=function(y){M(y.data)},w=function(y){t.postMessage($(y),u.protocol+"//"+u.host)};R&&F||(R=function(y){m(arguments.length,1);var _=s(y)?y:D(y),C=d(arguments,1);return T[++V]=function(){n(_,void 0,C)},i(V),V},F=function(y){delete T[y]},k?i=function(y){L.nextTick(S(y))}:j&&j.now?i=function(y){j.now(S(y))}:z&&!x?(r=(o=new z).port2,o.port1.onmessage=v,i=c(r.postMessage,r)):t.addEventListener&&s(t.postMessage)&&!t.importScripts&&u&&u.protocol!=="file:"&&!f(w)?(i=w,t.addEventListener("message",v,!1)):i="onreadystatechange"in b("script")?function(y){h.appendChild(b("script")).onreadystatechange=function(){h.removeChild(this),M(y)}}:function(y){setTimeout(S(y),0)}),p.exports={set:R,clear:F}},{"../internals/array-slice":231,"../internals/document-create-element":249,"../internals/engine-is-ios":253,"../internals/engine-is-node":254,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-bind-context":262,"../internals/global":274,"../internals/has-own-property":275,"../internals/html":278,"../internals/is-callable":285,"../internals/validate-arguments-length":353}],340:[function(e,p,g){var u=e("../internals/to-integer-or-infinity"),i=Math.max,o=Math.min;p.exports=function(r,t){var n=u(r);return n<0?i(n+t,0):o(n,t)}},{"../internals/to-integer-or-infinity":342}],341:[function(e,p,g){var u=e("../internals/indexed-object"),i=e("../internals/require-object-coercible");p.exports=function(o){return u(i(o))}},{"../internals/indexed-object":280,"../internals/require-object-coercible":329}],342:[function(e,p,g){var u=e("../internals/math-trunc");p.exports=function(i){var o=+i;return o!=o||o===0?0:u(o)}},{"../internals/math-trunc":301}],343:[function(e,p,g){var u=e("../internals/to-integer-or-infinity"),i=Math.min;p.exports=function(o){return o>0?i(u(o),9007199254740991):0}},{"../internals/to-integer-or-infinity":342}],344:[function(e,p,g){var u=e("../internals/require-object-coercible"),i=Object;p.exports=function(o){return i(u(o))}},{"../internals/require-object-coercible":329}],345:[function(e,p,g){var u=e("../internals/function-call"),i=e("../internals/is-object"),o=e("../internals/is-symbol"),r=e("../internals/get-method"),t=e("../internals/ordinary-to-primitive"),n=e("../internals/well-known-symbol"),c=TypeError,s=n("toPrimitive");p.exports=function(a,f){if(!i(a)||o(a))return a;var h,d=r(a,s);if(d){if(f===void 0&&(f="default"),h=u(d,a,f),!i(h)||o(h))return h;throw new c("Can't convert object to primitive value")}return f===void 0&&(f="number"),t(a,f)}},{"../internals/function-call":264,"../internals/get-method":273,"../internals/is-object":289,"../internals/is-symbol":292,"../internals/ordinary-to-primitive":320,"../internals/well-known-symbol":357}],346:[function(e,p,g){var u=e("../internals/to-primitive"),i=e("../internals/is-symbol");p.exports=function(o){var r=u(o,"string");return i(r)?r:r+""}},{"../internals/is-symbol":292,"../internals/to-primitive":345}],347:[function(e,p,g){var u={};u[e("../internals/well-known-symbol")("toStringTag")]="z",p.exports=String(u)==="[object z]"},{"../internals/well-known-symbol":357}],348:[function(e,p,g){var u=e("../internals/classof"),i=String;p.exports=function(o){if(u(o)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return i(o)}},{"../internals/classof":236}],349:[function(e,p,g){var u=String;p.exports=function(i){try{return u(i)}catch{return"Object"}}},{}],350:[function(e,p,g){var u=e("../internals/function-uncurry-this"),i=0,o=Math.random(),r=u(1 .toString);p.exports=function(t){return"Symbol("+(t===void 0?"":t)+")_"+r(++i+o,36)}},{"../internals/function-uncurry-this":268}],351:[function(e,p,g){var u=e("../internals/symbol-constructor-detection");p.exports=u&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/symbol-constructor-detection":336}],352:[function(e,p,g){var u=e("../internals/descriptors"),i=e("../internals/fails");p.exports=u&&i(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},{"../internals/descriptors":247,"../internals/fails":260}],353:[function(e,p,g){var u=TypeError;p.exports=function(i,o){if(i<o)throw new u("Not enough arguments");return i}},{}],354:[function(e,p,g){var u=e("../internals/global"),i=e("../internals/is-callable"),o=u.WeakMap;p.exports=i(o)&&/native code/.test(String(o))},{"../internals/global":274,"../internals/is-callable":285}],355:[function(e,p,g){var u=e("../internals/path"),i=e("../internals/has-own-property"),o=e("../internals/well-known-symbol-wrapped"),r=e("../internals/object-define-property").f;p.exports=function(t){var n=u.Symbol||(u.Symbol={});i(n,t)||r(n,t,{value:o.f(t)})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/path":322,"../internals/well-known-symbol-wrapped":356}],356:[function(e,p,g){var u=e("../internals/well-known-symbol");g.f=u},{"../internals/well-known-symbol":357}],357:[function(e,p,g){var u=e("../internals/global"),i=e("../internals/shared"),o=e("../internals/has-own-property"),r=e("../internals/uid"),t=e("../internals/symbol-constructor-detection"),n=e("../internals/use-symbol-as-uid"),c=u.Symbol,s=i("wks"),a=n?c.for||c:c&&c.withoutSetter||r;p.exports=function(f){return o(s,f)||(s[f]=t&&o(c,f)?c[f]:a("Symbol."+f)),s[f]}},{"../internals/global":274,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-constructor-detection":336,"../internals/uid":350,"../internals/use-symbol-as-uid":351}],358:[function(e,p,g){var u=e("../internals/export"),i=e("../internals/array-iteration").findIndex,o=e("../internals/add-to-unscopables"),r=!0;"findIndex"in[]&&Array(1).findIndex(function(){r=!1}),u({target:"Array",proto:!0,forced:r},{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("findIndex")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],359:[function(e,p,g){var u=e("../internals/export"),i=e("../internals/array-iteration").find,o=e("../internals/add-to-unscopables"),r=!0;"find"in[]&&Array(1).find(function(){r=!1}),u({target:"Array",proto:!0,forced:r},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("find")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],360:[function(e,p,g){var u=e("../internals/export"),i=e("../internals/array-includes").includes,o=e("../internals/fails"),r=e("../internals/add-to-unscopables");u({target:"Array",proto:!0,forced:o(function(){return!Array(1).includes()})},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r("includes")},{"../internals/add-to-unscopables":225,"../internals/array-includes":228,"../internals/export":259,"../internals/fails":260}],361:[function(e,p,g){var u=e("../internals/to-indexed-object"),i=e("../internals/add-to-unscopables"),o=e("../internals/iterators"),r=e("../internals/internal-state"),t=e("../internals/object-define-property").f,n=e("../internals/iterator-define"),c=e("../internals/create-iter-result-object"),s=e("../internals/is-pure"),a=e("../internals/descriptors"),f=r.set,h=r.getterFor("Array Iterator");p.exports=n(Array,"Array",function(b,m){f(this,{type:"Array Iterator",target:u(b),index:0,kind:m})},function(){var b=h(this),m=b.target,x=b.kind,k=b.index++;if(!m||k>=m.length)return b.target=void 0,c(void 0,!0);switch(x){case"keys":return c(k,!1);case"values":return c(m[k],!1)}return c([k,m[k]],!1)},"values");var d=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!s&&a&&d.name!=="values")try{t(d,"name",{value:"values"})}catch{}},{"../internals/add-to-unscopables":225,"../internals/create-iter-result-object":240,"../internals/descriptors":247,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/iterator-define":296,"../internals/iterators":298,"../internals/object-define-property":308,"../internals/to-indexed-object":341}],362:[function(e,p,g){var u=e("../internals/export"),i=e("../internals/get-built-in"),o=e("../internals/function-apply"),r=e("../internals/function-call"),t=e("../internals/function-uncurry-this"),n=e("../internals/fails"),c=e("../internals/is-callable"),s=e("../internals/is-symbol"),a=e("../internals/array-slice"),f=e("../internals/get-json-replacer-function"),h=e("../internals/symbol-constructor-detection"),d=String,b=i("JSON","stringify"),m=t(/./.exec),x=t("".charAt),k=t("".charCodeAt),R=t("".replace),F=t(1 .toString),L=/[\uD800-\uDFFF]/g,j=/^[\uD800-\uDBFF]$/,D=/^[\uDC00-\uDFFF]$/,z=!h||n(function(){var M=i("Symbol")("stringify detection");return b([M])!=="[null]"||b({a:M})!=="{}"||b(Object(M))!=="{}"}),$=n(function(){return b("\uDF06\uD834")!=='"\\udf06\\ud834"'||b("\uDEAD")!=='"\\udead"'}),V=function(M,S){var v=a(arguments),w=f(S);if(c(w)||M!==void 0&&!s(M))return v[1]=function(y,_){if(c(w)&&(_=r(w,this,d(y),_)),!s(_))return _},o(b,null,v)},T=function(M,S,v){var w=x(v,S-1),y=x(v,S+1);return m(j,M)&&!m(D,y)||m(D,M)&&!m(j,w)?"\\u"+F(k(M,0),16):M};b&&u({target:"JSON",stat:!0,arity:3,forced:z||$},{stringify:function(M,S,v){var w=a(arguments),y=o(z?V:b,null,w);return $&&typeof y=="string"?R(y,L,T):y}})},{"../internals/array-slice":231,"../internals/export":259,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/get-json-replacer-function":272,"../internals/is-callable":285,"../internals/is-symbol":292,"../internals/symbol-constructor-detection":336}],363:[function(e,p,g){e("../internals/export")({target:"Number",stat:!0},{isNaN:function(u){return u!=u}})},{"../internals/export":259}],364:[function(e,p,g){var u=e("../internals/export"),i=e("../internals/object-assign");u({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},{"../internals/export":259,"../internals/object-assign":305}],365:[function(e,p,g){var u=e("../internals/export"),i=e("../internals/symbol-constructor-detection"),o=e("../internals/fails"),r=e("../internals/object-get-own-property-symbols"),t=e("../internals/to-object");u({target:"Object",stat:!0,forced:!i||o(function(){r.f(1)})},{getOwnPropertySymbols:function(n){var c=r.f;return c?c(t(n)):[]}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-get-own-property-symbols":312,"../internals/symbol-constructor-detection":336,"../internals/to-object":344}],366:[function(e,p,g){var u=e("../internals/export"),i=e("../internals/to-object"),o=e("../internals/object-keys");u({target:"Object",stat:!0,forced:e("../internals/fails")(function(){o(1)})},{keys:function(r){return o(i(r))}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-keys":316,"../internals/to-object":344}],367:[function(e,p,g){var u=e("../internals/export"),i=e("../internals/object-to-array").values;u({target:"Object",stat:!0},{values:function(o){return i(o)}})},{"../internals/export":259,"../internals/object-to-array":319}],368:[function(e,p,g){var u=e("../internals/export"),i=e("../internals/function-call"),o=e("../internals/a-callable"),r=e("../internals/new-promise-capability"),t=e("../internals/perform"),n=e("../internals/iterate");u({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{all:function(c){var s=this,a=r.f(s),f=a.resolve,h=a.reject,d=t(function(){var b=o(s.resolve),m=[],x=0,k=1;n(c,function(R){var F=x++,L=!1;k++,i(b,s,R).then(function(j){L||(L=!0,m[F]=j,--k||f(m))},h)}),--k||f(m)});return d.error&&h(d.value),a.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],369:[function(e,p,g){var u=e("../internals/export"),i=e("../internals/is-pure"),o=e("../internals/promise-constructor-detection").CONSTRUCTOR,r=e("../internals/promise-native-constructor"),t=e("../internals/get-built-in"),n=e("../internals/is-callable"),c=e("../internals/define-built-in"),s=r&&r.prototype;if(u({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(f){return this.then(void 0,f)}}),!i&&n(r)){var a=t("Promise").prototype.catch;s.catch!==a&&c(s,"catch",a,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],370:[function(e,p,g){var u,i,o,r=e("../internals/export"),t=e("../internals/is-pure"),n=e("../internals/engine-is-node"),c=e("../internals/global"),s=e("../internals/function-call"),a=e("../internals/define-built-in"),f=e("../internals/object-set-prototype-of"),h=e("../internals/set-to-string-tag"),d=e("../internals/set-species"),b=e("../internals/a-callable"),m=e("../internals/is-callable"),x=e("../internals/is-object"),k=e("../internals/an-instance"),R=e("../internals/species-constructor"),F=e("../internals/task").set,L=e("../internals/microtask"),j=e("../internals/host-report-errors"),D=e("../internals/perform"),z=e("../internals/queue"),$=e("../internals/internal-state"),V=e("../internals/promise-native-constructor"),T=e("../internals/promise-constructor-detection"),M=e("../internals/new-promise-capability"),S=T.CONSTRUCTOR,v=T.REJECTION_EVENT,w=T.SUBCLASSING,y=$.getterFor("Promise"),_=$.set,C=V&&V.prototype,I=V,P=C,H=c.TypeError,W=c.document,K=c.process,B=M.f,q=B,O=!!(W&&W.createEvent&&c.dispatchEvent),N=function(ee){var ae;return!(!x(ee)||!m(ae=ee.then))&&ae},U=function(ee,ae){var se,le,ce,de=ae.value,pe=ae.state===1,ke=pe?ee.ok:ee.fail,Se=ee.resolve,ye=ee.reject,Ie=ee.domain;try{ke?(pe||(ae.rejection===2&&ne(ae),ae.rejection=1),ke===!0?se=de:(Ie&&Ie.enter(),se=ke(de),Ie&&(Ie.exit(),ce=!0)),se===ee.promise?ye(new H("Promise-chain cycle")):(le=N(se))?s(le,se,Se,ye):Se(se)):ye(de)}catch(Re){Ie&&!ce&&Ie.exit(),ye(Re)}},X=function(ee,ae){ee.notified||(ee.notified=!0,L(function(){for(var se,le=ee.reactions;se=le.get();)U(se,ee);ee.notified=!1,ae&&!ee.rejection&&G(ee)}))},Z=function(ee,ae,se){var le,ce;O?((le=W.createEvent("Event")).promise=ae,le.reason=se,le.initEvent(ee,!1,!0),c.dispatchEvent(le)):le={promise:ae,reason:se},!v&&(ce=c["on"+ee])?ce(le):ee==="unhandledrejection"&&j("Unhandled promise rejection",se)},G=function(ee){s(F,c,function(){var ae,se=ee.facade,le=ee.value;if(J(ee)&&(ae=D(function(){n?K.emit("unhandledRejection",le,se):Z("unhandledrejection",se,le)}),ee.rejection=n||J(ee)?2:1,ae.error))throw ae.value})},J=function(ee){return ee.rejection!==1&&!ee.parent},ne=function(ee){s(F,c,function(){var ae=ee.facade;n?K.emit("rejectionHandled",ae):Z("rejectionhandled",ae,ee.value)})},ie=function(ee,ae,se){return function(le){ee(ae,le,se)}},Y=function(ee,ae,se){ee.done||(ee.done=!0,se&&(ee=se),ee.value=ae,ee.state=2,X(ee,!0))},te=function(ee,ae,se){if(!ee.done){ee.done=!0,se&&(ee=se);try{if(ee.facade===ae)throw new H("Promise can't be resolved itself");var le=N(ae);le?L(function(){var ce={done:!1};try{s(le,ae,ie(te,ce,ee),ie(Y,ce,ee))}catch(de){Y(ce,de,ee)}}):(ee.value=ae,ee.state=1,X(ee,!1))}catch(ce){Y({done:!1},ce,ee)}}};if(S&&(P=(I=function(ee){k(this,P),b(ee),s(u,this);var ae=y(this);try{ee(ie(te,ae),ie(Y,ae))}catch(se){Y(ae,se)}}).prototype,(u=function(ee){_(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new z,rejection:!1,state:0,value:void 0})}).prototype=a(P,"then",function(ee,ae){var se=y(this),le=B(R(this,I));return se.parent=!0,le.ok=!m(ee)||ee,le.fail=m(ae)&&ae,le.domain=n?K.domain:void 0,se.state===0?se.reactions.add(le):L(function(){U(le,se)}),le.promise}),i=function(){var ee=new u,ae=y(ee);this.promise=ee,this.resolve=ie(te,ae),this.reject=ie(Y,ae)},M.f=B=function(ee){return ee===I||ee===void 0?new i(ee):q(ee)},!t&&m(V)&&C!==Object.prototype)){o=C.then,w||a(C,"then",function(ee,ae){var se=this;return new I(function(le,ce){s(o,se,le,ce)}).then(ee,ae)},{unsafe:!0});try{delete C.constructor}catch{}f&&f(C,P)}r({global:!0,constructor:!0,wrap:!0,forced:S},{Promise:I}),h(I,"Promise",!1,!0),d("Promise")},{"../internals/a-callable":222,"../internals/an-instance":226,"../internals/define-built-in":245,"../internals/engine-is-node":254,"../internals/export":259,"../internals/function-call":264,"../internals/global":274,"../internals/host-report-errors":277,"../internals/internal-state":282,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/microtask":302,"../internals/new-promise-capability":303,"../internals/object-set-prototype-of":318,"../internals/perform":323,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/queue":328,"../internals/set-species":330,"../internals/set-to-string-tag":331,"../internals/species-constructor":335,"../internals/task":339}],371:[function(e,p,g){var u=e("../internals/export"),i=e("../internals/is-pure"),o=e("../internals/promise-native-constructor"),r=e("../internals/fails"),t=e("../internals/get-built-in"),n=e("../internals/is-callable"),c=e("../internals/species-constructor"),s=e("../internals/promise-resolve"),a=e("../internals/define-built-in"),f=o&&o.prototype;if(u({target:"Promise",proto:!0,real:!0,forced:!!o&&r(function(){f.finally.call({then:function(){}},function(){})})},{finally:function(d){var b=c(this,t("Promise")),m=n(d);return this.then(m?function(x){return s(b,d()).then(function(){return x})}:d,m?function(x){return s(b,d()).then(function(){throw x})}:d)}}),!i&&n(o)){var h=t("Promise").prototype.finally;f.finally!==h&&a(f,"finally",h,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/fails":260,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326,"../internals/species-constructor":335}],372:[function(e,p,g){e("../modules/es.promise.constructor"),e("../modules/es.promise.all"),e("../modules/es.promise.catch"),e("../modules/es.promise.race"),e("../modules/es.promise.reject"),e("../modules/es.promise.resolve")},{"../modules/es.promise.all":368,"../modules/es.promise.catch":369,"../modules/es.promise.constructor":370,"../modules/es.promise.race":373,"../modules/es.promise.reject":374,"../modules/es.promise.resolve":375}],373:[function(e,p,g){var u=e("../internals/export"),i=e("../internals/function-call"),o=e("../internals/a-callable"),r=e("../internals/new-promise-capability"),t=e("../internals/perform"),n=e("../internals/iterate");u({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{race:function(c){var s=this,a=r.f(s),f=a.reject,h=t(function(){var d=o(s.resolve);n(c,function(b){i(d,s,b).then(a.resolve,f)})});return h.error&&f(h.value),a.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],374:[function(e,p,g){var u=e("../internals/export"),i=e("../internals/function-call"),o=e("../internals/new-promise-capability");u({target:"Promise",stat:!0,forced:e("../internals/promise-constructor-detection").CONSTRUCTOR},{reject:function(r){var t=o.f(this);return i(t.reject,void 0,r),t.promise}})},{"../internals/export":259,"../internals/function-call":264,"../internals/new-promise-capability":303,"../internals/promise-constructor-detection":324}],375:[function(e,p,g){var u=e("../internals/export"),i=e("../internals/get-built-in"),o=e("../internals/is-pure"),r=e("../internals/promise-native-constructor"),t=e("../internals/promise-constructor-detection").CONSTRUCTOR,n=e("../internals/promise-resolve"),c=i("Promise"),s=o&&!t;u({target:"Promise",stat:!0,forced:o||t},{resolve:function(a){return n(s&&this===c?r:this,a)}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326}],376:[function(e,p,g){var u=e("../internals/export"),i=e("../internals/function-uncurry-this"),o=e("../internals/to-absolute-index"),r=RangeError,t=String.fromCharCode,n=String.fromCodePoint,c=i([].join);u({target:"String",stat:!0,arity:1,forced:!!n&&n.length!==1},{fromCodePoint:function(s){for(var a,f=[],h=arguments.length,d=0;h>d;){if(a=+arguments[d++],o(a,1114111)!==a)throw new r(a+" is not a valid code point");f[d]=a<65536?t(a):t(55296+((a-=65536)>>10),a%1024+56320)}return c(f,"")}})},{"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/to-absolute-index":340}],377:[function(e,p,g){var u=e("../internals/export"),i=e("../internals/function-uncurry-this"),o=e("../internals/not-a-regexp"),r=e("../internals/require-object-coercible"),t=e("../internals/to-string"),n=e("../internals/correct-is-regexp-logic"),c=i("".indexOf);u({target:"String",proto:!0,forced:!n("includes")},{includes:function(s){return!!~c(t(r(this)),t(o(s)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":238,"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/not-a-regexp":304,"../internals/require-object-coercible":329,"../internals/to-string":348}],378:[function(e,p,g){e("../internals/well-known-symbol-define")("asyncIterator")},{"../internals/well-known-symbol-define":355}],379:[function(e,p,g){var u=e("../internals/export"),i=e("../internals/global"),o=e("../internals/function-call"),r=e("../internals/function-uncurry-this"),t=e("../internals/is-pure"),n=e("../internals/descriptors"),c=e("../internals/symbol-constructor-detection"),s=e("../internals/fails"),a=e("../internals/has-own-property"),f=e("../internals/object-is-prototype-of"),h=e("../internals/an-object"),d=e("../internals/to-indexed-object"),b=e("../internals/to-property-key"),m=e("../internals/to-string"),x=e("../internals/create-property-descriptor"),k=e("../internals/object-create"),R=e("../internals/object-keys"),F=e("../internals/object-get-own-property-names"),L=e("../internals/object-get-own-property-names-external"),j=e("../internals/object-get-own-property-symbols"),D=e("../internals/object-get-own-property-descriptor"),z=e("../internals/object-define-property"),$=e("../internals/object-define-properties"),V=e("../internals/object-property-is-enumerable"),T=e("../internals/define-built-in"),M=e("../internals/define-built-in-accessor"),S=e("../internals/shared"),v=e("../internals/shared-key"),w=e("../internals/hidden-keys"),y=e("../internals/uid"),_=e("../internals/well-known-symbol"),C=e("../internals/well-known-symbol-wrapped"),I=e("../internals/well-known-symbol-define"),P=e("../internals/symbol-define-to-primitive"),H=e("../internals/set-to-string-tag"),W=e("../internals/internal-state"),K=e("../internals/array-iteration").forEach,B=v("hidden"),q=W.set,O=W.getterFor("Symbol"),N=Object.prototype,U=i.Symbol,X=U&&U.prototype,Z=i.RangeError,G=i.TypeError,J=i.QObject,ne=D.f,ie=z.f,Y=L.f,te=V.f,ee=r([].push),ae=S("symbols"),se=S("op-symbols"),le=S("wks"),ce=!J||!J.prototype||!J.prototype.findChild,de=function(Ce,be,Te){var Me=ne(N,be);Me&&delete N[be],ie(Ce,be,Te),Me&&Ce!==N&&ie(N,be,Me)},pe=n&&s(function(){return k(ie({},"a",{get:function(){return ie(this,"a",{value:7}).a}})).a!==7})?de:ie,ke=function(Ce,be){var Te=ae[Ce]=k(X);return q(Te,{type:"Symbol",tag:Ce,description:be}),n||(Te.description=be),Te},Se=function(Ce,be,Te){Ce===N&&Se(se,be,Te),h(Ce);var Me=b(be);return h(Te),a(ae,Me)?(Te.enumerable?(a(Ce,B)&&Ce[B][Me]&&(Ce[B][Me]=!1),Te=k(Te,{enumerable:x(0,!1)})):(a(Ce,B)||ie(Ce,B,x(1,{})),Ce[B][Me]=!0),pe(Ce,Me,Te)):ie(Ce,Me,Te)},ye=function(Ce,be){h(Ce);var Te=d(be),Me=R(Te).concat(je(Te));return K(Me,function(Ee){n&&!o(Ie,Te,Ee)||Se(Ce,Ee,Te[Ee])}),Ce},Ie=function(Ce){var be=b(Ce),Te=o(te,this,be);return!(this===N&&a(ae,be)&&!a(se,be))&&(!(Te||!a(this,be)||!a(ae,be)||a(this,B)&&this[B][be])||Te)},Re=function(Ce,be){var Te=d(Ce),Me=b(be);if(Te!==N||!a(ae,Me)||a(se,Me)){var Ee=ne(Te,Me);return!Ee||!a(ae,Me)||a(Te,B)&&Te[B][Me]||(Ee.enumerable=!0),Ee}},Ne=function(Ce){var be=Y(d(Ce)),Te=[];return K(be,function(Me){a(ae,Me)||a(w,Me)||ee(Te,Me)}),Te},je=function(Ce){var be=Ce===N,Te=Y(be?se:d(Ce)),Me=[];return K(Te,function(Ee){!a(ae,Ee)||be&&!a(N,Ee)||ee(Me,ae[Ee])}),Me};c||(T(X=(U=function(){if(f(X,this))throw new G("Symbol is not a constructor");var Ce=arguments.length&&arguments[0]!==void 0?m(arguments[0]):void 0,be=y(Ce),Te=function(Me){this===N&&o(Te,se,Me),a(this,B)&&a(this[B],be)&&(this[B][be]=!1);var Ee=x(1,Me);try{pe(this,be,Ee)}catch(tt){if(!(tt instanceof Z))throw tt;de(this,be,Ee)}};return n&&ce&&pe(N,be,{configurable:!0,set:Te}),ke(be,Ce)}).prototype,"toString",function(){return O(this).tag}),T(U,"withoutSetter",function(Ce){return ke(y(Ce),Ce)}),V.f=Ie,z.f=Se,$.f=ye,D.f=Re,F.f=L.f=Ne,j.f=je,C.f=function(Ce){return ke(_(Ce),Ce)},n&&(M(X,"description",{configurable:!0,get:function(){return O(this).description}}),t||T(N,"propertyIsEnumerable",Ie,{unsafe:!0}))),u({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:U}),K(R(le),function(Ce){I(Ce)}),u({target:"Symbol",stat:!0,forced:!c},{useSetter:function(){ce=!0},useSimple:function(){ce=!1}}),u({target:"Object",stat:!0,forced:!c,sham:!n},{create:function(Ce,be){return be===void 0?k(Ce):ye(k(Ce),be)},defineProperty:Se,defineProperties:ye,getOwnPropertyDescriptor:Re}),u({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:Ne}),P(),H(U,"Symbol"),w[B]=!0},{"../internals/an-object":227,"../internals/array-iteration":229,"../internals/create-property-descriptor":242,"../internals/define-built-in":245,"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/export":259,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-define-properties":307,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-names-external":310,"../internals/object-get-own-property-symbols":312,"../internals/object-is-prototype-of":314,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/set-to-string-tag":331,"../internals/shared":334,"../internals/shared-key":332,"../internals/symbol-constructor-detection":336,"../internals/symbol-define-to-primitive":337,"../internals/to-indexed-object":341,"../internals/to-property-key":346,"../internals/to-string":348,"../internals/uid":350,"../internals/well-known-symbol":357,"../internals/well-known-symbol-define":355,"../internals/well-known-symbol-wrapped":356}],380:[function(e,p,g){var u=e("../internals/export"),i=e("../internals/get-built-in"),o=e("../internals/has-own-property"),r=e("../internals/to-string"),t=e("../internals/shared"),n=e("../internals/symbol-registry-detection"),c=t("string-to-symbol-registry"),s=t("symbol-to-string-registry");u({target:"Symbol",stat:!0,forced:!n},{for:function(a){var f=r(a);if(o(c,f))return c[f];var h=i("Symbol")(f);return c[f]=h,s[h]=f,h}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/to-string":348}],381:[function(e,p,g){e("../modules/es.symbol.constructor"),e("../modules/es.symbol.for"),e("../modules/es.symbol.key-for"),e("../modules/es.json.stringify"),e("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":362,"../modules/es.object.get-own-property-symbols":365,"../modules/es.symbol.constructor":379,"../modules/es.symbol.for":380,"../modules/es.symbol.key-for":382}],382:[function(e,p,g){var u=e("../internals/export"),i=e("../internals/has-own-property"),o=e("../internals/is-symbol"),r=e("../internals/try-to-string"),t=e("../internals/shared"),n=e("../internals/symbol-registry-detection"),c=t("symbol-to-string-registry");u({target:"Symbol",stat:!0,forced:!n},{keyFor:function(s){if(!o(s))throw new TypeError(r(s)+" is not a symbol");if(i(c,s))return c[s]}})},{"../internals/export":259,"../internals/has-own-property":275,"../internals/is-symbol":292,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/try-to-string":349}],383:[function(e,p,g){function u(i){return Object.prototype.toString.call(i)}g.isArray=function(i){return Array.isArray?Array.isArray(i):u(i)==="[object Array]"},g.isBoolean=function(i){return typeof i=="boolean"},g.isNull=function(i){return i===null},g.isNullOrUndefined=function(i){return i==null},g.isNumber=function(i){return typeof i=="number"},g.isString=function(i){return typeof i=="string"},g.isSymbol=function(i){return typeof i=="symbol"},g.isUndefined=function(i){return i===void 0},g.isRegExp=function(i){return u(i)==="[object RegExp]"},g.isObject=function(i){return typeof i=="object"&&i!==null},g.isDate=function(i){return u(i)==="[object Date]"},g.isError=function(i){return u(i)==="[object Error]"||i instanceof Error},g.isFunction=function(i){return typeof i=="function"},g.isPrimitive=function(i){return i===null||typeof i=="boolean"||typeof i=="number"||typeof i=="string"||typeof i=="symbol"||i===void 0},g.isBuffer=e("buffer").Buffer.isBuffer},{buffer:220}],384:[function(e,p,g){(function(u){(function(){var i=e("elliptic"),o=e("bn.js");p.exports=function(c){return new t(c)};var r={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 t(c){this.curveType=r[c],this.curveType||(this.curveType={name:c}),this.curve=new i.ec(this.curveType.name),this.keys=void 0}function n(c,s,a){Array.isArray(c)||(c=c.toArray());var f=new u(c);if(a&&f.length<a){var h=new u(a-f.length);h.fill(0),f=u.concat([h,f])}return s?f.toString(s):f}r.p224=r.secp224r1,r.p256=r.secp256r1=r.prime256v1,r.p192=r.secp192r1=r.prime192v1,r.p384=r.secp384r1,r.p521=r.secp521r1,t.prototype.generateKeys=function(c,s){return this.keys=this.curve.genKeyPair(),this.getPublicKey(c,s)},t.prototype.computeSecret=function(c,s,a){return s=s||"utf8",u.isBuffer(c)||(c=new u(c,s)),n(this.curve.keyFromPublic(c).getPublic().mul(this.keys.getPrivate()).getX(),a,this.curveType.byteLength)},t.prototype.getPublicKey=function(c,s){var a=this.keys.getPublic(s==="compressed",!0);return s==="hybrid"&&(a[a.length-1]%2?a[0]=7:a[0]=6),n(a,c)},t.prototype.getPrivateKey=function(c){return n(this.keys.getPrivate(),c)},t.prototype.setPublicKey=function(c,s){return s=s||"utf8",u.isBuffer(c)||(c=new u(c,s)),this.keys._importPublic(c),this},t.prototype.setPrivateKey=function(c,s){s=s||"utf8",u.isBuffer(c)||(c=new u(c,s));var a=new o(c);return a=a.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(a),this}}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":385,buffer:220,elliptic:405}],385:[function(e,p,g){arguments[4][184][0].apply(g,arguments)},{buffer:188,dup:184}],386:[function(e,p,g){var u=e("inherits"),i=e("md5.js"),o=e("ripemd160"),r=e("sha.js"),t=e("cipher-base");function n(c){t.call(this,"digest"),this._hash=c}u(n,t),n.prototype._update=function(c){this._hash.update(c)},n.prototype._final=function(){return this._hash.digest()},p.exports=function(c){return(c=c.toLowerCase())==="md5"?new i:c==="rmd160"||c==="ripemd160"?new o:new n(r(c))}},{"cipher-base":221,inherits:440,"md5.js":450,ripemd160:493,"sha.js":498}],387:[function(e,p,g){var u=e("md5.js");p.exports=function(i){return new u().update(i).digest()}},{"md5.js":450}],388:[function(e,p,g){var u=e("inherits"),i=e("./legacy"),o=e("cipher-base"),r=e("safe-buffer").Buffer,t=e("create-hash/md5"),n=e("ripemd160"),c=e("sha.js"),s=r.alloc(128);function a(f,h){o.call(this,"digest"),typeof h=="string"&&(h=r.from(h));var d=f==="sha512"||f==="sha384"?128:64;this._alg=f,this._key=h,h.length>d?h=(f==="rmd160"?new n:c(f)).update(h).digest():h.length<d&&(h=r.concat([h,s],d));for(var b=this._ipad=r.allocUnsafe(d),m=this._opad=r.allocUnsafe(d),x=0;x<d;x++)b[x]=54^h[x],m[x]=92^h[x];this._hash=f==="rmd160"?new n:c(f),this._hash.update(b)}u(a,o),a.prototype._update=function(f){this._hash.update(f)},a.prototype._final=function(){var f=this._hash.digest();return(this._alg==="rmd160"?new n:c(this._alg)).update(this._opad).update(f).digest()},p.exports=function(f,h){return(f=f.toLowerCase())==="rmd160"||f==="ripemd160"?new a("rmd160",h):f==="md5"?new i(t,h):new a(f,h)}},{"./legacy":389,"cipher-base":221,"create-hash/md5":387,inherits:440,ripemd160:493,"safe-buffer":494,"sha.js":498}],389:[function(e,p,g){var u=e("inherits"),i=e("safe-buffer").Buffer,o=e("cipher-base"),r=i.alloc(128);function t(n,c){o.call(this,"digest"),typeof c=="string"&&(c=i.from(c)),this._alg=n,this._key=c,c.length>64?c=n(c):c.length<64&&(c=i.concat([c,r],64));for(var s=this._ipad=i.allocUnsafe(64),a=this._opad=i.allocUnsafe(64),f=0;f<64;f++)s[f]=54^c[f],a[f]=92^c[f];this._hash=[s]}u(t,o),t.prototype._update=function(n){this._hash.push(n)},t.prototype._final=function(){var n=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,n]))},p.exports=t},{"cipher-base":221,inherits:440,"safe-buffer":494}],390:[function(e,p,g){g.randomBytes=g.rng=g.pseudoRandomBytes=g.prng=e("randombytes"),g.createHash=g.Hash=e("create-hash"),g.createHmac=g.Hmac=e("create-hmac");var u=e("browserify-sign/algos"),i=Object.keys(u),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);g.getHashes=function(){return o};var r=e("pbkdf2");g.pbkdf2=r.pbkdf2,g.pbkdf2Sync=r.pbkdf2Sync;var t=e("browserify-cipher");g.Cipher=t.Cipher,g.createCipher=t.createCipher,g.Cipheriv=t.Cipheriv,g.createCipheriv=t.createCipheriv,g.Decipher=t.Decipher,g.createDecipher=t.createDecipher,g.Decipheriv=t.Decipheriv,g.createDecipheriv=t.createDecipheriv,g.getCiphers=t.getCiphers,g.listCiphers=t.listCiphers;var n=e("diffie-hellman");g.DiffieHellmanGroup=n.DiffieHellmanGroup,g.createDiffieHellmanGroup=n.createDiffieHellmanGroup,g.getDiffieHellman=n.getDiffieHellman,g.createDiffieHellman=n.createDiffieHellman,g.DiffieHellman=n.DiffieHellman;var c=e("browserify-sign");g.createSign=c.createSign,g.Sign=c.Sign,g.createVerify=c.createVerify,g.Verify=c.Verify,g.createECDH=e("create-ecdh");var s=e("public-encrypt");g.publicEncrypt=s.publicEncrypt,g.privateEncrypt=s.privateEncrypt,g.publicDecrypt=s.publicDecrypt,g.privateDecrypt=s.privateDecrypt;var a=e("randomfill");g.randomFill=a.randomFill,g.randomFillSync=a.randomFillSync,g.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
9
- `))},g.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":206,"browserify-sign":213,"browserify-sign/algos":210,"create-ecdh":384,"create-hash":386,"create-hmac":388,"diffie-hellman":400,pbkdf2:460,"public-encrypt":468,randombytes:475,randomfill:476}],391:[function(e,p,g){(function(u,i){typeof g=="object"&&p!==void 0?p.exports=i():(u=typeof globalThis<"u"?globalThis:u||self).dayjs=i()})(void 0,function(){var u=6e4,i=36e5,o="millisecond",r="second",t="minute",n="hour",c="day",s="week",a="month",f="quarter",h="year",d="date",b="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|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,k={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(v){var w=["th","st","nd","rd"],y=v%100;return"["+v+(w[(y-20)%10]||w[y]||w[0])+"]"}},R=function(v,w,y){var _=String(v);return!_||_.length>=w?v:""+Array(w+1-_.length).join(y)+v},F={s:R,z:function(v){var w=-v.utcOffset(),y=Math.abs(w),_=Math.floor(y/60),C=y%60;return(w<=0?"+":"-")+R(_,2,"0")+":"+R(C,2,"0")},m:function v(w,y){if(w.date()<y.date())return-v(y,w);var _=12*(y.year()-w.year())+(y.month()-w.month()),C=w.clone().add(_,a),I=y-C<0,P=w.clone().add(_+(I?-1:1),a);return+(-(_+(y-C)/(I?C-P:P-C))||0)},a:function(v){return v<0?Math.ceil(v)||0:Math.floor(v)},p:function(v){return{M:a,y:h,w:s,d:c,D:d,h:n,m:t,s:r,ms:o,Q:f}[v]||String(v||"").toLowerCase().replace(/s$/,"")},u:function(v){return v===void 0}},L="en",j={};j[L]=k;var D="$isDayjsObject",z=function(v){return v instanceof M||!(!v||!v[D])},$=function v(w,y,_){var C;if(!w)return L;if(typeof w=="string"){var I=w.toLowerCase();j[I]&&(C=I),y&&(j[I]=y,C=I);var P=w.split("-");if(!C&&P.length>1)return v(P[0])}else{var H=w.name;j[H]=w,C=H}return!_&&C&&(L=C),C||!_&&L},V=function(v,w){if(z(v))return v.clone();var y=typeof w=="object"?w:{};return y.date=v,y.args=arguments,new M(y)},T=F;T.l=$,T.i=z,T.w=function(v,w){return V(v,{locale:w.$L,utc:w.$u,x:w.$x,$offset:w.$offset})};var M=function(){function v(y){this.$L=$(y.locale,null,!0),this.parse(y),this.$x=this.$x||y.x||{},this[D]=!0}var w=v.prototype;return w.parse=function(y){this.$d=function(_){var C=_.date,I=_.utc;if(C===null)return new Date(NaN);if(T.u(C))return new Date;if(C instanceof Date)return new Date(C);if(typeof C=="string"&&!/Z$/i.test(C)){var P=C.match(m);if(P){var H=P[2]-1||0,W=(P[7]||"0").substring(0,3);return I?new Date(Date.UTC(P[1],H,P[3]||1,P[4]||0,P[5]||0,P[6]||0,W)):new Date(P[1],H,P[3]||1,P[4]||0,P[5]||0,P[6]||0,W)}}return new Date(C)}(y),this.init()},w.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},w.$utils=function(){return T},w.isValid=function(){return this.$d.toString()!==b},w.isSame=function(y,_){var C=V(y);return this.startOf(_)<=C&&C<=this.endOf(_)},w.isAfter=function(y,_){return V(y)<this.startOf(_)},w.isBefore=function(y,_){return this.endOf(_)<V(y)},w.$g=function(y,_,C){return T.u(y)?this[_]:this.set(C,y)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(y,_){var C=this,I=!!T.u(_)||_,P=T.p(y),H=function(X,Z){var G=T.w(C.$u?Date.UTC(C.$y,Z,X):new Date(C.$y,Z,X),C);return I?G:G.endOf(c)},W=function(X,Z){return T.w(C.toDate()[X].apply(C.toDate("s"),(I?[0,0,0,0]:[23,59,59,999]).slice(Z)),C)},K=this.$W,B=this.$M,q=this.$D,O="set"+(this.$u?"UTC":"");switch(P){case h:return I?H(1,0):H(31,11);case a:return I?H(1,B):H(0,B+1);case s:var N=this.$locale().weekStart||0,U=(K<N?K+7:K)-N;return H(I?q-U:q+(6-U),B);case c:case d:return W(O+"Hours",0);case n:return W(O+"Minutes",1);case t:return W(O+"Seconds",2);case r:return W(O+"Milliseconds",3);default:return this.clone()}},w.endOf=function(y){return this.startOf(y,!1)},w.$set=function(y,_){var C,I=T.p(y),P="set"+(this.$u?"UTC":""),H=(C={},C[c]=P+"Date",C[d]=P+"Date",C[a]=P+"Month",C[h]=P+"FullYear",C[n]=P+"Hours",C[t]=P+"Minutes",C[r]=P+"Seconds",C[o]=P+"Milliseconds",C)[I],W=I===c?this.$D+(_-this.$W):_;if(I===a||I===h){var K=this.clone().set(d,1);K.$d[H](W),K.init(),this.$d=K.set(d,Math.min(this.$D,K.daysInMonth())).$d}else H&&this.$d[H](W);return this.init(),this},w.set=function(y,_){return this.clone().$set(y,_)},w.get=function(y){return this[T.p(y)]()},w.add=function(y,_){var C,I=this;y=Number(y);var P=T.p(_),H=function(B){var q=V(I);return T.w(q.date(q.date()+Math.round(B*y)),I)};if(P===a)return this.set(a,this.$M+y);if(P===h)return this.set(h,this.$y+y);if(P===c)return H(1);if(P===s)return H(7);var W=(C={},C[t]=u,C[n]=i,C[r]=1e3,C)[P]||1,K=this.$d.getTime()+y*W;return T.w(K,this)},w.subtract=function(y,_){return this.add(-1*y,_)},w.format=function(y){var _=this,C=this.$locale();if(!this.isValid())return C.invalidDate||b;var I=y||"YYYY-MM-DDTHH:mm:ssZ",P=T.z(this),H=this.$H,W=this.$m,K=this.$M,B=C.weekdays,q=C.months,O=C.meridiem,N=function(Z,G,J,ne){return Z&&(Z[G]||Z(_,I))||J[G].slice(0,ne)},U=function(Z){return T.s(H%12||12,Z,"0")},X=O||function(Z,G,J){var ne=Z<12?"AM":"PM";return J?ne.toLowerCase():ne};return I.replace(x,function(Z,G){return G||function(J){switch(J){case"YY":return String(_.$y).slice(-2);case"YYYY":return T.s(_.$y,4,"0");case"M":return K+1;case"MM":return T.s(K+1,2,"0");case"MMM":return N(C.monthsShort,K,q,3);case"MMMM":return N(q,K);case"D":return _.$D;case"DD":return T.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return N(C.weekdaysMin,_.$W,B,2);case"ddd":return N(C.weekdaysShort,_.$W,B,3);case"dddd":return B[_.$W];case"H":return String(H);case"HH":return T.s(H,2,"0");case"h":return U(1);case"hh":return U(2);case"a":return X(H,W,!0);case"A":return X(H,W,!1);case"m":return String(W);case"mm":return T.s(W,2,"0");case"s":return String(_.$s);case"ss":return T.s(_.$s,2,"0");case"SSS":return T.s(_.$ms,3,"0");case"Z":return P}return null}(Z)||P.replace(":","")})},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(y,_,C){var I,P=this,H=T.p(_),W=V(y),K=(W.utcOffset()-this.utcOffset())*u,B=this-W,q=function(){return T.m(P,W)};switch(H){case h:I=q()/12;break;case a:I=q();break;case f:I=q()/3;break;case s:I=(B-K)/6048e5;break;case c:I=(B-K)/864e5;break;case n:I=B/i;break;case t:I=B/u;break;case r:I=B/1e3;break;default:I=B}return C?I:T.a(I)},w.daysInMonth=function(){return this.endOf(a).$D},w.$locale=function(){return j[this.$L]},w.locale=function(y,_){if(!y)return this.$L;var C=this.clone(),I=$(y,_,!0);return I&&(C.$L=I),C},w.clone=function(){return T.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},v}(),S=M.prototype;return V.prototype=S,[["$ms",o],["$s",r],["$m",t],["$H",n],["$W",c],["$M",a],["$y",h],["$D",d]].forEach(function(v){S[v[1]]=function(w){return this.$g(w,v[0],v[1])}}),V.extend=function(v,w){return v.$i||(v(w,M,V),v.$i=!0),V},V.locale=$,V.isDayjs=z,V.unix=function(v){return V(1e3*v)},V.en=j[L],V.Ls=j,V.p={},V})},{}],392:[function(e,p,g){(function(u,i){typeof g=="object"&&p!==void 0?p.exports=i():(u=typeof globalThis<"u"?globalThis:u||self).dayjs_plugin_customParseFormat=i()})(void 0,function(){var u={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"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,r=/\d\d?/,t=/\d*[^-_:/,()\s\d]+/,n={},c=function(m){return(m=+m)+(m>68?1900:2e3)},s=function(m){return function(x){this[m]=+x}},a=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var k=x.match(/([+-]|\d\d)/g),R=60*k[1]+(+k[2]||0);return R===0?0:k[0]==="+"?-R:R}(m)}],f=function(m){var x=n[m];return x&&(x.indexOf?x:x.s.concat(x.f))},h=function(m,x){var k,R=n.meridiem;if(R){for(var F=1;F<=24;F+=1)if(m.indexOf(R(F,0,x))>-1){k=F>12;break}}else k=m===(x?"pm":"PM");return k},d={A:[t,function(m){this.afternoon=h(m,!1)}],a:[t,function(m){this.afternoon=h(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[o,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[o,s("day")],Do:[t,function(m){var x=n.ordinal,k=m.match(/\d+/);if(this.day=k[0],x)for(var R=1;R<=31;R+=1)x(R).replace(/\[|\]/g,"")===m&&(this.day=R)}],M:[r,s("month")],MM:[o,s("month")],MMM:[t,function(m){var x=f("months"),k=(f("monthsShort")||x.map(function(R){return R.slice(0,3)})).indexOf(m)+1;if(k<1)throw new Error;this.month=k%12||k}],MMMM:[t,function(m){var x=f("months").indexOf(m)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,s("year")],YY:[o,function(m){this.year=c(m)}],YYYY:[/\d{4}/,s("year")],Z:a,ZZ:a};function b(m){var x,k;x=m,k=n&&n.formats;for(var R=(m=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(V,T,M){var S=M&&M.toUpperCase();return T||k[M]||u[M]||k[S].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,w,y){return w||y.slice(1)})})).match(i),F=R.length,L=0;L<F;L+=1){var j=R[L],D=d[j],z=D&&D[0],$=D&&D[1];R[L]=$?{regex:z,parser:$}:j.replace(/^\[|\]$/g,"")}return function(V){for(var T={},M=0,S=0;M<F;M+=1){var v=R[M];if(typeof v=="string")S+=v.length;else{var w=v.regex,y=v.parser,_=V.slice(S),C=w.exec(_)[0];y.call(T,C),V=V.replace(C,"")}}return function(I){var P=I.afternoon;if(P!==void 0){var H=I.hours;P?H<12&&(I.hours+=12):H===12&&(I.hours=0),delete I.afternoon}}(T),T}}return function(m,x,k){k.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(c=m.parseTwoDigitYear);var R=x.prototype,F=R.parse;R.parse=function(L){var j=L.date,D=L.utc,z=L.args;this.$u=D;var $=z[1];if(typeof $=="string"){var V=z[2]===!0,T=z[3]===!0,M=V||T,S=z[2];T&&(S=z[2]),n=this.$locale(),!V&&S&&(n=k.Ls[S]),this.$d=function(_,C,I){try{if(["x","X"].indexOf(C)>-1)return new Date((C==="X"?1e3:1)*_);var P=b(C)(_),H=P.year,W=P.month,K=P.day,B=P.hours,q=P.minutes,O=P.seconds,N=P.milliseconds,U=P.zone,X=new Date,Z=K||(H||W?1:X.getDate()),G=H||X.getFullYear(),J=0;H&&!W||(J=W>0?W-1:X.getMonth());var ne=B||0,ie=q||0,Y=O||0,te=N||0;return U?new Date(Date.UTC(G,J,Z,ne,ie,Y,te+60*U.offset*1e3)):I?new Date(Date.UTC(G,J,Z,ne,ie,Y,te)):new Date(G,J,Z,ne,ie,Y,te)}catch{return new Date("")}}(j,$,D),this.init(),S&&S!==!0&&(this.$L=this.locale(S).$L),M&&j!=this.format($)&&(this.$d=new Date("")),n={}}else if($ instanceof Array)for(var v=$.length,w=1;w<=v;w+=1){z[1]=$[w-1];var y=k.apply(this,z);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}w===v&&(this.$d=new Date(""))}else F.call(this,L)}}})},{}],393:[function(e,p,g){(function(u,i){typeof g=="object"&&p!==void 0?p.exports=i():(u=typeof globalThis<"u"?globalThis:u||self).dayjs_plugin_utc=i()})(void 0,function(){var u="minute",i=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(r,t,n){var c=t.prototype;n.utc=function(m){var x={date:m,utc:!0,args:arguments};return new t(x)},c.utc=function(m){var x=n(this.toDate(),{locale:this.$L,utc:!0});return m?x.add(this.utcOffset(),u):x},c.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var s=c.parse;c.parse=function(m){m.utc&&(this.$u=!0),this.$utils().u(m.$offset)||(this.$offset=m.$offset),s.call(this,m)};var a=c.init;c.init=function(){if(this.$u){var m=this.$d;this.$y=m.getUTCFullYear(),this.$M=m.getUTCMonth(),this.$D=m.getUTCDate(),this.$W=m.getUTCDay(),this.$H=m.getUTCHours(),this.$m=m.getUTCMinutes(),this.$s=m.getUTCSeconds(),this.$ms=m.getUTCMilliseconds()}else a.call(this)};var f=c.utcOffset;c.utcOffset=function(m,x){var k=this.$utils().u;if(k(m))return this.$u?0:k(this.$offset)?f.call(this):this.$offset;if(typeof m=="string"&&(m=function(j){j===void 0&&(j="");var D=j.match(i);if(!D)return null;var z=(""+D[0]).match(o)||["-",0,0],$=z[0],V=60*+z[1]+ +z[2];return V===0?0:$==="+"?V:-V}(m))===null)return this;var R=Math.abs(m)<=16?60*m:m,F=this;if(x)return F.$offset=R,F.$u=m===0,F;if(m!==0){var L=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(F=this.local().add(R+L,u)).$offset=R,F.$x.$localOffset=L}else F=this.utc();return F};var h=c.format;c.format=function(m){var x=m||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,x)},c.valueOf=function(){var m=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*m},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var d=c.toDate;c.toDate=function(m){return m==="s"&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var b=c.diff;c.diff=function(m,x,k){if(m&&this.$u===m.$u)return b.call(this,m,x,k);var R=this.local(),F=n(m).local();return b.call(R,F,x,k)}}})},{}],394:[function(e,p,g){g.utils=e("./des/utils"),g.Cipher=e("./des/cipher"),g.DES=e("./des/des"),g.CBC=e("./des/cbc"),g.EDE=e("./des/ede")},{"./des/cbc":395,"./des/cipher":396,"./des/des":397,"./des/ede":398,"./des/utils":399}],395:[function(e,p,g){var u=e("minimalistic-assert"),i=e("inherits"),o={};function r(t){u.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var n=0;n<this.iv.length;n++)this.iv[n]=t[n]}g.instantiate=function(t){function n(f){t.call(this,f),this._cbcInit()}i(n,t);for(var c=Object.keys(o),s=0;s<c.length;s++){var a=c[s];n.prototype[a]=o[a]}return n.create=function(f){return new n(f)},n},o._cbcInit=function(){var t=new r(this.options.iv);this._cbcState=t},o._update=function(t,n,c,s){var a=this._cbcState,f=this.constructor.super_.prototype,h=a.iv;if(this.type==="encrypt"){for(var d=0;d<this.blockSize;d++)h[d]^=t[n+d];for(f._update.call(this,h,0,c,s),d=0;d<this.blockSize;d++)h[d]=c[s+d]}else{for(f._update.call(this,t,n,c,s),d=0;d<this.blockSize;d++)c[s+d]^=h[d];for(d=0;d<this.blockSize;d++)h[d]=t[n+d]}}},{inherits:440,"minimalistic-assert":453}],396:[function(e,p,g){var u=e("minimalistic-assert");function i(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}p.exports=i,i.prototype._init=function(){},i.prototype.update=function(o){return o.length===0?[]:this.type==="decrypt"?this._updateDecrypt(o):this._updateEncrypt(o)},i.prototype._buffer=function(o,r){for(var t=Math.min(this.buffer.length-this.bufferOff,o.length-r),n=0;n<t;n++)this.buffer[this.bufferOff+n]=o[r+n];return this.bufferOff+=t,t},i.prototype._flushBuffer=function(o,r){return this._update(this.buffer,0,o,r),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(o){var r=0,t=0,n=(this.bufferOff+o.length)/this.blockSize|0,c=new Array(n*this.blockSize);this.bufferOff!==0&&(r+=this._buffer(o,r),this.bufferOff===this.buffer.length&&(t+=this._flushBuffer(c,t)));for(var s=o.length-(o.length-r)%this.blockSize;r<s;r+=this.blockSize)this._update(o,r,c,t),t+=this.blockSize;for(;r<o.length;r++,this.bufferOff++)this.buffer[this.bufferOff]=o[r];return c},i.prototype._updateDecrypt=function(o){for(var r=0,t=0,n=Math.ceil((this.bufferOff+o.length)/this.blockSize)-1,c=new Array(n*this.blockSize);n>0;n--)r+=this._buffer(o,r),t+=this._flushBuffer(c,t);return r+=this._buffer(o,r),c},i.prototype.final=function(o){var r,t;return o&&(r=this.update(o)),t=this.type==="encrypt"?this._finalEncrypt():this._finalDecrypt(),r?r.concat(t):t},i.prototype._pad=function(o,r){if(r===0)return!1;for(;r<o.length;)o[r++]=0;return!0},i.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},i.prototype._unpad=function(o){return o},i.prototype._finalDecrypt=function(){u.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(e,p,g){var u=e("minimalistic-assert"),i=e("inherits"),o=e("./utils"),r=e("./cipher");function t(){this.tmp=new Array(2),this.keys=null}function n(s){r.call(this,s);var a=new t;this._desState=a,this.deriveKeys(a,s.key)}i(n,r),p.exports=n,n.create=function(s){return new n(s)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];n.prototype.deriveKeys=function(s,a){s.keys=new Array(32),u.equal(a.length,this.blockSize,"Invalid key length");var f=o.readUInt32BE(a,0),h=o.readUInt32BE(a,4);o.pc1(f,h,s.tmp,0),f=s.tmp[0],h=s.tmp[1];for(var d=0;d<s.keys.length;d+=2){var b=c[d>>>1];f=o.r28shl(f,b),h=o.r28shl(h,b),o.pc2(f,h,s.keys,d)}},n.prototype._update=function(s,a,f,h){var d=this._desState,b=o.readUInt32BE(s,a),m=o.readUInt32BE(s,a+4);o.ip(b,m,d.tmp,0),b=d.tmp[0],m=d.tmp[1],this.type==="encrypt"?this._encrypt(d,b,m,d.tmp,0):this._decrypt(d,b,m,d.tmp,0),b=d.tmp[0],m=d.tmp[1],o.writeUInt32BE(f,b,h),o.writeUInt32BE(f,m,h+4)},n.prototype._pad=function(s,a){if(this.padding===!1)return!1;for(var f=s.length-a,h=a;h<s.length;h++)s[h]=f;return!0},n.prototype._unpad=function(s){if(this.padding===!1)return s;for(var a=s[s.length-1],f=s.length-a;f<s.length;f++)u.equal(s[f],a);return s.slice(0,s.length-a)},n.prototype._encrypt=function(s,a,f,h,d){for(var b=a,m=f,x=0;x<s.keys.length;x+=2){var k=s.keys[x],R=s.keys[x+1];o.expand(m,s.tmp,0),k^=s.tmp[0],R^=s.tmp[1];var F=o.substitute(k,R),L=m;m=(b^o.permute(F))>>>0,b=L}o.rip(m,b,h,d)},n.prototype._decrypt=function(s,a,f,h,d){for(var b=f,m=a,x=s.keys.length-2;x>=0;x-=2){var k=s.keys[x],R=s.keys[x+1];o.expand(b,s.tmp,0),k^=s.tmp[0],R^=s.tmp[1];var F=o.substitute(k,R),L=b;b=(m^o.permute(F))>>>0,m=L}o.rip(b,m,h,d)}},{"./cipher":396,"./utils":399,inherits:440,"minimalistic-assert":453}],398:[function(e,p,g){var u=e("minimalistic-assert"),i=e("inherits"),o=e("./cipher"),r=e("./des");function t(c,s){u.equal(s.length,24,"Invalid key length");var a=s.slice(0,8),f=s.slice(8,16),h=s.slice(16,24);this.ciphers=c==="encrypt"?[r.create({type:"encrypt",key:a}),r.create({type:"decrypt",key:f}),r.create({type:"encrypt",key:h})]:[r.create({type:"decrypt",key:h}),r.create({type:"encrypt",key:f}),r.create({type:"decrypt",key:a})]}function n(c){o.call(this,c);var s=new t(this.type,this.options.key);this._edeState=s}i(n,o),p.exports=n,n.create=function(c){return new n(c)},n.prototype._update=function(c,s,a,f){var h=this._edeState;h.ciphers[0]._update(c,s,a,f),h.ciphers[1]._update(a,f,a,f),h.ciphers[2]._update(a,f,a,f)},n.prototype._pad=r.prototype._pad,n.prototype._unpad=r.prototype._unpad},{"./cipher":396,"./des":397,inherits:440,"minimalistic-assert":453}],399:[function(e,p,g){g.readUInt32BE=function(r,t){return(r[0+t]<<24|r[1+t]<<16|r[2+t]<<8|r[3+t])>>>0},g.writeUInt32BE=function(r,t,n){r[0+n]=t>>>24,r[1+n]=t>>>16&255,r[2+n]=t>>>8&255,r[3+n]=255&t},g.ip=function(r,t,n,c){for(var s=0,a=0,f=6;f>=0;f-=2){for(var h=0;h<=24;h+=8)s<<=1,s|=t>>>h+f&1;for(h=0;h<=24;h+=8)s<<=1,s|=r>>>h+f&1}for(f=6;f>=0;f-=2){for(h=1;h<=25;h+=8)a<<=1,a|=t>>>h+f&1;for(h=1;h<=25;h+=8)a<<=1,a|=r>>>h+f&1}n[c+0]=s>>>0,n[c+1]=a>>>0},g.rip=function(r,t,n,c){for(var s=0,a=0,f=0;f<4;f++)for(var h=24;h>=0;h-=8)s<<=1,s|=t>>>h+f&1,s<<=1,s|=r>>>h+f&1;for(f=4;f<8;f++)for(h=24;h>=0;h-=8)a<<=1,a|=t>>>h+f&1,a<<=1,a|=r>>>h+f&1;n[c+0]=s>>>0,n[c+1]=a>>>0},g.pc1=function(r,t,n,c){for(var s=0,a=0,f=7;f>=5;f--){for(var h=0;h<=24;h+=8)s<<=1,s|=t>>h+f&1;for(h=0;h<=24;h+=8)s<<=1,s|=r>>h+f&1}for(h=0;h<=24;h+=8)s<<=1,s|=t>>h+f&1;for(f=1;f<=3;f++){for(h=0;h<=24;h+=8)a<<=1,a|=t>>h+f&1;for(h=0;h<=24;h+=8)a<<=1,a|=r>>h+f&1}for(h=0;h<=24;h+=8)a<<=1,a|=r>>h+f&1;n[c+0]=s>>>0,n[c+1]=a>>>0},g.r28shl=function(r,t){return r<<t&268435455|r>>>28-t};var u=[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];g.pc2=function(r,t,n,c){for(var s=0,a=0,f=u.length>>>1,h=0;h<f;h++)s<<=1,s|=r>>>u[h]&1;for(h=f;h<u.length;h++)a<<=1,a|=t>>>u[h]&1;n[c+0]=s>>>0,n[c+1]=a>>>0},g.expand=function(r,t,n){var c=0,s=0;c=(1&r)<<5|r>>>27;for(var a=23;a>=15;a-=4)c<<=6,c|=r>>>a&63;for(a=11;a>=3;a-=4)s|=r>>>a&63,s<<=6;s|=(31&r)<<1|r>>>31,t[n+0]=c>>>0,t[n+1]=s>>>0};var i=[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];g.substitute=function(r,t){for(var n=0,c=0;c<4;c++)n<<=4,n|=i[64*c+(r>>>18-6*c&63)];for(c=0;c<4;c++)n<<=4,n|=i[256+64*c+(t>>>18-6*c&63)];return n>>>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];g.permute=function(r){for(var t=0,n=0;n<o.length;n++)t<<=1,t|=r>>>o[n]&1;return t>>>0},g.padSplit=function(r,t,n){for(var c=r.toString(2);c.length<t;)c="0"+c;for(var s=[],a=0;a<t;a+=n)s.push(c.slice(a,a+n));return s.join(" ")}},{}],400:[function(e,p,g){(function(u){(function(){var i=e("./lib/generatePrime"),o=e("./lib/primes.json"),r=e("./lib/dh"),t={binary:!0,hex:!0,base64:!0};g.DiffieHellmanGroup=g.createDiffieHellmanGroup=g.getDiffieHellman=function(n){var c=new u(o[n].prime,"hex"),s=new u(o[n].gen,"hex");return new r(c,s)},g.createDiffieHellman=g.DiffieHellman=function n(c,s,a,f){return u.isBuffer(s)||t[s]===void 0?n(c,"binary",s,a):(s=s||"binary",f=f||"binary",a=a||new u([2]),u.isBuffer(a)||(a=new u(a,f)),typeof c=="number"?new r(i(c,a),a,!0):(u.isBuffer(c)||(c=new u(c,s)),new r(c,a,!0)))}}).call(this)}).call(this,e("buffer").Buffer)},{"./lib/dh":401,"./lib/generatePrime":402,"./lib/primes.json":403,buffer:220}],401:[function(e,p,g){(function(u){(function(){var i=e("bn.js"),o=new(e("miller-rabin")),r=new i(24),t=new i(11),n=new i(10),c=new i(3),s=new i(7),a=e("./generatePrime"),f=e("randombytes");function h(k,R){return R=R||"utf8",u.isBuffer(k)||(k=new u(k,R)),this._pub=new i(k),this}function d(k,R){return R=R||"utf8",u.isBuffer(k)||(k=new u(k,R)),this._priv=new i(k),this}p.exports=m;var b={};function m(k,R,F){this.setGenerator(R),this.__prime=new i(k),this._prime=i.mont(this.__prime),this._primeLen=k.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,F?(this.setPublicKey=h,this.setPrivateKey=d):this._primeCode=8}function x(k,R){var F=new u(k.toArray());return R?F.toString(R):F}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=function(k,R){var F=R.toString("hex"),L=[F,k.toString(16)].join("_");if(L in b)return b[L];var j,D=0;if(k.isEven()||!a.simpleSieve||!a.fermatTest(k)||!o.test(k))return D+=1,D+=F==="02"||F==="05"?8:4,b[L]=D,D;switch(o.test(k.shrn(1))||(D+=2),F){case"02":k.mod(r).cmp(t)&&(D+=8);break;case"05":(j=k.mod(n)).cmp(c)&&j.cmp(s)&&(D+=8);break;default:D+=4}return b[L]=D,D}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new i(f(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(k){var R=(k=(k=new i(k)).toRed(this._prime)).redPow(this._priv).fromRed(),F=new u(R.toArray()),L=this.getPrime();if(F.length<L.length){var j=new u(L.length-F.length);j.fill(0),F=u.concat([j,F])}return F},m.prototype.getPublicKey=function(k){return x(this._pub,k)},m.prototype.getPrivateKey=function(k){return x(this._priv,k)},m.prototype.getPrime=function(k){return x(this.__prime,k)},m.prototype.getGenerator=function(k){return x(this._gen,k)},m.prototype.setGenerator=function(k,R){return R=R||"utf8",u.isBuffer(k)||(k=new u(k,R)),this.__gen=k,this._gen=new i(k),this}}).call(this)}).call(this,e("buffer").Buffer)},{"./generatePrime":402,"bn.js":404,buffer:220,"miller-rabin":451,randombytes:475}],402:[function(e,p,g){var u=e("randombytes");p.exports=k,k.simpleSieve=m,k.fermatTest=x;var i=e("bn.js"),o=new i(24),r=new(e("miller-rabin")),t=new i(1),n=new i(2),c=new i(5),s=(new i(16),new i(8),new i(10)),a=new i(3),f=(new i(7),new i(11)),h=new i(4),d=(new i(12),null);function b(){if(d!==null)return d;var R=[];R[0]=2;for(var F=1,L=3;L<1048576;L+=2){for(var j=Math.ceil(Math.sqrt(L)),D=0;D<F&&R[D]<=j&&L%R[D]!=0;D++);F!==D&&R[D]<=j||(R[F++]=L)}return d=R,R}function m(R){for(var F=b(),L=0;L<F.length;L++)if(R.modn(F[L])===0)return R.cmpn(F[L])===0;return!0}function x(R){var F=i.mont(R);return n.toRed(F).redPow(R.subn(1)).fromRed().cmpn(1)===0}function k(R,F){if(R<16)return new i(F===2||F===5?[140,123]:[140,39]);var L,j;for(F=new i(F);;){for(L=new i(u(Math.ceil(R/8)));L.bitLength()>R;)L.ishrn(1);if(L.isEven()&&L.iadd(t),L.testn(1)||L.iadd(n),F.cmp(n)){if(!F.cmp(c))for(;L.mod(s).cmp(a);)L.iadd(h)}else for(;L.mod(o).cmp(f);)L.iadd(h);if(m(j=L.shrn(1))&&m(L)&&x(j)&&x(L)&&r.test(j)&&r.test(L))return L}}},{"bn.js":404,"miller-rabin":451,randombytes:475}],403:[function(e,p,g){p.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],404:[function(e,p,g){arguments[4][184][0].apply(g,arguments)},{buffer:188,dup:184}],405:[function(e,p,g){var u=g;u.version=e("../package.json").version,u.utils=e("./elliptic/utils"),u.rand=e("brorand"),u.curve=e("./elliptic/curve"),u.curves=e("./elliptic/curves"),u.ec=e("./elliptic/ec"),u.eddsa=e("./elliptic/eddsa")},{"../package.json":421,"./elliptic/curve":408,"./elliptic/curves":411,"./elliptic/ec":412,"./elliptic/eddsa":415,"./elliptic/utils":419,brorand:187}],406:[function(e,p,g){var u=e("bn.js"),i=e("../utils"),o=i.getNAF,r=i.getJSF,t=i.assert;function n(s,a){this.type=s,this.p=new u(a.p,16),this.red=a.prime?u.red(a.prime):u.mont(this.p),this.zero=new u(0).toRed(this.red),this.one=new u(1).toRed(this.red),this.two=new u(2).toRed(this.red),this.n=a.n&&new u(a.n,16),this.g=a.g&&this.pointFromJSON(a.g,a.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 f=this.n&&this.p.div(this.n);!f||f.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(s,a){this.curve=s,this.type=a,this.precomputed=null}p.exports=n,n.prototype.point=function(){throw new Error("Not implemented")},n.prototype.validate=function(){throw new Error("Not implemented")},n.prototype._fixedNafMul=function(s,a){t(s.precomputed);var f=s._getDoubles(),h=o(a,1,this._bitLength),d=(1<<f.step+1)-(f.step%2==0?2:1);d/=3;var b,m,x=[];for(b=0;b<h.length;b+=f.step){m=0;for(var k=b+f.step-1;k>=b;k--)m=(m<<1)+h[k];x.push(m)}for(var R=this.jpoint(null,null,null),F=this.jpoint(null,null,null),L=d;L>0;L--){for(b=0;b<x.length;b++)(m=x[b])===L?F=F.mixedAdd(f.points[b]):m===-L&&(F=F.mixedAdd(f.points[b].neg()));R=R.add(F)}return R.toP()},n.prototype._wnafMul=function(s,a){var f=4,h=s._getNAFPoints(f);f=h.wnd;for(var d=h.points,b=o(a,f,this._bitLength),m=this.jpoint(null,null,null),x=b.length-1;x>=0;x--){for(var k=0;x>=0&&b[x]===0;x--)k++;if(x>=0&&k++,m=m.dblp(k),x<0)break;var R=b[x];t(R!==0),m=s.type==="affine"?R>0?m.mixedAdd(d[R-1>>1]):m.mixedAdd(d[-R-1>>1].neg()):R>0?m.add(d[R-1>>1]):m.add(d[-R-1>>1].neg())}return s.type==="affine"?m.toP():m},n.prototype._wnafMulAdd=function(s,a,f,h,d){var b,m,x,k=this._wnafT1,R=this._wnafT2,F=this._wnafT3,L=0;for(b=0;b<h;b++){var j=(x=a[b])._getNAFPoints(s);k[b]=j.wnd,R[b]=j.points}for(b=h-1;b>=1;b-=2){var D=b-1,z=b;if(k[D]===1&&k[z]===1){var $=[a[D],null,null,a[z]];a[D].y.cmp(a[z].y)===0?($[1]=a[D].add(a[z]),$[2]=a[D].toJ().mixedAdd(a[z].neg())):a[D].y.cmp(a[z].y.redNeg())===0?($[1]=a[D].toJ().mixedAdd(a[z]),$[2]=a[D].add(a[z].neg())):($[1]=a[D].toJ().mixedAdd(a[z]),$[2]=a[D].toJ().mixedAdd(a[z].neg()));var V=[-3,-1,-5,-7,0,7,5,1,3],T=r(f[D],f[z]);for(L=Math.max(T[0].length,L),F[D]=new Array(L),F[z]=new Array(L),m=0;m<L;m++){var M=0|T[0][m],S=0|T[1][m];F[D][m]=V[3*(M+1)+(S+1)],F[z][m]=0,R[D]=$}}else F[D]=o(f[D],k[D],this._bitLength),F[z]=o(f[z],k[z],this._bitLength),L=Math.max(F[D].length,L),L=Math.max(F[z].length,L)}var v=this.jpoint(null,null,null),w=this._wnafT4;for(b=L;b>=0;b--){for(var y=0;b>=0;){var _=!0;for(m=0;m<h;m++)w[m]=0|F[m][b],w[m]!==0&&(_=!1);if(!_)break;y++,b--}if(b>=0&&y++,v=v.dblp(y),b<0)break;for(m=0;m<h;m++){var C=w[m];C!==0&&(C>0?x=R[m][C-1>>1]:C<0&&(x=R[m][-C-1>>1].neg()),v=x.type==="affine"?v.mixedAdd(x):v.add(x))}}for(b=0;b<h;b++)R[b]=null;return d?v:v.toP()},n.BasePoint=c,c.prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},n.prototype.decodePoint=function(s,a){s=i.toArray(s,a);var f=this.p.byteLength();if((s[0]===4||s[0]===6||s[0]===7)&&s.length-1==2*f)return s[0]===6?t(s[s.length-1]%2==0):s[0]===7&&t(s[s.length-1]%2==1),this.point(s.slice(1,1+f),s.slice(1+f,1+2*f));if((s[0]===2||s[0]===3)&&s.length-1===f)return this.pointFromX(s.slice(1,1+f),s[0]===3);throw new Error("Unknown point format")},c.prototype.encodeCompressed=function(s){return this.encode(s,!0)},c.prototype._encode=function(s){var a=this.curve.p.byteLength(),f=this.getX().toArray("be",a);return s?[this.getY().isEven()?2:3].concat(f):[4].concat(f,this.getY().toArray("be",a))},c.prototype.encode=function(s,a){return i.encode(this._encode(a),s)},c.prototype.precompute=function(s){if(this.precomputed)return this;var a={doubles:null,naf:null,beta:null};return a.naf=this._getNAFPoints(8),a.doubles=this._getDoubles(4,s),a.beta=this._getBeta(),this.precomputed=a,this},c.prototype._hasDoubles=function(s){if(!this.precomputed)return!1;var a=this.precomputed.doubles;return!!a&&a.points.length>=Math.ceil((s.bitLength()+1)/a.step)},c.prototype._getDoubles=function(s,a){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var f=[this],h=this,d=0;d<a;d+=s){for(var b=0;b<s;b++)h=h.dbl();f.push(h)}return{step:s,points:f}},c.prototype._getNAFPoints=function(s){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var a=[this],f=(1<<s)-1,h=f===1?null:this.dbl(),d=1;d<f;d++)a[d]=a[d-1].add(h);return{wnd:s,points:a}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(s){for(var a=this,f=0;f<s;f++)a=a.dbl();return a}},{"../utils":419,"bn.js":420}],407:[function(e,p,g){var u=e("../utils"),i=e("bn.js"),o=e("inherits"),r=e("./base"),t=u.assert;function n(s){this.twisted=(0|s.a)!=1,this.mOneA=this.twisted&&(0|s.a)==-1,this.extended=this.mOneA,r.call(this,"edwards",s),this.a=new i(s.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(s.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(s.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),t(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|s.c)==1}function c(s,a,f,h,d){r.BasePoint.call(this,s,"projective"),a===null&&f===null&&h===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 i(a,16),this.y=new i(f,16),this.z=h?new i(h,16):this.curve.one,this.t=d&&new i(d,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(n,r),p.exports=n,n.prototype._mulA=function(s){return this.mOneA?s.redNeg():this.a.redMul(s)},n.prototype._mulC=function(s){return this.oneC?s:this.c.redMul(s)},n.prototype.jpoint=function(s,a,f,h){return this.point(s,a,f,h)},n.prototype.pointFromX=function(s,a){(s=new i(s,16)).red||(s=s.toRed(this.red));var f=s.redSqr(),h=this.c2.redSub(this.a.redMul(f)),d=this.one.redSub(this.c2.redMul(this.d).redMul(f)),b=h.redMul(d.redInvm()),m=b.redSqrt();if(m.redSqr().redSub(b).cmp(this.zero)!==0)throw new Error("invalid point");var x=m.fromRed().isOdd();return(a&&!x||!a&&x)&&(m=m.redNeg()),this.point(s,m)},n.prototype.pointFromY=function(s,a){(s=new i(s,16)).red||(s=s.toRed(this.red));var f=s.redSqr(),h=f.redSub(this.c2),d=f.redMul(this.d).redMul(this.c2).redSub(this.a),b=h.redMul(d.redInvm());if(b.cmp(this.zero)===0){if(a)throw new Error("invalid point");return this.point(this.zero,s)}var m=b.redSqrt();if(m.redSqr().redSub(b).cmp(this.zero)!==0)throw new Error("invalid point");return m.fromRed().isOdd()!==a&&(m=m.redNeg()),this.point(m,s)},n.prototype.validate=function(s){if(s.isInfinity())return!0;s.normalize();var a=s.x.redSqr(),f=s.y.redSqr(),h=a.redMul(this.a).redAdd(f),d=this.c2.redMul(this.one.redAdd(this.d.redMul(a).redMul(f)));return h.cmp(d)===0},o(c,r.BasePoint),n.prototype.pointFromJSON=function(s){return c.fromJSON(this,s)},n.prototype.point=function(s,a,f,h){return new c(this,s,a,f,h)},c.fromJSON=function(s,a){return new c(s,a[0],a[1],a[2])},c.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)+">"},c.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},c.prototype._extDbl=function(){var s=this.x.redSqr(),a=this.y.redSqr(),f=this.z.redSqr();f=f.redIAdd(f);var h=this.curve._mulA(s),d=this.x.redAdd(this.y).redSqr().redISub(s).redISub(a),b=h.redAdd(a),m=b.redSub(f),x=h.redSub(a),k=d.redMul(m),R=b.redMul(x),F=d.redMul(x),L=m.redMul(b);return this.curve.point(k,R,L,F)},c.prototype._projDbl=function(){var s,a,f,h,d,b,m=this.x.redAdd(this.y).redSqr(),x=this.x.redSqr(),k=this.y.redSqr();if(this.curve.twisted){var R=(h=this.curve._mulA(x)).redAdd(k);this.zOne?(s=m.redSub(x).redSub(k).redMul(R.redSub(this.curve.two)),a=R.redMul(h.redSub(k)),f=R.redSqr().redSub(R).redSub(R)):(d=this.z.redSqr(),b=R.redSub(d).redISub(d),s=m.redSub(x).redISub(k).redMul(b),a=R.redMul(h.redSub(k)),f=R.redMul(b))}else h=x.redAdd(k),d=this.curve._mulC(this.z).redSqr(),b=h.redSub(d).redSub(d),s=this.curve._mulC(m.redISub(h)).redMul(b),a=this.curve._mulC(h).redMul(x.redISub(k)),f=h.redMul(b);return this.curve.point(s,a,f)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(s){var a=this.y.redSub(this.x).redMul(s.y.redSub(s.x)),f=this.y.redAdd(this.x).redMul(s.y.redAdd(s.x)),h=this.t.redMul(this.curve.dd).redMul(s.t),d=this.z.redMul(s.z.redAdd(s.z)),b=f.redSub(a),m=d.redSub(h),x=d.redAdd(h),k=f.redAdd(a),R=b.redMul(m),F=x.redMul(k),L=b.redMul(k),j=m.redMul(x);return this.curve.point(R,F,j,L)},c.prototype._projAdd=function(s){var a,f,h=this.z.redMul(s.z),d=h.redSqr(),b=this.x.redMul(s.x),m=this.y.redMul(s.y),x=this.curve.d.redMul(b).redMul(m),k=d.redSub(x),R=d.redAdd(x),F=this.x.redAdd(this.y).redMul(s.x.redAdd(s.y)).redISub(b).redISub(m),L=h.redMul(k).redMul(F);return this.curve.twisted?(a=h.redMul(R).redMul(m.redSub(this.curve._mulA(b))),f=k.redMul(R)):(a=h.redMul(R).redMul(m.redSub(b)),f=this.curve._mulC(k).redMul(R)),this.curve.point(L,a,f)},c.prototype.add=function(s){return this.isInfinity()?s:s.isInfinity()?this:this.curve.extended?this._extAdd(s):this._projAdd(s)},c.prototype.mul=function(s){return this._hasDoubles(s)?this.curve._fixedNafMul(this,s):this.curve._wnafMul(this,s)},c.prototype.mulAdd=function(s,a,f){return this.curve._wnafMulAdd(1,[this,a],[s,f],2,!1)},c.prototype.jmulAdd=function(s,a,f){return this.curve._wnafMulAdd(1,[this,a],[s,f],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var s=this.z.redInvm();return this.x=this.x.redMul(s),this.y=this.y.redMul(s),this.t&&(this.t=this.t.redMul(s)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(s){return this===s||this.getX().cmp(s.getX())===0&&this.getY().cmp(s.getY())===0},c.prototype.eqXToP=function(s){var a=s.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(a)===0)return!0;for(var f=s.clone(),h=this.curve.redN.redMul(this.z);;){if(f.iadd(this.curve.n),f.cmp(this.curve.p)>=0)return!1;if(a.redIAdd(h),this.x.cmp(a)===0)return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],408:[function(e,p,g){var u=g;u.base=e("./base"),u.short=e("./short"),u.mont=e("./mont"),u.edwards=e("./edwards")},{"./base":406,"./edwards":407,"./mont":409,"./short":410}],409:[function(e,p,g){var u=e("bn.js"),i=e("inherits"),o=e("./base"),r=e("../utils");function t(c){o.call(this,"mont",c),this.a=new u(c.a,16).toRed(this.red),this.b=new u(c.b,16).toRed(this.red),this.i4=new u(4).toRed(this.red).redInvm(),this.two=new u(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function n(c,s,a){o.BasePoint.call(this,c,"projective"),s===null&&a===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new u(s,16),this.z=new u(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(t,o),p.exports=t,t.prototype.validate=function(c){var s=c.normalize().x,a=s.redSqr(),f=a.redMul(s).redAdd(a.redMul(this.a)).redAdd(s);return f.redSqrt().redSqr().cmp(f)===0},i(n,o.BasePoint),t.prototype.decodePoint=function(c,s){return this.point(r.toArray(c,s),1)},t.prototype.point=function(c,s){return new n(this,c,s)},t.prototype.pointFromJSON=function(c){return n.fromJSON(this,c)},n.prototype.precompute=function(){},n.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},n.fromJSON=function(c,s){return new n(c,s[0],s[1]||c.one)},n.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},n.prototype.isInfinity=function(){return this.z.cmpn(0)===0},n.prototype.dbl=function(){var c=this.x.redAdd(this.z).redSqr(),s=this.x.redSub(this.z).redSqr(),a=c.redSub(s),f=c.redMul(s),h=a.redMul(s.redAdd(this.curve.a24.redMul(a)));return this.curve.point(f,h)},n.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},n.prototype.diffAdd=function(c,s){var a=this.x.redAdd(this.z),f=this.x.redSub(this.z),h=c.x.redAdd(c.z),d=c.x.redSub(c.z).redMul(a),b=h.redMul(f),m=s.z.redMul(d.redAdd(b).redSqr()),x=s.x.redMul(d.redISub(b).redSqr());return this.curve.point(m,x)},n.prototype.mul=function(c){for(var s=c.clone(),a=this,f=this.curve.point(null,null),h=[];s.cmpn(0)!==0;s.iushrn(1))h.push(s.andln(1));for(var d=h.length-1;d>=0;d--)h[d]===0?(a=a.diffAdd(f,this),f=f.dbl()):(f=a.diffAdd(f,this),a=a.dbl());return f},n.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},n.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},n.prototype.eq=function(c){return this.getX().cmp(c.getX())===0},n.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},n.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],410:[function(e,p,g){var u=e("../utils"),i=e("bn.js"),o=e("inherits"),r=e("./base"),t=u.assert;function n(a){r.call(this,"short",a),this.a=new i(a.a,16).toRed(this.red),this.b=new i(a.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(a),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(a,f,h,d){r.BasePoint.call(this,a,"affine"),f===null&&h===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(f,16),this.y=new i(h,16),d&&(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 s(a,f,h,d){r.BasePoint.call(this,a,"jacobian"),f===null&&h===null&&d===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(f,16),this.y=new i(h,16),this.z=new i(d,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(n,r),p.exports=n,n.prototype._getEndomorphism=function(a){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var f,h;if(a.beta)f=new i(a.beta,16).toRed(this.red);else{var d=this._getEndoRoots(this.p);f=(f=d[0].cmp(d[1])<0?d[0]:d[1]).toRed(this.red)}if(a.lambda)h=new i(a.lambda,16);else{var b=this._getEndoRoots(this.n);this.g.mul(b[0]).x.cmp(this.g.x.redMul(f))===0?h=b[0]:(h=b[1],t(this.g.mul(h).x.cmp(this.g.x.redMul(f))===0))}return{beta:f,lambda:h,basis:a.basis?a.basis.map(function(m){return{a:new i(m.a,16),b:new i(m.b,16)}}):this._getEndoBasis(h)}}},n.prototype._getEndoRoots=function(a){var f=a===this.p?this.red:i.mont(a),h=new i(2).toRed(f).redInvm(),d=h.redNeg(),b=new i(3).toRed(f).redNeg().redSqrt().redMul(h);return[d.redAdd(b).fromRed(),d.redSub(b).fromRed()]},n.prototype._getEndoBasis=function(a){for(var f,h,d,b,m,x,k,R,F,L=this.n.ushrn(Math.floor(this.n.bitLength()/2)),j=a,D=this.n.clone(),z=new i(1),$=new i(0),V=new i(0),T=new i(1),M=0;j.cmpn(0)!==0;){var S=D.div(j);R=D.sub(S.mul(j)),F=V.sub(S.mul(z));var v=T.sub(S.mul($));if(!d&&R.cmp(L)<0)f=k.neg(),h=z,d=R.neg(),b=F;else if(d&&++M==2)break;k=R,D=j,j=R,V=z,z=F,T=$,$=v}m=R.neg(),x=F;var w=d.sqr().add(b.sqr());return m.sqr().add(x.sqr()).cmp(w)>=0&&(m=f,x=h),d.negative&&(d=d.neg(),b=b.neg()),m.negative&&(m=m.neg(),x=x.neg()),[{a:d,b},{a:m,b:x}]},n.prototype._endoSplit=function(a){var f=this.endo.basis,h=f[0],d=f[1],b=d.b.mul(a).divRound(this.n),m=h.b.neg().mul(a).divRound(this.n),x=b.mul(h.a),k=m.mul(d.a),R=b.mul(h.b),F=m.mul(d.b);return{k1:a.sub(x).sub(k),k2:R.add(F).neg()}},n.prototype.pointFromX=function(a,f){(a=new i(a,16)).red||(a=a.toRed(this.red));var h=a.redSqr().redMul(a).redIAdd(a.redMul(this.a)).redIAdd(this.b),d=h.redSqrt();if(d.redSqr().redSub(h).cmp(this.zero)!==0)throw new Error("invalid point");var b=d.fromRed().isOdd();return(f&&!b||!f&&b)&&(d=d.redNeg()),this.point(a,d)},n.prototype.validate=function(a){if(a.inf)return!0;var f=a.x,h=a.y,d=this.a.redMul(f),b=f.redSqr().redMul(f).redIAdd(d).redIAdd(this.b);return h.redSqr().redISub(b).cmpn(0)===0},n.prototype._endoWnafMulAdd=function(a,f,h){for(var d=this._endoWnafT1,b=this._endoWnafT2,m=0;m<a.length;m++){var x=this._endoSplit(f[m]),k=a[m],R=k._getBeta();x.k1.negative&&(x.k1.ineg(),k=k.neg(!0)),x.k2.negative&&(x.k2.ineg(),R=R.neg(!0)),d[2*m]=k,d[2*m+1]=R,b[2*m]=x.k1,b[2*m+1]=x.k2}for(var F=this._wnafMulAdd(1,d,b,2*m,h),L=0;L<2*m;L++)d[L]=null,b[L]=null;return F},o(c,r.BasePoint),n.prototype.point=function(a,f,h){return new c(this,a,f,h)},n.prototype.pointFromJSON=function(a,f){return c.fromJSON(this,a,f)},c.prototype._getBeta=function(){if(this.curve.endo){var a=this.precomputed;if(a&&a.beta)return a.beta;var f=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(a){var h=this.curve,d=function(b){return h.point(b.x.redMul(h.endo.beta),b.y)};a.beta=f,f.precomputed={beta:null,naf:a.naf&&{wnd:a.naf.wnd,points:a.naf.points.map(d)},doubles:a.doubles&&{step:a.doubles.step,points:a.doubles.points.map(d)}}}return f}},c.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]},c.fromJSON=function(a,f,h){typeof f=="string"&&(f=JSON.parse(f));var d=a.point(f[0],f[1],h);if(!f[2])return d;function b(x){return a.point(x[0],x[1],h)}var m=f[2];return d.precomputed={beta:null,doubles:m.doubles&&{step:m.doubles.step,points:[d].concat(m.doubles.points.map(b))},naf:m.naf&&{wnd:m.naf.wnd,points:[d].concat(m.naf.points.map(b))}},d},c.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)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(a){if(this.inf)return a;if(a.inf)return this;if(this.eq(a))return this.dbl();if(this.neg().eq(a))return this.curve.point(null,null);if(this.x.cmp(a.x)===0)return this.curve.point(null,null);var f=this.y.redSub(a.y);f.cmpn(0)!==0&&(f=f.redMul(this.x.redSub(a.x).redInvm()));var h=f.redSqr().redISub(this.x).redISub(a.x),d=f.redMul(this.x.redSub(h)).redISub(this.y);return this.curve.point(h,d)},c.prototype.dbl=function(){if(this.inf)return this;var a=this.y.redAdd(this.y);if(a.cmpn(0)===0)return this.curve.point(null,null);var f=this.curve.a,h=this.x.redSqr(),d=a.redInvm(),b=h.redAdd(h).redIAdd(h).redIAdd(f).redMul(d),m=b.redSqr().redISub(this.x.redAdd(this.x)),x=b.redMul(this.x.redSub(m)).redISub(this.y);return this.curve.point(m,x)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(a){return a=new i(a,16),this.isInfinity()?this:this._hasDoubles(a)?this.curve._fixedNafMul(this,a):this.curve.endo?this.curve._endoWnafMulAdd([this],[a]):this.curve._wnafMul(this,a)},c.prototype.mulAdd=function(a,f,h){var d=[this,f],b=[a,h];return this.curve.endo?this.curve._endoWnafMulAdd(d,b):this.curve._wnafMulAdd(1,d,b,2)},c.prototype.jmulAdd=function(a,f,h){var d=[this,f],b=[a,h];return this.curve.endo?this.curve._endoWnafMulAdd(d,b,!0):this.curve._wnafMulAdd(1,d,b,2,!0)},c.prototype.eq=function(a){return this===a||this.inf===a.inf&&(this.inf||this.x.cmp(a.x)===0&&this.y.cmp(a.y)===0)},c.prototype.neg=function(a){if(this.inf)return this;var f=this.curve.point(this.x,this.y.redNeg());if(a&&this.precomputed){var h=this.precomputed,d=function(b){return b.neg()};f.precomputed={naf:h.naf&&{wnd:h.naf.wnd,points:h.naf.points.map(d)},doubles:h.doubles&&{step:h.doubles.step,points:h.doubles.points.map(d)}}}return f},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(s,r.BasePoint),n.prototype.jpoint=function(a,f,h){return new s(this,a,f,h)},s.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var a=this.z.redInvm(),f=a.redSqr(),h=this.x.redMul(f),d=this.y.redMul(f).redMul(a);return this.curve.point(h,d)},s.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},s.prototype.add=function(a){if(this.isInfinity())return a;if(a.isInfinity())return this;var f=a.z.redSqr(),h=this.z.redSqr(),d=this.x.redMul(f),b=a.x.redMul(h),m=this.y.redMul(f.redMul(a.z)),x=a.y.redMul(h.redMul(this.z)),k=d.redSub(b),R=m.redSub(x);if(k.cmpn(0)===0)return R.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var F=k.redSqr(),L=F.redMul(k),j=d.redMul(F),D=R.redSqr().redIAdd(L).redISub(j).redISub(j),z=R.redMul(j.redISub(D)).redISub(m.redMul(L)),$=this.z.redMul(a.z).redMul(k);return this.curve.jpoint(D,z,$)},s.prototype.mixedAdd=function(a){if(this.isInfinity())return a.toJ();if(a.isInfinity())return this;var f=this.z.redSqr(),h=this.x,d=a.x.redMul(f),b=this.y,m=a.y.redMul(f).redMul(this.z),x=h.redSub(d),k=b.redSub(m);if(x.cmpn(0)===0)return k.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var R=x.redSqr(),F=R.redMul(x),L=h.redMul(R),j=k.redSqr().redIAdd(F).redISub(L).redISub(L),D=k.redMul(L.redISub(j)).redISub(b.redMul(F)),z=this.z.redMul(x);return this.curve.jpoint(j,D,z)},s.prototype.dblp=function(a){if(a===0)return this;if(this.isInfinity())return this;if(!a)return this.dbl();var f;if(this.curve.zeroA||this.curve.threeA){var h=this;for(f=0;f<a;f++)h=h.dbl();return h}var d=this.curve.a,b=this.curve.tinv,m=this.x,x=this.y,k=this.z,R=k.redSqr().redSqr(),F=x.redAdd(x);for(f=0;f<a;f++){var L=m.redSqr(),j=F.redSqr(),D=j.redSqr(),z=L.redAdd(L).redIAdd(L).redIAdd(d.redMul(R)),$=m.redMul(j),V=z.redSqr().redISub($.redAdd($)),T=$.redISub(V),M=z.redMul(T);M=M.redIAdd(M).redISub(D);var S=F.redMul(k);f+1<a&&(R=R.redMul(D)),m=V,k=S,F=M}return this.curve.jpoint(m,F.redMul(b),k)},s.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},s.prototype._zeroDbl=function(){var a,f,h;if(this.zOne){var d=this.x.redSqr(),b=this.y.redSqr(),m=b.redSqr(),x=this.x.redAdd(b).redSqr().redISub(d).redISub(m);x=x.redIAdd(x);var k=d.redAdd(d).redIAdd(d),R=k.redSqr().redISub(x).redISub(x),F=m.redIAdd(m);F=(F=F.redIAdd(F)).redIAdd(F),a=R,f=k.redMul(x.redISub(R)).redISub(F),h=this.y.redAdd(this.y)}else{var L=this.x.redSqr(),j=this.y.redSqr(),D=j.redSqr(),z=this.x.redAdd(j).redSqr().redISub(L).redISub(D);z=z.redIAdd(z);var $=L.redAdd(L).redIAdd(L),V=$.redSqr(),T=D.redIAdd(D);T=(T=T.redIAdd(T)).redIAdd(T),a=V.redISub(z).redISub(z),f=$.redMul(z.redISub(a)).redISub(T),h=(h=this.y.redMul(this.z)).redIAdd(h)}return this.curve.jpoint(a,f,h)},s.prototype._threeDbl=function(){var a,f,h;if(this.zOne){var d=this.x.redSqr(),b=this.y.redSqr(),m=b.redSqr(),x=this.x.redAdd(b).redSqr().redISub(d).redISub(m);x=x.redIAdd(x);var k=d.redAdd(d).redIAdd(d).redIAdd(this.curve.a),R=k.redSqr().redISub(x).redISub(x);a=R;var F=m.redIAdd(m);F=(F=F.redIAdd(F)).redIAdd(F),f=k.redMul(x.redISub(R)).redISub(F),h=this.y.redAdd(this.y)}else{var L=this.z.redSqr(),j=this.y.redSqr(),D=this.x.redMul(j),z=this.x.redSub(L).redMul(this.x.redAdd(L));z=z.redAdd(z).redIAdd(z);var $=D.redIAdd(D),V=($=$.redIAdd($)).redAdd($);a=z.redSqr().redISub(V),h=this.y.redAdd(this.z).redSqr().redISub(j).redISub(L);var T=j.redSqr();T=(T=(T=T.redIAdd(T)).redIAdd(T)).redIAdd(T),f=z.redMul($.redISub(a)).redISub(T)}return this.curve.jpoint(a,f,h)},s.prototype._dbl=function(){var a=this.curve.a,f=this.x,h=this.y,d=this.z,b=d.redSqr().redSqr(),m=f.redSqr(),x=h.redSqr(),k=m.redAdd(m).redIAdd(m).redIAdd(a.redMul(b)),R=f.redAdd(f),F=(R=R.redIAdd(R)).redMul(x),L=k.redSqr().redISub(F.redAdd(F)),j=F.redISub(L),D=x.redSqr();D=(D=(D=D.redIAdd(D)).redIAdd(D)).redIAdd(D);var z=k.redMul(j).redISub(D),$=h.redAdd(h).redMul(d);return this.curve.jpoint(L,z,$)},s.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var a=this.x.redSqr(),f=this.y.redSqr(),h=this.z.redSqr(),d=f.redSqr(),b=a.redAdd(a).redIAdd(a),m=b.redSqr(),x=this.x.redAdd(f).redSqr().redISub(a).redISub(d),k=(x=(x=(x=x.redIAdd(x)).redAdd(x).redIAdd(x)).redISub(m)).redSqr(),R=d.redIAdd(d);R=(R=(R=R.redIAdd(R)).redIAdd(R)).redIAdd(R);var F=b.redIAdd(x).redSqr().redISub(m).redISub(k).redISub(R),L=f.redMul(F);L=(L=L.redIAdd(L)).redIAdd(L);var j=this.x.redMul(k).redISub(L);j=(j=j.redIAdd(j)).redIAdd(j);var D=this.y.redMul(F.redMul(R.redISub(F)).redISub(x.redMul(k)));D=(D=(D=D.redIAdd(D)).redIAdd(D)).redIAdd(D);var z=this.z.redAdd(x).redSqr().redISub(h).redISub(k);return this.curve.jpoint(j,D,z)},s.prototype.mul=function(a,f){return a=new i(a,f),this.curve._wnafMul(this,a)},s.prototype.eq=function(a){if(a.type==="affine")return this.eq(a.toJ());if(this===a)return!0;var f=this.z.redSqr(),h=a.z.redSqr();if(this.x.redMul(h).redISub(a.x.redMul(f)).cmpn(0)!==0)return!1;var d=f.redMul(this.z),b=h.redMul(a.z);return this.y.redMul(b).redISub(a.y.redMul(d)).cmpn(0)===0},s.prototype.eqXToP=function(a){var f=this.z.redSqr(),h=a.toRed(this.curve.red).redMul(f);if(this.x.cmp(h)===0)return!0;for(var d=a.clone(),b=this.curve.redN.redMul(f);;){if(d.iadd(this.curve.n),d.cmp(this.curve.p)>=0)return!1;if(h.redIAdd(b),this.x.cmp(h)===0)return!0}},s.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)+">"},s.prototype.isInfinity=function(){return this.z.cmpn(0)===0}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],411:[function(e,p,g){var u,i=g,o=e("hash.js"),r=e("./curve"),t=e("./utils").assert;function n(s){s.type==="short"?this.curve=new r.short(s):s.type==="edwards"?this.curve=new r.edwards(s):this.curve=new r.mont(s),this.g=this.curve.g,this.n=this.curve.n,this.hash=s.hash,t(this.g.validate(),"Invalid curve"),t(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(s,a){Object.defineProperty(i,s,{configurable:!0,enumerable:!0,get:function(){var f=new n(a);return Object.defineProperty(i,s,{configurable:!0,enumerable:!0,value:f}),f}})}i.PresetCurve=n,c("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"]}),c("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"]}),c("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"]}),c("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"]}),c("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"]}),c("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"]}),c("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{u=e("./precomputed/secp256k1")}catch{u=void 0}c("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",u]})},{"./curve":408,"./precomputed/secp256k1":418,"./utils":419,"hash.js":426}],412:[function(e,p,g){var u=e("bn.js"),i=e("hmac-drbg"),o=e("../utils"),r=e("../curves"),t=e("brorand"),n=o.assert,c=e("./key"),s=e("./signature");function a(f){if(!(this instanceof a))return new a(f);typeof f=="string"&&(n(Object.prototype.hasOwnProperty.call(r,f),"Unknown curve "+f),f=r[f]),f instanceof r.PresetCurve&&(f={curve:f}),this.curve=f.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=f.curve.g,this.g.precompute(f.curve.n.bitLength()+1),this.hash=f.hash||f.curve.hash}p.exports=a,a.prototype.keyPair=function(f){return new c(this,f)},a.prototype.keyFromPrivate=function(f,h){return c.fromPrivate(this,f,h)},a.prototype.keyFromPublic=function(f,h){return c.fromPublic(this,f,h)},a.prototype.genKeyPair=function(f){f||(f={});for(var h=new i({hash:this.hash,pers:f.pers,persEnc:f.persEnc||"utf8",entropy:f.entropy||t(this.hash.hmacStrength),entropyEnc:f.entropy&&f.entropyEnc||"utf8",nonce:this.n.toArray()}),d=this.n.byteLength(),b=this.n.sub(new u(2));;){var m=new u(h.generate(d));if(!(m.cmp(b)>0))return m.iaddn(1),this.keyFromPrivate(m)}},a.prototype._truncateToN=function(f,h){var d=8*f.byteLength()-this.n.bitLength();return d>0&&(f=f.ushrn(d)),!h&&f.cmp(this.n)>=0?f.sub(this.n):f},a.prototype.sign=function(f,h,d,b){typeof d=="object"&&(b=d,d=null),b||(b={}),h=this.keyFromPrivate(h,d),f=this._truncateToN(new u(f,16));for(var m=this.n.byteLength(),x=h.getPrivate().toArray("be",m),k=f.toArray("be",m),R=new i({hash:this.hash,entropy:x,nonce:k,pers:b.pers,persEnc:b.persEnc||"utf8"}),F=this.n.sub(new u(1)),L=0;;L++){var j=b.k?b.k(L):new u(R.generate(this.n.byteLength()));if(!((j=this._truncateToN(j,!0)).cmpn(1)<=0||j.cmp(F)>=0)){var D=this.g.mul(j);if(!D.isInfinity()){var z=D.getX(),$=z.umod(this.n);if($.cmpn(0)!==0){var V=j.invm(this.n).mul($.mul(h.getPrivate()).iadd(f));if((V=V.umod(this.n)).cmpn(0)!==0){var T=(D.getY().isOdd()?1:0)|(z.cmp($)!==0?2:0);return b.canonical&&V.cmp(this.nh)>0&&(V=this.n.sub(V),T^=1),new s({r:$,s:V,recoveryParam:T})}}}}}},a.prototype.verify=function(f,h,d,b){f=this._truncateToN(new u(f,16)),d=this.keyFromPublic(d,b);var m=(h=new s(h,"hex")).r,x=h.s;if(m.cmpn(1)<0||m.cmp(this.n)>=0||x.cmpn(1)<0||x.cmp(this.n)>=0)return!1;var k,R=x.invm(this.n),F=R.mul(f).umod(this.n),L=R.mul(m).umod(this.n);return this.curve._maxwellTrick?!(k=this.g.jmulAdd(F,d.getPublic(),L)).isInfinity()&&k.eqXToP(m):!(k=this.g.mulAdd(F,d.getPublic(),L)).isInfinity()&&k.getX().umod(this.n).cmp(m)===0},a.prototype.recoverPubKey=function(f,h,d,b){n((3&d)===d,"The recovery param is more than two bits"),h=new s(h,b);var m=this.n,x=new u(f),k=h.r,R=h.s,F=1&d,L=d>>1;if(k.cmp(this.curve.p.umod(this.curve.n))>=0&&L)throw new Error("Unable to find sencond key candinate");k=L?this.curve.pointFromX(k.add(this.curve.n),F):this.curve.pointFromX(k,F);var j=h.r.invm(m),D=m.sub(x).mul(j).umod(m),z=R.mul(j).umod(m);return this.g.mulAdd(D,k,z)},a.prototype.getKeyRecoveryParam=function(f,h,d,b){if((h=new s(h,b)).recoveryParam!==null)return h.recoveryParam;for(var m=0;m<4;m++){var x;try{x=this.recoverPubKey(f,h,m)}catch{continue}if(x.eq(d))return m}throw new Error("Unable to find valid recovery factor")}},{"../curves":411,"../utils":419,"./key":413,"./signature":414,"bn.js":420,brorand:187,"hmac-drbg":438}],413:[function(e,p,g){var u=e("bn.js"),i=e("../utils").assert;function o(r,t){this.ec=r,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}p.exports=o,o.fromPublic=function(r,t,n){return t instanceof o?t:new o(r,{pub:t,pubEnc:n})},o.fromPrivate=function(r,t,n){return t instanceof o?t:new o(r,{priv:t,privEnc:n})},o.prototype.validate=function(){var r=this.getPublic();return r.isInfinity()?{result:!1,reason:"Invalid public key"}:r.validate()?r.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(r,t){return typeof r=="string"&&(t=r,r=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,r):this.pub},o.prototype.getPrivate=function(r){return r==="hex"?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(r,t){this.priv=new u(r,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(r,t){if(r.x||r.y)return this.ec.curve.type==="mont"?i(r.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||i(r.x&&r.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(r.x,r.y));this.pub=this.ec.curve.decodePoint(r,t)},o.prototype.derive=function(r){return r.validate()||i(r.validate(),"public point not validated"),r.mul(this.priv).getX()},o.prototype.sign=function(r,t,n){return this.ec.sign(r,this,t,n)},o.prototype.verify=function(r,t){return this.ec.verify(r,t,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(e,p,g){var u=e("bn.js"),i=e("../utils"),o=i.assert;function r(a,f){if(a instanceof r)return a;this._importDER(a,f)||(o(a.r&&a.s,"Signature without r or s"),this.r=new u(a.r,16),this.s=new u(a.s,16),a.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=a.recoveryParam)}function t(){this.place=0}function n(a,f){var h=a[f.place++];if(!(128&h))return h;var d=15&h;if(d===0||d>4)return!1;for(var b=0,m=0,x=f.place;m<d;m++,x++)b<<=8,b|=a[x],b>>>=0;return!(b<=127)&&(f.place=x,b)}function c(a){for(var f=0,h=a.length-1;!a[f]&&!(128&a[f+1])&&f<h;)f++;return f===0?a:a.slice(f)}function s(a,f){if(f<128)a.push(f);else{var h=1+(Math.log(f)/Math.LN2>>>3);for(a.push(128|h);--h;)a.push(f>>>(h<<3)&255);a.push(f)}}p.exports=r,r.prototype._importDER=function(a,f){a=i.toArray(a,f);var h=new t;if(a[h.place++]!==48)return!1;var d=n(a,h);if(d===!1||d+h.place!==a.length||a[h.place++]!==2)return!1;var b=n(a,h);if(b===!1)return!1;var m=a.slice(h.place,b+h.place);if(h.place+=b,a[h.place++]!==2)return!1;var x=n(a,h);if(x===!1||a.length!==x+h.place)return!1;var k=a.slice(h.place,x+h.place);if(m[0]===0){if(!(128&m[1]))return!1;m=m.slice(1)}if(k[0]===0){if(!(128&k[1]))return!1;k=k.slice(1)}return this.r=new u(m),this.s=new u(k),this.recoveryParam=null,!0},r.prototype.toDER=function(a){var f=this.r.toArray(),h=this.s.toArray();for(128&f[0]&&(f=[0].concat(f)),128&h[0]&&(h=[0].concat(h)),f=c(f),h=c(h);!(h[0]||128&h[1]);)h=h.slice(1);var d=[2];s(d,f.length),(d=d.concat(f)).push(2),s(d,h.length);var b=d.concat(h),m=[48];return s(m,b.length),m=m.concat(b),i.encode(m,a)}},{"../utils":419,"bn.js":420}],415:[function(e,p,g){var u=e("hash.js"),i=e("../curves"),o=e("../utils"),r=o.assert,t=o.parseBytes,n=e("./key"),c=e("./signature");function s(a){if(r(a==="ed25519","only tested with ed25519 so far"),!(this instanceof s))return new s(a);a=i[a].curve,this.curve=a,this.g=a.g,this.g.precompute(a.n.bitLength()+1),this.pointClass=a.point().constructor,this.encodingLength=Math.ceil(a.n.bitLength()/8),this.hash=u.sha512}p.exports=s,s.prototype.sign=function(a,f){a=t(a);var h=this.keyFromSecret(f),d=this.hashInt(h.messagePrefix(),a),b=this.g.mul(d),m=this.encodePoint(b),x=this.hashInt(m,h.pubBytes(),a).mul(h.priv()),k=d.add(x).umod(this.curve.n);return this.makeSignature({R:b,S:k,Rencoded:m})},s.prototype.verify=function(a,f,h){a=t(a),f=this.makeSignature(f);var d=this.keyFromPublic(h),b=this.hashInt(f.Rencoded(),d.pubBytes(),a),m=this.g.mul(f.S());return f.R().add(d.pub().mul(b)).eq(m)},s.prototype.hashInt=function(){for(var a=this.hash(),f=0;f<arguments.length;f++)a.update(arguments[f]);return o.intFromLE(a.digest()).umod(this.curve.n)},s.prototype.keyFromPublic=function(a){return n.fromPublic(this,a)},s.prototype.keyFromSecret=function(a){return n.fromSecret(this,a)},s.prototype.makeSignature=function(a){return a instanceof c?a:new c(this,a)},s.prototype.encodePoint=function(a){var f=a.getY().toArray("le",this.encodingLength);return f[this.encodingLength-1]|=a.getX().isOdd()?128:0,f},s.prototype.decodePoint=function(a){var f=(a=o.parseBytes(a)).length-1,h=a.slice(0,f).concat(-129&a[f]),d=(128&a[f])!=0,b=o.intFromLE(h);return this.curve.pointFromY(b,d)},s.prototype.encodeInt=function(a){return a.toArray("le",this.encodingLength)},s.prototype.decodeInt=function(a){return o.intFromLE(a)},s.prototype.isPoint=function(a){return a instanceof this.pointClass}},{"../curves":411,"../utils":419,"./key":416,"./signature":417,"hash.js":426}],416:[function(e,p,g){var u=e("../utils"),i=u.assert,o=u.parseBytes,r=u.cachedProperty;function t(n,c){this.eddsa=n,this._secret=o(c.secret),n.isPoint(c.pub)?this._pub=c.pub:this._pubBytes=o(c.pub)}t.fromPublic=function(n,c){return c instanceof t?c:new t(n,{pub:c})},t.fromSecret=function(n,c){return c instanceof t?c:new t(n,{secret:c})},t.prototype.secret=function(){return this._secret},r(t,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),r(t,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),r(t,"privBytes",function(){var n=this.eddsa,c=this.hash(),s=n.encodingLength-1,a=c.slice(0,n.encodingLength);return a[0]&=248,a[s]&=127,a[s]|=64,a}),r(t,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),r(t,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),r(t,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),t.prototype.sign=function(n){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(n,this)},t.prototype.verify=function(n,c){return this.eddsa.verify(n,c,this)},t.prototype.getSecret=function(n){return i(this._secret,"KeyPair is public only"),u.encode(this.secret(),n)},t.prototype.getPublic=function(n){return u.encode(this.pubBytes(),n)},p.exports=t},{"../utils":419}],417:[function(e,p,g){var u=e("bn.js"),i=e("../utils"),o=i.assert,r=i.cachedProperty,t=i.parseBytes;function n(c,s){this.eddsa=c,typeof s!="object"&&(s=t(s)),Array.isArray(s)&&(s={R:s.slice(0,c.encodingLength),S:s.slice(c.encodingLength)}),o(s.R&&s.S,"Signature without R or S"),c.isPoint(s.R)&&(this._R=s.R),s.S instanceof u&&(this._S=s.S),this._Rencoded=Array.isArray(s.R)?s.R:s.Rencoded,this._Sencoded=Array.isArray(s.S)?s.S:s.Sencoded}r(n,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),r(n,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),r(n,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),r(n,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),n.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},n.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},p.exports=n},{"../utils":419,"bn.js":420}],418:[function(e,p,g){p.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],419:[function(e,p,g){var u=g,i=e("bn.js"),o=e("minimalistic-assert"),r=e("minimalistic-crypto-utils");u.assert=o,u.toArray=r.toArray,u.zero2=r.zero2,u.toHex=r.toHex,u.encode=r.encode,u.getNAF=function(t,n,c){var s=new Array(Math.max(t.bitLength(),c)+1);s.fill(0);for(var a=1<<n+1,f=t.clone(),h=0;h<s.length;h++){var d,b=f.andln(a-1);f.isOdd()?(d=b>(a>>1)-1?(a>>1)-b:b,f.isubn(d)):d=0,s[h]=d,f.iushrn(1)}return s},u.getJSF=function(t,n){var c=[[],[]];t=t.clone(),n=n.clone();for(var s,a=0,f=0;t.cmpn(-a)>0||n.cmpn(-f)>0;){var h,d,b=t.andln(3)+a&3,m=n.andln(3)+f&3;b===3&&(b=-1),m===3&&(m=-1),h=1&b?(s=t.andln(7)+a&7)!==3&&s!==5||m!==2?b:-b:0,c[0].push(h),d=1&m?(s=n.andln(7)+f&7)!==3&&s!==5||b!==2?m:-m:0,c[1].push(d),2*a===h+1&&(a=1-a),2*f===d+1&&(f=1-f),t.iushrn(1),n.iushrn(1)}return c},u.cachedProperty=function(t,n,c){var s="_"+n;t.prototype[n]=function(){return this[s]!==void 0?this[s]:this[s]=c.call(this)}},u.parseBytes=function(t){return typeof t=="string"?u.toArray(t,"hex"):t},u.intFromLE=function(t){return new i(t,"hex","le")}},{"bn.js":420,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],420:[function(e,p,g){arguments[4][184][0].apply(g,arguments)},{buffer:188,dup:184}],421:[function(e,p,g){p.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}},{}],422:[function(e,p,g){var u=Object.create||function(j){var D=function(){};return D.prototype=j,new D},i=Object.keys||function(j){var D=[];for(var z in j)Object.prototype.hasOwnProperty.call(j,z)&&D.push(z);return z},o=Function.prototype.bind||function(j){var D=this;return function(){return D.apply(j,arguments)}};function r(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=u(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}p.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0;var t,n=10;try{var c={};Object.defineProperty&&Object.defineProperty(c,"x",{value:0}),t=c.x===0}catch{t=!1}function s(j){return j._maxListeners===void 0?r.defaultMaxListeners:j._maxListeners}function a(j,D,z){if(D)j.call(z);else for(var $=j.length,V=L(j,$),T=0;T<$;++T)V[T].call(z)}function f(j,D,z,$){if(D)j.call(z,$);else for(var V=j.length,T=L(j,V),M=0;M<V;++M)T[M].call(z,$)}function h(j,D,z,$,V){if(D)j.call(z,$,V);else for(var T=j.length,M=L(j,T),S=0;S<T;++S)M[S].call(z,$,V)}function d(j,D,z,$,V,T){if(D)j.call(z,$,V,T);else for(var M=j.length,S=L(j,M),v=0;v<M;++v)S[v].call(z,$,V,T)}function b(j,D,z,$){if(D)j.apply(z,$);else for(var V=j.length,T=L(j,V),M=0;M<V;++M)T[M].apply(z,$)}function m(j,D,z,$){var V,T,M;if(typeof z!="function")throw new TypeError('"listener" argument must be a function');if((T=j._events)?(T.newListener&&(j.emit("newListener",D,z.listener?z.listener:z),T=j._events),M=T[D]):(T=j._events=u(null),j._eventsCount=0),M){if(typeof M=="function"?M=T[D]=$?[z,M]:[M,z]:$?M.unshift(z):M.push(z),!M.warned&&(V=s(j))&&V>0&&M.length>V){M.warned=!0;var S=new Error("Possible EventEmitter memory leak detected. "+M.length+' "'+String(D)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');S.name="MaxListenersExceededWarning",S.emitter=j,S.type=D,S.count=M.length,typeof console=="object"&&console.warn&&console.warn("%s: %s",S.name,S.message)}}else M=T[D]=z,++j._eventsCount;return j}function x(){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 j=new Array(arguments.length),D=0;D<j.length;++D)j[D]=arguments[D];this.listener.apply(this.target,j)}}function k(j,D,z){var $={fired:!1,wrapFn:void 0,target:j,type:D,listener:z},V=o.call(x,$);return V.listener=z,$.wrapFn=V,V}function R(j,D,z){var $=j._events;if(!$)return[];var V=$[D];return V?typeof V=="function"?z?[V.listener||V]:[V]:z?function(T){for(var M=new Array(T.length),S=0;S<M.length;++S)M[S]=T[S].listener||T[S];return M}(V):L(V,V.length):[]}function F(j){var D=this._events;if(D){var z=D[j];if(typeof z=="function")return 1;if(z)return z.length}return 0}function L(j,D){for(var z=new Array(D),$=0;$<D;++$)z[$]=j[$];return z}t?Object.defineProperty(r,"defaultMaxListeners",{enumerable:!0,get:function(){return n},set:function(j){if(typeof j!="number"||j<0||j!=j)throw new TypeError('"defaultMaxListeners" must be a positive number');n=j}}):r.defaultMaxListeners=n,r.prototype.setMaxListeners=function(j){if(typeof j!="number"||j<0||isNaN(j))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=j,this},r.prototype.getMaxListeners=function(){return s(this)},r.prototype.emit=function(j){var D,z,$,V,T,M,S=j==="error";if(M=this._events)S=S&&M.error==null;else if(!S)return!1;if(S){if(arguments.length>1&&(D=arguments[1]),D instanceof Error)throw D;var v=new Error('Unhandled "error" event. ('+D+")");throw v.context=D,v}if(!(z=M[j]))return!1;var w=typeof z=="function";switch($=arguments.length){case 1:a(z,w,this);break;case 2:f(z,w,this,arguments[1]);break;case 3:h(z,w,this,arguments[1],arguments[2]);break;case 4:d(z,w,this,arguments[1],arguments[2],arguments[3]);break;default:for(V=new Array($-1),T=1;T<$;T++)V[T-1]=arguments[T];b(z,w,this,V)}return!0},r.prototype.addListener=function(j,D){return m(this,j,D,!1)},r.prototype.on=r.prototype.addListener,r.prototype.prependListener=function(j,D){return m(this,j,D,!0)},r.prototype.once=function(j,D){if(typeof D!="function")throw new TypeError('"listener" argument must be a function');return this.on(j,k(this,j,D)),this},r.prototype.prependOnceListener=function(j,D){if(typeof D!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(j,k(this,j,D)),this},r.prototype.removeListener=function(j,D){var z,$,V,T,M;if(typeof D!="function")throw new TypeError('"listener" argument must be a function');if(!($=this._events))return this;if(!(z=$[j]))return this;if(z===D||z.listener===D)--this._eventsCount==0?this._events=u(null):(delete $[j],$.removeListener&&this.emit("removeListener",j,z.listener||D));else if(typeof z!="function"){for(V=-1,T=z.length-1;T>=0;T--)if(z[T]===D||z[T].listener===D){M=z[T].listener,V=T;break}if(V<0)return this;V===0?z.shift():function(S,v){for(var w=v,y=w+1,_=S.length;y<_;w+=1,y+=1)S[w]=S[y];S.pop()}(z,V),z.length===1&&($[j]=z[0]),$.removeListener&&this.emit("removeListener",j,M||D)}return this},r.prototype.removeAllListeners=function(j){var D,z,$;if(!(z=this._events))return this;if(!z.removeListener)return arguments.length===0?(this._events=u(null),this._eventsCount=0):z[j]&&(--this._eventsCount==0?this._events=u(null):delete z[j]),this;if(arguments.length===0){var V,T=i(z);for($=0;$<T.length;++$)(V=T[$])!=="removeListener"&&this.removeAllListeners(V);return this.removeAllListeners("removeListener"),this._events=u(null),this._eventsCount=0,this}if(typeof(D=z[j])=="function")this.removeListener(j,D);else if(D)for($=D.length-1;$>=0;$--)this.removeListener(j,D[$]);return this},r.prototype.listeners=function(j){return R(this,j,!0)},r.prototype.rawListeners=function(j){return R(this,j,!1)},r.listenerCount=function(j,D){return typeof j.listenerCount=="function"?j.listenerCount(D):F.call(j,D)},r.prototype.listenerCount=F,r.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],423:[function(e,p,g){var u=e("safe-buffer").Buffer,i=e("md5.js");p.exports=function(o,r,t,n){if(u.isBuffer(o)||(o=u.from(o,"binary")),r&&(u.isBuffer(r)||(r=u.from(r,"binary")),r.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var c=t/8,s=u.alloc(c),a=u.alloc(n||0),f=u.alloc(0);c>0||n>0;){var h=new i;h.update(f),h.update(o),r&&h.update(r),f=h.digest();var d=0;if(c>0){var b=s.length-c;d=Math.min(c,f.length),f.copy(s,b,0,d),c-=d}if(d<f.length&&n>0){var m=a.length-n,x=Math.min(n,f.length-d);f.copy(a,m,d,d+x),n-=x}}return f.fill(0),{key:s,iv:a}}},{"md5.js":450,"safe-buffer":494}],424:[function(e,p,g){Object.defineProperty(g,"__esModule",{value:!0}),g.CsvParserStream=g.ParserOptions=g.parseFile=g.parseStream=g.parseString=g.parse=g.FormatterOptions=g.CsvFormatterStream=g.writeToPath=g.writeToString=g.writeToBuffer=g.writeToStream=g.write=g.format=void 0;var u=e("@fast-csv/format");Object.defineProperty(g,"format",{enumerable:!0,get:function(){return u.format}}),Object.defineProperty(g,"write",{enumerable:!0,get:function(){return u.write}}),Object.defineProperty(g,"writeToStream",{enumerable:!0,get:function(){return u.writeToStream}}),Object.defineProperty(g,"writeToBuffer",{enumerable:!0,get:function(){return u.writeToBuffer}}),Object.defineProperty(g,"writeToString",{enumerable:!0,get:function(){return u.writeToString}}),Object.defineProperty(g,"writeToPath",{enumerable:!0,get:function(){return u.writeToPath}}),Object.defineProperty(g,"CsvFormatterStream",{enumerable:!0,get:function(){return u.CsvFormatterStream}}),Object.defineProperty(g,"FormatterOptions",{enumerable:!0,get:function(){return u.FormatterOptions}});var i=e("@fast-csv/parse");Object.defineProperty(g,"parse",{enumerable:!0,get:function(){return i.parse}}),Object.defineProperty(g,"parseString",{enumerable:!0,get:function(){return i.parseString}}),Object.defineProperty(g,"parseStream",{enumerable:!0,get:function(){return i.parseStream}}),Object.defineProperty(g,"parseFile",{enumerable:!0,get:function(){return i.parseFile}}),Object.defineProperty(g,"ParserOptions",{enumerable:!0,get:function(){return i.ParserOptions}}),Object.defineProperty(g,"CsvParserStream",{enumerable:!0,get:function(){return i.CsvParserStream}})},{"@fast-csv/format":151,"@fast-csv/parse":155}],425:[function(e,p,g){var u=e("safe-buffer").Buffer,i=e("readable-stream").Transform;function o(r){i.call(this),this._block=u.allocUnsafe(r),this._blockSize=r,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e("inherits")(o,i),o.prototype._transform=function(r,t,n){var c=null;try{this.update(r,t)}catch(s){c=s}n(c)},o.prototype._flush=function(r){var t=null;try{this.push(this.digest())}catch(n){t=n}r(t)},o.prototype.update=function(r,t){if(function(h,d){if(!u.isBuffer(h)&&typeof h!="string")throw new TypeError(d+" must be a string or a buffer")}(r,"Data"),this._finalized)throw new Error("Digest already called");u.isBuffer(r)||(r=u.from(r,t));for(var n=this._block,c=0;this._blockOffset+r.length-c>=this._blockSize;){for(var s=this._blockOffset;s<this._blockSize;)n[s++]=r[c++];this._update(),this._blockOffset=0}for(;c<r.length;)n[this._blockOffset++]=r[c++];for(var a=0,f=8*r.length;f>0;++a)this._length[a]+=f,(f=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*f);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(r){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();r!==void 0&&(t=t.toString(r)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},p.exports=o},{inherits:440,"readable-stream":491,"safe-buffer":494}],426:[function(e,p,g){var u=g;u.utils=e("./hash/utils"),u.common=e("./hash/common"),u.sha=e("./hash/sha"),u.ripemd=e("./hash/ripemd"),u.hmac=e("./hash/hmac"),u.sha1=u.sha.sha1,u.sha256=u.sha.sha256,u.sha224=u.sha.sha224,u.sha384=u.sha.sha384,u.sha512=u.sha.sha512,u.ripemd160=u.ripemd.ripemd160},{"./hash/common":427,"./hash/hmac":428,"./hash/ripemd":429,"./hash/sha":430,"./hash/utils":437}],427:[function(e,p,g){var u=e("./utils"),i=e("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}g.BlockHash=o,o.prototype.update=function(r,t){if(r=u.toArray(r,t),this.pending?this.pending=this.pending.concat(r):this.pending=r,this.pendingTotal+=r.length,this.pending.length>=this._delta8){var n=(r=this.pending).length%this._delta8;this.pending=r.slice(r.length-n,r.length),this.pending.length===0&&(this.pending=null),r=u.join32(r,0,r.length-n,this.endian);for(var c=0;c<r.length;c+=this._delta32)this._update(r,c,c+this._delta32)}return this},o.prototype.digest=function(r){return this.update(this._pad()),i(this.pending===null),this._digest(r)},o.prototype._pad=function(){var r=this.pendingTotal,t=this._delta8,n=t-(r+this.padLength)%t,c=new Array(n+this.padLength);c[0]=128;for(var s=1;s<n;s++)c[s]=0;if(r<<=3,this.endian==="big"){for(var a=8;a<this.padLength;a++)c[s++]=0;c[s++]=0,c[s++]=0,c[s++]=0,c[s++]=0,c[s++]=r>>>24&255,c[s++]=r>>>16&255,c[s++]=r>>>8&255,c[s++]=255&r}else for(c[s++]=255&r,c[s++]=r>>>8&255,c[s++]=r>>>16&255,c[s++]=r>>>24&255,c[s++]=0,c[s++]=0,c[s++]=0,c[s++]=0,a=8;a<this.padLength;a++)c[s++]=0;return c}},{"./utils":437,"minimalistic-assert":453}],428:[function(e,p,g){var u=e("./utils"),i=e("minimalistic-assert");function o(r,t,n){if(!(this instanceof o))return new o(r,t,n);this.Hash=r,this.blockSize=r.blockSize/8,this.outSize=r.outSize/8,this.inner=null,this.outer=null,this._init(u.toArray(t,n))}p.exports=o,o.prototype._init=function(r){r.length>this.blockSize&&(r=new this.Hash().update(r).digest()),i(r.length<=this.blockSize);for(var t=r.length;t<this.blockSize;t++)r.push(0);for(t=0;t<r.length;t++)r[t]^=54;for(this.inner=new this.Hash().update(r),t=0;t<r.length;t++)r[t]^=106;this.outer=new this.Hash().update(r)},o.prototype.update=function(r,t){return this.inner.update(r,t),this},o.prototype.digest=function(r){return this.outer.update(this.inner.digest()),this.outer.digest(r)}},{"./utils":437,"minimalistic-assert":453}],429:[function(e,p,g){var u=e("./utils"),i=e("./common"),o=u.rotl32,r=u.sum32,t=u.sum32_3,n=u.sum32_4,c=i.BlockHash;function s(){if(!(this instanceof s))return new s;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function a(k,R,F,L){return k<=15?R^F^L:k<=31?R&F|~R&L:k<=47?(R|~F)^L:k<=63?R&L|F&~L:R^(F|~L)}function f(k){return k<=15?0:k<=31?1518500249:k<=47?1859775393:k<=63?2400959708:2840853838}function h(k){return k<=15?1352829926:k<=31?1548603684:k<=47?1836072691:k<=63?2053994217:0}u.inherits(s,c),g.ripemd160=s,s.blockSize=512,s.outSize=160,s.hmacStrength=192,s.padLength=64,s.prototype._update=function(k,R){for(var F=this.h[0],L=this.h[1],j=this.h[2],D=this.h[3],z=this.h[4],$=F,V=L,T=j,M=D,S=z,v=0;v<80;v++){var w=r(o(n(F,a(v,L,j,D),k[d[v]+R],f(v)),m[v]),z);F=z,z=D,D=o(j,10),j=L,L=w,w=r(o(n($,a(79-v,V,T,M),k[b[v]+R],h(v)),x[v]),S),$=S,S=M,M=o(T,10),T=V,V=w}w=t(this.h[1],j,M),this.h[1]=t(this.h[2],D,S),this.h[2]=t(this.h[3],z,$),this.h[3]=t(this.h[4],F,V),this.h[4]=t(this.h[0],L,T),this.h[0]=w},s.prototype._digest=function(k){return k==="hex"?u.toHex32(this.h,"little"):u.split32(this.h,"little")};var d=[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],b=[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],m=[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],x=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{"./common":427,"./utils":437}],430:[function(e,p,g){g.sha1=e("./sha/1"),g.sha224=e("./sha/224"),g.sha256=e("./sha/256"),g.sha384=e("./sha/384"),g.sha512=e("./sha/512")},{"./sha/1":431,"./sha/224":432,"./sha/256":433,"./sha/384":434,"./sha/512":435}],431:[function(e,p,g){var u=e("../utils"),i=e("../common"),o=e("./common"),r=u.rotl32,t=u.sum32,n=u.sum32_5,c=o.ft_1,s=i.BlockHash,a=[1518500249,1859775393,2400959708,3395469782];function f(){if(!(this instanceof f))return new f;s.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}u.inherits(f,s),p.exports=f,f.blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.prototype._update=function(h,d){for(var b=this.W,m=0;m<16;m++)b[m]=h[d+m];for(;m<b.length;m++)b[m]=r(b[m-3]^b[m-8]^b[m-14]^b[m-16],1);var x=this.h[0],k=this.h[1],R=this.h[2],F=this.h[3],L=this.h[4];for(m=0;m<b.length;m++){var j=~~(m/20),D=n(r(x,5),c(j,k,R,F),L,b[m],a[j]);L=F,F=R,R=r(k,30),k=x,x=D}this.h[0]=t(this.h[0],x),this.h[1]=t(this.h[1],k),this.h[2]=t(this.h[2],R),this.h[3]=t(this.h[3],F),this.h[4]=t(this.h[4],L)},f.prototype._digest=function(h){return h==="hex"?u.toHex32(this.h,"big"):u.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436}],432:[function(e,p,g){var u=e("../utils"),i=e("./256");function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}u.inherits(o,i),p.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(r){return r==="hex"?u.toHex32(this.h.slice(0,7),"big"):u.split32(this.h.slice(0,7),"big")}},{"../utils":437,"./256":433}],433:[function(e,p,g){var u=e("../utils"),i=e("../common"),o=e("./common"),r=e("minimalistic-assert"),t=u.sum32,n=u.sum32_4,c=u.sum32_5,s=o.ch32,a=o.maj32,f=o.s0_256,h=o.s1_256,d=o.g0_256,b=o.g1_256,m=i.BlockHash,x=[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 k(){if(!(this instanceof k))return new k;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=x,this.W=new Array(64)}u.inherits(k,m),p.exports=k,k.blockSize=512,k.outSize=256,k.hmacStrength=192,k.padLength=64,k.prototype._update=function(R,F){for(var L=this.W,j=0;j<16;j++)L[j]=R[F+j];for(;j<L.length;j++)L[j]=n(b(L[j-2]),L[j-7],d(L[j-15]),L[j-16]);var D=this.h[0],z=this.h[1],$=this.h[2],V=this.h[3],T=this.h[4],M=this.h[5],S=this.h[6],v=this.h[7];for(r(this.k.length===L.length),j=0;j<L.length;j++){var w=c(v,h(T),s(T,M,S),this.k[j],L[j]),y=t(f(D),a(D,z,$));v=S,S=M,M=T,T=t(V,w),V=$,$=z,z=D,D=t(w,y)}this.h[0]=t(this.h[0],D),this.h[1]=t(this.h[1],z),this.h[2]=t(this.h[2],$),this.h[3]=t(this.h[3],V),this.h[4]=t(this.h[4],T),this.h[5]=t(this.h[5],M),this.h[6]=t(this.h[6],S),this.h[7]=t(this.h[7],v)},k.prototype._digest=function(R){return R==="hex"?u.toHex32(this.h,"big"):u.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436,"minimalistic-assert":453}],434:[function(e,p,g){var u=e("../utils"),i=e("./512");function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}u.inherits(o,i),p.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(r){return r==="hex"?u.toHex32(this.h.slice(0,12),"big"):u.split32(this.h.slice(0,12),"big")}},{"../utils":437,"./512":435}],435:[function(e,p,g){var u=e("../utils"),i=e("../common"),o=e("minimalistic-assert"),r=u.rotr64_hi,t=u.rotr64_lo,n=u.shr64_hi,c=u.shr64_lo,s=u.sum64,a=u.sum64_hi,f=u.sum64_lo,h=u.sum64_4_hi,d=u.sum64_4_lo,b=u.sum64_5_hi,m=u.sum64_5_lo,x=i.BlockHash,k=[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 R(){if(!(this instanceof R))return new R;x.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=k,this.W=new Array(160)}function F(y,_,C,I,P){var H=y&C^~y&P;return H<0&&(H+=4294967296),H}function L(y,_,C,I,P,H){var W=_&I^~_&H;return W<0&&(W+=4294967296),W}function j(y,_,C,I,P){var H=y&C^y&P^C&P;return H<0&&(H+=4294967296),H}function D(y,_,C,I,P,H){var W=_&I^_&H^I&H;return W<0&&(W+=4294967296),W}function z(y,_){var C=r(y,_,28)^r(_,y,2)^r(_,y,7);return C<0&&(C+=4294967296),C}function $(y,_){var C=t(y,_,28)^t(_,y,2)^t(_,y,7);return C<0&&(C+=4294967296),C}function V(y,_){var C=r(y,_,14)^r(y,_,18)^r(_,y,9);return C<0&&(C+=4294967296),C}function T(y,_){var C=t(y,_,14)^t(y,_,18)^t(_,y,9);return C<0&&(C+=4294967296),C}function M(y,_){var C=r(y,_,1)^r(y,_,8)^n(y,_,7);return C<0&&(C+=4294967296),C}function S(y,_){var C=t(y,_,1)^t(y,_,8)^c(y,_,7);return C<0&&(C+=4294967296),C}function v(y,_){var C=r(y,_,19)^r(_,y,29)^n(y,_,6);return C<0&&(C+=4294967296),C}function w(y,_){var C=t(y,_,19)^t(_,y,29)^c(y,_,6);return C<0&&(C+=4294967296),C}u.inherits(R,x),p.exports=R,R.blockSize=1024,R.outSize=512,R.hmacStrength=192,R.padLength=128,R.prototype._prepareBlock=function(y,_){for(var C=this.W,I=0;I<32;I++)C[I]=y[_+I];for(;I<C.length;I+=2){var P=v(C[I-4],C[I-3]),H=w(C[I-4],C[I-3]),W=C[I-14],K=C[I-13],B=M(C[I-30],C[I-29]),q=S(C[I-30],C[I-29]),O=C[I-32],N=C[I-31];C[I]=h(P,H,W,K,B,q,O,N),C[I+1]=d(P,H,W,K,B,q,O,N)}},R.prototype._update=function(y,_){this._prepareBlock(y,_);var C=this.W,I=this.h[0],P=this.h[1],H=this.h[2],W=this.h[3],K=this.h[4],B=this.h[5],q=this.h[6],O=this.h[7],N=this.h[8],U=this.h[9],X=this.h[10],Z=this.h[11],G=this.h[12],J=this.h[13],ne=this.h[14],ie=this.h[15];o(this.k.length===C.length);for(var Y=0;Y<C.length;Y+=2){var te=ne,ee=ie,ae=V(N,U),se=T(N,U),le=F(N,U,X,Z,G),ce=L(N,U,X,Z,G,J),de=this.k[Y],pe=this.k[Y+1],ke=C[Y],Se=C[Y+1],ye=b(te,ee,ae,se,le,ce,de,pe,ke,Se),Ie=m(te,ee,ae,se,le,ce,de,pe,ke,Se);te=z(I,P),ee=$(I,P),ae=j(I,P,H,W,K),se=D(I,P,H,W,K,B);var Re=a(te,ee,ae,se),Ne=f(te,ee,ae,se);ne=G,ie=J,G=X,J=Z,X=N,Z=U,N=a(q,O,ye,Ie),U=f(O,O,ye,Ie),q=K,O=B,K=H,B=W,H=I,W=P,I=a(ye,Ie,Re,Ne),P=f(ye,Ie,Re,Ne)}s(this.h,0,I,P),s(this.h,2,H,W),s(this.h,4,K,B),s(this.h,6,q,O),s(this.h,8,N,U),s(this.h,10,X,Z),s(this.h,12,G,J),s(this.h,14,ne,ie)},R.prototype._digest=function(y){return y==="hex"?u.toHex32(this.h,"big"):u.split32(this.h,"big")}},{"../common":427,"../utils":437,"minimalistic-assert":453}],436:[function(e,p,g){var u=e("../utils").rotr32;function i(t,n,c){return t&n^~t&c}function o(t,n,c){return t&n^t&c^n&c}function r(t,n,c){return t^n^c}g.ft_1=function(t,n,c,s){return t===0?i(n,c,s):t===1||t===3?r(n,c,s):t===2?o(n,c,s):void 0},g.ch32=i,g.maj32=o,g.p32=r,g.s0_256=function(t){return u(t,2)^u(t,13)^u(t,22)},g.s1_256=function(t){return u(t,6)^u(t,11)^u(t,25)},g.g0_256=function(t){return u(t,7)^u(t,18)^t>>>3},g.g1_256=function(t){return u(t,17)^u(t,19)^t>>>10}},{"../utils":437}],437:[function(e,p,g){var u=e("minimalistic-assert"),i=e("inherits");function o(c,s){return(64512&c.charCodeAt(s))==55296&&!(s<0||s+1>=c.length)&&(64512&c.charCodeAt(s+1))==56320}function r(c){return(c>>>24|c>>>8&65280|c<<8&16711680|(255&c)<<24)>>>0}function t(c){return c.length===1?"0"+c:c}function n(c){return c.length===7?"0"+c:c.length===6?"00"+c:c.length===5?"000"+c:c.length===4?"0000"+c:c.length===3?"00000"+c:c.length===2?"000000"+c:c.length===1?"0000000"+c:c}g.inherits=i,g.toArray=function(c,s){if(Array.isArray(c))return c.slice();if(!c)return[];var a=[];if(typeof c=="string")if(s){if(s==="hex")for((c=c.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(c="0"+c),h=0;h<c.length;h+=2)a.push(parseInt(c[h]+c[h+1],16))}else for(var f=0,h=0;h<c.length;h++){var d=c.charCodeAt(h);d<128?a[f++]=d:d<2048?(a[f++]=d>>6|192,a[f++]=63&d|128):o(c,h)?(d=65536+((1023&d)<<10)+(1023&c.charCodeAt(++h)),a[f++]=d>>18|240,a[f++]=d>>12&63|128,a[f++]=d>>6&63|128,a[f++]=63&d|128):(a[f++]=d>>12|224,a[f++]=d>>6&63|128,a[f++]=63&d|128)}else for(h=0;h<c.length;h++)a[h]=0|c[h];return a},g.toHex=function(c){for(var s="",a=0;a<c.length;a++)s+=t(c[a].toString(16));return s},g.htonl=r,g.toHex32=function(c,s){for(var a="",f=0;f<c.length;f++){var h=c[f];s==="little"&&(h=r(h)),a+=n(h.toString(16))}return a},g.zero2=t,g.zero8=n,g.join32=function(c,s,a,f){var h=a-s;u(h%4==0);for(var d=new Array(h/4),b=0,m=s;b<d.length;b++,m+=4){var x;x=f==="big"?c[m]<<24|c[m+1]<<16|c[m+2]<<8|c[m+3]:c[m+3]<<24|c[m+2]<<16|c[m+1]<<8|c[m],d[b]=x>>>0}return d},g.split32=function(c,s){for(var a=new Array(4*c.length),f=0,h=0;f<c.length;f++,h+=4){var d=c[f];s==="big"?(a[h]=d>>>24,a[h+1]=d>>>16&255,a[h+2]=d>>>8&255,a[h+3]=255&d):(a[h+3]=d>>>24,a[h+2]=d>>>16&255,a[h+1]=d>>>8&255,a[h]=255&d)}return a},g.rotr32=function(c,s){return c>>>s|c<<32-s},g.rotl32=function(c,s){return c<<s|c>>>32-s},g.sum32=function(c,s){return c+s>>>0},g.sum32_3=function(c,s,a){return c+s+a>>>0},g.sum32_4=function(c,s,a,f){return c+s+a+f>>>0},g.sum32_5=function(c,s,a,f,h){return c+s+a+f+h>>>0},g.sum64=function(c,s,a,f){var h=c[s],d=f+c[s+1]>>>0,b=(d<f?1:0)+a+h;c[s]=b>>>0,c[s+1]=d},g.sum64_hi=function(c,s,a,f){return(s+f>>>0<s?1:0)+c+a>>>0},g.sum64_lo=function(c,s,a,f){return s+f>>>0},g.sum64_4_hi=function(c,s,a,f,h,d,b,m){var x=0,k=s;return x+=(k=k+f>>>0)<s?1:0,x+=(k=k+d>>>0)<d?1:0,c+a+h+b+(x+=(k=k+m>>>0)<m?1:0)>>>0},g.sum64_4_lo=function(c,s,a,f,h,d,b,m){return s+f+d+m>>>0},g.sum64_5_hi=function(c,s,a,f,h,d,b,m,x,k){var R=0,F=s;return R+=(F=F+f>>>0)<s?1:0,R+=(F=F+d>>>0)<d?1:0,R+=(F=F+m>>>0)<m?1:0,c+a+h+b+x+(R+=(F=F+k>>>0)<k?1:0)>>>0},g.sum64_5_lo=function(c,s,a,f,h,d,b,m,x,k){return s+f+d+m+k>>>0},g.rotr64_hi=function(c,s,a){return(s<<32-a|c>>>a)>>>0},g.rotr64_lo=function(c,s,a){return(c<<32-a|s>>>a)>>>0},g.shr64_hi=function(c,s,a){return c>>>a},g.shr64_lo=function(c,s,a){return(c<<32-a|s>>>a)>>>0}},{inherits:440,"minimalistic-assert":453}],438:[function(e,p,g){var u=e("hash.js"),i=e("minimalistic-crypto-utils"),o=e("minimalistic-assert");function r(t){if(!(this instanceof r))return new r(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var n=i.toArray(t.entropy,t.entropyEnc||"hex"),c=i.toArray(t.nonce,t.nonceEnc||"hex"),s=i.toArray(t.pers,t.persEnc||"hex");o(n.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(n,c,s)}p.exports=r,r.prototype._init=function(t,n,c){var s=t.concat(n).concat(c);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var a=0;a<this.V.length;a++)this.K[a]=0,this.V[a]=1;this._update(s),this._reseed=1,this.reseedInterval=281474976710656},r.prototype._hmac=function(){return new u.hmac(this.hash,this.K)},r.prototype._update=function(t){var n=this._hmac().update(this.V).update([0]);t&&(n=n.update(t)),this.K=n.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},r.prototype.reseed=function(t,n,c,s){typeof n!="string"&&(s=c,c=n,n=null),t=i.toArray(t,n),c=i.toArray(c,s),o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(c||[])),this._reseed=1},r.prototype.generate=function(t,n,c,s){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof n!="string"&&(s=c,c=n,n=null),c&&(c=i.toArray(c,s||"hex"),this._update(c));for(var a=[];a.length<t;)this.V=this._hmac().update(this.V).digest(),a=a.concat(this.V);var f=a.slice(0,t);return this._update(c),this._reseed++,i.encode(f,n)}},{"hash.js":426,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],439:[function(e,p,g){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */g.read=function(u,i,o,r,t){var n,c,s=8*t-r-1,a=(1<<s)-1,f=a>>1,h=-7,d=o?t-1:0,b=o?-1:1,m=u[i+d];for(d+=b,n=m&(1<<-h)-1,m>>=-h,h+=s;h>0;n=256*n+u[i+d],d+=b,h-=8);for(c=n&(1<<-h)-1,n>>=-h,h+=r;h>0;c=256*c+u[i+d],d+=b,h-=8);if(n===0)n=1-f;else{if(n===a)return c?NaN:1/0*(m?-1:1);c+=Math.pow(2,r),n-=f}return(m?-1:1)*c*Math.pow(2,n-r)},g.write=function(u,i,o,r,t,n){var c,s,a,f=8*n-t-1,h=(1<<f)-1,d=h>>1,b=t===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=r?0:n-1,x=r?1:-1,k=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(s=isNaN(i)?1:0,c=h):(c=Math.floor(Math.log(i)/Math.LN2),i*(a=Math.pow(2,-c))<1&&(c--,a*=2),(i+=c+d>=1?b/a:b*Math.pow(2,1-d))*a>=2&&(c++,a/=2),c+d>=h?(s=0,c=h):c+d>=1?(s=(i*a-1)*Math.pow(2,t),c+=d):(s=i*Math.pow(2,d-1)*Math.pow(2,t),c=0));t>=8;u[o+m]=255&s,m+=x,s/=256,t-=8);for(c=c<<t|s,f+=t;f>0;u[o+m]=255&c,m+=x,c/=256,f-=8);u[o+m-x]|=128*k}},{}],440:[function(e,p,g){typeof Object.create=="function"?p.exports=function(u,i){i&&(u.super_=i,u.prototype=Object.create(i.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}))}:p.exports=function(u,i){if(i){u.super_=i;var o=function(){};o.prototype=i.prototype,u.prototype=new o,u.prototype.constructor=u}}},{}],441:[function(e,p,g){(function(u,i,o,r,t,n,c,s){(function(){/*!
10
-
11
- JSZip v3.10.1 - A JavaScript class for generating and reading zip files
12
- <http://stuartk.com/jszip>
13
-
14
- (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
15
- Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
16
-
17
- JSZip uses the library pako released under the MIT license :
18
- https://github.com/nodeca/pako/blob/main/LICENSE
19
- */(function(a){typeof g=="object"&&p!==void 0?p.exports=a():(typeof window<"u"?window:i!==void 0?i:typeof self<"u"?self:this).JSZip=a()})(function(){return function a(f,h,d){function b(k,R){if(!h[k]){if(!f[k]){var F=typeof e=="function"&&e;if(!R&&F)return F(k,!0);if(m)return m(k,!0);var L=new Error("Cannot find module '"+k+"'");throw L.code="MODULE_NOT_FOUND",L}var j=h[k]={exports:{}};f[k][0].call(j.exports,function(D){return b(f[k][1][D]||D)},j,j.exports,a,f,h,d)}return h[k].exports}for(var m=typeof e=="function"&&e,x=0;x<d.length;x++)b(d[x]);return b}({1:[function(a,f,h){var d=a("./utils"),b=a("./support"),m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";h.encode=function(x){for(var k,R,F,L,j,D,z,$=[],V=0,T=x.length,M=T,S=d.getTypeOf(x)!=="string";V<x.length;)M=T-V,F=S?(k=x[V++],R=V<T?x[V++]:0,V<T?x[V++]:0):(k=x.charCodeAt(V++),R=V<T?x.charCodeAt(V++):0,V<T?x.charCodeAt(V++):0),L=k>>2,j=(3&k)<<4|R>>4,D=1<M?(15&R)<<2|F>>6:64,z=2<M?63&F:64,$.push(m.charAt(L)+m.charAt(j)+m.charAt(D)+m.charAt(z));return $.join("")},h.decode=function(x){var k,R,F,L,j,D,z=0,$=0,V="data:";if(x.substr(0,V.length)===V)throw new Error("Invalid base64 input, it looks like a data url.");var T,M=3*(x=x.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(x.charAt(x.length-1)===m.charAt(64)&&M--,x.charAt(x.length-2)===m.charAt(64)&&M--,M%1!=0)throw new Error("Invalid base64 input, bad content length.");for(T=b.uint8array?new Uint8Array(0|M):new Array(0|M);z<x.length;)k=m.indexOf(x.charAt(z++))<<2|(L=m.indexOf(x.charAt(z++)))>>4,R=(15&L)<<4|(j=m.indexOf(x.charAt(z++)))>>2,F=(3&j)<<6|(D=m.indexOf(x.charAt(z++))),T[$++]=k,j!==64&&(T[$++]=R),D!==64&&(T[$++]=F);return T}},{"./support":30,"./utils":32}],2:[function(a,f,h){var d=a("./external"),b=a("./stream/DataWorker"),m=a("./stream/Crc32Probe"),x=a("./stream/DataLengthProbe");function k(R,F,L,j,D){this.compressedSize=R,this.uncompressedSize=F,this.crc32=L,this.compression=j,this.compressedContent=D}k.prototype={getContentWorker:function(){var R=new b(d.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new x("data_length")),F=this;return R.on("end",function(){if(this.streamInfo.data_length!==F.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),R},getCompressedWorker:function(){return new b(d.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},k.createWorkerFrom=function(R,F,L){return R.pipe(new m).pipe(new x("uncompressedSize")).pipe(F.compressWorker(L)).pipe(new x("compressedSize")).withStreamInfo("compression",F)},f.exports=k},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(a,f,h){var d=a("./stream/GenericWorker");h.STORE={magic:"\0\0",compressWorker:function(){return new d("STORE compression")},uncompressWorker:function(){return new d("STORE decompression")}},h.DEFLATE=a("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(a,f,h){var d=a("./utils"),b=function(){for(var m,x=[],k=0;k<256;k++){m=k;for(var R=0;R<8;R++)m=1&m?3988292384^m>>>1:m>>>1;x[k]=m}return x}();f.exports=function(m,x){return m!==void 0&&m.length?d.getTypeOf(m)!=="string"?function(k,R,F,L){var j=b,D=0+F;k^=-1;for(var z=0;z<D;z++)k=k>>>8^j[255&(k^R[z])];return-1^k}(0|x,m,m.length):function(k,R,F,L){var j=b,D=0+F;k^=-1;for(var z=0;z<D;z++)k=k>>>8^j[255&(k^R.charCodeAt(z))];return-1^k}(0|x,m,m.length):0}},{"./utils":32}],5:[function(a,f,h){h.base64=!1,h.binary=!1,h.dir=!1,h.createFolders=!0,h.date=null,h.compression=null,h.compressionOptions=null,h.comment=null,h.unixPermissions=null,h.dosPermissions=null},{}],6:[function(a,f,h){var d;d=typeof Promise<"u"?Promise:a("lie"),f.exports={Promise:d}},{lie:37}],7:[function(a,f,h){var d=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",b=a("pako"),m=a("./utils"),x=a("./stream/GenericWorker"),k=d?"uint8array":"array";function R(F,L){x.call(this,"FlateWorker/"+F),this._pako=null,this._pakoAction=F,this._pakoOptions=L,this.meta={}}h.magic="\b\0",m.inherits(R,x),R.prototype.processChunk=function(F){this.meta=F.meta,this._pako===null&&this._createPako(),this._pako.push(m.transformTo(k,F.data),!1)},R.prototype.flush=function(){x.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},R.prototype.cleanUp=function(){x.prototype.cleanUp.call(this),this._pako=null},R.prototype._createPako=function(){this._pako=new b[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var F=this;this._pako.onData=function(L){F.push({data:L,meta:F.meta})}},h.compressWorker=function(F){return new R("Deflate",F)},h.uncompressWorker=function(){return new R("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(a,f,h){function d(j,D){var z,$="";for(z=0;z<D;z++)$+=String.fromCharCode(255&j),j>>>=8;return $}function b(j,D,z,$,V,T){var M,S,v=j.file,w=j.compression,y=T!==k.utf8encode,_=m.transformTo("string",T(v.name)),C=m.transformTo("string",k.utf8encode(v.name)),I=v.comment,P=m.transformTo("string",T(I)),H=m.transformTo("string",k.utf8encode(I)),W=C.length!==v.name.length,K=H.length!==I.length,B="",q="",O="",N=v.dir,U=v.date,X={crc32:0,compressedSize:0,uncompressedSize:0};D&&!z||(X.crc32=j.crc32,X.compressedSize=j.compressedSize,X.uncompressedSize=j.uncompressedSize);var Z=0;D&&(Z|=8),y||!W&&!K||(Z|=2048);var G=0,J=0;N&&(G|=16),V==="UNIX"?(J=798,G|=function(ie,Y){var te=ie;return ie||(te=Y?16893:33204),(65535&te)<<16}(v.unixPermissions,N)):(J=20,G|=function(ie){return 63&(ie||0)}(v.dosPermissions)),M=U.getUTCHours(),M<<=6,M|=U.getUTCMinutes(),M<<=5,M|=U.getUTCSeconds()/2,S=U.getUTCFullYear()-1980,S<<=4,S|=U.getUTCMonth()+1,S<<=5,S|=U.getUTCDate(),W&&(q=d(1,1)+d(R(_),4)+C,B+="up"+d(q.length,2)+q),K&&(O=d(1,1)+d(R(P),4)+H,B+="uc"+d(O.length,2)+O);var ne="";return ne+=`
20
- \0`,ne+=d(Z,2),ne+=w.magic,ne+=d(M,2),ne+=d(S,2),ne+=d(X.crc32,4),ne+=d(X.compressedSize,4),ne+=d(X.uncompressedSize,4),ne+=d(_.length,2),ne+=d(B.length,2),{fileRecord:F.LOCAL_FILE_HEADER+ne+_+B,dirRecord:F.CENTRAL_FILE_HEADER+d(J,2)+ne+d(P.length,2)+"\0\0\0\0"+d(G,4)+d($,4)+_+B+P}}var m=a("../utils"),x=a("../stream/GenericWorker"),k=a("../utf8"),R=a("../crc32"),F=a("../signature");function L(j,D,z,$){x.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=D,this.zipPlatform=z,this.encodeFileName=$,this.streamFiles=j,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}m.inherits(L,x),L.prototype.push=function(j){var D=j.meta.percent||0,z=this.entriesCount,$=this._sources.length;this.accumulate?this.contentBuffer.push(j):(this.bytesWritten+=j.data.length,x.prototype.push.call(this,{data:j.data,meta:{currentFile:this.currentFile,percent:z?(D+100*(z-$-1))/z:100}}))},L.prototype.openedSource=function(j){this.currentSourceOffset=this.bytesWritten,this.currentFile=j.file.name;var D=this.streamFiles&&!j.file.dir;if(D){var z=b(j,D,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:z.fileRecord,meta:{percent:0}})}else this.accumulate=!0},L.prototype.closedSource=function(j){this.accumulate=!1;var D=this.streamFiles&&!j.file.dir,z=b(j,D,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(z.dirRecord),D)this.push({data:function($){return F.DATA_DESCRIPTOR+d($.crc32,4)+d($.compressedSize,4)+d($.uncompressedSize,4)}(j),meta:{percent:100}});else for(this.push({data:z.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},L.prototype.flush=function(){for(var j=this.bytesWritten,D=0;D<this.dirRecords.length;D++)this.push({data:this.dirRecords[D],meta:{percent:100}});var z=this.bytesWritten-j,$=function(V,T,M,S,v){var w=m.transformTo("string",v(S));return F.CENTRAL_DIRECTORY_END+"\0\0\0\0"+d(V,2)+d(V,2)+d(T,4)+d(M,4)+d(w.length,2)+w}(this.dirRecords.length,z,j,this.zipComment,this.encodeFileName);this.push({data:$,meta:{percent:100}})},L.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},L.prototype.registerPrevious=function(j){this._sources.push(j);var D=this;return j.on("data",function(z){D.processChunk(z)}),j.on("end",function(){D.closedSource(D.previous.streamInfo),D._sources.length?D.prepareNextSource():D.end()}),j.on("error",function(z){D.error(z)}),this},L.prototype.resume=function(){return!!x.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},L.prototype.error=function(j){var D=this._sources;if(!x.prototype.error.call(this,j))return!1;for(var z=0;z<D.length;z++)try{D[z].error(j)}catch{}return!0},L.prototype.lock=function(){x.prototype.lock.call(this);for(var j=this._sources,D=0;D<j.length;D++)j[D].lock()},f.exports=L},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(a,f,h){var d=a("../compressions"),b=a("./ZipFileWorker");h.generateWorker=function(m,x,k){var R=new b(x.streamFiles,k,x.platform,x.encodeFileName),F=0;try{m.forEach(function(L,j){F++;var D=function(T,M){var S=T||M,v=d[S];if(!v)throw new Error(S+" is not a valid compression method !");return v}(j.options.compression,x.compression),z=j.options.compressionOptions||x.compressionOptions||{},$=j.dir,V=j.date;j._compressWorker(D,z).withStreamInfo("file",{name:L,dir:$,date:V,comment:j.comment||"",unixPermissions:j.unixPermissions,dosPermissions:j.dosPermissions}).pipe(R)}),R.entriesCount=F}catch(L){R.error(L)}return R}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(a,f,h){function d(){if(!(this instanceof d))return new d;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 b=new d;for(var m in this)typeof this[m]!="function"&&(b[m]=this[m]);return b}}(d.prototype=a("./object")).loadAsync=a("./load"),d.support=a("./support"),d.defaults=a("./defaults"),d.version="3.10.1",d.loadAsync=function(b,m){return new d().loadAsync(b,m)},d.external=a("./external"),f.exports=d},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(a,f,h){var d=a("./utils"),b=a("./external"),m=a("./utf8"),x=a("./zipEntries"),k=a("./stream/Crc32Probe"),R=a("./nodejsUtils");function F(L){return new b.Promise(function(j,D){var z=L.decompressed.getContentWorker().pipe(new k);z.on("error",function($){D($)}).on("end",function(){z.streamInfo.crc32!==L.decompressed.crc32?D(new Error("Corrupted zip : CRC32 mismatch")):j()}).resume()})}f.exports=function(L,j){var D=this;return j=d.extend(j||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:m.utf8decode}),R.isNode&&R.isStream(L)?b.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):d.prepareContent("the loaded zip file",L,!0,j.optimizedBinaryString,j.base64).then(function(z){var $=new x(j);return $.load(z),$}).then(function(z){var $=[b.Promise.resolve(z)],V=z.files;if(j.checkCRC32)for(var T=0;T<V.length;T++)$.push(F(V[T]));return b.Promise.all($)}).then(function(z){for(var $=z.shift(),V=$.files,T=0;T<V.length;T++){var M=V[T],S=M.fileNameStr,v=d.resolve(M.fileNameStr);D.file(v,M.decompressed,{binary:!0,optimizedBinaryString:!0,date:M.date,dir:M.dir,comment:M.fileCommentStr.length?M.fileCommentStr:null,unixPermissions:M.unixPermissions,dosPermissions:M.dosPermissions,createFolders:j.createFolders}),M.dir||(D.file(v).unsafeOriginalName=S)}return $.zipComment.length&&(D.comment=$.zipComment),D})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(a,f,h){var d=a("../utils"),b=a("../stream/GenericWorker");function m(x,k){b.call(this,"Nodejs stream input adapter for "+x),this._upstreamEnded=!1,this._bindStream(k)}d.inherits(m,b),m.prototype._bindStream=function(x){var k=this;(this._stream=x).pause(),x.on("data",function(R){k.push({data:R,meta:{percent:0}})}).on("error",function(R){k.isPaused?this.generatedError=R:k.error(R)}).on("end",function(){k.isPaused?k._upstreamEnded=!0:k.end()})},m.prototype.pause=function(){return!!b.prototype.pause.call(this)&&(this._stream.pause(),!0)},m.prototype.resume=function(){return!!b.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},f.exports=m},{"../stream/GenericWorker":28,"../utils":32}],13:[function(a,f,h){var d=a("readable-stream").Readable;function b(m,x,k){d.call(this,x),this._helper=m;var R=this;m.on("data",function(F,L){R.push(F)||R._helper.pause(),k&&k(L)}).on("error",function(F){R.emit("error",F)}).on("end",function(){R.push(null)})}a("../utils").inherits(b,d),b.prototype._read=function(){this._helper.resume()},f.exports=b},{"../utils":32,"readable-stream":16}],14:[function(a,f,h){f.exports={isNode:o!==void 0,newBufferFrom:function(d,b){if(o.from&&o.from!==Uint8Array.from)return o.from(d,b);if(typeof d=="number")throw new Error('The "data" argument must not be a number');return new o(d,b)},allocBuffer:function(d){if(o.alloc)return o.alloc(d);var b=new o(d);return b.fill(0),b},isBuffer:function(d){return o.isBuffer(d)},isStream:function(d){return d&&typeof d.on=="function"&&typeof d.pause=="function"&&typeof d.resume=="function"}}},{}],15:[function(a,f,h){function d(v,w,y){var _,C=m.getTypeOf(w),I=m.extend(y||{},R);I.date=I.date||new Date,I.compression!==null&&(I.compression=I.compression.toUpperCase()),typeof I.unixPermissions=="string"&&(I.unixPermissions=parseInt(I.unixPermissions,8)),I.unixPermissions&&16384&I.unixPermissions&&(I.dir=!0),I.dosPermissions&&16&I.dosPermissions&&(I.dir=!0),I.dir&&(v=V(v)),I.createFolders&&(_=$(v))&&T.call(this,_,!0);var P=C==="string"&&I.binary===!1&&I.base64===!1;y&&y.binary!==void 0||(I.binary=!P),(w instanceof F&&w.uncompressedSize===0||I.dir||!w||w.length===0)&&(I.base64=!1,I.binary=!0,w="",I.compression="STORE",C="string");var H;H=w instanceof F||w instanceof x?w:D.isNode&&D.isStream(w)?new z(v,w):m.prepareContent(v,w,I.binary,I.optimizedBinaryString,I.base64);var W=new L(v,H,I);this.files[v]=W}var b=a("./utf8"),m=a("./utils"),x=a("./stream/GenericWorker"),k=a("./stream/StreamHelper"),R=a("./defaults"),F=a("./compressedObject"),L=a("./zipObject"),j=a("./generate"),D=a("./nodejsUtils"),z=a("./nodejs/NodejsStreamInputAdapter"),$=function(v){v.slice(-1)==="/"&&(v=v.substring(0,v.length-1));var w=v.lastIndexOf("/");return 0<w?v.substring(0,w):""},V=function(v){return v.slice(-1)!=="/"&&(v+="/"),v},T=function(v,w){return w=w!==void 0?w:R.createFolders,v=V(v),this.files[v]||d.call(this,v,null,{dir:!0,createFolders:w}),this.files[v]};function M(v){return Object.prototype.toString.call(v)==="[object RegExp]"}var S={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(v){var w,y,_;for(w in this.files)_=this.files[w],(y=w.slice(this.root.length,w.length))&&w.slice(0,this.root.length)===this.root&&v(y,_)},filter:function(v){var w=[];return this.forEach(function(y,_){v(y,_)&&w.push(_)}),w},file:function(v,w,y){if(arguments.length!==1)return v=this.root+v,d.call(this,v,w,y),this;if(M(v)){var _=v;return this.filter(function(I,P){return!P.dir&&_.test(I)})}var C=this.files[this.root+v];return C&&!C.dir?C:null},folder:function(v){if(!v)return this;if(M(v))return this.filter(function(C,I){return I.dir&&v.test(C)});var w=this.root+v,y=T.call(this,w),_=this.clone();return _.root=y.name,_},remove:function(v){v=this.root+v;var w=this.files[v];if(w||(v.slice(-1)!=="/"&&(v+="/"),w=this.files[v]),w&&!w.dir)delete this.files[v];else for(var y=this.filter(function(C,I){return I.name.slice(0,v.length)===v}),_=0;_<y.length;_++)delete this.files[y[_].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(v){var w,y={};try{if((y=m.extend(v||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:b.utf8encode})).type=y.type.toLowerCase(),y.compression=y.compression.toUpperCase(),y.type==="binarystring"&&(y.type="string"),!y.type)throw new Error("No output type specified.");m.checkSupport(y.type),y.platform!=="darwin"&&y.platform!=="freebsd"&&y.platform!=="linux"&&y.platform!=="sunos"||(y.platform="UNIX"),y.platform==="win32"&&(y.platform="DOS");var _=y.comment||this.comment||"";w=j.generateWorker(this,y,_)}catch(C){(w=new x("error")).error(C)}return new k(w,y.type||"string",y.mimeType)},generateAsync:function(v,w){return this.generateInternalStream(v).accumulate(w)},generateNodeStream:function(v,w){return(v=v||{}).type||(v.type="nodebuffer"),this.generateInternalStream(v).toNodejsStream(w)}};f.exports=S},{"./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(a,f,h){f.exports=a("stream")},{stream:void 0}],17:[function(a,f,h){var d=a("./DataReader");function b(m){d.call(this,m);for(var x=0;x<this.data.length;x++)m[x]=255&m[x]}a("../utils").inherits(b,d),b.prototype.byteAt=function(m){return this.data[this.zero+m]},b.prototype.lastIndexOfSignature=function(m){for(var x=m.charCodeAt(0),k=m.charCodeAt(1),R=m.charCodeAt(2),F=m.charCodeAt(3),L=this.length-4;0<=L;--L)if(this.data[L]===x&&this.data[L+1]===k&&this.data[L+2]===R&&this.data[L+3]===F)return L-this.zero;return-1},b.prototype.readAndCheckSignature=function(m){var x=m.charCodeAt(0),k=m.charCodeAt(1),R=m.charCodeAt(2),F=m.charCodeAt(3),L=this.readData(4);return x===L[0]&&k===L[1]&&R===L[2]&&F===L[3]},b.prototype.readData=function(m){if(this.checkOffset(m),m===0)return[];var x=this.data.slice(this.zero+this.index,this.zero+this.index+m);return this.index+=m,x},f.exports=b},{"../utils":32,"./DataReader":18}],18:[function(a,f,h){var d=a("../utils");function b(m){this.data=m,this.length=m.length,this.index=0,this.zero=0}b.prototype={checkOffset:function(m){this.checkIndex(this.index+m)},checkIndex:function(m){if(this.length<this.zero+m||m<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+m+"). Corrupted zip ?")},setIndex:function(m){this.checkIndex(m),this.index=m},skip:function(m){this.setIndex(this.index+m)},byteAt:function(){},readInt:function(m){var x,k=0;for(this.checkOffset(m),x=this.index+m-1;x>=this.index;x--)k=(k<<8)+this.byteAt(x);return this.index+=m,k},readString:function(m){return d.transformTo("string",this.readData(m))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var m=this.readInt(4);return new Date(Date.UTC(1980+(m>>25&127),(m>>21&15)-1,m>>16&31,m>>11&31,m>>5&63,(31&m)<<1))}},f.exports=b},{"../utils":32}],19:[function(a,f,h){var d=a("./Uint8ArrayReader");function b(m){d.call(this,m)}a("../utils").inherits(b,d),b.prototype.readData=function(m){this.checkOffset(m);var x=this.data.slice(this.zero+this.index,this.zero+this.index+m);return this.index+=m,x},f.exports=b},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(a,f,h){var d=a("./DataReader");function b(m){d.call(this,m)}a("../utils").inherits(b,d),b.prototype.byteAt=function(m){return this.data.charCodeAt(this.zero+m)},b.prototype.lastIndexOfSignature=function(m){return this.data.lastIndexOf(m)-this.zero},b.prototype.readAndCheckSignature=function(m){return m===this.readData(4)},b.prototype.readData=function(m){this.checkOffset(m);var x=this.data.slice(this.zero+this.index,this.zero+this.index+m);return this.index+=m,x},f.exports=b},{"../utils":32,"./DataReader":18}],21:[function(a,f,h){var d=a("./ArrayReader");function b(m){d.call(this,m)}a("../utils").inherits(b,d),b.prototype.readData=function(m){if(this.checkOffset(m),m===0)return new Uint8Array(0);var x=this.data.subarray(this.zero+this.index,this.zero+this.index+m);return this.index+=m,x},f.exports=b},{"../utils":32,"./ArrayReader":17}],22:[function(a,f,h){var d=a("../utils"),b=a("../support"),m=a("./ArrayReader"),x=a("./StringReader"),k=a("./NodeBufferReader"),R=a("./Uint8ArrayReader");f.exports=function(F){var L=d.getTypeOf(F);return d.checkSupport(L),L!=="string"||b.uint8array?L==="nodebuffer"?new k(F):b.uint8array?new R(d.transformTo("uint8array",F)):new m(d.transformTo("array",F)):new x(F)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(a,f,h){h.LOCAL_FILE_HEADER="PK",h.CENTRAL_FILE_HEADER="PK",h.CENTRAL_DIRECTORY_END="PK",h.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",h.ZIP64_CENTRAL_DIRECTORY_END="PK",h.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(a,f,h){var d=a("./GenericWorker"),b=a("../utils");function m(x){d.call(this,"ConvertWorker to "+x),this.destType=x}b.inherits(m,d),m.prototype.processChunk=function(x){this.push({data:b.transformTo(this.destType,x.data),meta:x.meta})},f.exports=m},{"../utils":32,"./GenericWorker":28}],25:[function(a,f,h){var d=a("./GenericWorker"),b=a("../crc32");function m(){d.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}a("../utils").inherits(m,d),m.prototype.processChunk=function(x){this.streamInfo.crc32=b(x.data,this.streamInfo.crc32||0),this.push(x)},f.exports=m},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(a,f,h){var d=a("../utils"),b=a("./GenericWorker");function m(x){b.call(this,"DataLengthProbe for "+x),this.propName=x,this.withStreamInfo(x,0)}d.inherits(m,b),m.prototype.processChunk=function(x){if(x){var k=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=k+x.data.length}b.prototype.processChunk.call(this,x)},f.exports=m},{"../utils":32,"./GenericWorker":28}],27:[function(a,f,h){var d=a("../utils"),b=a("./GenericWorker");function m(x){b.call(this,"DataWorker");var k=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,x.then(function(R){k.dataIsReady=!0,k.data=R,k.max=R&&R.length||0,k.type=d.getTypeOf(R),k.isPaused||k._tickAndRepeat()},function(R){k.error(R)})}d.inherits(m,b),m.prototype.cleanUp=function(){b.prototype.cleanUp.call(this),this.data=null},m.prototype.resume=function(){return!!b.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,d.delay(this._tickAndRepeat,[],this)),!0)},m.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(d.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},m.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var x=null,k=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":x=this.data.substring(this.index,k);break;case"uint8array":x=this.data.subarray(this.index,k);break;case"array":case"nodebuffer":x=this.data.slice(this.index,k)}return this.index=k,this.push({data:x,meta:{percent:this.max?this.index/this.max*100:0}})},f.exports=m},{"../utils":32,"./GenericWorker":28}],28:[function(a,f,h){function d(b){this.name=b||"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}d.prototype={push:function(b){this.emit("data",b)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(b){this.emit("error",b)}return!0},error:function(b){return!this.isFinished&&(this.isPaused?this.generatedError=b:(this.isFinished=!0,this.emit("error",b),this.previous&&this.previous.error(b),this.cleanUp()),!0)},on:function(b,m){return this._listeners[b].push(m),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(b,m){if(this._listeners[b])for(var x=0;x<this._listeners[b].length;x++)this._listeners[b][x].call(this,m)},pipe:function(b){return b.registerPrevious(this)},registerPrevious:function(b){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=b.streamInfo,this.mergeStreamInfo(),this.previous=b;var m=this;return b.on("data",function(x){m.processChunk(x)}),b.on("end",function(){m.end()}),b.on("error",function(x){m.error(x)}),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 b=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),b=!0),this.previous&&this.previous.resume(),!b},flush:function(){},processChunk:function(b){this.push(b)},withStreamInfo:function(b,m){return this.extraStreamInfo[b]=m,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var b in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,b)&&(this.streamInfo[b]=this.extraStreamInfo[b])},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 b="Worker "+this.name;return this.previous?this.previous+" -> "+b:b}},f.exports=d},{}],29:[function(a,f,h){var d=a("../utils"),b=a("./ConvertWorker"),m=a("./GenericWorker"),x=a("../base64"),k=a("../support"),R=a("../external"),F=null;if(k.nodestream)try{F=a("../nodejs/NodejsStreamOutputAdapter")}catch{}function L(j,D,z){var $=D;switch(D){case"blob":case"arraybuffer":$="uint8array";break;case"base64":$="string"}try{this._internalType=$,this._outputType=D,this._mimeType=z,d.checkSupport($),this._worker=j.pipe(new b($)),j.lock()}catch(V){this._worker=new m("error"),this._worker.error(V)}}L.prototype={accumulate:function(j){return function(D,z){return new R.Promise(function($,V){var T=[],M=D._internalType,S=D._outputType,v=D._mimeType;D.on("data",function(w,y){T.push(w),z&&z(y)}).on("error",function(w){T=[],V(w)}).on("end",function(){try{var w=function(y,_,C){switch(y){case"blob":return d.newBlob(d.transformTo("arraybuffer",_),C);case"base64":return x.encode(_);default:return d.transformTo(y,_)}}(S,function(y,_){var C,I=0,P=null,H=0;for(C=0;C<_.length;C++)H+=_[C].length;switch(y){case"string":return _.join("");case"array":return Array.prototype.concat.apply([],_);case"uint8array":for(P=new Uint8Array(H),C=0;C<_.length;C++)P.set(_[C],I),I+=_[C].length;return P;case"nodebuffer":return o.concat(_);default:throw new Error("concat : unsupported type '"+y+"'")}}(M,T),v);$(w)}catch(y){V(y)}T=[]}).resume()})}(this,j)},on:function(j,D){var z=this;return j==="data"?this._worker.on(j,function($){D.call(z,$.data,$.meta)}):this._worker.on(j,function(){d.delay(D,arguments,z)}),this},resume:function(){return d.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(j){if(d.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new F(this,{objectMode:this._outputType!=="nodebuffer"},j)}},f.exports=L},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(a,f,h){if(h.base64=!0,h.array=!0,h.string=!0,h.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",h.nodebuffer=o!==void 0,h.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")h.blob=!1;else{var d=new ArrayBuffer(0);try{h.blob=new Blob([d],{type:"application/zip"}).size===0}catch{try{var b=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);b.append(d),h.blob=b.getBlob("application/zip").size===0}catch{h.blob=!1}}}try{h.nodestream=!!a("readable-stream").Readable}catch{h.nodestream=!1}},{"readable-stream":16}],31:[function(a,f,h){for(var d=a("./utils"),b=a("./support"),m=a("./nodejsUtils"),x=a("./stream/GenericWorker"),k=new Array(256),R=0;R<256;R++)k[R]=252<=R?6:248<=R?5:240<=R?4:224<=R?3:192<=R?2:1;function F(){x.call(this,"utf-8 decode"),this.leftOver=null}function L(){x.call(this,"utf-8 encode")}k[254]=k[254]=1,h.utf8encode=function(j){return b.nodebuffer?m.newBufferFrom(j,"utf-8"):function(D){var z,$,V,T,M,S=D.length,v=0;for(T=0;T<S;T++)(64512&($=D.charCodeAt(T)))==55296&&T+1<S&&(64512&(V=D.charCodeAt(T+1)))==56320&&($=65536+($-55296<<10)+(V-56320),T++),v+=$<128?1:$<2048?2:$<65536?3:4;for(z=b.uint8array?new Uint8Array(v):new Array(v),T=M=0;M<v;T++)(64512&($=D.charCodeAt(T)))==55296&&T+1<S&&(64512&(V=D.charCodeAt(T+1)))==56320&&($=65536+($-55296<<10)+(V-56320),T++),$<128?z[M++]=$:($<2048?z[M++]=192|$>>>6:($<65536?z[M++]=224|$>>>12:(z[M++]=240|$>>>18,z[M++]=128|$>>>12&63),z[M++]=128|$>>>6&63),z[M++]=128|63&$);return z}(j)},h.utf8decode=function(j){return b.nodebuffer?d.transformTo("nodebuffer",j).toString("utf-8"):function(D){var z,$,V,T,M=D.length,S=new Array(2*M);for(z=$=0;z<M;)if((V=D[z++])<128)S[$++]=V;else if(4<(T=k[V]))S[$++]=65533,z+=T-1;else{for(V&=T===2?31:T===3?15:7;1<T&&z<M;)V=V<<6|63&D[z++],T--;1<T?S[$++]=65533:V<65536?S[$++]=V:(V-=65536,S[$++]=55296|V>>10&1023,S[$++]=56320|1023&V)}return S.length!==$&&(S.subarray?S=S.subarray(0,$):S.length=$),d.applyFromCharCode(S)}(j=d.transformTo(b.uint8array?"uint8array":"array",j))},d.inherits(F,x),F.prototype.processChunk=function(j){var D=d.transformTo(b.uint8array?"uint8array":"array",j.data);if(this.leftOver&&this.leftOver.length){if(b.uint8array){var z=D;(D=new Uint8Array(z.length+this.leftOver.length)).set(this.leftOver,0),D.set(z,this.leftOver.length)}else D=this.leftOver.concat(D);this.leftOver=null}var $=function(T,M){var S;for((M=M||T.length)>T.length&&(M=T.length),S=M-1;0<=S&&(192&T[S])==128;)S--;return S<0||S===0?M:S+k[T[S]]>M?S:M}(D),V=D;$!==D.length&&(b.uint8array?(V=D.subarray(0,$),this.leftOver=D.subarray($,D.length)):(V=D.slice(0,$),this.leftOver=D.slice($,D.length))),this.push({data:h.utf8decode(V),meta:j.meta})},F.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:h.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},h.Utf8DecodeWorker=F,d.inherits(L,x),L.prototype.processChunk=function(j){this.push({data:h.utf8encode(j.data),meta:j.meta})},h.Utf8EncodeWorker=L},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(a,f,h){var d=a("./support"),b=a("./base64"),m=a("./nodejsUtils"),x=a("./external");function k(z){return z}function R(z,$){for(var V=0;V<z.length;++V)$[V]=255&z.charCodeAt(V);return $}a("setimmediate"),h.newBlob=function(z,$){h.checkSupport("blob");try{return new Blob([z],{type:$})}catch{try{var V=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return V.append(z),V.getBlob($)}catch{throw new Error("Bug : can't construct the Blob.")}}};var F={stringifyByChunk:function(z,$,V){var T=[],M=0,S=z.length;if(S<=V)return String.fromCharCode.apply(null,z);for(;M<S;)$==="array"||$==="nodebuffer"?T.push(String.fromCharCode.apply(null,z.slice(M,Math.min(M+V,S)))):T.push(String.fromCharCode.apply(null,z.subarray(M,Math.min(M+V,S)))),M+=V;return T.join("")},stringifyByChar:function(z){for(var $="",V=0;V<z.length;V++)$+=String.fromCharCode(z[V]);return $},applyCanBeUsed:{uint8array:function(){try{return d.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return d.nodebuffer&&String.fromCharCode.apply(null,m.allocBuffer(1)).length===1}catch{return!1}}()}};function L(z){var $=65536,V=h.getTypeOf(z),T=!0;if(V==="uint8array"?T=F.applyCanBeUsed.uint8array:V==="nodebuffer"&&(T=F.applyCanBeUsed.nodebuffer),T)for(;1<$;)try{return F.stringifyByChunk(z,V,$)}catch{$=Math.floor($/2)}return F.stringifyByChar(z)}function j(z,$){for(var V=0;V<z.length;V++)$[V]=z[V];return $}h.applyFromCharCode=L;var D={};D.string={string:k,array:function(z){return R(z,new Array(z.length))},arraybuffer:function(z){return D.string.uint8array(z).buffer},uint8array:function(z){return R(z,new Uint8Array(z.length))},nodebuffer:function(z){return R(z,m.allocBuffer(z.length))}},D.array={string:L,array:k,arraybuffer:function(z){return new Uint8Array(z).buffer},uint8array:function(z){return new Uint8Array(z)},nodebuffer:function(z){return m.newBufferFrom(z)}},D.arraybuffer={string:function(z){return L(new Uint8Array(z))},array:function(z){return j(new Uint8Array(z),new Array(z.byteLength))},arraybuffer:k,uint8array:function(z){return new Uint8Array(z)},nodebuffer:function(z){return m.newBufferFrom(new Uint8Array(z))}},D.uint8array={string:L,array:function(z){return j(z,new Array(z.length))},arraybuffer:function(z){return z.buffer},uint8array:k,nodebuffer:function(z){return m.newBufferFrom(z)}},D.nodebuffer={string:L,array:function(z){return j(z,new Array(z.length))},arraybuffer:function(z){return D.nodebuffer.uint8array(z).buffer},uint8array:function(z){return j(z,new Uint8Array(z.length))},nodebuffer:k},h.transformTo=function(z,$){if($=$||"",!z)return $;h.checkSupport(z);var V=h.getTypeOf($);return D[V][z]($)},h.resolve=function(z){for(var $=z.split("/"),V=[],T=0;T<$.length;T++){var M=$[T];M==="."||M===""&&T!==0&&T!==$.length-1||(M===".."?V.pop():V.push(M))}return V.join("/")},h.getTypeOf=function(z){return typeof z=="string"?"string":Object.prototype.toString.call(z)==="[object Array]"?"array":d.nodebuffer&&m.isBuffer(z)?"nodebuffer":d.uint8array&&z instanceof Uint8Array?"uint8array":d.arraybuffer&&z instanceof ArrayBuffer?"arraybuffer":void 0},h.checkSupport=function(z){if(!d[z.toLowerCase()])throw new Error(z+" is not supported by this platform")},h.MAX_VALUE_16BITS=65535,h.MAX_VALUE_32BITS=-1,h.pretty=function(z){var $,V,T="";for(V=0;V<(z||"").length;V++)T+="\\x"+(($=z.charCodeAt(V))<16?"0":"")+$.toString(16).toUpperCase();return T},h.delay=function(z,$,V){s(function(){z.apply(V||null,$||[])})},h.inherits=function(z,$){function V(){}V.prototype=$.prototype,z.prototype=new V},h.extend=function(){var z,$,V={};for(z=0;z<arguments.length;z++)for($ in arguments[z])Object.prototype.hasOwnProperty.call(arguments[z],$)&&V[$]===void 0&&(V[$]=arguments[z][$]);return V},h.prepareContent=function(z,$,V,T,M){return x.Promise.resolve($).then(function(S){return d.blob&&(S instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(S))!==-1)&&typeof FileReader<"u"?new x.Promise(function(v,w){var y=new FileReader;y.onload=function(_){v(_.target.result)},y.onerror=function(_){w(_.target.error)},y.readAsArrayBuffer(S)}):S}).then(function(S){var v=h.getTypeOf(S);return v?(v==="arraybuffer"?S=h.transformTo("uint8array",S):v==="string"&&(M?S=b.decode(S):V&&T!==!0&&(S=function(w){return R(w,d.uint8array?new Uint8Array(w.length):new Array(w.length))}(S))),S):x.Promise.reject(new Error("Can't read the data of '"+z+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(a,f,h){var d=a("./reader/readerFor"),b=a("./utils"),m=a("./signature"),x=a("./zipEntry"),k=a("./support");function R(F){this.files=[],this.loadOptions=F}R.prototype={checkSignature:function(F){if(!this.reader.readAndCheckSignature(F)){this.reader.index-=4;var L=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+b.pretty(L)+", expected "+b.pretty(F)+")")}},isSignature:function(F,L){var j=this.reader.index;this.reader.setIndex(F);var D=this.reader.readString(4)===L;return this.reader.setIndex(j),D},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 F=this.reader.readData(this.zipCommentLength),L=k.uint8array?"uint8array":"array",j=b.transformTo(L,F);this.zipComment=this.loadOptions.decodeFileName(j)},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 F,L,j,D=this.zip64EndOfCentralSize-44;0<D;)F=this.reader.readInt(2),L=this.reader.readInt(4),j=this.reader.readData(L),this.zip64ExtensibleData[F]={id:F,length:L,value:j}},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 F,L;for(F=0;F<this.files.length;F++)L=this.files[F],this.reader.setIndex(L.localHeaderOffset),this.checkSignature(m.LOCAL_FILE_HEADER),L.readLocalPart(this.reader),L.handleUTF8(),L.processAttributes()},readCentralDir:function(){var F;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(m.CENTRAL_FILE_HEADER);)(F=new x({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(F);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 F=this.reader.lastIndexOfSignature(m.CENTRAL_DIRECTORY_END);if(F<0)throw this.isSignature(0,m.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(F);var L=F;if(this.checkSignature(m.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===b.MAX_VALUE_16BITS||this.diskWithCentralDirStart===b.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===b.MAX_VALUE_16BITS||this.centralDirRecords===b.MAX_VALUE_16BITS||this.centralDirSize===b.MAX_VALUE_32BITS||this.centralDirOffset===b.MAX_VALUE_32BITS){if(this.zip64=!0,(F=this.reader.lastIndexOfSignature(m.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(F),this.checkSignature(m.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,m.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(m.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(m.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var j=this.centralDirOffset+this.centralDirSize;this.zip64&&(j+=20,j+=12+this.zip64EndOfCentralSize);var D=L-j;if(0<D)this.isSignature(L,m.CENTRAL_FILE_HEADER)||(this.reader.zero=D);else if(D<0)throw new Error("Corrupted zip: missing "+Math.abs(D)+" bytes.")},prepareReader:function(F){this.reader=d(F)},load:function(F){this.prepareReader(F),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},f.exports=R},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(a,f,h){var d=a("./reader/readerFor"),b=a("./utils"),m=a("./compressedObject"),x=a("./crc32"),k=a("./utf8"),R=a("./compressions"),F=a("./support");function L(j,D){this.options=j,this.loadOptions=D}L.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(j){var D,z;if(j.skip(22),this.fileNameLength=j.readInt(2),z=j.readInt(2),this.fileName=j.readData(this.fileNameLength),j.skip(z),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((D=function($){for(var V in R)if(Object.prototype.hasOwnProperty.call(R,V)&&R[V].magic===$)return R[V];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+b.pretty(this.compressionMethod)+" unknown (inner file : "+b.transformTo("string",this.fileName)+")");this.decompressed=new m(this.compressedSize,this.uncompressedSize,this.crc32,D,j.readData(this.compressedSize))},readCentralPart:function(j){this.versionMadeBy=j.readInt(2),j.skip(2),this.bitFlag=j.readInt(2),this.compressionMethod=j.readString(2),this.date=j.readDate(),this.crc32=j.readInt(4),this.compressedSize=j.readInt(4),this.uncompressedSize=j.readInt(4);var D=j.readInt(2);if(this.extraFieldsLength=j.readInt(2),this.fileCommentLength=j.readInt(2),this.diskNumberStart=j.readInt(2),this.internalFileAttributes=j.readInt(2),this.externalFileAttributes=j.readInt(4),this.localHeaderOffset=j.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");j.skip(D),this.readExtraFields(j),this.parseZIP64ExtraField(j),this.fileComment=j.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var j=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),j==0&&(this.dosPermissions=63&this.externalFileAttributes),j==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var j=d(this.extraFields[1].value);this.uncompressedSize===b.MAX_VALUE_32BITS&&(this.uncompressedSize=j.readInt(8)),this.compressedSize===b.MAX_VALUE_32BITS&&(this.compressedSize=j.readInt(8)),this.localHeaderOffset===b.MAX_VALUE_32BITS&&(this.localHeaderOffset=j.readInt(8)),this.diskNumberStart===b.MAX_VALUE_32BITS&&(this.diskNumberStart=j.readInt(4))}},readExtraFields:function(j){var D,z,$,V=j.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});j.index+4<V;)D=j.readInt(2),z=j.readInt(2),$=j.readData(z),this.extraFields[D]={id:D,length:z,value:$};j.setIndex(V)},handleUTF8:function(){var j=F.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=k.utf8decode(this.fileName),this.fileCommentStr=k.utf8decode(this.fileComment);else{var D=this.findExtraFieldUnicodePath();if(D!==null)this.fileNameStr=D;else{var z=b.transformTo(j,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(z)}var $=this.findExtraFieldUnicodeComment();if($!==null)this.fileCommentStr=$;else{var V=b.transformTo(j,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(V)}}},findExtraFieldUnicodePath:function(){var j=this.extraFields[28789];if(j){var D=d(j.value);return D.readInt(1)!==1||x(this.fileName)!==D.readInt(4)?null:k.utf8decode(D.readData(j.length-5))}return null},findExtraFieldUnicodeComment:function(){var j=this.extraFields[25461];if(j){var D=d(j.value);return D.readInt(1)!==1||x(this.fileComment)!==D.readInt(4)?null:k.utf8decode(D.readData(j.length-5))}return null}},f.exports=L},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(a,f,h){function d(D,z,$){this.name=D,this.dir=$.dir,this.date=$.date,this.comment=$.comment,this.unixPermissions=$.unixPermissions,this.dosPermissions=$.dosPermissions,this._data=z,this._dataBinary=$.binary,this.options={compression:$.compression,compressionOptions:$.compressionOptions}}var b=a("./stream/StreamHelper"),m=a("./stream/DataWorker"),x=a("./utf8"),k=a("./compressedObject"),R=a("./stream/GenericWorker");d.prototype={internalStream:function(D){var z=null,$="string";try{if(!D)throw new Error("No output type specified.");var V=($=D.toLowerCase())==="string"||$==="text";$!=="binarystring"&&$!=="text"||($="string"),z=this._decompressWorker();var T=!this._dataBinary;T&&!V&&(z=z.pipe(new x.Utf8EncodeWorker)),!T&&V&&(z=z.pipe(new x.Utf8DecodeWorker))}catch(M){(z=new R("error")).error(M)}return new b(z,$,"")},async:function(D,z){return this.internalStream(D).accumulate(z)},nodeStream:function(D,z){return this.internalStream(D||"nodebuffer").toNodejsStream(z)},_compressWorker:function(D,z){if(this._data instanceof k&&this._data.compression.magic===D.magic)return this._data.getCompressedWorker();var $=this._decompressWorker();return this._dataBinary||($=$.pipe(new x.Utf8EncodeWorker)),k.createWorkerFrom($,D,z)},_decompressWorker:function(){return this._data instanceof k?this._data.getContentWorker():this._data instanceof R?this._data:new m(this._data)}};for(var F=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],L=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},j=0;j<F.length;j++)d.prototype[F[j]]=L;f.exports=d},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(a,f,h){(function(d){var b,m,x=d.MutationObserver||d.WebKitMutationObserver;if(x){var k=0,R=new x(D),F=d.document.createTextNode("");R.observe(F,{characterData:!0}),b=function(){F.data=k=++k%2}}else if(d.setImmediate||d.MessageChannel===void 0)b="document"in d&&"onreadystatechange"in d.document.createElement("script")?function(){var z=d.document.createElement("script");z.onreadystatechange=function(){D(),z.onreadystatechange=null,z.parentNode.removeChild(z),z=null},d.document.documentElement.appendChild(z)}:function(){setTimeout(D,0)};else{var L=new d.MessageChannel;L.port1.onmessage=D,b=function(){L.port2.postMessage(0)}}var j=[];function D(){var z,$;m=!0;for(var V=j.length;V;){for($=j,j=[],z=-1;++z<V;)$[z]();V=j.length}m=!1}f.exports=function(z){j.push(z)!==1||m||b()}}).call(this,i!==void 0?i:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(a,f,h){var d=a("immediate");function b(){}var m={},x=["REJECTED"],k=["FULFILLED"],R=["PENDING"];function F(V){if(typeof V!="function")throw new TypeError("resolver must be a function");this.state=R,this.queue=[],this.outcome=void 0,V!==b&&z(this,V)}function L(V,T,M){this.promise=V,typeof T=="function"&&(this.onFulfilled=T,this.callFulfilled=this.otherCallFulfilled),typeof M=="function"&&(this.onRejected=M,this.callRejected=this.otherCallRejected)}function j(V,T,M){d(function(){var S;try{S=T(M)}catch(v){return m.reject(V,v)}S===V?m.reject(V,new TypeError("Cannot resolve promise with itself")):m.resolve(V,S)})}function D(V){var T=V&&V.then;if(V&&(typeof V=="object"||typeof V=="function")&&typeof T=="function")return function(){T.apply(V,arguments)}}function z(V,T){var M=!1;function S(y){M||(M=!0,m.reject(V,y))}function v(y){M||(M=!0,m.resolve(V,y))}var w=$(function(){T(v,S)});w.status==="error"&&S(w.value)}function $(V,T){var M={};try{M.value=V(T),M.status="success"}catch(S){M.status="error",M.value=S}return M}(f.exports=F).prototype.finally=function(V){if(typeof V!="function")return this;var T=this.constructor;return this.then(function(M){return T.resolve(V()).then(function(){return M})},function(M){return T.resolve(V()).then(function(){throw M})})},F.prototype.catch=function(V){return this.then(null,V)},F.prototype.then=function(V,T){if(typeof V!="function"&&this.state===k||typeof T!="function"&&this.state===x)return this;var M=new this.constructor(b);return this.state!==R?j(M,this.state===k?V:T,this.outcome):this.queue.push(new L(M,V,T)),M},L.prototype.callFulfilled=function(V){m.resolve(this.promise,V)},L.prototype.otherCallFulfilled=function(V){j(this.promise,this.onFulfilled,V)},L.prototype.callRejected=function(V){m.reject(this.promise,V)},L.prototype.otherCallRejected=function(V){j(this.promise,this.onRejected,V)},m.resolve=function(V,T){var M=$(D,T);if(M.status==="error")return m.reject(V,M.value);var S=M.value;if(S)z(V,S);else{V.state=k,V.outcome=T;for(var v=-1,w=V.queue.length;++v<w;)V.queue[v].callFulfilled(T)}return V},m.reject=function(V,T){V.state=x,V.outcome=T;for(var M=-1,S=V.queue.length;++M<S;)V.queue[M].callRejected(T);return V},F.resolve=function(V){return V instanceof this?V:m.resolve(new this(b),V)},F.reject=function(V){var T=new this(b);return m.reject(T,V)},F.all=function(V){var T=this;if(Object.prototype.toString.call(V)!=="[object Array]")return this.reject(new TypeError("must be an array"));var M=V.length,S=!1;if(!M)return this.resolve([]);for(var v=new Array(M),w=0,y=-1,_=new this(b);++y<M;)C(V[y],y);return _;function C(I,P){T.resolve(I).then(function(H){v[P]=H,++w!==M||S||(S=!0,m.resolve(_,v))},function(H){S||(S=!0,m.reject(_,H))})}},F.race=function(V){if(Object.prototype.toString.call(V)!=="[object Array]")return this.reject(new TypeError("must be an array"));var T=V.length,M=!1;if(!T)return this.resolve([]);for(var S,v=-1,w=new this(b);++v<T;)S=V[v],this.resolve(S).then(function(y){M||(M=!0,m.resolve(w,y))},function(y){M||(M=!0,m.reject(w,y))});return w}},{immediate:36}],38:[function(a,f,h){var d={};(0,a("./lib/utils/common").assign)(d,a("./lib/deflate"),a("./lib/inflate"),a("./lib/zlib/constants")),f.exports=d},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(a,f,h){var d=a("./zlib/deflate"),b=a("./utils/common"),m=a("./utils/strings"),x=a("./zlib/messages"),k=a("./zlib/zstream"),R=Object.prototype.toString;function F(j){if(!(this instanceof F))return new F(j);this.options=b.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},j||{});var D=this.options;D.raw&&0<D.windowBits?D.windowBits=-D.windowBits:D.gzip&&0<D.windowBits&&D.windowBits<16&&(D.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new k,this.strm.avail_out=0;var z=d.deflateInit2(this.strm,D.level,D.method,D.windowBits,D.memLevel,D.strategy);if(z!==0)throw new Error(x[z]);if(D.header&&d.deflateSetHeader(this.strm,D.header),D.dictionary){var $;if($=typeof D.dictionary=="string"?m.string2buf(D.dictionary):R.call(D.dictionary)==="[object ArrayBuffer]"?new Uint8Array(D.dictionary):D.dictionary,(z=d.deflateSetDictionary(this.strm,$))!==0)throw new Error(x[z]);this._dict_set=!0}}function L(j,D){var z=new F(D);if(z.push(j,!0),z.err)throw z.msg||x[z.err];return z.result}F.prototype.push=function(j,D){var z,$,V=this.strm,T=this.options.chunkSize;if(this.ended)return!1;$=D===~~D?D:D===!0?4:0,typeof j=="string"?V.input=m.string2buf(j):R.call(j)==="[object ArrayBuffer]"?V.input=new Uint8Array(j):V.input=j,V.next_in=0,V.avail_in=V.input.length;do{if(V.avail_out===0&&(V.output=new b.Buf8(T),V.next_out=0,V.avail_out=T),(z=d.deflate(V,$))!==1&&z!==0)return this.onEnd(z),!(this.ended=!0);V.avail_out!==0&&(V.avail_in!==0||$!==4&&$!==2)||(this.options.to==="string"?this.onData(m.buf2binstring(b.shrinkBuf(V.output,V.next_out))):this.onData(b.shrinkBuf(V.output,V.next_out)))}while((0<V.avail_in||V.avail_out===0)&&z!==1);return $===4?(z=d.deflateEnd(this.strm),this.onEnd(z),this.ended=!0,z===0):$!==2||(this.onEnd(0),!(V.avail_out=0))},F.prototype.onData=function(j){this.chunks.push(j)},F.prototype.onEnd=function(j){j===0&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=b.flattenChunks(this.chunks)),this.chunks=[],this.err=j,this.msg=this.strm.msg},h.Deflate=F,h.deflate=L,h.deflateRaw=function(j,D){return(D=D||{}).raw=!0,L(j,D)},h.gzip=function(j,D){return(D=D||{}).gzip=!0,L(j,D)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(a,f,h){var d=a("./zlib/inflate"),b=a("./utils/common"),m=a("./utils/strings"),x=a("./zlib/constants"),k=a("./zlib/messages"),R=a("./zlib/zstream"),F=a("./zlib/gzheader"),L=Object.prototype.toString;function j(z){if(!(this instanceof j))return new j(z);this.options=b.assign({chunkSize:16384,windowBits:0,to:""},z||{});var $=this.options;$.raw&&0<=$.windowBits&&$.windowBits<16&&($.windowBits=-$.windowBits,$.windowBits===0&&($.windowBits=-15)),!(0<=$.windowBits&&$.windowBits<16)||z&&z.windowBits||($.windowBits+=32),15<$.windowBits&&$.windowBits<48&&!(15&$.windowBits)&&($.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new R,this.strm.avail_out=0;var V=d.inflateInit2(this.strm,$.windowBits);if(V!==x.Z_OK)throw new Error(k[V]);this.header=new F,d.inflateGetHeader(this.strm,this.header)}function D(z,$){var V=new j($);if(V.push(z,!0),V.err)throw V.msg||k[V.err];return V.result}j.prototype.push=function(z,$){var V,T,M,S,v,w,y=this.strm,_=this.options.chunkSize,C=this.options.dictionary,I=!1;if(this.ended)return!1;T=$===~~$?$:$===!0?x.Z_FINISH:x.Z_NO_FLUSH,typeof z=="string"?y.input=m.binstring2buf(z):L.call(z)==="[object ArrayBuffer]"?y.input=new Uint8Array(z):y.input=z,y.next_in=0,y.avail_in=y.input.length;do{if(y.avail_out===0&&(y.output=new b.Buf8(_),y.next_out=0,y.avail_out=_),(V=d.inflate(y,x.Z_NO_FLUSH))===x.Z_NEED_DICT&&C&&(w=typeof C=="string"?m.string2buf(C):L.call(C)==="[object ArrayBuffer]"?new Uint8Array(C):C,V=d.inflateSetDictionary(this.strm,w)),V===x.Z_BUF_ERROR&&I===!0&&(V=x.Z_OK,I=!1),V!==x.Z_STREAM_END&&V!==x.Z_OK)return this.onEnd(V),!(this.ended=!0);y.next_out&&(y.avail_out!==0&&V!==x.Z_STREAM_END&&(y.avail_in!==0||T!==x.Z_FINISH&&T!==x.Z_SYNC_FLUSH)||(this.options.to==="string"?(M=m.utf8border(y.output,y.next_out),S=y.next_out-M,v=m.buf2string(y.output,M),y.next_out=S,y.avail_out=_-S,S&&b.arraySet(y.output,y.output,M,S,0),this.onData(v)):this.onData(b.shrinkBuf(y.output,y.next_out)))),y.avail_in===0&&y.avail_out===0&&(I=!0)}while((0<y.avail_in||y.avail_out===0)&&V!==x.Z_STREAM_END);return V===x.Z_STREAM_END&&(T=x.Z_FINISH),T===x.Z_FINISH?(V=d.inflateEnd(this.strm),this.onEnd(V),this.ended=!0,V===x.Z_OK):T!==x.Z_SYNC_FLUSH||(this.onEnd(x.Z_OK),!(y.avail_out=0))},j.prototype.onData=function(z){this.chunks.push(z)},j.prototype.onEnd=function(z){z===x.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=b.flattenChunks(this.chunks)),this.chunks=[],this.err=z,this.msg=this.strm.msg},h.Inflate=j,h.inflate=D,h.inflateRaw=function(z,$){return($=$||{}).raw=!0,D(z,$)},h.ungzip=D},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(a,f,h){var d=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";h.assign=function(x){for(var k=Array.prototype.slice.call(arguments,1);k.length;){var R=k.shift();if(R){if(typeof R!="object")throw new TypeError(R+"must be non-object");for(var F in R)R.hasOwnProperty(F)&&(x[F]=R[F])}}return x},h.shrinkBuf=function(x,k){return x.length===k?x:x.subarray?x.subarray(0,k):(x.length=k,x)};var b={arraySet:function(x,k,R,F,L){if(k.subarray&&x.subarray)x.set(k.subarray(R,R+F),L);else for(var j=0;j<F;j++)x[L+j]=k[R+j]},flattenChunks:function(x){var k,R,F,L,j,D;for(k=F=0,R=x.length;k<R;k++)F+=x[k].length;for(D=new Uint8Array(F),k=L=0,R=x.length;k<R;k++)j=x[k],D.set(j,L),L+=j.length;return D}},m={arraySet:function(x,k,R,F,L){for(var j=0;j<F;j++)x[L+j]=k[R+j]},flattenChunks:function(x){return[].concat.apply([],x)}};h.setTyped=function(x){x?(h.Buf8=Uint8Array,h.Buf16=Uint16Array,h.Buf32=Int32Array,h.assign(h,b)):(h.Buf8=Array,h.Buf16=Array,h.Buf32=Array,h.assign(h,m))},h.setTyped(d)},{}],42:[function(a,f,h){var d=a("./common"),b=!0,m=!0;try{String.fromCharCode.apply(null,[0])}catch{b=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{m=!1}for(var x=new d.Buf8(256),k=0;k<256;k++)x[k]=252<=k?6:248<=k?5:240<=k?4:224<=k?3:192<=k?2:1;function R(F,L){if(L<65537&&(F.subarray&&m||!F.subarray&&b))return String.fromCharCode.apply(null,d.shrinkBuf(F,L));for(var j="",D=0;D<L;D++)j+=String.fromCharCode(F[D]);return j}x[254]=x[254]=1,h.string2buf=function(F){var L,j,D,z,$,V=F.length,T=0;for(z=0;z<V;z++)(64512&(j=F.charCodeAt(z)))==55296&&z+1<V&&(64512&(D=F.charCodeAt(z+1)))==56320&&(j=65536+(j-55296<<10)+(D-56320),z++),T+=j<128?1:j<2048?2:j<65536?3:4;for(L=new d.Buf8(T),z=$=0;$<T;z++)(64512&(j=F.charCodeAt(z)))==55296&&z+1<V&&(64512&(D=F.charCodeAt(z+1)))==56320&&(j=65536+(j-55296<<10)+(D-56320),z++),j<128?L[$++]=j:(j<2048?L[$++]=192|j>>>6:(j<65536?L[$++]=224|j>>>12:(L[$++]=240|j>>>18,L[$++]=128|j>>>12&63),L[$++]=128|j>>>6&63),L[$++]=128|63&j);return L},h.buf2binstring=function(F){return R(F,F.length)},h.binstring2buf=function(F){for(var L=new d.Buf8(F.length),j=0,D=L.length;j<D;j++)L[j]=F.charCodeAt(j);return L},h.buf2string=function(F,L){var j,D,z,$,V=L||F.length,T=new Array(2*V);for(j=D=0;j<V;)if((z=F[j++])<128)T[D++]=z;else if(4<($=x[z]))T[D++]=65533,j+=$-1;else{for(z&=$===2?31:$===3?15:7;1<$&&j<V;)z=z<<6|63&F[j++],$--;1<$?T[D++]=65533:z<65536?T[D++]=z:(z-=65536,T[D++]=55296|z>>10&1023,T[D++]=56320|1023&z)}return R(T,D)},h.utf8border=function(F,L){var j;for((L=L||F.length)>F.length&&(L=F.length),j=L-1;0<=j&&(192&F[j])==128;)j--;return j<0||j===0?L:j+x[F[j]]>L?j:L}},{"./common":41}],43:[function(a,f,h){f.exports=function(d,b,m,x){for(var k=65535&d|0,R=d>>>16&65535|0,F=0;m!==0;){for(m-=F=2e3<m?2e3:m;R=R+(k=k+b[x++]|0)|0,--F;);k%=65521,R%=65521}return k|R<<16|0}},{}],44:[function(a,f,h){f.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(a,f,h){var d=function(){for(var b,m=[],x=0;x<256;x++){b=x;for(var k=0;k<8;k++)b=1&b?3988292384^b>>>1:b>>>1;m[x]=b}return m}();f.exports=function(b,m,x,k){var R=d,F=k+x;b^=-1;for(var L=k;L<F;L++)b=b>>>8^R[255&(b^m[L])];return-1^b}},{}],46:[function(a,f,h){var d,b=a("../utils/common"),m=a("./trees"),x=a("./adler32"),k=a("./crc32"),R=a("./messages"),F=-2,L=258,j=262,D=113;function z(B,q){return B.msg=R[q],q}function $(B){return(B<<1)-(4<B?9:0)}function V(B){for(var q=B.length;0<=--q;)B[q]=0}function T(B){var q=B.state,O=q.pending;O>B.avail_out&&(O=B.avail_out),O!==0&&(b.arraySet(B.output,q.pending_buf,q.pending_out,O,B.next_out),B.next_out+=O,q.pending_out+=O,B.total_out+=O,B.avail_out-=O,q.pending-=O,q.pending===0&&(q.pending_out=0))}function M(B,q){m._tr_flush_block(B,0<=B.block_start?B.block_start:-1,B.strstart-B.block_start,q),B.block_start=B.strstart,T(B.strm)}function S(B,q){B.pending_buf[B.pending++]=q}function v(B,q){B.pending_buf[B.pending++]=q>>>8&255,B.pending_buf[B.pending++]=255&q}function w(B,q){var O,N,U=B.max_chain_length,X=B.strstart,Z=B.prev_length,G=B.nice_match,J=B.strstart>B.w_size-j?B.strstart-(B.w_size-j):0,ne=B.window,ie=B.w_mask,Y=B.prev,te=B.strstart+L,ee=ne[X+Z-1],ae=ne[X+Z];B.prev_length>=B.good_match&&(U>>=2),G>B.lookahead&&(G=B.lookahead);do if(ne[(O=q)+Z]===ae&&ne[O+Z-1]===ee&&ne[O]===ne[X]&&ne[++O]===ne[X+1]){X+=2,O++;do;while(ne[++X]===ne[++O]&&ne[++X]===ne[++O]&&ne[++X]===ne[++O]&&ne[++X]===ne[++O]&&ne[++X]===ne[++O]&&ne[++X]===ne[++O]&&ne[++X]===ne[++O]&&ne[++X]===ne[++O]&&X<te);if(N=L-(te-X),X=te-L,Z<N){if(B.match_start=q,G<=(Z=N))break;ee=ne[X+Z-1],ae=ne[X+Z]}}while((q=Y[q&ie])>J&&--U!=0);return Z<=B.lookahead?Z:B.lookahead}function y(B){var q,O,N,U,X,Z,G,J,ne,ie,Y=B.w_size;do{if(U=B.window_size-B.lookahead-B.strstart,B.strstart>=Y+(Y-j)){for(b.arraySet(B.window,B.window,Y,Y,0),B.match_start-=Y,B.strstart-=Y,B.block_start-=Y,q=O=B.hash_size;N=B.head[--q],B.head[q]=Y<=N?N-Y:0,--O;);for(q=O=Y;N=B.prev[--q],B.prev[q]=Y<=N?N-Y:0,--O;);U+=Y}if(B.strm.avail_in===0)break;if(Z=B.strm,G=B.window,J=B.strstart+B.lookahead,ie=void 0,(ne=U)<(ie=Z.avail_in)&&(ie=ne),O=ie===0?0:(Z.avail_in-=ie,b.arraySet(G,Z.input,Z.next_in,ie,J),Z.state.wrap===1?Z.adler=x(Z.adler,G,ie,J):Z.state.wrap===2&&(Z.adler=k(Z.adler,G,ie,J)),Z.next_in+=ie,Z.total_in+=ie,ie),B.lookahead+=O,B.lookahead+B.insert>=3)for(X=B.strstart-B.insert,B.ins_h=B.window[X],B.ins_h=(B.ins_h<<B.hash_shift^B.window[X+1])&B.hash_mask;B.insert&&(B.ins_h=(B.ins_h<<B.hash_shift^B.window[X+3-1])&B.hash_mask,B.prev[X&B.w_mask]=B.head[B.ins_h],B.head[B.ins_h]=X,X++,B.insert--,!(B.lookahead+B.insert<3)););}while(B.lookahead<j&&B.strm.avail_in!==0)}function _(B,q){for(var O,N;;){if(B.lookahead<j){if(y(B),B.lookahead<j&&q===0)return 1;if(B.lookahead===0)break}if(O=0,B.lookahead>=3&&(B.ins_h=(B.ins_h<<B.hash_shift^B.window[B.strstart+3-1])&B.hash_mask,O=B.prev[B.strstart&B.w_mask]=B.head[B.ins_h],B.head[B.ins_h]=B.strstart),O!==0&&B.strstart-O<=B.w_size-j&&(B.match_length=w(B,O)),B.match_length>=3)if(N=m._tr_tally(B,B.strstart-B.match_start,B.match_length-3),B.lookahead-=B.match_length,B.match_length<=B.max_lazy_match&&B.lookahead>=3){for(B.match_length--;B.strstart++,B.ins_h=(B.ins_h<<B.hash_shift^B.window[B.strstart+3-1])&B.hash_mask,O=B.prev[B.strstart&B.w_mask]=B.head[B.ins_h],B.head[B.ins_h]=B.strstart,--B.match_length!=0;);B.strstart++}else B.strstart+=B.match_length,B.match_length=0,B.ins_h=B.window[B.strstart],B.ins_h=(B.ins_h<<B.hash_shift^B.window[B.strstart+1])&B.hash_mask;else N=m._tr_tally(B,0,B.window[B.strstart]),B.lookahead--,B.strstart++;if(N&&(M(B,!1),B.strm.avail_out===0))return 1}return B.insert=B.strstart<2?B.strstart:2,q===4?(M(B,!0),B.strm.avail_out===0?3:4):B.last_lit&&(M(B,!1),B.strm.avail_out===0)?1:2}function C(B,q){for(var O,N,U;;){if(B.lookahead<j){if(y(B),B.lookahead<j&&q===0)return 1;if(B.lookahead===0)break}if(O=0,B.lookahead>=3&&(B.ins_h=(B.ins_h<<B.hash_shift^B.window[B.strstart+3-1])&B.hash_mask,O=B.prev[B.strstart&B.w_mask]=B.head[B.ins_h],B.head[B.ins_h]=B.strstart),B.prev_length=B.match_length,B.prev_match=B.match_start,B.match_length=2,O!==0&&B.prev_length<B.max_lazy_match&&B.strstart-O<=B.w_size-j&&(B.match_length=w(B,O),B.match_length<=5&&(B.strategy===1||B.match_length===3&&4096<B.strstart-B.match_start)&&(B.match_length=2)),B.prev_length>=3&&B.match_length<=B.prev_length){for(U=B.strstart+B.lookahead-3,N=m._tr_tally(B,B.strstart-1-B.prev_match,B.prev_length-3),B.lookahead-=B.prev_length-1,B.prev_length-=2;++B.strstart<=U&&(B.ins_h=(B.ins_h<<B.hash_shift^B.window[B.strstart+3-1])&B.hash_mask,O=B.prev[B.strstart&B.w_mask]=B.head[B.ins_h],B.head[B.ins_h]=B.strstart),--B.prev_length!=0;);if(B.match_available=0,B.match_length=2,B.strstart++,N&&(M(B,!1),B.strm.avail_out===0))return 1}else if(B.match_available){if((N=m._tr_tally(B,0,B.window[B.strstart-1]))&&M(B,!1),B.strstart++,B.lookahead--,B.strm.avail_out===0)return 1}else B.match_available=1,B.strstart++,B.lookahead--}return B.match_available&&(N=m._tr_tally(B,0,B.window[B.strstart-1]),B.match_available=0),B.insert=B.strstart<2?B.strstart:2,q===4?(M(B,!0),B.strm.avail_out===0?3:4):B.last_lit&&(M(B,!1),B.strm.avail_out===0)?1:2}function I(B,q,O,N,U){this.good_length=B,this.max_lazy=q,this.nice_length=O,this.max_chain=N,this.func=U}function P(){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=8,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 b.Buf16(1146),this.dyn_dtree=new b.Buf16(122),this.bl_tree=new b.Buf16(78),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new b.Buf16(16),this.heap=new b.Buf16(573),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new b.Buf16(573),V(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 H(B){var q;return B&&B.state?(B.total_in=B.total_out=0,B.data_type=2,(q=B.state).pending=0,q.pending_out=0,q.wrap<0&&(q.wrap=-q.wrap),q.status=q.wrap?42:D,B.adler=q.wrap===2?0:1,q.last_flush=0,m._tr_init(q),0):z(B,F)}function W(B){var q=H(B);return q===0&&function(O){O.window_size=2*O.w_size,V(O.head),O.max_lazy_match=d[O.level].max_lazy,O.good_match=d[O.level].good_length,O.nice_match=d[O.level].nice_length,O.max_chain_length=d[O.level].max_chain,O.strstart=0,O.block_start=0,O.lookahead=0,O.insert=0,O.match_length=O.prev_length=2,O.match_available=0,O.ins_h=0}(B.state),q}function K(B,q,O,N,U,X){if(!B)return F;var Z=1;if(q===-1&&(q=6),N<0?(Z=0,N=-N):15<N&&(Z=2,N-=16),U<1||9<U||O!==8||N<8||15<N||q<0||9<q||X<0||4<X)return z(B,F);N===8&&(N=9);var G=new P;return(B.state=G).strm=B,G.wrap=Z,G.gzhead=null,G.w_bits=N,G.w_size=1<<G.w_bits,G.w_mask=G.w_size-1,G.hash_bits=U+7,G.hash_size=1<<G.hash_bits,G.hash_mask=G.hash_size-1,G.hash_shift=~~((G.hash_bits+3-1)/3),G.window=new b.Buf8(2*G.w_size),G.head=new b.Buf16(G.hash_size),G.prev=new b.Buf16(G.w_size),G.lit_bufsize=1<<U+6,G.pending_buf_size=4*G.lit_bufsize,G.pending_buf=new b.Buf8(G.pending_buf_size),G.d_buf=1*G.lit_bufsize,G.l_buf=3*G.lit_bufsize,G.level=q,G.strategy=X,G.method=O,W(B)}d=[new I(0,0,0,0,function(B,q){var O=65535;for(O>B.pending_buf_size-5&&(O=B.pending_buf_size-5);;){if(B.lookahead<=1){if(y(B),B.lookahead===0&&q===0)return 1;if(B.lookahead===0)break}B.strstart+=B.lookahead,B.lookahead=0;var N=B.block_start+O;if((B.strstart===0||B.strstart>=N)&&(B.lookahead=B.strstart-N,B.strstart=N,M(B,!1),B.strm.avail_out===0)||B.strstart-B.block_start>=B.w_size-j&&(M(B,!1),B.strm.avail_out===0))return 1}return B.insert=0,q===4?(M(B,!0),B.strm.avail_out===0?3:4):(B.strstart>B.block_start&&(M(B,!1),B.strm.avail_out),1)}),new I(4,4,8,4,_),new I(4,5,16,8,_),new I(4,6,32,32,_),new I(4,4,16,16,C),new I(8,16,32,32,C),new I(8,16,128,128,C),new I(8,32,128,256,C),new I(32,128,258,1024,C),new I(32,258,258,4096,C)],h.deflateInit=function(B,q){return K(B,q,8,15,8,0)},h.deflateInit2=K,h.deflateReset=W,h.deflateResetKeep=H,h.deflateSetHeader=function(B,q){return B&&B.state?B.state.wrap!==2?F:(B.state.gzhead=q,0):F},h.deflate=function(B,q){var O,N,U,X;if(!B||!B.state||5<q||q<0)return B?z(B,F):F;if(N=B.state,!B.output||!B.input&&B.avail_in!==0||N.status===666&&q!==4)return z(B,B.avail_out===0?-5:F);if(N.strm=B,O=N.last_flush,N.last_flush=q,N.status===42)if(N.wrap===2)B.adler=0,S(N,31),S(N,139),S(N,8),N.gzhead?(S(N,(N.gzhead.text?1:0)+(N.gzhead.hcrc?2:0)+(N.gzhead.extra?4:0)+(N.gzhead.name?8:0)+(N.gzhead.comment?16:0)),S(N,255&N.gzhead.time),S(N,N.gzhead.time>>8&255),S(N,N.gzhead.time>>16&255),S(N,N.gzhead.time>>24&255),S(N,N.level===9?2:2<=N.strategy||N.level<2?4:0),S(N,255&N.gzhead.os),N.gzhead.extra&&N.gzhead.extra.length&&(S(N,255&N.gzhead.extra.length),S(N,N.gzhead.extra.length>>8&255)),N.gzhead.hcrc&&(B.adler=k(B.adler,N.pending_buf,N.pending,0)),N.gzindex=0,N.status=69):(S(N,0),S(N,0),S(N,0),S(N,0),S(N,0),S(N,N.level===9?2:2<=N.strategy||N.level<2?4:0),S(N,3),N.status=D);else{var Z=8+(N.w_bits-8<<4)<<8;Z|=(2<=N.strategy||N.level<2?0:N.level<6?1:N.level===6?2:3)<<6,N.strstart!==0&&(Z|=32),Z+=31-Z%31,N.status=D,v(N,Z),N.strstart!==0&&(v(N,B.adler>>>16),v(N,65535&B.adler)),B.adler=1}if(N.status===69)if(N.gzhead.extra){for(U=N.pending;N.gzindex<(65535&N.gzhead.extra.length)&&(N.pending!==N.pending_buf_size||(N.gzhead.hcrc&&N.pending>U&&(B.adler=k(B.adler,N.pending_buf,N.pending-U,U)),T(B),U=N.pending,N.pending!==N.pending_buf_size));)S(N,255&N.gzhead.extra[N.gzindex]),N.gzindex++;N.gzhead.hcrc&&N.pending>U&&(B.adler=k(B.adler,N.pending_buf,N.pending-U,U)),N.gzindex===N.gzhead.extra.length&&(N.gzindex=0,N.status=73)}else N.status=73;if(N.status===73)if(N.gzhead.name){U=N.pending;do{if(N.pending===N.pending_buf_size&&(N.gzhead.hcrc&&N.pending>U&&(B.adler=k(B.adler,N.pending_buf,N.pending-U,U)),T(B),U=N.pending,N.pending===N.pending_buf_size)){X=1;break}X=N.gzindex<N.gzhead.name.length?255&N.gzhead.name.charCodeAt(N.gzindex++):0,S(N,X)}while(X!==0);N.gzhead.hcrc&&N.pending>U&&(B.adler=k(B.adler,N.pending_buf,N.pending-U,U)),X===0&&(N.gzindex=0,N.status=91)}else N.status=91;if(N.status===91)if(N.gzhead.comment){U=N.pending;do{if(N.pending===N.pending_buf_size&&(N.gzhead.hcrc&&N.pending>U&&(B.adler=k(B.adler,N.pending_buf,N.pending-U,U)),T(B),U=N.pending,N.pending===N.pending_buf_size)){X=1;break}X=N.gzindex<N.gzhead.comment.length?255&N.gzhead.comment.charCodeAt(N.gzindex++):0,S(N,X)}while(X!==0);N.gzhead.hcrc&&N.pending>U&&(B.adler=k(B.adler,N.pending_buf,N.pending-U,U)),X===0&&(N.status=103)}else N.status=103;if(N.status===103&&(N.gzhead.hcrc?(N.pending+2>N.pending_buf_size&&T(B),N.pending+2<=N.pending_buf_size&&(S(N,255&B.adler),S(N,B.adler>>8&255),B.adler=0,N.status=D)):N.status=D),N.pending!==0){if(T(B),B.avail_out===0)return N.last_flush=-1,0}else if(B.avail_in===0&&$(q)<=$(O)&&q!==4)return z(B,-5);if(N.status===666&&B.avail_in!==0)return z(B,-5);if(B.avail_in!==0||N.lookahead!==0||q!==0&&N.status!==666){var G=N.strategy===2?function(J,ne){for(var ie;;){if(J.lookahead===0&&(y(J),J.lookahead===0)){if(ne===0)return 1;break}if(J.match_length=0,ie=m._tr_tally(J,0,J.window[J.strstart]),J.lookahead--,J.strstart++,ie&&(M(J,!1),J.strm.avail_out===0))return 1}return J.insert=0,ne===4?(M(J,!0),J.strm.avail_out===0?3:4):J.last_lit&&(M(J,!1),J.strm.avail_out===0)?1:2}(N,q):N.strategy===3?function(J,ne){for(var ie,Y,te,ee,ae=J.window;;){if(J.lookahead<=L){if(y(J),J.lookahead<=L&&ne===0)return 1;if(J.lookahead===0)break}if(J.match_length=0,J.lookahead>=3&&0<J.strstart&&(Y=ae[te=J.strstart-1])===ae[++te]&&Y===ae[++te]&&Y===ae[++te]){ee=J.strstart+L;do;while(Y===ae[++te]&&Y===ae[++te]&&Y===ae[++te]&&Y===ae[++te]&&Y===ae[++te]&&Y===ae[++te]&&Y===ae[++te]&&Y===ae[++te]&&te<ee);J.match_length=L-(ee-te),J.match_length>J.lookahead&&(J.match_length=J.lookahead)}if(J.match_length>=3?(ie=m._tr_tally(J,1,J.match_length-3),J.lookahead-=J.match_length,J.strstart+=J.match_length,J.match_length=0):(ie=m._tr_tally(J,0,J.window[J.strstart]),J.lookahead--,J.strstart++),ie&&(M(J,!1),J.strm.avail_out===0))return 1}return J.insert=0,ne===4?(M(J,!0),J.strm.avail_out===0?3:4):J.last_lit&&(M(J,!1),J.strm.avail_out===0)?1:2}(N,q):d[N.level].func(N,q);if(G!==3&&G!==4||(N.status=666),G===1||G===3)return B.avail_out===0&&(N.last_flush=-1),0;if(G===2&&(q===1?m._tr_align(N):q!==5&&(m._tr_stored_block(N,0,0,!1),q===3&&(V(N.head),N.lookahead===0&&(N.strstart=0,N.block_start=0,N.insert=0))),T(B),B.avail_out===0))return N.last_flush=-1,0}return q!==4?0:N.wrap<=0?1:(N.wrap===2?(S(N,255&B.adler),S(N,B.adler>>8&255),S(N,B.adler>>16&255),S(N,B.adler>>24&255),S(N,255&B.total_in),S(N,B.total_in>>8&255),S(N,B.total_in>>16&255),S(N,B.total_in>>24&255)):(v(N,B.adler>>>16),v(N,65535&B.adler)),T(B),0<N.wrap&&(N.wrap=-N.wrap),N.pending!==0?0:1)},h.deflateEnd=function(B){var q;return B&&B.state?(q=B.state.status)!==42&&q!==69&&q!==73&&q!==91&&q!==103&&q!==D&&q!==666?z(B,F):(B.state=null,q===D?z(B,-3):0):F},h.deflateSetDictionary=function(B,q){var O,N,U,X,Z,G,J,ne,ie=q.length;if(!B||!B.state||(X=(O=B.state).wrap)===2||X===1&&O.status!==42||O.lookahead)return F;for(X===1&&(B.adler=x(B.adler,q,ie,0)),O.wrap=0,ie>=O.w_size&&(X===0&&(V(O.head),O.strstart=0,O.block_start=0,O.insert=0),ne=new b.Buf8(O.w_size),b.arraySet(ne,q,ie-O.w_size,O.w_size,0),q=ne,ie=O.w_size),Z=B.avail_in,G=B.next_in,J=B.input,B.avail_in=ie,B.next_in=0,B.input=q,y(O);O.lookahead>=3;){for(N=O.strstart,U=O.lookahead-2;O.ins_h=(O.ins_h<<O.hash_shift^O.window[N+3-1])&O.hash_mask,O.prev[N&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=N,N++,--U;);O.strstart=N,O.lookahead=2,y(O)}return O.strstart+=O.lookahead,O.block_start=O.strstart,O.insert=O.lookahead,O.lookahead=0,O.match_length=O.prev_length=2,O.match_available=0,B.next_in=G,B.input=J,B.avail_in=Z,O.wrap=X,0},h.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(a,f,h){f.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(a,f,h){f.exports=function(d,b){var m,x,k,R,F,L,j,D,z,$,V,T,M,S,v,w,y,_,C,I,P,H,W,K,B;m=d.state,x=d.next_in,K=d.input,k=x+(d.avail_in-5),R=d.next_out,B=d.output,F=R-(b-d.avail_out),L=R+(d.avail_out-257),j=m.dmax,D=m.wsize,z=m.whave,$=m.wnext,V=m.window,T=m.hold,M=m.bits,S=m.lencode,v=m.distcode,w=(1<<m.lenbits)-1,y=(1<<m.distbits)-1;e:do{M<15&&(T+=K[x++]<<M,M+=8,T+=K[x++]<<M,M+=8),_=S[T&w];t:for(;;){if(T>>>=C=_>>>24,M-=C,(C=_>>>16&255)==0)B[R++]=65535&_;else{if(!(16&C)){if(!(64&C)){_=S[(65535&_)+(T&(1<<C)-1)];continue t}if(32&C){m.mode=12;break e}d.msg="invalid literal/length code",m.mode=30;break e}I=65535&_,(C&=15)&&(M<C&&(T+=K[x++]<<M,M+=8),I+=T&(1<<C)-1,T>>>=C,M-=C),M<15&&(T+=K[x++]<<M,M+=8,T+=K[x++]<<M,M+=8),_=v[T&y];r:for(;;){if(T>>>=C=_>>>24,M-=C,!(16&(C=_>>>16&255))){if(!(64&C)){_=v[(65535&_)+(T&(1<<C)-1)];continue r}d.msg="invalid distance code",m.mode=30;break e}if(P=65535&_,M<(C&=15)&&(T+=K[x++]<<M,(M+=8)<C&&(T+=K[x++]<<M,M+=8)),j<(P+=T&(1<<C)-1)){d.msg="invalid distance too far back",m.mode=30;break e}if(T>>>=C,M-=C,(C=R-F)<P){if(z<(C=P-C)&&m.sane){d.msg="invalid distance too far back",m.mode=30;break e}if(W=V,(H=0)===$){if(H+=D-C,C<I){for(I-=C;B[R++]=V[H++],--C;);H=R-P,W=B}}else if($<C){if(H+=D+$-C,(C-=$)<I){for(I-=C;B[R++]=V[H++],--C;);if(H=0,$<I){for(I-=C=$;B[R++]=V[H++],--C;);H=R-P,W=B}}}else if(H+=$-C,C<I){for(I-=C;B[R++]=V[H++],--C;);H=R-P,W=B}for(;2<I;)B[R++]=W[H++],B[R++]=W[H++],B[R++]=W[H++],I-=3;I&&(B[R++]=W[H++],1<I&&(B[R++]=W[H++]))}else{for(H=R-P;B[R++]=B[H++],B[R++]=B[H++],B[R++]=B[H++],2<(I-=3););I&&(B[R++]=B[H++],1<I&&(B[R++]=B[H++]))}break}}break}}while(x<k&&R<L);x-=I=M>>3,T&=(1<<(M-=I<<3))-1,d.next_in=x,d.next_out=R,d.avail_in=x<k?k-x+5:5-(x-k),d.avail_out=R<L?L-R+257:257-(R-L),m.hold=T,m.bits=M}},{}],49:[function(a,f,h){var d=a("../utils/common"),b=a("./adler32"),m=a("./crc32"),x=a("./inffast"),k=a("./inftrees"),R=-2;function F(w){return(w>>>24&255)+(w>>>8&65280)+((65280&w)<<8)+((255&w)<<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 d.Buf16(320),this.work=new d.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function j(w){var y;return w&&w.state?(y=w.state,w.total_in=w.total_out=y.total=0,w.msg="",y.wrap&&(w.adler=1&y.wrap),y.mode=1,y.last=0,y.havedict=0,y.dmax=32768,y.head=null,y.hold=0,y.bits=0,y.lencode=y.lendyn=new d.Buf32(852),y.distcode=y.distdyn=new d.Buf32(592),y.sane=1,y.back=-1,0):R}function D(w){var y;return w&&w.state?((y=w.state).wsize=0,y.whave=0,y.wnext=0,j(w)):R}function z(w,y){var _,C;return w&&w.state?(C=w.state,y<0?(_=0,y=-y):(_=1+(y>>4),y<48&&(y&=15)),y&&(y<8||15<y)?R:(C.window!==null&&C.wbits!==y&&(C.window=null),C.wrap=_,C.wbits=y,D(w))):R}function $(w,y){var _,C;return w?(C=new L,(w.state=C).window=null,(_=z(w,y))!==0&&(w.state=null),_):R}var V,T,M=!0;function S(w){if(M){var y;for(V=new d.Buf32(512),T=new d.Buf32(32),y=0;y<144;)w.lens[y++]=8;for(;y<256;)w.lens[y++]=9;for(;y<280;)w.lens[y++]=7;for(;y<288;)w.lens[y++]=8;for(k(1,w.lens,0,288,V,0,w.work,{bits:9}),y=0;y<32;)w.lens[y++]=5;k(2,w.lens,0,32,T,0,w.work,{bits:5}),M=!1}w.lencode=V,w.lenbits=9,w.distcode=T,w.distbits=5}function v(w,y,_,C){var I,P=w.state;return P.window===null&&(P.wsize=1<<P.wbits,P.wnext=0,P.whave=0,P.window=new d.Buf8(P.wsize)),C>=P.wsize?(d.arraySet(P.window,y,_-P.wsize,P.wsize,0),P.wnext=0,P.whave=P.wsize):(C<(I=P.wsize-P.wnext)&&(I=C),d.arraySet(P.window,y,_-C,I,P.wnext),(C-=I)?(d.arraySet(P.window,y,_-C,C,0),P.wnext=C,P.whave=P.wsize):(P.wnext+=I,P.wnext===P.wsize&&(P.wnext=0),P.whave<P.wsize&&(P.whave+=I))),0}h.inflateReset=D,h.inflateReset2=z,h.inflateResetKeep=j,h.inflateInit=function(w){return $(w,15)},h.inflateInit2=$,h.inflate=function(w,y){var _,C,I,P,H,W,K,B,q,O,N,U,X,Z,G,J,ne,ie,Y,te,ee,ae,se,le,ce=0,de=new d.Buf8(4),pe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!w||!w.state||!w.output||!w.input&&w.avail_in!==0)return R;(_=w.state).mode===12&&(_.mode=13),H=w.next_out,I=w.output,K=w.avail_out,P=w.next_in,C=w.input,W=w.avail_in,B=_.hold,q=_.bits,O=W,N=K,ae=0;e:for(;;)switch(_.mode){case 1:if(_.wrap===0){_.mode=13;break}for(;q<16;){if(W===0)break e;W--,B+=C[P++]<<q,q+=8}if(2&_.wrap&&B===35615){de[_.check=0]=255&B,de[1]=B>>>8&255,_.check=m(_.check,de,2,0),q=B=0,_.mode=2;break}if(_.flags=0,_.head&&(_.head.done=!1),!(1&_.wrap)||(((255&B)<<8)+(B>>8))%31){w.msg="incorrect header check",_.mode=30;break}if((15&B)!=8){w.msg="unknown compression method",_.mode=30;break}if(q-=4,ee=8+(15&(B>>>=4)),_.wbits===0)_.wbits=ee;else if(ee>_.wbits){w.msg="invalid window size",_.mode=30;break}_.dmax=1<<ee,w.adler=_.check=1,_.mode=512&B?10:12,q=B=0;break;case 2:for(;q<16;){if(W===0)break e;W--,B+=C[P++]<<q,q+=8}if(_.flags=B,(255&_.flags)!=8){w.msg="unknown compression method",_.mode=30;break}if(57344&_.flags){w.msg="unknown header flags set",_.mode=30;break}_.head&&(_.head.text=B>>8&1),512&_.flags&&(de[0]=255&B,de[1]=B>>>8&255,_.check=m(_.check,de,2,0)),q=B=0,_.mode=3;case 3:for(;q<32;){if(W===0)break e;W--,B+=C[P++]<<q,q+=8}_.head&&(_.head.time=B),512&_.flags&&(de[0]=255&B,de[1]=B>>>8&255,de[2]=B>>>16&255,de[3]=B>>>24&255,_.check=m(_.check,de,4,0)),q=B=0,_.mode=4;case 4:for(;q<16;){if(W===0)break e;W--,B+=C[P++]<<q,q+=8}_.head&&(_.head.xflags=255&B,_.head.os=B>>8),512&_.flags&&(de[0]=255&B,de[1]=B>>>8&255,_.check=m(_.check,de,2,0)),q=B=0,_.mode=5;case 5:if(1024&_.flags){for(;q<16;){if(W===0)break e;W--,B+=C[P++]<<q,q+=8}_.length=B,_.head&&(_.head.extra_len=B),512&_.flags&&(de[0]=255&B,de[1]=B>>>8&255,_.check=m(_.check,de,2,0)),q=B=0}else _.head&&(_.head.extra=null);_.mode=6;case 6:if(1024&_.flags&&(W<(U=_.length)&&(U=W),U&&(_.head&&(ee=_.head.extra_len-_.length,_.head.extra||(_.head.extra=new Array(_.head.extra_len)),d.arraySet(_.head.extra,C,P,U,ee)),512&_.flags&&(_.check=m(_.check,C,U,P)),W-=U,P+=U,_.length-=U),_.length))break e;_.length=0,_.mode=7;case 7:if(2048&_.flags){if(W===0)break e;for(U=0;ee=C[P+U++],_.head&&ee&&_.length<65536&&(_.head.name+=String.fromCharCode(ee)),ee&&U<W;);if(512&_.flags&&(_.check=m(_.check,C,U,P)),W-=U,P+=U,ee)break e}else _.head&&(_.head.name=null);_.length=0,_.mode=8;case 8:if(4096&_.flags){if(W===0)break e;for(U=0;ee=C[P+U++],_.head&&ee&&_.length<65536&&(_.head.comment+=String.fromCharCode(ee)),ee&&U<W;);if(512&_.flags&&(_.check=m(_.check,C,U,P)),W-=U,P+=U,ee)break e}else _.head&&(_.head.comment=null);_.mode=9;case 9:if(512&_.flags){for(;q<16;){if(W===0)break e;W--,B+=C[P++]<<q,q+=8}if(B!==(65535&_.check)){w.msg="header crc mismatch",_.mode=30;break}q=B=0}_.head&&(_.head.hcrc=_.flags>>9&1,_.head.done=!0),w.adler=_.check=0,_.mode=12;break;case 10:for(;q<32;){if(W===0)break e;W--,B+=C[P++]<<q,q+=8}w.adler=_.check=F(B),q=B=0,_.mode=11;case 11:if(_.havedict===0)return w.next_out=H,w.avail_out=K,w.next_in=P,w.avail_in=W,_.hold=B,_.bits=q,2;w.adler=_.check=1,_.mode=12;case 12:if(y===5||y===6)break e;case 13:if(_.last){B>>>=7&q,q-=7&q,_.mode=27;break}for(;q<3;){if(W===0)break e;W--,B+=C[P++]<<q,q+=8}switch(_.last=1&B,q-=1,3&(B>>>=1)){case 0:_.mode=14;break;case 1:if(S(_),_.mode=20,y!==6)break;B>>>=2,q-=2;break e;case 2:_.mode=17;break;case 3:w.msg="invalid block type",_.mode=30}B>>>=2,q-=2;break;case 14:for(B>>>=7&q,q-=7&q;q<32;){if(W===0)break e;W--,B+=C[P++]<<q,q+=8}if((65535&B)!=(B>>>16^65535)){w.msg="invalid stored block lengths",_.mode=30;break}if(_.length=65535&B,q=B=0,_.mode=15,y===6)break e;case 15:_.mode=16;case 16:if(U=_.length){if(W<U&&(U=W),K<U&&(U=K),U===0)break e;d.arraySet(I,C,P,U,H),W-=U,P+=U,K-=U,H+=U,_.length-=U;break}_.mode=12;break;case 17:for(;q<14;){if(W===0)break e;W--,B+=C[P++]<<q,q+=8}if(_.nlen=257+(31&B),B>>>=5,q-=5,_.ndist=1+(31&B),B>>>=5,q-=5,_.ncode=4+(15&B),B>>>=4,q-=4,286<_.nlen||30<_.ndist){w.msg="too many length or distance symbols",_.mode=30;break}_.have=0,_.mode=18;case 18:for(;_.have<_.ncode;){for(;q<3;){if(W===0)break e;W--,B+=C[P++]<<q,q+=8}_.lens[pe[_.have++]]=7&B,B>>>=3,q-=3}for(;_.have<19;)_.lens[pe[_.have++]]=0;if(_.lencode=_.lendyn,_.lenbits=7,se={bits:_.lenbits},ae=k(0,_.lens,0,19,_.lencode,0,_.work,se),_.lenbits=se.bits,ae){w.msg="invalid code lengths set",_.mode=30;break}_.have=0,_.mode=19;case 19:for(;_.have<_.nlen+_.ndist;){for(;J=(ce=_.lencode[B&(1<<_.lenbits)-1])>>>16&255,ne=65535&ce,!((G=ce>>>24)<=q);){if(W===0)break e;W--,B+=C[P++]<<q,q+=8}if(ne<16)B>>>=G,q-=G,_.lens[_.have++]=ne;else{if(ne===16){for(le=G+2;q<le;){if(W===0)break e;W--,B+=C[P++]<<q,q+=8}if(B>>>=G,q-=G,_.have===0){w.msg="invalid bit length repeat",_.mode=30;break}ee=_.lens[_.have-1],U=3+(3&B),B>>>=2,q-=2}else if(ne===17){for(le=G+3;q<le;){if(W===0)break e;W--,B+=C[P++]<<q,q+=8}q-=G,ee=0,U=3+(7&(B>>>=G)),B>>>=3,q-=3}else{for(le=G+7;q<le;){if(W===0)break e;W--,B+=C[P++]<<q,q+=8}q-=G,ee=0,U=11+(127&(B>>>=G)),B>>>=7,q-=7}if(_.have+U>_.nlen+_.ndist){w.msg="invalid bit length repeat",_.mode=30;break}for(;U--;)_.lens[_.have++]=ee}}if(_.mode===30)break;if(_.lens[256]===0){w.msg="invalid code -- missing end-of-block",_.mode=30;break}if(_.lenbits=9,se={bits:_.lenbits},ae=k(1,_.lens,0,_.nlen,_.lencode,0,_.work,se),_.lenbits=se.bits,ae){w.msg="invalid literal/lengths set",_.mode=30;break}if(_.distbits=6,_.distcode=_.distdyn,se={bits:_.distbits},ae=k(2,_.lens,_.nlen,_.ndist,_.distcode,0,_.work,se),_.distbits=se.bits,ae){w.msg="invalid distances set",_.mode=30;break}if(_.mode=20,y===6)break e;case 20:_.mode=21;case 21:if(6<=W&&258<=K){w.next_out=H,w.avail_out=K,w.next_in=P,w.avail_in=W,_.hold=B,_.bits=q,x(w,N),H=w.next_out,I=w.output,K=w.avail_out,P=w.next_in,C=w.input,W=w.avail_in,B=_.hold,q=_.bits,_.mode===12&&(_.back=-1);break}for(_.back=0;J=(ce=_.lencode[B&(1<<_.lenbits)-1])>>>16&255,ne=65535&ce,!((G=ce>>>24)<=q);){if(W===0)break e;W--,B+=C[P++]<<q,q+=8}if(J&&!(240&J)){for(ie=G,Y=J,te=ne;J=(ce=_.lencode[te+((B&(1<<ie+Y)-1)>>ie)])>>>16&255,ne=65535&ce,!(ie+(G=ce>>>24)<=q);){if(W===0)break e;W--,B+=C[P++]<<q,q+=8}B>>>=ie,q-=ie,_.back+=ie}if(B>>>=G,q-=G,_.back+=G,_.length=ne,J===0){_.mode=26;break}if(32&J){_.back=-1,_.mode=12;break}if(64&J){w.msg="invalid literal/length code",_.mode=30;break}_.extra=15&J,_.mode=22;case 22:if(_.extra){for(le=_.extra;q<le;){if(W===0)break e;W--,B+=C[P++]<<q,q+=8}_.length+=B&(1<<_.extra)-1,B>>>=_.extra,q-=_.extra,_.back+=_.extra}_.was=_.length,_.mode=23;case 23:for(;J=(ce=_.distcode[B&(1<<_.distbits)-1])>>>16&255,ne=65535&ce,!((G=ce>>>24)<=q);){if(W===0)break e;W--,B+=C[P++]<<q,q+=8}if(!(240&J)){for(ie=G,Y=J,te=ne;J=(ce=_.distcode[te+((B&(1<<ie+Y)-1)>>ie)])>>>16&255,ne=65535&ce,!(ie+(G=ce>>>24)<=q);){if(W===0)break e;W--,B+=C[P++]<<q,q+=8}B>>>=ie,q-=ie,_.back+=ie}if(B>>>=G,q-=G,_.back+=G,64&J){w.msg="invalid distance code",_.mode=30;break}_.offset=ne,_.extra=15&J,_.mode=24;case 24:if(_.extra){for(le=_.extra;q<le;){if(W===0)break e;W--,B+=C[P++]<<q,q+=8}_.offset+=B&(1<<_.extra)-1,B>>>=_.extra,q-=_.extra,_.back+=_.extra}if(_.offset>_.dmax){w.msg="invalid distance too far back",_.mode=30;break}_.mode=25;case 25:if(K===0)break e;if(U=N-K,_.offset>U){if((U=_.offset-U)>_.whave&&_.sane){w.msg="invalid distance too far back",_.mode=30;break}X=U>_.wnext?(U-=_.wnext,_.wsize-U):_.wnext-U,U>_.length&&(U=_.length),Z=_.window}else Z=I,X=H-_.offset,U=_.length;for(K<U&&(U=K),K-=U,_.length-=U;I[H++]=Z[X++],--U;);_.length===0&&(_.mode=21);break;case 26:if(K===0)break e;I[H++]=_.length,K--,_.mode=21;break;case 27:if(_.wrap){for(;q<32;){if(W===0)break e;W--,B|=C[P++]<<q,q+=8}if(N-=K,w.total_out+=N,_.total+=N,N&&(w.adler=_.check=_.flags?m(_.check,I,N,H-N):b(_.check,I,N,H-N)),N=K,(_.flags?B:F(B))!==_.check){w.msg="incorrect data check",_.mode=30;break}q=B=0}_.mode=28;case 28:if(_.wrap&&_.flags){for(;q<32;){if(W===0)break e;W--,B+=C[P++]<<q,q+=8}if(B!==(4294967295&_.total)){w.msg="incorrect length check",_.mode=30;break}q=B=0}_.mode=29;case 29:ae=1;break e;case 30:ae=-3;break e;case 31:return-4;case 32:default:return R}return w.next_out=H,w.avail_out=K,w.next_in=P,w.avail_in=W,_.hold=B,_.bits=q,(_.wsize||N!==w.avail_out&&_.mode<30&&(_.mode<27||y!==4))&&v(w,w.output,w.next_out,N-w.avail_out)?(_.mode=31,-4):(O-=w.avail_in,N-=w.avail_out,w.total_in+=O,w.total_out+=N,_.total+=N,_.wrap&&N&&(w.adler=_.check=_.flags?m(_.check,I,N,w.next_out-N):b(_.check,I,N,w.next_out-N)),w.data_type=_.bits+(_.last?64:0)+(_.mode===12?128:0)+(_.mode===20||_.mode===15?256:0),(O==0&&N===0||y===4)&&ae===0&&(ae=-5),ae)},h.inflateEnd=function(w){if(!w||!w.state)return R;var y=w.state;return y.window&&(y.window=null),w.state=null,0},h.inflateGetHeader=function(w,y){var _;return w&&w.state&&2&(_=w.state).wrap?((_.head=y).done=!1,0):R},h.inflateSetDictionary=function(w,y){var _,C=y.length;return w&&w.state?(_=w.state).wrap!==0&&_.mode!==11?R:_.mode===11&&b(1,y,C,0)!==_.check?-3:v(w,y,C,C)?(_.mode=31,-4):(_.havedict=1,0):R},h.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(a,f,h){var d=a("../utils/common"),b=[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],m=[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],x=[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],k=[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];f.exports=function(R,F,L,j,D,z,$,V){var T,M,S,v,w,y,_,C,I,P=V.bits,H=0,W=0,K=0,B=0,q=0,O=0,N=0,U=0,X=0,Z=0,G=null,J=0,ne=new d.Buf16(16),ie=new d.Buf16(16),Y=null,te=0;for(H=0;H<=15;H++)ne[H]=0;for(W=0;W<j;W++)ne[F[L+W]]++;for(q=P,B=15;1<=B&&ne[B]===0;B--);if(B<q&&(q=B),B===0)return D[z++]=20971520,D[z++]=20971520,V.bits=1,0;for(K=1;K<B&&ne[K]===0;K++);for(q<K&&(q=K),H=U=1;H<=15;H++)if(U<<=1,(U-=ne[H])<0)return-1;if(0<U&&(R===0||B!==1))return-1;for(ie[1]=0,H=1;H<15;H++)ie[H+1]=ie[H]+ne[H];for(W=0;W<j;W++)F[L+W]!==0&&($[ie[F[L+W]]++]=W);if(y=R===0?(G=Y=$,19):R===1?(G=b,J-=257,Y=m,te-=257,256):(G=x,Y=k,-1),H=K,w=z,N=W=Z=0,S=-1,v=(X=1<<(O=q))-1,R===1&&852<X||R===2&&592<X)return 1;for(;;){for(_=H-N,I=$[W]<y?(C=0,$[W]):$[W]>y?(C=Y[te+$[W]],G[J+$[W]]):(C=96,0),T=1<<H-N,K=M=1<<O;D[w+(Z>>N)+(M-=T)]=_<<24|C<<16|I|0,M!==0;);for(T=1<<H-1;Z&T;)T>>=1;if(T!==0?(Z&=T-1,Z+=T):Z=0,W++,--ne[H]==0){if(H===B)break;H=F[L+$[W]]}if(q<H&&(Z&v)!==S){for(N===0&&(N=q),w+=K,U=1<<(O=H-N);O+N<B&&!((U-=ne[O+N])<=0);)O++,U<<=1;if(X+=1<<O,R===1&&852<X||R===2&&592<X)return 1;D[S=Z&v]=q<<24|O<<16|w-z|0}}return Z!==0&&(D[w+Z]=H-N<<24|64<<16|0),V.bits=q,0}},{"../utils/common":41}],51:[function(a,f,h){f.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(a,f,h){var d=a("../utils/common");function b(Y){for(var te=Y.length;0<=--te;)Y[te]=0}var m=256,x=286,k=30,R=15,F=[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],L=[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],j=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],z=new Array(576);b(z);var $=new Array(60);b($);var V=new Array(512);b(V);var T=new Array(256);b(T);var M=new Array(29);b(M);var S,v,w,y=new Array(k);function _(Y,te,ee,ae,se){this.static_tree=Y,this.extra_bits=te,this.extra_base=ee,this.elems=ae,this.max_length=se,this.has_stree=Y&&Y.length}function C(Y,te){this.dyn_tree=Y,this.max_code=0,this.stat_desc=te}function I(Y){return Y<256?V[Y]:V[256+(Y>>>7)]}function P(Y,te){Y.pending_buf[Y.pending++]=255&te,Y.pending_buf[Y.pending++]=te>>>8&255}function H(Y,te,ee){Y.bi_valid>16-ee?(Y.bi_buf|=te<<Y.bi_valid&65535,P(Y,Y.bi_buf),Y.bi_buf=te>>16-Y.bi_valid,Y.bi_valid+=ee-16):(Y.bi_buf|=te<<Y.bi_valid&65535,Y.bi_valid+=ee)}function W(Y,te,ee){H(Y,ee[2*te],ee[2*te+1])}function K(Y,te){for(var ee=0;ee|=1&Y,Y>>>=1,ee<<=1,0<--te;);return ee>>>1}function B(Y,te,ee){var ae,se,le=new Array(16),ce=0;for(ae=1;ae<=R;ae++)le[ae]=ce=ce+ee[ae-1]<<1;for(se=0;se<=te;se++){var de=Y[2*se+1];de!==0&&(Y[2*se]=K(le[de]++,de))}}function q(Y){var te;for(te=0;te<x;te++)Y.dyn_ltree[2*te]=0;for(te=0;te<k;te++)Y.dyn_dtree[2*te]=0;for(te=0;te<19;te++)Y.bl_tree[2*te]=0;Y.dyn_ltree[512]=1,Y.opt_len=Y.static_len=0,Y.last_lit=Y.matches=0}function O(Y){8<Y.bi_valid?P(Y,Y.bi_buf):0<Y.bi_valid&&(Y.pending_buf[Y.pending++]=Y.bi_buf),Y.bi_buf=0,Y.bi_valid=0}function N(Y,te,ee,ae){var se=2*te,le=2*ee;return Y[se]<Y[le]||Y[se]===Y[le]&&ae[te]<=ae[ee]}function U(Y,te,ee){for(var ae=Y.heap[ee],se=ee<<1;se<=Y.heap_len&&(se<Y.heap_len&&N(te,Y.heap[se+1],Y.heap[se],Y.depth)&&se++,!N(te,ae,Y.heap[se],Y.depth));)Y.heap[ee]=Y.heap[se],ee=se,se<<=1;Y.heap[ee]=ae}function X(Y,te,ee){var ae,se,le,ce,de=0;if(Y.last_lit!==0)for(;ae=Y.pending_buf[Y.d_buf+2*de]<<8|Y.pending_buf[Y.d_buf+2*de+1],se=Y.pending_buf[Y.l_buf+de],de++,ae===0?W(Y,se,te):(W(Y,(le=T[se])+m+1,te),(ce=F[le])!==0&&H(Y,se-=M[le],ce),W(Y,le=I(--ae),ee),(ce=L[le])!==0&&H(Y,ae-=y[le],ce)),de<Y.last_lit;);W(Y,256,te)}function Z(Y,te){var ee,ae,se,le=te.dyn_tree,ce=te.stat_desc.static_tree,de=te.stat_desc.has_stree,pe=te.stat_desc.elems,ke=-1;for(Y.heap_len=0,Y.heap_max=573,ee=0;ee<pe;ee++)le[2*ee]!==0?(Y.heap[++Y.heap_len]=ke=ee,Y.depth[ee]=0):le[2*ee+1]=0;for(;Y.heap_len<2;)le[2*(se=Y.heap[++Y.heap_len]=ke<2?++ke:0)]=1,Y.depth[se]=0,Y.opt_len--,de&&(Y.static_len-=ce[2*se+1]);for(te.max_code=ke,ee=Y.heap_len>>1;1<=ee;ee--)U(Y,le,ee);for(se=pe;ee=Y.heap[1],Y.heap[1]=Y.heap[Y.heap_len--],U(Y,le,1),ae=Y.heap[1],Y.heap[--Y.heap_max]=ee,Y.heap[--Y.heap_max]=ae,le[2*se]=le[2*ee]+le[2*ae],Y.depth[se]=(Y.depth[ee]>=Y.depth[ae]?Y.depth[ee]:Y.depth[ae])+1,le[2*ee+1]=le[2*ae+1]=se,Y.heap[1]=se++,U(Y,le,1),2<=Y.heap_len;);Y.heap[--Y.heap_max]=Y.heap[1],function(Se,ye){var Ie,Re,Ne,je,Ce,be,Te=ye.dyn_tree,Me=ye.max_code,Ee=ye.stat_desc.static_tree,tt=ye.stat_desc.has_stree,ut=ye.stat_desc.extra_bits,Be=ye.stat_desc.extra_base,at=ye.stat_desc.max_length,et=0;for(je=0;je<=R;je++)Se.bl_count[je]=0;for(Te[2*Se.heap[Se.heap_max]+1]=0,Ie=Se.heap_max+1;Ie<573;Ie++)at<(je=Te[2*Te[2*(Re=Se.heap[Ie])+1]+1]+1)&&(je=at,et++),Te[2*Re+1]=je,Me<Re||(Se.bl_count[je]++,Ce=0,Be<=Re&&(Ce=ut[Re-Be]),be=Te[2*Re],Se.opt_len+=be*(je+Ce),tt&&(Se.static_len+=be*(Ee[2*Re+1]+Ce)));if(et!==0){do{for(je=at-1;Se.bl_count[je]===0;)je--;Se.bl_count[je]--,Se.bl_count[je+1]+=2,Se.bl_count[at]--,et-=2}while(0<et);for(je=at;je!==0;je--)for(Re=Se.bl_count[je];Re!==0;)Me<(Ne=Se.heap[--Ie])||(Te[2*Ne+1]!==je&&(Se.opt_len+=(je-Te[2*Ne+1])*Te[2*Ne],Te[2*Ne+1]=je),Re--)}}(Y,te),B(le,ke,Y.bl_count)}function G(Y,te,ee){var ae,se,le=-1,ce=te[1],de=0,pe=7,ke=4;for(ce===0&&(pe=138,ke=3),te[2*(ee+1)+1]=65535,ae=0;ae<=ee;ae++)se=ce,ce=te[2*(ae+1)+1],++de<pe&&se===ce||(de<ke?Y.bl_tree[2*se]+=de:se!==0?(se!==le&&Y.bl_tree[2*se]++,Y.bl_tree[32]++):de<=10?Y.bl_tree[34]++:Y.bl_tree[36]++,le=se,ke=(de=0)===ce?(pe=138,3):se===ce?(pe=6,3):(pe=7,4))}function J(Y,te,ee){var ae,se,le=-1,ce=te[1],de=0,pe=7,ke=4;for(ce===0&&(pe=138,ke=3),ae=0;ae<=ee;ae++)if(se=ce,ce=te[2*(ae+1)+1],!(++de<pe&&se===ce)){if(de<ke)for(;W(Y,se,Y.bl_tree),--de!=0;);else se!==0?(se!==le&&(W(Y,se,Y.bl_tree),de--),W(Y,16,Y.bl_tree),H(Y,de-3,2)):de<=10?(W(Y,17,Y.bl_tree),H(Y,de-3,3)):(W(Y,18,Y.bl_tree),H(Y,de-11,7));le=se,ke=(de=0)===ce?(pe=138,3):se===ce?(pe=6,3):(pe=7,4)}}b(y);var ne=!1;function ie(Y,te,ee,ae){H(Y,0+(ae?1:0),3),function(se,le,ce,de){O(se),P(se,ce),P(se,~ce),d.arraySet(se.pending_buf,se.window,le,ce,se.pending),se.pending+=ce}(Y,te,ee)}h._tr_init=function(Y){ne||(function(){var te,ee,ae,se,le,ce=new Array(16);for(se=ae=0;se<28;se++)for(M[se]=ae,te=0;te<1<<F[se];te++)T[ae++]=se;for(T[ae-1]=se,se=le=0;se<16;se++)for(y[se]=le,te=0;te<1<<L[se];te++)V[le++]=se;for(le>>=7;se<k;se++)for(y[se]=le<<7,te=0;te<1<<L[se]-7;te++)V[256+le++]=se;for(ee=0;ee<=R;ee++)ce[ee]=0;for(te=0;te<=143;)z[2*te+1]=8,te++,ce[8]++;for(;te<=255;)z[2*te+1]=9,te++,ce[9]++;for(;te<=279;)z[2*te+1]=7,te++,ce[7]++;for(;te<=287;)z[2*te+1]=8,te++,ce[8]++;for(B(z,287,ce),te=0;te<k;te++)$[2*te+1]=5,$[2*te]=K(te,5);S=new _(z,F,257,x,R),v=new _($,L,0,k,R),w=new _(new Array(0),j,0,19,7)}(),ne=!0),Y.l_desc=new C(Y.dyn_ltree,S),Y.d_desc=new C(Y.dyn_dtree,v),Y.bl_desc=new C(Y.bl_tree,w),Y.bi_buf=0,Y.bi_valid=0,q(Y)},h._tr_stored_block=ie,h._tr_flush_block=function(Y,te,ee,ae){var se,le,ce=0;0<Y.level?(Y.strm.data_type===2&&(Y.strm.data_type=function(de){var pe,ke=4093624447;for(pe=0;pe<=31;pe++,ke>>>=1)if(1&ke&&de.dyn_ltree[2*pe]!==0)return 0;if(de.dyn_ltree[18]!==0||de.dyn_ltree[20]!==0||de.dyn_ltree[26]!==0)return 1;for(pe=32;pe<m;pe++)if(de.dyn_ltree[2*pe]!==0)return 1;return 0}(Y)),Z(Y,Y.l_desc),Z(Y,Y.d_desc),ce=function(de){var pe;for(G(de,de.dyn_ltree,de.l_desc.max_code),G(de,de.dyn_dtree,de.d_desc.max_code),Z(de,de.bl_desc),pe=18;3<=pe&&de.bl_tree[2*D[pe]+1]===0;pe--);return de.opt_len+=3*(pe+1)+5+5+4,pe}(Y),se=Y.opt_len+3+7>>>3,(le=Y.static_len+3+7>>>3)<=se&&(se=le)):se=le=ee+5,ee+4<=se&&te!==-1?ie(Y,te,ee,ae):Y.strategy===4||le===se?(H(Y,2+(ae?1:0),3),X(Y,z,$)):(H(Y,4+(ae?1:0),3),function(de,pe,ke,Se){var ye;for(H(de,pe-257,5),H(de,ke-1,5),H(de,Se-4,4),ye=0;ye<Se;ye++)H(de,de.bl_tree[2*D[ye]+1],3);J(de,de.dyn_ltree,pe-1),J(de,de.dyn_dtree,ke-1)}(Y,Y.l_desc.max_code+1,Y.d_desc.max_code+1,ce+1),X(Y,Y.dyn_ltree,Y.dyn_dtree)),q(Y),ae&&O(Y)},h._tr_tally=function(Y,te,ee){return Y.pending_buf[Y.d_buf+2*Y.last_lit]=te>>>8&255,Y.pending_buf[Y.d_buf+2*Y.last_lit+1]=255&te,Y.pending_buf[Y.l_buf+Y.last_lit]=255&ee,Y.last_lit++,te===0?Y.dyn_ltree[2*ee]++:(Y.matches++,te--,Y.dyn_ltree[2*(T[ee]+m+1)]++,Y.dyn_dtree[2*I(te)]++),Y.last_lit===Y.lit_bufsize-1},h._tr_align=function(Y){H(Y,2,3),W(Y,256,z),function(te){te.bi_valid===16?(P(te,te.bi_buf),te.bi_buf=0,te.bi_valid=0):8<=te.bi_valid&&(te.pending_buf[te.pending++]=255&te.bi_buf,te.bi_buf>>=8,te.bi_valid-=8)}(Y)}},{"../utils/common":41}],53:[function(a,f,h){f.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(a,f,h){(function(d){(function(b,m){if(!b.setImmediate){var x,k,R,F,L=1,j={},D=!1,z=b.document,$=Object.getPrototypeOf&&Object.getPrototypeOf(b);$=$&&$.setTimeout?$:b,x={}.toString.call(b.process)==="[object process]"?function(S){u.nextTick(function(){T(S)})}:function(){if(b.postMessage&&!b.importScripts){var S=!0,v=b.onmessage;return b.onmessage=function(){S=!1},b.postMessage("","*"),b.onmessage=v,S}}()?(F="setImmediate$"+Math.random()+"$",b.addEventListener?b.addEventListener("message",M,!1):b.attachEvent("onmessage",M),function(S){b.postMessage(F+S,"*")}):b.MessageChannel?((R=new MessageChannel).port1.onmessage=function(S){T(S.data)},function(S){R.port2.postMessage(S)}):z&&"onreadystatechange"in z.createElement("script")?(k=z.documentElement,function(S){var v=z.createElement("script");v.onreadystatechange=function(){T(S),v.onreadystatechange=null,k.removeChild(v),v=null},k.appendChild(v)}):function(S){setTimeout(T,0,S)},$.setImmediate=function(S){typeof S!="function"&&(S=new Function(""+S));for(var v=new Array(arguments.length-1),w=0;w<v.length;w++)v[w]=arguments[w+1];var y={callback:S,args:v};return j[L]=y,x(L),L++},$.clearImmediate=V}function V(S){delete j[S]}function T(S){if(D)setTimeout(T,0,S);else{var v=j[S];if(v){D=!0;try{(function(w){var y=w.callback,_=w.args;switch(_.length){case 0:y();break;case 1:y(_[0]);break;case 2:y(_[0],_[1]);break;case 3:y(_[0],_[1],_[2]);break;default:y.apply(void 0,_)}})(v)}finally{V(S),D=!1}}}}function M(S){S.source===b&&typeof S.data=="string"&&S.data.indexOf(F)===0&&T(+S.data.slice(F.length))}})(typeof self>"u"?d===void 0?this:d:self)}).call(this,i!==void 0?i:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})}).call(this)}).call(this,e("_process"),typeof Ye<"u"?Ye:typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate)},{_process:467,buffer:220,timers:523}],442:[function(e,p,g){(function(u){(function(){var i=/[\\^$.*+?()[\]{}|]/g,o=RegExp(i.source),r=typeof u=="object"&&u&&u.Object===Object&&u,t=typeof self=="object"&&self&&self.Object===Object&&self,n=r||t||Function("return this")(),c=Object.prototype.toString,s=n.Symbol,a=s?s.prototype:void 0,f=a?a.toString:void 0;function h(d){if(typeof d=="string")return d;if(function(m){return typeof m=="symbol"||function(x){return!!x&&typeof x=="object"}(m)&&c.call(m)=="[object Symbol]"}(d))return f?f.call(d):"";var b=d+"";return b=="0"&&1/d==-1/0?"-0":b}p.exports=function(d){var b;return(d=(b=d)==null?"":h(b))&&o.test(d)?d.replace(i,"\\$&"):d}}).call(this)}).call(this,typeof Ye<"u"?Ye:typeof self<"u"?self:typeof window<"u"?window:{})},{}],443:[function(e,p,g){(function(u){(function(){var i="[object Arguments]",o="[object Map]",r="[object Object]",t="[object Set]",n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,s=/^\./,a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,f=/\\(\\)?/g,h=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,b={};b["[object Float32Array]"]=b["[object Float64Array]"]=b["[object Int8Array]"]=b["[object Int16Array]"]=b["[object Int32Array]"]=b["[object Uint8Array]"]=b["[object Uint8ClampedArray]"]=b["[object Uint16Array]"]=b["[object Uint32Array]"]=!0,b[i]=b["[object Array]"]=b["[object ArrayBuffer]"]=b["[object Boolean]"]=b["[object DataView]"]=b["[object Date]"]=b["[object Error]"]=b["[object Function]"]=b[o]=b["[object Number]"]=b[r]=b["[object RegExp]"]=b[t]=b["[object String]"]=b["[object WeakMap]"]=!1;var m=typeof u=="object"&&u&&u.Object===Object&&u,x=typeof self=="object"&&self&&self.Object===Object&&self,k=m||x||Function("return this")(),R=typeof g=="object"&&g&&!g.nodeType&&g,F=R&&typeof p=="object"&&p&&!p.nodeType&&p,L=F&&F.exports===R&&m.process,j=function(){try{return L&&L.binding("util")}catch{}}(),D=j&&j.isTypedArray;function z(Q,ue,he,me){for(var Ae=-1,ve=Q?Q.length:0;++Ae<ve;){var _e=Q[Ae];ue(me,_e,he(_e),Q)}return me}function $(Q,ue){for(var he=-1,me=Q?Q.length:0;++he<me;)if(ue(Q[he],he,Q))return!0;return!1}function V(Q){var ue=!1;if(Q!=null&&typeof Q.toString!="function")try{ue=!!(Q+"")}catch{}return ue}function T(Q){var ue=-1,he=Array(Q.size);return Q.forEach(function(me,Ae){he[++ue]=[Ae,me]}),he}function M(Q){var ue=-1,he=Array(Q.size);return Q.forEach(function(me){he[++ue]=me}),he}var S,v,w,y=Array.prototype,_=Function.prototype,C=Object.prototype,I=k["__core-js_shared__"],P=(S=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+S:"",H=_.toString,W=C.hasOwnProperty,K=C.toString,B=RegExp("^"+H.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q=k.Symbol,O=k.Uint8Array,N=C.propertyIsEnumerable,U=y.splice,X=(v=Object.keys,w=Object,function(Q){return v(w(Q))}),Z=Le(k,"DataView"),G=Le(k,"Map"),J=Le(k,"Promise"),ne=Le(k,"Set"),ie=Le(k,"WeakMap"),Y=Le(Object,"create"),te=oe(Z),ee=oe(G),ae=oe(J),se=oe(ne),le=oe(ie),ce=q?q.prototype:void 0,de=ce?ce.valueOf:void 0,pe=ce?ce.toString:void 0;function ke(Q){var ue=-1,he=Q?Q.length:0;for(this.clear();++ue<he;){var me=Q[ue];this.set(me[0],me[1])}}function Se(Q){var ue=-1,he=Q?Q.length:0;for(this.clear();++ue<he;){var me=Q[ue];this.set(me[0],me[1])}}function ye(Q){var ue=-1,he=Q?Q.length:0;for(this.clear();++ue<he;){var me=Q[ue];this.set(me[0],me[1])}}function Ie(Q){var ue=-1,he=Q?Q.length:0;for(this.__data__=new ye;++ue<he;)this.add(Q[ue])}function Re(Q){this.__data__=new Se(Q)}function Ne(Q,ue){var he=De(Q)||$e(Q)?function(_e,rt){for(var Ge=-1,Je=Array(_e);++Ge<_e;)Je[Ge]=rt(Ge);return Je}(Q.length,String):[],me=he.length,Ae=!!me;for(var ve in Q)!W.call(Q,ve)||Ae&&(ve=="length"||ht(ve,me))||he.push(ve);return he}function je(Q,ue){for(var he=Q.length;he--;)if(xe(Q[he][0],ue))return he;return-1}function Ce(Q,ue,he,me){return Te(Q,function(Ae,ve,_e){ue(me,Ae,he(Ae),_e)}),me}ke.prototype.clear=function(){this.__data__=Y?Y(null):{}},ke.prototype.delete=function(Q){return this.has(Q)&&delete this.__data__[Q]},ke.prototype.get=function(Q){var ue=this.__data__;if(Y){var he=ue[Q];return he==="__lodash_hash_undefined__"?void 0:he}return W.call(ue,Q)?ue[Q]:void 0},ke.prototype.has=function(Q){var ue=this.__data__;return Y?ue[Q]!==void 0:W.call(ue,Q)},ke.prototype.set=function(Q,ue){return this.__data__[Q]=Y&&ue===void 0?"__lodash_hash_undefined__":ue,this},Se.prototype.clear=function(){this.__data__=[]},Se.prototype.delete=function(Q){var ue=this.__data__,he=je(ue,Q);return!(he<0)&&(he==ue.length-1?ue.pop():U.call(ue,he,1),!0)},Se.prototype.get=function(Q){var ue=this.__data__,he=je(ue,Q);return he<0?void 0:ue[he][1]},Se.prototype.has=function(Q){return je(this.__data__,Q)>-1},Se.prototype.set=function(Q,ue){var he=this.__data__,me=je(he,Q);return me<0?he.push([Q,ue]):he[me][1]=ue,this},ye.prototype.clear=function(){this.__data__={hash:new ke,map:new(G||Se),string:new ke}},ye.prototype.delete=function(Q){return ot(this,Q).delete(Q)},ye.prototype.get=function(Q){return ot(this,Q).get(Q)},ye.prototype.has=function(Q){return ot(this,Q).has(Q)},ye.prototype.set=function(Q,ue){return ot(this,Q).set(Q,ue),this},Ie.prototype.add=Ie.prototype.push=function(Q){return this.__data__.set(Q,"__lodash_hash_undefined__"),this},Ie.prototype.has=function(Q){return this.__data__.has(Q)},Re.prototype.clear=function(){this.__data__=new Se},Re.prototype.delete=function(Q){return this.__data__.delete(Q)},Re.prototype.get=function(Q){return this.__data__.get(Q)},Re.prototype.has=function(Q){return this.__data__.has(Q)},Re.prototype.set=function(Q,ue){var he=this.__data__;if(he instanceof Se){var me=he.__data__;if(!G||me.length<199)return me.push([Q,ue]),this;he=this.__data__=new ye(me)}return he.set(Q,ue),this};var be,Te=(be=function(Q,ue){return Q&&Me(Q,ue,Tt)},function(Q,ue){if(Q==null)return Q;if(!Pe(Q))return be(Q,ue);for(var he=Q.length,me=-1,Ae=Object(Q);++me<he&&ue(Ae[me],me,Ae)!==!1;);return Q}),Me=function(Q){return function(ue,he,me){for(var Ae=-1,ve=Object(ue),_e=me(ue),rt=_e.length;rt--;){var Ge=_e[++Ae];if(he(ve[Ge],Ge,ve)===!1)break}return ue}}();function Ee(Q,ue){for(var he=0,me=(ue=ze(ue,Q)?[ue]:We(ue)).length;Q!=null&&he<me;)Q=Q[re(ue[he++])];return he&&he==me?Q:void 0}function tt(Q,ue){return Q!=null&&ue in Object(Q)}function ut(Q,ue,he,me,Ae){return Q===ue||(Q==null||ue==null||!Ze(Q)&&!wt(ue)?Q!=Q&&ue!=ue:function(ve,_e,rt,Ge,Je,Ve){var ct=De(ve),dt=De(_e),mt="[object Array]",yt="[object Array]";ct||(mt=(mt=nt(ve))==i?r:mt),dt||(yt=(yt=nt(_e))==i?r:yt);var At=mt==r&&!V(ve),It=yt==r&&!V(_e),Ut=mt==yt;if(Ut&&!At)return Ve||(Ve=new Re),ct||Ct(ve)?gt(ve,_e,rt,Ge,Je,Ve):function(ft,st,sr,pr,Jr,Ft,Zt){switch(sr){case"[object DataView]":if(ft.byteLength!=st.byteLength||ft.byteOffset!=st.byteOffset)return!1;ft=ft.buffer,st=st.buffer;case"[object ArrayBuffer]":return!(ft.byteLength!=st.byteLength||!pr(new O(ft),new O(st)));case"[object Boolean]":case"[object Date]":case"[object Number]":return xe(+ft,+st);case"[object Error]":return ft.name==st.name&&ft.message==st.message;case"[object RegExp]":case"[object String]":return ft==st+"";case o:var ar=T;case t:var Pr=2&Ft;if(ar||(ar=M),ft.size!=st.size&&!Pr)return!1;var Qr=Zt.get(ft);if(Qr)return Qr==st;Ft|=1,Zt.set(ft,st);var Cr=gt(ar(ft),ar(st),pr,Jr,Ft,Zt);return Zt.delete(ft),Cr;case"[object Symbol]":if(de)return de.call(ft)==de.call(st)}return!1}(ve,_e,mt,rt,Ge,Je,Ve);if(!(2&Je)){var hr=At&&W.call(ve,"__wrapped__"),xr=It&&W.call(_e,"__wrapped__");if(hr||xr){var Sr=hr?ve.value():ve,kr=xr?_e.value():_e;return Ve||(Ve=new Re),rt(Sr,kr,Ge,Je,Ve)}}return Ut?(Ve||(Ve=new Re),function(ft,st,sr,pr,Jr,Ft){var Zt=2&Jr,ar=Tt(ft),Pr=ar.length,Qr=Tt(st).length;if(Pr!=Qr&&!Zt)return!1;for(var Cr=Pr;Cr--;){var or=ar[Cr];if(!(Zt?or in st:W.call(st,or)))return!1}var $i=Ft.get(ft);if($i&&Ft.get(st))return $i==st;var en=!0;Ft.set(ft,st),Ft.set(st,ft);for(var qn=Zt;++Cr<Pr;){or=ar[Cr];var tn=ft[or],rn=st[or];if(pr)var Ui=Zt?pr(rn,tn,or,st,ft,Ft):pr(tn,rn,or,ft,st,Ft);if(!(Ui===void 0?tn===rn||sr(tn,rn,pr,Jr,Ft):Ui)){en=!1;break}qn||(qn=or=="constructor")}if(en&&!qn){var nn=ft.constructor,sn=st.constructor;nn==sn||!("constructor"in ft)||!("constructor"in st)||typeof nn=="function"&&nn instanceof nn&&typeof sn=="function"&&sn instanceof sn||(en=!1)}return Ft.delete(ft),Ft.delete(st),en}(ve,_e,rt,Ge,Je,Ve)):!1}(Q,ue,ut,he,me,Ae))}function Be(Q){return!(!Ze(Q)||function(ue){return!!P&&P in ue}(Q))&&(Xe(Q)||V(Q)?B:h).test(oe(Q))}function at(Q){return typeof Q=="function"?Q:Q==null?Pt:typeof Q=="object"?De(Q)?function(me,Ae){return ze(me)&&lt(Ae)?pt(re(me),Ae):function(ve){var _e=function(rt,Ge,Je){var Ve=rt==null?void 0:Ee(rt,Ge);return Ve===void 0?Je:Ve}(ve,me);return _e===void 0&&_e===Ae?function(rt,Ge){return rt!=null&&function(Je,Ve,ct){Ve=ze(Ve,Je)?[Ve]:We(Ve);for(var dt,mt=-1,yt=Ve.length;++mt<yt;){var At=re(Ve[mt]);if(!(dt=Je!=null&&ct(Je,At)))break;Je=Je[At]}return dt||!!(yt=Je?Je.length:0)&&Ue(yt)&&ht(At,yt)&&(De(Je)||$e(Je))}(rt,Ge,tt)}(ve,me):ut(Ae,_e,void 0,3)}}(Q[0],Q[1]):function(me){var Ae=function(ve){for(var _e=Tt(ve),rt=_e.length;rt--;){var Ge=_e[rt],Je=ve[Ge];_e[rt]=[Ge,Je,lt(Je)]}return _e}(me);return Ae.length==1&&Ae[0][2]?pt(Ae[0][0],Ae[0][1]):function(ve){return ve===me||function(_e,rt,Ge,Je){var Ve=Ge.length,ct=Ve;if(_e==null)return!ct;for(_e=Object(_e);Ve--;){var dt=Ge[Ve];if(dt[2]?dt[1]!==_e[dt[0]]:!(dt[0]in _e))return!1}for(;++Ve<ct;){var mt=(dt=Ge[Ve])[0],yt=_e[mt],At=dt[1];if(dt[2]){if(yt===void 0&&!(mt in _e))return!1}else{var It=new Re,Ut;if(!(Ut===void 0?ut(At,yt,Je,3,It):Ut))return!1}}return!0}(ve,me,Ae)}}(Q):ze(ue=Q)?(he=re(ue),function(me){return me==null?void 0:me[he]}):function(me){return function(Ae){return Ee(Ae,me)}}(ue);var ue,he}function et(Q){if(he=(ue=Q)&&ue.constructor,me=typeof he=="function"&&he.prototype||C,ue!==me)return X(Q);var ue,he,me,Ae=[];for(var ve in Object(Q))W.call(Q,ve)&&ve!="constructor"&&Ae.push(ve);return Ae}function We(Q){return De(Q)?Q:Ke(Q)}function gt(Q,ue,he,me,Ae,ve){var _e=2&Ae,rt=Q.length,Ge=ue.length;if(rt!=Ge&&!(_e&&Ge>rt))return!1;var Je=ve.get(Q);if(Je&&ve.get(ue))return Je==ue;var Ve=-1,ct=!0,dt=1&Ae?new Ie:void 0;for(ve.set(Q,ue),ve.set(ue,Q);++Ve<rt;){var mt=Q[Ve],yt=ue[Ve];if(me)var At=_e?me(yt,mt,Ve,ue,Q,ve):me(mt,yt,Ve,Q,ue,ve);if(At!==void 0){if(At)continue;ct=!1;break}if(dt){if(!$(ue,function(It,Ut){if(!dt.has(Ut)&&(mt===It||he(mt,It,me,Ae,ve)))return dt.add(Ut)})){ct=!1;break}}else if(mt!==yt&&!he(mt,yt,me,Ae,ve)){ct=!1;break}}return ve.delete(Q),ve.delete(ue),ct}function ot(Q,ue){var he,me,Ae=Q.__data__;return((me=typeof(he=ue))=="string"||me=="number"||me=="symbol"||me=="boolean"?he!=="__proto__":he===null)?Ae[typeof ue=="string"?"string":"hash"]:Ae.map}function Le(Q,ue){var he=function(me,Ae){return me==null?void 0:me[Ae]}(Q,ue);return Be(he)?he:void 0}var nt=function(Q){return K.call(Q)};function ht(Q,ue){return!!(ue=ue??9007199254740991)&&(typeof Q=="number"||d.test(Q))&&Q>-1&&Q%1==0&&Q<ue}function ze(Q,ue){if(De(Q))return!1;var he=typeof Q;return!(he!="number"&&he!="symbol"&&he!="boolean"&&Q!=null&&!bt(Q))||c.test(Q)||!n.test(Q)||ue!=null&&Q in Object(ue)}function lt(Q){return Q==Q&&!Ze(Q)}function pt(Q,ue){return function(he){return he!=null&&he[Q]===ue&&(ue!==void 0||Q in Object(he))}}(Z&&nt(new Z(new ArrayBuffer(1)))!="[object DataView]"||G&&nt(new G)!=o||J&&nt(J.resolve())!="[object Promise]"||ne&&nt(new ne)!=t||ie&&nt(new ie)!="[object WeakMap]")&&(nt=function(Q){var ue=K.call(Q),he=ue==r?Q.constructor:void 0,me=he?oe(he):void 0;if(me)switch(me){case te:return"[object DataView]";case ee:return o;case ae:return"[object Promise]";case se:return t;case le:return"[object WeakMap]"}return ue});var Ke=Fe(function(Q){var ue;Q=(ue=Q)==null?"":function(me){if(typeof me=="string")return me;if(bt(me))return pe?pe.call(me):"";var Ae=me+"";return Ae=="0"&&1/me==-1/0?"-0":Ae}(ue);var he=[];return s.test(Q)&&he.push(""),Q.replace(a,function(me,Ae,ve,_e){he.push(ve?_e.replace(f,"$1"):Ae||me)}),he});function re(Q){if(typeof Q=="string"||bt(Q))return Q;var ue=Q+"";return ue=="0"&&1/Q==-1/0?"-0":ue}function oe(Q){if(Q!=null){try{return H.call(Q)}catch{}try{return Q+""}catch{}}return""}var fe,we=(fe=function(Q,ue,he){W.call(Q,he)?Q[he].push(ue):Q[he]=[ue]},function(Q,ue){var he=De(Q)?z:Ce,me={};return he(Q,fe,at(ue),me)});function Fe(Q,ue){if(typeof Q!="function"||ue&&typeof ue!="function")throw new TypeError("Expected a function");var he=function(){var me=arguments,Ae=ue?ue.apply(this,me):me[0],ve=he.cache;if(ve.has(Ae))return ve.get(Ae);var _e=Q.apply(this,me);return he.cache=ve.set(Ae,_e),_e};return he.cache=new(Fe.Cache||ye),he}function xe(Q,ue){return Q===ue||Q!=Q&&ue!=ue}function $e(Q){return function(ue){return wt(ue)&&Pe(ue)}(Q)&&W.call(Q,"callee")&&(!N.call(Q,"callee")||K.call(Q)==i)}Fe.Cache=ye;var De=Array.isArray;function Pe(Q){return Q!=null&&Ue(Q.length)&&!Xe(Q)}function Xe(Q){var ue=Ze(Q)?K.call(Q):"";return ue=="[object Function]"||ue=="[object GeneratorFunction]"}function Ue(Q){return typeof Q=="number"&&Q>-1&&Q%1==0&&Q<=9007199254740991}function Ze(Q){var ue=typeof Q;return!!Q&&(ue=="object"||ue=="function")}function wt(Q){return!!Q&&typeof Q=="object"}function bt(Q){return typeof Q=="symbol"||wt(Q)&&K.call(Q)=="[object Symbol]"}var Ct=D?function(Q){return function(ue){return Q(ue)}}(D):function(Q){return wt(Q)&&Ue(Q.length)&&!!b[K.call(Q)]};function Tt(Q){return Pe(Q)?Ne(Q):et(Q)}function Pt(Q){return Q}p.exports=we}).call(this)}).call(this,typeof Ye<"u"?Ye:typeof self<"u"?self:typeof window<"u"?window:{})},{}],444:[function(e,p,g){var u=Object.prototype.toString;p.exports=function(i){return i===!0||i===!1||function(o){return!!o&&typeof o=="object"}(i)&&u.call(i)=="[object Boolean]"}},{}],445:[function(e,p,g){(function(u){(function(){var i="[object Arguments]",o="[object Map]",r="[object Object]",t="[object Set]",n=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s[i]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s[o]=s["[object Number]"]=s[r]=s["[object RegExp]"]=s[t]=s["[object String]"]=s["[object WeakMap]"]=!1;var a=typeof u=="object"&&u&&u.Object===Object&&u,f=typeof self=="object"&&self&&self.Object===Object&&self,h=a||f||Function("return this")(),d=typeof g=="object"&&g&&!g.nodeType&&g,b=d&&typeof p=="object"&&p&&!p.nodeType&&p,m=b&&b.exports===d,x=m&&a.process,k=function(){try{return x&&x.binding&&x.binding("util")}catch{}}(),R=k&&k.isTypedArray;function F(re,oe){for(var fe=-1,we=re==null?0:re.length;++fe<we;)if(oe(re[fe],fe,re))return!0;return!1}function L(re){var oe=-1,fe=Array(re.size);return re.forEach(function(we,Fe){fe[++oe]=[Fe,we]}),fe}function j(re){var oe=-1,fe=Array(re.size);return re.forEach(function(we){fe[++oe]=we}),fe}var D,z,$,V=Array.prototype,T=Function.prototype,M=Object.prototype,S=h["__core-js_shared__"],v=T.toString,w=M.hasOwnProperty,y=(D=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||""))?"Symbol(src)_1."+D:"",_=M.toString,C=RegExp("^"+v.call(w).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),I=m?h.Buffer:void 0,P=h.Symbol,H=h.Uint8Array,W=M.propertyIsEnumerable,K=V.splice,B=P?P.toStringTag:void 0,q=Object.getOwnPropertySymbols,O=I?I.isBuffer:void 0,N=(z=Object.keys,$=Object,function(re){return z($(re))}),U=tt(h,"DataView"),X=tt(h,"Map"),Z=tt(h,"Promise"),G=tt(h,"Set"),J=tt(h,"WeakMap"),ne=tt(Object,"create"),ie=et(U),Y=et(X),te=et(Z),ee=et(G),ae=et(J),se=P?P.prototype:void 0,le=se?se.valueOf:void 0;function ce(re){var oe=-1,fe=re==null?0:re.length;for(this.clear();++oe<fe;){var we=re[oe];this.set(we[0],we[1])}}function de(re){var oe=-1,fe=re==null?0:re.length;for(this.clear();++oe<fe;){var we=re[oe];this.set(we[0],we[1])}}function pe(re){var oe=-1,fe=re==null?0:re.length;for(this.clear();++oe<fe;){var we=re[oe];this.set(we[0],we[1])}}function ke(re){var oe=-1,fe=re==null?0:re.length;for(this.__data__=new pe;++oe<fe;)this.add(re[oe])}function Se(re){var oe=this.__data__=new de(re);this.size=oe.size}function ye(re,oe){var fe=ot(re),we=!fe&&gt(re),Fe=!fe&&!we&&Le(re),xe=!fe&&!we&&!Fe&&pt(re),$e=fe||we||Fe||xe,De=$e?function(Ue,Ze){for(var wt=-1,bt=Array(Ue);++wt<Ue;)bt[wt]=Ze(wt);return bt}(re.length,String):[],Pe=De.length;for(var Xe in re)!w.call(re,Xe)||$e&&(Xe=="length"||Fe&&(Xe=="offset"||Xe=="parent")||xe&&(Xe=="buffer"||Xe=="byteLength"||Xe=="byteOffset")||at(Xe,Pe))||De.push(Xe);return De}function Ie(re,oe){for(var fe=re.length;fe--;)if(We(re[fe][0],oe))return fe;return-1}function Re(re){return re==null?re===void 0?"[object Undefined]":"[object Null]":B&&B in Object(re)?function(oe){var fe=w.call(oe,B),we=oe[B];try{oe[B]=void 0;var Fe=!0}catch{}var xe=_.call(oe);return Fe&&(fe?oe[B]=we:delete oe[B]),xe}(re):function(oe){return _.call(oe)}(re)}function Ne(re){return lt(re)&&Re(re)==i}function je(re,oe,fe,we,Fe){return re===oe||(re==null||oe==null||!lt(re)&&!lt(oe)?re!=re&&oe!=oe:function(xe,$e,De,Pe,Xe,Ue){var Ze=ot(xe),wt=ot($e),bt=Ze?"[object Array]":Be(xe),Ct=wt?"[object Array]":Be($e),Tt=(bt=bt==i?r:bt)==r,Pt=(Ct=Ct==i?r:Ct)==r,Q=bt==Ct;if(Q&&Le(xe)){if(!Le($e))return!1;Ze=!0,Tt=!1}if(Q&&!Tt)return Ue||(Ue=new Se),Ze||pt(xe)?Te(xe,$e,De,Pe,Xe,Ue):function(ve,_e,rt,Ge,Je,Ve,ct){switch(rt){case"[object DataView]":if(ve.byteLength!=_e.byteLength||ve.byteOffset!=_e.byteOffset)return!1;ve=ve.buffer,_e=_e.buffer;case"[object ArrayBuffer]":return!(ve.byteLength!=_e.byteLength||!Ve(new H(ve),new H(_e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return We(+ve,+_e);case"[object Error]":return ve.name==_e.name&&ve.message==_e.message;case"[object RegExp]":case"[object String]":return ve==_e+"";case o:var dt=L;case t:var mt=1&Ge;if(dt||(dt=j),ve.size!=_e.size&&!mt)return!1;var yt=ct.get(ve);if(yt)return yt==_e;Ge|=2,ct.set(ve,_e);var At=Te(dt(ve),dt(_e),Ge,Je,Ve,ct);return ct.delete(ve),At;case"[object Symbol]":if(le)return le.call(ve)==le.call(_e)}return!1}(xe,$e,bt,De,Pe,Xe,Ue);if(!(1&De)){var ue=Tt&&w.call(xe,"__wrapped__"),he=Pt&&w.call($e,"__wrapped__");if(ue||he){var me=ue?xe.value():xe,Ae=he?$e.value():$e;return Ue||(Ue=new Se),Xe(me,Ae,De,Pe,Ue)}}return Q?(Ue||(Ue=new Se),function(ve,_e,rt,Ge,Je,Ve){var ct=1&rt,dt=Me(ve),mt=dt.length,yt=Me(_e).length;if(mt!=yt&&!ct)return!1;for(var At=mt;At--;){var It=dt[At];if(!(ct?It in _e:w.call(_e,It)))return!1}var Ut=Ve.get(ve);if(Ut&&Ve.get(_e))return Ut==_e;var hr=!0;Ve.set(ve,_e),Ve.set(_e,ve);for(var xr=ct;++At<mt;){It=dt[At];var Sr=ve[It],kr=_e[It];if(Ge)var ft=ct?Ge(kr,Sr,It,_e,ve,Ve):Ge(Sr,kr,It,ve,_e,Ve);if(!(ft===void 0?Sr===kr||Je(Sr,kr,rt,Ge,Ve):ft)){hr=!1;break}xr||(xr=It=="constructor")}if(hr&&!xr){var st=ve.constructor,sr=_e.constructor;st==sr||!("constructor"in ve)||!("constructor"in _e)||typeof st=="function"&&st instanceof st&&typeof sr=="function"&&sr instanceof sr||(hr=!1)}return Ve.delete(ve),Ve.delete(_e),hr}(xe,$e,De,Pe,Xe,Ue)):!1}(re,oe,fe,we,je,Fe))}function Ce(re){return!(!ze(re)||function(oe){return!!y&&y in oe}(re))&&(nt(re)?C:n).test(et(re))}function be(re){if(fe=(oe=re)&&oe.constructor,we=typeof fe=="function"&&fe.prototype||M,oe!==we)return N(re);var oe,fe,we,Fe=[];for(var xe in Object(re))w.call(re,xe)&&xe!="constructor"&&Fe.push(xe);return Fe}function Te(re,oe,fe,we,Fe,xe){var $e=1&fe,De=re.length,Pe=oe.length;if(De!=Pe&&!($e&&Pe>De))return!1;var Xe=xe.get(re);if(Xe&&xe.get(oe))return Xe==oe;var Ue=-1,Ze=!0,wt=2&fe?new ke:void 0;for(xe.set(re,oe),xe.set(oe,re);++Ue<De;){var bt=re[Ue],Ct=oe[Ue];if(we)var Tt=$e?we(Ct,bt,Ue,oe,re,xe):we(bt,Ct,Ue,re,oe,xe);if(Tt!==void 0){if(Tt)continue;Ze=!1;break}if(wt){if(!F(oe,function(Pt,Q){if(ue=Q,!wt.has(ue)&&(bt===Pt||Fe(bt,Pt,fe,we,xe)))return wt.push(Q);var ue})){Ze=!1;break}}else if(bt!==Ct&&!Fe(bt,Ct,fe,we,xe)){Ze=!1;break}}return xe.delete(re),xe.delete(oe),Ze}function Me(re){return function(oe,fe,we){var Fe=fe(oe);return ot(oe)?Fe:function(xe,$e){for(var De=-1,Pe=$e.length,Xe=xe.length;++De<Pe;)xe[Xe+De]=$e[De];return xe}(Fe,we(oe))}(re,Ke,ut)}function Ee(re,oe){var fe,we,Fe=re.__data__;return((we=typeof(fe=oe))=="string"||we=="number"||we=="symbol"||we=="boolean"?fe!=="__proto__":fe===null)?Fe[typeof oe=="string"?"string":"hash"]:Fe.map}function tt(re,oe){var fe=function(we,Fe){return we==null?void 0:we[Fe]}(re,oe);return Ce(fe)?fe:void 0}ce.prototype.clear=function(){this.__data__=ne?ne(null):{},this.size=0},ce.prototype.delete=function(re){var oe=this.has(re)&&delete this.__data__[re];return this.size-=oe?1:0,oe},ce.prototype.get=function(re){var oe=this.__data__;if(ne){var fe=oe[re];return fe==="__lodash_hash_undefined__"?void 0:fe}return w.call(oe,re)?oe[re]:void 0},ce.prototype.has=function(re){var oe=this.__data__;return ne?oe[re]!==void 0:w.call(oe,re)},ce.prototype.set=function(re,oe){var fe=this.__data__;return this.size+=this.has(re)?0:1,fe[re]=ne&&oe===void 0?"__lodash_hash_undefined__":oe,this},de.prototype.clear=function(){this.__data__=[],this.size=0},de.prototype.delete=function(re){var oe=this.__data__,fe=Ie(oe,re);return!(fe<0)&&(fe==oe.length-1?oe.pop():K.call(oe,fe,1),--this.size,!0)},de.prototype.get=function(re){var oe=this.__data__,fe=Ie(oe,re);return fe<0?void 0:oe[fe][1]},de.prototype.has=function(re){return Ie(this.__data__,re)>-1},de.prototype.set=function(re,oe){var fe=this.__data__,we=Ie(fe,re);return we<0?(++this.size,fe.push([re,oe])):fe[we][1]=oe,this},pe.prototype.clear=function(){this.size=0,this.__data__={hash:new ce,map:new(X||de),string:new ce}},pe.prototype.delete=function(re){var oe=Ee(this,re).delete(re);return this.size-=oe?1:0,oe},pe.prototype.get=function(re){return Ee(this,re).get(re)},pe.prototype.has=function(re){return Ee(this,re).has(re)},pe.prototype.set=function(re,oe){var fe=Ee(this,re),we=fe.size;return fe.set(re,oe),this.size+=fe.size==we?0:1,this},ke.prototype.add=ke.prototype.push=function(re){return this.__data__.set(re,"__lodash_hash_undefined__"),this},ke.prototype.has=function(re){return this.__data__.has(re)},Se.prototype.clear=function(){this.__data__=new de,this.size=0},Se.prototype.delete=function(re){var oe=this.__data__,fe=oe.delete(re);return this.size=oe.size,fe},Se.prototype.get=function(re){return this.__data__.get(re)},Se.prototype.has=function(re){return this.__data__.has(re)},Se.prototype.set=function(re,oe){var fe=this.__data__;if(fe instanceof de){var we=fe.__data__;if(!X||we.length<199)return we.push([re,oe]),this.size=++fe.size,this;fe=this.__data__=new pe(we)}return fe.set(re,oe),this.size=fe.size,this};var ut=q?function(re){return re==null?[]:(re=Object(re),function(oe,fe){for(var we=-1,Fe=oe==null?0:oe.length,xe=0,$e=[];++we<Fe;){var De=oe[we];fe(De,we,oe)&&($e[xe++]=De)}return $e}(q(re),function(oe){return W.call(re,oe)}))}:function(){return[]},Be=Re;function at(re,oe){return!!(oe=oe??9007199254740991)&&(typeof re=="number"||c.test(re))&&re>-1&&re%1==0&&re<oe}function et(re){if(re!=null){try{return v.call(re)}catch{}try{return re+""}catch{}}return""}function We(re,oe){return re===oe||re!=re&&oe!=oe}(U&&Be(new U(new ArrayBuffer(1)))!="[object DataView]"||X&&Be(new X)!=o||Z&&Be(Z.resolve())!="[object Promise]"||G&&Be(new G)!=t||J&&Be(new J)!="[object WeakMap]")&&(Be=function(re){var oe=Re(re),fe=oe==r?re.constructor:void 0,we=fe?et(fe):"";if(we)switch(we){case ie:return"[object DataView]";case Y:return o;case te:return"[object Promise]";case ee:return t;case ae:return"[object WeakMap]"}return oe});var gt=Ne(function(){return arguments}())?Ne:function(re){return lt(re)&&w.call(re,"callee")&&!W.call(re,"callee")},ot=Array.isArray,Le=O||function(){return!1};function nt(re){if(!ze(re))return!1;var oe=Re(re);return oe=="[object Function]"||oe=="[object GeneratorFunction]"||oe=="[object AsyncFunction]"||oe=="[object Proxy]"}function ht(re){return typeof re=="number"&&re>-1&&re%1==0&&re<=9007199254740991}function ze(re){var oe=typeof re;return re!=null&&(oe=="object"||oe=="function")}function lt(re){return re!=null&&typeof re=="object"}var pt=R?function(re){return function(oe){return re(oe)}}(R):function(re){return lt(re)&&ht(re.length)&&!!s[Re(re)]};function Ke(re){return(oe=re)!=null&&ht(oe.length)&&!nt(oe)?ye(re):be(re);var oe}p.exports=function(re,oe){return je(re,oe)}}).call(this)}).call(this,typeof Ye<"u"?Ye:typeof self<"u"?self:typeof window<"u"?window:{})},{}],446:[function(e,p,g){(function(u){(function(){var i=typeof u=="object"&&u&&u.Object===Object&&u,o=typeof self=="object"&&self&&self.Object===Object&&self,r=i||o||Function("return this")(),t=Object.prototype,n=t.hasOwnProperty,c=t.toString,s=r.Symbol,a=s?s.toStringTag:void 0;function f(h){return h==null?h===void 0?"[object Undefined]":"[object Null]":a&&a in Object(h)?function(d){var b=n.call(d,a),m=d[a];try{d[a]=void 0;var x=!0}catch{}var k=c.call(d);return x&&(b?d[a]=m:delete d[a]),k}(h):function(d){return c.call(d)}(h)}p.exports=function(h){if(!function(b){var m=typeof b;return b!=null&&(m=="object"||m=="function")}(h))return!1;var d=f(h);return d=="[object Function]"||d=="[object GeneratorFunction]"||d=="[object AsyncFunction]"||d=="[object Proxy]"}}).call(this)}).call(this,typeof Ye<"u"?Ye:typeof self<"u"?self:typeof window<"u"?window:{})},{}],447:[function(e,p,g){p.exports=function(u){return u==null}},{}],448:[function(e,p,g){p.exports=function(u){return u===void 0}},{}],449:[function(e,p,g){(function(u){(function(){var i=/^\[object .+?Constructor\]$/,o=typeof u=="object"&&u&&u.Object===Object&&u,r=typeof self=="object"&&self&&self.Object===Object&&self,t=o||r||Function("return this")();function n(P,H){return!!(P&&P.length)&&function(W,K,B){if(K!=K)return function(N,U,X,Z){for(var G=N.length,J=X+-1;++J<G;)if(U(N[J],J,N))return J;return-1}(W,c,B);for(var q=B-1,O=W.length;++q<O;)if(W[q]===K)return q;return-1}(P,H,0)>-1}function c(P){return P!=P}function s(P,H){return P.has(H)}function a(P){var H=-1,W=Array(P.size);return P.forEach(function(K){W[++H]=K}),W}var f,h=Array.prototype,d=Function.prototype,b=Object.prototype,m=t["__core-js_shared__"],x=(f=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||""))?"Symbol(src)_1."+f:"",k=d.toString,R=b.hasOwnProperty,F=b.toString,L=RegExp("^"+k.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=h.splice,D=C(t,"Map"),z=C(t,"Set"),$=C(Object,"create");function V(P){var H=-1,W=P?P.length:0;for(this.clear();++H<W;){var K=P[H];this.set(K[0],K[1])}}function T(P){var H=-1,W=P?P.length:0;for(this.clear();++H<W;){var K=P[H];this.set(K[0],K[1])}}function M(P){var H=-1,W=P?P.length:0;for(this.clear();++H<W;){var K=P[H];this.set(K[0],K[1])}}function S(P){var H=-1,W=P?P.length:0;for(this.__data__=new M;++H<W;)this.add(P[H])}function v(P,H){for(var W,K,B=P.length;B--;)if((W=P[B][0])===(K=H)||W!=W&&K!=K)return B;return-1}function w(P){return!(!I(P)||(H=P,x&&x in H))&&(function(W){var K=I(W)?F.call(W):"";return K=="[object Function]"||K=="[object GeneratorFunction]"}(P)||function(W){var K=!1;if(W!=null&&typeof W.toString!="function")try{K=!!(W+"")}catch{}return K}(P)?L:i).test(function(W){if(W!=null){try{return k.call(W)}catch{}try{return W+""}catch{}}return""}(P));var H}V.prototype.clear=function(){this.__data__=$?$(null):{}},V.prototype.delete=function(P){return this.has(P)&&delete this.__data__[P]},V.prototype.get=function(P){var H=this.__data__;if($){var W=H[P];return W==="__lodash_hash_undefined__"?void 0:W}return R.call(H,P)?H[P]:void 0},V.prototype.has=function(P){var H=this.__data__;return $?H[P]!==void 0:R.call(H,P)},V.prototype.set=function(P,H){return this.__data__[P]=$&&H===void 0?"__lodash_hash_undefined__":H,this},T.prototype.clear=function(){this.__data__=[]},T.prototype.delete=function(P){var H=this.__data__,W=v(H,P);return!(W<0)&&(W==H.length-1?H.pop():j.call(H,W,1),!0)},T.prototype.get=function(P){var H=this.__data__,W=v(H,P);return W<0?void 0:H[W][1]},T.prototype.has=function(P){return v(this.__data__,P)>-1},T.prototype.set=function(P,H){var W=this.__data__,K=v(W,P);return K<0?W.push([P,H]):W[K][1]=H,this},M.prototype.clear=function(){this.__data__={hash:new V,map:new(D||T),string:new V}},M.prototype.delete=function(P){return _(this,P).delete(P)},M.prototype.get=function(P){return _(this,P).get(P)},M.prototype.has=function(P){return _(this,P).has(P)},M.prototype.set=function(P,H){return _(this,P).set(P,H),this},S.prototype.add=S.prototype.push=function(P){return this.__data__.set(P,"__lodash_hash_undefined__"),this},S.prototype.has=function(P){return this.__data__.has(P)};var y=z&&1/a(new z([,-0]))[1]==1/0?function(P){return new z(P)}:function(){};function _(P,H){var W,K,B=P.__data__;return((K=typeof(W=H))=="string"||K=="number"||K=="symbol"||K=="boolean"?W!=="__proto__":W===null)?B[typeof H=="string"?"string":"hash"]:B.map}function C(P,H){var W=function(K,B){return K==null?void 0:K[B]}(P,H);return w(W)?W:void 0}function I(P){var H=typeof P;return!!P&&(H=="object"||H=="function")}p.exports=function(P){return P&&P.length?function(H,W,K){var B=-1,q=n,O=H.length,N=!0,U=[],X=U;if(O>=200){var Z=y(H);if(Z)return a(Z);N=!1,q=s,X=new S}else X=U;e:for(;++B<O;){var G=H[B],J=G;if(G=G!==0?G:0,N&&J==J){for(var ne=X.length;ne--;)if(X[ne]===J)continue e;U.push(G)}else q(X,J,K)||(X!==U&&X.push(J),U.push(G))}return U}(P):[]}}).call(this)}).call(this,typeof Ye<"u"?Ye:typeof self<"u"?self:typeof window<"u"?window:{})},{}],450:[function(e,p,g){var u=e("inherits"),i=e("hash-base"),o=e("safe-buffer").Buffer,r=new Array(16);function t(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function n(h,d){return h<<d|h>>>32-d}function c(h,d,b,m,x,k,R){return n(h+(d&b|~d&m)+x+k|0,R)+d|0}function s(h,d,b,m,x,k,R){return n(h+(d&m|b&~m)+x+k|0,R)+d|0}function a(h,d,b,m,x,k,R){return n(h+(d^b^m)+x+k|0,R)+d|0}function f(h,d,b,m,x,k,R){return n(h+(b^(d|~m))+x+k|0,R)+d|0}u(t,i),t.prototype._update=function(){for(var h=r,d=0;d<16;++d)h[d]=this._block.readInt32LE(4*d);var b=this._a,m=this._b,x=this._c,k=this._d;b=c(b,m,x,k,h[0],3614090360,7),k=c(k,b,m,x,h[1],3905402710,12),x=c(x,k,b,m,h[2],606105819,17),m=c(m,x,k,b,h[3],3250441966,22),b=c(b,m,x,k,h[4],4118548399,7),k=c(k,b,m,x,h[5],1200080426,12),x=c(x,k,b,m,h[6],2821735955,17),m=c(m,x,k,b,h[7],4249261313,22),b=c(b,m,x,k,h[8],1770035416,7),k=c(k,b,m,x,h[9],2336552879,12),x=c(x,k,b,m,h[10],4294925233,17),m=c(m,x,k,b,h[11],2304563134,22),b=c(b,m,x,k,h[12],1804603682,7),k=c(k,b,m,x,h[13],4254626195,12),x=c(x,k,b,m,h[14],2792965006,17),b=s(b,m=c(m,x,k,b,h[15],1236535329,22),x,k,h[1],4129170786,5),k=s(k,b,m,x,h[6],3225465664,9),x=s(x,k,b,m,h[11],643717713,14),m=s(m,x,k,b,h[0],3921069994,20),b=s(b,m,x,k,h[5],3593408605,5),k=s(k,b,m,x,h[10],38016083,9),x=s(x,k,b,m,h[15],3634488961,14),m=s(m,x,k,b,h[4],3889429448,20),b=s(b,m,x,k,h[9],568446438,5),k=s(k,b,m,x,h[14],3275163606,9),x=s(x,k,b,m,h[3],4107603335,14),m=s(m,x,k,b,h[8],1163531501,20),b=s(b,m,x,k,h[13],2850285829,5),k=s(k,b,m,x,h[2],4243563512,9),x=s(x,k,b,m,h[7],1735328473,14),b=a(b,m=s(m,x,k,b,h[12],2368359562,20),x,k,h[5],4294588738,4),k=a(k,b,m,x,h[8],2272392833,11),x=a(x,k,b,m,h[11],1839030562,16),m=a(m,x,k,b,h[14],4259657740,23),b=a(b,m,x,k,h[1],2763975236,4),k=a(k,b,m,x,h[4],1272893353,11),x=a(x,k,b,m,h[7],4139469664,16),m=a(m,x,k,b,h[10],3200236656,23),b=a(b,m,x,k,h[13],681279174,4),k=a(k,b,m,x,h[0],3936430074,11),x=a(x,k,b,m,h[3],3572445317,16),m=a(m,x,k,b,h[6],76029189,23),b=a(b,m,x,k,h[9],3654602809,4),k=a(k,b,m,x,h[12],3873151461,11),x=a(x,k,b,m,h[15],530742520,16),b=f(b,m=a(m,x,k,b,h[2],3299628645,23),x,k,h[0],4096336452,6),k=f(k,b,m,x,h[7],1126891415,10),x=f(x,k,b,m,h[14],2878612391,15),m=f(m,x,k,b,h[5],4237533241,21),b=f(b,m,x,k,h[12],1700485571,6),k=f(k,b,m,x,h[3],2399980690,10),x=f(x,k,b,m,h[10],4293915773,15),m=f(m,x,k,b,h[1],2240044497,21),b=f(b,m,x,k,h[8],1873313359,6),k=f(k,b,m,x,h[15],4264355552,10),x=f(x,k,b,m,h[6],2734768916,15),m=f(m,x,k,b,h[13],1309151649,21),b=f(b,m,x,k,h[4],4149444226,6),k=f(k,b,m,x,h[11],3174756917,10),x=f(x,k,b,m,h[2],718787259,15),m=f(m,x,k,b,h[9],3951481745,21),this._a=this._a+b|0,this._b=this._b+m|0,this._c=this._c+x|0,this._d=this._d+k|0},t.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var h=o.allocUnsafe(16);return h.writeInt32LE(this._a,0),h.writeInt32LE(this._b,4),h.writeInt32LE(this._c,8),h.writeInt32LE(this._d,12),h},p.exports=t},{"hash-base":425,inherits:440,"safe-buffer":494}],451:[function(e,p,g){var u=e("bn.js"),i=e("brorand");function o(r){this.rand=r||new i.Rand}p.exports=o,o.create=function(r){return new o(r)},o.prototype._randbelow=function(r){var t=r.bitLength(),n=Math.ceil(t/8);do var c=new u(this.rand.generate(n));while(c.cmp(r)>=0);return c},o.prototype._randrange=function(r,t){var n=t.sub(r);return r.add(this._randbelow(n))},o.prototype.test=function(r,t,n){var c=r.bitLength(),s=u.mont(r),a=new u(1).toRed(s);t||(t=Math.max(1,c/48|0));for(var f=r.subn(1),h=0;!f.testn(h);h++);for(var d=r.shrn(h),b=f.toRed(s);t>0;t--){var m=this._randrange(new u(2),f);n&&n(m);var x=m.toRed(s).redPow(d);if(x.cmp(a)!==0&&x.cmp(b)!==0){for(var k=1;k<h;k++){if((x=x.redSqr()).cmp(a)===0)return!1;if(x.cmp(b)===0)break}if(k===h)return!1}}return!0},o.prototype.getDivisor=function(r,t){var n=r.bitLength(),c=u.mont(r),s=new u(1).toRed(c);t||(t=Math.max(1,n/48|0));for(var a=r.subn(1),f=0;!a.testn(f);f++);for(var h=r.shrn(f),d=a.toRed(c);t>0;t--){var b=this._randrange(new u(2),a),m=r.gcd(b);if(m.cmpn(1)!==0)return m;var x=b.toRed(c).redPow(h);if(x.cmp(s)!==0&&x.cmp(d)!==0){for(var k=1;k<f;k++){if((x=x.redSqr()).cmp(s)===0)return x.fromRed().subn(1).gcd(r);if(x.cmp(d)===0)break}if(k===f)return(x=x.redSqr()).fromRed().subn(1).gcd(r)}}return!1}},{"bn.js":452,brorand:187}],452:[function(e,p,g){arguments[4][184][0].apply(g,arguments)},{buffer:188,dup:184}],453:[function(e,p,g){function u(i,o){if(!i)throw new Error(o||"Assertion failed")}p.exports=u,u.equal=function(i,o,r){if(i!=o)throw new Error(r||"Assertion failed: "+i+" != "+o)}},{}],454:[function(e,p,g){var u=g;function i(r){return r.length===1?"0"+r:r}function o(r){for(var t="",n=0;n<r.length;n++)t+=i(r[n].toString(16));return t}u.toArray=function(r,t){if(Array.isArray(r))return r.slice();if(!r)return[];var n=[];if(typeof r!="string"){for(var c=0;c<r.length;c++)n[c]=0|r[c];return n}if(t==="hex")for((r=r.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(r="0"+r),c=0;c<r.length;c+=2)n.push(parseInt(r[c]+r[c+1],16));else for(c=0;c<r.length;c++){var s=r.charCodeAt(c),a=s>>8,f=255&s;a?n.push(a,f):n.push(f)}return n},u.zero2=i,u.toHex=o,u.encode=function(r,t){return t==="hex"?o(r):r}},{}],455:[function(e,p,g){p.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],456:[function(e,p,g){var u=e("asn1.js");g.certificate=e("./certificate");var i=u.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())});g.RSAPrivateKey=i;var o=u.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});g.RSAPublicKey=o;var r=u.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(t),this.key("subjectPublicKey").bitstr())});g.PublicKey=r;var t=u.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),n=u.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(t),this.key("subjectPrivateKey").octstr())});g.PrivateKey=n;var c=u.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())});g.EncryptedPrivateKey=c;var s=u.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())});g.DSAPrivateKey=s,g.DSAparam=u.define("DSAparam",function(){this.int()});var a=u.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(f),this.key("publicKey").optional().explicit(1).bitstr())});g.ECPrivateKey=a;var f=u.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});g.signature=u.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":457,"asn1.js":170}],457:[function(e,p,g){var u=e("asn1.js"),i=u.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),o=u.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),r=u.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),t=u.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(r),this.key("subjectPublicKey").bitstr())}),n=u.define("RelativeDistinguishedName",function(){this.setof(o)}),c=u.define("RDNSequence",function(){this.seqof(n)}),s=u.define("Name",function(){this.choice({rdnSequence:this.use(c)})}),a=u.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),f=u.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),h=u.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(r),this.key("issuer").use(s),this.key("validity").use(a),this.key("subject").use(s),this.key("subjectPublicKeyInfo").use(t),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(f).optional())}),d=u.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(r),this.key("signatureValue").bitstr())});p.exports=d},{"asn1.js":170}],458:[function(e,p,g){var u=/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,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,r=e("evp_bytestokey"),t=e("browserify-aes"),n=e("safe-buffer").Buffer;p.exports=function(c,s){var a,f=c.toString(),h=f.match(u);if(h){var d="aes"+h[1],b=n.from(h[2],"hex"),m=n.from(h[3].replace(/[\r\n]/g,""),"base64"),x=r(s,b.slice(0,8),parseInt(h[1],10)).key,k=[],R=t.createDecipheriv(d,x,b);k.push(R.update(m)),k.push(R.final()),a=n.concat(k)}else{var F=f.match(o);a=n.from(F[2].replace(/[\r\n]/g,""),"base64")}return{tag:f.match(i)[1],data:a}}},{"browserify-aes":191,evp_bytestokey:423,"safe-buffer":494}],459:[function(e,p,g){var u=e("./asn1"),i=e("./aesid.json"),o=e("./fixProc"),r=e("browserify-aes"),t=e("pbkdf2"),n=e("safe-buffer").Buffer;function c(s){var a;typeof s!="object"||n.isBuffer(s)||(a=s.passphrase,s=s.key),typeof s=="string"&&(s=n.from(s));var f,h,d=o(s,a),b=d.tag,m=d.data;switch(b){case"CERTIFICATE":h=u.certificate.decode(m,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(h||(h=u.PublicKey.decode(m,"der")),f=h.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return u.RSAPublicKey.decode(h.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return h.subjectPrivateKey=h.subjectPublicKey,{type:"ec",data:h};case"1.2.840.10040.4.1":return h.algorithm.params.pub_key=u.DSAparam.decode(h.subjectPublicKey.data,"der"),{type:"dsa",data:h.algorithm.params};default:throw new Error("unknown key id "+f)}case"ENCRYPTED PRIVATE KEY":m=function(x,k){var R=x.algorithm.decrypt.kde.kdeparams.salt,F=parseInt(x.algorithm.decrypt.kde.kdeparams.iters.toString(),10),L=i[x.algorithm.decrypt.cipher.algo.join(".")],j=x.algorithm.decrypt.cipher.iv,D=x.subjectPrivateKey,z=parseInt(L.split("-")[1],10)/8,$=t.pbkdf2Sync(k,R,F,z,"sha1"),V=r.createDecipheriv(L,$,j),T=[];return T.push(V.update(D)),T.push(V.final()),n.concat(T)}(m=u.EncryptedPrivateKey.decode(m,"der"),a);case"PRIVATE KEY":switch(f=(h=u.PrivateKey.decode(m,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return u.RSAPrivateKey.decode(h.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:h.algorithm.curve,privateKey:u.ECPrivateKey.decode(h.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return h.algorithm.params.priv_key=u.DSAparam.decode(h.subjectPrivateKey,"der"),{type:"dsa",params:h.algorithm.params};default:throw new Error("unknown key id "+f)}case"RSA PUBLIC KEY":return u.RSAPublicKey.decode(m,"der");case"RSA PRIVATE KEY":return u.RSAPrivateKey.decode(m,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:u.DSAPrivateKey.decode(m,"der")};case"EC PRIVATE KEY":return{curve:(m=u.ECPrivateKey.decode(m,"der")).parameters.value,privateKey:m.privateKey};default:throw new Error("unknown key type "+b)}}p.exports=c,c.signature=u.signature},{"./aesid.json":455,"./asn1":456,"./fixProc":458,"browserify-aes":191,pbkdf2:460,"safe-buffer":494}],460:[function(e,p,g){g.pbkdf2=e("./lib/async"),g.pbkdf2Sync=e("./lib/sync")},{"./lib/async":461,"./lib/sync":464}],461:[function(e,p,g){(function(u){(function(){var i,o,r=e("safe-buffer").Buffer,t=e("./precondition"),n=e("./default-encoding"),c=e("./sync"),s=e("./to-buffer"),a=u.crypto&&u.crypto.subtle,f={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"},h=[];function d(){return o||(o=u.process&&u.process.nextTick?u.process.nextTick:u.queueMicrotask?u.queueMicrotask:u.setImmediate?u.setImmediate:u.setTimeout)}function b(m,x,k,R,F){return a.importKey("raw",m,{name:"PBKDF2"},!1,["deriveBits"]).then(function(L){return a.deriveBits({name:"PBKDF2",salt:x,iterations:k,hash:{name:F}},L,R<<3)}).then(function(L){return r.from(L)})}p.exports=function(m,x,k,R,F,L){typeof F=="function"&&(L=F,F=void 0);var j=f[(F=F||"sha1").toLowerCase()];if(j&&typeof u.Promise=="function"){if(t(k,R),m=s(m,n,"Password"),x=s(x,n,"Salt"),typeof L!="function")throw new Error("No callback provided to pbkdf2");(function(D,z){D.then(function($){d()(function(){z(null,$)})},function($){d()(function(){z($)})})})(function(D){if(u.process&&!u.process.browser||!a||!a.importKey||!a.deriveBits)return Promise.resolve(!1);if(h[D]!==void 0)return h[D];var z=b(i=i||r.alloc(8),i,10,128,D).then(function(){return!0}).catch(function(){return!1});return h[D]=z,z}(j).then(function(D){return D?b(m,x,k,R,j):c(m,x,k,R,F)}),L)}else d()(function(){var D;try{D=c(m,x,k,R,F)}catch(z){return L(z)}L(null,D)})}}).call(this)}).call(this,typeof Ye<"u"?Ye:typeof self<"u"?self:typeof window<"u"?window:{})},{"./default-encoding":462,"./precondition":463,"./sync":464,"./to-buffer":465,"safe-buffer":494}],462:[function(e,p,g){(function(u,i){(function(){var o;i.process&&i.process.browser?o="utf-8":i.process&&i.process.version?o=parseInt(u.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":o="utf-8",p.exports=o}).call(this)}).call(this,e("_process"),typeof Ye<"u"?Ye:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467}],463:[function(e,p,g){var u=Math.pow(2,30)-1;p.exports=function(i,o){if(typeof i!="number")throw new TypeError("Iterations not a number");if(i<0)throw new TypeError("Bad iterations");if(typeof o!="number")throw new TypeError("Key length not a number");if(o<0||o>u||o!=o)throw new TypeError("Bad key length")}},{}],464:[function(e,p,g){var u=e("create-hash/md5"),i=e("ripemd160"),o=e("sha.js"),r=e("safe-buffer").Buffer,t=e("./precondition"),n=e("./default-encoding"),c=e("./to-buffer"),s=r.alloc(128),a={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function f(h,d,b){var m=function(j){function D(z){return o(j).update(z).digest()}return j==="rmd160"||j==="ripemd160"?function(z){return new i().update(z).digest()}:j==="md5"?u:D}(h),x=h==="sha512"||h==="sha384"?128:64;d.length>x?d=m(d):d.length<x&&(d=r.concat([d,s],x));for(var k=r.allocUnsafe(x+a[h]),R=r.allocUnsafe(x+a[h]),F=0;F<x;F++)k[F]=54^d[F],R[F]=92^d[F];var L=r.allocUnsafe(x+b+4);k.copy(L,0,0,x),this.ipad1=L,this.ipad2=k,this.opad=R,this.alg=h,this.blocksize=x,this.hash=m,this.size=a[h]}f.prototype.run=function(h,d){return h.copy(d,this.blocksize),this.hash(d).copy(this.opad,this.blocksize),this.hash(this.opad)},p.exports=function(h,d,b,m,x){t(b,m);var k=new f(x=x||"sha1",h=c(h,n,"Password"),(d=c(d,n,"Salt")).length),R=r.allocUnsafe(m),F=r.allocUnsafe(d.length+4);d.copy(F,0,0,d.length);for(var L=0,j=a[x],D=Math.ceil(m/j),z=1;z<=D;z++){F.writeUInt32BE(z,d.length);for(var $=k.run(F,k.ipad1),V=$,T=1;T<b;T++){V=k.run(V,k.ipad2);for(var M=0;M<j;M++)$[M]^=V[M]}$.copy(R,L),L+=j}return R}},{"./default-encoding":462,"./precondition":463,"./to-buffer":465,"create-hash/md5":387,ripemd160:493,"safe-buffer":494,"sha.js":498}],465:[function(e,p,g){var u=e("safe-buffer").Buffer;p.exports=function(i,o,r){if(u.isBuffer(i))return i;if(typeof i=="string")return u.from(i,o);if(ArrayBuffer.isView(i))return u.from(i.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},{"safe-buffer":494}],466:[function(e,p,g){(function(u){(function(){u===void 0||!u.version||u.version.indexOf("v0.")===0||u.version.indexOf("v1.")===0&&u.version.indexOf("v1.8.")!==0?p.exports={nextTick:function(i,o,r,t){if(typeof i!="function")throw new TypeError('"callback" argument must be a function');var n,c,s=arguments.length;switch(s){case 0:case 1:return u.nextTick(i);case 2:return u.nextTick(function(){i.call(null,o)});case 3:return u.nextTick(function(){i.call(null,o,r)});case 4:return u.nextTick(function(){i.call(null,o,r,t)});default:for(n=new Array(s-1),c=0;c<n.length;)n[c++]=arguments[c];return u.nextTick(function(){i.apply(null,n)})}}}:p.exports=u}).call(this)}).call(this,e("_process"))},{_process:467}],467:[function(e,p,g){var u,i,o=p.exports={};function r(){throw new Error("setTimeout has not been defined")}function t(){throw new Error("clearTimeout has not been defined")}function n(x){if(u===setTimeout)return setTimeout(x,0);if((u===r||!u)&&setTimeout)return u=setTimeout,setTimeout(x,0);try{return u(x,0)}catch{try{return u.call(null,x,0)}catch{return u.call(this,x,0)}}}(function(){try{u=typeof setTimeout=="function"?setTimeout:r}catch{u=r}try{i=typeof clearTimeout=="function"?clearTimeout:t}catch{i=t}})();var c,s=[],a=!1,f=-1;function h(){a&&c&&(a=!1,c.length?s=c.concat(s):f=-1,s.length&&d())}function d(){if(!a){var x=n(h);a=!0;for(var k=s.length;k;){for(c=s,s=[];++f<k;)c&&c[f].run();f=-1,k=s.length}c=null,a=!1,function(R){if(i===clearTimeout)return clearTimeout(R);if((i===t||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(R);try{i(R)}catch{try{return i.call(null,R)}catch{return i.call(this,R)}}}(x)}}function b(x,k){this.fun=x,this.array=k}function m(){}o.nextTick=function(x){var k=new Array(arguments.length-1);if(arguments.length>1)for(var R=1;R<arguments.length;R++)k[R-1]=arguments[R];s.push(new b(x,k)),s.length!==1||a||n(d)},b.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=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(x){return[]},o.binding=function(x){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(x){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],468:[function(e,p,g){g.publicEncrypt=e("./publicEncrypt"),g.privateDecrypt=e("./privateDecrypt"),g.privateEncrypt=function(u,i){return g.publicEncrypt(u,i,!0)},g.publicDecrypt=function(u,i){return g.privateDecrypt(u,i,!0)}},{"./privateDecrypt":471,"./publicEncrypt":472}],469:[function(e,p,g){var u=e("create-hash"),i=e("safe-buffer").Buffer;function o(r){var t=i.allocUnsafe(4);return t.writeUInt32BE(r,0),t}p.exports=function(r,t){for(var n,c=i.alloc(0),s=0;c.length<t;)n=o(s++),c=i.concat([c,u("sha1").update(r).update(n).digest()]);return c.slice(0,t)}},{"create-hash":386,"safe-buffer":494}],470:[function(e,p,g){arguments[4][184][0].apply(g,arguments)},{buffer:188,dup:184}],471:[function(e,p,g){var u=e("parse-asn1"),i=e("./mgf"),o=e("./xor"),r=e("bn.js"),t=e("browserify-rsa"),n=e("create-hash"),c=e("./withPublic"),s=e("safe-buffer").Buffer;p.exports=function(a,f,h){var d;d=a.padding?a.padding:h?1:4;var b,m=u(a),x=m.modulus.byteLength();if(f.length>x||new r(f).cmp(m.modulus)>=0)throw new Error("decryption error");b=h?c(new r(f),m):t(f,m);var k=s.alloc(x-b.length);if(b=s.concat([k,b],x),d===4)return function(R,F){var L=R.modulus.byteLength(),j=n("sha1").update(s.alloc(0)).digest(),D=j.length;if(F[0]!==0)throw new Error("decryption error");var z=F.slice(1,D+1),$=F.slice(D+1),V=o(z,i($,D)),T=o($,i(V,L-D-1));if(function(S,v){S=s.from(S),v=s.from(v);var w=0,y=S.length;S.length!==v.length&&(w++,y=Math.min(S.length,v.length));for(var _=-1;++_<y;)w+=S[_]^v[_];return w}(j,T.slice(0,D)))throw new Error("decryption error");for(var M=D;T[M]===0;)M++;if(T[M++]!==1)throw new Error("decryption error");return T.slice(M)}(m,b);if(d===1)return function(R,F,L){for(var j=F.slice(0,2),D=2,z=0;F[D++]!==0;)if(D>=F.length){z++;break}var $=F.slice(2,D-1);if((j.toString("hex")!=="0002"&&!L||j.toString("hex")!=="0001"&&L)&&z++,$.length<8&&z++,z)throw new Error("decryption error");return F.slice(D)}(0,b,h);if(d===3)return b;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(e,p,g){var u=e("parse-asn1"),i=e("randombytes"),o=e("create-hash"),r=e("./mgf"),t=e("./xor"),n=e("bn.js"),c=e("./withPublic"),s=e("browserify-rsa"),a=e("safe-buffer").Buffer;p.exports=function(f,h,d){var b;b=f.padding?f.padding:d?1:4;var m,x=u(f);if(b===4)m=function(k,R){var F=k.modulus.byteLength(),L=R.length,j=o("sha1").update(a.alloc(0)).digest(),D=j.length,z=2*D;if(L>F-z-2)throw new Error("message too long");var $=a.alloc(F-L-z-2),V=F-D-1,T=i(D),M=t(a.concat([j,$,a.alloc(1,1),R],V),r(T,V)),S=t(T,r(M,D));return new n(a.concat([a.alloc(1),S,M],F))}(x,h);else if(b===1)m=function(k,R,F){var L,j=R.length,D=k.modulus.byteLength();if(j>D-11)throw new Error("message too long");return L=F?a.alloc(D-j-3,255):function(z){for(var $,V=a.allocUnsafe(z),T=0,M=i(2*z),S=0;T<z;)S===M.length&&(M=i(2*z),S=0),($=M[S++])&&(V[T++]=$);return V}(D-j-3),new n(a.concat([a.from([0,F?1:2]),L,a.alloc(1),R],D))}(x,h,d);else{if(b!==3)throw new Error("unknown padding");if((m=new n(h)).cmp(x.modulus)>=0)throw new Error("data too long for modulus")}return d?s(m,x):c(m,x)}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,randombytes:475,"safe-buffer":494}],473:[function(e,p,g){var u=e("bn.js"),i=e("safe-buffer").Buffer;p.exports=function(o,r){return i.from(o.toRed(u.mont(r.modulus)).redPow(new u(r.publicExponent)).fromRed().toArray())}},{"bn.js":470,"safe-buffer":494}],474:[function(e,p,g){p.exports=function(u,i){for(var o=u.length,r=-1;++r<o;)u[r]^=i[r];return u}},{}],475:[function(e,p,g){(function(u,i){(function(){var o=e("safe-buffer").Buffer,r=i.crypto||i.msCrypto;r&&r.getRandomValues?p.exports=function(t,n){if(t>4294967295)throw new RangeError("requested too many random bytes");var c=o.allocUnsafe(t);if(t>0)if(t>65536)for(var s=0;s<t;s+=65536)r.getRandomValues(c.slice(s,s+65536));else r.getRandomValues(c);return typeof n=="function"?u.nextTick(function(){n(null,c)}):c}:p.exports=function(){throw new Error(`Secure random number generation is not supported by this browser.
21
- Use Chrome, Firefox or Internet Explorer 11`)}}).call(this)}).call(this,e("_process"),typeof Ye<"u"?Ye:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467,"safe-buffer":494}],476:[function(e,p,g){(function(u,i){(function(){function o(){throw new Error(`secure random number generation not supported by this browser
22
- use chrome, FireFox or Internet Explorer 11`)}var r=e("safe-buffer"),t=e("randombytes"),n=r.Buffer,c=r.kMaxLength,s=i.crypto||i.msCrypto,a=Math.pow(2,32)-1;function f(b,m){if(typeof b!="number"||b!=b)throw new TypeError("offset must be a number");if(b>a||b<0)throw new TypeError("offset must be a uint32");if(b>c||b>m)throw new RangeError("offset out of range")}function h(b,m,x){if(typeof b!="number"||b!=b)throw new TypeError("size must be a number");if(b>a||b<0)throw new TypeError("size must be a uint32");if(b+m>x||b>c)throw new RangeError("buffer too small")}function d(b,m,x,k){if(u.browser){var R=b.buffer,F=new Uint8Array(R,m,x);return s.getRandomValues(F),k?void u.nextTick(function(){k(null,b)}):b}if(!k)return t(x).copy(b,m),b;t(x,function(L,j){if(L)return k(L);j.copy(b,m),k(null,b)})}s&&s.getRandomValues||!u.browser?(g.randomFill=function(b,m,x,k){if(!(n.isBuffer(b)||b instanceof i.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof m=="function")k=m,m=0,x=b.length;else if(typeof x=="function")k=x,x=b.length-m;else if(typeof k!="function")throw new TypeError('"cb" argument must be a function');return f(m,b.length),h(x,m,b.length),d(b,m,x,k)},g.randomFillSync=function(b,m,x){if(m===void 0&&(m=0),!(n.isBuffer(b)||b instanceof i.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return f(m,b.length),x===void 0&&(x=b.length-m),h(x,m,b.length),d(b,m,x)}):(g.randomFill=o,g.randomFillSync=o)}).call(this)}).call(this,e("_process"),typeof Ye<"u"?Ye:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467,randombytes:475,"safe-buffer":494}],477:[function(e,p,g){var u={};function i(r,t,n){n||(n=Error);var c=function(s){var a,f;function h(d,b,m){return s.call(this,function(x,k,R){return typeof t=="string"?t:t(x,k,R)}(d,b,m))||this}return f=s,(a=h).prototype=Object.create(f.prototype),a.prototype.constructor=a,a.__proto__=f,h}(n);c.prototype.name=n.name,c.prototype.code=r,u[r]=c}function o(r,t){if(Array.isArray(r)){var n=r.length;return r=r.map(function(c){return String(c)}),n>2?"one of ".concat(t," ").concat(r.slice(0,n-1).join(", "),", or ")+r[n-1]:n===2?"one of ".concat(t," ").concat(r[0]," or ").concat(r[1]):"of ".concat(t," ").concat(r[0])}return"of ".concat(t," ").concat(String(r))}i("ERR_INVALID_OPT_VALUE",function(r,t){return'The value "'+t+'" is invalid for option "'+r+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(r,t,n){var c,s,a;if(typeof t=="string"&&(s="not ",t.substr(0,s.length)===s)?(c="must not be",t=t.replace(/^not /,"")):c="must be",function(h,d,b){return(b===void 0||b>h.length)&&(b=h.length),h.substring(b-d.length,b)===d}(r," argument"))a="The ".concat(r," ").concat(c," ").concat(o(t,"type"));else{var f=function(h,d,b){return typeof b!="number"&&(b=0),!(b+d.length>h.length)&&h.indexOf(d,b)!==-1}(r,".")?"property":"argument";a='The "'.concat(r,'" ').concat(f," ").concat(c," ").concat(o(t,"type"))}return a+=". Received type ".concat(typeof n)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),p.exports.codes=u},{}],478:[function(e,p,g){(function(u){(function(){var i=Object.keys||function(h){var d=[];for(var b in h)d.push(b);return d};p.exports=s;var o=e("./_stream_readable"),r=e("./_stream_writable");e("inherits")(s,o);for(var t=i(r.prototype),n=0;n<t.length;n++){var c=t[n];s.prototype[c]||(s.prototype[c]=r.prototype[c])}function s(h){if(!(this instanceof s))return new s(h);o.call(this,h),r.call(this,h),this.allowHalfOpen=!0,h&&(h.readable===!1&&(this.readable=!1),h.writable===!1&&(this.writable=!1),h.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",a)))}function a(){this._writableState.ended||u.nextTick(f,this)}function f(h){h.end()}Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(s.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(s.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(s.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(h){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=h,this._writableState.destroyed=h)}})}).call(this)}).call(this,e("_process"))},{"./_stream_readable":480,"./_stream_writable":482,_process:467,inherits:440}],479:[function(e,p,g){p.exports=i;var u=e("./_stream_transform");function i(o){if(!(this instanceof i))return new i(o);u.call(this,o)}e("inherits")(i,u),i.prototype._transform=function(o,r,t){t(null,o)}},{"./_stream_transform":481,inherits:440}],480:[function(e,p,g){(function(u,i){(function(){var o;p.exports=V,V.ReadableState=$,e("events").EventEmitter;var r=function(O,N){return O.listeners(N).length},t=e("./internal/streams/stream"),n=e("buffer").Buffer,c=(i!==void 0?i:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},s,a=e("util");s=a&&a.debuglog?a.debuglog("stream"):function(){};var f,h,d,b=e("./internal/streams/buffer_list"),m=e("./internal/streams/destroy"),x=e("./internal/streams/state").getHighWaterMark,k=e("../errors").codes,R=k.ERR_INVALID_ARG_TYPE,F=k.ERR_STREAM_PUSH_AFTER_EOF,L=k.ERR_METHOD_NOT_IMPLEMENTED,j=k.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(V,t);var D=m.errorOrDestroy,z=["error","close","destroy","pause","resume"];function $(O,N,U){o=o||e("./_stream_duplex"),O=O||{},typeof U!="boolean"&&(U=N instanceof o),this.objectMode=!!O.objectMode,U&&(this.objectMode=this.objectMode||!!O.readableObjectMode),this.highWaterMark=x(this,O,"readableHighWaterMark",U),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=O.emitClose!==!1,this.autoDestroy=!!O.autoDestroy,this.destroyed=!1,this.defaultEncoding=O.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,O.encoding&&(f||(f=e("string_decoder/").StringDecoder),this.decoder=new f(O.encoding),this.encoding=O.encoding)}function V(O){if(o=o||e("./_stream_duplex"),!(this instanceof V))return new V(O);var N=this instanceof o;this._readableState=new $(O,this,N),this.readable=!0,O&&(typeof O.read=="function"&&(this._read=O.read),typeof O.destroy=="function"&&(this._destroy=O.destroy)),t.call(this)}function T(O,N,U,X,Z){s("readableAddChunk",N);var G,J=O._readableState;if(N===null)J.reading=!1,function(ne,ie){if(s("onEofChunk"),!ie.ended){if(ie.decoder){var Y=ie.decoder.end();Y&&Y.length&&(ie.buffer.push(Y),ie.length+=ie.objectMode?1:Y.length)}ie.ended=!0,ie.sync?v(ne):(ie.needReadable=!1,ie.emittedReadable||(ie.emittedReadable=!0,w(ne)))}}(O,J);else if(Z||(G=function(ne,ie){var Y;te=ie,n.isBuffer(te)||te instanceof c||typeof ie=="string"||ie===void 0||ne.objectMode||(Y=new R("chunk",["string","Buffer","Uint8Array"],ie));var te;return Y}(J,N)),G)D(O,G);else if(J.objectMode||N&&N.length>0)if(typeof N=="string"||J.objectMode||Object.getPrototypeOf(N)===n.prototype||(N=function(ne){return n.from(ne)}(N)),X)J.endEmitted?D(O,new j):M(O,J,N,!0);else if(J.ended)D(O,new F);else{if(J.destroyed)return!1;J.reading=!1,J.decoder&&!U?(N=J.decoder.write(N),J.objectMode||N.length!==0?M(O,J,N,!1):y(O,J)):M(O,J,N,!1)}else X||(J.reading=!1,y(O,J));return!J.ended&&(J.length<J.highWaterMark||J.length===0)}function M(O,N,U,X){N.flowing&&N.length===0&&!N.sync?(N.awaitDrain=0,O.emit("data",U)):(N.length+=N.objectMode?1:U.length,X?N.buffer.unshift(U):N.buffer.push(U),N.needReadable&&v(O)),y(O,N)}Object.defineProperty(V.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(O){this._readableState&&(this._readableState.destroyed=O)}}),V.prototype.destroy=m.destroy,V.prototype._undestroy=m.undestroy,V.prototype._destroy=function(O,N){N(O)},V.prototype.push=function(O,N){var U,X=this._readableState;return X.objectMode?U=!0:typeof O=="string"&&((N=N||X.defaultEncoding)!==X.encoding&&(O=n.from(O,N),N=""),U=!0),T(this,O,N,!1,U)},V.prototype.unshift=function(O){return T(this,O,null,!0,!1)},V.prototype.isPaused=function(){return this._readableState.flowing===!1},V.prototype.setEncoding=function(O){f||(f=e("string_decoder/").StringDecoder);var N=new f(O);this._readableState.decoder=N,this._readableState.encoding=this._readableState.decoder.encoding;for(var U=this._readableState.buffer.head,X="";U!==null;)X+=N.write(U.data),U=U.next;return this._readableState.buffer.clear(),X!==""&&this._readableState.buffer.push(X),this._readableState.length=X.length,this};function S(O,N){return O<=0||N.length===0&&N.ended?0:N.objectMode?1:O!=O?N.flowing&&N.length?N.buffer.head.data.length:N.length:(O>N.highWaterMark&&(N.highWaterMark=function(U){return U>=1073741824?U=1073741824:(U--,U|=U>>>1,U|=U>>>2,U|=U>>>4,U|=U>>>8,U|=U>>>16,U++),U}(O)),O<=N.length?O:N.ended?N.length:(N.needReadable=!0,0))}function v(O){var N=O._readableState;s("emitReadable",N.needReadable,N.emittedReadable),N.needReadable=!1,N.emittedReadable||(s("emitReadable",N.flowing),N.emittedReadable=!0,u.nextTick(w,O))}function w(O){var N=O._readableState;s("emitReadable_",N.destroyed,N.length,N.ended),N.destroyed||!N.length&&!N.ended||(O.emit("readable"),N.emittedReadable=!1),N.needReadable=!N.flowing&&!N.ended&&N.length<=N.highWaterMark,H(O)}function y(O,N){N.readingMore||(N.readingMore=!0,u.nextTick(_,O,N))}function _(O,N){for(;!N.reading&&!N.ended&&(N.length<N.highWaterMark||N.flowing&&N.length===0);){var U=N.length;if(s("maybeReadMore read 0"),O.read(0),U===N.length)break}N.readingMore=!1}function C(O){var N=O._readableState;N.readableListening=O.listenerCount("readable")>0,N.resumeScheduled&&!N.paused?N.flowing=!0:O.listenerCount("data")>0&&O.resume()}function I(O){s("readable nexttick read 0"),O.read(0)}function P(O,N){s("resume",N.reading),N.reading||O.read(0),N.resumeScheduled=!1,O.emit("resume"),H(O),N.flowing&&!N.reading&&O.read(0)}function H(O){var N=O._readableState;for(s("flow",N.flowing);N.flowing&&O.read()!==null;);}function W(O,N){return N.length===0?null:(N.objectMode?U=N.buffer.shift():!O||O>=N.length?(U=N.decoder?N.buffer.join(""):N.buffer.length===1?N.buffer.first():N.buffer.concat(N.length),N.buffer.clear()):U=N.buffer.consume(O,N.decoder),U);var U}function K(O){var N=O._readableState;s("endReadable",N.endEmitted),N.endEmitted||(N.ended=!0,u.nextTick(B,N,O))}function B(O,N){if(s("endReadableNT",O.endEmitted,O.length),!O.endEmitted&&O.length===0&&(O.endEmitted=!0,N.readable=!1,N.emit("end"),O.autoDestroy)){var U=N._writableState;(!U||U.autoDestroy&&U.finished)&&N.destroy()}}function q(O,N){for(var U=0,X=O.length;U<X;U++)if(O[U]===N)return U;return-1}V.prototype.read=function(O){s("read",O),O=parseInt(O,10);var N=this._readableState,U=O;if(O!==0&&(N.emittedReadable=!1),O===0&&N.needReadable&&((N.highWaterMark!==0?N.length>=N.highWaterMark:N.length>0)||N.ended))return s("read: emitReadable",N.length,N.ended),N.length===0&&N.ended?K(this):v(this),null;if((O=S(O,N))===0&&N.ended)return N.length===0&&K(this),null;var X,Z=N.needReadable;return s("need readable",Z),(N.length===0||N.length-O<N.highWaterMark)&&s("length less than watermark",Z=!0),N.ended||N.reading?s("reading or ended",Z=!1):Z&&(s("do read"),N.reading=!0,N.sync=!0,N.length===0&&(N.needReadable=!0),this._read(N.highWaterMark),N.sync=!1,N.reading||(O=S(U,N))),(X=O>0?W(O,N):null)===null?(N.needReadable=N.length<=N.highWaterMark,O=0):(N.length-=O,N.awaitDrain=0),N.length===0&&(N.ended||(N.needReadable=!0),U!==O&&N.ended&&K(this)),X!==null&&this.emit("data",X),X},V.prototype._read=function(O){D(this,new L("_read()"))},V.prototype.pipe=function(O,N){var U=this,X=this._readableState;switch(X.pipesCount){case 0:X.pipes=O;break;case 1:X.pipes=[X.pipes,O];break;default:X.pipes.push(O)}X.pipesCount+=1,s("pipe count=%d opts=%j",X.pipesCount,N);var Z=(!N||N.end!==!1)&&O!==u.stdout&&O!==u.stderr?J:se;function G(le,ce){s("onunpipe"),le===U&&ce&&ce.hasUnpiped===!1&&(ce.hasUnpiped=!0,s("cleanup"),O.removeListener("close",ee),O.removeListener("finish",ae),O.removeListener("drain",ne),O.removeListener("error",te),O.removeListener("unpipe",G),U.removeListener("end",J),U.removeListener("end",se),U.removeListener("data",Y),ie=!0,!X.awaitDrain||O._writableState&&!O._writableState.needDrain||ne())}function J(){s("onend"),O.end()}X.endEmitted?u.nextTick(Z):U.once("end",Z),O.on("unpipe",G);var ne=function(le){return function(){var ce=le._readableState;s("pipeOnDrain",ce.awaitDrain),ce.awaitDrain&&ce.awaitDrain--,ce.awaitDrain===0&&r(le,"data")&&(ce.flowing=!0,H(le))}}(U);O.on("drain",ne);var ie=!1;function Y(le){s("ondata");var ce=O.write(le);s("dest.write",ce),ce===!1&&((X.pipesCount===1&&X.pipes===O||X.pipesCount>1&&q(X.pipes,O)!==-1)&&!ie&&(s("false write response, pause",X.awaitDrain),X.awaitDrain++),U.pause())}function te(le){s("onerror",le),se(),O.removeListener("error",te),r(O,"error")===0&&D(O,le)}function ee(){O.removeListener("finish",ae),se()}function ae(){s("onfinish"),O.removeListener("close",ee),se()}function se(){s("unpipe"),U.unpipe(O)}return U.on("data",Y),function(le,ce,de){if(typeof le.prependListener=="function")return le.prependListener(ce,de);le._events&&le._events[ce]?Array.isArray(le._events[ce])?le._events[ce].unshift(de):le._events[ce]=[de,le._events[ce]]:le.on(ce,de)}(O,"error",te),O.once("close",ee),O.once("finish",ae),O.emit("pipe",U),X.flowing||(s("pipe resume"),U.resume()),O},V.prototype.unpipe=function(O){var N=this._readableState,U={hasUnpiped:!1};if(N.pipesCount===0)return this;if(N.pipesCount===1)return O&&O!==N.pipes||(O||(O=N.pipes),N.pipes=null,N.pipesCount=0,N.flowing=!1,O&&O.emit("unpipe",this,U)),this;if(!O){var X=N.pipes,Z=N.pipesCount;N.pipes=null,N.pipesCount=0,N.flowing=!1;for(var G=0;G<Z;G++)X[G].emit("unpipe",this,{hasUnpiped:!1});return this}var J=q(N.pipes,O);return J===-1||(N.pipes.splice(J,1),N.pipesCount-=1,N.pipesCount===1&&(N.pipes=N.pipes[0]),O.emit("unpipe",this,U)),this},V.prototype.on=function(O,N){var U=t.prototype.on.call(this,O,N),X=this._readableState;return O==="data"?(X.readableListening=this.listenerCount("readable")>0,X.flowing!==!1&&this.resume()):O==="readable"&&(X.endEmitted||X.readableListening||(X.readableListening=X.needReadable=!0,X.flowing=!1,X.emittedReadable=!1,s("on readable",X.length,X.reading),X.length?v(this):X.reading||u.nextTick(I,this))),U},V.prototype.addListener=V.prototype.on,V.prototype.removeListener=function(O,N){var U=t.prototype.removeListener.call(this,O,N);return O==="readable"&&u.nextTick(C,this),U},V.prototype.removeAllListeners=function(O){var N=t.prototype.removeAllListeners.apply(this,arguments);return O!=="readable"&&O!==void 0||u.nextTick(C,this),N},V.prototype.resume=function(){var O=this._readableState;return O.flowing||(s("resume"),O.flowing=!O.readableListening,function(N,U){U.resumeScheduled||(U.resumeScheduled=!0,u.nextTick(P,N,U))}(this,O)),O.paused=!1,this},V.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},V.prototype.wrap=function(O){var N=this,U=this._readableState,X=!1;for(var Z in O.on("end",function(){if(s("wrapped end"),U.decoder&&!U.ended){var J=U.decoder.end();J&&J.length&&N.push(J)}N.push(null)}),O.on("data",function(J){s("wrapped data"),U.decoder&&(J=U.decoder.write(J)),U.objectMode&&J==null||(U.objectMode||J&&J.length)&&(N.push(J)||(X=!0,O.pause()))}),O)this[Z]===void 0&&typeof O[Z]=="function"&&(this[Z]=function(J){return function(){return O[J].apply(O,arguments)}}(Z));for(var G=0;G<z.length;G++)O.on(z[G],this.emit.bind(this,z[G]));return this._read=function(J){s("wrapped _read",J),X&&(X=!1,O.resume())},this},typeof Symbol=="function"&&(V.prototype[Symbol.asyncIterator]=function(){return h===void 0&&(h=e("./internal/streams/async_iterator")),h(this)}),Object.defineProperty(V.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(V.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(V.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(O){this._readableState&&(this._readableState.flowing=O)}}),V._fromList=W,Object.defineProperty(V.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(V.from=function(O,N){return d===void 0&&(d=e("./internal/streams/from")),d(V,O,N)})}).call(this)}).call(this,e("_process"),typeof Ye<"u"?Ye:typeof self<"u"?self:typeof window<"u"?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/async_iterator":483,"./internal/streams/buffer_list":484,"./internal/streams/destroy":485,"./internal/streams/from":487,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,events:422,inherits:440,"string_decoder/":522,util:188}],481:[function(e,p,g){p.exports=s;var u=e("../errors").codes,i=u.ERR_METHOD_NOT_IMPLEMENTED,o=u.ERR_MULTIPLE_CALLBACK,r=u.ERR_TRANSFORM_ALREADY_TRANSFORMING,t=u.ERR_TRANSFORM_WITH_LENGTH_0,n=e("./_stream_duplex");function c(h,d){var b=this._transformState;b.transforming=!1;var m=b.writecb;if(m===null)return this.emit("error",new o);b.writechunk=null,b.writecb=null,d!=null&&this.push(d),m(h);var x=this._readableState;x.reading=!1,(x.needReadable||x.length<x.highWaterMark)&&this._read(x.highWaterMark)}function s(h){if(!(this instanceof s))return new s(h);n.call(this,h),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,h&&(typeof h.transform=="function"&&(this._transform=h.transform),typeof h.flush=="function"&&(this._flush=h.flush)),this.on("prefinish",a)}function a(){var h=this;typeof this._flush!="function"||this._readableState.destroyed?f(this,null,null):this._flush(function(d,b){f(h,d,b)})}function f(h,d,b){if(d)return h.emit("error",d);if(b!=null&&h.push(b),h._writableState.length)throw new t;if(h._transformState.transforming)throw new r;return h.push(null)}e("inherits")(s,n),s.prototype.push=function(h,d){return this._transformState.needTransform=!1,n.prototype.push.call(this,h,d)},s.prototype._transform=function(h,d,b){b(new i("_transform()"))},s.prototype._write=function(h,d,b){var m=this._transformState;if(m.writecb=b,m.writechunk=h,m.writeencoding=d,!m.transforming){var x=this._readableState;(m.needTransform||x.needReadable||x.length<x.highWaterMark)&&this._read(x.highWaterMark)}},s.prototype._read=function(h){var d=this._transformState;d.writechunk===null||d.transforming?d.needTransform=!0:(d.transforming=!0,this._transform(d.writechunk,d.writeencoding,d.afterTransform))},s.prototype._destroy=function(h,d){n.prototype._destroy.call(this,h,function(b){d(b)})}},{"../errors":477,"./_stream_duplex":478,inherits:440}],482:[function(e,p,g){(function(u,i){(function(){function o(_){var C=this;this.next=null,this.entry=null,this.finish=function(){(function(I,P,H){var W=I.entry;for(I.entry=null;W;){var K=W.callback;P.pendingcb--,K(H),W=W.next}P.corkedRequestsFree.next=I})(C,_)}}var r;p.exports=V,V.WritableState=$;var t={deprecate:e("util-deprecate")},n=e("./internal/streams/stream"),c=e("buffer").Buffer,s=(i!==void 0?i:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},a,f=e("./internal/streams/destroy"),h=e("./internal/streams/state").getHighWaterMark,d=e("../errors").codes,b=d.ERR_INVALID_ARG_TYPE,m=d.ERR_METHOD_NOT_IMPLEMENTED,x=d.ERR_MULTIPLE_CALLBACK,k=d.ERR_STREAM_CANNOT_PIPE,R=d.ERR_STREAM_DESTROYED,F=d.ERR_STREAM_NULL_VALUES,L=d.ERR_STREAM_WRITE_AFTER_END,j=d.ERR_UNKNOWN_ENCODING,D=f.errorOrDestroy;function z(){}function $(_,C,I){r=r||e("./_stream_duplex"),_=_||{},typeof I!="boolean"&&(I=C instanceof r),this.objectMode=!!_.objectMode,I&&(this.objectMode=this.objectMode||!!_.writableObjectMode),this.highWaterMark=h(this,_,"writableHighWaterMark",I),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var P=_.decodeStrings===!1;this.decodeStrings=!P,this.defaultEncoding=_.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(H){(function(W,K){var B=W._writableState,q=B.sync,O=B.writecb;if(typeof O!="function")throw new x;if(function(U){U.writing=!1,U.writecb=null,U.length-=U.writelen,U.writelen=0}(B),K)(function(U,X,Z,G,J){--X.pendingcb,Z?(u.nextTick(J,G),u.nextTick(y,U,X),U._writableState.errorEmitted=!0,D(U,G)):(J(G),U._writableState.errorEmitted=!0,D(U,G),y(U,X))})(W,B,q,K,O);else{var N=v(B)||W.destroyed;N||B.corked||B.bufferProcessing||!B.bufferedRequest||S(W,B),q?u.nextTick(M,W,B,N,O):M(W,B,N,O)}})(C,H)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=_.emitClose!==!1,this.autoDestroy=!!_.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function V(_){var C=this instanceof(r=r||e("./_stream_duplex"));if(!C&&!a.call(V,this))return new V(_);this._writableState=new $(_,this,C),this.writable=!0,_&&(typeof _.write=="function"&&(this._write=_.write),typeof _.writev=="function"&&(this._writev=_.writev),typeof _.destroy=="function"&&(this._destroy=_.destroy),typeof _.final=="function"&&(this._final=_.final)),n.call(this)}function T(_,C,I,P,H,W,K){C.writelen=P,C.writecb=K,C.writing=!0,C.sync=!0,C.destroyed?C.onwrite(new R("write")):I?_._writev(H,C.onwrite):_._write(H,W,C.onwrite),C.sync=!1}function M(_,C,I,P){I||function(H,W){W.length===0&&W.needDrain&&(W.needDrain=!1,H.emit("drain"))}(_,C),C.pendingcb--,P(),y(_,C)}function S(_,C){C.bufferProcessing=!0;var I=C.bufferedRequest;if(_._writev&&I&&I.next){var P=C.bufferedRequestCount,H=new Array(P),W=C.corkedRequestsFree;W.entry=I;for(var K=0,B=!0;I;)H[K]=I,I.isBuf||(B=!1),I=I.next,K+=1;H.allBuffers=B,T(_,C,!0,C.length,H,"",W.finish),C.pendingcb++,C.lastBufferedRequest=null,W.next?(C.corkedRequestsFree=W.next,W.next=null):C.corkedRequestsFree=new o(C),C.bufferedRequestCount=0}else{for(;I;){var q=I.chunk,O=I.encoding,N=I.callback;if(T(_,C,!1,C.objectMode?1:q.length,q,O,N),I=I.next,C.bufferedRequestCount--,C.writing)break}I===null&&(C.lastBufferedRequest=null)}C.bufferedRequest=I,C.bufferProcessing=!1}function v(_){return _.ending&&_.length===0&&_.bufferedRequest===null&&!_.finished&&!_.writing}function w(_,C){_._final(function(I){C.pendingcb--,I&&D(_,I),C.prefinished=!0,_.emit("prefinish"),y(_,C)})}function y(_,C){var I=v(C);if(I&&(function(H,W){W.prefinished||W.finalCalled||(typeof H._final!="function"||W.destroyed?(W.prefinished=!0,H.emit("prefinish")):(W.pendingcb++,W.finalCalled=!0,u.nextTick(w,H,W)))}(_,C),C.pendingcb===0&&(C.finished=!0,_.emit("finish"),C.autoDestroy))){var P=_._readableState;(!P||P.autoDestroy&&P.endEmitted)&&_.destroy()}return I}e("inherits")(V,n),$.prototype.getBuffer=function(){for(var _=this.bufferedRequest,C=[];_;)C.push(_),_=_.next;return C},function(){try{Object.defineProperty($.prototype,"buffer",{get:t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(V,Symbol.hasInstance,{value:function(_){return!!a.call(this,_)||this===V&&_&&_._writableState instanceof $}})):a=function(_){return _ instanceof this},V.prototype.pipe=function(){D(this,new k)},V.prototype.write=function(_,C,I){var P,H=this._writableState,W=!1,K=!H.objectMode&&(P=_,c.isBuffer(P)||P instanceof s);return K&&!c.isBuffer(_)&&(_=function(B){return c.from(B)}(_)),typeof C=="function"&&(I=C,C=null),K?C="buffer":C||(C=H.defaultEncoding),typeof I!="function"&&(I=z),H.ending?function(B,q){var O=new L;D(B,O),u.nextTick(q,O)}(this,I):(K||function(B,q,O,N){var U;return O===null?U=new F:typeof O=="string"||q.objectMode||(U=new b("chunk",["string","Buffer"],O)),!U||(D(B,U),u.nextTick(N,U),!1)}(this,H,_,I))&&(H.pendingcb++,W=function(B,q,O,N,U,X){if(!O){var Z=function(ie,Y,te){return ie.objectMode||ie.decodeStrings===!1||typeof Y!="string"||(Y=c.from(Y,te)),Y}(q,N,U);N!==Z&&(O=!0,U="buffer",N=Z)}var G=q.objectMode?1:N.length;q.length+=G;var J=q.length<q.highWaterMark;if(J||(q.needDrain=!0),q.writing||q.corked){var ne=q.lastBufferedRequest;q.lastBufferedRequest={chunk:N,encoding:U,isBuf:O,callback:X,next:null},ne?ne.next=q.lastBufferedRequest:q.bufferedRequest=q.lastBufferedRequest,q.bufferedRequestCount+=1}else T(B,q,!1,G,N,U,X);return J}(this,H,K,_,C,I)),W},V.prototype.cork=function(){this._writableState.corked++},V.prototype.uncork=function(){var _=this._writableState;_.corked&&(_.corked--,_.writing||_.corked||_.bufferProcessing||!_.bufferedRequest||S(this,_))},V.prototype.setDefaultEncoding=function(_){if(typeof _=="string"&&(_=_.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((_+"").toLowerCase())>-1))throw new j(_);return this._writableState.defaultEncoding=_,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(_,C,I){I(new m("_write()"))},V.prototype._writev=null,V.prototype.end=function(_,C,I){var P=this._writableState;return typeof _=="function"?(I=_,_=null,C=null):typeof C=="function"&&(I=C,C=null),_!=null&&this.write(_,C),P.corked&&(P.corked=1,this.uncork()),P.ending||function(H,W,K){W.ending=!0,y(H,W),K&&(W.finished?u.nextTick(K):H.once("finish",K)),W.ended=!0,H.writable=!1}(this,P,I),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(_){this._writableState&&(this._writableState.destroyed=_)}}),V.prototype.destroy=f.destroy,V.prototype._undestroy=f.undestroy,V.prototype._destroy=function(_,C){C(_)}}).call(this)}).call(this,e("_process"),typeof Ye<"u"?Ye:typeof self<"u"?self:typeof window<"u"?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/destroy":485,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,inherits:440,"util-deprecate":524}],483:[function(e,p,g){(function(u){(function(){var i;function o(R,F,L){return(F=function(j){var D=function(z,$){if(typeof z!="object"||z===null)return z;var V=z[Symbol.toPrimitive];if(V!==void 0){var T=V.call(z,$||"default");if(typeof T!="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(z)}(j,"string");return typeof D=="symbol"?D:String(D)}(F))in R?Object.defineProperty(R,F,{value:L,enumerable:!0,configurable:!0,writable:!0}):R[F]=L,R}var r=e("./end-of-stream"),t=Symbol("lastResolve"),n=Symbol("lastReject"),c=Symbol("error"),s=Symbol("ended"),a=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream");function d(R,F){return{value:R,done:F}}function b(R){var F=R[t];if(F!==null){var L=R[h].read();L!==null&&(R[a]=null,R[t]=null,R[n]=null,F(d(L,!1)))}}function m(R){u.nextTick(b,R)}var x=Object.getPrototypeOf(function(){}),k=Object.setPrototypeOf((o(i={get stream(){return this[h]},next:function(){var R=this,F=this[c];if(F!==null)return Promise.reject(F);if(this[s])return Promise.resolve(d(void 0,!0));if(this[h].destroyed)return new Promise(function(z,$){u.nextTick(function(){R[c]?$(R[c]):z(d(void 0,!0))})});var L,j=this[a];if(j)L=new Promise(function(z,$){return function(V,T){z.then(function(){$[s]?V(d(void 0,!0)):$[f](V,T)},T)}}(j,this));else{var D=this[h].read();if(D!==null)return Promise.resolve(d(D,!1));L=new Promise(this[f])}return this[a]=L,L}},Symbol.asyncIterator,function(){return this}),o(i,"return",function(){var R=this;return new Promise(function(F,L){R[h].destroy(null,function(j){j?L(j):F(d(void 0,!0))})})}),i),x);p.exports=function(R){var F,L=Object.create(k,(o(F={},h,{value:R,writable:!0}),o(F,t,{value:null,writable:!0}),o(F,n,{value:null,writable:!0}),o(F,c,{value:null,writable:!0}),o(F,s,{value:R._readableState.endEmitted,writable:!0}),o(F,f,{value:function(j,D){var z=L[h].read();z?(L[a]=null,L[t]=null,L[n]=null,j(d(z,!1))):(L[t]=j,L[n]=D)},writable:!0}),F));return L[a]=null,r(R,function(j){if(j&&j.code!=="ERR_STREAM_PREMATURE_CLOSE"){var D=L[n];return D!==null&&(L[a]=null,L[t]=null,L[n]=null,D(j)),void(L[c]=j)}var z=L[t];z!==null&&(L[a]=null,L[t]=null,L[n]=null,z(d(void 0,!0))),L[s]=!0}),R.on("readable",m.bind(null,L)),L}}).call(this)}).call(this,e("_process"))},{"./end-of-stream":486,_process:467}],484:[function(e,p,g){function u(a,f){var h=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);f&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),h.push.apply(h,d)}return h}function i(a){for(var f=1;f<arguments.length;f++){var h=arguments[f]!=null?arguments[f]:{};f%2?u(Object(h),!0).forEach(function(d){o(a,d,h[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(h)):u(Object(h)).forEach(function(d){Object.defineProperty(a,d,Object.getOwnPropertyDescriptor(h,d))})}return a}function o(a,f,h){return(f=t(f))in a?Object.defineProperty(a,f,{value:h,enumerable:!0,configurable:!0,writable:!0}):a[f]=h,a}function r(a,f){for(var h=0;h<f.length;h++){var d=f[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,t(d.key),d)}}function t(a){var f=function(h,d){if(typeof h!="object"||h===null)return h;var b=h[Symbol.toPrimitive];if(b!==void 0){var m=b.call(h,d||"default");if(typeof m!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(h)}(a,"string");return typeof f=="symbol"?f:String(f)}var n=e("buffer").Buffer,c=e("util").inspect,s=c&&c.custom||"inspect";p.exports=function(){function a(){(function(d,b){if(!(d instanceof b))throw new TypeError("Cannot call a class as a function")})(this,a),this.head=null,this.tail=null,this.length=0}var f,h;return f=a,(h=[{key:"push",value:function(d){var b={data:d,next:null};this.length>0?this.tail.next=b:this.head=b,this.tail=b,++this.length}},{key:"unshift",value:function(d){var b={data:d,next:this.head};this.length===0&&(this.tail=b),this.head=b,++this.length}},{key:"shift",value:function(){if(this.length!==0){var d=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,d}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(d){if(this.length===0)return"";for(var b=this.head,m=""+b.data;b=b.next;)m+=d+b.data;return m}},{key:"concat",value:function(d){if(this.length===0)return n.alloc(0);for(var b,m,x,k=n.allocUnsafe(d>>>0),R=this.head,F=0;R;)b=R.data,m=k,x=F,n.prototype.copy.call(b,m,x),F+=R.data.length,R=R.next;return k}},{key:"consume",value:function(d,b){var m;return d<this.head.data.length?(m=this.head.data.slice(0,d),this.head.data=this.head.data.slice(d)):m=d===this.head.data.length?this.shift():b?this._getString(d):this._getBuffer(d),m}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(d){var b=this.head,m=1,x=b.data;for(d-=x.length;b=b.next;){var k=b.data,R=d>k.length?k.length:d;if(R===k.length?x+=k:x+=k.slice(0,d),(d-=R)==0){R===k.length?(++m,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=k.slice(R));break}++m}return this.length-=m,x}},{key:"_getBuffer",value:function(d){var b=n.allocUnsafe(d),m=this.head,x=1;for(m.data.copy(b),d-=m.data.length;m=m.next;){var k=m.data,R=d>k.length?k.length:d;if(k.copy(b,b.length-d,0,R),(d-=R)==0){R===k.length?(++x,m.next?this.head=m.next:this.head=this.tail=null):(this.head=m,m.data=k.slice(R));break}++x}return this.length-=x,b}},{key:s,value:function(d,b){return c(this,i(i({},b),{},{depth:0,customInspect:!1}))}}])&&r(f.prototype,h),Object.defineProperty(f,"prototype",{writable:!1}),a}()},{buffer:220,util:188}],485:[function(e,p,g){(function(u){(function(){function i(t,n){r(t,n),o(t)}function o(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function r(t,n){t.emit("error",n)}p.exports={destroy:function(t,n){var c=this,s=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return s||a?(n?n(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,u.nextTick(r,this,t)):u.nextTick(r,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(f){!n&&f?c._writableState?c._writableState.errorEmitted?u.nextTick(o,c):(c._writableState.errorEmitted=!0,u.nextTick(i,c,f)):u.nextTick(i,c,f):n?(u.nextTick(o,c),n(f)):u.nextTick(o,c)}),this)},undestroy:function(){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)},errorOrDestroy:function(t,n){var c=t._readableState,s=t._writableState;c&&c.autoDestroy||s&&s.autoDestroy?t.destroy(n):t.emit("error",n)}}}).call(this)}).call(this,e("_process"))},{_process:467}],486:[function(e,p,g){var u=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}p.exports=function o(r,t,n){if(typeof t=="function")return o(r,null,t);t||(t={}),n=function(R){var F=!1;return function(){if(!F){F=!0;for(var L=arguments.length,j=new Array(L),D=0;D<L;D++)j[D]=arguments[D];R.apply(this,j)}}}(n||i);var c=t.readable||t.readable!==!1&&r.readable,s=t.writable||t.writable!==!1&&r.writable,a=function(){r.writable||h()},f=r._writableState&&r._writableState.finished,h=function(){s=!1,f=!0,c||n.call(r)},d=r._readableState&&r._readableState.endEmitted,b=function(){c=!1,d=!0,s||n.call(r)},m=function(R){n.call(r,R)},x=function(){var R;return c&&!d?(r._readableState&&r._readableState.ended||(R=new u),n.call(r,R)):s&&!f?(r._writableState&&r._writableState.ended||(R=new u),n.call(r,R)):void 0},k=function(){r.req.on("finish",h)};return function(R){return R.setHeader&&typeof R.abort=="function"}(r)?(r.on("complete",h),r.on("abort",x),r.req?k():r.on("request",k)):s&&!r._writableState&&(r.on("end",a),r.on("close",a)),r.on("end",b),r.on("finish",h),t.error!==!1&&r.on("error",m),r.on("close",x),function(){r.removeListener("complete",h),r.removeListener("abort",x),r.removeListener("request",k),r.req&&r.req.removeListener("finish",h),r.removeListener("end",a),r.removeListener("close",a),r.removeListener("finish",h),r.removeListener("end",b),r.removeListener("error",m),r.removeListener("close",x)}}},{"../../../errors":477}],487:[function(e,p,g){p.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],488:[function(e,p,g){var u,i=e("../../../errors").codes,o=i.ERR_MISSING_ARGS,r=i.ERR_STREAM_DESTROYED;function t(f){if(f)throw f}function n(f,h,d,b){b=function(k){var R=!1;return function(){R||(R=!0,k.apply(void 0,arguments))}}(b);var m=!1;f.on("close",function(){m=!0}),u===void 0&&(u=e("./end-of-stream")),u(f,{readable:h,writable:d},function(k){if(k)return b(k);m=!0,b()});var x=!1;return function(k){if(!m&&!x)return x=!0,function(R){return R.setHeader&&typeof R.abort=="function"}(f)?f.abort():typeof f.destroy=="function"?f.destroy():void b(k||new r("pipe"))}}function c(f){f()}function s(f,h){return f.pipe(h)}function a(f){return f.length?typeof f[f.length-1]!="function"?t:f.pop():t}p.exports=function(){for(var f=arguments.length,h=new Array(f),d=0;d<f;d++)h[d]=arguments[d];var b,m=a(h);if(Array.isArray(h[0])&&(h=h[0]),h.length<2)throw new o("streams");var x=h.map(function(k,R){var F=R<h.length-1;return n(k,F,R>0,function(L){b||(b=L),L&&x.forEach(c),F||(x.forEach(c),m(b))})});return h.reduce(s)}},{"../../../errors":477,"./end-of-stream":486}],489:[function(e,p,g){var u=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;p.exports={getHighWaterMark:function(i,o,r,t){var n=function(c,s,a){return c.highWaterMark!=null?c.highWaterMark:s?c[a]:null}(o,t,r);if(n!=null){if(!isFinite(n)||Math.floor(n)!==n||n<0)throw new u(t?r:"highWaterMark",n);return Math.floor(n)}return i.objectMode?16:16384}}},{"../../../errors":477}],490:[function(e,p,g){p.exports=e("events").EventEmitter},{events:422}],491:[function(e,p,g){(g=p.exports=e("./lib/_stream_readable.js")).Stream=g,g.Readable=g,g.Writable=e("./lib/_stream_writable.js"),g.Duplex=e("./lib/_stream_duplex.js"),g.Transform=e("./lib/_stream_transform.js"),g.PassThrough=e("./lib/_stream_passthrough.js"),g.finished=e("./lib/internal/streams/end-of-stream.js"),g.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":478,"./lib/_stream_passthrough.js":479,"./lib/_stream_readable.js":480,"./lib/_stream_transform.js":481,"./lib/_stream_writable.js":482,"./lib/internal/streams/end-of-stream.js":486,"./lib/internal/streams/pipeline.js":488}],492:[function(e,p,g){var u=function(i){var o=Object.prototype,r=o.hasOwnProperty,t=Object.defineProperty||function(y,_,C){y[_]=C.value},n=typeof Symbol=="function"?Symbol:{},c=n.iterator||"@@iterator",s=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function f(y,_,C){return Object.defineProperty(y,_,{value:C,enumerable:!0,configurable:!0,writable:!0}),y[_]}try{f({},"")}catch{f=function(_,C,I){return _[C]=I}}function h(y,_,C,I){var P=_&&_.prototype instanceof m?_:m,H=Object.create(P.prototype),W=new S(I||[]);return t(H,"_invoke",{value:$(y,C,W)}),H}function d(y,_,C){try{return{type:"normal",arg:y.call(_,C)}}catch(I){return{type:"throw",arg:I}}}i.wrap=h;var b={};function m(){}function x(){}function k(){}var R={};f(R,c,function(){return this});var F=Object.getPrototypeOf,L=F&&F(F(v([])));L&&L!==o&&r.call(L,c)&&(R=L);var j=k.prototype=m.prototype=Object.create(R);function D(y){["next","throw","return"].forEach(function(_){f(y,_,function(C){return this._invoke(_,C)})})}function z(y,_){var C;t(this,"_invoke",{value:function(I,P){function H(){return new _(function(W,K){(function B(q,O,N,U){var X=d(y[q],y,O);if(X.type!=="throw"){var Z=X.arg,G=Z.value;return G&&typeof G=="object"&&r.call(G,"__await")?_.resolve(G.__await).then(function(J){B("next",J,N,U)},function(J){B("throw",J,N,U)}):_.resolve(G).then(function(J){Z.value=J,N(Z)},function(J){return B("throw",J,N,U)})}U(X.arg)})(I,P,W,K)})}return C=C?C.then(H,H):H()}})}function $(y,_,C){var I="suspendedStart";return function(P,H){if(I==="executing")throw new Error("Generator is already running");if(I==="completed"){if(P==="throw")throw H;return w()}for(C.method=P,C.arg=H;;){var W=C.delegate;if(W){var K=V(W,C);if(K){if(K===b)continue;return K}}if(C.method==="next")C.sent=C._sent=C.arg;else if(C.method==="throw"){if(I==="suspendedStart")throw I="completed",C.arg;C.dispatchException(C.arg)}else C.method==="return"&&C.abrupt("return",C.arg);I="executing";var B=d(y,_,C);if(B.type==="normal"){if(I=C.done?"completed":"suspendedYield",B.arg===b)continue;return{value:B.arg,done:C.done}}B.type==="throw"&&(I="completed",C.method="throw",C.arg=B.arg)}}}function V(y,_){var C=_.method,I=y.iterator[C];if(I===void 0)return _.delegate=null,C==="throw"&&y.iterator.return&&(_.method="return",_.arg=void 0,V(y,_),_.method==="throw")||C!=="return"&&(_.method="throw",_.arg=new TypeError("The iterator does not provide a '"+C+"' method")),b;var P=d(I,y.iterator,_.arg);if(P.type==="throw")return _.method="throw",_.arg=P.arg,_.delegate=null,b;var H=P.arg;return H?H.done?(_[y.resultName]=H.value,_.next=y.nextLoc,_.method!=="return"&&(_.method="next",_.arg=void 0),_.delegate=null,b):H:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,b)}function T(y){var _={tryLoc:y[0]};1 in y&&(_.catchLoc=y[1]),2 in y&&(_.finallyLoc=y[2],_.afterLoc=y[3]),this.tryEntries.push(_)}function M(y){var _=y.completion||{};_.type="normal",delete _.arg,y.completion=_}function S(y){this.tryEntries=[{tryLoc:"root"}],y.forEach(T,this),this.reset(!0)}function v(y){if(y){var _=y[c];if(_)return _.call(y);if(typeof y.next=="function")return y;if(!isNaN(y.length)){var C=-1,I=function P(){for(;++C<y.length;)if(r.call(y,C))return P.value=y[C],P.done=!1,P;return P.value=void 0,P.done=!0,P};return I.next=I}}return{next:w}}function w(){return{value:void 0,done:!0}}return x.prototype=k,t(j,"constructor",{value:k,configurable:!0}),t(k,"constructor",{value:x,configurable:!0}),x.displayName=f(k,a,"GeneratorFunction"),i.isGeneratorFunction=function(y){var _=typeof y=="function"&&y.constructor;return!!_&&(_===x||(_.displayName||_.name)==="GeneratorFunction")},i.mark=function(y){return Object.setPrototypeOf?Object.setPrototypeOf(y,k):(y.__proto__=k,f(y,a,"GeneratorFunction")),y.prototype=Object.create(j),y},i.awrap=function(y){return{__await:y}},D(z.prototype),f(z.prototype,s,function(){return this}),i.AsyncIterator=z,i.async=function(y,_,C,I,P){P===void 0&&(P=Promise);var H=new z(h(y,_,C,I),P);return i.isGeneratorFunction(_)?H:H.next().then(function(W){return W.done?W.value:H.next()})},D(j),f(j,a,"Generator"),f(j,c,function(){return this}),f(j,"toString",function(){return"[object Generator]"}),i.keys=function(y){var _=Object(y),C=[];for(var I in _)C.push(I);return C.reverse(),function P(){for(;C.length;){var H=C.pop();if(H in _)return P.value=H,P.done=!1,P}return P.done=!0,P}},i.values=v,S.prototype={constructor:S,reset:function(y){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(M),!y)for(var _ in this)_.charAt(0)==="t"&&r.call(this,_)&&!isNaN(+_.slice(1))&&(this[_]=void 0)},stop:function(){this.done=!0;var y=this.tryEntries[0].completion;if(y.type==="throw")throw y.arg;return this.rval},dispatchException:function(y){if(this.done)throw y;var _=this;function C(B,q){return H.type="throw",H.arg=y,_.next=B,q&&(_.method="next",_.arg=void 0),!!q}for(var I=this.tryEntries.length-1;I>=0;--I){var P=this.tryEntries[I],H=P.completion;if(P.tryLoc==="root")return C("end");if(P.tryLoc<=this.prev){var W=r.call(P,"catchLoc"),K=r.call(P,"finallyLoc");if(W&&K){if(this.prev<P.catchLoc)return C(P.catchLoc,!0);if(this.prev<P.finallyLoc)return C(P.finallyLoc)}else if(W){if(this.prev<P.catchLoc)return C(P.catchLoc,!0)}else{if(!K)throw new Error("try statement without catch or finally");if(this.prev<P.finallyLoc)return C(P.finallyLoc)}}}},abrupt:function(y,_){for(var C=this.tryEntries.length-1;C>=0;--C){var I=this.tryEntries[C];if(I.tryLoc<=this.prev&&r.call(I,"finallyLoc")&&this.prev<I.finallyLoc){var P=I;break}}P&&(y==="break"||y==="continue")&&P.tryLoc<=_&&_<=P.finallyLoc&&(P=null);var H=P?P.completion:{};return H.type=y,H.arg=_,P?(this.method="next",this.next=P.finallyLoc,b):this.complete(H)},complete:function(y,_){if(y.type==="throw")throw y.arg;return y.type==="break"||y.type==="continue"?this.next=y.arg:y.type==="return"?(this.rval=this.arg=y.arg,this.method="return",this.next="end"):y.type==="normal"&&_&&(this.next=_),b},finish:function(y){for(var _=this.tryEntries.length-1;_>=0;--_){var C=this.tryEntries[_];if(C.finallyLoc===y)return this.complete(C.completion,C.afterLoc),M(C),b}},catch:function(y){for(var _=this.tryEntries.length-1;_>=0;--_){var C=this.tryEntries[_];if(C.tryLoc===y){var I=C.completion;if(I.type==="throw"){var P=I.arg;M(C)}return P}}throw new Error("illegal catch attempt")},delegateYield:function(y,_,C){return this.delegate={iterator:v(y),resultName:_,nextLoc:C},this.method==="next"&&(this.arg=void 0),b}},i}(typeof p=="object"?p.exports:{});try{regeneratorRuntime=u}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=u:Function("r","regeneratorRuntime = r")(u)}},{}],493:[function(e,p,g){var u=e("buffer").Buffer,i=e("inherits"),o=e("hash-base"),r=new Array(16),t=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],n=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[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],s=[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],a=[0,1518500249,1859775393,2400959708,2840853838],f=[1352829926,1548603684,1836072691,2053994217,0];function h(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function d(F,L){return F<<L|F>>>32-L}function b(F,L,j,D,z,$,V,T){return d(F+(L^j^D)+$+V|0,T)+z|0}function m(F,L,j,D,z,$,V,T){return d(F+(L&j|~L&D)+$+V|0,T)+z|0}function x(F,L,j,D,z,$,V,T){return d(F+((L|~j)^D)+$+V|0,T)+z|0}function k(F,L,j,D,z,$,V,T){return d(F+(L&D|j&~D)+$+V|0,T)+z|0}function R(F,L,j,D,z,$,V,T){return d(F+(L^(j|~D))+$+V|0,T)+z|0}i(h,o),h.prototype._update=function(){for(var F=r,L=0;L<16;++L)F[L]=this._block.readInt32LE(4*L);for(var j=0|this._a,D=0|this._b,z=0|this._c,$=0|this._d,V=0|this._e,T=0|this._a,M=0|this._b,S=0|this._c,v=0|this._d,w=0|this._e,y=0;y<80;y+=1){var _,C;y<16?(_=b(j,D,z,$,V,F[t[y]],a[0],c[y]),C=R(T,M,S,v,w,F[n[y]],f[0],s[y])):y<32?(_=m(j,D,z,$,V,F[t[y]],a[1],c[y]),C=k(T,M,S,v,w,F[n[y]],f[1],s[y])):y<48?(_=x(j,D,z,$,V,F[t[y]],a[2],c[y]),C=x(T,M,S,v,w,F[n[y]],f[2],s[y])):y<64?(_=k(j,D,z,$,V,F[t[y]],a[3],c[y]),C=m(T,M,S,v,w,F[n[y]],f[3],s[y])):(_=R(j,D,z,$,V,F[t[y]],a[4],c[y]),C=b(T,M,S,v,w,F[n[y]],f[4],s[y])),j=V,V=$,$=d(z,10),z=D,D=_,T=w,w=v,v=d(S,10),S=M,M=C}var I=this._b+z+v|0;this._b=this._c+$+w|0,this._c=this._d+V+T|0,this._d=this._e+j+M|0,this._e=this._a+D+S|0,this._a=I},h.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 F=u.alloc?u.alloc(20):new u(20);return F.writeInt32LE(this._a,0),F.writeInt32LE(this._b,4),F.writeInt32LE(this._c,8),F.writeInt32LE(this._d,12),F.writeInt32LE(this._e,16),F},p.exports=h},{buffer:220,"hash-base":425,inherits:440}],494:[function(e,p,g){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var u=e("buffer"),i=u.Buffer;function o(t,n){for(var c in t)n[c]=t[c]}function r(t,n,c){return i(t,n,c)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?p.exports=u:(o(u,g),g.Buffer=r),r.prototype=Object.create(i.prototype),o(i,r),r.from=function(t,n,c){if(typeof t=="number")throw new TypeError("Argument must not be a number");return i(t,n,c)},r.alloc=function(t,n,c){if(typeof t!="number")throw new TypeError("Argument must be a number");var s=i(t);return n!==void 0?typeof c=="string"?s.fill(n,c):s.fill(n):s.fill(0),s},r.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return i(t)},r.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return u.SlowBuffer(t)}},{buffer:220}],495:[function(e,p,g){(function(u){(function(){var i,o=e("buffer"),r=o.Buffer,t={};for(i in o)o.hasOwnProperty(i)&&i!=="SlowBuffer"&&i!=="Buffer"&&(t[i]=o[i]);var n=t.Buffer={};for(i in r)r.hasOwnProperty(i)&&i!=="allocUnsafe"&&i!=="allocUnsafeSlow"&&(n[i]=r[i]);if(t.Buffer.prototype=r.prototype,n.from&&n.from!==Uint8Array.from||(n.from=function(c,s,a){if(typeof c=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof c);if(c&&c.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 c);return r(c,s,a)}),n.alloc||(n.alloc=function(c,s,a){if(typeof c!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof c);if(c<0||c>=2*(1<<30))throw new RangeError('The value "'+c+'" is invalid for option "size"');var f=r(c);return s&&s.length!==0?typeof a=="string"?f.fill(s,a):f.fill(s):f.fill(0),f}),!t.kStringMaxLength)try{t.kStringMaxLength=u.binding("buffer").kStringMaxLength}catch{}t.constants||(t.constants={MAX_LENGTH:t.kMaxLength},t.kStringMaxLength&&(t.constants.MAX_STRING_LENGTH=t.kStringMaxLength)),p.exports=t}).call(this)}).call(this,e("_process"))},{_process:467,buffer:220}],496:[function(e,p,g){Object.defineProperty(g,"__esModule",{value:!0});const u=e("xmlchars/xml/1.0/ed5"),i=e("xmlchars/xml/1.1/ed2"),o=e("xmlchars/xmlns/1.0/ed3");var r=u.isS,t=u.isChar,n=u.isNameStartChar,c=u.isNameChar,s=u.S_LIST,a=u.NAME_RE,f=i.isChar,h=o.isNCNameStartChar,d=o.isNCNameChar,b=o.NC_NAME_RE;const m="http://www.w3.org/XML/1998/namespace",x="http://www.w3.org/2000/xmlns/",k={__proto__:null,xml:m,xmlns:x},R={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},F=v=>v===34||v===39,L=[34,39],j=[...L,91,62],D=[...L,60,93],z=[61,63,...s],$=[...s,62,38,60];function V(v,w,y){switch(w){case"xml":y!==m&&v.fail(`xml prefix must be bound to ${m}.`);break;case"xmlns":y!==x&&v.fail(`xmlns prefix must be bound to ${x}.`)}switch(y){case x:v.fail(w===""?`the default namespace may not be set to ${y}.`:`may not assign a prefix (even "xmlns") to the URI ${x}.`);break;case m:switch(w){case"xml":break;case"":v.fail(`the default namespace may not be set to ${y}.`);break;default:v.fail("may not assign the xml namespace to another prefix.")}}}const T=v=>b.test(v),M=v=>a.test(v);g.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];const S={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"};g.SaxesParser=class{constructor(v){this.opt=v??{},this.fragmentOpt=!!this.opt.fragment;const w=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,w){this.nameStartCheck=h,this.nameCheck=d,this.isName=T,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},k);const y=this.opt.additionalNamespaces;y!=null&&(function(_,C){for(const I of Object.keys(C))V(_,I,C[I])}(this,y),Object.assign(this.ns,y))}else this.nameStartCheck=n,this.nameCheck=c,this.isName=M,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){var v;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=0,this.attribList=[];const{fragmentOpt:w}=this;this.state=w?13:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=w,this.xmlDeclPossible=!w,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:y}=this.opt;if(y===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");y="1.0"}this.setXMLVersion(y),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(R),(v=this.readyHandler)===null||v===void 0||v.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(v,w){this[S[v]]=w}off(v){this[S[v]]=void 0}makeError(v){var w;let y=(w=this.fileName)!==null&&w!==void 0?w:"";return this.trackPosition&&(y.length>0&&(y+=":"),y+=`${this.line}:${this.column}`),y.length>0&&(y+=": "),new Error(y+v)}fail(v){const w=this.makeError(v),y=this.errorHandler;if(y===void 0)throw w;return y(w),this}write(v){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let w=!1;v===null?(w=!0,v=""):typeof v=="object"&&(v=v.toString()),this.carriedFromPrevious!==void 0&&(v=`${this.carriedFromPrevious}${v}`,this.carriedFromPrevious=void 0);let y=v.length;const _=v.charCodeAt(y-1);!w&&(_===13||_>=55296&&_<=56319)&&(this.carriedFromPrevious=v[y-1],y--,v=v.slice(0,y));const{stateTable:C}=this;for(this.chunk=v,this.i=0;this.i<y;)C[this.state].call(this);return this.chunkPosition+=y,w?this.end():this}close(){return this.write(null)}getCode10(){const{chunk:v,i:w}=this;if(this.prevI=w,this.i=w+1,w>=v.length)return-1;const y=v.charCodeAt(w);if(this.column++,y<55296){if(y>=32||y===9)return y;switch(y){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:return v.charCodeAt(w+1)===10&&(this.i=w+2),this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),y}}if(y>56319)return y>=57344&&y<=65533||this.fail("disallowed character."),y;const _=65536+1024*(y-55296)+(v.charCodeAt(w+1)-56320);return this.i=w+2,_>1114111&&this.fail("disallowed character."),_}getCode11(){const{chunk:v,i:w}=this;if(this.prevI=w,this.i=w+1,w>=v.length)return-1;const y=v.charCodeAt(w);if(this.column++,y<55296){if(y>31&&y<127||y>159&&y!==8232||y===9)return y;switch(y){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:{const C=v.charCodeAt(w+1);C!==10&&C!==133||(this.i=w+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),y}}if(y>56319)return y>=57344&&y<=65533||this.fail("disallowed character."),y;const _=65536+1024*(y-55296)+(v.charCodeAt(w+1)-56320);return this.i=w+2,_>1114111&&this.fail("disallowed character."),_}getCodeNorm(){const v=this.getCode();return v===-2?10:v}unget(){this.i=this.prevI,this.column--}captureTo(v){let{i:w}=this;const{chunk:y}=this;for(;;){const _=this.getCode(),C=_===-2,I=C?10:_;if(I===-1||v.includes(I))return this.text+=y.slice(w,this.prevI),I;C&&(this.text+=y.slice(w,this.prevI)+`
23
- `,w=this.i)}}captureToChar(v){let{i:w}=this;const{chunk:y}=this;for(;;){let _=this.getCode();switch(_){case-2:this.text+=y.slice(w,this.prevI)+`
24
- `,w=this.i,_=10;break;case-1:return this.text+=y.slice(w),!1}if(_===v)return this.text+=y.slice(w,this.prevI),!0}}captureNameChars(){const{chunk:v,i:w}=this;for(;;){const y=this.getCode();if(y===-1)return this.name+=v.slice(w),-1;if(!c(y))return this.name+=v.slice(w,this.prevI),y===-2?10:y}}skipSpaces(){for(;;){const v=this.getCodeNorm();if(v===-1||!r(v))return v}}setXMLVersion(v){this.currentXMLVersion=v,v==="1.0"?(this.isChar=t,this.getCode=this.getCode10):(this.isChar=f,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const v=this.i,w=this.skipSpaces();switch(this.prevI!==v&&(this.xmlDeclPossible=!1),w){case 60:if(this.state=15,this.text.length!==0)throw new Error("no-empty text at start");break;case-1:break;default:this.unget(),this.state=13,this.xmlDeclPossible=!1}}sDoctype(){var v;const w=this.captureTo(j);switch(w){case 62:(v=this.doctypeHandler)===null||v===void 0||v.call(this,this.text),this.text="",this.state=13,this.doctype=!0;break;case-1:break;default:this.text+=String.fromCodePoint(w),w===91?this.state=4:F(w)&&(this.state=3,this.q=w)}}sDoctypeQuote(){const v=this.q;this.captureToChar(v)&&(this.text+=String.fromCodePoint(v),this.q=null,this.state=2)}sDTD(){const v=this.captureTo(D);v!==-1&&(this.text+=String.fromCodePoint(v),v===93?this.state=2:v===60?this.state=6:F(v)&&(this.state=5,this.q=v))}sDTDQuoted(){const v=this.q;this.captureToChar(v)&&(this.text+=String.fromCodePoint(v),this.state=4,this.q=null)}sDTDOpenWaka(){const v=this.getCodeNorm();switch(this.text+=String.fromCodePoint(v),v){case 33:this.state=7,this.openWakaBang="";break;case 63:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const v=String.fromCodePoint(this.getCodeNorm()),w=this.openWakaBang+=v;this.text+=v,w!=="-"&&(this.state=w==="--"?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const v=this.getCodeNorm();this.text+=String.fromCodePoint(v),this.state=v===45?10:8}sDTDCommentEnded(){const v=this.getCodeNorm();this.text+=String.fromCodePoint(v),v===62?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(63)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const v=this.getCodeNorm();this.text+=String.fromCodePoint(v),v===62&&(this.state=4)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:v}=this;const{chunk:w}=this;e:for(;;)switch(this.getCode()){case-2:this.entity+=w.slice(v,this.prevI)+`
25
- `,v=this.i;break;case 59:{const{entityReturnState:y}=this,_=this.entity+w.slice(v,this.prevI);let C;this.state=y,_===""?(this.fail("empty entity name."),C="&;"):(C=this.parseEntity(_),this.entity=""),y===13&&this.textHandler===void 0||(this.text+=C);break e}case-1:this.entity+=w.slice(v);break e}}sOpenWaka(){const v=this.getCode();if(n(v))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(v){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case 63:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=13,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){var v;const w=this.getCodeNorm();w===45?(this.state=19,(v=this.commentHandler)===null||v===void 0||v.call(this,this.text),this.text=""):(this.text+="-"+String.fromCodePoint(w),this.state=17)}sCommentEnded(){const v=this.getCodeNorm();v!==62?(this.fail("malformed comment."),this.text+="--"+String.fromCodePoint(v),this.state=17):this.state=13}sCData(){this.captureToChar(93)&&(this.state=21)}sCDataEnding(){const v=this.getCodeNorm();v===93?this.state=22:(this.text+="]"+String.fromCodePoint(v),this.state=20)}sCDataEnding2(){var v;const w=this.getCodeNorm();switch(w){case 62:(v=this.cdataHandler)===null||v===void 0||v.call(this,this.text),this.text="",this.state=13;break;case 93:this.text+="]";break;default:this.text+="]]"+String.fromCodePoint(w),this.state=20}}sPIFirstChar(){const v=this.getCodeNorm();this.nameStartCheck(v)?(this.piTarget+=String.fromCodePoint(v),this.state=24):v===63||r(v)?(this.fail("processing instruction without a target."),this.state=v===63?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(v),this.state=24)}sPIRest(){const{chunk:v,i:w}=this;for(;;){const y=this.getCodeNorm();if(y===-1)return void(this.piTarget+=v.slice(w));if(!this.nameCheck(y)){this.piTarget+=v.slice(w,this.prevI);const _=y===63;_||r(y)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=_?33:27):this.state=_?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(y));break}}}sPIBody(){if(this.text.length===0){const v=this.getCodeNorm();v===63?this.state=26:r(v)||(this.text=String.fromCodePoint(v))}else this.captureToChar(63)&&(this.state=26)}sPIEnding(){var v;const w=this.getCodeNorm();if(w===62){const{piTarget:y}=this;y.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),(v=this.piHandler)===null||v===void 0||v.call(this,{target:y,body:this.text}),this.piTarget=this.text="",this.state=13}else w===63?this.text+="?":(this.text+="?"+String.fromCodePoint(w),this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const v=this.skipSpaces();v!==63?v!==-1&&(this.state=28,this.name=String.fromCodePoint(v)):this.state=33}sXMLDeclName(){const v=this.captureTo(z);if(v===63)return this.state=33,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(r(v)||v===61){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail("expected one of "+this.xmlDeclExpects.join(", "))}this.state=v===61?30:29}}sXMLDeclEq(){const v=this.getCodeNorm();if(v===63)return this.state=33,void this.fail("XML declaration is incomplete.");r(v)||(v!==61&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const v=this.getCodeNorm();if(v===63)return this.state=33,void this.fail("XML declaration is incomplete.");r(v)||(F(v)?this.q=v:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const v=this.captureTo([this.q,63]);if(v===63)return this.state=33,this.text="",void this.fail("XML declaration is incomplete.");if(v===-1)return;const w=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const y=w;this.xmlDecl.version=y,/^1\.[0-9]+$/.test(y)?this.opt.forceXMLVersion||this.setXMLVersion(y):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(w)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=w;break;case"standalone":w!=="yes"&&w!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=w}this.name="",this.state=32}sXMLDeclSeparator(){const v=this.getCodeNorm();v!==63?(r(v)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=33}sXMLDeclEnding(){var v;this.getCodeNorm()===62?(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."),(v=this.xmldeclHandler)===null||v===void 0||v.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=13):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){var v;const w=this.captureNameChars();if(w===-1)return;const y=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=y.ns=Object.create(null)),(v=this.openTagStartHandler)===null||v===void 0||v.call(this,y),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),w){case 62:this.openTag();break;case 47:this.state=35;break;default:r(w)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){this.getCode()===62?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const v=this.skipSpaces();v!==-1&&(n(v)?(this.unget(),this.state=37):v===62?this.openTag():v===47?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const v=this.captureNameChars();v===61?this.state=39:r(v)?this.state=38:v===62?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):v!==-1&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const v=this.skipSpaces();switch(v){case-1:return;case 61:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",v===62?this.openTag():n(v)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const v=this.getCodeNorm();F(v)?(this.q=v,this.state=40):r(v)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}sAttribValueQuoted(){const{q:v,chunk:w}=this;let{i:y}=this;for(;;)switch(this.getCode()){case v:return this.pushAttrib(this.name,this.text+w.slice(y,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=w.slice(y,this.prevI),this.state=14,void(this.entityReturnState=40);case 10:case-2:case 9:this.text+=w.slice(y,this.prevI)+" ",y=this.i;break;case 60:return this.text+=w.slice(y,this.prevI),void this.fail("disallowed character.");case-1:return void(this.text+=w.slice(y))}}sAttribValueClosed(){const v=this.getCodeNorm();r(v)?this.state=36:v===62?this.openTag():v===47?this.state=35:n(v)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const v=this.captureTo($);switch(v){case 38:this.state=14,this.entityReturnState=42;break;case 60:this.fail("disallowed character.");break;case-1:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",v===62?this.openTag():this.state=36}}sCloseTag(){const v=this.captureNameChars();v===62?this.closeTag():r(v)?this.state=44:v!==-1&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case 62:this.closeTag();break;case-1:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:v,forbiddenState:w}=this;const{chunk:y,textHandler:_}=this;e:for(;;)switch(this.getCode()){case 60:if(this.state=15,_!==void 0){const{text:C}=this,I=y.slice(v,this.prevI);C.length!==0?(_(C+I),this.text=""):I.length!==0&&_(I)}w=0;break e;case 38:this.state=14,this.entityReturnState=13,_!==void 0&&(this.text+=y.slice(v,this.prevI)),w=0;break e;case 93:switch(w){case 0:w=1;break;case 1:w=2;break;case 2:break;default:throw new Error("impossible state")}break;case 62:w===2&&this.fail('the string "]]>" is disallowed in char data.'),w=0;break;case-2:_!==void 0&&(this.text+=y.slice(v,this.prevI)+`
26
- `),v=this.i,w=0;break;case-1:_!==void 0&&(this.text+=y.slice(v));break e;default:w=0}this.forbiddenState=w}handleTextOutsideRoot(){let{i:v}=this;const{chunk:w,textHandler:y}=this;let _=!1;e:for(;;){const C=this.getCode();switch(C){case 60:if(this.state=15,y!==void 0){const{text:I}=this,P=w.slice(v,this.prevI);I.length!==0?(y(I+P),this.text=""):P.length!==0&&y(P)}break e;case 38:this.state=14,this.entityReturnState=13,y!==void 0&&(this.text+=w.slice(v,this.prevI)),_=!0;break e;case-2:y!==void 0&&(this.text+=w.slice(v,this.prevI)+`
27
- `),v=this.i;break;case-1:y!==void 0&&(this.text+=w.slice(v));break e;default:r(C)||(_=!0)}}_&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(v,w){var y;const{prefix:_,local:C}=this.qname(v),I={name:v,prefix:_,local:C,value:w};if(this.attribList.push(I),(y=this.attributeHandler)===null||y===void 0||y.call(this,I),_==="xmlns"){const P=w.trim();this.currentXMLVersion==="1.0"&&P===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[C]=P,V(this,C,P)}else if(v==="xmlns"){const P=w.trim();this.topNS[""]=P,V(this,"",P)}}pushAttribPlain(v,w){var y;const _={name:v,value:w};this.attribList.push(_),(y=this.attributeHandler)===null||y===void 0||y.call(this,_)}end(){var v,w;this.sawRoot||this.fail("document must contain a root element.");const{tags:y}=this;for(;y.length>0;){const C=y.pop();this.fail("unclosed tag: "+C.name)}this.state!==0&&this.state!==13&&this.fail("unexpected end.");const{text:_}=this;return _.length!==0&&((v=this.textHandler)===null||v===void 0||v.call(this,_),this.text=""),this._closed=!0,(w=this.endHandler)===null||w===void 0||w.call(this),this._init(),this}resolve(v){var w,y;let _=this.topNS[v];if(_!==void 0)return _;const{tags:C}=this;for(let I=C.length-1;I>=0;I--)if(_=C[I].ns[v],_!==void 0)return _;return _=this.ns[v],_!==void 0?_:(y=(w=this.opt).resolvePrefix)===null||y===void 0?void 0:y.call(w,v)}qname(v){const w=v.indexOf(":");if(w===-1)return{prefix:"",local:v};const y=v.slice(w+1),_=v.slice(0,w);return(_===""||y===""||y.includes(":"))&&this.fail(`malformed name: ${v}.`),{prefix:_,local:y}}processAttribsNS(){var v;const{attribList:w}=this,y=this.tag;{const{prefix:I,local:P}=this.qname(y.name);y.prefix=I,y.local=P;const H=y.uri=(v=this.resolve(I))!==null&&v!==void 0?v:"";I!==""&&(I==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),H===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(I)}.`),y.uri=I))}if(w.length===0)return;const{attributes:_}=y,C=new Set;for(const I of w){const{name:P,prefix:H,local:W}=I;let K,B;H===""?(K=P==="xmlns"?x:"",B=P):(K=this.resolve(H),K===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(H)}.`),K=H),B=`{${K}}${W}`),C.has(B)&&this.fail(`duplicate attribute: ${B}.`),C.add(B),I.uri=K,_[P]=I}this.attribList=[]}processAttribsPlain(){const{attribList:v}=this,w=this.tag.attributes;for(const{name:y,value:_}of v)w[y]!==void 0&&this.fail(`duplicate attribute: ${y}.`),w[y]=_;this.attribList=[]}openTag(){var v;this.processAttribs();const{tags:w}=this,y=this.tag;y.isSelfClosing=!1,(v=this.openTagHandler)===null||v===void 0||v.call(this,y),w.push(y),this.state=13,this.name=""}openSelfClosingTag(){var v,w,y;this.processAttribs();const{tags:_}=this,C=this.tag;C.isSelfClosing=!0,(v=this.openTagHandler)===null||v===void 0||v.call(this,C),(w=this.closeTagHandler)===null||w===void 0||w.call(this,C),(this.tag=(y=_[_.length-1])!==null&&y!==void 0?y:null)===null&&(this.closedRoot=!0),this.state=13,this.name=""}closeTag(){const{tags:v,name:w}=this;if(this.state=13,this.name="",w==="")return this.fail("weird empty close tag."),void(this.text+="</>");const y=this.closeTagHandler;let _=v.length;for(;_-- >0;){const C=this.tag=v.pop();if(this.topNS=C.ns,y==null||y(C),C.name===w)break;this.fail("unexpected close tag.")}_===0?this.closedRoot=!0:_<0&&(this.fail(`unmatched closing tag: ${w}.`),this.text+=`</${w}>`)}parseEntity(v){if(v[0]!=="#"){const y=this.ENTITIES[v];return y!==void 0?y:(this.fail(this.isName(v)?"undefined entity.":"disallowed character in entity name."),`&${v};`)}let w=NaN;return v[1]==="x"&&/^#x[0-9a-f]+$/i.test(v)?w=parseInt(v.slice(2),16):/^#[0-9]+$/.test(v)&&(w=parseInt(v.slice(1),10)),this.isChar(w)?String.fromCodePoint(w):(this.fail("malformed character entity."),`&${v};`)}}},{"xmlchars/xml/1.0/ed5":543,"xmlchars/xml/1.1/ed2":544,"xmlchars/xmlns/1.0/ed3":545}],497:[function(e,p,g){var u=e("safe-buffer").Buffer;function i(o,r){this._block=u.alloc(o),this._finalSize=r,this._blockSize=o,this._len=0}i.prototype.update=function(o,r){typeof o=="string"&&(r=r||"utf8",o=u.from(o,r));for(var t=this._block,n=this._blockSize,c=o.length,s=this._len,a=0;a<c;){for(var f=s%n,h=Math.min(c-a,n-f),d=0;d<h;d++)t[f+d]=o[a+d];a+=h,(s+=h)%n==0&&this._update(t)}return this._len+=c,this},i.prototype.digest=function(o){var r=this._len%this._blockSize;this._block[r]=128,this._block.fill(0,r+1),r>=this._finalSize&&(this._update(this._block),this._block.fill(0));var t=8*this._len;if(t<=4294967295)this._block.writeUInt32BE(t,this._blockSize-4);else{var n=(4294967295&t)>>>0,c=(t-n)/4294967296;this._block.writeUInt32BE(c,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var s=this._hash();return o?s.toString(o):s},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},p.exports=i},{"safe-buffer":494}],498:[function(e,p,g){var u=p.exports=function(i){i=i.toLowerCase();var o=u[i];if(!o)throw new Error(i+" is not supported (we accept pull requests)");return new o};u.sha=e("./sha"),u.sha1=e("./sha1"),u.sha224=e("./sha224"),u.sha256=e("./sha256"),u.sha384=e("./sha384"),u.sha512=e("./sha512")},{"./sha":499,"./sha1":500,"./sha224":501,"./sha256":502,"./sha384":503,"./sha512":504}],499:[function(e,p,g){var u=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,r=[1518500249,1859775393,-1894007588,-899497514],t=new Array(80);function n(){this.init(),this._w=t,i.call(this,64,56)}function c(a){return a<<30|a>>>2}function s(a,f,h,d){return a===0?f&h|~f&d:a===2?f&h|f&d|h&d:f^h^d}u(n,i),n.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},n.prototype._update=function(a){for(var f,h=this._w,d=0|this._a,b=0|this._b,m=0|this._c,x=0|this._d,k=0|this._e,R=0;R<16;++R)h[R]=a.readInt32BE(4*R);for(;R<80;++R)h[R]=h[R-3]^h[R-8]^h[R-14]^h[R-16];for(var F=0;F<80;++F){var L=~~(F/20),j=0|((f=d)<<5|f>>>27)+s(L,b,m,x)+k+h[F]+r[L];k=x,x=m,m=c(b),b=d,d=j}this._a=d+this._a|0,this._b=b+this._b|0,this._c=m+this._c|0,this._d=x+this._d|0,this._e=k+this._e|0},n.prototype._hash=function(){var a=o.allocUnsafe(20);return a.writeInt32BE(0|this._a,0),a.writeInt32BE(0|this._b,4),a.writeInt32BE(0|this._c,8),a.writeInt32BE(0|this._d,12),a.writeInt32BE(0|this._e,16),a},p.exports=n},{"./hash":497,inherits:440,"safe-buffer":494}],500:[function(e,p,g){var u=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,r=[1518500249,1859775393,-1894007588,-899497514],t=new Array(80);function n(){this.init(),this._w=t,i.call(this,64,56)}function c(f){return f<<5|f>>>27}function s(f){return f<<30|f>>>2}function a(f,h,d,b){return f===0?h&d|~h&b:f===2?h&d|h&b|d&b:h^d^b}u(n,i),n.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},n.prototype._update=function(f){for(var h,d=this._w,b=0|this._a,m=0|this._b,x=0|this._c,k=0|this._d,R=0|this._e,F=0;F<16;++F)d[F]=f.readInt32BE(4*F);for(;F<80;++F)d[F]=(h=d[F-3]^d[F-8]^d[F-14]^d[F-16])<<1|h>>>31;for(var L=0;L<80;++L){var j=~~(L/20),D=c(b)+a(j,m,x,k)+R+d[L]+r[j]|0;R=k,k=x,x=s(m),m=b,b=D}this._a=b+this._a|0,this._b=m+this._b|0,this._c=x+this._c|0,this._d=k+this._d|0,this._e=R+this._e|0},n.prototype._hash=function(){var f=o.allocUnsafe(20);return f.writeInt32BE(0|this._a,0),f.writeInt32BE(0|this._b,4),f.writeInt32BE(0|this._c,8),f.writeInt32BE(0|this._d,12),f.writeInt32BE(0|this._e,16),f},p.exports=n},{"./hash":497,inherits:440,"safe-buffer":494}],501:[function(e,p,g){var u=e("inherits"),i=e("./sha256"),o=e("./hash"),r=e("safe-buffer").Buffer,t=new Array(64);function n(){this.init(),this._w=t,o.call(this,64,56)}u(n,i),n.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},n.prototype._hash=function(){var c=r.allocUnsafe(28);return c.writeInt32BE(this._a,0),c.writeInt32BE(this._b,4),c.writeInt32BE(this._c,8),c.writeInt32BE(this._d,12),c.writeInt32BE(this._e,16),c.writeInt32BE(this._f,20),c.writeInt32BE(this._g,24),c},p.exports=n},{"./hash":497,"./sha256":502,inherits:440,"safe-buffer":494}],502:[function(e,p,g){var u=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,r=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],t=new Array(64);function n(){this.init(),this._w=t,i.call(this,64,56)}function c(d,b,m){return m^d&(b^m)}function s(d,b,m){return d&b|m&(d|b)}function a(d){return(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10)}function f(d){return(d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7)}function h(d){return(d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3}u(n,i),n.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},n.prototype._update=function(d){for(var b,m=this._w,x=0|this._a,k=0|this._b,R=0|this._c,F=0|this._d,L=0|this._e,j=0|this._f,D=0|this._g,z=0|this._h,$=0;$<16;++$)m[$]=d.readInt32BE(4*$);for(;$<64;++$)m[$]=0|(((b=m[$-2])>>>17|b<<15)^(b>>>19|b<<13)^b>>>10)+m[$-7]+h(m[$-15])+m[$-16];for(var V=0;V<64;++V){var T=z+f(L)+c(L,j,D)+r[V]+m[V]|0,M=a(x)+s(x,k,R)|0;z=D,D=j,j=L,L=F+T|0,F=R,R=k,k=x,x=T+M|0}this._a=x+this._a|0,this._b=k+this._b|0,this._c=R+this._c|0,this._d=F+this._d|0,this._e=L+this._e|0,this._f=j+this._f|0,this._g=D+this._g|0,this._h=z+this._h|0},n.prototype._hash=function(){var d=o.allocUnsafe(32);return d.writeInt32BE(this._a,0),d.writeInt32BE(this._b,4),d.writeInt32BE(this._c,8),d.writeInt32BE(this._d,12),d.writeInt32BE(this._e,16),d.writeInt32BE(this._f,20),d.writeInt32BE(this._g,24),d.writeInt32BE(this._h,28),d},p.exports=n},{"./hash":497,inherits:440,"safe-buffer":494}],503:[function(e,p,g){var u=e("inherits"),i=e("./sha512"),o=e("./hash"),r=e("safe-buffer").Buffer,t=new Array(160);function n(){this.init(),this._w=t,o.call(this,128,112)}u(n,i),n.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},n.prototype._hash=function(){var c=r.allocUnsafe(48);function s(a,f,h){c.writeInt32BE(a,h),c.writeInt32BE(f,h+4)}return s(this._ah,this._al,0),s(this._bh,this._bl,8),s(this._ch,this._cl,16),s(this._dh,this._dl,24),s(this._eh,this._el,32),s(this._fh,this._fl,40),c},p.exports=n},{"./hash":497,"./sha512":504,inherits:440,"safe-buffer":494}],504:[function(e,p,g){var u=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,r=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],t=new Array(160);function n(){this.init(),this._w=t,i.call(this,128,112)}function c(k,R,F){return F^k&(R^F)}function s(k,R,F){return k&R|F&(k|R)}function a(k,R){return(k>>>28|R<<4)^(R>>>2|k<<30)^(R>>>7|k<<25)}function f(k,R){return(k>>>14|R<<18)^(k>>>18|R<<14)^(R>>>9|k<<23)}function h(k,R){return(k>>>1|R<<31)^(k>>>8|R<<24)^k>>>7}function d(k,R){return(k>>>1|R<<31)^(k>>>8|R<<24)^(k>>>7|R<<25)}function b(k,R){return(k>>>19|R<<13)^(R>>>29|k<<3)^k>>>6}function m(k,R){return(k>>>19|R<<13)^(R>>>29|k<<3)^(k>>>6|R<<26)}function x(k,R){return k>>>0<R>>>0?1:0}u(n,i),n.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},n.prototype._update=function(k){for(var R=this._w,F=0|this._ah,L=0|this._bh,j=0|this._ch,D=0|this._dh,z=0|this._eh,$=0|this._fh,V=0|this._gh,T=0|this._hh,M=0|this._al,S=0|this._bl,v=0|this._cl,w=0|this._dl,y=0|this._el,_=0|this._fl,C=0|this._gl,I=0|this._hl,P=0;P<32;P+=2)R[P]=k.readInt32BE(4*P),R[P+1]=k.readInt32BE(4*P+4);for(;P<160;P+=2){var H=R[P-30],W=R[P-30+1],K=h(H,W),B=d(W,H),q=b(H=R[P-4],W=R[P-4+1]),O=m(W,H),N=R[P-14],U=R[P-14+1],X=R[P-32],Z=R[P-32+1],G=B+U|0,J=K+N+x(G,B)|0;J=(J=J+q+x(G=G+O|0,O)|0)+X+x(G=G+Z|0,Z)|0,R[P]=J,R[P+1]=G}for(var ne=0;ne<160;ne+=2){J=R[ne],G=R[ne+1];var ie=s(F,L,j),Y=s(M,S,v),te=a(F,M),ee=a(M,F),ae=f(z,y),se=f(y,z),le=r[ne],ce=r[ne+1],de=c(z,$,V),pe=c(y,_,C),ke=I+se|0,Se=T+ae+x(ke,I)|0;Se=(Se=(Se=Se+de+x(ke=ke+pe|0,pe)|0)+le+x(ke=ke+ce|0,ce)|0)+J+x(ke=ke+G|0,G)|0;var ye=ee+Y|0,Ie=te+ie+x(ye,ee)|0;T=V,I=C,V=$,C=_,$=z,_=y,z=D+Se+x(y=w+ke|0,w)|0,D=j,w=v,j=L,v=S,L=F,S=M,F=Se+Ie+x(M=ke+ye|0,ke)|0}this._al=this._al+M|0,this._bl=this._bl+S|0,this._cl=this._cl+v|0,this._dl=this._dl+w|0,this._el=this._el+y|0,this._fl=this._fl+_|0,this._gl=this._gl+C|0,this._hl=this._hl+I|0,this._ah=this._ah+F+x(this._al,M)|0,this._bh=this._bh+L+x(this._bl,S)|0,this._ch=this._ch+j+x(this._cl,v)|0,this._dh=this._dh+D+x(this._dl,w)|0,this._eh=this._eh+z+x(this._el,y)|0,this._fh=this._fh+$+x(this._fl,_)|0,this._gh=this._gh+V+x(this._gl,C)|0,this._hh=this._hh+T+x(this._hl,I)|0},n.prototype._hash=function(){var k=o.allocUnsafe(64);function R(F,L,j){k.writeInt32BE(F,j),k.writeInt32BE(L,j+4)}return R(this._ah,this._al,0),R(this._bh,this._bl,8),R(this._ch,this._cl,16),R(this._dh,this._dl,24),R(this._eh,this._el,32),R(this._fh,this._fl,40),R(this._gh,this._gl,48),R(this._hh,this._hl,56),k},p.exports=n},{"./hash":497,inherits:440,"safe-buffer":494}],505:[function(e,p,g){p.exports=i;var u=e("events").EventEmitter;function i(){u.call(this)}e("inherits")(i,u),i.Readable=e("readable-stream/readable.js"),i.Writable=e("readable-stream/writable.js"),i.Duplex=e("readable-stream/duplex.js"),i.Transform=e("readable-stream/transform.js"),i.PassThrough=e("readable-stream/passthrough.js"),i.Stream=i,i.prototype.pipe=function(o,r){var t=this;function n(b){o.writable&&o.write(b)===!1&&t.pause&&t.pause()}function c(){t.readable&&t.resume&&t.resume()}t.on("data",n),o.on("drain",c),o._isStdio||r&&r.end===!1||(t.on("end",a),t.on("close",f));var s=!1;function a(){s||(s=!0,o.end())}function f(){s||(s=!0,typeof o.destroy=="function"&&o.destroy())}function h(b){if(d(),u.listenerCount(this,"error")===0)throw b}function d(){t.removeListener("data",n),o.removeListener("drain",c),t.removeListener("end",a),t.removeListener("close",f),t.removeListener("error",h),o.removeListener("error",h),t.removeListener("end",d),t.removeListener("close",d),o.removeListener("close",d)}return t.on("error",h),o.on("error",h),t.on("end",d),t.on("close",d),o.on("close",d),o.emit("pipe",t),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(e,p,g){var u={}.toString;p.exports=Array.isArray||function(i){return u.call(i)=="[object Array]"}},{}],507:[function(e,p,g){p.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":508}],508:[function(e,p,g){var u=e("process-nextick-args"),i=Object.keys||function(d){var b=[];for(var m in d)b.push(m);return b};p.exports=a;var o=Object.create(e("core-util-is"));o.inherits=e("inherits");var r=e("./_stream_readable"),t=e("./_stream_writable");o.inherits(a,r);for(var n=i(t.prototype),c=0;c<n.length;c++){var s=n[c];a.prototype[s]||(a.prototype[s]=t.prototype[s])}function a(d){if(!(this instanceof a))return new a(d);r.call(this,d),t.call(this,d),d&&d.readable===!1&&(this.readable=!1),d&&d.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,d&&d.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",f)}function f(){this.allowHalfOpen||this._writableState.ended||u.nextTick(h,this)}function h(d){d.end()}Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"destroyed",{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)}}),a.prototype._destroy=function(d,b){this.push(null),this.end(),u.nextTick(b,d)}},{"./_stream_readable":510,"./_stream_writable":512,"core-util-is":383,inherits:440,"process-nextick-args":466}],509:[function(e,p,g){p.exports=o;var u=e("./_stream_transform"),i=Object.create(e("core-util-is"));function o(r){if(!(this instanceof o))return new o(r);u.call(this,r)}i.inherits=e("inherits"),i.inherits(o,u),o.prototype._transform=function(r,t,n){n(null,r)}},{"./_stream_transform":511,"core-util-is":383,inherits:440}],510:[function(e,p,g){(function(u,i){(function(){var o=e("process-nextick-args");p.exports=F;var r,t=e("isarray");F.ReadableState=R,e("events").EventEmitter;var n=function(I,P){return I.listeners(P).length},c=e("./internal/streams/stream"),s=e("safe-buffer").Buffer,a=(i!==void 0?i:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},f=Object.create(e("core-util-is"));f.inherits=e("inherits");var h=e("util"),d=void 0;d=h&&h.debuglog?h.debuglog("stream"):function(){};var b,m=e("./internal/streams/BufferList"),x=e("./internal/streams/destroy");f.inherits(F,c);var k=["error","close","destroy","pause","resume"];function R(I,P){I=I||{};var H=P instanceof(r=r||e("./_stream_duplex"));this.objectMode=!!I.objectMode,H&&(this.objectMode=this.objectMode||!!I.readableObjectMode);var W=I.highWaterMark,K=I.readableHighWaterMark,B=this.objectMode?16:16384;this.highWaterMark=W||W===0?W:H&&(K||K===0)?K:B,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,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=I.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,I.encoding&&(b||(b=e("string_decoder/").StringDecoder),this.decoder=new b(I.encoding),this.encoding=I.encoding)}function F(I){if(r=r||e("./_stream_duplex"),!(this instanceof F))return new F(I);this._readableState=new R(I,this),this.readable=!0,I&&(typeof I.read=="function"&&(this._read=I.read),typeof I.destroy=="function"&&(this._destroy=I.destroy)),c.call(this)}function L(I,P,H,W,K){var B,q=I._readableState;return P===null?(q.reading=!1,function(O,N){if(!N.ended){if(N.decoder){var U=N.decoder.end();U&&U.length&&(N.buffer.push(U),N.length+=N.objectMode?1:U.length)}N.ended=!0,z(O)}}(I,q)):(K||(B=function(O,N){var U;X=N,s.isBuffer(X)||X instanceof a||typeof N=="string"||N===void 0||O.objectMode||(U=new TypeError("Invalid non-string/buffer chunk"));var X;return U}(q,P)),B?I.emit("error",B):q.objectMode||P&&P.length>0?(typeof P=="string"||q.objectMode||Object.getPrototypeOf(P)===s.prototype||(P=function(O){return s.from(O)}(P)),W?q.endEmitted?I.emit("error",new Error("stream.unshift() after end event")):j(I,q,P,!0):q.ended?I.emit("error",new Error("stream.push() after EOF")):(q.reading=!1,q.decoder&&!H?(P=q.decoder.write(P),q.objectMode||P.length!==0?j(I,q,P,!1):V(I,q)):j(I,q,P,!1))):W||(q.reading=!1)),function(O){return!O.ended&&(O.needReadable||O.length<O.highWaterMark||O.length===0)}(q)}function j(I,P,H,W){P.flowing&&P.length===0&&!P.sync?(I.emit("data",H),I.read(0)):(P.length+=P.objectMode?1:H.length,W?P.buffer.unshift(H):P.buffer.push(H),P.needReadable&&z(I)),V(I,P)}Object.defineProperty(F.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(I){this._readableState&&(this._readableState.destroyed=I)}}),F.prototype.destroy=x.destroy,F.prototype._undestroy=x.undestroy,F.prototype._destroy=function(I,P){this.push(null),P(I)},F.prototype.push=function(I,P){var H,W=this._readableState;return W.objectMode?H=!0:typeof I=="string"&&((P=P||W.defaultEncoding)!==W.encoding&&(I=s.from(I,P),P=""),H=!0),L(this,I,P,!1,H)},F.prototype.unshift=function(I){return L(this,I,null,!0,!1)},F.prototype.isPaused=function(){return this._readableState.flowing===!1},F.prototype.setEncoding=function(I){return b||(b=e("string_decoder/").StringDecoder),this._readableState.decoder=new b(I),this._readableState.encoding=I,this};function D(I,P){return I<=0||P.length===0&&P.ended?0:P.objectMode?1:I!=I?P.flowing&&P.length?P.buffer.head.data.length:P.length:(I>P.highWaterMark&&(P.highWaterMark=function(H){return H>=8388608?H=8388608:(H--,H|=H>>>1,H|=H>>>2,H|=H>>>4,H|=H>>>8,H|=H>>>16,H++),H}(I)),I<=P.length?I:P.ended?P.length:(P.needReadable=!0,0))}function z(I){var P=I._readableState;P.needReadable=!1,P.emittedReadable||(d("emitReadable",P.flowing),P.emittedReadable=!0,P.sync?o.nextTick($,I):$(I))}function $(I){d("emit readable"),I.emit("readable"),v(I)}function V(I,P){P.readingMore||(P.readingMore=!0,o.nextTick(T,I,P))}function T(I,P){for(var H=P.length;!P.reading&&!P.flowing&&!P.ended&&P.length<P.highWaterMark&&(d("maybeReadMore read 0"),I.read(0),H!==P.length);)H=P.length;P.readingMore=!1}function M(I){d("readable nexttick read 0"),I.read(0)}function S(I,P){P.reading||(d("resume read 0"),I.read(0)),P.resumeScheduled=!1,P.awaitDrain=0,I.emit("resume"),v(I),P.flowing&&!P.reading&&I.read(0)}function v(I){var P=I._readableState;for(d("flow",P.flowing);P.flowing&&I.read()!==null;);}function w(I,P){return P.length===0?null:(P.objectMode?H=P.buffer.shift():!I||I>=P.length?(H=P.decoder?P.buffer.join(""):P.buffer.length===1?P.buffer.head.data:P.buffer.concat(P.length),P.buffer.clear()):H=function(W,K,B){var q;return W<K.head.data.length?(q=K.head.data.slice(0,W),K.head.data=K.head.data.slice(W)):q=W===K.head.data.length?K.shift():B?function(O,N){var U=N.head,X=1,Z=U.data;for(O-=Z.length;U=U.next;){var G=U.data,J=O>G.length?G.length:O;if(J===G.length?Z+=G:Z+=G.slice(0,O),(O-=J)===0){J===G.length?(++X,U.next?N.head=U.next:N.head=N.tail=null):(N.head=U,U.data=G.slice(J));break}++X}return N.length-=X,Z}(W,K):function(O,N){var U=s.allocUnsafe(O),X=N.head,Z=1;for(X.data.copy(U),O-=X.data.length;X=X.next;){var G=X.data,J=O>G.length?G.length:O;if(G.copy(U,U.length-O,0,J),(O-=J)===0){J===G.length?(++Z,X.next?N.head=X.next:N.head=N.tail=null):(N.head=X,X.data=G.slice(J));break}++Z}return N.length-=Z,U}(W,K),q}(I,P.buffer,P.decoder),H);var H}function y(I){var P=I._readableState;if(P.length>0)throw new Error('"endReadable()" called on non-empty stream');P.endEmitted||(P.ended=!0,o.nextTick(_,P,I))}function _(I,P){I.endEmitted||I.length!==0||(I.endEmitted=!0,P.readable=!1,P.emit("end"))}function C(I,P){for(var H=0,W=I.length;H<W;H++)if(I[H]===P)return H;return-1}F.prototype.read=function(I){d("read",I),I=parseInt(I,10);var P=this._readableState,H=I;if(I!==0&&(P.emittedReadable=!1),I===0&&P.needReadable&&(P.length>=P.highWaterMark||P.ended))return d("read: emitReadable",P.length,P.ended),P.length===0&&P.ended?y(this):z(this),null;if((I=D(I,P))===0&&P.ended)return P.length===0&&y(this),null;var W,K=P.needReadable;return d("need readable",K),(P.length===0||P.length-I<P.highWaterMark)&&d("length less than watermark",K=!0),P.ended||P.reading?d("reading or ended",K=!1):K&&(d("do read"),P.reading=!0,P.sync=!0,P.length===0&&(P.needReadable=!0),this._read(P.highWaterMark),P.sync=!1,P.reading||(I=D(H,P))),(W=I>0?w(I,P):null)===null?(P.needReadable=!0,I=0):P.length-=I,P.length===0&&(P.ended||(P.needReadable=!0),H!==I&&P.ended&&y(this)),W!==null&&this.emit("data",W),W},F.prototype._read=function(I){this.emit("error",new Error("_read() is not implemented"))},F.prototype.pipe=function(I,P){var H=this,W=this._readableState;switch(W.pipesCount){case 0:W.pipes=I;break;case 1:W.pipes=[W.pipes,I];break;default:W.pipes.push(I)}W.pipesCount+=1,d("pipe count=%d opts=%j",W.pipesCount,P);var K=(!P||P.end!==!1)&&I!==u.stdout&&I!==u.stderr?q:ne;function B(ie,Y){d("onunpipe"),ie===H&&Y&&Y.hasUnpiped===!1&&(Y.hasUnpiped=!0,d("cleanup"),I.removeListener("close",G),I.removeListener("finish",J),I.removeListener("drain",O),I.removeListener("error",Z),I.removeListener("unpipe",B),H.removeListener("end",q),H.removeListener("end",ne),H.removeListener("data",X),N=!0,!W.awaitDrain||I._writableState&&!I._writableState.needDrain||O())}function q(){d("onend"),I.end()}W.endEmitted?o.nextTick(K):H.once("end",K),I.on("unpipe",B);var O=function(ie){return function(){var Y=ie._readableState;d("pipeOnDrain",Y.awaitDrain),Y.awaitDrain&&Y.awaitDrain--,Y.awaitDrain===0&&n(ie,"data")&&(Y.flowing=!0,v(ie))}}(H);I.on("drain",O);var N=!1,U=!1;function X(ie){d("ondata"),U=!1,I.write(ie)!==!1||U||((W.pipesCount===1&&W.pipes===I||W.pipesCount>1&&C(W.pipes,I)!==-1)&&!N&&(d("false write response, pause",W.awaitDrain),W.awaitDrain++,U=!0),H.pause())}function Z(ie){d("onerror",ie),ne(),I.removeListener("error",Z),n(I,"error")===0&&I.emit("error",ie)}function G(){I.removeListener("finish",J),ne()}function J(){d("onfinish"),I.removeListener("close",G),ne()}function ne(){d("unpipe"),H.unpipe(I)}return H.on("data",X),function(ie,Y,te){if(typeof ie.prependListener=="function")return ie.prependListener(Y,te);ie._events&&ie._events[Y]?t(ie._events[Y])?ie._events[Y].unshift(te):ie._events[Y]=[te,ie._events[Y]]:ie.on(Y,te)}(I,"error",Z),I.once("close",G),I.once("finish",J),I.emit("pipe",H),W.flowing||(d("pipe resume"),H.resume()),I},F.prototype.unpipe=function(I){var P=this._readableState,H={hasUnpiped:!1};if(P.pipesCount===0)return this;if(P.pipesCount===1)return I&&I!==P.pipes||(I||(I=P.pipes),P.pipes=null,P.pipesCount=0,P.flowing=!1,I&&I.emit("unpipe",this,H)),this;if(!I){var W=P.pipes,K=P.pipesCount;P.pipes=null,P.pipesCount=0,P.flowing=!1;for(var B=0;B<K;B++)W[B].emit("unpipe",this,{hasUnpiped:!1});return this}var q=C(P.pipes,I);return q===-1||(P.pipes.splice(q,1),P.pipesCount-=1,P.pipesCount===1&&(P.pipes=P.pipes[0]),I.emit("unpipe",this,H)),this},F.prototype.on=function(I,P){var H=c.prototype.on.call(this,I,P);if(I==="data")this._readableState.flowing!==!1&&this.resume();else if(I==="readable"){var W=this._readableState;W.endEmitted||W.readableListening||(W.readableListening=W.needReadable=!0,W.emittedReadable=!1,W.reading?W.length&&z(this):o.nextTick(M,this))}return H},F.prototype.addListener=F.prototype.on,F.prototype.resume=function(){var I=this._readableState;return I.flowing||(d("resume"),I.flowing=!0,function(P,H){H.resumeScheduled||(H.resumeScheduled=!0,o.nextTick(S,P,H))}(this,I)),this},F.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this},F.prototype.wrap=function(I){var P=this,H=this._readableState,W=!1;for(var K in I.on("end",function(){if(d("wrapped end"),H.decoder&&!H.ended){var q=H.decoder.end();q&&q.length&&P.push(q)}P.push(null)}),I.on("data",function(q){d("wrapped data"),H.decoder&&(q=H.decoder.write(q)),H.objectMode&&q==null||(H.objectMode||q&&q.length)&&(P.push(q)||(W=!0,I.pause()))}),I)this[K]===void 0&&typeof I[K]=="function"&&(this[K]=function(q){return function(){return I[q].apply(I,arguments)}}(K));for(var B=0;B<k.length;B++)I.on(k[B],this.emit.bind(this,k[B]));return this._read=function(q){d("wrapped _read",q),W&&(W=!1,I.resume())},this},Object.defineProperty(F.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),F._fromList=w}).call(this)}).call(this,e("_process"),typeof Ye<"u"?Ye:typeof self<"u"?self:typeof window<"u"?window:{})},{"./_stream_duplex":508,"./internal/streams/BufferList":513,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,events:422,inherits:440,isarray:506,"process-nextick-args":466,"safe-buffer":520,"string_decoder/":521,util:188}],511:[function(e,p,g){p.exports=r;var u=e("./_stream_duplex"),i=Object.create(e("core-util-is"));function o(c,s){var a=this._transformState;a.transforming=!1;var f=a.writecb;if(!f)return this.emit("error",new Error("write callback called multiple times"));a.writechunk=null,a.writecb=null,s!=null&&this.push(s),f(c);var h=this._readableState;h.reading=!1,(h.needReadable||h.length<h.highWaterMark)&&this._read(h.highWaterMark)}function r(c){if(!(this instanceof r))return new r(c);u.call(this,c),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,c&&(typeof c.transform=="function"&&(this._transform=c.transform),typeof c.flush=="function"&&(this._flush=c.flush)),this.on("prefinish",t)}function t(){var c=this;typeof this._flush=="function"?this._flush(function(s,a){n(c,s,a)}):n(this,null,null)}function n(c,s,a){if(s)return c.emit("error",s);if(a!=null&&c.push(a),c._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(c._transformState.transforming)throw new Error("Calling transform done when still transforming");return c.push(null)}i.inherits=e("inherits"),i.inherits(r,u),r.prototype.push=function(c,s){return this._transformState.needTransform=!1,u.prototype.push.call(this,c,s)},r.prototype._transform=function(c,s,a){throw new Error("_transform() is not implemented")},r.prototype._write=function(c,s,a){var f=this._transformState;if(f.writecb=a,f.writechunk=c,f.writeencoding=s,!f.transforming){var h=this._readableState;(f.needTransform||h.needReadable||h.length<h.highWaterMark)&&this._read(h.highWaterMark)}},r.prototype._read=function(c){var s=this._transformState;s.writechunk!==null&&s.writecb&&!s.transforming?(s.transforming=!0,this._transform(s.writechunk,s.writeencoding,s.afterTransform)):s.needTransform=!0},r.prototype._destroy=function(c,s){var a=this;u.prototype._destroy.call(this,c,function(f){s(f),a.emit("close")})}},{"./_stream_duplex":508,"core-util-is":383,inherits:440}],512:[function(e,p,g){(function(u,i,o){(function(){var r=e("process-nextick-args");function t(V){var T=this;this.next=null,this.entry=null,this.finish=function(){(function(M,S,v){var w=M.entry;for(M.entry=null;w;){var y=w.callback;S.pendingcb--,y(v),w=w.next}S.corkedRequestsFree.next=M})(T,V)}}p.exports=R;var n,c=!u.browser&&["v0.10","v0.9."].indexOf(u.version.slice(0,5))>-1?o:r.nextTick;R.WritableState=k;var s=Object.create(e("core-util-is"));s.inherits=e("inherits");var a={deprecate:e("util-deprecate")},f=e("./internal/streams/stream"),h=e("safe-buffer").Buffer,d=(i!==void 0?i:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},b,m=e("./internal/streams/destroy");function x(){}function k(V,T){n=n||e("./_stream_duplex"),V=V||{};var M=T instanceof n;this.objectMode=!!V.objectMode,M&&(this.objectMode=this.objectMode||!!V.writableObjectMode);var S=V.highWaterMark,v=V.writableHighWaterMark,w=this.objectMode?16:16384;this.highWaterMark=S||S===0?S:M&&(v||v===0)?v:w,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 y=V.decodeStrings===!1;this.decodeStrings=!y,this.defaultEncoding=V.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(_){(function(C,I){var P=C._writableState,H=P.sync,W=P.writecb;if(function(B){B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0}(P),I)(function(B,q,O,N,U){--q.pendingcb,O?(r.nextTick(U,N),r.nextTick($,B,q),B._writableState.errorEmitted=!0,B.emit("error",N)):(U(N),B._writableState.errorEmitted=!0,B.emit("error",N),$(B,q))})(C,P,H,I,W);else{var K=D(P);K||P.corked||P.bufferProcessing||!P.bufferedRequest||j(C,P),H?c(L,C,P,K,W):L(C,P,K,W)}})(T,_)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}function R(V){if(n=n||e("./_stream_duplex"),!(b.call(R,this)||this instanceof n))return new R(V);this._writableState=new k(V,this),this.writable=!0,V&&(typeof V.write=="function"&&(this._write=V.write),typeof V.writev=="function"&&(this._writev=V.writev),typeof V.destroy=="function"&&(this._destroy=V.destroy),typeof V.final=="function"&&(this._final=V.final)),f.call(this)}function F(V,T,M,S,v,w,y){T.writelen=S,T.writecb=y,T.writing=!0,T.sync=!0,M?V._writev(v,T.onwrite):V._write(v,w,T.onwrite),T.sync=!1}function L(V,T,M,S){M||function(v,w){w.length===0&&w.needDrain&&(w.needDrain=!1,v.emit("drain"))}(V,T),T.pendingcb--,S(),$(V,T)}function j(V,T){T.bufferProcessing=!0;var M=T.bufferedRequest;if(V._writev&&M&&M.next){var S=T.bufferedRequestCount,v=new Array(S),w=T.corkedRequestsFree;w.entry=M;for(var y=0,_=!0;M;)v[y]=M,M.isBuf||(_=!1),M=M.next,y+=1;v.allBuffers=_,F(V,T,!0,T.length,v,"",w.finish),T.pendingcb++,T.lastBufferedRequest=null,w.next?(T.corkedRequestsFree=w.next,w.next=null):T.corkedRequestsFree=new t(T),T.bufferedRequestCount=0}else{for(;M;){var C=M.chunk,I=M.encoding,P=M.callback;if(F(V,T,!1,T.objectMode?1:C.length,C,I,P),M=M.next,T.bufferedRequestCount--,T.writing)break}M===null&&(T.lastBufferedRequest=null)}T.bufferedRequest=M,T.bufferProcessing=!1}function D(V){return V.ending&&V.length===0&&V.bufferedRequest===null&&!V.finished&&!V.writing}function z(V,T){V._final(function(M){T.pendingcb--,M&&V.emit("error",M),T.prefinished=!0,V.emit("prefinish"),$(V,T)})}function $(V,T){var M=D(T);return M&&(function(S,v){v.prefinished||v.finalCalled||(typeof S._final=="function"?(v.pendingcb++,v.finalCalled=!0,r.nextTick(z,S,v)):(v.prefinished=!0,S.emit("prefinish")))}(V,T),T.pendingcb===0&&(T.finished=!0,V.emit("finish"))),M}s.inherits(R,f),k.prototype.getBuffer=function(){for(var V=this.bufferedRequest,T=[];V;)T.push(V),V=V.next;return T},function(){try{Object.defineProperty(k.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(b=Function.prototype[Symbol.hasInstance],Object.defineProperty(R,Symbol.hasInstance,{value:function(V){return!!b.call(this,V)||this===R&&V&&V._writableState instanceof k}})):b=function(V){return V instanceof this},R.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},R.prototype.write=function(V,T,M){var S,v=this._writableState,w=!1,y=!v.objectMode&&(S=V,h.isBuffer(S)||S instanceof d);return y&&!h.isBuffer(V)&&(V=function(_){return h.from(_)}(V)),typeof T=="function"&&(M=T,T=null),y?T="buffer":T||(T=v.defaultEncoding),typeof M!="function"&&(M=x),v.ended?function(_,C){var I=new Error("write after end");_.emit("error",I),r.nextTick(C,I)}(this,M):(y||function(_,C,I,P){var H=!0,W=!1;return I===null?W=new TypeError("May not write null values to stream"):typeof I=="string"||I===void 0||C.objectMode||(W=new TypeError("Invalid non-string/buffer chunk")),W&&(_.emit("error",W),r.nextTick(P,W),H=!1),H}(this,v,V,M))&&(v.pendingcb++,w=function(_,C,I,P,H,W){if(!I){var K=function(N,U,X){return N.objectMode||N.decodeStrings===!1||typeof U!="string"||(U=h.from(U,X)),U}(C,P,H);P!==K&&(I=!0,H="buffer",P=K)}var B=C.objectMode?1:P.length;C.length+=B;var q=C.length<C.highWaterMark;if(q||(C.needDrain=!0),C.writing||C.corked){var O=C.lastBufferedRequest;C.lastBufferedRequest={chunk:P,encoding:H,isBuf:I,callback:W,next:null},O?O.next=C.lastBufferedRequest:C.bufferedRequest=C.lastBufferedRequest,C.bufferedRequestCount+=1}else F(_,C,!1,B,P,H,W);return q}(this,v,y,V,T,M)),w},R.prototype.cork=function(){this._writableState.corked++},R.prototype.uncork=function(){var V=this._writableState;V.corked&&(V.corked--,V.writing||V.corked||V.bufferProcessing||!V.bufferedRequest||j(this,V))},R.prototype.setDefaultEncoding=function(V){if(typeof V=="string"&&(V=V.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((V+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+V);return this._writableState.defaultEncoding=V,this},Object.defineProperty(R.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),R.prototype._write=function(V,T,M){M(new Error("_write() is not implemented"))},R.prototype._writev=null,R.prototype.end=function(V,T,M){var S=this._writableState;typeof V=="function"?(M=V,V=null,T=null):typeof T=="function"&&(M=T,T=null),V!=null&&this.write(V,T),S.corked&&(S.corked=1,this.uncork()),S.ending||function(v,w,y){w.ending=!0,$(v,w),y&&(w.finished?r.nextTick(y):v.once("finish",y)),w.ended=!0,v.writable=!1}(this,S,M)},Object.defineProperty(R.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(V){this._writableState&&(this._writableState.destroyed=V)}}),R.prototype.destroy=m.destroy,R.prototype._undestroy=m.undestroy,R.prototype._destroy=function(V,T){this.end(),T(V)}}).call(this)}).call(this,e("_process"),typeof Ye<"u"?Ye:typeof self<"u"?self:typeof window<"u"?window:{},e("timers").setImmediate)},{"./_stream_duplex":508,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,inherits:440,"process-nextick-args":466,"safe-buffer":520,timers:523,"util-deprecate":524}],513:[function(e,p,g){var u=e("safe-buffer").Buffer,i=e("util");p.exports=function(){function o(){(function(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")})(this,o),this.head=null,this.tail=null,this.length=0}return o.prototype.push=function(r){var t={data:r,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},o.prototype.unshift=function(r){var t={data:r,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length},o.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},o.prototype.clear=function(){this.head=this.tail=null,this.length=0},o.prototype.join=function(r){if(this.length===0)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=r+t.data;return n},o.prototype.concat=function(r){if(this.length===0)return u.alloc(0);for(var t,n,c,s=u.allocUnsafe(r>>>0),a=this.head,f=0;a;)t=a.data,n=s,c=f,t.copy(n,c),f+=a.data.length,a=a.next;return s},o}(),i&&i.inspect&&i.inspect.custom&&(p.exports.prototype[i.inspect.custom]=function(){var o=i.inspect({length:this.length});return this.constructor.name+" "+o})},{"safe-buffer":520,util:188}],514:[function(e,p,g){var u=e("process-nextick-args");function i(o,r){o.emit("error",r)}p.exports={destroy:function(o,r){var t=this,n=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return n||c?(r?r(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,u.nextTick(i,this,o)):u.nextTick(i,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(s){!r&&s?t._writableState?t._writableState.errorEmitted||(t._writableState.errorEmitted=!0,u.nextTick(i,t,s)):u.nextTick(i,t,s):r&&r(s)}),this)},undestroy:function(){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)}}},{"process-nextick-args":466}],515:[function(e,p,g){arguments[4][490][0].apply(g,arguments)},{dup:490,events:422}],516:[function(e,p,g){p.exports=e("./readable").PassThrough},{"./readable":517}],517:[function(e,p,g){(g=p.exports=e("./lib/_stream_readable.js")).Stream=g,g.Readable=g,g.Writable=e("./lib/_stream_writable.js"),g.Duplex=e("./lib/_stream_duplex.js"),g.Transform=e("./lib/_stream_transform.js"),g.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":508,"./lib/_stream_passthrough.js":509,"./lib/_stream_readable.js":510,"./lib/_stream_transform.js":511,"./lib/_stream_writable.js":512}],518:[function(e,p,g){p.exports=e("./readable").Transform},{"./readable":517}],519:[function(e,p,g){p.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":512}],520:[function(e,p,g){arguments[4][217][0].apply(g,arguments)},{buffer:220,dup:217}],521:[function(e,p,g){arguments[4][218][0].apply(g,arguments)},{dup:218,"safe-buffer":520}],522:[function(e,p,g){arguments[4][218][0].apply(g,arguments)},{dup:218,"safe-buffer":494}],523:[function(e,p,g){(function(u,i){(function(){var o=e("process/browser.js").nextTick,r=Function.prototype.apply,t=Array.prototype.slice,n={},c=0;function s(a,f){this._id=a,this._clearFn=f}g.setTimeout=function(){return new s(r.call(setTimeout,window,arguments),clearTimeout)},g.setInterval=function(){return new s(r.call(setInterval,window,arguments),clearInterval)},g.clearTimeout=g.clearInterval=function(a){a.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(window,this._id)},g.enroll=function(a,f){clearTimeout(a._idleTimeoutId),a._idleTimeout=f},g.unenroll=function(a){clearTimeout(a._idleTimeoutId),a._idleTimeout=-1},g._unrefActive=g.active=function(a){clearTimeout(a._idleTimeoutId);var f=a._idleTimeout;f>=0&&(a._idleTimeoutId=setTimeout(function(){a._onTimeout&&a._onTimeout()},f))},g.setImmediate=typeof u=="function"?u:function(a){var f=c++,h=!(arguments.length<2)&&t.call(arguments,1);return n[f]=!0,o(function(){n[f]&&(h?a.apply(null,h):a.call(null),g.clearImmediate(f))}),f},g.clearImmediate=typeof i=="function"?i:function(a){delete n[a]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":467,timers:523}],524:[function(e,p,g){(function(u){(function(){function i(o){try{if(!u.localStorage)return!1}catch{return!1}var r=u.localStorage[o];return r!=null&&String(r).toLowerCase()==="true"}p.exports=function(o,r){if(i("noDeprecation"))return o;var t=!1;return function(){if(!t){if(i("throwDeprecation"))throw new Error(r);i("traceDeprecation")?console.trace(r):console.warn(r),t=!0}return o.apply(this,arguments)}}}).call(this)}).call(this,typeof Ye<"u"?Ye:typeof self<"u"?self:typeof window<"u"?window:{})},{}],525:[function(e,p,g){typeof Object.create=="function"?p.exports=function(u,i){u.super_=i,u.prototype=Object.create(i.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}})}:p.exports=function(u,i){u.super_=i;var o=function(){};o.prototype=i.prototype,u.prototype=new o,u.prototype.constructor=u}},{}],526:[function(e,p,g){p.exports=function(u){return u&&typeof u=="object"&&typeof u.copy=="function"&&typeof u.fill=="function"&&typeof u.readUInt8=="function"}},{}],527:[function(e,p,g){(function(u,i){(function(){var o=/%[sdj%]/g;g.format=function(v){if(!k(v)){for(var w=[],y=0;y<arguments.length;y++)w.push(n(arguments[y]));return w.join(" ")}y=1;for(var _=arguments,C=_.length,I=String(v).replace(o,function(H){if(H==="%%")return"%";if(y>=C)return H;switch(H){case"%s":return String(_[y++]);case"%d":return Number(_[y++]);case"%j":try{return JSON.stringify(_[y++])}catch{return"[Circular]"}default:return H}}),P=_[y];y<C;P=_[++y])m(P)||!L(P)?I+=" "+P:I+=" "+n(P);return I},g.deprecate=function(v,w){if(R(i.process))return function(){return g.deprecate(v,w).apply(this,arguments)};if(u.noDeprecation===!0)return v;var y=!1;return function(){if(!y){if(u.throwDeprecation)throw new Error(w);u.traceDeprecation?console.trace(w):console.error(w),y=!0}return v.apply(this,arguments)}};var r,t={};function n(v,w){var y={seen:[],stylize:s};return arguments.length>=3&&(y.depth=arguments[2]),arguments.length>=4&&(y.colors=arguments[3]),b(w)?y.showHidden=w:w&&g._extend(y,w),R(y.showHidden)&&(y.showHidden=!1),R(y.depth)&&(y.depth=2),R(y.colors)&&(y.colors=!1),R(y.customInspect)&&(y.customInspect=!0),y.colors&&(y.stylize=c),a(y,v,y.depth)}function c(v,w){var y=n.styles[w];return y?"\x1B["+n.colors[y][0]+"m"+v+"\x1B["+n.colors[y][1]+"m":v}function s(v,w){return v}function a(v,w,y){if(v.customInspect&&w&&z(w.inspect)&&w.inspect!==g.inspect&&(!w.constructor||w.constructor.prototype!==w)){var _=w.inspect(y,v);return k(_)||(_=a(v,_,y)),_}var C=function(O,N){if(R(N))return O.stylize("undefined","undefined");if(k(N)){var U="'"+JSON.stringify(N).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return O.stylize(U,"string")}if(x(N))return O.stylize(""+N,"number");if(b(N))return O.stylize(""+N,"boolean");if(m(N))return O.stylize("null","null")}(v,w);if(C)return C;var I=Object.keys(w),P=function(O){var N={};return O.forEach(function(U,X){N[U]=!0}),N}(I);if(v.showHidden&&(I=Object.getOwnPropertyNames(w)),D(w)&&(I.indexOf("message")>=0||I.indexOf("description")>=0))return f(w);if(I.length===0){if(z(w)){var H=w.name?": "+w.name:"";return v.stylize("[Function"+H+"]","special")}if(F(w))return v.stylize(RegExp.prototype.toString.call(w),"regexp");if(j(w))return v.stylize(Date.prototype.toString.call(w),"date");if(D(w))return f(w)}var W,K="",B=!1,q=["{","}"];return d(w)&&(B=!0,q=["[","]"]),z(w)&&(K=" [Function"+(w.name?": "+w.name:"")+"]"),F(w)&&(K=" "+RegExp.prototype.toString.call(w)),j(w)&&(K=" "+Date.prototype.toUTCString.call(w)),D(w)&&(K=" "+f(w)),I.length!==0||B&&w.length!=0?y<0?F(w)?v.stylize(RegExp.prototype.toString.call(w),"regexp"):v.stylize("[Object]","special"):(v.seen.push(w),W=B?function(O,N,U,X,Z){for(var G=[],J=0,ne=N.length;J<ne;++J)S(N,String(J))?G.push(h(O,N,U,X,String(J),!0)):G.push("");return Z.forEach(function(ie){ie.match(/^\d+$/)||G.push(h(O,N,U,X,ie,!0))}),G}(v,w,y,P,I):I.map(function(O){return h(v,w,y,P,O,B)}),v.seen.pop(),function(O,N,U){return O.reduce(function(X,Z){return Z.indexOf(`
28
- `)>=0,X+Z.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?U[0]+(N===""?"":N+`
29
- `)+" "+O.join(`,
30
- `)+" "+U[1]:U[0]+N+" "+O.join(", ")+" "+U[1]}(W,K,q)):q[0]+K+q[1]}function f(v){return"["+Error.prototype.toString.call(v)+"]"}function h(v,w,y,_,C,I){var P,H,W;if((W=Object.getOwnPropertyDescriptor(w,C)||{value:w[C]}).get?H=W.set?v.stylize("[Getter/Setter]","special"):v.stylize("[Getter]","special"):W.set&&(H=v.stylize("[Setter]","special")),S(_,C)||(P="["+C+"]"),H||(v.seen.indexOf(W.value)<0?(H=m(y)?a(v,W.value,null):a(v,W.value,y-1)).indexOf(`
31
- `)>-1&&(H=I?H.split(`
32
- `).map(function(K){return" "+K}).join(`
33
- `).substr(2):`
34
- `+H.split(`
35
- `).map(function(K){return" "+K}).join(`
36
- `)):H=v.stylize("[Circular]","special")),R(P)){if(I&&C.match(/^\d+$/))return H;(P=JSON.stringify(""+C)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(P=P.substr(1,P.length-2),P=v.stylize(P,"name")):(P=P.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),P=v.stylize(P,"string"))}return P+": "+H}function d(v){return Array.isArray(v)}function b(v){return typeof v=="boolean"}function m(v){return v===null}function x(v){return typeof v=="number"}function k(v){return typeof v=="string"}function R(v){return v===void 0}function F(v){return L(v)&&$(v)==="[object RegExp]"}function L(v){return typeof v=="object"&&v!==null}function j(v){return L(v)&&$(v)==="[object Date]"}function D(v){return L(v)&&($(v)==="[object Error]"||v instanceof Error)}function z(v){return typeof v=="function"}function $(v){return Object.prototype.toString.call(v)}function V(v){return v<10?"0"+v.toString(10):v.toString(10)}g.debuglog=function(v){if(R(r)&&(r=u.env.NODE_DEBUG||""),v=v.toUpperCase(),!t[v])if(new RegExp("\\b"+v+"\\b","i").test(r)){var w=u.pid;t[v]=function(){var y=g.format.apply(g,arguments);console.error("%s %d: %s",v,w,y)}}else t[v]=function(){};return t[v]},g.inspect=n,n.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},n.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},g.isArray=d,g.isBoolean=b,g.isNull=m,g.isNullOrUndefined=function(v){return v==null},g.isNumber=x,g.isString=k,g.isSymbol=function(v){return typeof v=="symbol"},g.isUndefined=R,g.isRegExp=F,g.isObject=L,g.isDate=j,g.isError=D,g.isFunction=z,g.isPrimitive=function(v){return v===null||typeof v=="boolean"||typeof v=="number"||typeof v=="string"||typeof v=="symbol"||v===void 0},g.isBuffer=e("./support/isBuffer");var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function M(){var v=new Date,w=[V(v.getHours()),V(v.getMinutes()),V(v.getSeconds())].join(":");return[v.getDate(),T[v.getMonth()],w].join(" ")}function S(v,w){return Object.prototype.hasOwnProperty.call(v,w)}g.log=function(){console.log("%s - %s",M(),g.format.apply(g,arguments))},g.inherits=e("inherits"),g._extend=function(v,w){if(!w||!L(w))return v;for(var y=Object.keys(w),_=y.length;_--;)v[y[_]]=w[y[_]];return v}}).call(this)}).call(this,e("_process"),typeof Ye<"u"?Ye:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":526,_process:467,inherits:525}],528:[function(e,p,g){Object.defineProperty(g,"__esModule",{value:!0}),Object.defineProperty(g,"v1",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(g,"v3",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(g,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(g,"v5",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(g,"NIL",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(g,"version",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(g,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(g,"stringify",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(g,"parse",{enumerable:!0,get:function(){return a.default}});var u=f(e("./v1.js")),i=f(e("./v3.js")),o=f(e("./v4.js")),r=f(e("./v5.js")),t=f(e("./nil.js")),n=f(e("./version.js")),c=f(e("./validate.js")),s=f(e("./stringify.js")),a=f(e("./parse.js"));function f(h){return h&&h.__esModule?h:{default:h}}},{"./nil.js":530,"./parse.js":531,"./stringify.js":535,"./v1.js":536,"./v3.js":537,"./v4.js":539,"./v5.js":540,"./validate.js":541,"./version.js":542}],529:[function(e,p,g){function u(a){return 14+(a+64>>>9<<4)+1}function i(a,f){const h=(65535&a)+(65535&f);return(a>>16)+(f>>16)+(h>>16)<<16|65535&h}function o(a,f,h,d,b,m){return i((x=i(i(f,a),i(d,m)))<<(k=b)|x>>>32-k,h);var x,k}function r(a,f,h,d,b,m,x){return o(f&h|~f&d,a,f,b,m,x)}function t(a,f,h,d,b,m,x){return o(f&d|h&~d,a,f,b,m,x)}function n(a,f,h,d,b,m,x){return o(f^h^d,a,f,b,m,x)}function c(a,f,h,d,b,m,x){return o(h^(f|~d),a,f,b,m,x)}Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var s=function(a){if(typeof a=="string"){const f=unescape(encodeURIComponent(a));a=new Uint8Array(f.length);for(let h=0;h<f.length;++h)a[h]=f.charCodeAt(h)}return function(f){const h=[],d=32*f.length;for(let b=0;b<d;b+=8){const m=f[b>>5]>>>b%32&255,x=parseInt("0123456789abcdef".charAt(m>>>4&15)+"0123456789abcdef".charAt(15&m),16);h.push(x)}return h}(function(f,h){f[h>>5]|=128<<h%32,f[u(h)-1]=h;let d=1732584193,b=-271733879,m=-1732584194,x=271733878;for(let k=0;k<f.length;k+=16){const R=d,F=b,L=m,j=x;d=r(d,b,m,x,f[k],7,-680876936),x=r(x,d,b,m,f[k+1],12,-389564586),m=r(m,x,d,b,f[k+2],17,606105819),b=r(b,m,x,d,f[k+3],22,-1044525330),d=r(d,b,m,x,f[k+4],7,-176418897),x=r(x,d,b,m,f[k+5],12,1200080426),m=r(m,x,d,b,f[k+6],17,-1473231341),b=r(b,m,x,d,f[k+7],22,-45705983),d=r(d,b,m,x,f[k+8],7,1770035416),x=r(x,d,b,m,f[k+9],12,-1958414417),m=r(m,x,d,b,f[k+10],17,-42063),b=r(b,m,x,d,f[k+11],22,-1990404162),d=r(d,b,m,x,f[k+12],7,1804603682),x=r(x,d,b,m,f[k+13],12,-40341101),m=r(m,x,d,b,f[k+14],17,-1502002290),b=r(b,m,x,d,f[k+15],22,1236535329),d=t(d,b,m,x,f[k+1],5,-165796510),x=t(x,d,b,m,f[k+6],9,-1069501632),m=t(m,x,d,b,f[k+11],14,643717713),b=t(b,m,x,d,f[k],20,-373897302),d=t(d,b,m,x,f[k+5],5,-701558691),x=t(x,d,b,m,f[k+10],9,38016083),m=t(m,x,d,b,f[k+15],14,-660478335),b=t(b,m,x,d,f[k+4],20,-405537848),d=t(d,b,m,x,f[k+9],5,568446438),x=t(x,d,b,m,f[k+14],9,-1019803690),m=t(m,x,d,b,f[k+3],14,-187363961),b=t(b,m,x,d,f[k+8],20,1163531501),d=t(d,b,m,x,f[k+13],5,-1444681467),x=t(x,d,b,m,f[k+2],9,-51403784),m=t(m,x,d,b,f[k+7],14,1735328473),b=t(b,m,x,d,f[k+12],20,-1926607734),d=n(d,b,m,x,f[k+5],4,-378558),x=n(x,d,b,m,f[k+8],11,-2022574463),m=n(m,x,d,b,f[k+11],16,1839030562),b=n(b,m,x,d,f[k+14],23,-35309556),d=n(d,b,m,x,f[k+1],4,-1530992060),x=n(x,d,b,m,f[k+4],11,1272893353),m=n(m,x,d,b,f[k+7],16,-155497632),b=n(b,m,x,d,f[k+10],23,-1094730640),d=n(d,b,m,x,f[k+13],4,681279174),x=n(x,d,b,m,f[k],11,-358537222),m=n(m,x,d,b,f[k+3],16,-722521979),b=n(b,m,x,d,f[k+6],23,76029189),d=n(d,b,m,x,f[k+9],4,-640364487),x=n(x,d,b,m,f[k+12],11,-421815835),m=n(m,x,d,b,f[k+15],16,530742520),b=n(b,m,x,d,f[k+2],23,-995338651),d=c(d,b,m,x,f[k],6,-198630844),x=c(x,d,b,m,f[k+7],10,1126891415),m=c(m,x,d,b,f[k+14],15,-1416354905),b=c(b,m,x,d,f[k+5],21,-57434055),d=c(d,b,m,x,f[k+12],6,1700485571),x=c(x,d,b,m,f[k+3],10,-1894986606),m=c(m,x,d,b,f[k+10],15,-1051523),b=c(b,m,x,d,f[k+1],21,-2054922799),d=c(d,b,m,x,f[k+8],6,1873313359),x=c(x,d,b,m,f[k+15],10,-30611744),m=c(m,x,d,b,f[k+6],15,-1560198380),b=c(b,m,x,d,f[k+13],21,1309151649),d=c(d,b,m,x,f[k+4],6,-145523070),x=c(x,d,b,m,f[k+11],10,-1120210379),m=c(m,x,d,b,f[k+2],15,718787259),b=c(b,m,x,d,f[k+9],21,-343485551),d=i(d,R),b=i(b,F),m=i(m,L),x=i(x,j)}return[d,b,m,x]}(function(f){if(f.length===0)return[];const h=8*f.length,d=new Uint32Array(u(h));for(let b=0;b<h;b+=8)d[b>>5]|=(255&f[b/8])<<b%32;return d}(a),8*a.length))};g.default=s},{}],530:[function(e,p,g){Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0,g.default="00000000-0000-0000-0000-000000000000"},{}],531:[function(e,p,g){Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var u,i=(u=e("./validate.js"))&&u.__esModule?u:{default:u},o=function(r){if(!(0,i.default)(r))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(r.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(r.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(r.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(r.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(r.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};g.default=o},{"./validate.js":541}],532:[function(e,p,g){Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0,g.default=/^(?:[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},{}],533:[function(e,p,g){let u;Object.defineProperty(g,"__esModule",{value:!0}),g.default=function(){if(!u&&(u=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!u))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return u(i)};const i=new Uint8Array(16)},{}],534:[function(e,p,g){function u(r,t,n,c){switch(r){case 0:return t&n^~t&c;case 1:return t^n^c;case 2:return t&n^t&c^n&c;case 3:return t^n^c}}function i(r,t){return r<<t|r>>>32-t}Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var o=function(r){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof r=="string"){const f=unescape(encodeURIComponent(r));r=[];for(let h=0;h<f.length;++h)r.push(f.charCodeAt(h))}else Array.isArray(r)||(r=Array.prototype.slice.call(r));r.push(128);const c=r.length/4+2,s=Math.ceil(c/16),a=new Array(s);for(let f=0;f<s;++f){const h=new Uint32Array(16);for(let d=0;d<16;++d)h[d]=r[64*f+4*d]<<24|r[64*f+4*d+1]<<16|r[64*f+4*d+2]<<8|r[64*f+4*d+3];a[f]=h}a[s-1][14]=8*(r.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(r.length-1)&4294967295;for(let f=0;f<s;++f){const h=new Uint32Array(80);for(let R=0;R<16;++R)h[R]=a[f][R];for(let R=16;R<80;++R)h[R]=i(h[R-3]^h[R-8]^h[R-14]^h[R-16],1);let d=n[0],b=n[1],m=n[2],x=n[3],k=n[4];for(let R=0;R<80;++R){const F=Math.floor(R/20),L=i(d,5)+u(F,b,m,x)+k+t[F]+h[R]>>>0;k=x,x=m,m=i(b,30)>>>0,b=d,d=L}n[0]=n[0]+d>>>0,n[1]=n[1]+b>>>0,n[2]=n[2]+m>>>0,n[3]=n[3]+x>>>0,n[4]=n[4]+k>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]};g.default=o},{}],535:[function(e,p,g){Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var u,i=(u=e("./validate.js"))&&u.__esModule?u:{default:u};const o=[];for(let t=0;t<256;++t)o.push((t+256).toString(16).substr(1));var r=function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const c=(o[t[n+0]]+o[t[n+1]]+o[t[n+2]]+o[t[n+3]]+"-"+o[t[n+4]]+o[t[n+5]]+"-"+o[t[n+6]]+o[t[n+7]]+"-"+o[t[n+8]]+o[t[n+9]]+"-"+o[t[n+10]]+o[t[n+11]]+o[t[n+12]]+o[t[n+13]]+o[t[n+14]]+o[t[n+15]]).toLowerCase();if(!(0,i.default)(c))throw TypeError("Stringified UUID is invalid");return c};g.default=r},{"./validate.js":541}],536:[function(e,p,g){Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var u=o(e("./rng.js")),i=o(e("./stringify.js"));function o(a){return a&&a.__esModule?a:{default:a}}let r,t,n=0,c=0;var s=function(a,f,h){let d=f&&h||0;const b=f||new Array(16);let m=(a=a||{}).node||r,x=a.clockseq!==void 0?a.clockseq:t;if(m==null||x==null){const D=a.random||(a.rng||u.default)();m==null&&(m=r=[1|D[0],D[1],D[2],D[3],D[4],D[5]]),x==null&&(x=t=16383&(D[6]<<8|D[7]))}let k=a.msecs!==void 0?a.msecs:Date.now(),R=a.nsecs!==void 0?a.nsecs:c+1;const F=k-n+(R-c)/1e4;if(F<0&&a.clockseq===void 0&&(x=x+1&16383),(F<0||k>n)&&a.nsecs===void 0&&(R=0),R>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");n=k,c=R,t=x,k+=122192928e5;const L=(1e4*(268435455&k)+R)%4294967296;b[d++]=L>>>24&255,b[d++]=L>>>16&255,b[d++]=L>>>8&255,b[d++]=255&L;const j=k/4294967296*1e4&268435455;b[d++]=j>>>8&255,b[d++]=255&j,b[d++]=j>>>24&15|16,b[d++]=j>>>16&255,b[d++]=x>>>8|128,b[d++]=255&x;for(let D=0;D<6;++D)b[d+D]=m[D];return f||(0,i.default)(b)};g.default=s},{"./rng.js":533,"./stringify.js":535}],537:[function(e,p,g){Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var u=o(e("./v35.js")),i=o(e("./md5.js"));function o(t){return t&&t.__esModule?t:{default:t}}var r=(0,u.default)("v3",48,i.default);g.default=r},{"./md5.js":529,"./v35.js":538}],538:[function(e,p,g){Object.defineProperty(g,"__esModule",{value:!0}),g.default=function(n,c,s){function a(f,h,d,b){if(typeof f=="string"&&(f=function(x){x=unescape(encodeURIComponent(x));const k=[];for(let R=0;R<x.length;++R)k.push(x.charCodeAt(R));return k}(f)),typeof h=="string"&&(h=(0,i.default)(h)),h.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let m=new Uint8Array(16+f.length);if(m.set(h),m.set(f,h.length),m=s(m),m[6]=15&m[6]|c,m[8]=63&m[8]|128,d){b=b||0;for(let x=0;x<16;++x)d[b+x]=m[x];return d}return(0,u.default)(m)}try{a.name=n}catch{}return a.DNS=r,a.URL=t,a},g.URL=g.DNS=void 0;var u=o(e("./stringify.js")),i=o(e("./parse.js"));function o(n){return n&&n.__esModule?n:{default:n}}const r="6ba7b810-9dad-11d1-80b4-00c04fd430c8";g.DNS=r;const t="6ba7b811-9dad-11d1-80b4-00c04fd430c8";g.URL=t},{"./parse.js":531,"./stringify.js":535}],539:[function(e,p,g){Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var u=o(e("./rng.js")),i=o(e("./stringify.js"));function o(t){return t&&t.__esModule?t:{default:t}}var r=function(t,n,c){const s=(t=t||{}).random||(t.rng||u.default)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,n){c=c||0;for(let a=0;a<16;++a)n[c+a]=s[a];return n}return(0,i.default)(s)};g.default=r},{"./rng.js":533,"./stringify.js":535}],540:[function(e,p,g){Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var u=o(e("./v35.js")),i=o(e("./sha1.js"));function o(t){return t&&t.__esModule?t:{default:t}}var r=(0,u.default)("v5",80,i.default);g.default=r},{"./sha1.js":534,"./v35.js":538}],541:[function(e,p,g){Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var u,i=(u=e("./regex.js"))&&u.__esModule?u:{default:u},o=function(r){return typeof r=="string"&&i.default.test(r)};g.default=o},{"./regex.js":532}],542:[function(e,p,g){Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var u,i=(u=e("./validate.js"))&&u.__esModule?u:{default:u},o=function(r){if(!(0,i.default)(r))throw TypeError("Invalid UUID");return parseInt(r.substr(14,1),16)};g.default=o},{"./validate.js":541}],543:[function(e,p,g){/**
37
- * Character classes and associated utilities for the 5th edition of XML 1.0.
38
- *
39
- * @author Louis-Dominique Dubeau
40
- * @license MIT
41
- * @copyright Louis-Dominique Dubeau
42
- */Object.defineProperty(g,"__esModule",{value:!0}),g.CHAR=`
43
- \r -퟿-�𐀀-􏿿`,g.S=` \r
44
- `,g.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",g.NAME_CHAR="-"+g.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",g.CHAR_RE=new RegExp("^["+g.CHAR+"]$","u"),g.S_RE=new RegExp("^["+g.S+"]+$","u"),g.NAME_START_CHAR_RE=new RegExp("^["+g.NAME_START_CHAR+"]$","u"),g.NAME_CHAR_RE=new RegExp("^["+g.NAME_CHAR+"]$","u"),g.NAME_RE=new RegExp("^["+g.NAME_START_CHAR+"]["+g.NAME_CHAR+"]*$","u"),g.NMTOKEN_RE=new RegExp("^["+g.NAME_CHAR+"]+$","u");function u(i){return i>=65&&i<=90||i>=97&&i<=122||i===58||i===95||i===8204||i===8205||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}g.S_LIST=[32,10,13,9],g.isChar=function(i){return i>=32&&i<=55295||i===10||i===13||i===9||i>=57344&&i<=65533||i>=65536&&i<=1114111},g.isS=function(i){return i===32||i===10||i===13||i===9},g.isNameStartChar=u,g.isNameChar=function(i){return u(i)||i>=48&&i<=57||i===45||i===46||i===183||i>=768&&i<=879||i>=8255&&i<=8256}},{}],544:[function(e,p,g){/**
45
- * Character classes and associated utilities for the 2nd edition of XML 1.1.
46
- *
47
- * @author Louis-Dominique Dubeau
48
- * @license MIT
49
- * @copyright Louis-Dominique Dubeau
50
- */Object.defineProperty(g,"__esModule",{value:!0}),g.CHAR="-퟿-�𐀀-􏿿",g.RESTRICTED_CHAR="-\b\v\f--„†-Ÿ",g.S=` \r
51
- `,g.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",g.NAME_CHAR="-"+g.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",g.CHAR_RE=new RegExp("^["+g.CHAR+"]$","u"),g.RESTRICTED_CHAR_RE=new RegExp("^["+g.RESTRICTED_CHAR+"]$","u"),g.S_RE=new RegExp("^["+g.S+"]+$","u"),g.NAME_START_CHAR_RE=new RegExp("^["+g.NAME_START_CHAR+"]$","u"),g.NAME_CHAR_RE=new RegExp("^["+g.NAME_CHAR+"]$","u"),g.NAME_RE=new RegExp("^["+g.NAME_START_CHAR+"]["+g.NAME_CHAR+"]*$","u"),g.NMTOKEN_RE=new RegExp("^["+g.NAME_CHAR+"]+$","u");function u(i){return i>=65&&i<=90||i>=97&&i<=122||i===58||i===95||i===8204||i===8205||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}g.S_LIST=[32,10,13,9],g.isChar=function(i){return i>=1&&i<=55295||i>=57344&&i<=65533||i>=65536&&i<=1114111},g.isRestrictedChar=function(i){return i>=1&&i<=8||i===11||i===12||i>=14&&i<=31||i>=127&&i<=132||i>=134&&i<=159},g.isCharAndNotRestricted=function(i){return i===9||i===10||i===13||i>31&&i<127||i===133||i>159&&i<=55295||i>=57344&&i<=65533||i>=65536&&i<=1114111},g.isS=function(i){return i===32||i===10||i===13||i===9},g.isNameStartChar=u,g.isNameChar=function(i){return u(i)||i>=48&&i<=57||i===45||i===46||i===183||i>=768&&i<=879||i>=8255&&i<=8256}},{}],545:[function(e,p,g){/**
52
- * Character class utilities for XML NS 1.0 edition 3.
53
- *
54
- * @author Louis-Dominique Dubeau
55
- * @license MIT
56
- * @copyright Louis-Dominique Dubeau
57
- */function u(i){return i>=65&&i<=90||i===95||i>=97&&i<=122||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8204&&i<=8205||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}Object.defineProperty(g,"__esModule",{value:!0}),g.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",g.NC_NAME_CHAR="-"+g.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",g.NC_NAME_START_CHAR_RE=new RegExp("^["+g.NC_NAME_START_CHAR+"]$","u"),g.NC_NAME_CHAR_RE=new RegExp("^["+g.NC_NAME_CHAR+"]$","u"),g.NC_NAME_RE=new RegExp("^["+g.NC_NAME_START_CHAR+"]["+g.NC_NAME_CHAR+"]*$","u"),g.isNCNameStartChar=u,g.isNCNameChar=function(i){return u(i)||i===45||i===46||i>=48&&i<=57||i===183||i>=768&&i<=879||i>=8255&&i<=8256}},{}]},{},[15])(15)})})(qs);var Yo=qs.exports;const Zo=Go(Yo);var Xs={exports:{}};(function(l,A){(function(e,p){p()})(Ye,function(){function e(t,n){return typeof n>"u"?n={autoBom:!1}:typeof n!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),n={autoBom:!n}),n.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\uFEFF",t],{type:t.type}):t}function p(t,n,c){var s=new XMLHttpRequest;s.open("GET",t),s.responseType="blob",s.onload=function(){r(s.response,n,c)},s.onerror=function(){console.error("could not download file")},s.send()}function g(t){var n=new XMLHttpRequest;n.open("HEAD",t,!1);try{n.send()}catch{}return 200<=n.status&&299>=n.status}function u(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}var i=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Ye=="object"&&Ye.global===Ye?Ye:void 0,o=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),r=i.saveAs||(typeof window!="object"||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(t,n,c){var s=i.URL||i.webkitURL,a=document.createElement("a");n=n||t.name||"download",a.download=n,a.rel="noopener",typeof t=="string"?(a.href=t,a.origin===location.origin?u(a):g(a.href)?p(t,n,c):u(a,a.target="_blank")):(a.href=s.createObjectURL(t),setTimeout(function(){s.revokeObjectURL(a.href)},4e4),setTimeout(function(){u(a)},0))}:"msSaveOrOpenBlob"in navigator?function(t,n,c){if(n=n||t.name||"download",typeof t!="string")navigator.msSaveOrOpenBlob(e(t,c),n);else if(g(t))p(t,n,c);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout(function(){u(s)})}}:function(t,n,c,s){if(s=s||open("","_blank"),s&&(s.document.title=s.document.body.innerText="downloading..."),typeof t=="string")return p(t,n,c);var a=t.type==="application/octet-stream",f=/constructor/i.test(i.HTMLElement)||i.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||a&&f||o)&&typeof FileReader<"u"){var d=new FileReader;d.onloadend=function(){var x=d.result;x=h?x:x.replace(/^data:[^;]*;/,"data:attachment/file;"),s?s.location.href=x:location=x,s=null},d.readAsDataURL(t)}else{var b=i.URL||i.webkitURL,m=b.createObjectURL(t);s?s.location=m:location.href=m,s=null,setTimeout(function(){b.revokeObjectURL(m)},4e4)}});i.saveAs=r.saveAs=r,l.exports=r})})(Xs);var Jo=Xs.exports;const Wr=Ws.defineStore("datatables",()=>{const l=E.ref([]),A=E.ref({search:{query:""},advancedFilters:{query:{}},hardFilters:{query:{}},options:{test:!0,query:{},columns:{}}});return{tables:l,addTable:({table_id:o})=>{const r=JSON.parse(JSON.stringify(l.value));r.push({id:o,...A.value}),l.value=r},setData:({table_id:o,name:r,value:t})=>{l.value=l.value.map(n=>{if(n.id===o&&n.hasOwnProperty(r)){const c=n[r];if(console.log(n,c),c&&typeof t=="object")for(const s in t)s in c&&(c[s]=t[s])}return n})},restoreData:({table_id:o,data:r})=>{l.value=l.value.map(t=>(t.id===o&&(t=r),t))},getCurrentTable:o=>l.value.find(r=>r.id===o)}});function An(){const{getCurrentTable:l}=Wr(),A=E.inject("table_props"),e=E.computed(()=>l(A.id)),p=E.computed(()=>{var u;return(u=e.value.search)==null?void 0:u.query}),g=E.computed(()=>{var u;return(u=e.value.advancedFilters)==null?void 0:u.query});return{tableState:e,searchState:p,advancedFiltersState:g}}const Rt=typeof window<"u",mi=Rt&&"IntersectionObserver"in window;function Ks(l,A,e){const p=A.length-1;if(p<0)return l===void 0?e:l;for(let g=0;g<p;g++){if(l==null)return e;l=l[A[g]]}return l==null||l[A[p]]===void 0?e:l[A[p]]}function ur(l,A){if(l===A)return!0;if(l instanceof Date&&A instanceof Date&&l.getTime()!==A.getTime()||l!==Object(l)||A!==Object(A))return!1;const e=Object.keys(l);return e.length!==Object.keys(A).length?!1:e.every(p=>ur(l[p],A[p]))}function gi(l,A,e){return l==null||!A||typeof A!="string"?e:l[A]!==void 0?l[A]:(A=A.replace(/\[(\w+)\]/g,".$1"),A=A.replace(/^\./,""),Ks(l,A.split("."),e))}function jt(l,A,e){if(A===!0)return l===void 0?e:l;if(A==null||typeof A=="boolean")return e;if(l!==Object(l)){if(typeof A!="function")return e;const g=A(l,e);return typeof g>"u"?e:g}if(typeof A=="string")return gi(l,A,e);if(Array.isArray(A))return Ks(l,A,e);if(typeof A!="function")return e;const p=A(l,e);return typeof p>"u"?e:p}function on(l){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:l},(e,p)=>A+p)}function He(l){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(l==null||l===""))return isNaN(+l)?String(l):isFinite(+l)?`${Number(l)}${A}`:void 0}function ni(l){return l!==null&&typeof l=="object"&&!Array.isArray(l)}function Gs(l){if(l&&"$el"in l){const A=l.$el;return(A==null?void 0:A.nodeType)===Node.TEXT_NODE?A.nextElementSibling:A}return l}const Hi=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),Wi=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function Xn(l,A){return A.every(e=>l.hasOwnProperty(e))}function Ys(l,A){const e={},p=new Set(Object.keys(l));for(const g of A)p.has(g)&&(e[g]=l[g]);return e}function qi(l,A,e){const p=Object.create(null),g=Object.create(null);for(const u in l)A.some(i=>i instanceof RegExp?i.test(u):i===u)&&!(e!=null&&e.some(i=>i===u))?p[u]=l[u]:g[u]=l[u];return[p,g]}function Nr(l,A){const e={...l};return A.forEach(p=>delete e[p]),e}function Qo(l,A){const e={};return A.forEach(p=>e[p]=l[p]),e}const Zs=/^on[^a-z]/,Mn=l=>Zs.test(l),el=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"];function Js(l){const[A,e]=qi(l,[Zs]),p=Nr(A,el),[g,u]=qi(e,["class","style","id",/^data-/]);return Object.assign(g,A),Object.assign(u,p),[g,u]}function Nt(l){return l==null?[]:Array.isArray(l)?l:[l]}function tl(l,A){let e=0;const p=function(){for(var g=arguments.length,u=new Array(g),i=0;i<g;i++)u[i]=arguments[i];clearTimeout(e),e=setTimeout(()=>l(...u),E.unref(A))};return p.clear=()=>{clearTimeout(e)},p.immediate=l,p}function Ht(l){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(A,Math.min(e,l))}function Xi(l,A){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return l+e.repeat(Math.max(0,A-l.length))}function rl(l){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const e=[];let p=0;for(;p<l.length;)e.push(l.substr(p,A)),p+=A;return e}function Jt(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2?arguments[2]:void 0;const p={};for(const g in l)p[g]=l[g];for(const g in A){const u=l[g],i=A[g];if(ni(u)&&ni(i)){p[g]=Jt(u,i,e);continue}if(Array.isArray(u)&&Array.isArray(i)&&e){p[g]=e(u,i);continue}p[g]=i}return p}function Qs(l){return l.map(A=>A.type===E.Fragment?Qs(A.children):A).flat()}function mr(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(mr.cache.has(l))return mr.cache.get(l);const A=l.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return mr.cache.set(l,A),A}mr.cache=new Map;function Br(l,A){if(!A||typeof A!="object")return[];if(Array.isArray(A))return A.map(e=>Br(l,e)).flat(1);if(A.suspense)return Br(l,A.ssContent);if(Array.isArray(A.children))return A.children.map(e=>Br(l,e)).flat(1);if(A.component){if(Object.getOwnPropertySymbols(A.component.provides).includes(l))return[A.component];if(A.component.subTree)return Br(l,A.component.subTree).flat(1)}return[]}function bi(l){const A=E.reactive({}),e=E.computed(l);return E.watchEffect(()=>{for(const p in e.value)A[p]=e.value[p]},{flush:"sync"}),E.toRefs(A)}function gn(l,A){return l.includes(A)}function ea(l){return l[2].toLowerCase()+l.slice(3)}const Ot=()=>[Function,Array];function Ki(l,A){return A="on"+E.capitalize(A),!!(l[A]||l[`${A}Once`]||l[`${A}Capture`]||l[`${A}OnceCapture`]||l[`${A}CaptureOnce`])}function nl(l){for(var A=arguments.length,e=new Array(A>1?A-1:0),p=1;p<A;p++)e[p-1]=arguments[p];if(Array.isArray(l))for(const g of l)g(...e);else typeof l=="function"&&l(...e)}function Vr(l){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const e=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(p=>`${p}${A?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...l.querySelectorAll(e)]}function ta(l,A,e){let p,g=l.indexOf(document.activeElement);const u=A==="next"?1:-1;do g+=u,p=l[g];while((!p||p.offsetParent==null||!((e==null?void 0:e(p))??!0))&&g<l.length&&g>=0);return p}function bn(l,A){var p,g,u,i;const e=Vr(l);if(!A)(l===document.activeElement||!l.contains(document.activeElement))&&((p=e[0])==null||p.focus());else if(A==="first")(g=e[0])==null||g.focus();else if(A==="last")(u=e.at(-1))==null||u.focus();else if(typeof A=="number")(i=e[A])==null||i.focus();else{const o=ta(e,A);o?o.focus():bn(l,A==="next"?"first":"last")}}function ln(l){return l==null||typeof l=="string"&&l.trim()===""}function vn(l,A){if(!(Rt&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${A})`)))return null;try{return!!l&&l.matches(A)}catch{return null}}function ra(l){return l.some(A=>E.isVNode(A)?A.type===E.Comment?!1:A.type!==E.Fragment||ra(A.children):!0)?l:null}function il(l,A){if(!Rt||l===0)return A(),()=>{};const e=window.setTimeout(A,l);return()=>window.clearTimeout(e)}function sl(l,A){const e=l.clientX,p=l.clientY,g=A.getBoundingClientRect(),u=g.left,i=g.top,o=g.right,r=g.bottom;return e>=u&&e<=o&&p>=i&&p<=r}function ii(){const l=E.shallowRef(),A=e=>{l.value=e};return Object.defineProperty(A,"value",{enumerable:!0,get:()=>l.value,set:e=>l.value=e}),Object.defineProperty(A,"el",{enumerable:!0,get:()=>Gs(l.value)}),A}const na=["top","bottom"],al=["start","end","left","right"];function si(l,A){let[e,p]=l.split(" ");return p||(p=gn(na,e)?"start":gn(al,e)?"top":"center"),{side:Gi(e,A),align:Gi(p,A)}}function Gi(l,A){return l==="start"?A?"right":"left":l==="end"?A?"left":"right":l}function Kn(l){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[l.side],align:l.align}}function Gn(l){return{side:l.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[l.align]}}function Yi(l){return{side:l.align,align:l.side}}function Zi(l){return gn(na,l.side)?"y":"x"}class gr{constructor(A){let{x:e,y:p,width:g,height:u}=A;this.x=e,this.y=p,this.width=g,this.height=u}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function Ji(l,A){return{x:{before:Math.max(0,A.left-l.left),after:Math.max(0,l.right-A.right)},y:{before:Math.max(0,A.top-l.top),after:Math.max(0,l.bottom-A.bottom)}}}function ia(l){return Array.isArray(l)?new gr({x:l[0],y:l[1],width:0,height:0}):l.getBoundingClientRect()}function vi(l){const A=l.getBoundingClientRect(),e=getComputedStyle(l),p=e.transform;if(p){let g,u,i,o,r;if(p.startsWith("matrix3d("))g=p.slice(9,-1).split(/, /),u=+g[0],i=+g[5],o=+g[12],r=+g[13];else if(p.startsWith("matrix("))g=p.slice(7,-1).split(/, /),u=+g[0],i=+g[3],o=+g[4],r=+g[5];else return new gr(A);const t=e.transformOrigin,n=A.x-o-(1-u)*parseFloat(t),c=A.y-r-(1-i)*parseFloat(t.slice(t.indexOf(" ")+1)),s=u?A.width/u:l.offsetWidth+1,a=i?A.height/i:l.offsetHeight+1;return new gr({x:n,y:c,width:s,height:a})}else return new gr(A)}function Er(l,A,e){if(typeof l.animate>"u")return{finished:Promise.resolve()};let p;try{p=l.animate(A,e)}catch{return{finished:Promise.resolve()}}return typeof p.finished>"u"&&(p.finished=new Promise(g=>{p.onfinish=()=>{g(p)}})),p}const fn=new WeakMap;function ol(l,A){Object.keys(A).forEach(e=>{if(Mn(e)){const p=ea(e),g=fn.get(l);if(A[e]==null)g==null||g.forEach(u=>{const[i,o]=u;i===p&&(l.removeEventListener(p,o),g.delete(u))});else if(!g||![...g].some(u=>u[0]===p&&u[1]===A[e])){l.addEventListener(p,A[e]);const u=g||new Set;u.add([p,A[e]]),fn.has(l)||fn.set(l,u)}}else A[e]==null?l.removeAttribute(e):l.setAttribute(e,A[e])})}function ll(l,A){Object.keys(A).forEach(e=>{if(Mn(e)){const p=ea(e),g=fn.get(l);g==null||g.forEach(u=>{const[i,o]=u;i===p&&(l.removeEventListener(p,o),g.delete(u))})}else l.removeAttribute(e)})}const Tr=2.4,Qi=.2126729,es=.7151522,ts=.072175,ul=.55,cl=.58,dl=.57,fl=.62,un=.03,rs=1.45,hl=5e-4,pl=1.25,ml=1.25,ns=.078,is=12.82051282051282,cn=.06,ss=.001;function as(l,A){const e=(l.r/255)**Tr,p=(l.g/255)**Tr,g=(l.b/255)**Tr,u=(A.r/255)**Tr,i=(A.g/255)**Tr,o=(A.b/255)**Tr;let r=e*Qi+p*es+g*ts,t=u*Qi+i*es+o*ts;if(r<=un&&(r+=(un-r)**rs),t<=un&&(t+=(un-t)**rs),Math.abs(t-r)<hl)return 0;let n;if(t>r){const c=(t**ul-r**cl)*pl;n=c<ss?0:c<ns?c-c*is*cn:c-cn}else{const c=(t**fl-r**dl)*ml;n=c>-ss?0:c>-ns?c-c*is*cn:c+cn}return n*100}function br(l){E.warn(`Vuetify: ${l}`)}function sa(l){E.warn(`Vuetify error: ${l}`)}function gl(l,A){A=Array.isArray(A)?A.slice(0,-1).map(e=>`'${e}'`).join(", ")+` or '${A.at(-1)}'`:`'${A}'`,E.warn(`[Vuetify UPGRADE] '${l}' is deprecated, use ${A} instead.`)}function ai(l){return!!l&&/^(#|var\(--|(rgb|hsl)a?\()/.test(l)}function bl(l){return ai(l)&&!/^((rgb|hsl)a?\()?var\(--/.test(l)}const os=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,vl={rgb:(l,A,e,p)=>({r:l,g:A,b:e,a:p}),rgba:(l,A,e,p)=>({r:l,g:A,b:e,a:p}),hsl:(l,A,e,p)=>ls({h:l,s:A,l:e,a:p}),hsla:(l,A,e,p)=>ls({h:l,s:A,l:e,a:p}),hsv:(l,A,e,p)=>Lr({h:l,s:A,v:e,a:p}),hsva:(l,A,e,p)=>Lr({h:l,s:A,v:e,a:p})};function Fr(l){if(typeof l=="number")return(isNaN(l)||l<0||l>16777215)&&br(`'${l}' is not a valid hex color`),{r:(l&16711680)>>16,g:(l&65280)>>8,b:l&255};if(typeof l=="string"&&os.test(l)){const{groups:A}=l.match(os),{fn:e,values:p}=A,g=p.split(/,\s*/).map(u=>u.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(e)?parseFloat(u)/100:parseFloat(u));return vl[e](...g)}else if(typeof l=="string"){let A=l.startsWith("#")?l.slice(1):l;[3,4].includes(A.length)?A=A.split("").map(p=>p+p).join(""):[6,8].includes(A.length)||br(`'${l}' is not a valid hex(a) color`);const e=parseInt(A,16);return(isNaN(e)||e<0||e>4294967295)&&br(`'${l}' is not a valid hex(a) color`),yl(A)}else if(typeof l=="object"){if(Xn(l,["r","g","b"]))return l;if(Xn(l,["h","s","l"]))return Lr(aa(l));if(Xn(l,["h","s","v"]))return Lr(l)}throw new TypeError(`Invalid color: ${l==null?l:String(l)||l.constructor.name}
58
- Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function Lr(l){const{h:A,s:e,v:p,a:g}=l,u=o=>{const r=(o+A/60)%6;return p-p*e*Math.max(Math.min(r,4-r,1),0)},i=[u(5),u(3),u(1)].map(o=>Math.round(o*255));return{r:i[0],g:i[1],b:i[2],a:g}}function ls(l){return Lr(aa(l))}function aa(l){const{h:A,s:e,l:p,a:g}=l,u=p+e*Math.min(p,1-p),i=u===0?0:2-2*p/u;return{h:A,s:i,v:u,a:g}}function yl(l){l=wl(l);let[A,e,p,g]=rl(l,2).map(u=>parseInt(u,16));return g=g===void 0?g:g/255,{r:A,g:e,b:p,a:g}}function wl(l){return l.startsWith("#")&&(l=l.slice(1)),l=l.replace(/([^0-9a-f])/gi,"F"),(l.length===3||l.length===4)&&(l=l.split("").map(A=>A+A).join("")),l.length!==6&&(l=Xi(Xi(l,6),8,"F")),l}function _l(l){const A=Math.abs(as(Fr(0),Fr(l)));return Math.abs(as(Fr(16777215),Fr(l)))>Math.min(A,50)?"#fff":"#000"}function ge(l,A){return e=>Object.keys(l).reduce((p,g)=>{const i=typeof l[g]=="object"&&l[g]!=null&&!Array.isArray(l[g])?l[g]:{type:l[g]};return e&&g in e?p[g]={...i,default:e[g]}:p[g]=i,A&&!p[g].source&&(p[g].source=A),p},{})}const Qe=ge({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component");function kt(l,A){const e=E.getCurrentInstance();if(!e)throw new Error(`[Vuetify] ${l} must be called from inside a setup function`);return e}function Xt(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const A=kt(l).type;return mr((A==null?void 0:A.aliasName)||(A==null?void 0:A.name))}let oa=0,hn=new WeakMap;function tr(){const l=kt("getUid");if(hn.has(l))return hn.get(l);{const A=oa++;return hn.set(l,A),A}}tr.reset=()=>{oa=0,hn=new WeakMap};function xl(l){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kt("injectSelf");const{provides:e}=A;if(e&&l in e)return e[l]}const yn=Symbol.for("vuetify:defaults");function yi(){const l=E.inject(yn);if(!l)throw new Error("[Vuetify] Could not find defaults instance");return l}function Qt(l,A){const e=yi(),p=E.ref(l),g=E.computed(()=>{if(E.unref(A==null?void 0:A.disabled))return e.value;const i=E.unref(A==null?void 0:A.scoped),o=E.unref(A==null?void 0:A.reset),r=E.unref(A==null?void 0:A.root);if(p.value==null&&!(i||o||r))return e.value;let t=Jt(p.value,{prev:e.value});if(i)return t;if(o||r){const n=Number(o||1/0);for(let c=0;c<=n&&!(!t||!("prev"in t));c++)t=t.prev;return t&&typeof r=="string"&&r in t&&(t=Jt(Jt(t,{prev:t}),t[r])),t}return t.prev?Jt(t.prev,t):t});return E.provide(yn,g),g}function Sl(l,A){var e,p;return typeof((e=l.props)==null?void 0:e[A])<"u"||typeof((p=l.props)==null?void 0:p[mr(A)])<"u"}function kl(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=arguments.length>1?arguments[1]:void 0,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:yi();const p=kt("useDefaults");if(A=A??p.type.name??p.type.__name,!A)throw new Error("[Vuetify] Could not determine component name");const g=E.computed(()=>{var r;return(r=e.value)==null?void 0:r[l._as??A]}),u=new Proxy(l,{get(r,t){var c,s,a,f,h,d,b;const n=Reflect.get(r,t);return t==="class"||t==="style"?[(c=g.value)==null?void 0:c[t],n].filter(m=>m!=null):typeof t=="string"&&!Sl(p.vnode,t)?((s=g.value)==null?void 0:s[t])!==void 0?(a=g.value)==null?void 0:a[t]:((h=(f=e.value)==null?void 0:f.global)==null?void 0:h[t])!==void 0?(b=(d=e.value)==null?void 0:d.global)==null?void 0:b[t]:n:n}}),i=E.shallowRef();E.watchEffect(()=>{if(g.value){const r=Object.entries(g.value).filter(t=>{let[n]=t;return n.startsWith(n[0].toUpperCase())});i.value=r.length?Object.fromEntries(r):void 0}else i.value=void 0});function o(){const r=xl(yn,p);E.provide(yn,E.computed(()=>i.value?Jt((r==null?void 0:r.value)??{},i.value):r==null?void 0:r.value))}return{props:u,provideSubDefaults:o}}function qr(l){if(l._setup=l._setup??l.setup,!l.name)return br("The component is missing an explicit name, unable to generate default prop value"),l;if(l._setup){l.props=ge(l.props??{},l.name)();const A=Object.keys(l.props).filter(e=>e!=="class"&&e!=="style");l.filterProps=function(p){return Ys(p,A)},l.props._as=String,l.setup=function(p,g){const u=yi();if(!u.value)return l._setup(p,g);const{props:i,provideSubDefaults:o}=kl(p,p._as??l.name,u),r=l._setup(i,g);return o(),r}}return l}function Oe(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return A=>(l?qr:E.defineComponent)(A)}function Cl(l,A){return A.props=l,A}function la(l){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",e=arguments.length>2?arguments[2]:void 0;return Oe()({name:e??E.capitalize(E.camelize(l.replace(/__/g,"-"))),props:{tag:{type:String,default:A},...Qe()},setup(p,g){let{slots:u}=g;return()=>{var i;return E.h(p.tag,{class:[l,p.class],style:p.style},(i=u.default)==null?void 0:i.call(u))}}})}function ua(l){if(typeof l.getRootNode!="function"){for(;l.parentNode;)l=l.parentNode;return l!==document?null:document}const A=l.getRootNode();return A!==document&&A.getRootNode({composed:!0})!==document?null:A}const wn="cubic-bezier(0.4, 0, 0.2, 1)",Tl="cubic-bezier(0.0, 0, 0.2, 1)",El="cubic-bezier(0.4, 0, 1, 1)";function us(l,A,e){return Object.keys(l).filter(p=>Mn(p)&&p.endsWith(A)).reduce((p,g)=>(p[g.slice(0,-A.length)]=u=>l[g](u,e(u)),p),{})}function ca(l){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;l;){if(A?Al(l):wi(l))return l;l=l.parentElement}return document.scrollingElement}function _n(l,A){const e=[];if(A&&l&&!A.contains(l))return e;for(;l&&(wi(l)&&e.push(l),l!==A);)l=l.parentElement;return e}function wi(l){if(!l||l.nodeType!==Node.ELEMENT_NODE)return!1;const A=window.getComputedStyle(l);return A.overflowY==="scroll"||A.overflowY==="auto"&&l.scrollHeight>l.clientHeight}function Al(l){if(!l||l.nodeType!==Node.ELEMENT_NODE)return!1;const A=window.getComputedStyle(l);return["scroll","auto"].includes(A.overflowY)}function Ml(l){for(;l;){if(window.getComputedStyle(l).position==="fixed")return!0;l=l.offsetParent}return!1}function qe(l){const A=kt("useRender");A.render=l}const cr=ge({border:[Boolean,Number,String]},"border");function wr(l){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xt();return{borderClasses:E.computed(()=>{const p=E.isRef(l)?l.value:l.border,g=[];if(p===!0||p==="")g.push(`${A}--border`);else if(typeof p=="string"||p===0)for(const u of String(p).split(" "))g.push(`border-${u}`);return g})}}const Rl=[null,"default","comfortable","compact"],zt=ge({density:{type:String,default:"default",validator:l=>Rl.includes(l)}},"density");function Kt(l){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xt();return{densityClasses:E.computed(()=>`${A}--density-${l.density}`)}}const rr=ge({elevation:{type:[Number,String],validator(l){const A=parseInt(l);return!isNaN(A)&&A>=0&&A<=24}}},"elevation");function dr(l){return{elevationClasses:E.computed(()=>{const e=E.isRef(l)?l.value:l.elevation,p=[];return e==null||p.push(`elevation-${e}`),p})}}const $t=ge({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function qt(l){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xt();return{roundedClasses:E.computed(()=>{const p=E.isRef(l)?l.value:l.rounded,g=E.isRef(l)?l.value:l.tile,u=[];if(p===!0||p==="")u.push(`${A}--rounded`);else if(typeof p=="string"||p===0)for(const i of String(p).split(" "))u.push(`rounded-${i}`);else(g||p===!1)&&u.push("rounded-0");return u})}}const _t=ge({tag:{type:String,default:"div"}},"tag"),cs=Symbol.for("vuetify:theme"),xt=ge({theme:String},"theme");function Et(l){kt("provideTheme");const A=E.inject(cs,null);if(!A)throw new Error("Could not find Vuetify theme injection");const e=E.computed(()=>l.theme??A.name.value),p=E.computed(()=>A.themes.value[e.value]),g=E.computed(()=>A.isDisabled?void 0:`v-theme--${e.value}`),u={...A,name:e,current:p,themeClasses:g};return E.provide(cs,u),u}function _i(l){return bi(()=>{const A=[],e={};if(l.value.background)if(ai(l.value.background)){if(e.backgroundColor=l.value.background,!l.value.text&&bl(l.value.background)){const p=Fr(l.value.background);if(p.a==null||p.a===1){const g=_l(p);e.color=g,e.caretColor=g}}}else A.push(`bg-${l.value.background}`);return l.value.text&&(ai(l.value.text)?(e.color=l.value.text,e.caretColor=l.value.text):A.push(`text-${l.value.text}`)),{colorClasses:A,colorStyles:e}})}function er(l,A){const e=E.computed(()=>({text:E.isRef(l)?l.value:A?l[A]:null})),{colorClasses:p,colorStyles:g}=_i(e);return{textColorClasses:p,textColorStyles:g}}function Wt(l,A){const e=E.computed(()=>({background:E.isRef(l)?l.value:A?l[A]:null})),{colorClasses:p,colorStyles:g}=_i(e);return{backgroundColorClasses:p,backgroundColorStyles:g}}const Nl=["elevated","flat","tonal","outlined","text","plain"];function Xr(l,A){return E.createVNode(E.Fragment,null,[l&&E.createVNode("span",{key:"overlay",class:`${A}__overlay`},null),E.createVNode("span",{key:"underlay",class:`${A}__underlay`},null)])}const nr=ge({color:String,variant:{type:String,default:"elevated",validator:l=>Nl.includes(l)}},"variant");function Kr(l){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xt();const e=E.computed(()=>{const{variant:u}=E.unref(l);return`${A}--variant-${u}`}),{colorClasses:p,colorStyles:g}=_i(E.computed(()=>{const{variant:u,color:i}=E.unref(l);return{[["elevated","flat"].includes(u)?"background":"text"]:i}}));return{colorClasses:p,colorStyles:g,variantClasses:e}}const da=ge({baseColor:String,divided:Boolean,...cr(),...Qe(),...zt(),...rr(),...$t(),..._t(),...xt(),...nr()},"VBtnGroup"),ds=Oe()({name:"VBtnGroup",props:da(),setup(l,A){let{slots:e}=A;const{themeClasses:p}=Et(l),{densityClasses:g}=Kt(l),{borderClasses:u}=wr(l),{elevationClasses:i}=dr(l),{roundedClasses:o}=qt(l);Qt({VBtn:{height:"auto",baseColor:E.toRef(l,"baseColor"),color:E.toRef(l,"color"),density:E.toRef(l,"density"),flat:!0,variant:E.toRef(l,"variant")}}),qe(()=>E.createVNode(l.tag,{class:["v-btn-group",{"v-btn-group--divided":l.divided},p.value,u.value,g.value,i.value,o.value,l.class],style:l.style},e))}});function vr(l,A){let e;function p(){e=E.effectScope(),e.run(()=>A.length?A(()=>{e==null||e.stop(),p()}):A())}E.watch(l,g=>{g&&!e?p():g||(e==null||e.stop(),e=void 0)},{immediate:!0}),E.onScopeDispose(()=>{e==null||e.stop()})}function vt(l,A,e){let p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:c=>c,g=arguments.length>4&&arguments[4]!==void 0?arguments[4]:c=>c;const u=kt("useProxiedModel"),i=E.ref(l[A]!==void 0?l[A]:e),o=mr(A),t=o!==A?E.computed(()=>{var c,s,a,f;return l[A],!!(((c=u.vnode.props)!=null&&c.hasOwnProperty(A)||(s=u.vnode.props)!=null&&s.hasOwnProperty(o))&&((a=u.vnode.props)!=null&&a.hasOwnProperty(`onUpdate:${A}`)||(f=u.vnode.props)!=null&&f.hasOwnProperty(`onUpdate:${o}`)))}):E.computed(()=>{var c,s;return l[A],!!((c=u.vnode.props)!=null&&c.hasOwnProperty(A)&&((s=u.vnode.props)!=null&&s.hasOwnProperty(`onUpdate:${A}`)))});vr(()=>!t.value,()=>{E.watch(()=>l[A],c=>{i.value=c})});const n=E.computed({get(){const c=l[A];return p(t.value?c:i.value)},set(c){const s=g(c),a=E.toRaw(t.value?l[A]:i.value);a===s||p(a)===c||(i.value=s,u==null||u.emit(`update:${A}`,s))}});return Object.defineProperty(n,"externalValue",{get:()=>t.value?l[A]:i.value}),n}const xi=ge({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),fa=ge({value:null,disabled:Boolean,selectedClass:String},"group-item");function ha(l,A){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const p=kt("useGroupItem");if(!p)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const g=tr();E.provide(Symbol.for(`${A.description}:id`),g);const u=E.inject(A,null);if(!u){if(!e)return u;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${A.description}`)}const i=E.toRef(l,"value"),o=E.computed(()=>!!(u.disabled.value||l.disabled));u.register({id:g,value:i,disabled:o},p),E.onBeforeUnmount(()=>{u.unregister(g)});const r=E.computed(()=>u.isSelected(g)),t=E.computed(()=>u.items.value[0].id===g),n=E.computed(()=>u.items.value[u.items.value.length-1].id===g),c=E.computed(()=>r.value&&[u.selectedClass.value,l.selectedClass]);return E.watch(r,s=>{p.emit("group:selected",{value:s})},{flush:"sync"}),{id:g,isSelected:r,isFirst:t,isLast:n,toggle:()=>u.select(g,!r.value),select:s=>u.select(g,s),selectedClass:c,value:i,disabled:o,group:u}}function Si(l,A){let e=!1;const p=E.reactive([]),g=vt(l,"modelValue",[],s=>s==null?[]:pa(p,Nt(s)),s=>{const a=Il(p,s);return l.multiple?a:a[0]}),u=kt("useGroup");function i(s,a){const f=s,h=Symbol.for(`${A.description}:id`),b=Br(h,u==null?void 0:u.vnode).indexOf(a);E.unref(f.value)==null&&(f.value=b,f.useIndexAsValue=!0),b>-1?p.splice(b,0,f):p.push(f)}function o(s){if(e)return;r();const a=p.findIndex(f=>f.id===s);p.splice(a,1)}function r(){const s=p.find(a=>!a.disabled);s&&l.mandatory==="force"&&!g.value.length&&(g.value=[s.id])}E.onMounted(()=>{r()}),E.onBeforeUnmount(()=>{e=!0}),E.onUpdated(()=>{for(let s=0;s<p.length;s++)p[s].useIndexAsValue&&(p[s].value=s)});function t(s,a){const f=p.find(h=>h.id===s);if(!(a&&(f!=null&&f.disabled)))if(l.multiple){const h=g.value.slice(),d=h.findIndex(m=>m===s),b=~d;if(a=a??!b,b&&l.mandatory&&h.length<=1||!b&&l.max!=null&&h.length+1>l.max)return;d<0&&a?h.push(s):d>=0&&!a&&h.splice(d,1),g.value=h}else{const h=g.value.includes(s);if(l.mandatory&&h)return;g.value=a??!h?[s]:[]}}function n(s){if(l.multiple&&br('This method is not supported when using "multiple" prop'),g.value.length){const a=g.value[0],f=p.findIndex(b=>b.id===a);let h=(f+s)%p.length,d=p[h];for(;d.disabled&&h!==f;)h=(h+s)%p.length,d=p[h];if(d.disabled)return;g.value=[p[h].id]}else{const a=p.find(f=>!f.disabled);a&&(g.value=[a.id])}}const c={register:i,unregister:o,selected:g,select:t,disabled:E.toRef(l,"disabled"),prev:()=>n(p.length-1),next:()=>n(1),isSelected:s=>g.value.includes(s),selectedClass:E.computed(()=>l.selectedClass),items:E.computed(()=>p),getItemIndex:s=>Ol(p,s)};return E.provide(A,c),c}function Ol(l,A){const e=pa(l,[A]);return e.length?l.findIndex(p=>p.id===e[0]):-1}function pa(l,A){const e=[];return A.forEach(p=>{const g=l.find(i=>ur(p,i.value)),u=l[p];(g==null?void 0:g.value)!=null?e.push(g.id):u!=null&&e.push(u.id)}),e}function Il(l,A){const e=[];return A.forEach(p=>{const g=l.findIndex(u=>u.id===p);if(~g){const u=l[g];e.push(u.value!=null?u.value:g)}}),e}const ma=Symbol.for("vuetify:v-btn-toggle"),Pl=ge({...da(),...xi()},"VBtnToggle");Oe()({name:"VBtnToggle",props:Pl(),emits:{"update:modelValue":l=>!0},setup(l,A){let{slots:e}=A;const{isSelected:p,next:g,prev:u,select:i,selected:o}=Si(l,ma);return qe(()=>{const r=ds.filterProps(l);return E.createVNode(ds,E.mergeProps({class:["v-btn-toggle",l.class]},r,{style:l.style}),{default:()=>{var t;return[(t=e.default)==null?void 0:t.call(e,{isSelected:p,next:g,prev:u,select:i,selected:o})]}})}),{next:g,prev:u,select:i}}});const jl=ge({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),Mt=Oe(!1)({name:"VDefaultsProvider",props:jl(),setup(l,A){let{slots:e}=A;const{defaults:p,disabled:g,reset:u,root:i,scoped:o}=E.toRefs(l);return Qt(p,{reset:u,root:i,scoped:o,disabled:g}),()=>{var r;return(r=e.default)==null?void 0:r.call(e)}}}),it=[String,Function,Object,Array],Bl=Symbol.for("vuetify:icons"),Rn=ge({icon:{type:it},tag:{type:String,required:!0}},"icon"),fs=Oe()({name:"VComponentIcon",props:Rn(),setup(l,A){let{slots:e}=A;return()=>{const p=l.icon;return E.createVNode(l.tag,null,{default:()=>{var g;return[l.icon?E.createVNode(p,null,null):(g=e.default)==null?void 0:g.call(e)]}})}}}),Fl=qr({name:"VSvgIcon",inheritAttrs:!1,props:Rn(),setup(l,A){let{attrs:e}=A;return()=>E.createVNode(l.tag,E.mergeProps(e,{style:null}),{default:()=>[E.createVNode("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(l.icon)?l.icon.map(p=>Array.isArray(p)?E.createVNode("path",{d:p[0],"fill-opacity":p[1]},null):E.createVNode("path",{d:p},null)):E.createVNode("path",{d:l.icon},null)])]})}});qr({name:"VLigatureIcon",props:Rn(),setup(l){return()=>E.createVNode(l.tag,null,{default:()=>[l.icon]})}});qr({name:"VClassIcon",props:Rn(),setup(l){return()=>E.createVNode(l.tag,{class:l.icon},null)}});const Dl=l=>{const A=E.inject(Bl);if(!A)throw new Error("Missing Vuetify Icons provide!");return{iconData:E.computed(()=>{var r;const p=E.unref(l);if(!p)return{component:fs};let g=p;if(typeof g=="string"&&(g=g.trim(),g.startsWith("$")&&(g=(r=A.aliases)==null?void 0:r[g.slice(1)])),g||br(`Could not find aliased icon "${p}"`),Array.isArray(g))return{component:Fl,icon:g};if(typeof g!="string")return{component:fs,icon:g};const u=Object.keys(A.sets).find(t=>typeof g=="string"&&g.startsWith(`${t}:`)),i=u?g.slice(u.length+1):g;return{component:A.sets[u??A.defaultSet].component,icon:i}})}},Vl=["x-small","small","default","large","x-large"],Or=ge({size:{type:[String,Number],default:"default"}},"size");function Gr(l){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xt();return bi(()=>{let e,p;return gn(Vl,l.size)?e=`${A}--size-${l.size}`:l.size&&(p={width:He(l.size),height:He(l.size)}),{sizeClasses:e,sizeStyles:p}})}const Ll=ge({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:it,...Qe(),...Or(),..._t({tag:"i"}),...xt()},"VIcon"),St=Oe()({name:"VIcon",props:Ll(),setup(l,A){let{attrs:e,slots:p}=A;const g=E.ref(),{themeClasses:u}=Et(l),{iconData:i}=Dl(E.computed(()=>g.value||l.icon)),{sizeClasses:o}=Gr(l),{textColorClasses:r,textColorStyles:t}=er(E.toRef(l,"color"));return qe(()=>{var s,a;const n=(s=p.default)==null?void 0:s.call(p);n&&(g.value=(a=Qs(n).filter(f=>f.type===E.Text&&f.children&&typeof f.children=="string")[0])==null?void 0:a.children);const c=!!(e.onClick||e.onClickOnce);return E.createVNode(i.value.component,{tag:l.tag,icon:i.value.icon,class:["v-icon","notranslate",u.value,o.value,r.value,{"v-icon--clickable":c,"v-icon--disabled":l.disabled,"v-icon--start":l.start,"v-icon--end":l.end},l.class],style:[o.value?void 0:{fontSize:He(l.size),height:He(l.size),width:He(l.size)},t.value,l.style],role:c?"button":void 0,"aria-hidden":!c,tabindex:c?l.disabled?-1:0:void 0},{default:()=>[n]})}),{}}});function ga(l,A){const e=E.ref(),p=E.shallowRef(!1);if(mi){const g=new IntersectionObserver(u=>{p.value=!!u.find(i=>i.isIntersecting)},A);E.onBeforeUnmount(()=>{g.disconnect()}),E.watch(e,(u,i)=>{i&&(g.unobserve(i),p.value=!1),u&&g.observe(u)},{flush:"post"})}return{intersectionRef:e,isIntersecting:p}}function Ar(l){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const e=ii(),p=E.ref();if(Rt){const g=new ResizeObserver(u=>{l==null||l(u,g),u.length&&(A==="content"?p.value=u[0].contentRect:p.value=u[0].target.getBoundingClientRect())});E.onBeforeUnmount(()=>{g.disconnect()}),E.watch(()=>e.el,(u,i)=>{i&&(g.unobserve(i),p.value=void 0),u&&g.observe(u)},{flush:"post"})}return{resizeRef:e,contentRect:E.readonly(p)}}const zl=ge({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...Qe(),...Or(),..._t({tag:"div"}),...xt()},"VProgressCircular"),$l=Oe()({name:"VProgressCircular",props:zl(),setup(l,A){let{slots:e}=A;const p=20,g=2*Math.PI*p,u=E.ref(),{themeClasses:i}=Et(l),{sizeClasses:o,sizeStyles:r}=Gr(l),{textColorClasses:t,textColorStyles:n}=er(E.toRef(l,"color")),{textColorClasses:c,textColorStyles:s}=er(E.toRef(l,"bgColor")),{intersectionRef:a,isIntersecting:f}=ga(),{resizeRef:h,contentRect:d}=Ar(),b=E.computed(()=>Math.max(0,Math.min(100,parseFloat(l.modelValue)))),m=E.computed(()=>Number(l.width)),x=E.computed(()=>r.value?Number(l.size):d.value?d.value.width:Math.max(m.value,32)),k=E.computed(()=>p/(1-m.value/x.value)*2),R=E.computed(()=>m.value/x.value*k.value),F=E.computed(()=>He((100-b.value)/100*g));return E.watchEffect(()=>{a.value=u.value,h.value=u.value}),qe(()=>E.createVNode(l.tag,{ref:u,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!l.indeterminate,"v-progress-circular--visible":f.value,"v-progress-circular--disable-shrink":l.indeterminate==="disable-shrink"},i.value,o.value,t.value,l.class],style:[r.value,n.value,l.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":l.indeterminate?void 0:b.value},{default:()=>[E.createVNode("svg",{style:{transform:`rotate(calc(-90deg + ${Number(l.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${k.value} ${k.value}`},[E.createVNode("circle",{class:["v-progress-circular__underlay",c.value],style:s.value,fill:"transparent",cx:"50%",cy:"50%",r:p,"stroke-width":R.value,"stroke-dasharray":g,"stroke-dashoffset":0},null),E.createVNode("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:p,"stroke-width":R.value,"stroke-dasharray":g,"stroke-dashoffset":F.value},null)]),e.default&&E.createVNode("div",{class:"v-progress-circular__content"},[e.default({value:b.value})])]})),{}}}),Gt=ge({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function Yt(l){return{dimensionStyles:E.computed(()=>{const e={},p=He(l.height),g=He(l.maxHeight),u=He(l.maxWidth),i=He(l.minHeight),o=He(l.minWidth),r=He(l.width);return p!=null&&(e.height=p),g!=null&&(e.maxHeight=g),u!=null&&(e.maxWidth=u),i!=null&&(e.minHeight=i),o!=null&&(e.minWidth=o),r!=null&&(e.width=r),e})}}const ba=Symbol.for("vuetify:locale");function ir(){const l=E.inject(ba);if(!l)throw new Error("[Vuetify] Could not find injected locale instance");return l}function fr(){const l=E.inject(ba);if(!l)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:l.isRtl,rtlClasses:l.rtlClasses}}const hs={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},Nn=ge({location:String},"location");function On(l){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=arguments.length>2?arguments[2]:void 0;const{isRtl:p}=fr();return{locationStyles:E.computed(()=>{if(!l.location)return{};const{side:u,align:i}=si(l.location.split(" ").length>1?l.location:`${l.location} center`,p.value);function o(t){return e?e(t):0}const r={};return u!=="center"&&(A?r[hs[u]]=`calc(100% - ${o(u)}px)`:r[u]=0),i!=="center"?A?r[hs[i]]=`calc(100% - ${o(i)}px)`:r[i]=0:(u==="center"?r.top=r.left="50%":r[{top:"left",bottom:"left",left:"top",right:"top"}[u]]="50%",r.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[u]),r})}}const Ul=ge({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...Qe(),...Nn({location:"top"}),...$t(),..._t(),...xt()},"VProgressLinear"),Hl=Oe()({name:"VProgressLinear",props:Ul(),emits:{"update:modelValue":l=>!0},setup(l,A){let{slots:e}=A;const p=vt(l,"modelValue"),{isRtl:g,rtlClasses:u}=fr(),{themeClasses:i}=Et(l),{locationStyles:o}=On(l),{textColorClasses:r,textColorStyles:t}=er(l,"color"),{backgroundColorClasses:n,backgroundColorStyles:c}=Wt(E.computed(()=>l.bgColor||l.color)),{backgroundColorClasses:s,backgroundColorStyles:a}=Wt(E.computed(()=>l.bufferColor||l.bgColor||l.color)),{backgroundColorClasses:f,backgroundColorStyles:h}=Wt(l,"color"),{roundedClasses:d}=qt(l),{intersectionRef:b,isIntersecting:m}=ga(),x=E.computed(()=>parseFloat(l.max)),k=E.computed(()=>parseFloat(l.height)),R=E.computed(()=>Ht(parseFloat(l.bufferValue)/x.value*100,0,100)),F=E.computed(()=>Ht(parseFloat(p.value)/x.value*100,0,100)),L=E.computed(()=>g.value!==l.reverse),j=E.computed(()=>l.indeterminate?"fade-transition":"slide-x-transition");function D(z){if(!b.value)return;const{left:$,right:V,width:T}=b.value.getBoundingClientRect(),M=L.value?T-z.clientX+(V-T):z.clientX-$;p.value=Math.round(M/T*x.value)}return qe(()=>E.createVNode(l.tag,{ref:b,class:["v-progress-linear",{"v-progress-linear--absolute":l.absolute,"v-progress-linear--active":l.active&&m.value,"v-progress-linear--reverse":L.value,"v-progress-linear--rounded":l.rounded,"v-progress-linear--rounded-bar":l.roundedBar,"v-progress-linear--striped":l.striped},d.value,i.value,u.value,l.class],style:[{bottom:l.location==="bottom"?0:void 0,top:l.location==="top"?0:void 0,height:l.active?He(k.value):0,"--v-progress-linear-height":He(k.value),...l.absolute?o.value:{}},l.style],role:"progressbar","aria-hidden":l.active?"false":"true","aria-valuemin":"0","aria-valuemax":l.max,"aria-valuenow":l.indeterminate?void 0:F.value,onClick:l.clickable&&D},{default:()=>[l.stream&&E.createVNode("div",{key:"stream",class:["v-progress-linear__stream",r.value],style:{...t.value,[L.value?"left":"right"]:He(-k.value),borderTop:`${He(k.value/2)} dotted`,opacity:parseFloat(l.bufferOpacity),top:`calc(50% - ${He(k.value/4)})`,width:He(100-R.value,"%"),"--v-progress-linear-stream-to":He(k.value*(L.value?1:-1))}},null),E.createVNode("div",{class:["v-progress-linear__background",n.value],style:[c.value,{opacity:parseFloat(l.bgOpacity),width:l.stream?0:void 0}]},null),E.createVNode("div",{class:["v-progress-linear__buffer",s.value],style:[a.value,{opacity:parseFloat(l.bufferOpacity),width:He(R.value,"%")}]},null),E.createVNode(E.Transition,{name:j.value},{default:()=>[l.indeterminate?E.createVNode("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(z=>E.createVNode("div",{key:z,class:["v-progress-linear__indeterminate",z,f.value],style:h.value},null))]):E.createVNode("div",{class:["v-progress-linear__determinate",f.value],style:[h.value,{width:He(F.value,"%")}]},null)]}),e.default&&E.createVNode("div",{class:"v-progress-linear__content"},[e.default({value:F.value,buffer:R.value})])]})),{}}}),In=ge({loading:[Boolean,String]},"loader");function Pn(l){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xt();return{loaderClasses:E.computed(()=>({[`${A}--loading`]:l.loading}))}}function ki(l,A){var p;let{slots:e}=A;return E.createVNode("div",{class:`${l.name}__loader`},[((p=e.default)==null?void 0:p.call(e,{color:l.color,isActive:l.active}))||E.createVNode(Hl,{absolute:l.absolute,active:l.active,color:l.color,height:"2",indeterminate:!0},null)])}const Wl=["static","relative","fixed","absolute","sticky"],Ci=ge({position:{type:String,validator:l=>Wl.includes(l)}},"position");function Ti(l){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xt();return{positionClasses:E.computed(()=>l.position?`${A}--${l.position}`:void 0)}}function ql(){const l=kt("useRoute");return E.computed(()=>{var A;return(A=l==null?void 0:l.proxy)==null?void 0:A.$route})}function Xl(){var l,A;return(A=(l=kt("useRouter"))==null?void 0:l.proxy)==null?void 0:A.$router}function jn(l,A){var t,n;const e=E.resolveDynamicComponent("RouterLink"),p=E.computed(()=>!!(l.href||l.to)),g=E.computed(()=>(p==null?void 0:p.value)||Ki(A,"click")||Ki(l,"click"));if(typeof e=="string"||!("useLink"in e))return{isLink:p,isClickable:g,href:E.toRef(l,"href")};const u=E.computed(()=>({...l,to:E.toRef(()=>l.to||"")})),i=e.useLink(u.value),o=E.computed(()=>l.to?i:void 0),r=ql();return{isLink:p,isClickable:g,route:(t=o.value)==null?void 0:t.route,navigate:(n=o.value)==null?void 0:n.navigate,isActive:E.computed(()=>{var c,s,a;return o.value?l.exact?r.value?((a=o.value.isExactActive)==null?void 0:a.value)&&ur(o.value.route.value.query,r.value.query):((s=o.value.isExactActive)==null?void 0:s.value)??!1:((c=o.value.isActive)==null?void 0:c.value)??!1:!1}),href:E.computed(()=>{var c;return l.to?(c=o.value)==null?void 0:c.route.value.href:l.href})}}const Bn=ge({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let Yn=!1;function Kl(l,A){let e=!1,p,g;Rt&&(E.nextTick(()=>{window.addEventListener("popstate",u),p=l==null?void 0:l.beforeEach((i,o,r)=>{Yn?e?A(r):r():setTimeout(()=>e?A(r):r()),Yn=!0}),g=l==null?void 0:l.afterEach(()=>{Yn=!1})}),E.onScopeDispose(()=>{window.removeEventListener("popstate",u),p==null||p(),g==null||g()}));function u(i){var o;(o=i.state)!=null&&o.replaced||(e=!0,setTimeout(()=>e=!1))}}function Gl(l,A){E.watch(()=>{var e;return(e=l.isActive)==null?void 0:e.value},e=>{l.isLink.value&&e&&A&&E.nextTick(()=>{A(!0)})},{immediate:!0})}const oi=Symbol("rippleStop"),Yl=80;function ps(l,A){l.style.transform=A,l.style.webkitTransform=A}function li(l){return l.constructor.name==="TouchEvent"}function va(l){return l.constructor.name==="KeyboardEvent"}const Zl=function(l,A){var c;let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=0,g=0;if(!va(l)){const s=A.getBoundingClientRect(),a=li(l)?l.touches[l.touches.length-1]:l;p=a.clientX-s.left,g=a.clientY-s.top}let u=0,i=.3;(c=A._ripple)!=null&&c.circle?(i=.15,u=A.clientWidth/2,u=e.center?u:u+Math.sqrt((p-u)**2+(g-u)**2)/4):u=Math.sqrt(A.clientWidth**2+A.clientHeight**2)/2;const o=`${(A.clientWidth-u*2)/2}px`,r=`${(A.clientHeight-u*2)/2}px`,t=e.center?o:`${p-u}px`,n=e.center?r:`${g-u}px`;return{radius:u,scale:i,x:t,y:n,centerX:o,centerY:r}},xn={show(l,A){var a;let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((a=A==null?void 0:A._ripple)!=null&&a.enabled))return;const p=document.createElement("span"),g=document.createElement("span");p.appendChild(g),p.className="v-ripple__container",e.class&&(p.className+=` ${e.class}`);const{radius:u,scale:i,x:o,y:r,centerX:t,centerY:n}=Zl(l,A,e),c=`${u*2}px`;g.className="v-ripple__animation",g.style.width=c,g.style.height=c,A.appendChild(p);const s=window.getComputedStyle(A);s&&s.position==="static"&&(A.style.position="relative",A.dataset.previousPosition="static"),g.classList.add("v-ripple__animation--enter"),g.classList.add("v-ripple__animation--visible"),ps(g,`translate(${o}, ${r}) scale3d(${i},${i},${i})`),g.dataset.activated=String(performance.now()),setTimeout(()=>{g.classList.remove("v-ripple__animation--enter"),g.classList.add("v-ripple__animation--in"),ps(g,`translate(${t}, ${n}) scale3d(1,1,1)`)},0)},hide(l){var u;if(!((u=l==null?void 0:l._ripple)!=null&&u.enabled))return;const A=l.getElementsByClassName("v-ripple__animation");if(A.length===0)return;const e=A[A.length-1];if(e.dataset.isHiding)return;e.dataset.isHiding="true";const p=performance.now()-Number(e.dataset.activated),g=Math.max(250-p,0);setTimeout(()=>{e.classList.remove("v-ripple__animation--in"),e.classList.add("v-ripple__animation--out"),setTimeout(()=>{var o;l.getElementsByClassName("v-ripple__animation").length===1&&l.dataset.previousPosition&&(l.style.position=l.dataset.previousPosition,delete l.dataset.previousPosition),((o=e.parentNode)==null?void 0:o.parentNode)===l&&l.removeChild(e.parentNode)},300)},g)}};function ya(l){return typeof l>"u"||!!l}function zr(l){const A={},e=l.currentTarget;if(!(!(e!=null&&e._ripple)||e._ripple.touched||l[oi])){if(l[oi]=!0,li(l))e._ripple.touched=!0,e._ripple.isTouch=!0;else if(e._ripple.isTouch)return;if(A.center=e._ripple.centered||va(l),e._ripple.class&&(A.class=e._ripple.class),li(l)){if(e._ripple.showTimerCommit)return;e._ripple.showTimerCommit=()=>{xn.show(l,e,A)},e._ripple.showTimer=window.setTimeout(()=>{var p;(p=e==null?void 0:e._ripple)!=null&&p.showTimerCommit&&(e._ripple.showTimerCommit(),e._ripple.showTimerCommit=null)},Yl)}else xn.show(l,e,A)}}function ms(l){l[oi]=!0}function Dt(l){const A=l.currentTarget;if(A!=null&&A._ripple){if(window.clearTimeout(A._ripple.showTimer),l.type==="touchend"&&A._ripple.showTimerCommit){A._ripple.showTimerCommit(),A._ripple.showTimerCommit=null,A._ripple.showTimer=window.setTimeout(()=>{Dt(l)});return}window.setTimeout(()=>{A._ripple&&(A._ripple.touched=!1)}),xn.hide(A)}}function wa(l){const A=l.currentTarget;A!=null&&A._ripple&&(A._ripple.showTimerCommit&&(A._ripple.showTimerCommit=null),window.clearTimeout(A._ripple.showTimer))}let $r=!1;function _a(l){!$r&&(l.keyCode===Hi.enter||l.keyCode===Hi.space)&&($r=!0,zr(l))}function xa(l){$r=!1,Dt(l)}function Sa(l){$r&&($r=!1,Dt(l))}function ka(l,A,e){const{value:p,modifiers:g}=A,u=ya(p);if(u||xn.hide(l),l._ripple=l._ripple??{},l._ripple.enabled=u,l._ripple.centered=g.center,l._ripple.circle=g.circle,ni(p)&&p.class&&(l._ripple.class=p.class),u&&!e){if(g.stop){l.addEventListener("touchstart",ms,{passive:!0}),l.addEventListener("mousedown",ms);return}l.addEventListener("touchstart",zr,{passive:!0}),l.addEventListener("touchend",Dt,{passive:!0}),l.addEventListener("touchmove",wa,{passive:!0}),l.addEventListener("touchcancel",Dt),l.addEventListener("mousedown",zr),l.addEventListener("mouseup",Dt),l.addEventListener("mouseleave",Dt),l.addEventListener("keydown",_a),l.addEventListener("keyup",xa),l.addEventListener("blur",Sa),l.addEventListener("dragstart",Dt,{passive:!0})}else!u&&e&&Ca(l)}function Ca(l){l.removeEventListener("mousedown",zr),l.removeEventListener("touchstart",zr),l.removeEventListener("touchend",Dt),l.removeEventListener("touchmove",wa),l.removeEventListener("touchcancel",Dt),l.removeEventListener("mouseup",Dt),l.removeEventListener("mouseleave",Dt),l.removeEventListener("keydown",_a),l.removeEventListener("keyup",xa),l.removeEventListener("dragstart",Dt),l.removeEventListener("blur",Sa)}function Jl(l,A){ka(l,A,!1)}function Ql(l){delete l._ripple,Ca(l)}function eu(l,A){if(A.value===A.oldValue)return;const e=ya(A.oldValue);ka(l,A,e)}const Yr={mounted:Jl,unmounted:Ql,updated:eu},tu=ge({active:{type:Boolean,default:void 0},baseColor:String,symbol:{type:null,default:ma},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:it,appendIcon:it,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...cr(),...Qe(),...zt(),...Gt(),...rr(),...fa(),...In(),...Nn(),...Ci(),...$t(),...Bn(),...Or(),..._t({tag:"button"}),...xt(),...nr({variant:"elevated"})},"VBtn"),Bt=Oe()({name:"VBtn",props:tu(),emits:{"group:selected":l=>!0},setup(l,A){let{attrs:e,slots:p}=A;const{themeClasses:g}=Et(l),{borderClasses:u}=wr(l),{densityClasses:i}=Kt(l),{dimensionStyles:o}=Yt(l),{elevationClasses:r}=dr(l),{loaderClasses:t}=Pn(l),{locationStyles:n}=On(l),{positionClasses:c}=Ti(l),{roundedClasses:s}=qt(l),{sizeClasses:a,sizeStyles:f}=Gr(l),h=ha(l,l.symbol,!1),d=jn(l,e),b=E.computed(()=>{var z;return l.active!==void 0?l.active:d.isLink.value?(z=d.isActive)==null?void 0:z.value:h==null?void 0:h.isSelected.value}),m=E.computed(()=>{var $,V;return{color:(h==null?void 0:h.isSelected.value)&&(!d.isLink.value||(($=d.isActive)==null?void 0:$.value))||!h||((V=d.isActive)==null?void 0:V.value)?l.color??l.baseColor:l.baseColor,variant:l.variant}}),{colorClasses:x,colorStyles:k,variantClasses:R}=Kr(m),F=E.computed(()=>(h==null?void 0:h.disabled.value)||l.disabled),L=E.computed(()=>l.variant==="elevated"&&!(l.disabled||l.flat||l.border)),j=E.computed(()=>{if(!(l.value===void 0||typeof l.value=="symbol"))return Object(l.value)===l.value?JSON.stringify(l.value,null,0):l.value});function D(z){var $;F.value||d.isLink.value&&(z.metaKey||z.ctrlKey||z.shiftKey||z.button!==0||e.target==="_blank")||(($=d.navigate)==null||$.call(d,z),h==null||h.toggle())}return Gl(d,h==null?void 0:h.select),qe(()=>{const z=d.isLink.value?"a":l.tag,$=!!(l.prependIcon||p.prepend),V=!!(l.appendIcon||p.append),T=!!(l.icon&&l.icon!==!0);return E.withDirectives(E.createVNode(z,{type:z==="a"?void 0:"button",class:["v-btn",h==null?void 0:h.selectedClass.value,{"v-btn--active":b.value,"v-btn--block":l.block,"v-btn--disabled":F.value,"v-btn--elevated":L.value,"v-btn--flat":l.flat,"v-btn--icon":!!l.icon,"v-btn--loading":l.loading,"v-btn--readonly":l.readonly,"v-btn--slim":l.slim,"v-btn--stacked":l.stacked},g.value,u.value,x.value,i.value,r.value,t.value,c.value,s.value,a.value,R.value,l.class],style:[k.value,o.value,n.value,f.value,l.style],"aria-busy":l.loading?!0:void 0,disabled:F.value||void 0,href:d.href.value,tabindex:l.loading||l.readonly?-1:void 0,onClick:D,value:j.value},{default:()=>{var M;return[Xr(!0,"v-btn"),!l.icon&&$&&E.createVNode("span",{key:"prepend",class:"v-btn__prepend"},[p.prepend?E.createVNode(Mt,{key:"prepend-defaults",disabled:!l.prependIcon,defaults:{VIcon:{icon:l.prependIcon}}},p.prepend):E.createVNode(St,{key:"prepend-icon",icon:l.prependIcon},null)]),E.createVNode("span",{class:"v-btn__content","data-no-activator":""},[!p.default&&T?E.createVNode(St,{key:"content-icon",icon:l.icon},null):E.createVNode(Mt,{key:"content-defaults",disabled:!T,defaults:{VIcon:{icon:l.icon}}},{default:()=>{var S;return[((S=p.default)==null?void 0:S.call(p))??l.text]}})]),!l.icon&&V&&E.createVNode("span",{key:"append",class:"v-btn__append"},[p.append?E.createVNode(Mt,{key:"append-defaults",disabled:!l.appendIcon,defaults:{VIcon:{icon:l.appendIcon}}},p.append):E.createVNode(St,{key:"append-icon",icon:l.appendIcon},null)]),!!l.loading&&E.createVNode("span",{key:"loader",class:"v-btn__loader"},[((M=p.loader)==null?void 0:M.call(p))??E.createVNode($l,{color:typeof l.loading=="boolean"?void 0:l.loading,indeterminate:!0,width:"2"},null)])]}}),[[Yr,!F.value&&!!l.ripple,"",{center:!!l.icon}]])}),{group:h}}}),ru=ge({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function Lt(l,A,e){return Oe()({name:l,props:ru({mode:e,origin:A}),setup(p,g){let{slots:u}=g;const i={onBeforeEnter(o){p.origin&&(o.style.transformOrigin=p.origin)},onLeave(o){if(p.leaveAbsolute){const{offsetTop:r,offsetLeft:t,offsetWidth:n,offsetHeight:c}=o;o._transitionInitialStyles={position:o.style.position,top:o.style.top,left:o.style.left,width:o.style.width,height:o.style.height},o.style.position="absolute",o.style.top=`${r}px`,o.style.left=`${t}px`,o.style.width=`${n}px`,o.style.height=`${c}px`}p.hideOnLeave&&o.style.setProperty("display","none","important")},onAfterLeave(o){if(p.leaveAbsolute&&(o!=null&&o._transitionInitialStyles)){const{position:r,top:t,left:n,width:c,height:s}=o._transitionInitialStyles;delete o._transitionInitialStyles,o.style.position=r||"",o.style.top=t||"",o.style.left=n||"",o.style.width=c||"",o.style.height=s||""}}};return()=>{const o=p.group?E.TransitionGroup:E.Transition;return E.h(o,{name:p.disabled?"":l,css:!p.disabled,...p.group?void 0:{mode:p.mode},...p.disabled?{}:i},u.default)}}})}function Ta(l,A){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return Oe()({name:l,props:{mode:{type:String,default:e},disabled:Boolean,group:Boolean},setup(p,g){let{slots:u}=g;const i=p.group?E.TransitionGroup:E.Transition;return()=>E.h(i,{name:p.disabled?"":l,css:!p.disabled,...p.disabled?{}:A},u.default)}})}function Ea(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const e=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",p=E.camelize(`offset-${e}`);return{onBeforeEnter(i){i._parent=i.parentNode,i._initialStyle={transition:i.style.transition,overflow:i.style.overflow,[e]:i.style[e]}},onEnter(i){const o=i._initialStyle;i.style.setProperty("transition","none","important"),i.style.overflow="hidden";const r=`${i[p]}px`;i.style[e]="0",i.offsetHeight,i.style.transition=o.transition,l&&i._parent&&i._parent.classList.add(l),requestAnimationFrame(()=>{i.style[e]=r})},onAfterEnter:u,onEnterCancelled:u,onLeave(i){i._initialStyle={transition:"",overflow:i.style.overflow,[e]:i.style[e]},i.style.overflow="hidden",i.style[e]=`${i[p]}px`,i.offsetHeight,requestAnimationFrame(()=>i.style[e]="0")},onAfterLeave:g,onLeaveCancelled:g};function g(i){l&&i._parent&&i._parent.classList.remove(l),u(i)}function u(i){const o=i._initialStyle[e];i.style.overflow=i._initialStyle.overflow,o!=null&&(i.style[e]=o),delete i._initialStyle}}const nu=ge({target:[Object,Array]},"v-dialog-transition"),Ei=Oe()({name:"VDialogTransition",props:nu(),setup(l,A){let{slots:e}=A;const p={onBeforeEnter(g){g.style.pointerEvents="none",g.style.visibility="hidden"},async onEnter(g,u){var s;await new Promise(a=>requestAnimationFrame(a)),await new Promise(a=>requestAnimationFrame(a)),g.style.visibility="";const{x:i,y:o,sx:r,sy:t,speed:n}=bs(l.target,g),c=Er(g,[{transform:`translate(${i}px, ${o}px) scale(${r}, ${t})`,opacity:0},{}],{duration:225*n,easing:Tl});(s=gs(g))==null||s.forEach(a=>{Er(a,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*n,easing:wn})}),c.finished.then(()=>u())},onAfterEnter(g){g.style.removeProperty("pointer-events")},onBeforeLeave(g){g.style.pointerEvents="none"},async onLeave(g,u){var s;await new Promise(a=>requestAnimationFrame(a));const{x:i,y:o,sx:r,sy:t,speed:n}=bs(l.target,g);Er(g,[{},{transform:`translate(${i}px, ${o}px) scale(${r}, ${t})`,opacity:0}],{duration:125*n,easing:El}).finished.then(()=>u()),(s=gs(g))==null||s.forEach(a=>{Er(a,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*n,easing:wn})})},onAfterLeave(g){g.style.removeProperty("pointer-events")}};return()=>l.target?E.createVNode(E.Transition,E.mergeProps({name:"dialog-transition"},p,{css:!1}),e):E.createVNode(E.Transition,{name:"dialog-transition"},e)}});function gs(l){var e;const A=(e=l.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:e.children;return A&&[...A]}function bs(l,A){const e=ia(l),p=vi(A),[g,u]=getComputedStyle(A).transformOrigin.split(" ").map(b=>parseFloat(b)),[i,o]=getComputedStyle(A).getPropertyValue("--v-overlay-anchor-origin").split(" ");let r=e.left+e.width/2;i==="left"||o==="left"?r-=e.width/2:(i==="right"||o==="right")&&(r+=e.width/2);let t=e.top+e.height/2;i==="top"||o==="top"?t-=e.height/2:(i==="bottom"||o==="bottom")&&(t+=e.height/2);const n=e.width/p.width,c=e.height/p.height,s=Math.max(1,n,c),a=n/s||0,f=c/s||0,h=p.width*p.height/(window.innerWidth*window.innerHeight),d=h>.12?Math.min(1.5,(h-.12)*10+1):1;return{x:r-(g+p.left),y:t-(u+p.top),sx:a,sy:f,speed:d}}Lt("fab-transition","center center","out-in");Lt("dialog-bottom-transition");Lt("dialog-top-transition");const vs=Lt("fade-transition");Lt("scale-transition");Lt("scroll-x-transition");Lt("scroll-x-reverse-transition");Lt("scroll-y-transition");Lt("scroll-y-reverse-transition");Lt("slide-x-transition");Lt("slide-x-reverse-transition");const Aa=Lt("slide-y-transition");Lt("slide-y-reverse-transition");const iu=Ta("expand-transition",Ea()),Ma=Ta("expand-x-transition",Ea("",!0)),ui=Symbol.for("vuetify:list");function Ra(){const l=E.inject(ui,{hasPrepend:E.shallowRef(!1),updateHasPrepend:()=>null}),A={hasPrepend:E.shallowRef(!1),updateHasPrepend:e=>{e&&(A.hasPrepend.value=e)}};return E.provide(ui,A),l}function Na(){return E.inject(ui,null)}const Ai=l=>{const A={activate:e=>{let{id:p,value:g,activated:u}=e;return p=E.toRaw(p),l&&!g&&u.size===1&&u.has(p)||(g?u.add(p):u.delete(p)),u},in:(e,p,g)=>{let u=new Set;if(e!=null)for(const i of Nt(e))u=A.activate({id:i,value:!0,activated:new Set(u),children:p,parents:g});return u},out:e=>Array.from(e)};return A},Oa=l=>{const A=Ai(l);return{activate:p=>{let{activated:g,id:u,...i}=p;u=E.toRaw(u);const o=g.has(u)?new Set([u]):new Set;return A.activate({...i,id:u,activated:o})},in:(p,g,u)=>{let i=new Set;if(p!=null){const o=Nt(p);o.length&&(i=A.in(o.slice(0,1),g,u))}return i},out:(p,g,u)=>A.out(p,g,u)}},su=l=>{const A=Ai(l);return{activate:p=>{let{id:g,activated:u,children:i,...o}=p;return g=E.toRaw(g),i.has(g)?u:A.activate({id:g,activated:u,children:i,...o})},in:A.in,out:A.out}},au=l=>{const A=Oa(l);return{activate:p=>{let{id:g,activated:u,children:i,...o}=p;return g=E.toRaw(g),i.has(g)?u:A.activate({id:g,activated:u,children:i,...o})},in:A.in,out:A.out}},ou={open:l=>{let{id:A,value:e,opened:p,parents:g}=l;if(e){const u=new Set;u.add(A);let i=g.get(A);for(;i!=null;)u.add(i),i=g.get(i);return u}else return p.delete(A),p},select:()=>null},Ia={open:l=>{let{id:A,value:e,opened:p,parents:g}=l;if(e){let u=g.get(A);for(p.add(A);u!=null&&u!==A;)p.add(u),u=g.get(u);return p}else p.delete(A);return p},select:()=>null},lu={open:Ia.open,select:l=>{let{id:A,value:e,opened:p,parents:g}=l;if(!e)return p;const u=[];let i=g.get(A);for(;i!=null;)u.push(i),i=g.get(i);return new Set(u)}},Mi=l=>{const A={select:e=>{let{id:p,value:g,selected:u}=e;if(p=E.toRaw(p),l&&!g){const i=Array.from(u.entries()).reduce((o,r)=>{let[t,n]=r;return n==="on"&&o.push(t),o},[]);if(i.length===1&&i[0]===p)return u}return u.set(p,g?"on":"off"),u},in:(e,p,g)=>{let u=new Map;for(const i of e||[])u=A.select({id:i,value:!0,selected:new Map(u),children:p,parents:g});return u},out:e=>{const p=[];for(const[g,u]of e.entries())u==="on"&&p.push(g);return p}};return A},Pa=l=>{const A=Mi(l);return{select:p=>{let{selected:g,id:u,...i}=p;u=E.toRaw(u);const o=g.has(u)?new Map([[u,g.get(u)]]):new Map;return A.select({...i,id:u,selected:o})},in:(p,g,u)=>{let i=new Map;return p!=null&&p.length&&(i=A.in(p.slice(0,1),g,u)),i},out:(p,g,u)=>A.out(p,g,u)}},uu=l=>{const A=Mi(l);return{select:p=>{let{id:g,selected:u,children:i,...o}=p;return g=E.toRaw(g),i.has(g)?u:A.select({id:g,selected:u,children:i,...o})},in:A.in,out:A.out}},cu=l=>{const A=Pa(l);return{select:p=>{let{id:g,selected:u,children:i,...o}=p;return g=E.toRaw(g),i.has(g)?u:A.select({id:g,selected:u,children:i,...o})},in:A.in,out:A.out}},du=l=>{const A={select:e=>{let{id:p,value:g,selected:u,children:i,parents:o}=e;p=E.toRaw(p);const r=new Map(u),t=[p];for(;t.length;){const c=t.shift();u.set(c,g?"on":"off"),i.has(c)&&t.push(...i.get(c))}let n=o.get(p);for(;n;){const c=i.get(n),s=c.every(f=>u.get(f)==="on"),a=c.every(f=>!u.has(f)||u.get(f)==="off");u.set(n,s?"on":a?"off":"indeterminate"),n=o.get(n)}return l&&!g&&Array.from(u.entries()).reduce((s,a)=>{let[f,h]=a;return h==="on"&&s.push(f),s},[]).length===0?r:u},in:(e,p,g)=>{let u=new Map;for(const i of e||[])u=A.select({id:i,value:!0,selected:new Map(u),children:p,parents:g});return u},out:(e,p)=>{const g=[];for(const[u,i]of e.entries())i==="on"&&!p.has(u)&&g.push(u);return g}};return A},Ur=Symbol.for("vuetify:nested"),ja={id:E.shallowRef(),root:{register:()=>null,unregister:()=>null,parents:E.ref(new Map),children:E.ref(new Map),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:E.ref(!1),selectable:E.ref(!1),opened:E.ref(new Set),activated:E.ref(new Set),selected:E.ref(new Map),selectedValues:E.ref([])}},fu=ge({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean},"nested"),hu=l=>{let A=!1;const e=E.ref(new Map),p=E.ref(new Map),g=vt(l,"opened",l.opened,a=>new Set(a),a=>[...a.values()]),u=E.computed(()=>{if(typeof l.activeStrategy=="object")return l.activeStrategy;if(typeof l.activeStrategy=="function")return l.activeStrategy(l.mandatory);switch(l.activeStrategy){case"leaf":return su(l.mandatory);case"single-leaf":return au(l.mandatory);case"independent":return Ai(l.mandatory);case"single-independent":default:return Oa(l.mandatory)}}),i=E.computed(()=>{if(typeof l.selectStrategy=="object")return l.selectStrategy;if(typeof l.selectStrategy=="function")return l.selectStrategy(l.mandatory);switch(l.selectStrategy){case"single-leaf":return cu(l.mandatory);case"leaf":return uu(l.mandatory);case"independent":return Mi(l.mandatory);case"single-independent":return Pa(l.mandatory);case"classic":default:return du(l.mandatory)}}),o=E.computed(()=>{if(typeof l.openStrategy=="object")return l.openStrategy;switch(l.openStrategy){case"list":return lu;case"single":return ou;case"multiple":default:return Ia}}),r=vt(l,"activated",l.activated,a=>u.value.in(a,e.value,p.value),a=>u.value.out(a,e.value,p.value)),t=vt(l,"selected",l.selected,a=>i.value.in(a,e.value,p.value),a=>i.value.out(a,e.value,p.value));E.onBeforeUnmount(()=>{A=!0});function n(a){const f=[];let h=a;for(;h!=null;)f.unshift(h),h=p.value.get(h);return f}const c=kt("nested"),s={id:E.shallowRef(),root:{opened:g,activatable:E.toRef(l,"activatable"),selectable:E.toRef(l,"selectable"),activated:r,selected:t,selectedValues:E.computed(()=>{const a=[];for(const[f,h]of t.value.entries())h==="on"&&a.push(f);return a}),register:(a,f,h)=>{f&&a!==f&&p.value.set(a,f),h&&e.value.set(a,[]),f!=null&&e.value.set(f,[...e.value.get(f)||[],a])},unregister:a=>{if(A)return;e.value.delete(a);const f=p.value.get(a);if(f){const h=e.value.get(f)??[];e.value.set(f,h.filter(d=>d!==a))}p.value.delete(a),g.value.delete(a)},open:(a,f,h)=>{c.emit("click:open",{id:a,value:f,path:n(a),event:h});const d=o.value.open({id:a,value:f,opened:new Set(g.value),children:e.value,parents:p.value,event:h});d&&(g.value=d)},openOnSelect:(a,f,h)=>{const d=o.value.select({id:a,value:f,selected:new Map(t.value),opened:new Set(g.value),children:e.value,parents:p.value,event:h});d&&(g.value=d)},select:(a,f,h)=>{c.emit("click:select",{id:a,value:f,path:n(a),event:h});const d=i.value.select({id:a,value:f,selected:new Map(t.value),children:e.value,parents:p.value,event:h});d&&(t.value=d),s.root.openOnSelect(a,f,h)},activate:(a,f,h)=>{if(!l.activatable)return s.root.select(a,!0,h);c.emit("click:activate",{id:a,value:f,path:n(a),event:h});const d=u.value.activate({id:a,value:f,activated:new Set(r.value),children:e.value,parents:p.value,event:h});d&&(r.value=d)},children:e,parents:p}};return E.provide(Ur,s),s.root},Ba=(l,A)=>{const e=E.inject(Ur,ja),p=Symbol(tr()),g=E.computed(()=>l.value!==void 0?l.value:p),u={...e,id:g,open:(i,o)=>e.root.open(g.value,i,o),openOnSelect:(i,o)=>e.root.openOnSelect(g.value,i,o),isOpen:E.computed(()=>e.root.opened.value.has(g.value)),parent:E.computed(()=>e.root.parents.value.get(g.value)),activate:(i,o)=>e.root.activate(g.value,i,o),isActivated:E.computed(()=>e.root.activated.value.has(E.toRaw(g.value))),select:(i,o)=>e.root.select(g.value,i,o),isSelected:E.computed(()=>e.root.selected.value.get(E.toRaw(g.value))==="on"),isIndeterminate:E.computed(()=>e.root.selected.value.get(g.value)==="indeterminate"),isLeaf:E.computed(()=>!e.root.children.value.get(g.value)),isGroupActivator:e.isGroupActivator};return!e.isGroupActivator&&e.root.register(g.value,e.id.value,A),E.onBeforeUnmount(()=>{!e.isGroupActivator&&e.root.unregister(g.value)}),A&&E.provide(Ur,u),u},pu=()=>{const l=E.inject(Ur,ja);E.provide(Ur,{...l,isGroupActivator:!0})};function mu(){const l=E.shallowRef(!1);return E.onMounted(()=>{window.requestAnimationFrame(()=>{l.value=!0})}),{ssrBootStyles:E.computed(()=>l.value?void 0:{transition:"none !important"}),isBooted:E.readonly(l)}}const Zr=ge({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:l=>l!==!0}},"transition"),lr=(l,A)=>{let{slots:e}=A;const{transition:p,disabled:g,group:u,...i}=l,{component:o=u?E.TransitionGroup:E.Transition,...r}=typeof p=="object"?p:{};return E.h(o,E.mergeProps(typeof p=="string"?{name:g?"":p}:r,typeof p=="string"?{}:Object.fromEntries(Object.entries({disabled:g,group:u}).filter(t=>{let[n,c]=t;return c!==void 0})),i),e)},gu=qr({name:"VListGroupActivator",setup(l,A){let{slots:e}=A;return pu(),()=>{var p;return(p=e.default)==null?void 0:p.call(e)}}}),bu=ge({activeColor:String,baseColor:String,color:String,collapseIcon:{type:it,default:"$collapse"},expandIcon:{type:it,default:"$expand"},prependIcon:it,appendIcon:it,fluid:Boolean,subgroup:Boolean,title:String,value:null,...Qe(),..._t()},"VListGroup"),ys=Oe()({name:"VListGroup",props:bu(),setup(l,A){let{slots:e}=A;const{isOpen:p,open:g,id:u}=Ba(E.toRef(l,"value"),!0),i=E.computed(()=>`v-list-group--id-${String(u.value)}`),o=Na(),{isBooted:r}=mu();function t(a){a.stopPropagation(),g(!p.value,a)}const n=E.computed(()=>({onClick:t,class:"v-list-group__header",id:i.value})),c=E.computed(()=>p.value?l.collapseIcon:l.expandIcon),s=E.computed(()=>({VListItem:{active:p.value,activeColor:l.activeColor,baseColor:l.baseColor,color:l.color,prependIcon:l.prependIcon||l.subgroup&&c.value,appendIcon:l.appendIcon||!l.subgroup&&c.value,title:l.title,value:l.value}}));return qe(()=>E.createVNode(l.tag,{class:["v-list-group",{"v-list-group--prepend":o==null?void 0:o.hasPrepend.value,"v-list-group--fluid":l.fluid,"v-list-group--subgroup":l.subgroup,"v-list-group--open":p.value},l.class],style:l.style},{default:()=>[e.activator&&E.createVNode(Mt,{defaults:s.value},{default:()=>[E.createVNode(gu,null,{default:()=>[e.activator({props:n.value,isOpen:p.value})]})]}),E.createVNode(lr,{transition:{component:iu},disabled:!r.value},{default:()=>{var a;return[E.withDirectives(E.createVNode("div",{class:"v-list-group__items",role:"group","aria-labelledby":i.value},[(a=e.default)==null?void 0:a.call(e)]),[[E.vShow,p.value]])]}})]})),{isOpen:p}}}),vu=ge({opacity:[Number,String],...Qe(),..._t()},"VListItemSubtitle"),yu=Oe()({name:"VListItemSubtitle",props:vu(),setup(l,A){let{slots:e}=A;return qe(()=>E.createVNode(l.tag,{class:["v-list-item-subtitle",l.class],style:[{"--v-list-item-subtitle-opacity":l.opacity},l.style]},e)),{}}}),wu=la("v-list-item-title");function _u(l){return{aspectStyles:E.computed(()=>{const A=Number(l.aspectRatio);return A?{paddingBottom:String(1/A*100)+"%"}:void 0})}}const Fa=ge({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...Qe(),...Gt()},"VResponsive"),ws=Oe()({name:"VResponsive",props:Fa(),setup(l,A){let{slots:e}=A;const{aspectStyles:p}=_u(l),{dimensionStyles:g}=Yt(l);return qe(()=>{var u;return E.createVNode("div",{class:["v-responsive",{"v-responsive--inline":l.inline},l.class],style:[g.value,l.style]},[E.createVNode("div",{class:"v-responsive__sizer",style:p.value},null),(u=e.additional)==null?void 0:u.call(e),e.default&&E.createVNode("div",{class:["v-responsive__content",l.contentClass]},[e.default()])])}),{}}});function xu(l,A){if(!mi)return;const e=A.modifiers||{},p=A.value,{handler:g,options:u}=typeof p=="object"?p:{handler:p,options:{}},i=new IntersectionObserver(function(){var c;let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0;const t=(c=l._observe)==null?void 0:c[A.instance.$.uid];if(!t)return;const n=o.some(s=>s.isIntersecting);g&&(!e.quiet||t.init)&&(!e.once||n||t.init)&&g(n,o,r),n&&e.once?Da(l,A):t.init=!0},u);l._observe=Object(l._observe),l._observe[A.instance.$.uid]={init:!1,observer:i},i.observe(l)}function Da(l,A){var p;const e=(p=l._observe)==null?void 0:p[A.instance.$.uid];e&&(e.observer.unobserve(l),delete l._observe[A.instance.$.uid])}const Va={mounted:xu,unmounted:Da},Su=ge({alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...Fa(),...Qe(),...$t(),...Zr()},"VImg"),La=Oe()({name:"VImg",directives:{intersect:Va},props:Su(),emits:{loadstart:l=>!0,load:l=>!0,error:l=>!0},setup(l,A){let{emit:e,slots:p}=A;const{backgroundColorClasses:g,backgroundColorStyles:u}=Wt(E.toRef(l,"color")),{roundedClasses:i}=qt(l),o=kt("VImg"),r=E.shallowRef(""),t=E.ref(),n=E.shallowRef(l.eager?"loading":"idle"),c=E.shallowRef(),s=E.shallowRef(),a=E.computed(()=>l.src&&typeof l.src=="object"?{src:l.src.src,srcset:l.srcset||l.src.srcset,lazySrc:l.lazySrc||l.src.lazySrc,aspect:Number(l.aspectRatio||l.src.aspect||0)}:{src:l.src,srcset:l.srcset,lazySrc:l.lazySrc,aspect:Number(l.aspectRatio||0)}),f=E.computed(()=>a.value.aspect||c.value/s.value||0);E.watch(()=>l.src,()=>{h(n.value!=="idle")}),E.watch(f,(V,T)=>{!V&&T&&t.value&&k(t.value)}),E.onBeforeMount(()=>h());function h(V){if(!(l.eager&&V)&&!(mi&&!V&&!l.eager)){if(n.value="loading",a.value.lazySrc){const T=new Image;T.src=a.value.lazySrc,k(T,null)}a.value.src&&E.nextTick(()=>{var T;e("loadstart",((T=t.value)==null?void 0:T.currentSrc)||a.value.src),setTimeout(()=>{var M;if(!o.isUnmounted)if((M=t.value)!=null&&M.complete){if(t.value.naturalWidth||b(),n.value==="error")return;f.value||k(t.value,null),n.value==="loading"&&d()}else f.value||k(t.value),m()})})}}function d(){var V;o.isUnmounted||(m(),k(t.value),n.value="loaded",e("load",((V=t.value)==null?void 0:V.currentSrc)||a.value.src))}function b(){var V;o.isUnmounted||(n.value="error",e("error",((V=t.value)==null?void 0:V.currentSrc)||a.value.src))}function m(){const V=t.value;V&&(r.value=V.currentSrc||V.src)}let x=-1;E.onBeforeUnmount(()=>{clearTimeout(x)});function k(V){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const M=()=>{if(clearTimeout(x),o.isUnmounted)return;const{naturalHeight:S,naturalWidth:v}=V;S||v?(c.value=v,s.value=S):!V.complete&&n.value==="loading"&&T!=null?x=window.setTimeout(M,T):(V.currentSrc.endsWith(".svg")||V.currentSrc.startsWith("data:image/svg+xml"))&&(c.value=1,s.value=1)};M()}const R=E.computed(()=>({"v-img__img--cover":l.cover,"v-img__img--contain":!l.cover})),F=()=>{var M;if(!a.value.src||n.value==="idle")return null;const V=E.createVNode("img",{class:["v-img__img",R.value],style:{objectPosition:l.position},src:a.value.src,srcset:a.value.srcset,alt:l.alt,crossorigin:l.crossorigin,referrerpolicy:l.referrerpolicy,draggable:l.draggable,sizes:l.sizes,ref:t,onLoad:d,onError:b},null),T=(M=p.sources)==null?void 0:M.call(p);return E.createVNode(lr,{transition:l.transition,appear:!0},{default:()=>[E.withDirectives(T?E.createVNode("picture",{class:"v-img__picture"},[T,V]):V,[[E.vShow,n.value==="loaded"]])]})},L=()=>E.createVNode(lr,{transition:l.transition},{default:()=>[a.value.lazySrc&&n.value!=="loaded"&&E.createVNode("img",{class:["v-img__img","v-img__img--preload",R.value],style:{objectPosition:l.position},src:a.value.lazySrc,alt:l.alt,crossorigin:l.crossorigin,referrerpolicy:l.referrerpolicy,draggable:l.draggable},null)]}),j=()=>p.placeholder?E.createVNode(lr,{transition:l.transition,appear:!0},{default:()=>[(n.value==="loading"||n.value==="error"&&!p.error)&&E.createVNode("div",{class:"v-img__placeholder"},[p.placeholder()])]}):null,D=()=>p.error?E.createVNode(lr,{transition:l.transition,appear:!0},{default:()=>[n.value==="error"&&E.createVNode("div",{class:"v-img__error"},[p.error()])]}):null,z=()=>l.gradient?E.createVNode("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${l.gradient})`}},null):null,$=E.shallowRef(!1);{const V=E.watch(f,T=>{T&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{$.value=!0})}),V())})}return qe(()=>{const V=ws.filterProps(l);return E.withDirectives(E.createVNode(ws,E.mergeProps({class:["v-img",{"v-img--booting":!$.value},g.value,i.value,l.class],style:[{width:He(l.width==="auto"?c.value:l.width)},u.value,l.style]},V,{aspectRatio:f.value,"aria-label":l.alt,role:l.alt?"img":void 0}),{additional:()=>E.createVNode(E.Fragment,null,[E.createVNode(F,null,null),E.createVNode(L,null,null),E.createVNode(z,null,null),E.createVNode(j,null,null),E.createVNode(D,null,null)]),default:p.default}),[[E.resolveDirective("intersect"),{handler:h,options:l.options},null,{once:!0}]])}),{currentSrc:r,image:t,state:n,naturalWidth:c,naturalHeight:s}}}),ku=ge({start:Boolean,end:Boolean,icon:it,image:String,text:String,...Qe(),...zt(),...$t(),...Or(),..._t(),...xt(),...nr({variant:"flat"})},"VAvatar"),yr=Oe()({name:"VAvatar",props:ku(),setup(l,A){let{slots:e}=A;const{themeClasses:p}=Et(l),{colorClasses:g,colorStyles:u,variantClasses:i}=Kr(l),{densityClasses:o}=Kt(l),{roundedClasses:r}=qt(l),{sizeClasses:t,sizeStyles:n}=Gr(l);return qe(()=>E.createVNode(l.tag,{class:["v-avatar",{"v-avatar--start":l.start,"v-avatar--end":l.end},p.value,g.value,o.value,r.value,t.value,i.value,l.class],style:[u.value,n.value,l.style]},{default:()=>[e.default?E.createVNode(Mt,{key:"content-defaults",defaults:{VImg:{cover:!0,image:l.image},VIcon:{icon:l.icon}}},{default:()=>[e.default()]}):l.image?E.createVNode(La,{key:"image",src:l.image,alt:"",cover:!0},null):l.icon?E.createVNode(St,{key:"icon",icon:l.icon},null):l.text,Xr(!1,"v-avatar")]})),{}}}),Cu=ge({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:it,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:it,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:[String,Number],title:[String,Number],value:null,onClick:Ot(),onClickOnce:Ot(),...cr(),...Qe(),...zt(),...Gt(),...rr(),...$t(),...Bn(),..._t(),...xt(),...nr({variant:"text"})},"VListItem"),Mr=Oe()({name:"VListItem",directives:{Ripple:Yr},props:Cu(),emits:{click:l=>!0},setup(l,A){let{attrs:e,slots:p,emit:g}=A;const u=jn(l,e),i=E.computed(()=>l.value===void 0?u.href.value:l.value),{activate:o,isActivated:r,select:t,isSelected:n,isIndeterminate:c,isGroupActivator:s,root:a,parent:f,openOnSelect:h}=Ba(i,!1),d=Na(),b=E.computed(()=>{var C;return l.active!==!1&&(l.active||((C=u.isActive)==null?void 0:C.value)||(a.activatable.value?r.value:n.value))}),m=E.computed(()=>l.link!==!1&&u.isLink.value),x=E.computed(()=>!l.disabled&&l.link!==!1&&(l.link||u.isClickable.value||!!d&&(a.selectable.value||a.activatable.value||l.value!=null))),k=E.computed(()=>l.rounded||l.nav),R=E.computed(()=>l.color??l.activeColor),F=E.computed(()=>({color:b.value?R.value??l.baseColor:l.baseColor,variant:l.variant}));E.watch(()=>{var C;return(C=u.isActive)==null?void 0:C.value},C=>{C&&f.value!=null&&a.open(f.value,!0),C&&h(C)},{immediate:!0});const{themeClasses:L}=Et(l),{borderClasses:j}=wr(l),{colorClasses:D,colorStyles:z,variantClasses:$}=Kr(F),{densityClasses:V}=Kt(l),{dimensionStyles:T}=Yt(l),{elevationClasses:M}=dr(l),{roundedClasses:S}=qt(k),v=E.computed(()=>l.lines?`v-list-item--${l.lines}-line`:void 0),w=E.computed(()=>({isActive:b.value,select:t,isSelected:n.value,isIndeterminate:c.value}));function y(C){var I;g("click",C),x.value&&((I=u.navigate)==null||I.call(u,C),!s&&(a.activatable.value?o(!r.value,C):(a.selectable.value||l.value!=null)&&t(!n.value,C)))}function _(C){(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),y(C))}return qe(()=>{const C=m.value?"a":l.tag,I=p.title||l.title!=null,P=p.subtitle||l.subtitle!=null,H=!!(l.appendAvatar||l.appendIcon),W=!!(H||p.append),K=!!(l.prependAvatar||l.prependIcon),B=!!(K||p.prepend);return d==null||d.updateHasPrepend(B),l.activeColor&&gl("active-color",["color","base-color"]),E.withDirectives(E.createVNode(C,{class:["v-list-item",{"v-list-item--active":b.value,"v-list-item--disabled":l.disabled,"v-list-item--link":x.value,"v-list-item--nav":l.nav,"v-list-item--prepend":!B&&(d==null?void 0:d.hasPrepend.value),"v-list-item--slim":l.slim,[`${l.activeClass}`]:l.activeClass&&b.value},L.value,j.value,D.value,V.value,M.value,v.value,S.value,$.value,l.class],style:[z.value,T.value,l.style],href:u.href.value,tabindex:x.value?d?-2:0:void 0,onClick:y,onKeydown:x.value&&!m.value&&_},{default:()=>{var q;return[Xr(x.value||b.value,"v-list-item"),B&&E.createVNode("div",{key:"prepend",class:"v-list-item__prepend"},[p.prepend?E.createVNode(Mt,{key:"prepend-defaults",disabled:!K,defaults:{VAvatar:{density:l.density,image:l.prependAvatar},VIcon:{density:l.density,icon:l.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var O;return[(O=p.prepend)==null?void 0:O.call(p,w.value)]}}):E.createVNode(E.Fragment,null,[l.prependAvatar&&E.createVNode(yr,{key:"prepend-avatar",density:l.density,image:l.prependAvatar},null),l.prependIcon&&E.createVNode(St,{key:"prepend-icon",density:l.density,icon:l.prependIcon},null)]),E.createVNode("div",{class:"v-list-item__spacer"},null)]),E.createVNode("div",{class:"v-list-item__content","data-no-activator":""},[I&&E.createVNode(wu,{key:"title"},{default:()=>{var O;return[((O=p.title)==null?void 0:O.call(p,{title:l.title}))??l.title]}}),P&&E.createVNode(yu,{key:"subtitle"},{default:()=>{var O;return[((O=p.subtitle)==null?void 0:O.call(p,{subtitle:l.subtitle}))??l.subtitle]}}),(q=p.default)==null?void 0:q.call(p,w.value)]),W&&E.createVNode("div",{key:"append",class:"v-list-item__append"},[p.append?E.createVNode(Mt,{key:"append-defaults",disabled:!H,defaults:{VAvatar:{density:l.density,image:l.appendAvatar},VIcon:{density:l.density,icon:l.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var O;return[(O=p.append)==null?void 0:O.call(p,w.value)]}}):E.createVNode(E.Fragment,null,[l.appendIcon&&E.createVNode(St,{key:"append-icon",density:l.density,icon:l.appendIcon},null),l.appendAvatar&&E.createVNode(yr,{key:"append-avatar",density:l.density,image:l.appendAvatar},null)]),E.createVNode("div",{class:"v-list-item__spacer"},null)])]}}),[[E.resolveDirective("ripple"),x.value&&l.ripple]])}),{activate:o,isActivated:r,isGroupActivator:s,isSelected:n,list:d,select:t}}}),Tu=ge({color:String,inset:Boolean,sticky:Boolean,title:String,...Qe(),..._t()},"VListSubheader"),Eu=Oe()({name:"VListSubheader",props:Tu(),setup(l,A){let{slots:e}=A;const{textColorClasses:p,textColorStyles:g}=er(E.toRef(l,"color"));return qe(()=>{const u=!!(e.default||l.title);return E.createVNode(l.tag,{class:["v-list-subheader",{"v-list-subheader--inset":l.inset,"v-list-subheader--sticky":l.sticky},p.value,l.class],style:[{textColorStyles:g},l.style]},{default:()=>{var i;return[u&&E.createVNode("div",{class:"v-list-subheader__text"},[((i=e.default)==null?void 0:i.call(e))??l.title])]}})}),{}}}),Au=ge({color:String,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,...Qe(),...xt()},"VDivider"),Sn=Oe()({name:"VDivider",props:Au(),setup(l,A){let{attrs:e,slots:p}=A;const{themeClasses:g}=Et(l),{textColorClasses:u,textColorStyles:i}=er(E.toRef(l,"color")),o=E.computed(()=>{const r={};return l.length&&(r[l.vertical?"height":"width"]=He(l.length)),l.thickness&&(r[l.vertical?"borderRightWidth":"borderTopWidth"]=He(l.thickness)),r});return qe(()=>{const r=E.createVNode("hr",{class:[{"v-divider":!0,"v-divider--inset":l.inset,"v-divider--vertical":l.vertical},g.value,u.value,l.class],style:[o.value,i.value,{"--v-border-opacity":l.opacity},l.style],"aria-orientation":!e.role||e.role==="separator"?l.vertical?"vertical":"horizontal":void 0,role:`${e.role||"separator"}`},null);return p.default?E.createVNode("div",{class:["v-divider__wrapper",{"v-divider__wrapper--vertical":l.vertical,"v-divider__wrapper--inset":l.inset}]},[r,E.createVNode("div",{class:"v-divider__content"},[p.default()]),r]):r}),{}}}),Mu=ge({items:Array,returnObject:Boolean},"VListChildren"),za=Oe()({name:"VListChildren",props:Mu(),setup(l,A){let{slots:e}=A;return Ra(),()=>{var p,g;return((p=e.default)==null?void 0:p.call(e))??((g=l.items)==null?void 0:g.map(u=>{var s,a;let{children:i,props:o,type:r,raw:t}=u;if(r==="divider")return((s=e.divider)==null?void 0:s.call(e,{props:o}))??E.createVNode(Sn,o,null);if(r==="subheader")return((a=e.subheader)==null?void 0:a.call(e,{props:o}))??E.createVNode(Eu,o,null);const n={subtitle:e.subtitle?f=>{var h;return(h=e.subtitle)==null?void 0:h.call(e,{...f,item:t})}:void 0,prepend:e.prepend?f=>{var h;return(h=e.prepend)==null?void 0:h.call(e,{...f,item:t})}:void 0,append:e.append?f=>{var h;return(h=e.append)==null?void 0:h.call(e,{...f,item:t})}:void 0,title:e.title?f=>{var h;return(h=e.title)==null?void 0:h.call(e,{...f,item:t})}:void 0},c=ys.filterProps(o);return i?E.createVNode(ys,E.mergeProps({value:o==null?void 0:o.value},c),{activator:f=>{let{props:h}=f;const d={...o,...h,value:l.returnObject?t:o.value};return e.header?e.header({props:d}):E.createVNode(Mr,d,n)},default:()=>E.createVNode(za,{items:i,returnObject:l.returnObject},e)}):e.item?e.item({props:o}):E.createVNode(Mr,E.mergeProps(o,{value:l.returnObject?t:o.value}),n)}))}}}),$a=ge({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean,valueComparator:{type:Function,default:ur}},"list-items");function ci(l,A){const e=jt(A,l.itemTitle,A),p=jt(A,l.itemValue,e),g=jt(A,l.itemChildren),u=l.itemProps===!0?typeof A=="object"&&A!=null&&!Array.isArray(A)?"children"in A?Nr(A,["children"]):A:void 0:jt(A,l.itemProps),i={title:e,value:p,...u};return{title:String(i.title??""),value:i.value,props:i,children:Array.isArray(g)?Ua(l,g):void 0,raw:A}}function Ua(l,A){const e=[];for(const p of A)e.push(ci(l,p));return e}function Ru(l){const A=E.computed(()=>Ua(l,l.items)),e=E.computed(()=>A.value.some(u=>u.value===null));function p(u){return e.value||(u=u.filter(i=>i!==null)),u.map(i=>l.returnObject&&typeof i=="string"?ci(l,i):A.value.find(o=>l.valueComparator(i,o.value))||ci(l,i))}function g(u){return l.returnObject?u.map(i=>{let{raw:o}=i;return o}):u.map(i=>{let{value:o}=i;return o})}return{items:A,transformIn:p,transformOut:g}}function Nu(l){return typeof l=="string"||typeof l=="number"||typeof l=="boolean"}function Ou(l,A){const e=jt(A,l.itemType,"item"),p=Nu(A)?A:jt(A,l.itemTitle),g=jt(A,l.itemValue,void 0),u=jt(A,l.itemChildren),i=l.itemProps===!0?Nr(A,["children"]):jt(A,l.itemProps),o={title:p,value:g,...i};return{type:e,title:o.title,value:o.value,props:o,children:e==="item"&&u?Ha(l,u):void 0,raw:A}}function Ha(l,A){const e=[];for(const p of A)e.push(Ou(l,p));return e}function Iu(l){return{items:E.computed(()=>Ha(l,l.items))}}const Pu=ge({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,expandIcon:String,collapseIcon:String,lines:{type:[Boolean,String],default:"one"},slim:Boolean,nav:Boolean,"onClick:open":Ot(),"onClick:select":Ot(),"onUpdate:opened":Ot(),...fu({selectStrategy:"single-leaf",openStrategy:"list"}),...cr(),...Qe(),...zt(),...Gt(),...rr(),itemType:{type:String,default:"type"},...$a(),...$t(),..._t(),...xt(),...nr({variant:"text"})},"VList"),Ri=Oe()({name:"VList",props:Pu(),emits:{"update:selected":l=>!0,"update:activated":l=>!0,"update:opened":l=>!0,"click:open":l=>!0,"click:activate":l=>!0,"click:select":l=>!0},setup(l,A){let{slots:e}=A;const{items:p}=Iu(l),{themeClasses:g}=Et(l),{backgroundColorClasses:u,backgroundColorStyles:i}=Wt(E.toRef(l,"bgColor")),{borderClasses:o}=wr(l),{densityClasses:r}=Kt(l),{dimensionStyles:t}=Yt(l),{elevationClasses:n}=dr(l),{roundedClasses:c}=qt(l),{children:s,open:a,parents:f,select:h}=hu(l),d=E.computed(()=>l.lines?`v-list--${l.lines}-line`:void 0),b=E.toRef(l,"activeColor"),m=E.toRef(l,"baseColor"),x=E.toRef(l,"color");Ra(),Qt({VListGroup:{activeColor:b,baseColor:m,color:x,expandIcon:E.toRef(l,"expandIcon"),collapseIcon:E.toRef(l,"collapseIcon")},VListItem:{activeClass:E.toRef(l,"activeClass"),activeColor:b,baseColor:m,color:x,density:E.toRef(l,"density"),disabled:E.toRef(l,"disabled"),lines:E.toRef(l,"lines"),nav:E.toRef(l,"nav"),slim:E.toRef(l,"slim"),variant:E.toRef(l,"variant")}});const k=E.shallowRef(!1),R=E.ref();function F(V){k.value=!0}function L(V){k.value=!1}function j(V){var T;!k.value&&!(V.relatedTarget&&((T=R.value)!=null&&T.contains(V.relatedTarget)))&&$()}function D(V){const T=V.target;if(!(!R.value||["INPUT","TEXTAREA"].includes(T.tagName))){if(V.key==="ArrowDown")$("next");else if(V.key==="ArrowUp")$("prev");else if(V.key==="Home")$("first");else if(V.key==="End")$("last");else return;V.preventDefault()}}function z(V){k.value=!0}function $(V){if(R.value)return bn(R.value,V)}return qe(()=>E.createVNode(l.tag,{ref:R,class:["v-list",{"v-list--disabled":l.disabled,"v-list--nav":l.nav,"v-list--slim":l.slim},g.value,u.value,o.value,r.value,n.value,d.value,c.value,l.class],style:[i.value,t.value,l.style],tabindex:l.disabled||k.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:F,onFocusout:L,onFocus:j,onKeydown:D,onMousedown:z},{default:()=>[E.createVNode(za,{items:p.value,returnObject:l.returnObject},e)]})),{open:a,select:h,focus:$,children:s,parents:f}}});function Zn(l,A){return{x:l.x+A.x,y:l.y+A.y}}function ju(l,A){return{x:l.x-A.x,y:l.y-A.y}}function _s(l,A){if(l.side==="top"||l.side==="bottom"){const{side:e,align:p}=l,g=p==="left"?0:p==="center"?A.width/2:p==="right"?A.width:p,u=e==="top"?0:e==="bottom"?A.height:e;return Zn({x:g,y:u},A)}else if(l.side==="left"||l.side==="right"){const{side:e,align:p}=l,g=e==="left"?0:e==="right"?A.width:e,u=p==="top"?0:p==="center"?A.height/2:p==="bottom"?A.height:p;return Zn({x:g,y:u},A)}return Zn({x:A.width/2,y:A.height/2},A)}const Wa={static:Du,connected:Lu},Bu=ge({locationStrategy:{type:[String,Function],default:"static",validator:l=>typeof l=="function"||l in Wa},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function Fu(l,A){const e=E.ref({}),p=E.ref();Rt&&vr(()=>!!(A.isActive.value&&l.locationStrategy),u=>{var i,o;E.watch(()=>l.locationStrategy,u),E.onScopeDispose(()=>{window.removeEventListener("resize",g),p.value=void 0}),window.addEventListener("resize",g,{passive:!0}),typeof l.locationStrategy=="function"?p.value=(i=l.locationStrategy(A,l,e))==null?void 0:i.updateLocation:p.value=(o=Wa[l.locationStrategy](A,l,e))==null?void 0:o.updateLocation});function g(u){var i;(i=p.value)==null||i.call(p,u)}return{contentStyles:e,updateLocation:p}}function Du(){}function Vu(l,A){A?l.style.removeProperty("left"):l.style.removeProperty("right");const e=vi(l);return A?e.x+=parseFloat(l.style.right||0):e.x-=parseFloat(l.style.left||0),e.y-=parseFloat(l.style.top||0),e}function Lu(l,A,e){(Array.isArray(l.target.value)||Ml(l.target.value))&&Object.assign(e.value,{position:"fixed",top:0,[l.isRtl.value?"right":"left"]:0});const{preferredAnchor:g,preferredOrigin:u}=bi(()=>{const f=si(A.location,l.isRtl.value),h=A.origin==="overlap"?f:A.origin==="auto"?Kn(f):si(A.origin,l.isRtl.value);return f.side===h.side&&f.align===Gn(h).align?{preferredAnchor:Yi(f),preferredOrigin:Yi(h)}:{preferredAnchor:f,preferredOrigin:h}}),[i,o,r,t]=["minWidth","minHeight","maxWidth","maxHeight"].map(f=>E.computed(()=>{const h=parseFloat(A[f]);return isNaN(h)?1/0:h})),n=E.computed(()=>{if(Array.isArray(A.offset))return A.offset;if(typeof A.offset=="string"){const f=A.offset.split(" ").map(parseFloat);return f.length<2&&f.push(0),f}return typeof A.offset=="number"?[A.offset,0]:[0,0]});let c=!1;const s=new ResizeObserver(()=>{c&&a()});E.watch([l.target,l.contentEl],(f,h)=>{let[d,b]=f,[m,x]=h;m&&!Array.isArray(m)&&s.unobserve(m),d&&!Array.isArray(d)&&s.observe(d),x&&s.unobserve(x),b&&s.observe(b)},{immediate:!0}),E.onScopeDispose(()=>{s.disconnect()});function a(){if(c=!1,requestAnimationFrame(()=>c=!0),!l.target.value||!l.contentEl.value)return;const f=ia(l.target.value),h=Vu(l.contentEl.value,l.isRtl.value),d=_n(l.contentEl.value),b=12;d.length||(d.push(document.documentElement),l.contentEl.value.style.top&&l.contentEl.value.style.left||(h.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),h.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const m=d.reduce(($,V)=>{const T=V.getBoundingClientRect(),M=new gr({x:V===document.documentElement?0:T.x,y:V===document.documentElement?0:T.y,width:V.clientWidth,height:V.clientHeight});return $?new gr({x:Math.max($.left,M.left),y:Math.max($.top,M.top),width:Math.min($.right,M.right)-Math.max($.left,M.left),height:Math.min($.bottom,M.bottom)-Math.max($.top,M.top)}):M},void 0);m.x+=b,m.y+=b,m.width-=b*2,m.height-=b*2;let x={anchor:g.value,origin:u.value};function k($){const V=new gr(h),T=_s($.anchor,f),M=_s($.origin,V);let{x:S,y:v}=ju(T,M);switch($.anchor.side){case"top":v-=n.value[0];break;case"bottom":v+=n.value[0];break;case"left":S-=n.value[0];break;case"right":S+=n.value[0];break}switch($.anchor.align){case"top":v-=n.value[1];break;case"bottom":v+=n.value[1];break;case"left":S-=n.value[1];break;case"right":S+=n.value[1];break}return V.x+=S,V.y+=v,V.width=Math.min(V.width,r.value),V.height=Math.min(V.height,t.value),{overflows:Ji(V,m),x:S,y:v}}let R=0,F=0;const L={x:0,y:0},j={x:!1,y:!1};let D=-1;for(;;){if(D++>10){sa("Infinite loop detected in connectedLocationStrategy");break}const{x:$,y:V,overflows:T}=k(x);R+=$,F+=V,h.x+=$,h.y+=V;{const M=Zi(x.anchor),S=T.x.before||T.x.after,v=T.y.before||T.y.after;let w=!1;if(["x","y"].forEach(y=>{if(y==="x"&&S&&!j.x||y==="y"&&v&&!j.y){const _={anchor:{...x.anchor},origin:{...x.origin}},C=y==="x"?M==="y"?Gn:Kn:M==="y"?Kn:Gn;_.anchor=C(_.anchor),_.origin=C(_.origin);const{overflows:I}=k(_);(I[y].before<=T[y].before&&I[y].after<=T[y].after||I[y].before+I[y].after<(T[y].before+T[y].after)/2)&&(x=_,w=j[y]=!0)}}),w)continue}T.x.before&&(R+=T.x.before,h.x+=T.x.before),T.x.after&&(R-=T.x.after,h.x-=T.x.after),T.y.before&&(F+=T.y.before,h.y+=T.y.before),T.y.after&&(F-=T.y.after,h.y-=T.y.after);{const M=Ji(h,m);L.x=m.width-M.x.before-M.x.after,L.y=m.height-M.y.before-M.y.after,R+=M.x.before,h.x+=M.x.before,F+=M.y.before,h.y+=M.y.before}break}const z=Zi(x.anchor);return Object.assign(e.value,{"--v-overlay-anchor-origin":`${x.anchor.side} ${x.anchor.align}`,transformOrigin:`${x.origin.side} ${x.origin.align}`,top:He(Jn(F)),left:l.isRtl.value?void 0:He(Jn(R)),right:l.isRtl.value?He(Jn(-R)):void 0,minWidth:He(z==="y"?Math.min(i.value,f.width):i.value),maxWidth:He(xs(Ht(L.x,i.value===1/0?0:i.value,r.value))),maxHeight:He(xs(Ht(L.y,o.value===1/0?0:o.value,t.value)))}),{available:L,contentBox:h}}return E.watch(()=>[g.value,u.value,A.offset,A.minWidth,A.minHeight,A.maxWidth,A.maxHeight],()=>a()),E.nextTick(()=>{const f=a();if(!f)return;const{available:h,contentBox:d}=f;d.height>h.y&&requestAnimationFrame(()=>{a(),requestAnimationFrame(()=>{a()})})}),{updateLocation:a}}function Jn(l){return Math.round(l*devicePixelRatio)/devicePixelRatio}function xs(l){return Math.ceil(l*devicePixelRatio)/devicePixelRatio}let di=!0;const kn=[];function zu(l){!di||kn.length?(kn.push(l),fi()):(di=!1,l(),fi())}let Ss=-1;function fi(){cancelAnimationFrame(Ss),Ss=requestAnimationFrame(()=>{const l=kn.shift();l&&l(),kn.length?fi():di=!0})}const pn={none:null,close:Hu,block:Wu,reposition:qu},$u=ge({scrollStrategy:{type:[String,Function],default:"block",validator:l=>typeof l=="function"||l in pn}},"VOverlay-scroll-strategies");function Uu(l,A){if(!Rt)return;let e;E.watchEffect(async()=>{e==null||e.stop(),A.isActive.value&&l.scrollStrategy&&(e=E.effectScope(),await new Promise(p=>setTimeout(p)),e.active&&e.run(()=>{var p;typeof l.scrollStrategy=="function"?l.scrollStrategy(A,l,e):(p=pn[l.scrollStrategy])==null||p.call(pn,A,l,e)}))}),E.onScopeDispose(()=>{e==null||e.stop()})}function Hu(l){function A(e){l.isActive.value=!1}qa(l.targetEl.value??l.contentEl.value,A)}function Wu(l,A){var i;const e=(i=l.root.value)==null?void 0:i.offsetParent,p=[...new Set([..._n(l.targetEl.value,A.contained?e:void 0),..._n(l.contentEl.value,A.contained?e:void 0)])].filter(o=>!o.classList.contains("v-overlay-scroll-blocked")),g=window.innerWidth-document.documentElement.offsetWidth,u=(o=>wi(o)&&o)(e||document.documentElement);u&&l.root.value.classList.add("v-overlay--scroll-blocked"),p.forEach((o,r)=>{o.style.setProperty("--v-body-scroll-x",He(-o.scrollLeft)),o.style.setProperty("--v-body-scroll-y",He(-o.scrollTop)),o!==document.documentElement&&o.style.setProperty("--v-scrollbar-offset",He(g)),o.classList.add("v-overlay-scroll-blocked")}),E.onScopeDispose(()=>{p.forEach((o,r)=>{const t=parseFloat(o.style.getPropertyValue("--v-body-scroll-x")),n=parseFloat(o.style.getPropertyValue("--v-body-scroll-y")),c=o.style.scrollBehavior;o.style.scrollBehavior="auto",o.style.removeProperty("--v-body-scroll-x"),o.style.removeProperty("--v-body-scroll-y"),o.style.removeProperty("--v-scrollbar-offset"),o.classList.remove("v-overlay-scroll-blocked"),o.scrollLeft=-t,o.scrollTop=-n,o.style.scrollBehavior=c}),u&&l.root.value.classList.remove("v-overlay--scroll-blocked")})}function qu(l,A,e){let p=!1,g=-1,u=-1;function i(o){zu(()=>{var n,c;const r=performance.now();(c=(n=l.updateLocation).value)==null||c.call(n,o),p=(performance.now()-r)/(1e3/60)>2})}u=(typeof requestIdleCallback>"u"?o=>o():requestIdleCallback)(()=>{e.run(()=>{qa(l.targetEl.value??l.contentEl.value,o=>{p?(cancelAnimationFrame(g),g=requestAnimationFrame(()=>{g=requestAnimationFrame(()=>{i(o)})})):i(o)})})}),E.onScopeDispose(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(u),cancelAnimationFrame(g)})}function qa(l,A){const e=[document,..._n(l)];e.forEach(p=>{p.addEventListener("scroll",A,{passive:!0})}),E.onScopeDispose(()=>{e.forEach(p=>{p.removeEventListener("scroll",A)})})}const hi=Symbol.for("vuetify:v-menu"),Xu=ge({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function Ku(l,A){let e=()=>{};function p(i){e==null||e();const o=Number(i?l.openDelay:l.closeDelay);return new Promise(r=>{e=il(o,()=>{A==null||A(i),r(i)})})}function g(){return p(!0)}function u(){return p(!1)}return{clearDelay:e,runOpenDelay:g,runCloseDelay:u}}const Gu=ge({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...Xu()},"VOverlay-activator");function Yu(l,A){let{isActive:e,isTop:p}=A;const g=kt("useActivator"),u=E.ref();let i=!1,o=!1,r=!0;const t=E.computed(()=>l.openOnFocus||l.openOnFocus==null&&l.openOnHover),n=E.computed(()=>l.openOnClick||l.openOnClick==null&&!l.openOnHover&&!t.value),{runOpenDelay:c,runCloseDelay:s}=Ku(l,L=>{L===(l.openOnHover&&i||t.value&&o)&&!(l.openOnHover&&e.value&&!p.value)&&(e.value!==L&&(r=!0),e.value=L)}),a=E.ref(),f={onClick:L=>{L.stopPropagation(),u.value=L.currentTarget||L.target,e.value||(a.value=[L.clientX,L.clientY]),e.value=!e.value},onMouseenter:L=>{var j;(j=L.sourceCapabilities)!=null&&j.firesTouchEvents||(i=!0,u.value=L.currentTarget||L.target,c())},onMouseleave:L=>{i=!1,s()},onFocus:L=>{vn(L.target,":focus-visible")!==!1&&(o=!0,L.stopPropagation(),u.value=L.currentTarget||L.target,c())},onBlur:L=>{o=!1,L.stopPropagation(),s()}},h=E.computed(()=>{const L={};return n.value&&(L.onClick=f.onClick),l.openOnHover&&(L.onMouseenter=f.onMouseenter,L.onMouseleave=f.onMouseleave),t.value&&(L.onFocus=f.onFocus,L.onBlur=f.onBlur),L}),d=E.computed(()=>{const L={};if(l.openOnHover&&(L.onMouseenter=()=>{i=!0,c()},L.onMouseleave=()=>{i=!1,s()}),t.value&&(L.onFocusin=()=>{o=!0,c()},L.onFocusout=()=>{o=!1,s()}),l.closeOnContentClick){const j=E.inject(hi,null);L.onClick=()=>{e.value=!1,j==null||j.closeParents()}}return L}),b=E.computed(()=>{const L={};return l.openOnHover&&(L.onMouseenter=()=>{r&&(i=!0,r=!1,c())},L.onMouseleave=()=>{i=!1,s()}),L});E.watch(p,L=>{L&&(l.openOnHover&&!i&&(!t.value||!o)||t.value&&!o&&(!l.openOnHover||!i))&&(e.value=!1)}),E.watch(e,L=>{L||setTimeout(()=>{a.value=void 0})},{flush:"post"});const m=ii();E.watchEffect(()=>{m.value&&E.nextTick(()=>{u.value=m.el})});const x=ii(),k=E.computed(()=>l.target==="cursor"&&a.value?a.value:x.value?x.el:Xa(l.target,g)||u.value),R=E.computed(()=>Array.isArray(k.value)?void 0:k.value);let F;return E.watch(()=>!!l.activator,L=>{L&&Rt?(F=E.effectScope(),F.run(()=>{Zu(l,g,{activatorEl:u,activatorEvents:h})})):F&&F.stop()},{flush:"post",immediate:!0}),E.onScopeDispose(()=>{F==null||F.stop()}),{activatorEl:u,activatorRef:m,target:k,targetEl:R,targetRef:x,activatorEvents:h,contentEvents:d,scrimEvents:b}}function Zu(l,A,e){let{activatorEl:p,activatorEvents:g}=e;E.watch(()=>l.activator,(r,t)=>{if(t&&r!==t){const n=o(t);n&&i(n)}r&&E.nextTick(()=>u())},{immediate:!0}),E.watch(()=>l.activatorProps,()=>{u()}),E.onScopeDispose(()=>{i()});function u(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o(),t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l.activatorProps;r&&ol(r,E.mergeProps(g.value,t))}function i(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o(),t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l.activatorProps;r&&ll(r,E.mergeProps(g.value,t))}function o(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l.activator;const t=Xa(r,A);return p.value=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:void 0,p.value}}function Xa(l,A){var p,g;if(!l)return;let e;if(l==="parent"){let u=(g=(p=A==null?void 0:A.proxy)==null?void 0:p.$el)==null?void 0:g.parentNode;for(;u!=null&&u.hasAttribute("data-no-activator");)u=u.parentNode;e=u}else typeof l=="string"?e=document.querySelector(l):"$el"in l?e=l.$el:e=l;return e}const Fn=["sm","md","lg","xl","xxl"],Ju=Symbol.for("vuetify:display"),Dn=ge({mobile:{type:Boolean,default:!1},mobileBreakpoint:[Number,String]},"display");function _r(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xt();const e=E.inject(Ju);if(!e)throw new Error("Could not find Vuetify display injection");const p=E.computed(()=>{if(l.mobile!=null)return l.mobile;if(!l.mobileBreakpoint)return e.mobile.value;const u=typeof l.mobileBreakpoint=="number"?l.mobileBreakpoint:e.thresholds.value[l.mobileBreakpoint];return e.width.value<u}),g=E.computed(()=>A?{[`${A}--mobile`]:p.value}:{});return{...e,displayClasses:g,mobile:p}}function Qu(){if(!Rt)return E.shallowRef(!1);const{ssr:l}=_r();if(l){const A=E.shallowRef(!1);return E.onMounted(()=>{A.value=!0}),A}else return E.shallowRef(!0)}const ec=ge({eager:Boolean},"lazy");function tc(l,A){const e=E.shallowRef(!1),p=E.computed(()=>e.value||l.eager||A.value);E.watch(A,()=>e.value=!0);function g(){l.eager||(e.value=!1)}return{isBooted:e,hasContent:p,onAfterLeave:g}}function Ni(){const A=kt("useScopeId").vnode.scopeId;return{scopeId:A?{[A]:""}:void 0}}const ks=Symbol.for("vuetify:stack"),jr=E.reactive([]);function rc(l,A,e){const p=kt("useStack"),g=!e,u=E.inject(ks,void 0),i=E.reactive({activeChildren:new Set});E.provide(ks,i);const o=E.shallowRef(+A.value);vr(l,()=>{var c;const n=(c=jr.at(-1))==null?void 0:c[1];o.value=n?n+10:+A.value,g&&jr.push([p.uid,o.value]),u==null||u.activeChildren.add(p.uid),E.onScopeDispose(()=>{if(g){const s=E.toRaw(jr).findIndex(a=>a[0]===p.uid);jr.splice(s,1)}u==null||u.activeChildren.delete(p.uid)})});const r=E.shallowRef(!0);g&&E.watchEffect(()=>{var c;const n=((c=jr.at(-1))==null?void 0:c[0])===p.uid;setTimeout(()=>r.value=n)});const t=E.computed(()=>!i.activeChildren.size);return{globalTop:E.readonly(r),localTop:t,stackStyles:E.computed(()=>({zIndex:o.value}))}}function nc(l){return{teleportTarget:E.computed(()=>{const e=l.value;if(e===!0||!Rt)return;const p=e===!1?document.body:typeof e=="string"?document.querySelector(e):e;if(p==null){E.warn(`Unable to locate target ${e}`);return}let g=p.querySelector(":scope > .v-overlay-container");return g||(g=document.createElement("div"),g.className="v-overlay-container",p.appendChild(g)),g})}}function ic(){return!0}function Ka(l,A,e){if(!l||Ga(l,e)===!1)return!1;const p=ua(A);if(typeof ShadowRoot<"u"&&p instanceof ShadowRoot&&p.host===l.target)return!1;const g=(typeof e.value=="object"&&e.value.include||(()=>[]))();return g.push(A),!g.some(u=>u==null?void 0:u.contains(l.target))}function Ga(l,A){return(typeof A.value=="object"&&A.value.closeConditional||ic)(l)}function sc(l,A,e){const p=typeof e.value=="function"?e.value:e.value.handler;A._clickOutside.lastMousedownWasOutside&&Ka(l,A,e)&&setTimeout(()=>{Ga(l,e)&&p&&p(l)},0)}function Cs(l,A){const e=ua(l);A(document),typeof ShadowRoot<"u"&&e instanceof ShadowRoot&&A(e)}const ac={mounted(l,A){const e=g=>sc(g,l,A),p=g=>{l._clickOutside.lastMousedownWasOutside=Ka(g,l,A)};Cs(l,g=>{g.addEventListener("click",e,!0),g.addEventListener("mousedown",p,!0)}),l._clickOutside||(l._clickOutside={lastMousedownWasOutside:!1}),l._clickOutside[A.instance.$.uid]={onClick:e,onMousedown:p}},unmounted(l,A){l._clickOutside&&(Cs(l,e=>{var u;if(!e||!((u=l._clickOutside)!=null&&u[A.instance.$.uid]))return;const{onClick:p,onMousedown:g}=l._clickOutside[A.instance.$.uid];e.removeEventListener("click",p,!0),e.removeEventListener("mousedown",g,!0)}),delete l._clickOutside[A.instance.$.uid])}};function oc(l){const{modelValue:A,color:e,...p}=l;return E.createVNode(E.Transition,{name:"fade-transition",appear:!0},{default:()=>[l.modelValue&&E.createVNode("div",E.mergeProps({class:["v-overlay__scrim",l.color.backgroundColorClasses.value],style:l.color.backgroundColorStyles.value},p),null)]})}const Oi=ge({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...Gu(),...Qe(),...Gt(),...ec(),...Bu(),...$u(),...xt(),...Zr()},"VOverlay"),Cn=Oe()({name:"VOverlay",directives:{ClickOutside:ac},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...Oi()},emits:{"click:outside":l=>!0,"update:modelValue":l=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(l,A){let{slots:e,attrs:p,emit:g}=A;const u=vt(l,"modelValue"),i=E.computed({get:()=>u.value,set:B=>{B&&l.disabled||(u.value=B)}}),{themeClasses:o}=Et(l),{rtlClasses:r,isRtl:t}=fr(),{hasContent:n,onAfterLeave:c}=tc(l,i),s=Wt(E.computed(()=>typeof l.scrim=="string"?l.scrim:null)),{globalTop:a,localTop:f,stackStyles:h}=rc(i,E.toRef(l,"zIndex"),l._disableGlobalStack),{activatorEl:d,activatorRef:b,target:m,targetEl:x,targetRef:k,activatorEvents:R,contentEvents:F,scrimEvents:L}=Yu(l,{isActive:i,isTop:f}),j=E.computed(()=>{var B;return(B=d==null?void 0:d.value)==null?void 0:B.getRootNode()}),{teleportTarget:D}=nc(E.computed(()=>l.attach||l.contained||j.value instanceof ShadowRoot?j.value??!0:!1)),{dimensionStyles:z}=Yt(l),$=Qu(),{scopeId:V}=Ni();E.watch(()=>l.disabled,B=>{B&&(i.value=!1)});const T=E.ref(),M=E.ref(),S=E.ref(),{contentStyles:v,updateLocation:w}=Fu(l,{isRtl:t,contentEl:S,target:m,isActive:i});Uu(l,{root:T,contentEl:S,targetEl:x,isActive:i,updateLocation:w});function y(B){g("click:outside",B),l.persistent?H():i.value=!1}function _(B){return i.value&&a.value&&(!l.scrim||B.target===M.value)}Rt&&E.watch(i,B=>{B?window.addEventListener("keydown",C):window.removeEventListener("keydown",C)},{immediate:!0}),E.onBeforeUnmount(()=>{Rt&&window.removeEventListener("keydown",C)});function C(B){var q,O;B.key==="Escape"&&a.value&&(l.persistent?H():(i.value=!1,(q=S.value)!=null&&q.contains(document.activeElement)&&((O=d.value)==null||O.focus())))}const I=Xl();vr(()=>l.closeOnBack,()=>{Kl(I,B=>{a.value&&i.value?(B(!1),l.persistent?H():i.value=!1):B()})});const P=E.ref();E.watch(()=>i.value&&(l.absolute||l.contained)&&D.value==null,B=>{if(B){const q=ca(T.value);q&&q!==document.scrollingElement&&(P.value=q.scrollTop)}});function H(){l.noClickAnimation||S.value&&Er(S.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:wn})}function W(){g("afterEnter")}function K(){c(),g("afterLeave")}return qe(()=>{var B;return E.createVNode(E.Fragment,null,[(B=e.activator)==null?void 0:B.call(e,{isActive:i.value,targetRef:k,props:E.mergeProps({ref:b},R.value,l.activatorProps)}),$.value&&n.value&&E.createVNode(E.Teleport,{disabled:!D.value,to:D.value},{default:()=>[E.createVNode("div",E.mergeProps({class:["v-overlay",{"v-overlay--absolute":l.absolute||l.contained,"v-overlay--active":i.value,"v-overlay--contained":l.contained},o.value,r.value,l.class],style:[h.value,{"--v-overlay-opacity":l.opacity,top:He(P.value)},l.style],ref:T},V,p),[E.createVNode(oc,E.mergeProps({color:s,modelValue:i.value&&!!l.scrim,ref:M},L.value),null),E.createVNode(lr,{appear:!0,persisted:!0,transition:l.transition,target:m.value,onAfterEnter:W,onAfterLeave:K},{default:()=>{var q;return[E.withDirectives(E.createVNode("div",E.mergeProps({ref:S,class:["v-overlay__content",l.contentClass],style:[z.value,v.value]},F.value,l.contentProps),[(q=e.default)==null?void 0:q.call(e,{isActive:i})]),[[E.vShow,i.value],[E.resolveDirective("click-outside"),{handler:y,closeConditional:_,include:()=>[d.value]}]])]}})])]})])}),{activatorEl:d,scrimEl:M,target:m,animateClick:H,contentEl:S,globalTop:a,localTop:f,updateLocation:w}}}),Qn=Symbol("Forwarded refs");function ei(l,A){let e=l;for(;e;){const p=Reflect.getOwnPropertyDescriptor(e,A);if(p)return p;e=Object.getPrototypeOf(e)}}function Vn(l){for(var A=arguments.length,e=new Array(A>1?A-1:0),p=1;p<A;p++)e[p-1]=arguments[p];return l[Qn]=e,new Proxy(l,{get(g,u){if(Reflect.has(g,u))return Reflect.get(g,u);if(!(typeof u=="symbol"||u.startsWith("$")||u.startsWith("__"))){for(const i of e)if(i.value&&Reflect.has(i.value,u)){const o=Reflect.get(i.value,u);return typeof o=="function"?o.bind(i.value):o}}},has(g,u){if(Reflect.has(g,u))return!0;if(typeof u=="symbol"||u.startsWith("$")||u.startsWith("__"))return!1;for(const i of e)if(i.value&&Reflect.has(i.value,u))return!0;return!1},set(g,u,i){if(Reflect.has(g,u))return Reflect.set(g,u,i);if(typeof u=="symbol"||u.startsWith("$")||u.startsWith("__"))return!1;for(const o of e)if(o.value&&Reflect.has(o.value,u))return Reflect.set(o.value,u,i);return!1},getOwnPropertyDescriptor(g,u){var o;const i=Reflect.getOwnPropertyDescriptor(g,u);if(i)return i;if(!(typeof u=="symbol"||u.startsWith("$")||u.startsWith("__"))){for(const r of e){if(!r.value)continue;const t=ei(r.value,u)??("_"in r.value?ei((o=r.value._)==null?void 0:o.setupState,u):void 0);if(t)return t}for(const r of e){const t=r.value&&r.value[Qn];if(!t)continue;const n=t.slice();for(;n.length;){const c=n.shift(),s=ei(c.value,u);if(s)return s;const a=c.value&&c.value[Qn];a&&n.push(...a)}}}}})}const lc=ge({id:String,...Nr(Oi({closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:Ei}}),["absolute"])},"VMenu"),Ii=Oe()({name:"VMenu",props:lc(),emits:{"update:modelValue":l=>!0},setup(l,A){let{slots:e}=A;const p=vt(l,"modelValue"),{scopeId:g}=Ni(),u=tr(),i=E.computed(()=>l.id||`v-menu-${u}`),o=E.ref(),r=E.inject(hi,null),t=E.shallowRef(0);E.provide(hi,{register(){++t.value},unregister(){--t.value},closeParents(h){setTimeout(()=>{!t.value&&!l.persistent&&(h==null||h&&!sl(h,o.value.contentEl))&&(p.value=!1,r==null||r.closeParents())},40)}});async function n(h){var m,x,k;const d=h.relatedTarget,b=h.target;await E.nextTick(),p.value&&d!==b&&((m=o.value)!=null&&m.contentEl)&&((x=o.value)!=null&&x.globalTop)&&![document,o.value.contentEl].includes(b)&&!o.value.contentEl.contains(b)&&((k=Vr(o.value.contentEl)[0])==null||k.focus())}E.watch(p,h=>{h?(r==null||r.register(),document.addEventListener("focusin",n,{once:!0})):(r==null||r.unregister(),document.removeEventListener("focusin",n))});function c(h){r==null||r.closeParents(h)}function s(h){var d,b,m;if(!l.disabled)if(h.key==="Tab"||h.key==="Enter"&&!l.closeOnContentClick){if(h.key==="Enter"&&(h.target instanceof HTMLTextAreaElement||h.target instanceof HTMLInputElement&&h.target.closest("form")))return;h.key==="Enter"&&h.preventDefault(),ta(Vr((d=o.value)==null?void 0:d.contentEl,!1),h.shiftKey?"prev":"next",k=>k.tabIndex>=0)||(p.value=!1,(m=(b=o.value)==null?void 0:b.activatorEl)==null||m.focus())}else["Enter"," "].includes(h.key)&&l.closeOnContentClick&&(p.value=!1,r==null||r.closeParents())}function a(h){var b;if(l.disabled)return;const d=(b=o.value)==null?void 0:b.contentEl;d&&p.value?h.key==="ArrowDown"?(h.preventDefault(),bn(d,"next")):h.key==="ArrowUp"&&(h.preventDefault(),bn(d,"prev")):["ArrowDown","ArrowUp"].includes(h.key)&&(p.value=!0,h.preventDefault(),setTimeout(()=>setTimeout(()=>a(h))))}const f=E.computed(()=>E.mergeProps({"aria-haspopup":"menu","aria-expanded":String(p.value),"aria-owns":i.value,onKeydown:a},l.activatorProps));return qe(()=>{const h=Cn.filterProps(l);return E.createVNode(Cn,E.mergeProps({ref:o,id:i.value,class:["v-menu",l.class],style:l.style},h,{modelValue:p.value,"onUpdate:modelValue":d=>p.value=d,absolute:!0,activatorProps:f.value,"onClick:outside":c,onKeydown:s},g),{activator:e.activator,default:function(){for(var d=arguments.length,b=new Array(d),m=0;m<d;m++)b[m]=arguments[m];return E.createVNode(Mt,{root:"VMenu"},{default:()=>{var x;return[(x=e.default)==null?void 0:x.call(e,...b)]}})}})}),Vn({id:i,ΨopenChildren:t},o)}}),uc={__name:"ActionButtons",props:{params:{type:Object,default:()=>({})}},setup(l){const A=E.ref([{title:"No Items"}]),e=l;return E.onMounted(()=>{const p=e.params.column.cellRendererFrameworkOptions(e.params);A.value=(p==null?void 0:p.buttons)??[]}),(p,g)=>(E.openBlock(),E.createBlock(Ii,{class:"action-buttons"},{activator:E.withCtx(({props:u})=>[E.createVNode(Bt,E.mergeProps({icon:"mdi-dots-vertical",variant:"text"},u,{size:"small"}),null,16)]),default:E.withCtx(()=>[E.createVNode(Ri,null,{default:E.withCtx(()=>[(E.openBlock(!0),E.createElementBlock(E.Fragment,null,E.renderList(E.unref(A),(u,i)=>(E.openBlock(),E.createBlock(Mr,E.mergeProps({ref_for:!0},u,{key:i}),null,16))),128))]),_:1})]),_:1}))}},cc=Symbol.for("vuetify:goto");function dc(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:{linear:l=>l,easeInQuad:l=>l**2,easeOutQuad:l=>l*(2-l),easeInOutQuad:l=>l<.5?2*l**2:-1+(4-2*l)*l,easeInCubic:l=>l**3,easeOutCubic:l=>--l**3+1,easeInOutCubic:l=>l<.5?4*l**3:(l-1)*(2*l-2)*(2*l-2)+1,easeInQuart:l=>l**4,easeOutQuart:l=>1- --l**4,easeInOutQuart:l=>l<.5?8*l**4:1-8*--l**4,easeInQuint:l=>l**5,easeOutQuint:l=>1+--l**5,easeInOutQuint:l=>l<.5?16*l**5:1+16*--l**5}}}function fc(l){return Pi(l)??(document.scrollingElement||document.body)}function Pi(l){return typeof l=="string"?document.querySelector(l):Gs(l)}function ti(l,A,e){if(typeof l=="number")return A&&e?-l:l;let p=Pi(l),g=0;for(;p;)g+=A?p.offsetLeft:p.offsetTop,p=p.offsetParent;return g}async function Ts(l,A,e,p){const g=e?"scrollLeft":"scrollTop",u=Jt((p==null?void 0:p.options)??dc(),A),i=p==null?void 0:p.rtl.value,o=(typeof l=="number"?l:Pi(l))??0,r=u.container==="parent"&&o instanceof HTMLElement?o.parentElement:fc(u.container),t=typeof u.easing=="function"?u.easing:u.patterns[u.easing];if(!t)throw new TypeError(`Easing function "${u.easing}" not found.`);let n;if(typeof o=="number")n=ti(o,e,i);else if(n=ti(o,e,i)-ti(r,e,i),u.layout){const f=window.getComputedStyle(o).getPropertyValue("--v-layout-top");f&&(n-=parseInt(f,10))}n+=u.offset,n=pc(r,n,!!i,!!e);const c=r[g]??0;if(n===c)return Promise.resolve(n);const s=performance.now();return new Promise(a=>requestAnimationFrame(function f(h){const b=(h-s)/u.duration,m=Math.floor(c+(n-c)*t(Ht(b,0,1)));if(r[g]=m,b>=1&&Math.abs(m-r[g])<10)return a(n);if(b>2)return br("Scroll target is not reachable"),a(r[g]);requestAnimationFrame(f)}))}function hc(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const A=E.inject(cc),{isRtl:e}=fr();if(!A)throw new Error("[Vuetify] Could not find injected goto instance");const p={...A,rtl:E.computed(()=>A.rtl.value||e.value)};async function g(u,i){return Ts(u,Jt(l,i),!1,p)}return g.horizontal=async(u,i)=>Ts(u,Jt(l,i),!0,p),g}function pc(l,A,e,p){const{scrollWidth:g,scrollHeight:u}=l,[i,o]=l===document.scrollingElement?[window.innerWidth,window.innerHeight]:[l.offsetWidth,l.offsetHeight];let r,t;return p?e?(r=-(g-i),t=0):(r=0,t=g-i):(r=0,t=u+-o),Math.max(Math.min(A,t),r)}function mc(){const l=E.ref([]);E.onBeforeUpdate(()=>l.value=[]);function A(e,p){l.value[p]=e}return{refs:l,updateRef:A}}const gc=ge({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:l=>l.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:l=>l%1===0},totalVisible:[Number,String],firstIcon:{type:it,default:"$first"},prevIcon:{type:it,default:"$prev"},nextIcon:{type:it,default:"$next"},lastIcon:{type:it,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...cr(),...Qe(),...zt(),...rr(),...$t(),...Or(),..._t({tag:"nav"}),...xt(),...nr({variant:"text"})},"VPagination"),Es=Oe()({name:"VPagination",props:gc(),emits:{"update:modelValue":l=>!0,first:l=>!0,prev:l=>!0,next:l=>!0,last:l=>!0},setup(l,A){let{slots:e,emit:p}=A;const g=vt(l,"modelValue"),{t:u,n:i}=ir(),{isRtl:o}=fr(),{themeClasses:r}=Et(l),{width:t}=_r(),n=E.shallowRef(-1);Qt(void 0,{scoped:!0});const{resizeRef:c}=Ar(j=>{if(!j.length)return;const{target:D,contentRect:z}=j[0],$=D.querySelector(".v-pagination__list > *");if(!$)return;const V=z.width,T=$.offsetWidth+parseFloat(getComputedStyle($).marginRight)*2;n.value=h(V,T)}),s=E.computed(()=>parseInt(l.length,10)),a=E.computed(()=>parseInt(l.start,10)),f=E.computed(()=>l.totalVisible!=null?parseInt(l.totalVisible,10):n.value>=0?n.value:h(t.value,58));function h(j,D){const z=l.showFirstLastPage?5:3;return Math.max(0,Math.floor(+((j-D*z)/D).toFixed(2)))}const d=E.computed(()=>{if(s.value<=0||isNaN(s.value)||s.value>Number.MAX_SAFE_INTEGER)return[];if(f.value<=0)return[];if(f.value===1)return[g.value];if(s.value<=f.value)return on(s.value,a.value);const j=f.value%2===0,D=j?f.value/2:Math.floor(f.value/2),z=j?D:D+1,$=s.value-D;if(z-g.value>=0)return[...on(Math.max(1,f.value-1),a.value),l.ellipsis,s.value];if(g.value-$>=(j?1:0)){const V=f.value-1,T=s.value-V+a.value;return[a.value,l.ellipsis,...on(V,T)]}else{const V=Math.max(1,f.value-3),T=V===1?g.value:g.value-Math.ceil(V/2)+a.value;return[a.value,l.ellipsis,...on(V,T),l.ellipsis,s.value]}});function b(j,D,z){j.preventDefault(),g.value=D,z&&p(z,D)}const{refs:m,updateRef:x}=mc();Qt({VPaginationBtn:{color:E.toRef(l,"color"),border:E.toRef(l,"border"),density:E.toRef(l,"density"),size:E.toRef(l,"size"),variant:E.toRef(l,"variant"),rounded:E.toRef(l,"rounded"),elevation:E.toRef(l,"elevation")}});const k=E.computed(()=>d.value.map((j,D)=>{const z=$=>x($,D);if(typeof j=="string")return{isActive:!1,key:`ellipsis-${D}`,page:j,props:{ref:z,ellipsis:!0,icon:!0,disabled:!0}};{const $=j===g.value;return{isActive:$,key:j,page:i(j),props:{ref:z,ellipsis:!1,icon:!0,disabled:!!l.disabled||+l.length<2,color:$?l.activeColor:l.color,"aria-current":$,"aria-label":u($?l.currentPageAriaLabel:l.pageAriaLabel,j),onClick:V=>b(V,j)}}}})),R=E.computed(()=>{const j=!!l.disabled||g.value<=a.value,D=!!l.disabled||g.value>=a.value+s.value-1;return{first:l.showFirstLastPage?{icon:o.value?l.lastIcon:l.firstIcon,onClick:z=>b(z,a.value,"first"),disabled:j,"aria-label":u(l.firstAriaLabel),"aria-disabled":j}:void 0,prev:{icon:o.value?l.nextIcon:l.prevIcon,onClick:z=>b(z,g.value-1,"prev"),disabled:j,"aria-label":u(l.previousAriaLabel),"aria-disabled":j},next:{icon:o.value?l.prevIcon:l.nextIcon,onClick:z=>b(z,g.value+1,"next"),disabled:D,"aria-label":u(l.nextAriaLabel),"aria-disabled":D},last:l.showFirstLastPage?{icon:o.value?l.firstIcon:l.lastIcon,onClick:z=>b(z,a.value+s.value-1,"last"),disabled:D,"aria-label":u(l.lastAriaLabel),"aria-disabled":D}:void 0}});function F(){var D;const j=g.value-a.value;(D=m.value[j])==null||D.$el.focus()}function L(j){j.key===Wi.left&&!l.disabled&&g.value>+l.start?(g.value=g.value-1,E.nextTick(F)):j.key===Wi.right&&!l.disabled&&g.value<a.value+s.value-1&&(g.value=g.value+1,E.nextTick(F))}return qe(()=>E.createVNode(l.tag,{ref:c,class:["v-pagination",r.value,l.class],style:l.style,role:"navigation","aria-label":u(l.ariaLabel),onKeydown:L,"data-test":"v-pagination-root"},{default:()=>[E.createVNode("ul",{class:"v-pagination__list"},[l.showFirstLastPage&&E.createVNode("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[e.first?e.first(R.value.first):E.createVNode(Bt,E.mergeProps({_as:"VPaginationBtn"},R.value.first),null)]),E.createVNode("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[e.prev?e.prev(R.value.prev):E.createVNode(Bt,E.mergeProps({_as:"VPaginationBtn"},R.value.prev),null)]),k.value.map((j,D)=>E.createVNode("li",{key:j.key,class:["v-pagination__item",{"v-pagination__item--is-active":j.isActive}],"data-test":"v-pagination-item"},[e.item?e.item(j):E.createVNode(Bt,E.mergeProps({_as:"VPaginationBtn"},j.props),{default:()=>[j.page]})])),E.createVNode("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[e.next?e.next(R.value.next):E.createVNode(Bt,E.mergeProps({_as:"VPaginationBtn"},R.value.next),null)]),l.showFirstLastPage&&E.createVNode("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[e.last?e.last(R.value.last):E.createVNode(Bt,E.mergeProps({_as:"VPaginationBtn"},R.value.last),null)])])]})),{}}}),bc=ge({text:String,onClick:Ot(),...Qe(),...xt()},"VLabel"),Ya=Oe()({name:"VLabel",props:bc(),setup(l,A){let{slots:e}=A;return qe(()=>{var p;return E.createVNode("label",{class:["v-label",{"v-label--clickable":!!l.onClick},l.class],style:l.style,onClick:l.onClick},[l.text,(p=e.default)==null?void 0:p.call(e)])}),{}}}),Za=Symbol.for("vuetify:selection-control-group"),Ja=ge({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:it,trueIcon:it,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:ur},...Qe(),...zt(),...xt()},"SelectionControlGroup"),vc=ge({...Ja({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup");Oe()({name:"VSelectionControlGroup",props:vc(),emits:{"update:modelValue":l=>!0},setup(l,A){let{slots:e}=A;const p=vt(l,"modelValue"),g=tr(),u=E.computed(()=>l.id||`v-selection-control-group-${g}`),i=E.computed(()=>l.name||u.value),o=new Set;return E.provide(Za,{modelValue:p,forceUpdate:()=>{o.forEach(r=>r())},onForceUpdate:r=>{o.add(r),E.onScopeDispose(()=>{o.delete(r)})}}),Qt({[l.defaultsTarget]:{color:E.toRef(l,"color"),disabled:E.toRef(l,"disabled"),density:E.toRef(l,"density"),error:E.toRef(l,"error"),inline:E.toRef(l,"inline"),modelValue:p,multiple:E.computed(()=>!!l.multiple||l.multiple==null&&Array.isArray(p.value)),name:i,falseIcon:E.toRef(l,"falseIcon"),trueIcon:E.toRef(l,"trueIcon"),readonly:E.toRef(l,"readonly"),ripple:E.toRef(l,"ripple"),type:E.toRef(l,"type"),valueComparator:E.toRef(l,"valueComparator")}}),qe(()=>{var r;return E.createVNode("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":l.inline},l.class],style:l.style,role:l.type==="radio"?"radiogroup":void 0},[(r=e.default)==null?void 0:r.call(e)])}),{}}});const Qa=ge({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...Qe(),...Ja()},"VSelectionControl");function yc(l){const A=E.inject(Za,void 0),{densityClasses:e}=Kt(l),p=vt(l,"modelValue"),g=E.computed(()=>l.trueValue!==void 0?l.trueValue:l.value!==void 0?l.value:!0),u=E.computed(()=>l.falseValue!==void 0?l.falseValue:!1),i=E.computed(()=>!!l.multiple||l.multiple==null&&Array.isArray(p.value)),o=E.computed({get(){const a=A?A.modelValue.value:p.value;return i.value?Nt(a).some(f=>l.valueComparator(f,g.value)):l.valueComparator(a,g.value)},set(a){if(l.readonly)return;const f=a?g.value:u.value;let h=f;i.value&&(h=a?[...Nt(p.value),f]:Nt(p.value).filter(d=>!l.valueComparator(d,g.value))),A?A.modelValue.value=h:p.value=h}}),{textColorClasses:r,textColorStyles:t}=er(E.computed(()=>{if(!(l.error||l.disabled))return o.value?l.color:l.baseColor})),{backgroundColorClasses:n,backgroundColorStyles:c}=Wt(E.computed(()=>o.value&&!l.error&&!l.disabled?l.color:l.baseColor)),s=E.computed(()=>o.value?l.trueIcon:l.falseIcon);return{group:A,densityClasses:e,trueValue:g,falseValue:u,model:o,textColorClasses:r,textColorStyles:t,backgroundColorClasses:n,backgroundColorStyles:c,icon:s}}const As=Oe()({name:"VSelectionControl",directives:{Ripple:Yr},inheritAttrs:!1,props:Qa(),emits:{"update:modelValue":l=>!0},setup(l,A){let{attrs:e,slots:p}=A;const{group:g,densityClasses:u,icon:i,model:o,textColorClasses:r,textColorStyles:t,backgroundColorClasses:n,backgroundColorStyles:c,trueValue:s}=yc(l),a=tr(),f=E.shallowRef(!1),h=E.shallowRef(!1),d=E.ref(),b=E.computed(()=>l.id||`input-${a}`),m=E.computed(()=>!l.disabled&&!l.readonly);g==null||g.onForceUpdate(()=>{d.value&&(d.value.checked=o.value)});function x(L){m.value&&(f.value=!0,vn(L.target,":focus-visible")!==!1&&(h.value=!0))}function k(){f.value=!1,h.value=!1}function R(L){L.stopPropagation()}function F(L){if(!m.value){d.value&&(d.value.checked=o.value);return}l.readonly&&g&&E.nextTick(()=>g.forceUpdate()),o.value=L.target.checked}return qe(()=>{var $,V;const L=p.label?p.label({label:l.label,props:{for:b.value}}):l.label,[j,D]=Js(e),z=E.createVNode("input",E.mergeProps({ref:d,checked:o.value,disabled:!!l.disabled,id:b.value,onBlur:k,onFocus:x,onInput:F,"aria-disabled":!!l.disabled,"aria-label":l.label,type:l.type,value:s.value,name:l.name,"aria-checked":l.type==="checkbox"?o.value:void 0},D),null);return E.createVNode("div",E.mergeProps({class:["v-selection-control",{"v-selection-control--dirty":o.value,"v-selection-control--disabled":l.disabled,"v-selection-control--error":l.error,"v-selection-control--focused":f.value,"v-selection-control--focus-visible":h.value,"v-selection-control--inline":l.inline},u.value,l.class]},j,{style:l.style}),[E.createVNode("div",{class:["v-selection-control__wrapper",r.value],style:t.value},[($=p.default)==null?void 0:$.call(p,{backgroundColorClasses:n,backgroundColorStyles:c}),E.withDirectives(E.createVNode("div",{class:["v-selection-control__input"]},[((V=p.input)==null?void 0:V.call(p,{model:o,textColorClasses:r,textColorStyles:t,backgroundColorClasses:n,backgroundColorStyles:c,inputNode:z,icon:i.value,props:{onFocus:x,onBlur:k,id:b.value}}))??E.createVNode(E.Fragment,null,[i.value&&E.createVNode(St,{key:"icon",icon:i.value},null),z])]),[[E.resolveDirective("ripple"),l.ripple&&[!l.disabled&&!l.readonly,null,["center","circle"]]]])]),L&&E.createVNode(Ya,{for:b.value,onClick:R},{default:()=>[L]})])}),{isFocused:f,input:d}}}),wc=ge({indeterminate:Boolean,indeterminateIcon:{type:it,default:"$checkboxIndeterminate"},...Qa({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),Ln=Oe()({name:"VCheckboxBtn",props:wc(),emits:{"update:modelValue":l=>!0,"update:indeterminate":l=>!0},setup(l,A){let{slots:e}=A;const p=vt(l,"indeterminate"),g=vt(l,"modelValue");function u(r){p.value&&(p.value=!1)}const i=E.computed(()=>p.value?l.indeterminateIcon:l.falseIcon),o=E.computed(()=>p.value?l.indeterminateIcon:l.trueIcon);return qe(()=>{const r=Nr(As.filterProps(l),["modelValue"]);return E.createVNode(As,E.mergeProps(r,{modelValue:g.value,"onUpdate:modelValue":[t=>g.value=t,u],class:["v-checkbox-btn",l.class],style:l.style,type:"checkbox",falseIcon:i.value,trueIcon:o.value,"aria-checked":p.value?"mixed":void 0}),e)}),{}}});function eo(l){const{t:A}=ir();function e(p){let{name:g}=p;const u={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[g],i=l[`onClick:${g}`],o=i&&u?A(`$vuetify.input.${u}`,l.label??""):void 0;return E.createVNode(St,{icon:l[`${g}Icon`],"aria-label":o,onClick:i},null)}return{InputIcon:e}}const _c=ge({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...Qe(),...Zr({transition:{component:Aa,leaveAbsolute:!0,group:!0}})},"VMessages"),xc=Oe()({name:"VMessages",props:_c(),setup(l,A){let{slots:e}=A;const p=E.computed(()=>Nt(l.messages)),{textColorClasses:g,textColorStyles:u}=er(E.computed(()=>l.color));return qe(()=>E.createVNode(lr,{transition:l.transition,tag:"div",class:["v-messages",g.value,l.class],style:[u.value,l.style],role:"alert","aria-live":"polite"},{default:()=>[l.active&&p.value.map((i,o)=>E.createVNode("div",{class:"v-messages__message",key:`${o}-${p.value}`},[e.message?e.message({message:i}):i]))]})),{}}}),to=ge({focused:Boolean,"onUpdate:focused":Ot()},"focus");function ro(l){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xt();const e=vt(l,"focused"),p=E.computed(()=>({[`${A}--focused`]:e.value}));function g(){e.value=!0}function u(){e.value=!1}return{focusClasses:p,isFocused:e,focus:g,blur:u}}const Sc=Symbol.for("vuetify:form");function no(){return E.inject(Sc,null)}const kc=ge({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...to()},"validation");function Cc(l){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xt(),e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:tr();const p=vt(l,"modelValue"),g=E.computed(()=>l.validationValue===void 0?p.value:l.validationValue),u=no(),i=E.ref([]),o=E.shallowRef(!0),r=E.computed(()=>!!(Nt(p.value===""?null:p.value).length||Nt(g.value===""?null:g.value).length)),t=E.computed(()=>!!(l.disabled??(u==null?void 0:u.isDisabled.value))),n=E.computed(()=>!!(l.readonly??(u==null?void 0:u.isReadonly.value))),c=E.computed(()=>{var R;return(R=l.errorMessages)!=null&&R.length?Nt(l.errorMessages).concat(i.value).slice(0,Math.max(0,+l.maxErrors)):i.value}),s=E.computed(()=>{let R=(l.validateOn??(u==null?void 0:u.validateOn.value))||"input";R==="lazy"&&(R="input lazy");const F=new Set((R==null?void 0:R.split(" "))??[]);return{blur:F.has("blur")||F.has("input"),input:F.has("input"),submit:F.has("submit"),lazy:F.has("lazy")}}),a=E.computed(()=>{var R;return l.error||(R=l.errorMessages)!=null&&R.length?!1:l.rules.length?o.value?i.value.length||s.value.lazy?null:!0:!i.value.length:!0}),f=E.shallowRef(!1),h=E.computed(()=>({[`${A}--error`]:a.value===!1,[`${A}--dirty`]:r.value,[`${A}--disabled`]:t.value,[`${A}--readonly`]:n.value})),d=kt("validation"),b=E.computed(()=>l.name??E.unref(e));E.onBeforeMount(()=>{u==null||u.register({id:b.value,vm:d,validate:k,reset:m,resetValidation:x})}),E.onBeforeUnmount(()=>{u==null||u.unregister(b.value)}),E.onMounted(async()=>{s.value.lazy||await k(!0),u==null||u.update(b.value,a.value,c.value)}),vr(()=>s.value.input,()=>{E.watch(g,()=>{if(g.value!=null)k();else if(l.focused){const R=E.watch(()=>l.focused,F=>{F||k(),R()})}})}),vr(()=>s.value.blur,()=>{E.watch(()=>l.focused,R=>{R||k()})}),E.watch([a,c],()=>{u==null||u.update(b.value,a.value,c.value)});async function m(){p.value=null,await E.nextTick(),await x()}async function x(){o.value=!0,s.value.lazy?i.value=[]:await k(!0)}async function k(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const F=[];f.value=!0;for(const L of l.rules){if(F.length>=+(l.maxErrors??1))break;const D=await(typeof L=="function"?L:()=>L)(g.value);if(D!==!0){if(D!==!1&&typeof D!="string"){console.warn(`${D} is not a valid value. Rule functions must return boolean true or a string.`);continue}F.push(D||"")}}return i.value=F,f.value=!1,o.value=R,i.value}return{errorMessages:c,isDirty:r,isDisabled:t,isReadonly:n,isPristine:o,isValid:a,isValidating:f,reset:m,resetValidation:x,validate:k,validationClasses:h}}const io=ge({id:String,appendIcon:it,centerAffix:{type:Boolean,default:!0},prependIcon:it,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:l=>["horizontal","vertical"].includes(l)},"onClick:prepend":Ot(),"onClick:append":Ot(),...Qe(),...zt(),...Qo(Gt(),["maxWidth","minWidth","width"]),...xt(),...kc()},"VInput"),Ms=Oe()({name:"VInput",props:{...io()},emits:{"update:modelValue":l=>!0},setup(l,A){let{attrs:e,slots:p,emit:g}=A;const{densityClasses:u}=Kt(l),{dimensionStyles:i}=Yt(l),{themeClasses:o}=Et(l),{rtlClasses:r}=fr(),{InputIcon:t}=eo(l),n=tr(),c=E.computed(()=>l.id||`input-${n}`),s=E.computed(()=>`${c.value}-messages`),{errorMessages:a,isDirty:f,isDisabled:h,isReadonly:d,isPristine:b,isValid:m,isValidating:x,reset:k,resetValidation:R,validate:F,validationClasses:L}=Cc(l,"v-input",c),j=E.computed(()=>({id:c,messagesId:s,isDirty:f,isDisabled:h,isReadonly:d,isPristine:b,isValid:m,isValidating:x,reset:k,resetValidation:R,validate:F})),D=E.computed(()=>{var z;return(z=l.errorMessages)!=null&&z.length||!b.value&&a.value.length?a.value:l.hint&&(l.persistentHint||l.focused)?l.hint:l.messages});return qe(()=>{var M,S,v,w;const z=!!(p.prepend||l.prependIcon),$=!!(p.append||l.appendIcon),V=D.value.length>0,T=!l.hideDetails||l.hideDetails==="auto"&&(V||!!p.details);return E.createVNode("div",{class:["v-input",`v-input--${l.direction}`,{"v-input--center-affix":l.centerAffix,"v-input--hide-spin-buttons":l.hideSpinButtons},u.value,o.value,r.value,L.value,l.class],style:[i.value,l.style]},[z&&E.createVNode("div",{key:"prepend",class:"v-input__prepend"},[(M=p.prepend)==null?void 0:M.call(p,j.value),l.prependIcon&&E.createVNode(t,{key:"prepend-icon",name:"prepend"},null)]),p.default&&E.createVNode("div",{class:"v-input__control"},[(S=p.default)==null?void 0:S.call(p,j.value)]),$&&E.createVNode("div",{key:"append",class:"v-input__append"},[l.appendIcon&&E.createVNode(t,{key:"append-icon",name:"append"},null),(v=p.append)==null?void 0:v.call(p,j.value)]),T&&E.createVNode("div",{class:"v-input__details"},[E.createVNode(xc,{id:s.value,active:V,messages:D.value},{message:p.message}),(w=p.details)==null?void 0:w.call(p,j.value)])])}),{reset:k,resetValidation:R,validate:F,isValid:m,errorMessages:a}}});function Tc(l){let{selectedElement:A,containerElement:e,isRtl:p,isHorizontal:g}=l;const u=Hr(g,e),i=so(g,p,e),o=Hr(g,A),r=ao(g,A),t=o*.4;return i>r?r-t:i+u<r+o?r-u+o+t:i}function Ec(l){let{selectedElement:A,containerElement:e,isHorizontal:p}=l;const g=Hr(p,e),u=ao(p,A),i=Hr(p,A);return u-g/2+i/2}function Rs(l,A){const e=l?"scrollWidth":"scrollHeight";return(A==null?void 0:A[e])||0}function Ac(l,A){const e=l?"clientWidth":"clientHeight";return(A==null?void 0:A[e])||0}function so(l,A,e){if(!e)return 0;const{scrollLeft:p,offsetWidth:g,scrollWidth:u}=e;return l?A?u-g+p:p:e.scrollTop}function Hr(l,A){const e=l?"offsetWidth":"offsetHeight";return(A==null?void 0:A[e])||0}function ao(l,A){const e=l?"offsetLeft":"offsetTop";return(A==null?void 0:A[e])||0}const Mc=Symbol.for("vuetify:v-slide-group"),oo=ge({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:Mc},nextIcon:{type:it,default:"$next"},prevIcon:{type:it,default:"$prev"},showArrows:{type:[Boolean,String],validator:l=>typeof l=="boolean"||["always","desktop","mobile"].includes(l)},...Qe(),...Dn({mobile:null}),..._t(),...xi({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),Ns=Oe()({name:"VSlideGroup",props:oo(),emits:{"update:modelValue":l=>!0},setup(l,A){let{slots:e}=A;const{isRtl:p}=fr(),{displayClasses:g,mobile:u}=_r(l),i=Si(l,l.symbol),o=E.shallowRef(!1),r=E.shallowRef(0),t=E.shallowRef(0),n=E.shallowRef(0),c=E.computed(()=>l.direction==="horizontal"),{resizeRef:s,contentRect:a}=Ar(),{resizeRef:f,contentRect:h}=Ar(),d=hc(),b=E.computed(()=>({container:s.el,duration:200,easing:"easeOutQuart"})),m=E.computed(()=>i.selected.value.length?i.items.value.findIndex(C=>C.id===i.selected.value[0]):-1),x=E.computed(()=>i.selected.value.length?i.items.value.findIndex(C=>C.id===i.selected.value[i.selected.value.length-1]):-1);if(Rt){let C=-1;E.watch(()=>[i.selected.value,a.value,h.value,c.value],()=>{cancelAnimationFrame(C),C=requestAnimationFrame(()=>{if(a.value&&h.value){const I=c.value?"width":"height";t.value=a.value[I],n.value=h.value[I],o.value=t.value+1<n.value}if(m.value>=0&&f.el){const I=f.el.children[x.value];R(I,l.centerActive)}})})}const k=E.shallowRef(!1);function R(C,I){let P=0;I?P=Ec({containerElement:s.el,isHorizontal:c.value,selectedElement:C}):P=Tc({containerElement:s.el,isHorizontal:c.value,isRtl:p.value,selectedElement:C}),F(P)}function F(C){if(!Rt||!s.el)return;const I=Hr(c.value,s.el),P=so(c.value,p.value,s.el);if(!(Rs(c.value,s.el)<=I||Math.abs(C-P)<16)){if(c.value&&p.value&&s.el){const{scrollWidth:W,offsetWidth:K}=s.el;C=W-K-C}c.value?d.horizontal(C,b.value):d(C,b.value)}}function L(C){const{scrollTop:I,scrollLeft:P}=C.target;r.value=c.value?P:I}function j(C){if(k.value=!0,!(!o.value||!f.el)){for(const I of C.composedPath())for(const P of f.el.children)if(P===I){R(P);return}}}function D(C){k.value=!1}let z=!1;function $(C){var I;!z&&!k.value&&!(C.relatedTarget&&((I=f.el)!=null&&I.contains(C.relatedTarget)))&&M(),z=!1}function V(){z=!0}function T(C){if(!f.el)return;function I(P){C.preventDefault(),M(P)}c.value?C.key==="ArrowRight"?I(p.value?"prev":"next"):C.key==="ArrowLeft"&&I(p.value?"next":"prev"):C.key==="ArrowDown"?I("next"):C.key==="ArrowUp"&&I("prev"),C.key==="Home"?I("first"):C.key==="End"&&I("last")}function M(C){var P,H;if(!f.el)return;let I;if(!C)I=Vr(f.el)[0];else if(C==="next"){if(I=(P=f.el.querySelector(":focus"))==null?void 0:P.nextElementSibling,!I)return M("first")}else if(C==="prev"){if(I=(H=f.el.querySelector(":focus"))==null?void 0:H.previousElementSibling,!I)return M("last")}else C==="first"?I=f.el.firstElementChild:C==="last"&&(I=f.el.lastElementChild);I&&I.focus({preventScroll:!0})}function S(C){const I=c.value&&p.value?-1:1,P=(C==="prev"?-I:I)*t.value;let H=r.value+P;if(c.value&&p.value&&s.el){const{scrollWidth:W,offsetWidth:K}=s.el;H+=W-K}F(H)}const v=E.computed(()=>({next:i.next,prev:i.prev,select:i.select,isSelected:i.isSelected})),w=E.computed(()=>{switch(l.showArrows){case"always":return!0;case"desktop":return!u.value;case!0:return o.value||Math.abs(r.value)>0;case"mobile":return u.value||o.value||Math.abs(r.value)>0;default:return!u.value&&(o.value||Math.abs(r.value)>0)}}),y=E.computed(()=>Math.abs(r.value)>1),_=E.computed(()=>{if(!s.value)return!1;const C=Rs(c.value,s.el),I=Ac(c.value,s.el);return C-I-Math.abs(r.value)>1});return qe(()=>E.createVNode(l.tag,{class:["v-slide-group",{"v-slide-group--vertical":!c.value,"v-slide-group--has-affixes":w.value,"v-slide-group--is-overflowing":o.value},g.value,l.class],style:l.style,tabindex:k.value||i.selected.value.length?-1:0,onFocus:$},{default:()=>{var C,I,P;return[w.value&&E.createVNode("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!y.value}],onMousedown:V,onClick:()=>y.value&&S("prev")},[((C=e.prev)==null?void 0:C.call(e,v.value))??E.createVNode(vs,null,{default:()=>[E.createVNode(St,{icon:p.value?l.nextIcon:l.prevIcon},null)]})]),E.createVNode("div",{key:"container",ref:s,class:"v-slide-group__container",onScroll:L},[E.createVNode("div",{ref:f,class:"v-slide-group__content",onFocusin:j,onFocusout:D,onKeydown:T},[(I=e.default)==null?void 0:I.call(e,v.value)])]),w.value&&E.createVNode("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!_.value}],onMousedown:V,onClick:()=>_.value&&S("next")},[((P=e.next)==null?void 0:P.call(e,v.value))??E.createVNode(vs,null,{default:()=>[E.createVNode(St,{icon:p.value?l.prevIcon:l.nextIcon},null)]})])]}})),{selected:i.selected,scrollTo:S,scrollOffset:r,focus:M}}}),lo=Symbol.for("vuetify:v-chip-group"),Rc=ge({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:ur},...oo(),...Qe(),...xi({selectedClass:"v-chip--selected"}),..._t(),...xt(),...nr({variant:"tonal"})},"VChipGroup"),Nc=Oe()({name:"VChipGroup",props:Rc(),emits:{"update:modelValue":l=>!0},setup(l,A){let{slots:e}=A;const{themeClasses:p}=Et(l),{isSelected:g,select:u,next:i,prev:o,selected:r}=Si(l,lo);return Qt({VChip:{color:E.toRef(l,"color"),disabled:E.toRef(l,"disabled"),filter:E.toRef(l,"filter"),variant:E.toRef(l,"variant")}}),qe(()=>{const t=Ns.filterProps(l);return E.createVNode(Ns,E.mergeProps(t,{class:["v-chip-group",{"v-chip-group--column":l.column},p.value,l.class],style:l.style}),{default:()=>{var n;return[(n=e.default)==null?void 0:n.call(e,{isSelected:g,select:u,next:i,prev:o,selected:r.value})]}})}),{}}}),Oc=ge({activeClass:String,appendAvatar:String,appendIcon:it,closable:Boolean,closeIcon:{type:it,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:it,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:Ot(),onClickOnce:Ot(),...cr(),...Qe(),...zt(),...rr(),...fa(),...$t(),...Bn(),...Or(),..._t({tag:"span"}),...xt(),...nr({variant:"tonal"})},"VChip"),ji=Oe()({name:"VChip",directives:{Ripple:Yr},props:Oc(),emits:{"click:close":l=>!0,"update:modelValue":l=>!0,"group:selected":l=>!0,click:l=>!0},setup(l,A){let{attrs:e,emit:p,slots:g}=A;const{t:u}=ir(),{borderClasses:i}=wr(l),{colorClasses:o,colorStyles:r,variantClasses:t}=Kr(l),{densityClasses:n}=Kt(l),{elevationClasses:c}=dr(l),{roundedClasses:s}=qt(l),{sizeClasses:a}=Gr(l),{themeClasses:f}=Et(l),h=vt(l,"modelValue"),d=ha(l,lo,!1),b=jn(l,e),m=E.computed(()=>l.link!==!1&&b.isLink.value),x=E.computed(()=>!l.disabled&&l.link!==!1&&(!!d||l.link||b.isClickable.value)),k=E.computed(()=>({"aria-label":u(l.closeLabel),onClick(L){L.preventDefault(),L.stopPropagation(),h.value=!1,p("click:close",L)}}));function R(L){var j;p("click",L),x.value&&((j=b.navigate)==null||j.call(b,L),d==null||d.toggle())}function F(L){(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),R(L))}return()=>{const L=b.isLink.value?"a":l.tag,j=!!(l.appendIcon||l.appendAvatar),D=!!(j||g.append),z=!!(g.close||l.closable),$=!!(g.filter||l.filter)&&d,V=!!(l.prependIcon||l.prependAvatar),T=!!(V||g.prepend),M=!d||d.isSelected.value;return h.value&&E.withDirectives(E.createVNode(L,{class:["v-chip",{"v-chip--disabled":l.disabled,"v-chip--label":l.label,"v-chip--link":x.value,"v-chip--filter":$,"v-chip--pill":l.pill},f.value,i.value,M?o.value:void 0,n.value,c.value,s.value,a.value,t.value,d==null?void 0:d.selectedClass.value,l.class],style:[M?r.value:void 0,l.style],disabled:l.disabled||void 0,draggable:l.draggable,href:b.href.value,tabindex:x.value?0:void 0,onClick:R,onKeydown:x.value&&!m.value&&F},{default:()=>{var S;return[Xr(x.value,"v-chip"),$&&E.createVNode(Ma,{key:"filter"},{default:()=>[E.withDirectives(E.createVNode("div",{class:"v-chip__filter"},[g.filter?E.createVNode(Mt,{key:"filter-defaults",disabled:!l.filterIcon,defaults:{VIcon:{icon:l.filterIcon}}},g.filter):E.createVNode(St,{key:"filter-icon",icon:l.filterIcon},null)]),[[E.vShow,d.isSelected.value]])]}),T&&E.createVNode("div",{key:"prepend",class:"v-chip__prepend"},[g.prepend?E.createVNode(Mt,{key:"prepend-defaults",disabled:!V,defaults:{VAvatar:{image:l.prependAvatar,start:!0},VIcon:{icon:l.prependIcon,start:!0}}},g.prepend):E.createVNode(E.Fragment,null,[l.prependIcon&&E.createVNode(St,{key:"prepend-icon",icon:l.prependIcon,start:!0},null),l.prependAvatar&&E.createVNode(yr,{key:"prepend-avatar",image:l.prependAvatar,start:!0},null)])]),E.createVNode("div",{class:"v-chip__content","data-no-activator":""},[((S=g.default)==null?void 0:S.call(g,{isSelected:d==null?void 0:d.isSelected.value,selectedClass:d==null?void 0:d.selectedClass.value,select:d==null?void 0:d.select,toggle:d==null?void 0:d.toggle,value:d==null?void 0:d.value.value,disabled:l.disabled}))??l.text]),D&&E.createVNode("div",{key:"append",class:"v-chip__append"},[g.append?E.createVNode(Mt,{key:"append-defaults",disabled:!j,defaults:{VAvatar:{end:!0,image:l.appendAvatar},VIcon:{end:!0,icon:l.appendIcon}}},g.append):E.createVNode(E.Fragment,null,[l.appendIcon&&E.createVNode(St,{key:"append-icon",end:!0,icon:l.appendIcon},null),l.appendAvatar&&E.createVNode(yr,{key:"append-avatar",end:!0,image:l.appendAvatar},null)])]),z&&E.createVNode("button",E.mergeProps({key:"close",class:"v-chip__close",type:"button"},k.value),[g.close?E.createVNode(Mt,{key:"close-defaults",defaults:{VIcon:{icon:l.closeIcon,size:"x-small"}}},g.close):E.createVNode(St,{key:"close-icon",icon:l.closeIcon,size:"x-small"},null)])]}}),[[E.resolveDirective("ripple"),x.value&&l.ripple,null]])}}}),Ic=ge({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...Qe(),...Zr({transition:{component:Aa}})},"VCounter"),Pc=Oe()({name:"VCounter",functional:!0,props:Ic(),setup(l,A){let{slots:e}=A;const p=E.computed(()=>l.max?`${l.value} / ${l.max}`:String(l.value));return qe(()=>E.createVNode(lr,{transition:l.transition},{default:()=>[E.withDirectives(E.createVNode("div",{class:["v-counter",{"text-error":l.max&&!l.disabled&&parseFloat(l.value)>parseFloat(l.max)},l.class],style:l.style},[e.default?e.default({counter:p.value,max:l.max,value:l.value}):p.value]),[[E.vShow,l.active]])]})),{}}}),jc=ge({floating:Boolean,...Qe()},"VFieldLabel"),dn=Oe()({name:"VFieldLabel",props:jc(),setup(l,A){let{slots:e}=A;return qe(()=>E.createVNode(Ya,{class:["v-field-label",{"v-field-label--floating":l.floating},l.class],style:l.style,"aria-hidden":l.floating||void 0},e)),{}}}),Bc=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],uo=ge({appendInnerIcon:it,bgColor:String,clearable:Boolean,clearIcon:{type:it,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:it,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:l=>Bc.includes(l)},"onClick:clear":Ot(),"onClick:appendInner":Ot(),"onClick:prependInner":Ot(),...Qe(),...In(),...$t(),...xt()},"VField"),co=Oe()({name:"VField",inheritAttrs:!1,props:{id:String,...to(),...uo()},emits:{"update:focused":l=>!0,"update:modelValue":l=>!0},setup(l,A){let{attrs:e,emit:p,slots:g}=A;const{themeClasses:u}=Et(l),{loaderClasses:i}=Pn(l),{focusClasses:o,isFocused:r,focus:t,blur:n}=ro(l),{InputIcon:c}=eo(l),{roundedClasses:s}=qt(l),{rtlClasses:a}=fr(),f=E.computed(()=>l.dirty||l.active),h=E.computed(()=>!l.singleLine&&!!(l.label||g.label)),d=tr(),b=E.computed(()=>l.id||`input-${d}`),m=E.computed(()=>`${b.value}-messages`),x=E.ref(),k=E.ref(),R=E.ref(),F=E.computed(()=>["plain","underlined"].includes(l.variant)),{backgroundColorClasses:L,backgroundColorStyles:j}=Wt(E.toRef(l,"bgColor")),{textColorClasses:D,textColorStyles:z}=er(E.computed(()=>l.error||l.disabled?void 0:f.value&&r.value?l.color:l.baseColor));E.watch(f,M=>{if(h.value){const S=x.value.$el,v=k.value.$el;requestAnimationFrame(()=>{const w=vi(S),y=v.getBoundingClientRect(),_=y.x-w.x,C=y.y-w.y-(w.height/2-y.height/2),I=y.width/.75,P=Math.abs(I-w.width)>1?{maxWidth:He(I)}:void 0,H=getComputedStyle(S),W=getComputedStyle(v),K=parseFloat(H.transitionDuration)*1e3||150,B=parseFloat(W.getPropertyValue("--v-field-label-scale")),q=W.getPropertyValue("color");S.style.visibility="visible",v.style.visibility="hidden",Er(S,{transform:`translate(${_}px, ${C}px) scale(${B})`,color:q,...P},{duration:K,easing:wn,direction:M?"normal":"reverse"}).finished.then(()=>{S.style.removeProperty("visibility"),v.style.removeProperty("visibility")})})}},{flush:"post"});const $=E.computed(()=>({isActive:f,isFocused:r,controlRef:R,blur:n,focus:t}));function V(M){M.target!==document.activeElement&&M.preventDefault()}function T(M){var S;M.key!=="Enter"&&M.key!==" "||(M.preventDefault(),M.stopPropagation(),(S=l["onClick:clear"])==null||S.call(l,new MouseEvent("click")))}return qe(()=>{var _,C,I;const M=l.variant==="outlined",S=!!(g["prepend-inner"]||l.prependInnerIcon),v=!!(l.clearable||g.clear),w=!!(g["append-inner"]||l.appendInnerIcon||v),y=()=>g.label?g.label({...$.value,label:l.label,props:{for:b.value}}):l.label;return E.createVNode("div",E.mergeProps({class:["v-field",{"v-field--active":f.value,"v-field--appended":w,"v-field--center-affix":l.centerAffix??!F.value,"v-field--disabled":l.disabled,"v-field--dirty":l.dirty,"v-field--error":l.error,"v-field--flat":l.flat,"v-field--has-background":!!l.bgColor,"v-field--persistent-clear":l.persistentClear,"v-field--prepended":S,"v-field--reverse":l.reverse,"v-field--single-line":l.singleLine,"v-field--no-label":!y(),[`v-field--variant-${l.variant}`]:!0},u.value,L.value,o.value,i.value,s.value,a.value,l.class],style:[j.value,l.style],onClick:V},e),[E.createVNode("div",{class:"v-field__overlay"},null),E.createVNode(ki,{name:"v-field",active:!!l.loading,color:l.error?"error":typeof l.loading=="string"?l.loading:l.color},{default:g.loader}),S&&E.createVNode("div",{key:"prepend",class:"v-field__prepend-inner"},[l.prependInnerIcon&&E.createVNode(c,{key:"prepend-icon",name:"prependInner"},null),(_=g["prepend-inner"])==null?void 0:_.call(g,$.value)]),E.createVNode("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(l.variant)&&h.value&&E.createVNode(dn,{key:"floating-label",ref:k,class:[D.value],floating:!0,for:b.value,style:z.value},{default:()=>[y()]}),E.createVNode(dn,{ref:x,for:b.value},{default:()=>[y()]}),(C=g.default)==null?void 0:C.call(g,{...$.value,props:{id:b.value,class:"v-field__input","aria-describedby":m.value},focus:t,blur:n})]),v&&E.createVNode(Ma,{key:"clear"},{default:()=>[E.withDirectives(E.createVNode("div",{class:"v-field__clearable",onMousedown:P=>{P.preventDefault(),P.stopPropagation()}},[E.createVNode(Mt,{defaults:{VIcon:{icon:l.clearIcon}}},{default:()=>[g.clear?g.clear({...$.value,props:{onKeydown:T,onFocus:t,onBlur:n,onClick:l["onClick:clear"]}}):E.createVNode(c,{name:"clear",onKeydown:T,onFocus:t,onBlur:n},null)]})]),[[E.vShow,l.dirty]])]}),w&&E.createVNode("div",{key:"append",class:"v-field__append-inner"},[(I=g["append-inner"])==null?void 0:I.call(g,$.value),l.appendInnerIcon&&E.createVNode(c,{key:"append-icon",name:"appendInner"},null)]),E.createVNode("div",{class:["v-field__outline",D.value],style:z.value},[M&&E.createVNode(E.Fragment,null,[E.createVNode("div",{class:"v-field__outline__start"},null),h.value&&E.createVNode("div",{class:"v-field__outline__notch"},[E.createVNode(dn,{ref:k,floating:!0,for:b.value},{default:()=>[y()]})]),E.createVNode("div",{class:"v-field__outline__end"},null)]),F.value&&h.value&&E.createVNode(dn,{ref:k,floating:!0,for:b.value},{default:()=>[y()]})])])}),{controlRef:R}}});function Fc(l){const A=Object.keys(co.props).filter(e=>!Mn(e)&&e!=="class"&&e!=="style");return Ys(l,A)}const Dc=["color","file","time","date","datetime-local","week","month"],fo=ge({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...io(),...uo()},"VTextField"),Tn=Oe()({name:"VTextField",directives:{Intersect:Va},inheritAttrs:!1,props:fo(),emits:{"click:control":l=>!0,"mousedown:control":l=>!0,"update:focused":l=>!0,"update:modelValue":l=>!0},setup(l,A){let{attrs:e,emit:p,slots:g}=A;const u=vt(l,"modelValue"),{isFocused:i,focus:o,blur:r}=ro(l),t=E.computed(()=>typeof l.counterValue=="function"?l.counterValue(u.value):typeof l.counterValue=="number"?l.counterValue:(u.value??"").toString().length),n=E.computed(()=>{if(e.maxlength)return e.maxlength;if(!(!l.counter||typeof l.counter!="number"&&typeof l.counter!="string"))return l.counter}),c=E.computed(()=>["plain","underlined"].includes(l.variant));function s(F,L){var j,D;!l.autofocus||!F||(D=(j=L[0].target)==null?void 0:j.focus)==null||D.call(j)}const a=E.ref(),f=E.ref(),h=E.ref(),d=E.computed(()=>Dc.includes(l.type)||l.persistentPlaceholder||i.value||l.active);function b(){var F;h.value!==document.activeElement&&((F=h.value)==null||F.focus()),i.value||o()}function m(F){p("mousedown:control",F),F.target!==h.value&&(b(),F.preventDefault())}function x(F){b(),p("click:control",F)}function k(F){F.stopPropagation(),b(),E.nextTick(()=>{u.value=null,nl(l["onClick:clear"],F)})}function R(F){var j;const L=F.target;if(u.value=L.value,(j=l.modelModifiers)!=null&&j.trim&&["text","search","password","tel","url"].includes(l.type)){const D=[L.selectionStart,L.selectionEnd];E.nextTick(()=>{L.selectionStart=D[0],L.selectionEnd=D[1]})}}return qe(()=>{const F=!!(g.counter||l.counter!==!1&&l.counter!=null),L=!!(F||g.details),[j,D]=Js(e),{modelValue:z,...$}=Ms.filterProps(l),V=Fc(l);return E.createVNode(Ms,E.mergeProps({ref:a,modelValue:u.value,"onUpdate:modelValue":T=>u.value=T,class:["v-text-field",{"v-text-field--prefixed":l.prefix,"v-text-field--suffixed":l.suffix,"v-input--plain-underlined":c.value},l.class],style:l.style},j,$,{centerAffix:!c.value,focused:i.value}),{...g,default:T=>{let{id:M,isDisabled:S,isDirty:v,isReadonly:w,isValid:y}=T;return E.createVNode(co,E.mergeProps({ref:f,onMousedown:m,onClick:x,"onClick:clear":k,"onClick:prependInner":l["onClick:prependInner"],"onClick:appendInner":l["onClick:appendInner"],role:l.role},V,{id:M.value,active:d.value||v.value,dirty:v.value||l.dirty,disabled:S.value,focused:i.value,error:y.value===!1}),{...g,default:_=>{let{props:{class:C,...I}}=_;const P=E.withDirectives(E.createVNode("input",E.mergeProps({ref:h,value:u.value,onInput:R,autofocus:l.autofocus,readonly:w.value,disabled:S.value,name:l.name,placeholder:l.placeholder,size:1,type:l.type,onFocus:b,onBlur:r},I,D),null),[[E.resolveDirective("intersect"),{handler:s},null,{once:!0}]]);return E.createVNode(E.Fragment,null,[l.prefix&&E.createVNode("span",{class:"v-text-field__prefix"},[E.createVNode("span",{class:"v-text-field__prefix__text"},[l.prefix])]),g.default?E.createVNode("div",{class:C,"data-no-activator":""},[g.default(),P]):E.cloneVNode(P,{class:C}),l.suffix&&E.createVNode("span",{class:"v-text-field__suffix"},[E.createVNode("span",{class:"v-text-field__suffix__text"},[l.suffix])])])}})},details:L?T=>{var M;return E.createVNode(E.Fragment,null,[(M=g.details)==null?void 0:M.call(g,T),F&&E.createVNode(E.Fragment,null,[E.createVNode("span",null,null),E.createVNode(Pc,{active:l.persistentCounter||i.value,value:t.value,max:n.value,disabled:l.disabled},g.counter)])])}:void 0})}),Vn({},a,f,h)}}),Vc=ge({renderless:Boolean,...Qe()},"VVirtualScrollItem"),Lc=Oe()({name:"VVirtualScrollItem",inheritAttrs:!1,props:Vc(),emits:{"update:height":l=>!0},setup(l,A){let{attrs:e,emit:p,slots:g}=A;const{resizeRef:u,contentRect:i}=Ar(void 0,"border");E.watch(()=>{var o;return(o=i.value)==null?void 0:o.height},o=>{o!=null&&p("update:height",o)}),qe(()=>{var o,r;return l.renderless?E.createVNode(E.Fragment,null,[(o=g.default)==null?void 0:o.call(g,{itemRef:u})]):E.createVNode("div",E.mergeProps({ref:u,class:["v-virtual-scroll__item",l.class],style:l.style},e),[(r=g.default)==null?void 0:r.call(g)])})}}),zc=-1,$c=1,ri=100,Uc=ge({itemHeight:{type:[Number,String],default:null},height:[Number,String]},"virtual");function Hc(l,A){const e=_r(),p=E.shallowRef(0);E.watchEffect(()=>{p.value=parseFloat(l.itemHeight||0)});const g=E.shallowRef(0),u=E.shallowRef(Math.ceil((parseInt(l.height)||e.height.value)/(p.value||16))||1),i=E.shallowRef(0),o=E.shallowRef(0),r=E.ref(),t=E.ref();let n=0;const{resizeRef:c,contentRect:s}=Ar();E.watchEffect(()=>{c.value=r.value});const a=E.computed(()=>{var _;return r.value===document.documentElement?e.height.value:((_=s.value)==null?void 0:_.height)||parseInt(l.height)||0}),f=E.computed(()=>!!(r.value&&t.value&&a.value&&p.value));let h=Array.from({length:A.value.length}),d=Array.from({length:A.value.length});const b=E.shallowRef(0);let m=-1;function x(_){return h[_]||p.value}const k=tl(()=>{const _=performance.now();d[0]=0;const C=A.value.length;for(let I=1;I<=C-1;I++)d[I]=(d[I-1]||0)+x(I-1);b.value=Math.max(b.value,performance.now()-_)},b),R=E.watch(f,_=>{_&&(R(),n=t.value.offsetTop,k.immediate(),S(),~m&&E.nextTick(()=>{Rt&&window.requestAnimationFrame(()=>{w(m),m=-1})}))});E.onScopeDispose(()=>{k.clear()});function F(_,C){const I=h[_],P=p.value;p.value=P?Math.min(p.value,C):C,(I!==C||P!==p.value)&&(h[_]=C,k())}function L(_){return _=Ht(_,0,A.value.length-1),d[_]||0}function j(_){return Wc(d,_)}let D=0,z=0,$=0;E.watch(a,(_,C)=>{C&&(S(),_<C&&requestAnimationFrame(()=>{z=0,S()}))});function V(){if(!r.value||!t.value)return;const _=r.value.scrollTop,C=performance.now();C-$>500?(z=Math.sign(_-D),n=t.value.offsetTop):z=_-D,D=_,$=C,S()}function T(){!r.value||!t.value||(z=0,$=0,S())}let M=-1;function S(){cancelAnimationFrame(M),M=requestAnimationFrame(v)}function v(){if(!r.value||!a.value)return;const _=D-n,C=Math.sign(z),I=Math.max(0,_-ri),P=Ht(j(I),0,A.value.length),H=_+a.value+ri,W=Ht(j(H)+1,P+1,A.value.length);if((C!==zc||P<g.value)&&(C!==$c||W>u.value)){const K=L(g.value)-L(P),B=L(W)-L(u.value);Math.max(K,B)>ri?(g.value=P,u.value=W):(P<=0&&(g.value=P),W>=A.value.length&&(u.value=W))}i.value=L(g.value),o.value=L(A.value.length)-L(u.value)}function w(_){const C=L(_);!r.value||_&&!C?m=_:r.value.scrollTop=C}const y=E.computed(()=>A.value.slice(g.value,u.value).map((_,C)=>({raw:_,index:C+g.value})));return E.watch(A,()=>{h=Array.from({length:A.value.length}),d=Array.from({length:A.value.length}),k.immediate(),S()},{deep:!0}),{containerRef:r,markerRef:t,computedItems:y,paddingTop:i,paddingBottom:o,scrollToIndex:w,handleScroll:V,handleScrollend:T,handleItemResize:F}}function Wc(l,A){let e=l.length-1,p=0,g=0,u=null,i=-1;if(l[e]<A)return e;for(;p<=e;)if(g=p+e>>1,u=l[g],u>A)e=g-1;else if(u<A)i=g,p=g+1;else return u===A?g:p;return i}const qc=ge({items:{type:Array,default:()=>[]},renderless:Boolean,...Uc(),...Qe(),...Gt()},"VVirtualScroll"),Xc=Oe()({name:"VVirtualScroll",props:qc(),setup(l,A){let{slots:e}=A;const p=kt("VVirtualScroll"),{dimensionStyles:g}=Yt(l),{containerRef:u,markerRef:i,handleScroll:o,handleScrollend:r,handleItemResize:t,scrollToIndex:n,paddingTop:c,paddingBottom:s,computedItems:a}=Hc(l,E.toRef(l,"items"));return vr(()=>l.renderless,()=>{function f(){var b,m;const d=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";u.value===document.documentElement?(document[d]("scroll",o,{passive:!0}),document[d]("scrollend",r)):((b=u.value)==null||b[d]("scroll",o,{passive:!0}),(m=u.value)==null||m[d]("scrollend",r))}E.onMounted(()=>{u.value=ca(p.vnode.el,!0),f(!0)}),E.onScopeDispose(f)}),qe(()=>{const f=a.value.map(h=>E.createVNode(Lc,{key:h.index,renderless:l.renderless,"onUpdate:height":d=>t(h.index,d)},{default:d=>{var b;return(b=e.default)==null?void 0:b.call(e,{item:h.raw,index:h.index,...d})}}));return l.renderless?E.createVNode(E.Fragment,null,[E.createVNode("div",{ref:i,class:"v-virtual-scroll__spacer",style:{paddingTop:He(c.value)}},null),f,E.createVNode("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:He(s.value)}},null)]):E.createVNode("div",{ref:u,class:["v-virtual-scroll",l.class],onScrollPassive:o,onScrollend:r,style:[g.value,l.style]},[E.createVNode("div",{ref:i,class:"v-virtual-scroll__container",style:{paddingTop:He(c.value),paddingBottom:He(s.value)}},[f])])}),{scrollToIndex:n}}});function Kc(l,A){const e=E.shallowRef(!1);let p;function g(o){cancelAnimationFrame(p),e.value=!0,p=requestAnimationFrame(()=>{p=requestAnimationFrame(()=>{e.value=!1})})}async function u(){await new Promise(o=>requestAnimationFrame(o)),await new Promise(o=>requestAnimationFrame(o)),await new Promise(o=>requestAnimationFrame(o)),await new Promise(o=>{if(e.value){const r=E.watch(e,()=>{r(),o()})}else o()})}async function i(o){var n,c;if(o.key==="Tab"&&((n=A.value)==null||n.focus()),!["PageDown","PageUp","Home","End"].includes(o.key))return;const r=(c=l.value)==null?void 0:c.$el;if(!r)return;(o.key==="Home"||o.key==="End")&&r.scrollTo({top:o.key==="Home"?0:r.scrollHeight,behavior:"smooth"}),await u();const t=r.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(o.key==="PageDown"||o.key==="Home"){const s=r.getBoundingClientRect().top;for(const a of t)if(a.getBoundingClientRect().top>=s){a.focus();break}}else{const s=r.getBoundingClientRect().bottom;for(const a of[...t].reverse())if(a.getBoundingClientRect().bottom<=s){a.focus();break}}}return{onListScroll:g,onListKeydown:i}}const Gc=ge({chips:Boolean,closableChips:Boolean,closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"},eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:it,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,...$a({itemChildren:!1})},"Select"),Yc=ge({...Gc(),...Nr(fo({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...Zr({transition:{component:Ei}})},"VSelect"),ho=Oe()({name:"VSelect",props:Yc(),emits:{"update:focused":l=>!0,"update:modelValue":l=>!0,"update:menu":l=>!0},setup(l,A){let{slots:e}=A;const{t:p}=ir(),g=E.ref(),u=E.ref(),i=E.ref(),o=vt(l,"menu"),r=E.computed({get:()=>o.value,set:y=>{var _;o.value&&!y&&((_=u.value)!=null&&_.ΨopenChildren)||(o.value=y)}}),{items:t,transformIn:n,transformOut:c}=Ru(l),s=vt(l,"modelValue",[],y=>n(y===null?[null]:Nt(y)),y=>{const _=c(y);return l.multiple?_:_[0]??null}),a=E.computed(()=>typeof l.counterValue=="function"?l.counterValue(s.value):typeof l.counterValue=="number"?l.counterValue:s.value.length),f=no(),h=E.computed(()=>s.value.map(y=>y.value)),d=E.shallowRef(!1),b=E.computed(()=>r.value?l.closeText:l.openText);let m="",x;const k=E.computed(()=>l.hideSelected?t.value.filter(y=>!s.value.some(_=>l.valueComparator(_,y))):t.value),R=E.computed(()=>l.hideNoData&&!k.value.length||l.readonly||(f==null?void 0:f.isReadonly.value)),F=E.computed(()=>{var y;return{...l.menuProps,activatorProps:{...((y=l.menuProps)==null?void 0:y.activatorProps)||{},"aria-haspopup":"listbox"}}}),L=E.ref(),{onListScroll:j,onListKeydown:D}=Kc(L,g);function z(y){l.openOnClear&&(r.value=!0)}function $(){R.value||(r.value=!r.value)}function V(y){var H,W;if(!y.key||l.readonly||f!=null&&f.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(y.key)&&y.preventDefault(),["Enter","ArrowDown"," "].includes(y.key)&&(r.value=!0),["Escape","Tab"].includes(y.key)&&(r.value=!1),y.key==="Home"?(H=L.value)==null||H.focus("first"):y.key==="End"&&((W=L.value)==null||W.focus("last"));const _=1e3;function C(K){const B=K.key.length===1,q=!K.ctrlKey&&!K.metaKey&&!K.altKey;return B&&q}if(l.multiple||!C(y))return;const I=performance.now();I-x>_&&(m=""),m+=y.key.toLowerCase(),x=I;const P=t.value.find(K=>K.title.toLowerCase().startsWith(m));if(P!==void 0){s.value=[P];const K=k.value.indexOf(P);Rt&&window.requestAnimationFrame(()=>{var B;K>=0&&((B=i.value)==null||B.scrollToIndex(K))})}}function T(y){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!y.props.disabled)if(l.multiple){const C=s.value.findIndex(P=>l.valueComparator(P.value,y.value)),I=_??!~C;if(~C){const P=I?[...s.value,y]:[...s.value];P.splice(C,1),s.value=P}else I&&(s.value=[...s.value,y])}else{const C=_!==!1;s.value=C?[y]:[],E.nextTick(()=>{r.value=!1})}}function M(y){var _;(_=L.value)!=null&&_.$el.contains(y.relatedTarget)||(r.value=!1)}function S(){var y;d.value&&((y=g.value)==null||y.focus())}function v(y){d.value=!0}function w(y){if(y==null)s.value=[];else if(vn(g.value,":autofill")||vn(g.value,":-webkit-autofill")){const _=t.value.find(C=>C.title===y);_&&T(_)}else g.value&&(g.value.value="")}return E.watch(r,()=>{if(!l.hideSelected&&r.value&&s.value.length){const y=k.value.findIndex(_=>s.value.some(C=>l.valueComparator(C.value,_.value)));Rt&&window.requestAnimationFrame(()=>{var _;y>=0&&((_=i.value)==null||_.scrollToIndex(y))})}}),E.watch(()=>l.items,(y,_)=>{r.value||d.value&&!_.length&&y.length&&(r.value=!0)}),qe(()=>{const y=!!(l.chips||e.chip),_=!!(!l.hideNoData||k.value.length||e["prepend-item"]||e["append-item"]||e["no-data"]),C=s.value.length>0,I=Tn.filterProps(l),P=C||!d.value&&l.label&&!l.persistentPlaceholder?void 0:l.placeholder;return E.createVNode(Tn,E.mergeProps({ref:g},I,{modelValue:s.value.map(H=>H.props.value).join(", "),"onUpdate:modelValue":w,focused:d.value,"onUpdate:focused":H=>d.value=H,validationValue:s.externalValue,counterValue:a.value,dirty:C,class:["v-select",{"v-select--active-menu":r.value,"v-select--chips":!!l.chips,[`v-select--${l.multiple?"multiple":"single"}`]:!0,"v-select--selected":s.value.length,"v-select--selection-slot":!!e.selection},l.class],style:l.style,inputmode:"none",placeholder:P,"onClick:clear":z,"onMousedown:control":$,onBlur:M,onKeydown:V,"aria-label":p(b.value),title:p(b.value)}),{...e,default:()=>E.createVNode(E.Fragment,null,[E.createVNode(Ii,E.mergeProps({ref:u,modelValue:r.value,"onUpdate:modelValue":H=>r.value=H,activator:"parent",contentClass:"v-select__content",disabled:R.value,eager:l.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:l.transition,onAfterLeave:S},F.value),{default:()=>[_&&E.createVNode(Ri,E.mergeProps({ref:L,selected:h.value,selectStrategy:l.multiple?"independent":"single-independent",onMousedown:H=>H.preventDefault(),onKeydown:D,onFocusin:v,onScrollPassive:j,tabindex:"-1","aria-live":"polite",color:l.itemColor??l.color},l.listProps),{default:()=>{var H,W,K;return[(H=e["prepend-item"])==null?void 0:H.call(e),!k.value.length&&!l.hideNoData&&(((W=e["no-data"])==null?void 0:W.call(e))??E.createVNode(Mr,{title:p(l.noDataText)},null)),E.createVNode(Xc,{ref:i,renderless:!0,items:k.value},{default:B=>{var X;let{item:q,index:O,itemRef:N}=B;const U=E.mergeProps(q.props,{ref:N,key:O,onClick:()=>T(q,null)});return((X=e.item)==null?void 0:X.call(e,{item:q,index:O,props:U}))??E.createVNode(Mr,E.mergeProps(U,{role:"option"}),{prepend:Z=>{let{isSelected:G}=Z;return E.createVNode(E.Fragment,null,[l.multiple&&!l.hideSelected?E.createVNode(Ln,{key:q.value,modelValue:G,ripple:!1,tabindex:"-1"},null):void 0,q.props.prependAvatar&&E.createVNode(yr,{image:q.props.prependAvatar},null),q.props.prependIcon&&E.createVNode(St,{icon:q.props.prependIcon},null)])}})}}),(K=e["append-item"])==null?void 0:K.call(e)]}})]}),s.value.map((H,W)=>{function K(N){N.stopPropagation(),N.preventDefault(),T(H,!1)}const B={"onClick:close":K,onKeydown(N){N.key!=="Enter"&&N.key!==" "||(N.preventDefault(),N.stopPropagation(),K(N))},onMousedown(N){N.preventDefault(),N.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},q=y?!!e.chip:!!e.selection,O=q?ra(y?e.chip({item:H,index:W,props:B}):e.selection({item:H,index:W})):void 0;if(!(q&&!O))return E.createVNode("div",{key:H.value,class:"v-select__selection"},[y?e.chip?E.createVNode(Mt,{key:"chip-defaults",defaults:{VChip:{closable:l.closableChips,size:"small",text:H.title}}},{default:()=>[O]}):E.createVNode(ji,E.mergeProps({key:"chip",closable:l.closableChips,size:"small",text:H.title,disabled:H.props.disabled},B),null):O??E.createVNode("span",{class:"v-select__selection-text"},[H.title,l.multiple&&W<s.value.length-1&&E.createVNode("span",{class:"v-select__selection-comma"},[E.createTextVNode(",")])])])})]),"append-inner":function(){var B;for(var H=arguments.length,W=new Array(H),K=0;K<H;K++)W[K]=arguments[K];return E.createVNode(E.Fragment,null,[(B=e["append-inner"])==null?void 0:B.call(e,...W),l.menuIcon?E.createVNode(St,{class:"v-select__menu-icon",icon:l.menuIcon},null):void 0])}})}),Vn({isFocused:d,menu:r,select:T},g)}}),Zc=ge({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),po=Symbol.for("vuetify:data-table-pagination");function Jc(l){const A=vt(l,"page",void 0,p=>+(p??1)),e=vt(l,"itemsPerPage",void 0,p=>+(p??10));return{page:A,itemsPerPage:e}}function Qc(l){const{page:A,itemsPerPage:e,itemsLength:p}=l,g=E.computed(()=>e.value===-1?0:e.value*(A.value-1)),u=E.computed(()=>e.value===-1?p.value:Math.min(p.value,g.value+e.value)),i=E.computed(()=>e.value===-1||p.value===0?1:Math.ceil(p.value/e.value));E.watchEffect(()=>{A.value>i.value&&(A.value=i.value)});function o(s){e.value=s,A.value=1}function r(){A.value=Ht(A.value+1,1,i.value)}function t(){A.value=Ht(A.value-1,1,i.value)}function n(s){A.value=Ht(s,1,i.value)}const c={page:A,itemsPerPage:e,startIndex:g,stopIndex:u,pageCount:i,itemsLength:p,nextPage:r,prevPage:t,setPage:n,setItemsPerPage:o};return E.provide(po,c),c}function ed(){const l=E.inject(po);if(!l)throw new Error("Missing pagination!");return l}function td(l){const A=kt("usePaginatedItems"),{items:e,startIndex:p,stopIndex:g,itemsPerPage:u}=l,i=E.computed(()=>u.value<=0?e.value:e.value.slice(p.value,g.value));return E.watch(i,o=>{A.emit("update:currentItems",o)}),{paginatedItems:i}}const mo=ge({prevIcon:{type:String,default:"$prev"},nextIcon:{type:String,default:"$next"},firstIcon:{type:String,default:"$first"},lastIcon:{type:String,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),Os=Oe()({name:"VDataTableFooter",props:mo(),setup(l,A){let{slots:e}=A;const{t:p}=ir(),{page:g,pageCount:u,startIndex:i,stopIndex:o,itemsLength:r,itemsPerPage:t,setItemsPerPage:n}=ed(),c=E.computed(()=>l.itemsPerPageOptions.map(s=>typeof s=="number"?{value:s,title:s===-1?p("$vuetify.dataFooter.itemsPerPageAll"):String(s)}:{...s,title:isNaN(Number(s.title))?p(s.title):s.title}));return qe(()=>{var a;const s=Es.filterProps(l);return E.createVNode("div",{class:"v-data-table-footer"},[(a=e.prepend)==null?void 0:a.call(e),E.createVNode("div",{class:"v-data-table-footer__items-per-page"},[E.createVNode("span",null,[p(l.itemsPerPageText)]),E.createVNode(ho,{items:c.value,modelValue:t.value,"onUpdate:modelValue":f=>n(Number(f)),density:"compact",variant:"outlined","hide-details":!0},null)]),E.createVNode("div",{class:"v-data-table-footer__info"},[E.createVNode("div",null,[p(l.pageText,r.value?i.value+1:0,o.value,r.value)])]),E.createVNode("div",{class:"v-data-table-footer__pagination"},[E.createVNode(Es,E.mergeProps({modelValue:g.value,"onUpdate:modelValue":f=>g.value=f,density:"comfortable","first-aria-label":l.firstPageLabel,"last-aria-label":l.lastPageLabel,length:u.value,"next-aria-label":l.nextPageLabel,"previous-aria-label":l.prevPageLabel,rounded:!0,"show-first-last-page":!0,"total-visible":l.showCurrentPage?1:0,variant:"plain"},s),null)])])}),{}}}),En=Cl({align:{type:String,default:"start"},fixed:Boolean,fixedOffset:[Number,String],height:[Number,String],lastFixed:Boolean,noPadding:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(l,A)=>{let{slots:e}=A;const p=l.tag??"td";return E.createVNode(p,{class:["v-data-table__td",{"v-data-table-column--fixed":l.fixed,"v-data-table-column--last-fixed":l.lastFixed,"v-data-table-column--no-padding":l.noPadding,"v-data-table-column--nowrap":l.nowrap},`v-data-table-column--align-${l.align}`],style:{height:He(l.height),width:He(l.width),maxWidth:He(l.maxWidth),left:He(l.fixedOffset||null)}},{default:()=>{var g;return[(g=e.default)==null?void 0:g.call(e)]}})}),rd=ge({headers:Array},"DataTable-header"),go=Symbol.for("vuetify:data-table-headers"),bo={title:"",sortable:!1},nd={...bo,width:48};function id(){const A=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(e=>({element:e,priority:0}));return{enqueue:(e,p)=>{let g=!1;for(let u=0;u<A.length;u++)if(A[u].priority>p){A.splice(u,0,{element:e,priority:p}),g=!0;break}g||A.push({element:e,priority:p})},size:()=>A.length,count:()=>{let e=0;if(!A.length)return 0;const p=Math.floor(A[0].priority);for(let g=0;g<A.length;g++)Math.floor(A[g].priority)===p&&(e+=1);return e},dequeue:()=>A.shift()}}function pi(l){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!l.children)A.push(l);else for(const e of l.children)pi(e,A);return A}function vo(l){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const e of l)e.key&&A.add(e.key),e.children&&vo(e.children,A);return A}function sd(l){if(l.key){if(l.key==="data-table-group")return bo;if(["data-table-expand","data-table-select"].includes(l.key))return nd}}function Bi(l){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return l.children?Math.max(A,...l.children.map(e=>Bi(e,A+1))):A}function ad(l){let A=!1;function e(u){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(u)if(i&&(u.fixed=!0),u.fixed)if(u.children)for(let o=u.children.length-1;o>=0;o--)e(u.children[o],!0);else A?isNaN(+u.width)&&sa(`Multiple fixed columns should have a static width (key: ${u.key})`):u.lastFixed=!0,A=!0;else if(u.children)for(let o=u.children.length-1;o>=0;o--)e(u.children[o]);else A=!1}for(let u=l.length-1;u>=0;u--)e(l[u]);function p(u){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!u)return i;if(u.children){u.fixedOffset=i;for(const o of u.children)i=p(o,i)}else u.fixed&&(u.fixedOffset=i,i+=parseFloat(u.width||"0")||0);return i}let g=0;for(const u of l)g=p(u,g)}function od(l,A){const e=[];let p=0;const g=id(l);for(;g.size()>0;){let i=g.count();const o=[];let r=1;for(;i>0;){const{element:t,priority:n}=g.dequeue(),c=A-p-Bi(t);if(o.push({...t,rowspan:c??1,colspan:t.children?pi(t).length:1}),t.children)for(const s of t.children){const a=n%1+r/Math.pow(10,p+2);g.enqueue(s,p+c+a)}r+=1,i-=1}p+=1,e.push(o)}return{columns:l.map(i=>pi(i)).flat(),headers:e}}function yo(l){const A=[];for(const e of l){const p={...sd(e),...e},g=p.key??(typeof p.value=="string"?p.value:null),u=p.value??g??null,i={...p,key:g,value:u,sortable:p.sortable??(p.key!=null||!!p.sort),children:p.children?yo(p.children):void 0};A.push(i)}return A}function ld(l,A){const e=E.ref([]),p=E.ref([]),g=E.ref({}),u=E.ref({}),i=E.ref({});E.watchEffect(()=>{var h,d,b;const t=(l.headers||Object.keys(l.items[0]??{}).map(m=>({key:m,title:E.capitalize(m)}))).slice(),n=vo(t);(h=A==null?void 0:A.groupBy)!=null&&h.value.length&&!n.has("data-table-group")&&t.unshift({key:"data-table-group",title:"Group"}),(d=A==null?void 0:A.showSelect)!=null&&d.value&&!n.has("data-table-select")&&t.unshift({key:"data-table-select"}),(b=A==null?void 0:A.showExpand)!=null&&b.value&&!n.has("data-table-expand")&&t.push({key:"data-table-expand"});const c=yo(t);ad(c);const s=Math.max(...c.map(m=>Bi(m)))+1,a=od(c,s);e.value=a.headers,p.value=a.columns;const f=a.headers.flat(1);for(const m of f)m.key&&(m.sortable&&(m.sort&&(g.value[m.key]=m.sort),m.sortRaw&&(u.value[m.key]=m.sortRaw)),m.filter&&(i.value[m.key]=m.filter))});const o={headers:e,columns:p,sortFunctions:g,sortRawFunctions:u,filterFunctions:i};return E.provide(go,o),o}function zn(){const l=E.inject(go);if(!l)throw new Error("Missing headers!");return l}const ud={showSelectAll:!1,allSelected:()=>[],select:l=>{var p;let{items:A,value:e}=l;return new Set(e?[(p=A[0])==null?void 0:p.value]:[])},selectAll:l=>{let{selected:A}=l;return A}},wo={showSelectAll:!0,allSelected:l=>{let{currentPage:A}=l;return A},select:l=>{let{items:A,value:e,selected:p}=l;for(const g of A)e?p.add(g.value):p.delete(g.value);return p},selectAll:l=>{let{value:A,currentPage:e,selected:p}=l;return wo.select({items:e,value:A,selected:p})}},_o={showSelectAll:!0,allSelected:l=>{let{allItems:A}=l;return A},select:l=>{let{items:A,value:e,selected:p}=l;for(const g of A)e?p.add(g.value):p.delete(g.value);return p},selectAll:l=>{let{value:A,allItems:e,selected:p}=l;return _o.select({items:e,value:A,selected:p})}},cd=ge({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:ur}},"DataTable-select"),xo=Symbol.for("vuetify:data-table-selection");function dd(l,A){let{allItems:e,currentPage:p}=A;const g=vt(l,"modelValue",l.modelValue,b=>new Set(Nt(b).map(m=>{var x;return((x=e.value.find(k=>l.valueComparator(m,k.value)))==null?void 0:x.value)??m})),b=>[...b.values()]),u=E.computed(()=>e.value.filter(b=>b.selectable)),i=E.computed(()=>p.value.filter(b=>b.selectable)),o=E.computed(()=>{if(typeof l.selectStrategy=="object")return l.selectStrategy;switch(l.selectStrategy){case"single":return ud;case"all":return _o;case"page":default:return wo}});function r(b){return Nt(b).every(m=>g.value.has(m.value))}function t(b){return Nt(b).some(m=>g.value.has(m.value))}function n(b,m){const x=o.value.select({items:b,value:m,selected:new Set(g.value)});g.value=x}function c(b){n([b],!r([b]))}function s(b){const m=o.value.selectAll({value:b,allItems:u.value,currentPage:i.value,selected:new Set(g.value)});g.value=m}const a=E.computed(()=>g.value.size>0),f=E.computed(()=>{const b=o.value.allSelected({allItems:u.value,currentPage:i.value});return!!b.length&&r(b)}),h=E.computed(()=>o.value.showSelectAll),d={toggleSelect:c,select:n,selectAll:s,isSelected:r,isSomeSelected:t,someSelected:a,allSelected:f,showSelectAll:h};return E.provide(xo,d),d}function $n(){const l=E.inject(xo);if(!l)throw new Error("Missing selection!");return l}const fd=ge({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),So=Symbol.for("vuetify:data-table-sort");function hd(l){const A=vt(l,"sortBy"),e=E.toRef(l,"mustSort"),p=E.toRef(l,"multiSort");return{sortBy:A,mustSort:e,multiSort:p}}function pd(l){const{sortBy:A,mustSort:e,multiSort:p,page:g}=l,u=r=>{if(r.key==null)return;let t=A.value.map(c=>({...c}))??[];const n=t.find(c=>c.key===r.key);n?n.order==="desc"?e.value?n.order="asc":t=t.filter(c=>c.key!==r.key):n.order="desc":p.value?t=[...t,{key:r.key,order:"asc"}]:t=[{key:r.key,order:"asc"}],A.value=t,g&&(g.value=1)};function i(r){return!!A.value.find(t=>t.key===r.key)}const o={sortBy:A,toggleSort:u,isSorted:i};return E.provide(So,o),o}function ko(){const l=E.inject(So);if(!l)throw new Error("Missing sort!");return l}function md(l,A,e,p){const g=ir();return{sortedItems:E.computed(()=>{var i,o;return!e.value.length||l.disableSort?A.value:gd(A.value,e.value,g.current.value,{transform:p==null?void 0:p.transform,sortFunctions:{...l.customKeySort,...(i=p==null?void 0:p.sortFunctions)==null?void 0:i.value},sortRawFunctions:(o=p==null?void 0:p.sortRawFunctions)==null?void 0:o.value})})}}function gd(l,A,e,p){const g=new Intl.Collator(e,{sensitivity:"accent",usage:"sort"});return l.map(i=>[i,p!=null&&p.transform?p.transform(i):i]).sort((i,o)=>{var r,t;for(let n=0;n<A.length;n++){let c=!1;const s=A[n].key,a=A[n].order??"asc";if(a===!1)continue;let f=i[1][s],h=o[1][s],d=i[0].raw,b=o[0].raw;if(a==="desc"&&([f,h]=[h,f],[d,b]=[b,d]),(r=p==null?void 0:p.sortRawFunctions)!=null&&r[s]){const m=p.sortRawFunctions[s](d,b);if(m==null)continue;if(c=!0,m)return m}if((t=p==null?void 0:p.sortFunctions)!=null&&t[s]){const m=p.sortFunctions[s](f,h);if(m==null)continue;if(c=!0,m)return m}if(!c){if(f instanceof Date&&h instanceof Date)return f.getTime()-h.getTime();if([f,h]=[f,h].map(m=>m!=null?m.toString().toLocaleLowerCase():m),f!==h)return ln(f)&&ln(h)?0:ln(f)?-1:ln(h)?1:!isNaN(f)&&!isNaN(h)?Number(f)-Number(h):g.compare(f,h)}}return 0}).map(i=>{let[o]=i;return o})}const Co=ge({color:String,sticky:Boolean,disableSort:Boolean,multiSort:Boolean,sortAscIcon:{type:it,default:"$sortAsc"},sortDescIcon:{type:it,default:"$sortDesc"},headerProps:{type:Object},...Dn(),...In()},"VDataTableHeaders"),Is=Oe()({name:"VDataTableHeaders",props:Co(),setup(l,A){let{slots:e}=A;const{t:p}=ir(),{toggleSort:g,sortBy:u,isSorted:i}=ko(),{someSelected:o,allSelected:r,selectAll:t,showSelectAll:n}=$n(),{columns:c,headers:s}=zn(),{loaderClasses:a}=Pn(l);function f(j,D){if(!(!l.sticky&&!j.fixed))return{position:"sticky",left:j.fixed?He(j.fixedOffset):void 0,top:l.sticky?`calc(var(--v-table-header-height) * ${D})`:void 0}}function h(j){const D=u.value.find(z=>z.key===j.key);return D?D.order==="asc"?l.sortAscIcon:l.sortDescIcon:l.sortAscIcon}const{backgroundColorClasses:d,backgroundColorStyles:b}=Wt(l,"color"),{displayClasses:m,mobile:x}=_r(l),k=E.computed(()=>({headers:s.value,columns:c.value,toggleSort:g,isSorted:i,sortBy:u.value,someSelected:o.value,allSelected:r.value,selectAll:t,getSortIcon:h})),R=E.computed(()=>["v-data-table__th",{"v-data-table__th--sticky":l.sticky},m.value,a.value]),F=j=>{let{column:D,x:z,y:$}=j;const V=D.key==="data-table-select"||D.key==="data-table-expand",T=E.mergeProps(l.headerProps??{},D.headerProps??{});return E.createVNode(En,E.mergeProps({tag:"th",align:D.align,class:[{"v-data-table__th--sortable":D.sortable&&!l.disableSort,"v-data-table__th--sorted":i(D),"v-data-table__th--fixed":D.fixed},...R.value],style:{width:He(D.width),minWidth:He(D.minWidth),maxWidth:He(D.maxWidth),...f(D,$)},colspan:D.colspan,rowspan:D.rowspan,onClick:D.sortable?()=>g(D):void 0,fixed:D.fixed,nowrap:D.nowrap,lastFixed:D.lastFixed,noPadding:V},T),{default:()=>{var v;const M=`header.${D.key}`,S={column:D,selectAll:t,isSorted:i,toggleSort:g,sortBy:u.value,someSelected:o.value,allSelected:r.value,getSortIcon:h};return e[M]?e[M](S):D.key==="data-table-select"?((v=e["header.data-table-select"])==null?void 0:v.call(e,S))??(n.value&&E.createVNode(Ln,{modelValue:r.value,indeterminate:o.value&&!r.value,"onUpdate:modelValue":t},null)):E.createVNode("div",{class:"v-data-table-header__content"},[E.createVNode("span",null,[D.title]),D.sortable&&!l.disableSort&&E.createVNode(St,{key:"icon",class:"v-data-table-header__sort-icon",icon:h(D)},null),l.multiSort&&i(D)&&E.createVNode("div",{key:"badge",class:["v-data-table-header__sort-badge",...d.value],style:b.value},[u.value.findIndex(w=>w.key===D.key)+1])])}})},L=()=>{const j=E.mergeProps(l.headerProps??{}??{}),D=E.computed(()=>c.value.filter($=>($==null?void 0:$.sortable)&&!l.disableSort)),z=E.computed(()=>{if(c.value.find(V=>V.key==="data-table-select")!=null)return r.value?"$checkboxOn":o.value?"$checkboxIndeterminate":"$checkboxOff"});return E.createVNode(En,E.mergeProps({tag:"th",class:[...R.value],colspan:s.value.length+1},j),{default:()=>[E.createVNode("div",{class:"v-data-table-header__content"},[E.createVNode(ho,{chips:!0,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:D.value,label:p("$vuetify.dataTable.sortBy"),multiple:l.multiSort,variant:"underlined","onClick:clear":()=>u.value=[],appendIcon:z.value,"onClick:append":()=>t(!r.value)},{...e,chip:$=>{var V;return E.createVNode(ji,{onClick:(V=$.item.raw)!=null&&V.sortable?()=>g($.item.raw):void 0,onMousedown:T=>{T.preventDefault(),T.stopPropagation()}},{default:()=>[$.item.title,E.createVNode(St,{class:["v-data-table__td-sort-icon",i($.item.raw)&&"v-data-table__td-sort-icon-active"],icon:h($.item.raw),size:"small"},null)]})}})])]})};qe(()=>x.value?E.createVNode("tr",null,[E.createVNode(L,null,null)]):E.createVNode(E.Fragment,null,[e.headers?e.headers(k.value):s.value.map((j,D)=>E.createVNode("tr",null,[j.map((z,$)=>E.createVNode(F,{column:z,x:$,y:D},null))])),l.loading&&E.createVNode("tr",{class:"v-data-table-progress"},[E.createVNode("th",{colspan:c.value.length},[E.createVNode(ki,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof l.loading=="boolean"?void 0:l.loading,indeterminate:!0},{default:e.loader})])])]))}}),bd=ge({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),To=Symbol.for("vuetify:data-table-group");function vd(l){return{groupBy:vt(l,"groupBy")}}function yd(l){const{groupBy:A,sortBy:e}=l,p=E.ref(new Set),g=E.computed(()=>A.value.map(t=>({...t,order:t.order??!1})).concat(e.value));function u(t){return p.value.has(t.id)}function i(t){const n=new Set(p.value);u(t)?n.delete(t.id):n.add(t.id),p.value=n}function o(t){function n(c){const s=[];for(const a of c.items)"type"in a&&a.type==="group"?s.push(...n(a)):s.push(a);return s}return n({type:"group",items:t,id:"dummy",key:"dummy",value:"dummy",depth:0})}const r={sortByWithGroups:g,toggleGroup:i,opened:p,groupBy:A,extractRows:o,isGroupOpen:u};return E.provide(To,r),r}function Eo(){const l=E.inject(To);if(!l)throw new Error("Missing group!");return l}function wd(l,A){if(!l.length)return[];const e=new Map;for(const p of l){const g=gi(p.raw,A);e.has(g)||e.set(g,[]),e.get(g).push(p)}return e}function Ao(l,A){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!A.length)return[];const g=wd(l,A[0]),u=[],i=A.slice(1);return g.forEach((o,r)=>{const t=A[0],n=`${p}_${t}_${r}`;u.push({depth:e,id:n,key:t,value:r,items:i.length?Ao(o,i,e+1,n):o,type:"group"})}),u}function Mo(l,A){const e=[];for(const p of l)"type"in p&&p.type==="group"?(p.value!=null&&e.push(p),(A.has(p.id)||p.value==null)&&e.push(...Mo(p.items,A))):e.push(p);return e}function _d(l,A,e){return{flatItems:E.computed(()=>{if(!A.value.length)return l.value;const g=Ao(l.value,A.value.map(u=>u.key));return Mo(g,e.value)})}}const xd=ge({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),Sd=Oe()({name:"VDataTableGroupHeaderRow",props:xd(),setup(l,A){let{slots:e}=A;const{isGroupOpen:p,toggleGroup:g,extractRows:u}=Eo(),{isSelected:i,isSomeSelected:o,select:r}=$n(),{columns:t}=zn(),n=E.computed(()=>u([l.item]));return()=>E.createVNode("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":l.item.depth}},[t.value.map(c=>{var s,a;if(c.key==="data-table-group"){const f=p(l.item)?"$expand":"$next",h=()=>g(l.item);return((s=e["data-table-group"])==null?void 0:s.call(e,{item:l.item,count:n.value.length,props:{icon:f,onClick:h}}))??E.createVNode(En,{class:"v-data-table-group-header-row__column"},{default:()=>[E.createVNode(Bt,{size:"small",variant:"text",icon:f,onClick:h},null),E.createVNode("span",null,[l.item.value]),E.createVNode("span",null,[E.createTextVNode("("),n.value.length,E.createTextVNode(")")])]})}if(c.key==="data-table-select"){const f=i(n.value),h=o(n.value)&&!f,d=b=>r(n.value,b);return((a=e["data-table-select"])==null?void 0:a.call(e,{props:{modelValue:f,indeterminate:h,"onUpdate:modelValue":d}}))??E.createVNode("td",null,[E.createVNode(Ln,{modelValue:f,indeterminate:h,"onUpdate:modelValue":d},null)])}return E.createVNode("td",null,null)})])}}),kd=ge({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),Ro=Symbol.for("vuetify:datatable:expanded");function Cd(l){const A=E.toRef(l,"expandOnClick"),e=vt(l,"expanded",l.expanded,o=>new Set(o),o=>[...o.values()]);function p(o,r){const t=new Set(e.value);r?t.add(o.value):t.delete(o.value),e.value=t}function g(o){return e.value.has(o.value)}function u(o){p(o,!g(o))}const i={expand:p,expanded:e,expandOnClick:A,isExpanded:g,toggleExpand:u};return E.provide(Ro,i),i}function No(){const l=E.inject(Ro);if(!l)throw new Error("foo");return l}const Td=ge({index:Number,item:Object,cellProps:[Object,Function],onClick:Ot(),onContextmenu:Ot(),onDblclick:Ot(),...Dn()},"VDataTableRow"),Ed=Oe()({name:"VDataTableRow",props:Td(),setup(l,A){let{slots:e}=A;const{displayClasses:p,mobile:g}=_r(l,"v-data-table__tr"),{isSelected:u,toggleSelect:i,someSelected:o,allSelected:r,selectAll:t}=$n(),{isExpanded:n,toggleExpand:c}=No(),{toggleSort:s,sortBy:a,isSorted:f}=ko(),{columns:h}=zn();qe(()=>E.createVNode("tr",{class:["v-data-table__tr",{"v-data-table__tr--clickable":!!(l.onClick||l.onContextmenu||l.onDblclick)},p.value],onClick:l.onClick,onContextmenu:l.onContextmenu,onDblclick:l.onDblclick},[l.item&&h.value.map((d,b)=>{const m=l.item,x=`item.${d.key}`,k=`header.${d.key}`,R={index:l.index,item:m.raw,internalItem:m,value:gi(m.columns,d.key),column:d,isSelected:u,toggleSelect:i,isExpanded:n,toggleExpand:c},F={column:d,selectAll:t,isSorted:f,toggleSort:s,sortBy:a.value,someSelected:o.value,allSelected:r.value,getSortIcon:()=>""},L=typeof l.cellProps=="function"?l.cellProps({index:R.index,item:R.item,internalItem:R.internalItem,value:R.value,column:d}):l.cellProps,j=typeof d.cellProps=="function"?d.cellProps({index:R.index,item:R.item,internalItem:R.internalItem,value:R.value}):d.cellProps;return E.createVNode(En,E.mergeProps({align:d.align,class:{"v-data-table__td--expanded-row":d.key==="data-table-expand","v-data-table__td--select-row":d.key==="data-table-select"},fixed:d.fixed,fixedOffset:d.fixedOffset,lastFixed:d.lastFixed,maxWidth:g.value?void 0:d.maxWidth,noPadding:d.key==="data-table-select"||d.key==="data-table-expand",nowrap:d.nowrap,width:g.value?void 0:d.width},L,j),{default:()=>{var z,$,V,T,M;if(e[x]&&!g.value)return(z=e[x])==null?void 0:z.call(e,R);if(d.key==="data-table-select")return(($=e["item.data-table-select"])==null?void 0:$.call(e,R))??E.createVNode(Ln,{disabled:!m.selectable,modelValue:u([m]),onClick:E.withModifiers(()=>i(m),["stop"])},null);if(d.key==="data-table-expand")return((V=e["item.data-table-expand"])==null?void 0:V.call(e,R))??E.createVNode(Bt,{icon:n(m)?"$collapse":"$expand",size:"small",variant:"text",onClick:E.withModifiers(()=>c(m),["stop"])},null);const D=E.toDisplayString(R.value);return g.value?E.createVNode(E.Fragment,null,[E.createVNode("div",{class:"v-data-table__td-title"},[((T=e[k])==null?void 0:T.call(e,F))??d.title]),E.createVNode("div",{class:"v-data-table__td-value"},[((M=e[x])==null?void 0:M.call(e,R))??D])]):D}})})]))}}),Oo=ge({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...Dn()},"VDataTableRows"),Ps=Oe()({name:"VDataTableRows",inheritAttrs:!1,props:Oo(),setup(l,A){let{attrs:e,slots:p}=A;const{columns:g}=zn(),{expandOnClick:u,toggleExpand:i,isExpanded:o}=No(),{isSelected:r,toggleSelect:t}=$n(),{toggleGroup:n,isGroupOpen:c}=Eo(),{t:s}=ir(),{mobile:a}=_r(l);return qe(()=>{var f,h;return l.loading&&(!l.items.length||p.loading)?E.createVNode("tr",{class:"v-data-table-rows-loading",key:"loading"},[E.createVNode("td",{colspan:g.value.length},[((f=p.loading)==null?void 0:f.call(p))??s(l.loadingText)])]):!l.loading&&!l.items.length&&!l.hideNoData?E.createVNode("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[E.createVNode("td",{colspan:g.value.length},[((h=p["no-data"])==null?void 0:h.call(p))??s(l.noDataText)])]):E.createVNode(E.Fragment,null,[l.items.map((d,b)=>{var k;if(d.type==="group"){const R={index:b,item:d,columns:g.value,isExpanded:o,toggleExpand:i,isSelected:r,toggleSelect:t,toggleGroup:n,isGroupOpen:c};return p["group-header"]?p["group-header"](R):E.createVNode(Sd,E.mergeProps({key:`group-header_${d.id}`,item:d},us(e,":group-header",()=>R)),p)}const m={index:b,item:d.raw,internalItem:d,columns:g.value,isExpanded:o,toggleExpand:i,isSelected:r,toggleSelect:t},x={...m,props:E.mergeProps({key:`item_${d.key??d.index}`,onClick:u.value?()=>{i(d)}:void 0,index:b,item:d,cellProps:l.cellProps,mobile:a.value},us(e,":row",()=>m),typeof l.rowProps=="function"?l.rowProps({item:m.item,index:m.index,internalItem:m.internalItem}):l.rowProps)};return E.createVNode(E.Fragment,{key:x.props.key},[p.item?p.item(x):E.createVNode(Ed,x.props,p),o(d)&&((k=p["expanded-row"])==null?void 0:k.call(p,m))])})])}),{}}}),Io=ge({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...Qe(),...zt(),..._t(),...xt()},"VTable"),js=Oe()({name:"VTable",props:Io(),setup(l,A){let{slots:e,emit:p}=A;const{themeClasses:g}=Et(l),{densityClasses:u}=Kt(l);return qe(()=>E.createVNode(l.tag,{class:["v-table",{"v-table--fixed-height":!!l.height,"v-table--fixed-header":l.fixedHeader,"v-table--fixed-footer":l.fixedFooter,"v-table--has-top":!!e.top,"v-table--has-bottom":!!e.bottom,"v-table--hover":l.hover},g.value,u.value,l.class],style:l.style},{default:()=>{var i,o,r;return[(i=e.top)==null?void 0:i.call(e),e.default?E.createVNode("div",{class:"v-table__wrapper",style:{height:He(l.height)}},[E.createVNode("table",null,[e.default()])]):(o=e.wrapper)==null?void 0:o.call(e),(r=e.bottom)==null?void 0:r.call(e)]}})),{}}}),Ad=ge({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function Md(l,A,e,p){const g=l.returnObject?A:jt(A,l.itemValue),u=jt(A,l.itemSelectable,!0),i=p.reduce((o,r)=>(r.key!=null&&(o[r.key]=jt(A,r.value)),o),{});return{type:"item",key:l.returnObject?jt(A,l.itemValue):g,index:e,value:g,selectable:u,columns:i,raw:A}}function Rd(l,A,e){return A.map((p,g)=>Md(l,p,g,e))}function Nd(l,A){return{items:E.computed(()=>Rd(l,l.items,A.value))}}function Od(l){let{page:A,itemsPerPage:e,sortBy:p,groupBy:g,search:u}=l;const i=kt("VDataTable"),o=E.computed(()=>({page:A.value,itemsPerPage:e.value,sortBy:p.value,groupBy:g.value,search:u.value}));let r=null;E.watch(o,()=>{ur(r,o.value)||(r&&r.search!==o.value.search&&(A.value=1),i.emit("update:options",o.value),r=o.value)},{deep:!0,immediate:!0})}const Id=(l,A,e)=>l==null||A==null?-1:l.toString().toLocaleLowerCase().indexOf(A.toString().toLocaleLowerCase()),Pd=ge({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function jd(l,A,e){var o;const p=[],g=(e==null?void 0:e.default)??Id,u=e!=null&&e.filterKeys?Nt(e.filterKeys):!1,i=Object.keys((e==null?void 0:e.customKeyFilter)??{}).length;if(!(l!=null&&l.length))return p;e:for(let r=0;r<l.length;r++){const[t,n=t]=Nt(l[r]),c={},s={};let a=-1;if((A||i>0)&&!(e!=null&&e.noFilter)){if(typeof t=="object"){const d=u||Object.keys(n);for(const b of d){const m=jt(n,b),x=(o=e==null?void 0:e.customKeyFilter)==null?void 0:o[b];if(a=x?x(m,A,t):g(m,A,t),a!==-1&&a!==!1)x?c[b]=a:s[b]=a;else if((e==null?void 0:e.filterMode)==="every")continue e}}else a=g(t,A,t),a!==-1&&a!==!1&&(s.title=a);const f=Object.keys(s).length,h=Object.keys(c).length;if(!f&&!h||(e==null?void 0:e.filterMode)==="union"&&h!==i&&!f||(e==null?void 0:e.filterMode)==="intersection"&&(h!==i||!f))continue}p.push({index:r,matches:{...s,...c}})}return p}function Bd(l,A,e,p){const g=E.ref([]),u=E.ref(new Map),i=E.computed(()=>p!=null&&p.transform?E.unref(A).map(r=>[r,p.transform(r)]):E.unref(A));E.watchEffect(()=>{const r=typeof e=="function"?e():E.unref(e),t=typeof r!="string"&&typeof r!="number"?"":String(r),n=jd(i.value,t,{customKeyFilter:{...l.customKeyFilter,...E.unref(p==null?void 0:p.customKeyFilter)},default:l.customFilter,filterKeys:l.filterKeys,filterMode:l.filterMode,noFilter:l.noFilter}),c=E.unref(A),s=[],a=new Map;n.forEach(f=>{let{index:h,matches:d}=f;const b=c[h];s.push(b),a.set(b.value,d)}),g.value=s,u.value=a});function o(r){return u.value.get(r.value)}return{filteredItems:g,filteredMatches:u,getMatches:o}}const Fd=ge({...Oo(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...kd(),...bd(),...rd(),...Ad(),...cd(),...fd(),...Co(),...Io()},"DataTable"),Dd=ge({...Zc(),...Fd(),...Pd(),...mo()},"VDataTable"),Vd=Oe()({name:"VDataTable",props:Dd(),emits:{"update:modelValue":l=>!0,"update:page":l=>!0,"update:itemsPerPage":l=>!0,"update:sortBy":l=>!0,"update:options":l=>!0,"update:groupBy":l=>!0,"update:expanded":l=>!0,"update:currentItems":l=>!0},setup(l,A){let{attrs:e,slots:p}=A;const{groupBy:g}=vd(l),{sortBy:u,multiSort:i,mustSort:o}=hd(l),{page:r,itemsPerPage:t}=Jc(l),{columns:n,headers:c,sortFunctions:s,sortRawFunctions:a,filterFunctions:f}=ld(l,{groupBy:g,showSelect:E.toRef(l,"showSelect"),showExpand:E.toRef(l,"showExpand")}),{items:h}=Nd(l,n),d=E.toRef(l,"search"),{filteredItems:b}=Bd(l,h,d,{transform:B=>B.columns,customKeyFilter:f}),{toggleSort:m}=pd({sortBy:u,multiSort:i,mustSort:o,page:r}),{sortByWithGroups:x,opened:k,extractRows:R,isGroupOpen:F,toggleGroup:L}=yd({groupBy:g,sortBy:u}),{sortedItems:j}=md(l,b,x,{transform:B=>B.columns,sortFunctions:s,sortRawFunctions:a}),{flatItems:D}=_d(j,g,k),z=E.computed(()=>D.value.length),{startIndex:$,stopIndex:V,pageCount:T,setItemsPerPage:M}=Qc({page:r,itemsPerPage:t,itemsLength:z}),{paginatedItems:S}=td({items:D,startIndex:$,stopIndex:V,itemsPerPage:t}),v=E.computed(()=>R(S.value)),{isSelected:w,select:y,selectAll:_,toggleSelect:C,someSelected:I,allSelected:P}=dd(l,{allItems:h,currentPage:v}),{isExpanded:H,toggleExpand:W}=Cd(l);Od({page:r,itemsPerPage:t,sortBy:u,groupBy:g,search:d}),Qt({VDataTableRows:{hideNoData:E.toRef(l,"hideNoData"),noDataText:E.toRef(l,"noDataText"),loading:E.toRef(l,"loading"),loadingText:E.toRef(l,"loadingText")}});const K=E.computed(()=>({page:r.value,itemsPerPage:t.value,sortBy:u.value,pageCount:T.value,toggleSort:m,setItemsPerPage:M,someSelected:I.value,allSelected:P.value,isSelected:w,select:y,selectAll:_,toggleSelect:C,isExpanded:H,toggleExpand:W,isGroupOpen:F,toggleGroup:L,items:v.value.map(B=>B.raw),internalItems:v.value,groupedItems:S.value,columns:n.value,headers:c.value}));return qe(()=>{const B=Os.filterProps(l),q=Is.filterProps(l),O=Ps.filterProps(l),N=js.filterProps(l);return E.createVNode(js,E.mergeProps({class:["v-data-table",{"v-data-table--show-select":l.showSelect,"v-data-table--loading":l.loading},l.class],style:l.style},N),{top:()=>{var U;return(U=p.top)==null?void 0:U.call(p,K.value)},default:()=>{var U,X,Z,G,J,ne;return p.default?p.default(K.value):E.createVNode(E.Fragment,null,[(U=p.colgroup)==null?void 0:U.call(p,K.value),!l.hideDefaultHeader&&E.createVNode("thead",{key:"thead"},[E.createVNode(Is,q,p)]),(X=p.thead)==null?void 0:X.call(p,K.value),!l.hideDefaultBody&&E.createVNode("tbody",null,[(Z=p["body.prepend"])==null?void 0:Z.call(p,K.value),p.body?p.body(K.value):E.createVNode(Ps,E.mergeProps(e,O,{items:S.value}),p),(G=p["body.append"])==null?void 0:G.call(p,K.value)]),(J=p.tbody)==null?void 0:J.call(p,K.value),(ne=p.tfoot)==null?void 0:ne.call(p,K.value)])},bottom:()=>p.bottom?p.bottom(K.value):!l.hideDefaultFooter&&E.createVNode(E.Fragment,null,[E.createVNode(Sn,null,null),E.createVNode(Os,B,{prepend:p["footer.prepend"]})])})}),{}}}),Ld={actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, heading","card-avatar":"image, list-item-avatar",chip:"chip","date-picker":"list-item, heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",divider:"divider",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",ossein:"ossein",paragraph:"text@3",sentences:"text@2",subtitle:"text",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"chip, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"text@6","table-tfoot":"text@2, avatar@2",text:"text"};function zd(l){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return E.createVNode("div",{class:["v-skeleton-loader__bone",`v-skeleton-loader__${l}`]},[A])}function Bs(l){const[A,e]=l.split("@");return Array.from({length:e}).map(()=>Un(A))}function Un(l){let A=[];if(!l)return A;const e=Ld[l];if(l!==e){if(l.includes(","))return Fs(l);if(l.includes("@"))return Bs(l);e.includes(",")?A=Fs(e):e.includes("@")?A=Bs(e):e&&A.push(Un(e))}return[zd(l,A)]}function Fs(l){return l.replace(/\s/g,"").split(",").map(Un)}const $d=ge({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...Gt(),...rr(),...xt()},"VSkeletonLoader"),Ud=Oe()({name:"VSkeletonLoader",props:$d(),setup(l,A){let{slots:e}=A;const{backgroundColorClasses:p,backgroundColorStyles:g}=Wt(E.toRef(l,"color")),{dimensionStyles:u}=Yt(l),{elevationClasses:i}=dr(l),{themeClasses:o}=Et(l),{t:r}=ir(),t=E.computed(()=>Un(Nt(l.type).join(",")));return qe(()=>{var c;const n=!e.default||l.loading;return E.createVNode("div",{class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":l.boilerplate},o.value,p.value,i.value],style:[g.value,n?u.value:{}],"aria-busy":l.boilerplate?void 0:n,"aria-live":l.boilerplate?void 0:"polite","aria-label":l.boilerplate?void 0:r(l.loadingText),role:l.boilerplate?void 0:"alert"},[n?t.value:(c=e.default)==null?void 0:c.call(e)])}),{}}}),Hd=["innerHTML"],Wd={key:2},qd={key:3},Xd={__name:"Table",setup(l){const{searchState:A,advancedFiltersState:e}=An(),p={ActionButtons:uc},g=E.ref(!1),u=E.ref(null),i=n=>n.lock?null:`item.${n.key}`,o=E.inject("table_props"),r=E.computed(()=>{const n=e.value;let c=o.data;return n&&Object.keys(n).forEach(s=>{n[s]&&(c=c.filter(a=>typeof a[s]=="number"?a[s]==n[s]:(console.log("ssssss",a[s],a),a[s].toLowerCase().includes(n[s].toLowerCase()))))}),c}),t=E.computed(()=>o.headers.filter(n=>!(n!=null&&n.hidden)));return E.onMounted(()=>{setTimeout(()=>{console.log(u.value)},3e3)}),(n,c)=>(E.openBlock(),E.createBlock(Vd,E.mergeProps({ref_key:"table",ref:u,color:"primary","show-select":"",items:E.unref(r),headers:E.unref(t),loading:E.unref(g),search:E.unref(A)},E.unref(o).options),E.createSlots({loading:E.withCtx(()=>[E.createVNode(Ud,{type:"table-row@10"})]),_:2},[E.renderList(E.unref(o).headers,(s,a)=>({name:i(s),fn:E.withCtx(({item:f,internalItem:h,value:d,column:b})=>[E.createElementVNode("div",{class:E.normalizeClass(b.cellClass)},[b.cellRendererFramework?(E.openBlock(),E.createBlock(E.resolveDynamicComponent(typeof b.cellRendererFramework=="string"?p[b.cellRendererFramework]:b.cellRendererFramework),{key:0,params:{item:f,internalItem:h,value:d,column:b},cellRendererFrameworkParams:b.cellRendererFrameworkParams?b.cellRendererFrameworkParams({item:f,internalItem:h,value:d,column:b}):{}},null,8,["params","cellRendererFrameworkParams"])):b.cellRenderer?(E.openBlock(),E.createElementBlock("span",{key:1,innerHTML:b.cellRenderer({item:f,internalItem:h,value:d,column:b})},null,8,Hd)):b.valueFormatter?(E.openBlock(),E.createElementBlock("span",Wd,E.toDisplayString(b.valueFormatter({item:f,internalItem:h,value:d,column:b})),1)):(E.openBlock(),E.createElementBlock("span",qd,E.toDisplayString(String(d).length||String(d)==="0"?d:"-"),1))],2)])}))]),1040,["items","headers","loading","search"]))}};function Kd(){const l=E.inject("table_props"),A=E.computed(()=>l.headers.filter(p=>(p==null?void 0:p.printable)!==!1));return{exportExcel:()=>{const p=new Zo.Workbook,g=p.addWorksheet("Sheet 1");g.columns=A.value.map(u=>({header:u.title,key:u.key,width:u.width||25})),l.data.forEach(u=>{let i={};A.value.forEach(o=>{o.value?i[o.key]=o.value(u):i[o.key]=u[o.key]}),g.addRow(i)}),l.title??l.id,p.xlsx.writeBuffer().then(u=>{const i=new Blob([u],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});Jo.saveAs(i,`${l.id}.xlsx`)}).catch(u=>{console.error("Error creating Excel file",u)})}}}var Gd={fieldSeparator:",",decimalSeparator:".",quoteStrings:!0,quoteCharacter:'"',showTitle:!1,title:"My Generated Report",filename:"generated",showColumnHeaders:!0,useTextFile:!1,useBom:!0,columnHeaders:[],useKeysAsHeaders:!1,boolDisplay:{true:"TRUE",false:"FALSE"},replaceUndefinedWith:""},Yd=`\r
59
- `,Zd="\uFEFF",Hn=l=>Object.assign({},Gd,l);class Jd extends Error{constructor(A){super(A),this.name="CsvGenerationError"}}class Qd extends Error{constructor(A){super(A),this.name="EmptyHeadersError"}}class ef extends Error{constructor(A){super(A),this.name="CsvDownloadEnvironmentError"}}class tf extends Error{constructor(A){super(A),this.name="UnsupportedDataFormatError"}}var Ir=l=>l,Vt=l=>l,Dr=Ir,Wn=Ir,Rr=Ir,Ds=Ir,Vs=Ir,rf=function(l,A){return A=='"'&&l.indexOf('"')>-1?l.replace(/"/g,'""'):l},nf=l=>Ds(typeof l=="object"?l.key:l),sf=l=>Vs(typeof l=="object"?l.displayLabel:l),af=(l,...A)=>A.reduce((e,p)=>p(e),l),of=l=>A=>l.useBom?Wn(Vt(A)+Zd):A,lf=l=>A=>l.showTitle?Fi(Wn(Vt(A)+l.title))(Rr("")):A,Fi=l=>A=>Wn(Vt(l)+Vt(A)+Yd),Po=l=>(A,e)=>uf(l)(Rr(Vt(A)+Vt(e))),uf=l=>A=>Ir(Vt(A)+l.fieldSeparator),cf=(l,A)=>e=>{if(!l.showColumnHeaders)return e;if(A.length<1)throw new Qd("Option to show headers but none supplied. Make sure there are keys in your collection or that you've supplied headers through the config options.");let p=Rr("");for(let g=0;g<A.length;g++){const u=sf(A[g]);p=Po(l)(p,jo(l,Vt(u)))}return p=Rr(Vt(p).slice(0,-1)),Fi(e)(p)},df=(l,A,e)=>p=>{let g=p;for(var u=0;u<e.length;u++){let i=Rr("");for(let o=0;o<A.length;o++){const r=nf(A[o]),t=e[u][Vt(r)];i=Po(l)(i,jo(l,t))}i=Rr(Vt(i).slice(0,-1)),g=Fi(g)(i)}return g},ff=l=>+l===l&&(!isFinite(l)||!!(l%1)),hf=(l,A)=>{if(ff(A)){if(l.decimalSeparator==="locale")return Dr(A.toLocaleString());if(l.decimalSeparator)return Dr(A.toString().replace(".",l.decimalSeparator))}return Dr(A.toString())},mn=(l,A)=>{let e=A;return(l.quoteStrings||l.fieldSeparator&&A.indexOf(l.fieldSeparator)>-1||l.quoteCharacter&&A.indexOf(l.quoteCharacter)>-1||A.indexOf(`
60
- `)>-1||A.indexOf("\r")>-1)&&(e=l.quoteCharacter+rf(A,l.quoteCharacter)+l.quoteCharacter),Dr(e)},pf=(l,A)=>{const e=A?"true":"false";return Dr(l.boolDisplay[e])},mf=(l,A)=>typeof A>"u"&&l.replaceUndefinedWith!==void 0?mn(l,l.replaceUndefinedWith+""):A===null?mn(l,"null"):mn(l,""),jo=(l,A)=>{if(typeof A=="number")return hf(l,A);if(typeof A=="string")return mn(l,A);if(typeof A=="boolean"&&l.boolDisplay)return pf(l,A);if(A===null||typeof A>"u")return mf(l,A);throw new tf(`
61
- typeof ${typeof A} isn't supported. Only number, string, boolean, null and undefined are supported.
62
- Please convert the data in your object to one of those before generating the CSV.
63
- `)},gf=l=>A=>{const e=Hn(l),p=e.useKeysAsHeaders?Object.keys(A[0]):e.columnHeaders;let g=af(Wn(""),of(e),lf(e),cf(e,p),df(e,p,A));if(Vt(g).length<1)throw new Jd("Output is empty. Is your data formatted correctly?");return g},bf=l=>A=>{const e=Hn(l),p=Vt(A),g=e.useTextFile?"plain":"csv";return new Blob([p],{type:`text/${g};charset=utf8;`})},vf=l=>A=>{if(!window)throw new ef("Downloading only supported in a browser environment.");const e=bf(l)(A),p=Hn(l),g=p.useTextFile?"txt":"csv",u=`${p.filename}.${g}`,i=document.createElement("a");i.download=u,i.href=URL.createObjectURL(e),i.setAttribute("visibility","hidden"),document.body.appendChild(i),i.click(),document.body.removeChild(i)};function yf(){const l=E.inject("table_props"),A=E.computed(()=>l.headers.filter(g=>(g==null?void 0:g.printable)!==!1)),e=E.computed(()=>{const g=[];return l.data.forEach(u=>{let i={};A.value.forEach(o=>{o.value?i[o.key]=o.value(u):i[o.key]=u[o.key],g.push(i)})}),g});return{exportCsv:()=>{const g=Hn({columnHeaders:A.value.map(i=>({key:i.key,displayLabel:i.title}))}),u=gf(g)(e.value);vf(g)(u)}}}const wf={__name:"Options",setup(l){const{exportExcel:A}=Kd(),{exportCsv:e}=yf(),p=[{title:"Export Excel",onClick:A,prependIcon:"mdi-file-excel"},{title:"Export CSV",onClick:e,prependIcon:"mdi-file-delimited"}];return(g,u)=>(E.openBlock(),E.createBlock(Ii,null,{activator:E.withCtx(({props:i})=>[E.createVNode(Bt,E.mergeProps({icon:"mdi-dots-vertical",variant:"text"},i,{density:"comfortable"}),null,16)]),default:E.withCtx(()=>[E.createVNode(Ri,{class:"options-list"},{default:E.withCtx(()=>[(E.openBlock(),E.createElementBlock(E.Fragment,null,E.renderList(p,(i,o)=>E.createVNode(Mr,E.mergeProps({ref_for:!0},i,{key:o}),null,16)),64))]),_:1})]),_:1}))}},_f={__name:"RefreshTable",setup(l){const A=E.ref(!1),e=()=>{A.value=!0,setTimeout(()=>{A.value=!1},2e3)};return(p,g)=>(E.openBlock(),E.createBlock(Bt,{disabled:E.unref(A),icon:"mdi-refresh",text:"Refresh",variant:"text",density:"comfortable",onClick:e},null,8,["disabled"]))}};function Ls(l){return typeof l=="function"?l():E.unref(l)}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const zs=()=>{};function xf(l,A){function e(...p){return new Promise((g,u)=>{Promise.resolve(l(()=>A.apply(this,p),{fn:A,thisArg:this,args:p})).then(g).catch(u)})}return e}const Sf=l=>l();function kf(l,A={}){let e,p,g=zs;const u=o=>{clearTimeout(o),g(),g=zs};return o=>{const r=Ls(l),t=Ls(A.maxWait);return e&&u(e),r<=0||t!==void 0&&t<=0?(p&&(u(p),p=null),Promise.resolve(o())):new Promise((n,c)=>{g=A.rejectOnCancel?c:n,t&&!p&&(p=setTimeout(()=>{e&&u(e),p=null,n(o())},t)),e=setTimeout(()=>{p&&u(p),p=null,n(o())},r)})}}function Cf(l,A,e={}){const{eventFilter:p=Sf,...g}=e;return E.watch(l,xf(p,A),g)}function Tf(l,A,e={}){const{debounce:p=0,maxWait:g=void 0,...u}=e;return Cf(l,A,{...u,eventFilter:kf(p,{maxWait:g})})}const Ef={class:"w-100",style:{"max-width":"280px"}},Af={__name:"Search",setup(l){const A=Wr(),{searchState:e}=An(),{setData:p}=A,g=E.inject("table_props"),u=E.ref(null);return Tf(u,i=>{p({table_id:g.id,name:"search",value:{query:i}})},{debounce:1e3,maxWait:5e3}),E.onMounted(()=>{u.value=e.value}),(i,o)=>(E.openBlock(),E.createElementBlock("div",Ef,[E.createVNode(Tn,{modelValue:E.unref(u),"onUpdate:modelValue":o[0]||(o[0]=r=>E.isRef(u)?u.value=r:null),density:"comfortable",variant:"underlined",label:"search",clearable:"","hide-details":""},null,8,["modelValue"])]))}},Mf=ge({color:String,...cr(),...Qe(),...Gt(),...rr(),...Nn(),...Ci(),...$t(),..._t(),...xt()},"VSheet"),Rf=Oe()({name:"VSheet",props:Mf(),setup(l,A){let{slots:e}=A;const{themeClasses:p}=Et(l),{backgroundColorClasses:g,backgroundColorStyles:u}=Wt(E.toRef(l,"color")),{borderClasses:i}=wr(l),{dimensionStyles:o}=Yt(l),{elevationClasses:r}=dr(l),{locationStyles:t}=On(l),{positionClasses:n}=Ti(l),{roundedClasses:c}=qt(l);return qe(()=>E.createVNode(l.tag,{class:["v-sheet",p.value,g.value,i.value,r.value,n.value,c.value,l.class],style:[u.value,o.value,t.value,l.style]},e)),{}}}),Nf={__name:"Selected",props:{modelValue:{},modelModifiers:{}},emits:E.mergeModels("save",["update:modelValue"]),setup(l,{emit:A}){const{advancedFiltersState:e}=An(),p=E.inject("table_props"),g=E.useModel(l,"modelValue"),u=(r,t)=>`${p.headers.find(c=>c.key===t).title}: ${r}`,i=r=>{g.value[r]=null,o("save")},o=A;return(r,t)=>(E.openBlock(),E.createBlock(Rf,{class:"py-4 px-1"},{default:E.withCtx(()=>[E.createVNode(Nc,{"selected-class":"text-primary",multiple:""},{default:E.withCtx(()=>[(E.openBlock(!0),E.createElementBlock(E.Fragment,null,E.renderList(E.unref(e),(n,c)=>(E.openBlock(),E.createBlock(ji,{key:c,text:u(n,c),closable:"",value:n,active:"","onClick:close":s=>i(c)},null,8,["text","value","onClick:close"]))),128))]),_:1})]),_:1}))}},Bo=Oe()({name:"VCardActions",props:Qe(),setup(l,A){let{slots:e}=A;return Qt({VBtn:{slim:!0,variant:"text"}}),qe(()=>{var p;return E.createVNode("div",{class:["v-card-actions",l.class],style:l.style},[(p=e.default)==null?void 0:p.call(e)])}),{}}}),Of=ge({opacity:[Number,String],...Qe(),..._t()},"VCardSubtitle"),If=Oe()({name:"VCardSubtitle",props:Of(),setup(l,A){let{slots:e}=A;return qe(()=>E.createVNode(l.tag,{class:["v-card-subtitle",l.class],style:[{"--v-card-subtitle-opacity":l.opacity},l.style]},e)),{}}}),Di=la("v-card-title"),Pf=ge({appendAvatar:String,appendIcon:it,prependAvatar:String,prependIcon:it,subtitle:[String,Number],title:[String,Number],...Qe(),...zt()},"VCardItem"),jf=Oe()({name:"VCardItem",props:Pf(),setup(l,A){let{slots:e}=A;return qe(()=>{var t;const p=!!(l.prependAvatar||l.prependIcon),g=!!(p||e.prepend),u=!!(l.appendAvatar||l.appendIcon),i=!!(u||e.append),o=!!(l.title!=null||e.title),r=!!(l.subtitle!=null||e.subtitle);return E.createVNode("div",{class:["v-card-item",l.class],style:l.style},[g&&E.createVNode("div",{key:"prepend",class:"v-card-item__prepend"},[e.prepend?E.createVNode(Mt,{key:"prepend-defaults",disabled:!p,defaults:{VAvatar:{density:l.density,image:l.prependAvatar},VIcon:{density:l.density,icon:l.prependIcon}}},e.prepend):E.createVNode(E.Fragment,null,[l.prependAvatar&&E.createVNode(yr,{key:"prepend-avatar",density:l.density,image:l.prependAvatar},null),l.prependIcon&&E.createVNode(St,{key:"prepend-icon",density:l.density,icon:l.prependIcon},null)])]),E.createVNode("div",{class:"v-card-item__content"},[o&&E.createVNode(Di,{key:"title"},{default:()=>{var n;return[((n=e.title)==null?void 0:n.call(e))??l.title]}}),r&&E.createVNode(If,{key:"subtitle"},{default:()=>{var n;return[((n=e.subtitle)==null?void 0:n.call(e))??l.subtitle]}}),(t=e.default)==null?void 0:t.call(e)]),i&&E.createVNode("div",{key:"append",class:"v-card-item__append"},[e.append?E.createVNode(Mt,{key:"append-defaults",disabled:!u,defaults:{VAvatar:{density:l.density,image:l.appendAvatar},VIcon:{density:l.density,icon:l.appendIcon}}},e.append):E.createVNode(E.Fragment,null,[l.appendIcon&&E.createVNode(St,{key:"append-icon",density:l.density,icon:l.appendIcon},null),l.appendAvatar&&E.createVNode(yr,{key:"append-avatar",density:l.density,image:l.appendAvatar},null)])])])}),{}}}),Bf=ge({opacity:[Number,String],...Qe(),..._t()},"VCardText"),Vi=Oe()({name:"VCardText",props:Bf(),setup(l,A){let{slots:e}=A;return qe(()=>E.createVNode(l.tag,{class:["v-card-text",l.class],style:[{"--v-card-text-opacity":l.opacity},l.style]},e)),{}}}),Ff=ge({appendAvatar:String,appendIcon:it,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:it,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number],text:[String,Number],title:[String,Number],...cr(),...Qe(),...zt(),...Gt(),...rr(),...In(),...Nn(),...Ci(),...$t(),...Bn(),..._t(),...xt(),...nr({variant:"elevated"})},"VCard"),Fo=Oe()({name:"VCard",directives:{Ripple:Yr},props:Ff(),setup(l,A){let{attrs:e,slots:p}=A;const{themeClasses:g}=Et(l),{borderClasses:u}=wr(l),{colorClasses:i,colorStyles:o,variantClasses:r}=Kr(l),{densityClasses:t}=Kt(l),{dimensionStyles:n}=Yt(l),{elevationClasses:c}=dr(l),{loaderClasses:s}=Pn(l),{locationStyles:a}=On(l),{positionClasses:f}=Ti(l),{roundedClasses:h}=qt(l),d=jn(l,e),b=E.computed(()=>l.link!==!1&&d.isLink.value),m=E.computed(()=>!l.disabled&&l.link!==!1&&(l.link||d.isClickable.value));return qe(()=>{const x=b.value?"a":l.tag,k=!!(p.title||l.title!=null),R=!!(p.subtitle||l.subtitle!=null),F=k||R,L=!!(p.append||l.appendAvatar||l.appendIcon),j=!!(p.prepend||l.prependAvatar||l.prependIcon),D=!!(p.image||l.image),z=F||j||L,$=!!(p.text||l.text!=null);return E.withDirectives(E.createVNode(x,{class:["v-card",{"v-card--disabled":l.disabled,"v-card--flat":l.flat,"v-card--hover":l.hover&&!(l.disabled||l.flat),"v-card--link":m.value},g.value,u.value,i.value,t.value,c.value,s.value,f.value,h.value,r.value,l.class],style:[o.value,n.value,a.value,l.style],href:d.href.value,onClick:m.value&&d.navigate,tabindex:l.disabled?-1:void 0},{default:()=>{var V;return[D&&E.createVNode("div",{key:"image",class:"v-card__image"},[p.image?E.createVNode(Mt,{key:"image-defaults",disabled:!l.image,defaults:{VImg:{cover:!0,src:l.image}}},p.image):E.createVNode(La,{key:"image-img",cover:!0,src:l.image},null)]),E.createVNode(ki,{name:"v-card",active:!!l.loading,color:typeof l.loading=="boolean"?void 0:l.loading},{default:p.loader}),z&&E.createVNode(jf,{key:"item",prependAvatar:l.prependAvatar,prependIcon:l.prependIcon,title:l.title,subtitle:l.subtitle,appendAvatar:l.appendAvatar,appendIcon:l.appendIcon},{default:p.item,prepend:p.prepend,title:p.title,subtitle:p.subtitle,append:p.append}),$&&E.createVNode(Vi,{key:"text"},{default:()=>{var T;return[((T=p.text)==null?void 0:T.call(p))??l.text]}}),(V=p.default)==null?void 0:V.call(p),p.actions&&E.createVNode(Bo,null,{default:p.actions}),Xr(m.value,"v-card")]}}),[[E.resolveDirective("ripple"),m.value&&l.ripple]])}),{}}}),Df=ge({fullscreen:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,...Oi({origin:"center center",scrollStrategy:"block",transition:{component:Ei},zIndex:2400})},"VDialog"),Vf=Oe()({name:"VDialog",props:Df(),emits:{"update:modelValue":l=>!0,afterLeave:()=>!0},setup(l,A){let{emit:e,slots:p}=A;const g=vt(l,"modelValue"),{scopeId:u}=Ni(),i=E.ref();function o(n){var a,f;const c=n.relatedTarget,s=n.target;if(c!==s&&((a=i.value)!=null&&a.contentEl)&&((f=i.value)!=null&&f.globalTop)&&![document,i.value.contentEl].includes(s)&&!i.value.contentEl.contains(s)){const h=Vr(i.value.contentEl);if(!h.length)return;const d=h[0],b=h[h.length-1];c===d?b.focus():d.focus()}}Rt&&E.watch(()=>g.value&&l.retainFocus,n=>{n?document.addEventListener("focusin",o):document.removeEventListener("focusin",o)},{immediate:!0});function r(){var n;(n=i.value)!=null&&n.contentEl&&!i.value.contentEl.contains(document.activeElement)&&i.value.contentEl.focus({preventScroll:!0})}function t(){e("afterLeave")}return E.watch(g,async n=>{var c;n||(await E.nextTick(),(c=i.value.activatorEl)==null||c.focus({preventScroll:!0}))}),qe(()=>{const n=Cn.filterProps(l),c=E.mergeProps({"aria-haspopup":"dialog","aria-expanded":String(g.value)},l.activatorProps),s=E.mergeProps({tabindex:-1},l.contentProps);return E.createVNode(Cn,E.mergeProps({ref:i,class:["v-dialog",{"v-dialog--fullscreen":l.fullscreen,"v-dialog--scrollable":l.scrollable},l.class],style:l.style},n,{modelValue:g.value,"onUpdate:modelValue":a=>g.value=a,"aria-modal":"true",activatorProps:c,contentProps:s,role:"dialog",onAfterEnter:r,onAfterLeave:t},u),{activator:p.activator,default:function(){for(var a=arguments.length,f=new Array(a),h=0;h<a;h++)f[h]=arguments[h];return E.createVNode(Mt,{root:"VDialog"},{default:()=>{var d;return[(d=p.default)==null?void 0:d.call(p,...f)]}})}})}),Vn({},i)}}),Lf=E.createElementVNode("div",{class:"text-medium-emphasis ps-2"},"Advanced Filters",-1),zf={__name:"index",setup(l){const A=Wr(),{advancedFiltersState:e}=An(),{setData:p}=A,g=E.ref(!1),u=E.ref({}),i=E.inject("table_props"),o=()=>{u.value=Object.entries(u.value).filter(([t,n])=>n).reduce((t,[n,c])=>(t[n]=c,t),{}),p({table_id:i.id,name:"advancedFilters",value:{query:u.value}}),g.value=!1},r=E.computed(()=>i.headers.filter(t=>t.advancedFilter!==!1&&!t.hidden));return E.onMounted(()=>{u.value=e.value}),(t,n)=>{const c=Nf;return E.openBlock(),E.createBlock(Vf,{modelValue:E.unref(g),"onUpdate:modelValue":n[1]||(n[1]=s=>E.isRef(g)?g.value=s:null),"max-width":"500"},{activator:E.withCtx(({props:s})=>[E.createVNode(Bt,E.mergeProps(s,{variant:"text",icon:"mdi-filter-outline",density:"comfortable"}),null,16),E.createVNode(c,{modelValue:E.unref(u),"onUpdate:modelValue":n[0]||(n[0]=a=>E.isRef(u)?u.value=a:null),onSave:o},null,8,["modelValue"])]),default:E.withCtx(({isActive:s})=>[E.createVNode(Fo,{rounded:"lg"},{default:E.withCtx(()=>[E.createVNode(Di,{class:"d-flex justify-space-between align-center"},{default:E.withCtx(()=>[Lf,E.createVNode(Bt,{icon:"mdi-close",variant:"text",onClick:a=>s.value=!1},null,8,["onClick"])]),_:2},1024),E.createVNode(Sn,{class:"mb-4"}),E.createVNode(Vi,null,{default:E.withCtx(()=>[(E.openBlock(!0),E.createElementBlock(E.Fragment,null,E.renderList(E.unref(r),(a,f)=>(E.openBlock(),E.createBlock(Tn,{modelValue:E.unref(u)[a.key],"onUpdate:modelValue":h=>E.unref(u)[a.key]=h,key:f,label:a.title,variant:"underlined",clearable:""},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]),_:1}),E.createVNode(Sn,{class:"mt-2"}),E.createVNode(Bo,{class:"my-2 d-flex justify-end"},{default:E.withCtx(()=>[E.createVNode(Bt,{class:"text-none",text:"Cancel",onClick:a=>s.value=!1},null,8,["onClick"]),E.createVNode(Bt,{class:"text-none",color:"primary",text:"Submit",variant:"flat",onClick:o})]),_:2},1024)]),_:2},1024)]),_:1},8,["modelValue"])}}},Do=(l,A)=>{const e=l.__vccOpts||l;for(const[p,g]of A)e[p]=g;return e},Vo=Fn.reduce((l,A)=>(l[A]={type:[Boolean,String,Number],default:!1},l),{}),Lo=Fn.reduce((l,A)=>{const e="offset"+E.capitalize(A);return l[e]={type:[String,Number],default:null},l},{}),zo=Fn.reduce((l,A)=>{const e="order"+E.capitalize(A);return l[e]={type:[String,Number],default:null},l},{}),$s={col:Object.keys(Vo),offset:Object.keys(Lo),order:Object.keys(zo)};function $f(l,A,e){let p=l;if(!(e==null||e===!1)){if(A){const g=A.replace(l,"");p+=`-${g}`}return l==="col"&&(p="v-"+p),l==="col"&&(e===""||e===!0)||(p+=`-${e}`),p.toLowerCase()}}const Uf=["auto","start","end","center","baseline","stretch"],Hf=ge({cols:{type:[Boolean,String,Number],default:!1},...Vo,offset:{type:[String,Number],default:null},...Lo,order:{type:[String,Number],default:null},...zo,alignSelf:{type:String,default:null,validator:l=>Uf.includes(l)},...Qe(),..._t()},"VCol"),Us=Oe()({name:"VCol",props:Hf(),setup(l,A){let{slots:e}=A;const p=E.computed(()=>{const g=[];let u;for(u in $s)$s[u].forEach(o=>{const r=l[o],t=$f(u,o,r);t&&g.push(t)});const i=g.some(o=>o.startsWith("v-col-"));return g.push({"v-col":!i||!l.cols,[`v-col-${l.cols}`]:l.cols,[`offset-${l.offset}`]:l.offset,[`order-${l.order}`]:l.order,[`align-self-${l.alignSelf}`]:l.alignSelf}),g});return()=>{var g;return E.h(l.tag,{class:[p.value,l.class],style:l.style},(g=e.default)==null?void 0:g.call(e))}}}),Li=["start","end","center"],$o=["space-between","space-around","space-evenly"];function zi(l,A){return Fn.reduce((e,p)=>{const g=l+E.capitalize(p);return e[g]=A(),e},{})}const Wf=[...Li,"baseline","stretch"],Uo=l=>Wf.includes(l),Ho=zi("align",()=>({type:String,default:null,validator:Uo})),qf=[...Li,...$o],Wo=l=>qf.includes(l),qo=zi("justify",()=>({type:String,default:null,validator:Wo})),Xf=[...Li,...$o,"stretch"],Xo=l=>Xf.includes(l),Ko=zi("alignContent",()=>({type:String,default:null,validator:Xo})),Hs={align:Object.keys(Ho),justify:Object.keys(qo),alignContent:Object.keys(Ko)},Kf={align:"align",justify:"justify",alignContent:"align-content"};function Gf(l,A,e){let p=Kf[l];if(e!=null){if(A){const g=A.replace(l,"");p+=`-${g}`}return p+=`-${e}`,p.toLowerCase()}}const Yf=ge({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:Uo},...Ho,justify:{type:String,default:null,validator:Wo},...qo,alignContent:{type:String,default:null,validator:Xo},...Ko,...Qe(),..._t()},"VRow"),Zf=Oe()({name:"VRow",props:Yf(),setup(l,A){let{slots:e}=A;const p=E.computed(()=>{const g=[];let u;for(u in Hs)Hs[u].forEach(i=>{const o=l[i],r=Gf(u,i,o);r&&g.push(r)});return g.push({"v-row--no-gutters":l.noGutters,"v-row--dense":l.dense,[`align-${l.align}`]:l.align,[`justify-${l.justify}`]:l.justify,[`align-content-${l.alignContent}`]:l.alignContent}),g});return()=>{var g;return E.h(l.tag,{class:["v-row",p.value,l.class],style:l.style},(g=e.default)==null?void 0:g.call(e))}}}),Jf={};function Qf(l,A){const e=zf,p=Af,g=_f,u=wf;return E.openBlock(),E.createBlock(Zf,null,{default:E.withCtx(()=>[E.createVNode(Us,{class:"d-flex align-center"},{default:E.withCtx(()=>[E.createVNode(e)]),_:1}),E.createVNode(Us,{class:"d-flex align-center justify-end"},{default:E.withCtx(()=>[E.createVNode(p,{class:"me-4"}),E.createVNode(g),E.createVNode(u)]),_:1})]),_:1})}const eh=Do(Jf,[["render",Qf]]),th={};function rh(l,A){const e=eh,p=Xd;return E.openBlock(),E.createBlock(Fo,null,{default:E.withCtx(()=>[E.createVNode(Di,null,{default:E.withCtx(()=>[E.createVNode(e)]),_:1}),E.createVNode(Vi,{class:"pa-0"},{default:E.withCtx(()=>[E.createVNode(p)]),_:1})]),_:1})}const nh=Do(th,[["render",rh]]);function ih(l){const A=Wr(),{getCurrentTable:e}=A;Ws.storeToRefs(A);const p=E.ref(!1),g=E.ref(null),u=E.computed(()=>e(l.id));E.watch(u,async t=>{await i(t)},{deep:!0});const i=async t=>{if(p.value)return;p.value=!0,await E.nextTick();const n=o(),c=n.findIndex(s=>s.id===l.id);c>-1?n[c]=t:n.push(t),localStorage.setItem("datatables-state",JSON.stringify(n)),p.value=!1},o=()=>{const t=localStorage.getItem("datatables-state");return JSON.parse(t??"[]")},r=()=>o().find(c=>c.id===l.id);return E.onBeforeMount(()=>{g.value=o()}),{saving:p,dataState:g,dataStateGet:r,tableDataState:u}}const sh={__name:"index",props:{id:{type:String,default:"default",required:!0},api:{type:Object,default:()=>{}},data:{type:Array,default:()=>[]},options:{type:Object,default:()=>{}},params:{type:Object,default:()=>{}},hardFilters:{type:Array,default:()=>[]},headers:{type:Array,default:()=>[]},loadingData:{type:Boolean,default:!0},locale:{type:String,default:"en"},title:{type:String,default:""}},emits:["advancedFiltersChange"],setup(l,{emit:A}){const e=l,p=Wr(),{dataState:g,tableDataState:u}=ih(e),{addTable:i,restoreData:o}=p,r=A,t=E.ref(!1),n=E.ref(0),c=E.ref({search:"",advancedFilters:{},hardFilters:[],options:{},columns:{}}),s=async(f=()=>{})=>{typeof f=="function"&&f(),n.value++},a=async f=>{r("advancedFiltersChange",f)};return E.onMounted(async()=>{var R,F,L,j,D,z,$,V,T,M;i({table_id:e.id});const f=(R=g.value)==null?void 0:R.find(S=>S.id===e.id);f&&o({table_id:e.id,data:f});const h=(F=u.value.search)==null?void 0:F.query;h!=null&&h.length&&(c.value.search=h);const d=(L=u.value.advancedFilters)==null?void 0:L.query;(j=Object.keys(d))!=null&&j.length&&(c.value.advancedFilters=d);const b=new URLSearchParams(window.location.search);b.has("s")&&(c.value.search=b.get("s"));const m=(D=u.value.hardFilters)==null?void 0:D.query;(z=Object.keys(m))!=null&&z.length&&(c.value.hardFilters=m);const x=($=u.value.options)==null?void 0:$.query;(V=Object.keys(x))!=null&&V.length&&(c.value.options=x);const k=(T=u.value.options)==null?void 0:T.columns;(M=Object.keys(k))!=null&&M.length&&(c.value.columns=k),t.value=!0}),E.provide("table_props",e),(f,h)=>{const d=nh;return E.unref(t)?(E.openBlock(),E.createBlock(d,{ref:"table",id:l.id,key:`${l.id}-${E.unref(n)}`,onForceRefresh:s,onGetData:h[0]||(h[0]=b=>f.$emit("getData")),onRowData:h[1]||(h[1]=b=>f.$emit("rowData",b)),onAdvancedFiltersChange:a},null,8,["id"])):E.createCommentVNode("",!0)}}};exports.default=sh;