diff --git a/assets/TestCrate-uK_LdIOm.js b/assets/TestCrate-uK_LdIOm.js new file mode 100644 index 0000000..21a5fda --- /dev/null +++ b/assets/TestCrate-uK_LdIOm.js @@ -0,0 +1 @@ +import{h as i,P as c,b as l,k as a,j as d,e as o,o as f,s as p,q as _,Q as u}from"./index-CSc-zF-z.js";import{t as m,l as y}from"./language-data-commons-collection-1SBJtGZp.js";const x={class:"container mx-auto px-4"},v={__name:"TestCrate",setup(I){const t=i({crate:m,profile:y,entityId:""}),r=c();function n(){}return(k,e)=>(f(),l("div",x,[a(o(_),{onClick:n},{default:d(()=>[p("Show JSON")]),_:1}),a(o(u),{ref_key:"editor",ref:r,entityId:t.entityId,"onUpdate:entityId":e[0]||(e[0]=s=>t.entityId=s),crate:t.crate,profile:t.profile},null,8,["entityId","crate","profile"])]))}};export{v as default}; diff --git a/assets/TestEntity-BS6U8CNj.js b/assets/TestEntity-BS6U8CNj.js new file mode 100644 index 0000000..808d51f --- /dev/null +++ b/assets/TestEntity-BS6U8CNj.js @@ -0,0 +1 @@ +import{h as i,J as r,K as c,L as d,b as u,k as p,j as m,e as f,i as y,M as _,N as w,O as g,$ as k,o,s as x,q as P}from"./index-CSc-zF-z.js";import{t as T,l as s}from"./language-data-commons-collection-1SBJtGZp.js";const h={class:"container mx-auto px-4"},S={__name:"TestEntity",setup(E){const e=i({entity:null,profile:s}),t=r(new g);c(k,t),d(async function(){await t.setCrate(T),t.setProfile(s),t.crate.addEntity({"@id":"#TestPlace","@type":"Place",name:"TestPlace",smokingAllowed:!0,geo:{"@id":"#TestPlace-geo-1","@type":["GeoCoordinates","GeoShape"],name:"TestPlace geo-1",latitude:-27,longitude:149,box:["-26 150 -25.5 150.5","-27 150 -26.5 150.5"],circle:"-27 153 100000"}},{recurse:!0}),e.entity=t.crate.getEntity("#TestPlace"),window.data=e,window.state=t});function n(){}return(N,a)=>(o(),u("div",h,[p(f(P),{onClick:n},{default:m(()=>[x("Show JSON")]),_:1}),e.entity&&e.profile?(o(),y(_,{key:0,modelValue:e.entity,"onUpdate:modelValue":a[0]||(a[0]=l=>e.entity=l),profile:e.profile},null,8,["modelValue","profile"])):w("",!0)]))}};export{S as default}; diff --git a/assets/TestInputs-DfeAcjsk.js b/assets/TestInputs-DfeAcjsk.js new file mode 100644 index 0000000..6381388 --- /dev/null +++ b/assets/TestInputs-DfeAcjsk.js @@ -0,0 +1 @@ +import{d as c,u as M,a as f,c as $,o,b as p,r as b,n as h,e as s,_ as v,f as F,w as P,g as w,h as j,i as k,j as n,k as r,E as q,l as C,F as V,m as G,p as L,q as S,s as B,t as T,v as _,x as N,y as O,z as J,A as K,B as Q,C as R,D as W,G as D,H as E,I}from"./index-CSc-zF-z.js";const X=c({name:"ElContainer"}),Y=c({...X,props:{direction:{type:String}},setup(i){const a=i,l=M(),t=f("container"),d=$(()=>a.direction==="vertical"?!0:a.direction==="horizontal"?!1:l&&l.default?l.default().some(y=>{const u=y.type.name;return u==="ElHeader"||u==="ElFooter"}):!1);return(m,y)=>(o(),p("section",{class:h([s(t).b(),s(t).is("vertical",s(d))])},[b(m.$slots,"default")],2))}});var Z=v(Y,[["__file","container.vue"]]);const ee=c({name:"ElAside"}),te=c({...ee,props:{width:{type:String,default:null}},setup(i){const a=i,l=f("aside"),t=$(()=>a.width?l.cssVarBlock({width:a.width}):{});return(d,m)=>(o(),p("aside",{class:h(s(l).b()),style:F(s(t))},[b(d.$slots,"default")],6))}});var U=v(te,[["__file","aside.vue"]]);const se=c({name:"ElFooter"}),ae=c({...se,props:{height:{type:String,default:null}},setup(i){const a=i,l=f("footer"),t=$(()=>a.height?l.cssVarBlock({height:a.height}):{});return(d,m)=>(o(),p("footer",{class:h(s(l).b()),style:F(s(t))},[b(d.$slots,"default")],6))}});var H=v(ae,[["__file","footer.vue"]]);const le=c({name:"ElHeader"}),oe=c({...le,props:{height:{type:String,default:null}},setup(i){const a=i,l=f("header"),t=$(()=>a.height?l.cssVarBlock({height:a.height}):{});return(d,m)=>(o(),p("header",{class:h(s(l).b()),style:F(s(t))},[b(d.$slots,"default")],6))}});var z=v(oe,[["__file","header.vue"]]);const ne=c({name:"ElMain"}),re=c({...ne,setup(i){const a=f("main");return(l,t)=>(o(),p("main",{class:h(s(a).b())},[b(l.$slots,"default")],2))}});var A=v(re,[["__file","main.vue"]]);const ce=P(Z,{Aside:U,Footer:H,Header:z,Main:A});w(U);w(H);const ie=w(z),de=w(A),ue=_("h1",{class:"text-2xl"},"Test Vue Components",-1),pe=_("h2",{class:"text-xl"},"Input types",-1),me={class:"pl-2 flex flex-nowrap"},_e=["onUpdate:modelValue"],be={__name:"TestInputs",setup(i){const a=[{"@id":"txc:ElicitationTask","@type":"DefinedTerm",description:"The collection protocol includes a task-based prompt to participants",inDefinedTermSet:{"@id":"txc:CollectionProtocolTypeTerms"},name:"ElicitationTask"},{"@id":"txc:TextSelectionCriteria","@type":"DefinedTerm",description:"A description of the criteria used to select texts in a collection",inDefinedTermSet:{"@id":"txc:CollectionProtocolTypeTerms"},name:"TextSelectionCriteria"},{"@id":"#testid",name:"Test",description:"Test description"}];a.map(u=>({value:u,label:u.name}));const l=[{label:"time",component:D,props:{type:"time"}},{label:"date",component:D,props:{type:"date"}},{label:"datetime",component:D,props:{type:"datetime"}},{label:"number",component:E,props:{type:"number"}},{label:"text",component:E,props:{type:"text"}},{label:"textarea",component:E,props:{type:"textarea"}},{label:"url",component:E,props:{type:"url"}},{label:"select",component:I,props:{options:["aaa","abc","bbbb","bbc"]}},{label:"selectobject",component:I,props:{options:a}},{label:"boolean",component:"el-checkbox",props:{border:!0}}],t=j({test:"a",datetime:"",values:{},form:{},select:null,options:[{name:"a",desc:"da",test:1},{name:"b",desc:"db",test:2},{name:"cc",desc:"dc",test:3}],items:["aaabbb","cccddd","sadfdsaf","eqwrds","xcvds","bbbbb","bbdfdasd","asdfdsf","gewrdsf","asdfsa","fgddaf","sgfdsg"]});window.data=t;function d(){}function m(u){}function y(u){window.alert(u)}return(u,x)=>(o(),k(s(ce),null,{default:n(()=>[r(s(ie),null,{default:n(()=>[ue]),_:1}),r(s(de),null,{default:n(()=>[pe,r(s(q),{"label-width":"auto",novalidate:""},{default:n(()=>[(o(),p(V,null,C(l,e=>(o(),p(V,{key:e},[r(s(N),{label:e.label},{default:n(()=>[(o(),k(O(e.component),J({class:"flex-grow",modelValue:t.values[e.label],"onUpdate:modelValue":g=>t.values[e.label]=g,ref_for:!0},e.props),null,16,["modelValue","onUpdate:modelValue"])),_("div",me,[r(s(S),{onClick:d,type:"danger",plain:"",icon:s(K)},null,8,["icon"]),r(s(S),null,{default:n(()=>[B(" Test ")]),_:1})])]),_:2},1032,["label"]),r(s(N),null,{default:n(()=>[Q(_("input",{type:"text","onUpdate:modelValue":g=>t.values[e.label]=g},null,8,_e),[[R,t.values[e.label]]])]),_:2},1024)],64))),64))]),_:1}),(o(),p(V,null,C(10,e=>_("div",null,T(e),1)),64)),r(s(G),{modelValue:t.select,"onUpdate:modelValue":x[0]||(x[0]=e=>t.select=e),"value-key":"name",onChange:m},{default:n(()=>[(o(!0),p(V,null,C(t.options,e=>(o(),k(s(W),{key:e.name,value:e,label:e.name},{default:n(()=>[B(T(e.name)+" - "+T(e.desc),1)]),_:2},1032,["value","label"]))),128))]),_:1},8,["modelValue"]),r(L,{modelValue:t.items,"onUpdate:modelValue":x[1]||(x[1]=e=>t.items=e)},{default:n(({index:e})=>[r(s(S),{onClick:g=>y(t.items[e])},{default:n(()=>[B(T(t.items[e]),1)]),_:2},1032,["onClick"])]),_:1},8,["modelValue"])]),_:1})]),_:1}))}};export{be as default}; diff --git a/assets/TestInputs-Drhdf9t5.css b/assets/TestInputs-Drhdf9t5.css new file mode 100644 index 0000000..fd115a4 --- /dev/null +++ b/assets/TestInputs-Drhdf9t5.css @@ -0,0 +1 @@ +.el-container{box-sizing:border-box;display:flex;flex:1;flex-basis:auto;flex-direction:row;min-width:0}.el-container.is-vertical{flex-direction:column}.el-aside{box-sizing:border-box;flex-shrink:0;overflow:auto;width:var(--el-aside-width,300px)}.el-footer{--el-footer-padding:0 20px;--el-footer-height:60px;box-sizing:border-box;flex-shrink:0;height:var(--el-footer-height);padding:var(--el-footer-padding)}.el-header{--el-header-padding:0 20px;--el-header-height:60px;box-sizing:border-box;flex-shrink:0;height:var(--el-header-height);padding:var(--el-header-padding)}.el-main{--el-main-padding:20px;box-sizing:border-box;display:block;flex:1;flex-basis:auto;overflow:auto;padding:var(--el-main-padding)}.el-form-item__content{flex-wrap:nowrap;align-items:start} diff --git a/assets/TestSchema-BlIumDqg.js b/assets/TestSchema-BlIumDqg.js new file mode 100644 index 0000000..6daa863 --- /dev/null +++ b/assets/TestSchema-BlIumDqg.js @@ -0,0 +1 @@ +const n={__name:"TestSchema",setup(a){var t;return async function(){const s=await fetch("https://schema.org/version/latest/schemaorg-current-https.jsonld");s.status===200&&(t=await s.json())}(),(e,s)=>null}};export{n as default}; diff --git a/assets/index-CSc-zF-z.js b/assets/index-CSc-zF-z.js new file mode 100644 index 0000000..fe1dec2 --- /dev/null +++ b/assets/index-CSc-zF-z.js @@ -0,0 +1,360 @@ +const __vite__fileDeps=["./TestInputs-DfeAcjsk.js","./TestInputs-Drhdf9t5.css","./TestEntity-BS6U8CNj.js","./language-data-commons-collection-1SBJtGZp.js","./TestCrate-uK_LdIOm.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +var gA=Object.defineProperty;var vA=(t,r,e)=>r in t?gA(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e;var xr=(t,r,e)=>(vA(t,typeof r!="symbol"?r+"":r,e),e),a0=(t,r,e)=>{if(!r.has(t))throw TypeError("Cannot "+e)};var ph=(t,r,e)=>(a0(t,r,"read from private field"),e?e.call(t):r.get(t)),Ad=(t,r,e)=>{if(r.has(t))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(t):r.set(t,e)},hw=(t,r,e,n)=>(a0(t,r,"write to private field"),n?n.call(t,e):r.set(t,e),e);var Pd=(t,r,e)=>(a0(t,r,"access private method"),e);function yA(t,r){for(var e=0;en[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function e(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(o){if(o.ep)return;o.ep=!0;const s=e(o);fetch(o.href,s)}})();/** +* @vue/shared v3.4.27 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function ly(t,r){const e=new Set(t.split(","));return n=>e.has(n)}const Tn={},tu=[],qn=()=>{},bA=()=>!1,fm=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),cy=t=>t.startsWith("onUpdate:"),Kn=Object.assign,uy=(t,r)=>{const e=t.indexOf(r);e>-1&&t.splice(e,1)},_A=Object.prototype.hasOwnProperty,Wr=(t,r)=>_A.call(t,r),Et=Array.isArray,ru=t=>yf(t)==="[object Map]",dm=t=>yf(t)==="[object Set]",fw=t=>yf(t)==="[object Date]",Wt=t=>typeof t=="function",mr=t=>typeof t=="string",aa=t=>typeof t=="symbol",dr=t=>t!==null&&typeof t=="object",rx=t=>(dr(t)||Wt(t))&&Wt(t.then)&&Wt(t.catch),nx=Object.prototype.toString,yf=t=>nx.call(t),cp=t=>yf(t).slice(8,-1),ix=t=>yf(t)==="[object Object]",hy=t=>mr(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Th=ly(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),pm=t=>{const r=Object.create(null);return e=>r[e]||(r[e]=t(e))},wA=/-(\w)/g,rs=pm(t=>t.replace(wA,(r,e)=>e?e.toUpperCase():"")),xA=/\B([A-Z])/g,ul=pm(t=>t.replace(xA,"-$1").toLowerCase()),bf=pm(t=>t.charAt(0).toUpperCase()+t.slice(1)),up=pm(t=>t?`on${bf(t)}`:""),rl=(t,r)=>!Object.is(t,r),hp=(t,r)=>{for(let e=0;e{Object.defineProperty(t,r,{configurable:!0,enumerable:!1,writable:n,value:e})},Q0=t=>{const r=parseFloat(t);return isNaN(r)?t:r},SA=t=>{const r=mr(t)?Number(t):NaN;return isNaN(r)?t:r};let dw;const sx=()=>dw||(dw=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function tn(t){if(Et(t)){const r={};for(let e=0;e{if(e){const n=e.split(kA);n.length>1&&(r[n[0].trim()]=n[1].trim())}}),r}function Ue(t){let r="";if(mr(t))r=t;else if(Et(t))for(let e=0;emm(e,r))}const Rt=t=>mr(t)?t:t==null?"":Et(t)||dr(t)&&(t.toString===nx||!Wt(t.toString))?JSON.stringify(t,cx,2):String(t),cx=(t,r)=>r&&r.__v_isRef?cx(t,r.value):ru(r)?{[`Map(${r.size})`]:[...r.entries()].reduce((e,[n,o],s)=>(e[l0(n,s)+" =>"]=o,e),{})}:dm(r)?{[`Set(${r.size})`]:[...r.values()].map(e=>l0(e))}:aa(r)?l0(r):dr(r)&&!Et(r)&&!ix(r)?String(r):r,l0=(t,r="")=>{var e;return aa(t)?`Symbol(${(e=t.description)!=null?e:r})`:t};/** +* @vue/reactivity v3.4.27 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let ho;class RA{constructor(r=!1){this.detached=r,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ho,!r&&ho&&(this.index=(ho.scopes||(ho.scopes=[])).push(this)-1)}get active(){return this._active}run(r){if(this._active){const e=ho;try{return ho=this,r()}finally{ho=e}}}on(){ho=this}off(){ho=this.parent}stop(r){if(this._active){let e,n;for(e=0,n=this.effects.length;e=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),fl()}return this._dirtyLevel>=4}set dirty(r){this._dirtyLevel=r?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let r=Ya,e=oc;try{return Ya=!0,oc=this,this._runnings++,pw(this),this.fn()}finally{mw(this),this._runnings--,oc=e,Ya=r}}stop(){this.active&&(pw(this),mw(this),this.onStop&&this.onStop(),this.active=!1)}}function $A(t){return t.value}function pw(t){t._trackId++,t._depsLength=0}function mw(t){if(t.deps.length>t._depsLength){for(let r=t._depsLength;r{const e=new Map;return e.cleanup=t,e.computed=r,e},Op=new WeakMap,sc=Symbol(""),rv=Symbol("");function Ji(t,r,e){if(Ya&&oc){let n=Op.get(t);n||Op.set(t,n=new Map);let o=n.get(e);o||n.set(e,o=gx(()=>n.delete(e))),px(oc,o)}}function ia(t,r,e,n,o,s){const i=Op.get(t);if(!i)return;let c=[];if(r==="clear")c=[...i.values()];else if(e==="length"&&Et(t)){const l=Number(n);i.forEach((a,h)=>{(h==="length"||!aa(h)&&h>=l)&&c.push(a)})}else switch(e!==void 0&&c.push(i.get(e)),r){case"add":Et(t)?hy(e)&&c.push(i.get("length")):(c.push(i.get(sc)),ru(t)&&c.push(i.get(rv)));break;case"delete":Et(t)||(c.push(i.get(sc)),ru(t)&&c.push(i.get(rv)));break;case"set":ru(t)&&c.push(i.get(sc));break}dy();for(const l of c)l&&mx(l,4);py()}function LA(t,r){const e=Op.get(t);return e&&e.get(r)}const NA=ly("__proto__,__v_isRef,__isVue"),vx=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(aa)),gw=DA();function DA(){const t={};return["includes","indexOf","lastIndexOf"].forEach(r=>{t[r]=function(...e){const n=Mr(this);for(let s=0,i=this.length;s{t[r]=function(...e){hl(),dy();const n=Mr(this)[r].apply(this,e);return py(),fl(),n}}),t}function jA(t){aa(t)||(t=String(t));const r=Mr(this);return Ji(r,"has",t),r.hasOwnProperty(t)}class yx{constructor(r=!1,e=!1){this._isReadonly=r,this._isShallow=e}get(r,e,n){const o=this._isReadonly,s=this._isShallow;if(e==="__v_isReactive")return!o;if(e==="__v_isReadonly")return o;if(e==="__v_isShallow")return s;if(e==="__v_raw")return n===(o?s?YA:xx:s?wx:_x).get(r)||Object.getPrototypeOf(r)===Object.getPrototypeOf(n)?r:void 0;const i=Et(r);if(!o){if(i&&Wr(gw,e))return Reflect.get(gw,e,n);if(e==="hasOwnProperty")return jA}const c=Reflect.get(r,e,n);return(aa(e)?vx.has(e):NA(e))||(o||Ji(r,"get",e),s)?c:Nn(c)?i&&hy(e)?c:c.value:dr(c)?o?_f(c):sn(c):c}}class bx extends yx{constructor(r=!1){super(!1,r)}set(r,e,n,o){let s=r[e];if(!this._isShallow){const l=Zh(s);if(!Rp(n)&&!Zh(n)&&(s=Mr(s),n=Mr(n)),!Et(r)&&Nn(s)&&!Nn(n))return l?!1:(s.value=n,!0)}const i=Et(r)&&hy(e)?Number(e)t,gm=t=>Reflect.getPrototypeOf(t);function Md(t,r,e=!1,n=!1){t=t.__v_raw;const o=Mr(t),s=Mr(r);e||(rl(r,s)&&Ji(o,"get",r),Ji(o,"get",s));const{has:i}=gm(o),c=n?my:e?yy:Xh;if(i.call(o,r))return c(t.get(r));if(i.call(o,s))return c(t.get(s));t!==o&&t.get(r)}function Od(t,r=!1){const e=this.__v_raw,n=Mr(e),o=Mr(t);return r||(rl(t,o)&&Ji(n,"has",t),Ji(n,"has",o)),t===o?e.has(t):e.has(t)||e.has(o)}function Rd(t,r=!1){return t=t.__v_raw,!r&&Ji(Mr(t),"iterate",sc),Reflect.get(t,"size",t)}function vw(t){t=Mr(t);const r=Mr(this);return gm(r).has.call(r,t)||(r.add(t),ia(r,"add",t,t)),this}function yw(t,r){r=Mr(r);const e=Mr(this),{has:n,get:o}=gm(e);let s=n.call(e,t);s||(t=Mr(t),s=n.call(e,t));const i=o.call(e,t);return e.set(t,r),s?rl(r,i)&&ia(e,"set",t,r):ia(e,"add",t,r),this}function bw(t){const r=Mr(this),{has:e,get:n}=gm(r);let o=e.call(r,t);o||(t=Mr(t),o=e.call(r,t)),n&&n.call(r,t);const s=r.delete(t);return o&&ia(r,"delete",t,void 0),s}function _w(){const t=Mr(this),r=t.size!==0,e=t.clear();return r&&ia(t,"clear",void 0,void 0),e}function Id(t,r){return function(n,o){const s=this,i=s.__v_raw,c=Mr(i),l=r?my:t?yy:Xh;return!t&&Ji(c,"iterate",sc),i.forEach((a,h)=>n.call(o,l(a),l(h),s))}}function $d(t,r,e){return function(...n){const o=this.__v_raw,s=Mr(o),i=ru(s),c=t==="entries"||t===Symbol.iterator&&i,l=t==="keys"&&i,a=o[t](...n),h=e?my:r?yy:Xh;return!r&&Ji(s,"iterate",l?rv:sc),{next(){const{value:u,done:f}=a.next();return f?{value:u,done:f}:{value:c?[h(u[0]),h(u[1])]:h(u),done:f}},[Symbol.iterator](){return this}}}}function Ma(t){return function(...r){return t==="delete"?!1:t==="clear"?void 0:this}}function HA(){const t={get(s){return Md(this,s)},get size(){return Rd(this)},has:Od,add:vw,set:yw,delete:bw,clear:_w,forEach:Id(!1,!1)},r={get(s){return Md(this,s,!1,!0)},get size(){return Rd(this)},has:Od,add:vw,set:yw,delete:bw,clear:_w,forEach:Id(!1,!0)},e={get(s){return Md(this,s,!0)},get size(){return Rd(this,!0)},has(s){return Od.call(this,s,!0)},add:Ma("add"),set:Ma("set"),delete:Ma("delete"),clear:Ma("clear"),forEach:Id(!0,!1)},n={get(s){return Md(this,s,!0,!0)},get size(){return Rd(this,!0)},has(s){return Od.call(this,s,!0)},add:Ma("add"),set:Ma("set"),delete:Ma("delete"),clear:Ma("clear"),forEach:Id(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{t[s]=$d(s,!1,!1),e[s]=$d(s,!0,!1),r[s]=$d(s,!1,!0),n[s]=$d(s,!0,!0)}),[t,e,r,n]}const[UA,WA,qA,GA]=HA();function gy(t,r){const e=r?t?GA:qA:t?WA:UA;return(n,o,s)=>o==="__v_isReactive"?!t:o==="__v_isReadonly"?t:o==="__v_raw"?n:Reflect.get(Wr(e,o)&&o in n?e:n,o,s)}const KA={get:gy(!1,!1)},ZA={get:gy(!1,!0)},XA={get:gy(!0,!1)};const _x=new WeakMap,wx=new WeakMap,xx=new WeakMap,YA=new WeakMap;function JA(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function QA(t){return t.__v_skip||!Object.isExtensible(t)?0:JA(cp(t))}function sn(t){return Zh(t)?t:vy(t,!1,FA,KA,_x)}function cu(t){return vy(t,!1,VA,ZA,wx)}function _f(t){return vy(t,!0,zA,XA,xx)}function vy(t,r,e,n,o){if(!dr(t)||t.__v_raw&&!(r&&t.__v_isReactive))return t;const s=o.get(t);if(s)return s;const i=QA(t);if(i===0)return t;const c=new Proxy(t,i===2?n:e);return o.set(t,c),c}function Ah(t){return Zh(t)?Ah(t.__v_raw):!!(t&&t.__v_isReactive)}function Zh(t){return!!(t&&t.__v_isReadonly)}function Rp(t){return!!(t&&t.__v_isShallow)}function Sx(t){return t?!!t.__v_raw:!1}function Mr(t){const r=t&&t.__v_raw;return r?Mr(r):t}function nv(t){return Object.isExtensible(t)&&ox(t,"__v_skip",!0),t}const Xh=t=>dr(t)?sn(t):t,yy=t=>dr(t)?_f(t):t;class Cx{constructor(r,e,n,o){this.getter=r,this._setter=e,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new fy(()=>r(this._value),()=>fp(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const r=Mr(this);return(!r._cacheable||r.effect.dirty)&&rl(r._value,r._value=r.effect.run())&&fp(r,4),Ex(r),r.effect._dirtyLevel>=2&&fp(r,2),r._value}set value(r){this._setter(r)}get _dirty(){return this.effect.dirty}set _dirty(r){this.effect.dirty=r}}function kx(t,r,e=!1){let n,o;const s=Wt(t);return s?(n=t,o=qn):(n=t.get,o=t.set),new Cx(n,o,s||!o,e)}function Ex(t){var r;Ya&&oc&&(t=Mr(t),px(oc,(r=t.dep)!=null?r:t.dep=gx(()=>t.dep=void 0,t instanceof Cx?t:void 0)))}function fp(t,r=4,e){t=Mr(t);const n=t.dep;n&&mx(n,r)}function Nn(t){return!!(t&&t.__v_isRef===!0)}function ze(t){return Tx(t,!1)}function Ja(t){return Tx(t,!0)}function Tx(t,r){return Nn(t)?t:new eP(t,r)}class eP{constructor(r,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?r:Mr(r),this._value=e?r:Xh(r)}get value(){return Ex(this),this._value}set value(r){const e=this.__v_isShallow||Rp(r)||Zh(r);r=e?r:Mr(r),rl(r,this._rawValue)&&(this._rawValue=r,this._value=e?r:Xh(r),fp(this,4))}}function re(t){return Nn(t)?t.value:t}const tP={get:(t,r,e)=>re(Reflect.get(t,r,e)),set:(t,r,e,n)=>{const o=t[r];return Nn(o)&&!Nn(e)?(o.value=e,!0):Reflect.set(t,r,e,n)}};function Ax(t){return Ah(t)?t:new Proxy(t,tP)}function nl(t){const r=Et(t)?new Array(t.length):{};for(const e in t)r[e]=Px(t,e);return r}class rP{constructor(r,e,n){this._object=r,this._key=e,this._defaultValue=n,this.__v_isRef=!0}get value(){const r=this._object[this._key];return r===void 0?this._defaultValue:r}set value(r){this._object[this._key]=r}get dep(){return LA(Mr(this._object),this._key)}}class nP{constructor(r){this._getter=r,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Po(t,r,e){return Nn(t)?t:Wt(t)?new nP(t):dr(t)&&arguments.length>1?Px(t,r,e):ze(t)}function Px(t,r,e){const n=t[r];return Nn(n)?n:new rP(t,r,e)}/** +* @vue/runtime-core v3.4.27 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Qa(t,r,e,n){try{return n?t(...n):t()}catch(o){vm(o,r,e)}}function Mo(t,r,e,n){if(Wt(t)){const o=Qa(t,r,e,n);return o&&rx(o)&&o.catch(s=>{vm(s,r,e)}),o}if(Et(t)){const o=[];for(let s=0;s>>1,o=Ti[n],s=Jh(o);sEs&&Ti.splice(r,1)}function sP(t){Et(t)?nu.push(...t):(!Fa||!Fa.includes(t,t.allowRecurse?Kl+1:Kl))&&nu.push(t),Ox()}function ww(t,r,e=Yh?Es+1:0){for(;eJh(e)-Jh(n));if(nu.length=0,Fa){Fa.push(...r);return}for(Fa=r,Kl=0;Klt.id==null?1/0:t.id,aP=(t,r)=>{const e=Jh(t)-Jh(r);if(e===0){if(t.pre&&!r.pre)return-1;if(r.pre&&!t.pre)return 1}return e};function Ix(t){iv=!1,Yh=!0,Ti.sort(aP);try{for(Es=0;Esmr(d)?d.trim():d)),u&&(o=e.map(Q0))}let c,l=n[c=up(r)]||n[c=up(rs(r))];!l&&s&&(l=n[c=up(ul(r))]),l&&Mo(l,t,6,o);const a=n[c+"Once"];if(a){if(!t.emitted)t.emitted={};else if(t.emitted[c])return;t.emitted[c]=!0,Mo(a,t,6,o)}}function $x(t,r,e=!1){const n=r.emitsCache,o=n.get(t);if(o!==void 0)return o;const s=t.emits;let i={},c=!1;if(!Wt(t)){const l=a=>{const h=$x(a,r,!0);h&&(c=!0,Kn(i,h))};!e&&r.mixins.length&&r.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!s&&!c?(dr(t)&&n.set(t,null),null):(Et(s)?s.forEach(l=>i[l]=null):Kn(i,s),dr(t)&&n.set(t,i),i)}function ym(t,r){return!t||!fm(r)?!1:(r=r.slice(2).replace(/Once$/,""),Wr(t,r[0].toLowerCase()+r.slice(1))||Wr(t,ul(r))||Wr(t,r))}let ti=null,Lx=null;function Ip(t){const r=ti;return ti=t,Lx=t&&t.type.__scopeId||null,r}function De(t,r=ti,e){if(!r||t._n)return t;const n=(...o)=>{n._d&&Lp(-1);const s=Ip(r);let i;try{i=t(...o)}finally{Ip(s),n._d&&Lp(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function c0(t){const{type:r,vnode:e,proxy:n,withProxy:o,propsOptions:[s],slots:i,attrs:c,emit:l,render:a,renderCache:h,props:u,data:f,setupState:d,ctx:m,inheritAttrs:p}=t,g=Ip(t);let v,b;try{if(e.shapeFlag&4){const E=o||n,O=E;v=ks(a.call(O,E,h,u,d,f,m)),b=c}else{const E=r;v=ks(E.length>1?E(u,{attrs:c,slots:i,emit:l}):E(u,null)),b=r.props?c:cP(c)}}catch(E){Ih.length=0,vm(E,t,1),v=He(Zi)}let _=v;if(b&&p!==!1){const E=Object.keys(b),{shapeFlag:O}=_;E.length&&O&7&&(s&&E.some(cy)&&(b=uP(b,s)),_=la(_,b,!1,!0))}return e.dirs&&(_=la(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(e.dirs):e.dirs),e.transition&&(_.transition=e.transition),v=_,Ip(g),v}const cP=t=>{let r;for(const e in t)(e==="class"||e==="style"||fm(e))&&((r||(r={}))[e]=t[e]);return r},uP=(t,r)=>{const e={};for(const n in t)(!cy(n)||!(n.slice(9)in r))&&(e[n]=t[n]);return e};function hP(t,r,e){const{props:n,children:o,component:s}=t,{props:i,children:c,patchFlag:l}=r,a=s.emitsOptions;if(r.dirs||r.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return n?xw(n,i,a):!!i;if(l&8){const h=r.dynamicProps;for(let u=0;ut.__isSuspense;function mP(t,r){r&&r.pendingBranch?Et(t)?r.effects.push(...t):r.effects.push(t):sP(t)}const gP=Symbol.for("v-scx"),vP=()=>Ft(gP);function cc(t,r){return Cy(t,null,r)}const Ld={};function St(t,r,e){return Cy(t,r,e)}function Cy(t,r,{immediate:e,deep:n,flush:o,once:s,onTrack:i,onTrigger:c}=Tn){if(r&&s){const j=r;r=(...W)=>{j(...W),O()}}const l=di,a=j=>n===!0?j:tc(j,n===!1?1:void 0);let h,u=!1,f=!1;if(Nn(t)?(h=()=>t.value,u=Rp(t)):Ah(t)?(h=()=>a(t),u=!0):Et(t)?(f=!0,u=t.some(j=>Ah(j)||Rp(j)),h=()=>t.map(j=>{if(Nn(j))return j.value;if(Ah(j))return a(j);if(Wt(j))return Qa(j,l,2)})):Wt(t)?r?h=()=>Qa(t,l,2):h=()=>(d&&d(),Mo(t,l,3,[m])):h=qn,r&&n){const j=h;h=()=>tc(j())}let d,m=j=>{d=_.onStop=()=>{Qa(j,l,4),d=_.onStop=void 0}},p;if(wm)if(m=qn,r?e&&Mo(r,l,3,[h(),f?[]:void 0,m]):h(),o==="sync"){const j=vP();p=j.__watcherHandles||(j.__watcherHandles=[])}else return qn;let g=f?new Array(t.length).fill(Ld):Ld;const v=()=>{if(!(!_.active||!_.dirty))if(r){const j=_.run();(n||u||(f?j.some((W,z)=>rl(W,g[z])):rl(j,g)))&&(d&&d(),Mo(r,l,3,[j,g===Ld?void 0:f&&g[0]===Ld?[]:g,m]),g=j)}else _.run()};v.allowRecurse=!!r;let b;o==="sync"?b=v:o==="post"?b=()=>qi(v,l&&l.suspense):(v.pre=!0,l&&(v.id=l.uid),b=()=>_y(v));const _=new fy(h,qn,b),E=ux(),O=()=>{_.stop(),E&&uy(E.effects,_)};return r?e?v():g=_.run():o==="post"?qi(_.run.bind(_),l&&l.suspense):_.run(),p&&p.push(O),O}function yP(t,r,e){const n=this.proxy,o=mr(t)?t.includes(".")?Dx(n,t):()=>n[t]:t.bind(n,n);let s;Wt(r)?s=r:(s=r.handler,e=r);const i=xf(this),c=Cy(o,s.bind(n),e);return i(),c}function Dx(t,r){const e=r.split(".");return()=>{let n=t;for(let o=0;o{tc(n,r,e)});else if(ix(t))for(const n in t)tc(t[n],r,e);return t}function bn(t,r){if(ti===null)return t;const e=xm(ti)||ti.proxy,n=t.dirs||(t.dirs=[]);for(let o=0;o{t.isMounted=!0}),ni(()=>{t.isUnmounting=!0}),t}const ko=[Function,Array],Bx={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ko,onEnter:ko,onAfterEnter:ko,onEnterCancelled:ko,onBeforeLeave:ko,onLeave:ko,onAfterLeave:ko,onLeaveCancelled:ko,onBeforeAppear:ko,onAppear:ko,onAfterAppear:ko,onAppearCancelled:ko},bP={name:"BaseTransition",props:Bx,setup(t,{slots:r}){const e=an(),n=jx();return()=>{const o=r.default&&ky(r.default(),!0);if(!o||!o.length)return;let s=o[0];if(o.length>1){for(const f of o)if(f.type!==Zi){s=f;break}}const i=Mr(t),{mode:c}=i;if(n.isLeaving)return u0(s);const l=Cw(s);if(!l)return u0(s);const a=Qh(l,i,n,e);ef(l,a);const h=e.subTree,u=h&&Cw(h);if(u&&u.type!==Zi&&!Zl(l,u)){const f=Qh(u,i,n,e);if(ef(u,f),c==="out-in"&&l.type!==Zi)return n.isLeaving=!0,f.afterLeave=()=>{n.isLeaving=!1,e.update.active!==!1&&(e.effect.dirty=!0,e.update())},u0(s);c==="in-out"&&l.type!==Zi&&(f.delayLeave=(d,m,p)=>{const g=Fx(n,u);g[String(u.key)]=u,d[za]=()=>{m(),d[za]=void 0,delete a.delayedLeave},a.delayedLeave=p})}return s}}},_P=bP;function Fx(t,r){const{leavingVNodes:e}=t;let n=e.get(r.type);return n||(n=Object.create(null),e.set(r.type,n)),n}function Qh(t,r,e,n){const{appear:o,mode:s,persisted:i=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:a,onEnterCancelled:h,onBeforeLeave:u,onLeave:f,onAfterLeave:d,onLeaveCancelled:m,onBeforeAppear:p,onAppear:g,onAfterAppear:v,onAppearCancelled:b}=r,_=String(t.key),E=Fx(e,t),O=(z,U)=>{z&&Mo(z,n,9,U)},j=(z,U)=>{const K=U[1];O(z,U),Et(z)?z.every(Y=>Y.length<=1)&&K():z.length<=1&&K()},W={mode:s,persisted:i,beforeEnter(z){let U=c;if(!e.isMounted)if(o)U=p||c;else return;z[za]&&z[za](!0);const K=E[_];K&&Zl(t,K)&&K.el[za]&&K.el[za](),O(U,[z])},enter(z){let U=l,K=a,Y=h;if(!e.isMounted)if(o)U=g||l,K=v||a,Y=b||h;else return;let G=!1;const R=z[Nd]=D=>{G||(G=!0,D?O(Y,[z]):O(K,[z]),W.delayedLeave&&W.delayedLeave(),z[Nd]=void 0)};U?j(U,[z,R]):R()},leave(z,U){const K=String(t.key);if(z[Nd]&&z[Nd](!0),e.isUnmounting)return U();O(u,[z]);let Y=!1;const G=z[za]=R=>{Y||(Y=!0,U(),R?O(m,[z]):O(d,[z]),z[za]=void 0,E[K]===t&&delete E[K])};E[K]=t,f?j(f,[z,G]):G()},clone(z){return Qh(z,r,e,n)}};return W}function u0(t){if(bm(t))return t=la(t),t.children=null,t}function Cw(t){if(!bm(t))return t;const{shapeFlag:r,children:e}=t;if(e){if(r&16)return e[0];if(r&32&&Wt(e.default))return e.default()}}function ef(t,r){t.shapeFlag&6&&t.component?ef(t.component.subTree,r):t.shapeFlag&128?(t.ssContent.transition=r.clone(t.ssContent),t.ssFallback.transition=r.clone(t.ssFallback)):t.transition=r}function ky(t,r=!1,e){let n=[],o=0;for(let s=0;s1)for(let s=0;s!!t.type.__asyncLoader,bm=t=>t.type.__isKeepAlive;function zx(t,r){Vx(t,"a",r)}function Ey(t,r){Vx(t,"da",r)}function Vx(t,r,e=di){const n=t.__wdc||(t.__wdc=()=>{let o=e;for(;o;){if(o.isDeactivated)return;o=o.parent}return t()});if(_m(r,n,e),e){let o=e.parent;for(;o&&o.parent;)bm(o.parent.vnode)&&wP(n,r,e,o),o=o.parent}}function wP(t,r,e,n){const o=_m(r,t,n,!0);wf(()=>{uy(n[r],o)},e)}function _m(t,r,e=di,n=!1){if(e){const o=e[t]||(e[t]=[]),s=r.__weh||(r.__weh=(...i)=>{if(e.isUnmounted)return;hl();const c=xf(e),l=Mo(r,e,t,i);return c(),fl(),l});return n?o.unshift(s):o.push(s),s}}const fa=t=>(r,e=di)=>(!wm||t==="sp")&&_m(t,(...n)=>r(...n),e),Hx=fa("bm"),ln=fa("m"),xP=fa("bu"),vc=fa("u"),ni=fa("bum"),wf=fa("um"),SP=fa("sp"),CP=fa("rtg"),kP=fa("rtc");function EP(t,r=di){_m("ec",t,r)}function Cn(t,r,e,n){let o;const s=e;if(Et(t)||mr(t)){o=new Array(t.length);for(let i=0,c=t.length;ir(i,c,void 0,s));else{const i=Object.keys(t);o=new Array(i.length);for(let c=0,l=i.length;c{const s=n.fn(...o);return s&&(s.key=n.key),s}:n.fn)}return t}function kt(t,r,e={},n,o){if(ti.isCE||ti.parent&&Ph(ti.parent)&&ti.parent.isCE)return r!=="default"&&(e.name=r),He("slot",e,n&&n());let s=t[r];s&&s._c&&(s._d=!1),Se();const i=s&&Wx(s(e)),c=nt(Ht,{key:e.key||i&&i.key||`_${r}`},i||(n?n():[]),i&&t._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),s&&s._c&&(s._d=!0),c}function Wx(t){return t.some(r=>$s(r)?!(r.type===Zi||r.type===Ht&&!Wx(r.children)):!0)?t:null}function TP(t,r){const e={};for(const n in t)e[up(n)]=t[n];return e}const ov=t=>t?u6(t)?xm(t)||t.proxy:ov(t.parent):null,Mh=Kn(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>ov(t.parent),$root:t=>ov(t.root),$emit:t=>t.emit,$options:t=>Ty(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,_y(t.update)}),$nextTick:t=>t.n||(t.n=jr.bind(t.proxy)),$watch:t=>yP.bind(t)}),h0=(t,r)=>t!==Tn&&!t.__isScriptSetup&&Wr(t,r),AP={get({_:t},r){if(r==="__v_skip")return!0;const{ctx:e,setupState:n,data:o,props:s,accessCache:i,type:c,appContext:l}=t;let a;if(r[0]!=="$"){const d=i[r];if(d!==void 0)switch(d){case 1:return n[r];case 2:return o[r];case 4:return e[r];case 3:return s[r]}else{if(h0(n,r))return i[r]=1,n[r];if(o!==Tn&&Wr(o,r))return i[r]=2,o[r];if((a=t.propsOptions[0])&&Wr(a,r))return i[r]=3,s[r];if(e!==Tn&&Wr(e,r))return i[r]=4,e[r];sv&&(i[r]=0)}}const h=Mh[r];let u,f;if(h)return r==="$attrs"&&Ji(t.attrs,"get",""),h(t);if((u=c.__cssModules)&&(u=u[r]))return u;if(e!==Tn&&Wr(e,r))return i[r]=4,e[r];if(f=l.config.globalProperties,Wr(f,r))return f[r]},set({_:t},r,e){const{data:n,setupState:o,ctx:s}=t;return h0(o,r)?(o[r]=e,!0):n!==Tn&&Wr(n,r)?(n[r]=e,!0):Wr(t.props,r)||r[0]==="$"&&r.slice(1)in t?!1:(s[r]=e,!0)},has({_:{data:t,setupState:r,accessCache:e,ctx:n,appContext:o,propsOptions:s}},i){let c;return!!e[i]||t!==Tn&&Wr(t,i)||h0(r,i)||(c=s[0])&&Wr(c,i)||Wr(n,i)||Wr(Mh,i)||Wr(o.config.globalProperties,i)},defineProperty(t,r,e){return e.get!=null?t._.accessCache[r]=0:Wr(e,"value")&&this.set(t,r,e.value,null),Reflect.defineProperty(t,r,e)}};function dl(){return qx().slots}function PP(){return qx().attrs}function qx(){const t=an();return t.setupContext||(t.setupContext=f6(t))}function kw(t){return Et(t)?t.reduce((r,e)=>(r[e]=null,r),{}):t}let sv=!0;function MP(t){const r=Ty(t),e=t.proxy,n=t.ctx;sv=!1,r.beforeCreate&&Ew(r.beforeCreate,t,"bc");const{data:o,computed:s,methods:i,watch:c,provide:l,inject:a,created:h,beforeMount:u,mounted:f,beforeUpdate:d,updated:m,activated:p,deactivated:g,beforeDestroy:v,beforeUnmount:b,destroyed:_,unmounted:E,render:O,renderTracked:j,renderTriggered:W,errorCaptured:z,serverPrefetch:U,expose:K,inheritAttrs:Y,components:G,directives:R,filters:D}=r;if(a&&OP(a,n,null),i)for(const S in i){const C=i[S];Wt(C)&&(n[S]=C.bind(e))}if(o){const S=o.call(e,e);dr(S)&&(t.data=sn(S))}if(sv=!0,s)for(const S in s){const C=s[S],T=Wt(C)?C.bind(e,e):Wt(C.get)?C.get.bind(e,e):qn,M=!Wt(C)&&Wt(C.set)?C.set.bind(e):qn,N=_e({get:T,set:M});Object.defineProperty(n,S,{enumerable:!0,configurable:!0,get:()=>N.value,set:F=>N.value=F})}if(c)for(const S in c)Gx(c[S],n,e,S);if(l){const S=Wt(l)?l.call(e):l;Reflect.ownKeys(S).forEach(C=>{pn(C,S[C])})}h&&Ew(h,t,"c");function x(S,C){Et(C)?C.forEach(T=>S(T.bind(e))):C&&S(C.bind(e))}if(x(Hx,u),x(ln,f),x(xP,d),x(vc,m),x(zx,p),x(Ey,g),x(EP,z),x(kP,j),x(CP,W),x(ni,b),x(wf,E),x(SP,U),Et(K))if(K.length){const S=t.exposed||(t.exposed={});K.forEach(C=>{Object.defineProperty(S,C,{get:()=>e[C],set:T=>e[C]=T})})}else t.exposed||(t.exposed={});O&&t.render===qn&&(t.render=O),Y!=null&&(t.inheritAttrs=Y),G&&(t.components=G),R&&(t.directives=R)}function OP(t,r,e=qn){Et(t)&&(t=av(t));for(const n in t){const o=t[n];let s;dr(o)?"default"in o?s=Ft(o.from||n,o.default,!0):s=Ft(o.from||n):s=Ft(o),Nn(s)?Object.defineProperty(r,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):r[n]=s}}function Ew(t,r,e){Mo(Et(t)?t.map(n=>n.bind(r.proxy)):t.bind(r.proxy),r,e)}function Gx(t,r,e,n){const o=n.includes(".")?Dx(e,n):()=>e[n];if(mr(t)){const s=r[t];Wt(s)&&St(o,s)}else if(Wt(t))St(o,t.bind(e));else if(dr(t))if(Et(t))t.forEach(s=>Gx(s,r,e,n));else{const s=Wt(t.handler)?t.handler.bind(e):r[t.handler];Wt(s)&&St(o,s,t)}}function Ty(t){const r=t.type,{mixins:e,extends:n}=r,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=t.appContext,c=s.get(r);let l;return c?l=c:!o.length&&!e&&!n?l=r:(l={},o.length&&o.forEach(a=>$p(l,a,i,!0)),$p(l,r,i)),dr(r)&&s.set(r,l),l}function $p(t,r,e,n=!1){const{mixins:o,extends:s}=r;s&&$p(t,s,e,!0),o&&o.forEach(i=>$p(t,i,e,!0));for(const i in r)if(!(n&&i==="expose")){const c=RP[i]||e&&e[i];t[i]=c?c(t[i],r[i]):r[i]}return t}const RP={data:Tw,props:Aw,emits:Aw,methods:Sh,computed:Sh,beforeCreate:Ni,created:Ni,beforeMount:Ni,mounted:Ni,beforeUpdate:Ni,updated:Ni,beforeDestroy:Ni,beforeUnmount:Ni,destroyed:Ni,unmounted:Ni,activated:Ni,deactivated:Ni,errorCaptured:Ni,serverPrefetch:Ni,components:Sh,directives:Sh,watch:$P,provide:Tw,inject:IP};function Tw(t,r){return r?t?function(){return Kn(Wt(t)?t.call(this,this):t,Wt(r)?r.call(this,this):r)}:r:t}function IP(t,r){return Sh(av(t),av(r))}function av(t){if(Et(t)){const r={};for(let e=0;e1)return e&&Wt(r)?r.call(n&&n.proxy):r}}const Zx={},Xx=()=>Object.create(Zx),Yx=t=>Object.getPrototypeOf(t)===Zx;function DP(t,r,e,n=!1){const o={},s=Xx();t.propsDefaults=Object.create(null),Jx(t,r,o,s);for(const i in t.propsOptions[0])i in o||(o[i]=void 0);e?t.props=n?o:cu(o):t.type.props?t.props=o:t.props=s,t.attrs=s}function jP(t,r,e,n){const{props:o,attrs:s,vnode:{patchFlag:i}}=t,c=Mr(o),[l]=t.propsOptions;let a=!1;if((n||i>0)&&!(i&16)){if(i&8){const h=t.vnode.dynamicProps;for(let u=0;u{l=!0;const[f,d]=Qx(u,r,!0);Kn(i,f),d&&c.push(...d)};!e&&r.mixins.length&&r.mixins.forEach(h),t.extends&&h(t.extends),t.mixins&&t.mixins.forEach(h)}if(!s&&!l)return dr(t)&&n.set(t,tu),tu;if(Et(s))for(let h=0;h-1,d[1]=p<0||m-1||Wr(d,"default"))&&c.push(u)}}}const a=[i,c];return dr(t)&&n.set(t,a),a}function Pw(t){return t[0]!=="$"&&!Th(t)}function Mw(t){return t===null?"null":typeof t=="function"?t.name||"":typeof t=="object"&&t.constructor&&t.constructor.name||""}function Ow(t,r){return Mw(t)===Mw(r)}function Rw(t,r){return Et(r)?r.findIndex(e=>Ow(e,t)):Wt(r)&&Ow(r,t)?0:-1}const e6=t=>t[0]==="_"||t==="$stable",Ay=t=>Et(t)?t.map(ks):[ks(t)],BP=(t,r,e)=>{if(r._n)return r;const n=De((...o)=>Ay(r(...o)),e);return n._c=!1,n},t6=(t,r,e)=>{const n=t._ctx;for(const o in t){if(e6(o))continue;const s=t[o];if(Wt(s))r[o]=BP(o,s,n);else if(s!=null){const i=Ay(s);r[o]=()=>i}}},r6=(t,r)=>{const e=Ay(r);t.slots.default=()=>e},FP=(t,r)=>{const e=t.slots=Xx();if(t.vnode.shapeFlag&32){const n=r._;n?(Kn(e,r),ox(e,"_",n,!0)):t6(r,e)}else r&&r6(t,r)},zP=(t,r,e)=>{const{vnode:n,slots:o}=t;let s=!0,i=Tn;if(n.shapeFlag&32){const c=r._;c?e&&c===1?s=!1:(Kn(o,r),!e&&c===1&&delete o._):(s=!r.$stable,t6(r,o)),i=r}else r&&(r6(t,r),i={default:1});if(s)for(const c in o)!e6(c)&&i[c]==null&&delete o[c]};function cv(t,r,e,n,o=!1){if(Et(t)){t.forEach((f,d)=>cv(f,r&&(Et(r)?r[d]:r),e,n,o));return}if(Ph(n)&&!o)return;const s=n.shapeFlag&4?xm(n.component)||n.component.proxy:n.el,i=o?null:s,{i:c,r:l}=t,a=r&&r.r,h=c.refs===Tn?c.refs={}:c.refs,u=c.setupState;if(a!=null&&a!==l&&(mr(a)?(h[a]=null,Wr(u,a)&&(u[a]=null)):Nn(a)&&(a.value=null)),Wt(l))Qa(l,c,12,[i,h]);else{const f=mr(l),d=Nn(l);if(f||d){const m=()=>{if(t.f){const p=f?Wr(u,l)?u[l]:h[l]:l.value;o?Et(p)&&uy(p,s):Et(p)?p.includes(s)||p.push(s):f?(h[l]=[s],Wr(u,l)&&(u[l]=h[l])):(l.value=[s],t.k&&(h[t.k]=l.value))}else f?(h[l]=i,Wr(u,l)&&(u[l]=i)):d&&(l.value=i,t.k&&(h[t.k]=i))};i?(m.id=-1,qi(m,e)):m()}}}const qi=mP;function VP(t){return HP(t)}function HP(t,r){const e=sx();e.__VUE__=!0;const{insert:n,remove:o,patchProp:s,createElement:i,createText:c,createComment:l,setText:a,setElementText:h,parentNode:u,nextSibling:f,setScopeId:d=qn,insertStaticContent:m}=t,p=(te,ie,de,me=null,se=null,ve=null,be=void 0,ke=null,Ce=!!ie.dynamicChildren)=>{if(te===ie)return;te&&!Zl(te,ie)&&(me=J(te),F(te,se,ve,!0),te=null),ie.patchFlag===-2&&(Ce=!1,ie.dynamicChildren=null);const{type:Ee,ref:Me,shapeFlag:Le}=ie;switch(Ee){case ku:g(te,ie,de,me);break;case Zi:v(te,ie,de,me);break;case dp:te==null&&b(ie,de,me,be);break;case Ht:G(te,ie,de,me,se,ve,be,ke,Ce);break;default:Le&1?O(te,ie,de,me,se,ve,be,ke,Ce):Le&6?R(te,ie,de,me,se,ve,be,ke,Ce):(Le&64||Le&128)&&Ee.process(te,ie,de,me,se,ve,be,ke,Ce,X)}Me!=null&&se&&cv(Me,te&&te.ref,ve,ie||te,!ie)},g=(te,ie,de,me)=>{if(te==null)n(ie.el=c(ie.children),de,me);else{const se=ie.el=te.el;ie.children!==te.children&&a(se,ie.children)}},v=(te,ie,de,me)=>{te==null?n(ie.el=l(ie.children||""),de,me):ie.el=te.el},b=(te,ie,de,me)=>{[te.el,te.anchor]=m(te.children,ie,de,me,te.el,te.anchor)},_=({el:te,anchor:ie},de,me)=>{let se;for(;te&&te!==ie;)se=f(te),n(te,de,me),te=se;n(ie,de,me)},E=({el:te,anchor:ie})=>{let de;for(;te&&te!==ie;)de=f(te),o(te),te=de;o(ie)},O=(te,ie,de,me,se,ve,be,ke,Ce)=>{ie.type==="svg"?be="svg":ie.type==="math"&&(be="mathml"),te==null?j(ie,de,me,se,ve,be,ke,Ce):U(te,ie,se,ve,be,ke,Ce)},j=(te,ie,de,me,se,ve,be,ke)=>{let Ce,Ee;const{props:Me,shapeFlag:Le,transition:Ae,dirs:Fe}=te;if(Ce=te.el=i(te.type,ve,Me&&Me.is,Me),Le&8?h(Ce,te.children):Le&16&&z(te.children,Ce,null,me,se,f0(te,ve),be,ke),Fe&&Fl(te,null,me,"created"),W(Ce,te,te.scopeId,be,me),Me){for(const Ye in Me)Ye!=="value"&&!Th(Ye)&&s(Ce,Ye,null,Me[Ye],ve,te.children,me,se,B);"value"in Me&&s(Ce,"value",null,Me.value,ve),(Ee=Me.onVnodeBeforeMount)&&ws(Ee,me,te)}Fe&&Fl(te,null,me,"beforeMount");const Ge=UP(se,Ae);Ge&&Ae.beforeEnter(Ce),n(Ce,ie,de),((Ee=Me&&Me.onVnodeMounted)||Ge||Fe)&&qi(()=>{Ee&&ws(Ee,me,te),Ge&&Ae.enter(Ce),Fe&&Fl(te,null,me,"mounted")},se)},W=(te,ie,de,me,se)=>{if(de&&d(te,de),me)for(let ve=0;ve{for(let Ee=Ce;Ee{const ke=ie.el=te.el;let{patchFlag:Ce,dynamicChildren:Ee,dirs:Me}=ie;Ce|=te.patchFlag&16;const Le=te.props||Tn,Ae=ie.props||Tn;let Fe;if(de&&zl(de,!1),(Fe=Ae.onVnodeBeforeUpdate)&&ws(Fe,de,ie,te),Me&&Fl(ie,te,de,"beforeUpdate"),de&&zl(de,!0),Ee?K(te.dynamicChildren,Ee,ke,de,me,f0(ie,se),ve):be||C(te,ie,ke,null,de,me,f0(ie,se),ve,!1),Ce>0){if(Ce&16)Y(ke,ie,Le,Ae,de,me,se);else if(Ce&2&&Le.class!==Ae.class&&s(ke,"class",null,Ae.class,se),Ce&4&&s(ke,"style",Le.style,Ae.style,se),Ce&8){const Ge=ie.dynamicProps;for(let Ye=0;Ye{Fe&&ws(Fe,de,ie,te),Me&&Fl(ie,te,de,"updated")},me)},K=(te,ie,de,me,se,ve,be)=>{for(let ke=0;ke{if(de!==me){if(de!==Tn)for(const ke in de)!Th(ke)&&!(ke in me)&&s(te,ke,de[ke],null,be,ie.children,se,ve,B);for(const ke in me){if(Th(ke))continue;const Ce=me[ke],Ee=de[ke];Ce!==Ee&&ke!=="value"&&s(te,ke,Ee,Ce,be,ie.children,se,ve,B)}"value"in me&&s(te,"value",de.value,me.value,be)}},G=(te,ie,de,me,se,ve,be,ke,Ce)=>{const Ee=ie.el=te?te.el:c(""),Me=ie.anchor=te?te.anchor:c("");let{patchFlag:Le,dynamicChildren:Ae,slotScopeIds:Fe}=ie;Fe&&(ke=ke?ke.concat(Fe):Fe),te==null?(n(Ee,de,me),n(Me,de,me),z(ie.children||[],de,Me,se,ve,be,ke,Ce)):Le>0&&Le&64&&Ae&&te.dynamicChildren?(K(te.dynamicChildren,Ae,de,se,ve,be,ke),(ie.key!=null||se&&ie===se.subTree)&&Py(te,ie,!0)):C(te,ie,de,Me,se,ve,be,ke,Ce)},R=(te,ie,de,me,se,ve,be,ke,Ce)=>{ie.slotScopeIds=ke,te==null?ie.shapeFlag&512?se.ctx.activate(ie,de,me,be,Ce):D(ie,de,me,se,ve,be,Ce):k(te,ie,Ce)},D=(te,ie,de,me,se,ve,be)=>{const ke=te.component=QP(te,me,se);if(bm(te)&&(ke.ctx.renderer=X),eM(ke),ke.asyncDep){if(se&&se.registerDep(ke,x),!te.el){const Ce=ke.subTree=He(Zi);v(null,Ce,ie,de)}}else x(ke,te,ie,de,se,ve,be)},k=(te,ie,de)=>{const me=ie.component=te.component;if(hP(te,ie,de))if(me.asyncDep&&!me.asyncResolved){S(me,ie,de);return}else me.next=ie,oP(me.update),me.effect.dirty=!0,me.update();else ie.el=te.el,me.vnode=ie},x=(te,ie,de,me,se,ve,be)=>{const ke=()=>{if(te.isMounted){let{next:Me,bu:Le,u:Ae,parent:Fe,vnode:Ge}=te;{const Tt=n6(te);if(Tt){Me&&(Me.el=Ge.el,S(te,Me,be)),Tt.asyncDep.then(()=>{te.isUnmounted||ke()});return}}let Ye=Me,lt;zl(te,!1),Me?(Me.el=Ge.el,S(te,Me,be)):Me=Ge,Le&&hp(Le),(lt=Me.props&&Me.props.onVnodeBeforeUpdate)&&ws(lt,Fe,Me,Ge),zl(te,!0);const vt=c0(te),xt=te.subTree;te.subTree=vt,p(xt,vt,u(xt.el),J(xt),te,se,ve),Me.el=vt.el,Ye===null&&fP(te,vt.el),Ae&&qi(Ae,se),(lt=Me.props&&Me.props.onVnodeUpdated)&&qi(()=>ws(lt,Fe,Me,Ge),se)}else{let Me;const{el:Le,props:Ae}=ie,{bm:Fe,m:Ge,parent:Ye}=te,lt=Ph(ie);if(zl(te,!1),Fe&&hp(Fe),!lt&&(Me=Ae&&Ae.onVnodeBeforeMount)&&ws(Me,Ye,ie),zl(te,!0),Le&&fe){const vt=()=>{te.subTree=c0(te),fe(Le,te.subTree,te,se,null)};lt?ie.type.__asyncLoader().then(()=>!te.isUnmounted&&vt()):vt()}else{const vt=te.subTree=c0(te);p(null,vt,de,me,te,se,ve),ie.el=vt.el}if(Ge&&qi(Ge,se),!lt&&(Me=Ae&&Ae.onVnodeMounted)){const vt=ie;qi(()=>ws(Me,Ye,vt),se)}(ie.shapeFlag&256||Ye&&Ph(Ye.vnode)&&Ye.vnode.shapeFlag&256)&&te.a&&qi(te.a,se),te.isMounted=!0,ie=de=me=null}},Ce=te.effect=new fy(ke,qn,()=>_y(Ee),te.scope),Ee=te.update=()=>{Ce.dirty&&Ce.run()};Ee.id=te.uid,zl(te,!0),Ee()},S=(te,ie,de)=>{ie.component=te;const me=te.vnode.props;te.vnode=ie,te.next=null,jP(te,ie.props,me,de),zP(te,ie.children,de),hl(),ww(te),fl()},C=(te,ie,de,me,se,ve,be,ke,Ce=!1)=>{const Ee=te&&te.children,Me=te?te.shapeFlag:0,Le=ie.children,{patchFlag:Ae,shapeFlag:Fe}=ie;if(Ae>0){if(Ae&128){M(Ee,Le,de,me,se,ve,be,ke,Ce);return}else if(Ae&256){T(Ee,Le,de,me,se,ve,be,ke,Ce);return}}Fe&8?(Me&16&&B(Ee,se,ve),Le!==Ee&&h(de,Le)):Me&16?Fe&16?M(Ee,Le,de,me,se,ve,be,ke,Ce):B(Ee,se,ve,!0):(Me&8&&h(de,""),Fe&16&&z(Le,de,me,se,ve,be,ke,Ce))},T=(te,ie,de,me,se,ve,be,ke,Ce)=>{te=te||tu,ie=ie||tu;const Ee=te.length,Me=ie.length,Le=Math.min(Ee,Me);let Ae;for(Ae=0;AeMe?B(te,se,ve,!0,!1,Le):z(ie,de,me,se,ve,be,ke,Ce,Le)},M=(te,ie,de,me,se,ve,be,ke,Ce)=>{let Ee=0;const Me=ie.length;let Le=te.length-1,Ae=Me-1;for(;Ee<=Le&&Ee<=Ae;){const Fe=te[Ee],Ge=ie[Ee]=Ce?Va(ie[Ee]):ks(ie[Ee]);if(Zl(Fe,Ge))p(Fe,Ge,de,null,se,ve,be,ke,Ce);else break;Ee++}for(;Ee<=Le&&Ee<=Ae;){const Fe=te[Le],Ge=ie[Ae]=Ce?Va(ie[Ae]):ks(ie[Ae]);if(Zl(Fe,Ge))p(Fe,Ge,de,null,se,ve,be,ke,Ce);else break;Le--,Ae--}if(Ee>Le){if(Ee<=Ae){const Fe=Ae+1,Ge=FeAe)for(;Ee<=Le;)F(te[Ee],se,ve,!0),Ee++;else{const Fe=Ee,Ge=Ee,Ye=new Map;for(Ee=Ge;Ee<=Ae;Ee++){const wt=ie[Ee]=Ce?Va(ie[Ee]):ks(ie[Ee]);wt.key!=null&&Ye.set(wt.key,Ee)}let lt,vt=0;const xt=Ae-Ge+1;let Tt=!1,gt=0;const ct=new Array(xt);for(Ee=0;Ee=xt){F(wt,se,ve,!0);continue}let ft;if(wt.key!=null)ft=Ye.get(wt.key);else for(lt=Ge;lt<=Ae;lt++)if(ct[lt-Ge]===0&&Zl(wt,ie[lt])){ft=lt;break}ft===void 0?F(wt,se,ve,!0):(ct[ft-Ge]=Ee+1,ft>=gt?gt=ft:Tt=!0,p(wt,ie[ft],de,null,se,ve,be,ke,Ce),vt++)}const bt=Tt?WP(ct):tu;for(lt=bt.length-1,Ee=xt-1;Ee>=0;Ee--){const wt=Ge+Ee,ft=ie[wt],or=wt+1{const{el:ve,type:be,transition:ke,children:Ce,shapeFlag:Ee}=te;if(Ee&6){N(te.component.subTree,ie,de,me);return}if(Ee&128){te.suspense.move(ie,de,me);return}if(Ee&64){be.move(te,ie,de,X);return}if(be===Ht){n(ve,ie,de);for(let Le=0;Leke.enter(ve),se);else{const{leave:Le,delayLeave:Ae,afterLeave:Fe}=ke,Ge=()=>n(ve,ie,de),Ye=()=>{Le(ve,()=>{Ge(),Fe&&Fe()})};Ae?Ae(ve,Ge,Ye):Ye()}else n(ve,ie,de)},F=(te,ie,de,me=!1,se=!1)=>{const{type:ve,props:be,ref:ke,children:Ce,dynamicChildren:Ee,shapeFlag:Me,patchFlag:Le,dirs:Ae}=te;if(ke!=null&&cv(ke,null,de,te,!0),Me&256){ie.ctx.deactivate(te);return}const Fe=Me&1&&Ae,Ge=!Ph(te);let Ye;if(Ge&&(Ye=be&&be.onVnodeBeforeUnmount)&&ws(Ye,ie,te),Me&6)ee(te.component,de,me);else{if(Me&128){te.suspense.unmount(de,me);return}Fe&&Fl(te,null,ie,"beforeUnmount"),Me&64?te.type.remove(te,ie,de,se,X,me):Ee&&(ve!==Ht||Le>0&&Le&64)?B(Ee,ie,de,!1,!0):(ve===Ht&&Le&384||!se&&Me&16)&&B(Ce,ie,de),me&&Z(te)}(Ge&&(Ye=be&&be.onVnodeUnmounted)||Fe)&&qi(()=>{Ye&&ws(Ye,ie,te),Fe&&Fl(te,null,ie,"unmounted")},de)},Z=te=>{const{type:ie,el:de,anchor:me,transition:se}=te;if(ie===Ht){H(de,me);return}if(ie===dp){E(te);return}const ve=()=>{o(de),se&&!se.persisted&&se.afterLeave&&se.afterLeave()};if(te.shapeFlag&1&&se&&!se.persisted){const{leave:be,delayLeave:ke}=se,Ce=()=>be(de,ve);ke?ke(te.el,ve,Ce):Ce()}else ve()},H=(te,ie)=>{let de;for(;te!==ie;)de=f(te),o(te),te=de;o(ie)},ee=(te,ie,de)=>{const{bum:me,scope:se,update:ve,subTree:be,um:ke}=te;me&&hp(me),se.stop(),ve&&(ve.active=!1,F(be,te,ie,de)),ke&&qi(ke,ie),qi(()=>{te.isUnmounted=!0},ie),ie&&ie.pendingBranch&&!ie.isUnmounted&&te.asyncDep&&!te.asyncResolved&&te.suspenseId===ie.pendingId&&(ie.deps--,ie.deps===0&&ie.resolve())},B=(te,ie,de,me=!1,se=!1,ve=0)=>{for(let be=ve;bete.shapeFlag&6?J(te.component.subTree):te.shapeFlag&128?te.suspense.next():f(te.anchor||te.el);let I=!1;const $=(te,ie,de)=>{te==null?ie._vnode&&F(ie._vnode,null,null,!0):p(ie._vnode||null,te,ie,null,null,null,de),I||(I=!0,ww(),Rx(),I=!1),ie._vnode=te},X={p,um:F,m:N,r:Z,mt:D,mc:z,pc:C,pbc:K,n:J,o:t};let ae,fe;return{render:$,hydrate:ae,createApp:NP($,ae)}}function f0({type:t,props:r},e){return e==="svg"&&t==="foreignObject"||e==="mathml"&&t==="annotation-xml"&&r&&r.encoding&&r.encoding.includes("html")?void 0:e}function zl({effect:t,update:r},e){t.allowRecurse=r.allowRecurse=e}function UP(t,r){return(!t||t&&!t.pendingBranch)&&r&&!r.persisted}function Py(t,r,e=!1){const n=t.children,o=r.children;if(Et(n)&&Et(o))for(let s=0;s>1,t[e[c]]0&&(r[n]=e[s-1]),e[s]=n)}}for(s=e.length,i=e[s-1];s-- >0;)e[s]=i,i=r[i];return e}function n6(t){const r=t.subTree.component;if(r)return r.asyncDep&&!r.asyncResolved?r:n6(r)}const qP=t=>t.__isTeleport,Rh=t=>t&&(t.disabled||t.disabled===""),Iw=t=>typeof SVGElement<"u"&&t instanceof SVGElement,$w=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,uv=(t,r)=>{const e=t&&t.to;return mr(e)?r?r(e):null:e},GP={name:"Teleport",__isTeleport:!0,process(t,r,e,n,o,s,i,c,l,a){const{mc:h,pc:u,pbc:f,o:{insert:d,querySelector:m,createText:p,createComment:g}}=a,v=Rh(r.props);let{shapeFlag:b,children:_,dynamicChildren:E}=r;if(t==null){const O=r.el=p(""),j=r.anchor=p("");d(O,e,n),d(j,e,n);const W=r.target=uv(r.props,m),z=r.targetAnchor=p("");W&&(d(z,W),i==="svg"||Iw(W)?i="svg":(i==="mathml"||$w(W))&&(i="mathml"));const U=(K,Y)=>{b&16&&h(_,K,Y,o,s,i,c,l)};v?U(e,j):W&&U(W,z)}else{r.el=t.el;const O=r.anchor=t.anchor,j=r.target=t.target,W=r.targetAnchor=t.targetAnchor,z=Rh(t.props),U=z?e:j,K=z?O:W;if(i==="svg"||Iw(j)?i="svg":(i==="mathml"||$w(j))&&(i="mathml"),E?(f(t.dynamicChildren,E,U,o,s,i,c),Py(t,r,!0)):l||u(t,r,U,K,o,s,i,c,!1),v)z?r.props&&t.props&&r.props.to!==t.props.to&&(r.props.to=t.props.to):Dd(r,e,O,a,1);else if((r.props&&r.props.to)!==(t.props&&t.props.to)){const Y=r.target=uv(r.props,m);Y&&Dd(r,Y,null,a,0)}else z&&Dd(r,j,W,a,1)}o6(r)},remove(t,r,e,n,{um:o,o:{remove:s}},i){const{shapeFlag:c,children:l,anchor:a,targetAnchor:h,target:u,props:f}=t;if(u&&s(h),i&&s(a),c&16){const d=i||!Rh(f);for(let m=0;m0?Qo||tu:null,ZP(),tf>0&&Qo&&Qo.push(t),t}function Ne(t,r,e,n,o,s){return s6(qe(t,r,e,n,o,s,!0))}function nt(t,r,e,n,o){return s6(He(t,r,e,n,o,!0))}function $s(t){return t?t.__v_isVNode===!0:!1}function Zl(t,r){return t.type===r.type&&t.key===r.key}const a6=({key:t})=>t??null,pp=({ref:t,ref_key:r,ref_for:e})=>(typeof t=="number"&&(t=""+t),t!=null?mr(t)||Nn(t)||Wt(t)?{i:ti,r:t,k:r,f:!!e}:t:null);function qe(t,r=null,e=null,n=0,o=null,s=t===Ht?0:1,i=!1,c=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:r,key:r&&a6(r),ref:r&&pp(r),scopeId:Lx,slotScopeIds:null,children:e,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:ti};return c?(My(l,e),s&128&&t.normalize(l)):e&&(l.shapeFlag|=mr(e)?8:16),tf>0&&!i&&Qo&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Qo.push(l),l}const He=XP;function XP(t,r=null,e=null,n=0,o=null,s=!1){if((!t||t===Nx)&&(t=Zi),$s(t)){const c=la(t,r,!0);return e&&My(c,e),tf>0&&!s&&Qo&&(c.shapeFlag&6?Qo[Qo.indexOf(t)]=c:Qo.push(c)),c.patchFlag|=-2,c}if(iM(t)&&(t=t.__vccOpts),r){r=l6(r);let{class:c,style:l}=r;c&&!mr(c)&&(r.class=Ue(c)),dr(l)&&(Sx(l)&&!Et(l)&&(l=Kn({},l)),r.style=tn(l))}const i=mr(t)?1:pP(t)?128:qP(t)?64:dr(t)?4:Wt(t)?2:0;return qe(t,r,e,n,o,i,s,!0)}function l6(t){return t?Sx(t)||Yx(t)?Kn({},t):t:null}function la(t,r,e=!1,n=!1){const{props:o,ref:s,patchFlag:i,children:c,transition:l}=t,a=r?Bi(o||{},r):o,h={__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&a6(a),ref:r&&r.ref?e&&s?Et(s)?s.concat(pp(r)):[s,pp(r)]:pp(r):s,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:c,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:r&&t.type!==Ht?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&la(t.ssContent),ssFallback:t.ssFallback&&la(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&n&&(h.transition=l.clone(h)),h}function er(t=" ",r=0){return He(ku,null,t,r)}function c6(t,r){const e=He(dp,null,t);return e.staticCount=r,e}function at(t="",r=!1){return r?(Se(),nt(Zi,null,t)):He(Zi,null,t)}function ks(t){return t==null||typeof t=="boolean"?He(Zi):Et(t)?He(Ht,null,t.slice()):typeof t=="object"?Va(t):He(ku,null,String(t))}function Va(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:la(t)}function My(t,r){let e=0;const{shapeFlag:n}=t;if(r==null)r=null;else if(Et(r))e=16;else if(typeof r=="object")if(n&65){const o=r.default;o&&(o._c&&(o._d=!1),My(t,o()),o._c&&(o._d=!0));return}else{e=32;const o=r._;!o&&!Yx(r)?r._ctx=ti:o===3&&ti&&(ti.slots._===1?r._=1:(r._=2,t.patchFlag|=1024))}else Wt(r)?(r={default:r,_ctx:ti},e=32):(r=String(r),n&64?(e=16,r=[er(r)]):e=8);t.children=r,t.shapeFlag|=e}function Bi(...t){const r={};for(let e=0;edi||ti;let Np,hv;{const t=sx(),r=(e,n)=>{let o;return(o=t[e])||(o=t[e]=[]),o.push(n),s=>{o.length>1?o.forEach(i=>i(s)):o[0](s)}};Np=r("__VUE_INSTANCE_SETTERS__",e=>di=e),hv=r("__VUE_SSR_SETTERS__",e=>wm=e)}const xf=t=>{const r=di;return Np(t),t.scope.on(),()=>{t.scope.off(),Np(r)}},Lw=()=>{di&&di.scope.off(),Np(null)};function u6(t){return t.vnode.shapeFlag&4}let wm=!1;function eM(t,r=!1){r&&hv(r);const{props:e,children:n}=t.vnode,o=u6(t);DP(t,e,o,r),FP(t,n);const s=o?tM(t,r):void 0;return r&&hv(!1),s}function tM(t,r){const e=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,AP);const{setup:n}=e;if(n){const o=t.setupContext=n.length>1?f6(t):null,s=xf(t);hl();const i=Qa(n,t,0,[t.props,o]);if(fl(),s(),rx(i)){if(i.then(Lw,Lw),r)return i.then(c=>{Nw(t,c,r)}).catch(c=>{vm(c,t,0)});t.asyncDep=i}else Nw(t,i,r)}else h6(t,r)}function Nw(t,r,e){Wt(r)?t.type.__ssrInlineRender?t.ssrRender=r:t.render=r:dr(r)&&(t.setupState=Ax(r)),h6(t,e)}let Dw;function h6(t,r,e){const n=t.type;if(!t.render){if(!r&&Dw&&!n.render){const o=n.template||Ty(t).template;if(o){const{isCustomElement:s,compilerOptions:i}=t.appContext.config,{delimiters:c,compilerOptions:l}=n,a=Kn(Kn({isCustomElement:s,delimiters:c},i),l);n.render=Dw(o,a)}}t.render=n.render||qn}{const o=xf(t);hl();try{MP(t)}finally{fl(),o()}}}const rM={get(t,r){return Ji(t,"get",""),t[r]}};function f6(t){const r=e=>{t.exposed=e||{}};return{attrs:new Proxy(t.attrs,rM),slots:t.slots,emit:t.emit,expose:r}}function xm(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(Ax(nv(t.exposed)),{get(r,e){if(e in r)return r[e];if(e in Mh)return Mh[e](t)},has(r,e){return e in r||e in Mh}}))}function nM(t,r=!0){return Wt(t)?t.displayName||t.name:t.name||r&&t.__name}function iM(t){return Wt(t)&&"__vccOpts"in t}const _e=(t,r)=>kx(t,r,wm);function Dr(t,r,e){const n=arguments.length;return n===2?dr(r)&&!Et(r)?$s(r)?He(t,null,[r]):He(t,r):He(t,null,r):(n>3?e=Array.prototype.slice.call(arguments,2):n===3&&$s(e)&&(e=[e]),He(t,r,e))}const oM="3.4.27",sM=qn;/** +* @vue/runtime-dom v3.4.27 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const aM="http://www.w3.org/2000/svg",lM="http://www.w3.org/1998/Math/MathML",Ha=typeof document<"u"?document:null,jw=Ha&&Ha.createElement("template"),cM={insert:(t,r,e)=>{r.insertBefore(t,e||null)},remove:t=>{const r=t.parentNode;r&&r.removeChild(t)},createElement:(t,r,e,n)=>{const o=r==="svg"?Ha.createElementNS(aM,t):r==="mathml"?Ha.createElementNS(lM,t):Ha.createElement(t,e?{is:e}:void 0);return t==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:t=>Ha.createTextNode(t),createComment:t=>Ha.createComment(t),setText:(t,r)=>{t.nodeValue=r},setElementText:(t,r)=>{t.textContent=r},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Ha.querySelector(t),setScopeId(t,r){t.setAttribute(r,"")},insertStaticContent(t,r,e,n,o,s){const i=e?e.previousSibling:r.lastChild;if(o&&(o===s||o.nextSibling))for(;r.insertBefore(o.cloneNode(!0),e),!(o===s||!(o=o.nextSibling)););else{jw.innerHTML=n==="svg"?`${t}`:n==="mathml"?`${t}`:t;const c=jw.content;if(n==="svg"||n==="mathml"){const l=c.firstChild;for(;l.firstChild;)c.appendChild(l.firstChild);c.removeChild(l)}r.insertBefore(c,e)}return[i?i.nextSibling:r.firstChild,e?e.previousSibling:r.lastChild]}},Oa="transition",mh="animation",uu=Symbol("_vtc"),os=(t,{slots:r})=>Dr(_P,p6(t),r);os.displayName="Transition";const d6={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},uM=os.props=Kn({},Bx,d6),Vl=(t,r=[])=>{Et(t)?t.forEach(e=>e(...r)):t&&t(...r)},Bw=t=>t?Et(t)?t.some(r=>r.length>1):t.length>1:!1;function p6(t){const r={};for(const G in t)G in d6||(r[G]=t[G]);if(t.css===!1)return r;const{name:e="v",type:n,duration:o,enterFromClass:s=`${e}-enter-from`,enterActiveClass:i=`${e}-enter-active`,enterToClass:c=`${e}-enter-to`,appearFromClass:l=s,appearActiveClass:a=i,appearToClass:h=c,leaveFromClass:u=`${e}-leave-from`,leaveActiveClass:f=`${e}-leave-active`,leaveToClass:d=`${e}-leave-to`}=t,m=hM(o),p=m&&m[0],g=m&&m[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:_,onLeave:E,onLeaveCancelled:O,onBeforeAppear:j=v,onAppear:W=b,onAppearCancelled:z=_}=r,U=(G,R,D)=>{Na(G,R?h:c),Na(G,R?a:i),D&&D()},K=(G,R)=>{G._isLeaving=!1,Na(G,u),Na(G,d),Na(G,f),R&&R()},Y=G=>(R,D)=>{const k=G?W:b,x=()=>U(R,G,D);Vl(k,[R,x]),Fw(()=>{Na(R,G?l:s),Qs(R,G?h:c),Bw(k)||zw(R,n,p,x)})};return Kn(r,{onBeforeEnter(G){Vl(v,[G]),Qs(G,s),Qs(G,i)},onBeforeAppear(G){Vl(j,[G]),Qs(G,l),Qs(G,a)},onEnter:Y(!1),onAppear:Y(!0),onLeave(G,R){G._isLeaving=!0;const D=()=>K(G,R);Qs(G,u),Qs(G,f),g6(),Fw(()=>{G._isLeaving&&(Na(G,u),Qs(G,d),Bw(E)||zw(G,n,g,D))}),Vl(E,[G,D])},onEnterCancelled(G){U(G,!1),Vl(_,[G])},onAppearCancelled(G){U(G,!0),Vl(z,[G])},onLeaveCancelled(G){K(G),Vl(O,[G])}})}function hM(t){if(t==null)return null;if(dr(t))return[d0(t.enter),d0(t.leave)];{const r=d0(t);return[r,r]}}function d0(t){return SA(t)}function Qs(t,r){r.split(/\s+/).forEach(e=>e&&t.classList.add(e)),(t[uu]||(t[uu]=new Set)).add(r)}function Na(t,r){r.split(/\s+/).forEach(n=>n&&t.classList.remove(n));const e=t[uu];e&&(e.delete(r),e.size||(t[uu]=void 0))}function Fw(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let fM=0;function zw(t,r,e,n){const o=t._endId=++fM,s=()=>{o===t._endId&&n()};if(e)return setTimeout(s,e);const{type:i,timeout:c,propCount:l}=m6(t,r);if(!i)return n();const a=i+"end";let h=0;const u=()=>{t.removeEventListener(a,f),s()},f=d=>{d.target===t&&++h>=l&&u()};setTimeout(()=>{h(e[m]||"").split(", "),o=n(`${Oa}Delay`),s=n(`${Oa}Duration`),i=Vw(o,s),c=n(`${mh}Delay`),l=n(`${mh}Duration`),a=Vw(c,l);let h=null,u=0,f=0;r===Oa?i>0&&(h=Oa,u=i,f=s.length):r===mh?a>0&&(h=mh,u=a,f=l.length):(u=Math.max(i,a),h=u>0?i>a?Oa:mh:null,f=h?h===Oa?s.length:l.length:0);const d=h===Oa&&/\b(transform|all)(,|$)/.test(n(`${Oa}Property`).toString());return{type:h,timeout:u,propCount:f,hasTransform:d}}function Vw(t,r){for(;t.lengthHw(e)+Hw(t[n])))}function Hw(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function g6(){return document.body.offsetHeight}function dM(t,r,e){const n=t[uu];n&&(r=(r?[r,...n]:[...n]).join(" ")),r==null?t.removeAttribute("class"):e?t.setAttribute("class",r):t.className=r}const Dp=Symbol("_vod"),v6=Symbol("_vsh"),Qi={beforeMount(t,{value:r},{transition:e}){t[Dp]=t.style.display==="none"?"":t.style.display,e&&r?e.beforeEnter(t):gh(t,r)},mounted(t,{value:r},{transition:e}){e&&r&&e.enter(t)},updated(t,{value:r,oldValue:e},{transition:n}){!r!=!e&&(n?r?(n.beforeEnter(t),gh(t,!0),n.enter(t)):n.leave(t,()=>{gh(t,!1)}):gh(t,r))},beforeUnmount(t,{value:r}){gh(t,r)}};function gh(t,r){t.style.display=r?t[Dp]:"none",t[v6]=!r}const pM=Symbol(""),mM=/(^|;)\s*display\s*:/;function gM(t,r,e){const n=t.style,o=mr(e);let s=!1;if(e&&!o){if(r)if(mr(r))for(const i of r.split(";")){const c=i.slice(0,i.indexOf(":")).trim();e[c]==null&&mp(n,c,"")}else for(const i in r)e[i]==null&&mp(n,i,"");for(const i in e)i==="display"&&(s=!0),mp(n,i,e[i])}else if(o){if(r!==e){const i=n[pM];i&&(e+=";"+i),n.cssText=e,s=mM.test(e)}}else r&&t.removeAttribute("style");Dp in t&&(t[Dp]=s?n.display:"",t[v6]&&(n.display="none"))}const Uw=/\s*!important$/;function mp(t,r,e){if(Et(e))e.forEach(n=>mp(t,r,n));else if(e==null&&(e=""),r.startsWith("--"))t.setProperty(r,e);else{const n=vM(t,r);Uw.test(e)?t.setProperty(ul(n),e.replace(Uw,""),"important"):t[n]=e}}const Ww=["Webkit","Moz","ms"],p0={};function vM(t,r){const e=p0[r];if(e)return e;let n=rs(r);if(n!=="filter"&&n in t)return p0[r]=n;n=bf(n);for(let o=0;om0||(SM.then(()=>m0=0),m0=Date.now());function kM(t,r){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;Mo(EM(n,e.value),r,5,[n])};return e.value=t,e.attached=CM(),e}function EM(t,r){if(Et(r)){const e=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{e.call(t),t._stopped=!0},r.map(n=>o=>!o._stopped&&n&&n(o))}else return r}const Zw=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,TM=(t,r,e,n,o,s,i,c,l)=>{const a=o==="svg";r==="class"?dM(t,n,a):r==="style"?gM(t,e,n):fm(r)?cy(r)||wM(t,r,e,n,i):(r[0]==="."?(r=r.slice(1),!0):r[0]==="^"?(r=r.slice(1),!1):AM(t,r,n,a))?bM(t,r,n,s,i,c,l):(r==="true-value"?t._trueValue=n:r==="false-value"&&(t._falseValue=n),yM(t,r,n,a))};function AM(t,r,e,n){if(n)return!!(r==="innerHTML"||r==="textContent"||r in t&&Zw(r)&&Wt(e));if(r==="spellcheck"||r==="draggable"||r==="translate"||r==="form"||r==="list"&&t.tagName==="INPUT"||r==="type"&&t.tagName==="TEXTAREA")return!1;if(r==="width"||r==="height"){const o=t.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Zw(r)&&mr(e)?!1:r in t}const y6=new WeakMap,b6=new WeakMap,jp=Symbol("_moveCb"),Xw=Symbol("_enterCb"),_6={name:"TransitionGroup",props:Kn({},uM,{tag:String,moveClass:String}),setup(t,{slots:r}){const e=an(),n=jx();let o,s;return vc(()=>{if(!o.length)return;const i=t.moveClass||`${t.name||"v"}-move`;if(!$M(o[0].el,e.vnode.el,i))return;o.forEach(OM),o.forEach(RM);const c=o.filter(IM);g6(),c.forEach(l=>{const a=l.el,h=a.style;Qs(a,i),h.transform=h.webkitTransform=h.transitionDuration="";const u=a[jp]=f=>{f&&f.target!==a||(!f||/transform$/.test(f.propertyName))&&(a.removeEventListener("transitionend",u),a[jp]=null,Na(a,i))};a.addEventListener("transitionend",u)})}),()=>{const i=Mr(t),c=p6(i);let l=i.tag||Ht;if(o=[],s)for(let a=0;adelete t.mode;_6.props;const MM=_6;function OM(t){const r=t.el;r[jp]&&r[jp](),r[Xw]&&r[Xw]()}function RM(t){b6.set(t,t.el.getBoundingClientRect())}function IM(t){const r=y6.get(t),e=b6.get(t),n=r.left-e.left,o=r.top-e.top;if(n||o){const s=t.el.style;return s.transform=s.webkitTransform=`translate(${n}px,${o}px)`,s.transitionDuration="0s",t}}function $M(t,r,e){const n=t.cloneNode(),o=t[uu];o&&o.forEach(c=>{c.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),e.split(/\s+/).forEach(c=>c&&n.classList.add(c)),n.style.display="none";const s=r.nodeType===1?r:r.parentNode;s.appendChild(n);const{hasTransform:i}=m6(n);return s.removeChild(n),i}const Bp=t=>{const r=t.props["onUpdate:modelValue"]||!1;return Et(r)?e=>hp(r,e):r};function LM(t){t.target.composing=!0}function Yw(t){const r=t.target;r.composing&&(r.composing=!1,r.dispatchEvent(new Event("input")))}const iu=Symbol("_assign"),w6={created(t,{modifiers:{lazy:r,trim:e,number:n}},o){t[iu]=Bp(o);const s=n||o.props&&o.props.type==="number";Xl(t,r?"change":"input",i=>{if(i.target.composing)return;let c=t.value;e&&(c=c.trim()),s&&(c=Q0(c)),t[iu](c)}),e&&Xl(t,"change",()=>{t.value=t.value.trim()}),r||(Xl(t,"compositionstart",LM),Xl(t,"compositionend",Yw),Xl(t,"change",Yw))},mounted(t,{value:r}){t.value=r??""},beforeUpdate(t,{value:r,modifiers:{lazy:e,trim:n,number:o}},s){if(t[iu]=Bp(s),t.composing)return;const i=(o||t.type==="number")&&!/^0\d/.test(t.value)?Q0(t.value):t.value,c=r??"";i!==c&&(document.activeElement===t&&t.type!=="range"&&(e||n&&t.value.trim()===c)||(t.value=c))}},Fp={deep:!0,created(t,r,e){t[iu]=Bp(e),Xl(t,"change",()=>{const n=t._modelValue,o=NM(t),s=t.checked,i=t[iu];if(Et(n)){const c=lx(n,o),l=c!==-1;if(s&&!l)i(n.concat(o));else if(!s&&l){const a=[...n];a.splice(c,1),i(a)}}else if(dm(n)){const c=new Set(n);s?c.add(o):c.delete(o),i(c)}else i(x6(t,s))})},mounted:Jw,beforeUpdate(t,r,e){t[iu]=Bp(e),Jw(t,r,e)}};function Jw(t,{value:r,oldValue:e},n){t._modelValue=r,Et(r)?t.checked=lx(r,n.props.value)>-1:dm(r)?t.checked=r.has(n.props.value):r!==e&&(t.checked=mm(r,x6(t,!0)))}function NM(t){return"_value"in t?t._value:t.value}function x6(t,r){const e=r?"_trueValue":"_falseValue";return e in t?t[e]:r}const DM=["ctrl","shift","alt","meta"],jM={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,r)=>DM.some(e=>t[`${e}Key`]&&!r.includes(e))},hn=(t,r)=>{const e=t._withMods||(t._withMods={}),n=r.join(".");return e[n]||(e[n]=(o,...s)=>{for(let i=0;i{const e=t._withKeys||(t._withKeys={}),n=r.join(".");return e[n]||(e[n]=o=>{if(!("key"in o))return;const s=ul(o.key);if(r.some(i=>i===s||BM[i]===s))return t(o)})},FM=Kn({patchProp:TM},cM);let Qw;function S6(){return Qw||(Qw=VP(FM))}const e2=(...t)=>{S6().render(...t)},C6=(...t)=>{const r=S6().createApp(...t),{mount:e}=r;return r.mount=n=>{const o=VM(n);if(!o)return;const s=r._component;!Wt(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.innerHTML="";const i=e(o,!1,zM(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},r};function zM(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function VM(t){return mr(t)?document.querySelector(t):t}const gp=function(t,r,...e){let n;r.includes("mouse")||r.includes("click")?n="MouseEvents":r.includes("key")?n="KeyboardEvent":n="HTMLEvents";const o=document.createEvent(n);return o.initEvent(r,...e),t.dispatchEvent(o),t},ta=(t,r,{checkForDefaultPrevented:e=!0}={})=>o=>{const s=t==null?void 0:t(o);if(e===!1||!s)return r==null?void 0:r(o)};var HM=Object.defineProperty,UM=Object.defineProperties,WM=Object.getOwnPropertyDescriptors,t2=Object.getOwnPropertySymbols,qM=Object.prototype.hasOwnProperty,GM=Object.prototype.propertyIsEnumerable,r2=(t,r,e)=>r in t?HM(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,KM=(t,r)=>{for(var e in r||(r={}))qM.call(r,e)&&r2(t,e,r[e]);if(t2)for(var e of t2(r))GM.call(r,e)&&r2(t,e,r[e]);return t},ZM=(t,r)=>UM(t,WM(r));function n2(t,r){var e;const n=Ja();return cc(()=>{n.value=t()},ZM(KM({},r),{flush:(e=void 0)!=null?e:"sync"})),_f(n)}var i2;const _n=typeof window<"u",XM=t=>typeof t=="string",zp=()=>{},YM=_n&&((i2=window==null?void 0:window.navigator)==null?void 0:i2.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function rf(t){return typeof t=="function"?t():re(t)}function JM(t,r){function e(...n){return new Promise((o,s)=>{Promise.resolve(t(()=>r.apply(this,n),{fn:r,thisArg:this,args:n})).then(o).catch(s)})}return e}function QM(t,r={}){let e,n,o=zp;const s=c=>{clearTimeout(c),o(),o=zp};return c=>{const l=rf(t),a=rf(r.maxWait);return e&&s(e),l<=0||a!==void 0&&a<=0?(n&&(s(n),n=null),Promise.resolve(c())):new Promise((h,u)=>{o=r.rejectOnCancel?u:h,a&&!n&&(n=setTimeout(()=>{e&&s(e),n=null,h(c())},a)),e=setTimeout(()=>{n&&s(n),n=null,h(c())},l)})}}function eO(t){return t}function Sf(t){return ux()?(hx(t),!0):!1}function tO(t,r=200,e={}){return JM(QM(r,e),t)}function rO(t,r=200,e={}){const n=ze(t.value),o=tO(()=>{n.value=t.value},r,e);return St(t,()=>o()),n}function nO(t,r=!0){an()?ln(t):r?t():jr(t)}function nf(t,r,e={}){const{immediate:n=!0}=e,o=ze(!1);let s=null;function i(){s&&(clearTimeout(s),s=null)}function c(){o.value=!1,i()}function l(...a){i(),o.value=!0,s=setTimeout(()=>{o.value=!1,s=null,t(...a)},rf(r))}return n&&(o.value=!0,_n&&l()),Sf(c),{isPending:_f(o),start:l,stop:c}}function na(t){var r;const e=rf(t);return(r=e==null?void 0:e.$el)!=null?r:e}const Cf=_n?window:void 0,iO=_n?window.document:void 0;function es(...t){let r,e,n,o;if(XM(t[0])||Array.isArray(t[0])?([e,n,o]=t,r=Cf):[r,e,n,o]=t,!r)return zp;Array.isArray(e)||(e=[e]),Array.isArray(n)||(n=[n]);const s=[],i=()=>{s.forEach(h=>h()),s.length=0},c=(h,u,f,d)=>(h.addEventListener(u,f,d),()=>h.removeEventListener(u,f,d)),l=St(()=>[na(r),rf(o)],([h,u])=>{i(),h&&s.push(...e.flatMap(f=>n.map(d=>c(h,f,d,u))))},{immediate:!0,flush:"post"}),a=()=>{l(),i()};return Sf(a),a}let o2=!1;function oO(t,r,e={}){const{window:n=Cf,ignore:o=[],capture:s=!0,detectIframe:i=!1}=e;if(!n)return;YM&&!o2&&(o2=!0,Array.from(n.document.body.children).forEach(f=>f.addEventListener("click",zp)));let c=!0;const l=f=>o.some(d=>{if(typeof d=="string")return Array.from(n.document.querySelectorAll(d)).some(m=>m===f.target||f.composedPath().includes(m));{const m=na(d);return m&&(f.target===m||f.composedPath().includes(m))}}),h=[es(n,"click",f=>{const d=na(t);if(!(!d||d===f.target||f.composedPath().includes(d))){if(f.detail===0&&(c=!l(f)),!c){c=!0;return}r(f)}},{passive:!0,capture:s}),es(n,"pointerdown",f=>{const d=na(t);d&&(c=!f.composedPath().includes(d)&&!l(f))},{passive:!0}),i&&es(n,"blur",f=>{var d;const m=na(t);((d=n.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(m!=null&&m.contains(n.document.activeElement))&&r(f)})].filter(Boolean);return()=>h.forEach(f=>f())}function k6(t,r=!1){const e=ze(),n=()=>e.value=!!t();return n(),nO(n,r),e}const s2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a2="__vueuse_ssr_handlers__";s2[a2]=s2[a2]||{};function sO({document:t=iO}={}){if(!t)return ze("visible");const r=ze(t.visibilityState);return es(t,"visibilitychange",()=>{r.value=t.visibilityState}),r}var l2=Object.getOwnPropertySymbols,aO=Object.prototype.hasOwnProperty,lO=Object.prototype.propertyIsEnumerable,cO=(t,r)=>{var e={};for(var n in t)aO.call(t,n)&&r.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&l2)for(var n of l2(t))r.indexOf(n)<0&&lO.call(t,n)&&(e[n]=t[n]);return e};function Xn(t,r,e={}){const n=e,{window:o=Cf}=n,s=cO(n,["window"]);let i;const c=k6(()=>o&&"ResizeObserver"in o),l=()=>{i&&(i.disconnect(),i=void 0)},a=St(()=>na(t),u=>{l(),c.value&&o&&u&&(i=new ResizeObserver(r),i.observe(u,s))},{immediate:!0,flush:"post"}),h=()=>{l(),a()};return Sf(h),{isSupported:c,stop:h}}var c2=Object.getOwnPropertySymbols,uO=Object.prototype.hasOwnProperty,hO=Object.prototype.propertyIsEnumerable,fO=(t,r)=>{var e={};for(var n in t)uO.call(t,n)&&r.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&c2)for(var n of c2(t))r.indexOf(n)<0&&hO.call(t,n)&&(e[n]=t[n]);return e};function dO(t,r,e={}){const n=e,{window:o=Cf}=n,s=fO(n,["window"]);let i;const c=k6(()=>o&&"MutationObserver"in o),l=()=>{i&&(i.disconnect(),i=void 0)},a=St(()=>na(t),u=>{l(),c.value&&o&&u&&(i=new MutationObserver(r),i.observe(u,s))},{immediate:!0}),h=()=>{l(),a()};return Sf(h),{isSupported:c,stop:h}}var u2;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(u2||(u2={}));var pO=Object.defineProperty,h2=Object.getOwnPropertySymbols,mO=Object.prototype.hasOwnProperty,gO=Object.prototype.propertyIsEnumerable,f2=(t,r,e)=>r in t?pO(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,vO=(t,r)=>{for(var e in r||(r={}))mO.call(r,e)&&f2(t,e,r[e]);if(h2)for(var e of h2(r))gO.call(r,e)&&f2(t,e,r[e]);return t};const yO={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};vO({linear:eO},yO);function bO({window:t=Cf}={}){if(!t)return ze(!1);const r=ze(t.document.hasFocus());return es(t,"blur",()=>{r.value=!1}),es(t,"focus",()=>{r.value=!0}),r}const E6=()=>_n&&/firefox/i.test(window.navigator.userAgent);var T6=typeof global=="object"&&global&&global.Object===Object&&global,_O=typeof self=="object"&&self&&self.Object===Object&&self,ss=T6||_O||Function("return this")(),Ro=ss.Symbol,A6=Object.prototype,wO=A6.hasOwnProperty,xO=A6.toString,vh=Ro?Ro.toStringTag:void 0;function SO(t){var r=wO.call(t,vh),e=t[vh];try{t[vh]=void 0;var n=!0}catch{}var o=xO.call(t);return n&&(r?t[vh]=e:delete t[vh]),o}var CO=Object.prototype,kO=CO.toString;function EO(t){return kO.call(t)}var TO="[object Null]",AO="[object Undefined]",d2=Ro?Ro.toStringTag:void 0;function Eu(t){return t==null?t===void 0?AO:TO:d2&&d2 in Object(t)?SO(t):EO(t)}function il(t){return t!=null&&typeof t=="object"}var PO="[object Symbol]";function Sm(t){return typeof t=="symbol"||il(t)&&Eu(t)==PO}function MO(t,r){for(var e=-1,n=t==null?0:t.length,o=Array(n);++e0){if(++r>=oR)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}function cR(t){return function(){return t}}var Vp=function(){try{var t=bc(Object,"defineProperty");return t({},"",{}),t}catch{}}(),uR=Vp?function(t,r){return Vp(t,"toString",{configurable:!0,enumerable:!1,value:cR(r),writable:!0})}:M6,hR=lR(uR);function fR(t,r){for(var e=-1,n=t==null?0:t.length;++e-1&&t%1==0&&t-1&&t%1==0&&t<=bR}function I6(t){return t!=null&&$y(t.length)&&!O6(t)}var _R=Object.prototype;function Ly(t){var r=t&&t.constructor,e=typeof r=="function"&&r.prototype||_R;return t===e}function wR(t,r){for(var e=-1,n=Array(t);++e-1}function PI(t,r){var e=this.__data__,n=Em(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this}function da(t){var r=-1,e=t==null?0:t.length;for(this.clear();++rc))return!1;var a=s.get(t),h=s.get(r);if(a&&h)return a==r&&h==t;var u=-1,f=!0,d=e&OL?new Wp:void 0;for(s.set(t,r),s.set(r,t);++u=r||W<0||u&&z>=s}function v(){var j=b0();if(g(j))return b(j);c=setTimeout(v,p(j))}function b(j){return c=void 0,f&&n?d(j):(n=o=void 0,i)}function _(){c!==void 0&&clearTimeout(c),a=0,n=l=o=c=void 0}function E(){return c===void 0?i:b(b0())}function O(){var j=b0(),W=g(j);if(n=arguments,o=this,l=j,W){if(c===void 0)return m(l);if(u)return clearTimeout(c),c=setTimeout(v,r),d(l)}return c===void 0&&(c=setTimeout(v,r)),i}return O.cancel=_,O.flush=E,O}function Q6(t,r,e){var n=t==null?0:t.length;if(!n)return-1;var o=n-1;return dR(t,pN(r),o)}function qp(t){for(var r=-1,e=t==null?0:t.length,n={};++rt===void 0,al=t=>typeof t=="boolean",rn=t=>typeof t=="number",fc=t=>typeof Element>"u"?!1:t instanceof Element,vv=t=>hc(t),wN=t=>mr(t)?!Number.isNaN(Number(t)):!1,n5=t=>_n?window.requestAnimationFrame(t):setTimeout(t,16),i5=t=>_n?window.cancelAnimationFrame(t):clearTimeout(t),o5=(t="")=>t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Wa=t=>bf(t),yv=t=>Object.keys(t),_0=(t,r,e)=>({get value(){return zn(t,r,e)},set value(n){_N(t,r,n)}});class xN extends Error{constructor(r){super(r),this.name="ElementPlusError"}}function Ls(t,r){throw new xN(`[${t}] ${r}`)}const s5=(t="")=>t.split(" ").filter(r=>!!r.trim()),bv=(t,r)=>{if(!t||!r)return!1;if(r.includes(" "))throw new Error("className should not contain space.");return t.classList.contains(r)},rc=(t,r)=>{!t||!r.trim()||t.classList.add(...s5(r))},el=(t,r)=>{!t||!r.trim()||t.classList.remove(...s5(r))},qc=(t,r)=>{var e;if(!_n||!t||!r)return"";let n=rs(r);n==="float"&&(n="cssFloat");try{const o=t.style[n];if(o)return o;const s=(e=document.defaultView)==null?void 0:e.getComputedStyle(t,"");return s?s[n]:""}catch{return t.style[n]}};function ll(t,r="px"){if(!t)return"";if(rn(t)||wN(t))return`${t}${r}`;if(mr(t))return t}let Bd;const SN=t=>{var r;if(!_n)return 0;if(Bd!==void 0)return Bd;const e=document.createElement("div");e.className=`${t}-scrollbar__wrap`,e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);const n=e.offsetWidth;e.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",e.appendChild(o);const s=o.offsetWidth;return(r=e.parentNode)==null||r.removeChild(e),Bd=n-s,Bd};function CN(t,r){if(!_n)return;if(!r){t.scrollTop=0;return}const e=[];let n=r.offsetParent;for(;n!==null&&t!==n&&t.contains(n);)e.push(n),n=n.offsetParent;const o=r.offsetTop+e.reduce((l,a)=>l+a.offsetTop,0),s=o+r.offsetHeight,i=t.scrollTop,c=i+t.clientHeight;oc&&(t.scrollTop=s-t.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var kN=et({name:"ArrowDown",__name:"arrow-down",setup(t){return(r,e)=>(Se(),Ne("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[qe("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),Uy=kN,EN=et({name:"ArrowLeft",__name:"arrow-left",setup(t){return(r,e)=>(Se(),Ne("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[qe("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),a5=EN,TN=et({name:"ArrowRight",__name:"arrow-right",setup(t){return(r,e)=>(Se(),Ne("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[qe("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),Om=TN,AN=et({name:"Back",__name:"back",setup(t){return(r,e)=>(Se(),Ne("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[qe("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),qe("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),PN=AN,MN=et({name:"Calendar",__name:"calendar",setup(t){return(r,e)=>(Se(),Ne("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[qe("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),ON=MN,RN=et({name:"CircleCheck",__name:"circle-check",setup(t){return(r,e)=>(Se(),Ne("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[qe("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),qe("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),IN=RN,$N=et({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return(r,e)=>(Se(),Ne("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[qe("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),l5=$N,LN=et({name:"CircleClose",__name:"circle-close",setup(t){return(r,e)=>(Se(),Ne("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[qe("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),qe("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),Rm=LN,NN=et({name:"Clock",__name:"clock",setup(t){return(r,e)=>(Se(),Ne("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[qe("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),qe("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),qe("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),DN=NN,jN=et({name:"Close",__name:"close",setup(t){return(r,e)=>(Se(),Ne("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[qe("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),du=jN,BN=et({name:"DArrowLeft",__name:"d-arrow-left",setup(t){return(r,e)=>(Se(),Ne("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[qe("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"})]))}}),FN=BN,zN=et({name:"DArrowRight",__name:"d-arrow-right",setup(t){return(r,e)=>(Se(),Ne("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[qe("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),VN=zN,HN=et({name:"Delete",__name:"delete",setup(t){return(r,e)=>(Se(),Ne("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[qe("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),c5=HN,UN=et({name:"Hide",__name:"hide",setup(t){return(r,e)=>(Se(),Ne("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[qe("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),qe("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),WN=UN,qN=et({name:"HomeFilled",__name:"home-filled",setup(t){return(r,e)=>(Se(),Ne("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[qe("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"})]))}}),U2=qN,GN=et({name:"InfoFilled",__name:"info-filled",setup(t){return(r,e)=>(Se(),Ne("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[qe("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Wy=GN,KN=et({name:"Loading",__name:"loading",setup(t){return(r,e)=>(Se(),Ne("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[qe("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),u5=KN,ZN=et({name:"MoreFilled",__name:"more-filled",setup(t){return(r,e)=>(Se(),Ne("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[qe("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),W2=ZN,XN=et({name:"More",__name:"more",setup(t){return(r,e)=>(Se(),Ne("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[qe("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),YN=XN,JN=et({name:"Plus",__name:"plus",setup(t){return(r,e)=>(Se(),Ne("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[qe("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),af=JN,QN=et({name:"Right",__name:"right",setup(t){return(r,e)=>(Se(),Ne("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[qe("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z"})]))}}),eD=QN,tD=et({name:"SuccessFilled",__name:"success-filled",setup(t){return(r,e)=>(Se(),Ne("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[qe("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),h5=tD,rD=et({name:"View",__name:"view",setup(t){return(r,e)=>(Se(),Ne("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[qe("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),nD=rD,iD=et({name:"WarningFilled",__name:"warning-filled",setup(t){return(r,e)=>(Se(),Ne("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[qe("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),qy=iD;const f5="__epPropKey",Pt=t=>t,oD=t=>dr(t)&&!!t[f5],as=(t,r)=>{if(!dr(t)||oD(t))return t;const{values:e,required:n,default:o,type:s,validator:i}=t,l={type:s,required:!!n,validator:e||i?a=>{let h=!1,u=[];if(e&&(u=Array.from(e),Wr(t,"default")&&u.push(o),h||(h=u.includes(a))),i&&(h||(h=i(a))),!h&&u.length>0){const f=[...new Set(u)].map(d=>JSON.stringify(d)).join(", ");sM(`Invalid prop: validation failed${r?` for prop "${r}"`:""}. Expected one of [${f}], got value ${JSON.stringify(a)}.`)}return h}:void 0,[f5]:!0};return Wr(t,"default")&&(l.default=o),l},tr=t=>qp(Object.entries(t).map(([r,e])=>[r,as(e,r)])),Yn=Pt([String,Object,Function]),d5={Close:du},sD={Close:du,SuccessFilled:h5,InfoFilled:Wy,WarningFilled:qy,CircleCloseFilled:l5},Gp={success:h5,warning:qy,error:l5,info:Wy},Gy={validating:u5,success:IN,error:Rm},Zn=(t,r)=>{if(t.install=e=>{for(const n of[t,...Object.values(r??{})])e.component(n.name,n)},r)for(const[e,n]of Object.entries(r))t[e]=n;return t},aD=(t,r)=>(t.install=e=>{t._context=e._context,e.config.globalProperties[r]=t},t),No=t=>(t.install=qn,t),lD=(...t)=>r=>{t.forEach(e=>{Wt(e)?e(r):e.value=r})},Rn={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Ln="update:modelValue",Tu="change",Au=["","default","small","large"];var yp=(t=>(t[t.TEXT=1]="TEXT",t[t.CLASS=2]="CLASS",t[t.STYLE=4]="STYLE",t[t.PROPS=8]="PROPS",t[t.FULL_PROPS=16]="FULL_PROPS",t[t.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",t[t.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",t[t.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",t[t.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",t[t.NEED_PATCH=512]="NEED_PATCH",t[t.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",t[t.HOISTED=-1]="HOISTED",t[t.BAIL=-2]="BAIL",t))(yp||{});const Lh=t=>{const r=Et(t)?t:[t],e=[];return r.forEach(n=>{var o;Et(n)?e.push(...Lh(n)):$s(n)&&Et(n.children)?e.push(...Lh(n.children)):(e.push(n),$s(n)&&((o=n.component)!=null&&o.subTree)&&e.push(...Lh(n.component.subTree)))}),e},p5=t=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t),mo=t=>t,cD=["class","style"],uD=/^on[A-Z]/,hD=(t={})=>{const{excludeListeners:r=!1,excludeKeys:e}=t,n=_e(()=>((e==null?void 0:e.value)||[]).concat(cD)),o=an();return _e(o?()=>{var s;return qp(Object.entries((s=o.proxy)==null?void 0:s.$attrs).filter(([i])=>!n.value.includes(i)&&!(r&&uD.test(i))))}:()=>({}))},Ga=({from:t,replacement:r,scope:e,version:n,ref:o,type:s="API"},i)=>{St(()=>re(i),c=>{},{immediate:!0})},fD=(t,r,e,n)=>{let o={offsetX:0,offsetY:0};const s=l=>{const a=l.clientX,h=l.clientY,{offsetX:u,offsetY:f}=o,d=t.value.getBoundingClientRect(),m=d.left,p=d.top,g=d.width,v=d.height,b=document.documentElement.clientWidth,_=document.documentElement.clientHeight,E=-m+u,O=-p+f,j=b-m-g+u,W=_-p-v+f,z=K=>{let Y=u+K.clientX-a,G=f+K.clientY-h;n!=null&&n.value||(Y=Math.min(Math.max(Y,E),j),G=Math.min(Math.max(G,O),W)),o={offsetX:Y,offsetY:G},t.value&&(t.value.style.transform=`translate(${ll(Y)}, ${ll(G)})`)},U=()=>{document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",U)};document.addEventListener("mousemove",z),document.addEventListener("mouseup",U)},i=()=>{r.value&&t.value&&r.value.addEventListener("mousedown",s)},c=()=>{r.value&&t.value&&r.value.removeEventListener("mousedown",s)};ln(()=>{cc(()=>{e.value?i():c()})}),ni(()=>{c()})};var dD={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const pD=t=>(r,e)=>mD(r,e,re(t)),mD=(t,r,e)=>zn(e,t,t).replace(/\{(\w+)\}/g,(n,o)=>{var s;return`${(s=r==null?void 0:r[o])!=null?s:`{${o}}`}`}),gD=t=>{const r=_e(()=>re(t).name),e=Nn(t)?t:ze(t);return{lang:r,locale:e,t:pD(t)}},m5=Symbol("localeContextKey"),Do=t=>{const r=t||Ft(m5,ze());return gD(_e(()=>r.value||dD))},Nh="el",vD="is-",Hl=(t,r,e,n,o)=>{let s=`${t}-${r}`;return e&&(s+=`-${e}`),n&&(s+=`__${n}`),o&&(s+=`--${o}`),s},g5=Symbol("namespaceContextKey"),Ky=t=>{const r=t||(an()?Ft(g5,ze(Nh)):ze(Nh));return _e(()=>re(r)||Nh)},zt=(t,r)=>{const e=Ky(r);return{namespace:e,b:(p="")=>Hl(e.value,t,p,"",""),e:p=>p?Hl(e.value,t,"",p,""):"",m:p=>p?Hl(e.value,t,"","",p):"",be:(p,g)=>p&&g?Hl(e.value,t,p,g,""):"",em:(p,g)=>p&&g?Hl(e.value,t,"",p,g):"",bm:(p,g)=>p&&g?Hl(e.value,t,p,"",g):"",bem:(p,g,v)=>p&&g&&v?Hl(e.value,t,p,g,v):"",is:(p,...g)=>{const v=g.length>=1?g[0]:!0;return p&&v?`${vD}${p}`:""},cssVar:p=>{const g={};for(const v in p)p[v]&&(g[`--${e.value}-${v}`]=p[v]);return g},cssVarName:p=>`--${e.value}-${p}`,cssVarBlock:p=>{const g={};for(const v in p)p[v]&&(g[`--${e.value}-${t}-${v}`]=p[v]);return g},cssVarBlockName:p=>`--${e.value}-${t}-${p}`}},yD=(t,r={})=>{Nn(t)||Ls("[useLockscreen]","You need to pass a ref param to this function");const e=r.ns||zt("popup"),n=kx(()=>e.bm("parent","hidden"));if(!_n||bv(document.body,n.value))return;let o=0,s=!1,i="0";const c=()=>{setTimeout(()=>{el(document==null?void 0:document.body,n.value),s&&document&&(document.body.style.width=i)},200)};St(t,l=>{if(!l){c();return}s=!bv(document.body,n.value),s&&(i=document.body.style.width),o=SN(e.namespace.value);const a=document.documentElement.clientHeight0&&(a||h==="scroll")&&s&&(document.body.style.width=`calc(100% - ${o}px)`),rc(document.body,n.value)}),hx(()=>c())},bD=as({type:Pt(Boolean),default:null}),_D=as({type:Pt(Function)}),v5=t=>{const r=`update:${t}`,e=`onUpdate:${t}`,n=[r],o={[t]:bD,[e]:_D};return{useModelToggle:({indicator:i,toggleReason:c,shouldHideWhenRouteChanges:l,shouldProceed:a,onShow:h,onHide:u})=>{const f=an(),{emit:d}=f,m=f.props,p=_e(()=>Wt(m[e])),g=_e(()=>m[t]===null),v=W=>{i.value!==!0&&(i.value=!0,c&&(c.value=W),Wt(h)&&h(W))},b=W=>{i.value!==!1&&(i.value=!1,c&&(c.value=W),Wt(u)&&u(W))},_=W=>{if(m.disabled===!0||Wt(a)&&!a())return;const z=p.value&&_n;z&&d(r,!0),(g.value||!z)&&v(W)},E=W=>{if(m.disabled===!0||!_n)return;const z=p.value&&_n;z&&d(r,!1),(g.value||!z)&&b(W)},O=W=>{al(W)&&(m.disabled&&W?p.value&&d(r,!1):i.value!==W&&(W?v():b()))},j=()=>{i.value?E():_()};return St(()=>m[t],O),l&&f.appContext.config.globalProperties.$route!==void 0&&St(()=>({...f.proxy.$route}),()=>{l.value&&i.value&&E()}),ln(()=>{O(m[t])}),{hide:E,show:_,toggle:j,hasUpdateHandler:p}},useModelToggleProps:o,useModelToggleEmits:n}};v5("modelValue");const y5=t=>{const r=an();return _e(()=>{var e,n;return(n=(e=r==null?void 0:r.proxy)==null?void 0:e.$props)==null?void 0:n[t]})};var Xi="top",$o="bottom",Lo="right",Yi="left",Zy="auto",Ef=[Xi,$o,Lo,Yi],pu="start",lf="end",wD="clippingParents",b5="viewport",yh="popper",xD="reference",q2=Ef.reduce(function(t,r){return t.concat([r+"-"+pu,r+"-"+lf])},[]),Tf=[].concat(Ef,[Zy]).reduce(function(t,r){return t.concat([r,r+"-"+pu,r+"-"+lf])},[]),SD="beforeRead",CD="read",kD="afterRead",ED="beforeMain",TD="main",AD="afterMain",PD="beforeWrite",MD="write",OD="afterWrite",RD=[SD,CD,kD,ED,TD,AD,PD,MD,OD];function Ns(t){return t?(t.nodeName||"").toLowerCase():null}function ls(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var r=t.ownerDocument;return r&&r.defaultView||window}return t}function mu(t){var r=ls(t).Element;return t instanceof r||t instanceof Element}function Oo(t){var r=ls(t).HTMLElement;return t instanceof r||t instanceof HTMLElement}function Xy(t){if(typeof ShadowRoot>"u")return!1;var r=ls(t).ShadowRoot;return t instanceof r||t instanceof ShadowRoot}function ID(t){var r=t.state;Object.keys(r.elements).forEach(function(e){var n=r.styles[e]||{},o=r.attributes[e]||{},s=r.elements[e];!Oo(s)||!Ns(s)||(Object.assign(s.style,n),Object.keys(o).forEach(function(i){var c=o[i];c===!1?s.removeAttribute(i):s.setAttribute(i,c===!0?"":c)}))})}function $D(t){var r=t.state,e={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(r.elements.popper.style,e.popper),r.styles=e,r.elements.arrow&&Object.assign(r.elements.arrow.style,e.arrow),function(){Object.keys(r.elements).forEach(function(n){var o=r.elements[n],s=r.attributes[n]||{},i=Object.keys(r.styles.hasOwnProperty(n)?r.styles[n]:e[n]),c=i.reduce(function(l,a){return l[a]="",l},{});!Oo(o)||!Ns(o)||(Object.assign(o.style,c),Object.keys(s).forEach(function(l){o.removeAttribute(l)}))})}}var _5={name:"applyStyles",enabled:!0,phase:"write",fn:ID,effect:$D,requires:["computeStyles"]};function Is(t){return t.split("-")[0]}var ac=Math.max,Kp=Math.min,gu=Math.round;function vu(t,r){r===void 0&&(r=!1);var e=t.getBoundingClientRect(),n=1,o=1;if(Oo(t)&&r){var s=t.offsetHeight,i=t.offsetWidth;i>0&&(n=gu(e.width)/i||1),s>0&&(o=gu(e.height)/s||1)}return{width:e.width/n,height:e.height/o,top:e.top/o,right:e.right/n,bottom:e.bottom/o,left:e.left/n,x:e.left/n,y:e.top/o}}function Yy(t){var r=vu(t),e=t.offsetWidth,n=t.offsetHeight;return Math.abs(r.width-e)<=1&&(e=r.width),Math.abs(r.height-n)<=1&&(n=r.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:n}}function w5(t,r){var e=r.getRootNode&&r.getRootNode();if(t.contains(r))return!0;if(e&&Xy(e)){var n=r;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ca(t){return ls(t).getComputedStyle(t)}function LD(t){return["table","td","th"].indexOf(Ns(t))>=0}function pl(t){return((mu(t)?t.ownerDocument:t.document)||window.document).documentElement}function Im(t){return Ns(t)==="html"?t:t.assignedSlot||t.parentNode||(Xy(t)?t.host:null)||pl(t)}function G2(t){return!Oo(t)||ca(t).position==="fixed"?null:t.offsetParent}function ND(t){var r=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,e=navigator.userAgent.indexOf("Trident")!==-1;if(e&&Oo(t)){var n=ca(t);if(n.position==="fixed")return null}var o=Im(t);for(Xy(o)&&(o=o.host);Oo(o)&&["html","body"].indexOf(Ns(o))<0;){var s=ca(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||r&&s.willChange==="filter"||r&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Af(t){for(var r=ls(t),e=G2(t);e&&LD(e)&&ca(e).position==="static";)e=G2(e);return e&&(Ns(e)==="html"||Ns(e)==="body"&&ca(e).position==="static")?r:e||ND(t)||r}function Jy(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Dh(t,r,e){return ac(t,Kp(r,e))}function DD(t,r,e){var n=Dh(t,r,e);return n>e?e:n}function x5(){return{top:0,right:0,bottom:0,left:0}}function S5(t){return Object.assign({},x5(),t)}function C5(t,r){return r.reduce(function(e,n){return e[n]=t,e},{})}var jD=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,S5(typeof t!="number"?t:C5(t,Ef))};function BD(t){var r,e=t.state,n=t.name,o=t.options,s=e.elements.arrow,i=e.modifiersData.popperOffsets,c=Is(e.placement),l=Jy(c),a=[Yi,Lo].indexOf(c)>=0,h=a?"height":"width";if(!(!s||!i)){var u=jD(o.padding,e),f=Yy(s),d=l==="y"?Xi:Yi,m=l==="y"?$o:Lo,p=e.rects.reference[h]+e.rects.reference[l]-i[l]-e.rects.popper[h],g=i[l]-e.rects.reference[l],v=Af(s),b=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,_=p/2-g/2,E=u[d],O=b-f[h]-u[m],j=b/2-f[h]/2+_,W=Dh(E,j,O),z=l;e.modifiersData[n]=(r={},r[z]=W,r.centerOffset=W-j,r)}}function FD(t){var r=t.state,e=t.options,n=e.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=r.elements.popper.querySelector(o),!o)||!w5(r.elements.popper,o)||(r.elements.arrow=o))}var zD={name:"arrow",enabled:!0,phase:"main",fn:BD,effect:FD,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function yu(t){return t.split("-")[1]}var VD={top:"auto",right:"auto",bottom:"auto",left:"auto"};function HD(t){var r=t.x,e=t.y,n=window,o=n.devicePixelRatio||1;return{x:gu(r*o)/o||0,y:gu(e*o)/o||0}}function K2(t){var r,e=t.popper,n=t.popperRect,o=t.placement,s=t.variation,i=t.offsets,c=t.position,l=t.gpuAcceleration,a=t.adaptive,h=t.roundOffsets,u=t.isFixed,f=i.x,d=f===void 0?0:f,m=i.y,p=m===void 0?0:m,g=typeof h=="function"?h({x:d,y:p}):{x:d,y:p};d=g.x,p=g.y;var v=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),_=Yi,E=Xi,O=window;if(a){var j=Af(e),W="clientHeight",z="clientWidth";if(j===ls(e)&&(j=pl(e),ca(j).position!=="static"&&c==="absolute"&&(W="scrollHeight",z="scrollWidth")),j=j,o===Xi||(o===Yi||o===Lo)&&s===lf){E=$o;var U=u&&j===O&&O.visualViewport?O.visualViewport.height:j[W];p-=U-n.height,p*=l?1:-1}if(o===Yi||(o===Xi||o===$o)&&s===lf){_=Lo;var K=u&&j===O&&O.visualViewport?O.visualViewport.width:j[z];d-=K-n.width,d*=l?1:-1}}var Y=Object.assign({position:c},a&&VD),G=h===!0?HD({x:d,y:p}):{x:d,y:p};if(d=G.x,p=G.y,l){var R;return Object.assign({},Y,(R={},R[E]=b?"0":"",R[_]=v?"0":"",R.transform=(O.devicePixelRatio||1)<=1?"translate("+d+"px, "+p+"px)":"translate3d("+d+"px, "+p+"px, 0)",R))}return Object.assign({},Y,(r={},r[E]=b?p+"px":"",r[_]=v?d+"px":"",r.transform="",r))}function UD(t){var r=t.state,e=t.options,n=e.gpuAcceleration,o=n===void 0?!0:n,s=e.adaptive,i=s===void 0?!0:s,c=e.roundOffsets,l=c===void 0?!0:c,a={placement:Is(r.placement),variation:yu(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:o,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,K2(Object.assign({},a,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:i,roundOffsets:l})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,K2(Object.assign({},a,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}var k5={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:UD,data:{}},Fd={passive:!0};function WD(t){var r=t.state,e=t.instance,n=t.options,o=n.scroll,s=o===void 0?!0:o,i=n.resize,c=i===void 0?!0:i,l=ls(r.elements.popper),a=[].concat(r.scrollParents.reference,r.scrollParents.popper);return s&&a.forEach(function(h){h.addEventListener("scroll",e.update,Fd)}),c&&l.addEventListener("resize",e.update,Fd),function(){s&&a.forEach(function(h){h.removeEventListener("scroll",e.update,Fd)}),c&&l.removeEventListener("resize",e.update,Fd)}}var E5={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:WD,data:{}},qD={left:"right",right:"left",bottom:"top",top:"bottom"};function bp(t){return t.replace(/left|right|bottom|top/g,function(r){return qD[r]})}var GD={start:"end",end:"start"};function Z2(t){return t.replace(/start|end/g,function(r){return GD[r]})}function Qy(t){var r=ls(t),e=r.pageXOffset,n=r.pageYOffset;return{scrollLeft:e,scrollTop:n}}function eb(t){return vu(pl(t)).left+Qy(t).scrollLeft}function KD(t){var r=ls(t),e=pl(t),n=r.visualViewport,o=e.clientWidth,s=e.clientHeight,i=0,c=0;return n&&(o=n.width,s=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=n.offsetLeft,c=n.offsetTop)),{width:o,height:s,x:i+eb(t),y:c}}function ZD(t){var r,e=pl(t),n=Qy(t),o=(r=t.ownerDocument)==null?void 0:r.body,s=ac(e.scrollWidth,e.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=ac(e.scrollHeight,e.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-n.scrollLeft+eb(t),l=-n.scrollTop;return ca(o||e).direction==="rtl"&&(c+=ac(e.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:c,y:l}}function tb(t){var r=ca(t),e=r.overflow,n=r.overflowX,o=r.overflowY;return/auto|scroll|overlay|hidden/.test(e+o+n)}function T5(t){return["html","body","#document"].indexOf(Ns(t))>=0?t.ownerDocument.body:Oo(t)&&tb(t)?t:T5(Im(t))}function jh(t,r){var e;r===void 0&&(r=[]);var n=T5(t),o=n===((e=t.ownerDocument)==null?void 0:e.body),s=ls(n),i=o?[s].concat(s.visualViewport||[],tb(n)?n:[]):n,c=r.concat(i);return o?c:c.concat(jh(Im(i)))}function _v(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function XD(t){var r=vu(t);return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function X2(t,r){return r===b5?_v(KD(t)):mu(r)?XD(r):_v(ZD(pl(t)))}function YD(t){var r=jh(Im(t)),e=["absolute","fixed"].indexOf(ca(t).position)>=0,n=e&&Oo(t)?Af(t):t;return mu(n)?r.filter(function(o){return mu(o)&&w5(o,n)&&Ns(o)!=="body"}):[]}function JD(t,r,e){var n=r==="clippingParents"?YD(t):[].concat(r),o=[].concat(n,[e]),s=o[0],i=o.reduce(function(c,l){var a=X2(t,l);return c.top=ac(a.top,c.top),c.right=Kp(a.right,c.right),c.bottom=Kp(a.bottom,c.bottom),c.left=ac(a.left,c.left),c},X2(t,s));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function A5(t){var r=t.reference,e=t.element,n=t.placement,o=n?Is(n):null,s=n?yu(n):null,i=r.x+r.width/2-e.width/2,c=r.y+r.height/2-e.height/2,l;switch(o){case Xi:l={x:i,y:r.y-e.height};break;case $o:l={x:i,y:r.y+r.height};break;case Lo:l={x:r.x+r.width,y:c};break;case Yi:l={x:r.x-e.width,y:c};break;default:l={x:r.x,y:r.y}}var a=o?Jy(o):null;if(a!=null){var h=a==="y"?"height":"width";switch(s){case pu:l[a]=l[a]-(r[h]/2-e[h]/2);break;case lf:l[a]=l[a]+(r[h]/2-e[h]/2);break}}return l}function cf(t,r){r===void 0&&(r={});var e=r,n=e.placement,o=n===void 0?t.placement:n,s=e.boundary,i=s===void 0?wD:s,c=e.rootBoundary,l=c===void 0?b5:c,a=e.elementContext,h=a===void 0?yh:a,u=e.altBoundary,f=u===void 0?!1:u,d=e.padding,m=d===void 0?0:d,p=S5(typeof m!="number"?m:C5(m,Ef)),g=h===yh?xD:yh,v=t.rects.popper,b=t.elements[f?g:h],_=JD(mu(b)?b:b.contextElement||pl(t.elements.popper),i,l),E=vu(t.elements.reference),O=A5({reference:E,element:v,strategy:"absolute",placement:o}),j=_v(Object.assign({},v,O)),W=h===yh?j:E,z={top:_.top-W.top+p.top,bottom:W.bottom-_.bottom+p.bottom,left:_.left-W.left+p.left,right:W.right-_.right+p.right},U=t.modifiersData.offset;if(h===yh&&U){var K=U[o];Object.keys(z).forEach(function(Y){var G=[Lo,$o].indexOf(Y)>=0?1:-1,R=[Xi,$o].indexOf(Y)>=0?"y":"x";z[Y]+=K[R]*G})}return z}function QD(t,r){r===void 0&&(r={});var e=r,n=e.placement,o=e.boundary,s=e.rootBoundary,i=e.padding,c=e.flipVariations,l=e.allowedAutoPlacements,a=l===void 0?Tf:l,h=yu(n),u=h?c?q2:q2.filter(function(m){return yu(m)===h}):Ef,f=u.filter(function(m){return a.indexOf(m)>=0});f.length===0&&(f=u);var d=f.reduce(function(m,p){return m[p]=cf(t,{placement:p,boundary:o,rootBoundary:s,padding:i})[Is(p)],m},{});return Object.keys(d).sort(function(m,p){return d[m]-d[p]})}function ej(t){if(Is(t)===Zy)return[];var r=bp(t);return[Z2(t),r,Z2(r)]}function tj(t){var r=t.state,e=t.options,n=t.name;if(!r.modifiersData[n]._skip){for(var o=e.mainAxis,s=o===void 0?!0:o,i=e.altAxis,c=i===void 0?!0:i,l=e.fallbackPlacements,a=e.padding,h=e.boundary,u=e.rootBoundary,f=e.altBoundary,d=e.flipVariations,m=d===void 0?!0:d,p=e.allowedAutoPlacements,g=r.options.placement,v=Is(g),b=v===g,_=l||(b||!m?[bp(g)]:ej(g)),E=[g].concat(_).reduce(function(H,ee){return H.concat(Is(ee)===Zy?QD(r,{placement:ee,boundary:h,rootBoundary:u,padding:a,flipVariations:m,allowedAutoPlacements:p}):ee)},[]),O=r.rects.reference,j=r.rects.popper,W=new Map,z=!0,U=E[0],K=0;K=0,k=D?"width":"height",x=cf(r,{placement:Y,boundary:h,rootBoundary:u,altBoundary:f,padding:a}),S=D?R?Lo:Yi:R?$o:Xi;O[k]>j[k]&&(S=bp(S));var C=bp(S),T=[];if(s&&T.push(x[G]<=0),c&&T.push(x[S]<=0,x[C]<=0),T.every(function(H){return H})){U=Y,z=!1;break}W.set(Y,T)}if(z)for(var M=m?3:1,N=function(H){var ee=E.find(function(B){var J=W.get(B);if(J)return J.slice(0,H).every(function(I){return I})});if(ee)return U=ee,"break"},F=M;F>0;F--){var Z=N(F);if(Z==="break")break}r.placement!==U&&(r.modifiersData[n]._skip=!0,r.placement=U,r.reset=!0)}}var rj={name:"flip",enabled:!0,phase:"main",fn:tj,requiresIfExists:["offset"],data:{_skip:!1}};function Y2(t,r,e){return e===void 0&&(e={x:0,y:0}),{top:t.top-r.height-e.y,right:t.right-r.width+e.x,bottom:t.bottom-r.height+e.y,left:t.left-r.width-e.x}}function J2(t){return[Xi,Lo,$o,Yi].some(function(r){return t[r]>=0})}function nj(t){var r=t.state,e=t.name,n=r.rects.reference,o=r.rects.popper,s=r.modifiersData.preventOverflow,i=cf(r,{elementContext:"reference"}),c=cf(r,{altBoundary:!0}),l=Y2(i,n),a=Y2(c,o,s),h=J2(l),u=J2(a);r.modifiersData[e]={referenceClippingOffsets:l,popperEscapeOffsets:a,isReferenceHidden:h,hasPopperEscaped:u},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":u})}var ij={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:nj};function oj(t,r,e){var n=Is(t),o=[Yi,Xi].indexOf(n)>=0?-1:1,s=typeof e=="function"?e(Object.assign({},r,{placement:t})):e,i=s[0],c=s[1];return i=i||0,c=(c||0)*o,[Yi,Lo].indexOf(n)>=0?{x:c,y:i}:{x:i,y:c}}function sj(t){var r=t.state,e=t.options,n=t.name,o=e.offset,s=o===void 0?[0,0]:o,i=Tf.reduce(function(h,u){return h[u]=oj(u,r.rects,s),h},{}),c=i[r.placement],l=c.x,a=c.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=l,r.modifiersData.popperOffsets.y+=a),r.modifiersData[n]=i}var aj={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:sj};function lj(t){var r=t.state,e=t.name;r.modifiersData[e]=A5({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}var P5={name:"popperOffsets",enabled:!0,phase:"read",fn:lj,data:{}};function cj(t){return t==="x"?"y":"x"}function uj(t){var r=t.state,e=t.options,n=t.name,o=e.mainAxis,s=o===void 0?!0:o,i=e.altAxis,c=i===void 0?!1:i,l=e.boundary,a=e.rootBoundary,h=e.altBoundary,u=e.padding,f=e.tether,d=f===void 0?!0:f,m=e.tetherOffset,p=m===void 0?0:m,g=cf(r,{boundary:l,rootBoundary:a,padding:u,altBoundary:h}),v=Is(r.placement),b=yu(r.placement),_=!b,E=Jy(v),O=cj(E),j=r.modifiersData.popperOffsets,W=r.rects.reference,z=r.rects.popper,U=typeof p=="function"?p(Object.assign({},r.rects,{placement:r.placement})):p,K=typeof U=="number"?{mainAxis:U,altAxis:U}:Object.assign({mainAxis:0,altAxis:0},U),Y=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,G={x:0,y:0};if(j){if(s){var R,D=E==="y"?Xi:Yi,k=E==="y"?$o:Lo,x=E==="y"?"height":"width",S=j[E],C=S+g[D],T=S-g[k],M=d?-z[x]/2:0,N=b===pu?W[x]:z[x],F=b===pu?-z[x]:-W[x],Z=r.elements.arrow,H=d&&Z?Yy(Z):{width:0,height:0},ee=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:x5(),B=ee[D],J=ee[k],I=Dh(0,W[x],H[x]),$=_?W[x]/2-M-I-B-K.mainAxis:N-I-B-K.mainAxis,X=_?-W[x]/2+M+I+J+K.mainAxis:F+I+J+K.mainAxis,ae=r.elements.arrow&&Af(r.elements.arrow),fe=ae?E==="y"?ae.clientTop||0:ae.clientLeft||0:0,te=(R=Y==null?void 0:Y[E])!=null?R:0,ie=S+$-te-fe,de=S+X-te,me=Dh(d?Kp(C,ie):C,S,d?ac(T,de):T);j[E]=me,G[E]=me-S}if(c){var se,ve=E==="x"?Xi:Yi,be=E==="x"?$o:Lo,ke=j[O],Ce=O==="y"?"height":"width",Ee=ke+g[ve],Me=ke-g[be],Le=[Xi,Yi].indexOf(v)!==-1,Ae=(se=Y==null?void 0:Y[O])!=null?se:0,Fe=Le?Ee:ke-W[Ce]-z[Ce]-Ae+K.altAxis,Ge=Le?ke+W[Ce]+z[Ce]-Ae-K.altAxis:Me,Ye=d&&Le?DD(Fe,ke,Ge):Dh(d?Fe:Ee,ke,d?Ge:Me);j[O]=Ye,G[O]=Ye-ke}r.modifiersData[n]=G}}var hj={name:"preventOverflow",enabled:!0,phase:"main",fn:uj,requiresIfExists:["offset"]};function fj(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function dj(t){return t===ls(t)||!Oo(t)?Qy(t):fj(t)}function pj(t){var r=t.getBoundingClientRect(),e=gu(r.width)/t.offsetWidth||1,n=gu(r.height)/t.offsetHeight||1;return e!==1||n!==1}function mj(t,r,e){e===void 0&&(e=!1);var n=Oo(r),o=Oo(r)&&pj(r),s=pl(r),i=vu(t,o),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!e)&&((Ns(r)!=="body"||tb(s))&&(c=dj(r)),Oo(r)?(l=vu(r,!0),l.x+=r.clientLeft,l.y+=r.clientTop):s&&(l.x=eb(s))),{x:i.left+c.scrollLeft-l.x,y:i.top+c.scrollTop-l.y,width:i.width,height:i.height}}function gj(t){var r=new Map,e=new Set,n=[];t.forEach(function(s){r.set(s.name,s)});function o(s){e.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(c){if(!e.has(c)){var l=r.get(c);l&&o(l)}}),n.push(s)}return t.forEach(function(s){e.has(s.name)||o(s)}),n}function vj(t){var r=gj(t);return RD.reduce(function(e,n){return e.concat(r.filter(function(o){return o.phase===n}))},[])}function yj(t){var r;return function(){return r||(r=new Promise(function(e){Promise.resolve().then(function(){r=void 0,e(t())})})),r}}function bj(t){var r=t.reduce(function(e,n){var o=e[n.name];return e[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,e},{});return Object.keys(r).map(function(e){return r[e]})}var Q2={placement:"bottom",modifiers:[],strategy:"absolute"};function e3(){for(var t=arguments.length,r=new Array(t),e=0;e{const n={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const a=Cj(l);Object.assign(i.value,a)},requires:["computeStyles"]},o=_e(()=>{const{onFirstUpdate:l,placement:a,strategy:h,modifiers:u}=re(e);return{onFirstUpdate:l,placement:a||"bottom",strategy:h||"absolute",modifiers:[...u||[],n,{name:"applyStyles",enabled:!1}]}}),s=Ja(),i=ze({styles:{popper:{position:re(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=()=>{s.value&&(s.value.destroy(),s.value=void 0)};return St(o,l=>{const a=re(s);a&&a.setOptions(l)},{deep:!0}),St([t,r],([l,a])=>{c(),!(!l||!a)&&(s.value=xj(l,a,re(o)))}),ni(()=>{c()}),{state:_e(()=>{var l;return{...((l=re(s))==null?void 0:l.state)||{}}}),styles:_e(()=>re(i).styles),attributes:_e(()=>re(i).attributes),update:()=>{var l;return(l=re(s))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=re(s))==null?void 0:l.forceUpdate()},instanceRef:_e(()=>re(s))}};function Cj(t){const r=Object.keys(t.elements),e=qp(r.map(o=>[o,t.styles[o]||{}])),n=qp(r.map(o=>[o,t.attributes[o]]));return{styles:e,attributes:n}}const M5=t=>{if(!t)return{onClick:qn,onMousedown:qn,onMouseup:qn};let r=!1,e=!1;return{onClick:i=>{r&&e&&t(i),r=e=!1},onMousedown:i=>{r=i.target===i.currentTarget},onMouseup:i=>{e=i.target===i.currentTarget}}};function t3(){let t;const r=(n,o)=>{e(),t=window.setTimeout(n,o)},e=()=>window.clearTimeout(t);return Sf(()=>e()),{registerTimeout:r,cancelTimeout:e}}const r3={prefix:Math.floor(Math.random()*1e4),current:0},kj=Symbol("elIdInjection"),nb=()=>an()?Ft(kj,r3):r3,dc=t=>{const r=nb(),e=Ky();return _e(()=>re(t)||`${e.value}-id-${r.prefix}-${r.current++}`)};let Gc=[];const n3=t=>{const r=t;r.key===Rn.esc&&Gc.forEach(e=>e(r))},Ej=t=>{ln(()=>{Gc.length===0&&document.addEventListener("keydown",n3),_n&&Gc.push(t)}),ni(()=>{Gc=Gc.filter(r=>r!==t),Gc.length===0&&_n&&document.removeEventListener("keydown",n3)})};let i3;const O5=()=>{const t=Ky(),r=nb(),e=_e(()=>`${t.value}-popper-container-${r.prefix}`),n=_e(()=>`#${e.value}`);return{id:e,selector:n}},Tj=t=>{const r=document.createElement("div");return r.id=t,document.body.appendChild(r),r},Aj=()=>{const{id:t,selector:r}=O5();return Hx(()=>{_n&&!i3&&!document.body.querySelector(r.value)&&(i3=Tj(t.value))}),{id:t,selector:r}},Pj=tr({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Mj=({showAfter:t,hideAfter:r,autoClose:e,open:n,close:o})=>{const{registerTimeout:s}=t3(),{registerTimeout:i,cancelTimeout:c}=t3();return{onOpen:h=>{s(()=>{n(h);const u=re(e);rn(u)&&u>0&&i(()=>{o(h)},u)},re(t))},onClose:h=>{c(),s(()=>{o(h)},re(r))}}},R5=Symbol("elForwardRef"),Oj=t=>{pn(R5,{setForwardRef:e=>{t.value=e}})},Rj=t=>({mounted(r){t(r)},updated(r){t(r)},unmounted(){t(null)}}),o3={current:0},s3=ze(0),I5=2e3,a3=Symbol("elZIndexContextKey"),$5=Symbol("zIndexContextKey"),ib=t=>{const r=an()?Ft(a3,o3):o3,e=t||(an()?Ft($5,void 0):void 0),n=_e(()=>{const i=re(e);return rn(i)?i:I5}),o=_e(()=>n.value+s3.value),s=()=>(r.current++,s3.value=r.current,o.value);return!_n&&Ft(a3),{initialZIndex:n,currentZIndex:o,nextZIndex:s}};function Ij(t){const r=ze();function e(){if(t.value==null)return;const{selectionStart:o,selectionEnd:s,value:i}=t.value;if(o==null||s==null)return;const c=i.slice(0,Math.max(0,o)),l=i.slice(Math.max(0,s));r.value={selectionStart:o,selectionEnd:s,value:i,beforeTxt:c,afterTxt:l}}function n(){if(t.value==null||r.value==null)return;const{value:o}=t.value,{beforeTxt:s,afterTxt:i,selectionStart:c}=r.value;if(s==null||i==null||c==null)return;let l=o.length;if(o.endsWith(i))l=o.length-i.length;else if(o.startsWith(s))l=s.length;else{const a=s[c-1],h=o.indexOf(a,c-1);h!==-1&&(l=h+1)}t.value.setSelectionRange(l,l)}return[e,n]}const $j=(t,r,e)=>Lh(t.subTree).filter(s=>{var i;return $s(s)&&((i=s.type)==null?void 0:i.name)===r&&!!s.component}).map(s=>s.component.uid).map(s=>e[s]).filter(s=>!!s),Lj=(t,r)=>{const e={},n=Ja([]);return{children:n,addChild:i=>{e[i.uid]=i,n.value=$j(t,r,e)},removeChild:i=>{delete e[i],n.value=n.value.filter(c=>c.uid!==i)}}},Pu=as({type:String,values:Au,required:!1}),L5=Symbol("size"),Nj=()=>{const t=Ft(L5,{});return _e(()=>re(t.size)||"")};function ob(t,{afterFocus:r,beforeBlur:e,afterBlur:n}={}){const o=an(),{emit:s}=o,i=Ja(),c=ze(!1),l=u=>{c.value||(c.value=!0,s("focus",u),r==null||r())},a=u=>{var f;Wt(e)&&e(u)||u.relatedTarget&&((f=i.value)!=null&&f.contains(u.relatedTarget))||(c.value=!1,s("blur",u),n==null||n())},h=()=>{var u;(u=t.value)==null||u.focus()};return St(i,u=>{u&&u.setAttribute("tabindex","-1")}),es(i,"click",h),{wrapperRef:i,isFocused:c,handleFocus:l,handleBlur:a}}const Dj=["",void 0,null],jj=void 0,N5=tr({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:t=>Wt(t)?!t():!t}}),D5=(t,r)=>{let e=Pf();e.value||(e=ze({}));const n=_e(()=>t.emptyValues||e.value.emptyValues||Dj),o=_e(()=>Wt(t.valueOnClear)?t.valueOnClear():t.valueOnClear!==void 0?t.valueOnClear:Wt(e.value.valueOnClear)?e.value.valueOnClear():e.value.valueOnClear!==void 0?e.value.valueOnClear:jj),s=i=>n.value.includes(i);return n.value.includes(o.value),{emptyValues:n,valueOnClear:o,isEmptyValue:s}},Bj=tr({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),ml=t=>r5(Bj,t),j5=Symbol(),Zp=ze();function Pf(t,r=void 0){const e=an()?Ft(j5,Zp):Zp;return t?_e(()=>{var n,o;return(o=(n=e.value)==null?void 0:n[t])!=null?o:r}):e}function B5(t,r){const e=Pf(),n=zt(t,_e(()=>{var c;return((c=e.value)==null?void 0:c.namespace)||Nh})),o=Do(_e(()=>{var c;return(c=e.value)==null?void 0:c.locale})),s=ib(_e(()=>{var c;return((c=e.value)==null?void 0:c.zIndex)||I5})),i=_e(()=>{var c;return re(r)||((c=e.value)==null?void 0:c.size)||""});return Fj(_e(()=>re(e)||{})),{ns:n,locale:o,zIndex:s,size:i}}const Fj=(t,r,e=!1)=>{var n;const o=!!an(),s=o?Pf():void 0,i=(n=void 0)!=null?n:o?pn:void 0;if(!i)return;const c=_e(()=>{const l=re(t);return s!=null&&s.value?zj(s.value,l):l});return i(j5,c),i(m5,_e(()=>c.value.locale)),i(g5,_e(()=>c.value.namespace)),i($5,_e(()=>c.value.zIndex)),i(L5,{size:_e(()=>c.value.size||"")}),(e||!Zp.value)&&(Zp.value=c.value),c},zj=(t,r)=>{const e=[...new Set([...yv(t),...yv(r)])],n={};for(const o of e)n[o]=r[o]!==void 0?r[o]:t[o];return n};var lr=(t,r)=>{const e=t.__vccOpts||t;for(const[n,o]of r)e[n]=o;return e};const Vj=tr({size:{type:Pt([Number,String])},color:{type:String}}),Hj=et({name:"ElIcon",inheritAttrs:!1}),Uj=et({...Hj,props:Vj,setup(t){const r=t,e=zt("icon"),n=_e(()=>{const{size:o,color:s}=r;return!o&&!s?{}:{fontSize:sl(o)?void 0:ll(o),"--color":s}});return(o,s)=>(Se(),Ne("i",Bi({class:re(e).b(),style:re(n)},o.$attrs),[kt(o.$slots,"default")],16))}});var Wj=lr(Uj,[["__file","icon.vue"]]);const en=Zn(Wj),qj=["light","dark"],Gj=tr({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:yv(Gp),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:qj,default:"light"}}),Kj={close:t=>t instanceof MouseEvent},Zj=et({name:"ElAlert"}),Xj=et({...Zj,props:Gj,emits:Kj,setup(t,{emit:r}){const e=t,{Close:n}=sD,o=dl(),s=zt("alert"),i=ze(!0),c=_e(()=>Gp[e.type]),l=_e(()=>[s.e("icon"),{[s.is("big")]:!!e.description||!!o.default}]),a=_e(()=>({"with-description":e.description||o.default})),h=u=>{i.value=!1,r("close",u)};return(u,f)=>(Se(),nt(os,{name:re(s).b("fade"),persisted:""},{default:De(()=>[bn(qe("div",{class:Ue([re(s).b(),re(s).m(u.type),re(s).is("center",u.center),re(s).is(u.effect)]),role:"alert"},[u.showIcon&&re(c)?(Se(),nt(re(en),{key:0,class:Ue(re(l))},{default:De(()=>[(Se(),nt(on(re(c))))]),_:1},8,["class"])):at("v-if",!0),qe("div",{class:Ue(re(s).e("content"))},[u.title||u.$slots.title?(Se(),Ne("span",{key:0,class:Ue([re(s).e("title"),re(a)])},[kt(u.$slots,"title",{},()=>[er(Rt(u.title),1)])],2)):at("v-if",!0),u.$slots.default||u.description?(Se(),Ne("p",{key:1,class:Ue(re(s).e("description"))},[kt(u.$slots,"default",{},()=>[er(Rt(u.description),1)])],2)):at("v-if",!0),u.closable?(Se(),Ne(Ht,{key:2},[u.closeText?(Se(),Ne("div",{key:0,class:Ue([re(s).e("close-btn"),re(s).is("customed")]),onClick:h},Rt(u.closeText),3)):(Se(),nt(re(en),{key:1,class:Ue(re(s).e("close-btn")),onClick:h},{default:De(()=>[He(re(n))]),_:1},8,["class"]))],64)):at("v-if",!0)],2)],2),[[Qi,i.value]])]),_:3},8,["name"]))}});var Yj=lr(Xj,[["__file","alert.vue"]]);const Jj=Zn(Yj),Mu=Symbol("formContextKey"),pc=Symbol("formItemContextKey"),ua=(t,r={})=>{const e=ze(void 0),n=r.prop?e:y5("size"),o=r.global?e:Nj(),s=r.form?{size:void 0}:Ft(Mu,void 0),i=r.formItem?{size:void 0}:Ft(pc,void 0);return _e(()=>n.value||re(t)||(i==null?void 0:i.size)||(s==null?void 0:s.size)||o.value||"")},$m=t=>{const r=y5("disabled"),e=Ft(Mu,void 0);return _e(()=>r.value||re(t)||(e==null?void 0:e.disabled)||!1)},_c=()=>{const t=Ft(Mu,void 0),r=Ft(pc,void 0);return{form:t,formItem:r}},Mf=(t,{formItemContext:r,disableIdGeneration:e,disableIdManagement:n})=>{e||(e=ze(!1)),n||(n=ze(!1));const o=ze();let s;const i=_e(()=>{var c;return!!(!(t.label||t.ariaLabel)&&r&&r.inputIds&&((c=r.inputIds)==null?void 0:c.length)<=1)});return ln(()=>{s=St([Po(t,"id"),e],([c,l])=>{const a=c??(l?void 0:dc().value);a!==o.value&&(r!=null&&r.removeInputId&&(o.value&&r.removeInputId(o.value),!(n!=null&&n.value)&&!l&&a&&r.addInputId(a)),o.value=a)},{immediate:!0})}),wf(()=>{s&&s(),r!=null&&r.removeInputId&&o.value&&r.removeInputId(o.value)}),{isLabeledByFormItem:i,inputId:o}},Qj=tr({size:{type:String,values:Au},disabled:Boolean}),eB=tr({...Qj,model:Object,rules:{type:Pt(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),tB={validate:(t,r,e)=>(Et(t)||mr(t))&&al(r)&&mr(e)};function rB(){const t=ze([]),r=_e(()=>{if(!t.value.length)return"0";const s=Math.max(...t.value);return s?`${s}px`:""});function e(s){const i=t.value.indexOf(s);return i===-1&&r.value,i}function n(s,i){if(s&&i){const c=e(i);t.value.splice(c,1,s)}else s&&t.value.push(s)}function o(s){const i=e(s);i>-1&&t.value.splice(i,1)}return{autoLabelWidth:r,registerLabelWidth:n,deregisterLabelWidth:o}}const zd=(t,r)=>{const e=fu(r);return e.length>0?t.filter(n=>n.prop&&e.includes(n.prop)):t},nB="ElForm",iB=et({name:nB}),oB=et({...iB,props:eB,emits:tB,setup(t,{expose:r,emit:e}){const n=t,o=[],s=ua(),i=zt("form"),c=_e(()=>{const{labelPosition:_,inline:E}=n;return[i.b(),i.m(s.value||"default"),{[i.m(`label-${_}`)]:_,[i.m("inline")]:E}]}),l=_=>o.find(E=>E.prop===_),a=_=>{o.push(_)},h=_=>{_.prop&&o.splice(o.indexOf(_),1)},u=(_=[])=>{n.model&&zd(o,_).forEach(E=>E.resetField())},f=(_=[])=>{zd(o,_).forEach(E=>E.clearValidate())},d=_e(()=>!!n.model),m=_=>{if(o.length===0)return[];const E=zd(o,_);return E.length?E:[]},p=async _=>v(void 0,_),g=async(_=[])=>{if(!d.value)return!1;const E=m(_);if(E.length===0)return!0;let O={};for(const j of E)try{await j.validate("")}catch(W){O={...O,...W}}return Object.keys(O).length===0?!0:Promise.reject(O)},v=async(_=[],E)=>{const O=!Wt(E);try{const j=await g(_);return j===!0&&await(E==null?void 0:E(j)),j}catch(j){if(j instanceof Error)throw j;const W=j;return n.scrollToError&&b(Object.keys(W)[0]),await(E==null?void 0:E(!1,W)),O&&Promise.reject(W)}},b=_=>{var E;const O=zd(o,_)[0];O&&((E=O.$el)==null||E.scrollIntoView(n.scrollIntoViewOptions))};return St(()=>n.rules,()=>{n.validateOnRuleChange&&p().catch(_=>void 0)},{deep:!0}),pn(Mu,sn({...nl(n),emit:e,resetFields:u,clearValidate:f,validateField:v,getField:l,addField:a,removeField:h,...rB()})),r({validate:p,validateField:v,resetFields:u,clearValidate:f,scrollToField:b,fields:o}),(_,E)=>(Se(),Ne("form",{class:Ue(re(c))},[kt(_.$slots,"default")],2))}});var sB=lr(oB,[["__file","form.vue"]]);function nc(){return nc=Object.assign?Object.assign.bind():function(t){for(var r=1;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _p(t,r,e){return lB()?_p=Reflect.construct.bind():_p=function(o,s,i){var c=[null];c.push.apply(c,s);var l=Function.bind.apply(o,c),a=new l;return i&&uf(a,i.prototype),a},_p.apply(null,arguments)}function cB(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function xv(t){var r=typeof Map=="function"?new Map:void 0;return xv=function(n){if(n===null||!cB(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r<"u"){if(r.has(n))return r.get(n);r.set(n,o)}function o(){return _p(n,arguments,wv(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),uf(o,n)},xv(t)}var uB=/%[sdj%]/g,hB=function(){};function Sv(t){if(!t||!t.length)return null;var r={};return t.forEach(function(e){var n=e.field;r[n]=r[n]||[],r[n].push(e)}),r}function go(t){for(var r=arguments.length,e=new Array(r>1?r-1:0),n=1;n=s)return c;switch(c){case"%s":return String(e[o++]);case"%d":return Number(e[o++]);case"%j":try{return JSON.stringify(e[o++])}catch{return"[Circular]"}break;default:return c}});return i}return t}function fB(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function ri(t,r){return!!(t==null||r==="array"&&Array.isArray(t)&&!t.length||fB(r)&&typeof t=="string"&&!t)}function dB(t,r,e){var n=[],o=0,s=t.length;function i(c){n.push.apply(n,c||[]),o++,o===s&&e(n)}t.forEach(function(c){r(c,i)})}function l3(t,r,e){var n=0,o=t.length;function s(i){if(i&&i.length){e(i);return}var c=n;n=n+1,c()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Ch={integer:function(r){return Ch.number(r)&&parseInt(r,10)===r},float:function(r){return Ch.number(r)&&!Ch.integer(r)},array:function(r){return Array.isArray(r)},regexp:function(r){if(r instanceof RegExp)return!0;try{return!!new RegExp(r)}catch{return!1}},date:function(r){return typeof r.getTime=="function"&&typeof r.getMonth=="function"&&typeof r.getYear=="function"&&!isNaN(r.getTime())},number:function(r){return isNaN(r)?!1:typeof r=="number"},object:function(r){return typeof r=="object"&&!Ch.array(r)},method:function(r){return typeof r=="function"},email:function(r){return typeof r=="string"&&r.length<=320&&!!r.match(f3.email)},url:function(r){return typeof r=="string"&&r.length<=2048&&!!r.match(bB())},hex:function(r){return typeof r=="string"&&!!r.match(f3.hex)}},_B=function(r,e,n,o,s){if(r.required&&e===void 0){F5(r,e,n,o,s);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],c=r.type;i.indexOf(c)>-1?Ch[c](e)||o.push(go(s.messages.types[c],r.fullField,r.type)):c&&typeof e!==r.type&&o.push(go(s.messages.types[c],r.fullField,r.type))},wB=function(r,e,n,o,s){var i=typeof r.len=="number",c=typeof r.min=="number",l=typeof r.max=="number",a=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,h=e,u=null,f=typeof e=="number",d=typeof e=="string",m=Array.isArray(e);if(f?u="number":d?u="string":m&&(u="array"),!u)return!1;m&&(h=e.length),d&&(h=e.replace(a,"_").length),i?h!==r.len&&o.push(go(s.messages[u].len,r.fullField,r.len)):c&&!l&&hr.max?o.push(go(s.messages[u].max,r.fullField,r.max)):c&&l&&(hr.max)&&o.push(go(s.messages[u].range,r.fullField,r.min,r.max))},Bc="enum",xB=function(r,e,n,o,s){r[Bc]=Array.isArray(r[Bc])?r[Bc]:[],r[Bc].indexOf(e)===-1&&o.push(go(s.messages[Bc],r.fullField,r[Bc].join(", ")))},SB=function(r,e,n,o,s){if(r.pattern){if(r.pattern instanceof RegExp)r.pattern.lastIndex=0,r.pattern.test(e)||o.push(go(s.messages.pattern.mismatch,r.fullField,e,r.pattern));else if(typeof r.pattern=="string"){var i=new RegExp(r.pattern);i.test(e)||o.push(go(s.messages.pattern.mismatch,r.fullField,e,r.pattern))}}},qr={required:F5,whitespace:yB,type:_B,range:wB,enum:xB,pattern:SB},CB=function(r,e,n,o,s){var i=[],c=r.required||!r.required&&o.hasOwnProperty(r.field);if(c){if(ri(e,"string")&&!r.required)return n();qr.required(r,e,o,i,s,"string"),ri(e,"string")||(qr.type(r,e,o,i,s),qr.range(r,e,o,i,s),qr.pattern(r,e,o,i,s),r.whitespace===!0&&qr.whitespace(r,e,o,i,s))}n(i)},kB=function(r,e,n,o,s){var i=[],c=r.required||!r.required&&o.hasOwnProperty(r.field);if(c){if(ri(e)&&!r.required)return n();qr.required(r,e,o,i,s),e!==void 0&&qr.type(r,e,o,i,s)}n(i)},EB=function(r,e,n,o,s){var i=[],c=r.required||!r.required&&o.hasOwnProperty(r.field);if(c){if(e===""&&(e=void 0),ri(e)&&!r.required)return n();qr.required(r,e,o,i,s),e!==void 0&&(qr.type(r,e,o,i,s),qr.range(r,e,o,i,s))}n(i)},TB=function(r,e,n,o,s){var i=[],c=r.required||!r.required&&o.hasOwnProperty(r.field);if(c){if(ri(e)&&!r.required)return n();qr.required(r,e,o,i,s),e!==void 0&&qr.type(r,e,o,i,s)}n(i)},AB=function(r,e,n,o,s){var i=[],c=r.required||!r.required&&o.hasOwnProperty(r.field);if(c){if(ri(e)&&!r.required)return n();qr.required(r,e,o,i,s),ri(e)||qr.type(r,e,o,i,s)}n(i)},PB=function(r,e,n,o,s){var i=[],c=r.required||!r.required&&o.hasOwnProperty(r.field);if(c){if(ri(e)&&!r.required)return n();qr.required(r,e,o,i,s),e!==void 0&&(qr.type(r,e,o,i,s),qr.range(r,e,o,i,s))}n(i)},MB=function(r,e,n,o,s){var i=[],c=r.required||!r.required&&o.hasOwnProperty(r.field);if(c){if(ri(e)&&!r.required)return n();qr.required(r,e,o,i,s),e!==void 0&&(qr.type(r,e,o,i,s),qr.range(r,e,o,i,s))}n(i)},OB=function(r,e,n,o,s){var i=[],c=r.required||!r.required&&o.hasOwnProperty(r.field);if(c){if(e==null&&!r.required)return n();qr.required(r,e,o,i,s,"array"),e!=null&&(qr.type(r,e,o,i,s),qr.range(r,e,o,i,s))}n(i)},RB=function(r,e,n,o,s){var i=[],c=r.required||!r.required&&o.hasOwnProperty(r.field);if(c){if(ri(e)&&!r.required)return n();qr.required(r,e,o,i,s),e!==void 0&&qr.type(r,e,o,i,s)}n(i)},IB="enum",$B=function(r,e,n,o,s){var i=[],c=r.required||!r.required&&o.hasOwnProperty(r.field);if(c){if(ri(e)&&!r.required)return n();qr.required(r,e,o,i,s),e!==void 0&&qr[IB](r,e,o,i,s)}n(i)},LB=function(r,e,n,o,s){var i=[],c=r.required||!r.required&&o.hasOwnProperty(r.field);if(c){if(ri(e,"string")&&!r.required)return n();qr.required(r,e,o,i,s),ri(e,"string")||qr.pattern(r,e,o,i,s)}n(i)},NB=function(r,e,n,o,s){var i=[],c=r.required||!r.required&&o.hasOwnProperty(r.field);if(c){if(ri(e,"date")&&!r.required)return n();if(qr.required(r,e,o,i,s),!ri(e,"date")){var l;e instanceof Date?l=e:l=new Date(e),qr.type(r,l,o,i,s),l&&qr.range(r,l.getTime(),o,i,s)}}n(i)},DB=function(r,e,n,o,s){var i=[],c=Array.isArray(e)?"array":typeof e;qr.required(r,e,o,i,s,c),n(i)},w0=function(r,e,n,o,s){var i=r.type,c=[],l=r.required||!r.required&&o.hasOwnProperty(r.field);if(l){if(ri(e,i)&&!r.required)return n();qr.required(r,e,o,c,s,i),ri(e,i)||qr.type(r,e,o,c,s)}n(c)},jB=function(r,e,n,o,s){var i=[],c=r.required||!r.required&&o.hasOwnProperty(r.field);if(c){if(ri(e)&&!r.required)return n();qr.required(r,e,o,i,s)}n(i)},Bh={string:CB,method:kB,number:EB,boolean:TB,regexp:AB,integer:PB,float:MB,array:OB,object:RB,enum:$B,pattern:LB,date:NB,url:w0,hex:w0,email:w0,required:DB,any:jB};function Cv(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var r=JSON.parse(JSON.stringify(this));return r.clone=this.clone,r}}}var kv=Cv(),Of=function(){function t(e){this.rules=null,this._messages=kv,this.define(e)}var r=t.prototype;return r.define=function(n){var o=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(s){var i=n[s];o.rules[s]=Array.isArray(i)?i:[i]})},r.messages=function(n){return n&&(this._messages=h3(Cv(),n)),this._messages},r.validate=function(n,o,s){var i=this;o===void 0&&(o={}),s===void 0&&(s=function(){});var c=n,l=o,a=s;if(typeof l=="function"&&(a=l,l={}),!this.rules||Object.keys(this.rules).length===0)return a&&a(null,c),Promise.resolve(c);function h(p){var g=[],v={};function b(E){if(Array.isArray(E)){var O;g=(O=g).concat.apply(O,E)}else g.push(E)}for(var _=0;_");const o=zt("form"),s=ze(),i=ze(0),c=()=>{var h;if((h=s.value)!=null&&h.firstElementChild){const u=window.getComputedStyle(s.value.firstElementChild).width;return Math.ceil(Number.parseFloat(u))}else return 0},l=(h="update")=>{jr(()=>{r.default&&t.isAutoWidth&&(h==="update"?i.value=c():h==="remove"&&(e==null||e.deregisterLabelWidth(i.value)))})},a=()=>l("update");return ln(()=>{a()}),ni(()=>{l("remove")}),vc(()=>a()),St(i,(h,u)=>{t.updateAll&&(e==null||e.registerLabelWidth(h,u))}),Xn(_e(()=>{var h,u;return(u=(h=s.value)==null?void 0:h.firstElementChild)!=null?u:null}),a),()=>{var h,u;if(!r)return null;const{isAutoWidth:f}=t;if(f){const d=e==null?void 0:e.autoLabelWidth,m=n==null?void 0:n.hasLabel,p={};if(m&&d&&d!=="auto"){const g=Math.max(0,Number.parseInt(d,10)-i.value),v=e.labelPosition==="left"?"marginRight":"marginLeft";g&&(p[v]=`${g}px`)}return He("div",{ref:s,class:[o.be("item","label-wrap")],style:p},[(h=r.default)==null?void 0:h.call(r)])}else return He(Ht,{ref:s},[(u=r.default)==null?void 0:u.call(r)])}}});const VB=["role","aria-labelledby"],HB=et({name:"ElFormItem"}),UB=et({...HB,props:FB,setup(t,{expose:r}){const e=t,n=dl(),o=Ft(Mu,void 0),s=Ft(pc,void 0),i=ua(void 0,{formItem:!1}),c=zt("form-item"),l=dc().value,a=ze([]),h=ze(""),u=rO(h,100),f=ze(""),d=ze();let m,p=!1;const g=_e(()=>{if((o==null?void 0:o.labelPosition)==="top")return{};const J=ll(e.labelWidth||(o==null?void 0:o.labelWidth)||"");return J?{width:J}:{}}),v=_e(()=>{if((o==null?void 0:o.labelPosition)==="top"||o!=null&&o.inline)return{};if(!e.label&&!e.labelWidth&&U)return{};const J=ll(e.labelWidth||(o==null?void 0:o.labelWidth)||"");return!e.label&&!n.label?{marginLeft:J}:{}}),b=_e(()=>[c.b(),c.m(i.value),c.is("error",h.value==="error"),c.is("validating",h.value==="validating"),c.is("success",h.value==="success"),c.is("required",D.value||e.required),c.is("no-asterisk",o==null?void 0:o.hideRequiredAsterisk),(o==null?void 0:o.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[c.m("feedback")]:o==null?void 0:o.statusIcon}]),_=_e(()=>al(e.inlineMessage)?e.inlineMessage:(o==null?void 0:o.inlineMessage)||!1),E=_e(()=>[c.e("error"),{[c.em("error","inline")]:_.value}]),O=_e(()=>e.prop?mr(e.prop)?e.prop:e.prop.join("."):""),j=_e(()=>!!(e.label||n.label)),W=_e(()=>e.for||(a.value.length===1?a.value[0]:void 0)),z=_e(()=>!W.value&&j.value),U=!!s,K=_e(()=>{const J=o==null?void 0:o.model;if(!(!J||!e.prop))return _0(J,e.prop).value}),Y=_e(()=>{const{required:J}=e,I=[];e.rules&&I.push(...fu(e.rules));const $=o==null?void 0:o.rules;if($&&e.prop){const X=_0($,e.prop).value;X&&I.push(...fu(X))}if(J!==void 0){const X=I.map((ae,fe)=>[ae,fe]).filter(([ae])=>Object.keys(ae).includes("required"));if(X.length>0)for(const[ae,fe]of X)ae.required!==J&&(I[fe]={...ae,required:J});else I.push({required:J})}return I}),G=_e(()=>Y.value.length>0),R=J=>Y.value.filter($=>!$.trigger||!J?!0:Array.isArray($.trigger)?$.trigger.includes(J):$.trigger===J).map(({trigger:$,...X})=>X),D=_e(()=>Y.value.some(J=>J.required)),k=_e(()=>{var J;return u.value==="error"&&e.showMessage&&((J=o==null?void 0:o.showMessage)!=null?J:!0)}),x=_e(()=>`${e.label||""}${(o==null?void 0:o.labelSuffix)||""}`),S=J=>{h.value=J},C=J=>{var I,$;const{errors:X,fields:ae}=J;S("error"),f.value=X?($=(I=X==null?void 0:X[0])==null?void 0:I.message)!=null?$:`${e.prop} is required`:"",o==null||o.emit("validate",e.prop,!1,f.value)},T=()=>{S("success"),o==null||o.emit("validate",e.prop,!0,"")},M=async J=>{const I=O.value;return new Of({[I]:J}).validate({[I]:K.value},{firstFields:!0}).then(()=>(T(),!0)).catch(X=>(C(X),Promise.reject(X)))},N=async(J,I)=>{if(p||!e.prop)return!1;const $=Wt(I);if(!G.value)return I==null||I(!1),!1;const X=R(J);return X.length===0?(I==null||I(!0),!0):(S("validating"),M(X).then(()=>(I==null||I(!0),!0)).catch(ae=>{const{fields:fe}=ae;return I==null||I(!1,fe),$?!1:Promise.reject(fe)}))},F=()=>{S(""),f.value="",p=!1},Z=async()=>{const J=o==null?void 0:o.model;if(!J||!e.prop)return;const I=_0(J,e.prop);p=!0,I.value=B2(m),await jr(),F(),p=!1},H=J=>{a.value.includes(J)||a.value.push(J)},ee=J=>{a.value=a.value.filter(I=>I!==J)};St(()=>e.error,J=>{f.value=J||"",S(J?"error":"")},{immediate:!0}),St(()=>e.validateStatus,J=>S(J||""));const B=sn({...nl(e),$el:d,size:i,validateState:h,labelId:l,inputIds:a,isGroup:z,hasLabel:j,fieldValue:K,addInputId:H,removeInputId:ee,resetField:Z,clearValidate:F,validate:N});return pn(pc,B),ln(()=>{e.prop&&(o==null||o.addField(B),m=B2(K.value))}),ni(()=>{o==null||o.removeField(B)}),r({size:i,validateMessage:f,validateState:h,validate:N,clearValidate:F,resetField:Z}),(J,I)=>{var $;return Se(),Ne("div",{ref_key:"formItemRef",ref:d,class:Ue(re(b)),role:re(z)?"group":void 0,"aria-labelledby":re(z)?re(l):void 0},[He(re(zB),{"is-auto-width":re(g).width==="auto","update-all":(($=re(o))==null?void 0:$.labelWidth)==="auto"},{default:De(()=>[re(j)?(Se(),nt(on(re(W)?"label":"div"),{key:0,id:re(l),for:re(W),class:Ue(re(c).e("label")),style:tn(re(g))},{default:De(()=>[kt(J.$slots,"label",{label:re(x)},()=>[er(Rt(re(x)),1)])]),_:3},8,["id","for","class","style"])):at("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),qe("div",{class:Ue(re(c).e("content")),style:tn(re(v))},[kt(J.$slots,"default"),He(MM,{name:`${re(c).namespace.value}-zoom-in-top`},{default:De(()=>[re(k)?kt(J.$slots,"error",{key:0,error:f.value},()=>[qe("div",{class:Ue(re(E))},Rt(f.value),3)]):at("v-if",!0)]),_:3},8,["name"])],6)],10,VB)}}});var z5=lr(UB,[["__file","form-item.vue"]]);const V5=Zn(sB,{FormItem:z5}),wp=No(z5);let Go;const WB=` + height:0 !important; + visibility:hidden !important; + ${E6()?"":"overflow:hidden !important;"} + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important; +`,qB=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function GB(t){const r=window.getComputedStyle(t),e=r.getPropertyValue("box-sizing"),n=Number.parseFloat(r.getPropertyValue("padding-bottom"))+Number.parseFloat(r.getPropertyValue("padding-top")),o=Number.parseFloat(r.getPropertyValue("border-bottom-width"))+Number.parseFloat(r.getPropertyValue("border-top-width"));return{contextStyle:qB.map(i=>`${i}:${r.getPropertyValue(i)}`).join(";"),paddingSize:n,borderSize:o,boxSizing:e}}function p3(t,r=1,e){var n;Go||(Go=document.createElement("textarea"),document.body.appendChild(Go));const{paddingSize:o,borderSize:s,boxSizing:i,contextStyle:c}=GB(t);Go.setAttribute("style",`${c};${WB}`),Go.value=t.value||t.placeholder||"";let l=Go.scrollHeight;const a={};i==="border-box"?l=l+s:i==="content-box"&&(l=l-o),Go.value="";const h=Go.scrollHeight-o;if(rn(r)){let u=h*r;i==="border-box"&&(u=u+o+s),l=Math.max(u,l),a.minHeight=`${u}px`}if(rn(e)){let u=h*e;i==="border-box"&&(u=u+o+s),l=Math.min(u,l)}return a.height=`${l}px`,(n=Go.parentNode)==null||n.removeChild(Go),Go=void 0,a}const KB=tr({id:{type:String,default:void 0},size:Pu,disabled:Boolean,modelValue:{type:Pt([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Pt([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Yn},prefixIcon:{type:Yn},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Pt([Object,Array,String]),default:()=>mo({})},autofocus:{type:Boolean,default:!1},...ml(["ariaLabel"])}),ZB={[Ln]:t=>mr(t),input:t=>mr(t),change:t=>mr(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,clear:()=>!0,mouseleave:t=>t instanceof MouseEvent,mouseenter:t=>t instanceof MouseEvent,keydown:t=>t instanceof Event,compositionstart:t=>t instanceof CompositionEvent,compositionupdate:t=>t instanceof CompositionEvent,compositionend:t=>t instanceof CompositionEvent},XB=["role"],YB=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],JB=["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],QB=et({name:"ElInput",inheritAttrs:!1}),eF=et({...QB,props:KB,emits:ZB,setup(t,{expose:r,emit:e}){const n=t,o=PP(),s=dl(),i=_e(()=>{const Ae={};return n.containerRole==="combobox"&&(Ae["aria-haspopup"]=o["aria-haspopup"],Ae["aria-owns"]=o["aria-owns"],Ae["aria-expanded"]=o["aria-expanded"]),Ae}),c=_e(()=>[n.type==="textarea"?g.b():p.b(),p.m(d.value),p.is("disabled",m.value),p.is("exceed",H.value),{[p.b("group")]:s.prepend||s.append,[p.bm("group","append")]:s.append,[p.bm("group","prepend")]:s.prepend,[p.m("prefix")]:s.prefix||n.prefixIcon,[p.m("suffix")]:s.suffix||n.suffixIcon||n.clearable||n.showPassword,[p.bm("suffix","password-clear")]:M.value&&N.value,[p.b("hidden")]:n.type==="hidden"},o.class]),l=_e(()=>[p.e("wrapper"),p.is("focus",K.value)]),a=hD({excludeKeys:_e(()=>Object.keys(i.value))}),{form:h,formItem:u}=_c(),{inputId:f}=Mf(n,{formItemContext:u}),d=ua(),m=$m(),p=zt("input"),g=zt("textarea"),v=Ja(),b=Ja(),_=ze(!1),E=ze(!1),O=ze(!1),j=ze(),W=Ja(n.inputStyle),z=_e(()=>v.value||b.value),{wrapperRef:U,isFocused:K,handleFocus:Y,handleBlur:G}=ob(z,{afterBlur(){var Ae;n.validateEvent&&((Ae=u==null?void 0:u.validate)==null||Ae.call(u,"blur").catch(Fe=>void 0))}}),R=_e(()=>{var Ae;return(Ae=h==null?void 0:h.statusIcon)!=null?Ae:!1}),D=_e(()=>(u==null?void 0:u.validateState)||""),k=_e(()=>D.value&&Gy[D.value]),x=_e(()=>O.value?nD:WN),S=_e(()=>[o.style]),C=_e(()=>[n.inputStyle,W.value,{resize:n.resize}]),T=_e(()=>hc(n.modelValue)?"":String(n.modelValue)),M=_e(()=>n.clearable&&!m.value&&!n.readonly&&!!T.value&&(K.value||_.value)),N=_e(()=>n.showPassword&&!m.value&&!n.readonly&&!!T.value&&(!!T.value||K.value)),F=_e(()=>n.showWordLimit&&!!n.maxlength&&(n.type==="text"||n.type==="textarea")&&!m.value&&!n.readonly&&!n.showPassword),Z=_e(()=>T.value.length),H=_e(()=>!!F.value&&Z.value>Number(n.maxlength)),ee=_e(()=>!!s.suffix||!!n.suffixIcon||M.value||n.showPassword||F.value||!!D.value&&R.value),[B,J]=Ij(v);Xn(b,Ae=>{if(X(),!F.value||n.resize!=="both")return;const Fe=Ae[0],{width:Ge}=Fe.contentRect;j.value={right:`calc(100% - ${Ge+15+6}px)`}});const I=()=>{const{type:Ae,autosize:Fe}=n;if(!(!_n||Ae!=="textarea"||!b.value))if(Fe){const Ge=dr(Fe)?Fe.minRows:void 0,Ye=dr(Fe)?Fe.maxRows:void 0,lt=p3(b.value,Ge,Ye);W.value={overflowY:"hidden",...lt},jr(()=>{b.value.offsetHeight,W.value=lt})}else W.value={minHeight:p3(b.value).minHeight}},X=(Ae=>{let Fe=!1;return()=>{var Ge;if(Fe||!n.autosize)return;((Ge=b.value)==null?void 0:Ge.offsetParent)===null||(Ae(),Fe=!0)}})(I),ae=()=>{const Ae=z.value,Fe=n.formatter?n.formatter(T.value):T.value;!Ae||Ae.value===Fe||(Ae.value=Fe)},fe=async Ae=>{B();let{value:Fe}=Ae.target;if(n.formatter&&(Fe=n.parser?n.parser(Fe):Fe),!E.value){if(Fe===T.value){ae();return}e(Ln,Fe),e("input",Fe),await jr(),ae(),J()}},te=Ae=>{e("change",Ae.target.value)},ie=Ae=>{e("compositionstart",Ae),E.value=!0},de=Ae=>{var Fe;e("compositionupdate",Ae);const Ge=(Fe=Ae.target)==null?void 0:Fe.value,Ye=Ge[Ge.length-1]||"";E.value=!p5(Ye)},me=Ae=>{e("compositionend",Ae),E.value&&(E.value=!1,fe(Ae))},se=()=>{O.value=!O.value,ve()},ve=async()=>{var Ae;await jr(),(Ae=z.value)==null||Ae.focus()},be=()=>{var Ae;return(Ae=z.value)==null?void 0:Ae.blur()},ke=Ae=>{_.value=!1,e("mouseleave",Ae)},Ce=Ae=>{_.value=!0,e("mouseenter",Ae)},Ee=Ae=>{e("keydown",Ae)},Me=()=>{var Ae;(Ae=z.value)==null||Ae.select()},Le=()=>{e(Ln,""),e("change",""),e("clear"),e("input","")};return St(()=>n.modelValue,()=>{var Ae;jr(()=>I()),n.validateEvent&&((Ae=u==null?void 0:u.validate)==null||Ae.call(u,"change").catch(Fe=>void 0))}),St(T,()=>ae()),St(()=>n.type,async()=>{await jr(),ae(),I()}),ln(()=>{!n.formatter&&n.parser,ae(),jr(I)}),Ga({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-input",ref:"https://element-plus.org/en-US/component/input.html"},_e(()=>!!n.label)),r({input:v,textarea:b,ref:z,textareaStyle:C,autosize:Po(n,"autosize"),focus:ve,blur:be,select:Me,clear:Le,resizeTextarea:I}),(Ae,Fe)=>(Se(),Ne("div",Bi(re(i),{class:re(c),style:re(S),role:Ae.containerRole,onMouseenter:Ce,onMouseleave:ke}),[at(" input "),Ae.type!=="textarea"?(Se(),Ne(Ht,{key:0},[at(" prepend slot "),Ae.$slots.prepend?(Se(),Ne("div",{key:0,class:Ue(re(p).be("group","prepend"))},[kt(Ae.$slots,"prepend")],2)):at("v-if",!0),qe("div",{ref_key:"wrapperRef",ref:U,class:Ue(re(l))},[at(" prefix slot "),Ae.$slots.prefix||Ae.prefixIcon?(Se(),Ne("span",{key:0,class:Ue(re(p).e("prefix"))},[qe("span",{class:Ue(re(p).e("prefix-inner"))},[kt(Ae.$slots,"prefix"),Ae.prefixIcon?(Se(),nt(re(en),{key:0,class:Ue(re(p).e("icon"))},{default:De(()=>[(Se(),nt(on(Ae.prefixIcon)))]),_:1},8,["class"])):at("v-if",!0)],2)],2)):at("v-if",!0),qe("input",Bi({id:re(f),ref_key:"input",ref:v,class:re(p).e("inner")},re(a),{minlength:Ae.minlength,maxlength:Ae.maxlength,type:Ae.showPassword?O.value?"text":"password":Ae.type,disabled:re(m),readonly:Ae.readonly,autocomplete:Ae.autocomplete,tabindex:Ae.tabindex,"aria-label":Ae.label||Ae.ariaLabel,placeholder:Ae.placeholder,style:Ae.inputStyle,form:Ae.form,autofocus:Ae.autofocus,onCompositionstart:ie,onCompositionupdate:de,onCompositionend:me,onInput:fe,onFocus:Fe[0]||(Fe[0]=(...Ge)=>re(Y)&&re(Y)(...Ge)),onBlur:Fe[1]||(Fe[1]=(...Ge)=>re(G)&&re(G)(...Ge)),onChange:te,onKeydown:Ee}),null,16,YB),at(" suffix slot "),re(ee)?(Se(),Ne("span",{key:1,class:Ue(re(p).e("suffix"))},[qe("span",{class:Ue(re(p).e("suffix-inner"))},[!re(M)||!re(N)||!re(F)?(Se(),Ne(Ht,{key:0},[kt(Ae.$slots,"suffix"),Ae.suffixIcon?(Se(),nt(re(en),{key:0,class:Ue(re(p).e("icon"))},{default:De(()=>[(Se(),nt(on(Ae.suffixIcon)))]),_:1},8,["class"])):at("v-if",!0)],64)):at("v-if",!0),re(M)?(Se(),nt(re(en),{key:1,class:Ue([re(p).e("icon"),re(p).e("clear")]),onMousedown:hn(re(qn),["prevent"]),onClick:Le},{default:De(()=>[He(re(Rm))]),_:1},8,["class","onMousedown"])):at("v-if",!0),re(N)?(Se(),nt(re(en),{key:2,class:Ue([re(p).e("icon"),re(p).e("password")]),onClick:se},{default:De(()=>[(Se(),nt(on(re(x))))]),_:1},8,["class"])):at("v-if",!0),re(F)?(Se(),Ne("span",{key:3,class:Ue(re(p).e("count"))},[qe("span",{class:Ue(re(p).e("count-inner"))},Rt(re(Z))+" / "+Rt(Ae.maxlength),3)],2)):at("v-if",!0),re(D)&&re(k)&&re(R)?(Se(),nt(re(en),{key:4,class:Ue([re(p).e("icon"),re(p).e("validateIcon"),re(p).is("loading",re(D)==="validating")])},{default:De(()=>[(Se(),nt(on(re(k))))]),_:1},8,["class"])):at("v-if",!0)],2)],2)):at("v-if",!0)],2),at(" append slot "),Ae.$slots.append?(Se(),Ne("div",{key:1,class:Ue(re(p).be("group","append"))},[kt(Ae.$slots,"append")],2)):at("v-if",!0)],64)):(Se(),Ne(Ht,{key:1},[at(" textarea "),qe("textarea",Bi({id:re(f),ref_key:"textarea",ref:b,class:re(g).e("inner")},re(a),{minlength:Ae.minlength,maxlength:Ae.maxlength,tabindex:Ae.tabindex,disabled:re(m),readonly:Ae.readonly,autocomplete:Ae.autocomplete,style:re(C),"aria-label":Ae.label||Ae.ariaLabel,placeholder:Ae.placeholder,form:Ae.form,autofocus:Ae.autofocus,onCompositionstart:ie,onCompositionupdate:de,onCompositionend:me,onInput:fe,onFocus:Fe[2]||(Fe[2]=(...Ge)=>re(Y)&&re(Y)(...Ge)),onBlur:Fe[3]||(Fe[3]=(...Ge)=>re(G)&&re(G)(...Ge)),onChange:te,onKeydown:Ee}),null,16,JB),re(F)?(Se(),Ne("span",{key:0,style:tn(j.value),class:Ue(re(p).e("count"))},Rt(re(Z))+" / "+Rt(Ae.maxlength),7)):at("v-if",!0)],64))],16,XB))}});var tF=lr(eF,[["__file","input.vue"]]);const Rf=Zn(tF),Fc=4,H5={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},rF=({move:t,size:r,bar:e})=>({[e.size]:r,transform:`translate${e.axis}(${t}%)`}),sb=Symbol("scrollbarContextKey"),nF=tr({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),iF="Thumb",oF=et({__name:"thumb",props:nF,setup(t){const r=t,e=Ft(sb),n=zt("scrollbar");e||Ls(iF,"can not inject scrollbar context");const o=ze(),s=ze(),i=ze({}),c=ze(!1);let l=!1,a=!1,h=_n?document.onselectstart:null;const u=_e(()=>H5[r.vertical?"vertical":"horizontal"]),f=_e(()=>rF({size:r.size,move:r.move,bar:u.value})),d=_e(()=>o.value[u.value.offset]**2/e.wrapElement[u.value.scrollSize]/r.ratio/s.value[u.value.offset]),m=j=>{var W;if(j.stopPropagation(),j.ctrlKey||[1,2].includes(j.button))return;(W=window.getSelection())==null||W.removeAllRanges(),g(j);const z=j.currentTarget;z&&(i.value[u.value.axis]=z[u.value.offset]-(j[u.value.client]-z.getBoundingClientRect()[u.value.direction]))},p=j=>{if(!s.value||!o.value||!e.wrapElement)return;const W=Math.abs(j.target.getBoundingClientRect()[u.value.direction]-j[u.value.client]),z=s.value[u.value.offset]/2,U=(W-z)*100*d.value/o.value[u.value.offset];e.wrapElement[u.value.scroll]=U*e.wrapElement[u.value.scrollSize]/100},g=j=>{j.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",v),document.addEventListener("mouseup",b),h=document.onselectstart,document.onselectstart=()=>!1},v=j=>{if(!o.value||!s.value||l===!1)return;const W=i.value[u.value.axis];if(!W)return;const z=(o.value.getBoundingClientRect()[u.value.direction]-j[u.value.client])*-1,U=s.value[u.value.offset]-W,K=(z-U)*100*d.value/o.value[u.value.offset];e.wrapElement[u.value.scroll]=K*e.wrapElement[u.value.scrollSize]/100},b=()=>{l=!1,i.value[u.value.axis]=0,document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",b),O(),a&&(c.value=!1)},_=()=>{a=!1,c.value=!!r.size},E=()=>{a=!0,c.value=l};ni(()=>{O(),document.removeEventListener("mouseup",b)});const O=()=>{document.onselectstart!==h&&(document.onselectstart=h)};return es(Po(e,"scrollbarElement"),"mousemove",_),es(Po(e,"scrollbarElement"),"mouseleave",E),(j,W)=>(Se(),nt(os,{name:re(n).b("fade"),persisted:""},{default:De(()=>[bn(qe("div",{ref_key:"instance",ref:o,class:Ue([re(n).e("bar"),re(n).is(re(u).key)]),onMousedown:p},[qe("div",{ref_key:"thumb",ref:s,class:Ue(re(n).e("thumb")),style:tn(re(f)),onMousedown:m},null,38)],34),[[Qi,j.always||c.value]])]),_:1},8,["name"]))}});var m3=lr(oF,[["__file","thumb.vue"]]);const sF=tr({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),aF=et({__name:"bar",props:sF,setup(t,{expose:r}){const e=t,n=Ft(sb),o=ze(0),s=ze(0),i=ze(""),c=ze(""),l=ze(1),a=ze(1);return r({handleScroll:f=>{if(f){const d=f.offsetHeight-Fc,m=f.offsetWidth-Fc;s.value=f.scrollTop*100/d*l.value,o.value=f.scrollLeft*100/m*a.value}},update:()=>{const f=n==null?void 0:n.wrapElement;if(!f)return;const d=f.offsetHeight-Fc,m=f.offsetWidth-Fc,p=d**2/f.scrollHeight,g=m**2/f.scrollWidth,v=Math.max(p,e.minSize),b=Math.max(g,e.minSize);l.value=p/(d-p)/(v/(d-v)),a.value=g/(m-g)/(b/(m-b)),c.value=v+Fc(Se(),Ne(Ht,null,[He(m3,{move:o.value,ratio:a.value,size:i.value,always:f.always},null,8,["move","ratio","size","always"]),He(m3,{move:s.value,ratio:l.value,size:c.value,vertical:"",always:f.always},null,8,["move","ratio","size","always"])],64))}});var lF=lr(aF,[["__file","bar.vue"]]);const cF=tr({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Pt([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},id:String,role:String,...ml(["ariaLabel","ariaOrientation"])}),uF={scroll:({scrollTop:t,scrollLeft:r})=>[t,r].every(rn)},hF="ElScrollbar",fF=et({name:hF}),dF=et({...fF,props:cF,emits:uF,setup(t,{expose:r,emit:e}){const n=t,o=zt("scrollbar");let s,i;const c=ze(),l=ze(),a=ze(),h=ze(),u=_e(()=>{const _={};return n.height&&(_.height=ll(n.height)),n.maxHeight&&(_.maxHeight=ll(n.maxHeight)),[n.wrapStyle,_]}),f=_e(()=>[n.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!n.native}]),d=_e(()=>[o.e("view"),n.viewClass]),m=()=>{var _;l.value&&((_=h.value)==null||_.handleScroll(l.value),e("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function p(_,E){dr(_)?l.value.scrollTo(_):rn(_)&&rn(E)&&l.value.scrollTo(_,E)}const g=_=>{rn(_)&&(l.value.scrollTop=_)},v=_=>{rn(_)&&(l.value.scrollLeft=_)},b=()=>{var _;(_=h.value)==null||_.update()};return St(()=>n.noresize,_=>{_?(s==null||s(),i==null||i()):({stop:s}=Xn(a,b),i=es("resize",b))},{immediate:!0}),St(()=>[n.maxHeight,n.height],()=>{n.native||jr(()=>{var _;b(),l.value&&((_=h.value)==null||_.handleScroll(l.value))})}),pn(sb,sn({scrollbarElement:c,wrapElement:l})),ln(()=>{n.native||jr(()=>{b()})}),vc(()=>b()),r({wrapRef:l,update:b,scrollTo:p,setScrollTop:g,setScrollLeft:v,handleScroll:m}),(_,E)=>(Se(),Ne("div",{ref_key:"scrollbarRef",ref:c,class:Ue(re(o).b())},[qe("div",{ref_key:"wrapRef",ref:l,class:Ue(re(f)),style:tn(re(u)),onScroll:m},[(Se(),nt(on(_.tag),{id:_.id,ref_key:"resizeRef",ref:a,class:Ue(re(d)),style:tn(_.viewStyle),role:_.role,"aria-label":_.ariaLabel,"aria-orientation":_.ariaOrientation},{default:De(()=>[kt(_.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),_.native?at("v-if",!0):(Se(),nt(lF,{key:0,ref_key:"barRef",ref:h,always:_.always,"min-size":_.minSize},null,8,["always","min-size"]))],2))}});var pF=lr(dF,[["__file","scrollbar.vue"]]);const mF=Zn(pF),ab=Symbol("popper"),U5=Symbol("popperContent"),gF=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],W5=tr({role:{type:String,values:gF,default:"tooltip"}}),vF=et({name:"ElPopper",inheritAttrs:!1}),yF=et({...vF,props:W5,setup(t,{expose:r}){const e=t,n=ze(),o=ze(),s=ze(),i=ze(),c=_e(()=>e.role),l={triggerRef:n,popperInstanceRef:o,contentRef:s,referenceRef:i,role:c};return r(l),pn(ab,l),(a,h)=>kt(a.$slots,"default")}});var bF=lr(yF,[["__file","popper.vue"]]);const q5=tr({arrowOffset:{type:Number,default:5}}),_F=et({name:"ElPopperArrow",inheritAttrs:!1}),wF=et({..._F,props:q5,setup(t,{expose:r}){const e=t,n=zt("popper"),{arrowOffset:o,arrowRef:s,arrowStyle:i}=Ft(U5,void 0);return St(()=>e.arrowOffset,c=>{o.value=c}),ni(()=>{s.value=void 0}),r({arrowRef:s}),(c,l)=>(Se(),Ne("span",{ref_key:"arrowRef",ref:s,class:Ue(re(n).e("arrow")),style:tn(re(i)),"data-popper-arrow":""},null,6))}});var xF=lr(wF,[["__file","arrow.vue"]]);const SF="ElOnlyChild",CF=et({name:SF,setup(t,{slots:r,attrs:e}){var n;const o=Ft(R5),s=Rj((n=o==null?void 0:o.setForwardRef)!=null?n:qn);return()=>{var i;const c=(i=r.default)==null?void 0:i.call(r,e);if(!c||c.length>1)return null;const l=G5(c);return l?bn(la(l,e),[[s]]):null}}});function G5(t){if(!t)return null;const r=t;for(const e of r){if(dr(e))switch(e.type){case Zi:continue;case ku:case"svg":return g3(e);case Ht:return G5(e.children);default:return e}return g3(e)}return null}function g3(t){const r=zt("only-child");return He("span",{class:r.e("content")},[t])}const K5=tr({virtualRef:{type:Pt(Object)},virtualTriggering:Boolean,onMouseenter:{type:Pt(Function)},onMouseleave:{type:Pt(Function)},onClick:{type:Pt(Function)},onKeydown:{type:Pt(Function)},onFocus:{type:Pt(Function)},onBlur:{type:Pt(Function)},onContextmenu:{type:Pt(Function)},id:String,open:Boolean}),kF=et({name:"ElPopperTrigger",inheritAttrs:!1}),EF=et({...kF,props:K5,setup(t,{expose:r}){const e=t,{role:n,triggerRef:o}=Ft(ab,void 0);Oj(o);const s=_e(()=>c.value?e.id:void 0),i=_e(()=>{if(n&&n.value==="tooltip")return e.open&&e.id?e.id:void 0}),c=_e(()=>{if(n&&n.value!=="tooltip")return n.value}),l=_e(()=>c.value?`${e.open}`:void 0);let a;return ln(()=>{St(()=>e.virtualRef,h=>{h&&(o.value=na(h))},{immediate:!0}),St(o,(h,u)=>{a==null||a(),a=void 0,fc(h)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(f=>{var d;const m=e[f];m&&(h.addEventListener(f.slice(2).toLowerCase(),m),(d=u==null?void 0:u.removeEventListener)==null||d.call(u,f.slice(2).toLowerCase(),m))}),a=St([s,i,c,l],f=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((d,m)=>{hc(f[m])?h.removeAttribute(d):h.setAttribute(d,f[m])})},{immediate:!0})),fc(u)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(f=>u.removeAttribute(f))},{immediate:!0})}),ni(()=>{a==null||a(),a=void 0}),r({triggerRef:o}),(h,u)=>h.virtualTriggering?at("v-if",!0):(Se(),nt(re(CF),Bi({key:0},h.$attrs,{"aria-controls":re(s),"aria-describedby":re(i),"aria-expanded":re(l),"aria-haspopup":re(c)}),{default:De(()=>[kt(h.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var TF=lr(EF,[["__file","trigger.vue"]]);const x0="focus-trap.focus-after-trapped",S0="focus-trap.focus-after-released",AF="focus-trap.focusout-prevented",v3={cancelable:!0,bubbles:!1},PF={cancelable:!0,bubbles:!1},y3="focusAfterTrapped",b3="focusAfterReleased",Z5=Symbol("elFocusTrap"),lb=ze(),Lm=ze(0),cb=ze(0);let Hd=0;const X5=t=>{const r=[],e=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;e.nextNode();)r.push(e.currentNode);return r},_3=(t,r)=>{for(const e of t)if(!MF(e,r))return e},MF=(t,r)=>{if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(r&&t===r)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1},OF=t=>{const r=X5(t),e=_3(r,t),n=_3(r.reverse(),t);return[e,n]},RF=t=>t instanceof HTMLInputElement&&"select"in t,Da=(t,r)=>{if(t&&t.focus){const e=document.activeElement;t.focus({preventScroll:!0}),cb.value=window.performance.now(),t!==e&&RF(t)&&r&&t.select()}};function w3(t,r){const e=[...t],n=t.indexOf(r);return n!==-1&&e.splice(n,1),e}const IF=()=>{let t=[];return{push:n=>{const o=t[0];o&&n!==o&&o.pause(),t=w3(t,n),t.unshift(n)},remove:n=>{var o,s;t=w3(t,n),(s=(o=t[0])==null?void 0:o.resume)==null||s.call(o)}}},$F=(t,r=!1)=>{const e=document.activeElement;for(const n of t)if(Da(n,r),document.activeElement!==e)return},x3=IF(),LF=()=>Lm.value>cb.value,Ud=()=>{lb.value="pointer",Lm.value=window.performance.now()},S3=()=>{lb.value="keyboard",Lm.value=window.performance.now()},NF=()=>(ln(()=>{Hd===0&&(document.addEventListener("mousedown",Ud),document.addEventListener("touchstart",Ud),document.addEventListener("keydown",S3)),Hd++}),ni(()=>{Hd--,Hd<=0&&(document.removeEventListener("mousedown",Ud),document.removeEventListener("touchstart",Ud),document.removeEventListener("keydown",S3))}),{focusReason:lb,lastUserFocusTimestamp:Lm,lastAutomatedFocusTimestamp:cb}),Wd=t=>new CustomEvent(AF,{...PF,detail:t}),DF=et({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[y3,b3,"focusin","focusout","focusout-prevented","release-requested"],setup(t,{emit:r}){const e=ze();let n,o;const{focusReason:s}=NF();Ej(m=>{t.trapped&&!i.paused&&r("release-requested",m)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},c=m=>{if(!t.loop&&!t.trapped||i.paused)return;const{key:p,altKey:g,ctrlKey:v,metaKey:b,currentTarget:_,shiftKey:E}=m,{loop:O}=t,j=p===Rn.tab&&!g&&!v&&!b,W=document.activeElement;if(j&&W){const z=_,[U,K]=OF(z);if(U&&K){if(!E&&W===K){const G=Wd({focusReason:s.value});r("focusout-prevented",G),G.defaultPrevented||(m.preventDefault(),O&&Da(U,!0))}else if(E&&[U,z].includes(W)){const G=Wd({focusReason:s.value});r("focusout-prevented",G),G.defaultPrevented||(m.preventDefault(),O&&Da(K,!0))}}else if(W===z){const G=Wd({focusReason:s.value});r("focusout-prevented",G),G.defaultPrevented||m.preventDefault()}}};pn(Z5,{focusTrapRef:e,onKeydown:c}),St(()=>t.focusTrapEl,m=>{m&&(e.value=m)},{immediate:!0}),St([e],([m],[p])=>{m&&(m.addEventListener("keydown",c),m.addEventListener("focusin",h),m.addEventListener("focusout",u)),p&&(p.removeEventListener("keydown",c),p.removeEventListener("focusin",h),p.removeEventListener("focusout",u))});const l=m=>{r(y3,m)},a=m=>r(b3,m),h=m=>{const p=re(e);if(!p)return;const g=m.target,v=m.relatedTarget,b=g&&p.contains(g);t.trapped||v&&p.contains(v)||(n=v),b&&r("focusin",m),!i.paused&&t.trapped&&(b?o=g:Da(o,!0))},u=m=>{const p=re(e);if(!(i.paused||!p))if(t.trapped){const g=m.relatedTarget;!hc(g)&&!p.contains(g)&&setTimeout(()=>{if(!i.paused&&t.trapped){const v=Wd({focusReason:s.value});r("focusout-prevented",v),v.defaultPrevented||Da(o,!0)}},0)}else{const g=m.target;g&&p.contains(g)||r("focusout",m)}};async function f(){await jr();const m=re(e);if(m){x3.push(i);const p=m.contains(document.activeElement)?n:document.activeElement;if(n=p,!m.contains(p)){const v=new Event(x0,v3);m.addEventListener(x0,l),m.dispatchEvent(v),v.defaultPrevented||jr(()=>{let b=t.focusStartEl;mr(b)||(Da(b),document.activeElement!==b&&(b="first")),b==="first"&&$F(X5(m),!0),(document.activeElement===p||b==="container")&&Da(m)})}}}function d(){const m=re(e);if(m){m.removeEventListener(x0,l);const p=new CustomEvent(S0,{...v3,detail:{focusReason:s.value}});m.addEventListener(S0,a),m.dispatchEvent(p),!p.defaultPrevented&&(s.value=="keyboard"||!LF()||m.contains(document.activeElement))&&Da(n??document.body),m.removeEventListener(S0,a),x3.remove(i)}}return ln(()=>{t.trapped&&f(),St(()=>t.trapped,m=>{m?f():d()})}),ni(()=>{t.trapped&&d()}),{onKeydown:c}}});function jF(t,r,e,n,o,s){return kt(t.$slots,"default",{handleKeydown:t.onKeydown})}var Y5=lr(DF,[["render",jF],["__file","focus-trap.vue"]]);const BF=["fixed","absolute"],FF=tr({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Pt(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Tf,default:"bottom"},popperOptions:{type:Pt(Object),default:()=>({})},strategy:{type:String,values:BF,default:"absolute"}}),J5=tr({...FF,id:String,style:{type:Pt([String,Array,Object])},className:{type:Pt([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:Pt([String,Array,Object])},popperStyle:{type:Pt([String,Array,Object])},referenceEl:{type:Pt(Object)},triggerTargetEl:{type:Pt(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...ml(["ariaLabel"])}),zF={mouseenter:t=>t instanceof MouseEvent,mouseleave:t=>t instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},VF=(t,r=[])=>{const{placement:e,strategy:n,popperOptions:o}=t,s={placement:e,strategy:n,...o,modifiers:[...UF(t),...r]};return WF(s,o==null?void 0:o.modifiers),s},HF=t=>{if(_n)return na(t)};function UF(t){const{offset:r,gpuAcceleration:e,fallbackPlacements:n}=t;return[{name:"offset",options:{offset:[0,r??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:n}},{name:"computeStyles",options:{gpuAcceleration:e}}]}function WF(t,r){r&&(t.modifiers=[...t.modifiers,...r??[]])}const qF=0,GF=t=>{const{popperInstanceRef:r,contentRef:e,triggerRef:n,role:o}=Ft(ab,void 0),s=ze(),i=ze(),c=_e(()=>({name:"eventListeners",enabled:!!t.visible})),l=_e(()=>{var v;const b=re(s),_=(v=re(i))!=null?v:qF;return{name:"arrow",enabled:!e5(b),options:{element:b,padding:_}}}),a=_e(()=>({onFirstUpdate:()=>{m()},...VF(t,[re(l),re(c)])})),h=_e(()=>HF(t.referenceEl)||re(n)),{attributes:u,state:f,styles:d,update:m,forceUpdate:p,instanceRef:g}=Sj(h,e,a);return St(g,v=>r.value=v),ln(()=>{St(()=>{var v;return(v=re(h))==null?void 0:v.getBoundingClientRect()},()=>{m()})}),{attributes:u,arrowRef:s,contentRef:e,instanceRef:g,state:f,styles:d,role:o,forceUpdate:p,update:m}},KF=(t,{attributes:r,styles:e,role:n})=>{const{nextZIndex:o}=ib(),s=zt("popper"),i=_e(()=>re(r).popper),c=ze(rn(t.zIndex)?t.zIndex:o()),l=_e(()=>[s.b(),s.is("pure",t.pure),s.is(t.effect),t.popperClass]),a=_e(()=>[{zIndex:re(c)},re(e).popper,t.popperStyle||{}]),h=_e(()=>n.value==="dialog"?"false":void 0),u=_e(()=>re(e).arrow||{});return{ariaModal:h,arrowStyle:u,contentAttrs:i,contentClass:l,contentStyle:a,contentZIndex:c,updateZIndex:()=>{c.value=rn(t.zIndex)?t.zIndex:o()}}},ZF=(t,r)=>{const e=ze(!1),n=ze();return{focusStartRef:n,trapped:e,onFocusAfterReleased:a=>{var h;((h=a.detail)==null?void 0:h.focusReason)!=="pointer"&&(n.value="first",r("blur"))},onFocusAfterTrapped:()=>{r("focus")},onFocusInTrap:a=>{t.visible&&!e.value&&(a.target&&(n.value=a.target),e.value=!0)},onFocusoutPrevented:a=>{t.trapping||(a.detail.focusReason==="pointer"&&a.preventDefault(),e.value=!1)},onReleaseRequested:()=>{e.value=!1,r("close")}}},XF=et({name:"ElPopperContent"}),YF=et({...XF,props:J5,emits:zF,setup(t,{expose:r,emit:e}){const n=t,{focusStartRef:o,trapped:s,onFocusAfterReleased:i,onFocusAfterTrapped:c,onFocusInTrap:l,onFocusoutPrevented:a,onReleaseRequested:h}=ZF(n,e),{attributes:u,arrowRef:f,contentRef:d,styles:m,instanceRef:p,role:g,update:v}=GF(n),{ariaModal:b,arrowStyle:_,contentAttrs:E,contentClass:O,contentStyle:j,updateZIndex:W}=KF(n,{styles:m,attributes:u,role:g}),z=Ft(pc,void 0),U=ze();pn(U5,{arrowStyle:_,arrowRef:f,arrowOffset:U}),z&&(z.addInputId||z.removeInputId)&&pn(pc,{...z,addInputId:qn,removeInputId:qn});let K;const Y=(R=!0)=>{v(),R&&W()},G=()=>{Y(!1),n.visible&&n.focusOnShow?s.value=!0:n.visible===!1&&(s.value=!1)};return ln(()=>{St(()=>n.triggerTargetEl,(R,D)=>{K==null||K(),K=void 0;const k=re(R||d.value),x=re(D||d.value);fc(k)&&(K=St([g,()=>n.ariaLabel,b,()=>n.id],S=>{["role","aria-label","aria-modal","id"].forEach((C,T)=>{hc(S[T])?k.removeAttribute(C):k.setAttribute(C,S[T])})},{immediate:!0})),x!==k&&fc(x)&&["role","aria-label","aria-modal","id"].forEach(S=>{x.removeAttribute(S)})},{immediate:!0}),St(()=>n.visible,G,{immediate:!0})}),ni(()=>{K==null||K(),K=void 0}),r({popperContentRef:d,popperInstanceRef:p,updatePopper:Y,contentStyle:j}),(R,D)=>(Se(),Ne("div",Bi({ref_key:"contentRef",ref:d},re(E),{style:re(j),class:re(O),tabindex:"-1",onMouseenter:D[0]||(D[0]=k=>R.$emit("mouseenter",k)),onMouseleave:D[1]||(D[1]=k=>R.$emit("mouseleave",k))}),[He(re(Y5),{trapped:re(s),"trap-on-focus-in":!0,"focus-trap-el":re(d),"focus-start-el":re(o),onFocusAfterTrapped:re(c),onFocusAfterReleased:re(i),onFocusin:re(l),onFocusoutPrevented:re(a),onReleaseRequested:re(h)},{default:De(()=>[kt(R.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var JF=lr(YF,[["__file","content.vue"]]);const QF=Zn(bF),ub=Symbol("elTooltip"),Nm=tr({...Pj,...J5,appendTo:{type:Pt([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,visible:{type:Pt(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...ml(["ariaLabel"])}),Q5=tr({...K5,disabled:Boolean,trigger:{type:Pt([String,Array]),default:"hover"},triggerKeys:{type:Pt(Array),default:()=>[Rn.enter,Rn.space]}}),{useModelToggleProps:ez,useModelToggleEmits:tz,useModelToggle:rz}=v5("visible"),nz=tr({...W5,...ez,...Nm,...Q5,...q5,showArrow:{type:Boolean,default:!0}}),iz=[...tz,"before-show","before-hide","show","hide","open","close"],oz=(t,r)=>Et(t)?t.includes(r):t===r,zc=(t,r,e)=>n=>{oz(re(t),r)&&e(n)},sz=et({name:"ElTooltipTrigger"}),az=et({...sz,props:Q5,setup(t,{expose:r}){const e=t,n=zt("tooltip"),{controlled:o,id:s,open:i,onOpen:c,onClose:l,onToggle:a}=Ft(ub,void 0),h=ze(null),u=()=>{if(re(o)||e.disabled)return!0},f=Po(e,"trigger"),d=ta(u,zc(f,"hover",c)),m=ta(u,zc(f,"hover",l)),p=ta(u,zc(f,"click",E=>{E.button===0&&a(E)})),g=ta(u,zc(f,"focus",c)),v=ta(u,zc(f,"focus",l)),b=ta(u,zc(f,"contextmenu",E=>{E.preventDefault(),a(E)})),_=ta(u,E=>{const{code:O}=E;e.triggerKeys.includes(O)&&(E.preventDefault(),a(E))});return r({triggerRef:h}),(E,O)=>(Se(),nt(re(TF),{id:re(s),"virtual-ref":E.virtualRef,open:re(i),"virtual-triggering":E.virtualTriggering,class:Ue(re(n).e("trigger")),onBlur:re(v),onClick:re(p),onContextmenu:re(b),onFocus:re(g),onMouseenter:re(d),onMouseleave:re(m),onKeydown:re(_)},{default:De(()=>[kt(E.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var lz=lr(az,[["__file","trigger.vue"]]);const cz=et({name:"ElTooltipContent",inheritAttrs:!1}),uz=et({...cz,props:Nm,setup(t,{expose:r}){const e=t,{selector:n}=O5(),o=zt("tooltip"),s=ze(null),i=ze(!1),{controlled:c,id:l,open:a,trigger:h,onClose:u,onOpen:f,onShow:d,onHide:m,onBeforeShow:p,onBeforeHide:g}=Ft(ub,void 0),v=_e(()=>e.transition||`${o.namespace.value}-fade-in-linear`),b=_e(()=>e.persistent);ni(()=>{i.value=!0});const _=_e(()=>re(b)?!0:re(a)),E=_e(()=>e.disabled?!1:re(a)),O=_e(()=>e.appendTo||n.value),j=_e(()=>{var S;return(S=e.style)!=null?S:{}}),W=_e(()=>!re(a)),z=()=>{m()},U=()=>{if(re(c))return!0},K=ta(U,()=>{e.enterable&&re(h)==="hover"&&f()}),Y=ta(U,()=>{re(h)==="hover"&&u()}),G=()=>{var S,C;(C=(S=s.value)==null?void 0:S.updatePopper)==null||C.call(S),p==null||p()},R=()=>{g==null||g()},D=()=>{d(),x=oO(_e(()=>{var S;return(S=s.value)==null?void 0:S.popperContentRef}),()=>{if(re(c))return;re(h)!=="hover"&&u()})},k=()=>{e.virtualTriggering||u()};let x;return St(()=>re(a),S=>{S||x==null||x()},{flush:"post"}),St(()=>e.content,()=>{var S,C;(C=(S=s.value)==null?void 0:S.updatePopper)==null||C.call(S)}),r({contentRef:s}),(S,C)=>(Se(),nt(i6,{disabled:!S.teleported,to:re(O)},[He(os,{name:re(v),onAfterLeave:z,onBeforeEnter:G,onAfterEnter:D,onBeforeLeave:R},{default:De(()=>[re(_)?bn((Se(),nt(re(JF),Bi({key:0,id:re(l),ref_key:"contentRef",ref:s},S.$attrs,{"aria-label":S.ariaLabel,"aria-hidden":re(W),"boundaries-padding":S.boundariesPadding,"fallback-placements":S.fallbackPlacements,"gpu-acceleration":S.gpuAcceleration,offset:S.offset,placement:S.placement,"popper-options":S.popperOptions,strategy:S.strategy,effect:S.effect,enterable:S.enterable,pure:S.pure,"popper-class":S.popperClass,"popper-style":[S.popperStyle,re(j)],"reference-el":S.referenceEl,"trigger-target-el":S.triggerTargetEl,visible:re(E),"z-index":S.zIndex,onMouseenter:re(K),onMouseleave:re(Y),onBlur:k,onClose:re(u)}),{default:De(()=>[i.value?at("v-if",!0):kt(S.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[Qi,re(E)]]):at("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var hz=lr(uz,[["__file","content.vue"]]);const fz=["innerHTML"],dz={key:1},pz=et({name:"ElTooltip"}),mz=et({...pz,props:nz,emits:iz,setup(t,{expose:r,emit:e}){const n=t;Aj();const o=dc(),s=ze(),i=ze(),c=()=>{var v;const b=re(s);b&&((v=b.popperInstanceRef)==null||v.update())},l=ze(!1),a=ze(),{show:h,hide:u,hasUpdateHandler:f}=rz({indicator:l,toggleReason:a}),{onOpen:d,onClose:m}=Mj({showAfter:Po(n,"showAfter"),hideAfter:Po(n,"hideAfter"),autoClose:Po(n,"autoClose"),open:h,close:u}),p=_e(()=>al(n.visible)&&!f.value);pn(ub,{controlled:p,id:o,open:_f(l),trigger:Po(n,"trigger"),onOpen:v=>{d(v)},onClose:v=>{m(v)},onToggle:v=>{re(l)?m(v):d(v)},onShow:()=>{e("show",a.value)},onHide:()=>{e("hide",a.value)},onBeforeShow:()=>{e("before-show",a.value)},onBeforeHide:()=>{e("before-hide",a.value)},updatePopper:c}),St(()=>n.disabled,v=>{v&&l.value&&(l.value=!1)});const g=v=>{var b,_;const E=(_=(b=i.value)==null?void 0:b.contentRef)==null?void 0:_.popperContentRef,O=(v==null?void 0:v.relatedTarget)||document.activeElement;return E&&E.contains(O)};return Ey(()=>l.value&&u()),r({popperRef:s,contentRef:i,isFocusInsideContent:g,updatePopper:c,onOpen:d,onClose:m,hide:u}),(v,b)=>(Se(),nt(re(QF),{ref_key:"popperRef",ref:s,role:v.role},{default:De(()=>[He(lz,{disabled:v.disabled,trigger:v.trigger,"trigger-keys":v.triggerKeys,"virtual-ref":v.virtualRef,"virtual-triggering":v.virtualTriggering},{default:De(()=>[v.$slots.default?kt(v.$slots,"default",{key:0}):at("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),He(hz,{ref_key:"contentRef",ref:i,"aria-label":v.ariaLabel,"boundaries-padding":v.boundariesPadding,content:v.content,disabled:v.disabled,effect:v.effect,enterable:v.enterable,"fallback-placements":v.fallbackPlacements,"hide-after":v.hideAfter,"gpu-acceleration":v.gpuAcceleration,offset:v.offset,persistent:v.persistent,"popper-class":v.popperClass,"popper-style":v.popperStyle,placement:v.placement,"popper-options":v.popperOptions,pure:v.pure,"raw-content":v.rawContent,"reference-el":v.referenceEl,"trigger-target-el":v.triggerTargetEl,"show-after":v.showAfter,strategy:v.strategy,teleported:v.teleported,transition:v.transition,"virtual-triggering":v.virtualTriggering,"z-index":v.zIndex,"append-to":v.appendTo},{default:De(()=>[kt(v.$slots,"content",{},()=>[v.rawContent?(Se(),Ne("span",{key:0,innerHTML:v.content},null,8,fz)):(Se(),Ne("span",dz,Rt(v.content),1))]),v.showArrow?(Se(),nt(re(xF),{key:0,"arrow-offset":v.arrowOffset},null,8,["arrow-offset"])):at("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var gz=lr(mz,[["__file","tooltip.vue"]]);const cl=Zn(gz),e8=Symbol("breadcrumbKey"),vz=tr({separator:{type:String,default:"/"},separatorIcon:{type:Yn}}),yz=["aria-label"],bz=et({name:"ElBreadcrumb"}),_z=et({...bz,props:vz,setup(t){const r=t,{t:e}=Do(),n=zt("breadcrumb"),o=ze();return pn(e8,r),ln(()=>{const s=o.value.querySelectorAll(`.${n.e("item")}`);s.length&&s[s.length-1].setAttribute("aria-current","page")}),(s,i)=>(Se(),Ne("div",{ref_key:"breadcrumb",ref:o,class:Ue(re(n).b()),"aria-label":re(e)("el.breadcrumb.label"),role:"navigation"},[kt(s.$slots,"default")],10,yz))}});var wz=lr(_z,[["__file","breadcrumb.vue"]]);const xz=tr({to:{type:Pt([String,Object]),default:""},replace:{type:Boolean,default:!1}}),Sz=et({name:"ElBreadcrumbItem"}),Cz=et({...Sz,props:xz,setup(t){const r=t,e=an(),n=Ft(e8,void 0),o=zt("breadcrumb"),s=e.appContext.config.globalProperties.$router,i=ze(),c=()=>{!r.to||!s||(r.replace?s.replace(r.to):s.push(r.to))};return(l,a)=>{var h,u;return Se(),Ne("span",{class:Ue(re(o).e("item"))},[qe("span",{ref_key:"link",ref:i,class:Ue([re(o).e("inner"),re(o).is("link",!!l.to)]),role:"link",onClick:c},[kt(l.$slots,"default")],2),(h=re(n))!=null&&h.separatorIcon?(Se(),nt(re(en),{key:0,class:Ue(re(o).e("separator"))},{default:De(()=>[(Se(),nt(on(re(n).separatorIcon)))]),_:1},8,["class"])):(Se(),Ne("span",{key:1,class:Ue(re(o).e("separator")),role:"presentation"},Rt((u=re(n))==null?void 0:u.separator),3))],2)}}});var t8=lr(Cz,[["__file","breadcrumb-item.vue"]]);const kz=Zn(wz,{BreadcrumbItem:t8}),Ez=No(t8),r8=Symbol("buttonGroupContextKey"),Tz=(t,r)=>{Ga({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},_e(()=>t.type==="text"));const e=Ft(r8,void 0),n=Pf("button"),{form:o}=_c(),s=ua(_e(()=>e==null?void 0:e.size)),i=$m(),c=ze(),l=dl(),a=_e(()=>t.type||(e==null?void 0:e.type)||""),h=_e(()=>{var m,p,g;return(g=(p=t.autoInsertSpace)!=null?p:(m=n.value)==null?void 0:m.autoInsertSpace)!=null?g:!1}),u=_e(()=>t.tag==="button"?{ariaDisabled:i.value||t.loading,disabled:i.value||t.loading,autofocus:t.autofocus,type:t.nativeType}:{}),f=_e(()=>{var m;const p=(m=l.default)==null?void 0:m.call(l);if(h.value&&(p==null?void 0:p.length)===1){const g=p[0];if((g==null?void 0:g.type)===ku){const v=g.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(v.trim())}}return!1});return{_disabled:i,_size:s,_type:a,_ref:c,_props:u,shouldAddSpace:f,handleClick:m=>{t.nativeType==="reset"&&(o==null||o.resetFields()),r("click",m)}}},Az=["default","primary","success","warning","info","danger","text",""],Pz=["button","submit","reset"],Ev=tr({size:Pu,disabled:Boolean,type:{type:String,values:Az,default:""},icon:{type:Yn},nativeType:{type:String,values:Pz,default:"button"},loading:Boolean,loadingIcon:{type:Yn,default:()=>u5},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:Pt([String,Object]),default:"button"}}),Mz={click:t=>t instanceof MouseEvent};function pi(t,r){Oz(t)&&(t="100%");var e=Rz(t);return t=r===360?t:Math.min(r,Math.max(0,parseFloat(t))),e&&(t=parseInt(String(t*r),10)/100),Math.abs(t-r)<1e-6?1:(r===360?t=(t<0?t%r+r:t%r)/parseFloat(String(r)):t=t%r/parseFloat(String(r)),t)}function qd(t){return Math.min(1,Math.max(0,t))}function Oz(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function Rz(t){return typeof t=="string"&&t.indexOf("%")!==-1}function n8(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Gd(t){return t<=1?"".concat(Number(t)*100,"%"):t}function ic(t){return t.length===1?"0"+t:String(t)}function Iz(t,r,e){return{r:pi(t,255)*255,g:pi(r,255)*255,b:pi(e,255)*255}}function C3(t,r,e){t=pi(t,255),r=pi(r,255),e=pi(e,255);var n=Math.max(t,r,e),o=Math.min(t,r,e),s=0,i=0,c=(n+o)/2;if(n===o)i=0,s=0;else{var l=n-o;switch(i=c>.5?l/(2-n-o):l/(n+o),n){case t:s=(r-e)/l+(r1&&(e-=1),e<1/6?t+(r-t)*(6*e):e<1/2?r:e<2/3?t+(r-t)*(2/3-e)*6:t}function $z(t,r,e){var n,o,s;if(t=pi(t,360),r=pi(r,100),e=pi(e,100),r===0)o=e,s=e,n=e;else{var i=e<.5?e*(1+r):e+r-e*r,c=2*e-i;n=C0(c,i,t+1/3),o=C0(c,i,t),s=C0(c,i,t-1/3)}return{r:n*255,g:o*255,b:s*255}}function k3(t,r,e){t=pi(t,255),r=pi(r,255),e=pi(e,255);var n=Math.max(t,r,e),o=Math.min(t,r,e),s=0,i=n,c=n-o,l=n===0?0:c/n;if(n===o)s=0;else{switch(n){case t:s=(r-e)/c+(r>16,g:(t&65280)>>8,b:t&255}}var Tv={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Bz(t){var r={r:0,g:0,b:0},e=1,n=null,o=null,s=null,i=!1,c=!1;return typeof t=="string"&&(t=Vz(t)),typeof t=="object"&&(Ys(t.r)&&Ys(t.g)&&Ys(t.b)?(r=Iz(t.r,t.g,t.b),i=!0,c=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Ys(t.h)&&Ys(t.s)&&Ys(t.v)?(n=Gd(t.s),o=Gd(t.v),r=Lz(t.h,n,o),i=!0,c="hsv"):Ys(t.h)&&Ys(t.s)&&Ys(t.l)&&(n=Gd(t.s),s=Gd(t.l),r=$z(t.h,n,s),i=!0,c="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(e=t.a)),e=n8(e),{ok:i,format:t.format||c,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:e}}var Fz="[-\\+]?\\d+%?",zz="[-\\+]?\\d*\\.\\d+%?",Ka="(?:".concat(zz,")|(?:").concat(Fz,")"),k0="[\\s|\\(]+(".concat(Ka,")[,|\\s]+(").concat(Ka,")[,|\\s]+(").concat(Ka,")\\s*\\)?"),E0="[\\s|\\(]+(".concat(Ka,")[,|\\s]+(").concat(Ka,")[,|\\s]+(").concat(Ka,")[,|\\s]+(").concat(Ka,")\\s*\\)?"),Zo={CSS_UNIT:new RegExp(Ka),rgb:new RegExp("rgb"+k0),rgba:new RegExp("rgba"+E0),hsl:new RegExp("hsl"+k0),hsla:new RegExp("hsla"+E0),hsv:new RegExp("hsv"+k0),hsva:new RegExp("hsva"+E0),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Vz(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var r=!1;if(Tv[t])t=Tv[t],r=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var e=Zo.rgb.exec(t);return e?{r:e[1],g:e[2],b:e[3]}:(e=Zo.rgba.exec(t),e?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=Zo.hsl.exec(t),e?{h:e[1],s:e[2],l:e[3]}:(e=Zo.hsla.exec(t),e?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=Zo.hsv.exec(t),e?{h:e[1],s:e[2],v:e[3]}:(e=Zo.hsva.exec(t),e?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=Zo.hex8.exec(t),e?{r:co(e[1]),g:co(e[2]),b:co(e[3]),a:T3(e[4]),format:r?"name":"hex8"}:(e=Zo.hex6.exec(t),e?{r:co(e[1]),g:co(e[2]),b:co(e[3]),format:r?"name":"hex"}:(e=Zo.hex4.exec(t),e?{r:co(e[1]+e[1]),g:co(e[2]+e[2]),b:co(e[3]+e[3]),a:T3(e[4]+e[4]),format:r?"name":"hex8"}:(e=Zo.hex3.exec(t),e?{r:co(e[1]+e[1]),g:co(e[2]+e[2]),b:co(e[3]+e[3]),format:r?"name":"hex"}:!1)))))))))}function Ys(t){return!!Zo.CSS_UNIT.exec(String(t))}var i8=function(){function t(r,e){r===void 0&&(r=""),e===void 0&&(e={});var n;if(r instanceof t)return r;typeof r=="number"&&(r=jz(r)),this.originalInput=r;var o=Bz(r);this.originalInput=r,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=e.format)!==null&&n!==void 0?n:o.format,this.gradientType=e.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var r=this.toRgb();return(r.r*299+r.g*587+r.b*114)/1e3},t.prototype.getLuminance=function(){var r=this.toRgb(),e,n,o,s=r.r/255,i=r.g/255,c=r.b/255;return s<=.03928?e=s/12.92:e=Math.pow((s+.055)/1.055,2.4),i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),c<=.03928?o=c/12.92:o=Math.pow((c+.055)/1.055,2.4),.2126*e+.7152*n+.0722*o},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(r){return this.a=n8(r),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var r=this.toHsl().s;return r===0},t.prototype.toHsv=function(){var r=k3(this.r,this.g,this.b);return{h:r.h*360,s:r.s,v:r.v,a:this.a}},t.prototype.toHsvString=function(){var r=k3(this.r,this.g,this.b),e=Math.round(r.h*360),n=Math.round(r.s*100),o=Math.round(r.v*100);return this.a===1?"hsv(".concat(e,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(e,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var r=C3(this.r,this.g,this.b);return{h:r.h*360,s:r.s,l:r.l,a:this.a}},t.prototype.toHslString=function(){var r=C3(this.r,this.g,this.b),e=Math.round(r.h*360),n=Math.round(r.s*100),o=Math.round(r.l*100);return this.a===1?"hsl(".concat(e,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(e,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(r){return r===void 0&&(r=!1),E3(this.r,this.g,this.b,r)},t.prototype.toHexString=function(r){return r===void 0&&(r=!1),"#"+this.toHex(r)},t.prototype.toHex8=function(r){return r===void 0&&(r=!1),Nz(this.r,this.g,this.b,this.a,r)},t.prototype.toHex8String=function(r){return r===void 0&&(r=!1),"#"+this.toHex8(r)},t.prototype.toHexShortString=function(r){return r===void 0&&(r=!1),this.a===1?this.toHexString(r):this.toHex8String(r)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var r=Math.round(this.r),e=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(r,", ").concat(e,", ").concat(n,")"):"rgba(".concat(r,", ").concat(e,", ").concat(n,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var r=function(e){return"".concat(Math.round(pi(e,255)*100),"%")};return{r:r(this.r),g:r(this.g),b:r(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var r=function(e){return Math.round(pi(e,255)*100)};return this.a===1?"rgb(".concat(r(this.r),"%, ").concat(r(this.g),"%, ").concat(r(this.b),"%)"):"rgba(".concat(r(this.r),"%, ").concat(r(this.g),"%, ").concat(r(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var r="#"+E3(this.r,this.g,this.b,!1),e=0,n=Object.entries(Tv);e=0,s=!e&&o&&(r.startsWith("hex")||r==="name");return s?r==="name"&&this.a===0?this.toName():this.toRgbString():(r==="rgb"&&(n=this.toRgbString()),r==="prgb"&&(n=this.toPercentageRgbString()),(r==="hex"||r==="hex6")&&(n=this.toHexString()),r==="hex3"&&(n=this.toHexString(!0)),r==="hex4"&&(n=this.toHex8String(!0)),r==="hex8"&&(n=this.toHex8String()),r==="name"&&(n=this.toName()),r==="hsl"&&(n=this.toHslString()),r==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(r){r===void 0&&(r=10);var e=this.toHsl();return e.l+=r/100,e.l=qd(e.l),new t(e)},t.prototype.brighten=function(r){r===void 0&&(r=10);var e=this.toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(255*-(r/100)))),e.g=Math.max(0,Math.min(255,e.g-Math.round(255*-(r/100)))),e.b=Math.max(0,Math.min(255,e.b-Math.round(255*-(r/100)))),new t(e)},t.prototype.darken=function(r){r===void 0&&(r=10);var e=this.toHsl();return e.l-=r/100,e.l=qd(e.l),new t(e)},t.prototype.tint=function(r){return r===void 0&&(r=10),this.mix("white",r)},t.prototype.shade=function(r){return r===void 0&&(r=10),this.mix("black",r)},t.prototype.desaturate=function(r){r===void 0&&(r=10);var e=this.toHsl();return e.s-=r/100,e.s=qd(e.s),new t(e)},t.prototype.saturate=function(r){r===void 0&&(r=10);var e=this.toHsl();return e.s+=r/100,e.s=qd(e.s),new t(e)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(r){var e=this.toHsl(),n=(e.h+r)%360;return e.h=n<0?360+n:n,new t(e)},t.prototype.mix=function(r,e){e===void 0&&(e=50);var n=this.toRgb(),o=new t(r).toRgb(),s=e/100,i={r:(o.r-n.r)*s+n.r,g:(o.g-n.g)*s+n.g,b:(o.b-n.b)*s+n.b,a:(o.a-n.a)*s+n.a};return new t(i)},t.prototype.analogous=function(r,e){r===void 0&&(r=6),e===void 0&&(e=30);var n=this.toHsl(),o=360/e,s=[this];for(n.h=(n.h-(o*r>>1)+720)%360;--r;)n.h=(n.h+o)%360,s.push(new t(n));return s},t.prototype.complement=function(){var r=this.toHsl();return r.h=(r.h+180)%360,new t(r)},t.prototype.monochromatic=function(r){r===void 0&&(r=6);for(var e=this.toHsv(),n=e.h,o=e.s,s=e.v,i=[],c=1/r;r--;)i.push(new t({h:n,s:o,v:s})),s=(s+c)%1;return i},t.prototype.splitcomplement=function(){var r=this.toHsl(),e=r.h;return[this,new t({h:(e+72)%360,s:r.s,l:r.l}),new t({h:(e+216)%360,s:r.s,l:r.l})]},t.prototype.onBackground=function(r){var e=this.toRgb(),n=new t(r).toRgb(),o=e.a+n.a*(1-e.a);return new t({r:(e.r*e.a+n.r*n.a*(1-e.a))/o,g:(e.g*e.a+n.g*n.a*(1-e.a))/o,b:(e.b*e.a+n.b*n.a*(1-e.a))/o,a:o})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(r){for(var e=this.toHsl(),n=e.h,o=[this],s=360/r,i=1;i{let n={};const o=t.color;if(o){const s=new i8(o),i=t.dark?s.tint(20).toString():Ra(s,20);if(t.plain)n=e.cssVarBlock({"bg-color":t.dark?Ra(s,90):s.tint(90).toString(),"text-color":o,"border-color":t.dark?Ra(s,50):s.tint(50).toString(),"hover-text-color":`var(${e.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":i,"active-text-color":`var(${e.cssVarName("color-white")})`,"active-border-color":i}),r.value&&(n[e.cssVarBlockName("disabled-bg-color")]=t.dark?Ra(s,90):s.tint(90).toString(),n[e.cssVarBlockName("disabled-text-color")]=t.dark?Ra(s,50):s.tint(50).toString(),n[e.cssVarBlockName("disabled-border-color")]=t.dark?Ra(s,80):s.tint(80).toString());else{const c=t.dark?Ra(s,30):s.tint(30).toString(),l=s.isDark()?`var(${e.cssVarName("color-white")})`:`var(${e.cssVarName("color-black")})`;if(n=e.cssVarBlock({"bg-color":o,"text-color":l,"border-color":o,"hover-bg-color":c,"hover-text-color":l,"hover-border-color":c,"active-bg-color":i,"active-border-color":i}),r.value){const a=t.dark?Ra(s,50):s.tint(50).toString();n[e.cssVarBlockName("disabled-bg-color")]=a,n[e.cssVarBlockName("disabled-text-color")]=t.dark?"rgba(255, 255, 255, 0.5)":`var(${e.cssVarName("color-white")})`,n[e.cssVarBlockName("disabled-border-color")]=a}}}return n})}const Uz=et({name:"ElButton"}),Wz=et({...Uz,props:Ev,emits:Mz,setup(t,{expose:r,emit:e}){const n=t,o=Hz(n),s=zt("button"),{_ref:i,_size:c,_type:l,_disabled:a,_props:h,shouldAddSpace:u,handleClick:f}=Tz(n,e),d=_e(()=>[s.b(),s.m(l.value),s.m(c.value),s.is("disabled",a.value),s.is("loading",n.loading),s.is("plain",n.plain),s.is("round",n.round),s.is("circle",n.circle),s.is("text",n.text),s.is("link",n.link),s.is("has-bg",n.bg)]);return r({ref:i,size:c,type:l,disabled:a,shouldAddSpace:u}),(m,p)=>(Se(),nt(on(m.tag),Bi({ref_key:"_ref",ref:i},re(h),{class:re(d),style:re(o),onClick:re(f)}),{default:De(()=>[m.loading?(Se(),Ne(Ht,{key:0},[m.$slots.loading?kt(m.$slots,"loading",{key:0}):(Se(),nt(re(en),{key:1,class:Ue(re(s).is("loading"))},{default:De(()=>[(Se(),nt(on(m.loadingIcon)))]),_:1},8,["class"]))],64)):m.icon||m.$slots.icon?(Se(),nt(re(en),{key:1},{default:De(()=>[m.icon?(Se(),nt(on(m.icon),{key:0})):kt(m.$slots,"icon",{key:1})]),_:3})):at("v-if",!0),m.$slots.default?(Se(),Ne("span",{key:2,class:Ue({[re(s).em("text","expand")]:re(u)})},[kt(m.$slots,"default")],2)):at("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var qz=lr(Wz,[["__file","button.vue"]]);const Gz={size:Ev.size,type:Ev.type},Kz=et({name:"ElButtonGroup"}),Zz=et({...Kz,props:Gz,setup(t){const r=t;pn(r8,sn({size:Po(r,"size"),type:Po(r,"type")}));const e=zt("button");return(n,o)=>(Se(),Ne("div",{class:Ue(`${re(e).b("group")}`)},[kt(n.$slots,"default")],2))}});var o8=lr(Zz,[["__file","button-group.vue"]]);const Gn=Zn(qz,{ButtonGroup:o8});No(o8);var ur=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function s8(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Xz(t){if(t.__esModule)return t;var r=t.default;if(typeof r=="function"){var e=function n(){return this instanceof n?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};e.prototype=r.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),e}const ja=new Map;let A3;_n&&(document.addEventListener("mousedown",t=>A3=t),document.addEventListener("mouseup",t=>{for(const r of ja.values())for(const{documentHandler:e}of r)e(t,A3)}));function P3(t,r){let e=[];return Array.isArray(r.arg)?e=r.arg:fc(r.arg)&&e.push(r.arg),function(n,o){const s=r.instance.popperRef,i=n.target,c=o==null?void 0:o.target,l=!r||!r.instance,a=!i||!c,h=t.contains(i)||t.contains(c),u=t===i,f=e.length&&e.some(m=>m==null?void 0:m.contains(i))||e.length&&e.includes(c),d=s&&(s.contains(i)||s.contains(c));l||a||h||u||f||d||r.value(n,o)}}const hb={beforeMount(t,r){ja.has(t)||ja.set(t,[]),ja.get(t).push({documentHandler:P3(t,r),bindingFn:r.value})},updated(t,r){ja.has(t)||ja.set(t,[]);const e=ja.get(t),n=e.findIndex(s=>s.bindingFn===r.oldValue),o={documentHandler:P3(t,r),bindingFn:r.value};n>=0?e.splice(n,1,o):e.push(o)},unmounted(t){ja.delete(t)}},a8={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:Pu,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...ml(["ariaControls"])},l8={[Ln]:t=>mr(t)||rn(t)||al(t),change:t=>mr(t)||rn(t)||al(t)},Ou=Symbol("checkboxGroupContextKey"),Yz=({model:t,isChecked:r})=>{const e=Ft(Ou,void 0),n=_e(()=>{var s,i;const c=(s=e==null?void 0:e.max)==null?void 0:s.value,l=(i=e==null?void 0:e.min)==null?void 0:i.value;return!sl(c)&&t.value.length>=c&&!r.value||!sl(l)&&t.value.length<=l&&r.value});return{isDisabled:$m(_e(()=>(e==null?void 0:e.disabled.value)||n.value)),isLimitDisabled:n}},Jz=(t,{model:r,isLimitExceeded:e,hasOwnLabel:n,isDisabled:o,isLabeledByFormItem:s})=>{const i=Ft(Ou,void 0),{formItem:c}=_c(),{emit:l}=an();function a(m){var p,g,v,b;return[!0,t.trueValue,t.trueLabel].includes(m)?(g=(p=t.trueValue)!=null?p:t.trueLabel)!=null?g:!0:(b=(v=t.falseValue)!=null?v:t.falseLabel)!=null?b:!1}function h(m,p){l("change",a(m),p)}function u(m){if(e.value)return;const p=m.target;l("change",a(p.checked),m)}async function f(m){e.value||!n.value&&!o.value&&s.value&&(m.composedPath().some(v=>v.tagName==="LABEL")||(r.value=a([!1,t.falseValue,t.falseLabel].includes(r.value)),await jr(),h(r.value,m)))}const d=_e(()=>(i==null?void 0:i.validateEvent)||t.validateEvent);return St(()=>t.modelValue,()=>{d.value&&(c==null||c.validate("change").catch(m=>void 0))}),{handleChange:u,onClickRoot:f}},Qz=t=>{const r=ze(!1),{emit:e}=an(),n=Ft(Ou,void 0),o=_e(()=>sl(n)===!1),s=ze(!1),i=_e({get(){var c,l;return o.value?(c=n==null?void 0:n.modelValue)==null?void 0:c.value:(l=t.modelValue)!=null?l:r.value},set(c){var l,a;o.value&&Et(c)?(s.value=((l=n==null?void 0:n.max)==null?void 0:l.value)!==void 0&&c.length>(n==null?void 0:n.max.value)&&c.length>i.value.length,s.value===!1&&((a=n==null?void 0:n.changeEvent)==null||a.call(n,c))):(e(Ln,c),r.value=c)}});return{model:i,isGroup:o,isLimitExceeded:s}},eV=(t,r,{model:e})=>{const n=Ft(Ou,void 0),o=ze(!1),s=_e(()=>vv(t.value)?t.label:t.value),i=_e(()=>{const h=e.value;return al(h)?h:Et(h)?dr(s.value)?h.map(Mr).some(u=>ol(u,s.value)):h.map(Mr).includes(s.value):h!=null?h===t.trueValue||h===t.trueLabel:!!h}),c=ua(_e(()=>{var h;return(h=n==null?void 0:n.size)==null?void 0:h.value}),{prop:!0}),l=ua(_e(()=>{var h;return(h=n==null?void 0:n.size)==null?void 0:h.value})),a=_e(()=>!!r.default||!vv(s.value));return{checkboxButtonSize:c,isChecked:i,isFocused:o,checkboxSize:l,hasOwnLabel:a,actualValue:s}},c8=(t,r)=>{const{formItem:e}=_c(),{model:n,isGroup:o,isLimitExceeded:s}=Qz(t),{isFocused:i,isChecked:c,checkboxButtonSize:l,checkboxSize:a,hasOwnLabel:h,actualValue:u}=eV(t,r,{model:n}),{isDisabled:f}=Yz({model:n,isChecked:c}),{inputId:d,isLabeledByFormItem:m}=Mf(t,{formItemContext:e,disableIdGeneration:h,disableIdManagement:o}),{handleChange:p,onClickRoot:g}=Jz(t,{model:n,isLimitExceeded:s,hasOwnLabel:h,isDisabled:f,isLabeledByFormItem:m});return(()=>{function b(){var _,E;Et(n.value)&&!n.value.includes(u.value)?n.value.push(u.value):n.value=(E=(_=t.trueValue)!=null?_:t.trueLabel)!=null?E:!0}t.checked&&b()})(),Ga({from:"controls",replacement:"aria-controls",version:"2.8.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},_e(()=>!!t.controls)),Ga({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},_e(()=>o.value&&vv(t.value))),Ga({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},_e(()=>!!t.trueLabel)),Ga({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},_e(()=>!!t.falseLabel)),{inputId:d,isLabeledByFormItem:m,isChecked:c,isDisabled:f,isFocused:i,checkboxButtonSize:l,checkboxSize:a,hasOwnLabel:h,model:n,actualValue:u,handleChange:p,onClickRoot:g}},tV=["id","indeterminate","name","tabindex","disabled","true-value","false-value"],rV=["id","indeterminate","disabled","value","name","tabindex"],nV=et({name:"ElCheckbox"}),iV=et({...nV,props:a8,emits:l8,setup(t){const r=t,e=dl(),{inputId:n,isLabeledByFormItem:o,isChecked:s,isDisabled:i,isFocused:c,checkboxSize:l,hasOwnLabel:a,model:h,actualValue:u,handleChange:f,onClickRoot:d}=c8(r,e),m=zt("checkbox"),p=_e(()=>[m.b(),m.m(l.value),m.is("disabled",i.value),m.is("bordered",r.border),m.is("checked",s.value)]),g=_e(()=>[m.e("input"),m.is("disabled",i.value),m.is("checked",s.value),m.is("indeterminate",r.indeterminate),m.is("focus",c.value)]);return(v,b)=>(Se(),nt(on(!re(a)&&re(o)?"span":"label"),{class:Ue(re(p)),"aria-controls":v.indeterminate?v.controls||v.ariaControls:null,onClick:re(d)},{default:De(()=>{var _,E;return[qe("span",{class:Ue(re(g))},[v.trueValue||v.falseValue||v.trueLabel||v.falseLabel?bn((Se(),Ne("input",{key:0,id:re(n),"onUpdate:modelValue":b[0]||(b[0]=O=>Nn(h)?h.value=O:null),class:Ue(re(m).e("original")),type:"checkbox",indeterminate:v.indeterminate,name:v.name,tabindex:v.tabindex,disabled:re(i),"true-value":(_=v.trueValue)!=null?_:v.trueLabel,"false-value":(E=v.falseValue)!=null?E:v.falseLabel,onChange:b[1]||(b[1]=(...O)=>re(f)&&re(f)(...O)),onFocus:b[2]||(b[2]=O=>c.value=!0),onBlur:b[3]||(b[3]=O=>c.value=!1),onClick:b[4]||(b[4]=hn(()=>{},["stop"]))},null,42,tV)),[[Fp,re(h)]]):bn((Se(),Ne("input",{key:1,id:re(n),"onUpdate:modelValue":b[5]||(b[5]=O=>Nn(h)?h.value=O:null),class:Ue(re(m).e("original")),type:"checkbox",indeterminate:v.indeterminate,disabled:re(i),value:re(u),name:v.name,tabindex:v.tabindex,onChange:b[6]||(b[6]=(...O)=>re(f)&&re(f)(...O)),onFocus:b[7]||(b[7]=O=>c.value=!0),onBlur:b[8]||(b[8]=O=>c.value=!1),onClick:b[9]||(b[9]=hn(()=>{},["stop"]))},null,42,rV)),[[Fp,re(h)]]),qe("span",{class:Ue(re(m).e("inner"))},null,2)],2),re(a)?(Se(),Ne("span",{key:0,class:Ue(re(m).e("label"))},[kt(v.$slots,"default"),v.$slots.default?at("v-if",!0):(Se(),Ne(Ht,{key:0},[er(Rt(v.label),1)],64))],2)):at("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var oV=lr(iV,[["__file","checkbox.vue"]]);const sV=["name","tabindex","disabled","true-value","false-value"],aV=["name","tabindex","disabled","value"],lV=et({name:"ElCheckboxButton"}),cV=et({...lV,props:a8,emits:l8,setup(t){const r=t,e=dl(),{isFocused:n,isChecked:o,isDisabled:s,checkboxButtonSize:i,model:c,actualValue:l,handleChange:a}=c8(r,e),h=Ft(Ou,void 0),u=zt("checkbox"),f=_e(()=>{var m,p,g,v;const b=(p=(m=h==null?void 0:h.fill)==null?void 0:m.value)!=null?p:"";return{backgroundColor:b,borderColor:b,color:(v=(g=h==null?void 0:h.textColor)==null?void 0:g.value)!=null?v:"",boxShadow:b?`-1px 0 0 0 ${b}`:void 0}}),d=_e(()=>[u.b("button"),u.bm("button",i.value),u.is("disabled",s.value),u.is("checked",o.value),u.is("focus",n.value)]);return(m,p)=>{var g,v;return Se(),Ne("label",{class:Ue(re(d))},[m.trueValue||m.falseValue||m.trueLabel||m.falseLabel?bn((Se(),Ne("input",{key:0,"onUpdate:modelValue":p[0]||(p[0]=b=>Nn(c)?c.value=b:null),class:Ue(re(u).be("button","original")),type:"checkbox",name:m.name,tabindex:m.tabindex,disabled:re(s),"true-value":(g=m.trueValue)!=null?g:m.trueLabel,"false-value":(v=m.falseValue)!=null?v:m.falseLabel,onChange:p[1]||(p[1]=(...b)=>re(a)&&re(a)(...b)),onFocus:p[2]||(p[2]=b=>n.value=!0),onBlur:p[3]||(p[3]=b=>n.value=!1),onClick:p[4]||(p[4]=hn(()=>{},["stop"]))},null,42,sV)),[[Fp,re(c)]]):bn((Se(),Ne("input",{key:1,"onUpdate:modelValue":p[5]||(p[5]=b=>Nn(c)?c.value=b:null),class:Ue(re(u).be("button","original")),type:"checkbox",name:m.name,tabindex:m.tabindex,disabled:re(s),value:re(l),onChange:p[6]||(p[6]=(...b)=>re(a)&&re(a)(...b)),onFocus:p[7]||(p[7]=b=>n.value=!0),onBlur:p[8]||(p[8]=b=>n.value=!1),onClick:p[9]||(p[9]=hn(()=>{},["stop"]))},null,42,aV)),[[Fp,re(c)]]),m.$slots.default||m.label?(Se(),Ne("span",{key:2,class:Ue(re(u).be("button","inner")),style:tn(re(o)?re(f):void 0)},[kt(m.$slots,"default",{},()=>[er(Rt(m.label),1)])],6)):at("v-if",!0)],2)}}});var u8=lr(cV,[["__file","checkbox-button.vue"]]);const uV=tr({modelValue:{type:Pt(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Pu,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...ml(["ariaLabel"])}),hV={[Ln]:t=>Et(t),change:t=>Et(t)},fV=et({name:"ElCheckboxGroup"}),dV=et({...fV,props:uV,emits:hV,setup(t,{emit:r}){const e=t,n=zt("checkbox"),{formItem:o}=_c(),{inputId:s,isLabeledByFormItem:i}=Mf(e,{formItemContext:o}),c=async a=>{r(Ln,a),await jr(),r("change",a)},l=_e({get(){return e.modelValue},set(a){c(a)}});return pn(Ou,{...r5(nl(e),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:c}),Ga({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-checkbox-group",ref:"https://element-plus.org/en-US/component/checkbox.html"},_e(()=>!!e.label)),St(()=>e.modelValue,()=>{e.validateEvent&&(o==null||o.validate("change").catch(a=>void 0))}),(a,h)=>{var u;return Se(),nt(on(a.tag),{id:re(s),class:Ue(re(n).b("group")),role:"group","aria-label":re(i)?void 0:a.label||a.ariaLabel||"checkbox-group","aria-labelledby":re(i)?(u=re(o))==null?void 0:u.labelId:void 0},{default:De(()=>[kt(a.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var h8=lr(dV,[["__file","checkbox-group.vue"]]);const pV=Zn(oV,{CheckboxButton:u8,CheckboxGroup:h8});No(u8);No(h8);const fb=tr({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:Au},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),mV={close:t=>t instanceof MouseEvent,click:t=>t instanceof MouseEvent},gV=et({name:"ElTag"}),vV=et({...gV,props:fb,emits:mV,setup(t,{emit:r}){const e=t,n=ua(),o=zt("tag"),s=_e(()=>{const{type:l,hit:a,effect:h,closable:u,round:f}=e;return[o.b(),o.is("closable",u),o.m(l||"primary"),o.m(n.value),o.m(h),o.is("hit",a),o.is("round",f)]}),i=l=>{r("close",l)},c=l=>{r("click",l)};return(l,a)=>l.disableTransitions?(Se(),Ne("span",{key:0,class:Ue(re(s)),style:tn({backgroundColor:l.color}),onClick:c},[qe("span",{class:Ue(re(o).e("content"))},[kt(l.$slots,"default")],2),l.closable?(Se(),nt(re(en),{key:0,class:Ue(re(o).e("close")),onClick:hn(i,["stop"])},{default:De(()=>[He(re(du))]),_:1},8,["class","onClick"])):at("v-if",!0)],6)):(Se(),nt(os,{key:1,name:`${re(o).namespace.value}-zoom-in-center`,appear:""},{default:De(()=>[qe("span",{class:Ue(re(s)),style:tn({backgroundColor:l.color}),onClick:c},[qe("span",{class:Ue(re(o).e("content"))},[kt(l.$slots,"default")],2),l.closable?(Se(),nt(re(en),{key:0,class:Ue(re(o).e("close")),onClick:hn(i,["stop"])},{default:De(()=>[He(re(du))]),_:1},8,["class","onClick"])):at("v-if",!0)],6)]),_:3},8,["name"]))}});var yV=lr(vV,[["__file","tag.vue"]]);const f8=Zn(yV),d8=Symbol("rowContextKey"),bV=["start","center","end","space-around","space-between","space-evenly"],_V=["top","middle","bottom"],wV=tr({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:bV,default:"start"},align:{type:String,values:_V}}),xV=et({name:"ElRow"}),SV=et({...xV,props:wV,setup(t){const r=t,e=zt("row"),n=_e(()=>r.gutter);pn(d8,{gutter:n});const o=_e(()=>{const i={};return r.gutter&&(i.marginRight=i.marginLeft=`-${r.gutter/2}px`),i}),s=_e(()=>[e.b(),e.is(`justify-${r.justify}`,r.justify!=="start"),e.is(`align-${r.align}`,!!r.align)]);return(i,c)=>(Se(),nt(on(i.tag),{class:Ue(re(s)),style:tn(re(o))},{default:De(()=>[kt(i.$slots,"default")]),_:3},8,["class","style"]))}});var CV=lr(SV,[["__file","row.vue"]]);const Ki=Zn(CV),kV=tr({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:Pt([Number,Object]),default:()=>mo({})},sm:{type:Pt([Number,Object]),default:()=>mo({})},md:{type:Pt([Number,Object]),default:()=>mo({})},lg:{type:Pt([Number,Object]),default:()=>mo({})},xl:{type:Pt([Number,Object]),default:()=>mo({})}}),EV=et({name:"ElCol"}),TV=et({...EV,props:kV,setup(t){const r=t,{gutter:e}=Ft(d8,{gutter:_e(()=>0)}),n=zt("col"),o=_e(()=>{const i={};return e.value&&(i.paddingLeft=i.paddingRight=`${e.value/2}px`),i}),s=_e(()=>{const i=[];return["span","offset","pull","push"].forEach(a=>{const h=r[a];rn(h)&&(a==="span"?i.push(n.b(`${r[a]}`)):h>0&&i.push(n.b(`${a}-${r[a]}`)))}),["xs","sm","md","lg","xl"].forEach(a=>{rn(r[a])?i.push(n.b(`${a}-${r[a]}`)):dr(r[a])&&Object.entries(r[a]).forEach(([h,u])=>{i.push(h!=="span"?n.b(`${a}-${h}-${u}`):n.b(`${a}-${u}`))})}),e.value&&i.push(n.is("guttered")),[n.b(),i]});return(i,c)=>(Se(),nt(on(i.tag),{class:Ue(re(s)),style:tn(re(o))},{default:De(()=>[kt(i.$slots,"default")]),_:3},8,["class","style"]))}});var AV=lr(TV,[["__file","col.vue"]]);const As=Zn(AV),M3=t=>rn(t)||mr(t)||Et(t),PV=tr({accordion:Boolean,modelValue:{type:Pt([Array,String,Number]),default:()=>mo([])}}),MV={[Ln]:M3,[Tu]:M3},p8=Symbol("collapseContextKey"),OV=(t,r)=>{const e=ze(fu(t.modelValue)),n=s=>{e.value=s;const i=t.accordion?e.value[0]:e.value;r(Ln,i),r(Tu,i)},o=s=>{if(t.accordion)n([e.value[0]===s?"":s]);else{const i=[...e.value],c=i.indexOf(s);c>-1?i.splice(c,1):i.push(s),n(i)}};return St(()=>t.modelValue,()=>e.value=fu(t.modelValue),{deep:!0}),pn(p8,{activeNames:e,handleItemClick:o}),{activeNames:e,setActiveNames:n}},RV=()=>{const t=zt("collapse");return{rootKls:_e(()=>t.b())}},IV=et({name:"ElCollapse"}),$V=et({...IV,props:PV,emits:MV,setup(t,{expose:r,emit:e}){const n=t,{activeNames:o,setActiveNames:s}=OV(n,e),{rootKls:i}=RV();return r({activeNames:o,setActiveNames:s}),(c,l)=>(Se(),Ne("div",{class:Ue(re(i))},[kt(c.$slots,"default")],2))}});var LV=lr($V,[["__file","collapse.vue"]]);const NV=et({name:"ElCollapseTransition"}),DV=et({...NV,setup(t){const r=zt("collapse-transition"),e=o=>{o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom},n={beforeEnter(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.style.height&&(o.dataset.elExistsHeight=o.style.height),o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0},enter(o){requestAnimationFrame(()=>{o.dataset.oldOverflow=o.style.overflow,o.dataset.elExistsHeight?o.style.maxHeight=o.dataset.elExistsHeight:o.scrollHeight!==0?o.style.maxHeight=`${o.scrollHeight}px`:o.style.maxHeight=0,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom,o.style.overflow="hidden"})},afterEnter(o){o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow},enterCancelled(o){e(o)},beforeLeave(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.dataset.oldOverflow=o.style.overflow,o.style.maxHeight=`${o.scrollHeight}px`,o.style.overflow="hidden"},leave(o){o.scrollHeight!==0&&(o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0)},afterLeave(o){e(o)},leaveCancelled(o){e(o)}};return(o,s)=>(Se(),nt(os,Bi({name:re(r).b()},TP(n)),{default:De(()=>[kt(o.$slots,"default")]),_:3},16,["name"]))}});var xp=lr(DV,[["__file","collapse-transition.vue"]]);xp.install=t=>{t.component(xp.name,xp)};const m8=xp,jV=tr({title:{type:String,default:""},name:{type:Pt([String,Number]),default:void 0},disabled:Boolean}),BV=t=>{const r=Ft(p8),{namespace:e}=zt("collapse"),n=ze(!1),o=ze(!1),s=nb(),i=_e(()=>s.current++),c=_e(()=>{var f;return(f=t.name)!=null?f:`${e.value}-id-${s.prefix}-${re(i)}`}),l=_e(()=>r==null?void 0:r.activeNames.value.includes(re(c)));return{focusing:n,id:i,isActive:l,handleFocus:()=>{setTimeout(()=>{o.value?o.value=!1:n.value=!0},50)},handleHeaderClick:()=>{t.disabled||(r==null||r.handleItemClick(re(c)),n.value=!1,o.value=!0)},handleEnterClick:()=>{r==null||r.handleItemClick(re(c))}}},FV=(t,{focusing:r,isActive:e,id:n})=>{const o=zt("collapse"),s=_e(()=>[o.b("item"),o.is("active",re(e)),o.is("disabled",t.disabled)]),i=_e(()=>[o.be("item","header"),o.is("active",re(e)),{focusing:re(r)&&!t.disabled}]),c=_e(()=>[o.be("item","arrow"),o.is("active",re(e))]),l=_e(()=>o.be("item","wrap")),a=_e(()=>o.be("item","content")),h=_e(()=>o.b(`content-${re(n)}`)),u=_e(()=>o.b(`head-${re(n)}`));return{arrowKls:c,headKls:i,rootKls:s,itemWrapperKls:l,itemContentKls:a,scopedContentId:h,scopedHeadId:u}},zV=["id","aria-expanded","aria-controls","aria-describedby","tabindex"],VV=["id","aria-hidden","aria-labelledby"],HV=et({name:"ElCollapseItem"}),UV=et({...HV,props:jV,setup(t,{expose:r}){const e=t,{focusing:n,id:o,isActive:s,handleFocus:i,handleHeaderClick:c,handleEnterClick:l}=BV(e),{arrowKls:a,headKls:h,rootKls:u,itemWrapperKls:f,itemContentKls:d,scopedContentId:m,scopedHeadId:p}=FV(e,{focusing:n,isActive:s,id:o});return r({isActive:s}),(g,v)=>(Se(),Ne("div",{class:Ue(re(u))},[qe("button",{id:re(p),class:Ue(re(h)),"aria-expanded":re(s),"aria-controls":re(m),"aria-describedby":re(m),tabindex:g.disabled?-1:0,type:"button",onClick:v[0]||(v[0]=(...b)=>re(c)&&re(c)(...b)),onKeydown:v[1]||(v[1]=po(hn((...b)=>re(l)&&re(l)(...b),["stop","prevent"]),["space","enter"])),onFocus:v[2]||(v[2]=(...b)=>re(i)&&re(i)(...b)),onBlur:v[3]||(v[3]=b=>n.value=!1)},[kt(g.$slots,"title",{},()=>[er(Rt(g.title),1)]),He(re(en),{class:Ue(re(a))},{default:De(()=>[He(re(Om))]),_:1},8,["class"])],42,zV),He(re(m8),null,{default:De(()=>[bn(qe("div",{id:re(m),role:"region",class:Ue(re(f)),"aria-hidden":!re(s),"aria-labelledby":re(p)},[qe("div",{class:Ue(re(d))},[kt(g.$slots,"default")],2)],10,VV),[[Qi,re(s)]])]),_:3})],2))}});var g8=lr(UV,[["__file","collapse-item.vue"]]);const v8=Zn(LV,{CollapseItem:g8}),Sp=No(g8),WV=tr({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:Pt([String,Array,Object])},zIndex:{type:Pt([String,Number])}}),qV={click:t=>t instanceof MouseEvent},GV="overlay";var KV=et({name:"ElOverlay",props:WV,emits:qV,setup(t,{slots:r,emit:e}){const n=zt(GV),o=l=>{e("click",l)},{onClick:s,onMousedown:i,onMouseup:c}=M5(t.customMaskEvent?void 0:o);return()=>t.mask?He("div",{class:[n.b(),t.overlayClass],style:{zIndex:t.zIndex},onClick:s,onMousedown:i,onMouseup:c},[kt(r,"default")],yp.STYLE|yp.CLASS|yp.PROPS,["onClick","onMouseup","onMousedown"]):Dr("div",{class:t.overlayClass,style:{zIndex:t.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[kt(r,"default")])}});const ZV=KV,y8=Symbol("dialogInjectionKey"),b8=tr({center:Boolean,alignCenter:Boolean,closeIcon:{type:Yn},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),XV={close:()=>!0},YV=["aria-level"],JV=["aria-label"],QV=["id"],eH=et({name:"ElDialogContent"}),tH=et({...eH,props:b8,emits:XV,setup(t){const r=t,{t:e}=Do(),{Close:n}=d5,{dialogRef:o,headerRef:s,bodyId:i,ns:c,style:l}=Ft(y8),{focusTrapRef:a}=Ft(Z5),h=_e(()=>[c.b(),c.is("fullscreen",r.fullscreen),c.is("draggable",r.draggable),c.is("align-center",r.alignCenter),{[c.m("center")]:r.center}]),u=lD(a,o),f=_e(()=>r.draggable),d=_e(()=>r.overflow);return fD(o,s,f,d),(m,p)=>(Se(),Ne("div",{ref:re(u),class:Ue(re(h)),style:tn(re(l)),tabindex:"-1"},[qe("header",{ref_key:"headerRef",ref:s,class:Ue([re(c).e("header"),{"show-close":m.showClose}])},[kt(m.$slots,"header",{},()=>[qe("span",{role:"heading","aria-level":m.ariaLevel,class:Ue(re(c).e("title"))},Rt(m.title),11,YV)]),m.showClose?(Se(),Ne("button",{key:0,"aria-label":re(e)("el.dialog.close"),class:Ue(re(c).e("headerbtn")),type:"button",onClick:p[0]||(p[0]=g=>m.$emit("close"))},[He(re(en),{class:Ue(re(c).e("close"))},{default:De(()=>[(Se(),nt(on(m.closeIcon||re(n))))]),_:1},8,["class"])],10,JV)):at("v-if",!0)],2),qe("div",{id:re(i),class:Ue(re(c).e("body"))},[kt(m.$slots,"default")],10,QV),m.$slots.footer?(Se(),Ne("footer",{key:0,class:Ue(re(c).e("footer"))},[kt(m.$slots,"footer")],2)):at("v-if",!0)],6))}});var rH=lr(tH,[["__file","dialog-content.vue"]]);const nH=tr({...b8,appendToBody:Boolean,appendTo:{type:Pt(String),default:"body"},beforeClose:{type:Pt(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1},headerAriaLevel:{type:String,default:"2"}}),iH={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Ln]:t=>al(t),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},oH=(t,r)=>{var e;const o=an().emit,{nextZIndex:s}=ib();let i="";const c=dc(),l=dc(),a=ze(!1),h=ze(!1),u=ze(!1),f=ze((e=t.zIndex)!=null?e:s());let d,m;const p=Pf("namespace",Nh),g=_e(()=>{const k={},x=`--${p.value}-dialog`;return t.fullscreen||(t.top&&(k[`${x}-margin-top`]=t.top),t.width&&(k[`${x}-width`]=ll(t.width))),k}),v=_e(()=>t.alignCenter?{display:"flex"}:{});function b(){o("opened")}function _(){o("closed"),o(Ln,!1),t.destroyOnClose&&(u.value=!1)}function E(){o("close")}function O(){m==null||m(),d==null||d(),t.openDelay&&t.openDelay>0?{stop:d}=nf(()=>U(),t.openDelay):U()}function j(){d==null||d(),m==null||m(),t.closeDelay&&t.closeDelay>0?{stop:m}=nf(()=>K(),t.closeDelay):K()}function W(){function k(x){x||(h.value=!0,a.value=!1)}t.beforeClose?t.beforeClose(k):j()}function z(){t.closeOnClickModal&&W()}function U(){_n&&(a.value=!0)}function K(){a.value=!1}function Y(){o("openAutoFocus")}function G(){o("closeAutoFocus")}function R(k){var x;((x=k.detail)==null?void 0:x.focusReason)==="pointer"&&k.preventDefault()}t.lockScroll&&yD(a);function D(){t.closeOnPressEscape&&W()}return St(()=>t.modelValue,k=>{k?(h.value=!1,O(),u.value=!0,f.value=e5(t.zIndex)?s():f.value++,jr(()=>{o("open"),r.value&&(r.value.scrollTop=0)})):a.value&&j()}),St(()=>t.fullscreen,k=>{r.value&&(k?(i=r.value.style.transform,r.value.style.transform=""):r.value.style.transform=i)}),ln(()=>{t.modelValue&&(a.value=!0,u.value=!0,O())}),{afterEnter:b,afterLeave:_,beforeLeave:E,handleClose:W,onModalClick:z,close:j,doClose:K,onOpenAutoFocus:Y,onCloseAutoFocus:G,onCloseRequested:D,onFocusoutPrevented:R,titleId:c,bodyId:l,closed:h,style:g,overlayDialogStyle:v,rendered:u,visible:a,zIndex:f}},sH=["aria-label","aria-labelledby","aria-describedby"],aH=et({name:"ElDialog",inheritAttrs:!1}),lH=et({...aH,props:nH,emits:iH,setup(t,{expose:r}){const e=t,n=dl();Ga({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},_e(()=>!!n.title));const o=zt("dialog"),s=ze(),i=ze(),c=ze(),{visible:l,titleId:a,bodyId:h,style:u,overlayDialogStyle:f,rendered:d,zIndex:m,afterEnter:p,afterLeave:g,beforeLeave:v,handleClose:b,onModalClick:_,onOpenAutoFocus:E,onCloseAutoFocus:O,onCloseRequested:j,onFocusoutPrevented:W}=oH(e,s);pn(y8,{dialogRef:s,headerRef:i,bodyId:h,ns:o,rendered:d,style:u});const z=M5(_),U=_e(()=>e.draggable&&!e.fullscreen);return r({visible:l,dialogContentRef:c}),(K,Y)=>(Se(),nt(i6,{to:K.appendTo,disabled:K.appendTo!=="body"?!1:!K.appendToBody},[He(os,{name:"dialog-fade",onAfterEnter:re(p),onAfterLeave:re(g),onBeforeLeave:re(v),persisted:""},{default:De(()=>[bn(He(re(ZV),{"custom-mask-event":"",mask:K.modal,"overlay-class":K.modalClass,"z-index":re(m)},{default:De(()=>[qe("div",{role:"dialog","aria-modal":"true","aria-label":K.title||void 0,"aria-labelledby":K.title?void 0:re(a),"aria-describedby":re(h),class:Ue(`${re(o).namespace.value}-overlay-dialog`),style:tn(re(f)),onClick:Y[0]||(Y[0]=(...G)=>re(z).onClick&&re(z).onClick(...G)),onMousedown:Y[1]||(Y[1]=(...G)=>re(z).onMousedown&&re(z).onMousedown(...G)),onMouseup:Y[2]||(Y[2]=(...G)=>re(z).onMouseup&&re(z).onMouseup(...G))},[He(re(Y5),{loop:"",trapped:re(l),"focus-start-el":"container",onFocusAfterTrapped:re(E),onFocusAfterReleased:re(O),onFocusoutPrevented:re(W),onReleaseRequested:re(j)},{default:De(()=>[re(d)?(Se(),nt(rH,Bi({key:0,ref_key:"dialogContentRef",ref:c},K.$attrs,{center:K.center,"align-center":K.alignCenter,"close-icon":K.closeIcon,draggable:re(U),overflow:K.overflow,fullscreen:K.fullscreen,"show-close":K.showClose,title:K.title,"aria-level":K.headerAriaLevel,onClose:re(b)}),Ux({header:De(()=>[K.$slots.title?kt(K.$slots,"title",{key:1}):kt(K.$slots,"header",{key:0,close:re(b),titleId:re(a),titleClass:re(o).e("title")})]),default:De(()=>[kt(K.$slots,"default")]),_:2},[K.$slots.footer?{name:"footer",fn:De(()=>[kt(K.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","show-close","title","aria-level","onClose"])):at("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,sH)]),_:3},8,["mask","overlay-class","z-index"]),[[Qi,re(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["to","disabled"]))}});var cH=lr(lH,[["__file","dialog.vue"]]);const Dm=Zn(cH),uH=tr({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:Pt(String),default:"solid"}}),hH=et({name:"ElDivider"}),fH=et({...hH,props:uH,setup(t){const r=t,e=zt("divider"),n=_e(()=>e.cssVar({"border-style":r.borderStyle}));return(o,s)=>(Se(),Ne("div",{class:Ue([re(e).b(),re(e).m(o.direction)]),style:tn(re(n)),role:"separator"},[o.$slots.default&&o.direction!=="vertical"?(Se(),Ne("div",{key:0,class:Ue([re(e).e("text"),re(e).is(o.contentPosition)])},[kt(o.$slots,"default")],2)):at("v-if",!0)],6))}});var dH=lr(fH,[["__file","divider.vue"]]);const O3=Zn(dH),pH=tr({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:Yn}}),mH={click:t=>t instanceof MouseEvent},gH=["href","target"],vH=et({name:"ElLink"}),yH=et({...vH,props:pH,emits:mH,setup(t,{emit:r}){const e=t,n=zt("link"),o=_e(()=>[n.b(),n.m(e.type),n.is("disabled",e.disabled),n.is("underline",e.underline&&!e.disabled)]);function s(i){e.disabled||r("click",i)}return(i,c)=>(Se(),Ne("a",{class:Ue(re(o)),href:i.disabled||!i.href?void 0:i.href,target:i.disabled||!i.href?void 0:i.target,onClick:s},[i.icon?(Se(),nt(re(en),{key:0},{default:De(()=>[(Se(),nt(on(i.icon)))]),_:1})):at("v-if",!0),i.$slots.default?(Se(),Ne("span",{key:1,class:Ue(re(n).e("inner"))},[kt(i.$slots,"default")],2)):at("v-if",!0),i.$slots.icon?kt(i.$slots,"icon",{key:2}):at("v-if",!0)],10,gH))}});var bH=lr(yH,[["__file","link.vue"]]);const _H=Zn(bH);let wH=class{constructor(r,e){this.parent=r,this.domNode=e,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(r){r===this.subMenuItems.length?r=0:r<0&&(r=this.subMenuItems.length-1),this.subMenuItems[r].focus(),this.subIndex=r}addListeners(){const r=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,e=>{e.addEventListener("keydown",n=>{let o=!1;switch(n.code){case Rn.down:{this.gotoSubIndex(this.subIndex+1),o=!0;break}case Rn.up:{this.gotoSubIndex(this.subIndex-1),o=!0;break}case Rn.tab:{gp(r,"mouseleave");break}case Rn.enter:case Rn.space:{o=!0,n.currentTarget.click();break}}return o&&(n.preventDefault(),n.stopPropagation()),!1})})}},xH=class{constructor(r,e){this.domNode=r,this.submenu=null,this.submenu=null,this.init(e)}init(r){this.domNode.setAttribute("tabindex","0");const e=this.domNode.querySelector(`.${r}-menu`);e&&(this.submenu=new wH(this,e)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",r=>{let e=!1;switch(r.code){case Rn.down:{gp(r.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),e=!0;break}case Rn.up:{gp(r.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),e=!0;break}case Rn.tab:{gp(r.currentTarget,"mouseleave");break}case Rn.enter:case Rn.space:{e=!0,r.currentTarget.click();break}}e&&r.preventDefault()})}},SH=class{constructor(r,e){this.domNode=r,this.init(e)}init(r){const e=this.domNode.childNodes;Array.from(e).forEach(n=>{n.nodeType===1&&new xH(n,r)})}};const CH=et({name:"ElMenuCollapseTransition",setup(){const t=zt("menu");return{listeners:{onBeforeEnter:e=>e.style.opacity="0.2",onEnter(e,n){rc(e,`${t.namespace.value}-opacity-transition`),e.style.opacity="1",n()},onAfterEnter(e){el(e,`${t.namespace.value}-opacity-transition`),e.style.opacity=""},onBeforeLeave(e){e.dataset||(e.dataset={}),bv(e,t.m("collapse"))?(el(e,t.m("collapse")),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth.toString(),rc(e,t.m("collapse"))):(rc(e,t.m("collapse")),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth.toString(),el(e,t.m("collapse"))),e.style.width=`${e.scrollWidth}px`,e.style.overflow="hidden"},onLeave(e){rc(e,"horizontal-collapse-transition"),e.style.width=`${e.dataset.scrollWidth}px`}}}}});function kH(t,r,e,n,o,s){return Se(),nt(os,Bi({mode:"out-in"},t.listeners),{default:De(()=>[kt(t.$slots,"default")]),_:3},16)}var EH=lr(CH,[["render",kH],["__file","menu-collapse-transition.vue"]]);function _8(t,r){const e=_e(()=>{let o=t.parent;const s=[r.value];for(;o.type.name!=="ElMenu";)o.props.index&&s.unshift(o.props.index),o=o.parent;return s});return{parentMenu:_e(()=>{let o=t.parent;for(;o&&!["ElMenu","ElSubMenu"].includes(o.type.name);)o=o.parent;return o}),indexPath:e}}function TH(t){return _e(()=>{const e=t.backgroundColor;return e?new i8(e).shade(20).toString():""})}const w8=(t,r)=>{const e=zt("menu");return _e(()=>e.cssVarBlock({"text-color":t.textColor||"","hover-text-color":t.textColor||"","bg-color":t.backgroundColor||"","hover-bg-color":TH(t).value||"","active-color":t.activeTextColor||"",level:`${r}`}))},AH=tr({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:Yn},expandOpenIcon:{type:Yn},collapseCloseIcon:{type:Yn},collapseOpenIcon:{type:Yn}}),T0="ElSubMenu";var db=et({name:T0,props:AH,setup(t,{slots:r,expose:e}){const n=an(),{indexPath:o,parentMenu:s}=_8(n,_e(()=>t.index)),i=zt("menu"),c=zt("sub-menu"),l=Ft("rootMenu");l||Ls(T0,"can not inject root menu");const a=Ft(`subMenu:${s.value.uid}`);a||Ls(T0,"can not inject sub menu");const h=ze({}),u=ze({});let f;const d=ze(!1),m=ze(),p=ze(null),g=_e(()=>z.value==="horizontal"&&b.value?"bottom-start":"right-start"),v=_e(()=>z.value==="horizontal"&&b.value||z.value==="vertical"&&!l.props.collapse?t.expandCloseIcon&&t.expandOpenIcon?j.value?t.expandOpenIcon:t.expandCloseIcon:Uy:t.collapseCloseIcon&&t.collapseOpenIcon?j.value?t.collapseOpenIcon:t.collapseCloseIcon:Om),b=_e(()=>a.level===0),_=_e(()=>{const M=t.teleported;return M===void 0?b.value:M}),E=_e(()=>l.props.collapse?`${i.namespace.value}-zoom-in-left`:`${i.namespace.value}-zoom-in-top`),O=_e(()=>z.value==="horizontal"&&b.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),j=_e(()=>l.openedMenus.includes(t.index)),W=_e(()=>{let M=!1;return Object.values(h.value).forEach(N=>{N.active&&(M=!0)}),Object.values(u.value).forEach(N=>{N.active&&(M=!0)}),M}),z=_e(()=>l.props.mode),U=sn({index:t.index,indexPath:o,active:W}),K=w8(l.props,a.level+1),Y=_e(()=>{var M;return(M=t.popperOffset)!=null?M:l.props.popperOffset}),G=_e(()=>{var M;return(M=t.popperClass)!=null?M:l.props.popperClass}),R=_e(()=>{var M;return(M=t.showTimeout)!=null?M:l.props.showTimeout}),D=_e(()=>{var M;return(M=t.hideTimeout)!=null?M:l.props.hideTimeout}),k=()=>{var M,N,F;return(F=(N=(M=p.value)==null?void 0:M.popperRef)==null?void 0:N.popperInstanceRef)==null?void 0:F.destroy()},x=M=>{M||k()},S=()=>{l.props.menuTrigger==="hover"&&l.props.mode==="horizontal"||l.props.collapse&&l.props.mode==="vertical"||t.disabled||l.handleSubMenuClick({index:t.index,indexPath:o.value,active:W.value})},C=(M,N=R.value)=>{var F;if(M.type!=="focus"){if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||t.disabled){a.mouseInChild.value=!0;return}a.mouseInChild.value=!0,f==null||f(),{stop:f}=nf(()=>{l.openMenu(t.index,o.value)},N),_.value&&((F=s.value.vnode.el)==null||F.dispatchEvent(new MouseEvent("mouseenter")))}},T=(M=!1)=>{var N;if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"){a.mouseInChild.value=!1;return}f==null||f(),a.mouseInChild.value=!1,{stop:f}=nf(()=>!d.value&&l.closeMenu(t.index,o.value),D.value),_.value&&M&&((N=a.handleMouseleave)==null||N.call(a,!0))};St(()=>l.props.collapse,M=>x(!!M));{const M=F=>{u.value[F.index]=F},N=F=>{delete u.value[F.index]};pn(`subMenu:${n.uid}`,{addSubMenu:M,removeSubMenu:N,handleMouseleave:T,mouseInChild:d,level:a.level+1})}return e({opened:j}),ln(()=>{l.addSubMenu(U),a.addSubMenu(U)}),ni(()=>{a.removeSubMenu(U),l.removeSubMenu(U)}),()=>{var M;const N=[(M=r.title)==null?void 0:M.call(r),Dr(en,{class:c.e("icon-arrow"),style:{transform:j.value?t.expandCloseIcon&&t.expandOpenIcon||t.collapseCloseIcon&&t.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>mr(v.value)?Dr(n.appContext.components[v.value]):Dr(v.value)})],F=l.isMenuPopup?Dr(cl,{ref:p,visible:j.value,effect:"light",pure:!0,offset:Y.value,showArrow:!1,persistent:!0,popperClass:G.value,placement:g.value,teleported:_.value,fallbackPlacements:O.value,transition:E.value,gpuAcceleration:!1},{content:()=>{var Z;return Dr("div",{class:[i.m(z.value),i.m("popup-container"),G.value],onMouseenter:H=>C(H,100),onMouseleave:()=>T(!0),onFocus:H=>C(H,100)},[Dr("ul",{class:[i.b(),i.m("popup"),i.m(`popup-${g.value}`)],style:K.value},[(Z=r.default)==null?void 0:Z.call(r)])])},default:()=>Dr("div",{class:c.e("title"),onClick:S},N)}):Dr(Ht,{},[Dr("div",{class:c.e("title"),ref:m,onClick:S},N),Dr(m8,{},{default:()=>{var Z;return bn(Dr("ul",{role:"menu",class:[i.b(),i.m("inline")],style:K.value},[(Z=r.default)==null?void 0:Z.call(r)]),[[Qi,j.value]])}})]);return Dr("li",{class:[c.b(),c.is("active",W.value),c.is("opened",j.value),c.is("disabled",t.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:j.value,onMouseenter:C,onMouseleave:()=>T(),onFocus:C},[F])}}});const PH=tr({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Pt(Array),default:()=>mo([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:Yn,default:()=>YN},popperEffect:{type:String,values:["dark","light"],default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300}}),A0=t=>Array.isArray(t)&&t.every(r=>mr(r)),MH={close:(t,r)=>mr(t)&&A0(r),open:(t,r)=>mr(t)&&A0(r),select:(t,r,e,n)=>mr(t)&&A0(r)&&dr(e)&&(n===void 0||n instanceof Promise)};var OH=et({name:"ElMenu",props:PH,emits:MH,setup(t,{emit:r,slots:e,expose:n}){const o=an(),s=o.appContext.config.globalProperties.$router,i=ze(),c=zt("menu"),l=zt("sub-menu"),a=ze(-1),h=ze(t.defaultOpeneds&&!t.collapse?t.defaultOpeneds.slice(0):[]),u=ze(t.defaultActive),f=ze({}),d=ze({}),m=_e(()=>t.mode==="horizontal"||t.mode==="vertical"&&t.collapse),p=()=>{const D=u.value&&f.value[u.value];if(!D||t.mode==="horizontal"||t.collapse)return;D.indexPath.forEach(x=>{const S=d.value[x];S&&g(x,S.indexPath)})},g=(D,k)=>{h.value.includes(D)||(t.uniqueOpened&&(h.value=h.value.filter(x=>k.includes(x))),h.value.push(D),r("open",D,k))},v=D=>{const k=h.value.indexOf(D);k!==-1&&h.value.splice(k,1)},b=(D,k)=>{v(D),r("close",D,k)},_=({index:D,indexPath:k})=>{h.value.includes(D)?b(D,k):g(D,k)},E=D=>{(t.mode==="horizontal"||t.collapse)&&(h.value=[]);const{index:k,indexPath:x}=D;if(!(hc(k)||hc(x)))if(t.router&&s){const S=D.route||k,C=s.push(S).then(T=>(T||(u.value=k),T));r("select",k,x,{index:k,indexPath:x,route:S},C)}else u.value=k,r("select",k,x,{index:k,indexPath:x})},O=D=>{const k=f.value,x=k[D]||u.value&&k[u.value]||k[t.defaultActive];x?u.value=x.index:u.value=D},j=D=>{const k=getComputedStyle(D),x=Number.parseInt(k.marginLeft,10),S=Number.parseInt(k.marginRight,10);return D.offsetWidth+x+S||0},W=()=>{var D,k;if(!i.value)return-1;const x=Array.from((k=(D=i.value)==null?void 0:D.childNodes)!=null?k:[]).filter(H=>H.nodeName!=="#comment"&&(H.nodeName!=="#text"||H.nodeValue)),S=64,C=getComputedStyle(i.value),T=Number.parseInt(C.paddingLeft,10),M=Number.parseInt(C.paddingRight,10),N=i.value.clientWidth-T-M;let F=0,Z=0;return x.forEach((H,ee)=>{F+=j(H),F<=N-S&&(Z=ee+1)}),Z===x.length?-1:Z},z=D=>d.value[D].indexPath,U=(D,k=33.34)=>{let x;return()=>{x&&clearTimeout(x),x=setTimeout(()=>{D()},k)}};let K=!0;const Y=()=>{if(a.value===W())return;const D=()=>{a.value=-1,jr(()=>{a.value=W()})};K?D():U(D)(),K=!1};St(()=>t.defaultActive,D=>{f.value[D]||(u.value=""),O(D)}),St(()=>t.collapse,D=>{D&&(h.value=[])}),St(f.value,p);let G;cc(()=>{t.mode==="horizontal"&&t.ellipsis?G=Xn(i,Y).stop:G==null||G()});const R=ze(!1);{const D=C=>{d.value[C.index]=C},k=C=>{delete d.value[C.index]};pn("rootMenu",sn({props:t,openedMenus:h,items:f,subMenus:d,activeIndex:u,isMenuPopup:m,addMenuItem:C=>{f.value[C.index]=C},removeMenuItem:C=>{delete f.value[C.index]},addSubMenu:D,removeSubMenu:k,openMenu:g,closeMenu:b,handleMenuItemClick:E,handleSubMenuClick:_})),pn(`subMenu:${o.uid}`,{addSubMenu:D,removeSubMenu:k,mouseInChild:R,level:0})}return ln(()=>{t.mode==="horizontal"&&new SH(o.vnode.el,c.namespace.value)}),n({open:k=>{const{indexPath:x}=d.value[k];x.forEach(S=>g(S,x))},close:v,handleResize:Y}),()=>{var D,k;let x=(k=(D=e.default)==null?void 0:D.call(e))!=null?k:[];const S=[];if(t.mode==="horizontal"&&i.value){const N=Lh(x),F=a.value===-1?N:N.slice(0,a.value),Z=a.value===-1?[]:N.slice(a.value);Z!=null&&Z.length&&t.ellipsis&&(x=F,S.push(Dr(db,{index:"sub-menu-more",class:l.e("hide-arrow"),popperOffset:t.popperOffset},{title:()=>Dr(en,{class:l.e("icon-more")},{default:()=>Dr(t.ellipsisIcon)}),default:()=>Z})))}const C=w8(t,0),T=t.closeOnClickOutside?[[hb,()=>{h.value.length&&(R.value||(h.value.forEach(N=>r("close",N,z(N))),h.value=[]))}]]:[],M=bn(Dr("ul",{key:String(t.collapse),role:"menubar",ref:i,style:C.value,class:{[c.b()]:!0,[c.m(t.mode)]:!0,[c.m("collapse")]:t.collapse}},[...x,...S]),T);return t.collapseTransition&&t.mode==="vertical"?Dr(EH,()=>M):M}}});const RH=tr({index:{type:Pt([String,null]),default:null},route:{type:Pt([String,Object])},disabled:Boolean}),IH={click:t=>mr(t.index)&&Array.isArray(t.indexPath)},P0="ElMenuItem",$H=et({name:P0,components:{ElTooltip:cl},props:RH,emits:IH,setup(t,{emit:r}){const e=an(),n=Ft("rootMenu"),o=zt("menu"),s=zt("menu-item");n||Ls(P0,"can not inject root menu");const{parentMenu:i,indexPath:c}=_8(e,Po(t,"index")),l=Ft(`subMenu:${i.value.uid}`);l||Ls(P0,"can not inject sub menu");const a=_e(()=>t.index===n.activeIndex),h=sn({index:t.index,indexPath:c,active:a}),u=()=>{t.disabled||(n.handleMenuItemClick({index:t.index,indexPath:c.value,route:t.route}),r("click",h))};return ln(()=>{l.addSubMenu(h),n.addMenuItem(h)}),ni(()=>{l.removeSubMenu(h),n.removeMenuItem(h)}),{parentMenu:i,rootMenu:n,active:a,nsMenu:o,nsMenuItem:s,handleClick:u}}});function LH(t,r,e,n,o,s){const i=Ao("el-tooltip");return Se(),Ne("li",{class:Ue([t.nsMenuItem.b(),t.nsMenuItem.is("active",t.active),t.nsMenuItem.is("disabled",t.disabled)]),role:"menuitem",tabindex:"-1",onClick:r[0]||(r[0]=(...c)=>t.handleClick&&t.handleClick(...c))},[t.parentMenu.type.name==="ElMenu"&&t.rootMenu.props.collapse&&t.$slots.title?(Se(),nt(i,{key:0,effect:t.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:De(()=>[kt(t.$slots,"title")]),default:De(()=>[qe("div",{class:Ue(t.nsMenu.be("tooltip","trigger"))},[kt(t.$slots,"default")],2)]),_:3},8,["effect"])):(Se(),Ne(Ht,{key:1},[kt(t.$slots,"default"),kt(t.$slots,"title")],64))],2)}var x8=lr($H,[["render",LH],["__file","menu-item.vue"]]);const NH={title:String},DH="ElMenuItemGroup",jH=et({name:DH,props:NH,setup(){return{ns:zt("menu-item-group")}}});function BH(t,r,e,n,o,s){return Se(),Ne("li",{class:Ue(t.ns.b())},[qe("div",{class:Ue(t.ns.e("title"))},[t.$slots.title?kt(t.$slots,"title",{key:1}):(Se(),Ne(Ht,{key:0},[er(Rt(t.title),1)],64))],2),qe("ul",null,[kt(t.$slots,"default")])],2)}var S8=lr(jH,[["render",BH],["__file","menu-item-group.vue"]]);const FH=Zn(OH,{MenuItem:x8,MenuItemGroup:S8,SubMenu:db}),Ul=No(x8);No(S8);No(db);const C8=Symbol("elPaginationKey"),zH=tr({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:Yn}}),VH={click:t=>t instanceof MouseEvent},HH=["disabled","aria-label","aria-disabled"],UH={key:0},WH=et({name:"ElPaginationPrev"}),qH=et({...WH,props:zH,emits:VH,setup(t){const r=t,{t:e}=Do(),n=_e(()=>r.disabled||r.currentPage<=1);return(o,s)=>(Se(),Ne("button",{type:"button",class:"btn-prev",disabled:re(n),"aria-label":o.prevText||re(e)("el.pagination.prev"),"aria-disabled":re(n),onClick:s[0]||(s[0]=i=>o.$emit("click",i))},[o.prevText?(Se(),Ne("span",UH,Rt(o.prevText),1)):(Se(),nt(re(en),{key:1},{default:De(()=>[(Se(),nt(on(o.prevIcon)))]),_:1}))],8,HH))}});var GH=lr(qH,[["__file","prev.vue"]]);const KH=tr({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:Yn}}),ZH=["disabled","aria-label","aria-disabled"],XH={key:0},YH=et({name:"ElPaginationNext"}),JH=et({...YH,props:KH,emits:["click"],setup(t){const r=t,{t:e}=Do(),n=_e(()=>r.disabled||r.currentPage===r.pageCount||r.pageCount===0);return(o,s)=>(Se(),Ne("button",{type:"button",class:"btn-next",disabled:re(n),"aria-label":o.nextText||re(e)("el.pagination.next"),"aria-disabled":re(n),onClick:s[0]||(s[0]=i=>o.$emit("click",i))},[o.nextText?(Se(),Ne("span",XH,Rt(o.nextText),1)):(Se(),nt(re(en),{key:1},{default:De(()=>[(Se(),nt(on(o.nextIcon)))]),_:1}))],8,ZH))}});var QH=lr(JH,[["__file","next.vue"]]);const k8=Symbol("ElSelectGroup"),jm=Symbol("ElSelect");function eU(t,r){const e=Ft(jm),n=Ft(k8,{disabled:!1}),o=_e(()=>e.props.multiple?h(e.props.modelValue,t.value):h([e.props.modelValue],t.value)),s=_e(()=>{if(e.props.multiple){const d=e.props.modelValue||[];return!o.value&&d.length>=e.props.multipleLimit&&e.props.multipleLimit>0}else return!1}),i=_e(()=>t.label||(dr(t.value)?"":t.value)),c=_e(()=>t.value||t.label||""),l=_e(()=>t.disabled||r.groupDisabled||s.value),a=an(),h=(d=[],m)=>{if(dr(t.value)){const p=e.props.valueKey;return d&&d.some(g=>Mr(zn(g,p))===zn(m,p))}else return d&&d.includes(m)},u=()=>{!t.disabled&&!n.disabled&&(e.states.hoveringIndex=e.optionsArray.indexOf(a.proxy))},f=d=>{const m=new RegExp(o5(d),"i");r.visible=m.test(i.value)||t.created};return St(()=>i.value,()=>{!t.created&&!e.props.remote&&e.setSelected()}),St(()=>t.value,(d,m)=>{const{remote:p,valueKey:g}=e.props;if(ol(d,m)||(e.onOptionDestroy(m,a.proxy),e.onOptionCreate(a.proxy)),!t.created&&!p){if(g&&dr(d)&&dr(m)&&d[g]===m[g])return;e.setSelected()}}),St(()=>n.disabled,()=>{r.groupDisabled=n.disabled},{immediate:!0}),{select:e,currentLabel:i,currentValue:c,itemSelected:o,isDisabled:l,hoverItem:u,updateOption:f}}const tU=et({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(t){const r=zt("select"),e=dc(),n=_e(()=>[r.be("dropdown","item"),r.is("disabled",re(c)),r.is("selected",re(i)),r.is("hovering",re(f))]),o=sn({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:s,itemSelected:i,isDisabled:c,select:l,hoverItem:a,updateOption:h}=eU(t,o),{visible:u,hover:f}=nl(o),d=an().proxy;l.onOptionCreate(d),ni(()=>{const p=d.value,{selected:g}=l.states,b=(l.props.multiple?g:[g]).some(_=>_.value===d.value);jr(()=>{l.states.cachedOptions.get(p)===d&&!b&&l.states.cachedOptions.delete(p)}),l.onOptionDestroy(p,d)});function m(){t.disabled!==!0&&o.groupDisabled!==!0&&l.handleOptionSelect(d)}return{ns:r,id:e,containerKls:n,currentLabel:s,itemSelected:i,isDisabled:c,select:l,hoverItem:a,updateOption:h,visible:u,hover:f,selectOptionClick:m,states:o}}}),rU=["id","aria-disabled","aria-selected"];function nU(t,r,e,n,o,s){return bn((Se(),Ne("li",{id:t.id,class:Ue(t.containerKls),role:"option","aria-disabled":t.isDisabled||void 0,"aria-selected":t.itemSelected,onMouseenter:r[0]||(r[0]=(...i)=>t.hoverItem&&t.hoverItem(...i)),onClick:r[1]||(r[1]=hn((...i)=>t.selectOptionClick&&t.selectOptionClick(...i),["stop"]))},[kt(t.$slots,"default",{},()=>[qe("span",null,Rt(t.currentLabel),1)])],42,rU)),[[Qi,t.visible]])}var pb=lr(tU,[["render",nU],["__file","option.vue"]]);const iU=et({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const t=Ft(jm),r=zt("select"),e=_e(()=>t.props.popperClass),n=_e(()=>t.props.multiple),o=_e(()=>t.props.fitInputWidth),s=ze("");function i(){var c;s.value=`${(c=t.selectRef)==null?void 0:c.offsetWidth}px`}return ln(()=>{i(),Xn(t.selectRef,i)}),{ns:r,minWidth:s,popperClass:e,isMultiple:n,isFitInputWidth:o}}});function oU(t,r,e,n,o,s){return Se(),Ne("div",{class:Ue([t.ns.b("dropdown"),t.ns.is("multiple",t.isMultiple),t.popperClass]),style:tn({[t.isFitInputWidth?"width":"minWidth"]:t.minWidth})},[t.$slots.header?(Se(),Ne("div",{key:0,class:Ue(t.ns.be("dropdown","header"))},[kt(t.$slots,"header")],2)):at("v-if",!0),kt(t.$slots,"default"),t.$slots.footer?(Se(),Ne("div",{key:1,class:Ue(t.ns.be("dropdown","footer"))},[kt(t.$slots,"footer")],2)):at("v-if",!0)],6)}var sU=lr(iU,[["render",oU],["__file","select-dropdown.vue"]]);function E8(t){const r=ze(!1);return{handleCompositionStart:()=>{r.value=!0},handleCompositionUpdate:s=>{const i=s.target.value,c=i[i.length-1]||"";r.value=!p5(c)},handleCompositionEnd:s=>{r.value&&(r.value=!1,Wt(t)&&t(s))}}}const aU=11,lU=(t,r)=>{const{t:e}=Do(),n=dc(),o=zt("select"),s=zt("input"),i=sn({inputValue:"",options:new Map,cachedOptions:new Map,disabledOptions:new Map,optionValues:[],selected:t.multiple?[]:{},selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),c=ze(null),l=ze(null),a=ze(null),h=ze(null),u=ze(null),f=ze(null),d=ze(null),m=ze(null),p=ze(null),g=ze(null),v=ze(null),b=ze(null),{wrapperRef:_,isFocused:E,handleFocus:O,handleBlur:j}=ob(u,{afterFocus(){t.automaticDropdown&&!W.value&&(W.value=!0,i.menuVisibleOnFocus=!0)},beforeBlur(ye){var xe,Xe;return((xe=a.value)==null?void 0:xe.isFocusInsideContent(ye))||((Xe=h.value)==null?void 0:Xe.isFocusInsideContent(ye))},afterBlur(){W.value=!1,i.menuVisibleOnFocus=!1}}),W=ze(!1),z=ze(),{form:U,formItem:K}=_c(),{inputId:Y}=Mf(t,{formItemContext:K}),{valueOnClear:G,isEmptyValue:R}=D5(t),D=_e(()=>t.disabled||(U==null?void 0:U.disabled)),k=_e(()=>t.multiple?Et(t.modelValue)&&t.modelValue.length>0:!R(t.modelValue)),x=_e(()=>t.clearable&&!D.value&&i.inputHovering&&k.value),S=_e(()=>t.remote&&t.filterable&&!t.remoteShowSuffix?"":t.suffixIcon),C=_e(()=>o.is("reverse",S.value&&W.value)),T=_e(()=>(K==null?void 0:K.validateState)||""),M=_e(()=>Gy[T.value]),N=_e(()=>t.remote?300:0),F=_e(()=>t.loading?t.loadingText||e("el.select.loading"):t.remote&&!i.inputValue&&i.options.size===0?!1:t.filterable&&i.inputValue&&i.options.size>0&&Z.value===0?t.noMatchText||e("el.select.noMatch"):i.options.size===0?t.noDataText||e("el.select.noData"):null),Z=_e(()=>H.value.filter(ye=>ye.visible).length),H=_e(()=>{const ye=Array.from(i.options.values()),xe=[];return i.optionValues.forEach(Xe=>{const Qe=ye.findIndex(ut=>ut.value===Xe);Qe>-1&&xe.push(ye[Qe])}),xe.length>=ye.length?xe:ye}),ee=_e(()=>Array.from(i.cachedOptions.values())),B=_e(()=>{const ye=H.value.filter(xe=>!xe.created).some(xe=>xe.currentLabel===i.inputValue);return t.filterable&&t.allowCreate&&i.inputValue!==""&&!ye}),J=()=>{t.filterable&&Wt(t.filterMethod)||t.filterable&&t.remote&&Wt(t.remoteMethod)||H.value.forEach(ye=>{var xe;(xe=ye.updateOption)==null||xe.call(ye,i.inputValue)})},I=ua(),$=_e(()=>["small"].includes(I.value)?"small":"default"),X=_e({get(){return W.value&&F.value!==!1},set(ye){W.value=ye}}),ae=_e(()=>Et(t.modelValue)?t.modelValue.length===0&&!i.inputValue:t.filterable?!i.inputValue:!0),fe=_e(()=>{var ye;const xe=(ye=t.placeholder)!=null?ye:e("el.select.placeholder");return t.multiple||!k.value?xe:i.selectedLabel});St(()=>t.modelValue,(ye,xe)=>{t.multiple&&t.filterable&&!t.reserveKeyword&&(i.inputValue="",te("")),de(),!ol(ye,xe)&&t.validateEvent&&(K==null||K.validate("change").catch(Xe=>void 0))},{flush:"post",deep:!0}),St(()=>W.value,ye=>{ye?te(i.inputValue):(i.inputValue="",i.previousQuery=null,i.isBeforeHide=!0),r("visible-change",ye)}),St(()=>i.options.entries(),()=>{var ye;if(!_n)return;const xe=((ye=c.value)==null?void 0:ye.querySelectorAll("input"))||[];(!t.filterable&&!t.defaultFirstOption&&!sl(t.modelValue)||!Array.from(xe).includes(document.activeElement))&&de(),t.defaultFirstOption&&(t.filterable||t.remote)&&Z.value&&ie()},{flush:"post"}),St(()=>i.hoveringIndex,ye=>{rn(ye)&&ye>-1?z.value=H.value[ye]||{}:z.value={},H.value.forEach(xe=>{xe.hover=z.value===xe})}),cc(()=>{i.isBeforeHide||J()});const te=ye=>{i.previousQuery!==ye&&(i.previousQuery=ye,t.filterable&&Wt(t.filterMethod)?t.filterMethod(ye):t.filterable&&t.remote&&Wt(t.remoteMethod)&&t.remoteMethod(ye),t.defaultFirstOption&&(t.filterable||t.remote)&&Z.value?jr(ie):jr(se))},ie=()=>{const ye=H.value.filter(Qe=>Qe.visible&&!Qe.disabled&&!Qe.states.groupDisabled),xe=ye.find(Qe=>Qe.created),Xe=ye[0];i.hoveringIndex=Tt(H.value,xe||Xe)},de=()=>{if(t.multiple)i.selectedLabel="";else{const xe=me(t.modelValue);i.selectedLabel=xe.currentLabel,i.selected=xe;return}const ye=[];Et(t.modelValue)&&t.modelValue.forEach(xe=>{ye.push(me(xe))}),i.selected=ye},me=ye=>{let xe;const Xe=cp(ye).toLowerCase()==="object",Qe=cp(ye).toLowerCase()==="null",ut=cp(ye).toLowerCase()==="undefined";for(let _t=i.cachedOptions.size-1;_t>=0;_t--){const Dt=ee.value[_t];if(Xe?zn(Dt.value,t.valueKey)===zn(ye,t.valueKey):Dt.value===ye){xe={value:ye,currentLabel:Dt.currentLabel,get isDisabled(){return Dt.isDisabled}};break}}if(xe)return xe;const yt=Xe?ye.label:!Qe&&!ut?ye:"";return{value:ye,currentLabel:yt}},se=()=>{t.multiple?i.hoveringIndex=H.value.findIndex(ye=>i.selected.some(xe=>gr(xe)===gr(ye))):i.hoveringIndex=H.value.findIndex(ye=>gr(ye)===gr(i.selected))},ve=()=>{i.selectionWidth=l.value.getBoundingClientRect().width},be=()=>{i.calculatorWidth=f.value.getBoundingClientRect().width},ke=()=>{i.collapseItemWidth=v.value.getBoundingClientRect().width},Ce=()=>{var ye,xe;(xe=(ye=a.value)==null?void 0:ye.updatePopper)==null||xe.call(ye)},Ee=()=>{var ye,xe;(xe=(ye=h.value)==null?void 0:ye.updatePopper)==null||xe.call(ye)},Me=()=>{i.inputValue.length>0&&!W.value&&(W.value=!0),te(i.inputValue)},Le=ye=>{if(i.inputValue=ye.target.value,t.remote)Ae();else return Me()},Ae=J6(()=>{Me()},N.value),Fe=ye=>{ol(t.modelValue,ye)||r(Tu,ye)},Ge=ye=>Q6(ye,xe=>!i.disabledOptions.has(xe)),Ye=ye=>{if(t.multiple&&ye.code!==Rn.delete&&ye.target.value.length<=0){const xe=t.modelValue.slice(),Xe=Ge(xe);if(Xe<0)return;xe.splice(Xe,1),r(Ln,xe),Fe(xe)}},lt=(ye,xe)=>{const Xe=i.selected.indexOf(xe);if(Xe>-1&&!D.value){const Qe=t.modelValue.slice();Qe.splice(Xe,1),r(Ln,Qe),Fe(Qe),r("remove-tag",xe.value)}ye.stopPropagation(),sr()},vt=ye=>{ye.stopPropagation();const xe=t.multiple?[]:G.value;if(t.multiple)for(const Xe of i.selected)Xe.isDisabled&&xe.push(Xe.value);r(Ln,xe),Fe(xe),i.hoveringIndex=-1,W.value=!1,r("clear"),sr()},xt=ye=>{if(t.multiple){const xe=(t.modelValue||[]).slice(),Xe=Tt(xe,ye.value);Xe>-1?xe.splice(Xe,1):(t.multipleLimit<=0||xe.length{gt(ye)})},Tt=(ye=[],xe)=>{if(!dr(xe))return ye.indexOf(xe);const Xe=t.valueKey;let Qe=-1;return ye.some((ut,yt)=>Mr(zn(ut,Xe))===zn(xe,Xe)?(Qe=yt,!0):!1),Qe},gt=ye=>{var xe,Xe,Qe,ut,yt;const Ct=Et(ye)?ye[0]:ye;let _t=null;if(Ct!=null&&Ct.value){const Dt=H.value.filter(Xt=>Xt.value===Ct.value);Dt.length>0&&(_t=Dt[0].$el)}if(a.value&&_t){const Dt=(ut=(Qe=(Xe=(xe=a.value)==null?void 0:xe.popperRef)==null?void 0:Xe.contentRef)==null?void 0:Qe.querySelector)==null?void 0:ut.call(Qe,`.${o.be("dropdown","wrap")}`);Dt&&CN(Dt,_t)}(yt=b.value)==null||yt.handleScroll()},ct=ye=>{i.options.set(ye.value,ye),i.cachedOptions.set(ye.value,ye),ye.disabled&&i.disabledOptions.set(ye.value,ye)},bt=(ye,xe)=>{i.options.get(ye)===xe&&i.options.delete(ye)},{handleCompositionStart:wt,handleCompositionUpdate:ft,handleCompositionEnd:or}=E8(ye=>Le(ye)),Rr=_e(()=>{var ye,xe;return(xe=(ye=a.value)==null?void 0:ye.popperRef)==null?void 0:xe.contentRef}),Vt=()=>{i.isBeforeHide=!1,jr(()=>gt(i.selected))},sr=()=>{var ye;(ye=u.value)==null||ye.focus()},ar=()=>{_r()},Nt=ye=>{vt(ye)},_r=ye=>{if(W.value=!1,E.value){const xe=new FocusEvent("focus",ye);jr(()=>j(xe))}},wr=()=>{i.inputValue.length>0?i.inputValue="":W.value=!1},Ut=()=>{D.value||(i.menuVisibleOnFocus?i.menuVisibleOnFocus=!1:W.value=!W.value)},vr=()=>{W.value?H.value[i.hoveringIndex]&&xt(H.value[i.hoveringIndex]):Ut()},gr=ye=>dr(ye.value)?zn(ye.value,t.valueKey):ye.value,qt=_e(()=>H.value.filter(ye=>ye.visible).every(ye=>ye.disabled)),Sr=_e(()=>t.multiple?t.collapseTags?i.selected.slice(0,t.maxCollapseTags):i.selected:[]),Tr=_e(()=>t.multiple?t.collapseTags?i.selected.slice(t.maxCollapseTags):[]:[]),Zt=ye=>{if(!W.value){W.value=!0;return}if(!(i.options.size===0||Z.value===0)&&!qt.value){ye==="next"?(i.hoveringIndex++,i.hoveringIndex===i.options.size&&(i.hoveringIndex=0)):ye==="prev"&&(i.hoveringIndex--,i.hoveringIndex<0&&(i.hoveringIndex=i.options.size-1));const xe=H.value[i.hoveringIndex];(xe.disabled===!0||xe.states.groupDisabled===!0||!xe.visible)&&Zt(ye),jr(()=>gt(z.value))}},Re=()=>{if(!l.value)return 0;const ye=window.getComputedStyle(l.value);return Number.parseFloat(ye.gap||"6px")},ue=_e(()=>{const ye=Re();return{maxWidth:`${v.value&&t.maxCollapseTags===1?i.selectionWidth-i.collapseItemWidth-ye:i.selectionWidth}px`}}),le=_e(()=>({maxWidth:`${i.selectionWidth}px`})),Te=_e(()=>({width:`${Math.max(i.calculatorWidth,aU)}px`}));return t.multiple&&!Et(t.modelValue)&&r(Ln,[]),!t.multiple&&Et(t.modelValue)&&r(Ln,""),Xn(l,ve),Xn(f,be),Xn(p,Ce),Xn(_,Ce),Xn(g,Ee),Xn(v,ke),ln(()=>{de()}),{inputId:Y,contentId:n,nsSelect:o,nsInput:s,states:i,isFocused:E,expanded:W,optionsArray:H,hoverOption:z,selectSize:I,filteredOptionsCount:Z,resetCalculatorWidth:be,updateTooltip:Ce,updateTagTooltip:Ee,debouncedOnInputChange:Ae,onInput:Le,deletePrevTag:Ye,deleteTag:lt,deleteSelected:vt,handleOptionSelect:xt,scrollToOption:gt,hasModelValue:k,shouldShowPlaceholder:ae,currentPlaceholder:fe,showClose:x,iconComponent:S,iconReverse:C,validateState:T,validateIcon:M,showNewOption:B,updateOptions:J,collapseTagSize:$,setSelected:de,selectDisabled:D,emptyText:F,handleCompositionStart:wt,handleCompositionUpdate:ft,handleCompositionEnd:or,onOptionCreate:ct,onOptionDestroy:bt,handleMenuEnter:Vt,handleFocus:O,focus:sr,blur:ar,handleBlur:j,handleClearClick:Nt,handleClickOutside:_r,handleEsc:wr,toggleMenu:Ut,selectOption:vr,getValueKey:gr,navigateOptions:Zt,dropdownMenuVisible:X,showTagList:Sr,collapseTagList:Tr,tagStyle:ue,collapseTagStyle:le,inputStyle:Te,popperRef:Rr,inputRef:u,tooltipRef:a,tagTooltipRef:h,calculatorRef:f,prefixRef:d,suffixRef:m,selectRef:c,wrapperRef:_,selectionRef:l,scrollbarRef:b,menuRef:p,tagMenuRef:g,collapseItemRef:v}};var cU=et({name:"ElOptions",setup(t,{slots:r}){const e=Ft(jm);let n=[];return()=>{var o,s;const i=(o=r.default)==null?void 0:o.call(r),c=[];function l(a){Et(a)&&a.forEach(h=>{var u,f,d,m;const p=(u=(h==null?void 0:h.type)||{})==null?void 0:u.name;p==="ElOptionGroup"?l(!mr(h.children)&&!Et(h.children)&&Wt((f=h.children)==null?void 0:f.default)?(d=h.children)==null?void 0:d.default():h.children):p==="ElOption"?c.push((m=h.props)==null?void 0:m.value):Et(h.children)&&l(h.children)})}return i.length&&l((s=i[0])==null?void 0:s.children),ol(c,n)||(n=c,e&&(e.states.optionValues=c)),i}}});const uU=tr({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Pu,effect:{type:Pt(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Pt(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:Nm.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Yn,default:Rm},fitInputWidth:Boolean,suffixIcon:{type:Yn,default:Uy},tagType:{...fb.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:Pt(String),values:Tf,default:"bottom-start"},fallbackPlacements:{type:Pt(Array),default:["bottom-start","top-start","right","left"]},...N5,...ml(["ariaLabel"])}),R3="ElSelect",hU=et({name:R3,componentName:R3,components:{ElInput:Rf,ElSelectMenu:sU,ElOption:pb,ElOptions:cU,ElTag:f8,ElScrollbar:mF,ElTooltip:cl,ElIcon:en},directives:{ClickOutside:hb},props:uU,emits:[Ln,Tu,"remove-tag","clear","visible-change","focus","blur"],setup(t,{emit:r}){const e=lU(t,r);return pn(jm,sn({props:t,states:e.states,optionsArray:e.optionsArray,handleOptionSelect:e.handleOptionSelect,onOptionCreate:e.onOptionCreate,onOptionDestroy:e.onOptionDestroy,selectRef:e.selectRef,setSelected:e.setSelected})),{...e}}}),fU=["id","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],dU=["textContent"];function pU(t,r,e,n,o,s){const i=Ao("el-tag"),c=Ao("el-tooltip"),l=Ao("el-icon"),a=Ao("el-option"),h=Ao("el-options"),u=Ao("el-scrollbar"),f=Ao("el-select-menu"),d=xy("click-outside");return bn((Se(),Ne("div",{ref:"selectRef",class:Ue([t.nsSelect.b(),t.nsSelect.m(t.selectSize)]),onMouseenter:r[16]||(r[16]=m=>t.states.inputHovering=!0),onMouseleave:r[17]||(r[17]=m=>t.states.inputHovering=!1),onClick:r[18]||(r[18]=hn((...m)=>t.toggleMenu&&t.toggleMenu(...m),["prevent","stop"]))},[He(c,{ref:"tooltipRef",visible:t.dropdownMenuVisible,placement:t.placement,teleported:t.teleported,"popper-class":[t.nsSelect.e("popper"),t.popperClass],"popper-options":t.popperOptions,"fallback-placements":t.fallbackPlacements,effect:t.effect,pure:"",trigger:"click",transition:`${t.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:t.persistent,onBeforeShow:t.handleMenuEnter,onHide:r[15]||(r[15]=m=>t.states.isBeforeHide=!1)},{default:De(()=>{var m;return[qe("div",{ref:"wrapperRef",class:Ue([t.nsSelect.e("wrapper"),t.nsSelect.is("focused",t.isFocused),t.nsSelect.is("hovering",t.states.inputHovering),t.nsSelect.is("filterable",t.filterable),t.nsSelect.is("disabled",t.selectDisabled)])},[t.$slots.prefix?(Se(),Ne("div",{key:0,ref:"prefixRef",class:Ue(t.nsSelect.e("prefix"))},[kt(t.$slots,"prefix")],2)):at("v-if",!0),qe("div",{ref:"selectionRef",class:Ue([t.nsSelect.e("selection"),t.nsSelect.is("near",t.multiple&&!t.$slots.prefix&&!!t.states.selected.length)])},[t.multiple?kt(t.$slots,"tag",{key:0},()=>[(Se(!0),Ne(Ht,null,Cn(t.showTagList,p=>(Se(),Ne("div",{key:t.getValueKey(p),class:Ue(t.nsSelect.e("selected-item"))},[He(i,{closable:!t.selectDisabled&&!p.isDisabled,size:t.collapseTagSize,type:t.tagType,"disable-transitions":"",style:tn(t.tagStyle),onClose:g=>t.deleteTag(g,p)},{default:De(()=>[qe("span",{class:Ue(t.nsSelect.e("tags-text"))},Rt(p.currentLabel),3)]),_:2},1032,["closable","size","type","style","onClose"])],2))),128)),t.collapseTags&&t.states.selected.length>t.maxCollapseTags?(Se(),nt(c,{key:0,ref:"tagTooltipRef",disabled:t.dropdownMenuVisible||!t.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:t.effect,placement:"bottom",teleported:t.teleported},{default:De(()=>[qe("div",{ref:"collapseItemRef",class:Ue(t.nsSelect.e("selected-item"))},[He(i,{closable:!1,size:t.collapseTagSize,type:t.tagType,"disable-transitions":"",style:tn(t.collapseTagStyle)},{default:De(()=>[qe("span",{class:Ue(t.nsSelect.e("tags-text"))}," + "+Rt(t.states.selected.length-t.maxCollapseTags),3)]),_:1},8,["size","type","style"])],2)]),content:De(()=>[qe("div",{ref:"tagMenuRef",class:Ue(t.nsSelect.e("selection"))},[(Se(!0),Ne(Ht,null,Cn(t.collapseTagList,p=>(Se(),Ne("div",{key:t.getValueKey(p),class:Ue(t.nsSelect.e("selected-item"))},[He(i,{class:"in-tooltip",closable:!t.selectDisabled&&!p.isDisabled,size:t.collapseTagSize,type:t.tagType,"disable-transitions":"",onClose:g=>t.deleteTag(g,p)},{default:De(()=>[qe("span",{class:Ue(t.nsSelect.e("tags-text"))},Rt(p.currentLabel),3)]),_:2},1032,["closable","size","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):at("v-if",!0)]):at("v-if",!0),t.selectDisabled?at("v-if",!0):(Se(),Ne("div",{key:1,class:Ue([t.nsSelect.e("selected-item"),t.nsSelect.e("input-wrapper"),t.nsSelect.is("hidden",!t.filterable)])},[bn(qe("input",{id:t.inputId,ref:"inputRef","onUpdate:modelValue":r[0]||(r[0]=p=>t.states.inputValue=p),type:"text",class:Ue([t.nsSelect.e("input"),t.nsSelect.is(t.selectSize)]),disabled:t.selectDisabled,autocomplete:t.autocomplete,style:tn(t.inputStyle),role:"combobox",readonly:!t.filterable,spellcheck:"false","aria-activedescendant":((m=t.hoverOption)==null?void 0:m.id)||"","aria-controls":t.contentId,"aria-expanded":t.dropdownMenuVisible,"aria-label":t.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:r[1]||(r[1]=(...p)=>t.handleFocus&&t.handleFocus(...p)),onBlur:r[2]||(r[2]=(...p)=>t.handleBlur&&t.handleBlur(...p)),onKeydown:[r[3]||(r[3]=po(hn(p=>t.navigateOptions("next"),["stop","prevent"]),["down"])),r[4]||(r[4]=po(hn(p=>t.navigateOptions("prev"),["stop","prevent"]),["up"])),r[5]||(r[5]=po(hn((...p)=>t.handleEsc&&t.handleEsc(...p),["stop","prevent"]),["esc"])),r[6]||(r[6]=po(hn((...p)=>t.selectOption&&t.selectOption(...p),["stop","prevent"]),["enter"])),r[7]||(r[7]=po(hn((...p)=>t.deletePrevTag&&t.deletePrevTag(...p),["stop"]),["delete"]))],onCompositionstart:r[8]||(r[8]=(...p)=>t.handleCompositionStart&&t.handleCompositionStart(...p)),onCompositionupdate:r[9]||(r[9]=(...p)=>t.handleCompositionUpdate&&t.handleCompositionUpdate(...p)),onCompositionend:r[10]||(r[10]=(...p)=>t.handleCompositionEnd&&t.handleCompositionEnd(...p)),onInput:r[11]||(r[11]=(...p)=>t.onInput&&t.onInput(...p)),onClick:r[12]||(r[12]=hn((...p)=>t.toggleMenu&&t.toggleMenu(...p),["stop"]))},null,46,fU),[[w6,t.states.inputValue]]),t.filterable?(Se(),Ne("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:Ue(t.nsSelect.e("input-calculator")),textContent:Rt(t.states.inputValue)},null,10,dU)):at("v-if",!0)],2)),t.shouldShowPlaceholder?(Se(),Ne("div",{key:2,class:Ue([t.nsSelect.e("selected-item"),t.nsSelect.e("placeholder"),t.nsSelect.is("transparent",!t.hasModelValue||t.expanded&&!t.states.inputValue)])},[qe("span",null,Rt(t.currentPlaceholder),1)],2)):at("v-if",!0)],2),qe("div",{ref:"suffixRef",class:Ue(t.nsSelect.e("suffix"))},[t.iconComponent&&!t.showClose?(Se(),nt(l,{key:0,class:Ue([t.nsSelect.e("caret"),t.nsSelect.e("icon"),t.iconReverse])},{default:De(()=>[(Se(),nt(on(t.iconComponent)))]),_:1},8,["class"])):at("v-if",!0),t.showClose&&t.clearIcon?(Se(),nt(l,{key:1,class:Ue([t.nsSelect.e("caret"),t.nsSelect.e("icon")]),onClick:t.handleClearClick},{default:De(()=>[(Se(),nt(on(t.clearIcon)))]),_:1},8,["class","onClick"])):at("v-if",!0),t.validateState&&t.validateIcon?(Se(),nt(l,{key:2,class:Ue([t.nsInput.e("icon"),t.nsInput.e("validateIcon")])},{default:De(()=>[(Se(),nt(on(t.validateIcon)))]),_:1},8,["class"])):at("v-if",!0)],2)],2)]}),content:De(()=>[He(f,{ref:"menuRef"},{default:De(()=>[t.$slots.header?(Se(),Ne("div",{key:0,class:Ue(t.nsSelect.be("dropdown","header")),onClick:r[13]||(r[13]=hn(()=>{},["stop"]))},[kt(t.$slots,"header")],2)):at("v-if",!0),bn(He(u,{id:t.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":t.nsSelect.be("dropdown","wrap"),"view-class":t.nsSelect.be("dropdown","list"),class:Ue([t.nsSelect.is("empty",t.filteredOptionsCount===0)]),role:"listbox","aria-label":t.ariaLabel,"aria-orientation":"vertical"},{default:De(()=>[t.showNewOption?(Se(),nt(a,{key:0,value:t.states.inputValue,created:!0},null,8,["value"])):at("v-if",!0),He(h,null,{default:De(()=>[kt(t.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[Qi,t.states.options.size>0&&!t.loading]]),t.$slots.loading&&t.loading?(Se(),Ne("div",{key:1,class:Ue(t.nsSelect.be("dropdown","loading"))},[kt(t.$slots,"loading")],2)):t.loading||t.filteredOptionsCount===0?(Se(),Ne("div",{key:2,class:Ue(t.nsSelect.be("dropdown","empty"))},[kt(t.$slots,"empty",{},()=>[qe("span",null,Rt(t.emptyText),1)])],2)):at("v-if",!0),t.$slots.footer?(Se(),Ne("div",{key:3,class:Ue(t.nsSelect.be("dropdown","footer")),onClick:r[14]||(r[14]=hn(()=>{},["stop"]))},[kt(t.$slots,"footer")],2)):at("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","onBeforeShow"])],34)),[[d,t.handleClickOutside,t.popperRef]])}var mU=lr(hU,[["render",pU],["__file","select.vue"]]);const gU=et({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(t){const r=zt("select"),e=ze(null),n=an(),o=ze([]);pn(k8,sn({...nl(t)}));const s=_e(()=>o.value.some(a=>a.visible===!0)),i=a=>{var h,u;return((h=a.type)==null?void 0:h.name)==="ElOption"&&!!((u=a.component)!=null&&u.proxy)},c=a=>{const h=fu(a),u=[];return h.forEach(f=>{var d,m;i(f)?u.push(f.component.proxy):(d=f.children)!=null&&d.length?u.push(...c(f.children)):(m=f.component)!=null&&m.subTree&&u.push(...c(f.component.subTree))}),u},l=()=>{o.value=c(n.subTree)};return ln(()=>{l()}),dO(e,l,{attributes:!0,subtree:!0,childList:!0}),{groupRef:e,visible:s,ns:r}}});function vU(t,r,e,n,o,s){return bn((Se(),Ne("ul",{ref:"groupRef",class:Ue(t.ns.be("group","wrap"))},[qe("li",{class:Ue(t.ns.be("group","title"))},Rt(t.label),3),qe("li",null,[qe("ul",{class:Ue(t.ns.b("group"))},[kt(t.$slots,"default")],2)])],2)),[[Qi,t.visible]])}var T8=lr(gU,[["render",vU],["__file","option-group.vue"]]);const Av=Zn(mU,{Option:pb,OptionGroup:T8}),Pv=No(pb),yU=No(T8),mb=()=>Ft(C8,{}),bU=tr({pageSize:{type:Number,required:!0},pageSizes:{type:Pt(Array),default:()=>mo([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:Au}}),_U=et({name:"ElPaginationSizes"}),wU=et({..._U,props:bU,emits:["page-size-change"],setup(t,{emit:r}){const e=t,{t:n}=Do(),o=zt("pagination"),s=mb(),i=ze(e.pageSize);St(()=>e.pageSizes,(a,h)=>{if(!ol(a,h)&&Array.isArray(a)){const u=a.includes(e.pageSize)?e.pageSize:e.pageSizes[0];r("page-size-change",u)}}),St(()=>e.pageSize,a=>{i.value=a});const c=_e(()=>e.pageSizes);function l(a){var h;a!==i.value&&(i.value=a,(h=s.handleSizeChange)==null||h.call(s,Number(a)))}return(a,h)=>(Se(),Ne("span",{class:Ue(re(o).e("sizes"))},[He(re(Av),{"model-value":i.value,disabled:a.disabled,"popper-class":a.popperClass,size:a.size,teleported:a.teleported,"validate-event":!1,onChange:l},{default:De(()=>[(Se(!0),Ne(Ht,null,Cn(re(c),u=>(Se(),nt(re(Pv),{key:u,value:u,label:u+re(n)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported"])],2))}});var xU=lr(wU,[["__file","sizes.vue"]]);const SU=tr({size:{type:String,values:Au}}),CU=["disabled"],kU=et({name:"ElPaginationJumper"}),EU=et({...kU,props:SU,setup(t){const{t:r}=Do(),e=zt("pagination"),{pageCount:n,disabled:o,currentPage:s,changeEvent:i}=mb(),c=ze(),l=_e(()=>{var u;return(u=c.value)!=null?u:s==null?void 0:s.value});function a(u){c.value=u?+u:""}function h(u){u=Math.trunc(+u),i==null||i(u),c.value=void 0}return(u,f)=>(Se(),Ne("span",{class:Ue(re(e).e("jump")),disabled:re(o)},[qe("span",{class:Ue([re(e).e("goto")])},Rt(re(r)("el.pagination.goto")),3),He(re(Rf),{size:u.size,class:Ue([re(e).e("editor"),re(e).is("in-pagination")]),min:1,max:re(n),disabled:re(o),"model-value":re(l),"validate-event":!1,"aria-label":re(r)("el.pagination.page"),type:"number","onUpdate:modelValue":a,onChange:h},null,8,["size","class","max","disabled","model-value","aria-label"]),qe("span",{class:Ue([re(e).e("classifier")])},Rt(re(r)("el.pagination.pageClassifier")),3)],10,CU))}});var TU=lr(EU,[["__file","jumper.vue"]]);const AU=tr({total:{type:Number,default:1e3}}),PU=["disabled"],MU=et({name:"ElPaginationTotal"}),OU=et({...MU,props:AU,setup(t){const{t:r}=Do(),e=zt("pagination"),{disabled:n}=mb();return(o,s)=>(Se(),Ne("span",{class:Ue(re(e).e("total")),disabled:re(n)},Rt(re(r)("el.pagination.total",{total:o.total})),11,PU))}});var RU=lr(OU,[["__file","total.vue"]]);const IU=tr({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),$U=["onKeyup"],LU=["aria-current","aria-label","tabindex"],NU=["tabindex","aria-label"],DU=["aria-current","aria-label","tabindex"],jU=["tabindex","aria-label"],BU=["aria-current","aria-label","tabindex"],FU=et({name:"ElPaginationPager"}),zU=et({...FU,props:IU,emits:["change"],setup(t,{emit:r}){const e=t,n=zt("pager"),o=zt("icon"),{t:s}=Do(),i=ze(!1),c=ze(!1),l=ze(!1),a=ze(!1),h=ze(!1),u=ze(!1),f=_e(()=>{const E=e.pagerCount,O=(E-1)/2,j=Number(e.currentPage),W=Number(e.pageCount);let z=!1,U=!1;W>E&&(j>E-O&&(z=!0),j["more","btn-quickprev",o.b(),n.is("disabled",e.disabled)]),m=_e(()=>["more","btn-quicknext",o.b(),n.is("disabled",e.disabled)]),p=_e(()=>e.disabled?-1:0);cc(()=>{const E=(e.pagerCount-1)/2;i.value=!1,c.value=!1,e.pageCount>e.pagerCount&&(e.currentPage>e.pagerCount-E&&(i.value=!0),e.currentPageW&&(j=W)),j!==z&&r("change",j)}return(E,O)=>(Se(),Ne("ul",{class:Ue(re(n).b()),onClick:_,onKeyup:po(b,["enter"])},[E.pageCount>0?(Se(),Ne("li",{key:0,class:Ue([[re(n).is("active",E.currentPage===1),re(n).is("disabled",E.disabled)],"number"]),"aria-current":E.currentPage===1,"aria-label":re(s)("el.pagination.currentPage",{pager:1}),tabindex:re(p)}," 1 ",10,LU)):at("v-if",!0),i.value?(Se(),Ne("li",{key:1,class:Ue(re(d)),tabindex:re(p),"aria-label":re(s)("el.pagination.prevPages",{pager:E.pagerCount-2}),onMouseenter:O[0]||(O[0]=j=>g(!0)),onMouseleave:O[1]||(O[1]=j=>l.value=!1),onFocus:O[2]||(O[2]=j=>v(!0)),onBlur:O[3]||(O[3]=j=>h.value=!1)},[(l.value||h.value)&&!E.disabled?(Se(),nt(re(FN),{key:0})):(Se(),nt(re(W2),{key:1}))],42,NU)):at("v-if",!0),(Se(!0),Ne(Ht,null,Cn(re(f),j=>(Se(),Ne("li",{key:j,class:Ue([[re(n).is("active",E.currentPage===j),re(n).is("disabled",E.disabled)],"number"]),"aria-current":E.currentPage===j,"aria-label":re(s)("el.pagination.currentPage",{pager:j}),tabindex:re(p)},Rt(j),11,DU))),128)),c.value?(Se(),Ne("li",{key:2,class:Ue(re(m)),tabindex:re(p),"aria-label":re(s)("el.pagination.nextPages",{pager:E.pagerCount-2}),onMouseenter:O[4]||(O[4]=j=>g()),onMouseleave:O[5]||(O[5]=j=>a.value=!1),onFocus:O[6]||(O[6]=j=>v()),onBlur:O[7]||(O[7]=j=>u.value=!1)},[(a.value||u.value)&&!E.disabled?(Se(),nt(re(VN),{key:0})):(Se(),nt(re(W2),{key:1}))],42,jU)):at("v-if",!0),E.pageCount>1?(Se(),Ne("li",{key:3,class:Ue([[re(n).is("active",E.currentPage===E.pageCount),re(n).is("disabled",E.disabled)],"number"]),"aria-current":E.currentPage===E.pageCount,"aria-label":re(s)("el.pagination.currentPage",{pager:E.pageCount}),tabindex:re(p)},Rt(E.pageCount),11,BU)):at("v-if",!0)],42,$U))}});var VU=lr(zU,[["__file","pager.vue"]]);const Li=t=>typeof t!="number",HU=tr({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:t=>rn(t)&&Math.trunc(t)===t&&t>4&&t<22&&t%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:Pt(Array),default:()=>mo([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:Yn,default:()=>a5},nextText:{type:String,default:""},nextIcon:{type:Yn,default:()=>Om},teleported:{type:Boolean,default:!0},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),UU={"update:current-page":t=>rn(t),"update:page-size":t=>rn(t),"size-change":t=>rn(t),change:(t,r)=>rn(t)&&rn(r),"current-change":t=>rn(t),"prev-click":t=>rn(t),"next-click":t=>rn(t)},I3="ElPagination";var WU=et({name:I3,props:HU,emits:UU,setup(t,{emit:r,slots:e}){const{t:n}=Do(),o=zt("pagination"),s=an().vnode.props||{},i="onUpdate:currentPage"in s||"onUpdate:current-page"in s||"onCurrentChange"in s,c="onUpdate:pageSize"in s||"onUpdate:page-size"in s||"onSizeChange"in s,l=_e(()=>{if(Li(t.total)&&Li(t.pageCount)||!Li(t.currentPage)&&!i)return!1;if(t.layout.includes("sizes")){if(Li(t.pageCount)){if(!Li(t.total)&&!Li(t.pageSize)&&!c)return!1}else if(!c)return!1}return!0}),a=ze(Li(t.defaultPageSize)?10:t.defaultPageSize),h=ze(Li(t.defaultCurrentPage)?1:t.defaultCurrentPage),u=_e({get(){return Li(t.pageSize)?a.value:t.pageSize},set(_){Li(t.pageSize)&&(a.value=_),c&&(r("update:page-size",_),r("size-change",_))}}),f=_e(()=>{let _=0;return Li(t.pageCount)?Li(t.total)||(_=Math.max(1,Math.ceil(t.total/u.value))):_=t.pageCount,_}),d=_e({get(){return Li(t.currentPage)?h.value:t.currentPage},set(_){let E=_;_<1?E=1:_>f.value&&(E=f.value),Li(t.currentPage)&&(h.value=E),i&&(r("update:current-page",E),r("current-change",E))}});St(f,_=>{d.value>_&&(d.value=_)}),St([d,u],_=>{r("change",..._)},{flush:"post"});function m(_){d.value=_}function p(_){u.value=_;const E=f.value;d.value>E&&(d.value=E)}function g(){t.disabled||(d.value-=1,r("prev-click",d.value))}function v(){t.disabled||(d.value+=1,r("next-click",d.value))}function b(_,E){_&&(_.props||(_.props={}),_.props.class=[_.props.class,E].join(" "))}return pn(C8,{pageCount:f,disabled:_e(()=>t.disabled),currentPage:d,changeEvent:m,handleSizeChange:p}),()=>{var _,E;if(!l.value)return n("el.pagination.deprecationWarning"),null;if(!t.layout||t.hideOnSinglePage&&f.value<=1)return null;const O=[],j=[],W=Dr("div",{class:o.e("rightwrapper")},j),z={prev:Dr(GH,{disabled:t.disabled,currentPage:d.value,prevText:t.prevText,prevIcon:t.prevIcon,onClick:g}),jumper:Dr(TU,{size:t.small?"small":"default"}),pager:Dr(VU,{currentPage:d.value,pageCount:f.value,pagerCount:t.pagerCount,onChange:m,disabled:t.disabled}),next:Dr(QH,{disabled:t.disabled,currentPage:d.value,pageCount:f.value,nextText:t.nextText,nextIcon:t.nextIcon,onClick:v}),sizes:Dr(xU,{pageSize:u.value,pageSizes:t.pageSizes,popperClass:t.popperClass,disabled:t.disabled,teleported:t.teleported,size:t.small?"small":"default"}),slot:(E=(_=e==null?void 0:e.default)==null?void 0:_.call(e))!=null?E:null,total:Dr(RU,{total:Li(t.total)?0:t.total})},U=t.layout.split(",").map(Y=>Y.trim());let K=!1;return U.forEach(Y=>{if(Y==="->"){K=!0;return}K?j.push(z[Y]):O.push(z[Y])}),b(O[0],o.is("first")),b(O[O.length-1],o.is("last")),K&&j.length>0&&(b(j[0],o.is("first")),b(j[j.length-1],o.is("last")),O.push(W)),Dr("div",{class:[o.b(),o.is("background",t.background),{[o.m("small")]:t.small}]},O)}}});const qU=Zn(WU);var $3=Number.isNaN||function(r){return typeof r=="number"&&r!==r};function GU(t,r){return!!(t===r||$3(t)&&$3(r))}function KU(t,r){if(t.length!==r.length)return!1;for(var e=0;e{const r=an().proxy.$props;return _e(()=>{const e=(n,o,s)=>({});return r.perfMode?Am(e):ZU(e)})},YU=50,L3="itemRendered",N3="scroll",A8="forward",P8="backward",hf="auto",M8="smart",O8="start",Xp="center",R8="end",bu="horizontal",gb="vertical",JU="ltr",Cp="rtl",Mv="negative",I8="positive-ascending",$8="positive-descending",QU={[bu]:"left",[gb]:"top"},eW=20,tW={[bu]:"deltaX",[gb]:"deltaY"},rW=({atEndEdge:t,atStartEdge:r,layout:e},n)=>{let o,s=0;const i=l=>l<0&&r.value||l>0&&t.value;return{hasReachedEdge:i,onWheel:l=>{i5(o);const a=l[tW[e.value]];i(s)&&i(s+a)||(s+=a,E6()||l.preventDefault(),o=n5(()=>{n(s),s=0}))}}},Ov=as({type:Pt([Number,Function]),required:!0}),Rv=as({type:Number}),Iv=as({type:Number,default:2}),nW=as({type:String,values:["ltr","rtl"],default:"ltr"}),$v=as({type:Number,default:0}),Yp=as({type:Number,required:!0}),L8=as({type:String,values:["horizontal","vertical"],default:gb}),N8=tr({className:{type:String,default:""},containerElement:{type:Pt([String,Object]),default:"div"},data:{type:Pt(Array),default:()=>mo([])},direction:nW,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:Pt([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),iW=tr({cache:Iv,estimatedItemSize:Rv,layout:L8,initScrollOffset:$v,total:Yp,itemSize:Ov,...N8}),Lv={type:Number,default:6},D8={type:Number,default:0},j8={type:Number,default:2};tr({columnCache:Iv,columnWidth:Ov,estimatedColumnWidth:Rv,estimatedRowHeight:Rv,initScrollLeft:$v,initScrollTop:$v,itemKey:{type:Pt(Function),default:({columnIndex:t,rowIndex:r})=>`${r}:${t}`},rowCache:Iv,rowHeight:Ov,totalColumn:Yp,totalRow:Yp,hScrollbarSize:Lv,vScrollbarSize:Lv,scrollbarStartGap:D8,scrollbarEndGap:j8,role:String,...N8});const oW=tr({alwaysOn:Boolean,class:String,layout:L8,total:Yp,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:Lv,startGap:D8,endGap:j8,visible:Boolean}),M0=(t,r)=>tt===JU||t===Cp||t===bu;let Vc=null;function D3(t=!1){if(Vc===null||t){const r=document.createElement("div"),e=r.style;e.width="50px",e.height="50px",e.overflow="scroll",e.direction="rtl";const n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",r.appendChild(n),document.body.appendChild(r),r.scrollLeft>0?Vc=$8:(r.scrollLeft=1,r.scrollLeft===0?Vc=Mv:Vc=I8),document.body.removeChild(r),Vc}return Vc}function sW({move:t,size:r,bar:e},n){const o={},s=`translate${e.axis}(${t}px)`;return o[e.size]=r,o.transform=s,o.msTransform=s,o.webkitTransform=s,n==="horizontal"?o.height="100%":o.width="100%",o}const aW=et({name:"ElVirtualScrollBar",props:oW,emits:["scroll","start-move","stop-move"],setup(t,{emit:r}){const e=_e(()=>t.startGap+t.endGap),n=zt("virtual-scrollbar"),o=zt("scrollbar"),s=ze(),i=ze();let c=null,l=null;const a=sn({isDragging:!1,traveled:0}),h=_e(()=>H5[t.layout]),u=_e(()=>t.clientSize-re(e)),f=_e(()=>({position:"absolute",width:`${bu===t.layout?u.value:t.scrollbarSize}px`,height:`${bu===t.layout?t.scrollbarSize:u.value}px`,[QU[t.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),d=_e(()=>{const j=t.ratio,W=t.clientSize;if(j>=100)return Number.POSITIVE_INFINITY;if(j>=50)return j*W/100;const z=W/3;return Math.floor(Math.min(Math.max(j*W,eW),z))}),m=_e(()=>{if(!Number.isFinite(d.value))return{display:"none"};const j=`${d.value}px`;return sW({bar:h.value,size:j,move:a.traveled},t.layout)}),p=_e(()=>Math.floor(t.clientSize-d.value-re(e))),g=()=>{window.addEventListener("mousemove",E),window.addEventListener("mouseup",_);const j=re(i);j&&(l=document.onselectstart,document.onselectstart=()=>!1,j.addEventListener("touchmove",E),j.addEventListener("touchend",_))},v=()=>{window.removeEventListener("mousemove",E),window.removeEventListener("mouseup",_),document.onselectstart=l,l=null;const j=re(i);j&&(j.removeEventListener("touchmove",E),j.removeEventListener("touchend",_))},b=j=>{j.stopImmediatePropagation(),!(j.ctrlKey||[1,2].includes(j.button))&&(a.isDragging=!0,a[h.value.axis]=j.currentTarget[h.value.offset]-(j[h.value.client]-j.currentTarget.getBoundingClientRect()[h.value.direction]),r("start-move"),g())},_=()=>{a.isDragging=!1,a[h.value.axis]=0,r("stop-move"),v()},E=j=>{const{isDragging:W}=a;if(!W||!i.value||!s.value)return;const z=a[h.value.axis];if(!z)return;i5(c);const U=(s.value.getBoundingClientRect()[h.value.direction]-j[h.value.client])*-1,K=i.value[h.value.offset]-z,Y=U-K;c=n5(()=>{a.traveled=Math.max(t.startGap,Math.min(Y,p.value)),r("scroll",Y,p.value)})},O=j=>{const W=Math.abs(j.target.getBoundingClientRect()[h.value.direction]-j[h.value.client]),z=i.value[h.value.offset]/2,U=W-z;a.traveled=Math.max(0,Math.min(U,p.value)),r("scroll",U,p.value)};return St(()=>t.scrollFrom,j=>{a.isDragging||(a.traveled=Math.ceil(j*p.value))}),ni(()=>{v()}),()=>Dr("div",{role:"presentation",ref:s,class:[n.b(),t.class,(t.alwaysOn||a.isDragging)&&"always-on"],style:f.value,onMousedown:hn(O,["stop","prevent"]),onTouchstartPrevent:b},Dr("div",{ref:i,class:o.e("thumb"),style:m.value,onMousedown:b},[]))}}),B8=({name:t,getOffset:r,getItemSize:e,getItemOffset:n,getEstimatedTotalSize:o,getStartIndexForOffset:s,getStopIndexForStartIndex:i,initCache:c,clearCache:l,validateProps:a})=>et({name:t??"ElVirtualList",props:iW,emits:[L3,N3],setup(h,{emit:u,expose:f}){a(h);const d=an(),m=zt("vl"),p=ze(c(h,d)),g=XU(),v=ze(),b=ze(),_=ze(),E=ze({isScrolling:!1,scrollDir:"forward",scrollOffset:rn(h.initScrollOffset)?h.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:h.scrollbarAlwaysOn}),O=_e(()=>{const{total:Z,cache:H}=h,{isScrolling:ee,scrollDir:B,scrollOffset:J}=re(E);if(Z===0)return[0,0,0,0];const I=s(h,J,re(p)),$=i(h,I,J,re(p)),X=!ee||B===P8?Math.max(1,H):1,ae=!ee||B===A8?Math.max(1,H):1;return[Math.max(0,I-X),Math.max(0,Math.min(Z-1,$+ae)),I,$]}),j=_e(()=>o(h,re(p))),W=_e(()=>ff(h.layout)),z=_e(()=>[{position:"relative",[`overflow-${W.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:h.direction,height:rn(h.height)?`${h.height}px`:h.height,width:rn(h.width)?`${h.width}px`:h.width},h.style]),U=_e(()=>{const Z=re(j),H=re(W);return{height:H?"100%":`${Z}px`,pointerEvents:re(E).isScrolling?"none":void 0,width:H?`${Z}px`:"100%"}}),K=_e(()=>W.value?h.width:h.height),{onWheel:Y}=rW({atStartEdge:_e(()=>E.value.scrollOffset<=0),atEndEdge:_e(()=>E.value.scrollOffset>=j.value),layout:_e(()=>h.layout)},Z=>{var H,ee;(ee=(H=_.value).onMouseUp)==null||ee.call(H),S(Math.min(E.value.scrollOffset+Z,j.value-K.value))}),G=()=>{const{total:Z}=h;if(Z>0){const[J,I,$,X]=re(O);u(L3,J,I,$,X)}const{scrollDir:H,scrollOffset:ee,updateRequested:B}=re(E);u(N3,H,ee,B)},R=Z=>{const{clientHeight:H,scrollHeight:ee,scrollTop:B}=Z.currentTarget,J=re(E);if(J.scrollOffset===B)return;const I=Math.max(0,Math.min(B,ee-H));E.value={...J,isScrolling:!0,scrollDir:M0(J.scrollOffset,I),scrollOffset:I,updateRequested:!1},jr(M)},D=Z=>{const{clientWidth:H,scrollLeft:ee,scrollWidth:B}=Z.currentTarget,J=re(E);if(J.scrollOffset===ee)return;const{direction:I}=h;let $=ee;if(I===Cp)switch(D3()){case Mv:{$=-ee;break}case $8:{$=B-H-ee;break}}$=Math.max(0,Math.min($,B-H)),E.value={...J,isScrolling:!0,scrollDir:M0(J.scrollOffset,$),scrollOffset:$,updateRequested:!1},jr(M)},k=Z=>{re(W)?D(Z):R(Z),G()},x=(Z,H)=>{const ee=(j.value-K.value)/H*Z;S(Math.min(j.value-K.value,ee))},S=Z=>{Z=Math.max(Z,0),Z!==re(E).scrollOffset&&(E.value={...re(E),scrollOffset:Z,scrollDir:M0(re(E).scrollOffset,Z),updateRequested:!0},jr(M))},C=(Z,H=hf)=>{const{scrollOffset:ee}=re(E);Z=Math.max(0,Math.min(Z,h.total-1)),S(r(h,Z,H,ee,re(p)))},T=Z=>{const{direction:H,itemSize:ee,layout:B}=h,J=g.value(l&&ee,l&&B,l&&H);let I;if(Wr(J,String(Z)))I=J[Z];else{const $=n(h,Z,re(p)),X=e(h,Z,re(p)),ae=re(W),fe=H===Cp,te=ae?$:0;J[Z]=I={position:"absolute",left:fe?void 0:`${te}px`,right:fe?`${te}px`:void 0,top:ae?0:`${$}px`,height:ae?"100%":`${X}px`,width:ae?`${X}px`:"100%"}}return I},M=()=>{E.value.isScrolling=!1,jr(()=>{g.value(-1,null,null)})},N=()=>{const Z=v.value;Z&&(Z.scrollTop=0)};ln(()=>{if(!_n)return;const{initScrollOffset:Z}=h,H=re(v);rn(Z)&&H&&(re(W)?H.scrollLeft=Z:H.scrollTop=Z),G()}),vc(()=>{const{direction:Z,layout:H}=h,{scrollOffset:ee,updateRequested:B}=re(E),J=re(v);if(B&&J)if(H===bu)if(Z===Cp)switch(D3()){case Mv:{J.scrollLeft=-ee;break}case I8:{J.scrollLeft=ee;break}default:{const{clientWidth:I,scrollWidth:$}=J;J.scrollLeft=$-I-ee;break}}else J.scrollLeft=ee;else J.scrollTop=ee});const F={ns:m,clientSize:K,estimatedTotalSize:j,windowStyle:z,windowRef:v,innerRef:b,innerStyle:U,itemsToRender:O,scrollbarRef:_,states:E,getItemStyle:T,onScroll:k,onScrollbarScroll:x,onWheel:Y,scrollTo:S,scrollToItem:C,resetScrollTop:N};return f({windowRef:v,innerRef:b,getItemStyleCache:g,scrollTo:S,scrollToItem:C,resetScrollTop:N,states:E}),F},render(h){var u;const{$slots:f,className:d,clientSize:m,containerElement:p,data:g,getItemStyle:v,innerElement:b,itemsToRender:_,innerStyle:E,layout:O,total:j,onScroll:W,onScrollbarScroll:z,onWheel:U,states:K,useIsScrolling:Y,windowStyle:G,ns:R}=h,[D,k]=_,x=on(p),S=on(b),C=[];if(j>0)for(let F=D;F<=k;F++)C.push((u=f.default)==null?void 0:u.call(f,{data:g,key:F,index:F,isScrolling:Y?K.isScrolling:void 0,style:v(F)}));const T=[Dr(S,{style:E,ref:"innerRef"},mr(S)?C:{default:()=>C})],M=Dr(aW,{ref:"scrollbarRef",clientSize:m,layout:O,onScroll:z,ratio:m*100/this.estimatedTotalSize,scrollFrom:K.scrollOffset/(this.estimatedTotalSize-m),total:j}),N=Dr(x,{class:[R.e("window"),d],style:G,onScroll:W,onWheel:U,ref:"windowRef",key:0},mr(x)?[T]:{default:()=>[T]});return Dr("div",{key:0,class:[R.e("wrapper"),K.scrollbarAlwaysOn?"always-on":""]},[N,M])}}),lW=B8({name:"ElFixedSizeList",getItemOffset:({itemSize:t},r)=>r*t,getItemSize:({itemSize:t})=>t,getEstimatedTotalSize:({total:t,itemSize:r})=>r*t,getOffset:({height:t,total:r,itemSize:e,layout:n,width:o},s,i,c)=>{const l=ff(n)?o:t,a=Math.max(0,r*e-l),h=Math.min(a,s*e),u=Math.max(0,(s+1)*e-l);switch(i===M8&&(c>=u-l&&c<=h+l?i=hf:i=Xp),i){case O8:return h;case R8:return u;case Xp:{const f=Math.round(u+(h-u)/2);return fa+Math.floor(l/2)?a:f}case hf:default:return c>=u&&c<=h?c:cMath.max(0,Math.min(t-1,Math.floor(e/r))),getStopIndexForStartIndex:({height:t,total:r,itemSize:e,layout:n,width:o},s,i)=>{const c=s*e,l=ff(n)?o:t,a=Math.ceil((l+i-c)/e);return Math.max(0,Math.min(r-1,s+a-1))},initCache(){},clearCache:!0,validateProps(){}}),eu=(t,r,e)=>{const{itemSize:n}=t,{items:o,lastVisitedIndex:s}=e;if(r>s){let i=0;if(s>=0){const c=o[s];i=c.offset+c.size}for(let c=s+1;c<=r;c++){const l=n(c);o[c]={offset:i,size:l},i+=l}e.lastVisitedIndex=r}return o[r]},cW=(t,r,e)=>{const{items:n,lastVisitedIndex:o}=r;return(o>0?n[o].offset:0)>=e?F8(t,r,0,o,e):uW(t,r,Math.max(0,o),e)},F8=(t,r,e,n,o)=>{for(;e<=n;){const s=e+Math.floor((n-e)/2),i=eu(t,s,r).offset;if(i===o)return s;io&&(n=s-1)}return Math.max(0,e-1)},uW=(t,r,e,n)=>{const{total:o}=t;let s=1;for(;e{let o=0;if(n>=t&&(n=t-1),n>=0){const c=r[n];o=c.offset+c.size}const i=(t-n-1)*e;return o+i},hW=B8({name:"ElDynamicSizeList",getItemOffset:(t,r,e)=>eu(t,r,e).offset,getItemSize:(t,r,{items:e})=>e[r].size,getEstimatedTotalSize:j3,getOffset:(t,r,e,n,o)=>{const{height:s,layout:i,width:c}=t,l=ff(i)?c:s,a=eu(t,r,o),h=j3(t,o),u=Math.max(0,Math.min(h-l,a.offset)),f=Math.max(0,a.offset-l+a.size);switch(e===M8&&(n>=f-l&&n<=u+l?e=hf:e=Xp),e){case O8:return u;case R8:return f;case Xp:return Math.round(f+(u-f)/2);case hf:default:return n>=f&&n<=u?n:ncW(t,e,r),getStopIndexForStartIndex:(t,r,e,n)=>{const{height:o,total:s,layout:i,width:c}=t,l=ff(i)?c:o,a=eu(t,r,n),h=e+l;let u=a.offset+a.size,f=r;for(;f{var s,i;e.lastVisitedIndex=Math.min(e.lastVisitedIndex,n-1),(s=r.exposed)==null||s.getItemStyleCache(-1),o&&((i=r.proxy)==null||i.$forceUpdate())},e},clearCache:!1,validateProps:({itemSize:t})=>{}}),fW=et({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:zt("select")}}});function dW(t,r,e,n,o,s){return t.item.isTitle?(Se(),Ne("div",{key:0,class:Ue(t.ns.be("group","title")),style:tn([t.style,{lineHeight:`${t.height}px`}])},Rt(t.item.label),7)):(Se(),Ne("div",{key:1,class:Ue(t.ns.be("group","split")),style:tn(t.style)},[qe("span",{class:Ue(t.ns.be("group","split-dash")),style:tn({top:`${t.height/2}px`})},null,6)],6))}var pW=lr(fW,[["render",dW],["__file","group-item.vue"]]);function mW(t,{emit:r}){return{hoverItem:()=>{t.disabled||r("hover",t.index)},selectOptionClick:()=>{t.disabled||r("select",t.item,t.index)}}}const z8={label:"label",value:"value",disabled:"disabled",options:"options"};function Bm(t){const r=_e(()=>({...z8,...t.props}));return{aliasProps:r,getLabel:i=>zn(i,r.value.label),getValue:i=>zn(i,r.value.value),getDisabled:i=>zn(i,r.value.disabled),getOptions:i=>zn(i,r.value.options)}}const gW=tr({allowCreate:Boolean,autocomplete:{type:Pt(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:Yn,default:Rm},effect:{type:Pt(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:Pt([Array,String,Number,Boolean,Object])},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:Pt(Array),required:!0},placeholder:{type:String},teleported:Nm.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Pt(Object),default:()=>({})},remote:Boolean,size:Pu,props:{type:Pt(Object),default:()=>z8},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},placement:{type:Pt(String),values:Tf,default:"bottom-start"},fallbackPlacements:{type:Pt(Array),default:["bottom-start","top-start","right","left"]},tagType:{...fb.type,default:"info"},...N5,...ml(["ariaLabel"])}),vW=tr({data:Array,disabled:Boolean,hovering:Boolean,item:{type:Pt(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),vb=Symbol("ElSelectV2Injection"),yW=et({props:vW,emits:["select","hover"],setup(t,{emit:r}){const e=Ft(vb),n=zt("select"),{hoverItem:o,selectOptionClick:s}=mW(t,{emit:r}),{getLabel:i}=Bm(e.props);return{ns:n,hoverItem:o,selectOptionClick:s,getLabel:i}}}),bW=["aria-selected"];function _W(t,r,e,n,o,s){return Se(),Ne("li",{"aria-selected":t.selected,style:tn(t.style),class:Ue([t.ns.be("dropdown","item"),t.ns.is("selected",t.selected),t.ns.is("disabled",t.disabled),t.ns.is("created",t.created),t.ns.is("hovering",t.hovering)]),onMouseenter:r[0]||(r[0]=(...i)=>t.hoverItem&&t.hoverItem(...i)),onClick:r[1]||(r[1]=hn((...i)=>t.selectOptionClick&&t.selectOptionClick(...i),["stop"]))},[kt(t.$slots,"default",{item:t.item,index:t.index,disabled:t.disabled},()=>[qe("span",null,Rt(t.getLabel(t.item)),1)])],46,bW)}var wW=lr(yW,[["render",_W],["__file","option-item.vue"]]),xW=et({name:"ElSelectDropdown",props:{loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(t,{slots:r,expose:e}){const n=Ft(vb),o=zt("select"),{getLabel:s,getValue:i,getDisabled:c}=Bm(n.props),l=ze([]),a=ze(),h=_e(()=>t.data.length);St(()=>h.value,()=>{var Y,G;(G=(Y=n.tooltipRef.value).updatePopper)==null||G.call(Y)});const u=_e(()=>sl(n.props.estimatedOptionHeight)),f=_e(()=>u.value?{itemSize:n.props.itemHeight}:{estimatedSize:n.props.estimatedOptionHeight,itemSize:Y=>l.value[Y]}),d=(Y=[],G)=>{const{props:{valueKey:R}}=n;return dr(G)?Y&&Y.some(D=>Mr(zn(D,R))===zn(G,R)):Y.includes(G)},m=(Y,G)=>{if(dr(G)){const{valueKey:R}=n.props;return zn(Y,R)===zn(G,R)}else return Y===G},p=(Y,G)=>n.props.multiple?d(Y,i(G)):m(Y,i(G)),g=(Y,G)=>{const{disabled:R,multiple:D,multipleLimit:k}=n.props;return R||!G&&(D?k>0&&Y.length>=k:!1)},v=Y=>t.hoveringIndex===Y;e({listRef:a,isSized:u,isItemDisabled:g,isItemHovering:v,isItemSelected:p,scrollToItem:Y=>{const G=a.value;G&&G.scrollToItem(Y)},resetScrollTop:()=>{const Y=a.value;Y&&Y.resetScrollTop()}});const E=Y=>{const{index:G,data:R,style:D}=Y,k=re(u),{itemSize:x,estimatedSize:S}=re(f),{modelValue:C}=n.props,{onSelect:T,onHover:M}=n,N=R[G];if(N.type==="Group")return He(pW,{item:N,style:D,height:k?x:S},null);const F=p(C,N),Z=g(C,F),H=v(G);return He(wW,Bi(Y,{selected:F,disabled:c(N)||Z,created:!!N.created,hovering:H,item:N,onSelect:T,onHover:M}),{default:ee=>{var B;return((B=r.default)==null?void 0:B.call(r,ee))||He("span",null,[s(N)])}})},{onKeyboardNavigate:O,onKeyboardSelect:j}=n,W=()=>{O("forward")},z=()=>{O("backward")},U=()=>{n.expanded=!1},K=Y=>{const{code:G}=Y,{tab:R,esc:D,down:k,up:x,enter:S}=Rn;switch(G!==R&&(Y.preventDefault(),Y.stopPropagation()),G){case R:case D:{U();break}case k:{W();break}case x:{z();break}case S:{j();break}}};return()=>{var Y,G,R,D;const{data:k,width:x}=t,{height:S,multiple:C,scrollbarAlwaysOn:T}=n.props,M=re(u)?lW:hW;return He("div",{class:[o.b("dropdown"),o.is("multiple",C)],style:{width:`${x}px`}},[(Y=r.header)==null?void 0:Y.call(r),((G=r.loading)==null?void 0:G.call(r))||((R=r.empty)==null?void 0:R.call(r))||He(M,Bi({ref:a},re(f),{className:o.be("dropdown","list"),scrollbarAlwaysOn:T,data:k,height:S,width:x,total:k.length,onKeydown:K}),{default:N=>He(E,N,null)}),(D=r.footer)==null?void 0:D.call(r)])}}});function SW(t,r){const{aliasProps:e,getLabel:n,getValue:o}=Bm(t),s=ze(0),i=ze(null),c=_e(()=>t.allowCreate&&t.filterable);function l(d){const m=p=>n(p)===d;return t.options&&t.options.some(m)||r.createdOptions.some(m)}function a(d){c.value&&(t.multiple&&d.created?s.value++:i.value=d)}function h(d){if(c.value)if(d&&d.length>0){if(l(d))return;const m={[e.value.value]:d,[e.value.label]:d,created:!0,[e.value.disabled]:!1};r.createdOptions.length>=s.value?r.createdOptions[s.value]=m:r.createdOptions.push(m)}else if(t.multiple)r.createdOptions.length=s.value;else{const m=i.value;r.createdOptions.length=0,m&&m.created&&r.createdOptions.push(m)}}function u(d){if(!c.value||!d||!d.created||d.created&&t.reserveKeyword&&r.inputValue===n(d))return;const m=r.createdOptions.findIndex(p=>o(p)===o(d));~m&&(r.createdOptions.splice(m,1),s.value--)}function f(){c.value&&(r.createdOptions.length=0,s.value=0)}return{createNewOption:h,removeNewOption:u,selectNewOption:a,clearAllNewOption:f}}const CW=11,kW=(t,r)=>{const{t:e}=Do(),n=zt("select"),o=zt("input"),{form:s,formItem:i}=_c(),{inputId:c}=Mf(t,{formItemContext:i}),{aliasProps:l,getLabel:a,getValue:h,getDisabled:u,getOptions:f}=Bm(t),{valueOnClear:d,isEmptyValue:m}=D5(t),p=sn({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),g=ze(-1),v=ze(null),b=ze(null),_=ze(null),E=ze(null),O=ze(null),j=ze(null),W=ze(null),z=ze(null),U=ze(null),K=ze(null),Y=ze(null),{wrapperRef:G,isFocused:R,handleFocus:D,handleBlur:k}=ob(O,{afterFocus(){t.automaticDropdown&&!C.value&&(C.value=!0,p.menuVisibleOnFocus=!0)},beforeBlur(je){var ot,pe;return((ot=_.value)==null?void 0:ot.isFocusInsideContent(je))||((pe=E.value)==null?void 0:pe.isFocusInsideContent(je))},afterBlur(){C.value=!1,p.menuVisibleOnFocus=!1}}),x=ze([]),S=ze([]),C=ze(!1),T=_e(()=>t.disabled||(s==null?void 0:s.disabled)),M=_e(()=>{const je=S.value.length*t.itemHeight;return je>t.height?t.height:je}),N=_e(()=>t.multiple?Et(t.modelValue)&&t.modelValue.length>0:!m(t.modelValue)),F=_e(()=>t.clearable&&!T.value&&p.inputHovering&&N.value),Z=_e(()=>t.remote&&t.filterable?"":Uy),H=_e(()=>Z.value&&n.is("reverse",C.value)),ee=_e(()=>(i==null?void 0:i.validateState)||""),B=_e(()=>Gy[ee.value]),J=_e(()=>t.remote?300:0),I=_e(()=>t.loading?t.loadingText||e("el.select.loading"):t.remote&&!p.inputValue&&x.value.length===0?!1:t.filterable&&p.inputValue&&x.value.length>0&&S.value.length===0?t.noMatchText||e("el.select.noMatch"):x.value.length===0?t.noDataText||e("el.select.noData"):null),$=je=>{const ot=pe=>{if(t.filterable&&Wt(t.filterMethod)||t.filterable&&t.remote&&Wt(t.remoteMethod))return!0;const Ie=new RegExp(o5(je),"i");return je?Ie.test(a(pe)||""):!0};return t.loading?[]:[...p.createdOptions,...t.options].reduce((pe,Ie)=>{const Je=f(Ie);if(Et(Je)){const rt=Je.filter(ot);rt.length>0&&pe.push({label:a(Ie),isTitle:!0,type:"Group"},...rt,{type:"Group"})}else(t.remote||ot(Ie))&&pe.push(Ie);return pe},[])},X=()=>{x.value=$(""),S.value=$(p.inputValue)},ae=_e(()=>{const je=new Map;return x.value.forEach((ot,pe)=>{je.set(Nt(h(ot)),{option:ot,index:pe})}),je}),fe=_e(()=>{const je=new Map;return S.value.forEach((ot,pe)=>{je.set(Nt(h(ot)),{option:ot,index:pe})}),je}),te=_e(()=>S.value.every(je=>u(je))),ie=ua(),de=_e(()=>ie.value==="small"?"small":"default"),me=()=>{var je;g.value=((je=v.value)==null?void 0:je.offsetWidth)||200},se=()=>{if(!b.value)return 0;const je=window.getComputedStyle(b.value);return Number.parseFloat(je.gap||"6px")},ve=_e(()=>{const je=se();return{maxWidth:`${Y.value&&t.maxCollapseTags===1?p.selectionWidth-p.collapseItemWidth-je:p.selectionWidth}px`}}),be=_e(()=>({maxWidth:`${p.selectionWidth}px`})),ke=_e(()=>({width:`${Math.max(p.calculatorWidth,CW)}px`})),Ce=_e(()=>Et(t.modelValue)?t.modelValue.length===0&&!p.inputValue:t.filterable?!p.inputValue:!0),Ee=_e(()=>{var je;const ot=(je=t.placeholder)!=null?je:e("el.select.placeholder");return t.multiple||!N.value?ot:p.selectedLabel}),Me=_e(()=>{var je,ot;return(ot=(je=_.value)==null?void 0:je.popperRef)==null?void 0:ot.contentRef}),Le=_e(()=>{if(t.multiple){const je=t.modelValue.length;if(t.modelValue.length>0&&fe.value.has(t.modelValue[je-1])){const{index:ot}=fe.value.get(t.modelValue[je-1]);return ot}}else if(t.modelValue&&fe.value.has(t.modelValue)){const{index:je}=fe.value.get(t.modelValue);return je}return-1}),Ae=_e({get(){return C.value&&I.value!==!1},set(je){C.value=je}}),Fe=_e(()=>t.multiple?t.collapseTags?p.cachedOptions.slice(0,t.maxCollapseTags):p.cachedOptions:[]),Ge=_e(()=>t.multiple?t.collapseTags?p.cachedOptions.slice(t.maxCollapseTags):[]:[]),{createNewOption:Ye,removeNewOption:lt,selectNewOption:vt,clearAllNewOption:xt}=SW(t,p),{handleCompositionStart:Tt,handleCompositionUpdate:gt,handleCompositionEnd:ct}=E8(je=>yt(je)),bt=()=>{T.value||(p.menuVisibleOnFocus?p.menuVisibleOnFocus=!1:C.value=!C.value)},wt=()=>{p.inputValue.length>0&&!C.value&&(C.value=!0),Ye(p.inputValue),or(p.inputValue)},ft=J6(wt,J.value),or=je=>{p.previousQuery!==je&&(p.previousQuery=je,t.filterable&&Wt(t.filterMethod)?t.filterMethod(je):t.filterable&&t.remote&&Wt(t.remoteMethod)&&t.remoteMethod(je),t.defaultFirstOption&&(t.filterable||t.remote)&&S.value.length?jr(Rr):jr(ut))},Rr=()=>{const je=S.value.filter(Ie=>!Ie.disabled&&Ie.type!=="Group"),ot=je.find(Ie=>Ie.created),pe=je[0];p.hoveringIndex=ar(S.value,ot||pe)},Vt=je=>{ol(t.modelValue,je)||r(Tu,je)},sr=je=>{r(Ln,je),Vt(je),p.previousValue=t.multiple?String(je):je},ar=(je=[],ot)=>{if(!dr(ot))return je.indexOf(ot);const pe=t.valueKey;let Ie=-1;return je.some((Je,rt)=>zn(Je,pe)===zn(ot,pe)?(Ie=rt,!0):!1),Ie},Nt=je=>dr(je)?zn(je,t.valueKey):je,_r=()=>{me()},wr=()=>{p.selectionWidth=b.value.getBoundingClientRect().width},Ut=()=>{p.calculatorWidth=j.value.getBoundingClientRect().width},vr=()=>{p.collapseItemWidth=Y.value.getBoundingClientRect().width},gr=()=>{var je,ot;(ot=(je=_.value)==null?void 0:je.updatePopper)==null||ot.call(je)},qt=()=>{var je,ot;(ot=(je=E.value)==null?void 0:je.updatePopper)==null||ot.call(je)},Sr=je=>{if(t.multiple){let ot=t.modelValue.slice();const pe=ar(ot,h(je));pe>-1?(ot=[...ot.slice(0,pe),...ot.slice(pe+1)],p.cachedOptions.splice(pe,1),lt(je)):(t.multipleLimit<=0||ot.length{let pe=t.modelValue.slice();const Ie=ar(pe,h(ot));Ie>-1&&!T.value&&(pe=[...t.modelValue.slice(0,Ie),...t.modelValue.slice(Ie+1)],p.cachedOptions.splice(Ie,1),sr(pe),r("remove-tag",h(ot)),lt(ot)),je.stopPropagation(),Zt()},Zt=()=>{var je;(je=O.value)==null||je.focus()},Re=()=>{var je;(je=O.value)==null||je.blur()},ue=()=>{p.inputValue.length>0?p.inputValue="":C.value=!1},le=je=>Q6(je,ot=>!p.cachedOptions.some(pe=>h(pe)===ot&&u(pe))),Te=je=>{if(t.multiple&&je.code!==Rn.delete&&p.inputValue.length===0){je.preventDefault();const ot=t.modelValue.slice(),pe=le(ot);if(pe<0)return;ot.splice(pe,1);const Ie=p.cachedOptions[pe];p.cachedOptions.splice(pe,1),lt(Ie),sr(ot)}},ye=()=>{let je;Et(t.modelValue)?je=[]:je=d.value,t.multiple?p.cachedOptions=[]:p.selectedLabel="",C.value=!1,sr(je),r("clear"),xt(),Zt()},xe=(je,ot=void 0)=>{const pe=S.value;if(!["forward","backward"].includes(je)||T.value||pe.length<=0||te.value)return;if(!C.value)return bt();ot===void 0&&(ot=p.hoveringIndex);let Ie=-1;je==="forward"?(Ie=ot+1,Ie>=pe.length&&(Ie=0)):je==="backward"&&(Ie=ot-1,(Ie<0||Ie>=pe.length)&&(Ie=pe.length-1));const Je=pe[Ie];if(u(Je)||Je.type==="Group")return xe(je,Ie);p.hoveringIndex=Ie,Dt(Ie)},Xe=()=>{if(C.value)~p.hoveringIndex&&S.value[p.hoveringIndex]&&Sr(S.value[p.hoveringIndex]);else return bt()},Qe=je=>{p.hoveringIndex=je},ut=()=>{t.multiple?p.hoveringIndex=S.value.findIndex(je=>t.modelValue.some(ot=>Nt(ot)===Nt(je))):p.hoveringIndex=S.value.findIndex(je=>Nt(je)===Nt(t.modelValue))},yt=je=>{if(p.inputValue=je.target.value,t.remote)ft();else return wt()},Ct=je=>{if(C.value=!1,R.value){const ot=new FocusEvent("focus",je);k(ot)}},_t=()=>(p.isBeforeHide=!1,jr(()=>{~Le.value&&Dt(p.hoveringIndex)})),Dt=je=>{U.value.scrollToItem(je)},Xt=je=>{const ot=Nt(je);if(ae.value.has(ot)){const{option:pe}=ae.value.get(ot);return pe}return{[l.value.value]:je,[l.value.label]:je}},It=()=>{if(t.multiple)if(t.modelValue.length>0){p.cachedOptions.length=0,p.previousValue=t.modelValue.toString();for(const je of t.modelValue){const ot=Xt(je);p.cachedOptions.push(ot)}}else p.cachedOptions=[],p.previousValue=void 0;else if(N.value){p.previousValue=t.modelValue;const je=S.value,ot=je.findIndex(pe=>Nt(h(pe))===Nt(t.modelValue));~ot?p.selectedLabel=a(je[ot]):p.selectedLabel=Nt(t.modelValue)}else p.selectedLabel="",p.previousValue=void 0;xt(),me()};return St(C,je=>{je?or(""):(p.inputValue="",p.previousQuery=null,p.isBeforeHide=!0,Ye("")),r("visible-change",je)}),St(()=>t.modelValue,(je,ot)=>{var pe;(!je||t.multiple&&je.toString()!==p.previousValue||!t.multiple&&Nt(je)!==Nt(p.previousValue))&&It(),!ol(je,ot)&&t.validateEvent&&((pe=i==null?void 0:i.validate)==null||pe.call(i,"change").catch(Ie=>void 0))},{deep:!0}),St(()=>t.options,()=>{const je=O.value;(!je||je&&document.activeElement!==je)&&It()},{deep:!0,flush:"post"}),St(()=>S.value,()=>U.value&&jr(U.value.resetScrollTop)),cc(()=>{p.isBeforeHide||X()}),cc(()=>{const{valueKey:je,options:ot}=t,pe=new Map;for(const Ie of ot){const Je=h(Ie);let rt=Je;if(dr(rt)&&(rt=zn(Je,je)),pe.get(rt))break;pe.set(rt,!0)}}),ln(()=>{It()}),Xn(v,_r),Xn(b,wr),Xn(j,Ut),Xn(U,gr),Xn(G,gr),Xn(K,qt),Xn(Y,vr),{inputId:c,collapseTagSize:de,currentPlaceholder:Ee,expanded:C,emptyText:I,popupHeight:M,debounce:J,allOptions:x,filteredOptions:S,iconComponent:Z,iconReverse:H,tagStyle:ve,collapseTagStyle:be,inputStyle:ke,popperSize:g,dropdownMenuVisible:Ae,hasModelValue:N,shouldShowPlaceholder:Ce,selectDisabled:T,selectSize:ie,showClearBtn:F,states:p,isFocused:R,nsSelect:n,nsInput:o,calculatorRef:j,inputRef:O,menuRef:U,tagMenuRef:K,tooltipRef:_,tagTooltipRef:E,selectRef:v,wrapperRef:G,selectionRef:b,prefixRef:W,suffixRef:z,collapseItemRef:Y,popperRef:Me,validateState:ee,validateIcon:B,showTagList:Fe,collapseTagList:Ge,debouncedOnInputChange:ft,deleteTag:Tr,getLabel:a,getValue:h,getDisabled:u,getValueKey:Nt,handleBlur:k,handleClear:ye,handleClickOutside:Ct,handleDel:Te,handleEsc:ue,handleFocus:D,focus:Zt,blur:Re,handleMenuEnter:_t,handleResize:_r,resetSelectionWidth:wr,resetCalculatorWidth:Ut,updateTooltip:gr,updateTagTooltip:qt,updateOptions:X,toggleMenu:bt,scrollTo:Dt,onInput:yt,onKeyboardNavigate:xe,onKeyboardSelect:Xe,onSelect:Sr,onHover:Qe,handleCompositionStart:Tt,handleCompositionEnd:ct,handleCompositionUpdate:gt}},EW=et({name:"ElSelectV2",components:{ElSelectMenu:xW,ElTag:f8,ElTooltip:cl,ElIcon:en},directives:{ClickOutside:hb},props:gW,emits:[Ln,Tu,"remove-tag","clear","visible-change","focus","blur"],setup(t,{emit:r}){const e=_e(()=>{const{modelValue:o,multiple:s}=t,i=s?[]:void 0;return Et(o)?s?o:i:s?i:o}),n=kW(sn({...nl(t),modelValue:e}),r);return pn(vb,{props:sn({...nl(t),height:n.popupHeight,modelValue:e}),tooltipRef:n.tooltipRef,onSelect:n.onSelect,onHover:n.onHover,onKeyboardNavigate:n.onKeyboardNavigate,onKeyboardSelect:n.onKeyboardSelect}),{...n,modelValue:e}}}),TW=["id","autocomplete","aria-expanded","aria-label","disabled","readonly","name"],AW=["textContent"];function PW(t,r,e,n,o,s){const i=Ao("el-tag"),c=Ao("el-tooltip"),l=Ao("el-icon"),a=Ao("el-select-menu"),h=xy("click-outside");return bn((Se(),Ne("div",{ref:"selectRef",class:Ue([t.nsSelect.b(),t.nsSelect.m(t.selectSize)]),onMouseenter:r[14]||(r[14]=u=>t.states.inputHovering=!0),onMouseleave:r[15]||(r[15]=u=>t.states.inputHovering=!1),onClick:r[16]||(r[16]=hn((...u)=>t.toggleMenu&&t.toggleMenu(...u),["prevent","stop"]))},[He(c,{ref:"tooltipRef",visible:t.dropdownMenuVisible,teleported:t.teleported,"popper-class":[t.nsSelect.e("popper"),t.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":t.popperOptions,"fallback-placements":t.fallbackPlacements,effect:t.effect,placement:t.placement,pure:"",transition:`${t.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:t.persistent,onBeforeShow:t.handleMenuEnter,onHide:r[13]||(r[13]=u=>t.states.isBeforeHide=!1)},{default:De(()=>[qe("div",{ref:"wrapperRef",class:Ue([t.nsSelect.e("wrapper"),t.nsSelect.is("focused",t.isFocused),t.nsSelect.is("hovering",t.states.inputHovering),t.nsSelect.is("filterable",t.filterable),t.nsSelect.is("disabled",t.selectDisabled)])},[t.$slots.prefix?(Se(),Ne("div",{key:0,ref:"prefixRef",class:Ue(t.nsSelect.e("prefix"))},[kt(t.$slots,"prefix")],2)):at("v-if",!0),qe("div",{ref:"selectionRef",class:Ue([t.nsSelect.e("selection"),t.nsSelect.is("near",t.multiple&&!t.$slots.prefix&&!!t.modelValue.length)])},[t.multiple?kt(t.$slots,"tag",{key:0},()=>[(Se(!0),Ne(Ht,null,Cn(t.showTagList,u=>(Se(),Ne("div",{key:t.getValueKey(t.getValue(u)),class:Ue(t.nsSelect.e("selected-item"))},[He(i,{closable:!t.selectDisabled&&!t.getDisabled(u),size:t.collapseTagSize,type:t.tagType,"disable-transitions":"",style:tn(t.tagStyle),onClose:f=>t.deleteTag(f,u)},{default:De(()=>[qe("span",{class:Ue(t.nsSelect.e("tags-text"))},Rt(t.getLabel(u)),3)]),_:2},1032,["closable","size","type","style","onClose"])],2))),128)),t.collapseTags&&t.modelValue.length>t.maxCollapseTags?(Se(),nt(c,{key:0,ref:"tagTooltipRef",disabled:t.dropdownMenuVisible||!t.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:t.effect,placement:"bottom",teleported:t.teleported},{default:De(()=>[qe("div",{ref:"collapseItemRef",class:Ue(t.nsSelect.e("selected-item"))},[He(i,{closable:!1,size:t.collapseTagSize,type:t.tagType,style:tn(t.collapseTagStyle),"disable-transitions":""},{default:De(()=>[qe("span",{class:Ue(t.nsSelect.e("tags-text"))}," + "+Rt(t.modelValue.length-t.maxCollapseTags),3)]),_:1},8,["size","type","style"])],2)]),content:De(()=>[qe("div",{ref:"tagMenuRef",class:Ue(t.nsSelect.e("selection"))},[(Se(!0),Ne(Ht,null,Cn(t.collapseTagList,u=>(Se(),Ne("div",{key:t.getValueKey(t.getValue(u)),class:Ue(t.nsSelect.e("selected-item"))},[He(i,{class:"in-tooltip",closable:!t.selectDisabled&&!t.getDisabled(u),size:t.collapseTagSize,type:t.tagType,"disable-transitions":"",onClose:f=>t.deleteTag(f,u)},{default:De(()=>[qe("span",{class:Ue(t.nsSelect.e("tags-text"))},Rt(t.getLabel(u)),3)]),_:2},1032,["closable","size","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):at("v-if",!0)]):at("v-if",!0),t.selectDisabled?at("v-if",!0):(Se(),Ne("div",{key:1,class:Ue([t.nsSelect.e("selected-item"),t.nsSelect.e("input-wrapper"),t.nsSelect.is("hidden",!t.filterable)])},[bn(qe("input",{id:t.inputId,ref:"inputRef","onUpdate:modelValue":r[0]||(r[0]=u=>t.states.inputValue=u),style:tn(t.inputStyle),autocomplete:t.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":t.expanded,"aria-label":t.ariaLabel,class:Ue([t.nsSelect.e("input"),t.nsSelect.is(t.selectSize)]),disabled:t.selectDisabled,role:"combobox",readonly:!t.filterable,spellcheck:"false",type:"text",name:t.name,onFocus:r[1]||(r[1]=(...u)=>t.handleFocus&&t.handleFocus(...u)),onBlur:r[2]||(r[2]=(...u)=>t.handleBlur&&t.handleBlur(...u)),onInput:r[3]||(r[3]=(...u)=>t.onInput&&t.onInput(...u)),onCompositionstart:r[4]||(r[4]=(...u)=>t.handleCompositionStart&&t.handleCompositionStart(...u)),onCompositionupdate:r[5]||(r[5]=(...u)=>t.handleCompositionUpdate&&t.handleCompositionUpdate(...u)),onCompositionend:r[6]||(r[6]=(...u)=>t.handleCompositionEnd&&t.handleCompositionEnd(...u)),onKeydown:[r[7]||(r[7]=po(hn(u=>t.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),r[8]||(r[8]=po(hn(u=>t.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),r[9]||(r[9]=po(hn((...u)=>t.onKeyboardSelect&&t.onKeyboardSelect(...u),["stop","prevent"]),["enter"])),r[10]||(r[10]=po(hn((...u)=>t.handleEsc&&t.handleEsc(...u),["stop","prevent"]),["esc"])),r[11]||(r[11]=po(hn((...u)=>t.handleDel&&t.handleDel(...u),["stop"]),["delete"]))],onClick:r[12]||(r[12]=hn((...u)=>t.toggleMenu&&t.toggleMenu(...u),["stop"]))},null,46,TW),[[w6,t.states.inputValue]]),t.filterable?(Se(),Ne("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:Ue(t.nsSelect.e("input-calculator")),textContent:Rt(t.states.inputValue)},null,10,AW)):at("v-if",!0)],2)),t.shouldShowPlaceholder?(Se(),Ne("div",{key:2,class:Ue([t.nsSelect.e("selected-item"),t.nsSelect.e("placeholder"),t.nsSelect.is("transparent",!t.hasModelValue||t.expanded&&!t.states.inputValue)])},[qe("span",null,Rt(t.currentPlaceholder),1)],2)):at("v-if",!0)],2),qe("div",{ref:"suffixRef",class:Ue(t.nsSelect.e("suffix"))},[t.iconComponent?bn((Se(),nt(l,{key:0,class:Ue([t.nsSelect.e("caret"),t.nsInput.e("icon"),t.iconReverse])},{default:De(()=>[(Se(),nt(on(t.iconComponent)))]),_:1},8,["class"])),[[Qi,!t.showClearBtn]]):at("v-if",!0),t.showClearBtn&&t.clearIcon?(Se(),nt(l,{key:1,class:Ue([t.nsSelect.e("caret"),t.nsInput.e("icon")]),onClick:hn(t.handleClear,["prevent","stop"])},{default:De(()=>[(Se(),nt(on(t.clearIcon)))]),_:1},8,["class","onClick"])):at("v-if",!0),t.validateState&&t.validateIcon?(Se(),nt(l,{key:2,class:Ue([t.nsInput.e("icon"),t.nsInput.e("validateIcon")])},{default:De(()=>[(Se(),nt(on(t.validateIcon)))]),_:1},8,["class"])):at("v-if",!0)],2)],2)]),content:De(()=>[He(a,{ref:"menuRef",data:t.filteredOptions,width:t.popperSize,"hovering-index":t.states.hoveringIndex,"scrollbar-always-on":t.scrollbarAlwaysOn},Ux({default:De(u=>[kt(t.$slots,"default",AA(l6(u)))]),_:2},[t.$slots.header?{name:"header",fn:De(()=>[qe("div",{class:Ue(t.nsSelect.be("dropdown","header"))},[kt(t.$slots,"header")],2)])}:void 0,t.$slots.loading&&t.loading?{name:"loading",fn:De(()=>[qe("div",{class:Ue(t.nsSelect.be("dropdown","loading"))},[kt(t.$slots,"loading")],2)])}:t.loading||t.filteredOptions.length===0?{name:"empty",fn:De(()=>[qe("div",{class:Ue(t.nsSelect.be("dropdown","empty"))},[kt(t.$slots,"empty",{},()=>[qe("span",null,Rt(t.emptyText),1)])],2)])}:void 0,t.$slots.footer?{name:"footer",fn:De(()=>[qe("div",{class:Ue(t.nsSelect.be("dropdown","footer"))},[kt(t.$slots,"footer")],2)])}:void 0]),1032,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","fallback-placements","effect","placement","transition","persistent","onBeforeShow"])],34)),[[h,t.handleClickOutside,t.popperRef]])}var kp=lr(EW,[["render",PW],["__file","select.vue"]]);kp.install=t=>{t.component(kp.name,kp)};const MW=kp,yb=MW,Fm=Symbol("tabsRootContextKey"),OW=tr({tabs:{type:Pt(Array),default:()=>mo([])}}),V8="ElTabBar",RW=et({name:V8}),IW=et({...RW,props:OW,setup(t,{expose:r}){const e=t,n=an(),o=Ft(Fm);o||Ls(V8,"");const s=zt("tabs"),i=ze(),c=ze(),l=()=>{let h=0,u=0;const f=["top","bottom"].includes(o.props.tabPosition)?"width":"height",d=f==="width"?"x":"y",m=d==="x"?"left":"top";return e.tabs.every(p=>{var g,v;const b=(v=(g=n.parent)==null?void 0:g.refs)==null?void 0:v[`tab-${p.uid}`];if(!b)return!1;if(!p.active)return!0;h=b[`offset${Wa(m)}`],u=b[`client${Wa(f)}`];const _=window.getComputedStyle(b);return f==="width"&&(e.tabs.length>1&&(u-=Number.parseFloat(_.paddingLeft)+Number.parseFloat(_.paddingRight)),h+=Number.parseFloat(_.paddingLeft)),!1}),{[f]:`${u}px`,transform:`translate${Wa(d)}(${h}px)`}},a=()=>c.value=l();return St(()=>e.tabs,async()=>{await jr(),a()},{immediate:!0}),Xn(i,()=>a()),r({ref:i,update:a}),(h,u)=>(Se(),Ne("div",{ref_key:"barRef",ref:i,class:Ue([re(s).e("active-bar"),re(s).is(re(o).props.tabPosition)]),style:tn(c.value)},null,6))}});var $W=lr(IW,[["__file","tab-bar.vue"]]);const LW=tr({panes:{type:Pt(Array),default:()=>mo([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),NW={tabClick:(t,r,e)=>e instanceof Event,tabRemove:(t,r)=>r instanceof Event},B3="ElTabNav",DW=et({name:B3,props:LW,emits:NW,setup(t,{expose:r,emit:e}){const n=an(),o=Ft(Fm);o||Ls(B3,"");const s=zt("tabs"),i=sO(),c=bO(),l=ze(),a=ze(),h=ze(),u=ze(),f=ze(!1),d=ze(0),m=ze(!1),p=ze(!0),g=_e(()=>["top","bottom"].includes(o.props.tabPosition)?"width":"height"),v=_e(()=>({transform:`translate${g.value==="width"?"X":"Y"}(-${d.value}px)`})),b=()=>{if(!l.value)return;const U=l.value[`offset${Wa(g.value)}`],K=d.value;if(!K)return;const Y=K>U?K-U:0;d.value=Y},_=()=>{if(!l.value||!a.value)return;const U=a.value[`offset${Wa(g.value)}`],K=l.value[`offset${Wa(g.value)}`],Y=d.value;if(U-Y<=K)return;const G=U-Y>K*2?Y+K:U-K;d.value=G},E=async()=>{const U=a.value;if(!f.value||!h.value||!l.value||!U)return;await jr();const K=h.value.querySelector(".is-active");if(!K)return;const Y=l.value,G=["top","bottom"].includes(o.props.tabPosition),R=K.getBoundingClientRect(),D=Y.getBoundingClientRect(),k=G?U.offsetWidth-D.width:U.offsetHeight-D.height,x=d.value;let S=x;G?(R.leftD.right&&(S=x+R.right-D.right)):(R.topD.bottom&&(S=x+(R.bottom-D.bottom))),S=Math.max(S,0),d.value=Math.min(S,k)},O=()=>{var U;if(!a.value||!l.value)return;t.stretch&&((U=u.value)==null||U.update());const K=a.value[`offset${Wa(g.value)}`],Y=l.value[`offset${Wa(g.value)}`],G=d.value;Y0&&(d.value=0))},j=U=>{const K=U.code,{up:Y,down:G,left:R,right:D}=Rn;if(![Y,G,R,D].includes(K))return;const k=Array.from(U.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),x=k.indexOf(U.target);let S;K===R||K===Y?x===0?S=k.length-1:S=x-1:x{p.value&&(m.value=!0)},z=()=>m.value=!1;return St(i,U=>{U==="hidden"?p.value=!1:U==="visible"&&setTimeout(()=>p.value=!0,50)}),St(c,U=>{U?setTimeout(()=>p.value=!0,50):p.value=!1}),Xn(h,O),ln(()=>setTimeout(()=>E(),0)),vc(()=>O()),r({scrollToActiveTab:E,removeFocus:z}),St(()=>t.panes,()=>n.update(),{flush:"post",deep:!0}),()=>{const U=f.value?[He("span",{class:[s.e("nav-prev"),s.is("disabled",!f.value.prev)],onClick:b},[He(en,null,{default:()=>[He(a5,null,null)]})]),He("span",{class:[s.e("nav-next"),s.is("disabled",!f.value.next)],onClick:_},[He(en,null,{default:()=>[He(Om,null,null)]})])]:null,K=t.panes.map((Y,G)=>{var R,D,k,x;const S=Y.uid,C=Y.props.disabled,T=(D=(R=Y.props.name)!=null?R:Y.index)!=null?D:`${G}`,M=!C&&(Y.isClosable||t.editable);Y.index=`${G}`;const N=M?He(en,{class:"is-icon-close",onClick:H=>e("tabRemove",Y,H)},{default:()=>[He(du,null,null)]}):null,F=((x=(k=Y.slots).label)==null?void 0:x.call(k))||Y.props.label,Z=!C&&Y.active?0:-1;return He("div",{ref:`tab-${S}`,class:[s.e("item"),s.is(o.props.tabPosition),s.is("active",Y.active),s.is("disabled",C),s.is("closable",M),s.is("focus",m.value)],id:`tab-${T}`,key:`tab-${S}`,"aria-controls":`pane-${T}`,role:"tab","aria-selected":Y.active,tabindex:Z,onFocus:()=>W(),onBlur:()=>z(),onClick:H=>{z(),e("tabClick",Y,T,H)},onKeydown:H=>{M&&(H.code===Rn.delete||H.code===Rn.backspace)&&e("tabRemove",Y,H)}},[F,N])});return He("div",{ref:h,class:[s.e("nav-wrap"),s.is("scrollable",!!f.value),s.is(o.props.tabPosition)]},[U,He("div",{class:s.e("nav-scroll"),ref:l},[He("div",{class:[s.e("nav"),s.is(o.props.tabPosition),s.is("stretch",t.stretch&&["top","bottom"].includes(o.props.tabPosition))],ref:a,style:v.value,role:"tablist",onKeydown:j},[t.type?null:He($W,{ref:u,tabs:[...t.panes]},null),K])])])}}}),jW=tr({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:Pt(Function),default:()=>!0},stretch:Boolean}),O0=t=>mr(t)||rn(t),BW={[Ln]:t=>O0(t),tabClick:(t,r)=>r instanceof Event,tabChange:t=>O0(t),edit:(t,r)=>["remove","add"].includes(r),tabRemove:t=>O0(t),tabAdd:()=>!0},FW=et({name:"ElTabs",props:jW,emits:BW,setup(t,{emit:r,slots:e,expose:n}){var o;const s=zt("tabs"),{children:i,addChild:c,removeChild:l}=Lj(an(),"ElTabPane"),a=ze(),h=ze((o=t.modelValue)!=null?o:"0"),u=async(p,g=!1)=>{var v,b,_;if(!(h.value===p||sl(p)))try{await((v=t.beforeLeave)==null?void 0:v.call(t,p,h.value))!==!1&&(h.value=p,g&&(r(Ln,p),r("tabChange",p)),(_=(b=a.value)==null?void 0:b.removeFocus)==null||_.call(b))}catch{}},f=(p,g,v)=>{p.props.disabled||(u(g,!0),r("tabClick",p,v))},d=(p,g)=>{p.props.disabled||sl(p.props.name)||(g.stopPropagation(),r("edit",p.props.name,"remove"),r("tabRemove",p.props.name))},m=()=>{r("edit",void 0,"add"),r("tabAdd")};return St(()=>t.modelValue,p=>u(p)),St(h,async()=>{var p;await jr(),(p=a.value)==null||p.scrollToActiveTab()}),pn(Fm,{props:t,currentName:h,registerPane:c,unregisterPane:l}),n({currentName:h}),()=>{const p=e["add-icon"],g=t.editable||t.addable?He("span",{class:s.e("new-tab"),tabindex:"0",onClick:m,onKeydown:_=>{_.code===Rn.enter&&m()}},[p?kt(e,"add-icon"):He(en,{class:s.is("icon-plus")},{default:()=>[He(af,null,null)]})]):null,v=He("div",{class:[s.e("header"),s.is(t.tabPosition)]},[g,He(DW,{ref:a,currentName:h.value,editable:t.editable,type:t.type,panes:i.value,stretch:t.stretch,onTabClick:f,onTabRemove:d},null)]),b=He("div",{class:s.e("content")},[kt(e,"default")]);return He("div",{class:[s.b(),s.m(t.tabPosition),{[s.m("card")]:t.type==="card",[s.m("border-card")]:t.type==="border-card"}]},[...t.tabPosition!=="bottom"?[v,b]:[b,v]])}}}),zW=tr({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),VW=["id","aria-hidden","aria-labelledby"],H8="ElTabPane",HW=et({name:H8}),UW=et({...HW,props:zW,setup(t){const r=t,e=an(),n=dl(),o=Ft(Fm);o||Ls(H8,"usage: ");const s=zt("tab-pane"),i=ze(),c=_e(()=>r.closable||o.props.closable),l=n2(()=>{var d;return o.currentName.value===((d=r.name)!=null?d:i.value)}),a=ze(l.value),h=_e(()=>{var d;return(d=r.name)!=null?d:i.value}),u=n2(()=>!r.lazy||a.value||l.value);St(l,d=>{d&&(a.value=!0)});const f=sn({uid:e.uid,slots:n,props:r,paneName:h,active:l,index:i,isClosable:c});return ln(()=>{o.registerPane(f)}),wf(()=>{o.unregisterPane(f.uid)}),(d,m)=>re(u)?bn((Se(),Ne("div",{key:0,id:`pane-${re(h)}`,class:Ue(re(s).b()),role:"tabpanel","aria-hidden":!re(l),"aria-labelledby":`tab-${re(h)}`},[kt(d.$slots,"default")],10,VW)),[[Qi,re(l)]]):at("v-if",!0)}});var U8=lr(UW,[["__file","tab-pane.vue"]]);const W8=Zn(FW,{TabPane:U8}),Jp=No(U8);function WW(t){let r;const e=ze(!1),n=sn({...t,originalPosition:"",originalOverflow:"",visible:!1});function o(f){n.text=f}function s(){const f=n.parent,d=u.ns;if(!f.vLoadingAddClassList){let m=f.getAttribute("loading-number");m=Number.parseInt(m)-1,m?f.setAttribute("loading-number",m.toString()):(el(f,d.bm("parent","relative")),f.removeAttribute("loading-number")),el(f,d.bm("parent","hidden"))}i(),h.unmount()}function i(){var f,d;(d=(f=u.$el)==null?void 0:f.parentNode)==null||d.removeChild(u.$el)}function c(){var f;t.beforeClose&&!t.beforeClose()||(e.value=!0,clearTimeout(r),r=window.setTimeout(l,400),n.visible=!1,(f=t.closed)==null||f.call(t))}function l(){if(!e.value)return;const f=n.parent;e.value=!1,f.vLoadingAddClassList=void 0,s()}const h=C6(et({name:"ElLoading",setup(f,{expose:d}){const{ns:m,zIndex:p}=B5("loading");return d({ns:m,zIndex:p}),()=>{const g=n.spinner||n.svg,v=Dr("svg",{class:"circular",viewBox:n.svgViewBox?n.svgViewBox:"0 0 50 50",...g?{innerHTML:g}:{}},[Dr("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),b=n.text?Dr("p",{class:m.b("text")},[n.text]):void 0;return Dr(os,{name:m.b("fade"),onAfterLeave:l},{default:De(()=>[bn(He("div",{style:{backgroundColor:n.background||""},class:[m.b("mask"),n.customClass,n.fullscreen?"is-fullscreen":""]},[Dr("div",{class:m.b("spinner")},[v,b])]),[[Qi,n.visible]])])})}}})),u=h.mount(document.createElement("div"));return{...nl(n),setText:o,removeElLoadingChild:i,close:c,handleAfterLeave:l,vm:u,get $el(){return u.$el}}}let Kd;const Nv=function(t={}){if(!_n)return;const r=qW(t);if(r.fullscreen&&Kd)return Kd;const e=WW({...r,closed:()=>{var o;(o=r.closed)==null||o.call(r),r.fullscreen&&(Kd=void 0)}});GW(r,r.parent,e),F3(r,r.parent,e),r.parent.vLoadingAddClassList=()=>F3(r,r.parent,e);let n=r.parent.getAttribute("loading-number");return n?n=`${Number.parseInt(n)+1}`:n="1",r.parent.setAttribute("loading-number",n),r.parent.appendChild(e.$el),jr(()=>e.visible.value=r.visible),r.fullscreen&&(Kd=e),e},qW=t=>{var r,e,n,o;let s;return mr(t.target)?s=(r=document.querySelector(t.target))!=null?r:document.body:s=t.target||document.body,{parent:s===document.body||t.body?document.body:s,background:t.background||"",svg:t.svg||"",svgViewBox:t.svgViewBox||"",spinner:t.spinner||!1,text:t.text||"",fullscreen:s===document.body&&((e=t.fullscreen)!=null?e:!0),lock:(n=t.lock)!=null?n:!1,customClass:t.customClass||"",visible:(o=t.visible)!=null?o:!0,target:s}},GW=async(t,r,e)=>{const{nextZIndex:n}=e.vm.zIndex||e.vm._.exposed.zIndex,o={};if(t.fullscreen)e.originalPosition.value=qc(document.body,"position"),e.originalOverflow.value=qc(document.body,"overflow"),o.zIndex=n();else if(t.parent===document.body){e.originalPosition.value=qc(document.body,"position"),await jr();for(const s of["top","left"]){const i=s==="top"?"scrollTop":"scrollLeft";o[s]=`${t.target.getBoundingClientRect()[s]+document.body[i]+document.documentElement[i]-Number.parseInt(qc(document.body,`margin-${s}`),10)}px`}for(const s of["height","width"])o[s]=`${t.target.getBoundingClientRect()[s]}px`}else e.originalPosition.value=qc(r,"position");for(const[s,i]of Object.entries(o))e.$el.style[s]=i},F3=(t,r,e)=>{const n=e.vm.ns||e.vm._.exposed.ns;["absolute","fixed","sticky"].includes(e.originalPosition.value)?el(r,n.bm("parent","relative")):rc(r,n.bm("parent","relative")),t.fullscreen&&t.lock?rc(r,n.bm("parent","hidden")):el(r,n.bm("parent","hidden"))},Ep=Symbol("ElLoading"),z3=(t,r)=>{var e,n,o,s;const i=r.instance,c=f=>dr(r.value)?r.value[f]:void 0,l=f=>{const d=mr(f)&&(i==null?void 0:i[f])||f;return d&&ze(d)},a=f=>l(c(f)||t.getAttribute(`element-loading-${ul(f)}`)),h=(e=c("fullscreen"))!=null?e:r.modifiers.fullscreen,u={text:a("text"),svg:a("svg"),svgViewBox:a("svgViewBox"),spinner:a("spinner"),background:a("background"),customClass:a("customClass"),fullscreen:h,target:(n=c("target"))!=null?n:h?void 0:t,body:(o=c("body"))!=null?o:r.modifiers.body,lock:(s=c("lock"))!=null?s:r.modifiers.lock};t[Ep]={options:u,instance:Nv(u)}},KW=(t,r)=>{for(const e of Object.keys(r))Nn(r[e])&&(r[e].value=t[e])},V3={mounted(t,r){r.value&&z3(t,r)},updated(t,r){const e=t[Ep];r.oldValue!==r.value&&(r.value&&!r.oldValue?z3(t,r):r.value&&r.oldValue?dr(r.value)&&KW(r.value,e.options):e==null||e.instance.close())},unmounted(t){var r;(r=t[Ep])==null||r.instance.close(),t[Ep]=null}},q8={install(t){t.directive("loading",V3),t.config.globalProperties.$loading=Nv},directive:V3,service:Nv},G8=["success","info","warning","error"],ZW=tr({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:Yn},id:{type:String,default:""},message:{type:Pt([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:Pt(Function),default:()=>{}},onClose:{type:Pt(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...G8,""],default:""},zIndex:Number}),XW={destroy:()=>!0},YW=["id"],JW=["textContent"],QW={key:0},eq=["innerHTML"],tq=et({name:"ElNotification"}),rq=et({...tq,props:ZW,emits:XW,setup(t,{expose:r}){const e=t,{ns:n,zIndex:o}=B5("notification"),{nextZIndex:s,currentZIndex:i}=o,{Close:c}=d5,l=ze(!1);let a;const h=_e(()=>{const _=e.type;return _&&Gp[e.type]?n.m(_):""}),u=_e(()=>e.type&&Gp[e.type]||e.icon),f=_e(()=>e.position.endsWith("right")?"right":"left"),d=_e(()=>e.position.startsWith("top")?"top":"bottom"),m=_e(()=>{var _;return{[d.value]:`${e.offset}px`,zIndex:(_=e.zIndex)!=null?_:i.value}});function p(){e.duration>0&&({stop:a}=nf(()=>{l.value&&v()},e.duration))}function g(){a==null||a()}function v(){l.value=!1}function b({code:_}){_===Rn.delete||_===Rn.backspace?g():_===Rn.esc?l.value&&v():p()}return ln(()=>{p(),s(),l.value=!0}),es(document,"keydown",b),r({visible:l,close:v}),(_,E)=>(Se(),nt(os,{name:re(n).b("fade"),onBeforeLeave:_.onClose,onAfterLeave:E[1]||(E[1]=O=>_.$emit("destroy")),persisted:""},{default:De(()=>[bn(qe("div",{id:_.id,class:Ue([re(n).b(),_.customClass,re(f)]),style:tn(re(m)),role:"alert",onMouseenter:g,onMouseleave:p,onClick:E[0]||(E[0]=(...O)=>_.onClick&&_.onClick(...O))},[re(u)?(Se(),nt(re(en),{key:0,class:Ue([re(n).e("icon"),re(h)])},{default:De(()=>[(Se(),nt(on(re(u))))]),_:1},8,["class"])):at("v-if",!0),qe("div",{class:Ue(re(n).e("group"))},[qe("h2",{class:Ue(re(n).e("title")),textContent:Rt(_.title)},null,10,JW),bn(qe("div",{class:Ue(re(n).e("content")),style:tn(_.title?void 0:{margin:0})},[kt(_.$slots,"default",{},()=>[_.dangerouslyUseHTMLString?(Se(),Ne(Ht,{key:1},[at(" Caution here, message could've been compromised, never use user's input as message "),qe("p",{innerHTML:_.message},null,8,eq)],2112)):(Se(),Ne("p",QW,Rt(_.message),1))])],6),[[Qi,_.message]]),_.showClose?(Se(),nt(re(en),{key:0,class:Ue(re(n).e("closeBtn")),onClick:hn(v,["stop"])},{default:De(()=>[He(re(c))]),_:1},8,["class","onClick"])):at("v-if",!0)],2)],46,YW),[[Qi,l.value]])]),_:3},8,["name","onBeforeLeave"]))}});var nq=lr(rq,[["__file","notification.vue"]]);const Qp={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Dv=16;let iq=1;const _u=function(t={},r=null){if(!_n)return{close:()=>{}};(typeof t=="string"||$s(t))&&(t={message:t});const e=t.position||"top-right";let n=t.offset||0;Qp[e].forEach(({vm:h})=>{var u;n+=(((u=h.el)==null?void 0:u.offsetHeight)||0)+Dv}),n+=Dv;const o=`notification_${iq++}`,s=t.onClose,i={...t,offset:n,id:o,onClose:()=>{oq(o,e,s)}};let c=document.body;fc(t.appendTo)?c=t.appendTo:mr(t.appendTo)&&(c=document.querySelector(t.appendTo)),fc(c)||(c=document.body);const l=document.createElement("div"),a=He(nq,i,$s(i.message)?{default:()=>i.message}:null);return a.appContext=r??_u._context,a.props.onDestroy=()=>{e2(null,l)},e2(a,l),Qp[e].push({vm:a}),c.appendChild(l.firstElementChild),{close:()=>{a.component.exposed.visible.value=!1}}};G8.forEach(t=>{_u[t]=(r={})=>((typeof r=="string"||$s(r))&&(r={message:r}),_u({...r,type:t}))});function oq(t,r,e){const n=Qp[r],o=n.findIndex(({vm:a})=>{var h;return((h=a.component)==null?void 0:h.props.id)===t});if(o===-1)return;const{vm:s}=n[o];if(!s)return;e==null||e(s);const i=s.el.offsetHeight,c=r.split("-")[0];n.splice(o,1);const l=n.length;if(!(l<1))for(let a=o;a{r.component.exposed.visible.value=!1})}_u.closeAll=sq;_u._context=null;const aq=aD(_u,"$notify"),lq=""+new URL("../logo.svg",import.meta.url).href;/*! + * vue-router v4.3.2 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */const Kc=typeof document<"u";function cq(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const fn=Object.assign;function R0(t,r){const e={};for(const n in r){const o=r[n];e[n]=is(o)?o.map(t):t(o)}return e}const Fh=()=>{},is=Array.isArray,K8=/#/g,uq=/&/g,hq=/\//g,fq=/=/g,dq=/\?/g,Z8=/\+/g,pq=/%5B/g,mq=/%5D/g,X8=/%5E/g,gq=/%60/g,Y8=/%7B/g,vq=/%7C/g,J8=/%7D/g,yq=/%20/g;function bb(t){return encodeURI(""+t).replace(vq,"|").replace(pq,"[").replace(mq,"]")}function bq(t){return bb(t).replace(Y8,"{").replace(J8,"}").replace(X8,"^")}function jv(t){return bb(t).replace(Z8,"%2B").replace(yq,"+").replace(K8,"%23").replace(uq,"%26").replace(gq,"`").replace(Y8,"{").replace(J8,"}").replace(X8,"^")}function _q(t){return jv(t).replace(fq,"%3D")}function wq(t){return bb(t).replace(K8,"%23").replace(dq,"%3F")}function xq(t){return t==null?"":wq(t).replace(hq,"%2F")}function df(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const Sq=/\/$/,Cq=t=>t.replace(Sq,"");function I0(t,r,e="/"){let n,o={},s="",i="";const c=r.indexOf("#");let l=r.indexOf("?");return c=0&&(l=-1),l>-1&&(n=r.slice(0,l),s=r.slice(l+1,c>-1?c:r.length),o=t(s)),c>-1&&(n=n||r.slice(0,c),i=r.slice(c,r.length)),n=Aq(n??r,e),{fullPath:n+(s&&"?")+s+i,path:n,query:o,hash:df(i)}}function kq(t,r){const e=r.query?t(r.query):"";return r.path+(e&&"?")+e+(r.hash||"")}function H3(t,r){return!r||!t.toLowerCase().startsWith(r.toLowerCase())?t:t.slice(r.length)||"/"}function Eq(t,r,e){const n=r.matched.length-1,o=e.matched.length-1;return n>-1&&n===o&&wu(r.matched[n],e.matched[o])&&Q8(r.params,e.params)&&t(r.query)===t(e.query)&&r.hash===e.hash}function wu(t,r){return(t.aliasOf||t)===(r.aliasOf||r)}function Q8(t,r){if(Object.keys(t).length!==Object.keys(r).length)return!1;for(const e in t)if(!Tq(t[e],r[e]))return!1;return!0}function Tq(t,r){return is(t)?U3(t,r):is(r)?U3(r,t):t===r}function U3(t,r){return is(r)?t.length===r.length&&t.every((e,n)=>e===r[n]):t.length===1&&t[0]===r}function Aq(t,r){if(t.startsWith("/"))return t;if(!t)return r;const e=r.split("/"),n=t.split("/"),o=n[n.length-1];(o===".."||o===".")&&n.push("");let s=e.length-1,i,c;for(i=0;i1&&s--;else break;return e.slice(0,s).join("/")+"/"+n.slice(i).join("/")}var pf;(function(t){t.pop="pop",t.push="push"})(pf||(pf={}));var zh;(function(t){t.back="back",t.forward="forward",t.unknown=""})(zh||(zh={}));function Pq(t){if(!t)if(Kc){const r=document.querySelector("base");t=r&&r.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),Cq(t)}const Mq=/^[^#]+#/;function Oq(t,r){return t.replace(Mq,"#")+r}function Rq(t,r){const e=document.documentElement.getBoundingClientRect(),n=t.getBoundingClientRect();return{behavior:r.behavior,left:n.left-e.left-(r.left||0),top:n.top-e.top-(r.top||0)}}const zm=()=>({left:window.scrollX,top:window.scrollY});function Iq(t){let r;if("el"in t){const e=t.el,n=typeof e=="string"&&e.startsWith("#"),o=typeof e=="string"?n?document.getElementById(e.slice(1)):document.querySelector(e):e;if(!o)return;r=Rq(o,t)}else r=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(r):window.scrollTo(r.left!=null?r.left:window.scrollX,r.top!=null?r.top:window.scrollY)}function W3(t,r){return(history.state?history.state.position-r:-1)+t}const Bv=new Map;function $q(t,r){Bv.set(t,r)}function Lq(t){const r=Bv.get(t);return Bv.delete(t),r}let Nq=()=>location.protocol+"//"+location.host;function eS(t,r){const{pathname:e,search:n,hash:o}=r,s=t.indexOf("#");if(s>-1){let c=o.includes(t.slice(s))?t.slice(s).length:1,l=o.slice(c);return l[0]!=="/"&&(l="/"+l),H3(l,"")}return H3(e,t)+n+o}function Dq(t,r,e,n){let o=[],s=[],i=null;const c=({state:f})=>{const d=eS(t,location),m=e.value,p=r.value;let g=0;if(f){if(e.value=d,r.value=f,i&&i===m){i=null;return}g=p?f.position-p.position:0}else n(d);o.forEach(v=>{v(e.value,m,{delta:g,type:pf.pop,direction:g?g>0?zh.forward:zh.back:zh.unknown})})};function l(){i=e.value}function a(f){o.push(f);const d=()=>{const m=o.indexOf(f);m>-1&&o.splice(m,1)};return s.push(d),d}function h(){const{history:f}=window;f.state&&f.replaceState(fn({},f.state,{scroll:zm()}),"")}function u(){for(const f of s)f();s=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",h,{passive:!0}),{pauseListeners:l,listen:a,destroy:u}}function q3(t,r,e,n=!1,o=!1){return{back:t,current:r,forward:e,replaced:n,position:window.history.length,scroll:o?zm():null}}function jq(t){const{history:r,location:e}=window,n={value:eS(t,e)},o={value:r.state};o.value||s(n.value,{back:null,current:n.value,forward:null,position:r.length-1,replaced:!0,scroll:null},!0);function s(l,a,h){const u=t.indexOf("#"),f=u>-1?(e.host&&document.querySelector("base")?t:t.slice(u))+l:Nq()+t+l;try{r[h?"replaceState":"pushState"](a,"",f),o.value=a}catch{e[h?"replace":"assign"](f)}}function i(l,a){const h=fn({},r.state,q3(o.value.back,l,o.value.forward,!0),a,{position:o.value.position});s(l,h,!0),n.value=l}function c(l,a){const h=fn({},o.value,r.state,{forward:l,scroll:zm()});s(h.current,h,!0);const u=fn({},q3(n.value,l,null),{position:h.position+1},a);s(l,u,!1),n.value=l}return{location:n,state:o,push:c,replace:i}}function Bq(t){t=Pq(t);const r=jq(t),e=Dq(t,r.state,r.location,r.replace);function n(s,i=!0){i||e.pauseListeners(),history.go(s)}const o=fn({location:"",base:t,go:n,createHref:Oq.bind(null,t)},r,e);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>r.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>r.state.value}),o}function Fq(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),Bq(t)}function zq(t){return typeof t=="string"||t&&typeof t=="object"}function tS(t){return typeof t=="string"||typeof t=="symbol"}const Ia={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},rS=Symbol("");var G3;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(G3||(G3={}));function xu(t,r){return fn(new Error,{type:t,[rS]:!0},r)}function Js(t,r){return t instanceof Error&&rS in t&&(r==null||!!(t.type&r))}const K3="[^/]+?",Vq={sensitive:!1,strict:!1,start:!0,end:!0},Hq=/[.+*?^${}()[\]/\\]/g;function Uq(t,r){const e=fn({},Vq,r),n=[];let o=e.start?"^":"";const s=[];for(const a of t){const h=a.length?[]:[90];e.strict&&!a.length&&(o+="/");for(let u=0;ur.length?r.length===1&&r[0]===80?1:-1:0}function qq(t,r){let e=0;const n=t.score,o=r.score;for(;e0&&r[r.length-1]<0}const Gq={type:0,value:""},Kq=/[a-zA-Z0-9_]/;function Zq(t){if(!t)return[[]];if(t==="/")return[[Gq]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function r(d){throw new Error(`ERR (${e})/"${a}": ${d}`)}let e=0,n=e;const o=[];let s;function i(){s&&o.push(s),s=[]}let c=0,l,a="",h="";function u(){a&&(e===0?s.push({type:0,value:a}):e===1||e===2||e===3?(s.length>1&&(l==="*"||l==="+")&&r(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:a,regexp:h,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):r("Invalid state to consume buffer"),a="")}function f(){a+=l}for(;c{i(b)}:Fh}function i(h){if(tS(h)){const u=n.get(h);u&&(n.delete(h),e.splice(e.indexOf(u),1),u.children.forEach(i),u.alias.forEach(i))}else{const u=e.indexOf(h);u>-1&&(e.splice(u,1),h.record.name&&n.delete(h.record.name),h.children.forEach(i),h.alias.forEach(i))}}function c(){return e}function l(h){let u=0;for(;u=0&&(h.record.path!==e[u].record.path||!nS(h,e[u]));)u++;e.splice(u,0,h),h.record.name&&!Y3(h)&&n.set(h.record.name,h)}function a(h,u){let f,d={},m,p;if("name"in h&&h.name){if(f=n.get(h.name),!f)throw xu(1,{location:h});p=f.record.name,d=fn(X3(u.params,f.keys.filter(b=>!b.optional).concat(f.parent?f.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),h.params&&X3(h.params,f.keys.map(b=>b.name))),m=f.stringify(d)}else if(h.path!=null)m=h.path,f=e.find(b=>b.re.test(m)),f&&(d=f.parse(m),p=f.record.name);else{if(f=u.name?n.get(u.name):e.find(b=>b.re.test(u.path)),!f)throw xu(1,{location:h,currentLocation:u});p=f.record.name,d=fn({},u.params,h.params),m=f.stringify(d)}const g=[];let v=f;for(;v;)g.unshift(v.record),v=v.parent;return{name:p,path:m,params:d,matched:g,meta:eG(g)}}return t.forEach(h=>s(h)),{addRoute:s,resolve:a,removeRoute:i,getRoutes:c,getRecordMatcher:o}}function X3(t,r){const e={};for(const n of r)n in t&&(e[n]=t[n]);return e}function Jq(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:Qq(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function Qq(t){const r={},e=t.props||!1;if("component"in t)r.default=e;else for(const n in t.components)r[n]=typeof e=="object"?e[n]:e;return r}function Y3(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function eG(t){return t.reduce((r,e)=>fn(r,e.meta),{})}function J3(t,r){const e={};for(const n in t)e[n]=n in r?r[n]:t[n];return e}function nS(t,r){return r.children.some(e=>e===t||nS(t,e))}function tG(t){const r={};if(t===""||t==="?")return r;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let o=0;os&&jv(s)):[n&&jv(n)]).forEach(s=>{s!==void 0&&(r+=(r.length?"&":"")+e,s!=null&&(r+="="+s))})}return r}function rG(t){const r={};for(const e in t){const n=t[e];n!==void 0&&(r[e]=is(n)?n.map(o=>o==null?null:""+o):n==null?n:""+n)}return r}const iS=Symbol(""),e4=Symbol(""),Vm=Symbol(""),_b=Symbol(""),Fv=Symbol("");function bh(){let t=[];function r(n){return t.push(n),()=>{const o=t.indexOf(n);o>-1&&t.splice(o,1)}}function e(){t=[]}return{add:r,list:()=>t.slice(),reset:e}}function nG(t,r,e){const n=()=>{t[r].delete(e)};wf(n),Ey(n),zx(()=>{t[r].add(e)}),t[r].add(e)}function iG(t){const r=Ft(iS,{}).value;r&&nG(r,"updateGuards",t)}function Ua(t,r,e,n,o,s=i=>i()){const i=n&&(n.enterCallbacks[o]=n.enterCallbacks[o]||[]);return()=>new Promise((c,l)=>{const a=f=>{f===!1?l(xu(4,{from:e,to:r})):f instanceof Error?l(f):zq(f)?l(xu(2,{from:r,to:f})):(i&&n.enterCallbacks[o]===i&&typeof f=="function"&&i.push(f),c())},h=s(()=>t.call(n&&n.instances[o],r,e,a));let u=Promise.resolve(h);t.length<3&&(u=u.then(a)),u.catch(f=>l(f))})}function $0(t,r,e,n,o=s=>s()){const s=[];for(const i of t)for(const c in i.components){let l=i.components[c];if(!(r!=="beforeRouteEnter"&&!i.instances[c]))if(oG(l)){const h=(l.__vccOpts||l)[r];h&&s.push(Ua(h,e,n,i,c,o))}else{let a=l();s.push(()=>a.then(h=>{if(!h)return Promise.reject(new Error(`Couldn't resolve component "${c}" at "${i.path}"`));const u=cq(h)?h.default:h;i.components[c]=u;const d=(u.__vccOpts||u)[r];return d&&Ua(d,e,n,i,c,o)()}))}}return s}function oG(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function t4(t){const r=Ft(Vm),e=Ft(_b),n=_e(()=>{const l=re(t.to);return r.resolve(l)}),o=_e(()=>{const{matched:l}=n.value,{length:a}=l,h=l[a-1],u=e.matched;if(!h||!u.length)return-1;const f=u.findIndex(wu.bind(null,h));if(f>-1)return f;const d=r4(l[a-2]);return a>1&&r4(h)===d&&u[u.length-1].path!==d?u.findIndex(wu.bind(null,l[a-2])):f}),s=_e(()=>o.value>-1&&cG(e.params,n.value.params)),i=_e(()=>o.value>-1&&o.value===e.matched.length-1&&Q8(e.params,n.value.params));function c(l={}){return lG(l)?r[re(t.replace)?"replace":"push"](re(t.to)).catch(Fh):Promise.resolve()}return{route:n,href:_e(()=>n.value.href),isActive:s,isExactActive:i,navigate:c}}const sG=et({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:t4,setup(t,{slots:r}){const e=sn(t4(t)),{options:n}=Ft(Vm),o=_e(()=>({[n4(t.activeClass,n.linkActiveClass,"router-link-active")]:e.isActive,[n4(t.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:e.isExactActive}));return()=>{const s=r.default&&r.default(e);return t.custom?s:Dr("a",{"aria-current":e.isExactActive?t.ariaCurrentValue:null,href:e.href,onClick:e.navigate,class:o.value},s)}}}),aG=sG;function lG(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const r=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(r))return}return t.preventDefault&&t.preventDefault(),!0}}function cG(t,r){for(const e in r){const n=r[e],o=t[e];if(typeof n=="string"){if(n!==o)return!1}else if(!is(o)||o.length!==n.length||n.some((s,i)=>s!==o[i]))return!1}return!0}function r4(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const n4=(t,r,e)=>t??r??e,uG=et({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:r,slots:e}){const n=Ft(Fv),o=_e(()=>t.route||n.value),s=Ft(e4,0),i=_e(()=>{let a=re(s);const{matched:h}=o.value;let u;for(;(u=h[a])&&!u.components;)a++;return a}),c=_e(()=>o.value.matched[i.value]);pn(e4,_e(()=>i.value+1)),pn(iS,c),pn(Fv,o);const l=ze();return St(()=>[l.value,c.value,t.name],([a,h,u],[f,d,m])=>{h&&(h.instances[u]=a,d&&d!==h&&a&&a===f&&(h.leaveGuards.size||(h.leaveGuards=d.leaveGuards),h.updateGuards.size||(h.updateGuards=d.updateGuards))),a&&h&&(!d||!wu(h,d)||!f)&&(h.enterCallbacks[u]||[]).forEach(p=>p(a))},{flush:"post"}),()=>{const a=o.value,h=t.name,u=c.value,f=u&&u.components[h];if(!f)return i4(e.default,{Component:f,route:a});const d=u.props[h],m=d?d===!0?a.params:typeof d=="function"?d(a):d:null,g=Dr(f,fn({},m,r,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(u.instances[h]=null)},ref:l}));return i4(e.default,{Component:g,route:a})||g}}});function i4(t,r){if(!t)return null;const e=t(r);return e.length===1?e[0]:e}const oS=uG;function hG(t){const r=Yq(t.routes,t),e=t.parseQuery||tG,n=t.stringifyQuery||Q3,o=t.history,s=bh(),i=bh(),c=bh(),l=Ja(Ia);let a=Ia;Kc&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=R0.bind(null,J=>""+J),u=R0.bind(null,xq),f=R0.bind(null,df);function d(J,I){let $,X;return tS(J)?($=r.getRecordMatcher(J),X=I):X=J,r.addRoute(X,$)}function m(J){const I=r.getRecordMatcher(J);I&&r.removeRoute(I)}function p(){return r.getRoutes().map(J=>J.record)}function g(J){return!!r.getRecordMatcher(J)}function v(J,I){if(I=fn({},I||l.value),typeof J=="string"){const ie=I0(e,J,I.path),de=r.resolve({path:ie.path},I),me=o.createHref(ie.fullPath);return fn(ie,de,{params:f(de.params),hash:df(ie.hash),redirectedFrom:void 0,href:me})}let $;if(J.path!=null)$=fn({},J,{path:I0(e,J.path,I.path).path});else{const ie=fn({},J.params);for(const de in ie)ie[de]==null&&delete ie[de];$=fn({},J,{params:u(ie)}),I.params=u(I.params)}const X=r.resolve($,I),ae=J.hash||"";X.params=h(f(X.params));const fe=kq(n,fn({},J,{hash:bq(ae),path:X.path})),te=o.createHref(fe);return fn({fullPath:fe,hash:ae,query:n===Q3?rG(J.query):J.query||{}},X,{redirectedFrom:void 0,href:te})}function b(J){return typeof J=="string"?I0(e,J,l.value.path):fn({},J)}function _(J,I){if(a!==J)return xu(8,{from:I,to:J})}function E(J){return W(J)}function O(J){return E(fn(b(J),{replace:!0}))}function j(J){const I=J.matched[J.matched.length-1];if(I&&I.redirect){const{redirect:$}=I;let X=typeof $=="function"?$(J):$;return typeof X=="string"&&(X=X.includes("?")||X.includes("#")?X=b(X):{path:X},X.params={}),fn({query:J.query,hash:J.hash,params:X.path!=null?{}:J.params},X)}}function W(J,I){const $=a=v(J),X=l.value,ae=J.state,fe=J.force,te=J.replace===!0,ie=j($);if(ie)return W(fn(b(ie),{state:typeof ie=="object"?fn({},ae,ie.state):ae,force:fe,replace:te}),I||$);const de=$;de.redirectedFrom=I;let me;return!fe&&Eq(n,X,$)&&(me=xu(16,{to:de,from:X}),N(X,X,!0,!1)),(me?Promise.resolve(me):K(de,X)).catch(se=>Js(se)?Js(se,2)?se:M(se):C(se,de,X)).then(se=>{if(se){if(Js(se,2))return W(fn({replace:te},b(se.to),{state:typeof se.to=="object"?fn({},ae,se.to.state):ae,force:fe}),I||de)}else se=G(de,X,!0,te,ae);return Y(de,X,se),se})}function z(J,I){const $=_(J,I);return $?Promise.reject($):Promise.resolve()}function U(J){const I=H.values().next().value;return I&&typeof I.runWithContext=="function"?I.runWithContext(J):J()}function K(J,I){let $;const[X,ae,fe]=fG(J,I);$=$0(X.reverse(),"beforeRouteLeave",J,I);for(const ie of X)ie.leaveGuards.forEach(de=>{$.push(Ua(de,J,I))});const te=z.bind(null,J,I);return $.push(te),B($).then(()=>{$=[];for(const ie of s.list())$.push(Ua(ie,J,I));return $.push(te),B($)}).then(()=>{$=$0(ae,"beforeRouteUpdate",J,I);for(const ie of ae)ie.updateGuards.forEach(de=>{$.push(Ua(de,J,I))});return $.push(te),B($)}).then(()=>{$=[];for(const ie of fe)if(ie.beforeEnter)if(is(ie.beforeEnter))for(const de of ie.beforeEnter)$.push(Ua(de,J,I));else $.push(Ua(ie.beforeEnter,J,I));return $.push(te),B($)}).then(()=>(J.matched.forEach(ie=>ie.enterCallbacks={}),$=$0(fe,"beforeRouteEnter",J,I,U),$.push(te),B($))).then(()=>{$=[];for(const ie of i.list())$.push(Ua(ie,J,I));return $.push(te),B($)}).catch(ie=>Js(ie,8)?ie:Promise.reject(ie))}function Y(J,I,$){c.list().forEach(X=>U(()=>X(J,I,$)))}function G(J,I,$,X,ae){const fe=_(J,I);if(fe)return fe;const te=I===Ia,ie=Kc?history.state:{};$&&(X||te?o.replace(J.fullPath,fn({scroll:te&&ie&&ie.scroll},ae)):o.push(J.fullPath,ae)),l.value=J,N(J,I,$,te),M()}let R;function D(){R||(R=o.listen((J,I,$)=>{if(!ee.listening)return;const X=v(J),ae=j(X);if(ae){W(fn(ae,{replace:!0}),X).catch(Fh);return}a=X;const fe=l.value;Kc&&$q(W3(fe.fullPath,$.delta),zm()),K(X,fe).catch(te=>Js(te,12)?te:Js(te,2)?(W(te.to,X).then(ie=>{Js(ie,20)&&!$.delta&&$.type===pf.pop&&o.go(-1,!1)}).catch(Fh),Promise.reject()):($.delta&&o.go(-$.delta,!1),C(te,X,fe))).then(te=>{te=te||G(X,fe,!1),te&&($.delta&&!Js(te,8)?o.go(-$.delta,!1):$.type===pf.pop&&Js(te,20)&&o.go(-1,!1)),Y(X,fe,te)}).catch(Fh)}))}let k=bh(),x=bh(),S;function C(J,I,$){M(J);const X=x.list();return X.length&&X.forEach(ae=>ae(J,I,$)),Promise.reject(J)}function T(){return S&&l.value!==Ia?Promise.resolve():new Promise((J,I)=>{k.add([J,I])})}function M(J){return S||(S=!J,D(),k.list().forEach(([I,$])=>J?$(J):I()),k.reset()),J}function N(J,I,$,X){const{scrollBehavior:ae}=t;if(!Kc||!ae)return Promise.resolve();const fe=!$&&Lq(W3(J.fullPath,0))||(X||!$)&&history.state&&history.state.scroll||null;return jr().then(()=>ae(J,I,fe)).then(te=>te&&Iq(te)).catch(te=>C(te,J,I))}const F=J=>o.go(J);let Z;const H=new Set,ee={currentRoute:l,listening:!0,addRoute:d,removeRoute:m,hasRoute:g,getRoutes:p,resolve:v,options:t,push:E,replace:O,go:F,back:()=>F(-1),forward:()=>F(1),beforeEach:s.add,beforeResolve:i.add,afterEach:c.add,onError:x.add,isReady:T,install(J){const I=this;J.component("RouterLink",aG),J.component("RouterView",oS),J.config.globalProperties.$router=I,Object.defineProperty(J.config.globalProperties,"$route",{enumerable:!0,get:()=>re(l)}),Kc&&!Z&&l.value===Ia&&(Z=!0,E(o.location).catch(ae=>{}));const $={};for(const ae in Ia)Object.defineProperty($,ae,{get:()=>l.value[ae],enumerable:!0});J.provide(Vm,I),J.provide(_b,cu($)),J.provide(Fv,l);const X=J.unmount;H.add(J),J.unmount=function(){H.delete(J),H.size<1&&(a=Ia,R&&R(),R=null,l.value=Ia,Z=!1,S=!1),X()}}};function B(J){return J.reduce((I,$)=>I.then(()=>U($)),Promise.resolve())}return ee}function fG(t,r){const e=[],n=[],o=[],s=Math.max(r.matched.length,t.matched.length);for(let i=0;iwu(a,c))?n.push(c):e.push(c));const l=t.matched[i];l&&(r.matched.find(a=>wu(a,l))||o.push(l))}return[e,n,o]}function dG(){return Ft(Vm)}function pG(){return Ft(_b)}const mG={class:"flex space-x-2 content-center items-center"},gG=qe("span",{class:"flex flex-col justify-center items-center ml-2"},[qe("img",{alt:"Crate-O an RO-Crate Editor",class:"logo min-h-full p-0",src:lq,width:"60"})],-1),vG={class:"justify-center text-2xl"},yG={class:"text-xs"},bG=qe("p",null,[qe("a",{target:"_blank",class:"font-bold",href:"https://www.google.com/chrome/"},"Google Chrome")],-1),_G=qe("p",null,[qe("a",{target:"_blank",class:"font-bold",href:"https://www.microsoft.com/edge/"},"Microsoft Edge")],-1),wG=qe("p",null," You can continue to view the page in this browser, however Crate-O will not work. ",-1),xG={class:"dialog-footer"},SG={__name:"App",setup(t){const r="0.3.11",e=sn({noBrowserSupport:!1});return window.showDirectoryPicker||(e.noBrowserSupport=!0),(n,o)=>(Se(),Ne(Ht,null,[qe("header",mG,[He(re(Ki),{gutter:10,class:"flex items-center justify-center min-w-md"},{default:De(()=>[He(re(As),{span:8},{default:De(()=>[gG]),_:1}),He(re(As),{span:16},{default:De(()=>[qe("div",vG,[er("Crate-O "),qe("span",yG,"v"+Rt(re(r)),1)])]),_:1})]),_:1})]),He(re(oS)),He(re(Dm),{modelValue:e.noBrowserSupport,"onUpdate:modelValue":o[2]||(o[2]=s=>e.noBrowserSupport=s),title:"Browser Not Supported",width:"50%"},{footer:De(()=>[qe("span",xG,[He(re(Gn),{onClick:o[0]||(o[0]=s=>e.noBrowserSupport=!1)},{default:De(()=>[er("Cancel")]),_:1}),He(re(Gn),{type:"primary",onClick:o[1]||(o[1]=s=>e.noBrowserSupport=!1)},{default:De(()=>[er(" OK ")]),_:1})])]),default:De(()=>[He(re(Ki),{class:"p-2"},{default:De(()=>[er(" This browser is not supported, please use the latest version of: ")]),_:1}),He(re(Ki),{class:"p-2"},{default:De(()=>[bG]),_:1}),He(re(Ki),{class:"p-2"},{default:De(()=>[_G]),_:1}),He(re(Ki),{class:"p-2"},{default:De(()=>[wG]),_:1})]),_:1},8,["modelValue"])],64))}},CG="modulepreload",kG=function(t,r){return new URL(t,r).href},o4={},Zd=function(r,e,n){let o=Promise.resolve();if(e&&e.length>0){const s=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),c=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.all(e.map(l=>{if(l=kG(l,n),l in o4)return;o4[l]=!0;const a=l.endsWith(".css"),h=a?'[rel="stylesheet"]':"";if(!!n)for(let d=s.length-1;d>=0;d--){const m=s[d];if(m.href===l&&(!a||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${h}`))return;const f=document.createElement("link");if(f.rel=a?"stylesheet":CG,a||(f.as="script",f.crossOrigin=""),f.href=l,c&&f.setAttribute("nonce",c),document.head.appendChild(f),a)return new Promise((d,m)=>{f.addEventListener("load",d),f.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${l}`)))})}))}return o.then(()=>r()).catch(s=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s})},sS=["https://language-research-technology.github.io/ro-crate-modes/modes/default.json","https://language-research-technology.github.io/ro-crate-modes/modes/language-data-commons-collection.json","https://language-research-technology.github.io/ro-crate-modes/modes/schema.json","https://language-research-technology.github.io/ro-crate-modes/modes/software.json","https://language-research-technology.github.io/ro-crate-modes/modes/base.json"],EG=sS.map(t=>null),TG=sS.map((t,r)=>fetch(t).then(e=>e.ok?e.json().then(n=>EG[r]=n):null)),AG=Promise.allSettled(TG);function wb(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let wc=wb();function aS(t){wc=t}const lS=/[&<>"']/,PG=new RegExp(lS.source,"g"),cS=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,MG=new RegExp(cS.source,"g"),OG={"&":"&","<":"<",">":">",'"':""","'":"'"},s4=t=>OG[t];function fo(t,r){if(r){if(lS.test(t))return t.replace(PG,s4)}else if(cS.test(t))return t.replace(MG,s4);return t}const RG=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function IG(t){return t.replace(RG,(r,e)=>(e=e.toLowerCase(),e==="colon"?":":e.charAt(0)==="#"?e.charAt(1)==="x"?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""))}const $G=/(^|[^\[])\^/g;function gn(t,r){let e=typeof t=="string"?t:t.source;r=r||"";const n={replace:(o,s)=>{let i=typeof s=="string"?s:s.source;return i=i.replace($G,"$1"),e=e.replace(o,i),n},getRegex:()=>new RegExp(e,r)};return n}function a4(t){try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const Vh={exec:()=>null};function l4(t,r){const e=t.replace(/\|/g,(s,i,c)=>{let l=!1,a=i;for(;--a>=0&&c[a]==="\\";)l=!l;return l?"|":" |"}),n=e.split(/ \|/);let o=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),r)if(n.length>r)n.splice(r);else for(;n.length{const s=o.match(/^\s+/);if(s===null)return o;const[i]=s;return i.length>=n.length?o.slice(n.length):o}).join(` +`)}class em{constructor(r){xr(this,"options");xr(this,"rules");xr(this,"lexer");this.options=r||wc}space(r){const e=this.rules.block.newline.exec(r);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(r){const e=this.rules.block.code.exec(r);if(e){const n=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Xd(n,` +`)}}}fences(r){const e=this.rules.block.fences.exec(r);if(e){const n=e[0],o=NG(n,e[3]||"");return{type:"code",raw:n,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:o}}}heading(r){const e=this.rules.block.heading.exec(r);if(e){let n=e[2].trim();if(/#$/.test(n)){const o=Xd(n,"#");(this.options.pedantic||!o||/ $/.test(o))&&(n=o.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(r){const e=this.rules.block.hr.exec(r);if(e)return{type:"hr",raw:e[0]}}blockquote(r){const e=this.rules.block.blockquote.exec(r);if(e){let n=e[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,` + $1`);n=Xd(n.replace(/^ *>[ \t]?/gm,""),` +`);const o=this.lexer.state.top;this.lexer.state.top=!0;const s=this.lexer.blockTokens(n);return this.lexer.state.top=o,{type:"blockquote",raw:e[0],tokens:s,text:n}}}list(r){let e=this.rules.block.list.exec(r);if(e){let n=e[1].trim();const o=n.length>1,s={type:"list",raw:"",ordered:o,start:o?+n.slice(0,-1):"",loose:!1,items:[]};n=o?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=o?n:"[*+-]");const i=new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`);let c="",l="",a=!1;for(;r;){let h=!1;if(!(e=i.exec(r))||this.rules.block.hr.test(r))break;c=e[0],r=r.substring(c.length);let u=e[2].split(` +`,1)[0].replace(/^\t+/,v=>" ".repeat(3*v.length)),f=r.split(` +`,1)[0],d=0;this.options.pedantic?(d=2,l=u.trimStart()):(d=e[2].search(/[^ ]/),d=d>4?1:d,l=u.slice(d),d+=e[1].length);let m=!1;if(!u&&/^ *$/.test(f)&&(c+=f+` +`,r=r.substring(f.length+1),h=!0),!h){const v=new RegExp(`^ {0,${Math.min(3,d-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),b=new RegExp(`^ {0,${Math.min(3,d-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),_=new RegExp(`^ {0,${Math.min(3,d-1)}}(?:\`\`\`|~~~)`),E=new RegExp(`^ {0,${Math.min(3,d-1)}}#`);for(;r;){const O=r.split(` +`,1)[0];if(f=O,this.options.pedantic&&(f=f.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),_.test(f)||E.test(f)||v.test(f)||b.test(r))break;if(f.search(/[^ ]/)>=d||!f.trim())l+=` +`+f.slice(d);else{if(m||u.search(/[^ ]/)>=4||_.test(u)||E.test(u)||b.test(u))break;l+=` +`+f}!m&&!f.trim()&&(m=!0),c+=O+` +`,r=r.substring(O.length+1),u=f.slice(d)}}s.loose||(a?s.loose=!0:/\n *\n *$/.test(c)&&(a=!0));let p=null,g;this.options.gfm&&(p=/^\[[ xX]\] /.exec(l),p&&(g=p[0]!=="[ ] ",l=l.replace(/^\[[ xX]\] +/,""))),s.items.push({type:"list_item",raw:c,task:!!p,checked:g,loose:!1,text:l,tokens:[]}),s.raw+=c}s.items[s.items.length-1].raw=c.trimEnd(),s.items[s.items.length-1].text=l.trimEnd(),s.raw=s.raw.trimEnd();for(let h=0;hd.type==="space"),f=u.length>0&&u.some(d=>/\n.*\n/.test(d.raw));s.loose=f}if(s.loose)for(let h=0;h$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:n,raw:e[0],href:o,title:s}}}table(r){const e=this.rules.block.table.exec(r);if(!e||!/[:|]/.test(e[2]))return;const n=l4(e[1]),o=e[2].replace(/^\||\| *$/g,"").split("|"),s=e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split(` +`):[],i={type:"table",raw:e[0],header:[],align:[],rows:[]};if(n.length===o.length){for(const c of o)/^ *-+: *$/.test(c)?i.align.push("right"):/^ *:-+: *$/.test(c)?i.align.push("center"):/^ *:-+ *$/.test(c)?i.align.push("left"):i.align.push(null);for(const c of n)i.header.push({text:c,tokens:this.lexer.inline(c)});for(const c of s)i.rows.push(l4(c,i.header.length).map(l=>({text:l,tokens:this.lexer.inline(l)})));return i}}lheading(r){const e=this.rules.block.lheading.exec(r);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(r){const e=this.rules.block.paragraph.exec(r);if(e){const n=e[1].charAt(e[1].length-1)===` +`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:n,tokens:this.lexer.inline(n)}}}text(r){const e=this.rules.block.text.exec(r);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(r){const e=this.rules.inline.escape.exec(r);if(e)return{type:"escape",raw:e[0],text:fo(e[1])}}tag(r){const e=this.rules.inline.tag.exec(r);if(e)return!this.lexer.state.inLink&&/^/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(r){const e=this.rules.inline.link.exec(r);if(e){const n=e[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;const i=Xd(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{const i=LG(e[2],"()");if(i>-1){const l=(e[0].indexOf("!")===0?5:4)+e[1].length+i;e[2]=e[2].substring(0,i),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let o=e[2],s="";if(this.options.pedantic){const i=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);i&&(o=i[1],s=i[3])}else s=e[3]?e[3].slice(1,-1):"";return o=o.trim(),/^$/.test(n)?o=o.slice(1):o=o.slice(1,-1)),c4(e,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer)}}reflink(r,e){let n;if((n=this.rules.inline.reflink.exec(r))||(n=this.rules.inline.nolink.exec(r))){const o=(n[2]||n[1]).replace(/\s+/g," "),s=e[o.toLowerCase()];if(!s){const i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return c4(n,s,n[0],this.lexer)}}emStrong(r,e,n=""){let o=this.rules.inline.emStrongLDelim.exec(r);if(!o||o[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(o[1]||o[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const i=[...o[0]].length-1;let c,l,a=i,h=0;const u=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,e=e.slice(-1*r.length+i);(o=u.exec(e))!=null;){if(c=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!c)continue;if(l=[...c].length,o[3]||o[4]){a+=l;continue}else if((o[5]||o[6])&&i%3&&!((i+l)%3)){h+=l;continue}if(a-=l,a>0)continue;l=Math.min(l,l+a+h);const f=[...o[0]][0].length,d=r.slice(0,i+o.index+f+l);if(Math.min(i,l)%2){const p=d.slice(1,-1);return{type:"em",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}const m=d.slice(2,-2);return{type:"strong",raw:d,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(r){const e=this.rules.inline.code.exec(r);if(e){let n=e[2].replace(/\n/g," ");const o=/[^ ]/.test(n),s=/^ /.test(n)&&/ $/.test(n);return o&&s&&(n=n.substring(1,n.length-1)),n=fo(n,!0),{type:"codespan",raw:e[0],text:n}}}br(r){const e=this.rules.inline.br.exec(r);if(e)return{type:"br",raw:e[0]}}del(r){const e=this.rules.inline.del.exec(r);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(r){const e=this.rules.inline.autolink.exec(r);if(e){let n,o;return e[2]==="@"?(n=fo(e[1]),o="mailto:"+n):(n=fo(e[1]),o=n),{type:"link",raw:e[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}}url(r){var n;let e;if(e=this.rules.inline.url.exec(r)){let o,s;if(e[2]==="@")o=fo(e[0]),s="mailto:"+o;else{let i;do i=e[0],e[0]=((n=this.rules.inline._backpedal.exec(e[0]))==null?void 0:n[0])??"";while(i!==e[0]);o=fo(e[0]),e[1]==="www."?s="http://"+e[0]:s=e[0]}return{type:"link",raw:e[0],text:o,href:s,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(r){const e=this.rules.inline.text.exec(r);if(e){let n;return this.lexer.state.inRawBlock?n=e[0]:n=fo(e[0]),{type:"text",raw:e[0],text:n}}}}const DG=/^(?: *(?:\n|$))+/,jG=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,BG=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,If=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,FG=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,uS=/(?:[*+-]|\d{1,9}[.)])/,hS=gn(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,uS).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),xb=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,zG=/^[^\n]+/,Sb=/(?!\s*\])(?:\\.|[^\[\]\\])+/,VG=gn(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",Sb).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),HG=gn(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,uS).getRegex(),Hm="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Cb=/|$))/,UG=gn("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",Cb).replace("tag",Hm).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),fS=gn(xb).replace("hr",If).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Hm).getRegex(),WG=gn(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",fS).getRegex(),kb={blockquote:WG,code:jG,def:VG,fences:BG,heading:FG,hr:If,html:UG,lheading:hS,list:HG,newline:DG,paragraph:fS,table:Vh,text:zG},u4=gn("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",If).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Hm).getRegex(),qG={...kb,table:u4,paragraph:gn(xb).replace("hr",If).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",u4).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Hm).getRegex()},GG={...kb,html:gn(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Cb).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Vh,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:gn(xb).replace("hr",If).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",hS).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},dS=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,KG=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,pS=/^( {2,}|\\)\n(?!\s*$)/,ZG=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,JG=gn(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,$f).getRegex(),QG=gn("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,$f).getRegex(),eK=gn("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,$f).getRegex(),tK=gn(/\\([punct])/,"gu").replace(/punct/g,$f).getRegex(),rK=gn(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),nK=gn(Cb).replace("(?:-->|$)","-->").getRegex(),iK=gn("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",nK).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),tm=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,oK=gn(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",tm).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),mS=gn(/^!?\[(label)\]\[(ref)\]/).replace("label",tm).replace("ref",Sb).getRegex(),gS=gn(/^!?\[(ref)\](?:\[\])?/).replace("ref",Sb).getRegex(),sK=gn("reflink|nolink(?!\\()","g").replace("reflink",mS).replace("nolink",gS).getRegex(),Eb={_backpedal:Vh,anyPunctuation:tK,autolink:rK,blockSkip:YG,br:pS,code:KG,del:Vh,emStrongLDelim:JG,emStrongRDelimAst:QG,emStrongRDelimUnd:eK,escape:dS,link:oK,nolink:gS,punctuation:XG,reflink:mS,reflinkSearch:sK,tag:iK,text:ZG,url:Vh},aK={...Eb,link:gn(/^!?\[(label)\]\((.*?)\)/).replace("label",tm).getRegex(),reflink:gn(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",tm).getRegex()},zv={...Eb,escape:gn(dS).replace("])","~|])").getRegex(),url:gn(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\l+" ".repeat(a.length));let n,o,s,i;for(;r;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(c=>(n=c.call({lexer:this},r,e))?(r=r.substring(n.raw.length),e.push(n),!0):!1))){if(n=this.tokenizer.space(r)){r=r.substring(n.raw.length),n.raw.length===1&&e.length>0?e[e.length-1].raw+=` +`:e.push(n);continue}if(n=this.tokenizer.code(r)){r=r.substring(n.raw.length),o=e[e.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=` +`+n.raw,o.text+=` +`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text):e.push(n);continue}if(n=this.tokenizer.fences(r)){r=r.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.heading(r)){r=r.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.hr(r)){r=r.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.blockquote(r)){r=r.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.list(r)){r=r.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.html(r)){r=r.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.def(r)){r=r.substring(n.raw.length),o=e[e.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=` +`+n.raw,o.text+=` +`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(r)){r=r.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.lheading(r)){r=r.substring(n.raw.length),e.push(n);continue}if(s=r,this.options.extensions&&this.options.extensions.startBlock){let c=1/0;const l=r.slice(1);let a;this.options.extensions.startBlock.forEach(h=>{a=h.call({lexer:this},l),typeof a=="number"&&a>=0&&(c=Math.min(c,a))}),c<1/0&&c>=0&&(s=r.substring(0,c+1))}if(this.state.top&&(n=this.tokenizer.paragraph(s))){o=e[e.length-1],i&&o.type==="paragraph"?(o.raw+=` +`+n.raw,o.text+=` +`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):e.push(n),i=s.length!==r.length,r=r.substring(n.raw.length);continue}if(n=this.tokenizer.text(r)){r=r.substring(n.raw.length),o=e[e.length-1],o&&o.type==="text"?(o.raw+=` +`+n.raw,o.text+=` +`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):e.push(n);continue}if(r){const c="Infinite loop on byte: "+r.charCodeAt(0);if(this.options.silent)break;throw new Error(c)}}return this.state.top=!0,e}inline(r,e=[]){return this.inlineQueue.push({src:r,tokens:e}),e}inlineTokens(r,e=[]){let n,o,s,i=r,c,l,a;if(this.tokens.links){const h=Object.keys(this.tokens.links);if(h.length>0)for(;(c=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)h.includes(c[0].slice(c[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,c.index)+"["+"a".repeat(c[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(c=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)i=i.slice(0,c.index)+"["+"a".repeat(c[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(c=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,c.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;r;)if(l||(a=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(h=>(n=h.call({lexer:this},r,e))?(r=r.substring(n.raw.length),e.push(n),!0):!1))){if(n=this.tokenizer.escape(r)){r=r.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.tag(r)){r=r.substring(n.raw.length),o=e[e.length-1],o&&n.type==="text"&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):e.push(n);continue}if(n=this.tokenizer.link(r)){r=r.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.reflink(r,this.tokens.links)){r=r.substring(n.raw.length),o=e[e.length-1],o&&n.type==="text"&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):e.push(n);continue}if(n=this.tokenizer.emStrong(r,i,a)){r=r.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.codespan(r)){r=r.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.br(r)){r=r.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.del(r)){r=r.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.autolink(r)){r=r.substring(n.raw.length),e.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(r))){r=r.substring(n.raw.length),e.push(n);continue}if(s=r,this.options.extensions&&this.options.extensions.startInline){let h=1/0;const u=r.slice(1);let f;this.options.extensions.startInline.forEach(d=>{f=d.call({lexer:this},u),typeof f=="number"&&f>=0&&(h=Math.min(h,f))}),h<1/0&&h>=0&&(s=r.substring(0,h+1))}if(n=this.tokenizer.inlineText(s)){r=r.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(a=n.raw.slice(-1)),l=!0,o=e[e.length-1],o&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):e.push(n);continue}if(r){const h="Infinite loop on byte: "+r.charCodeAt(0);if(this.options.silent)break;throw new Error(h)}}return e}}class rm{constructor(r){xr(this,"options");this.options=r||wc}code(r,e,n){var s;const o=(s=(e||"").match(/^\S*/))==null?void 0:s[0];return r=r.replace(/\n$/,"")+` +`,o?'
'+(n?r:fo(r,!0))+`
+`:"
"+(n?r:fo(r,!0))+`
+`}blockquote(r){return`
+${r}
+`}html(r,e){return r}heading(r,e,n){return`${r} +`}hr(){return`
+`}list(r,e,n){const o=e?"ol":"ul",s=e&&n!==1?' start="'+n+'"':"";return"<"+o+s+`> +`+r+" +`}listitem(r,e,n){return`
  • ${r}
  • +`}checkbox(r){return"'}paragraph(r){return`

    ${r}

    +`}table(r,e){return e&&(e=`${e}`),` + +`+r+` +`+e+`
    +`}tablerow(r){return` +${r} +`}tablecell(r,e){const n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+r+` +`}strong(r){return`${r}`}em(r){return`${r}`}codespan(r){return`${r}`}br(){return"
    "}del(r){return`${r}`}link(r,e,n){const o=a4(r);if(o===null)return n;r=o;let s='
    ",s}image(r,e,n){const o=a4(r);if(o===null)return n;r=o;let s=`${n}0&&f.tokens[0].type==="paragraph"?(f.tokens[0].text=g+" "+f.tokens[0].text,f.tokens[0].tokens&&f.tokens[0].tokens.length>0&&f.tokens[0].tokens[0].type==="text"&&(f.tokens[0].tokens[0].text=g+" "+f.tokens[0].tokens[0].text)):f.tokens.unshift({type:"text",text:g+" "}):p+=g+" "}p+=this.parse(f.tokens,a),h+=this.renderer.listitem(p,m,!!d)}n+=this.renderer.list(h,c,l);continue}case"html":{const i=s;n+=this.renderer.html(i.text,i.block);continue}case"paragraph":{const i=s;n+=this.renderer.paragraph(this.parseInline(i.tokens));continue}case"text":{let i=s,c=i.tokens?this.parseInline(i.tokens):i.text;for(;o+1{const a=c[l].flat(1/0);n=n.concat(this.walkTokens(a,e))}):c.tokens&&(n=n.concat(this.walkTokens(c.tokens,e)))}}return n}use(...r){const e=this.defaults.extensions||{renderers:{},childTokens:{}};return r.forEach(n=>{const o={...n};if(o.async=this.defaults.async||o.async||!1,n.extensions&&(n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){const i=e.renderers[s.name];i?e.renderers[s.name]=function(...c){let l=s.renderer.apply(this,c);return l===!1&&(l=i.apply(this,c)),l}:e.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const i=e[s.level];i?i.unshift(s.tokenizer):e[s.level]=[s.tokenizer],s.start&&(s.level==="block"?e.startBlock?e.startBlock.push(s.start):e.startBlock=[s.start]:s.level==="inline"&&(e.startInline?e.startInline.push(s.start):e.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(e.childTokens[s.name]=s.childTokens)}),o.extensions=e),n.renderer){const s=this.defaults.renderer||new rm(this.defaults);for(const i in n.renderer){if(!(i in s))throw new Error(`renderer '${i}' does not exist`);if(i==="options")continue;const c=i,l=n.renderer[c],a=s[c];s[c]=(...h)=>{let u=l.apply(s,h);return u===!1&&(u=a.apply(s,h)),u||""}}o.renderer=s}if(n.tokenizer){const s=this.defaults.tokenizer||new em(this.defaults);for(const i in n.tokenizer){if(!(i in s))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;const c=i,l=n.tokenizer[c],a=s[c];s[c]=(...h)=>{let u=l.apply(s,h);return u===!1&&(u=a.apply(s,h)),u}}o.tokenizer=s}if(n.hooks){const s=this.defaults.hooks||new Hh;for(const i in n.hooks){if(!(i in s))throw new Error(`hook '${i}' does not exist`);if(i==="options")continue;const c=i,l=n.hooks[c],a=s[c];Hh.passThroughHooks.has(i)?s[c]=h=>{if(this.defaults.async)return Promise.resolve(l.call(s,h)).then(f=>a.call(s,f));const u=l.call(s,h);return a.call(s,u)}:s[c]=(...h)=>{let u=l.apply(s,h);return u===!1&&(u=a.apply(s,h)),u}}o.hooks=s}if(n.walkTokens){const s=this.defaults.walkTokens,i=n.walkTokens;o.walkTokens=function(c){let l=[];return l.push(i.call(this,c)),s&&(l=l.concat(s.call(this,c))),l}}this.defaults={...this.defaults,...o}}),this}setOptions(r){return this.defaults={...this.defaults,...r},this}lexer(r,e){return Ps.lex(r,e??this.defaults)}parser(r,e){return Ms.parse(r,e??this.defaults)}}vf=new WeakSet,Vv=function(r,e){return(n,o)=>{const s={...o},i={...this.defaults,...s};this.defaults.async===!0&&s.async===!1&&(i.silent,i.async=!0);const c=Pd(this,hm,vS).call(this,!!i.silent,!!i.async);if(typeof n>"u"||n===null)return c(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return c(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(i.hooks&&(i.hooks.options=i),i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(n):n).then(l=>r(l,i)).then(l=>i.hooks?i.hooks.processAllTokens(l):l).then(l=>i.walkTokens?Promise.all(this.walkTokens(l,i.walkTokens)).then(()=>l):l).then(l=>e(l,i)).then(l=>i.hooks?i.hooks.postprocess(l):l).catch(c);try{i.hooks&&(n=i.hooks.preprocess(n));let l=r(n,i);i.hooks&&(l=i.hooks.processAllTokens(l)),i.walkTokens&&this.walkTokens(l,i.walkTokens);let a=e(l,i);return i.hooks&&(a=i.hooks.postprocess(a)),a}catch(l){return c(l)}}},hm=new WeakSet,vS=function(r,e){return n=>{if(n.message+=` +Please report this to https://github.com/markedjs/marked.`,r){const o="

    An error occurred:

    "+fo(n.message+"",!0)+"
    ";return e?Promise.resolve(o):o}if(e)return Promise.reject(n);throw n}};const mc=new cK;function dn(t,r){return mc.parse(t,r)}dn.options=dn.setOptions=function(t){return mc.setOptions(t),dn.defaults=mc.defaults,aS(dn.defaults),dn};dn.getDefaults=wb;dn.defaults=wc;dn.use=function(...t){return mc.use(...t),dn.defaults=mc.defaults,aS(dn.defaults),dn};dn.walkTokens=function(t,r){return mc.walkTokens(t,r)};dn.parseInline=mc.parseInline;dn.Parser=Ms;dn.parser=Ms.parse;dn.Renderer=rm;dn.TextRenderer=Tb;dn.Lexer=Ps;dn.lexer=Ps.lex;dn.Tokenizer=em;dn.Hooks=Hh;dn.parse=dn;dn.options;dn.setOptions;dn.use;dn.walkTokens;dn.parseInline;Ms.parse;Ps.lex;const uK=c6('

    ',2),h4={__name:"About",setup(t){fetch("./README.md").then(n=>n.text()).then(n=>{const o=dn(e(n));document.getElementById("about_html_content").innerHTML=o}).catch(n=>{});function r(n,o){for(var s=[],i=-1;(i=o.indexOf(n,i+1))>=0;)n.includes("Start")?s.push([i+14]):s.push(i);return s}function e(n){var o=r("",n),s=r("",n),i="";try{for(let c=0;cuK}},hK={class:"grid gap-2 info-toolbar text-gray-500 dark:text-gray-400"},fK=c6('

    Main Menu

    From the main menu, the following actions are available:

    📂 Open Directory

    Select a directory/folder to describe your research.

    🗃️ Load Files

    Loads files from the selected directory into this RO-Crate.

    🗄️ Bulk Add

    Select a spreadsheet from a different directory to assist you with metadata description. This will append to your existing RO-Crate if there is already one created.

    💾 Save

    Save the state of this page into your RO-Crate. This will create an ro-crate-metadata.json file or append data into an existing ro-crate-metadata.json.

    ⓧ Close

    Closes without saving.

    Mode

    Select a predefined mode or load one from your computer.


    General Navigation

    • Selected Directory shows the directory or folder you currently have open.
    • Below Selected Directory, you will see a home icon followed by a file path that indicates where you are located in the collection levels. This will change as you navigate to different sublevels.
    • Depending on the metadata group, different types of metadata will be available:
      • About - The core metadata for this RO-Crate and its subject matter.
      • Related People, Orgs & Works - The context for the creation of this RO-Crate; who made it, funded it etc.
      • Structure - How the parts of this RO-Crate relate, such as collection and object relationships.
      • Provenance - Detailed description of how entities were created, by whom and with which tools.
      • Space & Time - Where and when the data was collected; the times and places it mentions or describes.
      • Software & Hardware - For computer programs and execution environments that could be used to create data, have created data, or are being packaged and described.
      • Others - Other properties not in the above categories. Note that if you find a property in `Other` that should be in one of the above groups or have other suggestions, please raise an issue on [GitHub](https://github.com/Language-Research-Technology/crate-o).

    On the right-hand panel, there are some further options related to navigating and creating metadata entities:

    • Create New Entity: Create a new metadata entity, such as a provenance action such as CreateAction, which describes how a work is created with more precision than a property like `author`.
    • Links from: When located in a sub-group, select to view the parent group(s).
    • All Entities: Select to view all metadata associated with your collection.
    • Unlinked Entities: Select to view all metadata that currently is not linked to any properties.
    ',20),dK=[fK],f4={__name:"Help",setup(t){return(r,e)=>(Se(),Ne("div",hK,dK))}};function Jd(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var yS={exports:{}};/*! ExcelJS 19-10-2023 */(function(t,r){(function(e){t.exports=e()})(function(){return function e(n,o,s){function i(a,h){if(!o[a]){if(!n[a]){var u=typeof Jd=="function"&&Jd;if(!h&&u)return u(a,!0);if(c)return c(a,!0);var f=new Error("Cannot find module '"+a+"'");throw f.code="MODULE_NOT_FOUND",f}var d=o[a]={exports:{}};n[a][0].call(d.exports,function(m){return i(n[a][1][m]||m)},d,d.exports,e,n,o,s)}return o[a].exports}for(var c=typeof Jd=="function"&&Jd,l=0;l{const v=this.workbook.addWorksheet(m.sheetName),b=m.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],_=m.map||function(O){if(O==="")return null;const j=Number(O);if(!Number.isNaN(j)&&j!==1/0)return j;const W=b.reduce((U,K)=>{if(U)return U;const Y=a(O,K,!0);return Y.isValid()?Y:null},null);if(W)return new Date(W.valueOf());const z=f[O];return z!==void 0?z:O},E=i.parse(m.parserOptions).on("data",O=>{v.addRow(O.map(_))}).on("end",()=>{E.emit("worksheet",v)});E.on("worksheet",p).on("error",g),d.pipe(E)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(d,m){return new Promise((p,g)=>{m=m||{};const v=this.workbook.getWorksheet(m.sheetName||m.sheetId),b=i.format(m.formatterOptions);d.on("finish",()=>{p()}),b.on("error",g),b.pipe(d);const{dateFormat:_,dateUTC:E}=m,O=m.map||(z=>{if(z){if(z.text||z.hyperlink)return z.hyperlink||z.text||"";if(z.formula||z.result)return z.result||"";if(z instanceof Date)return _?E?a.utc(z).format(_):a(z).format(_):E?a.utc(z).format():a(z).format();if(z.error)return z.error;if(typeof z=="object")return JSON.stringify(z)}return z}),j=m.includeEmptyRows===void 0||m.includeEmptyRows;let W=1;v&&v.eachRow((z,U)=>{if(j)for(;W++2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=l,a)if(typeof a=="string"){const u=s.decodeAddress(a);this.nativeCol=u.col+h,this.nativeColOff=0,this.nativeRow=u.row+h,this.nativeRowOff=0}else a.nativeCol!==void 0?(this.nativeCol=a.nativeCol||0,this.nativeColOff=a.nativeColOff||0,this.nativeRow=a.nativeRow||0,this.nativeRowOff=a.nativeRowOff||0):a.col!==void 0?(this.col=a.col+h,this.row=a.row+h):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(l){return l instanceof i||l==null?l:new i(l)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(l){this.nativeCol=Math.floor(l),this.nativeColOff=Math.floor((l-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(l){this.nativeRow=Math.floor(l),this.nativeRowOff=Math.floor((l-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(l){this.nativeCol=l.nativeCol,this.nativeColOff=l.nativeColOff,this.nativeRow=l.nativeRow,this.nativeRowOff=l.nativeRowOff}}n.exports=i},{"../utils/col-cache":19}],3:[function(e,n,o){const s=e("../utils/col-cache"),i=e("../utils/under-dash"),c=e("./enums"),{slideFormula:l}=e("../utils/shared-formula"),a=e("./note");class h{constructor(d,m,p){if(!d||!m)throw new Error("A Cell needs a Row");this._row=d,this._column=m,s.validateAddress(p),this._address=p,this._value=u.create(h.Types.Null,this),this.style=this._mergeStyle(d.style,m.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(d){this.style.numFmt=d}get font(){return this.style.font}set font(d){this.style.font=d}get alignment(){return this.style.alignment}set alignment(d){this.style.alignment=d}get border(){return this.style.border}set border(d){this.style.border=d}get fill(){return this.style.fill}set fill(d){this.style.fill=d}get protection(){return this.style.protection}set protection(d){this.style.protection=d}_mergeStyle(d,m,p){const g=d&&d.numFmt||m&&m.numFmt;g&&(p.numFmt=g);const v=d&&d.font||m&&m.font;v&&(p.font=v);const b=d&&d.alignment||m&&m.alignment;b&&(p.alignment=b);const _=d&&d.border||m&&m.border;_&&(p.border=_);const E=d&&d.fill||m&&m.fill;E&&(p.fill=E);const O=d&&d.protection||m&&m.protection;return O&&(p.protection=O),p}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===h.Types.Merge}merge(d,m){this._value.release(),this._value=u.create(h.Types.Merge,this,d),m||(this.style=d.style)}unmerge(){this.type===h.Types.Merge&&(this._value.release(),this._value=u.create(h.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(d){return this._value.type===h.Types.Merge&&this._value.isMergedTo(d)}get master(){return this.type===h.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===h.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(d){this.type!==h.Types.Merge?(this._value.release(),this._value=u.create(u.getType(d),this,d)):this._value.master.value=d}get note(){return this._comment&&this._comment.note}set note(d){this._comment=new a(d)}get text(){return this._value.toString()}get html(){return i.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(d){this.type===h.Types.String&&(this._value=u.create(h.Types.Hyperlink,this,{text:this._value.value,hyperlink:d}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:d}=this._row;return{sheetName:d.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(d){this.names=[d]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(d){const{definedNames:m}=this.workbook;m.removeAllNames(this.fullAddress),d.forEach(p=>{m.addEx(this.fullAddress,p)})}addName(d){this.workbook.definedNames.addEx(this.fullAddress,d)}removeName(d){this.workbook.definedNames.removeEx(this.fullAddress,d)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(d){this._dataValidations.add(this.address,d)}get model(){const{model:d}=this._value;return d.style=this.style,this._comment&&(d.comment=this._comment.model),d}set model(d){if(this._value.release(),this._value=u.create(d.type,this),this._value.model=d,d.comment)switch(d.comment.type){case"note":this._comment=a.fromModel(d.comment)}d.style?this.style=d.style:this.style={}}}h.Types=c.ValueType;const u={getType:f=>f==null?h.Types.Null:f instanceof String||typeof f=="string"?h.Types.String:typeof f=="number"?h.Types.Number:typeof f=="boolean"?h.Types.Boolean:f instanceof Date?h.Types.Date:f.text&&f.hyperlink?h.Types.Hyperlink:f.formula||f.sharedFormula?h.Types.Formula:f.richText?h.Types.RichText:f.sharedString?h.Types.SharedString:f.error?h.Types.Error:h.Types.JSON,types:[{t:h.Types.Null,f:class{constructor(f){this.model={address:f.address,type:h.Types.Null}}get value(){return null}set value(f){}get type(){return h.Types.Null}get effectiveType(){return h.Types.Null}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return""}release(){}toString(){return""}}},{t:h.Types.Number,f:class{constructor(f,d){this.model={address:f.address,type:h.Types.Number,value:d}}get value(){return this.model.value}set value(f){this.model.value=f}get type(){return h.Types.Number}get effectiveType(){return h.Types.Number}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:h.Types.String,f:class{constructor(f,d){this.model={address:f.address,type:h.Types.String,value:d}}get value(){return this.model.value}set value(f){this.model.value=f}get type(){return h.Types.String}get effectiveType(){return h.Types.String}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:h.Types.Date,f:class{constructor(f,d){this.model={address:f.address,type:h.Types.Date,value:d}}get value(){return this.model.value}set value(f){this.model.value=f}get type(){return h.Types.Date}get effectiveType(){return h.Types.Date}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:h.Types.Hyperlink,f:class{constructor(f,d){this.model={address:f.address,type:h.Types.Hyperlink,text:d?d.text:void 0,hyperlink:d?d.hyperlink:void 0},d&&d.tooltip&&(this.model.tooltip=d.tooltip)}get value(){const f={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(f.tooltip=this.model.tooltip),f}set value(f){this.model={text:f.text,hyperlink:f.hyperlink},f.tooltip&&(this.model.tooltip=f.tooltip)}get text(){return this.model.text}set text(f){this.model.text=f}get hyperlink(){return this.model.hyperlink}set hyperlink(f){this.model.hyperlink=f}get type(){return h.Types.Hyperlink}get effectiveType(){return h.Types.Hyperlink}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:h.Types.Formula,f:class{constructor(f,d){this.cell=f,this.model={address:f.address,type:h.Types.Formula,shareType:d?d.shareType:void 0,ref:d?d.ref:void 0,formula:d?d.formula:void 0,sharedFormula:d?d.sharedFormula:void 0,result:d?d.result:void 0}}_copyModel(f){const d={},m=p=>{const g=f[p];g&&(d[p]=g)};return m("formula"),m("result"),m("ref"),m("shareType"),m("sharedFormula"),d}get value(){return this._copyModel(this.model)}set value(f){this.model=this._copyModel(f)}validate(f){switch(u.getType(f)){case h.Types.Null:case h.Types.String:case h.Types.Number:case h.Types.Date:break;case h.Types.Hyperlink:case h.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(f){this.model.formula=f}get formulaType(){return this.model.formula?c.FormulaType.Master:this.model.sharedFormula?c.FormulaType.Shared:c.FormulaType.None}get result(){return this.model.result}set result(f){this.model.result=f}get type(){return h.Types.Formula}get effectiveType(){const f=this.model.result;return f==null?c.ValueType.Null:f instanceof String||typeof f=="string"?c.ValueType.String:typeof f=="number"?c.ValueType.Number:f instanceof Date?c.ValueType.Date:f.text&&f.hyperlink?c.ValueType.Hyperlink:f.formula?c.ValueType.Formula:c.ValueType.Null}get address(){return this.model.address}set address(f){this.model.address=f}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:f}=this.cell,d=f.findCell(this.model.sharedFormula);this._translatedFormula=d&&l(d.formula,d.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:h.Types.Merge,f:class{constructor(f,d){this.model={address:f.address,type:h.Types.Merge,master:d?d.address:void 0},this._master=d,d&&d.addMergeRef()}get value(){return this._master.value}set value(f){f instanceof h?(this._master&&this._master.releaseMergeRef(),f.addMergeRef(),this._master=f):this._master.value=f}isMergedTo(f){return f===this._master}get master(){return this._master}get type(){return h.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:h.Types.JSON,f:class{constructor(f,d){this.model={address:f.address,type:h.Types.String,value:JSON.stringify(d),rawValue:d}}get value(){return this.model.rawValue}set value(f){this.model.rawValue=f,this.model.value=JSON.stringify(f)}get type(){return h.Types.String}get effectiveType(){return h.Types.String}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:h.Types.SharedString,f:class{constructor(f,d){this.model={address:f.address,type:h.Types.SharedString,value:d}}get value(){return this.model.value}set value(f){this.model.value=f}get type(){return h.Types.SharedString}get effectiveType(){return h.Types.SharedString}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:h.Types.RichText,f:class{constructor(f,d){this.model={address:f.address,type:h.Types.String,value:d}}get value(){return this.model.value}set value(f){this.model.value=f}toString(){return this.model.value.richText.map(f=>f.text).join("")}get type(){return h.Types.RichText}get effectiveType(){return h.Types.RichText}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:h.Types.Boolean,f:class{constructor(f,d){this.model={address:f.address,type:h.Types.Boolean,value:d}}get value(){return this.model.value}set value(f){this.model.value=f}get type(){return h.Types.Boolean}get effectiveType(){return h.Types.Boolean}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:h.Types.Error,f:class{constructor(f,d){this.model={address:f.address,type:h.Types.Error,value:d}}get value(){return this.model.value}set value(f){this.model.value=f}get type(){return h.Types.Error}get effectiveType(){return h.Types.Error}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((f,d)=>(f[d.t]=d.f,f),[]),create(f,d,m){const p=this.types[f];if(!p)throw new Error("Could not create Value of type "+f);return new p(d,m)}};n.exports=h},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(e,n,o){const s=e("../utils/under-dash"),i=e("./enums"),c=e("../utils/col-cache");class l{constructor(h,u,f){this._worksheet=h,this._number=u,f!==!1&&(this.defn=f)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return c.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(h){h?(this.key=h.key,this.width=h.width!==void 0?h.width:9,this.outlineLevel=h.outlineLevel,h.style?this.style=h.style:this.style={},this.header=h.header,this._hidden=!!h.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(h){h!==void 0?(this._header=h,this.headers.forEach((u,f)=>{this._worksheet.getCell(f+1,this.number).value=u})):this._header=void 0}get key(){return this._key}set key(h){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=h,h&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(h){this._hidden=h}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(h){this._outlineLevel=h}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(h){return this.width===h.width&&this.hidden===h.hidden&&this.outlineLevel===h.outlineLevel&&s.isEqual(this.style,h.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const h=this.style;return!h||!(h.font||h.numFmt||h.alignment||h.border||h.fill||h.protection)}get headerCount(){return this.headers.length}eachCell(h,u){const f=this.number;u||(u=h,h=null),this._worksheet.eachRow(h,(d,m)=>{u(d.getCell(f),m)})}get values(){const h=[];return this.eachCell((u,f)=>{u&&u.type!==i.ValueType.Null&&(h[f]=u.value)}),h}set values(h){if(!h)return;const u=this.number;let f=0;h.hasOwnProperty("0")&&(f=1),h.forEach((d,m)=>{this._worksheet.getCell(m+f,u).value=d})}_applyStyle(h,u){return this.style[h]=u,this.eachCell(f=>{f[h]=u}),u}get numFmt(){return this.style.numFmt}set numFmt(h){this._applyStyle("numFmt",h)}get font(){return this.style.font}set font(h){this._applyStyle("font",h)}get alignment(){return this.style.alignment}set alignment(h){this._applyStyle("alignment",h)}get protection(){return this.style.protection}set protection(h){this._applyStyle("protection",h)}get border(){return this.style.border}set border(h){this._applyStyle("border",h)}get fill(){return this.style.fill}set fill(h){this._applyStyle("fill",h)}static toModel(h){const u=[];let f=null;return h&&h.forEach((d,m)=>{d.isDefault?f&&(f=null):f&&d.equivalentTo(f)?f.max=m+1:(f={min:m+1,max:m+1,width:d.width!==void 0?d.width:9,style:d.style,isCustomWidth:d.isCustomWidth,hidden:d.hidden,outlineLevel:d.outlineLevel,collapsed:d.collapsed},u.push(f))}),u.length?u:void 0}static fromModel(h,u){const f=[];let d=1,m=0;for(u=(u=u||[]).sort(function(p,g){return p.min-g.min});m{u.removeCellEx(h)})}forEach(h){s.each(this.matrixMap,(u,f)=>{u.forEach(d=>{h(f,d)})})}getNames(h){return this.getNamesEx(i.decodeEx(h))}getNamesEx(h){return s.map(this.matrixMap,(u,f)=>u.findCellEx(h)&&f).filter(Boolean)}_explore(h,u){u.mark=!1;const{sheetName:f}=u,d=new l(u.row,u.col,u.row,u.col,f);let m,p;function g(b,_){const E=h.findCellAt(f,b,u.col);return!(!E||!E.mark)&&(d[_]=b,E.mark=!1,!0)}for(p=u.row-1;g(p,"top");p--);for(p=u.row+1;g(p,"bottom");p++);function v(b,_){const E=[];for(p=d.top;p<=d.bottom;p++){const O=h.findCellAt(f,p,b);if(!O||!O.mark)return!1;E.push(O)}d[_]=b;for(let O=0;O{f.mark=!0}),{name:h,ranges:u.map(f=>f.mark&&this._explore(u,f)).filter(Boolean).map(f=>f.$shortRange)}):{name:h,ranges:[]}}normaliseMatrix(h,u){h.forEachInSheet(u,(f,d,m)=>{f&&(f.row===d&&f.col===m||(f.row=d,f.col=m,f.address=i.n2l(m)+d))})}spliceRows(h,u,f,d){s.each(this.matrixMap,m=>{m.spliceRows(h,u,f,d),this.normaliseMatrix(m,h)})}spliceColumns(h,u,f,d){s.each(this.matrixMap,m=>{m.spliceColumns(h,u,f,d),this.normaliseMatrix(m,h)})}get model(){return s.map(this.matrixMap,(h,u)=>this.getRanges(u,h)).filter(h=>h.ranges.length)}set model(h){const u=this.matrixMap={};h.forEach(f=>{const d=u[f.name]=new c;f.ranges.forEach(m=>{a.test(m.split("!").pop()||"")&&d.addCell(m)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(e,n,o){n.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,n,o){const s=e("../utils/col-cache"),i=e("./anchor");n.exports=class{constructor(c,l){this.worksheet=c,this.model=l}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(c){let{type:l,imageId:a,range:h,hyperlinks:u}=c;if(this.type=l,this.imageId=a,l==="image")if(typeof h=="string"){const f=s.decode(h);this.range={tl:new i(this.worksheet,{col:f.left,row:f.top},-1),br:new i(this.worksheet,{col:f.right,row:f.bottom},0),editAs:"oneCell"}}else this.range={tl:new i(this.worksheet,h.tl,0),br:h.br&&new i(this.worksheet,h.br,0),ext:h.ext,editAs:h.editAs,hyperlinks:u||h.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(e,n,o){const s=e("../utils/under-dash");class i{constructor(l){this.note=l}get model(){let l=null;switch(typeof this.note){case"string":l={type:"note",note:{texts:[{text:this.note}]}};break;default:l={type:"note",note:this.note}}return s.deepMerge({},i.DEFAULT_CONFIGS,l)}set model(l){const{note:a}=l,{texts:h}=a;h.length===1&&Object.keys(h[0]).length===1?this.note=h[0].text:this.note=a}static fromModel(l){const a=new i;return a.model=l,a}}i.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},n.exports=i},{"../utils/under-dash":26}],10:[function(e,n,o){const s=e("../utils/col-cache");class i{constructor(){this.decode(arguments)}setTLBR(l,a,h,u,f){if(arguments.length<4){const d=s.decodeAddress(l),m=s.decodeAddress(a);this.model={top:Math.min(d.row,m.row),left:Math.min(d.col,m.col),bottom:Math.max(d.row,m.row),right:Math.max(d.col,m.col),sheetName:h},this.setTLBR(d.row,d.col,m.row,m.col,f)}else this.model={top:Math.min(l,h),left:Math.min(a,u),bottom:Math.max(l,h),right:Math.max(a,u),sheetName:f}}decode(l){switch(l.length){case 5:this.setTLBR(l[0],l[1],l[2],l[3],l[4]);break;case 4:this.setTLBR(l[0],l[1],l[2],l[3]);break;case 3:this.setTLBR(l[0],l[1],l[2]);break;case 2:this.setTLBR(l[0],l[1]);break;case 1:{const a=l[0];if(a instanceof i)this.model={top:a.model.top,left:a.model.left,bottom:a.model.bottom,right:a.model.right,sheetName:a.sheetName};else if(a instanceof Array)this.decode(a);else if(a.top&&a.left&&a.bottom&&a.right)this.model={top:a.top,left:a.left,bottom:a.bottom,right:a.right,sheetName:a.sheetName};else{const h=s.decodeEx(a);h.top?this.model={top:h.top,left:h.left,bottom:h.bottom,right:h.right,sheetName:h.sheetName}:this.model={top:h.row,left:h.col,bottom:h.row,right:h.col,sheetName:h.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+l.length)}}get top(){return this.model.top||1}set top(l){this.model.top=l}get left(){return this.model.left||1}set left(l){this.model.left=l}get bottom(){return this.model.bottom||1}set bottom(l){this.model.bottom=l}get right(){return this.model.right||1}set right(l){this.model.right=l}get sheetName(){return this.model.sheetName}set sheetName(l){this.model.sheetName=l}get _serialisedSheetName(){const{sheetName:l}=this.model;return l?/^[a-zA-Z0-9]*$/.test(l)?l+"!":`'${l}'!`:""}expand(l,a,h,u){(!this.model.top||lthis.bottom)&&(this.bottom=h),(!this.model.right||u>this.right)&&(this.right=u)}expandRow(l){if(l){const{dimensions:a,number:h}=l;a&&this.expand(h,a.min,h,a.max)}}expandToAddress(l){const a=s.decodeEx(l);this.expand(a.row,a.col,a.row,a.col)}get tl(){return s.n2l(this.left)+this.top}get $t$l(){return`$${s.n2l(this.left)}$${this.top}`}get br(){return s.n2l(this.right)+this.bottom}get $b$r(){return`$${s.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(l){return(!l.sheetName||!this.sheetName||l.sheetName===this.sheetName)&&!(l.bottomthis.bottom)&&!(l.rightthis.right)}contains(l){const a=s.decodeEx(l);return this.containsEx(a)}containsEx(l){return(!l.sheetName||!this.sheetName||l.sheetName===this.sheetName)&&l.row>=this.top&&l.row<=this.bottom&&l.col>=this.left&&l.col<=this.right}forEachAddress(l){for(let a=this.left;a<=this.right;a++)for(let h=this.top;h<=this.bottom;h++)l(s.encodeAddress(h,a),h,a)}}n.exports=i},{"../utils/col-cache":19}],11:[function(e,n,o){const s=e("../utils/under-dash"),i=e("./enums"),c=e("../utils/col-cache"),l=e("./cell");n.exports=class{constructor(a,h){this._worksheet=a,this._number=h,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(a){return this._cells[a-1]}getCellEx(a){let h=this._cells[a.col-1];if(!h){const u=this._worksheet.getColumn(a.col);h=new l(this,u,a.address),this._cells[a.col-1]=h}return h}getCell(a){if(typeof a=="string"){const h=this._worksheet.getColumnKey(a);a=h?h.number:c.l2n(a)}return this._cells[a-1]||this.getCellEx({address:c.encodeAddress(this._number,a),row:this._number,col:a})}splice(a,h){const u=a+h;for(var f=arguments.length,d=new Array(f>2?f-2:0),m=2;m0)for(v=g;v>=u;v--)b=this._cells[v-1],b?(_=this.getCell(v+p),_.value=b.value,_.style=b.style,_._comment=b._comment):this._cells[v+p-1]=void 0;for(v=0;v{u&&u.type!==i.ValueType.Null&&h(u,f+1)})}addPageBreak(a,h){const u=this._worksheet,f=Math.max(0,a-1)||0,d=Math.max(0,h-1)||16838,m={id:this._number,max:d,man:1};f&&(m.min=f),u.rowBreaks.push(m)}get values(){const a=[];return this._cells.forEach(h=>{h&&h.type!==i.ValueType.Null&&(a[h.col]=h.value)}),a}set values(a){if(this._cells=[],a)if(a instanceof Array){let h=0;a.hasOwnProperty("0")&&(h=1),a.forEach((u,f)=>{u!==void 0&&(this.getCellEx({address:c.encodeAddress(this._number,f+h),row:this._number,col:f+h}).value=u)})}else this._worksheet.eachColumnKey((h,u)=>{a[u]!==void 0&&(this.getCellEx({address:c.encodeAddress(this._number,h.number),row:this._number,col:h.number}).value=a[u])})}get hasValues(){return s.some(this._cells,a=>a&&a.type!==i.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let a=0;return this.eachCell(()=>{a++}),a}get dimensions(){let a=0,h=0;return this._cells.forEach(u=>{u&&u.type!==i.ValueType.Null&&((!a||a>u.col)&&(a=u.col),h0?{min:a,max:h}:null}_applyStyle(a,h){return this.style[a]=h,this._cells.forEach(u=>{u&&(u[a]=h)}),h}get numFmt(){return this.style.numFmt}set numFmt(a){this._applyStyle("numFmt",a)}get font(){return this.style.font}set font(a){this._applyStyle("font",a)}get alignment(){return this.style.alignment}set alignment(a){this._applyStyle("alignment",a)}get protection(){return this.style.protection}set protection(a){this._applyStyle("protection",a)}get border(){return this.style.border}set border(a){this._applyStyle("border",a)}get fill(){return this.style.fill}set fill(a){this._applyStyle("fill",a)}get hidden(){return!!this._hidden}set hidden(a){this._hidden=a}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(a){this._outlineLevel=a}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const a=[];let h=0,u=0;return this._cells.forEach(f=>{if(f){const d=f.model;d&&((!h||h>f.col)&&(h=f.col),u{switch(u.type){case l.Types.Merge:break;default:{let f;if(u.address)f=c.decodeAddress(u.address);else if(h){const{row:d}=h,m=h.col+1;f={row:d,col:m,address:c.encodeAddress(d,m),$col$row:`$${c.n2l(m)}$${d}`}}h=f,this.getCellEx(f).model=u;break}}}),a.height?this.height=a.height:delete this.height,this.hidden=a.hidden,this.outlineLevel=a.outlineLevel||0,this.style=a.style&&JSON.parse(JSON.stringify(a.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(e,n,o){const s=e("../utils/col-cache");class i{constructor(l,a,h){this.table=l,this.column=a,this.index=h}_set(l,a){this.table.cacheState(),this.column[l]=a}get name(){return this.column.name}set name(l){this._set("name",l)}get filterButton(){return this.column.filterButton}set filterButton(l){this.column.filterButton=l}get style(){return this.column.style}set style(l){this.column.style=l}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(l){this._set("totalsRowLabel",l)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(l){this._set("totalsRowFunction",l)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(l){this._set("totalsRowResult",l)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(l){this._set("totalsRowFormula",l)}}n.exports=class{constructor(c,l){this.worksheet=c,l&&(this.table=l,this.validate(),this.store())}getFormula(c){switch(c.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${c.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${c.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${c.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${c.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${c.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${c.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${c.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${c.name}])`;case"custom":return c.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+c.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:c}=this,l=(p,g,v)=>{p[g]===void 0&&(p[g]=v)};l(c,"headerRow",!0),l(c,"totalsRow",!1),l(c,"style",{}),l(c.style,"theme","TableStyleMedium2"),l(c.style,"showFirstColumn",!1),l(c.style,"showLastColumn",!1),l(c.style,"showRowStripes",!1),l(c.style,"showColumnStripes",!1);const a=(p,g)=>{if(!p)throw new Error(g)};a(c.ref,"Table must have ref"),a(c.columns,"Table must have column definitions"),a(c.rows,"Table must have row definitions"),c.tl=s.decodeAddress(c.ref);const{row:h,col:u}=c.tl;a(h>0,"Table must be on valid row"),a(u>0,"Table must be on valid col");const{width:f,filterHeight:d,tableHeight:m}=this;c.autoFilterRef=s.encode(h,u,h+d-1,u+f-1),c.tableRef=s.encode(h,u,h+m-1,u+f-1),c.columns.forEach((p,g)=>{a(p.name,`Column ${g} must have a name`),g===0?l(p,"totalsRowLabel","Total"):(l(p,"totalsRowFunction","none"),p.totalsRowFormula=this.getFormula(p))})}store(){const c=(d,m)=>{m&&Object.keys(m).forEach(p=>{d[p]=m[p]})},{worksheet:l,table:a}=this,{row:h,col:u}=a.tl;let f=0;if(a.headerRow){const d=l.getRow(h+f++);a.columns.forEach((m,p)=>{const{style:g,name:v}=m,b=d.getCell(u+p);b.value=v,c(b,g)})}if(a.rows.forEach(d=>{const m=l.getRow(h+f++);d.forEach((p,g)=>{const v=m.getCell(u+g);v.value=p,c(v,a.columns[g].style)})}),a.totalsRow){const d=l.getRow(h+f++);a.columns.forEach((m,p)=>{const g=d.getCell(u+p);if(p===0)g.value=m.totalsRowLabel;else{const v=this.getFormula(m);g.value=v?{formula:m.totalsRowFormula,result:m.totalsRowResult}:null}c(g,m.style)})}}load(c){const{table:l}=this,{row:a,col:h}=l.tl;let u=0;if(l.headerRow){const f=c.getRow(a+u++);l.columns.forEach((d,m)=>{f.getCell(h+m).value=d.name})}if(l.rows.forEach(f=>{const d=c.getRow(a+u++);f.forEach((m,p)=>{d.getCell(h+p).value=m})}),l.totalsRow){const f=c.getRow(a+u++);l.columns.forEach((d,m)=>{const p=f.getCell(h+m);m===0?p.value=d.totalsRowLabel:this.getFormula(d)&&(p.value={formula:d.totalsRowFormula,result:d.totalsRowResult})})}}get model(){return this.table}set model(c){this.table=c}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const c=s.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let l=0;l1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(c,l)}getColumn(c){const l=this.table.columns[c];return new i(this,l,c)}addColumn(c,l,a){this.cacheState(),a===void 0?(this.table.columns.push(c),this.table.rows.forEach((h,u)=>{h.push(l[u])})):(this.table.columns.splice(a,0,c),this.table.rows.forEach((h,u)=>{h.splice(a,0,l[u])}))}removeColumns(c){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(c,l),this.table.rows.forEach(a=>{a.splice(c,l)})}_assign(c,l,a){this.cacheState(),c[l]=a}get ref(){return this.table.ref}set ref(c){this._assign(this.table,"ref",c)}get name(){return this.table.name}set name(c){this.table.name=c}get displayName(){return this.table.displyName||this.table.name}set displayNamename(c){this.table.displayName=c}get headerRow(){return this.table.headerRow}set headerRow(c){this._assign(this.table,"headerRow",c)}get totalsRow(){return this.table.totalsRow}set totalsRow(c){this._assign(this.table,"totalsRow",c)}get theme(){return this.table.style.name}set theme(c){this.table.style.name=c}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(c){this.table.style.showFirstColumn=c}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(c){this.table.style.showLastColumn=c}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(c){this.table.style.showRowStripes=c}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(c){this.table.style.showColumnStripes=c}}},{"../utils/col-cache":19}],13:[function(e,n,o){const s=e("./worksheet"),i=e("./defined-names"),c=e("../xlsx/xlsx"),l=e("../csv/csv");n.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new i}get xlsx(){return this._xlsx||(this._xlsx=new c(this)),this._xlsx}get csv(){return this._csv||(this._csv=new l(this)),this._csv}get nextId(){for(let a=1;a(g&&g.orderNo)>p?g.orderNo:p,0),d=Object.assign({},h,{id:u,name:a,orderNo:f+1,workbook:this}),m=new s(d);return this._worksheets[u]=m,m}removeWorksheetEx(a){delete this._worksheets[a.id]}removeWorksheet(a){const h=this.getWorksheet(a);h&&h.destroy()}getWorksheet(a){return a===void 0?this._worksheets.find(Boolean):typeof a=="number"?this._worksheets[a]:typeof a=="string"?this._worksheets.find(h=>h&&h.name===a):void 0}get worksheets(){return this._worksheets.slice(1).sort((a,h)=>a.orderNo-h.orderNo).filter(Boolean)}eachSheet(a){this.worksheets.forEach(h=>{a(h,h.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(a){const h=this.media.length;return this.media.push(Object.assign({},a,{type:"image"})),h}getImage(a){return this.media[a]}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(a=>a.model),sheets:this.worksheets.map(a=>a.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(a){this.creator=a.creator,this.lastModifiedBy=a.lastModifiedBy,this.lastPrinted=a.lastPrinted,this.created=a.created,this.modified=a.modified,this.company=a.company,this.manager=a.manager,this.title=a.title,this.subject=a.subject,this.keywords=a.keywords,this.category=a.category,this.description=a.description,this.language=a.language,this.revision=a.revision,this.contentStatus=a.contentStatus,this.properties=a.properties,this.calcProperties=a.calcProperties,this._worksheets=[],a.worksheets.forEach(h=>{const{id:u,name:f,state:d}=h,m=a.sheets&&a.sheets.findIndex(p=>p.id===u);(this._worksheets[u]=new s({id:u,name:f,orderNo:m,state:d,workbook:this})).model=h}),this._definedNames.model=a.definedNames,this.views=a.views,this._themes=a.themes,this.media=a.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(e,n,o){const s=e("../utils/under-dash"),i=e("../utils/col-cache"),c=e("./range"),l=e("./row"),a=e("./column"),h=e("./enums"),u=e("./image"),f=e("./table"),d=e("./data-validations"),m=e("../utils/encryptor"),{copyStyle:p}=e("../utils/copy-style");n.exports=class{constructor(g){g=g||{},this._workbook=g.workbook,this.id=g.id,this.orderNo=g.orderNo,this.name=g.name,this.state=g.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},g.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:!(!g.pageSetup||!g.pageSetup.fitToWidth&&!g.pageSetup.fitToHeight||g.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},g.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},g.headerFooter),this.dataValidations=new d,this.views=g.views||[],this.autoFilter=g.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(g){if(g===void 0&&(g="sheet"+this.id),this._name!==g){if(typeof g!="string")throw new Error("The name has to be a string.");if(g==="")throw new Error("The name can't be empty.");if(g==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(g))throw new Error(`Worksheet name ${g} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(g))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+g);if(g&&g.length>31&&(g=g.substring(0,31)),this._workbook._worksheets.find(v=>v&&v.name.toLowerCase()===g.toLowerCase()))throw new Error("Worksheet name already exists: "+g);this._name=g}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const g=new c;return this._rows.forEach(v=>{if(v){const b=v.dimensions;b&&g.expand(v.number,b.min,v.number,b.max)}}),g}get columns(){return this._columns}set columns(g){this._headerRowCount=g.reduce((_,E)=>{const O=(E.header?1:E.headers&&E.headers.length)||0;return Math.max(_,O)},0);let v=1;const b=this._columns=[];g.forEach(_=>{const E=new a(this,v++,!1);b.push(E),E.defn=_})}getColumnKey(g){return this._keys[g]}setColumnKey(g,v){this._keys[g]=v}deleteColumnKey(g){delete this._keys[g]}eachColumnKey(g){s.each(this._keys,g)}getColumn(g){if(typeof g=="string"){const v=this._keys[g];if(v)return v;g=i.l2n(g)}if(this._columns||(this._columns=[]),g>this._columns.length){let v=this._columns.length+1;for(;v<=g;)this._columns.push(new a(this,v++))}return this._columns[g-1]}spliceColumns(g,v){const b=this._rows.length;for(var _=arguments.length,E=new Array(_>2?_-2:0),O=2;O<_;O++)E[O-2]=arguments[O];if(E.length>0)for(let U=0;U{K.push(G[U]||null)});const Y=this.getRow(U+1);Y.splice.apply(Y,K)}else this._rows.forEach(U=>{U&&U.splice(g,v)});const j=E.length-v,W=g+v,z=this._columns.length;if(j<0)for(let U=g+E.length;U<=z;U++)this.getColumn(U).defn=this.getColumn(U-j).defn;else if(j>0)for(let U=z;U>=W;U--)this.getColumn(U+j).defn=this.getColumn(U).defn;for(let U=g;U{g=Math.max(g,v.cellCount)}),g}get actualColumnCount(){const g=[];let v=0;return this.eachRow(b=>{b.eachCell(_=>{let{col:E}=_;g[E]||(g[E]=!0,v++)})}),v}_commitRow(){}get _lastRowNumber(){const g=this._rows;let v=g.length;for(;v>0&&g[v-1]===void 0;)v--;return v}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(g){return this._rows[g-1]}findRows(g,v){return this._rows.slice(g-1,g-1+v)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let g=0;return this.eachRow(()=>{g++}),g}getRow(g){let v=this._rows[g-1];return v||(v=this._rows[g-1]=new l(this,g)),v}getRows(g,v){if(v<1)return;const b=[];for(let _=g;_1&&arguments[1]!==void 0?arguments[1]:"n";const b=this._nextRow,_=this.getRow(b);return _.values=g,this._setStyleOption(b,v[0]==="i"?v:"n"),_}addRows(g){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const b=[];return g.forEach(_=>{b.push(this.addRow(_,v))}),b}insertRow(g,v){let b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(g,0,v),this._setStyleOption(g,b),this.getRow(g)}insertRows(g,v){let b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(g,0,...v),b!=="n")for(let _=0;_1&&arguments[1]!==void 0?arguments[1]:"n";v[0]==="o"&&this.findRow(g+1)!==void 0?this._copyStyle(g+1,g,v[1]==="+"):v[0]==="i"&&this.findRow(g-1)!==void 0&&this._copyStyle(g-1,g,v[1]==="+")}_copyStyle(g,v){let b=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const _=this.getRow(g),E=this.getRow(v);E.style=p(_.style),_.eachCell({includeEmpty:b},(O,j)=>{E.getCell(j).style=p(O.style)}),E.height=_.height}duplicateRow(g,v){let b=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const _=this._rows[g-1],E=new Array(v).fill(_.values);this.spliceRows(g+1,b?0:v,...E);for(let O=0;O{j.getCell(z).style=W.style})}}spliceRows(g,v){const b=g+v;for(var _=arguments.length,E=new Array(_>2?_-2:0),O=2;O<_;O++)E[O-2]=arguments[O];const j=E.length,W=j-v,z=this._rows.length;let U,K;if(W<0)for(g===z&&(this._rows[z-1]=void 0),U=b;U<=z;U++)if(K=this._rows[U-1],K){const Y=this.getRow(U+W);Y.values=K.values,Y.style=K.style,Y.height=K.height,K.eachCell({includeEmpty:!0},(G,R)=>{Y.getCell(R).style=G.style}),this._rows[U-1]=void 0}else this._rows[U+W-1]=void 0;else if(W>0)for(U=z;U>=b;U--)if(K=this._rows[U-1],K){const Y=this.getRow(U+W);Y.values=K.values,Y.style=K.style,Y.height=K.height,K.eachCell({includeEmpty:!0},(G,R)=>{if(Y.getCell(R).style=G.style,G._value.constructor.name==="MergeValue"){const D=this.getRow(G._row._number+j).getCell(R),k=G._value._master,x=this.getRow(k._row._number+j).getCell(k._column._number);D.merge(x)}})}else this._rows[U+W-1]=void 0;for(U=0;U{b&&b.hasValues&&v(b,b.number)})}getSheetValues(){const g=[];return this._rows.forEach(v=>{v&&(g[v.number]=v.values)}),g}findCell(g,v){const b=i.getAddress(g,v),_=this._rows[b.row-1];return _?_.findCell(b.col):void 0}getCell(g,v){const b=i.getAddress(g,v);return this.getRow(b.row).getCellEx(b)}mergeCells(){for(var g=arguments.length,v=new Array(g),b=0;b{if(_.intersects(g))throw new Error("Cannot merge already merged cells")});const b=this.getCell(g.top,g.left);for(let _=g.top;_<=g.bottom;_++)for(let E=g.left;E<=g.right;E++)(_>g.top||E>g.left)&&this.getCell(_,E).merge(b,v);this._merges[b.address]=g}_unMergeMaster(g){const v=this._merges[g.address];if(v){for(let b=v.top;b<=v.bottom;b++)for(let _=v.left;_<=v.right;_++)this.getCell(b,_).unmerge();delete this._merges[g.address]}}get hasMerges(){return s.some(this._merges,Boolean)}unMergeCells(){for(var g=arguments.length,v=new Array(g),b=0;b3&&arguments[3]!==void 0?arguments[3]:"shared";const E=i.decode(g),{top:O,left:j,bottom:W,right:z}=E,U=z-j+1,K=i.encodeAddress(O,j),Y=_==="shared";let G;G=typeof b=="function"?b:Array.isArray(b)?Array.isArray(b[0])?(D,k)=>b[D-O][k-j]:(D,k)=>b[(D-O)*U+(k-j)]:()=>{};let R=!0;for(let D=O;D<=W;D++)for(let k=j;k<=z;k++)R?(this.getCell(D,k).value={shareType:_,formula:v,ref:g,result:G(D,k)},R=!1):this.getCell(D,k).value=Y?{sharedFormula:K,result:G(D,k)}:G(D,k)}addImage(g,v){const b={type:"image",imageId:g,range:v};this._media.push(new u(this,b))}getImages(){return this._media.filter(g=>g.type==="image")}addBackgroundImage(g){const v={type:"background",imageId:g};this._media.push(new u(this,v))}getBackgroundImageId(){const g=this._media.find(v=>v.type==="background");return g&&g.imageId}protect(g,v){return new Promise(b=>{this.sheetProtection={sheet:!0},v&&"spinCount"in v&&(v.spinCount=Number.isFinite(v.spinCount)?Math.round(Math.max(0,v.spinCount)):1e5),g&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=m.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=v&&"spinCount"in v?v.spinCount:1e5,this.sheetProtection.hashValue=m.convertPasswordToHash(g,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),v&&(this.sheetProtection=Object.assign(this.sheetProtection,v),!g&&"spinCount"in v&&delete this.sheetProtection.spinCount),b()})}unprotect(){this.sheetProtection=null}addTable(g){const v=new f(this,g);return this.tables[g.name]=v,v}getTable(g){return this.tables[g]}removeTable(g){delete this.tables[g]}getTables(){return Object.values(this.tables)}addConditionalFormatting(g){this.conditionalFormattings.push(g)}removeConditionalFormatting(g){typeof g=="number"?this.conditionalFormattings.splice(g,1):this.conditionalFormattings=g instanceof Function?this.conditionalFormattings.filter(g):[]}get tabColor(){return this.properties.tabColor}set tabColor(g){this.properties.tabColor=g}get model(){const g={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(_=>_.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(_=>_.model),conditionalFormattings:this.conditionalFormattings};g.cols=a.toModel(this.columns);const v=g.rows=[],b=g.dimensions=new c;return this._rows.forEach(_=>{const E=_&&_.model;E&&(b.expand(E.number,E.min,E.number,E.max),v.push(E))}),g.merges=[],s.each(this._merges,_=>{g.merges.push(_.range)}),g}_parseRows(g){this._rows=[],g.rows.forEach(v=>{const b=new l(this,v.number);this._rows[b.number-1]=b,b.model=v})}_parseMergeCells(g){s.each(g.mergeCells,v=>{this.mergeCellsWithoutStyle(v)})}set model(g){this.name=g.name,this._columns=a.fromModel(this,g.cols),this._parseRows(g),this._parseMergeCells(g),this.dataValidations=new d(g.dataValidations),this.properties=g.properties,this.pageSetup=g.pageSetup,this.headerFooter=g.headerFooter,this.views=g.views,this.autoFilter=g.autoFilter,this._media=g.media.map(v=>new u(this,v)),this.sheetProtection=g.sheetProtection,this.tables=g.tables.reduce((v,b)=>{const _=new f;return _.model=b,v[b.name]=_,v},{}),this.conditionalFormattings=g.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,n,o){e("core-js/modules/es.promise"),e("core-js/modules/es.promise.finally"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.values"),e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.async-iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.find-index"),e("core-js/modules/es.array.find"),e("core-js/modules/es.string.from-code-point"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.number.is-nan"),e("regenerator-runtime/runtime");const s={Workbook:e("./doc/workbook")},i=e("./doc/enums");Object.keys(i).forEach(c=>{s[c]=i[c]}),n.exports=s},{"./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,n,o){const s=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");o.bufferToString=function(i){return typeof i=="string"?i:s?s.decode(i):i.toString()}},{}],17:[function(e,n,o){const s=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:i}=e("buffer");o.stringToBuffer=function(c){return typeof c!="string"?c:s?i.from(s.encode(c).buffer):i.from(c)}},{buffer:220}],18:[function(e,n,o){const s=e("./under-dash"),i=e("./col-cache");n.exports=class{constructor(c){this.template=c,this.sheets={}}addCell(c){this.addCellEx(i.decodeEx(c))}getCell(c){return this.findCellEx(i.decodeEx(c),!0)}findCell(c){return this.findCellEx(i.decodeEx(c),!1)}findCellAt(c,l,a){const h=this.sheets[c],u=h&&h[l];return u&&u[a]}addCellEx(c){if(c.top)for(let l=c.top;l<=c.bottom;l++)for(let a=c.left;a<=c.right;a++)this.getCellAt(c.sheetName,l,a);else this.findCellEx(c,!0)}getCellEx(c){return this.findCellEx(c,!0)}findCellEx(c,l){const a=this.findSheet(c,l),h=this.findSheetRow(a,c,l);return this.findRowCell(h,c,l)}getCellAt(c,l,a){const h=this.sheets[c]||(this.sheets[c]=[]),u=h[l]||(h[l]=[]);return u[a]||(u[a]={sheetName:c,address:i.n2l(a)+l,row:l,col:a})}removeCellEx(c){const l=this.findSheet(c);if(!l)return;const a=this.findSheetRow(l,c);a&&delete a[c.col]}forEachInSheet(c,l){const a=this.sheets[c];a&&a.forEach((h,u)=>{h&&h.forEach((f,d)=>{f&&l(f,u,d)})})}forEach(c){s.each(this.sheets,(l,a)=>{this.forEachInSheet(a,c)})}map(c){const l=[];return this.forEach(a=>{l.push(c(a))}),l}findSheet(c,l){const a=c.sheetName;return this.sheets[a]?this.sheets[a]:l?this.sheets[a]=[]:void 0}findSheetRow(c,l,a){const{row:h}=l;return c&&c[h]?c[h]:a?c[h]=[]:void 0}findRowCell(c,l,a){const{col:h}=l;return c&&c[h]?c[h]:a?c[h]=this.template?Object.assign(l,JSON.parse(JSON.stringify(this.template))):l:void 0}spliceRows(c,l,a,h){const u=this.sheets[c];if(u){const f=[];for(let d=0;d{d.splice(l,a,...f)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(e,n,o){const s=/^[A-Z]+\d+$/,i={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:c=>c<=26?1:c<=676?2:3,_fill(c){let l,a,h,u,f,d=1;if(c>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&c>=1){for(;d<=26;)l=this._dictionary[d-1],this._n2l[d]=l,this._l2n[l]=d,d++;this._l2nFill=1}if(this._l2nFill<2&&c>=2){for(d=27;d<=702;)a=d-27,h=a%26,u=Math.floor(a/26),l=this._dictionary[u]+this._dictionary[h],this._n2l[d]=l,this._l2n[l]=d,d++;this._l2nFill=2}if(this._l2nFill<3&&c>=3){for(d=703;d<=16384;)a=d-703,h=a%26,u=Math.floor(a/26)%26,f=Math.floor(a/676),l=this._dictionary[f]+this._dictionary[u]+this._dictionary[h],this._n2l[d]=l,this._l2n[l]=d,d++;this._l2nFill=3}},l2n(c){if(this._l2n[c]||this._fill(c.length),!this._l2n[c])throw new Error("Out of bounds. Invalid column letter: "+c);return this._l2n[c]},n2l(c){if(c<1||c>16384)throw new Error(c+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[c]||this._fill(this._level(c)),this._n2l[c]},_hash:{},validateAddress(c){if(!s.test(c))throw new Error("Invalid Address: "+c);return!0},decodeAddress(c){const l=c.length<5&&this._hash[c];if(l)return l;let a=!1,h="",u=0,f=!1,d="",m=0;for(let g,v=0;v=65&&g<=90)a=!0,h+=c[v],u=26*u+g-64;else if(g>=48&&g<=57)f=!0,d+=c[v],m=10*m+g-48;else if(f&&a&&g!==36)break;if(a){if(u>16384)throw new Error("Out of bounds. Invalid column letter: "+h)}else u=void 0;f||(m=void 0);const p={address:c=h+d,col:u,row:m,$col$row:`$${h}$${d}`};return u<=100&&m<=100&&(this._hash[c]=p,this._hash[p.$col$row]=p),p},getAddress(c,l){if(l){const a=this.n2l(l)+c;return this.decodeAddress(a)}return this.decodeAddress(c)},decode(c){const l=c.split(":");if(l.length===2){const a=this.decodeAddress(l[0]),h=this.decodeAddress(l[1]),u={top:Math.min(a.row,h.row),left:Math.min(a.col,h.col),bottom:Math.max(a.row,h.row),right:Math.max(a.col,h.col)};return u.tl=this.n2l(u.left)+u.top,u.br=this.n2l(u.right)+u.bottom,u.dimensions=`${u.tl}:${u.br}`,u}return this.decodeAddress(c)},decodeEx(c){const l=c.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),a=l[1]||l[2],h=l[3],u=h.split(":");if(u.length>1){let d=this.decodeAddress(u[0]),m=this.decodeAddress(u[1]);const p=Math.min(d.row,m.row),g=Math.min(d.col,m.col),v=Math.max(d.row,m.row),b=Math.max(d.col,m.col);return d=this.n2l(g)+p,m=this.n2l(b)+v,{top:p,left:g,bottom:v,right:b,sheetName:a,tl:{address:d,col:g,row:p,$col$row:`$${this.n2l(g)}$${p}`,sheetName:a},br:{address:m,col:b,row:v,$col$row:`$${this.n2l(b)}$${v}`,sheetName:a},dimensions:`${d}:${m}`}}if(h.startsWith("#"))return a?{sheetName:a,error:h}:{error:h};const f=this.decodeAddress(h);return a?{sheetName:a,...f}:f},encodeAddress:(c,l)=>i.n2l(l)+c,encode(){switch(arguments.length){case 2:return i.encodeAddress(arguments[0],arguments[1]);case 4:return`${i.encodeAddress(arguments[0],arguments[1])}:${i.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(c,l){const[a,h,,u,f]=c,[d,m]=l;return d>=a&&d<=u&&m>=h&&m<=f}};n.exports=i},{}],20:[function(e,n,o){const s=(c,l)=>({...c,...l.reduce((a,h)=>(c[h]&&(a[h]={...c[h]}),a),{})}),i=function(c,l,a){let h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];c[a]&&(l[a]=s(c[a],h))};o.copyStyle=c=>{if(!c)return c;if(l=c,Object.keys(l).length===0)return{};var l;const a={...c};return i(c,a,"font",["color"]),i(c,a,"alignment"),i(c,a,"protection"),c.border&&(i(c,a,"border"),i(c.border,a.border,"top",["color"]),i(c.border,a.border,"left",["color"]),i(c.border,a.border,"bottom",["color"]),i(c.border,a.border,"right",["color"]),i(c.border,a.border,"diagonal",["color"])),c.fill&&(i(c,a,"fill",["fgColor","bgColor","center"]),c.fill.stops&&(a.fill.stops=c.fill.stops.map(h=>s(h,["color"])))),a}},{}],21:[function(e,n,o){(function(s){(function(){const i=e("crypto"),c={hash(l){const a=i.createHash(l);for(var h=arguments.length,u=new Array(h>1?h-1:0),f=1;fi.randomBytes(l)};n.exports=c}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(e,n,o){const{SaxesParser:s}=e("saxes"),{PassThrough:i}=e("readable-stream"),{bufferToString:c}=e("./browser-buffer-decode");n.exports=async function*(l){l.pipe&&!l[Symbol.asyncIterator]&&(l=l.pipe(new i));const a=new s;let h;a.on("error",f=>{h=f});let u=[];a.on("opentag",f=>u.push({eventType:"opentag",value:f})),a.on("text",f=>u.push({eventType:"text",value:f})),a.on("closetag",f=>u.push({eventType:"closetag",value:f}));for await(const f of l){if(a.write(c(f)),h)throw h;yield u,u=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(e,n,o){const s=e("./col-cache"),i=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,c=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;n.exports={slideFormula:function(l,a,h){const u=s.decode(a),f=s.decode(h);return l.replace(i,(d,m,p,g,v)=>{if(v)return d;const b=c.exec(g);if(b){const _=b[1],E=b[2].toUpperCase(),O=b[3],j=b[4];if(E.length>3||E.length===3&&E>"XFD")return d;let W=s.l2n(E),z=parseInt(j,10);return _||(W+=f.col-u.col),O||(z+=f.row-u.row),(m||"")+(_||"")+s.n2l(W)+(O||"")+z}return d})}}},{"./col-cache":19}],24:[function(e,n,o){(function(s,i){(function(){const c=e("readable-stream"),l=e("./utils"),a=e("./string-buf");class h{constructor(g,v){this._data=g,this._encoding=v}get length(){return this.toBuffer().length}copy(g,v,b,_){return this.toBuffer().copy(g,v,b,_)}toBuffer(){return this._buffer||(this._buffer=i.from(this._data,this._encoding)),this._buffer}}class u{constructor(g){this._data=g}get length(){return this._data.length}copy(g,v,b,_){return this._data._buf.copy(g,v,b,_)}toBuffer(){return this._data.toBuffer()}}class f{constructor(g){this._data=g}get length(){return this._data.length}copy(g,v,b,_){this._data.copy(g,v,b,_)}toBuffer(){return this._data}}class d{constructor(g){this.size=g,this.buffer=i.alloc(g),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const g=i.alloc(this.iWrite-this.iRead);return this.buffer.copy(g,0,this.iRead,this.iWrite),g}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(g){let v;return g===0?null:g===void 0||g>=this.length?(v=this.toBuffer(),this.iRead=this.iWrite,v):(v=i.alloc(g),this.buffer.copy(v,0,this.iRead,g),this.iRead+=g,v)}write(g,v,b){const _=Math.min(b,this.size-this.iWrite);return g.copy(this.buffer,this.iWrite,v,v+_),this.iWrite+=_,_}}const m=function(p){p=p||{},this.bufSize=p.bufSize||1048576,this.buffers=[],this.batch=p.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};l.inherits(m,c.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return i.concat(this.buffers.map(p=>p.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const g=this.buffers[this.buffers.length-1];if(!g.full)return g}const p=new d(this.bufSize);return this.buffers.push(p),p},async _pipe(p){await Promise.all(this.pipes.map(function(g){return new Promise(v=>{g.write(p.toBuffer(),()=>{v()})})}))},_writeToBuffers(p){let g=0;const v=p.length;for(;g1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(b),s.nextTick(v)):(await this._pipe(b),v());else this.paused||this.emit("data",b.toBuffer()),this._writeToBuffers(b),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(p,g,v){const b=_=>{_?v(_):(this._flush(),this.pipes.forEach(E=>{E.end()}),this.emit("finish"))};p?this.write(p,g,b):b()},read(p){let g;if(p){for(g=[];p&&this.buffers.length&&!this.buffers[0].eod;){const v=this.buffers[0],b=v.read(p);p-=b.length,g.push(b),v.eod&&v.full&&this.buffers.shift()}return i.concat(g)}return g=this.buffers.map(v=>v.toBuffer()).filter(Boolean),this.buffers=[],i.concat(g)},setEncoding(p){this.encoding=p},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(p){this.pipes.push(p),!this.paused&&this.buffers.length&&this.end()},unpipe(p){this.pipes=this.pipes.filter(g=>g!==p)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),n.exports=m}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(e,n,o){(function(s){(function(){n.exports=class{constructor(i){this._buf=s.alloc(i&&i.size||16384),this._encoding=i&&i.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=s.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(i){i=i||0,this._buffer=void 0,this._inPos=i}_grow(i){let c=2*this._buf.length;for(;c=this._buf.length-4;)this._grow(this._inPos+i.length),c=this._inPos+this._buf.write(i,this._inPos,this._encoding);this._inPos=c}addStringBuf(i){i.length&&(this._buffer=void 0,this.length+i.length>this.capacity&&this._grow(this.length+i.length),i._buf.copy(this._buf,this._inPos,0,i.length),this._inPos+=i.length)}}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],26:[function(e,n,o){const{toString:s}=Object.prototype,i=/["&<>]/,c={each:function(l,a){l&&(Array.isArray(l)?l.forEach(a):Object.keys(l).forEach(h=>{a(l[h],h)}))},some:function(l,a){return!!l&&(Array.isArray(l)?l.some(a):Object.keys(l).some(h=>a(l[h],h)))},every:function(l,a){return!l||(Array.isArray(l)?l.every(a):Object.keys(l).every(h=>a(l[h],h)))},map:function(l,a){return l?Array.isArray(l)?l.map(a):Object.keys(l).map(h=>a(l[h],h)):[]},keyBy:(l,a)=>l.reduce((h,u)=>(h[u[a]]=u,h),{}),isEqual:function(l,a){const h=typeof l,u=typeof a,f=Array.isArray(l),d=Array.isArray(a);let m;if(h!==u)return!1;switch(typeof l){case"object":if(f||d)return!(!f||!d)&&l.length===a.length&&l.every((p,g)=>{const v=a[g];return c.isEqual(p,v)});if(l===null||a===null)return l===a;if(m=Object.keys(l),Object.keys(a).length!==m.length)return!1;for(const p of m)if(!a.hasOwnProperty(p))return!1;return c.every(l,(p,g)=>{const v=a[g];return c.isEqual(p,v)});default:return l===a}},escapeHtml(l){const a=i.exec(l);if(!a)return l;let h="",u="",f=0,d=a.index;for(;d":u=">";break;default:continue}f!==d&&(h+=l.substring(f,d)),f=d+1,h+=u}return f!==d?h+l.substring(f,d):h},strcmp:(l,a)=>la?1:0,isUndefined:l=>s.call(l)==="[object Undefined]",isObject:l=>s.call(l)==="[object Object]",deepMerge(){const l=arguments[0]||{},{length:a}=arguments;let h,u,f;function d(m,p){h=l[p],f=Array.isArray(m),c.isObject(m)||f?(f?(f=!1,u=h&&Array.isArray(h)?h:[]):u=h&&c.isObject(h)?h:{},l[p]=c.deepMerge(u,m)):c.isUndefined(m)||(l[p]=m)}for(let m=0;m&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,a={nop(){},promiseImmediate:h=>new Promise(u=>{s.setImmediate?i(()=>{u(h)}):setTimeout(()=>{u(h)},1)}),inherits:function(h,u,f,d){h.super_=u,d||(d=f,f=null),f&&Object.keys(f).forEach(p=>{Object.defineProperty(h,p,Object.getOwnPropertyDescriptor(f,p))});const m={constructor:{value:h,enumerable:!1,writable:!1,configurable:!0}};d&&Object.keys(d).forEach(p=>{m[p]=Object.getOwnPropertyDescriptor(d,p)}),h.prototype=Object.create(u.prototype,m)},dateToExcel:(h,u)=>25569+h.getTime()/864e5-(u?1462:0),excelToDate(h,u){const f=Math.round(24*(h-25569+(u?1462:0))*3600*1e3);return new Date(f)},parsePath(h){const u=h.lastIndexOf("/");return{path:h.substring(0,u),name:h.substring(u+1)}},getRelsPath(h){const u=a.parsePath(h);return`${u.path}/_rels/${u.name}.rels`},xmlEncode(h){const u=l.exec(h);if(!u)return h;let f="",d="",m=0,p=u.index;for(;p=11&&g!==13)){d="";break}continue}m!==p&&(f+=h.substring(m,p)),m=p+1,d&&(f+=d)}return m!==p?f+h.substring(m,p):f},xmlDecode:h=>h.replace(/&([a-z]*);/g,u=>{switch(u){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return u}}),validInt(h){const u=parseInt(h,10);return Number.isNaN(u)?0:u},isDateFmt(h){return h?(h=(h=h.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:h=>new Promise(u=>{c.access(h,c.constants.F_OK,f=>{u(!f)})})},toIsoDateString:h=>h.toIsoString().subsstr(0,10),parseBoolean:h=>h===!0||h==="true"||h===1||h==="1"};n.exports=a}).call(this)}).call(this,typeof ur<"u"?ur:typeof self<"u"?self:typeof window<"u"?window:{},e("timers").setImmediate)},{fs:216,timers:523}],28:[function(e,n,o){const s=e("./under-dash"),i=e("./utils");function c(h,u,f){h.push(` ${u}="${i.xmlEncode(f.toString())}"`)}function l(h,u){if(u){const f=[];s.each(u,(d,m)=>{d!==void 0&&c(f,m,d)}),h.push(f.join(""))}}class a{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(u){const f=this._xml;f.push(" +`)}openNode(u,f){const d=this.tos,m=this._xml;d&&this.open&&m.push(">"),this._stack.push(u),m.push("<"),m.push(u),l(m,f),this.leaf=!0,this.open=!0}addAttribute(u,f){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");f!==void 0&&c(this._xml,u,f)}addAttributes(u){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");l(this._xml,u)}writeText(u){const f=this._xml;this.open&&(f.push(">"),this.open=!1),this.leaf=!1,f.push(i.xmlEncode(u.toString()))}writeXml(u){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(u)}closeNode(){const u=this._stack.pop(),f=this._xml;this.leaf?f.push("/>"):(f.push("")),this.open=!1,this.leaf=!1}leafNode(u,f,d){this.openNode(u,f),d!==void 0&&this.writeText(d),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){const u=this._rollbacks.pop();this._xml.length>u.xml&&this._xml.splice(u.xml,this._xml.length-u.xml),this._stack.length>u.stack&&this._stack.splice(u.stack,this._stack.length-u.stack),this.leaf=u.leaf,this.open=u.open}get xml(){return this.closeAll(),this._xml.join("")}}a.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},n.exports=a},{"./under-dash":26,"./utils":27}],29:[function(e,n,o){(function(s){(function(){const i=e("events"),c=e("jszip"),l=e("./stream-buf"),{stringToBuffer:a}=e("./browser-buffer-encode");class h extends i.EventEmitter{constructor(f){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},f),this.zip=new c,this.stream=new l}append(f,d){d.hasOwnProperty("base64")&&d.base64?this.zip.file(d.name,f,{base64:!0}):(s.browser&&typeof f=="string"&&(f=a(f)),this.zip.file(d.name,f))}async finalize(){const f=await this.zip.generateAsync(this.options);this.stream.end(f),this.emit("finish")}read(f){return this.stream.read(f)}setEncoding(f){return this.stream.setEncoding(f)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(f,d){return this.stream.pipe(f,d)}unpipe(f){return this.stream.unpipe(f)}unshift(f){return this.stream.unshift(f)}wrap(f){return this.stream.wrap(f)}}n.exports={ZipWriter:h}}).call(this)}).call(this,e("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(e,n,o){n.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,n,o){n.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,n,o){const s=e("../../utils/parse-sax"),i=e("../../utils/xml-stream");class c{prepare(){}render(){}parseOpen(a){}parseText(a){}parseClose(a){}reconcile(a,h){}reset(){this.model=null,this.map&&Object.values(this.map).forEach(a=>{a instanceof c?a.reset():a.xform&&a.xform.reset()})}mergeModel(a){this.model=Object.assign(this.model||{},a)}async parse(a){for await(const h of a)for(const{eventType:u,value:f}of h)if(u==="opentag")this.parseOpen(f);else if(u==="text")this.parseText(f);else if(u==="closetag"&&!this.parseClose(f.name))return this.model;return this.model}async parseStream(a){return this.parse(s(a))}get xml(){return this.toXml(this.model)}toXml(a){const h=new i;return this.render(h,a),h.xml}static toAttribute(a,h){let u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(a===void 0){if(u)return h}else if(u||a!==h)return a.toString()}static toStringAttribute(a,h){let u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return c.toAttribute(a,h,u)}static toStringValue(a,h){return a===void 0?h:a}static toBoolAttribute(a,h){let u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(a===void 0){if(u)return h}else if(u||a!==h)return a?"1":"0"}static toBoolValue(a,h){return a===void 0?h:a==="1"}static toIntAttribute(a,h){let u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return c.toAttribute(a,h,u)}static toIntValue(a,h){return a===void 0?h:parseInt(a,10)}static toFloatAttribute(a,h){let u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return c.toAttribute(a,h,u)}static toFloatValue(a,h){return a===void 0?h:parseFloat(a)}}n.exports=c},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(e,n,o){const s=e("../base-xform"),i=e("../../../utils/col-cache");function c(a){try{return i.decodeEx(a),!0}catch{return!1}}function l(a){const h=[];let u=!1,f="";return a.split(",").forEach(d=>{if(!d)return;const m=(d.match(/'/g)||[]).length;if(!m)return void(u?f+=d+",":c(d)&&h.push(d));const p=m%2==0;!u&&p&&c(d)?h.push(d):u&&!p?(u=!1,c(f+d)&&h.push(f+d),f=""):(u=!0,f+=d+",")}),h}n.exports=class extends s{render(a,h){a.openNode("definedName",{name:h.name,localSheetId:h.localSheetId}),a.writeText(h.ranges.join(",")),a.closeNode()}parseOpen(a){switch(a.name){case"definedName":return this._parsedName=a.attributes.name,this._parsedLocalSheetId=a.attributes.localSheetId,this._parsedText=[],!0;default:return!1}}parseText(a){this._parsedText.push(a)}parseClose(){return this.model={name:this._parsedName,ranges:l(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,n,o){const s=e("../../../utils/utils"),i=e("../base-xform");n.exports=class extends i{render(c,l){c.leafNode("sheet",{sheetId:l.id,name:l.name,state:l.state,"r:id":l.rId})}parseOpen(c){return c.name==="sheet"&&(this.model={name:s.xmlDecode(c.attributes.name),id:parseInt(c.attributes.sheetId,10),state:c.attributes.state,rId:c.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(e,n,o){const s=e("../base-xform");n.exports=class extends s{render(i,c){i.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:c.fullCalcOnLoad?1:void 0})}parseOpen(i){return i.name==="calcPr"&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(e,n,o){const s=e("../base-xform");n.exports=class extends s{render(i,c){i.leafNode("workbookPr",{date1904:c.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(i){return i.name==="workbookPr"&&(this.model={date1904:i.attributes.date1904==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(e,n,o){const s=e("../base-xform");n.exports=class extends s{render(i,c){const l={xWindow:c.x||0,yWindow:c.y||0,windowWidth:c.width||12e3,windowHeight:c.height||24e3,firstSheet:c.firstSheet,activeTab:c.activeTab};c.visibility&&c.visibility!=="visible"&&(l.visibility=c.visibility),i.leafNode("workbookView",l)}parseOpen(i){if(i.name==="workbookView"){const c=this.model={},l=function(h,u,f){const d=u!==void 0?c[h]=u:f;d!==void 0&&(c[h]=d)},a=function(h,u,f){const d=u!==void 0?c[h]=parseInt(u,10):f;d!==void 0&&(c[h]=d)};return a("x",i.attributes.xWindow,0),a("y",i.attributes.yWindow,0),a("width",i.attributes.windowWidth,25e3),a("height",i.attributes.windowHeight,1e4),l("visibility",i.attributes.visibility,"visible"),a("activeTab",i.attributes.activeTab,void 0),a("firstSheet",i.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(e,n,o){const s=e("../../../utils/under-dash"),i=e("../../../utils/col-cache"),c=e("../../../utils/xml-stream"),l=e("../base-xform"),a=e("../static-xform"),h=e("../list-xform"),u=e("./defined-name-xform"),f=e("./sheet-xform"),d=e("./workbook-view-xform"),m=e("./workbook-properties-xform"),p=e("./workbook-calc-properties-xform");class g extends l{constructor(){super(),this.map={fileVersion:g.STATIC_XFORMS.fileVersion,workbookPr:new m,bookViews:new h({tag:"bookViews",count:!1,childXform:new d}),sheets:new h({tag:"sheets",count:!1,childXform:new f}),definedNames:new h({tag:"definedNames",count:!1,childXform:new u}),calcPr:new p}}prepare(b){b.sheets=b.worksheets;const _=[];let E=0;b.sheets.forEach(O=>{if(O.pageSetup&&O.pageSetup.printArea&&O.pageSetup.printArea.split("&&").forEach(j=>{const W=j.split(":"),z={name:"_xlnm.Print_Area",ranges:[`'${O.name}'!$${W[0]}:$${W[1]}`],localSheetId:E};_.push(z)}),O.pageSetup&&(O.pageSetup.printTitlesRow||O.pageSetup.printTitlesColumn)){const j=[];if(O.pageSetup.printTitlesColumn){const z=O.pageSetup.printTitlesColumn.split(":");j.push(`'${O.name}'!$${z[0]}:$${z[1]}`)}if(O.pageSetup.printTitlesRow){const z=O.pageSetup.printTitlesRow.split(":");j.push(`'${O.name}'!$${z[0]}:$${z[1]}`)}const W={name:"_xlnm.Print_Titles",ranges:j,localSheetId:E};_.push(W)}E++}),_.length&&(b.definedNames=b.definedNames.concat(_)),(b.media||[]).forEach((O,j)=>{O.name=O.type+(j+1)})}render(b,_){b.openXml(c.StdDocAttributes),b.openNode("workbook",g.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(b),this.map.workbookPr.render(b,_.properties),this.map.bookViews.render(b,_.views),this.map.sheets.render(b,_.sheets),this.map.definedNames.render(b,_.definedNames),this.map.calcPr.render(b,_.calcProperties),b.closeNode()}parseOpen(b){if(this.parser)return this.parser.parseOpen(b),!0;switch(b.name){case"workbook":return!0;default:return this.parser=this.map[b.name],this.parser&&this.parser.parseOpen(b),!0}}parseText(b){this.parser&&this.parser.parseText(b)}parseClose(b){if(this.parser)return this.parser.parseClose(b)||(this.parser=void 0),!0;switch(b){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(b){const _=(b.workbookRels||[]).reduce((z,U)=>(z[U.Id]=U,z),{}),E=[];let O,j=0;(b.sheets||[]).forEach(z=>{const U=_[z.rId];U&&(O=b.worksheetHash["xl/"+U.Target.replace(/^(\s|\/xl\/)+/,"")],O&&(O.name=z.name,O.id=z.id,O.state=z.state,E[j++]=O))});const W=[];s.each(b.definedNames,z=>{if(z.name==="_xlnm.Print_Area"){if(O=E[z.localSheetId],O){O.pageSetup||(O.pageSetup={});const U=i.decodeEx(z.ranges[0]);O.pageSetup.printArea=O.pageSetup.printArea?`${O.pageSetup.printArea}&&${U.dimensions}`:U.dimensions}}else if(z.name==="_xlnm.Print_Titles"){if(O=E[z.localSheetId],O){O.pageSetup||(O.pageSetup={});const U=z.ranges.join(","),K=/\$/g,Y=/\$\d+:\$\d+/,G=U.match(Y);if(G&&G.length){const k=G[0];O.pageSetup.printTitlesRow=k.replace(K,"")}const R=/\$[A-Z]+:\$[A-Z]+/,D=U.match(R);if(D&&D.length){const k=D[0];O.pageSetup.printTitlesColumn=k.replace(K,"")}}}else W.push(z)}),b.definedNames=W,b.media.forEach((z,U)=>{z.index=U})}}g.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},g.STATIC_XFORMS={fileVersion:new a({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},n.exports=g},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(e,n,o){const s=e("../strings/rich-text-xform"),i=e("../../../utils/utils"),c=e("../base-xform"),l=n.exports=function(a){this.model=a};i.inherits(l,c,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new s),this._richTextXform},render(a,h){h=h||this.model,a.openNode("comment",{ref:h.ref,authorId:0}),a.openNode("text"),h&&h.note&&h.note.texts&&h.note.texts.forEach(u=>{this.richTextXform.render(a,u)}),a.closeNode(),a.closeNode()},parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case"comment":return this.model={type:"note",note:{texts:[]},...a.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(a),!0;default:return!1}},parseText(a){this.parser&&this.parser.parseText(a)},parseClose(a){switch(a){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(a),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(e,n,o){const s=e("../../../utils/xml-stream"),i=e("../../../utils/utils"),c=e("../base-xform"),l=e("./comment-xform"),a=n.exports=function(){this.map={comment:new l}};i.inherits(a,c,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(h,u){u=u||this.model,h.openXml(s.StdDocAttributes),h.openNode("comments",a.COMMENTS_ATTRIBUTES),h.openNode("authors"),h.leafNode("author",null,"Author"),h.closeNode(),h.openNode("commentList"),u.comments.forEach(f=>{this.map.comment.render(h,f)}),h.closeNode(),h.closeNode()},parseOpen(h){if(this.parser)return this.parser.parseOpen(h),!0;switch(h.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(h),!0;default:return!1}},parseText(h){this.parser&&this.parser.parseText(h)},parseClose(h){switch(h){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(h),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(e,n,o){const s=e("../../base-xform");n.exports=class extends s{constructor(i){super(),this._model=i}get tag(){return this._model&&this._model.tag}render(i,c,l){(c===l[2]||this.tag==="x:SizeWithCells"&&c===l[1])&&i.leafNode(this.tag)}parseOpen(i){switch(i.name){case this.tag:return this.model={},this.model[this.tag]=!0,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../base-xform":32}],42:[function(e,n,o){const s=e("../../base-xform");n.exports=class extends s{constructor(i){super(),this._model=i}get tag(){return this._model&&this._model.tag}render(i,c){i.leafNode(this.tag,null,c)}parseOpen(i){switch(i.name){case this.tag:return this.text="",!0;default:return!1}}parseText(i){this.text=i}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(e,n,o){const s=e("../base-xform");n.exports=class extends s{get tag(){return"x:Anchor"}getAnchorRect(i){const c=Math.floor(i.left),l=Math.floor(68*(i.left-c)),a=Math.floor(i.top),h=Math.floor(18*(i.top-a)),u=Math.floor(i.right),f=Math.floor(68*(i.right-u)),d=Math.floor(i.bottom);return[c,l,a,h,u,f,d,Math.floor(18*(i.bottom-d))]}getDefaultRect(i){const c=i.col,l=Math.max(i.row-2,0);return[c,6,l,14,c+2,2,l+4,16]}render(i,c){const l=c.anchor?this.getAnchorRect(c.anchor):this.getDefaultRect(c.refAddress);i.leafNode("x:Anchor",null,l.join(", "))}parseOpen(i){switch(i.name){case this.tag:return this.text="",!0;default:return!1}}parseText(i){this.text=i}parseClose(){return!1}}},{"../base-xform":32}],44:[function(e,n,o){const s=e("../base-xform"),i=e("./vml-anchor-xform"),c=e("./style/vml-protection-xform"),l=e("./style/vml-position-xform"),a=["twoCells","oneCells","absolute"];n.exports=class extends s{constructor(){super(),this.map={"x:Anchor":new i,"x:Locked":new c({tag:"x:Locked"}),"x:LockText":new c({tag:"x:LockText"}),"x:SizeWithCells":new l({tag:"x:SizeWithCells"}),"x:MoveWithCells":new l({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(h,u){const{protection:f,editAs:d}=u.note;h.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(h,d,a),this.map["x:SizeWithCells"].render(h,d,a),this.map["x:Anchor"].render(h,u),this.map["x:Locked"].render(h,f.locked),h.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(h,f.lockText),h.leafNode("x:Row",null,u.refAddress.row-1),h.leafNode("x:Column",null,u.refAddress.col-1),h.closeNode()}parseOpen(h){switch(h.name){case this.tag:this.reset(),this.model={anchor:[],protection:{},editAs:""};break;default:this.parser=this.map[h.name],this.parser&&this.parser.parseOpen(h)}return!0}parseText(h){this.parser&&this.parser.parseText(h)}parseClose(h){if(this.parser)return this.parser.parseClose(h)||(this.parser=void 0),!0;switch(h){case this.tag:return this.normalizeModel(),!1;default:return!0}}normalizeModel(){const h=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),u=Object.keys(h).length;this.model.editAs=a[u],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,n,o){const s=e("../../../utils/xml-stream"),i=e("../base-xform"),c=e("./vml-shape-xform");class l extends i{constructor(){super(),this.map={"v:shape":new c}}get tag(){return"xml"}render(h,u){h.openXml(s.StdDocAttributes),h.openNode(this.tag,l.DRAWING_ATTRIBUTES),h.openNode("o:shapelayout",{"v:ext":"edit"}),h.leafNode("o:idmap",{"v:ext":"edit",data:1}),h.closeNode(),h.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),h.leafNode("v:stroke",{joinstyle:"miter"}),h.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),h.closeNode(),u.comments.forEach((f,d)=>{this.map["v:shape"].render(h,f,d)}),h.closeNode()}parseOpen(h){if(this.parser)return this.parser.parseOpen(h),!0;switch(h.name){case this.tag:this.reset(),this.model={comments:[]};break;default:this.parser=this.map[h.name],this.parser&&this.parser.parseOpen(h)}return!0}parseText(h){this.parser&&this.parser.parseText(h)}parseClose(h){if(this.parser)return this.parser.parseClose(h)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0;switch(h){case this.tag:return!1;default:return!0}}reconcile(h,u){h.anchors.forEach(f=>{f.br?this.map["xdr:twoCellAnchor"].reconcile(f,u):this.map["xdr:oneCellAnchor"].reconcile(f,u)})}}l.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"},n.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(e,n,o){const s=e("../base-xform"),i=e("./vml-textbox-xform"),c=e("./vml-client-data-xform");class l extends s{constructor(){super(),this.map={"v:textbox":new i,"x:ClientData":new c}}get tag(){return"v:shape"}render(h,u,f){h.openNode("v:shape",l.V_SHAPE_ATTRIBUTES(u,f)),h.leafNode("v:fill",{color2:"infoBackground [80]"}),h.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),h.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(h,u),this.map["x:ClientData"].render(h,u),h.closeNode()}parseOpen(h){if(this.parser)return this.parser.parseOpen(h),!0;switch(h.name){case this.tag:this.reset(),this.model={margins:{insetmode:h.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}};break;default:this.parser=this.map[h.name],this.parser&&this.parser.parseOpen(h)}return!0}parseText(h){this.parser&&this.parser.parseText(h)}parseClose(h){if(this.parser)return this.parser.parseClose(h)||(this.parser=void 0),!0;switch(h){case 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}}}l.V_SHAPE_ATTRIBUTES=(a,h)=>({id:"_x0000_s"+(1025+h),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":a.note.margins&&a.note.margins.insetmode}),n.exports=l},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(e,n,o){const s=e("../base-xform");n.exports=class extends s{get tag(){return"v:textbox"}conversionUnit(i,c,l){return`${parseFloat(i)*c.toFixed(2)}${l}`}reverseConversionUnit(i){return(i||"").split(",").map(c=>Number(parseFloat(this.conversionUnit(parseFloat(c),.1,"")).toFixed(2)))}render(i,c){const l={style:"mso-direction-alt:auto"};if(c&&c.note){let{inset:a}=c.note&&c.note.margins;Array.isArray(a)&&(a=a.map(h=>this.conversionUnit(h,10,"mm")).join(",")),a&&(l.inset=a)}i.openNode("v:textbox",l),i.leafNode("div",{style:"text-align:left"}),i.closeNode()}parseOpen(i){switch(i.name){case this.tag:return this.model={inset:this.reverseConversionUnit(i.attributes.inset)},!0;default:return!0}}parseText(){}parseClose(i){switch(i){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],48:[function(e,n,o){const s=e("./base-xform");n.exports=class extends s{createNewModel(i){return{}}parseOpen(i){return this.parser=this.parser||this.map[i.name],this.parser?(this.parser.parseOpen(i),!0):i.name===this.tag&&(this.model=this.createNewModel(i),!0)}parseText(i){this.parser&&this.parser.parseText(i)}onParserClose(i,c){this.model[i]=c.model}parseClose(i){return this.parser?(this.parser.parseClose(i)||(this.onParserClose(i,this.parser),this.parser=void 0),!0):i!==this.tag}}},{"./base-xform":32}],49:[function(e,n,o){const s=e("../base-xform");n.exports=class extends s{render(i,c){i.openNode("HeadingPairs"),i.openNode("vt:vector",{size:2,baseType:"variant"}),i.openNode("vt:variant"),i.leafNode("vt:lpstr",void 0,"Worksheets"),i.closeNode(),i.openNode("vt:variant"),i.leafNode("vt:i4",void 0,c.length),i.closeNode(),i.closeNode(),i.closeNode()}parseOpen(i){return i.name==="HeadingPairs"}parseText(){}parseClose(i){return i!=="HeadingPairs"}}},{"../base-xform":32}],50:[function(e,n,o){const s=e("../base-xform");n.exports=class extends s{render(i,c){i.openNode("TitlesOfParts"),i.openNode("vt:vector",{size:c.length,baseType:"lpstr"}),c.forEach(l=>{i.leafNode("vt:lpstr",void 0,l.name)}),i.closeNode(),i.closeNode()}parseOpen(i){return i.name==="TitlesOfParts"}parseText(){}parseClose(i){return i!=="TitlesOfParts"}}},{"../base-xform":32}],51:[function(e,n,o){const s=e("../../../utils/xml-stream"),i=e("../base-xform"),c=e("../simple/string-xform"),l=e("./app-heading-pairs-xform"),a=e("./app-titles-of-parts-xform");class h extends i{constructor(){super(),this.map={Company:new c({tag:"Company"}),Manager:new c({tag:"Manager"}),HeadingPairs:new l,TitleOfParts:new a}}render(f,d){f.openXml(s.StdDocAttributes),f.openNode("Properties",h.PROPERTY_ATTRIBUTES),f.leafNode("Application",void 0,"Microsoft Excel"),f.leafNode("DocSecurity",void 0,"0"),f.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(f,d.worksheets),this.map.TitleOfParts.render(f,d.worksheets),this.map.Company.render(f,d.company||""),this.map.Manager.render(f,d.manager),f.leafNode("LinksUpToDate",void 0,"false"),f.leafNode("SharedDoc",void 0,"false"),f.leafNode("HyperlinksChanged",void 0,"false"),f.leafNode("AppVersion",void 0,"16.0300"),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"Properties":return!0;default:return this.parser=this.map[f.name],!!this.parser&&(this.parser.parseOpen(f),!0)}}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser)return this.parser.parseClose(f)||(this.parser=void 0),!0;switch(f){case"Properties":return this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1;default:return!0}}}h.DateFormat=function(u){return u.toISOString().replace(/[.]\d{3,6}/,"")},h.DateAttrs={"xsi:type":"dcterms:W3CDTF"},h.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},n.exports=h},{"../../../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,n,o){const s=e("../../../utils/xml-stream"),i=e("../base-xform");class c extends i{render(a,h){a.openXml(s.StdDocAttributes),a.openNode("Types",c.PROPERTY_ATTRIBUTES);const u={};(h.media||[]).forEach(f=>{if(f.type==="image"){const d=f.extension;u[d]||(u[d]=!0,a.leafNode("Default",{Extension:d,ContentType:"image/"+d}))}}),a.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),a.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),a.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),h.worksheets.forEach(f=>{const d=`/xl/worksheets/sheet${f.id}.xml`;a.leafNode("Override",{PartName:d,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),a.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),a.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),h.sharedStrings&&h.sharedStrings.count&&a.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),h.tables&&h.tables.forEach(f=>{a.leafNode("Override",{PartName:"/xl/tables/"+f.target,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),h.drawings&&h.drawings.forEach(f=>{a.leafNode("Override",{PartName:`/xl/drawings/${f.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),h.commentRefs&&(a.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),h.commentRefs.forEach(f=>{let{commentName:d}=f;a.leafNode("Override",{PartName:`/xl/${d}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),a.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),a.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),a.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}c.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},n.exports=c},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(e,n,o){const s=e("../../../utils/xml-stream"),i=e("../base-xform"),c=e("../simple/date-xform"),l=e("../simple/string-xform"),a=e("../simple/integer-xform");class h extends i{constructor(){super(),this.map={"dc:creator":new l({tag:"dc:creator"}),"dc:title":new l({tag:"dc:title"}),"dc:subject":new l({tag:"dc:subject"}),"dc:description":new l({tag:"dc:description"}),"dc:identifier":new l({tag:"dc:identifier"}),"dc:language":new l({tag:"dc:language"}),"cp:keywords":new l({tag:"cp:keywords"}),"cp:category":new l({tag:"cp:category"}),"cp:lastModifiedBy":new l({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new c({tag:"cp:lastPrinted",format:h.DateFormat}),"cp:revision":new a({tag:"cp:revision"}),"cp:version":new l({tag:"cp:version"}),"cp:contentStatus":new l({tag:"cp:contentStatus"}),"cp:contentType":new l({tag:"cp:contentType"}),"dcterms:created":new c({tag:"dcterms:created",attrs:h.DateAttrs,format:h.DateFormat}),"dcterms:modified":new c({tag:"dcterms:modified",attrs:h.DateAttrs,format:h.DateFormat})}}render(f,d){f.openXml(s.StdDocAttributes),f.openNode("cp:coreProperties",h.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(f,d.creator),this.map["dc:title"].render(f,d.title),this.map["dc:subject"].render(f,d.subject),this.map["dc:description"].render(f,d.description),this.map["dc:identifier"].render(f,d.identifier),this.map["dc:language"].render(f,d.language),this.map["cp:keywords"].render(f,d.keywords),this.map["cp:category"].render(f,d.category),this.map["cp:lastModifiedBy"].render(f,d.lastModifiedBy),this.map["cp:lastPrinted"].render(f,d.lastPrinted),this.map["cp:revision"].render(f,d.revision),this.map["cp:version"].render(f,d.version),this.map["cp:contentStatus"].render(f,d.contentStatus),this.map["cp:contentType"].render(f,d.contentType),this.map["dcterms:created"].render(f,d.created),this.map["dcterms:modified"].render(f,d.modified),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[f.name],this.parser)return this.parser.parseOpen(f),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(f))}}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser)return this.parser.parseClose(f)||(this.parser=void 0),!0;switch(f){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: "+f)}}}h.DateFormat=function(u){return u.toISOString().replace(/[.]\d{3}/,"")},h.DateAttrs={"xsi:type":"dcterms:W3CDTF"},h.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"},n.exports=h},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(e,n,o){const s=e("../base-xform");n.exports=class extends s{render(i,c){i.leafNode("Relationship",c)}parseOpen(i){switch(i.name){case"Relationship":return this.model=i.attributes,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(e,n,o){const s=e("../../../utils/xml-stream"),i=e("../base-xform"),c=e("./relationship-xform");class l extends i{constructor(){super(),this.map={Relationship:new c}}render(h,u){u=u||this._values,h.openXml(s.StdDocAttributes),h.openNode("Relationships",l.RELATIONSHIPS_ATTRIBUTES),u.forEach(f=>{this.map.Relationship.render(h,f)}),h.closeNode()}parseOpen(h){if(this.parser)return this.parser.parseOpen(h),!0;switch(h.name){case"Relationships":return this.model=[],!0;default:if(this.parser=this.map[h.name],this.parser)return this.parser.parseOpen(h),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(h))}}parseText(h){this.parser&&this.parser.parseText(h)}parseClose(h){if(this.parser)return this.parser.parseClose(h)||(this.model.push(this.parser.model),this.parser=void 0),!0;switch(h){case"Relationships":return!1;default:throw new Error("Unexpected xml node in parseClose: "+h)}}}l.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},n.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(e,n,o){const s=e("../base-xform");n.exports=class extends s{parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;switch(i.name){case this.tag:this.reset(),this.model={range:{editAs:i.attributes.editAs||"oneCell"}};break;default:this.parser=this.map[i.name],this.parser&&this.parser.parseOpen(i)}return!0}parseText(i){this.parser&&this.parser.parseText(i)}reconcilePicture(i,c){if(i&&i.rId){const l=c.rels[i.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(l){const a=l[1],h=c.mediaIndex[a];return c.media[h]}}}}},{"../base-xform":32}],57:[function(e,n,o){const s=e("../base-xform"),i=e("./blip-xform");n.exports=class extends s{constructor(){super(),this.map={"a:blip":new i}}get tag(){return"xdr:blipFill"}render(c,l){c.openNode(this.tag),this.map["a:blip"].render(c,l),c.openNode("a:stretch"),c.leafNode("a:fillRect"),c.closeNode(),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case this.tag:this.reset();break;default:this.parser=this.map[c.name],this.parser&&this.parser.parseOpen(c)}return!0}parseText(){}parseClose(c){if(this.parser)return this.parser.parseClose(c)||(this.parser=void 0),!0;switch(c){case this.tag:return this.model=this.map["a:blip"].model,!1;default:return!0}}}},{"../base-xform":32,"./blip-xform":58}],58:[function(e,n,o){const s=e("../base-xform");n.exports=class extends s{get tag(){return"a:blip"}render(i,c){i.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":c.rId,cstate:"print"})}parseOpen(i){switch(i.name){case this.tag:return this.model={rId:i.attributes["r:embed"]},!0;default:return!0}}parseText(){}parseClose(i){switch(i){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],59:[function(e,n,o){const s=e("../base-xform");n.exports=class extends s{get tag(){return"xdr:cNvPicPr"}render(i){i.openNode(this.tag),i.leafNode("a:picLocks",{noChangeAspect:"1"}),i.closeNode()}parseOpen(i){switch(i.name){case this.tag:default:return!0}}parseText(){}parseClose(i){switch(i){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],60:[function(e,n,o){const s=e("../base-xform"),i=e("./hlink-click-xform"),c=e("./ext-lst-xform");n.exports=class extends s{constructor(){super(),this.map={"a:hlinkClick":new i,"a:extLst":new c}}get tag(){return"xdr:cNvPr"}render(l,a){l.openNode(this.tag,{id:a.index,name:"Picture "+a.index}),this.map["a:hlinkClick"].render(l,a),this.map["a:extLst"].render(l,a),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case this.tag:this.reset();break;default:this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)}return!0}parseText(){}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.parser=void 0),!0;switch(l){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,n,o){const s=e("../base-xform"),i=e("../simple/integer-xform");n.exports=class extends s{constructor(c){super(),this.tag=c.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(c,l){c.openNode(this.tag),this.map["xdr:col"].render(c,l.nativeCol),this.map["xdr:colOff"].render(c,l.nativeColOff),this.map["xdr:row"].render(c,l.nativeRow),this.map["xdr:rowOff"].render(c,l.nativeRowOff),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case this.tag:this.reset();break;default:this.parser=this.map[c.name],this.parser&&this.parser.parseOpen(c)}return!0}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){if(this.parser)return this.parser.parseClose(c)||(this.parser=void 0),!0;switch(c){case 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,n,o){const s=e("../../../utils/col-cache"),i=e("../../../utils/xml-stream"),c=e("../base-xform"),l=e("./two-cell-anchor-xform"),a=e("./one-cell-anchor-xform");class h extends c{constructor(){super(),this.map={"xdr:twoCellAnchor":new l,"xdr:oneCellAnchor":new a}}prepare(f){f.anchors.forEach((d,m)=>{d.anchorType=function(p){return(typeof p.range=="string"?s.decode(p.range):p.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}(d),this.map[d.anchorType].prepare(d,{index:m})})}get tag(){return"xdr:wsDr"}render(f,d){f.openXml(i.StdDocAttributes),f.openNode(this.tag,h.DRAWING_ATTRIBUTES),d.anchors.forEach(m=>{this.map[m.anchorType].render(f,m)}),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case this.tag:this.reset(),this.model={anchors:[]};break;default:this.parser=this.map[f.name],this.parser&&this.parser.parseOpen(f)}return!0}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser)return this.parser.parseClose(f)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0;switch(f){case this.tag:return!1;default:return!0}}reconcile(f,d){f.anchors.forEach(m=>{m.br?this.map["xdr:twoCellAnchor"].reconcile(m,d):this.map["xdr:oneCellAnchor"].reconcile(m,d)})}}h.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},n.exports=h},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(e,n,o){const s=e("../base-xform");n.exports=class extends s{get tag(){return"a:extLst"}render(i){i.openNode(this.tag),i.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),i.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),i.closeNode(),i.closeNode()}parseOpen(i){switch(i.name){case this.tag:default:return!0}}parseText(){}parseClose(i){switch(i){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],64:[function(e,n,o){const s=e("../base-xform");n.exports=class extends s{constructor(i){super(),this.tag=i.tag,this.map={}}render(i,c){i.openNode(this.tag);const l=Math.floor(9525*c.width),a=Math.floor(9525*c.height);i.addAttribute("cx",l),i.addAttribute("cy",a),i.closeNode()}parseOpen(i){return i.name===this.tag&&(this.model={width:parseInt(i.attributes.cx||"0",10)/9525,height:parseInt(i.attributes.cy||"0",10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(e,n,o){const s=e("../base-xform");n.exports=class extends s{get tag(){return"a:hlinkClick"}render(i,c){c.hyperlinks&&c.hyperlinks.rId&&i.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":c.hyperlinks.rId,tooltip:c.hyperlinks.tooltip})}parseOpen(i){switch(i.name){case this.tag:return this.model={hyperlinks:{rId:i.attributes["r:id"],tooltip:i.attributes.tooltip}},!0;default:return!0}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(e,n,o){const s=e("../base-xform"),i=e("./c-nv-pr-xform"),c=e("./c-nv-pic-pr-xform");n.exports=class extends s{constructor(){super(),this.map={"xdr:cNvPr":new i,"xdr:cNvPicPr":new c}}get tag(){return"xdr:nvPicPr"}render(l,a){l.openNode(this.tag),this.map["xdr:cNvPr"].render(l,a),this.map["xdr:cNvPicPr"].render(l,a),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case this.tag:this.reset();break;default:this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)}return!0}parseText(){}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.parser=void 0),!0;switch(l){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,n,o){const s=e("./base-cell-anchor-xform"),i=e("../static-xform"),c=e("./cell-position-xform"),l=e("./ext-xform"),a=e("./pic-xform");n.exports=class extends s{constructor(){super(),this.map={"xdr:from":new c({tag:"xdr:from"}),"xdr:ext":new l({tag:"xdr:ext"}),"xdr:pic":new a,"xdr:clientData":new i({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(h,u){this.map["xdr:pic"].prepare(h.picture,u)}render(h,u){h.openNode(this.tag,{editAs:u.range.editAs||"oneCell"}),this.map["xdr:from"].render(h,u.range.tl),this.map["xdr:ext"].render(h,u.range.ext),this.map["xdr:pic"].render(h,u.picture),this.map["xdr:clientData"].render(h,{}),h.closeNode()}parseClose(h){if(this.parser)return this.parser.parseClose(h)||(this.parser=void 0),!0;switch(h){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(h,u){h.medium=this.reconcilePicture(h.picture,u)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(e,n,o){const s=e("../base-xform"),i=e("../static-xform"),c=e("./blip-fill-xform"),l=e("./nv-pic-pr-xform"),a=e("./sp-pr");n.exports=class extends s{constructor(){super(),this.map={"xdr:nvPicPr":new l,"xdr:blipFill":new c,"xdr:spPr":new i(a)}}get tag(){return"xdr:pic"}prepare(h,u){h.index=u.index+1}render(h,u){h.openNode(this.tag),this.map["xdr:nvPicPr"].render(h,u),this.map["xdr:blipFill"].render(h,u),this.map["xdr:spPr"].render(h,u),h.closeNode()}parseOpen(h){if(this.parser)return this.parser.parseOpen(h),!0;switch(h.name){case this.tag:this.reset();break;default:this.parser=this.map[h.name],this.parser&&this.parser.parseOpen(h)}return!0}parseText(){}parseClose(h){if(this.parser)return this.parser.parseClose(h)||(this.mergeModel(this.parser.model),this.parser=void 0),!0;switch(h){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,n,o){n.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,n,o){const s=e("./base-cell-anchor-xform"),i=e("../static-xform"),c=e("./cell-position-xform"),l=e("./pic-xform");n.exports=class extends s{constructor(){super(),this.map={"xdr:from":new c({tag:"xdr:from"}),"xdr:to":new c({tag:"xdr:to"}),"xdr:pic":new l,"xdr:clientData":new i({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(a,h){this.map["xdr:pic"].prepare(a.picture,h)}render(a,h){a.openNode(this.tag,{editAs:h.range.editAs||"oneCell"}),this.map["xdr:from"].render(a,h.range.tl),this.map["xdr:to"].render(a,h.range.br),this.map["xdr:pic"].render(a,h.picture),this.map["xdr:clientData"].render(a,{}),a.closeNode()}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.parser=void 0),!0;switch(a){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(a,h){a.medium=this.reconcilePicture(a.picture,h)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(e,n,o){const s=e("./base-xform");n.exports=class extends s{constructor(i){super(),this.tag=i.tag,this.always=!!i.always,this.count=i.count,this.empty=i.empty,this.$count=i.$count||"count",this.$=i.$,this.childXform=i.childXform,this.maxItems=i.maxItems}prepare(i,c){const{childXform:l}=this;i&&i.forEach((a,h)=>{c.index=h,l.prepare(a,c)})}render(i,c){if(this.always||c&&c.length){i.openNode(this.tag,this.$),this.count&&i.addAttribute(this.$count,c&&c.length||0);const{childXform:l}=this;(c||[]).forEach((a,h)=>{l.render(i,a,h)}),i.closeNode()}else this.empty&&i.leafNode(this.tag)}parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;switch(i.name){case this.tag:return this.model=[],!0;default:return!!this.childXform.parseOpen(i)&&(this.parser=this.childXform,!0)}}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){if(this.parser){if(!this.parser.parseClose(i)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(i,c){if(i){const{childXform:l}=this;i.forEach(a=>{l.reconcile(a,c)})}}}},{"./base-xform":32}],72:[function(e,n,o){const s=e("../../../utils/col-cache"),i=e("../base-xform");n.exports=class extends i{get tag(){return"autoFilter"}render(c,l){if(l)if(typeof l=="string")c.leafNode("autoFilter",{ref:l});else{const a=function(f){return typeof f=="string"?f:s.getAddress(f.row,f.column).address},h=a(l.from),u=a(l.to);h&&u&&c.leafNode("autoFilter",{ref:`${h}:${u}`})}}parseOpen(c){c.name==="autoFilter"&&(this.model=c.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(e,n,o){const s=e("../../../utils/utils"),i=e("../base-xform"),c=e("../../../doc/range"),l=e("../../../doc/enums"),a=e("../strings/rich-text-xform");function h(u){if(u==null)return l.ValueType.Null;if(u instanceof String||typeof u=="string")return l.ValueType.String;if(typeof u=="number")return l.ValueType.Number;if(typeof u=="boolean")return l.ValueType.Boolean;if(u instanceof Date)return l.ValueType.Date;if(u.text&&u.hyperlink)return l.ValueType.Hyperlink;if(u.formula)return l.ValueType.Formula;if(u.error)return l.ValueType.Error;throw new Error("I could not understand type of value")}n.exports=class extends i{constructor(){super(),this.richTextXForm=new a}get tag(){return"c"}prepare(u,f){const d=f.styles.addStyleModel(u.style||{},function(m){switch(m.type){case l.ValueType.Formula:return h(m.result);default:return m.type}}(u));switch(d&&(u.styleId=d),u.comment&&f.comments.push({...u.comment,ref:u.address}),u.type){case l.ValueType.String:case l.ValueType.RichText:f.sharedStrings&&(u.ssId=f.sharedStrings.add(u.value));break;case l.ValueType.Date:f.date1904&&(u.date1904=!0);break;case l.ValueType.Hyperlink:f.sharedStrings&&u.text!==void 0&&u.text!==null&&(u.ssId=f.sharedStrings.add(u.text)),f.hyperlinks.push({address:u.address,target:u.hyperlink,tooltip:u.tooltip});break;case l.ValueType.Merge:f.merges.add(u);break;case l.ValueType.Formula:if(f.date1904&&(u.date1904=!0),u.shareType==="shared"&&(u.si=f.siFormulae++),u.formula)f.formulae[u.address]=u;else if(u.sharedFormula){const m=f.formulae[u.sharedFormula];if(!m)throw new Error("Shared Formula master must exist above and or left of clone for cell "+u.address);m.si===void 0?(m.shareType="shared",m.si=f.siFormulae++,m.range=new c(m.address,u.address)):m.range&&m.range.expandToAddress(u.address),u.si=m.si}}}renderFormula(u,f){let d=null;switch(f.shareType){case"shared":d={t:"shared",ref:f.ref||f.range.range,si:f.si};break;case"array":d={t:"array",ref:f.ref};break;default:f.si!==void 0&&(d={t:"shared",si:f.si})}switch(h(f.result)){case l.ValueType.Null:u.leafNode("f",d,f.formula);break;case l.ValueType.String:u.addAttribute("t","str"),u.leafNode("f",d,f.formula),u.leafNode("v",null,f.result);break;case l.ValueType.Number:u.leafNode("f",d,f.formula),u.leafNode("v",null,f.result);break;case l.ValueType.Boolean:u.addAttribute("t","b"),u.leafNode("f",d,f.formula),u.leafNode("v",null,f.result?1:0);break;case l.ValueType.Error:u.addAttribute("t","e"),u.leafNode("f",d,f.formula),u.leafNode("v",null,f.result.error);break;case l.ValueType.Date:u.leafNode("f",d,f.formula),u.leafNode("v",null,s.dateToExcel(f.result,f.date1904));break;default:throw new Error("I could not understand type of value")}}render(u,f){if(f.type!==l.ValueType.Null||f.styleId){switch(u.openNode("c"),u.addAttribute("r",f.address),f.styleId&&u.addAttribute("s",f.styleId),f.type){case l.ValueType.Null:break;case l.ValueType.Number:u.leafNode("v",null,f.value);break;case l.ValueType.Boolean:u.addAttribute("t","b"),u.leafNode("v",null,f.value?"1":"0");break;case l.ValueType.Error:u.addAttribute("t","e"),u.leafNode("v",null,f.value.error);break;case l.ValueType.String:case l.ValueType.RichText:f.ssId!==void 0?(u.addAttribute("t","s"),u.leafNode("v",null,f.ssId)):f.value&&f.value.richText?(u.addAttribute("t","inlineStr"),u.openNode("is"),f.value.richText.forEach(d=>{this.richTextXForm.render(u,d)}),u.closeNode("is")):(u.addAttribute("t","str"),u.leafNode("v",null,f.value));break;case l.ValueType.Date:u.leafNode("v",null,s.dateToExcel(f.value,f.date1904));break;case l.ValueType.Hyperlink:f.ssId!==void 0?(u.addAttribute("t","s"),u.leafNode("v",null,f.ssId)):(u.addAttribute("t","str"),u.leafNode("v",null,f.text));break;case l.ValueType.Formula:this.renderFormula(u,f);break;case l.ValueType.Merge:}u.closeNode()}}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"c":return this.model={address:u.attributes.r},this.t=u.attributes.t,u.attributes.s&&(this.model.styleId=parseInt(u.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=u.attributes.si,this.model.shareType=u.attributes.t,this.model.ref=u.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(u),!0;default:return!1}}parseText(u){if(this.parser)this.parser.parseText(u);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+u:u;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+u:u:this.model.value=this.model.value?this.model.value+u:u}}parseClose(u){switch(u){case"c":{const{model:f}=this;if(f.formula||f.shareType)f.type=l.ValueType.Formula,f.value&&(this.t==="str"?f.result=s.xmlDecode(f.value):this.t==="b"?f.result=parseInt(f.value,10)!==0:this.t==="e"?f.result={error:f.value}:f.result=parseFloat(f.value),f.value=void 0);else if(f.value!==void 0)switch(this.t){case"s":f.type=l.ValueType.String,f.value=parseInt(f.value,10);break;case"str":f.type=l.ValueType.String,f.value=s.xmlDecode(f.value);break;case"inlineStr":f.type=l.ValueType.String;break;case"b":f.type=l.ValueType.Boolean,f.value=parseInt(f.value,10)!==0;break;case"e":f.type=l.ValueType.Error,f.value={error:f.value};break;default:f.type=l.ValueType.Number,f.value=parseFloat(f.value)}else f.styleId?f.type=l.ValueType.Null:f.type=l.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(u),!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(u),!0)}}reconcile(u,f){const d=u.styleId&&f.styles&&f.styles.getStyleModel(u.styleId);switch(d&&(u.style=d),u.styleId!==void 0&&(u.styleId=void 0),u.type){case l.ValueType.String:typeof u.value=="number"&&f.sharedStrings&&(u.value=f.sharedStrings.getString(u.value)),u.value.richText&&(u.type=l.ValueType.RichText);break;case l.ValueType.Number:d&&s.isDateFmt(d.numFmt)&&(u.type=l.ValueType.Date,u.value=s.excelToDate(u.value,f.date1904));break;case l.ValueType.Formula:u.result!==void 0&&d&&s.isDateFmt(d.numFmt)&&(u.result=s.excelToDate(u.result,f.date1904)),u.shareType==="shared"&&(u.ref?f.formulae[u.si]=u.address:(u.sharedFormula=f.formulae[u.si],delete u.shareType),delete u.si)}const m=f.hyperlinkMap[u.address];m&&(u.type===l.ValueType.Formula?(u.text=u.result,u.result=void 0):(u.text=u.value,u.value=void 0),u.type=l.ValueType.Hyperlink,u.hyperlink=m);const p=f.commentsMap&&f.commentsMap[u.address];p&&(u.comment=p)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(e,n,o){const s=e("../../base-xform");n.exports=class extends s{get tag(){return"x14:cfIcon"}render(i,c){i.leafNode(this.tag,{iconSet:c.iconSet,iconId:c.iconId})}parseOpen(i){let{attributes:c}=i;this.model={iconSet:c.iconSet,iconId:s.toIntValue(c.iconId)}}parseClose(i){return i!==this.tag}}},{"../../base-xform":32}],75:[function(e,n,o){const{v4:s}=e("uuid"),i=e("../../base-xform"),c=e("../../composite-xform"),l=e("./databar-ext-xform"),a=e("./icon-set-ext-xform"),h={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class u extends c{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new l,"x14:iconSet":this.iconSetXform=new a}}get tag(){return"x14:cfRule"}static isExt(d){return d.type==="dataBar"?l.isExt(d):!(d.type!=="iconSet"||!d.custom&&!h[d.iconSet])}prepare(d){u.isExt(d)&&(d.x14Id=`{${s()}}`.toUpperCase())}render(d,m){if(u.isExt(m))switch(m.type){case"dataBar":this.renderDataBar(d,m);break;case"iconSet":this.renderIconSet(d,m)}}renderDataBar(d,m){d.openNode(this.tag,{type:"dataBar",id:m.x14Id}),this.databarXform.render(d,m),d.closeNode()}renderIconSet(d,m){d.openNode(this.tag,{type:"iconSet",priority:m.priority,id:m.x14Id||`{${s()}}`}),this.iconSetXform.render(d,m),d.closeNode()}createNewModel(d){let{attributes:m}=d;return{type:m.type,x14Id:m.id,priority:i.toIntValue(m.priority)}}onParserClose(d,m){Object.assign(this.model,m.model)}}n.exports=u},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(e,n,o){const s=e("../../composite-xform"),i=e("./f-ext-xform");n.exports=class extends s{constructor(){super(),this.map={"xm:f":this.fExtXform=new i}}get tag(){return"x14:cfvo"}render(c,l){c.openNode(this.tag,{type:l.type}),l.value!==void 0&&this.fExtXform.render(c,l.value),c.closeNode()}createNewModel(c){return{type:c.attributes.type}}onParserClose(c,l){switch(c){case"xm:f":this.model.value=l.model?parseFloat(l.model):0}}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(e,n,o){const s=e("../../composite-xform"),i=e("./sqref-ext-xform"),c=e("./cf-rule-ext-xform");n.exports=class extends s{constructor(){super(),this.map={"xm:sqref":this.sqRef=new i,"x14:cfRule":this.cfRule=new c}}get tag(){return"x14:conditionalFormatting"}prepare(l,a){l.rules.forEach(h=>{this.cfRule.prepare(h,a)})}render(l,a){a.rules.some(c.isExt)&&(l.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),a.rules.filter(c.isExt).forEach(h=>this.cfRule.render(l,h)),this.sqRef.render(l,a.ref),l.closeNode())}createNewModel(){return{rules:[]}}onParserClose(l,a){switch(l){case"xm:sqref":this.model.ref=a.model;break;case"x14:cfRule":this.model.rules.push(a.model)}}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(e,n,o){const s=e("../../composite-xform"),i=e("./cf-rule-ext-xform"),c=e("./conditional-formatting-ext-xform");n.exports=class extends s{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new c}}get tag(){return"x14:conditionalFormattings"}hasContent(l){return l.hasExtContent===void 0&&(l.hasExtContent=l.some(a=>a.rules.some(i.isExt))),l.hasExtContent}prepare(l,a){l.forEach(h=>{this.cfXform.prepare(h,a)})}render(l,a){this.hasContent(a)&&(l.openNode(this.tag),a.forEach(h=>this.cfXform.render(l,h)),l.closeNode())}createNewModel(){return[]}onParserClose(l,a){this.model.push(a.model)}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(e,n,o){const s=e("../../base-xform"),i=e("../../composite-xform"),c=e("../../style/color-xform"),l=e("./cfvo-ext-xform");n.exports=class extends i{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new l,"x14:borderColor":this.borderColorXform=new c("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new c("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new c("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new c("x14:axisColor")}}static isExt(a){return!a.gradient}get tag(){return"x14:dataBar"}render(a,h){a.openNode(this.tag,{minLength:s.toIntAttribute(h.minLength,0,!0),maxLength:s.toIntAttribute(h.maxLength,100,!0),border:s.toBoolAttribute(h.border,!1),gradient:s.toBoolAttribute(h.gradient,!0),negativeBarColorSameAsPositive:s.toBoolAttribute(h.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:s.toBoolAttribute(h.negativeBarBorderColorSameAsPositive,!0),axisPosition:s.toAttribute(h.axisPosition,"auto"),direction:s.toAttribute(h.direction,"leftToRight")}),h.cfvo.forEach(u=>{this.cfvoXform.render(a,u)}),this.borderColorXform.render(a,h.borderColor),this.negativeBorderColorXform.render(a,h.negativeBorderColor),this.negativeFillColorXform.render(a,h.negativeFillColor),this.axisColorXform.render(a,h.axisColor),a.closeNode()}createNewModel(a){let{attributes:h}=a;return{cfvo:[],minLength:s.toIntValue(h.minLength,0),maxLength:s.toIntValue(h.maxLength,100),border:s.toBoolValue(h.border,!1),gradient:s.toBoolValue(h.gradient,!0),negativeBarColorSameAsPositive:s.toBoolValue(h.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:s.toBoolValue(h.negativeBarBorderColorSameAsPositive,!0),axisPosition:s.toStringValue(h.axisPosition,"auto"),direction:s.toStringValue(h.direction,"leftToRight")}}onParserClose(a,h){const[,u]=a.split(":");switch(u){case"cfvo":this.model.cfvo.push(h.model);break;default:this.model[u]=h.model}}}},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(e,n,o){const s=e("../../base-xform");n.exports=class extends s{get tag(){return"xm:f"}render(i,c){i.leafNode(this.tag,null,c)}parseOpen(){this.model=""}parseText(i){this.model+=i}parseClose(i){return i!==this.tag}}},{"../../base-xform":32}],81:[function(e,n,o){const s=e("../../base-xform"),i=e("../../composite-xform"),c=e("./cfvo-ext-xform"),l=e("./cf-icon-ext-xform");n.exports=class extends i{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new c,"x14:cfIcon":this.cfIconXform=new l}}get tag(){return"x14:iconSet"}render(a,h){a.openNode(this.tag,{iconSet:s.toStringAttribute(h.iconSet),reverse:s.toBoolAttribute(h.reverse,!1),showValue:s.toBoolAttribute(h.showValue,!0),custom:s.toBoolAttribute(h.icons,!1)}),h.cfvo.forEach(u=>{this.cfvoXform.render(a,u)}),h.icons&&h.icons.forEach((u,f)=>{u.iconId=f,this.cfIconXform.render(a,u)}),a.closeNode()}createNewModel(a){let{attributes:h}=a;return{cfvo:[],iconSet:s.toStringValue(h.iconSet,"3TrafficLights"),reverse:s.toBoolValue(h.reverse,!1),showValue:s.toBoolValue(h.showValue,!0)}}onParserClose(a,h){const[,u]=a.split(":");switch(u){case"cfvo":this.model.cfvo.push(h.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(h.model);break;default:this.model[u]=h.model}}}},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(e,n,o){const s=e("../../base-xform");n.exports=class extends s{get tag(){return"xm:sqref"}render(i,c){i.leafNode(this.tag,null,c)}parseOpen(){this.model=""}parseText(i){this.model+=i}parseClose(i){return i!==this.tag}}},{"../../base-xform":32}],83:[function(e,n,o){const s=e("../../base-xform"),i=e("../../composite-xform"),c=e("../../../../doc/range"),l=e("./databar-xform"),a=e("./ext-lst-ref-xform"),h=e("./formula-xform"),u=e("./color-scale-xform"),f=e("./icon-set-xform"),d={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},m=g=>{const{type:v,operator:b}=g;switch(v){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:v};default:return{type:v,operator:b}}};class p extends i{constructor(){super(),this.map={dataBar:this.databarXform=new l,extLst:this.extLstRefXform=new a,formula:this.formulaXform=new h,colorScale:this.colorScaleXform=new u,iconSet:this.iconSetXform=new f}}get tag(){return"cfRule"}static isPrimitive(v){return v.type!=="iconSet"||!v.custom&&!d[v.iconSet]}render(v,b){switch(b.type){case"expression":this.renderExpression(v,b);break;case"cellIs":this.renderCellIs(v,b);break;case"top10":this.renderTop10(v,b);break;case"aboveAverage":this.renderAboveAverage(v,b);break;case"dataBar":this.renderDataBar(v,b);break;case"colorScale":this.renderColorScale(v,b);break;case"iconSet":this.renderIconSet(v,b);break;case"containsText":this.renderText(v,b);break;case"timePeriod":this.renderTimePeriod(v,b)}}renderExpression(v,b){v.openNode(this.tag,{type:"expression",dxfId:b.dxfId,priority:b.priority}),this.formulaXform.render(v,b.formulae[0]),v.closeNode()}renderCellIs(v,b){v.openNode(this.tag,{type:"cellIs",dxfId:b.dxfId,priority:b.priority,operator:b.operator}),b.formulae.forEach(_=>{this.formulaXform.render(v,_)}),v.closeNode()}renderTop10(v,b){v.leafNode(this.tag,{type:"top10",dxfId:b.dxfId,priority:b.priority,percent:s.toBoolAttribute(b.percent,!1),bottom:s.toBoolAttribute(b.bottom,!1),rank:s.toIntValue(b.rank,10,!0)})}renderAboveAverage(v,b){v.leafNode(this.tag,{type:"aboveAverage",dxfId:b.dxfId,priority:b.priority,aboveAverage:s.toBoolAttribute(b.aboveAverage,!0)})}renderDataBar(v,b){v.openNode(this.tag,{type:"dataBar",priority:b.priority}),this.databarXform.render(v,b),this.extLstRefXform.render(v,b),v.closeNode()}renderColorScale(v,b){v.openNode(this.tag,{type:"colorScale",priority:b.priority}),this.colorScaleXform.render(v,b),v.closeNode()}renderIconSet(v,b){p.isPrimitive(b)&&(v.openNode(this.tag,{type:"iconSet",priority:b.priority}),this.iconSetXform.render(v,b),v.closeNode())}renderText(v,b){v.openNode(this.tag,{type:b.operator,dxfId:b.dxfId,priority:b.priority,operator:s.toStringAttribute(b.operator,"containsText")});const _=(E=>{if(E.formulae&&E.formulae[0])return E.formulae[0];const O=new c(E.ref),{tl:j}=O;switch(E.operator){case"containsText":return`NOT(ISERROR(SEARCH("${E.text}",${j})))`;case"containsBlanks":return`LEN(TRIM(${j}))=0`;case"notContainsBlanks":return`LEN(TRIM(${j}))>0`;case"containsErrors":return`ISERROR(${j})`;case"notContainsErrors":return`NOT(ISERROR(${j}))`;default:return}})(b);_&&this.formulaXform.render(v,_),v.closeNode()}renderTimePeriod(v,b){v.openNode(this.tag,{type:"timePeriod",dxfId:b.dxfId,priority:b.priority,timePeriod:b.timePeriod});const _=(E=>{if(E.formulae&&E.formulae[0])return E.formulae[0];const O=new c(E.ref),{tl:j}=O;switch(E.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${j},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${j},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${j},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${j},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${j},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${j},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${j},1)=TODAY()-1`;case"today":return`FLOOR(${j},1)=TODAY()`;case"tomorrow":return`FLOOR(${j},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${j},1)<=6,FLOOR(${j},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${j})=MONTH(EDATE(TODAY(),0-1)),YEAR(${j})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${j})=MONTH(TODAY()),YEAR(${j})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${j})=MONTH(EDATE(TODAY(),0+1)),YEAR(${j})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(b);_&&this.formulaXform.render(v,_),v.closeNode()}createNewModel(v){let{attributes:b}=v;return{...m(b),dxfId:s.toIntValue(b.dxfId),priority:s.toIntValue(b.priority),timePeriod:b.timePeriod,percent:s.toBoolValue(b.percent),bottom:s.toBoolValue(b.bottom),rank:s.toIntValue(b.rank),aboveAverage:s.toBoolValue(b.aboveAverage)}}onParserClose(v,b){switch(v){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,b.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(b.model)}}}n.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,n,o){const s=e("../../base-xform");n.exports=class extends s{get tag(){return"cfvo"}render(i,c){i.leafNode(this.tag,{type:c.type,val:c.value})}parseOpen(i){this.model={type:i.attributes.type,value:s.toFloatValue(i.attributes.val)}}parseClose(i){return i!==this.tag}}},{"../../base-xform":32}],85:[function(e,n,o){const s=e("../../composite-xform"),i=e("../../style/color-xform"),c=e("./cfvo-xform");n.exports=class extends s{constructor(){super(),this.map={cfvo:this.cfvoXform=new c,color:this.colorXform=new i}}get tag(){return"colorScale"}render(l,a){l.openNode(this.tag),a.cfvo.forEach(h=>{this.cfvoXform.render(l,h)}),a.color.forEach(h=>{this.colorXform.render(l,h)}),l.closeNode()}createNewModel(l){return{cfvo:[],color:[]}}onParserClose(l,a){this.model[l].push(a.model)}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(e,n,o){const s=e("../../composite-xform"),i=e("./cf-rule-xform");n.exports=class extends s{constructor(){super(),this.map={cfRule:new i}}get tag(){return"conditionalFormatting"}render(c,l){l.rules.some(i.isPrimitive)&&(c.openNode(this.tag,{sqref:l.ref}),l.rules.forEach(a=>{i.isPrimitive(a)&&(a.ref=l.ref,this.map.cfRule.render(c,a))}),c.closeNode())}createNewModel(c){let{attributes:l}=c;return{ref:l.sqref,rules:[]}}onParserClose(c,l){this.model.rules.push(l.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(e,n,o){const s=e("../../base-xform"),i=e("./conditional-formatting-xform");n.exports=class extends s{constructor(){super(),this.cfXform=new i}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(c,l){let a=c.reduce((h,u)=>Math.max(h,...u.rules.map(f=>f.priority||0)),1);c.forEach(h=>{h.rules.forEach(u=>{u.priority||(u.priority=a++),u.style&&(u.dxfId=l.styles.addDxfStyle(u.style))})})}render(c,l){l.forEach(a=>{this.cfXform.render(c,a)})}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case"conditionalFormatting":return this.parser=this.cfXform,this.parser.parseOpen(c),!0;default:return!1}}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){return!!this.parser&&(!!this.parser.parseClose(c)||(this.model.push(this.parser.model),this.parser=void 0,!1))}reconcile(c,l){c.forEach(a=>{a.rules.forEach(h=>{h.dxfId!==void 0&&(h.style=l.styles.getDxfStyle(h.dxfId),delete h.dxfId)})})}}},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(e,n,o){const s=e("../../composite-xform"),i=e("../../style/color-xform"),c=e("./cfvo-xform");n.exports=class extends s{constructor(){super(),this.map={cfvo:this.cfvoXform=new c,color:this.colorXform=new i}}get tag(){return"dataBar"}render(l,a){l.openNode(this.tag),a.cfvo.forEach(h=>{this.cfvoXform.render(l,h)}),this.colorXform.render(l,a.color),l.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(l,a){switch(l){case"cfvo":this.model.cfvo.push(a.model);break;case"color":this.model.color=a.model}}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(e,n,o){const s=e("../../base-xform"),i=e("../../composite-xform");class c extends s{get tag(){return"x14:id"}render(h,u){h.leafNode(this.tag,null,u)}parseOpen(){this.model=""}parseText(h){this.model+=h}parseClose(h){return h!==this.tag}}class l extends i{constructor(){super(),this.map={"x14:id":this.idXform=new c}}get tag(){return"ext"}render(h,u){h.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(h,u.x14Id),h.closeNode()}createNewModel(){return{}}onParserClose(h,u){this.model.x14Id=u.model}}n.exports=class extends i{constructor(){super(),this.map={ext:new l}}get tag(){return"extLst"}render(a,h){a.openNode(this.tag),this.map.ext.render(a,h),a.closeNode()}createNewModel(){return{}}onParserClose(a,h){Object.assign(this.model,h.model)}}},{"../../base-xform":32,"../../composite-xform":48}],90:[function(e,n,o){const s=e("../../base-xform");n.exports=class extends s{get tag(){return"formula"}render(i,c){i.leafNode(this.tag,null,c)}parseOpen(){this.model=""}parseText(i){this.model+=i}parseClose(i){return i!==this.tag}}},{"../../base-xform":32}],91:[function(e,n,o){const s=e("../../base-xform"),i=e("../../composite-xform"),c=e("./cfvo-xform");n.exports=class extends i{constructor(){super(),this.map={cfvo:this.cfvoXform=new c}}get tag(){return"iconSet"}render(l,a){l.openNode(this.tag,{iconSet:s.toStringAttribute(a.iconSet,"3TrafficLights"),reverse:s.toBoolAttribute(a.reverse,!1),showValue:s.toBoolAttribute(a.showValue,!0)}),a.cfvo.forEach(h=>{this.cfvoXform.render(l,h)}),l.closeNode()}createNewModel(l){let{attributes:a}=l;return{iconSet:s.toStringValue(a.iconSet,"3TrafficLights"),reverse:s.toBoolValue(a.reverse),showValue:s.toBoolValue(a.showValue),cfvo:[]}}onParserClose(l,a){this.model[l].push(a.model)}}},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(e,n,o){const s=e("../../../utils/utils"),i=e("../base-xform");n.exports=class extends i{get tag(){return"col"}prepare(c,l){const a=l.styles.addStyleModel(c.style||{});a&&(c.styleId=a)}render(c,l){c.openNode("col"),c.addAttribute("min",l.min),c.addAttribute("max",l.max),l.width&&c.addAttribute("width",l.width),l.styleId&&c.addAttribute("style",l.styleId),l.hidden&&c.addAttribute("hidden","1"),l.bestFit&&c.addAttribute("bestFit","1"),l.outlineLevel&&c.addAttribute("outlineLevel",l.outlineLevel),l.collapsed&&c.addAttribute("collapsed","1"),c.addAttribute("customWidth","1"),c.closeNode()}parseOpen(c){if(c.name==="col"){const l=this.model={min:parseInt(c.attributes.min||"0",10),max:parseInt(c.attributes.max||"0",10),width:c.attributes.width===void 0?void 0:parseFloat(c.attributes.width||"0")};return c.attributes.style&&(l.styleId=parseInt(c.attributes.style,10)),s.parseBoolean(c.attributes.hidden)&&(l.hidden=!0),s.parseBoolean(c.attributes.bestFit)&&(l.bestFit=!0),c.attributes.outlineLevel&&(l.outlineLevel=parseInt(c.attributes.outlineLevel,10)),s.parseBoolean(c.attributes.collapsed)&&(l.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(c,l){c.styleId&&(c.style=l.styles.getStyleModel(c.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(e,n,o){const s=e("../../../utils/under-dash"),i=e("../../../utils/utils"),c=e("../../../utils/col-cache"),l=e("../base-xform"),a=e("../../../doc/range");function h(f,d,m,p){const g=d[m];g!==void 0?f[m]=g:p!==void 0&&(f[m]=p)}function u(f,d,m,p){const g=d[m];g!==void 0&&(f[m]=i.parseBoolean(g))}n.exports=class extends l{get tag(){return"dataValidations"}render(f,d){const m=function(p){const g=s.map(p,(_,E)=>({address:E,dataValidation:_,marked:!1})).sort((_,E)=>s.strcmp(_.address,E.address)),v=s.keyBy(g,"address"),b=(_,E,O)=>{for(let j=0;j{if(!_.marked){const E=c.decodeEx(_.address);if(E.dimensions)return v[E.dimensions].marked=!0,{..._.dataValidation,sqref:_.address};let O=1,j=c.encodeAddress(E.row+O,E.col);for(;p[j]&&s.isEqual(_.dataValidation,p[j]);)O++,j=c.encodeAddress(E.row+O,E.col);let W=1;for(;b(E,O,E.col+W);)W++;for(let z=0;z1||W>1){const z=E.row+(O-1),U=E.col+(W-1);return{..._.dataValidation,sqref:`${_.address}:${c.encodeAddress(z,U)}`}}return{..._.dataValidation,sqref:_.address}}return null}).filter(Boolean)}(d);m.length&&(f.openNode("dataValidations",{count:m.length}),m.forEach(p=>{f.openNode("dataValidation"),p.type!=="any"&&(f.addAttribute("type",p.type),p.operator&&p.type!=="list"&&p.operator!=="between"&&f.addAttribute("operator",p.operator),p.allowBlank&&f.addAttribute("allowBlank","1")),p.showInputMessage&&f.addAttribute("showInputMessage","1"),p.promptTitle&&f.addAttribute("promptTitle",p.promptTitle),p.prompt&&f.addAttribute("prompt",p.prompt),p.showErrorMessage&&f.addAttribute("showErrorMessage","1"),p.errorStyle&&f.addAttribute("errorStyle",p.errorStyle),p.errorTitle&&f.addAttribute("errorTitle",p.errorTitle),p.error&&f.addAttribute("error",p.error),f.addAttribute("sqref",p.sqref),(p.formulae||[]).forEach((g,v)=>{f.openNode("formula"+(v+1)),p.type==="date"?f.writeText(i.dateToExcel(new Date(g))):f.writeText(g),f.closeNode()}),f.closeNode()}),f.closeNode())}parseOpen(f){switch(f.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=f.attributes.sqref;const d={type:f.attributes.type||"any",formulae:[]};switch(f.attributes.type&&u(d,f.attributes,"allowBlank"),u(d,f.attributes,"showInputMessage"),u(d,f.attributes,"showErrorMessage"),d.type){case"any":case"list":case"custom":break;default:h(d,f.attributes,"operator","between")}return h(d,f.attributes,"promptTitle"),h(d,f.attributes,"prompt"),h(d,f.attributes,"errorStyle"),h(d,f.attributes,"errorTitle"),h(d,f.attributes,"error"),this._dataValidation=d,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(f){this._formula&&this._formula.push(f)}parseClose(f){switch(f){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(d=>{d.includes(":")?new a(d).forEachAddress(m=>{this.model[m]=this._dataValidation}):this.model[d]=this._dataValidation}),!0;case"formula1":case"formula2":{let d=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":d=parseInt(d,10);break;case"decimal":d=parseFloat(d);break;case"date":d=i.excelToDate(parseFloat(d))}return this._dataValidation.formulae.push(d),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,n,o){const s=e("../base-xform");n.exports=class extends s{get tag(){return"dimension"}render(i,c){c&&i.leafNode("dimension",{ref:c})}parseOpen(i){return i.name==="dimension"&&(this.model=i.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(e,n,o){const s=e("../base-xform");n.exports=class extends s{get tag(){return"drawing"}render(i,c){c&&i.leafNode(this.tag,{"r:id":c.rId})}parseOpen(i){switch(i.name){case this.tag:return this.model={rId:i.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(e,n,o){const s=e("../composite-xform"),i=e("./cf-ext/conditional-formattings-ext-xform");class c extends s{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new i}}get tag(){return"ext"}hasContent(a){return this.conditionalFormattings.hasContent(a.conditionalFormattings)}prepare(a,h){this.conditionalFormattings.prepare(a.conditionalFormattings,h)}render(a,h){a.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(a,h.conditionalFormattings),a.closeNode()}createNewModel(){return{}}onParserClose(a,h){this.model[a]=h.model}}n.exports=class extends s{constructor(){super(),this.map={ext:this.ext=new c}}get tag(){return"extLst"}prepare(l,a){this.ext.prepare(l,a)}hasContent(l){return this.ext.hasContent(l)}render(l,a){this.hasContent(a)&&(l.openNode("extLst"),this.ext.render(l,a),l.closeNode())}createNewModel(){return{}}onParserClose(l,a){Object.assign(this.model,a.model)}}},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(e,n,o){const s=e("../base-xform");n.exports=class extends s{get tag(){return"headerFooter"}render(i,c){if(c){i.addRollback();let l=!1;i.openNode("headerFooter"),c.differentFirst&&(i.addAttribute("differentFirst","1"),l=!0),c.differentOddEven&&(i.addAttribute("differentOddEven","1"),l=!0),c.oddHeader&&typeof c.oddHeader=="string"&&(i.leafNode("oddHeader",null,c.oddHeader),l=!0),c.oddFooter&&typeof c.oddFooter=="string"&&(i.leafNode("oddFooter",null,c.oddFooter),l=!0),c.evenHeader&&typeof c.evenHeader=="string"&&(i.leafNode("evenHeader",null,c.evenHeader),l=!0),c.evenFooter&&typeof c.evenFooter=="string"&&(i.leafNode("evenFooter",null,c.evenFooter),l=!0),c.firstHeader&&typeof c.firstHeader=="string"&&(i.leafNode("firstHeader",null,c.firstHeader),l=!0),c.firstFooter&&typeof c.firstFooter=="string"&&(i.leafNode("firstFooter",null,c.firstFooter),l=!0),l?(i.closeNode(),i.commit()):i.rollback()}}parseOpen(i){switch(i.name){case"headerFooter":return this.model={},i.attributes.differentFirst&&(this.model.differentFirst=parseInt(i.attributes.differentFirst,0)===1),i.attributes.differentOddEven&&(this.model.differentOddEven=parseInt(i.attributes.differentOddEven,0)===1),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}parseText(i){switch(this.currentNode){case"oddHeader":this.model.oddHeader=i;break;case"oddFooter":this.model.oddFooter=i;break;case"evenHeader":this.model.evenHeader=i;break;case"evenFooter":this.model.evenFooter=i;break;case"firstHeader":this.model.firstHeader=i;break;case"firstFooter":this.model.firstFooter=i}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}},{"../base-xform":32}],98:[function(e,n,o){const s=e("../base-xform");n.exports=class extends s{get tag(){return"hyperlink"}render(i,c){this.isInternalLink(c)?i.leafNode("hyperlink",{ref:c.address,"r:id":c.rId,tooltip:c.tooltip,location:c.target}):i.leafNode("hyperlink",{ref:c.address,"r:id":c.rId,tooltip:c.tooltip})}parseOpen(i){return i.name==="hyperlink"&&(this.model={address:i.attributes.ref,rId:i.attributes["r:id"],tooltip:i.attributes.tooltip},i.attributes.location&&(this.model.target=i.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(i){return i.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(i.target)}}},{"../base-xform":32}],99:[function(e,n,o){const s=e("../base-xform");n.exports=class extends s{get tag(){return"mergeCell"}render(i,c){i.leafNode("mergeCell",{ref:c})}parseOpen(i){return i.name==="mergeCell"&&(this.model=i.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(e,n,o){const s=e("../../../utils/under-dash"),i=e("../../../doc/range"),c=e("../../../utils/col-cache"),l=e("../../../doc/enums");n.exports=class{constructor(){this.merges={}}add(a){if(this.merges[a.master])this.merges[a.master].expandToAddress(a.address);else{const h=`${a.master}:${a.address}`;this.merges[a.master]=new i(h)}}get mergeCells(){return s.map(this.merges,a=>a.range)}reconcile(a,h){s.each(a,u=>{const f=c.decode(u);for(let d=f.top;d<=f.bottom;d++){const m=h[d-1];for(let p=f.left;p<=f.right;p++){const g=m.cells[p-1];g?g.type===l.ValueType.Merge&&(g.master=f.tl):m.cells[p]={type:l.ValueType.Null,address:c.encodeAddress(d,p)}}}})}getMasterAddress(a){const h=this.hash[a];return h&&h.tl}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(e,n,o){const s=e("../base-xform"),i=c=>c!==void 0;n.exports=class extends s{get tag(){return"outlinePr"}render(c,l){return!(!l||!i(l.summaryBelow)&&!i(l.summaryRight))&&(c.leafNode(this.tag,{summaryBelow:i(l.summaryBelow)?Number(l.summaryBelow):void 0,summaryRight:i(l.summaryRight)?Number(l.summaryRight):void 0}),!0)}parseOpen(c){return c.name===this.tag&&(this.model={summaryBelow:i(c.attributes.summaryBelow)?!!Number(c.attributes.summaryBelow):void 0,summaryRight:i(c.attributes.summaryRight)?!!Number(c.attributes.summaryRight):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(e,n,o){const s=e("../base-xform");n.exports=class extends s{get tag(){return"brk"}render(i,c){i.leafNode("brk",c)}parseOpen(i){return i.name==="brk"&&(this.model=i.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(e,n,o){const s=e("../../../utils/under-dash"),i=e("../base-xform");n.exports=class extends i{get tag(){return"pageMargins"}render(c,l){if(l){const a={left:l.left,right:l.right,top:l.top,bottom:l.bottom,header:l.header,footer:l.footer};s.some(a,h=>h!==void 0)&&c.leafNode(this.tag,a)}}parseOpen(c){switch(c.name){case this.tag:return this.model={left:parseFloat(c.attributes.left||.7),right:parseFloat(c.attributes.right||.7),top:parseFloat(c.attributes.top||.75),bottom:parseFloat(c.attributes.bottom||.75),header:parseFloat(c.attributes.header||.3),footer:parseFloat(c.attributes.footer||.3)},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(e,n,o){const s=e("../base-xform");n.exports=class extends s{get tag(){return"pageSetUpPr"}render(i,c){return!(!c||!c.fitToPage)&&(i.leafNode(this.tag,{fitToPage:c.fitToPage?"1":void 0}),!0)}parseOpen(i){return i.name===this.tag&&(this.model={fitToPage:i.attributes.fitToPage==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(e,n,o){const s=e("../../../utils/under-dash"),i=e("../base-xform");function c(u){return u?"1":void 0}function l(u){switch(u){case"overThenDown":return u;default:return}}function a(u){switch(u){case"atEnd":case"asDisplyed":return u;default:return}}function h(u){switch(u){case"dash":case"blank":case"NA":return u;default:return}}n.exports=class extends i{get tag(){return"pageSetup"}render(u,f){if(f){const d={paperSize:f.paperSize,orientation:f.orientation,horizontalDpi:f.horizontalDpi,verticalDpi:f.verticalDpi,pageOrder:l(f.pageOrder),blackAndWhite:c(f.blackAndWhite),draft:c(f.draft),cellComments:a(f.cellComments),errors:h(f.errors),scale:f.scale,fitToWidth:f.fitToWidth,fitToHeight:f.fitToHeight,firstPageNumber:f.firstPageNumber,useFirstPageNumber:c(f.firstPageNumber),usePrinterDefaults:c(f.usePrinterDefaults),copies:f.copies};s.some(d,m=>m!==void 0)&&u.leafNode(this.tag,d)}}parseOpen(u){switch(u.name){case this.tag:return this.model={paperSize:(f=u.attributes.paperSize,f!==void 0?parseInt(f,10):void 0),orientation:u.attributes.orientation||"portrait",horizontalDpi:parseInt(u.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(u.attributes.verticalDpi||"4294967295",10),pageOrder:u.attributes.pageOrder||"downThenOver",blackAndWhite:u.attributes.blackAndWhite==="1",draft:u.attributes.draft==="1",cellComments:u.attributes.cellComments||"None",errors:u.attributes.errors||"displayed",scale:parseInt(u.attributes.scale||"100",10),fitToWidth:parseInt(u.attributes.fitToWidth||"1",10),fitToHeight:parseInt(u.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(u.attributes.firstPageNumber||"1",10),useFirstPageNumber:u.attributes.useFirstPageNumber==="1",usePrinterDefaults:u.attributes.usePrinterDefaults==="1",copies:parseInt(u.attributes.copies||"1",10)},!0;default:return!1}var f}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(e,n,o){const s=e("../base-xform");n.exports=class extends s{get tag(){return"picture"}render(i,c){c&&i.leafNode(this.tag,{"r:id":c.rId})}parseOpen(i){switch(i.name){case this.tag:return this.model={rId:i.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(e,n,o){const s=e("../../../utils/under-dash"),i=e("../base-xform");function c(l){return l?"1":void 0}n.exports=class extends i{get tag(){return"printOptions"}render(l,a){if(a){const h={headings:c(a.showRowColHeaders),gridLines:c(a.showGridLines),horizontalCentered:c(a.horizontalCentered),verticalCentered:c(a.verticalCentered)};s.some(h,u=>u!==void 0)&&l.leafNode(this.tag,h)}}parseOpen(l){switch(l.name){case this.tag:return this.model={showRowColHeaders:l.attributes.headings==="1",showGridLines:l.attributes.gridLines==="1",horizontalCentered:l.attributes.horizontalCentered==="1",verticalCentered:l.attributes.verticalCentered==="1"},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(e,n,o){const s=e("./page-breaks-xform"),i=e("../list-xform");n.exports=class extends i{constructor(){super({tag:"rowBreaks",count:!0,childXform:new s})}render(c,l){if(l&&l.length){c.openNode(this.tag,this.$),this.count&&(c.addAttribute(this.$count,l.length),c.addAttribute("manualBreakCount",l.length));const{childXform:a}=this;l.forEach(h=>{a.render(c,h)}),c.closeNode()}else this.empty&&c.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(e,n,o){const s=e("../base-xform"),i=e("../../../utils/utils"),c=e("./cell-xform");n.exports=class extends s{constructor(l){super(),this.maxItems=l&&l.maxItems,this.map={c:new c}}get tag(){return"row"}prepare(l,a){const h=a.styles.addStyleModel(l.style);h&&(l.styleId=h);const u=this.map.c;l.cells.forEach(f=>{u.prepare(f,a)})}render(l,a,h){l.openNode("row"),l.addAttribute("r",a.number),a.height&&(l.addAttribute("ht",a.height),l.addAttribute("customHeight","1")),a.hidden&&l.addAttribute("hidden","1"),a.min>0&&a.max>0&&a.min<=a.max&&l.addAttribute("spans",`${a.min}:${a.max}`),a.styleId&&(l.addAttribute("s",a.styleId),l.addAttribute("customFormat","1")),l.addAttribute("x14ac:dyDescent","0.25"),a.outlineLevel&&l.addAttribute("outlineLevel",a.outlineLevel),a.collapsed&&l.addAttribute("collapsed","1");const u=this.map.c;a.cells.forEach(f=>{u.render(l,f,h)}),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;if(l.name==="row"){this.numRowsSeen+=1;const a=l.attributes.spans?l.attributes.spans.split(":").map(u=>parseInt(u,10)):[void 0,void 0],h=this.model={number:parseInt(l.attributes.r,10),min:a[0],max:a[1],cells:[]};return l.attributes.s&&(h.styleId=parseInt(l.attributes.s,10)),i.parseBoolean(l.attributes.hidden)&&(h.hidden=!0),i.parseBoolean(l.attributes.bestFit)&&(h.bestFit=!0),l.attributes.ht&&(h.height=parseFloat(l.attributes.ht)),l.attributes.outlineLevel&&(h.outlineLevel=parseInt(l.attributes.outlineLevel,10)),i.parseBoolean(l.attributes.collapsed)&&(h.collapsed=!0),!0}return this.parser=this.map[l.name],!!this.parser&&(this.parser.parseOpen(l),!0)}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){if(this.parser){if(!this.parser.parseClose(l)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(l,a){l.style=l.styleId?a.styles.getStyleModel(l.styleId):{},l.styleId!==void 0&&(l.styleId=void 0);const h=this.map.c;l.cells.forEach(u=>{h.reconcile(u,a)})}}},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(e,n,o){const s=e("../../../utils/under-dash"),i=e("../base-xform");n.exports=class extends i{get tag(){return"sheetFormatPr"}render(c,l){if(l){const a={defaultRowHeight:l.defaultRowHeight,outlineLevelRow:l.outlineLevelRow,outlineLevelCol:l.outlineLevelCol,"x14ac:dyDescent":l.dyDescent};l.defaultColWidth&&(a.defaultColWidth=l.defaultColWidth),l.defaultRowHeight&&l.defaultRowHeight===15||(a.customHeight="1"),s.some(a,h=>h!==void 0)&&c.leafNode("sheetFormatPr",a)}}parseOpen(c){return c.name==="sheetFormatPr"&&(this.model={defaultRowHeight:parseFloat(c.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(c.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(c.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(c.attributes.outlineLevelCol||"0",10)},c.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(c.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(e,n,o){const s=e("../base-xform"),i=e("../style/color-xform"),c=e("./page-setup-properties-xform"),l=e("./outline-properties-xform");n.exports=class extends s{constructor(){super(),this.map={tabColor:new i("tabColor"),pageSetUpPr:new c,outlinePr:new l}}get tag(){return"sheetPr"}render(a,h){if(h){a.addRollback(),a.openNode("sheetPr");let u=!1;u=this.map.tabColor.render(a,h.tabColor)||u,u=this.map.pageSetUpPr.render(a,h.pageSetup)||u,u=this.map.outlinePr.render(a,h.outlineProperties)||u,u?(a.closeNode(),a.commit()):a.rollback()}}parseOpen(a){return this.parser?(this.parser.parseOpen(a),!0):a.name===this.tag?(this.reset(),!0):!!this.map[a.name]&&(this.parser=this.map[a.name],this.parser.parseOpen(a),!0)}parseText(a){return!!this.parser&&(this.parser.parseText(a),!0)}parseClose(a){return this.parser?(this.parser.parseClose(a)||(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,n,o){const s=e("../../../utils/under-dash"),i=e("../base-xform");function c(a,h){return a?h:void 0}function l(a,h){return a===h||void 0}n.exports=class extends i{get tag(){return"sheetProtection"}render(a,h){if(h){const u={sheet:c(h.sheet,"1"),selectLockedCells:h.selectLockedCells===!1?"1":void 0,selectUnlockedCells:h.selectUnlockedCells===!1?"1":void 0,formatCells:c(h.formatCells,"0"),formatColumns:c(h.formatColumns,"0"),formatRows:c(h.formatRows,"0"),insertColumns:c(h.insertColumns,"0"),insertRows:c(h.insertRows,"0"),insertHyperlinks:c(h.insertHyperlinks,"0"),deleteColumns:c(h.deleteColumns,"0"),deleteRows:c(h.deleteRows,"0"),sort:c(h.sort,"0"),autoFilter:c(h.autoFilter,"0"),pivotTables:c(h.pivotTables,"0")};h.sheet&&(u.algorithmName=h.algorithmName,u.hashValue=h.hashValue,u.saltValue=h.saltValue,u.spinCount=h.spinCount,u.objects=c(h.objects===!1,"1"),u.scenarios=c(h.scenarios===!1,"1")),s.some(u,f=>f!==void 0)&&a.leafNode(this.tag,u)}}parseOpen(a){switch(a.name){case this.tag:return this.model={sheet:l(a.attributes.sheet,"1"),objects:a.attributes.objects!=="1"&&void 0,scenarios:a.attributes.scenarios!=="1"&&void 0,selectLockedCells:a.attributes.selectLockedCells!=="1"&&void 0,selectUnlockedCells:a.attributes.selectUnlockedCells!=="1"&&void 0,formatCells:l(a.attributes.formatCells,"0"),formatColumns:l(a.attributes.formatColumns,"0"),formatRows:l(a.attributes.formatRows,"0"),insertColumns:l(a.attributes.insertColumns,"0"),insertRows:l(a.attributes.insertRows,"0"),insertHyperlinks:l(a.attributes.insertHyperlinks,"0"),deleteColumns:l(a.attributes.deleteColumns,"0"),deleteRows:l(a.attributes.deleteRows,"0"),sort:l(a.attributes.sort,"0"),autoFilter:l(a.attributes.autoFilter,"0"),pivotTables:l(a.attributes.pivotTables,"0")},a.attributes.algorithmName&&(this.model.algorithmName=a.attributes.algorithmName,this.model.hashValue=a.attributes.hashValue,this.model.saltValue=a.attributes.saltValue,this.model.spinCount=parseInt(a.attributes.spinCount,10)),!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(e,n,o){const s=e("../../../utils/col-cache"),i=e("../base-xform"),c={frozen:"frozen",frozenSplit:"frozen",split:"split"};n.exports=class extends i{get tag(){return"sheetView"}prepare(l){switch(l.state){case"frozen":case"split":break;default:l.state="normal"}}render(l,a){l.openNode("sheetView",{workbookViewId:a.workbookViewId||0});const h=function(p,g,v){v&&l.addAttribute(p,g)};let u,f,d,m;switch(h("rightToLeft","1",a.rightToLeft===!0),h("tabSelected","1",a.tabSelected),h("showRuler","0",a.showRuler===!1),h("showRowColHeaders","0",a.showRowColHeaders===!1),h("showGridLines","0",a.showGridLines===!1),h("zoomScale",a.zoomScale,a.zoomScale),h("zoomScaleNormal",a.zoomScaleNormal,a.zoomScaleNormal),h("view",a.style,a.style),a.state){case"frozen":f=a.xSplit||0,d=a.ySplit||0,u=a.topLeftCell||s.getAddress(d+1,f+1).address,m=(a.xSplit&&a.ySplit?"bottomRight":a.xSplit&&"topRight")||"bottomLeft",l.leafNode("pane",{xSplit:a.xSplit||void 0,ySplit:a.ySplit||void 0,topLeftCell:u,activePane:m,state:"frozen"}),l.leafNode("selection",{pane:m,activeCell:a.activeCell,sqref:a.activeCell});break;case"split":a.activePane==="topLeft"&&(a.activePane=void 0),l.leafNode("pane",{xSplit:a.xSplit||void 0,ySplit:a.ySplit||void 0,topLeftCell:a.topLeftCell,activePane:a.activePane}),l.leafNode("selection",{pane:a.activePane,activeCell:a.activeCell,sqref:a.activeCell});break;case"normal":a.activeCell&&l.leafNode("selection",{activeCell:a.activeCell,sqref:a.activeCell})}l.closeNode()}parseOpen(l){switch(l.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(l.attributes.workbookViewId,10),rightToLeft:l.attributes.rightToLeft==="1",tabSelected:l.attributes.tabSelected==="1",showRuler:l.attributes.showRuler!=="0",showRowColHeaders:l.attributes.showRowColHeaders!=="0",showGridLines:l.attributes.showGridLines!=="0",zoomScale:parseInt(l.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(l.attributes.zoomScaleNormal||"100",10),style:l.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(l.attributes.xSplit||"0",10),ySplit:parseInt(l.attributes.ySplit||"0",10),topLeftCell:l.attributes.topLeftCell,activePane:l.attributes.activePane||"topLeft",state:l.attributes.state},!0;case"selection":{const a=l.attributes.pane||"topLeft";return this.selections[a]={pane:a,activeCell:l.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(l){let a,h;switch(l){case"sheetView":return this.sheetView&&this.pane?(a=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:c[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"&&(a.activePane=this.pane.activePane),h=this.selections[this.pane.activePane],h&&h.activeCell&&(a.activeCell=h.activeCell),this.sheetView.style&&(a.style=this.sheetView.style)):(a=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},h=this.selections.topLeft,h&&h.activeCell&&(a.activeCell=h.activeCell),this.sheetView.style&&(a.style=this.sheetView.style)),!1;default:return!0}}reconcile(){}}},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(e,n,o){const s=e("../base-xform");n.exports=class extends s{get tag(){return"tablePart"}render(i,c){c&&i.leafNode(this.tag,{"r:id":c.rId})}parseOpen(i){switch(i.name){case this.tag:return this.model={rId:i.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(e,n,o){const s=e("../../../utils/under-dash"),i=e("../../../utils/col-cache"),c=e("../../../utils/xml-stream"),l=e("../../rel-type"),a=e("./merges"),h=e("../base-xform"),u=e("../list-xform"),f=e("./row-xform"),d=e("./col-xform"),m=e("./dimension-xform"),p=e("./hyperlink-xform"),g=e("./merge-cell-xform"),v=e("./data-validations-xform"),b=e("./sheet-properties-xform"),_=e("./sheet-format-properties-xform"),E=e("./sheet-view-xform"),O=e("./sheet-protection-xform"),j=e("./page-margins-xform"),W=e("./page-setup-xform"),z=e("./print-options-xform"),U=e("./auto-filter-xform"),K=e("./picture-xform"),Y=e("./drawing-xform"),G=e("./table-part-xform"),R=e("./row-breaks-xform"),D=e("./header-footer-xform"),k=e("./cf/conditional-formattings-xform"),x=e("./ext-lst-xform"),S=(T,M)=>{if(!M||!M.length)return T;if(!T||!T.length)return M;const N={},F={};return T.forEach(Z=>{N[Z.ref]=Z,Z.rules.forEach(H=>{const{x14Id:ee}=H;ee&&(F[ee]=H)})}),M.forEach(Z=>{Z.rules.forEach(H=>{const ee=F[H.x14Id];ee?((B,J)=>{Object.keys(J).forEach(I=>{const $=B[I],X=J[I];$===void 0&&X!==void 0&&(B[I]=X)})})(ee,H):N[Z.ref]?N[Z.ref].rules.push(H):T.push({ref:Z.ref,rules:[H]})})}),T};class C extends h{constructor(M){super();const{maxRows:N,maxCols:F,ignoreNodes:Z}=M||{};this.ignoreNodes=Z||[],this.map={sheetPr:new b,dimension:new m,sheetViews:new u({tag:"sheetViews",count:!1,childXform:new E}),sheetFormatPr:new _,cols:new u({tag:"cols",count:!1,childXform:new d}),sheetData:new u({tag:"sheetData",count:!1,empty:!0,childXform:new f({maxItems:F}),maxItems:N}),autoFilter:new U,mergeCells:new u({tag:"mergeCells",count:!0,childXform:new g}),rowBreaks:new R,hyperlinks:new u({tag:"hyperlinks",count:!1,childXform:new p}),pageMargins:new j,dataValidations:new v,pageSetup:new W,headerFooter:new D,printOptions:new z,picture:new K,drawing:new Y,sheetProtection:new O,tableParts:new u({tag:"tableParts",count:!0,childXform:new G}),conditionalFormatting:new k,extLst:new x}}prepare(M,N){N.merges=new a,M.hyperlinks=N.hyperlinks=[],M.comments=N.comments=[],N.formulae={},N.siFormulae=0,this.map.cols.prepare(M.cols,N),this.map.sheetData.prepare(M.rows,N),this.map.conditionalFormatting.prepare(M.conditionalFormattings,N),M.mergeCells=N.merges.mergeCells;const F=M.rels=[];function Z(B){return"rId"+(B.length+1)}if(M.hyperlinks.forEach(B=>{const J=Z(F);B.rId=J,F.push({Id:J,Type:l.Hyperlink,Target:B.target,TargetMode:"External"})}),M.comments.length>0){const B={Id:Z(F),Type:l.Comments,Target:`../comments${M.id}.xml`};F.push(B);const J={Id:Z(F),Type:l.VmlDrawing,Target:`../drawings/vmlDrawing${M.id}.vml`};F.push(J),M.comments.forEach(I=>{I.refAddress=i.decodeAddress(I.ref)}),N.commentRefs.push({commentName:"comments"+M.id,vmlDrawing:"vmlDrawing"+M.id})}const H=[];let ee;M.media.forEach(B=>{if(B.type==="background"){const J=Z(F);ee=N.media[B.imageId],F.push({Id:J,Type:l.Image,Target:`../media/${ee.name}.${ee.extension}`}),M.background={rId:J},M.image=N.media[B.imageId]}else if(B.type==="image"){let{drawing:J}=M;ee=N.media[B.imageId],J||(J=M.drawing={rId:Z(F),name:"drawing"+ ++N.drawingsCount,anchors:[],rels:[]},N.drawings.push(J),F.push({Id:J.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${J.name}.xml`}));let I=this.preImageId===B.imageId?H[B.imageId]:H[J.rels.length];I||(I=Z(J.rels),H[J.rels.length]=I,J.rels.push({Id:I,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${ee.name}.${ee.extension}`}));const $={picture:{rId:I},range:B.range};if(B.hyperlinks&&B.hyperlinks.hyperlink){const X=Z(J.rels);H[J.rels.length]=X,$.picture.hyperlinks={tooltip:B.hyperlinks.tooltip,rId:X},J.rels.push({Id:X,Type:l.Hyperlink,Target:B.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=B.imageId,J.anchors.push($)}}),M.tables.forEach(B=>{const J=Z(F);B.rId=J,F.push({Id:J,Type:l.Table,Target:"../tables/"+B.target}),B.columns.forEach(I=>{const{style:$}=I;$&&(I.dxfId=N.styles.addDxfStyle($))})}),this.map.extLst.prepare(M,N)}render(M,N){M.openXml(c.StdDocAttributes),M.openNode("worksheet",C.WORKSHEET_ATTRIBUTES);const F=N.properties?{defaultRowHeight:N.properties.defaultRowHeight,dyDescent:N.properties.dyDescent,outlineLevelCol:N.properties.outlineLevelCol,outlineLevelRow:N.properties.outlineLevelRow}:void 0;N.properties&&N.properties.defaultColWidth&&(F.defaultColWidth=N.properties.defaultColWidth);const Z={outlineProperties:N.properties&&N.properties.outlineProperties,tabColor:N.properties&&N.properties.tabColor,pageSetup:N.pageSetup&&N.pageSetup.fitToPage?{fitToPage:N.pageSetup.fitToPage}:void 0},H=N.pageSetup&&N.pageSetup.margins,ee={showRowColHeaders:N.pageSetup&&N.pageSetup.showRowColHeaders,showGridLines:N.pageSetup&&N.pageSetup.showGridLines,horizontalCentered:N.pageSetup&&N.pageSetup.horizontalCentered,verticalCentered:N.pageSetup&&N.pageSetup.verticalCentered},B=N.sheetProtection;this.map.sheetPr.render(M,Z),this.map.dimension.render(M,N.dimensions),this.map.sheetViews.render(M,N.views),this.map.sheetFormatPr.render(M,F),this.map.cols.render(M,N.cols),this.map.sheetData.render(M,N.rows),this.map.sheetProtection.render(M,B),this.map.autoFilter.render(M,N.autoFilter),this.map.mergeCells.render(M,N.mergeCells),this.map.conditionalFormatting.render(M,N.conditionalFormattings),this.map.dataValidations.render(M,N.dataValidations),this.map.hyperlinks.render(M,N.hyperlinks),this.map.printOptions.render(M,ee),this.map.pageMargins.render(M,H),this.map.pageSetup.render(M,N.pageSetup),this.map.headerFooter.render(M,N.headerFooter),this.map.rowBreaks.render(M,N.rowBreaks),this.map.drawing.render(M,N.drawing),this.map.picture.render(M,N.background),this.map.tableParts.render(M,N.tables),this.map.extLst.render(M,N),N.rels&&N.rels.forEach(J=>{J.Type===l.VmlDrawing&&M.leafNode("legacyDrawing",{"r:id":J.Id})}),M.closeNode()}parseOpen(M){return this.parser?(this.parser.parseOpen(M),!0):M.name==="worksheet"?(s.each(this.map,N=>{N.reset()}),!0):(this.map[M.name]&&!this.ignoreNodes.includes(M.name)&&(this.parser=this.map[M.name],this.parser.parseOpen(M)),!0)}parseText(M){this.parser&&this.parser.parseText(M)}parseClose(M){if(this.parser)return this.parser.parseClose(M)||(this.parser=void 0),!0;switch(M){case"worksheet":{const N=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(N.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(N.outlineProperties=this.map.sheetPr.model.outlineProperties);const F={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},Z=Object.assign(F,this.map.pageSetup.model,this.map.printOptions.model),H=S(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:N,views:this.map.sheetViews.model,pageSetup:Z,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:H},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(M,N){const F=(M.relationships||[]).reduce((H,ee)=>{if(H[ee.Id]=ee,ee.Type===l.Comments&&(M.comments=N.comments[ee.Target].comments),ee.Type===l.VmlDrawing&&M.comments&&M.comments.length){const B=N.vmlDrawings[ee.Target].comments;M.comments.forEach((J,I)=>{J.note=Object.assign({},J.note,B[I])})}return H},{});if(N.commentsMap=(M.comments||[]).reduce((H,ee)=>(ee.ref&&(H[ee.ref]=ee),H),{}),N.hyperlinkMap=(M.hyperlinks||[]).reduce((H,ee)=>(ee.rId&&(H[ee.address]=F[ee.rId].Target),H),{}),N.formulae={},M.rows=M.rows&&M.rows.filter(Boolean)||[],M.rows.forEach(H=>{H.cells=H.cells&&H.cells.filter(Boolean)||[]}),this.map.cols.reconcile(M.cols,N),this.map.sheetData.reconcile(M.rows,N),this.map.conditionalFormatting.reconcile(M.conditionalFormattings,N),M.media=[],M.drawing){const H=F[M.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(H){const ee=H[1];N.drawings[ee].anchors.forEach(B=>{if(B.medium){const J={type:"image",imageId:B.medium.index,range:B.range,hyperlinks:B.picture.hyperlinks};M.media.push(J)}})}}const Z=M.background&&F[M.background.rId];if(Z){const H=Z.Target.split("/media/")[1],ee=N.mediaIndex&&N.mediaIndex[H];ee!==void 0&&M.media.push({type:"background",imageId:ee})}M.tables=(M.tables||[]).map(H=>{const ee=F[H.rId];return N.tables[ee.Target]}),delete M.relationships,delete M.hyperlinks,delete M.comments}}C.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"},n.exports=C},{"../../../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,n,o){const s=e("../base-xform");n.exports=class extends s{constructor(i){super(),this.tag=i.tag,this.attr=i.attr}render(i,c){c&&(i.openNode(this.tag),i.closeNode())}parseOpen(i){i.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(e,n,o){const s=e("../base-xform");n.exports=class extends s{constructor(i){super(),this.tag=i.tag,this.attr=i.attr,this.attrs=i.attrs,this._format=i.format||function(c){try{return Number.isNaN(c.getTime())?"":c.toISOString()}catch{return""}},this._parse=i.parse||function(c){return new Date(c)}}render(i,c){c&&(i.openNode(this.tag),this.attrs&&i.addAttributes(this.attrs),this.attr?i.addAttribute(this.attr,this._format(c)):i.writeText(this._format(c)),i.closeNode())}parseOpen(i){i.name===this.tag&&(this.attr?this.model=this._parse(i.attributes[this.attr]):this.text=[])}parseText(i){this.attr||this.text.push(i)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},{"../base-xform":32}],118:[function(e,n,o){const s=e("../base-xform");n.exports=class extends s{constructor(i){super(),this.tag=i.tag,this.attr=i.attr,this.attrs=i.attrs,this.zero=i.zero}render(i,c){(c||this.zero)&&(i.openNode(this.tag),this.attrs&&i.addAttributes(this.attrs),this.attr?i.addAttribute(this.attr,c):i.writeText(c),i.closeNode())}parseOpen(i){return i.name===this.tag&&(this.attr?this.model=parseInt(i.attributes[this.attr],10):this.text=[],!0)}parseText(i){this.attr||this.text.push(i)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},{"../base-xform":32}],119:[function(e,n,o){const s=e("../base-xform");n.exports=class extends s{constructor(i){super(),this.tag=i.tag,this.attr=i.attr,this.attrs=i.attrs}render(i,c){c!==void 0&&(i.openNode(this.tag),this.attrs&&i.addAttributes(this.attrs),this.attr?i.addAttribute(this.attr,c):i.writeText(c),i.closeNode())}parseOpen(i){i.name===this.tag&&(this.attr?this.model=i.attributes[this.attr]:this.text=[])}parseText(i){this.attr||this.text.push(i)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},{"../base-xform":32}],120:[function(e,n,o){const s=e("./base-xform"),i=e("../../utils/xml-stream");n.exports=class extends s{constructor(c){super(),this._model=c}render(c){if(!this._xml){const l=new i;(function a(h,u){h.openNode(u.tag,u.$),u.c&&u.c.forEach(f=>{a(h,f)}),u.t&&h.writeText(u.t),h.closeNode()})(l,this._model),this._xml=l.xml}c.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(c){switch(c){case this._model.tag:return!1;default:return!0}}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(e,n,o){const s=e("./text-xform"),i=e("./rich-text-xform"),c=e("../base-xform");n.exports=class extends c{constructor(){super(),this.map={r:new i,t:new s}}get tag(){return"rPh"}render(l,a){if(l.openNode(this.tag,{sb:a.sb||0,eb:a.eb||0}),a&&a.hasOwnProperty("richText")&&a.richText){const{r:h}=this.map;a.richText.forEach(u=>{h.render(l,u)})}else a&&this.map.t.render(l,a.text);l.closeNode()}parseOpen(l){const{name:a}=l;return this.parser?(this.parser.parseOpen(l),!0):a===this.tag?(this.model={sb:parseInt(l.attributes.sb,10),eb:parseInt(l.attributes.eb,10)},!0):(this.parser=this.map[a],!!this.parser&&(this.parser.parseOpen(l),!0))}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){if(this.parser){if(!this.parser.parseClose(l)){switch(l){case"r":{let a=this.model.richText;a||(a=this.model.richText=[]),a.push(this.parser.model);break}case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}switch(l){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(e,n,o){const s=e("./text-xform"),i=e("../style/font-xform"),c=e("../base-xform");class l extends c{constructor(h){super(),this.model=h}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new s)}get fontXform(){return this._fontXform||(this._fontXform=new i(l.FONT_OPTIONS))}render(h,u){u=u||this.model,h.openNode("r"),u.font&&this.fontXform.render(h,u.font),this.textXform.render(h,u.text),h.closeNode()}parseOpen(h){if(this.parser)return this.parser.parseOpen(h),!0;switch(h.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(h),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(h),!0;default:return!1}}parseText(h){this.parser&&this.parser.parseText(h)}parseClose(h){switch(h){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(h),!0}}}l.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},n.exports=l},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(e,n,o){const s=e("./text-xform"),i=e("./rich-text-xform"),c=e("./phonetic-text-xform"),l=e("../base-xform");n.exports=class extends l{constructor(a){super(),this.model=a,this.map={r:new i,t:new s,rPh:new c}}get tag(){return"si"}render(a,h){a.openNode(this.tag),h&&h.hasOwnProperty("richText")&&h.richText?h.richText.length?h.richText.forEach(u=>{this.map.r.render(a,u)}):this.map.t.render(a,""):h!=null&&this.map.t.render(a,h),a.closeNode()}parseOpen(a){const{name:h}=a;return this.parser?(this.parser.parseOpen(a),!0):h===this.tag?(this.model={},!0):(this.parser=this.map[h],!!this.parser&&(this.parser.parseOpen(a),!0))}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser){if(!this.parser.parseClose(a)){switch(a){case"r":{let h=this.model.richText;h||(h=this.model.richText=[]),h.push(this.parser.model);break}case"t":this.model=this.parser.model}this.parser=void 0}return!0}switch(a){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,n,o){const s=e("../../../utils/xml-stream"),i=e("../base-xform"),c=e("./shared-string-xform");n.exports=class extends i{constructor(l){super(),this.model=l||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new c)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(l){return this.model.values[l]}add(l){return l.richText?this.addRichText(l):this.addText(l)}addText(l){let a=this.hash[l];return a===void 0&&(a=this.hash[l]=this.model.values.length,this.model.values.push(l)),this.model.count++,a}addRichText(l){const a=this.sharedStringXform.toXml(l);let h=this.rich[a];return h===void 0&&(h=this.rich[a]=this.model.values.length,this.model.values.push(l)),this.model.count++,h}render(l,a){a=a||this._values,l.openXml(s.StdDocAttributes),l.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:a.count,uniqueCount:a.values.length});const h=this.sharedStringXform;a.values.forEach(u=>{h.render(l,u)}),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(l),!0;default:throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(l))}}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;switch(l){case"sst":return!1;default:throw new Error("Unexpected xml node in parseClose: "+l)}}}},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(e,n,o){const s=e("../base-xform");n.exports=class extends s{get tag(){return"t"}render(i,c){i.openNode("t"),/^\s|\n|\s$/.test(c)&&i.addAttribute("xml:space","preserve"),i.writeText(c),i.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(i,c)=>String.fromCharCode(parseInt(c,16)))}parseOpen(i){switch(i.name){case"t":return this._text=[],!0;default:return!1}}parseText(i){this._text.push(i)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(e,n,o){const s=e("../../../doc/enums"),i=e("../../../utils/utils"),c=e("../base-xform"),l={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((h,u)=>(h[u]=!0,h),{}),horizontal(h){return this.horizontalValues[h]?h:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((h,u)=>(h[u]=!0,h),{}),vertical(h){return h==="middle"?"center":this.verticalValues[h]?h:void 0},wrapText:h=>!!h||void 0,shrinkToFit:h=>!!h||void 0,textRotation(h){switch(h){case"vertical":return h;default:return(h=i.validInt(h))>=-90&&h<=90?h:void 0}},indent:h=>(h=i.validInt(h),Math.max(0,h)),readingOrder(h){switch(h){case"ltr":return s.ReadingOrder.LeftToRight;case"rtl":return s.ReadingOrder.RightToLeft;default:return}}},a={toXml(h){if(h=l.textRotation(h)){if(h==="vertical")return 255;const u=Math.round(h);if(u>=0&&u<=90)return u;if(u<0&&u>=-90)return 90-u}},toModel(h){const u=i.validInt(h);if(u!==void 0){if(u===255)return"vertical";if(u>=0&&u<=90)return u;if(u>90&&u<=180)return 90-u}}};n.exports=class extends c{get tag(){return"alignment"}render(h,u){h.addRollback(),h.openNode("alignment");let f=!1;function d(m,p){p&&(h.addAttribute(m,p),f=!0)}d("horizontal",l.horizontal(u.horizontal)),d("vertical",l.vertical(u.vertical)),d("wrapText",!!l.wrapText(u.wrapText)&&"1"),d("shrinkToFit",!!l.shrinkToFit(u.shrinkToFit)&&"1"),d("indent",l.indent(u.indent)),d("textRotation",a.toXml(u.textRotation)),d("readingOrder",l.readingOrder(u.readingOrder)),h.closeNode(),f?h.commit():h.rollback()}parseOpen(h){const u={};let f=!1;function d(m,p,g){m&&(u[p]=g,f=!0)}d(h.attributes.horizontal,"horizontal",h.attributes.horizontal),d(h.attributes.vertical,"vertical",h.attributes.vertical==="center"?"middle":h.attributes.vertical),d(h.attributes.wrapText,"wrapText",i.parseBoolean(h.attributes.wrapText)),d(h.attributes.shrinkToFit,"shrinkToFit",i.parseBoolean(h.attributes.shrinkToFit)),d(h.attributes.indent,"indent",parseInt(h.attributes.indent,10)),d(h.attributes.textRotation,"textRotation",a.toModel(h.attributes.textRotation)),d(h.attributes.readingOrder,"readingOrder",h.attributes.readingOrder==="2"?"rtl":"ltr"),this.model=f?u:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(e,n,o){const s=e("../base-xform"),i=e("../../../utils/utils"),c=e("./color-xform");class l extends s{constructor(h){super(),this.name=h,this.map={color:new c}}get tag(){return this.name}render(h,u,f){const d=u&&u.color||f||this.defaultColor;h.openNode(this.name),u&&u.style&&(h.addAttribute("style",u.style),d&&this.map.color.render(h,d)),h.closeNode()}parseOpen(h){if(this.parser)return this.parser.parseOpen(h),!0;switch(h.name){case this.name:{const{style:u}=h.attributes;return this.model=u?{style:u}:void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(h),!0;default:return!1}}parseText(h){this.parser&&this.parser.parseText(h)}parseClose(h){return this.parser?(this.parser.parseClose(h)||(this.parser=void 0),!0):(h===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(h){return l.validStyleValues[h]}}l.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((a,h)=>(a[h]=!0,a),{}),n.exports=class extends s{constructor(){super(),this.map={top:new l("top"),left:new l("left"),bottom:new l("bottom"),right:new l("right"),diagonal:new l("diagonal")}}render(a,h){const{color:u}=h;function f(d,m){d&&!d.color&&h.color&&(d={...d,color:h.color}),m.render(a,d,u)}a.openNode("border"),h.diagonal&&h.diagonal.style&&(h.diagonal.up&&a.addAttribute("diagonalUp","1"),h.diagonal.down&&a.addAttribute("diagonalDown","1")),f(h.left,this.map.left),f(h.right,this.map.right),f(h.top,this.map.top),f(h.bottom,this.map.bottom),f(h.diagonal,this.map.diagonal),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case"border":return this.reset(),this.diagonalUp=i.parseBoolean(a.attributes.diagonalUp),this.diagonalDown=i.parseBoolean(a.attributes.diagonalDown),!0;default:return this.parser=this.map[a.name],!!this.parser&&(this.parser.parseOpen(a),!0)}}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.parser=void 0),!0;if(a==="border"){const h=this.model={},u=function(f,d,m){d&&(m&&Object.assign(d,m),h[f]=d)};u("left",this.map.left.model),u("right",this.map.right.model),u("top",this.map.top.model),u("bottom",this.map.bottom.model),u("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,n,o){const s=e("../base-xform");n.exports=class extends s{constructor(i){super(),this.name=i||"color"}get tag(){return this.name}render(i,c){return!!c&&(i.openNode(this.name),c.argb?i.addAttribute("rgb",c.argb):c.theme!==void 0?(i.addAttribute("theme",c.theme),c.tint!==void 0&&i.addAttribute("tint",c.tint)):c.indexed!==void 0?i.addAttribute("indexed",c.indexed):i.addAttribute("auto","1"),i.closeNode(),!0)}parseOpen(i){return i.name===this.name&&(i.attributes.rgb?this.model={argb:i.attributes.rgb}:i.attributes.theme?(this.model={theme:parseInt(i.attributes.theme,10)},i.attributes.tint&&(this.model.tint=parseFloat(i.attributes.tint))):i.attributes.indexed?this.model={indexed:parseInt(i.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(e,n,o){const s=e("../base-xform"),i=e("./alignment-xform"),c=e("./border-xform"),l=e("./fill-xform"),a=e("./font-xform"),h=e("./numfmt-xform"),u=e("./protection-xform");n.exports=class extends s{constructor(){super(),this.map={alignment:new i,border:new c,fill:new l,font:new a,numFmt:new h,protection:new u}}get tag(){return"dxf"}render(f,d){if(f.openNode(this.tag),d.font&&this.map.font.render(f,d.font),d.numFmt&&d.numFmtId){const m={id:d.numFmtId,formatCode:d.numFmt};this.map.numFmt.render(f,m)}d.fill&&this.map.fill.render(f,d.fill),d.alignment&&this.map.alignment.render(f,d.alignment),d.border&&this.map.border.render(f,d.border),d.protection&&this.map.protection.render(f,d.protection),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case this.tag:return this.reset(),!0;default:return this.parser=this.map[f.name],this.parser&&this.parser.parseOpen(f),!0}}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){return this.parser?(this.parser.parseClose(f)||(this.parser=void 0),!0):f!==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,n,o){const s=e("../base-xform"),i=e("./color-xform");class c extends s{constructor(){super(),this.map={color:new i}}get tag(){return"stop"}render(f,d){f.openNode("stop"),f.addAttribute("position",d.position),this.map.color.render(f,d.color),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"stop":return this.model={position:parseFloat(f.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(f),!0;default:return!1}}parseText(){}parseClose(f){return!!this.parser&&(this.parser.parseClose(f)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class l extends s{constructor(){super(),this.map={fgColor:new i("fgColor"),bgColor:new i("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(f,d){f.openNode("patternFill"),f.addAttribute("patternType",d.pattern),d.fgColor&&this.map.fgColor.render(f,d.fgColor),d.bgColor&&this.map.bgColor.render(f,d.bgColor),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"patternFill":return this.model={type:"pattern",pattern:f.attributes.patternType},!0;default:return this.parser=this.map[f.name],!!this.parser&&(this.parser.parseOpen(f),!0)}}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){return!!this.parser&&(this.parser.parseClose(f)||(this.parser.model&&(this.model[f]=this.parser.model),this.parser=void 0),!0)}}class a extends s{constructor(){super(),this.map={stop:new c}}get name(){return"gradient"}get tag(){return"gradientFill"}render(f,d){switch(f.openNode("gradientFill"),d.gradient){case"angle":f.addAttribute("degree",d.degree);break;case"path":f.addAttribute("type","path"),d.center.left&&(f.addAttribute("left",d.center.left),d.center.right===void 0&&f.addAttribute("right",d.center.left)),d.center.right&&f.addAttribute("right",d.center.right),d.center.top&&(f.addAttribute("top",d.center.top),d.center.bottom===void 0&&f.addAttribute("bottom",d.center.top)),d.center.bottom&&f.addAttribute("bottom",d.center.bottom)}const m=this.map.stop;d.stops.forEach(p=>{m.render(f,p)}),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"gradientFill":{const d=this.model={stops:[]};return f.attributes.degree?(d.gradient="angle",d.degree=parseInt(f.attributes.degree,10)):f.attributes.type==="path"&&(d.gradient="path",d.center={left:f.attributes.left?parseFloat(f.attributes.left):0,top:f.attributes.top?parseFloat(f.attributes.top):0},f.attributes.right!==f.attributes.left&&(d.center.right=f.attributes.right?parseFloat(f.attributes.right):0),f.attributes.bottom!==f.attributes.top&&(d.center.bottom=f.attributes.bottom?parseFloat(f.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen(f),!0;default:return!1}}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){return!!this.parser&&(this.parser.parseClose(f)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class h extends s{constructor(){super(),this.map={patternFill:new l,gradientFill:new a}}get tag(){return"fill"}render(f,d){switch(f.addRollback(),f.openNode("fill"),d.type){case"pattern":this.map.patternFill.render(f,d);break;case"gradient":this.map.gradientFill.render(f,d);break;default:return void f.rollback()}f.closeNode(),f.commit()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"fill":return this.model={},!0;default:return this.parser=this.map[f.name],!!this.parser&&(this.parser.parseOpen(f),!0)}}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){return!!this.parser&&(this.parser.parseClose(f)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(f){return h.validPatternValues[f]}}h.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((u,f)=>(u[f]=!0,u),{}),h.StopXform=c,h.PatternFillXform=l,h.GradientFillXform=a,n.exports=h},{"../base-xform":32,"./color-xform":128}],131:[function(e,n,o){const s=e("./color-xform"),i=e("../simple/boolean-xform"),c=e("../simple/integer-xform"),l=e("../simple/string-xform"),a=e("./underline-xform"),h=e("../../../utils/under-dash"),u=e("../base-xform");class f extends u{constructor(m){super(),this.options=m||f.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 a},charset:{prop:"charset",xform:new c({tag:"charset",attr:"val"})},color:{prop:"color",xform:new s},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 c({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new i({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new l({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new l({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 c({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new l({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(m,p){const{map:g}=this;m.openNode(this.options.tagName),h.each(this.map,(v,b)=>{g[b].xform.render(m,p[v.prop])}),m.closeNode()}parseOpen(m){if(this.parser)return this.parser.parseOpen(m),!0;if(this.map[m.name])return this.parser=this.map[m.name].xform,this.parser.parseOpen(m);switch(m.name){case this.options.tagName:return this.model={},!0;default:return!1}}parseText(m){this.parser&&this.parser.parseText(m)}parseClose(m){if(this.parser&&!this.parser.parseClose(m)){const p=this.map[m];return this.parser.model&&(this.model[p.prop]=this.parser.model),this.parser=void 0,!0}switch(m){case this.options.tagName:return!1;default:return!0}}}f.OPTIONS={tagName:"font",fontNameTag:"name"},n.exports=f},{"../../../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,n,o){const s=e("../../../utils/under-dash"),i=e("../../defaultnumformats"),c=e("../base-xform"),l=function(){const h={};return s.each(i,(u,f)=>{u.f&&(h[u.f]=parseInt(f,10))}),h}();class a extends c{constructor(u,f){super(),this.id=u,this.formatCode=f}get tag(){return"numFmt"}render(u,f){u.leafNode("numFmt",{numFmtId:f.id,formatCode:f.formatCode})}parseOpen(u){switch(u.name){case"numFmt":return this.model={id:parseInt(u.attributes.numFmtId,10),formatCode:u.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0;default:return!1}}parseText(){}parseClose(){return!1}}a.getDefaultFmtId=function(h){return l[h]},a.getDefaultFmtCode=function(h){return i[h]&&i[h].f},n.exports=a},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(e,n,o){const s=e("../base-xform"),i={boolean:(c,l)=>c===void 0?l:c};n.exports=class extends s{get tag(){return"protection"}render(c,l){c.addRollback(),c.openNode("protection");let a=!1;function h(u,f){f!==void 0&&(c.addAttribute(u,f),a=!0)}h("locked",i.boolean(l.locked,!0)?void 0:"0"),h("hidden",i.boolean(l.hidden,!1)?"1":void 0),c.closeNode(),a?c.commit():c.rollback()}parseOpen(c){const l={locked:c.attributes.locked!=="0",hidden:c.attributes.hidden==="1"},a=!l.locked||l.hidden;this.model=a?l:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(e,n,o){const s=e("../base-xform"),i=e("./alignment-xform"),c=e("./protection-xform");n.exports=class extends s{constructor(l){super(),this.xfId=!(!l||!l.xfId),this.map={alignment:new i,protection:new c}}get tag(){return"xf"}render(l,a){l.openNode("xf",{numFmtId:a.numFmtId||0,fontId:a.fontId||0,fillId:a.fillId||0,borderId:a.borderId||0}),this.xfId&&l.addAttribute("xfId",a.xfId||0),a.numFmtId&&l.addAttribute("applyNumberFormat","1"),a.fontId&&l.addAttribute("applyFont","1"),a.fillId&&l.addAttribute("applyFill","1"),a.borderId&&l.addAttribute("applyBorder","1"),a.alignment&&l.addAttribute("applyAlignment","1"),a.protection&&l.addAttribute("applyProtection","1"),a.alignment&&this.map.alignment.render(l,a.alignment),a.protection&&this.map.protection.render(l,a.protection),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case"xf":return this.model={numFmtId:parseInt(l.attributes.numFmtId,10),fontId:parseInt(l.attributes.fontId,10),fillId:parseInt(l.attributes.fillId,10),borderId:parseInt(l.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(l.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(l),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(l),!0;default:return!1}}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){return this.parser?(this.parser.parseClose(l)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):l!=="xf"}}},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(e,n,o){const s=e("../../../doc/enums"),i=e("../../../utils/xml-stream"),c=e("../base-xform"),l=e("../static-xform"),a=e("../list-xform"),h=e("./font-xform"),u=e("./fill-xform"),f=e("./border-xform"),d=e("./numfmt-xform"),m=e("./style-xform"),p=e("./dxf-xform");class g extends c{constructor(b){super(),this.map={numFmts:new a({tag:"numFmts",count:!0,childXform:new d}),fonts:new a({tag:"fonts",count:!0,childXform:new h,$:{"x14ac:knownFonts":1}}),fills:new a({tag:"fills",count:!0,childXform:new u}),borders:new a({tag:"borders",count:!0,childXform:new f}),cellStyleXfs:new a({tag:"cellStyleXfs",count:!0,childXform:new m}),cellXfs:new a({tag:"cellXfs",count:!0,childXform:new m({xfId:!0})}),dxfs:new a({tag:"dxfs",always:!0,count:!0,childXform:new p}),numFmt:new d,font:new h,fill:new u,border:new f,style:new m({xfId:!0}),cellStyles:g.STATIC_XFORMS.cellStyles,tableStyles:g.STATIC_XFORMS.tableStyles,extLst:g.STATIC_XFORMS.extLst},b&&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(b,_){_=_||this.model,b.openXml(i.StdDocAttributes),b.openNode("styleSheet",g.STYLESHEET_ATTRIBUTES),this.index?(_.numFmts&&_.numFmts.length&&(b.openNode("numFmts",{count:_.numFmts.length}),_.numFmts.forEach(E=>{b.writeXml(E)}),b.closeNode()),_.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),b.openNode("fonts",{count:_.fonts.length,"x14ac:knownFonts":1}),_.fonts.forEach(E=>{b.writeXml(E)}),b.closeNode(),b.openNode("fills",{count:_.fills.length}),_.fills.forEach(E=>{b.writeXml(E)}),b.closeNode(),b.openNode("borders",{count:_.borders.length}),_.borders.forEach(E=>{b.writeXml(E)}),b.closeNode(),this.map.cellStyleXfs.render(b,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),b.openNode("cellXfs",{count:_.styles.length}),_.styles.forEach(E=>{b.writeXml(E)}),b.closeNode()):(this.map.numFmts.render(b,_.numFmts),this.map.fonts.render(b,_.fonts),this.map.fills.render(b,_.fills),this.map.borders.render(b,_.borders),this.map.cellStyleXfs.render(b,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(b,_.styles)),g.STATIC_XFORMS.cellStyles.render(b),this.map.dxfs.render(b,_.dxfs),g.STATIC_XFORMS.tableStyles.render(b),g.STATIC_XFORMS.extLst.render(b),b.closeNode()}parseOpen(b){if(this.parser)return this.parser.parseOpen(b),!0;switch(b.name){case"styleSheet":return this.initIndex(),!0;default:return this.parser=this.map[b.name],this.parser&&this.parser.parseOpen(b),!0}}parseText(b){this.parser&&this.parser.parseText(b)}parseClose(b){if(this.parser)return this.parser.parseClose(b)||(this.parser=void 0),!0;switch(b){case"styleSheet":{this.model={};const _=(E,O)=>{O.model&&O.model.length&&(this.model[E]=O.model)};if(_("numFmts",this.map.numFmts),_("fonts",this.map.fonts),_("fills",this.map.fills),_("borders",this.map.borders),_("styles",this.map.cellXfs),_("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const E=this.index.numFmt;this.model.numFmts.forEach(O=>{E[O.id]=O.formatCode})}return!1}default:return!0}}addStyleModel(b,_){if(!b)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(b))return this.weakMap.get(b);const E={};if(_=_||s.ValueType.Number,b.numFmt)E.numFmtId=this._addNumFmtStr(b.numFmt);else switch(_){case s.ValueType.Number:E.numFmtId=this._addNumFmtStr("General");break;case s.ValueType.Date:E.numFmtId=this._addNumFmtStr("mm-dd-yy")}b.font&&(E.fontId=this._addFont(b.font)),b.border&&(E.borderId=this._addBorder(b.border)),b.fill&&(E.fillId=this._addFill(b.fill)),b.alignment&&(E.alignment=b.alignment),b.protection&&(E.protection=b.protection);const O=this._addStyle(E);return this.weakMap&&this.weakMap.set(b,O),O}getStyleModel(b){const _=this.model.styles[b];if(!_)return null;let E=this.index.model[b];if(E)return E;if(E=this.index.model[b]={},_.numFmtId){const j=this.index.numFmt[_.numFmtId]||d.getDefaultFmtCode(_.numFmtId);j&&(E.numFmt=j)}function O(j,W,z){if(z||z===0){const U=W[z];U&&(E[j]=U)}}return O("font",this.model.fonts,_.fontId),O("border",this.model.borders,_.borderId),O("fill",this.model.fills,_.fillId),_.alignment&&(E.alignment=_.alignment),_.protection&&(E.protection=_.protection),E}addDxfStyle(b){return b.numFmt&&(b.numFmtId=this._addNumFmtStr(b.numFmt)),this.model.dxfs.push(b),this.model.dxfs.length-1}getDxfStyle(b){return this.model.dxfs[b]}_addStyle(b){const _=this.map.style.toXml(b);let E=this.index.style[_];return E===void 0&&(E=this.index.style[_]=this.model.styles.length,this.model.styles.push(_)),E}_addNumFmtStr(b){let _=d.getDefaultFmtId(b);if(_!==void 0||(_=this.index.numFmt[b],_!==void 0))return _;_=this.index.numFmt[b]=164+this.model.numFmts.length;const E=this.map.numFmt.toXml({id:_,formatCode:b});return this.model.numFmts.push(E),_}_addFont(b){const _=this.map.font.toXml(b);let E=this.index.font[_];return E===void 0&&(E=this.index.font[_]=this.model.fonts.length,this.model.fonts.push(_)),E}_addBorder(b){const _=this.map.border.toXml(b);let E=this.index.border[_];return E===void 0&&(E=this.index.border[_]=this.model.borders.length,this.model.borders.push(_)),E}_addFill(b){const _=this.map.fill.toXml(b);let E=this.index.fill[_];return E===void 0&&(E=this.index.fill[_]=this.model.fills.length,this.model.fills.push(_)),E}}g.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"},g.STATIC_XFORMS={cellStyles:new l({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new l({tag:"dxfs",$:{count:0}}),tableStyles:new l({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new l({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"}}]}]})},g.Mock=class extends g{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(v){return v.autodrain(),Promise.resolve()}addStyleModel(v,b){switch(b){case s.ValueType.Date:return this.dateStyleId;default:return 0}}get dateStyleId(){if(!this._dateStyleId){const v={numFmtId:d.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(v)}return this._dateStyleId}getStyleModel(){return{}}},n.exports=g},{"../../../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,n,o){const s=e("../base-xform");class i extends s{constructor(l){super(),this.model=l}get tag(){return"u"}render(l,a){if((a=a||this.model)===!0)l.leafNode("u");else{const h=i.Attributes[a];h&&l.leafNode("u",h)}}parseOpen(l){l.name==="u"&&(this.model=l.attributes.val||!0)}parseText(){}parseClose(){return!1}}i.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},n.exports=i},{"../base-xform":32}],137:[function(e,n,o){const s=e("../base-xform"),i=e("./filter-column-xform");n.exports=class extends s{constructor(){super(),this.map={filterColumn:new i}}get tag(){return"autoFilter"}prepare(c){c.columns.forEach((l,a)=>{this.map.filterColumn.prepare(l,{index:a})})}render(c,l){return c.openNode(this.tag,{ref:l.autoFilterRef}),l.columns.forEach(a=>{this.map.filterColumn.render(c,a)}),c.closeNode(),!0}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case this.tag:return this.model={autoFilterRef:c.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[c.name],this.parser)return this.parseOpen(c),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(c))}}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){if(this.parser)return this.parser.parseClose(c)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;switch(c){case this.tag:return!1;default:throw new Error("Unexpected xml node in parseClose: "+c)}}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(e,n,o){const s=e("../base-xform");n.exports=class extends s{get tag(){return"customFilter"}render(i,c){i.leafNode(this.tag,{val:c.val,operator:c.operator})}parseOpen(i){return i.name===this.tag&&(this.model={val:i.attributes.val,operator:i.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(e,n,o){const s=e("../base-xform"),i=e("../list-xform"),c=e("./custom-filter-xform"),l=e("./filter-xform");n.exports=class extends s{constructor(){super(),this.map={customFilters:new i({tag:"customFilters",count:!1,empty:!0,childXform:new c}),filters:new i({tag:"filters",count:!1,empty:!0,childXform:new l})}}get tag(){return"filterColumn"}prepare(a,h){a.colId=h.index.toString()}render(a,h){return h.customFilters?(a.openNode(this.tag,{colId:h.colId,hiddenButton:h.filterButton?"0":"1"}),this.map.customFilters.render(a,h.customFilters),a.closeNode(),!0):(a.leafNode(this.tag,{colId:h.colId,hiddenButton:h.filterButton?"0":"1"}),!0)}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;const{attributes:h}=a;switch(a.name){case this.tag:return this.model={filterButton:h.hiddenButton==="0"},!0;default:if(this.parser=this.map[a.name],this.parser)return this.parseOpen(a),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(a))}}parseText(){}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.parser=void 0),!0;switch(a){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,n,o){const s=e("../base-xform");n.exports=class extends s{get tag(){return"filter"}render(i,c){i.leafNode(this.tag,{val:c.val})}parseOpen(i){return i.name===this.tag&&(this.model={val:i.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(e,n,o){const s=e("../base-xform");n.exports=class extends s{get tag(){return"tableColumn"}prepare(i,c){i.id=c.index+1}render(i,c){return i.leafNode(this.tag,{id:c.id.toString(),name:c.name,totalsRowLabel:c.totalsRowLabel,totalsRowFunction:c.totalsRowFunction,dxfId:c.dxfId}),!0}parseOpen(i){if(i.name===this.tag){const{attributes:c}=i;return this.model={name:c.name,totalsRowLabel:c.totalsRowLabel,totalsRowFunction:c.totalsRowFunction,dxfId:c.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(e,n,o){const s=e("../base-xform");n.exports=class extends s{get tag(){return"tableStyleInfo"}render(i,c){return i.leafNode(this.tag,{name:c.theme?c.theme:void 0,showFirstColumn:c.showFirstColumn?"1":"0",showLastColumn:c.showLastColumn?"1":"0",showRowStripes:c.showRowStripes?"1":"0",showColumnStripes:c.showColumnStripes?"1":"0"}),!0}parseOpen(i){if(i.name===this.tag){const{attributes:c}=i;return this.model={theme:c.name?c.name:null,showFirstColumn:c.showFirstColumn==="1",showLastColumn:c.showLastColumn==="1",showRowStripes:c.showRowStripes==="1",showColumnStripes:c.showColumnStripes==="1"},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(e,n,o){const s=e("../../../utils/xml-stream"),i=e("../base-xform"),c=e("../list-xform"),l=e("./auto-filter-xform"),a=e("./table-column-xform"),h=e("./table-style-info-xform");class u extends i{constructor(){super(),this.map={autoFilter:new l,tableColumns:new c({tag:"tableColumns",count:!0,empty:!0,childXform:new a}),tableStyleInfo:new h}}prepare(d,m){this.map.autoFilter.prepare(d),this.map.tableColumns.prepare(d.columns,m)}get tag(){return"table"}render(d,m){d.openXml(s.StdDocAttributes),d.openNode(this.tag,{...u.TABLE_ATTRIBUTES,id:m.id,name:m.name,displayName:m.displayName||m.name,ref:m.tableRef,totalsRowCount:m.totalsRow?"1":void 0,totalsRowShown:m.totalsRow?void 0:"1",headerRowCount:m.headerRow?"1":"0"}),this.map.autoFilter.render(d,m),this.map.tableColumns.render(d,m.columns),this.map.tableStyleInfo.render(d,m.style),d.closeNode()}parseOpen(d){if(this.parser)return this.parser.parseOpen(d),!0;const{name:m,attributes:p}=d;switch(m){case this.tag:this.reset(),this.model={name:p.name,displayName:p.displayName||p.name,tableRef:p.ref,totalsRow:p.totalsRowCount==="1",headerRow:p.headerRowCount==="1"};break;default:this.parser=this.map[d.name],this.parser&&this.parser.parseOpen(d)}return!0}parseText(d){this.parser&&this.parser.parseText(d)}parseClose(d){if(this.parser)return this.parser.parseClose(d)||(this.parser=void 0),!0;switch(d){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((m,p)=>{this.model.columns[p].filterButton=m.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1;default:return!0}}reconcile(d,m){d.columns.forEach(p=>{p.dxfId!==void 0&&(p.style=m.styles.getDxfStyle(p.dxfId))})}}u.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"},n.exports=u},{"../../../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,n,o){(function(s,i){(function(){const c=e("fs"),l=e("jszip"),{PassThrough:a}=e("readable-stream"),h=e("../utils/zip-stream"),u=e("../utils/stream-buf"),f=e("../utils/utils"),d=e("../utils/xml-stream"),{bufferToString:m}=e("../utils/browser-buffer-decode"),p=e("./xform/style/styles-xform"),g=e("./xform/core/core-xform"),v=e("./xform/strings/shared-strings-xform"),b=e("./xform/core/relationships-xform"),_=e("./xform/core/content-types-xform"),E=e("./xform/core/app-xform"),O=e("./xform/book/workbook-xform"),j=e("./xform/sheet/worksheet-xform"),W=e("./xform/drawing/drawing-xform"),z=e("./xform/table/table-xform"),U=e("./xform/comment/comments-xform"),K=e("./xform/comment/vml-notes-xform"),Y=e("./xml/theme1");class G{constructor(D){this.workbook=D}async readFile(D,k){if(!await f.fs.exists(D))throw new Error("File not found: "+D);const x=c.createReadStream(D);try{const S=await this.read(x,k);return x.close(),S}catch(S){throw x.close(),S}}parseRels(D){return new b().parseStream(D)}parseWorkbook(D){return new O().parseStream(D)}parseSharedStrings(D){return new v().parseStream(D)}reconcile(D,k){const x=new O,S=new j(k),C=new W,T=new z;x.reconcile(D);const M={media:D.media,mediaIndex:D.mediaIndex};Object.keys(D.drawings).forEach(Z=>{const H=D.drawings[Z],ee=D.drawingRels[Z];ee&&(M.rels=ee.reduce((B,J)=>(B[J.Id]=J,B),{}),(H.anchors||[]).forEach(B=>{const J=B.picture&&B.picture.hyperlinks;J&&M.rels[J.rId]&&(J.hyperlink=M.rels[J.rId].Target,delete J.rId)}),C.reconcile(H,M))});const N={styles:D.styles};Object.values(D.tables).forEach(Z=>{T.reconcile(Z,N)});const F={styles:D.styles,sharedStrings:D.sharedStrings,media:D.media,mediaIndex:D.mediaIndex,date1904:D.properties&&D.properties.date1904,drawings:D.drawings,comments:D.comments,tables:D.tables,vmlDrawings:D.vmlDrawings};D.worksheets.forEach(Z=>{Z.relationships=D.worksheetRels[Z.sheetNo],S.reconcile(Z,F)}),delete D.worksheetHash,delete D.worksheetRels,delete D.globalRels,delete D.sharedStrings,delete D.workbookRels,delete D.sheetDefs,delete D.styles,delete D.mediaIndex,delete D.drawings,delete D.drawingRels,delete D.vmlDrawings}async _processWorksheetEntry(D,k,x,S,C){const T=new j(S),M=await T.parseStream(D);M.sheetNo=x,k.worksheetHash[C]=M,k.worksheets.push(M)}async _processCommentEntry(D,k,x){const S=new U,C=await S.parseStream(D);k.comments[`../${x}.xml`]=C}async _processTableEntry(D,k,x){const S=new z,C=await S.parseStream(D);k.tables[`../tables/${x}.xml`]=C}async _processWorksheetRelsEntry(D,k,x){const S=new b,C=await S.parseStream(D);k.worksheetRels[x]=C}async _processMediaEntry(D,k,x){const S=x.lastIndexOf(".");if(S>=1){const C=x.substr(S+1),T=x.substr(0,S);await new Promise((M,N)=>{const F=new u;F.on("finish",()=>{k.mediaIndex[x]=k.media.length,k.mediaIndex[T]=k.media.length;const Z={type:"image",name:T,extension:C,buffer:F.toBuffer()};k.media.push(Z),M()}),D.on("error",Z=>{N(Z)}),D.pipe(F)})}}async _processDrawingEntry(D,k,x){const S=new W,C=await S.parseStream(D);k.drawings[x]=C}async _processDrawingRelsEntry(D,k,x){const S=new b,C=await S.parseStream(D);k.drawingRels[x]=C}async _processVmlDrawingEntry(D,k,x){const S=new K,C=await S.parseStream(D);k.vmlDrawings[`../drawings/${x}.vml`]=C}async _processThemeEntry(D,k,x){await new Promise((S,C)=>{const T=new u;D.on("error",C),T.on("error",C),T.on("finish",()=>{k.themes[x]=T.read().toString(),S()}),D.pipe(T)})}createInputStream(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}async read(D,k){!D[Symbol.asyncIterator]&&D.pipe&&(D=D.pipe(new a));const x=[];for await(const S of D)x.push(S);return this.load(i.concat(x),k)}async load(D,k){let x;x=k&&k.base64?i.from(D.toString(),"base64"):D;const S={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},C=await l.loadAsync(x);for(const T of Object.values(C.files))if(!T.dir){let M,N=T.name;if(N[0]==="/"&&(N=N.substr(1)),N.match(/xl\/media\//)||N.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))M=new a,M.write(await T.async("nodebuffer"));else{let F;M=new a({writableObjectMode:!0,readableObjectMode:!0}),F=s.browser?m(await T.async("nodebuffer")):await T.async("string");const Z=16384;for(let H=0;H{if(x.type==="image"){const S=`xl/media/${x.name}.${x.extension}`;if(x.filename){const C=await function(T,M){return new Promise((N,F)=>{c.readFile(T,M,(Z,H)=>{Z?F(Z):N(H)})})}(x.filename);return D.append(C,{name:S})}if(x.buffer)return D.append(x.buffer,{name:S});if(x.base64){const C=x.base64,T=C.substring(C.indexOf(",")+1);return D.append(T,{name:S,base64:!0})}}throw new Error("Unsupported media")}))}addDrawings(D,k){const x=new W,S=new b;k.worksheets.forEach(C=>{const{drawing:T}=C;if(T){x.prepare(T,{});let M=x.toXml(T);D.append(M,{name:`xl/drawings/${T.name}.xml`}),M=S.toXml(T.rels),D.append(M,{name:`xl/drawings/_rels/${T.name}.xml.rels`})}})}addTables(D,k){const x=new z;k.worksheets.forEach(S=>{const{tables:C}=S;C.forEach(T=>{x.prepare(T,{});const M=x.toXml(T);D.append(M,{name:"xl/tables/"+T.target})})})}async addContentTypes(D,k){const x=new _().toXml(k);D.append(x,{name:"[Content_Types].xml"})}async addApp(D,k){const x=new E().toXml(k);D.append(x,{name:"docProps/app.xml"})}async addCore(D,k){const x=new g;D.append(x.toXml(k),{name:"docProps/core.xml"})}async addThemes(D,k){const x=k.themes||{theme1:Y};Object.keys(x).forEach(S=>{const C=x[S],T=`xl/theme/${S}.xml`;D.append(C,{name:T})})}async addOfficeRels(D){const k=new b().toXml([{Id:"rId1",Type:G.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:G.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:G.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);D.append(k,{name:"_rels/.rels"})}async addWorkbookRels(D,k){let x=1;const S=[{Id:"rId"+x++,Type:G.RelType.Styles,Target:"styles.xml"},{Id:"rId"+x++,Type:G.RelType.Theme,Target:"theme/theme1.xml"}];k.sharedStrings.count&&S.push({Id:"rId"+x++,Type:G.RelType.SharedStrings,Target:"sharedStrings.xml"}),k.worksheets.forEach(T=>{T.rId="rId"+x++,S.push({Id:T.rId,Type:G.RelType.Worksheet,Target:`worksheets/sheet${T.id}.xml`})});const C=new b().toXml(S);D.append(C,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(D,k){k.sharedStrings&&k.sharedStrings.count&&D.append(k.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(D,k){const{xml:x}=k.styles;x&&D.append(x,{name:"xl/styles.xml"})}async addWorkbook(D,k){const x=new O;D.append(x.toXml(k),{name:"xl/workbook.xml"})}async addWorksheets(D,k){const x=new j,S=new b,C=new U,T=new K;k.worksheets.forEach(M=>{let N=new d;x.render(N,M),D.append(N.xml,{name:`xl/worksheets/sheet${M.id}.xml`}),M.rels&&M.rels.length&&(N=new d,S.render(N,M.rels),D.append(N.xml,{name:`xl/worksheets/_rels/sheet${M.id}.xml.rels`})),M.comments.length>0&&(N=new d,C.render(N,M),D.append(N.xml,{name:`xl/comments${M.id}.xml`}),N=new d,T.render(N,M),D.append(N.xml,{name:`xl/drawings/vmlDrawing${M.id}.vml`}))})}_finalize(D){return new Promise((k,x)=>{D.on("finish",()=>{k(this)}),D.on("error",x),D.finalize()})}prepareModel(D,k){D.creator=D.creator||"ExcelJS",D.lastModifiedBy=D.lastModifiedBy||"ExcelJS",D.created=D.created||new Date,D.modified=D.modified||new Date,D.useSharedStrings=k.useSharedStrings===void 0||k.useSharedStrings,D.useStyles=k.useStyles===void 0||k.useStyles,D.sharedStrings=new v,D.styles=D.useStyles?new p(!0):new p.Mock;const x=new O,S=new j;x.prepare(D);const C={sharedStrings:D.sharedStrings,styles:D.styles,date1904:D.properties.date1904,drawingsCount:0,media:D.media};C.drawings=D.drawings=[],C.commentRefs=D.commentRefs=[];let T=0;D.tables=[],D.worksheets.forEach(M=>{M.tables.forEach(N=>{T++,N.target=`table${T}.xml`,N.id=T,D.tables.push(N)}),S.prepare(M,C)})}async write(D,k){k=k||{};const{model:x}=this.workbook,S=new h.ZipWriter(k.zip);return S.pipe(D),this.prepareModel(x,k),await this.addContentTypes(S,x),await this.addOfficeRels(S,x),await this.addWorkbookRels(S,x),await this.addWorksheets(S,x),await this.addSharedStrings(S,x),await this.addDrawings(S,x),await this.addTables(S,x),await Promise.all([this.addThemes(S,x),this.addStyles(S,x)]),await this.addMedia(S,x),await Promise.all([this.addApp(S,x),this.addCore(S,x)]),await this.addWorkbook(S,x),this._finalize(S)}writeFile(D,k){const x=c.createWriteStream(D);return new Promise((S,C)=>{x.on("finish",()=>{S()}),x.on("error",T=>{C(T)}),this.write(x,k).then(()=>{x.end()}).catch(T=>{C(T)})})}async writeBuffer(D){const k=new u;return await this.write(k,D),k.read()}}G.RelType=e("./rel-type"),n.exports=G}).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,n,o){n.exports=` + `},{}],146:[function(e,n,o){(function(s){(function(){Object.defineProperty(o,"__esModule",{value:!0}),o.CsvFormatterStream=void 0;const i=e("stream"),c=e("./formatter");class l extends i.Transform{constructor(h){super({writableObjectMode:h.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=h,this.rowFormatter=new c.RowFormatter(h),this.hasWrittenBOM=!h.writeBOM}transform(h){return this.rowFormatter.rowTransform=h,this}_transform(h,u,f){let d=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(h,(m,p)=>m?(d=!0,f(m)):(p&&p.forEach(g=>{this.push(s.from(g,"utf8"))}),d=!0,f()))}catch(m){if(d)throw m;f(m)}}_flush(h){this.rowFormatter.finish((u,f)=>u?h(u):(f&&f.forEach(d=>{this.push(s.from(d,"utf8"))}),h()))}}o.CsvFormatterStream=l}).call(this)}).call(this,e("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(e,n,o){Object.defineProperty(o,"__esModule",{value:!0}),o.FormatterOptions=void 0,o.FormatterOptions=class{constructor(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var i;this.objectMode=!0,this.delimiter=",",this.rowDelimiter=` +`,this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\uFEFF",this.alwaysWriteHeaders=!1,Object.assign(this,s||{}),(s==null?void 0:s.quoteHeaders)===void 0&&(this.quoteHeaders=this.quoteColumns),(s==null?void 0:s.quote)===!0?this.quote='"':(s==null?void 0:s.quote)===!1&&(this.quote=""),typeof(s==null?void 0:s.escape)!="string"&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((i=s.writeHeaders)===null||i===void 0||i),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(e,n,o){var s=function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(o,"__esModule",{value:!0}),o.FieldFormatter=void 0;const i=s(e("lodash.isboolean")),c=s(e("lodash.isnil")),l=s(e("lodash.escaperegexp"));o.FieldFormatter=class{constructor(a){this._headers=null,this.formatterOptions=a,a.headers!==null&&(this.headers=a.headers),this.REPLACE_REGEXP=new RegExp(a.quote,"g");const h=`[${a.delimiter}${l.default(a.rowDelimiter)}|\r| +]`;this.ESCAPE_REGEXP=new RegExp(h)}set headers(a){this._headers=a}shouldQuote(a,h){const u=h?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return i.default(u)?u:Array.isArray(u)?u[a]:this._headers!==null&&u[this._headers[a]]}format(a,h,u){const f=(""+(c.default(a)?"":a)).replace(/\0/g,""),{formatterOptions:d}=this;return d.quote!==""&&f.indexOf(d.quote)!==-1?this.quoteField(f.replace(this.REPLACE_REGEXP,d.escapedQuote)):f.search(this.ESCAPE_REGEXP)!==-1||this.shouldQuote(h,u)?this.quoteField(f):f}quoteField(a){const{quote:h}=this.formatterOptions;return`${h}${a}${h}`}}},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(e,n,o){var s=function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(o,"__esModule",{value:!0}),o.RowFormatter=void 0;const i=s(e("lodash.isfunction")),c=s(e("lodash.isequal")),l=e("./FieldFormatter"),a=e("../types");class h{constructor(f){this.rowCount=0,this.formatterOptions=f,this.fieldFormatter=new l.FieldFormatter(f),this.headers=f.headers,this.shouldWriteHeaders=f.shouldWriteHeaders,this.hasWrittenHeaders=!1,this.headers!==null&&(this.fieldFormatter.headers=this.headers),f.transform&&(this.rowTransform=f.transform)}static isRowHashArray(f){return!!Array.isArray(f)&&Array.isArray(f[0])&&f[0].length===2}static isRowArray(f){return Array.isArray(f)&&!this.isRowHashArray(f)}static gatherHeaders(f){return h.isRowHashArray(f)?f.map(d=>d[0]):Array.isArray(f)?f:Object.keys(f)}static createTransform(f){return a.isSyncTransform(f)?(d,m)=>{let p=null;try{p=f(d)}catch(g){return m(g)}return m(null,p)}:(d,m)=>{f(d,m)}}set rowTransform(f){if(!i.default(f))throw new TypeError("The transform should be a function");this._rowTransform=h.createTransform(f)}format(f,d){this.callTransformer(f,(m,p)=>{if(m)return d(m);if(!f)return d(null);const g=[];if(p){const{shouldFormatColumns:v,headers:b}=this.checkHeaders(p);if(this.shouldWriteHeaders&&b&&!this.hasWrittenHeaders&&(g.push(this.formatColumns(b,!0)),this.hasWrittenHeaders=!0),v){const _=this.gatherColumns(p);g.push(this.formatColumns(_,!1))}}return d(null,g)})}finish(f){const d=[];if(this.formatterOptions.alwaysWriteHeaders&&this.rowCount===0){if(!this.headers)return f(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));d.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&d.push(this.formatterOptions.rowDelimiter),f(null,d)}checkHeaders(f){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};const d=h.gatherHeaders(f);return this.headers=d,this.fieldFormatter.headers=d,this.shouldWriteHeaders?{shouldFormatColumns:!c.default(d,f),headers:d}:{shouldFormatColumns:!0,headers:null}}gatherColumns(f){if(this.headers===null)throw new Error("Headers is currently null");return Array.isArray(f)?h.isRowHashArray(f)?this.headers.map((d,m)=>{const p=f[m];return p?p[1]:""}):h.isRowArray(f)&&!this.shouldWriteHeaders?f:this.headers.map((d,m)=>f[m]):this.headers.map(d=>f[d])}callTransformer(f,d){return this._rowTransform?this._rowTransform(f,d):d(null,f)}formatColumns(f,d){const m=f.map((g,v)=>this.fieldFormatter.format(g,v,d)).join(this.formatterOptions.delimiter),{rowCount:p}=this;return this.rowCount+=1,p?[this.formatterOptions.rowDelimiter,m].join(""):m}}o.RowFormatter=h},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(e,n,o){Object.defineProperty(o,"__esModule",{value:!0}),o.FieldFormatter=o.RowFormatter=void 0;var s=e("./RowFormatter");Object.defineProperty(o,"RowFormatter",{enumerable:!0,get:function(){return s.RowFormatter}});var i=e("./FieldFormatter");Object.defineProperty(o,"FieldFormatter",{enumerable:!0,get:function(){return i.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(e,n,o){(function(s){(function(){var i=Object.create?function(v,b,_,E){E===void 0&&(E=_),Object.defineProperty(v,E,{enumerable:!0,get:function(){return b[_]}})}:function(v,b,_,E){E===void 0&&(E=_),v[E]=b[_]},c=Object.create?function(v,b){Object.defineProperty(v,"default",{enumerable:!0,value:b})}:function(v,b){v.default=b},l=function(v){if(v&&v.__esModule)return v;var b={};if(v!=null)for(var _ in v)_!=="default"&&Object.prototype.hasOwnProperty.call(v,_)&&i(b,v,_);return c(b,v),b},a=function(v,b){for(var _ in v)_==="default"||Object.prototype.hasOwnProperty.call(b,_)||i(b,v,_)};Object.defineProperty(o,"__esModule",{value:!0}),o.writeToPath=o.writeToString=o.writeToBuffer=o.writeToStream=o.write=o.format=o.FormatterOptions=o.CsvFormatterStream=void 0;const h=e("util"),u=e("stream"),f=l(e("fs")),d=e("./FormatterOptions"),m=e("./CsvFormatterStream");a(e("./types"),o);var p=e("./CsvFormatterStream");Object.defineProperty(o,"CsvFormatterStream",{enumerable:!0,get:function(){return p.CsvFormatterStream}});var g=e("./FormatterOptions");Object.defineProperty(o,"FormatterOptions",{enumerable:!0,get:function(){return g.FormatterOptions}}),o.format=v=>new m.CsvFormatterStream(new d.FormatterOptions(v)),o.write=(v,b)=>{const _=o.format(b),E=h.promisify((O,j)=>{_.write(O,void 0,j)});return v.reduce((O,j)=>O.then(()=>E(j)),Promise.resolve()).then(()=>_.end()).catch(O=>{_.emit("error",O)}),_},o.writeToStream=(v,b,_)=>o.write(b,_).pipe(v),o.writeToBuffer=function(v){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const _=[],E=new u.Writable({write(O,j,W){_.push(O),W()}});return new Promise((O,j)=>{E.on("error",j).on("finish",()=>O(s.concat(_))),o.write(v,b).pipe(E)})},o.writeToString=(v,b)=>o.writeToBuffer(v,b).then(_=>_.toString()),o.writeToPath=(v,b,_)=>{const E=f.createWriteStream(v,{encoding:"utf8"});return o.write(b,_).pipe(E)}}).call(this)}).call(this,e("buffer").Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(e,n,o){Object.defineProperty(o,"__esModule",{value:!0}),o.isSyncTransform=void 0,o.isSyncTransform=s=>s.length===1},{}],153:[function(e,n,o){(function(s){(function(){Object.defineProperty(o,"__esModule",{value:!0}),o.CsvParserStream=void 0;const i=e("string_decoder"),c=e("stream"),l=e("./transforms"),a=e("./parser");class h extends c.Transform{constructor(f){super({objectMode:f.objectMode}),this.lines="",this.rowCount=0,this.parsedRowCount=0,this.parsedLineCount=0,this.endEmitted=!1,this.headersEmitted=!1,this.parserOptions=f,this.parser=new a.Parser(f),this.headerTransformer=new l.HeaderTransformer(f),this.decoder=new i.StringDecoder(f.encoding),this.rowTransformerValidator=new l.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(f){return this.rowTransformerValidator.rowTransform=f,this}validate(f){return this.rowTransformerValidator.rowValidator=f,this}emit(f){if(f==="end")return this.endEmitted||(this.endEmitted=!0,super.emit("end",this.rowCount)),!1;for(var d=arguments.length,m=new Array(d>1?d-1:0),p=1;p{const v=E=>E?d(E):g%100!=0?p(g+1):void s(()=>p(g+1));if(this.checkAndEmitHeaders(),g>=m||this.hasHitRowLimit)return d();if(this.parsedLineCount+=1,this.shouldSkipLine)return v();const b=f[g];this.rowCount+=1,this.parsedRowCount+=1;const _=this.rowCount;return this.transformRow(b,(E,O)=>{if(E)return this.rowCount-=1,v(E);if(!O)return v(new Error("expected transform result"));if(O.isValid){if(O.row)return this.pushRow(O.row,v)}else this.emit("data-invalid",O.row,_,O.reason);return v()})};p(0)}transformRow(f,d){try{this.headerTransformer.transform(f,(m,p)=>m?d(m):p?p.isValid?p.row?this.shouldEmitRows?this.rowTransformerValidator.transformAndValidate(p.row,d):this.skipRow(d):(this.rowCount-=1,this.parsedRowCount-=1,d(null,{row:null,isValid:!0})):this.shouldEmitRows?d(null,{isValid:!1,row:f}):this.skipRow(d):d(new Error("Expected result from header transform")))}catch(m){d(m)}}checkAndEmitHeaders(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}skipRow(f){return this.rowCount-=1,f(null,{row:null,isValid:!0})}pushRow(f,d){try{this.parserOptions.objectMode?this.push(f):this.push(JSON.stringify(f)),d()}catch(m){d(m)}}static wrapDoneCallback(f){let d=!1;return function(m){if(m){if(d)throw m;return d=!0,void f(m)}for(var p=arguments.length,g=new Array(p>1?p-1:0),v=1;v1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=i.default(this.delimiter),this.escapeChar=(a=this.escape)!==null&&a!==void 0?a:this.quote,this.supportsComments=!c.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp(`([^\\s]|\\r\\n|\\n|\\r|${this.escapedDelimiter})`),this.maxRows>0&&(this.limitRows=!0)}}},{"lodash.escaperegexp":442,"lodash.isnil":447}],155:[function(e,n,o){var s=Object.create?function(p,g,v,b){b===void 0&&(b=v),Object.defineProperty(p,b,{enumerable:!0,get:function(){return g[v]}})}:function(p,g,v,b){b===void 0&&(b=v),p[b]=g[v]},i=Object.create?function(p,g){Object.defineProperty(p,"default",{enumerable:!0,value:g})}:function(p,g){p.default=g},c=function(p){if(p&&p.__esModule)return p;var g={};if(p!=null)for(var v in p)v!=="default"&&Object.prototype.hasOwnProperty.call(p,v)&&s(g,p,v);return i(g,p),g},l=function(p,g){for(var v in p)v==="default"||Object.prototype.hasOwnProperty.call(g,v)||s(g,p,v)};Object.defineProperty(o,"__esModule",{value:!0}),o.parseString=o.parseFile=o.parseStream=o.parse=o.ParserOptions=o.CsvParserStream=void 0;const a=c(e("fs")),h=e("stream"),u=e("./ParserOptions"),f=e("./CsvParserStream");l(e("./types"),o);var d=e("./CsvParserStream");Object.defineProperty(o,"CsvParserStream",{enumerable:!0,get:function(){return d.CsvParserStream}});var m=e("./ParserOptions");Object.defineProperty(o,"ParserOptions",{enumerable:!0,get:function(){return m.ParserOptions}}),o.parse=p=>new f.CsvParserStream(new u.ParserOptions(p)),o.parseStream=(p,g)=>p.pipe(new f.CsvParserStream(new u.ParserOptions(g))),o.parseFile=function(p){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return a.createReadStream(p).pipe(new f.CsvParserStream(new u.ParserOptions(g)))},o.parseString=(p,g)=>{const v=new h.Readable;return v.push(p),v.push(null),v.pipe(new f.CsvParserStream(new u.ParserOptions(g)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(e,n,o){Object.defineProperty(o,"__esModule",{value:!0}),o.Parser=void 0;const s=e("./Scanner"),i=e("./RowParser"),c=e("./Token");class l{constructor(h){this.parserOptions=h,this.rowParser=new i.RowParser(this.parserOptions)}static removeBOM(h){return h&&h.charCodeAt(0)===65279?h.slice(1):h}parse(h,u){const f=new s.Scanner({line:l.removeBOM(h),parserOptions:this.parserOptions,hasMoreData:u});return this.parserOptions.supportsComments?this.parseWithComments(f):this.parseWithoutComments(f)}parseWithoutComments(h){const u=[];let f=!0;for(;f;)f=this.parseRow(h,u);return{line:h.line,rows:u}}parseWithComments(h){const{parserOptions:u}=this,f=[];for(let d=h.nextCharacterToken;d!==null;d=h.nextCharacterToken)if(c.Token.isTokenComment(d,u)){if(h.advancePastLine()===null)return{line:h.lineFromCursor,rows:f};if(!h.hasMoreCharacters)return{line:h.lineFromCursor,rows:f};h.truncateToCursor()}else if(!this.parseRow(h,f))break;return{line:h.line,rows:f}}parseRow(h,u){if(!h.nextNonSpaceToken)return!1;const f=this.rowParser.parse(h);return f!==null&&(this.parserOptions.ignoreEmpty&&i.RowParser.isEmptyRow(f)||u.push(f),!0)}}o.Parser=l},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(e,n,o){Object.defineProperty(o,"__esModule",{value:!0}),o.RowParser=void 0;const s=e("./column"),i=e("./Token");o.RowParser=class{constructor(c){this.parserOptions=c,this.columnParser=new s.ColumnParser(c)}static isEmptyRow(c){return c.join("").replace(/\s+/g,"")===""}parse(c){const{parserOptions:l}=this,{hasMoreData:a}=c,h=c,u=[];let f=this.getStartToken(h,u);for(;f;){if(i.Token.isTokenRowDelimiter(f))return h.advancePastToken(f),!h.hasMoreCharacters&&i.Token.isTokenCarriageReturn(f,l)&&a?null:(h.truncateToCursor(),u);if(!this.shouldSkipColumnParse(h,f,u)){const d=this.columnParser.parse(h);if(d===null)return null;u.push(d)}f=h.nextNonSpaceToken}return a?null:(h.truncateToCursor(),u)}getStartToken(c,l){const a=c.nextNonSpaceToken;return a!==null&&i.Token.isTokenDelimiter(a,this.parserOptions)?(l.push(""),c.nextNonSpaceToken):a}shouldSkipColumnParse(c,l,a){const{parserOptions:h}=this;if(i.Token.isTokenDelimiter(l,h)){c.advancePastToken(l);const u=c.nextCharacterToken;if(!c.hasMoreCharacters||u!==null&&i.Token.isTokenRowDelimiter(u)||u!==null&&i.Token.isTokenDelimiter(u,h))return a.push(""),!0}return!1}}},{"./Token":159,"./column":164}],158:[function(e,n,o){Object.defineProperty(o,"__esModule",{value:!0}),o.Scanner=void 0;const s=e("./Token"),i=/((?:\r\n)|\n|\r)/;o.Scanner=class{constructor(c){this.cursor=0,this.line=c.line,this.lineLength=this.line.length,this.parserOptions=c.parserOptions,this.hasMoreData=c.hasMoreData,this.cursor=c.cursor||0}get hasMoreCharacters(){return this.lineLength>this.cursor}get nextNonSpaceToken(){const{lineFromCursor:c}=this,l=this.parserOptions.NEXT_TOKEN_REGEXP;if(c.search(l)===-1)return null;const a=l.exec(c);if(a==null)return null;const h=a[1],u=this.cursor+(a.index||0);return new s.Token({token:h,startCursor:u,endCursor:u+h.length-1})}get nextCharacterToken(){const{cursor:c,lineLength:l}=this;return l<=c?null:new s.Token({token:this.line[c],startCursor:c,endCursor:c})}get lineFromCursor(){return this.line.substr(this.cursor)}advancePastLine(){const c=i.exec(this.lineFromCursor);return c?(this.cursor+=(c.index||0)+c[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}advanceTo(c){return this.cursor=c,this}advanceToToken(c){return this.cursor=c.startCursor,this}advancePastToken(c){return this.cursor=c.endCursor+1,this}truncateToCursor(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}},{"./Token":159}],159:[function(e,n,o){Object.defineProperty(o,"__esModule",{value:!0}),o.Token=void 0,o.Token=class{constructor(s){this.token=s.token,this.startCursor=s.startCursor,this.endCursor=s.endCursor}static isTokenRowDelimiter(s){const i=s.token;return i==="\r"||i===` +`||i===`\r +`}static isTokenCarriageReturn(s,i){return s.token===i.carriageReturn}static isTokenComment(s,i){return i.supportsComments&&!!s&&s.token===i.comment}static isTokenEscapeCharacter(s,i){return s.token===i.escapeChar}static isTokenQuote(s,i){return s.token===i.quote}static isTokenDelimiter(s,i){return s.token===i.delimiter}}},{}],160:[function(e,n,o){Object.defineProperty(o,"__esModule",{value:!0}),o.ColumnFormatter=void 0,o.ColumnFormatter=class{constructor(s){s.trim?this.format=i=>i.trim():s.ltrim?this.format=i=>i.trimLeft():s.rtrim?this.format=i=>i.trimRight():this.format=i=>i}}},{}],161:[function(e,n,o){Object.defineProperty(o,"__esModule",{value:!0}),o.ColumnParser=void 0;const s=e("./NonQuotedColumnParser"),i=e("./QuotedColumnParser"),c=e("../Token");o.ColumnParser=class{constructor(l){this.parserOptions=l,this.quotedColumnParser=new i.QuotedColumnParser(l),this.nonQuotedColumnParser=new s.NonQuotedColumnParser(l)}parse(l){const{nextNonSpaceToken:a}=l;return a!==null&&c.Token.isTokenQuote(a,this.parserOptions)?(l.advanceToToken(a),this.quotedColumnParser.parse(l)):this.nonQuotedColumnParser.parse(l)}}},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(e,n,o){Object.defineProperty(o,"__esModule",{value:!0}),o.NonQuotedColumnParser=void 0;const s=e("./ColumnFormatter"),i=e("../Token");o.NonQuotedColumnParser=class{constructor(c){this.parserOptions=c,this.columnFormatter=new s.ColumnFormatter(c)}parse(c){if(!c.hasMoreCharacters)return null;const{parserOptions:l}=this,a=[];let h=c.nextCharacterToken;for(;h&&!i.Token.isTokenDelimiter(h,l)&&!i.Token.isTokenRowDelimiter(h);h=c.nextCharacterToken)a.push(h.token),c.advancePastToken(h);return this.columnFormatter.format(a.join(""))}}},{"../Token":159,"./ColumnFormatter":160}],163:[function(e,n,o){Object.defineProperty(o,"__esModule",{value:!0}),o.QuotedColumnParser=void 0;const s=e("./ColumnFormatter"),i=e("../Token");o.QuotedColumnParser=class{constructor(c){this.parserOptions=c,this.columnFormatter=new s.ColumnFormatter(c)}parse(c){if(!c.hasMoreCharacters)return null;const l=c.cursor,{foundClosingQuote:a,col:h}=this.gatherDataBetweenQuotes(c);if(!a){if(c.advanceTo(l),!c.hasMoreData)throw new Error(`Parse Error: missing closing: '${this.parserOptions.quote||""}' in line: at '${c.lineFromCursor.replace(/[\r\n]/g,"\\n'")}'`);return null}return this.checkForMalformedColumn(c),h}gatherDataBetweenQuotes(c){const{parserOptions:l}=this;let a=!1,h=!1;const u=[];let f=c.nextCharacterToken;for(;!h&&f!==null;f=c.nextCharacterToken){const d=i.Token.isTokenQuote(f,l);if(!a&&d)a=!0;else if(a)if(i.Token.isTokenEscapeCharacter(f,l)){c.advancePastToken(f);const m=c.nextCharacterToken;m!==null&&(i.Token.isTokenQuote(m,l)||i.Token.isTokenEscapeCharacter(m,l))?(u.push(m.token),f=m):d?h=!0:u.push(f.token)}else d?h=!0:u.push(f.token);c.advancePastToken(f)}return{col:this.columnFormatter.format(u.join("")),foundClosingQuote:h}}checkForMalformedColumn(c){const{parserOptions:l}=this,{nextNonSpaceToken:a}=c;if(a){const h=i.Token.isTokenDelimiter(a,l),u=i.Token.isTokenRowDelimiter(a);if(!h&&!u){const f=c.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error(`Parse Error: expected: '${l.escapedDelimiter}' OR new line got: '${a.token}'. at '${f}`)}c.advanceToToken(a)}else c.hasMoreData||c.advancePastLine()}}},{"../Token":159,"./ColumnFormatter":160}],164:[function(e,n,o){Object.defineProperty(o,"__esModule",{value:!0}),o.ColumnFormatter=o.QuotedColumnParser=o.NonQuotedColumnParser=o.ColumnParser=void 0;var s=e("./ColumnParser");Object.defineProperty(o,"ColumnParser",{enumerable:!0,get:function(){return s.ColumnParser}});var i=e("./NonQuotedColumnParser");Object.defineProperty(o,"NonQuotedColumnParser",{enumerable:!0,get:function(){return i.NonQuotedColumnParser}});var c=e("./QuotedColumnParser");Object.defineProperty(o,"QuotedColumnParser",{enumerable:!0,get:function(){return c.QuotedColumnParser}});var l=e("./ColumnFormatter");Object.defineProperty(o,"ColumnFormatter",{enumerable:!0,get:function(){return l.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(e,n,o){Object.defineProperty(o,"__esModule",{value:!0}),o.QuotedColumnParser=o.NonQuotedColumnParser=o.ColumnParser=o.Token=o.Scanner=o.RowParser=o.Parser=void 0;var s=e("./Parser");Object.defineProperty(o,"Parser",{enumerable:!0,get:function(){return s.Parser}});var i=e("./RowParser");Object.defineProperty(o,"RowParser",{enumerable:!0,get:function(){return i.RowParser}});var c=e("./Scanner");Object.defineProperty(o,"Scanner",{enumerable:!0,get:function(){return c.Scanner}});var l=e("./Token");Object.defineProperty(o,"Token",{enumerable:!0,get:function(){return l.Token}});var a=e("./column");Object.defineProperty(o,"ColumnParser",{enumerable:!0,get:function(){return a.ColumnParser}}),Object.defineProperty(o,"NonQuotedColumnParser",{enumerable:!0,get:function(){return a.NonQuotedColumnParser}}),Object.defineProperty(o,"QuotedColumnParser",{enumerable:!0,get:function(){return a.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(e,n,o){var s=function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(o,"__esModule",{value:!0}),o.HeaderTransformer=void 0;const i=s(e("lodash.isundefined")),c=s(e("lodash.isfunction")),l=s(e("lodash.uniq")),a=s(e("lodash.groupby"));o.HeaderTransformer=class{constructor(h){this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=h,h.headers===!0?this.shouldUseFirstRow=!0:Array.isArray(h.headers)?this.setHeaders(h.headers):c.default(h.headers)&&(this.headersTransform=h.headers)}transform(h,u){return this.shouldMapRow(h)?u(null,this.processRow(h)):u(null,{row:null,isValid:!0})}shouldMapRow(h){const{parserOptions:u}=this;if(!this.headersTransform&&u.renameHeaders&&!this.processedFirstRow){if(!this.receivedHeaders)throw new Error("Error renaming headers: new headers must be provided in an array");return this.processedFirstRow=!0,!1}if(!this.receivedHeaders&&Array.isArray(h)){if(this.headersTransform)this.setHeaders(this.headersTransform(h));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(h)}return!1}return!0}processRow(h){if(!this.headers)return{row:h,isValid:!0};const{parserOptions:u}=this;if(!u.discardUnmappedColumns&&h.length>this.headersLength){if(!u.strictColumnHandling)throw new Error(`Unexpected Error: column header mismatch expected: ${this.headersLength} columns got: ${h.length}`);return{row:h,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${h.length}`}}return u.strictColumnHandling&&h.length!!d);if(l.default(f).length!==f.length){const d=a.default(f),m=Object.keys(d).filter(p=>d[p].length>1);throw new Error("Duplicate headers found "+JSON.stringify(m))}this.headers=h,this.receivedHeaders=!0,this.headersLength=((u=this.headers)===null||u===void 0?void 0:u.length)||0}}},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(e,n,o){var s=function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(o,"__esModule",{value:!0}),o.RowTransformerValidator=void 0;const i=s(e("lodash.isfunction")),c=e("../types");class l{constructor(){this._rowTransform=null,this._rowValidator=null}static createTransform(h){return c.isSyncTransform(h)?(u,f)=>{let d=null;try{d=h(u)}catch(m){return f(m)}return f(null,d)}:h}static createValidator(h){return c.isSyncValidate(h)?(u,f)=>{f(null,{row:u,isValid:h(u)})}:(u,f)=>{h(u,(d,m,p)=>d?f(d):f(null,m?{row:u,isValid:m,reason:p}:{row:u,isValid:!1,reason:p}))}}set rowTransform(h){if(!i.default(h))throw new TypeError("The transform should be a function");this._rowTransform=l.createTransform(h)}set rowValidator(h){if(!i.default(h))throw new TypeError("The validate should be a function");this._rowValidator=l.createValidator(h)}transformAndValidate(h,u){return this.callTransformer(h,(f,d)=>f?u(f):d?this.callValidator(d,(m,p)=>m?u(m):p&&!p.isValid?u(null,{row:d,isValid:!1,reason:p.reason}):u(null,{row:d,isValid:!0})):u(null,{row:null,isValid:!0}))}callTransformer(h,u){return this._rowTransform?this._rowTransform(h,u):u(null,h)}callValidator(h,u){return this._rowValidator?this._rowValidator(h,u):u(null,{row:h,isValid:!0})}}o.RowTransformerValidator=l},{"../types":169,"lodash.isfunction":446}],168:[function(e,n,o){Object.defineProperty(o,"__esModule",{value:!0}),o.HeaderTransformer=o.RowTransformerValidator=void 0;var s=e("./RowTransformerValidator");Object.defineProperty(o,"RowTransformerValidator",{enumerable:!0,get:function(){return s.RowTransformerValidator}});var i=e("./HeaderTransformer");Object.defineProperty(o,"HeaderTransformer",{enumerable:!0,get:function(){return i.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(e,n,o){Object.defineProperty(o,"__esModule",{value:!0}),o.isSyncValidate=o.isSyncTransform=void 0,o.isSyncTransform=s=>s.length===1,o.isSyncValidate=s=>s.length===1},{}],170:[function(e,n,o){const s=o;s.bignum=e("bn.js"),s.define=e("./asn1/api").define,s.base=e("./asn1/base"),s.constants=e("./asn1/constants"),s.decoders=e("./asn1/decoders"),s.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,n,o){const s=e("./encoders"),i=e("./decoders"),c=e("inherits");function l(a,h){this.name=a,this.body=h,this.decoders={},this.encoders={}}o.define=function(a,h){return new l(a,h)},l.prototype._createNamed=function(a){const h=this.name;function u(f){this._initNamed(f,h)}return c(u,a),u.prototype._initNamed=function(f,d){a.call(this,f,d)},new u(this)},l.prototype._getDecoder=function(a){return a=a||"der",this.decoders.hasOwnProperty(a)||(this.decoders[a]=this._createNamed(i[a])),this.decoders[a]},l.prototype.decode=function(a,h,u){return this._getDecoder(h).decode(a,u)},l.prototype._getEncoder=function(a){return a=a||"der",this.encoders.hasOwnProperty(a)||(this.encoders[a]=this._createNamed(s[a])),this.encoders[a]},l.prototype.encode=function(a,h,u){return this._getEncoder(h).encode(a,u)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(e,n,o){const s=e("inherits"),i=e("../base/reporter").Reporter,c=e("safer-buffer").Buffer;function l(h,u){i.call(this,u),c.isBuffer(h)?(this.base=h,this.offset=0,this.length=h.length):this.error("Input not Buffer")}function a(h,u){if(Array.isArray(h))this.length=0,this.value=h.map(function(f){return a.isEncoderBuffer(f)||(f=new a(f,u)),this.length+=f.length,f},this);else if(typeof h=="number"){if(!(0<=h&&h<=255))return u.error("non-byte EncoderBuffer value");this.value=h,this.length=1}else if(typeof h=="string")this.value=h,this.length=c.byteLength(h);else{if(!c.isBuffer(h))return u.error("Unsupported type: "+typeof h);this.value=h,this.length=h.length}}s(l,i),o.DecoderBuffer=l,l.isDecoderBuffer=function(h){return h instanceof l?!0:typeof h=="object"&&c.isBuffer(h.base)&&h.constructor.name==="DecoderBuffer"&&typeof h.offset=="number"&&typeof h.length=="number"&&typeof h.save=="function"&&typeof h.restore=="function"&&typeof h.isEmpty=="function"&&typeof h.readUInt8=="function"&&typeof h.skip=="function"&&typeof h.raw=="function"},l.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},l.prototype.restore=function(h){const u=new l(this.base);return u.offset=h.offset,u.length=this.offset,this.offset=h.offset,i.prototype.restore.call(this,h.reporter),u},l.prototype.isEmpty=function(){return this.offset===this.length},l.prototype.readUInt8=function(h){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(h||"DecoderBuffer overrun")},l.prototype.skip=function(h,u){if(!(this.offset+h<=this.length))return this.error(u||"DecoderBuffer overrun");const f=new l(this.base);return f._reporterState=this._reporterState,f.offset=this.offset,f.length=this.offset+h,this.offset+=h,f},l.prototype.raw=function(h){return this.base.slice(h?h.offset:this.offset,this.length)},o.EncoderBuffer=a,a.isEncoderBuffer=function(h){return h instanceof a?!0:typeof h=="object"&&h.constructor.name==="EncoderBuffer"&&typeof h.length=="number"&&typeof h.join=="function"},a.prototype.join=function(h,u){return h||(h=c.alloc(this.length)),u||(u=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(f){f.join(h,u),u+=f.length}):(typeof this.value=="number"?h[u]=this.value:typeof this.value=="string"?h.write(this.value,u):c.isBuffer(this.value)&&this.value.copy(h,u),u+=this.length)),h}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(e,n,o){const s=o;s.Reporter=e("./reporter").Reporter,s.DecoderBuffer=e("./buffer").DecoderBuffer,s.EncoderBuffer=e("./buffer").EncoderBuffer,s.Node=e("./node")},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(e,n,o){const s=e("../base/reporter").Reporter,i=e("../base/buffer").EncoderBuffer,c=e("../base/buffer").DecoderBuffer,l=e("minimalistic-assert"),a=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],h=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function u(d,m,p){const g={};this._baseState=g,g.name=p,g.enc=d,g.parent=m||null,g.children=null,g.tag=null,g.args=null,g.reverseArgs=null,g.choice=null,g.optional=!1,g.any=!1,g.obj=!1,g.use=null,g.useDecoder=null,g.key=null,g.default=null,g.explicit=null,g.implicit=null,g.contains=null,g.parent||(g.children=[],this._wrap())}n.exports=u;const f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){const d=this._baseState,m={};f.forEach(function(g){m[g]=d[g]});const p=new this.constructor(m.parent);return p._baseState=m,p},u.prototype._wrap=function(){const d=this._baseState;h.forEach(function(m){this[m]=function(){const p=new this.constructor(this);return d.children.push(p),p[m].apply(p,arguments)}},this)},u.prototype._init=function(d){const m=this._baseState;l(m.parent===null),d.call(this),m.children=m.children.filter(function(p){return p._baseState.parent===this},this),l.equal(m.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(d){const m=this._baseState,p=d.filter(function(g){return g instanceof this.constructor},this);d=d.filter(function(g){return!(g instanceof this.constructor)},this),p.length!==0&&(l(m.children===null),m.children=p,p.forEach(function(g){g._baseState.parent=this},this)),d.length!==0&&(l(m.args===null),m.args=d,m.reverseArgs=d.map(function(g){if(typeof g!="object"||g.constructor!==Object)return g;const v={};return Object.keys(g).forEach(function(b){b==(0|b)&&(b|=0);const _=g[b];v[_]=b}),v}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(d){u.prototype[d]=function(){const m=this._baseState;throw new Error(d+" not implemented for encoding: "+m.enc)}}),a.forEach(function(d){u.prototype[d]=function(){const m=this._baseState,p=Array.prototype.slice.call(arguments);return l(m.tag===null),m.tag=d,this._useArgs(p),this}}),u.prototype.use=function(d){l(d);const m=this._baseState;return l(m.use===null),m.use=d,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(d){const m=this._baseState;return l(m.default===null),m.default=d,m.optional=!0,this},u.prototype.explicit=function(d){const m=this._baseState;return l(m.explicit===null&&m.implicit===null),m.explicit=d,this},u.prototype.implicit=function(d){const m=this._baseState;return l(m.explicit===null&&m.implicit===null),m.implicit=d,this},u.prototype.obj=function(){const d=this._baseState,m=Array.prototype.slice.call(arguments);return d.obj=!0,m.length!==0&&this._useArgs(m),this},u.prototype.key=function(d){const m=this._baseState;return l(m.key===null),m.key=d,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(d){const m=this._baseState;return l(m.choice===null),m.choice=d,this._useArgs(Object.keys(d).map(function(p){return d[p]})),this},u.prototype.contains=function(d){const m=this._baseState;return l(m.use===null),m.contains=d,this},u.prototype._decode=function(d,m){const p=this._baseState;if(p.parent===null)return d.wrapResult(p.children[0]._decode(d,m));let g,v=p.default,b=!0,_=null;if(p.key!==null&&(_=d.enterKey(p.key)),p.optional){let E=null;if(p.explicit!==null?E=p.explicit:p.implicit!==null?E=p.implicit:p.tag!==null&&(E=p.tag),E!==null||p.any){if(b=this._peekTag(d,E,p.any),d.isError(b))return b}else{const O=d.save();try{p.choice===null?this._decodeGeneric(p.tag,d,m):this._decodeChoice(d,m),b=!0}catch{b=!1}d.restore(O)}}if(p.obj&&b&&(g=d.enterObject()),b){if(p.explicit!==null){const O=this._decodeTag(d,p.explicit);if(d.isError(O))return O;d=O}const E=d.offset;if(p.use===null&&p.choice===null){let O;p.any&&(O=d.save());const j=this._decodeTag(d,p.implicit!==null?p.implicit:p.tag,p.any);if(d.isError(j))return j;p.any?v=d.raw(O):d=j}if(m&&m.track&&p.tag!==null&&m.track(d.path(),E,d.length,"tagged"),m&&m.track&&p.tag!==null&&m.track(d.path(),d.offset,d.length,"content"),p.any||(v=p.choice===null?this._decodeGeneric(p.tag,d,m):this._decodeChoice(d,m)),d.isError(v))return v;if(p.any||p.choice!==null||p.children===null||p.children.forEach(function(O){O._decode(d,m)}),p.contains&&(p.tag==="octstr"||p.tag==="bitstr")){const O=new c(v);v=this._getUse(p.contains,d._reporterState.obj)._decode(O,m)}}return p.obj&&b&&(v=d.leaveObject(g)),p.key===null||v===null&&b!==!0?_!==null&&d.exitKey(_):d.leaveKey(_,p.key,v),v},u.prototype._decodeGeneric=function(d,m,p){const g=this._baseState;return d==="seq"||d==="set"?null:d==="seqof"||d==="setof"?this._decodeList(m,d,g.args[0],p):/str$/.test(d)?this._decodeStr(m,d,p):d==="objid"&&g.args?this._decodeObjid(m,g.args[0],g.args[1],p):d==="objid"?this._decodeObjid(m,null,null,p):d==="gentime"||d==="utctime"?this._decodeTime(m,d,p):d==="null_"?this._decodeNull(m,p):d==="bool"?this._decodeBool(m,p):d==="objDesc"?this._decodeStr(m,d,p):d==="int"||d==="enum"?this._decodeInt(m,g.args&&g.args[0],p):g.use!==null?this._getUse(g.use,m._reporterState.obj)._decode(m,p):m.error("unknown tag: "+d)},u.prototype._getUse=function(d,m){const p=this._baseState;return p.useDecoder=this._use(d,m),l(p.useDecoder._baseState.parent===null),p.useDecoder=p.useDecoder._baseState.children[0],p.implicit!==p.useDecoder._baseState.implicit&&(p.useDecoder=p.useDecoder.clone(),p.useDecoder._baseState.implicit=p.implicit),p.useDecoder},u.prototype._decodeChoice=function(d,m){const p=this._baseState;let g=null,v=!1;return Object.keys(p.choice).some(function(b){const _=d.save(),E=p.choice[b];try{const O=E._decode(d,m);if(d.isError(O))return!1;g={type:b,value:O},v=!0}catch{return d.restore(_),!1}return!0},this),v?g:d.error("Choice not matched")},u.prototype._createEncoderBuffer=function(d){return new i(d,this.reporter)},u.prototype._encode=function(d,m,p){const g=this._baseState;if(g.default!==null&&g.default===d)return;const v=this._encodeValue(d,m,p);return v===void 0||this._skipDefault(v,m,p)?void 0:v},u.prototype._encodeValue=function(d,m,p){const g=this._baseState;if(g.parent===null)return g.children[0]._encode(d,m||new s);let v=null;if(this.reporter=m,g.optional&&d===void 0){if(g.default===null)return;d=g.default}let b=null,_=!1;if(g.any)v=this._createEncoderBuffer(d);else if(g.choice)v=this._encodeChoice(d,m);else if(g.contains)b=this._getUse(g.contains,p)._encode(d,m),_=!0;else if(g.children)b=g.children.map(function(E){if(E._baseState.tag==="null_")return E._encode(null,m,d);if(E._baseState.key===null)return m.error("Child should have a key");const O=m.enterKey(E._baseState.key);if(typeof d!="object")return m.error("Child expected, but input is not object");const j=E._encode(d[E._baseState.key],m,d);return m.leaveKey(O),j},this).filter(function(E){return E}),b=this._createEncoderBuffer(b);else if(g.tag==="seqof"||g.tag==="setof"){if(!g.args||g.args.length!==1)return m.error("Too many args for : "+g.tag);if(!Array.isArray(d))return m.error("seqof/setof, but data is not Array");const E=this.clone();E._baseState.implicit=null,b=this._createEncoderBuffer(d.map(function(O){const j=this._baseState;return this._getUse(j.args[0],d)._encode(O,m)},E))}else g.use!==null?v=this._getUse(g.use,p)._encode(d,m):(b=this._encodePrimitive(g.tag,d),_=!0);if(!g.any&&g.choice===null){const E=g.implicit!==null?g.implicit:g.tag,O=g.implicit===null?"universal":"context";E===null?g.use===null&&m.error("Tag could be omitted only for .use()"):g.use===null&&(v=this._encodeComposite(E,_,O,b))}return g.explicit!==null&&(v=this._encodeComposite(g.explicit,!1,"context",v)),v},u.prototype._encodeChoice=function(d,m){const p=this._baseState,g=p.choice[d.type];return g||l(!1,d.type+" not found in "+JSON.stringify(Object.keys(p.choice))),g._encode(d.value,m)},u.prototype._encodePrimitive=function(d,m){const p=this._baseState;if(/str$/.test(d))return this._encodeStr(m,d);if(d==="objid"&&p.args)return this._encodeObjid(m,p.reverseArgs[0],p.args[1]);if(d==="objid")return this._encodeObjid(m,null,null);if(d==="gentime"||d==="utctime")return this._encodeTime(m,d);if(d==="null_")return this._encodeNull();if(d==="int"||d==="enum")return this._encodeInt(m,p.args&&p.reverseArgs[0]);if(d==="bool")return this._encodeBool(m);if(d==="objDesc")return this._encodeStr(m,d);throw new Error("Unsupported tag: "+d)},u.prototype._isNumstr=function(d){return/^[0-9 ]*$/.test(d)},u.prototype._isPrintstr=function(d){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(d)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(e,n,o){const s=e("inherits");function i(l){this._reporterState={obj:null,path:[],options:l||{},errors:[]}}function c(l,a){this.path=l,this.rethrow(a)}o.Reporter=i,i.prototype.isError=function(l){return l instanceof c},i.prototype.save=function(){const l=this._reporterState;return{obj:l.obj,pathLen:l.path.length}},i.prototype.restore=function(l){const a=this._reporterState;a.obj=l.obj,a.path=a.path.slice(0,l.pathLen)},i.prototype.enterKey=function(l){return this._reporterState.path.push(l)},i.prototype.exitKey=function(l){const a=this._reporterState;a.path=a.path.slice(0,l-1)},i.prototype.leaveKey=function(l,a,h){const u=this._reporterState;this.exitKey(l),u.obj!==null&&(u.obj[a]=h)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){const l=this._reporterState,a=l.obj;return l.obj={},a},i.prototype.leaveObject=function(l){const a=this._reporterState,h=a.obj;return a.obj=l,h},i.prototype.error=function(l){let a;const h=this._reporterState,u=l instanceof c;if(a=u?l:new c(h.path.map(function(f){return"["+JSON.stringify(f)+"]"}).join(""),l.message||l,l.stack),!h.options.partial)throw a;return u||h.errors.push(a),a},i.prototype.wrapResult=function(l){const a=this._reporterState;return a.options.partial?{result:this.isError(l)?null:l,errors:a.errors}:l},s(c,Error),c.prototype.rethrow=function(l){if(this.message=l+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,c),!this.stack)try{throw new Error(this.message)}catch(a){this.stack=a.stack}return this}},{inherits:440}],176:[function(e,n,o){function s(i){const c={};return Object.keys(i).forEach(function(l){(0|l)==l&&(l|=0);const a=i[l];c[a]=l}),c}o.tagClass={0:"universal",1:"application",2:"context",3:"private"},o.tagClassByName=s(o.tagClass),o.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"},o.tagByName=s(o.tag)},{}],177:[function(e,n,o){const s=o;s._reverse=function(i){const c={};return Object.keys(i).forEach(function(l){(0|l)==l&&(l|=0);const a=i[l];c[a]=l}),c},s.der=e("./der")},{"./der":176}],178:[function(e,n,o){const s=e("inherits"),i=e("bn.js"),c=e("../base/buffer").DecoderBuffer,l=e("../base/node"),a=e("../constants/der");function h(m){this.enc="der",this.name=m.name,this.entity=m,this.tree=new u,this.tree._init(m.body)}function u(m){l.call(this,"der",m)}function f(m,p){let g=m.readUInt8(p);if(m.isError(g))return g;const v=a.tagClass[g>>6],b=(32&g)==0;if((31&g)==31){let _=g;for(g=0;(128&_)==128;){if(_=m.readUInt8(p),m.isError(_))return _;g<<=7,g|=127&_}}else g&=31;return{cls:v,primitive:b,tag:g,tagStr:a.tag[g]}}function d(m,p,g){let v=m.readUInt8(g);if(m.isError(v))return v;if(!p&&v===128)return null;if(!(128&v))return v;const b=127&v;if(b>4)return m.error("length octect is too long");v=0;for(let _=0;_=31?j.error("Multi-octet tag encoding unsupported"):(E||(W|=32),W|=l.tagClassByName[O||"universal"]<<6,W)}(f,d,m,this.reporter);if(p.length<128){const _=i.alloc(2);return _[0]=g,_[1]=p.length,this._createEncoderBuffer([_,p])}let v=1;for(let _=p.length;_>=256;_>>=8)v++;const b=i.alloc(2+v);b[0]=g,b[1]=128|v;for(let _=1+v,E=p.length;E>0;_--,E>>=8)b[_]=255&E;return this._createEncoderBuffer([b,p])},h.prototype._encodeStr=function(f,d){if(d==="bitstr")return this._createEncoderBuffer([0|f.unused,f.data]);if(d==="bmpstr"){const m=i.alloc(2*f.length);for(let p=0;p=40)return this.reporter.error("Second objid identifier OOB");f.splice(0,2,40*f[0]+f[1])}let p=0;for(let b=0;b=128;_>>=7)p++}const g=i.alloc(p);let v=g.length-1;for(let b=f.length-1;b>=0;b--){let _=f[b];for(g[v--]=127&_;(_>>=7)>0;)g[v--]=128|127&_}return this._createEncoderBuffer(g)},h.prototype._encodeTime=function(f,d){let m;const p=new Date(f);return d==="gentime"?m=[u(p.getUTCFullYear()),u(p.getUTCMonth()+1),u(p.getUTCDate()),u(p.getUTCHours()),u(p.getUTCMinutes()),u(p.getUTCSeconds()),"Z"].join(""):d==="utctime"?m=[u(p.getUTCFullYear()%100),u(p.getUTCMonth()+1),u(p.getUTCDate()),u(p.getUTCHours()),u(p.getUTCMinutes()),u(p.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+d+" time is not supported yet"),this._encodeStr(m,"octstr")},h.prototype._encodeNull=function(){return this._createEncoderBuffer("")},h.prototype._encodeInt=function(f,d){if(typeof f=="string"){if(!d)return this.reporter.error("String int or enum given, but no values map");if(!d.hasOwnProperty(f))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(f));f=d[f]}if(typeof f!="number"&&!i.isBuffer(f)){const g=f.toArray();!f.sign&&128&g[0]&&g.unshift(0),f=i.from(g)}if(i.isBuffer(f)){let g=f.length;f.length===0&&g++;const v=i.alloc(g);return f.copy(v),f.length===0&&(v[0]=0),this._createEncoderBuffer(v)}if(f<128)return this._createEncoderBuffer(f);if(f<256)return this._createEncoderBuffer([0,f]);let m=1;for(let g=f;g>=256;g>>=8)m++;const p=new Array(m);for(let g=p.length-1;g>=0;g--)p[g]=255&f,f>>=8;return 128&p[0]&&p.unshift(0),this._createEncoderBuffer(i.from(p))},h.prototype._encodeBool=function(f){return this._createEncoderBuffer(f?255:0)},h.prototype._use=function(f,d){return typeof f=="function"&&(f=f(d)),f._getEncoder("der").tree},h.prototype._skipDefault=function(f,d,m){const p=this._baseState;let g;if(p.default===null)return!1;const v=f.join();if(p.defaultBuffer===void 0&&(p.defaultBuffer=this._encodeValue(p.default,d,m).join()),v.length!==p.defaultBuffer.length)return!1;for(g=0;g=65&&k<=70?k-55:k>=97&&k<=102?k-87:k-48&15}function f(R,D,k){var x=u(R,k);return k-1>=D&&(x|=u(R,k-1)<<4),x}function d(R,D,k,x){for(var S=0,C=Math.min(R.length,k),T=D;T=49?M-49+10:M>=17?M-17+10:M}return S}a.isBN=function(R){return R instanceof a||R!==null&&typeof R=="object"&&R.constructor.wordSize===a.wordSize&&Array.isArray(R.words)},a.max=function(R,D){return R.cmp(D)>0?R:D},a.min=function(R,D){return R.cmp(D)<0?R:D},a.prototype._init=function(R,D,k){if(typeof R=="number")return this._initNumber(R,D,k);if(typeof R=="object")return this._initArray(R,D,k);D==="hex"&&(D=16),c(D===(0|D)&&D>=2&&D<=36);var x=0;(R=R.toString().replace(/\s+/g,""))[0]==="-"&&(x++,this.negative=1),x=0;x-=3)C=R[x]|R[x-1]<<8|R[x-2]<<16,this.words[S]|=C<>>26-T&67108863,(T+=24)>=26&&(T-=26,S++);else if(k==="le")for(x=0,S=0;x>>26-T&67108863,(T+=24)>=26&&(T-=26,S++);return this.strip()},a.prototype._parseHex=function(R,D,k){this.length=Math.ceil((R.length-D)/6),this.words=new Array(this.length);for(var x=0;x=D;x-=2)S=f(R,D,x)<=18?(C-=18,T+=1,this.words[T]|=S>>>26):C+=8;else for(x=(R.length-D)%2==0?D+1:D;x=18?(C-=18,T+=1,this.words[T]|=S>>>26):C+=8;this.strip()},a.prototype._parseBase=function(R,D,k){this.words=[0],this.length=1;for(var x=0,S=1;S<=67108863;S*=D)x++;x--,S=S/D|0;for(var C=R.length-k,T=C%x,M=Math.min(C,C-T)+k,N=0,F=k;F1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var m=["","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"],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],g=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function v(R,D,k){k.negative=D.negative^R.negative;var x=R.length+D.length|0;k.length=x,x=x-1|0;var S=0|R.words[0],C=0|D.words[0],T=S*C,M=67108863&T,N=T/67108864|0;k.words[0]=M;for(var F=1;F>>26,H=67108863&N,ee=Math.min(F,D.length-1),B=Math.max(0,F-R.length+1);B<=ee;B++){var J=F-B|0;Z+=(T=(S=0|R.words[J])*(C=0|D.words[B])+H)/67108864|0,H=67108863&T}k.words[F]=0|H,N=0|Z}return N!==0?k.words[F]=0|N:k.length--,k.strip()}a.prototype.toString=function(R,D){var k;if(D=0|D||1,(R=R||10)===16||R==="hex"){k="";for(var x=0,S=0,C=0;C>>24-x&16777215)!==0||C!==this.length-1?m[6-M.length]+M+k:M+k,(x+=2)>=26&&(x-=26,C--)}for(S!==0&&(k=S.toString(16)+k);k.length%D!=0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}if(R===(0|R)&&R>=2&&R<=36){var N=p[R],F=g[R];k="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var H=Z.modn(F).toString(R);k=(Z=Z.idivn(F)).isZero()?H+k:m[N-H.length]+H+k}for(this.isZero()&&(k="0"+k);k.length%D!=0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}c(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var R=this.words[0];return this.length===2?R+=67108864*this.words[1]:this.length===3&&this.words[2]===1?R+=4503599627370496+67108864*this.words[1]:this.length>2&&c(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-R:R},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(R,D){return c(h!==void 0),this.toArrayLike(h,R,D)},a.prototype.toArray=function(R,D){return this.toArrayLike(Array,R,D)},a.prototype.toArrayLike=function(R,D,k){var x=this.byteLength(),S=k||Math.max(1,x);c(x<=S,"byte array longer than desired length"),c(S>0,"Requested array length <= 0"),this.strip();var C,T,M=D==="le",N=new R(S),F=this.clone();if(M){for(T=0;!F.isZero();T++)C=F.andln(255),F.iushrn(8),N[T]=C;for(;T=4096&&(k+=13,D>>>=13),D>=64&&(k+=7,D>>>=7),D>=8&&(k+=4,D>>>=4),D>=2&&(k+=2,D>>>=2),k+D},a.prototype._zeroBits=function(R){if(R===0)return 26;var D=R,k=0;return!(8191&D)&&(k+=13,D>>>=13),!(127&D)&&(k+=7,D>>>=7),!(15&D)&&(k+=4,D>>>=4),!(3&D)&&(k+=2,D>>>=2),!(1&D)&&k++,k},a.prototype.bitLength=function(){var R=this.words[this.length-1],D=this._countBits(R);return 26*(this.length-1)+D},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var R=0,D=0;DR.length?this.clone().ior(R):R.clone().ior(this)},a.prototype.uor=function(R){return this.length>R.length?this.clone().iuor(R):R.clone().iuor(this)},a.prototype.iuand=function(R){var D;D=this.length>R.length?R:this;for(var k=0;kR.length?this.clone().iand(R):R.clone().iand(this)},a.prototype.uand=function(R){return this.length>R.length?this.clone().iuand(R):R.clone().iuand(this)},a.prototype.iuxor=function(R){var D,k;this.length>R.length?(D=this,k=R):(D=R,k=this);for(var x=0;xR.length?this.clone().ixor(R):R.clone().ixor(this)},a.prototype.uxor=function(R){return this.length>R.length?this.clone().iuxor(R):R.clone().iuxor(this)},a.prototype.inotn=function(R){c(typeof R=="number"&&R>=0);var D=0|Math.ceil(R/26),k=R%26;this._expand(D),k>0&&D--;for(var x=0;x0&&(this.words[x]=~this.words[x]&67108863>>26-k),this.strip()},a.prototype.notn=function(R){return this.clone().inotn(R)},a.prototype.setn=function(R,D){c(typeof R=="number"&&R>=0);var k=R/26|0,x=R%26;return this._expand(k+1),this.words[k]=D?this.words[k]|1<R.length?(k=this,x=R):(k=R,x=this);for(var S=0,C=0;C>>26;for(;S!==0&&C>>26;if(this.length=k.length,S!==0)this.words[this.length]=S,this.length++;else if(k!==this)for(;CR.length?this.clone().iadd(R):R.clone().iadd(this)},a.prototype.isub=function(R){if(R.negative!==0){R.negative=0;var D=this.iadd(R);return R.negative=1,D._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(R),this.negative=1,this._normSign();var k,x,S=this.cmp(R);if(S===0)return this.negative=0,this.length=1,this.words[0]=0,this;S>0?(k=this,x=R):(k=R,x=this);for(var C=0,T=0;T>26,this.words[T]=67108863&D;for(;C!==0&&T>26,this.words[T]=67108863&D;if(C===0&&T>>13,B=0|T[1],J=8191&B,I=B>>>13,$=0|T[2],X=8191&$,ae=$>>>13,fe=0|T[3],te=8191&fe,ie=fe>>>13,de=0|T[4],me=8191&de,se=de>>>13,ve=0|T[5],be=8191&ve,ke=ve>>>13,Ce=0|T[6],Ee=8191&Ce,Me=Ce>>>13,Le=0|T[7],Ae=8191&Le,Fe=Le>>>13,Ge=0|T[8],Ye=8191&Ge,lt=Ge>>>13,vt=0|T[9],xt=8191&vt,Tt=vt>>>13,gt=0|M[0],ct=8191>,bt=gt>>>13,wt=0|M[1],ft=8191&wt,or=wt>>>13,Rr=0|M[2],Vt=8191&Rr,sr=Rr>>>13,ar=0|M[3],Nt=8191&ar,_r=ar>>>13,wr=0|M[4],Ut=8191&wr,vr=wr>>>13,gr=0|M[5],qt=8191&gr,Sr=gr>>>13,Tr=0|M[6],Zt=8191&Tr,Re=Tr>>>13,ue=0|M[7],le=8191&ue,Te=ue>>>13,ye=0|M[8],xe=8191&ye,Xe=ye>>>13,Qe=0|M[9],ut=8191&Qe,yt=Qe>>>13;k.negative=R.negative^D.negative,k.length=19;var Ct=(F+(x=Math.imul(H,ct))|0)+((8191&(S=(S=Math.imul(H,bt))+Math.imul(ee,ct)|0))<<13)|0;F=((C=Math.imul(ee,bt))+(S>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,x=Math.imul(J,ct),S=(S=Math.imul(J,bt))+Math.imul(I,ct)|0,C=Math.imul(I,bt);var _t=(F+(x=x+Math.imul(H,ft)|0)|0)+((8191&(S=(S=S+Math.imul(H,or)|0)+Math.imul(ee,ft)|0))<<13)|0;F=((C=C+Math.imul(ee,or)|0)+(S>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(X,ct),S=(S=Math.imul(X,bt))+Math.imul(ae,ct)|0,C=Math.imul(ae,bt),x=x+Math.imul(J,ft)|0,S=(S=S+Math.imul(J,or)|0)+Math.imul(I,ft)|0,C=C+Math.imul(I,or)|0;var Dt=(F+(x=x+Math.imul(H,Vt)|0)|0)+((8191&(S=(S=S+Math.imul(H,sr)|0)+Math.imul(ee,Vt)|0))<<13)|0;F=((C=C+Math.imul(ee,sr)|0)+(S>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,x=Math.imul(te,ct),S=(S=Math.imul(te,bt))+Math.imul(ie,ct)|0,C=Math.imul(ie,bt),x=x+Math.imul(X,ft)|0,S=(S=S+Math.imul(X,or)|0)+Math.imul(ae,ft)|0,C=C+Math.imul(ae,or)|0,x=x+Math.imul(J,Vt)|0,S=(S=S+Math.imul(J,sr)|0)+Math.imul(I,Vt)|0,C=C+Math.imul(I,sr)|0;var Xt=(F+(x=x+Math.imul(H,Nt)|0)|0)+((8191&(S=(S=S+Math.imul(H,_r)|0)+Math.imul(ee,Nt)|0))<<13)|0;F=((C=C+Math.imul(ee,_r)|0)+(S>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,x=Math.imul(me,ct),S=(S=Math.imul(me,bt))+Math.imul(se,ct)|0,C=Math.imul(se,bt),x=x+Math.imul(te,ft)|0,S=(S=S+Math.imul(te,or)|0)+Math.imul(ie,ft)|0,C=C+Math.imul(ie,or)|0,x=x+Math.imul(X,Vt)|0,S=(S=S+Math.imul(X,sr)|0)+Math.imul(ae,Vt)|0,C=C+Math.imul(ae,sr)|0,x=x+Math.imul(J,Nt)|0,S=(S=S+Math.imul(J,_r)|0)+Math.imul(I,Nt)|0,C=C+Math.imul(I,_r)|0;var It=(F+(x=x+Math.imul(H,Ut)|0)|0)+((8191&(S=(S=S+Math.imul(H,vr)|0)+Math.imul(ee,Ut)|0))<<13)|0;F=((C=C+Math.imul(ee,vr)|0)+(S>>>13)|0)+(It>>>26)|0,It&=67108863,x=Math.imul(be,ct),S=(S=Math.imul(be,bt))+Math.imul(ke,ct)|0,C=Math.imul(ke,bt),x=x+Math.imul(me,ft)|0,S=(S=S+Math.imul(me,or)|0)+Math.imul(se,ft)|0,C=C+Math.imul(se,or)|0,x=x+Math.imul(te,Vt)|0,S=(S=S+Math.imul(te,sr)|0)+Math.imul(ie,Vt)|0,C=C+Math.imul(ie,sr)|0,x=x+Math.imul(X,Nt)|0,S=(S=S+Math.imul(X,_r)|0)+Math.imul(ae,Nt)|0,C=C+Math.imul(ae,_r)|0,x=x+Math.imul(J,Ut)|0,S=(S=S+Math.imul(J,vr)|0)+Math.imul(I,Ut)|0,C=C+Math.imul(I,vr)|0;var je=(F+(x=x+Math.imul(H,qt)|0)|0)+((8191&(S=(S=S+Math.imul(H,Sr)|0)+Math.imul(ee,qt)|0))<<13)|0;F=((C=C+Math.imul(ee,Sr)|0)+(S>>>13)|0)+(je>>>26)|0,je&=67108863,x=Math.imul(Ee,ct),S=(S=Math.imul(Ee,bt))+Math.imul(Me,ct)|0,C=Math.imul(Me,bt),x=x+Math.imul(be,ft)|0,S=(S=S+Math.imul(be,or)|0)+Math.imul(ke,ft)|0,C=C+Math.imul(ke,or)|0,x=x+Math.imul(me,Vt)|0,S=(S=S+Math.imul(me,sr)|0)+Math.imul(se,Vt)|0,C=C+Math.imul(se,sr)|0,x=x+Math.imul(te,Nt)|0,S=(S=S+Math.imul(te,_r)|0)+Math.imul(ie,Nt)|0,C=C+Math.imul(ie,_r)|0,x=x+Math.imul(X,Ut)|0,S=(S=S+Math.imul(X,vr)|0)+Math.imul(ae,Ut)|0,C=C+Math.imul(ae,vr)|0,x=x+Math.imul(J,qt)|0,S=(S=S+Math.imul(J,Sr)|0)+Math.imul(I,qt)|0,C=C+Math.imul(I,Sr)|0;var ot=(F+(x=x+Math.imul(H,Zt)|0)|0)+((8191&(S=(S=S+Math.imul(H,Re)|0)+Math.imul(ee,Zt)|0))<<13)|0;F=((C=C+Math.imul(ee,Re)|0)+(S>>>13)|0)+(ot>>>26)|0,ot&=67108863,x=Math.imul(Ae,ct),S=(S=Math.imul(Ae,bt))+Math.imul(Fe,ct)|0,C=Math.imul(Fe,bt),x=x+Math.imul(Ee,ft)|0,S=(S=S+Math.imul(Ee,or)|0)+Math.imul(Me,ft)|0,C=C+Math.imul(Me,or)|0,x=x+Math.imul(be,Vt)|0,S=(S=S+Math.imul(be,sr)|0)+Math.imul(ke,Vt)|0,C=C+Math.imul(ke,sr)|0,x=x+Math.imul(me,Nt)|0,S=(S=S+Math.imul(me,_r)|0)+Math.imul(se,Nt)|0,C=C+Math.imul(se,_r)|0,x=x+Math.imul(te,Ut)|0,S=(S=S+Math.imul(te,vr)|0)+Math.imul(ie,Ut)|0,C=C+Math.imul(ie,vr)|0,x=x+Math.imul(X,qt)|0,S=(S=S+Math.imul(X,Sr)|0)+Math.imul(ae,qt)|0,C=C+Math.imul(ae,Sr)|0,x=x+Math.imul(J,Zt)|0,S=(S=S+Math.imul(J,Re)|0)+Math.imul(I,Zt)|0,C=C+Math.imul(I,Re)|0;var pe=(F+(x=x+Math.imul(H,le)|0)|0)+((8191&(S=(S=S+Math.imul(H,Te)|0)+Math.imul(ee,le)|0))<<13)|0;F=((C=C+Math.imul(ee,Te)|0)+(S>>>13)|0)+(pe>>>26)|0,pe&=67108863,x=Math.imul(Ye,ct),S=(S=Math.imul(Ye,bt))+Math.imul(lt,ct)|0,C=Math.imul(lt,bt),x=x+Math.imul(Ae,ft)|0,S=(S=S+Math.imul(Ae,or)|0)+Math.imul(Fe,ft)|0,C=C+Math.imul(Fe,or)|0,x=x+Math.imul(Ee,Vt)|0,S=(S=S+Math.imul(Ee,sr)|0)+Math.imul(Me,Vt)|0,C=C+Math.imul(Me,sr)|0,x=x+Math.imul(be,Nt)|0,S=(S=S+Math.imul(be,_r)|0)+Math.imul(ke,Nt)|0,C=C+Math.imul(ke,_r)|0,x=x+Math.imul(me,Ut)|0,S=(S=S+Math.imul(me,vr)|0)+Math.imul(se,Ut)|0,C=C+Math.imul(se,vr)|0,x=x+Math.imul(te,qt)|0,S=(S=S+Math.imul(te,Sr)|0)+Math.imul(ie,qt)|0,C=C+Math.imul(ie,Sr)|0,x=x+Math.imul(X,Zt)|0,S=(S=S+Math.imul(X,Re)|0)+Math.imul(ae,Zt)|0,C=C+Math.imul(ae,Re)|0,x=x+Math.imul(J,le)|0,S=(S=S+Math.imul(J,Te)|0)+Math.imul(I,le)|0,C=C+Math.imul(I,Te)|0;var Ie=(F+(x=x+Math.imul(H,xe)|0)|0)+((8191&(S=(S=S+Math.imul(H,Xe)|0)+Math.imul(ee,xe)|0))<<13)|0;F=((C=C+Math.imul(ee,Xe)|0)+(S>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,x=Math.imul(xt,ct),S=(S=Math.imul(xt,bt))+Math.imul(Tt,ct)|0,C=Math.imul(Tt,bt),x=x+Math.imul(Ye,ft)|0,S=(S=S+Math.imul(Ye,or)|0)+Math.imul(lt,ft)|0,C=C+Math.imul(lt,or)|0,x=x+Math.imul(Ae,Vt)|0,S=(S=S+Math.imul(Ae,sr)|0)+Math.imul(Fe,Vt)|0,C=C+Math.imul(Fe,sr)|0,x=x+Math.imul(Ee,Nt)|0,S=(S=S+Math.imul(Ee,_r)|0)+Math.imul(Me,Nt)|0,C=C+Math.imul(Me,_r)|0,x=x+Math.imul(be,Ut)|0,S=(S=S+Math.imul(be,vr)|0)+Math.imul(ke,Ut)|0,C=C+Math.imul(ke,vr)|0,x=x+Math.imul(me,qt)|0,S=(S=S+Math.imul(me,Sr)|0)+Math.imul(se,qt)|0,C=C+Math.imul(se,Sr)|0,x=x+Math.imul(te,Zt)|0,S=(S=S+Math.imul(te,Re)|0)+Math.imul(ie,Zt)|0,C=C+Math.imul(ie,Re)|0,x=x+Math.imul(X,le)|0,S=(S=S+Math.imul(X,Te)|0)+Math.imul(ae,le)|0,C=C+Math.imul(ae,Te)|0,x=x+Math.imul(J,xe)|0,S=(S=S+Math.imul(J,Xe)|0)+Math.imul(I,xe)|0,C=C+Math.imul(I,Xe)|0;var Je=(F+(x=x+Math.imul(H,ut)|0)|0)+((8191&(S=(S=S+Math.imul(H,yt)|0)+Math.imul(ee,ut)|0))<<13)|0;F=((C=C+Math.imul(ee,yt)|0)+(S>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(xt,ft),S=(S=Math.imul(xt,or))+Math.imul(Tt,ft)|0,C=Math.imul(Tt,or),x=x+Math.imul(Ye,Vt)|0,S=(S=S+Math.imul(Ye,sr)|0)+Math.imul(lt,Vt)|0,C=C+Math.imul(lt,sr)|0,x=x+Math.imul(Ae,Nt)|0,S=(S=S+Math.imul(Ae,_r)|0)+Math.imul(Fe,Nt)|0,C=C+Math.imul(Fe,_r)|0,x=x+Math.imul(Ee,Ut)|0,S=(S=S+Math.imul(Ee,vr)|0)+Math.imul(Me,Ut)|0,C=C+Math.imul(Me,vr)|0,x=x+Math.imul(be,qt)|0,S=(S=S+Math.imul(be,Sr)|0)+Math.imul(ke,qt)|0,C=C+Math.imul(ke,Sr)|0,x=x+Math.imul(me,Zt)|0,S=(S=S+Math.imul(me,Re)|0)+Math.imul(se,Zt)|0,C=C+Math.imul(se,Re)|0,x=x+Math.imul(te,le)|0,S=(S=S+Math.imul(te,Te)|0)+Math.imul(ie,le)|0,C=C+Math.imul(ie,Te)|0,x=x+Math.imul(X,xe)|0,S=(S=S+Math.imul(X,Xe)|0)+Math.imul(ae,xe)|0,C=C+Math.imul(ae,Xe)|0;var rt=(F+(x=x+Math.imul(J,ut)|0)|0)+((8191&(S=(S=S+Math.imul(J,yt)|0)+Math.imul(I,ut)|0))<<13)|0;F=((C=C+Math.imul(I,yt)|0)+(S>>>13)|0)+(rt>>>26)|0,rt&=67108863,x=Math.imul(xt,Vt),S=(S=Math.imul(xt,sr))+Math.imul(Tt,Vt)|0,C=Math.imul(Tt,sr),x=x+Math.imul(Ye,Nt)|0,S=(S=S+Math.imul(Ye,_r)|0)+Math.imul(lt,Nt)|0,C=C+Math.imul(lt,_r)|0,x=x+Math.imul(Ae,Ut)|0,S=(S=S+Math.imul(Ae,vr)|0)+Math.imul(Fe,Ut)|0,C=C+Math.imul(Fe,vr)|0,x=x+Math.imul(Ee,qt)|0,S=(S=S+Math.imul(Ee,Sr)|0)+Math.imul(Me,qt)|0,C=C+Math.imul(Me,Sr)|0,x=x+Math.imul(be,Zt)|0,S=(S=S+Math.imul(be,Re)|0)+Math.imul(ke,Zt)|0,C=C+Math.imul(ke,Re)|0,x=x+Math.imul(me,le)|0,S=(S=S+Math.imul(me,Te)|0)+Math.imul(se,le)|0,C=C+Math.imul(se,Te)|0,x=x+Math.imul(te,xe)|0,S=(S=S+Math.imul(te,Xe)|0)+Math.imul(ie,xe)|0,C=C+Math.imul(ie,Xe)|0;var $t=(F+(x=x+Math.imul(X,ut)|0)|0)+((8191&(S=(S=S+Math.imul(X,yt)|0)+Math.imul(ae,ut)|0))<<13)|0;F=((C=C+Math.imul(ae,yt)|0)+(S>>>13)|0)+($t>>>26)|0,$t&=67108863,x=Math.imul(xt,Nt),S=(S=Math.imul(xt,_r))+Math.imul(Tt,Nt)|0,C=Math.imul(Tt,_r),x=x+Math.imul(Ye,Ut)|0,S=(S=S+Math.imul(Ye,vr)|0)+Math.imul(lt,Ut)|0,C=C+Math.imul(lt,vr)|0,x=x+Math.imul(Ae,qt)|0,S=(S=S+Math.imul(Ae,Sr)|0)+Math.imul(Fe,qt)|0,C=C+Math.imul(Fe,Sr)|0,x=x+Math.imul(Ee,Zt)|0,S=(S=S+Math.imul(Ee,Re)|0)+Math.imul(Me,Zt)|0,C=C+Math.imul(Me,Re)|0,x=x+Math.imul(be,le)|0,S=(S=S+Math.imul(be,Te)|0)+Math.imul(ke,le)|0,C=C+Math.imul(ke,Te)|0,x=x+Math.imul(me,xe)|0,S=(S=S+Math.imul(me,Xe)|0)+Math.imul(se,xe)|0,C=C+Math.imul(se,Xe)|0;var mt=(F+(x=x+Math.imul(te,ut)|0)|0)+((8191&(S=(S=S+Math.imul(te,yt)|0)+Math.imul(ie,ut)|0))<<13)|0;F=((C=C+Math.imul(ie,yt)|0)+(S>>>13)|0)+(mt>>>26)|0,mt&=67108863,x=Math.imul(xt,Ut),S=(S=Math.imul(xt,vr))+Math.imul(Tt,Ut)|0,C=Math.imul(Tt,vr),x=x+Math.imul(Ye,qt)|0,S=(S=S+Math.imul(Ye,Sr)|0)+Math.imul(lt,qt)|0,C=C+Math.imul(lt,Sr)|0,x=x+Math.imul(Ae,Zt)|0,S=(S=S+Math.imul(Ae,Re)|0)+Math.imul(Fe,Zt)|0,C=C+Math.imul(Fe,Re)|0,x=x+Math.imul(Ee,le)|0,S=(S=S+Math.imul(Ee,Te)|0)+Math.imul(Me,le)|0,C=C+Math.imul(Me,Te)|0,x=x+Math.imul(be,xe)|0,S=(S=S+Math.imul(be,Xe)|0)+Math.imul(ke,xe)|0,C=C+Math.imul(ke,Xe)|0;var dt=(F+(x=x+Math.imul(me,ut)|0)|0)+((8191&(S=(S=S+Math.imul(me,yt)|0)+Math.imul(se,ut)|0))<<13)|0;F=((C=C+Math.imul(se,yt)|0)+(S>>>13)|0)+(dt>>>26)|0,dt&=67108863,x=Math.imul(xt,qt),S=(S=Math.imul(xt,Sr))+Math.imul(Tt,qt)|0,C=Math.imul(Tt,Sr),x=x+Math.imul(Ye,Zt)|0,S=(S=S+Math.imul(Ye,Re)|0)+Math.imul(lt,Zt)|0,C=C+Math.imul(lt,Re)|0,x=x+Math.imul(Ae,le)|0,S=(S=S+Math.imul(Ae,Te)|0)+Math.imul(Fe,le)|0,C=C+Math.imul(Fe,Te)|0,x=x+Math.imul(Ee,xe)|0,S=(S=S+Math.imul(Ee,Xe)|0)+Math.imul(Me,xe)|0,C=C+Math.imul(Me,Xe)|0;var Qt=(F+(x=x+Math.imul(be,ut)|0)|0)+((8191&(S=(S=S+Math.imul(be,yt)|0)+Math.imul(ke,ut)|0))<<13)|0;F=((C=C+Math.imul(ke,yt)|0)+(S>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,x=Math.imul(xt,Zt),S=(S=Math.imul(xt,Re))+Math.imul(Tt,Zt)|0,C=Math.imul(Tt,Re),x=x+Math.imul(Ye,le)|0,S=(S=S+Math.imul(Ye,Te)|0)+Math.imul(lt,le)|0,C=C+Math.imul(lt,Te)|0,x=x+Math.imul(Ae,xe)|0,S=(S=S+Math.imul(Ae,Xe)|0)+Math.imul(Fe,xe)|0,C=C+Math.imul(Fe,Xe)|0;var rr=(F+(x=x+Math.imul(Ee,ut)|0)|0)+((8191&(S=(S=S+Math.imul(Ee,yt)|0)+Math.imul(Me,ut)|0))<<13)|0;F=((C=C+Math.imul(Me,yt)|0)+(S>>>13)|0)+(rr>>>26)|0,rr&=67108863,x=Math.imul(xt,le),S=(S=Math.imul(xt,Te))+Math.imul(Tt,le)|0,C=Math.imul(Tt,Te),x=x+Math.imul(Ye,xe)|0,S=(S=S+Math.imul(Ye,Xe)|0)+Math.imul(lt,xe)|0,C=C+Math.imul(lt,Xe)|0;var nr=(F+(x=x+Math.imul(Ae,ut)|0)|0)+((8191&(S=(S=S+Math.imul(Ae,yt)|0)+Math.imul(Fe,ut)|0))<<13)|0;F=((C=C+Math.imul(Fe,yt)|0)+(S>>>13)|0)+(nr>>>26)|0,nr&=67108863,x=Math.imul(xt,xe),S=(S=Math.imul(xt,Xe))+Math.imul(Tt,xe)|0,C=Math.imul(Tt,Xe);var Bt=(F+(x=x+Math.imul(Ye,ut)|0)|0)+((8191&(S=(S=S+Math.imul(Ye,yt)|0)+Math.imul(lt,ut)|0))<<13)|0;F=((C=C+Math.imul(lt,yt)|0)+(S>>>13)|0)+(Bt>>>26)|0,Bt&=67108863;var jt=(F+(x=Math.imul(xt,ut))|0)+((8191&(S=(S=Math.imul(xt,yt))+Math.imul(Tt,ut)|0))<<13)|0;return F=((C=Math.imul(Tt,yt))+(S>>>13)|0)+(jt>>>26)|0,jt&=67108863,N[0]=Ct,N[1]=_t,N[2]=Dt,N[3]=Xt,N[4]=It,N[5]=je,N[6]=ot,N[7]=pe,N[8]=Ie,N[9]=Je,N[10]=rt,N[11]=$t,N[12]=mt,N[13]=dt,N[14]=Qt,N[15]=rr,N[16]=nr,N[17]=Bt,N[18]=jt,F!==0&&(N[19]=F,k.length++),k};function _(R,D,k){return new E().mulp(R,D,k)}function E(R,D){this.x=R,this.y=D}Math.imul||(b=v),a.prototype.mulTo=function(R,D){var k=this.length+R.length;return this.length===10&&R.length===10?b(this,R,D):k<63?v(this,R,D):k<1024?function(x,S,C){C.negative=S.negative^x.negative,C.length=x.length+S.length;for(var T=0,M=0,N=0;N>>26)|0)>>>26,F&=67108863}C.words[N]=Z,T=F,F=M}return T!==0?C.words[N]=T:C.length--,C.strip()}(this,R,D):_(this,R,D)},E.prototype.makeRBT=function(R){for(var D=new Array(R),k=a.prototype._countBits(R)-1,x=0;x>=1;return x},E.prototype.permute=function(R,D,k,x,S,C){for(var T=0;T>>=1)S++;return 1<>>=13,k[2*C+1]=8191&S,S>>>=13;for(C=2*D;C>=26,D+=x/67108864|0,D+=S>>>26,this.words[k]=67108863&S}return D!==0&&(this.words[k]=D,this.length++),this},a.prototype.muln=function(R){return this.clone().imuln(R)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(R){var D=function(C){for(var T=new Array(C.bitLength()),M=0;M>>F}return T}(R);if(D.length===0)return new a(1);for(var k=this,x=0;x=0);var D,k=R%26,x=(R-k)/26,S=67108863>>>26-k<<26-k;if(k!==0){var C=0;for(D=0;D>>26-k}C&&(this.words[D]=C,this.length++)}if(x!==0){for(D=this.length-1;D>=0;D--)this.words[D+x]=this.words[D];for(D=0;D=0),x=D?(D-D%26)/26:0;var S=R%26,C=Math.min((R-S)/26,this.length),T=67108863^67108863>>>S<C)for(this.length-=C,N=0;N=0&&(F!==0||N>=x);N--){var Z=0|this.words[N];this.words[N]=F<<26-S|Z>>>S,F=Z&T}return M&&F!==0&&(M.words[M.length++]=F),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(R,D,k){return c(this.negative===0),this.iushrn(R,D,k)},a.prototype.shln=function(R){return this.clone().ishln(R)},a.prototype.ushln=function(R){return this.clone().iushln(R)},a.prototype.shrn=function(R){return this.clone().ishrn(R)},a.prototype.ushrn=function(R){return this.clone().iushrn(R)},a.prototype.testn=function(R){c(typeof R=="number"&&R>=0);var D=R%26,k=(R-D)/26,x=1<=0);var D=R%26,k=(R-D)/26;if(c(this.negative===0,"imaskn works only with positive numbers"),this.length<=k)return this;if(D!==0&&k++,this.length=Math.min(k,this.length),D!==0){var x=67108863^67108863>>>D<=67108864;D++)this.words[D]-=67108864,D===this.length-1?this.words[D+1]=1:this.words[D+1]++;return this.length=Math.max(this.length,D+1),this},a.prototype.isubn=function(R){if(c(typeof R=="number"),c(R<67108864),R<0)return this.iaddn(-R);if(this.negative!==0)return this.negative=0,this.iaddn(R),this.negative=1,this;if(this.words[0]-=R,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var D=0;D>26)-(M/67108864|0),this.words[x+k]=67108863&S}for(;x>26,this.words[x+k]=67108863&S;if(T===0)return this.strip();for(c(T===-1),T=0,x=0;x>26,this.words[x]=67108863&S;return this.negative=1,this.strip()},a.prototype._wordDiv=function(R,D){var k=(this.length,R.length),x=this.clone(),S=R,C=0|S.words[S.length-1];(k=26-this._countBits(C))!==0&&(S=S.ushln(k),x.iushln(k),C=0|S.words[S.length-1]);var T,M=x.length-S.length;if(D!=="mod"){(T=new a(null)).length=M+1,T.words=new Array(T.length);for(var N=0;N=0;Z--){var H=67108864*(0|x.words[S.length+Z])+(0|x.words[S.length+Z-1]);for(H=Math.min(H/C|0,67108863),x._ishlnsubmul(S,H,Z);x.negative!==0;)H--,x.negative=0,x._ishlnsubmul(S,1,Z),x.isZero()||(x.negative^=1);T&&(T.words[Z]=H)}return T&&T.strip(),x.strip(),D!=="div"&&k!==0&&x.iushrn(k),{div:T||null,mod:x}},a.prototype.divmod=function(R,D,k){return c(!R.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:this.negative!==0&&R.negative===0?(C=this.neg().divmod(R,D),D!=="mod"&&(x=C.div.neg()),D!=="div"&&(S=C.mod.neg(),k&&S.negative!==0&&S.iadd(R)),{div:x,mod:S}):this.negative===0&&R.negative!==0?(C=this.divmod(R.neg(),D),D!=="mod"&&(x=C.div.neg()),{div:x,mod:C.mod}):this.negative&R.negative?(C=this.neg().divmod(R.neg(),D),D!=="div"&&(S=C.mod.neg(),k&&S.negative!==0&&S.isub(R)),{div:C.div,mod:S}):R.length>this.length||this.cmp(R)<0?{div:new a(0),mod:this}:R.length===1?D==="div"?{div:this.divn(R.words[0]),mod:null}:D==="mod"?{div:null,mod:new a(this.modn(R.words[0]))}:{div:this.divn(R.words[0]),mod:new a(this.modn(R.words[0]))}:this._wordDiv(R,D);var x,S,C},a.prototype.div=function(R){return this.divmod(R,"div",!1).div},a.prototype.mod=function(R){return this.divmod(R,"mod",!1).mod},a.prototype.umod=function(R){return this.divmod(R,"mod",!0).mod},a.prototype.divRound=function(R){var D=this.divmod(R);if(D.mod.isZero())return D.div;var k=D.div.negative!==0?D.mod.isub(R):D.mod,x=R.ushrn(1),S=R.andln(1),C=k.cmp(x);return C<0||S===1&&C===0?D.div:D.div.negative!==0?D.div.isubn(1):D.div.iaddn(1)},a.prototype.modn=function(R){c(R<=67108863);for(var D=(1<<26)%R,k=0,x=this.length-1;x>=0;x--)k=(D*k+(0|this.words[x]))%R;return k},a.prototype.idivn=function(R){c(R<=67108863);for(var D=0,k=this.length-1;k>=0;k--){var x=(0|this.words[k])+67108864*D;this.words[k]=x/R|0,D=x%R}return this.strip()},a.prototype.divn=function(R){return this.clone().idivn(R)},a.prototype.egcd=function(R){c(R.negative===0),c(!R.isZero());var D=this,k=R.clone();D=D.negative!==0?D.umod(R):D.clone();for(var x=new a(1),S=new a(0),C=new a(0),T=new a(1),M=0;D.isEven()&&k.isEven();)D.iushrn(1),k.iushrn(1),++M;for(var N=k.clone(),F=D.clone();!D.isZero();){for(var Z=0,H=1;!(D.words[0]&H)&&Z<26;++Z,H<<=1);if(Z>0)for(D.iushrn(Z);Z-- >0;)(x.isOdd()||S.isOdd())&&(x.iadd(N),S.isub(F)),x.iushrn(1),S.iushrn(1);for(var ee=0,B=1;!(k.words[0]&B)&&ee<26;++ee,B<<=1);if(ee>0)for(k.iushrn(ee);ee-- >0;)(C.isOdd()||T.isOdd())&&(C.iadd(N),T.isub(F)),C.iushrn(1),T.iushrn(1);D.cmp(k)>=0?(D.isub(k),x.isub(C),S.isub(T)):(k.isub(D),C.isub(x),T.isub(S))}return{a:C,b:T,gcd:k.iushln(M)}},a.prototype._invmp=function(R){c(R.negative===0),c(!R.isZero());var D=this,k=R.clone();D=D.negative!==0?D.umod(R):D.clone();for(var x,S=new a(1),C=new a(0),T=k.clone();D.cmpn(1)>0&&k.cmpn(1)>0;){for(var M=0,N=1;!(D.words[0]&N)&&M<26;++M,N<<=1);if(M>0)for(D.iushrn(M);M-- >0;)S.isOdd()&&S.iadd(T),S.iushrn(1);for(var F=0,Z=1;!(k.words[0]&Z)&&F<26;++F,Z<<=1);if(F>0)for(k.iushrn(F);F-- >0;)C.isOdd()&&C.iadd(T),C.iushrn(1);D.cmp(k)>=0?(D.isub(k),S.isub(C)):(k.isub(D),C.isub(S))}return(x=D.cmpn(1)===0?S:C).cmpn(0)<0&&x.iadd(R),x},a.prototype.gcd=function(R){if(this.isZero())return R.abs();if(R.isZero())return this.abs();var D=this.clone(),k=R.clone();D.negative=0,k.negative=0;for(var x=0;D.isEven()&&k.isEven();x++)D.iushrn(1),k.iushrn(1);for(;;){for(;D.isEven();)D.iushrn(1);for(;k.isEven();)k.iushrn(1);var S=D.cmp(k);if(S<0){var C=D;D=k,k=C}else if(S===0||k.cmpn(1)===0)break;D.isub(k)}return k.iushln(x)},a.prototype.invm=function(R){return this.egcd(R).a.umod(R)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(R){return this.words[0]&R},a.prototype.bincn=function(R){c(typeof R=="number");var D=R%26,k=(R-D)/26,x=1<>>26,T&=67108863,this.words[C]=T}return S!==0&&(this.words[C]=S,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(R){var D,k=R<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;if(this.strip(),this.length>1)D=1;else{k&&(R=-R),c(R<=67108863,"Number is too big");var x=0|this.words[0];D=x===R?0:xR.length)return 1;if(this.length=0;k--){var x=0|this.words[k],S=0|R.words[k];if(x!==S){xS&&(D=1);break}}return D},a.prototype.gtn=function(R){return this.cmpn(R)===1},a.prototype.gt=function(R){return this.cmp(R)===1},a.prototype.gten=function(R){return this.cmpn(R)>=0},a.prototype.gte=function(R){return this.cmp(R)>=0},a.prototype.ltn=function(R){return this.cmpn(R)===-1},a.prototype.lt=function(R){return this.cmp(R)===-1},a.prototype.lten=function(R){return this.cmpn(R)<=0},a.prototype.lte=function(R){return this.cmp(R)<=0},a.prototype.eqn=function(R){return this.cmpn(R)===0},a.prototype.eq=function(R){return this.cmp(R)===0},a.red=function(R){return new Y(R)},a.prototype.toRed=function(R){return c(!this.red,"Already a number in reduction context"),c(this.negative===0,"red works only with positives"),R.convertTo(this)._forceRed(R)},a.prototype.fromRed=function(){return c(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(R){return this.red=R,this},a.prototype.forceRed=function(R){return c(!this.red,"Already a number in reduction context"),this._forceRed(R)},a.prototype.redAdd=function(R){return c(this.red,"redAdd works only with red numbers"),this.red.add(this,R)},a.prototype.redIAdd=function(R){return c(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,R)},a.prototype.redSub=function(R){return c(this.red,"redSub works only with red numbers"),this.red.sub(this,R)},a.prototype.redISub=function(R){return c(this.red,"redISub works only with red numbers"),this.red.isub(this,R)},a.prototype.redShl=function(R){return c(this.red,"redShl works only with red numbers"),this.red.shl(this,R)},a.prototype.redMul=function(R){return c(this.red,"redMul works only with red numbers"),this.red._verify2(this,R),this.red.mul(this,R)},a.prototype.redIMul=function(R){return c(this.red,"redMul works only with red numbers"),this.red._verify2(this,R),this.red.imul(this,R)},a.prototype.redSqr=function(){return c(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return c(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return c(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return c(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return c(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(R){return c(this.red&&!R.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,R)};var O={k256:null,p224:null,p192:null,p25519:null};function j(R,D){this.name=R,this.p=new a(D,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function W(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function z(){j.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function U(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function K(){j.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function Y(R){if(typeof R=="string"){var D=a._prime(R);this.m=D.p,this.prime=D}else c(R.gtn(1),"modulus must be greater than 1"),this.m=R,this.prime=null}function G(R){Y.call(this,R),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)}j.prototype._tmp=function(){var R=new a(null);return R.words=new Array(Math.ceil(this.n/13)),R},j.prototype.ireduce=function(R){var D,k=R;do this.split(k,this.tmp),D=(k=(k=this.imulK(k)).iadd(this.tmp)).bitLength();while(D>this.n);var x=D0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},j.prototype.split=function(R,D){R.iushrn(this.n,0,D)},j.prototype.imulK=function(R){return R.imul(this.k)},l(W,j),W.prototype.split=function(R,D){for(var k=Math.min(R.length,9),x=0;x>>22,S=C}S>>>=22,R.words[x-10]=S,S===0&&R.length>10?R.length-=10:R.length-=9},W.prototype.imulK=function(R){R.words[R.length]=0,R.words[R.length+1]=0,R.length+=2;for(var D=0,k=0;k>>=26,R.words[k]=S,D=x}return D!==0&&(R.words[R.length++]=D),R},a._prime=function(R){if(O[R])return O[R];var D;if(R==="k256")D=new W;else if(R==="p224")D=new z;else if(R==="p192")D=new U;else{if(R!=="p25519")throw new Error("Unknown prime "+R);D=new K}return O[R]=D,D},Y.prototype._verify1=function(R){c(R.negative===0,"red works only with positives"),c(R.red,"red works only with red numbers")},Y.prototype._verify2=function(R,D){c((R.negative|D.negative)==0,"red works only with positives"),c(R.red&&R.red===D.red,"red works only with red numbers")},Y.prototype.imod=function(R){return this.prime?this.prime.ireduce(R)._forceRed(this):R.umod(this.m)._forceRed(this)},Y.prototype.neg=function(R){return R.isZero()?R.clone():this.m.sub(R)._forceRed(this)},Y.prototype.add=function(R,D){this._verify2(R,D);var k=R.add(D);return k.cmp(this.m)>=0&&k.isub(this.m),k._forceRed(this)},Y.prototype.iadd=function(R,D){this._verify2(R,D);var k=R.iadd(D);return k.cmp(this.m)>=0&&k.isub(this.m),k},Y.prototype.sub=function(R,D){this._verify2(R,D);var k=R.sub(D);return k.cmpn(0)<0&&k.iadd(this.m),k._forceRed(this)},Y.prototype.isub=function(R,D){this._verify2(R,D);var k=R.isub(D);return k.cmpn(0)<0&&k.iadd(this.m),k},Y.prototype.shl=function(R,D){return this._verify1(R),this.imod(R.ushln(D))},Y.prototype.imul=function(R,D){return this._verify2(R,D),this.imod(R.imul(D))},Y.prototype.mul=function(R,D){return this._verify2(R,D),this.imod(R.mul(D))},Y.prototype.isqr=function(R){return this.imul(R,R.clone())},Y.prototype.sqr=function(R){return this.mul(R,R)},Y.prototype.sqrt=function(R){if(R.isZero())return R.clone();var D=this.m.andln(3);if(c(D%2==1),D===3){var k=this.m.add(new a(1)).iushrn(2);return this.pow(R,k)}for(var x=this.m.subn(1),S=0;!x.isZero()&&x.andln(1)===0;)S++,x.iushrn(1);c(!x.isZero());var C=new a(1).toRed(this),T=C.redNeg(),M=this.m.subn(1).iushrn(1),N=this.m.bitLength();for(N=new a(2*N*N).toRed(this);this.pow(N,M).cmp(T)!==0;)N.redIAdd(T);for(var F=this.pow(N,x),Z=this.pow(R,x.addn(1).iushrn(1)),H=this.pow(R,x),ee=S;H.cmp(C)!==0;){for(var B=H,J=0;B.cmp(C)!==0;J++)B=B.redSqr();c(J=0;x--){for(var N=D.words[x],F=M-1;F>=0;F--){var Z=N>>F&1;S!==k[0]&&(S=this.sqr(S)),Z!==0||C!==0?(C<<=1,C|=Z,(++T===4||x===0&&F===0)&&(S=this.mul(S,k[C]),T=0,C=0)):T=0}M=26}return S},Y.prototype.convertTo=function(R){var D=R.umod(this.m);return D===R?D.clone():D},Y.prototype.convertFrom=function(R){var D=R.clone();return D.red=null,D},a.mont=function(R){return new G(R)},l(G,Y),G.prototype.convertTo=function(R){return this.imod(R.ushln(this.shift))},G.prototype.convertFrom=function(R){var D=this.imod(R.mul(this.rinv));return D.red=null,D},G.prototype.imul=function(R,D){if(R.isZero()||D.isZero())return R.words[0]=0,R.length=1,R;var k=R.imul(D),x=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=k.isub(x).iushrn(this.shift),C=S;return S.cmp(this.m)>=0?C=S.isub(this.m):S.cmpn(0)<0&&(C=S.iadd(this.m)),C._forceRed(this)},G.prototype.mul=function(R,D){if(R.isZero()||D.isZero())return new a(0)._forceRed(this);var k=R.mul(D),x=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=k.isub(x).iushrn(this.shift),C=S;return S.cmp(this.m)>=0?C=S.isub(this.m):S.cmpn(0)<0&&(C=S.iadd(this.m)),C._forceRed(this)},G.prototype.invm=function(R){return this.imod(R._invmp(this.m).mul(this.r2))._forceRed(this)}})(n===void 0||n)},{buffer:188}],185:[function(e,n,o){o.byteLength=function(d){var m=u(d),p=m[0],g=m[1];return 3*(p+g)/4-g},o.toByteArray=function(d){var m,p,g=u(d),v=g[0],b=g[1],_=new c(function(j,W,z){return 3*(W+z)/4-z}(0,v,b)),E=0,O=b>0?v-4:v;for(p=0;p>16&255,_[E++]=m>>8&255,_[E++]=255&m;return b===2&&(m=i[d.charCodeAt(p)]<<2|i[d.charCodeAt(p+1)]>>4,_[E++]=255&m),b===1&&(m=i[d.charCodeAt(p)]<<10|i[d.charCodeAt(p+1)]<<4|i[d.charCodeAt(p+2)]>>2,_[E++]=m>>8&255,_[E++]=255&m),_},o.fromByteArray=function(d){for(var m,p=d.length,g=p%3,v=[],b=0,_=p-g;b<_;b+=16383)v.push(f(d,b,b+16383>_?_:b+16383));return g===1?(m=d[p-1],v.push(s[m>>2]+s[m<<4&63]+"==")):g===2&&(m=(d[p-2]<<8)+d[p-1],v.push(s[m>>10]+s[m>>4&63]+s[m<<2&63]+"=")),v.join("")};for(var s=[],i=[],c=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,h=l.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var p=d.indexOf("=");return p===-1&&(p=m),[p,p===m?0:4-p%4]}function f(d,m,p){for(var g,v,b=[],_=m;_>18&63]+s[v>>12&63]+s[v>>6&63]+s[63&v]);return b.join("")}i[45]=62,i[95]=63},{}],186:[function(e,n,o){(function(s,i){function c(k,x){if(!k)throw new Error(x||"Assertion failed")}function l(k,x){k.super_=x;var S=function(){};S.prototype=x.prototype,k.prototype=new S,k.prototype.constructor=k}function a(k,x,S){if(a.isBN(k))return k;this.negative=0,this.words=null,this.length=0,this.red=null,k!==null&&(x!=="le"&&x!=="be"||(S=x,x=10),this._init(k||0,x||10,S||"be"))}var h;typeof s=="object"?s.exports=a:(void 0).BN=a,a.BN=a,a.wordSize=26;try{h=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:e("buffer").Buffer}catch{}function u(k,x){var S=k.charCodeAt(x);return S>=48&&S<=57?S-48:S>=65&&S<=70?S-55:S>=97&&S<=102?S-87:void c(!1,"Invalid character in "+k)}function f(k,x,S){var C=u(k,S);return S-1>=x&&(C|=u(k,S-1)<<4),C}function d(k,x,S,C){for(var T=0,M=0,N=Math.min(k.length,S),F=x;F=49?Z-49+10:Z>=17?Z-17+10:Z,c(Z>=0&&M0?k:x},a.min=function(k,x){return k.cmp(x)<0?k:x},a.prototype._init=function(k,x,S){if(typeof k=="number")return this._initNumber(k,x,S);if(typeof k=="object")return this._initArray(k,x,S);x==="hex"&&(x=16),c(x===(0|x)&&x>=2&&x<=36);var C=0;(k=k.toString().replace(/\s+/g,""))[0]==="-"&&(C++,this.negative=1),C=0;C-=3)M=k[C]|k[C-1]<<8|k[C-2]<<16,this.words[T]|=M<>>26-N&67108863,(N+=24)>=26&&(N-=26,T++);else if(S==="le")for(C=0,T=0;C>>26-N&67108863,(N+=24)>=26&&(N-=26,T++);return this._strip()},a.prototype._parseHex=function(k,x,S){this.length=Math.ceil((k.length-x)/6),this.words=new Array(this.length);for(var C=0;C=x;C-=2)T=f(k,x,C)<=18?(M-=18,N+=1,this.words[N]|=T>>>26):M+=8;else for(C=(k.length-x)%2==0?x+1:x;C=18?(M-=18,N+=1,this.words[N]|=T>>>26):M+=8;this._strip()},a.prototype._parseBase=function(k,x,S){this.words=[0],this.length=1;for(var C=0,T=1;T<=67108863;T*=x)C++;C--,T=T/x|0;for(var M=k.length-S,N=M%C,F=Math.min(M,M-N)+S,Z=0,H=S;H1&&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")]=p}catch{a.prototype.inspect=p}else a.prototype.inspect=p;function p(){return(this.red?""}var g=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],v=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],b=[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(k,x){var S;if(x=0|x||1,(k=k||10)===16||k==="hex"){S="";for(var C=0,T=0,M=0;M>>24-C&16777215,(C+=2)>=26&&(C-=26,M--),S=T!==0||M!==this.length-1?g[6-F.length]+F+S:F+S}for(T!==0&&(S=T.toString(16)+S);S.length%x!=0;)S="0"+S;return this.negative!==0&&(S="-"+S),S}if(k===(0|k)&&k>=2&&k<=36){var Z=v[k],H=b[k];S="";var ee=this.clone();for(ee.negative=0;!ee.isZero();){var B=ee.modrn(H).toString(k);S=(ee=ee.idivn(H)).isZero()?B+S:g[Z-B.length]+B+S}for(this.isZero()&&(S="0"+S);S.length%x!=0;)S="0"+S;return this.negative!==0&&(S="-"+S),S}c(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var k=this.words[0];return this.length===2?k+=67108864*this.words[1]:this.length===3&&this.words[2]===1?k+=4503599627370496+67108864*this.words[1]:this.length>2&&c(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-k:k},a.prototype.toJSON=function(){return this.toString(16,2)},h&&(a.prototype.toBuffer=function(k,x){return this.toArrayLike(h,k,x)}),a.prototype.toArray=function(k,x){return this.toArrayLike(Array,k,x)};function _(k,x,S){S.negative=x.negative^k.negative;var C=k.length+x.length|0;S.length=C,C=C-1|0;var T=0|k.words[0],M=0|x.words[0],N=T*M,F=67108863&N,Z=N/67108864|0;S.words[0]=F;for(var H=1;H>>26,B=67108863&Z,J=Math.min(H,x.length-1),I=Math.max(0,H-k.length+1);I<=J;I++){var $=H-I|0;ee+=(N=(T=0|k.words[$])*(M=0|x.words[I])+B)/67108864|0,B=67108863&N}S.words[H]=0|B,Z=0|ee}return Z!==0?S.words[H]=0|Z:S.length--,S._strip()}a.prototype.toArrayLike=function(k,x,S){this._strip();var C=this.byteLength(),T=S||Math.max(1,C);c(C<=T,"byte array longer than desired length"),c(T>0,"Requested array length <= 0");var M=function(N,F){return N.allocUnsafe?N.allocUnsafe(F):new N(F)}(k,T);return this["_toArrayLike"+(x==="le"?"LE":"BE")](M,C),M},a.prototype._toArrayLikeLE=function(k,x){for(var S=0,C=0,T=0,M=0;T>8&255),S>16&255),M===6?(S>24&255),C=0,M=0):(C=N>>>24,M+=2)}if(S=0&&(k[S--]=N>>8&255),S>=0&&(k[S--]=N>>16&255),M===6?(S>=0&&(k[S--]=N>>24&255),C=0,M=0):(C=N>>>24,M+=2)}if(S>=0)for(k[S--]=C;S>=0;)k[S--]=0},Math.clz32?a.prototype._countBits=function(k){return 32-Math.clz32(k)}:a.prototype._countBits=function(k){var x=k,S=0;return x>=4096&&(S+=13,x>>>=13),x>=64&&(S+=7,x>>>=7),x>=8&&(S+=4,x>>>=4),x>=2&&(S+=2,x>>>=2),S+x},a.prototype._zeroBits=function(k){if(k===0)return 26;var x=k,S=0;return!(8191&x)&&(S+=13,x>>>=13),!(127&x)&&(S+=7,x>>>=7),!(15&x)&&(S+=4,x>>>=4),!(3&x)&&(S+=2,x>>>=2),!(1&x)&&S++,S},a.prototype.bitLength=function(){var k=this.words[this.length-1],x=this._countBits(k);return 26*(this.length-1)+x},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var k=0,x=0;xk.length?this.clone().ior(k):k.clone().ior(this)},a.prototype.uor=function(k){return this.length>k.length?this.clone().iuor(k):k.clone().iuor(this)},a.prototype.iuand=function(k){var x;x=this.length>k.length?k:this;for(var S=0;Sk.length?this.clone().iand(k):k.clone().iand(this)},a.prototype.uand=function(k){return this.length>k.length?this.clone().iuand(k):k.clone().iuand(this)},a.prototype.iuxor=function(k){var x,S;this.length>k.length?(x=this,S=k):(x=k,S=this);for(var C=0;Ck.length?this.clone().ixor(k):k.clone().ixor(this)},a.prototype.uxor=function(k){return this.length>k.length?this.clone().iuxor(k):k.clone().iuxor(this)},a.prototype.inotn=function(k){c(typeof k=="number"&&k>=0);var x=0|Math.ceil(k/26),S=k%26;this._expand(x),S>0&&x--;for(var C=0;C0&&(this.words[C]=~this.words[C]&67108863>>26-S),this._strip()},a.prototype.notn=function(k){return this.clone().inotn(k)},a.prototype.setn=function(k,x){c(typeof k=="number"&&k>=0);var S=k/26|0,C=k%26;return this._expand(S+1),this.words[S]=x?this.words[S]|1<k.length?(S=this,C=k):(S=k,C=this);for(var T=0,M=0;M>>26;for(;T!==0&&M>>26;if(this.length=S.length,T!==0)this.words[this.length]=T,this.length++;else if(S!==this)for(;Mk.length?this.clone().iadd(k):k.clone().iadd(this)},a.prototype.isub=function(k){if(k.negative!==0){k.negative=0;var x=this.iadd(k);return k.negative=1,x._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(k),this.negative=1,this._normSign();var S,C,T=this.cmp(k);if(T===0)return this.negative=0,this.length=1,this.words[0]=0,this;T>0?(S=this,C=k):(S=k,C=this);for(var M=0,N=0;N>26,this.words[N]=67108863&x;for(;M!==0&&N>26,this.words[N]=67108863&x;if(M===0&&N>>13,I=0|N[1],$=8191&I,X=I>>>13,ae=0|N[2],fe=8191&ae,te=ae>>>13,ie=0|N[3],de=8191&ie,me=ie>>>13,se=0|N[4],ve=8191&se,be=se>>>13,ke=0|N[5],Ce=8191&ke,Ee=ke>>>13,Me=0|N[6],Le=8191&Me,Ae=Me>>>13,Fe=0|N[7],Ge=8191&Fe,Ye=Fe>>>13,lt=0|N[8],vt=8191<,xt=lt>>>13,Tt=0|N[9],gt=8191&Tt,ct=Tt>>>13,bt=0|F[0],wt=8191&bt,ft=bt>>>13,or=0|F[1],Rr=8191&or,Vt=or>>>13,sr=0|F[2],ar=8191&sr,Nt=sr>>>13,_r=0|F[3],wr=8191&_r,Ut=_r>>>13,vr=0|F[4],gr=8191&vr,qt=vr>>>13,Sr=0|F[5],Tr=8191&Sr,Zt=Sr>>>13,Re=0|F[6],ue=8191&Re,le=Re>>>13,Te=0|F[7],ye=8191&Te,xe=Te>>>13,Xe=0|F[8],Qe=8191&Xe,ut=Xe>>>13,yt=0|F[9],Ct=8191&yt,_t=yt>>>13;S.negative=k.negative^x.negative,S.length=19;var Dt=(H+(C=Math.imul(B,wt))|0)+((8191&(T=(T=Math.imul(B,ft))+Math.imul(J,wt)|0))<<13)|0;H=((M=Math.imul(J,ft))+(T>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,C=Math.imul($,wt),T=(T=Math.imul($,ft))+Math.imul(X,wt)|0,M=Math.imul(X,ft);var Xt=(H+(C=C+Math.imul(B,Rr)|0)|0)+((8191&(T=(T=T+Math.imul(B,Vt)|0)+Math.imul(J,Rr)|0))<<13)|0;H=((M=M+Math.imul(J,Vt)|0)+(T>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,C=Math.imul(fe,wt),T=(T=Math.imul(fe,ft))+Math.imul(te,wt)|0,M=Math.imul(te,ft),C=C+Math.imul($,Rr)|0,T=(T=T+Math.imul($,Vt)|0)+Math.imul(X,Rr)|0,M=M+Math.imul(X,Vt)|0;var It=(H+(C=C+Math.imul(B,ar)|0)|0)+((8191&(T=(T=T+Math.imul(B,Nt)|0)+Math.imul(J,ar)|0))<<13)|0;H=((M=M+Math.imul(J,Nt)|0)+(T>>>13)|0)+(It>>>26)|0,It&=67108863,C=Math.imul(de,wt),T=(T=Math.imul(de,ft))+Math.imul(me,wt)|0,M=Math.imul(me,ft),C=C+Math.imul(fe,Rr)|0,T=(T=T+Math.imul(fe,Vt)|0)+Math.imul(te,Rr)|0,M=M+Math.imul(te,Vt)|0,C=C+Math.imul($,ar)|0,T=(T=T+Math.imul($,Nt)|0)+Math.imul(X,ar)|0,M=M+Math.imul(X,Nt)|0;var je=(H+(C=C+Math.imul(B,wr)|0)|0)+((8191&(T=(T=T+Math.imul(B,Ut)|0)+Math.imul(J,wr)|0))<<13)|0;H=((M=M+Math.imul(J,Ut)|0)+(T>>>13)|0)+(je>>>26)|0,je&=67108863,C=Math.imul(ve,wt),T=(T=Math.imul(ve,ft))+Math.imul(be,wt)|0,M=Math.imul(be,ft),C=C+Math.imul(de,Rr)|0,T=(T=T+Math.imul(de,Vt)|0)+Math.imul(me,Rr)|0,M=M+Math.imul(me,Vt)|0,C=C+Math.imul(fe,ar)|0,T=(T=T+Math.imul(fe,Nt)|0)+Math.imul(te,ar)|0,M=M+Math.imul(te,Nt)|0,C=C+Math.imul($,wr)|0,T=(T=T+Math.imul($,Ut)|0)+Math.imul(X,wr)|0,M=M+Math.imul(X,Ut)|0;var ot=(H+(C=C+Math.imul(B,gr)|0)|0)+((8191&(T=(T=T+Math.imul(B,qt)|0)+Math.imul(J,gr)|0))<<13)|0;H=((M=M+Math.imul(J,qt)|0)+(T>>>13)|0)+(ot>>>26)|0,ot&=67108863,C=Math.imul(Ce,wt),T=(T=Math.imul(Ce,ft))+Math.imul(Ee,wt)|0,M=Math.imul(Ee,ft),C=C+Math.imul(ve,Rr)|0,T=(T=T+Math.imul(ve,Vt)|0)+Math.imul(be,Rr)|0,M=M+Math.imul(be,Vt)|0,C=C+Math.imul(de,ar)|0,T=(T=T+Math.imul(de,Nt)|0)+Math.imul(me,ar)|0,M=M+Math.imul(me,Nt)|0,C=C+Math.imul(fe,wr)|0,T=(T=T+Math.imul(fe,Ut)|0)+Math.imul(te,wr)|0,M=M+Math.imul(te,Ut)|0,C=C+Math.imul($,gr)|0,T=(T=T+Math.imul($,qt)|0)+Math.imul(X,gr)|0,M=M+Math.imul(X,qt)|0;var pe=(H+(C=C+Math.imul(B,Tr)|0)|0)+((8191&(T=(T=T+Math.imul(B,Zt)|0)+Math.imul(J,Tr)|0))<<13)|0;H=((M=M+Math.imul(J,Zt)|0)+(T>>>13)|0)+(pe>>>26)|0,pe&=67108863,C=Math.imul(Le,wt),T=(T=Math.imul(Le,ft))+Math.imul(Ae,wt)|0,M=Math.imul(Ae,ft),C=C+Math.imul(Ce,Rr)|0,T=(T=T+Math.imul(Ce,Vt)|0)+Math.imul(Ee,Rr)|0,M=M+Math.imul(Ee,Vt)|0,C=C+Math.imul(ve,ar)|0,T=(T=T+Math.imul(ve,Nt)|0)+Math.imul(be,ar)|0,M=M+Math.imul(be,Nt)|0,C=C+Math.imul(de,wr)|0,T=(T=T+Math.imul(de,Ut)|0)+Math.imul(me,wr)|0,M=M+Math.imul(me,Ut)|0,C=C+Math.imul(fe,gr)|0,T=(T=T+Math.imul(fe,qt)|0)+Math.imul(te,gr)|0,M=M+Math.imul(te,qt)|0,C=C+Math.imul($,Tr)|0,T=(T=T+Math.imul($,Zt)|0)+Math.imul(X,Tr)|0,M=M+Math.imul(X,Zt)|0;var Ie=(H+(C=C+Math.imul(B,ue)|0)|0)+((8191&(T=(T=T+Math.imul(B,le)|0)+Math.imul(J,ue)|0))<<13)|0;H=((M=M+Math.imul(J,le)|0)+(T>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,C=Math.imul(Ge,wt),T=(T=Math.imul(Ge,ft))+Math.imul(Ye,wt)|0,M=Math.imul(Ye,ft),C=C+Math.imul(Le,Rr)|0,T=(T=T+Math.imul(Le,Vt)|0)+Math.imul(Ae,Rr)|0,M=M+Math.imul(Ae,Vt)|0,C=C+Math.imul(Ce,ar)|0,T=(T=T+Math.imul(Ce,Nt)|0)+Math.imul(Ee,ar)|0,M=M+Math.imul(Ee,Nt)|0,C=C+Math.imul(ve,wr)|0,T=(T=T+Math.imul(ve,Ut)|0)+Math.imul(be,wr)|0,M=M+Math.imul(be,Ut)|0,C=C+Math.imul(de,gr)|0,T=(T=T+Math.imul(de,qt)|0)+Math.imul(me,gr)|0,M=M+Math.imul(me,qt)|0,C=C+Math.imul(fe,Tr)|0,T=(T=T+Math.imul(fe,Zt)|0)+Math.imul(te,Tr)|0,M=M+Math.imul(te,Zt)|0,C=C+Math.imul($,ue)|0,T=(T=T+Math.imul($,le)|0)+Math.imul(X,ue)|0,M=M+Math.imul(X,le)|0;var Je=(H+(C=C+Math.imul(B,ye)|0)|0)+((8191&(T=(T=T+Math.imul(B,xe)|0)+Math.imul(J,ye)|0))<<13)|0;H=((M=M+Math.imul(J,xe)|0)+(T>>>13)|0)+(Je>>>26)|0,Je&=67108863,C=Math.imul(vt,wt),T=(T=Math.imul(vt,ft))+Math.imul(xt,wt)|0,M=Math.imul(xt,ft),C=C+Math.imul(Ge,Rr)|0,T=(T=T+Math.imul(Ge,Vt)|0)+Math.imul(Ye,Rr)|0,M=M+Math.imul(Ye,Vt)|0,C=C+Math.imul(Le,ar)|0,T=(T=T+Math.imul(Le,Nt)|0)+Math.imul(Ae,ar)|0,M=M+Math.imul(Ae,Nt)|0,C=C+Math.imul(Ce,wr)|0,T=(T=T+Math.imul(Ce,Ut)|0)+Math.imul(Ee,wr)|0,M=M+Math.imul(Ee,Ut)|0,C=C+Math.imul(ve,gr)|0,T=(T=T+Math.imul(ve,qt)|0)+Math.imul(be,gr)|0,M=M+Math.imul(be,qt)|0,C=C+Math.imul(de,Tr)|0,T=(T=T+Math.imul(de,Zt)|0)+Math.imul(me,Tr)|0,M=M+Math.imul(me,Zt)|0,C=C+Math.imul(fe,ue)|0,T=(T=T+Math.imul(fe,le)|0)+Math.imul(te,ue)|0,M=M+Math.imul(te,le)|0,C=C+Math.imul($,ye)|0,T=(T=T+Math.imul($,xe)|0)+Math.imul(X,ye)|0,M=M+Math.imul(X,xe)|0;var rt=(H+(C=C+Math.imul(B,Qe)|0)|0)+((8191&(T=(T=T+Math.imul(B,ut)|0)+Math.imul(J,Qe)|0))<<13)|0;H=((M=M+Math.imul(J,ut)|0)+(T>>>13)|0)+(rt>>>26)|0,rt&=67108863,C=Math.imul(gt,wt),T=(T=Math.imul(gt,ft))+Math.imul(ct,wt)|0,M=Math.imul(ct,ft),C=C+Math.imul(vt,Rr)|0,T=(T=T+Math.imul(vt,Vt)|0)+Math.imul(xt,Rr)|0,M=M+Math.imul(xt,Vt)|0,C=C+Math.imul(Ge,ar)|0,T=(T=T+Math.imul(Ge,Nt)|0)+Math.imul(Ye,ar)|0,M=M+Math.imul(Ye,Nt)|0,C=C+Math.imul(Le,wr)|0,T=(T=T+Math.imul(Le,Ut)|0)+Math.imul(Ae,wr)|0,M=M+Math.imul(Ae,Ut)|0,C=C+Math.imul(Ce,gr)|0,T=(T=T+Math.imul(Ce,qt)|0)+Math.imul(Ee,gr)|0,M=M+Math.imul(Ee,qt)|0,C=C+Math.imul(ve,Tr)|0,T=(T=T+Math.imul(ve,Zt)|0)+Math.imul(be,Tr)|0,M=M+Math.imul(be,Zt)|0,C=C+Math.imul(de,ue)|0,T=(T=T+Math.imul(de,le)|0)+Math.imul(me,ue)|0,M=M+Math.imul(me,le)|0,C=C+Math.imul(fe,ye)|0,T=(T=T+Math.imul(fe,xe)|0)+Math.imul(te,ye)|0,M=M+Math.imul(te,xe)|0,C=C+Math.imul($,Qe)|0,T=(T=T+Math.imul($,ut)|0)+Math.imul(X,Qe)|0,M=M+Math.imul(X,ut)|0;var $t=(H+(C=C+Math.imul(B,Ct)|0)|0)+((8191&(T=(T=T+Math.imul(B,_t)|0)+Math.imul(J,Ct)|0))<<13)|0;H=((M=M+Math.imul(J,_t)|0)+(T>>>13)|0)+($t>>>26)|0,$t&=67108863,C=Math.imul(gt,Rr),T=(T=Math.imul(gt,Vt))+Math.imul(ct,Rr)|0,M=Math.imul(ct,Vt),C=C+Math.imul(vt,ar)|0,T=(T=T+Math.imul(vt,Nt)|0)+Math.imul(xt,ar)|0,M=M+Math.imul(xt,Nt)|0,C=C+Math.imul(Ge,wr)|0,T=(T=T+Math.imul(Ge,Ut)|0)+Math.imul(Ye,wr)|0,M=M+Math.imul(Ye,Ut)|0,C=C+Math.imul(Le,gr)|0,T=(T=T+Math.imul(Le,qt)|0)+Math.imul(Ae,gr)|0,M=M+Math.imul(Ae,qt)|0,C=C+Math.imul(Ce,Tr)|0,T=(T=T+Math.imul(Ce,Zt)|0)+Math.imul(Ee,Tr)|0,M=M+Math.imul(Ee,Zt)|0,C=C+Math.imul(ve,ue)|0,T=(T=T+Math.imul(ve,le)|0)+Math.imul(be,ue)|0,M=M+Math.imul(be,le)|0,C=C+Math.imul(de,ye)|0,T=(T=T+Math.imul(de,xe)|0)+Math.imul(me,ye)|0,M=M+Math.imul(me,xe)|0,C=C+Math.imul(fe,Qe)|0,T=(T=T+Math.imul(fe,ut)|0)+Math.imul(te,Qe)|0,M=M+Math.imul(te,ut)|0;var mt=(H+(C=C+Math.imul($,Ct)|0)|0)+((8191&(T=(T=T+Math.imul($,_t)|0)+Math.imul(X,Ct)|0))<<13)|0;H=((M=M+Math.imul(X,_t)|0)+(T>>>13)|0)+(mt>>>26)|0,mt&=67108863,C=Math.imul(gt,ar),T=(T=Math.imul(gt,Nt))+Math.imul(ct,ar)|0,M=Math.imul(ct,Nt),C=C+Math.imul(vt,wr)|0,T=(T=T+Math.imul(vt,Ut)|0)+Math.imul(xt,wr)|0,M=M+Math.imul(xt,Ut)|0,C=C+Math.imul(Ge,gr)|0,T=(T=T+Math.imul(Ge,qt)|0)+Math.imul(Ye,gr)|0,M=M+Math.imul(Ye,qt)|0,C=C+Math.imul(Le,Tr)|0,T=(T=T+Math.imul(Le,Zt)|0)+Math.imul(Ae,Tr)|0,M=M+Math.imul(Ae,Zt)|0,C=C+Math.imul(Ce,ue)|0,T=(T=T+Math.imul(Ce,le)|0)+Math.imul(Ee,ue)|0,M=M+Math.imul(Ee,le)|0,C=C+Math.imul(ve,ye)|0,T=(T=T+Math.imul(ve,xe)|0)+Math.imul(be,ye)|0,M=M+Math.imul(be,xe)|0,C=C+Math.imul(de,Qe)|0,T=(T=T+Math.imul(de,ut)|0)+Math.imul(me,Qe)|0,M=M+Math.imul(me,ut)|0;var dt=(H+(C=C+Math.imul(fe,Ct)|0)|0)+((8191&(T=(T=T+Math.imul(fe,_t)|0)+Math.imul(te,Ct)|0))<<13)|0;H=((M=M+Math.imul(te,_t)|0)+(T>>>13)|0)+(dt>>>26)|0,dt&=67108863,C=Math.imul(gt,wr),T=(T=Math.imul(gt,Ut))+Math.imul(ct,wr)|0,M=Math.imul(ct,Ut),C=C+Math.imul(vt,gr)|0,T=(T=T+Math.imul(vt,qt)|0)+Math.imul(xt,gr)|0,M=M+Math.imul(xt,qt)|0,C=C+Math.imul(Ge,Tr)|0,T=(T=T+Math.imul(Ge,Zt)|0)+Math.imul(Ye,Tr)|0,M=M+Math.imul(Ye,Zt)|0,C=C+Math.imul(Le,ue)|0,T=(T=T+Math.imul(Le,le)|0)+Math.imul(Ae,ue)|0,M=M+Math.imul(Ae,le)|0,C=C+Math.imul(Ce,ye)|0,T=(T=T+Math.imul(Ce,xe)|0)+Math.imul(Ee,ye)|0,M=M+Math.imul(Ee,xe)|0,C=C+Math.imul(ve,Qe)|0,T=(T=T+Math.imul(ve,ut)|0)+Math.imul(be,Qe)|0,M=M+Math.imul(be,ut)|0;var Qt=(H+(C=C+Math.imul(de,Ct)|0)|0)+((8191&(T=(T=T+Math.imul(de,_t)|0)+Math.imul(me,Ct)|0))<<13)|0;H=((M=M+Math.imul(me,_t)|0)+(T>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,C=Math.imul(gt,gr),T=(T=Math.imul(gt,qt))+Math.imul(ct,gr)|0,M=Math.imul(ct,qt),C=C+Math.imul(vt,Tr)|0,T=(T=T+Math.imul(vt,Zt)|0)+Math.imul(xt,Tr)|0,M=M+Math.imul(xt,Zt)|0,C=C+Math.imul(Ge,ue)|0,T=(T=T+Math.imul(Ge,le)|0)+Math.imul(Ye,ue)|0,M=M+Math.imul(Ye,le)|0,C=C+Math.imul(Le,ye)|0,T=(T=T+Math.imul(Le,xe)|0)+Math.imul(Ae,ye)|0,M=M+Math.imul(Ae,xe)|0,C=C+Math.imul(Ce,Qe)|0,T=(T=T+Math.imul(Ce,ut)|0)+Math.imul(Ee,Qe)|0,M=M+Math.imul(Ee,ut)|0;var rr=(H+(C=C+Math.imul(ve,Ct)|0)|0)+((8191&(T=(T=T+Math.imul(ve,_t)|0)+Math.imul(be,Ct)|0))<<13)|0;H=((M=M+Math.imul(be,_t)|0)+(T>>>13)|0)+(rr>>>26)|0,rr&=67108863,C=Math.imul(gt,Tr),T=(T=Math.imul(gt,Zt))+Math.imul(ct,Tr)|0,M=Math.imul(ct,Zt),C=C+Math.imul(vt,ue)|0,T=(T=T+Math.imul(vt,le)|0)+Math.imul(xt,ue)|0,M=M+Math.imul(xt,le)|0,C=C+Math.imul(Ge,ye)|0,T=(T=T+Math.imul(Ge,xe)|0)+Math.imul(Ye,ye)|0,M=M+Math.imul(Ye,xe)|0,C=C+Math.imul(Le,Qe)|0,T=(T=T+Math.imul(Le,ut)|0)+Math.imul(Ae,Qe)|0,M=M+Math.imul(Ae,ut)|0;var nr=(H+(C=C+Math.imul(Ce,Ct)|0)|0)+((8191&(T=(T=T+Math.imul(Ce,_t)|0)+Math.imul(Ee,Ct)|0))<<13)|0;H=((M=M+Math.imul(Ee,_t)|0)+(T>>>13)|0)+(nr>>>26)|0,nr&=67108863,C=Math.imul(gt,ue),T=(T=Math.imul(gt,le))+Math.imul(ct,ue)|0,M=Math.imul(ct,le),C=C+Math.imul(vt,ye)|0,T=(T=T+Math.imul(vt,xe)|0)+Math.imul(xt,ye)|0,M=M+Math.imul(xt,xe)|0,C=C+Math.imul(Ge,Qe)|0,T=(T=T+Math.imul(Ge,ut)|0)+Math.imul(Ye,Qe)|0,M=M+Math.imul(Ye,ut)|0;var Bt=(H+(C=C+Math.imul(Le,Ct)|0)|0)+((8191&(T=(T=T+Math.imul(Le,_t)|0)+Math.imul(Ae,Ct)|0))<<13)|0;H=((M=M+Math.imul(Ae,_t)|0)+(T>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,C=Math.imul(gt,ye),T=(T=Math.imul(gt,xe))+Math.imul(ct,ye)|0,M=Math.imul(ct,xe),C=C+Math.imul(vt,Qe)|0,T=(T=T+Math.imul(vt,ut)|0)+Math.imul(xt,Qe)|0,M=M+Math.imul(xt,ut)|0;var jt=(H+(C=C+Math.imul(Ge,Ct)|0)|0)+((8191&(T=(T=T+Math.imul(Ge,_t)|0)+Math.imul(Ye,Ct)|0))<<13)|0;H=((M=M+Math.imul(Ye,_t)|0)+(T>>>13)|0)+(jt>>>26)|0,jt&=67108863,C=Math.imul(gt,Qe),T=(T=Math.imul(gt,ut))+Math.imul(ct,Qe)|0,M=Math.imul(ct,ut);var Gt=(H+(C=C+Math.imul(vt,Ct)|0)|0)+((8191&(T=(T=T+Math.imul(vt,_t)|0)+Math.imul(xt,Ct)|0))<<13)|0;H=((M=M+Math.imul(xt,_t)|0)+(T>>>13)|0)+(Gt>>>26)|0,Gt&=67108863;var Ar=(H+(C=Math.imul(gt,Ct))|0)+((8191&(T=(T=Math.imul(gt,_t))+Math.imul(ct,Ct)|0))<<13)|0;return H=((M=Math.imul(ct,_t))+(T>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,Z[0]=Dt,Z[1]=Xt,Z[2]=It,Z[3]=je,Z[4]=ot,Z[5]=pe,Z[6]=Ie,Z[7]=Je,Z[8]=rt,Z[9]=$t,Z[10]=mt,Z[11]=dt,Z[12]=Qt,Z[13]=rr,Z[14]=nr,Z[15]=Bt,Z[16]=jt,Z[17]=Gt,Z[18]=Ar,H!==0&&(Z[19]=H,S.length++),S};function O(k,x,S){S.negative=x.negative^k.negative,S.length=k.length+x.length;for(var C=0,T=0,M=0;M>>26)|0)>>>26,N&=67108863}S.words[M]=F,C=N,N=T}return C!==0?S.words[M]=C:S.length--,S._strip()}function j(k,x,S){return O(k,x,S)}Math.imul||(E=_),a.prototype.mulTo=function(k,x){var S=this.length+k.length;return this.length===10&&k.length===10?E(this,k,x):S<63?_(this,k,x):S<1024?O(this,k,x):j(this,k,x)},a.prototype.mul=function(k){var x=new a(null);return x.words=new Array(this.length+k.length),this.mulTo(k,x)},a.prototype.mulf=function(k){var x=new a(null);return x.words=new Array(this.length+k.length),j(this,k,x)},a.prototype.imul=function(k){return this.clone().mulTo(k,this)},a.prototype.imuln=function(k){var x=k<0;x&&(k=-k),c(typeof k=="number"),c(k<67108864);for(var S=0,C=0;C>=26,S+=T/67108864|0,S+=M>>>26,this.words[C]=67108863&M}return S!==0&&(this.words[C]=S,this.length++),x?this.ineg():this},a.prototype.muln=function(k){return this.clone().imuln(k)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(k){var x=function(M){for(var N=new Array(M.bitLength()),F=0;F>>H&1}return N}(k);if(x.length===0)return new a(1);for(var S=this,C=0;C=0);var x,S=k%26,C=(k-S)/26,T=67108863>>>26-S<<26-S;if(S!==0){var M=0;for(x=0;x>>26-S}M&&(this.words[x]=M,this.length++)}if(C!==0){for(x=this.length-1;x>=0;x--)this.words[x+C]=this.words[x];for(x=0;x=0),C=x?(x-x%26)/26:0;var T=k%26,M=Math.min((k-T)/26,this.length),N=67108863^67108863>>>T<M)for(this.length-=M,Z=0;Z=0&&(H!==0||Z>=C);Z--){var ee=0|this.words[Z];this.words[Z]=H<<26-T|ee>>>T,H=ee&N}return F&&H!==0&&(F.words[F.length++]=H),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(k,x,S){return c(this.negative===0),this.iushrn(k,x,S)},a.prototype.shln=function(k){return this.clone().ishln(k)},a.prototype.ushln=function(k){return this.clone().iushln(k)},a.prototype.shrn=function(k){return this.clone().ishrn(k)},a.prototype.ushrn=function(k){return this.clone().iushrn(k)},a.prototype.testn=function(k){c(typeof k=="number"&&k>=0);var x=k%26,S=(k-x)/26,C=1<=0);var x=k%26,S=(k-x)/26;if(c(this.negative===0,"imaskn works only with positive numbers"),this.length<=S)return this;if(x!==0&&S++,this.length=Math.min(S,this.length),x!==0){var C=67108863^67108863>>>x<=67108864;x++)this.words[x]-=67108864,x===this.length-1?this.words[x+1]=1:this.words[x+1]++;return this.length=Math.max(this.length,x+1),this},a.prototype.isubn=function(k){if(c(typeof k=="number"),c(k<67108864),k<0)return this.iaddn(-k);if(this.negative!==0)return this.negative=0,this.iaddn(k),this.negative=1,this;if(this.words[0]-=k,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var x=0;x>26)-(F/67108864|0),this.words[C+S]=67108863&T}for(;C>26,this.words[C+S]=67108863&T;if(N===0)return this._strip();for(c(N===-1),N=0,C=0;C>26,this.words[C]=67108863&T;return this.negative=1,this._strip()},a.prototype._wordDiv=function(k,x){var S=(this.length,k.length),C=this.clone(),T=k,M=0|T.words[T.length-1];(S=26-this._countBits(M))!==0&&(T=T.ushln(S),C.iushln(S),M=0|T.words[T.length-1]);var N,F=C.length-T.length;if(x!=="mod"){(N=new a(null)).length=F+1,N.words=new Array(N.length);for(var Z=0;Z=0;ee--){var B=67108864*(0|C.words[T.length+ee])+(0|C.words[T.length+ee-1]);for(B=Math.min(B/M|0,67108863),C._ishlnsubmul(T,B,ee);C.negative!==0;)B--,C.negative=0,C._ishlnsubmul(T,1,ee),C.isZero()||(C.negative^=1);N&&(N.words[ee]=B)}return N&&N._strip(),C._strip(),x!=="div"&&S!==0&&C.iushrn(S),{div:N||null,mod:C}},a.prototype.divmod=function(k,x,S){return c(!k.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:this.negative!==0&&k.negative===0?(M=this.neg().divmod(k,x),x!=="mod"&&(C=M.div.neg()),x!=="div"&&(T=M.mod.neg(),S&&T.negative!==0&&T.iadd(k)),{div:C,mod:T}):this.negative===0&&k.negative!==0?(M=this.divmod(k.neg(),x),x!=="mod"&&(C=M.div.neg()),{div:C,mod:M.mod}):this.negative&k.negative?(M=this.neg().divmod(k.neg(),x),x!=="div"&&(T=M.mod.neg(),S&&T.negative!==0&&T.isub(k)),{div:M.div,mod:T}):k.length>this.length||this.cmp(k)<0?{div:new a(0),mod:this}:k.length===1?x==="div"?{div:this.divn(k.words[0]),mod:null}:x==="mod"?{div:null,mod:new a(this.modrn(k.words[0]))}:{div:this.divn(k.words[0]),mod:new a(this.modrn(k.words[0]))}:this._wordDiv(k,x);var C,T,M},a.prototype.div=function(k){return this.divmod(k,"div",!1).div},a.prototype.mod=function(k){return this.divmod(k,"mod",!1).mod},a.prototype.umod=function(k){return this.divmod(k,"mod",!0).mod},a.prototype.divRound=function(k){var x=this.divmod(k);if(x.mod.isZero())return x.div;var S=x.div.negative!==0?x.mod.isub(k):x.mod,C=k.ushrn(1),T=k.andln(1),M=S.cmp(C);return M<0||T===1&&M===0?x.div:x.div.negative!==0?x.div.isubn(1):x.div.iaddn(1)},a.prototype.modrn=function(k){var x=k<0;x&&(k=-k),c(k<=67108863);for(var S=(1<<26)%k,C=0,T=this.length-1;T>=0;T--)C=(S*C+(0|this.words[T]))%k;return x?-C:C},a.prototype.modn=function(k){return this.modrn(k)},a.prototype.idivn=function(k){var x=k<0;x&&(k=-k),c(k<=67108863);for(var S=0,C=this.length-1;C>=0;C--){var T=(0|this.words[C])+67108864*S;this.words[C]=T/k|0,S=T%k}return this._strip(),x?this.ineg():this},a.prototype.divn=function(k){return this.clone().idivn(k)},a.prototype.egcd=function(k){c(k.negative===0),c(!k.isZero());var x=this,S=k.clone();x=x.negative!==0?x.umod(k):x.clone();for(var C=new a(1),T=new a(0),M=new a(0),N=new a(1),F=0;x.isEven()&&S.isEven();)x.iushrn(1),S.iushrn(1),++F;for(var Z=S.clone(),H=x.clone();!x.isZero();){for(var ee=0,B=1;!(x.words[0]&B)&&ee<26;++ee,B<<=1);if(ee>0)for(x.iushrn(ee);ee-- >0;)(C.isOdd()||T.isOdd())&&(C.iadd(Z),T.isub(H)),C.iushrn(1),T.iushrn(1);for(var J=0,I=1;!(S.words[0]&I)&&J<26;++J,I<<=1);if(J>0)for(S.iushrn(J);J-- >0;)(M.isOdd()||N.isOdd())&&(M.iadd(Z),N.isub(H)),M.iushrn(1),N.iushrn(1);x.cmp(S)>=0?(x.isub(S),C.isub(M),T.isub(N)):(S.isub(x),M.isub(C),N.isub(T))}return{a:M,b:N,gcd:S.iushln(F)}},a.prototype._invmp=function(k){c(k.negative===0),c(!k.isZero());var x=this,S=k.clone();x=x.negative!==0?x.umod(k):x.clone();for(var C,T=new a(1),M=new a(0),N=S.clone();x.cmpn(1)>0&&S.cmpn(1)>0;){for(var F=0,Z=1;!(x.words[0]&Z)&&F<26;++F,Z<<=1);if(F>0)for(x.iushrn(F);F-- >0;)T.isOdd()&&T.iadd(N),T.iushrn(1);for(var H=0,ee=1;!(S.words[0]&ee)&&H<26;++H,ee<<=1);if(H>0)for(S.iushrn(H);H-- >0;)M.isOdd()&&M.iadd(N),M.iushrn(1);x.cmp(S)>=0?(x.isub(S),T.isub(M)):(S.isub(x),M.isub(T))}return(C=x.cmpn(1)===0?T:M).cmpn(0)<0&&C.iadd(k),C},a.prototype.gcd=function(k){if(this.isZero())return k.abs();if(k.isZero())return this.abs();var x=this.clone(),S=k.clone();x.negative=0,S.negative=0;for(var C=0;x.isEven()&&S.isEven();C++)x.iushrn(1),S.iushrn(1);for(;;){for(;x.isEven();)x.iushrn(1);for(;S.isEven();)S.iushrn(1);var T=x.cmp(S);if(T<0){var M=x;x=S,S=M}else if(T===0||S.cmpn(1)===0)break;x.isub(S)}return S.iushln(C)},a.prototype.invm=function(k){return this.egcd(k).a.umod(k)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(k){return this.words[0]&k},a.prototype.bincn=function(k){c(typeof k=="number");var x=k%26,S=(k-x)/26,C=1<>>26,N&=67108863,this.words[M]=N}return T!==0&&(this.words[M]=T,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(k){var x,S=k<0;if(this.negative!==0&&!S)return-1;if(this.negative===0&&S)return 1;if(this._strip(),this.length>1)x=1;else{S&&(k=-k),c(k<=67108863,"Number is too big");var C=0|this.words[0];x=C===k?0:Ck.length)return 1;if(this.length=0;S--){var C=0|this.words[S],T=0|k.words[S];if(C!==T){CT&&(x=1);break}}return x},a.prototype.gtn=function(k){return this.cmpn(k)===1},a.prototype.gt=function(k){return this.cmp(k)===1},a.prototype.gten=function(k){return this.cmpn(k)>=0},a.prototype.gte=function(k){return this.cmp(k)>=0},a.prototype.ltn=function(k){return this.cmpn(k)===-1},a.prototype.lt=function(k){return this.cmp(k)===-1},a.prototype.lten=function(k){return this.cmpn(k)<=0},a.prototype.lte=function(k){return this.cmp(k)<=0},a.prototype.eqn=function(k){return this.cmpn(k)===0},a.prototype.eq=function(k){return this.cmp(k)===0},a.red=function(k){return new R(k)},a.prototype.toRed=function(k){return c(!this.red,"Already a number in reduction context"),c(this.negative===0,"red works only with positives"),k.convertTo(this)._forceRed(k)},a.prototype.fromRed=function(){return c(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(k){return this.red=k,this},a.prototype.forceRed=function(k){return c(!this.red,"Already a number in reduction context"),this._forceRed(k)},a.prototype.redAdd=function(k){return c(this.red,"redAdd works only with red numbers"),this.red.add(this,k)},a.prototype.redIAdd=function(k){return c(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,k)},a.prototype.redSub=function(k){return c(this.red,"redSub works only with red numbers"),this.red.sub(this,k)},a.prototype.redISub=function(k){return c(this.red,"redISub works only with red numbers"),this.red.isub(this,k)},a.prototype.redShl=function(k){return c(this.red,"redShl works only with red numbers"),this.red.shl(this,k)},a.prototype.redMul=function(k){return c(this.red,"redMul works only with red numbers"),this.red._verify2(this,k),this.red.mul(this,k)},a.prototype.redIMul=function(k){return c(this.red,"redMul works only with red numbers"),this.red._verify2(this,k),this.red.imul(this,k)},a.prototype.redSqr=function(){return c(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return c(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return c(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return c(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return c(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(k){return c(this.red&&!k.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,k)};var W={k256:null,p224:null,p192:null,p25519:null};function z(k,x){this.name=k,this.p=new a(x,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function U(){z.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function K(){z.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function Y(){z.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function G(){z.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function R(k){if(typeof k=="string"){var x=a._prime(k);this.m=x.p,this.prime=x}else c(k.gtn(1),"modulus must be greater than 1"),this.m=k,this.prime=null}function D(k){R.call(this,k),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)}z.prototype._tmp=function(){var k=new a(null);return k.words=new Array(Math.ceil(this.n/13)),k},z.prototype.ireduce=function(k){var x,S=k;do this.split(S,this.tmp),x=(S=(S=this.imulK(S)).iadd(this.tmp)).bitLength();while(x>this.n);var C=x0?S.isub(this.p):S.strip!==void 0?S.strip():S._strip(),S},z.prototype.split=function(k,x){k.iushrn(this.n,0,x)},z.prototype.imulK=function(k){return k.imul(this.k)},l(U,z),U.prototype.split=function(k,x){for(var S=Math.min(k.length,9),C=0;C>>22,T=M}T>>>=22,k.words[C-10]=T,T===0&&k.length>10?k.length-=10:k.length-=9},U.prototype.imulK=function(k){k.words[k.length]=0,k.words[k.length+1]=0,k.length+=2;for(var x=0,S=0;S>>=26,k.words[S]=T,x=C}return x!==0&&(k.words[k.length++]=x),k},a._prime=function(k){if(W[k])return W[k];var x;if(k==="k256")x=new U;else if(k==="p224")x=new K;else if(k==="p192")x=new Y;else{if(k!=="p25519")throw new Error("Unknown prime "+k);x=new G}return W[k]=x,x},R.prototype._verify1=function(k){c(k.negative===0,"red works only with positives"),c(k.red,"red works only with red numbers")},R.prototype._verify2=function(k,x){c((k.negative|x.negative)==0,"red works only with positives"),c(k.red&&k.red===x.red,"red works only with red numbers")},R.prototype.imod=function(k){return this.prime?this.prime.ireduce(k)._forceRed(this):(m(k,k.umod(this.m)._forceRed(this)),k)},R.prototype.neg=function(k){return k.isZero()?k.clone():this.m.sub(k)._forceRed(this)},R.prototype.add=function(k,x){this._verify2(k,x);var S=k.add(x);return S.cmp(this.m)>=0&&S.isub(this.m),S._forceRed(this)},R.prototype.iadd=function(k,x){this._verify2(k,x);var S=k.iadd(x);return S.cmp(this.m)>=0&&S.isub(this.m),S},R.prototype.sub=function(k,x){this._verify2(k,x);var S=k.sub(x);return S.cmpn(0)<0&&S.iadd(this.m),S._forceRed(this)},R.prototype.isub=function(k,x){this._verify2(k,x);var S=k.isub(x);return S.cmpn(0)<0&&S.iadd(this.m),S},R.prototype.shl=function(k,x){return this._verify1(k),this.imod(k.ushln(x))},R.prototype.imul=function(k,x){return this._verify2(k,x),this.imod(k.imul(x))},R.prototype.mul=function(k,x){return this._verify2(k,x),this.imod(k.mul(x))},R.prototype.isqr=function(k){return this.imul(k,k.clone())},R.prototype.sqr=function(k){return this.mul(k,k)},R.prototype.sqrt=function(k){if(k.isZero())return k.clone();var x=this.m.andln(3);if(c(x%2==1),x===3){var S=this.m.add(new a(1)).iushrn(2);return this.pow(k,S)}for(var C=this.m.subn(1),T=0;!C.isZero()&&C.andln(1)===0;)T++,C.iushrn(1);c(!C.isZero());var M=new a(1).toRed(this),N=M.redNeg(),F=this.m.subn(1).iushrn(1),Z=this.m.bitLength();for(Z=new a(2*Z*Z).toRed(this);this.pow(Z,F).cmp(N)!==0;)Z.redIAdd(N);for(var H=this.pow(Z,C),ee=this.pow(k,C.addn(1).iushrn(1)),B=this.pow(k,C),J=T;B.cmp(M)!==0;){for(var I=B,$=0;I.cmp(M)!==0;$++)I=I.redSqr();c($=0;C--){for(var Z=x.words[C],H=F-1;H>=0;H--){var ee=Z>>H&1;T!==S[0]&&(T=this.sqr(T)),ee!==0||M!==0?(M<<=1,M|=ee,(++N===4||C===0&&H===0)&&(T=this.mul(T,S[M]),N=0,M=0)):N=0}F=26}return T},R.prototype.convertTo=function(k){var x=k.umod(this.m);return x===k?x.clone():x},R.prototype.convertFrom=function(k){var x=k.clone();return x.red=null,x},a.mont=function(k){return new D(k)},l(D,R),D.prototype.convertTo=function(k){return this.imod(k.ushln(this.shift))},D.prototype.convertFrom=function(k){var x=this.imod(k.mul(this.rinv));return x.red=null,x},D.prototype.imul=function(k,x){if(k.isZero()||x.isZero())return k.words[0]=0,k.length=1,k;var S=k.imul(x),C=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),T=S.isub(C).iushrn(this.shift),M=T;return T.cmp(this.m)>=0?M=T.isub(this.m):T.cmpn(0)<0&&(M=T.iadd(this.m)),M._forceRed(this)},D.prototype.mul=function(k,x){if(k.isZero()||x.isZero())return new a(0)._forceRed(this);var S=k.mul(x),C=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),T=S.isub(C).iushrn(this.shift),M=T;return T.cmp(this.m)>=0?M=T.isub(this.m):T.cmpn(0)<0&&(M=T.iadd(this.m)),M._forceRed(this)},D.prototype.invm=function(k){return this.imod(k._invmp(this.m).mul(this.r2))._forceRed(this)}})(n===void 0||n)},{buffer:188}],187:[function(e,n,o){var s;function i(l){this.rand=l}if(n.exports=function(l){return s||(s=new i(null)),s.generate(l)},n.exports.Rand=i,i.prototype.generate=function(l){return this._rand(l)},i.prototype._rand=function(l){if(this.rand.getBytes)return this.rand.getBytes(l);for(var a=new Uint8Array(l),h=0;h>>24]^j[K>>>16&255]^W[Y>>>8&255]^z[255&G]^d[R++],b=O[K>>>24]^j[Y>>>16&255]^W[G>>>8&255]^z[255&U]^d[R++],_=O[Y>>>24]^j[G>>>16&255]^W[U>>>8&255]^z[255&K]^d[R++],E=O[G>>>24]^j[U>>>16&255]^W[K>>>8&255]^z[255&Y]^d[R++],U=v,K=b,Y=_,G=E;return v=(p[U>>>24]<<24|p[K>>>16&255]<<16|p[Y>>>8&255]<<8|p[255&G])^d[R++],b=(p[K>>>24]<<24|p[Y>>>16&255]<<16|p[G>>>8&255]<<8|p[255&U])^d[R++],_=(p[Y>>>24]<<24|p[G>>>16&255]<<16|p[U>>>8&255]<<8|p[255&K])^d[R++],E=(p[G>>>24]<<24|p[U>>>16&255]<<16|p[K>>>8&255]<<8|p[255&Y])^d[R++],[v>>>=0,b>>>=0,_>>>=0,E>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],h=function(){for(var f=new Array(256),d=0;d<256;d++)f[d]=d<128?d<<1:d<<1^283;for(var m=[],p=[],g=[[],[],[],[]],v=[[],[],[],[]],b=0,_=0,E=0;E<256;++E){var O=_^_<<1^_<<2^_<<3^_<<4;O=O>>>8^255&O^99,m[b]=O,p[O]=b;var j=f[b],W=f[j],z=f[W],U=257*f[O]^16843008*O;g[0][b]=U<<24|U>>>8,g[1][b]=U<<16|U>>>16,g[2][b]=U<<8|U>>>24,g[3][b]=U,U=16843009*z^65537*W^257*j^16843008*b,v[0][O]=U<<24|U>>>8,v[1][O]=U<<16|U>>>16,v[2][O]=U<<8|U>>>24,v[3][O]=U,b===0?b=_=1:(b=j^f[f[f[z^j]]],_^=f[f[_]])}return{SBOX:m,INV_SBOX:p,SUB_MIX:g,INV_SUB_MIX:v}}();function u(f){this._key=i(f),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var f=this._key,d=f.length,m=d+6,p=4*(m+1),g=[],v=0;v>>24,b=h.SBOX[b>>>24]<<24|h.SBOX[b>>>16&255]<<16|h.SBOX[b>>>8&255]<<8|h.SBOX[255&b],b^=a[v/d|0]<<24):d>6&&v%d==4&&(b=h.SBOX[b>>>24]<<24|h.SBOX[b>>>16&255]<<16|h.SBOX[b>>>8&255]<<8|h.SBOX[255&b]),g[v]=g[v-d]^b}for(var _=[],E=0;E>>24]]^h.INV_SUB_MIX[1][h.SBOX[j>>>16&255]]^h.INV_SUB_MIX[2][h.SBOX[j>>>8&255]]^h.INV_SUB_MIX[3][h.SBOX[255&j]]}this._nRounds=m,this._keySchedule=g,this._invKeySchedule=_},u.prototype.encryptBlockRaw=function(f){return l(f=i(f),this._keySchedule,h.SUB_MIX,h.SBOX,this._nRounds)},u.prototype.encryptBlock=function(f){var d=this.encryptBlockRaw(f),m=s.allocUnsafe(16);return m.writeUInt32BE(d[0],0),m.writeUInt32BE(d[1],4),m.writeUInt32BE(d[2],8),m.writeUInt32BE(d[3],12),m},u.prototype.decryptBlock=function(f){var d=(f=i(f))[1];f[1]=f[3],f[3]=d;var m=l(f,this._invKeySchedule,h.INV_SUB_MIX,h.INV_SBOX,this._nRounds),p=s.allocUnsafe(16);return p.writeUInt32BE(m[0],0),p.writeUInt32BE(m[3],4),p.writeUInt32BE(m[2],8),p.writeUInt32BE(m[1],12),p},u.prototype.scrub=function(){c(this._keySchedule),c(this._invKeySchedule),c(this._key)},n.exports.AES=u},{"safe-buffer":494}],190:[function(e,n,o){var s=e("./aes"),i=e("safe-buffer").Buffer,c=e("cipher-base"),l=e("inherits"),a=e("./ghash"),h=e("buffer-xor"),u=e("./incr32");function f(d,m,p,g){c.call(this);var v=i.alloc(4,0);this._cipher=new s.AES(m);var b=this._cipher.encryptBlock(v);this._ghash=new a(b),p=function(_,E,O){if(E.length===12)return _._finID=i.concat([E,i.from([0,0,0,1])]),i.concat([E,i.from([0,0,0,2])]);var j=new a(O),W=E.length,z=W%16;j.update(E),z&&(z=16-z,j.update(i.alloc(z,0))),j.update(i.alloc(8,0));var U=8*W,K=i.alloc(8);K.writeUIntBE(U,0,8),j.update(K),_._finID=j.state;var Y=i.from(_._finID);return u(Y),Y}(this,p,b),this._prev=i.from(p),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=g,this._alen=0,this._len=0,this._mode=d,this._authTag=null,this._called=!1}l(f,c),f.prototype._update=function(d){if(!this._called&&this._alen){var m=16-this._alen%16;m<16&&(m=i.alloc(m,0),this._ghash.update(m))}this._called=!0;var p=this._mode.encrypt(this,d);return this._decrypt?this._ghash.update(d):this._ghash.update(p),this._len+=d.length,p},f.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var d=h(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(m,p){var g=0;m.length!==p.length&&g++;for(var v=Math.min(m.length,p.length),b=0;b16)throw new Error("unable to decrypt data");for(var b=-1;++b16)return g=this.cache.slice(0,16),this.cache=this.cache.slice(16),g}else if(this.cache.length>=16)return g=this.cache.slice(0,16),this.cache=this.cache.slice(16),g;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},o.createDecipher=function(p,g){var v=c[p.toLowerCase()];if(!v)throw new TypeError("invalid suite type");var b=u(g,!1,v.key,v.iv);return m(p,b.key,b.iv)},o.createDecipheriv=m},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(e,n,o){var s=e("./modes"),i=e("./authCipher"),c=e("safe-buffer").Buffer,l=e("./streamCipher"),a=e("cipher-base"),h=e("./aes"),u=e("evp_bytestokey");function f(g,v,b){a.call(this),this._cache=new m,this._cipher=new h.AES(v),this._prev=c.from(b),this._mode=g,this._autopadding=!0}e("inherits")(f,a),f.prototype._update=function(g){var v,b;this._cache.add(g);for(var _=[];v=this._cache.get();)b=this._mode.encrypt(this,v),_.push(b);return c.concat(_)};var d=c.alloc(16,16);function m(){this.cache=c.allocUnsafe(0)}function p(g,v,b){var _=s[g.toLowerCase()];if(!_)throw new TypeError("invalid suite type");if(typeof v=="string"&&(v=c.from(v)),v.length!==_.key/8)throw new TypeError("invalid key length "+v.length);if(typeof b=="string"&&(b=c.from(b)),_.mode!=="GCM"&&b.length!==_.iv)throw new TypeError("invalid iv length "+b.length);return _.type==="stream"?new l(_.module,v,b):_.type==="auth"?new i(_.module,v,b):new f(_.module,v,b)}f.prototype._final=function(){var g=this._cache.flush();if(this._autopadding)return g=this._mode.encrypt(this,g),this._cipher.scrub(),g;if(!g.equals(d))throw this._cipher.scrub(),new Error("data not multiple of block length")},f.prototype.setAutoPadding=function(g){return this._autopadding=!!g,this},m.prototype.add=function(g){this.cache=c.concat([this.cache,g])},m.prototype.get=function(){if(this.cache.length>15){var g=this.cache.slice(0,16);return this.cache=this.cache.slice(16),g}return null},m.prototype.flush=function(){for(var g=16-this.cache.length,v=c.allocUnsafe(g),b=-1;++b>>0,0),h.writeUInt32BE(a[1]>>>0,4),h.writeUInt32BE(a[2]>>>0,8),h.writeUInt32BE(a[3]>>>0,12),h}function l(a){this.h=a,this.state=s.alloc(16,0),this.cache=s.allocUnsafe(0)}l.prototype.ghash=function(a){for(var h=-1;++h0;h--)f[h]=f[h]>>>1|(1&f[h-1])<<31;f[0]=f[0]>>>1,u&&(f[0]=f[0]^225<<24)}this.state=c(d)},l.prototype.update=function(a){var h;for(this.cache=s.concat([this.cache,a]);this.cache.length>=16;)h=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(h)},l.prototype.final=function(a,h){return this.cache.length&&this.ghash(s.concat([this.cache,i],16)),this.ghash(c([0,a,0,h])),this.state},n.exports=l},{"safe-buffer":494}],195:[function(e,n,o){n.exports=function(s){for(var i,c=s.length;c--;){if((i=s.readUInt8(c))!==255){i++,s.writeUInt8(i,c);break}s.writeUInt8(0,c)}}},{}],196:[function(e,n,o){var s=e("buffer-xor");o.encrypt=function(i,c){var l=s(c,i._prev);return i._prev=i._cipher.encryptBlock(l),i._prev},o.decrypt=function(i,c){var l=i._prev;i._prev=c;var a=i._cipher.decryptBlock(c);return s(a,l)}},{"buffer-xor":219}],197:[function(e,n,o){var s=e("safe-buffer").Buffer,i=e("buffer-xor");function c(l,a,h){var u=a.length,f=i(a,l._cache);return l._cache=l._cache.slice(u),l._prev=s.concat([l._prev,h?a:f]),f}o.encrypt=function(l,a,h){for(var u,f=s.allocUnsafe(0);a.length;){if(l._cache.length===0&&(l._cache=l._cipher.encryptBlock(l._prev),l._prev=s.allocUnsafe(0)),!(l._cache.length<=a.length)){f=s.concat([f,c(l,a,h)]);break}u=l._cache.length,f=s.concat([f,c(l,a.slice(0,u),h)]),a=a.slice(u)}return f}},{"buffer-xor":219,"safe-buffer":494}],198:[function(e,n,o){var s=e("safe-buffer").Buffer;function i(l,a,h){for(var u,f,d=-1,m=0;++d<8;)u=a&1<<7-d?128:0,m+=(128&(f=l._cipher.encryptBlock(l._prev)[0]^u))>>d%8,l._prev=c(l._prev,h?u:f);return m}function c(l,a){var h=l.length,u=-1,f=s.allocUnsafe(l.length);for(l=s.concat([l,s.from([a])]);++u>7;return f}o.encrypt=function(l,a,h){for(var u=a.length,f=s.allocUnsafe(u),d=-1;++d=0||!u.umod(h.prime1)||!u.umod(h.prime2));return u}function a(h,u){var f=function(W){var z=l(W);return{blinder:z.toRed(i.mont(W.modulus)).redPow(new i(W.publicExponent)).fromRed(),unblinder:z.invm(W.modulus)}}(u),d=u.modulus.byteLength(),m=new i(h).mul(f.blinder).umod(u.modulus),p=m.toRed(i.mont(u.prime1)),g=m.toRed(i.mont(u.prime2)),v=u.coefficient,b=u.prime1,_=u.prime2,E=p.redPow(u.exponent1).fromRed(),O=g.redPow(u.exponent2).fromRed(),j=E.isub(O).imul(v).umod(b).imul(_);return O.iadd(j).imul(f.unblinder).umod(u.modulus).toArrayLike(s,"be",d)}a.getr=l,n.exports=a}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(e,n,o){n.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(e,n,o){n.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,n,o){n.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,n,o){var s=e("safe-buffer").Buffer,i=e("create-hash"),c=e("readable-stream"),l=e("inherits"),a=e("./sign"),h=e("./verify"),u=e("./algorithms.json");function f(g){c.Writable.call(this);var v=u[g];if(!v)throw new Error("Unknown message digest");this._hashType=v.hash,this._hash=i(v.hash),this._tag=v.id,this._signType=v.sign}function d(g){c.Writable.call(this);var v=u[g];if(!v)throw new Error("Unknown message digest");this._hash=i(v.hash),this._tag=v.id,this._signType=v.sign}function m(g){return new f(g)}function p(g){return new d(g)}Object.keys(u).forEach(function(g){u[g].id=s.from(u[g].id,"hex"),u[g.toLowerCase()]=u[g]}),l(f,c.Writable),f.prototype._write=function(g,v,b){this._hash.update(g),b()},f.prototype.update=function(g,v){return typeof g=="string"&&(g=s.from(g,v)),this._hash.update(g),this},f.prototype.sign=function(g,v){this.end();var b=this._hash.digest(),_=a(b,g,this._hashType,this._signType,this._tag);return v?_.toString(v):_},l(d,c.Writable),d.prototype._write=function(g,v,b){this._hash.update(g),b()},d.prototype.update=function(g,v){return typeof g=="string"&&(g=s.from(g,v)),this._hash.update(g),this},d.prototype.verify=function(g,v,b){typeof v=="string"&&(v=s.from(v,b)),this.end();var _=this._hash.digest();return h(v,_,g,this._signType,this._tag)},n.exports={Sign:m,Verify:p,createSign:m,createVerify:p}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(e,n,o){var s=e("safe-buffer").Buffer,i=e("create-hmac"),c=e("browserify-rsa"),l=e("elliptic").ec,a=e("bn.js"),h=e("parse-asn1"),u=e("./curves.json");function f(g,v,b,_){if((g=s.from(g.toArray())).length0&&b.ishrn(_),b}function m(g,v,b){var _,E;do{for(_=s.alloc(0);8*_.length=f)throw new Error("invalid sig")}n.exports=function(u,f,d,m,p){var g=l(d);if(g.type==="ec"){if(m!=="ecdsa"&&m!=="ecdsa/rsa")throw new Error("wrong public key type");return function(W,z,U){var K=a[U.data.algorithm.curve.join(".")];if(!K)throw new Error("unknown curve "+U.data.algorithm.curve.join("."));var Y=new c(K),G=U.data.subjectPrivateKey.data;return Y.verify(z,W,G)}(u,f,g)}if(g.type==="dsa"){if(m!=="dsa")throw new Error("wrong public key type");return function(W,z,U){var K=U.data.p,Y=U.data.q,G=U.data.g,R=U.data.pub_key,D=l.signature.decode(W,"der"),k=D.s,x=D.r;h(k,Y),h(x,Y);var S=i.mont(K),C=k.invm(Y);return G.toRed(S).redPow(new i(z).mul(C).mod(Y)).fromRed().mul(R.toRed(S).redPow(x.mul(C).mod(Y)).fromRed()).mod(K).mod(Y).cmp(x)===0}(u,f,g)}if(m!=="rsa"&&m!=="ecdsa/rsa")throw new Error("wrong public key type");f=s.concat([p,f]);for(var v=g.modulus.byteLength(),b=[1],_=0;f.length+b.length+2>5==6?2:g>>4==14?3:g>>3==30?4:g>>6==2?-1:-2}function a(g){var v=this.lastTotal-this.lastNeed,b=function(_,E,O){if((192&E[0])!=128)return _.lastNeed=0,"�";if(_.lastNeed>1&&E.length>1){if((192&E[1])!=128)return _.lastNeed=1,"�";if(_.lastNeed>2&&E.length>2&&(192&E[2])!=128)return _.lastNeed=2,"�"}}(this,g);return b!==void 0?b:this.lastNeed<=g.length?(g.copy(this.lastChar,v,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(g.copy(this.lastChar,v,0,g.length),void(this.lastNeed-=g.length))}function h(g,v){if((g.length-v)%2==0){var b=g.toString("utf16le",v);if(b){var _=b.charCodeAt(b.length-1);if(_>=55296&&_<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],b.slice(0,-1)}return b}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",v,g.length-1)}function u(g){var v=g&&g.length?this.write(g):"";if(this.lastNeed){var b=this.lastTotal-this.lastNeed;return v+this.lastChar.toString("utf16le",0,b)}return v}function f(g,v){var b=(g.length-v)%3;return b===0?g.toString("base64",v):(this.lastNeed=3-b,this.lastTotal=3,b===1?this.lastChar[0]=g[g.length-1]:(this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1]),g.toString("base64",v,g.length-b))}function d(g){var v=g&&g.length?this.write(g):"";return this.lastNeed?v+this.lastChar.toString("base64",0,3-this.lastNeed):v}function m(g){return g.toString(this.encoding)}function p(g){return g&&g.length?this.write(g):""}o.StringDecoder=c,c.prototype.write=function(g){if(g.length===0)return"";var v,b;if(this.lastNeed){if((v=this.fillLast(g))===void 0)return"";b=this.lastNeed,this.lastNeed=0}else b=0;return b=0?(z>0&&(E.lastNeed=z-1),z):--W=0?(z>0&&(E.lastNeed=z-2),z):--W=0?(z>0&&(z===2?z=0:E.lastNeed=z-3),z):0}(this,g,v);if(!this.lastNeed)return g.toString("utf8",v);this.lastTotal=b;var _=g.length-(b-this.lastNeed);return g.copy(this.lastChar,0,_),g.toString("utf8",v,_)},c.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length}},{"safe-buffer":217}],219:[function(e,n,o){(function(s){(function(){n.exports=function(i,c){for(var l=Math.min(i.length,c.length),a=new s(l),h=0;h2147483647)throw new RangeError('The value "'+I+'" is invalid for option "size"');var $=new Uint8Array(I);return $.__proto__=a.prototype,$}function a(I,$,X){if(typeof I=="number"){if(typeof $=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(I)}return h(I,$,X)}function h(I,$,X){if(typeof I=="string")return function(te,ie){if(typeof ie=="string"&&ie!==""||(ie="utf8"),!a.isEncoding(ie))throw new TypeError("Unknown encoding: "+ie);var de=0|p(te,ie),me=l(de),se=me.write(te,ie);return se!==de&&(me=me.slice(0,se)),me}(I,$);if(ArrayBuffer.isView(I))return d(I);if(I==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I);if(B(I,ArrayBuffer)||I&&B(I.buffer,ArrayBuffer))return function(te,ie,de){if(ie<0||te.byteLength=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|I}function p(I,$){if(a.isBuffer(I))return I.length;if(ArrayBuffer.isView(I)||B(I,ArrayBuffer))return I.byteLength;if(typeof I!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof I);var X=I.length,ae=arguments.length>2&&arguments[2]===!0;if(!ae&&X===0)return 0;for(var fe=!1;;)switch($){case"ascii":case"latin1":case"binary":return X;case"utf8":case"utf-8":return Z(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*X;case"hex":return X>>>1;case"base64":return H(I).length;default:if(fe)return ae?-1:Z(I).length;$=(""+$).toLowerCase(),fe=!0}}function g(I,$,X){var ae=!1;if(($===void 0||$<0)&&($=0),$>this.length||((X===void 0||X>this.length)&&(X=this.length),X<=0)||(X>>>=0)<=($>>>=0))return"";for(I||(I="utf8");;)switch(I){case"hex":return D(this,$,X);case"utf8":case"utf-8":return Y(this,$,X);case"ascii":return G(this,$,X);case"latin1":case"binary":return R(this,$,X);case"base64":return K(this,$,X);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,$,X);default:if(ae)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),ae=!0}}function v(I,$,X){var ae=I[$];I[$]=I[X],I[X]=ae}function b(I,$,X,ae,fe){if(I.length===0)return-1;if(typeof X=="string"?(ae=X,X=0):X>2147483647?X=2147483647:X<-2147483648&&(X=-2147483648),J(X=+X)&&(X=fe?0:I.length-1),X<0&&(X=I.length+X),X>=I.length){if(fe)return-1;X=I.length-1}else if(X<0){if(!fe)return-1;X=0}if(typeof $=="string"&&($=a.from($,ae)),a.isBuffer($))return $.length===0?-1:_(I,$,X,ae,fe);if(typeof $=="number")return $&=255,typeof Uint8Array.prototype.indexOf=="function"?fe?Uint8Array.prototype.indexOf.call(I,$,X):Uint8Array.prototype.lastIndexOf.call(I,$,X):_(I,[$],X,ae,fe);throw new TypeError("val must be string, number or Buffer")}function _(I,$,X,ae,fe){var te,ie=1,de=I.length,me=$.length;if(ae!==void 0&&((ae=String(ae).toLowerCase())==="ucs2"||ae==="ucs-2"||ae==="utf16le"||ae==="utf-16le")){if(I.length<2||$.length<2)return-1;ie=2,de/=2,me/=2,X/=2}function se(Ce,Ee){return ie===1?Ce[Ee]:Ce.readUInt16BE(Ee*ie)}if(fe){var ve=-1;for(te=X;tede&&(X=de-me),te=X;te>=0;te--){for(var be=!0,ke=0;kefe&&(ae=fe):ae=fe;var te=$.length;ae>te/2&&(ae=te/2);for(var ie=0;ie>8,me=ie%256,se.push(me),se.push(de);return se}($,I.length-X),I,X,ae)}function K(I,$,X){return $===0&&X===I.length?i.fromByteArray(I):i.fromByteArray(I.slice($,X))}function Y(I,$,X){X=Math.min(I.length,X);for(var ae=[],fe=$;fe239?4:se>223?3:se>191?2:1;if(fe+be<=X)switch(be){case 1:se<128&&(ve=se);break;case 2:(192&(te=I[fe+1]))==128&&(me=(31&se)<<6|63&te)>127&&(ve=me);break;case 3:te=I[fe+1],ie=I[fe+2],(192&te)==128&&(192&ie)==128&&(me=(15&se)<<12|(63&te)<<6|63&ie)>2047&&(me<55296||me>57343)&&(ve=me);break;case 4:te=I[fe+1],ie=I[fe+2],de=I[fe+3],(192&te)==128&&(192&ie)==128&&(192&de)==128&&(me=(15&se)<<18|(63&te)<<12|(63&ie)<<6|63&de)>65535&&me<1114112&&(ve=me)}ve===null?(ve=65533,be=1):ve>65535&&(ve-=65536,ae.push(ve>>>10&1023|55296),ve=56320|1023&ve),ae.push(ve),fe+=be}return function(ke){var Ce=ke.length;if(Ce<=4096)return String.fromCharCode.apply(String,ke);for(var Ee="",Me=0;Me"u",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(I,$,X){return h(I,$,X)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(I,$,X){return function(ae,fe,te){return u(ae),ae<=0?l(ae):fe!==void 0?typeof te=="string"?l(ae).fill(fe,te):l(ae).fill(fe):l(ae)}(I,$,X)},a.allocUnsafe=function(I){return f(I)},a.allocUnsafeSlow=function(I){return f(I)},a.isBuffer=function(I){return I!=null&&I._isBuffer===!0&&I!==a.prototype},a.compare=function(I,$){if(B(I,Uint8Array)&&(I=a.from(I,I.offset,I.byteLength)),B($,Uint8Array)&&($=a.from($,$.offset,$.byteLength)),!a.isBuffer(I)||!a.isBuffer($))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(I===$)return 0;for(var X=I.length,ae=$.length,fe=0,te=Math.min(X,ae);fe$&&(I+=" ... "),""},a.prototype.compare=function(I,$,X,ae,fe){if(B(I,Uint8Array)&&(I=a.from(I,I.offset,I.byteLength)),!a.isBuffer(I))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof I);if($===void 0&&($=0),X===void 0&&(X=I?I.length:0),ae===void 0&&(ae=0),fe===void 0&&(fe=this.length),$<0||X>I.length||ae<0||fe>this.length)throw new RangeError("out of range index");if(ae>=fe&&$>=X)return 0;if(ae>=fe)return-1;if($>=X)return 1;if(this===I)return 0;for(var te=(fe>>>=0)-(ae>>>=0),ie=(X>>>=0)-($>>>=0),de=Math.min(te,ie),me=this.slice(ae,fe),se=I.slice($,X),ve=0;ve>>=0,isFinite(X)?(X>>>=0,ae===void 0&&(ae="utf8")):(ae=X,X=void 0)}var fe=this.length-$;if((X===void 0||X>fe)&&(X=fe),I.length>0&&(X<0||$<0)||$>this.length)throw new RangeError("Attempt to write outside buffer bounds");ae||(ae="utf8");for(var te=!1;;)switch(ae){case"hex":return E(this,I,$,X);case"utf8":case"utf-8":return O(this,I,$,X);case"ascii":return j(this,I,$,X);case"latin1":case"binary":return W(this,I,$,X);case"base64":return z(this,I,$,X);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,I,$,X);default:if(te)throw new TypeError("Unknown encoding: "+ae);ae=(""+ae).toLowerCase(),te=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function G(I,$,X){var ae="";X=Math.min(I.length,X);for(var fe=$;feae)&&(X=ae);for(var fe="",te=$;teX)throw new RangeError("Trying to access beyond buffer length")}function S(I,$,X,ae,fe,te){if(!a.isBuffer(I))throw new TypeError('"buffer" argument must be a Buffer instance');if($>fe||$I.length)throw new RangeError("Index out of range")}function C(I,$,X,ae,fe,te){if(X+ae>I.length)throw new RangeError("Index out of range");if(X<0)throw new RangeError("Index out of range")}function T(I,$,X,ae,fe){return $=+$,X>>>=0,fe||C(I,0,X,4),c.write(I,$,X,ae,23,4),X+4}function M(I,$,X,ae,fe){return $=+$,X>>>=0,fe||C(I,0,X,8),c.write(I,$,X,ae,52,8),X+8}a.prototype.slice=function(I,$){var X=this.length;(I=~~I)<0?(I+=X)<0&&(I=0):I>X&&(I=X),($=$===void 0?X:~~$)<0?($+=X)<0&&($=0):$>X&&($=X),$>>=0,$>>>=0,X||x(I,$,this.length);for(var ae=this[I],fe=1,te=0;++te<$&&(fe*=256);)ae+=this[I+te]*fe;return ae},a.prototype.readUIntBE=function(I,$,X){I>>>=0,$>>>=0,X||x(I,$,this.length);for(var ae=this[I+--$],fe=1;$>0&&(fe*=256);)ae+=this[I+--$]*fe;return ae},a.prototype.readUInt8=function(I,$){return I>>>=0,$||x(I,1,this.length),this[I]},a.prototype.readUInt16LE=function(I,$){return I>>>=0,$||x(I,2,this.length),this[I]|this[I+1]<<8},a.prototype.readUInt16BE=function(I,$){return I>>>=0,$||x(I,2,this.length),this[I]<<8|this[I+1]},a.prototype.readUInt32LE=function(I,$){return I>>>=0,$||x(I,4,this.length),(this[I]|this[I+1]<<8|this[I+2]<<16)+16777216*this[I+3]},a.prototype.readUInt32BE=function(I,$){return I>>>=0,$||x(I,4,this.length),16777216*this[I]+(this[I+1]<<16|this[I+2]<<8|this[I+3])},a.prototype.readIntLE=function(I,$,X){I>>>=0,$>>>=0,X||x(I,$,this.length);for(var ae=this[I],fe=1,te=0;++te<$&&(fe*=256);)ae+=this[I+te]*fe;return ae>=(fe*=128)&&(ae-=Math.pow(2,8*$)),ae},a.prototype.readIntBE=function(I,$,X){I>>>=0,$>>>=0,X||x(I,$,this.length);for(var ae=$,fe=1,te=this[I+--ae];ae>0&&(fe*=256);)te+=this[I+--ae]*fe;return te>=(fe*=128)&&(te-=Math.pow(2,8*$)),te},a.prototype.readInt8=function(I,$){return I>>>=0,$||x(I,1,this.length),128&this[I]?-1*(255-this[I]+1):this[I]},a.prototype.readInt16LE=function(I,$){I>>>=0,$||x(I,2,this.length);var X=this[I]|this[I+1]<<8;return 32768&X?4294901760|X:X},a.prototype.readInt16BE=function(I,$){I>>>=0,$||x(I,2,this.length);var X=this[I+1]|this[I]<<8;return 32768&X?4294901760|X:X},a.prototype.readInt32LE=function(I,$){return I>>>=0,$||x(I,4,this.length),this[I]|this[I+1]<<8|this[I+2]<<16|this[I+3]<<24},a.prototype.readInt32BE=function(I,$){return I>>>=0,$||x(I,4,this.length),this[I]<<24|this[I+1]<<16|this[I+2]<<8|this[I+3]},a.prototype.readFloatLE=function(I,$){return I>>>=0,$||x(I,4,this.length),c.read(this,I,!0,23,4)},a.prototype.readFloatBE=function(I,$){return I>>>=0,$||x(I,4,this.length),c.read(this,I,!1,23,4)},a.prototype.readDoubleLE=function(I,$){return I>>>=0,$||x(I,8,this.length),c.read(this,I,!0,52,8)},a.prototype.readDoubleBE=function(I,$){return I>>>=0,$||x(I,8,this.length),c.read(this,I,!1,52,8)},a.prototype.writeUIntLE=function(I,$,X,ae){I=+I,$>>>=0,X>>>=0,ae||S(this,I,$,X,Math.pow(2,8*X)-1,0);var fe=1,te=0;for(this[$]=255&I;++te>>=0,X>>>=0,ae||S(this,I,$,X,Math.pow(2,8*X)-1,0);var fe=X-1,te=1;for(this[$+fe]=255&I;--fe>=0&&(te*=256);)this[$+fe]=I/te&255;return $+X},a.prototype.writeUInt8=function(I,$,X){return I=+I,$>>>=0,X||S(this,I,$,1,255,0),this[$]=255&I,$+1},a.prototype.writeUInt16LE=function(I,$,X){return I=+I,$>>>=0,X||S(this,I,$,2,65535,0),this[$]=255&I,this[$+1]=I>>>8,$+2},a.prototype.writeUInt16BE=function(I,$,X){return I=+I,$>>>=0,X||S(this,I,$,2,65535,0),this[$]=I>>>8,this[$+1]=255&I,$+2},a.prototype.writeUInt32LE=function(I,$,X){return I=+I,$>>>=0,X||S(this,I,$,4,4294967295,0),this[$+3]=I>>>24,this[$+2]=I>>>16,this[$+1]=I>>>8,this[$]=255&I,$+4},a.prototype.writeUInt32BE=function(I,$,X){return I=+I,$>>>=0,X||S(this,I,$,4,4294967295,0),this[$]=I>>>24,this[$+1]=I>>>16,this[$+2]=I>>>8,this[$+3]=255&I,$+4},a.prototype.writeIntLE=function(I,$,X,ae){if(I=+I,$>>>=0,!ae){var fe=Math.pow(2,8*X-1);S(this,I,$,X,fe-1,-fe)}var te=0,ie=1,de=0;for(this[$]=255&I;++te>0)-de&255;return $+X},a.prototype.writeIntBE=function(I,$,X,ae){if(I=+I,$>>>=0,!ae){var fe=Math.pow(2,8*X-1);S(this,I,$,X,fe-1,-fe)}var te=X-1,ie=1,de=0;for(this[$+te]=255&I;--te>=0&&(ie*=256);)I<0&&de===0&&this[$+te+1]!==0&&(de=1),this[$+te]=(I/ie>>0)-de&255;return $+X},a.prototype.writeInt8=function(I,$,X){return I=+I,$>>>=0,X||S(this,I,$,1,127,-128),I<0&&(I=255+I+1),this[$]=255&I,$+1},a.prototype.writeInt16LE=function(I,$,X){return I=+I,$>>>=0,X||S(this,I,$,2,32767,-32768),this[$]=255&I,this[$+1]=I>>>8,$+2},a.prototype.writeInt16BE=function(I,$,X){return I=+I,$>>>=0,X||S(this,I,$,2,32767,-32768),this[$]=I>>>8,this[$+1]=255&I,$+2},a.prototype.writeInt32LE=function(I,$,X){return I=+I,$>>>=0,X||S(this,I,$,4,2147483647,-2147483648),this[$]=255&I,this[$+1]=I>>>8,this[$+2]=I>>>16,this[$+3]=I>>>24,$+4},a.prototype.writeInt32BE=function(I,$,X){return I=+I,$>>>=0,X||S(this,I,$,4,2147483647,-2147483648),I<0&&(I=4294967295+I+1),this[$]=I>>>24,this[$+1]=I>>>16,this[$+2]=I>>>8,this[$+3]=255&I,$+4},a.prototype.writeFloatLE=function(I,$,X){return T(this,I,$,!0,X)},a.prototype.writeFloatBE=function(I,$,X){return T(this,I,$,!1,X)},a.prototype.writeDoubleLE=function(I,$,X){return M(this,I,$,!0,X)},a.prototype.writeDoubleBE=function(I,$,X){return M(this,I,$,!1,X)},a.prototype.copy=function(I,$,X,ae){if(!a.isBuffer(I))throw new TypeError("argument should be a Buffer");if(X||(X=0),ae||ae===0||(ae=this.length),$>=I.length&&($=I.length),$||($=0),ae>0&&ae=this.length)throw new RangeError("Index out of range");if(ae<0)throw new RangeError("sourceEnd out of bounds");ae>this.length&&(ae=this.length),I.length-$=0;--te)I[te+$]=this[te+X];else Uint8Array.prototype.set.call(I,this.subarray(X,ae),$);return fe},a.prototype.fill=function(I,$,X,ae){if(typeof I=="string"){if(typeof $=="string"?(ae=$,$=0,X=this.length):typeof X=="string"&&(ae=X,X=this.length),ae!==void 0&&typeof ae!="string")throw new TypeError("encoding must be a string");if(typeof ae=="string"&&!a.isEncoding(ae))throw new TypeError("Unknown encoding: "+ae);if(I.length===1){var fe=I.charCodeAt(0);(ae==="utf8"&&fe<128||ae==="latin1")&&(I=fe)}}else typeof I=="number"&&(I&=255);if($<0||this.length<$||this.length>>=0,X=X===void 0?this.length:X>>>0,I||(I=0),typeof I=="number")for(te=$;te55295&&X<57344){if(!fe){if(X>56319){($-=3)>-1&&te.push(239,191,189);continue}if(ie+1===ae){($-=3)>-1&&te.push(239,191,189);continue}fe=X;continue}if(X<56320){($-=3)>-1&&te.push(239,191,189),fe=X;continue}X=65536+(fe-55296<<10|X-56320)}else fe&&($-=3)>-1&&te.push(239,191,189);if(fe=null,X<128){if(($-=1)<0)break;te.push(X)}else if(X<2048){if(($-=2)<0)break;te.push(X>>6|192,63&X|128)}else if(X<65536){if(($-=3)<0)break;te.push(X>>12|224,X>>6&63|128,63&X|128)}else{if(!(X<1114112))throw new Error("Invalid code point");if(($-=4)<0)break;te.push(X>>18|240,X>>12&63|128,X>>6&63|128,63&X|128)}}return te}function H(I){return i.toByteArray(function($){if(($=($=$.split("=")[0]).trim().replace(N,"")).length<2)return"";for(;$.length%4!=0;)$+="=";return $}(I))}function ee(I,$,X,ae){for(var fe=0;fe=$.length||fe>=I.length);++fe)$[fe+X]=I[fe];return fe}function B(I,$){return I instanceof $||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===$.name}function J(I){return I!=I}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(e,n,o){var s=e("safe-buffer").Buffer,i=e("stream").Transform,c=e("string_decoder").StringDecoder;function l(a){i.call(this),this.hashMode=typeof a=="string",this.hashMode?this[a]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e("inherits")(l,i),l.prototype.update=function(a,h,u){typeof a=="string"&&(a=s.from(a,h));var f=this._update(a);return this.hashMode?this:(u&&(f=this._toString(f,u)),f)},l.prototype.setAutoPadding=function(){},l.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},l.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},l.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},l.prototype._transform=function(a,h,u){var f;try{this.hashMode?this._update(a):this.push(this._update(a))}catch(d){f=d}finally{u(f)}},l.prototype._flush=function(a){var h;try{this.push(this.__final())}catch(u){h=u}a(h)},l.prototype._finalOrDigest=function(a){var h=this.__final()||s.alloc(0);return a&&(h=this._toString(h,a,!0)),h},l.prototype._toString=function(a,h,u){if(this._decoder||(this._decoder=new c(h),this._encoding=h),this._encoding!==h)throw new Error("can't switch encodings");var f=this._decoder.write(a);return u&&(f+=this._decoder.end()),f},n.exports=l},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(e,n,o){var s=e("../internals/is-callable"),i=e("../internals/try-to-string"),c=TypeError;n.exports=function(l){if(s(l))return l;throw new c(i(l)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(e,n,o){var s=e("../internals/is-constructor"),i=e("../internals/try-to-string"),c=TypeError;n.exports=function(l){if(s(l))return l;throw new c(i(l)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(e,n,o){var s=e("../internals/is-callable"),i=String,c=TypeError;n.exports=function(l){if(typeof l=="object"||s(l))return l;throw new c("Can't set "+i(l)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(e,n,o){var s=e("../internals/well-known-symbol"),i=e("../internals/object-create"),c=e("../internals/object-define-property").f,l=s("unscopables"),a=Array.prototype;a[l]===void 0&&c(a,l,{configurable:!0,value:i(null)}),n.exports=function(h){a[l][h]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(e,n,o){var s=e("../internals/object-is-prototype-of"),i=TypeError;n.exports=function(c,l){if(s(l,c))return c;throw new i("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(e,n,o){var s=e("../internals/is-object"),i=String,c=TypeError;n.exports=function(l){if(s(l))return l;throw new c(i(l)+" is not an object")}},{"../internals/is-object":289}],228:[function(e,n,o){var s=e("../internals/to-indexed-object"),i=e("../internals/to-absolute-index"),c=e("../internals/length-of-array-like"),l=function(a){return function(h,u,f){var d,m=s(h),p=c(m),g=i(f,p);if(a&&u!=u){for(;p>g;)if((d=m[g++])!=d)return!0}else for(;p>g;g++)if((a||g in m)&&m[g]===u)return a||g||0;return!a&&-1}};n.exports={includes:l(!0),indexOf:l(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(e,n,o){var s=e("../internals/function-bind-context"),i=e("../internals/function-uncurry-this"),c=e("../internals/indexed-object"),l=e("../internals/to-object"),a=e("../internals/length-of-array-like"),h=e("../internals/array-species-create"),u=i([].push),f=function(d){var m=d===1,p=d===2,g=d===3,v=d===4,b=d===6,_=d===7,E=d===5||b;return function(O,j,W,z){for(var U,K,Y=l(O),G=c(Y),R=s(j,W),D=a(G),k=0,x=z||h,S=m?x(O,D):p||_?x(O,0):void 0;D>k;k++)if((E||k in G)&&(K=R(U=G[k],k,Y),d))if(m)S[k]=K;else if(K)switch(d){case 3:return!0;case 5:return U;case 6:return k;case 2:u(S,U)}else switch(d){case 4:return!1;case 7:u(S,U)}return b?-1:g||v?v:S}};n.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(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,n,o){var s=e("../internals/to-absolute-index"),i=e("../internals/length-of-array-like"),c=e("../internals/create-property"),l=Array,a=Math.max;n.exports=function(h,u,f){for(var d=i(h),m=s(u,d),p=s(f===void 0?d:f,d),g=l(a(p-m,0)),v=0;m0&&s[0]<4?1:+(s[0]+s[1])),!i&&l&&(!(s=l.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=l.match(/Chrome\/(\d+)/))&&(i=+s[1]),n.exports=i},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(e,n,o){n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(e,n,o){var s=e("../internals/global"),i=e("../internals/object-get-own-property-descriptor").f,c=e("../internals/create-non-enumerable-property"),l=e("../internals/define-built-in"),a=e("../internals/define-global-property"),h=e("../internals/copy-constructor-properties"),u=e("../internals/is-forced");n.exports=function(f,d){var m,p,g,v,b,_=f.target,E=f.global,O=f.stat;if(m=E?s:O?s[_]||a(_,{}):(s[_]||{}).prototype)for(p in d){if(v=d[p],g=f.dontCallGetSet?(b=i(m,p))&&b.value:m[p],!u(E?p:_+(O?".":"#")+p,f.forced)&&g!==void 0){if(typeof v==typeof g)continue;h(v,g)}(f.sham||g&&g.sham)&&c(v,"sham",!0),l(m,p,v,f)}}},{"../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,n,o){n.exports=function(s){try{return!!s()}catch{return!0}}},{}],261:[function(e,n,o){var s=e("../internals/function-bind-native"),i=Function.prototype,c=i.apply,l=i.call;n.exports=typeof Reflect=="object"&&Reflect.apply||(s?l.bind(c):function(){return l.apply(c,arguments)})},{"../internals/function-bind-native":263}],262:[function(e,n,o){var s=e("../internals/function-uncurry-this-clause"),i=e("../internals/a-callable"),c=e("../internals/function-bind-native"),l=s(s.bind);n.exports=function(a,h){return i(a),h===void 0?a:c?l(a,h):function(){return a.apply(h,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(e,n,o){var s=e("../internals/fails");n.exports=!s(function(){var i=(function(){}).bind();return typeof i!="function"||i.hasOwnProperty("prototype")})},{"../internals/fails":260}],264:[function(e,n,o){var s=e("../internals/function-bind-native"),i=Function.prototype.call;n.exports=s?i.bind(i):function(){return i.apply(i,arguments)}},{"../internals/function-bind-native":263}],265:[function(e,n,o){var s=e("../internals/descriptors"),i=e("../internals/has-own-property"),c=Function.prototype,l=s&&Object.getOwnPropertyDescriptor,a=i(c,"name"),h=a&&(function(){}).name==="something",u=a&&(!s||s&&l(c,"name").configurable);n.exports={EXISTS:a,PROPER:h,CONFIGURABLE:u}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(e,n,o){var s=e("../internals/function-uncurry-this"),i=e("../internals/a-callable");n.exports=function(c,l,a){try{return s(i(Object.getOwnPropertyDescriptor(c,l)[a]))}catch{}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(e,n,o){var s=e("../internals/classof-raw"),i=e("../internals/function-uncurry-this");n.exports=function(c){if(s(c)==="Function")return i(c)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(e,n,o){var s=e("../internals/function-bind-native"),i=Function.prototype,c=i.call,l=s&&i.bind.bind(c,c);n.exports=s?l:function(a){return function(){return c.apply(a,arguments)}}},{"../internals/function-bind-native":263}],269:[function(e,n,o){var s=e("../internals/global"),i=e("../internals/is-callable"),c=function(l){return i(l)?l:void 0};n.exports=function(l,a){return arguments.length<2?c(s[l]):s[l]&&s[l][a]}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(e,n,o){var s=e("../internals/classof"),i=e("../internals/get-method"),c=e("../internals/is-null-or-undefined"),l=e("../internals/iterators"),a=e("../internals/well-known-symbol")("iterator");n.exports=function(h){if(!c(h))return i(h,a)||i(h,"@@iterator")||l[s(h)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(e,n,o){var s=e("../internals/function-call"),i=e("../internals/a-callable"),c=e("../internals/an-object"),l=e("../internals/try-to-string"),a=e("../internals/get-iterator-method"),h=TypeError;n.exports=function(u,f){var d=arguments.length<2?a(u):f;if(i(d))return c(s(d,u));throw new h(l(u)+" 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,n,o){var s=e("../internals/function-uncurry-this"),i=e("../internals/is-array"),c=e("../internals/is-callable"),l=e("../internals/classof-raw"),a=e("../internals/to-string"),h=s([].push);n.exports=function(u){if(c(u))return u;if(i(u)){for(var f=u.length,d=[],m=0;mW;W++)if((U=T(b[W]))&&u(v,U))return U;return new g(!1)}O=f(b,j)}for(K=D?b.next:O.next;!(Y=i(K,O)).done;){try{U=T(Y.value)}catch(M){m(O,"throw",M)}if(typeof U=="object"&&U&&u(v,U))return U}return new g(!1)}},{"../internals/an-object":227,"../internals/function-bind-context":262,"../internals/function-call":264,"../internals/get-iterator":271,"../internals/get-iterator-method":270,"../internals/is-array-iterator-method":283,"../internals/iterator-close":294,"../internals/length-of-array-like":299,"../internals/object-is-prototype-of":314,"../internals/try-to-string":349}],294:[function(e,n,o){var s=e("../internals/function-call"),i=e("../internals/an-object"),c=e("../internals/get-method");n.exports=function(l,a,h){var u,f;i(l);try{if(!(u=c(l,"return"))){if(a==="throw")throw h;return h}u=s(u,l)}catch(d){f=!0,u=d}if(a==="throw")throw h;if(f)throw u;return i(u),h}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(e,n,o){var s=e("../internals/iterators-core").IteratorPrototype,i=e("../internals/object-create"),c=e("../internals/create-property-descriptor"),l=e("../internals/set-to-string-tag"),a=e("../internals/iterators"),h=function(){return this};n.exports=function(u,f,d,m){var p=f+" Iterator";return u.prototype=i(s,{next:c(+!m,d)}),l(u,p,!1,!0),a[p]=h,u}},{"../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,n,o){var s=e("../internals/export"),i=e("../internals/function-call"),c=e("../internals/is-pure"),l=e("../internals/function-name"),a=e("../internals/is-callable"),h=e("../internals/iterator-create-constructor"),u=e("../internals/object-get-prototype-of"),f=e("../internals/object-set-prototype-of"),d=e("../internals/set-to-string-tag"),m=e("../internals/create-non-enumerable-property"),p=e("../internals/define-built-in"),g=e("../internals/well-known-symbol"),v=e("../internals/iterators"),b=e("../internals/iterators-core"),_=l.PROPER,E=l.CONFIGURABLE,O=b.IteratorPrototype,j=b.BUGGY_SAFARI_ITERATORS,W=g("iterator"),z=function(){return this};n.exports=function(U,K,Y,G,R,D,k){h(Y,K,G);var x,S,C,T=function(B){if(B===R&&H)return H;if(!j&&B&&B in F)return F[B];switch(B){case"keys":case"values":case"entries":return function(){return new Y(this,B)}}return function(){return new Y(this)}},M=K+" Iterator",N=!1,F=U.prototype,Z=F[W]||F["@@iterator"]||R&&F[R],H=!j&&Z||T(R),ee=K==="Array"&&F.entries||Z;if(ee&&(x=u(ee.call(new U)))!==Object.prototype&&x.next&&(c||u(x)===O||(f?f(x,O):a(x[W])||p(x,W,z)),d(x,M,!0,!0),c&&(v[M]=z)),_&&R==="values"&&Z&&Z.name!=="values"&&(!c&&E?m(F,"name","values"):(N=!0,H=function(){return i(Z,this)})),R)if(S={values:T("values"),keys:D?H:T("keys"),entries:T("entries")},k)for(C in S)(j||N||!(C in F))&&p(F,C,S[C]);else s({target:K,proto:!0,forced:j||N},S);return c&&!k||F[W]===H||p(F,W,H,{name:R}),v[K]=H,S}},{"../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,n,o){var s,i,c,l=e("../internals/fails"),a=e("../internals/is-callable"),h=e("../internals/is-object"),u=e("../internals/object-create"),f=e("../internals/object-get-prototype-of"),d=e("../internals/define-built-in"),m=e("../internals/well-known-symbol"),p=e("../internals/is-pure"),g=m("iterator"),v=!1;[].keys&&("next"in(c=[].keys())?(i=f(f(c)))!==Object.prototype&&(s=i):v=!0),!h(s)||l(function(){var b={};return s[g].call(b)!==b})?s={}:p&&(s=u(s)),a(s[g])||d(s,g,function(){return this}),n.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:v}},{"../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,n,o){arguments[4][276][0].apply(o,arguments)},{dup:276}],299:[function(e,n,o){var s=e("../internals/to-length");n.exports=function(i){return s(i.length)}},{"../internals/to-length":343}],300:[function(e,n,o){var s=e("../internals/function-uncurry-this"),i=e("../internals/fails"),c=e("../internals/is-callable"),l=e("../internals/has-own-property"),a=e("../internals/descriptors"),h=e("../internals/function-name").CONFIGURABLE,u=e("../internals/inspect-source"),f=e("../internals/internal-state"),d=f.enforce,m=f.get,p=String,g=Object.defineProperty,v=s("".slice),b=s("".replace),_=s([].join),E=a&&!i(function(){return g(function(){},"length",{value:8}).length!==8}),O=String(String).split("String"),j=n.exports=function(W,z,U){v(p(z),0,7)==="Symbol("&&(z="["+b(p(z),/^Symbol\(([^)]*)\)/,"$1")+"]"),U&&U.getter&&(z="get "+z),U&&U.setter&&(z="set "+z),(!l(W,"name")||h&&W.name!==z)&&(a?g(W,"name",{value:z,configurable:!0}):W.name=z),E&&U&&l(U,"arity")&&W.length!==U.arity&&g(W,"length",{value:U.arity});try{U&&l(U,"constructor")&&U.constructor?a&&g(W,"prototype",{writable:!1}):W.prototype&&(W.prototype=void 0)}catch{}var K=d(W);return l(K,"source")||(K.source=_(O,typeof z=="string"?z:"")),W};Function.prototype.toString=j(function(){return c(this)&&m(this).source||u(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,n,o){var s=Math.ceil,i=Math.floor;n.exports=Math.trunc||function(c){var l=+c;return(l>0?i:s)(l)}},{}],302:[function(e,n,o){var s,i,c,l,a,h=e("../internals/global"),u=e("../internals/function-bind-context"),f=e("../internals/object-get-own-property-descriptor").f,d=e("../internals/task").set,m=e("../internals/queue"),p=e("../internals/engine-is-ios"),g=e("../internals/engine-is-ios-pebble"),v=e("../internals/engine-is-webos-webkit"),b=e("../internals/engine-is-node"),_=h.MutationObserver||h.WebKitMutationObserver,E=h.document,O=h.process,j=h.Promise,W=f(h,"queueMicrotask"),z=W&&W.value;if(!z){var U=new m,K=function(){var Y,G;for(b&&(Y=O.domain)&&Y.exit();G=U.get();)try{G()}catch(R){throw U.head&&s(),R}Y&&Y.enter()};p||b||v||!_||!E?!g&&j&&j.resolve?((l=j.resolve(void 0)).constructor=j,a=u(l.then,l),s=function(){a(K)}):b?s=function(){O.nextTick(K)}:(d=u(d,h),s=function(){d(K)}):(i=!0,c=E.createTextNode(""),new _(K).observe(c,{characterData:!0}),s=function(){c.data=i=!i}),z=function(Y){U.head||s(),U.add(Y)}}n.exports=z},{"../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,n,o){var s=e("../internals/a-callable"),i=TypeError,c=function(l){var a,h;this.promise=new l(function(u,f){if(a!==void 0||h!==void 0)throw new i("Bad Promise constructor");a=u,h=f}),this.resolve=s(a),this.reject=s(h)};n.exports.f=function(l){return new c(l)}},{"../internals/a-callable":222}],304:[function(e,n,o){var s=e("../internals/is-regexp"),i=TypeError;n.exports=function(c){if(s(c))throw new i("The method doesn't accept regular expressions");return c}},{"../internals/is-regexp":291}],305:[function(e,n,o){var s=e("../internals/descriptors"),i=e("../internals/function-uncurry-this"),c=e("../internals/function-call"),l=e("../internals/fails"),a=e("../internals/object-keys"),h=e("../internals/object-get-own-property-symbols"),u=e("../internals/object-property-is-enumerable"),f=e("../internals/to-object"),d=e("../internals/indexed-object"),m=Object.assign,p=Object.defineProperty,g=i([].concat);n.exports=!m||l(function(){if(s&&m({b:1},m(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var v={},b={},_=Symbol("assign detection");return v[_]=7,"abcdefghijklmnopqrst".split("").forEach(function(E){b[E]=E}),m({},v)[_]!==7||a(m({},b)).join("")!=="abcdefghijklmnopqrst"})?function(v,b){for(var _=f(v),E=arguments.length,O=1,j=h.f,W=u.f;E>O;)for(var z,U=d(arguments[O++]),K=j?g(a(U),j(U)):a(U),Y=K.length,G=0;Y>G;)z=K[G++],s&&!c(W,U,z)||(_[z]=U[z]);return _}:m},{"../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,n,o){var s,i=e("../internals/an-object"),c=e("../internals/object-define-properties"),l=e("../internals/enum-bug-keys"),a=e("../internals/hidden-keys"),h=e("../internals/html"),u=e("../internals/document-create-element"),f=e("../internals/shared-key"),d=f("IE_PROTO"),m=function(){},p=function(b){return" + + + + +
    + + + \ No newline at end of file diff --git a/logo.svg b/logo.svg new file mode 100644 index 0000000..ea28de3 --- /dev/null +++ b/logo.svg @@ -0,0 +1,50 @@ + + + Research Object RO-Crate logo + + + + + + image/svg+xml + + Research Object RO Litelogo + + 2017-06-01 + + + + + + + + Stian Soiland-Reyes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/marker-icon-2x.png b/marker-icon-2x.png new file mode 100644 index 0000000..88f9e50 Binary files /dev/null and b/marker-icon-2x.png differ diff --git a/marker-icon.png b/marker-icon.png new file mode 100644 index 0000000..950edf2 Binary files /dev/null and b/marker-icon.png differ diff --git a/marker-shadow.png b/marker-shadow.png new file mode 100644 index 0000000..9fd2979 Binary files /dev/null and b/marker-shadow.png differ