calculator2026/33/static/js/index-CAPJG_im.js
2026-06-25 09:43:48 +08:00

52 lines
1.4 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./xmCard-D4WD8Tvj.js","./typeLine-BCKblICF.js","./_plugin-vue_export-helper-DUFB50Ey.js","./vendor-ui-B4V4Cf1T.js","./vendor-ag-grid~XmMajorFactor~XmConsultCategoryFactor~xmInfo~ZxFwView~HtFeeMethodTypeLineVie~ntegcu2a-CFxQnYK4.js","./rolldown-runtime-fVNAxIxX.js","./vendor-ag-grid~XmMajorFactor~XmConsultCategoryFactor~xmInfo~ZxFwView~HtFeeMethodTypeLineVie~ntegcu2a-BnO-wAhh.js","./vendor-ag-grid~index~XmMajorFactor~XmConsultCategoryFactor~xmInfo~ZxFwView~HtFeeMethodTypeL~h29xz5eu-CW8VCi7z.js","./workspace-DxKKyh8w.js","../css/typeLine-oowuebrQ.css","./htCard-DW-Tiaxs.js","./_rolldown_dynamic_import_helper-CwdEGLFc.js","./vendor-vue-CSlAvuUs.js","./decimal-D3bp1pbs.js","./numberFormat-jhZZmX17.js","./QuickCalcWorkbenchView-bCXV4JQ3.js","./sql-C69Jo4HU.js","./pricingScaleCalc-CxdG8IMv.js","./xmFactorDefaults-yPGPQ25R.js","../css/QuickCalcWorkbenchView-C1jyxPFF.css","./ZxFwView-CRvQoCJC.js","./ScaleFormulaReadonlyPane-AeIzjaXU.js","./vendor-ag-grid~XmMajorFactor~XmConsultCategoryFactor~xmInfo~ZxFwView~HtFeeMethodTypeLineVie~ntegcu2a-DXO754eW.js","./agGridReadonlyAutoHeight-BpRhYCq1.js","./pricingScaleGrid-BCsr0Q1x.js","./pricingScaleLink-BNsm4Fxd.js","./MethodUnavailableNotice-Cx7GLj7Z.js","./HtFeeMethodTypeLineView-DmQ8lS0u.js","./HourlyFeeGrid-DixkKG6W.js","../css/HourlyFeeGrid-B40FytkG.css","./pricingPersistControl-DVG_7RF1.js","../css/HtFeeMethodTypeLineView-DQeFn_Ta.css"])))=>i.map(i=>d[i]);
import{a as e,i as t,n,o as r,r as i,t as a}from"./rolldown-runtime-fVNAxIxX.js";import{A as o,H as s,I as c,J as l,M as u,N as d,P as f,R as p,V as m,W as h,X as g,Y as _,_ as v,f as y,g as b,k as x,p as S,q as C,v as w,y as T}from"./vendor-ag-grid~index~XmMajorFactor~XmConsultCategoryFactor~xmInfo~ZxFwView~HtFeeMethodTypeL~h29xz5eu-CW8VCi7z.js";import{a as E,c as D,i as O,n as k,o as A,r as j,s as M,t as N}from"./vendor-ag-grid~index-Ch1jbN8D.js";import{$ as P,At as F,Bt as I,Cr as ee,Dt as L,E as R,Er as z,Et as B,G as V,H,K as U,Kt as W,M as te,Pt as ne,Q as G,Rn as re,Sr as ie,T as K,U as q,W as J,Wn as Y,Xt as ae,dt as oe,er as X,et as se,i as ce,mn as Z,qn as le,qt as ue,t as de,tt as fe,xr as pe,yn as Q}from"./vendor-ag-grid~XmMajorFactor~XmConsultCategoryFactor~xmInfo~ZxFwView~HtFeeMethodTypeLineVie~ntegcu2a-CFxQnYK4.js";import"./vendor-ag-grid~XmMajorFactor~XmConsultCategoryFactor~xmInfo~ZxFwView~HtFeeMethodTypeLineVie~ntegcu2a-BnO-wAhh.js";import{n as me,r as $,t as he}from"./vendor-vue-CSlAvuUs.js";import{D as ge,E as _e,O as ve,S as ye,T as be,a as xe,b as Se,c as Ce,d as we,f as Te,g as Ee,h as De,i as Oe,l as ke,m as Ae,n as je,o as Me,p as Ne,r as Pe,s as Fe,t as Ie,u as Le,v as Re,w as ze,x as Be,y as Ve}from"./workspace-DxKKyh8w.js";import{_ as He,d as Ue,f as We,g as Ge,h as Ke,i as qe,l as Je,m as Ye,o as Xe,p as Ze,s as Qe,t as $e,u as et}from"./decimal-D3bp1pbs.js";import{n as tt,r as nt,t as rt}from"./utils-DFe0HVk9.js";import{A as it,At as at,C as ot,D as st,Dt as ct,E as lt,F as ut,I as dt,L as ft,M as pt,N as mt,O as ht,P as gt,S as _t,T as vt,Tt as yt,_ as bt,c as xt,dt as St,ft as Ct,g as wt,gt as Tt,ht as Et,jt as Dt,k as Ot,l as kt,lt as At,m as jt,mt as Mt,pt as Nt,r as Pt,s as Ft,t as It,ut as Lt,w as Rt,x as zt,y as Bt}from"./vendor-ui-B4V4Cf1T.js";import"./numberFormat-jhZZmX17.js";import{S as Vt,_ as Ht,a as Ut,b as Wt,c as Gt,f as Kt,h as qt,i as Jt,m as Yt,o as Xt,r as Zt,v as Qt,y as $t}from"./sql-C69Jo4HU.js";import{t as en}from"./_plugin-vue_export-helper-DUFB50Ey.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();const tn=`jgjs-ui-prefs-v1`;var nn=e=>e===`zh-CN`||e===`en-US`,rn=()=>{if(typeof window>`u`)return null;let e=localStorage.getItem(tn);if(!e)return null;try{let t=JSON.parse(e);return t&&typeof t==`object`?t:null}catch{return null}},an=e=>{typeof window>`u`||localStorage.setItem(tn,JSON.stringify(e))};const on=$(`uiPrefs`,{state:()=>({locale:null,hasLocaleOverride:!1}),actions:{initFromStorage(){let e=rn();e&&e.hasLocaleOverride===!0&&nn(e.locale)&&(this.locale=e.locale,this.hasLocaleOverride=!0,_e(e.locale))},setLocale(e){this.locale=e,this.hasLocaleOverride=!0,_e(e),an({locale:this.locale,hasLocaleOverride:this.hasLocaleOverride})}}});var sn={id:xe,title:be.global.t(`home.projectCalcTab`),componentName:`ProjectCalcView`},cn=()=>Ve()===`quick`?new Set([we,Ce]):new Set([xe,Ce]),ln=()=>Ve()===`quick`?we:xe;const un=$(`tabs`,()=>{let e=Y([{...sn}]),t=Y(),n=Y(!1),r=()=>{let t=ln();e.value.some(e=>e.id===t)||Ve()!==`quick`&&(e.value=[{...sn},...e.value])},i=()=>{r(),e.value.length===0&&(e.value=[{...sn}]),e.value.some(e=>e.id===t.value)||(t.value=e.value[0]?.id??ln())};return{tabs:e,activeTabId:t,hasCompletedSetup:n,enterWorkspace:n=>{e.value=[{...n}],t.value=n.id},openTab:n=>{e.value.some(e=>e.id===n.id)||(e.value=[...e.value,n]),t.value=n.id},removeTab:n=>{if(cn().has(n))return;let a=e.value.findIndex(e=>e.id===n);if(a<0)return;let o=t.value===n;if(e.value=e.value.filter(e=>e.id!==n),r(),o){let n=Math.max(0,Math.min(a-1,e.value.length-1));t.value=e.value[n]?.id??ln();return}i()},closeAllTabs:()=>{let n=cn(),r=e.value.filter(e=>n.has(e.id));e.value=r.length>0?r:[{...sn}],t.value=e.value[0]?.id??ln()},closeLeftTabs:t=>{let n=e.value.findIndex(e=>e.id===t);if(n<0)return;let r=cn();e.value=e.value.filter((e,t)=>r.has(e.id)||t>=n),i()},closeRightTabs:t=>{let n=e.value.findIndex(e=>e.id===t);if(n<0)return;let r=cn();e.value=e.value.filter((e,t)=>r.has(e.id)||t<=n),i()},closeOtherTabs:n=>{let i=cn();e.value=e.value.filter(e=>i.has(e.id)||e.id===n),r(),t.value=e.value.some(e=>e.id===n)?n:ln()},resetTabs:()=>{e.value=[{...sn}],t.value=xe,n.value=!1}}},{persist:!0});var dn=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e;const fn=nt,pn=(e,t)=>n=>{if(t?.variants==null)return fn(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=dn(t)||dn(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return fn(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)};var mn=fe({__name:`Button`,props:{variant:{},size:{},class:{},asChild:{type:Boolean},as:{default:`button`}},setup(e){let t=e;return(n,r)=>(I(),J(X(yt),{"data-slot":`button`,as:e.as,"as-child":e.asChild,class:pe(X(tt)(X(hn)({variant:e.variant,size:e.size}),t.class))},{default:Q(()=>[ue(n.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`]))}});const hn=pn(`inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/90`,destructive:`bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60`,outline:`border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,sm:`h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5`,lg:`h-10 rounded-md px-6 has-[>svg]:px-4`,icon:`size-9`,"icon-sm":`size-8`,"icon-lg":`size-10`}},defaultVariants:{variant:`default`,size:`default`}});var gn=(e,t,n)=>{let r=e.split(`-`).filter(Boolean);if(!r.length)return[t];let i=[],a=r[0],o=n.get(a);o&&i.push(o);for(let e=1;e<r.length;e+=1){a=`${a}-${r[e]}`;let t=n.get(a);t&&i.push(t)}return(!i.length||i[i.length-1]!==t)&&i.push(t),i},_n=e=>{let t=new Map;for(let n of e){let e=String(n.item?.code||``).trim();e&&t.set(e,n.id)}return e.map(e=>{let n=String(e.item?.code||``).trim(),r=String(e.item?.name||``).trim();if(!n||!r)return null;let i=typeof e.item?.defCoe==`number`&&Number.isFinite(e.item.defCoe)?e.item.defCoe:null;return{id:e.id,code:n,name:r,standardFactor:i,budgetValue:i,remark:``,path:gn(n,e.id,t)}}).filter(e=>!!e)},vn=e=>{let t=new Map,n=[],r=new Map(e.map(e=>[String(e.item?.code||``).trim(),e]));for(let i of e){let e=String(i.item?.code||``).trim(),a=String(i.item?.name||``).trim();if(!e||!a)continue;if(!e.includes(`-`)){t.has(e)||n.push(e),t.set(e,{id:i.id,code:e,name:a,children:[]});continue}let o=e.split(`-`)[0];if(!t.has(o)){let e=r.get(o);n.includes(o)||n.push(o),t.set(o,{id:e?.id||`group-${o}`,code:o,name:String(e?.item?.name||o).trim(),children:[]})}t.get(o)?.children.push({id:i.id,code:e,name:a,hasCost:i.item?.hasCost!==!1,hasArea:i.item?.hasArea!==!1})}return n.map(e=>t.get(e)).filter(e=>!!e)},yn=e=>e.flatMap(e=>e.children.map(t=>({id:t.id,groupCode:e.code,groupName:e.name,majorCode:t.code,majorName:t.name,hasCost:t.hasCost,hasArea:t.hasArea,amount:null,landArea:null,path:[`${e.code} ${e.name}`,`${t.code} ${t.name}`]}))),bn=(e,t)=>{let n=new Map;for(let e of t||[])!e||e.isGroupRow===!0||n.set(String(e.id||``),e);return e.map(e=>{let t=n.get(e.id);return t?{...e,hide:t.hide,amount:e.hasCost&&typeof t.amount==`number`&&Number.isFinite(t.amount)?t.amount:null,landArea:e.hasArea&&typeof t.landArea==`number`&&Number.isFinite(t.landArea)?t.landArea:null}:e})},xn=(e,t)=>{let n=new Map(t.map(e=>[String(e.id||``),e]));return e.map(e=>{let t=0,r=!1,i=0,a=!1;for(let o of e.children){let e=n.get(String(o.id||``)),s=e?.amount;typeof s==`number`&&Number.isFinite(s)&&(t+=s,r=!0);let c=e?.landArea;typeof c==`number`&&Number.isFinite(c)&&(i+=c,a=!0)}return{id:e.id,groupCode:e.code,groupName:e.name,majorCode:e.code,majorName:e.name,hasCost:!0,hasArea:!0,amount:r?t:null,landArea:a?i:null,path:[`${e.code} ${e.name}`],hide:!1,isGroupRow:!0}})};const Sn=(e,t)=>{let n=vn(Gt().map(({id:e,item:t})=>({id:e,item:t})).filter(({id:t,item:n})=>n.notshowByzxflxs!==!0&&$t(t,e))),r=bn(yn(n),Array.isArray(t?.detailRows)?t.detailRows:void 0);return{detailRows:[...r,...xn(n,r)],totalAmount:typeof t?.totalAmount==`number`&&Number.isFinite(t.totalAmount)?t.totalAmount:null,roughCalcEnabled:t?.roughCalcEnabled===!0}},Cn=async(e,t,n,r)=>{let i=Xt(t),a=Yt().map(({id:e,item:t})=>({id:e,item:t})).filter(({item:e})=>e.notshowByzxflxs===!0?!1:Qt(e,i)),o=Gt().map(({id:e,item:t})=>({id:e,item:t})).filter(({id:e,item:n})=>n.notshowByzxflxs!==!0&&$t(e,t)),s={detailRows:_n(a)},c={detailRows:_n(o)};await Promise.all([e.setItem(n,s),e.setItem(r,c)])},wn=async(e,t,n)=>{await e.setItem(n,Sn(t))};var Tn=r(ve(),1);const En=e=>{let t=Tn.default.createInstance({name:Ee(e),storeName:`pinia-kv`});return{setItem:async(e,n)=>{let r=String(e||``).trim();if(!r)return;let i=await t.getItem(`pinia-kv`),a={...i?.entries&&typeof i.entries==`object`?i.entries:{},[r]:JSON.parse(JSON.stringify(n))};await t.setItem(`pinia-kv`,{...i&&typeof i==`object`?i:{},entries:a,ready:!0})}}};var Dn=12e3,On=4e3,kn=80,An=`jgjs-project-lock-channel`,jn=`jgjs-project-tab-session-id`,Mn=`${Date.now()}-${Math.random().toString(36).slice(2,10)}`,Nn=()=>Date.now(),Pn=e=>`jgjs-project-lock:${e}`,Fn=e=>{if(!e)return null;try{let t=JSON.parse(e);return!t||typeof t!=`object`||typeof t.sessionId!=`string`||typeof t.projectId!=`string`||typeof t.updatedAt!=`number`||!Number.isFinite(t.updatedAt)?null:{sessionId:t.sessionId,projectId:t.projectId,updatedAt:t.updatedAt}}catch{return null}},In=e=>Nn()-e.updatedAt>Dn,Ln=()=>`${Nn()}-${Math.random().toString(36).slice(2,10)}`,Rn=(e,t)=>{try{t?console.debug(`[project-lock]`,e,t):console.debug(`[project-lock]`,e)}catch{}},zn=()=>{try{let e=String(window.sessionStorage.getItem(jn)||``).trim();if(e)return e;let t=Ln();return window.sessionStorage.setItem(jn,t),t}catch{return Ln()}};const Bn=e=>{let t=String(e.projectId||``).trim(),n=e.onConflict,r=zn(),i=Pn(t),a=!1,o=null,s=null,c=!1,l=e=>{a!==e&&(a=e,Rn(`emit conflict`,{projectId:t,sessionId:r,runtimeInstanceId:Mn,conflicted:e}),n(e))},u=()=>{if(a||c)return;let e={sessionId:r,projectId:t,updatedAt:Nn()};localStorage.setItem(i,JSON.stringify(e)),Rn(`write heartbeat`,{projectId:t,sessionId:r,runtimeInstanceId:Mn,key:i}),s?.postMessage({type:`heartbeat`,projectId:t,sessionId:r})},d=()=>{Fn(localStorage.getItem(i))?.sessionId===r&&(localStorage.removeItem(i),Rn(`clear own lock`,{projectId:t,sessionId:r,runtimeInstanceId:Mn,key:i})),s?.postMessage({type:`release`,projectId:t,sessionId:r})},f=()=>{let e=Fn(localStorage.getItem(i));if(Rn(`detect conflict`,{projectId:t,sessionId:r,runtimeInstanceId:Mn,current:e,expired:e?In(e):null}),!e||In(e)){l(!1),u();return}console.log(r),l(e.sessionId!==r)},p=e=>{e.key===i&&f()},m=()=>{d()},h=()=>{o||a||c||(o=setInterval(u,On))};typeof BroadcastChannel<`u`&&(s=new BroadcastChannel(An),s.onmessage=e=>{let n=e.data;if(!(!n||n.projectId!==t)){if(n.type===`session-probe`){if(n.candidateSessionId!==r||n.runtimeId===Mn)return;Rn(`session probe received`,{projectId:t,sessionId:r,runtimeInstanceId:Mn,fromRuntimeId:n.runtimeId}),s?.postMessage({type:`session-probe-ack`,projectId:t,candidateSessionId:r,responderRuntimeId:Mn,targetRuntimeId:n.runtimeId});return}n.type!==`session-probe-ack`&&n.sessionId!==r&&n.type===`heartbeat`&&f()}});let g=async()=>{if(!s)return;let e=new Set,n=n=>{let i=n.data;!i||i.type!==`session-probe-ack`||i.projectId===t&&i.candidateSessionId===r&&i.targetRuntimeId===Mn&&i.responderRuntimeId&&e.add(i.responderRuntimeId)};s.addEventListener(`message`,n);try{s.postMessage({type:`session-probe`,projectId:t,candidateSessionId:r,runtimeId:Mn}),await new Promise(e=>window.setTimeout(e,kn))}finally{s.removeEventListener(`message`,n)}if(c||e.size===0)return;let i=Array.from(e).some(e=>e<Mn);if(Rn(`session probe result`,{projectId:t,sessionId:r,runtimeInstanceId:Mn,responders:Array.from(e),shouldRotate:i}),!i)return;let a=Ln();try{window.sessionStorage.setItem(jn,a)}catch{}Rn(`rotate duplicated session id`,{projectId:t,previousSessionId:r,nextSessionId:a,runtimeInstanceId:Mn}),r=a};return(async()=>{try{if(await g(),c)return;let e=Fn(localStorage.getItem(i));Rn(`init lock state`,{projectId:t,sessionId:r,runtimeInstanceId:Mn,existing:e}),e&&!In(e)&&e.sessionId!==r?l(!0):u(),h()}catch(e){console.error(`init project session lock failed:`,e)}})(),window.addEventListener(`storage`,p),window.addEventListener(`beforeunload`,m),{get conflicted(){return a},release:()=>{c=!0,o&&=(clearInterval(o),null),window.removeEventListener(`storage`,p),window.removeEventListener(`beforeunload`,m),d(),s&&=(s.close(),null)}}},Vn=e=>{let t=String(e||``).trim();if(!t)return!1;try{let e=Fn(localStorage.getItem(Pn(t)));return!!(e&&!In(e))}catch{return!1}},Hn=e=>{let t=new Set;for(let n of e)Vn(n)&&t.add(String(n||``).trim());return t};var Un={class:`home-entry relative flex min-h-full items-center justify-center overflow-hidden px-4 py-8 lg:py-10`},Wn={class:`relative w-full max-w-[1240px]`},Gn={class:`absolute right-0 top-0 z-10`},Kn={class:`home-title text-center`},qn={class:`text-2xl font-semibold tracking-tight text-slate-900 lg:text-3xl`,style:{"font-family":`HarmonyOS_Sans_SC, 'Microsoft YaHei', sans-serif`,"font-weight":`300`,"white-space":`pre-line`}},Jn={class:`mt-1.5 text-sm text-slate-500`},Yn={class:`mt-5 grid items-stretch gap-4 md:grid-cols-2 xl:grid-cols-5`},Xn={class:`home-card-base home-entry-item home-entry-item--1 relative overflow-hidden rounded-2xl bg-[#dc2626] p-7 text-white shadow-[0_24px_60px_rgba(153,27,27,0.35)]`},Zn={class:`relative inline-flex h-11 w-11 items-center justify-center rounded-xl bg-white/15 ring-1 ring-white/35`},Qn={class:`relative mt-8 whitespace-pre-line text-xl font-semibold leading-tight tracking-tight`},$n={class:`relative mt-2 text-sm text-red-200/90`},er={class:`relative mt-4 whitespace-pre-line text-xs leading-5 text-red-200/80`},tr=[`onKeydown`],nr={class:`inline-flex h-11 w-11 items-center justify-center rounded-xl border border-blue-100 bg-blue-50/80 text-blue-600 shadow-sm transition-transform duration-200 group-hover:scale-105`},rr={class:`mt-4 text-base font-semibold text-slate-900`},ir={class:`mt-1.5 text-xs leading-5 text-slate-500`},ar={class:`mt-4 flex flex-wrap items-center justify-end gap-2`},or={class:`flex items-center gap-1`},sr={class:`inline-flex h-11 w-11 items-center justify-center rounded-xl border border-amber-100 bg-amber-50/80 text-amber-600 shadow-sm transition-transform duration-200 group-hover:scale-105`},cr={class:`mt-4 text-base font-semibold text-slate-900`},lr={class:`mt-1.5 text-xs leading-5 text-slate-500`},ur={class:`mt-4 flex items-center text-xs font-medium text-slate-400 transition-colors group-hover:text-slate-600`},dr=[`onKeydown`],fr={class:`mt-4 text-base font-semibold text-slate-900`},pr={class:`mt-1.5 text-xs leading-5 text-slate-500`},mr={class:`mt-4 flex items-center text-xs font-medium text-slate-400 transition-colors group-hover:text-slate-600`},hr=[`onKeydown`],gr={class:`mt-4 text-base font-semibold text-slate-900`},_r={class:`mt-1.5 text-xs leading-5 text-slate-500`},vr={class:`mt-4 flex items-center text-xs font-medium text-slate-400 transition-colors group-hover:text-slate-600`},yr={class:`w-full max-w-lg rounded-3xl border border-slate-200/60 bg-white shadow-2xl`},br={class:`flex items-start justify-between border-b border-slate-100 px-6 pt-6 pb-4`},xr={class:`text-xl font-bold text-[#1a1a1a]`},Sr={class:`mt-1.5 text-base text-[#666]`},Cr={class:`max-h-80 space-y-3 overflow-auto px-6 py-5`},wr={key:0,class:`rounded-lg border border-dashed border-slate-200 bg-slate-50 px-3 py-5 text-center text-sm text-slate-500`},Tr=[`disabled`,`onClick`],Er={class:`min-w-0 flex-1`},Dr={class:`text-base font-medium text-[#1a1a1a]`},Or={key:0,class:`ml-1 text-sm text-[#888]`},kr={class:`mt-1 text-sm text-[#888]`},Ar={class:`shrink-0 pl-4 text-sm text-[#888]`},jr={class:`flex items-center justify-end gap-3 border-t border-slate-100 px-6 pt-4 pb-6`},Mr={class:`w-full max-w-lg rounded-3xl border border-slate-200/60 bg-white shadow-2xl`},Nr={class:`flex items-start justify-between border-b border-slate-100 px-6 pt-6 pb-4`},Pr={class:`text-xl font-bold text-[#1a1a1a]`},Fr={class:`mt-1.5 text-base text-[#666]`},Ir={class:`px-6 pt-5 pb-4`},Lr={class:`mb-3 text-base font-semibold text-[#1a1a1a]`},Rr={class:`space-y-3`},zr=[`onClick`],Br={class:`text-base`},Vr={class:`flex items-center justify-end gap-3 border-t border-slate-100 px-6 pt-4 pb-6`},Hr=[`disabled`],Ur={class:`w-full max-w-sm rounded-3xl border border-slate-200/60 bg-white shadow-2xl`},Wr={class:`flex items-center justify-end px-6 pt-4 pb-6`},Gr={class:`w-full max-w-md rounded-xl border bg-background shadow-2xl`},Kr={class:`px-5 py-4`},qr={class:`text-base font-semibold text-foreground`},Jr={class:`mt-1 text-sm text-muted-foreground`},Yr={class:`flex items-center justify-end gap-2 px-5 py-4`},Xr=`xm-base-info-v1`,Zr=`xm-consult-category-factor-v1`,Qr=`xm-major-factor-v1`,$r=`xm-info-v3`,ei=`https://www.lianzhong.com.cn/file`,ti=en(fe({__name:`HomeEntryView`,setup(e){let t=()=>Re(),n=un(),r=Ue(),i=on(),{t:a,locale:o}=ge(),s=Y(!1),c=Y(!1),l=Y(String(Ht[0]?.id||``)),u=Y(!1),d=Y(String(Ht[0]?.id||``)),f=Y(Me);Y(!1);let p=Y(null),m=Y(!1),h=Y(null),g=Y(``),_=Y(!1),v=Y([]),y=Y(!1),b=Y(!1),x=Y([]),S=null,C=H(()=>o.value===`en-US`?`EN`:`中`),w=H(()=>({backgroundImage:`url("${new URL(`background.png`,window.location.href).toString()}")`})),T=()=>{let e=o.value===`en-US`?`zh-CN`:`en-US`;i.setLocale(e)},E=()=>{window.open(ei,`_blank`,`noopener`)},D=e=>{if(String(e||``).trim()===`default`)return a(`xmInfo.defaultProjectName`)},O=e=>{try{let t=Te(e,{forceHome:!1,newProject:!1});window.history.replaceState({},``,t)}catch{Be(e)}},k=(e,n)=>{let r=String(e||``).trim();if(!r)return!1;ye(n);let i=t();return n===`project`&&i!==r?(window.location.href=Te(r,{forceHome:!1,newProject:!1}),!1):(O(r),!0)},A=()=>{let e=new Date;return`${String(e.getFullYear())}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`},j=e=>{let t=new Date(e);if(Number.isNaN(t.getTime()))return`-`;let n=e=>String(e).padStart(2,`0`);return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())} ${n(t.getHours())}:${n(t.getMinutes())}`},M=async()=>{let e=await r.getItem(Xr);l.value=typeof e?.projectIndustry==`string`&&e.projectIndustry.trim()?e.projectIndustry.trim():String(Ht[0]?.id||``)},N=async()=>{s.value=!0},L=e=>{x.value=Array.from(Hn(e))},B=e=>{let t=String(e||``).trim();return t?x.value.includes(t):!1},re=async e=>{e?.showLoading!==!1&&(y.value=!0);try{let e=Ge().filter(e=>e.id!==ke).sort((e,t)=>{let n=new Date(e.updatedAt).getTime(),r=new Date(t.updatedAt).getTime();return(Number.isFinite(r)?r:0)-(Number.isFinite(n)?n:0)});v.value=e.map(e=>({id:e.id,name:e.name,updatedAt:e.updatedAt})),b.value=e.length>0,L(e.map(e=>e.id))}finally{e?.showLoading!==!1&&(y.value=!1)}},ie=()=>{S!=null&&(clearInterval(S),S=null)},ae=()=>{ie(),S=setInterval(()=>{_.value&&re({showLoading:!1})},3e3)},oe=async()=>{s.value=!1,_.value=!0,await re(),ae()},se=()=>{_.value=!1,ie()},ce=e=>{let t=String(e||``).trim();!t||B(t)||(He(t,D(t)),k(t,`project`)&&(n.enterWorkspace({id:xe,title:a(`home.projectCalcTab`),componentName:`ProjectCalcView`}),n.hasCompletedSetup=!0,se()))},Z=()=>{s.value=!1},le=async()=>{let e=l.value.trim();if(e){u.value=!0;try{let t=Ye(a(`xmInfo.defaultProjectName`)),n=En(t.id);await n.setItem(Xr,{projectIndustry:e,projectName:a(`xmInfo.defaultProjectName`),preparedBy:``,reviewedBy:``,preparedCompany:``,preparedDate:A()}),await Cn(n,e,Zr,Qr),await wn(n,e,$r),ye(`project`),window.location.href=Te(t.id,{forceHome:!1,newProject:!1})}finally{u.value=!1,s.value=!1}}},ue=async()=>{let[e,t]=await Promise.all([r.getItem(Le),r.getItem(Fe)]);d.value=typeof e?.projectIndustry==`string`&&e.projectIndustry.trim()?e.projectIndustry.trim():String(Ht[0]?.id||``),f.value=typeof t?.name==`string`&&t.name.trim()?t.name.trim():Me},de=e=>{let t=e.target,n=t.files?.[0];n&&(h.value=n,g.value=n.name,m.value=!0,t.value=``)},fe=()=>{p.value?.click()},me=()=>{m.value=!1,h.value=null,g.value=``},$=async()=>{let e=h.value;if(!e)return;await Se(e,{skipWorkspaceConfirm:!0});let t=Ye(a(`xmInfo.defaultProjectName`));ye(`project`),window.location.href=Te(t.id,{forceHome:!1,newProject:!1}),me()},he=()=>{_.value&&re({showLoading:!1})},_e=()=>{document.visibilityState===`visible`&&he()};return ne(()=>{re(),M(),ue(),window.addEventListener(`focus`,he),document.addEventListener(`visibilitychange`,_e);try{let e=new URL(window.location.href);if(e.searchParams.get(`newProject`)===`1`){let n=t();He(n,D(n)),e.searchParams.get(`openProjectDialog`)!==`0`&&N(),e.searchParams.delete(Pe),e.searchParams.delete(Oe),e.searchParams.delete(je),window.history.replaceState({},``,`${e.pathname}${e.search}${e.hash}`)}}catch{}}),F(()=>{ie(),window.removeEventListener(`focus`,he),document.removeEventListener(`visibilitychange`,_e)}),(e,t)=>(I(),U(te,null,[q(`input`,{ref_key:`homeImportInputRef`,ref:p,type:`file`,accept:`.zw`,class:`sr-only`,onChange:de},null,544),q(`div`,Un,[q(`div`,{class:`pointer-events-none absolute inset-0 bg-cover bg-center bg-no-repeat`,style:ee(w.value)},null,4),t[14]||=q(`div`,{class:`pointer-events-none absolute inset-0 bg-white/78`},null,-1),t[15]||=q(`div`,{class:`pointer-events-none absolute inset-0 bg-[radial-gradient(ellipse_80%_60%_at_50%_-10%,rgba(59,130,246,0.08),transparent_70%)]`},null,-1),q(`div`,Wn,[q(`div`,Gn,[q(`button`,{type:`button`,class:`inline-flex h-8 cursor-pointer items-center justify-center gap-1.5 rounded-full border border-slate-200/80 bg-white/85 px-3 text-xs text-slate-600 shadow-sm backdrop-blur transition hover:bg-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-200`,onClick:T},[P(X(kt),{class:`h-3.5 w-3.5`}),q(`span`,null,z(C.value),1)])]),q(`div`,Kn,[q(`h1`,qn,z(X(a)(`home.title`)),1),q(`p`,Jn,z(X(a)(`home.subtitle`)),1)]),q(`div`,Yn,[q(`section`,Xn,[t[5]||=q(`div`,{class:`pointer-events-none absolute -right-20 -top-16 h-56 w-56 rounded-full bg-white/12 blur-2xl`},null,-1),t[6]||=q(`div`,{class:`pointer-events-none absolute -bottom-10 -left-10 h-40 w-40 rounded-full bg-white/8 blur-3xl`},null,-1),(I(),U(te,null,W(10,e=>q(`div`,{key:e,class:pe(`home-hero-meteor home-hero-meteor--${e}`)},null,2)),64)),q(`div`,Zn,[P(X(bt),{class:`h-5 w-5`})]),q(`h2`,Qn,z(X(a)(`home.cards.heroTitle`)),1),q(`p`,$n,z(X(a)(`home.cards.heroSubTitle`)),1),t[7]||=q(`div`,{class:`relative mt-6 h-px bg-white/20`},null,-1),q(`p`,er,z(X(a)(`home.cards.heroDesc`)),1)]),q(`article`,{role:`button`,tabindex:`0`,class:`home-card-base home-entry-item home-entry-item--2 group flex cursor-pointer flex-col justify-between rounded-xl border border-slate-200/80 bg-white/95 px-5 py-5 shadow-[0_4px_20px_rgba(15,23,42,0.06)] backdrop-blur-sm transition-all duration-200 hover:-translate-y-0.5 hover:shadow-[0_12px_32px_rgba(15,23,42,0.12)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-200`,onClick:N,onKeydown:[K(R(N,[`prevent`]),[`enter`]),K(R(N,[`prevent`]),[`space`])]},[q(`div`,null,[q(`div`,nr,[P(X(bt),{class:`h-5 w-5`})]),q(`h3`,rr,z(X(a)(`home.cards.projectBudget`)),1),q(`p`,ir,z(X(a)(`home.cards.projectBudgetDesc`)),1)]),q(`div`,ar,[b.value?(I(),U(`button`,{key:0,type:`button`,class:`cursor-pointer rounded-md border border-slate-200 px-3 py-1.5 text-xs font-medium text-slate-600 transition hover:border-slate-300 hover:bg-slate-50 hover:text-slate-700`,onClick:R(oe,[`stop`])},z(X(a)(`home.cards.pickExisting`)),1)):V(``,!0),q(`button`,{type:`button`,class:`cursor-pointer rounded-md bg-blue-600 px-3 py-1.5 text-xs font-medium text-white transition hover:bg-blue-700`,onClick:R(N,[`stop`])},[q(`span`,or,[G(z(X(a)(`home.cards.enter`))+` `,1),t[8]||=q(`svg`,{class:`h-3.5 w-3.5`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[q(`path`,{d:`M5 12h14`}),q(`path`,{d:`m12 5 7 7-7 7`})],-1)])])])],40,tr),q(`article`,{role:`button`,tabindex:`0`,class:`home-card-base home-entry-item home-entry-item--3 group flex cursor-pointer flex-col justify-between rounded-xl border border-slate-200/80 bg-white/95 px-5 py-5 shadow-[0_4px_20px_rgba(15,23,42,0.06)] backdrop-blur-sm transition-all duration-200 hover:-translate-y-0.5 hover:shadow-[0_12px_32px_rgba(15,23,42,0.12)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-200`,onClick:t[0]||=e=>c.value=!0,onKeydown:[t[1]||=K(R(e=>c.value=!0,[`prevent`]),[`enter`]),t[2]||=K(R(e=>c.value=!0,[`prevent`]),[`space`])]},[q(`div`,null,[q(`div`,sr,[P(X(Bt),{class:`h-5 w-5`})]),q(`h3`,cr,z(X(a)(`home.cards.quickCalc`)),1),q(`p`,lr,z(X(a)(`home.cards.quickCalcDesc`)),1)]),q(`div`,ur,[q(`span`,null,z(X(a)(`home.cards.developing`)),1),t[9]||=q(`svg`,{class:`ml-1 h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[q(`path`,{d:`M5 12h14`}),q(`path`,{d:`m12 5 7 7-7 7`})],-1)])],32),q(`article`,{role:`button`,tabindex:`0`,class:`home-card-base home-entry-item home-entry-item--4 group flex cursor-pointer flex-col justify-between rounded-xl border border-slate-200/80 bg-white/95 px-5 py-5 shadow-[0_4px_20px_rgba(15,23,42,0.06)] backdrop-blur-sm transition-all duration-200 hover:-translate-y-0.5 hover:shadow-[0_12px_32px_rgba(15,23,42,0.12)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-200`,onClick:fe,onKeydown:[K(R(fe,[`prevent`]),[`enter`]),K(R(fe,[`prevent`]),[`space`])]},[q(`div`,null,[t[10]||=q(`div`,{class:`inline-flex h-11 w-11 items-center justify-center rounded-xl border border-emerald-100 bg-emerald-50/80 text-emerald-600 shadow-sm transition-transform duration-200 group-hover:scale-105`},[q(`svg`,{viewBox:`0 0 1024 1024`,class:`h-5 w-5`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`},[q(`path`,{fill:`currentColor`,d:`M154.579478 1001.73913v-332.844521h89.043479V912.695652H912.695652V369.530435h-234.896695V111.304348H243.890087v349.184h-89.043478V22.26087h585.683478l261.431652 263.924869V1001.73913z m612.173913-721.252173h104.314435l-104.314435-105.293914z m-416.857043 411.469913l79.026087-79.026087H22.26087v-89.043479h406.661565L349.94087 444.861217l41.138087-41.22713 123.592347 123.592348 41.227131 41.182608-41.227131 41.138087-123.592347 123.592348z m123.013565-123.013566l0.489739-0.534261-0.489739-0.489739z`})])],-1),q(`h3`,fr,z(X(a)(`home.cards.importData`)),1),q(`p`,pr,z(X(a)(`home.cards.importDataDesc`)),1)]),q(`div`,mr,[q(`span`,null,z(X(a)(`home.cards.pickFile`)),1),t[11]||=q(`svg`,{class:`ml-1 h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[q(`path`,{d:`M5 12h14`}),q(`path`,{d:`m12 5 7 7-7 7`})],-1)])],40,dr),q(`article`,{role:`button`,tabindex:`0`,class:`home-card-base home-entry-item home-entry-item--5 group flex cursor-pointer flex-col justify-between rounded-xl border border-slate-200/80 bg-white/95 px-5 py-5 shadow-[0_4px_20px_rgba(15,23,42,0.06)] backdrop-blur-sm transition-all duration-200 hover:-translate-y-0.5 hover:shadow-[0_12px_32px_rgba(15,23,42,0.12)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-200`,onClick:E,onKeydown:[K(R(E,[`prevent`]),[`enter`]),K(R(E,[`prevent`]),[`space`])]},[q(`div`,null,[t[12]||=q(`div`,{class:`inline-flex h-11 w-11 items-center justify-center rounded-xl border border-lime-100 bg-lime-50/80 shadow-sm transition-transform duration-200 group-hover:scale-105`},[q(`svg`,{viewBox:`0 0 1024 1024`,class:`h-6 w-6`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`},[q(`path`,{d:`M271.146667 128h-85.333334a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h85.333334a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64z m21.333333 704a21.333333 21.333333 0 0 1-21.333333 21.333333h-85.333334a21.333333 21.333333 0 0 1-21.333333-21.333333V320h128z m0-554.666667h-128V192a21.333333 21.333333 0 0 1 21.333333-21.333333h85.333334a21.333333 21.333333 0 0 1 21.333333 21.333333zM901.12 808.533333L789.333333 178.346667a64 64 0 0 0-74.026666-51.84l-84.053334 14.72a64 64 0 0 0-44.16 31.146666A64 64 0 0 0 527.146667 128h-85.333334a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h85.333334a64 64 0 0 0 64-64V279.253333l99.84 566.4a64 64 0 0 0 74.24 51.84l84.053333-14.72a64 64 0 0 0 51.84-74.24zM548.48 832a21.333333 21.333333 0 0 1-21.333333 21.333333h-85.333334a21.333333 21.333333 0 0 1-21.333333-21.333333V320h128z m0-554.666667h-128V192a21.333333 21.333333 0 0 1 21.333333-21.333333h85.333334a21.333333 21.333333 0 0 1 21.333333 21.333333z m73.386667-69.333333A21.333333 21.333333 0 0 1 640 183.253333l83.2-14.72a21.333333 21.333333 0 0 1 24.746667 17.28l14.933333 84.053334-126.08 21.333333z m219.946666 632.746667l-84.053333 14.72a21.333333 21.333333 0 0 1-24.746667-17.28L644.266667 334.08l125.866666-21.333333 88.96 504.106666a21.333333 21.333333 0 0 1-17.28 23.893334z`,fill:`#e0db84`})])],-1),q(`h3`,gr,z(X(a)(`home.cards.relatedFiles`)),1),q(`p`,_r,z(X(a)(`home.cards.relatedFilesDesc`)),1)]),q(`div`,vr,[q(`span`,null,z(X(a)(`home.cards.openRelatedFiles`)),1),t[13]||=q(`svg`,{class:`ml-1 h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[q(`path`,{d:`M5 12h14`}),q(`path`,{d:`m12 5 7 7-7 7`})],-1)])],40,hr)])])]),_.value?(I(),U(`div`,{key:0,class:`fixed inset-0 z-[90] flex items-center justify-center bg-black/45 p-4`,onClick:R(se,[`self`])},[q(`div`,yr,[q(`div`,br,[q(`div`,null,[q(`h3`,xr,z(X(a)(`home.dialog.chooseExistingProject`)),1),q(`p`,Sr,z(X(a)(`home.dialog.chooseExistingProjectDesc`)),1)]),q(`button`,{type:`button`,class:`flex h-8 w-8 items-center justify-center rounded-full text-slate-400 transition hover:bg-slate-100 hover:text-slate-600`,onClick:se},[P(X(It),{class:`h-5 w-5`})])]),q(`div`,Cr,[!y.value&&v.value.length===0?(I(),U(`div`,wr,z(X(a)(`home.dialog.noProjectYet`)),1)):V(``,!0),(I(!0),U(te,null,W(v.value,e=>(I(),U(`button`,{key:e.id,type:`button`,disabled:B(e.id),class:`flex w-full items-center justify-between rounded-xl border border-slate-200 bg-white px-4 py-3.5 text-left transition hover:border-slate-300 hover:bg-slate-50 disabled:cursor-not-allowed disabled:opacity-60`,onClick:t=>ce(e.id)},[q(`div`,Er,[q(`div`,Dr,[G(z(e.name)+` `,1),B(e.id)?(I(),U(`span`,Or,z(X(a)(`tab.toolbar.opened`)),1)):V(``,!0)]),q(`div`,kr,z(e.id),1)]),q(`div`,Ar,z(X(a)(`tab.toolbar.lastEdited`,{time:j(e.updatedAt)})),1)],8,Tr))),128))]),q(`div`,jr,[q(`button`,{type:`button`,class:`cursor-pointer rounded-lg border border-slate-200 bg-white px-5 py-2.5 text-base font-medium text-[#666] transition hover:border-slate-300 hover:bg-slate-50`,onClick:se},z(X(a)(`common.cancel`)),1)])])])):V(``,!0),s.value?(I(),U(`div`,{key:1,class:`fixed inset-0 z-[90] flex items-center justify-center bg-black/45 p-4`,onClick:R(Z,[`self`])},[q(`div`,Mr,[q(`div`,Nr,[q(`div`,null,[q(`h3`,Pr,z(X(a)(`home.dialog.newProject`)),1),q(`p`,Fr,z(X(a)(`home.dialog.chooseIndustryDesc`)),1)]),q(`button`,{type:`button`,class:`flex h-8 w-8 items-center justify-center rounded-full text-slate-400 transition hover:bg-slate-100 hover:text-slate-600`,onClick:Z},[P(X(It),{class:`h-5 w-5`})])]),q(`div`,Ir,[q(`h4`,Lr,z(X(a)(`home.dialog.industry`)),1),q(`div`,Rr,[(I(!0),U(te,null,W(X(Ht),e=>(I(),U(`button`,{key:`project-${e.id}`,type:`button`,class:pe([`flex w-full items-center justify-between rounded-xl border px-4 py-3.5 text-left transition`,l.value===String(e.id)?`border-[#1a1a1a] bg-white text-[#1a1a1a] shadow-sm`:`border-slate-200 bg-white text-[#1a1a1a] hover:border-slate-300`]),onClick:t=>l.value=String(e.id)},[q(`span`,Br,z(X(Ut)(e.id,X(o))),1),q(`div`,{class:pe([`flex h-5 w-5 items-center justify-center rounded-md border transition`,l.value===String(e.id)?`border-[#1a1a1a] bg-[#1a1a1a] text-white`:`border-slate-300 bg-white`])},[l.value===String(e.id)?(I(),J(X(wt),{key:0,class:`h-3.5 w-3.5`})):V(``,!0)],2)],10,zr))),128))])]),q(`div`,Vr,[q(`button`,{type:`button`,class:`cursor-pointer rounded-lg border border-slate-200 bg-white px-5 py-2.5 text-base font-medium text-[#666] transition hover:border-slate-300 hover:bg-slate-50`,onClick:Z},z(X(a)(`common.cancel`)),1),b.value?(I(),U(`button`,{key:0,type:`button`,class:`cursor-pointer rounded-lg border border-slate-200 bg-white px-5 py-2.5 text-base font-medium text-[#666] transition hover:border-slate-300 hover:bg-slate-50`,onClick:oe},z(X(a)(`home.cards.pickExisting`)),1)):V(``,!0),q(`button`,{type:`button`,disabled:u.value||!l.value,class:`cursor-pointer rounded-lg bg-[#1a1a1a] px-5 py-2.5 text-base font-medium text-white transition hover:bg-[#2a2a2a] disabled:cursor-not-allowed disabled:opacity-50`,onClick:le},z(u.value?X(a)(`home.dialog.entering`):X(a)(`home.dialog.enterProjectCalc`)),9,Hr)])])])):V(``,!0),c.value?(I(),U(`div`,{key:2,class:`fixed inset-0 z-[90] flex items-center justify-center bg-black/45 p-4`,onClick:t[4]||=R(e=>c.value=!1,[`self`])},[q(`div`,Ur,[t[16]||=q(`div`,{class:`border-b border-slate-100 px-6 pt-6 pb-4`},[q(`h3`,{class:`text-xl font-bold text-[#1a1a1a]`},`提示`),q(`p`,{class:`mt-1.5 text-base text-[#666]`},`功能正在开发中`)],-1),q(`div`,Wr,[q(`button`,{type:`button`,class:`cursor-pointer rounded-lg bg-[#1a1a1a] px-5 py-2.5 text-base font-medium text-white transition hover:bg-[#2a2a2a]`,onClick:t[3]||=e=>c.value=!1},` 关闭 `)])])])):V(``,!0),m.value?(I(),U(`div`,{key:3,class:`fixed inset-0 z-[90] flex items-center justify-center bg-black/45 p-4`,onClick:R(me,[`self`])},[q(`div`,Gr,[q(`div`,Kr,[q(`h3`,qr,z(X(a)(`home.dialog.confirmImport`)),1),q(`p`,Jr,z(X(a)(`home.dialog.confirmImportDesc`,{file:g.value||X(a)(`home.cards.pickFile`)})),1)]),q(`div`,Yr,[P(X(mn),{variant:`outline`,onClick:me},{default:Q(()=>[G(z(X(a)(`common.cancel`)),1)]),_:1}),P(X(mn),{variant:`destructive`,onClick:$},{default:Q(()=>[G(z(X(a)(`home.dialog.confirmImportAction`)),1)]),_:1})])])])):V(``,!0)],64))}}),[[`__scopeId`,`data-v-70c281cf`]]),ni=i({MultiDrag:()=>ma,Sortable:()=>Ji,Swap:()=>fa,default:()=>Ji});function ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ii(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ri(Object(n),!0).forEach(function(t){oi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ri(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ai(e){"@babel/helpers - typeof";return ai=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ai(e)}function oi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function si(){return si=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},si.apply(this,arguments)}function ci(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function li(e,t){if(e==null)return{};var n=ci(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ui(e){return di(e)||fi(e)||pi(e)||hi()}function di(e){if(Array.isArray(e))return mi(e)}function fi(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function pi(e,t){if(e){if(typeof e==`string`)return mi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mi(e,t)}}function mi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hi(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gi(e){if(typeof window<`u`&&window.navigator)return!!navigator.userAgent.match(e)}function _i(e,t,n){e.addEventListener(t,n,!ya&&Ta)}function vi(e,t,n){e.removeEventListener(t,n,!ya&&Ta)}function yi(e,t){if(t){if(t[0]===`>`&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function bi(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function xi(e,t,n,r){if(e){n||=document;do{if(t!=null&&(t[0]===`>`?e.parentNode===n&&yi(e,t):yi(e,t))||r&&e===n)return e;if(e===n)break}while(e=bi(e))}return null}function Si(e,t,n){e&&t&&(e.classList?e.classList[n?`add`:`remove`](t):e.className=((` `+e.className+` `).replace(Ea,` `).replace(` `+t+` `,` `)+(n?` `+t:``)).replace(Ea,` `))}function Ci(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,``):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf(`webkit`)===-1&&(t=`-webkit-`+t),r[t]=n+(typeof n==`string`?``:`px`)}}function wi(e,t){var n=``;if(typeof e==`string`)n=e;else do{var r=Ci(e,`transform`);r&&r!==`none`&&(n=r+` `+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function Ti(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,a=r.length;if(n)for(;i<a;i++)n(r[i],i);return r}return[]}function Ei(){return document.scrollingElement||document.documentElement}function Di(e,t,n,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var a,o,s,c,l,u,d;if(e!==window&&e.parentNode&&e!==Ei()?(a=e.getBoundingClientRect(),o=a.top,s=a.left,c=a.bottom,l=a.right,u=a.height,d=a.width):(o=0,s=0,c=window.innerHeight,l=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(i||=e.parentNode,!ya))do if(i&&i.getBoundingClientRect&&(Ci(i,`transform`)!==`none`||n&&Ci(i,`position`)!==`static`)){var f=i.getBoundingClientRect();o-=f.top+parseInt(Ci(i,`border-top-width`)),s-=f.left+parseInt(Ci(i,`border-left-width`)),c=o+a.height,l=s+a.width;break}while(i=i.parentNode);if(r&&e!==window){var p=wi(i||e),m=p&&p.a,h=p&&p.d;p&&(o/=h,s/=m,d/=m,u/=h,c=o+u,l=s+d)}return{top:o,left:s,bottom:c,right:l,width:d,height:u}}}function Oi(e,t,n){for(var r=Pi(e,!0),i=Di(e)[t];r;){var a=Di(r)[n],o=void 0;if(o=n===`top`||n===`left`?i>=a:i<=a,!o)return r;if(r===Ei())break;r=Pi(r,!1)}return!1}function ki(e,t,n,r){for(var i=0,a=0,o=e.children;a<o.length;){if(o[a].style.display!==`none`&&o[a]!==Ji.ghost&&(r||o[a]!==Ji.dragged)&&xi(o[a],n.draggable,e,!1)){if(i===t)return o[a];i++}a++}return null}function Ai(e,t){for(var n=e.lastElementChild;n&&(n===Ji.ghost||Ci(n,`display`)===`none`||t&&!yi(n,t));)n=n.previousElementSibling;return n||null}function ji(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!==`TEMPLATE`&&e!==Ji.clone&&(!t||yi(e,t))&&n++;return n}function Mi(e){var t=0,n=0,r=Ei();if(e)do{var i=wi(e),a=i.a,o=i.d;t+=e.scrollLeft*a,n+=e.scrollTop*o}while(e!==r&&(e=e.parentNode));return[t,n]}function Ni(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n)}return-1}function Pi(e,t){if(!e||!e.getBoundingClientRect)return Ei();var n=e,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=Ci(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX==`auto`||i.overflowX==`scroll`)||n.clientHeight<n.scrollHeight&&(i.overflowY==`auto`||i.overflowY==`scroll`)){if(!n.getBoundingClientRect||n===document.body)return Ei();if(r||t)return n;r=!0}}while(n=n.parentNode);return Ei()}function Fi(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Ii(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function Li(e,t){return function(){if(!Da){var n=arguments,r=this;n.length===1?e.call(r,n[0]):e.apply(r,n),Da=setTimeout(function(){Da=void 0},t)}}}function Ri(){clearTimeout(Da),Da=void 0}function zi(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Bi(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function Vi(e,t){Ci(e,`position`,`absolute`),Ci(e,`top`,t.top),Ci(e,`left`,t.left),Ci(e,`width`,t.width),Ci(e,`height`,t.height)}function Hi(e){Ci(e,`position`,``),Ci(e,`top`,``),Ci(e,`left`,``),Ci(e,`width`,``),Ci(e,`height`,``)}function Ui(){var e=[],t;return{captureAnimationState:function(){e=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(t){if(!(Ci(t,`display`)===`none`||t===Ji.ghost)){e.push({target:t,rect:Di(t)});var n=ii({},e[e.length-1].rect);if(t.thisAnimationDuration){var r=wi(t,!0);r&&(n.top-=r.f,n.left-=r.e)}t.fromRect=n}})},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(Ni(e,{target:t}),1)},animateAll:function(n){var r=this;if(!this.options.animation){clearTimeout(t),typeof n==`function`&&n();return}var i=!1,a=0;e.forEach(function(e){var t=0,n=e.target,o=n.fromRect,s=Di(n),c=n.prevFromRect,l=n.prevToRect,u=e.rect,d=wi(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&Ii(c,s)&&!Ii(o,s)&&(u.top-s.top)/(u.left-s.left)===(o.top-s.top)/(o.left-s.left)&&(t=Gi(u,c,l,r.options)),Ii(s,o)||(n.prevFromRect=o,n.prevToRect=s,t||=r.options.animation,r.animate(n,u,s,t)),t&&(i=!0,a=Math.max(a,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout(function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null},t),n.thisAnimationDuration=t)}),clearTimeout(t),i?t=setTimeout(function(){typeof n==`function`&&n()},a):typeof n==`function`&&n(),e=[]},animate:function(e,t,n,r){if(r){Ci(e,`transition`,``),Ci(e,`transform`,``);var i=wi(this.el),a=i&&i.a,o=i&&i.d,s=(t.left-n.left)/(a||1),c=(t.top-n.top)/(o||1);e.animatingX=!!s,e.animatingY=!!c,Ci(e,`transform`,`translate3d(`+s+`px,`+c+`px,0)`),this.forRepaintDummy=Wi(e),Ci(e,`transition`,`transform `+r+`ms`+(this.options.easing?` `+this.options.easing:``)),Ci(e,`transform`,`translate3d(0,0,0)`),typeof e.animated==`number`&&clearTimeout(e.animated),e.animated=setTimeout(function(){Ci(e,`transition`,``),Ci(e,`transform`,``),e.animated=!1,e.animatingX=!1,e.animatingY=!1},r)}}}}function Wi(e){return e.offsetWidth}function Gi(e,t,n,r){return Math.sqrt((t.top-e.top)**2+(t.left-e.left)**2)/Math.sqrt((t.top-n.top)**2+(t.left-n.left)**2)*r.animation}function Ki(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,a=e.cloneEl,o=e.toEl,s=e.fromEl,c=e.oldIndex,l=e.newIndex,u=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,p=e.putSortable,m=e.extraEventProperties;if(t||=n&&n[Oa],t){var h,g=t.options,_=`on`+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!ya&&!ba?h=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(h=document.createEvent(`Event`),h.initEvent(r,!0,!0)),h.to=o||n,h.from=s||n,h.item=i||n,h.clone=a,h.oldIndex=c,h.newIndex=l,h.oldDraggableIndex=u,h.newDraggableIndex=d,h.originalEvent=f,h.pullMode=p?p.lastPutMode:void 0;var v=ii(ii({},m),ja.getEventProperties(r,t));for(var y in v)h[y]=v[y];n&&n.dispatchEvent(h),g[_]&&g[_].call(t,h)}}function qi(e){Ki(ii({putSortable:qa,cloneEl:Ba,targetEl:Pa,rootEl:La,oldIndex:Ha,oldDraggableIndex:Wa,newIndex:Ua,newDraggableIndex:Ga},e))}function Ji(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw`Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;this.el=e,this.options=t=si({},t),e[Oa]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?`>li`:`>*`,swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return yo(e,this.options)},ghostClass:`sortable-ghost`,chosenClass:`sortable-chosen`,dragClass:`sortable-drag`,ignore:`a, img`,filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData(`Text`,t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:`data-id`,delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:`sortable-fallback`,fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Ji.supportPointer!==!1&&`PointerEvent`in window&&!Sa,emptyInsertThreshold:5};for(var r in ja.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in So(t),this)i.charAt(0)===`_`&&typeof this[i]==`function`&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:_o,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?_i(e,`pointerdown`,this._onTapStart):(_i(e,`mousedown`,this._onTapStart),_i(e,`touchstart`,this._onTapStart)),this.nativeDraggable&&(_i(e,`dragover`,this),_i(e,`dragenter`,this)),Xa.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),si(this,Ui())}function Yi(e){e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),e.cancelable&&e.preventDefault()}function Xi(e,t,n,r,i,a,o,s){var c,l=e[Oa],u=l.options.onMove,d;return window.CustomEvent&&!ya&&!ba?c=new CustomEvent(`move`,{bubbles:!0,cancelable:!0}):(c=document.createEvent(`Event`),c.initEvent(`move`,!0,!0)),c.to=t,c.from=e,c.dragged=n,c.draggedRect=r,c.related=i||t,c.relatedRect=a||Di(t),c.willInsertAfter=s,c.originalEvent=o,e.dispatchEvent(c),u&&(d=u.call(l,c,o)),d}function Zi(e){e.draggable=!1}function Qi(){fo=!1}function $i(e,t,n){var r=Di(ki(n.el,0,n.options,!0)),i=10;return t?e.clientX<r.left-i||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-i||e.clientY<r.bottom&&e.clientX<r.left}function ea(e,t,n){var r=Di(Ai(n.el,n.options.draggable)),i=10;return t?e.clientX>r.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function ta(e,t,n,r,i,a,o,s){var c=r?e.clientY:e.clientX,l=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!o){if(s&&co<l*i){if(!oo&&(ao===1?c>u+l*a/2:c<d-l*a/2)&&(oo=!0),oo)f=!0;else if(ao===1?c<u+co:c>d-co)return-ao}else if(c>u+l*(1-i)/2&&c<d-l*(1-i)/2)return na(t)}return f||=o,f&&(c<u+l*a/2||c>d-l*a/2)?c>u+l/2?1:-1:0}function na(e){return ji(Pa)<ji(e)?1:-1}function ra(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function ia(e){po.length=0;for(var t=e.getElementsByTagName(`input`),n=t.length;n--;){var r=t[n];r.checked&&po.push(r)}}function aa(e){return setTimeout(e,0)}function oa(e){return clearTimeout(e)}function sa(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)e.charAt(0)===`_`&&typeof this[e]==`function`&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?_i(document,`dragover`,this._handleAutoScroll):this.options.supportPointer?_i(document,`pointermove`,this._handleFallbackAutoScroll):t.touches?_i(document,`touchmove`,this._handleFallbackAutoScroll):_i(document,`mousemove`,this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?vi(document,`dragover`,this._handleAutoScroll):(vi(document,`pointermove`,this._handleFallbackAutoScroll),vi(document,`touchmove`,this._handleFallbackAutoScroll),vi(document,`mousemove`,this._handleFallbackAutoScroll)),la(),ca(),Ri()},nulling:function(){No=ko=Oo=Ao=Po=jo=Mo=null,Do.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,i);if(No=e,t||this.options.forceAutoScrollFallback||ba||ya||Sa){Fo(e,this.options,a,t);var o=Pi(a,!0);Ao&&(!Po||r!==jo||i!==Mo)&&(Po&&la(),Po=setInterval(function(){var a=Pi(document.elementFromPoint(r,i),!0);a!==o&&(o=a,ca()),Fo(e,n.options,a,t)},10),jo=r,Mo=i)}else{if(!this.options.bubbleScroll||Pi(a,!0)===Ei()){ca();return}Fo(e,this.options,Pi(a,!1),!1)}}},si(e,{pluginName:`scroll`,initializeByDefault:!0})}function ca(){Do.forEach(function(e){clearInterval(e.pid)}),Do=[]}function la(){clearInterval(Po)}function ua(){}function da(){}function fa(){function e(){this.defaults={swapClass:`sortable-swap-highlight`}}return e.prototype={dragStart:function(e){Lo=e.dragEl},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,i=e.activeSortable,a=e.changed,o=e.cancel;if(i.options.swap){var s=this.sortable.el,c=this.options;if(n&&n!==s){var l=Lo;r(n)===!1?Lo=null:(Si(n,c.swapClass,!0),Lo=n),l&&l!==Lo&&Si(l,c.swapClass,!1)}a(),t(!0),o()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,i=n||this.sortable,a=this.options;Lo&&Si(Lo,a.swapClass,!1),Lo&&(a.swap||n&&n.options.swap)&&r!==Lo&&(i.captureAnimationState(),i!==t&&t.captureAnimationState(),pa(r,Lo),i.animateAll(),i!==t&&t.animateAll())},nulling:function(){Lo=null}},si(e,{pluginName:`swap`,eventProperties:function(){return{swapItem:Lo}}})}function pa(e,t){var n=e.parentNode,r=t.parentNode,i,a;!n||!r||n.isEqualNode(t)||r.isEqualNode(e)||(i=ji(e),a=ji(t),n.isEqualNode(r)&&i<a&&a++,n.insertBefore(t,n.children[i]),r.insertBefore(e,r.children[a]))}function ma(){function e(e){for(var t in this)t.charAt(0)===`_`&&typeof this[t]==`function`&&(this[t]=this[t].bind(this));e.options.supportPointer?_i(document,`pointerup`,this._deselectMultiDrag):(_i(document,`mouseup`,this._deselectMultiDrag),_i(document,`touchend`,this._deselectMultiDrag)),_i(document,`keydown`,this._checkKeyDown),_i(document,`keyup`,this._checkKeyUp),this.defaults={selectedClass:`sortable-selected`,multiDragKey:null,setData:function(t,n){var r=``;Ro.length&&Vo===e?Ro.forEach(function(e,t){r+=(t?`, `:``)+e.textContent}):r=n.textContent,t.setData(`Text`,r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){Go=e.dragEl},delayEnded:function(){this.isMultiDrag=~Ro.indexOf(Go)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<Ro.length;r++)zo.push(Bi(Ro[r])),zo[r].sortableIndex=Ro[r].sortableIndex,zo[r].draggable=!1,zo[r].style[`will-change`]=``,Si(zo[r],this.options.selectedClass,!1),Ro[r]===Go&&Si(zo[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,i=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Ro.length&&Vo===t&&(ga(!0,n),r(`clone`),i()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(ga(!1,n),zo.forEach(function(e){Ci(e,`display`,``)}),t(),qo=!1,r())},hideClone:function(e){var t=this;e.sortable;var n=e.cloneNowHidden,r=e.cancel;this.isMultiDrag&&(zo.forEach(function(e){Ci(e,`display`,`none`),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)}),n(),qo=!0,r())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&Vo&&Vo.multiDrag._deselectMultiDrag(),Ro.forEach(function(e){e.sortableIndex=ji(e)}),Ro=Ro.sort(function(e,t){return e.sortableIndex-t.sortableIndex}),Wo=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){Ro.forEach(function(e){e!==Go&&Ci(e,`position`,`absolute`)});var r=Di(Go,!1,!0,!0);Ro.forEach(function(e){e!==Go&&Vi(e,r)}),Uo=!0,Ho=!0}n.animateAll(function(){Uo=!1,Ho=!1,t.options.animation&&Ro.forEach(function(e){Hi(e)}),t.options.sort&&_a()})}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;Uo&&~Ro.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,i=e.dragRect;Ro.length>1&&(Ro.forEach(function(e){r.addAnimationState({target:e,rect:Uo?Di(e):i}),Hi(e),e.fromRect=i,t.removeAnimationState(e)}),Uo=!1,ha(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,i=e.activeSortable,a=e.parentEl,o=e.putSortable,s=this.options;if(r){if(n&&i._hideClone(),Ho=!1,s.animation&&Ro.length>1&&(Uo||!n&&!i.options.sort&&!o)){var c=Di(Go,!1,!0,!0);Ro.forEach(function(e){e!==Go&&(Vi(e,c),a.appendChild(e))}),Uo=!0}if(!n)if(Uo||_a(),Ro.length>1){var l=qo;i._showClone(t),i.options.animation&&!qo&&l&&zo.forEach(function(e){i.addAnimationState({target:e,rect:Ko}),e.fromRect=Ko,e.thisAnimationDuration=null})}else i._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(Ro.forEach(function(e){e.thisAnimationDuration=null}),r.options.animation&&!n&&r.multiDrag.isMultiDrag){Ko=si({},t);var i=wi(Go,!0);Ko.top-=i.f,Ko.left-=i.e}},dragOverAnimationComplete:function(){Uo&&(Uo=!1,_a())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,i=e.sortable,a=e.dispatchSortableEvent,o=e.oldIndex,s=e.putSortable,c=s||this.sortable;if(t){var l=this.options,u=r.children;if(!Wo)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Si(Go,l.selectedClass,!~Ro.indexOf(Go)),~Ro.indexOf(Go))Ro.splice(Ro.indexOf(Go),1),Bo=null,Ki({sortable:i,rootEl:n,name:`deselect`,targetEl:Go,originalEvt:t});else{if(Ro.push(Go),Ki({sortable:i,rootEl:n,name:`select`,targetEl:Go,originalEvt:t}),t.shiftKey&&Bo&&i.el.contains(Bo)){var d=ji(Bo),f=ji(Go);if(~d&&~f&&d!==f){var p,m;for(f>d?(m=d,p=f):(m=f,p=d+1);m<p;m++)~Ro.indexOf(u[m])||(Si(u[m],l.selectedClass,!0),Ro.push(u[m]),Ki({sortable:i,rootEl:n,name:`select`,targetEl:u[m],originalEvt:t}))}}else Bo=Go;Vo=c}if(Wo&&this.isMultiDrag){if(Uo=!1,(r[Oa].options.sort||r!==n)&&Ro.length>1){var h=Di(Go),g=ji(Go,`:not(.`+this.options.selectedClass+`)`);if(!Ho&&l.animation&&(Go.thisAnimationDuration=null),c.captureAnimationState(),!Ho&&(l.animation&&(Go.fromRect=h,Ro.forEach(function(e){if(e.thisAnimationDuration=null,e!==Go){var t=Uo?Di(e):h;e.fromRect=t,c.addAnimationState({target:e,rect:t})}})),_a(),Ro.forEach(function(e){u[g]?r.insertBefore(e,u[g]):r.appendChild(e),g++}),o===ji(Go))){var _=!1;Ro.forEach(function(e){if(e.sortableIndex!==ji(e)){_=!0;return}}),_&&a(`update`)}Ro.forEach(function(e){Hi(e)}),c.animateAll()}Vo=c}(n===r||s&&s.lastPutMode!==`clone`)&&zo.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)})}},nullingGlobal:function(){this.isMultiDrag=Wo=!1,zo.length=0},destroyGlobal:function(){this._deselectMultiDrag(),vi(document,`pointerup`,this._deselectMultiDrag),vi(document,`mouseup`,this._deselectMultiDrag),vi(document,`touchend`,this._deselectMultiDrag),vi(document,`keydown`,this._checkKeyDown),vi(document,`keyup`,this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(Wo!==void 0&&Wo)&&Vo===this.sortable&&!(e&&xi(e.target,this.options.draggable,this.sortable.el,!1))&&!(e&&e.button!==0))for(;Ro.length;){var t=Ro[0];Si(t,this.options.selectedClass,!1),Ro.shift(),Ki({sortable:this.sortable,rootEl:this.sortable.el,name:`deselect`,targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},si(e,{pluginName:`multiDrag`,utils:{select:function(e){var t=e.parentNode[Oa];!t||!t.options.multiDrag||~Ro.indexOf(e)||(Vo&&Vo!==t&&(Vo.multiDrag._deselectMultiDrag(),Vo=t),Si(e,t.options.selectedClass,!0),Ro.push(e))},deselect:function(e){var t=e.parentNode[Oa],n=Ro.indexOf(e);!t||!t.options.multiDrag||!~n||(Si(e,t.options.selectedClass,!1),Ro.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return Ro.forEach(function(r){t.push({multiDragElement:r,index:r.sortableIndex});var i=Uo&&r!==Go?-1:Uo?ji(r,`:not(.`+e.options.selectedClass+`)`):ji(r);n.push({multiDragElement:r,index:i})}),{items:ui(Ro),clones:[].concat(zo),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return e=e.toLowerCase(),e===`ctrl`?e=`Control`:e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function ha(e,t){Ro.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function ga(e,t){zo.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function _a(){Ro.forEach(function(e){e!==Go&&e.parentNode&&e.parentNode.removeChild(e)})}var va,ya,ba,xa,Sa,Ca,wa,Ta,Ea,Da,Oa,ka,Aa,ja,Ma,Na,Pa,Fa,Ia,La,Ra,za,Ba,Va,Ha,Ua,Wa,Ga,Ka,qa,Ja,Ya,Xa,Za,Qa,$a,eo,to,no,ro,io,ao,oo,so,co,lo,uo,fo,po,mo,ho,go,_o,vo,yo,bo,xo,So,Co,wo,To,Eo,Do,Oo,ko,Ao,jo,Mo,No,Po,Fo,Io,Lo,Ro,zo,Bo,Vo,Ho,Uo,Wo,Go,Ko,qo,Jo=n((()=>{va=`1.14.0`,ya=gi(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ba=gi(/Edge/i),xa=gi(/firefox/i),Sa=gi(/safari/i)&&!gi(/chrome/i)&&!gi(/android/i),Ca=gi(/iP(ad|od|hone)/i),wa=gi(/chrome/i)&&gi(/android/i),Ta={capture:!1,passive:!1},Ea=/\s+/g,Oa=`Sortable`+new Date().getTime(),ka=[],Aa={initializeByDefault:!0},ja={mount:function(e){for(var t in Aa)Aa.hasOwnProperty(t)&&!(t in e)&&(e[t]=Aa[t]);ka.forEach(function(t){if(t.pluginName===e.pluginName)throw`Sortable: Cannot mount plugin ${e.pluginName} more than once`}),ka.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+`Global`;ka.forEach(function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](ii({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](ii({sortable:t},n)))})},initializePlugins:function(e,t,n,r){for(var i in ka.forEach(function(r){var i=r.pluginName;if(!(!e.options[i]&&!r.initializeByDefault)){var a=new r(e,t,e.options);a.sortable=e,a.options=e.options,e[i]=a,si(n,a.defaults)}}),e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);a!==void 0&&(e.options[i]=a)}},getEventProperties:function(e,t){var n={};return ka.forEach(function(r){typeof r.eventProperties==`function`&&si(n,r.eventProperties.call(t[r.pluginName],e))}),n},modifyOption:function(e,t,n){var r;return ka.forEach(function(i){e[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[t]==`function`&&(r=i.optionListeners[t].call(e[i.pluginName],n))}),r}},Ma=[`evt`],Na=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,i=li(n,Ma);ja.pluginEvent.bind(Ji)(e,t,ii({dragEl:Pa,parentEl:Fa,ghostEl:Ia,rootEl:La,nextEl:Ra,lastDownEl:za,cloneEl:Ba,cloneHidden:Va,dragStarted:ro,putSortable:qa,activeSortable:Ji.active,originalEvent:r,oldIndex:Ha,oldDraggableIndex:Wa,newIndex:Ua,newDraggableIndex:Ga,hideGhostForTarget:Co,unhideGhostForTarget:wo,cloneNowHidden:function(){Va=!0},cloneNowShown:function(){Va=!1},dispatchSortableEvent:function(e){qi({sortable:t,name:e,originalEvent:r})}},i))},Ja=!1,Ya=!1,Xa=[],oo=!1,so=!1,uo=[],fo=!1,po=[],mo=typeof document<`u`,ho=Ca,go=ba||ya?`cssFloat`:`float`,_o=mo&&!wa&&!Ca&&`draggable`in document.createElement(`div`),vo=function(){if(mo){if(ya)return!1;var e=document.createElement(`x`);return e.style.cssText=`pointer-events:auto`,e.style.pointerEvents===`auto`}}(),yo=function(e,t){var n=Ci(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=ki(e,0,t),a=ki(e,1,t),o=i&&Ci(i),s=a&&Ci(a),c=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+Di(i).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Di(a).width;if(n.display===`flex`)return n.flexDirection===`column`||n.flexDirection===`column-reverse`?`vertical`:`horizontal`;if(n.display===`grid`)return n.gridTemplateColumns.split(` `).length<=1?`vertical`:`horizontal`;if(i&&o.float&&o.float!==`none`){var u=o.float===`left`?`left`:`right`;return a&&(s.clear===`both`||s.clear===u)?`vertical`:`horizontal`}return i&&(o.display===`block`||o.display===`flex`||o.display===`table`||o.display===`grid`||c>=r&&n[go]===`none`||a&&n[go]===`none`&&c+l>r)?`vertical`:`horizontal`},bo=function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,a=n?e.width:e.height,o=n?t.left:t.top,s=n?t.right:t.bottom,c=n?t.width:t.height;return r===o||i===s||r+a/2===o+c/2},xo=function(e,t){var n;return Xa.some(function(r){var i=r[Oa].options.emptyInsertThreshold;if(!(!i||Ai(r))){var a=Di(r),o=e>=a.left-i&&e<=a.right+i,s=t>=a.top-i&&t<=a.bottom+i;if(o&&s)return n=r}}),n},So=function(e){function t(e,n){return function(r,i,a,o){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(e==null&&(n||s))return!0;if(e==null||e===!1)return!1;if(n&&e===`clone`)return e;if(typeof e==`function`)return t(e(r,i,a,o),n)(r,i,a,o);var c=(n?r:i).options.group.name;return e===!0||typeof e==`string`&&e===c||e.join&&e.indexOf(c)>-1}}var n={},r=e.group;(!r||ai(r)!=`object`)&&(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Co=function(){!vo&&Ia&&Ci(Ia,`display`,`none`)},wo=function(){!vo&&Ia&&Ci(Ia,`display`,``)},mo&&document.addEventListener(`click`,function(e){if(Ya)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ya=!1,!1},!0),To=function(e){if(Pa){e=e.touches?e.touches[0]:e;var t=xo(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Oa]._onDragOver(n)}}},Eo=function(e){Pa&&Pa.parentNode[Oa]._isOutsideThisEl(e.target)},Ji.prototype={constructor:Ji,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(io=null)},_getDirection:function(e,t){return typeof this.options.direction==`function`?this.options.direction.call(this,e,t,Pa):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,a=e.type,o=e.touches&&e.touches[0]||e.pointerType&&e.pointerType===`touch`&&e,s=(o||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,l=r.filter;if(ia(n),!Pa&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||r.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Sa&&s&&s.tagName.toUpperCase()===`SELECT`)&&(s=xi(s,r.draggable,n,!1),!(s&&s.animated)&&za!==s)){if(Ha=ji(s),Wa=ji(s,r.draggable),typeof l==`function`){if(l.call(this,e,s,this)){qi({sortable:t,rootEl:c,name:`filter`,targetEl:s,toEl:n,fromEl:n}),Na(`filter`,t,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(l&&(l=l.split(`,`).some(function(r){if(r=xi(c,r.trim(),n,!1),r)return qi({sortable:t,rootEl:r,name:`filter`,targetEl:s,fromEl:n,toEl:n}),Na(`filter`,t,{evt:e}),!0}),l)){i&&e.cancelable&&e.preventDefault();return}r.handle&&!xi(c,r.handle,n,!1)||this._prepareDragStart(e,o,s)}}},_prepareDragStart:function(e,t,n){var r=this,i=r.el,a=r.options,o=i.ownerDocument,s;if(n&&!Pa&&n.parentNode===i){var c=Di(n);if(La=i,Pa=n,Fa=Pa.parentNode,Ra=Pa.nextSibling,za=n,Ka=a.group,Ji.dragged=Pa,Za={target:Pa,clientX:(t||e).clientX,clientY:(t||e).clientY},to=Za.clientX-c.left,no=Za.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Pa.style[`will-change`]=`all`,s=function(){if(Na(`delayEnded`,r,{evt:e}),Ji.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!xa&&r.nativeDraggable&&(Pa.draggable=!0),r._triggerDragStart(e,t),qi({sortable:r,name:`choose`,originalEvent:e}),Si(Pa,a.chosenClass,!0)},a.ignore.split(`,`).forEach(function(e){Ti(Pa,e.trim(),Zi)}),_i(o,`dragover`,To),_i(o,`mousemove`,To),_i(o,`touchmove`,To),_i(o,`mouseup`,r._onDrop),_i(o,`touchend`,r._onDrop),_i(o,`touchcancel`,r._onDrop),xa&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Pa.draggable=!0),Na(`delayStart`,this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(ba||ya))){if(Ji.eventCanceled){this._onDrop();return}_i(o,`mouseup`,r._disableDelayedDrag),_i(o,`touchend`,r._disableDelayedDrag),_i(o,`touchcancel`,r._disableDelayedDrag),_i(o,`mousemove`,r._delayedDragTouchMoveHandler),_i(o,`touchmove`,r._delayedDragTouchMoveHandler),a.supportPointer&&_i(o,`pointermove`,r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Pa&&Zi(Pa),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;vi(e,`mouseup`,this._disableDelayedDrag),vi(e,`touchend`,this._disableDelayedDrag),vi(e,`touchcancel`,this._disableDelayedDrag),vi(e,`mousemove`,this._delayedDragTouchMoveHandler),vi(e,`touchmove`,this._delayedDragTouchMoveHandler),vi(e,`pointermove`,this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t||=e.pointerType==`touch`&&e,!this.nativeDraggable||t?this.options.supportPointer?_i(document,`pointermove`,this._onTouchMove):t?_i(document,`touchmove`,this._onTouchMove):_i(document,`mousemove`,this._onTouchMove):(_i(Pa,`dragend`,this),_i(La,`dragstart`,this._onDragStart));try{document.selection?aa(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(Ja=!1,La&&Pa){Na(`dragStarted`,this,{evt:t}),this.nativeDraggable&&_i(document,`dragover`,Eo);var n=this.options;!e&&Si(Pa,n.dragClass,!1),Si(Pa,n.ghostClass,!0),Ji.active=this,e&&this._appendGhost(),qi({sortable:this,name:`start`,originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Qa){this._lastX=Qa.clientX,this._lastY=Qa.clientY,Co();for(var e=document.elementFromPoint(Qa.clientX,Qa.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Qa.clientX,Qa.clientY),e!==t);)t=e;if(Pa.parentNode[Oa]._isOutsideThisEl(e),t)do{if(t[Oa]){var n=void 0;if(n=t[Oa]._onDragOver({clientX:Qa.clientX,clientY:Qa.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);wo()}},_onTouchMove:function(e){if(Za){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,a=Ia&&wi(Ia,!0),o=Ia&&a&&a.a,s=Ia&&a&&a.d,c=ho&&lo&&Mi(lo),l=(i.clientX-Za.clientX+r.x)/(o||1)+(c?c[0]-uo[0]:0)/(o||1),u=(i.clientY-Za.clientY+r.y)/(s||1)+(c?c[1]-uo[1]:0)/(s||1);if(!Ji.active&&!Ja){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(Ia){a?(a.e+=l-($a||0),a.f+=u-(eo||0)):a={a:1,b:0,c:0,d:1,e:l,f:u};var d=`matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;Ci(Ia,`webkitTransform`,d),Ci(Ia,`mozTransform`,d),Ci(Ia,`msTransform`,d),Ci(Ia,`transform`,d),$a=l,eo=u,Qa=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Ia){var e=this.options.fallbackOnBody?document.body:La,t=Di(Pa,!0,ho,!0,e),n=this.options;if(ho){for(lo=e;Ci(lo,`position`)===`static`&&Ci(lo,`transform`)===`none`&&lo!==document;)lo=lo.parentNode;lo!==document.body&&lo!==document.documentElement?(lo===document&&(lo=Ei()),t.top+=lo.scrollTop,t.left+=lo.scrollLeft):lo=Ei(),uo=Mi(lo)}Ia=Pa.cloneNode(!0),Si(Ia,n.ghostClass,!1),Si(Ia,n.fallbackClass,!0),Si(Ia,n.dragClass,!0),Ci(Ia,`transition`,``),Ci(Ia,`transform`,``),Ci(Ia,`box-sizing`,`border-box`),Ci(Ia,`margin`,0),Ci(Ia,`top`,t.top),Ci(Ia,`left`,t.left),Ci(Ia,`width`,t.width),Ci(Ia,`height`,t.height),Ci(Ia,`opacity`,`0.8`),Ci(Ia,`position`,ho?`absolute`:`fixed`),Ci(Ia,`zIndex`,`100000`),Ci(Ia,`pointerEvents`,`none`),Ji.ghost=Ia,e.appendChild(Ia),Ci(Ia,`transform-origin`,to/parseInt(Ia.style.width)*100+`% `+no/parseInt(Ia.style.height)*100+`%`)}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;if(Na(`dragStart`,this,{evt:e}),Ji.eventCanceled){this._onDrop();return}Na(`setupClone`,this),Ji.eventCanceled||(Ba=Bi(Pa),Ba.draggable=!1,Ba.style[`will-change`]=``,this._hideClone(),Si(Ba,this.options.chosenClass,!1),Ji.clone=Ba),n.cloneId=aa(function(){Na(`clone`,n),!Ji.eventCanceled&&(n.options.removeCloneOnHide||La.insertBefore(Ba,Pa),n._hideClone(),qi({sortable:n,name:`clone`}))}),!t&&Si(Pa,i.dragClass,!0),t?(Ya=!0,n._loopId=setInterval(n._emulateDragOver,50)):(vi(document,`mouseup`,n._onDrop),vi(document,`touchend`,n._onDrop),vi(document,`touchcancel`,n._onDrop),r&&(r.effectAllowed=`move`,i.setData&&i.setData.call(n,r,Pa)),_i(document,`drop`,n),Ci(Pa,`transform`,`translateZ(0)`)),Ja=!0,n._dragStartId=aa(n._dragStarted.bind(n,t,e)),_i(document,`selectstart`,n),ro=!0,Sa&&Ci(document.body,`user-select`,`none`)},_onDragOver:function(e){var t=this.el,n=e.target,r,i,a,o=this.options,s=o.group,c=Ji.active,l=Ka===s,u=o.sort,d=qa||c,f,p=this,m=!1;if(fo)return;function h(o,s){Na(o,p,ii({evt:e,isOwner:l,axis:f?`vertical`:`horizontal`,revert:a,dragRect:r,targetRect:i,canSort:u,fromSortable:d,target:n,completed:_,onMove:function(n,i){return Xi(La,t,Pa,r,n,Di(n),e,i)},changed:v},s))}function g(){h(`dragOverAnimationCapture`),p.captureAnimationState(),p!==d&&d.captureAnimationState()}function _(r){return h(`dragOverCompleted`,{insertion:r}),r&&(l?c._hideClone():c._showClone(p),p!==d&&(Si(Pa,qa?qa.options.ghostClass:c.options.ghostClass,!1),Si(Pa,o.ghostClass,!0)),qa!==p&&p!==Ji.active?qa=p:p===Ji.active&&qa&&(qa=null),d===p&&(p._ignoreWhileAnimating=n),p.animateAll(function(){h(`dragOverAnimationComplete`),p._ignoreWhileAnimating=null}),p!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(n===Pa&&!Pa.animated||n===t&&!n.animated)&&(io=null),!o.dragoverBubble&&!e.rootEl&&n!==document&&(Pa.parentNode[Oa]._isOutsideThisEl(e.target),!r&&To(e)),!o.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function v(){Ua=ji(Pa),Ga=ji(Pa,o.draggable),qi({sortable:p,name:`change`,toEl:t,newIndex:Ua,newDraggableIndex:Ga,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=xi(n,o.draggable,t,!0),h(`dragOver`),Ji.eventCanceled)return m;if(Pa.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return _(!1);if(Ya=!1,c&&!o.disabled&&(l?u||(a=Fa!==La):qa===this||(this.lastPutMode=Ka.checkPull(this,c,Pa,e))&&s.checkPut(this,c,Pa,e))){if(f=this._getDirection(e,n)===`vertical`,r=Di(Pa),h(`dragOverValid`),Ji.eventCanceled)return m;if(a)return Fa=La,g(),this._hideClone(),h(`revert`),Ji.eventCanceled||(Ra?La.insertBefore(Pa,Ra):La.appendChild(Pa)),_(!0);var y=Ai(t,o.draggable);if(!y||ea(e,f,this)&&!y.animated){if(y===Pa)return _(!1);if(y&&t===e.target&&(n=y),n&&(i=Di(n)),Xi(La,t,Pa,r,n,i,e,!!n)!==!1)return g(),t.appendChild(Pa),Fa=t,v(),_(!0)}else if(y&&$i(e,f,this)){var b=ki(t,0,o,!0);if(b===Pa)return _(!1);if(n=b,i=Di(n),Xi(La,t,Pa,r,n,i,e,!1)!==!1)return g(),t.insertBefore(Pa,b),Fa=t,v(),_(!0)}else if(n.parentNode===t){i=Di(n);var x=0,S,C=Pa.parentNode!==t,w=!bo(Pa.animated&&Pa.toRect||r,n.animated&&n.toRect||i,f),T=f?`top`:`left`,E=Oi(n,`top`,`top`)||Oi(Pa,`top`,`top`),D=E?E.scrollTop:void 0;io!==n&&(S=i[T],oo=!1,so=!w&&o.invertSwap||C),x=ta(e,n,i,f,w?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,so,io===n);var O;if(x!==0){var k=ji(Pa);do k-=x,O=Fa.children[k];while(O&&(Ci(O,`display`)===`none`||O===Ia))}if(x===0||O===n)return _(!1);io=n,ao=x;var A=n.nextElementSibling,j=!1;j=x===1;var M=Xi(La,t,Pa,r,n,i,e,j);if(M!==!1)return(M===1||M===-1)&&(j=M===1),fo=!0,setTimeout(Qi,30),g(),j&&!A?t.appendChild(Pa):n.parentNode.insertBefore(Pa,j?A:n),E&&zi(E,0,D-E.scrollTop),Fa=Pa.parentNode,S!==void 0&&!so&&(co=Math.abs(S-Di(n)[T])),v(),_(!0)}if(t.contains(Pa))return _(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){vi(document,`mousemove`,this._onTouchMove),vi(document,`touchmove`,this._onTouchMove),vi(document,`pointermove`,this._onTouchMove),vi(document,`dragover`,To),vi(document,`mousemove`,To),vi(document,`touchmove`,To)},_offUpEvents:function(){var e=this.el.ownerDocument;vi(e,`mouseup`,this._onDrop),vi(e,`touchend`,this._onDrop),vi(e,`pointerup`,this._onDrop),vi(e,`touchcancel`,this._onDrop),vi(document,`selectstart`,this)},_onDrop:function(e){var t=this.el,n=this.options;if(Ua=ji(Pa),Ga=ji(Pa,n.draggable),Na(`drop`,this,{evt:e}),Fa=Pa&&Pa.parentNode,Ua=ji(Pa),Ga=ji(Pa,n.draggable),Ji.eventCanceled){this._nulling();return}Ja=!1,so=!1,oo=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),oa(this.cloneId),oa(this._dragStartId),this.nativeDraggable&&(vi(document,`drop`,this),vi(t,`dragstart`,this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Sa&&Ci(document.body,`user-select`,``),Ci(Pa,`transform`,``),e&&(ro&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),Ia&&Ia.parentNode&&Ia.parentNode.removeChild(Ia),(La===Fa||qa&&qa.lastPutMode!==`clone`)&&Ba&&Ba.parentNode&&Ba.parentNode.removeChild(Ba),Pa&&(this.nativeDraggable&&vi(Pa,`dragend`,this),Zi(Pa),Pa.style[`will-change`]=``,ro&&!Ja&&Si(Pa,qa?qa.options.ghostClass:this.options.ghostClass,!1),Si(Pa,this.options.chosenClass,!1),qi({sortable:this,name:`unchoose`,toEl:Fa,newIndex:null,newDraggableIndex:null,originalEvent:e}),La===Fa?Ua!==Ha&&Ua>=0&&(qi({sortable:this,name:`update`,toEl:Fa,originalEvent:e}),qi({sortable:this,name:`sort`,toEl:Fa,originalEvent:e})):(Ua>=0&&(qi({rootEl:Fa,name:`add`,toEl:Fa,fromEl:La,originalEvent:e}),qi({sortable:this,name:`remove`,toEl:Fa,originalEvent:e}),qi({rootEl:Fa,name:`sort`,toEl:Fa,fromEl:La,originalEvent:e}),qi({sortable:this,name:`sort`,toEl:Fa,originalEvent:e})),qa&&qa.save()),Ji.active&&((Ua==null||Ua===-1)&&(Ua=Ha,Ga=Wa),qi({sortable:this,name:`end`,toEl:Fa,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Na(`nulling`,this),La=Pa=Fa=Ia=Ra=Ba=za=Va=Za=Qa=ro=Ua=Ga=Ha=Wa=io=ao=qa=Ka=Ji.dragged=Ji.ghost=Ji.clone=Ji.active=null,po.forEach(function(e){e.checked=!0}),po.length=$a=eo=0},handleEvent:function(e){switch(e.type){case`drop`:case`dragend`:this._onDrop(e);break;case`dragenter`:case`dragover`:Pa&&(this._onDragOver(e),Yi(e));break;case`selectstart`:e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,r=0,i=n.length,a=this.options;r<i;r++)t=n[r],xi(t,a.draggable,this.el,!1)&&e.push(t.getAttribute(a.dataIdAttr)||ra(t));return e},sort:function(e,t){var n={},r=this.el;this.toArray().forEach(function(e,t){var i=r.children[t];xi(i,this.options.draggable,r,!1)&&(n[e]=i)},this),t&&this.captureAnimationState(),e.forEach(function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return xi(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(t===void 0)return n[e];var r=ja.modifyOption(this,e,t);r===void 0?n[e]=t:n[e]=r,e===`group`&&So(n)},destroy:function(){Na(`destroy`,this);var e=this.el;e[Oa]=null,vi(e,`mousedown`,this._onTapStart),vi(e,`touchstart`,this._onTapStart),vi(e,`pointerdown`,this._onTapStart),this.nativeDraggable&&(vi(e,`dragover`,this),vi(e,`dragenter`,this)),Array.prototype.forEach.call(e.querySelectorAll(`[draggable]`),function(e){e.removeAttribute(`draggable`)}),this._onDrop(),this._disableDelayedDragEvents(),Xa.splice(Xa.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Va){if(Na(`hideClone`,this),Ji.eventCanceled)return;Ci(Ba,`display`,`none`),this.options.removeCloneOnHide&&Ba.parentNode&&Ba.parentNode.removeChild(Ba),Va=!0}},_showClone:function(e){if(e.lastPutMode!==`clone`){this._hideClone();return}if(Va){if(Na(`showClone`,this),Ji.eventCanceled)return;Pa.parentNode==La&&!this.options.group.revertClone?La.insertBefore(Ba,Pa):Ra?La.insertBefore(Ba,Ra):La.appendChild(Ba),this.options.group.revertClone&&this.animate(Pa,Ba),Ci(Ba,`display`,``),Va=!1}}},mo&&_i(document,`touchmove`,function(e){(Ji.active||Ja)&&e.cancelable&&e.preventDefault()}),Ji.utils={on:_i,off:vi,css:Ci,find:Ti,is:function(e,t){return!!xi(e,t,e,!1)},extend:Fi,throttle:Li,closest:xi,toggleClass:Si,clone:Bi,index:ji,nextTick:aa,cancelNextTick:oa,detectDirection:yo,getChild:ki},Ji.get=function(e){return e[Oa]},Ji.mount=function(){var e=[...arguments];e[0].constructor===Array&&(e=e[0]),e.forEach(function(e){if(!e.prototype||!e.prototype.constructor)throw`Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;e.utils&&(Ji.utils=ii(ii({},Ji.utils),e.utils)),ja.mount(e)})},Ji.create=function(e,t){return new Ji(e,t)},Ji.version=va,Do=[],Ao=!1,Fo=Li(function(e,t,n,r){if(t.scroll){var i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,o=t.scrollSensitivity,s=t.scrollSpeed,c=Ei(),l=!1,u;ko!==n&&(ko=n,ca(),Oo=t.scroll,u=t.scrollFn,Oo===!0&&(Oo=Pi(n,!0)));var d=0,f=Oo;do{var p=f,m=Di(p),h=m.top,g=m.bottom,_=m.left,v=m.right,y=m.width,b=m.height,x=void 0,S=void 0,C=p.scrollWidth,w=p.scrollHeight,T=Ci(p),E=p.scrollLeft,D=p.scrollTop;p===c?(x=y<C&&(T.overflowX===`auto`||T.overflowX===`scroll`||T.overflowX===`visible`),S=b<w&&(T.overflowY===`auto`||T.overflowY===`scroll`||T.overflowY===`visible`)):(x=y<C&&(T.overflowX===`auto`||T.overflowX===`scroll`),S=b<w&&(T.overflowY===`auto`||T.overflowY===`scroll`));var O=x&&(Math.abs(v-i)<=o&&E+y<C)-(Math.abs(_-i)<=o&&!!E),k=S&&(Math.abs(g-a)<=o&&D+b<w)-(Math.abs(h-a)<=o&&!!D);if(!Do[d])for(var A=0;A<=d;A++)Do[A]||(Do[A]={});(Do[d].vx!=O||Do[d].vy!=k||Do[d].el!==p)&&(Do[d].el=p,Do[d].vx=O,Do[d].vy=k,clearInterval(Do[d].pid),(O!=0||k!=0)&&(l=!0,Do[d].pid=setInterval(function(){r&&this.layer===0&&Ji.active._onTouchMove(No);var t=Do[this.layer].vy?Do[this.layer].vy*s:0,n=Do[this.layer].vx?Do[this.layer].vx*s:0;typeof u==`function`&&u.call(Ji.dragged.parentNode[Oa],n,t,e,No,Do[this.layer].el)!==`continue`||zi(Do[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==c&&(f=Pi(f,!1)));Ao=l}},30),Io=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,a=e.dispatchSortableEvent,o=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var c=n||i;o();var l=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(l.clientX,l.clientY);s(),c&&!c.el.contains(u)&&(a(`spill`),this.onSpill({dragEl:r,putSortable:n}))}},ua.prototype={startIndex:null,dragStart:function(e){this.startIndex=e.oldDraggableIndex},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=ki(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:Io},si(ua,{pluginName:`revertOnSpill`}),da.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:Io},si(da,{pluginName:`removeOnSpill`}),Ro=[],zo=[],Ho=!1,Uo=!1,Wo=!1,Ji.mount(new sa),Ji.mount(da,ua)})),Yo=a(((t,n)=>{(function(r,i){typeof t==`object`&&typeof n==`object`?n.exports=i(he(),(Jo(),e(ni))):typeof define==`function`&&define.amd?define([,`sortablejs`],i):typeof t==`object`?t.vuedraggable=i(he(),(Jo(),e(ni))):r.vuedraggable=i(r.Vue,r.Sortable)})(typeof self<`u`?self:t,function(e,t){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,`__esModule`,{value:!0})},n.t=function(e,t){if(t&1&&(e=n(e)),t&8||t&4&&typeof e==`object`&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,`default`,{enumerable:!0,value:e}),t&2&&typeof e!=`string`)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=`fb15`)})({"00ee":(function(e,t,n){var r=n(`b622`)(`toStringTag`),i={};i[r]=`z`,e.exports=String(i)===`[object z]`}),"0366":(function(e,t,n){var r=n(`1c0b`);e.exports=function(e,t,n){if(r(e),t===void 0)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}}),"057f":(function(e,t,n){var r=n(`fc6a`),i=n(`241c`).f,a={}.toString,o=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch{return o.slice()}};e.exports.f=function(e){return o&&a.call(e)==`[object Window]`?s(e):i(r(e))}}),"06cf":(function(e,t,n){var r=n(`83ab`),i=n(`d1e7`),a=n(`5c6c`),o=n(`fc6a`),s=n(`c04e`),c=n(`5135`),l=n(`0cfb`),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=o(e),t=s(t,!0),l)try{return u(e,t)}catch{}if(c(e,t))return a(!i.f.call(e,t),e[t])}}),"0cfb":(function(e,t,n){var r=n(`83ab`),i=n(`d039`),a=n(`cc12`);e.exports=!r&&!i(function(){return Object.defineProperty(a(`div`),`a`,{get:function(){return 7}}).a!=7})}),"13d5":(function(e,t,n){var r=n(`23e7`),i=n(`d58f`).left,a=n(`a640`),o=n(`ae40`),s=a(`reduce`),c=o(`reduce`,{1:0});r({target:`Array`,proto:!0,forced:!s||!c},{reduce:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})}),"14c3":(function(e,t,n){var r=n(`c6b6`),i=n(`9263`);e.exports=function(e,t){var n=e.exec;if(typeof n==`function`){var a=n.call(e,t);if(typeof a!=`object`)throw TypeError(`RegExp exec method returned something other than an Object or null`);return a}if(r(e)!==`RegExp`)throw TypeError(`RegExp#exec called on incompatible receiver`);return i.call(e,t)}}),"159b":(function(e,t,n){var r=n(`da84`),i=n(`fdbc`),a=n(`17c2`),o=n(`9112`);for(var s in i){var c=r[s],l=c&&c.prototype;if(l&&l.forEach!==a)try{o(l,`forEach`,a)}catch{l.forEach=a}}}),"17c2":(function(e,t,n){var r=n(`b727`).forEach,i=n(`a640`),a=n(`ae40`),o=i(`forEach`),s=a(`forEach`);e.exports=!o||!s?function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}:[].forEach}),"1be4":(function(e,t,n){e.exports=n(`d066`)(`document`,`documentElement`)}),"1c0b":(function(e,t){e.exports=function(e){if(typeof e!=`function`)throw TypeError(String(e)+` is not a function`);return e}}),"1c7e":(function(e,t,n){var r=n(`b622`)(`iterator`),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[r]=function(){return this},Array.from(o,function(){throw 2})}catch{}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch{}return n}}),"1d80":(function(e,t){e.exports=function(e){if(e==null)throw TypeError(`Can't call method on `+e);return e}}),"1dde":(function(e,t,n){var r=n(`d039`),i=n(`b622`),a=n(`2d00`),o=i(`species`);e.exports=function(e){return a>=51||!r(function(){var t=[],n=t.constructor={};return n[o]=function(){return{foo:1}},t[e](Boolean).foo!==1})}}),"23cb":(function(e,t,n){var r=n(`a691`),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}}),"23e7":(function(e,t,n){var r=n(`da84`),i=n(`06cf`).f,a=n(`9112`),o=n(`6eeb`),s=n(`ce4e`),c=n(`e893`),l=n(`94ca`);e.exports=function(e,t){var n=e.target,u=e.global,d=e.stat,f,p=u?r:d?r[n]||s(n,{}):(r[n]||{}).prototype,m,h,g,_;if(p)for(m in t){if(g=t[m],e.noTargetGet?(_=i(p,m),h=_&&_.value):h=p[m],f=l(u?m:n+(d?`.`:`#`)+m,e.forced),!f&&h!==void 0){if(typeof g==typeof h)continue;c(g,h)}(e.sham||h&&h.sham)&&a(g,`sham`,!0),o(p,m,g,e)}}}),"241c":(function(e,t,n){var r=n(`ca84`),i=n(`7839`).concat(`length`,`prototype`);t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}}),"25f0":(function(e,t,n){var r=n(`6eeb`),i=n(`825a`),a=n(`d039`),o=n(`ad6d`),s=`toString`,c=RegExp.prototype,l=c[s],u=a(function(){return l.call({source:`a`,flags:`b`})!=`/a/b`}),d=l.name!=s;(u||d)&&r(RegExp.prototype,s,function(){var e=i(this),t=String(e.source),n=e.flags,r=String(n===void 0&&e instanceof RegExp&&!(`flags`in c)?o.call(e):n);return`/`+t+`/`+r},{unsafe:!0})}),"2ca0":(function(e,t,n){var r=n(`23e7`),i=n(`06cf`).f,a=n(`50c4`),o=n(`5a34`),s=n(`1d80`),c=n(`ab13`),l=n(`c430`),u=``.startsWith,d=Math.min,f=c(`startsWith`);r({target:`String`,proto:!0,forced:!(!l&&!f&&function(){var e=i(String.prototype,`startsWith`);return e&&!e.writable}())&&!f},{startsWith:function(e){var t=String(s(this));o(e);var n=a(d(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return u?u.call(t,r,n):t.slice(n,n+r.length)===r}})}),"2d00":(function(e,t,n){var r=n(`da84`),i=n(`342f`),a=r.process,o=a&&a.versions,s=o&&o.v8,c,l;s?(c=s.split(`.`),l=c[0]+c[1]):i&&(c=i.match(/Edge\/(\d+)/),(!c||c[1]>=74)&&(c=i.match(/Chrome\/(\d+)/),c&&(l=c[1]))),e.exports=l&&+l}),"342f":(function(e,t,n){e.exports=n(`d066`)(`navigator`,`userAgent`)||``}),"35a1":(function(e,t,n){var r=n(`f5df`),i=n(`3f8c`),a=n(`b622`)(`iterator`);e.exports=function(e){if(e!=null)return e[a]||e[`@@iterator`]||i[r(e)]}}),"37e8":(function(e,t,n){var r=n(`83ab`),i=n(`9bf2`),a=n(`825a`),o=n(`df75`);e.exports=r?Object.defineProperties:function(e,t){a(e);for(var n=o(t),r=n.length,s=0,c;r>s;)i.f(e,c=n[s++],t[c]);return e}}),"3bbe":(function(e,t,n){var r=n(`861d`);e.exports=function(e){if(!r(e)&&e!==null)throw TypeError(`Can't set `+String(e)+` as a prototype`);return e}}),"3ca3":(function(e,t,n){var r=n(`6547`).charAt,i=n(`69f3`),a=n(`7dd0`),o=`String Iterator`,s=i.set,c=i.getterFor(o);a(String,`String`,function(e){s(this,{type:o,string:String(e),index:0})},function(){var e=c(this),t=e.string,n=e.index,i;return n>=t.length?{value:void 0,done:!0}:(i=r(t,n),e.index+=i.length,{value:i,done:!1})})}),"3f8c":(function(e,t){e.exports={}}),4160:(function(e,t,n){var r=n(`23e7`),i=n(`17c2`);r({target:`Array`,proto:!0,forced:[].forEach!=i},{forEach:i})}),"428f":(function(e,t,n){e.exports=n(`da84`)}),"44ad":(function(e,t,n){var r=n(`d039`),i=n(`c6b6`),a=``.split;e.exports=r(function(){return!Object(`z`).propertyIsEnumerable(0)})?function(e){return i(e)==`String`?a.call(e,``):Object(e)}:Object}),"44d2":(function(e,t,n){var r=n(`b622`),i=n(`7c73`),a=n(`9bf2`),o=r(`unscopables`),s=Array.prototype;s[o]??a.f(s,o,{configurable:!0,value:i(null)}),e.exports=function(e){s[o][e]=!0}}),"44e7":(function(e,t,n){var r=n(`861d`),i=n(`c6b6`),a=n(`b622`)(`match`);e.exports=function(e){var t;return r(e)&&((t=e[a])===void 0?i(e)==`RegExp`:!!t)}}),4930:(function(e,t,n){var r=n(`d039`);e.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})}),"4d64":(function(e,t,n){var r=n(`fc6a`),i=n(`50c4`),a=n(`23cb`),o=function(e){return function(t,n,o){var s=r(t),c=i(s.length),l=a(o,c),u;if(e&&n!=n){for(;c>l;)if(u=s[l++],u!=u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}}),"4de4":(function(e,t,n){var r=n(`23e7`),i=n(`b727`).filter,a=n(`1dde`),o=n(`ae40`),s=a(`filter`),c=o(`filter`);r({target:`Array`,proto:!0,forced:!s||!c},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})}),"4df4":(function(e,t,n){var r=n(`0366`),i=n(`7b0b`),a=n(`9bdd`),o=n(`e95a`),s=n(`50c4`),c=n(`8418`),l=n(`35a1`);e.exports=function(e){var t=i(e),n=typeof this==`function`?this:Array,u=arguments.length,d=u>1?arguments[1]:void 0,f=d!==void 0,p=l(t),m=0,h,g,_,v,y,b;if(f&&(d=r(d,u>2?arguments[2]:void 0,2)),p!=null&&!(n==Array&&o(p)))for(v=p.call(t),y=v.next,g=new n;!(_=y.call(v)).done;m++)b=f?a(v,d,[_.value,m],!0):_.value,c(g,m,b);else for(h=s(t.length),g=new n(h);h>m;m++)b=f?d(t[m],m):t[m],c(g,m,b);return g.length=m,g}}),"4fad":(function(e,t,n){var r=n(`23e7`),i=n(`6f53`).entries;r({target:`Object`,stat:!0},{entries:function(e){return i(e)}})}),"50c4":(function(e,t,n){var r=n(`a691`),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}}),5135:(function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}}),5319:(function(e,t,n){var r=n(`d784`),i=n(`825a`),a=n(`7b0b`),o=n(`50c4`),s=n(`a691`),c=n(`1d80`),l=n(`8aa5`),u=n(`14c3`),d=Math.max,f=Math.min,p=Math.floor,m=/\$([$&'`]|\d\d?|<[^>]*>)/g,h=/\$([$&'`]|\d\d?)/g,g=function(e){return e===void 0?e:String(e)};r(`replace`,2,function(e,t,n,r){var _=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,v=r.REPLACE_KEEPS_$0,y=_?`$`:`$0`;return[function(n,r){var i=c(this),a=n?.[e];return a===void 0?t.call(String(i),n,r):a.call(n,i,r)},function(e,r){if(!_&&v||typeof r==`string`&&r.indexOf(y)===-1){var a=n(t,e,this,r);if(a.done)return a.value}var c=i(e),p=String(this),m=typeof r==`function`;m||(r=String(r));var h=c.global;if(h){var x=c.unicode;c.lastIndex=0}for(var S=[];;){var C=u(c,p);if(C===null||(S.push(C),!h))break;String(C[0])===``&&(c.lastIndex=l(p,o(c.lastIndex),x))}for(var w=``,T=0,E=0;E<S.length;E++){C=S[E];for(var D=String(C[0]),O=d(f(s(C.index),p.length),0),k=[],A=1;A<C.length;A++)k.push(g(C[A]));var j=C.groups;if(m){var M=[D].concat(k,O,p);j!==void 0&&M.push(j);var N=String(r.apply(void 0,M))}else N=b(D,p,O,k,j,r);O>=T&&(w+=p.slice(T,O)+N,T=O+D.length)}return w+p.slice(T)}];function b(e,n,r,i,o,s){var c=r+e.length,l=i.length,u=h;return o!==void 0&&(o=a(o),u=m),t.call(s,u,function(t,a){var s;switch(a.charAt(0)){case`$`:return`$`;case`&`:return e;case"`":return n.slice(0,r);case`'`:return n.slice(c);case`<`:s=o[a.slice(1,-1)];break;default:var u=+a;if(u===0)return t;if(u>l){var d=p(u/10);return d===0?t:d<=l?i[d-1]===void 0?a.charAt(1):i[d-1]+a.charAt(1):t}s=i[u-1]}return s===void 0?``:s})}})}),5692:(function(e,t,n){var r=n(`c430`),i=n(`c6cd`);(e.exports=function(e,t){return i[e]||(i[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.6.5`,mode:r?`pure`:`global`,copyright:`© 2020 Denis Pushkarev (zloirock.ru)`})}),"56ef":(function(e,t,n){var r=n(`d066`),i=n(`241c`),a=n(`7418`),o=n(`825a`);e.exports=r(`Reflect`,`ownKeys`)||function(e){var t=i.f(o(e)),n=a.f;return n?t.concat(n(e)):t}}),"5a34":(function(e,t,n){var r=n(`44e7`);e.exports=function(e){if(r(e))throw TypeError(`The method doesn't accept regular expressions`);return e}}),"5c6c":(function(e,t){e.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}}),"5db7":(function(e,t,n){var r=n(`23e7`),i=n(`a2bf`),a=n(`7b0b`),o=n(`50c4`),s=n(`1c0b`),c=n(`65f0`);r({target:`Array`,proto:!0},{flatMap:function(e){var t=a(this),n=o(t.length),r;return s(e),r=c(t,0),r.length=i(r,t,t,n,0,1,e,arguments.length>1?arguments[1]:void 0),r}})}),6547:(function(e,t,n){var r=n(`a691`),i=n(`1d80`),a=function(e){return function(t,n){var a=String(i(t)),o=r(n),s=a.length,c,l;return o<0||o>=s?e?``:void 0:(c=a.charCodeAt(o),c<55296||c>56319||o+1===s||(l=a.charCodeAt(o+1))<56320||l>57343?e?a.charAt(o):c:e?a.slice(o,o+2):(c-55296<<10)+(l-56320)+65536)}};e.exports={codeAt:a(!1),charAt:a(!0)}}),"65f0":(function(e,t,n){var r=n(`861d`),i=n(`e8b5`),a=n(`b622`)(`species`);e.exports=function(e,t){var n;return i(e)&&(n=e.constructor,typeof n==`function`&&(n===Array||i(n.prototype))?n=void 0:r(n)&&(n=n[a],n===null&&(n=void 0))),new(n===void 0?Array:n)(t===0?0:t)}}),"69f3":(function(e,t,n){var r=n(`7f9a`),i=n(`da84`),a=n(`861d`),o=n(`9112`),s=n(`5135`),c=n(`f772`),l=n(`d012`),u=i.WeakMap,d,f,p,m=function(e){return p(e)?f(e):d(e,{})},h=function(e){return function(t){var n;if(!a(t)||(n=f(t)).type!==e)throw TypeError(`Incompatible receiver, `+e+` required`);return n}};if(r){var g=new u,_=g.get,v=g.has,y=g.set;d=function(e,t){return y.call(g,e,t),t},f=function(e){return _.call(g,e)||{}},p=function(e){return v.call(g,e)}}else{var b=c(`state`);l[b]=!0,d=function(e,t){return o(e,b,t),t},f=function(e){return s(e,b)?e[b]:{}},p=function(e){return s(e,b)}}e.exports={set:d,get:f,has:p,enforce:m,getterFor:h}}),"6eeb":(function(e,t,n){var r=n(`da84`),i=n(`9112`),a=n(`5135`),o=n(`ce4e`),s=n(`8925`),c=n(`69f3`),l=c.get,u=c.enforce,d=String(String).split(`String`);(e.exports=function(e,t,n,s){var c=s?!!s.unsafe:!1,l=s?!!s.enumerable:!1,f=s?!!s.noTargetGet:!1;if(typeof n==`function`&&(typeof t==`string`&&!a(n,`name`)&&i(n,`name`,t),u(n).source=d.join(typeof t==`string`?t:``)),e===r){l?e[t]=n:o(t,n);return}else c?!f&&e[t]&&(l=!0):delete e[t];l?e[t]=n:i(e,t,n)})(Function.prototype,`toString`,function(){return typeof this==`function`&&l(this).source||s(this)})}),"6f53":(function(e,t,n){var r=n(`83ab`),i=n(`df75`),a=n(`fc6a`),o=n(`d1e7`).f,s=function(e){return function(t){for(var n=a(t),s=i(n),c=s.length,l=0,u=[],d;c>l;)d=s[l++],(!r||o.call(n,d))&&u.push(e?[d,n[d]]:n[d]);return u}};e.exports={entries:s(!0),values:s(!1)}}),"73d9":(function(e,t,n){n(`44d2`)(`flatMap`)}),7418:(function(e,t){t.f=Object.getOwnPropertySymbols}),"746f":(function(e,t,n){var r=n(`428f`),i=n(`5135`),a=n(`e538`),o=n(`9bf2`).f;e.exports=function(e){var t=r.Symbol||={};i(t,e)||o(t,e,{value:a.f(e)})}}),7839:(function(e,t){e.exports=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`]}),"7b0b":(function(e,t,n){var r=n(`1d80`);e.exports=function(e){return Object(r(e))}}),"7c73":(function(e,t,n){var r=n(`825a`),i=n(`37e8`),a=n(`7839`),o=n(`d012`),s=n(`1be4`),c=n(`cc12`),l=n(`f772`),u=`>`,d=`<`,f=`prototype`,p=`script`,m=l(`IE_PROTO`),h=function(){},g=function(e){return d+p+u+e+d+`/`+p+u},_=function(e){e.write(g(``)),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){var e=c(`iframe`),t=`java`+p+`:`,n;return e.style.display=`none`,s.appendChild(e),e.src=String(t),n=e.contentWindow.document,n.open(),n.write(g(`document.F=Object`)),n.close(),n.F},y,b=function(){try{y=document.domain&&new ActiveXObject(`htmlfile`)}catch{}b=y?_(y):v();for(var e=a.length;e--;)delete b[f][a[e]];return b()};o[m]=!0,e.exports=Object.create||function(e,t){var n;return e===null?n=b():(h[f]=r(e),n=new h,h[f]=null,n[m]=e),t===void 0?n:i(n,t)}}),"7dd0":(function(e,t,n){var r=n(`23e7`),i=n(`9ed3`),a=n(`e163`),o=n(`d2bb`),s=n(`d44e`),c=n(`9112`),l=n(`6eeb`),u=n(`b622`),d=n(`c430`),f=n(`3f8c`),p=n(`ae93`),m=p.IteratorPrototype,h=p.BUGGY_SAFARI_ITERATORS,g=u(`iterator`),_=`keys`,v=`values`,y=`entries`,b=function(){return this};e.exports=function(e,t,n,u,p,x,S){i(n,t,u);var C=function(e){if(e===p&&O)return O;if(!h&&e in E)return E[e];switch(e){case _:return function(){return new n(this,e)};case v:return function(){return new n(this,e)};case y:return function(){return new n(this,e)}}return function(){return new n(this)}},w=t+` Iterator`,T=!1,E=e.prototype,D=E[g]||E[`@@iterator`]||p&&E[p],O=!h&&D||C(p),k=t==`Array`&&E.entries||D,A,j,M;if(k&&(A=a(k.call(new e)),m!==Object.prototype&&A.next&&(!d&&a(A)!==m&&(o?o(A,m):typeof A[g]!=`function`&&c(A,g,b)),s(A,w,!0,!0),d&&(f[w]=b))),p==v&&D&&D.name!==v&&(T=!0,O=function(){return D.call(this)}),(!d||S)&&E[g]!==O&&c(E,g,O),f[t]=O,p)if(j={values:C(v),keys:x?O:C(_),entries:C(y)},S)for(M in j)(h||T||!(M in E))&&l(E,M,j[M]);else r({target:t,proto:!0,forced:h||T},j);return j}}),"7f9a":(function(e,t,n){var r=n(`da84`),i=n(`8925`),a=r.WeakMap;e.exports=typeof a==`function`&&/native code/.test(i(a))}),"825a":(function(e,t,n){var r=n(`861d`);e.exports=function(e){if(!r(e))throw TypeError(String(e)+` is not an object`);return e}}),"83ab":(function(e,t,n){e.exports=!n(`d039`)(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),8418:(function(e,t,n){var r=n(`c04e`),i=n(`9bf2`),a=n(`5c6c`);e.exports=function(e,t,n){var o=r(t);o in e?i.f(e,o,a(0,n)):e[o]=n}}),"861d":(function(e,t){e.exports=function(e){return typeof e==`object`?e!==null:typeof e==`function`}}),8875:(function(e,t,n){var r,i,a;(function(n,o){i=[],r=o,a=typeof r==`function`?r.apply(t,i):r,a!==void 0&&(e.exports=a)})(typeof self<`u`?self:this,function(){function e(){var t=Object.getOwnPropertyDescriptor(document,`currentScript`);if(!t&&`currentScript`in document&&document.currentScript||t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw Error()}catch(e){var n=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e.stack)||/@([^@]*):(\d+):(\d+)\s*$/gi.exec(e.stack),r=n&&n[1]||!1,i=n&&n[2]||!1,a=document.location.href.replace(document.location.hash,``),o,s,c,l=document.getElementsByTagName(`script`);r===a&&(o=document.documentElement.outerHTML,s=RegExp(`(?:[^\\n]+?\\n){0,`+(i-2)+`}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*`,`i`),c=o.replace(s,`$1`).trim());for(var u=0;u<l.length;u++)if(l[u].readyState===`interactive`||l[u].src===r||r===a&&l[u].innerHTML&&l[u].innerHTML.trim()===c)return l[u];return null}}return e})}),8925:(function(e,t,n){var r=n(`c6cd`),i=Function.toString;typeof r.inspectSource!=`function`&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource}),"8aa5":(function(e,t,n){var r=n(`6547`).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}}),"8bbf":(function(t,n){t.exports=e}),"90e3":(function(e,t){var n=0,r=Math.random();e.exports=function(e){return`Symbol(`+String(e===void 0?``:e)+`)_`+(++n+r).toString(36)}}),9112:(function(e,t,n){var r=n(`83ab`),i=n(`9bf2`),a=n(`5c6c`);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}}),9263:(function(e,t,n){var r=n(`ad6d`),i=n(`9f7f`),a=RegExp.prototype.exec,o=String.prototype.replace,s=a,c=(function(){var e=/a/,t=/b*/g;return a.call(e,`a`),a.call(t,`a`),e.lastIndex!==0||t.lastIndex!==0})(),l=i.UNSUPPORTED_Y||i.BROKEN_CARET,u=/()??/.exec(``)[1]!==void 0;(c||u||l)&&(s=function(e){var t=this,n,i,s,d,f=l&&t.sticky,p=r.call(t),m=t.source,h=0,g=e;return f&&(p=p.replace(`y`,``),p.indexOf(`g`)===-1&&(p+=`g`),g=String(e).slice(t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&e[t.lastIndex-1]!==`
`)&&(m=`(?: `+m+`)`,g=` `+g,h++),i=RegExp(`^(?:`+m+`)`,p)),u&&(i=RegExp(`^`+m+`$(?!\\s)`,p)),c&&(n=t.lastIndex),s=a.call(f?i:t,g),f?s?(s.input=s.input.slice(h),s[0]=s[0].slice(h),s.index=t.lastIndex,t.lastIndex+=s[0].length):t.lastIndex=0:c&&s&&(t.lastIndex=t.global?s.index+s[0].length:n),u&&s&&s.length>1&&o.call(s[0],i,function(){for(d=1;d<arguments.length-2;d++)arguments[d]===void 0&&(s[d]=void 0)}),s}),e.exports=s}),"94ca":(function(e,t,n){var r=n(`d039`),i=/#|\.prototype\./,a=function(e,t){var n=s[o(e)];return n==l?!0:n==c?!1:typeof t==`function`?r(t):!!t},o=a.normalize=function(e){return String(e).replace(i,`.`).toLowerCase()},s=a.data={},c=a.NATIVE=`N`,l=a.POLYFILL=`P`;e.exports=a}),"99af":(function(e,t,n){var r=n(`23e7`),i=n(`d039`),a=n(`e8b5`),o=n(`861d`),s=n(`7b0b`),c=n(`50c4`),l=n(`8418`),u=n(`65f0`),d=n(`1dde`),f=n(`b622`),p=n(`2d00`),m=f(`isConcatSpreadable`),h=9007199254740991,g=`Maximum allowed index exceeded`,_=p>=51||!i(function(){var e=[];return e[m]=!1,e.concat()[0]!==e}),v=d(`concat`),y=function(e){if(!o(e))return!1;var t=e[m];return t===void 0?a(e):!!t};r({target:`Array`,proto:!0,forced:!_||!v},{concat:function(e){var t=s(this),n=u(t,0),r=0,i,a,o,d,f;for(i=-1,o=arguments.length;i<o;i++)if(f=i===-1?t:arguments[i],y(f)){if(d=c(f.length),r+d>h)throw TypeError(g);for(a=0;a<d;a++,r++)a in f&&l(n,r,f[a])}else{if(r>=h)throw TypeError(g);l(n,r++,f)}return n.length=r,n}})}),"9bdd":(function(e,t,n){var r=n(`825a`);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var a=e.return;throw a!==void 0&&r(a.call(e)),t}}}),"9bf2":(function(e,t,n){var r=n(`83ab`),i=n(`0cfb`),a=n(`825a`),o=n(`c04e`),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(a(e),t=o(t,!0),a(n),i)try{return s(e,t,n)}catch{}if(`get`in n||`set`in n)throw TypeError(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}}),"9ed3":(function(e,t,n){var r=n(`ae93`).IteratorPrototype,i=n(`7c73`),a=n(`5c6c`),o=n(`d44e`),s=n(`3f8c`),c=function(){return this};e.exports=function(e,t,n){var l=t+` Iterator`;return e.prototype=i(r,{next:a(1,n)}),o(e,l,!1,!0),s[l]=c,e}}),"9f7f":(function(e,t,n){var r=n(`d039`);function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r(function(){var e=i(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null}),t.BROKEN_CARET=r(function(){var e=i(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})}),a2bf:(function(e,t,n){var r=n(`e8b5`),i=n(`50c4`),a=n(`0366`),o=function(e,t,n,s,c,l,u,d){for(var f=c,p=0,m=u?a(u,d,3):!1,h;p<s;){if(p in n){if(h=m?m(n[p],p,t):n[p],l>0&&r(h))f=o(e,t,h,i(h.length),f,l-1)-1;else{if(f>=9007199254740991)throw TypeError(`Exceed the acceptable array length`);e[f]=h}f++}p++}return f};e.exports=o}),a352:(function(e,n){e.exports=t}),a434:(function(e,t,n){var r=n(`23e7`),i=n(`23cb`),a=n(`a691`),o=n(`50c4`),s=n(`7b0b`),c=n(`65f0`),l=n(`8418`),u=n(`1dde`),d=n(`ae40`),f=u(`splice`),p=d(`splice`,{ACCESSORS:!0,0:0,1:2}),m=Math.max,h=Math.min,g=9007199254740991,_=`Maximum allowed length exceeded`;r({target:`Array`,proto:!0,forced:!f||!p},{splice:function(e,t){var n=s(this),r=o(n.length),u=i(e,r),d=arguments.length,f,p,v,y,b,x;if(d===0?f=p=0:d===1?(f=0,p=r-u):(f=d-2,p=h(m(a(t),0),r-u)),r+f-p>g)throw TypeError(_);for(v=c(n,p),y=0;y<p;y++)b=u+y,b in n&&l(v,y,n[b]);if(v.length=p,f<p){for(y=u;y<r-p;y++)b=y+p,x=y+f,b in n?n[x]=n[b]:delete n[x];for(y=r;y>r-p+f;y--)delete n[y-1]}else if(f>p)for(y=r-p;y>u;y--)b=y+p-1,x=y+f-1,b in n?n[x]=n[b]:delete n[x];for(y=0;y<f;y++)n[y+u]=arguments[y+2];return n.length=r-p+f,v}})}),a4d3:(function(e,t,n){var r=n(`23e7`),i=n(`da84`),a=n(`d066`),o=n(`c430`),s=n(`83ab`),c=n(`4930`),l=n(`fdbf`),u=n(`d039`),d=n(`5135`),f=n(`e8b5`),p=n(`861d`),m=n(`825a`),h=n(`7b0b`),g=n(`fc6a`),_=n(`c04e`),v=n(`5c6c`),y=n(`7c73`),b=n(`df75`),x=n(`241c`),S=n(`057f`),C=n(`7418`),w=n(`06cf`),T=n(`9bf2`),E=n(`d1e7`),D=n(`9112`),O=n(`6eeb`),k=n(`5692`),A=n(`f772`),j=n(`d012`),M=n(`90e3`),N=n(`b622`),P=n(`e538`),F=n(`746f`),I=n(`d44e`),ee=n(`69f3`),L=n(`b727`).forEach,R=A(`hidden`),z=`Symbol`,B=`prototype`,V=N(`toPrimitive`),H=ee.set,U=ee.getterFor(z),W=Object[B],te=i.Symbol,ne=a(`JSON`,`stringify`),G=w.f,re=T.f,ie=S.f,K=E.f,q=k(`symbols`),J=k(`op-symbols`),Y=k(`string-to-symbol-registry`),ae=k(`symbol-to-string-registry`),oe=k(`wks`),X=i.QObject,se=!X||!X[B]||!X[B].findChild,ce=s&&u(function(){return y(re({},`a`,{get:function(){return re(this,`a`,{value:7}).a}})).a!=7})?function(e,t,n){var r=G(W,t);r&&delete W[t],re(e,t,n),r&&e!==W&&re(W,t,r)}:re,Z=function(e,t){var n=q[e]=y(te[B]);return H(n,{type:z,tag:e,description:t}),s||(n.description=t),n},le=l?function(e){return typeof e==`symbol`}:function(e){return Object(e)instanceof te},ue=function(e,t,n){e===W&&ue(J,t,n),m(e);var r=_(t,!0);return m(n),d(q,r)?(n.enumerable?(d(e,R)&&e[R][r]&&(e[R][r]=!1),n=y(n,{enumerable:v(0,!1)})):(d(e,R)||re(e,R,v(1,{})),e[R][r]=!0),ce(e,r,n)):re(e,r,n)},de=function(e,t){m(e);var n=g(t);return L(b(n).concat($(n)),function(t){(!s||pe.call(n,t))&&ue(e,t,n[t])}),e},fe=function(e,t){return t===void 0?y(e):de(y(e),t)},pe=function(e){var t=_(e,!0),n=K.call(this,t);return this===W&&d(q,t)&&!d(J,t)?!1:n||!d(this,t)||!d(q,t)||d(this,R)&&this[R][t]?n:!0},Q=function(e,t){var n=g(e),r=_(t,!0);if(!(n===W&&d(q,r)&&!d(J,r))){var i=G(n,r);return i&&d(q,r)&&!(d(n,R)&&n[R][r])&&(i.enumerable=!0),i}},me=function(e){var t=ie(g(e)),n=[];return L(t,function(e){!d(q,e)&&!d(j,e)&&n.push(e)}),n},$=function(e){var t=e===W,n=ie(t?J:g(e)),r=[];return L(n,function(e){d(q,e)&&(!t||d(W,e))&&r.push(q[e])}),r};c||(te=function(){if(this instanceof te)throw TypeError(`Symbol is not a constructor`);var e=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),t=M(e),n=function(e){this===W&&n.call(J,e),d(this,R)&&d(this[R],t)&&(this[R][t]=!1),ce(this,t,v(1,e))};return s&&se&&ce(W,t,{configurable:!0,set:n}),Z(t,e)},O(te[B],`toString`,function(){return U(this).tag}),O(te,`withoutSetter`,function(e){return Z(M(e),e)}),E.f=pe,T.f=ue,w.f=Q,x.f=S.f=me,C.f=$,P.f=function(e){return Z(N(e),e)},s&&(re(te[B],`description`,{configurable:!0,get:function(){return U(this).description}}),o||O(W,`propertyIsEnumerable`,pe,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:te}),L(b(oe),function(e){F(e)}),r({target:z,stat:!0,forced:!c},{for:function(e){var t=String(e);if(d(Y,t))return Y[t];var n=te(t);return Y[t]=n,ae[n]=t,n},keyFor:function(e){if(!le(e))throw TypeError(e+` is not a symbol`);if(d(ae,e))return ae[e]},useSetter:function(){se=!0},useSimple:function(){se=!1}}),r({target:`Object`,stat:!0,forced:!c,sham:!s},{create:fe,defineProperty:ue,defineProperties:de,getOwnPropertyDescriptor:Q}),r({target:`Object`,stat:!0,forced:!c},{getOwnPropertyNames:me,getOwnPropertySymbols:$}),r({target:`Object`,stat:!0,forced:u(function(){C.f(1)})},{getOwnPropertySymbols:function(e){return C.f(h(e))}}),ne&&r({target:`JSON`,stat:!0,forced:!c||u(function(){var e=te();return ne([e])!=`[null]`||ne({a:e})!=`{}`||ne(Object(e))!=`{}`})},{stringify:function(e,t,n){for(var r=[e],i=1,a;arguments.length>i;)r.push(arguments[i++]);if(a=t,!(!p(t)&&e===void 0||le(e)))return f(t)||(t=function(e,t){if(typeof a==`function`&&(t=a.call(this,e,t)),!le(t))return t}),r[1]=t,ne.apply(null,r)}}),te[B][V]||D(te[B],V,te[B].valueOf),I(te,z),j[R]=!0}),a630:(function(e,t,n){var r=n(`23e7`),i=n(`4df4`);r({target:`Array`,stat:!0,forced:!n(`1c7e`)(function(e){Array.from(e)})},{from:i})}),a640:(function(e,t,n){var r=n(`d039`);e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){throw 1},1)})}}),a691:(function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}}),ab13:(function(e,t,n){var r=n(`b622`)(`match`);e.exports=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[r]=!1,`/./`[e](t)}catch{}}return!1}}),ac1f:(function(e,t,n){var r=n(`23e7`),i=n(`9263`);r({target:`RegExp`,proto:!0,forced:/./.exec!==i},{exec:i})}),ad6d:(function(e,t,n){var r=n(`825a`);e.exports=function(){var e=r(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t}}),ae40:(function(e,t,n){var r=n(`83ab`),i=n(`d039`),a=n(`5135`),o=Object.defineProperty,s={},c=function(e){throw e};e.exports=function(e,t){if(a(s,e))return s[e];t||={};var n=[][e],l=a(t,`ACCESSORS`)?t.ACCESSORS:!1,u=a(t,0)?t[0]:c,d=a(t,1)?t[1]:void 0;return s[e]=!!n&&!i(function(){if(l&&!r)return!0;var e={length:-1};l?o(e,1,{enumerable:!0,get:c}):e[1]=1,n.call(e,u,d)})}}),ae93:(function(e,t,n){var r=n(`e163`),i=n(`9112`),a=n(`5135`),o=n(`b622`),s=n(`c430`),c=o(`iterator`),l=!1,u=function(){return this},d,f,p;[].keys&&(p=[].keys(),`next`in p?(f=r(r(p)),f!==Object.prototype&&(d=f)):l=!0),d??={},!s&&!a(d,c)&&i(d,c,u),e.exports={IteratorPrototype:d,BUGGY_SAFARI_ITERATORS:l}}),b041:(function(e,t,n){var r=n(`00ee`),i=n(`f5df`);e.exports=r?{}.toString:function(){return`[object `+i(this)+`]`}}),b0c0:(function(e,t,n){var r=n(`83ab`),i=n(`9bf2`).f,a=Function.prototype,o=a.toString,s=/^\s*function ([^ (]*)/,c=`name`;r&&!(c in a)&&i(a,c,{configurable:!0,get:function(){try{return o.call(this).match(s)[1]}catch{return``}}})}),b622:(function(e,t,n){var r=n(`da84`),i=n(`5692`),a=n(`5135`),o=n(`90e3`),s=n(`4930`),c=n(`fdbf`),l=i(`wks`),u=r.Symbol,d=c?u:u&&u.withoutSetter||o;e.exports=function(e){return a(l,e)||(s&&a(u,e)?l[e]=u[e]:l[e]=d(`Symbol.`+e)),l[e]}}),b64b:(function(e,t,n){var r=n(`23e7`),i=n(`7b0b`),a=n(`df75`);r({target:`Object`,stat:!0,forced:n(`d039`)(function(){a(1)})},{keys:function(e){return a(i(e))}})}),b727:(function(e,t,n){var r=n(`0366`),i=n(`44ad`),a=n(`7b0b`),o=n(`50c4`),s=n(`65f0`),c=[].push,l=function(e){var t=e==1,n=e==2,l=e==3,u=e==4,d=e==6,f=e==5||d;return function(p,m,h,g){for(var _=a(p),v=i(_),y=r(m,h,3),b=o(v.length),x=0,S=g||s,C=t?S(p,b):n?S(p,0):void 0,w,T;b>x;x++)if((f||x in v)&&(w=v[x],T=y(w,x,_),e)){if(t)C[x]=T;else if(T)switch(e){case 3:return!0;case 5:return w;case 6:return x;case 2:c.call(C,w)}else if(u)return!1}return d?-1:l||u?u:C}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}}),c04e:(function(e,t,n){var r=n(`861d`);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&typeof(n=e.toString)==`function`&&!r(i=n.call(e))||typeof(n=e.valueOf)==`function`&&!r(i=n.call(e))||!t&&typeof(n=e.toString)==`function`&&!r(i=n.call(e)))return i;throw TypeError(`Can't convert object to primitive value`)}}),c430:(function(e,t){e.exports=!1}),c6b6:(function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}}),c6cd:(function(e,t,n){var r=n(`da84`),i=n(`ce4e`),a=`__core-js_shared__`;e.exports=r[a]||i(a,{})}),c740:(function(e,t,n){var r=n(`23e7`),i=n(`b727`).findIndex,a=n(`44d2`),o=n(`ae40`),s=`findIndex`,c=!0,l=o(s);s in[]&&[,][s](function(){c=!1}),r({target:`Array`,proto:!0,forced:c||!l},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a(s)}),c8ba:(function(e,t){var n=(function(){return this})();try{n||=Function(`return this`)()}catch{typeof window==`object`&&(n=window)}e.exports=n}),c975:(function(e,t,n){var r=n(`23e7`),i=n(`4d64`).indexOf,a=n(`a640`),o=n(`ae40`),s=[].indexOf,c=!!s&&1/[1].indexOf(1,-0)<0,l=a(`indexOf`),u=o(`indexOf`,{ACCESSORS:!0,1:0});r({target:`Array`,proto:!0,forced:c||!l||!u},{indexOf:function(e){return c?s.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})}),ca84:(function(e,t,n){var r=n(`5135`),i=n(`fc6a`),a=n(`4d64`).indexOf,o=n(`d012`);e.exports=function(e,t){var n=i(e),s=0,c=[],l;for(l in n)!r(o,l)&&r(n,l)&&c.push(l);for(;t.length>s;)r(n,l=t[s++])&&(~a(c,l)||c.push(l));return c}}),caad:(function(e,t,n){var r=n(`23e7`),i=n(`4d64`).includes,a=n(`44d2`);r({target:`Array`,proto:!0,forced:!n(`ae40`)(`indexOf`,{ACCESSORS:!0,1:0})},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a(`includes`)}),cc12:(function(e,t,n){var r=n(`da84`),i=n(`861d`),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}}),ce4e:(function(e,t,n){var r=n(`da84`),i=n(`9112`);e.exports=function(e,t){try{i(r,e,t)}catch{r[e]=t}return t}}),d012:(function(e,t){e.exports={}}),d039:(function(e,t){e.exports=function(e){try{return!!e()}catch{return!0}}}),d066:(function(e,t,n){var r=n(`428f`),i=n(`da84`),a=function(e){return typeof e==`function`?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e])||a(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}}),d1e7:(function(e,t,n){var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor;t.f=i&&!r.call({1:2},1)?function(e){var t=i(this,e);return!!t&&t.enumerable}:r}),d28b:(function(e,t,n){n(`746f`)(`iterator`)}),d2bb:(function(e,t,n){var r=n(`825a`),i=n(`3bbe`);e.exports=Object.setPrototypeOf||(`__proto__`in{}?function(){var e=!1,t={},n;try{n=Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set,n.call(t,[]),e=t instanceof Array}catch{}return function(t,a){return r(t),i(a),e?n.call(t,a):t.__proto__=a,t}}():void 0)}),d3b7:(function(e,t,n){var r=n(`00ee`),i=n(`6eeb`),a=n(`b041`);r||i(Object.prototype,`toString`,a,{unsafe:!0})}),d44e:(function(e,t,n){var r=n(`9bf2`).f,i=n(`5135`),a=n(`b622`)(`toStringTag`);e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}}),d58f:(function(e,t,n){var r=n(`1c0b`),i=n(`7b0b`),a=n(`44ad`),o=n(`50c4`),s=function(e){return function(t,n,s,c){r(n);var l=i(t),u=a(l),d=o(l.length),f=e?d-1:0,p=e?-1:1;if(s<2)for(;;){if(f in u){c=u[f],f+=p;break}if(f+=p,e?f<0:d<=f)throw TypeError(`Reduce of empty array with no initial value`)}for(;e?f>=0:d>f;f+=p)f in u&&(c=n(c,u[f],f,l));return c}};e.exports={left:s(!1),right:s(!0)}}),d784:(function(e,t,n){n(`ac1f`);var r=n(`6eeb`),i=n(`d039`),a=n(`b622`),o=n(`9263`),s=n(`9112`),c=a(`species`),l=!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}),u=(function(){return`a`.replace(/./,`$0`)===`$0`})(),d=a(`replace`),f=(function(){return/./[d]?/./[d](`a`,`$0`)===``:!1})(),p=!i(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`});e.exports=function(e,t,n,d){var m=a(e),h=!i(function(){var t={};return t[m]=function(){return 7},``[e](t)!=7}),g=h&&!i(function(){var t=!1,n=/a/;return e===`split`&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags=``,n[m]=/./[m]),n.exec=function(){return t=!0,null},n[m](``),!t});if(!h||!g||e===`replace`&&!(l&&u&&!f)||e===`split`&&!p){var _=/./[m],v=n(m,``[e],function(e,t,n,r,i){return t.exec===o?h&&!i?{done:!0,value:_.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}},{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:f}),y=v[0],b=v[1];r(String.prototype,e,y),r(RegExp.prototype,m,t==2?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}d&&s(RegExp.prototype[m],`sham`,!0)}}),d81d:(function(e,t,n){var r=n(`23e7`),i=n(`b727`).map,a=n(`1dde`),o=n(`ae40`),s=a(`map`),c=o(`map`);r({target:`Array`,proto:!0,forced:!s||!c},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})}),da84:(function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n(typeof globalThis==`object`&&globalThis)||n(typeof window==`object`&&window)||n(typeof self==`object`&&self)||n(typeof t==`object`&&t)||Function(`return this`)()}).call(this,n(`c8ba`))}),dbb4:(function(e,t,n){var r=n(`23e7`),i=n(`83ab`),a=n(`56ef`),o=n(`fc6a`),s=n(`06cf`),c=n(`8418`);r({target:`Object`,stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t=o(e),n=s.f,r=a(t),i={},l=0,u,d;r.length>l;)d=n(t,u=r[l++]),d!==void 0&&c(i,u,d);return i}})}),dbf1:(function(e,t,n){(function(e){n.d(t,`a`,function(){return i});function r(){return typeof window<`u`?window.console:e.console}var i=r()}).call(this,n(`c8ba`))}),ddb0:(function(e,t,n){var r=n(`da84`),i=n(`fdbc`),a=n(`e260`),o=n(`9112`),s=n(`b622`),c=s(`iterator`),l=s(`toStringTag`),u=a.values;for(var d in i){var f=r[d],p=f&&f.prototype;if(p){if(p[c]!==u)try{o(p,c,u)}catch{p[c]=u}if(p[l]||o(p,l,d),i[d]){for(var m in a)if(p[m]!==a[m])try{o(p,m,a[m])}catch{p[m]=a[m]}}}}}),df75:(function(e,t,n){var r=n(`ca84`),i=n(`7839`);e.exports=Object.keys||function(e){return r(e,i)}}),e01a:(function(e,t,n){var r=n(`23e7`),i=n(`83ab`),a=n(`da84`),o=n(`5135`),s=n(`861d`),c=n(`9bf2`).f,l=n(`e893`),u=a.Symbol;if(i&&typeof u==`function`&&(!(`description`in u.prototype)||u().description!==void 0)){var d={},f=function(){var e=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),t=this instanceof f?new u(e):e===void 0?u():u(e);return e===``&&(d[t]=!0),t};l(f,u);var p=f.prototype=u.prototype;p.constructor=f;var m=p.toString,h=String(u(`test`))==`Symbol(test)`,g=/^Symbol\((.*)\)[^)]+$/;c(p,`description`,{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=m.call(e);if(o(d,e))return``;var n=h?t.slice(7,-1):t.replace(g,`$1`);return n===``?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}}),e163:(function(e,t,n){var r=n(`5135`),i=n(`7b0b`),a=n(`f772`),o=n(`e177`),s=a(`IE_PROTO`),c=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:typeof e.constructor==`function`&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}}),e177:(function(e,t,n){e.exports=!n(`d039`)(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})}),e260:(function(e,t,n){var r=n(`fc6a`),i=n(`44d2`),a=n(`3f8c`),o=n(`69f3`),s=n(`7dd0`),c=`Array Iterator`,l=o.set,u=o.getterFor(c);e.exports=s(Array,`Array`,function(e,t){l(this,{type:c,target:r(e),index:0,kind:t})},function(){var e=u(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},`values`),a.Arguments=a.Array,i(`keys`),i(`values`),i(`entries`)}),e439:(function(e,t,n){var r=n(`23e7`),i=n(`d039`),a=n(`fc6a`),o=n(`06cf`).f,s=n(`83ab`),c=i(function(){o(1)});r({target:`Object`,stat:!0,forced:!s||c,sham:!s},{getOwnPropertyDescriptor:function(e,t){return o(a(e),t)}})}),e538:(function(e,t,n){t.f=n(`b622`)}),e893:(function(e,t,n){var r=n(`5135`),i=n(`56ef`),a=n(`06cf`),o=n(`9bf2`);e.exports=function(e,t){for(var n=i(t),s=o.f,c=a.f,l=0;l<n.length;l++){var u=n[l];r(e,u)||s(e,u,c(t,u))}}}),e8b5:(function(e,t,n){var r=n(`c6b6`);e.exports=Array.isArray||function(e){return r(e)==`Array`}}),e95a:(function(e,t,n){var r=n(`b622`),i=n(`3f8c`),a=r(`iterator`),o=Array.prototype;e.exports=function(e){return e!==void 0&&(i.Array===e||o[a]===e)}}),f5df:(function(e,t,n){var r=n(`00ee`),i=n(`c6b6`),a=n(`b622`)(`toStringTag`),o=i(function(){return arguments}())==`Arguments`,s=function(e,t){try{return e[t]}catch{}};e.exports=r?i:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=s(t=Object(e),a))==`string`?n:o?i(t):(r=i(t))==`Object`&&typeof t.callee==`function`?`Arguments`:r}}),f772:(function(e,t,n){var r=n(`5692`),i=n(`90e3`),a=r(`keys`);e.exports=function(e){return a[e]||(a[e]=i(e))}}),fb15:(function(e,t,n){if(n.r(t),typeof window<`u`){var r=window.document.currentScript,i=n(`8875`);r=i(),`currentScript`in document||Object.defineProperty(document,`currentScript`,{get:i});var a=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(n.p=a[1])}n(`99af`),n(`4de4`),n(`4160`),n(`c975`),n(`d81d`),n(`a434`),n(`159b`),n(`a4d3`),n(`e439`),n(`dbb4`),n(`b64b`);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?s(Object(n),!0).forEach(function(t){o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e){if(Array.isArray(e))return e}n(`e01a`),n(`d28b`),n(`e260`),n(`d3b7`),n(`3ca3`),n(`ddb0`);function u(e,t){if(!(typeof Symbol>`u`||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}n(`a630`),n(`fb6a`),n(`b0c0`),n(`25f0`);function d(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){if(e){if(typeof e==`string`)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}}function p(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m(e,t){return l(e)||u(e,t)||f(e,t)||p()}function h(e){if(Array.isArray(e))return d(e)}function g(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function _(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v(e){return h(e)||g(e)||f(e)||_()}var y=n(`a352`),b=n.n(y);function x(e){e.parentElement!==null&&e.parentElement.removeChild(e)}function S(e,t,n){var r=n===0?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}var C=n(`dbf1`);n(`13d5`),n(`4fad`),n(`ac1f`),n(`5319`);function w(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var T=/-(\w)/g,E=w(function(e){return e.replace(T,function(e,t){return t.toUpperCase()})});n(`5db7`),n(`73d9`);var D=[`Start`,`Add`,`Remove`,`Update`,`End`],O=[`Choose`,`Unchoose`,`Sort`,`Filter`,`Clone`],k=[`Move`],A=[k,D,O].flatMap(function(e){return e}).map(function(e){return`on${e}`}),j={manage:k,manageAndEmit:D,emit:O};function M(e){return A.indexOf(e)!==-1}n(`caad`),n(`2ca0`);var N=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.link.main.map.mark.math.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rb.rp.rt.rtc.ruby.s.samp.script.section.select.slot.small.source.span.strong.style.sub.summary.sup.svg.table.tbody.td.template.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr`.split(`.`);function P(e){return N.includes(e)}function F(e){return[`transition-group`,`TransitionGroup`].includes(e)}function I(e){return[`id`,`class`,`role`,`style`].includes(e)||e.startsWith(`data-`)||e.startsWith(`aria-`)||e.startsWith(`on`)}function ee(e){return e.reduce(function(e,t){var n=m(t,2),r=n[0];return e[r]=n[1],e},{})}function L(e){var t=e.$attrs,n=e.componentData,r=n===void 0?{}:n;return c(c({},ee(Object.entries(t).filter(function(e){var t=m(e,2),n=t[0];return t[1],I(n)}))),r)}function R(e){var t=e.$attrs,n=e.callBackBuilder,r=ee(z(t));Object.entries(n).forEach(function(e){var t=m(e,2),n=t[0],i=t[1];j[n].forEach(function(e){r[`on${e}`]=i(e)})});var i=`[data-draggable]${r.draggable||``}`;return c(c({},r),{},{draggable:i})}function z(e){return Object.entries(e).filter(function(e){var t=m(e,2),n=t[0];return t[1],!I(n)}).map(function(e){var t=m(e,2),n=t[0],r=t[1];return[E(n),r]}).filter(function(e){var t=m(e,2),n=t[0];return t[1],!M(n)})}n(`c740`);function B(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function V(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function H(e,t,n){return t&&V(e.prototype,t),n&&V(e,n),e}var U=function(e){return e.el},W=function(e,t){return e.__draggable_context=t},te=function(e){return e.__draggable_context},ne=function(){function e(t){var n=t.nodes,r=n.header,i=n.default,a=n.footer,o=t.root,s=t.realList;B(this,e),this.defaultNodes=i,this.children=[].concat(v(r),v(i),v(a)),this.externalComponent=o.externalComponent,this.rootTransition=o.transition,this.tag=o.tag,this.realList=s}return H(e,[{key:`render`,value:function(e,t){var n=this.tag,r=this.children;return e(n,t,this._isRootComponent?{default:function(){return r}}:r)}},{key:`updated`,value:function(){var e=this.defaultNodes,t=this.realList;e.forEach(function(e,n){W(U(e),{element:t[n],index:n})})}},{key:`getUnderlyingVm`,value:function(e){return te(e)}},{key:`getVmIndexFromDomIndex`,value:function(e,t){var n=this.defaultNodes,r=n.length,i=t.children,a=i.item(e);if(a===null)return r;var o=te(a);if(o)return o.index;if(r===0)return 0;var s=U(n[0]);return e<v(i).findIndex(function(e){return e===s})?0:r}},{key:`_isRootComponent`,get:function(){return this.externalComponent||this.rootTransition}}]),e}(),G=n(`8bbf`);function re(e,t){var n=e[t];return n?n():[]}function ie(e){var t=e.$slots,n=e.realList,r=e.getKey,i=n||[],a=m([`header`,`footer`].map(function(e){return re(t,e)}),2),o=a[0],s=a[1],l=t.item;if(!l)throw Error(`draggable element must have an item slot`);var u=i.flatMap(function(e,t){return l({element:e,index:t}).map(function(t){return t.key=r(e),t.props=c(c({},t.props||{}),{},{"data-draggable":!0}),t})});if(u.length!==i.length)throw Error(`Item slot must have only one child`);return{header:o,footer:s,default:u}}function K(e){var t=F(e),n=!P(e)&&!t;return{transition:t,externalComponent:n,tag:n?(0,G.resolveComponent)(e):t?G.TransitionGroup:e}}function q(e){var t=e.$slots,n=e.tag,r=e.realList,i=e.getKey;return new ne({nodes:ie({$slots:t,realList:r,getKey:i}),root:K(n),realList:r})}function J(e,t){var n=this;(0,G.nextTick)(function(){return n.$emit(e.toLowerCase(),t)})}function Y(e){var t=this;return function(n,r){if(t.realList!==null)return t[`onDrag${e}`](n,r)}}function ae(e){var t=this,n=Y.call(this,e);return function(r,i){n.call(t,r,i),J.call(t,e,r)}}var oe=null,X={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(e){return e}},tag:{type:String,default:`div`},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},se=[`update:modelValue`,`change`].concat(v([].concat(v(j.manageAndEmit),v(j.emit)).map(function(e){return e.toLowerCase()})));t.default=(0,G.defineComponent)({name:`draggable`,inheritAttrs:!1,props:X,emits:se,data:function(){return{error:!1}},render:function(){try{this.error=!1;var e=this.$slots,t=this.$attrs,n=this.tag,r=this.componentData,i=this.realList,a=this.getKey,o=q({$slots:e,tag:n,realList:i,getKey:a});this.componentStructure=o;var s=L({$attrs:t,componentData:r});return o.render(G.h,s)}catch(e){return this.error=!0,(0,G.h)(`pre`,{style:{color:`red`}},e.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&C.a.error(`modelValue and list props are mutually exclusive! Please set one or another.`)},mounted:function(){var e=this;if(!this.error){var t=this.$attrs,n=this.$el;this.componentStructure.updated();var r=R({$attrs:t,callBackBuilder:{manageAndEmit:function(t){return ae.call(e,t)},emit:function(t){return J.bind(e,t)},manage:function(t){return Y.call(e,t)}}}),i=n.nodeType===1?n:n.parentElement;this._sortable=new b.a(i,r),this.targetDomElement=i,i.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){return this.list||this.modelValue},getKey:function(){var e=this.itemKey;return typeof e==`function`?e:function(t){return t[e]}}},watch:{$attrs:{handler:function(e){var t=this._sortable;t&&z(e).forEach(function(e){var n=m(e,2),r=n[0],i=n[1];t.option(r,i)})},deep:!0}},methods:{getUnderlyingVm:function(e){return this.componentStructure.getUnderlyingVm(e)||null},getUnderlyingPotencialDraggableComponent:function(e){return e.__draggable_component__},emitChanges:function(e){var t=this;(0,G.nextTick)(function(){return t.$emit(`change`,e)})},alterList:function(e){if(this.list){e(this.list);return}var t=v(this.modelValue);e(t),this.$emit(`update:modelValue`,t)},spliceList:function(){var e=arguments;this.alterList(function(t){return t.splice.apply(t,v(e))})},updatePosition:function(e,t){this.alterList(function(n){return n.splice(t,0,n.splice(e,1)[0])})},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,r=this.getUnderlyingPotencialDraggableComponent(t);if(!r)return{component:r};var i=r.realList,a={list:i,component:r};return t!==n&&i?c(c({},r.getUnderlyingVm(n)||{}),a):a},getVmIndexFromDomIndex:function(e){return this.componentStructure.getVmIndexFromDomIndex(e,this.targetDomElement)},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),oe=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(t!==void 0){x(e.item);var n=this.getVmIndexFromDomIndex(e.newIndex);this.spliceList(n,0,t);var r={element:t,newIndex:n};this.emitChanges({added:r})}},onDragRemove:function(e){if(S(this.$el,e.item,e.oldIndex),e.pullMode===`clone`){x(e.clone);return}var t=this.context,n=t.index,r=t.element;this.spliceList(n,1);var i={element:r,oldIndex:n};this.emitChanges({removed:i})},onDragUpdate:function(e){x(e.item),S(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndexFromDomIndex(e.newIndex);this.updatePosition(t,n);var r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=v(t.to.children).filter(function(e){return e.style.display!==`none`}),r=n.indexOf(t.related),i=e.component.getVmIndexFromDomIndex(r);return n.indexOf(oe)!==-1||!t.willInsertAfter?i:i+1},onDragMove:function(e,t){var n=this.move,r=this.realList;if(!n||!r)return!0;var i=this.getRelatedContextFromMoveEvent(e),a=this.computeFutureIndex(i,e),o=c(c({},this.context),{},{futureIndex:a});return n(c(c({},e),{},{relatedContext:i,draggedContext:o}),t)},onDragEnd:function(){oe=null}}})}),fb6a:(function(e,t,n){var r=n(`23e7`),i=n(`861d`),a=n(`e8b5`),o=n(`23cb`),s=n(`50c4`),c=n(`fc6a`),l=n(`8418`),u=n(`b622`),d=n(`1dde`),f=n(`ae40`),p=d(`slice`),m=f(`slice`,{ACCESSORS:!0,0:0,1:2}),h=u(`species`),g=[].slice,_=Math.max;r({target:`Array`,proto:!0,forced:!p||!m},{slice:function(e,t){var n=c(this),r=s(n.length),u=o(e,r),d=o(t===void 0?r:t,r),f,p,m;if(a(n)&&(f=n.constructor,typeof f==`function`&&(f===Array||a(f.prototype))?f=void 0:i(f)&&(f=f[h],f===null&&(f=void 0)),f===Array||f===void 0))return g.call(n,u,d);for(p=new(f===void 0?Array:f)(_(d-u,0)),m=0;u<d;u++,m++)u in n&&l(p,m,n[u]);return p.length=m,p}})}),fc6a:(function(e,t,n){var r=n(`44ad`),i=n(`1d80`);e.exports=function(e){return r(i(e))}}),fdbc:(function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}}),fdbf:(function(e,t,n){e.exports=n(`4930`)&&!Symbol.sham&&typeof Symbol.iterator==`symbol`})}).default})})),Xo=r(Yo(),1),Zo=e=>String(e||``).trim(),Qo=e=>JSON.stringify(e??null),$o=e=>e==null?e:JSON.parse(JSON.stringify(e)),es=new Map,ts=()=>{try{return Ue()}catch{return null}};const ns=$(`zxFwPricingKeys`,()=>{let e=Y({}),t=Y({}),n=Y({}),r=t=>{let n=Zo(t);return!n||!Object.prototype.hasOwnProperty.call(e.value,n)?null:$o(e.value[n])};return{keyedStates:e,keyedLoaded:t,keySnapshots:n,getKeyState:r,loadKeyState:async(i,a=!1)=>{let o=Zo(i);if(!o)return null;let s=Object.prototype.hasOwnProperty.call(e.value,o);if(!a&&s)return t.value[o]=!0,n.value[o]||(n.value[o]=Qo(e.value[o])),r(o);if(!a&&es.has(o))return es.get(o);let c=(async()=>{let i=ts(),a=i?await i.getItem(o):null,s=Qo(a),c=n.value[o];return t.value[o]=!0,(c!==s||!Object.prototype.hasOwnProperty.call(e.value,o))&&(e.value[o]=$o(a),n.value[o]=s),r(o)})();es.set(o,c);try{return await c}finally{es.delete(o)}},setKeyState:(r,i,a)=>{let o=Zo(r);if(!o)return!1;let s=a?.force===!0,c=Qo(i),l=n.value[o];return t.value[o]=!0,!s&&l===c?!1:(e.value[o]=$o(i),n.value[o]=c,!0)},removeKeyState:r=>{let i=Zo(r);if(!i)return!1;let a=Object.prototype.hasOwnProperty.call(e.value,i);return delete e.value[i],t.value[i]=!0,n.value[i]=Qo(null),a},removeKeysByPrefix:r=>{let i=!1,a=new Set([...Object.keys(e.value),...Object.keys(t.value),...Object.keys(n.value)]);for(let o of a)o.startsWith(r)&&(Object.prototype.hasOwnProperty.call(e.value,o)&&(delete e.value[o],i=!0),delete t.value[o],delete n.value[o],es.delete(o));return i},setKeyStateSilent:(r,i)=>{e.value[r]=$o(i),t.value[r]=!0,n.value[r]=Qo(i)}}},{persist:!0});var rs=/^htExtraFee-(.+)-(additional-work|reserve)$/,is=[`rate-fee`,`hourly-fee`,`quantity-unit-price-fee`],as=e=>String(e||``).trim(),os=e=>JSON.stringify(e??null),ss=e=>e==null?e:JSON.parse(JSON.stringify(e)),cs=e=>({detailRows:Array.isArray(e?.detailRows)?ss(e.detailRows):[]});const ls=e=>{let t=as(e);if(!t)return null;let n=rs.exec(t);if(!n)return null;let r=String(n[1]||``).trim(),i=String(n[2]||``).trim();return!r||!i?null:{key:t,contractId:r,feeType:i,mainStorageKey:t}},us=e=>{let t=as(e);if(!t)return null;for(let e of is){let n=`-${e}`;if(!t.endsWith(n))continue;let r=t.slice(0,t.length-n.length),i=/^(htExtraFee-.+-(?:additional-work|reserve))-(.+)$/.exec(r);if(!i)continue;let a=String(i[1]||``).trim(),o=String(i[2]||``).trim();if(!(!a||!o))return{key:t,mainStorageKey:a,rowId:o,method:e}}return null},ds=$(`zxFwPricingHtFee`,()=>{let e=Y({}),t=Y({}),n=t=>{let n=as(t);return n&&e.value[n]||null},r=(t,r,i)=>{let a=as(t);if(!a)return!1;let o=i?.force===!0,s=i?.syncKeyState!==!1,c=r==null?null:cs(r),l=os(n(a)),u=os(c);if(!o&&l===u)return!1;if(c==null?delete e.value[a]:e.value[a]=c,s){let e=ns();c==null?e.removeKeyState(a):e.setKeyState(a,ss(c),{force:!0})}return!0},i=async(e,t=!1)=>{let i=as(e);if(!i)return null;if(!t){let e=n(i);if(e)return e}let a=await ns().loadKeyState(i,t);return a?(r(i,a,{force:!0,syncKeyState:!1}),n(i)):(r(i,null,{force:!0,syncKeyState:!1}),null)},a=e=>r(e,null),o=(e,n)=>(t.value[e]||(t.value[e]={}),t.value[e][n]||(t.value[e][n]={}),t.value[e][n]),s=(e,t,n)=>{let r=as(e),i=as(t);return!r||!i?``:`${r}-${i}-${n}`},c=(e,n,r)=>{let i=as(e),a=as(n);if(!i||!a)return null;let o=t.value[i]?.[a]?.[r];return o==null?null:ss(o)},l=(e,n,r,i,a)=>{let l=as(e),u=as(n);if(!l||!u)return!1;let d=s(l,u,r);if(!d)return!1;let f=a?.force===!0,p=a?.syncKeyState!==!1,m=os(c(l,u,r)),h=os(i??null);if(!f&&m===h)return!1;if(i==null){let e=t.value[l]?.[u];e&&(delete e[r],Object.keys(e).length===0&&(delete t.value[l][u],Object.keys(t.value[l]).length===0&&delete t.value[l]))}else{let e=o(l,u);e[r]=ss(i)}if(p){let e=ns();i==null?e.removeKeyState(d):e.setKeyState(d,ss(i),{force:!0})}return!0};return{htFeeMainStates:e,htFeeMethodStates:t,getHtFeeMainState:n,setHtFeeMainState:r,loadHtFeeMainState:i,removeHtFeeMainState:a,getHtFeeMethodStorageKey:s,getHtFeeMethodState:c,setHtFeeMethodState:l,loadHtFeeMethodState:async(e,t,n,r=!1)=>{let i=as(e),a=as(t);if(!i||!a)return null;if(!r){let e=c(i,a,n);if(e!=null)return e}let o=s(i,a,n),u=await ns().loadKeyState(o,r);return u==null?(l(i,a,n,null,{force:!0,syncKeyState:!1}),null):(l(i,a,n,u,{force:!0,syncKeyState:!1}),c(i,a,n))},removeHtFeeMethodState:(e,t,n)=>l(e,t,n,null),removeContractHtFeeData:n=>{let r=`htExtraFee-${n}-`,i=!1;for(let t of Object.keys(e.value))t.startsWith(r)&&(delete e.value[t],i=!0);for(let e of Object.keys(t.value))e.startsWith(r)&&(delete t.value[e],i=!0);return i}}},{persist:!0});var fs=`fixed-budget-c`,ps={investScale:`tzGMF`,landScale:`ydGMF`,serviceFee:`gzlF`,hourly:`hourlyPricing`},ms=new Map(Object.entries(ps).map(([e,t])=>[t,e])),hs=e=>String(e||``).trim(),gs=e=>String(e||``).trim(),_s=(e,t,n)=>`${ps[n]}-${e}-${t}`,vs=e=>{let t=Je(e);return t==null?null:qe(t,3)},ys=(e,t)=>t===fs?null:Number(e)===1?1:0,bs=e=>JSON.stringify(e??null),xs=e=>e==null?e:JSON.parse(JSON.stringify(e)),Ss=e=>(Array.isArray(e)?e:[]).map(e=>{let t=e,n=String(t.id||``);return{id:n,code:typeof t.code==`string`?t.code:``,name:typeof t.name==`string`?t.name:``,remark:typeof t.remark==`string`?t.remark:``,process:ys(t.process,n),investScale:Je(t.investScale),landScale:Je(t.landScale),serviceFee:Je(t.serviceFee),hourly:Je(t.hourly),subtotal:Je(t.subtotal),finalFee:Je(t.finalFee),actions:t.actions}}).filter(e=>e.id),Cs=e=>{let t=e.map(e=>({...e})),n=t.filter(e=>e.id!==fs),r=Xe(n.map(e=>e.investScale)),i=Xe(n.map(e=>e.landScale)),a=Xe(n.map(e=>e.workload)),o=Xe(n.map(e=>e.hourly)),s=Xe([r,i,a,o]);return t.map(e=>{if(e.id===fs)return{...e,investScale:vs(r),landScale:vs(i),workload:vs(a),hourly:vs(o),subtotal:vs(s),finalFee:e.finalFee};let t=Xe([e.investScale,e.landScale,e.workload,e.hourly]);return{...e,subtotal:vs(t),finalFee:e.finalFee==null?vs(t):vs(e.finalFee)}})},ws=e=>({selectedIds:Array.isArray(e?.selectedIds)?e.selectedIds.map(e=>String(e||``)).filter(Boolean):[],selectedCodes:Array.isArray(e?.selectedCodes)?e.selectedCodes.map(e=>String(e||``)).filter(Boolean):[],detailRows:Cs(Ss(e?.detailRows))}),Ts=e=>({selectedIds:[...e.selectedIds||[]],selectedCodes:[...e.selectedCodes||[]],detailRows:e.detailRows.map(e=>({...e}))}),Es=(e,t)=>{let n=Array.isArray(e)?e:[],r=Array.isArray(t)?t:[];if(n.length!==r.length)return!1;for(let e=0;e<n.length;e+=1)if(n[e]!==r[e])return!1;return!0},Ds=(e,t)=>Je(e)===Je(t),Os=(e,t)=>{let n=Array.isArray(e)?e:[],r=Array.isArray(t)?t:[];if(n.length!==r.length)return!1;for(let e=0;e<n.length;e+=1){let t=n[e],i=r[e];if(!t||!i||t.id!==i.id||(t.code||``)!==(i.code||``)||(t.name||``)!==(i.name||``)||(t.remark||``)!==(i.remark||``)||ys(t.process,t.id)!==ys(i.process,i.id)||!Ds(t.investScale,i.investScale)||!Ds(t.landScale,i.landScale)||!Ds(t.workload,i.workload)||!Ds(t.hourly,i.hourly)||!Ds(t.subtotal,i.subtotal)||!Ds(t.finalFee,i.finalFee))return!1}return!0},ks=(e,t)=>!e||!t||!Es(e.selectedIds,t.selectedIds)||!Es(e.selectedCodes,t.selectedCodes)?!1:Os(e.detailRows,t.detailRows),As=e=>{let t=Number(e);return Number.isFinite(t)?Math.max(1,Math.floor(t)):null},js=e=>({detailRows:Array.isArray(e?.detailRows)?xs(e.detailRows):[],projectCount:As(e?.projectCount)}),Ms=e=>{let t=hs(e);if(!t)return null;let n=t.indexOf(`-`);if(n<=0||n>=t.length-1)return null;let r=t.slice(0,n),i=ms.get(r);if(!i)return null;let a=t.slice(n+1),o=a.lastIndexOf(`-`);if(o<=0||o>=a.length-1)return null;let s=a.slice(0,o).trim(),c=a.slice(o+1).trim();return!s||!c?null:{key:t,method:i,contractId:s,serviceId:c}},Ns=new Map;const Ps=$(`zxFwPricing`,()=>{let e=!1,t=null,n=Y({}),r=Y({}),i=Y({}),a=ns(),o=ds(),s=o.htFeeMainStates,c=o.htFeeMethodStates,l=a.keyedStates,u=async()=>{e||(t||=Ze(`zxFwPricing`).catch(()=>void 0).finally(()=>{e=!0,t=null}),await t)},d=(e,t)=>{let n=hs(e),r=gs(t);return!n||!r?null:(i.value[n]||(i.value[n]={}),i.value[n][r]||(i.value[n][r]={}),i.value[n][r])},f=(e,t,n,r)=>{let i=d(e,t);return i?r?(i[n]=js(r),i[n]||null):(delete i[n],null):null},p=(e,t,n)=>{let r=hs(e),a=gs(t);return!r||!a?null:i.value[r]?.[a]?.[n]||null},m=(e,t,n,r,i)=>{let o=hs(e),s=gs(t);if(!o||!s)return!1;let c=_s(o,s,n),l=i?.force===!0,u=i?.syncKeyState!==!1,d=r==null?null:js(r),m=bs(p(o,s,n)),h=bs(d);return!l&&m===h?!1:(f(o,s,n,d),u&&(d==null?a.removeKeyState(c):a.setKeyState(c,xs(d),{force:!0})),!0)},h=async(e,t,n,r=!1)=>{let i=hs(e),a=gs(t);if(!i||!a)return null;if(!r){let e=p(i,a,n);if(e)return e}let o=await I(_s(i,a,n),r);return o?(m(i,a,n,o,{force:!0,syncKeyState:!1}),p(i,a,n)):(f(i,a,n,null),null)},g=(e,t,n)=>{let r=hs(e),i=gs(t);if(!r||!i)return!1;let o=_s(r,i,n),s=p(r,i,n)!=null;return f(r,i,n,null),a.removeKeyState(o),s},_=(e,t,n)=>{let r=hs(e),i=gs(t);return!r||!i?``:_s(r,i,n)},v=(e,t)=>{let n=hs(e),r=gs(t);return!n||!r?[]:Object.keys(ps).map(e=>_s(n,r,e))},y=(e,t)=>{let n=!1;for(let r of Object.keys(ps))n=g(e,t,r)||n;return n},b=o.getHtFeeMainState,x=o.setHtFeeMainState,S=o.loadHtFeeMainState,C=o.removeHtFeeMainState,w=o.getHtFeeMethodStorageKey,T=o.getHtFeeMethodState,E=o.setHtFeeMethodState,D=o.loadHtFeeMethodState,O=o.removeHtFeeMethodState,k=e=>{let t=Array.isArray(e?.detailRows)?e.detailRows.filter(e=>Je(e?.serviceBudget)!=null):[];if(t.length===0)return null;let n=0,r=!1;for(let e of t){let t=Je(e?.serviceBudget);if(t!=null){n+=t,r=!0;continue}let i=Je(e?.adoptedBudgetUnitPrice),a=Je(e?.personnelCount),o=Je(e?.workdayCount);i==null||a==null||o==null||(n+=i*a*o,r=!0)}return r?qe(n,3):null},A=e=>{let t=Array.isArray(e?.detailRows)?e.detailRows.filter(e=>Je(e?.budgetFee)!=null):[];if(t.length===0)return null;let n=0,r=!1;for(let e of t){if(String(e?.id||``)===`fee-subtotal-fixed`)continue;let t=Je(e?.budgetFee);if(t!=null){n+=t,r=!0;continue}let i=Je(e?.quantity),a=Je(e?.unitPrice);i==null||a==null||(n+=i*a,r=!0)}return r?qe(n,3):null},j=e=>{if(!e)return null;let t=[Je(e.rateFee),Je(e.hourlyFee),Je(e.quantityUnitPriceFee)];if(!t.some(e=>e!=null))return null;let n=0;for(let e of t)n+=et(e);return qe(n,3)},M=e=>{if(!Array.isArray(e)||e.length===0)return null;let t=e.map(e=>j(e)).filter(e=>e!=null);return t.length===0?null:qe(t.reduce((e,t)=>e+t,0),3)},N=async(e,t)=>{let n=await S(e),r=Array.isArray(n?.detailRows)?n.detailRows:[];if(r.length===0)return null;let i=await Promise.all(r.map(async n=>{let r=String(n?.id||``).trim();if(!r)return n;let[i,a,o]=await Promise.all([D(e,r,`rate-fee`),D(e,r,`hourly-fee`),D(e,r,`quantity-unit-price-fee`)]),s=Je(i?.rate),c=t!=null&&s!=null?qe(t*s/100,2):null;i&&Je(i.budgetFee)!==c&&E(e,r,`rate-fee`,{...i,budgetFee:c},{force:!0});let l=k(a),u=A(o),d={...n,rateFee:c,hourlyFee:l,quantityUnitPriceFee:u};return{...d,subtotal:j(d)}}));return bs(r)===bs(i)?M(r):(x(e,{detailRows:i},{force:!0}),M(i))},P=async e=>{if(e)try{let t=H(e),n=`htExtraFee-${e}-additional-work`,r=`htExtraFee-${e}-reserve`,i=await N(n,t);await N(r,t!=null||i!=null?qe(et(t)+et(i),3):null)}catch(e){console.error(`syncHtExtraFeeByContractBase failed:`,e)}},F=e=>{let t=hs(e);if(!t)return null;let n=Ms(t);if(n){let e=p(n.contractId,n.serviceId,n.method);if(e!=null)return xs(e)}let r=us(t);if(r){let e=T(r.mainStorageKey,r.rowId,r.method);if(e!=null)return xs(e)}let i=ls(t);if(i){let e=b(i.mainStorageKey);if(e!=null)return xs(e)}return a.getKeyState(t)},I=async(e,t=!1)=>{let n=hs(e);if(!n)return null;let r=await a.loadKeyState(n,t),i=Ms(n);i&&m(i.contractId,i.serviceId,i.method,r,{force:!0,syncKeyState:!1});let o=us(n);o&&E(o.mainStorageKey,o.rowId,o.method,r,{force:!0,syncKeyState:!1});let s=ls(n);return s&&x(s.mainStorageKey,r,{force:!0,syncKeyState:!1}),F(n)},ee=(e,t,n)=>{let r=hs(e);if(!r)return!1;let i=Ms(r);i&&m(i.contractId,i.serviceId,i.method,t,{force:!0,syncKeyState:!1});let o=us(r);o&&E(o.mainStorageKey,o.rowId,o.method,t,{force:!0,syncKeyState:!1});let s=ls(r);return s&&x(s.mainStorageKey,t,{force:!0,syncKeyState:!1}),a.setKeyState(r,t,n)},L=e=>{let t=hs(e);if(!t)return!1;let n=Ms(t);n&&f(n.contractId,n.serviceId,n.method,null);let r=us(t);r&&E(r.mainStorageKey,r.rowId,r.method,null,{force:!0,syncKeyState:!1});let i=ls(t);return i&&x(i.mainStorageKey,null,{force:!0,syncKeyState:!1}),a.removeKeyState(t)},R=e=>{let t=hs(e);if(!t)return null;let r=n.value[t];return r?Ts(r):null},z=async(e,t=!1)=>{let i=hs(e);if(!i)return null;if(await u(),!t&&r.value[i]||!t&&n.value[i])return R(i);if(!t&&Ns.has(i))return Ns.get(i);let a=(async()=>(n.value[i]||(n.value[i]=ws(null)),r.value[i]=!0,R(i)))();Ns.set(i,a);try{return await a}finally{Ns.delete(i)}},B=async(e,t)=>{let i=hs(e);if(!i)return!1;let a=ws(t),o=n.value[i];return o&&ks(o,a)?!1:(n.value[i]=a,r.value[i]=!0,!0)},V=async e=>{let t=hs(e.contractId);if(!t)return!1;let i=n.value[t];if(!i?.detailRows?.length)return!1;let a=String(e.serviceId||``).trim();if(!a)return!1;let o=Je(e.value),s=!1,c=i.detailRows.map(t=>String(t.id||``)!==a||Je(t[e.field])===o?t:(s=!0,{...t,[e.field]:o}));if(!s)return!1;let l=c.map(e=>{let t=String(e.id||``);if(t===fs||t!==a)return e;let n=Xe([Je(e.investScale),Je(e.landScale),Je(e.serviceFee),Je(e.hourly)]);return{...e,finalFee:vs(n)}}),u=vs(Xe(l.filter(e=>String(e.id||``)!==fs).map(e=>Je(e.finalFee)))),d=l.map(e=>String(e.id||``)===fs?{...e,finalFee:u}:e),f=ws({...i,detailRows:d});return ks(i,f)?!1:(n.value[t]=f,r.value[t]=!0,await P(t),!0)},H=e=>{let t=hs(e);if(!t)return null;let r=n.value[t];if(!r?.detailRows?.length)return null;let i=Je(r.detailRows.find(e=>String(e.id||``)===fs)?.finalFee);if(i!=null)return qe(i,3);let a=!1,o=r.detailRows.reduce((e,t)=>{if(String(t.id||``)===fs)return e;let n=Je(t.finalFee)??Je(t.subtotal);return n!=null&&(a=!0),n==null?e:e+n},0);return a?qe(o,3):null};return{contracts:n,contractLoaded:r,servicePricingStates:i,htFeeMainStates:s,htFeeMethodStates:c,keyedStates:l,getContractState:R,loadContract:z,setContractState:B,updatePricingField:V,getBaseSubtotal:H,removeContractData:e=>{let t=hs(e);if(!t)return!1;let s=!1;Object.prototype.hasOwnProperty.call(n.value,t)&&(delete n.value[t],s=!0),Object.prototype.hasOwnProperty.call(i.value,t)&&(delete i.value[t],s=!0),Object.prototype.hasOwnProperty.call(r.value,t)&&(delete r.value[t],s=!0),Ns.delete(t),s=o.removeContractHtFeeData(t)||s;let c=`htExtraFee-${t}-`;s=a.removeKeysByPrefix(c)||s;for(let e of Object.values(ps))s=a.removeKeysByPrefix(`${e}-${t}-`)||s;return s},getKeyState:F,loadKeyState:I,setKeyState:ee,removeKeyState:L,getServicePricingMethodState:p,setServicePricingMethodState:m,loadServicePricingMethodState:h,removeServicePricingMethodState:g,getServicePricingStorageKey:_,getServicePricingStorageKeys:v,removeAllServicePricingMethodStates:y,getHtFeeMainState:b,setHtFeeMainState:x,loadHtFeeMainState:S,removeHtFeeMainState:C,getHtFeeMethodStorageKey:w,getHtFeeMethodState:T,setHtFeeMethodState:E,loadHtFeeMethodState:D,removeHtFeeMethodState:O}},{persist:!0});var Fs=fe({__name:`ScrollBar`,props:{orientation:{default:`vertical`},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){let t=e,n=at(t,`class`);return(r,i)=>(I(),J(X(ut),B({"data-slot":`scroll-area-scrollbar`},X(n),{class:X(tt)(`flex touch-none p-px transition-colors select-none`,e.orientation===`vertical`&&`h-full w-2.5 border-l border-l-transparent`,e.orientation===`horizontal`&&`h-2.5 flex-col border-t border-t-transparent`,t.class)}),{default:Q(()=>[P(X(gt),{"data-slot":`scroll-area-thumb`,class:`bg-border relative flex-1 rounded-full`})]),_:1},16,[`class`]))}}),Is=en(fe({__name:`ScrollArea`,props:{type:{},dir:{},scrollHideDelay:{},asChild:{type:Boolean},as:{},class:{}},setup(e){let t=e,n=at(t,`class`);return(e,r)=>(I(),J(X(ft),B({"data-slot":`scroll-area`},X(n),{class:X(tt)(`relative`,t.class)}),{default:Q(()=>[P(X(mt),{"data-slot":`scroll-area-viewport`,class:`focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1 scrollArea-full`},{default:Q(()=>[ue(e.$slots,`default`,{},void 0,!0)]),_:3}),P(Fs),P(X(dt))]),_:3},16,[`class`]))}}),[[`__scopeId`,`data-v-aa6f0e61`]]),Ls=fe({__name:`TooltipContent`,props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{default:6},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},class:{}},setup(e){let t=e,n=at(t,`class`);return(e,r)=>(I(),J(X(_t),null,{default:Q(()=>[P(X(ot),B(X(n),{class:X(tt)(`z-[90] rounded-md border bg-popover px-2 py-1 text-xs text-popover-foreground shadow-md`,t.class)}),{default:Q(()=>[ue(e.$slots,`default`),P(X(lt),{class:`fill-popover`})]),_:3},16,[`class`])]),_:3}))}}),Rs=a(((e,t)=>{(function(t,n){typeof define==`function`&&define.amd?define([],n):e===void 0?(n(),t.FileSaver={exports:{}}.exports):n()})(e,function(){function e(e,t){return t===void 0?t={autoBom:!1}:typeof t!=`object`&&(console.warn(`Deprecated: Expected third argument to be a object`),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function n(e,t,n){var r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){s(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function r(e){var t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{var t=document.createEvent(`MouseEvents`);t.initMouseEvent(`click`,!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var a=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:void 0,o=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=a.saveAs||(typeof window!=`object`||window!==a?function(){}:`download`in HTMLAnchorElement.prototype&&!o?function(e,t,o){var s=a.URL||a.webkitURL,c=document.createElement(`a`);t=t||e.name||`download`,c.download=t,c.rel=`noopener`,typeof e==`string`?(c.href=e,c.origin===location.origin?i(c):r(c.href)?n(e,t,o):i(c,c.target=`_blank`)):(c.href=s.createObjectURL(e),setTimeout(function(){s.revokeObjectURL(c.href)},4e4),setTimeout(function(){i(c)},0))}:`msSaveOrOpenBlob`in navigator?function(t,a,o){if(a=a||t.name||`download`,typeof t!=`string`)navigator.msSaveOrOpenBlob(e(t,o),a);else if(r(t))n(t,a,o);else{var s=document.createElement(`a`);s.href=t,s.target=`_blank`,setTimeout(function(){i(s)})}}:function(e,t,r,i){if(i||=open(``,`_blank`),i&&(i.document.title=i.document.body.innerText=`downloading...`),typeof e==`string`)return n(e,t,r);var s=e.type===`application/octet-stream`,c=/constructor/i.test(a.HTMLElement)||a.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||s&&c||o)&&typeof FileReader<`u`){var u=new FileReader;u.onloadend=function(){var e=u.result;e=l?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),i?i.location.href=e:location=e,i=null},u.readAsDataURL(e)}else{var d=a.URL||a.webkitURL,f=d.createObjectURL(e);i?i.location=f:location.href=f,i=null,setTimeout(function(){d.revokeObjectURL(f)},4e4)}});a.saveAs=s.saveAs=s,t!==void 0&&(t.exports=s)})}))();function zs(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===`Uint8Array`&&`BYTES_PER_ELEMENT`in e&&e.BYTES_PER_ELEMENT===1}function Bs(e){if(typeof e!=`boolean`)throw TypeError(`boolean expected, not ${e}`)}function Vs(e){if(typeof e!=`number`)throw TypeError(`number expected, got `+typeof e);if(!Number.isSafeInteger(e)||e<0)throw RangeError(`positive integer expected, got `+e)}function Hs(e,t,n=``){let r=zs(e),i=e?.length,a=t!==void 0;if(!r||a&&i!==t){let o=n&&`"${n}" `,s=a?` of length ${t}`:``,c=r?`length=${i}`:`type=${typeof e}`,l=o+`expected Uint8Array`+s+`, got `+c;throw r?RangeError(l):TypeError(l)}return e}function Us(e,t=!0){if(e.destroyed)throw Error(`Hash instance has been destroyed`);if(t&&e.finished)throw Error(`Hash#digest() has already been called`)}function Ws(e,t,n=!1){Hs(e,void 0,`output`);let r=t.outputLen;if(e.length<r)throw RangeError(`digestInto() expects output buffer of length at least `+r);if(n&&!ic(e))throw Error(`invalid output, must be aligned`)}function Gs(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}function Ks(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function qs(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Js(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}const Ys=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,Xs=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255,Zs=Ys?e=>e:e=>Xs(e)>>>0,Qs=Ys?e=>e:e=>{for(let t=0;t<e.length;t++)e[t]=Xs(e[t]);return e};typeof Uint8Array.from([]).toHex==`function`&&Uint8Array.fromHex;function $s(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r<e.length;r++)n|=e[r]^t[r];return n===0}function ec(e,t,n){let r=t,i=n||(()=>[]),a=(e,t)=>r(t,...i(e)).update(e).digest(),o=r(new Uint8Array(e),...i(new Uint8Array));return a.outputLen=o.outputLen,a.blockLen=o.blockLen,a.create=(e,...t)=>r(e,...t),a}const tc=(e,t)=>{function n(n,...r){if(Hs(n,void 0,`key`),e.nonceLength!==void 0){let t=r[0];Hs(t,e.varSizeNonce?void 0:e.nonceLength,`nonce`)}let i=e.tagLength;i&&r[1]!==void 0&&Hs(r[1],void 0,`AAD`);let a=t(n,...r),o=(e,t)=>{if(t!==void 0){if(e!==2)throw Error(`cipher output not supported`);Hs(t,void 0,`output`)}},s=!1;return{encrypt(e,t){if(s)throw Error(`cannot encrypt() twice with same key + nonce`);return s=!0,Hs(e),o(a.encrypt.length,t),a.encrypt(e,t)},decrypt(e,t){if(Hs(e),i&&e.length<i)throw Error(`"ciphertext" expected length bigger than tagLength=`+i);return o(a.decrypt.length,t),a.decrypt(e,t)}}}return Object.assign(n,e),n};function nc(e,t,n=!0){if(t===void 0)return new Uint8Array(e);if(Hs(t,void 0,`output`),t.length!==e)throw Error(`"output" expected Uint8Array of length `+e+`, got: `+t.length);if(n&&!ic(t))throw Error(`invalid output, must be aligned`);return t}function rc(e,t,n){Vs(e),Vs(t),Bs(n);let r=new Uint8Array(16),i=Js(r);return i.setBigUint64(0,BigInt(t),n),i.setBigUint64(8,BigInt(e),n),r}function ic(e){return e.byteOffset%4==0}function ac(e){return Uint8Array.from(Hs(e))}var oc=16,sc=new Uint8Array(16),cc=Ks(sc),lc=225,uc=(e,t,n,r)=>{let i=r&1;return{s3:n<<31|r>>>1,s2:t<<31|n>>>1,s1:e<<31|t>>>1,s0:e>>>1^lc<<24&-(i&1)}},dc=e=>(e>>>0&255)<<24|(e>>>8&255)<<16|(e>>>16&255)<<8|e>>>24&255|0,fc=e=>e>64*1024?8:e>1024?4:2,pc=class{blockLen=oc;outputLen=oc;s0=0;s1=0;s2=0;s3=0;finished=!1;destroyed=!1;t;W;windowSize;constructor(e,t){Hs(e,16,`key`),e=ac(e);let n=Js(e),r=n.getUint32(0,!1),i=n.getUint32(4,!1),a=n.getUint32(8,!1),o=n.getUint32(12,!1),s=[];for(let e=0;e<128;e++)s.push({s0:dc(r),s1:dc(i),s2:dc(a),s3:dc(o)}),{s0:r,s1:i,s2:a,s3:o}=uc(r,i,a,o);let c=fc(t||1024);if(![1,2,4,8].includes(c))throw Error(`ghash: invalid window size, expected 2, 4 or 8`);this.W=c;let l=128/c,u=this.windowSize=2**c,d=[];for(let e=0;e<l;e++)for(let t=0;t<u;t++){let n=0,r=0,i=0,a=0;for(let o=0;o<c;o++){if(!(t>>>c-o-1&1))continue;let{s0:l,s1:u,s2:d,s3:f}=s[c*e+o];n^=l,r^=u,i^=d,a^=f}d.push({s0:n,s1:r,s2:i,s3:a})}this.t=d}_updateBlock(e,t,n,r){e^=this.s0,t^=this.s1,n^=this.s2,r^=this.s3;let{W:i,t:a,windowSize:o}=this,s=0,c=0,l=0,u=0,d=(1<<i)-1,f=0;for(let p of[e,t,n,r])for(let e=0;e<4;e++){let t=p>>>8*e&255;for(let e=8/i-1;e>=0;e--){let n=t>>>i*e&d,{s0:r,s1:p,s2:m,s3:h}=a[f*o+n];s^=r,c^=p,l^=m,u^=h,f+=1}}this.s0=s,this.s1=c,this.s2=l,this.s3=u}update(e){Us(this),Hs(e),e=ac(e);let t=Ks(e),n=Math.floor(e.length/oc),r=e.length%oc;for(let e=0;e<n;e++)this._updateBlock(Zs(t[e*4+0]),Zs(t[e*4+1]),Zs(t[e*4+2]),Zs(t[e*4+3]));return r&&(sc.set(e.subarray(n*oc)),this._updateBlock(Zs(cc[0]),Zs(cc[1]),Zs(cc[2]),Zs(cc[3])),qs(cc)),this}destroy(){this.destroyed=!0;let{t:e}=this;for(let t of e)t.s0=0,t.s1=0,t.s2=0,t.s3=0}digestInto(e){Us(this),Ws(e,this,!0),this.finished=!0;let{s0:t,s1:n,s2:r,s3:i}=this,a=Ks(e);a[0]=t,a[1]=n,a[2]=r,a[3]=i,Qs(a)}digest(){let e=new Uint8Array(oc);return this.digestInto(e),this.destroy(),e}};const mc=ec(16,(e,t)=>new pc(e,t),e=>[e.length]);var hc=16,gc=4,_c=new Uint8Array(hc),vc=283;function yc(e){if(![16,24,32].includes(e.length))throw Error(`"aes key" expected Uint8Array of length 16/24/32, got length=`+e.length)}function bc(e){return e<<1^vc&-(e>>7)}function xc(e,t){let n=0;for(;t>0;t>>=1)n^=e&-(t&1),e=bc(e);return n}var Sc=(()=>{let e=new Uint8Array(256);for(let t=0,n=1;t<256;t++,n^=bc(n))e[t]=n;let t=new Uint8Array(256);t[0]=99;for(let n=0;n<255;n++){let r=e[255-n];r|=r<<8,t[e[n]]=(r^r>>4^r>>5^r>>6^r>>7^99)&255}return qs(e),t})(),Cc=e=>e<<24|e>>>8,wc=e=>e<<8|e>>>24;function Tc(e,t){if(e.length!==256)throw Error(`Wrong sbox length`);let n=new Uint32Array(256).map((n,r)=>t(e[r])),r=n.map(wc),i=r.map(wc),a=i.map(wc),o=new Uint32Array(256*256),s=new Uint32Array(256*256),c=new Uint16Array(256*256);for(let t=0;t<256;t++)for(let l=0;l<256;l++){let u=t*256+l;o[u]=n[t]^r[l],s[u]=i[t]^a[l],c[u]=e[t]<<8|e[l]}return{sbox:e,sbox2:c,T0:n,T1:r,T2:i,T3:a,T01:o,T23:s}}var Ec=Tc(Sc,e=>xc(e,3)<<24|e<<16|e<<8|xc(e,2)),Dc=(()=>{let e=new Uint8Array(16);for(let t=0,n=1;t<16;t++,n=bc(n))e[t]=n;return e})();function Oc(e){Hs(e);let t=e.length;yc(e);let{sbox2:n}=Ec,r=[];(!Ys||!ic(e))&&r.push(e=ac(e));let i=Qs(Ks(e)),a=i.length,o=e=>Ac(n,e,e,e,e),s=new Uint32Array(t+28);s.set(i);for(let e=a;e<s.length;e++){let t=s[e-1];e%a===0?t=o(Cc(t))^Dc[e/a-1]:a>6&&e%a===4&&(t=o(t)),s[e]=s[e-a]^t}return qs(...r),s}function kc(e,t,n,r,i,a){return e[n<<8&65280|r>>>8&255]^t[i>>>8&65280|a>>>24&255]}function Ac(e,t,n,r,i){return e[t&255|n&65280]|e[r>>>16&255|i>>>16&65280]<<16}function jc(e,t,n,r,i){let{sbox2:a,T01:o,T23:s}=Ec,c=0;t^=e[c++],n^=e[c++],r^=e[c++],i^=e[c++];let l=e.length/4-2;for(let a=0;a<l;a++){let a=e[c++]^kc(o,s,t,n,r,i),l=e[c++]^kc(o,s,n,r,i,t),u=e[c++]^kc(o,s,r,i,t,n),d=e[c++]^kc(o,s,i,t,n,r);t=a,n=l,r=u,i=d}return{s0:e[c++]^Ac(a,t,n,r,i),s1:e[c++]^Ac(a,n,r,i,t),s2:e[c++]^Ac(a,r,i,t,n),s3:e[c++]^Ac(a,i,t,n,r)}}function Mc(e,t,n,r,i){Hs(n,hc,`nonce`),Hs(r),i=nc(r.length,i);let a=n,o=Ks(a),s=Js(a),c=Ks(r),l=Ks(i),u=t?0:12,d=r.length,f=s.getUint32(u,t),{s0:p,s1:m,s2:h,s3:g}=jc(e,Zs(o[0]),Zs(o[1]),Zs(o[2]),Zs(o[3]));for(let n=0;n+4<=c.length;n+=4)l[n+0]=c[n+0]^Zs(p),l[n+1]=c[n+1]^Zs(m),l[n+2]=c[n+2]^Zs(h),l[n+3]=c[n+3]^Zs(g),f=f+1>>>0,s.setUint32(u,f,t),{s0:p,s1:m,s2:h,s3:g}=jc(e,Zs(o[0]),Zs(o[1]),Zs(o[2]),Zs(o[3]));let _=hc*Math.floor(c.length/gc);if(_<d){let e=new Uint32Array([p,m,h,g]);Qs(e);let t=Gs(e);for(let e=_,n=0;e<d;e++,n++)i[e]=r[e]^t[n];qs(e)}return i}function Nc(e,t,n,r,i){let a=i?i.length:0,o=e.create(n,r.length+a);i&&o.update(i);let s=rc(8*r.length,8*a,t);o.update(r),o.update(s);let c=o.digest();return qs(s),c}const Pc=tc({blockSize:16,nonceLength:12,tagLength:16,varSizeNonce:!0},function(e,t,n){if(t.length<8)throw Error(`aes/gcm: invalid nonce length`);function r(e,t,r){let i=Nc(mc,!1,e,r,n);for(let e=0;e<t.length;e++)i[e]^=t[e];return i}function i(){let n=Oc(e),r=_c.slice(),i=_c.slice();if(Mc(n,!1,i,i,r),t.length===12)i.set(t);else{let e=_c.slice();Js(e).setBigUint64(8,BigInt(t.length*8),!1);let n=mc.create(r).update(t).update(e);n.digestInto(i),n.destroy()}return{xk:n,authKey:r,counter:i,tagMask:Mc(n,!1,i,_c)}}return{encrypt(e){let{xk:t,authKey:n,counter:a,tagMask:o}=i(),s=new Uint8Array(e.length+16),c=[t,n,a,o];ic(e)||c.push(e=ac(e)),Mc(t,!1,a,e,s.subarray(0,e.length));let l=r(n,o,s.subarray(0,s.length-16));return c.push(l),s.set(l,e.length),qs(...c),s},decrypt(e){let{xk:t,authKey:n,counter:a,tagMask:o}=i(),s=[t,n,o,a];ic(e)||s.push(e=ac(e));let c=e.subarray(0,-16),l=e.subarray(-16),u=r(n,o,c);if(s.push(u),!$s(u,l))throw qs(...s),Error(`aes/gcm: invalid ghash tag`);let d=Mc(t,!1,a,c);return qs(...s),d}}});function Fc(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===`Uint8Array`&&`BYTES_PER_ELEMENT`in e&&e.BYTES_PER_ELEMENT===1}function Ic(e,t,n=``){let r=Fc(e),i=e?.length,a=t!==void 0;if(!r||a&&i!==t){let o=n&&`"${n}" `,s=a?` of length ${t}`:``,c=r?`length=${i}`:`type=${typeof e}`,l=o+`expected Uint8Array`+s+`, got `+c;throw r?RangeError(l):TypeError(l)}return e}function Lc(e,t=!0){if(e.destroyed)throw Error(`Hash instance has been destroyed`);if(t&&e.finished)throw Error(`Hash#digest() has already been called`)}function Rc(e,t){Ic(e,void 0,`digestInto() output`);let n=t.outputLen;if(e.length<n)throw RangeError(`"digestInto() output" expected to be of length >=`+n)}function zc(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Bc(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Vc(e,t){return e<<32-t|e>>>t}new Uint8Array(new Uint32Array([287454020]).buffer)[0],typeof Uint8Array.from([]).toHex==`function`&&Uint8Array.fromHex;function Hc(e,t={}){let n=(t,n)=>e(n).update(t).digest(),r=e(void 0);return n.outputLen=r.outputLen,n.blockLen=r.blockLen,n.canXOF=r.canXOF,n.create=t=>e(t),Object.assign(n,t),Object.freeze(n)}const Uc=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])});function Wc(e,t,n){return e&t^~e&n}function Gc(e,t,n){return e&t^e&n^t&n}var Kc=class{blockLen;outputLen;canXOF=!1;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(e,t,n,r){this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.buffer=new Uint8Array(e),this.view=Bc(this.buffer)}update(e){Lc(this),Ic(e);let{view:t,buffer:n,blockLen:r}=this,i=e.length;for(let a=0;a<i;){let o=Math.min(r-this.pos,i-a);if(o===r){let t=Bc(e);for(;r<=i-a;a+=r)this.process(t,a);continue}n.set(e.subarray(a,a+o),this.pos),this.pos+=o,a+=o,this.pos===r&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){Lc(this),Rc(e,this),this.finished=!0;let{buffer:t,view:n,blockLen:r,isLE:i}=this,{pos:a}=this;t[a++]=128,zc(this.buffer.subarray(a)),this.padOffset>r-a&&(this.process(n,0),a=0);for(let e=a;e<r;e++)t[e]=0;n.setBigUint64(r-8,BigInt(this.length*8),i),this.process(n,0);let o=Bc(e),s=this.outputLen;if(s%4)throw Error(`_sha2: outputLen must be aligned to 32bit`);let c=s/4,l=this.get();if(c>l.length)throw Error(`_sha2: outputLen bigger than state`);for(let e=0;e<c;e++)o.setUint32(4*e,l[e],i)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||=new this.constructor,e.set(...this.get());let{blockLen:t,buffer:n,length:r,finished:i,destroyed:a,pos:o}=this;return e.destroyed=a,e.finished=i,e.length=r,e.pos=o,r%t&&e.buffer.set(n),e}clone(){return this._cloneInto()}};const qc=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);var Jc=BigInt(2**32-1),Yc=BigInt(32);function Xc(e,t=!1){return t?{h:Number(e&Jc),l:Number(e>>Yc&Jc)}:{h:Number(e>>Yc&Jc)|0,l:Number(e&Jc)|0}}function Zc(e,t=!1){let n=e.length,r=new Uint32Array(n),i=new Uint32Array(n);for(let a=0;a<n;a++){let{h:n,l:o}=Xc(e[a],t);[r[a],i[a]]=[n,o]}return[r,i]}var Qc=Uint32Array.from([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]),$c=new Uint32Array(64),el=class extends Kc{constructor(e){super(64,e,8,!1)}get(){let{A:e,B:t,C:n,D:r,E:i,F:a,G:o,H:s}=this;return[e,t,n,r,i,a,o,s]}set(e,t,n,r,i,a,o,s){this.A=e|0,this.B=t|0,this.C=n|0,this.D=r|0,this.E=i|0,this.F=a|0,this.G=o|0,this.H=s|0}process(e,t){for(let n=0;n<16;n++,t+=4)$c[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=$c[e-15],n=$c[e-2],r=Vc(t,7)^Vc(t,18)^t>>>3;$c[e]=(Vc(n,17)^Vc(n,19)^n>>>10)+$c[e-7]+r+$c[e-16]|0}let{A:n,B:r,C:i,D:a,E:o,F:s,G:c,H:l}=this;for(let e=0;e<64;e++){let t=Vc(o,6)^Vc(o,11)^Vc(o,25),u=l+t+Wc(o,s,c)+Qc[e]+$c[e]|0,d=(Vc(n,2)^Vc(n,13)^Vc(n,22))+Gc(n,r,i)|0;l=c,c=s,s=o,o=a+u|0,a=i,i=r,r=n,n=u+d|0}n=n+this.A|0,r=r+this.B|0,i=i+this.C|0,a=a+this.D|0,o=o+this.E|0,s=s+this.F|0,c=c+this.G|0,l=l+this.H|0,this.set(n,r,i,a,o,s,c,l)}roundClean(){zc($c)}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),zc(this.buffer)}},tl=class extends el{A=qc[0]|0;B=qc[1]|0;C=qc[2]|0;D=qc[3]|0;E=qc[4]|0;F=qc[5]|0;G=qc[6]|0;H=qc[7]|0;constructor(){super(32)}},nl=Zc(`0x428a2f98d728ae22.0x7137449123ef65cd.0xb5c0fbcfec4d3b2f.0xe9b5dba58189dbbc.0x3956c25bf348b538.0x59f111f1b605d019.0x923f82a4af194f9b.0xab1c5ed5da6d8118.0xd807aa98a3030242.0x12835b0145706fbe.0x243185be4ee4b28c.0x550c7dc3d5ffb4e2.0x72be5d74f27b896f.0x80deb1fe3b1696b1.0x9bdc06a725c71235.0xc19bf174cf692694.0xe49b69c19ef14ad2.0xefbe4786384f25e3.0x0fc19dc68b8cd5b5.0x240ca1cc77ac9c65.0x2de92c6f592b0275.0x4a7484aa6ea6e483.0x5cb0a9dcbd41fbd4.0x76f988da831153b5.0x983e5152ee66dfab.0xa831c66d2db43210.0xb00327c898fb213f.0xbf597fc7beef0ee4.0xc6e00bf33da88fc2.0xd5a79147930aa725.0x06ca6351e003826f.0x142929670a0e6e70.0x27b70a8546d22ffc.0x2e1b21385c26c926.0x4d2c6dfc5ac42aed.0x53380d139d95b3df.0x650a73548baf63de.0x766a0abb3c77b2a8.0x81c2c92e47edaee6.0x92722c851482353b.0xa2bfe8a14cf10364.0xa81a664bbc423001.0xc24b8b70d0f89791.0xc76c51a30654be30.0xd192e819d6ef5218.0xd69906245565a910.0xf40e35855771202a.0x106aa07032bbd1b8.0x19a4c116b8d2d0c8.0x1e376c085141ab53.0x2748774cdf8eeb99.0x34b0bcb5e19b48a8.0x391c0cb3c5c95a63.0x4ed8aa4ae3418acb.0x5b9cca4f7763e373.0x682e6ff3d6b2b8a3.0x748f82ee5defb2fc.0x78a5636f43172f60.0x84c87814a1f0ab72.0x8cc702081a6439ec.0x90befffa23631e28.0xa4506cebde82bde9.0xbef9a3f7b2c67915.0xc67178f2e372532b.0xca273eceea26619c.0xd186b8c721c0c207.0xeada7dd6cde0eb1e.0xf57d4f7fee6ed178.0x06f067aa72176fba.0x0a637dc5a2c898a6.0x113f9804bef90dae.0x1b710b35131c471b.0x28db77f523047d84.0x32caab7b40c72493.0x3c9ebe0a15c9bebc.0x431d67c49c100d4c.0x4cc5d4becb3e42b6.0x597f299cfc657e2a.0x5fcb6fab3ad6faec.0x6c44198c4a475817`.split(`.`).map(e=>BigInt(e)));nl[0],nl[1];const rl=Hc(()=>new tl,Uc(1));var il=1,al=`JGJS2026::ZW::ARCHIVE::V1::DO_NOT_TAMPER`,ol=new Uint8Array([74,71,74,83,90,87]),sl=new TextEncoder,cl=new TextDecoder,ll=null,ul=e=>e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength),dl=()=>{let e=globalThis.crypto;if(!e||typeof e.getRandomValues!=`function`)throw Error(`ZW_CRYPTO_UNAVAILABLE`);return e},fl=()=>{let e=globalThis.crypto?.subtle;return!!(e&&typeof e.importKey==`function`&&typeof e.encrypt==`function`&&typeof e.decrypt==`function`)},pl=()=>(ll||=rl(sl.encode(al)),ll),ml=async()=>{if(!fl())throw Error(`ZW_SUBTLE_UNAVAILABLE`);return dl().subtle.importKey(`raw`,ul(pl()),{name:`AES-GCM`},!1,[`encrypt`,`decrypt`])};const hl=async e=>{let t=dl(),n=t.getRandomValues(new Uint8Array(12)),r=ul(n),i=sl.encode(JSON.stringify(e)),a=fl()?new Uint8Array(await t.subtle.encrypt({name:`AES-GCM`,iv:r},await ml(),ul(i))):Pc(pl(),n).encrypt(i),o=new Uint8Array(ol.length+1+1+n.length+a.length),s=0;return o.set(ol,s),s+=ol.length,o[s]=il,s+=1,o[s]=n.length,s+=1,o.set(n,s),s+=n.length,o.set(a,s),o},gl=async e=>{let t=e instanceof Uint8Array?e:new Uint8Array(e),n=ol.length+1+1+1+16;if(t.length<n)throw Error(`INVALID_ZW_PAYLOAD`);let r=0;for(let e=0;e<ol.length;e+=1)if(t[r+e]!==ol[e])throw Error(`INVALID_ZW_HEADER`);r+=ol.length;let i=t[r];if(r+=1,i!==il)throw Error(`INVALID_ZW_VERSION`);let a=t[r];if(r+=1,a<=0||t.length<=r+a)throw Error(`INVALID_ZW_PAYLOAD`);let o=t.slice(r,r+a);r+=a;let s=t.slice(r);if(s.length<16)throw Error(`INVALID_ZW_PAYLOAD`);let c;try{c=fl()?await dl().subtle.decrypt({name:`AES-GCM`,iv:ul(o)},await ml(),ul(s)):ul(Pc(pl(),o).decrypt(s))}catch{throw Error(`INVALID_ZW_TAMPERED`)}try{return JSON.parse(cl.decode(c))}catch{throw Error(`INVALID_ZW_CONTENT`)}},_l=`.htzw`,vl=`ht-info-v3-`,yl=[`tzGMF-`,`ydGMF-`,`gzlF-`,`hourlyPricing-`,`htExtraFee-`],bl=`xm-base-info-v1`,xl=`xm-info-v3`,Sl=[`investScale`,`landScale`,`workload`,`hourly`],Cl=e=>`${e.getFullYear()}${String(e.getMonth()+1).padStart(2,`0`)}${String(e.getDate()).padStart(2,`0`)}-${String(e.getHours()).padStart(2,`0`)}${String(e.getMinutes()).padStart(2,`0`)}`,wl=e=>!!(e&&typeof e==`object`&&!Array.isArray(e)),Tl=e=>JSON.parse(JSON.stringify(e)),El=e=>Array.isArray(e)?e.filter(e=>e&&typeof e==`object`&&typeof e.key==`string`).map(e=>({key:String(e.key),value:e.value})):[],Dl=e=>({projectIndustry:typeof e.project?.industry==`string`&&e.project.industry.trim()?e.project.industry.trim():typeof e.projectIndustry==`string`?e.projectIndustry.trim():``,localforageEntries:El(e.storage?.localforageEntries??e.localforageEntries),keyedEntries:El(e.storage?.keyedEntries??e.keyedEntries),piniaState:e.pinia??e.piniaState}),Ol=e=>{let t=e;return!!(t&&typeof t==`object`&&Array.isArray(t.contracts))},kl=(e,t)=>!!(e===`ht-info-v3-${t}`||e===`zxFW-${t}`||e===`ht-consult-category-factor-v1-${t}`||e===`ht-major-factor-v1-${t}`||yl.some(n=>e.startsWith(`${n}${t}-`))),Al=(e,t)=>!!(e===`ht-base-info-${t}`||e.startsWith(`work-content-${t}-`)||e.startsWith(`work-content-htExtraFee-${t}-`)),jl=(e,t,n)=>{if(e===`ht-info-v3-${t}`)return`${vl}${n}`;if(e===`zxFW-${t}`)return`zxFW-${n}`;if(e===`ht-consult-category-factor-v1-${t}`)return`ht-consult-category-factor-v1-${n}`;if(e===`ht-major-factor-v1-${t}`)return`ht-major-factor-v1-${n}`;if(e===`ht-base-info-${t}`)return`ht-base-info-${n}`;if(e.startsWith(`work-content-${t}-`))return e.replace(`work-content-${t}-`,`work-content-${n}-`);if(e.startsWith(`work-content-htExtraFee-${t}-`))return e.replace(`work-content-htExtraFee-${t}-`,`work-content-htExtraFee-${n}-`);for(let r of yl)if(e.startsWith(`${r}${t}-`))return e.replace(`${r}${t}-`,`${r}${n}-`);return e},Ml=e=>{let t=``;for(;!t||e.has(t);)t=`ct-${Date.now()}-${Math.random().toString(16).slice(2,8)}`;return e.add(t),t},Nl=e=>{try{return JSON.parse(JSON.stringify(e))}catch(e){return console.error(`normalize persist value failed, fallback to null:`,e),null}},Pl=async e=>{let t=await e.keys(),n=await Promise.all(t.map(t=>e.getItem(t)));return t.map((e,t)=>({key:e,value:Nl(n[t])}))},Fl=async(e,t)=>{await e.clear(),await Promise.all((t||[]).map(t=>e.setItem(t.key,Nl(t.value))))},Il=e=>Array.isArray(e)?e.filter(e=>e&&typeof e==`object`&&typeof e.key==`string`).map(e=>({key:String(e.key),value:e.value})):[],Ll=e=>Array.isArray(e)?e.filter(e=>e&&typeof e==`object`&&typeof e.storeName==`string`&&Array.isArray(e.entries)).map(e=>({storeName:String(e.storeName),entries:Il(e.entries)})):[],Rl=e=>e.replace(/[\\/:*?"<>|]/g,`_`).replace(/\s+/g,` `).trim()||be.global.t(`tab.messages.defaultProjectName`),zl=(e,t,n)=>{let r=(e.find(e=>e.key===t)||e.find(e=>e.key===n))?.value||{};return typeof r.projectName==`string`?Rl(r.projectName):be.global.t(`tab.messages.defaultProjectName`)},Bl=e=>{if(!e||typeof e!=`object`)return!1;let t=e;return!(!(Array.isArray(t.localStorage)&&Array.isArray(t.sessionStorage)&&Array.isArray(t.localforageDefault))||typeof t.version!=`number`||!Number.isFinite(t.version)||t.packageType!=null&&t.packageType!==`project-snapshot`||t.projectId!=null&&typeof t.projectId!=`string`)};var Vl=`jgjs-project-events`,Hl=`jgjs-project-event:project-deleted`,Ul=`jgjs-project-event:reset-all`,Wl=`jgjs-project-event-session-id`,Gl=()=>`${Date.now()}-${Math.random().toString(36).slice(2,10)}`,Kl=()=>{try{let e=String(window.sessionStorage.getItem(Wl)||``).trim();if(e)return e;let t=Gl();return window.sessionStorage.setItem(Wl,t),t}catch{return Gl()}},ql=e=>{if(!e)return null;try{let t=JSON.parse(e);return!t||typeof t!=`object`||t.type!==`project-deleted`||typeof t.projectId!=`string`||!t.projectId.trim()||typeof t.sourceSessionId!=`string`||!t.sourceSessionId.trim()||typeof t.at!=`number`||!Number.isFinite(t.at)?null:{type:`project-deleted`,projectId:t.projectId.trim(),sourceSessionId:t.sourceSessionId.trim(),at:t.at}}catch{return null}},Jl=e=>{if(!e)return null;try{let t=JSON.parse(e);return!t||typeof t!=`object`||t.type!==`reset-all`||typeof t.sourceSessionId!=`string`||!t.sourceSessionId.trim()||typeof t.at!=`number`||!Number.isFinite(t.at)?null:{type:`reset-all`,sourceSessionId:t.sourceSessionId.trim(),at:t.at}}catch{return null}};const Yl=e=>{let t=String(e||``).trim();if(!t)return;let n={type:`project-deleted`,projectId:t,sourceSessionId:Kl(),at:Date.now()};try{if(typeof BroadcastChannel<`u`){let e=new BroadcastChannel(Vl);e.postMessage(n),e.close()}}catch{}try{localStorage.setItem(Hl,JSON.stringify(n))}catch{}},Xl=e=>{let t=Kl(),n=null,r=n=>{n&&n.sourceSessionId!==t&&e(n.projectId)},i=e=>{e.key===Hl&&r(ql(e.newValue))};return typeof BroadcastChannel<`u`&&(n=new BroadcastChannel(Vl),n.onmessage=e=>{r(ql(JSON.stringify(e.data)))}),window.addEventListener(`storage`,i),()=>{window.removeEventListener(`storage`,i),n&&=(n.close(),null)}},Zl=()=>{let e={type:`reset-all`,sourceSessionId:Kl(),at:Date.now()};try{if(typeof BroadcastChannel<`u`){let t=new BroadcastChannel(Vl);t.postMessage(e),t.close()}}catch{}try{localStorage.setItem(Ul,JSON.stringify(e))}catch{}},Ql=e=>{let t=Kl(),n=null,r=n=>{n&&n.sourceSessionId!==t&&e()},i=e=>{e.key===Ul&&r(Jl(e.newValue))};return typeof BroadcastChannel<`u`&&(n=new BroadcastChannel(Vl),n.onmessage=e=>{r(Jl(JSON.stringify(e.data)))}),window.addEventListener(`storage`,i),()=>{window.removeEventListener(`storage`,i),n&&=(n.close(),null)}},$l=(e,t)=>{let n=Jt(Je(e),t);if(!n)return null;let r=qe(n.basic,2),i=qe(n.optional,2),a=typeof n.basicFormula==`string`?n.basicFormula:``,o=typeof n.optionalFormula==`string`?n.optionalFormula:``;return{basic:r,optional:i,total:qe($e(r,i),2),basicFormula:a,optionalFormula:o}},eu=e=>{let t=Object.prototype.hasOwnProperty.call(e,`workStageFactor`),n=Object.prototype.hasOwnProperty.call(e,`workRatio`),r=Je(e.benchmarkBudgetBasic),i=Je(e.benchmarkBudgetOptional),a=Je(e.majorFactor),o=Je(e.consultCategoryFactor),s=t?Je(e.workStageFactor):1,c=n?Je(e.workRatio):100;if(r==null||i==null||a==null||o==null||s==null||c==null)return null;let l=Qe(o).mul(a).mul(s).mul(c).div(100),u=qe($e(r,i),2);return{basic:qe(Qe(r).mul(l),2),optional:qe(Qe(i).mul(l),2),total:qe(Qe(u).mul(l),2),basicFormula:``,optionalFormula:``}};var tu=r(a(((e,n)=>{(function(t){typeof e==`object`&&n!==void 0?n.exports=t():typeof define==`function`&&define.amd?define([],t):(typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:this).ExcelJS=t()})((function(){return function e(n,r,i){function a(s,c){if(!r[s]){if(!n[s]){var l=typeof t==`function`&&t;if(!c&&l)return l(s,!0);if(o)return o(s,!0);var u=Error(`Cannot find module '`+s+`'`);throw u.code=`MODULE_NOT_FOUND`,u}var d=r[s]={exports:{}};n[s][0].call(d.exports,(function(e){return a(n[s][1][e]||e)}),d,d.exports,e,n,r,i)}return r[s].exports}for(var o=typeof t==`function`&&t,s=0;s<i.length;s++)a(i[s]);return a}({1:[function(e,t,n){let r=e(`fs`),i=e(`fast-csv`),a=e(`dayjs/plugin/customParseFormat`),o=e(`dayjs/plugin/utc`),s=e(`dayjs`).extend(a).extend(o),c=e(`../utils/stream-buf`),{fs:{exists:l}}=e(`../utils/utils`),u={true:!0,false:!1,"#N/A":{error:`#N/A`},"#REF!":{error:`#REF!`},"#NAME?":{error:`#NAME?`},"#DIV/0!":{error:`#DIV/0!`},"#NULL!":{error:`#NULL!`},"#VALUE!":{error:`#VALUE!`},"#NUM!":{error:`#NUM!`}};t.exports=class{constructor(e){this.workbook=e,this.worksheet=null}async readFile(e,t){if(t||={},!await l(e))throw Error(`File not found: `+e);let n=r.createReadStream(e),i=await this.read(n,t);return n.close(),i}read(e,t){return t||={},new Promise((n,r)=>{let a=this.workbook.addWorksheet(t.sheetName),o=t.dateFormats||[`YYYY-MM-DD[T]HH:mm:ssZ`,`YYYY-MM-DD[T]HH:mm:ss`,`MM-DD-YYYY`,`YYYY-MM-DD`],c=t.map||function(e){if(e===``)return null;let t=Number(e);if(!Number.isNaN(t)&&t!==1/0)return t;let n=o.reduce((t,n)=>{if(t)return t;let r=s(e,n,!0);return r.isValid()?r:null},null);if(n)return new Date(n.valueOf());let r=u[e];return r===void 0?e:r},l=i.parse(t.parserOptions).on(`data`,e=>{a.addRow(e.map(c))}).on(`end`,()=>{l.emit(`worksheet`,a)});l.on(`worksheet`,n).on(`error`,r),e.pipe(l)})}createInputStream(){throw 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(e,t){return new Promise((n,r)=>{t||={};let a=this.workbook.getWorksheet(t.sheetName||t.sheetId),o=i.format(t.formatterOptions);e.on(`finish`,()=>{n()}),o.on(`error`,r),o.pipe(e);let{dateFormat:c,dateUTC:l}=t,u=t.map||(e=>{if(e){if(e.text||e.hyperlink)return e.hyperlink||e.text||``;if(e.formula||e.result)return e.result||``;if(e instanceof Date)return c?l?s.utc(e).format(c):s(e).format(c):l?s.utc(e).format():s(e).format();if(e.error)return e.error;if(typeof e==`object`)return JSON.stringify(e)}return e}),d=t.includeEmptyRows===void 0||t.includeEmptyRows,f=1;a&&a.eachRow((e,t)=>{if(d)for(;f++<t-1;)o.write([]);let{values:n}=e;n.shift(),o.write(n.map(u)),f=t}),o.end()})}writeFile(e,t){let n={encoding:(t||={}).encoding||`utf8`},i=r.createWriteStream(e,n);return this.write(i,t)}async writeBuffer(e){let t=new c;return await this.write(t,e),t.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,t,n){let r=e(`../utils/col-cache`);class i{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=e,t)if(typeof t==`string`){let e=r.decodeAddress(t);this.nativeCol=e.col+n,this.nativeColOff=0,this.nativeRow=e.row+n,this.nativeRowOff=0}else t.nativeCol===void 0?t.col===void 0?(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0):(this.col=t.col+n,this.row=t.row+n):(this.nativeCol=t.nativeCol||0,this.nativeColOff=t.nativeColOff||0,this.nativeRow=t.nativeRow||0,this.nativeRowOff=t.nativeRowOff||0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(e){return e instanceof i||e==null?e:new i(e)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(e){this.nativeCol=Math.floor(e),this.nativeColOff=Math.floor((e-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(e){this.nativeRow=Math.floor(e),this.nativeRowOff=Math.floor((e-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(e){this.nativeCol=e.nativeCol,this.nativeColOff=e.nativeColOff,this.nativeRow=e.nativeRow,this.nativeRowOff=e.nativeRowOff}}t.exports=i},{"../utils/col-cache":19}],3:[function(e,t,n){let r=e(`../utils/col-cache`),i=e(`../utils/under-dash`),a=e(`./enums`),{slideFormula:o}=e(`../utils/shared-formula`),s=e(`./note`);class c{constructor(e,t,n){if(!e||!t)throw Error(`A Cell needs a Row`);this._row=e,this._column=t,r.validateAddress(n),this._address=n,this._value=l.create(c.Types.Null,this),this.style=this._mergeStyle(e.style,t.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(e){this.style.numFmt=e}get font(){return this.style.font}set font(e){this.style.font=e}get alignment(){return this.style.alignment}set alignment(e){this.style.alignment=e}get border(){return this.style.border}set border(e){this.style.border=e}get fill(){return this.style.fill}set fill(e){this.style.fill=e}get protection(){return this.style.protection}set protection(e){this.style.protection=e}_mergeStyle(e,t,n){let r=e&&e.numFmt||t&&t.numFmt;r&&(n.numFmt=r);let i=e&&e.font||t&&t.font;i&&(n.font=i);let a=e&&e.alignment||t&&t.alignment;a&&(n.alignment=a);let o=e&&e.border||t&&t.border;o&&(n.border=o);let s=e&&e.fill||t&&t.fill;s&&(n.fill=s);let c=e&&e.protection||t&&t.protection;return c&&(n.protection=c),n}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===c.Types.Merge}merge(e,t){this._value.release(),this._value=l.create(c.Types.Merge,this,e),t||(this.style=e.style)}unmerge(){this.type===c.Types.Merge&&(this._value.release(),this._value=l.create(c.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(e){return this._value.type===c.Types.Merge&&this._value.isMergedTo(e)}get master(){return this.type===c.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===c.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(e){this.type===c.Types.Merge?this._value.master.value=e:(this._value.release(),this._value=l.create(l.getType(e),this,e))}get note(){return this._comment&&this._comment.note}set note(e){this._comment=new s(e)}get text(){return this._value.toString()}get html(){return i.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(e){this.type===c.Types.String&&(this._value=l.create(c.Types.Hyperlink,this,{text:this._value.value,hyperlink:e}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){let{worksheet:e}=this._row;return{sheetName:e.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(e){this.names=[e]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(e){let{definedNames:t}=this.workbook;t.removeAllNames(this.fullAddress),e.forEach(e=>{t.addEx(this.fullAddress,e)})}addName(e){this.workbook.definedNames.addEx(this.fullAddress,e)}removeName(e){this.workbook.definedNames.removeEx(this.fullAddress,e)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(e){this._dataValidations.add(this.address,e)}get model(){let{model:e}=this._value;return e.style=this.style,this._comment&&(e.comment=this._comment.model),e}set model(e){if(this._value.release(),this._value=l.create(e.type,this),this._value.model=e,e.comment)switch(e.comment.type){case`note`:this._comment=s.fromModel(e.comment)}e.style?this.style=e.style:this.style={}}}c.Types=a.ValueType;let l={getType:e=>e==null?c.Types.Null:e instanceof String||typeof e==`string`?c.Types.String:typeof e==`number`?c.Types.Number:typeof e==`boolean`?c.Types.Boolean:e instanceof Date?c.Types.Date:e.text&&e.hyperlink?c.Types.Hyperlink:e.formula||e.sharedFormula?c.Types.Formula:e.richText?c.Types.RichText:e.sharedString?c.Types.SharedString:e.error?c.Types.Error:c.Types.JSON,types:[{t:c.Types.Null,f:class{constructor(e){this.model={address:e.address,type:c.Types.Null}}get value(){return null}set value(e){}get type(){return c.Types.Null}get effectiveType(){return c.Types.Null}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return``}release(){}toString(){return``}}},{t:c.Types.Number,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.Number,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return c.Types.Number}get effectiveType(){return c.Types.Number}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:c.Types.String,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.String,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return c.Types.String}get effectiveType(){return c.Types.String}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return`"${this.model.value.replace(/"/g,`""`)}"`}release(){}toString(){return this.model.value}}},{t:c.Types.Date,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.Date,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return c.Types.Date}get effectiveType(){return c.Types.Date}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:c.Types.Hyperlink,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.Hyperlink,text:t?t.text:void 0,hyperlink:t?t.hyperlink:void 0},t&&t.tooltip&&(this.model.tooltip=t.tooltip)}get value(){let e={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(e.tooltip=this.model.tooltip),e}set value(e){this.model={text:e.text,hyperlink:e.hyperlink},e.tooltip&&(this.model.tooltip=e.tooltip)}get text(){return this.model.text}set text(e){this.model.text=e}get hyperlink(){return this.model.hyperlink}set hyperlink(e){this.model.hyperlink=e}get type(){return c.Types.Hyperlink}get effectiveType(){return c.Types.Hyperlink}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:c.Types.Formula,f:class{constructor(e,t){this.cell=e,this.model={address:e.address,type:c.Types.Formula,shareType:t?t.shareType:void 0,ref:t?t.ref:void 0,formula:t?t.formula:void 0,sharedFormula:t?t.sharedFormula:void 0,result:t?t.result:void 0}}_copyModel(e){let t={},n=n=>{let r=e[n];r&&(t[n]=r)};return n(`formula`),n(`result`),n(`ref`),n(`shareType`),n(`sharedFormula`),t}get value(){return this._copyModel(this.model)}set value(e){this.model=this._copyModel(e)}validate(e){switch(l.getType(e)){case c.Types.Null:case c.Types.String:case c.Types.Number:case c.Types.Date:break;case c.Types.Hyperlink:case c.Types.Formula:default:throw 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(e){this.model.formula=e}get formulaType(){return this.model.formula?a.FormulaType.Master:this.model.sharedFormula?a.FormulaType.Shared:a.FormulaType.None}get result(){return this.model.result}set result(e){this.model.result=e}get type(){return c.Types.Formula}get effectiveType(){let e=this.model.result;return e==null?a.ValueType.Null:e instanceof String||typeof e==`string`?a.ValueType.String:typeof e==`number`?a.ValueType.Number:e instanceof Date?a.ValueType.Date:e.text&&e.hyperlink?a.ValueType.Hyperlink:e.formula?a.ValueType.Formula:a.ValueType.Null}get address(){return this.model.address}set address(e){this.model.address=e}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){let{worksheet:e}=this.cell,t=e.findCell(this.model.sharedFormula);this._translatedFormula=t&&o(t.formula,t.address,this.model.address)}return this._translatedFormula}toCsvString(){return``+(this.model.result||``)}release(){}toString(){return this.model.result?this.model.result.toString():``}}},{t:c.Types.Merge,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.Merge,master:t?t.address:void 0},this._master=t,t&&t.addMergeRef()}get value(){return this._master.value}set value(e){e instanceof c?(this._master&&this._master.releaseMergeRef(),e.addMergeRef(),this._master=e):this._master.value=e}isMergedTo(e){return e===this._master}get master(){return this._master}get type(){return c.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return``}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:c.Types.JSON,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.String,value:JSON.stringify(t),rawValue:t}}get value(){return this.model.rawValue}set value(e){this.model.rawValue=e,this.model.value=JSON.stringify(e)}get type(){return c.Types.String}get effectiveType(){return c.Types.String}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:c.Types.SharedString,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.SharedString,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return c.Types.SharedString}get effectiveType(){return c.Types.SharedString}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:c.Types.RichText,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.String,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}toString(){return this.model.value.richText.map(e=>e.text).join(``)}get type(){return c.Types.RichText}get effectiveType(){return c.Types.RichText}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return`"${this.text.replace(/"/g,`""`)}"`}release(){}}},{t:c.Types.Boolean,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.Boolean,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return c.Types.Boolean}get effectiveType(){return c.Types.Boolean}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:c.Types.Error,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.Error,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return c.Types.Error}get effectiveType(){return c.Types.Error}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((e,t)=>(e[t.t]=t.f,e),[]),create(e,t,n){let r=this.types[e];if(!r)throw Error(`Could not create Value of type `+e);return new r(t,n)}};t.exports=c},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(e,t,n){let r=e(`../utils/under-dash`),i=e(`./enums`),a=e(`../utils/col-cache`);class o{constructor(e,t,n){this._worksheet=e,this._number=t,!1!==n&&(this.defn=n)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return a.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(e){e?(this.key=e.key,this.width=e.width===void 0?9:e.width,this.outlineLevel=e.outlineLevel,e.style?this.style=e.style:this.style={},this.header=e.header,this._hidden=!!e.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(e){e===void 0?this._header=void 0:(this._header=e,this.headers.forEach((e,t)=>{this._worksheet.getCell(t+1,this.number).value=e}))}get key(){return this._key}set key(e){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=e,e&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}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(e){return this.width===e.width&&this.hidden===e.hidden&&this.outlineLevel===e.outlineLevel&&r.isEqual(this.style,e.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;let e=this.style;return!e||!(e.font||e.numFmt||e.alignment||e.border||e.fill||e.protection)}get headerCount(){return this.headers.length}eachCell(e,t){let n=this.number;t||(t=e,e=null),this._worksheet.eachRow(e,(e,r)=>{t(e.getCell(n),r)})}get values(){let e=[];return this.eachCell((t,n)=>{t&&t.type!==i.ValueType.Null&&(e[n]=t.value)}),e}set values(e){if(!e)return;let t=this.number,n=0;e.hasOwnProperty(`0`)&&(n=1),e.forEach((e,r)=>{this._worksheet.getCell(r+n,t).value=e})}_applyStyle(e,t){return this.style[e]=t,this.eachCell(n=>{n[e]=t}),t}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle(`numFmt`,e)}get font(){return this.style.font}set font(e){this._applyStyle(`font`,e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle(`alignment`,e)}get protection(){return this.style.protection}set protection(e){this._applyStyle(`protection`,e)}get border(){return this.style.border}set border(e){this._applyStyle(`border`,e)}get fill(){return this.style.fill}set fill(e){this._applyStyle(`fill`,e)}static toModel(e){let t=[],n=null;return e&&e.forEach((e,r)=>{e.isDefault?n&&=null:n&&e.equivalentTo(n)?n.max=r+1:(n={min:r+1,max:r+1,width:e.width===void 0?9:e.width,style:e.style,isCustomWidth:e.isCustomWidth,hidden:e.hidden,outlineLevel:e.outlineLevel,collapsed:e.collapsed},t.push(n))}),t.length?t:void 0}static fromModel(e,t){let n=[],r=1,i=0;for(t=(t||=[]).sort((function(e,t){return e.min-t.min}));i<t.length;){let a=t[i++];for(;r<a.min;)n.push(new o(e,r++));for(;r<=a.max;)n.push(new o(e,r++,a))}return n.length?n:null}}t.exports=o},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(e,t,n){t.exports=class{constructor(e){this.model=e||{}}add(e,t){return this.model[e]=t}find(e){return this.model[e]}remove(e){this.model[e]=void 0}}},{}],6:[function(e,t,n){let r=e(`../utils/under-dash`),i=e(`../utils/col-cache`),a=e(`../utils/cell-matrix`),o=e(`./range`),s=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;t.exports=class{constructor(){this.matrixMap={}}getMatrix(e){return this.matrixMap[e]||(this.matrixMap[e]=new a)}add(e,t){let n=i.decodeEx(e);this.addEx(n,t)}addEx(e,t){let n=this.getMatrix(t);if(e.top)for(let t=e.left;t<=e.right;t++)for(let r=e.top;r<=e.bottom;r++){let a={sheetName:e.sheetName,address:i.n2l(t)+r,row:r,col:t};n.addCellEx(a)}else n.addCellEx(e)}remove(e,t){let n=i.decodeEx(e);this.removeEx(n,t)}removeEx(e,t){this.getMatrix(t).removeCellEx(e)}removeAllNames(e){r.each(this.matrixMap,t=>{t.removeCellEx(e)})}forEach(e){r.each(this.matrixMap,(t,n)=>{t.forEach(t=>{e(n,t)})})}getNames(e){return this.getNamesEx(i.decodeEx(e))}getNamesEx(e){return r.map(this.matrixMap,(t,n)=>t.findCellEx(e)&&n).filter(Boolean)}_explore(e,t){t.mark=!1;let{sheetName:n}=t,r=new o(t.row,t.col,t.row,t.col,n),i,a;function s(i,a){let o=e.findCellAt(n,i,t.col);return!(!o||!o.mark)&&(r[a]=i,o.mark=!1,!0)}for(a=t.row-1;s(a,`top`);a--);for(a=t.row+1;s(a,`bottom`);a++);function c(t,i){let o=[];for(a=r.top;a<=r.bottom;a++){let r=e.findCellAt(n,a,t);if(!r||!r.mark)return!1;o.push(r)}r[i]=t;for(let e=0;e<o.length;e++)o[e].mark=!1;return!0}for(i=t.col-1;c(i,`left`);i--);for(i=t.col+1;c(i,`right`);i++);return r}getRanges(e,t){return(t||=this.matrixMap[e])?(t.forEach(e=>{e.mark=!0}),{name:e,ranges:t.map(e=>e.mark&&this._explore(t,e)).filter(Boolean).map(e=>e.$shortRange)}):{name:e,ranges:[]}}normaliseMatrix(e,t){e.forEachInSheet(t,(e,t,n)=>{e&&(e.row===t&&e.col===n||(e.row=t,e.col=n,e.address=i.n2l(n)+t))})}spliceRows(e,t,n,i){r.each(this.matrixMap,r=>{r.spliceRows(e,t,n,i),this.normaliseMatrix(r,e)})}spliceColumns(e,t,n,i){r.each(this.matrixMap,r=>{r.spliceColumns(e,t,n,i),this.normaliseMatrix(r,e)})}get model(){return r.map(this.matrixMap,(e,t)=>this.getRanges(t,e)).filter(e=>e.ranges.length)}set model(e){let t=this.matrixMap={};e.forEach(e=>{let n=t[e.name]=new a;e.ranges.forEach(e=>{s.test(e.split(`!`).pop()||``)&&n.addCell(e)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(e,t,n){t.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,t,n){let r=e(`../utils/col-cache`),i=e(`./anchor`);t.exports=class{constructor(e,t){this.worksheet=e,this.model=t}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 Error(`Invalid Image Type`)}}set model(e){let{type:t,imageId:n,range:a,hyperlinks:o}=e;if(this.type=t,this.imageId=n,t===`image`)if(typeof a==`string`){let e=r.decode(a);this.range={tl:new i(this.worksheet,{col:e.left,row:e.top},-1),br:new i(this.worksheet,{col:e.right,row:e.bottom},0),editAs:`oneCell`}}else this.range={tl:new i(this.worksheet,a.tl,0),br:a.br&&new i(this.worksheet,a.br,0),ext:a.ext,editAs:a.editAs,hyperlinks:o||a.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(e,t,n){let r=e(`../utils/under-dash`);class i{constructor(e){this.note=e}get model(){let e=null;switch(typeof this.note){case`string`:e={type:`note`,note:{texts:[{text:this.note}]}};break;default:e={type:`note`,note:this.note}}return r.deepMerge({},i.DEFAULT_CONFIGS,e)}set model(e){let{note:t}=e,{texts:n}=t;n.length===1&&Object.keys(n[0]).length===1?this.note=n[0].text:this.note=t}static fromModel(e){let t=new i;return t.model=e,t}}i.DEFAULT_CONFIGS={note:{margins:{insetmode:`auto`,inset:[.13,.13,.25,.25]},protection:{locked:`True`,lockText:`True`},editAs:`absolute`}},t.exports=i},{"../utils/under-dash":26}],10:[function(e,t,n){let r=e(`../utils/col-cache`);class i{constructor(){this.decode(arguments)}setTLBR(e,t,n,i,a){if(arguments.length<4){let i=r.decodeAddress(e),o=r.decodeAddress(t);this.model={top:Math.min(i.row,o.row),left:Math.min(i.col,o.col),bottom:Math.max(i.row,o.row),right:Math.max(i.col,o.col),sheetName:n},this.setTLBR(i.row,i.col,o.row,o.col,a)}else this.model={top:Math.min(e,n),left:Math.min(t,i),bottom:Math.max(e,n),right:Math.max(t,i),sheetName:a}}decode(e){switch(e.length){case 5:this.setTLBR(e[0],e[1],e[2],e[3],e[4]);break;case 4:this.setTLBR(e[0],e[1],e[2],e[3]);break;case 3:this.setTLBR(e[0],e[1],e[2]);break;case 2:this.setTLBR(e[0],e[1]);break;case 1:{let t=e[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{let e=r.decodeEx(t);e.top?this.model={top:e.top,left:e.left,bottom:e.bottom,right:e.right,sheetName:e.sheetName}:this.model={top:e.row,left:e.col,bottom:e.row,right:e.col,sheetName:e.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw Error(`Invalid number of arguments to _getDimensions() - `+e.length)}}get top(){return this.model.top||1}set top(e){this.model.top=e}get left(){return this.model.left||1}set left(e){this.model.left=e}get bottom(){return this.model.bottom||1}set bottom(e){this.model.bottom=e}get right(){return this.model.right||1}set right(e){this.model.right=e}get sheetName(){return this.model.sheetName}set sheetName(e){this.model.sheetName=e}get _serialisedSheetName(){let{sheetName:e}=this.model;return e?/^[a-zA-Z0-9]*$/.test(e)?e+`!`:`'${e}'!`:``}expand(e,t,n,r){(!this.model.top||e<this.top)&&(this.top=e),(!this.model.left||t<this.left)&&(this.left=t),(!this.model.bottom||n>this.bottom)&&(this.bottom=n),(!this.model.right||r>this.right)&&(this.right=r)}expandRow(e){if(e){let{dimensions:t,number:n}=e;t&&this.expand(n,t.min,n,t.max)}}expandToAddress(e){let t=r.decodeEx(e);this.expand(t.row,t.col,t.row,t.col)}get tl(){return r.n2l(this.left)+this.top}get $t$l(){return`$${r.n2l(this.left)}$${this.top}`}get br(){return r.n2l(this.right)+this.bottom}get $b$r(){return`$${r.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(e){return(!e.sheetName||!this.sheetName||e.sheetName===this.sheetName)&&!(e.bottom<this.top)&&!(e.top>this.bottom)&&!(e.right<this.left)&&!(e.left>this.right)}contains(e){let t=r.decodeEx(e);return this.containsEx(t)}containsEx(e){return(!e.sheetName||!this.sheetName||e.sheetName===this.sheetName)&&e.row>=this.top&&e.row<=this.bottom&&e.col>=this.left&&e.col<=this.right}forEachAddress(e){for(let t=this.left;t<=this.right;t++)for(let n=this.top;n<=this.bottom;n++)e(r.encodeAddress(n,t),n,t)}}t.exports=i},{"../utils/col-cache":19}],11:[function(e,t,n){let r=e(`../utils/under-dash`),i=e(`./enums`),a=e(`../utils/col-cache`),o=e(`./cell`);t.exports=class{constructor(e,t){this._worksheet=e,this._number=t,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(e){return this._cells[e-1]}getCellEx(e){let t=this._cells[e.col-1];if(!t){let n=this._worksheet.getColumn(e.col);t=new o(this,n,e.address),this._cells[e.col-1]=t}return t}getCell(e){if(typeof e==`string`){let t=this._worksheet.getColumnKey(e);e=t?t.number:a.l2n(e)}return this._cells[e-1]||this.getCellEx({address:a.encodeAddress(this._number,e),row:this._number,col:e})}splice(e,t){let n=e+t;var r=[...arguments].slice(2);let i=r.length-t,a=this._cells.length,o,s,c;if(i<0)for(o=e+r.length;o<=a;o++)c=this._cells[o-1],s=this._cells[o-i-1],s?(c=this.getCell(o),c.value=s.value,c.style=s.style,c._comment=s._comment):c&&(c.value=null,c.style={},c._comment=void 0);else if(i>0)for(o=a;o>=n;o--)s=this._cells[o-1],s?(c=this.getCell(o+i),c.value=s.value,c.style=s.style,c._comment=s._comment):this._cells[o+i-1]=void 0;for(o=0;o<r.length;o++)c=this.getCell(e+o),c.value=r[o],c.style={},c._comment=void 0}eachCell(e,t){if(t||(t=e,e=null),e&&e.includeEmpty){let e=this._cells.length;for(let n=1;n<=e;n++)t(this.getCell(n),n)}else this._cells.forEach((e,n)=>{e&&e.type!==i.ValueType.Null&&t(e,n+1)})}addPageBreak(e,t){let n=this._worksheet,r=Math.max(0,e-1)||0,i=Math.max(0,t-1)||16838,a={id:this._number,max:i,man:1};r&&(a.min=r),n.rowBreaks.push(a)}get values(){let e=[];return this._cells.forEach(t=>{t&&t.type!==i.ValueType.Null&&(e[t.col]=t.value)}),e}set values(e){if(this._cells=[],e)if(e instanceof Array){let t=0;e.hasOwnProperty(`0`)&&(t=1),e.forEach((e,n)=>{e!==void 0&&(this.getCellEx({address:a.encodeAddress(this._number,n+t),row:this._number,col:n+t}).value=e)})}else this._worksheet.eachColumnKey((t,n)=>{e[n]!==void 0&&(this.getCellEx({address:a.encodeAddress(this._number,t.number),row:this._number,col:t.number}).value=e[n])})}get hasValues(){return r.some(this._cells,e=>e&&e.type!==i.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let e=0;return this.eachCell(()=>{e++}),e}get dimensions(){let e=0,t=0;return this._cells.forEach(n=>{n&&n.type!==i.ValueType.Null&&((!e||e>n.col)&&(e=n.col),t<n.col&&(t=n.col))}),e>0?{min:e,max:t}:null}_applyStyle(e,t){return this.style[e]=t,this._cells.forEach(n=>{n&&(n[e]=t)}),t}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle(`numFmt`,e)}get font(){return this.style.font}set font(e){this._applyStyle(`font`,e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle(`alignment`,e)}get protection(){return this.style.protection}set protection(e){this._applyStyle(`protection`,e)}get border(){return this.style.border}set border(e){this._applyStyle(`border`,e)}get fill(){return this.style.fill}set fill(e){this._applyStyle(`fill`,e)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){let e=[],t=0,n=0;return this._cells.forEach(r=>{if(r){let i=r.model;i&&((!t||t>r.col)&&(t=r.col),n<r.col&&(n=r.col),e.push(i))}}),this.height||e.length?{cells:e,number:this.number,min:t,max:n,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(e){if(e.number!==this._number)throw Error(`Invalid row number in model`);let t;this._cells=[],e.cells.forEach(e=>{switch(e.type){case o.Types.Merge:break;default:{let n;if(e.address)n=a.decodeAddress(e.address);else if(t){let{row:e}=t,r=t.col+1;n={row:e,col:r,address:a.encodeAddress(e,r),$col$row:`$${a.n2l(r)}$${e}`}}t=n,this.getCellEx(n).model=e;break}}}),e.height?this.height=e.height:delete this.height,this.hidden=e.hidden,this.outlineLevel=e.outlineLevel||0,this.style=e.style&&JSON.parse(JSON.stringify(e.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(e,t,n){let r=e(`../utils/col-cache`);class i{constructor(e,t,n){this.table=e,this.column=t,this.index=n}_set(e,t){this.table.cacheState(),this.column[e]=t}get name(){return this.column.name}set name(e){this._set(`name`,e)}get filterButton(){return this.column.filterButton}set filterButton(e){this.column.filterButton=e}get style(){return this.column.style}set style(e){this.column.style=e}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(e){this._set(`totalsRowLabel`,e)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(e){this._set(`totalsRowFunction`,e)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(e){this._set(`totalsRowResult`,e)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(e){this._set(`totalsRowFormula`,e)}}t.exports=class{constructor(e,t){this.worksheet=e,t&&(this.table=t,this.validate(),this.store())}getFormula(e){switch(e.totalsRowFunction){case`none`:return null;case`average`:return`SUBTOTAL(101,${this.table.name}[${e.name}])`;case`countNums`:return`SUBTOTAL(102,${this.table.name}[${e.name}])`;case`count`:return`SUBTOTAL(103,${this.table.name}[${e.name}])`;case`max`:return`SUBTOTAL(104,${this.table.name}[${e.name}])`;case`min`:return`SUBTOTAL(105,${this.table.name}[${e.name}])`;case`stdDev`:return`SUBTOTAL(106,${this.table.name}[${e.name}])`;case`var`:return`SUBTOTAL(107,${this.table.name}[${e.name}])`;case`sum`:return`SUBTOTAL(109,${this.table.name}[${e.name}])`;case`custom`:return e.totalsRowFormula;default:throw Error(`Invalid Totals Row Function: `+e.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(){let{table:e}=this,t=(e,t,n)=>{e[t]===void 0&&(e[t]=n)};t(e,`headerRow`,!0),t(e,`totalsRow`,!1),t(e,`style`,{}),t(e.style,`theme`,`TableStyleMedium2`),t(e.style,`showFirstColumn`,!1),t(e.style,`showLastColumn`,!1),t(e.style,`showRowStripes`,!1),t(e.style,`showColumnStripes`,!1);let n=(e,t)=>{if(!e)throw Error(t)};n(e.ref,`Table must have ref`),n(e.columns,`Table must have column definitions`),n(e.rows,`Table must have row definitions`),e.tl=r.decodeAddress(e.ref);let{row:i,col:a}=e.tl;n(i>0,`Table must be on valid row`),n(a>0,`Table must be on valid col`);let{width:o,filterHeight:s,tableHeight:c}=this;e.autoFilterRef=r.encode(i,a,i+s-1,a+o-1),e.tableRef=r.encode(i,a,i+c-1,a+o-1),e.columns.forEach((e,r)=>{n(e.name,`Column ${r} must have a name`),r===0?t(e,`totalsRowLabel`,`Total`):(t(e,`totalsRowFunction`,`none`),e.totalsRowFormula=this.getFormula(e))})}store(){let e=(e,t)=>{t&&Object.keys(t).forEach(n=>{e[n]=t[n]})},{worksheet:t,table:n}=this,{row:r,col:i}=n.tl,a=0;if(n.headerRow){let o=t.getRow(r+ a++);n.columns.forEach((t,n)=>{let{style:r,name:a}=t,s=o.getCell(i+n);s.value=a,e(s,r)})}if(n.rows.forEach(o=>{let s=t.getRow(r+ a++);o.forEach((t,r)=>{let a=s.getCell(i+r);a.value=t,e(a,n.columns[r].style)})}),n.totalsRow){let o=t.getRow(r+ a++);n.columns.forEach((t,n)=>{let r=o.getCell(i+n);n===0?r.value=t.totalsRowLabel:r.value=this.getFormula(t)?{formula:t.totalsRowFormula,result:t.totalsRowResult}:null,e(r,t.style)})}}load(e){let{table:t}=this,{row:n,col:r}=t.tl,i=0;if(t.headerRow){let a=e.getRow(n+ i++);t.columns.forEach((e,t)=>{a.getCell(r+t).value=e.name})}if(t.rows.forEach(t=>{let a=e.getRow(n+ i++);t.forEach((e,t)=>{a.getCell(r+t).value=e})}),t.totalsRow){let a=e.getRow(n+ i++);t.columns.forEach((e,t)=>{let n=a.getCell(r+t);t===0?n.value=e.totalsRowLabel:this.getFormula(e)&&(n.value={formula:e.totalsRowFormula,result:e.totalsRowResult})})}}get model(){return this.table}set model(e){this.table=e}cacheState(){this._cache||={ref:this.ref,width:this.width,tableHeight:this.tableHeight}}commit(){if(!this._cache)return;this.validate();let e=r.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let t=0;t<this._cache.tableHeight;t++){let n=this.worksheet.getRow(e.row+t);for(let t=0;t<this._cache.width;t++)n.getCell(e.col+t).value=null}else{for(let t=this.tableHeight;t<this._cache.tableHeight;t++){let n=this.worksheet.getRow(e.row+t);for(let t=0;t<this._cache.width;t++)n.getCell(e.col+t).value=null}for(let t=0;t<this.tableHeight;t++){let n=this.worksheet.getRow(e.row+t);for(let t=this.width;t<this._cache.width;t++)n.getCell(e.col+t).value=null}}this.store()}addRow(e,t){this.cacheState(),t===void 0?this.table.rows.push(e):this.table.rows.splice(t,0,e)}removeRows(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(e,t)}getColumn(e){let t=this.table.columns[e];return new i(this,t,e)}addColumn(e,t,n){this.cacheState(),n===void 0?(this.table.columns.push(e),this.table.rows.forEach((e,n)=>{e.push(t[n])})):(this.table.columns.splice(n,0,e),this.table.rows.forEach((e,r)=>{e.splice(n,0,t[r])}))}removeColumns(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(e,t),this.table.rows.forEach(n=>{n.splice(e,t)})}_assign(e,t,n){this.cacheState(),e[t]=n}get ref(){return this.table.ref}set ref(e){this._assign(this.table,`ref`,e)}get name(){return this.table.name}set name(e){this.table.name=e}get displayName(){return this.table.displyName||this.table.name}set displayNamename(e){this.table.displayName=e}get headerRow(){return this.table.headerRow}set headerRow(e){this._assign(this.table,`headerRow`,e)}get totalsRow(){return this.table.totalsRow}set totalsRow(e){this._assign(this.table,`totalsRow`,e)}get theme(){return this.table.style.name}set theme(e){this.table.style.name=e}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(e){this.table.style.showFirstColumn=e}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(e){this.table.style.showLastColumn=e}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(e){this.table.style.showRowStripes=e}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(e){this.table.style.showColumnStripes=e}}},{"../utils/col-cache":19}],13:[function(e,t,n){let r=e(`./worksheet`),i=e(`./defined-names`),a=e(`../xlsx/xlsx`),o=e(`../csv/csv`);t.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||=new a(this),this._xlsx}get csv(){return this._csv||=new o(this),this._csv}get nextId(){for(let e=1;e<this._worksheets.length;e++)if(!this._worksheets[e])return e;return this._worksheets.length||1}addWorksheet(e,t){let n=this.nextId;t&&(typeof t==`string`?(console.trace(`tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }`),t={properties:{tabColor:{argb:t}}}):(t.argb||t.theme||t.indexed)&&(console.trace(`tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }`),t={properties:{tabColor:t}}));let i=this._worksheets.reduce((e,t)=>(t&&t.orderNo)>e?t.orderNo:e,0),a=new r(Object.assign({},t,{id:n,name:e,orderNo:i+1,workbook:this}));return this._worksheets[n]=a,a}removeWorksheetEx(e){delete this._worksheets[e.id]}removeWorksheet(e){let t=this.getWorksheet(e);t&&t.destroy()}getWorksheet(e){return e===void 0?this._worksheets.find(Boolean):typeof e==`number`?this._worksheets[e]:typeof e==`string`?this._worksheets.find(t=>t&&t.name===e):void 0}get worksheets(){return this._worksheets.slice(1).sort((e,t)=>e.orderNo-t.orderNo).filter(Boolean)}eachSheet(e){this.worksheets.forEach(t=>{e(t,t.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(e){let t=this.media.length;return this.media.push(Object.assign({},e,{type:`image`})),t}getImage(e){return this.media[e]}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(e=>e.model),sheets:this.worksheets.map(e=>e.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(e){this.creator=e.creator,this.lastModifiedBy=e.lastModifiedBy,this.lastPrinted=e.lastPrinted,this.created=e.created,this.modified=e.modified,this.company=e.company,this.manager=e.manager,this.title=e.title,this.subject=e.subject,this.keywords=e.keywords,this.category=e.category,this.description=e.description,this.language=e.language,this.revision=e.revision,this.contentStatus=e.contentStatus,this.properties=e.properties,this.calcProperties=e.calcProperties,this._worksheets=[],e.worksheets.forEach(t=>{let{id:n,name:i,state:a}=t,o=e.sheets&&e.sheets.findIndex(e=>e.id===n);(this._worksheets[n]=new r({id:n,name:i,orderNo:o,state:a,workbook:this})).model=t}),this._definedNames.model=e.definedNames,this.views=e.views,this._themes=e.themes,this.media=e.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(e,t,n){let r=e(`../utils/under-dash`),i=e(`../utils/col-cache`),a=e(`./range`),o=e(`./row`),s=e(`./column`),c=e(`./enums`),l=e(`./image`),u=e(`./table`),d=e(`./data-validations`),f=e(`../utils/encryptor`),{copyStyle:p}=e(`../utils/copy-style`);t.exports=class{constructor(e){e||={},this._workbook=e.workbook,this.id=e.id,this.orderNo=e.orderNo,this.name=e.name,this.state=e.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},e.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:!(!e.pageSetup||!e.pageSetup.fitToWidth&&!e.pageSetup.fitToHeight||e.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},e.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},e.headerFooter),this.dataValidations=new d,this.views=e.views||[],this.autoFilter=e.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(e){if(e===void 0&&(e=`sheet`+this.id),this._name!==e){if(typeof e!=`string`)throw Error(`The name has to be a string.`);if(e===``)throw Error(`The name can't be empty.`);if(e===`History`)throw Error(`The name "History" is protected. Please use a different name.`);if(/[*?:/\\[\]]/.test(e))throw Error(`Worksheet name ${e} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(e))throw Error(`The first or last character of worksheet name cannot be a single quotation mark: `+e);if(e&&e.length>31&&(console.warn(`Worksheet name ${e} exceeds 31 chars. This will be truncated`),e=e.substring(0,31)),this._workbook._worksheets.find(t=>t&&t.name.toLowerCase()===e.toLowerCase()))throw Error(`Worksheet name already exists: `+e);this._name=e}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){let e=new a;return this._rows.forEach(t=>{if(t){let n=t.dimensions;n&&e.expand(t.number,n.min,t.number,n.max)}}),e}get columns(){return this._columns}set columns(e){this._headerRowCount=e.reduce((e,t)=>{let n=(t.header?1:t.headers&&t.headers.length)||0;return Math.max(e,n)},0);let t=1,n=this._columns=[];e.forEach(e=>{let r=new s(this,t++,!1);n.push(r),r.defn=e})}getColumnKey(e){return this._keys[e]}setColumnKey(e,t){this._keys[e]=t}deleteColumnKey(e){delete this._keys[e]}eachColumnKey(e){r.each(this._keys,e)}getColumn(e){if(typeof e==`string`){let t=this._keys[e];if(t)return t;e=i.l2n(e)}if(this._columns||=[],e>this._columns.length){let t=this._columns.length+1;for(;t<=e;)this._columns.push(new s(this,t++))}return this._columns[e-1]}spliceColumns(e,t){let n=this._rows.length;var r=[...arguments].slice(2);if(r.length>0)for(let i=0;i<n;i++){let n=[e,t];r.forEach(e=>{n.push(e[i]||null)});let a=this.getRow(i+1);a.splice.apply(a,n)}else this._rows.forEach(n=>{n&&n.splice(e,t)});let i=r.length-t,a=e+t,o=this._columns.length;if(i<0)for(let t=e+r.length;t<=o;t++)this.getColumn(t).defn=this.getColumn(t-i).defn;else if(i>0)for(let e=o;e>=a;e--)this.getColumn(e+i).defn=this.getColumn(e).defn;for(let t=e;t<e+r.length;t++)this.getColumn(t).defn=null;this.workbook.definedNames.spliceColumns(this.name,e,t,r.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let e=0;return this.eachRow(t=>{e=Math.max(e,t.cellCount)}),e}get actualColumnCount(){let e=[],t=0;return this.eachRow(n=>{n.eachCell(n=>{let{col:r}=n;e[r]||(e[r]=!0,t++)})}),t}_commitRow(){}get _lastRowNumber(){let e=this._rows,t=e.length;for(;t>0&&e[t-1]===void 0;)t--;return t}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(e){return this._rows[e-1]}findRows(e,t){return this._rows.slice(e-1,e-1+t)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let e=0;return this.eachRow(()=>{e++}),e}getRow(e){let t=this._rows[e-1];return t||=this._rows[e-1]=new o(this,e),t}getRows(e,t){if(t<1)return;let n=[];for(let r=e;r<e+t;r++)n.push(this.getRow(r));return n}addRow(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`n`,n=this._nextRow,r=this.getRow(n);return r.values=e,this._setStyleOption(n,t[0]===`i`?t:`n`),r}addRows(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`n`,n=[];return e.forEach(e=>{n.push(this.addRow(e,t))}),n}insertRow(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`n`;return this.spliceRows(e,0,t),this._setStyleOption(e,n),this.getRow(e)}insertRows(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`n`;if(this.spliceRows(e,0,...t),n!==`n`)for(let r=0;r<t.length;r++)n[0]===`o`&&this.findRow(t.length+e+r)!==void 0?this._copyStyle(t.length+e+r,e+r,n[1]===`+`):n[0]===`i`&&this.findRow(e-1)!==void 0&&this._copyStyle(e-1,e+r,n[1]===`+`);return this.getRows(e,t.length)}_setStyleOption(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`n`;t[0]===`o`&&this.findRow(e+1)!==void 0?this._copyStyle(e+1,e,t[1]===`+`):t[0]===`i`&&this.findRow(e-1)!==void 0&&this._copyStyle(e-1,e,t[1]===`+`)}_copyStyle(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=this.getRow(e),i=this.getRow(t);i.style=p(r.style),r.eachCell({includeEmpty:n},(e,t)=>{i.getCell(t).style=p(e.style)}),i.height=r.height}duplicateRow(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=this._rows[e-1],i=Array(t).fill(r.values);this.spliceRows(e+1,n?0:t,...i);for(let n=0;n<t;n++){let t=this._rows[e+n];t.style=r.style,t.height=r.height,r.eachCell({includeEmpty:!0},(e,n)=>{t.getCell(n).style=e.style})}}spliceRows(e,t){let n=e+t;var r=[...arguments].slice(2);let i=r.length,a=i-t,o=this._rows.length,s,c;if(a<0)for(e===o&&(this._rows[o-1]=void 0),s=n;s<=o;s++)if(c=this._rows[s-1],c){let e=this.getRow(s+a);e.values=c.values,e.style=c.style,e.height=c.height,c.eachCell({includeEmpty:!0},(t,n)=>{e.getCell(n).style=t.style}),this._rows[s-1]=void 0}else this._rows[s+a-1]=void 0;else if(a>0)for(s=o;s>=n;s--)if(c=this._rows[s-1],c){let e=this.getRow(s+a);e.values=c.values,e.style=c.style,e.height=c.height,c.eachCell({includeEmpty:!0},(t,n)=>{if(e.getCell(n).style=t.style,t._value.constructor.name===`MergeValue`){let e=this.getRow(t._row._number+i).getCell(n),r=t._value._master,a=this.getRow(r._row._number+i).getCell(r._column._number);e.merge(a)}})}else this._rows[s+a-1]=void 0;for(s=0;s<i;s++){let t=this.getRow(e+s);t.style={},t.values=r[s]}this.workbook.definedNames.spliceRows(this.name,e,t,i)}eachRow(e,t){if(t||(t=e,e=void 0),e&&e.includeEmpty){let e=this._rows.length;for(let n=1;n<=e;n++)t(this.getRow(n),n)}else this._rows.forEach(e=>{e&&e.hasValues&&t(e,e.number)})}getSheetValues(){let e=[];return this._rows.forEach(t=>{t&&(e[t.number]=t.values)}),e}findCell(e,t){let n=i.getAddress(e,t),r=this._rows[n.row-1];return r?r.findCell(n.col):void 0}getCell(e,t){let n=i.getAddress(e,t);return this.getRow(n.row).getCellEx(n)}mergeCells(){let e=new a([...arguments]);this._mergeCellsInternal(e)}mergeCellsWithoutStyle(){let e=new a([...arguments]);this._mergeCellsInternal(e,!0)}_mergeCellsInternal(e,t){r.each(this._merges,t=>{if(t.intersects(e))throw Error(`Cannot merge already merged cells`)});let n=this.getCell(e.top,e.left);for(let r=e.top;r<=e.bottom;r++)for(let i=e.left;i<=e.right;i++)(r>e.top||i>e.left)&&this.getCell(r,i).merge(n,t);this._merges[n.address]=e}_unMergeMaster(e){let t=this._merges[e.address];if(t){for(let e=t.top;e<=t.bottom;e++)for(let n=t.left;n<=t.right;n++)this.getCell(e,n).unmerge();delete this._merges[e.address]}}get hasMerges(){return r.some(this._merges,Boolean)}unMergeCells(){let e=new a([...arguments]);for(let t=e.top;t<=e.bottom;t++)for(let n=e.left;n<=e.right;n++){let e=this.findCell(t,n);e&&(e.type===c.ValueType.Merge?this._unMergeMaster(e.master):this._merges[e.address]&&this._unMergeMaster(e))}}fillFormula(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`shared`,{top:a,left:o,bottom:s,right:c}=i.decode(e),l=c-o+1,u=i.encodeAddress(a,o),d=r===`shared`,f;f=typeof n==`function`?n:Array.isArray(n)?Array.isArray(n[0])?(e,t)=>n[e-a][t-o]:(e,t)=>n[(e-a)*l+(t-o)]:()=>{};let p=!0;for(let n=a;n<=s;n++)for(let i=o;i<=c;i++)p?(this.getCell(n,i).value={shareType:r,formula:t,ref:e,result:f(n,i)},p=!1):this.getCell(n,i).value=d?{sharedFormula:u,result:f(n,i)}:f(n,i)}addImage(e,t){let n={type:`image`,imageId:e,range:t};this._media.push(new l(this,n))}getImages(){return this._media.filter(e=>e.type===`image`)}addBackgroundImage(e){let t={type:`background`,imageId:e};this._media.push(new l(this,t))}getBackgroundImageId(){let e=this._media.find(e=>e.type===`background`);return e&&e.imageId}protect(e,t){return new Promise(n=>{this.sheetProtection={sheet:!0},t&&`spinCount`in t&&(t.spinCount=Number.isFinite(t.spinCount)?Math.round(Math.max(0,t.spinCount)):1e5),e&&(this.sheetProtection.algorithmName=`SHA-512`,this.sheetProtection.saltValue=f.randomBytes(16).toString(`base64`),this.sheetProtection.spinCount=t&&`spinCount`in t?t.spinCount:1e5,this.sheetProtection.hashValue=f.convertPasswordToHash(e,`SHA512`,this.sheetProtection.saltValue,this.sheetProtection.spinCount)),t&&(this.sheetProtection=Object.assign(this.sheetProtection,t),!e&&`spinCount`in t&&delete this.sheetProtection.spinCount),n()})}unprotect(){this.sheetProtection=null}addTable(e){let t=new u(this,e);return this.tables[e.name]=t,t}getTable(e){return this.tables[e]}removeTable(e){delete this.tables[e]}getTables(){return Object.values(this.tables)}addConditionalFormatting(e){this.conditionalFormattings.push(e)}removeConditionalFormatting(e){typeof e==`number`?this.conditionalFormattings.splice(e,1):this.conditionalFormattings=e instanceof Function?this.conditionalFormattings.filter(e):[]}get tabColor(){return console.trace(`worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor`),this.properties.tabColor}set tabColor(e){console.trace(`worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor`),this.properties.tabColor=e}get model(){let e={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(e=>e.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(e=>e.model),conditionalFormattings:this.conditionalFormattings};e.cols=s.toModel(this.columns);let t=e.rows=[],n=e.dimensions=new a;return this._rows.forEach(e=>{let r=e&&e.model;r&&(n.expand(r.number,r.min,r.number,r.max),t.push(r))}),e.merges=[],r.each(this._merges,t=>{e.merges.push(t.range)}),e}_parseRows(e){this._rows=[],e.rows.forEach(e=>{let t=new o(this,e.number);this._rows[t.number-1]=t,t.model=e})}_parseMergeCells(e){r.each(e.mergeCells,e=>{this.mergeCellsWithoutStyle(e)})}set model(e){this.name=e.name,this._columns=s.fromModel(this,e.cols),this._parseRows(e),this._parseMergeCells(e),this.dataValidations=new d(e.dataValidations),this.properties=e.properties,this.pageSetup=e.pageSetup,this.headerFooter=e.headerFooter,this.views=e.views,this.autoFilter=e.autoFilter,this._media=e.media.map(e=>new l(this,e)),this.sheetProtection=e.sheetProtection,this.tables=e.tables.reduce((e,t)=>{let n=new u;return n.model=t,e[t.name]=n,e},{}),this.conditionalFormattings=e.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,t,n){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`);let r={Workbook:e(`./doc/workbook`)},i=e(`./doc/enums`);Object.keys(i).forEach(e=>{r[e]=i[e]}),t.exports=r},{"./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,t,n){let r=typeof TextDecoder>`u`?null:new TextDecoder(`utf-8`);n.bufferToString=function(e){return typeof e==`string`?e:r?r.decode(e):e.toString()}},{}],17:[function(e,t,n){let r=typeof TextEncoder>`u`?null:new TextEncoder(`utf-8`),{Buffer:i}=e(`buffer`);n.stringToBuffer=function(e){return typeof e==`string`?r?i.from(r.encode(e).buffer):i.from(e):e}},{buffer:220}],18:[function(e,t,n){let r=e(`./under-dash`),i=e(`./col-cache`);t.exports=class{constructor(e){this.template=e,this.sheets={}}addCell(e){this.addCellEx(i.decodeEx(e))}getCell(e){return this.findCellEx(i.decodeEx(e),!0)}findCell(e){return this.findCellEx(i.decodeEx(e),!1)}findCellAt(e,t,n){let r=this.sheets[e],i=r&&r[t];return i&&i[n]}addCellEx(e){if(e.top)for(let t=e.top;t<=e.bottom;t++)for(let n=e.left;n<=e.right;n++)this.getCellAt(e.sheetName,t,n);else this.findCellEx(e,!0)}getCellEx(e){return this.findCellEx(e,!0)}findCellEx(e,t){let n=this.findSheet(e,t),r=this.findSheetRow(n,e,t);return this.findRowCell(r,e,t)}getCellAt(e,t,n){let r=this.sheets[e]||(this.sheets[e]=[]),a=r[t]||(r[t]=[]);return a[n]||(a[n]={sheetName:e,address:i.n2l(n)+t,row:t,col:n})}removeCellEx(e){let t=this.findSheet(e);if(!t)return;let n=this.findSheetRow(t,e);n&&delete n[e.col]}forEachInSheet(e,t){let n=this.sheets[e];n&&n.forEach((e,n)=>{e&&e.forEach((e,r)=>{e&&t(e,n,r)})})}forEach(e){r.each(this.sheets,(t,n)=>{this.forEachInSheet(n,e)})}map(e){let t=[];return this.forEach(n=>{t.push(e(n))}),t}findSheet(e,t){let n=e.sheetName;return this.sheets[n]?this.sheets[n]:t?this.sheets[n]=[]:void 0}findSheetRow(e,t,n){let{row:r}=t;return e&&e[r]?e[r]:n?e[r]=[]:void 0}findRowCell(e,t,n){let{col:r}=t;return e&&e[r]?e[r]:n?e[r]=this.template?Object.assign(t,JSON.parse(JSON.stringify(this.template))):t:void 0}spliceRows(e,t,n,r){let i=this.sheets[e];if(i){let e=[];for(let t=0;t<r;t++)e.push([]);i.splice(t,n,...e)}}spliceColumns(e,t,n,i){let a=this.sheets[e];if(a){let e=[];for(let t=0;t<i;t++)e.push(null);r.each(a,r=>{r.splice(t,n,...e)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(e,t,n){let r=/^[A-Z]+\d+$/,i={_dictionary:`ABCDEFGHIJKLMNOPQRSTUVWXYZ`.split(``),_l2nFill:0,_l2n:{},_n2l:[],_level:e=>e<=26?1:e<=676?2:3,_fill(e){let t,n,r,i,a,o=1;if(e>=4)throw Error(`Out of bounds. Excel supports columns from 1 to 16384`);if(this._l2nFill<1&&e>=1){for(;o<=26;)t=this._dictionary[o-1],this._n2l[o]=t,this._l2n[t]=o,o++;this._l2nFill=1}if(this._l2nFill<2&&e>=2){for(o=27;o<=702;)n=o-27,r=n%26,i=Math.floor(n/26),t=this._dictionary[i]+this._dictionary[r],this._n2l[o]=t,this._l2n[t]=o,o++;this._l2nFill=2}if(this._l2nFill<3&&e>=3){for(o=703;o<=16384;)n=o-703,r=n%26,i=Math.floor(n/26)%26,a=Math.floor(n/676),t=this._dictionary[a]+this._dictionary[i]+this._dictionary[r],this._n2l[o]=t,this._l2n[t]=o,o++;this._l2nFill=3}},l2n(e){if(this._l2n[e]||this._fill(e.length),!this._l2n[e])throw Error(`Out of bounds. Invalid column letter: `+e);return this._l2n[e]},n2l(e){if(e<1||e>16384)throw Error(e+` is out of bounds. Excel supports columns from 1 to 16384`);return this._n2l[e]||this._fill(this._level(e)),this._n2l[e]},_hash:{},validateAddress(e){if(!r.test(e))throw Error(`Invalid Address: `+e);return!0},decodeAddress(e){let t=e.length<5&&this._hash[e];if(t)return t;let n=!1,r=``,i=0,a=!1,o=``,s=0;for(let t,c=0;c<e.length;c++)if(t=e.charCodeAt(c),!a&&t>=65&&t<=90)n=!0,r+=e[c],i=26*i+t-64;else if(t>=48&&t<=57)a=!0,o+=e[c],s=10*s+t-48;else if(a&&n&&t!==36)break;if(n){if(i>16384)throw Error(`Out of bounds. Invalid column letter: `+r)}else i=void 0;a||(s=void 0);let c={address:e=r+o,col:i,row:s,$col$row:`$${r}$${o}`};return i<=100&&s<=100&&(this._hash[e]=c,this._hash[c.$col$row]=c),c},getAddress(e,t){if(t){let n=this.n2l(t)+e;return this.decodeAddress(n)}return this.decodeAddress(e)},decode(e){let t=e.split(`:`);if(t.length===2){let e=this.decodeAddress(t[0]),n=this.decodeAddress(t[1]),r={top:Math.min(e.row,n.row),left:Math.min(e.col,n.col),bottom:Math.max(e.row,n.row),right:Math.max(e.col,n.col)};return r.tl=this.n2l(r.left)+r.top,r.br=this.n2l(r.right)+r.bottom,r.dimensions=`${r.tl}:${r.br}`,r}return this.decodeAddress(e)},decodeEx(e){let t=e.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),n=t[1]||t[2],r=t[3],i=r.split(`:`);if(i.length>1){let e=this.decodeAddress(i[0]),t=this.decodeAddress(i[1]),r=Math.min(e.row,t.row),a=Math.min(e.col,t.col),o=Math.max(e.row,t.row),s=Math.max(e.col,t.col);return e=this.n2l(a)+r,t=this.n2l(s)+o,{top:r,left:a,bottom:o,right:s,sheetName:n,tl:{address:e,col:a,row:r,$col$row:`$${this.n2l(a)}$${r}`,sheetName:n},br:{address:t,col:s,row:o,$col$row:`$${this.n2l(s)}$${o}`,sheetName:n},dimensions:`${e}:${t}`}}if(r.startsWith(`#`))return n?{sheetName:n,error:r}:{error:r};let a=this.decodeAddress(r);return n?{sheetName:n,...a}:a},encodeAddress:(e,t)=>i.n2l(t)+e,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 Error(`Can only encode with 2 or 4 arguments`)}},inRange(e,t){let[n,r,,i,a]=e,[o,s]=t;return o>=n&&o<=i&&s>=r&&s<=a}};t.exports=i},{}],20:[function(e,t,n){let r=(e,t)=>({...e,...t.reduce((t,n)=>(e[n]&&(t[n]={...e[n]}),t),{})}),i=function(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];e[n]&&(t[n]=r(e[n],i))};n.copyStyle=e=>{if(!e)return e;if(t=e,Object.keys(t).length===0)return{};var t;let n={...e};return i(e,n,`font`,[`color`]),i(e,n,`alignment`),i(e,n,`protection`),e.border&&(i(e,n,`border`),i(e.border,n.border,`top`,[`color`]),i(e.border,n.border,`left`,[`color`]),i(e.border,n.border,`bottom`,[`color`]),i(e.border,n.border,`right`,[`color`]),i(e.border,n.border,`diagonal`,[`color`])),e.fill&&(i(e,n,`fill`,[`fgColor`,`bgColor`,`center`]),e.fill.stops&&(n.fill.stops=e.fill.stops.map(e=>r(e,[`color`])))),n}},{}],21:[function(e,t,n){(function(n){(function(){let r=e(`crypto`);t.exports={hash(e){let t=r.createHash(e);var i=[...arguments].slice(1);return t.update(n.concat(i)),t.digest()},convertPasswordToHash(e,t,i,a){if(t=t.toLowerCase(),r.getHashes().indexOf(t)<0)throw Error(`Hash algorithm '${t}' not supported!`);let o=n.from(e,`utf16le`),s=this.hash(t,n.from(i,`base64`),o);for(let e=0;e<a;e++){let r=n.alloc(4);r.writeUInt32LE(e,0),s=this.hash(t,s,r)}return s.toString(`base64`)},randomBytes:e=>r.randomBytes(e)}}).call(this)}).call(this,e(`buffer`).Buffer)},{buffer:220,crypto:390}],22:[function(e,t,n){let{SaxesParser:r}=e(`saxes`),{PassThrough:i}=e(`readable-stream`),{bufferToString:a}=e(`./browser-buffer-decode`);t.exports=async function*(e){e.pipe&&!e[Symbol.asyncIterator]&&(e=e.pipe(new i));let t=new r,n;t.on(`error`,e=>{n=e});let o=[];t.on(`opentag`,e=>o.push({eventType:`opentag`,value:e})),t.on(`text`,e=>o.push({eventType:`text`,value:e})),t.on(`closetag`,e=>o.push({eventType:`closetag`,value:e}));for await(let r of e){if(t.write(a(r)),n)throw n;yield o,o=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(e,t,n){let r=e(`./col-cache`),i=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,a=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;t.exports={slideFormula:function(e,t,n){let o=r.decode(t),s=r.decode(n);return e.replace(i,(e,t,n,i,c)=>{if(c)return e;let l=a.exec(i);if(l){let n=l[1],i=l[2].toUpperCase(),a=l[3],c=l[4];if(i.length>3||i.length===3&&i>`XFD`)return e;let u=r.l2n(i),d=parseInt(c,10);return n||(u+=s.col-o.col),a||(d+=s.row-o.row),(t||``)+(n||``)+r.n2l(u)+(a||``)+d}return e})}}},{"./col-cache":19}],24:[function(e,t,n){(function(n,r){(function(){let i=e(`readable-stream`),a=e(`./utils`),o=e(`./string-buf`);class s{constructor(e,t){this._data=e,this._encoding=t}get length(){return this.toBuffer().length}copy(e,t,n,r){return this.toBuffer().copy(e,t,n,r)}toBuffer(){return this._buffer||=r.from(this._data,this._encoding),this._buffer}}class c{constructor(e){this._data=e}get length(){return this._data.length}copy(e,t,n,r){return this._data._buf.copy(e,t,n,r)}toBuffer(){return this._data.toBuffer()}}class l{constructor(e){this._data=e}get length(){return this._data.length}copy(e,t,n,r){this._data.copy(e,t,n,r)}toBuffer(){return this._data}}class u{constructor(e){this.size=e,this.buffer=r.alloc(e),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;let e=r.alloc(this.iWrite-this.iRead);return this.buffer.copy(e,0,this.iRead,this.iWrite),e}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(e){let t;return e===0?null:e===void 0||e>=this.length?(t=this.toBuffer(),this.iRead=this.iWrite,t):(t=r.alloc(e),this.buffer.copy(t,0,this.iRead,e),this.iRead+=e,t)}write(e,t,n){let r=Math.min(n,this.size-this.iWrite);return e.copy(this.buffer,this.iWrite,t,t+r),this.iWrite+=r,r}}let d=function(e){e||={},this.bufSize=e.bufSize||1048576,this.buffers=[],this.batch=e.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};a.inherits(d,i.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return r.concat(this.buffers.map(e=>e.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){let e=this.buffers[this.buffers.length-1];if(!e.full)return e}let e=new u(this.bufSize);return this.buffers.push(e),e},async _pipe(e){await Promise.all(this.pipes.map((function(t){return new Promise(n=>{t.write(e.toBuffer(),()=>{n()})})})))},_writeToBuffers(e){let t=0,n=e.length;for(;t<n;)t+=this._getWritableBuffer().write(e,t,n-t)},async write(e,t,i){let u;if(t instanceof Function&&(i=t,t=`utf8`),i||=a.nop,e instanceof o)u=new c(e);else if(e instanceof r)u=new l(e);else{if(!(typeof e==`string`||e instanceof String||e instanceof ArrayBuffer))throw Error(`Chunk must be one of type String, Buffer or StringBuf.`);u=new s(e,t)}if(this.pipes.length)if(this.batch)for(this._writeToBuffers(u);!this.corked&&this.buffers.length>1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(u),n.nextTick(i)):(await this._pipe(u),i());else this.paused||this.emit(`data`,u.toBuffer()),this._writeToBuffers(u),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(e,t,n){let r=e=>{e?n(e):(this._flush(),this.pipes.forEach(e=>{e.end()}),this.emit(`finish`))};e?this.write(e,t,r):r()},read(e){let t;if(e){for(t=[];e&&this.buffers.length&&!this.buffers[0].eod;){let n=this.buffers[0],r=n.read(e);e-=r.length,t.push(r),n.eod&&n.full&&this.buffers.shift()}return r.concat(t)}return t=this.buffers.map(e=>e.toBuffer()).filter(Boolean),this.buffers=[],r.concat(t)},setEncoding(e){this.encoding=e},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(e){this.pipes.push(e),!this.paused&&this.buffers.length&&this.end()},unpipe(e){this.pipes=this.pipes.filter(t=>t!==e)},unshift(){throw Error(`Not Implemented`)},wrap(){throw Error(`Not Implemented`)}}),t.exports=d}).call(this)}).call(this,e(`_process`),e(`buffer`).Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(e,t,n){(function(e){(function(){t.exports=class{constructor(t){this._buf=e.alloc(t&&t.size||16384),this._encoding=t&&t.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=e.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(e){e||=0,this._buffer=void 0,this._inPos=e}_grow(t){let n=2*this._buf.length;for(;n<t;)n*=2;let r=e.alloc(n);this._buf.copy(r,0),this._buf=r}addText(e){this._buffer=void 0;let t=this._inPos+this._buf.write(e,this._inPos,this._encoding);for(;t>=this._buf.length-4;)this._grow(this._inPos+e.length),t=this._inPos+this._buf.write(e,this._inPos,this._encoding);this._inPos=t}addStringBuf(e){e.length&&(this._buffer=void 0,this.length+e.length>this.capacity&&this._grow(this.length+e.length),e._buf.copy(this._buf,this._inPos,0,e.length),this._inPos+=e.length)}}}).call(this)}).call(this,e(`buffer`).Buffer)},{buffer:220}],26:[function(e,t,n){let{toString:r}=Object.prototype,i=/["&<>]/,a={each:function(e,t){e&&(Array.isArray(e)?e.forEach(t):Object.keys(e).forEach(n=>{t(e[n],n)}))},some:function(e,t){return!!e&&(Array.isArray(e)?e.some(t):Object.keys(e).some(n=>t(e[n],n)))},every:function(e,t){return!e||(Array.isArray(e)?e.every(t):Object.keys(e).every(n=>t(e[n],n)))},map:function(e,t){return e?Array.isArray(e)?e.map(t):Object.keys(e).map(n=>t(e[n],n)):[]},keyBy:(e,t)=>e.reduce((e,n)=>(e[n[t]]=n,e),{}),isEqual:function(e,t){let n=typeof e,r=typeof t,i=Array.isArray(e),o=Array.isArray(t),s;if(n!==r)return!1;switch(typeof e){case`object`:if(i||o)return!(!i||!o)&&e.length===t.length&&e.every((e,n)=>{let r=t[n];return a.isEqual(e,r)});if(e===null||t===null)return e===t;if(s=Object.keys(e),Object.keys(t).length!==s.length)return!1;for(let e of s)if(!t.hasOwnProperty(e))return!1;return a.every(e,(e,n)=>{let r=t[n];return a.isEqual(e,r)});default:return e===t}},escapeHtml(e){let t=i.exec(e);if(!t)return e;let n=``,r=``,a=0,o=t.index;for(;o<e.length;o++){switch(e.charAt(o)){case`"`:r=`&quot;`;break;case`&`:r=`&amp;`;break;case`'`:r=`&apos;`;break;case`<`:r=`&lt;`;break;case`>`:r=`&gt;`;break;default:continue}a!==o&&(n+=e.substring(a,o)),a=o+1,n+=r}return a===o?n:n+e.substring(a,o)},strcmp:(e,t)=>e<t?-1:e>t?1:0,isUndefined:e=>r.call(e)===`[object Undefined]`,isObject:e=>r.call(e)===`[object Object]`,deepMerge(){let e=arguments[0]||{},{length:t}=arguments,n,r,i;function o(t,o){n=e[o],i=Array.isArray(t),a.isObject(t)||i?(i?(i=!1,r=n&&Array.isArray(n)?n:[]):r=n&&a.isObject(n)?n:{},e[o]=a.deepMerge(r,t)):a.isUndefined(t)||(e[o]=t)}for(let e=0;e<t;e++)a.each(arguments[e],o);return e}};t.exports=a},{}],27:[function(e,t,n){(function(n,r){(function(){let i=e(`fs`),a=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,o={nop(){},promiseImmediate:e=>new Promise(t=>{n.setImmediate?r(()=>{t(e)}):setTimeout(()=>{t(e)},1)}),inherits:function(e,t,n,r){e.super_=t,r||(r=n,n=null),n&&Object.keys(n).forEach(t=>{Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))});let i={constructor:{value:e,enumerable:!1,writable:!1,configurable:!0}};r&&Object.keys(r).forEach(e=>{i[e]=Object.getOwnPropertyDescriptor(r,e)}),e.prototype=Object.create(t.prototype,i)},dateToExcel:(e,t)=>25569+e.getTime()/864e5-(t?1462:0),excelToDate(e,t){let n=Math.round(24*(e-25569+(t?1462:0))*3600*1e3);return new Date(n)},parsePath(e){let t=e.lastIndexOf(`/`);return{path:e.substring(0,t),name:e.substring(t+1)}},getRelsPath(e){let t=o.parsePath(e);return`${t.path}/_rels/${t.name}.rels`},xmlEncode(e){let t=a.exec(e);if(!t)return e;let n=``,r=``,i=0,o=t.index;for(;o<e.length;o++){let t=e.charCodeAt(o);switch(t){case 34:r=`&quot;`;break;case 38:r=`&amp;`;break;case 39:r=`&apos;`;break;case 60:r=`&lt;`;break;case 62:r=`&gt;`;break;case 127:r=``;break;default:if(t<=31&&(t<=8||t>=11&&t!==13)){r=``;break}continue}i!==o&&(n+=e.substring(i,o)),i=o+1,r&&(n+=r)}return i===o?n:n+e.substring(i,o)},xmlDecode:e=>e.replace(/&([a-z]*);/g,e=>{switch(e){case`&lt;`:return`<`;case`&gt;`:return`>`;case`&amp;`:return`&`;case`&apos;`:return`'`;case`&quot;`:return`"`;default:return e}}),validInt(e){let t=parseInt(e,10);return Number.isNaN(t)?0:t},isDateFmt(e){return e?(e=(e=e.replace(/\[[^\]]*]/g,``)).replace(/"[^"]*"/g,``)).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:e=>new Promise(t=>{i.access(e,i.constants.F_OK,e=>{t(!e)})})},toIsoDateString:e=>e.toIsoString().subsstr(0,10),parseBoolean:e=>!0===e||e===`true`||e===1||e===`1`};t.exports=o}).call(this)}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{},e(`timers`).setImmediate)},{fs:216,timers:523}],28:[function(e,t,n){let r=e(`./under-dash`),i=e(`./utils`);function a(e,t,n){e.push(` ${t}="${i.xmlEncode(n.toString())}"`)}function o(e,t){if(t){let n=[];r.each(t,(e,t)=>{e!==void 0&&a(n,t,e)}),e.push(n.join(``))}}class s{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(e){let t=this._xml;t.push(`<?xml`),o(t,e),t.push(`?>
`)}openNode(e,t){let n=this.tos,r=this._xml;n&&this.open&&r.push(`>`),this._stack.push(e),r.push(`<`),r.push(e),o(r,t),this.leaf=!0,this.open=!0}addAttribute(e,t){if(!this.open)throw Error(`Cannot write attributes to node if it is not open`);t!==void 0&&a(this._xml,e,t)}addAttributes(e){if(!this.open)throw Error(`Cannot write attributes to node if it is not open`);o(this._xml,e)}writeText(e){let t=this._xml;this.open&&=(t.push(`>`),!1),this.leaf=!1,t.push(i.xmlEncode(e.toString()))}writeXml(e){this.open&&=(this._xml.push(`>`),!1),this.leaf=!1,this._xml.push(e)}closeNode(){let e=this._stack.pop(),t=this._xml;this.leaf?t.push(`/>`):(t.push(`</`),t.push(e),t.push(`>`)),this.open=!1,this.leaf=!1}leafNode(e,t,n){this.openNode(e,t),n!==void 0&&this.writeText(n),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(){let e=this._rollbacks.pop();this._xml.length>e.xml&&this._xml.splice(e.xml,this._xml.length-e.xml),this._stack.length>e.stack&&this._stack.splice(e.stack,this._stack.length-e.stack),this.leaf=e.leaf,this.open=e.open}get xml(){return this.closeAll(),this._xml.join(``)}}s.StdDocAttributes={version:`1.0`,encoding:`UTF-8`,standalone:`yes`},t.exports=s},{"./under-dash":26,"./utils":27}],29:[function(e,t,n){(function(n){(function(){let r=e(`events`),i=e(`jszip`),a=e(`./stream-buf`),{stringToBuffer:o}=e(`./browser-buffer-encode`);class s extends r.EventEmitter{constructor(e){super(),this.options=Object.assign({type:`nodebuffer`,compression:`DEFLATE`},e),this.zip=new i,this.stream=new a}append(e,t){t.hasOwnProperty(`base64`)&&t.base64?this.zip.file(t.name,e,{base64:!0}):(n.browser&&typeof e==`string`&&(e=o(e)),this.zip.file(t.name,e))}async finalize(){let e=await this.zip.generateAsync(this.options);this.stream.end(e),this.emit(`finish`)}read(e){return this.stream.read(e)}setEncoding(e){return this.stream.setEncoding(e)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(e,t){return this.stream.pipe(e,t)}unpipe(e){return this.stream.unpipe(e)}unshift(e){return this.stream.unshift(e)}wrap(e){return this.stream.wrap(e)}}t.exports={ZipWriter:s}}).call(this)}).call(this,e(`_process`))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(e,t,n){t.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,t,n){t.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,t,n){let r=e(`../../utils/parse-sax`),i=e(`../../utils/xml-stream`);class a{prepare(){}render(){}parseOpen(e){}parseText(e){}parseClose(e){}reconcile(e,t){}reset(){this.model=null,this.map&&Object.values(this.map).forEach(e=>{e instanceof a?e.reset():e.xform&&e.xform.reset()})}mergeModel(e){this.model=Object.assign(this.model||{},e)}async parse(e){for await(let t of e)for(let{eventType:e,value:n}of t)if(e===`opentag`)this.parseOpen(n);else if(e===`text`)this.parseText(n);else if(e===`closetag`&&!this.parseClose(n.name))return this.model;return this.model}async parseStream(e){return this.parse(r(e))}get xml(){return this.toXml(this.model)}toXml(e){let t=new i;return this.render(t,e),t.xml}static toAttribute(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(e===void 0){if(n)return t}else if(n||e!==t)return e.toString()}static toStringAttribute(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return a.toAttribute(e,t,n)}static toStringValue(e,t){return e===void 0?t:e}static toBoolAttribute(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(e===void 0){if(n)return t}else if(n||e!==t)return e?`1`:`0`}static toBoolValue(e,t){return e===void 0?t:e===`1`}static toIntAttribute(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return a.toAttribute(e,t,n)}static toIntValue(e,t){return e===void 0?t:parseInt(e,10)}static toFloatAttribute(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return a.toAttribute(e,t,n)}static toFloatValue(e,t){return e===void 0?t:parseFloat(e)}}t.exports=a},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(e,t,n){let r=e(`../base-xform`),i=e(`../../../utils/col-cache`);function a(e){try{return i.decodeEx(e),!0}catch{return!1}}function o(e){let t=[],n=!1,r=``;return e.split(`,`).forEach(e=>{if(!e)return;let i=(e.match(/'/g)||[]).length;if(!i)return void(n?r+=e+`,`:a(e)&&t.push(e));let o=i%2==0;!n&&o&&a(e)?t.push(e):n&&!o?(n=!1,a(r+e)&&t.push(r+e),r=``):(n=!0,r+=e+`,`)}),t}t.exports=class extends r{render(e,t){e.openNode(`definedName`,{name:t.name,localSheetId:t.localSheetId}),e.writeText(t.ranges.join(`,`)),e.closeNode()}parseOpen(e){switch(e.name){case`definedName`:return this._parsedName=e.attributes.name,this._parsedLocalSheetId=e.attributes.localSheetId,this._parsedText=[],!0;default:return!1}}parseText(e){this._parsedText.push(e)}parseClose(){return this.model={name:this._parsedName,ranges:o(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,t,n){let r=e(`../../../utils/utils`),i=e(`../base-xform`);t.exports=class extends i{render(e,t){e.leafNode(`sheet`,{sheetId:t.id,name:t.name,state:t.state,"r:id":t.rId})}parseOpen(e){return e.name===`sheet`&&(this.model={name:r.xmlDecode(e.attributes.name),id:parseInt(e.attributes.sheetId,10),state:e.attributes.state,rId:e.attributes[`r:id`]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(e,t,n){let r=e(`../base-xform`);t.exports=class extends r{render(e,t){e.leafNode(`calcPr`,{calcId:171027,fullCalcOnLoad:t.fullCalcOnLoad?1:void 0})}parseOpen(e){return e.name===`calcPr`&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(e,t,n){let r=e(`../base-xform`);t.exports=class extends r{render(e,t){e.leafNode(`workbookPr`,{date1904:t.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(e){return e.name===`workbookPr`&&(this.model={date1904:e.attributes.date1904===`1`},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(e,t,n){let r=e(`../base-xform`);t.exports=class extends r{render(e,t){let n={xWindow:t.x||0,yWindow:t.y||0,windowWidth:t.width||12e3,windowHeight:t.height||24e3,firstSheet:t.firstSheet,activeTab:t.activeTab};t.visibility&&t.visibility!==`visible`&&(n.visibility=t.visibility),e.leafNode(`workbookView`,n)}parseOpen(e){if(e.name===`workbookView`){let t=this.model={},n=function(e,n,r){let i=n===void 0?r:t[e]=n;i!==void 0&&(t[e]=i)},r=function(e,n,r){let i=n===void 0?r:t[e]=parseInt(n,10);i!==void 0&&(t[e]=i)};return r(`x`,e.attributes.xWindow,0),r(`y`,e.attributes.yWindow,0),r(`width`,e.attributes.windowWidth,25e3),r(`height`,e.attributes.windowHeight,1e4),n(`visibility`,e.attributes.visibility,`visible`),r(`activeTab`,e.attributes.activeTab,void 0),r(`firstSheet`,e.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(e,t,n){let r=e(`../../../utils/under-dash`),i=e(`../../../utils/col-cache`),a=e(`../../../utils/xml-stream`),o=e(`../base-xform`),s=e(`../static-xform`),c=e(`../list-xform`),l=e(`./defined-name-xform`),u=e(`./sheet-xform`),d=e(`./workbook-view-xform`),f=e(`./workbook-properties-xform`),p=e(`./workbook-calc-properties-xform`);class m extends o{constructor(){super(),this.map={fileVersion:m.STATIC_XFORMS.fileVersion,workbookPr:new f,bookViews:new c({tag:`bookViews`,count:!1,childXform:new d}),sheets:new c({tag:`sheets`,count:!1,childXform:new u}),definedNames:new c({tag:`definedNames`,count:!1,childXform:new l}),calcPr:new p}}prepare(e){e.sheets=e.worksheets;let t=[],n=0;e.sheets.forEach(e=>{if(e.pageSetup&&e.pageSetup.printArea&&e.pageSetup.printArea.split(`&&`).forEach(r=>{let i=r.split(`:`),a={name:`_xlnm.Print_Area`,ranges:[`'${e.name}'!$${i[0]}:$${i[1]}`],localSheetId:n};t.push(a)}),e.pageSetup&&(e.pageSetup.printTitlesRow||e.pageSetup.printTitlesColumn)){let r=[];if(e.pageSetup.printTitlesColumn){let t=e.pageSetup.printTitlesColumn.split(`:`);r.push(`'${e.name}'!$${t[0]}:$${t[1]}`)}if(e.pageSetup.printTitlesRow){let t=e.pageSetup.printTitlesRow.split(`:`);r.push(`'${e.name}'!$${t[0]}:$${t[1]}`)}let i={name:`_xlnm.Print_Titles`,ranges:r,localSheetId:n};t.push(i)}n++}),t.length&&(e.definedNames=e.definedNames.concat(t)),(e.media||[]).forEach((e,t)=>{e.name=e.type+(t+1)})}render(e,t){e.openXml(a.StdDocAttributes),e.openNode(`workbook`,m.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(e),this.map.workbookPr.render(e,t.properties),this.map.bookViews.render(e,t.views),this.map.sheets.render(e,t.sheets),this.map.definedNames.render(e,t.definedNames),this.map.calcPr.render(e,t.calcProperties),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case`workbook`:return!0;default:return this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){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(e){let t=(e.workbookRels||[]).reduce((e,t)=>(e[t.Id]=t,e),{}),n=[],a,o=0;(e.sheets||[]).forEach(r=>{let i=t[r.rId];i&&(a=e.worksheetHash[`xl/`+i.Target.replace(/^(\s|\/xl\/)+/,``)],a&&(a.name=r.name,a.id=r.id,a.state=r.state,n[o++]=a))});let s=[];r.each(e.definedNames,e=>{if(e.name===`_xlnm.Print_Area`){if(a=n[e.localSheetId],a){a.pageSetup||={};let t=i.decodeEx(e.ranges[0]);a.pageSetup.printArea=a.pageSetup.printArea?`${a.pageSetup.printArea}&&${t.dimensions}`:t.dimensions}}else if(e.name===`_xlnm.Print_Titles`){if(a=n[e.localSheetId],a){a.pageSetup||={};let t=e.ranges.join(`,`),n=/\$/g,r=t.match(/\$\d+:\$\d+/);if(r&&r.length){let e=r[0];a.pageSetup.printTitlesRow=e.replace(n,``)}let i=t.match(/\$[A-Z]+:\$[A-Z]+/);if(i&&i.length){let e=i[0];a.pageSetup.printTitlesColumn=e.replace(n,``)}}}else s.push(e)}),e.definedNames=s,e.media.forEach((e,t)=>{e.index=t})}}m.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`},m.STATIC_XFORMS={fileVersion:new s({tag:`fileVersion`,$:{appName:`xl`,lastEdited:5,lowestEdited:5,rupBuild:9303}})},t.exports=m},{"../../../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,t,n){let r=e(`../strings/rich-text-xform`),i=e(`../../../utils/utils`),a=e(`../base-xform`),o=t.exports=function(e){this.model=e};i.inherits(o,a,{get tag(){return`r`},get richTextXform(){return this._richTextXform||=new r,this._richTextXform},render(e,t){t||=this.model,e.openNode(`comment`,{ref:t.ref,authorId:0}),e.openNode(`text`),t&&t.note&&t.note.texts&&t.note.texts.forEach(t=>{this.richTextXform.render(e,t)}),e.closeNode(),e.closeNode()},parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case`comment`:return this.model={type:`note`,note:{texts:[]},...e.attributes},!0;case`r`:return this.parser=this.richTextXform,this.parser.parseOpen(e),!0;default:return!1}},parseText(e){this.parser&&this.parser.parseText(e)},parseClose(e){switch(e){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(e),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(e,t,n){let r=e(`../../../utils/xml-stream`),i=e(`../../../utils/utils`),a=e(`../base-xform`),o=e(`./comment-xform`),s=t.exports=function(){this.map={comment:new o}};i.inherits(s,a,{COMMENTS_ATTRIBUTES:{xmlns:`http://schemas.openxmlformats.org/spreadsheetml/2006/main`}},{render(e,t){t||=this.model,e.openXml(r.StdDocAttributes),e.openNode(`comments`,s.COMMENTS_ATTRIBUTES),e.openNode(`authors`),e.leafNode(`author`,null,`Author`),e.closeNode(),e.openNode(`commentList`),t.comments.forEach(t=>{this.map.comment.render(e,t)}),e.closeNode(),e.closeNode()},parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case`commentList`:return this.model={comments:[]},!0;case`comment`:return this.parser=this.map.comment,this.parser.parseOpen(e),!0;default:return!1}},parseText(e){this.parser&&this.parser.parseText(e)},parseClose(e){switch(e){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(e),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(e,t,n){let r=e(`../../base-xform`);t.exports=class extends r{constructor(e){super(),this._model=e}get tag(){return this._model&&this._model.tag}render(e,t,n){(t===n[2]||this.tag===`x:SizeWithCells`&&t===n[1])&&e.leafNode(this.tag)}parseOpen(e){switch(e.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,t,n){let r=e(`../../base-xform`);t.exports=class extends r{constructor(e){super(),this._model=e}get tag(){return this._model&&this._model.tag}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(e){switch(e.name){case this.tag:return this.text=``,!0;default:return!1}}parseText(e){this.text=e}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(e,t,n){let r=e(`../base-xform`);t.exports=class extends r{get tag(){return`x:Anchor`}getAnchorRect(e){let t=Math.floor(e.left),n=Math.floor(68*(e.left-t)),r=Math.floor(e.top),i=Math.floor(18*(e.top-r)),a=Math.floor(e.right),o=Math.floor(68*(e.right-a)),s=Math.floor(e.bottom);return[t,n,r,i,a,o,s,Math.floor(18*(e.bottom-s))]}getDefaultRect(e){let t=e.col,n=Math.max(e.row-2,0);return[t,6,n,14,t+2,2,n+4,16]}render(e,t){let n=t.anchor?this.getAnchorRect(t.anchor):this.getDefaultRect(t.refAddress);e.leafNode(`x:Anchor`,null,n.join(`, `))}parseOpen(e){switch(e.name){case this.tag:return this.text=``,!0;default:return!1}}parseText(e){this.text=e}parseClose(){return!1}}},{"../base-xform":32}],44:[function(e,t,n){let r=e(`../base-xform`),i=e(`./vml-anchor-xform`),a=e(`./style/vml-protection-xform`),o=e(`./style/vml-position-xform`),s=[`twoCells`,`oneCells`,`absolute`];t.exports=class extends r{constructor(){super(),this.map={"x:Anchor":new i,"x:Locked":new a({tag:`x:Locked`}),"x:LockText":new a({tag:`x:LockText`}),"x:SizeWithCells":new o({tag:`x:SizeWithCells`}),"x:MoveWithCells":new o({tag:`x:MoveWithCells`})}}get tag(){return`x:ClientData`}render(e,t){let{protection:n,editAs:r}=t.note;e.openNode(this.tag,{ObjectType:`Note`}),this.map[`x:MoveWithCells`].render(e,r,s),this.map[`x:SizeWithCells`].render(e,r,s),this.map[`x:Anchor`].render(e,t),this.map[`x:Locked`].render(e,n.locked),e.leafNode(`x:AutoFill`,null,`False`),this.map[`x:LockText`].render(e,n.lockText),e.leafNode(`x:Row`,null,t.refAddress.row-1),e.leafNode(`x:Column`,null,t.refAddress.col-1),e.closeNode()}parseOpen(e){switch(e.name){case this.tag:this.reset(),this.model={anchor:[],protection:{},editAs:``};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.normalizeModel(),!1;default:return!0}}normalizeModel(){let e=Object.assign({},this.map[`x:MoveWithCells`].model,this.map[`x:SizeWithCells`].model),t=Object.keys(e).length;this.model.editAs=s[t],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,t,n){let r=e(`../../../utils/xml-stream`),i=e(`../base-xform`),a=e(`./vml-shape-xform`);class o extends i{constructor(){super(),this.map={"v:shape":new a}}get tag(){return`xml`}render(e,t){e.openXml(r.StdDocAttributes),e.openNode(this.tag,o.DRAWING_ATTRIBUTES),e.openNode(`o:shapelayout`,{"v:ext":`edit`}),e.leafNode(`o:idmap`,{"v:ext":`edit`,data:1}),e.closeNode(),e.openNode(`v:shapetype`,{id:`_x0000_t202`,coordsize:`21600,21600`,"o:spt":202,path:`m,l,21600r21600,l21600,xe`}),e.leafNode(`v:stroke`,{joinstyle:`miter`}),e.leafNode(`v:path`,{gradientshapeok:`t`,"o:connecttype":`rect`}),e.closeNode(),t.comments.forEach((t,n)=>{this.map[`v:shape`].render(e,t,n)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset(),this.model={comments:[]};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0;switch(e){case this.tag:return!1;default:return!0}}reconcile(e,t){e.anchors.forEach(e=>{e.br?this.map[`xdr:twoCellAnchor`].reconcile(e,t):this.map[`xdr:oneCellAnchor`].reconcile(e,t)})}}o.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`},t.exports=o},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(e,t,n){let r=e(`../base-xform`),i=e(`./vml-textbox-xform`),a=e(`./vml-client-data-xform`);class o extends r{constructor(){super(),this.map={"v:textbox":new i,"x:ClientData":new a}}get tag(){return`v:shape`}render(e,t,n){e.openNode(`v:shape`,o.V_SHAPE_ATTRIBUTES(t,n)),e.leafNode(`v:fill`,{color2:`infoBackground [80]`}),e.leafNode(`v:shadow`,{color:`none [81]`,obscured:`t`}),e.leafNode(`v:path`,{"o:connecttype":`none`}),this.map[`v:textbox`].render(e,t),this.map[`x:ClientData`].render(e,t),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset(),this.model={margins:{insetmode:e.attributes[`o:insetmode`]},anchor:``,editAs:``,protection:{}};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){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}}}o.V_SHAPE_ATTRIBUTES=(e,t)=>({id:`_x0000_s`+(1025+t),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":e.note.margins&&e.note.margins.insetmode}),t.exports=o},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(e,t,n){let r=e(`../base-xform`);t.exports=class extends r{get tag(){return`v:textbox`}conversionUnit(e,t,n){return`${parseFloat(e)*t.toFixed(2)}${n}`}reverseConversionUnit(e){return(e||``).split(`,`).map(e=>Number(parseFloat(this.conversionUnit(parseFloat(e),.1,``)).toFixed(2)))}render(e,t){let n={style:`mso-direction-alt:auto`};if(t&&t.note){let{inset:e}=t.note&&t.note.margins;Array.isArray(e)&&(e=e.map(e=>this.conversionUnit(e,10,`mm`)).join(`,`)),e&&(n.inset=e)}e.openNode(`v:textbox`,n),e.leafNode(`div`,{style:`text-align:left`}),e.closeNode()}parseOpen(e){switch(e.name){case this.tag:return this.model={inset:this.reverseConversionUnit(e.attributes.inset)},!0;default:return!0}}parseText(){}parseClose(e){switch(e){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],48:[function(e,t,n){let r=e(`./base-xform`);t.exports=class extends r{createNewModel(e){return{}}parseOpen(e){return this.parser=this.parser||this.map[e.name],this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag&&(this.model=this.createNewModel(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}onParserClose(e,t){this.model[e]=t.model}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.onParserClose(e,this.parser),this.parser=void 0),!0):e!==this.tag}}},{"./base-xform":32}],49:[function(e,t,n){let r=e(`../base-xform`);t.exports=class extends r{render(e,t){e.openNode(`HeadingPairs`),e.openNode(`vt:vector`,{size:2,baseType:`variant`}),e.openNode(`vt:variant`),e.leafNode(`vt:lpstr`,void 0,`Worksheets`),e.closeNode(),e.openNode(`vt:variant`),e.leafNode(`vt:i4`,void 0,t.length),e.closeNode(),e.closeNode(),e.closeNode()}parseOpen(e){return e.name===`HeadingPairs`}parseText(){}parseClose(e){return e!==`HeadingPairs`}}},{"../base-xform":32}],50:[function(e,t,n){let r=e(`../base-xform`);t.exports=class extends r{render(e,t){e.openNode(`TitlesOfParts`),e.openNode(`vt:vector`,{size:t.length,baseType:`lpstr`}),t.forEach(t=>{e.leafNode(`vt:lpstr`,void 0,t.name)}),e.closeNode(),e.closeNode()}parseOpen(e){return e.name===`TitlesOfParts`}parseText(){}parseClose(e){return e!==`TitlesOfParts`}}},{"../base-xform":32}],51:[function(e,t,n){let r=e(`../../../utils/xml-stream`),i=e(`../base-xform`),a=e(`../simple/string-xform`),o=e(`./app-heading-pairs-xform`),s=e(`./app-titles-of-parts-xform`);class c extends i{constructor(){super(),this.map={Company:new a({tag:`Company`}),Manager:new a({tag:`Manager`}),HeadingPairs:new o,TitleOfParts:new s}}render(e,t){e.openXml(r.StdDocAttributes),e.openNode(`Properties`,c.PROPERTY_ATTRIBUTES),e.leafNode(`Application`,void 0,`Microsoft Excel`),e.leafNode(`DocSecurity`,void 0,`0`),e.leafNode(`ScaleCrop`,void 0,`false`),this.map.HeadingPairs.render(e,t.worksheets),this.map.TitleOfParts.render(e,t.worksheets),this.map.Company.render(e,t.company||``),this.map.Manager.render(e,t.manager),e.leafNode(`LinksUpToDate`,void 0,`false`),e.leafNode(`SharedDoc`,void 0,`false`),e.leafNode(`HyperlinksChanged`,void 0,`false`),e.leafNode(`AppVersion`,void 0,`16.0300`),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case`Properties`:return!0;default:return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case`Properties`:return this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1;default:return!0}}}c.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3,6}/,``)},c.DateAttrs={"xsi:type":`dcterms:W3CDTF`},c.PROPERTY_ATTRIBUTES={xmlns:`http://schemas.openxmlformats.org/officeDocument/2006/extended-properties`,"xmlns:vt":`http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes`},t.exports=c},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(e,t,n){let r=e(`../../../utils/xml-stream`),i=e(`../base-xform`);class a extends i{render(e,t){e.openXml(r.StdDocAttributes),e.openNode(`Types`,a.PROPERTY_ATTRIBUTES);let n={};(t.media||[]).forEach(t=>{if(t.type===`image`){let r=t.extension;n[r]||(n[r]=!0,e.leafNode(`Default`,{Extension:r,ContentType:`image/`+r}))}}),e.leafNode(`Default`,{Extension:`rels`,ContentType:`application/vnd.openxmlformats-package.relationships+xml`}),e.leafNode(`Default`,{Extension:`xml`,ContentType:`application/xml`}),e.leafNode(`Override`,{PartName:`/xl/workbook.xml`,ContentType:`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml`}),t.worksheets.forEach(t=>{let n=`/xl/worksheets/sheet${t.id}.xml`;e.leafNode(`Override`,{PartName:n,ContentType:`application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml`})}),e.leafNode(`Override`,{PartName:`/xl/theme/theme1.xml`,ContentType:`application/vnd.openxmlformats-officedocument.theme+xml`}),e.leafNode(`Override`,{PartName:`/xl/styles.xml`,ContentType:`application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml`}),t.sharedStrings&&t.sharedStrings.count&&e.leafNode(`Override`,{PartName:`/xl/sharedStrings.xml`,ContentType:`application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml`}),t.tables&&t.tables.forEach(t=>{e.leafNode(`Override`,{PartName:`/xl/tables/`+t.target,ContentType:`application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml`})}),t.drawings&&t.drawings.forEach(t=>{e.leafNode(`Override`,{PartName:`/xl/drawings/${t.name}.xml`,ContentType:`application/vnd.openxmlformats-officedocument.drawing+xml`})}),t.commentRefs&&(e.leafNode(`Default`,{Extension:`vml`,ContentType:`application/vnd.openxmlformats-officedocument.vmlDrawing`}),t.commentRefs.forEach(t=>{let{commentName:n}=t;e.leafNode(`Override`,{PartName:`/xl/${n}.xml`,ContentType:`application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml`})})),e.leafNode(`Override`,{PartName:`/docProps/core.xml`,ContentType:`application/vnd.openxmlformats-package.core-properties+xml`}),e.leafNode(`Override`,{PartName:`/docProps/app.xml`,ContentType:`application/vnd.openxmlformats-officedocument.extended-properties+xml`}),e.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}a.PROPERTY_ATTRIBUTES={xmlns:`http://schemas.openxmlformats.org/package/2006/content-types`},t.exports=a},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(e,t,n){let r=e(`../../../utils/xml-stream`),i=e(`../base-xform`),a=e(`../simple/date-xform`),o=e(`../simple/string-xform`),s=e(`../simple/integer-xform`);class c extends i{constructor(){super(),this.map={"dc:creator":new o({tag:`dc:creator`}),"dc:title":new o({tag:`dc:title`}),"dc:subject":new o({tag:`dc:subject`}),"dc:description":new o({tag:`dc:description`}),"dc:identifier":new o({tag:`dc:identifier`}),"dc:language":new o({tag:`dc:language`}),"cp:keywords":new o({tag:`cp:keywords`}),"cp:category":new o({tag:`cp:category`}),"cp:lastModifiedBy":new o({tag:`cp:lastModifiedBy`}),"cp:lastPrinted":new a({tag:`cp:lastPrinted`,format:c.DateFormat}),"cp:revision":new s({tag:`cp:revision`}),"cp:version":new o({tag:`cp:version`}),"cp:contentStatus":new o({tag:`cp:contentStatus`}),"cp:contentType":new o({tag:`cp:contentType`}),"dcterms:created":new a({tag:`dcterms:created`,attrs:c.DateAttrs,format:c.DateFormat}),"dcterms:modified":new a({tag:`dcterms:modified`,attrs:c.DateAttrs,format:c.DateFormat})}}render(e,t){e.openXml(r.StdDocAttributes),e.openNode(`cp:coreProperties`,c.CORE_PROPERTY_ATTRIBUTES),this.map[`dc:creator`].render(e,t.creator),this.map[`dc:title`].render(e,t.title),this.map[`dc:subject`].render(e,t.subject),this.map[`dc:description`].render(e,t.description),this.map[`dc:identifier`].render(e,t.identifier),this.map[`dc:language`].render(e,t.language),this.map[`cp:keywords`].render(e,t.keywords),this.map[`cp:category`].render(e,t.category),this.map[`cp:lastModifiedBy`].render(e,t.lastModifiedBy),this.map[`cp:lastPrinted`].render(e,t.lastPrinted),this.map[`cp:revision`].render(e,t.revision),this.map[`cp:version`].render(e,t.version),this.map[`cp:contentStatus`].render(e,t.contentStatus),this.map[`cp:contentType`].render(e,t.contentType),this.map[`dcterms:created`].render(e,t.created),this.map[`dcterms:modified`].render(e,t.modified),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case`cp:coreProperties`:case`coreProperties`:return!0;default:if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw Error(`Unexpected xml node in parseOpen: `+JSON.stringify(e))}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){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 Error(`Unexpected xml node in parseClose: `+e)}}}c.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3}/,``)},c.DateAttrs={"xsi:type":`dcterms:W3CDTF`},c.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":`http://schemas.openxmlformats.org/package/2006/metadata/core-properties`,"xmlns:dc":`http://purl.org/dc/elements/1.1/`,"xmlns:dcterms":`http://purl.org/dc/terms/`,"xmlns:dcmitype":`http://purl.org/dc/dcmitype/`,"xmlns:xsi":`http://www.w3.org/2001/XMLSchema-instance`},t.exports=c},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(e,t,n){let r=e(`../base-xform`);t.exports=class extends r{render(e,t){e.leafNode(`Relationship`,t)}parseOpen(e){switch(e.name){case`Relationship`:return this.model=e.attributes,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(e,t,n){let r=e(`../../../utils/xml-stream`),i=e(`../base-xform`),a=e(`./relationship-xform`);class o extends i{constructor(){super(),this.map={Relationship:new a}}render(e,t){t||=this._values,e.openXml(r.StdDocAttributes),e.openNode(`Relationships`,o.RELATIONSHIPS_ATTRIBUTES),t.forEach(t=>{this.map.Relationship.render(e,t)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case`Relationships`:return this.model=[],!0;default:if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw Error(`Unexpected xml node in parseOpen: `+JSON.stringify(e))}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.push(this.parser.model),this.parser=void 0),!0;switch(e){case`Relationships`:return!1;default:throw Error(`Unexpected xml node in parseClose: `+e)}}}o.RELATIONSHIPS_ATTRIBUTES={xmlns:`http://schemas.openxmlformats.org/package/2006/relationships`},t.exports=o},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(e,t,n){let r=e(`../base-xform`);t.exports=class extends r{parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset(),this.model={range:{editAs:e.attributes.editAs||`oneCell`}};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(e){this.parser&&this.parser.parseText(e)}reconcilePicture(e,t){if(e&&e.rId){let n=t.rels[e.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(n){let e=n[1],r=t.mediaIndex[e];return t.media[r]}}}}},{"../base-xform":32}],57:[function(e,t,n){let r=e(`../base-xform`),i=e(`./blip-xform`);t.exports=class extends r{constructor(){super(),this.map={"a:blip":new i}}get tag(){return`xdr:blipFill`}render(e,t){e.openNode(this.tag),this.map[`a:blip`].render(e,t),e.openNode(`a:stretch`),e.leafNode(`a:fillRect`),e.closeNode(),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(){}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model=this.map[`a:blip`].model,!1;default:return!0}}}},{"../base-xform":32,"./blip-xform":58}],58:[function(e,t,n){let r=e(`../base-xform`);t.exports=class extends r{get tag(){return`a:blip`}render(e,t){e.leafNode(this.tag,{"xmlns:r":`http://schemas.openxmlformats.org/officeDocument/2006/relationships`,"r:embed":t.rId,cstate:`print`})}parseOpen(e){switch(e.name){case this.tag:return this.model={rId:e.attributes[`r:embed`]},!0;default:return!0}}parseText(){}parseClose(e){switch(e){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],59:[function(e,t,n){let r=e(`../base-xform`);t.exports=class extends r{get tag(){return`xdr:cNvPicPr`}render(e){e.openNode(this.tag),e.leafNode(`a:picLocks`,{noChangeAspect:`1`}),e.closeNode()}parseOpen(e){switch(e.name){case this.tag:default:return!0}}parseText(){}parseClose(e){switch(e){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],60:[function(e,t,n){let r=e(`../base-xform`),i=e(`./hlink-click-xform`),a=e(`./ext-lst-xform`);t.exports=class extends r{constructor(){super(),this.map={"a:hlinkClick":new i,"a:extLst":new a}}get tag(){return`xdr:cNvPr`}render(e,t){e.openNode(this.tag,{id:t.index,name:`Picture `+t.index}),this.map[`a:hlinkClick`].render(e,t),this.map[`a:extLst`].render(e,t),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(){}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){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,t,n){let r=e(`../base-xform`),i=e(`../simple/integer-xform`);t.exports=class extends r{constructor(e){super(),this.tag=e.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(e,t){e.openNode(this.tag),this.map[`xdr:col`].render(e,t.nativeCol),this.map[`xdr:colOff`].render(e,t.nativeColOff),this.map[`xdr:row`].render(e,t.nativeRow),this.map[`xdr:rowOff`].render(e,t.nativeRowOff),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){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,t,n){let r=e(`../../../utils/col-cache`),i=e(`../../../utils/xml-stream`),a=e(`../base-xform`),o=e(`./two-cell-anchor-xform`),s=e(`./one-cell-anchor-xform`);class c extends a{constructor(){super(),this.map={"xdr:twoCellAnchor":new o,"xdr:oneCellAnchor":new s}}prepare(e){e.anchors.forEach((e,t)=>{e.anchorType=function(e){return(typeof e.range==`string`?r.decode(e.range):e.range).br?`xdr:twoCellAnchor`:`xdr:oneCellAnchor`}(e),this.map[e.anchorType].prepare(e,{index:t})})}get tag(){return`xdr:wsDr`}render(e,t){e.openXml(i.StdDocAttributes),e.openNode(this.tag,c.DRAWING_ATTRIBUTES),t.anchors.forEach(t=>{this.map[t.anchorType].render(e,t)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset(),this.model={anchors:[]};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0;switch(e){case this.tag:return!1;default:return!0}}reconcile(e,t){e.anchors.forEach(e=>{e.br?this.map[`xdr:twoCellAnchor`].reconcile(e,t):this.map[`xdr:oneCellAnchor`].reconcile(e,t)})}}c.DRAWING_ATTRIBUTES={"xmlns:xdr":`http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing`,"xmlns:a":`http://schemas.openxmlformats.org/drawingml/2006/main`},t.exports=c},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(e,t,n){let r=e(`../base-xform`);t.exports=class extends r{get tag(){return`a:extLst`}render(e){e.openNode(this.tag),e.openNode(`a:ext`,{uri:`{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}`}),e.leafNode(`a16:creationId`,{"xmlns:a16":`http://schemas.microsoft.com/office/drawing/2014/main`,id:`{00000000-0008-0000-0000-000002000000}`}),e.closeNode(),e.closeNode()}parseOpen(e){switch(e.name){case this.tag:default:return!0}}parseText(){}parseClose(e){switch(e){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],64:[function(e,t,n){let r=e(`../base-xform`);t.exports=class extends r{constructor(e){super(),this.tag=e.tag,this.map={}}render(e,t){e.openNode(this.tag);let n=Math.floor(9525*t.width),r=Math.floor(9525*t.height);e.addAttribute(`cx`,n),e.addAttribute(`cy`,r),e.closeNode()}parseOpen(e){return e.name===this.tag&&(this.model={width:parseInt(e.attributes.cx||`0`,10)/9525,height:parseInt(e.attributes.cy||`0`,10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(e,t,n){let r=e(`../base-xform`);t.exports=class extends r{get tag(){return`a:hlinkClick`}render(e,t){t.hyperlinks&&t.hyperlinks.rId&&e.leafNode(this.tag,{"xmlns:r":`http://schemas.openxmlformats.org/officeDocument/2006/relationships`,"r:id":t.hyperlinks.rId,tooltip:t.hyperlinks.tooltip})}parseOpen(e){switch(e.name){case this.tag:return this.model={hyperlinks:{rId:e.attributes[`r:id`],tooltip:e.attributes.tooltip}},!0;default:return!0}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(e,t,n){let r=e(`../base-xform`),i=e(`./c-nv-pr-xform`),a=e(`./c-nv-pic-pr-xform`);t.exports=class extends r{constructor(){super(),this.map={"xdr:cNvPr":new i,"xdr:cNvPicPr":new a}}get tag(){return`xdr:nvPicPr`}render(e,t){e.openNode(this.tag),this.map[`xdr:cNvPr`].render(e,t),this.map[`xdr:cNvPicPr`].render(e,t),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(){}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){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,t,n){let r=e(`./base-cell-anchor-xform`),i=e(`../static-xform`),a=e(`./cell-position-xform`),o=e(`./ext-xform`),s=e(`./pic-xform`);t.exports=class extends r{constructor(){super(),this.map={"xdr:from":new a({tag:`xdr:from`}),"xdr:ext":new o({tag:`xdr:ext`}),"xdr:pic":new s,"xdr:clientData":new i({tag:`xdr:clientData`})}}get tag(){return`xdr:oneCellAnchor`}prepare(e,t){this.map[`xdr:pic`].prepare(e.picture,t)}render(e,t){e.openNode(this.tag,{editAs:t.range.editAs||`oneCell`}),this.map[`xdr:from`].render(e,t.range.tl),this.map[`xdr:ext`].render(e,t.range.ext),this.map[`xdr:pic`].render(e,t.picture),this.map[`xdr:clientData`].render(e,{}),e.closeNode()}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){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(e,t){e.medium=this.reconcilePicture(e.picture,t)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(e,t,n){let r=e(`../base-xform`),i=e(`../static-xform`),a=e(`./blip-fill-xform`),o=e(`./nv-pic-pr-xform`),s=e(`./sp-pr`);t.exports=class extends r{constructor(){super(),this.map={"xdr:nvPicPr":new o,"xdr:blipFill":new a,"xdr:spPr":new i(s)}}get tag(){return`xdr:pic`}prepare(e,t){e.index=t.index+1}render(e,t){e.openNode(this.tag),this.map[`xdr:nvPicPr`].render(e,t),this.map[`xdr:blipFill`].render(e,t),this.map[`xdr:spPr`].render(e,t),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(){}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.mergeModel(this.parser.model),this.parser=void 0),!0;switch(e){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,t,n){t.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,t,n){let r=e(`./base-cell-anchor-xform`),i=e(`../static-xform`),a=e(`./cell-position-xform`),o=e(`./pic-xform`);t.exports=class extends r{constructor(){super(),this.map={"xdr:from":new a({tag:`xdr:from`}),"xdr:to":new a({tag:`xdr:to`}),"xdr:pic":new o,"xdr:clientData":new i({tag:`xdr:clientData`})}}get tag(){return`xdr:twoCellAnchor`}prepare(e,t){this.map[`xdr:pic`].prepare(e.picture,t)}render(e,t){e.openNode(this.tag,{editAs:t.range.editAs||`oneCell`}),this.map[`xdr:from`].render(e,t.range.tl),this.map[`xdr:to`].render(e,t.range.br),this.map[`xdr:pic`].render(e,t.picture),this.map[`xdr:clientData`].render(e,{}),e.closeNode()}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){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(e,t){e.medium=this.reconcilePicture(e.picture,t)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(e,t,n){let r=e(`./base-xform`);t.exports=class extends r{constructor(e){super(),this.tag=e.tag,this.always=!!e.always,this.count=e.count,this.empty=e.empty,this.$count=e.$count||`count`,this.$=e.$,this.childXform=e.childXform,this.maxItems=e.maxItems}prepare(e,t){let{childXform:n}=this;e&&e.forEach((e,r)=>{t.index=r,n.prepare(e,t)})}render(e,t){if(this.always||t&&t.length){e.openNode(this.tag,this.$),this.count&&e.addAttribute(this.$count,t&&t.length||0);let{childXform:n}=this;(t||[]).forEach((t,r)=>{n.render(e,t,r)}),e.closeNode()}else this.empty&&e.leafNode(this.tag)}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:return this.model=[],!0;default:return!!this.childXform.parseOpen(e)&&(this.parser=this.childXform,!0)}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(e,t){if(e){let{childXform:n}=this;e.forEach(e=>{n.reconcile(e,t)})}}}},{"./base-xform":32}],72:[function(e,t,n){let r=e(`../../../utils/col-cache`),i=e(`../base-xform`);t.exports=class extends i{get tag(){return`autoFilter`}render(e,t){if(t)if(typeof t==`string`)e.leafNode(`autoFilter`,{ref:t});else{let n=function(e){return typeof e==`string`?e:r.getAddress(e.row,e.column).address},i=n(t.from),a=n(t.to);i&&a&&e.leafNode(`autoFilter`,{ref:`${i}:${a}`})}}parseOpen(e){e.name===`autoFilter`&&(this.model=e.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(e,t,n){let r=e(`../../../utils/utils`),i=e(`../base-xform`),a=e(`../../../doc/range`),o=e(`../../../doc/enums`),s=e(`../strings/rich-text-xform`);function c(e){if(e==null)return o.ValueType.Null;if(e instanceof String||typeof e==`string`)return o.ValueType.String;if(typeof e==`number`)return o.ValueType.Number;if(typeof e==`boolean`)return o.ValueType.Boolean;if(e instanceof Date)return o.ValueType.Date;if(e.text&&e.hyperlink)return o.ValueType.Hyperlink;if(e.formula)return o.ValueType.Formula;if(e.error)return o.ValueType.Error;throw Error(`I could not understand type of value`)}t.exports=class extends i{constructor(){super(),this.richTextXForm=new s}get tag(){return`c`}prepare(e,t){let n=t.styles.addStyleModel(e.style||{},function(e){switch(e.type){case o.ValueType.Formula:return c(e.result);default:return e.type}}(e));switch(n&&(e.styleId=n),e.comment&&t.comments.push({...e.comment,ref:e.address}),e.type){case o.ValueType.String:case o.ValueType.RichText:t.sharedStrings&&(e.ssId=t.sharedStrings.add(e.value));break;case o.ValueType.Date:t.date1904&&(e.date1904=!0);break;case o.ValueType.Hyperlink:t.sharedStrings&&e.text!==void 0&&e.text!==null&&(e.ssId=t.sharedStrings.add(e.text)),t.hyperlinks.push({address:e.address,target:e.hyperlink,tooltip:e.tooltip});break;case o.ValueType.Merge:t.merges.add(e);break;case o.ValueType.Formula:if(t.date1904&&(e.date1904=!0),e.shareType===`shared`&&(e.si=t.siFormulae++),e.formula)t.formulae[e.address]=e;else if(e.sharedFormula){let n=t.formulae[e.sharedFormula];if(!n)throw Error(`Shared Formula master must exist above and or left of clone for cell `+e.address);n.si===void 0?(n.shareType=`shared`,n.si=t.siFormulae++,n.range=new a(n.address,e.address)):n.range&&n.range.expandToAddress(e.address),e.si=n.si}}}renderFormula(e,t){let n=null;switch(t.shareType){case`shared`:n={t:`shared`,ref:t.ref||t.range.range,si:t.si};break;case`array`:n={t:`array`,ref:t.ref};break;default:t.si!==void 0&&(n={t:`shared`,si:t.si})}switch(c(t.result)){case o.ValueType.Null:e.leafNode(`f`,n,t.formula);break;case o.ValueType.String:e.addAttribute(`t`,`str`),e.leafNode(`f`,n,t.formula),e.leafNode(`v`,null,t.result);break;case o.ValueType.Number:e.leafNode(`f`,n,t.formula),e.leafNode(`v`,null,t.result);break;case o.ValueType.Boolean:e.addAttribute(`t`,`b`),e.leafNode(`f`,n,t.formula),e.leafNode(`v`,null,t.result?1:0);break;case o.ValueType.Error:e.addAttribute(`t`,`e`),e.leafNode(`f`,n,t.formula),e.leafNode(`v`,null,t.result.error);break;case o.ValueType.Date:e.leafNode(`f`,n,t.formula),e.leafNode(`v`,null,r.dateToExcel(t.result,t.date1904));break;default:throw Error(`I could not understand type of value`)}}render(e,t){if(t.type!==o.ValueType.Null||t.styleId){switch(e.openNode(`c`),e.addAttribute(`r`,t.address),t.styleId&&e.addAttribute(`s`,t.styleId),t.type){case o.ValueType.Null:break;case o.ValueType.Number:e.leafNode(`v`,null,t.value);break;case o.ValueType.Boolean:e.addAttribute(`t`,`b`),e.leafNode(`v`,null,t.value?`1`:`0`);break;case o.ValueType.Error:e.addAttribute(`t`,`e`),e.leafNode(`v`,null,t.value.error);break;case o.ValueType.String:case o.ValueType.RichText:t.ssId===void 0?t.value&&t.value.richText?(e.addAttribute(`t`,`inlineStr`),e.openNode(`is`),t.value.richText.forEach(t=>{this.richTextXForm.render(e,t)}),e.closeNode(`is`)):(e.addAttribute(`t`,`str`),e.leafNode(`v`,null,t.value)):(e.addAttribute(`t`,`s`),e.leafNode(`v`,null,t.ssId));break;case o.ValueType.Date:e.leafNode(`v`,null,r.dateToExcel(t.value,t.date1904));break;case o.ValueType.Hyperlink:t.ssId===void 0?(e.addAttribute(`t`,`str`),e.leafNode(`v`,null,t.text)):(e.addAttribute(`t`,`s`),e.leafNode(`v`,null,t.ssId));break;case o.ValueType.Formula:this.renderFormula(e,t);break;case o.ValueType.Merge:}e.closeNode()}}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case`c`:return this.model={address:e.attributes.r},this.t=e.attributes.t,e.attributes.s&&(this.model.styleId=parseInt(e.attributes.s,10)),!0;case`f`:return this.currentNode=`f`,this.model.si=e.attributes.si,this.model.shareType=e.attributes.t,this.model.ref=e.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(e),!0;default:return!1}}parseText(e){if(this.parser)this.parser.parseText(e);else switch(this.currentNode){case`f`:this.model.formula=this.model.formula?this.model.formula+e:e;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+e:e:this.model.value=this.model.value?this.model.value+e:e}}parseClose(e){switch(e){case`c`:{let{model:e}=this;if(e.formula||e.shareType)e.type=o.ValueType.Formula,e.value&&=(this.t===`str`?e.result=r.xmlDecode(e.value):this.t===`b`?e.result=parseInt(e.value,10)!==0:this.t===`e`?e.result={error:e.value}:e.result=parseFloat(e.value),void 0);else if(e.value!==void 0)switch(this.t){case`s`:e.type=o.ValueType.String,e.value=parseInt(e.value,10);break;case`str`:e.type=o.ValueType.String,e.value=r.xmlDecode(e.value);break;case`inlineStr`:e.type=o.ValueType.String;break;case`b`:e.type=o.ValueType.Boolean,e.value=parseInt(e.value,10)!==0;break;case`e`:e.type=o.ValueType.Error,e.value={error:e.value};break;default:e.type=o.ValueType.Number,e.value=parseFloat(e.value)}else e.styleId?e.type=o.ValueType.Null:e.type=o.ValueType.Merge;return!1}case`f`:case`v`:case`is`:return this.currentNode=void 0,!0;case`t`:return this.parser?(this.parser.parseClose(e),!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(e),!0)}}reconcile(e,t){let n=e.styleId&&t.styles&&t.styles.getStyleModel(e.styleId);switch(n&&(e.style=n),e.styleId!==void 0&&(e.styleId=void 0),e.type){case o.ValueType.String:typeof e.value==`number`&&t.sharedStrings&&(e.value=t.sharedStrings.getString(e.value)),e.value.richText&&(e.type=o.ValueType.RichText);break;case o.ValueType.Number:n&&r.isDateFmt(n.numFmt)&&(e.type=o.ValueType.Date,e.value=r.excelToDate(e.value,t.date1904));break;case o.ValueType.Formula:e.result!==void 0&&n&&r.isDateFmt(n.numFmt)&&(e.result=r.excelToDate(e.result,t.date1904)),e.shareType===`shared`&&(e.ref?t.formulae[e.si]=e.address:(e.sharedFormula=t.formulae[e.si],delete e.shareType),delete e.si)}let i=t.hyperlinkMap[e.address];i&&(e.type===o.ValueType.Formula?(e.text=e.result,e.result=void 0):(e.text=e.value,e.value=void 0),e.type=o.ValueType.Hyperlink,e.hyperlink=i);let a=t.commentsMap&&t.commentsMap[e.address];a&&(e.comment=a)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(e,t,n){let r=e(`../../base-xform`);t.exports=class extends r{get tag(){return`x14:cfIcon`}render(e,t){e.leafNode(this.tag,{iconSet:t.iconSet,iconId:t.iconId})}parseOpen(e){let{attributes:t}=e;this.model={iconSet:t.iconSet,iconId:r.toIntValue(t.iconId)}}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],75:[function(e,t,n){let{v4:r}=e(`uuid`),i=e(`../../base-xform`),a=e(`../../composite-xform`),o=e(`./databar-ext-xform`),s=e(`./icon-set-ext-xform`),c={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class l extends a{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new o,"x14:iconSet":this.iconSetXform=new s}}get tag(){return`x14:cfRule`}static isExt(e){return e.type===`dataBar`?o.isExt(e):!(e.type!==`iconSet`||!e.custom&&!c[e.iconSet])}prepare(e){l.isExt(e)&&(e.x14Id=`{${r()}}`.toUpperCase())}render(e,t){if(l.isExt(t))switch(t.type){case`dataBar`:this.renderDataBar(e,t);break;case`iconSet`:this.renderIconSet(e,t)}}renderDataBar(e,t){e.openNode(this.tag,{type:`dataBar`,id:t.x14Id}),this.databarXform.render(e,t),e.closeNode()}renderIconSet(e,t){e.openNode(this.tag,{type:`iconSet`,priority:t.priority,id:t.x14Id||`{${r()}}`}),this.iconSetXform.render(e,t),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{type:t.type,x14Id:t.id,priority:i.toIntValue(t.priority)}}onParserClose(e,t){Object.assign(this.model,t.model)}}t.exports=l},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(e,t,n){let r=e(`../../composite-xform`),i=e(`./f-ext-xform`);t.exports=class extends r{constructor(){super(),this.map={"xm:f":this.fExtXform=new i}}get tag(){return`x14:cfvo`}render(e,t){e.openNode(this.tag,{type:t.type}),t.value!==void 0&&this.fExtXform.render(e,t.value),e.closeNode()}createNewModel(e){return{type:e.attributes.type}}onParserClose(e,t){switch(e){case`xm:f`:this.model.value=t.model?parseFloat(t.model):0}}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(e,t,n){let r=e(`../../composite-xform`),i=e(`./sqref-ext-xform`),a=e(`./cf-rule-ext-xform`);t.exports=class extends r{constructor(){super(),this.map={"xm:sqref":this.sqRef=new i,"x14:cfRule":this.cfRule=new a}}get tag(){return`x14:conditionalFormatting`}prepare(e,t){e.rules.forEach(e=>{this.cfRule.prepare(e,t)})}render(e,t){t.rules.some(a.isExt)&&(e.openNode(this.tag,{"xmlns:xm":`http://schemas.microsoft.com/office/excel/2006/main`}),t.rules.filter(a.isExt).forEach(t=>this.cfRule.render(e,t)),this.sqRef.render(e,t.ref),e.closeNode())}createNewModel(){return{rules:[]}}onParserClose(e,t){switch(e){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,t,n){let r=e(`../../composite-xform`),i=e(`./cf-rule-ext-xform`),a=e(`./conditional-formatting-ext-xform`);t.exports=class extends r{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new a}}get tag(){return`x14:conditionalFormattings`}hasContent(e){return e.hasExtContent===void 0&&(e.hasExtContent=e.some(e=>e.rules.some(i.isExt))),e.hasExtContent}prepare(e,t){e.forEach(e=>{this.cfXform.prepare(e,t)})}render(e,t){this.hasContent(t)&&(e.openNode(this.tag),t.forEach(t=>this.cfXform.render(e,t)),e.closeNode())}createNewModel(){return[]}onParserClose(e,t){this.model.push(t.model)}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(e,t,n){let r=e(`../../base-xform`),i=e(`../../composite-xform`),a=e(`../../style/color-xform`),o=e(`./cfvo-ext-xform`);t.exports=class extends i{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new o,"x14:borderColor":this.borderColorXform=new a(`x14:borderColor`),"x14:negativeBorderColor":this.negativeBorderColorXform=new a(`x14:negativeBorderColor`),"x14:negativeFillColor":this.negativeFillColorXform=new a(`x14:negativeFillColor`),"x14:axisColor":this.axisColorXform=new a(`x14:axisColor`)}}static isExt(e){return!e.gradient}get tag(){return`x14:dataBar`}render(e,t){e.openNode(this.tag,{minLength:r.toIntAttribute(t.minLength,0,!0),maxLength:r.toIntAttribute(t.maxLength,100,!0),border:r.toBoolAttribute(t.border,!1),gradient:r.toBoolAttribute(t.gradient,!0),negativeBarColorSameAsPositive:r.toBoolAttribute(t.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:r.toBoolAttribute(t.negativeBarBorderColorSameAsPositive,!0),axisPosition:r.toAttribute(t.axisPosition,`auto`),direction:r.toAttribute(t.direction,`leftToRight`)}),t.cfvo.forEach(t=>{this.cfvoXform.render(e,t)}),this.borderColorXform.render(e,t.borderColor),this.negativeBorderColorXform.render(e,t.negativeBorderColor),this.negativeFillColorXform.render(e,t.negativeFillColor),this.axisColorXform.render(e,t.axisColor),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{cfvo:[],minLength:r.toIntValue(t.minLength,0),maxLength:r.toIntValue(t.maxLength,100),border:r.toBoolValue(t.border,!1),gradient:r.toBoolValue(t.gradient,!0),negativeBarColorSameAsPositive:r.toBoolValue(t.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:r.toBoolValue(t.negativeBarBorderColorSameAsPositive,!0),axisPosition:r.toStringValue(t.axisPosition,`auto`),direction:r.toStringValue(t.direction,`leftToRight`)}}onParserClose(e,t){let[,n]=e.split(`:`);switch(n){case`cfvo`:this.model.cfvo.push(t.model);break;default:this.model[n]=t.model}}}},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(e,t,n){let r=e(`../../base-xform`);t.exports=class extends r{get tag(){return`xm:f`}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=``}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],81:[function(e,t,n){let r=e(`../../base-xform`),i=e(`../../composite-xform`),a=e(`./cfvo-ext-xform`),o=e(`./cf-icon-ext-xform`);t.exports=class extends i{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new a,"x14:cfIcon":this.cfIconXform=new o}}get tag(){return`x14:iconSet`}render(e,t){e.openNode(this.tag,{iconSet:r.toStringAttribute(t.iconSet),reverse:r.toBoolAttribute(t.reverse,!1),showValue:r.toBoolAttribute(t.showValue,!0),custom:r.toBoolAttribute(t.icons,!1)}),t.cfvo.forEach(t=>{this.cfvoXform.render(e,t)}),t.icons&&t.icons.forEach((t,n)=>{t.iconId=n,this.cfIconXform.render(e,t)}),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{cfvo:[],iconSet:r.toStringValue(t.iconSet,`3TrafficLights`),reverse:r.toBoolValue(t.reverse,!1),showValue:r.toBoolValue(t.showValue,!0)}}onParserClose(e,t){let[,n]=e.split(`:`);switch(n){case`cfvo`:this.model.cfvo.push(t.model);break;case`cfIcon`:this.model.icons||(this.model.icons=[]),this.model.icons.push(t.model);break;default:this.model[n]=t.model}}}},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(e,t,n){let r=e(`../../base-xform`);t.exports=class extends r{get tag(){return`xm:sqref`}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=``}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],83:[function(e,t,n){let r=e(`../../base-xform`),i=e(`../../composite-xform`),a=e(`../../../../doc/range`),o=e(`./databar-xform`),s=e(`./ext-lst-ref-xform`),c=e(`./formula-xform`),l=e(`./color-scale-xform`),u=e(`./icon-set-xform`),d={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},f=e=>{let{type:t,operator:n}=e;switch(t){case`containsText`:case`containsBlanks`:case`notContainsBlanks`:case`containsErrors`:case`notContainsErrors`:return{type:`containsText`,operator:t};default:return{type:t,operator:n}}};class p extends i{constructor(){super(),this.map={dataBar:this.databarXform=new o,extLst:this.extLstRefXform=new s,formula:this.formulaXform=new c,colorScale:this.colorScaleXform=new l,iconSet:this.iconSetXform=new u}}get tag(){return`cfRule`}static isPrimitive(e){return e.type!==`iconSet`||!e.custom&&!d[e.iconSet]}render(e,t){switch(t.type){case`expression`:this.renderExpression(e,t);break;case`cellIs`:this.renderCellIs(e,t);break;case`top10`:this.renderTop10(e,t);break;case`aboveAverage`:this.renderAboveAverage(e,t);break;case`dataBar`:this.renderDataBar(e,t);break;case`colorScale`:this.renderColorScale(e,t);break;case`iconSet`:this.renderIconSet(e,t);break;case`containsText`:this.renderText(e,t);break;case`timePeriod`:this.renderTimePeriod(e,t)}}renderExpression(e,t){e.openNode(this.tag,{type:`expression`,dxfId:t.dxfId,priority:t.priority}),this.formulaXform.render(e,t.formulae[0]),e.closeNode()}renderCellIs(e,t){e.openNode(this.tag,{type:`cellIs`,dxfId:t.dxfId,priority:t.priority,operator:t.operator}),t.formulae.forEach(t=>{this.formulaXform.render(e,t)}),e.closeNode()}renderTop10(e,t){e.leafNode(this.tag,{type:`top10`,dxfId:t.dxfId,priority:t.priority,percent:r.toBoolAttribute(t.percent,!1),bottom:r.toBoolAttribute(t.bottom,!1),rank:r.toIntValue(t.rank,10,!0)})}renderAboveAverage(e,t){e.leafNode(this.tag,{type:`aboveAverage`,dxfId:t.dxfId,priority:t.priority,aboveAverage:r.toBoolAttribute(t.aboveAverage,!0)})}renderDataBar(e,t){e.openNode(this.tag,{type:`dataBar`,priority:t.priority}),this.databarXform.render(e,t),this.extLstRefXform.render(e,t),e.closeNode()}renderColorScale(e,t){e.openNode(this.tag,{type:`colorScale`,priority:t.priority}),this.colorScaleXform.render(e,t),e.closeNode()}renderIconSet(e,t){p.isPrimitive(t)&&(e.openNode(this.tag,{type:`iconSet`,priority:t.priority}),this.iconSetXform.render(e,t),e.closeNode())}renderText(e,t){e.openNode(this.tag,{type:t.operator,dxfId:t.dxfId,priority:t.priority,operator:r.toStringAttribute(t.operator,`containsText`)});let n=(e=>{if(e.formulae&&e.formulae[0])return e.formulae[0];let{tl:t}=new a(e.ref);switch(e.operator){case`containsText`:return`NOT(ISERROR(SEARCH("${e.text}",${t})))`;case`containsBlanks`:return`LEN(TRIM(${t}))=0`;case`notContainsBlanks`:return`LEN(TRIM(${t}))>0`;case`containsErrors`:return`ISERROR(${t})`;case`notContainsErrors`:return`NOT(ISERROR(${t}))`;default:return}})(t);n&&this.formulaXform.render(e,n),e.closeNode()}renderTimePeriod(e,t){e.openNode(this.tag,{type:`timePeriod`,dxfId:t.dxfId,priority:t.priority,timePeriod:t.timePeriod});let n=(e=>{if(e.formulae&&e.formulae[0])return e.formulae[0];let{tl:t}=new a(e.ref);switch(e.timePeriod){case`thisWeek`:return`AND(TODAY()-ROUNDDOWN(${t},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${t},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case`lastWeek`:return`AND(TODAY()-ROUNDDOWN(${t},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${t},0)<(WEEKDAY(TODAY())+7))`;case`nextWeek`:return`AND(ROUNDDOWN(${t},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${t},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case`yesterday`:return`FLOOR(${t},1)=TODAY()-1`;case`today`:return`FLOOR(${t},1)=TODAY()`;case`tomorrow`:return`FLOOR(${t},1)=TODAY()+1`;case`last7Days`:return`AND(TODAY()-FLOOR(${t},1)<=6,FLOOR(${t},1)<=TODAY())`;case`lastMonth`:return`AND(MONTH(${t})=MONTH(EDATE(TODAY(),0-1)),YEAR(${t})=YEAR(EDATE(TODAY(),0-1)))`;case`thisMonth`:return`AND(MONTH(${t})=MONTH(TODAY()),YEAR(${t})=YEAR(TODAY()))`;case`nextMonth`:return`AND(MONTH(${t})=MONTH(EDATE(TODAY(),0+1)),YEAR(${t})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(t);n&&this.formulaXform.render(e,n),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{...f(t),dxfId:r.toIntValue(t.dxfId),priority:r.toIntValue(t.priority),timePeriod:t.timePeriod,percent:r.toBoolValue(t.percent),bottom:r.toBoolValue(t.bottom),rank:r.toIntValue(t.rank),aboveAverage:r.toBoolValue(t.aboveAverage)}}onParserClose(e,t){switch(e){case`dataBar`:case`extLst`:case`colorScale`:case`iconSet`:Object.assign(this.model,t.model);break;case`formula`:this.model.formulae=this.model.formulae||[],this.model.formulae.push(t.model)}}}t.exports=p},{"../../../../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,t,n){let r=e(`../../base-xform`);t.exports=class extends r{get tag(){return`cfvo`}render(e,t){e.leafNode(this.tag,{type:t.type,val:t.value})}parseOpen(e){this.model={type:e.attributes.type,value:r.toFloatValue(e.attributes.val)}}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],85:[function(e,t,n){let r=e(`../../composite-xform`),i=e(`../../style/color-xform`),a=e(`./cfvo-xform`);t.exports=class extends r{constructor(){super(),this.map={cfvo:this.cfvoXform=new a,color:this.colorXform=new i}}get tag(){return`colorScale`}render(e,t){e.openNode(this.tag),t.cfvo.forEach(t=>{this.cfvoXform.render(e,t)}),t.color.forEach(t=>{this.colorXform.render(e,t)}),e.closeNode()}createNewModel(e){return{cfvo:[],color:[]}}onParserClose(e,t){this.model[e].push(t.model)}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(e,t,n){let r=e(`../../composite-xform`),i=e(`./cf-rule-xform`);t.exports=class extends r{constructor(){super(),this.map={cfRule:new i}}get tag(){return`conditionalFormatting`}render(e,t){t.rules.some(i.isPrimitive)&&(e.openNode(this.tag,{sqref:t.ref}),t.rules.forEach(n=>{i.isPrimitive(n)&&(n.ref=t.ref,this.map.cfRule.render(e,n))}),e.closeNode())}createNewModel(e){let{attributes:t}=e;return{ref:t.sqref,rules:[]}}onParserClose(e,t){this.model.rules.push(t.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(e,t,n){let r=e(`../../base-xform`),i=e(`./conditional-formatting-xform`);t.exports=class extends r{constructor(){super(),this.cfXform=new i}get tag(){return`conditionalFormatting`}reset(){this.model=[]}prepare(e,t){let n=e.reduce((e,t)=>Math.max(e,...t.rules.map(e=>e.priority||0)),1);e.forEach(e=>{e.rules.forEach(e=>{e.priority||=n++,e.style&&(e.dxfId=t.styles.addDxfStyle(e.style))})})}render(e,t){t.forEach(t=>{this.cfXform.render(e,t)})}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case`conditionalFormatting`:return this.parser=this.cfXform,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!!this.parser&&(!!this.parser.parseClose(e)||(this.model.push(this.parser.model),this.parser=void 0,!1))}reconcile(e,t){e.forEach(e=>{e.rules.forEach(e=>{e.dxfId!==void 0&&(e.style=t.styles.getDxfStyle(e.dxfId),delete e.dxfId)})})}}},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(e,t,n){let r=e(`../../composite-xform`),i=e(`../../style/color-xform`),a=e(`./cfvo-xform`);t.exports=class extends r{constructor(){super(),this.map={cfvo:this.cfvoXform=new a,color:this.colorXform=new i}}get tag(){return`dataBar`}render(e,t){e.openNode(this.tag),t.cfvo.forEach(t=>{this.cfvoXform.render(e,t)}),this.colorXform.render(e,t.color),e.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(e,t){switch(e){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,t,n){let r=e(`../../base-xform`),i=e(`../../composite-xform`);class a extends r{get tag(){return`x14:id`}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=``}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}class o extends i{constructor(){super(),this.map={"x14:id":this.idXform=new a}}get tag(){return`ext`}render(e,t){e.openNode(this.tag,{uri:`{B025F937-C7B1-47D3-B67F-A62EFF666E3E}`,"xmlns:x14":`http://schemas.microsoft.com/office/spreadsheetml/2009/9/main`}),this.idXform.render(e,t.x14Id),e.closeNode()}createNewModel(){return{}}onParserClose(e,t){this.model.x14Id=t.model}}t.exports=class extends i{constructor(){super(),this.map={ext:new o}}get tag(){return`extLst`}render(e,t){e.openNode(this.tag),this.map.ext.render(e,t),e.closeNode()}createNewModel(){return{}}onParserClose(e,t){Object.assign(this.model,t.model)}}},{"../../base-xform":32,"../../composite-xform":48}],90:[function(e,t,n){let r=e(`../../base-xform`);t.exports=class extends r{get tag(){return`formula`}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=``}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],91:[function(e,t,n){let r=e(`../../base-xform`),i=e(`../../composite-xform`),a=e(`./cfvo-xform`);t.exports=class extends i{constructor(){super(),this.map={cfvo:this.cfvoXform=new a}}get tag(){return`iconSet`}render(e,t){e.openNode(this.tag,{iconSet:r.toStringAttribute(t.iconSet,`3TrafficLights`),reverse:r.toBoolAttribute(t.reverse,!1),showValue:r.toBoolAttribute(t.showValue,!0)}),t.cfvo.forEach(t=>{this.cfvoXform.render(e,t)}),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{iconSet:r.toStringValue(t.iconSet,`3TrafficLights`),reverse:r.toBoolValue(t.reverse),showValue:r.toBoolValue(t.showValue),cfvo:[]}}onParserClose(e,t){this.model[e].push(t.model)}}},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(e,t,n){let r=e(`../../../utils/utils`),i=e(`../base-xform`);t.exports=class extends i{get tag(){return`col`}prepare(e,t){let n=t.styles.addStyleModel(e.style||{});n&&(e.styleId=n)}render(e,t){e.openNode(`col`),e.addAttribute(`min`,t.min),e.addAttribute(`max`,t.max),t.width&&e.addAttribute(`width`,t.width),t.styleId&&e.addAttribute(`style`,t.styleId),t.hidden&&e.addAttribute(`hidden`,`1`),t.bestFit&&e.addAttribute(`bestFit`,`1`),t.outlineLevel&&e.addAttribute(`outlineLevel`,t.outlineLevel),t.collapsed&&e.addAttribute(`collapsed`,`1`),e.addAttribute(`customWidth`,`1`),e.closeNode()}parseOpen(e){if(e.name===`col`){let t=this.model={min:parseInt(e.attributes.min||`0`,10),max:parseInt(e.attributes.max||`0`,10),width:e.attributes.width===void 0?void 0:parseFloat(e.attributes.width||`0`)};return e.attributes.style&&(t.styleId=parseInt(e.attributes.style,10)),r.parseBoolean(e.attributes.hidden)&&(t.hidden=!0),r.parseBoolean(e.attributes.bestFit)&&(t.bestFit=!0),e.attributes.outlineLevel&&(t.outlineLevel=parseInt(e.attributes.outlineLevel,10)),r.parseBoolean(e.attributes.collapsed)&&(t.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(e,t){e.styleId&&(e.style=t.styles.getStyleModel(e.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(e,t,n){let r=e(`../../../utils/under-dash`),i=e(`../../../utils/utils`),a=e(`../../../utils/col-cache`),o=e(`../base-xform`),s=e(`../../../doc/range`);function c(e,t,n,r){let i=t[n];i===void 0?r!==void 0&&(e[n]=r):e[n]=i}function l(e,t,n,r){let a=t[n];a===void 0?r!==void 0&&(e[n]=r):e[n]=i.parseBoolean(a)}t.exports=class extends o{get tag(){return`dataValidations`}render(e,t){let n=function(e){let t=r.map(e,(e,t)=>({address:t,dataValidation:e,marked:!1})).sort((e,t)=>r.strcmp(e.address,t.address)),n=r.keyBy(t,`address`),i=(t,n,i)=>{for(let o=0;o<n;o++){let n=a.encodeAddress(t.row+o,i);if(!e[n]||!r.isEqual(e[t.address],e[n]))return!1}return!0};return t.map(t=>{if(!t.marked){let o=a.decodeEx(t.address);if(o.dimensions)return n[o.dimensions].marked=!0,{...t.dataValidation,sqref:t.address};let s=1,c=a.encodeAddress(o.row+s,o.col);for(;e[c]&&r.isEqual(t.dataValidation,e[c]);)s++,c=a.encodeAddress(o.row+s,o.col);let l=1;for(;i(o,s,o.col+l);)l++;for(let e=0;e<s;e++)for(let t=0;t<l;t++)c=a.encodeAddress(o.row+e,o.col+t),n[c].marked=!0;if(s>1||l>1){let e=o.row+(s-1),n=o.col+(l-1);return{...t.dataValidation,sqref:`${t.address}:${a.encodeAddress(e,n)}`}}return{...t.dataValidation,sqref:t.address}}return null}).filter(Boolean)}(t);n.length&&(e.openNode(`dataValidations`,{count:n.length}),n.forEach(t=>{e.openNode(`dataValidation`),t.type!==`any`&&(e.addAttribute(`type`,t.type),t.operator&&t.type!==`list`&&t.operator!==`between`&&e.addAttribute(`operator`,t.operator),t.allowBlank&&e.addAttribute(`allowBlank`,`1`)),t.showInputMessage&&e.addAttribute(`showInputMessage`,`1`),t.promptTitle&&e.addAttribute(`promptTitle`,t.promptTitle),t.prompt&&e.addAttribute(`prompt`,t.prompt),t.showErrorMessage&&e.addAttribute(`showErrorMessage`,`1`),t.errorStyle&&e.addAttribute(`errorStyle`,t.errorStyle),t.errorTitle&&e.addAttribute(`errorTitle`,t.errorTitle),t.error&&e.addAttribute(`error`,t.error),e.addAttribute(`sqref`,t.sqref),(t.formulae||[]).forEach((n,r)=>{e.openNode(`formula`+(r+1)),t.type===`date`?e.writeText(i.dateToExcel(new Date(n))):e.writeText(n),e.closeNode()}),e.closeNode()}),e.closeNode())}parseOpen(e){switch(e.name){case`dataValidations`:return this.model={},!0;case`dataValidation`:{this._address=e.attributes.sqref;let t={type:e.attributes.type||`any`,formulae:[]};switch(e.attributes.type&&l(t,e.attributes,`allowBlank`),l(t,e.attributes,`showInputMessage`),l(t,e.attributes,`showErrorMessage`),t.type){case`any`:case`list`:case`custom`:break;default:c(t,e.attributes,`operator`,`between`)}return c(t,e.attributes,`promptTitle`),c(t,e.attributes,`prompt`),c(t,e.attributes,`errorStyle`),c(t,e.attributes,`errorTitle`),c(t,e.attributes,`error`),this._dataValidation=t,!0}case`formula1`:case`formula2`:return this._formula=[],!0;default:return!1}}parseText(e){this._formula&&this._formula.push(e)}parseClose(e){switch(e){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(e=>{e.includes(`:`)?new s(e).forEachAddress(e=>{this.model[e]=this._dataValidation}):this.model[e]=this._dataValidation}),!0;case`formula1`:case`formula2`:{let e=this._formula.join(``);switch(this._dataValidation.type){case`whole`:case`textLength`:e=parseInt(e,10);break;case`decimal`:e=parseFloat(e);break;case`date`:e=i.excelToDate(parseFloat(e))}return this._dataValidation.formulae.push(e),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,t,n){let r=e(`../base-xform`);t.exports=class extends r{get tag(){return`dimension`}render(e,t){t&&e.leafNode(`dimension`,{ref:t})}parseOpen(e){return e.name===`dimension`&&(this.model=e.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(e,t,n){let r=e(`../base-xform`);t.exports=class extends r{get tag(){return`drawing`}render(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}parseOpen(e){switch(e.name){case this.tag:return this.model={rId:e.attributes[`r:id`]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(e,t,n){let r=e(`../composite-xform`),i=e(`./cf-ext/conditional-formattings-ext-xform`);class a extends r{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new i}}get tag(){return`ext`}hasContent(e){return this.conditionalFormattings.hasContent(e.conditionalFormattings)}prepare(e,t){this.conditionalFormattings.prepare(e.conditionalFormattings,t)}render(e,t){e.openNode(`ext`,{uri:`{78C0D931-6437-407d-A8EE-F0AAD7539E65}`,"xmlns:x14":`http://schemas.microsoft.com/office/spreadsheetml/2009/9/main`}),this.conditionalFormattings.render(e,t.conditionalFormattings),e.closeNode()}createNewModel(){return{}}onParserClose(e,t){this.model[e]=t.model}}t.exports=class extends r{constructor(){super(),this.map={ext:this.ext=new a}}get tag(){return`extLst`}prepare(e,t){this.ext.prepare(e,t)}hasContent(e){return this.ext.hasContent(e)}render(e,t){this.hasContent(t)&&(e.openNode(`extLst`),this.ext.render(e,t),e.closeNode())}createNewModel(){return{}}onParserClose(e,t){Object.assign(this.model,t.model)}}},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(e,t,n){let r=e(`../base-xform`);t.exports=class extends r{get tag(){return`headerFooter`}render(e,t){if(t){e.addRollback();let n=!1;e.openNode(`headerFooter`),t.differentFirst&&(e.addAttribute(`differentFirst`,`1`),n=!0),t.differentOddEven&&(e.addAttribute(`differentOddEven`,`1`),n=!0),t.oddHeader&&typeof t.oddHeader==`string`&&(e.leafNode(`oddHeader`,null,t.oddHeader),n=!0),t.oddFooter&&typeof t.oddFooter==`string`&&(e.leafNode(`oddFooter`,null,t.oddFooter),n=!0),t.evenHeader&&typeof t.evenHeader==`string`&&(e.leafNode(`evenHeader`,null,t.evenHeader),n=!0),t.evenFooter&&typeof t.evenFooter==`string`&&(e.leafNode(`evenFooter`,null,t.evenFooter),n=!0),t.firstHeader&&typeof t.firstHeader==`string`&&(e.leafNode(`firstHeader`,null,t.firstHeader),n=!0),t.firstFooter&&typeof t.firstFooter==`string`&&(e.leafNode(`firstFooter`,null,t.firstFooter),n=!0),n?(e.closeNode(),e.commit()):e.rollback()}}parseOpen(e){switch(e.name){case`headerFooter`:return this.model={},e.attributes.differentFirst&&(this.model.differentFirst=parseInt(e.attributes.differentFirst,0)===1),e.attributes.differentOddEven&&(this.model.differentOddEven=parseInt(e.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(e){switch(this.currentNode){case`oddHeader`:this.model.oddHeader=e;break;case`oddFooter`:this.model.oddFooter=e;break;case`evenHeader`:this.model.evenHeader=e;break;case`evenFooter`:this.model.evenFooter=e;break;case`firstHeader`:this.model.firstHeader=e;break;case`firstFooter`:this.model.firstFooter=e}}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,t,n){let r=e(`../base-xform`);t.exports=class extends r{get tag(){return`hyperlink`}render(e,t){this.isInternalLink(t)?e.leafNode(`hyperlink`,{ref:t.address,"r:id":t.rId,tooltip:t.tooltip,location:t.target}):e.leafNode(`hyperlink`,{ref:t.address,"r:id":t.rId,tooltip:t.tooltip})}parseOpen(e){return e.name===`hyperlink`&&(this.model={address:e.attributes.ref,rId:e.attributes[`r:id`],tooltip:e.attributes.tooltip},e.attributes.location&&(this.model.target=e.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(e){return e.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(e.target)}}},{"../base-xform":32}],99:[function(e,t,n){let r=e(`../base-xform`);t.exports=class extends r{get tag(){return`mergeCell`}render(e,t){e.leafNode(`mergeCell`,{ref:t})}parseOpen(e){return e.name===`mergeCell`&&(this.model=e.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(e,t,n){let r=e(`../../../utils/under-dash`),i=e(`../../../doc/range`),a=e(`../../../utils/col-cache`),o=e(`../../../doc/enums`);t.exports=class{constructor(){this.merges={}}add(e){if(this.merges[e.master])this.merges[e.master].expandToAddress(e.address);else{let t=`${e.master}:${e.address}`;this.merges[e.master]=new i(t)}}get mergeCells(){return r.map(this.merges,e=>e.range)}reconcile(e,t){r.each(e,e=>{let n=a.decode(e);for(let e=n.top;e<=n.bottom;e++){let r=t[e-1];for(let t=n.left;t<=n.right;t++){let i=r.cells[t-1];i?i.type===o.ValueType.Merge&&(i.master=n.tl):r.cells[t]={type:o.ValueType.Null,address:a.encodeAddress(e,t)}}}})}getMasterAddress(e){let t=this.hash[e];return t&&t.tl}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(e,t,n){let r=e(`../base-xform`),i=e=>e!==void 0;t.exports=class extends r{get tag(){return`outlinePr`}render(e,t){return!(!t||!i(t.summaryBelow)&&!i(t.summaryRight))&&(e.leafNode(this.tag,{summaryBelow:i(t.summaryBelow)?Number(t.summaryBelow):void 0,summaryRight:i(t.summaryRight)?Number(t.summaryRight):void 0}),!0)}parseOpen(e){return e.name===this.tag&&(this.model={summaryBelow:i(e.attributes.summaryBelow)?!!Number(e.attributes.summaryBelow):void 0,summaryRight:i(e.attributes.summaryRight)?!!Number(e.attributes.summaryRight):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(e,t,n){let r=e(`../base-xform`);t.exports=class extends r{get tag(){return`brk`}render(e,t){e.leafNode(`brk`,t)}parseOpen(e){return e.name===`brk`&&(this.model=e.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(e,t,n){let r=e(`../../../utils/under-dash`),i=e(`../base-xform`);t.exports=class extends i{get tag(){return`pageMargins`}render(e,t){if(t){let n={left:t.left,right:t.right,top:t.top,bottom:t.bottom,header:t.header,footer:t.footer};r.some(n,e=>e!==void 0)&&e.leafNode(this.tag,n)}}parseOpen(e){switch(e.name){case this.tag:return this.model={left:parseFloat(e.attributes.left||.7),right:parseFloat(e.attributes.right||.7),top:parseFloat(e.attributes.top||.75),bottom:parseFloat(e.attributes.bottom||.75),header:parseFloat(e.attributes.header||.3),footer:parseFloat(e.attributes.footer||.3)},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(e,t,n){let r=e(`../base-xform`);t.exports=class extends r{get tag(){return`pageSetUpPr`}render(e,t){return!(!t||!t.fitToPage)&&(e.leafNode(this.tag,{fitToPage:t.fitToPage?`1`:void 0}),!0)}parseOpen(e){return e.name===this.tag&&(this.model={fitToPage:e.attributes.fitToPage===`1`},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(e,t,n){let r=e(`../../../utils/under-dash`),i=e(`../base-xform`);function a(e){return e?`1`:void 0}function o(e){switch(e){case`overThenDown`:return e;default:return}}function s(e){switch(e){case`atEnd`:case`asDisplyed`:return e;default:return}}function c(e){switch(e){case`dash`:case`blank`:case`NA`:return e;default:return}}t.exports=class extends i{get tag(){return`pageSetup`}render(e,t){if(t){let n={paperSize:t.paperSize,orientation:t.orientation,horizontalDpi:t.horizontalDpi,verticalDpi:t.verticalDpi,pageOrder:o(t.pageOrder),blackAndWhite:a(t.blackAndWhite),draft:a(t.draft),cellComments:s(t.cellComments),errors:c(t.errors),scale:t.scale,fitToWidth:t.fitToWidth,fitToHeight:t.fitToHeight,firstPageNumber:t.firstPageNumber,useFirstPageNumber:a(t.firstPageNumber),usePrinterDefaults:a(t.usePrinterDefaults),copies:t.copies};r.some(n,e=>e!==void 0)&&e.leafNode(this.tag,n)}}parseOpen(e){switch(e.name){case this.tag:return this.model={paperSize:(t=e.attributes.paperSize,t===void 0?void 0:parseInt(t,10)),orientation:e.attributes.orientation||`portrait`,horizontalDpi:parseInt(e.attributes.horizontalDpi||`4294967295`,10),verticalDpi:parseInt(e.attributes.verticalDpi||`4294967295`,10),pageOrder:e.attributes.pageOrder||`downThenOver`,blackAndWhite:e.attributes.blackAndWhite===`1`,draft:e.attributes.draft===`1`,cellComments:e.attributes.cellComments||`None`,errors:e.attributes.errors||`displayed`,scale:parseInt(e.attributes.scale||`100`,10),fitToWidth:parseInt(e.attributes.fitToWidth||`1`,10),fitToHeight:parseInt(e.attributes.fitToHeight||`1`,10),firstPageNumber:parseInt(e.attributes.firstPageNumber||`1`,10),useFirstPageNumber:e.attributes.useFirstPageNumber===`1`,usePrinterDefaults:e.attributes.usePrinterDefaults===`1`,copies:parseInt(e.attributes.copies||`1`,10)},!0;default:return!1}var t}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(e,t,n){let r=e(`../base-xform`);t.exports=class extends r{get tag(){return`picture`}render(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}parseOpen(e){switch(e.name){case this.tag:return this.model={rId:e.attributes[`r:id`]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(e,t,n){let r=e(`../../../utils/under-dash`),i=e(`../base-xform`);function a(e){return e?`1`:void 0}t.exports=class extends i{get tag(){return`printOptions`}render(e,t){if(t){let n={headings:a(t.showRowColHeaders),gridLines:a(t.showGridLines),horizontalCentered:a(t.horizontalCentered),verticalCentered:a(t.verticalCentered)};r.some(n,e=>e!==void 0)&&e.leafNode(this.tag,n)}}parseOpen(e){switch(e.name){case this.tag:return this.model={showRowColHeaders:e.attributes.headings===`1`,showGridLines:e.attributes.gridLines===`1`,horizontalCentered:e.attributes.horizontalCentered===`1`,verticalCentered:e.attributes.verticalCentered===`1`},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(e,t,n){let r=e(`./page-breaks-xform`),i=e(`../list-xform`);t.exports=class extends i{constructor(){super({tag:`rowBreaks`,count:!0,childXform:new r})}render(e,t){if(t&&t.length){e.openNode(this.tag,this.$),this.count&&(e.addAttribute(this.$count,t.length),e.addAttribute(`manualBreakCount`,t.length));let{childXform:n}=this;t.forEach(t=>{n.render(e,t)}),e.closeNode()}else this.empty&&e.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(e,t,n){let r=e(`../base-xform`),i=e(`../../../utils/utils`),a=e(`./cell-xform`);t.exports=class extends r{constructor(e){super(),this.maxItems=e&&e.maxItems,this.map={c:new a}}get tag(){return`row`}prepare(e,t){let n=t.styles.addStyleModel(e.style);n&&(e.styleId=n);let r=this.map.c;e.cells.forEach(e=>{r.prepare(e,t)})}render(e,t,n){e.openNode(`row`),e.addAttribute(`r`,t.number),t.height&&(e.addAttribute(`ht`,t.height),e.addAttribute(`customHeight`,`1`)),t.hidden&&e.addAttribute(`hidden`,`1`),t.min>0&&t.max>0&&t.min<=t.max&&e.addAttribute(`spans`,`${t.min}:${t.max}`),t.styleId&&(e.addAttribute(`s`,t.styleId),e.addAttribute(`customFormat`,`1`)),e.addAttribute(`x14ac:dyDescent`,`0.25`),t.outlineLevel&&e.addAttribute(`outlineLevel`,t.outlineLevel),t.collapsed&&e.addAttribute(`collapsed`,`1`);let r=this.map.c;t.cells.forEach(t=>{r.render(e,t,n)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===`row`){this.numRowsSeen+=1;let t=e.attributes.spans?e.attributes.spans.split(`:`).map(e=>parseInt(e,10)):[void 0,void 0],n=this.model={number:parseInt(e.attributes.r,10),min:t[0],max:t[1],cells:[]};return e.attributes.s&&(n.styleId=parseInt(e.attributes.s,10)),i.parseBoolean(e.attributes.hidden)&&(n.hidden=!0),i.parseBoolean(e.attributes.bestFit)&&(n.bestFit=!0),e.attributes.ht&&(n.height=parseFloat(e.attributes.ht)),e.attributes.outlineLevel&&(n.outlineLevel=parseInt(e.attributes.outlineLevel,10)),i.parseBoolean(e.attributes.collapsed)&&(n.collapsed=!0),!0}return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(e,t){e.style=e.styleId?t.styles.getStyleModel(e.styleId):{},e.styleId!==void 0&&(e.styleId=void 0);let n=this.map.c;e.cells.forEach(e=>{n.reconcile(e,t)})}}},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(e,t,n){let r=e(`../../../utils/under-dash`),i=e(`../base-xform`);t.exports=class extends i{get tag(){return`sheetFormatPr`}render(e,t){if(t){let n={defaultRowHeight:t.defaultRowHeight,outlineLevelRow:t.outlineLevelRow,outlineLevelCol:t.outlineLevelCol,"x14ac:dyDescent":t.dyDescent};t.defaultColWidth&&(n.defaultColWidth=t.defaultColWidth),t.defaultRowHeight&&t.defaultRowHeight===15||(n.customHeight=`1`),r.some(n,e=>e!==void 0)&&e.leafNode(`sheetFormatPr`,n)}}parseOpen(e){return e.name===`sheetFormatPr`&&(this.model={defaultRowHeight:parseFloat(e.attributes.defaultRowHeight||`0`),dyDescent:parseFloat(e.attributes[`x14ac:dyDescent`]||`0`),outlineLevelRow:parseInt(e.attributes.outlineLevelRow||`0`,10),outlineLevelCol:parseInt(e.attributes.outlineLevelCol||`0`,10)},e.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(e.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(e,t,n){let r=e(`../base-xform`),i=e(`../style/color-xform`),a=e(`./page-setup-properties-xform`),o=e(`./outline-properties-xform`);t.exports=class extends r{constructor(){super(),this.map={tabColor:new i(`tabColor`),pageSetUpPr:new a,outlinePr:new o}}get tag(){return`sheetPr`}render(e,t){if(t){e.addRollback(),e.openNode(`sheetPr`);let n=!1;n=this.map.tabColor.render(e,t.tabColor)||n,n=this.map.pageSetUpPr.render(e,t.pageSetup)||n,n=this.map.outlinePr.render(e,t.outlineProperties)||n,n?(e.closeNode(),e.commit()):e.rollback()}}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.reset(),!0):!!this.map[e.name]&&(this.parser=this.map[e.name],this.parser.parseOpen(e),!0)}parseText(e){return!!this.parser&&(this.parser.parseText(e),!0)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(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,t,n){let r=e(`../../../utils/under-dash`),i=e(`../base-xform`);function a(e,t){return e?t:void 0}function o(e,t){return e===t||void 0}t.exports=class extends i{get tag(){return`sheetProtection`}render(e,t){if(t){let n={sheet:a(t.sheet,`1`),selectLockedCells:!1===t.selectLockedCells?`1`:void 0,selectUnlockedCells:!1===t.selectUnlockedCells?`1`:void 0,formatCells:a(t.formatCells,`0`),formatColumns:a(t.formatColumns,`0`),formatRows:a(t.formatRows,`0`),insertColumns:a(t.insertColumns,`0`),insertRows:a(t.insertRows,`0`),insertHyperlinks:a(t.insertHyperlinks,`0`),deleteColumns:a(t.deleteColumns,`0`),deleteRows:a(t.deleteRows,`0`),sort:a(t.sort,`0`),autoFilter:a(t.autoFilter,`0`),pivotTables:a(t.pivotTables,`0`)};t.sheet&&(n.algorithmName=t.algorithmName,n.hashValue=t.hashValue,n.saltValue=t.saltValue,n.spinCount=t.spinCount,n.objects=a(!1===t.objects,`1`),n.scenarios=a(!1===t.scenarios,`1`)),r.some(n,e=>e!==void 0)&&e.leafNode(this.tag,n)}}parseOpen(e){switch(e.name){case this.tag:return this.model={sheet:o(e.attributes.sheet,`1`),objects:e.attributes.objects!==`1`&&void 0,scenarios:e.attributes.scenarios!==`1`&&void 0,selectLockedCells:e.attributes.selectLockedCells!==`1`&&void 0,selectUnlockedCells:e.attributes.selectUnlockedCells!==`1`&&void 0,formatCells:o(e.attributes.formatCells,`0`),formatColumns:o(e.attributes.formatColumns,`0`),formatRows:o(e.attributes.formatRows,`0`),insertColumns:o(e.attributes.insertColumns,`0`),insertRows:o(e.attributes.insertRows,`0`),insertHyperlinks:o(e.attributes.insertHyperlinks,`0`),deleteColumns:o(e.attributes.deleteColumns,`0`),deleteRows:o(e.attributes.deleteRows,`0`),sort:o(e.attributes.sort,`0`),autoFilter:o(e.attributes.autoFilter,`0`),pivotTables:o(e.attributes.pivotTables,`0`)},e.attributes.algorithmName&&(this.model.algorithmName=e.attributes.algorithmName,this.model.hashValue=e.attributes.hashValue,this.model.saltValue=e.attributes.saltValue,this.model.spinCount=parseInt(e.attributes.spinCount,10)),!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(e,t,n){let r=e(`../../../utils/col-cache`),i=e(`../base-xform`),a={frozen:`frozen`,frozenSplit:`frozen`,split:`split`};t.exports=class extends i{get tag(){return`sheetView`}prepare(e){switch(e.state){case`frozen`:case`split`:break;default:e.state=`normal`}}render(e,t){e.openNode(`sheetView`,{workbookViewId:t.workbookViewId||0});let n=function(t,n,r){r&&e.addAttribute(t,n)},i,a,o,s;switch(n(`rightToLeft`,`1`,!0===t.rightToLeft),n(`tabSelected`,`1`,t.tabSelected),n(`showRuler`,`0`,!1===t.showRuler),n(`showRowColHeaders`,`0`,!1===t.showRowColHeaders),n(`showGridLines`,`0`,!1===t.showGridLines),n(`zoomScale`,t.zoomScale,t.zoomScale),n(`zoomScaleNormal`,t.zoomScaleNormal,t.zoomScaleNormal),n(`view`,t.style,t.style),t.state){case`frozen`:a=t.xSplit||0,o=t.ySplit||0,i=t.topLeftCell||r.getAddress(o+1,a+1).address,s=(t.xSplit&&t.ySplit?`bottomRight`:t.xSplit&&`topRight`)||`bottomLeft`,e.leafNode(`pane`,{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:i,activePane:s,state:`frozen`}),e.leafNode(`selection`,{pane:s,activeCell:t.activeCell,sqref:t.activeCell});break;case`split`:t.activePane===`topLeft`&&(t.activePane=void 0),e.leafNode(`pane`,{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:t.topLeftCell,activePane:t.activePane}),e.leafNode(`selection`,{pane:t.activePane,activeCell:t.activeCell,sqref:t.activeCell});break;case`normal`:t.activeCell&&e.leafNode(`selection`,{activeCell:t.activeCell,sqref:t.activeCell})}e.closeNode()}parseOpen(e){switch(e.name){case`sheetView`:return this.sheetView={workbookViewId:parseInt(e.attributes.workbookViewId,10),rightToLeft:e.attributes.rightToLeft===`1`,tabSelected:e.attributes.tabSelected===`1`,showRuler:e.attributes.showRuler!==`0`,showRowColHeaders:e.attributes.showRowColHeaders!==`0`,showGridLines:e.attributes.showGridLines!==`0`,zoomScale:parseInt(e.attributes.zoomScale||`100`,10),zoomScaleNormal:parseInt(e.attributes.zoomScaleNormal||`100`,10),style:e.attributes.view},this.pane=void 0,this.selections={},!0;case`pane`:return this.pane={xSplit:parseInt(e.attributes.xSplit||`0`,10),ySplit:parseInt(e.attributes.ySplit||`0`,10),topLeftCell:e.attributes.topLeftCell,activePane:e.attributes.activePane||`topLeft`,state:e.attributes.state},!0;case`selection`:{let t=e.attributes.pane||`topLeft`;return this.selections[t]={pane:t,activeCell:e.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(e){let t,n;switch(e){case`sheetView`:return this.sheetView&&this.pane?(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:a[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,t,n){let r=e(`../base-xform`);t.exports=class extends r{get tag(){return`tablePart`}render(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}parseOpen(e){switch(e.name){case this.tag:return this.model={rId:e.attributes[`r:id`]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(e,t,n){let r=e(`../../../utils/under-dash`),i=e(`../../../utils/col-cache`),a=e(`../../../utils/xml-stream`),o=e(`../../rel-type`),s=e(`./merges`),c=e(`../base-xform`),l=e(`../list-xform`),u=e(`./row-xform`),d=e(`./col-xform`),f=e(`./dimension-xform`),p=e(`./hyperlink-xform`),m=e(`./merge-cell-xform`),h=e(`./data-validations-xform`),g=e(`./sheet-properties-xform`),_=e(`./sheet-format-properties-xform`),v=e(`./sheet-view-xform`),y=e(`./sheet-protection-xform`),b=e(`./page-margins-xform`),x=e(`./page-setup-xform`),S=e(`./print-options-xform`),C=e(`./auto-filter-xform`),w=e(`./picture-xform`),T=e(`./drawing-xform`),E=e(`./table-part-xform`),D=e(`./row-breaks-xform`),O=e(`./header-footer-xform`),k=e(`./cf/conditional-formattings-xform`),A=e(`./ext-lst-xform`),j=(e,t)=>{if(!t||!t.length)return e;if(!e||!e.length)return t;let n={},r={};return e.forEach(e=>{n[e.ref]=e,e.rules.forEach(e=>{let{x14Id:t}=e;t&&(r[t]=e)})}),t.forEach(t=>{t.rules.forEach(i=>{let a=r[i.x14Id];a?((e,t)=>{Object.keys(t).forEach(n=>{let r=e[n],i=t[n];r===void 0&&i!==void 0&&(e[n]=i)})})(a,i):n[t.ref]?n[t.ref].rules.push(i):e.push({ref:t.ref,rules:[i]})})}),e};class M extends c{constructor(e){super();let{maxRows:t,maxCols:n,ignoreNodes:r}=e||{};this.ignoreNodes=r||[],this.map={sheetPr:new g,dimension:new f,sheetViews:new l({tag:`sheetViews`,count:!1,childXform:new v}),sheetFormatPr:new _,cols:new l({tag:`cols`,count:!1,childXform:new d}),sheetData:new l({tag:`sheetData`,count:!1,empty:!0,childXform:new u({maxItems:n}),maxItems:t}),autoFilter:new C,mergeCells:new l({tag:`mergeCells`,count:!0,childXform:new m}),rowBreaks:new D,hyperlinks:new l({tag:`hyperlinks`,count:!1,childXform:new p}),pageMargins:new b,dataValidations:new h,pageSetup:new x,headerFooter:new O,printOptions:new S,picture:new w,drawing:new T,sheetProtection:new y,tableParts:new l({tag:`tableParts`,count:!0,childXform:new E}),conditionalFormatting:new k,extLst:new A}}prepare(e,t){t.merges=new s,e.hyperlinks=t.hyperlinks=[],e.comments=t.comments=[],t.formulae={},t.siFormulae=0,this.map.cols.prepare(e.cols,t),this.map.sheetData.prepare(e.rows,t),this.map.conditionalFormatting.prepare(e.conditionalFormattings,t),e.mergeCells=t.merges.mergeCells;let n=e.rels=[];function r(e){return`rId`+(e.length+1)}if(e.hyperlinks.forEach(e=>{let t=r(n);e.rId=t,n.push({Id:t,Type:o.Hyperlink,Target:e.target,TargetMode:`External`})}),e.comments.length>0){let a={Id:r(n),Type:o.Comments,Target:`../comments${e.id}.xml`};n.push(a);let s={Id:r(n),Type:o.VmlDrawing,Target:`../drawings/vmlDrawing${e.id}.vml`};n.push(s),e.comments.forEach(e=>{e.refAddress=i.decodeAddress(e.ref)}),t.commentRefs.push({commentName:`comments`+e.id,vmlDrawing:`vmlDrawing`+e.id})}let a=[],c;e.media.forEach(i=>{if(i.type===`background`){let a=r(n);c=t.media[i.imageId],n.push({Id:a,Type:o.Image,Target:`../media/${c.name}.${c.extension}`}),e.background={rId:a},e.image=t.media[i.imageId]}else if(i.type===`image`){let{drawing:s}=e;c=t.media[i.imageId],s||(s=e.drawing={rId:r(n),name:`drawing`+ ++t.drawingsCount,anchors:[],rels:[]},t.drawings.push(s),n.push({Id:s.rId,Type:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing`,Target:`../drawings/${s.name}.xml`}));let l=this.preImageId===i.imageId?a[i.imageId]:a[s.rels.length];l||(l=r(s.rels),a[s.rels.length]=l,s.rels.push({Id:l,Type:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/image`,Target:`../media/${c.name}.${c.extension}`}));let u={picture:{rId:l},range:i.range};if(i.hyperlinks&&i.hyperlinks.hyperlink){let e=r(s.rels);a[s.rels.length]=e,u.picture.hyperlinks={tooltip:i.hyperlinks.tooltip,rId:e},s.rels.push({Id:e,Type:o.Hyperlink,Target:i.hyperlinks.hyperlink,TargetMode:`External`})}this.preImageId=i.imageId,s.anchors.push(u)}}),e.tables.forEach(e=>{let i=r(n);e.rId=i,n.push({Id:i,Type:o.Table,Target:`../tables/`+e.target}),e.columns.forEach(e=>{let{style:n}=e;n&&(e.dxfId=t.styles.addDxfStyle(n))})}),this.map.extLst.prepare(e,t)}render(e,t){e.openXml(a.StdDocAttributes),e.openNode(`worksheet`,M.WORKSHEET_ATTRIBUTES);let n=t.properties?{defaultRowHeight:t.properties.defaultRowHeight,dyDescent:t.properties.dyDescent,outlineLevelCol:t.properties.outlineLevelCol,outlineLevelRow:t.properties.outlineLevelRow}:void 0;t.properties&&t.properties.defaultColWidth&&(n.defaultColWidth=t.properties.defaultColWidth);let r={outlineProperties:t.properties&&t.properties.outlineProperties,tabColor:t.properties&&t.properties.tabColor,pageSetup:t.pageSetup&&t.pageSetup.fitToPage?{fitToPage:t.pageSetup.fitToPage}:void 0},i=t.pageSetup&&t.pageSetup.margins,s={showRowColHeaders:t.pageSetup&&t.pageSetup.showRowColHeaders,showGridLines:t.pageSetup&&t.pageSetup.showGridLines,horizontalCentered:t.pageSetup&&t.pageSetup.horizontalCentered,verticalCentered:t.pageSetup&&t.pageSetup.verticalCentered},c=t.sheetProtection;this.map.sheetPr.render(e,r),this.map.dimension.render(e,t.dimensions),this.map.sheetViews.render(e,t.views),this.map.sheetFormatPr.render(e,n),this.map.cols.render(e,t.cols),this.map.sheetData.render(e,t.rows),this.map.sheetProtection.render(e,c),this.map.autoFilter.render(e,t.autoFilter),this.map.mergeCells.render(e,t.mergeCells),this.map.conditionalFormatting.render(e,t.conditionalFormattings),this.map.dataValidations.render(e,t.dataValidations),this.map.hyperlinks.render(e,t.hyperlinks),this.map.printOptions.render(e,s),this.map.pageMargins.render(e,i),this.map.pageSetup.render(e,t.pageSetup),this.map.headerFooter.render(e,t.headerFooter),this.map.rowBreaks.render(e,t.rowBreaks),this.map.drawing.render(e,t.drawing),this.map.picture.render(e,t.background),this.map.tableParts.render(e,t.tables),this.map.extLst.render(e,t),t.rels&&t.rels.forEach(t=>{t.Type===o.VmlDrawing&&e.leafNode(`legacyDrawing`,{"r:id":t.Id})}),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===`worksheet`?(r.each(this.map,e=>{e.reset()}),!0):(this.map[e.name]&&!this.ignoreNodes.includes(e.name)&&(this.parser=this.map[e.name],this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case`worksheet`:{let e=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(e.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(e.outlineProperties=this.map.sheetPr.model.outlineProperties);let t={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},n=Object.assign(t,this.map.pageSetup.model,this.map.printOptions.model),r=j(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model[`x14:conditionalFormattings`]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:e,views:this.map.sheetViews.model,pageSetup:n,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:r},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(e,t){let n=(e.relationships||[]).reduce((n,r)=>{if(n[r.Id]=r,r.Type===o.Comments&&(e.comments=t.comments[r.Target].comments),r.Type===o.VmlDrawing&&e.comments&&e.comments.length){let n=t.vmlDrawings[r.Target].comments;e.comments.forEach((e,t)=>{e.note=Object.assign({},e.note,n[t])})}return n},{});if(t.commentsMap=(e.comments||[]).reduce((e,t)=>(t.ref&&(e[t.ref]=t),e),{}),t.hyperlinkMap=(e.hyperlinks||[]).reduce((e,t)=>(t.rId&&(e[t.address]=n[t.rId].Target),e),{}),t.formulae={},e.rows=e.rows&&e.rows.filter(Boolean)||[],e.rows.forEach(e=>{e.cells=e.cells&&e.cells.filter(Boolean)||[]}),this.map.cols.reconcile(e.cols,t),this.map.sheetData.reconcile(e.rows,t),this.map.conditionalFormatting.reconcile(e.conditionalFormattings,t),e.media=[],e.drawing){let r=n[e.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(r){let n=r[1];t.drawings[n].anchors.forEach(t=>{if(t.medium){let n={type:`image`,imageId:t.medium.index,range:t.range,hyperlinks:t.picture.hyperlinks};e.media.push(n)}})}}let r=e.background&&n[e.background.rId];if(r){let n=r.Target.split(`/media/`)[1],i=t.mediaIndex&&t.mediaIndex[n];i!==void 0&&e.media.push({type:`background`,imageId:i})}e.tables=(e.tables||[]).map(e=>{let r=n[e.rId];return t.tables[r.Target]}),delete e.relationships,delete e.hyperlinks,delete e.comments}}M.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`},t.exports=M},{"../../../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,t,n){let r=e(`../base-xform`);t.exports=class extends r{constructor(e){super(),this.tag=e.tag,this.attr=e.attr}render(e,t){t&&(e.openNode(this.tag),e.closeNode())}parseOpen(e){e.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(e,t,n){let r=e(`../base-xform`);t.exports=class extends r{constructor(e){super(),this.tag=e.tag,this.attr=e.attr,this.attrs=e.attrs,this._format=e.format||function(e){try{return Number.isNaN(e.getTime())?``:e.toISOString()}catch{return``}},this._parse=e.parse||function(e){return new Date(e)}}render(e,t){t&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,this._format(t)):e.writeText(this._format(t)),e.closeNode())}parseOpen(e){e.name===this.tag&&(this.attr?this.model=this._parse(e.attributes[this.attr]):this.text=[])}parseText(e){this.attr||this.text.push(e)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(``))),!1}}},{"../base-xform":32}],118:[function(e,t,n){let r=e(`../base-xform`);t.exports=class extends r{constructor(e){super(),this.tag=e.tag,this.attr=e.attr,this.attrs=e.attrs,this.zero=e.zero}render(e,t){(t||this.zero)&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,t):e.writeText(t),e.closeNode())}parseOpen(e){return e.name===this.tag&&(this.attr?this.model=parseInt(e.attributes[this.attr],10):this.text=[],!0)}parseText(e){this.attr||this.text.push(e)}parseClose(){return this.attr||(this.model=parseInt(this.text.join(``)||0,10)),!1}}},{"../base-xform":32}],119:[function(e,t,n){let r=e(`../base-xform`);t.exports=class extends r{constructor(e){super(),this.tag=e.tag,this.attr=e.attr,this.attrs=e.attrs}render(e,t){t!==void 0&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,t):e.writeText(t),e.closeNode())}parseOpen(e){e.name===this.tag&&(this.attr?this.model=e.attributes[this.attr]:this.text=[])}parseText(e){this.attr||this.text.push(e)}parseClose(){return this.attr||(this.model=this.text.join(``)),!1}}},{"../base-xform":32}],120:[function(e,t,n){let r=e(`./base-xform`),i=e(`../../utils/xml-stream`);t.exports=class extends r{constructor(e){super(),this._model=e}render(e){if(!this._xml){let e=new i;(function e(t,n){t.openNode(n.tag,n.$),n.c&&n.c.forEach(n=>{e(t,n)}),n.t&&t.writeText(n.t),t.closeNode()})(e,this._model),this._xml=e.xml}e.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(e){switch(e){case this._model.tag:return!1;default:return!0}}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(e,t,n){let r=e(`./text-xform`),i=e(`./rich-text-xform`),a=e(`../base-xform`);t.exports=class extends a{constructor(){super(),this.map={r:new i,t:new r}}get tag(){return`rPh`}render(e,t){if(e.openNode(this.tag,{sb:t.sb||0,eb:t.eb||0}),t&&t.hasOwnProperty(`richText`)&&t.richText){let{r:n}=this.map;t.richText.forEach(t=>{n.render(e,t)})}else t&&this.map.t.render(e,t.text);e.closeNode()}parseOpen(e){let{name:t}=e;return this.parser?(this.parser.parseOpen(e),!0):t===this.tag?(this.model={sb:parseInt(e.attributes.sb,10),eb:parseInt(e.attributes.eb,10)},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case`r`:{let e=this.model.richText;e||=this.model.richText=[],e.push(this.parser.model);break}case`t`:this.model.text=this.parser.model}this.parser=void 0}return!0}switch(e){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(e,t,n){let r=e(`./text-xform`),i=e(`../style/font-xform`),a=e(`../base-xform`);class o extends a{constructor(e){super(),this.model=e}get tag(){return`r`}get textXform(){return this._textXform||=new r}get fontXform(){return this._fontXform||=new i(o.FONT_OPTIONS)}render(e,t){t||=this.model,e.openNode(`r`),t.font&&this.fontXform.render(e,t.font),this.textXform.render(e,t.text),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case`r`:return this.model={},!0;case`t`:return this.parser=this.textXform,this.parser.parseOpen(e),!0;case`rPr`:return this.parser=this.fontXform,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){switch(e){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(e),!0}}}o.FONT_OPTIONS={tagName:`rPr`,fontNameTag:`rFont`},t.exports=o},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(e,t,n){let r=e(`./text-xform`),i=e(`./rich-text-xform`),a=e(`./phonetic-text-xform`),o=e(`../base-xform`);t.exports=class extends o{constructor(e){super(),this.model=e,this.map={r:new i,t:new r,rPh:new a}}get tag(){return`si`}render(e,t){e.openNode(this.tag),t&&t.hasOwnProperty(`richText`)&&t.richText?t.richText.length?t.richText.forEach(t=>{this.map.r.render(e,t)}):this.map.t.render(e,``):t!=null&&this.map.t.render(e,t),e.closeNode()}parseOpen(e){let{name:t}=e;return this.parser?(this.parser.parseOpen(e),!0):t===this.tag?(this.model={},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case`r`:{let e=this.model.richText;e||=this.model.richText=[],e.push(this.parser.model);break}case`t`:this.model=this.parser.model}this.parser=void 0}return!0}switch(e){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,t,n){let r=e(`../../../utils/xml-stream`),i=e(`../base-xform`),a=e(`./shared-string-xform`);t.exports=class extends i{constructor(e){super(),this.model=e||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||=new a}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(e){return this.model.values[e]}add(e){return e.richText?this.addRichText(e):this.addText(e)}addText(e){let t=this.hash[e];return t===void 0&&(t=this.hash[e]=this.model.values.length,this.model.values.push(e)),this.model.count++,t}addRichText(e){let t=this.sharedStringXform.toXml(e),n=this.rich[t];return n===void 0&&(n=this.rich[t]=this.model.values.length,this.model.values.push(e)),this.model.count++,n}render(e,t){t||=this._values,e.openXml(r.StdDocAttributes),e.openNode(`sst`,{xmlns:`http://schemas.openxmlformats.org/spreadsheetml/2006/main`,count:t.count,uniqueCount:t.values.length});let n=this.sharedStringXform;t.values.forEach(t=>{n.render(e,t)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case`sst`:return!0;case`si`:return this.parser=this.sharedStringXform,this.parser.parseOpen(e),!0;default:throw Error(`Unexpected xml node in parseOpen: `+JSON.stringify(e))}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;switch(e){case`sst`:return!1;default:throw Error(`Unexpected xml node in parseClose: `+e)}}}},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(e,t,n){let r=e(`../base-xform`);t.exports=class extends r{get tag(){return`t`}render(e,t){e.openNode(`t`),/^\s|\n|\s$/.test(t)&&e.addAttribute(`xml:space`,`preserve`),e.writeText(t),e.closeNode()}get model(){return this._text.join(``).replace(/_x([0-9A-F]{4})_/g,(e,t)=>String.fromCharCode(parseInt(t,16)))}parseOpen(e){switch(e.name){case`t`:return this._text=[],!0;default:return!1}}parseText(e){this._text.push(e)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(e,t,n){let r=e(`../../../doc/enums`),i=e(`../../../utils/utils`),a=e(`../base-xform`),o={horizontalValues:[`left`,`center`,`right`,`fill`,`centerContinuous`,`distributed`,`justify`].reduce((e,t)=>(e[t]=!0,e),{}),horizontal(e){return this.horizontalValues[e]?e:void 0},verticalValues:[`top`,`middle`,`bottom`,`distributed`,`justify`].reduce((e,t)=>(e[t]=!0,e),{}),vertical(e){return e===`middle`?`center`:this.verticalValues[e]?e:void 0},wrapText:e=>!!e||void 0,shrinkToFit:e=>!!e||void 0,textRotation(e){switch(e){case`vertical`:return e;default:return(e=i.validInt(e))>=-90&&e<=90?e:void 0}},indent:e=>(e=i.validInt(e),Math.max(0,e)),readingOrder(e){switch(e){case`ltr`:return r.ReadingOrder.LeftToRight;case`rtl`:return r.ReadingOrder.RightToLeft;default:return}}},s={toXml(e){if(e=o.textRotation(e)){if(e===`vertical`)return 255;let t=Math.round(e);if(t>=0&&t<=90)return t;if(t<0&&t>=-90)return 90-t}},toModel(e){let t=i.validInt(e);if(t!==void 0){if(t===255)return`vertical`;if(t>=0&&t<=90)return t;if(t>90&&t<=180)return 90-t}}};t.exports=class extends a{get tag(){return`alignment`}render(e,t){e.addRollback(),e.openNode(`alignment`);let n=!1;function r(t,r){r&&(e.addAttribute(t,r),n=!0)}r(`horizontal`,o.horizontal(t.horizontal)),r(`vertical`,o.vertical(t.vertical)),r(`wrapText`,!!o.wrapText(t.wrapText)&&`1`),r(`shrinkToFit`,!!o.shrinkToFit(t.shrinkToFit)&&`1`),r(`indent`,o.indent(t.indent)),r(`textRotation`,s.toXml(t.textRotation)),r(`readingOrder`,o.readingOrder(t.readingOrder)),e.closeNode(),n?e.commit():e.rollback()}parseOpen(e){let t={},n=!1;function r(e,r,i){e&&(t[r]=i,n=!0)}r(e.attributes.horizontal,`horizontal`,e.attributes.horizontal),r(e.attributes.vertical,`vertical`,e.attributes.vertical===`center`?`middle`:e.attributes.vertical),r(e.attributes.wrapText,`wrapText`,i.parseBoolean(e.attributes.wrapText)),r(e.attributes.shrinkToFit,`shrinkToFit`,i.parseBoolean(e.attributes.shrinkToFit)),r(e.attributes.indent,`indent`,parseInt(e.attributes.indent,10)),r(e.attributes.textRotation,`textRotation`,s.toModel(e.attributes.textRotation)),r(e.attributes.readingOrder,`readingOrder`,e.attributes.readingOrder===`2`?`rtl`:`ltr`),this.model=n?t:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(e,t,n){let r=e(`../base-xform`),i=e(`../../../utils/utils`),a=e(`./color-xform`);class o extends r{constructor(e){super(),this.name=e,this.map={color:new a}}get tag(){return this.name}render(e,t,n){let r=t&&t.color||n||this.defaultColor;e.openNode(this.name),t&&t.style&&(e.addAttribute(`style`,t.style),r&&this.map.color.render(e,r)),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.name:{let{style:t}=e.attributes;return this.model=t?{style:t}:void 0,!0}case`color`:return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(e===this.name&&this.map.color.model&&(this.model||={},this.model.color=this.map.color.model),!1)}validStyle(e){return o.validStyleValues[e]}}o.validStyleValues=[`thin`,`dashed`,`dotted`,`dashDot`,`hair`,`dashDotDot`,`slantDashDot`,`mediumDashed`,`mediumDashDotDot`,`mediumDashDot`,`medium`,`double`,`thick`].reduce((e,t)=>(e[t]=!0,e),{}),t.exports=class extends r{constructor(){super(),this.map={top:new o(`top`),left:new o(`left`),bottom:new o(`bottom`),right:new o(`right`),diagonal:new o(`diagonal`)}}render(e,t){let{color:n}=t;function r(r,i){r&&!r.color&&t.color&&(r={...r,color:t.color}),i.render(e,r,n)}e.openNode(`border`),t.diagonal&&t.diagonal.style&&(t.diagonal.up&&e.addAttribute(`diagonalUp`,`1`),t.diagonal.down&&e.addAttribute(`diagonalDown`,`1`)),r(t.left,this.map.left),r(t.right,this.map.right),r(t.top,this.map.top),r(t.bottom,this.map.bottom),r(t.diagonal,this.map.diagonal),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case`border`:return this.reset(),this.diagonalUp=i.parseBoolean(e.attributes.diagonalUp),this.diagonalDown=i.parseBoolean(e.attributes.diagonalDown),!0;default:return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if(e===`border`){let e=this.model={},t=function(t,n,r){n&&(r&&Object.assign(n,r),e[t]=n)};t(`left`,this.map.left.model),t(`right`,this.map.right.model),t(`top`,this.map.top.model),t(`bottom`,this.map.bottom.model),t(`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,t,n){let r=e(`../base-xform`);t.exports=class extends r{constructor(e){super(),this.name=e||`color`}get tag(){return this.name}render(e,t){return!!t&&(e.openNode(this.name),t.argb?e.addAttribute(`rgb`,t.argb):t.theme===void 0?t.indexed===void 0?e.addAttribute(`auto`,`1`):e.addAttribute(`indexed`,t.indexed):(e.addAttribute(`theme`,t.theme),t.tint!==void 0&&e.addAttribute(`tint`,t.tint)),e.closeNode(),!0)}parseOpen(e){return e.name===this.name&&(e.attributes.rgb?this.model={argb:e.attributes.rgb}:e.attributes.theme?(this.model={theme:parseInt(e.attributes.theme,10)},e.attributes.tint&&(this.model.tint=parseFloat(e.attributes.tint))):e.attributes.indexed?this.model={indexed:parseInt(e.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(e,t,n){let r=e(`../base-xform`),i=e(`./alignment-xform`),a=e(`./border-xform`),o=e(`./fill-xform`),s=e(`./font-xform`),c=e(`./numfmt-xform`),l=e(`./protection-xform`);t.exports=class extends r{constructor(){super(),this.map={alignment:new i,border:new a,fill:new o,font:new s,numFmt:new c,protection:new l}}get tag(){return`dxf`}render(e,t){if(e.openNode(this.tag),t.font&&this.map.font.render(e,t.font),t.numFmt&&t.numFmtId){let n={id:t.numFmtId,formatCode:t.numFmt};this.map.numFmt.render(e,n)}t.fill&&this.map.fill.render(e,t.fill),t.alignment&&this.map.alignment.render(e,t.alignment),t.border&&this.map.border.render(e,t.border),t.protection&&this.map.protection.render(e,t.protection),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:return this.reset(),!0;default:return this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==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,t,n){let r=e(`../base-xform`),i=e(`./color-xform`);class a extends r{constructor(){super(),this.map={color:new i}}get tag(){return`stop`}render(e,t){e.openNode(`stop`),e.addAttribute(`position`,t.position),this.map.color.render(e,t.color),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case`stop`:return this.model={position:parseFloat(e.attributes.position)},!0;case`color`:return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}parseText(){}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class o extends r{constructor(){super(),this.map={fgColor:new i(`fgColor`),bgColor:new i(`bgColor`)}}get name(){return`pattern`}get tag(){return`patternFill`}render(e,t){e.openNode(`patternFill`),e.addAttribute(`patternType`,t.pattern),t.fgColor&&this.map.fgColor.render(e,t.fgColor),t.bgColor&&this.map.bgColor.render(e,t.bgColor),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case`patternFill`:return this.model={type:`pattern`,pattern:e.attributes.patternType},!0;default:return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.parser.model&&(this.model[e]=this.parser.model),this.parser=void 0),!0)}}class s extends r{constructor(){super(),this.map={stop:new a}}get name(){return`gradient`}get tag(){return`gradientFill`}render(e,t){switch(e.openNode(`gradientFill`),t.gradient){case`angle`:e.addAttribute(`degree`,t.degree);break;case`path`:e.addAttribute(`type`,`path`),t.center.left&&(e.addAttribute(`left`,t.center.left),t.center.right===void 0&&e.addAttribute(`right`,t.center.left)),t.center.right&&e.addAttribute(`right`,t.center.right),t.center.top&&(e.addAttribute(`top`,t.center.top),t.center.bottom===void 0&&e.addAttribute(`bottom`,t.center.top)),t.center.bottom&&e.addAttribute(`bottom`,t.center.bottom)}let n=this.map.stop;t.stops.forEach(t=>{n.render(e,t)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case`gradientFill`:{let t=this.model={stops:[]};return e.attributes.degree?(t.gradient=`angle`,t.degree=parseInt(e.attributes.degree,10)):e.attributes.type===`path`&&(t.gradient=`path`,t.center={left:e.attributes.left?parseFloat(e.attributes.left):0,top:e.attributes.top?parseFloat(e.attributes.top):0},e.attributes.right!==e.attributes.left&&(t.center.right=e.attributes.right?parseFloat(e.attributes.right):0),e.attributes.bottom!==e.attributes.top&&(t.center.bottom=e.attributes.bottom?parseFloat(e.attributes.bottom):0)),!0}case`stop`:return this.parser=this.map.stop,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class c extends r{constructor(){super(),this.map={patternFill:new o,gradientFill:new s}}get tag(){return`fill`}render(e,t){switch(e.addRollback(),e.openNode(`fill`),t.type){case`pattern`:this.map.patternFill.render(e,t);break;case`gradient`:this.map.gradientFill.render(e,t);break;default:e.rollback();return}e.closeNode(),e.commit()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case`fill`:return this.model={},!0;default:return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(e){return c.validPatternValues[e]}}c.validPatternValues=[`none`,`solid`,`darkVertical`,`darkGray`,`mediumGray`,`lightGray`,`gray125`,`gray0625`,`darkHorizontal`,`darkVertical`,`darkDown`,`darkUp`,`darkGrid`,`darkTrellis`,`lightHorizontal`,`lightVertical`,`lightDown`,`lightUp`,`lightGrid`,`lightTrellis`,`lightGrid`].reduce((e,t)=>(e[t]=!0,e),{}),c.StopXform=a,c.PatternFillXform=o,c.GradientFillXform=s,t.exports=c},{"../base-xform":32,"./color-xform":128}],131:[function(e,t,n){let r=e(`./color-xform`),i=e(`../simple/boolean-xform`),a=e(`../simple/integer-xform`),o=e(`../simple/string-xform`),s=e(`./underline-xform`),c=e(`../../../utils/under-dash`),l=e(`../base-xform`);class u extends l{constructor(e){super(),this.options=e||u.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 s},charset:{prop:`charset`,xform:new a({tag:`charset`,attr:`val`})},color:{prop:`color`,xform:new r},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 a({tag:`family`,attr:`val`})},outline:{prop:`outline`,xform:new i({tag:`outline`,attr:`val`})},vertAlign:{prop:`vertAlign`,xform:new o({tag:`vertAlign`,attr:`val`})},scheme:{prop:`scheme`,xform:new o({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 a({tag:`sz`,attr:`val`})}},this.map[this.options.fontNameTag]={prop:`name`,xform:new o({tag:this.options.fontNameTag,attr:`val`})}}get tag(){return this.options.tagName}render(e,t){let{map:n}=this;e.openNode(this.options.tagName),c.each(this.map,(r,i)=>{n[i].xform.render(e,t[r.prop])}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if(this.map[e.name])return this.parser=this.map[e.name].xform,this.parser.parseOpen(e);switch(e.name){case this.options.tagName:return this.model={},!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser&&!this.parser.parseClose(e)){let t=this.map[e];return this.parser.model&&(this.model[t.prop]=this.parser.model),this.parser=void 0,!0}switch(e){case this.options.tagName:return!1;default:return!0}}}u.OPTIONS={tagName:`font`,fontNameTag:`name`},t.exports=u},{"../../../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,t,n){let r=e(`../../../utils/under-dash`),i=e(`../../defaultnumformats`),a=e(`../base-xform`),o=function(){let e={};return r.each(i,(t,n)=>{t.f&&(e[t.f]=parseInt(n,10))}),e}();class s extends a{constructor(e,t){super(),this.id=e,this.formatCode=t}get tag(){return`numFmt`}render(e,t){e.leafNode(`numFmt`,{numFmtId:t.id,formatCode:t.formatCode})}parseOpen(e){switch(e.name){case`numFmt`:return this.model={id:parseInt(e.attributes.numFmtId,10),formatCode:e.attributes.formatCode.replace(/[\\](.)/g,`$1`)},!0;default:return!1}}parseText(){}parseClose(){return!1}}s.getDefaultFmtId=function(e){return o[e]},s.getDefaultFmtCode=function(e){return i[e]&&i[e].f},t.exports=s},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(e,t,n){let r=e(`../base-xform`),i={boolean:(e,t)=>e===void 0?t:e};t.exports=class extends r{get tag(){return`protection`}render(e,t){e.addRollback(),e.openNode(`protection`);let n=!1;function r(t,r){r!==void 0&&(e.addAttribute(t,r),n=!0)}r(`locked`,i.boolean(t.locked,!0)?void 0:`0`),r(`hidden`,i.boolean(t.hidden,!1)?`1`:void 0),e.closeNode(),n?e.commit():e.rollback()}parseOpen(e){let t={locked:e.attributes.locked!==`0`,hidden:e.attributes.hidden===`1`};this.model=!t.locked||t.hidden?t:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(e,t,n){let r=e(`../base-xform`),i=e(`./alignment-xform`),a=e(`./protection-xform`);t.exports=class extends r{constructor(e){super(),this.xfId=!(!e||!e.xfId),this.map={alignment:new i,protection:new a}}get tag(){return`xf`}render(e,t){e.openNode(`xf`,{numFmtId:t.numFmtId||0,fontId:t.fontId||0,fillId:t.fillId||0,borderId:t.borderId||0}),this.xfId&&e.addAttribute(`xfId`,t.xfId||0),t.numFmtId&&e.addAttribute(`applyNumberFormat`,`1`),t.fontId&&e.addAttribute(`applyFont`,`1`),t.fillId&&e.addAttribute(`applyFill`,`1`),t.borderId&&e.addAttribute(`applyBorder`,`1`),t.alignment&&e.addAttribute(`applyAlignment`,`1`),t.protection&&e.addAttribute(`applyProtection`,`1`),t.alignment&&this.map.alignment.render(e,t.alignment),t.protection&&this.map.protection.render(e,t.protection),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case`xf`:return this.model={numFmtId:parseInt(e.attributes.numFmtId,10),fontId:parseInt(e.attributes.fontId,10),fillId:parseInt(e.attributes.fillId,10),borderId:parseInt(e.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(e.attributes.xfId,10)),!0;case`alignment`:return this.parser=this.map.alignment,this.parser.parseOpen(e),!0;case`protection`:return this.parser=this.map.protection,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):e!==`xf`}}},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(e,t,n){let r=e(`../../../doc/enums`),i=e(`../../../utils/xml-stream`),a=e(`../base-xform`),o=e(`../static-xform`),s=e(`../list-xform`),c=e(`./font-xform`),l=e(`./fill-xform`),u=e(`./border-xform`),d=e(`./numfmt-xform`),f=e(`./style-xform`),p=e(`./dxf-xform`);class m extends a{constructor(e){super(),this.map={numFmts:new s({tag:`numFmts`,count:!0,childXform:new d}),fonts:new s({tag:`fonts`,count:!0,childXform:new c,$:{"x14ac:knownFonts":1}}),fills:new s({tag:`fills`,count:!0,childXform:new l}),borders:new s({tag:`borders`,count:!0,childXform:new u}),cellStyleXfs:new s({tag:`cellStyleXfs`,count:!0,childXform:new f}),cellXfs:new s({tag:`cellXfs`,count:!0,childXform:new f({xfId:!0})}),dxfs:new s({tag:`dxfs`,always:!0,count:!0,childXform:new p}),numFmt:new d,font:new c,fill:new l,border:new u,style:new f({xfId:!0}),cellStyles:m.STATIC_XFORMS.cellStyles,tableStyles:m.STATIC_XFORMS.tableStyles,extLst:m.STATIC_XFORMS.extLst},e&&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(e,t){t||=this.model,e.openXml(i.StdDocAttributes),e.openNode(`styleSheet`,m.STYLESHEET_ATTRIBUTES),this.index?(t.numFmts&&t.numFmts.length&&(e.openNode(`numFmts`,{count:t.numFmts.length}),t.numFmts.forEach(t=>{e.writeXml(t)}),e.closeNode()),t.fonts.length||this._addFont({size:11,color:{theme:1},name:`Calibri`,family:2,scheme:`minor`}),e.openNode(`fonts`,{count:t.fonts.length,"x14ac:knownFonts":1}),t.fonts.forEach(t=>{e.writeXml(t)}),e.closeNode(),e.openNode(`fills`,{count:t.fills.length}),t.fills.forEach(t=>{e.writeXml(t)}),e.closeNode(),e.openNode(`borders`,{count:t.borders.length}),t.borders.forEach(t=>{e.writeXml(t)}),e.closeNode(),this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),e.openNode(`cellXfs`,{count:t.styles.length}),t.styles.forEach(t=>{e.writeXml(t)}),e.closeNode()):(this.map.numFmts.render(e,t.numFmts),this.map.fonts.render(e,t.fonts),this.map.fills.render(e,t.fills),this.map.borders.render(e,t.borders),this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(e,t.styles)),m.STATIC_XFORMS.cellStyles.render(e),this.map.dxfs.render(e,t.dxfs),m.STATIC_XFORMS.tableStyles.render(e),m.STATIC_XFORMS.extLst.render(e),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case`styleSheet`:return this.initIndex(),!0;default:return this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case`styleSheet`:{this.model={};let e=(e,t)=>{t.model&&t.model.length&&(this.model[e]=t.model)};if(e(`numFmts`,this.map.numFmts),e(`fonts`,this.map.fonts),e(`fills`,this.map.fills),e(`borders`,this.map.borders),e(`styles`,this.map.cellXfs),e(`dxfs`,this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){let e=this.index.numFmt;this.model.numFmts.forEach(t=>{e[t.id]=t.formatCode})}return!1}default:return!0}}addStyleModel(e,t){if(!e)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(e))return this.weakMap.get(e);let n={};if(t||=r.ValueType.Number,e.numFmt)n.numFmtId=this._addNumFmtStr(e.numFmt);else switch(t){case r.ValueType.Number:n.numFmtId=this._addNumFmtStr(`General`);break;case r.ValueType.Date:n.numFmtId=this._addNumFmtStr(`mm-dd-yy`)}e.font&&(n.fontId=this._addFont(e.font)),e.border&&(n.borderId=this._addBorder(e.border)),e.fill&&(n.fillId=this._addFill(e.fill)),e.alignment&&(n.alignment=e.alignment),e.protection&&(n.protection=e.protection);let i=this._addStyle(n);return this.weakMap&&this.weakMap.set(e,i),i}getStyleModel(e){let t=this.model.styles[e];if(!t)return null;let n=this.index.model[e];if(n)return n;if(n=this.index.model[e]={},t.numFmtId){let e=this.index.numFmt[t.numFmtId]||d.getDefaultFmtCode(t.numFmtId);e&&(n.numFmt=e)}function r(e,t,r){if(r||r===0){let i=t[r];i&&(n[e]=i)}}return r(`font`,this.model.fonts,t.fontId),r(`border`,this.model.borders,t.borderId),r(`fill`,this.model.fills,t.fillId),t.alignment&&(n.alignment=t.alignment),t.protection&&(n.protection=t.protection),n}addDxfStyle(e){return e.numFmt&&(e.numFmtId=this._addNumFmtStr(e.numFmt)),this.model.dxfs.push(e),this.model.dxfs.length-1}getDxfStyle(e){return this.model.dxfs[e]}_addStyle(e){let t=this.map.style.toXml(e),n=this.index.style[t];return n===void 0&&(n=this.index.style[t]=this.model.styles.length,this.model.styles.push(t)),n}_addNumFmtStr(e){let t=d.getDefaultFmtId(e);if(t!==void 0||(t=this.index.numFmt[e],t!==void 0))return t;t=this.index.numFmt[e]=164+this.model.numFmts.length;let n=this.map.numFmt.toXml({id:t,formatCode:e});return this.model.numFmts.push(n),t}_addFont(e){let t=this.map.font.toXml(e),n=this.index.font[t];return n===void 0&&(n=this.index.font[t]=this.model.fonts.length,this.model.fonts.push(t)),n}_addBorder(e){let t=this.map.border.toXml(e),n=this.index.border[t];return n===void 0&&(n=this.index.border[t]=this.model.borders.length,this.model.borders.push(t)),n}_addFill(e){let t=this.map.fill.toXml(e),n=this.index.fill[t];return n===void 0&&(n=this.index.fill[t]=this.model.fills.length,this.model.fills.push(t)),n}}m.STYLESHEET_ATTRIBUTES={xmlns:`http://schemas.openxmlformats.org/spreadsheetml/2006/main`,"xmlns:mc":`http://schemas.openxmlformats.org/markup-compatibility/2006`,"mc:Ignorable":`x14ac x16r2`,"xmlns:x14ac":`http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac`,"xmlns:x16r2":`http://schemas.microsoft.com/office/spreadsheetml/2015/02/main`},m.STATIC_XFORMS={cellStyles:new o({tag:`cellStyles`,$:{count:1},c:[{tag:`cellStyle`,$:{name:`Normal`,xfId:0,builtinId:0}}]}),dxfs:new o({tag:`dxfs`,$:{count:0}}),tableStyles:new o({tag:`tableStyles`,$:{count:0,defaultTableStyle:`TableStyleMedium2`,defaultPivotStyle:`PivotStyleLight16`}}),extLst:new o({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`}}]}]})},m.Mock=class extends m{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(e){return e.autodrain(),Promise.resolve()}addStyleModel(e,t){switch(t){case r.ValueType.Date:return this.dateStyleId;default:return 0}}get dateStyleId(){if(!this._dateStyleId){let e={numFmtId:d.getDefaultFmtId(`mm-dd-yy`)};this._dateStyleId=this.model.styles.length,this.model.styles.push(e)}return this._dateStyleId}getStyleModel(){return{}}},t.exports=m},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(e,t,n){let r=e(`../base-xform`);class i extends r{constructor(e){super(),this.model=e}get tag(){return`u`}render(e,t){if(!0===(t||=this.model))e.leafNode(`u`);else{let n=i.Attributes[t];n&&e.leafNode(`u`,n)}}parseOpen(e){e.name===`u`&&(this.model=e.attributes.val||!0)}parseText(){}parseClose(){return!1}}i.Attributes={single:{},double:{val:`double`},singleAccounting:{val:`singleAccounting`},doubleAccounting:{val:`doubleAccounting`}},t.exports=i},{"../base-xform":32}],137:[function(e,t,n){let r=e(`../base-xform`),i=e(`./filter-column-xform`);t.exports=class extends r{constructor(){super(),this.map={filterColumn:new i}}get tag(){return`autoFilter`}prepare(e){e.columns.forEach((e,t)=>{this.map.filterColumn.prepare(e,{index:t})})}render(e,t){return e.openNode(this.tag,{ref:t.autoFilterRef}),t.columns.forEach(t=>{this.map.filterColumn.render(e,t)}),e.closeNode(),!0}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:return this.model={autoFilterRef:e.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw Error(`Unexpected xml node in parseOpen: `+JSON.stringify(e))}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;switch(e){case this.tag:return!1;default:throw Error(`Unexpected xml node in parseClose: `+e)}}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(e,t,n){let r=e(`../base-xform`);t.exports=class extends r{get tag(){return`customFilter`}render(e,t){e.leafNode(this.tag,{val:t.val,operator:t.operator})}parseOpen(e){return e.name===this.tag&&(this.model={val:e.attributes.val,operator:e.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(e,t,n){let r=e(`../base-xform`),i=e(`../list-xform`),a=e(`./custom-filter-xform`),o=e(`./filter-xform`);t.exports=class extends r{constructor(){super(),this.map={customFilters:new i({tag:`customFilters`,count:!1,empty:!0,childXform:new a}),filters:new i({tag:`filters`,count:!1,empty:!0,childXform:new o})}}get tag(){return`filterColumn`}prepare(e,t){e.colId=t.index.toString()}render(e,t){return t.customFilters?(e.openNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?`0`:`1`}),this.map.customFilters.render(e,t.customFilters),e.closeNode(),!0):(e.leafNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?`0`:`1`}),!0)}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;let{attributes:t}=e;switch(e.name){case this.tag:return this.model={filterButton:t.hiddenButton===`0`},!0;default:if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw Error(`Unexpected xml node in parseOpen: `+JSON.stringify(e))}}parseText(){}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){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,t,n){let r=e(`../base-xform`);t.exports=class extends r{get tag(){return`filter`}render(e,t){e.leafNode(this.tag,{val:t.val})}parseOpen(e){return e.name===this.tag&&(this.model={val:e.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(e,t,n){let r=e(`../base-xform`);t.exports=class extends r{get tag(){return`tableColumn`}prepare(e,t){e.id=t.index+1}render(e,t){return e.leafNode(this.tag,{id:t.id.toString(),name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId}),!0}parseOpen(e){if(e.name===this.tag){let{attributes:t}=e;return this.model={name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(e,t,n){let r=e(`../base-xform`);t.exports=class extends r{get tag(){return`tableStyleInfo`}render(e,t){return e.leafNode(this.tag,{name:t.theme?t.theme:void 0,showFirstColumn:t.showFirstColumn?`1`:`0`,showLastColumn:t.showLastColumn?`1`:`0`,showRowStripes:t.showRowStripes?`1`:`0`,showColumnStripes:t.showColumnStripes?`1`:`0`}),!0}parseOpen(e){if(e.name===this.tag){let{attributes:t}=e;return this.model={theme:t.name?t.name:null,showFirstColumn:t.showFirstColumn===`1`,showLastColumn:t.showLastColumn===`1`,showRowStripes:t.showRowStripes===`1`,showColumnStripes:t.showColumnStripes===`1`},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(e,t,n){let r=e(`../../../utils/xml-stream`),i=e(`../base-xform`),a=e(`../list-xform`),o=e(`./auto-filter-xform`),s=e(`./table-column-xform`),c=e(`./table-style-info-xform`);class l extends i{constructor(){super(),this.map={autoFilter:new o,tableColumns:new a({tag:`tableColumns`,count:!0,empty:!0,childXform:new s}),tableStyleInfo:new c}}prepare(e,t){this.map.autoFilter.prepare(e),this.map.tableColumns.prepare(e.columns,t)}get tag(){return`table`}render(e,t){e.openXml(r.StdDocAttributes),e.openNode(this.tag,{...l.TABLE_ATTRIBUTES,id:t.id,name:t.name,displayName:t.displayName||t.name,ref:t.tableRef,totalsRowCount:t.totalsRow?`1`:void 0,totalsRowShown:t.totalsRow?void 0:`1`,headerRowCount:t.headerRow?`1`:`0`}),this.map.autoFilter.render(e,t),this.map.tableColumns.render(e,t.columns),this.map.tableStyleInfo.render(e,t.style),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;let{name:t,attributes:n}=e;switch(t){case this.tag:this.reset(),this.model={name:n.name,displayName:n.displayName||n.name,tableRef:n.ref,totalsRow:n.totalsRowCount===`1`,headerRow:n.headerRowCount===`1`};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){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((e,t)=>{this.model.columns[t].filterButton=e.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1;default:return!0}}reconcile(e,t){e.columns.forEach(e=>{e.dxfId!==void 0&&(e.style=t.styles.getDxfStyle(e.dxfId))})}}l.TABLE_ATTRIBUTES={xmlns:`http://schemas.openxmlformats.org/spreadsheetml/2006/main`,"xmlns:mc":`http://schemas.openxmlformats.org/markup-compatibility/2006`,"mc:Ignorable":`xr xr3`,"xmlns:xr":`http://schemas.microsoft.com/office/spreadsheetml/2014/revision`,"xmlns:xr3":`http://schemas.microsoft.com/office/spreadsheetml/2016/revision3`},t.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(e,t,n){(function(n,r){(function(){let i=e(`fs`),a=e(`jszip`),{PassThrough:o}=e(`readable-stream`),s=e(`../utils/zip-stream`),c=e(`../utils/stream-buf`),l=e(`../utils/utils`),u=e(`../utils/xml-stream`),{bufferToString:d}=e(`../utils/browser-buffer-decode`),f=e(`./xform/style/styles-xform`),p=e(`./xform/core/core-xform`),m=e(`./xform/strings/shared-strings-xform`),h=e(`./xform/core/relationships-xform`),g=e(`./xform/core/content-types-xform`),_=e(`./xform/core/app-xform`),v=e(`./xform/book/workbook-xform`),y=e(`./xform/sheet/worksheet-xform`),b=e(`./xform/drawing/drawing-xform`),x=e(`./xform/table/table-xform`),S=e(`./xform/comment/comments-xform`),C=e(`./xform/comment/vml-notes-xform`),w=e(`./xml/theme1`);class T{constructor(e){this.workbook=e}async readFile(e,t){if(!await l.fs.exists(e))throw Error(`File not found: `+e);let n=i.createReadStream(e);try{let e=await this.read(n,t);return n.close(),e}catch(e){throw n.close(),e}}parseRels(e){return new h().parseStream(e)}parseWorkbook(e){return new v().parseStream(e)}parseSharedStrings(e){return new m().parseStream(e)}reconcile(e,t){let n=new v,r=new y(t),i=new b,a=new x;n.reconcile(e);let o={media:e.media,mediaIndex:e.mediaIndex};Object.keys(e.drawings).forEach(t=>{let n=e.drawings[t],r=e.drawingRels[t];r&&(o.rels=r.reduce((e,t)=>(e[t.Id]=t,e),{}),(n.anchors||[]).forEach(e=>{let t=e.picture&&e.picture.hyperlinks;t&&o.rels[t.rId]&&(t.hyperlink=o.rels[t.rId].Target,delete t.rId)}),i.reconcile(n,o))});let s={styles:e.styles};Object.values(e.tables).forEach(e=>{a.reconcile(e,s)});let c={styles:e.styles,sharedStrings:e.sharedStrings,media:e.media,mediaIndex:e.mediaIndex,date1904:e.properties&&e.properties.date1904,drawings:e.drawings,comments:e.comments,tables:e.tables,vmlDrawings:e.vmlDrawings};e.worksheets.forEach(t=>{t.relationships=e.worksheetRels[t.sheetNo],r.reconcile(t,c)}),delete e.worksheetHash,delete e.worksheetRels,delete e.globalRels,delete e.sharedStrings,delete e.workbookRels,delete e.sheetDefs,delete e.styles,delete e.mediaIndex,delete e.drawings,delete e.drawingRels,delete e.vmlDrawings}async _processWorksheetEntry(e,t,n,r,i){let a=await new y(r).parseStream(e);a.sheetNo=n,t.worksheetHash[i]=a,t.worksheets.push(a)}async _processCommentEntry(e,t,n){let r=await new S().parseStream(e);t.comments[`../${n}.xml`]=r}async _processTableEntry(e,t,n){let r=await new x().parseStream(e);t.tables[`../tables/${n}.xml`]=r}async _processWorksheetRelsEntry(e,t,n){let r=await new h().parseStream(e);t.worksheetRels[n]=r}async _processMediaEntry(e,t,n){let r=n.lastIndexOf(`.`);if(r>=1){let i=n.substr(r+1),a=n.substr(0,r);await new Promise((r,o)=>{let s=new c;s.on(`finish`,()=>{t.mediaIndex[n]=t.media.length,t.mediaIndex[a]=t.media.length;let e={type:`image`,name:a,extension:i,buffer:s.toBuffer()};t.media.push(e),r()}),e.on(`error`,e=>{o(e)}),e.pipe(s)})}}async _processDrawingEntry(e,t,n){let r=await new b().parseStream(e);t.drawings[n]=r}async _processDrawingRelsEntry(e,t,n){let r=await new h().parseStream(e);t.drawingRels[n]=r}async _processVmlDrawingEntry(e,t,n){let r=await new C().parseStream(e);t.vmlDrawings[`../drawings/${n}.vml`]=r}async _processThemeEntry(e,t,n){await new Promise((r,i)=>{let a=new c;e.on(`error`,i),a.on(`error`,i),a.on(`finish`,()=>{t.themes[n]=a.read().toString(),r()}),e.pipe(a)})}createInputStream(){throw 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(e,t){!e[Symbol.asyncIterator]&&e.pipe&&(e=e.pipe(new o));let n=[];for await(let t of e)n.push(t);return this.load(r.concat(n),t)}async load(e,t){let i;i=t&&t.base64?r.from(e.toString(),`base64`):e;let s={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},c=await a.loadAsync(i);for(let e of Object.values(c.files))if(!e.dir){let r,i=e.name;if(i[0]===`/`&&(i=i.substr(1)),i.match(/xl\/media\//)||i.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))r=new o,r.write(await e.async(`nodebuffer`));else{let t;r=new o({writableObjectMode:!0,readableObjectMode:!0}),t=n.browser?d(await e.async(`nodebuffer`)):await e.async(`string`);let i=16384;for(let e=0;e<t.length;e+=i)r.write(t.substring(e,e+i))}switch(r.end(),i){case`_rels/.rels`:s.globalRels=await this.parseRels(r);break;case`xl/workbook.xml`:{let e=await this.parseWorkbook(r);s.sheets=e.sheets,s.definedNames=e.definedNames,s.views=e.views,s.properties=e.properties,s.calcProperties=e.calcProperties;break}case`xl/_rels/workbook.xml.rels`:s.workbookRels=await this.parseRels(r);break;case`xl/sharedStrings.xml`:s.sharedStrings=new m,await s.sharedStrings.parseStream(r);break;case`xl/styles.xml`:s.styles=new f,await s.styles.parseStream(r);break;case`docProps/app.xml`:{let e=await new _().parseStream(r);s.company=e.company,s.manager=e.manager;break}case`docProps/core.xml`:{let e=await new p().parseStream(r);Object.assign(s,e);break}default:{let e=i.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(e){await this._processWorksheetEntry(r,s,e[1],t,i);break}if(e=i.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),e){await this._processWorksheetRelsEntry(r,s,e[1]);break}if(e=i.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/),e){await this._processThemeEntry(r,s,e[1]);break}if(e=i.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/),e){await this._processMediaEntry(r,s,e[1]);break}if(e=i.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/),e){await this._processDrawingEntry(r,s,e[1]);break}if(e=i.match(/xl\/(comments\d+)[.]xml/),e){await this._processCommentEntry(r,s,e[1]);break}if(e=i.match(/xl\/tables\/(table\d+)[.]xml/),e){await this._processTableEntry(r,s,e[1]);break}if(e=i.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/),e){await this._processDrawingRelsEntry(r,s,e[1]);break}if(e=i.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/),e){await this._processVmlDrawingEntry(r,s,e[1]);break}}}}return this.reconcile(s,t),this.workbook.model=s,this.workbook}async addMedia(e,t){await Promise.all(t.media.map(async t=>{if(t.type===`image`){let n=`xl/media/${t.name}.${t.extension}`;if(t.filename){let r=await function(e,t){return new Promise((n,r)=>{i.readFile(e,t,(e,t)=>{e?r(e):n(t)})})}(t.filename);return e.append(r,{name:n})}if(t.buffer)return e.append(t.buffer,{name:n});if(t.base64){let r=t.base64,i=r.substring(r.indexOf(`,`)+1);return e.append(i,{name:n,base64:!0})}}throw Error(`Unsupported media`)}))}addDrawings(e,t){let n=new b,r=new h;t.worksheets.forEach(t=>{let{drawing:i}=t;if(i){n.prepare(i,{});let t=n.toXml(i);e.append(t,{name:`xl/drawings/${i.name}.xml`}),t=r.toXml(i.rels),e.append(t,{name:`xl/drawings/_rels/${i.name}.xml.rels`})}})}addTables(e,t){let n=new x;t.worksheets.forEach(t=>{let{tables:r}=t;r.forEach(t=>{n.prepare(t,{});let r=n.toXml(t);e.append(r,{name:`xl/tables/`+t.target})})})}async addContentTypes(e,t){let n=new g().toXml(t);e.append(n,{name:`[Content_Types].xml`})}async addApp(e,t){let n=new _().toXml(t);e.append(n,{name:`docProps/app.xml`})}async addCore(e,t){let n=new p;e.append(n.toXml(t),{name:`docProps/core.xml`})}async addThemes(e,t){let n=t.themes||{theme1:w};Object.keys(n).forEach(t=>{let r=n[t],i=`xl/theme/${t}.xml`;e.append(r,{name:i})})}async addOfficeRels(e){let t=new h().toXml([{Id:`rId1`,Type:T.RelType.OfficeDocument,Target:`xl/workbook.xml`},{Id:`rId2`,Type:T.RelType.CoreProperties,Target:`docProps/core.xml`},{Id:`rId3`,Type:T.RelType.ExtenderProperties,Target:`docProps/app.xml`}]);e.append(t,{name:`_rels/.rels`})}async addWorkbookRels(e,t){let n=1,r=[{Id:`rId`+ n++,Type:T.RelType.Styles,Target:`styles.xml`},{Id:`rId`+ n++,Type:T.RelType.Theme,Target:`theme/theme1.xml`}];t.sharedStrings.count&&r.push({Id:`rId`+ n++,Type:T.RelType.SharedStrings,Target:`sharedStrings.xml`}),t.worksheets.forEach(e=>{e.rId=`rId`+ n++,r.push({Id:e.rId,Type:T.RelType.Worksheet,Target:`worksheets/sheet${e.id}.xml`})});let i=new h().toXml(r);e.append(i,{name:`xl/_rels/workbook.xml.rels`})}async addSharedStrings(e,t){t.sharedStrings&&t.sharedStrings.count&&e.append(t.sharedStrings.xml,{name:`xl/sharedStrings.xml`})}async addStyles(e,t){let{xml:n}=t.styles;n&&e.append(n,{name:`xl/styles.xml`})}async addWorkbook(e,t){let n=new v;e.append(n.toXml(t),{name:`xl/workbook.xml`})}async addWorksheets(e,t){let n=new y,r=new h,i=new S,a=new C;t.worksheets.forEach(t=>{let o=new u;n.render(o,t),e.append(o.xml,{name:`xl/worksheets/sheet${t.id}.xml`}),t.rels&&t.rels.length&&(o=new u,r.render(o,t.rels),e.append(o.xml,{name:`xl/worksheets/_rels/sheet${t.id}.xml.rels`})),t.comments.length>0&&(o=new u,i.render(o,t),e.append(o.xml,{name:`xl/comments${t.id}.xml`}),o=new u,a.render(o,t),e.append(o.xml,{name:`xl/drawings/vmlDrawing${t.id}.vml`}))})}_finalize(e){return new Promise((t,n)=>{e.on(`finish`,()=>{t(this)}),e.on(`error`,n),e.finalize()})}prepareModel(e,t){e.creator=e.creator||`ExcelJS`,e.lastModifiedBy=e.lastModifiedBy||`ExcelJS`,e.created=e.created||new Date,e.modified=e.modified||new Date,e.useSharedStrings=t.useSharedStrings===void 0||t.useSharedStrings,e.useStyles=t.useStyles===void 0||t.useStyles,e.sharedStrings=new m,e.styles=e.useStyles?new f(!0):new f.Mock;let n=new v,r=new y;n.prepare(e);let i={sharedStrings:e.sharedStrings,styles:e.styles,date1904:e.properties.date1904,drawingsCount:0,media:e.media};i.drawings=e.drawings=[],i.commentRefs=e.commentRefs=[];let a=0;e.tables=[],e.worksheets.forEach(t=>{t.tables.forEach(t=>{a++,t.target=`table${a}.xml`,t.id=a,e.tables.push(t)}),r.prepare(t,i)})}async write(e,t){t||={};let{model:n}=this.workbook,r=new s.ZipWriter(t.zip);return r.pipe(e),this.prepareModel(n,t),await this.addContentTypes(r,n),await this.addOfficeRels(r,n),await this.addWorkbookRels(r,n),await this.addWorksheets(r,n),await this.addSharedStrings(r,n),await this.addDrawings(r,n),await this.addTables(r,n),await Promise.all([this.addThemes(r,n),this.addStyles(r,n)]),await this.addMedia(r,n),await Promise.all([this.addApp(r,n),this.addCore(r,n)]),await this.addWorkbook(r,n),this._finalize(r)}writeFile(e,t){let n=i.createWriteStream(e);return new Promise((e,r)=>{n.on(`finish`,()=>{e()}),n.on(`error`,e=>{r(e)}),this.write(n,t).then(()=>{n.end()}).catch(e=>{r(e)})})}async writeBuffer(e){let t=new c;return await this.write(t,e),t.read()}}T.RelType=e(`./rel-type`),t.exports=T}).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,t,n){t.exports=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface=" 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=" 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,t,n){(function(t){(function(){Object.defineProperty(n,`__esModule`,{value:!0}),n.CsvFormatterStream=void 0;let r=e(`stream`),i=e(`./formatter`);class a extends r.Transform{constructor(e){super({writableObjectMode:e.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=e,this.rowFormatter=new i.RowFormatter(e),this.hasWrittenBOM=!e.writeBOM}transform(e){return this.rowFormatter.rowTransform=e,this}_transform(e,n,r){let i=!1;try{this.hasWrittenBOM||=(this.push(this.formatterOptions.BOM),!0),this.rowFormatter.format(e,(e,n)=>e?(i=!0,r(e)):(n&&n.forEach(e=>{this.push(t.from(e,`utf8`))}),i=!0,r()))}catch(e){if(i)throw e;r(e)}}_flush(e){this.rowFormatter.finish((n,r)=>n?e(n):(r&&r.forEach(e=>{this.push(t.from(e,`utf8`))}),e()))}}n.CsvFormatterStream=a}).call(this)}).call(this,e(`buffer`).Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.FormatterOptions=void 0,n.FormatterOptions=class{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var t;this.objectMode=!0,this.delimiter=`,`,this.rowDelimiter=`
`,this.quote=`"`,this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM=``,this.alwaysWriteHeaders=!1,Object.assign(this,e||{}),e?.quoteHeaders===void 0&&(this.quoteHeaders=this.quoteColumns),!0===e?.quote?this.quote=`"`:!1===e?.quote&&(this.quote=``),typeof e?.escape!=`string`&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((t=e.writeHeaders)==null||t),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(e,t,n){var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,`__esModule`,{value:!0}),n.FieldFormatter=void 0;let i=r(e(`lodash.isboolean`)),a=r(e(`lodash.isnil`)),o=r(e(`lodash.escaperegexp`));n.FieldFormatter=class{constructor(e){this._headers=null,this.formatterOptions=e,e.headers!==null&&(this.headers=e.headers),this.REPLACE_REGEXP=new RegExp(e.quote,`g`);let t=`[${e.delimiter}${o.default(e.rowDelimiter)}|\r|\n]`;this.ESCAPE_REGEXP=new RegExp(t)}set headers(e){this._headers=e}shouldQuote(e,t){let n=t?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return i.default(n)?n:Array.isArray(n)?n[e]:this._headers!==null&&n[this._headers[e]]}format(e,t,n){let r=(``+(a.default(e)?``:e)).replace(/\0/g,``),{formatterOptions:i}=this;return i.quote!==``&&r.indexOf(i.quote)!==-1?this.quoteField(r.replace(this.REPLACE_REGEXP,i.escapedQuote)):r.search(this.ESCAPE_REGEXP)!==-1||this.shouldQuote(t,n)?this.quoteField(r):r}quoteField(e){let{quote:t}=this.formatterOptions;return`${t}${e}${t}`}}},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(e,t,n){var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,`__esModule`,{value:!0}),n.RowFormatter=void 0;let i=r(e(`lodash.isfunction`)),a=r(e(`lodash.isequal`)),o=e(`./FieldFormatter`),s=e(`../types`);class c{constructor(e){this.rowCount=0,this.formatterOptions=e,this.fieldFormatter=new o.FieldFormatter(e),this.headers=e.headers,this.shouldWriteHeaders=e.shouldWriteHeaders,this.hasWrittenHeaders=!1,this.headers!==null&&(this.fieldFormatter.headers=this.headers),e.transform&&(this.rowTransform=e.transform)}static isRowHashArray(e){return!!Array.isArray(e)&&Array.isArray(e[0])&&e[0].length===2}static isRowArray(e){return Array.isArray(e)&&!this.isRowHashArray(e)}static gatherHeaders(e){return c.isRowHashArray(e)?e.map(e=>e[0]):Array.isArray(e)?e:Object.keys(e)}static createTransform(e){return s.isSyncTransform(e)?(t,n)=>{let r=null;try{r=e(t)}catch(e){return n(e)}return n(null,r)}:(t,n)=>{e(t,n)}}set rowTransform(e){if(!i.default(e))throw TypeError(`The transform should be a function`);this._rowTransform=c.createTransform(e)}format(e,t){this.callTransformer(e,(n,r)=>{if(n)return t(n);if(!e)return t(null);let i=[];if(r){let{shouldFormatColumns:e,headers:t}=this.checkHeaders(r);if(this.shouldWriteHeaders&&t&&!this.hasWrittenHeaders&&(i.push(this.formatColumns(t,!0)),this.hasWrittenHeaders=!0),e){let e=this.gatherColumns(r);i.push(this.formatColumns(e,!1))}}return t(null,i)})}finish(e){let t=[];if(this.formatterOptions.alwaysWriteHeaders&&this.rowCount===0){if(!this.headers)return e(Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));t.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&t.push(this.formatterOptions.rowDelimiter),e(null,t)}checkHeaders(e){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};let t=c.gatherHeaders(e);return this.headers=t,this.fieldFormatter.headers=t,this.shouldWriteHeaders?{shouldFormatColumns:!a.default(t,e),headers:t}:{shouldFormatColumns:!0,headers:null}}gatherColumns(e){if(this.headers===null)throw Error(`Headers is currently null`);return Array.isArray(e)?c.isRowHashArray(e)?this.headers.map((t,n)=>{let r=e[n];return r?r[1]:``}):c.isRowArray(e)&&!this.shouldWriteHeaders?e:this.headers.map((t,n)=>e[n]):this.headers.map(t=>e[t])}callTransformer(e,t){return this._rowTransform?this._rowTransform(e,t):t(null,e)}formatColumns(e,t){let n=e.map((e,n)=>this.fieldFormatter.format(e,n,t)).join(this.formatterOptions.delimiter),{rowCount:r}=this;return this.rowCount+=1,r?[this.formatterOptions.rowDelimiter,n].join(``):n}}n.RowFormatter=c},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.FieldFormatter=n.RowFormatter=void 0;var r=e(`./RowFormatter`);Object.defineProperty(n,`RowFormatter`,{enumerable:!0,get:function(){return r.RowFormatter}});var i=e(`./FieldFormatter`);Object.defineProperty(n,`FieldFormatter`,{enumerable:!0,get:function(){return i.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(e,t,n){(function(t){(function(){var r=Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]},i=Object.create?function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}:function(e,t){e.default=t},a=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!==`default`&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},o=function(e,t){for(var n in e)n===`default`||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(n,`__esModule`,{value:!0}),n.writeToPath=n.writeToString=n.writeToBuffer=n.writeToStream=n.write=n.format=n.FormatterOptions=n.CsvFormatterStream=void 0;let s=e(`util`),c=e(`stream`),l=a(e(`fs`)),u=e(`./FormatterOptions`),d=e(`./CsvFormatterStream`);o(e(`./types`),n);var f=e(`./CsvFormatterStream`);Object.defineProperty(n,`CsvFormatterStream`,{enumerable:!0,get:function(){return f.CsvFormatterStream}});var p=e(`./FormatterOptions`);Object.defineProperty(n,`FormatterOptions`,{enumerable:!0,get:function(){return p.FormatterOptions}}),n.format=e=>new d.CsvFormatterStream(new u.FormatterOptions(e)),n.write=(e,t)=>{let r=n.format(t),i=s.promisify((e,t)=>{r.write(e,void 0,t)});return e.reduce((e,t)=>e.then(()=>i(t)),Promise.resolve()).then(()=>r.end()).catch(e=>{r.emit(`error`,e)}),r},n.writeToStream=(e,t,r)=>n.write(t,r).pipe(e),n.writeToBuffer=function(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=[],a=new c.Writable({write(e,t,n){i.push(e),n()}});return new Promise((o,s)=>{a.on(`error`,s).on(`finish`,()=>o(t.concat(i))),n.write(e,r).pipe(a)})},n.writeToString=(e,t)=>n.writeToBuffer(e,t).then(e=>e.toString()),n.writeToPath=(e,t,r)=>{let i=l.createWriteStream(e,{encoding:`utf8`});return n.write(t,r).pipe(i)}}).call(this)}).call(this,e(`buffer`).Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.isSyncTransform=void 0,n.isSyncTransform=e=>e.length===1},{}],153:[function(e,t,n){(function(t){(function(){Object.defineProperty(n,`__esModule`,{value:!0}),n.CsvParserStream=void 0;let r=e(`string_decoder`),i=e(`stream`),a=e(`./transforms`),o=e(`./parser`);class s extends i.Transform{constructor(e){super({objectMode:e.objectMode}),this.lines=``,this.rowCount=0,this.parsedRowCount=0,this.parsedLineCount=0,this.endEmitted=!1,this.headersEmitted=!1,this.parserOptions=e,this.parser=new o.Parser(e),this.headerTransformer=new a.HeaderTransformer(e),this.decoder=new r.StringDecoder(e.encoding),this.rowTransformerValidator=new a.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(e){return this.rowTransformerValidator.rowTransform=e,this}validate(e){return this.rowTransformerValidator.rowValidator=e,this}emit(e){if(e===`end`)return this.endEmitted||(this.endEmitted=!0,super.emit(`end`,this.rowCount)),!1;var t=[...arguments].slice(1);return super.emit(e,...t)}_transform(e,t,n){if(this.hasHitRowLimit)return n();let r=s.wrapDoneCallback(n);try{let{lines:t}=this,n=t+this.decoder.write(e),i=this.parse(n,!0);return this.processRows(i,r)}catch(e){return r(e)}}_flush(e){let t=s.wrapDoneCallback(e);if(this.hasHitRowLimit)return t();try{let e=this.lines+this.decoder.end(),n=this.parse(e,!1);return this.processRows(n,t)}catch(e){return t(e)}}parse(e,t){if(!e)return[];let{line:n,rows:r}=this.parser.parse(e,t);return this.lines=n,r}processRows(e,n){let r=e.length,i=a=>{let o=e=>e?n(e):a%100==0?void t(()=>i(a+1)):i(a+1);if(this.checkAndEmitHeaders(),a>=r||this.hasHitRowLimit)return n();if(this.parsedLineCount+=1,this.shouldSkipLine)return o();let s=e[a];this.rowCount+=1,this.parsedRowCount+=1;let c=this.rowCount;return this.transformRow(s,(e,t)=>{if(e)return--this.rowCount,o(e);if(!t)return o(Error(`expected transform result`));if(t.isValid){if(t.row)return this.pushRow(t.row,o)}else this.emit(`data-invalid`,t.row,c,t.reason);return o()})};i(0)}transformRow(e,t){try{this.headerTransformer.transform(e,(n,r)=>n?t(n):r?r.isValid?r.row?this.shouldEmitRows?this.rowTransformerValidator.transformAndValidate(r.row,t):this.skipRow(t):(--this.rowCount,--this.parsedRowCount,t(null,{row:null,isValid:!0})):this.shouldEmitRows?t(null,{isValid:!1,row:e}):this.skipRow(t):t(Error(`Expected result from header transform`)))}catch(e){t(e)}}checkAndEmitHeaders(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit(`headers`,this.headerTransformer.headers))}skipRow(e){return--this.rowCount,e(null,{row:null,isValid:!0})}pushRow(e,t){try{this.parserOptions.objectMode?this.push(e):this.push(JSON.stringify(e)),t()}catch(e){t(e)}}static wrapDoneCallback(e){let t=!1;return function(n){if(n){if(t)throw n;t=!0,e(n);return}e(...[...arguments].slice(1))}}}n.CsvParserStream=s}).call(this)}).call(this,e(`timers`).setImmediate)},{"./parser":165,"./transforms":168,stream:505,string_decoder:218,timers:523}],154:[function(e,t,n){var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,`__esModule`,{value:!0}),n.ParserOptions=void 0;let i=r(e(`lodash.escaperegexp`)),a=r(e(`lodash.isnil`));n.ParserOptions=class{constructor(e){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,e||{}),this.delimiter.length>1)throw Error(`delimiter option must be one character long`);this.escapedDelimiter=i.default(this.delimiter),this.escapeChar=this.escape??this.quote,this.supportsComments=!a.default(this.comment),this.NEXT_TOKEN_REGEXP=RegExp(`([^\\s]|\\r\\n|\\n|\\r|${this.escapedDelimiter})`),this.maxRows>0&&(this.limitRows=!0)}}},{"lodash.escaperegexp":442,"lodash.isnil":447}],155:[function(e,t,n){var r=Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]},i=Object.create?function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}:function(e,t){e.default=t},a=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!==`default`&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},o=function(e,t){for(var n in e)n===`default`||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(n,`__esModule`,{value:!0}),n.parseString=n.parseFile=n.parseStream=n.parse=n.ParserOptions=n.CsvParserStream=void 0;let s=a(e(`fs`)),c=e(`stream`),l=e(`./ParserOptions`),u=e(`./CsvParserStream`);o(e(`./types`),n);var d=e(`./CsvParserStream`);Object.defineProperty(n,`CsvParserStream`,{enumerable:!0,get:function(){return d.CsvParserStream}});var f=e(`./ParserOptions`);Object.defineProperty(n,`ParserOptions`,{enumerable:!0,get:function(){return f.ParserOptions}}),n.parse=e=>new u.CsvParserStream(new l.ParserOptions(e)),n.parseStream=(e,t)=>e.pipe(new u.CsvParserStream(new l.ParserOptions(t))),n.parseFile=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return s.createReadStream(e).pipe(new u.CsvParserStream(new l.ParserOptions(t)))},n.parseString=(e,t)=>{let n=new c.Readable;return n.push(e),n.push(null),n.pipe(new u.CsvParserStream(new l.ParserOptions(t)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.Parser=void 0;let r=e(`./Scanner`),i=e(`./RowParser`),a=e(`./Token`);class o{constructor(e){this.parserOptions=e,this.rowParser=new i.RowParser(this.parserOptions)}static removeBOM(e){return e&&e.charCodeAt(0)===65279?e.slice(1):e}parse(e,t){let n=new r.Scanner({line:o.removeBOM(e),parserOptions:this.parserOptions,hasMoreData:t});return this.parserOptions.supportsComments?this.parseWithComments(n):this.parseWithoutComments(n)}parseWithoutComments(e){let t=[],n=!0;for(;n;)n=this.parseRow(e,t);return{line:e.line,rows:t}}parseWithComments(e){let{parserOptions:t}=this,n=[];for(let r=e.nextCharacterToken;r!==null;r=e.nextCharacterToken)if(a.Token.isTokenComment(r,t)){if(e.advancePastLine()===null||!e.hasMoreCharacters)return{line:e.lineFromCursor,rows:n};e.truncateToCursor()}else if(!this.parseRow(e,n))break;return{line:e.line,rows:n}}parseRow(e,t){if(!e.nextNonSpaceToken)return!1;let n=this.rowParser.parse(e);return n!==null&&(this.parserOptions.ignoreEmpty&&i.RowParser.isEmptyRow(n)||t.push(n),!0)}}n.Parser=o},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.RowParser=void 0;let r=e(`./column`),i=e(`./Token`);n.RowParser=class{constructor(e){this.parserOptions=e,this.columnParser=new r.ColumnParser(e)}static isEmptyRow(e){return e.join(``).replace(/\s+/g,``)===``}parse(e){let{parserOptions:t}=this,{hasMoreData:n}=e,r=e,a=[],o=this.getStartToken(r,a);for(;o;){if(i.Token.isTokenRowDelimiter(o))return r.advancePastToken(o),!r.hasMoreCharacters&&i.Token.isTokenCarriageReturn(o,t)&&n?null:(r.truncateToCursor(),a);if(!this.shouldSkipColumnParse(r,o,a)){let e=this.columnParser.parse(r);if(e===null)return null;a.push(e)}o=r.nextNonSpaceToken}return n?null:(r.truncateToCursor(),a)}getStartToken(e,t){let n=e.nextNonSpaceToken;return n!==null&&i.Token.isTokenDelimiter(n,this.parserOptions)?(t.push(``),e.nextNonSpaceToken):n}shouldSkipColumnParse(e,t,n){let{parserOptions:r}=this;if(i.Token.isTokenDelimiter(t,r)){e.advancePastToken(t);let a=e.nextCharacterToken;if(!e.hasMoreCharacters||a!==null&&i.Token.isTokenRowDelimiter(a)||a!==null&&i.Token.isTokenDelimiter(a,r))return n.push(``),!0}return!1}}},{"./Token":159,"./column":164}],158:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.Scanner=void 0;let r=e(`./Token`),i=/((?:\r\n)|\n|\r)/;n.Scanner=class{constructor(e){this.cursor=0,this.line=e.line,this.lineLength=this.line.length,this.parserOptions=e.parserOptions,this.hasMoreData=e.hasMoreData,this.cursor=e.cursor||0}get hasMoreCharacters(){return this.lineLength>this.cursor}get nextNonSpaceToken(){let{lineFromCursor:e}=this,t=this.parserOptions.NEXT_TOKEN_REGEXP;if(e.search(t)===-1)return null;let n=t.exec(e);if(n==null)return null;let i=n[1],a=this.cursor+(n.index||0);return new r.Token({token:i,startCursor:a,endCursor:a+i.length-1})}get nextCharacterToken(){let{cursor:e,lineLength:t}=this;return t<=e?null:new r.Token({token:this.line[e],startCursor:e,endCursor:e})}get lineFromCursor(){return this.line.substr(this.cursor)}advancePastLine(){let e=i.exec(this.lineFromCursor);return e?(this.cursor+=(e.index||0)+e[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}advanceTo(e){return this.cursor=e,this}advanceToToken(e){return this.cursor=e.startCursor,this}advancePastToken(e){return this.cursor=e.endCursor+1,this}truncateToCursor(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}},{"./Token":159}],159:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.Token=void 0,n.Token=class{constructor(e){this.token=e.token,this.startCursor=e.startCursor,this.endCursor=e.endCursor}static isTokenRowDelimiter(e){let t=e.token;return t===`\r`||t===`
`||t===`\r
`}static isTokenCarriageReturn(e,t){return e.token===t.carriageReturn}static isTokenComment(e,t){return t.supportsComments&&!!e&&e.token===t.comment}static isTokenEscapeCharacter(e,t){return e.token===t.escapeChar}static isTokenQuote(e,t){return e.token===t.quote}static isTokenDelimiter(e,t){return e.token===t.delimiter}}},{}],160:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.ColumnFormatter=void 0,n.ColumnFormatter=class{constructor(e){e.trim?this.format=e=>e.trim():e.ltrim?this.format=e=>e.trimLeft():e.rtrim?this.format=e=>e.trimRight():this.format=e=>e}}},{}],161:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.ColumnParser=void 0;let r=e(`./NonQuotedColumnParser`),i=e(`./QuotedColumnParser`),a=e(`../Token`);n.ColumnParser=class{constructor(e){this.parserOptions=e,this.quotedColumnParser=new i.QuotedColumnParser(e),this.nonQuotedColumnParser=new r.NonQuotedColumnParser(e)}parse(e){let{nextNonSpaceToken:t}=e;return t!==null&&a.Token.isTokenQuote(t,this.parserOptions)?(e.advanceToToken(t),this.quotedColumnParser.parse(e)):this.nonQuotedColumnParser.parse(e)}}},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.NonQuotedColumnParser=void 0;let r=e(`./ColumnFormatter`),i=e(`../Token`);n.NonQuotedColumnParser=class{constructor(e){this.parserOptions=e,this.columnFormatter=new r.ColumnFormatter(e)}parse(e){if(!e.hasMoreCharacters)return null;let{parserOptions:t}=this,n=[],r=e.nextCharacterToken;for(;r&&!i.Token.isTokenDelimiter(r,t)&&!i.Token.isTokenRowDelimiter(r);r=e.nextCharacterToken)n.push(r.token),e.advancePastToken(r);return this.columnFormatter.format(n.join(``))}}},{"../Token":159,"./ColumnFormatter":160}],163:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.QuotedColumnParser=void 0;let r=e(`./ColumnFormatter`),i=e(`../Token`);n.QuotedColumnParser=class{constructor(e){this.parserOptions=e,this.columnFormatter=new r.ColumnFormatter(e)}parse(e){if(!e.hasMoreCharacters)return null;let t=e.cursor,{foundClosingQuote:n,col:r}=this.gatherDataBetweenQuotes(e);if(!n){if(e.advanceTo(t),!e.hasMoreData)throw Error(`Parse Error: missing closing: '${this.parserOptions.quote||``}' in line: at '${e.lineFromCursor.replace(/[\r\n]/g,`\\n'`)}'`);return null}return this.checkForMalformedColumn(e),r}gatherDataBetweenQuotes(e){let{parserOptions:t}=this,n=!1,r=!1,a=[],o=e.nextCharacterToken;for(;!r&&o!==null;o=e.nextCharacterToken){let s=i.Token.isTokenQuote(o,t);if(!n&&s)n=!0;else if(n)if(i.Token.isTokenEscapeCharacter(o,t)){e.advancePastToken(o);let n=e.nextCharacterToken;n!==null&&(i.Token.isTokenQuote(n,t)||i.Token.isTokenEscapeCharacter(n,t))?(a.push(n.token),o=n):s?r=!0:a.push(o.token)}else s?r=!0:a.push(o.token);e.advancePastToken(o)}return{col:this.columnFormatter.format(a.join(``)),foundClosingQuote:r}}checkForMalformedColumn(e){let{parserOptions:t}=this,{nextNonSpaceToken:n}=e;if(n){let r=i.Token.isTokenDelimiter(n,t),a=i.Token.isTokenRowDelimiter(n);if(!r&&!a){let r=e.lineFromCursor.substr(0,10).replace(/[\r\n]/g,`\\n'`);throw Error(`Parse Error: expected: '${t.escapedDelimiter}' OR new line got: '${n.token}'. at '${r}`)}e.advanceToToken(n)}else e.hasMoreData||e.advancePastLine()}}},{"../Token":159,"./ColumnFormatter":160}],164:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.ColumnFormatter=n.QuotedColumnParser=n.NonQuotedColumnParser=n.ColumnParser=void 0;var r=e(`./ColumnParser`);Object.defineProperty(n,`ColumnParser`,{enumerable:!0,get:function(){return r.ColumnParser}});var i=e(`./NonQuotedColumnParser`);Object.defineProperty(n,`NonQuotedColumnParser`,{enumerable:!0,get:function(){return i.NonQuotedColumnParser}});var a=e(`./QuotedColumnParser`);Object.defineProperty(n,`QuotedColumnParser`,{enumerable:!0,get:function(){return a.QuotedColumnParser}});var o=e(`./ColumnFormatter`);Object.defineProperty(n,`ColumnFormatter`,{enumerable:!0,get:function(){return o.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.QuotedColumnParser=n.NonQuotedColumnParser=n.ColumnParser=n.Token=n.Scanner=n.RowParser=n.Parser=void 0;var r=e(`./Parser`);Object.defineProperty(n,`Parser`,{enumerable:!0,get:function(){return r.Parser}});var i=e(`./RowParser`);Object.defineProperty(n,`RowParser`,{enumerable:!0,get:function(){return i.RowParser}});var a=e(`./Scanner`);Object.defineProperty(n,`Scanner`,{enumerable:!0,get:function(){return a.Scanner}});var o=e(`./Token`);Object.defineProperty(n,`Token`,{enumerable:!0,get:function(){return o.Token}});var s=e(`./column`);Object.defineProperty(n,`ColumnParser`,{enumerable:!0,get:function(){return s.ColumnParser}}),Object.defineProperty(n,`NonQuotedColumnParser`,{enumerable:!0,get:function(){return s.NonQuotedColumnParser}}),Object.defineProperty(n,`QuotedColumnParser`,{enumerable:!0,get:function(){return s.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(e,t,n){var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,`__esModule`,{value:!0}),n.HeaderTransformer=void 0;let i=r(e(`lodash.isundefined`)),a=r(e(`lodash.isfunction`)),o=r(e(`lodash.uniq`)),s=r(e(`lodash.groupby`));n.HeaderTransformer=class{constructor(e){this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=e,!0===e.headers?this.shouldUseFirstRow=!0:Array.isArray(e.headers)?this.setHeaders(e.headers):a.default(e.headers)&&(this.headersTransform=e.headers)}transform(e,t){return this.shouldMapRow(e)?t(null,this.processRow(e)):t(null,{row:null,isValid:!0})}shouldMapRow(e){let{parserOptions:t}=this;if(!this.headersTransform&&t.renameHeaders&&!this.processedFirstRow){if(!this.receivedHeaders)throw Error(`Error renaming headers: new headers must be provided in an array`);return this.processedFirstRow=!0,!1}if(!this.receivedHeaders&&Array.isArray(e)){if(this.headersTransform)this.setHeaders(this.headersTransform(e));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(e)}return!1}return!0}processRow(e){if(!this.headers)return{row:e,isValid:!0};let{parserOptions:t}=this;if(!t.discardUnmappedColumns&&e.length>this.headersLength){if(!t.strictColumnHandling)throw Error(`Unexpected Error: column header mismatch expected: ${this.headersLength} columns got: ${e.length}`);return{row:e,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${e.length}`}}return t.strictColumnHandling&&e.length<this.headersLength?{row:e,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${e.length}`}:{row:this.mapHeaders(e),isValid:!0}}mapHeaders(e){let t={},{headers:n,headersLength:r}=this;for(let a=0;a<r;a+=1){let r=n[a];if(!i.default(r)){let n=e[a];i.default(n)?t[r]=``:t[r]=n}}return t}setHeaders(e){let t=e.filter(e=>!!e);if(o.default(t).length!==t.length){let e=s.default(t),n=Object.keys(e).filter(t=>e[t].length>1);throw Error(`Duplicate headers found `+JSON.stringify(n))}this.headers=e,this.receivedHeaders=!0,this.headersLength=this.headers?.length||0}}},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(e,t,n){var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,`__esModule`,{value:!0}),n.RowTransformerValidator=void 0;let i=r(e(`lodash.isfunction`)),a=e(`../types`);class o{constructor(){this._rowTransform=null,this._rowValidator=null}static createTransform(e){return a.isSyncTransform(e)?(t,n)=>{let r=null;try{r=e(t)}catch(e){return n(e)}return n(null,r)}:e}static createValidator(e){return a.isSyncValidate(e)?(t,n)=>{n(null,{row:t,isValid:e(t)})}:(t,n)=>{e(t,(e,r,i)=>e?n(e):n(null,r?{row:t,isValid:r,reason:i}:{row:t,isValid:!1,reason:i}))}}set rowTransform(e){if(!i.default(e))throw TypeError(`The transform should be a function`);this._rowTransform=o.createTransform(e)}set rowValidator(e){if(!i.default(e))throw TypeError(`The validate should be a function`);this._rowValidator=o.createValidator(e)}transformAndValidate(e,t){return this.callTransformer(e,(e,n)=>e?t(e):n?this.callValidator(n,(e,r)=>e?t(e):r&&!r.isValid?t(null,{row:n,isValid:!1,reason:r.reason}):t(null,{row:n,isValid:!0})):t(null,{row:null,isValid:!0}))}callTransformer(e,t){return this._rowTransform?this._rowTransform(e,t):t(null,e)}callValidator(e,t){return this._rowValidator?this._rowValidator(e,t):t(null,{row:e,isValid:!0})}}n.RowTransformerValidator=o},{"../types":169,"lodash.isfunction":446}],168:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.HeaderTransformer=n.RowTransformerValidator=void 0;var r=e(`./RowTransformerValidator`);Object.defineProperty(n,`RowTransformerValidator`,{enumerable:!0,get:function(){return r.RowTransformerValidator}});var i=e(`./HeaderTransformer`);Object.defineProperty(n,`HeaderTransformer`,{enumerable:!0,get:function(){return i.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.isSyncValidate=n.isSyncTransform=void 0,n.isSyncTransform=e=>e.length===1,n.isSyncValidate=e=>e.length===1},{}],170:[function(e,t,n){let r=n;r.bignum=e(`bn.js`),r.define=e(`./asn1/api`).define,r.base=e(`./asn1/base`),r.constants=e(`./asn1/constants`),r.decoders=e(`./asn1/decoders`),r.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,t,n){let r=e(`./encoders`),i=e(`./decoders`),a=e(`inherits`);function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}n.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){let t=this.name;function n(e){this._initNamed(e,t)}return a(n,e),n.prototype._initNamed=function(t,n){e.call(this,t,n)},new n(this)},o.prototype._getDecoder=function(e){return e||=`der`,this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(i[e])),this.decoders[e]},o.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},o.prototype._getEncoder=function(e){return e||=`der`,this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(r[e])),this.encoders[e]},o.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(e,t,n){let r=e(`inherits`),i=e(`../base/reporter`).Reporter,a=e(`safer-buffer`).Buffer;function o(e,t){i.call(this,t),a.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error(`Input not Buffer`)}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return s.isEncoderBuffer(e)||(e=new s(e,t)),this.length+=e.length,e}),this);else if(typeof e==`number`){if(!(0<=e&&e<=255))return t.error(`non-byte EncoderBuffer value`);this.value=e,this.length=1}else if(typeof e==`string`)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error(`Unsupported type: `+typeof e);this.value=e,this.length=e.length}}r(o,i),n.DecoderBuffer=o,o.isDecoderBuffer=function(e){return e instanceof o?!0:typeof e==`object`&&a.isBuffer(e.base)&&e.constructor.name===`DecoderBuffer`&&typeof e.offset==`number`&&typeof e.length==`number`&&typeof e.save==`function`&&typeof e.restore==`function`&&typeof e.isEmpty==`function`&&typeof e.readUInt8==`function`&&typeof e.skip==`function`&&typeof e.raw==`function`},o.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},o.prototype.restore=function(e){let t=new o(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||`DecoderBuffer overrun`)},o.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||`DecoderBuffer overrun`);let n=new o(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},o.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},n.EncoderBuffer=s,s.isEncoderBuffer=function(e){return e instanceof s?!0:typeof e==`object`&&e.constructor.name===`EncoderBuffer`&&typeof e.length==`number`&&typeof e.join==`function`},s.prototype.join=function(e,t){return e||=a.alloc(this.length),t||=0,this.length===0||(Array.isArray(this.value)?this.value.forEach((function(n){n.join(e,t),t+=n.length})):(typeof this.value==`number`?e[t]=this.value:typeof this.value==`string`?e.write(this.value,t):a.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(e,t,n){let r=n;r.Reporter=e(`./reporter`).Reporter,r.DecoderBuffer=e(`./buffer`).DecoderBuffer,r.EncoderBuffer=e(`./buffer`).EncoderBuffer,r.Node=e(`./node`)},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(e,t,n){let r=e(`../base/reporter`).Reporter,i=e(`../base/buffer`).EncoderBuffer,a=e(`../base/buffer`).DecoderBuffer,o=e(`minimalistic-assert`),s=`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`.split(`.`),c=[`key`,`obj`,`use`,`optional`,`explicit`,`implicit`,`def`,`choice`,`any`,`contains`].concat(s);function l(e,t,n){let r={};this._baseState=r,r.name=n,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=l;let u=[`enc`,`parent`,`children`,`tag`,`args`,`reverseArgs`,`choice`,`optional`,`any`,`obj`,`use`,`alteredUse`,`key`,`default`,`explicit`,`implicit`,`contains`];l.prototype.clone=function(){let e=this._baseState,t={};u.forEach((function(n){t[n]=e[n]}));let n=new this.constructor(t.parent);return n._baseState=t,n},l.prototype._wrap=function(){let e=this._baseState;c.forEach((function(t){this[t]=function(){let n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}}),this)},l.prototype._init=function(e){let t=this._baseState;o(t.parent===null),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),o.equal(t.children.length,1,`Root node can have only one child`)},l.prototype._useArgs=function(e){let t=this._baseState,n=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),n.length!==0&&(o(t.children===null),t.children=n,n.forEach((function(e){e._baseState.parent=this}),this)),e.length!==0&&(o(t.args===null),t.args=e,t.reverseArgs=e.map((function(e){if(typeof e!=`object`||e.constructor!==Object)return e;let t={};return Object.keys(e).forEach((function(n){n==(0|n)&&(n|=0);let r=e[n];t[r]=n})),t})))},[`_peekTag`,`_decodeTag`,`_use`,`_decodeStr`,`_decodeObjid`,`_decodeTime`,`_decodeNull`,`_decodeInt`,`_decodeBool`,`_decodeList`,`_encodeComposite`,`_encodeStr`,`_encodeObjid`,`_encodeTime`,`_encodeNull`,`_encodeInt`,`_encodeBool`].forEach((function(e){l.prototype[e]=function(){let t=this._baseState;throw Error(e+` not implemented for encoding: `+t.enc)}})),s.forEach((function(e){l.prototype[e]=function(){let t=this._baseState,n=Array.prototype.slice.call(arguments);return o(t.tag===null),t.tag=e,this._useArgs(n),this}})),l.prototype.use=function(e){o(e);let t=this._baseState;return o(t.use===null),t.use=e,this},l.prototype.optional=function(){return this._baseState.optional=!0,this},l.prototype.def=function(e){let t=this._baseState;return o(t.default===null),t.default=e,t.optional=!0,this},l.prototype.explicit=function(e){let t=this._baseState;return o(t.explicit===null&&t.implicit===null),t.explicit=e,this},l.prototype.implicit=function(e){let t=this._baseState;return o(t.explicit===null&&t.implicit===null),t.implicit=e,this},l.prototype.obj=function(){let e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,t.length!==0&&this._useArgs(t),this},l.prototype.key=function(e){let t=this._baseState;return o(t.key===null),t.key=e,this},l.prototype.any=function(){return this._baseState.any=!0,this},l.prototype.choice=function(e){let t=this._baseState;return o(t.choice===null),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},l.prototype.contains=function(e){let t=this._baseState;return o(t.use===null),t.contains=e,this},l.prototype._decode=function(e,t){let n=this._baseState;if(n.parent===null)return e.wrapResult(n.children[0]._decode(e,t));let r,i=n.default,o=!0,s=null;if(n.key!==null&&(s=e.enterKey(n.key)),n.optional){let r=null;if(n.explicit===null?n.implicit===null?n.tag!==null&&(r=n.tag):r=n.implicit:r=n.explicit,r!==null||n.any){if(o=this._peekTag(e,r,n.any),e.isError(o))return o}else{let r=e.save();try{n.choice===null?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),o=!0}catch{o=!1}e.restore(r)}}if(n.obj&&o&&(r=e.enterObject()),o){if(n.explicit!==null){let t=this._decodeTag(e,n.explicit);if(e.isError(t))return t;e=t}let r=e.offset;if(n.use===null&&n.choice===null){let t;n.any&&(t=e.save());let r=this._decodeTag(e,n.implicit===null?n.tag:n.implicit,n.any);if(e.isError(r))return r;n.any?i=e.raw(t):e=r}if(t&&t.track&&n.tag!==null&&t.track(e.path(),r,e.length,`tagged`),t&&t.track&&n.tag!==null&&t.track(e.path(),e.offset,e.length,`content`),n.any||(i=n.choice===null?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(n.any||n.choice!==null||n.children===null||n.children.forEach((function(n){n._decode(e,t)})),n.contains&&(n.tag===`octstr`||n.tag===`bitstr`)){let r=new a(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(r,t)}}return n.obj&&o&&(i=e.leaveObject(r)),n.key===null||i===null&&!0!==o?s!==null&&e.exitKey(s):e.leaveKey(s,n.key,i),i},l.prototype._decodeGeneric=function(e,t,n){let r=this._baseState;return e===`seq`||e===`set`?null:e===`seqof`||e===`setof`?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):e===`objid`&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):e===`objid`?this._decodeObjid(t,null,null,n):e===`gentime`||e===`utctime`?this._decodeTime(t,e,n):e===`null_`?this._decodeNull(t,n):e===`bool`?this._decodeBool(t,n):e===`objDesc`?this._decodeStr(t,e,n):e===`int`||e===`enum`?this._decodeInt(t,r.args&&r.args[0],n):r.use===null?t.error(`unknown tag: `+e):this._getUse(r.use,t._reporterState.obj)._decode(t,n)},l.prototype._getUse=function(e,t){let n=this._baseState;return n.useDecoder=this._use(e,t),o(n.useDecoder._baseState.parent===null),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},l.prototype._decodeChoice=function(e,t){let n=this._baseState,r=null,i=!1;return Object.keys(n.choice).some((function(a){let o=e.save(),s=n.choice[a];try{let n=s._decode(e,t);if(e.isError(n))return!1;r={type:a,value:n},i=!0}catch{return e.restore(o),!1}return!0}),this),i?r:e.error(`Choice not matched`)},l.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},l.prototype._encode=function(e,t,n){let r=this._baseState;if(r.default!==null&&r.default===e)return;let i=this._encodeValue(e,t,n);return i===void 0||this._skipDefault(i,t,n)?void 0:i},l.prototype._encodeValue=function(e,t,n){let i=this._baseState;if(i.parent===null)return i.children[0]._encode(e,t||new r);let a=null;if(this.reporter=t,i.optional&&e===void 0){if(i.default===null)return;e=i.default}let o=null,s=!1;if(i.any)a=this._createEncoderBuffer(e);else if(i.choice)a=this._encodeChoice(e,t);else if(i.contains)o=this._getUse(i.contains,n)._encode(e,t),s=!0;else if(i.children)o=i.children.map((function(n){if(n._baseState.tag===`null_`)return n._encode(null,t,e);if(n._baseState.key===null)return t.error(`Child should have a key`);let r=t.enterKey(n._baseState.key);if(typeof e!=`object`)return t.error(`Child expected, but input is not object`);let i=n._encode(e[n._baseState.key],t,e);return t.leaveKey(r),i}),this).filter((function(e){return e})),o=this._createEncoderBuffer(o);else if(i.tag===`seqof`||i.tag===`setof`){if(!i.args||i.args.length!==1)return t.error(`Too many args for : `+i.tag);if(!Array.isArray(e))return t.error(`seqof/setof, but data is not Array`);let n=this.clone();n._baseState.implicit=null,o=this._createEncoderBuffer(e.map((function(n){let r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)}),n))}else i.use===null?(o=this._encodePrimitive(i.tag,e),s=!0):a=this._getUse(i.use,n)._encode(e,t);if(!i.any&&i.choice===null){let e=i.implicit===null?i.tag:i.implicit,n=i.implicit===null?`universal`:`context`;e===null?i.use===null&&t.error(`Tag could be omitted only for .use()`):i.use===null&&(a=this._encodeComposite(e,s,n,o))}return i.explicit!==null&&(a=this._encodeComposite(i.explicit,!1,`context`,a)),a},l.prototype._encodeChoice=function(e,t){let n=this._baseState,r=n.choice[e.type];return r||o(!1,e.type+` not found in `+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},l.prototype._encodePrimitive=function(e,t){let n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if(e===`objid`&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if(e===`objid`)return this._encodeObjid(t,null,null);if(e===`gentime`||e===`utctime`)return this._encodeTime(t,e);if(e===`null_`)return this._encodeNull();if(e===`int`||e===`enum`)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if(e===`bool`)return this._encodeBool(t);if(e===`objDesc`)return this._encodeStr(t,e);throw Error(`Unsupported tag: `+e)},l.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},l.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(e,t,n){let r=e(`inherits`);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function a(e,t){this.path=e,this.rethrow(t)}n.Reporter=i,i.prototype.isError=function(e){return e instanceof a},i.prototype.save=function(){let e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){let t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){let t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,n){let r=this._reporterState;this.exitKey(e),r.obj!==null&&(r.obj[t]=n)},i.prototype.path=function(){return this._reporterState.path.join(`/`)},i.prototype.enterObject=function(){let e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){let t=this._reporterState,n=t.obj;return t.obj=e,n},i.prototype.error=function(e){let t,n=this._reporterState,r=e instanceof a;if(t=r?e:new a(n.path.map((function(e){return`[`+JSON.stringify(e)+`]`})).join(``),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},i.prototype.wrapResult=function(e){let t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(a,Error),a.prototype.rethrow=function(e){if(this.message=e+` at: `+(this.path||`(shallow)`),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw Error(this.message)}catch(e){this.stack=e.stack}return this}},{inherits:440}],176:[function(e,t,n){function r(e){let t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);let r=e[n];t[r]=n})),t}n.tagClass={0:`universal`,1:`application`,2:`context`,3:`private`},n.tagClassByName=r(n.tagClass),n.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`},n.tagByName=r(n.tag)},{}],177:[function(e,t,n){let r=n;r._reverse=function(e){let t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);let r=e[n];t[r]=n})),t},r.der=e(`./der`)},{"./der":176}],178:[function(e,t,n){let r=e(`inherits`),i=e(`bn.js`),a=e(`../base/buffer`).DecoderBuffer,o=e(`../base/node`),s=e(`../constants/der`);function c(e){this.enc=`der`,this.name=e.name,this.entity=e,this.tree=new l,this.tree._init(e.body)}function l(e){o.call(this,`der`,e)}function u(e,t){let n=e.readUInt8(t);if(e.isError(n))return n;let r=s.tagClass[n>>6],i=(32&n)==0;if((31&n)==31){let r=n;for(n=0;(128&r)==128;){if(r=e.readUInt8(t),e.isError(r))return r;n<<=7,n|=127&r}}else n&=31;return{cls:r,primitive:i,tag:n,tagStr:s.tag[n]}}function d(e,t,n){let r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&r===128)return null;if(!(128&r))return r;let i=127&r;if(i>4)return e.error(`length octect is too long`);r=0;for(let t=0;t<i;t++){r<<=8;let t=e.readUInt8(n);if(e.isError(t))return t;r|=t}return r}t.exports=c,c.prototype.decode=function(e,t){return a.isDecoderBuffer(e)||(e=new a(e,t)),this.tree._decode(e,t)},r(l,o),l.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;let r=e.save(),i=u(e,`Failed to peek tag: "`+t+`"`);return e.isError(i)?i:(e.restore(r),i.tag===t||i.tagStr===t||i.tagStr+`of`===t||n)},l.prototype._decodeTag=function(e,t,n){let r=u(e,`Failed to decode tag of "`+t+`"`);if(e.isError(r))return r;let i=d(e,r.primitive,`Failed to get length of "`+t+`"`);if(e.isError(i))return i;if(!n&&r.tag!==t&&r.tagStr!==t&&r.tagStr+`of`!==t)return e.error(`Failed to match tag: "`+t+`"`);if(r.primitive||i!==null)return e.skip(i,`Failed to match body of: "`+t+`"`);let a=e.save(),o=this._skipUntilEnd(e,`Failed to skip indefinite length body: "`+this.tag+`"`);return e.isError(o)?o:(i=e.offset-a.offset,e.restore(a),e.skip(i,`Failed to match body of: "`+t+`"`))},l.prototype._skipUntilEnd=function(e,t){for(;;){let n=u(e,t);if(e.isError(n))return n;let r=d(e,n.primitive,t);if(e.isError(r))return r;let i;if(i=n.primitive||r!==null?e.skip(r):this._skipUntilEnd(e,t),e.isError(i))return i;if(n.tagStr===`end`)break}},l.prototype._decodeList=function(e,t,n,r){let i=[];for(;!e.isEmpty();){let t=this._peekTag(e,`end`);if(e.isError(t))return t;let a=n.decode(e,`der`,r);if(e.isError(a)&&t)break;i.push(a)}return i},l.prototype._decodeStr=function(e,t){if(t===`bitstr`){let t=e.readUInt8();return e.isError(t)?t:{unused:t,data:e.raw()}}if(t===`bmpstr`){let t=e.raw();if(t.length%2==1)return e.error(`Decoding of string type: bmpstr length mismatch`);let n=``;for(let e=0;e<t.length/2;e++)n+=String.fromCharCode(t.readUInt16BE(2*e));return n}if(t===`numstr`){let t=e.raw().toString(`ascii`);return this._isNumstr(t)?t:e.error(`Decoding of string type: numstr unsupported characters`)}if(t===`octstr`||t===`objDesc`)return e.raw();if(t===`printstr`){let t=e.raw().toString(`ascii`);return this._isPrintstr(t)?t:e.error(`Decoding of string type: printstr unsupported characters`)}return/str$/.test(t)?e.raw().toString():e.error(`Decoding of string type: `+t+` unsupported`)},l.prototype._decodeObjid=function(e,t,n){let r,i=[],a=0,o=0;for(;!e.isEmpty();)o=e.readUInt8(),a<<=7,a|=127&o,!(128&o)&&(i.push(a),a=0);128&o&&i.push(a);let s=i[0]/40|0,c=i[0]%40;if(r=n?i:[s,c].concat(i.slice(1)),t){let e=t[r.join(` `)];e===void 0&&(e=t[r.join(`.`)]),e!==void 0&&(r=e)}return r},l.prototype._decodeTime=function(e,t){let n=e.raw().toString(),r,i,a,o,s,c;if(t===`gentime`)r=0|n.slice(0,4),i=0|n.slice(4,6),a=0|n.slice(6,8),o=0|n.slice(8,10),s=0|n.slice(10,12),c=0|n.slice(12,14);else{if(t!==`utctime`)return e.error(`Decoding `+t+` time is not supported yet`);r=0|n.slice(0,2),i=0|n.slice(2,4),a=0|n.slice(4,6),o=0|n.slice(6,8),s=0|n.slice(8,10),c=0|n.slice(10,12),r=r<70?2e3+r:1900+r}return Date.UTC(r,i-1,a,o,s,c,0)},l.prototype._decodeNull=function(){return null},l.prototype._decodeBool=function(e){let t=e.readUInt8();return e.isError(t)?t:t!==0},l.prototype._decodeInt=function(e,t){let n=new i(e.raw());return t&&(n=t[n.toString(10)]||n),n},l.prototype._use=function(e,t){return typeof e==`function`&&(e=e(t)),e._getDecoder(`der`).tree}},{"../base/buffer":172,"../base/node":174,"../constants/der":176,"bn.js":184,inherits:440}],179:[function(e,t,n){let r=n;r.der=e(`./der`),r.pem=e(`./pem`)},{"./der":178,"./pem":180}],180:[function(e,t,n){let r=e(`inherits`),i=e(`safer-buffer`).Buffer,a=e(`./der`);function o(e){a.call(this,e),this.enc=`pem`}r(o,a),t.exports=o,o.prototype.decode=function(e,t){let n=e.toString().split(/[\r\n]+/g),r=t.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,c=-1;for(let e=0;e<n.length;e++){let t=n[e].match(o);if(t!==null&&t[2]===r){if(s!==-1){if(t[1]!==`END`)break;c=e;break}if(t[1]!==`BEGIN`)break;s=e}}if(s===-1||c===-1)throw Error(`PEM section not found for: `+r);let l=n.slice(s+1,c).join(``);l.replace(/[^a-z0-9+/=]+/gi,``);let u=i.from(l,`base64`);return a.prototype.decode.call(this,u,t)}},{"./der":178,inherits:440,"safer-buffer":495}],181:[function(e,t,n){let r=e(`inherits`),i=e(`safer-buffer`).Buffer,a=e(`../base/node`),o=e(`../constants/der`);function s(e){this.enc=`der`,this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){a.call(this,`der`,e)}function l(e){return e<10?`0`+e:e}t.exports=s,s.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},r(c,a),c.prototype._encodeComposite=function(e,t,n,r){let a=function(e,t,n,r){let i;if(e===`seqof`?e=`seq`:e===`setof`&&(e=`set`),o.tagByName.hasOwnProperty(e))i=o.tagByName[e];else{if(typeof e!=`number`||(0|e)!==e)return r.error(`Unknown tag: `+e);i=e}return i>=31?r.error(`Multi-octet tag encoding unsupported`):(t||(i|=32),i|=o.tagClassByName[n||`universal`]<<6,i)}(e,t,n,this.reporter);if(r.length<128){let e=i.alloc(2);return e[0]=a,e[1]=r.length,this._createEncoderBuffer([e,r])}let s=1;for(let e=r.length;e>=256;e>>=8)s++;let c=i.alloc(2+s);c[0]=a,c[1]=128|s;for(let e=1+s,t=r.length;t>0;e--,t>>=8)c[e]=255&t;return this._createEncoderBuffer([c,r])},c.prototype._encodeStr=function(e,t){if(t===`bitstr`)return this._createEncoderBuffer([0|e.unused,e.data]);if(t===`bmpstr`){let t=i.alloc(2*e.length);for(let n=0;n<e.length;n++)t.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(t)}return t===`numstr`?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error(`Encoding of string type: numstr supports only digits and space`):t===`printstr`?this._isPrintstr(e)?this._createEncoderBuffer(e):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(t)||t===`objDesc`?this._createEncoderBuffer(e):this.reporter.error(`Encoding of string type: `+t+` unsupported`)},c.prototype._encodeObjid=function(e,t,n){if(typeof e==`string`){if(!t)return this.reporter.error(`string objid given, but no values map found`);if(!t.hasOwnProperty(e))return this.reporter.error(`objid not found in values map`);e=t[e].split(/[\s.]+/g);for(let t=0;t<e.length;t++)e[t]|=0}else if(Array.isArray(e)){e=e.slice();for(let t=0;t<e.length;t++)e[t]|=0}if(!Array.isArray(e))return this.reporter.error(`objid() should be either array or string, got: `+JSON.stringify(e));if(!n){if(e[1]>=40)return this.reporter.error(`Second objid identifier OOB`);e.splice(0,2,40*e[0]+e[1])}let r=0;for(let t=0;t<e.length;t++){let n=e[t];for(r++;n>=128;n>>=7)r++}let a=i.alloc(r),o=a.length-1;for(let t=e.length-1;t>=0;t--){let n=e[t];for(a[o--]=127&n;(n>>=7)>0;)a[o--]=128|127&n}return this._createEncoderBuffer(a)},c.prototype._encodeTime=function(e,t){let n,r=new Date(e);return t===`gentime`?n=[l(r.getUTCFullYear()),l(r.getUTCMonth()+1),l(r.getUTCDate()),l(r.getUTCHours()),l(r.getUTCMinutes()),l(r.getUTCSeconds()),`Z`].join(``):t===`utctime`?n=[l(r.getUTCFullYear()%100),l(r.getUTCMonth()+1),l(r.getUTCDate()),l(r.getUTCHours()),l(r.getUTCMinutes()),l(r.getUTCSeconds()),`Z`].join(``):this.reporter.error(`Encoding `+t+` time is not supported yet`),this._encodeStr(n,`octstr`)},c.prototype._encodeNull=function(){return this._createEncoderBuffer(``)},c.prototype._encodeInt=function(e,t){if(typeof e==`string`){if(!t)return this.reporter.error(`String int or enum given, but no values map`);if(!t.hasOwnProperty(e))return this.reporter.error(`Values map doesn't contain: `+JSON.stringify(e));e=t[e]}if(typeof e!=`number`&&!i.isBuffer(e)){let t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=i.from(t)}if(i.isBuffer(e)){let t=e.length;e.length===0&&t++;let n=i.alloc(t);return e.copy(n),e.length===0&&(n[0]=0),this._createEncoderBuffer(n)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let n=1;for(let t=e;t>=256;t>>=8)n++;let r=Array(n);for(let t=r.length-1;t>=0;t--)r[t]=255&e,e>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(i.from(r))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},c.prototype._use=function(e,t){return typeof e==`function`&&(e=e(t)),e._getEncoder(`der`).tree},c.prototype._skipDefault=function(e,t,n){let r=this._baseState,i;if(r.default===null)return!1;let a=e.join();if(r.defaultBuffer===void 0&&(r.defaultBuffer=this._encodeValue(r.default,t,n).join()),a.length!==r.defaultBuffer.length)return!1;for(i=0;i<a.length;i++)if(a[i]!==r.defaultBuffer[i])return!1;return!0}},{"../base/node":174,"../constants/der":176,inherits:440,"safer-buffer":495}],182:[function(e,t,n){let r=n;r.der=e(`./der`),r.pem=e(`./pem`)},{"./der":181,"./pem":183}],183:[function(e,t,n){let r=e(`inherits`),i=e(`./der`);function a(e){i.call(this,e),this.enc=`pem`}r(a,i),t.exports=a,a.prototype.encode=function(e,t){let n=i.prototype.encode.call(this,e).toString(`base64`),r=[`-----BEGIN `+t.label+`-----`];for(let e=0;e<n.length;e+=64)r.push(n.slice(e,e+64));return r.push(`-----END `+t.label+`-----`),r.join(`
`)}},{"./der":181,inherits:440}],184:[function(e,t,n){(function(t,n){function r(e,t){if(!e)throw Error(t||`Assertion failed`)}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function a(e,t,n){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,e!==null&&(t!==`le`&&t!==`be`||(n=t,t=10),this._init(e||0,t||10,n||`be`))}var o;typeof t==`object`?t.exports=a:(void 0).BN=a,a.BN=a,a.wordSize=26;try{o=typeof window<`u`&&window.Buffer!==void 0?window.Buffer:e(`buffer`).Buffer}catch{}function s(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function l(e,t,n,r){for(var i=0,a=Math.min(e.length,n),o=t;o<a;o++){var s=e.charCodeAt(o)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}a.isBN=function(e){return e instanceof a||typeof e==`object`&&!!e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,n){if(typeof e==`number`)return this._initNumber(e,t,n);if(typeof e==`object`)return this._initArray(e,t,n);t===`hex`&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;(e=e.toString().replace(/\s+/g,``))[0]===`-`&&(i++,this.negative=1),i<e.length&&(t===16?this._parseHex(e,i,n):(this._parseBase(e,t,i),n===`le`&&this._initArray(this.toArray(),t,n)))},a.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),n===`le`&&this._initArray(this.toArray(),t,n)},a.prototype._initArray=function(e,t,n){if(r(typeof e.length==`number`),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var a,o,s=0;if(n===`be`)for(i=e.length-1,a=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if(n===`le`)for(i=0,a=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},a.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,a=0,o=0;if(n===`be`)for(r=e.length-1;r>=t;r-=2)i=c(e,t,r)<<a,this.words[o]|=67108863&i,a>=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;else for(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)i=c(e,t,r)<<a,this.words[o]|=67108863&i,a>=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=e.length-n,o=a%r,s=Math.min(a,a-o)+n,c=0,u=n;u<s;u+=r)c=l(e,u,u+r,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(o!==0){var d=1;for(c=l(e,u,e.length,t),u=0;u<o;u++)d*=t;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this.strip()},a.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?`<BN-R: `:`<BN: `)+this.toString(16)+`>`};var u=`.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`.split(`.`),d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[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 p(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],a=0|t.words[0],o=i*a,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var l=1;l<r;l++){for(var u=c>>>26,d=67108863&c,f=Math.min(l,t.length-1),p=Math.max(0,l-e.length+1);p<=f;p++){var m=l-p|0;u+=(o=(i=0|e.words[m])*(a=0|t.words[p])+d)/67108864|0,d=67108863&o}n.words[l]=0|d,c=0|u}return c===0?n.length--:n.words[l]=0|c,n.strip()}a.prototype.toString=function(e,t){var n;if(t=0|t||1,(e||=10)===16||e===`hex`){n=``;for(var i=0,a=0,o=0;o<this.length;o++){var s=this.words[o],c=(16777215&(s<<i|a)).toString(16);n=(a=s>>>24-i&16777215)!=0||o!==this.length-1?u[6-c.length]+c+n:c+n,(i+=2)>=26&&(i-=26,o--)}for(a!==0&&(n=a.toString(16)+n);n.length%t!=0;)n=`0`+n;return this.negative!==0&&(n=`-`+n),n}if(e===(0|e)&&e>=2&&e<=36){var l=d[e],p=f[e];n=``;var m=this.clone();for(m.negative=0;!m.isZero();){var h=m.modn(p).toString(e);n=(m=m.idivn(p)).isZero()?h+n:u[l-h.length]+h+n}for(this.isZero()&&(n=`0`+n);n.length%t!=0;)n=`0`+n;return this.negative!==0&&(n=`-`+n),n}r(!1,`Base should be between 2 and 36`)},a.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=67108864*this.words[1]:this.length===3&&this.words[2]===1?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,`Number can only safely store up to 53 bits`),this.negative===0?e:-e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return r(o!==void 0),this.toArrayLike(o,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),a=n||Math.max(1,i);r(i<=a,`byte array longer than desired length`),r(a>0,`Requested array length <= 0`),this.strip();var o,s,c=t===`le`,l=new e(a),u=this.clone();if(c){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),l[s]=o;for(;s<a;s++)l[s]=0}else{for(s=0;s<a-i;s++)l[s]=0;for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),l[a-s-1]=o}return l},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},a.prototype._zeroBits=function(e){if(e===0)return 26;var t=e,n=0;return!(8191&t)&&(n+=13,t>>>=13),!(127&t)&&(n+=7,t>>>=7),!(15&t)&&(n+=4,t>>>=4),!(3&t)&&(n+=2,t>>>=2),!(1&t)&&n++,n},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,n!==26)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return this.negative===0?this.clone():this.abs().inotn(e).iaddn(1)},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},a.prototype.ior=function(e){return r((this.negative|e.negative)==0),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){for(var t=this.length>e.length?e:this,n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},a.prototype.iand=function(e){return r((this.negative|e.negative)==0),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},a.prototype.ixor=function(e){return r((this.negative|e.negative)==0),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){r(typeof e==`number`&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){r(typeof e==`number`&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},a.prototype.iadd=function(e){var t,n,r;if(this.negative!==0&&e.negative===0)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a<r.length;a++)t=(0|n.words[a])+(0|r.words[a])+i,this.words[a]=67108863&t,i=t>>>26;for(;i!==0&&a<n.length;a++)t=(0|n.words[a])+i,this.words[a]=67108863&t,i=t>>>26;if(this.length=n.length,i!==0)this.words[this.length]=i,this.length++;else if(n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this},a.prototype.add=function(e){var t;return e.negative!==0&&this.negative===0?(e.negative=0,t=this.sub(e),e.negative^=1,t):e.negative===0&&this.negative!==0?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(i===0)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var a=0,o=0;o<r.length;o++)a=(t=(0|n.words[o])-(0|r.words[o])+a)>>26,this.words[o]=67108863&t;for(;a!==0&&o<n.length;o++)a=(t=(0|n.words[o])+a)>>26,this.words[o]=67108863&t;if(a===0&&o<n.length&&n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this.length=Math.max(this.length,o),n!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var m=function(e,t,n){var r,i,a,o=e.words,s=t.words,c=n.words,l=0,u=0|o[0],d=8191&u,f=u>>>13,p=0|o[1],m=8191&p,h=p>>>13,g=0|o[2],_=8191&g,v=g>>>13,y=0|o[3],b=8191&y,x=y>>>13,S=0|o[4],C=8191&S,w=S>>>13,T=0|o[5],E=8191&T,D=T>>>13,O=0|o[6],k=8191&O,A=O>>>13,j=0|o[7],M=8191&j,N=j>>>13,P=0|o[8],F=8191&P,I=P>>>13,ee=0|o[9],L=8191&ee,R=ee>>>13,z=0|s[0],B=8191&z,V=z>>>13,H=0|s[1],U=8191&H,W=H>>>13,te=0|s[2],ne=8191&te,G=te>>>13,re=0|s[3],ie=8191&re,K=re>>>13,q=0|s[4],J=8191&q,Y=q>>>13,ae=0|s[5],oe=8191&ae,X=ae>>>13,se=0|s[6],ce=8191&se,Z=se>>>13,le=0|s[7],ue=8191&le,de=le>>>13,fe=0|s[8],pe=8191&fe,Q=fe>>>13,me=0|s[9],$=8191&me,he=me>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(l+(r=Math.imul(d,B))|0)+((8191&(i=(i=Math.imul(d,V))+Math.imul(f,B)|0))<<13)|0;l=((a=Math.imul(f,V))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(m,B),i=(i=Math.imul(m,V))+Math.imul(h,B)|0,a=Math.imul(h,V);var _e=(l+(r=r+Math.imul(d,U)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(f,U)|0))<<13)|0;l=((a=a+Math.imul(f,W)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(_,B),i=(i=Math.imul(_,V))+Math.imul(v,B)|0,a=Math.imul(v,V),r=r+Math.imul(m,U)|0,i=(i=i+Math.imul(m,W)|0)+Math.imul(h,U)|0,a=a+Math.imul(h,W)|0;var ve=(l+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,ne)|0))<<13)|0;l=((a=a+Math.imul(f,G)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(b,B),i=(i=Math.imul(b,V))+Math.imul(x,B)|0,a=Math.imul(x,V),r=r+Math.imul(_,U)|0,i=(i=i+Math.imul(_,W)|0)+Math.imul(v,U)|0,a=a+Math.imul(v,W)|0,r=r+Math.imul(m,ne)|0,i=(i=i+Math.imul(m,G)|0)+Math.imul(h,ne)|0,a=a+Math.imul(h,G)|0;var ye=(l+(r=r+Math.imul(d,ie)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(f,ie)|0))<<13)|0;l=((a=a+Math.imul(f,K)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(C,B),i=(i=Math.imul(C,V))+Math.imul(w,B)|0,a=Math.imul(w,V),r=r+Math.imul(b,U)|0,i=(i=i+Math.imul(b,W)|0)+Math.imul(x,U)|0,a=a+Math.imul(x,W)|0,r=r+Math.imul(_,ne)|0,i=(i=i+Math.imul(_,G)|0)+Math.imul(v,ne)|0,a=a+Math.imul(v,G)|0,r=r+Math.imul(m,ie)|0,i=(i=i+Math.imul(m,K)|0)+Math.imul(h,ie)|0,a=a+Math.imul(h,K)|0;var be=(l+(r=r+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,Y)|0)+Math.imul(f,J)|0))<<13)|0;l=((a=a+Math.imul(f,Y)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(E,B),i=(i=Math.imul(E,V))+Math.imul(D,B)|0,a=Math.imul(D,V),r=r+Math.imul(C,U)|0,i=(i=i+Math.imul(C,W)|0)+Math.imul(w,U)|0,a=a+Math.imul(w,W)|0,r=r+Math.imul(b,ne)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(x,ne)|0,a=a+Math.imul(x,G)|0,r=r+Math.imul(_,ie)|0,i=(i=i+Math.imul(_,K)|0)+Math.imul(v,ie)|0,a=a+Math.imul(v,K)|0,r=r+Math.imul(m,J)|0,i=(i=i+Math.imul(m,Y)|0)+Math.imul(h,J)|0,a=a+Math.imul(h,Y)|0;var xe=(l+(r=r+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(f,oe)|0))<<13)|0;l=((a=a+Math.imul(f,X)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(k,B),i=(i=Math.imul(k,V))+Math.imul(A,B)|0,a=Math.imul(A,V),r=r+Math.imul(E,U)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(D,U)|0,a=a+Math.imul(D,W)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(w,ne)|0,a=a+Math.imul(w,G)|0,r=r+Math.imul(b,ie)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(x,ie)|0,a=a+Math.imul(x,K)|0,r=r+Math.imul(_,J)|0,i=(i=i+Math.imul(_,Y)|0)+Math.imul(v,J)|0,a=a+Math.imul(v,Y)|0,r=r+Math.imul(m,oe)|0,i=(i=i+Math.imul(m,X)|0)+Math.imul(h,oe)|0,a=a+Math.imul(h,X)|0;var Se=(l+(r=r+Math.imul(d,ce)|0)|0)+((8191&(i=(i=i+Math.imul(d,Z)|0)+Math.imul(f,ce)|0))<<13)|0;l=((a=a+Math.imul(f,Z)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(M,B),i=(i=Math.imul(M,V))+Math.imul(N,B)|0,a=Math.imul(N,V),r=r+Math.imul(k,U)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(A,U)|0,a=a+Math.imul(A,W)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(D,ne)|0,a=a+Math.imul(D,G)|0,r=r+Math.imul(C,ie)|0,i=(i=i+Math.imul(C,K)|0)+Math.imul(w,ie)|0,a=a+Math.imul(w,K)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(x,J)|0,a=a+Math.imul(x,Y)|0,r=r+Math.imul(_,oe)|0,i=(i=i+Math.imul(_,X)|0)+Math.imul(v,oe)|0,a=a+Math.imul(v,X)|0,r=r+Math.imul(m,ce)|0,i=(i=i+Math.imul(m,Z)|0)+Math.imul(h,ce)|0,a=a+Math.imul(h,Z)|0;var Ce=(l+(r=r+Math.imul(d,ue)|0)|0)+((8191&(i=(i=i+Math.imul(d,de)|0)+Math.imul(f,ue)|0))<<13)|0;l=((a=a+Math.imul(f,de)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(F,B),i=(i=Math.imul(F,V))+Math.imul(I,B)|0,a=Math.imul(I,V),r=r+Math.imul(M,U)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(N,U)|0,a=a+Math.imul(N,W)|0,r=r+Math.imul(k,ne)|0,i=(i=i+Math.imul(k,G)|0)+Math.imul(A,ne)|0,a=a+Math.imul(A,G)|0,r=r+Math.imul(E,ie)|0,i=(i=i+Math.imul(E,K)|0)+Math.imul(D,ie)|0,a=a+Math.imul(D,K)|0,r=r+Math.imul(C,J)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(w,J)|0,a=a+Math.imul(w,Y)|0,r=r+Math.imul(b,oe)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(x,oe)|0,a=a+Math.imul(x,X)|0,r=r+Math.imul(_,ce)|0,i=(i=i+Math.imul(_,Z)|0)+Math.imul(v,ce)|0,a=a+Math.imul(v,Z)|0,r=r+Math.imul(m,ue)|0,i=(i=i+Math.imul(m,de)|0)+Math.imul(h,ue)|0,a=a+Math.imul(h,de)|0;var we=(l+(r=r+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,Q)|0)+Math.imul(f,pe)|0))<<13)|0;l=((a=a+Math.imul(f,Q)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(L,B),i=(i=Math.imul(L,V))+Math.imul(R,B)|0,a=Math.imul(R,V),r=r+Math.imul(F,U)|0,i=(i=i+Math.imul(F,W)|0)+Math.imul(I,U)|0,a=a+Math.imul(I,W)|0,r=r+Math.imul(M,ne)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(N,ne)|0,a=a+Math.imul(N,G)|0,r=r+Math.imul(k,ie)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(A,ie)|0,a=a+Math.imul(A,K)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(D,J)|0,a=a+Math.imul(D,Y)|0,r=r+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(w,oe)|0,a=a+Math.imul(w,X)|0,r=r+Math.imul(b,ce)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(x,ce)|0,a=a+Math.imul(x,Z)|0,r=r+Math.imul(_,ue)|0,i=(i=i+Math.imul(_,de)|0)+Math.imul(v,ue)|0,a=a+Math.imul(v,de)|0,r=r+Math.imul(m,pe)|0,i=(i=i+Math.imul(m,Q)|0)+Math.imul(h,pe)|0,a=a+Math.imul(h,Q)|0;var Te=(l+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,he)|0)+Math.imul(f,$)|0))<<13)|0;l=((a=a+Math.imul(f,he)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(L,U),i=(i=Math.imul(L,W))+Math.imul(R,U)|0,a=Math.imul(R,W),r=r+Math.imul(F,ne)|0,i=(i=i+Math.imul(F,G)|0)+Math.imul(I,ne)|0,a=a+Math.imul(I,G)|0,r=r+Math.imul(M,ie)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(N,ie)|0,a=a+Math.imul(N,K)|0,r=r+Math.imul(k,J)|0,i=(i=i+Math.imul(k,Y)|0)+Math.imul(A,J)|0,a=a+Math.imul(A,Y)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(D,oe)|0,a=a+Math.imul(D,X)|0,r=r+Math.imul(C,ce)|0,i=(i=i+Math.imul(C,Z)|0)+Math.imul(w,ce)|0,a=a+Math.imul(w,Z)|0,r=r+Math.imul(b,ue)|0,i=(i=i+Math.imul(b,de)|0)+Math.imul(x,ue)|0,a=a+Math.imul(x,de)|0,r=r+Math.imul(_,pe)|0,i=(i=i+Math.imul(_,Q)|0)+Math.imul(v,pe)|0,a=a+Math.imul(v,Q)|0;var Ee=(l+(r=r+Math.imul(m,$)|0)|0)+((8191&(i=(i=i+Math.imul(m,he)|0)+Math.imul(h,$)|0))<<13)|0;l=((a=a+Math.imul(h,he)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(L,ne),i=(i=Math.imul(L,G))+Math.imul(R,ne)|0,a=Math.imul(R,G),r=r+Math.imul(F,ie)|0,i=(i=i+Math.imul(F,K)|0)+Math.imul(I,ie)|0,a=a+Math.imul(I,K)|0,r=r+Math.imul(M,J)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(N,J)|0,a=a+Math.imul(N,Y)|0,r=r+Math.imul(k,oe)|0,i=(i=i+Math.imul(k,X)|0)+Math.imul(A,oe)|0,a=a+Math.imul(A,X)|0,r=r+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(D,ce)|0,a=a+Math.imul(D,Z)|0,r=r+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(w,ue)|0,a=a+Math.imul(w,de)|0,r=r+Math.imul(b,pe)|0,i=(i=i+Math.imul(b,Q)|0)+Math.imul(x,pe)|0,a=a+Math.imul(x,Q)|0;var De=(l+(r=r+Math.imul(_,$)|0)|0)+((8191&(i=(i=i+Math.imul(_,he)|0)+Math.imul(v,$)|0))<<13)|0;l=((a=a+Math.imul(v,he)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863,r=Math.imul(L,ie),i=(i=Math.imul(L,K))+Math.imul(R,ie)|0,a=Math.imul(R,K),r=r+Math.imul(F,J)|0,i=(i=i+Math.imul(F,Y)|0)+Math.imul(I,J)|0,a=a+Math.imul(I,Y)|0,r=r+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,X)|0)+Math.imul(N,oe)|0,a=a+Math.imul(N,X)|0,r=r+Math.imul(k,ce)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(A,ce)|0,a=a+Math.imul(A,Z)|0,r=r+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,de)|0)+Math.imul(D,ue)|0,a=a+Math.imul(D,de)|0,r=r+Math.imul(C,pe)|0,i=(i=i+Math.imul(C,Q)|0)+Math.imul(w,pe)|0,a=a+Math.imul(w,Q)|0;var Oe=(l+(r=r+Math.imul(b,$)|0)|0)+((8191&(i=(i=i+Math.imul(b,he)|0)+Math.imul(x,$)|0))<<13)|0;l=((a=a+Math.imul(x,he)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(L,J),i=(i=Math.imul(L,Y))+Math.imul(R,J)|0,a=Math.imul(R,Y),r=r+Math.imul(F,oe)|0,i=(i=i+Math.imul(F,X)|0)+Math.imul(I,oe)|0,a=a+Math.imul(I,X)|0,r=r+Math.imul(M,ce)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(N,ce)|0,a=a+Math.imul(N,Z)|0,r=r+Math.imul(k,ue)|0,i=(i=i+Math.imul(k,de)|0)+Math.imul(A,ue)|0,a=a+Math.imul(A,de)|0,r=r+Math.imul(E,pe)|0,i=(i=i+Math.imul(E,Q)|0)+Math.imul(D,pe)|0,a=a+Math.imul(D,Q)|0;var ke=(l+(r=r+Math.imul(C,$)|0)|0)+((8191&(i=(i=i+Math.imul(C,he)|0)+Math.imul(w,$)|0))<<13)|0;l=((a=a+Math.imul(w,he)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(L,oe),i=(i=Math.imul(L,X))+Math.imul(R,oe)|0,a=Math.imul(R,X),r=r+Math.imul(F,ce)|0,i=(i=i+Math.imul(F,Z)|0)+Math.imul(I,ce)|0,a=a+Math.imul(I,Z)|0,r=r+Math.imul(M,ue)|0,i=(i=i+Math.imul(M,de)|0)+Math.imul(N,ue)|0,a=a+Math.imul(N,de)|0,r=r+Math.imul(k,pe)|0,i=(i=i+Math.imul(k,Q)|0)+Math.imul(A,pe)|0,a=a+Math.imul(A,Q)|0;var Ae=(l+(r=r+Math.imul(E,$)|0)|0)+((8191&(i=(i=i+Math.imul(E,he)|0)+Math.imul(D,$)|0))<<13)|0;l=((a=a+Math.imul(D,he)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(L,ce),i=(i=Math.imul(L,Z))+Math.imul(R,ce)|0,a=Math.imul(R,Z),r=r+Math.imul(F,ue)|0,i=(i=i+Math.imul(F,de)|0)+Math.imul(I,ue)|0,a=a+Math.imul(I,de)|0,r=r+Math.imul(M,pe)|0,i=(i=i+Math.imul(M,Q)|0)+Math.imul(N,pe)|0,a=a+Math.imul(N,Q)|0;var je=(l+(r=r+Math.imul(k,$)|0)|0)+((8191&(i=(i=i+Math.imul(k,he)|0)+Math.imul(A,$)|0))<<13)|0;l=((a=a+Math.imul(A,he)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(L,ue),i=(i=Math.imul(L,de))+Math.imul(R,ue)|0,a=Math.imul(R,de),r=r+Math.imul(F,pe)|0,i=(i=i+Math.imul(F,Q)|0)+Math.imul(I,pe)|0,a=a+Math.imul(I,Q)|0;var Me=(l+(r=r+Math.imul(M,$)|0)|0)+((8191&(i=(i=i+Math.imul(M,he)|0)+Math.imul(N,$)|0))<<13)|0;l=((a=a+Math.imul(N,he)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(L,pe),i=(i=Math.imul(L,Q))+Math.imul(R,pe)|0,a=Math.imul(R,Q);var Ne=(l+(r=r+Math.imul(F,$)|0)|0)+((8191&(i=(i=i+Math.imul(F,he)|0)+Math.imul(I,$)|0))<<13)|0;l=((a=a+Math.imul(I,he)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863;var Pe=(l+(r=Math.imul(L,$))|0)+((8191&(i=(i=Math.imul(L,he))+Math.imul(R,$)|0))<<13)|0;return l=((a=Math.imul(R,he))+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,c[0]=ge,c[1]=_e,c[2]=ve,c[3]=ye,c[4]=be,c[5]=xe,c[6]=Se,c[7]=Ce,c[8]=we,c[9]=Te,c[10]=Ee,c[11]=De,c[12]=Oe,c[13]=ke,c[14]=Ae,c[15]=je,c[16]=Me,c[17]=Ne,c[18]=Pe,l!==0&&(c[19]=l,n.length++),n};function h(e,t,n){return new g().mulp(e,t,n)}function g(e,t){this.x=e,this.y=t}Math.imul||(m=p),a.prototype.mulTo=function(e,t){var n=this.length+e.length;return this.length===10&&e.length===10?m(this,e,t):n<63?p(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,a=0;a<n.length-1;a++){var o=i;i=0;for(var s=67108863&r,c=Math.min(a,t.length-1),l=Math.max(0,a-e.length+1);l<=c;l++){var u=a-l,d=(0|e.words[u])*(0|t.words[l]),f=67108863&d;s=67108863&(f=f+s|0),i+=(o=(o=o+(d/67108864|0)|0)+(f>>>26)|0)>>>26,o&=67108863}n.words[a]=s,r=o,o=i}return r===0?n.length--:n.words[a]=r,n.strip()}(this,e,t):h(this,e,t)},g.prototype.makeRBT=function(e){for(var t=Array(e),n=a.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},g.prototype.revBin=function(e,t,n){if(e===0||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},g.prototype.permute=function(e,t,n,r,i,a){for(var o=0;o<a;o++)r[o]=t[e[o]],i[o]=n[e[o]]},g.prototype.transform=function(e,t,n,r,i,a){this.permute(a,e,t,n,r,i);for(var o=1;o<i;o<<=1)for(var s=o<<1,c=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var d=c,f=l,p=0;p<o;p++){var m=n[u+p],h=r[u+p],g=n[u+p+o],_=r[u+p+o],v=d*g-f*_;_=d*_+f*g,g=v,n[u+p]=m+g,r[u+p]=h+_,n[u+p+o]=m-g,r[u+p+o]=h-_,p!==s&&(v=c*d-l*f,f=c*f+l*d,d=v)}},g.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},g.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},g.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},g.prototype.convert13b=function(e,t,n,i){for(var a=0,o=0;o<t;o++)a+=0|e[o],n[2*o]=8191&a,a>>>=13,n[2*o+1]=8191&a,a>>>=13;for(o=2*t;o<i;++o)n[o]=0;r(a===0),r((-8192&a)==0)},g.prototype.stub=function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=0;return t},g.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),a=this.stub(r),o=Array(r),s=Array(r),c=Array(r),l=Array(r),u=Array(r),d=Array(r),f=n.words;f.length=r,this.convert13b(e.words,e.length,o,r),this.convert13b(t.words,t.length,l,r),this.transform(o,a,s,c,r,i),this.transform(l,a,u,d,r,i);for(var p=0;p<r;p++){var m=s[p]*u[p]-c[p]*d[p];c[p]=s[p]*d[p]+c[p]*u[p],s[p]=m}return this.conjugate(s,c,r),this.transform(s,c,f,a,r,i),this.conjugate(f,a,r),this.normalize13b(f,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},a.prototype.mul=function(e){var t=new a(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=Array(this.length+e.length),h(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){r(typeof e==`number`),r(e<67108864);for(var t=0,n=0;n<this.length;n++){var i=(0|this.words[n])*e,a=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=a>>>26,this.words[n]=67108863&a}return t!==0&&(this.words[n]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=(e.words[r]&1<<i)>>>i}return t}(e);if(t.length===0)return new a(1);for(var n=this,r=0;r<t.length&&t[r]===0;r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())t[r]!==0&&(n=n.mul(i));return n},a.prototype.iushln=function(e){r(typeof e==`number`&&e>=0);var t,n=e%26,i=(e-n)/26,a=67108863>>>26-n<<26-n;if(n!==0){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,c=(0|this.words[t])-s<<n;this.words[t]=c|o,o=s>>>26-n}o&&(this.words[t]=o,this.length++)}if(i!==0){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(e){return r(this.negative===0),this.iushln(e)},a.prototype.iushrn=function(e,t,n){var i;r(typeof e==`number`&&e>=0),i=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<<a,c=n;if(i-=o,i=Math.max(0,i),c){for(var l=0;l<o;l++)c.words[l]=this.words[l];c.length=o}if(o!==0)if(this.length>o)for(this.length-=o,l=0;l<this.length;l++)this.words[l]=this.words[l+o];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(u!==0||l>=i);l--){var d=0|this.words[l];this.words[l]=u<<26-a|d>>>a,u=d&s}return c&&u!==0&&(c.words[c.length++]=u),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,n){return r(this.negative===0),this.iushrn(e,t,n)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){r(typeof e==`number`&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n)&&!!(this.words[n]&i)},a.prototype.imaskn=function(e){r(typeof e==`number`&&e>=0);var t=e%26,n=(e-t)/26;if(r(this.negative===0,`imaskn works only with positive numbers`),this.length<=n)return this;if(t!==0&&n++,this.length=Math.min(n,this.length),t!==0){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return r(typeof e==`number`),r(e<67108864),e<0?this.isubn(-e):this.negative===0?this._iaddn(e):this.length===1&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(r(typeof e==`number`),r(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,--this.words[t+1];return this.strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,n){var i,a,o=e.length+n;this._expand(o);var s=0;for(i=0;i<e.length;i++){a=(0|this.words[i+n])+s;var c=(0|e.words[i])*t;s=((a-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&a}for(;i<this.length-n;i++)s=(a=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&a;if(s===0)return this.strip();for(r(s===-1),s=0,i=0;i<this.length;i++)s=(a=-(0|this.words[i])+s)>>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,o=0|i.words[i.length-1];(n=26-this._countBits(o))!=0&&(i=i.ushln(n),r.iushln(n),o=0|i.words[i.length-1]);var s,c=r.length-i.length;if(t!==`mod`){(s=new a(null)).length=c+1,s.words=Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var u=r.clone()._ishlnsubmul(i,1,c);u.negative===0&&(r=u,s&&(s.words[c]=1));for(var d=c-1;d>=0;d--){var f=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);for(f=Math.min(f/o|0,67108863),r._ishlnsubmul(i,f,d);r.negative!==0;)f--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=f)}return s&&s.strip(),r.strip(),t!==`div`&&n!==0&&r.iushrn(n),{div:s||null,mod:r}},a.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:this.negative!==0&&e.negative===0?(s=this.neg().divmod(e,t),t!==`mod`&&(i=s.div.neg()),t!==`div`&&(o=s.mod.neg(),n&&o.negative!==0&&o.iadd(e)),{div:i,mod:o}):this.negative===0&&e.negative!==0?(s=this.divmod(e.neg(),t),t!==`mod`&&(i=s.div.neg()),{div:i,mod:s.mod}):(this.negative&e.negative)==0?e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:e.length===1?t===`div`?{div:this.divn(e.words[0]),mod:null}:t===`mod`?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t):(s=this.neg().divmod(e.neg(),t),t!==`div`&&(o=s.mod.neg(),n&&o.negative!==0&&o.isub(e)),{div:s.div,mod:o});var i,o,s},a.prototype.div=function(e){return this.divmod(e,`div`,!1).div},a.prototype.mod=function(e){return this.divmod(e,`mod`,!1).mod},a.prototype.umod=function(e){return this.divmod(e,`mod`,!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=t.div.negative===0?t.mod:t.mod.isub(e),r=e.ushrn(1),i=e.andln(1),a=n.cmp(r);return a<0||i===1&&a===0?t.div:t.div.negative===0?t.div.iaddn(1):t.div.isubn(1)},a.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},a.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){r(e.negative===0),r(!e.isZero());var t=this,n=e.clone();t=t.negative===0?t.clone():t.umod(e);for(var i=new a(1),o=new a(0),s=new a(0),c=new a(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),d=t.clone();!t.isZero();){for(var f=0,p=1;(t.words[0]&p)==0&&f<26;++f,p<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(d)),i.iushrn(1),o.iushrn(1);for(var m=0,h=1;(n.words[0]&h)==0&&m<26;++m,h<<=1);if(m>0)for(n.iushrn(m);m-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),o.isub(c)):(n.isub(t),s.isub(i),c.isub(o))}return{a:s,b:c,gcd:n.iushln(l)}},a.prototype._invmp=function(e){r(e.negative===0),r(!e.isZero());var t=this,n=e.clone();t=t.negative===0?t.clone():t.umod(e);for(var i,o=new a(1),s=new a(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,u=1;(t.words[0]&u)==0&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var d=0,f=1;(n.words[0]&f)==0&&d<26;++d,f<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(i=t.cmpn(1)===0?o:s).cmpn(0)<0&&i.iadd(e),i},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var a=t;t=n,n=a}else if(i===0||n.cmpn(1)===0)break;t.isub(n)}return n.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){r(typeof e==`number`);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var a=i,o=n;a!==0&&o<this.length;o++){var s=0|this.words[o];a=(s+=a)>>>26,s&=67108863,this.words[o]=s}return a!==0&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(e){var t,n=e<0;if(this.negative!==0&&!n)return-1;if(this.negative===0&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,`Number is too big`);var i=0|this.words[0];t=i===e?0:i<e?-1:1}return this.negative===0?t:0|-t},a.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var t=this.ucmp(e);return this.negative===0?t:0|-t},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},a.prototype.gtn=function(e){return this.cmpn(e)===1},a.prototype.gt=function(e){return this.cmp(e)===1},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return this.cmpn(e)===-1},a.prototype.lt=function(e){return this.cmp(e)===-1},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return this.cmpn(e)===0},a.prototype.eq=function(e){return this.cmp(e)===0},a.red=function(e){return new C(e)},a.prototype.toRed=function(e){return r(!this.red,`Already a number in reduction context`),r(this.negative===0,`red works only with positives`),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return r(this.red,`fromRed works only with numbers in reduction context`),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return r(!this.red,`Already a number in reduction context`),this._forceRed(e)},a.prototype.redAdd=function(e){return r(this.red,`redAdd works only with red numbers`),this.red.add(this,e)},a.prototype.redIAdd=function(e){return r(this.red,`redIAdd works only with red numbers`),this.red.iadd(this,e)},a.prototype.redSub=function(e){return r(this.red,`redSub works only with red numbers`),this.red.sub(this,e)},a.prototype.redISub=function(e){return r(this.red,`redISub works only with red numbers`),this.red.isub(this,e)},a.prototype.redShl=function(e){return r(this.red,`redShl works only with red numbers`),this.red.shl(this,e)},a.prototype.redMul=function(e){return r(this.red,`redMul works only with red numbers`),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return r(this.red,`redMul works only with red numbers`),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return r(this.red,`redSqr works only with red numbers`),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,`redISqr works only with red numbers`),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,`redSqrt works only with red numbers`),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,`redInvm works only with red numbers`),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,`redNeg works only with red numbers`),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return r(this.red&&!e.red,`redPow(normalNum)`),this.red._verify1(this),this.red.pow(this,e)};var _={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,`k256`,`ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f`)}function b(){v.call(this,`p224`,`ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001`)}function x(){v.call(this,`p192`,`ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff`)}function S(){v.call(this,`25519`,`7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed`)}function C(e){if(typeof e==`string`){var t=a._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),`modulus must be greater than 1`),this.m=e,this.prime=null}function w(e){C.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new a(null);return e.words=Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength();while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return r===0?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n.strip===void 0?n._strip():n.strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},i(y,v),y.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var a=0|e.words[r];e.words[r-10]=(4194303&a)<<4|i>>>22,i=a}i>>>=22,e.words[r-10]=i,i===0&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e},i(b,v),i(x,v),i(S,v),S.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return t!==0&&(e.words[e.length++]=t),e},a._prime=function(e){if(_[e])return _[e];var t;if(e===`k256`)t=new y;else if(e===`p224`)t=new b;else if(e===`p192`)t=new x;else{if(e!==`p25519`)throw Error(`Unknown prime `+e);t=new S}return _[e]=t,t},C.prototype._verify1=function(e){r(e.negative===0,`red works only with positives`),r(e.red,`red works only with red numbers`)},C.prototype._verify2=function(e,t){r((e.negative|t.negative)==0,`red works only with positives`),r(e.red&&e.red===t.red,`red works only with red numbers`)},C.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},C.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},C.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},C.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},C.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},C.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},C.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},C.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},C.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},C.prototype.isqr=function(e){return this.imul(e,e.clone())},C.prototype.sqr=function(e){return this.mul(e,e)},C.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),t===3){var n=this.m.add(new a(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),o=0;!i.isZero()&&i.andln(1)===0;)o++,i.iushrn(1);r(!i.isZero());var s=new a(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);this.pow(u,l).cmp(c)!==0;)u.redIAdd(c);for(var d=this.pow(u,i),f=this.pow(e,i.addn(1).iushrn(1)),p=this.pow(e,i),m=o;p.cmp(s)!==0;){for(var h=p,g=0;h.cmp(s)!==0;g++)h=h.redSqr();r(g<m);var _=this.pow(d,new a(1).iushln(m-g-1));f=f.redMul(_),d=_.redSqr(),p=p.redMul(d),m=g}return f},C.prototype.invm=function(e){var t=e._invmp(this.m);return t.negative===0?this.imod(t):(t.negative=0,this.imod(t).redNeg())},C.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(t.cmpn(1)===0)return e.clone();var n=Array(16);n[0]=new a(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],o=0,s=0,c=t.bitLength()%26;for(c===0&&(c=26),r=t.length-1;r>=0;r--){for(var l=t.words[r],u=c-1;u>=0;u--){var d=l>>u&1;i!==n[0]&&(i=this.sqr(i)),d!==0||o!==0?(o<<=1,o|=d,(++s===4||r===0&&u===0)&&(i=this.mul(i,n[o]),s=0,o=0)):s=0}c=26}return i},C.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},C.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new w(e)},i(w,C),w.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},w.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},w.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},w.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},w.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}})(t===void 0||t)},{buffer:188}],185:[function(e,t,n){n.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},n.toByteArray=function(e){var t,n,r=l(e),o=r[0],s=r[1],c=new a(function(e,t,n){return 3*(t+n)/4-n}(0,o,s)),u=0,d=s>0?o-4:o;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;return s===2&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[u++]=255&t),s===1&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},n.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=0,s=n-i;o<s;o+=16383)a.push(u(e,o,o+16383>s?s:o+16383));return i===1?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+`==`)):i===2&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+`=`)),a.join(``)};for(var r=[],i=[],a=typeof Uint8Array<`u`?Uint8Array:Array,o=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,s=0,c=o.length;s<c;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);return n===-1&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var i,a,o=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(r[(a=i)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join(``)}i[45]=62,i[95]=63},{}],186:[function(e,t,n){(function(t,n){function r(e,t){if(!e)throw Error(t||`Assertion failed`)}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function a(e,t,n){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,e!==null&&(t!==`le`&&t!==`be`||(n=t,t=10),this._init(e||0,t||10,n||`be`))}var o;typeof t==`object`?t.exports=a:(void 0).BN=a,a.BN=a,a.wordSize=26;try{o=typeof window<`u`&&window.Buffer!==void 0?window.Buffer:e(`buffer`).Buffer}catch{}function s(e,t){var n=e.charCodeAt(t);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,`Invalid character in `+e)}function c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function l(e,t,n,i){for(var a=0,o=0,s=Math.min(e.length,n),c=t;c<s;c++){var l=e.charCodeAt(c)-48;a*=i,o=l>=49?l-49+10:l>=17?l-17+10:l,r(l>=0&&o<i,`Invalid character`),a+=o}return a}function u(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(a.isBN=function(e){return e instanceof a||typeof e==`object`&&!!e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,n){if(typeof e==`number`)return this._initNumber(e,t,n);if(typeof e==`object`)return this._initArray(e,t,n);t===`hex`&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;(e=e.toString().replace(/\s+/g,``))[0]===`-`&&(i++,this.negative=1),i<e.length&&(t===16?this._parseHex(e,i,n):(this._parseBase(e,t,i),n===`le`&&this._initArray(this.toArray(),t,n)))},a.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),n===`le`&&this._initArray(this.toArray(),t,n)},a.prototype._initArray=function(e,t,n){if(r(typeof e.length==`number`),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var a,o,s=0;if(n===`be`)for(i=e.length-1,a=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if(n===`le`)for(i=0,a=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this._strip()},a.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,a=0,o=0;if(n===`be`)for(r=e.length-1;r>=t;r-=2)i=c(e,t,r)<<a,this.words[o]|=67108863&i,a>=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;else for(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)i=c(e,t,r)<<a,this.words[o]|=67108863&i,a>=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;this._strip()},a.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=e.length-n,o=a%r,s=Math.min(a,a-o)+n,c=0,u=n;u<s;u+=r)c=l(e,u,u+r,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(o!==0){var d=1;for(c=l(e,u,e.length,t),u=0;u<o;u++)d*=t;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},a.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype._move=function(e){u(e,this)},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<`u`&&typeof Symbol.for==`function`)try{a.prototype[Symbol.for(`nodejs.util.inspect.custom`)]=d}catch{a.prototype.inspect=d}else a.prototype.inspect=d;function d(){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`.split(`.`),p=[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];a.prototype.toString=function(e,t){var n;if(t=0|t||1,(e||=10)===16||e===`hex`){n=``;for(var i=0,a=0,o=0;o<this.length;o++){var s=this.words[o],c=(16777215&(s<<i|a)).toString(16);a=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),n=a!==0||o!==this.length-1?f[6-c.length]+c+n:c+n}for(a!==0&&(n=a.toString(16)+n);n.length%t!=0;)n=`0`+n;return this.negative!==0&&(n=`-`+n),n}if(e===(0|e)&&e>=2&&e<=36){var l=p[e],u=m[e];n=``;var d=this.clone();for(d.negative=0;!d.isZero();){var h=d.modrn(u).toString(e);n=(d=d.idivn(u)).isZero()?h+n:f[l-h.length]+h+n}for(this.isZero()&&(n=`0`+n);n.length%t!=0;)n=`0`+n;return this.negative!==0&&(n=`-`+n),n}r(!1,`Base should be between 2 and 36`)},a.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=67108864*this.words[1]:this.length===3&&this.words[2]===1?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,`Number can only safely store up to 53 bits`),this.negative===0?e:-e},a.prototype.toJSON=function(){return this.toString(16,2)},o&&(a.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],a=0|t.words[0],o=i*a,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var l=1;l<r;l++){for(var u=c>>>26,d=67108863&c,f=Math.min(l,t.length-1),p=Math.max(0,l-e.length+1);p<=f;p++){var m=l-p|0;u+=(o=(i=0|e.words[m])*(a=0|t.words[p])+d)/67108864|0,d=67108863&o}n.words[l]=0|d,c=0|u}return c===0?n.length--:n.words[l]=0|c,n._strip()}a.prototype.toArrayLike=function(e,t,n){this._strip();var i=this.byteLength(),a=n||Math.max(1,i);r(i<=a,`byte array longer than desired length`),r(a>0,`Requested array length <= 0`);var o=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,a);return this[`_toArrayLike`+(t===`le`?`LE`:`BE`)](o,i),o},a.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,a=0;i<this.length;i++){var o=this.words[i]<<a|r;e[n++]=255&o,n<e.length&&(e[n++]=o>>8&255),n<e.length&&(e[n++]=o>>16&255),a===6?(n<e.length&&(e[n++]=o>>24&255),r=0,a=0):(r=o>>>24,a+=2)}if(n<e.length)for(e[n++]=r;n<e.length;)e[n++]=0},a.prototype._toArrayLikeBE=function(e,t){for(var n=e.length-1,r=0,i=0,a=0;i<this.length;i++){var o=this.words[i]<<a|r;e[n--]=255&o,n>=0&&(e[n--]=o>>8&255),n>=0&&(e[n--]=o>>16&255),a===6?(n>=0&&(e[n--]=o>>24&255),r=0,a=0):(r=o>>>24,a+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},a.prototype._zeroBits=function(e){if(e===0)return 26;var t=e,n=0;return!(8191&t)&&(n+=13,t>>>=13),!(127&t)&&(n+=7,t>>>=7),!(15&t)&&(n+=4,t>>>=4),!(3&t)&&(n+=2,t>>>=2),!(1&t)&&n++,n},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,n!==26)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return this.negative===0?this.clone():this.abs().inotn(e).iaddn(1)},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},a.prototype.ior=function(e){return r((this.negative|e.negative)==0),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){for(var t=this.length>e.length?e:this,n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this._strip()},a.prototype.iand=function(e){return r((this.negative|e.negative)==0),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this._strip()},a.prototype.ixor=function(e){return r((this.negative|e.negative)==0),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){r(typeof e==`number`&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){r(typeof e==`number`&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this._strip()},a.prototype.iadd=function(e){var t,n,r;if(this.negative!==0&&e.negative===0)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a<r.length;a++)t=(0|n.words[a])+(0|r.words[a])+i,this.words[a]=67108863&t,i=t>>>26;for(;i!==0&&a<n.length;a++)t=(0|n.words[a])+i,this.words[a]=67108863&t,i=t>>>26;if(this.length=n.length,i!==0)this.words[this.length]=i,this.length++;else if(n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this},a.prototype.add=function(e){var t;return e.negative!==0&&this.negative===0?(e.negative=0,t=this.sub(e),e.negative^=1,t):e.negative===0&&this.negative!==0?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(i===0)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var a=0,o=0;o<r.length;o++)a=(t=(0|n.words[o])-(0|r.words[o])+a)>>26,this.words[o]=67108863&t;for(;a!==0&&o<n.length;o++)a=(t=(0|n.words[o])+a)>>26,this.words[o]=67108863&t;if(a===0&&o<n.length&&n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this.length=Math.max(this.length,o),n!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var g=function(e,t,n){var r,i,a,o=e.words,s=t.words,c=n.words,l=0,u=0|o[0],d=8191&u,f=u>>>13,p=0|o[1],m=8191&p,h=p>>>13,g=0|o[2],_=8191&g,v=g>>>13,y=0|o[3],b=8191&y,x=y>>>13,S=0|o[4],C=8191&S,w=S>>>13,T=0|o[5],E=8191&T,D=T>>>13,O=0|o[6],k=8191&O,A=O>>>13,j=0|o[7],M=8191&j,N=j>>>13,P=0|o[8],F=8191&P,I=P>>>13,ee=0|o[9],L=8191&ee,R=ee>>>13,z=0|s[0],B=8191&z,V=z>>>13,H=0|s[1],U=8191&H,W=H>>>13,te=0|s[2],ne=8191&te,G=te>>>13,re=0|s[3],ie=8191&re,K=re>>>13,q=0|s[4],J=8191&q,Y=q>>>13,ae=0|s[5],oe=8191&ae,X=ae>>>13,se=0|s[6],ce=8191&se,Z=se>>>13,le=0|s[7],ue=8191&le,de=le>>>13,fe=0|s[8],pe=8191&fe,Q=fe>>>13,me=0|s[9],$=8191&me,he=me>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(l+(r=Math.imul(d,B))|0)+((8191&(i=(i=Math.imul(d,V))+Math.imul(f,B)|0))<<13)|0;l=((a=Math.imul(f,V))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(m,B),i=(i=Math.imul(m,V))+Math.imul(h,B)|0,a=Math.imul(h,V);var _e=(l+(r=r+Math.imul(d,U)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(f,U)|0))<<13)|0;l=((a=a+Math.imul(f,W)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(_,B),i=(i=Math.imul(_,V))+Math.imul(v,B)|0,a=Math.imul(v,V),r=r+Math.imul(m,U)|0,i=(i=i+Math.imul(m,W)|0)+Math.imul(h,U)|0,a=a+Math.imul(h,W)|0;var ve=(l+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,ne)|0))<<13)|0;l=((a=a+Math.imul(f,G)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(b,B),i=(i=Math.imul(b,V))+Math.imul(x,B)|0,a=Math.imul(x,V),r=r+Math.imul(_,U)|0,i=(i=i+Math.imul(_,W)|0)+Math.imul(v,U)|0,a=a+Math.imul(v,W)|0,r=r+Math.imul(m,ne)|0,i=(i=i+Math.imul(m,G)|0)+Math.imul(h,ne)|0,a=a+Math.imul(h,G)|0;var ye=(l+(r=r+Math.imul(d,ie)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(f,ie)|0))<<13)|0;l=((a=a+Math.imul(f,K)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(C,B),i=(i=Math.imul(C,V))+Math.imul(w,B)|0,a=Math.imul(w,V),r=r+Math.imul(b,U)|0,i=(i=i+Math.imul(b,W)|0)+Math.imul(x,U)|0,a=a+Math.imul(x,W)|0,r=r+Math.imul(_,ne)|0,i=(i=i+Math.imul(_,G)|0)+Math.imul(v,ne)|0,a=a+Math.imul(v,G)|0,r=r+Math.imul(m,ie)|0,i=(i=i+Math.imul(m,K)|0)+Math.imul(h,ie)|0,a=a+Math.imul(h,K)|0;var be=(l+(r=r+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,Y)|0)+Math.imul(f,J)|0))<<13)|0;l=((a=a+Math.imul(f,Y)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(E,B),i=(i=Math.imul(E,V))+Math.imul(D,B)|0,a=Math.imul(D,V),r=r+Math.imul(C,U)|0,i=(i=i+Math.imul(C,W)|0)+Math.imul(w,U)|0,a=a+Math.imul(w,W)|0,r=r+Math.imul(b,ne)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(x,ne)|0,a=a+Math.imul(x,G)|0,r=r+Math.imul(_,ie)|0,i=(i=i+Math.imul(_,K)|0)+Math.imul(v,ie)|0,a=a+Math.imul(v,K)|0,r=r+Math.imul(m,J)|0,i=(i=i+Math.imul(m,Y)|0)+Math.imul(h,J)|0,a=a+Math.imul(h,Y)|0;var xe=(l+(r=r+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(f,oe)|0))<<13)|0;l=((a=a+Math.imul(f,X)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(k,B),i=(i=Math.imul(k,V))+Math.imul(A,B)|0,a=Math.imul(A,V),r=r+Math.imul(E,U)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(D,U)|0,a=a+Math.imul(D,W)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(w,ne)|0,a=a+Math.imul(w,G)|0,r=r+Math.imul(b,ie)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(x,ie)|0,a=a+Math.imul(x,K)|0,r=r+Math.imul(_,J)|0,i=(i=i+Math.imul(_,Y)|0)+Math.imul(v,J)|0,a=a+Math.imul(v,Y)|0,r=r+Math.imul(m,oe)|0,i=(i=i+Math.imul(m,X)|0)+Math.imul(h,oe)|0,a=a+Math.imul(h,X)|0;var Se=(l+(r=r+Math.imul(d,ce)|0)|0)+((8191&(i=(i=i+Math.imul(d,Z)|0)+Math.imul(f,ce)|0))<<13)|0;l=((a=a+Math.imul(f,Z)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(M,B),i=(i=Math.imul(M,V))+Math.imul(N,B)|0,a=Math.imul(N,V),r=r+Math.imul(k,U)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(A,U)|0,a=a+Math.imul(A,W)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(D,ne)|0,a=a+Math.imul(D,G)|0,r=r+Math.imul(C,ie)|0,i=(i=i+Math.imul(C,K)|0)+Math.imul(w,ie)|0,a=a+Math.imul(w,K)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(x,J)|0,a=a+Math.imul(x,Y)|0,r=r+Math.imul(_,oe)|0,i=(i=i+Math.imul(_,X)|0)+Math.imul(v,oe)|0,a=a+Math.imul(v,X)|0,r=r+Math.imul(m,ce)|0,i=(i=i+Math.imul(m,Z)|0)+Math.imul(h,ce)|0,a=a+Math.imul(h,Z)|0;var Ce=(l+(r=r+Math.imul(d,ue)|0)|0)+((8191&(i=(i=i+Math.imul(d,de)|0)+Math.imul(f,ue)|0))<<13)|0;l=((a=a+Math.imul(f,de)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(F,B),i=(i=Math.imul(F,V))+Math.imul(I,B)|0,a=Math.imul(I,V),r=r+Math.imul(M,U)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(N,U)|0,a=a+Math.imul(N,W)|0,r=r+Math.imul(k,ne)|0,i=(i=i+Math.imul(k,G)|0)+Math.imul(A,ne)|0,a=a+Math.imul(A,G)|0,r=r+Math.imul(E,ie)|0,i=(i=i+Math.imul(E,K)|0)+Math.imul(D,ie)|0,a=a+Math.imul(D,K)|0,r=r+Math.imul(C,J)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(w,J)|0,a=a+Math.imul(w,Y)|0,r=r+Math.imul(b,oe)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(x,oe)|0,a=a+Math.imul(x,X)|0,r=r+Math.imul(_,ce)|0,i=(i=i+Math.imul(_,Z)|0)+Math.imul(v,ce)|0,a=a+Math.imul(v,Z)|0,r=r+Math.imul(m,ue)|0,i=(i=i+Math.imul(m,de)|0)+Math.imul(h,ue)|0,a=a+Math.imul(h,de)|0;var we=(l+(r=r+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,Q)|0)+Math.imul(f,pe)|0))<<13)|0;l=((a=a+Math.imul(f,Q)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(L,B),i=(i=Math.imul(L,V))+Math.imul(R,B)|0,a=Math.imul(R,V),r=r+Math.imul(F,U)|0,i=(i=i+Math.imul(F,W)|0)+Math.imul(I,U)|0,a=a+Math.imul(I,W)|0,r=r+Math.imul(M,ne)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(N,ne)|0,a=a+Math.imul(N,G)|0,r=r+Math.imul(k,ie)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(A,ie)|0,a=a+Math.imul(A,K)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(D,J)|0,a=a+Math.imul(D,Y)|0,r=r+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(w,oe)|0,a=a+Math.imul(w,X)|0,r=r+Math.imul(b,ce)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(x,ce)|0,a=a+Math.imul(x,Z)|0,r=r+Math.imul(_,ue)|0,i=(i=i+Math.imul(_,de)|0)+Math.imul(v,ue)|0,a=a+Math.imul(v,de)|0,r=r+Math.imul(m,pe)|0,i=(i=i+Math.imul(m,Q)|0)+Math.imul(h,pe)|0,a=a+Math.imul(h,Q)|0;var Te=(l+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,he)|0)+Math.imul(f,$)|0))<<13)|0;l=((a=a+Math.imul(f,he)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(L,U),i=(i=Math.imul(L,W))+Math.imul(R,U)|0,a=Math.imul(R,W),r=r+Math.imul(F,ne)|0,i=(i=i+Math.imul(F,G)|0)+Math.imul(I,ne)|0,a=a+Math.imul(I,G)|0,r=r+Math.imul(M,ie)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(N,ie)|0,a=a+Math.imul(N,K)|0,r=r+Math.imul(k,J)|0,i=(i=i+Math.imul(k,Y)|0)+Math.imul(A,J)|0,a=a+Math.imul(A,Y)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(D,oe)|0,a=a+Math.imul(D,X)|0,r=r+Math.imul(C,ce)|0,i=(i=i+Math.imul(C,Z)|0)+Math.imul(w,ce)|0,a=a+Math.imul(w,Z)|0,r=r+Math.imul(b,ue)|0,i=(i=i+Math.imul(b,de)|0)+Math.imul(x,ue)|0,a=a+Math.imul(x,de)|0,r=r+Math.imul(_,pe)|0,i=(i=i+Math.imul(_,Q)|0)+Math.imul(v,pe)|0,a=a+Math.imul(v,Q)|0;var Ee=(l+(r=r+Math.imul(m,$)|0)|0)+((8191&(i=(i=i+Math.imul(m,he)|0)+Math.imul(h,$)|0))<<13)|0;l=((a=a+Math.imul(h,he)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(L,ne),i=(i=Math.imul(L,G))+Math.imul(R,ne)|0,a=Math.imul(R,G),r=r+Math.imul(F,ie)|0,i=(i=i+Math.imul(F,K)|0)+Math.imul(I,ie)|0,a=a+Math.imul(I,K)|0,r=r+Math.imul(M,J)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(N,J)|0,a=a+Math.imul(N,Y)|0,r=r+Math.imul(k,oe)|0,i=(i=i+Math.imul(k,X)|0)+Math.imul(A,oe)|0,a=a+Math.imul(A,X)|0,r=r+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(D,ce)|0,a=a+Math.imul(D,Z)|0,r=r+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(w,ue)|0,a=a+Math.imul(w,de)|0,r=r+Math.imul(b,pe)|0,i=(i=i+Math.imul(b,Q)|0)+Math.imul(x,pe)|0,a=a+Math.imul(x,Q)|0;var De=(l+(r=r+Math.imul(_,$)|0)|0)+((8191&(i=(i=i+Math.imul(_,he)|0)+Math.imul(v,$)|0))<<13)|0;l=((a=a+Math.imul(v,he)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863,r=Math.imul(L,ie),i=(i=Math.imul(L,K))+Math.imul(R,ie)|0,a=Math.imul(R,K),r=r+Math.imul(F,J)|0,i=(i=i+Math.imul(F,Y)|0)+Math.imul(I,J)|0,a=a+Math.imul(I,Y)|0,r=r+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,X)|0)+Math.imul(N,oe)|0,a=a+Math.imul(N,X)|0,r=r+Math.imul(k,ce)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(A,ce)|0,a=a+Math.imul(A,Z)|0,r=r+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,de)|0)+Math.imul(D,ue)|0,a=a+Math.imul(D,de)|0,r=r+Math.imul(C,pe)|0,i=(i=i+Math.imul(C,Q)|0)+Math.imul(w,pe)|0,a=a+Math.imul(w,Q)|0;var Oe=(l+(r=r+Math.imul(b,$)|0)|0)+((8191&(i=(i=i+Math.imul(b,he)|0)+Math.imul(x,$)|0))<<13)|0;l=((a=a+Math.imul(x,he)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(L,J),i=(i=Math.imul(L,Y))+Math.imul(R,J)|0,a=Math.imul(R,Y),r=r+Math.imul(F,oe)|0,i=(i=i+Math.imul(F,X)|0)+Math.imul(I,oe)|0,a=a+Math.imul(I,X)|0,r=r+Math.imul(M,ce)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(N,ce)|0,a=a+Math.imul(N,Z)|0,r=r+Math.imul(k,ue)|0,i=(i=i+Math.imul(k,de)|0)+Math.imul(A,ue)|0,a=a+Math.imul(A,de)|0,r=r+Math.imul(E,pe)|0,i=(i=i+Math.imul(E,Q)|0)+Math.imul(D,pe)|0,a=a+Math.imul(D,Q)|0;var ke=(l+(r=r+Math.imul(C,$)|0)|0)+((8191&(i=(i=i+Math.imul(C,he)|0)+Math.imul(w,$)|0))<<13)|0;l=((a=a+Math.imul(w,he)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(L,oe),i=(i=Math.imul(L,X))+Math.imul(R,oe)|0,a=Math.imul(R,X),r=r+Math.imul(F,ce)|0,i=(i=i+Math.imul(F,Z)|0)+Math.imul(I,ce)|0,a=a+Math.imul(I,Z)|0,r=r+Math.imul(M,ue)|0,i=(i=i+Math.imul(M,de)|0)+Math.imul(N,ue)|0,a=a+Math.imul(N,de)|0,r=r+Math.imul(k,pe)|0,i=(i=i+Math.imul(k,Q)|0)+Math.imul(A,pe)|0,a=a+Math.imul(A,Q)|0;var Ae=(l+(r=r+Math.imul(E,$)|0)|0)+((8191&(i=(i=i+Math.imul(E,he)|0)+Math.imul(D,$)|0))<<13)|0;l=((a=a+Math.imul(D,he)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(L,ce),i=(i=Math.imul(L,Z))+Math.imul(R,ce)|0,a=Math.imul(R,Z),r=r+Math.imul(F,ue)|0,i=(i=i+Math.imul(F,de)|0)+Math.imul(I,ue)|0,a=a+Math.imul(I,de)|0,r=r+Math.imul(M,pe)|0,i=(i=i+Math.imul(M,Q)|0)+Math.imul(N,pe)|0,a=a+Math.imul(N,Q)|0;var je=(l+(r=r+Math.imul(k,$)|0)|0)+((8191&(i=(i=i+Math.imul(k,he)|0)+Math.imul(A,$)|0))<<13)|0;l=((a=a+Math.imul(A,he)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(L,ue),i=(i=Math.imul(L,de))+Math.imul(R,ue)|0,a=Math.imul(R,de),r=r+Math.imul(F,pe)|0,i=(i=i+Math.imul(F,Q)|0)+Math.imul(I,pe)|0,a=a+Math.imul(I,Q)|0;var Me=(l+(r=r+Math.imul(M,$)|0)|0)+((8191&(i=(i=i+Math.imul(M,he)|0)+Math.imul(N,$)|0))<<13)|0;l=((a=a+Math.imul(N,he)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(L,pe),i=(i=Math.imul(L,Q))+Math.imul(R,pe)|0,a=Math.imul(R,Q);var Ne=(l+(r=r+Math.imul(F,$)|0)|0)+((8191&(i=(i=i+Math.imul(F,he)|0)+Math.imul(I,$)|0))<<13)|0;l=((a=a+Math.imul(I,he)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863;var Pe=(l+(r=Math.imul(L,$))|0)+((8191&(i=(i=Math.imul(L,he))+Math.imul(R,$)|0))<<13)|0;return l=((a=Math.imul(R,he))+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,c[0]=ge,c[1]=_e,c[2]=ve,c[3]=ye,c[4]=be,c[5]=xe,c[6]=Se,c[7]=Ce,c[8]=we,c[9]=Te,c[10]=Ee,c[11]=De,c[12]=Oe,c[13]=ke,c[14]=Ae,c[15]=je,c[16]=Me,c[17]=Ne,c[18]=Pe,l!==0&&(c[19]=l,n.length++),n};function _(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,a=0;a<n.length-1;a++){var o=i;i=0;for(var s=67108863&r,c=Math.min(a,t.length-1),l=Math.max(0,a-e.length+1);l<=c;l++){var u=a-l,d=(0|e.words[u])*(0|t.words[l]),f=67108863&d;s=67108863&(f=f+s|0),i+=(o=(o=o+(d/67108864|0)|0)+(f>>>26)|0)>>>26,o&=67108863}n.words[a]=s,r=o,o=i}return r===0?n.length--:n.words[a]=r,n._strip()}function v(e,t,n){return _(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(g=h),a.prototype.mulTo=function(e,t){var n=this.length+e.length;return this.length===10&&e.length===10?g(this,e,t):n<63?h(this,e,t):n<1024?_(this,e,t):v(this,e,t)},y.prototype.makeRBT=function(e){for(var t=Array(e),n=a.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},y.prototype.revBin=function(e,t,n){if(e===0||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},y.prototype.permute=function(e,t,n,r,i,a){for(var o=0;o<a;o++)r[o]=t[e[o]],i[o]=n[e[o]]},y.prototype.transform=function(e,t,n,r,i,a){this.permute(a,e,t,n,r,i);for(var o=1;o<i;o<<=1)for(var s=o<<1,c=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var d=c,f=l,p=0;p<o;p++){var m=n[u+p],h=r[u+p],g=n[u+p+o],_=r[u+p+o],v=d*g-f*_;_=d*_+f*g,g=v,n[u+p]=m+g,r[u+p]=h+_,n[u+p+o]=m-g,r[u+p+o]=h-_,p!==s&&(v=c*d-l*f,f=c*f+l*d,d=v)}},y.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},y.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},y.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},y.prototype.convert13b=function(e,t,n,i){for(var a=0,o=0;o<t;o++)a+=0|e[o],n[2*o]=8191&a,a>>>=13,n[2*o+1]=8191&a,a>>>=13;for(o=2*t;o<i;++o)n[o]=0;r(a===0),r((-8192&a)==0)},y.prototype.stub=function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=0;return t},y.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),a=this.stub(r),o=Array(r),s=Array(r),c=Array(r),l=Array(r),u=Array(r),d=Array(r),f=n.words;f.length=r,this.convert13b(e.words,e.length,o,r),this.convert13b(t.words,t.length,l,r),this.transform(o,a,s,c,r,i),this.transform(l,a,u,d,r,i);for(var p=0;p<r;p++){var m=s[p]*u[p]-c[p]*d[p];c[p]=s[p]*d[p]+c[p]*u[p],s[p]=m}return this.conjugate(s,c,r),this.transform(s,c,f,a,r,i),this.conjugate(f,a,r),this.normalize13b(f,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n._strip()},a.prototype.mul=function(e){var t=new a(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=Array(this.length+e.length),v(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){var t=e<0;t&&(e=-e),r(typeof e==`number`),r(e<67108864);for(var n=0,i=0;i<this.length;i++){var a=(0|this.words[i])*e,o=(67108863&a)+(67108863&n);n>>=26,n+=a/67108864|0,n+=o>>>26,this.words[i]=67108863&o}return n!==0&&(this.words[i]=n,this.length++),t?this.ineg():this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=e.words[r]>>>i&1}return t}(e);if(t.length===0)return new a(1);for(var n=this,r=0;r<t.length&&t[r]===0;r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())t[r]!==0&&(n=n.mul(i));return n},a.prototype.iushln=function(e){r(typeof e==`number`&&e>=0);var t,n=e%26,i=(e-n)/26,a=67108863>>>26-n<<26-n;if(n!==0){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,c=(0|this.words[t])-s<<n;this.words[t]=c|o,o=s>>>26-n}o&&(this.words[t]=o,this.length++)}if(i!==0){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},a.prototype.ishln=function(e){return r(this.negative===0),this.iushln(e)},a.prototype.iushrn=function(e,t,n){var i;r(typeof e==`number`&&e>=0),i=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<<a,c=n;if(i-=o,i=Math.max(0,i),c){for(var l=0;l<o;l++)c.words[l]=this.words[l];c.length=o}if(o!==0)if(this.length>o)for(this.length-=o,l=0;l<this.length;l++)this.words[l]=this.words[l+o];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(u!==0||l>=i);l--){var d=0|this.words[l];this.words[l]=u<<26-a|d>>>a,u=d&s}return c&&u!==0&&(c.words[c.length++]=u),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(e,t,n){return r(this.negative===0),this.iushrn(e,t,n)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){r(typeof e==`number`&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n)&&!!(this.words[n]&i)},a.prototype.imaskn=function(e){r(typeof e==`number`&&e>=0);var t=e%26,n=(e-t)/26;if(r(this.negative===0,`imaskn works only with positive numbers`),this.length<=n)return this;if(t!==0&&n++,this.length=Math.min(n,this.length),t!==0){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this._strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return r(typeof e==`number`),r(e<67108864),e<0?this.isubn(-e):this.negative===0?this._iaddn(e):this.length===1&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(r(typeof e==`number`),r(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,--this.words[t+1];return this._strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,n){var i,a,o=e.length+n;this._expand(o);var s=0;for(i=0;i<e.length;i++){a=(0|this.words[i+n])+s;var c=(0|e.words[i])*t;s=((a-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&a}for(;i<this.length-n;i++)s=(a=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&a;if(s===0)return this._strip();for(r(s===-1),s=0,i=0;i<this.length;i++)s=(a=-(0|this.words[i])+s)>>26,this.words[i]=67108863&a;return this.negative=1,this._strip()},a.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,o=0|i.words[i.length-1];(n=26-this._countBits(o))!=0&&(i=i.ushln(n),r.iushln(n),o=0|i.words[i.length-1]);var s,c=r.length-i.length;if(t!==`mod`){(s=new a(null)).length=c+1,s.words=Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var u=r.clone()._ishlnsubmul(i,1,c);u.negative===0&&(r=u,s&&(s.words[c]=1));for(var d=c-1;d>=0;d--){var f=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);for(f=Math.min(f/o|0,67108863),r._ishlnsubmul(i,f,d);r.negative!==0;)f--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=f)}return s&&s._strip(),r._strip(),t!==`div`&&n!==0&&r.iushrn(n),{div:s||null,mod:r}},a.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:this.negative!==0&&e.negative===0?(s=this.neg().divmod(e,t),t!==`mod`&&(i=s.div.neg()),t!==`div`&&(o=s.mod.neg(),n&&o.negative!==0&&o.iadd(e)),{div:i,mod:o}):this.negative===0&&e.negative!==0?(s=this.divmod(e.neg(),t),t!==`mod`&&(i=s.div.neg()),{div:i,mod:s.mod}):(this.negative&e.negative)==0?e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:e.length===1?t===`div`?{div:this.divn(e.words[0]),mod:null}:t===`mod`?{div:null,mod:new a(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modrn(e.words[0]))}:this._wordDiv(e,t):(s=this.neg().divmod(e.neg(),t),t!==`div`&&(o=s.mod.neg(),n&&o.negative!==0&&o.isub(e)),{div:s.div,mod:o});var i,o,s},a.prototype.div=function(e){return this.divmod(e,`div`,!1).div},a.prototype.mod=function(e){return this.divmod(e,`mod`,!1).mod},a.prototype.umod=function(e){return this.divmod(e,`mod`,!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=t.div.negative===0?t.mod:t.mod.isub(e),r=e.ushrn(1),i=e.andln(1),a=n.cmp(r);return a<0||i===1&&a===0?t.div:t.div.negative===0?t.div.iaddn(1):t.div.isubn(1)},a.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=(1<<26)%e,i=0,a=this.length-1;a>=0;a--)i=(n*i+(0|this.words[a]))%e;return t?-i:i},a.prototype.modn=function(e){return this.modrn(e)},a.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var a=(0|this.words[i])+67108864*n;this.words[i]=a/e|0,n=a%e}return this._strip(),t?this.ineg():this},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){r(e.negative===0),r(!e.isZero());var t=this,n=e.clone();t=t.negative===0?t.clone():t.umod(e);for(var i=new a(1),o=new a(0),s=new a(0),c=new a(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),d=t.clone();!t.isZero();){for(var f=0,p=1;(t.words[0]&p)==0&&f<26;++f,p<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(d)),i.iushrn(1),o.iushrn(1);for(var m=0,h=1;(n.words[0]&h)==0&&m<26;++m,h<<=1);if(m>0)for(n.iushrn(m);m-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),o.isub(c)):(n.isub(t),s.isub(i),c.isub(o))}return{a:s,b:c,gcd:n.iushln(l)}},a.prototype._invmp=function(e){r(e.negative===0),r(!e.isZero());var t=this,n=e.clone();t=t.negative===0?t.clone():t.umod(e);for(var i,o=new a(1),s=new a(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,u=1;(t.words[0]&u)==0&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var d=0,f=1;(n.words[0]&f)==0&&d<26;++d,f<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(i=t.cmpn(1)===0?o:s).cmpn(0)<0&&i.iadd(e),i},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var a=t;t=n,n=a}else if(i===0||n.cmpn(1)===0)break;t.isub(n)}return n.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){r(typeof e==`number`);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var a=i,o=n;a!==0&&o<this.length;o++){var s=0|this.words[o];a=(s+=a)>>>26,s&=67108863,this.words[o]=s}return a!==0&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(e){var t,n=e<0;if(this.negative!==0&&!n)return-1;if(this.negative===0&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,`Number is too big`);var i=0|this.words[0];t=i===e?0:i<e?-1:1}return this.negative===0?t:0|-t},a.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var t=this.ucmp(e);return this.negative===0?t:0|-t},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},a.prototype.gtn=function(e){return this.cmpn(e)===1},a.prototype.gt=function(e){return this.cmp(e)===1},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return this.cmpn(e)===-1},a.prototype.lt=function(e){return this.cmp(e)===-1},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return this.cmpn(e)===0},a.prototype.eq=function(e){return this.cmp(e)===0},a.red=function(e){return new E(e)},a.prototype.toRed=function(e){return r(!this.red,`Already a number in reduction context`),r(this.negative===0,`red works only with positives`),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return r(this.red,`fromRed works only with numbers in reduction context`),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return r(!this.red,`Already a number in reduction context`),this._forceRed(e)},a.prototype.redAdd=function(e){return r(this.red,`redAdd works only with red numbers`),this.red.add(this,e)},a.prototype.redIAdd=function(e){return r(this.red,`redIAdd works only with red numbers`),this.red.iadd(this,e)},a.prototype.redSub=function(e){return r(this.red,`redSub works only with red numbers`),this.red.sub(this,e)},a.prototype.redISub=function(e){return r(this.red,`redISub works only with red numbers`),this.red.isub(this,e)},a.prototype.redShl=function(e){return r(this.red,`redShl works only with red numbers`),this.red.shl(this,e)},a.prototype.redMul=function(e){return r(this.red,`redMul works only with red numbers`),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return r(this.red,`redMul works only with red numbers`),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return r(this.red,`redSqr works only with red numbers`),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,`redISqr works only with red numbers`),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,`redSqrt works only with red numbers`),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,`redInvm works only with red numbers`),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,`redNeg works only with red numbers`),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return r(this.red&&!e.red,`redPow(normalNum)`),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function x(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function S(){x.call(this,`k256`,`ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f`)}function C(){x.call(this,`p224`,`ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001`)}function w(){x.call(this,`p192`,`ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff`)}function T(){x.call(this,`25519`,`7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed`)}function E(e){if(typeof e==`string`){var t=a._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),`modulus must be greater than 1`),this.m=e,this.prime=null}function D(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}x.prototype._tmp=function(){var e=new a(null);return e.words=Array(Math.ceil(this.n/13)),e},x.prototype.ireduce=function(e){var t,n=e;do this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength();while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return r===0?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n.strip===void 0?n._strip():n.strip(),n},x.prototype.split=function(e,t){e.iushrn(this.n,0,t)},x.prototype.imulK=function(e){return e.imul(this.k)},i(S,x),S.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var a=0|e.words[r];e.words[r-10]=(4194303&a)<<4|i>>>22,i=a}i>>>=22,e.words[r-10]=i,i===0&&e.length>10?e.length-=10:e.length-=9},S.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e},i(C,x),i(w,x),i(T,x),T.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return t!==0&&(e.words[e.length++]=t),e},a._prime=function(e){if(b[e])return b[e];var t;if(e===`k256`)t=new S;else if(e===`p224`)t=new C;else if(e===`p192`)t=new w;else{if(e!==`p25519`)throw Error(`Unknown prime `+e);t=new T}return b[e]=t,t},E.prototype._verify1=function(e){r(e.negative===0,`red works only with positives`),r(e.red,`red works only with red numbers`)},E.prototype._verify2=function(e,t){r((e.negative|t.negative)==0,`red works only with positives`),r(e.red&&e.red===t.red,`red works only with red numbers`)},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},E.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),t===3){var n=this.m.add(new a(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),o=0;!i.isZero()&&i.andln(1)===0;)o++,i.iushrn(1);r(!i.isZero());var s=new a(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);this.pow(u,l).cmp(c)!==0;)u.redIAdd(c);for(var d=this.pow(u,i),f=this.pow(e,i.addn(1).iushrn(1)),p=this.pow(e,i),m=o;p.cmp(s)!==0;){for(var h=p,g=0;h.cmp(s)!==0;g++)h=h.redSqr();r(g<m);var _=this.pow(d,new a(1).iushln(m-g-1));f=f.redMul(_),d=_.redSqr(),p=p.redMul(d),m=g}return f},E.prototype.invm=function(e){var t=e._invmp(this.m);return t.negative===0?this.imod(t):(t.negative=0,this.imod(t).redNeg())},E.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(t.cmpn(1)===0)return e.clone();var n=Array(16);n[0]=new a(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],o=0,s=0,c=t.bitLength()%26;for(c===0&&(c=26),r=t.length-1;r>=0;r--){for(var l=t.words[r],u=c-1;u>=0;u--){var d=l>>u&1;i!==n[0]&&(i=this.sqr(i)),d!==0||o!==0?(o<<=1,o|=d,(++s===4||r===0&&u===0)&&(i=this.mul(i,n[o]),s=0,o=0)):s=0}c=26}return i},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new D(e)},i(D,E),D.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},D.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},D.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},D.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},D.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}})(t===void 0||t)},{buffer:188}],187:[function(e,t,n){var r;function i(e){this.rand=e}if(t.exports=function(e){return r||=new i(null),r.generate(e)},t.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),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(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:typeof window==`object`&&(i.prototype._rand=function(){throw Error(`Not implemented yet`)});else try{var a=e(`crypto`);if(typeof a.randomBytes!=`function`)throw Error(`Not supported`);i.prototype._rand=function(e){return a.randomBytes(e)}}catch{}},{crypto:188}],188:[function(e,t,n){},{}],189:[function(e,t,n){var r=e(`safe-buffer`).Buffer;function i(e){r.isBuffer(e)||(e=r.from(e));for(var t=e.length/4|0,n=Array(t),i=0;i<t;i++)n[i]=e.readUInt32BE(4*i);return n}function a(e){for(;0<e.length;e++)e[0]=0}function o(e,t,n,r,i){for(var a,o,s,c,l=n[0],u=n[1],d=n[2],f=n[3],p=e[0]^t[0],m=e[1]^t[1],h=e[2]^t[2],g=e[3]^t[3],_=4,v=1;v<i;v++)a=l[p>>>24]^u[m>>>16&255]^d[h>>>8&255]^f[255&g]^t[_++],o=l[m>>>24]^u[h>>>16&255]^d[g>>>8&255]^f[255&p]^t[_++],s=l[h>>>24]^u[g>>>16&255]^d[p>>>8&255]^f[255&m]^t[_++],c=l[g>>>24]^u[p>>>16&255]^d[m>>>8&255]^f[255&h]^t[_++],p=a,m=o,h=s,g=c;return a=(r[p>>>24]<<24|r[m>>>16&255]<<16|r[h>>>8&255]<<8|r[255&g])^t[_++],o=(r[m>>>24]<<24|r[h>>>16&255]<<16|r[g>>>8&255]<<8|r[255&p])^t[_++],s=(r[h>>>24]<<24|r[g>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^t[_++],c=(r[g>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&h])^t[_++],[a>>>=0,o>>>=0,s>>>=0,c>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],i=[[],[],[],[]],a=[[],[],[],[]],o=0,s=0,c=0;c<256;++c){var l=s^s<<1^s<<2^s<<3^s<<4;l=l>>>8^255&l^99,n[o]=l,r[l]=o;var u=e[o],d=e[u],f=e[d],p=257*e[l]^16843008*l;i[0][o]=p<<24|p>>>8,i[1][o]=p<<16|p>>>16,i[2][o]=p<<8|p>>>24,i[3][o]=p,p=16843009*f^65537*d^257*u^16843008*o,a[0][l]=p<<24|p>>>8,a[1][l]=p<<16|p>>>16,a[2][l]=p<<8|p>>>24,a[3][l]=p,o===0?o=s=1:(o=u^e[e[e[f^u]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:a}}();function l(e){this._key=i(e),this._reset()}l.blockSize=16,l.keySize=32,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),i=[],a=0;a<t;a++)i[a]=e[a];for(a=t;a<r;a++){var o=i[a-1];a%t==0?(o=o<<8|o>>>24,o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o],o^=s[a/t|0]<<24):t>6&&a%t==4&&(o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o]),i[a]=i[a-t]^o}for(var l=[],u=0;u<r;u++){var d=r-u,f=i[d-(u%4?0:4)];l[u]=u<4||d<=4?f:c.INV_SUB_MIX[0][c.SBOX[f>>>24]]^c.INV_SUB_MIX[1][c.SBOX[f>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[f>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&f]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=l},l.prototype.encryptBlockRaw=function(e){return o(e=i(e),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},l.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},l.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var n=o(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),a=r.allocUnsafe(16);return a.writeUInt32BE(n[0],0),a.writeUInt32BE(n[3],4),a.writeUInt32BE(n[2],8),a.writeUInt32BE(n[1],12),a},l.prototype.scrub=function(){a(this._keySchedule),a(this._invKeySchedule),a(this._key)},t.exports.AES=l},{"safe-buffer":494}],190:[function(e,t,n){var r=e(`./aes`),i=e(`safe-buffer`).Buffer,a=e(`cipher-base`),o=e(`inherits`),s=e(`./ghash`),c=e(`buffer-xor`),l=e(`./incr32`);function u(e,t,n,o){a.call(this);var c=i.alloc(4,0);this._cipher=new r.AES(t);var u=this._cipher.encryptBlock(c);this._ghash=new s(u),n=function(e,t,n){if(t.length===12)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var r=new s(n),a=t.length,o=a%16;r.update(t),o&&(o=16-o,r.update(i.alloc(o,0))),r.update(i.alloc(8,0));var c=8*a,u=i.alloc(8);u.writeUIntBE(c,0,8),r.update(u),e._finID=r.state;var d=i.from(e._finID);return l(d),d}(this,n,u),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}o(u,a),u.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw Error(`Unsupported state or unable to authenticate data`);var e=c(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var n=0;e.length!==t.length&&n++;for(var r=Math.min(e.length,t.length),i=0;i<r;++i)n+=e[i]^t[i];return n}(e,this._authTag))throw Error(`Unsupported state or unable to authenticate data`);this._authTag=e,this._cipher.scrub()},u.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw Error(`Attempting to get auth tag in unsupported state`);return this._authTag},u.prototype.setAuthTag=function(e){if(!this._decrypt)throw Error(`Attempting to set auth tag in unsupported state`);this._authTag=e},u.prototype.setAAD=function(e){if(this._called)throw Error(`Attempting to set AAD in unsupported state`);this._ghash.update(e),this._alen+=e.length},t.exports=u},{"./aes":189,"./ghash":194,"./incr32":195,"buffer-xor":219,"cipher-base":221,inherits:440,"safe-buffer":494}],191:[function(e,t,n){var r=e(`./encrypter`),i=e(`./decrypter`),a=e(`./modes/list.json`);n.createCipher=n.Cipher=r.createCipher,n.createCipheriv=n.Cipheriv=r.createCipheriv,n.createDecipher=n.Decipher=i.createDecipher,n.createDecipheriv=n.Decipheriv=i.createDecipheriv,n.listCiphers=n.getCiphers=function(){return Object.keys(a)}},{"./decrypter":192,"./encrypter":193,"./modes/list.json":203}],192:[function(e,t,n){var r=e(`./authCipher`),i=e(`safe-buffer`).Buffer,a=e(`./modes`),o=e(`./streamCipher`),s=e(`cipher-base`),c=e(`./aes`),l=e(`evp_bytestokey`);function u(e,t,n){s.call(this),this._cache=new d,this._last=void 0,this._cipher=new c.AES(t),this._prev=i.from(n),this._mode=e,this._autopadding=!0}function d(){this.cache=i.allocUnsafe(0)}function f(e,t,n){var s=a[e.toLowerCase()];if(!s)throw TypeError(`invalid suite type`);if(typeof n==`string`&&(n=i.from(n)),s.mode!==`GCM`&&n.length!==s.iv)throw TypeError(`invalid iv length `+n.length);if(typeof t==`string`&&(t=i.from(t)),t.length!==s.key/8)throw TypeError(`invalid key length `+t.length);return s.type===`stream`?new o(s.module,t,n,!0):s.type===`auth`?new r(s.module,t,n,!0):new u(s.module,t,n)}e(`inherits`)(u,s),u.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,t),r.push(n);return i.concat(r)},u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw Error(`unable to decrypt data`);for(var n=-1;++n<t;)if(e[n+(16-t)]!==t)throw Error(`unable to decrypt data`);if(t!==16)return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw Error(`data not multiple of block length`)},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=i.concat([this.cache,e])},d.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},n.createDecipher=function(e,t){var n=a[e.toLowerCase()];if(!n)throw TypeError(`invalid suite type`);var r=l(t,!1,n.key,n.iv);return f(e,r.key,r.iv)},n.createDecipheriv=f},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(e,t,n){var r=e(`./modes`),i=e(`./authCipher`),a=e(`safe-buffer`).Buffer,o=e(`./streamCipher`),s=e(`cipher-base`),c=e(`./aes`),l=e(`evp_bytestokey`);function u(e,t,n){s.call(this),this._cache=new f,this._cipher=new c.AES(t),this._prev=a.from(n),this._mode=e,this._autopadding=!0}e(`inherits`)(u,s),u.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get();)n=this._mode.encrypt(this,t),r.push(n);return a.concat(r)};var d=a.alloc(16,16);function f(){this.cache=a.allocUnsafe(0)}function p(e,t,n){var s=r[e.toLowerCase()];if(!s)throw TypeError(`invalid suite type`);if(typeof t==`string`&&(t=a.from(t)),t.length!==s.key/8)throw TypeError(`invalid key length `+t.length);if(typeof n==`string`&&(n=a.from(n)),s.mode!==`GCM`&&n.length!==s.iv)throw TypeError(`invalid iv length `+n.length);return s.type===`stream`?new o(s.module,t,n):s.type===`auth`?new i(s.module,t,n):new u(s.module,t,n)}u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(d))throw this._cipher.scrub(),Error(`data not multiple of block length`)},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=a.concat([this.cache,e])},f.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},f.prototype.flush=function(){for(var e=16-this.cache.length,t=a.allocUnsafe(e),n=-1;++n<e;)t.writeUInt8(e,n);return a.concat([this.cache,t])},n.createCipheriv=p,n.createCipher=function(e,t){var n=r[e.toLowerCase()];if(!n)throw TypeError(`invalid suite type`);var i=l(t,!1,n.key,n.iv);return p(e,i.key,i.iv)}},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],194:[function(e,t,n){var r=e(`safe-buffer`).Buffer,i=r.alloc(16,0);function a(e){var t=r.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function o(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}o.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},o.prototype._multiply=function(){for(var e,t,n,r=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],i=[0,0,0,0],o=-1;++o<128;){for(this.state[~~(o/8)]&1<<7-o%8&&(i[0]^=r[0],i[1]^=r[1],i[2]^=r[2],i[3]^=r[3]),n=(1&r[3])!=0,t=3;t>0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]>>>=1,n&&(r[0]^=225<<24)}this.state=a(i)},o.prototype.update=function(e){var t;for(this.cache=r.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},o.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,i],16)),this.ghash(a([0,e,0,t])),this.state},t.exports=o},{"safe-buffer":494}],195:[function(e,t,n){t.exports=function(e){for(var t,n=e.length;n--;){if((t=e.readUInt8(n))!==255){t++,e.writeUInt8(t,n);break}e.writeUInt8(0,n)}}},{}],196:[function(e,t,n){var r=e(`buffer-xor`);n.encrypt=function(e,t){var n=r(t,e._prev);return e._prev=e._cipher.encryptBlock(n),e._prev},n.decrypt=function(e,t){var n=e._prev;return e._prev=t,r(e._cipher.decryptBlock(t),n)}},{"buffer-xor":219}],197:[function(e,t,n){var r=e(`safe-buffer`).Buffer,i=e(`buffer-xor`);function a(e,t,n){var a=t.length,o=i(t,e._cache);return e._cache=e._cache.slice(a),e._prev=r.concat([e._prev,n?t:o]),o}n.encrypt=function(e,t,n){for(var i,o=r.allocUnsafe(0);t.length;){if(e._cache.length===0&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=r.allocUnsafe(0)),!(e._cache.length<=t.length)){o=r.concat([o,a(e,t,n)]);break}i=e._cache.length,o=r.concat([o,a(e,t.slice(0,i),n)]),t=t.slice(i)}return o}},{"buffer-xor":219,"safe-buffer":494}],198:[function(e,t,n){var r=e(`safe-buffer`).Buffer;function i(e,t,n){for(var r,i,o=-1,s=0;++o<8;)r=t&1<<7-o?128:0,s+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^r))>>o%8,e._prev=a(e._prev,n?r:i);return s}function a(e,t){var n=e.length,i=-1,a=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([t])]);++i<n;)a[i]=e[i]<<1|e[i+1]>>7;return a}n.encrypt=function(e,t,n){for(var a=t.length,o=r.allocUnsafe(a),s=-1;++s<a;)o[s]=i(e,t[s],n);return o}},{"safe-buffer":494}],199:[function(e,t,n){var r=e(`safe-buffer`).Buffer;function i(e,t,n){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=r.concat([e._prev.slice(1),r.from([n?t:i])]),i}n.encrypt=function(e,t,n){for(var a=t.length,o=r.allocUnsafe(a),s=-1;++s<a;)o[s]=i(e,t[s],n);return o}},{"safe-buffer":494}],200:[function(e,t,n){var r=e(`buffer-xor`),i=e(`safe-buffer`).Buffer,a=e(`../incr32`);function o(e){var t=e._cipher.encryptBlockRaw(e._prev);return a(e._prev),t}n.encrypt=function(e,t){var n=Math.ceil(t.length/16),a=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*n)]);for(var s=0;s<n;s++){var c=o(e),l=a+16*s;e._cache.writeUInt32BE(c[0],l+0),e._cache.writeUInt32BE(c[1],l+4),e._cache.writeUInt32BE(c[2],l+8),e._cache.writeUInt32BE(c[3],l+12)}var u=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),r(t,u)}},{"../incr32":195,"buffer-xor":219,"safe-buffer":494}],201:[function(e,t,n){n.encrypt=function(e,t){return e._cipher.encryptBlock(t)},n.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},{}],202:[function(e,t,n){var r={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 a in i)i[a].module=r[i[a].mode];t.exports=i},{"./cbc":196,"./cfb":197,"./cfb1":198,"./cfb8":199,"./ctr":200,"./ecb":201,"./list.json":203,"./ofb":204}],203:[function(e,t,n){t.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,t,n){(function(t){(function(){var r=e(`buffer-xor`);function i(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}n.encrypt=function(e,n){for(;e._cache.length<n.length;)e._cache=t.concat([e._cache,i(e)]);var a=e._cache.slice(0,n.length);return e._cache=e._cache.slice(n.length),r(n,a)}}).call(this)}).call(this,e(`buffer`).Buffer)},{buffer:220,"buffer-xor":219}],205:[function(e,t,n){var r=e(`./aes`),i=e(`safe-buffer`).Buffer,a=e(`cipher-base`);function o(e,t,n,o){a.call(this),this._cipher=new r.AES(t),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=o,this._mode=e}e(`inherits`)(o,a),o.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},t.exports=o},{"./aes":189,"cipher-base":221,inherits:440,"safe-buffer":494}],206:[function(e,t,n){var r=e(`browserify-des`),i=e(`browserify-aes/browser`),a=e(`browserify-aes/modes`),o=e(`browserify-des/modes`),s=e(`evp_bytestokey`);function c(e,t,n){if(e=e.toLowerCase(),a[e])return i.createCipheriv(e,t,n);if(o[e])return new r({key:t,iv:n,mode:e});throw TypeError(`invalid suite type`)}function l(e,t,n){if(e=e.toLowerCase(),a[e])return i.createDecipheriv(e,t,n);if(o[e])return new r({key:t,iv:n,mode:e,decrypt:!0});throw TypeError(`invalid suite type`)}n.createCipher=n.Cipher=function(e,t){var n,r;if(e=e.toLowerCase(),a[e])n=a[e].key,r=a[e].iv;else{if(!o[e])throw TypeError(`invalid suite type`);n=8*o[e].key,r=o[e].iv}var i=s(t,!1,n,r);return c(e,i.key,i.iv)},n.createCipheriv=n.Cipheriv=c,n.createDecipher=n.Decipher=function(e,t){var n,r;if(e=e.toLowerCase(),a[e])n=a[e].key,r=a[e].iv;else{if(!o[e])throw TypeError(`invalid suite type`);n=8*o[e].key,r=o[e].iv}var i=s(t,!1,n,r);return l(e,i.key,i.iv)},n.createDecipheriv=n.Decipheriv=l,n.listCiphers=n.getCiphers=function(){return Object.keys(o).concat(i.getCiphers())}},{"browserify-aes/browser":191,"browserify-aes/modes":202,"browserify-des":207,"browserify-des/modes":208,evp_bytestokey:423}],207:[function(e,t,n){var r=e(`cipher-base`),i=e(`des.js`),a=e(`inherits`),o=e(`safe-buffer`).Buffer,s={"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 c(e){r.call(this);var t,n=e.mode.toLowerCase(),i=s[n];t=e.decrypt?`decrypt`:`encrypt`;var a=e.key;o.isBuffer(a)||(a=o.from(a)),n!==`des-ede`&&n!==`des-ede-cbc`||(a=o.concat([a,a.slice(0,8)]));var c=e.iv;o.isBuffer(c)||(c=o.from(c)),this._des=i.create({key:a,iv:c,type:t})}s.des=s[`des-cbc`],s.des3=s[`des-ede3-cbc`],t.exports=c,a(c,r),c.prototype._update=function(e){return o.from(this._des.update(e))},c.prototype._final=function(){return o.from(this._des.final())}},{"cipher-base":221,"des.js":394,inherits:440,"safe-buffer":494}],208:[function(e,t,n){n[`des-ecb`]={key:8,iv:0},n[`des-cbc`]=n.des={key:8,iv:8},n[`des-ede3-cbc`]=n.des3={key:24,iv:8},n[`des-ede3`]={key:24,iv:0},n[`des-ede-cbc`]={key:16,iv:8},n[`des-ede`]={key:16,iv:0}},{}],209:[function(e,t,n){(function(n){(function(){var r=e(`bn.js`),i=e(`randombytes`);function a(e){var t,n=e.modulus.byteLength();do t=new r(i(n));while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function o(e,t){var i=function(e){var t=a(e);return{blinder:t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),o=t.modulus.byteLength(),s=new r(e).mul(i.blinder).umod(t.modulus),c=s.toRed(r.mont(t.prime1)),l=s.toRed(r.mont(t.prime2)),u=t.coefficient,d=t.prime1,f=t.prime2,p=c.redPow(t.exponent1).fromRed(),m=l.redPow(t.exponent2).fromRed(),h=p.isub(m).imul(u).umod(d).imul(f);return m.iadd(h).imul(i.unblinder).umod(t.modulus).toArrayLike(n,`be`,o)}o.getr=a,t.exports=o}).call(this)}).call(this,e(`buffer`).Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(e,t,n){t.exports=e(`./browser/algorithms.json`)},{"./browser/algorithms.json":211}],211:[function(e,t,n){t.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,t,n){t.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,t,n){var r=e(`safe-buffer`).Buffer,i=e(`create-hash`),a=e(`readable-stream`),o=e(`inherits`),s=e(`./sign`),c=e(`./verify`),l=e(`./algorithms.json`);function u(e){a.Writable.call(this);var t=l[e];if(!t)throw Error(`Unknown message digest`);this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){a.Writable.call(this);var t=l[e];if(!t)throw Error(`Unknown message digest`);this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){return new u(e)}function p(e){return new d(e)}Object.keys(l).forEach((function(e){l[e].id=r.from(l[e].id,`hex`),l[e.toLowerCase()]=l[e]})),o(u,a.Writable),u.prototype._write=function(e,t,n){this._hash.update(e),n()},u.prototype.update=function(e,t){return typeof e==`string`&&(e=r.from(e,t)),this._hash.update(e),this},u.prototype.sign=function(e,t){this.end();var n=s(this._hash.digest(),e,this._hashType,this._signType,this._tag);return t?n.toString(t):n},o(d,a.Writable),d.prototype._write=function(e,t,n){this._hash.update(e),n()},d.prototype.update=function(e,t){return typeof e==`string`&&(e=r.from(e,t)),this._hash.update(e),this},d.prototype.verify=function(e,t,n){typeof t==`string`&&(t=r.from(t,n)),this.end();var i=this._hash.digest();return c(t,i,e,this._signType,this._tag)},t.exports={Sign:f,Verify:p,createSign:f,createVerify:p}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(e,t,n){var r=e(`safe-buffer`).Buffer,i=e(`create-hmac`),a=e(`browserify-rsa`),o=e(`elliptic`).ec,s=e(`bn.js`),c=e(`parse-asn1`),l=e(`./curves.json`);function u(e,t,n,a){if((e=r.from(e.toArray())).length<t.byteLength()){var o=r.alloc(t.byteLength()-e.length);e=r.concat([o,e])}var s=n.length,c=function(e,t){e=(e=d(e,t)).mod(t);var n=r.from(e.toArray());if(n.length<t.byteLength()){var i=r.alloc(t.byteLength()-n.length);n=r.concat([i,n])}return n}(n,t),l=r.alloc(s);l.fill(1);var u=r.alloc(s);return u=i(a,u).update(l).update(r.from([0])).update(e).update(c).digest(),l=i(a,u).update(l).digest(),{k:u=i(a,u).update(l).update(r.from([1])).update(e).update(c).digest(),v:l=i(a,u).update(l).digest()}}function d(e,t){var n=new s(e),r=(e.length<<3)-t.bitLength();return r>0&&n.ishrn(r),n}function f(e,t,n){var a,o;do{for(a=r.alloc(0);8*a.length<e.bitLength();)t.v=i(n,t.k).update(t.v).digest(),a=r.concat([a,t.v]);o=d(a,e),t.k=i(n,t.k).update(t.v).update(r.from([0])).digest(),t.v=i(n,t.k).update(t.v).digest()}while(o.cmp(e)!==-1);return o}function p(e,t,n,r){return e.toRed(s.mont(n)).redPow(t).fromRed().mod(r)}t.exports=function(e,t,n,i,m){var h=c(t);if(h.curve){if(i!==`ecdsa`&&i!==`ecdsa/rsa`)throw Error(`wrong private key type`);return function(e,t){var n=l[t.curve.join(`.`)];if(!n)throw Error(`unknown curve `+t.curve.join(`.`));var i=new o(n).keyFromPrivate(t.privateKey).sign(e);return r.from(i.toDER())}(e,h)}if(h.type===`dsa`){if(i!==`dsa`)throw Error(`wrong private key type`);return function(e,t,n){for(var i,a=t.params.priv_key,o=t.params.p,c=t.params.q,l=t.params.g,m=new s(0),h=d(e,c).mod(c),g=!1,_=u(a,c,e,n);!1===g;)i=f(c,_,n),m=p(l,i,o,c),(g=i.invm(c).imul(h.add(a.mul(m))).mod(c)).cmpn(0)===0&&(g=!1,m=new s(0));return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var n=[48,e.length+t.length+4,2,e.length];return n=n.concat(e,[2,t.length],t),r.from(n)}(m,g)}(e,h,n)}if(i!==`rsa`&&i!==`ecdsa/rsa`)throw Error(`wrong private key type`);e=r.concat([m,e]);for(var g=h.modulus.byteLength(),_=[0,1];e.length+_.length+1<g;)_.push(255);_.push(0);for(var v=-1;++v<e.length;)_.push(e[v]);return a(_,h)},t.exports.getKey=u,t.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,t,n){var r=e(`safe-buffer`).Buffer,i=e(`bn.js`),a=e(`elliptic`).ec,o=e(`parse-asn1`),s=e(`./curves.json`);function c(e,t){if(e.cmpn(0)<=0||e.cmp(t)>=t)throw Error(`invalid sig`)}t.exports=function(e,t,n,l,u){var d=o(n);if(d.type===`ec`){if(l!==`ecdsa`&&l!==`ecdsa/rsa`)throw Error(`wrong public key type`);return function(e,t,n){var r=s[n.data.algorithm.curve.join(`.`)];if(!r)throw Error(`unknown curve `+n.data.algorithm.curve.join(`.`));var i=new a(r),o=n.data.subjectPrivateKey.data;return i.verify(t,e,o)}(e,t,d)}if(d.type===`dsa`){if(l!==`dsa`)throw Error(`wrong public key type`);return function(e,t,n){var r=n.data.p,a=n.data.q,s=n.data.g,l=n.data.pub_key,u=o.signature.decode(e,`der`),d=u.s,f=u.r;c(d,a),c(f,a);var p=i.mont(r),m=d.invm(a);return s.toRed(p).redPow(new i(t).mul(m).mod(a)).fromRed().mul(l.toRed(p).redPow(f.mul(m).mod(a)).fromRed()).mod(r).mod(a).cmp(f)===0}(e,t,d)}if(l!==`rsa`&&l!==`ecdsa/rsa`)throw Error(`wrong public key type`);t=r.concat([u,t]);for(var f=d.modulus.byteLength(),p=[1],m=0;t.length+p.length+2<f;)p.push(255),m++;p.push(0);for(var h=-1;++h<t.length;)p.push(t[h]);p=r.from(p);var g=i.mont(d.modulus);e=(e=new i(e).toRed(g)).redPow(new i(d.publicExponent)),e=r.from(e.fromRed().toArray());var _=m<8?1:0;for(f=Math.min(e.length,p.length),e.length!==p.length&&(_=1),h=-1;++h<f;)_|=e[h]^p[h];return _===0}},{"./curves.json":212,"bn.js":186,elliptic:405,"parse-asn1":459,"safe-buffer":494}],216:[function(e,t,n){},{}],217:[function(e,t,n){var r=e(`buffer`),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(a(r,n),n.Buffer=o),a(i,o),o.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return i(e,t,n)},o.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var r=i(e);return t===void 0?r.fill(0):typeof n==`string`?r.fill(t,n):r.fill(t),r},o.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return i(e)},o.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r.SlowBuffer(e)}},{buffer:220}],218:[function(e,t,n){var r=e(`safe-buffer`).Buffer,i=r.isEncoding||function(e){switch((e=``+e)&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}(e);if(typeof t!=`string`&&(r.isEncoding===i||!i(e)))throw Error(`Unknown encoding: `+e);return t||e}(e),this.encoding){case`utf16le`:this.text=c,this.end=l,t=4;break;case`utf8`:this.fillLast=s,t=4;break;case`base64`:this.text=u,this.end=d,t=3;break;default:this.write=f,this.end=p;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if((192&t[0])!=128)return e.lastNeed=0,`<60>`;if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,`<60>`;if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,`<60>`}}(this,e);return n===void 0?this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length)):n}function c(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function u(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):``}n.StringDecoder=a,a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if((t=this.fillLast(e))===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||``},a.prototype.end=function(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`<60>`:t},a.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||i===-2?0:(i=o(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||i===-2?0:(i=o(t[r]))>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":217}],219:[function(e,t,n){(function(e){(function(){t.exports=function(t,n){for(var r=Math.min(t.length,n.length),i=new e(r),a=0;a<r;++a)i[a]=t[a]^n[a];return i}}).call(this)}).call(this,e(`buffer`).Buffer)},{buffer:220}],220:[function(e,t,n){(function(t){(function(){var t=e(`base64-js`),r=e(`ieee754`);n.Buffer=a,n.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},n.INSPECT_MAX_BYTES=50;function i(e){if(e>2147483647)throw RangeError(`The value "`+e+`" is invalid for option "size"`);var t=new Uint8Array(e);return t.__proto__=a.prototype,t}function a(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return c(e)}return o(e,t,n)}function o(e,t,n){if(typeof e==`string`)return function(e,t){if(typeof t==`string`&&t!==``||(t=`utf8`),!a.isEncoding(t))throw TypeError(`Unknown encoding: `+t);var n=0|d(e,t),r=i(n),o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),r}(e,t);if(ArrayBuffer.isView(e))return l(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(L(e,ArrayBuffer)||e&&L(e.buffer,ArrayBuffer))return function(e,t,n){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+(n||0))throw RangeError(`"length" is outside of buffer bounds`);var r=t===void 0&&n===void 0?new Uint8Array(e):n===void 0?new Uint8Array(e,t):new Uint8Array(e,t,n);return r.__proto__=a.prototype,r}(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);var r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return a.from(r,t,n);var o=function(e){if(a.isBuffer(e)){var t=0|u(e.length),n=i(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=`number`||R(e.length)?i(0):l(e);if(e.type===`Buffer`&&Array.isArray(e.data))return l(e.data)}(e);if(o)return o;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return a.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}function s(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function c(e){return s(e),i(e<0?0:0|u(e))}function l(e){for(var t=e.length<0?0:0|u(e.length),n=i(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function u(e){if(e>=2147483647)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes`);return 0|e}function d(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||L(e,ArrayBuffer))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&n===0)return 0;for(var i=!1;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return F(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return 2*n;case`hex`:return n>>>1;case`base64`:return I(e).length;default:if(i)return r?-1:F(e).length;t=(``+t).toLowerCase(),i=!0}}function f(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(t>>>=0))return``;for(e||=`utf8`;;)switch(e){case`hex`:return E(this,t,n);case`utf8`:case`utf-8`:return C(this,t,n);case`ascii`:return w(this,t,n);case`latin1`:case`binary`:return T(this,t,n);case`base64`:return S(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return D(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}function p(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),R(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if(typeof t==`string`&&(t=a.from(t,r)),a.isBuffer(t))return t.length===0?-1:h(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):h(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function h(e,t,n,r,i){var a,o=1,s=e.length,c=t.length;if(r!==void 0&&((r=String(r).toLowerCase())===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,n/=2}function l(e,t){return o===1?e[t]:e.readUInt16BE(t*o)}if(i){var u=-1;for(a=n;a<s;a++)if(l(e,a)===l(t,u===-1?0:a-u)){if(u===-1&&(u=a),a-u+1===c)return u*o}else u!==-1&&(a-=a-u),u=-1}else for(n+c>s&&(n=s-c),a=n;a>=0;a--){for(var d=!0,f=0;f<c;f++)if(l(e,a+f)!==l(t,f)){d=!1;break}if(d)return a}return-1}function g(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(R(s))return o;e[n+o]=s}return o}function _(e,t,n,r){return ee(F(t,e.length-n),e,n,r)}function v(e,t,n,r){return ee(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function y(e,t,n,r){return v(e,t,n,r)}function b(e,t,n,r){return ee(I(t),e,n,r)}function x(e,t,n,r){return ee(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function S(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function C(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,c,l=e[i],u=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=n)switch(d){case 1:l<128&&(u=l);break;case 2:(192&(a=e[i+1]))==128&&(c=(31&l)<<6|63&a)>127&&(u=c);break;case 3:a=e[i+1],o=e[i+2],(192&a)==128&&(192&o)==128&&(c=(15&l)<<12|(63&a)<<6|63&o)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(c=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&c<1114112&&(u=c)}u===null?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n=``,r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}n.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},e.foo()===42}catch{return!1}}(),a.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(a.prototype,`parent`,{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,`offset`,{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),typeof Symbol<`u`&&Symbol.species!=null&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),a.poolSize=8192,a.from=function(e,t,n){return o(e,t,n)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(e,t,n){return function(e,t,n){return s(e),e<=0||t===void 0?i(e):typeof n==`string`?i(e).fill(t,n):i(e).fill(t)}(e,t,n)},a.allocUnsafe=function(e){return c(e)},a.allocUnsafeSlow=function(e){return c(e)},a.isBuffer=function(e){return e!=null&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(L(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),L(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`latin1`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return a.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=a.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(L(o,Uint8Array)&&(o=a.from(o)),!a.isBuffer(o))throw TypeError(`"list" argument must be an Array of Buffers`);o.copy(r,i),i+=o.length}return r},a.byteLength=d,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(var t=0;t<e;t+=2)p(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(var t=0;t<e;t+=4)p(this,t,t+3),p(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(var t=0;t<e;t+=8)p(this,t,t+7),p(this,t+1,t+6),p(this,t+2,t+5),p(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return e===0?``:arguments.length===0?C(this,0,e):f.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw TypeError(`Argument must be a Buffer`);return this===e||a.compare(this,e)===0},a.prototype.inspect=function(){var e=``,t=n.INSPECT_MAX_BYTES;return e=this.toString(`hex`,0,t).replace(/(.{2})/g,`$1 `).trim(),this.length>t&&(e+=` ... `),`<Buffer `+e+`>`},a.prototype.compare=function(e,t,n,r,i){if(L(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),c=Math.min(o,s),l=this.slice(r,i),u=e.slice(t,n),d=0;d<c;++d)if(l[d]!==u[d]){o=l[d],s=u[d];break}return o<s?-1:s<o?1:0},a.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},a.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},a.prototype.write=function(e,t,n,r){if(t===void 0)r=`utf8`,n=this.length,t=0;else if(n===void 0&&typeof t==`string`)r=t,n=this.length,t=0;else{if(!isFinite(t))throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0)}var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;for(var a=!1;;)switch(r){case`hex`:return g(this,e,t,n);case`utf8`:case`utf-8`:return _(this,e,t,n);case`ascii`:return v(this,e,t,n);case`latin1`:case`binary`:return y(this,e,t,n);case`base64`:return b(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return x(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},a.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function w(e,t,n){var r=``;n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function T(e,t,n){var r=``;n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function E(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i=``,a=t;a<n;++a)i+=P(e[a]);return i}function D(e,t,n){for(var r=e.slice(t,n),i=``,a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function O(e,t,n){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>n)throw RangeError(`Trying to access beyond buffer length`)}function k(e,t,n,r,i,o){if(!a.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||t<o)throw RangeError(`"value" argument is out of bounds`);if(n+r>e.length)throw RangeError(`Index out of range`)}function A(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function j(e,t,n,i,a){return t=+t,n>>>=0,a||A(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function M(e,t,n,i,a){return t=+t,n>>>=0,a||A(e,0,n,8),r.write(e,t,n,i,52,8),n+8}a.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=t===void 0?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return r.__proto__=a.prototype,r},a.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||O(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},a.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||O(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},a.prototype.readUInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||O(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=2**(8*t)),r},a.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||O(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=2**(8*t)),a},a.prototype.readInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||O(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){e>>>=0,t||O(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||O(e,4,this.length),r.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||O(e,4,this.length),r.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||O(e,8,this.length),r.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||O(e,8,this.length),r.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||k(this,e,t,n,2**(8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},a.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||k(this,e,t,n,2**(8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);k(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&s===0&&this[t+a-1]!==0&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},a.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);k(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&s===0&&this[t+a+1]!==0&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return M(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return M(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){if(!a.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,r||r===0||(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if(n<0||n>=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&typeof Uint8Array.prototype.copyWithin==`function`)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var o=i-1;o>=0;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},a.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!a.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){var i=e.charCodeAt(0);(r===`utf8`&&i<128||r===`latin1`)&&(e=i)}}else typeof e==`number`&&(e&=255);if(t<0||this.length<t||this.length<n)throw RangeError(`Out of range index`);if(n<=t)return this;var o;if(t>>>=0,n=n===void 0?this.length:n>>>0,e||=0,typeof e==`number`)for(o=t;o<n;++o)this[o]=e;else{var s=a.isBuffer(e)?e:a.from(e,r),c=s.length;if(c===0)throw TypeError(`The value "`+e+`" is invalid for argument "value"`);for(o=0;o<n-t;++o)this[o+t]=s[o%c]}return this};var N=/[^+/0-9A-Za-z-_]/g;function P(e){return e<16?`0`+e.toString(16):e.toString(16)}function F(e,t){var n;t||=1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw Error(`Invalid code point`);if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function I(e){return t.toByteArray(function(e){if((e=(e=e.split(`=`)[0]).trim().replace(N,``)).length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}(e))}function ee(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function L(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function R(e){return e!=e}}).call(this)}).call(this,e(`buffer`).Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(e,t,n){var r=e(`safe-buffer`).Buffer,i=e(`stream`).Transform,a=e(`string_decoder`).StringDecoder;function o(e){i.call(this),this.hashMode=typeof e==`string`,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&=(this.__final=this._final,null),this._decoder=null,this._encoding=null}e(`inherits`)(o,i),o.prototype.update=function(e,t,n){typeof e==`string`&&(e=r.from(e,t));var i=this._update(e);return this.hashMode?this:(n&&(i=this._toString(i,n)),i)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw Error(`trying to get auth tag in unsupported state`)},o.prototype.setAuthTag=function(){throw Error(`trying to set auth tag in unsupported state`)},o.prototype.setAAD=function(){throw Error(`trying to set aad in unsupported state`)},o.prototype._transform=function(e,t,n){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){r=e}finally{n(r)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},o.prototype._finalOrDigest=function(e){var t=this.__final()||r.alloc(0);return e&&(t=this._toString(t,e,!0)),t},o.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new a(t),this._encoding=t),this._encoding!==t)throw Error(`can't switch encodings`);var r=this._decoder.write(e);return n&&(r+=this._decoder.end()),r},t.exports=o},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(e,t,n){var r=e(`../internals/is-callable`),i=e(`../internals/try-to-string`),a=TypeError;t.exports=function(e){if(r(e))return e;throw new a(i(e)+` is not a function`)}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(e,t,n){var r=e(`../internals/is-constructor`),i=e(`../internals/try-to-string`),a=TypeError;t.exports=function(e){if(r(e))return e;throw new a(i(e)+` is not a constructor`)}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(e,t,n){var r=e(`../internals/is-callable`),i=String,a=TypeError;t.exports=function(e){if(typeof e==`object`||r(e))return e;throw new a(`Can't set `+i(e)+` as a prototype`)}},{"../internals/is-callable":285}],225:[function(e,t,n){var r=e(`../internals/well-known-symbol`),i=e(`../internals/object-create`),a=e(`../internals/object-define-property`).f,o=r(`unscopables`),s=Array.prototype;s[o]===void 0&&a(s,o,{configurable:!0,value:i(null)}),t.exports=function(e){s[o][e]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(e,t,n){var r=e(`../internals/object-is-prototype-of`),i=TypeError;t.exports=function(e,t){if(r(t,e))return e;throw new i(`Incorrect invocation`)}},{"../internals/object-is-prototype-of":314}],227:[function(e,t,n){var r=e(`../internals/is-object`),i=String,a=TypeError;t.exports=function(e){if(r(e))return e;throw new a(i(e)+` is not an object`)}},{"../internals/is-object":289}],228:[function(e,t,n){var r=e(`../internals/to-indexed-object`),i=e(`../internals/to-absolute-index`),a=e(`../internals/length-of-array-like`),o=function(e){return function(t,n,o){var s,c=r(t),l=a(c),u=i(o,l);if(e&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(e,t,n){var r=e(`../internals/function-bind-context`),i=e(`../internals/function-uncurry-this`),a=e(`../internals/indexed-object`),o=e(`../internals/to-object`),s=e(`../internals/length-of-array-like`),c=e(`../internals/array-species-create`),l=i([].push),u=function(e){var t=e===1,n=e===2,i=e===3,u=e===4,d=e===6,f=e===7,p=e===5||d;return function(m,h,g,_){for(var v,y,b=o(m),x=a(b),S=r(h,g),C=s(x),w=0,T=_||c,E=t?T(m,C):n||f?T(m,0):void 0;C>w;w++)if((p||w in x)&&(y=S(v=x[w],w,b),e))if(t)E[w]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return w;case 2:l(E,v)}else switch(e){case 4:return!1;case 7:l(E,v)}return d?-1:i||u?u:E}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},{"../internals/array-species-create":233,"../internals/function-bind-context":262,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/length-of-array-like":299,"../internals/to-object":344}],230:[function(e,t,n){var r=e(`../internals/to-absolute-index`),i=e(`../internals/length-of-array-like`),a=e(`../internals/create-property`),o=Array,s=Math.max;t.exports=function(e,t,n){for(var c=i(e),l=r(t,c),u=r(n===void 0?c:n,c),d=o(s(u-l,0)),f=0;l<u;l++,f++)a(d,f,e[l]);return d.length=f,d}},{"../internals/create-property":243,"../internals/length-of-array-like":299,"../internals/to-absolute-index":340}],231:[function(e,t,n){t.exports=e(`../internals/function-uncurry-this`)([].slice)},{"../internals/function-uncurry-this":268}],232:[function(e,t,n){var r=e(`../internals/is-array`),i=e(`../internals/is-constructor`),a=e(`../internals/is-object`),o=e(`../internals/well-known-symbol`)(`species`),s=Array;t.exports=function(e){var t;return r(e)&&(t=e.constructor,(i(t)&&(t===s||r(t.prototype))||a(t)&&(t=t[o])===null)&&(t=void 0)),t===void 0?s:t}},{"../internals/is-array":284,"../internals/is-constructor":286,"../internals/is-object":289,"../internals/well-known-symbol":357}],233:[function(e,t,n){var r=e(`../internals/array-species-constructor`);t.exports=function(e,t){return new(r(e))(t===0?0:t)}},{"../internals/array-species-constructor":232}],234:[function(e,t,n){var r=e(`../internals/well-known-symbol`)(`iterator`),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[r]=function(){return this},Array.from(o,(function(){throw 2}))}catch{}t.exports=function(e,t){try{if(!t&&!i)return!1}catch{return!1}var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch{}return n}},{"../internals/well-known-symbol":357}],235:[function(e,t,n){var r=e(`../internals/function-uncurry-this`),i=r({}.toString),a=r(``.slice);t.exports=function(e){return a(i(e),8,-1)}},{"../internals/function-uncurry-this":268}],236:[function(e,t,n){var r=e(`../internals/to-string-tag-support`),i=e(`../internals/is-callable`),a=e(`../internals/classof-raw`),o=e(`../internals/well-known-symbol`)(`toStringTag`),s=Object,c=a(function(){return arguments}())===`Arguments`;t.exports=r?a:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=s(e),o))==`string`?n:c?a(t):(r=a(t))===`Object`&&i(t.callee)?`Arguments`:r}},{"../internals/classof-raw":235,"../internals/is-callable":285,"../internals/to-string-tag-support":347,"../internals/well-known-symbol":357}],237:[function(e,t,n){var r=e(`../internals/has-own-property`),i=e(`../internals/own-keys`),a=e(`../internals/object-get-own-property-descriptor`),o=e(`../internals/object-define-property`);t.exports=function(e,t,n){for(var s=i(t),c=o.f,l=a.f,u=0;u<s.length;u++){var d=s[u];r(e,d)||n&&r(n,d)||c(e,d,l(t,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,t,n){var r=e(`../internals/well-known-symbol`)(`match`);t.exports=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[r]=!1,`/./`[e](t)}catch{}}return!1}},{"../internals/well-known-symbol":357}],239:[function(e,t,n){t.exports=!e(`../internals/fails`)((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},{"../internals/fails":260}],240:[function(e,t,n){t.exports=function(e,t){return{value:e,done:t}}},{}],241:[function(e,t,n){var r=e(`../internals/descriptors`),i=e(`../internals/object-define-property`),a=e(`../internals/create-property-descriptor`);t.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/object-define-property":308}],242:[function(e,t,n){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],243:[function(e,t,n){var r=e(`../internals/to-property-key`),i=e(`../internals/object-define-property`),a=e(`../internals/create-property-descriptor`);t.exports=function(e,t,n){var o=r(t);o in e?i.f(e,o,a(0,n)):e[o]=n}},{"../internals/create-property-descriptor":242,"../internals/object-define-property":308,"../internals/to-property-key":346}],244:[function(e,t,n){var r=e(`../internals/make-built-in`),i=e(`../internals/object-define-property`);t.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},{"../internals/make-built-in":300,"../internals/object-define-property":308}],245:[function(e,t,n){var r=e(`../internals/is-callable`),i=e(`../internals/object-define-property`),a=e(`../internals/make-built-in`),o=e(`../internals/define-global-property`);t.exports=function(e,t,n,s){s||={};var c=s.enumerable,l=s.name===void 0?t:s.name;if(r(n)&&a(n,l,s),s.global)c?e[t]=n:o(t,n);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch{}c?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},{"../internals/define-global-property":246,"../internals/is-callable":285,"../internals/make-built-in":300,"../internals/object-define-property":308}],246:[function(e,t,n){var r=e(`../internals/global`),i=Object.defineProperty;t.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch{r[e]=t}return t}},{"../internals/global":274}],247:[function(e,t,n){t.exports=!e(`../internals/fails`)((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}))},{"../internals/fails":260}],248:[function(e,t,n){var r=typeof document==`object`&&document.all;t.exports={all:r,IS_HTMLDDA:r===void 0&&r!==void 0}},{}],249:[function(e,t,n){var r=e(`../internals/global`),i=e(`../internals/is-object`),a=r.document,o=i(a)&&i(a.createElement);t.exports=function(e){return o?a.createElement(e):{}}},{"../internals/global":274,"../internals/is-object":289}],250:[function(e,t,n){var r=e(`../internals/engine-is-deno`),i=e(`../internals/engine-is-node`);t.exports=!r&&!i&&typeof window==`object`&&typeof document==`object`},{"../internals/engine-is-deno":251,"../internals/engine-is-node":254}],251:[function(e,t,n){t.exports=typeof Deno==`object`&&Deno&&typeof Deno.version==`object`},{}],252:[function(e,t,n){var r=e(`../internals/engine-user-agent`);t.exports=/ipad|iphone|ipod/i.test(r)&&typeof Pebble<`u`},{"../internals/engine-user-agent":256}],253:[function(e,t,n){var r=e(`../internals/engine-user-agent`);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},{"../internals/engine-user-agent":256}],254:[function(e,t,n){var r=e(`../internals/global`);t.exports=e(`../internals/classof-raw`)(r.process)===`process`},{"../internals/classof-raw":235,"../internals/global":274}],255:[function(e,t,n){var r=e(`../internals/engine-user-agent`);t.exports=/web0s(?!.*chrome)/i.test(r)},{"../internals/engine-user-agent":256}],256:[function(e,t,n){t.exports=typeof navigator<`u`&&String(navigator.userAgent)||``},{}],257:[function(e,t,n){var r,i,a=e(`../internals/global`),o=e(`../internals/engine-user-agent`),s=a.process,c=a.Deno,l=s&&s.versions||c&&c.version,u=l&&l.v8;u&&(i=(r=u.split(`.`))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(e,t,n){t.exports=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`]},{}],259:[function(e,t,n){var r=e(`../internals/global`),i=e(`../internals/object-get-own-property-descriptor`).f,a=e(`../internals/create-non-enumerable-property`),o=e(`../internals/define-built-in`),s=e(`../internals/define-global-property`),c=e(`../internals/copy-constructor-properties`),l=e(`../internals/is-forced`);t.exports=function(e,t){var n,u,d,f,p,m=e.target,h=e.global,g=e.stat;if(n=h?r:g?r[m]||s(m,{}):(r[m]||{}).prototype)for(u in t){if(f=t[u],d=e.dontCallGetSet?(p=i(n,u))&&p.value:n[u],!l(h?u:m+(g?`.`:`#`)+u,e.forced)&&d!==void 0){if(typeof f==typeof d)continue;c(f,d)}(e.sham||d&&d.sham)&&a(f,`sham`,!0),o(n,u,f,e)}}},{"../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,t,n){t.exports=function(e){try{return!!e()}catch{return!0}}},{}],261:[function(e,t,n){var r=e(`../internals/function-bind-native`),i=Function.prototype,a=i.apply,o=i.call;t.exports=typeof Reflect==`object`&&Reflect.apply||(r?o.bind(a):function(){return o.apply(a,arguments)})},{"../internals/function-bind-native":263}],262:[function(e,t,n){var r=e(`../internals/function-uncurry-this-clause`),i=e(`../internals/a-callable`),a=e(`../internals/function-bind-native`),o=r(r.bind);t.exports=function(e,t){return i(e),t===void 0?e:a?o(e,t):function(){return e.apply(t,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(e,t,n){t.exports=!e(`../internals/fails`)((function(){var e=function(){}.bind();return typeof e!=`function`||e.hasOwnProperty(`prototype`)}))},{"../internals/fails":260}],264:[function(e,t,n){var r=e(`../internals/function-bind-native`),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},{"../internals/function-bind-native":263}],265:[function(e,t,n){var r=e(`../internals/descriptors`),i=e(`../internals/has-own-property`),a=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,s=i(a,`name`);t.exports={EXISTS:s,PROPER:s&&function(){}.name===`something`,CONFIGURABLE:s&&(!r||r&&o(a,`name`).configurable)}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(e,t,n){var r=e(`../internals/function-uncurry-this`),i=e(`../internals/a-callable`);t.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch{}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(e,t,n){var r=e(`../internals/classof-raw`),i=e(`../internals/function-uncurry-this`);t.exports=function(e){if(r(e)===`Function`)return i(e)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(e,t,n){var r=e(`../internals/function-bind-native`),i=Function.prototype,a=i.call,o=r&&i.bind.bind(a,a);t.exports=r?o:function(e){return function(){return a.apply(e,arguments)}}},{"../internals/function-bind-native":263}],269:[function(e,t,n){var r=e(`../internals/global`),i=e(`../internals/is-callable`),a=function(e){return i(e)?e:void 0};t.exports=function(e,t){return arguments.length<2?a(r[e]):r[e]&&r[e][t]}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(e,t,n){var r=e(`../internals/classof`),i=e(`../internals/get-method`),a=e(`../internals/is-null-or-undefined`),o=e(`../internals/iterators`),s=e(`../internals/well-known-symbol`)(`iterator`);t.exports=function(e){if(!a(e))return i(e,s)||i(e,`@@iterator`)||o[r(e)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(e,t,n){var r=e(`../internals/function-call`),i=e(`../internals/a-callable`),a=e(`../internals/an-object`),o=e(`../internals/try-to-string`),s=e(`../internals/get-iterator-method`),c=TypeError;t.exports=function(e,t){var n=arguments.length<2?s(e):t;if(i(n))return a(r(n,e));throw new c(o(e)+` 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,t,n){var r=e(`../internals/function-uncurry-this`),i=e(`../internals/is-array`),a=e(`../internals/is-callable`),o=e(`../internals/classof-raw`),s=e(`../internals/to-string`),c=r([].push);t.exports=function(e){if(a(e))return e;if(i(e)){for(var t=e.length,n=[],r=0;r<t;r++){var l=e[r];typeof l==`string`?c(n,l):typeof l!=`number`&&o(l)!==`Number`&&o(l)!==`String`||c(n,s(l))}var u=n.length,d=!0;return function(e,t){if(d)return d=!1,t;if(i(this))return t;for(var r=0;r<u;r++)if(n[r]===e)return t}}}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268,"../internals/is-array":284,"../internals/is-callable":285,"../internals/to-string":348}],273:[function(e,t,n){var r=e(`../internals/a-callable`),i=e(`../internals/is-null-or-undefined`);t.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},{"../internals/a-callable":222,"../internals/is-null-or-undefined":288}],274:[function(e,t,n){(function(e){(function(){var n=function(e){return e&&e.Math===Math&&e};t.exports=n(typeof globalThis==`object`&&globalThis)||n(typeof window==`object`&&window)||n(typeof self==`object`&&self)||n(typeof e==`object`&&e)||function(){return this}()||this||Function(`return this`)()}).call(this)}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{}],275:[function(e,t,n){var r=e(`../internals/function-uncurry-this`),i=e(`../internals/to-object`),a=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return a(i(e),t)}},{"../internals/function-uncurry-this":268,"../internals/to-object":344}],276:[function(e,t,n){t.exports={}},{}],277:[function(e,t,n){t.exports=function(e,t){try{arguments.length===1?console.error(e):console.error(e,t)}catch{}}},{}],278:[function(e,t,n){t.exports=e(`../internals/get-built-in`)(`document`,`documentElement`)},{"../internals/get-built-in":269}],279:[function(e,t,n){var r=e(`../internals/descriptors`),i=e(`../internals/fails`),a=e(`../internals/document-create-element`);t.exports=!r&&!i((function(){return Object.defineProperty(a(`div`),`a`,{get:function(){return 7}}).a!==7}))},{"../internals/descriptors":247,"../internals/document-create-element":249,"../internals/fails":260}],280:[function(e,t,n){var r=e(`../internals/function-uncurry-this`),i=e(`../internals/fails`),a=e(`../internals/classof-raw`),o=Object,s=r(``.split);t.exports=i((function(){return!o(`z`).propertyIsEnumerable(0)}))?function(e){return a(e)===`String`?s(e,``):o(e)}:o},{"../internals/classof-raw":235,"../internals/fails":260,"../internals/function-uncurry-this":268}],281:[function(e,t,n){var r=e(`../internals/function-uncurry-this`),i=e(`../internals/is-callable`),a=e(`../internals/shared-store`),o=r(Function.toString);i(a.inspectSource)||(a.inspectSource=function(e){return o(e)}),t.exports=a.inspectSource},{"../internals/function-uncurry-this":268,"../internals/is-callable":285,"../internals/shared-store":333}],282:[function(e,t,n){var r,i,a,o=e(`../internals/weak-map-basic-detection`),s=e(`../internals/global`),c=e(`../internals/is-object`),l=e(`../internals/create-non-enumerable-property`),u=e(`../internals/has-own-property`),d=e(`../internals/shared-store`),f=e(`../internals/shared-key`),p=e(`../internals/hidden-keys`),m=s.TypeError,h=s.WeakMap;if(o||d.state){var g=d.state||=new h;g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw new m(`Object already initialized`);return t.facade=e,g.set(e,t),t},i=function(e){return g.get(e)||{}},a=function(e){return g.has(e)}}else{var _=f(`state`);p[_]=!0,r=function(e,t){if(u(e,_))throw new m(`Object already initialized`);return t.facade=e,l(e,_,t),t},i=function(e){return u(e,_)?e[_]:{}},a=function(e){return u(e,_)}}t.exports={set:r,get:i,has:a,enforce:function(e){return a(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw new m(`Incompatible receiver, `+e+` required`);return n}}}},{"../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,t,n){var r=e(`../internals/well-known-symbol`),i=e(`../internals/iterators`),a=r(`iterator`),o=Array.prototype;t.exports=function(e){return e!==void 0&&(i.Array===e||o[a]===e)}},{"../internals/iterators":298,"../internals/well-known-symbol":357}],284:[function(e,t,n){var r=e(`../internals/classof-raw`);t.exports=Array.isArray||function(e){return r(e)===`Array`}},{"../internals/classof-raw":235}],285:[function(e,t,n){var r=e(`../internals/document-all`),i=r.all;t.exports=r.IS_HTMLDDA?function(e){return typeof e==`function`||e===i}:function(e){return typeof e==`function`}},{"../internals/document-all":248}],286:[function(e,t,n){var r=e(`../internals/function-uncurry-this`),i=e(`../internals/fails`),a=e(`../internals/is-callable`),o=e(`../internals/classof`),s=e(`../internals/get-built-in`),c=e(`../internals/inspect-source`),l=function(){},u=[],d=s(`Reflect`,`construct`),f=/^\s*(?:class|function)\b/,p=r(f.exec),m=!f.test(l),h=function(e){if(!a(e))return!1;try{return d(l,u,e),!0}catch{return!1}},g=function(e){if(!a(e))return!1;switch(o(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}try{return m||!!p(f,c(e))}catch{return!0}};g.sham=!0,t.exports=!d||i((function(){var e;return h(h.call)||!h(Object)||!h((function(){e=!0}))||e}))?g:h},{"../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,t,n){var r=e(`../internals/fails`),i=e(`../internals/is-callable`),a=/#|\.prototype\./,o=function(e,t){var n=c[s(e)];return n===u||n!==l&&(i(t)?r(t):!!t)},s=o.normalize=function(e){return String(e).replace(a,`.`).toLowerCase()},c=o.data={},l=o.NATIVE=`N`,u=o.POLYFILL=`P`;t.exports=o},{"../internals/fails":260,"../internals/is-callable":285}],288:[function(e,t,n){t.exports=function(e){return e==null}},{}],289:[function(e,t,n){var r=e(`../internals/is-callable`),i=e(`../internals/document-all`),a=i.all;t.exports=i.IS_HTMLDDA?function(e){return typeof e==`object`?e!==null:r(e)||e===a}:function(e){return typeof e==`object`?e!==null:r(e)}},{"../internals/document-all":248,"../internals/is-callable":285}],290:[function(e,t,n){t.exports=!1},{}],291:[function(e,t,n){var r=e(`../internals/is-object`),i=e(`../internals/classof-raw`),a=e(`../internals/well-known-symbol`)(`match`);t.exports=function(e){var t;return r(e)&&((t=e[a])===void 0?i(e)===`RegExp`:!!t)}},{"../internals/classof-raw":235,"../internals/is-object":289,"../internals/well-known-symbol":357}],292:[function(e,t,n){var r=e(`../internals/get-built-in`),i=e(`../internals/is-callable`),a=e(`../internals/object-is-prototype-of`),o=e(`../internals/use-symbol-as-uid`),s=Object;t.exports=o?function(e){return typeof e==`symbol`}:function(e){var t=r(`Symbol`);return i(t)&&a(t.prototype,s(e))}},{"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/object-is-prototype-of":314,"../internals/use-symbol-as-uid":351}],293:[function(e,t,n){var r=e(`../internals/function-bind-context`),i=e(`../internals/function-call`),a=e(`../internals/an-object`),o=e(`../internals/try-to-string`),s=e(`../internals/is-array-iterator-method`),c=e(`../internals/length-of-array-like`),l=e(`../internals/object-is-prototype-of`),u=e(`../internals/get-iterator`),d=e(`../internals/get-iterator-method`),f=e(`../internals/iterator-close`),p=TypeError,m=function(e,t){this.stopped=e,this.result=t},h=m.prototype;t.exports=function(e,t,n){var g,_,v,y,b,x,S,C=n&&n.that,w=!(!n||!n.AS_ENTRIES),T=!(!n||!n.IS_RECORD),E=!(!n||!n.IS_ITERATOR),D=!(!n||!n.INTERRUPTED),O=r(t,C),k=function(e){return g&&f(g,`normal`,e),new m(!0,e)},A=function(e){return w?(a(e),D?O(e[0],e[1],k):O(e[0],e[1])):D?O(e,k):O(e)};if(T)g=e.iterator;else if(E)g=e;else{if(!(_=d(e)))throw new p(o(e)+` is not iterable`);if(s(_)){for(v=0,y=c(e);y>v;v++)if((b=A(e[v]))&&l(h,b))return b;return new m(!1)}g=u(e,_)}for(x=T?e.next:g.next;!(S=i(x,g)).done;){try{b=A(S.value)}catch(e){f(g,`throw`,e)}if(typeof b==`object`&&b&&l(h,b))return b}return new m(!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,t,n){var r=e(`../internals/function-call`),i=e(`../internals/an-object`),a=e(`../internals/get-method`);t.exports=function(e,t,n){var o,s;i(e);try{if(!(o=a(e,`return`))){if(t===`throw`)throw n;return n}o=r(o,e)}catch(e){s=!0,o=e}if(t===`throw`)throw n;if(s)throw o;return i(o),n}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(e,t,n){var r=e(`../internals/iterators-core`).IteratorPrototype,i=e(`../internals/object-create`),a=e(`../internals/create-property-descriptor`),o=e(`../internals/set-to-string-tag`),s=e(`../internals/iterators`),c=function(){return this};t.exports=function(e,t,n,l){var u=t+` Iterator`;return e.prototype=i(r,{next:a(+!l,n)}),o(e,u,!1,!0),s[u]=c,e}},{"../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,t,n){var r=e(`../internals/export`),i=e(`../internals/function-call`),a=e(`../internals/is-pure`),o=e(`../internals/function-name`),s=e(`../internals/is-callable`),c=e(`../internals/iterator-create-constructor`),l=e(`../internals/object-get-prototype-of`),u=e(`../internals/object-set-prototype-of`),d=e(`../internals/set-to-string-tag`),f=e(`../internals/create-non-enumerable-property`),p=e(`../internals/define-built-in`),m=e(`../internals/well-known-symbol`),h=e(`../internals/iterators`),g=e(`../internals/iterators-core`),_=o.PROPER,v=o.CONFIGURABLE,y=g.IteratorPrototype,b=g.BUGGY_SAFARI_ITERATORS,x=m(`iterator`),S=function(){return this};t.exports=function(e,t,n,o,m,g,C){c(n,t,o);var w,T,E,D=function(e){if(e===m&&M)return M;if(!b&&e&&e in A)return A[e];switch(e){case`keys`:case`values`:case`entries`:return function(){return new n(this,e)}}return function(){return new n(this)}},O=t+` Iterator`,k=!1,A=e.prototype,j=A[x]||A[`@@iterator`]||m&&A[m],M=!b&&j||D(m),N=t===`Array`&&A.entries||j;if(N&&(w=l(N.call(new e)))!==Object.prototype&&w.next&&(a||l(w)===y||(u?u(w,y):s(w[x])||p(w,x,S)),d(w,O,!0,!0),a&&(h[O]=S)),_&&m===`values`&&j&&j.name!==`values`&&(!a&&v?f(A,`name`,`values`):(k=!0,M=function(){return i(j,this)})),m)if(T={values:D(`values`),keys:g?M:D(`keys`),entries:D(`entries`)},C)for(E in T)(b||k||!(E in A))&&p(A,E,T[E]);else r({target:t,proto:!0,forced:b||k},T);return a&&!C||A[x]===M||p(A,x,M,{name:m}),h[t]=M,T}},{"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/export":259,"../internals/function-call":264,"../internals/function-name":265,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/iterator-create-constructor":295,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-get-prototype-of":313,"../internals/object-set-prototype-of":318,"../internals/set-to-string-tag":331,"../internals/well-known-symbol":357}],297:[function(e,t,n){var r,i,a,o=e(`../internals/fails`),s=e(`../internals/is-callable`),c=e(`../internals/is-object`),l=e(`../internals/object-create`),u=e(`../internals/object-get-prototype-of`),d=e(`../internals/define-built-in`),f=e(`../internals/well-known-symbol`),p=e(`../internals/is-pure`),m=f(`iterator`),h=!1;[].keys&&(`next`in(a=[].keys())?(i=u(u(a)))!==Object.prototype&&(r=i):h=!0),!c(r)||o((function(){var e={};return r[m].call(e)!==e}))?r={}:p&&(r=l(r)),s(r[m])||d(r,m,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},{"../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,t,n){arguments[4][276][0].apply(n,arguments)},{dup:276}],299:[function(e,t,n){var r=e(`../internals/to-length`);t.exports=function(e){return r(e.length)}},{"../internals/to-length":343}],300:[function(e,t,n){var r=e(`../internals/function-uncurry-this`),i=e(`../internals/fails`),a=e(`../internals/is-callable`),o=e(`../internals/has-own-property`),s=e(`../internals/descriptors`),c=e(`../internals/function-name`).CONFIGURABLE,l=e(`../internals/inspect-source`),u=e(`../internals/internal-state`),d=u.enforce,f=u.get,p=String,m=Object.defineProperty,h=r(``.slice),g=r(``.replace),_=r([].join),v=s&&!i((function(){return m((function(){}),`length`,{value:8}).length!==8})),y=String(String).split(`String`),b=t.exports=function(e,t,n){h(p(t),0,7)===`Symbol(`&&(t=`[`+g(p(t),/^Symbol\(([^)]*)\)/,`$1`)+`]`),n&&n.getter&&(t=`get `+t),n&&n.setter&&(t=`set `+t),(!o(e,`name`)||c&&e.name!==t)&&(s?m(e,`name`,{value:t,configurable:!0}):e.name=t),v&&n&&o(n,`arity`)&&e.length!==n.arity&&m(e,`length`,{value:n.arity});try{n&&o(n,`constructor`)&&n.constructor?s&&m(e,`prototype`,{writable:!1}):e.prototype&&=void 0}catch{}var r=d(e);return o(r,`source`)||(r.source=_(y,typeof t==`string`?t:``)),e};Function.prototype.toString=b((function(){return a(this)&&f(this).source||l(this)}),`toString`)},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-name":265,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/inspect-source":281,"../internals/internal-state":282,"../internals/is-callable":285}],301:[function(e,t,n){var r=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?i:r)(t)}},{}],302:[function(e,t,n){var r,i,a,o,s,c=e(`../internals/global`),l=e(`../internals/function-bind-context`),u=e(`../internals/object-get-own-property-descriptor`).f,d=e(`../internals/task`).set,f=e(`../internals/queue`),p=e(`../internals/engine-is-ios`),m=e(`../internals/engine-is-ios-pebble`),h=e(`../internals/engine-is-webos-webkit`),g=e(`../internals/engine-is-node`),_=c.MutationObserver||c.WebKitMutationObserver,v=c.document,y=c.process,b=c.Promise,x=u(c,`queueMicrotask`),S=x&&x.value;if(!S){var C=new f,w=function(){var e,t;for(g&&(e=y.domain)&&e.exit();t=C.get();)try{t()}catch(e){throw C.head&&r(),e}e&&e.enter()};p||g||h||!_||!v?!m&&b&&b.resolve?((o=b.resolve(void 0)).constructor=b,s=l(o.then,o),r=function(){s(w)}):g?r=function(){y.nextTick(w)}:(d=l(d,c),r=function(){d(w)}):(i=!0,a=v.createTextNode(``),new _(w).observe(a,{characterData:!0}),r=function(){a.data=i=!i}),S=function(e){C.head||r(),C.add(e)}}t.exports=S},{"../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,t,n){var r=e(`../internals/a-callable`),i=TypeError,a=function(e){var t,n;this.promise=new e((function(e,r){if(t!==void 0||n!==void 0)throw new i(`Bad Promise constructor`);t=e,n=r})),this.resolve=r(t),this.reject=r(n)};t.exports.f=function(e){return new a(e)}},{"../internals/a-callable":222}],304:[function(e,t,n){var r=e(`../internals/is-regexp`),i=TypeError;t.exports=function(e){if(r(e))throw new i(`The method doesn't accept regular expressions`);return e}},{"../internals/is-regexp":291}],305:[function(e,t,n){var r=e(`../internals/descriptors`),i=e(`../internals/function-uncurry-this`),a=e(`../internals/function-call`),o=e(`../internals/fails`),s=e(`../internals/object-keys`),c=e(`../internals/object-get-own-property-symbols`),l=e(`../internals/object-property-is-enumerable`),u=e(`../internals/to-object`),d=e(`../internals/indexed-object`),f=Object.assign,p=Object.defineProperty,m=i([].concat);t.exports=!f||o((function(){if(r&&f({b:1},f(p({},`a`,{enumerable:!0,get:function(){p(this,`b`,{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(`assign detection`);return e[n]=7,`abcdefghijklmnopqrst`.split(``).forEach((function(e){t[e]=e})),f({},e)[n]!==7||s(f({},t)).join(``)!==`abcdefghijklmnopqrst`}))?function(e,t){for(var n=u(e),i=arguments.length,o=1,f=c.f,p=l.f;i>o;)for(var h,g=d(arguments[o++]),_=f?m(s(g),f(g)):s(g),v=_.length,y=0;v>y;)h=_[y++],r&&!a(p,g,h)||(n[h]=g[h]);return n}: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,t,n){var r,i=e(`../internals/an-object`),a=e(`../internals/object-define-properties`),o=e(`../internals/enum-bug-keys`),s=e(`../internals/hidden-keys`),c=e(`../internals/html`),l=e(`../internals/document-create-element`),u=e(`../internals/shared-key`)(`IE_PROTO`),d=function(){},f=function(e){return`<script>`+e+`<\/script>`},p=function(e){e.write(f(``)),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{r=new ActiveXObject(`htmlfile`)}catch{}var e,t;m=typeof document<`u`?document.domain&&r?p(r):((t=l(`iframe`)).style.display=`none`,c.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(f(`document.F=Object`)),e.close(),e.F):p(r);for(var n=o.length;n--;)delete m.prototype[o[n]];return m()};s[u]=!0,t.exports=Object.create||function(e,t){var n;return e===null?n=m():(d.prototype=i(e),n=new d,d.prototype=null,n[u]=e),t===void 0?n:a.f(n,t)}},{"../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,t,n){var r=e(`../internals/descriptors`),i=e(`../internals/v8-prototype-define-bug`),a=e(`../internals/object-define-property`),o=e(`../internals/an-object`),s=e(`../internals/to-indexed-object`),c=e(`../internals/object-keys`);n.f=r&&!i?Object.defineProperties:function(e,t){o(e);for(var n,r=s(t),i=c(t),l=i.length,u=0;l>u;)a.f(e,n=i[u++],r[n]);return e}},{"../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,t,n){var r=e(`../internals/descriptors`),i=e(`../internals/ie8-dom-define`),a=e(`../internals/v8-prototype-define-bug`),o=e(`../internals/an-object`),s=e(`../internals/to-property-key`),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor;n.f=r?a?function(e,t,n){if(o(e),t=s(t),o(n),typeof e==`function`&&t===`prototype`&&`value`in n&&`writable`in n&&!n.writable){var r=u(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:`configurable`in n?n.configurable:r.configurable,enumerable:`enumerable`in n?n.enumerable:r.enumerable,writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(o(e),t=s(t),o(n),i)try{return l(e,t,n)}catch{}if(`get`in n||`set`in n)throw new c(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},{"../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,t,n){var r=e(`../internals/descriptors`),i=e(`../internals/function-call`),a=e(`../internals/object-property-is-enumerable`),o=e(`../internals/create-property-descriptor`),s=e(`../internals/to-indexed-object`),c=e(`../internals/to-property-key`),l=e(`../internals/has-own-property`),u=e(`../internals/ie8-dom-define`),d=Object.getOwnPropertyDescriptor;n.f=r?d:function(e,t){if(e=s(e),t=c(t),u)try{return d(e,t)}catch{}if(l(e,t))return o(!i(a.f,e,t),e[t])}},{"../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,t,n){var r=e(`../internals/classof-raw`),i=e(`../internals/to-indexed-object`),a=e(`../internals/object-get-own-property-names`).f,o=e(`../internals/array-slice-simple`),s=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(e){return s&&r(e)===`Window`?function(e){try{return a(e)}catch{return o(s)}}(e):a(i(e))}},{"../internals/array-slice-simple":230,"../internals/classof-raw":235,"../internals/object-get-own-property-names":311,"../internals/to-indexed-object":341}],311:[function(e,t,n){var r=e(`../internals/object-keys-internal`),i=e(`../internals/enum-bug-keys`).concat(`length`,`prototype`);n.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],312:[function(e,t,n){n.f=Object.getOwnPropertySymbols},{}],313:[function(e,t,n){var r=e(`../internals/has-own-property`),i=e(`../internals/is-callable`),a=e(`../internals/to-object`),o=e(`../internals/shared-key`),s=e(`../internals/correct-prototype-getter`),c=o(`IE_PROTO`),l=Object,u=l.prototype;t.exports=s?l.getPrototypeOf:function(e){var t=a(e);if(r(t,c))return t[c];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof l?u:null}},{"../internals/correct-prototype-getter":239,"../internals/has-own-property":275,"../internals/is-callable":285,"../internals/shared-key":332,"../internals/to-object":344}],314:[function(e,t,n){t.exports=e(`../internals/function-uncurry-this`)({}.isPrototypeOf)},{"../internals/function-uncurry-this":268}],315:[function(e,t,n){var r=e(`../internals/function-uncurry-this`),i=e(`../internals/has-own-property`),a=e(`../internals/to-indexed-object`),o=e(`../internals/array-includes`).indexOf,s=e(`../internals/hidden-keys`),c=r([].push);t.exports=function(e,t){var n,r=a(e),l=0,u=[];for(n in r)!i(s,n)&&i(r,n)&&c(u,n);for(;t.length>l;)i(r,n=t[l++])&&(~o(u,n)||c(u,n));return u}},{"../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,t,n){var r=e(`../internals/object-keys-internal`),i=e(`../internals/enum-bug-keys`);t.exports=Object.keys||function(e){return r(e,i)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],317:[function(e,t,n){var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor;n.f=i&&!r.call({1:2},1)?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},{}],318:[function(e,t,n){var r=e(`../internals/function-uncurry-this-accessor`),i=e(`../internals/an-object`),a=e(`../internals/a-possible-prototype`);t.exports=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,`__proto__`,`set`))(n,[]),t=n instanceof Array}catch{}return function(n,r){return i(n),a(r),t?e(n,r):n.__proto__=r,n}}():void 0)},{"../internals/a-possible-prototype":224,"../internals/an-object":227,"../internals/function-uncurry-this-accessor":266}],319:[function(e,t,n){var r=e(`../internals/descriptors`),i=e(`../internals/fails`),a=e(`../internals/function-uncurry-this`),o=e(`../internals/object-get-prototype-of`),s=e(`../internals/object-keys`),c=e(`../internals/to-indexed-object`),l=a(e(`../internals/object-property-is-enumerable`).f),u=a([].push),d=r&&i((function(){var e=Object.create(null);return e[2]=2,!l(e,2)})),f=function(e){return function(t){for(var n,i=c(t),a=s(i),f=d&&o(i)===null,p=a.length,m=0,h=[];p>m;)n=a[m++],r&&!(f?n in i:l(i,n))||u(h,e?[n,i[n]]:i[n]);return h}};t.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,t,n){var r=e(`../internals/function-call`),i=e(`../internals/is-callable`),a=e(`../internals/is-object`),o=TypeError;t.exports=function(e,t){var n,s;if(t===`string`&&i(n=e.toString)&&!a(s=r(n,e))||i(n=e.valueOf)&&!a(s=r(n,e))||t!==`string`&&i(n=e.toString)&&!a(s=r(n,e)))return s;throw new o(`Can't convert object to primitive value`)}},{"../internals/function-call":264,"../internals/is-callable":285,"../internals/is-object":289}],321:[function(e,t,n){var r=e(`../internals/get-built-in`),i=e(`../internals/function-uncurry-this`),a=e(`../internals/object-get-own-property-names`),o=e(`../internals/object-get-own-property-symbols`),s=e(`../internals/an-object`),c=i([].concat);t.exports=r(`Reflect`,`ownKeys`)||function(e){var t=a.f(s(e)),n=o.f;return n?c(t,n(e)):t}},{"../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,t,n){t.exports=e(`../internals/global`)},{"../internals/global":274}],323:[function(e,t,n){t.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},{}],324:[function(e,t,n){var r=e(`../internals/global`),i=e(`../internals/promise-native-constructor`),a=e(`../internals/is-callable`),o=e(`../internals/is-forced`),s=e(`../internals/inspect-source`),c=e(`../internals/well-known-symbol`),l=e(`../internals/engine-is-browser`),u=e(`../internals/engine-is-deno`),d=e(`../internals/is-pure`),f=e(`../internals/engine-v8-version`),p=i&&i.prototype,m=c(`species`),h=!1,g=a(r.PromiseRejectionEvent);t.exports={CONSTRUCTOR:o(`Promise`,(function(){var e=s(i),t=e!==String(i);if(!t&&f===66||d&&(!p.catch||!p.finally))return!0;if(!f||f<51||!/native code/.test(e)){var n=new i((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[m]=r,!(h=n.then((function(){}))instanceof r))return!0}return!t&&(l||u)&&!g})),REJECTION_EVENT:g,SUBCLASSING:h}},{"../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,t,n){t.exports=e(`../internals/global`).Promise},{"../internals/global":274}],326:[function(e,t,n){var r=e(`../internals/an-object`),i=e(`../internals/is-object`),a=e(`../internals/new-promise-capability`);t.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},{"../internals/an-object":227,"../internals/is-object":289,"../internals/new-promise-capability":303}],327:[function(e,t,n){var r=e(`../internals/promise-native-constructor`),i=e(`../internals/check-correctness-of-iteration`);t.exports=e(`../internals/promise-constructor-detection`).CONSTRUCTOR||!i((function(e){r.all(e).then(void 0,(function(){}))}))},{"../internals/check-correctness-of-iteration":234,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],328:[function(e,t,n){var r=function(){this.head=null,this.tail=null};r.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return(this.head=e.next)===null&&(this.tail=null),e.item}},t.exports=r},{}],329:[function(e,t,n){var r=e(`../internals/is-null-or-undefined`),i=TypeError;t.exports=function(e){if(r(e))throw new i(`Can't call method on `+e);return e}},{"../internals/is-null-or-undefined":288}],330:[function(e,t,n){var r=e(`../internals/get-built-in`),i=e(`../internals/define-built-in-accessor`),a=e(`../internals/well-known-symbol`),o=e(`../internals/descriptors`),s=a(`species`);t.exports=function(e){var t=r(e);o&&t&&!t[s]&&i(t,s,{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,t,n){var r=e(`../internals/object-define-property`).f,i=e(`../internals/has-own-property`),a=e(`../internals/well-known-symbol`)(`toStringTag`);t.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,a)&&r(e,a,{configurable:!0,value:t})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],332:[function(e,t,n){var r=e(`../internals/shared`),i=e(`../internals/uid`),a=r(`keys`);t.exports=function(e){return a[e]||(a[e]=i(e))}},{"../internals/shared":334,"../internals/uid":350}],333:[function(e,t,n){var r=e(`../internals/global`),i=e(`../internals/define-global-property`);t.exports=r[`__core-js_shared__`]||i(`__core-js_shared__`,{})},{"../internals/define-global-property":246,"../internals/global":274}],334:[function(e,t,n){var r=e(`../internals/is-pure`),i=e(`../internals/shared-store`);(t.exports=function(e,t){return i[e]||(i[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.33.0`,mode:r?`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,t,n){var r=e(`../internals/an-object`),i=e(`../internals/a-constructor`),a=e(`../internals/is-null-or-undefined`),o=e(`../internals/well-known-symbol`)(`species`);t.exports=function(e,t){var n,s=r(e).constructor;return s===void 0||a(n=r(s)[o])?t:i(n)}},{"../internals/a-constructor":223,"../internals/an-object":227,"../internals/is-null-or-undefined":288,"../internals/well-known-symbol":357}],336:[function(e,t,n){var r=e(`../internals/engine-v8-version`),i=e(`../internals/fails`),a=e(`../internals/global`).String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol(`symbol detection`);return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},{"../internals/engine-v8-version":257,"../internals/fails":260,"../internals/global":274}],337:[function(e,t,n){var r=e(`../internals/function-call`),i=e(`../internals/get-built-in`),a=e(`../internals/well-known-symbol`),o=e(`../internals/define-built-in`);t.exports=function(){var e=i(`Symbol`),t=e&&e.prototype,n=t&&t.valueOf,s=a(`toPrimitive`);t&&!t[s]&&o(t,s,(function(e){return r(n,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,t,n){t.exports=e(`../internals/symbol-constructor-detection`)&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/symbol-constructor-detection":336}],339:[function(e,t,n){var r,i,a,o,s=e(`../internals/global`),c=e(`../internals/function-apply`),l=e(`../internals/function-bind-context`),u=e(`../internals/is-callable`),d=e(`../internals/has-own-property`),f=e(`../internals/fails`),p=e(`../internals/html`),m=e(`../internals/array-slice`),h=e(`../internals/document-create-element`),g=e(`../internals/validate-arguments-length`),_=e(`../internals/engine-is-ios`),v=e(`../internals/engine-is-node`),y=s.setImmediate,b=s.clearImmediate,x=s.process,S=s.Dispatch,C=s.Function,w=s.MessageChannel,T=s.String,E=0,D={};f((function(){r=s.location}));var O=function(e){if(d(D,e)){var t=D[e];delete D[e],t()}},k=function(e){return function(){O(e)}},A=function(e){O(e.data)},j=function(e){s.postMessage(T(e),r.protocol+`//`+r.host)};y&&b||(y=function(e){g(arguments.length,1);var t=u(e)?e:C(e),n=m(arguments,1);return D[++E]=function(){c(t,void 0,n)},i(E),E},b=function(e){delete D[e]},v?i=function(e){x.nextTick(k(e))}:S&&S.now?i=function(e){S.now(k(e))}:w&&!_?(o=(a=new w).port2,a.port1.onmessage=A,i=l(o.postMessage,o)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&r&&r.protocol!==`file:`&&!f(j)?(i=j,s.addEventListener(`message`,A,!1)):i=`onreadystatechange`in h(`script`)?function(e){p.appendChild(h(`script`)).onreadystatechange=function(){p.removeChild(this),O(e)}}:function(e){setTimeout(k(e),0)}),t.exports={set:y,clear:b}},{"../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,t,n){var r=e(`../internals/to-integer-or-infinity`),i=Math.max,a=Math.min;t.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},{"../internals/to-integer-or-infinity":342}],341:[function(e,t,n){var r=e(`../internals/indexed-object`),i=e(`../internals/require-object-coercible`);t.exports=function(e){return r(i(e))}},{"../internals/indexed-object":280,"../internals/require-object-coercible":329}],342:[function(e,t,n){var r=e(`../internals/math-trunc`);t.exports=function(e){var t=+e;return t!=t||t===0?0:r(t)}},{"../internals/math-trunc":301}],343:[function(e,t,n){var r=e(`../internals/to-integer-or-infinity`),i=Math.min;t.exports=function(e){return e>0?i(r(e),9007199254740991):0}},{"../internals/to-integer-or-infinity":342}],344:[function(e,t,n){var r=e(`../internals/require-object-coercible`),i=Object;t.exports=function(e){return i(r(e))}},{"../internals/require-object-coercible":329}],345:[function(e,t,n){var r=e(`../internals/function-call`),i=e(`../internals/is-object`),a=e(`../internals/is-symbol`),o=e(`../internals/get-method`),s=e(`../internals/ordinary-to-primitive`),c=e(`../internals/well-known-symbol`),l=TypeError,u=c(`toPrimitive`);t.exports=function(e,t){if(!i(e)||a(e))return e;var n,c=o(e,u);if(c){if(t===void 0&&(t=`default`),n=r(c,e,t),!i(n)||a(n))return n;throw new l(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),s(e,t)}},{"../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,t,n){var r=e(`../internals/to-primitive`),i=e(`../internals/is-symbol`);t.exports=function(e){var t=r(e,`string`);return i(t)?t:t+``}},{"../internals/is-symbol":292,"../internals/to-primitive":345}],347:[function(e,t,n){var r={};r[e(`../internals/well-known-symbol`)(`toStringTag`)]=`z`,t.exports=String(r)===`[object z]`},{"../internals/well-known-symbol":357}],348:[function(e,t,n){var r=e(`../internals/classof`),i=String;t.exports=function(e){if(r(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return i(e)}},{"../internals/classof":236}],349:[function(e,t,n){var r=String;t.exports=function(e){try{return r(e)}catch{return`Object`}}},{}],350:[function(e,t,n){var r=e(`../internals/function-uncurry-this`),i=0,a=Math.random(),o=r(1 .toString);t.exports=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+o(++i+a,36)}},{"../internals/function-uncurry-this":268}],351:[function(e,t,n){t.exports=e(`../internals/symbol-constructor-detection`)&&!Symbol.sham&&typeof Symbol.iterator==`symbol`},{"../internals/symbol-constructor-detection":336}],352:[function(e,t,n){var r=e(`../internals/descriptors`),i=e(`../internals/fails`);t.exports=r&&i((function(){return Object.defineProperty((function(){}),`prototype`,{value:42,writable:!1}).prototype!==42}))},{"../internals/descriptors":247,"../internals/fails":260}],353:[function(e,t,n){var r=TypeError;t.exports=function(e,t){if(e<t)throw new r(`Not enough arguments`);return e}},{}],354:[function(e,t,n){var r=e(`../internals/global`),i=e(`../internals/is-callable`),a=r.WeakMap;t.exports=i(a)&&/native code/.test(String(a))},{"../internals/global":274,"../internals/is-callable":285}],355:[function(e,t,n){var r=e(`../internals/path`),i=e(`../internals/has-own-property`),a=e(`../internals/well-known-symbol-wrapped`),o=e(`../internals/object-define-property`).f;t.exports=function(e){var t=r.Symbol||={};i(t,e)||o(t,e,{value:a.f(e)})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/path":322,"../internals/well-known-symbol-wrapped":356}],356:[function(e,t,n){n.f=e(`../internals/well-known-symbol`)},{"../internals/well-known-symbol":357}],357:[function(e,t,n){var r=e(`../internals/global`),i=e(`../internals/shared`),a=e(`../internals/has-own-property`),o=e(`../internals/uid`),s=e(`../internals/symbol-constructor-detection`),c=e(`../internals/use-symbol-as-uid`),l=r.Symbol,u=i(`wks`),d=c?l.for||l:l&&l.withoutSetter||o;t.exports=function(e){return a(u,e)||(u[e]=s&&a(l,e)?l[e]:d(`Symbol.`+e)),u[e]}},{"../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,t,n){var r=e(`../internals/export`),i=e(`../internals/array-iteration`).findIndex,a=e(`../internals/add-to-unscopables`),o=!0;`findIndex`in[]&&[,].findIndex((function(){o=!1})),r({target:`Array`,proto:!0,forced:o},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a(`findIndex`)},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],359:[function(e,t,n){var r=e(`../internals/export`),i=e(`../internals/array-iteration`).find,a=e(`../internals/add-to-unscopables`),o=!0;`find`in[]&&[,].find((function(){o=!1})),r({target:`Array`,proto:!0,forced:o},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a(`find`)},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],360:[function(e,t,n){var r=e(`../internals/export`),i=e(`../internals/array-includes`).includes,a=e(`../internals/fails`),o=e(`../internals/add-to-unscopables`);r({target:`Array`,proto:!0,forced:a((function(){return![,].includes()}))},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(`includes`)},{"../internals/add-to-unscopables":225,"../internals/array-includes":228,"../internals/export":259,"../internals/fails":260}],361:[function(e,t,n){var r=e(`../internals/to-indexed-object`),i=e(`../internals/add-to-unscopables`),a=e(`../internals/iterators`),o=e(`../internals/internal-state`),s=e(`../internals/object-define-property`).f,c=e(`../internals/iterator-define`),l=e(`../internals/create-iter-result-object`),u=e(`../internals/is-pure`),d=e(`../internals/descriptors`),f=o.set,p=o.getterFor(`Array Iterator`);t.exports=c(Array,`Array`,(function(e,t){f(this,{type:`Array Iterator`,target:r(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,n=e.kind,r=e.index++;if(!t||r>=t.length)return e.target=void 0,l(void 0,!0);switch(n){case`keys`:return l(r,!1);case`values`:return l(t[r],!1)}return l([r,t[r]],!1)}),`values`);var m=a.Arguments=a.Array;if(i(`keys`),i(`values`),i(`entries`),!u&&d&&m.name!==`values`)try{s(m,`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,t,n){var r=e(`../internals/export`),i=e(`../internals/get-built-in`),a=e(`../internals/function-apply`),o=e(`../internals/function-call`),s=e(`../internals/function-uncurry-this`),c=e(`../internals/fails`),l=e(`../internals/is-callable`),u=e(`../internals/is-symbol`),d=e(`../internals/array-slice`),f=e(`../internals/get-json-replacer-function`),p=e(`../internals/symbol-constructor-detection`),m=String,h=i(`JSON`,`stringify`),g=s(/./.exec),_=s(``.charAt),v=s(``.charCodeAt),y=s(``.replace),b=s(1 .toString),x=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,C=/^[\uDC00-\uDFFF]$/,w=!p||c((function(){var e=i(`Symbol`)(`stringify detection`);return h([e])!==`[null]`||h({a:e})!==`{}`||h(Object(e))!==`{}`})),T=c((function(){return h(`\udf06\ud834`)!==`"\\udf06\\ud834"`||h(`\udead`)!==`"\\udead"`})),E=function(e,t){var n=d(arguments),r=f(t);if(l(r)||e!==void 0&&!u(e))return n[1]=function(e,t){if(l(r)&&(t=o(r,this,m(e),t)),!u(t))return t},a(h,null,n)},D=function(e,t,n){var r=_(n,t-1),i=_(n,t+1);return g(S,e)&&!g(C,i)||g(C,e)&&!g(S,r)?`\\u`+b(v(e,0),16):e};h&&r({target:`JSON`,stat:!0,arity:3,forced:w||T},{stringify:function(e,t,n){var r=d(arguments),i=a(w?E:h,null,r);return T&&typeof i==`string`?y(i,x,D):i}})},{"../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,t,n){e(`../internals/export`)({target:`Number`,stat:!0},{isNaN:function(e){return e!=e}})},{"../internals/export":259}],364:[function(e,t,n){var r=e(`../internals/export`),i=e(`../internals/object-assign`);r({target:`Object`,stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},{"../internals/export":259,"../internals/object-assign":305}],365:[function(e,t,n){var r=e(`../internals/export`),i=e(`../internals/symbol-constructor-detection`),a=e(`../internals/fails`),o=e(`../internals/object-get-own-property-symbols`),s=e(`../internals/to-object`);r({target:`Object`,stat:!0,forced:!i||a((function(){o.f(1)}))},{getOwnPropertySymbols:function(e){var t=o.f;return t?t(s(e)):[]}})},{"../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,t,n){var r=e(`../internals/export`),i=e(`../internals/to-object`),a=e(`../internals/object-keys`);r({target:`Object`,stat:!0,forced:e(`../internals/fails`)((function(){a(1)}))},{keys:function(e){return a(i(e))}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-keys":316,"../internals/to-object":344}],367:[function(e,t,n){var r=e(`../internals/export`),i=e(`../internals/object-to-array`).values;r({target:`Object`,stat:!0},{values:function(e){return i(e)}})},{"../internals/export":259,"../internals/object-to-array":319}],368:[function(e,t,n){var r=e(`../internals/export`),i=e(`../internals/function-call`),a=e(`../internals/a-callable`),o=e(`../internals/new-promise-capability`),s=e(`../internals/perform`),c=e(`../internals/iterate`);r({target:`Promise`,stat:!0,forced:e(`../internals/promise-statics-incorrect-iteration`)},{all:function(e){var t=this,n=o.f(t),r=n.resolve,l=n.reject,u=s((function(){var n=a(t.resolve),o=[],s=0,u=1;c(e,(function(e){var a=s++,c=!1;u++,i(n,t,e).then((function(e){c||(c=!0,o[a]=e,--u||r(o))}),l)})),--u||r(o)}));return u.error&&l(u.value),n.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,t,n){var r=e(`../internals/export`),i=e(`../internals/is-pure`),a=e(`../internals/promise-constructor-detection`).CONSTRUCTOR,o=e(`../internals/promise-native-constructor`),s=e(`../internals/get-built-in`),c=e(`../internals/is-callable`),l=e(`../internals/define-built-in`),u=o&&o.prototype;if(r({target:`Promise`,proto:!0,forced:a,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&c(o)){var d=s(`Promise`).prototype.catch;u.catch!==d&&l(u,`catch`,d,{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,t,n){var r,i,a,o=e(`../internals/export`),s=e(`../internals/is-pure`),c=e(`../internals/engine-is-node`),l=e(`../internals/global`),u=e(`../internals/function-call`),d=e(`../internals/define-built-in`),f=e(`../internals/object-set-prototype-of`),p=e(`../internals/set-to-string-tag`),m=e(`../internals/set-species`),h=e(`../internals/a-callable`),g=e(`../internals/is-callable`),_=e(`../internals/is-object`),v=e(`../internals/an-instance`),y=e(`../internals/species-constructor`),b=e(`../internals/task`).set,x=e(`../internals/microtask`),S=e(`../internals/host-report-errors`),C=e(`../internals/perform`),w=e(`../internals/queue`),T=e(`../internals/internal-state`),E=e(`../internals/promise-native-constructor`),D=e(`../internals/promise-constructor-detection`),O=e(`../internals/new-promise-capability`),k=D.CONSTRUCTOR,A=D.REJECTION_EVENT,j=D.SUBCLASSING,M=T.getterFor(`Promise`),N=T.set,P=E&&E.prototype,F=E,I=P,ee=l.TypeError,L=l.document,R=l.process,z=O.f,B=z,V=!!(L&&L.createEvent&&l.dispatchEvent),H=function(e){var t;return!(!_(e)||!g(t=e.then))&&t},U=function(e,t){var n,r,i,a=t.value,o=t.state===1,s=o?e.ok:e.fail,c=e.resolve,l=e.reject,d=e.domain;try{s?(o||(t.rejection===2&&re(t),t.rejection=1),!0===s?n=a:(d&&d.enter(),n=s(a),d&&(d.exit(),i=!0)),n===e.promise?l(new ee(`Promise-chain cycle`)):(r=H(n))?u(r,n,c,l):c(n)):l(a)}catch(e){d&&!i&&d.exit(),l(e)}},W=function(e,t){e.notified||(e.notified=!0,x((function(){for(var n,r=e.reactions;n=r.get();)U(n,e);e.notified=!1,t&&!e.rejection&&ne(e)})))},te=function(e,t,n){var r,i;V?((r=L.createEvent(`Event`)).promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},!A&&(i=l[`on`+e])?i(r):e===`unhandledrejection`&&S(`Unhandled promise rejection`,n)},ne=function(e){u(b,l,(function(){var t,n=e.facade,r=e.value;if(G(e)&&(t=C((function(){c?R.emit(`unhandledRejection`,r,n):te(`unhandledrejection`,n,r)})),e.rejection=c||G(e)?2:1,t.error))throw t.value}))},G=function(e){return e.rejection!==1&&!e.parent},re=function(e){u(b,l,(function(){var t=e.facade;c?R.emit(`rejectionHandled`,t):te(`rejectionhandled`,t,e.value)}))},ie=function(e,t,n){return function(r){e(t,r,n)}},K=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,W(e,!0))},q=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new ee(`Promise can't be resolved itself`);var r=H(t);r?x((function(){var n={done:!1};try{u(r,t,ie(q,n,e),ie(K,n,e))}catch(t){K(n,t,e)}})):(e.value=t,e.state=1,W(e,!1))}catch(t){K({done:!1},t,e)}}};if(k&&(I=(F=function(e){v(this,I),h(e),u(r,this);var t=M(this);try{e(ie(q,t),ie(K,t))}catch(e){K(t,e)}}).prototype,(r=function(e){N(this,{type:`Promise`,done:!1,notified:!1,parent:!1,reactions:new w,rejection:!1,state:0,value:void 0})}).prototype=d(I,`then`,(function(e,t){var n=M(this),r=z(y(this,F));return n.parent=!0,r.ok=!g(e)||e,r.fail=g(t)&&t,r.domain=c?R.domain:void 0,n.state===0?n.reactions.add(r):x((function(){U(r,n)})),r.promise})),i=function(){var e=new r,t=M(e);this.promise=e,this.resolve=ie(q,t),this.reject=ie(K,t)},O.f=z=function(e){return e===F||e===void 0?new i(e):B(e)},!s&&g(E)&&P!==Object.prototype)){a=P.then,j||d(P,`then`,(function(e,t){var n=this;return new F((function(e,t){u(a,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete P.constructor}catch{}f&&f(P,I)}o({global:!0,constructor:!0,wrap:!0,forced:k},{Promise:F}),p(F,`Promise`,!1,!0),m(`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,t,n){var r=e(`../internals/export`),i=e(`../internals/is-pure`),a=e(`../internals/promise-native-constructor`),o=e(`../internals/fails`),s=e(`../internals/get-built-in`),c=e(`../internals/is-callable`),l=e(`../internals/species-constructor`),u=e(`../internals/promise-resolve`),d=e(`../internals/define-built-in`),f=a&&a.prototype;if(r({target:`Promise`,proto:!0,real:!0,forced:!!a&&o((function(){f.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=l(this,s(`Promise`)),n=c(e);return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),!i&&c(a)){var p=s(`Promise`).prototype.finally;f.finally!==p&&d(f,`finally`,p,{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,t,n){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,t,n){var r=e(`../internals/export`),i=e(`../internals/function-call`),a=e(`../internals/a-callable`),o=e(`../internals/new-promise-capability`),s=e(`../internals/perform`),c=e(`../internals/iterate`);r({target:`Promise`,stat:!0,forced:e(`../internals/promise-statics-incorrect-iteration`)},{race:function(e){var t=this,n=o.f(t),r=n.reject,l=s((function(){var o=a(t.resolve);c(e,(function(e){i(o,t,e).then(n.resolve,r)}))}));return l.error&&r(l.value),n.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,t,n){var r=e(`../internals/export`),i=e(`../internals/function-call`),a=e(`../internals/new-promise-capability`);r({target:`Promise`,stat:!0,forced:e(`../internals/promise-constructor-detection`).CONSTRUCTOR},{reject:function(e){var t=a.f(this);return i(t.reject,void 0,e),t.promise}})},{"../internals/export":259,"../internals/function-call":264,"../internals/new-promise-capability":303,"../internals/promise-constructor-detection":324}],375:[function(e,t,n){var r=e(`../internals/export`),i=e(`../internals/get-built-in`),a=e(`../internals/is-pure`),o=e(`../internals/promise-native-constructor`),s=e(`../internals/promise-constructor-detection`).CONSTRUCTOR,c=e(`../internals/promise-resolve`),l=i(`Promise`),u=a&&!s;r({target:`Promise`,stat:!0,forced:a||s},{resolve:function(e){return c(u&&this===l?o:this,e)}})},{"../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,t,n){var r=e(`../internals/export`),i=e(`../internals/function-uncurry-this`),a=e(`../internals/to-absolute-index`),o=RangeError,s=String.fromCharCode,c=String.fromCodePoint,l=i([].join);r({target:`String`,stat:!0,arity:1,forced:!!c&&c.length!==1},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,i=0;r>i;){if(t=+arguments[i++],a(t,1114111)!==t)throw new o(t+` is not a valid code point`);n[i]=t<65536?s(t):s(55296+((t-=65536)>>10),t%1024+56320)}return l(n,``)}})},{"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/to-absolute-index":340}],377:[function(e,t,n){var r=e(`../internals/export`),i=e(`../internals/function-uncurry-this`),a=e(`../internals/not-a-regexp`),o=e(`../internals/require-object-coercible`),s=e(`../internals/to-string`),c=e(`../internals/correct-is-regexp-logic`),l=i(``.indexOf);r({target:`String`,proto:!0,forced:!c(`includes`)},{includes:function(e){return!!~l(s(o(this)),s(a(e)),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,t,n){e(`../internals/well-known-symbol-define`)(`asyncIterator`)},{"../internals/well-known-symbol-define":355}],379:[function(e,t,n){var r=e(`../internals/export`),i=e(`../internals/global`),a=e(`../internals/function-call`),o=e(`../internals/function-uncurry-this`),s=e(`../internals/is-pure`),c=e(`../internals/descriptors`),l=e(`../internals/symbol-constructor-detection`),u=e(`../internals/fails`),d=e(`../internals/has-own-property`),f=e(`../internals/object-is-prototype-of`),p=e(`../internals/an-object`),m=e(`../internals/to-indexed-object`),h=e(`../internals/to-property-key`),g=e(`../internals/to-string`),_=e(`../internals/create-property-descriptor`),v=e(`../internals/object-create`),y=e(`../internals/object-keys`),b=e(`../internals/object-get-own-property-names`),x=e(`../internals/object-get-own-property-names-external`),S=e(`../internals/object-get-own-property-symbols`),C=e(`../internals/object-get-own-property-descriptor`),w=e(`../internals/object-define-property`),T=e(`../internals/object-define-properties`),E=e(`../internals/object-property-is-enumerable`),D=e(`../internals/define-built-in`),O=e(`../internals/define-built-in-accessor`),k=e(`../internals/shared`),A=e(`../internals/shared-key`),j=e(`../internals/hidden-keys`),M=e(`../internals/uid`),N=e(`../internals/well-known-symbol`),P=e(`../internals/well-known-symbol-wrapped`),F=e(`../internals/well-known-symbol-define`),I=e(`../internals/symbol-define-to-primitive`),ee=e(`../internals/set-to-string-tag`),L=e(`../internals/internal-state`),R=e(`../internals/array-iteration`).forEach,z=A(`hidden`),B=L.set,V=L.getterFor(`Symbol`),H=Object.prototype,U=i.Symbol,W=U&&U.prototype,te=i.RangeError,ne=i.TypeError,G=i.QObject,re=C.f,ie=w.f,K=x.f,q=E.f,J=o([].push),Y=k(`symbols`),ae=k(`op-symbols`),oe=k(`wks`),X=!G||!G.prototype||!G.prototype.findChild,se=function(e,t,n){var r=re(H,t);r&&delete H[t],ie(e,t,n),r&&e!==H&&ie(H,t,r)},ce=c&&u((function(){return v(ie({},`a`,{get:function(){return ie(this,`a`,{value:7}).a}})).a!==7}))?se:ie,Z=function(e,t){var n=Y[e]=v(W);return B(n,{type:`Symbol`,tag:e,description:t}),c||(n.description=t),n},le=function(e,t,n){e===H&&le(ae,t,n),p(e);var r=h(t);return p(n),d(Y,r)?(n.enumerable?(d(e,z)&&e[z][r]&&(e[z][r]=!1),n=v(n,{enumerable:_(0,!1)})):(d(e,z)||ie(e,z,_(1,{})),e[z][r]=!0),ce(e,r,n)):ie(e,r,n)},ue=function(e,t){p(e);var n=m(t);return R(y(n).concat(Q(n)),(function(t){c&&!a(de,n,t)||le(e,t,n[t])})),e},de=function(e){var t=h(e),n=a(q,this,t);return!(this===H&&d(Y,t)&&!d(ae,t))&&(!(n||!d(this,t)||!d(Y,t)||d(this,z)&&this[z][t])||n)},fe=function(e,t){var n=m(e),r=h(t);if(n!==H||!d(Y,r)||d(ae,r)){var i=re(n,r);return!i||!d(Y,r)||d(n,z)&&n[z][r]||(i.enumerable=!0),i}},pe=function(e){var t=K(m(e)),n=[];return R(t,(function(e){d(Y,e)||d(j,e)||J(n,e)})),n},Q=function(e){var t=e===H,n=K(t?ae:m(e)),r=[];return R(n,(function(e){!d(Y,e)||t&&!d(H,e)||J(r,Y[e])})),r};l||(D(W=(U=function(){if(f(W,this))throw new ne(`Symbol is not a constructor`);var e=arguments.length&&arguments[0]!==void 0?g(arguments[0]):void 0,t=M(e),n=function(e){this===H&&a(n,ae,e),d(this,z)&&d(this[z],t)&&(this[z][t]=!1);var r=_(1,e);try{ce(this,t,r)}catch(e){if(!(e instanceof te))throw e;se(this,t,r)}};return c&&X&&ce(H,t,{configurable:!0,set:n}),Z(t,e)}).prototype,`toString`,(function(){return V(this).tag})),D(U,`withoutSetter`,(function(e){return Z(M(e),e)})),E.f=de,w.f=le,T.f=ue,C.f=fe,b.f=x.f=pe,S.f=Q,P.f=function(e){return Z(N(e),e)},c&&(O(W,`description`,{configurable:!0,get:function(){return V(this).description}}),s||D(H,`propertyIsEnumerable`,de,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:U}),R(y(oe),(function(e){F(e)})),r({target:`Symbol`,stat:!0,forced:!l},{useSetter:function(){X=!0},useSimple:function(){X=!1}}),r({target:`Object`,stat:!0,forced:!l,sham:!c},{create:function(e,t){return t===void 0?v(e):ue(v(e),t)},defineProperty:le,defineProperties:ue,getOwnPropertyDescriptor:fe}),r({target:`Object`,stat:!0,forced:!l},{getOwnPropertyNames:pe}),I(),ee(U,`Symbol`),j[z]=!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,t,n){var r=e(`../internals/export`),i=e(`../internals/get-built-in`),a=e(`../internals/has-own-property`),o=e(`../internals/to-string`),s=e(`../internals/shared`),c=e(`../internals/symbol-registry-detection`),l=s(`string-to-symbol-registry`),u=s(`symbol-to-string-registry`);r({target:`Symbol`,stat:!0,forced:!c},{for:function(e){var t=o(e);if(a(l,t))return l[t];var n=i(`Symbol`)(t);return l[t]=n,u[n]=t,n}})},{"../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,t,n){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,t,n){var r=e(`../internals/export`),i=e(`../internals/has-own-property`),a=e(`../internals/is-symbol`),o=e(`../internals/try-to-string`),s=e(`../internals/shared`),c=e(`../internals/symbol-registry-detection`),l=s(`symbol-to-string-registry`);r({target:`Symbol`,stat:!0,forced:!c},{keyFor:function(e){if(!a(e))throw TypeError(o(e)+` is not a symbol`);if(i(l,e))return l[e]}})},{"../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,t,n){function r(e){return Object.prototype.toString.call(e)}n.isArray=function(e){return Array.isArray?Array.isArray(e):r(e)===`[object Array]`},n.isBoolean=function(e){return typeof e==`boolean`},n.isNull=function(e){return e===null},n.isNullOrUndefined=function(e){return e==null},n.isNumber=function(e){return typeof e==`number`},n.isString=function(e){return typeof e==`string`},n.isSymbol=function(e){return typeof e==`symbol`},n.isUndefined=function(e){return e===void 0},n.isRegExp=function(e){return r(e)===`[object RegExp]`},n.isObject=function(e){return typeof e==`object`&&!!e},n.isDate=function(e){return r(e)===`[object Date]`},n.isError=function(e){return r(e)===`[object Error]`||e instanceof Error},n.isFunction=function(e){return typeof e==`function`},n.isPrimitive=function(e){return e===null||typeof e==`boolean`||typeof e==`number`||typeof e==`string`||typeof e==`symbol`||e===void 0},n.isBuffer=e(`buffer`).Buffer.isBuffer},{buffer:220}],384:[function(e,t,n){(function(n){(function(){var r=e(`elliptic`),i=e(`bn.js`);t.exports=function(e){return new o(e)};var a={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 o(e){this.curveType=a[e],this.curveType||={name:e},this.curve=new r.ec(this.curveType.name),this.keys=void 0}function s(e,t,r){Array.isArray(e)||(e=e.toArray());var i=new n(e);if(r&&i.length<r){var a=new n(r-i.length);a.fill(0),i=n.concat([a,i])}return t?i.toString(t):i}a.p224=a.secp224r1,a.p256=a.secp256r1=a.prime256v1,a.p192=a.secp192r1=a.prime192v1,a.p384=a.secp384r1,a.p521=a.secp521r1,o.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},o.prototype.computeSecret=function(e,t,r){return t||=`utf8`,n.isBuffer(e)||(e=new n(e,t)),s(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},o.prototype.getPublicKey=function(e,t){var n=this.keys.getPublic(t===`compressed`,!0);return t===`hybrid`&&(n[n.length-1]%2?n[0]=7:n[0]=6),s(n,e)},o.prototype.getPrivateKey=function(e){return s(this.keys.getPrivate(),e)},o.prototype.setPublicKey=function(e,t){return t||=`utf8`,n.isBuffer(e)||(e=new n(e,t)),this.keys._importPublic(e),this},o.prototype.setPrivateKey=function(e,t){t||=`utf8`,n.isBuffer(e)||(e=new n(e,t));var r=new i(e);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}}).call(this)}).call(this,e(`buffer`).Buffer)},{"bn.js":385,buffer:220,elliptic:405}],385:[function(e,t,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],386:[function(e,t,n){var r=e(`inherits`),i=e(`md5.js`),a=e(`ripemd160`),o=e(`sha.js`),s=e(`cipher-base`);function c(e){s.call(this,`digest`),this._hash=e}r(c,s),c.prototype._update=function(e){this._hash.update(e)},c.prototype._final=function(){return this._hash.digest()},t.exports=function(e){return(e=e.toLowerCase())===`md5`?new i:e===`rmd160`||e===`ripemd160`?new a:new c(o(e))}},{"cipher-base":221,inherits:440,"md5.js":450,ripemd160:493,"sha.js":498}],387:[function(e,t,n){var r=e(`md5.js`);t.exports=function(e){return new r().update(e).digest()}},{"md5.js":450}],388:[function(e,t,n){var r=e(`inherits`),i=e(`./legacy`),a=e(`cipher-base`),o=e(`safe-buffer`).Buffer,s=e(`create-hash/md5`),c=e(`ripemd160`),l=e(`sha.js`),u=o.alloc(128);function d(e,t){a.call(this,`digest`),typeof t==`string`&&(t=o.from(t));var n=e===`sha512`||e===`sha384`?128:64;this._alg=e,this._key=t,t.length>n?t=(e===`rmd160`?new c:l(e)).update(t).digest():t.length<n&&(t=o.concat([t,u],n));for(var r=this._ipad=o.allocUnsafe(n),i=this._opad=o.allocUnsafe(n),s=0;s<n;s++)r[s]=54^t[s],i[s]=92^t[s];this._hash=e===`rmd160`?new c:l(e),this._hash.update(r)}r(d,a),d.prototype._update=function(e){this._hash.update(e)},d.prototype._final=function(){var e=this._hash.digest();return(this._alg===`rmd160`?new c:l(this._alg)).update(this._opad).update(e).digest()},t.exports=function(e,t){return(e=e.toLowerCase())===`rmd160`||e===`ripemd160`?new d(`rmd160`,t):e===`md5`?new i(s,t):new d(e,t)}},{"./legacy":389,"cipher-base":221,"create-hash/md5":387,inherits:440,ripemd160:493,"safe-buffer":494,"sha.js":498}],389:[function(e,t,n){var r=e(`inherits`),i=e(`safe-buffer`).Buffer,a=e(`cipher-base`),o=i.alloc(128);function s(e,t){a.call(this,`digest`),typeof t==`string`&&(t=i.from(t)),this._alg=e,this._key=t,t.length>64?t=e(t):t.length<64&&(t=i.concat([t,o],64));for(var n=this._ipad=i.allocUnsafe(64),r=this._opad=i.allocUnsafe(64),s=0;s<64;s++)n[s]=54^t[s],r[s]=92^t[s];this._hash=[n]}r(s,a),s.prototype._update=function(e){this._hash.push(e)},s.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},t.exports=s},{"cipher-base":221,inherits:440,"safe-buffer":494}],390:[function(e,t,n){n.randomBytes=n.rng=n.pseudoRandomBytes=n.prng=e(`randombytes`),n.createHash=n.Hash=e(`create-hash`),n.createHmac=n.Hmac=e(`create-hmac`);var r=e(`browserify-sign/algos`),i=Object.keys(r),a=[`sha1`,`sha224`,`sha256`,`sha384`,`sha512`,`md5`,`rmd160`].concat(i);n.getHashes=function(){return a};var o=e(`pbkdf2`);n.pbkdf2=o.pbkdf2,n.pbkdf2Sync=o.pbkdf2Sync;var s=e(`browserify-cipher`);n.Cipher=s.Cipher,n.createCipher=s.createCipher,n.Cipheriv=s.Cipheriv,n.createCipheriv=s.createCipheriv,n.Decipher=s.Decipher,n.createDecipher=s.createDecipher,n.Decipheriv=s.Decipheriv,n.createDecipheriv=s.createDecipheriv,n.getCiphers=s.getCiphers,n.listCiphers=s.listCiphers;var c=e(`diffie-hellman`);n.DiffieHellmanGroup=c.DiffieHellmanGroup,n.createDiffieHellmanGroup=c.createDiffieHellmanGroup,n.getDiffieHellman=c.getDiffieHellman,n.createDiffieHellman=c.createDiffieHellman,n.DiffieHellman=c.DiffieHellman;var l=e(`browserify-sign`);n.createSign=l.createSign,n.Sign=l.Sign,n.createVerify=l.createVerify,n.Verify=l.Verify,n.createECDH=e(`create-ecdh`);var u=e(`public-encrypt`);n.publicEncrypt=u.publicEncrypt,n.privateEncrypt=u.privateEncrypt,n.publicDecrypt=u.publicDecrypt,n.privateDecrypt=u.privateDecrypt;var d=e(`randomfill`);n.randomFill=d.randomFill,n.randomFillSync=d.randomFillSync,n.createCredentials=function(){throw Error([`sorry, createCredentials is not implemented yet`,`we accept pull requests`,`https://github.com/crypto-browserify/crypto-browserify`].join(`
`))},n.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,t,n){(function(e,r){typeof n==`object`&&t!==void 0?t.exports=r():(e=typeof globalThis<`u`?globalThis:e||self).dayjs=r()})(void 0,(function(){var e=6e4,t=36e5,n=`millisecond`,r=`second`,i=`minute`,a=`hour`,o=`day`,s=`week`,c=`month`,l=`quarter`,u=`year`,d=`date`,f=`Invalid Date`,p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|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,h={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},_={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+g(r,2,`0`)+`:`+g(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,c),a=n-i<0,o=t.clone().add(r+(a?-1:1),c);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:u,w:s,d:o,D:d,h:a,m:i,s:r,ms:n,Q:l}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},v=`en`,y={};y[v]=h;var b=`$isDayjsObject`,x=function(e){return e instanceof T||!(!e||!e[b])},S=function e(t,n,r){var i;if(!t)return v;if(typeof t==`string`){var a=t.toLowerCase();y[a]&&(i=a),n&&(y[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;y[s]=t,i=s}return!r&&i&&(v=i),i||!r&&v},C=function(e,t){if(x(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new T(n)},w=_;w.l=S,w.i=x,w.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function h(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[b]=!0}var g=h.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(w.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(p);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return w},g.isValid=function(){return this.$d.toString()!==f},g.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return C(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<C(e)},g.$g=function(e,t,n){return w.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,l=!!w.u(t)||t,f=w.p(e),p=function(e,t){var r=w.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return l?r:r.endOf(o)},m=function(e,t){return w.w(n.toDate()[e].apply(n.toDate(`s`),(l?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(f){case u:return l?p(1,0):p(31,11);case c:return l?p(1,g):p(0,g+1);case s:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(l?_-b:_+(6-b),g);case o:case d:return m(v+`Hours`,0);case a:return m(v+`Minutes`,1);case i:return m(v+`Seconds`,2);case r:return m(v+`Milliseconds`,3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var s,l=w.p(e),f=`set`+(this.$u?`UTC`:``),p=(s={},s[o]=f+`Date`,s[d]=f+`Date`,s[c]=f+`Month`,s[u]=f+`FullYear`,s[a]=f+`Hours`,s[i]=f+`Minutes`,s[r]=f+`Seconds`,s[n]=f+`Milliseconds`,s)[l],m=l===o?this.$D+(t-this.$W):t;if(l===c||l===u){var h=this.clone().set(d,1);h.$d[p](m),h.init(),this.$d=h.set(d,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[w.p(e)]()},g.add=function(n,l){var d,f=this;n=Number(n);var p=w.p(l),m=function(e){var t=C(f);return w.w(t.date(t.date()+Math.round(e*n)),f)};if(p===c)return this.set(c,this.$M+n);if(p===u)return this.set(u,this.$y+n);if(p===o)return m(1);if(p===s)return m(7);var h=(d={},d[i]=e,d[a]=t,d[r]=1e3,d)[p]||1,g=this.$d.getTime()+n*h;return w.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=w.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},p=function(e){return w.s(a%12||12,e,`0`)},h=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(m,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return w.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return w.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return w.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return w.s(a,2,`0`);case`h`:return p(1);case`hh`:return p(2);case`a`:return h(a,o,!0);case`A`:return h(a,o,!1);case`m`:return String(o);case`mm`:return w.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return w.s(t.$s,2,`0`);case`SSS`:return w.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,d,f){var p,m=this,h=w.p(d),g=C(n),_=(g.utcOffset()-this.utcOffset())*e,v=this-g,y=function(){return w.m(m,g)};switch(h){case u:p=y()/12;break;case c:p=y();break;case l:p=y()/3;break;case s:p=(v-_)/6048e5;break;case o:p=(v-_)/864e5;break;case a:p=v/t;break;case i:p=v/e;break;case r:p=v/1e3;break;default:p=v}return f?p:w.a(p)},g.daysInMonth=function(){return this.endOf(c).$D},g.$locale=function(){return y[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return w.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},h}(),E=T.prototype;return C.prototype=E,[[`$ms`,n],[`$s`,r],[`$m`,i],[`$H`,a],[`$W`,o],[`$M`,c],[`$y`,u],[`$D`,d]].forEach((function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||=(e(t,T,C),!0),C},C.locale=S,C.isDayjs=x,C.unix=function(e){return C(1e3*e)},C.en=y[v],C.Ls=y,C.p={},C}))},{}],392:[function(e,t,n){(function(e,r){typeof n==`object`&&t!==void 0?t.exports=r():(e=typeof globalThis<`u`?globalThis:e||self).dayjs_plugin_customParseFormat=r()})(void 0,(function(){var e={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`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,a={},o=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],l=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=a.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},d={A:[i,function(e){this.afternoon=u(e,!1)}],a:[i,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*e}],SS:[n,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],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:[n,s(`day`)],Do:[i,function(e){var t=a.ordinal;if(this.day=e.match(/\d+/)[0],t)for(var n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,``)===e&&(this.day=n)}],M:[r,s(`month`)],MM:[n,s(`month`)],MMM:[i,function(e){var t=l(`months`),n=(l(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[i,function(e){var t=l(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,s(`year`)],YY:[n,function(e){this.year=o(e)}],YYYY:[/\d{4}/,s(`year`)],Z:c,ZZ:c};function f(n){for(var r=n,i=a&&a.formats,o=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=o.length,c=0;c<s;c+=1){var l=o[c],u=d[l],f=u&&u[0],p=u&&u[1];o[c]=p?{regex:f,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=o[n];if(typeof i==`string`)r+=i.length;else{var a=i.regex,c=i.parser,l=e.slice(r),u=a.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(o=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,o=e.args;this.$u=r;var s=o[1];if(typeof s==`string`){var c=!0===o[2],l=!0===o[3],u=c||l,d=o[2];l&&(d=o[2]),a=this.$locale(),!c&&d&&(a=n.Ls[d]),this.$d=function(e,t,n){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var r=f(t)(e),i=r.year,a=r.month,o=r.day,s=r.hours,c=r.minutes,l=r.seconds,u=r.milliseconds,d=r.zone,p=new Date,m=o||(i||a?1:p.getDate()),h=i||p.getFullYear(),g=0;i&&!a||(g=a>0?a-1:p.getMonth());var _=s||0,v=c||0,y=l||0,b=u||0;return d?new Date(Date.UTC(h,g,m,_,v,y,b+60*d.offset*1e3)):n?new Date(Date.UTC(h,g,m,_,v,y,b)):new Date(h,g,m,_,v,y,b)}catch{return new Date(``)}}(t,s,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),a={}}else if(s instanceof Array)for(var p=s.length,m=1;m<=p;m+=1){o[1]=s[m-1];var h=n.apply(this,o);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===p&&(this.$d=new Date(``))}else i.call(this,e)}}}))},{}],393:[function(e,t,n){(function(e,r){typeof n==`object`&&t!==void 0?t.exports=r():(e=typeof globalThis<`u`?globalThis:e||self).dayjs_plugin_utc=r()})(void 0,(function(){var e=`minute`,t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,a){var o=i.prototype;a.utc=function(e){return new i({date:e,utc:!0,args:arguments})},o.utc=function(t){var n=a(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},o.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var c=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var l=o.utcOffset;o.utcOffset=function(r,i){var a=this.$utils().u;if(a(r))return this.$u?0:a(this.$offset)?l.call(this):this.$offset;if(typeof r==`string`&&(r=function(e){e===void 0&&(e=``);var r=e.match(t);if(!r)return null;var i=(``+r[0]).match(n)||[`-`,0,0],a=i[0],o=60*i[1]+ +i[2];return o===0?0:a===`+`?o:-o}(r))===null)return this;var o=Math.abs(r)<=16?60*r:r,s=this;if(i)return s.$offset=o,s.$u=r===0,s;if(r!==0){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(o+c,e)).$offset=o,s.$x.$localOffset=c}else s=this.utc();return s};var u=o.format;o.format=function(e){var t=e||(this.$u?`YYYY-MM-DDTHH:mm:ss[Z]`:``);return u.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var d=o.toDate;o.toDate=function(e){return e===`s`&&this.$offset?a(this.format(`YYYY-MM-DD HH:mm:ss:SSS`)).toDate():d.call(this)};var f=o.diff;o.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),i=a(e).local();return f.call(r,i,t,n)}}}))},{}],394:[function(e,t,n){n.utils=e(`./des/utils`),n.Cipher=e(`./des/cipher`),n.DES=e(`./des/des`),n.CBC=e(`./des/cbc`),n.EDE=e(`./des/ede`)},{"./des/cbc":395,"./des/cipher":396,"./des/des":397,"./des/ede":398,"./des/utils":399}],395:[function(e,t,n){var r=e(`minimalistic-assert`),i=e(`inherits`),a={};function o(e){r.equal(e.length,8,`Invalid IV length`),this.iv=Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}n.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var n=Object.keys(a),r=0;r<n.length;r++){var o=n[r];t.prototype[o]=a[o]}return t.create=function(e){return new t(e)},t},a._cbcInit=function(){this._cbcState=new o(this.options.iv)},a._update=function(e,t,n,r){var i=this._cbcState,a=this.constructor.super_.prototype,o=i.iv;if(this.type===`encrypt`){for(var s=0;s<this.blockSize;s++)o[s]^=e[t+s];for(a._update.call(this,o,0,n,r),s=0;s<this.blockSize;s++)o[s]=n[r+s]}else{for(a._update.call(this,e,t,n,r),s=0;s<this.blockSize;s++)n[r+s]^=o[s];for(s=0;s<this.blockSize;s++)o[s]=e[t+s]}}},{inherits:440,"minimalistic-assert":453}],396:[function(e,t,n){var r=e(`minimalistic-assert`);function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=Array(this.blockSize),this.bufferOff=0,this.padding=!1!==e.padding}t.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return e.length===0?[]:this.type===`decrypt`?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),r=0;r<n;r++)this.buffer[this.bufferOff+r]=e[t+r];return this.bufferOff+=n,n},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,n=0,r=(this.bufferOff+e.length)/this.blockSize|0,i=Array(r*this.blockSize);this.bufferOff!==0&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(i,n)));for(var a=e.length-(e.length-t)%this.blockSize;t<a;t+=this.blockSize)this._update(e,t,i,n),n+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},i.prototype._updateDecrypt=function(e){for(var t=0,n=0,r=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=Array(r*this.blockSize);r>0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n=this.type===`encrypt`?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},i.prototype._pad=function(e,t){if(t===0)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){r.equal(this.bufferOff,this.blockSize,`Not enough data to decrypt`);var e=Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},{"minimalistic-assert":453}],397:[function(e,t,n){var r=e(`minimalistic-assert`),i=e(`inherits`),a=e(`./utils`),o=e(`./cipher`);function s(){this.tmp=[,,],this.keys=null}function c(e){o.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}i(c,o),t.exports=c,c.create=function(e){return new c(e)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];c.prototype.deriveKeys=function(e,t){e.keys=Array(32),r.equal(t.length,this.blockSize,`Invalid key length`);var n=a.readUInt32BE(t,0),i=a.readUInt32BE(t,4);a.pc1(n,i,e.tmp,0),n=e.tmp[0],i=e.tmp[1];for(var o=0;o<e.keys.length;o+=2){var s=l[o>>>1];n=a.r28shl(n,s),i=a.r28shl(i,s),a.pc2(n,i,e.keys,o)}},c.prototype._update=function(e,t,n,r){var i=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],this.type===`encrypt`?this._encrypt(i,o,s,i.tmp,0):this._decrypt(i,o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],a.writeUInt32BE(n,o,r),a.writeUInt32BE(n,s,r+4)},c.prototype._pad=function(e,t){if(!1===this.padding)return!1;for(var n=e.length-t,r=t;r<e.length;r++)e[r]=n;return!0},c.prototype._unpad=function(e){if(!1===this.padding)return e;for(var t=e[e.length-1],n=e.length-t;n<e.length;n++)r.equal(e[n],t);return e.slice(0,e.length-t)},c.prototype._encrypt=function(e,t,n,r,i){for(var o=t,s=n,c=0;c<e.keys.length;c+=2){var l=e.keys[c],u=e.keys[c+1];a.expand(s,e.tmp,0),l^=e.tmp[0],u^=e.tmp[1];var d=a.substitute(l,u),f=s;s=(o^a.permute(d))>>>0,o=f}a.rip(s,o,r,i)},c.prototype._decrypt=function(e,t,n,r,i){for(var o=n,s=t,c=e.keys.length-2;c>=0;c-=2){var l=e.keys[c],u=e.keys[c+1];a.expand(o,e.tmp,0),l^=e.tmp[0],u^=e.tmp[1];var d=a.substitute(l,u),f=o;o=(s^a.permute(d))>>>0,s=f}a.rip(o,s,r,i)}},{"./cipher":396,"./utils":399,inherits:440,"minimalistic-assert":453}],398:[function(e,t,n){var r=e(`minimalistic-assert`),i=e(`inherits`),a=e(`./cipher`),o=e(`./des`);function s(e,t){r.equal(t.length,24,`Invalid key length`);var n=t.slice(0,8),i=t.slice(8,16),a=t.slice(16,24);this.ciphers=e===`encrypt`?[o.create({type:`encrypt`,key:n}),o.create({type:`decrypt`,key:i}),o.create({type:`encrypt`,key:a})]:[o.create({type:`decrypt`,key:a}),o.create({type:`encrypt`,key:i}),o.create({type:`decrypt`,key:n})]}function c(e){a.call(this,e),this._edeState=new s(this.type,this.options.key)}i(c,a),t.exports=c,c.create=function(e){return new c(e)},c.prototype._update=function(e,t,n,r){var i=this._edeState;i.ciphers[0]._update(e,t,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},c.prototype._pad=o.prototype._pad,c.prototype._unpad=o.prototype._unpad},{"./cipher":396,"./des":397,inherits:440,"minimalistic-assert":453}],399:[function(e,t,n){n.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},n.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},n.ip=function(e,t,n,r){for(var i=0,a=0,o=6;o>=0;o-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+o&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+o&1}for(o=6;o>=0;o-=2){for(s=1;s<=25;s+=8)a<<=1,a|=t>>>s+o&1;for(s=1;s<=25;s+=8)a<<=1,a|=e>>>s+o&1}n[r+0]=i>>>0,n[r+1]=a>>>0},n.rip=function(e,t,n,r){for(var i=0,a=0,o=0;o<4;o++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+o&1,i<<=1,i|=e>>>s+o&1;for(o=4;o<8;o++)for(s=24;s>=0;s-=8)a<<=1,a|=t>>>s+o&1,a<<=1,a|=e>>>s+o&1;n[r+0]=i>>>0,n[r+1]=a>>>0},n.pc1=function(e,t,n,r){for(var i=0,a=0,o=7;o>=5;o--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+o&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(o=1;o<=3;o++){for(s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1}for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1;n[r+0]=i>>>0,n[r+1]=a>>>0},n.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var r=[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];n.pc2=function(e,t,n,i){for(var a=0,o=0,s=r.length>>>1,c=0;c<s;c++)a<<=1,a|=e>>>r[c]&1;for(c=s;c<r.length;c++)o<<=1,o|=t>>>r[c]&1;n[i+0]=a>>>0,n[i+1]=o>>>0},n.expand=function(e,t,n){var r=0,i=0;r=(1&e)<<5|e>>>27;for(var a=23;a>=15;a-=4)r<<=6,r|=e>>>a&63;for(a=11;a>=3;a-=4)i|=e>>>a&63,i<<=6;i|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=i>>>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];n.substitute=function(e,t){for(var n=0,r=0;r<4;r++)n<<=4,n|=i[64*r+(e>>>18-6*r&63)];for(r=0;r<4;r++)n<<=4,n|=i[256+64*r+(t>>>18-6*r&63)];return n>>>0};var a=[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];n.permute=function(e){for(var t=0,n=0;n<a.length;n++)t<<=1,t|=e>>>a[n]&1;return t>>>0},n.padSplit=function(e,t,n){for(var r=e.toString(2);r.length<t;)r=`0`+r;for(var i=[],a=0;a<t;a+=n)i.push(r.slice(a,a+n));return i.join(` `)}},{}],400:[function(e,t,n){(function(t){(function(){var r=e(`./lib/generatePrime`),i=e(`./lib/primes.json`),a=e(`./lib/dh`),o={binary:!0,hex:!0,base64:!0};n.DiffieHellmanGroup=n.createDiffieHellmanGroup=n.getDiffieHellman=function(e){return new a(new t(i[e].prime,`hex`),new t(i[e].gen,`hex`))},n.createDiffieHellman=n.DiffieHellman=function e(n,i,s,c){return t.isBuffer(i)||o[i]===void 0?e(n,`binary`,i,s):(i||=`binary`,c||=`binary`,s||=new t([2]),t.isBuffer(s)||(s=new t(s,c)),typeof n==`number`?new a(r(n,s),s,!0):(t.isBuffer(n)||(n=new t(n,i)),new a(n,s,!0)))}}).call(this)}).call(this,e(`buffer`).Buffer)},{"./lib/dh":401,"./lib/generatePrime":402,"./lib/primes.json":403,buffer:220}],401:[function(e,t,n){(function(n){(function(){var r=e(`bn.js`),i=new(e(`miller-rabin`)),a=new r(24),o=new r(11),s=new r(10),c=new r(3),l=new r(7),u=e(`./generatePrime`),d=e(`randombytes`);function f(e,t){return t||=`utf8`,n.isBuffer(e)||(e=new n(e,t)),this._pub=new r(e),this}function p(e,t){return t||=`utf8`,n.isBuffer(e)||(e=new n(e,t)),this._priv=new r(e),this}t.exports=h;var m={};function h(e,t,n){this.setGenerator(t),this.__prime=new r(e),this._prime=r.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=f,this.setPrivateKey=p):this._primeCode=8}function g(e,t){var r=new n(e.toArray());return t?r.toString(t):r}Object.defineProperty(h.prototype,`verifyError`,{enumerable:!0,get:function(){return typeof this._primeCode!=`number`&&(this._primeCode=function(e,t){var n=t.toString(`hex`),r=[n,e.toString(16)].join(`_`);if(r in m)return m[r];var d,f=0;if(e.isEven()||!u.simpleSieve||!u.fermatTest(e)||!i.test(e))return f+=1,f+=n===`02`||n===`05`?8:4,m[r]=f,f;switch(i.test(e.shrn(1))||(f+=2),n){case`02`:e.mod(a).cmp(o)&&(f+=8);break;case`05`:(d=e.mod(s)).cmp(c)&&d.cmp(l)&&(f+=8);break;default:f+=4}return m[r]=f,f}(this.__prime,this.__gen)),this._primeCode}}),h.prototype.generateKeys=function(){return this._priv||=new r(d(this._primeLen)),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},h.prototype.computeSecret=function(e){var t=new n((e=(e=new r(e)).toRed(this._prime)).redPow(this._priv).fromRed().toArray()),i=this.getPrime();if(t.length<i.length){var a=new n(i.length-t.length);a.fill(0),t=n.concat([a,t])}return t},h.prototype.getPublicKey=function(e){return g(this._pub,e)},h.prototype.getPrivateKey=function(e){return g(this._priv,e)},h.prototype.getPrime=function(e){return g(this.__prime,e)},h.prototype.getGenerator=function(e){return g(this._gen,e)},h.prototype.setGenerator=function(e,t){return t||=`utf8`,n.isBuffer(e)||(e=new n(e,t)),this.__gen=e,this._gen=new r(e),this}}).call(this)}).call(this,e(`buffer`).Buffer)},{"./generatePrime":402,"bn.js":404,buffer:220,"miller-rabin":451,randombytes:475}],402:[function(e,t,n){var r=e(`randombytes`);t.exports=v,v.simpleSieve=g,v.fermatTest=_;var i=e(`bn.js`),a=new i(24),o=new(e(`miller-rabin`)),s=new i(1),c=new i(2),l=new i(5),u=(new i(16),new i(8),new i(10)),d=new i(3),f=(new i(7),new i(11)),p=new i(4),m=(new i(12),null);function h(){if(m!==null)return m;var e=[];e[0]=2;for(var t=1,n=3;n<1048576;n+=2){for(var r=Math.ceil(Math.sqrt(n)),i=0;i<t&&e[i]<=r&&n%e[i]!=0;i++);t!==i&&e[i]<=r||(e[t++]=n)}return m=e,e}function g(e){for(var t=h(),n=0;n<t.length;n++)if(e.modn(t[n])===0)return e.cmpn(t[n])===0;return!0}function _(e){var t=i.mont(e);return c.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)===0}function v(e,t){if(e<16)return new i(t===2||t===5?[140,123]:[140,39]);var n,m;for(t=new i(t);;){for(n=new i(r(Math.ceil(e/8)));n.bitLength()>e;)n.ishrn(1);if(n.isEven()&&n.iadd(s),n.testn(1)||n.iadd(c),t.cmp(c)){if(!t.cmp(l))for(;n.mod(u).cmp(d);)n.iadd(p)}else for(;n.mod(a).cmp(f);)n.iadd(p);if(g(m=n.shrn(1))&&g(n)&&_(m)&&_(n)&&o.test(m)&&o.test(n))return n}}},{"bn.js":404,"miller-rabin":451,randombytes:475}],403:[function(e,t,n){t.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,t,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],405:[function(e,t,n){var r=n;r.version=e(`../package.json`).version,r.utils=e(`./elliptic/utils`),r.rand=e(`brorand`),r.curve=e(`./elliptic/curve`),r.curves=e(`./elliptic/curves`),r.ec=e(`./elliptic/ec`),r.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,t,n){var r=e(`bn.js`),i=e(`../utils`),a=i.getNAF,o=i.getJSF,s=i.assert;function c(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function l(e,t){this.curve=e,this.type=t,this.precomputed=null}t.exports=c,c.prototype.point=function(){throw Error(`Not implemented`)},c.prototype.validate=function(){throw Error(`Not implemented`)},c.prototype._fixedNafMul=function(e,t){s(e.precomputed);var n=e._getDoubles(),r=a(t,1,this._bitLength),i=(1<<n.step+1)-(n.step%2==0?2:1);i/=3;var o,c,l=[];for(o=0;o<r.length;o+=n.step){c=0;for(var u=o+n.step-1;u>=o;u--)c=(c<<1)+r[u];l.push(c)}for(var d=this.jpoint(null,null,null),f=this.jpoint(null,null,null),p=i;p>0;p--){for(o=0;o<l.length;o++)(c=l[o])===p?f=f.mixedAdd(n.points[o]):c===-p&&(f=f.mixedAdd(n.points[o].neg()));d=d.add(f)}return d.toP()},c.prototype._wnafMul=function(e,t){var n=4,r=e._getNAFPoints(n);n=r.wnd;for(var i=r.points,o=a(t,n,this._bitLength),c=this.jpoint(null,null,null),l=o.length-1;l>=0;l--){for(var u=0;l>=0&&o[l]===0;l--)u++;if(l>=0&&u++,c=c.dblp(u),l<0)break;var d=o[l];s(d!==0),c=e.type===`affine`?d>0?c.mixedAdd(i[d-1>>1]):c.mixedAdd(i[-d-1>>1].neg()):d>0?c.add(i[d-1>>1]):c.add(i[-d-1>>1].neg())}return e.type===`affine`?c.toP():c},c.prototype._wnafMulAdd=function(e,t,n,r,i){var s,c,l,u=this._wnafT1,d=this._wnafT2,f=this._wnafT3,p=0;for(s=0;s<r;s++){var m=(l=t[s])._getNAFPoints(e);u[s]=m.wnd,d[s]=m.points}for(s=r-1;s>=1;s-=2){var h=s-1,g=s;if(u[h]===1&&u[g]===1){var _=[t[h],null,null,t[g]];t[h].y.cmp(t[g].y)===0?(_[1]=t[h].add(t[g]),_[2]=t[h].toJ().mixedAdd(t[g].neg())):t[h].y.cmp(t[g].y.redNeg())===0?(_[1]=t[h].toJ().mixedAdd(t[g]),_[2]=t[h].add(t[g].neg())):(_[1]=t[h].toJ().mixedAdd(t[g]),_[2]=t[h].toJ().mixedAdd(t[g].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],y=o(n[h],n[g]);for(p=Math.max(y[0].length,p),f[h]=Array(p),f[g]=Array(p),c=0;c<p;c++){var b=0|y[0][c],x=0|y[1][c];f[h][c]=v[3*(b+1)+(x+1)],f[g][c]=0,d[h]=_}}else f[h]=a(n[h],u[h],this._bitLength),f[g]=a(n[g],u[g],this._bitLength),p=Math.max(f[h].length,p),p=Math.max(f[g].length,p)}var S=this.jpoint(null,null,null),C=this._wnafT4;for(s=p;s>=0;s--){for(var w=0;s>=0;){var T=!0;for(c=0;c<r;c++)C[c]=0|f[c][s],C[c]!==0&&(T=!1);if(!T)break;w++,s--}if(s>=0&&w++,S=S.dblp(w),s<0)break;for(c=0;c<r;c++){var E=C[c];E!==0&&(E>0?l=d[c][E-1>>1]:E<0&&(l=d[c][-E-1>>1].neg()),S=l.type===`affine`?S.mixedAdd(l):S.add(l))}}for(s=0;s<r;s++)d[s]=null;return i?S:S.toP()},c.BasePoint=l,l.prototype.eq=function(){throw Error(`Not implemented`)},l.prototype.validate=function(){return this.curve.validate(this)},c.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var n=this.p.byteLength();if((e[0]===4||e[0]===6||e[0]===7)&&e.length-1==2*n)return e[0]===6?s(e[e.length-1]%2==0):e[0]===7&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((e[0]===2||e[0]===3)&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),e[0]===3);throw Error(`Unknown point format`)},l.prototype.encodeCompressed=function(e){return this.encode(e,!0)},l.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray(`be`,t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray(`be`,t))},l.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},l.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},l.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},l.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<t;i+=e){for(var a=0;a<e;a++)r=r.dbl();n.push(r)}return{step:e,points:n}},l.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,r=n===1?null:this.dbl(),i=1;i<n;i++)t[i]=t[i-1].add(r);return{wnd:e,points:t}},l.prototype._getBeta=function(){return null},l.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}},{"../utils":419,"bn.js":420}],407:[function(e,t,n){var r=e(`../utils`),i=e(`bn.js`),a=e(`inherits`),o=e(`./base`),s=r.assert;function c(e){this.twisted=(0|e.a)!=1,this.mOneA=this.twisted&&(0|e.a)==-1,this.extended=this.mOneA,o.call(this,`edwards`,e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|e.c)==1}function l(e,t,n,r,a){o.BasePoint.call(this,e,`projective`),t===null&&n===null&&r===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(t,16),this.y=new i(n,16),this.z=r?new i(r,16):this.curve.one,this.t=a&&new i(a,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()))))}a(c,o),t.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),a=this.one.redSub(this.c2.redMul(this.d).redMul(n)),o=r.redMul(a.redInvm()),s=o.redSqrt();if(s.redSqr().redSub(o).cmp(this.zero)!==0)throw Error(`invalid point`);var c=s.fromRed().isOdd();return(t&&!c||!t&&c)&&(s=s.redNeg()),this.point(e,s)},c.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),a=n.redMul(this.d).redMul(this.c2).redSub(this.a),o=r.redMul(a.redInvm());if(o.cmp(this.zero)===0){if(t)throw Error(`invalid point`);return this.point(this.zero,e)}var s=o.redSqrt();if(s.redSqr().redSub(o).cmp(this.zero)!==0)throw Error(`invalid point`);return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return r.cmp(i)===0},a(l,o.BasePoint),c.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},c.prototype.point=function(e,t,n,r){return new l(this,e,t,n,r)},l.fromJSON=function(e,t){return new l(e,t[0],t[1],t[2])},l.prototype.inspect=function(){return this.isInfinity()?`<EC Point Infinity>`:`<EC Point x: `+this.x.fromRed().toString(16,2)+` y: `+this.y.fromRed().toString(16,2)+` z: `+this.z.fromRed().toString(16,2)+`>`},l.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},l.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=r.redAdd(t),o=a.redSub(n),s=r.redSub(t),c=i.redMul(o),l=a.redMul(s),u=i.redMul(s),d=o.redMul(a);return this.curve.point(c,l,d,u)},l.prototype._projDbl=function(){var e,t,n,r,i,a,o=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var l=(r=this.curve._mulA(s)).redAdd(c);this.zOne?(e=o.redSub(s).redSub(c).redMul(l.redSub(this.curve.two)),t=l.redMul(r.redSub(c)),n=l.redSqr().redSub(l).redSub(l)):(i=this.z.redSqr(),a=l.redSub(i).redISub(i),e=o.redSub(s).redISub(c).redMul(a),t=l.redMul(r.redSub(c)),n=l.redMul(a))}else r=s.redAdd(c),i=this.curve._mulC(this.z).redSqr(),a=r.redSub(i).redSub(i),e=this.curve._mulC(o.redISub(r)).redMul(a),t=this.curve._mulC(r).redMul(s.redISub(c)),n=r.redMul(a);return this.curve.point(e,t,n)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),a=n.redSub(t),o=i.redSub(r),s=i.redAdd(r),c=n.redAdd(t),l=a.redMul(o),u=s.redMul(c),d=a.redMul(c),f=o.redMul(s);return this.curve.point(l,u,f,d)},l.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),i=r.redSqr(),a=this.x.redMul(e.x),o=this.y.redMul(e.y),s=this.curve.d.redMul(a).redMul(o),c=i.redSub(s),l=i.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(o),d=r.redMul(c).redMul(u);return this.curve.twisted?(t=r.redMul(l).redMul(o.redSub(this.curve._mulA(a))),n=c.redMul(l)):(t=r.redMul(l).redMul(o.redSub(a)),n=this.curve._mulC(c).redMul(l)),this.curve.point(d,t,n)},l.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},l.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},l.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&=this.t.redMul(e),this.z=this.curve.one,this.zOne=!0,this},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0},l.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(t)===0)return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),this.x.cmp(t)===0)return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],408:[function(e,t,n){var r=n;r.base=e(`./base`),r.short=e(`./short`),r.mont=e(`./mont`),r.edwards=e(`./edwards`)},{"./base":406,"./edwards":407,"./mont":409,"./short":410}],409:[function(e,t,n){var r=e(`bn.js`),i=e(`inherits`),a=e(`./base`),o=e(`../utils`);function s(e){a.call(this,`mont`,e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,n){a.BasePoint.call(this,e,`projective`),t===null&&n===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,a),t.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return r.redSqrt().redSqr().cmp(r)===0},i(c,a.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(o.toArray(e,t),1)},s.prototype.point=function(e,t){return new c(this,e,t)},s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray(`be`,this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?`<EC Point Infinity>`:`<EC Point x: `+this.x.fromRed().toString(16,2)+` z: `+this.z.fromRed().toString(16,2)+`>`},c.prototype.isInfinity=function(){return this.z.cmpn(0)===0},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),i=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},c.prototype.add=function(){throw Error(`Not supported on Montgomery curve`)},c.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(n),o=i.redMul(r),s=t.z.redMul(a.redAdd(o).redSqr()),c=t.x.redMul(a.redISub(o).redSqr());return this.curve.point(s,c)},c.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),i=[];t.cmpn(0)!==0;t.iushrn(1))i.push(t.andln(1));for(var a=i.length-1;a>=0;a--)i[a]===0?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},c.prototype.mulAdd=function(){throw Error(`Not supported on Montgomery curve`)},c.prototype.jumlAdd=function(){throw Error(`Not supported on Montgomery curve`)},c.prototype.eq=function(e){return this.getX().cmp(e.getX())===0},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],410:[function(e,t,n){var r=e(`../utils`),i=e(`bn.js`),a=e(`inherits`),o=e(`./base`),s=r.assert;function c(e){o.call(this,`short`,e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.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(e),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function l(e,t,n,r){o.BasePoint.call(this,e,`affine`),t===null&&n===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(e,t,n,r){o.BasePoint.call(this,e,`jacobian`),t===null&&n===null&&r===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(n,16),this.z=new i(r,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}a(c,o),t.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var t,n;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new i(e.lambda,16);else{var a=this._getEndoRoots(this.n);this.g.mul(a[0]).x.cmp(this.g.x.redMul(t))===0?n=a[0]:(n=a[1],s(this.g.mul(n).x.cmp(this.g.x.redMul(t))===0))}return{beta:t,lambda:n,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(n)}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),n=new i(2).toRed(t).redInvm(),r=n.redNeg(),a=new i(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(a).fromRed(),r.redSub(a).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,n,r,a,o,s,c,l,u,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=e,p=this.n.clone(),m=new i(1),h=new i(0),g=new i(0),_=new i(1),v=0;f.cmpn(0)!==0;){var y=p.div(f);l=p.sub(y.mul(f)),u=g.sub(y.mul(m));var b=_.sub(y.mul(h));if(!r&&l.cmp(d)<0)t=c.neg(),n=m,r=l.neg(),a=u;else if(r&&++v==2)break;c=l,p=f,f=l,g=m,m=u,_=h,h=b}o=l.neg(),s=u;var x=r.sqr().add(a.sqr());return o.sqr().add(s.sqr()).cmp(x)>=0&&(o=t,s=n),r.negative&&(r=r.neg(),a=a.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:r,b:a},{a:o,b:s}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),a=n.b.neg().mul(e).divRound(this.n),o=i.mul(n.a),s=a.mul(r.a),c=i.mul(n.b),l=a.mul(r.b);return{k1:e.sub(o).sub(s),k2:c.add(l).neg()}},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(r.redSqr().redSub(n).cmp(this.zero)!==0)throw Error(`invalid point`);var a=r.fromRed().isOdd();return(t&&!a||!t&&a)&&(r=r.redNeg()),this.point(e,r)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return n.redSqr().redISub(i).cmpn(0)===0},c.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,a=0;a<e.length;a++){var o=this._endoSplit(t[a]),s=e[a],c=s._getBeta();o.k1.negative&&(o.k1.ineg(),s=s.neg(!0)),o.k2.negative&&(o.k2.ineg(),c=c.neg(!0)),r[2*a]=s,r[2*a+1]=c,i[2*a]=o.k1,i[2*a+1]=o.k2}for(var l=this._wnafMulAdd(1,r,i,2*a,n),u=0;u<2*a;u++)r[u]=null,i[u]=null;return l},a(l,o.BasePoint),c.prototype.point=function(e,t,n){return new l(this,e,t,n)},c.prototype.pointFromJSON=function(e,t){return l.fromJSON(this,e,t)},l.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var n=this.curve,r=function(e){return n.point(e.x.redMul(n.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t}},l.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},l.fromJSON=function(e,t,n){typeof t==`string`&&(t=JSON.parse(t));var r=e.point(t[0],t[1],n);if(!t[2])return r;function i(t){return e.point(t[0],t[1],n)}var a=t[2];return r.precomputed={beta:null,doubles:a.doubles&&{step:a.doubles.step,points:[r].concat(a.doubles.points.map(i))},naf:a.naf&&{wnd:a.naf.wnd,points:[r].concat(a.naf.points.map(i))}},r},l.prototype.inspect=function(){return this.isInfinity()?`<EC Point Infinity>`:`<EC Point x: `+this.x.fromRed().toString(16,2)+` y: `+this.y.fromRed().toString(16,2)+`>`},l.prototype.isInfinity=function(){return this.inf},l.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||this.x.cmp(e.x)===0)return this.curve.point(null,null);var t=this.y.redSub(e.y);t.cmpn(0)!==0&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},l.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),a=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,o)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},l.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},l.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)},l.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(u,o.BasePoint),c.prototype.jpoint=function(e,t,n){return new u(this,e,t,n)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),a=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),c=a.redSub(o);if(s.cmpn(0)===0)return c.cmpn(0)===0?this.dbl():this.curve.jpoint(null,null,null);var l=s.redSqr(),u=l.redMul(s),d=r.redMul(l),f=c.redSqr().redIAdd(u).redISub(d).redISub(d),p=c.redMul(d.redISub(f)).redISub(a.redMul(u)),m=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(f,p,m)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,a=e.y.redMul(t).redMul(this.z),o=n.redSub(r),s=i.redSub(a);if(o.cmpn(0)===0)return s.cmpn(0)===0?this.dbl():this.curve.jpoint(null,null,null);var c=o.redSqr(),l=c.redMul(o),u=n.redMul(c),d=s.redSqr().redIAdd(l).redISub(u).redISub(u),f=s.redMul(u.redISub(d)).redISub(i.redMul(l)),p=this.z.redMul(o);return this.curve.jpoint(d,f,p)},u.prototype.dblp=function(e){if(e===0||this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t<e;t++)n=n.dbl();return n}var r=this.curve.a,i=this.curve.tinv,a=this.x,o=this.y,s=this.z,c=s.redSqr().redSqr(),l=o.redAdd(o);for(t=0;t<e;t++){var u=a.redSqr(),d=l.redSqr(),f=d.redSqr(),p=u.redAdd(u).redIAdd(u).redIAdd(r.redMul(c)),m=a.redMul(d),h=p.redSqr().redISub(m.redAdd(m)),g=m.redISub(h),_=p.redMul(g);_=_.redIAdd(_).redISub(f);var v=l.redMul(s);t+1<e&&(c=c.redMul(f)),a=h,s=v,l=_}return this.curve.jpoint(a,l.redMul(i),s)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(r).redISub(a);o=o.redIAdd(o);var s=r.redAdd(r).redIAdd(r),c=s.redSqr().redISub(o).redISub(o),l=a.redIAdd(a);l=(l=l.redIAdd(l)).redIAdd(l),e=c,t=s.redMul(o.redISub(c)).redISub(l),n=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),d=this.y.redSqr(),f=d.redSqr(),p=this.x.redAdd(d).redSqr().redISub(u).redISub(f);p=p.redIAdd(p);var m=u.redAdd(u).redIAdd(u),h=m.redSqr(),g=f.redIAdd(f);g=(g=g.redIAdd(g)).redIAdd(g),e=h.redISub(p).redISub(p),t=m.redMul(p.redISub(e)).redISub(g),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,t,n)},u.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(r).redISub(a);o=o.redIAdd(o);var s=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),c=s.redSqr().redISub(o).redISub(o);e=c;var l=a.redIAdd(a);l=(l=l.redIAdd(l)).redIAdd(l),t=s.redMul(o.redISub(c)).redISub(l),n=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),d=this.y.redSqr(),f=this.x.redMul(d),p=this.x.redSub(u).redMul(this.x.redAdd(u));p=p.redAdd(p).redIAdd(p);var m=f.redIAdd(f),h=(m=m.redIAdd(m)).redAdd(m);e=p.redSqr().redISub(h),n=this.y.redAdd(this.z).redSqr().redISub(d).redISub(u);var g=d.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=p.redMul(m.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,n)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),a=t.redSqr(),o=n.redSqr(),s=a.redAdd(a).redIAdd(a).redIAdd(e.redMul(i)),c=t.redAdd(t),l=(c=c.redIAdd(c)).redMul(o),u=s.redSqr().redISub(l.redAdd(l)),d=l.redISub(u),f=o.redSqr();f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var p=s.redMul(d).redISub(f),m=n.redAdd(n).redMul(r);return this.curve.jpoint(u,p,m)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),r=t.redSqr(),i=e.redAdd(e).redIAdd(e),a=i.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(r),s=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(a)).redSqr(),c=r.redIAdd(r);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var l=i.redIAdd(o).redSqr().redISub(a).redISub(s).redISub(c),u=t.redMul(l);u=(u=u.redIAdd(u)).redIAdd(u);var d=this.x.redMul(s).redISub(u);d=(d=d.redIAdd(d)).redIAdd(d);var f=this.y.redMul(l.redMul(c.redISub(l)).redISub(o.redMul(s)));f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var p=this.z.redAdd(o).redSqr().redISub(n).redISub(s);return this.curve.jpoint(d,f,p)},u.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},u.prototype.eq=function(e){if(e.type===`affine`)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),n=e.z.redSqr();if(this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0)!==0)return!1;var r=t.redMul(this.z),i=n.redMul(e.z);return this.y.redMul(i).redISub(e.y.redMul(r)).cmpn(0)===0},u.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(this.x.cmp(n)===0)return!0;for(var r=e.clone(),i=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(i),this.x.cmp(n)===0)return!0}},u.prototype.inspect=function(){return this.isInfinity()?`<EC JPoint Infinity>`:`<EC JPoint x: `+this.x.toString(16,2)+` y: `+this.y.toString(16,2)+` z: `+this.z.toString(16,2)+`>`},u.prototype.isInfinity=function(){return this.z.cmpn(0)===0}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],411:[function(e,t,n){var r,i=n,a=e(`hash.js`),o=e(`./curve`),s=e(`./utils`).assert;function c(e){e.type===`short`?this.curve=new o.short(e):e.type===`edwards`?this.curve=new o.edwards(e):this.curve=new o.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),`Invalid curve`),s(this.g.mul(this.n).isInfinity(),`Invalid curve, G*N != O`)}function l(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var n=new c(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=c,l(`p192`,{type:`short`,prime:`p192`,p:`ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff`,a:`ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc`,b:`64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1`,n:`ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831`,hash:a.sha256,gRed:!1,g:[`188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012`,`07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811`]}),l(`p224`,{type:`short`,prime:`p224`,p:`ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001`,a:`ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe`,b:`b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4`,n:`ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d`,hash:a.sha256,gRed:!1,g:[`b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21`,`bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34`]}),l(`p256`,{type:`short`,prime:null,p:`ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff`,a:`ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc`,b:`5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b`,n:`ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551`,hash:a.sha256,gRed:!1,g:[`6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296`,`4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5`]}),l(`p384`,{type:`short`,prime:null,p:`ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff`,a:`ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc`,b:`b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef`,n:`ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973`,hash:a.sha384,gRed:!1,g:[`aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7`,`3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f`]}),l(`p521`,{type:`short`,prime:null,p:`000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff`,a:`000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc`,b:`00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00`,n:`000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409`,hash:a.sha512,gRed:!1,g:[`000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66`,`00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650`]}),l(`curve25519`,{type:`mont`,prime:`p25519`,p:`7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed`,a:`76d06`,b:`1`,n:`1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed`,hash:a.sha256,gRed:!1,g:[`9`]}),l(`ed25519`,{type:`edwards`,prime:`p25519`,p:`7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed`,a:`-1`,c:`1`,d:`52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3`,n:`1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed`,hash:a.sha256,gRed:!1,g:[`216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a`,`6666666666666666666666666666666666666666666666666666666666666658`]});try{r=e(`./precomputed/secp256k1`)}catch{r=void 0}l(`secp256k1`,{type:`short`,prime:`k256`,p:`ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f`,a:`0`,b:`7`,n:`ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141`,h:`1`,hash:a.sha256,beta:`7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee`,lambda:`5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72`,basis:[{a:`3086d221a7d46bcde86c90e49284eb15`,b:`-e4437ed6010e88286f547fa90abfe4c3`},{a:`114ca50f7a8e2f3f657c1108d9d44cfd8`,b:`3086d221a7d46bcde86c90e49284eb15`}],gRed:!1,g:[`79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798`,`483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8`,r]})},{"./curve":408,"./precomputed/secp256k1":418,"./utils":419,"hash.js":426}],412:[function(e,t,n){var r=e(`bn.js`),i=e(`hmac-drbg`),a=e(`../utils`),o=e(`../curves`),s=e(`brorand`),c=a.assert,l=e(`./key`),u=e(`./signature`);function d(e){if(!(this instanceof d))return new d(e);typeof e==`string`&&(c(Object.prototype.hasOwnProperty.call(o,e),`Unknown curve `+e),e=o[e]),e instanceof o.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}t.exports=d,d.prototype.keyPair=function(e){return new l(this,e)},d.prototype.keyFromPrivate=function(e,t){return l.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return l.fromPublic(this,e,t)},d.prototype.genKeyPair=function(e){e||={};for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||`utf8`,entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||`utf8`,nonce:this.n.toArray()}),n=this.n.byteLength(),a=this.n.sub(new r(2));;){var o=new r(t.generate(n));if(!(o.cmp(a)>0))return o.iaddn(1),this.keyFromPrivate(o)}},d.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},d.prototype.sign=function(e,t,n,a){typeof n==`object`&&(a=n,n=null),a||={},t=this.keyFromPrivate(t,n),e=this._truncateToN(new r(e,16));for(var o=this.n.byteLength(),s=t.getPrivate().toArray(`be`,o),c=e.toArray(`be`,o),l=new i({hash:this.hash,entropy:s,nonce:c,pers:a.pers,persEnc:a.persEnc||`utf8`}),d=this.n.sub(new r(1)),f=0;;f++){var p=a.k?a.k(f):new r(l.generate(this.n.byteLength()));if(!((p=this._truncateToN(p,!0)).cmpn(1)<=0||p.cmp(d)>=0)){var m=this.g.mul(p);if(!m.isInfinity()){var h=m.getX(),g=h.umod(this.n);if(g.cmpn(0)!==0){var _=p.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if((_=_.umod(this.n)).cmpn(0)!==0){var v=(m.getY().isOdd()?1:0)|(h.cmp(g)===0?0:2);return a.canonical&&_.cmp(this.nh)>0&&(_=this.n.sub(_),v^=1),new u({r:g,s:_,recoveryParam:v})}}}}}},d.prototype.verify=function(e,t,n,i){e=this._truncateToN(new r(e,16)),n=this.keyFromPublic(n,i);var a=(t=new u(t,`hex`)).r,o=t.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0||o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var s,c=o.invm(this.n),l=c.mul(e).umod(this.n),d=c.mul(a).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(l,n.getPublic(),d)).isInfinity()&&s.eqXToP(a):!(s=this.g.mulAdd(l,n.getPublic(),d)).isInfinity()&&s.getX().umod(this.n).cmp(a)===0},d.prototype.recoverPubKey=function(e,t,n,i){c((3&n)===n,`The recovery param is more than two bits`),t=new u(t,i);var a=this.n,o=new r(e),s=t.r,l=t.s,d=1&n,f=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw Error(`Unable to find sencond key candinate`);s=f?this.curve.pointFromX(s.add(this.curve.n),d):this.curve.pointFromX(s,d);var p=t.r.invm(a),m=a.sub(o).mul(p).umod(a),h=l.mul(p).umod(a);return this.g.mulAdd(m,s,h)},d.prototype.getKeyRecoveryParam=function(e,t,n,r){if((t=new u(t,r)).recoveryParam!==null)return t.recoveryParam;for(var i=0;i<4;i++){var a;try{a=this.recoverPubKey(e,t,i)}catch{continue}if(a.eq(n))return i}throw 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,t,n){var r=e(`bn.js`),i=e(`../utils`).assert;function a(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}t.exports=a,a.fromPublic=function(e,t,n){return t instanceof a?t:new a(e,{pub:t,pubEnc:n})},a.fromPrivate=function(e,t,n){return t instanceof a?t:new a(e,{priv:t,privEnc:n})},a.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:`Invalid public key`}:e.validate()?e.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`}},a.prototype.getPublic=function(e,t){return typeof e==`string`&&(t=e,e=null),this.pub||=this.ec.g.mul(this.priv),t?this.pub.encode(t,e):this.pub},a.prototype.getPrivate=function(e){return e===`hex`?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(e,t){this.priv=new r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(e,t){if(e.x||e.y)return this.ec.curve.type===`mont`?i(e.x,`Need x coordinate`):this.ec.curve.type!==`short`&&this.ec.curve.type!==`edwards`||i(e.x&&e.y,`Need both x and y coordinate`),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},a.prototype.derive=function(e){return e.validate()||i(e.validate(),`public point not validated`),e.mul(this.priv).getX()},a.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},a.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},a.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,t,n){var r=e(`bn.js`),i=e(`../utils`),a=i.assert;function o(e,t){if(e instanceof o)return e;this._importDER(e,t)||(a(e.r&&e.s,`Signature without r or s`),this.r=new r(e.r,16),this.s=new r(e.s,16),e.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function c(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(r===0||r>4)return!1;for(var i=0,a=0,o=t.place;a<r;a++,o++)i<<=8,i|=e[o],i>>>=0;return!(i<=127)&&(t.place=o,i)}function l(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return t===0?e:e.slice(t)}function u(e,t){if(t<128)e.push(t);else{var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}t.exports=o,o.prototype._importDER=function(e,t){e=i.toArray(e,t);var n=new s;if(e[n.place++]!==48)return!1;var a=c(e,n);if(!1===a||a+n.place!==e.length||e[n.place++]!==2)return!1;var o=c(e,n);if(!1===o)return!1;var l=e.slice(n.place,o+n.place);if(n.place+=o,e[n.place++]!==2)return!1;var u=c(e,n);if(!1===u||e.length!==u+n.place)return!1;var d=e.slice(n.place,u+n.place);if(l[0]===0){if(!(128&l[1]))return!1;l=l.slice(1)}if(d[0]===0){if(!(128&d[1]))return!1;d=d.slice(1)}return this.r=new r(l),this.s=new r(d),this.recoveryParam=null,!0},o.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=l(t),n=l(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];u(r,t.length),(r=r.concat(t)).push(2),u(r,n.length);var a=r.concat(n),o=[48];return u(o,a.length),o=o.concat(a),i.encode(o,e)}},{"../utils":419,"bn.js":420}],415:[function(e,t,n){var r=e(`hash.js`),i=e(`../curves`),a=e(`../utils`),o=a.assert,s=a.parseBytes,c=e(`./key`),l=e(`./signature`);function u(e){if(o(e===`ed25519`,`only tested with ed25519 so far`),!(this instanceof u))return new u(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=r.sha512}t.exports=u,u.prototype.sign=function(e,t){e=s(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),i=this.g.mul(r),a=this.encodePoint(i),o=this.hashInt(a,n.pubBytes(),e).mul(n.priv()),c=r.add(o).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:a})},u.prototype.verify=function(e,t,n){e=s(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),r.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(r.pub().mul(i)).eq(a)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return a.intFromLE(e.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(e){return c.fromPublic(this,e)},u.prototype.keyFromSecret=function(e){return c.fromSecret(this,e)},u.prototype.makeSignature=function(e){return e instanceof l?e:new l(this,e)},u.prototype.encodePoint=function(e){var t=e.getY().toArray(`le`,this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},u.prototype.decodePoint=function(e){var t=(e=a.parseBytes(e)).length-1,n=e.slice(0,t).concat(-129&e[t]),r=(128&e[t])!=0,i=a.intFromLE(n);return this.curve.pointFromY(i,r)},u.prototype.encodeInt=function(e){return e.toArray(`le`,this.encodingLength)},u.prototype.decodeInt=function(e){return a.intFromLE(e)},u.prototype.isPoint=function(e){return e instanceof this.pointClass}},{"../curves":411,"../utils":419,"./key":416,"./signature":417,"hash.js":426}],416:[function(e,t,n){var r=e(`../utils`),i=r.assert,a=r.parseBytes,o=r.cachedProperty;function s(e,t){this.eddsa=e,this._secret=a(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=a(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},o(s,`pubBytes`,(function(){return this.eddsa.encodePoint(this.pub())})),o(s,`pub`,(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),o(s,`privBytes`,(function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r})),o(s,`priv`,(function(){return this.eddsa.decodeInt(this.privBytes())})),o(s,`hash`,(function(){return this.eddsa.hash().update(this.secret()).digest()})),o(s,`messagePrefix`,(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return i(this._secret,`KeyPair can only verify`),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,`KeyPair is public only`),r.encode(this.secret(),e)},s.prototype.getPublic=function(e){return r.encode(this.pubBytes(),e)},t.exports=s},{"../utils":419}],417:[function(e,t,n){var r=e(`bn.js`),i=e(`../utils`),a=i.assert,o=i.cachedProperty,s=i.parseBytes;function c(e,t){this.eddsa=e,typeof t!=`object`&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),a(t.R&&t.S,`Signature without R or S`),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof r&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}o(c,`S`,(function(){return this.eddsa.decodeInt(this.Sencoded())})),o(c,`R`,(function(){return this.eddsa.decodePoint(this.Rencoded())})),o(c,`Rencoded`,(function(){return this.eddsa.encodePoint(this.R())})),o(c,`Sencoded`,(function(){return this.eddsa.encodeInt(this.S())})),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return i.encode(this.toBytes(),`hex`).toUpperCase()},t.exports=c},{"../utils":419,"bn.js":420}],418:[function(e,t,n){t.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,t,n){var r=n,i=e(`bn.js`),a=e(`minimalistic-assert`),o=e(`minimalistic-crypto-utils`);r.assert=a,r.toArray=o.toArray,r.zero2=o.zero2,r.toHex=o.toHex,r.encode=o.encode,r.getNAF=function(e,t,n){var r=Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<<t+1,a=e.clone(),o=0;o<r.length;o++){var s,c=a.andln(i-1);a.isOdd()?(s=c>(i>>1)-1?(i>>1)-c:c,a.isubn(s)):s=0,r[o]=s,a.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,i=0,a=0;e.cmpn(-i)>0||t.cmpn(-a)>0;){var o,s,c=e.andln(3)+i&3,l=t.andln(3)+a&3;c===3&&(c=-1),l===3&&(l=-1),o=1&c?(r=e.andln(7)+i&7)!=3&&r!==5||l!==2?c:-c:0,n[0].push(o),s=1&l?(r=t.andln(7)+a&7)!=3&&r!==5||c!==2?l:-l:0,n[1].push(s),2*i===o+1&&(i=1-i),2*a===s+1&&(a=1-a),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r=`_`+t;e.prototype[t]=function(){return this[r]===void 0?this[r]=n.call(this):this[r]}},r.parseBytes=function(e){return typeof e==`string`?r.toArray(e,`hex`):e},r.intFromLE=function(e){return new i(e,`hex`,`le`)}},{"bn.js":420,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],420:[function(e,t,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],421:[function(e,t,n){t.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,t,n){var r=Object.create||function(e){var t=function(){};return t.prototype=e,new t},i=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return n},a=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};function o(){this._events&&Object.prototype.hasOwnProperty.call(this,`_events`)||(this._events=r(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}t.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._maxListeners=void 0;var s,c=10;try{var l={};Object.defineProperty&&Object.defineProperty(l,`x`,{value:0}),s=l.x===0}catch{s=!1}function u(e){return e._maxListeners===void 0?o.defaultMaxListeners:e._maxListeners}function d(e,t,n){if(t)e.call(n);else for(var r=e.length,i=x(e,r),a=0;a<r;++a)i[a].call(n)}function f(e,t,n,r){if(t)e.call(n,r);else for(var i=e.length,a=x(e,i),o=0;o<i;++o)a[o].call(n,r)}function p(e,t,n,r,i){if(t)e.call(n,r,i);else for(var a=e.length,o=x(e,a),s=0;s<a;++s)o[s].call(n,r,i)}function m(e,t,n,r,i,a){if(t)e.call(n,r,i,a);else for(var o=e.length,s=x(e,o),c=0;c<o;++c)s[c].call(n,r,i,a)}function h(e,t,n,r){if(t)e.apply(n,r);else for(var i=e.length,a=x(e,i),o=0;o<i;++o)a[o].apply(n,r)}function g(e,t,n,i){var a,o,s;if(typeof n!=`function`)throw TypeError(`"listener" argument must be a function`);if((o=e._events)?(o.newListener&&(e.emit(`newListener`,t,n.listener?n.listener:n),o=e._events),s=o[t]):(o=e._events=r(null),e._eventsCount=0),s){if(typeof s==`function`?s=o[t]=i?[n,s]:[s,n]:i?s.unshift(n):s.push(n),!s.warned&&(a=u(e))&&a>0&&s.length>a){s.warned=!0;var c=Error(`Possible EventEmitter memory leak detected. `+s.length+` "`+String(t)+`" listeners added. Use emitter.setMaxListeners() to increase limit.`);c.name=`MaxListenersExceededWarning`,c.emitter=e,c.type=t,c.count=s.length,typeof console==`object`&&console.warn&&console.warn(`%s: %s`,c.name,c.message)}}else s=o[t]=n,++e._eventsCount;return e}function _(){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 e=Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function v(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=a.call(_,r);return i.listener=n,r.wrapFn=i,i}function y(e,t,n){var r=e._events;if(!r)return[];var i=r[t];return i?typeof i==`function`?n?[i.listener||i]:[i]:n?function(e){for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):x(i,i.length):[]}function b(e){var t=this._events;if(t){var n=t[e];if(typeof n==`function`)return 1;if(n)return n.length}return 0}function x(e,t){for(var n=Array(t),r=0;r<t;++r)n[r]=e[r];return n}s?Object.defineProperty(o,`defaultMaxListeners`,{enumerable:!0,get:function(){return c},set:function(e){if(typeof e!=`number`||e<0||e!=e)throw TypeError(`"defaultMaxListeners" must be a positive number`);c=e}}):o.defaultMaxListeners=c,o.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||isNaN(e))throw TypeError(`"n" argument must be a positive number`);return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){var t,n,r,i,a,o,s=e===`error`;if(o=this._events)s&&=o.error==null;else if(!s)return!1;if(s){if(arguments.length>1&&(t=arguments[1]),t instanceof Error)throw t;var c=Error(`Unhandled "error" event. (`+t+`)`);throw c.context=t,c}if(!(n=o[e]))return!1;var l=typeof n==`function`;switch(r=arguments.length){case 1:d(n,l,this);break;case 2:f(n,l,this,arguments[1]);break;case 3:p(n,l,this,arguments[1],arguments[2]);break;case 4:m(n,l,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=Array(r-1),a=1;a<r;a++)i[a-1]=arguments[a];h(n,l,this,i)}return!0},o.prototype.addListener=function(e,t){return g(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return g(this,e,t,!0)},o.prototype.once=function(e,t){if(typeof t!=`function`)throw TypeError(`"listener" argument must be a function`);return this.on(e,v(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){if(typeof t!=`function`)throw TypeError(`"listener" argument must be a function`);return this.prependListener(e,v(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,i,a,o,s;if(typeof t!=`function`)throw TypeError(`"listener" argument must be a function`);if(!(i=this._events)||!(n=i[e]))return this;if(n===t||n.listener===t)--this._eventsCount==0?this._events=r(null):(delete i[e],i.removeListener&&this.emit(`removeListener`,e,n.listener||t));else if(typeof n!=`function`){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():function(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}(n,a),n.length===1&&(i[e]=n[0]),i.removeListener&&this.emit(`removeListener`,e,s||t)}return this},o.prototype.removeAllListeners=function(e){var t,n,a;if(!(n=this._events))return this;if(!n.removeListener)return arguments.length===0?(this._events=r(null),this._eventsCount=0):n[e]&&(--this._eventsCount==0?this._events=r(null):delete n[e]),this;if(arguments.length===0){var o,s=i(n);for(a=0;a<s.length;++a)(o=s[a])!==`removeListener`&&this.removeAllListeners(o);return this.removeAllListeners(`removeListener`),this._events=r(null),this._eventsCount=0,this}if(typeof(t=n[e])==`function`)this.removeListener(e,t);else if(t)for(a=t.length-1;a>=0;a--)this.removeListener(e,t[a]);return this},o.prototype.listeners=function(e){return y(this,e,!0)},o.prototype.rawListeners=function(e){return y(this,e,!1)},o.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):b.call(e,t)},o.prototype.listenerCount=b,o.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],423:[function(e,t,n){var r=e(`safe-buffer`).Buffer,i=e(`md5.js`);t.exports=function(e,t,n,a){if(r.isBuffer(e)||(e=r.from(e,`binary`)),t&&(r.isBuffer(t)||(t=r.from(t,`binary`)),t.length!==8))throw RangeError(`salt should be Buffer with 8 byte length`);for(var o=n/8,s=r.alloc(o),c=r.alloc(a||0),l=r.alloc(0);o>0||a>0;){var u=new i;u.update(l),u.update(e),t&&u.update(t),l=u.digest();var d=0;if(o>0){var f=s.length-o;d=Math.min(o,l.length),l.copy(s,f,0,d),o-=d}if(d<l.length&&a>0){var p=c.length-a,m=Math.min(a,l.length-d);l.copy(c,p,d,d+m),a-=m}}return l.fill(0),{key:s,iv:c}}},{"md5.js":450,"safe-buffer":494}],424:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.CsvParserStream=n.ParserOptions=n.parseFile=n.parseStream=n.parseString=n.parse=n.FormatterOptions=n.CsvFormatterStream=n.writeToPath=n.writeToString=n.writeToBuffer=n.writeToStream=n.write=n.format=void 0;var r=e(`@fast-csv/format`);Object.defineProperty(n,`format`,{enumerable:!0,get:function(){return r.format}}),Object.defineProperty(n,`write`,{enumerable:!0,get:function(){return r.write}}),Object.defineProperty(n,`writeToStream`,{enumerable:!0,get:function(){return r.writeToStream}}),Object.defineProperty(n,`writeToBuffer`,{enumerable:!0,get:function(){return r.writeToBuffer}}),Object.defineProperty(n,`writeToString`,{enumerable:!0,get:function(){return r.writeToString}}),Object.defineProperty(n,`writeToPath`,{enumerable:!0,get:function(){return r.writeToPath}}),Object.defineProperty(n,`CsvFormatterStream`,{enumerable:!0,get:function(){return r.CsvFormatterStream}}),Object.defineProperty(n,`FormatterOptions`,{enumerable:!0,get:function(){return r.FormatterOptions}});var i=e(`@fast-csv/parse`);Object.defineProperty(n,`parse`,{enumerable:!0,get:function(){return i.parse}}),Object.defineProperty(n,`parseString`,{enumerable:!0,get:function(){return i.parseString}}),Object.defineProperty(n,`parseStream`,{enumerable:!0,get:function(){return i.parseStream}}),Object.defineProperty(n,`parseFile`,{enumerable:!0,get:function(){return i.parseFile}}),Object.defineProperty(n,`ParserOptions`,{enumerable:!0,get:function(){return i.ParserOptions}}),Object.defineProperty(n,`CsvParserStream`,{enumerable:!0,get:function(){return i.CsvParserStream}})},{"@fast-csv/format":151,"@fast-csv/parse":155}],425:[function(e,t,n){var r=e(`safe-buffer`).Buffer,i=e(`readable-stream`).Transform;function a(e){i.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e(`inherits`)(a,i),a.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},a.prototype.update=function(e,t){if(function(e,t){if(!r.isBuffer(e)&&typeof e!=`string`)throw TypeError(t+` must be a string or a buffer`)}(e,`Data`),this._finalized)throw Error(`Digest already called`);r.isBuffer(e)||(e=r.from(e,t));for(var n=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)n[a++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)n[this._blockOffset++]=e[i++];for(var o=0,s=8*e.length;s>0;++o)this._length[o]+=s,(s=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*s);return this},a.prototype._update=function(){throw Error(`_update is not implemented`)},a.prototype.digest=function(e){if(this._finalized)throw Error(`Digest already called`);this._finalized=!0;var t=this._digest();e!==void 0&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},a.prototype._digest=function(){throw Error(`_digest is not implemented`)},t.exports=a},{inherits:440,"readable-stream":491,"safe-buffer":494}],426:[function(e,t,n){var r=n;r.utils=e(`./hash/utils`),r.common=e(`./hash/common`),r.sha=e(`./hash/sha`),r.ripemd=e(`./hash/ripemd`),r.hmac=e(`./hash/hmac`),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},{"./hash/common":427,"./hash/hmac":428,"./hash/ripemd":429,"./hash/sha":430,"./hash/utils":437}],427:[function(e,t,n){var r=e(`./utils`),i=e(`minimalistic-assert`);function a(){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}n.BlockHash=a,a.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),this.pending.length===0&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},a.prototype.digest=function(e){return this.update(this._pad()),i(this.pending===null),this._digest(e)},a.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,this.endian===`big`){for(var a=8;a<this.padLength;a++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,a=8;a<this.padLength;a++)r[i++]=0;return r}},{"./utils":437,"minimalistic-assert":453}],428:[function(e,t,n){var r=e(`./utils`),i=e(`minimalistic-assert`);function a(e,t,n){if(!(this instanceof a))return new a(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,n))}t.exports=a,a.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=new this.Hash().update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=new this.Hash().update(e)},a.prototype.update=function(e,t){return this.inner.update(e,t),this},a.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},{"./utils":437,"minimalistic-assert":453}],429:[function(e,t,n){var r=e(`./utils`),i=e(`./common`),a=r.rotl32,o=r.sum32,s=r.sum32_3,c=r.sum32_4,l=i.BlockHash;function u(){if(!(this instanceof u))return new u;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian=`little`}function d(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}function f(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function p(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}r.inherits(u,l),n.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],i=this.h[2],l=this.h[3],u=this.h[4],v=n,y=r,b=i,x=l,S=u,C=0;C<80;C++){var w=o(a(c(n,d(C,r,i,l),e[m[C]+t],f(C)),g[C]),u);n=u,u=l,l=a(i,10),i=r,r=w,w=o(a(c(v,d(79-C,y,b,x),e[h[C]+t],p(C)),_[C]),S),v=S,S=x,x=a(b,10),b=y,y=w}w=s(this.h[1],i,x),this.h[1]=s(this.h[2],l,S),this.h[2]=s(this.h[3],u,v),this.h[3]=s(this.h[4],n,y),this.h[4]=s(this.h[0],r,b),this.h[0]=w},u.prototype._digest=function(e){return e===`hex`?r.toHex32(this.h,`little`):r.split32(this.h,`little`)};var m=[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],h=[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],g=[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],_=[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,t,n){n.sha1=e(`./sha/1`),n.sha224=e(`./sha/224`),n.sha256=e(`./sha/256`),n.sha384=e(`./sha/384`),n.sha512=e(`./sha/512`)},{"./sha/1":431,"./sha/224":432,"./sha/256":433,"./sha/384":434,"./sha/512":435}],431:[function(e,t,n){var r=e(`../utils`),i=e(`../common`),a=e(`./common`),o=r.rotl32,s=r.sum32,c=r.sum32_5,l=a.ft_1,u=i.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function f(){if(!(this instanceof f))return new f;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}r.inherits(f,u),t.exports=f,f.blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=o(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],a=this.h[1],u=this.h[2],f=this.h[3],p=this.h[4];for(r=0;r<n.length;r++){var m=~~(r/20),h=c(o(i,5),l(m,a,u,f),p,n[r],d[m]);p=f,f=u,u=o(a,30),a=i,i=h}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],u),this.h[3]=s(this.h[3],f),this.h[4]=s(this.h[4],p)},f.prototype._digest=function(e){return e===`hex`?r.toHex32(this.h,`big`):r.split32(this.h,`big`)}},{"../common":427,"../utils":437,"./common":436}],432:[function(e,t,n){var r=e(`../utils`),i=e(`./256`);function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(a,i),t.exports=a,a.blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(e){return e===`hex`?r.toHex32(this.h.slice(0,7),`big`):r.split32(this.h.slice(0,7),`big`)}},{"../utils":437,"./256":433}],433:[function(e,t,n){var r=e(`../utils`),i=e(`../common`),a=e(`./common`),o=e(`minimalistic-assert`),s=r.sum32,c=r.sum32_4,l=r.sum32_5,u=a.ch32,d=a.maj32,f=a.s0_256,p=a.s1_256,m=a.g0_256,h=a.g1_256,g=i.BlockHash,_=[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 v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=_,this.W=Array(64)}r.inherits(v,g),t.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=c(h(n[r-2]),n[r-7],m(n[r-15]),n[r-16]);var i=this.h[0],a=this.h[1],g=this.h[2],_=this.h[3],v=this.h[4],y=this.h[5],b=this.h[6],x=this.h[7];for(o(this.k.length===n.length),r=0;r<n.length;r++){var S=l(x,p(v),u(v,y,b),this.k[r],n[r]),C=s(f(i),d(i,a,g));x=b,b=y,y=v,v=s(_,S),_=g,g=a,a=i,i=s(S,C)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],g),this.h[3]=s(this.h[3],_),this.h[4]=s(this.h[4],v),this.h[5]=s(this.h[5],y),this.h[6]=s(this.h[6],b),this.h[7]=s(this.h[7],x)},v.prototype._digest=function(e){return e===`hex`?r.toHex32(this.h,`big`):r.split32(this.h,`big`)}},{"../common":427,"../utils":437,"./common":436,"minimalistic-assert":453}],434:[function(e,t,n){var r=e(`../utils`),i=e(`./512`);function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(a,i),t.exports=a,a.blockSize=1024,a.outSize=384,a.hmacStrength=192,a.padLength=128,a.prototype._digest=function(e){return e===`hex`?r.toHex32(this.h.slice(0,12),`big`):r.split32(this.h.slice(0,12),`big`)}},{"../utils":437,"./512":435}],435:[function(e,t,n){var r=e(`../utils`),i=e(`../common`),a=e(`minimalistic-assert`),o=r.rotr64_hi,s=r.rotr64_lo,c=r.shr64_hi,l=r.shr64_lo,u=r.sum64,d=r.sum64_hi,f=r.sum64_lo,p=r.sum64_4_hi,m=r.sum64_4_lo,h=r.sum64_5_hi,g=r.sum64_5_lo,_=i.BlockHash,v=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function y(){if(!(this instanceof y))return new y;_.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=v,this.W=Array(160)}function b(e,t,n,r,i){var a=e&n^~e&i;return a<0&&(a+=4294967296),a}function x(e,t,n,r,i,a){var o=t&r^~t&a;return o<0&&(o+=4294967296),o}function S(e,t,n,r,i){var a=e&n^e&i^n&i;return a<0&&(a+=4294967296),a}function C(e,t,n,r,i,a){var o=t&r^t&a^r&a;return o<0&&(o+=4294967296),o}function w(e,t){var n=o(e,t,28)^o(t,e,2)^o(t,e,7);return n<0&&(n+=4294967296),n}function T(e,t){var n=s(e,t,28)^s(t,e,2)^s(t,e,7);return n<0&&(n+=4294967296),n}function E(e,t){var n=o(e,t,14)^o(e,t,18)^o(t,e,9);return n<0&&(n+=4294967296),n}function D(e,t){var n=s(e,t,14)^s(e,t,18)^s(t,e,9);return n<0&&(n+=4294967296),n}function O(e,t){var n=o(e,t,1)^o(e,t,8)^c(e,t,7);return n<0&&(n+=4294967296),n}function k(e,t){var n=s(e,t,1)^s(e,t,8)^l(e,t,7);return n<0&&(n+=4294967296),n}function A(e,t){var n=o(e,t,19)^o(t,e,29)^c(e,t,6);return n<0&&(n+=4294967296),n}function j(e,t){var n=s(e,t,19)^s(t,e,29)^l(e,t,6);return n<0&&(n+=4294967296),n}r.inherits(y,_),t.exports=y,y.blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r<n.length;r+=2){var i=A(n[r-4],n[r-3]),a=j(n[r-4],n[r-3]),o=n[r-14],s=n[r-13],c=O(n[r-30],n[r-29]),l=k(n[r-30],n[r-29]),u=n[r-32],d=n[r-31];n[r]=p(i,a,o,s,c,l,u,d),n[r+1]=m(i,a,o,s,c,l,u,d)}},y.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],i=this.h[1],o=this.h[2],s=this.h[3],c=this.h[4],l=this.h[5],p=this.h[6],m=this.h[7],_=this.h[8],v=this.h[9],y=this.h[10],O=this.h[11],k=this.h[12],A=this.h[13],j=this.h[14],M=this.h[15];a(this.k.length===n.length);for(var N=0;N<n.length;N+=2){var P=j,F=M,I=E(_,v),ee=D(_,v),L=b(_,v,y,O,k),R=x(_,v,y,O,k,A),z=this.k[N],B=this.k[N+1],V=n[N],H=n[N+1],U=h(P,F,I,ee,L,R,z,B,V,H),W=g(P,F,I,ee,L,R,z,B,V,H);P=w(r,i),F=T(r,i),I=S(r,i,o,s,c),ee=C(r,i,o,s,c,l);var te=d(P,F,I,ee),ne=f(P,F,I,ee);j=k,M=A,k=y,A=O,y=_,O=v,_=d(p,m,U,W),v=f(m,m,U,W),p=c,m=l,c=o,l=s,o=r,s=i,r=d(U,W,te,ne),i=f(U,W,te,ne)}u(this.h,0,r,i),u(this.h,2,o,s),u(this.h,4,c,l),u(this.h,6,p,m),u(this.h,8,_,v),u(this.h,10,y,O),u(this.h,12,k,A),u(this.h,14,j,M)},y.prototype._digest=function(e){return e===`hex`?r.toHex32(this.h,`big`):r.split32(this.h,`big`)}},{"../common":427,"../utils":437,"minimalistic-assert":453}],436:[function(e,t,n){var r=e(`../utils`).rotr32;function i(e,t,n){return e&t^~e&n}function a(e,t,n){return e&t^e&n^t&n}function o(e,t,n){return e^t^n}n.ft_1=function(e,t,n,r){return e===0?i(t,n,r):e===1||e===3?o(t,n,r):e===2?a(t,n,r):void 0},n.ch32=i,n.maj32=a,n.p32=o,n.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},n.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},n.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},n.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},{"../utils":437}],437:[function(e,t,n){var r=e(`minimalistic-assert`),i=e(`inherits`);function a(e,t){return(64512&e.charCodeAt(t))==55296&&!(t<0||t+1>=e.length)&&(64512&e.charCodeAt(t+1))==56320}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return e.length===1?`0`+e:e}function c(e){return e.length===7?`0`+e:e.length===6?`00`+e:e.length===5?`000`+e:e.length===4?`0000`+e:e.length===3?`00000`+e:e.length===2?`000000`+e:e.length===1?`0000000`+e:e}n.inherits=i,n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if(typeof e==`string`)if(t){if(t===`hex`)for((e=e.replace(/[^a-z0-9]+/gi,``)).length%2!=0&&(e=`0`+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var o=e.charCodeAt(i);o<128?n[r++]=o:o<2048?(n[r++]=o>>6|192,n[r++]=63&o|128):a(e,i)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++i)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},n.toHex=function(e){for(var t=``,n=0;n<e.length;n++)t+=s(e[n].toString(16));return t},n.htonl=o,n.toHex32=function(e,t){for(var n=``,r=0;r<e.length;r++){var i=e[r];t===`little`&&(i=o(i)),n+=c(i.toString(16))}return n},n.zero2=s,n.zero8=c,n.join32=function(e,t,n,i){var a=n-t;r(a%4==0);for(var o=Array(a/4),s=0,c=t;s<o.length;s++,c+=4)o[s]=(i===`big`?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c])>>>0;return o},n.split32=function(e,t){for(var n=Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var a=e[r];t===`big`?(n[i]=a>>>24,n[i+1]=a>>>16&255,n[i+2]=a>>>8&255,n[i+3]=255&a):(n[i+3]=a>>>24,n[i+2]=a>>>16&255,n[i+1]=a>>>8&255,n[i]=255&a)}return n},n.rotr32=function(e,t){return e>>>t|e<<32-t},n.rotl32=function(e,t){return e<<t|e>>>32-t},n.sum32=function(e,t){return e+t>>>0},n.sum32_3=function(e,t,n){return e+t+n>>>0},n.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},n.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},n.sum64=function(e,t,n,r){var i=e[t],a=r+e[t+1]>>>0;e[t]=(a<r?1:0)+n+i>>>0,e[t+1]=a},n.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},n.sum64_lo=function(e,t,n,r){return t+r>>>0},n.sum64_4_hi=function(e,t,n,r,i,a,o,s){var c=0,l=t;return c+=(l=l+r>>>0)<t?1:0,c+=(l=l+a>>>0)<a?1:0,e+n+i+o+(c+=(l=l+s>>>0)<s?1:0)>>>0},n.sum64_4_lo=function(e,t,n,r,i,a,o,s){return t+r+a+s>>>0},n.sum64_5_hi=function(e,t,n,r,i,a,o,s,c,l){var u=0,d=t;return u+=(d=d+r>>>0)<t?1:0,u+=(d=d+a>>>0)<a?1:0,u+=(d=d+s>>>0)<s?1:0,e+n+i+o+c+(u+=(d=d+l>>>0)<l?1:0)>>>0},n.sum64_5_lo=function(e,t,n,r,i,a,o,s,c,l){return t+r+a+s+l>>>0},n.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},n.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},n.shr64_hi=function(e,t,n){return e>>>n},n.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},{inherits:440,"minimalistic-assert":453}],438:[function(e,t,n){var r=e(`hash.js`),i=e(`minimalistic-crypto-utils`),a=e(`minimalistic-assert`);function o(e){if(!(this instanceof o))return new o(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||`hex`),n=i.toArray(e.nonce,e.nonceEnc||`hex`),r=i.toArray(e.pers,e.persEnc||`hex`);a(t.length>=this.minEntropy/8,`Not enough entropy. Minimum is: `+this.minEntropy+` bits`),this._init(t,n,r)}t.exports=o,o.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},o.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},o.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},o.prototype.reseed=function(e,t,n,r){typeof t!=`string`&&(r=n,n=t,t=null),e=i.toArray(e,t),n=i.toArray(n,r),a(e.length>=this.minEntropy/8,`Not enough entropy. Minimum is: `+this.minEntropy+` bits`),this._update(e.concat(n||[])),this._reseed=1},o.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw Error(`Reseed is required`);typeof t!=`string`&&(r=n,n=t,t=null),n&&(n=i.toArray(n,r||`hex`),this._update(n));for(var a=[];a.length<e;)this.V=this._hmac().update(this.V).digest(),a=a.concat(this.V);var o=a.slice(0,e);return this._update(n),this._reseed++,i.encode(o,t)}},{"hash.js":426,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],439:[function(e,t,n){n.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=256*a+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else{if(a===c)return o?NaN:1/0*(p?-1:1);o+=2**r,a-=l}return(p?-1:1)*o*2**(a-r)},n.write=function(e,t,n,r,i,a){var o,s,c,l=8*a-i-1,u=(1<<l)-1,d=u>>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),(t+=o+d>=1?f/c:f*2**(1-d))*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=255&s,p+=m,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+p]=255&o,p+=m,o/=256,l-=8);e[n+p-m]|=128*h}},{}],440:[function(e,t,n){typeof Object.create==`function`?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},{}],441:[function(e,t,n){(function(r,i,a,o,s,c,l,u){(function(){(function(e){typeof n==`object`&&t!==void 0?t.exports=e():(typeof window<`u`?window:i===void 0?typeof self<`u`?self:this:i).JSZip=e()})((function(){return function t(n,r,i){function a(s,c){if(!r[s]){if(!n[s]){var l=typeof e==`function`&&e;if(!c&&l)return l(s,!0);if(o)return o(s,!0);var u=Error(`Cannot find module '`+s+`'`);throw u.code=`MODULE_NOT_FOUND`,u}var d=r[s]={exports:{}};n[s][0].call(d.exports,(function(e){return a(n[s][1][e]||e)}),d,d.exports,t,n,r,i)}return r[s].exports}for(var o=typeof e==`function`&&e,s=0;s<i.length;s++)a(i[s]);return a}({1:[function(e,t,n){var r=e(`./utils`),i=e(`./support`),a=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`;n.encode=function(e){for(var t,n,i,o,s,c,l,u=[],d=0,f=e.length,p=f,m=r.getTypeOf(e)!==`string`;d<e.length;)p=f-d,i=m?(t=e[d++],n=d<f?e[d++]:0,d<f?e[d++]:0):(t=e.charCodeAt(d++),n=d<f?e.charCodeAt(d++):0,d<f?e.charCodeAt(d++):0),o=t>>2,s=(3&t)<<4|n>>4,c=1<p?(15&n)<<2|i>>6:64,l=2<p?63&i:64,u.push(a.charAt(o)+a.charAt(s)+a.charAt(c)+a.charAt(l));return u.join(``)},n.decode=function(e){var t,n,r,o,s,c,l=0,u=0,d=`data:`;if(e.substr(0,d.length)===d)throw Error(`Invalid base64 input, it looks like a data url.`);var f,p=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,``)).length/4;if(e.charAt(e.length-1)===a.charAt(64)&&p--,e.charAt(e.length-2)===a.charAt(64)&&p--,p%1!=0)throw Error(`Invalid base64 input, bad content length.`);for(f=i.uint8array?new Uint8Array(0|p):Array(0|p);l<e.length;)t=a.indexOf(e.charAt(l++))<<2|(o=a.indexOf(e.charAt(l++)))>>4,n=(15&o)<<4|(s=a.indexOf(e.charAt(l++)))>>2,r=(3&s)<<6|(c=a.indexOf(e.charAt(l++))),f[u++]=t,s!==64&&(f[u++]=n),c!==64&&(f[u++]=r);return f}},{"./support":30,"./utils":32}],2:[function(e,t,n){var r=e(`./external`),i=e(`./stream/DataWorker`),a=e(`./stream/Crc32Probe`),o=e(`./stream/DataLengthProbe`);function s(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o(`data_length`)),t=this;return e.on(`end`,(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw Error(`Bug : uncompressed data size mismatch`)})),e},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo(`compressedSize`,this.compressedSize).withStreamInfo(`uncompressedSize`,this.uncompressedSize).withStreamInfo(`crc32`,this.crc32).withStreamInfo(`compression`,this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new a).pipe(new o(`uncompressedSize`)).pipe(t.compressWorker(n)).pipe(new o(`compressedSize`)).withStreamInfo(`compression`,t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){var r=e(`./stream/GenericWorker`);n.STORE={magic:`\0\0`,compressWorker:function(){return new r(`STORE compression`)},uncompressWorker:function(){return new r(`STORE decompression`)}},n.DEFLATE=e(`./flate`)},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){var r=e(`./utils`),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return e!==void 0&&e.length?r.getTypeOf(e)===`string`?function(e,t,n,r){var a=i,o=0+n;e^=-1;for(var s=0;s<o;s++)e=e>>>8^a[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length):function(e,t,n,r){var a=i,o=0+n;e^=-1;for(var s=0;s<o;s++)e=e>>>8^a[255&(e^t[s])];return-1^e}(0|t,e,e.length):0}},{"./utils":32}],5:[function(e,t,n){n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){t.exports={Promise:typeof Promise<`u`?Promise:e(`lie`)}},{lie:37}],7:[function(e,t,n){var r=typeof Uint8Array<`u`&&typeof Uint16Array<`u`&&typeof Uint32Array<`u`,i=e(`pako`),a=e(`./utils`),o=e(`./stream/GenericWorker`),s=r?`uint8array`:`array`;function c(e,t){o.call(this,`FlateWorker/`+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic=`\b\0`,a.inherits(c,o),c.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(s,e.data),!1)},c.prototype.flush=function(){o.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new c(`Deflate`,e)},n.uncompressWorker=function(){return new c(`Inflate`,{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){function r(e,t){var n,r=``;for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function i(e,t,n,i,o,u){var d,f,p=e.file,m=e.compression,h=u!==s.utf8encode,g=a.transformTo(`string`,u(p.name)),_=a.transformTo(`string`,s.utf8encode(p.name)),v=p.comment,y=a.transformTo(`string`,u(v)),b=a.transformTo(`string`,s.utf8encode(v)),x=_.length!==p.name.length,S=b.length!==v.length,C=``,w=``,T=``,E=p.dir,D=p.date,O={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(O.crc32=e.crc32,O.compressedSize=e.compressedSize,O.uncompressedSize=e.uncompressedSize);var k=0;t&&(k|=8),h||!x&&!S||(k|=2048);var A=0,j=0;E&&(A|=16),o===`UNIX`?(j=798,A|=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16}(p.unixPermissions,E)):(j=20,A|=function(e){return 63&(e||0)}(p.dosPermissions)),d=D.getUTCHours(),d<<=6,d|=D.getUTCMinutes(),d<<=5,d|=D.getUTCSeconds()/2,f=D.getUTCFullYear()-1980,f<<=4,f|=D.getUTCMonth()+1,f<<=5,f|=D.getUTCDate(),x&&(w=r(1,1)+r(c(g),4)+_,C+=`up`+r(w.length,2)+w),S&&(T=r(1,1)+r(c(y),4)+b,C+=`uc`+r(T.length,2)+T);var M=``;return M+=`
\0`,M+=r(k,2),M+=m.magic,M+=r(d,2),M+=r(f,2),M+=r(O.crc32,4),M+=r(O.compressedSize,4),M+=r(O.uncompressedSize,4),M+=r(g.length,2),M+=r(C.length,2),{fileRecord:l.LOCAL_FILE_HEADER+M+g+C,dirRecord:l.CENTRAL_FILE_HEADER+r(j,2)+M+r(y.length,2)+`\0\0\0\0`+r(A,4)+r(i,4)+g+C+y}}var a=e(`../utils`),o=e(`../stream/GenericWorker`),s=e(`../utf8`),c=e(`../crc32`),l=e(`../signature`);function u(e,t,n,r){o.call(this,`ZipFileWorker`),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(u,o),u.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:function(e){return l.DATA_DESCRIPTOR+r(e.crc32,4)+r(e.compressedSize,4)+r(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=this.bytesWritten-e,i=function(e,t,n,i,o){var s=a.transformTo(`string`,o(i));return l.CENTRAL_DIRECTORY_END+`\0\0\0\0`+r(e,2)+r(e,2)+r(t,4)+r(n,4)+r(s.length,2)+s}(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on(`data`,(function(e){t.processChunk(e)})),e.on(`end`,(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on(`error`,(function(e){t.error(e)})),this},u.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(e){var t=this._sources;if(!o.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch{}return!0},u.prototype.lock=function(){o.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){var r=e(`../compressions`),i=e(`./ZipFileWorker`);n.generateWorker=function(e,t,n){var a=new i(t.streamFiles,n,t.platform,t.encodeFileName),o=0;try{e.forEach((function(e,n){o++;var i=function(e,t){var n=e||t,i=r[n];if(!i)throw Error(n+` is not a valid compression method !`);return i}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},c=n.dir,l=n.date;n._compressWorker(i,s).withStreamInfo(`file`,{name:e,dir:c,date:l,comment:n.comment||``,unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(a)})),a.entriesCount=o}catch(e){a.error(e)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){function r(){if(!(this instanceof r))return new r;if(arguments.length)throw Error(`The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.`);this.files=Object.create(null),this.comment=null,this.root=``,this.clone=function(){var e=new r;for(var t in this)typeof this[t]!=`function`&&(e[t]=this[t]);return e}}(r.prototype=e(`./object`)).loadAsync=e(`./load`),r.support=e(`./support`),r.defaults=e(`./defaults`),r.version=`3.10.1`,r.loadAsync=function(e,t){return new r().loadAsync(e,t)},r.external=e(`./external`),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){var r=e(`./utils`),i=e(`./external`),a=e(`./utf8`),o=e(`./zipEntries`),s=e(`./stream/Crc32Probe`),c=e(`./nodejsUtils`);function l(e){return new i.Promise((function(t,n){var r=e.decompressed.getContentWorker().pipe(new s);r.on(`error`,(function(e){n(e)})).on(`end`,(function(){r.streamInfo.crc32===e.decompressed.crc32?t():n(Error(`Corrupted zip : CRC32 mismatch`))})).resume()}))}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),c.isNode&&c.isStream(e)?i.Promise.reject(Error(`JSZip can't accept a stream when loading a zip file.`)):r.prepareContent(`the loaded zip file`,e,!0,t.optimizedBinaryString,t.base64).then((function(e){var n=new o(t);return n.load(e),n})).then((function(e){var n=[i.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var a=0;a<r.length;a++)n.push(l(r[a]));return i.Promise.all(n)})).then((function(e){for(var i=e.shift(),a=i.files,o=0;o<a.length;o++){var s=a[o],c=s.fileNameStr,l=r.resolve(s.fileNameStr);n.file(l,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(n.file(l).unsafeOriginalName=c)}return i.zipComment.length&&(n.comment=i.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){var r=e(`../utils`),i=e(`../stream/GenericWorker`);function a(e,t){i.call(this,`Nodejs stream input adapter for `+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(a,i),a.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on(`data`,(function(e){t.push({data:e,meta:{percent:0}})})).on(`error`,(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on(`end`,(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},a.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){var r=e(`readable-stream`).Readable;function i(e,t,n){r.call(this,t),this._helper=e;var i=this;e.on(`data`,(function(e,t){i.push(e)||i._helper.pause(),n&&n(t)})).on(`error`,(function(e){i.emit(`error`,e)})).on(`end`,(function(){i.push(null)}))}e(`../utils`).inherits(i,r),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){t.exports={isNode:a!==void 0,newBufferFrom:function(e,t){if(a.from&&a.from!==Uint8Array.from)return a.from(e,t);if(typeof e==`number`)throw Error(`The "data" argument must not be a number`);return new a(e,t)},allocBuffer:function(e){if(a.alloc)return a.alloc(e);var t=new a(e);return t.fill(0),t},isBuffer:function(e){return a.isBuffer(e)},isStream:function(e){return e&&typeof e.on==`function`&&typeof e.pause==`function`&&typeof e.resume==`function`}}},{}],15:[function(e,t,n){function r(e,t,n){var r,i=a.getTypeOf(t),s=a.extend(n||{},c);s.date=s.date||new Date,s.compression!==null&&(s.compression=s.compression.toUpperCase()),typeof s.unixPermissions==`string`&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=h(e)),s.createFolders&&(r=m(e))&&g.call(this,r,!0);var d=i===`string`&&!1===s.binary&&!1===s.base64;n&&n.binary!==void 0||(s.binary=!d),(t instanceof l&&t.uncompressedSize===0||s.dir||!t||t.length===0)&&(s.base64=!1,s.binary=!0,t=``,s.compression=`STORE`,i=`string`);var _=t instanceof l||t instanceof o?t:f.isNode&&f.isStream(t)?new p(e,t):a.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64),v=new u(e,_,s);this.files[e]=v}var i=e(`./utf8`),a=e(`./utils`),o=e(`./stream/GenericWorker`),s=e(`./stream/StreamHelper`),c=e(`./defaults`),l=e(`./compressedObject`),u=e(`./zipObject`),d=e(`./generate`),f=e(`./nodejsUtils`),p=e(`./nodejs/NodejsStreamInputAdapter`),m=function(e){e.slice(-1)===`/`&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf(`/`);return 0<t?e.substring(0,t):``},h=function(e){return e.slice(-1)!==`/`&&(e+=`/`),e},g=function(e,t){return t=t===void 0?c.createFolders:t,e=h(e),this.files[e]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function _(e){return Object.prototype.toString.call(e)===`[object RegExp]`}t.exports={load:function(){throw Error(`This method has been removed in JSZip 3.0, please check the upgrade guide.`)},forEach:function(e){var t,n,r;for(t in this.files)r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r)},filter:function(e){var t=[];return this.forEach((function(n,r){e(n,r)&&t.push(r)})),t},file:function(e,t,n){if(arguments.length!==1)return e=this.root+e,r.call(this,e,t,n),this;if(_(e)){var i=e;return this.filter((function(e,t){return!t.dir&&i.test(e)}))}var a=this.files[this.root+e];return a&&!a.dir?a:null},folder:function(e){if(!e)return this;if(_(e))return this.filter((function(t,n){return n.dir&&e.test(t)}));var t=this.root+e,n=g.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||=(e.slice(-1)!==`/`&&(e+=`/`),this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter((function(t,n){return n.name.slice(0,e.length)===e})),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(){throw Error(`This method has been removed in JSZip 3.0, please check the upgrade guide.`)},generateInternalStream:function(e){var t,n={};try{if((n=a.extend(e||{},{streamFiles:!1,compression:`STORE`,compressionOptions:null,type:``,platform:`DOS`,comment:null,mimeType:`application/zip`,encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),n.type===`binarystring`&&(n.type=`string`),!n.type)throw Error(`No output type specified.`);a.checkSupport(n.type),n.platform!==`darwin`&&n.platform!==`freebsd`&&n.platform!==`linux`&&n.platform!==`sunos`||(n.platform=`UNIX`),n.platform===`win32`&&(n.platform=`DOS`);var r=n.comment||this.comment||``;t=d.generateWorker(this,n,r)}catch(e){(t=new o(`error`)).error(e)}return new s(t,n.type||`string`,n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e||={}).type||(e.type=`nodebuffer`),this.generateInternalStream(e).toNodejsStream(t)}}},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,n){t.exports=e(`stream`)},{stream:void 0}],17:[function(e,t,n){var r=e(`./DataReader`);function i(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e(`../utils`).inherits(i,r),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===t&&this.data[a+1]===n&&this.data[a+2]===r&&this.data[a+3]===i)return a-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&n===a[1]&&r===a[2]&&i===a[3]},i.prototype.readData=function(e){if(this.checkOffset(e),e===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){var r=e(`../utils`);function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw Error(`End of data reached (data length = `+this.length+`, asked index = `+e+`). Corrupted zip ?`)},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo(`string`,this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,n){var r=e(`./Uint8ArrayReader`);function i(e){r.call(this,e)}e(`../utils`).inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){var r=e(`./DataReader`);function i(e){r.call(this,e)}e(`../utils`).inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){var r=e(`./ArrayReader`);function i(e){r.call(this,e)}e(`../utils`).inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array;var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){var r=e(`../utils`),i=e(`../support`),a=e(`./ArrayReader`),o=e(`./StringReader`),s=e(`./NodeBufferReader`),c=e(`./Uint8ArrayReader`);t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),t!==`string`||i.uint8array?t===`nodebuffer`?new s(e):i.uint8array?new c(r.transformTo(`uint8array`,e)):new a(r.transformTo(`array`,e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){n.LOCAL_FILE_HEADER=`PK`,n.CENTRAL_FILE_HEADER=`PK`,n.CENTRAL_DIRECTORY_END=`PK`,n.ZIP64_CENTRAL_DIRECTORY_LOCATOR=`PK\x07`,n.ZIP64_CENTRAL_DIRECTORY_END=`PK`,n.DATA_DESCRIPTOR=`PK\x07\b`},{}],24:[function(e,t,n){var r=e(`./GenericWorker`),i=e(`../utils`);function a(e){r.call(this,`ConvertWorker to `+e),this.destType=e}i.inherits(a,r),a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){var r=e(`./GenericWorker`),i=e(`../crc32`);function a(){r.call(this,`Crc32Probe`),this.withStreamInfo(`crc32`,0)}e(`../utils`).inherits(a,r),a.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){var r=e(`../utils`),i=e(`./GenericWorker`);function a(e){i.call(this,`DataLengthProbe for `+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(a,i),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){var r=e(`../utils`),i=e(`./GenericWorker`);function a(e){i.call(this,`DataWorker`);var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type=``,this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}r.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case`string`:e=this.data.substring(this.index,t);break;case`uint8array`:e=this.data.subarray(this.index,t);break;case`array`:case`nodebuffer`:e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){function r(e){this.name=e||`default`,this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit(`data`,e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit(`end`),this.cleanUp(),this.isFinished=!0}catch(e){this.emit(`error`,e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit(`error`,e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw Error(`The stream '`+this+`' has already been used.`);this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on(`data`,(function(e){t.processChunk(e)})),e.on(`end`,(function(){t.end()})),e.on(`error`,(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw Error(`The stream '`+this+`' has already been used.`);this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e=`Worker `+this.name;return this.previous?this.previous+` -> `+e:e}},t.exports=r},{}],29:[function(e,t,n){var r=e(`../utils`),i=e(`./ConvertWorker`),o=e(`./GenericWorker`),s=e(`../base64`),c=e(`../support`),l=e(`../external`),u=null;if(c.nodestream)try{u=e(`../nodejs/NodejsStreamOutputAdapter`)}catch{}function d(e,t,n){var a=t;switch(t){case`blob`:case`arraybuffer`:a=`uint8array`;break;case`base64`:a=`string`}try{this._internalType=a,this._outputType=t,this._mimeType=n,r.checkSupport(a),this._worker=e.pipe(new i(a)),e.lock()}catch(e){this._worker=new o(`error`),this._worker.error(e)}}d.prototype={accumulate:function(e){return function(e,t){return new l.Promise((function(n,i){var o=[],c=e._internalType,l=e._outputType,u=e._mimeType;e.on(`data`,(function(e,n){o.push(e),t&&t(n)})).on(`error`,(function(e){o=[],i(e)})).on(`end`,(function(){try{n(function(e,t,n){switch(e){case`blob`:return r.newBlob(r.transformTo(`arraybuffer`,t),n);case`base64`:return s.encode(t);default:return r.transformTo(e,t)}}(l,function(e,t){var n,r=0,i=null,o=0;for(n=0;n<t.length;n++)o+=t[n].length;switch(e){case`string`:return t.join(``);case`array`:return Array.prototype.concat.apply([],t);case`uint8array`:for(i=new Uint8Array(o),n=0;n<t.length;n++)i.set(t[n],r),r+=t[n].length;return i;case`nodebuffer`:return a.concat(t);default:throw Error(`concat : unsupported type '`+e+`'`)}}(c,o),u))}catch(e){i(e)}o=[]})).resume()}))}(this,e)},on:function(e,t){var n=this;return e===`data`?this._worker.on(e,(function(e){t.call(n,e.data,e.meta)})):this._worker.on(e,(function(){r.delay(t,arguments,n)})),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(r.checkSupport(`nodestream`),this._outputType!==`nodebuffer`)throw Error(this._outputType+` is not supported by this method`);return new u(this,{objectMode:this._outputType!==`nodebuffer`},e)}},t.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer=typeof ArrayBuffer<`u`&&typeof Uint8Array<`u`,n.nodebuffer=a!==void 0,n.uint8array=typeof Uint8Array<`u`,typeof ArrayBuffer>`u`)n.blob=!1;else{var r=new ArrayBuffer(0);try{n.blob=new Blob([r],{type:`application/zip`}).size===0}catch{try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(r),n.blob=i.getBlob(`application/zip`).size===0}catch{n.blob=!1}}}try{n.nodestream=!!e(`readable-stream`).Readable}catch{n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){for(var r=e(`./utils`),i=e(`./support`),a=e(`./nodejsUtils`),o=e(`./stream/GenericWorker`),s=Array(256),c=0;c<256;c++)s[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function l(){o.call(this,`utf-8 decode`),this.leftOver=null}function u(){o.call(this,`utf-8 encode`)}s[254]=s[254]=1,n.utf8encode=function(e){return i.nodebuffer?a.newBufferFrom(e,`utf-8`):function(e){var t,n,r,a,o,s=e.length,c=0;for(a=0;a<s;a++)(64512&(n=e.charCodeAt(a)))==55296&&a+1<s&&(64512&(r=e.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(r-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=i.uint8array?new Uint8Array(c):Array(c),a=o=0;o<c;a++)(64512&(n=e.charCodeAt(a)))==55296&&a+1<s&&(64512&(r=e.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(r-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t}(e)},n.utf8decode=function(e){return i.nodebuffer?r.transformTo(`nodebuffer`,e).toString(`utf-8`):function(e){var t,n,i,a,o=e.length,c=Array(2*o);for(t=n=0;t<o;)if((i=e[t++])<128)c[n++]=i;else if(4<(a=s[i]))c[n++]=65533,t+=a-1;else{for(i&=a===2?31:a===3?15:7;1<a&&t<o;)i=i<<6|63&e[t++],a--;1<a?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return c.length!==n&&(c.subarray?c=c.subarray(0,n):c.length=n),r.applyFromCharCode(c)}(e=r.transformTo(i.uint8array?`uint8array`:`array`,e))},r.inherits(l,o),l.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?`uint8array`:`array`,e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=t;(t=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var n;for((t||=e.length)>e.length&&(t=e.length),n=t-1;0<=n&&(192&e[n])==128;)n--;return n<0||n===0?t:n+s[e[n]]>t?n:t}(t),c=t;o!==t.length&&(i.uint8array?(c=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(c=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:n.utf8decode(c),meta:e.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=l,r.inherits(u,o),u.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){var r=e(`./support`),i=e(`./base64`),a=e(`./nodejsUtils`),o=e(`./external`);function s(e){return e}function c(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e(`setimmediate`),n.newBlob=function(e,t){n.checkSupport(`blob`);try{return new Blob([e],{type:t})}catch{try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(t)}catch{throw Error(`Bug : can't construct the Blob.`)}}};var l={stringifyByChunk:function(e,t,n){var r=[],i=0,a=e.length;if(a<=n)return String.fromCharCode.apply(null,e);for(;i<a;)t===`array`||t===`nodebuffer`?r.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+n,a)))):r.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+n,a)))),i+=n;return r.join(``)},stringifyByChar:function(e){for(var t=``,n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}}()}};function d(e){var t=65536,r=n.getTypeOf(e),i=!0;if(r===`uint8array`?i=l.applyCanBeUsed.uint8array:r===`nodebuffer`&&(i=l.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return l.stringifyByChunk(e,r,t)}catch{t=Math.floor(t/2)}return l.stringifyByChar(e)}function f(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=d;var p={};p.string={string:s,array:function(e){return c(e,Array(e.length))},arraybuffer:function(e){return p.string.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:function(e){return c(e,a.allocBuffer(e.length))}},p.array={string:d,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(e)}},p.arraybuffer={string:function(e){return d(new Uint8Array(e))},array:function(e){return f(new Uint8Array(e),Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(new Uint8Array(e))}},p.uint8array={string:d,array:function(e){return f(e,Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return a.newBufferFrom(e)}},p.nodebuffer={string:d,array:function(e){return f(e,Array(e.length))},arraybuffer:function(e){return p.nodebuffer.uint8array(e).buffer},uint8array:function(e){return f(e,new Uint8Array(e.length))},nodebuffer:s},n.transformTo=function(e,t){return t||=``,e?(n.checkSupport(e),p[n.getTypeOf(t)][e](t)):t},n.resolve=function(e){for(var t=e.split(`/`),n=[],r=0;r<t.length;r++){var i=t[r];i===`.`||i===``&&r!==0&&r!==t.length-1||(i===`..`?n.pop():n.push(i))}return n.join(`/`)},n.getTypeOf=function(e){return typeof e==`string`?`string`:Object.prototype.toString.call(e)===`[object Array]`?`array`:r.nodebuffer&&a.isBuffer(e)?`nodebuffer`:r.uint8array&&e instanceof Uint8Array?`uint8array`:r.arraybuffer&&e instanceof ArrayBuffer?`arraybuffer`:void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw Error(e+` is not supported by this platform`)},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r=``;for(n=0;n<(e||``).length;n++)r+=`\\x`+((t=e.charCodeAt(n))<16?`0`:``)+t.toString(16).toUpperCase();return r},n.delay=function(e,t,n){u((function(){e.apply(n||null,t||[])}))},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&n[t]===void 0&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,a,s,l){return o.Promise.resolve(t).then((function(e){return r.blob&&(e instanceof Blob||[`[object File]`,`[object Blob]`].indexOf(Object.prototype.toString.call(e))!==-1)&&typeof FileReader<`u`?new o.Promise((function(t,n){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(e)})):e})).then((function(t){var u=n.getTypeOf(t);return u?(u===`arraybuffer`?t=n.transformTo(`uint8array`,t):u===`string`&&(l?t=i.decode(t):a&&!0!==s&&(t=function(e){return c(e,r.uint8array?new Uint8Array(e.length):Array(e.length))}(t))),t):o.Promise.reject(Error(`Can't read the data of '`+e+`'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?`))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,n){var r=e(`./reader/readerFor`),i=e(`./utils`),a=e(`./signature`),o=e(`./zipEntry`),s=e(`./support`);function c(e){this.files=[],this.loadOptions=e}c.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw Error(`Corrupted zip or bug: unexpected signature (`+i.pretty(t)+`, expected `+i.pretty(e)+`)`)}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?`uint8array`:`array`,n=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw Error(`Multi-volumes zip are not supported`)},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(e=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw Error(`Corrupted zip or bug: expected `+this.centralDirRecords+` records in central dir, got `+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?Error(`Corrupted zip: can't find end of central directory`):Error(`Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html`);this.reader.setIndex(e);var t=e;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw Error(`Corrupted zip: can't find the ZIP64 end of central directory locator`);if(this.reader.setIndex(e),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw Error(`Corrupted zip: can't find the ZIP64 end of central directory`);this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(0<r)this.isSignature(t,a.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw Error(`Corrupted zip: missing `+Math.abs(r)+` bytes.`)},prepareReader:function(e){this.reader=r(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){var r=e(`./reader/readerFor`),i=e(`./utils`),a=e(`./compressedObject`),o=e(`./crc32`),s=e(`./utf8`),c=e(`./compressions`),l=e(`./support`);function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),this.compressedSize===-1||this.uncompressedSize===-1)throw Error(`Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)`);if((t=function(e){for(var t in c)if(Object.prototype.hasOwnProperty.call(c,t)&&c[t].magic===e)return c[t];return null}(this.compressionMethod))===null)throw Error(`Corrupted zip : compression `+i.pretty(this.compressionMethod)+` unknown (inner file : `+i.transformTo(`string`,this.fileName)+`)`);this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw Error(`Encrypted zip are not supported`);e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),e==0&&(this.dosPermissions=63&this.externalFileAttributes),e==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!==`/`||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||={};e.index+4<i;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(i)},handleUTF8:function(){var e=l.uint8array?`uint8array`:`array`;if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else{var n=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(r!==null)this.fileCommentStr=r;else{var a=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);return t.readInt(1)!==1||o(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=r(e.value);return t.readInt(1)!==1||o(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){function r(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=e(`./stream/StreamHelper`),a=e(`./stream/DataWorker`),o=e(`./utf8`),s=e(`./compressedObject`),c=e(`./stream/GenericWorker`);r.prototype={internalStream:function(e){var t=null,n=`string`;try{if(!e)throw Error(`No output type specified.`);var r=(n=e.toLowerCase())===`string`||n===`text`;n!==`binarystring`&&n!==`text`||(n=`string`),t=this._decompressWorker();var a=!this._dataBinary;a&&!r&&(t=t.pipe(new o.Utf8EncodeWorker)),!a&&r&&(t=t.pipe(new o.Utf8DecodeWorker))}catch(e){(t=new c(`error`)).error(e)}return new i(t,n,``)},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||`nodebuffer`).toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof c?this._data:new a(this._data)}};for(var l=[`asText`,`asBinary`,`asNodeBuffer`,`asUint8Array`,`asArrayBuffer`],u=function(){throw Error(`This method has been removed in JSZip 3.0, please check the upgrade guide.`)},d=0;d<l.length;d++)r.prototype[l[d]]=u;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,n){(function(e){var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var a=0,o=new i(u),s=e.document.createTextNode(``);o.observe(s,{characterData:!0}),n=function(){s.data=a=++a%2}}else if(e.setImmediate||e.MessageChannel===void 0)n=`document`in e&&`onreadystatechange`in e.document.createElement(`script`)?function(){var t=e.document.createElement(`script`);t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var c=new e.MessageChannel;c.port1.onmessage=u,n=function(){c.port2.postMessage(0)}}var l=[];function u(){var e,t;r=!0;for(var n=l.length;n;){for(t=l,l=[],e=-1;++e<n;)t[e]();n=l.length}r=!1}t.exports=function(e){l.push(e)!==1||r||n()}}).call(this,i===void 0?typeof self<`u`?self:typeof window<`u`?window:{}:i)},{}],37:[function(e,t,n){var r=e(`immediate`);function i(){}var a={},o=[`REJECTED`],s=[`FULFILLED`],c=[`PENDING`];function l(e){if(typeof e!=`function`)throw TypeError(`resolver must be a function`);this.state=c,this.queue=[],this.outcome=void 0,e!==i&&p(this,e)}function u(e,t,n){this.promise=e,typeof t==`function`&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),typeof n==`function`&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){r((function(){var r;try{r=t(n)}catch(t){return a.reject(e,t)}r===e?a.reject(e,TypeError(`Cannot resolve promise with itself`)):a.resolve(e,r)}))}function f(e){var t=e&&e.then;if(e&&(typeof e==`object`||typeof e==`function`)&&typeof t==`function`)return function(){t.apply(e,arguments)}}function p(e,t){var n=!1;function r(t){n||(n=!0,a.reject(e,t))}function i(t){n||(n=!0,a.resolve(e,t))}var o=m((function(){t(i,r)}));o.status===`error`&&r(o.value)}function m(e,t){var n={};try{n.value=e(t),n.status=`success`}catch(e){n.status=`error`,n.value=e}return n}(t.exports=l).prototype.finally=function(e){if(typeof e!=`function`)return this;var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))},l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if(typeof e!=`function`&&this.state===s||typeof t!=`function`&&this.state===o)return this;var n=new this.constructor(i);return this.state===c?this.queue.push(new u(n,e,t)):d(n,this.state===s?e:t,this.outcome),n},u.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){a.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},a.resolve=function(e,t){var n=m(f,t);if(n.status===`error`)return a.reject(e,n.value);var r=n.value;if(r)p(e,r);else{e.state=s,e.outcome=t;for(var i=-1,o=e.queue.length;++i<o;)e.queue[i].callFulfilled(t)}return e},a.reject=function(e,t){e.state=o,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},l.resolve=function(e){return e instanceof this?e:a.resolve(new this(i),e)},l.reject=function(e){var t=new this(i);return a.reject(t,e)},l.all=function(e){var t=this;if(Object.prototype.toString.call(e)!==`[object Array]`)return this.reject(TypeError(`must be an array`));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var o=Array(n),s=0,c=-1,l=new this(i);++c<n;)u(e[c],c);return l;function u(e,i){t.resolve(e).then((function(e){o[i]=e,++s!==n||r||(r=!0,a.resolve(l,o))}),(function(e){r||(r=!0,a.reject(l,e))}))}},l.race=function(e){if(Object.prototype.toString.call(e)!==`[object Array]`)return this.reject(TypeError(`must be an array`));var t=e.length,n=!1;if(!t)return this.resolve([]);for(var r,o=-1,s=new this(i);++o<t;)r=e[o],this.resolve(r).then((function(e){n||(n=!0,a.resolve(s,e))}),(function(e){n||(n=!0,a.reject(s,e))}));return s}},{immediate:36}],38:[function(e,t,n){var r={};(0,e(`./lib/utils/common`).assign)(r,e(`./lib/deflate`),e(`./lib/inflate`),e(`./lib/zlib/constants`)),t.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){var r=e(`./zlib/deflate`),i=e(`./utils/common`),a=e(`./utils/strings`),o=e(`./zlib/messages`),s=e(`./zlib/zstream`),c=Object.prototype.toString;function l(e){if(!(this instanceof l))return new l(e);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:``},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==0)throw Error(o[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var u;if(u=typeof t.dictionary==`string`?a.string2buf(t.dictionary):c.call(t.dictionary)===`[object ArrayBuffer]`?new Uint8Array(t.dictionary):t.dictionary,(n=r.deflateSetDictionary(this.strm,u))!==0)throw Error(o[n]);this._dict_set=!0}}function u(e,t){var n=new l(t);if(n.push(e,!0),n.err)throw n.msg||o[n.err];return n.result}l.prototype.push=function(e,t){var n,o,s=this.strm,l=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,typeof e==`string`?s.input=a.string2buf(e):c.call(e)===`[object ArrayBuffer]`?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(s.avail_out===0&&(s.output=new i.Buf8(l),s.next_out=0,s.avail_out=l),(n=r.deflate(s,o))!==1&&n!==0)return this.onEnd(n),!(this.ended=!0);s.avail_out!==0&&(s.avail_in!==0||o!==4&&o!==2)||(this.options.to===`string`?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||s.avail_out===0)&&n!==1);return o===4?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===0):o!==2||(this.onEnd(0),!(s.avail_out=0))},l.prototype.onData=function(e){this.chunks.push(e)},l.prototype.onEnd=function(e){e===0&&(this.options.to===`string`?this.result=this.chunks.join(``):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=l,n.deflate=u,n.deflateRaw=function(e,t){return(t||={}).raw=!0,u(e,t)},n.gzip=function(e,t){return(t||={}).gzip=!0,u(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){var r=e(`./zlib/inflate`),i=e(`./utils/common`),a=e(`./utils/strings`),o=e(`./zlib/constants`),s=e(`./zlib/messages`),c=e(`./zlib/zstream`),l=e(`./zlib/gzheader`),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:``},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==o.Z_OK)throw Error(s[n]);this.header=new l,r.inflateGetHeader(this.strm,this.header)}function f(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,c,l,d,f,p=this.strm,m=this.options.chunkSize,h=this.options.dictionary,g=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,typeof e==`string`?p.input=a.binstring2buf(e):u.call(e)===`[object ArrayBuffer]`?p.input=new Uint8Array(e):p.input=e,p.next_in=0,p.avail_in=p.input.length;do{if(p.avail_out===0&&(p.output=new i.Buf8(m),p.next_out=0,p.avail_out=m),(n=r.inflate(p,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&h&&(f=typeof h==`string`?a.string2buf(h):u.call(h)===`[object ArrayBuffer]`?new Uint8Array(h):h,n=r.inflateSetDictionary(this.strm,f)),n===o.Z_BUF_ERROR&&!0===g&&(n=o.Z_OK,g=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),!(this.ended=!0);p.next_out&&(p.avail_out!==0&&n!==o.Z_STREAM_END&&(p.avail_in!==0||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||(this.options.to===`string`?(c=a.utf8border(p.output,p.next_out),l=p.next_out-c,d=a.buf2string(p.output,c),p.next_out=l,p.avail_out=m-l,l&&i.arraySet(p.output,p.output,c,l,0),this.onData(d)):this.onData(i.shrinkBuf(p.output,p.next_out)))),p.avail_in===0&&p.avail_out===0&&(g=!0)}while((0<p.avail_in||p.avail_out===0)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(p.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===o.Z_OK&&(this.options.to===`string`?this.result=this.chunks.join(``):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=f,n.inflateRaw=function(e,t){return(t||={}).raw=!0,f(e,t)},n.ungzip=f},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){var r=typeof Uint8Array<`u`&&typeof Uint16Array<`u`&&typeof Int32Array<`u`;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if(typeof n!=`object`)throw TypeError(n+`must be non-object`);for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r,i,a,o;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),t=i=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},a={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,a))},n.setTyped(r)},{}],42:[function(e,t,n){var r=e(`./common`),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var o=new r.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function c(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n=``,o=0;o<t;o++)n+=String.fromCharCode(e[o]);return n}o[254]=o[254]=1,n.string2buf=function(e){var t,n,i,a,o,s=e.length,c=0;for(a=0;a<s;a++)(64512&(n=e.charCodeAt(a)))==55296&&a+1<s&&(64512&(i=e.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(i-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(c),a=o=0;o<c;a++)(64512&(n=e.charCodeAt(a)))==55296&&a+1<s&&(64512&(i=e.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(i-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t},n.buf2binstring=function(e){return c(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,a,s=t||e.length,l=Array(2*s);for(n=r=0;n<s;)if((i=e[n++])<128)l[r++]=i;else if(4<(a=o[i]))l[r++]=65533,n+=a-1;else{for(i&=a===2?31:a===3?15:7;1<a&&n<s;)i=i<<6|63&e[n++],a--;1<a?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return c(l,r)},n.utf8border=function(e,t){var n;for((t||=e.length)>e.length&&(t=e.length),n=t-1;0<=n&&(192&e[n])==128;)n--;return n<0||n===0?t:n+o[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){t.exports=function(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;n!==0;){for(n-=o=2e3<n?2e3:n;a=a+(i=i+t[r++]|0)|0,--o;);i%=65521,a%=65521}return i|a<<16|0}},{}],44:[function(e,t,n){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,n){var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){var r,i=e(`../utils/common`),a=e(`./trees`),o=e(`./adler32`),s=e(`./crc32`),c=e(`./messages`),l=-2,u=258,d=262,f=113;function p(e,t){return e.msg=c[t],t}function m(e){return(e<<1)-(4<e?9:0)}function h(e){for(var t=e.length;0<=--t;)e[t]=0}function g(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))}function _(e,t){a._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,g(e.strm)}function v(e,t){e.pending_buf[e.pending++]=t}function y(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function b(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-d?e.strstart-(e.w_size-d):0,l=e.window,f=e.w_mask,p=e.prev,m=e.strstart+u,h=l[a+o-1],g=l[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do if(l[(n=t)+o]===g&&l[n+o-1]===h&&l[n]===l[a]&&l[++n]===l[a+1]){a+=2,n++;do;while(l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&a<m);if(r=u-(m-a),a=m-u,o<r){if(e.match_start=t,s<=(o=r))break;h=l[a+o-1],g=l[a+o]}}while((t=p[t&f])>c&&--i!=0);return o<=e.lookahead?o:e.lookahead}function x(e){var t,n,r,a,c,l,u,f,p,m,h=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=h+(h-d)){for(i.arraySet(e.window,e.window,h,h,0),e.match_start-=h,e.strstart-=h,e.block_start-=h,t=n=e.hash_size;r=e.head[--t],e.head[t]=h<=r?r-h:0,--n;);for(t=n=h;r=e.prev[--t],e.prev[t]=h<=r?r-h:0,--n;);a+=h}if(e.strm.avail_in===0)break;if(l=e.strm,u=e.window,f=e.strstart+e.lookahead,m=void 0,(p=a)<(m=l.avail_in)&&(m=p),n=m===0?0:(l.avail_in-=m,i.arraySet(u,l.input,l.next_in,m,f),l.state.wrap===1?l.adler=o(l.adler,u,m,f):l.state.wrap===2&&(l.adler=s(l.adler,u,m,f)),l.next_in+=m,l.total_in+=m,m),e.lookahead+=n,e.lookahead+e.insert>=3)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+3-1])&e.hash_mask,e.prev[c&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=c,c++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<d&&e.strm.avail_in!==0)}function S(e,t){for(var n,r;;){if(e.lookahead<d){if(x(e),e.lookahead<d&&t===0)return 1;if(e.lookahead===0)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-d&&(e.match_length=b(e,n)),e.match_length>=3)if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,--e.match_length!=0;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(_(e,!1),e.strm.avail_out===0))return 1}return e.insert=e.strstart<2?e.strstart:2,t===4?(_(e,!0),e.strm.avail_out===0?3:4):e.last_lit&&(_(e,!1),e.strm.avail_out===0)?1:2}function C(e,t){for(var n,r,i;;){if(e.lookahead<d){if(x(e),e.lookahead<d&&t===0)return 1;if(e.lookahead===0)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-d&&(e.match_length=b(e,n),e.match_length<=5&&(e.strategy===1||e.match_length===3&&4096<e.strstart-e.match_start)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-3,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),--e.prev_length!=0;);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(_(e,!1),e.strm.avail_out===0))return 1}else if(e.match_available){if((r=a._tr_tally(e,0,e.window[e.strstart-1]))&&_(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&=(r=a._tr_tally(e,0,e.window[e.strstart-1]),0),e.insert=e.strstart<2?e.strstart:2,t===4?(_(e,!0),e.strm.avail_out===0?3:4):e.last_lit&&(_(e,!1),e.strm.avail_out===0)?1:2}function w(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function T(){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 i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),h(this.dyn_ltree),h(this.dyn_dtree),h(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),h(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),h(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 E(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:f,e.adler=t.wrap===2?0:1,t.last_flush=0,a._tr_init(t),0):p(e,l)}function D(e){var t=E(e);return t===0&&function(e){e.window_size=2*e.w_size,h(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0}(e.state),t}function O(e,t,n,r,a,o){if(!e)return l;var s=1;if(t===-1&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),a<1||9<a||n!==8||r<8||15<r||t<0||9<t||o<0||4<o)return p(e,l);r===8&&(r=9);var c=new T;return(e.state=c).strm=e,c.wrap=s,c.gzhead=null,c.w_bits=r,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=a+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+3-1)/3),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<a+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=o,c.method=n,D(e)}r=[new w(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(x(e),e.lookahead===0&&t===0)return 1;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((e.strstart===0||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,_(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-d&&(_(e,!1),e.strm.avail_out===0))return 1}return e.insert=0,t===4?(_(e,!0),e.strm.avail_out===0?3:4):(e.strstart>e.block_start&&(_(e,!1),e.strm.avail_out),1)})),new w(4,4,8,4,S),new w(4,5,16,8,S),new w(4,6,32,32,S),new w(4,4,16,16,C),new w(8,16,32,32,C),new w(8,16,128,128,C),new w(8,32,128,256,C),new w(32,128,258,1024,C),new w(32,258,258,4096,C)],n.deflateInit=function(e,t){return O(e,t,8,15,8,0)},n.deflateInit2=O,n.deflateReset=D,n.deflateResetKeep=E,n.deflateSetHeader=function(e,t){return e&&e.state&&e.state.wrap===2?(e.state.gzhead=t,0):l},n.deflate=function(e,t){var n,i,o,c;if(!e||!e.state||5<t||t<0)return e?p(e,l):l;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===666&&t!==4)return p(e,e.avail_out===0?-5:l);if(i.strm=e,n=i.last_flush,i.last_flush=t,i.status===42)if(i.wrap===2)e.adler=0,v(i,31),v(i,139),v(i,8),i.gzhead?(v(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),v(i,255&i.gzhead.time),v(i,i.gzhead.time>>8&255),v(i,i.gzhead.time>>16&255),v(i,i.gzhead.time>>24&255),v(i,i.level===9?2:2<=i.strategy||i.level<2?4:0),v(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(v(i,255&i.gzhead.extra.length),v(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(v(i,0),v(i,0),v(i,0),v(i,0),v(i,0),v(i,i.level===9?2:2<=i.strategy||i.level<2?4:0),v(i,3),i.status=f);else{var d=8+(i.w_bits-8<<4)<<8;d|=(2<=i.strategy||i.level<2?0:i.level<6?1:i.level===6?2:3)<<6,i.strstart!==0&&(d|=32),d+=31-d%31,i.status=f,y(i,d),i.strstart!==0&&(y(i,e.adler>>>16),y(i,65535&e.adler)),e.adler=1}if(i.status===69)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),g(e),o=i.pending,i.pending!==i.pending_buf_size));)v(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(i.status===73)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),g(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,v(i,c)}while(c!==0);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),c===0&&(i.gzindex=0,i.status=91)}else i.status=91;if(i.status===91)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),g(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,v(i,c)}while(c!==0);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),c===0&&(i.status=103)}else i.status=103;if(i.status===103&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&g(e),i.pending+2<=i.pending_buf_size&&(v(i,255&e.adler),v(i,e.adler>>8&255),e.adler=0,i.status=f)):i.status=f),i.pending!==0){if(g(e),e.avail_out===0)return i.last_flush=-1,0}else if(e.avail_in===0&&m(t)<=m(n)&&t!==4)return p(e,-5);if(i.status===666&&e.avail_in!==0)return p(e,-5);if(e.avail_in!==0||i.lookahead!==0||t!==0&&i.status!==666){var b=i.strategy===2?function(e,t){for(var n;;){if(e.lookahead===0&&(x(e),e.lookahead===0)){if(t===0)return 1;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(_(e,!1),e.strm.avail_out===0))return 1}return e.insert=0,t===4?(_(e,!0),e.strm.avail_out===0?3:4):e.last_lit&&(_(e,!1),e.strm.avail_out===0)?1:2}(i,t):i.strategy===3?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=u){if(x(e),e.lookahead<=u&&t===0)return 1;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=3&&0<e.strstart&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+u;do;while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);e.match_length=u-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=a._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(_(e,!1),e.strm.avail_out===0))return 1}return e.insert=0,t===4?(_(e,!0),e.strm.avail_out===0?3:4):e.last_lit&&(_(e,!1),e.strm.avail_out===0)?1:2}(i,t):r[i.level].func(i,t);if(b!==3&&b!==4||(i.status=666),b===1||b===3)return e.avail_out===0&&(i.last_flush=-1),0;if(b===2&&(t===1?a._tr_align(i):t!==5&&(a._tr_stored_block(i,0,0,!1),t===3&&(h(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),g(e),e.avail_out===0))return i.last_flush=-1,0}return t===4?i.wrap<=0?1:(i.wrap===2?(v(i,255&e.adler),v(i,e.adler>>8&255),v(i,e.adler>>16&255),v(i,e.adler>>24&255),v(i,255&e.total_in),v(i,e.total_in>>8&255),v(i,e.total_in>>16&255),v(i,e.total_in>>24&255)):(y(i,e.adler>>>16),y(i,65535&e.adler)),g(e),0<i.wrap&&(i.wrap=-i.wrap),i.pending===0?1:0):0},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==42&&t!==69&&t!==73&&t!==91&&t!==103&&t!==f&&t!==666?p(e,l):(e.state=null,t===f?p(e,-3):0):l},n.deflateSetDictionary=function(e,t){var n,r,a,s,c,u,d,f,p=t.length;if(!e||!e.state||(s=(n=e.state).wrap)===2||s===1&&n.status!==42||n.lookahead)return l;for(s===1&&(e.adler=o(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(s===0&&(h(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new i.Buf8(n.w_size),i.arraySet(f,t,p-n.w_size,n.w_size,0),t=f,p=n.w_size),c=e.avail_in,u=e.next_in,d=e.input,e.avail_in=p,e.next_in=0,e.input=t,x(n);n.lookahead>=3;){for(r=n.strstart,a=n.lookahead-2;n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--a;);n.strstart=r,n.lookahead=2,x(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=u,e.input=d,e.avail_in=c,n.wrap=s,0},n.deflateInfo=`pako deflate (from Nodeca project)`},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=``,this.comment=``,this.hcrc=0,this.done=!1}},{}],48:[function(e,t,n){t.exports=function(e,t){var n=e.state,r=e.next_in,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T=e.input,E;i=r+(e.avail_in-5),a=e.next_out,E=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),c=n.dmax,l=n.wsize,u=n.whave,d=n.wnext,f=n.window,p=n.hold,m=n.bits,h=n.lencode,g=n.distcode,_=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;e:do{m<15&&(p+=T[r++]<<m,m+=8,p+=T[r++]<<m,m+=8),y=h[p&_];t:for(;;){if(p>>>=b=y>>>24,m-=b,(b=y>>>16&255)==0)E[a++]=65535&y;else{if(!(16&b)){if(!(64&b)){y=h[(65535&y)+(p&(1<<b)-1)];continue t}if(32&b){n.mode=12;break e}e.msg=`invalid literal/length code`,n.mode=30;break e}x=65535&y,(b&=15)&&(m<b&&(p+=T[r++]<<m,m+=8),x+=p&(1<<b)-1,p>>>=b,m-=b),m<15&&(p+=T[r++]<<m,m+=8,p+=T[r++]<<m,m+=8),y=g[p&v];r:for(;;){if(p>>>=b=y>>>24,m-=b,!(16&(b=y>>>16&255))){if(!(64&b)){y=g[(65535&y)+(p&(1<<b)-1)];continue r}e.msg=`invalid distance code`,n.mode=30;break e}if(S=65535&y,m<(b&=15)&&(p+=T[r++]<<m,(m+=8)<b&&(p+=T[r++]<<m,m+=8)),c<(S+=p&(1<<b)-1)){e.msg=`invalid distance too far back`,n.mode=30;break e}if(p>>>=b,m-=b,(b=a-o)<S){if(u<(b=S-b)&&n.sane){e.msg=`invalid distance too far back`,n.mode=30;break e}if(w=f,(C=0)===d){if(C+=l-b,b<x){for(x-=b;E[a++]=f[C++],--b;);C=a-S,w=E}}else if(d<b){if(C+=l+d-b,(b-=d)<x){for(x-=b;E[a++]=f[C++],--b;);if(C=0,d<x){for(x-=b=d;E[a++]=f[C++],--b;);C=a-S,w=E}}}else if(C+=d-b,b<x){for(x-=b;E[a++]=f[C++],--b;);C=a-S,w=E}for(;2<x;)E[a++]=w[C++],E[a++]=w[C++],E[a++]=w[C++],x-=3;x&&(E[a++]=w[C++],1<x&&(E[a++]=w[C++]))}else{for(C=a-S;E[a++]=E[C++],E[a++]=E[C++],E[a++]=E[C++],2<(x-=3););x&&(E[a++]=E[C++],1<x&&(E[a++]=E[C++]))}break}}break}}while(r<i&&a<s);r-=x=m>>3,p&=(1<<(m-=x<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=p,n.bits=m}},{}],49:[function(e,t,n){var r=e(`../utils/common`),i=e(`./adler32`),a=e(`./crc32`),o=e(`./inffast`),s=e(`./inftrees`),c=-2;function l(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function u(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function d(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg=``,t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):c}function f(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,d(e)):c}function p(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?c:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,f(e))):c}function m(e,t){var n,r;return e?(r=new u,(e.state=r).window=null,(n=p(e,t))!==0&&(e.state=null),n):c}var h,g,_=!0;function v(e){if(_){var t;for(h=new r.Buf32(512),g=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,h,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,g,0,e.work,{bits:5}),_=!1}e.lencode=h,e.lenbits=9,e.distcode=g,e.distbits=5}function y(e,t,n,i){var a,o=e.state;return o.window===null&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),i>=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i<(a=o.wsize-o.wnext)&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}n.inflateReset=f,n.inflateReset2=p,n.inflateResetKeep=d,n.inflateInit=function(e){return m(e,15)},n.inflateInit2=m,n.inflate=function(e,t){var n,u,d,f,p,m,h,g,_,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F=0,I=new r.Buf8(4),ee=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return c;(n=e.state).mode===12&&(n.mode=13),p=e.next_out,d=e.output,h=e.avail_out,f=e.next_in,u=e.input,m=e.avail_in,g=n.hold,_=n.bits,b=m,x=h,M=0;e:for(;;)switch(n.mode){case 1:if(n.wrap===0){n.mode=13;break}for(;_<16;){if(m===0)break e;m--,g+=u[f++]<<_,_+=8}if(2&n.wrap&&g===35615){I[n.check=0]=255&g,I[1]=g>>>8&255,n.check=a(n.check,I,2,0),_=g=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&g)<<8)+(g>>8))%31){e.msg=`incorrect header check`,n.mode=30;break}if((15&g)!=8){e.msg=`unknown compression method`,n.mode=30;break}if(_-=4,j=8+(15&(g>>>=4)),n.wbits===0)n.wbits=j;else if(j>n.wbits){e.msg=`invalid window size`,n.mode=30;break}n.dmax=1<<j,e.adler=n.check=1,n.mode=512&g?10:12,_=g=0;break;case 2:for(;_<16;){if(m===0)break e;m--,g+=u[f++]<<_,_+=8}if(n.flags=g,(255&n.flags)!=8){e.msg=`unknown compression method`,n.mode=30;break}if(57344&n.flags){e.msg=`unknown header flags set`,n.mode=30;break}n.head&&(n.head.text=g>>8&1),512&n.flags&&(I[0]=255&g,I[1]=g>>>8&255,n.check=a(n.check,I,2,0)),_=g=0,n.mode=3;case 3:for(;_<32;){if(m===0)break e;m--,g+=u[f++]<<_,_+=8}n.head&&(n.head.time=g),512&n.flags&&(I[0]=255&g,I[1]=g>>>8&255,I[2]=g>>>16&255,I[3]=g>>>24&255,n.check=a(n.check,I,4,0)),_=g=0,n.mode=4;case 4:for(;_<16;){if(m===0)break e;m--,g+=u[f++]<<_,_+=8}n.head&&(n.head.xflags=255&g,n.head.os=g>>8),512&n.flags&&(I[0]=255&g,I[1]=g>>>8&255,n.check=a(n.check,I,2,0)),_=g=0,n.mode=5;case 5:if(1024&n.flags){for(;_<16;){if(m===0)break e;m--,g+=u[f++]<<_,_+=8}n.length=g,n.head&&(n.head.extra_len=g),512&n.flags&&(I[0]=255&g,I[1]=g>>>8&255,n.check=a(n.check,I,2,0)),_=g=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(m<(S=n.length)&&(S=m),S&&(n.head&&(j=n.head.extra_len-n.length,n.head.extra||(n.head.extra=Array(n.head.extra_len)),r.arraySet(n.head.extra,u,f,S,j)),512&n.flags&&(n.check=a(n.check,u,S,f)),m-=S,f+=S,n.length-=S),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(m===0)break e;for(S=0;j=u[f+ S++],n.head&&j&&n.length<65536&&(n.head.name+=String.fromCharCode(j)),j&&S<m;);if(512&n.flags&&(n.check=a(n.check,u,S,f)),m-=S,f+=S,j)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(m===0)break e;for(S=0;j=u[f+ S++],n.head&&j&&n.length<65536&&(n.head.comment+=String.fromCharCode(j)),j&&S<m;);if(512&n.flags&&(n.check=a(n.check,u,S,f)),m-=S,f+=S,j)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;_<16;){if(m===0)break e;m--,g+=u[f++]<<_,_+=8}if(g!==(65535&n.check)){e.msg=`header crc mismatch`,n.mode=30;break}_=g=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;_<32;){if(m===0)break e;m--,g+=u[f++]<<_,_+=8}e.adler=n.check=l(g),_=g=0,n.mode=11;case 11:if(n.havedict===0)return e.next_out=p,e.avail_out=h,e.next_in=f,e.avail_in=m,n.hold=g,n.bits=_,2;e.adler=n.check=1,n.mode=12;case 12:if(t===5||t===6)break e;case 13:if(n.last){g>>>=7&_,_-=7&_,n.mode=27;break}for(;_<3;){if(m===0)break e;m--,g+=u[f++]<<_,_+=8}switch(n.last=1&g,--_,3&(g>>>=1)){case 0:n.mode=14;break;case 1:if(v(n),n.mode=20,t!==6)break;g>>>=2,_-=2;break e;case 2:n.mode=17;break;case 3:e.msg=`invalid block type`,n.mode=30}g>>>=2,_-=2;break;case 14:for(g>>>=7&_,_-=7&_;_<32;){if(m===0)break e;m--,g+=u[f++]<<_,_+=8}if((65535&g)!=(g>>>16^65535)){e.msg=`invalid stored block lengths`,n.mode=30;break}if(n.length=65535&g,_=g=0,n.mode=15,t===6)break e;case 15:n.mode=16;case 16:if(S=n.length){if(m<S&&(S=m),h<S&&(S=h),S===0)break e;r.arraySet(d,u,f,S,p),m-=S,f+=S,h-=S,p+=S,n.length-=S;break}n.mode=12;break;case 17:for(;_<14;){if(m===0)break e;m--,g+=u[f++]<<_,_+=8}if(n.nlen=257+(31&g),g>>>=5,_-=5,n.ndist=1+(31&g),g>>>=5,_-=5,n.ncode=4+(15&g),g>>>=4,_-=4,286<n.nlen||30<n.ndist){e.msg=`too many length or distance symbols`,n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;_<3;){if(m===0)break e;m--,g+=u[f++]<<_,_+=8}n.lens[ee[n.have++]]=7&g,g>>>=3,_-=3}for(;n.have<19;)n.lens[ee[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,N={bits:n.lenbits},M=s(0,n.lens,0,19,n.lencode,0,n.work,N),n.lenbits=N.bits,M){e.msg=`invalid code lengths set`,n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;E=(F=n.lencode[g&(1<<n.lenbits)-1])>>>16&255,D=65535&F,!((T=F>>>24)<=_);){if(m===0)break e;m--,g+=u[f++]<<_,_+=8}if(D<16)g>>>=T,_-=T,n.lens[n.have++]=D;else{if(D===16){for(P=T+2;_<P;){if(m===0)break e;m--,g+=u[f++]<<_,_+=8}if(g>>>=T,_-=T,n.have===0){e.msg=`invalid bit length repeat`,n.mode=30;break}j=n.lens[n.have-1],S=3+(3&g),g>>>=2,_-=2}else if(D===17){for(P=T+3;_<P;){if(m===0)break e;m--,g+=u[f++]<<_,_+=8}_-=T,j=0,S=3+(7&(g>>>=T)),g>>>=3,_-=3}else{for(P=T+7;_<P;){if(m===0)break e;m--,g+=u[f++]<<_,_+=8}_-=T,j=0,S=11+(127&(g>>>=T)),g>>>=7,_-=7}if(n.have+S>n.nlen+n.ndist){e.msg=`invalid bit length repeat`,n.mode=30;break}for(;S--;)n.lens[n.have++]=j}}if(n.mode===30)break;if(n.lens[256]===0){e.msg=`invalid code -- missing end-of-block`,n.mode=30;break}if(n.lenbits=9,N={bits:n.lenbits},M=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,N),n.lenbits=N.bits,M){e.msg=`invalid literal/lengths set`,n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,N={bits:n.distbits},M=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,N),n.distbits=N.bits,M){e.msg=`invalid distances set`,n.mode=30;break}if(n.mode=20,t===6)break e;case 20:n.mode=21;case 21:if(6<=m&&258<=h){e.next_out=p,e.avail_out=h,e.next_in=f,e.avail_in=m,n.hold=g,n.bits=_,o(e,x),p=e.next_out,d=e.output,h=e.avail_out,f=e.next_in,u=e.input,m=e.avail_in,g=n.hold,_=n.bits,n.mode===12&&(n.back=-1);break}for(n.back=0;E=(F=n.lencode[g&(1<<n.lenbits)-1])>>>16&255,D=65535&F,!((T=F>>>24)<=_);){if(m===0)break e;m--,g+=u[f++]<<_,_+=8}if(E&&!(240&E)){for(O=T,k=E,A=D;E=(F=n.lencode[A+((g&(1<<O+k)-1)>>O)])>>>16&255,D=65535&F,!(O+(T=F>>>24)<=_);){if(m===0)break e;m--,g+=u[f++]<<_,_+=8}g>>>=O,_-=O,n.back+=O}if(g>>>=T,_-=T,n.back+=T,n.length=D,E===0){n.mode=26;break}if(32&E){n.back=-1,n.mode=12;break}if(64&E){e.msg=`invalid literal/length code`,n.mode=30;break}n.extra=15&E,n.mode=22;case 22:if(n.extra){for(P=n.extra;_<P;){if(m===0)break e;m--,g+=u[f++]<<_,_+=8}n.length+=g&(1<<n.extra)-1,g>>>=n.extra,_-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;E=(F=n.distcode[g&(1<<n.distbits)-1])>>>16&255,D=65535&F,!((T=F>>>24)<=_);){if(m===0)break e;m--,g+=u[f++]<<_,_+=8}if(!(240&E)){for(O=T,k=E,A=D;E=(F=n.distcode[A+((g&(1<<O+k)-1)>>O)])>>>16&255,D=65535&F,!(O+(T=F>>>24)<=_);){if(m===0)break e;m--,g+=u[f++]<<_,_+=8}g>>>=O,_-=O,n.back+=O}if(g>>>=T,_-=T,n.back+=T,64&E){e.msg=`invalid distance code`,n.mode=30;break}n.offset=D,n.extra=15&E,n.mode=24;case 24:if(n.extra){for(P=n.extra;_<P;){if(m===0)break e;m--,g+=u[f++]<<_,_+=8}n.offset+=g&(1<<n.extra)-1,g>>>=n.extra,_-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg=`invalid distance too far back`,n.mode=30;break}n.mode=25;case 25:if(h===0)break e;if(S=x-h,n.offset>S){if((S=n.offset-S)>n.whave&&n.sane){e.msg=`invalid distance too far back`,n.mode=30;break}C=S>n.wnext?(S-=n.wnext,n.wsize-S):n.wnext-S,S>n.length&&(S=n.length),w=n.window}else w=d,C=p-n.offset,S=n.length;for(h<S&&(S=h),h-=S,n.length-=S;d[p++]=w[C++],--S;);n.length===0&&(n.mode=21);break;case 26:if(h===0)break e;d[p++]=n.length,h--,n.mode=21;break;case 27:if(n.wrap){for(;_<32;){if(m===0)break e;m--,g|=u[f++]<<_,_+=8}if(x-=h,e.total_out+=x,n.total+=x,x&&(e.adler=n.check=n.flags?a(n.check,d,x,p-x):i(n.check,d,x,p-x)),x=h,(n.flags?g:l(g))!==n.check){e.msg=`incorrect data check`,n.mode=30;break}_=g=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;_<32;){if(m===0)break e;m--,g+=u[f++]<<_,_+=8}if(g!==(4294967295&n.total)){e.msg=`incorrect length check`,n.mode=30;break}_=g=0}n.mode=29;case 29:M=1;break e;case 30:M=-3;break e;case 31:return-4;case 32:default:return c}return e.next_out=p,e.avail_out=h,e.next_in=f,e.avail_in=m,n.hold=g,n.bits=_,(n.wsize||x!==e.avail_out&&n.mode<30&&(n.mode<27||t!==4))&&y(e,e.output,e.next_out,x-e.avail_out)?(n.mode=31,-4):(b-=e.avail_in,x-=e.avail_out,e.total_in+=b,e.total_out+=x,n.total+=x,n.wrap&&x&&(e.adler=n.check=n.flags?a(n.check,d,x,e.next_out-x):i(n.check,d,x,e.next_out-x)),e.data_type=n.bits+(n.last?64:0)+(n.mode===12?128:0)+(n.mode===20||n.mode===15?256:0),(b==0&&x===0||t===4)&&M===0&&(M=-5),M)},n.inflateEnd=function(e){if(!e||!e.state)return c;var t=e.state;return t.window&&=null,e.state=null,0},n.inflateGetHeader=function(e,t){var n;return e&&e.state&&2&(n=e.state).wrap?((n.head=t).done=!1,0):c},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?(n=e.state).wrap!==0&&n.mode!==11?c:n.mode===11&&i(1,t,r,0)!==n.check?-3:y(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,0):c},n.inflateInfo=`pako inflate (from Nodeca project)`},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){var r=e(`../utils/common`),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,c,l,u,d,f){var p,m,h,g,_,v,y,b,x,S=f.bits,C=0,w=0,T=0,E=0,D=0,O=0,k=0,A=0,j=0,M=0,N=null,P=0,F=new r.Buf16(16),I=new r.Buf16(16),ee=null,L=0;for(C=0;C<=15;C++)F[C]=0;for(w=0;w<c;w++)F[t[n+w]]++;for(D=S,E=15;1<=E&&F[E]===0;E--);if(E<D&&(D=E),E===0)return l[u++]=20971520,l[u++]=20971520,f.bits=1,0;for(T=1;T<E&&F[T]===0;T++);for(D<T&&(D=T),C=A=1;C<=15;C++)if(A<<=1,(A-=F[C])<0)return-1;if(0<A&&(e===0||E!==1))return-1;for(I[1]=0,C=1;C<15;C++)I[C+1]=I[C]+F[C];for(w=0;w<c;w++)t[n+w]!==0&&(d[I[t[n+w]]++]=w);if(v=e===0?(N=ee=d,19):e===1?(N=i,P-=257,ee=a,L-=257,256):(N=o,ee=s,-1),C=T,_=u,k=w=M=0,h=-1,g=(j=1<<(O=D))-1,e===1&&852<j||e===2&&592<j)return 1;for(;;){for(y=C-k,x=d[w]<v?(b=0,d[w]):d[w]>v?(b=ee[L+d[w]],N[P+d[w]]):(b=96,0),p=1<<C-k,T=m=1<<O;l[_+(M>>k)+(m-=p)]=y<<24|b<<16|x|0,m!==0;);for(p=1<<C-1;M&p;)p>>=1;if(p===0?M=0:(M&=p-1,M+=p),w++,--F[C]==0){if(C===E)break;C=t[n+d[w]]}if(D<C&&(M&g)!==h){for(k===0&&(k=D),_+=T,A=1<<(O=C-k);O+k<E&&!((A-=F[O+k])<=0);)O++,A<<=1;if(j+=1<<O,e===1&&852<j||e===2&&592<j)return 1;l[h=M&g]=D<<24|O<<16|_-u|0}}return M!==0&&(l[_+M]=C-k<<24|4194304),f.bits=D,0}},{"../utils/common":41}],51:[function(e,t,n){t.exports={2:`need dictionary`,1:`stream end`,0:``,"-1":`file error`,"-2":`stream error`,"-3":`data error`,"-4":`insufficient memory`,"-5":`buffer error`,"-6":`incompatible version`}},{}],52:[function(e,t,n){var r=e(`../utils/common`);function i(e){for(var t=e.length;0<=--t;)e[t]=0}var a=256,o=286,s=30,c=15,l=[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],u=[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],d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],f=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p=Array(576);i(p);var m=Array(60);i(m);var h=Array(512);i(h);var g=Array(256);i(g);var _=Array(29);i(_);var v,y,b,x=Array(s);function S(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function C(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function w(e){return e<256?h[e]:h[256+(e>>>7)]}function T(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function E(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,T(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function D(e,t,n){E(e,n[2*t],n[2*t+1])}function O(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function k(e,t,n){var r,i,a=Array(16),o=0;for(r=1;r<=c;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];s!==0&&(e[2*i]=O(a[s]++,s))}}function A(e){var t;for(t=0;t<o;t++)e.dyn_ltree[2*t]=0;for(t=0;t<s;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function j(e){8<e.bi_valid?T(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function M(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function N(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&M(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!M(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function P(e,t,n){var r,i,o,s,c=0;if(e.last_lit!==0)for(;r=e.pending_buf[e.d_buf+2*c]<<8|e.pending_buf[e.d_buf+2*c+1],i=e.pending_buf[e.l_buf+c],c++,r===0?D(e,i,t):(D(e,(o=g[i])+a+1,t),(s=l[o])!==0&&E(e,i-=_[o],s),D(e,o=w(--r),n),(s=u[o])!==0&&E(e,r-=x[o],s)),c<e.last_lit;);D(e,256,t)}function F(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<l;n++)a[2*n]===0?a[2*n+1]=0:(e.heap[++e.heap_len]=u=n,e.depth[n]=0);for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=u,n=e.heap_len>>1;1<=n;n--)N(e,a,n);for(i=l;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],N(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,N(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,l=t.dyn_tree,u=t.max_code,d=t.stat_desc.static_tree,f=t.stat_desc.has_stree,p=t.stat_desc.extra_bits,m=t.stat_desc.extra_base,h=t.stat_desc.max_length,g=0;for(a=0;a<=c;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)h<(a=l[2*l[2*(r=e.heap[n])+1]+1]+1)&&(a=h,g++),l[2*r+1]=a,u<r||(e.bl_count[a]++,o=0,m<=r&&(o=p[r-m]),s=l[2*r],e.opt_len+=s*(a+o),f&&(e.static_len+=s*(d[2*r+1]+o)));if(g!==0){do{for(a=h-1;e.bl_count[a]===0;)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[h]--,g-=2}while(0<g);for(a=h;a!==0;a--)for(r=e.bl_count[a];r!==0;)u<(i=e.heap[--n])||(l[2*i+1]!==a&&(e.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),r--)}}(e,t),k(a,u,e.bl_count)}function I(e,t,n){var r,i,a=-1,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<c&&i===o||(s<l?e.bl_tree[2*i]+=s:i===0?s<=10?e.bl_tree[34]++:e.bl_tree[36]++:(i!==a&&e.bl_tree[2*i]++,e.bl_tree[32]++),a=i,l=(s=0)===o?(c=138,3):i===o?(c=6,3):(c=7,4))}function ee(e,t,n){var r,i,a=-1,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<c&&i===o)){if(s<l)for(;D(e,i,e.bl_tree),--s!=0;);else i===0?s<=10?(D(e,17,e.bl_tree),E(e,s-3,3)):(D(e,18,e.bl_tree),E(e,s-11,7)):(i!==a&&(D(e,i,e.bl_tree),s--),D(e,16,e.bl_tree),E(e,s-3,2));a=i,l=(s=0)===o?(c=138,3):i===o?(c=6,3):(c=7,4)}}i(x);var L=!1;function R(e,t,n,i){E(e,0+(i?1:0),3),function(e,t,n,i){j(e),T(e,n),T(e,~n),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}n._tr_init=function(e){L||=(function(){var e,t,n,r,i,a=Array(16);for(r=n=0;r<28;r++)for(_[r]=n,e=0;e<1<<l[r];e++)g[n++]=r;for(g[n-1]=r,r=i=0;r<16;r++)for(x[r]=i,e=0;e<1<<u[r];e++)h[i++]=r;for(i>>=7;r<s;r++)for(x[r]=i<<7,e=0;e<1<<u[r]-7;e++)h[256+ i++]=r;for(t=0;t<=c;t++)a[t]=0;for(e=0;e<=143;)p[2*e+1]=8,e++,a[8]++;for(;e<=255;)p[2*e+1]=9,e++,a[9]++;for(;e<=279;)p[2*e+1]=7,e++,a[7]++;for(;e<=287;)p[2*e+1]=8,e++,a[8]++;for(k(p,287,a),e=0;e<s;e++)m[2*e+1]=5,m[2*e]=O(e,5);v=new S(p,l,257,o,c),y=new S(m,u,0,s,c),b=new S([],d,0,19,7)}(),!0),e.l_desc=new C(e.dyn_ltree,v),e.d_desc=new C(e.dyn_dtree,y),e.bl_desc=new C(e.bl_tree,b),e.bi_buf=0,e.bi_valid=0,A(e)},n._tr_stored_block=R,n._tr_flush_block=function(e,t,n,r){var i,o,s=0;0<e.level?(e.strm.data_type===2&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&e.dyn_ltree[2*t]!==0)return 0;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return 1;for(t=32;t<a;t++)if(e.dyn_ltree[2*t]!==0)return 1;return 0}(e)),F(e,e.l_desc),F(e,e.d_desc),s=function(e){var t;for(I(e,e.dyn_ltree,e.l_desc.max_code),I(e,e.dyn_dtree,e.d_desc.max_code),F(e,e.bl_desc),t=18;3<=t&&e.bl_tree[2*f[t]+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&t!==-1?R(e,t,n,r):e.strategy===4||o===i?(E(e,2+(r?1:0),3),P(e,p,m)):(E(e,4+(r?1:0),3),function(e,t,n,r){var i;for(E(e,t-257,5),E(e,n-1,5),E(e,r-4,4),i=0;i<r;i++)E(e,e.bl_tree[2*f[i]+1],3);ee(e,e.dyn_ltree,t-1),ee(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),P(e,e.dyn_ltree,e.dyn_dtree)),A(e),r&&j(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,t===0?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(g[n]+a+1)]++,e.dyn_dtree[2*w(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){E(e,2,3),D(e,256,p),function(e){e.bi_valid===16?(T(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,n){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=``,this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,n){(function(e){(function(e,t){if(!e.setImmediate){var n,i,a,o,s=1,c={},l=!1,u=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,n={}.toString.call(e.process)===`[object process]`?function(e){r.nextTick((function(){p(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage(``,`*`),e.onmessage=n,t}}()?(o=`setImmediate$`+Math.random()+`$`,e.addEventListener?e.addEventListener(`message`,m,!1):e.attachEvent(`onmessage`,m),function(t){e.postMessage(o+t,`*`)}):e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){p(e.data)},function(e){a.port2.postMessage(e)}):u&&`onreadystatechange`in u.createElement(`script`)?(i=u.documentElement,function(e){var t=u.createElement(`script`);t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):function(e){setTimeout(p,0,e)},d.setImmediate=function(e){typeof e!=`function`&&(e=Function(``+e));for(var t=Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];return c[s]={callback:e,args:t},n(s),s++},d.clearImmediate=f}function f(e){delete c[e]}function p(e){if(l)setTimeout(p,0,e);else{var t=c[e];if(t){l=!0;try{(function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}})(t)}finally{f(e),l=!1}}}}function m(t){t.source===e&&typeof t.data==`string`&&t.data.indexOf(o)===0&&p(+t.data.slice(o.length))}})(typeof self>`u`?e===void 0?this:e:self)}).call(this,i===void 0?typeof self<`u`?self:typeof window<`u`?window:{}:i)},{}]},{},[10])(10)}))}).call(this)}).call(this,e(`_process`),typeof global<`u`?global: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,t,n){(function(e){(function(){var n=/[\\^$.*+?()[\]{}|]/g,r=RegExp(n.source),i=typeof e==`object`&&e&&e.Object===Object&&e,a=typeof self==`object`&&self&&self.Object===Object&&self,o=i||a||Function(`return this`)(),s=Object.prototype.toString,c=o.Symbol,l=c?c.prototype:void 0,u=l?l.toString:void 0;function d(e){if(typeof e==`string`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&s.call(e)==`[object Symbol]`}(e))return u?u.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}t.exports=function(e){var t;return(e=(t=e)==null?``:d(t))&&r.test(e)?e.replace(n,`\\$&`):e}}).call(this)}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{}],443:[function(e,t,n){(function(e){(function(){var r=`[object Arguments]`,i=`[object Map]`,a=`[object Object]`,o=`[object Set]`,s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,l=/^\./,u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,p=/^(?:0|[1-9]\d*)$/,m={};m[`[object Float32Array]`]=m[`[object Float64Array]`]=m[`[object Int8Array]`]=m[`[object Int16Array]`]=m[`[object Int32Array]`]=m[`[object Uint8Array]`]=m[`[object Uint8ClampedArray]`]=m[`[object Uint16Array]`]=m[`[object Uint32Array]`]=!0,m[r]=m[`[object Array]`]=m[`[object ArrayBuffer]`]=m[`[object Boolean]`]=m[`[object DataView]`]=m[`[object Date]`]=m[`[object Error]`]=m[`[object Function]`]=m[i]=m[`[object Number]`]=m[a]=m[`[object RegExp]`]=m[o]=m[`[object String]`]=m[`[object WeakMap]`]=!1;var h=typeof e==`object`&&e&&e.Object===Object&&e,g=typeof self==`object`&&self&&self.Object===Object&&self,_=h||g||Function(`return this`)(),v=typeof n==`object`&&n&&!n.nodeType&&n,y=v&&typeof t==`object`&&t&&!t.nodeType&&t,b=y&&y.exports===v&&h.process,x=function(){try{return b&&b.binding(`util`)}catch{}}(),S=x&&x.isTypedArray;function C(e,t,n,r){for(var i=-1,a=e?e.length:0;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function w(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function T(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function E(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function D(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var O,k,A,j=Array.prototype,M=Function.prototype,N=Object.prototype,P=_[`__core-js_shared__`],F=(O=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||``))?`Symbol(src)_1.`+O:``,I=M.toString,ee=N.hasOwnProperty,L=N.toString,R=RegExp(`^`+I.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),z=_.Symbol,B=_.Uint8Array,V=N.propertyIsEnumerable,H=j.splice,U=(k=Object.keys,A=Object,function(e){return k(A(e))}),W=Ee(_,`DataView`),te=Ee(_,`Map`),ne=Ee(_,`Promise`),G=Ee(_,`Set`),re=Ee(_,`WeakMap`),ie=Ee(Object,`create`),K=Pe(W),q=Pe(te),J=Pe(ne),Y=Pe(G),ae=Pe(re),oe=z?z.prototype:void 0,X=oe?oe.valueOf:void 0,se=oe?oe.toString:void 0;function ce(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Z(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function le(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ue(e){var t=-1,n=e?e.length:0;for(this.__data__=new le;++t<n;)this.add(e[t])}function de(e){this.__data__=new Z(e)}function fe(e,t){var n=Ve(e)||Be(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var a in e)!t&&!ee.call(e,a)||i&&(a==`length`||Oe(a,r))||n.push(a);return n}function pe(e,t){for(var n=e.length;n--;)if(ze(e[n][0],t))return n;return-1}function Q(e,t,n,r){return he(e,(function(e,i,a){t(r,e,n(e),a)})),r}ce.prototype.clear=function(){this.__data__=ie?ie(null):{}},ce.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},ce.prototype.get=function(e){var t=this.__data__;if(ie){var n=t[e];return n===`__lodash_hash_undefined__`?void 0:n}return ee.call(t,e)?t[e]:void 0},ce.prototype.has=function(e){var t=this.__data__;return ie?t[e]!==void 0:ee.call(t,e)},ce.prototype.set=function(e,t){return this.__data__[e]=ie&&t===void 0?`__lodash_hash_undefined__`:t,this},Z.prototype.clear=function(){this.__data__=[]},Z.prototype.delete=function(e){var t=this.__data__,n=pe(t,e);return!(n<0)&&(n==t.length-1?t.pop():H.call(t,n,1),!0)},Z.prototype.get=function(e){var t=this.__data__,n=pe(t,e);return n<0?void 0:t[n][1]},Z.prototype.has=function(e){return pe(this.__data__,e)>-1},Z.prototype.set=function(e,t){var n=this.__data__,r=pe(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},le.prototype.clear=function(){this.__data__={hash:new ce,map:new(te||Z),string:new ce}},le.prototype.delete=function(e){return Te(this,e).delete(e)},le.prototype.get=function(e){return Te(this,e).get(e)},le.prototype.has=function(e){return Te(this,e).has(e)},le.prototype.set=function(e,t){return Te(this,e).set(e,t),this},ue.prototype.add=ue.prototype.push=function(e){return this.__data__.set(e,`__lodash_hash_undefined__`),this},ue.prototype.has=function(e){return this.__data__.has(e)},de.prototype.clear=function(){this.__data__=new Z},de.prototype.delete=function(e){return this.__data__.delete(e)},de.prototype.get=function(e){return this.__data__.get(e)},de.prototype.has=function(e){return this.__data__.has(e)},de.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Z){var r=n.__data__;if(!te||r.length<199)return r.push([e,t]),this;n=this.__data__=new le(r)}return n.set(e,t),this};var me,$,he=(me=function(e,t){return e&&ge(e,t,Ye)},function(e,t){if(e==null)return e;if(!He(e))return me(e,t);for(var n=e.length,r=$?n:-1,i=Object(e);($?r--:++r<n)&&!1!==t(i[r],r,i););return e}),ge=function(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(!1===n(a[c],c,a))break}return t}}();function _e(e,t){for(var n=0,r=(t=ke(t,e)?[t]:Ce(t)).length;e!=null&&n<r;)e=e[Ne(t[n++])];return n&&n==r?e:void 0}function ve(e,t){return e!=null&&t in Object(e)}function ye(e,t,n,s,c){return e===t||(e==null||t==null||!Ge(e)&&!Ke(t)?e!=e&&t!=t:function(e,t,n,s,c,l){var u=Ve(e),d=Ve(t),f=`[object Array]`,p=`[object Array]`;u||(f=(f=De(e))==r?a:f),d||(p=(p=De(t))==r?a:p);var m=f==a&&!T(e),h=p==a&&!T(t),g=f==p;if(g&&!m)return l||=new de,u||Je(e)?we(e,t,n,s,c,l):function(e,t,n,r,a,s,c){switch(n){case`[object DataView]`:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case`[object ArrayBuffer]`:return!(e.byteLength!=t.byteLength||!r(new B(e),new B(t)));case`[object Boolean]`:case`[object Date]`:case`[object Number]`:return ze(+e,+t);case`[object Error]`:return e.name==t.name&&e.message==t.message;case`[object RegExp]`:case`[object String]`:return e==t+``;case i:var l=E;case o:var u=2&s;if(l||=D,e.size!=t.size&&!u)return!1;var d=c.get(e);if(d)return d==t;s|=1,c.set(e,t);var f=we(l(e),l(t),r,a,s,c);return c.delete(e),f;case`[object Symbol]`:if(X)return X.call(e)==X.call(t)}return!1}(e,t,f,n,s,c,l);if(!(2&c)){var _=m&&ee.call(e,`__wrapped__`),v=h&&ee.call(t,`__wrapped__`);if(_||v){var y=_?e.value():e,b=v?t.value():t;return l||=new de,n(y,b,s,c,l)}}return g?(l||=new de,function(e,t,n,r,i,a){var o=2&i,s=Ye(e),c=s.length;if(c!=Ye(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:ee.call(t,u)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var f=!0;a.set(e,t),a.set(t,e);for(var p=o;++l<c;){u=s[l];var m=e[u],h=t[u];if(r)var g=o?r(h,m,u,t,e,a):r(m,h,u,e,t,a);if(!(g===void 0?m===h||n(m,h,r,i,a):g)){f=!1;break}p||=u==`constructor`}if(f&&!p){var _=e.constructor,v=t.constructor;_==v||!(`constructor`in e)||!(`constructor`in t)||typeof _==`function`&&_ instanceof _&&typeof v==`function`&&v instanceof v||(f=!1)}return a.delete(e),a.delete(t),f}(e,t,n,s,c,l)):!1}(e,t,ye,n,s,c))}function be(e){return!(!Ge(e)||function(e){return!!F&&F in e}(e))&&(Ue(e)||T(e)?R:f).test(Pe(e))}function xe(e){return typeof e==`function`?e:e==null?Xe:typeof e==`object`?Ve(e)?function(e,t){return ke(e)&&Ae(t)?je(Ne(e),t):function(n){var r=function(e,t,n){var r=e==null?void 0:_e(e,t);return r===void 0?n:r}(n,e);return r===void 0&&r===t?function(e,t){return e!=null&&function(e,t,n){t=ke(t,e)?[t]:Ce(t);for(var r,i=-1,a=t.length;++i<a;){var o=Ne(t[i]);if(!(r=e!=null&&n(e,o)))break;e=e[o]}return r||!!(a=e?e.length:0)&&We(a)&&Oe(o,a)&&(Ve(e)||Be(e))}(e,t,ve)}(n,e):ye(t,r,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){for(var t=Ye(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Ae(i)]}return t}(e);return t.length==1&&t[0][2]?je(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){var c=(s=n[i])[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new de;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?ye(u,l,r,3,d):f))return!1}}return!0}(n,e,t)}}(e):ke(t=e)?(n=Ne(t),function(e){return e?.[n]}):function(e){return function(t){return _e(t,e)}}(t);var t,n}function Se(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||N,t!==r)return U(e);var t,n,r,i=[];for(var a in Object(e))ee.call(e,a)&&a!=`constructor`&&i.push(a);return i}function Ce(e){return Ve(e)?e:Me(e)}function we(e,t,n,r,i,a){var o=2&i,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var u=-1,d=!0,f=1&i?new ue:void 0;for(a.set(e,t),a.set(t,e);++u<s;){var p=e[u],m=t[u];if(r)var h=o?r(m,p,u,t,e,a):r(p,m,u,e,t,a);if(h!==void 0){if(h)continue;d=!1;break}if(f){if(!w(t,(function(e,t){if(!f.has(t)&&(p===e||n(p,e,r,i,a)))return f.add(t)}))){d=!1;break}}else if(p!==m&&!n(p,m,r,i,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function Te(e,t){var n,r,i=e.__data__;return((r=typeof(n=t))==`string`||r==`number`||r==`symbol`||r==`boolean`?n!==`__proto__`:n===null)?i[typeof t==`string`?`string`:`hash`]:i.map}function Ee(e,t){var n=function(e,t){return e?.[t]}(e,t);return be(n)?n:void 0}var De=function(e){return L.call(e)};function Oe(e,t){return!!(t??=9007199254740991)&&(typeof e==`number`||p.test(e))&&e>-1&&e%1==0&&e<t}function ke(e,t){if(Ve(e))return!1;var n=typeof e;return!(n!=`number`&&n!=`symbol`&&n!=`boolean`&&e!=null&&!qe(e))||c.test(e)||!s.test(e)||t!=null&&e in Object(t)}function Ae(e){return e==e&&!Ge(e)}function je(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}(W&&De(new W(new ArrayBuffer(1)))!=`[object DataView]`||te&&De(new te)!=i||ne&&De(ne.resolve())!=`[object Promise]`||G&&De(new G)!=o||re&&De(new re)!=`[object WeakMap]`)&&(De=function(e){var t=L.call(e),n=t==a?e.constructor:void 0,r=n?Pe(n):void 0;if(r)switch(r){case K:return`[object DataView]`;case q:return i;case J:return`[object Promise]`;case Y:return o;case ae:return`[object WeakMap]`}return t});var Me=Re((function(e){var t;e=(t=e)==null?``:function(e){if(typeof e==`string`)return e;if(qe(e))return se?se.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}(t);var n=[];return l.test(e)&&n.push(``),e.replace(u,(function(e,t,r,i){n.push(r?i.replace(d,`$1`):t||e)})),n}));function Ne(e){if(typeof e==`string`||qe(e))return e;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function Pe(e){if(e!=null){try{return I.call(e)}catch{}try{return e+``}catch{}}return``}var Fe,Ie,Le=(Fe=function(e,t,n){ee.call(e,n)?e[n].push(t):e[n]=[t]},function(e,t){var n=Ve(e)?C:Q,r=Ie?Ie():{};return n(e,Fe,xe(t),r)});function Re(e,t){if(typeof e!=`function`||t&&typeof t!=`function`)throw TypeError(`Expected a function`);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(Re.Cache||le),n}function ze(e,t){return e===t||e!=e&&t!=t}function Be(e){return function(e){return Ke(e)&&He(e)}(e)&&ee.call(e,`callee`)&&(!V.call(e,`callee`)||L.call(e)==r)}Re.Cache=le;var Ve=Array.isArray;function He(e){return e!=null&&We(e.length)&&!Ue(e)}function Ue(e){var t=Ge(e)?L.call(e):``;return t==`[object Function]`||t==`[object GeneratorFunction]`}function We(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=9007199254740991}function Ge(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function Ke(e){return!!e&&typeof e==`object`}function qe(e){return typeof e==`symbol`||Ke(e)&&L.call(e)==`[object Symbol]`}var Je=S?function(e){return function(t){return e(t)}}(S):function(e){return Ke(e)&&We(e.length)&&!!m[L.call(e)]};function Ye(e){return He(e)?fe(e):Se(e)}function Xe(e){return e}t.exports=Le}).call(this)}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{}],444:[function(e,t,n){var r=Object.prototype.toString;t.exports=function(e){return!0===e||!1===e||function(e){return!!e&&typeof e==`object`}(e)&&r.call(e)==`[object Boolean]`}},{}],445:[function(e,t,n){(function(e){(function(){var r=`[object Arguments]`,i=`[object Map]`,a=`[object Object]`,o=`[object Set]`,s=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,l={};l[`[object Float32Array]`]=l[`[object Float64Array]`]=l[`[object Int8Array]`]=l[`[object Int16Array]`]=l[`[object Int32Array]`]=l[`[object Uint8Array]`]=l[`[object Uint8ClampedArray]`]=l[`[object Uint16Array]`]=l[`[object Uint32Array]`]=!0,l[r]=l[`[object Array]`]=l[`[object ArrayBuffer]`]=l[`[object Boolean]`]=l[`[object DataView]`]=l[`[object Date]`]=l[`[object Error]`]=l[`[object Function]`]=l[i]=l[`[object Number]`]=l[a]=l[`[object RegExp]`]=l[o]=l[`[object String]`]=l[`[object WeakMap]`]=!1;var u=typeof e==`object`&&e&&e.Object===Object&&e,d=typeof self==`object`&&self&&self.Object===Object&&self,f=u||d||Function(`return this`)(),p=typeof n==`object`&&n&&!n.nodeType&&n,m=p&&typeof t==`object`&&t&&!t.nodeType&&t,h=m&&m.exports===p,g=h&&u.process,_=function(){try{return g&&g.binding&&g.binding(`util`)}catch{}}(),v=_&&_.isTypedArray;function y(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function b(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function x(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var S,C,w,T=Array.prototype,E=Function.prototype,D=Object.prototype,O=f[`__core-js_shared__`],k=E.toString,A=D.hasOwnProperty,j=(S=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||``))?`Symbol(src)_1.`+S:``,M=D.toString,N=RegExp(`^`+k.call(A).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),P=h?f.Buffer:void 0,F=f.Symbol,I=f.Uint8Array,ee=D.propertyIsEnumerable,L=T.splice,R=F?F.toStringTag:void 0,z=Object.getOwnPropertySymbols,B=P?P.isBuffer:void 0,V=(C=Object.keys,w=Object,function(e){return C(w(e))}),H=_e(f,`DataView`),U=_e(f,`Map`),W=_e(f,`Promise`),te=_e(f,`Set`),ne=_e(f,`WeakMap`),G=_e(Object,`create`),re=xe(H),ie=xe(U),K=xe(W),q=xe(te),J=xe(ne),Y=F?F.prototype:void 0,ae=Y?Y.valueOf:void 0;function oe(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function X(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function se(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ce(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new se;++t<n;)this.add(e[t])}function Z(e){this.size=(this.__data__=new X(e)).size}function le(e,t){var n=we(e),r=!n&&Ce(e),i=!n&&!r&&Te(e),a=!n&&!r&&!i&&Ae(e),o=n||r||i||a,s=o?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=s.length;for(var l in e)!t&&!A.call(e,l)||o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||be(l,c))||s.push(l);return s}function ue(e,t){for(var n=e.length;n--;)if(Se(e[n][0],t))return n;return-1}function de(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:R&&R in Object(e)?function(e){var t=A.call(e,R),n=e[R];try{e[R]=void 0;var r=!0}catch{}var i=M.call(e);return r&&(t?e[R]=n:delete e[R]),i}(e):function(e){return M.call(e)}(e)}function fe(e){return ke(e)&&de(e)==r}function pe(e,t,n,s,c){return e===t||(e==null||t==null||!ke(e)&&!ke(t)?e!=e&&t!=t:function(e,t,n,s,c,l){var u=we(e),d=we(t),f=u?`[object Array]`:ye(e),p=d?`[object Array]`:ye(t),m=(f=f==r?a:f)==a,h=(p=p==r?a:p)==a,g=f==p;if(g&&Te(e)){if(!Te(t))return!1;u=!0,m=!1}if(g&&!m)return l||=new Z,u||Ae(e)?$(e,t,n,s,c,l):function(e,t,n,r,a,s,c){switch(n){case`[object DataView]`:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case`[object ArrayBuffer]`:return!(e.byteLength!=t.byteLength||!s(new I(e),new I(t)));case`[object Boolean]`:case`[object Date]`:case`[object Number]`:return Se(+e,+t);case`[object Error]`:return e.name==t.name&&e.message==t.message;case`[object RegExp]`:case`[object String]`:return e==t+``;case i:var l=b;case o:var u=1&r;if(l||=x,e.size!=t.size&&!u)return!1;var d=c.get(e);if(d)return d==t;r|=2,c.set(e,t);var f=$(l(e),l(t),r,a,s,c);return c.delete(e),f;case`[object Symbol]`:if(ae)return ae.call(e)==ae.call(t)}return!1}(e,t,f,n,s,c,l);if(!(1&n)){var _=m&&A.call(e,`__wrapped__`),v=h&&A.call(t,`__wrapped__`);if(_||v){var y=_?e.value():e,S=v?t.value():t;return l||=new Z,c(y,S,n,s,l)}}return g?(l||=new Z,function(e,t,n,r,i,a){var o=1&n,s=he(e),c=s.length;if(c!=he(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:A.call(t,u)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var f=!0;a.set(e,t),a.set(t,e);for(var p=o;++l<c;){u=s[l];var m=e[u],h=t[u];if(r)var g=o?r(h,m,u,t,e,a):r(m,h,u,e,t,a);if(!(g===void 0?m===h||i(m,h,n,r,a):g)){f=!1;break}p||=u==`constructor`}if(f&&!p){var _=e.constructor,v=t.constructor;_==v||!(`constructor`in e)||!(`constructor`in t)||typeof _==`function`&&_ instanceof _&&typeof v==`function`&&v instanceof v||(f=!1)}return a.delete(e),a.delete(t),f}(e,t,n,s,c,l)):!1}(e,t,n,s,pe,c))}function Q(e){return!(!Oe(e)||function(e){return!!j&&j in e}(e))&&(Ee(e)?N:s).test(xe(e))}function me(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||D,t!==r)return V(e);var t,n,r,i=[];for(var a in Object(e))A.call(e,a)&&a!=`constructor`&&i.push(a);return i}function $(e,t,n,r,i,a){var o=1&n,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var u=-1,d=!0,f=2&n?new ce:void 0;for(a.set(e,t),a.set(t,e);++u<s;){var p=e[u],m=t[u];if(r)var h=o?r(m,p,u,t,e,a):r(p,m,u,e,t,a);if(h!==void 0){if(h)continue;d=!1;break}if(f){if(!y(t,(function(e,t){if(o=t,!f.has(o)&&(p===e||i(p,e,n,r,a)))return f.push(t);var o}))){d=!1;break}}else if(p!==m&&!i(p,m,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function he(e){return function(e,t,n){var r=t(e);return we(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,je,ve)}function ge(e,t){var n,r,i=e.__data__;return((r=typeof(n=t))==`string`||r==`number`||r==`symbol`||r==`boolean`?n!==`__proto__`:n===null)?i[typeof t==`string`?`string`:`hash`]:i.map}function _e(e,t){var n=function(e,t){return e?.[t]}(e,t);return Q(n)?n:void 0}oe.prototype.clear=function(){this.__data__=G?G(null):{},this.size=0},oe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},oe.prototype.get=function(e){var t=this.__data__;if(G){var n=t[e];return n===`__lodash_hash_undefined__`?void 0:n}return A.call(t,e)?t[e]:void 0},oe.prototype.has=function(e){var t=this.__data__;return G?t[e]!==void 0:A.call(t,e)},oe.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=G&&t===void 0?`__lodash_hash_undefined__`:t,this},X.prototype.clear=function(){this.__data__=[],this.size=0},X.prototype.delete=function(e){var t=this.__data__,n=ue(t,e);return!(n<0)&&(n==t.length-1?t.pop():L.call(t,n,1),--this.size,!0)},X.prototype.get=function(e){var t=this.__data__,n=ue(t,e);return n<0?void 0:t[n][1]},X.prototype.has=function(e){return ue(this.__data__,e)>-1},X.prototype.set=function(e,t){var n=this.__data__,r=ue(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},se.prototype.clear=function(){this.size=0,this.__data__={hash:new oe,map:new(U||X),string:new oe}},se.prototype.delete=function(e){var t=ge(this,e).delete(e);return this.size-=t?1:0,t},se.prototype.get=function(e){return ge(this,e).get(e)},se.prototype.has=function(e){return ge(this,e).has(e)},se.prototype.set=function(e,t){var n=ge(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ce.prototype.add=ce.prototype.push=function(e){return this.__data__.set(e,`__lodash_hash_undefined__`),this},ce.prototype.has=function(e){return this.__data__.has(e)},Z.prototype.clear=function(){this.__data__=new X,this.size=0},Z.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Z.prototype.get=function(e){return this.__data__.get(e)},Z.prototype.has=function(e){return this.__data__.has(e)},Z.prototype.set=function(e,t){var n=this.__data__;if(n instanceof X){var r=n.__data__;if(!U||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new se(r)}return n.set(e,t),this.size=n.size,this};var ve=z?function(e){return e==null?[]:(e=Object(e),function(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}(z(e),(function(t){return ee.call(e,t)})))}:function(){return[]},ye=de;function be(e,t){return!!(t??=9007199254740991)&&(typeof e==`number`||c.test(e))&&e>-1&&e%1==0&&e<t}function xe(e){if(e!=null){try{return k.call(e)}catch{}try{return e+``}catch{}}return``}function Se(e,t){return e===t||e!=e&&t!=t}(H&&ye(new H(new ArrayBuffer(1)))!=`[object DataView]`||U&&ye(new U)!=i||W&&ye(W.resolve())!=`[object Promise]`||te&&ye(new te)!=o||ne&&ye(new ne)!=`[object WeakMap]`)&&(ye=function(e){var t=de(e),n=t==a?e.constructor:void 0,r=n?xe(n):``;if(r)switch(r){case re:return`[object DataView]`;case ie:return i;case K:return`[object Promise]`;case q:return o;case J:return`[object WeakMap]`}return t});var Ce=fe(function(){return arguments}())?fe:function(e){return ke(e)&&A.call(e,`callee`)&&!ee.call(e,`callee`)},we=Array.isArray,Te=B||function(){return!1};function Ee(e){if(!Oe(e))return!1;var t=de(e);return t==`[object Function]`||t==`[object GeneratorFunction]`||t==`[object AsyncFunction]`||t==`[object Proxy]`}function De(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=9007199254740991}function Oe(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function ke(e){return typeof e==`object`&&!!e}var Ae=v?function(e){return function(t){return e(t)}}(v):function(e){return ke(e)&&De(e.length)&&!!l[de(e)]};function je(e){return(t=e)!=null&&De(t.length)&&!Ee(t)?le(e):me(e);var t}t.exports=function(e,t){return pe(e,t)}}).call(this)}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{}],446:[function(e,t,n){(function(e){(function(){var n=typeof e==`object`&&e&&e.Object===Object&&e,r=typeof self==`object`&&self&&self.Object===Object&&self,i=n||r||Function(`return this`)(),a=Object.prototype,o=a.hasOwnProperty,s=a.toString,c=i.Symbol,l=c?c.toStringTag:void 0;function u(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:l&&l in Object(e)?function(e){var t=o.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch{}var i=s.call(e);return r&&(t?e[l]=n:delete e[l]),i}(e):function(e){return s.call(e)}(e)}t.exports=function(e){if(!function(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}(e))return!1;var t=u(e);return t==`[object Function]`||t==`[object GeneratorFunction]`||t==`[object AsyncFunction]`||t==`[object Proxy]`}}).call(this)}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{}],447:[function(e,t,n){t.exports=function(e){return e==null}},{}],448:[function(e,t,n){t.exports=function(e){return e===void 0}},{}],449:[function(e,t,n){(function(e){(function(){var n=/^\[object .+?Constructor\]$/,r=typeof e==`object`&&e&&e.Object===Object&&e,i=typeof self==`object`&&self&&self.Object===Object&&self,a=r||i||Function(`return this`)();function o(e,t){return!!(e&&e.length)&&function(e,t,n){if(t!=t)return function(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}(e,c,n);for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,0)>-1}function s(e,t,n){for(var r=-1,i=e?e.length:0;++r<i;)if(n(t,e[r]))return!0;return!1}function c(e){return e!=e}function l(e,t){return e.has(t)}function u(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var d,f=Array.prototype,p=Function.prototype,m=Object.prototype,h=a[`__core-js_shared__`],g=(d=/[^.]+$/.exec(h&&h.keys&&h.keys.IE_PROTO||``))?`Symbol(src)_1.`+d:``,_=p.toString,v=m.hasOwnProperty,y=m.toString,b=RegExp(`^`+_.call(v).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),x=f.splice,S=N(a,`Map`),C=N(a,`Set`),w=N(Object,`create`);function T(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function E(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function D(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function O(e){var t=-1,n=e?e.length:0;for(this.__data__=new D;++t<n;)this.add(e[t])}function k(e,t){for(var n,r,i=e.length;i--;)if((n=e[i][0])===(r=t)||n!=n&&r!=r)return i;return-1}function A(e){return!(!P(e)||(t=e,g&&g in t))&&(function(e){var t=P(e)?y.call(e):``;return t==`[object Function]`||t==`[object GeneratorFunction]`}(e)||function(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}(e)?b:n).test(function(e){if(e!=null){try{return _.call(e)}catch{}try{return e+``}catch{}}return``}(e));var t}T.prototype.clear=function(){this.__data__=w?w(null):{}},T.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},T.prototype.get=function(e){var t=this.__data__;if(w){var n=t[e];return n===`__lodash_hash_undefined__`?void 0:n}return v.call(t,e)?t[e]:void 0},T.prototype.has=function(e){var t=this.__data__;return w?t[e]!==void 0:v.call(t,e)},T.prototype.set=function(e,t){return this.__data__[e]=w&&t===void 0?`__lodash_hash_undefined__`:t,this},E.prototype.clear=function(){this.__data__=[]},E.prototype.delete=function(e){var t=this.__data__,n=k(t,e);return!(n<0)&&(n==t.length-1?t.pop():x.call(t,n,1),!0)},E.prototype.get=function(e){var t=this.__data__,n=k(t,e);return n<0?void 0:t[n][1]},E.prototype.has=function(e){return k(this.__data__,e)>-1},E.prototype.set=function(e,t){var n=this.__data__,r=k(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},D.prototype.clear=function(){this.__data__={hash:new T,map:new(S||E),string:new T}},D.prototype.delete=function(e){return M(this,e).delete(e)},D.prototype.get=function(e){return M(this,e).get(e)},D.prototype.has=function(e){return M(this,e).has(e)},D.prototype.set=function(e,t){return M(this,e).set(e,t),this},O.prototype.add=O.prototype.push=function(e){return this.__data__.set(e,`__lodash_hash_undefined__`),this},O.prototype.has=function(e){return this.__data__.has(e)};var j=C&&1/u(new C([,-0]))[1]==1/0?function(e){return new C(e)}:function(){};function M(e,t){var n,r,i=e.__data__;return((r=typeof(n=t))==`string`||r==`number`||r==`symbol`||r==`boolean`?n!==`__proto__`:n===null)?i[typeof t==`string`?`string`:`hash`]:i.map}function N(e,t){var n=function(e,t){return e?.[t]}(e,t);return A(n)?n:void 0}function P(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}t.exports=function(e){return e&&e.length?function(e,t,n){var r=-1,i=o,a=e.length,c=!0,d=[],f=d;if(n)c=!1,i=s;else if(a>=200){var p=t?null:j(e);if(p)return u(p);c=!1,i=l,f=new O}else f=t?[]:d;e:for(;++r<a;){var m=e[r],h=t?t(m):m;if(m=n||m!==0?m:0,c&&h==h){for(var g=f.length;g--;)if(f[g]===h)continue e;t&&f.push(h),d.push(m)}else i(f,h,n)||(f!==d&&f.push(h),d.push(m))}return d}(e):[]}}).call(this)}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{}],450:[function(e,t,n){var r=e(`inherits`),i=e(`hash-base`),a=e(`safe-buffer`).Buffer,o=Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function c(e,t){return e<<t|e>>>32-t}function l(e,t,n,r,i,a,o){return c(e+(t&n|~t&r)+i+a|0,o)+t|0}function u(e,t,n,r,i,a,o){return c(e+(t&r|n&~r)+i+a|0,o)+t|0}function d(e,t,n,r,i,a,o){return c(e+(t^n^r)+i+a|0,o)+t|0}function f(e,t,n,r,i,a,o){return c(e+(n^(t|~r))+i+a|0,o)+t|0}r(s,i),s.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,a=this._d;n=l(n,r,i,a,e[0],3614090360,7),a=l(a,n,r,i,e[1],3905402710,12),i=l(i,a,n,r,e[2],606105819,17),r=l(r,i,a,n,e[3],3250441966,22),n=l(n,r,i,a,e[4],4118548399,7),a=l(a,n,r,i,e[5],1200080426,12),i=l(i,a,n,r,e[6],2821735955,17),r=l(r,i,a,n,e[7],4249261313,22),n=l(n,r,i,a,e[8],1770035416,7),a=l(a,n,r,i,e[9],2336552879,12),i=l(i,a,n,r,e[10],4294925233,17),r=l(r,i,a,n,e[11],2304563134,22),n=l(n,r,i,a,e[12],1804603682,7),a=l(a,n,r,i,e[13],4254626195,12),i=l(i,a,n,r,e[14],2792965006,17),n=u(n,r=l(r,i,a,n,e[15],1236535329,22),i,a,e[1],4129170786,5),a=u(a,n,r,i,e[6],3225465664,9),i=u(i,a,n,r,e[11],643717713,14),r=u(r,i,a,n,e[0],3921069994,20),n=u(n,r,i,a,e[5],3593408605,5),a=u(a,n,r,i,e[10],38016083,9),i=u(i,a,n,r,e[15],3634488961,14),r=u(r,i,a,n,e[4],3889429448,20),n=u(n,r,i,a,e[9],568446438,5),a=u(a,n,r,i,e[14],3275163606,9),i=u(i,a,n,r,e[3],4107603335,14),r=u(r,i,a,n,e[8],1163531501,20),n=u(n,r,i,a,e[13],2850285829,5),a=u(a,n,r,i,e[2],4243563512,9),i=u(i,a,n,r,e[7],1735328473,14),n=d(n,r=u(r,i,a,n,e[12],2368359562,20),i,a,e[5],4294588738,4),a=d(a,n,r,i,e[8],2272392833,11),i=d(i,a,n,r,e[11],1839030562,16),r=d(r,i,a,n,e[14],4259657740,23),n=d(n,r,i,a,e[1],2763975236,4),a=d(a,n,r,i,e[4],1272893353,11),i=d(i,a,n,r,e[7],4139469664,16),r=d(r,i,a,n,e[10],3200236656,23),n=d(n,r,i,a,e[13],681279174,4),a=d(a,n,r,i,e[0],3936430074,11),i=d(i,a,n,r,e[3],3572445317,16),r=d(r,i,a,n,e[6],76029189,23),n=d(n,r,i,a,e[9],3654602809,4),a=d(a,n,r,i,e[12],3873151461,11),i=d(i,a,n,r,e[15],530742520,16),n=f(n,r=d(r,i,a,n,e[2],3299628645,23),i,a,e[0],4096336452,6),a=f(a,n,r,i,e[7],1126891415,10),i=f(i,a,n,r,e[14],2878612391,15),r=f(r,i,a,n,e[5],4237533241,21),n=f(n,r,i,a,e[12],1700485571,6),a=f(a,n,r,i,e[3],2399980690,10),i=f(i,a,n,r,e[10],4293915773,15),r=f(r,i,a,n,e[1],2240044497,21),n=f(n,r,i,a,e[8],1873313359,6),a=f(a,n,r,i,e[15],4264355552,10),i=f(i,a,n,r,e[6],2734768916,15),r=f(r,i,a,n,e[13],1309151649,21),n=f(n,r,i,a,e[4],4149444226,6),a=f(a,n,r,i,e[11],3174756917,10),i=f(i,a,n,r,e[2],718787259,15),r=f(r,i,a,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+a|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=a.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},t.exports=s},{"hash-base":425,inherits:440,"safe-buffer":494}],451:[function(e,t,n){var r=e(`bn.js`),i=e(`brorand`);function a(e){this.rand=e||new i.Rand}t.exports=a,a.create=function(e){return new a(e)},a.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do var i=new r(this.rand.generate(n));while(i.cmp(e)>=0);return i},a.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},a.prototype.test=function(e,t,n){var i=e.bitLength(),a=r.mont(e),o=new r(1).toRed(a);t||=Math.max(1,i/48|0);for(var s=e.subn(1),c=0;!s.testn(c);c++);for(var l=e.shrn(c),u=s.toRed(a);t>0;t--){var d=this._randrange(new r(2),s);n&&n(d);var f=d.toRed(a).redPow(l);if(f.cmp(o)!==0&&f.cmp(u)!==0){for(var p=1;p<c;p++){if((f=f.redSqr()).cmp(o)===0)return!1;if(f.cmp(u)===0)break}if(p===c)return!1}}return!0},a.prototype.getDivisor=function(e,t){var n=e.bitLength(),i=r.mont(e),a=new r(1).toRed(i);t||=Math.max(1,n/48|0);for(var o=e.subn(1),s=0;!o.testn(s);s++);for(var c=e.shrn(s),l=o.toRed(i);t>0;t--){var u=this._randrange(new r(2),o),d=e.gcd(u);if(d.cmpn(1)!==0)return d;var f=u.toRed(i).redPow(c);if(f.cmp(a)!==0&&f.cmp(l)!==0){for(var p=1;p<s;p++){if((f=f.redSqr()).cmp(a)===0)return f.fromRed().subn(1).gcd(e);if(f.cmp(l)===0)break}if(p===s)return(f=f.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},{"bn.js":452,brorand:187}],452:[function(e,t,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],453:[function(e,t,n){function r(e,t){if(!e)throw Error(t||`Assertion failed`)}t.exports=r,r.equal=function(e,t,n){if(e!=t)throw Error(n||`Assertion failed: `+e+` != `+t)}},{}],454:[function(e,t,n){var r=n;function i(e){return e.length===1?`0`+e:e}function a(e){for(var t=``,n=0;n<e.length;n++)t+=i(e[n].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if(typeof e!=`string`){for(var r=0;r<e.length;r++)n[r]=0|e[r];return n}if(t===`hex`)for((e=e.replace(/[^a-z0-9]+/gi,``)).length%2!=0&&(e=`0`+e),r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16));else for(r=0;r<e.length;r++){var i=e.charCodeAt(r),a=i>>8,o=255&i;a?n.push(a,o):n.push(o)}return n},r.zero2=i,r.toHex=a,r.encode=function(e,t){return t===`hex`?a(e):e}},{}],455:[function(e,t,n){t.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,t,n){var r=e(`asn1.js`);n.certificate=e(`./certificate`),n.RSAPrivateKey=r.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())})),n.RSAPublicKey=r.define(`RSAPublicKey`,(function(){this.seq().obj(this.key(`modulus`).int(),this.key(`publicExponent`).int())})),n.PublicKey=r.define(`SubjectPublicKeyInfo`,(function(){this.seq().obj(this.key(`algorithm`).use(i),this.key(`subjectPublicKey`).bitstr())}));var i=r.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.PrivateKey=r.define(`PrivateKeyInfo`,(function(){this.seq().obj(this.key(`version`).int(),this.key(`algorithm`).use(i),this.key(`subjectPrivateKey`).octstr())})),n.EncryptedPrivateKey=r.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())})),n.DSAPrivateKey=r.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())})),n.DSAparam=r.define(`DSAparam`,(function(){this.int()})),n.ECPrivateKey=r.define(`ECPrivateKey`,(function(){this.seq().obj(this.key(`version`).int(),this.key(`privateKey`).octstr(),this.key(`parameters`).optional().explicit(0).use(a),this.key(`publicKey`).optional().explicit(1).bitstr())}));var a=r.define(`ECParameters`,(function(){this.choice({namedCurve:this.objid()})}));n.signature=r.define(`signature`,(function(){this.seq().obj(this.key(`r`).int(),this.key(`s`).int())}))},{"./certificate":457,"asn1.js":170}],457:[function(e,t,n){var r=e(`asn1.js`),i=r.define(`Time`,(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),a=r.define(`AttributeTypeValue`,(function(){this.seq().obj(this.key(`type`).objid(),this.key(`value`).any())})),o=r.define(`AlgorithmIdentifier`,(function(){this.seq().obj(this.key(`algorithm`).objid(),this.key(`parameters`).optional(),this.key(`curve`).objid().optional())})),s=r.define(`SubjectPublicKeyInfo`,(function(){this.seq().obj(this.key(`algorithm`).use(o),this.key(`subjectPublicKey`).bitstr())})),c=r.define(`RelativeDistinguishedName`,(function(){this.setof(a)})),l=r.define(`RDNSequence`,(function(){this.seqof(c)})),u=r.define(`Name`,(function(){this.choice({rdnSequence:this.use(l)})})),d=r.define(`Validity`,(function(){this.seq().obj(this.key(`notBefore`).use(i),this.key(`notAfter`).use(i))})),f=r.define(`Extension`,(function(){this.seq().obj(this.key(`extnID`).objid(),this.key(`critical`).bool().def(!1),this.key(`extnValue`).octstr())})),p=r.define(`TBSCertificate`,(function(){this.seq().obj(this.key(`version`).explicit(0).int().optional(),this.key(`serialNumber`).int(),this.key(`signature`).use(o),this.key(`issuer`).use(u),this.key(`validity`).use(d),this.key(`subject`).use(u),this.key(`subjectPublicKeyInfo`).use(s),this.key(`issuerUniqueID`).implicit(1).bitstr().optional(),this.key(`subjectUniqueID`).implicit(2).bitstr().optional(),this.key(`extensions`).explicit(3).seqof(f).optional())}));t.exports=r.define(`X509Certificate`,(function(){this.seq().obj(this.key(`tbsCertificate`).use(p),this.key(`signatureAlgorithm`).use(o),this.key(`signatureValue`).bitstr())}))},{"asn1.js":170}],458:[function(e,t,n){var r=/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,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,o=e(`evp_bytestokey`),s=e(`browserify-aes`),c=e(`safe-buffer`).Buffer;t.exports=function(e,t){var n,l=e.toString(),u=l.match(r);if(u){var d=`aes`+u[1],f=c.from(u[2],`hex`),p=c.from(u[3].replace(/[\r\n]/g,``),`base64`),m=o(t,f.slice(0,8),parseInt(u[1],10)).key,h=[],g=s.createDecipheriv(d,m,f);h.push(g.update(p)),h.push(g.final()),n=c.concat(h)}else{var _=l.match(a);n=c.from(_[2].replace(/[\r\n]/g,``),`base64`)}return{tag:l.match(i)[1],data:n}}},{"browserify-aes":191,evp_bytestokey:423,"safe-buffer":494}],459:[function(e,t,n){var r=e(`./asn1`),i=e(`./aesid.json`),a=e(`./fixProc`),o=e(`browserify-aes`),s=e(`pbkdf2`),c=e(`safe-buffer`).Buffer;function l(e){var t;typeof e!=`object`||c.isBuffer(e)||(t=e.passphrase,e=e.key),typeof e==`string`&&(e=c.from(e));var n,l,u=a(e,t),d=u.tag,f=u.data;switch(d){case`CERTIFICATE`:l=r.certificate.decode(f,`der`).tbsCertificate.subjectPublicKeyInfo;case`PUBLIC KEY`:switch(l||=r.PublicKey.decode(f,`der`),n=l.algorithm.algorithm.join(`.`)){case`1.2.840.113549.1.1.1`:return r.RSAPublicKey.decode(l.subjectPublicKey.data,`der`);case`1.2.840.10045.2.1`:return l.subjectPrivateKey=l.subjectPublicKey,{type:`ec`,data:l};case`1.2.840.10040.4.1`:return l.algorithm.params.pub_key=r.DSAparam.decode(l.subjectPublicKey.data,`der`),{type:`dsa`,data:l.algorithm.params};default:throw Error(`unknown key id `+n)}case`ENCRYPTED PRIVATE KEY`:f=function(e,t){var n=e.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),a=i[e.algorithm.decrypt.cipher.algo.join(`.`)],l=e.algorithm.decrypt.cipher.iv,u=e.subjectPrivateKey,d=parseInt(a.split(`-`)[1],10)/8,f=s.pbkdf2Sync(t,n,r,d,`sha1`),p=o.createDecipheriv(a,f,l),m=[];return m.push(p.update(u)),m.push(p.final()),c.concat(m)}(f=r.EncryptedPrivateKey.decode(f,`der`),t);case`PRIVATE KEY`:switch(n=(l=r.PrivateKey.decode(f,`der`)).algorithm.algorithm.join(`.`)){case`1.2.840.113549.1.1.1`:return r.RSAPrivateKey.decode(l.subjectPrivateKey,`der`);case`1.2.840.10045.2.1`:return{curve:l.algorithm.curve,privateKey:r.ECPrivateKey.decode(l.subjectPrivateKey,`der`).privateKey};case`1.2.840.10040.4.1`:return l.algorithm.params.priv_key=r.DSAparam.decode(l.subjectPrivateKey,`der`),{type:`dsa`,params:l.algorithm.params};default:throw Error(`unknown key id `+n)}case`RSA PUBLIC KEY`:return r.RSAPublicKey.decode(f,`der`);case`RSA PRIVATE KEY`:return r.RSAPrivateKey.decode(f,`der`);case`DSA PRIVATE KEY`:return{type:`dsa`,params:r.DSAPrivateKey.decode(f,`der`)};case`EC PRIVATE KEY`:return{curve:(f=r.ECPrivateKey.decode(f,`der`)).parameters.value,privateKey:f.privateKey};default:throw Error(`unknown key type `+d)}}t.exports=l,l.signature=r.signature},{"./aesid.json":455,"./asn1":456,"./fixProc":458,"browserify-aes":191,pbkdf2:460,"safe-buffer":494}],460:[function(e,t,n){n.pbkdf2=e(`./lib/async`),n.pbkdf2Sync=e(`./lib/sync`)},{"./lib/async":461,"./lib/sync":464}],461:[function(e,t,n){(function(n){(function(){var r,i,a=e(`safe-buffer`).Buffer,o=e(`./precondition`),s=e(`./default-encoding`),c=e(`./sync`),l=e(`./to-buffer`),u=n.crypto&&n.crypto.subtle,d={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`},f=[];function p(){return i||=n.process&&n.process.nextTick?n.process.nextTick:n.queueMicrotask?n.queueMicrotask:n.setImmediate?n.setImmediate:n.setTimeout}function m(e,t,n,r,i){return u.importKey(`raw`,e,{name:`PBKDF2`},!1,[`deriveBits`]).then((function(e){return u.deriveBits({name:`PBKDF2`,salt:t,iterations:n,hash:{name:i}},e,r<<3)})).then((function(e){return a.from(e)}))}t.exports=function(e,t,i,h,g,_){typeof g==`function`&&(_=g,g=void 0);var v=d[(g||=`sha1`).toLowerCase()];if(v&&typeof n.Promise==`function`){if(o(i,h),e=l(e,s,`Password`),t=l(t,s,`Salt`),typeof _!=`function`)throw Error(`No callback provided to pbkdf2`);(function(e,t){e.then((function(e){p()((function(){t(null,e)}))}),(function(e){p()((function(){t(e)}))}))})(function(e){if(n.process&&!n.process.browser||!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(f[e]!==void 0)return f[e];var t=m(r||=a.alloc(8),r,10,128,e).then((function(){return!0})).catch((function(){return!1}));return f[e]=t,t}(v).then((function(n){return n?m(e,t,i,h,v):c(e,t,i,h,g)})),_)}else p()((function(){var n;try{n=c(e,t,i,h,g)}catch(e){return _(e)}_(null,n)}))}}).call(this)}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{"./default-encoding":462,"./precondition":463,"./sync":464,"./to-buffer":465,"safe-buffer":494}],462:[function(e,t,n){(function(e,n){(function(){t.exports=n.process&&n.process.browser?`utf-8`:n.process&&n.process.version?parseInt(e.version.split(`.`)[0].slice(1),10)>=6?`utf-8`:`binary`:`utf-8`}).call(this)}).call(this,e(`_process`),typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{_process:467}],463:[function(e,t,n){var r=2**30-1;t.exports=function(e,t){if(typeof e!=`number`)throw TypeError(`Iterations not a number`);if(e<0)throw TypeError(`Bad iterations`);if(typeof t!=`number`)throw TypeError(`Key length not a number`);if(t<0||t>r||t!=t)throw TypeError(`Bad key length`)}},{}],464:[function(e,t,n){var r=e(`create-hash/md5`),i=e(`ripemd160`),a=e(`sha.js`),o=e(`safe-buffer`).Buffer,s=e(`./precondition`),c=e(`./default-encoding`),l=e(`./to-buffer`),u=o.alloc(128),d={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function f(e,t,n){var s=function(e){function t(t){return a(e).update(t).digest()}return e===`rmd160`||e===`ripemd160`?function(e){return new i().update(e).digest()}:e===`md5`?r:t}(e),c=e===`sha512`||e===`sha384`?128:64;t.length>c?t=s(t):t.length<c&&(t=o.concat([t,u],c));for(var l=o.allocUnsafe(c+d[e]),f=o.allocUnsafe(c+d[e]),p=0;p<c;p++)l[p]=54^t[p],f[p]=92^t[p];var m=o.allocUnsafe(c+n+4);l.copy(m,0,0,c),this.ipad1=m,this.ipad2=l,this.opad=f,this.alg=e,this.blocksize=c,this.hash=s,this.size=d[e]}f.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(e,t,n,r,i){s(n,r);var a=new f(i||=`sha1`,e=l(e,c,`Password`),(t=l(t,c,`Salt`)).length),u=o.allocUnsafe(r),p=o.allocUnsafe(t.length+4);t.copy(p,0,0,t.length);for(var m=0,h=d[i],g=Math.ceil(r/h),_=1;_<=g;_++){p.writeUInt32BE(_,t.length);for(var v=a.run(p,a.ipad1),y=v,b=1;b<n;b++){y=a.run(y,a.ipad2);for(var x=0;x<h;x++)v[x]^=y[x]}v.copy(u,m),m+=h}return u}},{"./default-encoding":462,"./precondition":463,"./to-buffer":465,"create-hash/md5":387,ripemd160:493,"safe-buffer":494,"sha.js":498}],465:[function(e,t,n){var r=e(`safe-buffer`).Buffer;t.exports=function(e,t,n){if(r.isBuffer(e))return e;if(typeof e==`string`)return r.from(e,t);if(ArrayBuffer.isView(e))return r.from(e.buffer);throw TypeError(n+` must be a string, a Buffer, a typed array or a DataView`)}},{"safe-buffer":494}],466:[function(e,t,n){(function(e){(function(){e===void 0||!e.version||e.version.indexOf(`v0.`)===0||e.version.indexOf(`v1.`)===0&&e.version.indexOf(`v1.8.`)!==0?t.exports={nextTick:function(t,n,r,i){if(typeof t!=`function`)throw TypeError(`"callback" argument must be a function`);var a,o,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,r)}));case 4:return e.nextTick((function(){t.call(null,n,r,i)}));default:for(a=Array(s-1),o=0;o<a.length;)a[o++]=arguments[o];return e.nextTick((function(){t.apply(null,a)}))}}}:t.exports=e}).call(this)}).call(this,e(`_process`))},{_process:467}],467:[function(e,t,n){var r,i,a=t.exports={};function o(){throw Error(`setTimeout has not been defined`)}function s(){throw Error(`clearTimeout has not been defined`)}function c(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch{try{return r.call(null,e,0)}catch{return r.call(this,e,0)}}}(function(){try{r=typeof setTimeout==`function`?setTimeout:o}catch{r=o}try{i=typeof clearTimeout==`function`?clearTimeout:s}catch{i=s}})();var l,u=[],d=!1,f=-1;function p(){d&&l&&(d=!1,l.length?u=l.concat(u):f=-1,u.length&&m())}function m(){if(!d){var e=c(p);d=!0;for(var t=u.length;t;){for(l=u,u=[];++f<t;)l&&l[f].run();f=-1,t=u.length}l=null,d=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch{try{return i.call(null,e)}catch{return i.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}a.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),u.length!==1||d||c(m)},h.prototype.run=function(){this.fun.apply(null,this.array)},a.title=`browser`,a.browser=!0,a.env={},a.argv=[],a.version=``,a.versions={},a.on=g,a.addListener=g,a.once=g,a.off=g,a.removeListener=g,a.removeAllListeners=g,a.emit=g,a.prependListener=g,a.prependOnceListener=g,a.listeners=function(e){return[]},a.binding=function(e){throw Error(`process.binding is not supported`)},a.cwd=function(){return`/`},a.chdir=function(e){throw Error(`process.chdir is not supported`)},a.umask=function(){return 0}},{}],468:[function(e,t,n){n.publicEncrypt=e(`./publicEncrypt`),n.privateDecrypt=e(`./privateDecrypt`),n.privateEncrypt=function(e,t){return n.publicEncrypt(e,t,!0)},n.publicDecrypt=function(e,t){return n.privateDecrypt(e,t,!0)}},{"./privateDecrypt":471,"./publicEncrypt":472}],469:[function(e,t,n){var r=e(`create-hash`),i=e(`safe-buffer`).Buffer;function a(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}t.exports=function(e,t){for(var n,o=i.alloc(0),s=0;o.length<t;)n=a(s++),o=i.concat([o,r(`sha1`).update(e).update(n).digest()]);return o.slice(0,t)}},{"create-hash":386,"safe-buffer":494}],470:[function(e,t,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],471:[function(e,t,n){var r=e(`parse-asn1`),i=e(`./mgf`),a=e(`./xor`),o=e(`bn.js`),s=e(`browserify-rsa`),c=e(`create-hash`),l=e(`./withPublic`),u=e(`safe-buffer`).Buffer;t.exports=function(e,t,n){var d=e.padding?e.padding:n?1:4,f,p=r(e),m=p.modulus.byteLength();if(t.length>m||new o(t).cmp(p.modulus)>=0)throw Error(`decryption error`);f=n?l(new o(t),p):s(t,p);var h=u.alloc(m-f.length);if(f=u.concat([h,f],m),d===4)return function(e,t){var n=e.modulus.byteLength(),r=c(`sha1`).update(u.alloc(0)).digest(),o=r.length;if(t[0]!==0)throw Error(`decryption error`);var s=t.slice(1,o+1),l=t.slice(o+1),d=a(l,i(a(s,i(l,o)),n-o-1));if(function(e,t){e=u.from(e),t=u.from(t);var n=0,r=e.length;e.length!==t.length&&(n++,r=Math.min(e.length,t.length));for(var i=-1;++i<r;)n+=e[i]^t[i];return n}(r,d.slice(0,o)))throw Error(`decryption error`);for(var f=o;d[f]===0;)f++;if(d[f++]!==1)throw Error(`decryption error`);return d.slice(f)}(p,f);if(d===1)return function(e,t,n){for(var r=t.slice(0,2),i=2,a=0;t[i++]!==0;)if(i>=t.length){a++;break}var o=t.slice(2,i-1);if((r.toString(`hex`)!==`0002`&&!n||r.toString(`hex`)!==`0001`&&n)&&a++,o.length<8&&a++,a)throw Error(`decryption error`);return t.slice(i)}(0,f,n);if(d===3)return f;throw 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,t,n){var r=e(`parse-asn1`),i=e(`randombytes`),a=e(`create-hash`),o=e(`./mgf`),s=e(`./xor`),c=e(`bn.js`),l=e(`./withPublic`),u=e(`browserify-rsa`),d=e(`safe-buffer`).Buffer;t.exports=function(e,t,n){var f=e.padding?e.padding:n?1:4,p,m=r(e);if(f===4)p=function(e,t){var n=e.modulus.byteLength(),r=t.length,l=a(`sha1`).update(d.alloc(0)).digest(),u=l.length,f=2*u;if(r>n-f-2)throw Error(`message too long`);var p=d.alloc(n-r-f-2),m=n-u-1,h=i(u),g=s(d.concat([l,p,d.alloc(1,1),t],m),o(h,m)),_=s(h,o(g,u));return new c(d.concat([d.alloc(1),_,g],n))}(m,t);else if(f===1)p=function(e,t,n){var r,a=t.length,o=e.modulus.byteLength();if(a>o-11)throw Error(`message too long`);return r=n?d.alloc(o-a-3,255):function(e){for(var t,n=d.allocUnsafe(e),r=0,a=i(2*e),o=0;r<e;)o===a.length&&(a=i(2*e),o=0),(t=a[o++])&&(n[r++]=t);return n}(o-a-3),new c(d.concat([d.from([0,n?1:2]),r,d.alloc(1),t],o))}(m,t,n);else{if(f!==3)throw Error(`unknown padding`);if((p=new c(t)).cmp(m.modulus)>=0)throw Error(`data too long for modulus`)}return n?u(p,m):l(p,m)}},{"./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,t,n){var r=e(`bn.js`),i=e(`safe-buffer`).Buffer;t.exports=function(e,t){return i.from(e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed().toArray())}},{"bn.js":470,"safe-buffer":494}],474:[function(e,t,n){t.exports=function(e,t){for(var n=e.length,r=-1;++r<n;)e[r]^=t[r];return e}},{}],475:[function(e,t,n){(function(n,r){(function(){var i=e(`safe-buffer`).Buffer,a=r.crypto||r.msCrypto;a&&a.getRandomValues?t.exports=function(e,t){if(e>4294967295)throw RangeError(`requested too many random bytes`);var r=i.allocUnsafe(e);if(e>0)if(e>65536)for(var o=0;o<e;o+=65536)a.getRandomValues(r.slice(o,o+65536));else a.getRandomValues(r);return typeof t==`function`?n.nextTick((function(){t(null,r)})):r}:t.exports=function(){throw Error(`Secure random number generation is not supported by this browser.
Use Chrome, Firefox or Internet Explorer 11`)}}).call(this)}).call(this,e(`_process`),typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{_process:467,"safe-buffer":494}],476:[function(e,t,n){(function(t,r){(function(){function i(){throw Error(`secure random number generation not supported by this browser
use chrome, FireFox or Internet Explorer 11`)}var a=e(`safe-buffer`),o=e(`randombytes`),s=a.Buffer,c=a.kMaxLength,l=r.crypto||r.msCrypto,u=2**32-1;function d(e,t){if(typeof e!=`number`||e!=e)throw TypeError(`offset must be a number`);if(e>u||e<0)throw TypeError(`offset must be a uint32`);if(e>c||e>t)throw RangeError(`offset out of range`)}function f(e,t,n){if(typeof e!=`number`||e!=e)throw TypeError(`size must be a number`);if(e>u||e<0)throw TypeError(`size must be a uint32`);if(e+t>n||e>c)throw RangeError(`buffer too small`)}function p(e,n,r,i){if(t.browser){var a=e.buffer,s=new Uint8Array(a,n,r);return l.getRandomValues(s),i?void t.nextTick((function(){i(null,e)})):e}if(!i)return o(r).copy(e,n),e;o(r,(function(t,r){if(t)return i(t);r.copy(e,n),i(null,e)}))}l&&l.getRandomValues||!t.browser?(n.randomFill=function(e,t,n,i){if(!(s.isBuffer(e)||e instanceof r.Uint8Array))throw TypeError(`"buf" argument must be a Buffer or Uint8Array`);if(typeof t==`function`)i=t,t=0,n=e.length;else if(typeof n==`function`)i=n,n=e.length-t;else if(typeof i!=`function`)throw TypeError(`"cb" argument must be a function`);return d(t,e.length),f(n,t,e.length),p(e,t,n,i)},n.randomFillSync=function(e,t,n){if(t===void 0&&(t=0),!(s.isBuffer(e)||e instanceof r.Uint8Array))throw TypeError(`"buf" argument must be a Buffer or Uint8Array`);return d(t,e.length),n===void 0&&(n=e.length-t),f(n,t,e.length),p(e,t,n)}):(n.randomFill=i,n.randomFillSync=i)}).call(this)}).call(this,e(`_process`),typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{_process:467,randombytes:475,"safe-buffer":494}],477:[function(e,t,n){var r={};function i(e,t,n){n||=Error;var i=function(e){var n,r;function i(n,r,i){return e.call(this,function(e,n,r){return typeof t==`string`?t:t(e,n,r)}(n,r,i))||this}return r=e,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,i}(n);i.prototype.name=n.name,i.prototype.code=e,r[e]=i}function a(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?`one of ${t} ${e.slice(0,n-1).join(`, `)}, or `+e[n-1]:n===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}return`of ${t} ${String(e)}`}i(`ERR_INVALID_OPT_VALUE`,(function(e,t){return`The value "`+t+`" is invalid for option "`+e+`"`}),TypeError),i(`ERR_INVALID_ARG_TYPE`,(function(e,t,n){var r,i,o,s;return typeof t==`string`&&(i=`not `,t.substr(!o||o<0?0:+o,i.length)===i)?(r=`must not be`,t=t.replace(/^not /,``)):r=`must be`,s=function(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e,` argument`)?`The ${e} ${r} ${a(t,`type`)}`:`The "${e}" ${function(e,t,n){return typeof n!=`number`&&(n=0),!(n+t.length>e.length)&&e.indexOf(t,n)!==-1}(e,`.`)?`property`:`argument`} ${r} ${a(t,`type`)}`,s+=`. Received type ${typeof n}`}),TypeError),i(`ERR_STREAM_PUSH_AFTER_EOF`,`stream.push() after EOF`),i(`ERR_METHOD_NOT_IMPLEMENTED`,(function(e){return`The `+e+` method is not implemented`})),i(`ERR_STREAM_PREMATURE_CLOSE`,`Premature close`),i(`ERR_STREAM_DESTROYED`,(function(e){return`Cannot call `+e+` 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(e){return`Unknown encoding: `+e}),TypeError),i(`ERR_STREAM_UNSHIFT_AFTER_END_EVENT`,`stream.unshift() after end event`),t.exports.codes=r},{}],478:[function(e,t,n){(function(n){(function(){var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=l;var i=e(`./_stream_readable`),a=e(`./_stream_writable`);e(`inherits`)(l,i);for(var o=r(a.prototype),s=0;s<o.length;s++){var c=o[s];l.prototype[c]||(l.prototype[c]=a.prototype[c])}function l(e){if(!(this instanceof l))return new l(e);i.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once(`end`,u)))}function u(){this._writableState.ended||n.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(l.prototype,`writableHighWaterMark`,{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,`writableBuffer`,{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,`writableLength`,{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,`destroyed`,{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this)}).call(this,e(`_process`))},{"./_stream_readable":480,"./_stream_writable":482,_process:467,inherits:440}],479:[function(e,t,n){t.exports=i;var r=e(`./_stream_transform`);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}e(`inherits`)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":481,inherits:440}],480:[function(e,t,n){(function(n,r){(function(){var i;t.exports=T,T.ReadableState=w,e(`events`).EventEmitter;var a=function(e,t){return e.listeners(t).length},o=e(`./internal/streams/stream`),s=e(`buffer`).Buffer,c=(r===void 0?typeof window<`u`?window:typeof self<`u`?self:{}:r).Uint8Array||function(){},l,u=e(`util`);l=u&&u.debuglog?u.debuglog(`stream`):function(){};var d,f,p,m=e(`./internal/streams/buffer_list`),h=e(`./internal/streams/destroy`),g=e(`./internal/streams/state`).getHighWaterMark,_=e(`../errors`).codes,v=_.ERR_INVALID_ARG_TYPE,y=_.ERR_STREAM_PUSH_AFTER_EOF,b=_.ERR_METHOD_NOT_IMPLEMENTED,x=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e(`inherits`)(T,o);var S=h.errorOrDestroy,C=[`error`,`close`,`destroy`,`pause`,`resume`];function w(t,n,r){i||=e(`./_stream_duplex`),t||={},typeof r!=`boolean`&&(r=n instanceof i),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=g(this,t,`readableHighWaterMark`,r),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.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(d||=e(`string_decoder/`).StringDecoder,this.decoder=new d(t.encoding),this.encoding=t.encoding)}function T(t){if(i||=e(`./_stream_duplex`),!(this instanceof T))return new T(t);var n=this instanceof i;this._readableState=new w(t,this,n),this.readable=!0,t&&(typeof t.read==`function`&&(this._read=t.read),typeof t.destroy==`function`&&(this._destroy=t.destroy)),o.call(this)}function E(e,t,n,r,i){l(`readableAddChunk`,t);var a,o=e._readableState;if(t===null)o.reading=!1,function(e,t){if(l(`onEofChunk`),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?k(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,A(e)))}}(e,o);else if(i||(a=function(e,t){var n;r=t,s.isBuffer(r)||r instanceof c||typeof t==`string`||t===void 0||e.objectMode||(n=new v(`chunk`,[`string`,`Buffer`,`Uint8Array`],t));var r;return n}(o,t)),a)S(e,a);else if(o.objectMode||t&&t.length>0)if(typeof t==`string`||o.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),r)o.endEmitted?S(e,new x):D(e,o,t,!0);else if(o.ended)S(e,new y);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||t.length!==0?D(e,o,t,!1):j(e,o)):D(e,o,t,!1)}else r||(o.reading=!1,j(e,o));return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function D(e,t,n,r){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit(`data`,n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&k(e)),j(e,t)}Object.defineProperty(T.prototype,`destroyed`,{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),T.prototype.destroy=h.destroy,T.prototype._undestroy=h.undestroy,T.prototype._destroy=function(e,t){t(e)},T.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:typeof e==`string`&&((t||=r.defaultEncoding)!==r.encoding&&(e=s.from(e,t),t=``),n=!0),E(this,e,t,!1,n)},T.prototype.unshift=function(e){return E(this,e,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(t){d||=e(`string_decoder/`).StringDecoder;var n=new d(t);this._readableState.decoder=n,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i=``;r!==null;)i+=n.write(r.data),r=r.next;return this._readableState.buffer.clear(),i!==``&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};function O(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e==e?(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}function k(e){var t=e._readableState;l(`emitReadable`,t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(l(`emitReadable`,t.flowing),t.emittedReadable=!0,n.nextTick(A,e))}function A(e){var t=e._readableState;l(`emitReadable_`,t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit(`readable`),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,I(e)}function j(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(M,e,t))}function M(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var n=t.length;if(l(`maybeReadMore read 0`),e.read(0),n===t.length)break}t.readingMore=!1}function N(e){var t=e._readableState;t.readableListening=e.listenerCount(`readable`)>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount(`data`)>0&&e.resume()}function P(e){l(`readable nexttick read 0`),e.read(0)}function F(e,t){l(`resume`,t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(`resume`),I(e),t.flowing&&!t.reading&&e.read(0)}function I(e){var t=e._readableState;for(l(`flow`,t.flowing);t.flowing&&e.read()!==null;);}function ee(e,t){return t.length===0?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function L(e){var t=e._readableState;l(`endReadable`,t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(R,t,e))}function R(e,t){if(l(`endReadableNT`,e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function z(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}T.prototype.read=function(e){l(`read`,e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark===0?t.length>0:t.length>=t.highWaterMark)||t.ended))return l(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?L(this):k(this),null;if((e=O(e,t))===0&&t.ended)return t.length===0&&L(this),null;var r,i=t.needReadable;return l(`need readable`,i),(t.length===0||t.length-e<t.highWaterMark)&&l(`length less than watermark`,i=!0),t.ended||t.reading?l(`reading or ended`,i=!1):i&&(l(`do read`),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=O(n,t))),(r=e>0?ee(e,t):null)===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&L(this)),r!==null&&this.emit(`data`,r),r},T.prototype._read=function(e){S(this,new b(`_read()`))},T.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,l(`pipe count=%d opts=%j`,i.pipesCount,t);var o=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?c:g;function s(t,n){l(`onunpipe`),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,l(`cleanup`),e.removeListener(`close`,m),e.removeListener(`finish`,h),e.removeListener(`drain`,u),e.removeListener(`error`,p),e.removeListener(`unpipe`,s),r.removeListener(`end`,c),r.removeListener(`end`,g),r.removeListener(`data`,f),d=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function c(){l(`onend`),e.end()}i.endEmitted?n.nextTick(o):r.once(`end`,o),e.on(`unpipe`,s);var u=function(e){return function(){var t=e._readableState;l(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&a(e,`data`)&&(t.flowing=!0,I(e))}}(r);e.on(`drain`,u);var d=!1;function f(t){l(`ondata`);var n=e.write(t);l(`dest.write`,n),!1===n&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&z(i.pipes,e)!==-1)&&!d&&(l(`false write response, pause`,i.awaitDrain),i.awaitDrain++),r.pause())}function p(t){l(`onerror`,t),g(),e.removeListener(`error`,p),a(e,`error`)===0&&S(e,t)}function m(){e.removeListener(`finish`,h),g()}function h(){l(`onfinish`),e.removeListener(`close`,m),g()}function g(){l(`unpipe`),r.unpipe(e)}return r.on(`data`,f),function(e,t,n){if(typeof e.prependListener==`function`)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,`error`,p),e.once(`close`,m),e.once(`finish`,h),e.emit(`pipe`,r),i.flowing||(l(`pipe resume`),r.resume()),e},T.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes||(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit(`unpipe`,this,{hasUnpiped:!1});return this}var o=z(t.pipes,e);return o===-1||(t.pipes.splice(o,1),--t.pipesCount,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit(`unpipe`,this,n)),this},T.prototype.on=function(e,t){var r=o.prototype.on.call(this,e,t),i=this._readableState;return e===`data`?(i.readableListening=this.listenerCount(`readable`)>0,!1!==i.flowing&&this.resume()):e===`readable`&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,l(`on readable`,i.length,i.reading),i.length?k(this):i.reading||n.nextTick(P,this))),r},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(e,t){var r=o.prototype.removeListener.call(this,e,t);return e===`readable`&&n.nextTick(N,this),r},T.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return e!==`readable`&&e!==void 0||n.nextTick(N,this),t},T.prototype.resume=function(){var e=this._readableState;return e.flowing||(l(`resume`),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(F,e,t))}(this,e)),e.paused=!1,this},T.prototype.pause=function(){return l(`call pause flowing=%j`,this._readableState.flowing),!1!==this._readableState.flowing&&(l(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this._readableState.paused=!0,this},T.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on(`end`,(function(){if(l(`wrapped end`),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on(`data`,(function(i){(l(`wrapped data`),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&i==null)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)this[i]===void 0&&typeof e[i]==`function`&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<C.length;a++)e.on(C[a],this.emit.bind(this,C[a]));return this._read=function(t){l(`wrapped _read`,t),r&&(r=!1,e.resume())},this},typeof Symbol==`function`&&(T.prototype[Symbol.asyncIterator]=function(){return f===void 0&&(f=e(`./internal/streams/async_iterator`)),f(this)}),Object.defineProperty(T.prototype,`readableHighWaterMark`,{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,`readableBuffer`,{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,`readableFlowing`,{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),T._fromList=ee,Object.defineProperty(T.prototype,`readableLength`,{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol==`function`&&(T.from=function(t,n){return p===void 0&&(p=e(`./internal/streams/from`)),p(T,t,n)})}).call(this)}).call(this,e(`_process`),typeof global<`u`?global: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,t,n){t.exports=u;var r=e(`../errors`).codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,a=r.ERR_MULTIPLE_CALLBACK,o=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,c=e(`./_stream_duplex`);function l(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit(`error`,new a);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);c.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform==`function`&&(this._transform=e.transform),typeof e.flush==`function`&&(this._flush=e.flush)),this.on(`prefinish`,d)}function d(){var e=this;typeof this._flush!=`function`||this._readableState.destroyed?f(this,null,null):this._flush((function(t,n){f(e,t,n)}))}function f(e,t,n){if(t)return e.emit(`error`,t);if(n!=null&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new o;return e.push(null)}e(`inherits`)(u,c),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,n){n(new i(`_transform()`))},u.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;t.writechunk===null||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,(function(e){t(e)}))}},{"../errors":477,"./_stream_duplex":478,inherits:440}],482:[function(e,t,n){(function(n,r){(function(){function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){(function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e})(t,e)}}var a;t.exports=T,T.WritableState=w;var o={deprecate:e(`util-deprecate`)},s=e(`./internal/streams/stream`),c=e(`buffer`).Buffer,l=(r===void 0?typeof window<`u`?window:typeof self<`u`?self:{}:r).Uint8Array||function(){},u,d=e(`./internal/streams/destroy`),f=e(`./internal/streams/state`).getHighWaterMark,p=e(`../errors`).codes,m=p.ERR_INVALID_ARG_TYPE,h=p.ERR_METHOD_NOT_IMPLEMENTED,g=p.ERR_MULTIPLE_CALLBACK,_=p.ERR_STREAM_CANNOT_PIPE,v=p.ERR_STREAM_DESTROYED,y=p.ERR_STREAM_NULL_VALUES,b=p.ERR_STREAM_WRITE_AFTER_END,x=p.ERR_UNKNOWN_ENCODING,S=d.errorOrDestroy;function C(){}function w(t,r,o){a||=e(`./_stream_duplex`),t||={},typeof o!=`boolean`&&(o=r instanceof a),this.objectMode=!!t.objectMode,o&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=f(this,t,`writableHighWaterMark`,o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!1!==t.decodeStrings,this.defaultEncoding=t.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var r=e._writableState,i=r.sync,a=r.writecb;if(typeof a!=`function`)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)(function(e,t,r,i,a){--t.pendingcb,r?(n.nextTick(a,i),n.nextTick(j,e,t),e._writableState.errorEmitted=!0,S(e,i)):(a(i),e._writableState.errorEmitted=!0,S(e,i),j(e,t))})(e,r,i,t,a);else{var o=k(r)||e.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||O(e,r),i?n.nextTick(D,e,r,o,a):D(e,r,o,a)}})(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function T(t){var n=this instanceof(a||=e(`./_stream_duplex`));if(!n&&!u.call(T,this))return new T(t);this._writableState=new w(t,this,n),this.writable=!0,t&&(typeof t.write==`function`&&(this._write=t.write),typeof t.writev==`function`&&(this._writev=t.writev),typeof t.destroy==`function`&&(this._destroy=t.destroy),typeof t.final==`function`&&(this._final=t.final)),s.call(this)}function E(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v(`write`)):n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function D(e,t,n,r){n||function(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit(`drain`))}(e,t),t.pendingcb--,r(),j(e,t)}function O(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,a=Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,c=!0;n;)a[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;a.allBuffers=c,E(e,t,!0,t.length,a,``,o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,d=n.callback;if(E(e,t,!1,t.objectMode?1:l.length,l,u,d),n=n.next,t.bufferedRequestCount--,t.writing)break}n===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function k(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function A(e,t){e._final((function(n){t.pendingcb--,n&&S(e,n),t.prefinished=!0,e.emit(`prefinish`),j(e,t)}))}function j(e,t){var r=k(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||(typeof e._final!=`function`||t.destroyed?(t.prefinished=!0,e.emit(`prefinish`)):(t.pendingcb++,t.finalCalled=!0,n.nextTick(A,e,t)))}(e,t),t.pendingcb===0&&(t.finished=!0,e.emit(`finish`),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}e(`inherits`)(T,s),w.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(w.prototype,`buffer`,{get:o.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`?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===T&&e&&e._writableState instanceof w}})):u=function(e){return e instanceof this},T.prototype.pipe=function(){S(this,new _)},T.prototype.write=function(e,t,r){var i,a=this._writableState,o=!1,s=!a.objectMode&&(i=e,c.isBuffer(i)||i instanceof l);return s&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),typeof t==`function`&&(r=t,t=null),s?t=`buffer`:t||=a.defaultEncoding,typeof r!=`function`&&(r=C),a.ending?function(e,t){var r=new b;S(e,r),n.nextTick(t,r)}(this,r):(s||function(e,t,r,i){var a;return r===null?a=new y:typeof r==`string`||t.objectMode||(a=new m(`chunk`,[`string`,`Buffer`],r)),!a||(S(e,a),n.nextTick(i,a),!1)}(this,a,e,r))&&(a.pendingcb++,o=function(e,t,n,r,i,a){if(!n){var o=function(e,t,n){return e.objectMode||!1===e.decodeStrings||typeof t!=`string`||(t=c.from(t,n)),t}(t,r,i);r!==o&&(n=!0,i=`buffer`,r=o)}var s=t.objectMode?1:r.length;t.length+=s;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else E(e,t,!1,s,r,i,a);return l}(this,a,s,e,t,r)),o},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||O(this,e))},T.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,`writableBuffer`,{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(T.prototype,`writableHighWaterMark`,{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),T.prototype._write=function(e,t,n){n(new h(`_write()`))},T.prototype._writev=null,T.prototype.end=function(e,t,r){var i=this._writableState;return typeof e==`function`?(r=e,e=null,t=null):typeof t==`function`&&(r=t,t=null),e!=null&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,r){t.ending=!0,j(e,t),r&&(t.finished?n.nextTick(r):e.once(`finish`,r)),t.ended=!0,e.writable=!1}(this,i,r),this},Object.defineProperty(T.prototype,`writableLength`,{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(T.prototype,`destroyed`,{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),T.prototype.destroy=d.destroy,T.prototype._undestroy=d.undestroy,T.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,e(`_process`),typeof global<`u`?global: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,t,n){(function(n){(function(){var r;function i(e,t,n){return(t=function(e){var t=function(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}(e,`string`);return typeof t==`symbol`?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=e(`./end-of-stream`),o=Symbol(`lastResolve`),s=Symbol(`lastReject`),c=Symbol(`error`),l=Symbol(`ended`),u=Symbol(`lastPromise`),d=Symbol(`handlePromise`),f=Symbol(`stream`);function p(e,t){return{value:e,done:t}}function m(e){var t=e[o];if(t!==null){var n=e[f].read();n!==null&&(e[u]=null,e[o]=null,e[s]=null,t(p(n,!1)))}}function h(e){n.nextTick(m,e)}var g=Object.getPrototypeOf((function(){})),_=Object.setPrototypeOf((i(r={get stream(){return this[f]},next:function(){var e=this,t=this[c];if(t!==null)return Promise.reject(t);if(this[l])return Promise.resolve(p(void 0,!0));if(this[f].destroyed)return new Promise((function(t,r){n.nextTick((function(){e[c]?r(e[c]):t(p(void 0,!0))}))}));var r,i=this[u];if(i)r=new Promise(function(e,t){return function(n,r){e.then((function(){t[l]?n(p(void 0,!0)):t[d](n,r)}),r)}}(i,this));else{var a=this[f].read();if(a!==null)return Promise.resolve(p(a,!1));r=new Promise(this[d])}return this[u]=r,r}},Symbol.asyncIterator,(function(){return this})),i(r,`return`,(function(){var e=this;return new Promise((function(t,n){e[f].destroy(null,(function(e){e?n(e):t(p(void 0,!0))}))}))})),r),g);t.exports=function(e){var t,n=Object.create(_,(i(t={},f,{value:e,writable:!0}),i(t,o,{value:null,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,l,{value:e._readableState.endEmitted,writable:!0}),i(t,d,{value:function(e,t){var r=n[f].read();r?(n[u]=null,n[o]=null,n[s]=null,e(p(r,!1))):(n[o]=e,n[s]=t)},writable:!0}),t));return n[u]=null,a(e,(function(e){if(e&&e.code!==`ERR_STREAM_PREMATURE_CLOSE`){var t=n[s];t!==null&&(n[u]=null,n[o]=null,n[s]=null,t(e)),n[c]=e;return}var r=n[o];r!==null&&(n[u]=null,n[o]=null,n[s]=null,r(p(void 0,!0))),n[l]=!0})),e.on(`readable`,h.bind(null,n)),n}}).call(this)}).call(this,e(`_process`))},{"./end-of-stream":486,_process:467}],484:[function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?r(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}(e,`string`);return typeof t==`symbol`?t:String(t)}var c=e(`buffer`).Buffer,l=e(`util`).inspect,u=l&&l.custom||`inspect`;t.exports=function(){function e(){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,e),this.head=null,this.tail=null,this.length=0}var t,n,r;return t=e,(n=[{key:`push`,value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:`unshift`,value:function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}},{key:`shift`,value:function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:`clear`,value:function(){this.head=this.tail=null,this.length=0}},{key:`join`,value:function(e){if(this.length===0)return``;for(var t=this.head,n=``+t.data;t=t.next;)n+=e+t.data;return n}},{key:`concat`,value:function(e){if(this.length===0)return c.alloc(0);for(var t,n,r,i=c.allocUnsafe(e>>>0),a=this.head,o=0;a;)t=a.data,n=i,r=o,c.prototype.copy.call(t,n,r),o+=a.data.length,a=a.next;return i}},{key:`consume`,value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:`first`,value:function(){return this.head.data}},{key:`_getString`,value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,a=e>i.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),(e-=a)==0){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:`_getBuffer`,value:function(e){var t=c.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),(e-=a)==0){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:u,value:function(e,t){return l(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,`prototype`,{writable:!1}),e}()},{buffer:220,util:188}],485:[function(e,t,n){(function(e){(function(){function n(e,t){i(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(`close`)}function i(e,t){e.emit(`error`,t)}t.exports={destroy:function(t,a){var o=this,s=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return s||c?(a?a(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(i,this,t)):e.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!a&&t?o._writableState?o._writableState.errorEmitted?e.nextTick(r,o):(o._writableState.errorEmitted=!0,e.nextTick(n,o,t)):e.nextTick(n,o,t):a?(e.nextTick(r,o),a(t)):e.nextTick(r,o)})),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(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit(`error`,t)}}}).call(this)}).call(this,e(`_process`))},{_process:467}],486:[function(e,t,n){var r=e(`../../../errors`).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function e(t,n,a){if(typeof n==`function`)return e(t,null,n);n||={},a=function(e){var t=!1;return function(){if(!t){t=!0;var n=[...arguments];e.apply(this,n)}}}(a||i);var o=n.readable||!1!==n.readable&&t.readable,s=n.writable||!1!==n.writable&&t.writable,c=function(){t.writable||u()},l=t._writableState&&t._writableState.finished,u=function(){s=!1,l=!0,o||a.call(t)},d=t._readableState&&t._readableState.endEmitted,f=function(){o=!1,d=!0,s||a.call(t)},p=function(e){a.call(t,e)},m=function(){var e;return o&&!d?(t._readableState&&t._readableState.ended||(e=new r),a.call(t,e)):s&&!l?(t._writableState&&t._writableState.ended||(e=new r),a.call(t,e)):void 0},h=function(){t.req.on(`finish`,u)};return function(e){return e.setHeader&&typeof e.abort==`function`}(t)?(t.on(`complete`,u),t.on(`abort`,m),t.req?h():t.on(`request`,h)):s&&!t._writableState&&(t.on(`end`,c),t.on(`close`,c)),t.on(`end`,f),t.on(`finish`,u),!1!==n.error&&t.on(`error`,p),t.on(`close`,m),function(){t.removeListener(`complete`,u),t.removeListener(`abort`,m),t.removeListener(`request`,h),t.req&&t.req.removeListener(`finish`,u),t.removeListener(`end`,c),t.removeListener(`close`,c),t.removeListener(`finish`,u),t.removeListener(`end`,f),t.removeListener(`error`,p),t.removeListener(`close`,m)}}},{"../../../errors":477}],487:[function(e,t,n){t.exports=function(){throw Error(`Readable.from is not available in the browser`)}},{}],488:[function(e,t,n){var r,i=e(`../../../errors`).codes,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(t,n,i,a){a=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(a);var s=!1;t.on(`close`,(function(){s=!0})),r===void 0&&(r=e(`./end-of-stream`)),r(t,{readable:n,writable:i},(function(e){if(e)return a(e);s=!0,a()}));var c=!1;return function(e){if(!s&&!c)return c=!0,function(e){return e.setHeader&&typeof e.abort==`function`}(t)?t.abort():typeof t.destroy==`function`?t.destroy():void a(e||new o(`pipe`))}}function l(e){e()}function u(e,t){return e.pipe(t)}function d(e){return e.length&&typeof e[e.length-1]==`function`?e.pop():s}t.exports=function(){var e=[...arguments],t,n=d(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new a(`streams`);var r=e.map((function(i,a){var o=a<e.length-1;return c(i,o,a>0,(function(e){t||=e,e&&r.forEach(l),o||(r.forEach(l),n(t))}))}));return e.reduce(u)}},{"../../../errors":477,"./end-of-stream":486}],489:[function(e,t,n){var r=e(`../../../errors`).codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,n,i){var a=function(e,t,n){return e.highWaterMark==null?t?e[n]:null:e.highWaterMark}(t,i,n);if(a!=null){if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new r(i?n:`highWaterMark`,a);return Math.floor(a)}return e.objectMode?16:16384}}},{"../../../errors":477}],490:[function(e,t,n){t.exports=e(`events`).EventEmitter},{events:422}],491:[function(e,t,n){(n=t.exports=e(`./lib/_stream_readable.js`)).Stream=n,n.Readable=n,n.Writable=e(`./lib/_stream_writable.js`),n.Duplex=e(`./lib/_stream_duplex.js`),n.Transform=e(`./lib/_stream_transform.js`),n.PassThrough=e(`./lib/_stream_passthrough.js`),n.finished=e(`./lib/internal/streams/end-of-stream.js`),n.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,t,n){var r=function(e){var t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i=typeof Symbol==`function`?Symbol:{},a=i.iterator||`@@iterator`,o=i.asyncIterator||`@@asyncIterator`,s=i.toStringTag||`@@toStringTag`;function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},``)}catch{c=function(e,t,n){return e[t]=n}}function l(e,t,n,i){var a=t&&t.prototype instanceof f?t:f,o=Object.create(a.prototype);return r(o,`_invoke`,{value:x(e,n,new T(i||[]))}),o}function u(e,t,n){try{return{type:`normal`,arg:e.call(t,n)}}catch(e){return{type:`throw`,arg:e}}}e.wrap=l;var d={};function f(){}function p(){}function m(){}var h={};c(h,a,(function(){return this}));var g=Object.getPrototypeOf,_=g&&g(g(E([])));_&&_!==t&&n.call(_,a)&&(h=_);var v=m.prototype=f.prototype=Object.create(h);function y(e){[`next`,`throw`,`return`].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var i;r(this,`_invoke`,{value:function(r,a){function o(){return new t((function(i,o){(function r(i,a,o,s){var c=u(e[i],e,a);if(c.type!==`throw`){var l=c.arg,d=l.value;return d&&typeof d==`object`&&n.call(d,`__await`)?t.resolve(d.__await).then((function(e){r(`next`,e,o,s)}),(function(e){r(`throw`,e,o,s)})):t.resolve(d).then((function(e){l.value=e,o(l)}),(function(e){return r(`throw`,e,o,s)}))}s(c.arg)})(r,a,i,o)}))}return i=i?i.then(o,o):o()}})}function x(e,t,n){var r=`suspendedStart`;return function(i,a){if(r===`executing`)throw Error(`Generator is already running`);if(r===`completed`){if(i===`throw`)throw a;return D()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=S(o,n);if(s){if(s===d)continue;return s}}if(n.method===`next`)n.sent=n._sent=n.arg;else if(n.method===`throw`){if(r===`suspendedStart`)throw r=`completed`,n.arg;n.dispatchException(n.arg)}else n.method===`return`&&n.abrupt(`return`,n.arg);r=`executing`;var c=u(e,t,n);if(c.type===`normal`){if(r=n.done?`completed`:`suspendedYield`,c.arg===d)continue;return{value:c.arg,done:n.done}}c.type===`throw`&&(r=`completed`,n.method=`throw`,n.arg=c.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(r===void 0)return t.delegate=null,n===`throw`&&e.iterator.return&&(t.method=`return`,t.arg=void 0,S(e,t),t.method===`throw`)||n!==`return`&&(t.method=`throw`,t.arg=TypeError(`The iterator does not provide a '`+n+`' method`)),d;var i=u(r,e.iterator,t.arg);if(i.type===`throw`)return t.method=`throw`,t.arg=i.arg,t.delegate=null,d;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,t.method!==`return`&&(t.method=`next`,t.arg=void 0),t.delegate=null,d):a:(t.method=`throw`,t.arg=TypeError(`iterator result is not an object`),t.delegate=null,d)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type=`normal`,delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:`root`}],e.forEach(C,this),this.reset(!0)}function E(e){if(e){var t=e[a];if(t)return t.call(e);if(typeof e.next==`function`)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:D}}function D(){return{value:void 0,done:!0}}return p.prototype=m,r(v,`constructor`,{value:m,configurable:!0}),r(m,`constructor`,{value:p,configurable:!0}),p.displayName=c(m,s,`GeneratorFunction`),e.isGeneratorFunction=function(e){var t=typeof e==`function`&&e.constructor;return!!t&&(t===p||(t.displayName||t.name)===`GeneratorFunction`)},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,s,`GeneratorFunction`)),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),c(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,a){a===void 0&&(a=Promise);var o=new b(l(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},y(v),c(v,s,`Generator`),c(v,a,(function(){return this})),c(v,`toString`,(function(){return`[object Generator]`})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=E,T.prototype={constructor:T,reset:function(e){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(w),!e)for(var t in this)t.charAt(0)===`t`&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type===`throw`)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return o.type=`throw`,o.arg=e,t.next=n,r&&(t.method=`next`,t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if(a.tryLoc===`root`)return r(`end`);if(a.tryLoc<=this.prev){var s=n.call(a,`catchLoc`),c=n.call(a,`finallyLoc`);if(s&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw Error(`try statement without catch or finally`);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,`finallyLoc`)&&this.prev<i.finallyLoc){var a=i;break}}a&&(e===`break`||e===`continue`)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method=`next`,this.next=a.finallyLoc,d):this.complete(o)},complete:function(e,t){if(e.type===`throw`)throw e.arg;return e.type===`break`||e.type===`continue`?this.next=e.arg:e.type===`return`?(this.rval=this.arg=e.arg,this.method=`return`,this.next=`end`):e.type===`normal`&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if(r.type===`throw`){var i=r.arg;w(n)}return i}}throw Error(`illegal catch attempt`)},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},this.method===`next`&&(this.arg=void 0),d}},e}(typeof t==`object`?t.exports:{});try{regeneratorRuntime=r}catch{typeof globalThis==`object`?globalThis.regeneratorRuntime=r:Function(`r`,`regeneratorRuntime = r`)(r)}},{}],493:[function(e,t,n){var r=e(`buffer`).Buffer,i=e(`inherits`),a=e(`hash-base`),o=Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],l=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],u=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d=[0,1518500249,1859775393,2400959708,2840853838],f=[1352829926,1548603684,1836072691,2053994217,0];function p(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function m(e,t){return e<<t|e>>>32-t}function h(e,t,n,r,i,a,o,s){return m(e+(t^n^r)+a+o|0,s)+i|0}function g(e,t,n,r,i,a,o,s){return m(e+(t&n|~t&r)+a+o|0,s)+i|0}function _(e,t,n,r,i,a,o,s){return m(e+((t|~n)^r)+a+o|0,s)+i|0}function v(e,t,n,r,i,a,o,s){return m(e+(t&r|n&~r)+a+o|0,s)+i|0}function y(e,t,n,r,i,a,o,s){return m(e+(t^(n|~r))+a+o|0,s)+i|0}i(p,a),p.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,i=0|this._c,a=0|this._d,p=0|this._e,b=0|this._a,x=0|this._b,S=0|this._c,C=0|this._d,w=0|this._e,T=0;T<80;T+=1){var E,D;T<16?(E=h(n,r,i,a,p,e[s[T]],d[0],l[T]),D=y(b,x,S,C,w,e[c[T]],f[0],u[T])):T<32?(E=g(n,r,i,a,p,e[s[T]],d[1],l[T]),D=v(b,x,S,C,w,e[c[T]],f[1],u[T])):T<48?(E=_(n,r,i,a,p,e[s[T]],d[2],l[T]),D=_(b,x,S,C,w,e[c[T]],f[2],u[T])):T<64?(E=v(n,r,i,a,p,e[s[T]],d[3],l[T]),D=g(b,x,S,C,w,e[c[T]],f[3],u[T])):(E=y(n,r,i,a,p,e[s[T]],d[4],l[T]),D=h(b,x,S,C,w,e[c[T]],f[4],u[T])),n=p,p=a,a=m(i,10),i=r,r=E,b=w,w=C,C=m(S,10),S=x,x=D}var O=this._b+i+C|0;this._b=this._c+a+w|0,this._c=this._d+p+b|0,this._d=this._e+n+x|0,this._e=this._a+r+S|0,this._a=O},p.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=p},{buffer:220,"hash-base":425,inherits:440}],494:[function(e,t,n){var r=e(`buffer`),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(a(r,n),n.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return i(e,t,n)},o.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var r=i(e);return t===void 0?r.fill(0):typeof n==`string`?r.fill(t,n):r.fill(t),r},o.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return i(e)},o.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r.SlowBuffer(e)}},{buffer:220}],495:[function(e,t,n){(function(n){(function(){var r,i=e(`buffer`),a=i.Buffer,o={};for(r in i)i.hasOwnProperty(r)&&r!==`SlowBuffer`&&r!==`Buffer`&&(o[r]=i[r]);var s=o.Buffer={};for(r in a)a.hasOwnProperty(r)&&r!==`allocUnsafe`&&r!==`allocUnsafeSlow`&&(s[r]=a[r]);if(o.Buffer.prototype=a.prototype,s.from&&s.from!==Uint8Array.from||(s.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type `+typeof e);if(e&&e.length===void 0)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);return a(e,t,n)}),s.alloc||=function(e,t,n){if(typeof e!=`number`)throw TypeError(`The "size" argument must be of type number. Received type `+typeof e);if(e<0||e>=2*(1<<30))throw RangeError(`The value "`+e+`" is invalid for option "size"`);var r=a(e);return t&&t.length!==0?typeof n==`string`?r.fill(t,n):r.fill(t):r.fill(0),r},!o.kStringMaxLength)try{o.kStringMaxLength=n.binding(`buffer`).kStringMaxLength}catch{}o.constants||(o.constants={MAX_LENGTH:o.kMaxLength},o.kStringMaxLength&&(o.constants.MAX_STRING_LENGTH=o.kStringMaxLength)),t.exports=o}).call(this)}).call(this,e(`_process`))},{_process:467,buffer:220}],496:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0});let r=e(`xmlchars/xml/1.0/ed5`),i=e(`xmlchars/xml/1.1/ed2`),a=e(`xmlchars/xmlns/1.0/ed3`);var o=r.isS,s=r.isChar,c=r.isNameStartChar,l=r.isNameChar,u=r.S_LIST,d=r.NAME_RE,f=i.isChar,p=a.isNCNameStartChar,m=a.isNCNameChar,h=a.NC_NAME_RE;let g=`http://www.w3.org/XML/1998/namespace`,_=`http://www.w3.org/2000/xmlns/`,v={__proto__:null,xml:g,xmlns:_},y={__proto__:null,amp:`&`,gt:`>`,lt:`<`,quot:`"`,apos:`'`},b=e=>e===34||e===39,x=[34,39],S=[...x,91,62],C=[...x,60,93],w=[61,63,...u],T=[...u,62,38,60];function E(e,t,n){switch(t){case`xml`:n!==g&&e.fail(`xml prefix must be bound to ${g}.`);break;case`xmlns`:n!==_&&e.fail(`xmlns prefix must be bound to ${_}.`)}switch(n){case _:e.fail(t===``?`the default namespace may not be set to ${n}.`:`may not assign a prefix (even "xmlns") to the URI ${_}.`);break;case g:switch(t){case`xml`:break;case``:e.fail(`the default namespace may not be set to ${n}.`);break;default:e.fail(`may not assign the xml namespace to another prefix.`)}}}let D=e=>h.test(e),O=e=>d.test(e);n.EVENTS=[`xmldecl`,`text`,`processinginstruction`,`doctype`,`comment`,`opentagstart`,`attribute`,`opentag`,`closetag`,`cdata`,`error`,`end`,`ready`];let k={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`};n.SaxesParser=class{constructor(e){this.opt=e??{},this.fragmentOpt=!!this.opt.fragment;let t=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=!1!==this.opt.position,this.fileName=this.opt.fileName,t){this.nameStartCheck=p,this.nameCheck=m,this.isName=D,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},v);let e=this.opt.additionalNamespaces;e!=null&&(function(e,t){for(let n of Object.keys(t))E(e,n,t[n])}(this,e),Object.assign(this.ns,e))}else this.nameStartCheck=c,this.nameCheck=l,this.isName=O,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 e;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=[];let{fragmentOpt:t}=this;this.state=t?13:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=t,this.xmlDeclPossible=!t,this.xmlDeclExpects=[`version`],this.entityReturnState=void 0;let{defaultXMLVersion:n}=this.opt;if(n===void 0){if(!0===this.opt.forceXMLVersion)throw Error(`forceXMLVersion set but defaultXMLVersion is not set`);n=`1.0`}this.setXMLVersion(n),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(y),(e=this.readyHandler)==null||e.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(e,t){this[k[e]]=t}off(e){this[k[e]]=void 0}makeError(e){let t=this.fileName??``;return this.trackPosition&&(t.length>0&&(t+=`:`),t+=`${this.line}:${this.column}`),t.length>0&&(t+=`: `),Error(t+e)}fail(e){let t=this.makeError(e),n=this.errorHandler;if(n===void 0)throw t;return n(t),this}write(e){if(this.closed)return this.fail(`cannot write after close; assign an onready handler.`);let t=!1;e===null?(t=!0,e=``):typeof e==`object`&&(e=e.toString()),this.carriedFromPrevious!==void 0&&(e=`${this.carriedFromPrevious}${e}`,this.carriedFromPrevious=void 0);let n=e.length,r=e.charCodeAt(n-1);!t&&(r===13||r>=55296&&r<=56319)&&(this.carriedFromPrevious=e[n-1],n--,e=e.slice(0,n));let{stateTable:i}=this;for(this.chunk=e,this.i=0;this.i<n;)i[this.state].call(this);return this.chunkPosition+=n,t?this.end():this}close(){return this.write(null)}getCode10(){let{chunk:e,i:t}=this;if(this.prevI=t,this.i=t+1,t>=e.length)return-1;let n=e.charCodeAt(t);if(this.column++,n<55296){if(n>=32||n===9)return n;switch(n){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:return e.charCodeAt(t+1)===10&&(this.i=t+2),this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail(`disallowed character.`),n}}if(n>56319)return n>=57344&&n<=65533||this.fail(`disallowed character.`),n;let r=65536+1024*(n-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,r>1114111&&this.fail(`disallowed character.`),r}getCode11(){let{chunk:e,i:t}=this;if(this.prevI=t,this.i=t+1,t>=e.length)return-1;let n=e.charCodeAt(t);if(this.column++,n<55296){if(n>31&&n<127||n>159&&n!==8232||n===9)return n;switch(n){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:{let n=e.charCodeAt(t+1);n!==10&&n!==133||(this.i=t+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail(`disallowed character.`),n}}if(n>56319)return n>=57344&&n<=65533||this.fail(`disallowed character.`),n;let r=65536+1024*(n-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,r>1114111&&this.fail(`disallowed character.`),r}getCodeNorm(){let e=this.getCode();return e===-2?10:e}unget(){this.i=this.prevI,this.column--}captureTo(e){let{i:t}=this,{chunk:n}=this;for(;;){let r=this.getCode(),i=r===-2,a=i?10:r;if(a===-1||e.includes(a))return this.text+=n.slice(t,this.prevI),a;i&&(this.text+=n.slice(t,this.prevI)+`
`,t=this.i)}}captureToChar(e){let{i:t}=this,{chunk:n}=this;for(;;){let r=this.getCode();switch(r){case-2:this.text+=n.slice(t,this.prevI)+`
`,t=this.i,r=10;break;case-1:return this.text+=n.slice(t),!1}if(r===e)return this.text+=n.slice(t,this.prevI),!0}}captureNameChars(){let{chunk:e,i:t}=this;for(;;){let n=this.getCode();if(n===-1)return this.name+=e.slice(t),-1;if(!l(n))return this.name+=e.slice(t,this.prevI),n===-2?10:n}}skipSpaces(){for(;;){let e=this.getCodeNorm();if(e===-1||!o(e))return e}}setXMLVersion(e){this.currentXMLVersion=e,e===`1.0`?(this.isChar=s,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(){let e=this.i,t=this.skipSpaces();switch(this.prevI!==e&&(this.xmlDeclPossible=!1),t){case 60:if(this.state=15,this.text.length!==0)throw Error(`no-empty text at start`);break;case-1:break;default:this.unget(),this.state=13,this.xmlDeclPossible=!1}}sDoctype(){var e;let t=this.captureTo(S);switch(t){case 62:(e=this.doctypeHandler)==null||e.call(this,this.text),this.text=``,this.state=13,this.doctype=!0;break;case-1:break;default:this.text+=String.fromCodePoint(t),t===91?this.state=4:b(t)&&(this.state=3,this.q=t)}}sDoctypeQuote(){let e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.q=null,this.state=2)}sDTD(){let e=this.captureTo(C);e!==-1&&(this.text+=String.fromCodePoint(e),e===93?this.state=2:e===60?this.state=6:b(e)&&(this.state=5,this.q=e))}sDTDQuoted(){let e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.state=4,this.q=null)}sDTDOpenWaka(){let e=this.getCodeNorm();switch(this.text+=String.fromCodePoint(e),e){case 33:this.state=7,this.openWakaBang=``;break;case 63:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){let e=String.fromCodePoint(this.getCodeNorm()),t=this.openWakaBang+=e;this.text+=e,t!==`-`&&(this.state=t===`--`?8:4,this.openWakaBang=``)}sDTDComment(){this.captureToChar(45)&&(this.text+=`-`,this.state=9)}sDTDCommentEnding(){let e=this.getCodeNorm();this.text+=String.fromCodePoint(e),this.state=e===45?10:8}sDTDCommentEnded(){let e=this.getCodeNorm();this.text+=String.fromCodePoint(e),e===62?this.state=4:(this.fail(`malformed comment.`),this.state=8)}sDTDPI(){this.captureToChar(63)&&(this.text+=`?`,this.state=12)}sDTDPIEnding(){let e=this.getCodeNorm();this.text+=String.fromCodePoint(e),e===62&&(this.state=4)}sText(){this.tags.length===0?this.handleTextOutsideRoot():this.handleTextInRoot()}sEntity(){let{i:e}=this,{chunk:t}=this;e:for(;;)switch(this.getCode()){case-2:this.entity+=t.slice(e,this.prevI)+`
`,e=this.i;break;case 59:{let{entityReturnState:n}=this,r=this.entity+t.slice(e,this.prevI),i;this.state=n,r===``?(this.fail(`empty entity name.`),i=`&;`):(i=this.parseEntity(r),this.entity=``),n===13&&this.textHandler===void 0||(this.text+=i);break e}case-1:this.entity+=t.slice(e);break e}}sOpenWaka(){let e=this.getCode();if(c(e))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(e){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 e;let t=this.getCodeNorm();t===45?(this.state=19,(e=this.commentHandler)==null||e.call(this,this.text),this.text=``):(this.text+=`-`+String.fromCodePoint(t),this.state=17)}sCommentEnded(){let e=this.getCodeNorm();e===62?this.state=13:(this.fail(`malformed comment.`),this.text+=`--`+String.fromCodePoint(e),this.state=17)}sCData(){this.captureToChar(93)&&(this.state=21)}sCDataEnding(){let e=this.getCodeNorm();e===93?this.state=22:(this.text+=`]`+String.fromCodePoint(e),this.state=20)}sCDataEnding2(){var e;let t=this.getCodeNorm();switch(t){case 62:(e=this.cdataHandler)==null||e.call(this,this.text),this.text=``,this.state=13;break;case 93:this.text+=`]`;break;default:this.text+=`]]`+String.fromCodePoint(t),this.state=20}}sPIFirstChar(){let e=this.getCodeNorm();this.nameStartCheck(e)?(this.piTarget+=String.fromCodePoint(e),this.state=24):e===63||o(e)?(this.fail(`processing instruction without a target.`),this.state=e===63?26:25):(this.fail(`disallowed character in processing instruction name.`),this.piTarget+=String.fromCodePoint(e),this.state=24)}sPIRest(){let{chunk:e,i:t}=this;for(;;){let n=this.getCodeNorm();if(n===-1)return void(this.piTarget+=e.slice(t));if(!this.nameCheck(n)){this.piTarget+=e.slice(t,this.prevI);let r=n===63;r||o(n)?this.piTarget===`xml`?(this.xmlDeclPossible||this.fail(`an XML declaration must be at the start of the document.`),this.state=r?33:27):this.state=r?26:25:(this.fail(`disallowed character in processing instruction name.`),this.piTarget+=String.fromCodePoint(n));break}}}sPIBody(){if(this.text.length===0){let e=this.getCodeNorm();e===63?this.state=26:o(e)||(this.text=String.fromCodePoint(e))}else this.captureToChar(63)&&(this.state=26)}sPIEnding(){var e;let t=this.getCodeNorm();if(t===62){let{piTarget:t}=this;t.toLowerCase()===`xml`&&this.fail(`the XML declaration must appear at the start of the document.`),(e=this.piHandler)==null||e.call(this,{target:t,body:this.text}),this.piTarget=this.text=``,this.state=13}else t===63?this.text+=`?`:(this.text+=`?`+String.fromCodePoint(t),this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){let e=this.skipSpaces();e===63?this.state=33:e!==-1&&(this.state=28,this.name=String.fromCodePoint(e))}sXMLDeclName(){let e=this.captureTo(w);if(e===63)return this.state=33,this.name+=this.text,this.text=``,void this.fail(`XML declaration is incomplete.`);if(o(e)||e===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=e===61?30:29}}sXMLDeclEq(){let e=this.getCodeNorm();if(e===63)return this.state=33,void this.fail(`XML declaration is incomplete.`);o(e)||(e!==61&&this.fail(`value required.`),this.state=30)}sXMLDeclValueStart(){let e=this.getCodeNorm();if(e===63)return this.state=33,void this.fail(`XML declaration is incomplete.`);o(e)||(b(e)?this.q=e:(this.fail(`value must be quoted.`),this.q=32),this.state=31)}sXMLDeclValue(){let e=this.captureTo([this.q,63]);if(e===63)return this.state=33,this.text=``,void this.fail(`XML declaration is incomplete.`);if(e===-1)return;let t=this.text;switch(this.text=``,this.name){case`version`:{this.xmlDeclExpects=[`encoding`,`standalone`];let e=t;this.xmlDecl.version=e,/^1\.[0-9]+$/.test(e)?this.opt.forceXMLVersion||this.setXMLVersion(e):this.fail(`version number must match /^1\\.[0-9]+$/.`);break}case`encoding`:/^[A-Za-z][A-Za-z0-9._-]*$/.test(t)||this.fail(`encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/.`),this.xmlDeclExpects=[`standalone`],this.xmlDecl.encoding=t;break;case`standalone`:t!==`yes`&&t!==`no`&&this.fail(`standalone value must match "yes" or "no".`),this.xmlDeclExpects=[],this.xmlDecl.standalone=t}this.name=``,this.state=32}sXMLDeclSeparator(){let e=this.getCodeNorm();e===63?this.state=33:(o(e)||(this.fail(`whitespace required.`),this.unget()),this.state=27)}sXMLDeclEnding(){var e;this.getCodeNorm()===62?(this.piTarget===`xml`?this.name!==`version`&&this.xmlDeclExpects.includes(`version`)&&this.fail(`XML declaration must contain a version.`):this.fail(`processing instructions are not allowed before root.`),(e=this.xmldeclHandler)==null||e.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 e;let t=this.captureNameChars();if(t===-1)return;let n=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name=``,this.xmlnsOpt&&(this.topNS=n.ns=Object.create(null)),(e=this.openTagStartHandler)==null||e.call(this,n),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail(`documents may contain only one root.`),t){case 62:this.openTag();break;case 47:this.state=35;break;default:o(t)||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(){let e=this.skipSpaces();e!==-1&&(c(e)?(this.unget(),this.state=37):e===62?this.openTag():e===47?this.state=35:this.fail(`disallowed character in attribute name.`))}sAttribName(){let e=this.captureNameChars();e===61?this.state=39:o(e)?this.state=38:e===62?(this.fail(`attribute without value.`),this.pushAttrib(this.name,this.name),this.name=this.text=``,this.openTag()):e!==-1&&this.fail(`disallowed character in attribute name.`)}sAttribNameSawWhite(){let e=this.skipSpaces();switch(e){case-1:return;case 61:this.state=39;break;default:this.fail(`attribute without value.`),this.text=``,this.name=``,e===62?this.openTag():c(e)?(this.unget(),this.state=37):(this.fail(`disallowed character in attribute name.`),this.state=36)}}sAttribValue(){let e=this.getCodeNorm();b(e)?(this.q=e,this.state=40):o(e)||(this.fail(`unquoted attribute value.`),this.state=42,this.unget())}sAttribValueQuoted(){let{q:e,chunk:t}=this,{i:n}=this;for(;;)switch(this.getCode()){case e:this.pushAttrib(this.name,this.text+t.slice(n,this.prevI)),this.name=this.text=``,this.q=null,this.state=41;return;case 38:this.text+=t.slice(n,this.prevI),this.state=14,this.entityReturnState=40;return;case 10:case-2:case 9:this.text+=t.slice(n,this.prevI)+` `,n=this.i;break;case 60:this.text+=t.slice(n,this.prevI),this.fail(`disallowed character.`);return;case-1:this.text+=t.slice(n);return}}sAttribValueClosed(){let e=this.getCodeNorm();o(e)?this.state=36:e===62?this.openTag():e===47?this.state=35:c(e)?(this.fail(`no whitespace between attributes.`),this.unget(),this.state=37):this.fail(`disallowed character in attribute name.`)}sAttribValueUnquoted(){let e=this.captureTo(T);switch(e){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=``,e===62?this.openTag():this.state=36}}sCloseTag(){let e=this.captureNameChars();e===62?this.closeTag():o(e)?this.state=44:e!==-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:e,forbiddenState:t}=this,{chunk:n,textHandler:r}=this;e:for(;;)switch(this.getCode()){case 60:if(this.state=15,r!==void 0){let{text:t}=this,i=n.slice(e,this.prevI);t.length===0?i.length!==0&&r(i):(r(t+i),this.text=``)}t=0;break e;case 38:this.state=14,this.entityReturnState=13,r!==void 0&&(this.text+=n.slice(e,this.prevI)),t=0;break e;case 93:switch(t){case 0:t=1;break;case 1:t=2;break;case 2:break;default:throw Error(`impossible state`)}break;case 62:t===2&&this.fail(`the string "]]>" is disallowed in char data.`),t=0;break;case-2:r!==void 0&&(this.text+=n.slice(e,this.prevI)+`
`),e=this.i,t=0;break;case-1:r!==void 0&&(this.text+=n.slice(e));break e;default:t=0}this.forbiddenState=t}handleTextOutsideRoot(){let{i:e}=this,{chunk:t,textHandler:n}=this,r=!1;e:for(;;){let i=this.getCode();switch(i){case 60:if(this.state=15,n!==void 0){let{text:r}=this,i=t.slice(e,this.prevI);r.length===0?i.length!==0&&n(i):(n(r+i),this.text=``)}break e;case 38:this.state=14,this.entityReturnState=13,n!==void 0&&(this.text+=t.slice(e,this.prevI)),r=!0;break e;case-2:n!==void 0&&(this.text+=t.slice(e,this.prevI)+`
`),e=this.i;break;case-1:n!==void 0&&(this.text+=t.slice(e));break e;default:o(i)||(r=!0)}}r&&(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(e,t){var n;let{prefix:r,local:i}=this.qname(e),a={name:e,prefix:r,local:i,value:t};if(this.attribList.push(a),(n=this.attributeHandler)==null||n.call(this,a),r===`xmlns`){let e=t.trim();this.currentXMLVersion===`1.0`&&e===``&&this.fail(`invalid attempt to undefine prefix in XML 1.0`),this.topNS[i]=e,E(this,i,e)}else if(e===`xmlns`){let e=t.trim();this.topNS[``]=e,E(this,``,e)}}pushAttribPlain(e,t){var n;let r={name:e,value:t};this.attribList.push(r),(n=this.attributeHandler)==null||n.call(this,r)}end(){var e,t;this.sawRoot||this.fail(`document must contain a root element.`);let{tags:n}=this;for(;n.length>0;){let e=n.pop();this.fail(`unclosed tag: `+e.name)}this.state!==0&&this.state!==13&&this.fail(`unexpected end.`);let{text:r}=this;return r.length!==0&&((e=this.textHandler)==null||e.call(this,r),this.text=``),this._closed=!0,(t=this.endHandler)==null||t.call(this),this._init(),this}resolve(e){var t;let n=this.topNS[e];if(n!==void 0)return n;let{tags:r}=this;for(let t=r.length-1;t>=0;t--)if(n=r[t].ns[e],n!==void 0)return n;return n=this.ns[e],n===void 0?(t=this.opt).resolvePrefix?.call(t,e):n}qname(e){let t=e.indexOf(`:`);if(t===-1)return{prefix:``,local:e};let n=e.slice(t+1),r=e.slice(0,t);return(r===``||n===``||n.includes(`:`))&&this.fail(`malformed name: ${e}.`),{prefix:r,local:n}}processAttribsNS(){let{attribList:e}=this,t=this.tag;{let{prefix:e,local:n}=this.qname(t.name);t.prefix=e,t.local=n;let r=t.uri=this.resolve(e)??``;e!==``&&(e===`xmlns`&&this.fail(`tags may not have "xmlns" as prefix.`),r===``&&(this.fail(`unbound namespace prefix: ${JSON.stringify(e)}.`),t.uri=e))}if(e.length===0)return;let{attributes:n}=t,r=new Set;for(let t of e){let{name:e,prefix:i,local:a}=t,o,s;i===``?(o=e===`xmlns`?_:``,s=e):(o=this.resolve(i),o===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(i)}.`),o=i),s=`{${o}}${a}`),r.has(s)&&this.fail(`duplicate attribute: ${s}.`),r.add(s),t.uri=o,n[e]=t}this.attribList=[]}processAttribsPlain(){let{attribList:e}=this,t=this.tag.attributes;for(let{name:n,value:r}of e)t[n]!==void 0&&this.fail(`duplicate attribute: ${n}.`),t[n]=r;this.attribList=[]}openTag(){var e;this.processAttribs();let{tags:t}=this,n=this.tag;n.isSelfClosing=!1,(e=this.openTagHandler)==null||e.call(this,n),t.push(n),this.state=13,this.name=``}openSelfClosingTag(){var e,t;this.processAttribs();let{tags:n}=this,r=this.tag;r.isSelfClosing=!0,(e=this.openTagHandler)==null||e.call(this,r),(t=this.closeTagHandler)==null||t.call(this,r),(this.tag=n[n.length-1]??null)===null&&(this.closedRoot=!0),this.state=13,this.name=``}closeTag(){let{tags:e,name:t}=this;if(this.state=13,this.name=``,t===``)return this.fail(`weird empty close tag.`),void(this.text+=`</>`);let n=this.closeTagHandler,r=e.length;for(;r-- >0;){let r=this.tag=e.pop();if(this.topNS=r.ns,n?.(r),r.name===t)break;this.fail(`unexpected close tag.`)}r===0?this.closedRoot=!0:r<0&&(this.fail(`unmatched closing tag: ${t}.`),this.text+=`</${t}>`)}parseEntity(e){if(e[0]!==`#`){let t=this.ENTITIES[e];return t===void 0?(this.fail(this.isName(e)?`undefined entity.`:`disallowed character in entity name.`),`&${e};`):t}let t=NaN;return e[1]===`x`&&/^#x[0-9a-f]+$/i.test(e)?t=parseInt(e.slice(2),16):/^#[0-9]+$/.test(e)&&(t=parseInt(e.slice(1),10)),this.isChar(t)?String.fromCodePoint(t):(this.fail(`malformed character entity.`),`&${e};`)}}},{"xmlchars/xml/1.0/ed5":543,"xmlchars/xml/1.1/ed2":544,"xmlchars/xmlns/1.0/ed3":545}],497:[function(e,t,n){var r=e(`safe-buffer`).Buffer;function i(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){typeof e==`string`&&(t||=`utf8`,e=r.from(e,t));for(var n=this._block,i=this._blockSize,a=e.length,o=this._len,s=0;s<a;){for(var c=o%i,l=Math.min(a-s,i-c),u=0;u<l;u++)n[c+u]=e[s+u];s+=l,(o+=l)%i==0&&this._update(n)}return this._len+=a,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},i.prototype._update=function(){throw Error(`_update must be implemented by subclass`)},t.exports=i},{"safe-buffer":494}],498:[function(e,t,n){var r=t.exports=function(e){e=e.toLowerCase();var t=r[e];if(!t)throw Error(e+` is not supported (we accept pull requests)`);return new t};r.sha=e(`./sha`),r.sha1=e(`./sha1`),r.sha224=e(`./sha224`),r.sha256=e(`./sha256`),r.sha384=e(`./sha384`),r.sha512=e(`./sha512`)},{"./sha":499,"./sha1":500,"./sha224":501,"./sha256":502,"./sha384":503,"./sha512":504}],499:[function(e,t,n){var r=e(`inherits`),i=e(`./hash`),a=e(`safe-buffer`).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e){return e<<30|e>>>2}function u(e,t,n,r){return e===0?t&n|~t&r:e===2?t&n|t&r|n&r:t^n^r}r(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,c=0|this._e,d=0;d<16;++d)n[d]=e.readInt32BE(4*d);for(;d<80;++d)n[d]=n[d-3]^n[d-8]^n[d-14]^n[d-16];for(var f=0;f<80;++f){var p=~~(f/20),m=0|((t=r)<<5|t>>>27)+u(p,i,a,s)+c+n[f]+o[p];c=s,s=a,a=l(i),i=r,r=m}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=c},{"./hash":497,inherits:440,"safe-buffer":494}],500:[function(e,t,n){var r=e(`inherits`),i=e(`./hash`),a=e(`safe-buffer`).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function d(e,t,n,r){return e===0?t&n|~t&r:e===2?t&n|t&r|n&r:t^n^r}r(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,c=0|this._e,f=0;f<16;++f)n[f]=e.readInt32BE(4*f);for(;f<80;++f)n[f]=(t=n[f-3]^n[f-8]^n[f-14]^n[f-16])<<1|t>>>31;for(var p=0;p<80;++p){var m=~~(p/20),h=l(r)+d(m,i,a,s)+c+n[p]+o[m]|0;c=s,s=a,a=u(i),i=r,r=h}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=c},{"./hash":497,inherits:440,"safe-buffer":494}],501:[function(e,t,n){var r=e(`inherits`),i=e(`./sha256`),a=e(`./hash`),o=e(`safe-buffer`).Buffer,s=Array(64);function c(){this.init(),this._w=s,a.call(this,64,56)}r(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=c},{"./hash":497,"./sha256":502,inherits:440,"safe-buffer":494}],502:[function(e,t,n){var r=e(`inherits`),i=e(`./hash`),a=e(`safe-buffer`).Buffer,o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=Array(64);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e,t,n){return n^e&(t^n)}function u(e,t,n){return e&t|n&(e|t)}function d(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function f(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function p(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,c=0|this._e,m=0|this._f,h=0|this._g,g=0|this._h,_=0;_<16;++_)n[_]=e.readInt32BE(4*_);for(;_<64;++_)n[_]=0|(((t=n[_-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[_-7]+p(n[_-15])+n[_-16];for(var v=0;v<64;++v){var y=g+f(c)+l(c,m,h)+o[v]+n[v]|0,b=d(r)+u(r,i,a)|0;g=h,h=m,m=c,c=s+y|0,s=a,a=i,i=r,r=y+b|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=m+this._f|0,this._g=h+this._g|0,this._h=g+this._h|0},c.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=c},{"./hash":497,inherits:440,"safe-buffer":494}],503:[function(e,t,n){var r=e(`inherits`),i=e(`./sha512`),a=e(`./hash`),o=e(`safe-buffer`).Buffer,s=Array(160);function c(){this.init(),this._w=s,a.call(this,128,112)}r(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=o.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},t.exports=c},{"./hash":497,"./sha512":504,inherits:440,"safe-buffer":494}],504:[function(e,t,n){var r=e(`inherits`),i=e(`./hash`),a=e(`safe-buffer`).Buffer,o=[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],s=Array(160);function c(){this.init(),this._w=s,i.call(this,128,112)}function l(e,t,n){return n^e&(t^n)}function u(e,t,n){return e&t|n&(e|t)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function f(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function m(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function h(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function _(e,t){return e>>>0<t>>>0?1:0}r(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,a=0|this._dh,s=0|this._eh,c=0|this._fh,v=0|this._gh,y=0|this._hh,b=0|this._al,x=0|this._bl,S=0|this._cl,C=0|this._dl,w=0|this._el,T=0|this._fl,E=0|this._gl,D=0|this._hl,O=0;O<32;O+=2)t[O]=e.readInt32BE(4*O),t[O+1]=e.readInt32BE(4*O+4);for(;O<160;O+=2){var k=t[O-30],A=t[O-30+1],j=p(k,A),M=m(A,k),N=h(k=t[O-4],A=t[O-4+1]),P=g(A,k),F=t[O-14],I=t[O-14+1],ee=t[O-32],L=t[O-32+1],R=M+I|0,z=j+F+_(R,M)|0;z=(z=z+N+_(R=R+P|0,P)|0)+ee+_(R=R+L|0,L)|0,t[O]=z,t[O+1]=R}for(var B=0;B<160;B+=2){z=t[B],R=t[B+1];var V=u(n,r,i),H=u(b,x,S),U=d(n,b),W=d(b,n),te=f(s,w),ne=f(w,s),G=o[B],re=o[B+1],ie=l(s,c,v),K=l(w,T,E),q=D+ne|0,J=y+te+_(q,D)|0;J=(J=(J=J+ie+_(q=q+K|0,K)|0)+G+_(q=q+re|0,re)|0)+z+_(q=q+R|0,R)|0;var Y=W+H|0,ae=U+V+_(Y,W)|0;y=v,D=E,v=c,E=T,c=s,T=w,s=a+J+_(w=C+q|0,C)|0,a=i,C=S,i=r,S=x,r=n,x=b,n=J+ae+_(b=q+Y|0,q)|0}this._al=this._al+b|0,this._bl=this._bl+x|0,this._cl=this._cl+S|0,this._dl=this._dl+C|0,this._el=this._el+w|0,this._fl=this._fl+T|0,this._gl=this._gl+E|0,this._hl=this._hl+D|0,this._ah=this._ah+n+_(this._al,b)|0,this._bh=this._bh+r+_(this._bl,x)|0,this._ch=this._ch+i+_(this._cl,S)|0,this._dh=this._dh+a+_(this._dl,C)|0,this._eh=this._eh+s+_(this._el,w)|0,this._fh=this._fh+c+_(this._fl,T)|0,this._gh=this._gh+v+_(this._gl,E)|0,this._hh=this._hh+y+_(this._hl,D)|0},c.prototype._hash=function(){var e=a.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},t.exports=c},{"./hash":497,inherits:440,"safe-buffer":494}],505:[function(e,t,n){t.exports=i;var r=e(`events`).EventEmitter;function i(){r.call(this)}e(`inherits`)(i,r),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(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on(`data`,i),e.on(`drain`,a),e._isStdio||t&&!1===t.end||(n.on(`end`,s),n.on(`close`,c));var o=!1;function s(){o||(o=!0,e.end())}function c(){o||(o=!0,typeof e.destroy==`function`&&e.destroy())}function l(e){if(u(),r.listenerCount(this,`error`)===0)throw e}function u(){n.removeListener(`data`,i),e.removeListener(`drain`,a),n.removeListener(`end`,s),n.removeListener(`close`,c),n.removeListener(`error`,l),e.removeListener(`error`,l),n.removeListener(`end`,u),n.removeListener(`close`,u),e.removeListener(`close`,u)}return n.on(`error`,l),e.on(`error`,l),n.on(`end`,u),n.on(`close`,u),e.on(`close`,u),e.emit(`pipe`,n),e}},{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,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return r.call(e)==`[object Array]`}},{}],507:[function(e,t,n){t.exports=e(`./lib/_stream_duplex.js`)},{"./lib/_stream_duplex.js":508}],508:[function(e,t,n){var r=e(`process-nextick-args`),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=d;var a=Object.create(e(`core-util-is`));a.inherits=e(`inherits`);var o=e(`./_stream_readable`),s=e(`./_stream_writable`);a.inherits(d,o);for(var c=i(s.prototype),l=0;l<c.length;l++){var u=c[l];d.prototype[u]||(d.prototype[u]=s.prototype[u])}function d(e){if(!(this instanceof d))return new d(e);o.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once(`end`,f)}function f(){this.allowHalfOpen||this._writableState.ended||r.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(d.prototype,`writableHighWaterMark`,{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,`destroyed`,{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},{"./_stream_readable":510,"./_stream_writable":512,"core-util-is":383,inherits:440,"process-nextick-args":466}],509:[function(e,t,n){t.exports=a;var r=e(`./_stream_transform`),i=Object.create(e(`core-util-is`));function a(e){if(!(this instanceof a))return new a(e);r.call(this,e)}i.inherits=e(`inherits`),i.inherits(a,r),a.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":511,"core-util-is":383,inherits:440}],510:[function(e,t,n){(function(n,r){(function(){var i=e(`process-nextick-args`);t.exports=y;var a,o=e(`isarray`);y.ReadableState=v,e(`events`).EventEmitter;var s=function(e,t){return e.listeners(t).length},c=e(`./internal/streams/stream`),l=e(`safe-buffer`).Buffer,u=(r===void 0?typeof window<`u`?window:typeof self<`u`?self:{}:r).Uint8Array||function(){},d=Object.create(e(`core-util-is`));d.inherits=e(`inherits`);var f=e(`util`),p=void 0;p=f&&f.debuglog?f.debuglog(`stream`):function(){};var m,h=e(`./internal/streams/BufferList`),g=e(`./internal/streams/destroy`);d.inherits(y,c);var _=[`error`,`close`,`destroy`,`pause`,`resume`];function v(t,n){t||={};var r=n instanceof(a||=e(`./_stream_duplex`));this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,o=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||i===0?i:r&&(o||o===0)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new h,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=t.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(m||=e(`string_decoder/`).StringDecoder,this.decoder=new m(t.encoding),this.encoding=t.encoding)}function y(t){if(a||=e(`./_stream_duplex`),!(this instanceof y))return new y(t);this._readableState=new v(t,this),this.readable=!0,t&&(typeof t.read==`function`&&(this._read=t.read),typeof t.destroy==`function`&&(this._destroy=t.destroy)),c.call(this)}function b(e,t,n,r,i){var a,o=e._readableState;return t===null?(o.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,C(e)}}(e,o)):(i||(a=function(e,t){var n;r=t,l.isBuffer(r)||r instanceof u||typeof t==`string`||t===void 0||e.objectMode||(n=TypeError(`Invalid non-string/buffer chunk`));var r;return n}(o,t)),a?e.emit(`error`,a):o.objectMode||t&&t.length>0?(typeof t==`string`||o.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),r?o.endEmitted?e.emit(`error`,Error(`stream.unshift() after end event`)):x(e,o,t,!0):o.ended?e.emit(`error`,Error(`stream.push() after EOF`)):(o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||t.length!==0?x(e,o,t,!1):T(e,o)):x(e,o,t,!1))):r||(o.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}(o)}function x(e,t,n,r){t.flowing&&t.length===0&&!t.sync?(e.emit(`data`,n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&C(e)),T(e,t)}Object.defineProperty(y.prototype,`destroyed`,{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),y.prototype.destroy=g.destroy,y.prototype._undestroy=g.undestroy,y.prototype._destroy=function(e,t){this.push(null),t(e)},y.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:typeof e==`string`&&((t||=r.defaultEncoding)!==r.encoding&&(e=l.from(e,t),t=``),n=!0),b(this,e,t,!1,n)},y.prototype.unshift=function(e){return b(this,e,null,!0,!1)},y.prototype.isPaused=function(){return!1===this._readableState.flowing},y.prototype.setEncoding=function(t){return m||=e(`string_decoder/`).StringDecoder,this._readableState.decoder=new m(t),this._readableState.encoding=t,this};function S(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e==e?(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}function C(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p(`emitReadable`,t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(w,e):w(e))}function w(e){p(`emit readable`),e.emit(`readable`),k(e)}function T(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(E,e,t))}function E(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(p(`maybeReadMore read 0`),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function D(e){p(`readable nexttick read 0`),e.read(0)}function O(e,t){t.reading||(p(`resume read 0`),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit(`resume`),k(e),t.flowing&&!t.reading&&e.read(0)}function k(e){var t=e._readableState;for(p(`flow`,t.flowing);t.flowing&&e.read()!==null;);}function A(e,t){return t.length===0?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),(e-=o)===0){o===a.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=l.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),(e-=o)===0){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++i}return t.length-=i,n}(e,t),r}(e,t.buffer,t.decoder),n);var n}function j(e){var t=e._readableState;if(t.length>0)throw Error(`"endReadable()" called on non-empty stream`);t.endEmitted||(t.ended=!0,i.nextTick(M,t,e))}function M(e,t){e.endEmitted||e.length!==0||(e.endEmitted=!0,t.readable=!1,t.emit(`end`))}function N(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}y.prototype.read=function(e){p(`read`,e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return p(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?j(this):C(this),null;if((e=S(e,t))===0&&t.ended)return t.length===0&&j(this),null;var r,i=t.needReadable;return p(`need readable`,i),(t.length===0||t.length-e<t.highWaterMark)&&p(`length less than watermark`,i=!0),t.ended||t.reading?p(`reading or ended`,i=!1):i&&(p(`do read`),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=S(n,t))),(r=e>0?A(e,t):null)===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&j(this)),r!==null&&this.emit(`data`,r),r},y.prototype._read=function(e){this.emit(`error`,Error(`_read() is not implemented`))},y.prototype.pipe=function(e,t){var r=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,p(`pipe count=%d opts=%j`,a.pipesCount,t);var c=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?u:y;function l(t,n){p(`onunpipe`),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,p(`cleanup`),e.removeListener(`close`,_),e.removeListener(`finish`,v),e.removeListener(`drain`,d),e.removeListener(`error`,g),e.removeListener(`unpipe`,l),r.removeListener(`end`,u),r.removeListener(`end`,y),r.removeListener(`data`,h),f=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||d())}function u(){p(`onend`),e.end()}a.endEmitted?i.nextTick(c):r.once(`end`,c),e.on(`unpipe`,l);var d=function(e){return function(){var t=e._readableState;p(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&s(e,`data`)&&(t.flowing=!0,k(e))}}(r);e.on(`drain`,d);var f=!1,m=!1;function h(t){p(`ondata`),m=!1,!1!==e.write(t)||m||((a.pipesCount===1&&a.pipes===e||a.pipesCount>1&&N(a.pipes,e)!==-1)&&!f&&(p(`false write response, pause`,a.awaitDrain),a.awaitDrain++,m=!0),r.pause())}function g(t){p(`onerror`,t),y(),e.removeListener(`error`,g),s(e,`error`)===0&&e.emit(`error`,t)}function _(){e.removeListener(`finish`,v),y()}function v(){p(`onfinish`),e.removeListener(`close`,_),y()}function y(){p(`unpipe`),r.unpipe(e)}return r.on(`data`,h),function(e,t,n){if(typeof e.prependListener==`function`)return e.prependListener(t,n);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,`error`,g),e.once(`close`,_),e.once(`finish`,v),e.emit(`pipe`,r),a.flowing||(p(`pipe resume`),r.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes||(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit(`unpipe`,this,{hasUnpiped:!1});return this}var o=N(t.pipes,e);return o===-1||(t.pipes.splice(o,1),--t.pipesCount,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit(`unpipe`,this,n)),this},y.prototype.on=function(e,t){var n=c.prototype.on.call(this,e,t);if(e===`data`)!1!==this._readableState.flowing&&this.resume();else if(e===`readable`){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&C(this):i.nextTick(D,this))}return n},y.prototype.addListener=y.prototype.on,y.prototype.resume=function(){var e=this._readableState;return e.flowing||(p(`resume`),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(O,e,t))}(this,e)),this},y.prototype.pause=function(){return p(`call pause flowing=%j`,this._readableState.flowing),!1!==this._readableState.flowing&&(p(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this},y.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on(`end`,(function(){if(p(`wrapped end`),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on(`data`,(function(i){(p(`wrapped data`),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&i==null)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)this[i]===void 0&&typeof e[i]==`function`&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<_.length;a++)e.on(_[a],this.emit.bind(this,_[a]));return this._read=function(t){p(`wrapped _read`,t),r&&(r=!1,e.resume())},this},Object.defineProperty(y.prototype,`readableHighWaterMark`,{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),y._fromList=A}).call(this)}).call(this,e(`_process`),typeof global<`u`?global: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,t,n){t.exports=o;var r=e(`./_stream_duplex`),i=Object.create(e(`core-util-is`));function a(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit(`error`,Error(`write callback called multiple times`));n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function o(e){if(!(this instanceof o))return new o(e);r.call(this,e),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform==`function`&&(this._transform=e.transform),typeof e.flush==`function`&&(this._flush=e.flush)),this.on(`prefinish`,s)}function s(){var e=this;typeof this._flush==`function`?this._flush((function(t,n){c(e,t,n)})):c(this,null,null)}function c(e,t,n){if(t)return e.emit(`error`,t);if(n!=null&&e.push(n),e._writableState.length)throw Error(`Calling transform done when ws.length != 0`);if(e._transformState.transforming)throw Error(`Calling transform done when still transforming`);return e.push(null)}i.inherits=e(`inherits`),i.inherits(o,r),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,n){throw Error(`_transform() is not implemented`)},o.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},o.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit(`close`)}))}},{"./_stream_duplex":508,"core-util-is":383,inherits:440}],512:[function(e,t,n){(function(n,r,i){(function(){var a=e(`process-nextick-args`);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){(function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e})(t,e)}}t.exports=v;var s,c=!n.browser&&[`v0.10`,`v0.9.`].indexOf(n.version.slice(0,5))>-1?i:a.nextTick;v.WritableState=_;var l=Object.create(e(`core-util-is`));l.inherits=e(`inherits`);var u={deprecate:e(`util-deprecate`)},d=e(`./internal/streams/stream`),f=e(`safe-buffer`).Buffer,p=(r===void 0?typeof window<`u`?window:typeof self<`u`?self:{}:r).Uint8Array||function(){},m,h=e(`./internal/streams/destroy`);function g(){}function _(t,n){s||=e(`./_stream_duplex`),t||={};var r=n instanceof s;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,l=t.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=i||i===0?i:r&&(l||l===0)?l:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!1!==t.decodeStrings,this.defaultEncoding=t.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)(function(e,t,n,r,i){--t.pendingcb,n?(a.nextTick(i,r),a.nextTick(w,e,t),e._writableState.errorEmitted=!0,e.emit(`error`,r)):(i(r),e._writableState.errorEmitted=!0,e.emit(`error`,r),w(e,t))})(e,n,r,t,i);else{var o=S(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||x(e,n),r?c(b,e,n,o,i):b(e,n,o,i)}})(n,e)},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 o(this)}function v(t){if(s||=e(`./_stream_duplex`),!(m.call(v,this)||this instanceof s))return new v(t);this._writableState=new _(t,this),this.writable=!0,t&&(typeof t.write==`function`&&(this._write=t.write),typeof t.writev==`function`&&(this._writev=t.writev),typeof t.destroy==`function`&&(this._destroy=t.destroy),typeof t.final==`function`&&(this._final=t.final)),d.call(this)}function y(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function b(e,t,n,r){n||function(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit(`drain`))}(e,t),t.pendingcb--,r(),w(e,t)}function x(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=Array(r),a=t.corkedRequestsFree;a.entry=n;for(var s=0,c=!0;n;)i[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;i.allBuffers=c,y(e,t,!0,t.length,i,``,a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,d=n.callback;if(y(e,t,!1,t.objectMode?1:l.length,l,u,d),n=n.next,t.bufferedRequestCount--,t.writing)break}n===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function S(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function C(e,t){e._final((function(n){t.pendingcb--,n&&e.emit(`error`,n),t.prefinished=!0,e.emit(`prefinish`),w(e,t)}))}function w(e,t){var n=S(t);return n&&(function(e,t){t.prefinished||t.finalCalled||(typeof e._final==`function`?(t.pendingcb++,t.finalCalled=!0,a.nextTick(C,e,t)):(t.prefinished=!0,e.emit(`prefinish`)))}(e,t),t.pendingcb===0&&(t.finished=!0,e.emit(`finish`))),n}l.inherits(v,d),_.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(_.prototype,`buffer`,{get:u.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`?(m=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!m.call(this,e)||this===v&&e&&e._writableState instanceof _}})):m=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit(`error`,Error(`Cannot pipe, not readable`))},v.prototype.write=function(e,t,n){var r,i=this._writableState,o=!1,s=!i.objectMode&&(r=e,f.isBuffer(r)||r instanceof p);return s&&!f.isBuffer(e)&&(e=function(e){return f.from(e)}(e)),typeof t==`function`&&(n=t,t=null),s?t=`buffer`:t||=i.defaultEncoding,typeof n!=`function`&&(n=g),i.ended?function(e,t){var n=Error(`write after end`);e.emit(`error`,n),a.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var i=!0,o=!1;return n===null?o=TypeError(`May not write null values to stream`):typeof n==`string`||n===void 0||t.objectMode||(o=TypeError(`Invalid non-string/buffer chunk`)),o&&(e.emit(`error`,o),a.nextTick(r,o),i=!1),i}(this,i,e,n))&&(i.pendingcb++,o=function(e,t,n,r,i,a){if(!n){var o=function(e,t,n){return e.objectMode||!1===e.decodeStrings||typeof t!=`string`||(t=f.from(t,n)),t}(t,r,i);r!==o&&(n=!0,i=`buffer`,r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else y(e,t,!1,s,r,i,a);return c}(this,i,s,e,t,n)),o},v.prototype.cork=function(){this._writableState.corked++},v.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||x(this,e))},v.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw TypeError(`Unknown encoding: `+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,`writableHighWaterMark`,{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,n){n(Error(`_write() is not implemented`))},v.prototype._writev=null,v.prototype.end=function(e,t,n){var r=this._writableState;typeof e==`function`?(n=e,e=null,t=null):typeof t==`function`&&(n=t,t=null),e!=null&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,w(e,t),n&&(t.finished?a.nextTick(n):e.once(`finish`,n)),t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(v.prototype,`destroyed`,{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=h.destroy,v.prototype._undestroy=h.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this)}).call(this,e(`_process`),typeof global<`u`?global: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,t,n){var r=e(`safe-buffer`).Buffer,i=e(`util`);t.exports=function(){function e(){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(this.length===0)return``;for(var t=this.head,n=``+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(this.length===0)return r.alloc(0);for(var t,n,i,a=r.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,n=a,i=s,t.copy(n,i),s+=o.data.length,o=o.next;return a},e}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+` `+e})},{"safe-buffer":520,util:188}],514:[function(e,t,n){var r=e(`process-nextick-args`);function i(e,t){e.emit(`error`,t)}t.exports={destroy:function(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return a||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(i,this,e)):r.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,r.nextTick(i,n,e)):r.nextTick(i,n,e):t&&t(e)})),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,t,n){arguments[4][490][0].apply(n,arguments)},{dup:490,events:422}],516:[function(e,t,n){t.exports=e(`./readable`).PassThrough},{"./readable":517}],517:[function(e,t,n){(n=t.exports=e(`./lib/_stream_readable.js`)).Stream=n,n.Readable=n,n.Writable=e(`./lib/_stream_writable.js`),n.Duplex=e(`./lib/_stream_duplex.js`),n.Transform=e(`./lib/_stream_transform.js`),n.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,t,n){t.exports=e(`./readable`).Transform},{"./readable":517}],519:[function(e,t,n){t.exports=e(`./lib/_stream_writable.js`)},{"./lib/_stream_writable.js":512}],520:[function(e,t,n){arguments[4][217][0].apply(n,arguments)},{buffer:220,dup:217}],521:[function(e,t,n){arguments[4][218][0].apply(n,arguments)},{dup:218,"safe-buffer":520}],522:[function(e,t,n){arguments[4][218][0].apply(n,arguments)},{dup:218,"safe-buffer":494}],523:[function(e,t,n){(function(t,r){(function(){var i=e(`process/browser.js`).nextTick,a=Function.prototype.apply,o=Array.prototype.slice,s={},c=0;function l(e,t){this._id=e,this._clearFn=t}n.setTimeout=function(){return new l(a.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new l(a.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},l.prototype.unref=l.prototype.ref=function(){},l.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n.setImmediate=typeof t==`function`?t:function(e){var t=c++,r=!(arguments.length<2)&&o.call(arguments,1);return s[t]=!0,i((function(){s[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))})),t},n.clearImmediate=typeof r==`function`?r:function(e){delete s[e]}}).call(this)}).call(this,e(`timers`).setImmediate,e(`timers`).clearImmediate)},{"process/browser.js":467,timers:523}],524:[function(e,t,n){(function(e){(function(){function n(t){try{if(!e.localStorage)return!1}catch{return!1}var n=e.localStorage[t];return n!=null&&String(n).toLowerCase()===`true`}t.exports=function(e,t){if(n(`noDeprecation`))return e;var r=!1;return function(){if(!r){if(n(`throwDeprecation`))throw Error(t);n(`traceDeprecation`)?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{}],525:[function(e,t,n){typeof Object.create==`function`?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],526:[function(e,t,n){t.exports=function(e){return e&&typeof e==`object`&&typeof e.copy==`function`&&typeof e.fill==`function`&&typeof e.readUInt8==`function`}},{}],527:[function(e,t,n){(function(t,r){(function(){var i=/%[sdj%]/g;n.format=function(e){if(!_(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(` `)}n=1;for(var r=arguments,a=r.length,o=String(e).replace(i,(function(e){if(e===`%%`)return`%`;if(n>=a)return e;switch(e){case`%s`:return String(r[n++]);case`%d`:return Number(r[n++]);case`%j`:try{return JSON.stringify(r[n++])}catch{return`[Circular]`}default:return e}})),c=r[n];n<a;c=r[++n])h(c)||!b(c)?o+=` `+c:o+=` `+s(c);return o},n.deprecate=function(e,i){if(v(r.process))return function(){return n.deprecate(e,i).apply(this,arguments)};if(!0===t.noDeprecation)return e;var a=!1;return function(){if(!a){if(t.throwDeprecation)throw Error(i);t.traceDeprecation?console.trace(i):console.error(i),a=!0}return e.apply(this,arguments)}};var a,o={};function s(e,t){var r={seen:[],stylize:l};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(t)?r.showHidden=t:t&&n._extend(r,t),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),u(r,e,r.depth)}function c(e,t){var n=s.styles[t];return n?`\x1B[`+s.colors[n][0]+`m`+e+`\x1B[`+s.colors[n][1]+`m`:e}function l(e,t){return e}function u(e,t,r){if(e.customInspect&&t&&C(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(r,e);return _(i)||(i=u(e,i,r)),i}var a=function(e,t){if(v(t))return e.stylize(`undefined`,`undefined`);if(_(t)){var n=`'`+JSON.stringify(t).replace(/^"|"$/g,``).replace(/'/g,`\\'`).replace(/\\"/g,`"`)+`'`;return e.stylize(n,`string`)}if(g(t))return e.stylize(``+t,`number`);if(m(t))return e.stylize(``+t,`boolean`);if(h(t))return e.stylize(`null`,`null`)}(e,t);if(a)return a;var o=Object.keys(t),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),S(t)&&(o.indexOf(`message`)>=0||o.indexOf(`description`)>=0))return d(t);if(o.length===0){if(C(t)){var c=t.name?`: `+t.name:``;return e.stylize(`[Function`+c+`]`,`special`)}if(y(t))return e.stylize(RegExp.prototype.toString.call(t),`regexp`);if(x(t))return e.stylize(Date.prototype.toString.call(t),`date`);if(S(t))return d(t)}var l,b=``,w=!1,T=[`{`,`}`];return(p(t)&&(w=!0,T=[`[`,`]`]),C(t))&&(b=` [Function`+(t.name?`: `+t.name:``)+`]`),y(t)&&(b=` `+RegExp.prototype.toString.call(t)),x(t)&&(b=` `+Date.prototype.toUTCString.call(t)),S(t)&&(b=` `+d(t)),o.length!==0||w&&t.length!=0?r<0?y(t)?e.stylize(RegExp.prototype.toString.call(t),`regexp`):e.stylize(`[Object]`,`special`):(e.seen.push(t),l=w?function(e,t,n,r,i){for(var a=[],o=0,s=t.length;o<s;++o)O(t,String(o))?a.push(f(e,t,n,r,String(o),!0)):a.push(``);return i.forEach((function(i){i.match(/^\d+$/)||a.push(f(e,t,n,r,i,!0))})),a}(e,t,r,s,o):o.map((function(n){return f(e,t,r,s,n,w)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf(`
`),e+t.replace(/\u001b\[\d\d?m/g,``).length+1}),0)>60?n[0]+(t===``?``:t+`
`)+` `+e.join(`,
`)+` `+n[1]:n[0]+t+` `+e.join(`, `)+` `+n[1]}(l,b,T)):T[0]+b+T[1]}function d(e){return`[`+Error.prototype.toString.call(e)+`]`}function f(e,t,n,r,i,a){var o,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize(`[Getter/Setter]`,`special`):e.stylize(`[Getter]`,`special`):c.set&&(s=e.stylize(`[Setter]`,`special`)),O(r,i)||(o=`[`+i+`]`),s||(e.seen.indexOf(c.value)<0?(s=h(n)?u(e,c.value,null):u(e,c.value,n-1)).indexOf(`
`)>-1&&(s=a?s.split(`
`).map((function(e){return` `+e})).join(`
`).substr(2):`
`+s.split(`
`).map((function(e){return` `+e})).join(`
`)):s=e.stylize(`[Circular]`,`special`)),v(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(``+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,`name`)):(o=o.replace(/'/g,`\\'`).replace(/\\"/g,`"`).replace(/(^"|"$)/g,`'`),o=e.stylize(o,`string`))}return o+`: `+s}function p(e){return Array.isArray(e)}function m(e){return typeof e==`boolean`}function h(e){return e===null}function g(e){return typeof e==`number`}function _(e){return typeof e==`string`}function v(e){return e===void 0}function y(e){return b(e)&&w(e)===`[object RegExp]`}function b(e){return typeof e==`object`&&!!e}function x(e){return b(e)&&w(e)===`[object Date]`}function S(e){return b(e)&&(w(e)===`[object Error]`||e instanceof Error)}function C(e){return typeof e==`function`}function w(e){return Object.prototype.toString.call(e)}function T(e){return e<10?`0`+e.toString(10):e.toString(10)}n.debuglog=function(e){if(v(a)&&(a=t.env.NODE_DEBUG||``),e=e.toUpperCase(),!o[e])if(RegExp(`\\b`+e+`\\b`,`i`).test(a)){var r=t.pid;o[e]=function(){var t=n.format.apply(n,arguments);console.error(`%s %d: %s`,e,r,t)}}else o[e]=function(){};return o[e]},n.inspect=s,s.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]},s.styles={special:`cyan`,number:`yellow`,boolean:`yellow`,undefined:`grey`,null:`bold`,string:`green`,date:`magenta`,regexp:`red`},n.isArray=p,n.isBoolean=m,n.isNull=h,n.isNullOrUndefined=function(e){return e==null},n.isNumber=g,n.isString=_,n.isSymbol=function(e){return typeof e==`symbol`},n.isUndefined=v,n.isRegExp=y,n.isObject=b,n.isDate=x,n.isError=S,n.isFunction=C,n.isPrimitive=function(e){return e===null||typeof e==`boolean`||typeof e==`number`||typeof e==`string`||typeof e==`symbol`||e===void 0},n.isBuffer=e(`./support/isBuffer`);var E=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];function D(){var e=new Date,t=[T(e.getHours()),T(e.getMinutes()),T(e.getSeconds())].join(`:`);return[e.getDate(),E[e.getMonth()],t].join(` `)}function O(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.log=function(){console.log(`%s - %s`,D(),n.format.apply(n,arguments))},n.inherits=e(`inherits`),n._extend=function(e,t){if(!t||!b(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this)}).call(this,e(`_process`),typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{"./support/isBuffer":526,_process:467,inherits:525}],528:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),Object.defineProperty(n,`v1`,{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(n,`v3`,{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(n,`v4`,{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(n,`v5`,{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(n,`NIL`,{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(n,`version`,{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(n,`validate`,{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(n,`stringify`,{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(n,`parse`,{enumerable:!0,get:function(){return d.default}});var r=f(e(`./v1.js`)),i=f(e(`./v3.js`)),a=f(e(`./v4.js`)),o=f(e(`./v5.js`)),s=f(e(`./nil.js`)),c=f(e(`./version.js`)),l=f(e(`./validate.js`)),u=f(e(`./stringify.js`)),d=f(e(`./parse.js`));function f(e){return e&&e.__esModule?e:{default:e}}},{"./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,t,n){function r(e){return 14+(e+64>>>9<<4)+1}function i(e,t){let n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e,t,n,r,a,o){return i((s=i(i(t,e),i(r,o)))<<(c=a)|s>>>32-c,n);var s,c}function o(e,t,n,r,i,o,s){return a(t&n|~t&r,e,t,i,o,s)}function s(e,t,n,r,i,o,s){return a(t&r|n&~r,e,t,i,o,s)}function c(e,t,n,r,i,o,s){return a(t^n^r,e,t,i,o,s)}function l(e,t,n,r,i,o,s){return a(n^(t|~r),e,t,i,o,s)}Object.defineProperty(n,`__esModule`,{value:!0}),n.default=void 0,n.default=function(e){if(typeof e==`string`){let t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){let t=[],n=32*e.length;for(let r=0;r<n;r+=8){let n=e[r>>5]>>>r%32&255,i=parseInt(`0123456789abcdef`.charAt(n>>>4&15)+`0123456789abcdef`.charAt(15&n),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[r(t)-1]=t;let n=1732584193,a=-271733879,u=-1732584194,d=271733878;for(let t=0;t<e.length;t+=16){let r=n,f=a,p=u,m=d;n=o(n,a,u,d,e[t],7,-680876936),d=o(d,n,a,u,e[t+1],12,-389564586),u=o(u,d,n,a,e[t+2],17,606105819),a=o(a,u,d,n,e[t+3],22,-1044525330),n=o(n,a,u,d,e[t+4],7,-176418897),d=o(d,n,a,u,e[t+5],12,1200080426),u=o(u,d,n,a,e[t+6],17,-1473231341),a=o(a,u,d,n,e[t+7],22,-45705983),n=o(n,a,u,d,e[t+8],7,1770035416),d=o(d,n,a,u,e[t+9],12,-1958414417),u=o(u,d,n,a,e[t+10],17,-42063),a=o(a,u,d,n,e[t+11],22,-1990404162),n=o(n,a,u,d,e[t+12],7,1804603682),d=o(d,n,a,u,e[t+13],12,-40341101),u=o(u,d,n,a,e[t+14],17,-1502002290),a=o(a,u,d,n,e[t+15],22,1236535329),n=s(n,a,u,d,e[t+1],5,-165796510),d=s(d,n,a,u,e[t+6],9,-1069501632),u=s(u,d,n,a,e[t+11],14,643717713),a=s(a,u,d,n,e[t],20,-373897302),n=s(n,a,u,d,e[t+5],5,-701558691),d=s(d,n,a,u,e[t+10],9,38016083),u=s(u,d,n,a,e[t+15],14,-660478335),a=s(a,u,d,n,e[t+4],20,-405537848),n=s(n,a,u,d,e[t+9],5,568446438),d=s(d,n,a,u,e[t+14],9,-1019803690),u=s(u,d,n,a,e[t+3],14,-187363961),a=s(a,u,d,n,e[t+8],20,1163531501),n=s(n,a,u,d,e[t+13],5,-1444681467),d=s(d,n,a,u,e[t+2],9,-51403784),u=s(u,d,n,a,e[t+7],14,1735328473),a=s(a,u,d,n,e[t+12],20,-1926607734),n=c(n,a,u,d,e[t+5],4,-378558),d=c(d,n,a,u,e[t+8],11,-2022574463),u=c(u,d,n,a,e[t+11],16,1839030562),a=c(a,u,d,n,e[t+14],23,-35309556),n=c(n,a,u,d,e[t+1],4,-1530992060),d=c(d,n,a,u,e[t+4],11,1272893353),u=c(u,d,n,a,e[t+7],16,-155497632),a=c(a,u,d,n,e[t+10],23,-1094730640),n=c(n,a,u,d,e[t+13],4,681279174),d=c(d,n,a,u,e[t],11,-358537222),u=c(u,d,n,a,e[t+3],16,-722521979),a=c(a,u,d,n,e[t+6],23,76029189),n=c(n,a,u,d,e[t+9],4,-640364487),d=c(d,n,a,u,e[t+12],11,-421815835),u=c(u,d,n,a,e[t+15],16,530742520),a=c(a,u,d,n,e[t+2],23,-995338651),n=l(n,a,u,d,e[t],6,-198630844),d=l(d,n,a,u,e[t+7],10,1126891415),u=l(u,d,n,a,e[t+14],15,-1416354905),a=l(a,u,d,n,e[t+5],21,-57434055),n=l(n,a,u,d,e[t+12],6,1700485571),d=l(d,n,a,u,e[t+3],10,-1894986606),u=l(u,d,n,a,e[t+10],15,-1051523),a=l(a,u,d,n,e[t+1],21,-2054922799),n=l(n,a,u,d,e[t+8],6,1873313359),d=l(d,n,a,u,e[t+15],10,-30611744),u=l(u,d,n,a,e[t+6],15,-1560198380),a=l(a,u,d,n,e[t+13],21,1309151649),n=l(n,a,u,d,e[t+4],6,-145523070),d=l(d,n,a,u,e[t+11],10,-1120210379),u=l(u,d,n,a,e[t+2],15,718787259),a=l(a,u,d,n,e[t+9],21,-343485551),n=i(n,r),a=i(a,f),u=i(u,p),d=i(d,m)}return[n,a,u,d]}(function(e){if(e.length===0)return[];let t=8*e.length,n=new Uint32Array(r(t));for(let r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))}},{}],530:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.default=void 0,n.default=`00000000-0000-0000-0000-000000000000`},{}],531:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.default=void 0;var r,i=(r=e(`./validate.js`))&&r.__esModule?r:{default:r};n.default=function(e){if(!(0,i.default)(e))throw TypeError(`Invalid UUID`);let t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.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}},{"./validate.js":541}],532:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.default=void 0,n.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,t,n){let r;Object.defineProperty(n,`__esModule`,{value:!0}),n.default=function(){if(!r&&(r=typeof crypto<`u`&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<`u`&&typeof msCrypto.getRandomValues==`function`&&msCrypto.getRandomValues.bind(msCrypto),!r))throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);return r(i)};let i=new Uint8Array(16)},{}],534:[function(e,t,n){function r(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function i(e,t){return e<<t|e>>>32-t}Object.defineProperty(n,`__esModule`,{value:!0}),n.default=void 0,n.default=function(e){let t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e==`string`){let t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);let a=e.length/4+2,o=Math.ceil(a/16),s=Array(o);for(let t=0;t<o;++t){let n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];s[t]=n}s[o-1][14]=8*(e.length-1)/2**32,s[o-1][14]=Math.floor(s[o-1][14]),s[o-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<o;++e){let a=new Uint32Array(80);for(let t=0;t<16;++t)a[t]=s[e][t];for(let e=16;e<80;++e)a[e]=i(a[e-3]^a[e-8]^a[e-14]^a[e-16],1);let o=n[0],c=n[1],l=n[2],u=n[3],d=n[4];for(let e=0;e<80;++e){let n=Math.floor(e/20),s=i(o,5)+r(n,c,l,u)+d+t[n]+a[e]>>>0;d=u,u=l,l=i(c,30)>>>0,c=o,o=s}n[0]=n[0]+o>>>0,n[1]=n[1]+c>>>0,n[2]=n[2]+l>>>0,n[3]=n[3]+u>>>0,n[4]=n[4]+d>>>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]]}},{}],535:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.default=void 0;var r,i=(r=e(`./validate.js`))&&r.__esModule?r:{default:r};let a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).substr(1));n.default=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+`-`+a[e[t+4]]+a[e[t+5]]+`-`+a[e[t+6]]+a[e[t+7]]+`-`+a[e[t+8]]+a[e[t+9]]+`-`+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase();if(!(0,i.default)(n))throw TypeError(`Stringified UUID is invalid`);return n}},{"./validate.js":541}],536:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.default=void 0;var r=a(e(`./rng.js`)),i=a(e(`./stringify.js`));function a(e){return e&&e.__esModule?e:{default:e}}let o,s,c=0,l=0;n.default=function(e,t,n){let a=t&&n||0,u=t||Array(16),d=(e||={}).node||o,f=e.clockseq===void 0?s:e.clockseq;if(d==null||f==null){let t=e.random||(e.rng||r.default)();d??=o=[1|t[0],t[1],t[2],t[3],t[4],t[5]],f??=s=16383&(t[6]<<8|t[7])}let p=e.msecs===void 0?Date.now():e.msecs,m=e.nsecs===void 0?l+1:e.nsecs,h=p-c+(m-l)/1e4;if(h<0&&e.clockseq===void 0&&(f=f+1&16383),(h<0||p>c)&&e.nsecs===void 0&&(m=0),m>=1e4)throw Error(`uuid.v1(): Can't create more than 10M uuids/sec`);c=p,l=m,s=f,p+=0xb1d069b5400;let g=(1e4*(268435455&p)+m)%4294967296;u[a++]=g>>>24&255,u[a++]=g>>>16&255,u[a++]=g>>>8&255,u[a++]=255&g;let _=p/4294967296*1e4&268435455;u[a++]=_>>>8&255,u[a++]=255&_,u[a++]=_>>>24&15|16,u[a++]=_>>>16&255,u[a++]=f>>>8|128,u[a++]=255&f;for(let e=0;e<6;++e)u[a+e]=d[e];return t||(0,i.default)(u)}},{"./rng.js":533,"./stringify.js":535}],537:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.default=void 0;var r=a(e(`./v35.js`)),i=a(e(`./md5.js`));function a(e){return e&&e.__esModule?e:{default:e}}n.default=(0,r.default)(`v3`,48,i.default)},{"./md5.js":529,"./v35.js":538}],538:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.default=function(e,t,n){function a(e,a,o,s){if(typeof e==`string`&&(e=function(e){e=unescape(encodeURIComponent(e));let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),typeof a==`string`&&(a=(0,i.default)(a)),a.length!==16)throw TypeError(`Namespace must be array-like (16 iterable integer values, 0-255)`);let c=new Uint8Array(16+e.length);if(c.set(a),c.set(e,a.length),c=n(c),c[6]=15&c[6]|t,c[8]=63&c[8]|128,o){s||=0;for(let e=0;e<16;++e)o[s+e]=c[e];return o}return(0,r.default)(c)}try{a.name=e}catch{}return a.DNS=o,a.URL=s,a},n.URL=n.DNS=void 0;var r=a(e(`./stringify.js`)),i=a(e(`./parse.js`));function a(e){return e&&e.__esModule?e:{default:e}}let o=`6ba7b810-9dad-11d1-80b4-00c04fd430c8`;n.DNS=o;let s=`6ba7b811-9dad-11d1-80b4-00c04fd430c8`;n.URL=s},{"./parse.js":531,"./stringify.js":535}],539:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.default=void 0;var r=a(e(`./rng.js`)),i=a(e(`./stringify.js`));function a(e){return e&&e.__esModule?e:{default:e}}n.default=function(e,t,n){let a=(e||={}).random||(e.rng||r.default)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){n||=0;for(let e=0;e<16;++e)t[n+e]=a[e];return t}return(0,i.default)(a)}},{"./rng.js":533,"./stringify.js":535}],540:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.default=void 0;var r=a(e(`./v35.js`)),i=a(e(`./sha1.js`));function a(e){return e&&e.__esModule?e:{default:e}}n.default=(0,r.default)(`v5`,80,i.default)},{"./sha1.js":534,"./v35.js":538}],541:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.default=void 0;var r,i=(r=e(`./regex.js`))&&r.__esModule?r:{default:r};n.default=function(e){return typeof e==`string`&&i.default.test(e)}},{"./regex.js":532}],542:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.default=void 0;var r,i=(r=e(`./validate.js`))&&r.__esModule?r:{default:r};n.default=function(e){if(!(0,i.default)(e))throw TypeError(`Invalid UUID`);return parseInt(e.substr(14,1),16)}},{"./validate.js":541}],543:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.CHAR=`
\r -퟿-<2D>𐀀-􏿿`,n.S=` \r
`,n.NAME_START_CHAR=`:A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-<2D>𐀀-󯿿`,n.NAME_CHAR=`-`+n.NAME_START_CHAR+`.0-9·̀-ͯ‿-⁀`,n.CHAR_RE=RegExp(`^[`+n.CHAR+`]$`,`u`),n.S_RE=RegExp(`^[`+n.S+`]+$`,`u`),n.NAME_START_CHAR_RE=RegExp(`^[`+n.NAME_START_CHAR+`]$`,`u`),n.NAME_CHAR_RE=RegExp(`^[`+n.NAME_CHAR+`]$`,`u`),n.NAME_RE=RegExp(`^[`+n.NAME_START_CHAR+`][`+n.NAME_CHAR+`]*$`,`u`),n.NMTOKEN_RE=RegExp(`^[`+n.NAME_CHAR+`]+$`,`u`);function r(e){return e>=65&&e<=90||e>=97&&e<=122||e===58||e===95||e===8204||e===8205||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}n.S_LIST=[32,10,13,9],n.isChar=function(e){return e>=32&&e<=55295||e===10||e===13||e===9||e>=57344&&e<=65533||e>=65536&&e<=1114111},n.isS=function(e){return e===32||e===10||e===13||e===9},n.isNameStartChar=r,n.isNameChar=function(e){return r(e)||e>=48&&e<=57||e===45||e===46||e===183||e>=768&&e<=879||e>=8255&&e<=8256}},{}],544:[function(e,t,n){Object.defineProperty(n,`__esModule`,{value:!0}),n.CHAR=`-퟿-<2D>𐀀-􏿿`,n.RESTRICTED_CHAR=`-\b\v\f--„†-Ÿ`,n.S=` \r
`,n.NAME_START_CHAR=`:A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-<2D>𐀀-󯿿`,n.NAME_CHAR=`-`+n.NAME_START_CHAR+`.0-9·̀-ͯ‿-⁀`,n.CHAR_RE=RegExp(`^[`+n.CHAR+`]$`,`u`),n.RESTRICTED_CHAR_RE=RegExp(`^[`+n.RESTRICTED_CHAR+`]$`,`u`),n.S_RE=RegExp(`^[`+n.S+`]+$`,`u`),n.NAME_START_CHAR_RE=RegExp(`^[`+n.NAME_START_CHAR+`]$`,`u`),n.NAME_CHAR_RE=RegExp(`^[`+n.NAME_CHAR+`]$`,`u`),n.NAME_RE=RegExp(`^[`+n.NAME_START_CHAR+`][`+n.NAME_CHAR+`]*$`,`u`),n.NMTOKEN_RE=RegExp(`^[`+n.NAME_CHAR+`]+$`,`u`);function r(e){return e>=65&&e<=90||e>=97&&e<=122||e===58||e===95||e===8204||e===8205||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}n.S_LIST=[32,10,13,9],n.isChar=function(e){return e>=1&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111},n.isRestrictedChar=function(e){return e>=1&&e<=8||e===11||e===12||e>=14&&e<=31||e>=127&&e<=132||e>=134&&e<=159},n.isCharAndNotRestricted=function(e){return e===9||e===10||e===13||e>31&&e<127||e===133||e>159&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111},n.isS=function(e){return e===32||e===10||e===13||e===9},n.isNameStartChar=r,n.isNameChar=function(e){return r(e)||e>=48&&e<=57||e===45||e===46||e===183||e>=768&&e<=879||e>=8255&&e<=8256}},{}],545:[function(e,t,n){function r(e){return e>=65&&e<=90||e===95||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}Object.defineProperty(n,`__esModule`,{value:!0}),n.NC_NAME_START_CHAR=`A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-<2D>𐀀-󯿿`,n.NC_NAME_CHAR=`-`+n.NC_NAME_START_CHAR+`.0-9·̀-ͯ‿-⁀`,n.NC_NAME_START_CHAR_RE=RegExp(`^[`+n.NC_NAME_START_CHAR+`]$`,`u`),n.NC_NAME_CHAR_RE=RegExp(`^[`+n.NC_NAME_CHAR+`]$`,`u`),n.NC_NAME_RE=RegExp(`^[`+n.NC_NAME_START_CHAR+`][`+n.NC_NAME_CHAR+`]*$`,`u`),n.isNCNameStartChar=r,n.isNCNameChar=function(e){return r(e)||e===45||e===46||e>=48&&e<=57||e===183||e>=768&&e<=879||e>=8255&&e<=8256}},{}]},{},[15])(15)}))}))(),1);const nu=$(`zx`,()=>{let e=Y({}),t=H(()=>Object.values(e.value)),n=H(()=>Object.keys(e.value).length),r=H(()=>Object.keys(e.value)),i=async t=>{if(!t||!t.id)return console.warn(`[DataStore] 创建失败:缺少 id 字段`),!1;let n=String(t.id);return e.value[n]?(console.warn(`[DataStore] 创建失败ID "${n}" 已存在`),!1):(e.value[n]=JSON.parse(JSON.stringify(t)),console.log(`[DataStore] 创建成功:${n}`),!0)},a=async e=>{let t=0;for(let n of e)await i(n)&&t++;return console.log(`[DataStore] 批量创建完成:成功 ${t}/${e.length}`),t},o=async t=>{if(!t||!t.id)throw console.warn(`[DataStore] Upsert 失败:缺少 id 字段`),Error(`数据项必须包含 id 字段`);let n=String(t.id),r=Object.prototype.hasOwnProperty.call(e.value,n);return e.value[n]=JSON.parse(JSON.stringify(t)),r?`updated`:`created`},s=async t=>{let n=0,r=0,i=0;if(!t.length)return console.log(`[覆盖保存] 传入空数组,不执行任何操作`),{created:0,updated:0,deleted:0};let a=t[0]?.type,s=Object.values(e.value).filter(e=>!a||e.type===a),c=new Set(t.map(e=>e.id));for(let t of s)c.has(t.id)||(delete e.value[t.id],i++);for(let e of t)await o(e)===`created`?n++:r++;return console.log(`[覆盖保存] 创建 ${n},更新 ${r},删除 ${i}`),{created:n,updated:r,deleted:i}},c=async t=>{let n=String(t);return e.value[n]?JSON.parse(JSON.stringify(e.value[n])):null},l=async e=>{let t=[];for(let n of e){let e=await c(n);e&&t.push(e)}return t},u=async()=>JSON.parse(JSON.stringify(t.value)),d=async(t,n)=>{let r=String(t);return e.value[r]?!n||n.id!==t?(console.warn(`[DataStore] 更新失败ID 不匹配`),!1):(e.value[r]=JSON.parse(JSON.stringify(n)),console.log(`[DataStore] 更新成功:${r}`),!0):(console.warn(`[DataStore] 更新失败ID "${r}" 不存在`),!1)},f=async(t,n)=>{let r=String(t);return e.value[r]?(e.value[r]={...e.value[r],...n,id:r},console.log(`[DataStore] 部分更新成功:${r}`),!0):(console.warn(`[DataStore] 部分更新失败ID "${r}" 不存在`),!1)},p=async e=>{let t=0;for(let{id:n,data:r}of e)await f(n,r)&&t++;return console.log(`[DataStore] 批量更新完成:成功 ${t}/${e.length}`),t},m=async t=>{let n=String(t);return e.value[n]?(delete e.value[n],console.log(`[DataStore] 删除成功:${n}`),!0):(console.warn(`[DataStore] 删除失败ID "${n}" 不存在`),!1)},h=async e=>{let t=0;for(let n of e)await m(n)&&t++;return console.log(`[DataStore] 批量删除完成:成功 ${t}/${e.length}`),t},g=async()=>{e.value={},console.log(`[DataStore] 已清空所有数据`)},_=async e=>{let n=t.value.filter(t=>e.every(e=>{if(!e.field)return!0;let n=t[e.field],r=e.value;switch(e.operator||`eq`){case`eq`:return n===r;case`neq`:return n!==r;case`gt`:return n>r;case`lt`:return n<r;case`gte`:return n>=r;case`lte`:return n<=r;case`includes`:return Array.isArray(n)?n.includes(r):String(n).includes(String(r));default:return!0}}));return JSON.parse(JSON.stringify(n))};return{items:e,allItems:t,count:n,allIds:r,create:i,createBatch:a,upsert:o,upsertBatch:s,read:c,readBatch:l,readAll:u,update:d,patch:f,updateBatch:p,deleteItem:m,deleteBatch:h,clear:g,query:_,findByField:async(e,t)=>{let n=await _([{field:e,value:t,operator:`eq`}]);return n.length>0?n[0]:null},exists:async t=>{let n=String(t);return Object.prototype.hasOwnProperty.call(e.value,n)},exportData:async()=>JSON.parse(JSON.stringify(t.value)),importData:async(t,n)=>{n?.replace&&await g();for(let n of t)n&&n.id&&(e.value[String(n.id)]=JSON.parse(JSON.stringify(n)));console.log(`[DataStore] 导入完成:${t.length} 条数据`)}}},{persist:!0});var ru=a((e=>{var t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`;e.encode=function(e){for(var n=``,r,i,a,o,s,c,l,u=0;u<e.length;)r=e.charCodeAt(u++),i=e.charCodeAt(u++),a=e.charCodeAt(u++),o=r>>2,s=(r&3)<<4|i>>4,c=(i&15)<<2|a>>6,l=a&63,isNaN(i)?c=l=64:isNaN(a)&&(l=64),n=n+t.charAt(o)+t.charAt(s)+t.charAt(c)+t.charAt(l);return n},e.decode=function(e){var n=``,r,i,a,o,s,c,l,u=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,``);u<e.length;)o=t.indexOf(e.charAt(u++)),s=t.indexOf(e.charAt(u++)),c=t.indexOf(e.charAt(u++)),l=t.indexOf(e.charAt(u++)),r=o<<2|s>>4,i=(s&15)<<4|c>>2,a=(c&3)<<6|l,n+=String.fromCharCode(r),c!==64&&(n+=String.fromCharCode(i)),l!==64&&(n+=String.fromCharCode(a));return n}})),iu=a((e=>{if(e.base64=!0,e.array=!0,e.string=!0,e.arraybuffer=typeof ArrayBuffer<`u`&&typeof Uint8Array<`u`,e.nodebuffer=typeof Buffer<`u`,e.uint8array=typeof Uint8Array<`u`,typeof ArrayBuffer>`u`)e.blob=!1;else{var t=new ArrayBuffer(0);try{e.blob=new Blob([t],{type:`application/zip`}).size===0}catch{try{var n=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder);n.append(t),e.blob=n.getBlob(`application/zip`).size===0}catch{e.blob=!1}}}})),au=a(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):r((n=typeof globalThis<`u`?globalThis:n||self).pako={})})(e,(function(e){function t(e){for(var t=e.length;--t>=0;)e[t]=0}var n=256,r=286,i=30,a=15,o=new Uint8Array([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]),s=new Uint8Array([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]),c=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),l=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),u=Array(576);t(u);var d=Array(60);t(d);var f=Array(512);t(f);var p=Array(256);t(p);var m=Array(29);t(m);var h,g,_,v=Array(i);function y(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function b(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}t(v);var x=function(e){return e<256?f[e]:f[256+(e>>>7)]},S=function(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},C=function(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,S(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},w=function(e,t,n){C(e,n[2*t],n[2*t+1])},T=function(e,t){var n=0;do n|=1&e,e>>>=1,n<<=1;while(--t>0);return n>>>1},E=function(e,t,n){var r,i,o=Array(16),s=0;for(r=1;r<=a;r++)s=s+n[r-1]<<1,o[r]=s;for(i=0;i<=t;i++){var c=e[2*i+1];c!==0&&(e[2*i]=T(o[c]++,c))}},D=function(e){var t;for(t=0;t<r;t++)e.dyn_ltree[2*t]=0;for(t=0;t<i;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},O=function(e){e.bi_valid>8?S(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},k=function(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]},A=function(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&k(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!k(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},j=function(e,t,r){var i,a,c,l,u=0;if(e.sym_next!==0)do i=255&e.pending_buf[e.sym_buf+ u++],i+=(255&e.pending_buf[e.sym_buf+ u++])<<8,a=e.pending_buf[e.sym_buf+ u++],i===0?w(e,a,t):(c=p[a],w(e,c+n+1,t),(l=o[c])!==0&&(a-=m[c],C(e,a,l)),i--,c=x(i),w(e,c,r),(l=s[c])!==0&&(i-=v[c],C(e,i,l)));while(u<e.sym_next);w(e,256,t)},M=function(e,t){var n,r,i,o=t.dyn_tree,s=t.stat_desc.static_tree,c=t.stat_desc.has_stree,l=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<l;n++)o[2*n]===0?o[2*n+1]=0:(e.heap[++e.heap_len]=u=n,e.depth[n]=0);for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,c&&(e.static_len-=s[2*i+1]);for(t.max_code=u,n=e.heap_len>>1;n>=1;n--)A(e,o,n);i=l;do n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],A(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,A(e,o,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,o,s,c,l=t.dyn_tree,u=t.max_code,d=t.stat_desc.static_tree,f=t.stat_desc.has_stree,p=t.stat_desc.extra_bits,m=t.stat_desc.extra_base,h=t.stat_desc.max_length,g=0;for(o=0;o<=a;o++)e.bl_count[o]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(o=l[2*l[2*(r=e.heap[n])+1]+1]+1)>h&&(o=h,g++),l[2*r+1]=o,r>u||(e.bl_count[o]++,s=0,r>=m&&(s=p[r-m]),c=l[2*r],e.opt_len+=c*(o+s),f&&(e.static_len+=c*(d[2*r+1]+s)));if(g!==0){do{for(o=h-1;e.bl_count[o]===0;)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[h]--,g-=2}while(g>0);for(o=h;o!==0;o--)for(r=e.bl_count[o];r!==0;)(i=e.heap[--n])>u||(l[2*i+1]!==o&&(e.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),r--)}}(e,t),E(o,u,e.bl_count)},N=function(e,t,n){var r,i,a=-1,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<c&&i===o||(s<l?e.bl_tree[2*i]+=s:i===0?s<=10?e.bl_tree[34]++:e.bl_tree[36]++:(i!==a&&e.bl_tree[2*i]++,e.bl_tree[32]++),s=0,a=i,o===0?(c=138,l=3):i===o?(c=6,l=3):(c=7,l=4))},P=function(e,t,n){var r,i,a=-1,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<c&&i===o)){if(s<l)do w(e,i,e.bl_tree);while(--s!=0);else i===0?s<=10?(w(e,17,e.bl_tree),C(e,s-3,3)):(w(e,18,e.bl_tree),C(e,s-11,7)):(i!==a&&(w(e,i,e.bl_tree),s--),w(e,16,e.bl_tree),C(e,s-3,2));s=0,a=i,o===0?(c=138,l=3):i===o?(c=6,l=3):(c=7,l=4)}},F=!1,I=function(e,t,n,r){C(e,0+(r?1:0),3),O(e),S(e,n),S(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},ee={_tr_init:function(e){F||=(function(){var e,t,n,l,b,x=Array(16);for(n=0,l=0;l<28;l++)for(m[l]=n,e=0;e<1<<o[l];e++)p[n++]=l;for(p[n-1]=l,b=0,l=0;l<16;l++)for(v[l]=b,e=0;e<1<<s[l];e++)f[b++]=l;for(b>>=7;l<i;l++)for(v[l]=b<<7,e=0;e<1<<s[l]-7;e++)f[256+ b++]=l;for(t=0;t<=a;t++)x[t]=0;for(e=0;e<=143;)u[2*e+1]=8,e++,x[8]++;for(;e<=255;)u[2*e+1]=9,e++,x[9]++;for(;e<=279;)u[2*e+1]=7,e++,x[7]++;for(;e<=287;)u[2*e+1]=8,e++,x[8]++;for(E(u,287,x),e=0;e<i;e++)d[2*e+1]=5,d[2*e]=T(e,5);h=new y(u,o,257,r,a),g=new y(d,s,0,i,a),_=new y([],c,0,19,7)}(),!0),e.l_desc=new b(e.dyn_ltree,h),e.d_desc=new b(e.dyn_dtree,g),e.bl_desc=new b(e.bl_tree,_),e.bi_buf=0,e.bi_valid=0,D(e)},_tr_stored_block:I,_tr_flush_block:function(e,t,r,i){var a,o,s=0;e.level>0?(e.strm.data_type===2&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&e.dyn_ltree[2*t]!==0)return 0;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return 1;for(t=32;t<n;t++)if(e.dyn_ltree[2*t]!==0)return 1;return 0}(e)),M(e,e.l_desc),M(e,e.d_desc),s=function(e){var t;for(N(e,e.dyn_ltree,e.l_desc.max_code),N(e,e.dyn_dtree,e.d_desc.max_code),M(e,e.bl_desc),t=18;t>=3&&e.bl_tree[2*l[t]+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),a=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=a&&(a=o)):a=o=r+5,r+4<=a&&t!==-1?I(e,t,r,i):e.strategy===4||o===a?(C(e,2+(i?1:0),3),j(e,u,d)):(C(e,4+(i?1:0),3),function(e,t,n,r){var i;for(C(e,t-257,5),C(e,n-1,5),C(e,r-4,4),i=0;i<r;i++)C(e,e.bl_tree[2*l[i]+1],3);P(e,e.dyn_ltree,t-1),P(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),j(e,e.dyn_ltree,e.dyn_dtree)),D(e),i&&O(e)},_tr_tally:function(e,t,r){return e.pending_buf[e.sym_buf+ e.sym_next++]=t,e.pending_buf[e.sym_buf+ e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+ e.sym_next++]=r,t===0?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(p[r]+n+1)]++,e.dyn_dtree[2*x(t)]++),e.sym_next===e.sym_end},_tr_align:function(e){C(e,2,3),w(e,256,u),function(e){e.bi_valid===16?(S(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},L=function(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;n!==0;){n-=o=n>2e3?2e3:n;do a=a+(i=i+t[r++]|0)|0;while(--o);i%=65521,a%=65521}return i|a<<16|0},R=new Uint32Array(function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}()),z=function(e,t,n,r){var i=R,a=r+n;e^=-1;for(var o=r;o<a;o++)e=e>>>8^i[255&(e^t[o])];return-1^e},B={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`},V={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_MEM_ERROR:-4,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},H=ee._tr_init,U=ee._tr_stored_block,W=ee._tr_flush_block,te=ee._tr_tally,ne=ee._tr_align,G=V.Z_NO_FLUSH,re=V.Z_PARTIAL_FLUSH,ie=V.Z_FULL_FLUSH,K=V.Z_FINISH,q=V.Z_BLOCK,J=V.Z_OK,Y=V.Z_STREAM_END,ae=V.Z_STREAM_ERROR,oe=V.Z_DATA_ERROR,X=V.Z_BUF_ERROR,se=V.Z_DEFAULT_COMPRESSION,ce=V.Z_FILTERED,Z=V.Z_HUFFMAN_ONLY,le=V.Z_RLE,ue=V.Z_FIXED,de=V.Z_DEFAULT_STRATEGY,fe=V.Z_UNKNOWN,pe=V.Z_DEFLATED,Q=258,me=262,$=42,he=113,ge=666,_e=function(e,t){return e.msg=B[t],t},ve=function(e){return 2*e-(e>4?9:0)},ye=function(e){for(var t=e.length;--t>=0;)e[t]=0},be=function(e){var t,n,r,i=e.w_size;r=t=e.hash_size;do n=e.head[--r],e.head[r]=n>=i?n-i:0;while(--t);r=t=i;do n=e.prev[--r],e.prev[r]=n>=i?n-i:0;while(--t)},xe=function(e,t,n){return(t<<e.hash_shift^n)&e.hash_mask},Se=function(e,t){var n;if(e.legacy_hash)n=e.ins_h=xe(e,e.ins_h,e.window[t+3-1]);else{var r=e.window,i=r[t]|r[t+1]<<8|r[t+2]<<16|r[t+3]<<24;n=e.ins_h=Math.imul(i,66521)+66521>>>16&e.hash_mask}var a=e.prev[t&e.w_mask]=e.head[n];return e.head[n]=t,a},Ce=function(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},we=function(e,t){W(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Ce(e.strm)},Te=function(e,t){e.pending_buf[e.pending++]=t},Ee=function(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},De=function(e,t,n,r){var i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),e.state.wrap===1?e.adler=L(e.adler,t,i,n):e.state.wrap===2&&(e.adler=z(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},Oe=function(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-me?e.strstart-(e.w_size-me):0,l=e.window,u=e.w_mask,d=e.prev,f=e.strstart+Q,p=l[a+o-1],m=l[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do if(l[(n=t)+o]===m&&l[n+o-1]===p&&l[n]===l[a]&&l[++n]===l[a+1]){a+=2,n++;do;while(l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&a<f);if(r=Q-(f-a),a=f-Q,r>o){if(e.match_start=t,o=r,r>=s)break;p=l[a+o-1],m=l[a+o]}}while((t=d[t&u])>c&&--i!=0);return o<=e.lookahead?o:e.lookahead},ke=function(e){var t,n,r,i=e.w_size;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=i+(i-me)&&(e.window.set(e.window.subarray(i,i+i-n),0),e.match_start-=i,e.strstart-=i,e.block_start-=i,e.insert>e.strstart&&(e.insert=e.strstart),be(e),n+=i),e.strm.avail_in===0)break;if(t=De(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=t,e.legacy_hash){if(e.lookahead+e.insert>=3)for(r=e.strstart-e.insert,e.ins_h=e.window[r],e.ins_h=xe(e,e.ins_h,e.window[r+1]);e.insert&&(Se(e,r),r++,e.insert--,!(e.lookahead+e.insert<3)););}else if(e.lookahead+e.insert>3)for(r=e.strstart-e.insert;e.insert&&(Se(e,r),r++,e.insert--,!(e.lookahead+e.insert<=3)););}while(e.lookahead<me&&e.strm.avail_in!==0)},Ae=function(e,t){var n,r,i,a=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,o=0,s=e.strm.avail_in;do{if(n=65535,i=e.bi_valid+42>>3,e.strm.avail_out<i||(i=e.strm.avail_out-i,n>(r=e.strstart-e.block_start)+e.strm.avail_in&&(n=r+e.strm.avail_in),n>i&&(n=i),n<a&&(n===0&&t!==K||t===G||n!==r+e.strm.avail_in)))break;o=t===K&&n===r+e.strm.avail_in?1:0,U(e,0,0,o),e.pending_buf[e.pending-4]=n,e.pending_buf[e.pending-3]=n>>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,Ce(e.strm),r&&(r>n&&(r=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,n-=r),n&&(De(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(o===0);return(s-=e.strm.avail_in)&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),o?4:t!==G&&t!==K&&e.strm.avail_in===0&&e.strstart===e.block_start?2:(i=e.window_size-e.strstart,e.strm.avail_in>i&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,i+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),i>e.strm.avail_in&&(i=e.strm.avail_in),i&&(De(e.strm,e.window,e.strstart,i),e.strstart+=i,e.insert+=i>e.w_size-e.insert?e.w_size-e.insert:i),e.high_water<e.strstart&&(e.high_water=e.strstart),i=e.bi_valid+42>>3,a=(i=e.pending_buf_size-i>65535?65535:e.pending_buf_size-i)>e.w_size?e.w_size:i,((r=e.strstart-e.block_start)>=a||(r||t===K)&&t!==G&&e.strm.avail_in===0&&r<=i)&&(n=r>i?i:r,o=t===K&&e.strm.avail_in===0&&n===r?1:0,U(e,e.block_start,n,o),e.block_start+=n,Ce(e.strm)),o?3:1)},je=function(e,t){for(var n,r;;){if(e.lookahead<me){if(ke(e),e.lookahead<me&&t===G)return 1;if(e.lookahead===0)break}if(n=0,e.lookahead>=3&&(n=Se(e,e.strstart)),n!==0&&e.strstart-n<=e.w_size-me&&(e.match_length=Oe(e,n)),e.match_length>=3)if(r=te(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do e.strstart++,n=Se(e,e.strstart);while(--e.match_length!=0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.legacy_hash&&(e.ins_h=e.window[e.strstart],e.ins_h=xe(e,e.ins_h,e.window[e.strstart+1]));else r=te(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(we(e,!1),e.strm.avail_out===0))return 1}return e.insert=e.strstart<2?e.strstart:2,t===K?(we(e,!0),e.strm.avail_out===0?3:4):e.sym_next&&(we(e,!1),e.strm.avail_out===0)?1:2},Me=function(e,t){for(var n,r,i;;){if(e.lookahead<me){if(ke(e),e.lookahead<me&&t===G)return 1;if(e.lookahead===0)break}if(n=0,e.lookahead>=3&&(n=Se(e,e.strstart)),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-me&&(e.match_length=Oe(e,n),e.match_length<=5&&(e.strategy===ce||e.match_length===3&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=te(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(n=Se(e,e.strstart));while(--e.prev_length!=0);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(we(e,!1),e.strm.avail_out===0))return 1}else if(e.match_available){if((r=te(e,0,e.window[e.strstart-1]))&&we(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&=(r=te(e,0,e.window[e.strstart-1]),0),e.insert=e.strstart<2?e.strstart:2,t===K?(we(e,!0),e.strm.avail_out===0?3:4):e.sym_next&&(we(e,!1),e.strm.avail_out===0)?1:2};function Ne(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var Pe=[new Ne(0,0,0,0,Ae),new Ne(4,4,8,4,je),new Ne(4,5,16,8,je),new Ne(4,6,32,32,je),new Ne(4,4,16,16,Me),new Ne(8,16,32,32,Me),new Ne(8,16,128,128,Me),new Ne(8,32,128,256,Me),new Ne(32,128,258,1024,Me),new Ne(32,258,258,4096,Me)];function Fe(){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=pe,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.legacy_hash=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 Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),ye(this.dyn_ltree),ye(this.dyn_dtree),ye(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),ye(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),ye(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Ie=function(e){if(!e)return 1;var t=e.state;return!t||t.strm!==e||t.status!==$&&t.status!==57&&t.status!==69&&t.status!==73&&t.status!==91&&t.status!==103&&t.status!==he&&t.status!==ge?1:0},Le=function(e){if(Ie(e))return _e(e,ae);e.total_in=e.total_out=0,e.data_type=fe;var t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?57:t.wrap?$:he,e.adler=t.wrap===2?0:1,t.last_flush=-2,H(t),J},Re=function(e){var t,n=Le(e);return n===J&&((t=e.state).window_size=2*t.w_size,ye(t.head),t.max_lazy_match=Pe[t.level].max_lazy,t.good_match=Pe[t.level].good_length,t.nice_match=Pe[t.level].nice_length,t.max_chain_length=Pe[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n},ze=function(e,t,n,r,i,a,o){if(!e)return ae;var s=1;if(t===se&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),i<1||i>9||n!==pe||r<8||r>15||t<0||t>9||a<0||a>ue||r===8&&s!==1)return _e(e,ae);r===8&&(r=9);var c=new Fe;return e.state=c,c.strm=e,c.status=$,c.wrap=s,c.gzhead=null,c.w_bits=r,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.legacy_hash=o?1:0,c.hash_bits=i+7,!c.legacy_hash&&c.hash_bits<15&&(c.hash_bits=15),c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+3-1)/3),c.window=new Uint8Array(2*c.w_size),c.head=new Uint16Array(c.hash_size),c.prev=new Uint16Array(c.w_size),c.lit_bufsize=1<<i+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new Uint8Array(c.pending_buf_size),c.sym_buf=c.lit_bufsize,c.sym_end=3*(c.lit_bufsize-1),c.level=t,c.strategy=a,c.method=n,Re(e)},Be={deflateInit:function(e,t){return ze(e,t,pe,15,8,de)},deflateInit2:ze,deflateReset:Re,deflateResetKeep:Le,deflateSetHeader:function(e,t){return Ie(e)||e.state.wrap!==2?ae:(e.state.gzhead=t,J)},deflate:function(e,t){if(Ie(e)||t>q||t<0)return e?_e(e,ae):ae;var n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===ge&&t!==K)return _e(e,e.avail_out===0?X:ae);var r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(Ce(e),e.avail_out===0)return n.last_flush=-1,J}else if(e.avail_in===0&&ve(t)<=ve(r)&&t!==K)return _e(e,X);if(n.status===ge&&e.avail_in!==0)return _e(e,X);if(n.status===$&&n.wrap===0&&(n.status=he),n.status===$){var i=pe+(n.w_bits-8<<4)<<8;if(i|=(n.strategy>=Z||n.level<2?0:n.level<6?1:n.level===6?2:3)<<6,n.strstart!==0&&(i|=32),Ee(n,i+=31-i%31),n.strstart!==0&&(Ee(n,e.adler>>>16),Ee(n,65535&e.adler)),e.adler=1,n.status=he,Ce(e),n.pending!==0)return n.last_flush=-1,J}if(n.status===57){if(e.adler=0,Te(n,31),Te(n,139),Te(n,8),n.gzhead)Te(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)),Te(n,255&n.gzhead.time),Te(n,n.gzhead.time>>8&255),Te(n,n.gzhead.time>>16&255),Te(n,n.gzhead.time>>24&255),Te(n,n.level===9?2:n.strategy>=Z||n.level<2?4:0),Te(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(Te(n,255&n.gzhead.extra.length),Te(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=z(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69;else if(Te(n,0),Te(n,0),Te(n,0),Te(n,0),Te(n,0),Te(n,n.level===9?2:n.strategy>=Z||n.level<2?4:0),Te(n,3),n.status=he,Ce(e),n.pending!==0)return n.last_flush=-1,J}if(n.status===69){if(n.gzhead.extra){for(var a=n.pending,o=(65535&n.gzhead.extra.length)-n.gzindex;n.pending+o>n.pending_buf_size;){var s=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+s),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>a&&(e.adler=z(e.adler,n.pending_buf,n.pending-a,a)),n.gzindex+=s,Ce(e),n.pending!==0)return n.last_flush=-1,J;a=0,o-=s}var c=new Uint8Array(n.gzhead.extra);n.pending_buf.set(c.subarray(n.gzindex,n.gzindex+o),n.pending),n.pending+=o,n.gzhead.hcrc&&n.pending>a&&(e.adler=z(e.adler,n.pending_buf,n.pending-a,a)),n.gzindex=0}n.status=73}if(n.status===73){if(n.gzhead.name){var l,u=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>u&&(e.adler=z(e.adler,n.pending_buf,n.pending-u,u)),Ce(e),n.pending!==0)return n.last_flush=-1,J;u=0}l=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,Te(n,l)}while(l!==0);n.gzhead.hcrc&&n.pending>u&&(e.adler=z(e.adler,n.pending_buf,n.pending-u,u)),n.gzindex=0}n.status=91}if(n.status===91){if(n.gzhead.comment){var d,f=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>f&&(e.adler=z(e.adler,n.pending_buf,n.pending-f,f)),Ce(e),n.pending!==0)return n.last_flush=-1,J;f=0}d=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,Te(n,d)}while(d!==0);n.gzhead.hcrc&&n.pending>f&&(e.adler=z(e.adler,n.pending_buf,n.pending-f,f))}n.status=103}if(n.status===103){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Ce(e),n.pending!==0))return n.last_flush=-1,J;Te(n,255&e.adler),Te(n,e.adler>>8&255),e.adler=0}if(n.status=he,Ce(e),n.pending!==0)return n.last_flush=-1,J}if(e.avail_in!==0||n.lookahead!==0||t!==G&&n.status!==ge){var p=n.level===0?Ae(n,t):n.strategy===Z?function(e,t){for(var n;;){if(e.lookahead===0&&(ke(e),e.lookahead===0)){if(t===G)return 1;break}if(e.match_length=0,n=te(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(we(e,!1),e.strm.avail_out===0))return 1}return e.insert=0,t===K?(we(e,!0),e.strm.avail_out===0?3:4):e.sym_next&&(we(e,!1),e.strm.avail_out===0)?1:2}(n,t):n.strategy===le?function(e,t){for(var n,r,i,a,o=e.window;;){if(e.lookahead<=Q){if(ke(e),e.lookahead<=Q&&t===G)return 1;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=o[i=e.strstart-1])===o[++i]&&r===o[++i]&&r===o[++i]){a=e.strstart+Q;do;while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&i<a);e.match_length=Q-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=te(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=te(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(we(e,!1),e.strm.avail_out===0))return 1}return e.insert=0,t===K?(we(e,!0),e.strm.avail_out===0?3:4):e.sym_next&&(we(e,!1),e.strm.avail_out===0)?1:2}(n,t):Pe[n.level].func(n,t);if(p!==3&&p!==4||(n.status=ge),p===1||p===3)return e.avail_out===0&&(n.last_flush=-1),J;if(p===2&&(t===re?ne(n):t!==q&&(U(n,0,0,!1),t===ie&&(ye(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),Ce(e),e.avail_out===0))return n.last_flush=-1,J}return t===K?n.wrap<=0?Y:(n.wrap===2?(Te(n,255&e.adler),Te(n,e.adler>>8&255),Te(n,e.adler>>16&255),Te(n,e.adler>>24&255),Te(n,255&e.total_in),Te(n,e.total_in>>8&255),Te(n,e.total_in>>16&255),Te(n,e.total_in>>24&255)):(Ee(n,e.adler>>>16),Ee(n,65535&e.adler)),Ce(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending===0?Y:J):J},deflateEnd:function(e){if(Ie(e))return ae;var t=e.state.status;return e.state=null,t===he?_e(e,oe):J},deflateSetDictionary:function(e,t){var n=t.length;if(Ie(e))return ae;var r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==$||r.lookahead)return ae;if(i===1&&(e.adler=L(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&(ye(r.head),r.strstart=0,r.block_start=0,r.insert=0);var a=new Uint8Array(r.w_size);a.set(t.subarray(n-r.w_size,n),0),t=a,n=r.w_size}var o=e.avail_in,s=e.next_in,c=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,ke(r);r.lookahead>=3;){var l=r.strstart,u=r.lookahead-2;do Se(r,l),l++;while(--u);r.strstart=l,r.lookahead=2,ke(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=s,e.input=c,e.avail_in=o,r.wrap=i,J},deflateInfo:`pako deflate (from Nodeca project)`};function Ve(e){return Ve=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ve(e)}var He=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},Ue=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if(Ve(n)!==`object`)throw TypeError(n+`must be non-object`);for(var r in n)He(n,r)&&(e[r]=n[r])}}return e},We=function(e){for(var t=0,n=0,r=e.length;n<r;n++)t+=e[n].length;for(var i=new Uint8Array(t),a=0,o=0,s=e.length;a<s;a++){var c=e[a];i.set(c,o),o+=c.length}return i},Ge=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Ge=!1}for(var Ke=new Uint8Array(256),qe=0;qe<256;qe++)Ke[qe]=qe>=252?6:qe>=248?5:qe>=240?4:qe>=224?3:qe>=192?2:1;Ke[254]=Ke[255]=1;var Je=function(e){if(typeof TextEncoder==`function`&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);var t,n,r,i,a,o=e.length,s=0;for(i=0;i<o;i++)(64512&(n=e.charCodeAt(i)))==55296&&i+1<o&&(64512&(r=e.charCodeAt(i+1)))==56320&&(n=65536+(n-55296<<10)+(r-56320),i++),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(s),a=0,i=0;a<s;i++)(64512&(n=e.charCodeAt(i)))==55296&&i+1<o&&(64512&(r=e.charCodeAt(i+1)))==56320&&(n=65536+(n-55296<<10)+(r-56320),i++),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|63&n):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t},Ye=function(e,t){var n,r,i=t||e.length;if(typeof TextDecoder==`function`&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));var a=Array(2*i);for(r=0,n=0;n<i;){var o=e[n++];if(o<128)a[r++]=o;else{var s=Ke[o];if(s>4)a[r++]=65533,n+=s-1;else{for(o&=s===2?31:s===3?15:7;s>1&&n<i;)o=o<<6|63&e[n++],s--;s>1?a[r++]=65533:o<65536?a[r++]=o:(o-=65536,a[r++]=55296|o>>10&1023,a[r++]=56320|1023&o)}}}return function(e,t){if(t<65534&&e.subarray&&Ge)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));for(var n=``,r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n}(a,r)},Xe=function(e,t){(t||=e.length)>e.length&&(t=e.length);for(var n=t-1;n>=0&&(192&e[n])==128;)n--;return n<0||n===0?t:n+Ke[e[n]]>t?n:t},Ze=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},Qe=Object.prototype.toString,$e=V.Z_NO_FLUSH,et=V.Z_SYNC_FLUSH,tt=V.Z_FULL_FLUSH,nt=V.Z_FINISH,rt=V.Z_OK,it=V.Z_STREAM_END,at={level:V.Z_DEFAULT_COMPRESSION,method:V.Z_DEFLATED,chunkSize:16384,windowBits:15,memLevel:8,strategy:V.Z_DEFAULT_STRATEGY,legacyHash:!0};function ot(e){this.options=Ue({},at,e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new Ze,this.strm.avail_out=0;var n=Be.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy,t.legacyHash);if(n!==rt)throw Error(B[n]);if(t.header&&Be.deflateSetHeader(this.strm,t.header),t.dictionary){var r;if(r=typeof t.dictionary==`string`?Je(t.dictionary):Qe.call(t.dictionary)===`[object ArrayBuffer]`?new Uint8Array(t.dictionary):t.dictionary,(n=Be.deflateSetDictionary(this.strm,r))!==rt)throw Error(B[n]);this._dict_set=!0}}function st(e,t){var n=new ot(t);if(n.push(e,!0),n.err)throw n.msg||B[n.err];return n.result}ot.prototype.push=function(e,t){var n,r,i=this.strm,a=this.options.chunkSize;if(this.ended)return!1;for(r=t===~~t?t:!0===t?nt:$e,typeof e==`string`?i.input=Je(e):Qe.call(e)===`[object ArrayBuffer]`?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;)if(i.avail_out===0&&(i.output=new Uint8Array(a),i.next_out=0,i.avail_out=a),(r===et||r===tt)&&i.avail_out<=6)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else{if((n=Be.deflate(i,r))===it)return i.next_out>0&&this.onData(i.output.subarray(0,i.next_out)),n=Be.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===rt;if(i.avail_out!==0){if(r>0&&i.next_out>0)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else if(i.avail_in===0)break}else this.onData(i.output)}return!0},ot.prototype.onData=function(e){this.chunks.push(e)},ot.prototype.onEnd=function(e){e===rt&&(this.result=We(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var ct={Deflate:ot,deflate:st,deflateRaw:function(e,t){return(t||={}).raw=!0,st(e,t)},gzip:function(e,t){return(t||={}).gzip=!0,st(e,t)},constants:V},lt=16209,ut=function(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E=e.state;n=e.next_in,w=e.input,r=n+(e.avail_in-5),i=e.next_out,T=e.output,a=i-(t-e.avail_out),o=i+(e.avail_out-257),s=E.dmax,c=E.wsize,l=E.whave,u=E.wnext,d=E.window,f=E.hold,p=E.bits,m=E.lencode,h=E.distcode,g=(1<<E.lenbits)-1,_=(1<<E.distbits)-1;t:do{p<15&&(f+=w[n++]<<p,p+=8,f+=w[n++]<<p,p+=8),v=m[f&g];e:for(;;){if(f>>>=y=v>>>24,p-=y,(y=v>>>16&255)==0)T[i++]=65535&v;else{if(!(16&y)){if(!(64&y)){v=m[(65535&v)+(f&(1<<y)-1)];continue e}if(32&y){E.mode=16191;break t}e.msg=`invalid literal/length code`,E.mode=lt;break t}b=65535&v,(y&=15)&&(p<y&&(f+=w[n++]<<p,p+=8),b+=f&(1<<y)-1,f>>>=y,p-=y),p<15&&(f+=w[n++]<<p,p+=8,f+=w[n++]<<p,p+=8),v=h[f&_];a:for(;;){if(f>>>=y=v>>>24,p-=y,!(16&(y=v>>>16&255))){if(!(64&y)){v=h[(65535&v)+(f&(1<<y)-1)];continue a}e.msg=`invalid distance code`,E.mode=lt;break t}if(x=65535&v,p<(y&=15)&&(f+=w[n++]<<p,(p+=8)<y&&(f+=w[n++]<<p,p+=8)),(x+=f&(1<<y)-1)>s){e.msg=`invalid distance too far back`,E.mode=lt;break t}if(f>>>=y,p-=y,x>(y=i-a)){if((y=x-y)>l&&E.sane){e.msg=`invalid distance too far back`,E.mode=lt;break t}if(S=0,C=d,u===0){if(S+=c-y,y<b){b-=y;do T[i++]=d[S++];while(--y);S=i-x,C=T}}else if(u<y){if(S+=c+u-y,(y-=u)<b){b-=y;do T[i++]=d[S++];while(--y);if(S=0,u<b){b-=y=u;do T[i++]=d[S++];while(--y);S=i-x,C=T}}}else if(S+=u-y,y<b){b-=y;do T[i++]=d[S++];while(--y);S=i-x,C=T}for(;b>2;)T[i++]=C[S++],T[i++]=C[S++],T[i++]=C[S++],b-=3;b&&(T[i++]=C[S++],b>1&&(T[i++]=C[S++]))}else{S=i-x;do T[i++]=T[S++],T[i++]=T[S++],T[i++]=T[S++],b-=3;while(b>2);b&&(T[i++]=T[S++],b>1&&(T[i++]=T[S++]))}break}}break}}while(n<r&&i<o);n-=b=p>>3,f&=(1<<(p-=b<<3))-1,e.next_in=n,e.next_out=i,e.avail_in=n<r?r-n+5:5-(n-r),e.avail_out=i<o?o-i+257:257-(i-o),E.hold=f,E.bits=p},dt=15,ft=new Uint16Array([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]),pt=new Uint8Array([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,199,75]),mt=new Uint16Array([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]),ht=new Uint8Array([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]),gt=function(e,t,n,r,i,a,o,s){var c,l,u,d,f,p,m,h,g,_=s.bits,v=0,y=0,b=0,x=0,S=0,C=0,w=0,T=0,E=0,D=0,O=null,k=new Uint16Array(16),A=new Uint16Array(16),j=null;for(v=0;v<=dt;v++)k[v]=0;for(y=0;y<r;y++)k[t[n+y]]++;for(S=_,x=dt;x>=1&&k[x]===0;x--);if(S>x&&(S=x),x===0)return i[a++]=20971520,i[a++]=20971520,s.bits=1,0;for(b=1;b<x&&k[b]===0;b++);for(S<b&&(S=b),T=1,v=1;v<=dt;v++)if(T<<=1,(T-=k[v])<0)return-1;if(T>0&&(e===0||x!==1))return-1;for(A[1]=0,v=1;v<dt;v++)A[v+1]=A[v]+k[v];for(y=0;y<r;y++)t[n+y]!==0&&(o[A[t[n+y]]++]=y);if(e===0?(O=j=o,p=20):e===1?(O=ft,j=pt,p=257):(O=mt,j=ht,p=0),D=0,y=0,v=b,f=a,C=S,w=0,u=-1,d=(E=1<<S)-1,e===1&&E>852||e===2&&E>592)return 1;for(;;){m=v-w,o[y]+1<p?(h=0,g=o[y]):o[y]>=p?(h=j[o[y]-p],g=O[o[y]-p]):(h=96,g=0),c=1<<v-w,b=l=1<<C;do i[f+(D>>w)+(l-=c)]=m<<24|h<<16|g|0;while(l!==0);for(c=1<<v-1;D&c;)c>>=1;if(c===0?D=0:(D&=c-1,D+=c),y++,--k[v]==0){if(v===x)break;v=t[n+o[y]]}if(v>S&&(D&d)!==u){for(w===0&&(w=S),f+=b,T=1<<(C=v-w);C+w<x&&!((T-=k[C+w])<=0);)C++,T<<=1;if(E+=1<<C,e===1&&E>852||e===2&&E>592)return 1;i[u=D&d]=S<<24|C<<16|f-a|0}}return D!==0&&(i[f+D]=v-w<<24|4194304),s.bits=S,0},_t=V.Z_FINISH,vt=V.Z_BLOCK,yt=V.Z_TREES,bt=V.Z_OK,xt=V.Z_STREAM_END,St=V.Z_NEED_DICT,Ct=V.Z_STREAM_ERROR,wt=V.Z_DATA_ERROR,Tt=V.Z_MEM_ERROR,Et=V.Z_BUF_ERROR,Dt=V.Z_DEFLATED,Ot=16180,kt=16190,At=16191,jt=16192,Mt=16194,Nt=16199,Pt=16200,Ft=16206,It=16209,Lt=function(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)};function Rt(){this.strm=null,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 Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var zt,Bt,Vt=function(e){if(!e)return 1;var t=e.state;return!t||t.strm!==e||t.mode<Ot||t.mode>16211?1:0},Ht=function(e){if(Vt(e))return Ct;var t=e.state;return e.total_in=e.total_out=t.total=0,e.msg=``,t.wrap&&(e.adler=1&t.wrap),t.mode=Ot,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,bt},Ut=function(e){if(Vt(e))return Ct;var t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,Ht(e)},Wt=function(e,t){var n;if(Vt(e))return Ct;var r=e.state;return t<0?(n=0,t=-t):(n=5+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?Ct:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Ut(e))},Gt=function(e,t){if(!e)return Ct;var n=new Rt;e.state=n,n.strm=e,n.window=null,n.mode=Ot;var r=Wt(e,t);return r!==bt&&(e.state=null),r},Kt=!0,qt=function(e){if(Kt){zt=new Int32Array(512),Bt=new Int32Array(32);for(var t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(gt(1,e.lens,0,288,zt,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;gt(2,e.lens,0,32,Bt,0,e.work,{bits:5}),Kt=!1}e.lencode=zt,e.lenbits=9,e.distcode=Bt,e.distbits=5},Jt=function(e,t,n,r){var i,a=e.state;return a.window===null&&(a.window=new Uint8Array(1<<a.wbits)),a.wsize===0&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0),r>=a.wsize?(a.window.set(t.subarray(n-a.wsize,n),0),a.wnext=0,a.whave=a.wsize):((i=a.wsize-a.wnext)>r&&(i=r),a.window.set(t.subarray(n-r,n-r+i),a.wnext),(r-=i)?(a.window.set(t.subarray(n-r,n),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0},Yt={inflateReset:Ut,inflateReset2:Wt,inflateResetKeep:Ht,inflateInit:function(e){return Gt(e,15)},inflateInit2:Gt,inflate:function(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E=0,D=new Uint8Array(4),O=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Vt(e)||!e.output||!e.input&&e.avail_in!==0)return Ct;(n=e.state).mode===At&&(n.mode=jt),o=e.next_out,i=e.output,c=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,l=n.hold,u=n.bits,d=s,f=c,C=bt;t:for(;;)switch(n.mode){case Ot:if(n.wrap===0){n.mode=jt;break}for(;u<16;){if(s===0)break t;s--,l+=r[a++]<<u,u+=8}if(2&n.wrap&&l===35615){n.wbits===0&&(n.wbits=15),n.check=0,D[0]=255&l,D[1]=l>>>8&255,n.check=z(n.check,D,2,0),l=0,u=0,n.mode=16181;break}if(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&l)<<8)+(l>>8))%31){e.msg=`incorrect header check`,n.mode=It;break}if((15&l)!==Dt){e.msg=`unknown compression method`,n.mode=It;break}if(u-=4,S=8+(15&(l>>>=4)),n.wbits===0&&(n.wbits=S),S>15||S>n.wbits){e.msg=`invalid window size`,n.mode=It;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=512&l?16189:At,l=0,u=0;break;case 16181:for(;u<16;){if(s===0)break t;s--,l+=r[a++]<<u,u+=8}if(n.flags=l,(255&n.flags)!==Dt){e.msg=`unknown compression method`,n.mode=It;break}if(57344&n.flags){e.msg=`unknown header flags set`,n.mode=It;break}n.head&&(n.head.text=l>>8&1),512&n.flags&&4&n.wrap&&(D[0]=255&l,D[1]=l>>>8&255,n.check=z(n.check,D,2,0)),l=0,u=0,n.mode=16182;case 16182:for(;u<32;){if(s===0)break t;s--,l+=r[a++]<<u,u+=8}n.head&&(n.head.time=l),512&n.flags&&4&n.wrap&&(D[0]=255&l,D[1]=l>>>8&255,D[2]=l>>>16&255,D[3]=l>>>24&255,n.check=z(n.check,D,4,0)),l=0,u=0,n.mode=16183;case 16183:for(;u<16;){if(s===0)break t;s--,l+=r[a++]<<u,u+=8}n.head&&(n.head.xflags=255&l,n.head.os=l>>8),512&n.flags&&4&n.wrap&&(D[0]=255&l,D[1]=l>>>8&255,n.check=z(n.check,D,2,0)),l=0,u=0,n.mode=16184;case 16184:if(1024&n.flags){for(;u<16;){if(s===0)break t;s--,l+=r[a++]<<u,u+=8}n.length=l,n.head&&(n.head.extra_len=l),512&n.flags&&4&n.wrap&&(D[0]=255&l,D[1]=l>>>8&255,n.check=z(n.check,D,2,0)),l=0,u=0}else n.head&&(n.head.extra=null);n.mode=16185;case 16185:if(1024&n.flags&&((p=n.length)>s&&(p=s),p&&(n.head&&(S=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(a,a+p),S)),512&n.flags&&4&n.wrap&&(n.check=z(n.check,r,p,a)),s-=p,a+=p,n.length-=p),n.length))break t;n.length=0,n.mode=16186;case 16186:if(2048&n.flags){if(s===0)break t;p=0;do S=r[a+ p++],n.head&&S&&n.length<65536&&(n.head.name+=String.fromCharCode(S));while(S&&p<s);if(512&n.flags&&4&n.wrap&&(n.check=z(n.check,r,p,a)),s-=p,a+=p,S)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=16187;case 16187:if(4096&n.flags){if(s===0)break t;p=0;do S=r[a+ p++],n.head&&S&&n.length<65536&&(n.head.comment+=String.fromCharCode(S));while(S&&p<s);if(512&n.flags&&4&n.wrap&&(n.check=z(n.check,r,p,a)),s-=p,a+=p,S)break t}else n.head&&(n.head.comment=null);n.mode=16188;case 16188:if(512&n.flags){for(;u<16;){if(s===0)break t;s--,l+=r[a++]<<u,u+=8}if(4&n.wrap&&l!==(65535&n.check)){e.msg=`header crc mismatch`,n.mode=It;break}l=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=At;break;case 16189:for(;u<32;){if(s===0)break t;s--,l+=r[a++]<<u,u+=8}e.adler=n.check=Lt(l),l=0,u=0,n.mode=kt;case kt:if(n.havedict===0)return e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=u,St;e.adler=n.check=1,n.mode=At;case At:if(t===vt||t===yt)break t;case jt:if(n.last){l>>>=7&u,u-=7&u,n.mode=Ft;break}for(;u<3;){if(s===0)break t;s--,l+=r[a++]<<u,u+=8}switch(n.last=1&l,--u,3&(l>>>=1)){case 0:n.mode=16193;break;case 1:if(qt(n),n.mode=Nt,t===yt){l>>>=2,u-=2;break t}break;case 2:n.mode=16196;break;case 3:e.msg=`invalid block type`,n.mode=It}l>>>=2,u-=2;break;case 16193:for(l>>>=7&u,u-=7&u;u<32;){if(s===0)break t;s--,l+=r[a++]<<u,u+=8}if((65535&l)!=(l>>>16^65535)){e.msg=`invalid stored block lengths`,n.mode=It;break}if(n.length=65535&l,l=0,u=0,n.mode=Mt,t===yt)break t;case Mt:n.mode=16195;case 16195:if(p=n.length){if(p>s&&(p=s),p>c&&(p=c),p===0)break t;i.set(r.subarray(a,a+p),o),s-=p,a+=p,c-=p,o+=p,n.length-=p;break}n.mode=At;break;case 16196:for(;u<14;){if(s===0)break t;s--,l+=r[a++]<<u,u+=8}if(n.nlen=257+(31&l),l>>>=5,u-=5,n.ndist=1+(31&l),l>>>=5,u-=5,n.ncode=4+(15&l),l>>>=4,u-=4,n.nlen>286||n.ndist>30){e.msg=`too many length or distance symbols`,n.mode=It;break}n.have=0,n.mode=16197;case 16197:for(;n.have<n.ncode;){for(;u<3;){if(s===0)break t;s--,l+=r[a++]<<u,u+=8}n.lens[O[n.have++]]=7&l,l>>>=3,u-=3}for(;n.have<19;)n.lens[O[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,w={bits:n.lenbits},C=gt(0,n.lens,0,19,n.lencode,0,n.work,w),n.lenbits=w.bits,C){e.msg=`invalid code lengths set`,n.mode=It;break}n.have=0,n.mode=16198;case 16198:for(;n.have<n.nlen+n.ndist;){for(;_=(E=n.lencode[l&(1<<n.lenbits)-1])>>>16&255,v=65535&E,!((g=E>>>24)<=u);){if(s===0)break t;s--,l+=r[a++]<<u,u+=8}if(v<16)l>>>=g,u-=g,n.lens[n.have++]=v;else{if(v===16){for(T=g+2;u<T;){if(s===0)break t;s--,l+=r[a++]<<u,u+=8}if(l>>>=g,u-=g,n.have===0){e.msg=`invalid bit length repeat`,n.mode=It;break}S=n.lens[n.have-1],p=3+(3&l),l>>>=2,u-=2}else if(v===17){for(T=g+3;u<T;){if(s===0)break t;s--,l+=r[a++]<<u,u+=8}u-=g,S=0,p=3+(7&(l>>>=g)),l>>>=3,u-=3}else{for(T=g+7;u<T;){if(s===0)break t;s--,l+=r[a++]<<u,u+=8}u-=g,S=0,p=11+(127&(l>>>=g)),l>>>=7,u-=7}if(n.have+p>n.nlen+n.ndist){e.msg=`invalid bit length repeat`,n.mode=It;break}for(;p--;)n.lens[n.have++]=S}}if(n.mode===It)break;if(n.lens[256]===0){e.msg=`invalid code -- missing end-of-block`,n.mode=It;break}if(n.lenbits=9,w={bits:n.lenbits},C=gt(1,n.lens,0,n.nlen,n.lencode,0,n.work,w),n.lenbits=w.bits,C){e.msg=`invalid literal/lengths set`,n.mode=It;break}if(n.distbits=6,n.distcode=n.distdyn,w={bits:n.distbits},C=gt(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,w),n.distbits=w.bits,C){e.msg=`invalid distances set`,n.mode=It;break}if(n.mode=Nt,t===yt)break t;case Nt:n.mode=Pt;case Pt:if(s>=6&&c>=258){e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=u,ut(e,f),o=e.next_out,i=e.output,c=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,l=n.hold,u=n.bits,n.mode===At&&(n.back=-1);break}for(n.back=0;_=(E=n.lencode[l&(1<<n.lenbits)-1])>>>16&255,v=65535&E,!((g=E>>>24)<=u);){if(s===0)break t;s--,l+=r[a++]<<u,u+=8}if(_&&!(240&_)){for(y=g,b=_,x=v;_=(E=n.lencode[x+((l&(1<<y+b)-1)>>y)])>>>16&255,v=65535&E,!(y+(g=E>>>24)<=u);){if(s===0)break t;s--,l+=r[a++]<<u,u+=8}l>>>=y,u-=y,n.back+=y}if(l>>>=g,u-=g,n.back+=g,n.length=v,_===0){n.mode=16205;break}if(32&_){n.back=-1,n.mode=At;break}if(64&_){e.msg=`invalid literal/length code`,n.mode=It;break}n.extra=15&_,n.mode=16201;case 16201:if(n.extra){for(T=n.extra;u<T;){if(s===0)break t;s--,l+=r[a++]<<u,u+=8}n.length+=l&(1<<n.extra)-1,l>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=16202;case 16202:for(;_=(E=n.distcode[l&(1<<n.distbits)-1])>>>16&255,v=65535&E,!((g=E>>>24)<=u);){if(s===0)break t;s--,l+=r[a++]<<u,u+=8}if(!(240&_)){for(y=g,b=_,x=v;_=(E=n.distcode[x+((l&(1<<y+b)-1)>>y)])>>>16&255,v=65535&E,!(y+(g=E>>>24)<=u);){if(s===0)break t;s--,l+=r[a++]<<u,u+=8}l>>>=y,u-=y,n.back+=y}if(l>>>=g,u-=g,n.back+=g,64&_){e.msg=`invalid distance code`,n.mode=It;break}n.offset=v,n.extra=15&_,n.mode=16203;case 16203:if(n.extra){for(T=n.extra;u<T;){if(s===0)break t;s--,l+=r[a++]<<u,u+=8}n.offset+=l&(1<<n.extra)-1,l>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg=`invalid distance too far back`,n.mode=It;break}n.mode=16204;case 16204:if(c===0)break t;if(p=f-c,n.offset>p){if((p=n.offset-p)>n.whave&&n.sane){e.msg=`invalid distance too far back`,n.mode=It;break}p>n.wnext?(p-=n.wnext,m=n.wsize-p):m=n.wnext-p,p>n.length&&(p=n.length),h=n.window}else h=i,m=o-n.offset,p=n.length;p>c&&(p=c),c-=p,n.length-=p;do i[o++]=h[m++];while(--p);n.length===0&&(n.mode=Pt);break;case 16205:if(c===0)break t;i[o++]=n.length,c--,n.mode=Pt;break;case Ft:if(n.wrap){for(;u<32;){if(s===0)break t;s--,l|=r[a++]<<u,u+=8}if(f-=c,e.total_out+=f,n.total+=f,4&n.wrap&&f&&(e.adler=n.check=n.flags?z(n.check,i,f,o-f):L(n.check,i,f,o-f)),f=c,4&n.wrap&&(n.flags?l:Lt(l))!==n.check){e.msg=`incorrect data check`,n.mode=It;break}l=0,u=0}n.mode=16207;case 16207:if(n.wrap&&n.flags){for(;u<32;){if(s===0)break t;s--,l+=r[a++]<<u,u+=8}if(4&n.wrap&&l!==(4294967295&n.total)){e.msg=`incorrect length check`,n.mode=It;break}l=0,u=0}n.mode=16208;case 16208:C=xt;break t;case It:C=wt;break t;case 16210:return Tt;default:return Ct}return e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=u,(n.wsize||f!==e.avail_out&&n.mode<It&&(n.mode<Ft||t!==_t))&&Jt(e,e.output,e.next_out,f-e.avail_out),d-=e.avail_in,f-=e.avail_out,e.total_in+=d,e.total_out+=f,n.total+=f,4&n.wrap&&f&&(e.adler=n.check=n.flags?z(n.check,i,f,e.next_out-f):L(n.check,i,f,e.next_out-f)),e.data_type=n.bits+(n.last?64:0)+(n.mode===At?128:0)+(n.mode===Nt||n.mode===Mt?256:0),(d===0&&f===0||t===_t)&&C===bt&&(C=Et),C},inflateEnd:function(e){if(Vt(e))return Ct;var t=e.state;return t.window&&=null,e.state=null,bt},inflateGetHeader:function(e,t){if(Vt(e))return Ct;var n=e.state;return 2&n.wrap?(n.head=t,t.done=!1,bt):Ct},inflateSetDictionary:function(e,t){var n,r=t.length;return Vt(e)||(n=e.state).wrap!==0&&n.mode!==kt?Ct:n.mode===kt&&L(1,t,r,0)!==n.check?wt:Jt(e,t,r,r)?(n.mode=16210,Tt):(n.havedict=1,bt)},inflateInfo:`pako inflate (from Nodeca project)`},Xt=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},Zt=Object.prototype.toString,Qt=V.Z_NO_FLUSH,$t=V.Z_FINISH,en=V.Z_OK,tn=V.Z_STREAM_END,nn=V.Z_NEED_DICT,rn=V.Z_STREAM_ERROR,an=V.Z_DATA_ERROR,on=V.Z_MEM_ERROR,sn=V.Z_BUF_ERROR,cn={chunkSize:65536,windowBits:15,to:``};function ln(e){this.options=Ue({},cn,e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new Ze,this.strm.avail_out=0;var n=Yt.inflateInit2(this.strm,t.windowBits);if(n!==en||(this.header=new Xt,Yt.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary==`string`?t.dictionary=Je(t.dictionary):Zt.call(t.dictionary)===`[object ArrayBuffer]`&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Yt.inflateSetDictionary(this.strm,t.dictionary))!==en)))throw Error(B[n])}function un(e,t){var n=new ln(t);if(n.push(e,!0),n.err)throw n.msg||B[n.err];return n.result}ln.prototype.push=function(e,t){var n,r,i,a=this.strm,o=this.options.chunkSize,s=this.options.dictionary;if(this.ended)return!1;for(r=t===~~t?t:!0===t?$t:Qt,Zt.call(e)===`[object ArrayBuffer]`?a.input=new Uint8Array(e):a.input=e,a.next_in=0,a.avail_in=a.input.length;;){for(a.avail_out===0&&(a.output=new Uint8Array(o),a.next_out=0,a.avail_out=o),(n=Yt.inflate(a,r))===nn&&s&&((n=Yt.inflateSetDictionary(a,s))===en?n=Yt.inflate(a,r):n===an&&(n=nn));a.avail_in>0&&n===tn&&2&a.state.wrap&&a.state.flags!==0&&a.input[a.next_in]!==0;)Yt.inflateReset(a),n=Yt.inflate(a,r);switch(n){case rn:case an:case nn:case on:return this.onEnd(n),this.ended=!0,!1}if(i=a.avail_out,a.next_out&&(a.avail_out===0||n===tn||r>0))if(this.options.to===`string`){var c=Xe(a.output,a.next_out),l=a.next_out-c,u=Ye(a.output,c);a.next_out=l,a.avail_out=o-l,l&&a.output.set(a.output.subarray(c,c+l),0),this.onData(u)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out)),a.avail_out=0,a.next_out=0;if(n!==en&&n!==sn||i!==0){if(n===tn)return n=Yt.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,!0;if(a.avail_in===0){if(r===$t)return n=Yt.inflateEnd(this.strm),this.onEnd(n===en?sn:n),this.ended=!0,!1;break}}}return!0},ln.prototype.onData=function(e){this.chunks.push(e)},ln.prototype.onEnd=function(e){e===en&&(this.options.to===`string`?this.result=this.chunks.join(``):this.result=We(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var dn={Inflate:ln,inflate:un,inflateRaw:function(e,t){return(t||={}).raw=!0,un(e,t)},ungzip:un,constants:V},fn=ct.Deflate,pn=ct.deflate,mn=ct.deflateRaw,hn=ct.gzip,gn=dn.Inflate,_n=dn.inflate,vn=dn.inflateRaw,yn=dn.ungzip,bn=V,xn={Deflate:fn,deflate:pn,deflateRaw:mn,gzip:hn,Inflate:gn,inflate:_n,inflateRaw:vn,ungzip:yn,constants:bn};e.Deflate=fn,e.Inflate=gn,e.constants=bn,e.default=xn,e.deflate=pn,e.deflateRaw=mn,e.gzip=hn,e.inflate=_n,e.inflateRaw=vn,e.ungzip=yn,Object.defineProperty(e,`__esModule`,{value:!0})}))})),ou=a((e=>{var t=typeof Uint8Array<`u`&&typeof Uint16Array<`u`&&typeof Uint32Array<`u`,n=au();e.uncompressInputType=t?`uint8array`:`array`,e.compressInputType=t?`uint8array`:`array`,e.magic=`\b\0`,e.compress=function(e,t){return n.deflateRaw(e,{level:t.level||-1})},e.uncompress=function(e){return n.inflateRaw(e)}})),su=a((e=>{e.STORE={magic:`\0\0`,compress:function(e){return e},uncompress:function(e){return e},compressInputType:null,uncompressInputType:null},e.DEFLATE=ou()})),cu=a(((e,t)=>{t.exports=function(e,t){return typeof e==`number`?Buffer.alloc(e):Buffer.from(e,t)},t.exports.test=function(e){return Buffer.isBuffer(e)}})),lu=a((e=>{function t(e){"@babel/helpers - typeof";return t=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t(e)}var n=iu(),r=su(),i=cu();e.string2binary=function(e){for(var t=``,n=0;n<e.length;n++)t+=String.fromCharCode(e.charCodeAt(n)&255);return t},e.arrayBuffer2Blob=function(t,n){e.checkSupport(`blob`),n||=`application/zip`;try{return new Blob([t],{type:n})}catch{try{var r=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder);return r.append(t),r.getBlob(n)}catch{throw Error(`Bug : can't construct the Blob.`)}}};function a(e){return e}function o(e,t){for(var n=0;n<e.length;++n)t[n]=e.charCodeAt(n)&255;return t}function s(t){var n=65536,r=[],a=t.length,o=e.getTypeOf(t),s=0,c=!0;try{switch(o){case`uint8array`:String.fromCharCode.apply(null,new Uint8Array);break;case`nodebuffer`:String.fromCharCode.apply(null,i(0));break}}catch{c=!1}if(!c){for(var l=``,u=0;u<t.length;u++)l+=String.fromCharCode(t[u]);return l}for(;s<a&&n>1;)try{o===`array`||o===`nodebuffer`?r.push(String.fromCharCode.apply(null,t.slice(s,Math.min(s+n,a)))):r.push(String.fromCharCode.apply(null,t.subarray(s,Math.min(s+n,a)))),s+=n}catch{n=Math.floor(n/2)}return r.join(``)}e.applyFromCharCode=s;function c(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}var l={};l.string={string:a,array:function(e){return o(e,Array(e.length))},arraybuffer:function(e){return l.string.uint8array(e).buffer},uint8array:function(e){return o(e,new Uint8Array(e.length))},nodebuffer:function(e){return o(e,i(e.length))}},l.array={string:s,array:a,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return i(e)}},l.arraybuffer={string:function(e){return s(new Uint8Array(e))},array:function(e){return c(new Uint8Array(e),Array(e.byteLength))},arraybuffer:a,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return i(new Uint8Array(e))}},l.uint8array={string:s,array:function(e){return c(e,Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:a,nodebuffer:function(e){return i(e)}},l.nodebuffer={string:s,array:function(e){return c(e,Array(e.length))},arraybuffer:function(e){return l.nodebuffer.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:a},e.transformTo=function(t,n){return n||=``,t?(e.checkSupport(t),l[e.getTypeOf(n)][t](n)):n},e.getTypeOf=function(e){if(e!=null){if(typeof e==`string`)return`string`;var r=Object.prototype.toString.call(e);if(r===`[object Array]`)return`array`;if(n.nodebuffer&&i.test(e))return`nodebuffer`;if(n.uint8array&&r===`[object Uint8Array]`)return`uint8array`;if(n.arraybuffer&&r===`[object ArrayBuffer]`)return`arraybuffer`;if(r===`[object Promise]`)throw Error(`Cannot read data from a promise, you probably are running new PizZip(data) with a promise`);if(t(e)===`object`&&typeof e.file==`function`)throw Error(`Cannot read data from a pizzip instance, you probably are running new PizZip(zip) with a zipinstance`);if(r===`[object Date]`)throw Error(`Cannot read data from a Date, you probably are running new PizZip(data) with a date`);if(t(e)===`object`&&e.crc32==null)throw Error(`Unsupported data given to new PizZip(data) (object given)`)}},e.checkSupport=function(e){if(!n[e.toLowerCase()])throw Error(e+` is not supported by this browser`)},e.MAX_VALUE_16BITS=65535,e.MAX_VALUE_32BITS=-1,e.pretty=function(e){var t=``,n,r;for(r=0;r<(e||``).length;r++)n=e.charCodeAt(r),t+=`\\x`+(n<16?`0`:``)+n.toString(16).toUpperCase();return t},e.findCompression=function(e){for(var t in r)if(r.hasOwnProperty(t)&&r[t].magic===e)return r[t];return null},e.isRegExp=function(e){return Object.prototype.toString.call(e)===`[object RegExp]`},e.extend=function(){var e={},t,n;for(t=0;t<arguments.length;t++)for(n in arguments[t])arguments[t].hasOwnProperty(n)&&e[n]===void 0&&(e[n]=arguments[t][n]);return e}})),uu=a(((e,t)=>{var n=lu(),r=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];t.exports=function(e,t){if(e===void 0||!e.length)return 0;var i=n.getTypeOf(e)!==`string`;t===void 0&&(t=0);var a=0,o=0,s=0;t^=-1;for(var c=0,l=e.length;c<l;c++)s=i?e[c]:e.charCodeAt(c),o=(t^s)&255,a=r[o],t=t>>>8^a;return t^-1}})),du=a((e=>{e.LOCAL_FILE_HEADER=`PK`,e.CENTRAL_FILE_HEADER=`PK`,e.CENTRAL_DIRECTORY_END=`PK`,e.ZIP64_CENTRAL_DIRECTORY_LOCATOR=`PK\x07`,e.ZIP64_CENTRAL_DIRECTORY_END=`PK`,e.DATA_DESCRIPTOR=`PK\x07\b`})),fu=a((e=>{e.base64=!1,e.binary=!1,e.dir=!1,e.createFolders=!1,e.date=null,e.compression=null,e.compressionOptions=null,e.comment=null,e.unixPermissions=null,e.dosPermissions=null})),pu=a(((e,t)=>{function n(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}n.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},t.exports=n})),mu=a((e=>{for(var t=lu(),n=iu(),r=cu(),i=Array(256),a=0;a<256;a++)i[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;i[254]=i[254]=1;function o(e){var t,r,i,a,o,s=0,c=e.length;for(a=0;a<c;a++)r=e.charCodeAt(a),(r&64512)==55296&&a+1<c&&(i=e.charCodeAt(a+1),(i&64512)==56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=n.uint8array?new Uint8Array(s):Array(s),o=0,a=0;o<s;a++)r=e.charCodeAt(a),(r&64512)==55296&&a+1<c&&(i=e.charCodeAt(a+1),(i&64512)==56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),r<128?t[o++]=r:r<2048?(t[o++]=192|r>>>6,t[o++]=128|r&63):r<65536?(t[o++]=224|r>>>12,t[o++]=128|r>>>6&63,t[o++]=128|r&63):(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63,t[o++]=128|r>>>6&63,t[o++]=128|r&63);return t}function s(e,t){var n;for(t||=e.length,t>e.length&&(t=e.length),n=t-1;n>=0&&(e[n]&192)==128;)n--;return n<0||n===0?t:n+i[e[n]]>t?n:t}function c(e){var n,r,a,o,s=e.length,c=Array(s*2);for(r=0,n=0;n<s;){if(a=e[n++],a<128){c[r++]=a;continue}if(o=i[a],o>4){c[r++]=65533,n+=o-1;continue}for(a&=o===2?31:o===3?15:7;o>1&&n<s;)a=a<<6|e[n++]&63,o--;if(o>1){c[r++]=65533;continue}a<65536?c[r++]=a:(a-=65536,c[r++]=55296|a>>10&1023,c[r++]=56320|a&1023)}return c.length!==r&&(c.subarray?c=c.subarray(0,r):c.length=r),t.applyFromCharCode(c)}e.utf8encode=function(e){return n.nodebuffer?r(e,`utf-8`):o(e)},e.utf8decode=function(e){if(n.nodebuffer)return t.transformTo(`nodebuffer`,e).toString(`utf-8`);e=t.transformTo(n.uint8array?`uint8array`:`array`,e);for(var r=[],i=e.length,a=65536,o=0;o<i;){var l=s(e,Math.min(o+a,i));n.uint8array?r.push(c(e.subarray(o,l))):r.push(c(e.slice(o,l))),o=l}return r.join(``)}})),hu=a(((e,t)=>{var n=lu();function r(){this.data=[]}r.prototype={append:function(e){e=n.transformTo(`string`,e),this.data.push(e)},finalize:function(){return this.data.join(``)}},t.exports=r})),gu=a(((e,t)=>{var n=lu();function r(e){this.data=new Uint8Array(e),this.index=0}r.prototype={append:function(e){e.length!==0&&(e=n.transformTo(`uint8array`,e),this.data.set(e,this.index),this.index+=e.length)},finalize:function(){return this.data}},t.exports=r})),_u=a(((e,t)=>{function n(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||n.return==null||n.return()}finally{if(c)throw o}}}}function r(e,t){if(e){if(typeof e==`string`)return i(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}function i(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var a=iu(),o=lu(),s=uu(),c=du(),l=fu(),u=ru(),d=su(),f=pu(),p=cu(),m=mu(),h=hu(),g=gu();function _(e){if(e._data instanceof f&&(e._data=e._data.getContent(),e.options.binary=!0,e.options.base64=!1,o.getTypeOf(e._data)===`uint8array`)){var t=e._data;e._data=new Uint8Array(t.length),t.length!==0&&e._data.set(t,0)}return e._data}function v(e){var t=_(e);return o.getTypeOf(t)===`string`?!e.options.binary&&a.nodebuffer?p(t,`utf-8`):e.asBinary():t}var y={load:function(){throw Error(`Load method is not defined. Is the file pizzip-load.js included ?`)},filter:function(e){var t=[],n,r,i,a;for(n in this.files)this.files.hasOwnProperty(n)&&(i=this.files[n],a=new x(i.name,i._data,o.extend(i.options)),r=n.slice(this.root.length,n.length),n.slice(0,this.root.length)===this.root&&e(r,a)&&t.push(a));return t},file:function(e,t,n){if(arguments.length===1){if(o.isRegExp(e)){var r=e;return this.filter(function(e,t){return!t.dir&&r.test(e)})}return this.filter(function(t,n){return!n.dir&&t===e})[0]||null}return e=this.root+e,w.call(this,e,t,n),this},folder:function(e){if(!e)return this;if(o.isRegExp(e))return this.filter(function(t,n){return n.dir&&e.test(t)});var t=this.root+e,n=D.call(this,t),r=this.shallowClone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||=(e.slice(-1)!==`/`&&(e+=`/`),this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter(function(t,n){return n.name.slice(0,e.length)===e}),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(e){e=o.extend(e||{},{base64:!0,compression:`STORE`,compressionOptions:null,type:`base64`,platform:`DOS`,comment:null,mimeType:`application/zip`,encodeFileName:m.utf8encode}),o.checkSupport(e.type),(e.platform===`darwin`||e.platform===`freebsd`||e.platform===`linux`||e.platform===`sunos`)&&(e.platform=`UNIX`),e.platform===`win32`&&(e.platform=`DOS`);var t=[],r=o.transformTo(`string`,e.encodeFileName(e.comment||this.comment||``)),i=0,a=0,s,l,f=[];for(var p in e.fileOrder instanceof Array&&(f=e.fileOrder),this.files)f.indexOf(p)===-1&&f.push(p);typeof e.fileOrder==`function`&&(f=e.fileOrder(this.files));var _=n(f),v;try{for(_.s();!(v=_.n()).done;){var y=v.value;if(this.files.hasOwnProperty(y)){var b=this.files[y],x=b.options.compression||e.compression.toUpperCase(),C=d[x];if(!C)throw Error(x+` is not a valid compression method !`);var w=b.options.compressionOptions||e.compressionOptions||{},T=O.call(this,b,C,w),E=j.call(this,y,b,T,i,e.platform,e.encodeFileName);i+=E.fileRecord.length+T.compressedSize,a+=E.dirRecord.length,t.push(E)}}}catch(e){_.e(e)}finally{_.f()}var D=``;D=c.CENTRAL_DIRECTORY_END+`\0\0\0\0`+S(t.length,2)+S(t.length,2)+S(a,4)+S(i,4)+S(r.length,2)+r;var k=e.type.toLowerCase();for(s=k===`uint8array`||k===`arraybuffer`||k===`blob`||k===`nodebuffer`?new g(i+a+D.length):new h(i+a+D.length),l=0;l<t.length;l++)s.append(t[l].fileRecord),s.append(t[l].compressedObject.compressedContent);for(l=0;l<t.length;l++)s.append(t[l].dirRecord);s.append(D);var A=s.finalize();switch(e.type.toLowerCase()){case`uint8array`:case`arraybuffer`:case`nodebuffer`:return o.transformTo(e.type.toLowerCase(),A);case`blob`:return o.arrayBuffer2Blob(o.transformTo(`arraybuffer`,A),e.mimeType);case`base64`:return e.base64?u.encode(A):A;default:return A}},crc32:function(e,t){return s(e,t)},utf8encode:function(e){return o.transformTo(`string`,m.utf8encode(e))},utf8decode:function(e){return m.utf8decode(e)}};function b(e){var t=_(this);return t==null?``:(this.options.base64&&(t=u.decode(t)),t=e&&this.options.binary?y.utf8decode(t):o.transformTo(`string`,t),!e&&!this.options.binary&&(t=o.transformTo(`string`,y.utf8encode(t))),t)}function x(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this.options=n,this._initialMetadata={dir:n.dir,date:n.date}}x.prototype={asText:function(){return b.call(this,!0)},asBinary:function(){return b.call(this,!1)},asNodeBuffer:function(){var e=v(this);return o.transformTo(`nodebuffer`,e)},asUint8Array:function(){var e=v(this);return o.transformTo(`uint8array`,e)},asArrayBuffer:function(){return this.asUint8Array().buffer}};function S(e,t){var n=``,r;for(r=0;r<t;r++)n+=String.fromCharCode(e&255),e>>>=8;return n}function C(e){return e||={},e.base64===!0&&(e.binary===null||e.binary===void 0)&&(e.binary=!0),e=o.extend(e,l),e.date=e.date||new Date,e.compression!==null&&(e.compression=e.compression.toUpperCase()),e}function w(e,t,n){var r=o.getTypeOf(t),i;if(n=C(n),typeof n.unixPermissions==`string`&&(n.unixPermissions=parseInt(n.unixPermissions,8)),n.unixPermissions&&n.unixPermissions&16384&&(n.dir=!0),n.dosPermissions&&n.dosPermissions&16&&(n.dir=!0),n.dir&&(e=E(e)),n.createFolders&&(i=T(e))&&D.call(this,i,!0),n.dir||t==null)n.base64=!1,n.binary=!1,t=null,r=null;else if(r===`string`)n.binary&&!n.base64&&n.optimizedBinaryString!==!0&&(t=o.string2binary(t));else{if(n.base64=!1,n.binary=!0,!r&&!(t instanceof f))throw Error(`The data of '`+e+`' is in an unsupported format !`);r===`arraybuffer`&&(t=o.transformTo(`uint8array`,t))}var a=new x(e,t,n);return this.files[e]=a,a}function T(e){e.slice(-1)===`/`&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf(`/`);return t>0?e.substring(0,t):``}function E(e){return e.slice(-1)!==`/`&&(e+=`/`),e}function D(e,t){return t=t===void 0?!1:t,e=E(e),this.files[e]||w.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]}function O(e,t,n){var r=new f,i;return e._data instanceof f?(r.uncompressedSize=e._data.uncompressedSize,r.crc32=e._data.crc32,r.uncompressedSize===0||e.dir?(t=d.STORE,r.compressedContent=``,r.crc32=0):e._data.compressionMethod===t.magic?r.compressedContent=e._data.getCompressedContent():(i=e._data.getContent(),r.compressedContent=t.compress(o.transformTo(t.compressInputType,i),n))):(i=v(e),(!i||i.length===0||e.dir)&&(t=d.STORE,i=``),r.uncompressedSize=i.length,r.crc32=s(i),r.compressedContent=t.compress(o.transformTo(t.compressInputType,i),n)),r.compressedSize=r.compressedContent.length,r.compressionMethod=t.magic,r}function k(e,t){var n=e;return e||(n=t?16893:33204),(n&65535)<<16}function A(e){return(e||0)&63}function j(e,t,n,r,i,a){var l=a!==m.utf8encode,u=o.transformTo(`string`,a(t.name)),d=o.transformTo(`string`,m.utf8encode(t.name)),f=t.comment||``,p=o.transformTo(`string`,a(f)),h=o.transformTo(`string`,m.utf8encode(f)),g=d.length!==t.name.length,_=h.length!==f.length,v=t.options,y,b,x=``,C=``,w=``,T=t._initialMetadata.dir===t.dir?v.dir:t.dir,E=t._initialMetadata.date===t.date?v.date:t.date,D=0,O=0;T&&(D|=16),i===`UNIX`?(O=798,D|=k(t.unixPermissions,T)):(O=20,D|=A(t.dosPermissions,T)),y=E.getHours(),y<<=6,y|=E.getMinutes(),y<<=5,y|=E.getSeconds()/2,b=E.getFullYear()-1980,b<<=4,b|=E.getMonth()+1,b<<=5,b|=E.getDate(),g&&(C=S(1,1)+S(s(u),4)+d,x+=`up`+S(C.length,2)+C),_&&(w=S(1,1)+S(this.crc32(p),4)+h,x+=`uc`+S(w.length,2)+w);var j=``;return j+=`
\0`,j+=!l&&(g||_)?`\0\b`:`\0\0`,j+=n.compressionMethod,j+=S(y,2),j+=S(b,2),j+=S(n.crc32,4),j+=S(n.compressedSize,4),j+=S(n.uncompressedSize,4),j+=S(u.length,2),j+=S(x.length,2),{fileRecord:c.LOCAL_FILE_HEADER+j+u+x,dirRecord:c.CENTRAL_FILE_HEADER+S(O,2)+j+S(p.length,2)+`\0\0\0\0`+S(D,4)+S(r,4)+u+x+p,compressedObject:n}}t.exports=y})),vu=a(((e,t)=>{var n=lu();function r(){this.data=null,this.length=0,this.index=0,this.zero=0}r.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw Error(`End of data reached (data length = `+this.length+`, asked index = `+e+`). Corrupted zip ?`)},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t=0,n;for(this.checkOffset(e),n=this.index+e-1;n>=this.index;n--)t=(t<<8)+this.byteAt(n);return this.index+=e,t},readString:function(e){return n.transformTo(`string`,this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1)}},t.exports=r})),yu=a(((e,t)=>{var n=vu(),r=lu();function i(e,t){this.data=e,t||(this.data=r.string2binary(this.data)),this.length=this.data.length,this.index=0,this.zero=0}i.prototype=new n,i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i})),bu=a(((e,t)=>{var n=vu();function r(e){if(e){this.data=e,this.length=this.data.length,this.index=0,this.zero=0;for(var t=0;t<this.data.length;t++)e[t]&=e[t]}}r.prototype=new n,r.prototype.byteAt=function(e){return this.data[this.zero+e]},r.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;a>=0;--a)if(this.data[a]===t&&this.data[a+1]===n&&this.data[a+2]===r&&this.data[a+3]===i)return a-this.zero;return-1},r.prototype.readData=function(e){if(this.checkOffset(e),e===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r})),xu=a(((e,t)=>{var n=bu();function r(e){e&&(this.data=e,this.length=this.data.length,this.index=0,this.zero=0)}r.prototype=new n,r.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array;var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r})),Su=a(((e,t)=>{var n=xu();function r(e){this.data=e,this.length=this.data.length,this.index=0,this.zero=0}r.prototype=new n,r.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r})),Cu=a(((e,t)=>{var n=yu(),r=lu(),i=pu(),a=_u(),o=iu(),s=0,c=3;function l(e,t){this.options=e,this.loadOptions=t}l.prototype={isEncrypted:function(){return(this.bitFlag&1)==1},useUTF8:function(){return(this.bitFlag&2048)==2048},prepareCompressedContent:function(e,t,n){return function(){var r=e.index;e.setIndex(t);var i=e.readData(n);return e.setIndex(r),i}},prepareContent:function(e,t,n,i,a){return function(){var e=r.transformTo(i.uncompressInputType,this.getCompressedContent()),t=i.uncompress(e);if(t.length!==a)throw Error(`Bug : uncompressed data size mismatch`);return t}},readLocalPart:function(e){e.skip(22),this.fileNameLength=e.readInt(2);var t=e.readInt(2);if(this.fileName=e.readData(this.fileNameLength),e.skip(t),this.compressedSize===-1||this.uncompressedSize===-1)throw Error(`Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize == -1 || uncompressedSize == -1)`);var n=r.findCompression(this.compressionMethod);if(n===null)throw Error(`Corrupted zip : compression `+r.pretty(this.compressionMethod)+` unknown (inner file : `+r.transformTo(`string`,this.fileName)+`)`);if(this.decompressed=new i,this.decompressed.compressedSize=this.compressedSize,this.decompressed.uncompressedSize=this.uncompressedSize,this.decompressed.crc32=this.crc32,this.decompressed.compressionMethod=this.compressionMethod,this.decompressed.getCompressedContent=this.prepareCompressedContent(e,e.index,this.compressedSize,n),this.decompressed.getContent=this.prepareContent(e,e.index,this.compressedSize,n,this.uncompressedSize),this.loadOptions.checkCRC32&&(this.decompressed=r.transformTo(`string`,this.decompressed.getContent()),a.crc32(this.decompressed)!==this.crc32))throw Error(`Corrupted zip : CRC32 mismatch`)},readCentralPart:function(e){if(this.versionMadeBy=e.readInt(2),this.versionNeeded=e.readInt(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4),this.fileNameLength=e.readInt(2),this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw Error(`Encrypted zip are not supported`);this.fileName=e.readData(this.fileNameLength),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),e===s&&(this.dosPermissions=this.externalFileAttributes&63),e===c&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)===`/`&&(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=new n(this.extraFields[1].value);this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t=e.index,n,r,i;for(this.extraFields=this.extraFields||{};e.index<t+this.extraFieldsLength;)n=e.readInt(2),r=e.readInt(2),i=e.readString(r),this.extraFields[n]={id:n,length:r,value:i}},handleUTF8:function(){var e=o.uint8array?`uint8array`:`array`;if(this.useUTF8())this.fileNameStr=a.utf8decode(this.fileName),this.fileCommentStr=a.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else{var n=r.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var i=this.findExtraFieldUnicodeComment();if(i!==null)this.fileCommentStr=i;else{var s=r.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(s)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=new n(e.value);return t.readInt(1)!==1||a.crc32(this.fileName)!==t.readInt(4)?null:a.utf8decode(t.readString(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=new n(e.value);return t.readInt(1)!==1||a.crc32(this.fileComment)!==t.readInt(4)?null:a.utf8decode(t.readString(e.length-5))}return null}},t.exports=l})),wu=a(((e,t)=>{var n=yu(),r=Su(),i=xu(),a=bu(),o=lu(),s=du(),c=Cu(),l=iu();function u(e,t){this.files=[],this.loadOptions=t,e&&this.load(e)}u.prototype={checkSignature:function(e){var t=this.reader.readString(4);if(t!==e)throw Error(`Corrupted zip or bug : unexpected signature (`+o.pretty(t)+`, expected `+o.pretty(e)+`)`)},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=l.uint8array?`uint8array`:`array`,n=o.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.versionMadeBy=this.reader.readString(2),this.versionNeeded=this.reader.readInt(2),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e=this.zip64EndOfCentralSize-44,t=0,n,r,i;t<e;)n=this.reader.readInt(2),r=this.reader.readInt(4),i=this.reader.readString(r),this.zip64ExtensibleData[n]={id:n,length:r,value:i}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw Error(`Multi-volumes zip are not supported`)},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readString(4)===s.CENTRAL_FILE_HEADER;)e=new c({zip64:this.zip64},this.loadOptions),e.readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw Error(`Corrupted zip or bug: expected `+this.centralDirRecords+` records in central dir, got `+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,s.LOCAL_FILE_HEADER)?Error(`Corrupted zip : can't find end of central directory`):Error(`Can't find end of central directory : is this a zip file ?`);this.reader.setIndex(e);var t=e;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,e=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),e<0)throw Error(`Corrupted zip : can't find the ZIP64 end of central directory locator`);if(this.reader.setIndex(e),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw Error(`Corrupted zip : can't find the ZIP64 end of central directory`);this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(r>0)this.isSignature(t,s.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw Error(`Corrupted zip: missing `+Math.abs(r)+` bytes.`)},prepareReader:function(e){var t=o.getTypeOf(e);if(o.checkSupport(t),t===`string`&&!l.uint8array)this.reader=new n(e,this.loadOptions.optimizedBinaryString);else if(t===`nodebuffer`)this.reader=new r(e);else if(l.uint8array)this.reader=new i(o.transformTo(`uint8array`,e));else if(l.array)this.reader=new a(o.transformTo(`array`,e));else throw Error(`Unexpected error: unsupported type '`+t+`'`)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=u})),Tu=a(((e,t)=>{var n=ru(),r=mu(),i=lu(),a=wu();t.exports=function(e,t){var o,s;t=i.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:r.utf8decode}),t.base64&&(e=n.decode(e));var c=new a(e,t),l=c.files;for(o=0;o<l.length;o++)s=l[o],this.file(s.fileNameStr,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders});return c.zipComment.length&&(this.comment=c.zipComment),this}})),Eu=a((e=>{var t=lu();e.string2binary=function(e){return t.string2binary(e)},e.string2Uint8Array=function(e){return t.transformTo(`uint8array`,e)},e.uint8Array2String=function(e){return t.transformTo(`string`,e)},e.string2Blob=function(e){var n=t.transformTo(`arraybuffer`,e);return t.arrayBuffer2Blob(n)},e.arrayBuffer2Blob=function(e){return t.arrayBuffer2Blob(e)},e.transformTo=function(e,n){return t.transformTo(e,n)},e.getTypeOf=function(e){return t.getTypeOf(e)},e.checkSupport=function(e){return t.checkSupport(e)},e.MAX_VALUE_16BITS=t.MAX_VALUE_16BITS,e.MAX_VALUE_32BITS=t.MAX_VALUE_32BITS,e.pretty=function(e){return t.pretty(e)},e.findCompression=function(e){return t.findCompression(e)},e.isRegExp=function(e){return t.isRegExp(e)}})),Du=a(((e,t)=>{var n=ru();function r(e,t){if(!(this instanceof r))return new r(e,t);this.files={},this.comment=null,this.root=``,e&&this.load(e,t),this.clone=function(){var e=this,t=new r;return Object.keys(this.files).forEach(function(n){t.file(n,e.files[n].asUint8Array())}),t},this.shallowClone=function(){var e=new r;for(var t in this)typeof this[t]!=`function`&&(e[t]=this[t]);return e}}r.prototype=_u(),r.prototype.load=Tu(),r.support=iu(),r.defaults=fu(),r.utils=Eu(),r.base64={encode:function(e){return n.encode(e)},decode:function(e){return n.decode(e)}},r.compressions=su(),t.exports=r,t.exports.default=r})),Ou=a((e=>{function t(e,t,n){if(n===void 0&&(n=Array.prototype),e&&typeof n.find==`function`)return n.find.call(e,t);for(var i=0;i<e.length;i++)if(r(e,i)){var a=e[i];if(t.call(void 0,a,i,e))return a}}function n(e,t){return t===void 0&&(t=Object),t&&typeof t.getOwnPropertyDescriptors==`function`&&(e=t.create(null,t.getOwnPropertyDescriptors(e))),t&&typeof t.freeze==`function`?t.freeze(e):e}function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function i(e,t){if(typeof e!=`object`||!e)throw TypeError(`target is not an object`);for(var n in t)r(t,n)&&(e[n]=t[n]);return e}var a=n({allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,default:!0,defer:!0,disabled:!0,formnovalidate:!0,hidden:!0,ismap:!0,itemscope:!0,loop:!0,multiple:!0,muted:!0,nomodule:!0,novalidate:!0,open:!0,playsinline:!0,readonly:!0,required:!0,reversed:!0,selected:!0});function o(e){return r(a,e.toLowerCase())}var s=n({area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function c(e){return r(s,e.toLowerCase())}var l=n({script:!1,style:!1,textarea:!0,title:!0});function u(e){var t=e.toLowerCase();return r(l,t)&&!l[t]}function d(e){var t=e.toLowerCase();return r(l,t)&&l[t]}function f(e){return e===m.HTML}function p(e){return f(e)||e===m.XML_XHTML_APPLICATION}var m=n({HTML:`text/html`,XML_APPLICATION:`application/xml`,XML_TEXT:`text/xml`,XML_XHTML_APPLICATION:`application/xhtml+xml`,XML_SVG_IMAGE:`image/svg+xml`}),h=Object.keys(m).map(function(e){return m[e]});function g(e){return h.indexOf(e)>-1}var _=n({HTML:`http://www.w3.org/1999/xhtml`,SVG:`http://www.w3.org/2000/svg`,XML:`http://www.w3.org/XML/1998/namespace`,XMLNS:`http://www.w3.org/2000/xmlns/`});e.assign=i,e.find=t,e.freeze=n,e.HTML_BOOLEAN_ATTRIBUTES=a,e.HTML_RAW_TEXT_ELEMENTS=l,e.HTML_VOID_ELEMENTS=s,e.hasDefaultHTMLNamespace=p,e.hasOwn=r,e.isHTMLBooleanAttribute=o,e.isHTMLRawTextElement=u,e.isHTMLEscapableRawTextElement=d,e.isHTMLMimeType=f,e.isHTMLVoidElement=c,e.isValidMimeType=g,e.MIME_TYPE=m,e.NAMESPACE=_})),ku=a((e=>{var t=Ou();function n(e,t){e.prototype=Object.create(Error.prototype,{constructor:{value:e},name:{value:e.name,enumerable:!0,writable:t}})}var r=t.freeze({Error:`Error`,IndexSizeError:`IndexSizeError`,DomstringSizeError:`DomstringSizeError`,HierarchyRequestError:`HierarchyRequestError`,WrongDocumentError:`WrongDocumentError`,InvalidCharacterError:`InvalidCharacterError`,NoDataAllowedError:`NoDataAllowedError`,NoModificationAllowedError:`NoModificationAllowedError`,NotFoundError:`NotFoundError`,NotSupportedError:`NotSupportedError`,InUseAttributeError:`InUseAttributeError`,InvalidStateError:`InvalidStateError`,SyntaxError:`SyntaxError`,InvalidModificationError:`InvalidModificationError`,NamespaceError:`NamespaceError`,InvalidAccessError:`InvalidAccessError`,ValidationError:`ValidationError`,TypeMismatchError:`TypeMismatchError`,SecurityError:`SecurityError`,NetworkError:`NetworkError`,AbortError:`AbortError`,URLMismatchError:`URLMismatchError`,QuotaExceededError:`QuotaExceededError`,TimeoutError:`TimeoutError`,InvalidNodeTypeError:`InvalidNodeTypeError`,DataCloneError:`DataCloneError`,EncodingError:`EncodingError`,NotReadableError:`NotReadableError`,UnknownError:`UnknownError`,ConstraintError:`ConstraintError`,DataError:`DataError`,TransactionInactiveError:`TransactionInactiveError`,ReadOnlyError:`ReadOnlyError`,VersionError:`VersionError`,OperationError:`OperationError`,NotAllowedError:`NotAllowedError`,OptOutError:`OptOutError`}),i=Object.keys(r);function a(e){return typeof e==`number`&&e>=1&&e<=25}function o(e){return typeof e==`string`&&e.substring(e.length-r.Error.length)===r.Error}function s(e,t){a(e)?(this.name=i[e],this.message=t||``):(this.message=e,this.name=o(t)?t:r.Error),Error.captureStackTrace&&Error.captureStackTrace(this,s)}n(s,!0),Object.defineProperties(s.prototype,{code:{enumerable:!0,get:function(){var e=i.indexOf(this.name);return a(e)?e:0}}});for(var c={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25},l=Object.entries(c),u=0;u<l.length;u++){var d=l[u][0];s[d]=l[u][1]}function f(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,f)}n(f),e.DOMException=s,e.DOMExceptionName=r,e.ExceptionCode=c,e.ParseError=f})),Au=a((e=>{function t(e){try{typeof e!=`function`&&(e=RegExp);var t=new e(`𝌆`,`u`).exec(`𝌆`);return!!t&&t[0].length===2}catch{}return!1}var n=t();function r(e){if(e.source[0]!==`[`)throw Error(e+` can not be used with chars`);return e.source.slice(1,e.source.lastIndexOf(`]`))}function i(e,t){if(e.source[0]!==`[`)throw Error(`/`+e.source+`/ can not be used with chars_without`);if(!t||typeof t!=`string`)throw Error(JSON.stringify(t)+` is not a valid search`);if(e.source.indexOf(t)===-1)throw Error(`"`+t+`" is not is /`+e.source+`/`);if(t===`-`&&e.source.indexOf(t)!==1)throw Error(`"`+t+`" is not at the first postion of /`+e.source+`/`);return new RegExp(e.source.replace(t,``),n?`u`:``)}function a(e){var t=this;return new RegExp(Array.prototype.slice.call(arguments).map(function(e){var n=typeof e==`string`;if(n&&t===void 0&&e===`|`)throw Error("use regg instead of reg to wrap expressions with `|`!");return n?e:e.source}).join(``),n?`mu`:`m`)}function o(e){if(arguments.length===0)throw Error(`no parameters provided`);return a.apply(o,[`(?:`].concat(Array.prototype.slice.call(arguments),[`)`]))}var s=`<60>`,c=/[-\x09\x0A\x0D\x20-\x2C\x2E-\uD7FF\uE000-\uFFFD]/;n&&(c=a(`[`,r(c),`\\u{10000}-\\u{10FFFF}`,`]`));var l=RegExp(`[^`+r(c)+`]`,n?`u`:``),u=/[\x20\x09\x0D\x0A]/,d=r(u),f=a(u,`+`),p=a(u,`*`),m=/[:_a-zA-Z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;n&&(m=a(`[`,r(m),`\\u{10000}-\\u{10FFFF}`,`]`));var h=a(`[`,r(m),r(/[-.0-9\xB7]/),r(/[\u0300-\u036F\u203F-\u2040]/),`]`),g=a(m,h,`*`),_=a(h,`+`),v=o(a(`&`,g,`;`),`|`,o(/&#[0-9]+;|&#x[0-9a-fA-F]+;/)),y=a(`%`,g,`;`),b=o(a(`"`,o(/[^%&"]/,`|`,y,`|`,v),`*`,`"`),`|`,a(`'`,o(/[^%&']/,`|`,y,`|`,v),`*`,`'`)),x=o(`"`,o(/[^<&"]/,`|`,v),`*`,`"`,`|`,`'`,o(/[^<&']/,`|`,v),`*`,`'`),S=a(i(m,`:`),i(h,`:`),`*`),C=a(S,o(`:`,S),`?`),w=a(`^`,C,`$`),T=a(`(`,C,`)`),E=o(/"[^"]*"|'[^']*'/),D=a(/^<\?/,`(`,g,`)`,o(f,`(`,c,`*?)`),`?`,/\?>/),O=/[\x20\x0D\x0Aa-zA-Z0-9-'()+,./:=?;!*#@$_%]/,k=o(`"`,O,`*"`,`|`,`'`,i(O,`'`),`*'`),A=`<!--`,j=`-->`,M=a(A,o(i(c,`-`),`|`,a(`-`,i(c,`-`))),`*`,j),N=`#PCDATA`,P=o(`EMPTY`,`|`,`ANY`,`|`,o(a(/\(/,p,N,o(p,/\|/,p,C),`*`,p,/\)\*/),`|`,a(/\(/,p,N,p,/\)/)),`|`,a(/\([^>]+\)/,/[?*+]?/)),F=a(`<!ELEMENT`,f,o(C,`|`,y),f,o(P,`|`,y),p,`>`),I=a(`<!ATTLIST`,f,g,o(f,g,f,o(/CDATA|ID|IDREF|IDREFS|ENTITY|ENTITIES|NMTOKEN|NMTOKENS/,`|`,o(a(`NOTATION`,f,/\(/,p,g,o(p,/\|/,p,g),`*`,p,/\)/),`|`,a(/\(/,p,_,o(p,/\|/,p,_),`*`,p,/\)/))),f,o(/#REQUIRED|#IMPLIED/,`|`,o(o(`#FIXED`,f),`?`,x))),`*`,p,`>`),ee=`about:legacy-compat`,L=o(`"`+ee+`"`,`|`,`'`+ee+`'`),R=`SYSTEM`,z=`PUBLIC`,B=o(o(R,f,E),`|`,o(z,f,k,f,E)),V=a(`^`,o(o(R,f,`(?<SystemLiteralOnly>`,E,`)`),`|`,o(z,f,`(?<PubidLiteral>`,k,`)`,f,`(?<SystemLiteral>`,E,`)`))),H=a(`^`,k,`$`),U=a(`^`,E,`$`),W=o(b,`|`,o(B,o(f,`NDATA`,f,g),`?`)),te=`<!ENTITY`,ne=o(a(te,f,g,f,W,p,`>`),`|`,a(te,f,`%`,f,g,f,o(b,`|`,B),p,`>`)),G=a(`<!NOTATION`,f,g,f,o(B,`|`,a(z,f,k)),p,`>`),re=a(p,`=`,p),ie=/1[.]\d+/,K=a(f,`version`,re,o(`'`,ie,`'`,`|`,`"`,ie,`"`)),q=/[A-Za-z][-A-Za-z0-9._]*/,J=a(/^<\?xml/,K,o(f,`encoding`,re,o(`"`,q,`"`,`|`,`'`,q,`'`)),`?`,o(f,`standalone`,re,o(`'`,o(`yes`,`|`,`no`),`'`,`|`,`"`,o(`yes`,`|`,`no`),`"`)),`?`,p,/\?>/),Y=`<!DOCTYPE`,ae=`<![CDATA[`,oe=`]]>`,X=a(/<!\[CDATA\[/,a(c,`*?`,/\]\]>/));e.chars=r,e.chars_without=i,e.detectUnicodeSupport=t,e.reg=a,e.regg=o,e.ABOUT_LEGACY_COMPAT=ee,e.ABOUT_LEGACY_COMPAT_SystemLiteral=L,e.AttlistDecl=I,e.CDATA_START=ae,e.CDATA_END=oe,e.CDSect=X,e.Char=c,e.Comment=M,e.COMMENT_START=A,e.COMMENT_END=j,e.DOCTYPE_DECL_START=Y,e.elementdecl=F,e.EntityDecl=ne,e.EntityValue=b,e.ExternalID=B,e.ExternalID_match=V,e.Name=g,e.NotationDecl=G,e.Reference=v,e.PEReference=y,e.PI=D,e.PUBLIC=z,e.PubidLiteral=k,e.PubidLiteral_match=H,e.QName=C,e.QName_exact=w,e.QName_group=T,e.S=f,e.SChar_s=d,e.S_OPT=p,e.SYSTEM=R,e.SystemLiteral=E,e.SystemLiteral_match=U,e.InvalidChar=l,e.UNICODE_REPLACEMENT_CHARACTER=s,e.UNICODE_SUPPORT=n,e.XMLDecl=J})),ju=a((e=>{var t=Ou(),n=t.find,r=t.hasDefaultHTMLNamespace,i=t.hasOwn,a=t.isHTMLMimeType,o=t.isHTMLRawTextElement,s=t.isHTMLVoidElement,c=t.MIME_TYPE,l=t.NAMESPACE,u=Symbol(),d=ku(),f=d.DOMException,p=d.DOMExceptionName,m=Au();function h(e){if(e!==u)throw TypeError(`Illegal constructor`)}function g(e){return e!==``}function _(e){return e?e.split(/[\t\n\f\r ]+/).filter(g):[]}function v(e,t){return i(e,t)||(e[t]=!0),e}function y(e){if(!e)return[];var t=_(e);return Object.keys(t.reduce(v,{}))}function b(e){return function(t){return e&&e.indexOf(t)!==-1}}function x(e){if(!m.QName_exact.test(e))throw new f(f.INVALID_CHARACTER_ERR,`invalid character in qualified name "`+e+`"`)}function S(e,n){x(n),e||=null;var r=null,i=n;if(n.indexOf(`:`)>=0){var a=n.split(`:`);r=a[0],i=a[1]}if(r!==null&&e===null)throw new f(f.NAMESPACE_ERR,`prefix is non-null and namespace is null`);if(r===`xml`&&e!==t.NAMESPACE.XML)throw new f(f.NAMESPACE_ERR,`prefix is "xml" and namespace is not the XML namespace`);if((r===`xmlns`||n===`xmlns`)&&e!==t.NAMESPACE.XMLNS)throw new f(f.NAMESPACE_ERR,`either qualifiedName or prefix is "xmlns" and namespace is not the XMLNS namespace`);if(e===t.NAMESPACE.XMLNS&&r!==`xmlns`&&n!==`xmlns`)throw new f(f.NAMESPACE_ERR,`namespace is the XMLNS namespace and neither qualifiedName nor prefix is "xmlns"`);return[e,r,i]}function C(e,t){for(var n in e)i(e,n)&&(t[n]=e[n])}function w(e,t){var n=e.prototype;if(!(n instanceof t)){function r(){}r.prototype=t.prototype,r=new r,C(n,r),e.prototype=n=r}n.constructor!=e&&(typeof e!=`function`&&console.error(`unknown Class:`+e),n.constructor=e)}var T={},E=T.ELEMENT_NODE=1,D=T.ATTRIBUTE_NODE=2,O=T.TEXT_NODE=3,k=T.CDATA_SECTION_NODE=4,A=T.ENTITY_REFERENCE_NODE=5,j=T.ENTITY_NODE=6,M=T.PROCESSING_INSTRUCTION_NODE=7,N=T.COMMENT_NODE=8,P=T.DOCUMENT_NODE=9,F=T.DOCUMENT_TYPE_NODE=10,I=T.DOCUMENT_FRAGMENT_NODE=11,ee=T.NOTATION_NODE=12,L=t.freeze({DOCUMENT_POSITION_DISCONNECTED:1,DOCUMENT_POSITION_PRECEDING:2,DOCUMENT_POSITION_FOLLOWING:4,DOCUMENT_POSITION_CONTAINS:8,DOCUMENT_POSITION_CONTAINED_BY:16,DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:32});function R(e,t){if(t.length<e.length)return R(t,e);var n=null;for(var r in e){if(e[r]!==t[r])return n;n=e[r]}return n}function z(e){return e.guid||=Math.random(),e.guid}function B(){}B.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e){for(var t=typeof e==`function`?{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:e}:e?{requireWellFormed:!!e.requireWellFormed,splitCDATASections:e.splitCDATASections!==!1,nodeFilter:e.nodeFilter||null}:{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:null},n=[],r=0;r<this.length;r++)je(this[r],n,null,t);return n.join(``)},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},B.prototype[Symbol.iterator]=function(){var e=this,t=0;return{next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0}},return:function(){return{done:!0}}}};function V(e,t){this._node=e,this._refresh=t,H(this)}function H(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var n=e._refresh(e._node);if(Pe(e,`length`,n.length),!e.$$length||n.length<e.$$length)for(var r=n.length;r in e;r++)i(e,r)&&delete e[r];C(n,e),e._inc=t}}V.prototype.item=function(e){return H(this),this[e]||null},w(V,B);function U(){}function W(e,t){for(var n=0;n<e.length;){if(e[n]===t)return n;n++}}function te(e,t,n,r){if(r?t[W(t,r)]=n:(t[t.length]=n,t.length++),e){n.ownerElement=e;var i=e.ownerDocument;i&&(r&&ae(i,e,r),Y(i,e,n))}}function ne(e,t,n){var r=W(t,n);if(r>=0){for(var i=t.length-1;r<=i;)t[r]=t[++r];if(t.length=i,e){var a=e.ownerDocument;a&&ae(a,e,n),n.ownerElement=null}}}U.prototype={length:0,item:B.prototype.item,getNamedItem:function(e){this._ownerElement&&this._ownerElement._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase());for(var t=0;t<this.length;){var n=this[t];if(n.nodeName===e)return n;t++}return null},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!==this._ownerElement)throw new f(f.INUSE_ATTRIBUTE_ERR);var n=this.getNamedItemNS(e.namespaceURI,e.localName);return n===e?e:(te(this._ownerElement,this,e,n),n)},setNamedItemNS:function(e){return this.setNamedItem(e)},removeNamedItem:function(e){var t=this.getNamedItem(e);if(!t)throw new f(f.NOT_FOUND_ERR,e);return ne(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);if(!n)throw new f(f.NOT_FOUND_ERR,e?e+` : `+t:t);return ne(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){e||=null;for(var n=0;n<this.length;){var r=this[n];if(r.localName===t&&r.namespaceURI===e)return r;n++}return null}},U.prototype[Symbol.iterator]=function(){var e=this,t=0;return{next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0}},return:function(){return{done:!0}}}};function G(){}G.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var r=c.XML_APPLICATION;e===l.HTML?r=c.XML_XHTML_APPLICATION:e===l.SVG&&(r=c.XML_SVG_IMAGE);var i=new J(u,{contentType:r});if(i.implementation=this,i.childNodes=new B,i.doctype=n||null,n&&i.appendChild(n),t){var a=i.createElementNS(e,t);i.appendChild(a)}return i},createDocumentType:function(e,t,n,r){x(e);var i=new xe(u);return i.name=e,i.nodeName=e,i.publicId=t||``,i.systemId=n||``,i.internalSubset=r||``,i.childNodes=new B,i},createHTMLDocument:function(e){var t=new J(u,{contentType:c.HTML});if(t.implementation=this,t.childNodes=new B,e!==!1){t.doctype=this.createDocumentType(`html`),t.doctype.ownerDocument=t,t.appendChild(t.doctype);var n=t.createElement(`html`);t.appendChild(n);var r=t.createElement(`head`);if(n.appendChild(r),typeof e==`string`){var i=t.createElement(`title`);i.appendChild(t.createTextNode(e)),r.appendChild(i)}n.appendChild(t.createElement(`body`))}return t}};function re(e){h(e)}re.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,parentNode:null,get parentElement(){return this.parentNode&&this.parentNode.nodeType===this.ELEMENT_NODE?this.parentNode:null},childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,baseURI:`about:blank`,get isConnected(){var e=this.getRootNode();return e&&e.nodeType===e.DOCUMENT_NODE},contains:function(e){if(!e)return!1;var t=e;do{if(this===t)return!0;t=t.parentNode}while(t);return!1},getRootNode:function(e){var t=this;do{if(!t.parentNode)return t;t=t.parentNode}while(t)},isEqualNode:function(e){if(!e)return!1;for(var t=[{node:this,other:e}];t.length>0;){var n=t.pop(),r=n.node,i=n.other;if(r.nodeType!==i.nodeType)return!1;switch(r.nodeType){case r.DOCUMENT_TYPE_NODE:if(r.name!==i.name||r.publicId!==i.publicId||r.systemId!==i.systemId)return!1;break;case r.ELEMENT_NODE:if(r.namespaceURI!==i.namespaceURI||r.prefix!==i.prefix||r.localName!==i.localName||r.attributes.length!==i.attributes.length)return!1;for(var a=0;a<r.attributes.length;a++){var o=r.attributes.item(a),s=i.getAttributeNodeNS(o.namespaceURI,o.localName);if(!s)return!1;t.push({node:o,other:s})}break;case r.ATTRIBUTE_NODE:if(r.namespaceURI!==i.namespaceURI||r.localName!==i.localName||r.value!==i.value)return!1;break;case r.PROCESSING_INSTRUCTION_NODE:if(r.target!==i.target||r.data!==i.data)return!1;break;case r.TEXT_NODE:case r.CDATA_SECTION_NODE:case r.COMMENT_NODE:if(r.data!==i.data)return!1;break}if(r.childNodes.length!==i.childNodes.length)return!1;for(var a=r.childNodes.length-1;a>=0;a--)t.push({node:r.childNodes[a],other:i.childNodes[a]})}return!0},isSameNode:function(e){return this===e},insertBefore:function(e,t){return $(this,e,t)},replaceChild:function(e,t){$(this,e,t,me),t&&this.removeChild(t)},removeChild:function(e){return X(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(e){return Ne(this.ownerDocument||this,this,e)},normalize:function(){q(this,null,{enter:function(e){for(var t=e.firstChild;t;){var n=t.nextSibling;n!==null&&n.nodeType===O&&t.nodeType===O?(e.removeChild(n),t.appendData(n.data)):t=n}return!0}})},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n){for(var r in n)if(i(n,r)&&n[r]===e)return r}t=t.nodeType==D?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&i(n,e))return n[e];t=t.nodeType==D?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return this.lookupPrefix(e)==null},compareDocumentPosition:function(e){if(this===e)return 0;var t=e,n=this,r=null,i=null;if(t instanceof ge&&(r=t,t=r.ownerElement),n instanceof ge&&(i=n,n=i.ownerElement,r&&t&&n===t))for(var a=0,o;o=n.attributes[a];a++){if(o===r)return L.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+L.DOCUMENT_POSITION_PRECEDING;if(o===i)return L.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+L.DOCUMENT_POSITION_FOLLOWING}if(!t||!n||n.ownerDocument!==t.ownerDocument)return L.DOCUMENT_POSITION_DISCONNECTED+L.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+(z(n.ownerDocument)>z(t.ownerDocument)?L.DOCUMENT_POSITION_FOLLOWING:L.DOCUMENT_POSITION_PRECEDING);if(i&&t===n)return L.DOCUMENT_POSITION_CONTAINS+L.DOCUMENT_POSITION_PRECEDING;if(r&&t===n)return L.DOCUMENT_POSITION_CONTAINED_BY+L.DOCUMENT_POSITION_FOLLOWING;for(var s=[],c=t.parentNode;c;){if(!i&&c===n)return L.DOCUMENT_POSITION_CONTAINED_BY+L.DOCUMENT_POSITION_FOLLOWING;s.push(c),c=c.parentNode}s.reverse();for(var l=[],u=n.parentNode;u;){if(!r&&u===t)return L.DOCUMENT_POSITION_CONTAINS+L.DOCUMENT_POSITION_PRECEDING;l.push(u),u=u.parentNode}l.reverse();var d=R(s,l);for(var f in d.childNodes){var p=d.childNodes[f];if(p===n)return L.DOCUMENT_POSITION_FOLLOWING;if(p===t)return L.DOCUMENT_POSITION_PRECEDING;if(l.indexOf(p)>=0)return L.DOCUMENT_POSITION_FOLLOWING;if(s.indexOf(p)>=0)return L.DOCUMENT_POSITION_PRECEDING}return 0}};function ie(e){return e==`<`&&`&lt;`||e==`>`&&`&gt;`||e==`&`&&`&amp;`||e==`"`&&`&quot;`||`&#`+e.charCodeAt()+`;`}C(T,re),C(T,re.prototype),C(L,re),C(L,re.prototype);function K(e,t){q(e,null,{enter:function(e){return t(e)?q.STOP:!0}})}function q(e,t,n){for(var r=[{node:e,context:t,phase:q.ENTER}];r.length>0;){var i=r.pop();if(i.phase===q.ENTER){var a=n.enter(i.node,i.context);if(a===q.STOP)return q.STOP;if(r.push({node:i.node,context:a,phase:q.EXIT}),a==null)continue;for(var o=i.node.lastChild;o;)r.push({node:o,context:a,phase:q.ENTER}),o=o.previousSibling}else n.exit&&n.exit(i.node,i.context)}}q.STOP=Symbol(`walkDOM.STOP`),q.ENTER=0,q.EXIT=1;function J(e,t){h(e);var n=t||{};this.ownerDocument=this,this.contentType=n.contentType||c.XML_APPLICATION,this.type=a(this.contentType)?`html`:`xml`}function Y(e,t,n){e&&e._inc++,n.namespaceURI===l.XMLNS&&(t._nsMap[n.prefix?n.localName:``]=n.value)}function ae(e,t,n,r){e&&e._inc++,n.namespaceURI===l.XMLNS&&delete t._nsMap[n.prefix?n.localName:``]}function oe(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n&&!n.nextSibling)r[r.length++]=n;else{for(var i=t.firstChild,a=0;i;)r[a++]=i,i=i.nextSibling;r.length=a,delete r[r.length]}}}function X(e,t){if(e!==t.parentNode)throw new f(f.NOT_FOUND_ERR,`child's parent is not parent`);var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,oe(e.ownerDocument,e),t.parentNode=null,t.previousSibling=null,t.nextSibling=null,t}function se(e){return e&&(e.nodeType===re.DOCUMENT_NODE||e.nodeType===re.DOCUMENT_FRAGMENT_NODE||e.nodeType===re.ELEMENT_NODE)}function ce(e){return e&&(e.nodeType===re.CDATA_SECTION_NODE||e.nodeType===re.COMMENT_NODE||e.nodeType===re.DOCUMENT_FRAGMENT_NODE||e.nodeType===re.DOCUMENT_TYPE_NODE||e.nodeType===re.ELEMENT_NODE||e.nodeType===re.PROCESSING_INSTRUCTION_NODE||e.nodeType===re.TEXT_NODE)}function Z(e){return e&&e.nodeType===re.DOCUMENT_TYPE_NODE}function le(e){return e&&e.nodeType===re.ELEMENT_NODE}function ue(e){return e&&e.nodeType===re.TEXT_NODE}function de(e,t){var r=e.childNodes||[];if(n(r,le)||Z(t))return!1;var i=n(r,Z);return!(t&&i&&r.indexOf(i)>r.indexOf(t))}function fe(e,t){var r=e.childNodes||[];function i(e){return le(e)&&e!==t}if(n(r,i))return!1;var a=n(r,Z);return!(t&&a&&r.indexOf(a)>r.indexOf(t))}function pe(e,t,n){if(!se(e))throw new f(f.HIERARCHY_REQUEST_ERR,`Unexpected parent node type `+e.nodeType);if(n&&n.parentNode!==e)throw new f(f.NOT_FOUND_ERR,`child not in parent`);if(!ce(t)||Z(t)&&e.nodeType!==re.DOCUMENT_NODE)throw new f(f.HIERARCHY_REQUEST_ERR,`Unexpected node type `+t.nodeType+` for parent node type `+e.nodeType)}function Q(e,t,r){var i=e.childNodes||[],a=t.childNodes||[];if(t.nodeType===re.DOCUMENT_FRAGMENT_NODE){var o=a.filter(le);if(o.length>1||n(a,ue))throw new f(f.HIERARCHY_REQUEST_ERR,`More than one element or text in fragment`);if(o.length===1&&!de(e,r))throw new f(f.HIERARCHY_REQUEST_ERR,`Element in fragment can not be inserted before doctype`)}if(le(t)&&!de(e,r))throw new f(f.HIERARCHY_REQUEST_ERR,`Only one element can be added and only after doctype`);if(Z(t)){if(n(i,Z))throw new f(f.HIERARCHY_REQUEST_ERR,`Only one doctype is allowed`);var s=n(i,le);if(r&&i.indexOf(s)<i.indexOf(r))throw new f(f.HIERARCHY_REQUEST_ERR,`Doctype can only be inserted before an element`);if(!r&&s)throw new f(f.HIERARCHY_REQUEST_ERR,`Doctype can not be appended since element is present`)}}function me(e,t,r){var i=e.childNodes||[],a=t.childNodes||[];if(t.nodeType===re.DOCUMENT_FRAGMENT_NODE){var o=a.filter(le);if(o.length>1||n(a,ue))throw new f(f.HIERARCHY_REQUEST_ERR,`More than one element or text in fragment`);if(o.length===1&&!fe(e,r))throw new f(f.HIERARCHY_REQUEST_ERR,`Element in fragment can not be inserted before doctype`)}if(le(t)&&!fe(e,r))throw new f(f.HIERARCHY_REQUEST_ERR,`Only one element can be added and only after doctype`);if(Z(t)){function e(e){return Z(e)&&e!==r}if(n(i,e))throw new f(f.HIERARCHY_REQUEST_ERR,`Only one doctype is allowed`);var s=n(i,le);if(r&&i.indexOf(s)<i.indexOf(r))throw new f(f.HIERARCHY_REQUEST_ERR,`Doctype can only be inserted before an element`)}}function $(e,t,n,r){pe(e,t,n),e.nodeType===re.DOCUMENT_NODE&&(r||Q)(e,t,n);var i=t.parentNode;if(i&&i.removeChild(t),t.nodeType===I){var a=t.firstChild;if(a==null)return t;var o=t.lastChild}else a=o=t;var s=n?n.previousSibling:e.lastChild;a.previousSibling=s,o.nextSibling=n,s?s.nextSibling=a:e.firstChild=a,n==null?e.lastChild=o:n.previousSibling=o;do a.parentNode=e;while(a!==o&&(a=a.nextSibling));return oe(e.ownerDocument||e,e,t),t.nodeType==I&&(t.firstChild=t.lastChild=null),t}J.prototype={implementation:null,nodeName:`#document`,nodeType:P,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType===I){for(var n=e.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return $(this,e,t),e.ownerDocument=this,this.documentElement===null&&e.nodeType===E&&(this.documentElement=e),e},removeChild:function(e){var t=X(this,e);return t===this.documentElement&&(this.documentElement=null),t},replaceChild:function(e,t){$(this,e,t,me),e.ownerDocument=this,t&&this.removeChild(t),le(e)&&(this.documentElement=e)},importNode:function(e,t){return Me(this,e,t)},getElementById:function(e){var t=null;return K(this.documentElement,function(n){if(n.nodeType==E&&n.getAttribute(`id`)==e)return t=n,!0}),t},createElement:function(e){var t=new he(u);t.ownerDocument=this,this.type===`html`&&(e=e.toLowerCase()),r(this.contentType)&&(t.namespaceURI=l.HTML),t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new B;var n=t.attributes=new U;return n._ownerElement=t,t},createDocumentFragment:function(){var e=new Te(u);return e.ownerDocument=this,e.childNodes=new B,e},createTextNode:function(e){var t=new ve(u);return t.ownerDocument=this,t.childNodes=new B,t.appendData(e),t},createComment:function(e){var t=new ye(u);return t.ownerDocument=this,t.childNodes=new B,t.appendData(e),t},createCDATASection:function(e){if(e.indexOf(`]]>`)!==-1)throw new f(f.INVALID_CHARACTER_ERR,`data contains "]]>"`);var t=new be(u);return t.ownerDocument=this,t.childNodes=new B,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new Ee(u);return n.ownerDocument=this,n.childNodes=new B,n.nodeName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){if(!m.QName_exact.test(e))throw new f(f.INVALID_CHARACTER_ERR,`invalid character in name "`+e+`"`);return this.type===`html`&&(e=e.toLowerCase()),this._createAttribute(e)},_createAttribute:function(e){var t=new ge(u);return t.ownerDocument=this,t.childNodes=new B,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){if(!m.Name.test(e))throw new f(f.INVALID_CHARACTER_ERR,`not a valid xml name "`+e+`"`);if(this.type===`html`)throw new f(`document is an html document`,p.NotSupportedError);var t=new we(u);return t.ownerDocument=this,t.childNodes=new B,t.nodeName=e,t},createElementNS:function(e,t){var n=S(e,t),r=new he(u),i=r.attributes=new U;return r.childNodes=new B,r.ownerDocument=this,r.nodeName=t,r.tagName=t,r.namespaceURI=n[0],r.prefix=n[1],r.localName=n[2],i._ownerElement=r,r},createAttributeNS:function(e,t){var n=S(e,t),r=new ge(u);return r.ownerDocument=this,r.childNodes=new B,r.nodeName=t,r.name=t,r.specified=!0,r.namespaceURI=n[0],r.prefix=n[1],r.localName=n[2],r}},w(J,re);function he(e){h(e),this._nsMap=Object.create(null)}he.prototype={nodeType:E,attributes:null,getQualifiedName:function(){return this.prefix?this.prefix+`:`+this.localName:this.localName},_isInHTMLDocumentAndNamespace:function(){return this.ownerDocument.type===`html`&&this.namespaceURI===l.HTML},hasAttributes:function(){return!!(this.attributes&&this.attributes.length)},hasAttribute:function(e){return!!this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t?t.value:null},getAttributeNode:function(e){return this._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase()),this.attributes.getNamedItem(e)},setAttribute:function(e,t){this._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase());var n=this.getAttributeNode(e);n?n.value=n.nodeValue=``+t:(n=this.ownerDocument._createAttribute(e),n.value=n.nodeValue=``+t,this.setAttributeNode(n))},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return this.getAttributeNodeNS(e,t)!=null},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n?n.value:null},setAttributeNS:function(e,t,n){var r=S(e,t)[2],i=this.getAttributeNodeNS(e,r);i?i.value=i.nodeValue=``+n:(i=this.ownerDocument.createAttributeNS(e,t),i.value=i.nodeValue=``+n,this.setAttributeNode(i))},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByClassName:function(e){var t=y(e);return new V(this,function(n){var r=[];return t.length>0&&K(n,function(i){if(i!==n&&i.nodeType===E){var a=i.getAttribute(`class`);if(a){var o=e===a;if(!o){var s=y(a);o=t.every(b(s))}o&&r.push(i)}}}),r})},getElementsByTagName:function(e){var t=(this.nodeType===P?this:this.ownerDocument).type===`html`,n=e.toLowerCase();return new V(this,function(r){var i=[];return K(r,function(a){a===r||a.nodeType!==E||(e===`*`||a.getQualifiedName()===(t&&a.namespaceURI===l.HTML?n:e))&&i.push(a)}),i})},getElementsByTagNameNS:function(e,t){return new V(this,function(n){var r=[];return K(n,function(i){i!==n&&i.nodeType===E&&(e===`*`||i.namespaceURI===e)&&(t===`*`||i.localName==t)&&r.push(i)}),r})}},J.prototype.getElementsByClassName=he.prototype.getElementsByClassName,J.prototype.getElementsByTagName=he.prototype.getElementsByTagName,J.prototype.getElementsByTagNameNS=he.prototype.getElementsByTagNameNS,w(he,re);function ge(e){h(e),this.namespaceURI=null,this.prefix=null,this.ownerElement=null}ge.prototype.nodeType=D,w(ge,re);function _e(e){h(e)}_e.prototype={data:``,substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},deleteData:function(e,t){this.replaceData(e,t,``)},replaceData:function(e,t,n){var r=this.data.substring(0,e),i=this.data.substring(e+t);n=r+n+i,this.nodeValue=this.data=n,this.length=n.length}},w(_e,re);function ve(e){h(e)}ve.prototype={nodeName:`#text`,nodeType:O,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},w(ve,_e);function ye(e){h(e)}ye.prototype={nodeName:`#comment`,nodeType:N},w(ye,_e);function be(e){h(e)}be.prototype={nodeName:`#cdata-section`,nodeType:k},w(be,ve);function xe(e){h(e)}xe.prototype.nodeType=F,w(xe,re);function Se(e){h(e)}Se.prototype.nodeType=ee,w(Se,re);function Ce(e){h(e)}Ce.prototype.nodeType=j,w(Ce,re);function we(e){h(e)}we.prototype.nodeType=A,w(we,re);function Te(e){h(e)}Te.prototype.nodeName=`#document-fragment`,Te.prototype.nodeType=I,w(Te,re);function Ee(e){h(e)}Ee.prototype.nodeType=M,w(Ee,_e);function De(){}De.prototype.serializeToString=function(e,t){return Oe.call(e,t)},re.prototype.toString=Oe;function Oe(e){var t=typeof e==`function`?{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:e}:e==null?{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:null}:{requireWellFormed:!!e.requireWellFormed,splitCDATASections:e.splitCDATASections!==!1,nodeFilter:e.nodeFilter||null},n=[],r=this.nodeType===P&&this.documentElement||this,i=r.prefix,a=r.namespaceURI;if(a&&i==null){var i=r.lookupPrefix(a);if(i==null)var o=[{namespace:a,prefix:null}]}return je(this,n,o,t),n.join(``)}function ke(e,t,n){var r=e.prefix||``,i=e.namespaceURI;if(!i||r===`xml`&&i===l.XML||i===l.XMLNS)return!1;for(var a=n.length;a--;){var o=n[a];if(o.prefix===r)return o.namespace!==i}return!0}function Ae(e,t,n){e.push(` `,t,`="`,n.replace(/[<>&"\t\n\r]/g,ie),`"`)}function je(e,t,n,r){n||=[];var i=r.nodeFilter,a=r.requireWellFormed,c=r.splitCDATASections,u=(e.nodeType===P?e:e.ownerDocument).type===`html`;q(e,{ns:n},{enter:function(e,n){var d=n.ns;if(i)if(e=i(e),e){if(typeof e==`string`)return t.push(e),null}else return null;switch(e.nodeType){case E:var h=e.attributes,g=h.length,_=e.tagName,v=_;if(!u&&!e.prefix&&e.namespaceURI){for(var y,b=0;b<h.length;b++)if(h.item(b).name===`xmlns`){y=h.item(b).value;break}if(!y)for(var x=d.length-1;x>=0;x--){var S=d[x];if(S.prefix===``&&S.namespace===e.namespaceURI){y=S.namespace;break}}if(y!==e.namespaceURI)for(var x=d.length-1;x>=0;x--){var S=d[x];if(S.namespace===e.namespaceURI){S.prefix&&(v=S.prefix+`:`+_);break}}}t.push(`<`,v);for(var C=d.slice(),w=0;w<g;w++){var T=h.item(w);T.prefix==`xmlns`?C.push({prefix:T.localName,namespace:T.value}):T.nodeName==`xmlns`&&C.push({prefix:``,namespace:T.value})}for(var w=0;w<g;w++){var T=h.item(w);if(ke(T,u,C)){var j=T.prefix||``,ee=T.namespaceURI;Ae(t,j?`xmlns:`+j:`xmlns`,ee),C.push({prefix:j,namespace:ee})}var L=i?i(T):T;L&&(typeof L==`string`?t.push(L):Ae(t,L.name,L.value))}if(_===v&&ke(e,u,C)){var R=e.prefix||``,ee=e.namespaceURI;Ae(t,R?`xmlns:`+R:`xmlns`,ee),C.push({prefix:R,namespace:ee})}var z=!e.firstChild;if(z&&(u||e.namespaceURI===l.HTML)&&(z=s(_)),z)return t.push(`/>`),null;if(t.push(`>`),u&&o(_)){for(var B=e.firstChild;B;)B.data?t.push(B.data):je(B,t,C.slice(),r),B=B.nextSibling;return t.push(`</`,v,`>`),null}return{ns:C,tag:v};case P:case I:if(a&&e.nodeType===P&&e.documentElement==null)throw new f(`The Document has no documentElement`,p.InvalidStateError);return{ns:d};case D:return Ae(t,e.name,e.value),null;case O:if(a&&m.InvalidChar.test(e.data))throw new f(`The Text node data contains characters outside the XML Char production`,p.InvalidStateError);return t.push(e.data.replace(/[<&>]/g,ie)),null;case k:if(a&&e.data.indexOf(`]]>`)!==-1)throw new f(`The CDATASection data contains "]]>"`,p.InvalidStateError);return c?t.push(m.CDATA_START,e.data.replace(/]]>/g,`]]]]><![CDATA[>`),m.CDATA_END):t.push(m.CDATA_START,e.data,m.CDATA_END),null;case N:if(a){if(m.InvalidChar.test(e.data))throw new f(`The comment node data contains characters outside the XML Char production`,p.InvalidStateError);if(e.data.indexOf(`--`)!==-1||e.data[e.data.length-1]===`-`)throw new f(`The comment node data contains "--" or ends with "-"`,p.InvalidStateError)}return t.push(m.COMMENT_START,e.data,m.COMMENT_END),null;case F:var V=e.publicId,H=e.systemId;if(a){if(V&&!m.PubidLiteral_match.test(V))throw new f(`DocumentType publicId is not a valid PubidLiteral`,p.InvalidStateError);if(H&&H!==`.`&&!m.SystemLiteral_match.test(H))throw new f(`DocumentType systemId is not a valid SystemLiteral`,p.InvalidStateError);if(e.internalSubset&&e.internalSubset.indexOf(`]>`)!==-1)throw new f(`DocumentType internalSubset contains "]>"`,p.InvalidStateError)}return t.push(m.DOCTYPE_DECL_START,` `,e.name),V?(t.push(` `,m.PUBLIC,` `,V),H&&H!==`.`&&t.push(` `,H)):H&&H!==`.`&&t.push(` `,m.SYSTEM,` `,H),e.internalSubset&&t.push(` [`,e.internalSubset,`]`),t.push(`>`),null;case M:if(a){if(e.target.indexOf(`:`)!==-1||e.target.toLowerCase()===`xml`)throw new f(`The ProcessingInstruction target is not well-formed`,p.InvalidStateError);if(m.InvalidChar.test(e.data))throw new f(`The ProcessingInstruction data contains characters outside the XML Char production`,p.InvalidStateError);if(e.data.indexOf(`?>`)!==-1)throw new f(`The ProcessingInstruction data contains "?>"`,p.InvalidStateError)}return t.push(`<?`,e.target,` `,e.data,`?>`),null;case A:return t.push(`&`,e.nodeName,`;`),null;default:return t.push(`??`,e.nodeName),null}},exit:function(e,n){n&&n.tag&&t.push(`</`,n.tag,`>`)}})}function Me(e,t,n){var r;return q(t,null,{enter:function(t,i){var a=t.cloneNode(!1);return a.ownerDocument=e,a.parentNode=null,i===null?r=a:i.appendChild(a),t.nodeType===D||n?a:null}}),r}function Ne(e,t,n){var r;return q(t,null,{enter:function(t,a){var o=new t.constructor(u);for(var s in t)if(i(t,s)){var c=t[s];typeof c!=`object`&&c!=o[s]&&(o[s]=c)}t.childNodes&&(o.childNodes=new B),o.ownerDocument=e;var l=n;switch(o.nodeType){case E:var d=t.attributes,f=o.attributes=new U,p=d.length;f._ownerElement=o;for(var m=0;m<p;m++)o.setAttributeNode(Ne(e,d.item(m),!0));break;case D:l=!0}return a===null?r=o:a.appendChild(o),l?o:null}}),r}function Pe(e,t,n){e[t]=n}function Fe(e){for(var t=[],n=e.firstChild;n;)n.nodeType===E&&t.push(n),n=n.nextSibling;return t}try{Object.defineProperty&&(Object.defineProperty(V.prototype,`length`,{get:function(){return H(this),this.$$length}}),Object.defineProperty(re.prototype,`textContent`,{get:function(){if(this.nodeType===E||this.nodeType===I){var e=[];return q(this,null,{enter:function(t){if(t.nodeType===E||t.nodeType===I)return!0;if(t.nodeType===M||t.nodeType===N)return null;e.push(t.nodeValue)}}),e.join(``)}return this.nodeValue},set:function(e){switch(this.nodeType){case E:case I:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),Object.defineProperty(he.prototype,`children`,{get:function(){return new V(this,Fe)}}),Object.defineProperty(J.prototype,`children`,{get:function(){return new V(this,Fe)}}),Object.defineProperty(Te.prototype,`children`,{get:function(){return new V(this,Fe)}}),Pe=function(e,t,n){e[`$$`+t]=n})}catch{}e._updateLiveList=H,e.Attr=ge,e.CDATASection=be,e.CharacterData=_e,e.Comment=ye,e.Document=J,e.DocumentFragment=Te,e.DocumentType=xe,e.DOMImplementation=G,e.Element=he,e.Entity=Ce,e.EntityReference=we,e.LiveNodeList=V,e.NamedNodeMap=U,e.Node=re,e.NodeList=B,e.Notation=Se,e.Text=ve,e.ProcessingInstruction=Ee,e.walkDOM=q,e.XMLSerializer=De})),Mu=a((e=>{var t=Ou().freeze;e.XML_ENTITIES=t({amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`}),e.HTML_ENTITIES=t({Aacute:`Á`,aacute:`á`,Abreve:`Ă`,abreve:`ă`,ac:`∾`,acd:`∿`,acE:`∾̳`,Acirc:`Â`,acirc:`â`,acute:`´`,Acy:`А`,acy:`а`,AElig:`Æ`,aelig:`æ`,af:``,Afr:`𝔄`,afr:`𝔞`,Agrave:`À`,agrave:`à`,alefsym:`ℵ`,aleph:`ℵ`,Alpha:`Α`,alpha:`α`,Amacr:`Ā`,amacr:`ā`,amalg:`⨿`,AMP:`&`,amp:`&`,And:`⩓`,and:`∧`,andand:`⩕`,andd:`⩜`,andslope:`⩘`,andv:`⩚`,ang:`∠`,ange:`⦤`,angle:`∠`,angmsd:`∡`,angmsdaa:`⦨`,angmsdab:`⦩`,angmsdac:`⦪`,angmsdad:`⦫`,angmsdae:`⦬`,angmsdaf:`⦭`,angmsdag:`⦮`,angmsdah:`⦯`,angrt:`∟`,angrtvb:`⊾`,angrtvbd:`⦝`,angsph:`∢`,angst:`Å`,angzarr:`⍼`,Aogon:`Ą`,aogon:`ą`,Aopf:`𝔸`,aopf:`𝕒`,ap:`≈`,apacir:`⩯`,apE:`⩰`,ape:`≊`,apid:`≋`,apos:`'`,ApplyFunction:``,approx:`≈`,approxeq:`≊`,Aring:`Å`,aring:`å`,Ascr:`𝒜`,ascr:`𝒶`,Assign:`≔`,ast:`*`,asymp:`≈`,asympeq:`≍`,Atilde:`Ã`,atilde:`ã`,Auml:`Ä`,auml:`ä`,awconint:`∳`,awint:`⨑`,backcong:`≌`,backepsilon:`϶`,backprime:``,backsim:`∽`,backsimeq:`⋍`,Backslash:``,Barv:`⫧`,barvee:`⊽`,Barwed:`⌆`,barwed:`⌅`,barwedge:`⌅`,bbrk:`⎵`,bbrktbrk:`⎶`,bcong:`≌`,Bcy:`Б`,bcy:`б`,bdquo:`„`,becaus:`∵`,Because:`∵`,because:`∵`,bemptyv:`⦰`,bepsi:`϶`,bernou:``,Bernoullis:``,Beta:`Β`,beta:`β`,beth:`ℶ`,between:`≬`,Bfr:`𝔅`,bfr:`𝔟`,bigcap:`⋂`,bigcirc:`◯`,bigcup:``,bigodot:`⨀`,bigoplus:`⨁`,bigotimes:`⨂`,bigsqcup:`⨆`,bigstar:`★`,bigtriangledown:`▽`,bigtriangleup:`△`,biguplus:`⨄`,bigvee:``,bigwedge:`⋀`,bkarow:`⤍`,blacklozenge:`⧫`,blacksquare:`▪`,blacktriangle:`▴`,blacktriangledown:`▾`,blacktriangleleft:`◂`,blacktriangleright:`▸`,blank:`␣`,blk12:`▒`,blk14:`░`,blk34:`▓`,block:`█`,bne:`=⃥`,bnequiv:`≡⃥`,bNot:`⫭`,bnot:`⌐`,Bopf:`𝔹`,bopf:`𝕓`,bot:`⊥`,bottom:`⊥`,bowtie:`⋈`,boxbox:`⧉`,boxDL:`╗`,boxDl:`╖`,boxdL:`╕`,boxdl:`┐`,boxDR:`╔`,boxDr:`╓`,boxdR:`╒`,boxdr:`┌`,boxH:`═`,boxh:`─`,boxHD:`╦`,boxHd:`╤`,boxhD:`╥`,boxhd:`┬`,boxHU:`╩`,boxHu:`╧`,boxhU:`╨`,boxhu:`┴`,boxminus:`⊟`,boxplus:`⊞`,boxtimes:`⊠`,boxUL:`╝`,boxUl:`╜`,boxuL:`╛`,boxul:`┘`,boxUR:`╚`,boxUr:`╙`,boxuR:`╘`,boxur:`└`,boxV:`║`,boxv:`│`,boxVH:`╬`,boxVh:`╫`,boxvH:`╪`,boxvh:`┼`,boxVL:`╣`,boxVl:`╢`,boxvL:`╡`,boxvl:`┤`,boxVR:`╠`,boxVr:`╟`,boxvR:`╞`,boxvr:`├`,bprime:``,Breve:`˘`,breve:`˘`,brvbar:`¦`,Bscr:``,bscr:`𝒷`,bsemi:`⁏`,bsim:`∽`,bsime:`⋍`,bsol:`\\`,bsolb:`⧅`,bsolhsub:`⟈`,bull:`•`,bullet:`•`,bump:`≎`,bumpE:`⪮`,bumpe:`≏`,Bumpeq:`≎`,bumpeq:`≏`,Cacute:`Ć`,cacute:`ć`,Cap:`⋒`,cap:`∩`,capand:`⩄`,capbrcup:`⩉`,capcap:`⩋`,capcup:`⩇`,capdot:`⩀`,CapitalDifferentialD:``,caps:`∩︀`,caret:``,caron:`ˇ`,Cayleys:``,ccaps:`⩍`,Ccaron:`Č`,ccaron:`č`,Ccedil:`Ç`,ccedil:`ç`,Ccirc:`Ĉ`,ccirc:`ĉ`,Cconint:`∰`,ccups:`⩌`,ccupssm:`⩐`,Cdot:`Ċ`,cdot:`ċ`,cedil:`¸`,Cedilla:`¸`,cemptyv:`⦲`,cent:`¢`,CenterDot:`·`,centerdot:`·`,Cfr:``,cfr:`𝔠`,CHcy:`Ч`,chcy:`ч`,check:`✓`,checkmark:`✓`,Chi:`Χ`,chi:`χ`,cir:`○`,circ:`ˆ`,circeq:`≗`,circlearrowleft:`↺`,circlearrowright:`↻`,circledast:`⊛`,circledcirc:`⊚`,circleddash:`⊝`,CircleDot:`⊙`,circledR:`®`,circledS:`Ⓢ`,CircleMinus:`⊖`,CirclePlus:`⊕`,CircleTimes:`⊗`,cirE:`⧃`,cire:`≗`,cirfnint:`⨐`,cirmid:`⫯`,cirscir:`⧂`,ClockwiseContourIntegral:`∲`,CloseCurlyDoubleQuote:`”`,CloseCurlyQuote:``,clubs:`♣`,clubsuit:`♣`,Colon:`∷`,colon:`:`,Colone:`⩴`,colone:`≔`,coloneq:`≔`,comma:`,`,commat:`@`,comp:`∁`,compfn:`∘`,complement:`∁`,complexes:``,cong:`≅`,congdot:`⩭`,Congruent:`≡`,Conint:`∯`,conint:`∮`,ContourIntegral:`∮`,Copf:``,copf:`𝕔`,coprod:`∐`,Coproduct:`∐`,COPY:`©`,copy:`©`,copysr:`℗`,CounterClockwiseContourIntegral:`∳`,crarr:`↵`,Cross:``,cross:`✗`,Cscr:`𝒞`,cscr:`𝒸`,csub:`⫏`,csube:`⫑`,csup:`⫐`,csupe:`⫒`,ctdot:`⋯`,cudarrl:`⤸`,cudarrr:`⤵`,cuepr:`⋞`,cuesc:`⋟`,cularr:`↶`,cularrp:`⤽`,Cup:`⋓`,cup:``,cupbrcap:`⩈`,CupCap:`≍`,cupcap:`⩆`,cupcup:`⩊`,cupdot:`⊍`,cupor:`⩅`,cups:``,curarr:`↷`,curarrm:`⤼`,curlyeqprec:`⋞`,curlyeqsucc:`⋟`,curlyvee:`⋎`,curlywedge:`⋏`,curren:`¤`,curvearrowleft:`↶`,curvearrowright:`↷`,cuvee:`⋎`,cuwed:`⋏`,cwconint:`∲`,cwint:`∱`,cylcty:`⌭`,Dagger:`‡`,dagger:`†`,daleth:`ℸ`,Darr:`↡`,dArr:`⇓`,darr:`↓`,dash:``,Dashv:`⫤`,dashv:`⊣`,dbkarow:`⤏`,dblac:`˝`,Dcaron:`Ď`,dcaron:`ď`,Dcy:`Д`,dcy:`д`,DD:``,dd:``,ddagger:`‡`,ddarr:`⇊`,DDotrahd:`⤑`,ddotseq:`⩷`,deg:`°`,Del:`∇`,Delta:`Δ`,delta:`δ`,demptyv:`⦱`,dfisht:`⥿`,Dfr:`𝔇`,dfr:`𝔡`,dHar:`⥥`,dharl:`⇃`,dharr:`⇂`,DiacriticalAcute:`´`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,DiacriticalGrave:"`",DiacriticalTilde:`˜`,diam:`⋄`,Diamond:`⋄`,diamond:`⋄`,diamondsuit:`♦`,diams:`♦`,die:`¨`,DifferentialD:``,digamma:`ϝ`,disin:`⋲`,div:`÷`,divide:`÷`,divideontimes:`⋇`,divonx:`⋇`,DJcy:`Ђ`,djcy:`ђ`,dlcorn:`⌞`,dlcrop:`⌍`,dollar:`$`,Dopf:`𝔻`,dopf:`𝕕`,Dot:`¨`,dot:`˙`,DotDot:`⃜`,doteq:`≐`,doteqdot:`≑`,DotEqual:`≐`,dotminus:`∸`,dotplus:`∔`,dotsquare:`⊡`,doublebarwedge:`⌆`,DoubleContourIntegral:`∯`,DoubleDot:`¨`,DoubleDownArrow:`⇓`,DoubleLeftArrow:`⇐`,DoubleLeftRightArrow:`⇔`,DoubleLeftTee:`⫤`,DoubleLongLeftArrow:`⟸`,DoubleLongLeftRightArrow:`⟺`,DoubleLongRightArrow:`⟹`,DoubleRightArrow:`⇒`,DoubleRightTee:`⊨`,DoubleUpArrow:`⇑`,DoubleUpDownArrow:`⇕`,DoubleVerticalBar:`∥`,DownArrow:`↓`,Downarrow:`⇓`,downarrow:`↓`,DownArrowBar:`⤓`,DownArrowUpArrow:`⇵`,DownBreve:`̑`,downdownarrows:`⇊`,downharpoonleft:`⇃`,downharpoonright:`⇂`,DownLeftRightVector:`⥐`,DownLeftTeeVector:`⥞`,DownLeftVector:`↽`,DownLeftVectorBar:`⥖`,DownRightTeeVector:`⥟`,DownRightVector:`⇁`,DownRightVectorBar:`⥗`,DownTee:``,DownTeeArrow:`↧`,drbkarow:`⤐`,drcorn:`⌟`,drcrop:`⌌`,Dscr:`𝒟`,dscr:`𝒹`,DScy:`Ѕ`,dscy:`ѕ`,dsol:`⧶`,Dstrok:`Đ`,dstrok:`đ`,dtdot:`⋱`,dtri:`▿`,dtrif:`▾`,duarr:`⇵`,duhar:`⥯`,dwangle:`⦦`,DZcy:`Џ`,dzcy:`џ`,dzigrarr:`⟿`,Eacute:`É`,eacute:`é`,easter:`⩮`,Ecaron:`Ě`,ecaron:`ě`,ecir:`≖`,Ecirc:`Ê`,ecirc:`ê`,ecolon:`≕`,Ecy:`Э`,ecy:`э`,eDDot:`⩷`,Edot:`Ė`,eDot:`≑`,edot:`ė`,ee:``,efDot:`≒`,Efr:`𝔈`,efr:`𝔢`,eg:`⪚`,Egrave:`È`,egrave:`è`,egs:`⪖`,egsdot:`⪘`,el:`⪙`,Element:`∈`,elinters:`⏧`,ell:``,els:`⪕`,elsdot:`⪗`,Emacr:`Ē`,emacr:`ē`,empty:`∅`,emptyset:`∅`,EmptySmallSquare:`◻`,emptyv:`∅`,EmptyVerySmallSquare:`▫`,emsp:``,emsp13:``,emsp14:``,ENG:`Ŋ`,eng:`ŋ`,ensp:``,Eogon:`Ę`,eogon:`ę`,Eopf:`𝔼`,eopf:`𝕖`,epar:`⋕`,eparsl:`⧣`,eplus:`⩱`,epsi:`ε`,Epsilon:`Ε`,epsilon:`ε`,epsiv:`ϵ`,eqcirc:`≖`,eqcolon:`≕`,eqsim:`≂`,eqslantgtr:`⪖`,eqslantless:`⪕`,Equal:`⩵`,equals:`=`,EqualTilde:`≂`,equest:`≟`,Equilibrium:`⇌`,equiv:`≡`,equivDD:`⩸`,eqvparsl:`⧥`,erarr:`⥱`,erDot:`≓`,Escr:``,escr:``,esdot:`≐`,Esim:`⩳`,esim:`≂`,Eta:`Η`,eta:`η`,ETH:`Ð`,eth:`ð`,Euml:`Ë`,euml:`ë`,euro:`€`,excl:`!`,exist:`∃`,Exists:`∃`,expectation:``,ExponentialE:``,exponentiale:``,fallingdotseq:`≒`,Fcy:`Ф`,fcy:`ф`,female:`♀`,ffilig:`ffi`,fflig:`ff`,ffllig:`ffl`,Ffr:`𝔉`,ffr:`𝔣`,filig:`fi`,FilledSmallSquare:`◼`,FilledVerySmallSquare:`▪`,fjlig:`fj`,flat:`♭`,fllig:`fl`,fltns:`▱`,fnof:`ƒ`,Fopf:`𝔽`,fopf:`𝕗`,ForAll:`∀`,forall:`∀`,fork:`⋔`,forkv:`⫙`,Fouriertrf:``,fpartint:`⨍`,frac12:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:``,frown:`⌢`,Fscr:``,fscr:`𝒻`,gacute:`ǵ`,Gamma:`Γ`,gamma:`γ`,Gammad:`Ϝ`,gammad:`ϝ`,gap:`⪆`,Gbreve:`Ğ`,gbreve:`ğ`,Gcedil:`Ģ`,Gcirc:`Ĝ`,gcirc:`ĝ`,Gcy:`Г`,gcy:`г`,Gdot:`Ġ`,gdot:`ġ`,gE:`≧`,ge:`≥`,gEl:`⪌`,gel:`⋛`,geq:`≥`,geqq:`≧`,geqslant:`⩾`,ges:`⩾`,gescc:`⪩`,gesdot:`⪀`,gesdoto:`⪂`,gesdotol:`⪄`,gesl:`⋛︀`,gesles:`⪔`,Gfr:`𝔊`,gfr:`𝔤`,Gg:`⋙`,gg:`≫`,ggg:`⋙`,gimel:`ℷ`,GJcy:`Ѓ`,gjcy:`ѓ`,gl:`≷`,gla:`⪥`,glE:`⪒`,glj:`⪤`,gnap:`⪊`,gnapprox:`⪊`,gnE:`≩`,gne:`⪈`,gneq:`⪈`,gneqq:`≩`,gnsim:`⋧`,Gopf:`𝔾`,gopf:`𝕘`,grave:"`",GreaterEqual:`≥`,GreaterEqualLess:`⋛`,GreaterFullEqual:`≧`,GreaterGreater:`⪢`,GreaterLess:`≷`,GreaterSlantEqual:`⩾`,GreaterTilde:`≳`,Gscr:`𝒢`,gscr:``,gsim:`≳`,gsime:`⪎`,gsiml:`⪐`,Gt:`≫`,GT:`>`,gt:`>`,gtcc:`⪧`,gtcir:`⩺`,gtdot:`⋗`,gtlPar:`⦕`,gtquest:`⩼`,gtrapprox:`⪆`,gtrarr:`⥸`,gtrdot:`⋗`,gtreqless:`⋛`,gtreqqless:`⪌`,gtrless:`≷`,gtrsim:`≳`,gvertneqq:`≩︀`,gvnE:`≩︀`,Hacek:`ˇ`,hairsp:``,half:`½`,hamilt:``,HARDcy:`Ъ`,hardcy:`ъ`,hArr:`⇔`,harr:`↔`,harrcir:`⥈`,harrw:`↭`,Hat:`^`,hbar:`ℏ`,Hcirc:`Ĥ`,hcirc:`ĥ`,hearts:`♥`,heartsuit:`♥`,hellip:`…`,hercon:`⊹`,Hfr:``,hfr:`𝔥`,HilbertSpace:``,hksearow:`⤥`,hkswarow:`⤦`,hoarr:`⇿`,homtht:`∻`,hookleftarrow:`↩`,hookrightarrow:`↪`,Hopf:``,hopf:`𝕙`,horbar:`―`,HorizontalLine:`─`,Hscr:``,hscr:`𝒽`,hslash:`ℏ`,Hstrok:`Ħ`,hstrok:`ħ`,HumpDownHump:`≎`,HumpEqual:`≏`,hybull:``,hyphen:``,Iacute:`Í`,iacute:`í`,ic:``,Icirc:`Î`,icirc:`î`,Icy:`И`,icy:`и`,Idot:`İ`,IEcy:`Е`,iecy:`е`,iexcl:`¡`,iff:`⇔`,Ifr:``,ifr:`𝔦`,Igrave:`Ì`,igrave:`ì`,ii:``,iiiint:`⨌`,iiint:`∭`,iinfin:`⧜`,iiota:`℩`,IJlig:`IJ`,ijlig:`ij`,Im:``,Imacr:`Ī`,imacr:`ī`,image:``,ImaginaryI:``,imagline:``,imagpart:``,imath:`ı`,imof:`⊷`,imped:`Ƶ`,Implies:`⇒`,in:`∈`,incare:`℅`,infin:`∞`,infintie:`⧝`,inodot:`ı`,Int:`∬`,int:`∫`,intcal:`⊺`,integers:``,Integral:`∫`,intercal:`⊺`,Intersection:`⋂`,intlarhk:`⨗`,intprod:`⨼`,InvisibleComma:``,InvisibleTimes:``,IOcy:`Ё`,iocy:`ё`,Iogon:`Į`,iogon:`į`,Iopf:`𝕀`,iopf:`𝕚`,Iota:`Ι`,iota:`ι`,iprod:`⨼`,iquest:`¿`,Iscr:``,iscr:`𝒾`,isin:`∈`,isindot:`⋵`,isinE:`⋹`,isins:`⋴`,isinsv:`⋳`,isinv:`∈`,it:``,Itilde:`Ĩ`,itilde:`ĩ`,Iukcy:`І`,iukcy:`і`,Iuml:`Ï`,iuml:`ï`,Jcirc:`Ĵ`,jcirc:`ĵ`,Jcy:`Й`,jcy:`й`,Jfr:`𝔍`,jfr:`𝔧`,jmath:`ȷ`,Jopf:`𝕁`,jopf:`𝕛`,Jscr:`𝒥`,jscr:`𝒿`,Jsercy:`Ј`,jsercy:`ј`,Jukcy:`Є`,jukcy:`є`,Kappa:`Κ`,kappa:`κ`,kappav:`ϰ`,Kcedil:`Ķ`,kcedil:`ķ`,Kcy:`К`,kcy:`к`,Kfr:`𝔎`,kfr:`𝔨`,kgreen:`ĸ`,KHcy:`Х`,khcy:`х`,KJcy:`Ќ`,kjcy:`ќ`,Kopf:`𝕂`,kopf:`𝕜`,Kscr:`𝒦`,kscr:`𝓀`,lAarr:`⇚`,Lacute:`Ĺ`,lacute:`ĺ`,laemptyv:`⦴`,lagran:``,Lambda:`Λ`,lambda:`λ`,Lang:`⟪`,lang:`⟨`,langd:`⦑`,langle:`⟨`,lap:`⪅`,Laplacetrf:``,laquo:`«`,Larr:`↞`,lArr:`⇐`,larr:`←`,larrb:`⇤`,larrbfs:`⤟`,larrfs:`⤝`,larrhk:`↩`,larrlp:`↫`,larrpl:`⤹`,larrsim:`⥳`,larrtl:`↢`,lat:`⪫`,lAtail:`⤛`,latail:`⤙`,late:`⪭`,lates:`⪭︀`,lBarr:`⤎`,lbarr:`⤌`,lbbrk:``,lbrace:`{`,lbrack:`[`,lbrke:`⦋`,lbrksld:`⦏`,lbrkslu:`⦍`,Lcaron:`Ľ`,lcaron:`ľ`,Lcedil:`Ļ`,lcedil:`ļ`,lceil:`⌈`,lcub:`{`,Lcy:`Л`,lcy:`л`,ldca:`⤶`,ldquo:`“`,ldquor:`„`,ldrdhar:`⥧`,ldrushar:`⥋`,ldsh:`↲`,lE:`≦`,le:`≤`,LeftAngleBracket:`⟨`,LeftArrow:`←`,Leftarrow:`⇐`,leftarrow:`←`,LeftArrowBar:`⇤`,LeftArrowRightArrow:`⇆`,leftarrowtail:`↢`,LeftCeiling:`⌈`,LeftDoubleBracket:`⟦`,LeftDownTeeVector:`⥡`,LeftDownVector:`⇃`,LeftDownVectorBar:`⥙`,LeftFloor:`⌊`,leftharpoondown:`↽`,leftharpoonup:`↼`,leftleftarrows:`⇇`,LeftRightArrow:`↔`,Leftrightarrow:`⇔`,leftrightarrow:`↔`,leftrightarrows:`⇆`,leftrightharpoons:`⇋`,leftrightsquigarrow:`↭`,LeftRightVector:`⥎`,LeftTee:`⊣`,LeftTeeArrow:`↤`,LeftTeeVector:`⥚`,leftthreetimes:`⋋`,LeftTriangle:`⊲`,LeftTriangleBar:`⧏`,LeftTriangleEqual:`⊴`,LeftUpDownVector:`⥑`,LeftUpTeeVector:`⥠`,LeftUpVector:`↿`,LeftUpVectorBar:`⥘`,LeftVector:`↼`,LeftVectorBar:`⥒`,lEg:`⪋`,leg:`⋚`,leq:`≤`,leqq:`≦`,leqslant:`⩽`,les:`⩽`,lescc:`⪨`,lesdot:`⩿`,lesdoto:`⪁`,lesdotor:`⪃`,lesg:`⋚︀`,lesges:`⪓`,lessapprox:`⪅`,lessdot:`⋖`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,LessEqualGreater:`⋚`,LessFullEqual:`≦`,LessGreater:`≶`,lessgtr:`≶`,LessLess:`⪡`,lesssim:`≲`,LessSlantEqual:`⩽`,LessTilde:`≲`,lfisht:`⥼`,lfloor:`⌊`,Lfr:`𝔏`,lfr:`𝔩`,lg:`≶`,lgE:`⪑`,lHar:`⥢`,lhard:`↽`,lharu:`↼`,lharul:`⥪`,lhblk:`▄`,LJcy:`Љ`,ljcy:`љ`,Ll:`⋘`,ll:`≪`,llarr:`⇇`,llcorner:`⌞`,Lleftarrow:`⇚`,llhard:`⥫`,lltri:`◺`,Lmidot:`Ŀ`,lmidot:`ŀ`,lmoust:`⎰`,lmoustache:`⎰`,lnap:`⪉`,lnapprox:`⪉`,lnE:`≨`,lne:`⪇`,lneq:`⪇`,lneqq:`≨`,lnsim:`⋦`,loang:`⟬`,loarr:`⇽`,lobrk:`⟦`,LongLeftArrow:`⟵`,Longleftarrow:`⟸`,longleftarrow:`⟵`,LongLeftRightArrow:`⟷`,Longleftrightarrow:`⟺`,longleftrightarrow:`⟷`,longmapsto:`⟼`,LongRightArrow:`⟶`,Longrightarrow:`⟹`,longrightarrow:`⟶`,looparrowleft:`↫`,looparrowright:`↬`,lopar:`⦅`,Lopf:`𝕃`,lopf:`𝕝`,loplus:`⨭`,lotimes:`⨴`,lowast:``,lowbar:`_`,LowerLeftArrow:`↙`,LowerRightArrow:`↘`,loz:`◊`,lozenge:`◊`,lozf:`⧫`,lpar:`(`,lparlt:`⦓`,lrarr:`⇆`,lrcorner:`⌟`,lrhar:`⇋`,lrhard:`⥭`,lrm:``,lrtri:`⊿`,lsaquo:``,Lscr:``,lscr:`𝓁`,Lsh:`↰`,lsh:`↰`,lsim:`≲`,lsime:`⪍`,lsimg:`⪏`,lsqb:`[`,lsquo:``,lsquor:``,Lstrok:`Ł`,lstrok:`ł`,Lt:`≪`,LT:`<`,lt:`<`,ltcc:`⪦`,ltcir:`⩹`,ltdot:`⋖`,lthree:`⋋`,ltimes:`⋉`,ltlarr:`⥶`,ltquest:`⩻`,ltri:`◃`,ltrie:`⊴`,ltrif:`◂`,ltrPar:`⦖`,lurdshar:`⥊`,luruhar:`⥦`,lvertneqq:`≨︀`,lvnE:`≨︀`,macr:`¯`,male:`♂`,malt:`✠`,maltese:`✠`,Map:`⤅`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,mapstoleft:`↤`,mapstoup:`↥`,marker:`▮`,mcomma:`⨩`,Mcy:`М`,mcy:`м`,mdash:`—`,mDDot:`∺`,measuredangle:`∡`,MediumSpace:``,Mellintrf:``,Mfr:`𝔐`,mfr:`𝔪`,mho:`℧`,micro:`µ`,mid:``,midast:`*`,midcir:`⫰`,middot:`·`,minus:``,minusb:`⊟`,minusd:`∸`,minusdu:`⨪`,MinusPlus:`∓`,mlcp:`⫛`,mldr:`…`,mnplus:`∓`,models:`⊧`,Mopf:`𝕄`,mopf:`𝕞`,mp:`∓`,Mscr:``,mscr:`𝓂`,mstpos:`∾`,Mu:`Μ`,mu:`μ`,multimap:`⊸`,mumap:`⊸`,nabla:`∇`,Nacute:`Ń`,nacute:`ń`,nang:`∠⃒`,nap:`≉`,napE:`⩰̸`,napid:`≋̸`,napos:`ʼn`,napprox:`≉`,natur:`♮`,natural:`♮`,naturals:``,nbsp:`\xA0`,nbump:`≎̸`,nbumpe:`≏̸`,ncap:`⩃`,Ncaron:`Ň`,ncaron:`ň`,Ncedil:`Ņ`,ncedil:`ņ`,ncong:`≇`,ncongdot:`⩭̸`,ncup:`⩂`,Ncy:`Н`,ncy:`н`,ndash:``,ne:`≠`,nearhk:`⤤`,neArr:`⇗`,nearr:`↗`,nearrow:`↗`,nedot:`≐̸`,NegativeMediumSpace:``,NegativeThickSpace:``,NegativeThinSpace:``,NegativeVeryThinSpace:``,nequiv:`≢`,nesear:`⤨`,nesim:`≂̸`,NestedGreaterGreater:`≫`,NestedLessLess:`≪`,NewLine:`
`,nexist:`∄`,nexists:`∄`,Nfr:`𝔑`,nfr:`𝔫`,ngE:`≧̸`,nge:`≱`,ngeq:`≱`,ngeqq:`≧̸`,ngeqslant:`⩾̸`,nges:`⩾̸`,nGg:`⋙̸`,ngsim:`≵`,nGt:`≫⃒`,ngt:`≯`,ngtr:`≯`,nGtv:`≫̸`,nhArr:`⇎`,nharr:`↮`,nhpar:`⫲`,ni:`∋`,nis:`⋼`,nisd:`⋺`,niv:`∋`,NJcy:`Њ`,njcy:`њ`,nlArr:`⇍`,nlarr:`↚`,nldr:`‥`,nlE:`≦̸`,nle:`≰`,nLeftarrow:`⇍`,nleftarrow:`↚`,nLeftrightarrow:`⇎`,nleftrightarrow:`↮`,nleq:`≰`,nleqq:`≦̸`,nleqslant:`⩽̸`,nles:`⩽̸`,nless:`≮`,nLl:`⋘̸`,nlsim:`≴`,nLt:`≪⃒`,nlt:`≮`,nltri:`⋪`,nltrie:`⋬`,nLtv:`≪̸`,nmid:`∤`,NoBreak:``,NonBreakingSpace:`\xA0`,Nopf:``,nopf:`𝕟`,Not:`⫬`,not:`¬`,NotCongruent:`≢`,NotCupCap:`≭`,NotDoubleVerticalBar:`∦`,NotElement:`∉`,NotEqual:`≠`,NotEqualTilde:`≂̸`,NotExists:`∄`,NotGreater:`≯`,NotGreaterEqual:`≱`,NotGreaterFullEqual:`≧̸`,NotGreaterGreater:`≫̸`,NotGreaterLess:`≹`,NotGreaterSlantEqual:`⩾̸`,NotGreaterTilde:`≵`,NotHumpDownHump:`≎̸`,NotHumpEqual:`≏̸`,notin:`∉`,notindot:`⋵̸`,notinE:`⋹̸`,notinva:`∉`,notinvb:`⋷`,notinvc:`⋶`,NotLeftTriangle:`⋪`,NotLeftTriangleBar:`⧏̸`,NotLeftTriangleEqual:`⋬`,NotLess:`≮`,NotLessEqual:`≰`,NotLessGreater:`≸`,NotLessLess:`≪̸`,NotLessSlantEqual:`⩽̸`,NotLessTilde:`≴`,NotNestedGreaterGreater:`⪢̸`,NotNestedLessLess:`⪡̸`,notni:`∌`,notniva:`∌`,notnivb:`⋾`,notnivc:`⋽`,NotPrecedes:`⊀`,NotPrecedesEqual:`⪯̸`,NotPrecedesSlantEqual:`⋠`,NotReverseElement:`∌`,NotRightTriangle:`⋫`,NotRightTriangleBar:`⧐̸`,NotRightTriangleEqual:`⋭`,NotSquareSubset:`⊏̸`,NotSquareSubsetEqual:`⋢`,NotSquareSuperset:`⊐̸`,NotSquareSupersetEqual:`⋣`,NotSubset:`⊂⃒`,NotSubsetEqual:`⊈`,NotSucceeds:`⊁`,NotSucceedsEqual:`⪰̸`,NotSucceedsSlantEqual:`⋡`,NotSucceedsTilde:`≿̸`,NotSuperset:`⊃⃒`,NotSupersetEqual:`⊉`,NotTilde:`≁`,NotTildeEqual:`≄`,NotTildeFullEqual:`≇`,NotTildeTilde:`≉`,NotVerticalBar:`∤`,npar:`∦`,nparallel:`∦`,nparsl:`⫽⃥`,npart:`∂̸`,npolint:`⨔`,npr:`⊀`,nprcue:`⋠`,npre:`⪯̸`,nprec:`⊀`,npreceq:`⪯̸`,nrArr:`⇏`,nrarr:`↛`,nrarrc:`⤳̸`,nrarrw:`↝̸`,nRightarrow:`⇏`,nrightarrow:`↛`,nrtri:`⋫`,nrtrie:`⋭`,nsc:`⊁`,nsccue:`⋡`,nsce:`⪰̸`,Nscr:`𝒩`,nscr:`𝓃`,nshortmid:`∤`,nshortparallel:`∦`,nsim:`≁`,nsime:`≄`,nsimeq:`≄`,nsmid:`∤`,nspar:`∦`,nsqsube:`⋢`,nsqsupe:`⋣`,nsub:`⊄`,nsubE:`⫅̸`,nsube:`⊈`,nsubset:`⊂⃒`,nsubseteq:`⊈`,nsubseteqq:`⫅̸`,nsucc:`⊁`,nsucceq:`⪰̸`,nsup:`⊅`,nsupE:`⫆̸`,nsupe:`⊉`,nsupset:`⊃⃒`,nsupseteq:`⊉`,nsupseteqq:`⫆̸`,ntgl:`≹`,Ntilde:`Ñ`,ntilde:`ñ`,ntlg:`≸`,ntriangleleft:`⋪`,ntrianglelefteq:`⋬`,ntriangleright:`⋫`,ntrianglerighteq:`⋭`,Nu:`Ν`,nu:`ν`,num:`#`,numero:`№`,numsp:``,nvap:`≍⃒`,nVDash:`⊯`,nVdash:`⊮`,nvDash:`⊭`,nvdash:`⊬`,nvge:`≥⃒`,nvgt:`>⃒`,nvHarr:`⤄`,nvinfin:`⧞`,nvlArr:`⤂`,nvle:`≤⃒`,nvlt:`<⃒`,nvltrie:`⊴⃒`,nvrArr:`⤃`,nvrtrie:`⊵⃒`,nvsim:`∼⃒`,nwarhk:`⤣`,nwArr:`⇖`,nwarr:`↖`,nwarrow:`↖`,nwnear:`⤧`,Oacute:`Ó`,oacute:`ó`,oast:`⊛`,ocir:`⊚`,Ocirc:`Ô`,ocirc:`ô`,Ocy:`О`,ocy:`о`,odash:`⊝`,Odblac:`Ő`,odblac:`ő`,odiv:`⨸`,odot:`⊙`,odsold:`⦼`,OElig:`Œ`,oelig:`œ`,ofcir:`⦿`,Ofr:`𝔒`,ofr:`𝔬`,ogon:`˛`,Ograve:`Ò`,ograve:`ò`,ogt:`⧁`,ohbar:`⦵`,ohm:`Ω`,oint:`∮`,olarr:`↺`,olcir:`⦾`,olcross:`⦻`,oline:`‾`,olt:`⧀`,Omacr:`Ō`,omacr:`ō`,Omega:`Ω`,omega:`ω`,Omicron:`Ο`,omicron:`ο`,omid:`⦶`,ominus:`⊖`,Oopf:`𝕆`,oopf:`𝕠`,opar:`⦷`,OpenCurlyDoubleQuote:`“`,OpenCurlyQuote:``,operp:`⦹`,oplus:`⊕`,Or:`⩔`,or:``,orarr:`↻`,ord:`⩝`,order:``,orderof:``,ordf:`ª`,ordm:`º`,origof:`⊶`,oror:`⩖`,orslope:`⩗`,orv:`⩛`,oS:`Ⓢ`,Oscr:`𝒪`,oscr:``,Oslash:`Ø`,oslash:`ø`,osol:`⊘`,Otilde:`Õ`,otilde:`õ`,Otimes:`⨷`,otimes:`⊗`,otimesas:`⨶`,Ouml:`Ö`,ouml:`ö`,ovbar:`⌽`,OverBar:`‾`,OverBrace:`⏞`,OverBracket:`⎴`,OverParenthesis:`⏜`,par:`∥`,para:`¶`,parallel:`∥`,parsim:`⫳`,parsl:`⫽`,part:`∂`,PartialD:`∂`,Pcy:`П`,pcy:`п`,percnt:`%`,period:`.`,permil:`‰`,perp:`⊥`,pertenk:`‱`,Pfr:`𝔓`,pfr:`𝔭`,Phi:`Φ`,phi:`φ`,phiv:`ϕ`,phmmat:``,phone:`☎`,Pi:`Π`,pi:`π`,pitchfork:`⋔`,piv:`ϖ`,planck:`ℏ`,planckh:``,plankv:`ℏ`,plus:`+`,plusacir:`⨣`,plusb:`⊞`,pluscir:`⨢`,plusdo:`∔`,plusdu:`⨥`,pluse:`⩲`,PlusMinus:`±`,plusmn:`±`,plussim:`⨦`,plustwo:`⨧`,pm:`±`,Poincareplane:``,pointint:`⨕`,Popf:``,popf:`𝕡`,pound:`£`,Pr:`⪻`,pr:`≺`,prap:`⪷`,prcue:`≼`,prE:`⪳`,pre:`⪯`,prec:`≺`,precapprox:`⪷`,preccurlyeq:`≼`,Precedes:`≺`,PrecedesEqual:`⪯`,PrecedesSlantEqual:`≼`,PrecedesTilde:`≾`,preceq:`⪯`,precnapprox:`⪹`,precneqq:`⪵`,precnsim:`⋨`,precsim:`≾`,Prime:`″`,prime:``,primes:``,prnap:`⪹`,prnE:`⪵`,prnsim:`⋨`,prod:`∏`,Product:`∏`,profalar:`⌮`,profline:`⌒`,profsurf:`⌓`,prop:`∝`,Proportion:`∷`,Proportional:`∝`,propto:`∝`,prsim:`≾`,prurel:`⊰`,Pscr:`𝒫`,pscr:`𝓅`,Psi:`Ψ`,psi:`ψ`,puncsp:``,Qfr:`𝔔`,qfr:`𝔮`,qint:`⨌`,Qopf:``,qopf:`𝕢`,qprime:`⁗`,Qscr:`𝒬`,qscr:`𝓆`,quaternions:``,quatint:`⨖`,quest:`?`,questeq:`≟`,QUOT:`"`,quot:`"`,rAarr:`⇛`,race:`∽̱`,Racute:`Ŕ`,racute:`ŕ`,radic:`√`,raemptyv:`⦳`,Rang:`⟫`,rang:`⟩`,rangd:`⦒`,range:`⦥`,rangle:`⟩`,raquo:`»`,Rarr:`↠`,rArr:`⇒`,rarr:`→`,rarrap:`⥵`,rarrb:`⇥`,rarrbfs:`⤠`,rarrc:`⤳`,rarrfs:`⤞`,rarrhk:`↪`,rarrlp:`↬`,rarrpl:`⥅`,rarrsim:`⥴`,Rarrtl:`⤖`,rarrtl:`↣`,rarrw:`↝`,rAtail:`⤜`,ratail:`⤚`,ratio:``,rationals:``,RBarr:`⤐`,rBarr:`⤏`,rbarr:`⤍`,rbbrk:``,rbrace:`}`,rbrack:`]`,rbrke:`⦌`,rbrksld:`⦎`,rbrkslu:`⦐`,Rcaron:`Ř`,rcaron:`ř`,Rcedil:`Ŗ`,rcedil:`ŗ`,rceil:`⌉`,rcub:`}`,Rcy:`Р`,rcy:`р`,rdca:`⤷`,rdldhar:`⥩`,rdquo:`”`,rdquor:`”`,rdsh:`↳`,Re:``,real:``,realine:``,realpart:``,reals:``,rect:`▭`,REG:`®`,reg:`®`,ReverseElement:`∋`,ReverseEquilibrium:`⇋`,ReverseUpEquilibrium:`⥯`,rfisht:`⥽`,rfloor:`⌋`,Rfr:``,rfr:`𝔯`,rHar:`⥤`,rhard:`⇁`,rharu:`⇀`,rharul:`⥬`,Rho:`Ρ`,rho:`ρ`,rhov:`ϱ`,RightAngleBracket:`⟩`,RightArrow:`→`,Rightarrow:`⇒`,rightarrow:`→`,RightArrowBar:`⇥`,RightArrowLeftArrow:`⇄`,rightarrowtail:`↣`,RightCeiling:`⌉`,RightDoubleBracket:`⟧`,RightDownTeeVector:`⥝`,RightDownVector:`⇂`,RightDownVectorBar:`⥕`,RightFloor:`⌋`,rightharpoondown:`⇁`,rightharpoonup:`⇀`,rightleftarrows:`⇄`,rightleftharpoons:`⇌`,rightrightarrows:`⇉`,rightsquigarrow:`↝`,RightTee:`⊢`,RightTeeArrow:`↦`,RightTeeVector:`⥛`,rightthreetimes:`⋌`,RightTriangle:`⊳`,RightTriangleBar:`⧐`,RightTriangleEqual:`⊵`,RightUpDownVector:`⥏`,RightUpTeeVector:`⥜`,RightUpVector:`↾`,RightUpVectorBar:`⥔`,RightVector:`⇀`,RightVectorBar:`⥓`,ring:`˚`,risingdotseq:`≓`,rlarr:`⇄`,rlhar:`⇌`,rlm:``,rmoust:`⎱`,rmoustache:`⎱`,rnmid:`⫮`,roang:`⟭`,roarr:`⇾`,robrk:`⟧`,ropar:`⦆`,Ropf:``,ropf:`𝕣`,roplus:`⨮`,rotimes:`⨵`,RoundImplies:`⥰`,rpar:`)`,rpargt:`⦔`,rppolint:`⨒`,rrarr:`⇉`,Rrightarrow:`⇛`,rsaquo:``,Rscr:``,rscr:`𝓇`,Rsh:`↱`,rsh:`↱`,rsqb:`]`,rsquo:``,rsquor:``,rthree:`⋌`,rtimes:`⋊`,rtri:`▹`,rtrie:`⊵`,rtrif:`▸`,rtriltri:`⧎`,RuleDelayed:`⧴`,ruluhar:`⥨`,rx:`℞`,Sacute:`Ś`,sacute:`ś`,sbquo:``,Sc:`⪼`,sc:`≻`,scap:`⪸`,Scaron:`Š`,scaron:`š`,sccue:`≽`,scE:`⪴`,sce:`⪰`,Scedil:`Ş`,scedil:`ş`,Scirc:`Ŝ`,scirc:`ŝ`,scnap:`⪺`,scnE:`⪶`,scnsim:`⋩`,scpolint:`⨓`,scsim:`≿`,Scy:`С`,scy:`с`,sdot:`⋅`,sdotb:`⊡`,sdote:`⩦`,searhk:`⤥`,seArr:`⇘`,searr:`↘`,searrow:`↘`,sect:`§`,semi:`;`,seswar:`⤩`,setminus:``,setmn:``,sext:`✶`,Sfr:`𝔖`,sfr:`𝔰`,sfrown:`⌢`,sharp:`♯`,SHCHcy:`Щ`,shchcy:`щ`,SHcy:`Ш`,shcy:`ш`,ShortDownArrow:`↓`,ShortLeftArrow:`←`,shortmid:``,shortparallel:`∥`,ShortRightArrow:`→`,ShortUpArrow:`↑`,shy:`­`,Sigma:`Σ`,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,sim:``,simdot:`⩪`,sime:`≃`,simeq:`≃`,simg:`⪞`,simgE:`⪠`,siml:`⪝`,simlE:`⪟`,simne:`≆`,simplus:`⨤`,simrarr:`⥲`,slarr:`←`,SmallCircle:`∘`,smallsetminus:``,smashp:`⨳`,smeparsl:`⧤`,smid:``,smile:`⌣`,smt:`⪪`,smte:`⪬`,smtes:`⪬︀`,SOFTcy:`Ь`,softcy:`ь`,sol:`/`,solb:`⧄`,solbar:`⌿`,Sopf:`𝕊`,sopf:`𝕤`,spades:`♠`,spadesuit:`♠`,spar:`∥`,sqcap:`⊓`,sqcaps:`⊓︀`,sqcup:`⊔`,sqcups:`⊔︀`,Sqrt:`√`,sqsub:`⊏`,sqsube:`⊑`,sqsubset:`⊏`,sqsubseteq:`⊑`,sqsup:`⊐`,sqsupe:`⊒`,sqsupset:`⊐`,sqsupseteq:`⊒`,squ:`□`,Square:`□`,square:`□`,SquareIntersection:`⊓`,SquareSubset:`⊏`,SquareSubsetEqual:`⊑`,SquareSuperset:`⊐`,SquareSupersetEqual:`⊒`,SquareUnion:`⊔`,squarf:`▪`,squf:`▪`,srarr:`→`,Sscr:`𝒮`,sscr:`𝓈`,ssetmn:``,ssmile:`⌣`,sstarf:`⋆`,Star:`⋆`,star:`☆`,starf:`★`,straightepsilon:`ϵ`,straightphi:`ϕ`,strns:`¯`,Sub:`⋐`,sub:`⊂`,subdot:`⪽`,subE:`⫅`,sube:`⊆`,subedot:`⫃`,submult:`⫁`,subnE:`⫋`,subne:`⊊`,subplus:`⪿`,subrarr:`⥹`,Subset:`⋐`,subset:`⊂`,subseteq:`⊆`,subseteqq:`⫅`,SubsetEqual:`⊆`,subsetneq:`⊊`,subsetneqq:`⫋`,subsim:`⫇`,subsub:`⫕`,subsup:`⫓`,succ:`≻`,succapprox:`⪸`,succcurlyeq:`≽`,Succeeds:`≻`,SucceedsEqual:`⪰`,SucceedsSlantEqual:`≽`,SucceedsTilde:`≿`,succeq:`⪰`,succnapprox:`⪺`,succneqq:`⪶`,succnsim:`⋩`,succsim:`≿`,SuchThat:`∋`,Sum:`∑`,sum:`∑`,sung:`♪`,Sup:`⋑`,sup:`⊃`,sup1:`¹`,sup2:`²`,sup3:`³`,supdot:`⪾`,supdsub:`⫘`,supE:`⫆`,supe:`⊇`,supedot:`⫄`,Superset:`⊃`,SupersetEqual:`⊇`,suphsol:`⟉`,suphsub:`⫗`,suplarr:`⥻`,supmult:`⫂`,supnE:`⫌`,supne:`⊋`,supplus:`⫀`,Supset:`⋑`,supset:`⊃`,supseteq:`⊇`,supseteqq:`⫆`,supsetneq:`⊋`,supsetneqq:`⫌`,supsim:`⫈`,supsub:`⫔`,supsup:`⫖`,swarhk:`⤦`,swArr:`⇙`,swarr:`↙`,swarrow:`↙`,swnwar:`⤪`,szlig:`ß`,Tab:` `,target:`⌖`,Tau:`Τ`,tau:`τ`,tbrk:`⎴`,Tcaron:`Ť`,tcaron:`ť`,Tcedil:`Ţ`,tcedil:`ţ`,Tcy:`Т`,tcy:`т`,tdot:`⃛`,telrec:`⌕`,Tfr:`𝔗`,tfr:`𝔱`,there4:`∴`,Therefore:`∴`,therefore:`∴`,Theta:`Θ`,theta:`θ`,thetasym:`ϑ`,thetav:`ϑ`,thickapprox:`≈`,thicksim:``,ThickSpace:``,thinsp:``,ThinSpace:``,thkap:`≈`,thksim:``,THORN:`Þ`,thorn:`þ`,Tilde:``,tilde:`˜`,TildeEqual:`≃`,TildeFullEqual:`≅`,TildeTilde:`≈`,times:`×`,timesb:`⊠`,timesbar:`⨱`,timesd:`⨰`,tint:`∭`,toea:`⤨`,top:``,topbot:`⌶`,topcir:`⫱`,Topf:`𝕋`,topf:`𝕥`,topfork:`⫚`,tosa:`⤩`,tprime:`‴`,TRADE:`™`,trade:`™`,triangle:`▵`,triangledown:`▿`,triangleleft:`◃`,trianglelefteq:`⊴`,triangleq:`≜`,triangleright:`▹`,trianglerighteq:`⊵`,tridot:`◬`,trie:`≜`,triminus:`⨺`,TripleDot:`⃛`,triplus:`⨹`,trisb:`⧍`,tritime:`⨻`,trpezium:`⏢`,Tscr:`𝒯`,tscr:`𝓉`,TScy:`Ц`,tscy:`ц`,TSHcy:`Ћ`,tshcy:`ћ`,Tstrok:`Ŧ`,tstrok:`ŧ`,twixt:`≬`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,Uacute:`Ú`,uacute:`ú`,Uarr:`↟`,uArr:`⇑`,uarr:`↑`,Uarrocir:`⥉`,Ubrcy:`Ў`,ubrcy:`ў`,Ubreve:`Ŭ`,ubreve:`ŭ`,Ucirc:`Û`,ucirc:`û`,Ucy:`У`,ucy:`у`,udarr:`⇅`,Udblac:`Ű`,udblac:`ű`,udhar:`⥮`,ufisht:`⥾`,Ufr:`𝔘`,ufr:`𝔲`,Ugrave:`Ù`,ugrave:`ù`,uHar:`⥣`,uharl:`↿`,uharr:`↾`,uhblk:`▀`,ulcorn:`⌜`,ulcorner:`⌜`,ulcrop:`⌏`,ultri:`◸`,Umacr:`Ū`,umacr:`ū`,uml:`¨`,UnderBar:`_`,UnderBrace:`⏟`,UnderBracket:`⎵`,UnderParenthesis:`⏝`,Union:``,UnionPlus:`⊎`,Uogon:`Ų`,uogon:`ų`,Uopf:`𝕌`,uopf:`𝕦`,UpArrow:`↑`,Uparrow:`⇑`,uparrow:`↑`,UpArrowBar:`⤒`,UpArrowDownArrow:`⇅`,UpDownArrow:`↕`,Updownarrow:`⇕`,updownarrow:`↕`,UpEquilibrium:`⥮`,upharpoonleft:`↿`,upharpoonright:`↾`,uplus:`⊎`,UpperLeftArrow:`↖`,UpperRightArrow:`↗`,Upsi:`ϒ`,upsi:`υ`,upsih:`ϒ`,Upsilon:`Υ`,upsilon:`υ`,UpTee:`⊥`,UpTeeArrow:`↥`,upuparrows:`⇈`,urcorn:`⌝`,urcorner:`⌝`,urcrop:`⌎`,Uring:`Ů`,uring:`ů`,urtri:`◹`,Uscr:`𝒰`,uscr:`𝓊`,utdot:`⋰`,Utilde:`Ũ`,utilde:`ũ`,utri:`▵`,utrif:`▴`,uuarr:`⇈`,Uuml:`Ü`,uuml:`ü`,uwangle:`⦧`,vangrt:`⦜`,varepsilon:`ϵ`,varkappa:`ϰ`,varnothing:`∅`,varphi:`ϕ`,varpi:`ϖ`,varpropto:`∝`,vArr:`⇕`,varr:`↕`,varrho:`ϱ`,varsigma:`ς`,varsubsetneq:`⊊︀`,varsubsetneqq:`⫋︀`,varsupsetneq:`⊋︀`,varsupsetneqq:`⫌︀`,vartheta:`ϑ`,vartriangleleft:`⊲`,vartriangleright:`⊳`,Vbar:`⫫`,vBar:`⫨`,vBarv:`⫩`,Vcy:`В`,vcy:`в`,VDash:`⊫`,Vdash:`⊩`,vDash:`⊨`,vdash:`⊢`,Vdashl:`⫦`,Vee:``,vee:``,veebar:`⊻`,veeeq:`≚`,vellip:`⋮`,Verbar:`‖`,verbar:`|`,Vert:`‖`,vert:`|`,VerticalBar:``,VerticalLine:`|`,VerticalSeparator:`❘`,VerticalTilde:`≀`,VeryThinSpace:``,Vfr:`𝔙`,vfr:`𝔳`,vltri:`⊲`,vnsub:`⊂⃒`,vnsup:`⊃⃒`,Vopf:`𝕍`,vopf:`𝕧`,vprop:`∝`,vrtri:`⊳`,Vscr:`𝒱`,vscr:`𝓋`,vsubnE:`⫋︀`,vsubne:`⊊︀`,vsupnE:`⫌︀`,vsupne:`⊋︀`,Vvdash:`⊪`,vzigzag:`⦚`,Wcirc:`Ŵ`,wcirc:`ŵ`,wedbar:`⩟`,Wedge:`⋀`,wedge:`∧`,wedgeq:`≙`,weierp:`℘`,Wfr:`𝔚`,wfr:`𝔴`,Wopf:`𝕎`,wopf:`𝕨`,wp:`℘`,wr:`≀`,wreath:`≀`,Wscr:`𝒲`,wscr:`𝓌`,xcap:`⋂`,xcirc:`◯`,xcup:``,xdtri:`▽`,Xfr:`𝔛`,xfr:`𝔵`,xhArr:`⟺`,xharr:`⟷`,Xi:`Ξ`,xi:`ξ`,xlArr:`⟸`,xlarr:`⟵`,xmap:`⟼`,xnis:`⋻`,xodot:`⨀`,Xopf:`𝕏`,xopf:`𝕩`,xoplus:`⨁`,xotime:`⨂`,xrArr:`⟹`,xrarr:`⟶`,Xscr:`𝒳`,xscr:`𝓍`,xsqcup:`⨆`,xuplus:`⨄`,xutri:`△`,xvee:``,xwedge:`⋀`,Yacute:`Ý`,yacute:`ý`,YAcy:`Я`,yacy:`я`,Ycirc:`Ŷ`,ycirc:`ŷ`,Ycy:`Ы`,ycy:`ы`,yen:`¥`,Yfr:`𝔜`,yfr:`𝔶`,YIcy:`Ї`,yicy:`ї`,Yopf:`𝕐`,yopf:`𝕪`,Yscr:`𝒴`,yscr:`𝓎`,YUcy:`Ю`,yucy:`ю`,Yuml:`Ÿ`,yuml:`ÿ`,Zacute:`Ź`,zacute:`ź`,Zcaron:`Ž`,zcaron:`ž`,Zcy:`З`,zcy:`з`,Zdot:`Ż`,zdot:`ż`,zeetrf:``,ZeroWidthSpace:``,Zeta:`Ζ`,zeta:`ζ`,Zfr:``,zfr:`𝔷`,ZHcy:`Ж`,zhcy:`ж`,zigrarr:`⇝`,Zopf:``,zopf:`𝕫`,Zscr:`𝒵`,zscr:`𝓏`,zwj:``,zwnj:``}),e.entityMap=e.HTML_ENTITIES})),Nu=a((e=>{var t=Ou(),n=Au(),r=ku(),i=t.isHTMLEscapableRawTextElement,a=t.isHTMLMimeType,o=t.isHTMLRawTextElement,s=t.hasOwn,c=t.NAMESPACE,l=r.ParseError,u=r.DOMException,d=0,f=1,p=2,m=3,h=4,g=5,_=6,v=7;function y(){}y.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),E(t,t=Object.create(null)),x(e,t,n,r,this.errorHandler),r.endDocument()}};var b=/&#?\w+;?/g;function x(e,r,i,o,c){var d=a(o.mimeType);e.indexOf(n.UNICODE_REPLACEMENT_CHARACTER)>=0&&c.warning(`Unicode replacement character detected, source encoding issues?`);function f(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}else return String.fromCharCode(e)}function p(e){var t=e[e.length-1]===`;`?e:e+`;`;if(!d&&t!==e)return c.error(`EntityRef: expecting ;`),e;var r=n.Reference.exec(t);if(!r||r[0].length!==t.length)return c.error(`entity not matching Reference production: `+e),e;var a=t.slice(1,-1);return s(i,a)?i[a]:a.charAt(0)===`#`?f(parseInt(a.substring(1).replace(`x`,`0x`))):(c.error(`entity not found:`+e),e)}function m(t){if(t>D){var n=e.substring(D,t).replace(b,p);v&&y(D),o.characters(n,0,t-D),D=t}}var h=0,g=0,_=/\r\n?|\n|$/g,v=o.locator;function y(t,n){for(;t>=g&&(n=_.exec(e));)h=g,g=n.index+n[0].length,v.lineNumber++;v.columnNumber=t-h+1}for(var x=[{currentNSMap:r}],E=[],D=0;;){try{var O=e.indexOf(`<`,D);if(O<0){if(!d&&E.length>0)return c.fatalError(`unclosed xml tag(s): `+E.join(`, `));if(!e.substring(D).match(/^\s*$/)){var M=o.doc,N=M.createTextNode(e.substring(D));if(M.documentElement)return c.error(`Extra content at the end of the document`);M.appendChild(N),o.currentElement=N}return}if(O>D){var P=e.substring(D,O);!d&&E.length===0&&(P=P.replace(new RegExp(n.S_OPT.source,`g`),``),P&&c.error(`Unexpected content outside root element: '`+P+`'`)),m(O)}switch(e.charAt(O+1)){case`/`:var F=e.indexOf(`>`,O+2),I=e.substring(O+2,F>0?F:void 0);if(!I)return c.fatalError(`end tag name missing`);var ee=F>0&&n.reg(`^`,n.QName_group,n.S_OPT,`$`).exec(I);if(!ee)return c.fatalError(`end tag name contains invalid characters: "`+I+`"`);if(!o.currentElement&&!o.doc.documentElement)return;var L=E[E.length-1]||o.currentElement.tagName||o.doc.documentElement.tagName||``;if(L!==ee[1]){var R=ee[1].toLowerCase();if(!d||L.toLowerCase()!==R)return c.fatalError(`Opening and ending tag mismatch: "`+L+`" != "`+I+`"`)}var z=x.pop();E.pop();var B=z.localNSMap;if(o.endElement(z.uri,z.localName,L),B)for(var V in B)s(B,V)&&o.endPrefixMapping(V);F++;break;case`?`:v&&y(O),F=A(e,O,o,c);break;case`!`:v&&y(O),F=k(e,O,o,c,d);break;default:v&&y(O);var H=new j,U=x[x.length-1].currentNSMap,F=C(e,O,H,U,p,c,d),W=H.length;if(H.closed||(d&&t.isHTMLVoidElement(H.tagName)?H.closed=!0:E.push(H.tagName)),v&&W){for(var te=S(v,{}),ne=0;ne<W;ne++){var G=H[ne];y(G.offset),G.locator=S(v,{})}o.locator=te,w(H,o,U)&&x.push(H),o.locator=v}else w(H,o,U)&&x.push(H);d&&!H.closed?F=T(e,F,H.tagName,p,o):F++}}catch(e){if(e instanceof l)throw e;if(e instanceof u)throw new l(e.name+`: `+e.message,o.locator,e);c.error(`element parse error: `+e),F=-1}F>D?D=F:m(Math.max(O,D)+1)}}function S(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function C(e,t,n,r,i,a,o){function c(e,t,r){if(s(n.attributeNames,e))return a.fatalError(`Attribute `+e+` redefined`);if(!o&&t.indexOf(`<`)>=0)return a.fatalError(`Unescaped '<' not allowed in attributes values`);n.addValue(e,t.replace(/[\t\n\r]/g,` `).replace(b,i),r)}for(var l,u,y=++t,x=d;;){var S=e.charAt(y);switch(S){case`=`:if(x===f)l=e.slice(t,y),x=m;else if(x===p)x=m;else throw Error(`attribute equal must after attrName`);break;case`'`:case`"`:if(x===m||x===f)if(x===f&&(a.warning(`attribute value must after "="`),l=e.slice(t,y)),t=y+1,y=e.indexOf(S,t),y>0)u=e.slice(t,y),c(l,u,t-1),x=g;else throw Error(`attribute value no end '`+S+`' match`);else if(x==h)u=e.slice(t,y),c(l,u,t),a.warning(`attribute "`+l+`" missed start quot(`+S+`)!!`),t=y+1,x=g;else throw Error(`attribute value must after "="`);break;case`/`:switch(x){case d:n.setTagName(e.slice(t,y));case g:case _:case v:x=v,n.closed=!0;case h:case f:break;case p:n.closed=!0;break;default:throw Error(`attribute invalid close char('/')`)}break;case``:return a.error(`unexpected end of input`),x==d&&n.setTagName(e.slice(t,y)),y;case`>`:switch(x){case d:n.setTagName(e.slice(t,y));case g:case _:case v:break;case h:case f:u=e.slice(t,y),u.slice(-1)===`/`&&(n.closed=!0,u=u.slice(0,-1));case p:x===p&&(u=l),x==h?(a.warning(`attribute "`+u+`" missed quot(")!`),c(l,u,t)):(o||a.warning(`attribute "`+u+`" missed value!! "`+u+`" instead!!`),c(u,u,t));break;case m:if(!o)return a.fatalError(`AttValue: ' or " expected`)}return y;case`€`:S=` `;default:if(S<=` `)switch(x){case d:n.setTagName(e.slice(t,y)),x=_;break;case f:l=e.slice(t,y),x=p;break;case h:var u=e.slice(t,y);a.warning(`attribute "`+u+`" missed quot(")!!`),c(l,u,t);case g:x=_;break}else switch(x){case p:o||a.warning(`attribute "`+l+`" missed value!! "`+l+`" instead2!!`),c(l,l,t),t=y,x=f;break;case g:a.warning(`attribute space is required"`+l+`"!!`);case _:x=f,t=y;break;case m:x=h,t=y;break;case v:throw Error(`elements closed character '/' and '>' must be connected to`)}}y++}}function w(e,t,n){for(var r=e.tagName,i=null,a=e.length;a--;){var o=e[a],l=o.qName,u=o.value,d=l.indexOf(`:`);if(d>0)var f=o.prefix=l.slice(0,d),p=l.slice(d+1),m=f===`xmlns`&&p;else p=l,f=null,m=l===`xmlns`&&``;o.localName=p,m!==!1&&(i??(i=Object.create(null),E(n,n=Object.create(null))),n[m]=i[m]=u,o.uri=c.XMLNS,t.startPrefixMapping(m,u))}for(var a=e.length;a--;)o=e[a],o.prefix&&(o.prefix===`xml`&&(o.uri=c.XML),o.prefix!==`xmlns`&&(o.uri=n[o.prefix]));var d=r.indexOf(`:`);d>0?(f=e.prefix=r.slice(0,d),p=e.localName=r.slice(d+1)):(f=null,p=e.localName=r);var h=e.uri=n[f||``];if(t.startElement(h,p,r,e),e.closed){if(t.endElement(h,p,r),i)for(f in i)s(i,f)&&t.endPrefixMapping(f)}else return e.currentNSMap=n,e.localNSMap=i,!0}function T(e,t,n,r,a){var s=i(n);if(s||o(n)){var c=e.indexOf(`</`+n+`>`,t),l=e.substring(t+1,c);return s&&(l=l.replace(b,r)),a.characters(l,0,l.length),c}return t+1}function E(e,t){for(var n in e)s(e,n)&&(t[n]=e[n])}function D(e,t){var r=t;function i(t){return t||=0,e.charAt(r+t)}function a(e){e||=1,r+=e}function o(){for(var t=0;r<e.length;){var n=i();if(n!==` `&&n!==`
`&&n!==` `&&n!==`\r`)return t;t++,a()}return-1}function s(){return e.substring(r)}function c(t){return e.substring(r,r+t.length)===t}function l(t){return e.substring(r,r+t.length).toUpperCase()===t.toUpperCase()}function u(e){var t=n.reg(`^`,e).exec(s());return t?(a(t[0].length),t[0]):null}return{char:i,getIndex:function(){return r},getMatch:u,getSource:function(){return e},skip:a,skipBlanks:o,substringFromIndex:s,substringStartsWith:c,substringStartsWithCaseInsensitive:l}}function O(e,t){function r(e,t){var r=n.PI.exec(e.substringFromIndex());return r?r[1].toLowerCase()===`xml`?t.fatalError(`xml declaration is only allowed at the start of the document, but found at position `+e.getIndex()):(e.skip(r[0].length),r[0]):t.fatalError(`processing instruction is not well-formed at position `+e.getIndex())}var i=e.getSource();if(e.char()===`[`){e.skip(1);for(var a=e.getIndex();e.getIndex()<i.length;){if(e.skipBlanks(),e.char()===`]`){var o=i.substring(a,e.getIndex());return e.skip(1),o}var s=null;if(e.char()===`<`&&e.char(1)===`!`)switch(e.char(2)){case`E`:e.char(3)===`L`?s=e.getMatch(n.elementdecl):e.char(3)===`N`&&(s=e.getMatch(n.EntityDecl));break;case`A`:s=e.getMatch(n.AttlistDecl);break;case`N`:s=e.getMatch(n.NotationDecl);break;case`-`:s=e.getMatch(n.Comment);break}else if(e.char()===`<`&&e.char(1)===`?`)s=r(e,t);else if(e.char()===`%`)s=e.getMatch(n.PEReference);else return t.fatalError(`Error detected in Markup declaration`);if(!s)return t.fatalError(`Error in internal subset at position `+e.getIndex())}return t.fatalError(`doctype internal subset is not well-formed, missing ]`)}}function k(e,t,r,i,a){var o=D(e,t);switch(a?o.char(2).toUpperCase():o.char(2)){case`-`:var s=o.getMatch(n.Comment);return s?(r.comment(s,n.COMMENT_START.length,s.length-n.COMMENT_START.length-n.COMMENT_END.length),o.getIndex()):i.fatalError(`comment is not well-formed at position `+o.getIndex());case`[`:var c=o.getMatch(n.CDSect);return c?!a&&!r.currentElement?i.fatalError(`CDATA outside of element`):(r.startCDATA(),r.characters(c,n.CDATA_START.length,c.length-n.CDATA_START.length-n.CDATA_END.length),r.endCDATA(),o.getIndex()):i.fatalError(`Invalid CDATA starting at position `+t);case`D`:if(r.doc&&r.doc.documentElement)return i.fatalError(`Doctype not allowed inside or after documentElement at position `+o.getIndex());if(a?!o.substringStartsWithCaseInsensitive(n.DOCTYPE_DECL_START):!o.substringStartsWith(n.DOCTYPE_DECL_START))return i.fatalError(`Expected `+n.DOCTYPE_DECL_START+` at position `+o.getIndex());if(o.skip(n.DOCTYPE_DECL_START.length),o.skipBlanks()<1)return i.fatalError(`Expected whitespace after `+n.DOCTYPE_DECL_START+` at position `+o.getIndex());var l={name:void 0,publicId:void 0,systemId:void 0,internalSubset:void 0};if(l.name=o.getMatch(n.Name),!l.name)return i.fatalError(`doctype name missing or contains unexpected characters at position `+o.getIndex());if(a&&l.name.toLowerCase()!==`html`&&i.warning(`Unexpected DOCTYPE in HTML document at position `+o.getIndex()),o.skipBlanks(),o.substringStartsWith(n.PUBLIC)||o.substringStartsWith(n.SYSTEM)){var u=n.ExternalID_match.exec(o.substringFromIndex());if(!u)return i.fatalError(`doctype external id is not well-formed at position `+o.getIndex());u.groups.SystemLiteralOnly===void 0?(l.systemId=u.groups.SystemLiteral,l.publicId=u.groups.PubidLiteral):l.systemId=u.groups.SystemLiteralOnly,o.skip(u[0].length)}else if(a&&o.substringStartsWithCaseInsensitive(n.SYSTEM)){if(o.skip(n.SYSTEM.length),o.skipBlanks()<1)return i.fatalError(`Expected whitespace after `+n.SYSTEM+` at position `+o.getIndex());if(l.systemId=o.getMatch(n.ABOUT_LEGACY_COMPAT_SystemLiteral),!l.systemId)return i.fatalError(`Expected `+n.ABOUT_LEGACY_COMPAT+` in single or double quotes after `+n.SYSTEM+` at position `+o.getIndex())}return a&&l.systemId&&!n.ABOUT_LEGACY_COMPAT_SystemLiteral.test(l.systemId)&&i.warning(`Unexpected doctype.systemId in HTML document at position `+o.getIndex()),a||(o.skipBlanks(),l.internalSubset=O(o,i)),o.skipBlanks(),o.char()===`>`?(o.skip(1),r.startDTD(l.name,l.publicId,l.systemId,l.internalSubset),r.endDTD(),o.getIndex()):i.fatalError(`doctype not terminated with > at position `+o.getIndex());default:return i.fatalError(`Not well-formed XML starting with "<!" at position `+t)}}function A(e,t,r,i){var a=e.substring(t).match(n.PI);if(!a)return i.fatalError(`Invalid processing instruction starting at position `+t);if(a[1].toLowerCase()===`xml`){if(t>0)return i.fatalError(`processing instruction at position `+t+` is an xml declaration which is only at the start of the document`);if(!n.XMLDecl.test(e.substring(t)))return i.fatalError(`xml declaration is not well-formed`)}return r.processingInstruction(a[1],a[2]),t+a[0].length}function j(){this.attributeNames=Object.create(null)}j.prototype={setTagName:function(e){if(!n.QName_exact.test(e))throw Error(`invalid tagName:`+e);this.tagName=e},addValue:function(e,t,r){if(!n.QName_exact.test(e))throw Error(`invalid attribute:`+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:r}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},e.XMLReader=y,e.parseUtils=D,e.parseDoctypeCommentOrCData=k})),Pu=a((e=>{var t=Ou(),n=ju(),r=ku(),i=Mu(),a=Nu(),o=n.DOMImplementation,s=t.hasDefaultHTMLNamespace,c=t.isHTMLMimeType,l=t.isValidMimeType,u=t.MIME_TYPE,d=t.NAMESPACE,f=r.ParseError,p=a.XMLReader;function m(e){return e.replace(/\r[\n\u0085]/g,`
`).replace(/[\r\u0085\u2028\u2029]/g,`
`)}function h(e){if(e||={},e.locator===void 0&&(e.locator=!0),this.assign=e.assign||t.assign,this.domHandler=e.domHandler||g,this.onError=e.onError||e.errorHandler,e.errorHandler&&typeof e.errorHandler!=`function`)throw TypeError(`errorHandler object is no longer supported, switch to onError!`);e.errorHandler&&e.errorHandler(`warning`,"The `errorHandler` option has been deprecated, use `onError` instead!",this),this.normalizeLineEndings=e.normalizeLineEndings||m,this.locator=!!e.locator,this.xmlns=this.assign(Object.create(null),e.xmlns)}h.prototype.parseFromString=function(e,n){if(!l(n))throw TypeError(`DOMParser.parseFromString: the provided mimeType "`+n+`" is not valid.`);var r=this.assign(Object.create(null),this.xmlns),a=i.XML_ENTITIES,o=r[``]||null;s(n)?(a=i.HTML_ENTITIES,o=d.HTML):n===u.XML_SVG_IMAGE&&(o=d.SVG),r[``]=o,r.xml=r.xml||d.XML;var c=new this.domHandler({mimeType:n,defaultNamespace:o,onError:this.onError}),f=this.locator?{}:void 0;this.locator&&c.setDocumentLocator(f);var m=new p;return m.errorHandler=c,m.domBuilder=c,!t.isHTMLMimeType(n)&&typeof e!=`string`&&m.errorHandler.fatalError(`source is not a string`),m.parse(this.normalizeLineEndings(String(e)),r,a),c.doc.documentElement||m.errorHandler.fatalError(`missing root element`),c.doc};function g(e){var t=e||{};this.mimeType=t.mimeType||u.XML_APPLICATION,this.defaultNamespace=t.defaultNamespace||null,this.cdata=!1,this.currentElement=void 0,this.doc=void 0,this.locator=void 0,this.onError=t.onError}function _(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}g.prototype={startDocument:function(){var e=new o;this.doc=c(this.mimeType)?e.createHTMLDocument(!1):e.createDocument(this.defaultNamespace,``)},startElement:function(e,t,n,r){var i=this.doc,a=i.createElementNS(e,n||t),o=r.length;b(this,a),this.currentElement=a,this.locator&&_(this.locator,a);for(var s=0;s<o;s++){var e=r.getURI(s),c=r.getValue(s),n=r.getQName(s),l=i.createAttributeNS(e,n);this.locator&&_(r.getLocator(s),l),l.value=l.nodeValue=c,a.setAttributeNode(l)}},endElement:function(e,t,n){this.currentElement=this.currentElement.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&_(this.locator,n),b(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=y.apply(this,arguments),e){if(this.cdata)var r=this.doc.createCDATASection(e);else var r=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(e)&&this.doc.appendChild(r),this.locator&&_(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){e&&(e.lineNumber=0),this.locator=e},comment:function(e,t,n){e=y.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&_(this.locator,r),b(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n,r){var i=this.doc.implementation;if(i&&i.createDocumentType){var a=i.createDocumentType(e,t,n,r);this.locator&&_(this.locator,a),b(this,a),this.doc.doctype=a}},reportError:function(e,t){if(typeof this.onError==`function`)try{this.onError(e,t,this)}catch(n){throw new f(`Reporting `+e+` "`+t+`" caused `+n,this.locator)}else console.error(`[xmldom `+e+`] `+t,v(this.locator))},warning:function(e){this.reportError(`warning`,e)},error:function(e){this.reportError(`error`,e)},fatalError:function(e){throw this.reportError(`fatalError`,e),new f(e,this.locator)}};function v(e){if(e)return`
@#[line:`+e.lineNumber+`,col:`+e.columnNumber+`]`}function y(e,t,n){return typeof e==`string`?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+``:e}`endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl`.replace(/\w+/g,function(e){g.prototype[e]=function(){return null}});function b(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}function x(e){if(e===`error`)throw`onErrorStopParsing`}function S(){throw`onWarningStopParsing`}e.__DOMHandler=g,e.DOMParser=h,e.normalizeLineEndings=m,e.onErrorStopParsing=x,e.onWarningStopParsing=S})),Fu=a((e=>{var t=Ou();e.assign=t.assign,e.hasDefaultHTMLNamespace=t.hasDefaultHTMLNamespace,e.isHTMLMimeType=t.isHTMLMimeType,e.isValidMimeType=t.isValidMimeType,e.MIME_TYPE=t.MIME_TYPE,e.NAMESPACE=t.NAMESPACE;var n=ku();e.DOMException=n.DOMException,e.DOMExceptionName=n.DOMExceptionName,e.ExceptionCode=n.ExceptionCode,e.ParseError=n.ParseError;var r=ju();e.Attr=r.Attr,e.CDATASection=r.CDATASection,e.CharacterData=r.CharacterData,e.Comment=r.Comment,e.Document=r.Document,e.DocumentFragment=r.DocumentFragment,e.DocumentType=r.DocumentType,e.DOMImplementation=r.DOMImplementation,e.Element=r.Element,e.Entity=r.Entity,e.EntityReference=r.EntityReference,e.LiveNodeList=r.LiveNodeList,e.NamedNodeMap=r.NamedNodeMap,e.Node=r.Node,e.NodeList=r.NodeList,e.Notation=r.Notation,e.ProcessingInstruction=r.ProcessingInstruction,e.Text=r.Text,e.XMLSerializer=r.XMLSerializer;var i=Pu();e.DOMParser=i.DOMParser,e.normalizeLineEndings=i.normalizeLineEndings,e.onErrorStopParsing=i.onErrorStopParsing,e.onWarningStopParsing=i.onWarningStopParsing})),Iu=a(((e,t)=>{function n(e){return e[e.length-1]}function r(e){return e[0]}t.exports={last:n,first:r}})),Lu=a(((e,t)=>{function n(e){"@babel/helpers - typeof";return n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},n(e)}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?r(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=s(e,`string`);return n(t)==`symbol`?t:t+``}function s(e,t){if(n(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||`default`);if(n(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var c=Iu(),l=c.last,u=c.first;function d(e){this.name=`GenericError`,this.message=e,this.stack=Error(e).stack}d.prototype=Error.prototype;function f(e){this.name=`TemplateError`,this.message=e,this.stack=Error(e).stack}f.prototype=new d;function p(e){this.name=`RenderingError`,this.message=e,this.stack=Error(e).stack}p.prototype=new d;function m(e){this.name=`ScopeParserError`,this.message=e,this.stack=Error(e).stack}m.prototype=new d;function h(e){this.name=`InternalError`,this.properties={explanation:`InternalError`},this.message=e,this.stack=Error(e).stack}h.prototype=new d;function g(e){this.name=`APIVersionError`,this.properties={explanation:`APIVersionError`},this.message=e,this.stack=Error(e).stack}g.prototype=new d;function _(e,t){var n=new g(e);throw n.properties=i({id:`api_version_error`},t),n}function v(e){var t=Object.keys(e.files).slice(0,10),n=``;n=t.length===0?`Empty zip file`:`Zip file contains : ${t.join(`,`)}`;var r=new h(`The filetype for this file could not be identified, is this file corrupted ? ${n}`);throw r.properties={id:`filetype_not_identified`,explanation:`The filetype for this file could not be identified, is this file corrupted ? ${n}`},r}function y(e){var t=new h(`The filetype "${e}" is not handled by Docxtemplater`);throw t.properties={id:`filetype_not_handled`,explanation:`The file you are trying to generate is of type "${e}", but only docx and pptx formats are handled`,fileType:e},t}function b(e){var t=new f(`Multi error`);throw t.properties={errors:e,id:`multi_error`,explanation:`The template has multiple errors`},t}function x(e){var t=new f(`Unopened tag`);return t.properties={xtag:l(e.xtag.split(` `)),id:`unopened_tag`,context:e.xtag,offset:e.offset,lIndex:e.lIndex,explanation:`The tag beginning with "${e.xtag.substr(0,30)}" is unopened`},t}function S(e){var t=new f(`Duplicate open tag, expected one open tag`);return t.properties={xtag:u(e.xtag.split(` `)),id:`duplicate_open_tag`,context:e.xtag,offset:e.offset,lIndex:e.lIndex,explanation:`The tag beginning with "${e.xtag.substr(0,30)}" has duplicate open tags`},t}function C(e){var t=new f(`Duplicate close tag, expected one close tag`);return t.properties={xtag:u(e.xtag.split(` `)),id:`duplicate_close_tag`,context:e.xtag,offset:e.offset,lIndex:e.lIndex,explanation:`The tag ending with "${e.xtag.substr(0,30)}" has duplicate close tags`},t}function w(e){var t=new f(`Unclosed tag`);return t.properties={xtag:u(e.xtag.split(` `)).substr(1),id:`unclosed_tag`,context:e.xtag,offset:e.offset,lIndex:e.lIndex,explanation:`The tag beginning with "${e.xtag.substr(0,30)}" is unclosed`},t}function T(e){e.position===`left`?E(e):D(e)}function E(e){var t=new f(`No tag "${e.element}" was found at the ${e.position}`),n=e.parsed[e.index];throw t.properties={id:`no_xml_tag_found_at_left`,explanation:`No tag "${e.element}" was found at the left`,offset:n.offset,part:n,parsed:e.parsed,index:e.index,element:e.element},t}function D(e){var t=new f(`No tag "${e.element}" was found at the ${e.position}`),n=e.parsed[e.index];throw t.properties={id:`no_xml_tag_found_at_right`,explanation:`No tag "${e.element}" was found at the right`,offset:n.offset,part:n,parsed:e.parsed,index:e.index,element:e.element},t}function O(e){var t=e.tag,n=e.value,r=e.offset,i=new p(`There are some XML corrupt characters`);return i.properties={id:`invalid_xml_characters`,xtag:t,value:n,offset:r,explanation:`There are some corrupt characters for the field "${t}"`},i}function k(e){var t=e.tag,n=e.value,r=e.offset,i=e.partDelims,a=new p(`Non string values are not allowed for rawXML tags`);return a.properties={id:`invalid_raw_xml_value`,xtag:t,value:n,offset:r,explanation:`The value of the raw tag : "${i}" is not a string`},a}function A(e){var t=e.part,n=t.value,r=t.offset,i=e.id,a=i===void 0?`raw_tag_outerxml_invalid`:i,o=e.message,s=o===void 0?`Raw tag not in paragraph`:o,c=e.part,l=e.explanation,u=l===void 0?`The tag "${n}" is not inside a paragraph`:l;typeof u==`function`&&(u=u(c));var d=new f(s);throw d.properties={id:a,explanation:u,rootError:e.rootError,xtag:n,offset:r,postparsed:e.postparsed,expandTo:e.expandTo,index:e.index},d}function j(e){var t=new f(`Raw tag should be the only text in paragraph`),n=e.part.value;throw t.properties={id:`raw_xml_tag_should_be_only_text_in_paragraph`,explanation:`The raw tag "${n}" should be the only text in this paragraph. This means that this tag should not be surrounded by any text or spaces.`,xtag:n,offset:e.part.offset,paragraphParts:e.paragraphParts},t}function M(e){var t=e.location,n=e.offset,r=e.square,i=t===`start`?`unclosed`:`unopened`,a=new f(`${t===`start`?`Unclosed`:`Unopened`} loop`),o=e.value;return a.properties={id:`${i}_loop`,explanation:`The loop with tag "${o}" is ${i}`,xtag:o,offset:n},r&&(a.properties.square=r),a}function N(e,t){var n=new f(`Unbalanced loop tag`);return n.properties={id:`unbalanced_loop_tags`,explanation:`Unbalanced loop tags {#${t[0].part.value}}{/${t[1].part.value}}{#${e[0].part.value}}{/${e[1].part.value}}`,offset:[t[0].part.offset,e[1].part.offset],lastPair:{left:t[0].part.value,right:t[1].part.value},pair:{left:e[0].part.value,right:e[1].part.value}},n}function P(e){var t=e.tags,n=new f(`Closing tag does not match opening tag`);return n.properties={id:`closing_tag_does_not_match_opening_tag`,explanation:`The tag "${t[0].value}" is closed by the tag "${t[1].value}"`,openingtag:u(t).value,offset:[u(t).offset,l(t).offset],closingtag:l(t).value},u(t).square&&(n.properties.square=[u(t).square,l(t).square]),n}function F(e){var t=e.tag,n=e.offset,r=new f(`The position of the loop tags "${t}" would produce invalid XML`);return r.properties={xtag:t,id:`loop_position_invalid`,explanation:`The tags "${t}" are misplaced in the document, for example one of them is in a table and the other one outside the table`,offset:n},r}function I(e){var t=e.tag,n=e.rootError,r=e.offset,i=new m(`Scope parser compilation failed`);return i.properties={id:`scopeparser_compilation_failed`,offset:r,xtag:t,explanation:`The scope parser for the tag "${t}" failed to compile`,rootError:n},i}function ee(e){var t=e.tag,n=e.scope,r=e.error,i=e.offset,a=new m(`Scope parser execution failed`);return a.properties={id:`scopeparser_execution_failed`,explanation:`The scope parser for the tag "${t}" failed to execute`,scope:n,offset:i,xtag:t,rootError:r},a}function L(e,t){var n=`Unimplemented tag type "${e.type}"`;e.module&&(n+=` "${e.module}"`);var r=new f(n);throw r.properties={part:e,index:t,id:`unimplemented_tag_type`},r}function R(){var e=new h(`Malformed xml`);throw e.properties={explanation:`The template contains malformed xml`,id:`malformed_xml`},e}function z(){var e=new h("You must run `.compile()` before running `.resolveData()`");throw e.properties={id:`resolve_before_compile`,explanation:"You must run `.compile()` before running `.resolveData()`"},e}function B(){var e=new h(`You should not call .render on a document that had compilation errors`);throw e.properties={id:`render_on_invalid_template`,explanation:`You should not call .render on a document that had compilation errors`},e}function V(){var e=new h(`You should not call .render twice on the same Docxtemplater instance`);throw e.properties={id:`render_twice`,explanation:`You should not call .render twice on the same Docxtemplater instance`},e}function H(e,t){var n=new f(`An XML file has invalid xml`);throw n.properties={id:`file_has_invalid_xml`,content:e,offset:t,explanation:`The docx contains invalid XML, it is most likely corrupt`},n}t.exports={XTError:d,XTTemplateError:f,XTInternalError:h,XTScopeParserError:m,XTAPIVersionError:g,RenderingError:p,XTRenderingError:p,getClosingTagNotMatchOpeningTag:P,getLoopPositionProducesInvalidXMLError:F,getScopeCompilationError:I,getScopeParserExecutionError:ee,getUnclosedTagException:w,getUnopenedTagException:x,getUnmatchedLoopException:M,getDuplicateCloseTagException:C,getDuplicateOpenTagException:S,getCorruptCharactersException:O,getInvalidRawXMLValueException:k,getUnbalancedLoopException:N,throwApiVersionError:_,throwFileTypeNotHandled:y,throwFileTypeNotIdentified:v,throwMalformedXml:R,throwMultiError:b,throwExpandNotFound:A,throwRawTagShouldBeOnlyTextInParagraph:j,throwUnimplementedTagType:L,throwXmlTagNotFound:T,throwXmlInvalid:H,throwResolveBeforeCompile:z,throwRenderInvalidTemplate:B,throwRenderTwice:V}})),Ru=a(((e,t)=>{function n(e,t){return s(e)||o(e,t)||i(e,t)||r()}function r(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(e,t){if(e){if(typeof e==`string`)return a(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function s(e){if(Array.isArray(e))return e}var c=Fu(),l=c.DOMParser,u=c.XMLSerializer,d=Lu().throwXmlTagNotFound,f=Iu(),p=f.last,m=f.first,h=Object.prototype.hasOwnProperty,g=Function.prototype.bind,_=Function.prototype.call,v=_.bind(_,g)(_,_,h);function y(e){return/^[ \n\r\t]+$/.test(e)}function b(e){return{get:function(t){return e===`.`?t:t&&(v(t,e)?t[e]:void 0)}}}function x(e){for(var t=0;t<e.length;t++){var n=e[t];n.message&&console.warn(`Warning : `+n.message)}}var S={};function C(e,t,n){var r;if(S[t]?r=S[t]:(r=RegExp(`(<.* ${t}=")([^"]*)(".*)\$`),S[t]=r),r.test(e))return e.replace(r,`\$1${n}\$3`);var i=e.lastIndexOf(`/>`);return i===-1&&(i=e.lastIndexOf(`>`)),e.substr(0,i)+` ${t}="${n}"`+e.substr(i)}function w(e,t){var n=e.indexOf(` ${t}="`);if(n===-1)return null;var r=e.substr(n).search(/["']/)+n,i=e.substr(r+1).search(/["']/)+r;return e.substr(r+1,i-r)}function T(e,t){return e.indexOf(t,e.length-t.length)!==-1}function E(e,t){return e.substring(0,t.length)===t}function D(e){for(var t=[],n={},r=[],i=0,a=e.length;i<a;++i)n[e[i]]?t.push(e[i]):(n[e[i]]=!0,r.push(e[i]));return t}function O(e){for(var t={},n=[],r=0,i=e.length;r<i;++r)t[e[r]]||(t[e[r]]=!0,n.push(e[r]));return n}function k(e,t){for(var n=[[]],r=0;r<e.length;r++){var i=e[r],a=n[n.length-1],o=t(i);o===`start`?n.push([i]):o===`end`?(a.push(i),n.push([])):a.push(i)}for(var s=[],c=0;c<n.length;c++){var l=n[c];l.length>0&&s.push(l)}return s}function A(){return{errorLogging:`json`,stripInvalidXMLChars:!1,paragraphLoop:!1,nullGetter:function(e){return e.module?``:`undefined`},xmlFileNames:[`[Content_Types].xml`],parser:b,warnFn:x,linebreaks:!1,fileTypeConfig:null,delimiters:{start:`{`,end:`}`},syntax:{changeDelimiterPrefix:`=`,preserveNewlinesInTags:!1,allowUnopenedTag:!1,allowUnclosedTag:!1,allowUnbalancedLoops:!1}}}function j(e){return new u().serializeToString(e).replace(/xmlns(:[a-z0-9]+)?="" ?/g,``)}function M(e){return e.charCodeAt(0)===65279&&(e=e.substr(1)),new l().parseFromString(e,`text/xml`)}var N=[[`&`,`&amp;`],[`<`,`&lt;`],[`>`,`&gt;`],[`"`,`&quot;`],[`'`,`&apos;`]],P=N.map(function(e){var t=n(e,2),r=t[0],i=t[1];return{rstart:new RegExp(i,`g`),rend:new RegExp(r,`g`),start:i,end:r}});function F(e){for(var t=P.length-1;t>=0;t--){var n=P[t];e=e.replace(n.rstart,n.end)}return e}function I(e){var t;e=(t=e)!=null&&t.toString?e.toString():``;for(var n,r=0,i=P.length;r<i;r++)n=P[r],e=e.replace(n.rend,n.start);return e}function ee(e){for(var t=[],n=0;n<e.length;n++)for(var r=e[n],i=0;i<r.length;i++){var a=r[i];t.push(a)}return t}function L(e,t){if(!t)return e;for(var n=0,r=t.length;n<r;n++)e.push(t[n]);return e}var R=RegExp(`\xA0`,`g`);function z(e){return e.replace(R,` `)}function B(e,t){for(var n=[],r;(r=e.exec(t))!=null;)n.push({array:r,offset:r.index});return n}function V(e,t){return e===`</`+t+`>`}function H(e,t){return e.indexOf(`<`+t)===0&&[`>`,` `,`/`].indexOf(e[t.length+1])!==-1}function U(e,t,n){var r=W(e,t,n);if(r!==null)return r;d({position:`right`,element:t,parsed:e,index:n})}function W(e,t,n){typeof t==`string`&&(t=[t]);for(var r=1,i=n,a=e.length;i<a;i++)for(var o=e[i],s=0,c=t;s<c.length;s++){var l=c[s];if(V(o.value,l)&&r--,H(o.value,l)&&r++,r===0)return i}return null}function te(e,t,n){var r=ne(e,t,n);if(r!==null)return r;d({position:`left`,element:t,parsed:e,index:n})}function ne(e,t,n){typeof t==`string`&&(t=[t]);for(var r=1,i=n;i>=0;i--)for(var a=e[i],o=0,s=t;o<s.length;o++){var c=s[o];if(H(a.value,c)&&r--,V(a.value,c)&&r++,r===0)return i}return null}function G(e,t){var n=t.type,r=t.tag,i=t.position;return n===`tag`&&r===e&&(i===`start`||i===`selfclosing`)}function re(e,t){var n=t.type,r=t.tag,i=t.position;return n===`tag`&&r===e&&i===`end`}function ie(e){var t=e.type,n=e.tag,r=e.position;return[`w:p`,`a:p`,`text:p`].indexOf(n)!==-1&&t===`tag`&&r===`start`}function K(e){var t=e.type,n=e.tag,r=e.position;return[`w:p`,`a:p`,`text:p`].indexOf(n)!==-1&&t===`tag`&&r===`end`}function q(e){var t=e.type,n=e.tag,r=e.position;return[`w:br`,`a:br`].indexOf(n)!==-1&&t===`tag`&&(r===`start`||r===`selfclosing`)}function J(e){var t=e.type,n=e.position;return e.text&&t===`tag`&&n===`start`}function Y(e){var t=e.type,n=e.position;return e.text&&t===`tag`&&n===`end`}function ae(e){var t=e.type,n=e.position;return t===`placeholder`||t===`content`&&n===`insidetag`}function oe(e,t){var n=e.module,r=e.type;return t instanceof Array||(t=[t]),r===`placeholder`&&t.indexOf(n)!==-1}var X=/[\x00-\x08\x0B\x0C\x0E-\x1F]/g;function se(e){return X.lastIndex=0,X.test(e)}function ce(e){return typeof e!=`string`&&(e=String(e)),e.replace(X,``)}function Z(e){var t={};for(var n in e){var r=e[n];t[r]||(t[r]=[]),t[r].push(n)}return t}function le(e,t){for(var n=[],r=0;r<e.length;r++)n.push({item:e[r],index:r});n.sort(function(e,n){return t(e.item,n.item)||e.index-n.index});for(var i=[],a=0;a<n.length;a++)i.push(n[a].item);return i}function ue(e,t){return t.delimiters.start+e.raw+t.delimiters.end}t.exports={getPartWithDelimiters:ue,endsWith:T,startsWith:E,isContent:ae,isParagraphStart:ie,isParagraphEnd:K,isBreakTag:q,isTagStart:G,isTagEnd:re,isTextStart:J,isTextEnd:Y,isStarting:H,isEnding:V,isModule:oe,uniq:O,getDuplicates:D,chunkBy:k,last:p,first:m,xml2str:j,str2xml:M,getRightOrNull:W,getRight:U,getLeftOrNull:ne,getLeft:te,pregMatchAll:B,convertSpaces:z,charMapRegexes:P,hasCorruptCharacters:se,removeCorruptCharacters:ce,getDefaults:A,wordToUtf8:F,utf8ToWord:I,concatArrays:ee,pushArray:L,invertMap:Z,charMap:N,getSingleAttribute:w,setSingleAttribute:C,isWhiteSpace:y,stableSort:le}})),zu=a(((e,t)=>{function n(e,t){return s(e)||o(e,t)||i(e,t)||r()}function r(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(e,t){if(e){if(typeof e==`string`)return a(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function s(e){if(Array.isArray(e))return e}function c(e){"@babel/helpers - typeof";return c=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},c(e)}function l(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function d(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function f(e){var t=p(e,`string`);return c(t)==`symbol`?t:t+``}function p(e,t){if(c(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(c(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}t.exports=function(){function e(){l(this,e)}return d(e,null,[{key:`createSchema`,value:function(t){return{validate:t,optional:function(){return e.createSchema(function(e){return e===void 0?{success:!0,value:e}:t(e)})},nullable:function(){return e.createSchema(function(e){return e==null?{success:!0,value:e}:t(e)})}}}},{key:`string`,value:function(){return e.createSchema(function(e){return typeof e==`string`?{success:!0,value:e}:{success:!1,error:`Expected string, received ${c(e)}`}})}},{key:`date`,value:function(){return e.createSchema(function(e){return e instanceof Date?{success:!0,value:e}:{success:!1,error:`Expected date, received ${c(e)}`}})}},{key:`boolean`,value:function(){return e.createSchema(function(e){return typeof e==`boolean`?{success:!0,value:e}:{success:!1,error:`Expected boolean, received ${c(e)}`}})}},{key:`number`,value:function(){return e.createSchema(function(e){return typeof e==`number`?{success:!0,value:e}:{success:!1,error:`Expected number, received ${c(e)}`}})}},{key:`function`,value:function(){return e.createSchema(function(e){return typeof e==`function`?{success:!0,value:e}:{success:!1,error:`Expected function, received ${c(e)}`}})}},{key:`array`,value:function(t){return e.createSchema(function(e){if(!Array.isArray(e))return{success:!1,error:`Expected array, received ${c(e)}`};for(var n=0;n<e.length;n++){var r=t.validate(e[n]);if(!r.success)return{success:!1,error:`${r.error} at index ${n}`}}return{success:!0,value:e}})}},{key:`any`,value:function(){return e.createSchema(function(e){return{success:!0,value:e}})}},{key:`isRegex`,value:function(){return e.createSchema(function(e){return e instanceof RegExp?{success:!0,value:e}:{success:!1,error:`Expected RegExp, received ${c(e)}`}})}},{key:`union`,value:function(t){return e.createSchema(function(e){for(var n=0;n<t.length;n++){var r=t[n].validate(e);if(r.success)return r}return{success:!1,error:`Value ${e} does not match any schema in union`}})}},{key:`object`,value:function(t){var r=e.createSchema(function(e){if(e==null)return{success:!1,error:`Expected object, received ${e}`};if(c(e)!==`object`)return{success:!1,error:`Expected object, received ${c(e)}`};for(var r=0,i=Object.entries(t);r<i.length;r++){var a=n(i[r],2),o=a[0],s=a[1].validate(e[o]);if(!s.success)return{success:!1,error:`${s.error} at ${o}`}}return{success:!0,value:e}});return r.strict=function(){return e.createSchema(function(e){var n=r.validate(e);if(!n.success)return n;var i=Object.keys(e).filter(function(e){return!(e in t)});return i.length>0?{success:!1,error:`Unexpected properties: ${i.join(`, `)}`}:n})},r}},{key:`record`,value:function(t){return e.createSchema(function(e){if(e===null)return{success:!1,error:`Expected object, received null`};if(c(e)!==`object`)return{success:!1,error:`Expected object, received ${c(e)}`};for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(typeof i!=`string`)return{success:!1,error:`Expected string key, received ${c(i)} at ${i}`};var a=t.validate(e[i]);if(!a.success)return{success:!1,error:`${a.error} at key ${i}`}}return{success:!0,value:e}})}}])}()})),Bu=a(((e,t)=>{var n=Ru().str2xml,r=`_rels/.rels`;function i(e){for(var t=e.files[r],i=t?n(t.asText()):null,a=i?i.getElementsByTagName(`Relationship`):[],o={},s=0;s<a.length;s++){var c=a[s];o[c.getAttribute(`Target`)]=c.getAttribute(`Type`)}return o}t.exports={getRelsTypes:i}})),Vu=a(((e,t)=>{var n=Ru().str2xml,r=`[Content_Types].xml`;function i(e,t,n){for(var i={},a=0;a<e.length;a++){var o=e[a],s=o.getAttribute(`ContentType`),c=o.getAttribute(`PartName`).substr(1);i[c]=s}return n.file(/./).map(function(e){for(var n=e.name,a=0;a<t.length;a++){var o=t[a],s=o.getAttribute(`ContentType`),c=o.getAttribute(`Extension`);n.slice(n.length-c.length)===c&&!i[n]&&n!==r&&(i[n]=s)}i[n]||(i[n]=``)}),i}function a(e){var t=e.files[r],i=t?n(t.asText()):null;return{overrides:i?i.getElementsByTagName(`Override`):null,defaults:i?i.getElementsByTagName(`Default`):null,contentTypes:t,contentTypeXml:i}}t.exports={collectContentTypes:i,getContentTypes:a}})),Hu=a(((e,t)=>{var n=Lu().XTInternalError;function r(){}function i(e){return e}t.exports=function(e){var t={on:r,set:r,getFileType:r,optionsTransformer:i,preparse:i,matchers:function(){return[]},parse:r,getTraits:r,postparse:i,errorsTransformer:i,preResolve:r,resolve:r,getRenderedMap:i,render:r,nullGetter:r,postrender:i};if(Object.keys(t).every(function(t){return!e[t]})){var a=new n(`This module cannot be wrapped, because it doesn't define any of the necessary functions`);throw a.properties={id:`module_cannot_be_wrapped`,explanation:`This module cannot be wrapped, because it doesn't define any of the necessary functions`},a}for(var o in t)e[o]||(e[o]=t[o]);return e}})),Uu=a(((e,t)=>{function n(e){"@babel/helpers - typeof";return n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},n(e)}function r(e){return o(e)||a(e)||l(e)||i()}function i(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function o(e){if(Array.isArray(e))return u(e)}function s(e,t){return f(e)||d(e,t)||l(e,t)||c()}function c(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l(e,t){if(e){if(typeof e==`string`)return u(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function f(e){if(Array.isArray(e))return e}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?p(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return(t=g(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e){var t=_(e,`string`);return n(t)==`symbol`?t:t+``}function _(e,t){if(n(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||`default`);if(n(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var v=Ru(),y=v.getRightOrNull,b=v.getRight,x=v.getLeft,S=v.getLeftOrNull,C=v.chunkBy,w=v.isTagStart,T=v.isTagEnd,E=v.isContent,D=v.last,O=v.first,k=Lu(),A=k.XTTemplateError,j=k.throwExpandNotFound,M=k.getLoopPositionProducesInvalidXMLError;function N(e,t){return e.length===0?!1:D(e).substr(1).indexOf(t)===0}function P(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],i=r.position,a=r.value,o=r.tag;o&&(i===`end`?N(t,o)?t.pop():t.push(a):i===`start`&&t.push(a))}return t}function F(e,t){for(var n=0;n<t.length;n++)if(t[n].indexOf(`<${e}`)===0)return!0;return!1}function I(e,t,n){for(var r=P(e.slice(t[0].offset,t[1].offset)),i=function(){var i=n[o],a=i.contains,s=i.expand,c=i.onlyTextInTag;if(F(a,r)){if(c){var l=S(e,a,t[0].offset),u=y(e,a,t[1].offset);if(l===null||u===null)return 0;var d=C(e.slice(l,u),function(e){return w(a,e)?`start`:T(a,e)?`end`:null}),f=O(d),p=D(d),m=f.filter(E),h=p.filter(E);if(m.length!==1||h.length!==1)return 0}for(var g=ee(r),_=0,v=0;v<g.length;v++){var b=g[v],x=b.tag,k=b.position;x===s&&(k===`start`&&_++,k===`end`&&_--)}return _===0?{v:{value:s}}:{v:{error:M({tag:O(t).part.value,offset:[O(t).part.offset,D(t).part.offset]})}}}},a,o=0;o<n.length;o++)if(a=i(),a!==0&&a)return a.v;return R(r)?{}:{error:M({tag:O(t).part.value,offset:[O(t).part.offset,D(t).part.offset]})}}function ee(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],i=L(r),a=/^\s*<\//.test(r)?`end`:`start`;t.push({tag:i,position:a})}return t}function L(e){return e.replace(/^\s*<\/?([a-zA-Z:]+).*/,`$1`)}function R(e){if(e.length%2==1)return!1;for(var t=0,n=e.length/2;t<n;t++){var r=e[t],i=e[e.length-t-1];if(L(r)!==L(i))return!1}return!0}function z(e,t,n,r){var i=e.expandTo||r.expandTo;if(i){var a,o;try{o=x(n,i,t),a=b(n,i,t)}catch(a){var s=m({part:e,rootError:a,postparsed:n,expandTo:i,index:t},r.error);if(r.onError&&r.onError(s)===`ignore`)return;j(s)}return[o,a]}}function B(e,t,n,r){var i=s(e,2),a=i[0],o=i[1],c=n.indexOf(t),l=n.slice(a,c),u=n.slice(c+1,o+1),d=r.getInner({postparse:r.postparse,index:c,part:t,leftParts:l,rightParts:u,left:a,right:o,postparsed:n});return d.length||(d.expanded=[l,u],d=[d]),{left:a,right:o,inner:d}}function V(e,t){var n=[];e.errors&&(n=e.errors,e=e.postparsed);for(var i=[],a=0,o=e.length;a<o;a++){var c=e[a];if(c.type===`placeholder`&&c.module===t.moduleName&&!c.subparsed&&!c.expanded)try{var l=z(c,a,e,t);if(!l)continue;var u=s(l,2),d=u[0],f=u[1];i.push({left:d,right:f,part:c,i:a,leftPart:e[d],rightPart:e[f]})}catch(e){n.push(e)}}i.sort(function(e,t){return e.left===t.left?t.part.lIndex<e.part.lIndex?1:-1:t.left<e.left?1:-1});for(var p=-1,h=0,g=0,_=i.length;g<_;g++){var v,y=i[g];if(p=Math.max(p,g>0?i[g-1].right:0),!(y.left<p)){var b=void 0;try{b=B([y.left+h,y.right+h],y.part,e,t)}catch(r){if(t.onError&&t.onError(m({part:y.part,rootError:r,postparsed:e,expandOne:B},t.errors))===`ignore`)continue;if(r instanceof A)n.push(r);else throw r}b&&(h+=b.inner.length-(b.right+1-b.left),(v=e).splice.apply(v,[b.left,b.right+1-b.left].concat(r(b.inner))))}}return{postparsed:e,errors:n}}t.exports={expandToOne:V,getExpandToDefault:I}})),Wu=a(((e,t)=>{var n=`application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml`,r=`application/vnd.ms-word.document.macroEnabled.main+xml`,i=`application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml`,a=`application/vnd.ms-word.template.macroEnabledTemplate.main+xml`,o=`application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml`,s=`application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml`,c=`application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml`,l=`application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml`,u=`application/vnd.openxmlformats-officedocument.presentationml.slide+xml`,d=`application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml`,f=`application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml`,p=`application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml`,m=`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml`,h=`application/vnd.ms-excel.sheet.macroEnabled.main+xml`,g=`application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml`,_=[n,r,i,a];t.exports={main:_,docx:[o].concat(_,[l,s,c]),pptx:[u,d,f,p],xlsx:[m,h,g]}})),Gu=a(((e,t)=>{t.exports={settingsContentType:`application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml`,coreContentType:`application/vnd.openxmlformats-package.core-properties+xml`,appContentType:`application/vnd.openxmlformats-officedocument.extended-properties+xml`,customContentType:`application/vnd.openxmlformats-officedocument.custom-properties+xml`,diagramDataContentType:`application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml`,diagramDrawingContentType:`application/vnd.ms-office.drawingml.diagramDrawing+xml`}})),Ku=a(((e,t)=>{function n(e){"@babel/helpers - typeof";return n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},n(e)}function r(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function o(e){var t=s(e,`string`);return n(t)==`symbol`?t:t+``}function s(e,t){if(n(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||`default`);if(n(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var c=Ru().pushArray,l=Hu(),u=Wu(),d=Gu(),f=[d.settingsContentType,d.coreContentType,d.appContentType,d.customContentType,d.diagramDataContentType,d.diagramDrawingContentType],p=function(){function e(){r(this,e),this.name=`Common`}return a(e,[{key:`getFileType`,value:function(e){var t=e.doc,n=t.invertedContentTypes;if(n){for(var r=0;r<f.length;r++){var i=f[r];n[i]&&c(t.targets,n[i])}for(var a=[`docx`,`pptx`,`xlsx`],o,s=0;s<a.length;s++)for(var l=a[s],d=u[l],p=0;p<d.length;p++){var m=d[p];if(n[m])for(var h=0,g=n[m];h<g.length;h++){var _=g[h];t.relsTypes[_]&&[`http://purl.oclc.org/ooxml/officeDocument/relationships/officeDocument`,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument`].indexOf(t.relsTypes[_])===-1||(o=l,(u.main.indexOf(m)!==-1||m===u.pptx[0])&&(t.textTarget||=_),o!==`xlsx`&&t.targets.push(_))}}return o}}}])}();t.exports=function(){return l(new p)}})),qu=a(((e,t)=>{function n(e){"@babel/helpers - typeof";return n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},n(e)}function r(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function o(e){var t=s(e,`string`);return n(t)==`symbol`?t:t+``}function s(e,t){if(n(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||`default`);if(n(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var c=Lu().getScopeParserExecutionError,l=Iu().last,u=Ru().concatArrays;function d(e,t){for(var n=e.length>>>0,r,i=0;i<n;i++)if(r=e[i],t.call(this,r,i,e))return r}function f(e,t,n){var r=this,i=this.scopeList[n],a=this.scopeList[this.scopeList.length-1];if(this.root.finishedResolving){for(var o=this.resolved,s=function(){var e=r.scopeLindex[l];o=d(o,function(t){return t.lIndex===e}),o=o.value[r.scopePathItem[l]]},l=this.resolveOffset,u=this.scopePath.length;l<u;l++)s();return d(o,function(e){return t.part.lIndex===e.lIndex}).value}var p,m=!this.cachedParsers||!t.part?this.parser(e,{tag:t.part,scopePath:this.scopePath}):this.cachedParsers[t.part.lIndex]?this.cachedParsers[t.part.lIndex]:this.cachedParsers[t.part.lIndex]=this.parser(e,{tag:t.part,scopePath:this.scopePath});try{p=m.get(i,this.getContext(t,n))}catch(n){throw c({tag:e,scope:i,error:n,offset:t.part.offset})}if(p==null&&n>0)return f.call(this,e,t,n-1);if(typeof p==`function`)try{p=p(a,this)}catch(n){throw c({tag:e,scope:i,error:n,offset:t.part.offset})}return p}function p(e,t,n){var r=this,i=this.scopeList[n],a=this.scopeList[this.scopeList.length-1],o=!this.cachedParsers||!t.part?this.parser(e,{tag:t.part,scopePath:this.scopePath}):this.cachedParsers[t.part.lIndex]?this.cachedParsers[t.part.lIndex]:this.cachedParsers[t.part.lIndex]=this.parser(e,{tag:t.part,scopePath:this.scopePath});return Promise.resolve().then(function(){return o.get(i,r.getContext(t,n))}).catch(function(n){throw c({tag:e,scope:i,error:n,offset:t.part.offset})}).then(function(i){return i==null&&n>0?p.call(r,e,t,n-1):i}).then(function(n){if(typeof n==`function`)try{n=n(a,r)}catch(n){throw c({tag:e,scope:i,error:n,offset:t.part.offset})}return n})}var m=function(){function e(t){r(this,e),this.root=t.root||this,this.resolveOffset=t.resolveOffset||0,this.scopePath=t.scopePath,this.scopePathItem=t.scopePathItem,this.scopePathLength=t.scopePathLength,this.scopeList=t.scopeList,this.scopeType=``,this.scopeTypes=t.scopeTypes,this.scopeLindex=t.scopeLindex,this.parser=t.parser,this.resolved=t.resolved,this.cachedParsers=t.cachedParsers}return a(e,[{key:`loopOver`,value:function(e,t,n,r){return this.loopOverValue(this.getValue(e,r),t,n)}},{key:`functorIfInverted`,value:function(e,t,n,r,i){return e&&t(n,r,i),e}},{key:`isValueFalsy`,value:function(e,t){return e==null||!e||t===`[object Array]`&&e.length===0}},{key:`loopOverValue`,value:function(e,t,n){this.root.finishedResolving&&(n=!1);var r=Object.prototype.toString.call(e);if(this.isValueFalsy(e,r))return this.scopeType=!1,this.functorIfInverted(n,t,l(this.scopeList),0,1);if(r===`[object Array]`){this.scopeType=`array`;for(var i=0;i<e.length;i++)this.functorIfInverted(!n,t,e[i],i,e.length);return!0}return r===`[object Object]`?(this.scopeType=`object`,this.functorIfInverted(!n,t,e,0,1)):this.functorIfInverted(!n,t,l(this.scopeList),0,1)}},{key:`getValue`,value:function(e,t){return f.call(this,e,t,this.scopeList.length-1)}},{key:`getValueAsync`,value:function(e,t){return p.call(this,e,t,this.scopeList.length-1)}},{key:`getContext`,value:function(e,t){return{num:t,meta:e,scopeList:this.scopeList,resolved:this.resolved,scopePath:this.scopePath,scopeTypes:this.scopeTypes,scopePathItem:this.scopePathItem,scopePathLength:this.scopePathLength}}},{key:`createSubScopeManager`,value:function(t,n,r,i,a){return new e({root:this.root,resolveOffset:this.resolveOffset,resolved:this.resolved,parser:this.parser,cachedParsers:this.cachedParsers,scopeTypes:u([this.scopeTypes,[this.scopeType]]),scopeList:u([this.scopeList,[t]]),scopePath:u([this.scopePath,[n]]),scopePathItem:u([this.scopePathItem,[r]]),scopePathLength:u([this.scopePathLength,[a]]),scopeLindex:u([this.scopeLindex,[i.lIndex]])})}}])}();t.exports=function(e){return e.scopePath=[],e.scopePathItem=[],e.scopePathLength=[],e.scopeTypes=[],e.scopeLindex=[],e.scopeList=[e.tags],new m(e)}})),Ju=a(((e,t)=>{function n(e){"@babel/helpers - typeof";return n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},n(e)}function r(e,t){return c(e)||s(e,t)||a(e,t)||i()}function i(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(e,t){if(e){if(typeof e==`string`)return o(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function c(e){if(Array.isArray(e))return e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?l(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){var t=p(e,`string`);return n(t)==`symbol`?t:t+``}function p(e,t){if(n(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||`default`);if(n(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var m=Lu(),h=m.getUnclosedTagException,g=m.getUnopenedTagException,_=m.getDuplicateOpenTagException,v=m.getDuplicateCloseTagException,y=m.throwMalformedXml,b=m.throwXmlInvalid,x=m.XTTemplateError,S=Ru(),C=S.isTextStart,w=S.isTextEnd,T=S.wordToUtf8,E=S.pushArray,D=0,O=1,k=2,A=3;function j(e,t){return e[0]<=t.offset&&t.offset<e[1]}function M(e,t){return C(e)?(t&&y(),!0):w(e)?(t||y(),!1):t}function N(e){var t=``,n=1,r=e.indexOf(` `);return e[e.length-2]===`/`?(t=`selfclosing`,r===-1&&(r=e.length-2)):e[1]===`/`?(n=2,t=`end`,r===-1&&(r=e.length-1)):(t=`start`,r===-1&&(r=e.length-1)),{tag:e.slice(n,r),position:t}}function P(e,t,n){for(var r=0,i=e.length,a={},o=0;o<t.length;o++){var s=t[o];a[s]=!0}for(var c=0;c<n.length;c++){var l=n[c];a[l]=!1}for(var u=[];r<i&&(r=e.indexOf(`<`,r),r!==-1);){var d=r,f=e.indexOf(`<`,r+1);r=e.indexOf(`>`,r),(r===-1||f!==-1&&r>f)&&b(e,d);var p=e.slice(d,r+1),m=N(p),h=m.tag,g=m.position,_=a[h];_!=null&&u.push({type:`tag`,position:g,text:_,offset:d,value:p,tag:h})}return u}function F(e,t,n){var r=[],i=!1,a={offset:0},o,s=e.reduce(function(e,s){var c=s.position,l=s.offset,d=a.offset,f=a.length;if(o=t.substr(d,l-d),i&&c===`start`){if(d+f===l&&(o=t.substr(d,l-d+f+4),!n.allowUnclosedTag))return r.push(_({xtag:o,offset:d})),a=s,e.push(u(u({},s),{},{error:!0})),e;n.allowUnclosedTag||r.push(h({xtag:T(o),offset:d})),e.pop()}return!i&&c===`end`?n.allowUnopenedTag?e:d+f===l?(o=t.substr(d-4,l-d+f+4),r.push(v({xtag:o,offset:d})),a=s,e.push(u(u({},s),{},{error:!0})),e):(r.push(g({xtag:o,offset:l})),a=s,e.push(u(u({},s),{},{error:!0})),e):(i=c===`start`,a=s,e.push(s),e)},[]);if(i){var c=a.offset;o=t.substr(c,t.length-c),n.allowUnclosedTag||r.push(h({xtag:T(o),offset:c})),s.pop()}return{delimiterWithErrors:s,errors:r}}function I(e,t){return e===-1&&t===-1?D:e===t?O:e===-1||t===-1?t<e?k:A:e<t?k:A}function ee(e){var t=e.split(` `);if(t.length!==2){var n=new x(`New Delimiters cannot be parsed`);throw n.properties={id:`change_delimiters_invalid`,explanation:`Cannot parser delimiters`},n}var i=r(t,2),a=i[0],o=i[1];if(a.length===0||o.length===0){var s=new x(`New Delimiters cannot be parsed`);throw s.properties={id:`change_delimiters_invalid`,explanation:`Cannot parser delimiters`},s}return[a,o]}function L(e,t,n){var i=[],a=t.start,o=t.end,s=-1,c=!1;if(a==null&&o==null)return[];for(;;){var l=e.indexOf(a,s+1),u=e.indexOf(o,s+1),d=null,f=void 0,p=I(l,u);switch(p===O&&(p=c?A:k),p){case D:return i;case A:c=!1,s=u,d=`end`,f=o.length;break;case k:c=!0,s=l,d=`start`,f=a.length;break}if(n.changeDelimiterPrefix&&p===k&&e[s+a.length]===n.changeDelimiterPrefix){i.push({offset:l,position:`start`,length:a.length,changedelimiter:!0});var m=e.indexOf(n.changeDelimiterPrefix,s+a.length+1),h=e.indexOf(o,m+1);i.push({offset:h,position:`end`,length:o.length,changedelimiter:!0});var g=r(ee(e.substr(s+a.length+1,m-s-a.length-1)),2);a=g[0],o=g[1],s=h;continue}i.push({offset:s,position:d,length:f})}}function R(e,t,n){for(var r=``,i=0;i<e.length;i++){var a=e[i];r+=a.value}for(var o=L(r,t,n),s=0,c=[],l=0;l<e.length;l++){var u=e[l];s+=u.value.length,c.push({offset:s-u.value.length,lIndex:u.lIndex})}for(var d=F(o,r,n),f=d.delimiterWithErrors,p=d.errors,m=0,h=0,g=[],_=0;_<c.length;_++){for(var v=c[_],y=e[_],b=v.offset,x=[b,b+y.value.length],S=y.value,C=[];h<f.length&&j(x,f[h]);)C.push(f[h]),h++;var w=[],T=0;m>0&&(T=m,m=0);for(var E=0;E<C.length;E++){var D=C[E],O=S.substr(T,D.offset-b-T);if(D.changedelimiter){D.position===`start`?O.length>0&&w.push({type:`content`,value:O}):T=D.offset-b+D.length;continue}O.length>0&&(w.push({type:`content`,value:O}),T+=O.length);var k={type:`delimiter`,position:D.position,offset:T+b};w.push(k),T=D.offset-b+D.length}m=T-S.length;var A=S.substr(T);A.length>0&&w.push({type:`content`,value:A}),g.push(w)}return{parsed:g,errors:p}}function z(e){return e.type===`content`&&e.position===`insidetag`}function B(e){return e.filter(z)}function V(e,t){for(var n=!1,r=0;r<e.length;r++){var i=e[r];n=M(i,n),i.type===`content`&&(i.position=n?`insidetag`:`outsidetag`),t!==`text`&&z(i)&&(i.value=i.value.replace(/>/g,`&gt;`))}}t.exports={parseDelimiters:R,parse:function(e,t,n,r){V(e,r);for(var i=R(B(e),t,n),a=i.parsed,o=i.errors,s=[],c=0,l=0,u=0;u<e.length;u++){var d=e[u];if(z(d)){for(var f=0,p=a[c];f<p.length;f++){var m=p[f];m.type===`content`&&(m.position=`insidetag`),m.lIndex=l++}E(s,a[c]),c++}else d.lIndex=l++,s.push(d)}return{errors:o,lexed:s}},xmlparse:function(e,t){for(var n=P(e,t.text,t.other),r=0,i=[],a=0;a<n.length;a++){var o=n[a];e.length>r&&o.offset-r>0&&i.push({type:`content`,value:e.substr(r,o.offset-r)}),r=o.offset+o.value.length,delete o.offset,i.push(o)}return e.length>r&&i.push({type:`content`,value:e.substr(r)}),i}}})),Yu=a(((e,t)=>{function n(e){return o(e)||a(e)||i(e)||r()}function r(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(e,t){if(e){if(typeof e==`string`)return s(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function a(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function o(e){if(Array.isArray(e))return s(e)}function s(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e){return e.type===`placeholder`}function l(e){var t={},r=[{items:e.filter(c),parents:[],path:[]}];function i(e,t,i){i.length&&r.push({items:i,parents:[].concat(n(t.parents),[e]),path:e.dataBound!==!1&&!e.attrParsed&&e.value&&!e.attrParsed?[].concat(n(t.path),[e.value]):n(t.path)})}function a(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.length,r=e,i=0;i<n;i++)r=r[t[i]];return r}function o(e,t){for(var n=t.length,r=0;r<t.length;r++){var i=t[r];(typeof i.lIndex==`number`?i.lIndex:parseInt(i.lIndex.split(`-`)[0],10))>e.lIndex&&n--}return n}for(;r.length>0;)for(var s=r.pop(),l=a(t,s.path),u=0,d=s.items;u<d.length;u++){var f,p,m=d[u];if(m.attrParsed){for(var h in m.attrParsed)i(m,s,m.attrParsed[h].filter(c));continue}if(m.subparsed){if(m.dataBound!==!1){var g,_;(g=l)[_=m.value]||(g[_]={})}i(m,s,m.subparsed.filter(c));continue}if(m.cellParsed){for(var v=0,y=m.cellPostParsed;v<y.length;v++){var b=y[v];if(b.type===`placeholder`){if(b.module===`pro-xml-templating/xls-module-loop`)continue;if(b.subparsed){var x,S;(x=l)[S=b.value]||(x[S]={}),i(b,s,b.subparsed.filter(c))}else{var C,w,T=o(m,s.parents);l=a(t,s.path,T),(C=l)[w=b.value]||(C[w]={})}}}continue}m.dataBound!==!1&&((f=l)[p=m.value]||(f[p]={}))}return t}t.exports={getTags:l,isPlaceholder:c}})),Xu=a(((e,t)=>{var n=Ru().pushArray;function r(e,t){return t instanceof Error?n(Object.getOwnPropertyNames(t),[`stack`]).reduce(function(e,n){return e[n]=t[n],n===`stack`&&(e[n]=t[n].toString()),e},{}):t}function i(e,t){if(console.log(JSON.stringify({error:e},r,t===`json`?2:null)),e.properties&&e.properties.errors instanceof Array){var n=e.properties.errors.map(function(e){return e.properties.explanation}).join(`
`);console.log(`errorMessages`,n)}}t.exports=i})),Zu=a(((e,t)=>{var n=Ru().pregMatchAll;t.exports=function(e,t){var r={content:e},i=t.join(`|`);return r.matches=n(RegExp(`(?:(<(?:${i})[^>]*>)([^<>]*)</(?:${i})>)|(<(?:${i})[^>]*/>)`,`g`),r.content),r}})),Qu=a(((e,t)=>{function n(e){"@babel/helpers - typeof";return n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},n(e)}var r=RegExp(`\xA0`,`g`);function i(e){return e.replace(r,` `)}function a(e,t){var r=n(e);if(r===`string`)return i(t.substr(0,e.length))===e;if(e instanceof RegExp)return e.test(i(t));if(r===`function`)return!!e(t)}function o(e,t){var r=n(e);if(r===`string`)return i(t).substr(e.length);if(e instanceof RegExp)return i(t).match(e)[1];if(r===`function`)return e(t)}function s(e,t){var r=n(e);if(r===`string`)return[t,i(t).substr(e.length)];if(e instanceof RegExp)return i(t).match(e);if(r===`function`)return[t,e(t)]}t.exports={match:a,getValue:o,getValues:s}})),$u=a(((e,t)=>{function n(e){"@babel/helpers - typeof";return n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},n(e)}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?r(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=s(e,`string`);return n(t)==`symbol`?t:t+``}function s(e,t){if(n(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||`default`);if(n(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function c(e,t){return p(e)||f(e,t)||u(e,t)||l()}function l(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u(e,t){if(e){if(typeof e==`string`)return d(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function p(e){if(Array.isArray(e))return e}var m=Ru(),h=m.wordToUtf8,g=m.pushArray,_=m.isParagraphStart,v=m.isBreakTag,y=Qu(),b=y.match,x=y.getValue,S=y.getValues;function C(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r];if(i.matchers){var a=i.matchers(t);if(!(a instanceof Array))throw Error(`module matcher returns a non array`);g(n,a)}}return n}function w(e,t,n){for(var r=[],a=0;a<e.length;a++){var o=e[a],s=c(o,2),l=s[0],u=s[1],d=o[2]||{};if(n.match(l,t)){var f=n.getValues(l,t);if(typeof d==`function`&&(d=d(f)),!d.value){var p=c(f,2);d.value=p[1]}r.push(i({type:`placeholder`,prefix:l,module:u,onMatch:d.onMatch,priority:d.priority},d))}}return r}function T(e,t){var n=t.modules,r=t.startOffset,i=t.lIndex,a;t.offset=r,t.match=b,t.getValue=x,t.getValues=S;var o=w(C(n,t),e,t);if(o.length>0){for(var s=null,c=0;c<o.length;c++){var l=o[c];l.priority||=-l.value.length,(!s||l.priority>s.priority)&&(s=l)}return s.offset=r,delete s.priority,s.endLindex=i,s.lIndex=i,s.raw=e,s.onMatch&&s.onMatch(s),delete s.onMatch,delete s.prefix,s}for(var u=0;u<n.length;u++)if(a=n[u].parse(e,t),a)return a.offset=r,a.endLindex=i,a.lIndex=i,a.raw=e,a;return{type:`placeholder`,value:e,offset:r,endLindex:i,lIndex:i}}t.exports={preparse:function(e,t,n){function r(e,n){for(var r=0;r<t.length;r++)e=t[r].preparse(e,n)||e;return e}return r(e,n)},parse:function(e,t,n){var r=!1,a=``,o,s=[],c=n.fileTypeConfig.droppedTagsInsidePlaceholder||[];return e.reduce(function(e,l){return l.type===`delimiter`?(r=l.position===`start`,l.position===`end`&&(n.parse=function(e){return T(e,i(i(i({},n),l),{},{startOffset:o,modules:t}))},e.push(n.parse(h(a))),g(e,s),s=[]),l.position===`start`&&(s=[],o=l.offset),a=``,e):r?l.type!==`content`||l.position!==`insidetag`?(n.syntax.preserveNewlinesInTags&&(v(l)||_(l))&&(a+=`
`),c.indexOf(l.tag)===-1&&s.push(l),e):(a+=l.value,e):(e.push(l),e)},[])},postparse:function(e,t,n){function r(e,n,r){for(var i=[],a=0;a<t.length;a++){var o=t[a];i.push(o.getTraits(e,n,r))}return i}var a=[];function o(e,n){for(var s=e,c=0;c<t.length;c++){var l=t[c].postparse(s,i(i({},n),{},{postparse:function(e,t){return o(e,i(i({},n),t))},getTraits:r}));if(l!=null){if(l.errors){g(a,l.errors),s=l.postparsed;continue}s=l}}return s}return{postparsed:o(e,n),errors:a}}}})),ed=a(((e,t)=>{function n(e,t){if(e.lIndex==null)return null;var n=t.scopeManager.scopePathItem;return e.parentPart&&(n=n.slice(0,n.length-1)),t.filePath+`@`+e.lIndex.toString()+`-`+n.join(`-`)}t.exports=n})),td=a(((e,t)=>{var n=Lu(),r=n.throwUnimplementedTagType,i=n.XTScopeParserError,a=Ru().pushArray,o=ed();function s(e,t){for(var n=0,r=t.modules;n<r.length;n++){var i=r[n].render(e,t);if(i)return i}return!1}function c(e){var t=e.baseNullGetter,n=e.compiled,c=e.scopeManager;e.nullGetter=function(e,n){return t(e,n||c)};for(var l=[],u=[],d=0,f=n.length;d<f;d++){var p=n[d];e.index=d,e.resolvedId=o(p,e);var m=void 0;try{m=s(p,e)}catch(e){if(e instanceof i){l.push(e),u.push(p);continue}throw e}if(m){m.errors&&a(l,m.errors),u.push(m);continue}if(p.type===`content`||p.type===`tag`){u.push(p);continue}r(p,d)}for(var h=[],g=0;g<u.length;g++){var _=u[g].value;_ instanceof Array?a(h,_):_&&h.push(_)}return{errors:l,parts:h}}t.exports=c})),nd=a(((e,t)=>{function n(e){var t,n,r,i,a=0,o=e.length;for(r=0;r<o;r++)t=e.charCodeAt(r),(t&64512)==55296&&r+1<o&&(n=e.charCodeAt(r+1),(n&64512)==56320&&(t=65536+(t-55296<<10)+(n-56320),r++)),a+=t<128?1:t<2048?2:t<65536?3:4;var s=new Uint8Array(a);for(i=0,r=0;i<a;r++)t=e.charCodeAt(r),(t&64512)==55296&&r+1<o&&(n=e.charCodeAt(r+1),(n&64512)==56320&&(t=65536+(t-55296<<10)+(n-56320),r++)),t<128?s[i++]=t:t<2048?(s[i++]=192|t>>>6,s[i++]=128|t&63):t<65536?(s[i++]=224|t>>>12,s[i++]=128|t>>>6&63,s[i++]=128|t&63):(s[i++]=240|t>>>18,s[i++]=128|t>>>12&63,s[i++]=128|t>>>6&63,s[i++]=128|t&63);return s}function r(e,t){for(var r=0,i=t.modules;r<i.length;r++)e=i[r].postrender(e,t);for(var a=0,o=t.joinUncorrupt(e,t),s=``,c=0,l=65536,u=[],d=0,f=o.length;d<f;d++){var p=o[d];if(p.length+c>l){var m=n(s);a+=m.length,u.push(m),s=``}s+=p,c+=p.length,delete o[d]}var h=n(s);a+=h.length,u.push(h);for(var g=new Uint8Array(a),_=0,v=0;v<u.length;v++){for(var y=u[v],b=0;b<y.length;++b)g[b+_]=y[b];_+=y.length}return g}t.exports=r})),rd=a(((e,t)=>{function n(e){"@babel/helpers - typeof";return n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},n(e)}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?r(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=s(e,`string`);return n(t)==`symbol`?t:t+``}function s(e,t){if(n(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||`default`);if(n(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var c=Ru().pushArray,l=ed();function u(e,t){for(var n=0,r=t.modules;n<r.length;n++){var i=r[n].resolve(e,t);if(i)return i}return!1}function d(e,t,n,r){var a=u(e,i(i({},r),{},{resolvedId:l(e,r)}));if(a)return a.then(function(n){t.push({tag:e.value,lIndex:e.lIndex,value:n})}).catch(function(e){e instanceof Array?c(n,e):n.push(e)});if(e.type===`placeholder`)return r.scopeManager.getValueAsync(e.value,{part:e}).then(function(t){return t??r.nullGetter(e)}).then(function(n){t.push({tag:e.value,lIndex:e.lIndex,value:n})}).catch(function(e){e instanceof Array?c(n,e):n.push(e)})}function f(e){var t=[],n=[],r=e.baseNullGetter,i=e.scopeManager;e.nullGetter=function(e,t){return r(e,t||i)},e.resolved=t;var a=p(e,n,t);return a?a.then(function(){return m(e,n,t)}):m(e,n,t)}function p(e,t,n){for(var r=null,i=function(){var i=o[a];if([`content`,`tag`].indexOf(i.type)!==-1)return 1;i.resolveFirst&&(r??=Promise.resolve(null),r=r.then(function(){return d(i,n,t,e)}))},a=0,o=e.compiled;a<o.length;a++)if(i())continue;return r}function m(e,t,n){for(var r=[],i=0,a=e.compiled;i<a.length;i++){var o=a[i];[`content`,`tag`].indexOf(o.type)===-1&&(o.resolveFirst||r.push(d(o,n,t,e)))}return Promise.all(r).then(function(){return{errors:t,resolved:n}})}t.exports=f})),id=a(((e,t)=>{var n=Ru(),r=n.startsWith,i=n.endsWith,a=n.isStarting,o=n.isEnding,s=n.isWhiteSpace,c=Wu();function l(e){for(var t=``,n=0,a=e.length;n<a;n++){var o=e[n];s(o)||r(o,`<w:bookmarkEnd`)||(i(t,`</w:tbl>`)&&!r(o,`<w:p`)&&!r(o,`<w:tbl`)&&!r(o,`<w:sectPr`)&&!r(o,`</w:ftr>`)&&!r(o,`</w:hdr>`)&&(o=`<w:p/>${o}`),t=o,e[n]=o)}return e}function u(e,t){var n=t.fileTypeConfig.tagShouldContain||[],r=``,i=-1;c.docx.indexOf(t.contentType)!==-1&&(e=l(e));for(var s=-1,u=0,d=n.length;u<d;u++)for(var f=n[u],p=f.tag,m=f.shouldContain,h=f.value,g=f.drop,_=f.dropParent,v=0,y=e.length;v<y;v++){var b=e[v];if(i===u){if(o(b,p))if(i=-1,_){for(var x=-1,S=s;S>0;S--)if(a(e[S],_)){x=S;break}for(var C=x;C<=e.length;C++){if(o(e[C],_)){e[C]=``;break}e[C]=``}}else{for(var w=s;w<=v;w++)e[w]=``;g||(e[v]=r+h+b)}r+=b;for(var T=0,E=m.length;T<E;T++){var D=m[T];if(a(b,D)){i=-1;break}}}i===-1&&a(b,p)&&b.substr(1).indexOf(`<`)===-1&&(b[b.length-2]===`/`?e[v]=``:(s=v,i=u,r=b))}return e}t.exports=u})),ad=a(((e,t)=>{function n(e){"@babel/helpers - typeof";return n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},n(e)}function r(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function o(e){var t=s(e,`string`);return n(t)==`symbol`?t:t+``}function s(e,t){if(n(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||`default`);if(n(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var c=Ru(),l=c.pushArray,u=c.wordToUtf8,d=c.convertSpaces,f=Zu(),p=Ju(),m=$u(),h=td(),g=nd(),_=rd(),v=id(),y=Function.prototype.bind,b=Function.prototype.call,x=b.bind(b,y);function S(e,t){for(var n=f(e,t),r=[],i=0,a=n.matches;i<a.length;i++){var o=a[i];r.push(o.array[2])}return u(d(r.join(``)))}t.exports=function(){function e(t,n){for(var i in r(this,e),this.cachedParsers={},this.content=t,n)this[i]=n[i];this.setModules({inspect:{filePath:n.filePath}})}return a(e,[{key:`resolveTags`,value:function(e){var t=this;this.tags=e;var n=this.getOptions(),r=this.filePath;n.scopeManager=this.scopeManager,n.resolve=_;for(var i=[],a=[],o=0,s=this.modules;o<s.length;o++){var c=s[o];a.push(Promise.resolve(c.preResolve(n)).catch(function(e){i.push(e)}))}return Promise.all(a).then(function(){if(i.length!==0)throw i;return _(n).then(function(e){for(var i=e.resolved,a=e.errors,o=0;o<a.length;o++){var s,c=a[o];c instanceof Error||(c=Error(c)),(s=c).properties||(s.properties={}),c.properties.file=r,a[o]=c}if(a.length!==0)throw a;return Promise.all(i).then(function(e){return n.scopeManager.root.finishedResolving=!0,n.scopeManager.resolved=e,t.setModules({inspect:{resolved:e,filePath:r}}),e})}).catch(function(e){throw t.errorChecker(e),e})})}},{key:`getFullText`,value:function(){return S(this.content,this.fileTypeConfig.tagsXmlTextArray)}},{key:`setModules`,value:function(e){for(var t=0,n=this.modules;t<n.length;t++)n[t].set(e)}},{key:`preparse`,value:function(){this.allErrors=[],this.xmllexed=p.xmlparse(this.content,{text:this.fileTypeConfig.tagsXmlTextArray,other:this.fileTypeConfig.tagsXmlLexedArray}),this.setModules({inspect:{filePath:this.filePath,xmllexed:this.xmllexed}});var e=p.parse(this.xmllexed,this.delimiters,this.syntax,this.fileType),t=e.lexed,n=e.errors;l(this.allErrors,n),this.lexed=t,this.setModules({inspect:{filePath:this.filePath,lexed:this.lexed}});var r=this.getOptions();this.lexed=m.preparse(this.lexed,this.modules,r)}},{key:`parse`,value:function(){var e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).noPostParse;this.setModules({inspect:{filePath:this.filePath}});var t=this.getOptions();return this.parsed=m.parse(this.lexed,this.modules,t),this.setModules({inspect:{filePath:this.filePath,parsed:this.parsed}}),e?this:this.postparse()}},{key:`postparse`,value:function(){var e=this.getOptions(),t=m.postparse(this.parsed,this.modules,e),n=t.postparsed,r=t.errors;return this.postparsed=n,this.setModules({inspect:{filePath:this.filePath,postparsed:this.postparsed}}),l(this.allErrors,r),this.errorChecker(this.allErrors),this}},{key:`errorChecker`,value:function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];r.properties||={},r.properties.file=this.filePath}for(var i=0,a=this.modules;i<a.length;i++)e=a[i].errorsTransformer(e)}},{key:`baseNullGetter`,value:function(e,t){for(var n=null,r=0,i=this.modules;r<i.length;r++){var a=i[r];n??=a.nullGetter(e,t,this)}return n??this.nullGetter(e,t)}},{key:`getOptions`,value:function(){return{compiled:this.postparsed,cachedParsers:this.cachedParsers,tags:this.tags,modules:this.modules,parser:this.parser,contentType:this.contentType,relsType:this.relsType,baseNullGetter:x(this.baseNullGetter,this),filePath:this.filePath,syntax:this.syntax,fileTypeConfig:this.fileTypeConfig,fileType:this.fileType,linebreaks:this.linebreaks,stripInvalidXMLChars:this.stripInvalidXMLChars}}},{key:`render`,value:function(e){this.filePath=e;var t=this.getOptions();t.resolved=this.scopeManager.resolved,t.scopeManager=this.scopeManager,t.render=h,t.joinUncorrupt=v;var n=h(t),r=n.errors,i=n.parts;return r.length>0?(this.allErrors=r,this.errorChecker(r),this):(this.content=g(i,t),this.setModules({inspect:{filePath:this.filePath,content:this.content}}),this)}}])}()})),od=a(((e,t)=>{function n(e){"@babel/helpers - typeof";return n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},n(e)}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?r(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){return d(e)||u(e,t)||c(e,t)||s()}function s(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(e,t){if(e){if(typeof e==`string`)return l(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function d(e){if(Array.isArray(e))return e}function f(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function m(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function h(e){var t=g(e,`string`);return n(t)==`symbol`?t:t+``}function g(e,t){if(n(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||`default`);if(n(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var _=Ru(),v=_.chunkBy,y=_.last,b=_.isParagraphStart,x=_.isModule,S=_.pushArray,C=_.isParagraphEnd,w=_.isContent,T=_.startsWith,E=_.isTagEnd,D=_.isTagStart,O=_.getSingleAttribute,k=_.setSingleAttribute,A=Wu(),j=Hu(),M=Ru().isWhiteSpace,N=`loop`;function P(e){for(var t=0;t<e.length;t++){var n=e[t];if(w(n))return!0}return!1}function F(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.type!==`content`)return n}return null}function I(e){var t=F(e.subparsed);return t!=null&&t.tag!==`w:t`}function ee(e){return e.hasPageBreak&&I(e)?`<w:p><w:r><w:br w:type="page"/></w:r></w:p>`:``}function L(e){return e.length&&b(e[0])&&C(y(e))}function R(e){return P(e)?0:e.length}function z(e){var t=e.parts.length-1;e.parts[t]===`</w:p>`?e.parts.splice(t,0,`<w:r><w:br w:type="page"/></w:r>`):e.parts.push(`<w:p><w:r><w:br w:type="page"/></w:r></w:p>`)}function B(e){e.parts.unshift(`<w:p><w:r><w:br w:type="page"/></w:r></w:p>`)}function V(e){for(var t=0;t<e.length;t++){var n=e[t];if(D(`w:type`,n)&&n.value.indexOf(`continuous`)!==-1)return!0}return!1}function H(e){for(var t=0;t<e.length;t++){var n=e[t];if(D(`w:type`,n)&&n.value.indexOf(`w:val="nextPage"`)!==-1)return!0}return!1}function U(e,t){for(var n=``,r=0;r<t.length;r++){var i=t[r].value;n+=i}e.unshift(`<w:p><w:pPr>${n}</w:pPr></w:p>`)}function W(e){for(var t=!1,n=!1,r=0;r<e.length;r++){var i=e[r];!t&&T(i,`<w:sectPr`)&&(n=!0),n&&(T(i,`<w:type`)&&(t=!0),!t&&T(i,`</w:sectPr`)&&(e.splice(r,0,`<w:type w:val="continuous"/>`),r++))}return e}function te(e){for(var t=0,n=0;n<e.length;n++)!T(e[n],`<w:headerReference`)&&!T(e[n],`<w:footerReference`)&&(e[t]=e[n],t++);return e.length=t,e}function ne(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.tag===`w:br`&&n.value.indexOf(`w:type="page"`)!==-1)return!0}return!1}function G(e){for(var t=0;t<e.length;t++)if(e[t].tag===`w:drawing`)return!0;return!1}function re(e){for(var t=[],n=null,r=0;r<e.length;r++){var i=e[r];D(`w:sectPr`,i)&&(n=[],t.push(n)),n!==null&&n.push(i),E(`w:sectPr`,i)&&(n=null)}return t}function ie(e){for(var t=!1,n=0,r=0;r<e.length;r++){var i=e[r];D(`w:sectPr`,i)&&(t=!0),t&&(i.tag===`w:headerReference`||i.tag===`w:footerReference`)&&(n++,t=!1),E(`w:sectPr`,i)&&(t=!1)}return n}function K(e){for(var t=[],n=!1,r=e.length-1;r>=0;r--){var i=e[r];if(E(`w:sectPr`,i)&&(n=!0),D(`w:sectPr`,i)&&(t.unshift(i.value),n=!1),n&&t.unshift(i.value),b(i)){if(t.length>0)return t.join(``);break}}return``}var q=function(){function e(){f(this,e),this.name=`LoopModule`,this.inXfrm=!1,this.totalSectPr=0,this.prefix={start:`#`,end:`/`,dash:/^-([^\s]+)\s(.+)/,inverted:`^`}}return m(e,[{key:`optionsTransformer`,value:function(e,t){return this.docxtemplater=t,e}},{key:`preparse`,value:function(e,t){var n=t.contentType;A.main.indexOf(n)!==-1&&(this.sects=re(e))}},{key:`matchers`,value:function(){var e=N;return[[this.prefix.start,e,{expandTo:`auto`,location:`start`,inverted:!1}],[this.prefix.inverted,e,{expandTo:`auto`,location:`start`,inverted:!0}],[this.prefix.end,e,{location:`end`}],[this.prefix.dash,e,function(e){var t=o(e,3);return{location:`start`,inverted:!1,expandTo:t[1],value:t[2]}}]]}},{key:`getTraits`,value:function(e,t){if(e===`expandPair`){for(var n=[],r=0,i=t.length;r<i;r++){var a=t[r];x(a,N)&&a.subparsed==null&&n.push({part:a,offset:r})}return n}}},{key:`postparse`,value:function(e,t){var n=t.basePart;if(n&&this.docxtemplater.fileType===`docx`&&e.length>0){n.sectPrCount=ie(e),this.totalSectPr+=n.sectPrCount;for(var r=this.sects,i=0,a=r.length;i<a;i++){var o=r[i];if(n.lIndex<o[0].lIndex){i+1<r.length&&V(r[i+1])&&(n.addContinuousType=!0);break}if(e[0].lIndex<o[0].lIndex&&o[0].lIndex<n.lIndex){H(r[i])&&(n.addNextPage={index:i});break}}n.lastParagrapSectPr=K(e)}if(!n||n.expandTo!==`auto`||n.module!==N||!L(e))return e;n.paragraphLoop=!0;var s=0,c=v(e,function(e){return b(e)&&(s++,s===1)?`start`:C(e)&&(s--,s===0)?`end`:null}),l=c[0],u=y(c),d=R(l),f=R(u);return d>0&&c[1][0].type===`content`&&M(c[1][0].value)&&(d+=1),f>0&&y(c[c.length-2]).type===`content`&&M(y(c[c.length-2]).value)&&(f+=1),n.hasPageBreakBeginning=ne(l),n.hasPageBreak=ne(u),G(l)&&(d=0),G(u)&&(f=0),e.slice(d,e.length-f)}},{key:`resolve`,value:function(e,t){var n=this;if(!x(e,N))return null;var r=t.scopeManager,a=r.getValueAsync(e.value,{part:e}),o=[],s;n.resolveSerially&&(s=Promise.resolve(null));function c(a,c,l){var u=r.createSubScopeManager(a,e.value,c,e,l);n.resolveSerially?(s=s.then(function(){return t.resolve(i(i({},t),{},{compiled:e.subparsed,tags:{},scopeManager:u}))}),o.push(s)):o.push(t.resolve(i(i({},t),{},{compiled:e.subparsed,tags:{},scopeManager:u})))}var l=[];return a.then(function(n){return n??=t.nullGetter(e),n instanceof Promise?n.then(function(e){return e instanceof Array?Promise.all(e):e}):n instanceof Array?Promise.all(n):n}).then(function(t){return r.loopOverValue(t,c,e.inverted),Promise.all(o).then(function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],i=r.resolved,a=r.errors;S(l,a),t.push(i)}return t}).then(function(e){if(l.length>0)throw l;return e})})}},{key:`render`,value:function(e,t){var n=this;if(e.tag===`p:xfrm`&&(n.inXfrm=e.position===`start`),e.tag===`a:ext`&&n.inXfrm)return n.lastExt=e,e;if(!x(e,N))return null;var r=[],a=[],o=0,s=e.subparsed[0],c=0;s?.tag===`a:tr`&&(c=+O(s.value,`h`)),o-=c;var l=0,u=I(e);function d(s,d,f){o+=c;for(var p=t.scopeManager.createSubScopeManager(s,e.value,d,e,f),m=0,h=e.subparsed;m<h.length;m++){var g=h[m];if(D(`a16:rowId`,g)){var _=+O(g.value,`val`)+l;l=1,g.value=k(g.value,`val`,_)}}var v=t.render(i(i({},t),{},{compiled:e.subparsed,tags:{},scopeManager:p}));e.hasPageBreak&&d===f-1&&u&&z(v),p.scopePathItem.some(function(e){return e!==0})?(e.sectPrCount===1&&(v.parts=te(v.parts)),e.addContinuousType&&(v.parts=W(v.parts))):e.addNextPage&&U(v.parts,n.sects[e.addNextPage.index]),e.addNextPage&&z(v),e.hasPageBreakBeginning&&u&&B(v);for(var y=0,b=v.parts;y<b.length;y++){var x=b[y];r.push(x)}S(a,v.errors)}var f=t.scopeManager.getValue(e.value,{part:e});if(f??=t.nullGetter(e),t.scopeManager.loopOverValue(f,d,e.inverted)===!1)return e.lastParagrapSectPr?e.paragraphLoop?{value:`<w:p><w:pPr>${e.lastParagrapSectPr}</w:pPr></w:p>`}:{value:`</w:t></w:r></w:p><w:p><w:pPr>${e.lastParagrapSectPr}</w:pPr><w:r><w:t>`}:{value:ee(e)||``,errors:a};if(o!==0){var p=+O(n.lastExt.value,`cy`);n.lastExt.value=k(n.lastExt.value,`cy`,p+o)}return{value:t.joinUncorrupt(r,i(i({},t),{},{basePart:e})),errors:a}}}])}();t.exports=function(){return j(new q)}})),sd=a(((e,t)=>{function n(e){"@babel/helpers - typeof";return n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},n(e)}function r(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function o(e){var t=s(e,`string`);return n(t)==`symbol`?t:t+``}function s(e,t){if(n(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||`default`);if(n(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var c=Hu(),l=Ru(),u=l.isTextStart,d=l.isTextEnd,f=l.endsWith,p=l.startsWith,m=l.pushArray,h=`<w:t xml:space="preserve">`,g=h.length,_=`</w:t>`,v=_.length;function y(e){return u(e)&&e.tag===`w:t`}function b(e,t){var n=e[t].value;return e[t+1].value===`</w:t>`||n.indexOf(`xml:space="preserve"`)!==-1?n:n.substr(0,n.length-1)+` xml:space="preserve">`}function x(e,t){return e&&e.basePart&&t.length>1}var S=function(){function e(){r(this,e),this.name=`SpacePreserveModule`}return a(e,[{key:`postparse`,value:function(e,t){var n=[],r=!1,i=0,a=0;function o(e,t){return e.type===`placeholder`&&t.length>1}var s=e.reduce(function(e,s){return y(s)&&(r=!0,a=n.length),r?(n.push(s),x(t,n)&&(i=t.basePart.endLindex,n[0].value=b(n,0)),o(s,n)&&(n[a].value=b(n,a),i=s.endLindex),d(s)&&s.lIndex>i&&(i!==0&&(n[a].value=b(n,a)),m(e,n),n=[],r=!1,i=0,a=0),e):(e.push(s),e)},[]);return m(s,n),s}},{key:`postrender`,value:function(e){for(var t=``,n=0,r=0,i=e.length;r<i;r++){var a=e[r];a!==``&&(f(t,h)&&p(a,_)&&(e[n]=t.substr(0,t.length-g)+`<w:t/>`,a=a.substr(v)),t=a,n=r,e[r]=a)}return e}}])}();t.exports=function(){return c(new S)}})),cd=a(((e,t)=>{function n(e){"@babel/helpers - typeof";return n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},n(e)}function r(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function o(e){var t=s(e,`string`);return n(t)==`symbol`?t:t+``}function s(e,t){if(n(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||`default`);if(n(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var c=Uu(),l=Ru(),u=l.isContent,d=l.getPartWithDelimiters,f=Lu(),p=f.throwRawTagShouldBeOnlyTextInParagraph,m=f.getInvalidRawXMLValueException,h=Hu(),g=`rawxml`;function _(e){for(var t=e.part,n=e.left,r=e.right,i=e.postparsed,a=e.index,o=i.slice(n+1,r),s=0,c=o.length;s<c;s++)if(s!==a-n-1){var l=o[s];u(l)&&p({paragraphParts:o,part:t})}return t}var v=function(){function e(){r(this,e),this.name=`RawXmlModule`,this.prefix=`@`}return a(e,[{key:`optionsTransformer`,value:function(e,t){return this.fileTypeConfig=t.fileTypeConfig,e}},{key:`matchers`,value:function(){return[[this.prefix,g]]}},{key:`postparse`,value:function(e){var t=this;return c.expandToOne(e,{moduleName:g,getInner:_,expandTo:this.fileTypeConfig.tagRawXml,error:{message:`Raw tag not in paragraph`,id:`raw_tag_outerxml_invalid`,explanation:function(e){return`The tag "${d(e,t.docxtemplater)}" is not inside a paragraph, putting raw tags inside an inline loop is disallowed.`}}})}},{key:`render`,value:function(e,t){if(e.module!==g)return null;var n,r=[];try{n=t.scopeManager.getValue(e.value,{part:e}),n??=t.nullGetter(e)}catch(e){return r.push(e),{errors:r}}return n||=``,typeof n==`string`?{value:n}:{errors:[m({tag:e.value,value:n,partDelims:d(e,this.docxtemplater),part:e,offset:e.offset})]}}}])}();t.exports=function(){return h(new v)}})),ld=a(((e,t)=>{function n(e,t){for(var n=-1,r=0,i=e.length;r<i;r++)t[r]>=e[r].length||(n===-1||e[r][t[r]].offset<e[n][t[n]].offset)&&(n=r);return n}t.exports=function(e){for(var t=0,r=0,i=e;r<i.length;r++){var a=i[r];t+=a.length}e=e.filter(function(e){return e.length>0});for(var o=Array(t),s=e.map(function(){return 0}),c=0;c<t;c++){var l=n(e,s);o[c]=e[l][s[l]],s[l]++}return o}})),ud=a(((e,t)=>{function n(e){"@babel/helpers - typeof";return n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},n(e)}function r(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function o(e){var t=s(e,`string`);return n(t)==`symbol`?t:t+``}function s(e,t){if(n(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||`default`);if(n(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var c=`expandPair`,l=ld(),u=Ru(),d=u.getLeft,f=u.getRight,p=u.pushArray,m=Hu(),h=Uu().getExpandToDefault,g=Lu(),_=g.getUnmatchedLoopException,v=g.getClosingTagNotMatchOpeningTag,y=g.getUnbalancedLoopException;function b(e){switch(e.location){case`start`:return 1;case`end`:return-1}}function x(e,t){return e!=null&&t!=null&&(e.part.location===`start`&&t.part.location===`end`&&e.part.value===t.part.value||t.part.value===``)}function S(e){for(var t=0,n=[];t<e.length;){var r=e[t].part;if(r.location===`end`){if(t===0)return e.splice(0,1),n.push(_(r)),{traits:e,errors:n};var i=t,a=t-1,o=1;if(x(e[a],e[i]))return e.splice(i,1),e.splice(a,1),{errors:n,traits:e};for(;o<50;){var s=e[a-o],c=e[i+o];if(x(s,e[i]))return e.splice(i,1),e.splice(a-o,1),{errors:n,traits:e};if(x(e[a],c))return e.splice(i+o,1),e.splice(a,1),{errors:n,traits:e};o++}return n.push(v({tags:[e[a].part,e[i].part]})),e.splice(i,1),e.splice(a,1),{traits:e,errors:n}}t++}for(var l=0;l<e.length;l++){var u=e[l].part;n.push(_(u))}return{traits:[],errors:n}}function C(e){var t={},n=[],r=[],i=[];for(p(i,e);i.length>0;){var a=S(i);p(n,a.errors),i=a.traits}if(n.length>0)return{pairs:r,errors:n};for(var o=0,s=0;s<e.length;s++){var c=e[s],l=c.part,u=b(l);if(o+=u,u===1)t[o]=c;else{var d=t[o+1];o===0&&r.push([d,c])}o=o>=0?o:0}return{pairs:r,errors:n}}var w=function(){function e(){r(this,e),this.name=`ExpandPairTrait`}return a(e,[{key:`optionsTransformer`,value:function(e,t){return t.options.paragraphLoop&&p(t.fileTypeConfig.expandTags,t.fileTypeConfig.onParagraphLoop),this.expandTags=t.fileTypeConfig.expandTags,e}},{key:`postparse`,value:function(e,t){var n=this,r=t.getTraits,i=t.postparse,a=t.fileType,o=r(c,e,t);o=o.map(function(e){return e||[]}),o=l(o);var s=C(o),u=s.pairs,p=s.errors,m=0,g=null,_=u.map(function(t){var r=t[0].part.expandTo;if(r===`auto`&&a!==`text`){var i=h(e,t,n.expandTags);i.error&&p.push(i.error),r=i.value}if(!r||a===`text`){var o=t[0].offset,s=t[1].offset;return o<m&&!n.docxtemplater.options.syntax.allowUnbalancedLoops&&p.push(y(t,g)),g=t,m=s,[o,s]}var c,l;try{c=d(e,r,t[0].offset)}catch(e){p.push(e)}try{l=f(e,r,t[1].offset)}catch(e){p.push(e)}return c<m&&!n.docxtemplater.options.syntax.allowUnbalancedLoops&&p.push(y(t,g)),m=l,g=t,[c,l]});if(p.length>0)return{postparsed:e,errors:p};var v=0,b;return{postparsed:e.reduce(function(t,n,r){var a=v<u.length&&_[v][0]<=r&&r<=_[v][1],o=u[v],s=_[v];if(!a)return t.push(n),t;if(s[0]===r&&(b=[]),o[0].offset!==r&&o[1].offset!==r&&b.push(n),s[1]===r){var c=e[o[0].offset];c.subparsed=i(b,{basePart:c}),c.endLindex=o[1].part.lIndex,delete c.location,delete c.expandTo,t.push(c),v++;for(var l=_[v];l&&l[0]<r;)v++,l=_[v]}return t},[]),errors:p}}}])}();t.exports=function(){return m(new w)}})),dd=a(((e,t)=>{function n(e){"@babel/helpers - typeof";return n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},n(e)}function r(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function o(e){var t=s(e,`string`);return n(t)==`symbol`?t:t+``}function s(e,t){if(n(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||`default`);if(n(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var c=Hu(),l=Lu(),u=l.getScopeCompilationError,d=l.getCorruptCharactersException,f=Ru(),p=f.utf8ToWord,m=f.hasCorruptCharacters,h=f.removeCorruptCharacters,g=Gu(),_=[g.settingsContentType,g.coreContentType,g.appContentType,g.customContentType],v={docx:`w`,pptx:`a`},y=function(){function e(){r(this,e),this.name=`Render`,this.recordRun=!1,this.recordedRun=[]}return a(e,[{key:`set`,value:function(e){e.compiled&&(this.compiled=e.compiled),e.data!=null&&(this.data=e.data)}},{key:`optionsTransformer`,value:function(e,t){return this.docxtemplater=t,this.brTag=t.fileType===`docx`?`<w:r><w:br/></w:r>`:`<a:br/>`,this.prefix=v[t.fileType],this.runStartTag=`${this.prefix}:r`,this.runPropsStartTag=`${this.prefix}:rPr`,e}},{key:`postparse`,value:function(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r];if(i.type===`placeholder`){var a=i.value;try{t.cachedParsers[i.lIndex]=this.docxtemplater.parser(a,{tag:i})}catch(e){n.push(u({tag:a,rootError:e,offset:i.offset}))}}}return{postparsed:e,errors:n}}},{key:`getRenderedMap`,value:function(e){for(var t in this.compiled)e[t]={from:t,data:this.data};return e}},{key:`render`,value:function(e,t){var n=t.contentType,r=t.scopeManager,i=t.linebreaks,a=t.nullGetter,o=t.fileType,s=t.stripInvalidXMLChars;if(_.indexOf(n)!==-1&&(i=!1),i&&this.recordRuns(e),!(e.type!==`placeholder`||e.module)){var c;try{c=r.getValue(e.value,{part:e})}catch(e){return{errors:[e]}}if(c??=a(e),typeof c==`string`){if(s)c=h(c);else if([`docx`,`pptx`,`xlsx`].indexOf(o)!==-1&&m(c))return{errors:[d({tag:e.value,value:c,offset:e.offset})]}}return o===`text`?{value:c}:{value:i&&typeof c==`string`?this.renderLineBreaks(c):p(c)}}}},{key:`recordRuns`,value:function(e){e.tag===this.runStartTag?this.recordedRun=``:e.tag===this.runPropsStartTag?(e.position===`start`&&(this.recordRun=!0,this.recordedRun+=e.value),(e.position===`end`||e.position===`selfclosing`)&&(this.recordedRun+=e.value,this.recordRun=!1)):this.recordRun&&(this.recordedRun+=e.value)}},{key:`renderLineBreaks`,value:function(e){for(var t=[],n=e.split(`
`),r=0,i=n.length;r<i;r++)t.push(p(n[r])),r<n.length-1&&t.push(`</${this.prefix}:t></${this.prefix}:r>${this.brTag}<${this.prefix}:r>${this.recordedRun}<${this.prefix}:t${this.docxtemplater.fileType===`docx`?` xml:space="preserve"`:``}>`);return t}}])}();t.exports=function(){return c(new y)}})),fd=a(((e,t)=>{var n=od(),r=sd(),i=cd(),a=ud(),o=dd();function s(){return{getTemplatedFiles:function(){return[]},templatedNs:[`http://schemas.microsoft.com/office/2006/coverPageProps`],textPath:function(e){return e.textTarget},tagsXmlTextArray:[`Company`,`HyperlinkBase`,`Manager`,`cp:category`,`cp:keywords`,`dc:creator`,`dc:description`,`dc:subject`,`dc:title`,`cp:contentStatus`,`PublishDate`,`Abstract`,`CompanyAddress`,`CompanyPhone`,`CompanyFax`,`CompanyEmail`,`w:t`,`a:t`,`m:t`,`vt:lpstr`,`vt:lpwstr`],tagsXmlLexedArray:`w:proofState.w:tc.w:tr.w:tbl.w:ftr.w:hdr.w:body.w:document.w:p.w:r.w:br.w:rPr.w:pPr.w:spacing.w:sdtContent.w:sdt.w:drawing.w:sectPr.w:type.w:headerReference.w:footerReference.w:bookmarkStart.w:bookmarkEnd.w:commentRangeStart.w:commentRangeEnd.w:commentReference`.split(`.`),droppedTagsInsidePlaceholder:[`w:p`,`w:br`,`w:bookmarkStart`,`w:bookmarkEnd`],expandTags:[{contains:`w:tc`,expand:`w:tr`}],onParagraphLoop:[{contains:`w:p`,expand:`w:p`,onlyTextInTag:!0}],tagRawXml:`w:p`,baseModules:[n,r,a,i,o],tagShouldContain:[{tag:`w:sdtContent`,shouldContain:[`w:p`,`w:r`,`w:commentRangeStart`,`w:sdt`],value:`<w:p></w:p>`},{tag:`w:tc`,shouldContain:[`w:p`],value:`<w:p></w:p>`},{tag:`w:tr`,shouldContain:[`w:tc`],drop:!0},{tag:`w:tbl`,shouldContain:[`w:tr`],drop:!0}]}}function c(){return{getTemplatedFiles:function(){return[]},textPath:function(e){return e.textTarget},tagsXmlTextArray:[`Company`,`HyperlinkBase`,`Manager`,`cp:category`,`cp:keywords`,`dc:creator`,`dc:description`,`dc:subject`,`dc:title`,`a:t`,`m:t`,`vt:lpstr`,`vt:lpwstr`],tagsXmlLexedArray:[`p:sp`,`a:tc`,`a:tr`,`a:tbl`,`a:graphicData`,`a:p`,`a:r`,`a:rPr`,`p:txBody`,`a:txBody`,`a:off`,`a:ext`,`p:graphicFrame`,`p:xfrm`,`a16:rowId`,`a:endParaRPr`],droppedTagsInsidePlaceholder:[`a:p`,`a:endParaRPr`],expandTags:[{contains:`a:tc`,expand:`a:tr`}],onParagraphLoop:[{contains:`a:p`,expand:`a:p`,onlyTextInTag:!0}],tagRawXml:`p:sp`,baseModules:[n,a,i,o],tagShouldContain:[{tag:`a:tbl`,shouldContain:[`a:tr`],dropParent:`p:graphicFrame`},{tag:`p:txBody`,shouldContain:[`a:p`],value:`<a:p></a:p>`},{tag:`a:txBody`,shouldContain:[`a:p`],value:`<a:p></a:p>`}]}}t.exports={docx:s,pptx:c}})),pd=r(a(((e,t)=>{var n=[`modules`];function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?r(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){return d(e)||u(e,t)||c(e,t)||s()}function s(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(e,t){if(e){if(typeof e==`string`)return l(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function d(e){if(Array.isArray(e))return e}function f(e){"@babel/helpers - typeof";return f=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},f(e)}function p(e,t){if(e==null)return{};var n,r,i=m(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function m(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function h(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,v(r.key),r)}}function _(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function v(e){var t=y(e,`string`);return f(t)==`symbol`?t:t+``}function y(e,t){if(f(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(f(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var b=Ru(),x=zu(),S=x.object({allowUnopenedTag:x.boolean().optional(),allowUnclosedTag:x.boolean().optional(),allowUnbalancedLoops:x.boolean().optional(),changeDelimiterPrefix:x.string().optional().nullable()}),C=x.object({delimiters:x.object({start:x.string().nullable(),end:x.string().nullable()}).strict().optional(),fileTypeConfig:x.object({}).optional(),paragraphLoop:x.boolean().optional(),parser:x.function().optional(),errorLogging:x.union([x.boolean(),x.string()]).optional(),linebreaks:x.boolean().optional(),nullGetter:x.function().optional(),syntax:S.optional(),stripInvalidXMLChars:x.boolean().optional(),warnFn:x.function().optional()}).strict(),w=Bu().getRelsTypes,T=Vu(),E=T.collectContentTypes,D=T.getContentTypes,O=Hu(),k=Uu(),A=Ku(),j=qu(),M=Ju(),N=Yu().getTags,P=Xu(),F=Lu(),I=F.throwMultiError,ee=F.throwResolveBeforeCompile,L=F.throwRenderInvalidTemplate,R=F.throwRenderTwice,z=F.XTInternalError,B=F.XTTemplateError,V=F.throwFileTypeNotIdentified,H=F.throwFileTypeNotHandled,U=F.throwApiVersionError;b.getRelsTypes=w,b.traits=k,b.moduleWrapper=O,b.collectContentTypes=E,b.getContentTypes=D;var W=b.getDefaults,te=b.str2xml,ne=b.xml2str,G=b.concatArrays,re=b.uniq,ie=b.getDuplicates,K=b.stableSort,q=b.pushArray,J=b.utf8ToWord,Y=b.invertMap,ae=`[Content_Types].xml`,oe=`_rels/.rels`,X=[3,47,2];function se(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r.name)}var i=ie(t);if(i.length>0)throw new z(`Detected duplicate module "${i[0]}"`)}function ce(e){for(var t=0,n=e.modules;t<n.length;t++)for(var r=n[t],i=0,a=r.xmlContentTypes||[];i<a.length;i++)for(var o=a[i],s=e.invertedContentTypes[o]||[],c=0;c<s.length;c++){var l=s[c];e.zip.files[l]&&e.options.xmlFileNames.push(l)}}function Z(e){return K(e,function(e,t){return(t.priority||0)-(e.priority||0)})}function le(e){var t=[];for(var n in e)t.push(n);for(var r=[ae,oe],i=[`word/`,`xl/`,`ppt/`],a=0;a<t.length;a++)for(var o=t[a],s=0;s<i.length;s++){var c=i[s];o.indexOf(`${c}`)===0&&r.push(o)}for(var l=0;l<t.length;l++){var u=t[l];r.indexOf(u)===-1&&r.push(u)}return r}function ue(e,t){e.hideDeprecations!==!0&&console.warn(t)}function de(e,t){if(e.hideDeprecations!==!0)return ue(e,`Deprecated method ".${t}", view upgrade guide : https://docxtemplater.com/docs/api/#upgrade-guide, stack : ${Error().stack}`)}function fe(e){e.modules=e.modules.filter(function(t){if(!t.supportedFileTypes)return!0;if(!Array.isArray(t.supportedFileTypes))throw Error(`The supportedFileTypes field of the module must be an array`);var n=t.supportedFileTypes.includes(e.fileType);return n||t.on(`detached`),n})}function pe(e){var t=e.compiled;e.errors=G(Object.keys(t).map(function(e){return t[e].allErrors})),e.errors.length!==0&&(e.options.errorLogging&&P(e.errors,e.options.errorLogging),I(e.errors))}function Q(e){return typeof Buffer<`u`&&typeof Buffer.isBuffer==`function`&&Buffer.isBuffer(e)}var me=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.modules,a=i===void 0?[]:i,o=p(r,n);if(h(this,e),this.targets=[],this.rendered=!1,this.scopeManagers={},this.compiled={},this.modules=[A()],this.xmlDocuments={},arguments.length===0)ue(this,`Deprecated docxtemplater constructor with no arguments, view upgrade guide : https://docxtemplater.com/docs/api/#upgrade-guide, stack : ${Error().stack}`),this.hideDeprecations=!0,this.setOptions(o);else{if(this.hideDeprecations=!0,this.setOptions(o),Q(t))throw Error(`You passed a Buffer to the Docxtemplater constructor. The first argument of docxtemplater's constructor must be a valid zip file (jszip v2 or pizzip v3)`);if(!t||!t.files||typeof t.file!=`function`)throw Error(`The first argument of docxtemplater's constructor must be a valid zip file (jszip v2 or pizzip v3)`);if(!Array.isArray(a))throw Error(`The modules argument of docxtemplater's constructor must be an array`);for(var s=0;s<a.length;s++){var c=a[s];this.attachModule(c)}this.loadZip(t),this.compile(),this.v4Constructor=!0}this.hideDeprecations=!1}return _(e,[{key:`verifyApiVersion`,value:function(e){e=e.split(`.`);for(var t=0;t<e.length;t++)e[t]=parseInt(e[t],10);return e.length!==3&&U(`neededVersion is not a valid version`,{neededVersion:e,explanation:`the neededVersion must be an array of length 3`}),e[0]!==X[0]&&U(`The major api version do not match, you probably have to update docxtemplater with npm install --save docxtemplater`,{neededVersion:e,currentModuleApiVersion:X,explanation:`moduleAPIVersionMismatch : needed=${e.join(`.`)}, current=${X.join(`.`)}`}),e[1]>X[1]&&U(`The minor api version is not uptodate, you probably have to update docxtemplater with npm install --save docxtemplater`,{neededVersion:e,currentModuleApiVersion:X,explanation:`moduleAPIVersionMismatch : needed=${e.join(`.`)}, current=${X.join(`.`)}`}),e[1]===X[1]&&e[2]>X[2]&&U(`The patch api version is not uptodate, you probably have to update docxtemplater with npm install --save docxtemplater`,{neededVersion:e,currentModuleApiVersion:X,explanation:`moduleAPIVersionMismatch : needed=${e.join(`.`)}, current=${X.join(`.`)}`}),!0}},{key:`setModules`,value:function(e){for(var t=0,n=this.modules;t<n.length;t++)n[t].set(e)}},{key:`sendEvent`,value:function(e){for(var t=0,n=this.modules;t<n.length;t++)n[t].on(e)}},{key:`attachModule`,value:function(e){if(this.v4Constructor)throw new z(`attachModule() should not be called manually when using the v4 constructor`);de(this,`attachModule`);var t=f(e);if(t===`function`)throw new z("Cannot attach a class/function as a module. Most probably you forgot to instantiate the module by using `new` on the module.");if(!e||t!==`object`)throw new z(`Cannot attachModule with a falsy value`);if(e.requiredAPIVersion&&this.verifyApiVersion(e.requiredAPIVersion),e.attached===!0)if(typeof e.clone==`function`)e=e.clone();else throw Error(`Cannot attach a module that was already attached : "${e.name}". The most likely cause is that you are instantiating the module at the root level, and using it for multiple instances of Docxtemplater`);e.attached=!0;var n=O(e);return this.modules.push(n),n.on(`attached`),this.fileType&&fe(this),this}},{key:`findModule`,value:function(e){for(var t=0,n=this.modules;t<n.length;t++){var r=n[t];if(r.name===e)return r}}},{key:`setOptions`,value:function(e){var t,n;if(this.v4Constructor)throw Error(`setOptions() should not be called manually when using the v4 constructor`);if(!e)throw Error(`setOptions should be called with an object as first parameter`);var r=C.validate(e);if(r.success===!1)throw Error(r.error);de(this,`setOptions`),this.options={};var i=W();for(var a in i){var o=i[a];this.options[a]=e[a]==null?this[a]||o:e[a],this[a]=this.options[a]}return(t=this.delimiters).start&&(t.start=J(this.delimiters.start)),(n=this.delimiters).end&&(n.end=J(this.delimiters.end)),this}},{key:`loadZip`,value:function(e){if(this.v4Constructor)throw Error(`loadZip() should not be called manually when using the v4 constructor`);if(de(this,`loadZip`),e.loadAsync)throw new z(`Docxtemplater doesn't handle JSZip version >=3, please use pizzip`);e.xtRendered&&this.options.warnFn([Error(`This zip file appears to be the outcome of a previous docxtemplater generation. This typically indicates that docxtemplater was integrated by reusing the same zip file. It is recommended to create a new Pizzip instance for each docxtemplater generation.`)]),this.zip=e,this.updateFileTypeConfig(),this.modules=G([this.fileTypeConfig.baseModules.map(function(e){return e()}),this.modules]);for(var t=0,n=this.modules;t<n.length;t++){var r=n[t];r.zip=this.zip,r.docxtemplater=this,r.fileTypeConfig=this.fileTypeConfig,r.fileType=this.fileType,r.xtOptions=this.options,r.modules=this.modules}return fe(this),this}},{key:`precompileFile`,value:function(e){var t=this.createTemplateClass(e);t.preparse(),this.compiled[e]=t}},{key:`compileFile`,value:function(e){this.compiled[e].parse()}},{key:`getScopeManager`,value:function(e,t,n){var r;return(r=this.scopeManagers)[e]||(r[e]=j({tags:n,parser:this.parser,cachedParsers:t.cachedParsers})),this.scopeManagers[e]}},{key:`resolveData`,value:function(e){var t=this;de(this,`resolveData`);var n=[];return Object.keys(this.compiled).length||ee(),Promise.resolve(e).then(function(e){t.data=e,t.setModules({data:t.data,Lexer:M}),t.mapper=t.modules.reduce(function(e,t){return t.getRenderedMap(e)},{});for(var r=[],i=function(){var e=o[a],i=t.mapper[e],s=i.from,c=i.data;r.push(Promise.resolve(c).then(function(r){var i=t.compiled[s];return i.filePath=e,i.scopeManager=t.getScopeManager(e,i,r),i.resolveTags(r).then(function(e){return i.scopeManager.finishedResolving=!0,e},function(e){q(n,e)})}))},a=0,o=Object.keys(t.mapper);a<o.length;a++)i();return Promise.all(r).then(function(e){return n.length!==0&&(t.options.errorLogging&&P(n,t.options.errorLogging),I(n)),G(e)})})}},{key:`compile`,value:function(){if(de(this,`compile`),this.updateFileTypeConfig(),se(this.modules),this.modules=Z(this.modules),Object.keys(this.compiled).length)return this;for(var e=this.options,t=0,n=this.modules;t<n.length;t++)e=n[t].optionsTransformer(e,this);this.options=e,this.options.xmlFileNames=re(this.options.xmlFileNames);for(var r=0,i=this.options.xmlFileNames;r<i.length;r++){var a=i[r],o=this.zip.files[a].asText();this.xmlDocuments[a]=te(o)}this.setModules({zip:this.zip,xmlDocuments:this.xmlDocuments});for(var s=0,c=this.modules;s<c.length;s++){var l=c[s];l.xmlDocuments=this.xmlDocuments}this.getTemplatedFiles(),this.sendEvent(`before-preparse`);for(var u=0,d=this.templatedFiles;u<d.length;u++){var f=d[u];this.zip.files[f]!=null&&this.precompileFile(f)}this.sendEvent(`after-preparse`);for(var p=0,m=this.templatedFiles;p<m.length;p++){var h=m[p];this.zip.files[h]!=null&&this.compiled[h].parse({noPostParse:!0})}this.sendEvent(`after-parse`);for(var g=0,_=this.templatedFiles;g<_.length;g++){var v=_[g];this.zip.files[v]!=null&&this.compiled[v].postparse()}return this.sendEvent(`after-postparse`),this.setModules({compiled:this.compiled}),pe(this),this}},{key:`updateFileTypeConfig`,value:function(){this.relsTypes=w(this.zip);var t=D(this.zip),n=t.overrides,r=t.defaults,i=t.contentTypes,a=t.contentTypeXml;a&&(this.filesContentTypes=E(n,r,this.zip),this.invertedContentTypes=Y(this.filesContentTypes),this.setModules({contentTypes:this.contentTypes,invertedContentTypes:this.invertedContentTypes}));var o;this.zip.files.mimetype&&(o=`odt`);for(var s=0,c=this.modules;s<c.length;s++)o=c[s].getFileType({zip:this.zip,contentTypes:i,contentTypeXml:a,overrides:n,defaults:r,doc:this})||o;if(this.fileType=o,o===`odt`&&H(o),o||V(this.zip),ce(this),fe(this),this.fileTypeConfig=this.options.fileTypeConfig||this.fileTypeConfig,!this.fileTypeConfig)if(e.FileTypeConfig[this.fileType])this.fileTypeConfig=e.FileTypeConfig[this.fileType]();else{var l=`Filetype "${this.fileType}" is not supported`,u=`filetype_not_supported`;this.fileType===`xlsx`&&(l=`Filetype "${this.fileType}" is supported only with the paid XlsxModule`,u=`xlsx_filetype_needs_xlsx_module`);var d=new B(l);throw d.properties={id:u,explanation:l},d}return this}},{key:`renderAsync`,value:function(e){var t=this;this.hideDeprecations=!0;var n=this.resolveData(e);return this.hideDeprecations=!1,this.zip.xtRendered=!0,n.then(function(){return t.render()})}},{key:`render`,value:function(e){this.zip.xtRendered=!0,this.rendered&&R(),this.rendered=!0,Object.keys(this.compiled).length===0&&this.compile(),this.errors.length>0&&L(),arguments.length>0&&(this.data=e),this.setModules({data:this.data,Lexer:M}),this.mapper||=this.modules.reduce(function(e,t){return t.getRenderedMap(e)},{});var t=[];for(var n in this.mapper){var r=this.mapper[n],i=r.from,a=r.data,s=this.compiled[i];s.scopeManager=this.getScopeManager(n,s,a),s.render(n),t.push([n,s.content,s]),delete s.content}for(var c=0;c<t.length;c++)for(var l=t[c],u=o(l,3),d=u[1],f=u[2],p=0,m=this.modules;p<m.length;p++){var h=m[p];if(h.preZip){var g=h.preZip(d,f);typeof g==`string`&&(l[1]=g)}}for(var _=0;_<t.length;_++){var v=o(t[_],2),y=v[0],b=v[1];this.zip.file(y,b,{createFolders:!0})}return pe(this),this.sendEvent(`syncing-zip`),this.syncZip(),this.sendEvent(`synced-zip`),this}},{key:`syncZip`,value:function(){for(var e in this.xmlDocuments){this.zip.remove(e);var t=ne(this.xmlDocuments[e]);this.zip.file(e,t,{createFolders:!0})}}},{key:`setData`,value:function(e){return de(this,`setData`),this.data=e,this}},{key:`getZip`,value:function(){return this.zip}},{key:`createTemplateClass`,value:function(e){var t=this.zip.files[e].asText();return this.createTemplateClassFromContent(t,e)}},{key:`createTemplateClassFromContent`,value:function(t,n){for(var r={filePath:n,contentType:this.filesContentTypes[n],relsType:this.relsTypes[n]},i=W(),a=q(Object.keys(i),[`filesContentTypes`,`fileTypeConfig`,`fileType`,`modules`]),o=0;o<a.length;o++){var s=a[o];r[s]=this[s]}return new e.XmlTemplater(t,r)}},{key:`getFullText`,value:function(e){return this.createTemplateClass(e||this.fileTypeConfig.textPath(this)).getFullText()}},{key:`getTemplatedFiles`,value:function(){this.templatedFiles=this.fileTypeConfig.getTemplatedFiles(this.zip),q(this.templatedFiles,this.targets);var e=this.fileTypeConfig.templatedNs||[];if(e.length>0){for(var t in this.filesContentTypes)if(/^customXml\/item\d+\.xml$/.test(t))for(var n=0;n<e.length;n++){var r=e[n];this.zip.file(t).asText().indexOf(`xmlns="${r}"`)!==-1&&this.templatedFiles.push(t)}}return this.templatedFiles=re(this.templatedFiles),this.templatedFiles}},{key:`getTags`,value:function(){var e={headers:[],footers:[]};for(var t in this.compiled){var n=this.filesContentTypes[t];n===`application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml`&&(e.document={target:t,tags:N(this.compiled[t].postparsed)}),n===`application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml`&&e.headers.push({target:t,tags:N(this.compiled[t].postparsed)}),n===`application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml`&&e.footers.push({target:t,tags:N(this.compiled[t].postparsed)})}return e}},{key:`toBuffer`,value:function(e){return this.zip.generate(i(i({compression:`DEFLATE`,fileOrder:le},e),{},{type:`nodebuffer`}))}},{key:`toBlob`,value:function(e){return this.zip.generate(i(i({compression:`DEFLATE`,fileOrder:le},e),{},{type:`blob`}))}},{key:`toBase64`,value:function(e){return this.zip.generate(i(i({compression:`DEFLATE`,fileOrder:le},e),{},{type:`base64`}))}},{key:`toUint8Array`,value:function(e){return this.zip.generate(i(i({compression:`DEFLATE`,fileOrder:le},e),{},{type:`uint8array`}))}},{key:`toArrayBuffer`,value:function(e){return this.zip.generate(i(i({compression:`DEFLATE`,fileOrder:le},e),{},{type:`arraybuffer`}))}}])}();me.DocUtils=b,me.Errors=Lu(),me.XmlTemplater=ad(),me.FileTypeConfig=fd(),me.XmlMatcher=Zu(),t.exports=me,t.exports.default=me}))(),1),md=r(Du(),1),hd=`modulepreload`,gd=function(e,t){return new URL(e,t).href},_d={};const vd=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=function(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))},i=document.getElementsByTagName(`link`),a=document.querySelector(`meta[property=csp-nonce]`),o=a?.nonce||a?.getAttribute(`nonce`);r=e(t.map(e=>{if(e=gd(e,n),e in _d)return;_d[e]=!0;let t=e.endsWith(`.css`),r=t?`[rel="stylesheet"]`:``;if(n)for(let n=i.length-1;n>=0;n--){let r=i[n];if(r.href===e&&(!t||r.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${e}"]${r}`))return;let a=document.createElement(`link`);if(a.rel=t?`stylesheet`:hd,t||(a.as=`script`),a.crossOrigin=``,a.href=e,o&&a.setAttribute(`nonce`,o),document.head.appendChild(a),t)return new Promise((t,n)=>{a.addEventListener(`load`,t),a.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${e}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};var yd={class:`flex flex-col w-full h-screen bg-background overflow-hidden`},bd={class:`flex items-center justify-between h-12 px-4 border-b bg-muted/10 flex-none`},xd={class:`text-lg font-bold text-[#1976d2]`},Sd={class:`flex shrink-0 self-center items-center gap-2`},Cd={key:0,class:`absolute right-0 top-12 z-50 w-48 rounded-lg border bg-card p-1 shadow-lg`},wd=[`disabled`],Td=[`disabled`],Ed={class:`grid grid-cols-[minmax(0,1fr)_auto] items-start gap-2 border-b bg-muted/30 px-2 pt-1 h-15 flex-none`},Dd=[`onMousedown`,`onContextmenu`],Od={key:0,class:`fixed inset-y-0 right-0 z-[100] w-[360px] bg-background shadow-2xl`},kd={class:`flex flex-col h-full`},Ad={class:`flex items-center justify-between border-b px-5 py-4`},jd={class:`text-lg font-semibold`},Md={class:`mt-1 text-xs text-muted-foreground`},Nd={class:`flex-1 space-y-2 overflow-auto p-5`},Pd=[`onClick`],Fd={class:`flex-1`},Id={class:`mt-1 text-xs text-muted-foreground`},Ld={class:`border-t p-5`},Rd={class:`mt-4 flex items-center justify-end gap-2`},zd={class:`mt-4 flex items-center justify-end gap-2`},Bd={class:`flex items-start justify-between border-b px-6 py-5`},Vd={class:`p-6`},Hd={class:`text-base font-semibold text-foreground`},Ud={class:`mt-4 space-y-3`},Wd=[`onClick`],Gd={class:`flex items-center justify-between`},Kd={class:`text-base font-medium text-foreground`},qd={class:`flex items-center justify-end gap-3 border-t px-6 py-5`},Jd={class:`mt-4 flex items-center justify-end gap-2`},Yd={class:`mt-4 flex items-center justify-end gap-2`},Xd={class:`mt-4 flex items-center justify-end gap-2`},Zd={key:0,class:`fixed inset-0 z-40 cursor-wait bg-transparent`},Qd={class:`flex-1 overflow-auto relative`},$d=[`disabled`],ef=[`disabled`],tf=[`disabled`],nf=[`disabled`],rf={class:`w-full max-w-3xl rounded-xl border bg-background shadow-2xl`},af={class:`flex items-start justify-between border-b px-6 py-5`},of={class:`text-xs text-muted-foreground`},sf={class:`mt-1 text-lg font-semibold`},cf={class:`space-y-4 px-6 py-5`},lf={class:`text-sm leading-6 text-foreground`},uf={class:`list-disc space-y-2 pl-5 text-sm text-muted-foreground`},df={class:`flex flex-col gap-3 border-t px-6 py-4 sm:flex-row sm:items-center sm:justify-between`},ff={class:`flex items-center gap-1.5`},pf=[`aria-label`,`onClick`],mf={class:`flex items-center justify-end gap-2`},hf={class:`flex items-start justify-between gap-2`},gf={class:`mt-2 flex items-center gap-2`},_f={class:`h-1.5 flex-1 overflow-hidden rounded-full bg-muted`},vf={class:`shrink-0 text-[11px] tabular-nums text-muted-foreground`},yf=`jgjs-user-guide-completed-v1`,bf=`jgjs-theme-dark-v1`,xf=`xm-base-info-v1`,Sf=`xm-info-v3`,Cf=`xm-consult-category-factor-v1`,wf=`xm-major-factor-v1`,Tf=10,Ef=`pinia`,Df=1e3,Of=en(fe({__name:`tab`,setup(e){let t=Y([]),n=async()=>{try{let e=await m.getItem(`ht-card-v1`);e&&e.length>0?t.value=[...e].sort((e,t)=>(e.order??0)-(t.order??0)):t.value=[]}catch(e){console.error(`load contract list failed:`,e),t.value=[]}},{t:r,locale:i}=ge(),a=r(`xmInfo.defaultProjectName`),o=Ee(Re()),s=[`tabs`,`zxFwPricing`,`zxFwPricingKeys`,`zxFwPricingHtFee`,`kv`],c=H(()=>[`step1`,`step2`,`step3`,`step4`,`step5`,`step6`,`step7`,`step8`].map(e=>({title:r(`tab.guide.steps.${e}.title`),description:r(`tab.guide.steps.${e}.description`),points:[r(`tab.guide.steps.${e}.point1`),r(`tab.guide.steps.${e}.point2`),r(`tab.guide.steps.${e}.point3`)]}))),l={ProjectCalcView:re(se(()=>vd(()=>import(`./xmCard-D4WD8Tvj.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url))),QuickCalcView:re(se(()=>vd(()=>import(`./htCard-DW-Tiaxs.js`),__vite__mapDeps([10,11,1,2,3,4,5,6,7,8,9,12,13,14]),import.meta.url))),QuickCalcWorkbenchView:re(se(()=>vd(()=>import(`./QuickCalcWorkbenchView-bCXV4JQ3.js`),__vite__mapDeps([15,2,3,4,5,6,7,8,12,16,13,14,17,18,19]),import.meta.url))),ZxFwView:re(se(()=>vd(()=>import(`./ZxFwView-CRvQoCJC.js`),__vite__mapDeps([20,11,1,2,3,4,5,6,7,8,9,12,16,13,14,21,22,23,24,25,26]),import.meta.url))),HtFeeMethodTypeLineView:re(se(()=>vd(()=>import(`./HtFeeMethodTypeLineView-DmQ8lS0u.js`),__vite__mapDeps([27,2,1,3,4,5,6,7,8,9,22,12,16,13,14,28,23,29,30,31]),import.meta.url)))},u=un(),d=Ps(),f=ns(),p=ds(),m=Ue(),h=on(),g=ct({selector:`html`,attribute:`class`,valueDark:`dark`,valueLight:``,storageKey:`jgjs-theme-dark-v1`}),_=Dt(g),v=Y(!1),y=Y(0),b=Y(0),x=Y(`ProjectCalcView`),S=Y(null),C=Y(!1),w=Y(null),T=Y(!1),E=Y(null),D=Y(!1),O=Y(String(Ht[0]?.id||``)),k=Y(!1),A=Y(!1),j=Y(!1),M=le(null),N=Y(!1),B=Y(``),K=Y(``),ce=Y([]),ue=Y([]),fe=Y(Re()),me=Y(!1),$=Y(!1),he=Y(null),_e=Y(!1),ve=le(null),be=Y(``),Se=Y(!1),Ce=Y(0),De=new Map,Oe=new Map,ke=new Map,je=Y(null),Me=Y(!1),Pe=Y(!1),Fe=Y(!1),Ie=Y(!1),Le=Y({}),We=null,qe=null,Je=Y(!1),Xe=Y(0),Ze=Y(`running`),Qe=Y(``),$e=Y(null),et=()=>{$e.value&&=(URL.revokeObjectURL($e.value),null),Je.value=!1},tt=H({get:()=>u.tabs,set:e=>{u.tabs=e}}),nt=H(()=>u.tabs.find(e=>e.id===u.activeTabId)||null),rt=H(()=>nt.value?String(nt.value.id||``):``),at=Y(``),ot=Y(void 0),lt=H(()=>$.value&&at.value?at.value:Ve()),ut=H(()=>u.tabs.findIndex(e=>e.id===x.value)),dt=H(()=>{let e=lt.value===`quick`?we:xe;return u.tabs.some(t=>t.componentName!==e)}),ft=H(()=>c.value[Ce.value]||c.value[0]),mt=H(()=>Ce.value===0),gt=H(()=>Ce.value>=c.value.length-1),_t=H(()=>`${Ce.value+1} / ${c.value.length}`),yt=H(()=>ut.value<=0?!1:u.tabs.slice(1,ut.value).length>0),bt=H(()=>ut.value<0?!1:u.tabs.slice(ut.value+1).length>0),kt=H(()=>u.tabs.slice(1,ut.value).length>1&&ut.value!==0);H(()=>i.value===`en-US`?`EN`:`中`),H(()=>r(`tab.toolbar.projectCount`,{count:`${ce.value.length}/${Tf}`})),H(()=>{let e=String(O.value||``).trim();return e&&Ut(e,i.value)||``});let Bt=()=>{let e=i.value===`en-US`?`zh-CN`:`en-US`;h.setLocale(e)},Gt=(e,t,n)=>{let r=String(e||``).trim(),a=String(t||``).trim(),o=String(n||``).trim();if(!r||!a)return o;if(r.includes(`-additional-work`)){let e=Zt(i.value).find(e=>String(e?.id||``).trim()===a);return String(e?.name||``).trim()||o}if(r.includes(`-reserve`)){let e=Kt(i.value).find(e=>String(e?.id||``).trim()===a);return String(e?.name||``).trim()||o}return o},Jt=()=>{let e=r(`home.projectCalcTab`),t=r(`home.quickCalcTab`),n=!1;u.tabs=u.tabs.map(i=>{let a=i?.props&&typeof i.props==`object`?{...i.props}:void 0;if(i.id===`ProjectCalcView`)return i.title===e?i:(n=!0,{...i,title:e});if(i.id===`QuickCalcView`)return i.title===t?i:(n=!0,{...i,title:t});if(i.componentName===`QuickCalcView`){let e=r(`ht.contractTabTitle`,{name:String(a?.contractName||``).trim()||`-`});return i.title===e?i:(n=!0,{...i,title:e})}if(i.componentName===`ZxFwView`){let e=String(a?.serviceId||``).trim(),t=e?qt(e):void 0,o=t?`${String(t.code||``).trim()}${String(t.name||``).trim()}`:String(a?.fwName||``).trim(),s=r(`htZxFw.editTabTitle`,{name:o||`-`}),c={...a||{},fwName:o||String(a?.fwName||``)};return i.title===s&&String(a?.fwName||``)===String(c.fwName||``)?i:(n=!0,{...i,title:s,props:c})}if(i.componentName===`HtFeeMethodTypeLineView`){let e=String(a?.storageKey||``).trim(),t=String(a?.rowId||``).trim(),o=e.includes(`-reserve`)?r(`htSummary.reservePrefix`):e.includes(`-additional-work`)?r(`htSummary.additionalPrefix`):String(a?.sourceTitle||``),s=e&&d.getHtFeeMainState(e)?.detailRows||[],c=Gt(e,t,(Array.isArray(s)?String(s.find(e=>String(e?.id||``)===t)?.name||``).trim():``)||String(a?.rowName||``).trim()),l=r(`htFeeGrid.editTabTitle`,{name:c||r(`htFeeGrid.unnamed`)}),u={...a||{},sourceTitle:o,rowName:c};return i.title===l&&String(a?.rowName||``)===String(u.rowName||``)&&String(a?.sourceTitle||``)===String(u.sourceTitle||``)?i:(n=!0,{...i,title:l,props:u})}return i}),n&&Wn()},Yt=()=>{v.value=!1,C.value=!1,T.value=!1},Xt=async()=>{let e=Ge();ue.value=Array.from(Hn(e.map(e=>e.id))),ce.value=await Promise.all(e.map(async e=>{try{let t=await Tn.default.createInstance({name:Ee(e.id),storeName:`pinia-kv`}).getItem(`pinia-kv`),n=(t?.entries&&typeof t.entries==`object`?t.entries:null)?.[xf],r=n&&typeof n==`object`&&typeof n.projectName==`string`?n.projectName.trim():``;return{...e,name:r||e.name}}catch{return e}}))},Qt=e=>ue.value.includes(e),$t=()=>{let e=new Date;return`${String(e.getFullYear())}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`},en=()=>{if(Ge().length>=Tf){T.value=!1,A.value=!0;return}T.value=!1,O.value=String(Ht[0]?.id||``),D.value=!0},nn=()=>{k.value||(D.value=!1)},rn=async()=>{if(k.value)return;if(Ge().length>=Tf){T.value=!1,D.value=!1,A.value=!0;return}let e=String(O.value||``).trim();if(e){k.value=!0;try{let t=Ye(a),n=En(t.id);await n.setItem(xf,{projectIndustry:e,projectName:a,preparedBy:``,reviewedBy:``,preparedCompany:``,preparedDate:$t()}),await Cn(n,e,Cf,wf),await wn(n,e,Sf),Xt();let r=Te(t.id);window.open(r,`_blank`,`noopener`),D.value=!1}finally{k.value=!1}}},an=e=>{k.value||(D.value=e)},sn=()=>{rn(),T.value=!1},cn=()=>{T.value=!1;let e=Te(fe.value||Re(),{forceHome:!0});window.location.href=e},ln=e=>{let t=new Date(e);if(Number.isNaN(t.getTime()))return`-`;let n=e=>String(e).padStart(2,`0`);return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())} ${n(t.getHours())}:${n(t.getMinutes())}`},dn=async e=>{let t=e.id===fe.value,n=e=>new Promise(t=>{try{let n=window.indexedDB?.deleteDatabase(e);if(!n){t();return}n.onsuccess=()=>t(),n.onerror=()=>t(),n.onblocked=()=>t()}catch{t()}}),r=async()=>{await ar.clear(),await Promise.all(sr().map(async({store:e})=>{await e.clear()}));let e=[];u.$clearPersisted&&e.push(u.$clearPersisted()),d.$clearPersisted&&e.push(d.$clearPersisted()),f.$clearPersisted&&e.push(f.$clearPersisted()),p.$clearPersisted&&e.push(p.$clearPersisted()),m.$clearPersisted&&e.push(m.$clearPersisted()),await Promise.all(e)};if(t){if(window.dispatchEvent(new CustomEvent(`jgjs-release-project-lock`)),await r(),await n(Ee(e.id)),!Ke(e.id))return;Yl(e.id),ye(`project`),u.resetTabs(),u.hasCompletedSetup=!1,window.location.href=Te(`default`,{forceHome:!0});return}if(Ke(e.id)){Yl(e.id);try{await n(Ee(e.id))}catch(e){console.error(`delete project database failed:`,e)}await Xt()}},fn=e=>{M.value=e,j.value=!0},pn=e=>{j.value=e},hn=(e,t)=>{B.value=e,K.value=t,N.value=!0},gn=()=>{_()},_n=()=>{j.value=!1,M.value=null},vn=async()=>{let e=M.value;e&&(j.value=!1,M.value=null,await dn(e))},yn=e=>{let t=String(e||``).trim();!t||t===fe.value||(He(t),ye(`project`),window.location.href=Te(t,{forceHome:!1,newProject:!1}))},bn=()=>{try{localStorage.setItem(yf,`1`)}catch(e){console.error(`mark guide completed failed:`,e)}},xn=()=>{try{return localStorage.getItem(yf)===`1`}catch(e){return console.error(`read guide completion failed:`,e),!1}},Sn=()=>{try{let e=localStorage.getItem(`tabs`);if(!e)return!1;let t=JSON.parse(e),n=(Array.isArray(t?.tabs)?t.tabs:[]).some(e=>e?.id&&e.id!==`ProjectCalcView`),r=typeof t?.activeTabId==`string`?t.activeTabId:``;return n||r!==``&&r!==`ProjectCalcView`}catch(e){return console.error(`parse tabs cache failed:`,e),!1}},Dn=async()=>{if(xn()||Sn())return!1;try{return(await m.keys()).length===0}catch(e){return console.error(`read kv keys failed:`,e),!1}},On=(e=0)=>{Yt(),Ce.value=Math.min(Math.max(e,0),c.value.length-1),Se.value=!0},kn=(e=!1)=>{Se.value=!1,e&&bn()},An=()=>{mt.value||--Ce.value},jn=()=>{if(gt.value){kn(!0);return}Ce.value+=1},Mn=e=>{Ce.value=Math.min(Math.max(e,0),c.value.length-1)},Nn=(e,t)=>{x.value=t,y.value=e.clientX,b.value=e.clientY,v.value=!0,L(()=>{if(!S.value)return;let e=S.value.getBoundingClientRect();y.value+e.width+8>window.innerWidth&&(y.value=Math.max(8,window.innerWidth-e.width-8)),b.value+e.height+8>window.innerHeight&&(b.value=Math.max(8,window.innerHeight-e.height-8)),y.value<8&&(y.value=8),b.value<8&&(b.value=8)})},Pn=e=>{let t=e.target;v.value&&S.value&&!S.value.contains(t)&&(v.value=!1),C.value&&w.value&&!w.value.contains(t)&&(C.value=!1),T.value&&E.value&&!E.value.contains(t)&&(T.value=!1)},Fn=e=>{if(Se.value){if(e.key===`Escape`){e.preventDefault(),kn(!1);return}if(e.key===`ArrowLeft`){e.preventDefault(),An();return}e.key===`ArrowRight`&&(e.preventDefault(),jn())}},In=e=>{e===`all`&&u.closeAllTabs(),e===`left`&&u.closeLeftTabs(x.value),e===`right`&&u.closeRightTabs(x.value),e===`other`&&u.closeOtherTabs(x.value),v.value=!1},Ln=e=>{let t=e?.draggedContext?.element?.id,n=e?.relatedContext?.index;return!(t===u.tabs[0]?.id||typeof n==`number`&&n===0)},Rn=()=>{Ie.value=!0},zn=()=>{Ie.value=!1},Bn=(e,t)=>{if(t instanceof HTMLElement){De.set(e,t);return}De.delete(e),Oe.delete(e),delete Le.value[e],Wn()},Vn=(e,t)=>{if(t instanceof HTMLElement){Oe.set(e,t),Wn();return}Oe.delete(e),delete Le.value[e],Wn()},Un=()=>{let e={};for(let[t,n]of Oe.entries())e[t]=n.scrollWidth>n.clientWidth+1;Le.value=e},Wn=()=>{qe??=requestAnimationFrame(()=>{qe=null,Un()})},Gn=(e,t)=>{if(t instanceof HTMLElement){ke.set(e,t);return}ke.delete(e)},Kn=e=>{if(e instanceof HTMLElement){je.value=e;return}let t=e&&typeof e==`object`&&`$el`in e?e.$el:null;je.value=t instanceof HTMLElement?t:null},qn=()=>je.value?.querySelector(`[data-slot="scroll-area-viewport"]`)||null,Jn=()=>{let e=qn();if(!e){Me.value=!1,Pe.value=!1;return}let t=Math.max(0,e.scrollWidth-e.clientWidth);Me.value=e.scrollLeft>1,Pe.value=e.scrollLeft<t-1},Yn=()=>{Jn()},Xn=()=>{let e=qn();if(We===e){Jn();return}We&&We.removeEventListener(`scroll`,Yn),We=e,We&&We.addEventListener(`scroll`,Yn,{passive:!0}),Jn()},Zn=e=>{let t=qn();t&&(t.scrollBy({left:e,behavior:`smooth`}),requestAnimationFrame(Jn))},Qn=()=>{let e=u.activeTabId,t=De.get(e);t&&t.scrollIntoView({behavior:`smooth`,block:`nearest`,inline:`nearest`})},$n=e=>{if(!e)return null;let t=ke.get(e);return t?t.querySelector(`[data-slot="scroll-area-viewport"]`):null},er=e=>`tab-scroll-top:${e}`,tr=e=>{if(!e)return;let t=$n(e);if(!t)return;let n=t.scrollTop||0;try{sessionStorage.setItem(er(e),String(n))}catch(e){console.error(`save tab scroll failed:`,e)}},nr=e=>{if(!e)return;let t=$n(e);if(!t)return;let n=0;try{n=Number(sessionStorage.getItem(er(e))||`0`)||0}catch(e){console.error(`restore tab scroll failed:`,e)}t.scrollTop=n},rr=e=>{e&&requestAnimationFrame(()=>{nr(e),requestAnimationFrame(()=>{nr(e)})})},ir=e=>Tn.default.createInstance({name:o,storeName:e}),ar=Tn.default.createInstance({name:o}),or=e=>`${Ef}-${e}`,sr=()=>s.map(e=>{let t=or(e);return{storeName:t,store:ir(t)}}),cr=async()=>{try{let e=new Date,t=Re(),n=await Promise.all(sr().map(async({storeName:e,store:t})=>({storeName:e,entries:await Pl(t)}))),r={version:3,packageType:`project-snapshot`,exportedAt:e.toISOString(),projectId:t,localStorage:[],sessionStorage:[],localforageDefault:await Pl(ar),localforageStores:n},i=await hl(r),a=new Uint8Array(i.length);a.set(i);let o=new Blob([a],{type:`application/octet-stream`}),s=URL.createObjectURL(o),c=document.createElement(`a`);c.href=s,c.download=`${zl(r.localforageDefault,xf,Sf)}-${Cl(e)}.zw`,document.body.appendChild(c),c.click(),document.body.removeChild(c),URL.revokeObjectURL(s)}catch(e){console.error(`export failed:`,e),hn(r(`tab.toast.failed`),r(`ht.retry`))}finally{C.value=!1}},lr=()=>{he.value?.click()},ur=async()=>{br()};Y([{contractName:`XX城市综合体项目`,items:[{code:`D1`,name:`全过程造价咨询`,amount:111,finalFee:1111,fee:111},{code:`D2-1`,name:`前期阶段造价咨询`,amount:112,finalFee:1112,fee:112},{code:`D2-2-1`,name:`实施阶段造价咨询`,amount:113,finalFee:1113,fee:113},{code:`D3-1`,name:`投资估算`,amount:114,finalFee:1114,fee:114},{code:`D3-2`,name:`设计概算`,amount:115,finalFee:1115,fee:115}],totalFinalFee:5575},{contractName:`YY科技园区项目`,items:[{code:`D1`,name:`全过程造价咨询`,amount:222,finalFee:2222,fee:222},{code:`D2-1`,name:`前期阶段造价咨询`,amount:223,finalFee:2223,fee:223},{code:`D2-2-1`,name:`实施阶段造价咨询`,amount:224,finalFee:2224,fee:224},{code:`D3-1`,name:`投资估算`,amount:225,finalFee:2225,fee:225},{code:`D3-2`,name:`设计概算`,amount:226,finalFee:2226,fee:226}],totalFinalFee:11125},{contractName:`ZZ商业中心项目`,items:[{code:`D1`,name:`全过程造价咨询`,amount:333,finalFee:3333,fee:333},{code:`D2-1`,name:`前期阶段造价咨询`,amount:334,finalFee:3334,fee:334},{code:`D2-2-1`,name:`实施阶段造价咨询`,amount:335,finalFee:3335,fee:335},{code:`D3-1`,name:`投资估算`,amount:336,finalFee:3336,fee:336},{code:`D3-2`,name:`设计概算`,amount:337,finalFee:3337,fee:337}],totalFinalFee:16675}]).value.forEach(e=>{e.totalFinalFee||=e.items.reduce((e,t)=>e+t.finalFee,0)}),Z(()=>nu().items,async e=>{Object.keys(e).length>0&&dr()},{immediate:!0,deep:!0}),Y(!1),Y(`准备就绪`);let dr=async()=>{let e=await m.getItem(xf),n={projectName:``,projectScaleRaw:null,contracts:[]};n.projectName=e.projectName,n.projectScaleRaw=await m.getItem(Sf);for(let e=0;e<t.value.length;e++){let r=t.value[e],i=await nu().query([{field:`type`,value:`${r.id}-zxFw`,operator:`eq`}]),a=await nu().query([{field:`type`,value:`${r.id}-investment`,operator:`eq`}]),o=await nu().query([{field:`type`,value:`${r.id}-hourly`,operator:`eq`}]),s=await nu().query([{field:`type`,value:`${r.id}-task`,operator:`eq`}]),c=await nu().query([{field:`type`,value:`${r.id}-Quantityofwork`,operator:`eq`}]),l=await nu().query([{field:`type`,value:`${r.id}-otherservice`,operator:`eq`}]),u=await nu().query([{field:`type`,value:`${r.id}-Htbaseinfo`,operator:`eq`}]),d=await nu().query([{field:`type`,value:`${r.id}-workcontent`,operator:`eq`}]),f={contract:r.name,investmentRows:a,hourlyRows:o,taskRows:s,zxRows:i,QuantityofworkRows:c,otherServicelist:l,HtBaselist:u,workcontentlist:d};n.contracts.push(f)}return n};function fr(e){let t={};for(let n of e){if(!n.checked)continue;let e=n.path?.[0]||`未分组`;t[e]||(t[e]=[]),t[e].push({content:n.content})}return Object.entries(t).map(([e,t])=>({groupName:e,children:t}))}let pr=async()=>{try{let e=await fetch(`/template-doc.docx`);if(!e.ok){alert(`找不到模板文件public/template-doc.docx`);return}let t=new pd.default(new md.default(await e.arrayBuffer())),n=await m.getItem(xf),r=await dr(),i={projectName:n?.projectName,preparedBy:n?.preparedBy,reviewedBy:n?.reviewedBy,preparedCompany:n?.preparedCompany,preparedDate:n?.preparedDate,overview:n?.overview,contractCount:r.contracts.length,desc:n?.desc,contracts:[],text6:``},a=[];for(let e=0;e<r.contracts.length;e++){let t=r.contracts[e],n=t.HtBaselist?.[0]||{},i=``;for(let e=0;e<t.zxRows.length;e++){let n=t.zxRows[e].name;e===0?i=n:i+=`,`+n}let o=[{groupName:` 通用工作`,children:[{content:`收集并整理各阶段及各项造价咨询所需的基础资料,审核基础资料的完整性和合理性`},{content:`编制造价咨询服务总体及各分项的服务计划、服务大纲及工作方案`},{content:`了解建设工程项目所在地的建设条件`}]}];o.push(...fr(r.contracts[e].workcontentlist)),o.push({groupName:`通用工作`,children:[{content:`协助委托人完成咨询服务相应造价文件的报审、报备、报批、检查与审计涉及的解释与回复、修改与调整等工作`},{content:`完成本合同造价档案的收集、整理和归档`}]});let s={contractName:`第${e+1}号合同`,contractType:i,quality:n.quality||`无`,duration:n.duration||`无`,work:o};a.push(s)}i.contracts=a;let o=[];for(let e=0;e<r.contracts.length;e++){let t=0;for(let n=0;n<r.contracts[e].zxRows.length;n++)t+=r.contracts[e].zxRows[n].finalFee||0;o.push(t)}let s=`本项目造价咨询服务总费用为${o.reduce((e,t)=>e+t,0)}元。其中`;o.forEach((e,t)=>{s+=`,第${t+1}合同${e}元`}),s+=`。计算过程详见相关计算表格。`,i.text6=s,t.setData(i),t.render();let c=t.getZip().generate({type:`uint8array`,mimeType:`application/vnd.openxmlformats-officedocument.wordprocessingml.document`});(0,Rs.saveAs)(new Blob([c]),`建设工程造价咨询服务收费参考标准(试行)》在线计算工具编制说明.docx`)}catch(e){console.error(`导出失败:`,e),alert(`导出失败:`+e.message)}},mr=e=>(e instanceof Error?e.message:``)===`ZW_CRYPTO_UNAVAILABLE`?r(`tab.messages.importCryptoUnavailable`):r(`tab.messages.importInvalidFile`),hr=async(e,t)=>{if(!e.name.toLowerCase().endsWith(`.zw`))throw Error(`INVALID_FILE_EXT`);let n=await gl(await e.arrayBuffer());if(!Bl(n))throw Error(`INVALID_DATA_PACKAGE`);if(ve.value=n,be.value=e.name,t?.skipConfirm){await _r();return}_e.value=!0},gr=()=>{_e.value=!1,ve.value=null,be.value=``},_r=async()=>{let e=ve.value;if(e)try{await Fl(ar,Il(e.localforageDefault));let t=Ll(e.localforageStores),n=new Map(t.map(e=>[e.storeName,e.entries]));await Promise.all(sr().map(async({storeName:e,store:t})=>{await Fl(t,n.get(e)||[])}));let r=e=>{let t=or(e),r=(n.get(t)||[]).find(e=>e.key===t);return r&&r.value&&typeof r.value==`object`?r.value:null},i=r(`tabs`);i?u.$patch(i):u.resetTabs();let a=r(`zxFwPricing`);a&&d.$patch(a);let o=r(`zxFwPricingKeys`);o&&f.$patch(o);let s=r(`zxFwPricingHtFee`);s&&p.$patch(s);let c=r(`kv`);c&&m.$patch(c),Jt(),await Promise.all([u.$persistNow?.(),d.$persistNow?.(),f.$persistNow?.(),p.$persistNow?.(),m.$persistNow?.()]),C.value=!1,window.location.reload()}catch(e){console.error(`import apply failed:`,e),hn(r(`tab.messages.importFailedTitle`),r(`tab.messages.importWriteError`))}finally{gr()}},vr=async()=>{if($.value)return;at.value=Ve();let e=e=>new Promise(t=>setTimeout(t,e)),t=Date.now(),n=Array.from(new Set([`default`,`quick`,...Ge().map(e=>e.id)])),r=e=>new Promise(t=>{try{let n=window.indexedDB?.deleteDatabase(e);if(!n){t();return}n.onsuccess=()=>t(),n.onerror=()=>t(),n.onblocked=()=>{t()}}catch{t()}}),i=async()=>{await Promise.all(n.map(e=>r(Ee(e))))};try{$.value=!0,C.value=!1,T.value=!1,Zl(),window.dispatchEvent(new CustomEvent(`jgjs-release-project-lock`));let n=typeof localStorage<`u`?localStorage.getItem(bf):null,r=typeof localStorage<`u`?localStorage.getItem(ze):null,a=typeof localStorage<`u`?localStorage.getItem(tn):null;localStorage.clear(),n!=null&&localStorage.setItem(bf,n),r!=null&&localStorage.setItem(ze,r),a!=null&&localStorage.setItem(tn,a),sessionStorage.clear(),await ar.clear(),await Promise.all(sr().map(async({store:e})=>{await e.clear()}));let o=[];u.$clearPersisted&&o.push(u.$clearPersisted()),d.$clearPersisted&&o.push(d.$clearPersisted()),m.$clearPersisted&&o.push(m.$clearPersisted()),await Promise.all(o),await i(),Be(`default`),ye(`project`),localStorage.setItem(yf,`1`);let s=Date.now()-t;s<Df&&await e(Df-s),window.location.reload()}catch(e){console.error(`reset failed:`,e),$.value=!1,at.value=``}},yr=e=>{$.value||(me.value=e)},br=async()=>{let e=await dr(),t=e.projectName;console.log(e);let n=new tu.default.Workbook,r=n.addWorksheet(`报告目录`),i=[[`目录`],[`序号`,`文件名称`,`表格或文件编号`,`页码`],[`一、造价咨询服务费用计算编制说明`],[`二、项目服务费用汇总表`],[`1`,`项目服务费用汇总表`,`费总01表`,``]];for(let t=0;t<e.contracts.length;t++){let e=[[`三、合同服务费用表-第${t+1}合同`],[`1`,`合同服务费用汇总表-第${t+1}合同段`,`费${t+1}-1表`,``],[`2`,`合同服务费用汇总明细表-第${t+1}合同段`,`费${t+1}-2表`,``],[`3`,`投资规模法计算明细表-第${t+1}合同段`,`费${t+1}-3表`,``],[`4`,`工程量法计算明细表-第${t+1}合同段`,`费${t+1}-4表`,``],[`5`,`工作量法计算明细表-第${t+1}合同段`,`费${t+1}-5表`,``],[`6`,`工时法计算明细表-第${t+1}合同段`,`费${t+1}-6表`,``],[`7`,`其他服务计算明细表-第${t+1}合同段`,`费${t+1}-7表`,``]];i.push(...e)}i.forEach(e=>r.addRow(e)),i.forEach((e,t)=>{let n=t+1;e.length===1&&e[0]&&r.mergeCells(`A${n}:D${n}`)}),r.columns=[{width:5},{width:35},{width:16},{width:15}],r.getRow(1).height=30;for(let e=2;e<=i.length;e++)r.getRow(e).height=20;let a=r.getCell(`A1`);a.alignment={horizontal:`center`,vertical:`middle`},a.font={bold:!0,size:16},[`A2`,`B2`,`C2`,`D2`].forEach(e=>{let t=r.getCell(e);t.alignment={horizontal:`center`,vertical:`middle`},t.font={bold:!0,size:9},t.border={top:{style:`thin`},left:{style:`thin`},bottom:{style:`thin`},right:{style:`thin`}}});for(let e=1;e<=i.length;e++){let t=i[e-1],n=t.length===1,a=e===2,o=t.length>=3&&!a&&!n;if(n){let t=r.getCell(`A${e}`);t.alignment={horizontal:`center`,vertical:`middle`},t.font={bold:!0,size:9},t.border={top:{style:`thin`},left:{style:`thin`},bottom:{style:`thin`},right:{style:`thin`}}}if(o){let t=r.getCell(`A${e}`);t.alignment={horizontal:`center`,vertical:`middle`},t.border={top:{style:`thin`},left:{style:`thin`},bottom:{style:`thin`},right:{style:`thin`}},t.font={size:9};let n=r.getCell(`B${e}`);n.alignment={horizontal:`left`,vertical:`middle`},n.border={top:{style:`thin`},left:{style:`thin`},bottom:{style:`thin`},right:{style:`thin`}},n.font={size:9};let i=r.getCell(`C${e}`);i.alignment={horizontal:`center`,vertical:`middle`},i.border={top:{style:`thin`},left:{style:`thin`},bottom:{style:`thin`},right:{style:`thin`}},i.font={size:9};let a=r.getCell(`D${e}`);a.alignment={horizontal:`center`,vertical:`middle`},a.border={top:{style:`thin`},left:{style:`thin`},bottom:{style:`thin`},right:{style:`thin`}},a.font={size:9}}}let o=n.addWorksheet(`费总01`),s=[[`项目服务费用汇总表`],[`项目名称:${t}`,``,``,``,``,``,`预总01表`],[``,`小计`,``,``,``,``,``]],c=[`序号`,`编码`,`名称`];for(let t=0;t<e.contracts.length;t++)c.push(`第${t+1}合同费用(元)`);c.push(`费用小计(元)`),s.push(c);let l=[],u=Object.values(Vt);for(let t=0;t<u.length;t++){let n=[`${t+1}`,u[t].code,u[t].name],r=0;for(let i=0;i<e.contracts.length;i++){let a=e.contracts[i];if(!a||!a.zxRows){n.push(`0`);continue}let o=a.zxRows.find(e=>e.code===u[t].code);o?(n.push(o.subtotal||0),r+=o.subtotal||0):n.push(`0`)}n.push(r),l.push(n)}s.push(...l);let d=[String(u.length+2),`/`,`其他服务`],f=0;for(let t=0;t<e.contracts.length;t++){let n=0;for(let r=0;r<e.contracts[t].otherServicelist.length;r++){let i=Number(e.contracts[t].otherServicelist[r]?.serviceFee)||0;n+=i}d.push(n),f+=n}d.push(f),s.push(d),s.forEach(e=>o.addRow(e));let p=s.length,m=c.length,h=o.addRow([`小计`,``,``,...Array(m-3).fill(``)]);for(let e=4;e<=m;e++)h.getCell(e).value={formula:`SUM(${o.getCell(4,e).address}:${o.getCell(p,e).address})`},h.getCell(e).font={bold:!0,size:9};o.mergeCells(1,1,1,m),o.mergeCells(2,1,2,m-1),o.mergeCells(p+1,1,p+1,3),o.columns=[{width:5},{width:6},{width:20},...Array(m-3).fill({width:15})],o.getRow(1).height=21,o.getRow(2).height=14;for(let e=3;e<=p+1;e++)o.getRow(e).height=void 0;let g=o.getCell(1,1);g.alignment={horizontal:`center`,vertical:`middle`},g.font={bold:!0,size:16};let _=o.getCell(2,1),v=o.getCell(2,m);_.alignment={horizontal:`left`,vertical:`middle`},v.alignment={horizontal:`right`,vertical:`middle`},_.font={size:9},v.font={size:9};let y=o.getRow(3);for(let e=1;e<=m;e++){let t=y.getCell(e);t.alignment={horizontal:`center`,vertical:`middle`},t.font={bold:!0,size:9},t.border={top:{style:`thin`},left:{style:`thin`},bottom:{style:`thin`},right:{style:`thin`}}}let b=p;for(let e=4;e<=b;e++){let t=o.getRow(e);for(let e=1;e<=m;e++){let n=t.getCell(e);n.font={size:9},n.border={top:{style:`thin`},left:{style:`thin`},bottom:{style:`thin`},right:{style:`thin`}},e===1?n.alignment={horizontal:`center`,vertical:`middle`}:e===2?n.alignment={horizontal:`left`,vertical:`middle`}:e===3?n.alignment={horizontal:`left`,vertical:`middle`,wrapText:!0}:(n.alignment={horizontal:`left`,vertical:`middle`,wrapText:!0},e===m&&(n.font={bold:!0,size:9}))}}let x=h.getCell(1);x.alignment={horizontal:`center`,vertical:`middle`},x.font={size:9};for(let r=0;r<e.contracts.length;r++){let i=n.addWorksheet(`${r+1}-1合同汇总表`),a=[[`合同服务费用汇总表-第${r+1}合同`],[`合同名称:${t}`,``,``,``,``,``,``,`费${r+1}-1表`],[`序号`,`编码`,`名称`,`收费基数`,``,``,`费用(元)`,`折算单价(费率)`],[``,``,``,`基数类别`,`单位`,`基数额`,``,``]],o=[],s=0;for(let t=0;t<e.contracts[r].investmentRows.length;t++){let n=e.contracts[r].investmentRows[t];if(n.groupCode===`F3-6-1`){s=1;let n=e.contracts[r].zxRows.find(e=>e.code==`F3-6`);o.push([t+1,`F3-6`,`工程造价纠纷调解`,`/`,`/`,`/`,n.finalFee,`/`])}let i=[{label:`估算价`,value:`0`},{label:`概算价`,value:`1`},{label:`预算价`,value:`2`},{label:`招标控制价`,value:`3`},{label:`投标报价`,value:`4`},{label:`合同签订价`,value:`5`},{label:`合同结算价`,value:`6`},{label:`决算价`,value:`7`}].find(e=>e.value==n.basetype),a=e.contracts[r].zxRows.find(e=>e.code==n.groupCode),c=0;c=n.amount==0||n.amount===``||n.amount===null?0:((a?.finalFee||0)/n.amount).toFixed(2),o.push([t+1+s,n.groupCode,n.majorName,i?.label,`万元`,n.amount,a.finalFee,c])}let c=e.contracts[r].QuantityofworkRows;c.forEach((t,n)=>{let i=e.contracts[r].zxRows.find(e=>e.code==t.majorCode),a=0;a=t.amount==0||t.amount==``||t.amount===null?0:(i.finalFee/t.amount).toFixed(2),o.push([e.contracts[r].investmentRows.length+n+1+s,t.majorCode,t.majorName,`确认钢筋数量`,`吨`,t.amount,i.finalFee,a])});for(let t=0;t<e.contracts[r].taskRows.length;t++){let n=e.contracts[r].taskRows[t],i=e.contracts[r].zxRows.find(e=>e.code==n.taskCode),a=0;a=!n.cHigh||n.cHigh==0||n.cHigh==null?0:Number((i.finalFee/n.cHigh).toFixed(2)),o.push([e.contracts[r].investmentRows.length+c.length+t+1+s,n.taskCode,n.taskName,`条目数量`,`条`,n.cHigh,i.finalFee,a])}if(e.contracts[r].otherServicelist.length){let t=[];for(let n=0;n<e.contracts[r].otherServicelist.length;n++){let i=e.contracts[r].otherServicelist[n];t.push([e.contracts[r].investmentRows.length+c.length+s+n+1,`/`,i.feeItem,i.unit,`/`,`/`,i.serviceFee,`/`])}o.push(...t)}console.log(o),o.push([``,`咨询服务费用合计`,``,``,``,``,``,``]),a.push(...o),a.forEach(e=>i.addRow(e)),a.length-1;let l=a.length;i.mergeCells(1,1,1,8),i.mergeCells(2,1,2,7),i.mergeCells(3,4,3,6),i.mergeCells(3,1,4,1),i.mergeCells(3,2,4,2),i.mergeCells(3,3,4,3),i.mergeCells(3,7,4,7),i.mergeCells(3,8,4,8),i.mergeCells(l,2,l,3),i.columns=[{width:4},{width:8},{width:13},{width:10},{width:10},{width:15},{width:12},{width:10}],i.getRow(1).height=21,i.getRow(2).height=14,i.getRow(3).height=16,i.getRow(4).height=14;for(let e=5;e<=l;e++)i.getRow(e).height=void 0;let u=i.getCell(1,1);u.alignment={horizontal:`center`,vertical:`middle`},u.font={bold:!0,size:16};let d=i.getCell(2,1),f=i.getCell(2,8);d.alignment={horizontal:`left`,vertical:`middle`},f.alignment={horizontal:`right`,vertical:`middle`},d.font={size:9},f.font={size:9},[3,4].forEach(e=>{let t=i.getRow(e);for(let e=1;e<=8;e++){let n=t.getCell(e);n.alignment={horizontal:`center`,vertical:`middle`},n.font={bold:!0,size:9},n.border={top:{style:`thin`},left:{style:`thin`},bottom:{style:`thin`},right:{style:`thin`}}}});let p=l-1;for(let e=5;e<=p;e++){let t=i.getRow(e);for(let e=1;e<=8;e++){let n=t.getCell(e);n.font={size:9},n.border={top:{style:`thin`},left:{style:`thin`},bottom:{style:`thin`},right:{style:`thin`}},e===1?n.alignment={horizontal:`center`,vertical:`middle`}:e===2?n.alignment={horizontal:`left`,vertical:`middle`}:e===3?n.alignment={horizontal:`left`,vertical:`middle`,wrapText:!0}:e===4||e===5?n.alignment={horizontal:`center`,vertical:`middle`}:e===6?n.alignment={horizontal:`left`,vertical:`middle`,wrapText:!0}:e===7?n.alignment={horizontal:`center`,vertical:`middle`}:e===8&&(n.alignment={horizontal:`left`,vertical:`middle`,wrapText:!0})}}let m=i.getCell(l,2);m.alignment={horizontal:`center`,vertical:`middle`},m.font={size:9},i.views=[{state:`frozen`,ySplit:4,xSplit:3,topLeftCell:`A5`}];let h=n.addWorksheet(`费${r+1}-2合同汇总明细表`),g=[[`合同服务费用汇总明细表-第${r+1}合同`],[`合同名称:${t}`,``,``,``,``,``,``,``,`费${r+1}-2表`],[`编码`,`名称`,`工作环节`,`投资规模法(元)`,`工作量法(元)`,`工时法(元)`,`小计(元)`,`确认金额(元)`,`备注`]];for(let t=0;t<e.contracts[r].zxRows.length;t++){let n=e.contracts[r].zxRows[t],i=[`编制`,`审查`][n.process]||`无选项或未选项`;g.push([n.code,n.name,i,n.investScale,n.serviceFee,n.hourly,n.subtotal,n.finalFee,n.remark])}if(e.contracts[r].otherServicelist.length){let t=[];for(let n=0;n<e.contracts[r].otherServicelist.length;n++){let i=e.contracts[r].otherServicelist[n];t.push([`/`,i.feeItem,`/`,`/`,`/`,`/`,i.serviceFee,i.serviceFee,i.remake])}g.push(...t)}g.push([`小计`,``,``,``,``,``,``,``,``],[`说明`,`本表所有信息与数据都来自“合同费用汇总表”`,``,``,``,``,``,``,``]),g.forEach(e=>h.addRow(e));let _=g.length,v=_-1,y=_;h.mergeCells(`A1:I1`),h.mergeCells(`A2:H2`),h.mergeCells(`A${v}:C${v}`),h.mergeCells(`B${y}:I${y}`),h.columns=[{width:10},{width:20},{width:12},{width:16},{width:16},{width:16},{width:16},{width:16},{width:18}],h.getRow(1).height=30;for(let e=2;e<=_;e++){let t=h.getRow(e);t.height=void 0}let b=[`A`,`B`,`C`,`D`,`E`,`F`,`G`,`H`,`I`],x=h.getCell(`A1`);x.font={bold:!0,size:16};for(let e=2;e<=_;e++)b.forEach(t=>{let n=h.getCell(`${t}${e}`);n.font={size:9}});x.alignment={horizontal:`center`,vertical:`middle`};let S=h.getCell(`A2`);S.alignment={horizontal:`left`,vertical:`middle`};let C=h.getCell(`I2`);C.alignment={horizontal:`right`,vertical:`middle`},b.forEach(e=>{let t=h.getCell(`${e}3`);t.alignment={horizontal:`center`,vertical:`middle`},t.font={bold:!0,size:9},t.border={top:{style:`thin`},left:{style:`thin`},bottom:{style:`thin`},right:{style:`thin`}}});for(let e=4;e<=v-1;e++)b.forEach(t=>{let n=h.getCell(`${t}${e}`);t===`A`||t===`B`?n.alignment={horizontal:`left`,vertical:`middle`,wrapText:!0}:n.alignment={horizontal:`center`,vertical:`middle`},n.border={top:{style:`thin`},left:{style:`thin`},bottom:{style:`thin`},right:{style:`thin`}}});let w=v;h.getCell(`D${w}`).value={formula:`SUM(D4:D${w-1})`},h.getCell(`E${w}`).value={formula:`SUM(E4:E${w-1})`},h.getCell(`F${w}`).value={formula:`SUM(F4:F${w-1})`},h.getCell(`G${w}`).value={formula:`SUM(G4:G${w-1})`},h.getCell(`H${w}`).value={formula:`SUM(H4:H${w-1})`},b.forEach(e=>{let t=h.getCell(`${e}${w}`);t.alignment={horizontal:`center`,vertical:`middle`},t.font={bold:!0,size:9},t.border={top:{style:`thin`},left:{style:`thin`},bottom:{style:`thin`},right:{style:`thin`}}});let T=h.getCell(`A${y}`);T.alignment={horizontal:`left`,vertical:`middle`,wrapText:!0},T.font={bold:!0},h.views=[{state:`frozen`,ySplit:3,xSplit:0,topLeftCell:`A4`}];let E=n.addWorksheet(`费${r+1}-3规模法`),D=[[`投资规模法计算明细表`],[`合同名称:${t}`,``,``,``,``,``,``,``,`费${r+1}-3表`],[`编码`,`名称`,`工程类别`,`计算基础`,`计算基数(万元)`,`计算公式`,`计算金额(元)`,`本计算取值`,``,``,`说明`],[``,``,``,``,``,``,``,`工作环节系数`,`工作比率与数量比`,`服务费用(元)`,``]],O=[],k=0,A=0,j=0;for(let t=0;t<e.contracts[r].investmentRows.length;t++){let n=e.contracts[r].investmentRows[t],i=Object.values(Wt).find((e,t)=>t==n.majortype),a=[{label:`建设项目总费用`,value:`0`},{label:`建安工程费用`,value:`1`},{label:`征地拆迁费用`,value:`2`},{label:`工程建设其他费用`,value:`3`},{label:`其他`,value:`4`}].find((e,t)=>t==n.computbase);k+=Number(n.amount)||0,A+=Number(n.budgetFee)||0,j+=Number(n.serviceFee)||0,O.push([n.majorCode,n.majorName,i?.name||``,a?.label||``,n.amount,n.optionalFormula,n.budgetFee,n.workStageFactor,n.workRatio,n.serviceFee,n.remark])}O.push([`小计`,`/`,`/`,`/`,k,`/`,A,`/`,`/`,j,`/`]),D.push(...O),D.forEach(e=>E.addRow(e));let M=D.length,N=M;E.mergeCells(`A1:K1`),E.mergeCells(`A2:H2`),E.mergeCells(`I2:K2`),E.mergeCells(`A3:A4`),E.mergeCells(`B3:B4`),E.mergeCells(`C3:C4`),E.mergeCells(`D3:D4`),E.mergeCells(`E3:E4`),E.mergeCells(`F3:F4`),E.mergeCells(`G3:G4`),E.mergeCells(`K3:K4`),E.mergeCells(`H3:J3`),E.mergeCells(`A${N}:B${N}`),E.columns=[{width:7},{width:16},{width:14},{width:13},{width:15},{width:25},{width:15},{width:15},{width:15},{width:15},{width:15}],E.getRow(1).height=30;for(let e=1;e<=M;e++){let t=E.getRow(e);e!==1&&(t.height=void 0)}let P=[`A`,`B`,`C`,`D`,`E`,`F`,`G`,`H`,`I`,`J`,`K`];for(let e=1;e<=M;e++)P.forEach(t=>{let n=E.getCell(`${t}${e}`);n.font={size:9}});let F=E.getCell(`A1`);F.alignment={horizontal:`center`,vertical:`middle`},F.font={bold:!0,size:16};let I=E.getCell(`A2`);I.alignment={horizontal:`left`,vertical:`middle`};let ee=E.getCell(`I2`);ee.alignment={horizontal:`right`,vertical:`middle`},[`A3`,`B3`,`C3`,`D3`,`E3`,`H3`,`F3`,`G3`,`K3`].forEach(e=>{let t=E.getCell(e);t.alignment={horizontal:`center`,vertical:`middle`},t.font={bold:!0},t.border={top:{style:`thin`},left:{style:`thin`},bottom:{style:`thin`},right:{style:`thin`}}}),[`H4`,`I4`,`J4`].forEach(e=>{let t=E.getCell(e);t.alignment={horizontal:`center`,vertical:`middle`},t.font={bold:!0},t.border={top:{style:`thin`},left:{style:`thin`},bottom:{style:`thin`},right:{style:`thin`}}});for(let e=5;e<=N-1;e++)P.forEach(t=>{let n=E.getCell(`${t}${e}`);t===`B`?n.alignment={horizontal:`left`,vertical:`middle`,wrapText:!0}:n.alignment={horizontal:`center`,vertical:`middle`},n.border={top:{style:`thin`},left:{style:`thin`},bottom:{style:`thin`},right:{style:`thin`}}});let L=E.getCell(`B${N}`);L.alignment={horizontal:`center`,vertical:`middle`},L.font={bold:!0},P.forEach(e=>{let t=E.getCell(`${e}${N}`);t.alignment={horizontal:`center`,vertical:`middle`},t.border={top:{style:`thin`},left:{style:`thin`},bottom:{style:`thin`},right:{style:`thin`}}}),E.views=[{state:`frozen`,ySplit:4,xSplit:2,topLeftCell:`C5`}];let R=n.addWorksheet(`费${r+1}-4工程量法`),z=[[`工程量法计算明细表`],[`合同名称:${t}`,``,``,``,``,``,``,``,`费${r+1}-4表`],[`编码`,`名称`,`计算基础`,`计算基数t`,`单价(元/t`,`计算费用(元)`,`本计算取值(元)`,`工程量依据`,`工程量环节`]],B=[],V=0,H=0,U=0;for(let t=0;t<e.contracts[r].QuantityofworkRows.length;t++){let n=e.contracts[r].QuantityofworkRows[t],i=[{label:`估算`,value:`0`},{label:`概算`,value:`1`},{label:`预算`,value:`2`},{label:`招标文件`,value:`3`},{label:`投标文件`,value:`4`},{label:`合同文件`,value:`5`},{label:`工程结算`,value:`6`},{label:`项目决算`,value:`7`}],a=[{label:`编制`,value:`0`},{label:`送审`,value:`1`},{label:`审定`,value:`2`},{label:`复批`,value:`3`},{label:`其他`,value:`4`}],o=i.find((e,t)=>t==n.QuantityBasis),s=a.find((e,t)=>t==n.ProjectQuantityPhase);V+=Number(n.amount)||0,H+=Number(n.budgetFee)||0,U+=Number(n.serviceFee)||0;let c=[n.majorCode,n.majorName,`确认钢筋重量`,n.amount,n.UnitPrice,n.budgetFee,n.serviceFee,o.label,s.label];B.push(c)}B.push([`小计`,`/`,`/`,V,`/`,H,U,`/`,`/`],[`说明`,`本表所有信息与数据都来自“工程量法计算明细表”`,``,``,``,``,``,``,``]),z.push(...B),z.forEach(e=>R.addRow(e));let W=z.length,te=W-1,ne=W;R.mergeCells(`A1:I1`),R.mergeCells(`A2:H2`),R.mergeCells(`A${te}:B${te}`),R.mergeCells(`B${ne}:I${ne}`),R.columns=[{width:6},{width:18},{width:15},{width:15},{width:15},{width:15},{width:15},{width:20},{width:20}],R.eachRow(e=>{e.height=void 0});let G=[`A`,`B`,`C`,`D`,`E`,`F`,`G`,`H`,`I`],re=R.getCell(`A1`);re.font={bold:!0,size:16},re.alignment={horizontal:`center`,vertical:`middle`};for(let e=2;e<=W;e++)G.forEach(t=>{let n=R.getCell(`${t}${e}`);n.font={size:9}});let ie=R.getCell(`A2`);ie.alignment={horizontal:`left`,vertical:`middle`};let K=R.getCell(`I2`);K.alignment={horizontal:`right`,vertical:`middle`},G.forEach(e=>{let t=R.getCell(`${e}3`);t.alignment={horizontal:`center`,vertical:`middle`,wrapText:!0},t.font={bold:!0,size:9},t.border={top:{style:`thin`},left:{style:`thin`},bottom:{style:`thin`},right:{style:`thin`}}});for(let e=4;e<=te;e++)G.forEach(t=>{let n=R.getCell(`${t}${e}`);t===`B`?n.alignment={horizontal:`left`,vertical:`middle`,wrapText:!0}:n.alignment={horizontal:`center`,vertical:`middle`},n.border={top:{style:`thin`},left:{style:`thin`},bottom:{style:`thin`},right:{style:`thin`}}});let q=R.getCell(`A${te}`);q.font={bold:!0};let J=R.getCell(`A${ne}`);J.alignment={horizontal:`left`,vertical:`middle`,wrapText:!0},J.font={bold:!0},R.views=[{state:`frozen`,ySplit:3,xSplit:2,topLeftCell:`C4`}];let Y=n.addWorksheet(`费${r+1}-5工作量法`),ae=[[`工作量法计算明细表`],[`合同名称:${t}`,``,``,``,``,``,``,``,`费${r+1}-5表`],[`编码`,`名称`,`计算基础`,`计算基数(条)`,`单价(元/条)`,`计算费用(元)`,`本计算取值(元)`,`工程量依据`,`工程量环节`]],oe=0,X=0,se=0;for(let t=0;t<e.contracts[r].taskRows.length;t++){let n=e.contracts[r].taskRows[t],i=[{label:`估算`,value:`0`},{label:`概算`,value:`1`},{label:`预算`,value:`2`},{label:`招标文件`,value:`3`},{label:`投标文件`,value:`4`},{label:`合同文件`,value:`5`},{label:`工程结算`,value:`6`},{label:`项目决算`,value:`7`}],a=[{label:`编制`,value:`0`},{label:`送审`,value:`1`},{label:`审定`,value:`2`},{label:`复批`,value:`3`},{label:`其他`,value:`4`}],o=i.find((e,t)=>t==n.QuantityBasis),s=a.find((e,t)=>t==n.ProjectQuantityPhase);oe+=Number(n.budgetReferenceUnitPrice)||0,X+=Number(n.cHigh)||0,se+=Number(n.serviceFee)||0;let c=[n.taskCode,n.taskName,`条目数量`,n.budgetReferenceUnitPrice,n.consultCategoryFactor,n.cHigh,n.serviceFee,o.label,s.label];ae.push(c)}ae.push([`小计`,`/`,`/`,oe,`/`,X,se,`/`,`/`],[`说明`,`本表所有信息与数据都来自“工作量法计算明细表”`,``,``,``,``,``,``,``]),ae.forEach(e=>Y.addRow(e));let ce=ae.length,Z=ce-1,le=ce;Y.mergeCells(`A1:I1`),Y.mergeCells(`A2:H2`),Y.mergeCells(`A${Z}:B${Z}`),Y.mergeCells(`B${le}:I${le}`),Y.columns=[{width:8},{width:22},{width:14},{width:14},{width:14},{width:14},{width:16},{width:16},{width:16}];for(let e=1;e<=ce;e++){let t=Y.getRow(e);t.height=void 0}let ue=[`A`,`B`,`C`,`D`,`E`,`F`,`G`,`H`,`I`],de=Y.getCell(`A1`);de.font={bold:!0,size:16};for(let e=2;e<=ce;e++)ue.forEach(t=>{let n=Y.getCell(`${t}${e}`);n.font={size:9}});de.alignment={horizontal:`center`,vertical:`middle`};let fe=Y.getCell(`A2`);fe.alignment={horizontal:`left`,vertical:`middle`};let pe=Y.getCell(`I2`);pe.alignment={horizontal:`right`,vertical:`middle`},ue.forEach(e=>{let t=Y.getCell(`${e}3`);t.alignment={horizontal:`center`,vertical:`middle`,wrapText:!0},t.font={bold:!0,size:9},t.border={top:{style:`thin`},left:{style:`thin`},bottom:{style:`thin`},right:{style:`thin`}}});for(let e=4;e<=Z;e++)ue.forEach(t=>{let n=Y.getCell(`${t}${e}`);t===`B`?n.alignment={horizontal:`left`,vertical:`middle`,wrapText:!0}:n.alignment={horizontal:`center`,vertical:`middle`},n.border={top:{style:`thin`},left:{style:`thin`},bottom:{style:`thin`},right:{style:`thin`}}});let Q=Y.getCell(`A${Z}`);Q.font={bold:!0};let me=Y.getCell(`A${le}`);me.alignment={horizontal:`left`,vertical:`middle`,wrapText:!0},me.font={bold:!0},Y.views=[{state:`frozen`,ySplit:3,xSplit:2,topLeftCell:`C4`}];let $=n.addWorksheet(`费${r+1}-6(工时法)`),he=[[`工时法计算明细表`],[`合同名称:${t}`,``,``,``,``,``,``,``,``,``,``,``,``,``,``,``,`费${r+1}-6表`],[`编码`,`名称`,`其他造价人员`,``,``,`二级造价工程师(或中级职称)`,``,``,`一级造价工程师(或高级职称)`,``,``,`正高级工程师`,``,``,`合计`,``,``,`说明`],[``,``,`单价(元/工日)`,`工日数量(工日)`,`费用小计(元)`,`单价(元/工日)`,`工日数量(工日)`,`费用小计(元)`,`单价(元/工日)`,`工日数量(工日)`,`费用小计(元)`,`单价(元/工日)`,`工日数量(工日)`,`费用小计(元)`,`工日数量(工日)`,`费用小计(元)`,`折算单价(元/工日)`]],ge=0,_e=0,ve=0,ye=0,be=0,xe=0,Se=0,Ce=0,we=0,Te=0;for(let t=0;t<e.contracts[r].hourlyRows.length;t++){let n=e.contracts[r].hourlyRows[t];ge+=Number(n.workdayCount2)||0,_e+=Number(n.feeSubtotal2)||0,ve+=Number(n.workdayCount3)||0,ye+=Number(n.feeSubtotal3)||0,be+=Number(n.workdayCount4)||0,xe+=Number(n.feeSubtotal4)||0,Se+=Number(n.workdayCount5)||0,Ce+=Number(n.feeSubtotal5)||0,we+=Number(n.workdayCount6)||0,Te+=Number(n.feeSubtotal6)||0,he.push([n.expertCode,n.expertName,n.unitPrice2,n.workdayCount2,n.feeSubtotal2,n.unitPrice3,n.workdayCount3,n.feeSubtotal3,n.unitPrice4,n.workdayCount4,n.feeSubtotal4,n.unitPrice5,n.workdayCount5,n.feeSubtotal5,n.workdayCount6,n.feeSubtotal6,n.avgUnitPrice,n.remark])}he.push([`小计`,`/`,`/`,ge,_e,`/`,ve,ye,`/`,be,xe,`/`,Se,Ce,we,Te,`/`,`/`],[`说明`,`本表所有信息与数据都来自“工时法计算明细表”`,``,``,``,``,``,``,``,``,``,``,``,``,``,``,``]),he.forEach(e=>$.addRow(e));let Ee=he.length,De=Ee-1,Oe=Ee;$.mergeCells(`A1:Q1`),$.mergeCells(`A2:P2`),$.mergeCells(`C3:E3`),$.mergeCells(`F3:H3`),$.mergeCells(`I3:K3`),$.mergeCells(`L3:N3`),$.mergeCells(`O3:Q3`),$.mergeCells(`A3:A4`),$.mergeCells(`B3:B4`),$.mergeCells(`A${De}:B${De}`),$.mergeCells(`B${Oe}:Q${Oe}`),$.columns=[{width:6},{width:14},{width:10},{width:10},{width:10},{width:10},{width:10},{width:10},{width:10},{width:10},{width:10},{width:10},{width:10},{width:10},{width:10},{width:10},{width:10}];for(let e=1;e<=Ee;e++){let t=$.getRow(e);t.height=void 0}let ke=[`A`,`B`,`C`,`D`,`E`,`F`,`G`,`H`,`I`,`J`,`K`,`L`,`M`,`N`,`O`,`P`,`Q`],Ae=$.getCell(`A1`);Ae.font={bold:!0,size:16};for(let e=2;e<=Ee;e++)ke.forEach(t=>{let n=$.getCell(`${t}${e}`);n.font={size:9}});Ae.alignment={horizontal:`center`,vertical:`middle`};let je=$.getCell(`A2`);je.alignment={horizontal:`left`,vertical:`middle`};let Me=$.getCell(`Q2`);Me.alignment={horizontal:`right`,vertical:`middle`},[`A3`,`B3`,`C3`,`F3`,`I3`,`L3`,`O3`].forEach(e=>{let t=$.getCell(e);t.alignment={horizontal:`center`,vertical:`middle`},t.font={bold:!0},t.border={top:{style:`thin`},left:{style:`thin`},bottom:{style:`thin`},right:{style:`thin`}}}),ke.forEach(e=>{let t=$.getCell(`${e}4`);t.alignment={horizontal:`center`,vertical:`middle`,wrapText:!0},t.font={bold:!0},t.border={top:{style:`thin`},left:{style:`thin`},bottom:{style:`thin`},right:{style:`thin`}}});for(let e=5;e<=De-1;e++)ke.forEach(t=>{let n=$.getCell(`${t}${e}`);t===`B`?n.alignment={horizontal:`left`,vertical:`middle`,wrapText:!0}:n.alignment={horizontal:`center`,vertical:`middle`},n.border={top:{style:`thin`},left:{style:`thin`},bottom:{style:`thin`},right:{style:`thin`}}});let Ne=$.getCell(`A${De}`);Ne.font={bold:!0},Ne.alignment={horizontal:`center`,vertical:`middle`},ke.forEach(e=>{let t=$.getCell(`${e}${De}`);t.alignment={horizontal:`center`,vertical:`middle`},t.font={bold:!0},t.border={top:{style:`thin`},left:{style:`thin`},bottom:{style:`thin`},right:{style:`thin`}}});let Pe=$.getCell(`A${Oe}`);Pe.alignment={horizontal:`left`,vertical:`middle`,wrapText:!0},Pe.font={bold:!0},$.views=[{state:`frozen`,ySplit:4,xSplit:2,topLeftCell:`C5`}];let Fe=n.addWorksheet(`费${r+1}-7其他服务`),Ie=[[`其他服务计算明细表`],[`合同名称:${t}`,``,``,``,``,``,`费${r+1}-7表`],[`序号`,`费用项`,`单位`,`数量`,`单价`,`服务费用(元)`,`说明`]],Le=0;for(let t=0;t<e.contracts[r].otherServicelist.length;t++){let n=e.contracts[r].otherServicelist[t];Le+=Number(n.serviceFee)||0,Ie.push([t+1,n.feeItem,n.unit,n.quantity,n.unitPrice,n.serviceFee,n.remark])}Ie.push([`小计`,`/`,`/`,``,`/`,Le,`/`],[`说明`,`本表所有信息与数据都来自“其他服务计算明细表”`,``,``,``,``,``]),Ie.forEach(e=>Fe.addRow(e));let Re=Ie.length,ze=Re-1,Be=Re;Fe.mergeCells(`A1:G1`),Fe.mergeCells(`A2:F2`),Fe.mergeCells(`A${ze}:B${ze}`),Fe.mergeCells(`B${Be}:G${Be}`),Fe.columns=[{width:8},{width:30},{width:10},{width:15},{width:15},{width:18},{width:20}],Fe.eachRow(e=>{e.height=void 0});let Ve=[`A`,`B`,`C`,`D`,`E`,`F`,`G`],He=Fe.getCell(`A1`);He.font={bold:!0,size:16},He.alignment={horizontal:`center`,vertical:`middle`};for(let e=2;e<=Re;e++)Ve.forEach(t=>{let n=Fe.getCell(`${t}${e}`);n.font={size:9}});let Ue=Fe.getCell(`A2`);Ue.alignment={horizontal:`left`,vertical:`middle`};let We=Fe.getCell(`G2`);We.alignment={horizontal:`right`,vertical:`middle`},Ve.forEach(e=>{let t=Fe.getCell(`${e}3`);t.alignment={horizontal:`center`,vertical:`middle`,wrapText:!0},t.font={bold:!0,size:9},t.border={top:{style:`thin`},left:{style:`thin`},bottom:{style:`thin`},right:{style:`thin`}}});for(let e=4;e<=ze;e++)Ve.forEach(t=>{let n=Fe.getCell(`${t}${e}`);t===`B`?n.alignment={horizontal:`left`,vertical:`middle`,wrapText:!0}:n.alignment={horizontal:`center`,vertical:`middle`},n.border={top:{style:`thin`},left:{style:`thin`},bottom:{style:`thin`},right:{style:`thin`}}});let Ge=Fe.getCell(`A${ze}`);Ge.font={bold:!0},Ge.alignment={horizontal:`center`,vertical:`middle`},Ve.forEach(e=>{let t=Fe.getCell(`${e}${ze}`);t.alignment={horizontal:`center`,vertical:`middle`},t.font={bold:!0},t.border={top:{style:`thin`},left:{style:`thin`},bottom:{style:`thin`},right:{style:`thin`}}});let Ke=Fe.getCell(`A${Be}`);Ke.alignment={horizontal:`left`,vertical:`middle`,wrapText:!0},Ke.font={bold:!0},Fe.views=[{state:`frozen`,ySplit:3,xSplit:2,topLeftCell:`C4`}]}let S=await n.xlsx.writeBuffer(),C=new Blob([S],{type:`application/octet-stream`}),w=document.createElement(`a`);w.href=URL.createObjectURL(C),w.download=`目录表.xlsx`,w.click()};return ne(async()=>{await n(),fe.value=Re(),He(fe.value),Xt(),window.addEventListener(`mousedown`,Pn),window.addEventListener(`keydown`,Fn),window.addEventListener(`resize`,Wn);let e=Ae();L(()=>{Xn(),Qn(),Jn(),Wn(),rr(u.activeTabId)}),(async()=>{let t=await Ne();t&&await hr(t,{skipConfirm:e}).catch(e=>{console.error(`home import failed:`,e),hn(r(`tab.messages.importFailedTitle`),mr(e))})})(),(async()=>{await Dn()&&On(0)})()}),F(()=>{window.removeEventListener(`mousedown`,Pn),window.removeEventListener(`keydown`,Fn),window.removeEventListener(`resize`,Wn),We&&=(We.removeEventListener(`scroll`,Yn),null),qe!=null&&(cancelAnimationFrame(qe),qe=null)}),Z(()=>lt.value,(e,t)=>{if(typeof window>`u`)return;if(e===`quick`){ot.value===void 0&&(ot.value=localStorage.getItem(bf)),g.value=!1,document.documentElement.classList.remove(`dark`);return}if(t!==`quick`||ot.value===void 0)return;let n=ot.value;if(ot.value=void 0,n==null){localStorage.removeItem(bf),g.value=window.matchMedia(`(prefers-color-scheme: dark)`).matches;return}localStorage.setItem(bf,n),g.value=n===`true`},{immediate:!0}),Z(()=>u.activeTabId,(e,t)=>{tr(t),L(()=>{Xn(),Qn(),Jn(),Wn(),rr(e)})}),Z(()=>u.tabs.map(e=>e.id),e=>{let t=new Set(e);try{for(let e=sessionStorage.length-1;e>=0;e--){let n=sessionStorage.key(e);if(!n||!n.startsWith(`tab-scroll-top:`))continue;let r=n.slice(15);t.has(r)||sessionStorage.removeItem(n)}}catch(e){console.error(`cleanup tab scroll cache failed:`,e)}L(()=>{Xn(),Jn(),Wn()})}),Z(()=>i.value,()=>{Jt()},{immediate:!0}),(e,t)=>(I(),J(X(pt),null,{default:Q(()=>[P(X(vt),null,{default:Q(()=>[q(`div`,yd,[q(`div`,bd,[q(`span`,xd,z(X(r)(`home.title`)),1),q(`div`,Sd,[lt.value===`quick`?V(``,!0):(I(),J(X(mn),{key:0,variant:`ghost`,size:`icon`,class:`h-9 w-9 shrink-0 cursor-pointer text-muted-foreground transition-all duration-200 hover:text-foreground`,disabled:$.value,title:X(g)?X(r)(`tab.toolbar.dark`):X(r)(`tab.toolbar.light`),"aria-label":X(g)?X(r)(`tab.toolbar.dark`):X(r)(`tab.toolbar.light`),onClick:gn},{default:Q(()=>[(I(),J(ae(X(g)?X(Ft):X(Pt)),{class:pe([`h-4 w-4 transition-transform duration-200`,X(g)?`rotate-0`:`rotate-180`])},null,8,[`class`]))]),_:1},8,[`disabled`,`title`,`aria-label`])),lt.value===`quick`?V(``,!0):(I(),J(X(mn),{key:1,variant:`ghost`,size:`icon`,class:`h-9 w-9 shrink-0 cursor-pointer text-muted-foreground transition-all duration-200 hover:text-foreground`,disabled:$.value,title:X(r)(`tab.toolbar.language`),"aria-label":X(r)(`tab.toolbar.language`),onClick:Bt},{default:Q(()=>[...t[25]||=[q(`span`,{class:`text-base font-medium`},`中`,-1)]]),_:1},8,[`disabled`,`title`,`aria-label`])),lt.value===`quick`?V(``,!0):(I(),J(X(mn),{key:2,variant:`default`,size:`sm`,class:`h-9 shrink-0 cursor-pointer bg-[#1a1a1a] text-white px-3 text-sm font-medium hover:bg-[#1a1a1a]/90`,disabled:$.value,onClick:cr},{default:Q(()=>[t[26]||=q(`svg`,{class:`mr-1.5 h-4 w-4`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[q(`path`,{d:`M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z`}),q(`polyline`,{points:`17 21 17 13 7 13 7 21`}),q(`polyline`,{points:`7 3 7 8 15 8`})],-1),G(` `+z(X(r)(`tab.toolbar.savedata`)),1)]),_:1},8,[`disabled`])),q(`div`,{class:`relative`,ref_key:`dataMenuRef`,ref:w},[P(X(mn),{variant:`outline`,size:`sm`,class:`h-9 shrink-0 cursor-pointer rounded-md border-slate-200 bg-white px-3 text-sm font-medium text-[#333] shadow-sm transition hover:bg-slate-50`,disabled:$.value,onClick:t[0]||=e=>C.value=!C.value},{default:Q(()=>[t[27]||=q(`svg`,{class:`mr-1.5 h-4 w-4`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[q(`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`}),q(`polyline`,{points:`3.29 7 12 12 20.71 7`}),q(`line`,{x1:`12`,y1:`22`,x2:`12`,y2:`12`})],-1),G(` `+z(X(r)(`tab.toolbar.importexport`)),1)]),_:1},8,[`disabled`]),P(de,{name:`fade`},{default:Q(()=>[C.value?(I(),U(`div`,Cd,[q(`button`,{class:`flex w-full cursor-pointer items-center rounded-md px-3 py-2 text-left text-sm text-foreground hover:bg-muted/80 transition-colors`,onClick:ur},z(X(r)(`tab.toolbar.exporttable`)),1),q(`button`,{class:`flex w-full cursor-pointer items-center rounded-md px-3 py-2 text-left text-sm text-foreground hover:bg-muted/80 transition-colors mt-1`,onClick:pr},z(X(r)(`tab.toolbar.exportworddocument`)),1),q(`button`,{class:`w-full cursor-pointer rounded px-3 py-1.5 text-left text-sm hover:bg-muted disabled:cursor-not-allowed disabled:opacity-50`,disabled:$.value,onClick:lr},z(X(r)(`tab.toolbar.importData`)),9,wd),q(`button`,{class:`w-full cursor-pointer rounded px-3 py-1.5 text-left text-sm hover:bg-muted disabled:cursor-not-allowed disabled:opacity-50`,disabled:$.value,onClick:cr},z(X(r)(`tab.toolbar.exportData`)),9,Td),t[28]||=q(`div`,{class:`my-1 h-px bg-border`},null,-1)])):V(``,!0)]),_:1})],512),lt.value===`quick`?V(``,!0):(I(),J(X(mn),{key:3,variant:`outline`,size:`sm`,class:`app-toolbar-btn shrink-0 cursor-pointer`,disabled:$.value,onClick:t[1]||=e=>On(0)},{default:Q(()=>[P(X(jt),{class:`h-4 w-4 mr-1`}),G(` `+z(X(r)(`tab.toolbar.userGuide`)),1)]),_:1},8,[`disabled`])),lt.value===`quick`?V(``,!0):(I(),J(X(mn),{key:4,variant:`outline`,size:`sm`,class:`h-9 shrink-0 cursor-pointer rounded-md border-slate-200 bg-white px-3 text-sm font-medium text-[#333] shadow-sm transition hover:bg-slate-50`,disabled:$.value,onClick:t[2]||=e=>{T.value=!T.value,T.value&&Xt()}},{default:Q(()=>[t[29]||=q(`svg`,{class:`mr-1.5 h-4 w-4`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[q(`line`,{x1:`8`,y1:`6`,x2:`21`,y2:`6`}),q(`line`,{x1:`8`,y1:`12`,x2:`21`,y2:`12`}),q(`line`,{x1:`8`,y1:`18`,x2:`21`,y2:`18`}),q(`line`,{x1:`3`,y1:`6`,x2:`3.01`,y2:`6`}),q(`line`,{x1:`3`,y1:`12`,x2:`3.01`,y2:`12`}),q(`line`,{x1:`3`,y1:`18`,x2:`3.01`,y2:`18`})],-1),G(` `+z(X(r)(`tab.toolbar.projectmanagement`)),1)]),_:1},8,[`disabled`])),P(X(mn),{variant:`outline`,size:`sm`,class:`h-9 shrink-0 cursor-pointer rounded-md border-slate-200 bg-white px-3 text-sm font-medium text-[#333] shadow-sm transition hover:bg-slate-50`,onClick:cn},{default:Q(()=>[t[30]||=q(`svg`,{class:`mr-1.5 h-4 w-4`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[q(`path`,{d:`m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`}),q(`polyline`,{points:`9 22 9 12 15 12 15 22`})],-1),G(` `+z(X(r)(`tab.toolbar.returntohomepage`)),1)]),_:1})])]),q(`div`,Ed,[q(`div`,{class:`flex min-w-0 items-start gap-1 h-full`,onMouseenter:t[6]||=e=>Fe.value=!0,onMouseleave:t[7]||=e=>Fe.value=!1},[q(`button`,{type:`button`,class:pe([`h-9 w-8 self-center shrink-0 cursor-pointer rounded border bg-background text-sm text-muted-foreground transition hover:bg-muted`,Fe.value&&Me.value?`opacity-100`:`pointer-events-none opacity-0`]),onClick:t[3]||=e=>Zn(-260)},` < `,2),P(X(Is),{ref:Kn,type:`auto`,class:`h-full tab-strip-scroll-area min-w-0 flex-1 whitespace-nowrap`},{default:Q(()=>[P(X(Xo.default),{modelValue:tt.value,"onUpdate:modelValue":t[4]||=e=>tt.value=e,"item-key":`id`,tag:`div`,class:pe([`tab-strip-sortable h-[calc(3.50rem)] flex w-max gap-0`,Ie.value?`is-dragging`:``]),animation:260,easing:`cubic-bezier(0.22, 1, 0.36, 1)`,"ghost-class":`tab-drag-ghost`,"chosen-class":`tab-drag-chosen`,"drag-class":`tab-drag-active`,move:Ln,onStart:Rn,onEnd:zn},{item:Q(({element:e,index:t})=>[q(`div`,{ref:t=>Bn(e.id,t),onMousedown:R(t=>X(u).activeTabId=e.id,[`left`]),onContextmenu:R(t=>Nn(t,e.id),[`prevent`]),class:pe([`tab-item group relative -mb-px -ml-px first:ml-0 flex items-center h-full px-4 min-w-[120px] max-w-[220px] cursor-pointer rounded-t-md border border-transparent transition-[background-color,border-color,color,box-shadow,transform] duration-200 text-sm`,X(u).activeTabId===e.id&&!Ie.value?`z-10 bg-background text-foreground !border-border !border-b-0 font-medium`:`bg-muted/25 text-muted-foreground hover:bg-muted/40 hover:text-foreground hover:border-border/70`,t===0?``:`cursor-move`])},[P(X(Rt),null,{default:Q(()=>[P(X(zt),{"as-child":``},{default:Q(()=>[q(`span`,{ref:t=>Vn(e.id,t),class:`truncate mr-2`},z(e.title),513)]),_:2},1024),Le.value[e.id]?(I(),J(X(Ls),{key:0,side:`bottom`},{default:Q(()=>[G(z(e.title),1)]),_:2},1024)):V(``,!0)]),_:2},1024),t===0?V(``,!0):(I(),J(X(mn),{key:0,variant:`ghost`,size:`icon`,class:`h-4 w-4 ml-auto opacity-0 group-hover:opacity-100 hover:bg-destructive hover:text-destructive-foreground transition-opacity`,onClick:R(t=>X(u).removeTab(e.id),[`stop`])},{default:Q(()=>[P(X(It),{class:`h-3 w-3`})]),_:1},8,[`onClick`]))],42,Dd)]),_:1},8,[`modelValue`,`class`])]),_:1}),q(`button`,{type:`button`,class:pe([` self-center h-9 w-8 shrink-0 cursor-pointer rounded border bg-background text-sm text-muted-foreground transition hover:bg-muted `,Fe.value&&Pe.value?`opacity-100`:`pointer-events-none opacity-0`]),onClick:t[5]||=e=>Zn(260)},` > `,2)],32)]),P(de,{name:`slide-in-left`},{default:Q(()=>[T.value?(I(),U(`div`,Od,[q(`div`,kd,[q(`div`,Ad,[q(`div`,null,[q(`h2`,jd,z(X(r)(`tab.toolbar.projectList`)),1),q(`p`,Md,z(X(r)(`tab.toolbar.projectCount`,{count:ce.value.length,max:Tf})),1)]),P(X(mn),{variant:`ghost`,size:`icon`,class:`h-8 w-8`,onClick:t[8]||=e=>T.value=!1},{default:Q(()=>[P(X(It),{class:`h-4 w-4`})]),_:1})]),q(`div`,Nd,[(I(!0),U(te,null,W(ce.value,e=>(I(),U(`div`,{key:e.id,class:pe([`flex items-center justify-between rounded-lg border px-4 py-3 transition-colors cursor-pointer`,Qt(e.id)?`border-blue-500 bg-blue-50 hover:bg-blue-100`:`border-slate-200 bg-white hover:bg-slate-50`]),onClick:t=>yn(e.id)},[q(`div`,Fd,[q(`div`,{class:pe([`font-medium`,Qt(e.id)?`text-blue-600`:`text-foreground`])},z(e.name),3),q(`div`,Id,z(X(r)(`tab.toolbar.lastEdited`,{time:ln(e.updatedAt)})),1)]),P(X(mn),{variant:`ghost`,size:`sm`,class:`h-8 px-3 text-sm text-muted-foreground hover:text-red-600`,onClick:R(t=>fn(e),[`stop`])},{default:Q(()=>[G(z(X(r)(`common.delete`)),1)]),_:1},8,[`onClick`])],10,Pd))),128))]),q(`div`,Ld,[P(X(mn),{variant:`default`,size:`sm`,class:`w-full h-11 bg-blue-600 text-white px-4 text-base font-medium hover:bg-blue-700 rounded-lg`,onClick:en},{default:Q(()=>[G(z(X(r)(`tab.toolbar.createProject`)),1)]),_:1})])])])):V(``,!0)]),_:1}),P(de,{name:`fade`},{default:Q(()=>[T.value?(I(),U(`div`,{key:0,class:`fixed inset-0 z-[90] bg-black/45`,onClick:t[9]||=e=>T.value=!1})):V(``,!0)]),_:1}),P(X(Lt),{open:me.value,"onUpdate:open":yr},{default:Q(()=>[P(X(St),null,{default:Q(()=>[P(X(Ct),{class:`fixed inset-0 z-50 bg-black/45`}),P(X(Et),{class:`fixed left-1/2 top-1/2 z-50 w-[92vw] max-w-md -translate-x-1/2 -translate-y-1/2 rounded-lg border bg-background p-5 shadow-xl`},{default:Q(()=>[P(X(At),{class:`text-base font-semibold`},{default:Q(()=>[G(z(X(r)(`tab.dialog.resetTitle`)),1)]),_:1}),P(X(Nt),{class:`mt-2 text-sm text-muted-foreground`},{default:Q(()=>[G(z(X(r)(`tab.dialog.resetDesc`)),1)]),_:1}),q(`div`,Rd,[P(X(mn),{variant:`outline`,disabled:$.value,onClick:t[10]||=e=>me.value=!1},{default:Q(()=>[G(z(X(r)(`common.cancel`)),1)]),_:1},8,[`disabled`]),P(X(mn),{variant:`destructive`,disabled:$.value,onClick:vr},{default:Q(()=>[$.value?(I(),J(X(xt),{key:0,class:`mr-1 h-4 w-4 animate-spin`})):V(``,!0),G(` `+z($.value?X(r)(`tab.toolbar.resetting`):X(r)(`tab.dialog.confirmReset`)),1)]),_:1},8,[`disabled`])])]),_:1})]),_:1})]),_:1},8,[`open`]),P(X(Lt),{open:_e.value,"onUpdate:open":t[11]||=e=>_e.value=e},{default:Q(()=>[P(X(St),null,{default:Q(()=>[P(X(Ct),{class:`fixed inset-0 z-50 bg-black/45`}),P(X(Et),{class:`fixed left-1/2 top-1/2 z-50 w-[92vw] max-w-md -translate-x-1/2 -translate-y-1/2 rounded-lg border bg-background p-5 shadow-xl`},{default:Q(()=>[P(X(At),{class:`text-base font-semibold`},{default:Q(()=>[G(z(X(r)(`tab.dialog.importOverrideTitle`)),1)]),_:1}),P(X(Nt),{class:`mt-2 text-sm text-muted-foreground`},{default:Q(()=>[G(z(X(r)(`tab.dialog.importOverrideDesc`,{file:be.value||X(r)(`home.cards.pickFile`)})),1)]),_:1}),q(`div`,zd,[P(X(Mt),{"as-child":``},{default:Q(()=>[P(X(mn),{variant:`outline`,onClick:gr},{default:Q(()=>[G(z(X(r)(`common.cancel`)),1)]),_:1})]),_:1}),P(X(Tt),{"as-child":``},{default:Q(()=>[P(X(mn),{variant:`destructive`,onClick:_r},{default:Q(()=>[G(z(X(r)(`tab.dialog.confirmOverride`)),1)]),_:1})]),_:1})])]),_:1})]),_:1})]),_:1},8,[`open`]),P(X(Lt),{open:D.value,"onUpdate:open":an},{default:Q(()=>[P(X(St),null,{default:Q(()=>[P(X(Ct),{class:`fixed inset-0 z-50 bg-black/45`}),P(X(Et),{class:`fixed left-1/2 top-1/2 z-50 w-[92vw] max-w-[480px] -translate-x-1/2 -translate-y-1/2 rounded-2xl border bg-background shadow-2xl`},{default:Q(()=>[q(`div`,Bd,[q(`div`,null,[P(X(At),{class:`text-xl font-semibold`},{default:Q(()=>[G(z(X(r)(`tab.dialog.newProjectTitle`)),1)]),_:1}),P(X(Nt),{class:`mt-1.5 text-sm text-muted-foreground`},{default:Q(()=>[...t[31]||=[G(` 选择工程行业后,进入项目计算页面 `,-1)]]),_:1})]),P(X(mn),{variant:`ghost`,size:`icon`,class:`h-8 w-8`,onClick:nn},{default:Q(()=>[P(X(It),{class:`h-5 w-5 text-muted-foreground`})]),_:1})]),q(`div`,Vd,[q(`h3`,Hd,z(X(r)(`home.dialog.industry`)),1),q(`div`,Ud,[(I(!0),U(te,null,W(X(Ht),e=>(I(),U(`button`,{key:`industry-${e.id}`,class:pe([`w-full rounded-xl border-2 px-4 py-3.5 text-left transition-all`,O.value===String(e.id)?`border-[#1a1a1a] bg-[#fafafa]`:`border-slate-200 bg-white hover:border-slate-300`]),onClick:t=>O.value=String(e.id)},[q(`div`,Gd,[q(`span`,Kd,z(X(Ut)(e.id,X(i))),1),q(`div`,{class:pe([`flex h-6 w-6 items-center justify-center rounded-full border-2 transition-all`,O.value===String(e.id)?`border-[#1a1a1a] bg-[#1a1a1a]`:`border-slate-300`])},[O.value===String(e.id)?(I(),J(X(wt),{key:0,class:`h-4 w-4 text-white`})):V(``,!0)],2)])],10,Wd))),128))])]),q(`div`,qd,[P(X(mn),{variant:`default`,size:`sm`,class:`h-11 rounded-xl bg-[#1a1a1a] px-6 text-sm font-medium text-white hover:bg-[#1a1a1a]/90`,disabled:k.value||!O.value,onClick:sn},{default:Q(()=>[k.value?(I(),J(X(xt),{key:0,class:`mr-1.5 h-4 w-4 animate-spin`})):V(``,!0),G(` `+z(k.value?X(r)(`tab.dialog.creating`):`进入项目计算`),1)]),_:1},8,[`disabled`])])]),_:1})]),_:1})]),_:1},8,[`open`]),P(X(Lt),{open:A.value,"onUpdate:open":t[13]||=e=>A.value=e},{default:Q(()=>[P(X(St),null,{default:Q(()=>[P(X(Ct),{class:`fixed inset-0 z-50 bg-black/45`}),P(X(Et),{class:`fixed left-1/2 top-1/2 z-50 w-[92vw] max-w-md -translate-x-1/2 -translate-y-1/2 rounded-lg border bg-background p-5 shadow-xl`},{default:Q(()=>[P(X(At),{class:`text-base font-semibold`},{default:Q(()=>[G(z(X(r)(`tab.dialog.projectLimitTitle`)),1)]),_:1}),P(X(Nt),{class:`mt-2 text-sm text-muted-foreground`},{default:Q(()=>[G(z(X(r)(`tab.dialog.projectLimitDesc`,{max:Tf})),1)]),_:1}),q(`div`,Jd,[P(X(Tt),{"as-child":``},{default:Q(()=>[P(X(mn),{onClick:t[12]||=e=>A.value=!1},{default:Q(()=>[G(z(X(r)(`tab.dialog.iKnow`)),1)]),_:1})]),_:1})])]),_:1})]),_:1})]),_:1},8,[`open`]),P(X(Lt),{open:j.value,"onUpdate:open":pn},{default:Q(()=>[P(X(St),null,{default:Q(()=>[P(X(Ct),{class:`fixed inset-0 z-[110] bg-black/45`}),P(X(Et),{class:`fixed left-1/2 top-1/2 z-[110] w-[92vw] max-w-md -translate-x-1/2 -translate-y-1/2 rounded-lg border bg-background p-5 shadow-xl`},{default:Q(()=>[P(X(At),{class:`text-base font-semibold`},{default:Q(()=>[G(z(X(r)(`tab.dialog.deleteProjectTitle`)),1)]),_:1}),P(X(Nt),{class:`mt-2 text-sm text-muted-foreground`},{default:Q(()=>[G(z(M.value?.id===fe.value?X(r)(`tab.dialog.deleteCurrentProjectDesc`,{name:M.value?.name||``}):X(r)(`tab.dialog.deleteProjectDesc`,{name:M.value?.name||``})),1)]),_:1}),q(`div`,Yd,[P(X(mn),{variant:`outline`,onClick:_n},{default:Q(()=>[G(z(X(r)(`common.cancel`)),1)]),_:1}),P(X(mn),{variant:`destructive`,onClick:vn},{default:Q(()=>[G(z(X(r)(`common.confirm`)),1)]),_:1})])]),_:1})]),_:1})]),_:1},8,[`open`]),P(X(Lt),{open:N.value,"onUpdate:open":t[15]||=e=>N.value=e},{default:Q(()=>[P(X(St),null,{default:Q(()=>[P(X(Ct),{class:`fixed inset-0 z-50 bg-black/45`}),P(X(Et),{class:`fixed left-1/2 top-1/2 z-50 w-[92vw] max-w-md -translate-x-1/2 -translate-y-1/2 rounded-lg border bg-background p-5 shadow-xl`},{default:Q(()=>[P(X(At),{class:`text-base font-semibold`},{default:Q(()=>[G(z(B.value),1)]),_:1}),P(X(Nt),{class:`mt-2 text-sm text-muted-foreground`},{default:Q(()=>[G(z(K.value),1)]),_:1}),q(`div`,Xd,[P(X(Tt),{"as-child":``},{default:Q(()=>[P(X(mn),{onClick:t[14]||=e=>N.value=!1},{default:Q(()=>[G(z(X(r)(`tab.dialog.iKnow`)),1)]),_:1})]),_:1})])]),_:1})]),_:1})]),_:1},8,[`open`]),$.value?(I(),U(`div`,Zd)):V(``,!0),q(`div`,Qd,[nt.value?(I(),U(`div`,{key:`${nt.value.id}-${X(i)}`,ref:e=>Gn(rt.value,e),class:`h-full w-full animate-in fade-in duration-300`},[(I(),J(ae(l[nt.value.componentName]),ie(oe(nt.value.props||{})),null,16))])):V(``,!0)]),v.value?(I(),U(`div`,{key:1,ref_key:`tabContextRef`,ref:S,class:`fixed z-[70] w-max rounded-lg border border-border/80 bg-background/95 p-1.5 shadow-xl ring-1 ring-black/5 backdrop-blur-sm`,style:ee({left:`${y.value}px`,top:`${b.value}px`})},[q(`button`,{class:`flex cursor-pointer items-center whitespace-nowrap rounded-md px-3 py-1.5 text-left text-sm transition-colors hover:bg-muted/80 disabled:cursor-not-allowed disabled:opacity-50`,disabled:!dt.value,onClick:t[16]||=e=>In(`all`)},z(X(r)(`tab.menu.closeAll`)),9,$d),q(`button`,{class:`mt-0.5 flex cursor-pointer items-center whitespace-nowrap rounded-md px-3 py-1.5 text-left text-sm transition-colors hover:bg-muted/80 disabled:cursor-not-allowed disabled:opacity-50`,disabled:!yt.value,onClick:t[17]||=e=>In(`left`)},z(X(r)(`tab.menu.closeLeft`)),9,ef),q(`button`,{class:`mt-0.5 flex cursor-pointer items-center whitespace-nowrap rounded-md px-3 py-1.5 text-left text-sm transition-colors hover:bg-muted/80 disabled:cursor-not-allowed disabled:opacity-50`,disabled:!bt.value,onClick:t[18]||=e=>In(`right`)},z(X(r)(`tab.menu.closeRight`)),9,tf),q(`button`,{class:`mt-0.5 flex cursor-pointer items-center whitespace-nowrap rounded-md px-3 py-1.5 text-left text-sm transition-colors hover:bg-muted/80 disabled:cursor-not-allowed disabled:opacity-50`,disabled:!kt.value,onClick:t[19]||=e=>In(`other`)},z(X(r)(`tab.menu.closeOther`)),9,nf)],4)):V(``,!0),Se.value?(I(),U(`div`,{key:2,class:`fixed inset-0 z-[120] flex items-center justify-center bg-black/45 p-4`,onClick:t[22]||=R(e=>kn(!1),[`self`])},[q(`div`,rf,[q(`div`,af,[q(`div`,null,[q(`p`,of,z(X(r)(`tab.guide.title`))+` · `+z(_t.value),1),q(`h3`,sf,z(ft.value.title),1)]),P(X(mn),{variant:`ghost`,size:`icon`,class:`h-8 w-8`,onClick:t[20]||=e=>kn(!1)},{default:Q(()=>[P(X(It),{class:`h-4 w-4`})]),_:1})]),q(`div`,cf,[q(`p`,lf,z(ft.value.description),1),q(`ul`,uf,[(I(!0),U(te,null,W(ft.value.points,(e,t)=>(I(),U(`li`,{key:`${ft.value.title}-${t}`},z(e),1))),128))])]),q(`div`,df,[q(`div`,ff,[(I(!0),U(te,null,W(c.value,(e,t)=>(I(),U(`button`,{key:`guide-dot-${t}`,class:pe([`h-2.5 w-2.5 cursor-pointer rounded-full transition-colors`,t===Ce.value?`bg-primary`:`bg-muted`]),"aria-label":X(r)(`tab.guide.jumpToStep`,{index:t+1}),onClick:e=>Mn(t)},null,10,pf))),128))]),q(`div`,mf,[P(X(mn),{variant:`ghost`,onClick:t[21]||=e=>kn(!1)},{default:Q(()=>[G(z(X(r)(`tab.guide.later`)),1)]),_:1}),P(X(mn),{variant:`outline`,disabled:mt.value,onClick:An},{default:Q(()=>[G(z(X(r)(`tab.guide.prev`)),1)]),_:1},8,[`disabled`]),P(X(mn),{onClick:jn},{default:Q(()=>[G(z(gt.value?X(r)(`tab.guide.finish`):X(r)(`tab.guide.next`)),1)]),_:1})])])])])):V(``,!0)]),P(X(Ot),{open:Je.value,"onUpdate:open":[t[23]||=e=>Je.value=e,t[24]||=e=>{e||et()}],duration:0,class:`pointer-events-auto rounded-xl border border-border bg-card px-4 py-3 text-foreground shadow-lg`},{default:Q(()=>[q(`div`,hf,[P(X(ht),{class:`text-sm font-semibold text-foreground`},{default:Q(()=>[G(z(Ze.value===`running`?X(r)(`tab.toast.export`):Ze.value===`success`?X(r)(`tab.toast.success`):X(r)(`tab.toast.failed`)),1)]),_:1}),P(X(mn),{variant:`ghost`,size:`sm`,class:`h-6 w-6 p-0 text-muted-foreground hover:text-foreground`,onClick:et},{default:Q(()=>[P(X(It),{class:`h-3.5 w-3.5`})]),_:1})]),P(X(it),{class:`mt-1 text-xs text-muted-foreground`},{default:Q(()=>[G(z(Qe.value),1)]),_:1}),q(`div`,gf,[q(`div`,_f,[q(`div`,{class:pe([`h-full transition-all duration-300`,Ze.value===`error`?`bg-red-500`:Ze.value===`success`?`bg-foreground/70`:`bg-foreground`]),style:ee({width:`${Xe.value}%`})},null,6)]),q(`span`,vf,z(Xe.value)+`%`,1)])]),_:1},8,[`open`]),P(X(st),{class:`fixed bottom-5 right-5 z-[85] flex w-[380px] max-w-[92vw] flex-col gap-2 outline-none`})]),_:1})]),_:1}))}}),[[`__scopeId`,`data-v-48df5250`]]),kf={key:0,class:`flex min-h-screen items-center justify-center bg-slate-50 px-4`},Af={class:`w-full max-w-lg rounded-xl border border-red-200 bg-white p-6 shadow-sm`},jf={class:`text-lg font-semibold text-slate-900`},Mf={class:`mt-2 text-sm leading-6 text-slate-600`},Nf={class:`mt-2 text-xs text-slate-500`},Pf={class:`mt-4 max-h-52 space-y-2 overflow-auto rounded-md border border-slate-200 bg-slate-50 p-2`},Ff=[`disabled`,`onClick`],If={class:`font-medium text-slate-700`},Lf={key:0,class:`ml-1 text-xs text-slate-500`},Rf={class:`text-xs text-slate-500`},zf={class:`mt-4 flex items-center gap-2`},Bf=[`disabled`],Vf=fe({__name:`App`,setup(e){let t=un(),{t:n}=ge(),r=Y(!1),i=Y(!1),a=Y(``),o=Y(``),s=Y([]),c=Y([]),l=Y(10),u=Y(!1),d=Y(!1),f=null,p=null,m=null,h=null,g=!1,_=!1,v=H(()=>!t.hasCompletedSetup),y=()=>{t.hasCompletedSetup=!0},b=()=>{if(p)return;let e=String(a.value||``).trim();if(!e||e===`quick`){i.value=!1;return}p=Bn({projectId:e,onConflict:e=>{i.value=e,e?(x(),C()):S()}}).release},x=()=>{(async()=>{let e=Ge(),t=await Promise.all(e.map(async e=>{try{let t=await Tn.default.createInstance({name:Ee(e.id),storeName:`pinia-kv`}).getItem(`pinia-kv`),n=(t?.entries&&typeof t.entries==`object`?t.entries:null)?.[`xm-base-info-v1`],r=n&&typeof n==`object`&&typeof n.projectName==`string`?n.projectName.trim():``;return{...e,name:r||e.name}}catch{return e}}));s.value=t,o.value=t.find(e=>e.id===a.value)?.name||a.value,c.value=Array.from(Hn(t.map(e=>e.id)))})()},S=()=>{f&&=(clearInterval(f),null)},C=()=>{S(),l.value=10,f=setInterval(()=>{if(--l.value,l.value<=0){S();try{rt()}catch{}}},1e3)},w=e=>c.value.includes(e),T=(e,t)=>{if(w(e))return;let n=Te(e,t);window.open(n,`_blank`,`noopener`)},E=()=>{x(),T(Ie,{newProject:!0})},D=()=>{try{let e=new URL(window.location.href);u.value=e.searchParams.get(Pe)===`1`,d.value=e.searchParams.get(je)===`1`}catch{u.value=!1,d.value=!1}},O=e=>{let t=new Date(e);if(Number.isNaN(t.getTime()))return`-`;let n=e=>String(e).padStart(2,`0`);return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())} ${n(t.getHours())}:${n(t.getMinutes())}`},k=()=>{p&&(p(),p=null,i.value=!1)},A=e=>{if(String(e||``).trim()!==a.value||g)return;g=!0,k(),t.resetTabs(),t.hasCompletedSetup=!1;let n=Te(Ie,{forceHome:!0});try{window.close()}catch{}window.setTimeout(()=>{window.location.href=n},120)},j=()=>{if(_)return;_=!0,k(),t.resetTabs(),t.hasCompletedSetup=!1;let e=Te(Ie,{forceHome:!0});try{window.close()}catch{}window.setTimeout(()=>{window.location.href=e},120)};return ne(()=>{a.value=De(),D(),x(),!d.value&&a.value!==`quick`&&a.value!==`default`&&b(),window.addEventListener(`home-import-selected`,y),window.addEventListener(`jgjs-release-project-lock`,k),m=Xl(A),h=Ql(j),Ze(`tabs`).then(()=>{if(d.value&&(t.resetTabs(),t.hasCompletedSetup=!1),!t.hasCompletedSetup&&!u.value&&!d.value&&Ge().length>0&&a.value!==`default`&&(Array.isArray(t.tabs)&&t.tabs.length>0||t.enterWorkspace({id:xe,title:n(`home.cards.projectBudget`),componentName:`ProjectCalcView`}),t.hasCompletedSetup=!0),t.hasCompletedSetup&&Array.isArray(t.tabs)&&t.tabs.length>0){let e=typeof t.activeTabId==`string`?t.activeTabId:``;e&&t.tabs.some(t=>t.id===e)||(t.activeTabId=t.tabs[0]?.id)}p||(i.value=!1,S()),r.value=!0})}),F(()=>{S(),window.removeEventListener(`home-import-selected`,y),window.removeEventListener(`jgjs-release-project-lock`,k),m&&=(m(),null),h&&=(h(),null),p&&=(p(),null)}),(e,t)=>r.value?(I(),U(te,{key:0},[i.value?(I(),U(`div`,kf,[q(`div`,Af,[q(`h2`,jf,z(X(n)(`app.projectConflict.title`)),1),q(`p`,Mf,z(X(n)(`app.projectConflict.desc`,{name:o.value})),1),q(`p`,Nf,z(X(n)(`app.projectConflict.countdown`,{seconds:l.value})),1),q(`div`,Pf,[(I(!0),U(te,null,W(s.value,e=>(I(),U(`button`,{key:e.id,type:`button`,class:pe([`flex w-full items-center justify-between rounded-md border border-transparent bg-white px-3 py-2 text-left text-sm transition`,w(e.id)?`cursor-not-allowed opacity-60`:`cursor-pointer hover:border-slate-200 hover:bg-slate-100`]),disabled:w(e.id),onClick:t=>T(e.id)},[q(`span`,If,[G(z(e.name)+` `,1),w(e.id)?(I(),U(`span`,Lf,z(X(n)(`app.projectConflict.opened`)),1)):V(``,!0)]),q(`span`,Rf,z(X(n)(`app.projectConflict.lastEdited`,{time:O(e.updatedAt)})),1)],10,Ff))),128))]),q(`div`,zf,[q(`button`,{type:`button`,class:`cursor-pointer rounded-md border border-slate-300 bg-white px-3 py-2 text-sm text-slate-700 hover:bg-slate-100`,onClick:E},z(X(n)(`app.projectConflict.createAndOpen`)),1),q(`button`,{type:`button`,class:pe([`rounded-md border border-slate-300 bg-white px-3 py-2 text-sm text-slate-700`,w(`default`)?`cursor-not-allowed opacity-60`:`cursor-pointer hover:bg-slate-100`]),disabled:w(`default`),onClick:t[0]||=e=>T(`default`)},z(X(n)(`app.projectConflict.openDefault`)),11,Bf)])])])):(I(),U(te,{key:1},[v.value?(I(),J(ti,{key:0})):(I(),J(Of,{key:1}))],64))],64)):V(``,!0)}});E.setLicenseKey(`[v3][RELEASE][0102]_NDg2Njc4MzY3MDgzNw==16d78ca762fb5d2ff740aed081e2af7b`);var Hf=[v,T,C,d,p,O,x,_,S,b,f,c,w,l,D,h,N,A,k,j,o,g,y,s,m,M],Uf=()=>{try{let e=new URL(window.location.href);if(String(e.searchParams.get(`projectId`)||``).trim())return De();let t=Ge();if(t.length>0){let n=t[0];e.searchParams.set(`projectId`,n.id),window.history.replaceState({},``,`${e.pathname}${e.search}${e.hash}`)}return De()}catch{return De()}},Wf=me(),Gf=Uf();Wf.use(We({name:Ee(Gf),storeName:`pinia`,mode:`multiple`})),on(Wf).initFromStorage(),u.registerModules(Hf),ce(Vf).use(Wf).use(be).mount(`#app`);export{un as A,Ps as C,Sn as D,Yo as E,Cn as O,Is as S,ns as T,Dl as _,vl as a,hl as b,xl as c,Cl as d,Ml as f,wl as g,Ol as h,eu as i,mn as k,Sl as l,Al as m,nu as n,_l as o,kl as p,$l as r,bl as s,vd as t,Tl as u,jl as v,ds as w,Ls as x,gl as y};