mirror of
https://github.com/KarolChang/jm-expense-vue-ts.git
synced 2024-12-26 03:38:35 +00:00
1446 lines
481 KiB
JavaScript
1446 lines
481 KiB
JavaScript
var sb=Object.defineProperty,ob=Object.defineProperties;var ab=Object.getOwnPropertyDescriptors;var gd=Object.getOwnPropertySymbols;var lb=Object.prototype.hasOwnProperty,cb=Object.prototype.propertyIsEnumerable;var vd=(t,e,n)=>e in t?sb(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ie=(t,e)=>{for(var n in e||(e={}))lb.call(e,n)&&vd(t,n,e[n]);if(gd)for(var n of gd(e))cb.call(e,n)&&vd(t,n,e[n]);return t},oo=(t,e)=>ob(t,ab(e));function Mc(t,e){const n=Object.create(null),r=t.split(",");for(let i=0;i<r.length;i++)n[r[i]]=!0;return e?i=>!!n[i.toLowerCase()]:i=>!!n[i]}const ub="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",db=Mc(ub);function up(t){return!!t||t===""}function En(t){if(ge(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],i=rt(r)?pb(r):En(r);if(i)for(const s in i)e[s]=i[s]}return e}else{if(rt(t))return t;if(et(t))return t}}const fb=/;(?![^(]*\))/g,hb=/:(.+)/;function pb(t){const e={};return t.split(fb).forEach(n=>{if(n){const r=n.split(hb);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function Ve(t){let e="";if(rt(t))e=t;else if(ge(t))for(let n=0;n<t.length;n++){const r=Ve(t[n]);r&&(e+=r+" ")}else if(et(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function An(t){if(!t)return null;let{class:e,style:n}=t;return e&&!rt(e)&&(t.class=Ve(e)),n&&(t.style=En(n)),t}function mb(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=Vs(t[r],e[r]);return n}function Vs(t,e){if(t===e)return!0;let n=yd(t),r=yd(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=ge(t),r=ge(e),n||r)return n&&r?mb(t,e):!1;if(n=et(t),r=et(e),n||r){if(!n||!r)return!1;const i=Object.keys(t).length,s=Object.keys(e).length;if(i!==s)return!1;for(const o in t){const l=t.hasOwnProperty(o),u=e.hasOwnProperty(o);if(l&&!u||!l&&u||!Vs(t[o],e[o]))return!1}}return String(t)===String(e)}function Rc(t,e){return t.findIndex(n=>Vs(n,e))}const st=t=>t==null?"":ge(t)||et(t)&&(t.toString===hp||!ke(t.toString))?JSON.stringify(t,dp,2):String(t),dp=(t,e)=>e&&e.__v_isRef?dp(t,e.value):gi(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:Bi(e)?{[`Set(${e.size})`]:[...e.values()]}:et(e)&&!ge(e)&&!pp(e)?String(e):e,ze={},mi=[],qt=()=>{},gb=()=>!1,vb=/^on[^a-z]/,sa=t=>vb.test(t),Lc=t=>t.startsWith("onUpdate:"),ct=Object.assign,$c=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},yb=Object.prototype.hasOwnProperty,Le=(t,e)=>yb.call(t,e),ge=Array.isArray,gi=t=>oa(t)==="[object Map]",Bi=t=>oa(t)==="[object Set]",yd=t=>t instanceof Date,ke=t=>typeof t=="function",rt=t=>typeof t=="string",Bc=t=>typeof t=="symbol",et=t=>t!==null&&typeof t=="object",fp=t=>et(t)&&ke(t.then)&&ke(t.catch),hp=Object.prototype.toString,oa=t=>hp.call(t),_b=t=>oa(t).slice(8,-1),pp=t=>oa(t)==="[object Object]",Uc=t=>rt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Co=Mc(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),aa=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},bb=/-(\w)/g,mn=aa(t=>t.replace(bb,(e,n)=>n?n.toUpperCase():"")),wb=/\B([A-Z])/g,Vr=aa(t=>t.replace(wb,"-$1").toLowerCase()),la=aa(t=>t.charAt(0).toUpperCase()+t.slice(1)),tl=aa(t=>t?`on${la(t)}`:""),Ds=(t,e)=>!Object.is(t,e),So=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},Lo=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},Ps=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let _d;const Eb=()=>_d||(_d=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let on;const ao=[];class mp{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&on&&(this.parent=on,this.index=(on.scopes||(on.scopes=[])).push(this)-1)}run(e){if(this.active)try{return this.on(),e()}finally{this.off()}}on(){this.active&&(ao.push(this),on=this)}off(){this.active&&(ao.pop(),on=ao[ao.length-1])}stop(e){if(this.active){if(this.effects.forEach(n=>n.stop()),this.cleanups.forEach(n=>n()),this.scopes&&this.scopes.forEach(n=>n.stop(!0)),this.parent&&!e){const n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.active=!1}}}function gp(t){return new mp(t)}function Tb(t,e){e=e||on,e&&e.active&&e.effects.push(t)}function Cb(){return on}function Sb(t){on&&on.cleanups.push(t)}const Hc=t=>{const e=new Set(t);return e.w=0,e.n=0,e},vp=t=>(t.w&er)>0,yp=t=>(t.n&er)>0,Ab=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=er},Ob=t=>{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r<e.length;r++){const i=e[r];vp(i)&&!yp(i)?i.delete(t):e[n++]=i,i.w&=~er,i.n&=~er}e.length=n}},jl=new WeakMap;let cs=0,er=1;const Wl=30,ei=[];let Ar;const Or=Symbol(""),ql=Symbol("");class Fc{constructor(e,n=null,r){this.fn=e,this.scheduler=n,this.active=!0,this.deps=[],Tb(this,r)}run(){if(!this.active)return this.fn();if(!ei.length||!ei.includes(this))try{return ei.push(Ar=this),Ib(),er=1<<++cs,cs<=Wl?Ab(this):bd(this),this.fn()}finally{cs<=Wl&&Ob(this),er=1<<--cs,jr(),ei.pop();const e=ei.length;Ar=e>0?ei[e-1]:void 0}}stop(){this.active&&(bd(this),this.onStop&&this.onStop(),this.active=!1)}}function bd(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let wi=!0;const Vc=[];function Ui(){Vc.push(wi),wi=!1}function Ib(){Vc.push(wi),wi=!0}function jr(){const t=Vc.pop();wi=t===void 0?!0:t}function Dt(t,e,n){if(!_p())return;let r=jl.get(t);r||jl.set(t,r=new Map);let i=r.get(n);i||r.set(n,i=Hc()),bp(i)}function _p(){return wi&&Ar!==void 0}function bp(t,e){let n=!1;cs<=Wl?yp(t)||(t.n|=er,n=!vp(t)):n=!t.has(Ar),n&&(t.add(Ar),Ar.deps.push(t))}function On(t,e,n,r,i,s){const o=jl.get(t);if(!o)return;let l=[];if(e==="clear")l=[...o.values()];else if(n==="length"&&ge(t))o.forEach((u,d)=>{(d==="length"||d>=r)&&l.push(u)});else switch(n!==void 0&&l.push(o.get(n)),e){case"add":ge(t)?Uc(n)&&l.push(o.get("length")):(l.push(o.get(Or)),gi(t)&&l.push(o.get(ql)));break;case"delete":ge(t)||(l.push(o.get(Or)),gi(t)&&l.push(o.get(ql)));break;case"set":gi(t)&&l.push(o.get(Or));break}if(l.length===1)l[0]&&Yl(l[0]);else{const u=[];for(const d of l)d&&u.push(...d);Yl(Hc(u))}}function Yl(t,e){for(const n of ge(t)?t:[...t])(n!==Ar||n.allowRecurse)&&(n.scheduler?n.scheduler():n.run())}const kb=Mc("__proto__,__v_isRef,__isVue"),wp=new Set(Object.getOwnPropertyNames(Symbol).map(t=>Symbol[t]).filter(Bc)),Db=jc(),Pb=jc(!1,!0),Nb=jc(!0),wd=xb();function xb(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const r=Be(this);for(let s=0,o=this.length;s<o;s++)Dt(r,"get",s+"");const i=r[e](...n);return i===-1||i===!1?r[e](...n.map(Be)):i}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){Ui();const r=Be(this)[e].apply(this,n);return jr(),r}}),t}function jc(t=!1,e=!1){return function(r,i,s){if(i==="__v_isReactive")return!t;if(i==="__v_isReadonly")return t;if(i==="__v_isShallow")return e;if(i==="__v_raw"&&s===(t?e?Gb:Ap:e?Sp:Cp).get(r))return r;const o=ge(r);if(!t&&o&&Le(wd,i))return Reflect.get(wd,i,s);const l=Reflect.get(r,i,s);return(Bc(i)?wp.has(i):kb(i))||(t||Dt(r,"get",i),e)?l:Xe(l)?!o||!Uc(i)?l.value:l:et(l)?t?Op(l):Hi(l):l}}const Mb=Ep(),Rb=Ep(!0);function Ep(t=!1){return function(n,r,i,s){let o=n[r];if(Ns(o)&&Xe(o)&&!Xe(i))return!1;if(!t&&!Ns(i)&&(Ip(i)||(i=Be(i),o=Be(o)),!ge(n)&&Xe(o)&&!Xe(i)))return o.value=i,!0;const l=ge(n)&&Uc(r)?Number(r)<n.length:Le(n,r),u=Reflect.set(n,r,i,s);return n===Be(s)&&(l?Ds(i,o)&&On(n,"set",r,i):On(n,"add",r,i)),u}}function Lb(t,e){const n=Le(t,e);t[e];const r=Reflect.deleteProperty(t,e);return r&&n&&On(t,"delete",e,void 0),r}function $b(t,e){const n=Reflect.has(t,e);return(!Bc(e)||!wp.has(e))&&Dt(t,"has",e),n}function Bb(t){return Dt(t,"iterate",ge(t)?"length":Or),Reflect.ownKeys(t)}const Tp={get:Db,set:Mb,deleteProperty:Lb,has:$b,ownKeys:Bb},Ub={get:Nb,set(t,e){return!0},deleteProperty(t,e){return!0}},Hb=ct({},Tp,{get:Pb,set:Rb}),Wc=t=>t,ca=t=>Reflect.getPrototypeOf(t);function lo(t,e,n=!1,r=!1){t=t.__v_raw;const i=Be(t),s=Be(e);e!==s&&!n&&Dt(i,"get",e),!n&&Dt(i,"get",s);const{has:o}=ca(i),l=r?Wc:n?Kc:xs;if(o.call(i,e))return l(t.get(e));if(o.call(i,s))return l(t.get(s));t!==i&&t.get(e)}function co(t,e=!1){const n=this.__v_raw,r=Be(n),i=Be(t);return t!==i&&!e&&Dt(r,"has",t),!e&&Dt(r,"has",i),t===i?n.has(t):n.has(t)||n.has(i)}function uo(t,e=!1){return t=t.__v_raw,!e&&Dt(Be(t),"iterate",Or),Reflect.get(t,"size",t)}function Ed(t){t=Be(t);const e=Be(this);return ca(e).has.call(e,t)||(e.add(t),On(e,"add",t,t)),this}function Td(t,e){e=Be(e);const n=Be(this),{has:r,get:i}=ca(n);let s=r.call(n,t);s||(t=Be(t),s=r.call(n,t));const o=i.call(n,t);return n.set(t,e),s?Ds(e,o)&&On(n,"set",t,e):On(n,"add",t,e),this}function Cd(t){const e=Be(this),{has:n,get:r}=ca(e);let i=n.call(e,t);i||(t=Be(t),i=n.call(e,t)),r&&r.call(e,t);const s=e.delete(t);return i&&On(e,"delete",t,void 0),s}function Sd(){const t=Be(this),e=t.size!==0,n=t.clear();return e&&On(t,"clear",void 0,void 0),n}function fo(t,e){return function(r,i){const s=this,o=s.__v_raw,l=Be(o),u=e?Wc:t?Kc:xs;return!t&&Dt(l,"iterate",Or),o.forEach((d,f)=>r.call(i,u(d),u(f),s))}}function ho(t,e,n){return function(...r){const i=this.__v_raw,s=Be(i),o=gi(s),l=t==="entries"||t===Symbol.iterator&&o,u=t==="keys"&&o,d=i[t](...r),f=n?Wc:e?Kc:xs;return!e&&Dt(s,"iterate",u?ql:Or),{next(){const{value:p,done:v}=d.next();return v?{value:p,done:v}:{value:l?[f(p[0]),f(p[1])]:f(p),done:v}},[Symbol.iterator](){return this}}}}function Pn(t){return function(...e){return t==="delete"?!1:this}}function Fb(){const t={get(s){return lo(this,s)},get size(){return uo(this)},has:co,add:Ed,set:Td,delete:Cd,clear:Sd,forEach:fo(!1,!1)},e={get(s){return lo(this,s,!1,!0)},get size(){return uo(this)},has:co,add:Ed,set:Td,delete:Cd,clear:Sd,forEach:fo(!1,!0)},n={get(s){return lo(this,s,!0)},get size(){return uo(this,!0)},has(s){return co.call(this,s,!0)},add:Pn("add"),set:Pn("set"),delete:Pn("delete"),clear:Pn("clear"),forEach:fo(!0,!1)},r={get(s){return lo(this,s,!0,!0)},get size(){return uo(this,!0)},has(s){return co.call(this,s,!0)},add:Pn("add"),set:Pn("set"),delete:Pn("delete"),clear:Pn("clear"),forEach:fo(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{t[s]=ho(s,!1,!1),n[s]=ho(s,!0,!1),e[s]=ho(s,!1,!0),r[s]=ho(s,!0,!0)}),[t,n,e,r]}const[Vb,jb,Wb,qb]=Fb();function qc(t,e){const n=e?t?qb:Wb:t?jb:Vb;return(r,i,s)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?r:Reflect.get(Le(n,i)&&i in r?n:r,i,s)}const Yb={get:qc(!1,!1)},Kb={get:qc(!1,!0)},zb={get:qc(!0,!1)},Cp=new WeakMap,Sp=new WeakMap,Ap=new WeakMap,Gb=new WeakMap;function Xb(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Jb(t){return t.__v_skip||!Object.isExtensible(t)?0:Xb(_b(t))}function Hi(t){return Ns(t)?t:Yc(t,!1,Tp,Yb,Cp)}function Qb(t){return Yc(t,!1,Hb,Kb,Sp)}function Op(t){return Yc(t,!0,Ub,zb,Ap)}function Yc(t,e,n,r,i){if(!et(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const s=i.get(t);if(s)return s;const o=Jb(t);if(o===0)return t;const l=new Proxy(t,o===2?r:n);return i.set(t,l),l}function Jn(t){return Ns(t)?Jn(t.__v_raw):!!(t&&t.__v_isReactive)}function Ns(t){return!!(t&&t.__v_isReadonly)}function Ip(t){return!!(t&&t.__v_isShallow)}function kp(t){return Jn(t)||Ns(t)}function Be(t){const e=t&&t.__v_raw;return e?Be(e):t}function Ei(t){return Lo(t,"__v_skip",!0),t}const xs=t=>et(t)?Hi(t):t,Kc=t=>et(t)?Op(t):t;function Dp(t){_p()&&(t=Be(t),t.dep||(t.dep=Hc()),bp(t.dep))}function Pp(t,e){t=Be(t),t.dep&&Yl(t.dep)}function Xe(t){return Boolean(t&&t.__v_isRef===!0)}function Se(t){return Np(t,!1)}function Zb(t){return Np(t,!0)}function Np(t,e){return Xe(t)?t:new ew(t,e)}class ew{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:Be(e),this._value=n?e:xs(e)}get value(){return Dp(this),this._value}set value(e){e=this.__v_isShallow?e:Be(e),Ds(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:xs(e),Pp(this))}}function I(t){return Xe(t)?t.value:t}const tw={get:(t,e,n)=>I(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const i=t[e];return Xe(i)&&!Xe(n)?(i.value=n,!0):Reflect.set(t,e,n,r)}};function xp(t){return Jn(t)?t:new Proxy(t,tw)}function nw(t){const e=ge(t)?new Array(t.length):{};for(const n in t)e[n]=$o(t,n);return e}class rw{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}}function $o(t,e,n){const r=t[e];return Xe(r)?r:new rw(t,e,n)}class iw{constructor(e,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new Fc(e,()=>{this._dirty||(this._dirty=!0,Pp(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const e=Be(this);return Dp(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function sw(t,e,n=!1){let r,i;const s=ke(t);return s?(r=t,i=qt):(r=t.get,i=t.set),new iw(r,i,s||!i,n)}Promise.resolve();function Qn(t,e,n,r){let i;try{i=r?t(...r):t()}catch(s){ua(s,e,n)}return i}function Ut(t,e,n,r){if(ke(t)){const s=Qn(t,e,n,r);return s&&fp(s)&&s.catch(o=>{ua(o,e,n)}),s}const i=[];for(let s=0;s<t.length;s++)i.push(Ut(t[s],e,n,r));return i}function ua(t,e,n,r=!0){const i=e?e.vnode:null;if(e){let s=e.parent;const o=e.proxy,l=n;for(;s;){const d=s.ec;if(d){for(let f=0;f<d.length;f++)if(d[f](t,o,l)===!1)return}s=s.parent}const u=e.appContext.config.errorHandler;if(u){Qn(u,null,10,[t,o,l]);return}}ow(t,n,i,r)}function ow(t,e,n,r=!0){console.error(t)}let Bo=!1,Kl=!1;const It=[];let wn=0;const ps=[];let us=null,li=0;const ms=[];let Hn=null,ci=0;const Mp=Promise.resolve();let zc=null,zl=null;function da(t){const e=zc||Mp;return t?e.then(this?t.bind(this):t):e}function aw(t){let e=wn+1,n=It.length;for(;e<n;){const r=e+n>>>1;Ms(It[r])<t?e=r+1:n=r}return e}function Rp(t){(!It.length||!It.includes(t,Bo&&t.allowRecurse?wn+1:wn))&&t!==zl&&(t.id==null?It.push(t):It.splice(aw(t.id),0,t),Lp())}function Lp(){!Bo&&!Kl&&(Kl=!0,zc=Mp.then(Up))}function lw(t){const e=It.indexOf(t);e>wn&&It.splice(e,1)}function $p(t,e,n,r){ge(t)?n.push(...t):(!e||!e.includes(t,t.allowRecurse?r+1:r))&&n.push(t),Lp()}function cw(t){$p(t,us,ps,li)}function uw(t){$p(t,Hn,ms,ci)}function Gc(t,e=null){if(ps.length){for(zl=e,us=[...new Set(ps)],ps.length=0,li=0;li<us.length;li++)us[li]();us=null,li=0,zl=null,Gc(t,e)}}function Bp(t){if(ms.length){const e=[...new Set(ms)];if(ms.length=0,Hn){Hn.push(...e);return}for(Hn=e,Hn.sort((n,r)=>Ms(n)-Ms(r)),ci=0;ci<Hn.length;ci++)Hn[ci]();Hn=null,ci=0}}const Ms=t=>t.id==null?1/0:t.id;function Up(t){Kl=!1,Bo=!0,Gc(t),It.sort((n,r)=>Ms(n)-Ms(r));const e=qt;try{for(wn=0;wn<It.length;wn++){const n=It[wn];n&&n.active!==!1&&Qn(n,null,14)}}finally{wn=0,It.length=0,Bp(),Bo=!1,zc=null,(It.length||ps.length||ms.length)&&Up(t)}}function dw(t,e,...n){const r=t.vnode.props||ze;let i=n;const s=e.startsWith("update:"),o=s&&e.slice(7);if(o&&o in r){const f=`${o==="modelValue"?"model":o}Modifiers`,{number:p,trim:v}=r[f]||ze;v?i=n.map(m=>m.trim()):p&&(i=n.map(Ps))}let l,u=r[l=tl(e)]||r[l=tl(mn(e))];!u&&s&&(u=r[l=tl(Vr(e))]),u&&Ut(u,t,6,i);const d=r[l+"Once"];if(d){if(!t.emitted)t.emitted={};else if(t.emitted[l])return;t.emitted[l]=!0,Ut(d,t,6,i)}}function Hp(t,e,n=!1){const r=e.emitsCache,i=r.get(t);if(i!==void 0)return i;const s=t.emits;let o={},l=!1;if(!ke(t)){const u=d=>{const f=Hp(d,e,!0);f&&(l=!0,ct(o,f))};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}return!s&&!l?(r.set(t,null),null):(ge(s)?s.forEach(u=>o[u]=null):ct(o,s),r.set(t,o),o)}function Xc(t,e){return!t||!sa(e)?!1:(e=e.slice(2).replace(/Once$/,""),Le(t,e[0].toLowerCase()+e.slice(1))||Le(t,Vr(e))||Le(t,e))}let kt=null,fa=null;function Uo(t){const e=kt;return kt=t,fa=t&&t.type.__scopeId||null,e}function dx(t){fa=t}function fx(){fa=null}function $e(t,e=kt,n){if(!e||t._n)return t;const r=(...i)=>{r._d&&$d(-1);const s=Uo(e),o=t(...i);return Uo(s),r._d&&$d(1),o};return r._n=!0,r._c=!0,r._d=!0,r}function nl(t){const{type:e,vnode:n,proxy:r,withProxy:i,props:s,propsOptions:[o],slots:l,attrs:u,emit:d,render:f,renderCache:p,data:v,setupState:m,ctx:S,inheritAttrs:T}=t;let A,O;const k=Uo(t);try{if(n.shapeFlag&4){const D=i||r;A=an(f.call(D,D,p,s,m,v,S)),O=u}else{const D=e;A=an(D.length>1?D(s,{attrs:u,slots:l,emit:d}):D(s,null)),O=e.props?u:fw(u)}}catch(D){vs.length=0,ua(D,t,1),A=Qe(Kt)}let C=A;if(O&&T!==!1){const D=Object.keys(O),{shapeFlag:B}=C;D.length&&B&7&&(o&&D.some(Lc)&&(O=hw(O,o)),C=Ti(C,O))}return n.dirs&&(C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),A=C,Uo(k),A}const fw=t=>{let e;for(const n in t)(n==="class"||n==="style"||sa(n))&&((e||(e={}))[n]=t[n]);return e},hw=(t,e)=>{const n={};for(const r in t)(!Lc(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function pw(t,e,n){const{props:r,children:i,component:s}=t,{props:o,children:l,patchFlag:u}=e,d=s.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return r?Ad(r,o,d):!!o;if(u&8){const f=e.dynamicProps;for(let p=0;p<f.length;p++){const v=f[p];if(o[v]!==r[v]&&!Xc(d,v))return!0}}}else return(i||l)&&(!l||!l.$stable)?!0:r===o?!1:r?o?Ad(r,o,d):!0:!!o;return!1}function Ad(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let i=0;i<r.length;i++){const s=r[i];if(e[s]!==t[s]&&!Xc(n,s))return!0}return!1}function mw({vnode:t,parent:e},n){for(;e&&e.subTree===t;)(t=e.vnode).el=n,e=e.parent}const gw=t=>t.__isSuspense;function vw(t,e){e&&e.pendingBranch?ge(t)?e.effects.push(...t):e.effects.push(t):uw(t)}function Ir(t,e){if(ot){let n=ot.provides;const r=ot.parent&&ot.parent.provides;r===n&&(n=ot.provides=Object.create(r)),n[t]=e}}function ht(t,e,n=!1){const r=ot||kt;if(r){const i=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&t in i)return i[t];if(arguments.length>1)return n&&ke(e)?e.call(r.proxy):e}}const Od={};function cn(t,e,n){return Fp(t,e,n)}function Fp(t,e,{immediate:n,deep:r,flush:i,onTrack:s,onTrigger:o}=ze){const l=ot;let u,d=!1,f=!1;if(Xe(t)?(u=()=>t.value,d=Ip(t)):Jn(t)?(u=()=>t,r=!0):ge(t)?(f=!0,d=t.some(Jn),u=()=>t.map(O=>{if(Xe(O))return O.value;if(Jn(O))return Cr(O);if(ke(O))return Qn(O,l,2)})):ke(t)?e?u=()=>Qn(t,l,2):u=()=>{if(!(l&&l.isUnmounted))return p&&p(),Ut(t,l,3,[v])}:u=qt,e&&r){const O=u;u=()=>Cr(O())}let p,v=O=>{p=A.onStop=()=>{Qn(O,l,4)}};if(Rs)return v=qt,e?n&&Ut(e,l,3,[u(),f?[]:void 0,v]):u(),qt;let m=f?[]:Od;const S=()=>{if(!!A.active)if(e){const O=A.run();(r||d||(f?O.some((k,C)=>Ds(k,m[C])):Ds(O,m)))&&(p&&p(),Ut(e,l,3,[O,m===Od?void 0:m,v]),m=O)}else A.run()};S.allowRecurse=!!e;let T;i==="sync"?T=S:i==="post"?T=()=>bt(S,l&&l.suspense):T=()=>{!l||l.isMounted?cw(S):S()};const A=new Fc(u,T);return e?n?S():m=A.run():i==="post"?bt(A.run.bind(A),l&&l.suspense):A.run(),()=>{A.stop(),l&&l.scope&&$c(l.scope.effects,A)}}function yw(t,e,n){const r=this.proxy,i=rt(t)?t.includes(".")?Vp(r,t):()=>r[t]:t.bind(r,r);let s;ke(e)?s=e:(s=e.handler,n=e);const o=ot;Ci(this);const l=Fp(i,s.bind(r),n);return o?Ci(o):Dr(),l}function Vp(t,e){const n=e.split(".");return()=>{let r=t;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}function Cr(t,e){if(!et(t)||t.__v_skip||(e=e||new Set,e.has(t)))return t;if(e.add(t),Xe(t))Cr(t.value,e);else if(ge(t))for(let n=0;n<t.length;n++)Cr(t[n],e);else if(Bi(t)||gi(t))t.forEach(n=>{Cr(n,e)});else if(pp(t))for(const n in t)Cr(t[n],e);return t}function _w(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Wr(()=>{t.isMounted=!0}),zp(()=>{t.isUnmounting=!0}),t}const Rt=[Function,Array],bw={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Rt,onEnter:Rt,onAfterEnter:Rt,onEnterCancelled:Rt,onBeforeLeave:Rt,onLeave:Rt,onAfterLeave:Rt,onLeaveCancelled:Rt,onBeforeAppear:Rt,onAppear:Rt,onAfterAppear:Rt,onAppearCancelled:Rt},setup(t,{slots:e}){const n=va(),r=_w();let i;return()=>{const s=e.default&&qp(e.default(),!0);if(!s||!s.length)return;const o=Be(t),{mode:l}=o,u=s[0];if(r.isLeaving)return rl(u);const d=Id(u);if(!d)return rl(u);const f=Gl(d,o,r,n);Xl(d,f);const p=n.subTree,v=p&&Id(p);let m=!1;const{getTransitionKey:S}=d.type;if(S){const T=S();i===void 0?i=T:T!==i&&(i=T,m=!0)}if(v&&v.type!==Kt&&(!wr(d,v)||m)){const T=Gl(v,o,r,n);if(Xl(v,T),l==="out-in")return r.isLeaving=!0,T.afterLeave=()=>{r.isLeaving=!1,n.update()},rl(u);l==="in-out"&&d.type!==Kt&&(T.delayLeave=(A,O,k)=>{const C=Wp(r,v);C[String(v.key)]=v,A._leaveCb=()=>{O(),A._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=k})}return u}}},jp=bw;function Wp(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function Gl(t,e,n,r){const{appear:i,mode:s,persisted:o=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:d,onEnterCancelled:f,onBeforeLeave:p,onLeave:v,onAfterLeave:m,onLeaveCancelled:S,onBeforeAppear:T,onAppear:A,onAfterAppear:O,onAppearCancelled:k}=e,C=String(t.key),D=Wp(n,t),B=(b,x)=>{b&&Ut(b,r,9,x)},j={mode:s,persisted:o,beforeEnter(b){let x=l;if(!n.isMounted)if(i)x=T||l;else return;b._leaveCb&&b._leaveCb(!0);const R=D[C];R&&wr(t,R)&&R.el._leaveCb&&R.el._leaveCb(),B(x,[b])},enter(b){let x=u,R=d,H=f;if(!n.isMounted)if(i)x=A||u,R=O||d,H=k||f;else return;let w=!1;const g=b._enterCb=F=>{w||(w=!0,F?B(H,[b]):B(R,[b]),j.delayedLeave&&j.delayedLeave(),b._enterCb=void 0)};x?(x(b,g),x.length<=1&&g()):g()},leave(b,x){const R=String(t.key);if(b._enterCb&&b._enterCb(!0),n.isUnmounting)return x();B(p,[b]);let H=!1;const w=b._leaveCb=g=>{H||(H=!0,x(),g?B(S,[b]):B(m,[b]),b._leaveCb=void 0,D[R]===t&&delete D[R])};D[R]=t,v?(v(b,w),v.length<=1&&w()):w()},clone(b){return Gl(b,e,n,r)}};return j}function rl(t){if(ha(t))return t=Ti(t),t.children=null,t}function Id(t){return ha(t)?t.children?t.children[0]:void 0:t}function Xl(t,e){t.shapeFlag&6&&t.component?Xl(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function qp(t,e=!1){let n=[],r=0;for(let i=0;i<t.length;i++){const s=t[i];s.type===Me?(s.patchFlag&128&&r++,n=n.concat(qp(s.children,e))):(e||s.type!==Kt)&&n.push(s)}if(r>1)for(let i=0;i<n.length;i++)n[i].patchFlag=-2;return n}function Gt(t){return ke(t)?{setup:t,name:t.name}:t}const Jl=t=>!!t.type.__asyncLoader,ha=t=>t.type.__isKeepAlive;function ww(t,e){Yp(t,"a",e)}function Ew(t,e){Yp(t,"da",e)}function Yp(t,e,n=ot){const r=t.__wdc||(t.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(pa(e,r,n),n){let i=n.parent;for(;i&&i.parent;)ha(i.parent.vnode)&&Tw(r,e,n,i),i=i.parent}}function Tw(t,e,n,r){const i=pa(e,t,r,!0);ma(()=>{$c(r[e],i)},n)}function pa(t,e,n=ot,r=!1){if(n){const i=n[t]||(n[t]=[]),s=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;Ui(),Ci(n);const l=Ut(e,n,t,o);return Dr(),jr(),l});return r?i.unshift(s):i.push(s),s}}const Dn=t=>(e,n=ot)=>(!Rs||t==="sp")&&pa(t,e,n),Cw=Dn("bm"),Wr=Dn("m"),Kp=Dn("bu"),Sw=Dn("u"),zp=Dn("bum"),ma=Dn("um"),Aw=Dn("sp"),Ow=Dn("rtg"),Iw=Dn("rtc");function kw(t,e=ot){pa("ec",t,e)}let Ql=!0;function Dw(t){const e=Xp(t),n=t.proxy,r=t.ctx;Ql=!1,e.beforeCreate&&kd(e.beforeCreate,t,"bc");const{data:i,computed:s,methods:o,watch:l,provide:u,inject:d,created:f,beforeMount:p,mounted:v,beforeUpdate:m,updated:S,activated:T,deactivated:A,beforeDestroy:O,beforeUnmount:k,destroyed:C,unmounted:D,render:B,renderTracked:j,renderTriggered:b,errorCaptured:x,serverPrefetch:R,expose:H,inheritAttrs:w,components:g,directives:F,filters:V}=e;if(d&&Pw(d,r,null,t.appContext.config.unwrapInjectedRef),o)for(const G in o){const le=o[G];ke(le)&&(r[G]=le.bind(n))}if(i){const G=i.call(n,n);et(G)&&(t.data=Hi(G))}if(Ql=!0,s)for(const G in s){const le=s[G],Te=ke(le)?le.bind(n,n):ke(le.get)?le.get.bind(n,n):qt,He=!ke(le)&&ke(le.set)?le.set.bind(n):qt,Ue=ce({get:Te,set:He});Object.defineProperty(r,G,{enumerable:!0,configurable:!0,get:()=>Ue.value,set:We=>Ue.value=We})}if(l)for(const G in l)Gp(l[G],r,n,G);if(u){const G=ke(u)?u.call(n):u;Reflect.ownKeys(G).forEach(le=>{Ir(le,G[le])})}f&&kd(f,t,"c");function ee(G,le){ge(le)?le.forEach(Te=>G(Te.bind(n))):le&&G(le.bind(n))}if(ee(Cw,p),ee(Wr,v),ee(Kp,m),ee(Sw,S),ee(ww,T),ee(Ew,A),ee(kw,x),ee(Iw,j),ee(Ow,b),ee(zp,k),ee(ma,D),ee(Aw,R),ge(H))if(H.length){const G=t.exposed||(t.exposed={});H.forEach(le=>{Object.defineProperty(G,le,{get:()=>n[le],set:Te=>n[le]=Te})})}else t.exposed||(t.exposed={});B&&t.render===qt&&(t.render=B),w!=null&&(t.inheritAttrs=w),g&&(t.components=g),F&&(t.directives=F)}function Pw(t,e,n=qt,r=!1){ge(t)&&(t=Zl(t));for(const i in t){const s=t[i];let o;et(s)?"default"in s?o=ht(s.from||i,s.default,!0):o=ht(s.from||i):o=ht(s),Xe(o)&&r?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:l=>o.value=l}):e[i]=o}}function kd(t,e,n){Ut(ge(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function Gp(t,e,n,r){const i=r.includes(".")?Vp(n,r):()=>n[r];if(rt(t)){const s=e[t];ke(s)&&cn(i,s)}else if(ke(t))cn(i,t.bind(n));else if(et(t))if(ge(t))t.forEach(s=>Gp(s,e,n,r));else{const s=ke(t.handler)?t.handler.bind(n):e[t.handler];ke(s)&&cn(i,s,t)}}function Xp(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=t.appContext,l=s.get(e);let u;return l?u=l:!i.length&&!n&&!r?u=e:(u={},i.length&&i.forEach(d=>Ho(u,d,o,!0)),Ho(u,e,o)),s.set(e,u),u}function Ho(t,e,n,r=!1){const{mixins:i,extends:s}=e;s&&Ho(t,s,n,!0),i&&i.forEach(o=>Ho(t,o,n,!0));for(const o in e)if(!(r&&o==="expose")){const l=Nw[o]||n&&n[o];t[o]=l?l(t[o],e[o]):e[o]}return t}const Nw={data:Dd,props:gr,emits:gr,methods:gr,computed:gr,beforeCreate:gt,created:gt,beforeMount:gt,mounted:gt,beforeUpdate:gt,updated:gt,beforeDestroy:gt,beforeUnmount:gt,destroyed:gt,unmounted:gt,activated:gt,deactivated:gt,errorCaptured:gt,serverPrefetch:gt,components:gr,directives:gr,watch:Mw,provide:Dd,inject:xw};function Dd(t,e){return e?t?function(){return ct(ke(t)?t.call(this,this):t,ke(e)?e.call(this,this):e)}:e:t}function xw(t,e){return gr(Zl(t),Zl(e))}function Zl(t){if(ge(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function gt(t,e){return t?[...new Set([].concat(t,e))]:e}function gr(t,e){return t?ct(ct(Object.create(null),t),e):e}function Mw(t,e){if(!t)return e;if(!e)return t;const n=ct(Object.create(null),t);for(const r in e)n[r]=gt(t[r],e[r]);return n}function Rw(t,e,n,r=!1){const i={},s={};Lo(s,ga,1),t.propsDefaults=Object.create(null),Jp(t,e,i,s);for(const o in t.propsOptions[0])o in i||(i[o]=void 0);n?t.props=r?i:Qb(i):t.type.props?t.props=i:t.props=s,t.attrs=s}function Lw(t,e,n,r){const{props:i,attrs:s,vnode:{patchFlag:o}}=t,l=Be(i),[u]=t.propsOptions;let d=!1;if((r||o>0)&&!(o&16)){if(o&8){const f=t.vnode.dynamicProps;for(let p=0;p<f.length;p++){let v=f[p];const m=e[v];if(u)if(Le(s,v))m!==s[v]&&(s[v]=m,d=!0);else{const S=mn(v);i[S]=ec(u,l,S,m,t,!1)}else m!==s[v]&&(s[v]=m,d=!0)}}}else{Jp(t,e,i,s)&&(d=!0);let f;for(const p in l)(!e||!Le(e,p)&&((f=Vr(p))===p||!Le(e,f)))&&(u?n&&(n[p]!==void 0||n[f]!==void 0)&&(i[p]=ec(u,l,p,void 0,t,!0)):delete i[p]);if(s!==l)for(const p in s)(!e||!Le(e,p)&&!0)&&(delete s[p],d=!0)}d&&On(t,"set","$attrs")}function Jp(t,e,n,r){const[i,s]=t.propsOptions;let o=!1,l;if(e)for(let u in e){if(Co(u))continue;const d=e[u];let f;i&&Le(i,f=mn(u))?!s||!s.includes(f)?n[f]=d:(l||(l={}))[f]=d:Xc(t.emitsOptions,u)||(!(u in r)||d!==r[u])&&(r[u]=d,o=!0)}if(s){const u=Be(n),d=l||ze;for(let f=0;f<s.length;f++){const p=s[f];n[p]=ec(i,u,p,d[p],t,!Le(d,p))}}return o}function ec(t,e,n,r,i,s){const o=t[n];if(o!=null){const l=Le(o,"default");if(l&&r===void 0){const u=o.default;if(o.type!==Function&&ke(u)){const{propsDefaults:d}=i;n in d?r=d[n]:(Ci(i),r=d[n]=u.call(null,e),Dr())}else r=u}o[0]&&(s&&!l?r=!1:o[1]&&(r===""||r===Vr(n))&&(r=!0))}return r}function Qp(t,e,n=!1){const r=e.propsCache,i=r.get(t);if(i)return i;const s=t.props,o={},l=[];let u=!1;if(!ke(t)){const f=p=>{u=!0;const[v,m]=Qp(p,e,!0);ct(o,v),m&&l.push(...m)};!n&&e.mixins.length&&e.mixins.forEach(f),t.extends&&f(t.extends),t.mixins&&t.mixins.forEach(f)}if(!s&&!u)return r.set(t,mi),mi;if(ge(s))for(let f=0;f<s.length;f++){const p=mn(s[f]);Pd(p)&&(o[p]=ze)}else if(s)for(const f in s){const p=mn(f);if(Pd(p)){const v=s[f],m=o[p]=ge(v)||ke(v)?{type:v}:v;if(m){const S=Md(Boolean,m.type),T=Md(String,m.type);m[0]=S>-1,m[1]=T<0||S<T,(S>-1||Le(m,"default"))&&l.push(p)}}}const d=[o,l];return r.set(t,d),d}function Pd(t){return t[0]!=="$"}function Nd(t){const e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:t===null?"null":""}function xd(t,e){return Nd(t)===Nd(e)}function Md(t,e){return ge(e)?e.findIndex(n=>xd(n,t)):ke(e)&&xd(e,t)?0:-1}const Zp=t=>t[0]==="_"||t==="$stable",Jc=t=>ge(t)?t.map(an):[an(t)],$w=(t,e,n)=>{const r=$e((...i)=>Jc(e(...i)),n);return r._c=!1,r},em=(t,e,n)=>{const r=t._ctx;for(const i in t){if(Zp(i))continue;const s=t[i];if(ke(s))e[i]=$w(i,s,r);else if(s!=null){const o=Jc(s);e[i]=()=>o}}},tm=(t,e)=>{const n=Jc(e);t.slots.default=()=>n},Bw=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=Be(e),Lo(e,"_",n)):em(e,t.slots={})}else t.slots={},e&&tm(t,e);Lo(t.slots,ga,1)},Uw=(t,e,n)=>{const{vnode:r,slots:i}=t;let s=!0,o=ze;if(r.shapeFlag&32){const l=e._;l?n&&l===1?s=!1:(ct(i,e),!n&&l===1&&delete i._):(s=!e.$stable,em(e,i)),o=e}else e&&(tm(t,e),o={default:1});if(s)for(const l in i)!Zp(l)&&!(l in o)&&delete i[l]};function hx(t,e){const n=kt;if(n===null)return t;const r=n.proxy,i=t.dirs||(t.dirs=[]);for(let s=0;s<e.length;s++){let[o,l,u,d=ze]=e[s];ke(o)&&(o={mounted:o,updated:o}),o.deep&&Cr(l),i.push({dir:o,instance:r,value:l,oldValue:void 0,arg:u,modifiers:d})}return t}function cr(t,e,n,r){const i=t.dirs,s=e&&e.dirs;for(let o=0;o<i.length;o++){const l=i[o];s&&(l.oldValue=s[o].value);let u=l.dir[r];u&&(Ui(),Ut(u,n,8,[t.el,l,t,e]),jr())}}function nm(){return{app:null,config:{isNativeTag:gb,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Hw=0;function Fw(t,e){return function(r,i=null){i!=null&&!et(i)&&(i=null);const s=nm(),o=new Set;let l=!1;const u=s.app={_uid:Hw++,_component:r,_props:i,_container:null,_context:s,_instance:null,version:a0,get config(){return s.config},set config(d){},use(d,...f){return o.has(d)||(d&&ke(d.install)?(o.add(d),d.install(u,...f)):ke(d)&&(o.add(d),d(u,...f))),u},mixin(d){return s.mixins.includes(d)||s.mixins.push(d),u},component(d,f){return f?(s.components[d]=f,u):s.components[d]},directive(d,f){return f?(s.directives[d]=f,u):s.directives[d]},mount(d,f,p){if(!l){const v=Qe(r,i);return v.appContext=s,f&&e?e(v,d):t(v,d,p),l=!0,u._container=d,d.__vue_app__=u,nu(v.component)||v.component.proxy}},unmount(){l&&(t(null,u._container),delete u._container.__vue_app__)},provide(d,f){return s.provides[d]=f,u}};return u}}function tc(t,e,n,r,i=!1){if(ge(t)){t.forEach((v,m)=>tc(v,e&&(ge(e)?e[m]:e),n,r,i));return}if(Jl(r)&&!i)return;const s=r.shapeFlag&4?nu(r.component)||r.component.proxy:r.el,o=i?null:s,{i:l,r:u}=t,d=e&&e.r,f=l.refs===ze?l.refs={}:l.refs,p=l.setupState;if(d!=null&&d!==u&&(rt(d)?(f[d]=null,Le(p,d)&&(p[d]=null)):Xe(d)&&(d.value=null)),ke(u))Qn(u,l,12,[o,f]);else{const v=rt(u),m=Xe(u);if(v||m){const S=()=>{if(t.f){const T=v?f[u]:u.value;i?ge(T)&&$c(T,s):ge(T)?T.includes(s)||T.push(s):v?f[u]=[s]:(u.value=[s],t.k&&(f[t.k]=u.value))}else v?(f[u]=o,Le(p,u)&&(p[u]=o)):Xe(u)&&(u.value=o,t.k&&(f[t.k]=o))};o?(S.id=-1,bt(S,n)):S()}}}const bt=vw;function Vw(t){return jw(t)}function jw(t,e){const n=Eb();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:o,createText:l,createComment:u,setText:d,setElementText:f,parentNode:p,nextSibling:v,setScopeId:m=qt,cloneNode:S,insertStaticContent:T}=t,A=(y,E,P,M=null,$=null,X=null,Q=!1,q=null,te=!!E.dynamicChildren)=>{if(y===E)return;y&&!wr(y,E)&&(M=se(y),xe(y,$,X,!0),y=null),E.patchFlag===-2&&(te=!1,E.dynamicChildren=null);const{type:N,ref:J,shapeFlag:U}=E;switch(N){case eu:O(y,E,P,M);break;case Kt:k(y,E,P,M);break;case il:y==null&&C(E,P,M,Q);break;case Me:F(y,E,P,M,$,X,Q,q,te);break;default:U&1?j(y,E,P,M,$,X,Q,q,te):U&6?V(y,E,P,M,$,X,Q,q,te):(U&64||U&128)&&N.process(y,E,P,M,$,X,Q,q,te,ve)}J!=null&&$&&tc(J,y&&y.ref,X,E||y,!E)},O=(y,E,P,M)=>{if(y==null)r(E.el=l(E.children),P,M);else{const $=E.el=y.el;E.children!==y.children&&d($,E.children)}},k=(y,E,P,M)=>{y==null?r(E.el=u(E.children||""),P,M):E.el=y.el},C=(y,E,P,M)=>{[y.el,y.anchor]=T(y.children,E,P,M,y.el,y.anchor)},D=({el:y,anchor:E},P,M)=>{let $;for(;y&&y!==E;)$=v(y),r(y,P,M),y=$;r(E,P,M)},B=({el:y,anchor:E})=>{let P;for(;y&&y!==E;)P=v(y),i(y),y=P;i(E)},j=(y,E,P,M,$,X,Q,q,te)=>{Q=Q||E.type==="svg",y==null?b(E,P,M,$,X,Q,q,te):H(y,E,$,X,Q,q,te)},b=(y,E,P,M,$,X,Q,q)=>{let te,N;const{type:J,props:U,shapeFlag:ie,transition:ne,patchFlag:ye,dirs:Ne}=y;if(y.el&&S!==void 0&&ye===-1)te=y.el=S(y.el);else{if(te=y.el=o(y.type,X,U&&U.is,U),ie&8?f(te,y.children):ie&16&&R(y.children,te,null,M,$,X&&J!=="foreignObject",Q,q),Ne&&cr(y,null,M,"created"),U){for(const Ce in U)Ce!=="value"&&!Co(Ce)&&s(te,Ce,null,U[Ce],X,y.children,M,$,z);"value"in U&&s(te,"value",null,U.value),(N=U.onVnodeBeforeMount)&&Qt(N,M,y)}x(te,y,y.scopeId,Q,M)}Ne&&cr(y,null,M,"beforeMount");const Re=(!$||$&&!$.pendingBranch)&&ne&&!ne.persisted;Re&&ne.beforeEnter(te),r(te,E,P),((N=U&&U.onVnodeMounted)||Re||Ne)&&bt(()=>{N&&Qt(N,M,y),Re&&ne.enter(te),Ne&&cr(y,null,M,"mounted")},$)},x=(y,E,P,M,$)=>{if(P&&m(y,P),M)for(let X=0;X<M.length;X++)m(y,M[X]);if($){let X=$.subTree;if(E===X){const Q=$.vnode;x(y,Q,Q.scopeId,Q.slotScopeIds,$.parent)}}},R=(y,E,P,M,$,X,Q,q,te=0)=>{for(let N=te;N<y.length;N++){const J=y[N]=q?Vn(y[N]):an(y[N]);A(null,J,E,P,M,$,X,Q,q)}},H=(y,E,P,M,$,X,Q)=>{const q=E.el=y.el;let{patchFlag:te,dynamicChildren:N,dirs:J}=E;te|=y.patchFlag&16;const U=y.props||ze,ie=E.props||ze;let ne;P&&ur(P,!1),(ne=ie.onVnodeBeforeUpdate)&&Qt(ne,P,E,y),J&&cr(E,y,P,"beforeUpdate"),P&&ur(P,!0);const ye=$&&E.type!=="foreignObject";if(N?w(y.dynamicChildren,N,q,P,M,ye,X):Q||Te(y,E,q,null,P,M,ye,X,!1),te>0){if(te&16)g(q,E,U,ie,P,M,$);else if(te&2&&U.class!==ie.class&&s(q,"class",null,ie.class,$),te&4&&s(q,"style",U.style,ie.style,$),te&8){const Ne=E.dynamicProps;for(let Re=0;Re<Ne.length;Re++){const Ce=Ne[Re],Ye=U[Ce],_n=ie[Ce];(_n!==Ye||Ce==="value")&&s(q,Ce,Ye,_n,$,y.children,P,M,z)}}te&1&&y.children!==E.children&&f(q,E.children)}else!Q&&N==null&&g(q,E,U,ie,P,M,$);((ne=ie.onVnodeUpdated)||J)&&bt(()=>{ne&&Qt(ne,P,E,y),J&&cr(E,y,P,"updated")},M)},w=(y,E,P,M,$,X,Q)=>{for(let q=0;q<E.length;q++){const te=y[q],N=E[q],J=te.el&&(te.type===Me||!wr(te,N)||te.shapeFlag&70)?p(te.el):P;A(te,N,J,null,M,$,X,Q,!0)}},g=(y,E,P,M,$,X,Q)=>{if(P!==M){for(const q in M){if(Co(q))continue;const te=M[q],N=P[q];te!==N&&q!=="value"&&s(y,q,N,te,Q,E.children,$,X,z)}if(P!==ze)for(const q in P)!Co(q)&&!(q in M)&&s(y,q,P[q],null,Q,E.children,$,X,z);"value"in M&&s(y,"value",P.value,M.value)}},F=(y,E,P,M,$,X,Q,q,te)=>{const N=E.el=y?y.el:l(""),J=E.anchor=y?y.anchor:l("");let{patchFlag:U,dynamicChildren:ie,slotScopeIds:ne}=E;ne&&(q=q?q.concat(ne):ne),y==null?(r(N,P,M),r(J,P,M),R(E.children,P,J,$,X,Q,q,te)):U>0&&U&64&&ie&&y.dynamicChildren?(w(y.dynamicChildren,ie,P,$,X,Q,q),(E.key!=null||$&&E===$.subTree)&&Qc(y,E,!0)):Te(y,E,P,J,$,X,Q,q,te)},V=(y,E,P,M,$,X,Q,q,te)=>{E.slotScopeIds=q,y==null?E.shapeFlag&512?$.ctx.activate(E,P,M,Q,te):ae(E,P,M,$,X,Q,te):ee(y,E,te)},ae=(y,E,P,M,$,X,Q)=>{const q=y.component=e0(y,M,$);if(ha(y)&&(q.ctx.renderer=ve),t0(q),q.asyncDep){if($&&$.registerDep(q,G),!y.el){const te=q.subTree=Qe(Kt);k(null,te,E,P)}return}G(q,y,E,P,$,X,Q)},ee=(y,E,P)=>{const M=E.component=y.component;if(pw(y,E,P))if(M.asyncDep&&!M.asyncResolved){le(M,E,P);return}else M.next=E,lw(M.update),M.update();else E.component=y.component,E.el=y.el,M.vnode=E},G=(y,E,P,M,$,X,Q)=>{const q=()=>{if(y.isMounted){let{next:J,bu:U,u:ie,parent:ne,vnode:ye}=y,Ne=J,Re;ur(y,!1),J?(J.el=ye.el,le(y,J,Q)):J=ye,U&&So(U),(Re=J.props&&J.props.onVnodeBeforeUpdate)&&Qt(Re,ne,J,ye),ur(y,!0);const Ce=nl(y),Ye=y.subTree;y.subTree=Ce,A(Ye,Ce,p(Ye.el),se(Ye),y,$,X),J.el=Ce.el,Ne===null&&mw(y,Ce.el),ie&&bt(ie,$),(Re=J.props&&J.props.onVnodeUpdated)&&bt(()=>Qt(Re,ne,J,ye),$)}else{let J;const{el:U,props:ie}=E,{bm:ne,m:ye,parent:Ne}=y,Re=Jl(E);if(ur(y,!1),ne&&So(ne),!Re&&(J=ie&&ie.onVnodeBeforeMount)&&Qt(J,Ne,E),ur(y,!0),U&&pe){const Ce=()=>{y.subTree=nl(y),pe(U,y.subTree,y,$,null)};Re?E.type.__asyncLoader().then(()=>!y.isUnmounted&&Ce()):Ce()}else{const Ce=y.subTree=nl(y);A(null,Ce,P,M,y,$,X),E.el=Ce.el}if(ye&&bt(ye,$),!Re&&(J=ie&&ie.onVnodeMounted)){const Ce=E;bt(()=>Qt(J,Ne,Ce),$)}E.shapeFlag&256&&y.a&&bt(y.a,$),y.isMounted=!0,E=P=M=null}},te=y.effect=new Fc(q,()=>Rp(y.update),y.scope),N=y.update=te.run.bind(te);N.id=y.uid,ur(y,!0),N()},le=(y,E,P)=>{E.component=y;const M=y.vnode.props;y.vnode=E,y.next=null,Lw(y,E.props,M,P),Uw(y,E.children,P),Ui(),Gc(void 0,y.update),jr()},Te=(y,E,P,M,$,X,Q,q,te=!1)=>{const N=y&&y.children,J=y?y.shapeFlag:0,U=E.children,{patchFlag:ie,shapeFlag:ne}=E;if(ie>0){if(ie&128){Ue(N,U,P,M,$,X,Q,q,te);return}else if(ie&256){He(N,U,P,M,$,X,Q,q,te);return}}ne&8?(J&16&&z(N,$,X),U!==N&&f(P,U)):J&16?ne&16?Ue(N,U,P,M,$,X,Q,q,te):z(N,$,X,!0):(J&8&&f(P,""),ne&16&&R(U,P,M,$,X,Q,q,te))},He=(y,E,P,M,$,X,Q,q,te)=>{y=y||mi,E=E||mi;const N=y.length,J=E.length,U=Math.min(N,J);let ie;for(ie=0;ie<U;ie++){const ne=E[ie]=te?Vn(E[ie]):an(E[ie]);A(y[ie],ne,P,null,$,X,Q,q,te)}N>J?z(y,$,X,!0,!1,U):R(E,P,M,$,X,Q,q,te,U)},Ue=(y,E,P,M,$,X,Q,q,te)=>{let N=0;const J=E.length;let U=y.length-1,ie=J-1;for(;N<=U&&N<=ie;){const ne=y[N],ye=E[N]=te?Vn(E[N]):an(E[N]);if(wr(ne,ye))A(ne,ye,P,null,$,X,Q,q,te);else break;N++}for(;N<=U&&N<=ie;){const ne=y[U],ye=E[ie]=te?Vn(E[ie]):an(E[ie]);if(wr(ne,ye))A(ne,ye,P,null,$,X,Q,q,te);else break;U--,ie--}if(N>U){if(N<=ie){const ne=ie+1,ye=ne<J?E[ne].el:M;for(;N<=ie;)A(null,E[N]=te?Vn(E[N]):an(E[N]),P,ye,$,X,Q,q,te),N++}}else if(N>ie)for(;N<=U;)xe(y[N],$,X,!0),N++;else{const ne=N,ye=N,Ne=new Map;for(N=ye;N<=ie;N++){const ut=E[N]=te?Vn(E[N]):an(E[N]);ut.key!=null&&Ne.set(ut.key,N)}let Re,Ce=0;const Ye=ie-ye+1;let _n=!1,or=0;const it=new Array(Ye);for(N=0;N<Ye;N++)it[N]=0;for(N=ne;N<=U;N++){const ut=y[N];if(Ce>=Ye){xe(ut,$,X,!0);continue}let Tt;if(ut.key!=null)Tt=Ne.get(ut.key);else for(Re=ye;Re<=ie;Re++)if(it[Re-ye]===0&&wr(ut,E[Re])){Tt=Re;break}Tt===void 0?xe(ut,$,X,!0):(it[Tt-ye]=N+1,Tt>=or?or=Tt:_n=!0,A(ut,E[Tt],P,null,$,X,Q,q,te),Ce++)}const no=_n?Ww(it):mi;for(Re=no.length-1,N=Ye-1;N>=0;N--){const ut=ye+N,Tt=E[ut],Gr=ut+1<J?E[ut+1].el:M;it[N]===0?A(null,Tt,P,Gr,$,X,Q,q,te):_n&&(Re<0||N!==no[Re]?We(Tt,P,Gr,2):Re--)}}},We=(y,E,P,M,$=null)=>{const{el:X,type:Q,transition:q,children:te,shapeFlag:N}=y;if(N&6){We(y.component.subTree,E,P,M);return}if(N&128){y.suspense.move(E,P,M);return}if(N&64){Q.move(y,E,P,ve);return}if(Q===Me){r(X,E,P);for(let U=0;U<te.length;U++)We(te[U],E,P,M);r(y.anchor,E,P);return}if(Q===il){D(y,E,P);return}if(M!==2&&N&1&&q)if(M===0)q.beforeEnter(X),r(X,E,P),bt(()=>q.enter(X),$);else{const{leave:U,delayLeave:ie,afterLeave:ne}=q,ye=()=>r(X,E,P),Ne=()=>{U(X,()=>{ye(),ne&&ne()})};ie?ie(X,ye,Ne):Ne()}else r(X,E,P)},xe=(y,E,P,M=!1,$=!1)=>{const{type:X,props:Q,ref:q,children:te,dynamicChildren:N,shapeFlag:J,patchFlag:U,dirs:ie}=y;if(q!=null&&tc(q,null,P,y,!0),J&256){E.ctx.deactivate(y);return}const ne=J&1&&ie,ye=!Jl(y);let Ne;if(ye&&(Ne=Q&&Q.onVnodeBeforeUnmount)&&Qt(Ne,E,y),J&6)re(y.component,P,M);else{if(J&128){y.suspense.unmount(P,M);return}ne&&cr(y,null,E,"beforeUnmount"),J&64?y.type.remove(y,E,P,$,ve,M):N&&(X!==Me||U>0&&U&64)?z(N,E,P,!1,!0):(X===Me&&U&384||!$&&J&16)&&z(te,E,P),M&&qe(y)}(ye&&(Ne=Q&&Q.onVnodeUnmounted)||ne)&&bt(()=>{Ne&&Qt(Ne,E,y),ne&&cr(y,null,E,"unmounted")},P)},qe=y=>{const{type:E,el:P,anchor:M,transition:$}=y;if(E===Me){L(P,M);return}if(E===il){B(y);return}const X=()=>{i(P),$&&!$.persisted&&$.afterLeave&&$.afterLeave()};if(y.shapeFlag&1&&$&&!$.persisted){const{leave:Q,delayLeave:q}=$,te=()=>Q(P,X);q?q(y.el,X,te):te()}else X()},L=(y,E)=>{let P;for(;y!==E;)P=v(y),i(y),y=P;i(E)},re=(y,E,P)=>{const{bum:M,scope:$,update:X,subTree:Q,um:q}=y;M&&So(M),$.stop(),X&&(X.active=!1,xe(Q,y,E,P)),q&&bt(q,E),bt(()=>{y.isUnmounted=!0},E),E&&E.pendingBranch&&!E.isUnmounted&&y.asyncDep&&!y.asyncResolved&&y.suspenseId===E.pendingId&&(E.deps--,E.deps===0&&E.resolve())},z=(y,E,P,M=!1,$=!1,X=0)=>{for(let Q=X;Q<y.length;Q++)xe(y[Q],E,P,M,$)},se=y=>y.shapeFlag&6?se(y.component.subTree):y.shapeFlag&128?y.suspense.next():v(y.anchor||y.el),be=(y,E,P)=>{y==null?E._vnode&&xe(E._vnode,null,null,!0):A(E._vnode||null,y,E,null,null,null,P),Bp(),E._vnode=y},ve={p:A,um:xe,m:We,r:qe,mt:ae,mc:R,pc:Te,pbc:w,n:se,o:t};let de,pe;return e&&([de,pe]=e(ve)),{render:be,hydrate:de,createApp:Fw(be,de)}}function ur({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function Qc(t,e,n=!1){const r=t.children,i=e.children;if(ge(r)&&ge(i))for(let s=0;s<r.length;s++){const o=r[s];let l=i[s];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=i[s]=Vn(i[s]),l.el=o.el),n||Qc(o,l))}}function Ww(t){const e=t.slice(),n=[0];let r,i,s,o,l;const u=t.length;for(r=0;r<u;r++){const d=t[r];if(d!==0){if(i=n[n.length-1],t[i]<d){e[r]=i,n.push(r);continue}for(s=0,o=n.length-1;s<o;)l=s+o>>1,t[n[l]]<d?s=l+1:o=l;d<t[n[s]]&&(s>0&&(e[r]=n[s-1]),n[s]=r)}}for(s=n.length,o=n[s-1];s-- >0;)n[s]=o,o=e[o];return n}const qw=t=>t.__isTeleport,gs=t=>t&&(t.disabled||t.disabled===""),Rd=t=>typeof SVGElement!="undefined"&&t instanceof SVGElement,nc=(t,e)=>{const n=t&&t.to;return rt(n)?e?e(n):null:n},Yw={__isTeleport:!0,process(t,e,n,r,i,s,o,l,u,d){const{mc:f,pc:p,pbc:v,o:{insert:m,querySelector:S,createText:T,createComment:A}}=d,O=gs(e.props);let{shapeFlag:k,children:C,dynamicChildren:D}=e;if(t==null){const B=e.el=T(""),j=e.anchor=T("");m(B,n,r),m(j,n,r);const b=e.target=nc(e.props,S),x=e.targetAnchor=T("");b&&(m(x,b),o=o||Rd(b));const R=(H,w)=>{k&16&&f(C,H,w,i,s,o,l,u)};O?R(n,j):b&&R(b,x)}else{e.el=t.el;const B=e.anchor=t.anchor,j=e.target=t.target,b=e.targetAnchor=t.targetAnchor,x=gs(t.props),R=x?n:j,H=x?B:b;if(o=o||Rd(j),D?(v(t.dynamicChildren,D,R,i,s,o,l),Qc(t,e,!0)):u||p(t,e,R,H,i,s,o,l,!1),O)x||po(e,n,B,d,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const w=e.target=nc(e.props,S);w&&po(e,w,null,d,0)}else x&&po(e,j,b,d,1)}},remove(t,e,n,r,{um:i,o:{remove:s}},o){const{shapeFlag:l,children:u,anchor:d,targetAnchor:f,target:p,props:v}=t;if(p&&s(f),(o||!gs(v))&&(s(d),l&16))for(let m=0;m<u.length;m++){const S=u[m];i(S,e,n,!0,!!S.dynamicChildren)}},move:po,hydrate:Kw};function po(t,e,n,{o:{insert:r},m:i},s=2){s===0&&r(t.targetAnchor,e,n);const{el:o,anchor:l,shapeFlag:u,children:d,props:f}=t,p=s===2;if(p&&r(o,e,n),(!p||gs(f))&&u&16)for(let v=0;v<d.length;v++)i(d[v],e,n,2);p&&r(l,e,n)}function Kw(t,e,n,r,i,s,{o:{nextSibling:o,parentNode:l,querySelector:u}},d){const f=e.target=nc(e.props,u);if(f){const p=f._lpa||f.firstChild;e.shapeFlag&16&&(gs(e.props)?(e.anchor=d(o(t),e,l(t),n,r,i,s),e.targetAnchor=p):(e.anchor=o(t),e.targetAnchor=d(p,e,f,n,r,i,s)),f._lpa=e.targetAnchor&&o(e.targetAnchor))}return e.anchor&&o(e.anchor)}const zw=Yw,Zc="components";function px(t,e){return im(Zc,t,!0,e)||t}const rm=Symbol();function rc(t){return rt(t)?im(Zc,t,!1)||t:t||rm}function im(t,e,n=!0,r=!1){const i=kt||ot;if(i){const s=i.type;if(t===Zc){const l=i0(s);if(l&&(l===e||l===mn(e)||l===la(mn(e))))return s}const o=Ld(i[t]||s[t],e)||Ld(i.appContext[t],e);return!o&&r?s:o}}function Ld(t,e){return t&&(t[e]||t[mn(e)]||t[la(mn(e))])}const Me=Symbol(void 0),eu=Symbol(void 0),Kt=Symbol(void 0),il=Symbol(void 0),vs=[];let kr=null;function K(t=!1){vs.push(kr=t?null:[])}function Gw(){vs.pop(),kr=vs[vs.length-1]||null}let Fo=1;function $d(t){Fo+=t}function sm(t){return t.dynamicChildren=Fo>0?kr||mi:null,Gw(),Fo>0&&kr&&kr.push(t),t}function oe(t,e,n,r,i,s){return sm(fe(t,e,n,r,i,s,!0))}function Pe(t,e,n,r,i){return sm(Qe(t,e,n,r,i,!0))}function Vo(t){return t?t.__v_isVNode===!0:!1}function wr(t,e){return t.type===e.type&&t.key===e.key}const ga="__vInternal",om=({key:t})=>t!=null?t:null,Ao=({ref:t,ref_key:e,ref_for:n})=>t!=null?rt(t)||Xe(t)||ke(t)?{i:kt,r:t,k:e,f:!!n}:t:null;function fe(t,e=null,n=null,r=0,i=null,s=t===Me?0:1,o=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&om(e),ref:e&&Ao(e),scopeId:fa,slotScopeIds:null,children:n,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:r,dynamicProps:i,dynamicChildren:null,appContext:null};return l?(tu(u,n),s&128&&t.normalize(u)):n&&(u.shapeFlag|=rt(n)?8:16),Fo>0&&!o&&kr&&(u.patchFlag>0||s&6)&&u.patchFlag!==32&&kr.push(u),u}const Qe=Xw;function Xw(t,e=null,n=null,r=0,i=null,s=!1){if((!t||t===rm)&&(t=Kt),Vo(t)){const l=Ti(t,e,!0);return n&&tu(l,n),l}if(s0(t)&&(t=t.__vccOpts),e){e=un(e);let{class:l,style:u}=e;l&&!rt(l)&&(e.class=Ve(l)),et(u)&&(kp(u)&&!ge(u)&&(u=ct({},u)),e.style=En(u))}const o=rt(t)?1:gw(t)?128:qw(t)?64:et(t)?4:ke(t)?2:0;return fe(t,e,n,r,i,o,s,!0)}function un(t){return t?kp(t)||ga in t?ct({},t):t:null}function Ti(t,e,n=!1){const{props:r,ref:i,patchFlag:s,children:o}=t,l=e?wt(r||{},e):r;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&om(l),ref:e&&e.ref?n&&i?ge(i)?i.concat(Ao(e)):[i,Ao(e)]:Ao(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Me?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Ti(t.ssContent),ssFallback:t.ssFallback&&Ti(t.ssFallback),el:t.el,anchor:t.anchor}}function Yt(t=" ",e=0){return Qe(eu,null,t,e)}function W(t="",e=!1){return e?(K(),Pe(Kt,null,t)):Qe(Kt,null,t)}function an(t){return t==null||typeof t=="boolean"?Qe(Kt):ge(t)?Qe(Me,null,t.slice()):typeof t=="object"?Vn(t):Qe(eu,null,String(t))}function Vn(t){return t.el===null||t.memo?t:Ti(t)}function tu(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(ge(e))n=16;else if(typeof e=="object")if(r&65){const i=e.default;i&&(i._c&&(i._d=!1),tu(t,i()),i._c&&(i._d=!0));return}else{n=32;const i=e._;!i&&!(ga in e)?e._ctx=kt:i===3&&kt&&(kt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else ke(e)?(e={default:e,_ctx:kt},n=32):(e=String(e),r&64?(n=16,e=[Yt(e)]):n=8);t.children=e,t.shapeFlag|=n}function wt(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const i in r)if(i==="class")e.class!==r.class&&(e.class=Ve([e.class,r.class]));else if(i==="style")e.style=En([e.style,r.style]);else if(sa(i)){const s=e[i],o=r[i];o&&s!==o&&!(ge(s)&&s.includes(o))&&(e[i]=s?[].concat(s,o):o)}else i!==""&&(e[i]=r[i])}return e}function Qt(t,e,n,r=null){Ut(t,e,7,[n,r])}function dt(t,e,n,r){let i;const s=n&&n[r];if(ge(t)||rt(t)){i=new Array(t.length);for(let o=0,l=t.length;o<l;o++)i[o]=e(t[o],o,void 0,s&&s[o])}else if(typeof t=="number"){i=new Array(t);for(let o=0;o<t;o++)i[o]=e(o+1,o,void 0,s&&s[o])}else if(et(t))if(t[Symbol.iterator])i=Array.from(t,(o,l)=>e(o,l,void 0,s&&s[l]));else{const o=Object.keys(t);i=new Array(o.length);for(let l=0,u=o.length;l<u;l++){const d=o[l];i[l]=e(t[d],d,l,s&&s[l])}}else i=[];return n&&(n[r]=i),i}function ft(t,e){for(let n=0;n<e.length;n++){const r=e[n];if(ge(r))for(let i=0;i<r.length;i++)t[r[i].name]=r[i].fn;else r&&(t[r.name]=r.fn)}return t}function he(t,e,n={},r,i){if(kt.isCE)return Qe("slot",e==="default"?null:{name:e},r&&r());let s=t[e];s&&s._c&&(s._d=!1),K();const o=s&&am(s(n)),l=Pe(Me,{key:n.key||`_${e}`},o||(r?r():[]),o&&t._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function am(t){return t.some(e=>Vo(e)?!(e.type===Kt||e.type===Me&&!am(e.children)):!0)?t:null}const ic=t=>t?lm(t)?nu(t)||t.proxy:ic(t.parent):null,jo=ct(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=>ic(t.parent),$root:t=>ic(t.root),$emit:t=>t.emit,$options:t=>Xp(t),$forceUpdate:t=>()=>Rp(t.update),$nextTick:t=>da.bind(t.proxy),$watch:t=>yw.bind(t)}),Jw={get({_:t},e){const{ctx:n,setupState:r,data:i,props:s,accessCache:o,type:l,appContext:u}=t;let d;if(e[0]!=="$"){const m=o[e];if(m!==void 0)switch(m){case 1:return r[e];case 2:return i[e];case 4:return n[e];case 3:return s[e]}else{if(r!==ze&&Le(r,e))return o[e]=1,r[e];if(i!==ze&&Le(i,e))return o[e]=2,i[e];if((d=t.propsOptions[0])&&Le(d,e))return o[e]=3,s[e];if(n!==ze&&Le(n,e))return o[e]=4,n[e];Ql&&(o[e]=0)}}const f=jo[e];let p,v;if(f)return e==="$attrs"&&Dt(t,"get",e),f(t);if((p=l.__cssModules)&&(p=p[e]))return p;if(n!==ze&&Le(n,e))return o[e]=4,n[e];if(v=u.config.globalProperties,Le(v,e))return v[e]},set({_:t},e,n){const{data:r,setupState:i,ctx:s}=t;if(i!==ze&&Le(i,e))i[e]=n;else if(r!==ze&&Le(r,e))r[e]=n;else if(Le(t.props,e))return!1;return e[0]==="$"&&e.slice(1)in t?!1:(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:i,propsOptions:s}},o){let l;return!!n[o]||t!==ze&&Le(t,o)||e!==ze&&Le(e,o)||(l=s[0])&&Le(l,o)||Le(r,o)||Le(jo,o)||Le(i.config.globalProperties,o)}},Qw=nm();let Zw=0;function e0(t,e,n){const r=t.type,i=(e?e.appContext:t.appContext)||Qw,s={uid:Zw++,vnode:t,type:r,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new mp(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Qp(r,i),emitsOptions:Hp(r,i),emit:null,emitted:null,propsDefaults:ze,inheritAttrs:r.inheritAttrs,ctx:ze,data:ze,props:ze,attrs:ze,slots:ze,refs:ze,setupState:ze,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=e?e.root:s,s.emit=dw.bind(null,s),t.ce&&t.ce(s),s}let ot=null;const va=()=>ot||kt,Ci=t=>{ot=t,t.scope.on()},Dr=()=>{ot&&ot.scope.off(),ot=null};function lm(t){return t.vnode.shapeFlag&4}let Rs=!1;function t0(t,e=!1){Rs=e;const{props:n,children:r}=t.vnode,i=lm(t);Rw(t,n,i,e),Bw(t,r);const s=i?n0(t,e):void 0;return Rs=!1,s}function n0(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=Ei(new Proxy(t.ctx,Jw));const{setup:r}=n;if(r){const i=t.setupContext=r.length>1?um(t):null;Ci(t),Ui();const s=Qn(r,t,0,[t.props,i]);if(jr(),Dr(),fp(s)){if(s.then(Dr,Dr),e)return s.then(o=>{Bd(t,o,e)}).catch(o=>{ua(o,t,0)});t.asyncDep=s}else Bd(t,s,e)}else cm(t,e)}function Bd(t,e,n){ke(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:et(e)&&(t.setupState=xp(e)),cm(t,n)}let Ud;function cm(t,e,n){const r=t.type;if(!t.render){if(!e&&Ud&&!r.render){const i=r.template;if(i){const{isCustomElement:s,compilerOptions:o}=t.appContext.config,{delimiters:l,compilerOptions:u}=r,d=ct(ct({isCustomElement:s,delimiters:l},o),u);r.render=Ud(i,d)}}t.render=r.render||qt}Ci(t),Ui(),Dw(t),jr(),Dr()}function r0(t){return new Proxy(t.attrs,{get(e,n){return Dt(t,"get","$attrs"),e[n]}})}function um(t){const e=r=>{t.exposed=r||{}};let n;return{get attrs(){return n||(n=r0(t))},slots:t.slots,emit:t.emit,expose:e}}function nu(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(xp(Ei(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in jo)return jo[n](t)}}))}function i0(t){return ke(t)&&t.displayName||t.name}function s0(t){return ke(t)&&"__vccOpts"in t}const ce=(t,e)=>sw(t,e,Rs);function js(){return o0().slots}function o0(){const t=va();return t.setupContext||(t.setupContext=um(t))}function ru(t,e,n){const r=arguments.length;return r===2?et(e)&&!ge(e)?Vo(e)?Qe(t,null,[e]):Qe(t,e):Qe(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Vo(n)&&(n=[n]),Qe(t,e,n))}const a0="3.2.29",l0="http://www.w3.org/2000/svg",Er=typeof document!="undefined"?document:null,Hd=Er&&Er.createElement("template"),c0={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const i=e?Er.createElementNS(l0,t):Er.createElement(t,n?{is:n}:void 0);return t==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:t=>Er.createTextNode(t),createComment:t=>Er.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Er.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},cloneNode(t){const e=t.cloneNode(!0);return"_value"in t&&(e._value=t._value),e},insertStaticContent(t,e,n,r,i,s){const o=n?n.previousSibling:e.lastChild;if(i&&(i===s||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{Hd.innerHTML=r?`<svg>${t}</svg>`:t;const l=Hd.content;if(r){const u=l.firstChild;for(;u.firstChild;)l.appendChild(u.firstChild);l.removeChild(u)}e.insertBefore(l,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};function u0(t,e,n){const r=t._vtc;r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}function d0(t,e,n){const r=t.style,i=rt(n);if(n&&!i){for(const s in n)sc(r,s,n[s]);if(e&&!rt(e))for(const s in e)n[s]==null&&sc(r,s,"")}else{const s=r.display;i?e!==n&&(r.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(r.display=s)}}const Fd=/\s*!important$/;function sc(t,e,n){if(ge(n))n.forEach(r=>sc(t,e,r));else if(e.startsWith("--"))t.setProperty(e,n);else{const r=f0(t,e);Fd.test(n)?t.setProperty(Vr(r),n.replace(Fd,""),"important"):t[r]=n}}const Vd=["Webkit","Moz","ms"],sl={};function f0(t,e){const n=sl[e];if(n)return n;let r=mn(e);if(r!=="filter"&&r in t)return sl[e]=r;r=la(r);for(let i=0;i<Vd.length;i++){const s=Vd[i]+r;if(s in t)return sl[e]=s}return e}const jd="http://www.w3.org/1999/xlink";function h0(t,e,n,r,i){if(r&&e.startsWith("xlink:"))n==null?t.removeAttributeNS(jd,e.slice(6,e.length)):t.setAttributeNS(jd,e,n);else{const s=db(e);n==null||s&&!up(n)?t.removeAttribute(e):t.setAttribute(e,s?"":n)}}function p0(t,e,n,r,i,s,o){if(e==="innerHTML"||e==="textContent"){r&&o(r,i,s),t[e]=n==null?"":n;return}if(e==="value"&&t.tagName!=="PROGRESS"&&!t.tagName.includes("-")){t._value=n;const l=n==null?"":n;(t.value!==l||t.tagName==="OPTION")&&(t.value=l),n==null&&t.removeAttribute(e);return}if(n===""||n==null){const l=typeof t[e];if(l==="boolean"){t[e]=up(n);return}else if(n==null&&l==="string"){t[e]="",t.removeAttribute(e);return}else if(l==="number"){try{t[e]=0}catch{}t.removeAttribute(e);return}}try{t[e]=n}catch{}}let Wo=Date.now,dm=!1;if(typeof window!="undefined"){Wo()>document.createEvent("Event").timeStamp&&(Wo=()=>performance.now());const t=navigator.userAgent.match(/firefox\/(\d+)/i);dm=!!(t&&Number(t[1])<=53)}let oc=0;const m0=Promise.resolve(),g0=()=>{oc=0},v0=()=>oc||(m0.then(g0),oc=Wo());function qn(t,e,n,r){t.addEventListener(e,n,r)}function y0(t,e,n,r){t.removeEventListener(e,n,r)}function _0(t,e,n,r,i=null){const s=t._vei||(t._vei={}),o=s[e];if(r&&o)o.value=r;else{const[l,u]=b0(e);if(r){const d=s[e]=w0(r,i);qn(t,l,d,u)}else o&&(y0(t,l,o,u),s[e]=void 0)}}const Wd=/(?:Once|Passive|Capture)$/;function b0(t){let e;if(Wd.test(t)){e={};let n;for(;n=t.match(Wd);)t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}return[Vr(t.slice(2)),e]}function w0(t,e){const n=r=>{const i=r.timeStamp||Wo();(dm||i>=n.attached-1)&&Ut(E0(r,n.value),e,5,[r])};return n.value=t,n.attached=v0(),n}function E0(t,e){if(ge(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>i=>!i._stopped&&r&&r(i))}else return e}const qd=/^on[a-z]/,T0=(t,e,n,r,i=!1,s,o,l,u)=>{e==="class"?u0(t,r,i):e==="style"?d0(t,n,r):sa(e)?Lc(e)||_0(t,e,n,r,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):C0(t,e,r,i))?p0(t,e,r,s,o,l,u):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),h0(t,e,r,i))};function C0(t,e,n,r){return r?!!(e==="innerHTML"||e==="textContent"||e in t&&qd.test(e)&&ke(n)):e==="spellcheck"||e==="draggable"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||qd.test(e)&&rt(n)?!1:e in t}const Nn="transition",Ji="animation",dn=(t,{slots:e})=>ru(jp,S0(t),e);dn.displayName="Transition";const fm={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};dn.props=ct({},jp.props,fm);const dr=(t,e=[])=>{ge(t)?t.forEach(n=>n(...e)):t&&t(...e)},Yd=t=>t?ge(t)?t.some(e=>e.length>1):t.length>1:!1;function S0(t){const e={};for(const g in t)g in fm||(e[g]=t[g]);if(t.css===!1)return e;const{name:n="v",type:r,duration:i,enterFromClass:s=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:u=s,appearActiveClass:d=o,appearToClass:f=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:v=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=t,S=A0(i),T=S&&S[0],A=S&&S[1],{onBeforeEnter:O,onEnter:k,onEnterCancelled:C,onLeave:D,onLeaveCancelled:B,onBeforeAppear:j=O,onAppear:b=k,onAppearCancelled:x=C}=e,R=(g,F,V)=>{ti(g,F?f:l),ti(g,F?d:o),V&&V()},H=(g,F)=>{ti(g,m),ti(g,v),F&&F()},w=g=>(F,V)=>{const ae=g?b:k,ee=()=>R(F,g,V);dr(ae,[F,ee]),Kd(()=>{ti(F,g?u:s),xn(F,g?f:l),Yd(ae)||zd(F,r,T,ee)})};return ct(e,{onBeforeEnter(g){dr(O,[g]),xn(g,s),xn(g,o)},onBeforeAppear(g){dr(j,[g]),xn(g,u),xn(g,d)},onEnter:w(!1),onAppear:w(!0),onLeave(g,F){const V=()=>H(g,F);xn(g,p),k0(),xn(g,v),Kd(()=>{ti(g,p),xn(g,m),Yd(D)||zd(g,r,A,V)}),dr(D,[g,V])},onEnterCancelled(g){R(g,!1),dr(C,[g])},onAppearCancelled(g){R(g,!0),dr(x,[g])},onLeaveCancelled(g){H(g),dr(B,[g])}})}function A0(t){if(t==null)return null;if(et(t))return[ol(t.enter),ol(t.leave)];{const e=ol(t);return[e,e]}}function ol(t){return Ps(t)}function xn(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t._vtc||(t._vtc=new Set)).add(e)}function ti(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const{_vtc:n}=t;n&&(n.delete(e),n.size||(t._vtc=void 0))}function Kd(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let O0=0;function zd(t,e,n,r){const i=t._endId=++O0,s=()=>{i===t._endId&&r()};if(n)return setTimeout(s,n);const{type:o,timeout:l,propCount:u}=I0(t,e);if(!o)return r();const d=o+"end";let f=0;const p=()=>{t.removeEventListener(d,v),s()},v=m=>{m.target===t&&++f>=u&&p()};setTimeout(()=>{f<u&&p()},l+1),t.addEventListener(d,v)}function I0(t,e){const n=window.getComputedStyle(t),r=S=>(n[S]||"").split(", "),i=r(Nn+"Delay"),s=r(Nn+"Duration"),o=Gd(i,s),l=r(Ji+"Delay"),u=r(Ji+"Duration"),d=Gd(l,u);let f=null,p=0,v=0;e===Nn?o>0&&(f=Nn,p=o,v=s.length):e===Ji?d>0&&(f=Ji,p=d,v=u.length):(p=Math.max(o,d),f=p>0?o>d?Nn:Ji:null,v=f?f===Nn?s.length:u.length:0);const m=f===Nn&&/\b(transform|all)(,|$)/.test(n[Nn+"Property"]);return{type:f,timeout:p,propCount:v,hasTransform:m}}function Gd(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,r)=>Xd(n)+Xd(t[r])))}function Xd(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function k0(){return document.body.offsetHeight}const Si=t=>{const e=t.props["onUpdate:modelValue"];return ge(e)?n=>So(e,n):e};function D0(t){t.target.composing=!0}function Jd(t){const e=t.target;e.composing&&(e.composing=!1,P0(e,"input"))}function P0(t,e){const n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}const mx={created(t,{modifiers:{lazy:e,trim:n,number:r}},i){t._assign=Si(i);const s=r||i.props&&i.props.type==="number";qn(t,e?"change":"input",o=>{if(o.target.composing)return;let l=t.value;n?l=l.trim():s&&(l=Ps(l)),t._assign(l)}),n&&qn(t,"change",()=>{t.value=t.value.trim()}),e||(qn(t,"compositionstart",D0),qn(t,"compositionend",Jd),qn(t,"change",Jd))},mounted(t,{value:e}){t.value=e==null?"":e},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:r,number:i}},s){if(t._assign=Si(s),t.composing||document.activeElement===t&&(n||r&&t.value.trim()===e||(i||t.type==="number")&&Ps(t.value)===e))return;const o=e==null?"":e;t.value!==o&&(t.value=o)}},gx={deep:!0,created(t,e,n){t._assign=Si(n),qn(t,"change",()=>{const r=t._modelValue,i=Ls(t),s=t.checked,o=t._assign;if(ge(r)){const l=Rc(r,i),u=l!==-1;if(s&&!u)o(r.concat(i));else if(!s&&u){const d=[...r];d.splice(l,1),o(d)}}else if(Bi(r)){const l=new Set(r);s?l.add(i):l.delete(i),o(l)}else o(hm(t,s))})},mounted:Qd,beforeUpdate(t,e,n){t._assign=Si(n),Qd(t,e,n)}};function Qd(t,{value:e,oldValue:n},r){t._modelValue=e,ge(e)?t.checked=Rc(e,r.props.value)>-1:Bi(e)?t.checked=e.has(r.props.value):e!==n&&(t.checked=Vs(e,hm(t,!0)))}const vx={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const i=Bi(e);qn(t,"change",()=>{const s=Array.prototype.filter.call(t.options,o=>o.selected).map(o=>n?Ps(Ls(o)):Ls(o));t._assign(t.multiple?i?new Set(s):s:s[0])}),t._assign=Si(r)},mounted(t,{value:e}){Zd(t,e)},beforeUpdate(t,e,n){t._assign=Si(n)},updated(t,{value:e}){Zd(t,e)}};function Zd(t,e){const n=t.multiple;if(!(n&&!ge(e)&&!Bi(e))){for(let r=0,i=t.options.length;r<i;r++){const s=t.options[r],o=Ls(s);if(n)ge(e)?s.selected=Rc(e,o)>-1:s.selected=e.has(o);else if(Vs(Ls(s),e)){t.selectedIndex!==r&&(t.selectedIndex=r);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function Ls(t){return"_value"in t?t._value:t.value}function hm(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const N0=["ctrl","shift","alt","meta"],x0={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,e)=>N0.some(n=>t[`${n}Key`]&&!e.includes(n))},ac=(t,e)=>(n,...r)=>{for(let i=0;i<e.length;i++){const s=x0[e[i]];if(s&&s(n,e))return}return t(n,...r)},M0={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Fe=(t,e)=>n=>{if(!("key"in n))return;const r=Vr(n.key);if(e.some(i=>i===r||M0[i]===r))return t(n)},yx={beforeMount(t,{value:e},{transition:n}){t._vod=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):Qi(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!=!n&&(r?e?(r.beforeEnter(t),Qi(t,!0),r.enter(t)):r.leave(t,()=>{Qi(t,!1)}):Qi(t,e))},beforeUnmount(t,{value:e}){Qi(t,e)}};function Qi(t,e){t.style.display=e?t._vod:"none"}const R0=ct({patchProp:T0},c0);let ef;function L0(){return ef||(ef=Vw(R0))}const _x=(...t)=>{const e=L0().createApp(...t),{mount:n}=e;return e.mount=r=>{const i=$0(r);if(!i)return;const s=e._component;!ke(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.innerHTML="";const o=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},e};function $0(t){return rt(t)?document.querySelector(t):t}var Mn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},pm={exports:{}};/*!
|
|
* sweetalert2 v11.4.8
|
|
* Released under the MIT License.
|
|
*/(function(t,e){(function(n,r){t.exports=r()})(Mn,function(){const n="SweetAlert2:",r=a=>{const c=[];for(let h=0;h<a.length;h++)c.indexOf(a[h])===-1&&c.push(a[h]);return c},i=a=>a.charAt(0).toUpperCase()+a.slice(1),s=a=>Array.prototype.slice.call(a),o=a=>{console.warn("".concat(n," ").concat(typeof a=="object"?a.join(" "):a))},l=a=>{console.error("".concat(n," ").concat(a))},u=[],d=a=>{u.includes(a)||(u.push(a),o(a))},f=(a,c)=>{d('"'.concat(a,'" is deprecated and will be removed in the next major release. Please use "').concat(c,'" instead.'))},p=a=>typeof a=="function"?a():a,v=a=>a&&typeof a.toPromise=="function",m=a=>v(a)?a.toPromise():Promise.resolve(a),S=a=>a&&Promise.resolve(a)===a,T={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},A=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],O={},k=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],C=a=>Object.prototype.hasOwnProperty.call(T,a),D=a=>A.indexOf(a)!==-1,B=a=>O[a],j=a=>{C(a)||o('Unknown parameter "'.concat(a,'"'))},b=a=>{k.includes(a)&&o('The parameter "'.concat(a,'" is incompatible with toasts'))},x=a=>{B(a)&&f(a,B(a))},R=a=>{!a.backdrop&&a.allowOutsideClick&&o('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const c in a)j(c),a.toast&&b(c),x(c)},H="swal2-",w=a=>{const c={};for(const h in a)c[a[h]]=H+a[h];return c},g=w(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),F=w(["success","warning","info","question","error"]),V=()=>document.body.querySelector(".".concat(g.container)),ae=a=>{const c=V();return c?c.querySelector(a):null},ee=a=>ae(".".concat(a)),G=()=>ee(g.popup),le=()=>ee(g.icon),Te=()=>ee(g.title),He=()=>ee(g["html-container"]),Ue=()=>ee(g.image),We=()=>ee(g["progress-steps"]),xe=()=>ee(g["validation-message"]),qe=()=>ae(".".concat(g.actions," .").concat(g.confirm)),L=()=>ae(".".concat(g.actions," .").concat(g.deny)),re=()=>ee(g["input-label"]),z=()=>ae(".".concat(g.loader)),se=()=>ae(".".concat(g.actions," .").concat(g.cancel)),be=()=>ee(g.actions),ve=()=>ee(g.footer),de=()=>ee(g["timer-progress-bar"]),pe=()=>ee(g.close),y=`
|
|
a[href],
|
|
area[href],
|
|
input:not([disabled]),
|
|
select:not([disabled]),
|
|
textarea:not([disabled]),
|
|
button:not([disabled]),
|
|
iframe,
|
|
object,
|
|
embed,
|
|
[tabindex="0"],
|
|
[contenteditable],
|
|
audio[controls],
|
|
video[controls],
|
|
summary
|
|
`,E=()=>{const a=s(G().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((h,_)=>{const Y=parseInt(h.getAttribute("tabindex")),ue=parseInt(_.getAttribute("tabindex"));return Y>ue?1:Y<ue?-1:0}),c=s(G().querySelectorAll(y)).filter(h=>h.getAttribute("tabindex")!=="-1");return r(a.concat(c)).filter(h=>it(h))},P=()=>q(document.body,g.shown)&&!q(document.body,g["toast-shown"])&&!q(document.body,g["no-backdrop"]),M=()=>G()&&q(G(),g.toast),$=()=>G().hasAttribute("data-loading"),X={previousBodyPadding:null},Q=(a,c)=>{if(a.textContent="",c){const _=new DOMParser().parseFromString(c,"text/html");s(_.querySelector("head").childNodes).forEach(Y=>{a.appendChild(Y)}),s(_.querySelector("body").childNodes).forEach(Y=>{a.appendChild(Y)})}},q=(a,c)=>{if(!c)return!1;const h=c.split(/\s+/);for(let _=0;_<h.length;_++)if(!a.classList.contains(h[_]))return!1;return!0},te=(a,c)=>{s(a.classList).forEach(h=>{!Object.values(g).includes(h)&&!Object.values(F).includes(h)&&!Object.values(c.showClass).includes(h)&&a.classList.remove(h)})},N=(a,c,h)=>{if(te(a,c),c.customClass&&c.customClass[h]){if(typeof c.customClass[h]!="string"&&!c.customClass[h].forEach)return o("Invalid type of customClass.".concat(h,'! Expected string or iterable object, got "').concat(typeof c.customClass[h],'"'));ne(a,c.customClass[h])}},J=(a,c)=>{if(!c)return null;switch(c){case"select":case"textarea":case"file":return a.querySelector(".".concat(g.popup," > .").concat(g[c]));case"checkbox":return a.querySelector(".".concat(g.popup," > .").concat(g.checkbox," input"));case"radio":return a.querySelector(".".concat(g.popup," > .").concat(g.radio," input:checked"))||a.querySelector(".".concat(g.popup," > .").concat(g.radio," input:first-child"));case"range":return a.querySelector(".".concat(g.popup," > .").concat(g.range," input"));default:return a.querySelector(".".concat(g.popup," > .").concat(g.input))}},U=a=>{if(a.focus(),a.type!=="file"){const c=a.value;a.value="",a.value=c}},ie=(a,c,h)=>{!a||!c||(typeof c=="string"&&(c=c.split(/\s+/).filter(Boolean)),c.forEach(_=>{Array.isArray(a)?a.forEach(Y=>{h?Y.classList.add(_):Y.classList.remove(_)}):h?a.classList.add(_):a.classList.remove(_)}))},ne=(a,c)=>{ie(a,c,!0)},ye=(a,c)=>{ie(a,c,!1)},Ne=(a,c)=>{const h=s(a.childNodes);for(let _=0;_<h.length;_++)if(q(h[_],c))return h[_]},Re=(a,c,h)=>{h==="".concat(parseInt(h))&&(h=parseInt(h)),h||parseInt(h)===0?a.style[c]=typeof h=="number"?"".concat(h,"px"):h:a.style.removeProperty(c)},Ce=function(a){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"flex";a.style.display=c},Ye=a=>{a.style.display="none"},_n=(a,c,h,_)=>{const Y=a.querySelector(c);Y&&(Y.style[h]=_)},or=(a,c,h)=>{c?Ce(a,h):Ye(a)},it=a=>!!(a&&(a.offsetWidth||a.offsetHeight||a.getClientRects().length)),no=()=>!it(qe())&&!it(L())&&!it(se()),ut=a=>a.scrollHeight>a.clientHeight,Tt=a=>{const c=window.getComputedStyle(a),h=parseFloat(c.getPropertyValue("animation-duration")||"0"),_=parseFloat(c.getPropertyValue("transition-duration")||"0");return h>0||_>0},Gr=function(a){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const h=de();it(h)&&(c&&(h.style.transition="none",h.style.width="100%"),setTimeout(()=>{h.style.transition="width ".concat(a/1e3,"s linear"),h.style.width="0%"},10))},Nv=()=>{const a=de(),c=parseInt(window.getComputedStyle(a).width);a.style.removeProperty("transition"),a.style.width="100%";const h=parseInt(window.getComputedStyle(a).width),_=c/h*100;a.style.removeProperty("transition"),a.style.width="".concat(_,"%")},Fu=()=>typeof window=="undefined"||typeof document=="undefined",xv=100,Oe={},Mv=()=>{Oe.previousActiveElement&&Oe.previousActiveElement.focus?(Oe.previousActiveElement.focus(),Oe.previousActiveElement=null):document.body&&document.body.focus()},Rv=a=>new Promise(c=>{if(!a)return c();const h=window.scrollX,_=window.scrollY;Oe.restoreFocusTimeout=setTimeout(()=>{Mv(),c()},xv),window.scrollTo(h,_)}),Lv=`
|
|
<div aria-labelledby="`.concat(g.title,'" aria-describedby="').concat(g["html-container"],'" class="').concat(g.popup,`" tabindex="-1">
|
|
<button type="button" class="`).concat(g.close,`"></button>
|
|
<ul class="`).concat(g["progress-steps"],`"></ul>
|
|
<div class="`).concat(g.icon,`"></div>
|
|
<img class="`).concat(g.image,`" />
|
|
<h2 class="`).concat(g.title,'" id="').concat(g.title,`"></h2>
|
|
<div class="`).concat(g["html-container"],'" id="').concat(g["html-container"],`"></div>
|
|
<input class="`).concat(g.input,`" />
|
|
<input type="file" class="`).concat(g.file,`" />
|
|
<div class="`).concat(g.range,`">
|
|
<input type="range" />
|
|
<output></output>
|
|
</div>
|
|
<select class="`).concat(g.select,`"></select>
|
|
<div class="`).concat(g.radio,`"></div>
|
|
<label for="`).concat(g.checkbox,'" class="').concat(g.checkbox,`">
|
|
<input type="checkbox" />
|
|
<span class="`).concat(g.label,`"></span>
|
|
</label>
|
|
<textarea class="`).concat(g.textarea,`"></textarea>
|
|
<div class="`).concat(g["validation-message"],'" id="').concat(g["validation-message"],`"></div>
|
|
<div class="`).concat(g.actions,`">
|
|
<div class="`).concat(g.loader,`"></div>
|
|
<button type="button" class="`).concat(g.confirm,`"></button>
|
|
<button type="button" class="`).concat(g.deny,`"></button>
|
|
<button type="button" class="`).concat(g.cancel,`"></button>
|
|
</div>
|
|
<div class="`).concat(g.footer,`"></div>
|
|
<div class="`).concat(g["timer-progress-bar-container"],`">
|
|
<div class="`).concat(g["timer-progress-bar"],`"></div>
|
|
</div>
|
|
</div>
|
|
`).replace(/(^|\n)\s*/g,""),$v=()=>{const a=V();return a?(a.remove(),ye([document.documentElement,document.body],[g["no-backdrop"],g["toast-shown"],g["has-column"]]),!0):!1},ar=()=>{Oe.currentInstance.resetValidationMessage()},Bv=()=>{const a=G(),c=Ne(a,g.input),h=Ne(a,g.file),_=a.querySelector(".".concat(g.range," input")),Y=a.querySelector(".".concat(g.range," output")),ue=Ne(a,g.select),tt=a.querySelector(".".concat(g.checkbox," input")),Ct=Ne(a,g.textarea);c.oninput=ar,h.onchange=ar,ue.onchange=ar,tt.onchange=ar,Ct.oninput=ar,_.oninput=()=>{ar(),Y.value=_.value},_.onchange=()=>{ar(),_.nextSibling.value=_.value}},Uv=a=>typeof a=="string"?document.querySelector(a):a,Hv=a=>{const c=G();c.setAttribute("role",a.toast?"alert":"dialog"),c.setAttribute("aria-live",a.toast?"polite":"assertive"),a.toast||c.setAttribute("aria-modal","true")},Fv=a=>{window.getComputedStyle(a).direction==="rtl"&&ne(V(),g.rtl)},Vv=a=>{const c=$v();if(Fu()){l("SweetAlert2 requires document to initialize");return}const h=document.createElement("div");h.className=g.container,c&&ne(h,g["no-transition"]),Q(h,Lv);const _=Uv(a.target);_.appendChild(h),Hv(a),Fv(_),Bv()},Wa=(a,c)=>{a instanceof HTMLElement?c.appendChild(a):typeof a=="object"?jv(a,c):a&&Q(c,a)},jv=(a,c)=>{a.jquery?Wv(c,a):Q(c,a.toString())},Wv=(a,c)=>{if(a.textContent="",0 in c)for(let h=0;h in c;h++)a.appendChild(c[h].cloneNode(!0));else a.appendChild(c.cloneNode(!0))},Ki=(()=>{if(Fu())return!1;const a=document.createElement("div"),c={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const h in c)if(Object.prototype.hasOwnProperty.call(c,h)&&typeof a.style[h]!="undefined")return c[h];return!1})(),qv=()=>{const a=document.createElement("div");a.className=g["scrollbar-measure"],document.body.appendChild(a);const c=a.getBoundingClientRect().width-a.clientWidth;return document.body.removeChild(a),c},Yv=(a,c)=>{const h=be(),_=z();!c.showConfirmButton&&!c.showDenyButton&&!c.showCancelButton?Ye(h):Ce(h),N(h,c,"actions"),Kv(h,_,c),Q(_,c.loaderHtml),N(_,c,"loader")};function Kv(a,c,h){const _=qe(),Y=L(),ue=se();qa(_,"confirm",h),qa(Y,"deny",h),qa(ue,"cancel",h),zv(_,Y,ue,h),h.reverseButtons&&(h.toast?(a.insertBefore(ue,_),a.insertBefore(Y,_)):(a.insertBefore(ue,c),a.insertBefore(Y,c),a.insertBefore(_,c)))}function zv(a,c,h,_){if(!_.buttonsStyling)return ye([a,c,h],g.styled);ne([a,c,h],g.styled),_.confirmButtonColor&&(a.style.backgroundColor=_.confirmButtonColor,ne(a,g["default-outline"])),_.denyButtonColor&&(c.style.backgroundColor=_.denyButtonColor,ne(c,g["default-outline"])),_.cancelButtonColor&&(h.style.backgroundColor=_.cancelButtonColor,ne(h,g["default-outline"]))}function qa(a,c,h){or(a,h["show".concat(i(c),"Button")],"inline-block"),Q(a,h["".concat(c,"ButtonText")]),a.setAttribute("aria-label",h["".concat(c,"ButtonAriaLabel")]),a.className=g[c],N(a,h,"".concat(c,"Button")),ne(a,h["".concat(c,"ButtonClass")])}function Gv(a,c){typeof c=="string"?a.style.background=c:c||ne([document.documentElement,document.body],g["no-backdrop"])}function Xv(a,c){c in g?ne(a,g[c]):(o('The "position" parameter is not valid, defaulting to "center"'),ne(a,g.center))}function Jv(a,c){if(c&&typeof c=="string"){const h="grow-".concat(c);h in g&&ne(a,g[h])}}const Qv=(a,c)=>{const h=V();!h||(Gv(h,c.backdrop),Xv(h,c.position),Jv(h,c.grow),N(h,c,"container"))};var De={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const Zv=["input","file","range","select","radio","checkbox","textarea"],ey=(a,c)=>{const h=G(),_=De.innerParams.get(a),Y=!_||c.input!==_.input;Zv.forEach(ue=>{const tt=g[ue],Ct=Ne(h,tt);ry(ue,c.inputAttributes),Ct.className=tt,Y&&Ye(Ct)}),c.input&&(Y&&ty(c),iy(c))},ty=a=>{if(!_t[a.input])return l('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(a.input,'"'));const c=Vu(a.input),h=_t[a.input](c,a);Ce(h),setTimeout(()=>{U(h)})},ny=a=>{for(let c=0;c<a.attributes.length;c++){const h=a.attributes[c].name;["type","value","style"].includes(h)||a.removeAttribute(h)}},ry=(a,c)=>{const h=J(G(),a);if(!!h){ny(h);for(const _ in c)h.setAttribute(_,c[_])}},iy=a=>{const c=Vu(a.input);a.customClass&&ne(c,a.customClass.input)},Ya=(a,c)=>{(!a.placeholder||c.inputPlaceholder)&&(a.placeholder=c.inputPlaceholder)},zi=(a,c,h)=>{if(h.inputLabel){a.id=g.input;const _=document.createElement("label"),Y=g["input-label"];_.setAttribute("for",a.id),_.className=Y,ne(_,h.customClass.inputLabel),_.innerText=h.inputLabel,c.insertAdjacentElement("beforebegin",_)}},Vu=a=>{const c=g[a]?g[a]:g.input;return Ne(G(),c)},_t={};_t.text=_t.email=_t.password=_t.number=_t.tel=_t.url=(a,c)=>(typeof c.inputValue=="string"||typeof c.inputValue=="number"?a.value=c.inputValue:S(c.inputValue)||o('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof c.inputValue,'"')),zi(a,a,c),Ya(a,c),a.type=c.input,a),_t.file=(a,c)=>(zi(a,a,c),Ya(a,c),a),_t.range=(a,c)=>{const h=a.querySelector("input"),_=a.querySelector("output");return h.value=c.inputValue,h.type=c.input,_.value=c.inputValue,zi(h,a,c),a},_t.select=(a,c)=>{if(a.textContent="",c.inputPlaceholder){const h=document.createElement("option");Q(h,c.inputPlaceholder),h.value="",h.disabled=!0,h.selected=!0,a.appendChild(h)}return zi(a,a,c),a},_t.radio=a=>(a.textContent="",a),_t.checkbox=(a,c)=>{const h=J(G(),"checkbox");h.value="1",h.id=g.checkbox,h.checked=Boolean(c.inputValue);const _=a.querySelector("span");return Q(_,c.inputPlaceholder),a},_t.textarea=(a,c)=>{a.value=c.inputValue,Ya(a,c),zi(a,a,c);const h=_=>parseInt(window.getComputedStyle(_).marginLeft)+parseInt(window.getComputedStyle(_).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const _=parseInt(window.getComputedStyle(G()).width),Y=()=>{const ue=a.offsetWidth+h(a);ue>_?G().style.width="".concat(ue,"px"):G().style.width=null};new MutationObserver(Y).observe(a,{attributes:!0,attributeFilter:["style"]})}}),a};const sy=(a,c)=>{const h=He();N(h,c,"htmlContainer"),c.html?(Wa(c.html,h),Ce(h,"block")):c.text?(h.textContent=c.text,Ce(h,"block")):Ye(h),ey(a,c)},oy=(a,c)=>{const h=ve();or(h,c.footer),c.footer&&Wa(c.footer,h),N(h,c,"footer")},ay=(a,c)=>{const h=pe();Q(h,c.closeButtonHtml),N(h,c,"closeButton"),or(h,c.showCloseButton),h.setAttribute("aria-label",c.closeButtonAriaLabel)},ly=(a,c)=>{const h=De.innerParams.get(a),_=le();if(h&&c.icon===h.icon){Wu(_,c),ju(_,c);return}if(!c.icon&&!c.iconHtml)return Ye(_);if(c.icon&&Object.keys(F).indexOf(c.icon)===-1)return l('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(c.icon,'"')),Ye(_);Ce(_),Wu(_,c),ju(_,c),ne(_,c.showClass.icon)},ju=(a,c)=>{for(const h in F)c.icon!==h&&ye(a,F[h]);ne(a,F[c.icon]),fy(a,c),cy(),N(a,c,"icon")},cy=()=>{const a=G(),c=window.getComputedStyle(a).getPropertyValue("background-color"),h=a.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let _=0;_<h.length;_++)h[_].style.backgroundColor=c},uy=`
|
|
<div class="swal2-success-circular-line-left"></div>
|
|
<span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
|
|
<div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
|
|
<div class="swal2-success-circular-line-right"></div>
|
|
`,dy=`
|
|
<span class="swal2-x-mark">
|
|
<span class="swal2-x-mark-line-left"></span>
|
|
<span class="swal2-x-mark-line-right"></span>
|
|
</span>
|
|
`,Wu=(a,c)=>{a.textContent="",c.iconHtml?Q(a,qu(c.iconHtml)):c.icon==="success"?Q(a,uy):c.icon==="error"?Q(a,dy):Q(a,qu({question:"?",warning:"!",info:"i"}[c.icon]))},fy=(a,c)=>{if(!!c.iconColor){a.style.color=c.iconColor,a.style.borderColor=c.iconColor;for(const h of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])_n(a,h,"backgroundColor",c.iconColor);_n(a,".swal2-success-ring","borderColor",c.iconColor)}},qu=a=>'<div class="'.concat(g["icon-content"],'">').concat(a,"</div>"),hy=(a,c)=>{const h=Ue();if(!c.imageUrl)return Ye(h);Ce(h,""),h.setAttribute("src",c.imageUrl),h.setAttribute("alt",c.imageAlt),Re(h,"width",c.imageWidth),Re(h,"height",c.imageHeight),h.className=g.image,N(h,c,"image")},py=a=>{const c=document.createElement("li");return ne(c,g["progress-step"]),Q(c,a),c},my=a=>{const c=document.createElement("li");return ne(c,g["progress-step-line"]),a.progressStepsDistance&&(c.style.width=a.progressStepsDistance),c},gy=(a,c)=>{const h=We();if(!c.progressSteps||c.progressSteps.length===0)return Ye(h);Ce(h),h.textContent="",c.currentProgressStep>=c.progressSteps.length&&o("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),c.progressSteps.forEach((_,Y)=>{const ue=py(_);if(h.appendChild(ue),Y===c.currentProgressStep&&ne(ue,g["active-progress-step"]),Y!==c.progressSteps.length-1){const tt=my(c);h.appendChild(tt)}})},vy=(a,c)=>{const h=Te();or(h,c.title||c.titleText,"block"),c.title&&Wa(c.title,h),c.titleText&&(h.innerText=c.titleText),N(h,c,"title")},yy=(a,c)=>{const h=V(),_=G();c.toast?(Re(h,"width",c.width),_.style.width="100%",_.insertBefore(z(),le())):Re(_,"width",c.width),Re(_,"padding",c.padding),c.color&&(_.style.color=c.color),c.background&&(_.style.background=c.background),Ye(xe()),_y(_,c)},_y=(a,c)=>{a.className="".concat(g.popup," ").concat(it(a)?c.showClass.popup:""),c.toast?(ne([document.documentElement,document.body],g["toast-shown"]),ne(a,g.toast)):ne(a,g.modal),N(a,c,"popup"),typeof c.customClass=="string"&&ne(a,c.customClass),c.icon&&ne(a,g["icon-".concat(c.icon)])},Yu=(a,c)=>{yy(a,c),Qv(a,c),gy(a,c),ly(a,c),hy(a,c),vy(a,c),ay(a,c),sy(a,c),Yv(a,c),oy(a,c),typeof c.didRender=="function"&&c.didRender(G())},Xr=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),by=()=>{s(document.body.children).forEach(c=>{c===V()||c.contains(V())||(c.hasAttribute("aria-hidden")&&c.setAttribute("data-previous-aria-hidden",c.getAttribute("aria-hidden")),c.setAttribute("aria-hidden","true"))})},Ku=()=>{s(document.body.children).forEach(c=>{c.hasAttribute("data-previous-aria-hidden")?(c.setAttribute("aria-hidden",c.getAttribute("data-previous-aria-hidden")),c.removeAttribute("data-previous-aria-hidden")):c.removeAttribute("aria-hidden")})},zu=["swal-title","swal-html","swal-footer"],wy=a=>{const c=typeof a.template=="string"?document.querySelector(a.template):a.template;if(!c)return{};const h=c.content;return Iy(h),Object.assign(Ey(h),Ty(h),Cy(h),Sy(h),Ay(h),Oy(h,zu))},Ey=a=>{const c={};return s(a.querySelectorAll("swal-param")).forEach(h=>{lr(h,["name","value"]);const _=h.getAttribute("name"),Y=h.getAttribute("value");typeof T[_]=="boolean"&&Y==="false"&&(c[_]=!1),typeof T[_]=="object"&&(c[_]=JSON.parse(Y))}),c},Ty=a=>{const c={};return s(a.querySelectorAll("swal-button")).forEach(h=>{lr(h,["type","color","aria-label"]);const _=h.getAttribute("type");c["".concat(_,"ButtonText")]=h.innerHTML,c["show".concat(i(_),"Button")]=!0,h.hasAttribute("color")&&(c["".concat(_,"ButtonColor")]=h.getAttribute("color")),h.hasAttribute("aria-label")&&(c["".concat(_,"ButtonAriaLabel")]=h.getAttribute("aria-label"))}),c},Cy=a=>{const c={},h=a.querySelector("swal-image");return h&&(lr(h,["src","width","height","alt"]),h.hasAttribute("src")&&(c.imageUrl=h.getAttribute("src")),h.hasAttribute("width")&&(c.imageWidth=h.getAttribute("width")),h.hasAttribute("height")&&(c.imageHeight=h.getAttribute("height")),h.hasAttribute("alt")&&(c.imageAlt=h.getAttribute("alt"))),c},Sy=a=>{const c={},h=a.querySelector("swal-icon");return h&&(lr(h,["type","color"]),h.hasAttribute("type")&&(c.icon=h.getAttribute("type")),h.hasAttribute("color")&&(c.iconColor=h.getAttribute("color")),c.iconHtml=h.innerHTML),c},Ay=a=>{const c={},h=a.querySelector("swal-input");h&&(lr(h,["type","label","placeholder","value"]),c.input=h.getAttribute("type")||"text",h.hasAttribute("label")&&(c.inputLabel=h.getAttribute("label")),h.hasAttribute("placeholder")&&(c.inputPlaceholder=h.getAttribute("placeholder")),h.hasAttribute("value")&&(c.inputValue=h.getAttribute("value")));const _=a.querySelectorAll("swal-input-option");return _.length&&(c.inputOptions={},s(_).forEach(Y=>{lr(Y,["value"]);const ue=Y.getAttribute("value"),tt=Y.innerHTML;c.inputOptions[ue]=tt})),c},Oy=(a,c)=>{const h={};for(const _ in c){const Y=c[_],ue=a.querySelector(Y);ue&&(lr(ue,[]),h[Y.replace(/^swal-/,"")]=ue.innerHTML.trim())}return h},Iy=a=>{const c=zu.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);s(a.children).forEach(h=>{const _=h.tagName.toLowerCase();c.indexOf(_)===-1&&o("Unrecognized element <".concat(_,">"))})},lr=(a,c)=>{s(a.attributes).forEach(h=>{c.indexOf(h.name)===-1&&o(['Unrecognized attribute "'.concat(h.name,'" on <').concat(a.tagName.toLowerCase(),">."),"".concat(c.length?"Allowed attributes are: ".concat(c.join(", ")):"To set the value, use HTML within the element.")])})};var Gu={email:(a,c)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(a)?Promise.resolve():Promise.resolve(c||"Invalid email address"),url:(a,c)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(a)?Promise.resolve():Promise.resolve(c||"Invalid URL")};function ky(a){a.inputValidator||Object.keys(Gu).forEach(c=>{a.input===c&&(a.inputValidator=Gu[c])})}function Dy(a){(!a.target||typeof a.target=="string"&&!document.querySelector(a.target)||typeof a.target!="string"&&!a.target.appendChild)&&(o('Target parameter is not valid, defaulting to "body"'),a.target="body")}function Py(a){ky(a),a.showLoaderOnConfirm&&!a.preConfirm&&o(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
showLoaderOnConfirm should be used together with preConfirm, see usage example:
|
|
https://sweetalert2.github.io/#ajax-request`),Dy(a),typeof a.title=="string"&&(a.title=a.title.split(`
|
|
`).join("<br />")),Vv(a)}class Ny{constructor(c,h){this.callback=c,this.remaining=h,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(c){const h=this.running;return h&&this.stop(),this.remaining+=c,h&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const xy=()=>{X.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(X.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(X.previousBodyPadding+qv(),"px"))},My=()=>{X.previousBodyPadding!==null&&(document.body.style.paddingRight="".concat(X.previousBodyPadding,"px"),X.previousBodyPadding=null)},Ry=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!q(document.body,g.iosfix)){const c=document.body.scrollTop;document.body.style.top="".concat(c*-1,"px"),ne(document.body,g.iosfix),$y(),Ly()}},Ly=()=>{const a=navigator.userAgent,c=!!a.match(/iPad/i)||!!a.match(/iPhone/i),h=!!a.match(/WebKit/i);c&&h&&!a.match(/CriOS/i)&&G().scrollHeight>window.innerHeight-44&&(V().style.paddingBottom="".concat(44,"px"))},$y=()=>{const a=V();let c;a.ontouchstart=h=>{c=By(h)},a.ontouchmove=h=>{c&&(h.preventDefault(),h.stopPropagation())}},By=a=>{const c=a.target,h=V();return Uy(a)||Hy(a)?!1:c===h||!ut(h)&&c.tagName!=="INPUT"&&c.tagName!=="TEXTAREA"&&!(ut(He())&&He().contains(c))},Uy=a=>a.touches&&a.touches.length&&a.touches[0].touchType==="stylus",Hy=a=>a.touches&&a.touches.length>1,Fy=()=>{if(q(document.body,g.iosfix)){const a=parseInt(document.body.style.top,10);ye(document.body,g.iosfix),document.body.style.top="",document.body.scrollTop=a*-1}},Xu=10,Vy=a=>{const c=V(),h=G();typeof a.willOpen=="function"&&a.willOpen(h);const Y=window.getComputedStyle(document.body).overflowY;qy(c,h,a),setTimeout(()=>{jy(c,h)},Xu),P()&&(Wy(c,a.scrollbarPadding,Y),by()),!M()&&!Oe.previousActiveElement&&(Oe.previousActiveElement=document.activeElement),typeof a.didOpen=="function"&&setTimeout(()=>a.didOpen(h)),ye(c,g["no-transition"])},Ju=a=>{const c=G();if(a.target!==c)return;const h=V();c.removeEventListener(Ki,Ju),h.style.overflowY="auto"},jy=(a,c)=>{Ki&&Tt(c)?(a.style.overflowY="hidden",c.addEventListener(Ki,Ju)):a.style.overflowY="auto"},Wy=(a,c,h)=>{Ry(),c&&h!=="hidden"&&xy(),setTimeout(()=>{a.scrollTop=0})},qy=(a,c,h)=>{ne(a,h.showClass.backdrop),c.style.setProperty("opacity","0","important"),Ce(c,"grid"),setTimeout(()=>{ne(c,h.showClass.popup),c.style.removeProperty("opacity")},Xu),ne([document.documentElement,document.body],g.shown),h.heightAuto&&h.backdrop&&!h.toast&&ne([document.documentElement,document.body],g["height-auto"])},Jr=a=>{let c=G();c||new so,c=G();const h=z();M()?Ye(le()):Yy(c,a),Ce(h),c.setAttribute("data-loading",!0),c.setAttribute("aria-busy",!0),c.focus()},Yy=(a,c)=>{const h=be(),_=z();!c&&it(qe())&&(c=qe()),Ce(h),c&&(Ye(c),_.setAttribute("data-button-to-replace",c.className)),_.parentNode.insertBefore(_,c),ne([a,h],g.loading)},Ky=(a,c)=>{c.input==="select"||c.input==="radio"?Qy(a,c):["text","email","number","tel","textarea"].includes(c.input)&&(v(c.inputValue)||S(c.inputValue))&&(Jr(qe()),Zy(a,c))},zy=(a,c)=>{const h=a.getInput();if(!h)return null;switch(c.input){case"checkbox":return Gy(h);case"radio":return Xy(h);case"file":return Jy(h);default:return c.inputAutoTrim?h.value.trim():h.value}},Gy=a=>a.checked?1:0,Xy=a=>a.checked?a.value:null,Jy=a=>a.files.length?a.getAttribute("multiple")!==null?a.files:a.files[0]:null,Qy=(a,c)=>{const h=G(),_=Y=>e_[c.input](h,Ka(Y),c);v(c.inputOptions)||S(c.inputOptions)?(Jr(qe()),m(c.inputOptions).then(Y=>{a.hideLoading(),_(Y)})):typeof c.inputOptions=="object"?_(c.inputOptions):l("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof c.inputOptions))},Zy=(a,c)=>{const h=a.getInput();Ye(h),m(c.inputValue).then(_=>{h.value=c.input==="number"?parseFloat(_)||0:"".concat(_),Ce(h),h.focus(),a.hideLoading()}).catch(_=>{l("Error in inputValue promise: ".concat(_)),h.value="",Ce(h),h.focus(),a.hideLoading()})},e_={select:(a,c,h)=>{const _=Ne(a,g.select),Y=(ue,tt,Ct)=>{const mt=document.createElement("option");mt.value=Ct,Q(mt,tt),mt.selected=Qu(Ct,h.inputValue),ue.appendChild(mt)};c.forEach(ue=>{const tt=ue[0],Ct=ue[1];if(Array.isArray(Ct)){const mt=document.createElement("optgroup");mt.label=tt,mt.disabled=!1,_.appendChild(mt),Ct.forEach(Zr=>Y(mt,Zr[1],Zr[0]))}else Y(_,Ct,tt)}),_.focus()},radio:(a,c,h)=>{const _=Ne(a,g.radio);c.forEach(ue=>{const tt=ue[0],Ct=ue[1],mt=document.createElement("input"),Zr=document.createElement("label");mt.type="radio",mt.name=g.radio,mt.value=tt,Qu(tt,h.inputValue)&&(mt.checked=!0);const el=document.createElement("span");Q(el,Ct),el.className=g.label,Zr.appendChild(mt),Zr.appendChild(el),_.appendChild(Zr)});const Y=_.querySelectorAll("input");Y.length&&Y[0].focus()}},Ka=a=>{const c=[];return typeof Map!="undefined"&&a instanceof Map?a.forEach((h,_)=>{let Y=h;typeof Y=="object"&&(Y=Ka(Y)),c.push([_,Y])}):Object.keys(a).forEach(h=>{let _=a[h];typeof _=="object"&&(_=Ka(_)),c.push([h,_])}),c},Qu=(a,c)=>c&&c.toString()===a.toString();function Zu(){const a=De.innerParams.get(this);if(!a)return;const c=De.domCache.get(this);Ye(c.loader),M()?a.icon&&Ce(le()):t_(c),ye([c.popup,c.actions],g.loading),c.popup.removeAttribute("aria-busy"),c.popup.removeAttribute("data-loading"),c.confirmButton.disabled=!1,c.denyButton.disabled=!1,c.cancelButton.disabled=!1}const t_=a=>{const c=a.popup.getElementsByClassName(a.loader.getAttribute("data-button-to-replace"));c.length?Ce(c[0],"inline-block"):no()&&Ye(a.actions)};function n_(a){const c=De.innerParams.get(a||this),h=De.domCache.get(a||this);return h?J(h.popup,c.input):null}var Gi={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const r_=()=>it(G()),ed=()=>qe()&&qe().click(),i_=()=>L()&&L().click(),s_=()=>se()&&se().click(),td=a=>{a.keydownTarget&&a.keydownHandlerAdded&&(a.keydownTarget.removeEventListener("keydown",a.keydownHandler,{capture:a.keydownListenerCapture}),a.keydownHandlerAdded=!1)},o_=(a,c,h,_)=>{td(c),h.toast||(c.keydownHandler=Y=>l_(a,Y,_),c.keydownTarget=h.keydownListenerCapture?window:G(),c.keydownListenerCapture=h.keydownListenerCapture,c.keydownTarget.addEventListener("keydown",c.keydownHandler,{capture:c.keydownListenerCapture}),c.keydownHandlerAdded=!0)},za=(a,c,h)=>{const _=E();if(_.length)return c=c+h,c===_.length?c=0:c===-1&&(c=_.length-1),_[c].focus();G().focus()},nd=["ArrowRight","ArrowDown"],a_=["ArrowLeft","ArrowUp"],l_=(a,c,h)=>{const _=De.innerParams.get(a);!_||c.isComposing||c.keyCode===229||(_.stopKeydownPropagation&&c.stopPropagation(),c.key==="Enter"?c_(a,c,_):c.key==="Tab"?u_(c,_):[...nd,...a_].includes(c.key)?d_(c.key):c.key==="Escape"&&f_(c,_,h))},c_=(a,c,h)=>{if(!!p(h.allowEnterKey)&&c.target&&a.getInput()&&c.target.outerHTML===a.getInput().outerHTML){if(["textarea","file"].includes(h.input))return;ed(),c.preventDefault()}},u_=(a,c)=>{const h=a.target,_=E();let Y=-1;for(let ue=0;ue<_.length;ue++)if(h===_[ue]){Y=ue;break}a.shiftKey?za(c,Y,-1):za(c,Y,1),a.stopPropagation(),a.preventDefault()},d_=a=>{const c=qe(),h=L(),_=se();if(![c,h,_].includes(document.activeElement))return;const Y=nd.includes(a)?"nextElementSibling":"previousElementSibling";let ue=document.activeElement;for(let tt=0;tt<be().children.length;tt++){if(ue=ue[Y],!ue)return;if(it(ue)&&ue instanceof HTMLButtonElement)break}ue instanceof HTMLButtonElement&&ue.focus()},f_=(a,c,h)=>{p(c.allowEscapeKey)&&(a.preventDefault(),h(Xr.esc))};function rd(a,c,h,_){M()?id(a,_):(Rv(h).then(()=>id(a,_)),td(Oe)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(c.setAttribute("style","display:none !important"),c.removeAttribute("class"),c.innerHTML=""):c.remove(),P()&&(My(),Fy(),Ku()),h_()}function h_(){ye([document.documentElement,document.body],[g.shown,g["height-auto"],g["no-backdrop"],g["toast-shown"]])}function ro(a){a=v_(a);const c=Gi.swalPromiseResolve.get(this),h=m_(this);this.isAwaitingPromise()?a.isDismissed||(Xi(this),c(a)):h&&c(a)}function p_(){return!!De.awaitingPromise.get(this)}const m_=a=>{const c=G();if(!c)return!1;const h=De.innerParams.get(a);if(!h||q(c,h.hideClass.popup))return!1;ye(c,h.showClass.popup),ne(c,h.hideClass.popup);const _=V();return ye(_,h.showClass.backdrop),ne(_,h.hideClass.backdrop),y_(a,c,h),!0};function g_(a){const c=Gi.swalPromiseReject.get(this);Xi(this),c&&c(a)}const Xi=a=>{a.isAwaitingPromise()&&(De.awaitingPromise.delete(a),De.innerParams.get(a)||a._destroy())},v_=a=>typeof a=="undefined"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},a),y_=(a,c,h)=>{const _=V(),Y=Ki&&Tt(c);typeof h.willClose=="function"&&h.willClose(c),Y?__(a,c,_,h.returnFocus,h.didClose):rd(a,_,h.returnFocus,h.didClose)},__=(a,c,h,_,Y)=>{Oe.swalCloseEventFinishedCallback=rd.bind(null,a,h,_,Y),c.addEventListener(Ki,function(ue){ue.target===c&&(Oe.swalCloseEventFinishedCallback(),delete Oe.swalCloseEventFinishedCallback)})},id=(a,c)=>{setTimeout(()=>{typeof c=="function"&&c.bind(a.params)(),a._destroy()})};function sd(a,c,h){const _=De.domCache.get(a);c.forEach(Y=>{_[Y].disabled=h})}function od(a,c){if(!a)return!1;if(a.type==="radio"){const _=a.parentNode.parentNode.querySelectorAll("input");for(let Y=0;Y<_.length;Y++)_[Y].disabled=c}else a.disabled=c}function b_(){sd(this,["confirmButton","denyButton","cancelButton"],!1)}function w_(){sd(this,["confirmButton","denyButton","cancelButton"],!0)}function E_(){return od(this.getInput(),!1)}function T_(){return od(this.getInput(),!0)}function C_(a){const c=De.domCache.get(this),h=De.innerParams.get(this);Q(c.validationMessage,a),c.validationMessage.className=g["validation-message"],h.customClass&&h.customClass.validationMessage&&ne(c.validationMessage,h.customClass.validationMessage),Ce(c.validationMessage);const _=this.getInput();_&&(_.setAttribute("aria-invalid",!0),_.setAttribute("aria-describedby",g["validation-message"]),U(_),ne(_,g.inputerror))}function S_(){const a=De.domCache.get(this);a.validationMessage&&Ye(a.validationMessage);const c=this.getInput();c&&(c.removeAttribute("aria-invalid"),c.removeAttribute("aria-describedby"),ye(c,g.inputerror))}function A_(){return De.domCache.get(this).progressSteps}function O_(a){const c=G(),h=De.innerParams.get(this);if(!c||q(c,h.hideClass.popup))return o("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const _=I_(a),Y=Object.assign({},h,_);Yu(this,Y),De.innerParams.set(this,Y),Object.defineProperties(this,{params:{value:Object.assign({},this.params,a),writable:!1,enumerable:!0}})}const I_=a=>{const c={};return Object.keys(a).forEach(h=>{D(h)?c[h]=a[h]:o('Invalid parameter to update: "'.concat(h,`". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
|
|
|
|
If you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md`))}),c};function k_(){const a=De.domCache.get(this),c=De.innerParams.get(this);if(!c){ad(this);return}a.popup&&Oe.swalCloseEventFinishedCallback&&(Oe.swalCloseEventFinishedCallback(),delete Oe.swalCloseEventFinishedCallback),Oe.deferDisposalTimer&&(clearTimeout(Oe.deferDisposalTimer),delete Oe.deferDisposalTimer),typeof c.didDestroy=="function"&&c.didDestroy(),D_(this)}const D_=a=>{ad(a),delete a.params,delete Oe.keydownHandler,delete Oe.keydownTarget,delete Oe.currentInstance},ad=a=>{a.isAwaitingPromise()?(Ga(De,a),De.awaitingPromise.set(a,!0)):(Ga(Gi,a),Ga(De,a))},Ga=(a,c)=>{for(const h in a)a[h].delete(c)};var ld=Object.freeze({hideLoading:Zu,disableLoading:Zu,getInput:n_,close:ro,isAwaitingPromise:p_,rejectPromise:g_,handleAwaitingPromise:Xi,closePopup:ro,closeModal:ro,closeToast:ro,enableButtons:b_,disableButtons:w_,enableInput:E_,disableInput:T_,showValidationMessage:C_,resetValidationMessage:S_,getProgressSteps:A_,update:O_,_destroy:k_});const P_=a=>{const c=De.innerParams.get(a);a.disableButtons(),c.input?cd(a,"confirm"):Ja(a,!0)},N_=a=>{const c=De.innerParams.get(a);a.disableButtons(),c.returnInputValueOnDeny?cd(a,"deny"):Xa(a,!1)},x_=(a,c)=>{a.disableButtons(),c(Xr.cancel)},cd=(a,c)=>{const h=De.innerParams.get(a);if(!h.input)return l('The "input" parameter is needed to be set when using returnInputValueOn'.concat(i(c)));const _=zy(a,h);h.inputValidator?M_(a,_,c):a.getInput().checkValidity()?c==="deny"?Xa(a,_):Ja(a,_):(a.enableButtons(),a.showValidationMessage(h.validationMessage))},M_=(a,c,h)=>{const _=De.innerParams.get(a);a.disableInput(),Promise.resolve().then(()=>m(_.inputValidator(c,_.validationMessage))).then(ue=>{a.enableButtons(),a.enableInput(),ue?a.showValidationMessage(ue):h==="deny"?Xa(a,c):Ja(a,c)})},Xa=(a,c)=>{const h=De.innerParams.get(a||void 0);h.showLoaderOnDeny&&Jr(L()),h.preDeny?(De.awaitingPromise.set(a||void 0,!0),Promise.resolve().then(()=>m(h.preDeny(c,h.validationMessage))).then(Y=>{Y===!1?(a.hideLoading(),Xi(a)):a.closePopup({isDenied:!0,value:typeof Y=="undefined"?c:Y})}).catch(Y=>dd(a||void 0,Y))):a.closePopup({isDenied:!0,value:c})},ud=(a,c)=>{a.closePopup({isConfirmed:!0,value:c})},dd=(a,c)=>{a.rejectPromise(c)},Ja=(a,c)=>{const h=De.innerParams.get(a||void 0);h.showLoaderOnConfirm&&Jr(),h.preConfirm?(a.resetValidationMessage(),De.awaitingPromise.set(a||void 0,!0),Promise.resolve().then(()=>m(h.preConfirm(c,h.validationMessage))).then(Y=>{it(xe())||Y===!1?(a.hideLoading(),Xi(a)):ud(a,typeof Y=="undefined"?c:Y)}).catch(Y=>dd(a||void 0,Y))):ud(a,c)},R_=(a,c,h)=>{De.innerParams.get(a).toast?L_(a,c,h):(B_(c),U_(c),H_(a,c,h))},L_=(a,c,h)=>{c.popup.onclick=()=>{const _=De.innerParams.get(a);_&&($_(_)||_.timer||_.input)||h(Xr.close)}},$_=a=>a.showConfirmButton||a.showDenyButton||a.showCancelButton||a.showCloseButton;let io=!1;const B_=a=>{a.popup.onmousedown=()=>{a.container.onmouseup=function(c){a.container.onmouseup=void 0,c.target===a.container&&(io=!0)}}},U_=a=>{a.container.onmousedown=()=>{a.popup.onmouseup=function(c){a.popup.onmouseup=void 0,(c.target===a.popup||a.popup.contains(c.target))&&(io=!0)}}},H_=(a,c,h)=>{c.container.onclick=_=>{const Y=De.innerParams.get(a);if(io){io=!1;return}_.target===c.container&&p(Y.allowOutsideClick)&&h(Xr.backdrop)}},F_=a=>typeof a=="object"&&a.jquery,fd=a=>a instanceof Element||F_(a),V_=a=>{const c={};return typeof a[0]=="object"&&!fd(a[0])?Object.assign(c,a[0]):["title","html","icon"].forEach((h,_)=>{const Y=a[_];typeof Y=="string"||fd(Y)?c[h]=Y:Y!==void 0&&l("Unexpected type of ".concat(h,'! Expected "string" or "Element", got ').concat(typeof Y))}),c};function j_(){const a=this;for(var c=arguments.length,h=new Array(c),_=0;_<c;_++)h[_]=arguments[_];return new a(...h)}function W_(a){class c extends this{_main(_,Y){return super._main(_,Object.assign({},a,Y))}}return c}const q_=()=>Oe.timeout&&Oe.timeout.getTimerLeft(),hd=()=>{if(Oe.timeout)return Nv(),Oe.timeout.stop()},pd=()=>{if(Oe.timeout){const a=Oe.timeout.start();return Gr(a),a}},Y_=()=>{const a=Oe.timeout;return a&&(a.running?hd():pd())},K_=a=>{if(Oe.timeout){const c=Oe.timeout.increase(a);return Gr(c,!0),c}},z_=()=>Oe.timeout&&Oe.timeout.isRunning();let md=!1;const Qa={};function G_(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";Qa[a]=this,md||(document.body.addEventListener("click",X_),md=!0)}const X_=a=>{for(let c=a.target;c&&c!==document;c=c.parentNode)for(const h in Qa){const _=c.getAttribute(h);if(_){Qa[h].fire({template:_});return}}};var J_=Object.freeze({isValidParameter:C,isUpdatableParameter:D,isDeprecatedParameter:B,argsToParams:V_,isVisible:r_,clickConfirm:ed,clickDeny:i_,clickCancel:s_,getContainer:V,getPopup:G,getTitle:Te,getHtmlContainer:He,getImage:Ue,getIcon:le,getInputLabel:re,getCloseButton:pe,getActions:be,getConfirmButton:qe,getDenyButton:L,getCancelButton:se,getLoader:z,getFooter:ve,getTimerProgressBar:de,getFocusableElements:E,getValidationMessage:xe,isLoading:$,fire:j_,mixin:W_,showLoading:Jr,enableLoading:Jr,getTimerLeft:q_,stopTimer:hd,resumeTimer:pd,toggleTimer:Y_,increaseTimer:K_,isTimerRunning:z_,bindClickHandler:G_});let Za;class Qr{constructor(){if(typeof window=="undefined")return;Za=this;for(var c=arguments.length,h=new Array(c),_=0;_<c;_++)h[_]=arguments[_];const Y=Object.freeze(this.constructor.argsToParams(h));Object.defineProperties(this,{params:{value:Y,writable:!1,enumerable:!0,configurable:!0}});const ue=this._main(this.params);De.promise.set(this,ue)}_main(c){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};R(Object.assign({},h,c)),Oe.currentInstance&&(Oe.currentInstance._destroy(),P()&&Ku()),Oe.currentInstance=this;const _=Z_(c,h);Py(_),Object.freeze(_),Oe.timeout&&(Oe.timeout.stop(),delete Oe.timeout),clearTimeout(Oe.restoreFocusTimeout);const Y=eb(this);return Yu(this,_),De.innerParams.set(this,_),Q_(this,Y,_)}then(c){return De.promise.get(this).then(c)}finally(c){return De.promise.get(this).finally(c)}}const Q_=(a,c,h)=>new Promise((_,Y)=>{const ue=tt=>{a.closePopup({isDismissed:!0,dismiss:tt})};Gi.swalPromiseResolve.set(a,_),Gi.swalPromiseReject.set(a,Y),c.confirmButton.onclick=()=>P_(a),c.denyButton.onclick=()=>N_(a),c.cancelButton.onclick=()=>x_(a,ue),c.closeButton.onclick=()=>ue(Xr.close),R_(a,c,ue),o_(a,Oe,h,ue),Ky(a,h),Vy(h),tb(Oe,h,ue),nb(c,h),setTimeout(()=>{c.container.scrollTop=0})}),Z_=(a,c)=>{const h=wy(a),_=Object.assign({},T,c,h,a);return _.showClass=Object.assign({},T.showClass,_.showClass),_.hideClass=Object.assign({},T.hideClass,_.hideClass),_},eb=a=>{const c={popup:G(),container:V(),actions:be(),confirmButton:qe(),denyButton:L(),cancelButton:se(),loader:z(),closeButton:pe(),validationMessage:xe(),progressSteps:We()};return De.domCache.set(a,c),c},tb=(a,c,h)=>{const _=de();Ye(_),c.timer&&(a.timeout=new Ny(()=>{h("timer"),delete a.timeout},c.timer),c.timerProgressBar&&(Ce(_),N(_,c,"timerProgressBar"),setTimeout(()=>{a.timeout&&a.timeout.running&&Gr(c.timer)})))},nb=(a,c)=>{if(!c.toast){if(!p(c.allowEnterKey))return ib();rb(a,c)||za(c,-1,1)}},rb=(a,c)=>c.focusDeny&&it(a.denyButton)?(a.denyButton.focus(),!0):c.focusCancel&&it(a.cancelButton)?(a.cancelButton.focus(),!0):c.focusConfirm&&it(a.confirmButton)?(a.confirmButton.focus(),!0):!1,ib=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(Qr.prototype,ld),Object.assign(Qr,J_),Object.keys(ld).forEach(a=>{Qr[a]=function(){if(Za)return Za[a](...arguments)}}),Qr.DismissReason=Xr,Qr.version="11.4.8";const so=Qr;return so.default=so,so}),typeof Mn!="undefined"&&Mn.Sweetalert2&&(Mn.swal=Mn.sweetAlert=Mn.Swal=Mn.SweetAlert=Mn.Sweetalert2)})(pm);var bx=pm.exports;/*!
|
|
* vue-router v4.0.12
|
|
* (c) 2021 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/const mm=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Fi=t=>mm?Symbol(t):"_vr_"+t,B0=Fi("rvlm"),tf=Fi("rvd"),ya=Fi("r"),iu=Fi("rl"),lc=Fi("rvl"),ui=typeof window!="undefined";function U0(t){return t.__esModule||mm&&t[Symbol.toStringTag]==="Module"}const Ke=Object.assign;function al(t,e){const n={};for(const r in e){const i=e[r];n[r]=Array.isArray(i)?i.map(t):t(i)}return n}const ys=()=>{},H0=/\/$/,F0=t=>t.replace(H0,"");function ll(t,e,n="/"){let r,i={},s="",o="";const l=e.indexOf("?"),u=e.indexOf("#",l>-1?l:0);return l>-1&&(r=e.slice(0,l),s=e.slice(l+1,u>-1?u:e.length),i=t(s)),u>-1&&(r=r||e.slice(0,u),o=e.slice(u,e.length)),r=q0(r!=null?r:e,n),{fullPath:r+(s&&"?")+s+o,path:r,query:i,hash:o}}function V0(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function nf(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function j0(t,e,n){const r=e.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Ai(e.matched[r],n.matched[i])&&gm(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function Ai(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function gm(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!W0(t[n],e[n]))return!1;return!0}function W0(t,e){return Array.isArray(t)?rf(t,e):Array.isArray(e)?rf(e,t):t===e}function rf(t,e){return Array.isArray(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function q0(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/");let i=n.length-1,s,o;for(s=0;s<r.length;s++)if(o=r[s],!(i===1||o==="."))if(o==="..")i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(s-(s===r.length?1:0)).join("/")}var $s;(function(t){t.pop="pop",t.push="push"})($s||($s={}));var _s;(function(t){t.back="back",t.forward="forward",t.unknown=""})(_s||(_s={}));function Y0(t){if(!t)if(ui){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),F0(t)}const K0=/^[^#]+#/;function z0(t,e){return t.replace(K0,"#")+e}function G0(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const _a=()=>({left:window.pageXOffset,top:window.pageYOffset});function X0(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;e=G0(i,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function sf(t,e){return(history.state?history.state.position-e:-1)+t}const cc=new Map;function J0(t,e){cc.set(t,e)}function Q0(t){const e=cc.get(t);return cc.delete(t),e}let Z0=()=>location.protocol+"//"+location.host;function vm(t,e){const{pathname:n,search:r,hash:i}=e,s=t.indexOf("#");if(s>-1){let l=i.includes(t.slice(s))?t.slice(s).length:1,u=i.slice(l);return u[0]!=="/"&&(u="/"+u),nf(u,"")}return nf(n,t)+r+i}function eE(t,e,n,r){let i=[],s=[],o=null;const l=({state:v})=>{const m=vm(t,location),S=n.value,T=e.value;let A=0;if(v){if(n.value=m,e.value=v,o&&o===S){o=null;return}A=T?v.position-T.position:0}else r(m);i.forEach(O=>{O(n.value,S,{delta:A,type:$s.pop,direction:A?A>0?_s.forward:_s.back:_s.unknown})})};function u(){o=n.value}function d(v){i.push(v);const m=()=>{const S=i.indexOf(v);S>-1&&i.splice(S,1)};return s.push(m),m}function f(){const{history:v}=window;!v.state||v.replaceState(Ke({},v.state,{scroll:_a()}),"")}function p(){for(const v of s)v();s=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",f),{pauseListeners:u,listen:d,destroy:p}}function of(t,e,n,r=!1,i=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:i?_a():null}}function tE(t){const{history:e,location:n}=window,r={value:vm(t,n)},i={value:e.state};i.value||s(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(u,d,f){const p=t.indexOf("#"),v=p>-1?(n.host&&document.querySelector("base")?t:t.slice(p))+u:Z0()+t+u;try{e[f?"replaceState":"pushState"](d,"",v),i.value=d}catch(m){console.error(m),n[f?"replace":"assign"](v)}}function o(u,d){const f=Ke({},e.state,of(i.value.back,u,i.value.forward,!0),d,{position:i.value.position});s(u,f,!0),r.value=u}function l(u,d){const f=Ke({},i.value,e.state,{forward:u,scroll:_a()});s(f.current,f,!0);const p=Ke({},of(r.value,u,null),{position:f.position+1},d);s(u,p,!1),r.value=u}return{location:r,state:i,push:l,replace:o}}function wx(t){t=Y0(t);const e=tE(t),n=eE(t,e.state,e.location,e.replace);function r(s,o=!0){o||n.pauseListeners(),history.go(s)}const i=Ke({location:"",base:t,go:r,createHref:z0.bind(null,t)},e,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function nE(t){return typeof t=="string"||t&&typeof t=="object"}function ym(t){return typeof t=="string"||typeof t=="symbol"}const Rn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},_m=Fi("nf");var af;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(af||(af={}));function Oi(t,e){return Ke(new Error,{type:t,[_m]:!0},e)}function fr(t,e){return t instanceof Error&&_m in t&&(e==null||!!(t.type&e))}const lf="[^/]+?",rE={sensitive:!1,strict:!1,start:!0,end:!0},iE=/[.+*?^${}()[\]/\\]/g;function sE(t,e){const n=Ke({},rE,e),r=[];let i=n.start?"^":"";const s=[];for(const d of t){const f=d.length?[]:[90];n.strict&&!d.length&&(i+="/");for(let p=0;p<d.length;p++){const v=d[p];let m=40+(n.sensitive?.25:0);if(v.type===0)p||(i+="/"),i+=v.value.replace(iE,"\\$&"),m+=40;else if(v.type===1){const{value:S,repeatable:T,optional:A,regexp:O}=v;s.push({name:S,repeatable:T,optional:A});const k=O||lf;if(k!==lf){m+=10;try{new RegExp(`(${k})`)}catch(D){throw new Error(`Invalid custom RegExp for param "${S}" (${k}): `+D.message)}}let C=T?`((?:${k})(?:/(?:${k}))*)`:`(${k})`;p||(C=A&&d.length<2?`(?:/${C})`:"/"+C),A&&(C+="?"),i+=C,m+=20,A&&(m+=-8),T&&(m+=-20),k===".*"&&(m+=-50)}f.push(m)}r.push(f)}if(n.strict&&n.end){const d=r.length-1;r[d][r[d].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&(i+="(?:/|$)");const o=new RegExp(i,n.sensitive?"":"i");function l(d){const f=d.match(o),p={};if(!f)return null;for(let v=1;v<f.length;v++){const m=f[v]||"",S=s[v-1];p[S.name]=m&&S.repeatable?m.split("/"):m}return p}function u(d){let f="",p=!1;for(const v of t){(!p||!f.endsWith("/"))&&(f+="/"),p=!1;for(const m of v)if(m.type===0)f+=m.value;else if(m.type===1){const{value:S,repeatable:T,optional:A}=m,O=S in d?d[S]:"";if(Array.isArray(O)&&!T)throw new Error(`Provided param "${S}" is an array but it is not repeatable (* or + modifiers)`);const k=Array.isArray(O)?O.join("/"):O;if(!k)if(A)v.length<2&&(f.endsWith("/")?f=f.slice(0,-1):p=!0);else throw new Error(`Missing required param "${S}"`);f+=k}}return f}return{re:o,score:r,keys:s,parse:l,stringify:u}}function oE(t,e){let n=0;for(;n<t.length&&n<e.length;){const r=e[n]-t[n];if(r)return r;n++}return t.length<e.length?t.length===1&&t[0]===40+40?-1:1:t.length>e.length?e.length===1&&e[0]===40+40?1:-1:0}function aE(t,e){let n=0;const r=t.score,i=e.score;for(;n<r.length&&n<i.length;){const s=oE(r[n],i[n]);if(s)return s;n++}return i.length-r.length}const lE={type:0,value:""},cE=/[a-zA-Z0-9_]/;function uE(t){if(!t)return[[]];if(t==="/")return[[lE]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(m){throw new Error(`ERR (${n})/"${d}": ${m}`)}let n=0,r=n;const i=[];let s;function o(){s&&i.push(s),s=[]}let l=0,u,d="",f="";function p(){!d||(n===0?s.push({type:0,value:d}):n===1||n===2||n===3?(s.length>1&&(u==="*"||u==="+")&&e(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:d,regexp:f,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):e("Invalid state to consume buffer"),d="")}function v(){d+=u}for(;l<t.length;){if(u=t[l++],u==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:u==="/"?(d&&p(),o()):u===":"?(p(),n=1):v();break;case 4:v(),n=r;break;case 1:u==="("?n=2:cE.test(u)?v():(p(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&l--);break;case 2:u===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+u:n=3:f+=u;break;case 3:p(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&l--,f="";break;default:e("Unknown state");break}}return n===2&&e(`Unfinished custom RegExp for param "${d}"`),p(),o(),i}function dE(t,e,n){const r=sE(uE(t.path),n),i=Ke(r,{record:t,parent:e,children:[],alias:[]});return e&&!i.record.aliasOf==!e.record.aliasOf&&e.children.push(i),i}function fE(t,e){const n=[],r=new Map;e=uf({strict:!1,end:!0,sensitive:!1},e);function i(f){return r.get(f)}function s(f,p,v){const m=!v,S=pE(f);S.aliasOf=v&&v.record;const T=uf(e,f),A=[S];if("alias"in f){const C=typeof f.alias=="string"?[f.alias]:f.alias;for(const D of C)A.push(Ke({},S,{components:v?v.record.components:S.components,path:D,aliasOf:v?v.record:S}))}let O,k;for(const C of A){const{path:D}=C;if(p&&D[0]!=="/"){const B=p.record.path,j=B[B.length-1]==="/"?"":"/";C.path=p.record.path+(D&&j+D)}if(O=dE(C,p,T),v?v.alias.push(O):(k=k||O,k!==O&&k.alias.push(O),m&&f.name&&!cf(O)&&o(f.name)),"children"in S){const B=S.children;for(let j=0;j<B.length;j++)s(B[j],O,v&&v.children[j])}v=v||O,u(O)}return k?()=>{o(k)}:ys}function o(f){if(ym(f)){const p=r.get(f);p&&(r.delete(f),n.splice(n.indexOf(p),1),p.children.forEach(o),p.alias.forEach(o))}else{const p=n.indexOf(f);p>-1&&(n.splice(p,1),f.record.name&&r.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function l(){return n}function u(f){let p=0;for(;p<n.length&&aE(f,n[p])>=0;)p++;n.splice(p,0,f),f.record.name&&!cf(f)&&r.set(f.record.name,f)}function d(f,p){let v,m={},S,T;if("name"in f&&f.name){if(v=r.get(f.name),!v)throw Oi(1,{location:f});T=v.record.name,m=Ke(hE(p.params,v.keys.filter(k=>!k.optional).map(k=>k.name)),f.params),S=v.stringify(m)}else if("path"in f)S=f.path,v=n.find(k=>k.re.test(S)),v&&(m=v.parse(S),T=v.record.name);else{if(v=p.name?r.get(p.name):n.find(k=>k.re.test(p.path)),!v)throw Oi(1,{location:f,currentLocation:p});T=v.record.name,m=Ke({},p.params,f.params),S=v.stringify(m)}const A=[];let O=v;for(;O;)A.unshift(O.record),O=O.parent;return{name:T,path:S,params:m,matched:A,meta:gE(A)}}return t.forEach(f=>s(f)),{addRoute:s,resolve:d,removeRoute:o,getRoutes:l,getRecordMatcher:i}}function hE(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function pE(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:mE(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||{}:{default:t.component}}}function mE(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const r in t.components)e[r]=typeof n=="boolean"?n:n[r];return e}function cf(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function gE(t){return t.reduce((e,n)=>Ke(e,n.meta),{})}function uf(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}const bm=/#/g,vE=/&/g,yE=/\//g,_E=/=/g,bE=/\?/g,wm=/\+/g,wE=/%5B/g,EE=/%5D/g,Em=/%5E/g,TE=/%60/g,Tm=/%7B/g,CE=/%7C/g,Cm=/%7D/g,SE=/%20/g;function su(t){return encodeURI(""+t).replace(CE,"|").replace(wE,"[").replace(EE,"]")}function AE(t){return su(t).replace(Tm,"{").replace(Cm,"}").replace(Em,"^")}function uc(t){return su(t).replace(wm,"%2B").replace(SE,"+").replace(bm,"%23").replace(vE,"%26").replace(TE,"`").replace(Tm,"{").replace(Cm,"}").replace(Em,"^")}function OE(t){return uc(t).replace(_E,"%3D")}function IE(t){return su(t).replace(bm,"%23").replace(bE,"%3F")}function kE(t){return t==null?"":IE(t).replace(yE,"%2F")}function qo(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function DE(t){const e={};if(t===""||t==="?")return e;const r=(t[0]==="?"?t.slice(1):t).split("&");for(let i=0;i<r.length;++i){const s=r[i].replace(wm," "),o=s.indexOf("="),l=qo(o<0?s:s.slice(0,o)),u=o<0?null:qo(s.slice(o+1));if(l in e){let d=e[l];Array.isArray(d)||(d=e[l]=[d]),d.push(u)}else e[l]=u}return e}function df(t){let e="";for(let n in t){const r=t[n];if(n=OE(n),r==null){r!==void 0&&(e+=(e.length?"&":"")+n);continue}(Array.isArray(r)?r.map(s=>s&&uc(s)):[r&&uc(r)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+n,s!=null&&(e+="="+s))})}return e}function PE(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=Array.isArray(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return e}function Zi(){let t=[];function e(r){return t.push(r),()=>{const i=t.indexOf(r);i>-1&&t.splice(i,1)}}function n(){t=[]}return{add:e,list:()=>t,reset:n}}function jn(t,e,n,r,i){const s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((o,l)=>{const u=p=>{p===!1?l(Oi(4,{from:n,to:e})):p instanceof Error?l(p):nE(p)?l(Oi(2,{from:e,to:p})):(s&&r.enterCallbacks[i]===s&&typeof p=="function"&&s.push(p),o())},d=t.call(r&&r.instances[i],e,n,u);let f=Promise.resolve(d);t.length<3&&(f=f.then(u)),f.catch(p=>l(p))})}function cl(t,e,n,r){const i=[];for(const s of t)for(const o in s.components){let l=s.components[o];if(!(e!=="beforeRouteEnter"&&!s.instances[o]))if(NE(l)){const d=(l.__vccOpts||l)[e];d&&i.push(jn(d,n,r,s,o))}else{let u=l();i.push(()=>u.then(d=>{if(!d)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${s.path}"`));const f=U0(d)?d.default:d;s.components[o]=f;const v=(f.__vccOpts||f)[e];return v&&jn(v,n,r,s,o)()}))}}return i}function NE(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function ff(t){const e=ht(ya),n=ht(iu),r=ce(()=>e.resolve(I(t.to))),i=ce(()=>{const{matched:u}=r.value,{length:d}=u,f=u[d-1],p=n.matched;if(!f||!p.length)return-1;const v=p.findIndex(Ai.bind(null,f));if(v>-1)return v;const m=hf(u[d-2]);return d>1&&hf(f)===m&&p[p.length-1].path!==m?p.findIndex(Ai.bind(null,u[d-2])):v}),s=ce(()=>i.value>-1&&LE(n.params,r.value.params)),o=ce(()=>i.value>-1&&i.value===n.matched.length-1&&gm(n.params,r.value.params));function l(u={}){return RE(u)?e[I(t.replace)?"replace":"push"](I(t.to)).catch(ys):Promise.resolve()}return{route:r,href:ce(()=>r.value.href),isActive:s,isExactActive:o,navigate:l}}const xE=Gt({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:ff,setup(t,{slots:e}){const n=Hi(ff(t)),{options:r}=ht(ya),i=ce(()=>({[pf(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[pf(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=e.default&&e.default(n);return t.custom?s:ru("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},s)}}}),ME=xE;function RE(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 e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function LE(t,e){for(const n in e){const r=e[n],i=t[n];if(typeof r=="string"){if(r!==i)return!1}else if(!Array.isArray(i)||i.length!==r.length||r.some((s,o)=>s!==i[o]))return!1}return!0}function hf(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const pf=(t,e,n)=>t!=null?t:e!=null?e:n,$E=Gt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},setup(t,{attrs:e,slots:n}){const r=ht(lc),i=ce(()=>t.route||r.value),s=ht(tf,0),o=ce(()=>i.value.matched[s]);Ir(tf,s+1),Ir(B0,o),Ir(lc,i);const l=Se();return cn(()=>[l.value,o.value,t.name],([u,d,f],[p,v,m])=>{d&&(d.instances[f]=u,v&&v!==d&&u&&u===p&&(d.leaveGuards.size||(d.leaveGuards=v.leaveGuards),d.updateGuards.size||(d.updateGuards=v.updateGuards))),u&&d&&(!v||!Ai(d,v)||!p)&&(d.enterCallbacks[f]||[]).forEach(S=>S(u))},{flush:"post"}),()=>{const u=i.value,d=o.value,f=d&&d.components[t.name],p=t.name;if(!f)return mf(n.default,{Component:f,route:u});const v=d.props[t.name],m=v?v===!0?u.params:typeof v=="function"?v(u):v:null,T=ru(f,Ke({},m,e,{onVnodeUnmounted:A=>{A.component.isUnmounted&&(d.instances[p]=null)},ref:l}));return mf(n.default,{Component:T,route:u})||T}}});function mf(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const BE=$E;function Ex(t){const e=fE(t.routes,t),n=t.parseQuery||DE,r=t.stringifyQuery||df,i=t.history,s=Zi(),o=Zi(),l=Zi(),u=Zb(Rn);let d=Rn;ui&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=al.bind(null,L=>""+L),p=al.bind(null,kE),v=al.bind(null,qo);function m(L,re){let z,se;return ym(L)?(z=e.getRecordMatcher(L),se=re):se=L,e.addRoute(se,z)}function S(L){const re=e.getRecordMatcher(L);re&&e.removeRoute(re)}function T(){return e.getRoutes().map(L=>L.record)}function A(L){return!!e.getRecordMatcher(L)}function O(L,re){if(re=Ke({},re||u.value),typeof L=="string"){const pe=ll(n,L,re.path),y=e.resolve({path:pe.path},re),E=i.createHref(pe.fullPath);return Ke(pe,y,{params:v(y.params),hash:qo(pe.hash),redirectedFrom:void 0,href:E})}let z;if("path"in L)z=Ke({},L,{path:ll(n,L.path,re.path).path});else{const pe=Ke({},L.params);for(const y in pe)pe[y]==null&&delete pe[y];z=Ke({},L,{params:p(L.params)}),re.params=p(re.params)}const se=e.resolve(z,re),be=L.hash||"";se.params=f(v(se.params));const ve=V0(r,Ke({},L,{hash:AE(be),path:se.path})),de=i.createHref(ve);return Ke({fullPath:ve,hash:be,query:r===df?PE(L.query):L.query||{}},se,{redirectedFrom:void 0,href:de})}function k(L){return typeof L=="string"?ll(n,L,u.value.path):Ke({},L)}function C(L,re){if(d!==L)return Oi(8,{from:re,to:L})}function D(L){return b(L)}function B(L){return D(Ke(k(L),{replace:!0}))}function j(L){const re=L.matched[L.matched.length-1];if(re&&re.redirect){const{redirect:z}=re;let se=typeof z=="function"?z(L):z;return typeof se=="string"&&(se=se.includes("?")||se.includes("#")?se=k(se):{path:se},se.params={}),Ke({query:L.query,hash:L.hash,params:L.params},se)}}function b(L,re){const z=d=O(L),se=u.value,be=L.state,ve=L.force,de=L.replace===!0,pe=j(z);if(pe)return b(Ke(k(pe),{state:be,force:ve,replace:de}),re||z);const y=z;y.redirectedFrom=re;let E;return!ve&&j0(r,se,z)&&(E=Oi(16,{to:y,from:se}),He(se,se,!0,!1)),(E?Promise.resolve(E):R(y,se)).catch(P=>fr(P)?P:G(P,y,se)).then(P=>{if(P){if(fr(P,2))return b(Ke(k(P.to),{state:be,force:ve,replace:de}),re||y)}else P=w(y,se,!0,de,be);return H(y,se,P),P})}function x(L,re){const z=C(L,re);return z?Promise.reject(z):Promise.resolve()}function R(L,re){let z;const[se,be,ve]=UE(L,re);z=cl(se.reverse(),"beforeRouteLeave",L,re);for(const pe of se)pe.leaveGuards.forEach(y=>{z.push(jn(y,L,re))});const de=x.bind(null,L,re);return z.push(de),ni(z).then(()=>{z=[];for(const pe of s.list())z.push(jn(pe,L,re));return z.push(de),ni(z)}).then(()=>{z=cl(be,"beforeRouteUpdate",L,re);for(const pe of be)pe.updateGuards.forEach(y=>{z.push(jn(y,L,re))});return z.push(de),ni(z)}).then(()=>{z=[];for(const pe of L.matched)if(pe.beforeEnter&&!re.matched.includes(pe))if(Array.isArray(pe.beforeEnter))for(const y of pe.beforeEnter)z.push(jn(y,L,re));else z.push(jn(pe.beforeEnter,L,re));return z.push(de),ni(z)}).then(()=>(L.matched.forEach(pe=>pe.enterCallbacks={}),z=cl(ve,"beforeRouteEnter",L,re),z.push(de),ni(z))).then(()=>{z=[];for(const pe of o.list())z.push(jn(pe,L,re));return z.push(de),ni(z)}).catch(pe=>fr(pe,8)?pe:Promise.reject(pe))}function H(L,re,z){for(const se of l.list())se(L,re,z)}function w(L,re,z,se,be){const ve=C(L,re);if(ve)return ve;const de=re===Rn,pe=ui?history.state:{};z&&(se||de?i.replace(L.fullPath,Ke({scroll:de&&pe&&pe.scroll},be)):i.push(L.fullPath,be)),u.value=L,He(L,re,z,de),Te()}let g;function F(){g=i.listen((L,re,z)=>{const se=O(L),be=j(se);if(be){b(Ke(be,{replace:!0}),se).catch(ys);return}d=se;const ve=u.value;ui&&J0(sf(ve.fullPath,z.delta),_a()),R(se,ve).catch(de=>fr(de,12)?de:fr(de,2)?(b(de.to,se).then(pe=>{fr(pe,20)&&!z.delta&&z.type===$s.pop&&i.go(-1,!1)}).catch(ys),Promise.reject()):(z.delta&&i.go(-z.delta,!1),G(de,se,ve))).then(de=>{de=de||w(se,ve,!1),de&&(z.delta?i.go(-z.delta,!1):z.type===$s.pop&&fr(de,20)&&i.go(-1,!1)),H(se,ve,de)}).catch(ys)})}let V=Zi(),ae=Zi(),ee;function G(L,re,z){Te(L);const se=ae.list();return se.length?se.forEach(be=>be(L,re,z)):console.error(L),Promise.reject(L)}function le(){return ee&&u.value!==Rn?Promise.resolve():new Promise((L,re)=>{V.add([L,re])})}function Te(L){ee||(ee=!0,F(),V.list().forEach(([re,z])=>L?z(L):re()),V.reset())}function He(L,re,z,se){const{scrollBehavior:be}=t;if(!ui||!be)return Promise.resolve();const ve=!z&&Q0(sf(L.fullPath,0))||(se||!z)&&history.state&&history.state.scroll||null;return da().then(()=>be(L,re,ve)).then(de=>de&&X0(de)).catch(de=>G(de,L,re))}const Ue=L=>i.go(L);let We;const xe=new Set;return{currentRoute:u,addRoute:m,removeRoute:S,hasRoute:A,getRoutes:T,resolve:O,options:t,push:D,replace:B,go:Ue,back:()=>Ue(-1),forward:()=>Ue(1),beforeEach:s.add,beforeResolve:o.add,afterEach:l.add,onError:ae.add,isReady:le,install(L){const re=this;L.component("RouterLink",ME),L.component("RouterView",BE),L.config.globalProperties.$router=re,Object.defineProperty(L.config.globalProperties,"$route",{enumerable:!0,get:()=>I(u)}),ui&&!We&&u.value===Rn&&(We=!0,D(i.location).catch(be=>{}));const z={};for(const be in Rn)z[be]=ce(()=>u.value[be]);L.provide(ya,re),L.provide(iu,Hi(z)),L.provide(lc,u);const se=L.unmount;xe.add(L),L.unmount=function(){xe.delete(L),xe.size<1&&(d=Rn,g&&g(),u.value=Rn,We=!1,ee=!1),se()}}}}function ni(t){return t.reduce((e,n)=>e.then(()=>n()),Promise.resolve())}function UE(t,e){const n=[],r=[],i=[],s=Math.max(e.matched.length,t.matched.length);for(let o=0;o<s;o++){const l=e.matched[o];l&&(t.matched.find(d=>Ai(d,l))?r.push(l):n.push(l));const u=t.matched[o];u&&(e.matched.find(d=>Ai(d,u))||i.push(u))}return[n,r,i]}function Tx(){return ht(ya)}function Cx(){return ht(iu)}var HE=!1;/*!
|
|
* pinia v2.0.6
|
|
* (c) 2021 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/let Sm;const ba=t=>Sm=t,Am=Symbol();function dc(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var bs;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(bs||(bs={}));function Sx(){const t=gp(!0),e=t.run(()=>Se({}));let n=[],r=[];const i=Ei({install(s){ba(i),i._a=s,s.provide(Am,i),s.config.globalProperties.$pinia=i,r.forEach(o=>n.push(o)),r=[]},use(s){return!this._a&&!HE?r.push(s):n.push(s),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return i}function gf(t,e,n){t.push(e);const r=()=>{const i=t.indexOf(e);i>-1&&t.splice(i,1)};return!n&&va()&&ma(r),r}function vf(t,...e){t.forEach(n=>{n(...e)})}function fc(t,e){for(const n in e){const r=e[n],i=t[n];dc(i)&&dc(r)&&!Xe(r)&&!Jn(r)?t[n]=fc(i,r):t[n]=r}return t}const FE=Symbol();function VE(t){return!dc(t)||!t.hasOwnProperty(FE)}const{assign:bn}=Object;function jE(t){return!!(Xe(t)&&t.effect)}function WE(t,e,n,r){const{state:i,actions:s,getters:o}=e,l=n.state.value[t];let u;function d(){l||(n.state.value[t]=i?i():{});const f=nw(n.state.value[t]);return bn(f,s,Object.keys(o||{}).reduce((p,v)=>(p[v]=Ei(ce(()=>{ba(n);const m=n._s.get(t);return o[v].call(m,m)})),p),{}))}return u=Om(t,d,e,n),u.$reset=function(){const p=i?i():{};this.$patch(v=>{bn(v,p)})},u}const ul=()=>{};function Om(t,e,n={},r,i){let s;const o=n.state,l=bn({actions:{}},n),u={deep:!0};let d,f=Ei([]),p=Ei([]),v;const m=r.state.value[t];!o&&!m&&(r.state.value[t]={}),Se({});function S(B){let j;d=!1,typeof B=="function"?(B(r.state.value[t]),j={type:bs.patchFunction,storeId:t,events:v}):(fc(r.state.value[t],B),j={type:bs.patchObject,payload:B,storeId:t,events:v}),d=!0,vf(f,j,r.state.value[t])}const T=ul;function A(){s.stop(),f=[],p=[],r._s.delete(t)}function O(B,j){return function(){ba(r);const b=Array.from(arguments);let x=ul,R=ul;function H(V){x=V}function w(V){R=V}vf(p,{args:b,name:B,store:C,after:H,onError:w});let g;try{g=j.apply(this&&this.$id===t?this:C,b)}catch(V){if(R(V)!==!1)throw V}if(g instanceof Promise)return g.then(V=>{const ae=x(V);return ae===void 0?V:ae}).catch(V=>{if(R(V)!==!1)return Promise.reject(V)});const F=x(g);return F===void 0?g:F}}const k={_p:r,$id:t,$onAction:gf.bind(null,p),$patch:S,$reset:T,$subscribe(B,j={}){const b=gf(f,B,j.detached),x=s.run(()=>cn(()=>r.state.value[t],H=>{d&&B({storeId:t,type:bs.direct,events:v},H)},bn({},u,j)));return()=>{x(),b()}},$dispose:A},C=Hi(bn({},k));r._s.set(t,C);const D=r._e.run(()=>(s=gp(),s.run(()=>e())));for(const B in D){const j=D[B];if(Xe(j)&&!jE(j)||Jn(j))o||(m&&VE(j)&&(Xe(j)?j.value=m[B]:fc(j,m[B])),r.state.value[t][B]=j);else if(typeof j=="function"){const b=O(B,j);D[B]=b,l.actions[B]=j}}return bn(C,D),bn(Be(C),D),Object.defineProperty(C,"$state",{get:()=>r.state.value[t],set:B=>{S(j=>{bn(j,B)})}}),r._p.forEach(B=>{bn(C,s.run(()=>B({store:C,app:r._a,pinia:r,options:l})))}),m&&o&&n.hydrate&&n.hydrate(C.$state,m),d=!0,C}function Ax(t,e,n){let r,i;const s=typeof e=="function";typeof t=="string"?(r=t,i=s?n:e):(i=t,r=t.id);function o(l,u){const d=va();return l=l||d&&ht(Am),l&&ba(l),l=Sm,l._s.has(r)||(s?Om(r,e,i,l):WE(r,i,l)),l._s.get(r)}return o.$id=r,o}var ou={exports:{}},Im=function(e,n){return function(){for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];return e.apply(n,i)}},qE=Im,qr=Object.prototype.toString;function au(t){return qr.call(t)==="[object Array]"}function hc(t){return typeof t=="undefined"}function YE(t){return t!==null&&!hc(t)&&t.constructor!==null&&!hc(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function KE(t){return qr.call(t)==="[object ArrayBuffer]"}function zE(t){return typeof FormData!="undefined"&&t instanceof FormData}function GE(t){var e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function XE(t){return typeof t=="string"}function JE(t){return typeof t=="number"}function km(t){return t!==null&&typeof t=="object"}function Oo(t){if(qr.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function QE(t){return qr.call(t)==="[object Date]"}function ZE(t){return qr.call(t)==="[object File]"}function eT(t){return qr.call(t)==="[object Blob]"}function Dm(t){return qr.call(t)==="[object Function]"}function tT(t){return km(t)&&Dm(t.pipe)}function nT(t){return typeof URLSearchParams!="undefined"&&t instanceof URLSearchParams}function rT(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function iT(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function lu(t,e){if(!(t===null||typeof t=="undefined"))if(typeof t!="object"&&(t=[t]),au(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}function pc(){var t={};function e(i,s){Oo(t[s])&&Oo(i)?t[s]=pc(t[s],i):Oo(i)?t[s]=pc({},i):au(i)?t[s]=i.slice():t[s]=i}for(var n=0,r=arguments.length;n<r;n++)lu(arguments[n],e);return t}function sT(t,e,n){return lu(e,function(i,s){n&&typeof i=="function"?t[s]=qE(i,n):t[s]=i}),t}function oT(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}var xt={isArray:au,isArrayBuffer:KE,isBuffer:YE,isFormData:zE,isArrayBufferView:GE,isString:XE,isNumber:JE,isObject:km,isPlainObject:Oo,isUndefined:hc,isDate:QE,isFile:ZE,isBlob:eT,isFunction:Dm,isStream:tT,isURLSearchParams:nT,isStandardBrowserEnv:iT,forEach:lu,merge:pc,extend:sT,trim:rT,stripBOM:oT},ri=xt;function yf(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Pm=function(e,n,r){if(!n)return e;var i;if(r)i=r(n);else if(ri.isURLSearchParams(n))i=n.toString();else{var s=[];ri.forEach(n,function(u,d){u===null||typeof u=="undefined"||(ri.isArray(u)?d=d+"[]":u=[u],ri.forEach(u,function(p){ri.isDate(p)?p=p.toISOString():ri.isObject(p)&&(p=JSON.stringify(p)),s.push(yf(d)+"="+yf(p))}))}),i=s.join("&")}if(i){var o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e},aT=xt;function wa(){this.handlers=[]}wa.prototype.use=function(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};wa.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};wa.prototype.forEach=function(e){aT.forEach(this.handlers,function(r){r!==null&&e(r)})};var lT=wa,cT=xt,uT=function(e,n){cT.forEach(e,function(i,s){s!==n&&s.toUpperCase()===n.toUpperCase()&&(e[n]=i,delete e[s])})},Nm=function(e,n,r,i,s){return e.config=n,r&&(e.code=r),e.request=i,e.response=s,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e},dT=Nm,xm=function(e,n,r,i,s){var o=new Error(e);return dT(o,n,r,i,s)},fT=xm,hT=function(e,n,r){var i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):n(fT("Request failed with status code "+r.status,r.config,null,r.request,r))},mo=xt,pT=mo.isStandardBrowserEnv()?function(){return{write:function(n,r,i,s,o,l){var u=[];u.push(n+"="+encodeURIComponent(r)),mo.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),mo.isString(s)&&u.push("path="+s),mo.isString(o)&&u.push("domain="+o),l===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){var r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),mT=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)},gT=function(e,n){return n?e.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):e},vT=mT,yT=gT,_T=function(e,n){return e&&!vT(n)?yT(e,n):n},dl=xt,bT=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],wT=function(e){var n={},r,i,s;return e&&dl.forEach(e.split(`
|
|
`),function(l){if(s=l.indexOf(":"),r=dl.trim(l.substr(0,s)).toLowerCase(),i=dl.trim(l.substr(s+1)),r){if(n[r]&&bT.indexOf(r)>=0)return;r==="set-cookie"?n[r]=(n[r]?n[r]:[]).concat([i]):n[r]=n[r]?n[r]+", "+i:i}}),n},_f=xt,ET=_f.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),r;function i(s){var o=s;return e&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(o){var l=_f.isString(o)?i(o):o;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function cu(t){this.message=t}cu.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};cu.prototype.__CANCEL__=!0;var Ea=cu,go=xt,TT=hT,CT=pT,ST=Pm,AT=_T,OT=wT,IT=ET,fl=xm,kT=Ca,DT=Ea,bf=function(e){return new Promise(function(r,i){var s=e.data,o=e.headers,l=e.responseType,u;function d(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}go.isFormData(s)&&delete o["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(p+":"+v)}var m=AT(e.baseURL,e.url);f.open(e.method.toUpperCase(),ST(m,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function S(){if(!!f){var A="getAllResponseHeaders"in f?OT(f.getAllResponseHeaders()):null,O=!l||l==="text"||l==="json"?f.responseText:f.response,k={data:O,status:f.status,statusText:f.statusText,headers:A,config:e,request:f};TT(function(D){r(D),d()},function(D){i(D),d()},k),f=null}}if("onloadend"in f?f.onloadend=S:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(S)},f.onabort=function(){!f||(i(fl("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){i(fl("Network Error",e,null,f)),f=null},f.ontimeout=function(){var O=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",k=e.transitional||kT.transitional;e.timeoutErrorMessage&&(O=e.timeoutErrorMessage),i(fl(O,e,k.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",f)),f=null},go.isStandardBrowserEnv()){var T=(e.withCredentials||IT(m))&&e.xsrfCookieName?CT.read(e.xsrfCookieName):void 0;T&&(o[e.xsrfHeaderName]=T)}"setRequestHeader"in f&&go.forEach(o,function(O,k){typeof s=="undefined"&&k.toLowerCase()==="content-type"?delete o[k]:f.setRequestHeader(k,O)}),go.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),l&&l!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(u=function(A){!f||(i(!A||A&&A.type?new DT("canceled"):A),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u))),s||(s=null),f.send(s)})},at=xt,wf=uT,PT=Nm,NT={"Content-Type":"application/x-www-form-urlencoded"};function Ef(t,e){!at.isUndefined(t)&&at.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function xT(){var t;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(t=bf),t}function MT(t,e,n){if(at.isString(t))try{return(e||JSON.parse)(t),at.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}var Ta={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:xT(),transformRequest:[function(e,n){return wf(n,"Accept"),wf(n,"Content-Type"),at.isFormData(e)||at.isArrayBuffer(e)||at.isBuffer(e)||at.isStream(e)||at.isFile(e)||at.isBlob(e)?e:at.isArrayBufferView(e)?e.buffer:at.isURLSearchParams(e)?(Ef(n,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):at.isObject(e)||n&&n["Content-Type"]==="application/json"?(Ef(n,"application/json"),MT(e)):e}],transformResponse:[function(e){var n=this.transitional||Ta.transitional,r=n&&n.silentJSONParsing,i=n&&n.forcedJSONParsing,s=!r&&this.responseType==="json";if(s||i&&at.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(s)throw o.name==="SyntaxError"?PT(o,this,"E_JSON_PARSE"):o}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};at.forEach(["delete","get","head"],function(e){Ta.headers[e]={}});at.forEach(["post","put","patch"],function(e){Ta.headers[e]=at.merge(NT)});var Ca=Ta,RT=xt,LT=Ca,$T=function(e,n,r){var i=this||LT;return RT.forEach(r,function(o){e=o.call(i,e,n)}),e},Mm=function(e){return!!(e&&e.__CANCEL__)},Tf=xt,hl=$T,BT=Mm,UT=Ca,HT=Ea;function pl(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new HT("canceled")}var FT=function(e){pl(e),e.headers=e.headers||{},e.data=hl.call(e,e.data,e.headers,e.transformRequest),e.headers=Tf.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Tf.forEach(["delete","get","head","post","put","patch","common"],function(i){delete e.headers[i]});var n=e.adapter||UT.adapter;return n(e).then(function(i){return pl(e),i.data=hl.call(e,i.data,i.headers,e.transformResponse),i},function(i){return BT(i)||(pl(e),i&&i.response&&(i.response.data=hl.call(e,i.response.data,i.response.headers,e.transformResponse))),Promise.reject(i)})},St=xt,Rm=function(e,n){n=n||{};var r={};function i(f,p){return St.isPlainObject(f)&&St.isPlainObject(p)?St.merge(f,p):St.isPlainObject(p)?St.merge({},p):St.isArray(p)?p.slice():p}function s(f){if(St.isUndefined(n[f])){if(!St.isUndefined(e[f]))return i(void 0,e[f])}else return i(e[f],n[f])}function o(f){if(!St.isUndefined(n[f]))return i(void 0,n[f])}function l(f){if(St.isUndefined(n[f])){if(!St.isUndefined(e[f]))return i(void 0,e[f])}else return i(void 0,n[f])}function u(f){if(f in n)return i(e[f],n[f]);if(f in e)return i(void 0,e[f])}var d={url:o,method:o,data:o,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:u};return St.forEach(Object.keys(e).concat(Object.keys(n)),function(p){var v=d[p]||s,m=v(p);St.isUndefined(m)&&v!==u||(r[p]=m)}),r},Lm={version:"0.24.0"},VT=Lm.version,uu={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){uu[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});var Cf={};uu.transitional=function(e,n,r){function i(s,o){return"[Axios v"+VT+"] Transitional option '"+s+"'"+o+(r?". "+r:"")}return function(s,o,l){if(e===!1)throw new Error(i(o," has been removed"+(n?" in "+n:"")));return n&&!Cf[o]&&(Cf[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,o,l):!0}};function jT(t,e,n){if(typeof t!="object")throw new TypeError("options must be an object");for(var r=Object.keys(t),i=r.length;i-- >0;){var s=r[i],o=e[s];if(o){var l=t[s],u=l===void 0||o(l,s,t);if(u!==!0)throw new TypeError("option "+s+" must be "+u);continue}if(n!==!0)throw Error("Unknown option "+s)}}var WT={assertOptions:jT,validators:uu},$m=xt,qT=Pm,Sf=lT,Af=FT,Sa=Rm,Bm=WT,ii=Bm.validators;function Ws(t){this.defaults=t,this.interceptors={request:new Sf,response:new Sf}}Ws.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=Sa(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var n=e.transitional;n!==void 0&&Bm.assertOptions(n,{silentJSONParsing:ii.transitional(ii.boolean),forcedJSONParsing:ii.transitional(ii.boolean),clarifyTimeoutError:ii.transitional(ii.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(e)===!1||(i=i&&v.synchronous,r.unshift(v.fulfilled,v.rejected))});var s=[];this.interceptors.response.forEach(function(v){s.push(v.fulfilled,v.rejected)});var o;if(!i){var l=[Af,void 0];for(Array.prototype.unshift.apply(l,r),l=l.concat(s),o=Promise.resolve(e);l.length;)o=o.then(l.shift(),l.shift());return o}for(var u=e;r.length;){var d=r.shift(),f=r.shift();try{u=d(u)}catch(p){f(p);break}}try{o=Af(u)}catch(p){return Promise.reject(p)}for(;s.length;)o=o.then(s.shift(),s.shift());return o};Ws.prototype.getUri=function(e){return e=Sa(this.defaults,e),qT(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};$m.forEach(["delete","get","head","options"],function(e){Ws.prototype[e]=function(n,r){return this.request(Sa(r||{},{method:e,url:n,data:(r||{}).data}))}});$m.forEach(["post","put","patch"],function(e){Ws.prototype[e]=function(n,r,i){return this.request(Sa(i||{},{method:e,url:n,data:r}))}});var YT=Ws,KT=Ea;function Ii(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(i){e=i});var n=this;this.promise.then(function(r){if(!!n._listeners){var i,s=n._listeners.length;for(i=0;i<s;i++)n._listeners[i](r);n._listeners=null}}),this.promise.then=function(r){var i,s=new Promise(function(o){n.subscribe(o),i=o}).then(r);return s.cancel=function(){n.unsubscribe(i)},s},t(function(i){n.reason||(n.reason=new KT(i),e(n.reason))})}Ii.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};Ii.prototype.subscribe=function(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]};Ii.prototype.unsubscribe=function(e){if(!!this._listeners){var n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}};Ii.source=function(){var e,n=new Ii(function(i){e=i});return{token:n,cancel:e}};var zT=Ii,GT=function(e){return function(r){return e.apply(null,r)}},XT=function(e){return typeof e=="object"&&e.isAxiosError===!0},Of=xt,JT=Im,Io=YT,QT=Rm,ZT=Ca;function Um(t){var e=new Io(t),n=JT(Io.prototype.request,e);return Of.extend(n,Io.prototype,e),Of.extend(n,e),n.create=function(i){return Um(QT(t,i))},n}var vn=Um(ZT);vn.Axios=Io;vn.Cancel=Ea;vn.CancelToken=zT;vn.isCancel=Mm;vn.VERSION=Lm.version;vn.all=function(e){return Promise.all(e)};vn.spread=GT;vn.isAxiosError=XT;ou.exports=vn;ou.exports.default=vn;var Ox=ou.exports;/**
|
|
* @license
|
|
* Copyright 2017 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*//**
|
|
* @license
|
|
* Copyright 2017 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const eC=function(t){const e=[];let n=0;for(let r=0;r<t.length;r++){let i=t.charCodeAt(r);i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=i&63|128):(i&64512)===55296&&r+1<t.length&&(t.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(t.charCodeAt(++r)&1023),e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=i&63|128):(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=i&63|128)}return e},tC=function(t){const e=[];let n=0,r=0;for(;n<t.length;){const i=t[n++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){const s=t[n++];e[r++]=String.fromCharCode((i&31)<<6|s&63)}else if(i>239&&i<365){const s=t[n++],o=t[n++],l=t[n++],u=((i&7)<<18|(s&63)<<12|(o&63)<<6|l&63)-65536;e[r++]=String.fromCharCode(55296+(u>>10)),e[r++]=String.fromCharCode(56320+(u&1023))}else{const s=t[n++],o=t[n++];e[r++]=String.fromCharCode((i&15)<<12|(s&63)<<6|o&63)}}return e.join("")},nC={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<t.length;i+=3){const s=t[i],o=i+1<t.length,l=o?t[i+1]:0,u=i+2<t.length,d=u?t[i+2]:0,f=s>>2,p=(s&3)<<4|l>>4;let v=(l&15)<<2|d>>6,m=d&63;u||(m=64,o||(v=64)),r.push(n[f],n[p],n[v],n[m])}return r.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(eC(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):tC(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<t.length;){const s=n[t.charAt(i++)],l=i<t.length?n[t.charAt(i)]:0;++i;const d=i<t.length?n[t.charAt(i)]:64;++i;const p=i<t.length?n[t.charAt(i)]:64;if(++i,s==null||l==null||d==null||p==null)throw Error();const v=s<<2|l>>4;if(r.push(v),d!==64){const m=l<<4&240|d>>2;if(r.push(m),p!==64){const S=d<<6&192|p;r.push(S)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}},rC=function(t){try{return nC.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/**
|
|
* @license
|
|
* Copyright 2017 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class iC{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}wrapCallback(e){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(n):e(n,r))}}}/**
|
|
* @license
|
|
* Copyright 2017 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function pt(){return typeof navigator!="undefined"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function sC(){return typeof window!="undefined"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(pt())}function oC(){const t=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof t=="object"&&t.id!==void 0}function aC(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function lC(){const t=pt();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}/**
|
|
* @license
|
|
* Copyright 2017 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const cC="FirebaseError";class Vi extends Error{constructor(e,n,r){super(n);this.code=e,this.customData=r,this.name=cC,Object.setPrototypeOf(this,Vi.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,qs.prototype.create)}}class qs{constructor(e,n,r){this.service=e,this.serviceName=n,this.errors=r}create(e,...n){const r=n[0]||{},i=`${this.service}/${e}`,s=this.errors[e],o=s?uC(s,r):"Error",l=`${this.serviceName}: ${o} (${i}).`;return new Vi(i,l,r)}}function uC(t,e){return t.replace(dC,(n,r)=>{const i=e[r];return i!=null?String(i):`<${r}?>`})}const dC=/\{\$([^}]+)}/g;function fC(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function Yo(t,e){if(t===e)return!0;const n=Object.keys(t),r=Object.keys(e);for(const i of n){if(!r.includes(i))return!1;const s=t[i],o=e[i];if(If(s)&&If(o)){if(!Yo(s,o))return!1}else if(s!==o)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function If(t){return t!==null&&typeof t=="object"}/**
|
|
* @license
|
|
* Copyright 2017 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function Ys(t){const e=[];for(const[n,r]of Object.entries(t))Array.isArray(r)?r.forEach(i=>{e.push(encodeURIComponent(n)+"="+encodeURIComponent(i))}):e.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return e.length?"&"+e.join("&"):""}function ds(t){const e={};return t.replace(/^\?/,"").split("&").forEach(r=>{if(r){const[i,s]=r.split("=");e[decodeURIComponent(i)]=decodeURIComponent(s)}}),e}function fs(t){const e=t.indexOf("?");if(!e)return"";const n=t.indexOf("#",e);return t.substring(e,n>0?n:void 0)}function hC(t,e){const n=new pC(t,e);return n.subscribe.bind(n)}class pC{constructor(e,n){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then(()=>{e(this)}).catch(r=>{this.error(r)})}next(e){this.forEachObserver(n=>{n.next(e)})}error(e){this.forEachObserver(n=>{n.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,n,r){let i;if(e===void 0&&n===void 0&&r===void 0)throw new Error("Missing Observer.");mC(e,["next","error","complete"])?i=e:i={next:e,error:n,complete:r},i.next===void 0&&(i.next=ml),i.error===void 0&&(i.error=ml),i.complete===void 0&&(i.complete=ml);const s=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?i.error(this.finalError):i.complete()}catch{}}),this.observers.push(i),s}unsubscribeOne(e){this.observers===void 0||this.observers[e]===void 0||(delete this.observers[e],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let n=0;n<this.observers.length;n++)this.sendOne(n,e)}sendOne(e,n){this.task.then(()=>{if(this.observers!==void 0&&this.observers[e]!==void 0)try{n(this.observers[e])}catch(r){typeof console!="undefined"&&console.error&&console.error(r)}})}close(e){this.finalized||(this.finalized=!0,e!==void 0&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function mC(t,e){if(typeof t!="object"||t===null)return!1;for(const n of e)if(n in t&&typeof t[n]=="function")return!0;return!1}function ml(){}/**
|
|
* @license
|
|
* Copyright 2021 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function Yr(t){return t&&t._delegate?t._delegate:t}class Bs{constructor(e,n,r){this.name=e,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const vr="[DEFAULT]";/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class gC{constructor(e,n){this.name=e,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const n=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(n)){const r=new iC;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:n});i&&r.resolve(i)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(e){var n;const r=this.normalizeInstanceIdentifier(e==null?void 0:e.identifier),i=(n=e==null?void 0:e.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(s){if(i)return null;throw s}else{if(i)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(yC(e))try{this.getOrInitializeService({instanceIdentifier:vr})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(n);try{const s=this.getOrInitializeService({instanceIdentifier:i});r.resolve(s)}catch{}}}}clearInstance(e=vr){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...e.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(e=vr){return this.instances.has(e)}getOptions(e=vr){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:n={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const i=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[s,o]of this.instancesDeferred.entries()){const l=this.normalizeInstanceIdentifier(s);r===l&&o.resolve(i)}return i}onInit(e,n){var r;const i=this.normalizeInstanceIdentifier(n),s=(r=this.onInitCallbacks.get(i))!==null&&r!==void 0?r:new Set;s.add(e),this.onInitCallbacks.set(i,s);const o=this.instances.get(i);return o&&e(o,i),()=>{s.delete(e)}}invokeOnInitCallbacks(e,n){const r=this.onInitCallbacks.get(n);if(!!r)for(const i of r)try{i(e,n)}catch{}}getOrInitializeService({instanceIdentifier:e,options:n={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:vC(e),options:n}),this.instances.set(e,r),this.instancesOptions.set(e,n),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch{}return r||null}normalizeInstanceIdentifier(e=vr){return this.component?this.component.multipleInstances?e:vr:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function vC(t){return t===vr?void 0:t}function yC(t){return t.instantiationMode==="EAGER"}/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class _C{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const n=this.getProvider(e.name);if(n.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);n.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const n=new gC(e,this);return this.providers.set(e,n),n}getProviders(){return Array.from(this.providers.values())}}/**
|
|
* @license
|
|
* Copyright 2017 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/var Ge;(function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"})(Ge||(Ge={}));const bC={debug:Ge.DEBUG,verbose:Ge.VERBOSE,info:Ge.INFO,warn:Ge.WARN,error:Ge.ERROR,silent:Ge.SILENT},wC=Ge.INFO,EC={[Ge.DEBUG]:"log",[Ge.VERBOSE]:"log",[Ge.INFO]:"info",[Ge.WARN]:"warn",[Ge.ERROR]:"error"},TC=(t,e,...n)=>{if(e<t.logLevel)return;const r=new Date().toISOString(),i=EC[e];if(i)console[i](`[${r}] ${t.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)};class Hm{constructor(e){this.name=e,this._logLevel=wC,this._logHandler=TC,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in Ge))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?bC[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if(typeof e!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,Ge.DEBUG,...e),this._logHandler(this,Ge.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,Ge.VERBOSE,...e),this._logHandler(this,Ge.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,Ge.INFO,...e),this._logHandler(this,Ge.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,Ge.WARN,...e),this._logHandler(this,Ge.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,Ge.ERROR,...e),this._logHandler(this,Ge.ERROR,...e)}}/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class CC{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(SC(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function SC(t){const e=t.getComponent();return(e==null?void 0:e.type)==="VERSION"}const mc="@firebase/app",kf="0.7.13";/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const du=new Hm("@firebase/app"),AC="@firebase/app-compat",OC="@firebase/analytics-compat",IC="@firebase/analytics",kC="@firebase/app-check-compat",DC="@firebase/app-check",PC="@firebase/auth",NC="@firebase/auth-compat",xC="@firebase/database",MC="@firebase/database-compat",RC="@firebase/functions",LC="@firebase/functions-compat",$C="@firebase/installations",BC="@firebase/installations-compat",UC="@firebase/messaging",HC="@firebase/messaging-compat",FC="@firebase/performance",VC="@firebase/performance-compat",jC="@firebase/remote-config",WC="@firebase/remote-config-compat",qC="@firebase/storage",YC="@firebase/storage-compat",KC="@firebase/firestore",zC="@firebase/firestore-compat",GC="firebase",XC="9.6.3";/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const Fm="[DEFAULT]",JC={[mc]:"fire-core",[AC]:"fire-core-compat",[IC]:"fire-analytics",[OC]:"fire-analytics-compat",[DC]:"fire-app-check",[kC]:"fire-app-check-compat",[PC]:"fire-auth",[NC]:"fire-auth-compat",[xC]:"fire-rtdb",[MC]:"fire-rtdb-compat",[RC]:"fire-fn",[LC]:"fire-fn-compat",[$C]:"fire-iid",[BC]:"fire-iid-compat",[UC]:"fire-fcm",[HC]:"fire-fcm-compat",[FC]:"fire-perf",[VC]:"fire-perf-compat",[jC]:"fire-rc",[WC]:"fire-rc-compat",[qC]:"fire-gcs",[YC]:"fire-gcs-compat",[KC]:"fire-fst",[zC]:"fire-fst-compat","fire-js":"fire-js",[GC]:"fire-js-all"};/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const Ko=new Map,gc=new Map;function QC(t,e){try{t.container.addComponent(e)}catch(n){du.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,n)}}function zo(t){const e=t.name;if(gc.has(e))return du.debug(`There were multiple attempts to register component ${e}.`),!1;gc.set(e,t);for(const n of Ko.values())QC(n,t);return!0}function Vm(t,e){return t.container.getProvider(e)}/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const ZC={["no-app"]:"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",["bad-app-name"]:"Illegal App name: '{$appName}",["duplicate-app"]:"Firebase App named '{$appName}' already exists with different options or config",["app-deleted"]:"Firebase App named '{$appName}' already deleted",["invalid-app-argument"]:"firebase.{$appName}() takes either no argument or a Firebase App instance.",["invalid-log-argument"]:"First argument to `onLog` must be null or a function."},Go=new qs("app","Firebase",ZC);/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class eS{constructor(e,n,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new Bs("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw Go.create("app-deleted",{appName:this._name})}}/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const Aa=XC;function Ix(t,e={}){typeof e!="object"&&(e={name:e});const n=Object.assign({name:Fm,automaticDataCollectionEnabled:!1},e),r=n.name;if(typeof r!="string"||!r)throw Go.create("bad-app-name",{appName:String(r)});const i=Ko.get(r);if(i){if(Yo(t,i.options)&&Yo(n,i.config))return i;throw Go.create("duplicate-app",{appName:r})}const s=new _C(r);for(const l of gc.values())s.addComponent(l);const o=new eS(t,n,s);return Ko.set(r,o),o}function tS(t=Fm){const e=Ko.get(t);if(!e)throw Go.create("no-app",{appName:t});return e}function vi(t,e,n){var r;let i=(r=JC[t])!==null&&r!==void 0?r:t;n&&(i+=`-${n}`);const s=i.match(/\s|\//),o=e.match(/\s|\//);if(s||o){const l=[`Unable to register library "${i}" with version "${e}":`];s&&l.push(`library name "${i}" contains illegal characters (whitespace or "/")`),s&&o&&l.push("and"),o&&l.push(`version name "${e}" contains illegal characters (whitespace or "/")`),du.warn(l.join(" "));return}zo(new Bs(`${i}-version`,()=>({library:i,version:e}),"VERSION"))}/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function nS(t){zo(new Bs("platform-logger",e=>new CC(e),"PRIVATE")),vi(mc,kf,t),vi(mc,kf,"esm2017"),vi("fire-js","")}nS("");/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
***************************************************************************** */function fu(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function jm(){return{["dependent-sdk-initialized-before-auth"]:"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const rS=jm,Wm=new qs("auth","Firebase",jm());/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const Df=new Hm("@firebase/auth");function ko(t,...e){Df.logLevel<=Ge.ERROR&&Df.error(`Auth (${Aa}): ${t}`,...e)}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function zt(t,...e){throw hu(t,...e)}function fn(t,...e){return hu(t,...e)}function iS(t,e,n){const r=Object.assign(Object.assign({},rS()),{[e]:n});return new qs("auth","Firebase",r).create(e,{appName:t.name})}function hu(t,...e){if(typeof t!="string"){const n=e[0],r=[...e.slice(1)];return r[0]&&(r[0].appName=t.name),t._errorFactory.create(n,...r)}return Wm.create(t,...e)}function Ee(t,e,...n){if(!t)throw hu(e,...n)}function Tn(t){const e="INTERNAL ASSERTION FAILED: "+t;throw ko(e),new Error(e)}function In(t,e){t||Tn(e)}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const Pf=new Map;function Cn(t){In(t instanceof Function,"Expected a class definition");let e=Pf.get(t);return e?(In(e instanceof t,"Instance stored in cache mismatched with class"),e):(e=new t,Pf.set(t,e),e)}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function sS(t,e){const n=Vm(t,"auth");if(n.isInitialized()){const i=n.getImmediate(),s=n.getOptions();if(Yo(s,e!=null?e:{}))return i;zt(i,"already-initialized")}return n.initialize({options:e})}function oS(t,e){const n=(e==null?void 0:e.persistence)||[],r=(Array.isArray(n)?n:[n]).map(Cn);e!=null&&e.errorMap&&t._updateErrorMap(e.errorMap),t._initializeWithPersistence(r,e==null?void 0:e.popupRedirectResolver)}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function vc(){var t;return typeof self!="undefined"&&((t=self.location)===null||t===void 0?void 0:t.href)||""}function aS(){return Nf()==="http:"||Nf()==="https:"}function Nf(){var t;return typeof self!="undefined"&&((t=self.location)===null||t===void 0?void 0:t.protocol)||null}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function lS(){return typeof navigator!="undefined"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(aS()||oC()||"connection"in navigator)?navigator.onLine:!0}function cS(){if(typeof navigator=="undefined")return null;const t=navigator;return t.languages&&t.languages[0]||t.language||null}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class Ks{constructor(e,n){this.shortDelay=e,this.longDelay=n,In(n>e,"Short delay should be less than long delay!"),this.isMobile=sC()||aC()}get(){return lS()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function pu(t,e){In(t.emulator,"Emulator should always be set here");const{url:n}=t.emulator;return e?`${n}${e.startsWith("/")?e.slice(1):e}`:n}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class qm{static initialize(e,n,r){this.fetchImpl=e,n&&(this.headersImpl=n),r&&(this.responseImpl=r)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self!="undefined"&&"fetch"in self)return self.fetch;Tn("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self!="undefined"&&"Headers"in self)return self.Headers;Tn("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self!="undefined"&&"Response"in self)return self.Response;Tn("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const uS={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"internal-error",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error"};/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const dS=new Ks(3e4,6e4);function Oa(t,e){return t.tenantId&&!e.tenantId?Object.assign(Object.assign({},e),{tenantId:t.tenantId}):e}async function zs(t,e,n,r,i={}){return Ym(t,i,async()=>{let s={},o={};r&&(e==="GET"?o=r:s={body:JSON.stringify(r)});const l=Ys(Object.assign({key:t.config.apiKey},o)).slice(1),u=await t._getAdditionalHeaders();return u["Content-Type"]="application/json",t.languageCode&&(u["X-Firebase-Locale"]=t.languageCode),qm.fetch()(Km(t,t.config.apiHost,n,l),Object.assign({method:e,headers:u,referrerPolicy:"no-referrer"},s))})}async function Ym(t,e,n){t._canInitEmulator=!1;const r=Object.assign(Object.assign({},uS),e);try{const i=new fS(t),s=await Promise.race([n(),i.promise]);i.clearNetworkTimeout();const o=await s.json();if("needConfirmation"in o)throw gl(t,"account-exists-with-different-credential",o);if(s.ok&&!("errorMessage"in o))return o;{const l=s.ok?o.errorMessage:o.error.message,[u,d]=l.split(" : ");if(u==="FEDERATED_USER_ID_ALREADY_LINKED")throw gl(t,"credential-already-in-use",o);if(u==="EMAIL_EXISTS")throw gl(t,"email-already-in-use",o);const f=r[u]||u.toLowerCase().replace(/[_\s]+/g,"-");if(d)throw iS(t,f,d);zt(t,f)}}catch(i){if(i instanceof Vi)throw i;zt(t,"network-request-failed")}}async function Ia(t,e,n,r,i={}){const s=await zs(t,e,n,r,i);return"mfaPendingCredential"in s&&zt(t,"multi-factor-auth-required",{_serverResponse:s}),s}function Km(t,e,n,r){const i=`${e}${n}?${r}`;return t.config.emulator?pu(t.config,i):`${t.config.apiScheme}://${i}`}class fS{constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((n,r)=>{this.timer=setTimeout(()=>r(fn(this.auth,"timeout")),dS.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function gl(t,e,n){const r={appName:t.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const i=fn(t,e,r);return i.customData._tokenResponse=n,i}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/async function hS(t,e){return zs(t,"POST","/v1/accounts:delete",e)}async function pS(t,e){return zs(t,"POST","/v1/accounts:lookup",e)}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function ws(t){if(!!t)try{const e=new Date(Number(t));if(!isNaN(e.getTime()))return e.toUTCString()}catch{}}async function mS(t,e=!1){const n=Yr(t),r=await n.getIdToken(e),i=mu(r);Ee(i&&i.exp&&i.auth_time&&i.iat,n.auth,"internal-error");const s=typeof i.firebase=="object"?i.firebase:void 0,o=s==null?void 0:s.sign_in_provider;return{claims:i,token:r,authTime:ws(vl(i.auth_time)),issuedAtTime:ws(vl(i.iat)),expirationTime:ws(vl(i.exp)),signInProvider:o||null,signInSecondFactor:(s==null?void 0:s.sign_in_second_factor)||null}}function vl(t){return Number(t)*1e3}function mu(t){const[e,n,r]=t.split(".");if(e===void 0||n===void 0||r===void 0)return ko("JWT malformed, contained fewer than 3 sections"),null;try{const i=rC(n);return i?JSON.parse(i):(ko("Failed to decode base64 JWT payload"),null)}catch(i){return ko("Caught error parsing JWT payload as JSON",i),null}}function gS(t){const e=mu(t);return Ee(e,"internal-error"),Ee(typeof e.exp!="undefined","internal-error"),Ee(typeof e.iat!="undefined","internal-error"),Number(e.exp)-Number(e.iat)}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/async function Us(t,e,n=!1){if(n)return e;try{return await e}catch(r){throw r instanceof Vi&&vS(r)&&t.auth.currentUser===t&&await t.auth.signOut(),r}}function vS({code:t}){return t==="auth/user-disabled"||t==="auth/user-token-expired"}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class yS{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){!this.isRunning||(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(e){var n;if(e){const r=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),r}else{this.errorBackoff=3e4;const i=((n=this.user.stsTokenManager.expirationTime)!==null&&n!==void 0?n:0)-Date.now()-3e5;return Math.max(0,i)}}schedule(e=!1){if(!this.isRunning)return;const n=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},n)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){e.code==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class zm{constructor(e,n){this.createdAt=e,this.lastLoginAt=n,this._initializeTime()}_initializeTime(){this.lastSignInTime=ws(this.lastLoginAt),this.creationTime=ws(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/async function Xo(t){var e;const n=t.auth,r=await t.getIdToken(),i=await Us(t,pS(n,{idToken:r}));Ee(i==null?void 0:i.users.length,n,"internal-error");const s=i.users[0];t._notifyReloadListener(s);const o=!((e=s.providerUserInfo)===null||e===void 0)&&e.length?wS(s.providerUserInfo):[],l=bS(t.providerData,o),u=t.isAnonymous,d=!(t.email&&s.passwordHash)&&!(l!=null&&l.length),f=u?d:!1,p={uid:s.localId,displayName:s.displayName||null,photoURL:s.photoUrl||null,email:s.email||null,emailVerified:s.emailVerified||!1,phoneNumber:s.phoneNumber||null,tenantId:s.tenantId||null,providerData:l,metadata:new zm(s.createdAt,s.lastLoginAt),isAnonymous:f};Object.assign(t,p)}async function _S(t){const e=Yr(t);await Xo(e),await e.auth._persistUserIfCurrent(e),e.auth._notifyListenersIfCurrent(e)}function bS(t,e){return[...t.filter(r=>!e.some(i=>i.providerId===r.providerId)),...e]}function wS(t){return t.map(e=>{var{providerId:n}=e,r=fu(e,["providerId"]);return{providerId:n,uid:r.rawId||"",displayName:r.displayName||null,email:r.email||null,phoneNumber:r.phoneNumber||null,photoURL:r.photoUrl||null}})}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/async function ES(t,e){const n=await Ym(t,{},async()=>{const r=Ys({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:i,apiKey:s}=t.config,o=Km(t,i,"/v1/token",`key=${s}`),l=await t._getAdditionalHeaders();return l["Content-Type"]="application/x-www-form-urlencoded",qm.fetch()(o,{method:"POST",headers:l,body:r})});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class Hs{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){Ee(e.idToken,"internal-error"),Ee(typeof e.idToken!="undefined","internal-error"),Ee(typeof e.refreshToken!="undefined","internal-error");const n="expiresIn"in e&&typeof e.expiresIn!="undefined"?Number(e.expiresIn):gS(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,n)}async getToken(e,n=!1){return Ee(!this.accessToken||this.refreshToken,e,"user-token-expired"),!n&&this.accessToken&&!this.isExpired?this.accessToken:this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null}clearRefreshToken(){this.refreshToken=null}async refresh(e,n){const{accessToken:r,refreshToken:i,expiresIn:s}=await ES(e,n);this.updateTokensAndExpiration(r,i,Number(s))}updateTokensAndExpiration(e,n,r){this.refreshToken=n||null,this.accessToken=e||null,this.expirationTime=Date.now()+r*1e3}static fromJSON(e,n){const{refreshToken:r,accessToken:i,expirationTime:s}=n,o=new Hs;return r&&(Ee(typeof r=="string","internal-error",{appName:e}),o.refreshToken=r),i&&(Ee(typeof i=="string","internal-error",{appName:e}),o.accessToken=i),s&&(Ee(typeof s=="number","internal-error",{appName:e}),o.expirationTime=s),o}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new Hs,this.toJSON())}_performRefresh(){return Tn("not implemented")}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function Ln(t,e){Ee(typeof t=="string"||typeof t=="undefined","internal-error",{appName:e})}class Pr{constructor(e){var{uid:n,auth:r,stsTokenManager:i}=e,s=fu(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.emailVerified=!1,this.isAnonymous=!1,this.tenantId=null,this.providerData=[],this.proactiveRefresh=new yS(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=r,this.stsTokenManager=i,this.accessToken=i.accessToken,this.displayName=s.displayName||null,this.email=s.email||null,this.emailVerified=s.emailVerified||!1,this.phoneNumber=s.phoneNumber||null,this.photoURL=s.photoURL||null,this.isAnonymous=s.isAnonymous||!1,this.tenantId=s.tenantId||null,this.metadata=new zm(s.createdAt||void 0,s.lastLoginAt||void 0)}async getIdToken(e){const n=await Us(this,this.stsTokenManager.getToken(this.auth,e));return Ee(n,this.auth,"internal-error"),this.accessToken!==n&&(this.accessToken=n,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),n}getIdTokenResult(e){return mS(this,e)}reload(){return _S(this)}_assign(e){this!==e&&(Ee(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(n=>Object.assign({},n)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){return new Pr(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}))}_onReload(e){Ee(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,n=!1){let r=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),r=!0),n&&await Xo(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){const e=await this.getIdToken();return await Us(this,hS(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>Object.assign({},e)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,n){var r,i,s,o,l,u,d,f;const p=(r=n.displayName)!==null&&r!==void 0?r:void 0,v=(i=n.email)!==null&&i!==void 0?i:void 0,m=(s=n.phoneNumber)!==null&&s!==void 0?s:void 0,S=(o=n.photoURL)!==null&&o!==void 0?o:void 0,T=(l=n.tenantId)!==null&&l!==void 0?l:void 0,A=(u=n._redirectEventId)!==null&&u!==void 0?u:void 0,O=(d=n.createdAt)!==null&&d!==void 0?d:void 0,k=(f=n.lastLoginAt)!==null&&f!==void 0?f:void 0,{uid:C,emailVerified:D,isAnonymous:B,providerData:j,stsTokenManager:b}=n;Ee(C&&b,e,"internal-error");const x=Hs.fromJSON(this.name,b);Ee(typeof C=="string",e,"internal-error"),Ln(p,e.name),Ln(v,e.name),Ee(typeof D=="boolean",e,"internal-error"),Ee(typeof B=="boolean",e,"internal-error"),Ln(m,e.name),Ln(S,e.name),Ln(T,e.name),Ln(A,e.name),Ln(O,e.name),Ln(k,e.name);const R=new Pr({uid:C,auth:e,email:v,emailVerified:D,displayName:p,isAnonymous:B,photoURL:S,phoneNumber:m,tenantId:T,stsTokenManager:x,createdAt:O,lastLoginAt:k});return j&&Array.isArray(j)&&(R.providerData=j.map(H=>Object.assign({},H))),A&&(R._redirectEventId=A),R}static async _fromIdTokenResponse(e,n,r=!1){const i=new Hs;i.updateFromServerResponse(n);const s=new Pr({uid:n.localId,auth:e,stsTokenManager:i,isAnonymous:r});return await Xo(s),s}}/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class Gm{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,n){this.storage[e]=n}async _get(e){const n=this.storage[e];return n===void 0?null:n}async _remove(e){delete this.storage[e]}_addListener(e,n){}_removeListener(e,n){}}Gm.type="NONE";const xf=Gm;/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function Do(t,e,n){return`firebase:${t}:${e}:${n}`}class yi{constructor(e,n,r){this.persistence=e,this.auth=n,this.userKey=r;const{config:i,name:s}=this.auth;this.fullUserKey=Do(this.userKey,i.apiKey,s),this.fullPersistenceKey=Do("persistence",i.apiKey,s),this.boundEventHandler=n._onStorageEvent.bind(n),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);return e?Pr._fromJSON(this.auth,e):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const n=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=e,n)return this.setCurrentUser(n)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,n,r="authUser"){if(!n.length)return new yi(Cn(xf),e,r);const i=(await Promise.all(n.map(async d=>{if(await d._isAvailable())return d}))).filter(d=>d);let s=i[0]||Cn(xf);const o=Do(r,e.config.apiKey,e.name);let l=null;for(const d of n)try{const f=await d._get(o);if(f){const p=Pr._fromJSON(e,f);d!==s&&(l=p),s=d;break}}catch{}const u=i.filter(d=>d._shouldAllowMigration);return!s._shouldAllowMigration||!u.length?new yi(s,e,r):(s=u[0],l&&await s._set(o,l.toJSON()),await Promise.all(n.map(async d=>{if(d!==s)try{await d._remove(o)}catch{}})),new yi(s,e,r))}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function Mf(t){const e=t.toLowerCase();if(e.includes("opera/")||e.includes("opr/")||e.includes("opios/"))return"Opera";if(Qm(e))return"IEMobile";if(e.includes("msie")||e.includes("trident/"))return"IE";if(e.includes("edge/"))return"Edge";if(Xm(e))return"Firefox";if(e.includes("silk/"))return"Silk";if(eg(e))return"Blackberry";if(tg(e))return"Webos";if(gu(e))return"Safari";if((e.includes("chrome/")||Jm(e))&&!e.includes("edge/"))return"Chrome";if(Zm(e))return"Android";{const n=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,r=t.match(n);if((r==null?void 0:r.length)===2)return r[1]}return"Other"}function Xm(t=pt()){return/firefox\//i.test(t)}function gu(t=pt()){const e=t.toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function Jm(t=pt()){return/crios\//i.test(t)}function Qm(t=pt()){return/iemobile/i.test(t)}function Zm(t=pt()){return/android/i.test(t)}function eg(t=pt()){return/blackberry/i.test(t)}function tg(t=pt()){return/webos/i.test(t)}function ka(t=pt()){return/iphone|ipad|ipod/i.test(t)}function TS(t=pt()){var e;return ka(t)&&!!(!((e=window.navigator)===null||e===void 0)&&e.standalone)}function CS(){return lC()&&document.documentMode===10}function ng(t=pt()){return ka(t)||Zm(t)||tg(t)||eg(t)||/windows phone/i.test(t)||Qm(t)}function SS(){try{return!!(window&&window!==window.top)}catch{return!1}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function rg(t,e=[]){let n;switch(t){case"Browser":n=Mf(pt());break;case"Worker":n=`${Mf(pt())}-${t}`;break;default:n=t}const r=e.length?e.join(","):"FirebaseCore-web";return`${n}/JsCore/${Aa}/${r}`}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class AS{constructor(e,n){this.app=e,this.config=n,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Rf(this),this.idTokenSubscription=new Rf(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=Wm,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=n.sdkClientVersion}_initializeWithPersistence(e,n){return n&&(this._popupRedirectResolver=Cn(n)),this._initializationPromise=this.queue(async()=>{var r,i;if(!this._deleted&&(this.persistenceManager=await yi.create(this,e),!this._deleted)){if(!((r=this._popupRedirectResolver)===null||r===void 0)&&r._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(n),this.lastNotifiedUid=((i=this.currentUser)===null||i===void 0?void 0:i.uid)||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!e)){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),await this.currentUser.getIdToken();return}await this._updateCurrentUser(e)}}async initializeCurrentUser(e){var n;let r=await this.assertedPersistence.getCurrentUser();if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const i=(n=this.redirectUser)===null||n===void 0?void 0:n._redirectEventId,s=r==null?void 0:r._redirectEventId,o=await this.tryRedirectSignIn(e);(!i||i===s)&&(o==null?void 0:o.user)&&(r=o.user)}return r?r._redirectEventId?(Ee(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===r._redirectEventId?this.directlySetCurrentUser(r):this.reloadAndSetCurrentUserOrClear(r)):this.reloadAndSetCurrentUserOrClear(r):this.directlySetCurrentUser(null)}async tryRedirectSignIn(e){let n=null;try{n=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch{await this._setRedirectUser(null)}return n}async reloadAndSetCurrentUserOrClear(e){try{await Xo(e)}catch(n){if(n.code!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=cS()}async _delete(){this._deleted=!0}async updateCurrentUser(e){const n=e?Yr(e):null;return n&&Ee(n.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(n&&n._clone(this))}async _updateCurrentUser(e){if(!this._deleted)return e&&Ee(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null)}setPersistence(e){return this.queue(async()=>{await this.assertedPersistence.setPersistence(Cn(e))})}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new qs("auth","Firebase",e())}onAuthStateChanged(e,n,r){return this.registerStateListener(this.authStateSubscription,e,n,r)}onIdTokenChanged(e,n,r){return this.registerStateListener(this.idTokenSubscription,e,n,r)}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(e=this._currentUser)===null||e===void 0?void 0:e.toJSON()}}async _setRedirectUser(e,n){const r=await this.getOrInitRedirectPersistenceManager(n);return e===null?r.removeCurrentUser():r.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const n=e&&Cn(e)||this._popupRedirectResolver;Ee(n,this,"argument-error"),this.redirectPersistenceManager=await yi.create(this,[Cn(n._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var n,r;return this._isInitialized&&await this.queue(async()=>{}),((n=this._currentUser)===null||n===void 0?void 0:n._redirectEventId)===e?this._currentUser:((r=this.redirectUser)===null||r===void 0?void 0:r._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,n;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const r=(n=(e=this.currentUser)===null||e===void 0?void 0:e.uid)!==null&&n!==void 0?n:null;this.lastNotifiedUid!==r&&(this.lastNotifiedUid=r,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,n,r,i){if(this._deleted)return()=>{};const s=typeof n=="function"?n:n.next.bind(n),o=this._isInitialized?Promise.resolve():this._initializationPromise;return Ee(o,this,"internal-error"),o.then(()=>s(this.currentUser)),typeof n=="function"?e.addObserver(n,r,i):e.addObserver(n)}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&(this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh()),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return Ee(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=rg(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){const e={["X-Client-Version"]:this.clientVersion};return this.app.options.appId&&(e["X-Firebase-gmpid"]=this.app.options.appId),e}}function vu(t){return Yr(t)}class Rf{constructor(e){this.auth=e,this.observer=null,this.addObserver=hC(n=>this.observer=n)}get next(){return Ee(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class yu{constructor(e,n){this.providerId=e,this.signInMethod=n}toJSON(){return Tn("not implemented")}_getIdTokenResponse(e){return Tn("not implemented")}_linkToIdToken(e,n){return Tn("not implemented")}_getReauthenticationResolver(e){return Tn("not implemented")}}async function OS(t,e){return zs(t,"POST","/v1/accounts:update",e)}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/async function IS(t,e){return Ia(t,"POST","/v1/accounts:signInWithPassword",Oa(t,e))}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/async function kS(t,e){return Ia(t,"POST","/v1/accounts:signInWithEmailLink",Oa(t,e))}async function DS(t,e){return Ia(t,"POST","/v1/accounts:signInWithEmailLink",Oa(t,e))}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class Fs extends yu{constructor(e,n,r,i=null){super("password",r);this._email=e,this._password=n,this._tenantId=i}static _fromEmailAndPassword(e,n){return new Fs(e,n,"password")}static _fromEmailAndCode(e,n,r=null){return new Fs(e,n,"emailLink",r)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){const n=typeof e=="string"?JSON.parse(e):e;if((n==null?void 0:n.email)&&(n==null?void 0:n.password)){if(n.signInMethod==="password")return this._fromEmailAndPassword(n.email,n.password);if(n.signInMethod==="emailLink")return this._fromEmailAndCode(n.email,n.password,n.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case"password":return IS(e,{returnSecureToken:!0,email:this._email,password:this._password});case"emailLink":return kS(e,{email:this._email,oobCode:this._password});default:zt(e,"internal-error")}}async _linkToIdToken(e,n){switch(this.signInMethod){case"password":return OS(e,{idToken:n,returnSecureToken:!0,email:this._email,password:this._password});case"emailLink":return DS(e,{idToken:n,email:this._email,oobCode:this._password});default:zt(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/async function _i(t,e){return Ia(t,"POST","/v1/accounts:signInWithIdp",Oa(t,e))}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const PS="http://localhost";class $r extends yu{constructor(){super(...arguments);this.pendingToken=null}static _fromParams(e){const n=new $r(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(n.idToken=e.idToken),e.accessToken&&(n.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(n.nonce=e.nonce),e.pendingToken&&(n.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(n.accessToken=e.oauthToken,n.secret=e.oauthTokenSecret):zt("argument-error"),n}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const n=typeof e=="string"?JSON.parse(e):e,{providerId:r,signInMethod:i}=n,s=fu(n,["providerId","signInMethod"]);if(!r||!i)return null;const o=new $r(r,i);return o.idToken=s.idToken||void 0,o.accessToken=s.accessToken||void 0,o.secret=s.secret,o.nonce=s.nonce,o.pendingToken=s.pendingToken||null,o}_getIdTokenResponse(e){const n=this.buildRequest();return _i(e,n)}_linkToIdToken(e,n){const r=this.buildRequest();return r.idToken=n,_i(e,r)}_getReauthenticationResolver(e){const n=this.buildRequest();return n.autoCreate=!1,_i(e,n)}buildRequest(){const e={requestUri:PS,returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const n={};this.idToken&&(n.id_token=this.idToken),this.accessToken&&(n.access_token=this.accessToken),this.secret&&(n.oauth_token_secret=this.secret),n.providerId=this.providerId,this.nonce&&!this.pendingToken&&(n.nonce=this.nonce),e.postBody=Ys(n)}return e}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function NS(t){switch(t){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}function xS(t){const e=ds(fs(t)).link,n=e?ds(fs(e)).deep_link_id:null,r=ds(fs(t)).deep_link_id;return(r?ds(fs(r)).link:null)||r||n||e||t}class _u{constructor(e){var n,r,i,s,o,l;const u=ds(fs(e)),d=(n=u.apiKey)!==null&&n!==void 0?n:null,f=(r=u.oobCode)!==null&&r!==void 0?r:null,p=NS((i=u.mode)!==null&&i!==void 0?i:null);Ee(d&&f&&p,"argument-error"),this.apiKey=d,this.operation=p,this.code=f,this.continueUrl=(s=u.continueUrl)!==null&&s!==void 0?s:null,this.languageCode=(o=u.languageCode)!==null&&o!==void 0?o:null,this.tenantId=(l=u.tenantId)!==null&&l!==void 0?l:null}static parseLink(e){const n=xS(e);try{return new _u(n)}catch{return null}}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class ji{constructor(){this.providerId=ji.PROVIDER_ID}static credential(e,n){return Fs._fromEmailAndPassword(e,n)}static credentialWithLink(e,n){const r=_u.parseLink(n);return Ee(r,"argument-error"),Fs._fromEmailAndCode(e,r.code,r.tenantId)}}ji.PROVIDER_ID="password";ji.EMAIL_PASSWORD_SIGN_IN_METHOD="password";ji.EMAIL_LINK_SIGN_IN_METHOD="emailLink";/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class ig{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class Gs extends ig{constructor(){super(...arguments);this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class Yn extends Gs{constructor(){super("facebook.com")}static credential(e){return $r._fromParams({providerId:Yn.PROVIDER_ID,signInMethod:Yn.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Yn.credentialFromTaggedObject(e)}static credentialFromError(e){return Yn.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return Yn.credential(e.oauthAccessToken)}catch{return null}}}Yn.FACEBOOK_SIGN_IN_METHOD="facebook.com";Yn.PROVIDER_ID="facebook.com";/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class Kn extends Gs{constructor(){super("google.com");this.addScope("profile")}static credential(e,n){return $r._fromParams({providerId:Kn.PROVIDER_ID,signInMethod:Kn.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:n})}static credentialFromResult(e){return Kn.credentialFromTaggedObject(e)}static credentialFromError(e){return Kn.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:n,oauthAccessToken:r}=e;if(!n&&!r)return null;try{return Kn.credential(n,r)}catch{return null}}}Kn.GOOGLE_SIGN_IN_METHOD="google.com";Kn.PROVIDER_ID="google.com";/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class zn extends Gs{constructor(){super("github.com")}static credential(e){return $r._fromParams({providerId:zn.PROVIDER_ID,signInMethod:zn.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return zn.credentialFromTaggedObject(e)}static credentialFromError(e){return zn.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return zn.credential(e.oauthAccessToken)}catch{return null}}}zn.GITHUB_SIGN_IN_METHOD="github.com";zn.PROVIDER_ID="github.com";/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class Gn extends Gs{constructor(){super("twitter.com")}static credential(e,n){return $r._fromParams({providerId:Gn.PROVIDER_ID,signInMethod:Gn.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:n})}static credentialFromResult(e){return Gn.credentialFromTaggedObject(e)}static credentialFromError(e){return Gn.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=e;if(!n||!r)return null;try{return Gn.credential(n,r)}catch{return null}}}Gn.TWITTER_SIGN_IN_METHOD="twitter.com";Gn.PROVIDER_ID="twitter.com";/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class ki{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,n,r,i=!1){const s=await Pr._fromIdTokenResponse(e,r,i),o=Lf(r);return new ki({user:s,providerId:o,_tokenResponse:r,operationType:n})}static async _forOperation(e,n,r){await e._updateTokensIfNecessary(r,!0);const i=Lf(r);return new ki({user:e,providerId:i,_tokenResponse:r,operationType:n})}}function Lf(t){return t.providerId?t.providerId:"phoneNumber"in t?"phone":null}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class Jo extends Vi{constructor(e,n,r,i){var s;super(n.code,n.message);this.operationType=r,this.user=i,Object.setPrototypeOf(this,Jo.prototype),this.customData={appName:e.name,tenantId:(s=e.tenantId)!==null&&s!==void 0?s:void 0,_serverResponse:n.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(e,n,r,i){return new Jo(e,n,r,i)}}function sg(t,e,n,r){return(e==="reauthenticate"?n._getReauthenticationResolver(t):n._getIdTokenResponse(t)).catch(s=>{throw s.code==="auth/multi-factor-auth-required"?Jo._fromErrorAndOperation(t,s,e,r):s})}async function MS(t,e,n=!1){const r=await Us(t,e._linkToIdToken(t.auth,await t.getIdToken()),n);return ki._forOperation(t,"link",r)}/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/async function RS(t,e,n=!1){const{auth:r}=t,i="reauthenticate";try{const s=await Us(t,sg(r,i,e,t),n);Ee(s.idToken,r,"internal-error");const o=mu(s.idToken);Ee(o,r,"internal-error");const{sub:l}=o;return Ee(t.uid===l,r,"user-mismatch"),ki._forOperation(t,i,s)}catch(s){throw(s==null?void 0:s.code)==="auth/user-not-found"&&zt(r,"user-mismatch"),s}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/async function og(t,e,n=!1){const r="signIn",i=await sg(t,r,e),s=await ki._fromIdTokenResponse(t,r,i);return n||await t._updateCurrentUser(s.user),s}async function LS(t,e){return og(vu(t),e)}function kx(t,e,n){return LS(Yr(t),ji.credential(e,n))}function Dx(t,e,n,r){return Yr(t).onAuthStateChanged(e,n,r)}function Px(t){return Yr(t).signOut()}const Qo="__sak";/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class ag{constructor(e,n){this.storageRetriever=e,this.type=n}_isAvailable(){try{return this.storage?(this.storage.setItem(Qo,"1"),this.storage.removeItem(Qo),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(e,n){return this.storage.setItem(e,JSON.stringify(n)),Promise.resolve()}_get(e){const n=this.storage.getItem(e);return Promise.resolve(n?JSON.parse(n):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function $S(){const t=pt();return gu(t)||ka(t)}const BS=1e3,US=10;class lg extends ag{constructor(){super(()=>window.localStorage,"LOCAL");this.boundEventHandler=(e,n)=>this.onStorageEvent(e,n),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=$S()&&SS(),this.fallbackToPolling=ng(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const n of Object.keys(this.listeners)){const r=this.storage.getItem(n),i=this.localCache[n];r!==i&&e(n,i,r)}}onStorageEvent(e,n=!1){if(!e.key){this.forAllChangedKeys((o,l,u)=>{this.notifyListeners(o,u)});return}const r=e.key;if(n?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const o=this.storage.getItem(r);if(e.newValue!==o)e.newValue!==null?this.storage.setItem(r,e.newValue):this.storage.removeItem(r);else if(this.localCache[r]===e.newValue&&!n)return}const i=()=>{const o=this.storage.getItem(r);!n&&this.localCache[r]===o||this.notifyListeners(r,o)},s=this.storage.getItem(r);CS()&&s!==e.newValue&&e.newValue!==e.oldValue?setTimeout(i,US):i()}notifyListeners(e,n){this.localCache[e]=n;const r=this.listeners[e];if(r)for(const i of Array.from(r))i(n&&JSON.parse(n))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,n,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:n,newValue:r}),!0)})},BS)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,n){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(n)}_removeListener(e,n){this.listeners[e]&&(this.listeners[e].delete(n),this.listeners[e].size===0&&delete this.listeners[e]),Object.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(e,n){await super._set(e,n),this.localCache[e]=JSON.stringify(n)}async _get(e){const n=await super._get(e);return this.localCache[e]=JSON.stringify(n),n}async _remove(e){await super._remove(e),delete this.localCache[e]}}lg.type="LOCAL";const HS=lg;/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class cg extends ag{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,n){}_removeListener(e,n){}}cg.type="SESSION";const ug=cg;/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function FS(t){return Promise.all(t.map(async e=>{try{const n=await e;return{fulfilled:!0,value:n}}catch(n){return{fulfilled:!1,reason:n}}}))}/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class Da{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const n=this.receivers.find(i=>i.isListeningto(e));if(n)return n;const r=new Da(e);return this.receivers.push(r),r}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const n=e,{eventId:r,eventType:i,data:s}=n.data,o=this.handlersMap[i];if(!(o!=null&&o.size))return;n.ports[0].postMessage({status:"ack",eventId:r,eventType:i});const l=Array.from(o).map(async d=>d(n.origin,s)),u=await FS(l);n.ports[0].postMessage({status:"done",eventId:r,eventType:i,response:u})}_subscribe(e,n){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(n)}_unsubscribe(e,n){this.handlersMap[e]&&n&&this.handlersMap[e].delete(n),(!n||this.handlersMap[e].size===0)&&delete this.handlersMap[e],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}Da.receivers=[];/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function bu(t="",e=10){let n="";for(let r=0;r<e;r++)n+=Math.floor(Math.random()*10);return t+n}/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class VS{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,n,r=50){const i=typeof MessageChannel!="undefined"?new MessageChannel:null;if(!i)throw new Error("connection_unavailable");let s,o;return new Promise((l,u)=>{const d=bu("",20);i.port1.start();const f=setTimeout(()=>{u(new Error("unsupported_event"))},r);o={messageChannel:i,onMessage(p){const v=p;if(v.data.eventId===d)switch(v.data.status){case"ack":clearTimeout(f),s=setTimeout(()=>{u(new Error("timeout"))},3e3);break;case"done":clearTimeout(s),l(v.data.response);break;default:clearTimeout(f),clearTimeout(s),u(new Error("invalid_response"));break}}},this.handlers.add(o),i.port1.addEventListener("message",o.onMessage),this.target.postMessage({eventType:e,eventId:d,data:n},[i.port2])}).finally(()=>{o&&this.removeMessageHandler(o)})}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function hn(){return window}function jS(t){hn().location.href=t}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function dg(){return typeof hn().WorkerGlobalScope!="undefined"&&typeof hn().importScripts=="function"}async function WS(){if(!(navigator!=null&&navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function qS(){var t;return((t=navigator==null?void 0:navigator.serviceWorker)===null||t===void 0?void 0:t.controller)||null}function YS(){return dg()?self:null}/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const fg="firebaseLocalStorageDb",KS=1,Zo="firebaseLocalStorage",hg="fbase_key";class Xs{constructor(e){this.request=e}toPromise(){return new Promise((e,n)=>{this.request.addEventListener("success",()=>{e(this.request.result)}),this.request.addEventListener("error",()=>{n(this.request.error)})})}}function Pa(t,e){return t.transaction([Zo],e?"readwrite":"readonly").objectStore(Zo)}function zS(){const t=indexedDB.deleteDatabase(fg);return new Xs(t).toPromise()}function yc(){const t=indexedDB.open(fg,KS);return new Promise((e,n)=>{t.addEventListener("error",()=>{n(t.error)}),t.addEventListener("upgradeneeded",()=>{const r=t.result;try{r.createObjectStore(Zo,{keyPath:hg})}catch(i){n(i)}}),t.addEventListener("success",async()=>{const r=t.result;r.objectStoreNames.contains(Zo)?e(r):(r.close(),await zS(),e(await yc()))})})}async function $f(t,e,n){const r=Pa(t,!0).put({[hg]:e,value:n});return new Xs(r).toPromise()}async function GS(t,e){const n=Pa(t,!1).get(e),r=await new Xs(n).toPromise();return r===void 0?null:r.value}function Bf(t,e){const n=Pa(t,!0).delete(e);return new Xs(n).toPromise()}const XS=800,JS=3;class pg{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db?this.db:(this.db=await yc(),this.db)}async _withRetries(e){let n=0;for(;;)try{const r=await this._openDb();return await e(r)}catch(r){if(n++>JS)throw r;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return dg()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=Da._getInstance(YS()),this.receiver._subscribe("keyChanged",async(e,n)=>({keyProcessed:(await this._poll()).includes(n.key)})),this.receiver._subscribe("ping",async(e,n)=>["keyChanged"])}async initializeSender(){var e,n;if(this.activeServiceWorker=await WS(),!this.activeServiceWorker)return;this.sender=new VS(this.activeServiceWorker);const r=await this.sender._send("ping",{},800);!r||((e=r[0])===null||e===void 0?void 0:e.fulfilled)&&((n=r[0])===null||n===void 0?void 0:n.value.includes("keyChanged"))&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){if(!(!this.sender||!this.activeServiceWorker||qS()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;const e=await yc();return await $f(e,Qo,"1"),await Bf(e,Qo),!0}catch{}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,n){return this._withPendingWrite(async()=>(await this._withRetries(r=>$f(r,e,n)),this.localCache[e]=n,this.notifyServiceWorker(e)))}async _get(e){const n=await this._withRetries(r=>GS(r,e));return this.localCache[e]=n,n}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(n=>Bf(n,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){const e=await this._withRetries(i=>{const s=Pa(i,!1).getAll();return new Xs(s).toPromise()});if(!e)return[];if(this.pendingWrites!==0)return[];const n=[],r=new Set;for(const{fbase_key:i,value:s}of e)r.add(i),JSON.stringify(this.localCache[i])!==JSON.stringify(s)&&(this.notifyListeners(i,s),n.push(i));for(const i of Object.keys(this.localCache))this.localCache[i]&&!r.has(i)&&(this.notifyListeners(i,null),n.push(i));return n}notifyListeners(e,n){this.localCache[e]=n;const r=this.listeners[e];if(r)for(const i of Array.from(r))i(n)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),XS)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,n){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(n)}_removeListener(e,n){this.listeners[e]&&(this.listeners[e].delete(n),this.listeners[e].size===0&&delete this.listeners[e]),Object.keys(this.listeners).length===0&&this.stopPolling()}}pg.type="LOCAL";const QS=pg;/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function ZS(){var t,e;return(e=(t=document.getElementsByTagName("head"))===null||t===void 0?void 0:t[0])!==null&&e!==void 0?e:document}function eA(t){return new Promise((e,n)=>{const r=document.createElement("script");r.setAttribute("src",t),r.onload=e,r.onerror=i=>{const s=fn("internal-error");s.customData=i,n(s)},r.type="text/javascript",r.charset="UTF-8",ZS().appendChild(r)})}function tA(t){return`__${t}${Math.floor(Math.random()*1e6)}`}new Ks(3e4,6e4);/**
|
|
* @license
|
|
* Copyright 2021 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function nA(t,e){return e?Cn(e):(Ee(t._popupRedirectResolver,t,"argument-error"),t._popupRedirectResolver)}/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class wu extends yu{constructor(e){super("custom","custom");this.params=e}_getIdTokenResponse(e){return _i(e,this._buildIdpRequest())}_linkToIdToken(e,n){return _i(e,this._buildIdpRequest(n))}_getReauthenticationResolver(e){return _i(e,this._buildIdpRequest())}_buildIdpRequest(e){const n={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(n.idToken=e),n}}function rA(t){return og(t.auth,new wu(t),t.bypassAuthState)}function iA(t){const{auth:e,user:n}=t;return Ee(n,e,"internal-error"),RS(n,new wu(t),t.bypassAuthState)}async function sA(t){const{auth:e,user:n}=t;return Ee(n,e,"internal-error"),MS(n,new wu(t),t.bypassAuthState)}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class mg{constructor(e,n,r,i,s=!1){this.auth=e,this.resolver=r,this.user=i,this.bypassAuthState=s,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(n)?n:[n]}execute(){return new Promise(async(e,n)=>{this.pendingPromise={resolve:e,reject:n};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(r){this.reject(r)}})}async onAuthEvent(e){const{urlResponse:n,sessionId:r,postBody:i,tenantId:s,error:o,type:l}=e;if(o){this.reject(o);return}const u={auth:this.auth,requestUri:n,sessionId:r,tenantId:s||void 0,postBody:i||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(l)(u))}catch(d){this.reject(d)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return rA;case"linkViaPopup":case"linkViaRedirect":return sA;case"reauthViaPopup":case"reauthViaRedirect":return iA;default:zt(this.auth,"internal-error")}}resolve(e){In(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){In(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const oA=new Ks(2e3,1e4);class hi extends mg{constructor(e,n,r,i,s){super(e,n,i,s);this.provider=r,this.authWindow=null,this.pollId=null,hi.currentPopupAction&&hi.currentPopupAction.cancel(),hi.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return Ee(e,this.auth,"internal-error"),e}async onExecution(){In(this.filter.length===1,"Popup operations only handle one event");const e=bu();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch(n=>{this.reject(n)}),this.resolver._isIframeWebStorageSupported(this.auth,n=>{n||this.reject(fn(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var e;return((e=this.authWindow)===null||e===void 0?void 0:e.associatedEvent)||null}cancel(){this.reject(fn(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,hi.currentPopupAction=null}pollUserCancellation(){const e=()=>{var n,r;if(!((r=(n=this.authWindow)===null||n===void 0?void 0:n.window)===null||r===void 0)&&r.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(fn(this.auth,"popup-closed-by-user"))},2e3);return}this.pollId=window.setTimeout(e,oA.get())};e()}}hi.currentPopupAction=null;/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const aA="pendingRedirect",yl=new Map;class lA extends mg{constructor(e,n,r=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],n,void 0,r);this.eventId=null}async execute(){let e=yl.get(this.auth._key());if(!e){try{const r=await cA(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(r)}catch(n){e=()=>Promise.reject(n)}yl.set(this.auth._key(),e)}return this.bypassAuthState||yl.set(this.auth._key(),()=>Promise.resolve(null)),e()}async onAuthEvent(e){if(e.type==="signInViaRedirect")return super.onAuthEvent(e);if(e.type==="unknown"){this.resolve(null);return}if(e.eventId){const n=await this.auth._redirectUserForId(e.eventId);if(n)return this.user=n,super.onAuthEvent(e);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function cA(t,e){const n=dA(e),r=uA(t);if(!await r._isAvailable())return!1;const i=await r._get(n)==="true";return await r._remove(n),i}function uA(t){return Cn(t._redirectPersistence)}function dA(t){return Do(aA,t.config.apiKey,t.name)}async function fA(t,e,n=!1){const r=vu(t),i=nA(r,e),o=await new lA(r,i,n).execute();return o&&!n&&(delete o.user._redirectEventId,await r._persistUserIfCurrent(o.user),await r._setRedirectUser(null,e)),o}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const hA=10*60*1e3;class pA{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let n=!1;return this.consumers.forEach(r=>{this.isEventForConsumer(e,r)&&(n=!0,this.sendToConsumer(e,r),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!mA(e)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=e,n=!0)),n}sendToConsumer(e,n){var r;if(e.error&&!gg(e)){const i=((r=e.error.code)===null||r===void 0?void 0:r.split("auth/")[1])||"internal-error";n.onError(fn(this.auth,i))}else n.onAuthEvent(e)}isEventForConsumer(e,n){const r=n.eventId===null||!!e.eventId&&e.eventId===n.eventId;return n.filter.includes(e.type)&&r}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=hA&&this.cachedEventUids.clear(),this.cachedEventUids.has(Uf(e))}saveEventToCache(e){this.cachedEventUids.add(Uf(e)),this.lastProcessedEventTime=Date.now()}}function Uf(t){return[t.type,t.eventId,t.sessionId,t.tenantId].filter(e=>e).join("-")}function gg({type:t,error:e}){return t==="unknown"&&(e==null?void 0:e.code)==="auth/no-auth-event"}function mA(t){switch(t.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return gg(t);default:return!1}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/async function gA(t,e={}){return zs(t,"GET","/v1/projects",e)}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const vA=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,yA=/^https?/;async function _A(t){if(t.config.emulator)return;const{authorizedDomains:e}=await gA(t);for(const n of e)try{if(bA(n))return}catch{}zt(t,"unauthorized-domain")}function bA(t){const e=vc(),{protocol:n,hostname:r}=new URL(e);if(t.startsWith("chrome-extension://")){const o=new URL(t);return o.hostname===""&&r===""?n==="chrome-extension:"&&t.replace("chrome-extension://","")===e.replace("chrome-extension://",""):n==="chrome-extension:"&&o.hostname===r}if(!yA.test(n))return!1;if(vA.test(t))return r===t;const i=t.replace(/\./g,"\\.");return new RegExp("^(.+\\."+i+"|"+i+")$","i").test(r)}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const wA=new Ks(3e4,6e4);function Hf(){const t=hn().___jsl;if(t!=null&&t.H){for(const e of Object.keys(t.H))if(t.H[e].r=t.H[e].r||[],t.H[e].L=t.H[e].L||[],t.H[e].r=[...t.H[e].L],t.CP)for(let n=0;n<t.CP.length;n++)t.CP[n]=null}}function EA(t){return new Promise((e,n)=>{var r,i,s;function o(){Hf(),gapi.load("gapi.iframes",{callback:()=>{e(gapi.iframes.getContext())},ontimeout:()=>{Hf(),n(fn(t,"network-request-failed"))},timeout:wA.get()})}if(!((i=(r=hn().gapi)===null||r===void 0?void 0:r.iframes)===null||i===void 0)&&i.Iframe)e(gapi.iframes.getContext());else if(!((s=hn().gapi)===null||s===void 0)&&s.load)o();else{const l=tA("iframefcb");return hn()[l]=()=>{gapi.load?o():n(fn(t,"network-request-failed"))},eA(`https://apis.google.com/js/api.js?onload=${l}`).catch(u=>n(u))}}).catch(e=>{throw Po=null,e})}let Po=null;function TA(t){return Po=Po||EA(t),Po}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const CA=new Ks(5e3,15e3),SA="__/auth/iframe",AA="emulator/auth/iframe",OA={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},IA=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function kA(t){const e=t.config;Ee(e.authDomain,t,"auth-domain-config-required");const n=e.emulator?pu(e,AA):`https://${t.config.authDomain}/${SA}`,r={apiKey:e.apiKey,appName:t.name,v:Aa},i=IA.get(t.config.apiHost);i&&(r.eid=i);const s=t._getFrameworks();return s.length&&(r.fw=s.join(",")),`${n}?${Ys(r).slice(1)}`}async function DA(t){const e=await TA(t),n=hn().gapi;return Ee(n,t,"internal-error"),e.open({where:document.body,url:kA(t),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:OA,dontclear:!0},r=>new Promise(async(i,s)=>{await r.restyle({setHideOnLeave:!1});const o=fn(t,"network-request-failed"),l=hn().setTimeout(()=>{s(o)},CA.get());function u(){hn().clearTimeout(l),i(r)}r.ping(u).then(u,()=>{s(o)})}))}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const PA={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},NA=500,xA=600,MA="_blank",RA="http://localhost";class Ff{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function LA(t,e,n,r=NA,i=xA){const s=Math.max((window.screen.availHeight-i)/2,0).toString(),o=Math.max((window.screen.availWidth-r)/2,0).toString();let l="";const u=Object.assign(Object.assign({},PA),{width:r.toString(),height:i.toString(),top:s,left:o}),d=pt().toLowerCase();n&&(l=Jm(d)?MA:n),Xm(d)&&(e=e||RA,u.scrollbars="yes");const f=Object.entries(u).reduce((v,[m,S])=>`${v}${m}=${S},`,"");if(TS(d)&&l!=="_self")return $A(e||"",l),new Ff(null);const p=window.open(e||"",l,f);Ee(p,t,"popup-blocked");try{p.focus()}catch{}return new Ff(p)}function $A(t,e){const n=document.createElement("a");n.href=t,n.target=e;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}/**
|
|
* @license
|
|
* Copyright 2021 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const BA="__/auth/handler",UA="emulator/auth/handler";function Vf(t,e,n,r,i,s){Ee(t.config.authDomain,t,"auth-domain-config-required"),Ee(t.config.apiKey,t,"invalid-api-key");const o={apiKey:t.config.apiKey,appName:t.name,authType:n,redirectUrl:r,v:Aa,eventId:i};if(e instanceof ig){e.setDefaultLanguage(t.languageCode),o.providerId=e.providerId||"",fC(e.getCustomParameters())||(o.customParameters=JSON.stringify(e.getCustomParameters()));for(const[u,d]of Object.entries(s||{}))o[u]=d}if(e instanceof Gs){const u=e.getScopes().filter(d=>d!=="");u.length>0&&(o.scopes=u.join(","))}t.tenantId&&(o.tid=t.tenantId);const l=o;for(const u of Object.keys(l))l[u]===void 0&&delete l[u];return`${HA(t)}?${Ys(l).slice(1)}`}function HA({config:t}){return t.emulator?pu(t,UA):`https://${t.authDomain}/${BA}`}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const _l="webStorageSupport";class FA{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=ug,this._completeRedirectFn=fA}async _openPopup(e,n,r,i){var s;In((s=this.eventManagers[e._key()])===null||s===void 0?void 0:s.manager,"_initialize() not called before _openPopup()");const o=Vf(e,n,r,vc(),i);return LA(e,o,bu())}async _openRedirect(e,n,r,i){return await this._originValidation(e),jS(Vf(e,n,r,vc(),i)),new Promise(()=>{})}_initialize(e){const n=e._key();if(this.eventManagers[n]){const{manager:i,promise:s}=this.eventManagers[n];return i?Promise.resolve(i):(In(s,"If manager is not set, promise should be"),s)}const r=this.initAndGetManager(e);return this.eventManagers[n]={promise:r},r.catch(()=>{delete this.eventManagers[n]}),r}async initAndGetManager(e){const n=await DA(e),r=new pA(e);return n.register("authEvent",i=>(Ee(i==null?void 0:i.authEvent,e,"invalid-auth-event"),{status:r.onEvent(i.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:r},this.iframes[e._key()]=n,r}_isIframeWebStorageSupported(e,n){this.iframes[e._key()].send(_l,{type:_l},i=>{var s;const o=(s=i==null?void 0:i[0])===null||s===void 0?void 0:s[_l];o!==void 0&&n(!!o),zt(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const n=e._key();return this.originValidationPromises[n]||(this.originValidationPromises[n]=_A(e)),this.originValidationPromises[n]}get _shouldInitProactively(){return ng()||gu()||ka()}}const VA=FA;var jf="@firebase/auth",Wf="0.19.5";/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class jA{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),((e=this.auth.currentUser)===null||e===void 0?void 0:e.uid)||null}async getToken(e){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(e)}:null}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const n=this.auth.onIdTokenChanged(r=>{var i;e(((i=r)===null||i===void 0?void 0:i.stsTokenManager.accessToken)||null)});this.internalListeners.set(e,n),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const n=this.internalListeners.get(e);!n||(this.internalListeners.delete(e),n(),this.updateProactiveRefresh())}assertAuthConfigured(){Ee(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function WA(t){switch(t){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}function qA(t){zo(new Bs("auth",(e,{options:n})=>{const r=e.getProvider("app").getImmediate(),{apiKey:i,authDomain:s}=r.options;return(o=>{Ee(i&&!i.includes(":"),"invalid-api-key",{appName:o.name}),Ee(!(s!=null&&s.includes(":")),"argument-error",{appName:o.name});const l={apiKey:i,authDomain:s,clientPlatform:t,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:rg(t)},u=new AS(o,l);return oS(u,n),u})(r)},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,n,r)=>{e.getProvider("auth-internal").initialize()})),zo(new Bs("auth-internal",e=>{const n=vu(e.getProvider("auth").getImmediate());return(r=>new jA(r))(n)},"PRIVATE").setInstantiationMode("EXPLICIT")),vi(jf,Wf,WA(t)),vi(jf,Wf,"esm2017")}/**
|
|
* @license
|
|
* Copyright 2021 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function Nx(t=tS()){const e=Vm(t,"auth");return e.isInitialized()?e.getImmediate():sS(t,{popupRedirectResolver:VA,persistence:[QS,HS,ug]})}qA("Browser");var YA="firebase",KA="9.6.3";/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/vi(YA,KA,"app");function me(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function _e(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function Ae(t){_e(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}function Nr(t,e){_e(2,arguments);var n=Ae(t),r=me(e);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function Js(t,e){_e(2,arguments);var n=Ae(t),r=me(e);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),s=new Date(n.getTime());s.setMonth(n.getMonth()+r+1,0);var o=s.getDate();return i>=o?s:(n.setFullYear(s.getFullYear(),s.getMonth(),i),n)}function zA(t,e){if(_e(2,arguments),!e||typeof e!="object")return new Date(NaN);var n=e.years?me(e.years):0,r=e.months?me(e.months):0,i=e.weeks?me(e.weeks):0,s=e.days?me(e.days):0,o=e.hours?me(e.hours):0,l=e.minutes?me(e.minutes):0,u=e.seconds?me(e.seconds):0,d=Ae(t),f=r||n?Js(d,r+n*12):d,p=s||i?Nr(f,s+i*7):f,v=l+o*60,m=u+v*60,S=m*1e3,T=new Date(p.getTime()+S);return T}function GA(t,e){_e(2,arguments);var n=Ae(t).getTime(),r=me(e);return new Date(n+r)}function vg(t,e){_e(1,arguments);var n=e||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,s=i==null?0:me(i),o=n.weekStartsOn==null?s:me(n.weekStartsOn);if(!(o>=0&&o<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=Ae(t),u=l.getDay(),d=(u<o?7:0)+u-o;return l.setDate(l.getDate()-d),l.setHours(0,0,0,0),l}function ea(t){return _e(1,arguments),vg(t,{weekStartsOn:1})}function XA(t){_e(1,arguments);var e=Ae(t),n=e.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var i=ea(r),s=new Date(0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);var o=ea(s);return e.getTime()>=i.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function JA(t){_e(1,arguments);var e=XA(t),n=new Date(0);n.setFullYear(e,0,4),n.setHours(0,0,0,0);var r=ea(n);return r}function yg(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function _g(t){return _e(1,arguments),t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Es(t){if(_e(1,arguments),!_g(t)&&typeof t!="number")return!1;var e=Ae(t);return!isNaN(Number(e))}var QA={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ZA=function(t,e,n){var r,i=QA[t];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},eO=ZA;function bl(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,r=t.formats[n]||t.formats[t.defaultWidth];return r}}var tO={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},nO={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},rO={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},iO={date:bl({formats:tO,defaultWidth:"full"}),time:bl({formats:nO,defaultWidth:"full"}),dateTime:bl({formats:rO,defaultWidth:"full"})},sO=iO,oO={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},aO=function(t,e,n,r){return oO[t]},lO=aO;function es(t){return function(e,n){var r=n||{},i=r.context?String(r.context):"standalone",s;if(i==="formatting"&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,l=r.width?String(r.width):o;s=t.formattingValues[l]||t.formattingValues[o]}else{var u=t.defaultWidth,d=r.width?String(r.width):t.defaultWidth;s=t.values[d]||t.values[u]}var f=t.argumentCallback?t.argumentCallback(e):e;return s[f]}}var cO={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},uO={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},dO={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},fO={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},hO={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},pO={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},mO=function(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},gO={ordinalNumber:mO,era:es({values:cO,defaultWidth:"wide"}),quarter:es({values:uO,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:es({values:dO,defaultWidth:"wide"}),day:es({values:fO,defaultWidth:"wide"}),dayPeriod:es({values:hO,defaultWidth:"wide",formattingValues:pO,defaultFormattingWidth:"wide"})},vO=gO;function ts(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],s=e.match(i);if(!s)return null;var o=s[0],l=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],u=Array.isArray(l)?_O(l,function(p){return p.test(o)}):yO(l,function(p){return p.test(o)}),d;d=t.valueCallback?t.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;var f=e.slice(o.length);return{value:d,rest:f}}}function yO(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function _O(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function bO(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(t.matchPattern);if(!r)return null;var i=r[0],s=e.match(t.parsePattern);if(!s)return null;var o=t.valueCallback?t.valueCallback(s[0]):s[0];o=n.valueCallback?n.valueCallback(o):o;var l=e.slice(i.length);return{value:o,rest:l}}}var wO=/^(\d+)(th|st|nd|rd)?/i,EO=/\d+/i,TO={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},CO={any:[/^b/i,/^(a|c)/i]},SO={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},AO={any:[/1/i,/2/i,/3/i,/4/i]},OO={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},IO={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},kO={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},DO={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},PO={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},NO={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},xO={ordinalNumber:bO({matchPattern:wO,parsePattern:EO,valueCallback:function(t){return parseInt(t,10)}}),era:ts({matchPatterns:TO,defaultMatchWidth:"wide",parsePatterns:CO,defaultParseWidth:"any"}),quarter:ts({matchPatterns:SO,defaultMatchWidth:"wide",parsePatterns:AO,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:ts({matchPatterns:OO,defaultMatchWidth:"wide",parsePatterns:IO,defaultParseWidth:"any"}),day:ts({matchPatterns:kO,defaultMatchWidth:"wide",parsePatterns:DO,defaultParseWidth:"any"}),dayPeriod:ts({matchPatterns:PO,defaultMatchWidth:"any",parsePatterns:NO,defaultParseWidth:"any"})},MO=xO,RO={code:"en-US",formatDistance:eO,formatLong:sO,formatRelative:lO,localize:vO,match:MO,options:{weekStartsOn:0,firstWeekContainsDate:1}},bg=RO;function wg(t,e){_e(2,arguments);var n=me(e);return GA(t,-n)}var LO=864e5;function $O(t){_e(1,arguments);var e=Ae(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=n-r;return Math.floor(i/LO)+1}function Di(t){_e(1,arguments);var e=1,n=Ae(t),r=n.getUTCDay(),i=(r<e?7:0)+r-e;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function Eg(t){_e(1,arguments);var e=Ae(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=Di(r),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var o=Di(s);return e.getTime()>=i.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function BO(t){_e(1,arguments);var e=Eg(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=Di(n);return r}var UO=6048e5;function Tg(t){_e(1,arguments);var e=Ae(t),n=Di(e).getTime()-BO(e).getTime();return Math.round(n/UO)+1}function xr(t,e){_e(1,arguments);var n=e||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,s=i==null?0:me(i),o=n.weekStartsOn==null?s:me(n.weekStartsOn);if(!(o>=0&&o<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=Ae(t),u=l.getUTCDay(),d=(u<o?7:0)+u-o;return l.setUTCDate(l.getUTCDate()-d),l.setUTCHours(0,0,0,0),l}function Eu(t,e){_e(1,arguments);var n=Ae(t),r=n.getUTCFullYear(),i=e||{},s=i.locale,o=s&&s.options&&s.options.firstWeekContainsDate,l=o==null?1:me(o),u=i.firstWeekContainsDate==null?l:me(i.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=new Date(0);d.setUTCFullYear(r+1,0,u),d.setUTCHours(0,0,0,0);var f=xr(d,e),p=new Date(0);p.setUTCFullYear(r,0,u),p.setUTCHours(0,0,0,0);var v=xr(p,e);return n.getTime()>=f.getTime()?r+1:n.getTime()>=v.getTime()?r:r-1}function HO(t,e){_e(1,arguments);var n=e||{},r=n.locale,i=r&&r.options&&r.options.firstWeekContainsDate,s=i==null?1:me(i),o=n.firstWeekContainsDate==null?s:me(n.firstWeekContainsDate),l=Eu(t,e),u=new Date(0);u.setUTCFullYear(l,0,o),u.setUTCHours(0,0,0,0);var d=xr(u,e);return d}var FO=6048e5;function Cg(t,e){_e(1,arguments);var n=Ae(t),r=xr(n,e).getTime()-HO(n,e).getTime();return Math.round(r/FO)+1}function je(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length<e;)r="0"+r;return n+r}var VO={y:function(t,e){var n=t.getUTCFullYear(),r=n>0?n:1-n;return je(e==="yy"?r%100:r,e.length)},M:function(t,e){var n=t.getUTCMonth();return e==="M"?String(n+1):je(n+1,2)},d:function(t,e){return je(t.getUTCDate(),e.length)},a:function(t,e){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,e){return je(t.getUTCHours()%12||12,e.length)},H:function(t,e){return je(t.getUTCHours(),e.length)},m:function(t,e){return je(t.getUTCMinutes(),e.length)},s:function(t,e){return je(t.getUTCSeconds(),e.length)},S:function(t,e){var n=e.length,r=t.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,n-3));return je(i,e.length)}},$n=VO,si={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},jO={G:function(t,e,n){var r=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){var r=t.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return $n.y(t,e)},Y:function(t,e,n,r){var i=Eu(t,r),s=i>0?i:1-i;if(e==="YY"){var o=s%100;return je(o,2)}return e==="Yo"?n.ordinalNumber(s,{unit:"year"}):je(s,e.length)},R:function(t,e){var n=Eg(t);return je(n,e.length)},u:function(t,e){var n=t.getUTCFullYear();return je(n,e.length)},Q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return je(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return je(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){var r=t.getUTCMonth();switch(e){case"M":case"MM":return $n.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return je(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){var i=Cg(t,r);return e==="wo"?n.ordinalNumber(i,{unit:"week"}):je(i,e.length)},I:function(t,e,n){var r=Tg(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):je(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):$n.d(t,e)},D:function(t,e,n){var r=$O(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):je(r,e.length)},E:function(t,e,n){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){var i=t.getUTCDay(),s=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return je(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){var i=t.getUTCDay(),s=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return je(s,e.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){var r=t.getUTCDay(),i=r===0?7:r;switch(e){case"i":return String(i);case"ii":return je(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){var r=t.getUTCHours(),i=r/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,n){var r=t.getUTCHours(),i;switch(r===12?i=si.noon:r===0?i=si.midnight:i=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,n){var r=t.getUTCHours(),i;switch(r>=17?i=si.evening:r>=12?i=si.afternoon:r>=4?i=si.morning:i=si.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){var r=t.getUTCHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return $n.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):$n.H(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):je(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):je(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):$n.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):$n.s(t,e)},S:function(t,e){return $n.S(t,e)},X:function(t,e,n,r){var i=r._originalDate||t,s=i.getTimezoneOffset();if(s===0)return"Z";switch(e){case"X":return Yf(s);case"XXXX":case"XX":return yr(s);case"XXXXX":case"XXX":default:return yr(s,":")}},x:function(t,e,n,r){var i=r._originalDate||t,s=i.getTimezoneOffset();switch(e){case"x":return Yf(s);case"xxxx":case"xx":return yr(s);case"xxxxx":case"xxx":default:return yr(s,":")}},O:function(t,e,n,r){var i=r._originalDate||t,s=i.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+qf(s,":");case"OOOO":default:return"GMT"+yr(s,":")}},z:function(t,e,n,r){var i=r._originalDate||t,s=i.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+qf(s,":");case"zzzz":default:return"GMT"+yr(s,":")}},t:function(t,e,n,r){var i=r._originalDate||t,s=Math.floor(i.getTime()/1e3);return je(s,e.length)},T:function(t,e,n,r){var i=r._originalDate||t,s=i.getTime();return je(s,e.length)}};function qf(t,e){var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),s=r%60;if(s===0)return n+String(i);var o=e||"";return n+String(i)+o+je(s,2)}function Yf(t,e){if(t%60===0){var n=t>0?"-":"+";return n+je(Math.abs(t)/60,2)}return yr(t,e)}function yr(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t),s=je(Math.floor(i/60),2),o=je(i%60,2);return r+s+n+o}var WO=jO;function Kf(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}}function Sg(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}}function qO(t,e){var n=t.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Kf(t,e);var s;switch(r){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;case"PPPP":default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",Kf(r,e)).replace("{{time}}",Sg(i,e))}var YO={p:Sg,P:qO},Ag=YO,KO=["D","DD"],zO=["YY","YYYY"];function Og(t){return KO.indexOf(t)!==-1}function Ig(t){return zO.indexOf(t)!==-1}function ta(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var GO=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,XO=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,JO=/^'([^]*?)'?$/,QO=/''/g,ZO=/[a-zA-Z]/;function zf(t,e,n){_e(2,arguments);var r=String(e),i=n||{},s=i.locale||bg,o=s.options&&s.options.firstWeekContainsDate,l=o==null?1:me(o),u=i.firstWeekContainsDate==null?l:me(i.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=s.options&&s.options.weekStartsOn,f=d==null?0:me(d),p=i.weekStartsOn==null?f:me(i.weekStartsOn);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!s.localize)throw new RangeError("locale must contain localize property");if(!s.formatLong)throw new RangeError("locale must contain formatLong property");var v=Ae(t);if(!Es(v))throw new RangeError("Invalid time value");var m=yg(v),S=wg(v,m),T={firstWeekContainsDate:u,weekStartsOn:p,locale:s,_originalDate:v},A=r.match(XO).map(function(O){var k=O[0];if(k==="p"||k==="P"){var C=Ag[k];return C(O,s.formatLong,T)}return O}).join("").match(GO).map(function(O){if(O==="''")return"'";var k=O[0];if(k==="'")return eI(O);var C=WO[k];if(C)return!i.useAdditionalWeekYearTokens&&Ig(O)&&ta(O,e,t),!i.useAdditionalDayOfYearTokens&&Og(O)&&ta(O,e,t),C(S,O,s.localize,T);if(k.match(ZO))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");return O}).join("");return A}function eI(t){return t.match(JO)[1].replace(QO,"'")}function tI(t,e){if(t==null)throw new TypeError("assign requires that input parameter not be null or undefined");e=e||{};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function nI(t){_e(1,arguments);var e=Ae(t),n=e.getDay();return n}function rI(t){_e(1,arguments);var e=Ae(t),n=e.getFullYear(),r=e.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function jt(t){_e(1,arguments);var e=Ae(t),n=e.getHours();return n}var iI=6048e5;function sI(t){_e(1,arguments);var e=Ae(t),n=ea(e).getTime()-JA(e).getTime();return Math.round(n/iI)+1}function Wt(t){_e(1,arguments);var e=Ae(t),n=e.getMinutes();return n}function Ot(t){_e(1,arguments);var e=Ae(t),n=e.getMonth();return n}function Xn(t){_e(1,arguments);var e=Ae(t),n=e.getSeconds();return n}function ln(t){return _e(1,arguments),Ae(t).getFullYear()}function oI(t,e){_e(2,arguments);var n=me(e);return Nr(t,-n)}function kg(t,e){_e(2,arguments);var n=me(e);return Js(t,-n)}function aI(t,e){if(_e(2,arguments),!e||typeof e!="object")return new Date(NaN);var n=e.years?me(e.years):0,r=e.months?me(e.months):0,i=e.weeks?me(e.weeks):0,s=e.days?me(e.days):0,o=e.hours?me(e.hours):0,l=e.minutes?me(e.minutes):0,u=e.seconds?me(e.seconds):0,d=kg(t,r+n*12),f=oI(d,s+i*7),p=l+o*60,v=u+p*60,m=v*1e3,S=new Date(f.getTime()-m);return S}function lI(t,e){_e(2,arguments);var n=Ae(t),r=Ae(e);return n.getTime()>r.getTime()}function cI(t,e){_e(2,arguments);var n=Ae(t),r=Ae(e);return n.getTime()<r.getTime()}function uI(t,e){_e(2,arguments);var n=Ae(t),r=Ae(e);return n.getTime()===r.getTime()}function wl(t,e,n){_e(2,arguments);var r=n||{},i=r.locale,s=i&&i.options&&i.options.weekStartsOn,o=s==null?0:me(s),l=r.weekStartsOn==null?o:me(r.weekStartsOn);if(!(l>=0&&l<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=Ae(t),d=me(e),f=u.getUTCDay(),p=d%7,v=(p+7)%7,m=(v<l?7:0)+d-f;return u.setUTCDate(u.getUTCDate()+m),u}function dI(t,e){_e(2,arguments);var n=me(e);n%7===0&&(n=n-7);var r=1,i=Ae(t),s=i.getUTCDay(),o=n%7,l=(o+7)%7,u=(l<r?7:0)+n-s;return i.setUTCDate(i.getUTCDate()+u),i}function fI(t,e){_e(2,arguments);var n=Ae(t),r=me(e),i=Tg(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}function hI(t,e,n){_e(2,arguments);var r=Ae(t),i=me(e),s=Cg(r,n)-i;return r.setUTCDate(r.getUTCDate()-s*7),r}var pI=36e5,mI=6e4,gI=1e3,nt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Zt={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Je(t,e,n){var r=e.match(t);if(!r)return null;var i=parseInt(r[0],10);return{value:n?n(i):i,rest:e.slice(r[0].length)}}function en(t,e){var n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};var r=n[1]==="+"?1:-1,i=n[2]?parseInt(n[2],10):0,s=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(i*pI+s*mI+o*gI),rest:e.slice(n[0].length)}}function Gf(t,e){return Je(nt.anyDigitsSigned,t,e)}function Ze(t,e,n){switch(t){case 1:return Je(nt.singleDigit,e,n);case 2:return Je(nt.twoDigits,e,n);case 3:return Je(nt.threeDigits,e,n);case 4:return Je(nt.fourDigits,e,n);default:return Je(new RegExp("^\\d{1,"+t+"}"),e,n)}}function vo(t,e,n){switch(t){case 1:return Je(nt.singleDigitSigned,e,n);case 2:return Je(nt.twoDigitsSigned,e,n);case 3:return Je(nt.threeDigitsSigned,e,n);case 4:return Je(nt.fourDigitsSigned,e,n);default:return Je(new RegExp("^-?\\d{1,"+t+"}"),e,n)}}function El(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Xf(t,e){var n=e>0,r=n?e:1-e,i;if(r<=50)i=t||100;else{var s=r+50,o=Math.floor(s/100)*100,l=t>=s%100;i=t+o-(l?100:0)}return n?i:1-i}var vI=[31,28,31,30,31,30,31,31,30,31,30,31],yI=[31,29,31,30,31,30,31,31,30,31,30,31];function Jf(t){return t%400===0||t%4===0&&t%100!==0}var _I={G:{priority:140,parse:function(t,e,n,r){switch(e){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});case"GGGG":default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}},set:function(t,e,n,r){return e.era=n,t.setUTCFullYear(n,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(t,e,n,r){var i=function(s){return{year:s,isTwoDigitYear:e==="yy"}};switch(e){case"y":return Ze(4,t,i);case"yo":return n.ordinalNumber(t,{unit:"year",valueCallback:i});default:return Ze(e.length,t,i)}},validate:function(t,e,n){return e.isTwoDigitYear||e.year>0},set:function(t,e,n,r){var i=t.getUTCFullYear();if(n.isTwoDigitYear){var s=Xf(n.year,i);return t.setUTCFullYear(s,0,1),t.setUTCHours(0,0,0,0),t}var o=!("era"in e)||e.era===1?n.year:1-n.year;return t.setUTCFullYear(o,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(t,e,n,r){var i=function(s){return{year:s,isTwoDigitYear:e==="YY"}};switch(e){case"Y":return Ze(4,t,i);case"Yo":return n.ordinalNumber(t,{unit:"year",valueCallback:i});default:return Ze(e.length,t,i)}},validate:function(t,e,n){return e.isTwoDigitYear||e.year>0},set:function(t,e,n,r){var i=Eu(t,r);if(n.isTwoDigitYear){var s=Xf(n.year,i);return t.setUTCFullYear(s,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),xr(t,r)}var o=!("era"in e)||e.era===1?n.year:1-n.year;return t.setUTCFullYear(o,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),xr(t,r)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(t,e,n,r){return vo(e==="R"?4:e.length,t)},set:function(t,e,n,r){var i=new Date(0);return i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0),Di(i)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(t,e,n,r){return vo(e==="u"?4:e.length,t)},set:function(t,e,n,r){return t.setUTCFullYear(n,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(t,e,n,r){switch(e){case"Q":case"QQ":return Ze(e.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,n){return e>=1&&e<=4},set:function(t,e,n,r){return t.setUTCMonth((n-1)*3,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(t,e,n,r){switch(e){case"q":case"qq":return Ze(e.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,n){return e>=1&&e<=4},set:function(t,e,n,r){return t.setUTCMonth((n-1)*3,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(t,e,n,r){var i=function(s){return s-1};switch(e){case"M":return Je(nt.month,t,i);case"MM":return Ze(2,t,i);case"Mo":return n.ordinalNumber(t,{unit:"month",valueCallback:i});case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,n){return e>=0&&e<=11},set:function(t,e,n,r){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(t,e,n,r){var i=function(s){return s-1};switch(e){case"L":return Je(nt.month,t,i);case"LL":return Ze(2,t,i);case"Lo":return n.ordinalNumber(t,{unit:"month",valueCallback:i});case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,n){return e>=0&&e<=11},set:function(t,e,n,r){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(t,e,n,r){switch(e){case"w":return Je(nt.week,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return Ze(e.length,t)}},validate:function(t,e,n){return e>=1&&e<=53},set:function(t,e,n,r){return xr(hI(t,n,r),r)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(t,e,n,r){switch(e){case"I":return Je(nt.week,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return Ze(e.length,t)}},validate:function(t,e,n){return e>=1&&e<=53},set:function(t,e,n,r){return Di(fI(t,n,r),r)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(t,e,n,r){switch(e){case"d":return Je(nt.date,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return Ze(e.length,t)}},validate:function(t,e,n){var r=t.getUTCFullYear(),i=Jf(r),s=t.getUTCMonth();return i?e>=1&&e<=yI[s]:e>=1&&e<=vI[s]},set:function(t,e,n,r){return t.setUTCDate(n),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(t,e,n,r){switch(e){case"D":case"DD":return Je(nt.dayOfYear,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return Ze(e.length,t)}},validate:function(t,e,n){var r=t.getUTCFullYear(),i=Jf(r);return i?e>=1&&e<=366:e>=1&&e<=365},set:function(t,e,n,r){return t.setUTCMonth(0,n),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(t,e,n,r){switch(e){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,n){return e>=0&&e<=6},set:function(t,e,n,r){return t=wl(t,n,r),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(t,e,n,r){var i=function(s){var o=Math.floor((s-1)/7)*7;return(s+r.weekStartsOn+6)%7+o};switch(e){case"e":case"ee":return Ze(e.length,t,i);case"eo":return n.ordinalNumber(t,{unit:"day",valueCallback:i});case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,n){return e>=0&&e<=6},set:function(t,e,n,r){return t=wl(t,n,r),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(t,e,n,r){var i=function(s){var o=Math.floor((s-1)/7)*7;return(s+r.weekStartsOn+6)%7+o};switch(e){case"c":case"cc":return Ze(e.length,t,i);case"co":return n.ordinalNumber(t,{unit:"day",valueCallback:i});case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,n){return e>=0&&e<=6},set:function(t,e,n,r){return t=wl(t,n,r),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(t,e,n,r){var i=function(s){return s===0?7:s};switch(e){case"i":case"ii":return Ze(e.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return n.day(t,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(t,{width:"short",context:"formatting",valueCallback:i})||n.day(t,{width:"narrow",context:"formatting",valueCallback:i});case"iiiii":return n.day(t,{width:"narrow",context:"formatting",valueCallback:i});case"iiiiii":return n.day(t,{width:"short",context:"formatting",valueCallback:i})||n.day(t,{width:"narrow",context:"formatting",valueCallback:i});case"iiii":default:return n.day(t,{width:"wide",context:"formatting",valueCallback:i})||n.day(t,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(t,{width:"short",context:"formatting",valueCallback:i})||n.day(t,{width:"narrow",context:"formatting",valueCallback:i})}},validate:function(t,e,n){return e>=1&&e<=7},set:function(t,e,n,r){return t=dI(t,n,r),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(t,e,n,r){switch(e){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,n,r){return t.setUTCHours(El(n),0,0,0),t},incompatibleTokens:["b","B","H","k","t","T"]},b:{priority:80,parse:function(t,e,n,r){switch(e){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,n,r){return t.setUTCHours(El(n),0,0,0),t},incompatibleTokens:["a","B","H","k","t","T"]},B:{priority:80,parse:function(t,e,n,r){switch(e){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,n,r){return t.setUTCHours(El(n),0,0,0),t},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(t,e,n,r){switch(e){case"h":return Je(nt.hour12h,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return Ze(e.length,t)}},validate:function(t,e,n){return e>=1&&e<=12},set:function(t,e,n,r){var i=t.getUTCHours()>=12;return i&&n<12?t.setUTCHours(n+12,0,0,0):!i&&n===12?t.setUTCHours(0,0,0,0):t.setUTCHours(n,0,0,0),t},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(t,e,n,r){switch(e){case"H":return Je(nt.hour23h,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return Ze(e.length,t)}},validate:function(t,e,n){return e>=0&&e<=23},set:function(t,e,n,r){return t.setUTCHours(n,0,0,0),t},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(t,e,n,r){switch(e){case"K":return Je(nt.hour11h,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return Ze(e.length,t)}},validate:function(t,e,n){return e>=0&&e<=11},set:function(t,e,n,r){var i=t.getUTCHours()>=12;return i&&n<12?t.setUTCHours(n+12,0,0,0):t.setUTCHours(n,0,0,0),t},incompatibleTokens:["h","H","k","t","T"]},k:{priority:70,parse:function(t,e,n,r){switch(e){case"k":return Je(nt.hour24h,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return Ze(e.length,t)}},validate:function(t,e,n){return e>=1&&e<=24},set:function(t,e,n,r){var i=n<=24?n%24:n;return t.setUTCHours(i,0,0,0),t},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(t,e,n,r){switch(e){case"m":return Je(nt.minute,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return Ze(e.length,t)}},validate:function(t,e,n){return e>=0&&e<=59},set:function(t,e,n,r){return t.setUTCMinutes(n,0,0),t},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(t,e,n,r){switch(e){case"s":return Je(nt.second,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return Ze(e.length,t)}},validate:function(t,e,n){return e>=0&&e<=59},set:function(t,e,n,r){return t.setUTCSeconds(n,0),t},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(t,e,n,r){var i=function(s){return Math.floor(s*Math.pow(10,-e.length+3))};return Ze(e.length,t,i)},set:function(t,e,n,r){return t.setUTCMilliseconds(n),t},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(t,e,n,r){switch(e){case"X":return en(Zt.basicOptionalMinutes,t);case"XX":return en(Zt.basic,t);case"XXXX":return en(Zt.basicOptionalSeconds,t);case"XXXXX":return en(Zt.extendedOptionalSeconds,t);case"XXX":default:return en(Zt.extended,t)}},set:function(t,e,n,r){return e.timestampIsSet?t:new Date(t.getTime()-n)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(t,e,n,r){switch(e){case"x":return en(Zt.basicOptionalMinutes,t);case"xx":return en(Zt.basic,t);case"xxxx":return en(Zt.basicOptionalSeconds,t);case"xxxxx":return en(Zt.extendedOptionalSeconds,t);case"xxx":default:return en(Zt.extended,t)}},set:function(t,e,n,r){return e.timestampIsSet?t:new Date(t.getTime()-n)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(t,e,n,r){return Gf(t)},set:function(t,e,n,r){return[new Date(n*1e3),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(t,e,n,r){return Gf(t)},set:function(t,e,n,r){return[new Date(n),{timestampIsSet:!0}]},incompatibleTokens:"*"}},bI=_I,wI=10,EI=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,TI=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,CI=/^'([^]*?)'?$/,SI=/''/g,AI=/\S/,OI=/[a-zA-Z]/;function II(t,e,n,r){_e(3,arguments);var i=String(t),s=String(e),o=r||{},l=o.locale||bg;if(!l.match)throw new RangeError("locale must contain match property");var u=l.options&&l.options.firstWeekContainsDate,d=u==null?1:me(u),f=o.firstWeekContainsDate==null?d:me(o.firstWeekContainsDate);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=l.options&&l.options.weekStartsOn,v=p==null?0:me(p),m=o.weekStartsOn==null?v:me(o.weekStartsOn);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(s==="")return i===""?Ae(n):new Date(NaN);var S={firstWeekContainsDate:f,weekStartsOn:m,locale:l},T=[{priority:wI,subPriority:-1,set:kI,index:0}],A,O=s.match(TI).map(function(G){var le=G[0];if(le==="p"||le==="P"){var Te=Ag[le];return Te(G,l.formatLong,S)}return G}).join("").match(EI),k=[];for(A=0;A<O.length;A++){var C=O[A];!o.useAdditionalWeekYearTokens&&Ig(C)&&ta(C,s,t),!o.useAdditionalDayOfYearTokens&&Og(C)&&ta(C,s,t);var D=C[0],B=bI[D];if(B){var j=B.incompatibleTokens;if(Array.isArray(j)){for(var b=void 0,x=0;x<k.length;x++){var R=k[x].token;if(j.indexOf(R)!==-1||R===D){b=k[x];break}}if(b)throw new RangeError("The format string mustn't contain `".concat(b.fullToken,"` and `").concat(C,"` at the same time"))}else if(B.incompatibleTokens==="*"&&k.length)throw new RangeError("The format string mustn't contain `".concat(C,"` and any other token at the same time"));k.push({token:D,fullToken:C});var H=B.parse(i,C,l.match,S);if(!H)return new Date(NaN);T.push({priority:B.priority,subPriority:B.subPriority||0,set:B.set,validate:B.validate,value:H.value,index:T.length}),i=H.rest}else{if(D.match(OI))throw new RangeError("Format string contains an unescaped latin alphabet character `"+D+"`");if(C==="''"?C="'":D==="'"&&(C=DI(C)),i.indexOf(C)===0)i=i.slice(C.length);else return new Date(NaN)}}if(i.length>0&&AI.test(i))return new Date(NaN);var w=T.map(function(G){return G.priority}).sort(function(G,le){return le-G}).filter(function(G,le,Te){return Te.indexOf(G)===le}).map(function(G){return T.filter(function(le){return le.priority===G}).sort(function(le,Te){return Te.subPriority-le.subPriority})}).map(function(G){return G[0]}),g=Ae(n);if(isNaN(g))return new Date(NaN);var F=wg(g,yg(g)),V={};for(A=0;A<w.length;A++){var ae=w[A];if(ae.validate&&!ae.validate(F,ae.value,S))return new Date(NaN);var ee=ae.set(F,V,ae.value,S);ee[0]?(F=ee[0],tI(V,ee[1])):F=ee}return F}function kI(t,e){if(e.timestampIsSet)return t;var n=new Date(0);return n.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),n.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),n}function DI(t){return t.match(CI)[1].replace(SI,"'")}function Na(t,e){_e(2,arguments);var n=Ae(t),r=me(e),i=n.getFullYear(),s=n.getDate(),o=new Date(0);o.setFullYear(i,r,15),o.setHours(0,0,0,0);var l=rI(o);return n.setMonth(r,Math.min(s,l)),n}function xa(t,e){if(_e(2,arguments),typeof e!="object"||e===null)throw new RangeError("values parameter must be an object");var n=Ae(t);return isNaN(n.getTime())?new Date(NaN):(e.year!=null&&n.setFullYear(e.year),e.month!=null&&(n=Na(n,e.month)),e.date!=null&&n.setDate(me(e.date)),e.hours!=null&&n.setHours(me(e.hours)),e.minutes!=null&&n.setMinutes(me(e.minutes)),e.seconds!=null&&n.setSeconds(me(e.seconds)),e.milliseconds!=null&&n.setMilliseconds(me(e.milliseconds)),n)}function Dg(t,e){_e(2,arguments);var n=Ae(t),r=me(e);return n.setHours(r),n}function PI(t,e){_e(2,arguments);var n=Ae(t),r=me(e);return n.setMilliseconds(r),n}function Pg(t,e){_e(2,arguments);var n=Ae(t),r=me(e);return n.setMinutes(r),n}function Ng(t,e){_e(2,arguments);var n=Ae(t),r=me(e);return n.setSeconds(r),n}function Tu(t,e){_e(2,arguments);var n=Ae(t),r=me(e);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function Zn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _c(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function xg(t,e){if(t){if(typeof t=="string")return _c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_c(t,e):void 0}}function NI(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var i=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(i!=null){var s,o,l=[],u=!0,d=!1;try{for(i=i.call(n);!(u=(s=i.next()).done)&&(l.push(s.value),!r||l.length!==r);u=!0);}catch(f){d=!0,o=f}finally{try{u||i.return==null||i.return()}finally{if(d)throw o}}return l}}(t,e)||xg(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var xI={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",class:"dp__icon"},MI=[fe("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"},null,-1),fe("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"},null,-1),fe("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"},null,-1),fe("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"},null,-1)],Ts={render:function(t,e){return K(),oe("svg",xI,MI)}},RI={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",class:"dp__icon"},LI=[fe("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"},null,-1),fe("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"},null,-1)],$I={render:function(t,e){return K(),oe("svg",RI,LI)}},BI={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",class:"dp__icon"},UI=[fe("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"},null,-1)],Qf={render:function(t,e){return K(),oe("svg",BI,UI)}},HI={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",class:"dp__icon"},FI=[fe("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"},null,-1)],Zf={render:function(t,e){return K(),oe("svg",HI,FI)}},VI={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",class:"dp__icon"},jI=[fe("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"},null,-1),fe("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"},null,-1)],No={render:function(t,e){return K(),oe("svg",VI,jI)}},WI={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",class:"dp__icon"},qI=[fe("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"},null,-1)],Tl={render:function(t,e){return K(),oe("svg",WI,qI)}},YI={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",class:"dp__icon"},KI=[fe("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"},null,-1)],Cl={render:function(t,e){return K(),oe("svg",YI,KI)}},tn=function(t){var e=6e4*t.getTimezoneOffset();return new Date(t.getTime()-e)},Sl=function(t,e){var n=II(t,e.slice(0,t.length),new Date);return Es(n)&&_g(n)?n:null},tr=function(t){var e=new Date(JSON.parse(JSON.stringify(t)));return e=Dg(e,0),e=Pg(e,0),e=Ng(e,0),e=PI(e,0)},bc=function(t){return Array.isArray(t)?Es(t[0])&&(!t[1]||Es(t[1])):!!t&&Es(t)},At=function(t,e,n,r){var i=t?new Date(t):new Date;return(e||e===0)&&(i=Dg(i,+e)),(n||n===0)&&(i=Pg(i,+n)),(r||r===0)&&(i=Ng(i,+r)),i},ns=function(t){var e=Js(t,1);return{month:Ot(e),year:ln(e)}},Mr=function(t,e,n){var r=t?new Date(t):new Date;return(e||e===0)&&(r=Na(r,e)),n&&(r=Tu(r,n)),r},eh=function(t,e){return t?"HH:mm".concat(e?":ss":""):"hh:mm".concat(e?":ss":""," aa")},Mg=function(t,e,n,r,i,s){return t||(r?"MM/yyyy":i?eh(e,n):s?"MM/dd/yyyy, ".concat(eh(e,n)):"MM/dd/yyyy")},Al=function(t){var e=t||new Date;return{hours:jt(e),minutes:Wt(e),seconds:Xn(e)}},wc=function(t){return{month:Ot(t),year:ln(t)}},Ec=function(t){return Array.isArray(t)?[Al(t[0]),Al(t[1])]:Al(t)},Ol=function(t,e,n){return n?zf(t,e,{locale:n}):zf(t,e)},_r=function(t,e,n){return Array.isArray(t)?"".concat(Ol(t[0],e,n)," - ").concat(t[1]?Ol(t[1],e,n):""):Ol(t,e,n)},Fn=function(t,e){return!(!t||!e)&&lI(tr(t),tr(e))},nn=function(t,e){return!(!t||!e)&&cI(tr(t),tr(e))},Lt=function(t,e){return!(!t||!e)&&uI(tr(t),tr(e))},Il=function(t,e){return zA(xa(new Date,t),e)},kl=function(t,e){return aI(xa(new Date,t),e)},th=function(t,e){var n=kg(Tu(Na(new Date,t),e),1);return{month:Ot(n),year:ln(n)}},Dl=function(t,e){var n=Js(Tu(Na(new Date,t),e),1);return{month:Ot(n),year:ln(n)}},Pl=function(t){return xa(new Date,{hours:jt(t),minutes:Wt(t),seconds:Xn(t)})},nh=function(t){return xa(new Date,{hours:+t.hours||0,minutes:+t.minutes||0,seconds:+t.seconds||0})},Tc=function(t,e,n){var r=!0;if(!t)return!0;var i=Array.isArray(t)?[t[0]?Pl(t[0]):null,t[1]?Pl(t[1]):null]:Pl(t);if(e){var s=nh(e);r=Array.isArray(i)?(!i[0]||i[0].getTime()<=s.getTime())&&(!i[1]||i[1].getTime()<=s.getTime()):i.getTime()<=s.getTime()}if(n){var o=nh(n);r=Array.isArray(i)?(!i[0]||i[0].getTime()>=o.getTime())&&(!i[1]||i[1].getTime()>=o.getTime())&&r:i.getTime()>=o.getTime()&&r}return r};function Wn(t){return function(e){if(Array.isArray(e))return _c(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||xg(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var rh=function(t,e,n,r){var i=[],s=new Date(e,t),o=new Date(e,t+1,0);return function l(u){var d=function(f,p,v){for(var m=new Date(JSON.parse(JSON.stringify(f))),S=[],T=0;T<7;T++){var A=Nr(m,T),O=Ot(A)!==p;S.push({text:v&&O?"":A.getDate(),value:A,current:!O})}return S}(u,t,r);i.push({days:d}),i[i.length-1].days.some(function(f){return Lt(tr(f.value),tr(o))})||l(Nr(u,7))}(vg(s,{weekStartsOn:n})),i},zI=function(t){return function(e){for(var n="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=r.length,s=0;s<e;s++)n+=r.charAt(Math.floor(Math.random()*i));return n+t}(5)},$t=function(t){var e,n=I(t);return(e=n==null?void 0:n.$el)!==null&&e!==void 0?e:n},ih=function(t){return Object.assign({open:"dp-open",close:"dp-close",next:"calendar-next",previous:"calendar-prev"},t)},GI=["aria-disabled","aria-readonly"],XI={key:2,class:"dp__input_wrap"},JI=["id","placeholder","disabled","readonly","required","value","onKeydown"],QI={key:2,class:"dp__clear_icon"},ZI=Gt({props:{inputValue:{type:String,default:""},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},disabled:{type:Boolean,default:!0},readonly:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},range:{type:Boolean,default:!1},state:{type:Boolean,default:null},inputClassName:{type:String,default:null},inline:{type:Boolean,default:!1},textInput:{type:Boolean,default:!1},textInputOptions:{type:Object,default:function(){return null}},isMenuOpen:{type:Boolean,default:!1},autoApply:{type:Boolean,default:!1},pattern:{type:String,default:""},uid:{type:String,default:null},openMenuOnFocus:{type:Boolean,default:!0},required:{type:Boolean,default:!1}},emits:["clear","open","update:inputValue","setInputDate","close","selectDate","setEmptyDate"],setup:function(t,e){var n=e.expose,r=e.emit,i=t,s=Se(),o=Se(null),l=Se(!1),u=js(),d=ce(function(){return Zn({dp__pointer:!i.disabled&&!i.readonly&&!i.textInput,dp__disabled:i.disabled,dp__input:!0,dp__input_icon_pad:!i.hideInputIcon,dp__input_valid:i.state,dp__input_invalid:i.state===!1,dp__input_focus:l.value||i.isMenuOpen},i.inputClassName,!!i.inputClassName)}),f=function(C){var D=C.target.value,B=i.textInputOptions,j=B.format,b=B.rangeSeparator;if(D!==""){if(i.range){var x=NI(D.split("".concat(b)),2),R=x[0],H=x[1];if(R&&H){var w=Sl(R.trim(),j||i.pattern),g=Sl(H.trim(),j||i.pattern);s.value=w&&g?[w,g]:null}}else s.value=Sl(D,j||i.pattern);r("setInputDate",s.value)}else r("setInputDate",null),i.autoApply&&(r("setEmptyDate"),s.value=null);r("update:inputValue",D)},p=function(){var C,D;(C=i.textInputOptions)!==null&&C!==void 0&&C.enterSubmit&&bc(s.value)&&i.inputValue!==""?(r("setInputDate",s.value,!0),s.value=null):(D=i.textInputOptions)!==null&&D!==void 0&&D.enterSubmit&&i.inputValue===""&&(s.value=null,r("clear"))},v=function(){var C,D;(C=i.textInputOptions)!==null&&C!==void 0&&C.tabSubmit&&bc(s.value)&&i.inputValue!==""?(r("setInputDate",s.value,!0),s.value=null):(D=i.textInputOptions)!==null&&D!==void 0&&D.tabSubmit&&i.inputValue===""&&(s.value=null,r("clear")),r("close")},m=function(){l.value=!0,i.openMenuOnFocus&&!i.isMenuOpen?r("open"):i.isMenuOpen&&(k(),r("close"))},S=function(){var C;(!i.openMenuOnFocus||u["dp-input"]||u.trigger)&&(i.textInput&&(C=i.textInputOptions)!==null&&C!==void 0&&C.openMenu&&!i.isMenuOpen?r("open"):i.textInput||r("open"))},T=function(){l.value=!1,i.autoApply&&i.textInput&&s.value&&(r("setInputDate",s.value),r("selectDate"),s.value=null)},A=function(C){C.stopImmediatePropagation()},O=function(){r("clear")},k=function(){l.value=!1;var C=$t(o);C&&C.blur()};return n({unFocus:k}),function(C,D){return K(),oe("div",{onClick:S,"aria-label":"Datepicker input",role:"textbox","aria-multiline":"false","aria-disabled":t.disabled,"aria-readonly":t.readonly},[!C.$slots.trigger||C.$slots["dp-input"]||t.inline?W("",!0):he(C.$slots,"trigger",{key:0}),!C.$slots["dp-input"]||C.$slots.trigger||t.inline?W("",!0):he(C.$slots,"dp-input",{key:1,value:t.inputValue,onInput:f,onEnter:p,onTab:v}),C.$slots.trigger||C.$slots["dp-input"]||t.inline?W("",!0):(K(),oe("div",XI,[fe("input",{ref_key:"inputRef",ref:o,id:t.uid?"dp-input-".concat(t.uid):void 0,class:Ve(I(d)),placeholder:t.placeholder,disabled:t.disabled,readonly:t.readonly,required:t.required,value:t.inputValue,onInput:f,onKeydown:[Fe(p,["enter"]),Fe(v,["tab"])],onBlur:T,onFocus:m},null,42,JI),C.$slots["input-icon"]&&!t.hideInputIcon?(K(),oe("span",{key:0,class:"dp__input_icon",onClick:A},[he(C.$slots,"input-icon")])):W("",!0),C.$slots["input-icon"]||t.hideInputIcon?W("",!0):(K(),Pe(I(Ts),{key:1,class:"dp__input_icon dp__input_icons",onClick:A})),C.$slots["clear-icon"]&&t.clearable&&!t.disabled&&!t.readonly?(K(),oe("span",QI,[he(C.$slots,"clear-icon",{clear:O})])):W("",!0),!t.clearable||C.$slots["clear-icon"]||!t.inputValue||t.disabled||t.readonly?W("",!0):(K(),Pe(I($I),{key:3,class:"dp__clear_icon dp__input_icons",onClick:ac(O,["stop","prevent"])},null,8,["onClick"]))]))],8,GI)}}});function sh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function oh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?sh(Object(n),!0).forEach(function(r){Zn(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sh(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var e1={class:"dp__overlay_container",role:"grid"},t1={class:"dp__selection_grid_header"},n1=["aria-selected","aria-disabled","onClick","onKeydown"],Sr=Gt({props:{items:{type:Array,default:function(){return[]}},modelValue:{type:[String,Number],default:null},disabledValues:{type:Array,default:function(){return[]}},minValue:{type:[Number,String],default:null},maxValue:{type:[Number,String],default:null}},emits:["update:modelValue","selected","toggle"],setup:function(t,e){var n=e.emit,r=t,i=Se(!1),s=Se(null),o=Se(null),l=ht("autoApply",!1);Kp(function(){s.value=null}),Wr(function(){m();var T=$t(o);T&&(T.focus(),i.value=T.clientHeight<T.scrollHeight)});var u=ce(function(){return{dp__overlay:!0}}),d=ce(function(){return{dp__overlay_col:!0}}),f=ce(function(){return r.items.map(function(T){return T.filter(function(A){return A}).map(function(A){return oh(oh({},A),{},{className:{dp__overlay_cell_active:A.value===r.modelValue,dp__overlay_cell:A.value!==r.modelValue,dp__overlay_cell_disabled:r.disabledValues.some(function(O){return O===A.value})||v(A.value),dp__overlay_cell_pad:!0}})})})}),p=ce(function(){return{dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:i.value,dp__button_bottom:l}}),v=function(T){var A=!!r.maxValue&&+T>+r.maxValue,O=!!r.minValue&&+T<+r.minValue;return A||O},m=function(){var T=$t(s);if(T){var A=$t(o);A&&(A.scrollTop=T.offsetTop-A.offsetTop-(A.getBoundingClientRect().height/2-T.getBoundingClientRect().height))}},S=function(T){r.disabledValues.some(function(A){return A===T})||r.minValue&&!(+r.minValue<=T)||r.maxValue&&!(+r.maxValue>=T)||(n("update:modelValue",T),n("selected"))};return function(T,A){return K(),oe("div",{class:Ve(["dp__overlay",I(u)]),ref_key:"gridWrapRef",ref:o,role:"dialog",tabindex:"0"},[fe("div",e1,[fe("div",t1,[he(T.$slots,"header")]),(K(!0),oe(Me,null,dt(I(f),function(O,k){return K(),oe("div",{class:"dp__overlay_row",key:I(zI)(k),role:"row"},[(K(!0),oe(Me,null,dt(O,function(C){return K(),oe("div",{role:"gridcell",class:Ve(I(d)),key:C.value,"aria-selected":C.value===t.modelValue&&!t.disabledValues.includes(C.value),"aria-disabled":C.className.dp__overlay_cell_disabled,ref_for:!0,ref:function(D){C.value!==t.modelValue||t.disabledValues.includes(C.value)||(s.value=D)},tabindex:"0",onClick:function(D){return S(C.value)},onKeydown:Fe(function(D){return S(C.value)},["enter"])},[fe("div",{class:Ve(C.className)},[T.$slots.item?he(T.$slots,"item",{key:0,item:C}):W("",!0),T.$slots.item?W("",!0):(K(),oe(Me,{key:1},[Yt(st(C.text),1)],64))],2)],42,n1)}),128))])}),128)),T.$slots["button-icon"]?(K(),oe("div",{key:0,role:"button","aria-label":"Toggle overlay",class:Ve(I(p)),tabindex:"0",onClick:A[0]||(A[0]=function(O){return T.$emit("toggle")}),onKeydown:A[1]||(A[1]=Fe(function(O){return T.$emit("toggle")},["enter"]))},[he(T.$slots,"button-icon")],34)):W("",!0)])],2)}}}),Cu=function(){var t=ht("transitions");return{transitionName:ce(function(){return function(e){return t!=null&&t.value?e?t.value.open:t.value.close:""}}),showTransition:!(t==null||!t.value)}},r1={class:"dp__time_input"},i1=["onKeydown"],s1=["onKeydown"],o1=["onKeydown"],a1={key:2},l1=["onKeydown"],Nl=Gt({props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},is24:{type:Boolean,default:!0},filters:{type:Object,default:function(){return{}}},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1}},emits:["setHours","setMinutes","update:hours","update:minutes","update:seconds"],setup:function(t,e){var n=e.emit,r=t,i=Se(!1),s=Se(!1),o=Se(!1),l=Se("AM"),u=Cu(),d=u.transitionName,f=u.showTransition,p=ce(function(){return{dp__time_col:!0,dp__time_col_reg:!r.enableSeconds&&r.is24,dp__time_col_reg_with_button:!r.enableSeconds&&!r.is24,dp__time_col_sec:r.enableSeconds&&r.is24,dp__time_col_sec_with_button:r.enableSeconds&&!r.is24}}),v=ce(function(){var b=B(r.hours);return{text:b<10?"0".concat(b):"".concat(b),value:b}}),m=ce(function(){return{text:r.minutes<10?"0".concat(r.minutes):"".concat(r.minutes),value:r.minutes}}),S=ce(function(){return{text:r.seconds<10?"0".concat(r.seconds):"".concat(r.seconds),value:r.seconds}}),T=function(b,x){return function(R,H){for(var w=[],g=0;g<R;g+=H)w.push({value:g,text:g<10?"0".concat(g):"".concat(g)});return function(F){for(var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3,ae=[],ee=0;ee<F.length;ee+=V)ae.push([F[ee],F[ee+1],F[ee+2]]);return ae}(w)}(b,+x)},A=function(){r.noHoursOverlay||(i.value=!i.value)},O=function(){r.noMinutesOverlay||(s.value=!s.value)},k=function(){r.noSecondsOverlay||(o.value=!o.value)},C=function(b,x){return{hours:b==="hours"?jt(x?Il({hours:+r.hours},{hours:+r.hoursIncrement}):kl({hours:+r.hours},{hours:+r.hoursIncrement})):r.hours,minutes:b==="minutes"?Wt(x?Il({minutes:r.minutes},{minutes:+r.minutesIncrement}):kl({minutes:r.minutes},{minutes:+r.minutesIncrement})):r.minutes,seconds:b==="seconds"?Xn(x?Il({seconds:r.seconds},{seconds:+r.secondsIncrement}):kl({seconds:r.seconds},{seconds:+r.secondsIncrement})):r.seconds}},D=function(b){var x=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],R=C(b,x),H=R[b];n("update:".concat(b),H)},B=function(b){return r.is24?b:(l.value=b>=12?"PM":"AM",[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][b])},j=function(){l.value==="PM"?(l.value="AM",n("update:hours",r.hours-12)):(l.value="PM",n("update:hours",r.hours+12))};return function(b,x){return K(),oe("div",r1,[fe("div",{class:Ve(I(p))},[fe("div",{class:"dp__inc_dec_button",role:"button","aria-label":"Increment hours",tabindex:"0",onKeydown:x[0]||(x[0]=Fe(function(R){return D("hours")},["enter"])),onClick:x[1]||(x[1]=function(R){return D("hours")})},[b.$slots["arrow-up"]?he(b.$slots,"arrow-up",{key:0}):W("",!0),b.$slots["arrow-up"]?W("",!0):(K(),Pe(I(Tl),{key:1}))],32),fe("div",{role:"button","aria-label":"Open hours overlay",class:Ve(t.noHoursOverlay?"":"dp__time_display"),tabindex:"0",onKeydown:Fe(A,["enter"]),onClick:A},[b.$slots.hours?he(b.$slots,"hours",{key:0,text:I(v).text,value:I(v).value}):W("",!0),b.$slots.hours?W("",!0):(K(),oe(Me,{key:1},[Yt(st(I(v).text),1)],64))],42,i1),fe("div",{class:"dp__inc_dec_button",role:"button","aria-label":"Decrement hours",tabindex:"0",onKeydown:x[2]||(x[2]=Fe(function(R){return D("hours",!1)},["enter"])),onClick:x[3]||(x[3]=function(R){return D("hours",!1)})},[b.$slots["arrow-down"]?he(b.$slots,"arrow-down",{key:0}):W("",!0),b.$slots["arrow-down"]?W("",!0):(K(),Pe(I(Cl),{key:1}))],32)],2),fe("div",{class:Ve(I(p))},":",2),fe("div",{class:Ve(I(p))},[fe("div",{class:"dp__inc_dec_button",role:"button","aria-label":"Increment minutes",tabindex:"0",onKeydown:x[4]||(x[4]=Fe(function(R){return D("minutes")},["enter"])),onClick:x[5]||(x[5]=function(R){return D("minutes")})},[b.$slots["arrow-up"]?he(b.$slots,"arrow-up",{key:0}):W("",!0),b.$slots["arrow-up"]?W("",!0):(K(),Pe(I(Tl),{key:1}))],32),fe("div",{"aria-label":"Open minutes overlay",role:"button",class:Ve(t.noMinutesOverlay?"":"dp__time_display"),tabindex:"0",onKeydown:Fe(O,["enter"]),onClick:O},[b.$slots.minutes?he(b.$slots,"minutes",{key:0,text:I(m).text,value:I(m).value}):W("",!0),b.$slots.minutes?W("",!0):(K(),oe(Me,{key:1},[Yt(st(I(m).text),1)],64))],42,s1),fe("div",{class:"dp__inc_dec_button",role:"button","aria-label":"Decrement minutes",tabindex:"0",onKeydown:x[6]||(x[6]=Fe(function(R){return D("minutes",!1)},["enter"])),onClick:x[7]||(x[7]=function(R){return D("minutes",!1)})},[b.$slots["arrow-down"]?he(b.$slots,"arrow-down",{key:0}):W("",!0),b.$slots["arrow-down"]?W("",!0):(K(),Pe(I(Cl),{key:1}))],32)],2),t.enableSeconds?(K(),oe("div",{key:0,class:Ve(I(p))},":",2)):W("",!0),t.enableSeconds?(K(),oe("div",{key:1,class:Ve(I(p))},[fe("div",{class:"dp__inc_dec_button",role:"button","aria-label":"Increment seconds",tabindex:"0",onKeydown:x[8]||(x[8]=Fe(function(R){return D("seconds")},["enter"])),onClick:x[9]||(x[9]=function(R){return D("seconds")})},[b.$slots["arrow-up"]?he(b.$slots,"arrow-up",{key:0}):W("",!0),b.$slots["arrow-up"]?W("",!0):(K(),Pe(I(Tl),{key:1}))],32),fe("div",{role:"button","aria-label":"Open seconds overlay",class:Ve(t.noSecondsOverlay?"":"dp__time_display"),tabindex:"0",onKeydown:Fe(k,["enter"]),onClick:k},[b.$slots.seconds?he(b.$slots,"hours",{key:0,text:I(S).text,value:I(S).value}):W("",!0),b.$slots.seconds?W("",!0):(K(),oe(Me,{key:1},[Yt(st(I(S).text),1)],64))],42,o1),fe("div",{class:"dp__inc_dec_button",role:"button","aria-label":"Decrement seconds",tabindex:"0",onKeydown:x[10]||(x[10]=Fe(function(R){return D("seconds",!1)},["enter"])),onClick:x[11]||(x[11]=function(R){return D("seconds",!1)})},[b.$slots["arrow-down"]?he(b.$slots,"arrow-down",{key:0}):W("",!0),b.$slots["arrow-down"]?W("",!0):(K(),Pe(I(Cl),{key:1}))],32)],2)):W("",!0),t.is24?W("",!0):(K(),oe("div",a1,[b.$slots["am-pm-button"]?he(b.$slots,"am-pm-button",{key:0,toggle:j,value:l.value}):W("",!0),b.$slots["am-pm-button"]?W("",!0):(K(),oe("button",{key:1,class:"dp__pm_am_button",role:"button","aria-label":"Switch AM/PM mode",tabindex:"0",onClick:j,onKeydown:Fe(j,["enter"])},st(l.value),41,l1))])),Qe(dn,{name:I(d)(i.value),css:I(f)},{default:$e(function(){return[i.value?(K(),Pe(Sr,{key:0,items:T(t.is24?24:12,t.hoursGridIncrement),"disabled-values":t.filters.times.hours,"onUpdate:modelValue":x[12]||(x[12]=function(R){return b.$emit("update:hours",R)}),onSelected:A,onToggle:A},ft({"button-icon":$e(function(){return[b.$slots["clock-icon"]?he(b.$slots,"clock-icon",{key:0}):W("",!0),b.$slots["clock-icon"]?W("",!0):(K(),Pe(I(No),{key:1}))]}),_:2},[b.$slots["hours-overlay"]?{name:"item",fn:$e(function(R){var H=R.item;return[he(b.$slots,"hours-overlay",{text:H.text,value:H.value})]})}:void 0]),1032,["items","disabled-values"])):W("",!0)]}),_:3},8,["name","css"]),Qe(dn,{name:I(d)(s.value),css:I(f)},{default:$e(function(){return[s.value?(K(),Pe(Sr,{key:0,items:T(60,t.minutesGridIncrement),"disabled-values":t.filters.times.minutes,"onUpdate:modelValue":x[13]||(x[13]=function(R){return b.$emit("update:minutes",R)}),onSelected:O,onToggle:O},ft({"button-icon":$e(function(){return[b.$slots["clock-icon"]?he(b.$slots,"clock-icon",{key:0}):W("",!0),b.$slots["clock-icon"]?W("",!0):(K(),Pe(I(No),{key:1}))]}),_:2},[b.$slots["minutes-overlay"]?{name:"item",fn:$e(function(R){var H=R.item;return[he(b.$slots,"minutes-overlay",{text:H.text,value:H.value})]})}:void 0]),1032,["items","disabled-values"])):W("",!0)]}),_:3},8,["name","css"]),Qe(dn,{name:I(d)(o.value),css:I(f)},{default:$e(function(){return[o.value?(K(),Pe(Sr,{key:0,items:T(60,t.secondsGridIncrement),"disabled-values":t.filters.times.seconds,"onUpdate:modelValue":x[14]||(x[14]=function(R){return b.$emit("update:seconds",R)}),onSelected:k,onToggle:k},ft({"button-icon":$e(function(){return[b.$slots["clock-icon"]?he(b.$slots,"clock-icon",{key:0}):W("",!0),b.$slots["clock-icon"]?W("",!0):(K(),Pe(I(No),{key:1}))]}),_:2},[b.$slots["seconds-overlay"]?{name:"item",fn:$e(function(R){var H=R.item;return[he(b.$slots,"seconds-overlay",{text:H.text,value:H.value})]})}:void 0]),1032,["items","disabled-values"])):W("",!0)]}),_:3},8,["name","css"])])}}}),rs=[{name:"clock-icon",use:["time","calendar"]},{name:"arrow-left",use:["month-year","calendar"]},{name:"arrow-right",use:["month-year","calendar"]},{name:"arrow-up",use:["time","calendar"]},{name:"arrow-down",use:["time","calendar"]},{name:"calendar-icon",use:["month-year","time","calendar"]},{name:"day",use:["calendar"]},{name:"month-overlay",use:["calendar","month-year"]},{name:"year-overlay",use:["calendar","month-year"]},{name:"hours-overlay",use:["calendar","time"]},{name:"minutes-overlay",use:["calendar","time"]},{name:"seconds-overlay",use:["calendar","time"]},{name:"hours",use:["calendar","time"]},{name:"minutes",use:["calendar","time"]},{name:"month",use:["calendar","month-year"]},{name:"year",use:["calendar","month-year"]},{name:"action-select",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar"]},{name:"marker-tooltip",use:["calendar"]},{name:"now-button",use:[]},{name:"time-picker-overlay",use:["calendar","time"]},{name:"am-pm-button",use:["calendar","time"]}],c1=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],u1={all:function(){return rs},monthYear:function(){return rs.filter(function(t){return t.use.includes("month-year")})},input:function(){return c1},timePicker:function(){return rs.filter(function(t){return t.use.includes("time")})},action:function(){return rs.filter(function(t){return t.use.includes("action")})},calendar:function(){return rs.filter(function(t){return t.use.includes("calendar")})}},Br=function(t,e){var n=[];return u1[e]().forEach(function(r){t[r.name]&&n.push(r.name)}),n},d1={key:0,class:"dp__overlay"},f1={class:"dp__overlay_container"},h1={key:1,class:"dp__overlay_row"},p1=Gt({props:{hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},is24:{type:Boolean,default:!0},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},range:{type:Boolean,default:!1},filters:{type:Object,default:function(){return{}}},timePicker:{type:Boolean,default:!1},hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},instance:{type:[Number,Array],default:1},twoCalendars:{type:Boolean,default:!1},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},customProps:{type:Object,default:null},enableSeconds:{type:Boolean,default:!1}},emits:["update:hours","update:minutes","update:seconds"],setup:function(t,e){var n=e.emit,r=t,i=js(),s=ht("autoApply",!1),o=Cu(),l=o.transitionName,u=o.showTransition,d=Se(!1),f=function(O){d.value=O},p=ce(function(){return{dp__button:!0,dp__button_bottom:s}}),v=Br(i,"timePicker"),m=ce(function(){return{is24:r.is24,hoursGridIncrement:r.hoursGridIncrement,minutesGridIncrement:r.minutesGridIncrement,secondsGridIncrement:r.secondsGridIncrement,hoursIncrement:r.hoursIncrement,minutesIncrement:r.minutesIncrement,secondsIncrement:r.secondsIncrement,filters:r.filters,noHoursOverlay:r.noHoursOverlay,noMinutesOverlay:r.noMinutesOverlay,noSecondsOverlay:r.noSecondsOverlay,enableSeconds:r.enableSeconds}}),S=function(O){n("update:hours",O)},T=function(O){n("update:minutes",O)},A=function(O){n("update:seconds",O)};return function(O,k){return K(),oe("div",null,[t.timePicker?W("",!0):(K(),oe("div",{key:0,class:Ve(I(p)),role:"button","aria-label":"Open time picker",tabindex:"0",onKeydown:k[0]||(k[0]=Fe(function(C){return f(!0)},["enter"])),onClick:k[1]||(k[1]=function(C){return f(!0)})},[O.$slots["clock-icon"]?he(O.$slots,"clock-icon",{key:0}):W("",!0),O.$slots["clock-icon"]?W("",!0):(K(),Pe(I(No),{key:1}))],34)),Qe(dn,{name:I(l)(d.value),css:I(u)},{default:$e(function(){return[d.value||t.timePicker?(K(),oe("div",d1,[fe("div",f1,[O.$slots["time-picker-overlay"]?he(O.$slots,"time-picker-overlay",{key:0,range:t.range,instance:t.instance,hours:t.hours,minutes:t.minutes,seconds:t.seconds,setHours:S,setMinutes:T,setSeconds:A}):W("",!0),O.$slots["time-picker-overlay"]?W("",!0):(K(),oe("div",h1,[t.range?W("",!0):(K(),Pe(Nl,wt({key:0,hours:t.hours,minutes:t.minutes,seconds:t.seconds},I(m),{"onUpdate:hours":k[2]||(k[2]=function(C){return S(C)}),"onUpdate:minutes":k[3]||(k[3]=function(C){return T(C)}),"onUpdate:seconds":k[4]||(k[4]=function(C){return A(C)})}),ft({_:2},[dt(I(v),function(C,D){return{name:C,fn:$e(function(B){return[he(O.$slots,C,An(un(B)))]})}})]),1040,["hours","minutes","seconds"])),t.range?(K(),oe(Me,{key:1},[t.twoCalendars&&t.instance!==1?W("",!0):(K(),Pe(Nl,wt({key:0,hours:t.hours[0],minutes:t.minutes[0]},I(m),{"onUpdate:hours":k[5]||(k[5]=function(C){return S([C,t.hours[1]])}),"onUpdate:minutes":k[6]||(k[6]=function(C){return T([C,t.minutes[1]])})}),ft({_:2},[dt(I(v),function(C,D){return{name:C,fn:$e(function(B){return[he(O.$slots,C,An(un(B)))]})}})]),1040,["hours","minutes"])),t.twoCalendars&&t.instance!==2?W("",!0):(K(),Pe(Nl,wt({key:1,hours:t.hours[1],minutes:t.minutes[1]},I(m),{"onUpdate:hours":k[7]||(k[7]=function(C){return S([t.hours[0],C])}),"onUpdate:minutes":k[8]||(k[8]=function(C){return T([t.minutes[0],C])})}),ft({_:2},[dt(I(v),function(C,D){return{name:C,fn:$e(function(B){return[he(O.$slots,C,An(un(B)))]})}})]),1040,["hours","minutes"]))],64)):W("",!0)])),t.timePicker?W("",!0):(K(),oe("div",{key:2,class:Ve(I(p)),role:"button","aria-label":"Close time picker",tabindex:"0",onKeydown:k[9]||(k[9]=Fe(function(C){return f(!1)},["enter"])),onClick:k[10]||(k[10]=function(C){return f(!1)})},[O.$slots["calendar-icon"]?he(O.$slots,"calendar-icon",{key:0}):W("",!0),O.$slots["calendar-icon"]?W("",!0):(K(),Pe(I(Ts),{key:1}))],34))])])):W("",!0)]}),_:3},8,["name","css"])])}}}),m1={class:"dp__month_year_row"},g1={class:"dp__inner_nav",role:"button","aria-label":"Previous month"},v1=["onKeydown"],y1=["onKeydown"],_1={class:"dp__inner_nav",role:"button","aria-label":"Next month"},b1={class:"dp__month_picker_header"},w1={class:"dp__inner_nav",role:"button","aria-label":"Previous month"},E1=["onKeydown"],T1={class:"dp__inner_nav",role:"button","aria-label":"Next month"},C1=Gt({props:{months:{type:Array,default:function(){return[]}},years:{type:Array,default:function(){return[]}},year:{type:Number,default:0},month:{type:Number,default:0},filters:{type:Object,default:function(){return{}}},monthPicker:{type:Boolean,default:!1},instance:{type:Number,default:1},customProps:{type:Object,default:null},twoCalendars:{type:Boolean,default:!1},twoCalendarsSolo:{type:Boolean,default:!1}},emits:["update:month","update:year","monthYearSelect"],setup:function(t,e){var n=e.emit,r=t,i=Cu(),s=i.transitionName,o=i.showTransition,l=Se(!1),u=Se(!1),d=function(b,x){var R=b.months.map(function(V){return V.value}),H=b.years.map(function(V){return V.value}),w=R.filter(function(V){return!b.filters.months.some(function(ae){return ae===V})}),g=H.filter(function(V){return!b.filters.years.some(function(ae){return ae===V})}),F=function(V,ae){x("update:month",V),x("update:year",ae)};return{onNext:function(){var V,ae=b.month,ee=b.year;if(b.month===11?(ae=0,ee=b.year+1):ae+=1,b.filters.months.includes(ae)&&(V=ae=ae===0?Math.min.apply(Math,Wn(w)):Math.max.apply(Math,Wn(w))),ae===V&&(ae=Math.min.apply(Math,Wn(w)),ee=b.year+1),b.filters.years.includes(ee)){var G=g.find(function(le){return le>ee});G&&(ee=G)}ee<=H[H.length-1]&&F(ae,ee)},onPrev:function(){var V,ae=b.month,ee=b.year;if(b.month===0?(ae=11,ee=b.year-1):ae-=1,b.filters.months.includes(ae)&&(V=ae=ae===11?Math.max.apply(Math,Wn(w)):Math.min.apply(Math,Wn(w))),ae===V&&(ae=Math.max.apply(Math,Wn(w)),ee=b.year-1),b.filters.years.includes(ee)){var G=g.reverse().find(function(le){return le<ee});G&&(ee=G)}ee>=H[0]&&F(ae,ee)}}}(r,n),f=d.onNext,p=d.onPrev,v=function(b){n("update:month",b),n("monthYearSelect"),D()},m=function(b){n("update:year",b),n("monthYearSelect",!0),B()},S=function(b){for(var x=[],R=0;R<b.length;R+=3)x.push([b[R],b[R+1],b[R+2]]);return x},T=ce(function(){var b=r.months.find(function(x){return x.value===r.month});return b||{text:"",value:0}}),A=ce(function(){return S(r.months)}),O=ce(function(){return S(r.years)}),k=ce(function(){return!r.twoCalendars||!!r.twoCalendarsSolo||r.instance===1}),C=ce(function(){return!r.twoCalendars||!!r.twoCalendarsSolo||r.instance===2}),D=function(){l.value=!l.value},B=function(){u.value=!u.value},j=function(){var b=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(b){var x=r.year+1;n("update:year",x)}else{var R=r.year-1;n("update:year",R)}};return function(b,x){return K(),oe("div",m1,[t.monthPicker?W("",!0):(K(),oe(Me,{key:0},[I(k)?(K(),oe("div",{key:0,class:"dp__month_year_col_nav",onClick:x[0]||(x[0]=function(){return I(p)&&I(p).apply(void 0,arguments)}),onKeydown:x[1]||(x[1]=Fe(function(){return I(p)&&I(p).apply(void 0,arguments)},["enter"])),tabindex:"0"},[fe("div",g1,[b.$slots["arrow-left"]?he(b.$slots,"arrow-left",{key:0}):W("",!0),b.$slots["arrow-left"]?W("",!0):(K(),Pe(I(Qf),{key:1}))])],32)):W("",!0),fe("div",{class:"dp__month_year_select",onClick:D,onKeydown:Fe(D,["enter"]),role:"button","aria-label":"Open months overlay",tabindex:"0"},[b.$slots.month?he(b.$slots,"month",{key:0,value:I(T).value,text:I(T).text}):W("",!0),b.$slots.month?W("",!0):(K(),oe(Me,{key:1},[Yt(st(I(T).text),1)],64))],40,v1),fe("div",{class:"dp__month_year_select",onClick:B,onKeydown:Fe(B,["enter"]),role:"button","aria-label":"Open years overlay",tabindex:"0"},[b.$slots.year?he(b.$slots,"year",{key:0,year:t.year}):W("",!0),b.$slots.year?W("",!0):(K(),oe(Me,{key:1},[Yt(st(t.year),1)],64))],40,y1),Qe(dn,{name:I(s)(l.value),css:I(o)},{default:$e(function(){return[l.value?(K(),Pe(Sr,wt({key:0},{modelValue:t.month,items:I(A),disabledValues:t.filters.months},{"onUpdate:modelValue":v,onToggle:D}),ft({"button-icon":$e(function(){return[b.$slots["calendar-icon"]?he(b.$slots,"calendar-icon",{key:0}):W("",!0),b.$slots["calendar-icon"]?W("",!0):(K(),Pe(I(Ts),{key:1}))]}),_:2},[b.$slots["month-overlay"]?{name:"item",fn:$e(function(R){var H=R.item;return[he(b.$slots,"month-overlay",{text:H.text,value:H.value})]})}:void 0]),1040)):W("",!0)]}),_:3},8,["name","css"]),Qe(dn,{name:I(s)(u.value),css:I(o)},{default:$e(function(){return[u.value?(K(),Pe(Sr,wt({key:0},{modelValue:t.year,items:I(O),disabledValues:t.filters.years},{"onUpdate:modelValue":m,onToggle:B}),ft({"button-icon":$e(function(){return[b.$slots["calendar-icon"]?he(b.$slots,"calendar-icon",{key:0}):W("",!0),b.$slots["calendar-icon"]?W("",!0):(K(),Pe(I(Ts),{key:1}))]}),_:2},[b.$slots["year-overlay"]?{name:"item",fn:$e(function(R){var H=R.item;return[he(b.$slots,"year-overlay",{text:H.text,value:H.value})]})}:void 0]),1040)):W("",!0)]}),_:3},8,["name","css"]),I(C)?(K(),oe("div",{key:1,class:"dp__month_year_col_nav",onClick:x[2]||(x[2]=function(){return I(f)&&I(f).apply(void 0,arguments)}),onKeydown:x[3]||(x[3]=Fe(function(){return I(f)&&I(f).apply(void 0,arguments)},["enter"])),tabindex:"0"},[fe("div",_1,[b.$slots["arrow-right"]?he(b.$slots,"arrow-right",{key:0}):W("",!0),b.$slots["arrow-right"]?W("",!0):(K(),Pe(I(Zf),{key:1}))])],32)):W("",!0)],64)),t.monthPicker?(K(),Pe(Sr,wt({key:1},{modelValue:t.month,items:I(A),disabledValues:t.filters.months},{"onUpdate:modelValue":v,onToggle:D}),ft({header:$e(function(){return[fe("div",b1,[fe("div",{class:"dp__month_year_col_nav",tabindex:"0",onClick:x[4]||(x[4]=function(R){return j(!1)}),onKeydown:x[5]||(x[5]=Fe(function(R){return j(!1)},["enter"]))},[fe("div",w1,[b.$slots["arrow-left"]?he(b.$slots,"arrow-left",{key:0}):W("",!0),b.$slots["arrow-left"]?W("",!0):(K(),Pe(I(Qf),{key:1}))])],32),fe("div",{class:"dp__pointer",role:"button","aria-label":"Open years overlay",tabindex:"0",onClick:B,onKeydown:Fe(B,["enter"])},[b.$slots.year?he(b.$slots,"year",{key:0,year:t.year}):W("",!0),b.$slots.year?W("",!0):(K(),oe(Me,{key:1},[Yt(st(t.year),1)],64))],40,E1),fe("div",{class:"dp__month_year_col_nav",tabindex:"0",onClick:x[6]||(x[6]=function(R){return j(!0)}),onKeydown:x[7]||(x[7]=Fe(function(R){return j(!0)},["enter"]))},[fe("div",T1,[b.$slots["arrow-right"]?he(b.$slots,"arrow-right",{key:0}):W("",!0),b.$slots["arrow-right"]?W("",!0):(K(),Pe(I(Zf),{key:1}))])],32)]),Qe(dn,{name:I(s)(u.value),css:I(o)},{default:$e(function(){return[u.value?(K(),Pe(Sr,wt({key:0},{modelValue:t.year,items:I(O),disabledValues:t.filters.years},{"onUpdate:modelValue":m,onToggle:B}),ft({"button-icon":$e(function(){return[b.$slots["calendar-icon"]?he(b.$slots,"calendar-icon",{key:0}):W("",!0),b.$slots["calendar-icon"]?W("",!0):(K(),Pe(I(Ts),{key:1}))]}),_:2},[b.$slots["year-overlay"]?{name:"item",fn:$e(function(R){var H=R.item;return[he(b.$slots,"year-overlay",{text:H.text,value:H.value})]})}:void 0]),1040)):W("",!0)]}),_:3},8,["name","css"])]}),_:2},[b.$slots["month-overlay"]?{name:"item",fn:$e(function(R){var H=R.item;return[he(b.$slots,"month-overlay",{text:H.text,value:H.value})]})}:void 0]),1040)):W("",!0)])}}}),S1={class:"db__calendar_header",role:"row"},A1={key:0,class:"dp__calendar_header_item",role:"gridcell"},O1=fe("div",{class:"dp__calendar_header_separator"},null,-1),I1={key:0,class:"dp__calendar",role:"grid","aria-label":"Calendar days"},k1={key:0,role:"gridcell",class:"dp__calendar_item dp__week_num"},D1={class:"dp__cell_inner"},P1=["aria-selected","aria-disabled","onClick","onKeydown","onMouseover"],N1=fe("div",{class:"dp__arrow_bottom_tp"},null,-1),x1=Gt({props:{locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:Boolean,default:!1},mappedDates:{type:Array,default:function(){return[]}},enableTimePicker:{type:Boolean,default:!0},timePickerComponent:{type:Object,default:null},monthYearComponent:{type:Object,default:null},is24:{type:Boolean,default:!0},hoursIncrement:{type:[String,Number],default:1},minutesIncrement:{type:[String,Number],default:1},secondsIncrement:{type:[String,Number],default:1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},range:{type:Boolean,default:!1},filters:{type:Object,default:function(){return{}}},customProps:{type:Object,default:null},hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},calendarClassName:{type:String,default:null},monthPicker:{type:Boolean,default:!1},timePicker:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},getWeekNum:{type:Function,default:function(){return""}},instance:{type:Number,default:1},twoCalendars:{type:Boolean,default:!1},years:{type:Array,default:function(){return[]}},months:{type:Array,default:function(){return[]}},month:{type:Number,default:0},year:{type:Number,default:0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},twoCalendarsSolo:{type:Boolean,default:!1},modeHeight:{type:[Number,String],default:255},enableSeconds:{type:Boolean,default:!1}},emits:["update:hours","update:minutes","update:seconds","selectDate","setHoverDate","update:month","update:year","monthYearSelect","handleScroll"],setup:function(t,e){var n=e.emit,r=t,i=js(),s=Se(null),o=Se({bottom:"",left:"",transform:""}),l=Se([]),u=Se(!0),d=ht("transitions"),f=Se(""),p=$o(r,"month"),v=$o(r,"year"),m=Se(),S=Se(!1),T=ce(function(){return function(H,w){var g,F,V=[1,2,3,4,5,6,7].map(function(G){return new Intl.DateTimeFormat(H,{weekday:"short",timeZone:"UTC"}).format(new Date("2017-01-0".concat(G,"T00:00:00+00:00"))).slice(0,2)}),ae=V.slice(0,w),ee=V.slice(w+1,V.length);return(g=(F=[V[w]]).concat.apply(F,Wn(ee))).concat.apply(g,Wn(ae))}(r.locale,+r.weekStart)});Wr(function(){m.value=Mr(new Date,r.month,r.year)});var A=Br(i,"timePicker"),O=Br(i,"monthYear"),k=ce(function(){return r.monthPicker||r.timePicker});cn([p,v],function(){if(d!=null&&d.value){var H=Mr(new Date,r.month,r.year);f.value=Fn(Mr(new Date,r.month,r.year),m.value)?d.value.next:d.value.previous,m.value=H,S.value&&(u.value=!1,da(function(){u.value=!0}))}S.value||(S.value=!0)});var C=ce(function(){return Zn({dp__calendar_wrap:!0},r.calendarClassName,!!r.calendarClassName)}),D=ce(function(){return function(H){var w=function(g){return Object.assign({type:"dot"},g)}(H);return{dp__marker_dot:w.type==="dot",dp__marker_line:w.type==="line"}}}),B=ce(function(){return function(H){return Lt(H,s.value)}}),j=ce(function(){return{dp__calendar:!0,dp__calendar_next:r.instance===2}}),b=ce(function(){return{dp__calendar_content_wrap:!0}}),x=ce(function(){return k.value?{height:"".concat(r.modeHeight,"px")}:null}),R=function(){s.value=null};return function(H,w){return K(),oe("div",{class:Ve(I(j))},[fe("div",{class:Ve(I(b)),style:En(I(x))},[t.disableMonthYearSelect||t.timePicker?W("",!0):(K(),Pe(rc(t.monthYearComponent?t.monthYearComponent:C1),wt({key:0},{months:t.months,years:t.years,filters:t.filters,monthPicker:t.monthPicker,month:t.month,year:t.year,customProps:t.customProps,twoCalendars:t.twoCalendars,twoCalendarsSolo:t.twoCalendarsSolo,instance:t.instance},{"onUpdate:month":w[0]||(w[0]=function(g){return H.$emit("update:month",g)}),"onUpdate:year":w[1]||(w[1]=function(g){return H.$emit("update:year",g)}),onMonthYearSelect:w[2]||(w[2]=function(g){return H.$emit("monthYearSelect",g)})}),ft({_:2},[dt(I(O),function(g,F){return{name:g,fn:$e(function(V){return[he(H.$slots,g,An(un(V)))]})}})]),1040)),I(k)?W("",!0):(K(),oe("div",{key:1,class:Ve(I(C)),role:"grid","aria-label":"Calendar wrapper",onWheel:w[4]||(w[4]=ac(function(g){return H.$emit("handleScroll",g)},["prevent"]))},[fe("div",S1,[t.weekNumbers?(K(),oe("div",A1,st(t.weekNumName),1)):W("",!0),(K(!0),oe(Me,null,dt(I(T),function(g,F){return K(),oe("div",{class:"dp__calendar_header_item",role:"gridcell",key:F},[H.$slots["calendar-header"]?he(H.$slots,"calendar-header",{key:0,day:g,index:F}):W("",!0),H.$slots["calendar-header"]?W("",!0):(K(),oe(Me,{key:1},[Yt(st(g),1)],64))])}),128))]),O1,Qe(dn,{name:f.value,css:!!I(d)},{default:$e(function(){return[u.value?(K(),oe("div",I1,[(K(!0),oe(Me,null,dt(t.mappedDates,function(g,F){return K(),oe("div",{class:"dp__calendar_row",role:"row",key:F},[t.weekNumbers?(K(),oe("div",k1,[fe("div",D1,st(t.getWeekNum(g.days)),1)])):W("",!0),(K(!0),oe(Me,null,dt(g.days,function(V,ae){return K(),oe("div",{role:"gridcell",class:"dp__calendar_item",ref_for:!0,ref:function(ee){ee&&(l.value[ae+F]=ee)},key:ae+F,"aria-selected":V.classData.dp__active_date||V.classData.dp__range_start||V.classData.dp__range_start,"aria-disabled":V.classData.dp__cell_disabled,tabindex:"0",onClick:function(ee){return H.$emit("selectDate",V)},onKeydown:Fe(function(ee){return H.$emit("selectDate",V)},["enter"]),onMouseover:function(ee){return function(G,le){var Te,He;if(n("setHoverDate",G),(Te=G.marker)!==null&&Te!==void 0&&(He=Te.tooltip)!==null&&He!==void 0&&He.length){var Ue=$t(l.value[le]);if(Ue){var We=Ue.getBoundingClientRect(),xe=We.width,qe=We.height;o.value={bottom:"".concat(qe,"px"),left:"".concat(xe/2,"px"),transform:"translateX(-50%)"},s.value=G.value}}}(V,ae+F)},onMouseleave:R},[fe("div",{class:Ve(["dp__cell_inner",V.classData])},[H.$slots.day?he(H.$slots,"day",{key:0,day:+V.text,date:V.value}):W("",!0),H.$slots.day?W("",!0):(K(),oe(Me,{key:1},[Yt(st(V.text),1)],64)),V.marker?(K(),oe("div",{key:2,class:Ve(I(D)(V.marker)),style:En(V.marker.color?{backgroundColor:V.marker.color}:{})},null,6)):W("",!0),I(B)(V.value)?(K(),oe("div",{key:3,class:"dp__marker_tooltip",style:En(o.value)},[fe("div",{class:"dp__tooltip_content",onClick:w[3]||(w[3]=ac(function(){},["stop"]))},[(K(!0),oe(Me,null,dt(V.marker.tooltip,function(ee,G){return K(),oe("div",{key:G,class:"dp__tooltip_text"},[H.$slots["marker-tooltip"]?he(H.$slots,"marker-tooltip",{key:0,tooltop:ee,day:V.value}):W("",!0),H.$slots["marker-tooltip"]?W("",!0):(K(),oe(Me,{key:1},[fe("div",{class:"dp__tooltip_mark",style:En(ee.color?{backgroundColor:ee.color}:{})},null,4),fe("div",null,st(ee.text),1)],64))])}),128)),N1])],4)):W("",!0)],2)],40,P1)}),128))])}),128))])):W("",!0)]}),_:3},8,["name","css"])],34)),t.enableTimePicker?(K(),Pe(rc(t.timePickerComponent?t.timePickerComponent:p1),wt({key:2},{is24:t.is24,hoursIncrement:t.hoursIncrement,minutesIncrement:t.minutesIncrement,hoursGridIncrement:t.hoursGridIncrement,secondsIncrement:t.secondsIncrement,minutesGridIncrement:t.minutesGridIncrement,secondsGridIncrement:t.secondsGridIncrement,noHoursOverlay:t.noHoursOverlay,noMinutesOverlay:t.noMinutesOverlay,noSecondsOverlay:t.noSecondsOverlay,range:t.range,filters:t.filters,timePicker:t.timePicker,hours:t.hours,minutes:t.minutes,seconds:t.seconds,customProps:t.customProps,twoCalendars:t.twoCalendars,instance:t.instance,enableSeconds:t.enableSeconds},{"onUpdate:hours":w[5]||(w[5]=function(g){return H.$emit("update:hours",g)}),"onUpdate:minutes":w[6]||(w[6]=function(g){return H.$emit("update:minutes",g)}),"onUpdate:seconds":w[7]||(w[7]=function(g){return H.$emit("update:seconds",g)})}),ft({_:2},[dt(I(A),function(g,F){return{name:g,fn:$e(function(V){return[he(H.$slots,g,An(un(V)))]})}})]),1040)):W("",!0)],6)],2)}}});function Cs(t){return Cs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cs(t)}var ah=function(t,e){return e},di=function(t){return Array.isArray(t)},Bn=function(t){return Array.isArray(t)},Cc=function(t){return Array.isArray(t)&&t.length===2},lh=function(t){return typeof t=="string"},M1={class:"dp__selection_preview"},R1={class:"dp__action_buttons"},L1=["onKeydown"],$1=Gt({props:{selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},internalModelValue:{type:[Date,Array],default:null},range:{type:Boolean,default:!1},previewFormat:{type:[String,Function],default:function(){return""}},inline:{type:Boolean,default:!1},monthPicker:{type:Boolean,default:!1},timePicker:{type:Boolean,default:!1},twoCalendars:{type:Boolean,default:!1},calendarWidth:{type:Number,default:0},menuMount:{type:Boolean,default:!1},customProps:{type:Object,default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},enableTimePicker:{type:Boolean,default:!0}},emits:["closePicker","selectDate"],setup:function(t,e){var n=e.emit,r=t,i=ht("formatLocale"),s=ce(function(){return{dp__action:!0,dp__select:!0,dp__action_disabled:!o.value}}),o=ce(function(){return!r.enableTimePicker||Tc(r.internalModelValue,r.maxTime,r.minTime)}),l=ce(function(){return r.internalModelValue&&r.menuMount?typeof r.previewFormat=="string"?di(r.internalModelValue)?r.internalModelValue.length===2&&r.internalModelValue[1]?r.twoCalendars?"".concat(_r(r.internalModelValue[0],r.previewFormat,i==null?void 0:i.value)," - ").concat(_r(r.internalModelValue[1],r.previewFormat,i==null?void 0:i.value)):[_r(r.internalModelValue[0],r.previewFormat,i==null?void 0:i.value),_r(r.internalModelValue[1],r.previewFormat,i==null?void 0:i.value)]:"".concat(_r(r.internalModelValue[0],r.previewFormat,i==null?void 0:i.value)," -"):_r(r.internalModelValue,r.previewFormat,i==null?void 0:i.value):r.timePicker?r.previewFormat(Ec(r.internalModelValue)):r.monthPicker?r.previewFormat(wc(r.internalModelValue)):r.previewFormat(r.internalModelValue):""}),u=function(){o.value&&n("selectDate")};return function(d,f){return K(),oe("div",{class:"dp__action_row",style:En(t.calendarWidth?{width:"".concat(t.calendarWidth,"px")}:{})},[fe("div",M1,[d.$slots["action-preview"]?he(d.$slots,"action-preview",{key:0,value:t.internalModelValue}):W("",!0),d.$slots["action-preview"]?W("",!0):(K(),oe(Me,{key:1},[Array.isArray(I(l))?W("",!0):(K(),oe(Me,{key:0},[Yt(st(I(l)),1)],64)),Array.isArray(I(l))?(K(),oe(Me,{key:1},[fe("div",null,st(I(l)[0]),1),fe("div",null,st(I(l)[1]),1)],64)):W("",!0)],64))]),fe("div",R1,[d.$slots["action-select"]?he(d.$slots,"action-select",{key:0,value:t.internalModelValue}):W("",!0),d.$slots["action-select"]?W("",!0):(K(),oe(Me,{key:1},[t.inline?W("",!0):(K(),oe("span",{key:0,class:"dp__action dp__cancel",tabindex:"0",onClick:f[0]||(f[0]=function(p){return d.$emit("closePicker")}),onKeydown:f[1]||(f[1]=Fe(function(p){return d.$emit("closePicker")},["enter"]))},st(t.cancelText),33)),fe("span",{class:Ve(I(s)),tabindex:"0",onKeydown:Fe(u,["enter"]),onClick:u},st(t.selectText),43,L1)],64))])],4)}}}),B1=function(t,e){var n=Se(new Date),r=Se(),i=Se(Ot(new Date)),s=Se(ln(new Date)),o=Se(ns(new Date).month),l=Se(ns(new Date).year),u=Se(t.range?[jt(new Date),jt(new Date)]:jt(new Date)),d=Se(t.range?[Wt(new Date),Wt(new Date)]:Wt(new Date)),f=Se(t.range?[0,0]:0);Wr(function(){O(),m.value||(t.startDate&&(i.value=Ot(new Date(t.startDate)),s.value=ln(new Date(t.startDate)),t.twoCalendars&&(o.value=ns(new Date(t.startDate)).month,l.value=ns(new Date(t.startDate)).year)),t.startTime&&v())});var p=function(){var w=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return t.enableSeconds?Array.isArray(f.value)?w?f.value[0]:f.value[1]:f.value:0},v=function(){var w;t.startTime&&(w=t.startTime,Array.isArray(w)?(u.value=[+t.startTime[0].hours,+t.startTime[1].hours],d.value=[+t.startTime[0].minutes,+t.startTime[1].minutes],t.enableSeconds&&(f.value=[+t.startTime[0].seconds,+t.startTime[1].seconds])):(u.value=+t.startTime.hours,d.value=+t.startTime.minutes,t.enableSeconds&&(f.value=+t.startTime.seconds)))},m=ce({get:function(){return t.internalModelValue},set:function(w){t.readonly||t.disabled||e("update:internalModelValue",w)}});cn(m,function(){return O()});var S=function(w){var g=!!t.maxDate&&Fn(tn(w),tn(new Date(t.maxDate))),F=!!t.minDate&&nn(tn(w),tn(new Date(t.minDate))),V=typeof t.disabledDates=="function"?t.disabledDates(w):t.disabledDates.some(function(Ue){return Lt(tn(new Date(Ue)),tn(w))}),ae=t.filters.months.length?t.filters.months.map(function(Ue){return+Ue}):[],ee=ae.includes(Ot(w)),G=!!t.disabledWeekDays.length&&t.disabledWeekDays.some(function(Ue){return+Ue===nI(w)}),le=!!t.allowedDates.length&&!t.allowedDates.some(function(Ue){return Lt(tn(new Date(Ue)),tn(w))}),Te=ln(w),He=Te<+t.yearRange[0]||Te>+t.yearRange[1];return g||F||V||ee||He||G||le},T=function(w){return!!m.value&&!(t.hideOffsetDates&&!w.current)&&!t.range&&Lt(w.value,m.value?m.value:n.value)},A=function(w){i.value=Ot(w),s.value=ln(w)},O=function(){m.value?di(m.value)?(m.value.length===2&&(A(m.value[0]),u.value=[jt(m.value[0]),m.value[1]?jt(m.value[1]):jt(new Date)],d.value=[Wt(m.value[0]),m.value[1]?Wt(m.value[1]):Wt(new Date)],f.value=[Xn(m.value[0]),m.value[1]?Xn(m.value[1]):Xn(new Date)]),t.twoCalendars&&C()):(A(m.value),u.value=jt(m.value),d.value=Wt(m.value),f.value=Xn(m.value)):t.timePicker?(v(),t.range?Bn(u.value)&&Bn(d.value)&&(m.value=[At(new Date,u.value[0],d.value[0],p()),At(new Date,u.value[1],d.value[1],p(!1))]):m.value=At(new Date,u.value,d.value,p())):t.monthPicker&&(m.value=Mr(new Date,i.value,s.value))},k=function(w){var g=Ot(new Date(w)),F=ln(new Date(w)),V=ns(new Date(w));i.value=g,s.value=F,o.value=V.month,l.value=V.year},C=function(){if(Array.isArray(m.value)&&m.value.length===2){var w=new Date(m.value[1]?m.value[1]:Js(m.value[0],1));if(o.value===i.value&&l.value===s.value||!t.twoCalendarsSolo){var g=Dl(i.value,s.value);o.value=g.month,l.value=g.year}else Ot(m.value[0])!==Ot(m.value[1])&&(o.value=Ot(w),l.value=ln(w))}},D=function(w,g){if(!t.twoCalendarsSolo){var F=th(w,g);i.value=F.month,s.value=F.year}},B=function(w,g){if(!t.twoCalendarsSolo){var F=Dl(w,g);o.value=F.month,l.value=F.year}},j=function(w){var g=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],F=arguments.length>2&&arguments[2]!==void 0&&arguments[2];g?F?(D(w,l.value),o.value=w):(B(w,s.value),i.value=w):F?(D(o.value,w),l.value=w):(B(i.value,w),s.value=w),t.monthPicker&&(m.value?m.value=Mr(m.value,i.value,s.value):m.value=Mr(new Date,i.value,s.value))},b=function(w){di(w)&&di(m.value)&&Bn(u.value)&&Bn(d.value)?(w[0]&&m.value[0]&&(m.value[0]=At(w[0],u.value[0],d.value[0],p())),w[1]&&m.value[1]&&(m.value[1]=At(w[1],u.value[1],d.value[1],p(!1)))):t.range||Cc(w)||(m.value=At(w,u.value,d.value,p())),e("timeUpdate")},x=function(w){return!(ah(m.value,t.range)&&m.value[0]&&r.value)||(w?Fn(r.value,m.value[0]):nn(r.value,m.value[0]))},R=function(w){var g=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return t.range&&Cc(m.value)?!(t.hideOffsetDates&&!w.current)&&Lt(new Date(w.value),m.value[g?0:1]):!!t.range&&(Lt(new Date(w.value),m.value&&Array.isArray(m.value)?g?m.value[0]||null:m.value[1]:null)&&(!g||!nn(r.value||null,Array.isArray(m.value)?m.value[0]:null))||Lt(w.value,Array.isArray(m.value)?m.value[0]:null)&&x(g))},H=function(w,g){var F=g?[o.value,l.value]:[i.value,s.value],V=w<0?Dl.apply(void 0,F):th.apply(void 0,F);j(V.month,!0,g),j(V.year,!1,g)};return{today:n,hours:u,month:i,year:s,monthNext:o,yearNext:l,minutes:d,seconds:f,monthYearSelect:function(){var w=arguments.length>0&&arguments[0]!==void 0&&arguments[0];t.autoApply&&t.monthPicker&&e("autoApply",w)},isDisabled:S,updateTime:function(w){var g=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],F=arguments.length>2&&arguments[2]!==void 0&&arguments[2];g?u.value=w:g||F?F&&(f.value=w):d.value=w,m.value?b(m.value):t.timePicker&&b(t.range?[new Date,new Date]:new Date)},setHoverDate:function(w){!w.current&&t.hideOffsetDates||(r.value=w.value)},getWeekNum:function(w){var g=w.find(function(F){return F.current});return g?sI(g.value):""},selectDate:function(w){var g=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!S(w.value)&&(w.current||!t.hideOffsetDates))if(t.range||Bn(u.value)||Bn(d.value)){if(Bn(u.value)&&Bn(d.value)){var F=m.value?m.value.slice():[];F.length===2&&(F=[]),t.autoRange?(g&&k(w.value),F=[new Date(w.value),Nr(new Date(w.value),+t.autoRange)]):F[0]?nn(new Date(w.value),new Date(F[0]))?F.unshift(new Date(w.value)):F[1]=new Date(w.value):F[0]=new Date(w.value),F[0]&&!F[1]?F[0]=At(F[0],u.value[0],d.value[0],p()):(F[0]=At(F[0],u.value[0],d.value[0],p()),F[1]=At(F[1],u.value[1],d.value[1],p(!1))),m.value=F,F[0]&&F[1]&&t.autoApply&&e("autoApply")}}else m.value=At(new Date(w.value),u.value,d.value,p()),t.autoApply&&e("autoApply")},rangeActive:function(w){return di(m.value)&&m.value[0]&&m.value[1]?Fn(w.value,m.value[0])&&nn(w.value,m.value[1]):!!(di(m.value)&&m.value[0]&&r.value)&&(Fn(w.value,m.value[0])&&nn(w.value,r.value)||nn(w.value,m.value[0])&&Fn(w.value,r.value))},isActiveDate:T,updateMonthYear:j,isHoverRangeEnd:function(w){if(t.autoRange){if(r.value){if(t.hideOffsetDates&&!w.current)return!1;var g=Nr(r.value,+t.autoRange);return Lt(g,new Date(w.value))}return!1}return!1},isAutoRangeInBetween:function(w){if(t.autoRange){if(r.value){var g=Nr(r.value,+t.autoRange);return!(t.hideOffsetDates&&!w.current)&&Fn(w.value,r.value)&&nn(w.value,g)}return!1}return!1},isAutoRangeStart:function(w){return!!t.autoRange&&!!r.value&&!(t.hideOffsetDates&&!w.current)&&Lt(r.value,w.value)},clearHoverDate:function(){r.value=null},rangeActiveStartEnd:R,handleScroll:function(w){var g=arguments.length>1&&arguments[1]!==void 0&&arguments[1];t.monthChangeOnScroll&&H(t.monthChangeOnScroll==="inverse"?-w.deltaY:w.deltaY,g)},getMarker:function(w){return t.markers.find(function(g){return Lt(tn(new Date(w.value)),tn(new Date(g.date)))})},handleArrow:function(w){var g=arguments.length>1&&arguments[1]!==void 0&&arguments[1];t.monthChangeOnArrows&&H(w==="right"?-1:1,g)},selectCurrentDate:function(){t.range?ah(m.value,t.range)&&(m.value&&m.value[0]?m.value=nn(new Date,m.value[0])?[new Date,m.value[0]]:[m.value[0],new Date]:m.value=[new Date]):e("update:internalModelValue",new Date),t.autoApply&&e("selectDate")},isHoverDate:function(w,g){return(!Array.isArray(t.internalModelValue)||!t.internalModelValue.length)&&!(w||T(g)||!g.current&&t.hideOffsetDates||t.range&&(R(g)||R(g,!1)))},isHoverDateStartEnd:function(w,g,F){return!(!Array.isArray(t.internalModelValue)||!t.internalModelValue[0]||t.internalModelValue.length!==1)&&!w&&(F?Fn(t.internalModelValue[0],g.value):nn(t.internalModelValue[0],g.value))}}};function ch(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function yo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ch(Object(n),!0).forEach(function(r){Zn(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ch(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Ss,U1=["id","onKeydown"],H1={key:2,class:"dp__now_wrap"},F1=Gt({props:{internalModelValue:{type:[Date,Array],default:null},weekNumbers:{type:Boolean,default:!1},weekStart:{type:[Number,String],default:1},disableMonthYearSelect:{type:Boolean,default:!1},menuClassName:{type:String,default:null},calendarClassName:{type:String,default:null},yearRange:{type:Array,default:function(){return[1970,2100]}},range:{type:Boolean,default:!1},twoCalendars:{type:Boolean,default:!1},twoCalendarsSolo:{type:Boolean,default:!1},calendarCellClassName:{type:String,default:null},enableTimePicker:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},hoursIncrement:{type:[String,Number],default:1},minutesIncrement:{type:[String,Number],default:1},secondsIncrement:{type:[String,Number],default:1},hoursGridIncrement:{type:[String,Number],default:1},secondsGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},autoApply:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:function(){return null}},locale:{type:String,default:"en-US"},weekNumName:{type:String,default:"W"},disabledDates:{type:[Array,Function],default:function(){return[]}},filters:{type:Object,default:function(){return{}}},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},inline:{type:Boolean,default:!1},openOnTop:{type:Boolean,default:!1},monthPicker:{type:Boolean,default:!1},timePicker:{type:Boolean,default:!1},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},monthYearComponent:{type:Object,default:null},timePickerComponent:{type:Object,default:null},actionRowComponent:{type:Object,default:null},customProps:{type:Object,default:null},hideOffsetDates:{type:Boolean,default:!1},autoRange:{type:[Number,String],default:null},noToday:{type:Boolean,default:!1},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:function(){return[]}},allowedDates:{type:Array,default:function(){return[]}},showNowButton:{type:Boolean,default:!1},nowButtonLabel:{type:String,default:"Now"},monthChangeOnScroll:{type:[Boolean,String],default:!0},markers:{type:Array,default:function(){return[]}},uid:{type:String,default:null},modeHeight:{type:[Number,String],default:255},enableSeconds:{type:Boolean,default:!1},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},textInput:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},emits:["update:internalModelValue","closePicker","selectDate","dpOpen","autoApply","timeUpdate"],setup:function(t,e){var n=e.emit,r=t,i=js(),s=Se(null),o=Se(null),l=Se(0),u=Se(!1);Wr(function(){u.value=!0;var N=$t(s);N&&(l.value=N.getBoundingClientRect().width),r.inline||da(function(){return n("dpOpen")});var J=$t(o);!J||r.textInput||r.inline||J.focus({preventScroll:!0}),J&&J.addEventListener("pointerdown",function(U){U.stopImmediatePropagation()})});var d=B1(r,n),f=d.updateTime,p=d.updateMonthYear,v=d.today,m=d.month,S=d.year,T=d.monthNext,A=d.yearNext,O=d.hours,k=d.minutes,C=d.seconds,D=d.isDisabled,B=d.isActiveDate,j=d.selectDate,b=d.getWeekNum,x=d.setHoverDate,R=d.isHoverRangeEnd,H=d.isAutoRangeInBetween,w=d.isAutoRangeStart,g=d.rangeActive,F=d.clearHoverDate,V=d.rangeActiveStartEnd,ae=d.monthYearSelect,ee=d.handleScroll,G=d.handleArrow,le=d.getMarker,Te=d.selectCurrentDate,He=d.isHoverDateStartEnd,Ue=d.isHoverDate,We=Br(i,"calendar"),xe=Br(i,"action"),qe=ce(function(){return r.openOnTop?"dp__arrow_bottom":"dp__arrow_top"}),L=ce(function(){return function(N){for(var J=[],U=+N[0];U<=+N[1];U++)J.push({value:+U,text:"".concat(U)});return J}(r.yearRange)}),re=ce(function(){return function(N,J){var U=new Intl.DateTimeFormat(N,{month:J,timeZone:"UTC"});return[1,2,3,4,5,6,7,8,9,10,11,12].map(function(ie){var ne=ie<10?"0".concat(ie):ie;return new Date("2017-".concat(ne,"-01T00:00:00+00:00"))}).map(function(ie,ne){return{text:U.format(ie),value:ne}})}(r.locale,r.monthNameFormat)}),z=ce(function(){return rh(m.value,S.value,+r.weekStart,r.hideOffsetDates)}),se=ce(function(){return rh(T.value,A.value,+r.weekStart,r.hideOffsetDates)}),be=ce(function(){return r.twoCalendars&&r.range?[1,2]:[1]}),ve=ce(function(){return function(N){return N===1}}),de=ce(function(){return r.monthPicker||r.timePicker}),pe=ce(function(){return{dp__calendar_wrapper:!0,dp__flex_display:r.twoCalendars}}),y=ce(function(){return{dp__menu_disabled:r.disabled,dp__menu_readonly:r.readonly}}),E=ce(function(){return X(z)}),P=ce(function(){return X(se)}),M=ce(function(){return{locale:r.locale,weekNumName:r.weekNumName,weekStart:r.weekStart,weekNumbers:r.weekNumbers,enableTimePicker:r.enableTimePicker,disableMonthYearSelect:r.disableMonthYearSelect,is24:r.is24,hoursIncrement:r.hoursIncrement,minutesIncrement:r.minutesIncrement,secondsIncrement:r.secondsIncrement,hoursGridIncrement:r.hoursGridIncrement,minutesGridIncrement:r.minutesGridIncrement,secondsGridIncrement:r.secondsGridIncrement,monthPicker:r.monthPicker,timePicker:r.timePicker,range:r.range,filters:r.filters,minTime:r.minTime,maxTime:r.maxTime,customProps:r.customProps,hours:O.value,minutes:k.value,seconds:C.value,calendarClassName:r.calendarClassName,specificMode:de.value,getWeekNum:b,twoCalendars:r.twoCalendars,months:re.value,years:L.value,noHoursOverlay:r.noHoursOverlay,noMinutesOverlay:r.noMinutesOverlay,noSecondsOverlay:r.noSecondsOverlay,twoCalendarsSolo:r.twoCalendarsSolo,modeHeight:r.modeHeight,enableSeconds:r.enableSeconds}}),$=ce(function(){var N;return Zn(N={dp__menu:!0},r.menuClassName,!!r.menuClassName),Zn(N,"dp__relative",r.inline),N}),X=function(N){return N.value.map(function(J){return yo(yo({},J),{},{days:J.days.map(function(U){var ie=D(U.value),ne=Ue(ie,U);return U.marker=le(U),U.classData=Zn({dp__cell_offset:!U.current,dp__pointer:!(ie||!U.current&&r.hideOffsetDates),dp__active_date:!r.range&&B(U),dp__date_hover:ne,dp__date_hover_start:He(ne,U,!0),dp__date_hover_end:He(ne,U,!1),dp__range_between:!(!r.range||r.twoCalendars&&!U.current||ie||!U.current&&r.hideOffsetDates||B(U))&&g(U),dp__today:!r.noToday&&Lt(U.value,v.value),dp__cell_disabled:ie,dp__cell_auto_range:H(U),dp__cell_auto_range_start:w(U),dp__cell_auto_range_end:R(U),dp__range_start:r.twoCalendars?U.current&&V(U):V(U),dp__range_end:r.twoCalendars?U.current&&V(U,!1):V(U,!1)},r.calendarCellClassName,!!r.calendarCellClassName),U})})})},Q=function(N){N.stopImmediatePropagation()},q=function(){r.escClose&&n("closePicker")},te=function(N){N.stopImmediatePropagation(),N.preventDefault(),r.spaceConfirm&&n("selectDate")};return function(N,J){return K(),oe("div",{id:t.uid?"dp-menu-".concat(t.uid):void 0,tabindex:"0",ref_key:"dpMenuRef",ref:o,role:"dialog","aria-label":"Datepicker menu",class:Ve(I($)),onMouseleave:J[7]||(J[7]=function(){return I(F)&&I(F).apply(void 0,arguments)}),onClick:Q,onKeydown:[Fe(q,["esc"]),Fe(te,["space"]),J[8]||(J[8]=Fe(function(U){return I(G)("left",!1)},["left"])),J[9]||(J[9]=Fe(function(U){return I(G)("right",!1)},["right"]))]},[(t.disabled||t.readonly)&&t.inline?(K(),oe("div",{key:0,class:Ve(I(y))},null,2)):W("",!0),t.inline?W("",!0):(K(),oe("div",{key:1,class:Ve(I(qe))},null,2)),fe("div",{class:Ve(I(pe)),ref_key:"calendarWrapperRef",ref:s,role:"document"},[(K(!0),oe(Me,null,dt(I(be),function(U){return K(),Pe(x1,wt(I(M),{key:U,instance:U,"mapped-dates":I(ve)(U)?I(E):I(P),month:I(ve)(U)?I(m):I(T),year:I(ve)(U)?I(S):I(A),"month-year-component":t.monthYearComponent,"time-picker-component":t.timePickerComponent,"onUpdate:hours":J[0]||(J[0]=function(ie){return I(f)(ie)}),"onUpdate:minutes":J[1]||(J[1]=function(ie){return I(f)(ie,!1)}),"onUpdate:seconds":J[2]||(J[2]=function(ie){return I(f)(ie,!1,!0)}),"onUpdate:month":function(ie){return I(p)(ie,!0,!I(ve)(U))},"onUpdate:year":function(ie){return I(p)(ie,!1,!I(ve)(U))},onMonthYearSelect:I(ae),onSelectDate:function(ie){return I(j)(ie,!I(ve)(U))},onSetHoverDate:J[3]||(J[3]=function(ie){return I(x)(ie)}),onHandleScroll:function(ie){return I(ee)(ie,!I(ve)(U))}}),ft({_:2},[dt(I(We),function(ie,ne){return{name:ie,fn:$e(function(ye){return[he(N.$slots,ie,An(un(yo({},ye))))]})}})]),1040,["instance","mapped-dates","month","year","month-year-component","time-picker-component","onUpdate:month","onUpdate:year","onMonthYearSelect","onSelectDate","onHandleScroll"])}),128))],2),t.showNowButton?(K(),oe("div",H1,[N.$slots["now-button"]?he(N.$slots,"now-button",{key:0,selectCurrentDate:I(Te)}):W("",!0),N.$slots["now-button"]?W("",!0):(K(),oe("button",{key:1,type:"button",role:"button",class:"dp__now_button",onClick:J[4]||(J[4]=function(){return I(Te)&&I(Te).apply(void 0,arguments)})},st(t.nowButtonLabel),1))])):W("",!0),t.autoApply?W("",!0):(K(),Pe(rc(t.actionRowComponent?t.actionRowComponent:$1),wt({key:3},{calendarWidth:l.value,selectText:t.selectText,cancelText:t.cancelText,internalModelValue:t.internalModelValue,range:t.range,previewFormat:t.previewFormat,inline:t.inline,monthPicker:t.monthPicker,timePicker:t.timePicker,customProps:t.customProps,twoCalendars:t.twoCalendars,menuMount:u.value,maxTime:t.maxTime,minTime:t.minTime,enableTimePicker:t.enableTimePicker},{onClosePicker:J[5]||(J[5]=function(U){return N.$emit("closePicker")}),onSelectDate:J[6]||(J[6]=function(U){return N.$emit("selectDate")})}),ft({_:2},[dt(I(xe),function(U,ie){return{name:U,fn:$e(function(ne){return[he(N.$slots,U,An(un(yo({},ne))))]})}})]),1040))],42,U1)}}});(function(t){t.center="center",t.left="left",t.right="right"})(Ss||(Ss={}));var V1=function(t,e,n,r,i,s,o,l,u,d){var f=Se(""),p=Se();cn(p,function(){d("internalModelChange",p.value)});var v=function(){if(p.value)if(t&&typeof t!="string")f.value=t(e?Ec(p.value):n?wc(p.value):p.value);else{var m=Mg(t,s,l,n,e,o);f.value=_r(p.value,m,u==null?void 0:u.value)}else f.value=""};return{parseExternalModelValue:function(m){var S=null;m?e?function(T){return Array.isArray(T)&&T.length===2}(m)&&"hours"in m[0]&&"minutes"in m[0]?S=[At(null,+m[0].hours,+m[0].minutes,+m[0].seconds),At(null,+m[1].hours,+m[1].minutes,+m[1].seconds)]:function(T){return Cs(T)==="object"}(m)&&(S=At(null,+m.hours,+m.minutes,+m.seconds)):n?function(T){return Cs(T)==="object"}(m)&&"month"in m&&"year"in m&&(S=Mr(null,+m.month,+m.year)):r?function(T,A){return A?Array.isArray(T):Cc(T)}(m,i)&&(S=[new Date(m[0]),m[1]?new Date(m[1]):null]):function(T){return typeof T=="string"||Cs(T)==="object"}(m)&&(S=new Date(m)):S=null,bc(S)?(p.value=S,v()):(p.value=null,f.value="")},formatInputValue:v,internalModelValue:p,inputValue:f,emitModelValue:function(){n?d("update:modelValue",wc(p.value)):e?d("update:modelValue",Ec(p.value)):(r&&i&&p.value.length===1&&p.value.push(null),d("update:modelValue",p.value)),v()},checkBeforeEmit:function(){return!!p.value&&(r?i?p.value.length>=1:p.value.length===2:!!p.value)}}},j1=typeof window!="undefined"?window:void 0,xl=function(){},W1=function(t,e,n,r){if(!t)return xl;var i,s=xl,o=cn(function(){return I(t)},function(u){s(),u&&(u.addEventListener(e,n,r),s=function(){u.removeEventListener(e,n,r),s=xl})},{immediate:!0,flush:"post"}),l=function(){o(),s()};return i=l,Cb()&&Sb(i),l};function uh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function q1(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?uh(Object(n),!0).forEach(function(r){Zn(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):uh(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Y1=Gt({props:{uid:{type:String,default:null},is24:{type:Boolean,default:!0},enableTimePicker:{type:Boolean,default:!0},locale:{type:String,default:"en-US"},range:{type:Boolean,default:!1},twoCalendars:{type:Boolean,default:!1},twoCalendarsSolo:{type:Boolean,default:!1},modelValue:{type:[String,Date,Array,Object],default:null},position:{type:String,default:"center"},placeholder:{type:String,default:null},weekNumbers:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},hoursIncrement:{type:[String,Number],default:1},minutesIncrement:{type:[String,Number],default:1},secondsIncrement:{type:[String,Number],default:1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},weekStart:{type:[String,Number],default:1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},monthNameFormat:{type:String,default:"short"},weekNumName:{type:String,default:"W"},format:{type:[String,Function],default:function(){return null}},previewFormat:{type:[String,Function],default:function(){return null}},inputClassName:{type:String,default:null},menuClassName:{type:String,default:null},calendarClassName:{type:String,default:null},calendarCellClassName:{type:String,default:null},hideInputIcon:{type:Boolean,default:!1},state:{type:Boolean,default:null},clearable:{type:Boolean,default:!0},closeOnScroll:{type:Boolean,default:!1},autoApply:{type:Boolean,default:!1},filters:{type:Object,default:function(){return{}}},disableMonthYearSelect:{type:Boolean,default:!1},yearRange:{type:Array,default:function(){return[1900,2100]}},disabledDates:{type:[Array,Function],default:function(){return[]}},disabledWeekDays:{type:Array,default:function(){return[]}},inline:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},autoPosition:{type:Boolean,default:!0},monthPicker:{type:Boolean,default:!1},timePicker:{type:Boolean,default:!1},closeOnAutoApply:{type:Boolean,default:!0},textInput:{type:Boolean,default:!1},textInputOptions:{type:Object,default:function(){return{}}},teleport:{type:String,default:"body"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},monthYearComponent:{type:Object,default:null},timePickerComponent:{type:Object,default:null},actionRowComponent:{type:Object,default:null},customProps:{type:Object,default:null},hideOffsetDates:{type:Boolean,default:!1},autoRange:{type:[Number,String],default:null},noToday:{type:Boolean,default:!1},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},altPosition:{type:Boolean,default:!1},allowedDates:{type:Array,default:function(){return[]}},showNowButton:{type:Boolean,default:!1},nowButtonLabel:{type:String,default:"Now"},partialRange:{type:Boolean,default:!0},monthChangeOnScroll:{type:[Boolean,String],default:!0},markers:{type:Array,default:function(){return[]}},transitions:{type:Boolean,default:!0},modeHeight:{type:[Number,String],default:255},enableSeconds:{type:Boolean,default:!1},openMenuOnFocus:{type:Boolean,default:!0},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},formatLocale:{type:Object,default:null}},emits:["update:modelValue","textSubmit","closed","cleared","open","focus","blur","internalModelChange"],setup:function(t,e){var n=e.expose,r=e.emit,i=t,s=js(),o=Se(!1),l=$o(i,"modelValue"),u=Se(null),d=Se(null);Ir("autoApply",i.autoApply);var f=ce(function(){return i.formatLocale});Ir("formatLocale",f),Wr(function(){B(i.modelValue),i.inline||(window.addEventListener("scroll",ee),window.addEventListener("resize",G)),i.inline&&(o.value=!0)}),ma(function(){i.inline||(window.removeEventListener("scroll",ee),window.removeEventListener("resize",G))});var p=Br(s,"all"),v=Br(s,"input");cn(l,function(){B(l.value)},{deep:!0});var m=function(re,z,se,be){var ve=Se({top:"0",left:"0",transform:"none"}),de=Se(!1),pe=function(M){var $=M.getBoundingClientRect();return{left:$.left+window.scrollX,top:$.top+window.scrollY}},y=function(M){for(var $=0,X=0;M&&!isNaN(M.offsetLeft)&&!isNaN(M.offsetTop);)$+=M.offsetLeft-M.scrollLeft,X+=M.offsetTop-M.scrollTop,M=M.offsetParent;return{top:X,left:$}},E=function(){var M=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],$=$t(be);if($){var X=$.getBoundingClientRect(),Q=X.left,q=X.width,te=X.height,N=(z?y($):pe($)).top,J={top:"".concat(te+N+10,"px"),left:"",transform:"none"};re===Ss.left&&(J.left="".concat(Q,"px")),re===Ss.right&&(J.left="".concat(Q+q,"px"),J.transform="translateX(-100%)"),re===Ss.center&&(J.left="".concat(Q+q/2,"px"),J.transform="translateX(-50%)"),ve.value=J,M&&P()}},P=function(){var M=$t(be);if(M){var $=M.getBoundingClientRect(),X=$.height,Q=$.top,q=(z?y(M):pe(M)).top,te=window.innerHeight-Q-X,N=$t(se);if(N){var J=N.getBoundingClientRect().height,U=J+X;U>Q&&U>te?Q<te&&(E(!1),de.value=!1):U>te?(ve.value.top="".concat(q-J-10,"px"),de.value=!0):(E(!1),de.value=!1)}}};return{openOnTop:de,menuPosition:ve,setMenuPosition:E,recalculatePosition:P}}(i.position,i.altPosition,u,d),S=m.openOnTop,T=m.menuPosition,A=m.setMenuPosition,O=m.recalculatePosition,k=V1(i.format,i.timePicker,i.monthPicker,i.range,i.partialRange,i.is24,i.enableTimePicker,i.enableSeconds,f,r),C=k.internalModelValue,D=k.inputValue,B=k.parseExternalModelValue,j=k.emitModelValue,b=k.checkBeforeEmit,x=ce(function(){return{dp__main:!0,dp__theme_dark:i.dark,dp__theme_light:!i.dark,dp__flex_display:i.inline}}),R=ce(function(){return lh(i.format)?i.format:Mg(null,i.is24,i.enableSeconds,i.monthPicker,i.timePicker,i.enableTimePicker)}),H=ce(function(){return i.previewFormat?i.previewFormat:lh(R.value)?R.value:i.format}),w=ce(function(){return typeof i.transitions=="boolean"?!!i.transitions&&ih({}):ih(i.transitions)});Ir("transitions",w);var g=ce(function(){return i.dark?"dp__theme_dark":"dp__theme_light"}),F=ce(function(){return Object.assign({enterSubmit:!0,tabSubmit:!0,openMenu:!0,rangeSeparator:"-"},i.textInputOptions)}),V=ce(function(){return re=i.filters,Object.assign({months:[],years:[],times:{hours:[],minutes:[],seconds:[]}},re);var re}),ae=ce(function(){var re=function(z){var se={hours:jt(new Date),minutes:Wt(new Date),seconds:Xn(new Date)};return Object.assign(se,z)};return i.range?i.startTime&&Array.isArray(i.startTime)?[re(i.startTime[0]),re(i.startTime[1])]:null:i.startTime&&!Array.isArray(i.startTime)?re(i.startTime):null}),ee=function re(){o.value&&(i.closeOnScroll?xe():i.autoPosition?A():window.removeEventListener("scroll",re))},G=function(){o.value&&A()},le=function(){i.disabled||i.readonly||(A(),o.value=!o.value,o.value||We(),o.value&&(r("open"),r("focus")),B(i.modelValue))},Te=function(){D.value="",We(),r("update:modelValue",null),r("cleared"),xe()},He=function(){b()&&(j(),xe())},Ue=function(){var re=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.autoApply){var z=!i.enableTimePicker||Tc(C.value,i.maxTime,i.minTime);z&&(j(),i.closeOnAutoApply&&!re&&xe())}},We=function(){C.value=null},xe=function(){i.inline||(o.value&&(o.value=!1,r("closed"),r("blur")),We(),d.value&&d.value.unFocus())},qe=function(re,z){re?(C.value=re,z&&(He(),r("textSubmit"))):C.value=null},L=function(){i.autoApply&&Tc(C.value,i.maxTime,i.minTime)&&j()};return function(re,z,se){var be=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},ve=be.window,de=ve===void 0?j1:ve,pe=be.event,y=pe===void 0?"pointerdown":pe;if(de){var E=function(P){var M=$t(re),$=$t(z);M&&$&&(M===P.target||P.composedPath().includes(M)||P.composedPath().includes($)||se(P))};W1(de,y,E,{passive:!0})}}(u,d,xe),n({closeMenu:xe,selectDate:He,clearValue:Te,openMenu:le,onScroll:ee}),function(re,z){return K(),oe("div",{class:Ve(I(x))},[Qe(ZI,wt({ref_key:"inputRef",ref:d},{placeholder:t.placeholder,hideInputIcon:t.hideInputIcon,readonly:t.readonly,disabled:t.disabled,inputClassName:t.inputClassName,clearable:t.clearable,state:t.state,inline:t.inline,textInput:t.textInput,textInputOptions:I(F),range:t.range,isMenuOpen:o.value,pattern:I(R),autoApply:t.autoApply,uid:t.uid,openMenuOnFocus:t.openMenuOnFocus,required:t.required},{"input-value":I(D),"onUpdate:input-value":z[0]||(z[0]=function(se){return Xe(D)?D.value=se:null}),onClear:Te,onOpen:le,onSetInputDate:qe,onSetEmptyDate:I(j),onSelectDate:He,onClose:xe}),ft({_:2},[dt(I(v),function(se,be){return{name:se,fn:$e(function(ve){return[he(re.$slots,se,An(un(ve)))]})}})]),1040,["input-value","onSetEmptyDate"]),o.value?(K(),Pe(zw,{key:0,to:t.teleport,disabled:t.inline},[o.value?(K(),Pe(F1,wt({key:0,ref_key:"dpMenuRef",ref:u,class:I(g),style:I(T)},{weekNumbers:t.weekNumbers,weekStart:t.weekStart,disableMonthYearSelect:t.disableMonthYearSelect,menuClassName:t.menuClassName,calendarClassName:t.calendarClassName,yearRange:t.yearRange,range:t.range,twoCalendars:t.twoCalendars,calendarCellClassName:t.calendarCellClassName,enableTimePicker:t.enableTimePicker,is24:t.is24,hoursIncrement:t.hoursIncrement,minutesIncrement:t.minutesIncrement,hoursGridIncrement:t.hoursGridIncrement,minutesGridIncrement:t.minutesGridIncrement,minDate:t.minDate,maxDate:t.maxDate,autoApply:t.autoApply,selectText:t.selectText,cancelText:t.cancelText,previewFormat:I(H),locale:t.locale,weekNumName:t.weekNumName,disabledDates:t.disabledDates,filters:I(V),minTime:t.minTime,maxTime:t.maxTime,inline:t.inline,openOnTop:I(S),monthPicker:t.monthPicker,timePicker:t.timePicker,monthNameFormat:t.monthNameFormat,startDate:t.startDate,startTime:I(ae),monthYearComponent:t.monthYearComponent,timePickerComponent:t.timePickerComponent,actionRowComponent:t.actionRowComponent,customProps:t.customProps,hideOffsetDates:t.hideOffsetDates,autoRange:t.autoRange,noToday:t.noToday,noHoursOverlay:t.noHoursOverlay,noMinutesOverlay:t.noMinutesOverlay,twoCalendarsSolo:t.twoCalendarsSolo,disabledWeekDays:t.disabledWeekDays,allowedDates:t.allowedDates,showNowButton:t.showNowButton,nowButtonLabel:t.nowButtonLabel,monthChangeOnScroll:t.monthChangeOnScroll,markers:t.markers,uid:t.uid,modeHeight:t.modeHeight,enableSeconds:t.enableSeconds,secondsIncrement:t.secondsIncrement,secondsGridIncrement:t.secondsGridIncrement,noSecondsOverlay:t.noSecondsOverlay,escClose:t.escClose,spaceConfirm:t.spaceConfirm,monthChangeOnArrows:t.monthChangeOnArrows,textInput:t.textInput,disabled:t.disabled,readonly:t.readonly},{internalModelValue:I(C),"onUpdate:internalModelValue":z[1]||(z[1]=function(se){return Xe(C)?C.value=se:null}),onClosePicker:xe,onSelectDate:He,onDpOpen:I(O),onAutoApply:Ue,onTimeUpdate:L}),ft({_:2},[dt(I(p),function(se,be){return{name:se,fn:$e(function(ve){return[he(re.$slots,se,An(un(q1({},ve))))]})}})]),1040,["class","style","internalModelValue","onDpOpen"])):W("",!0)],8,["to","disabled"])):W("",!0)],2)}}}),xx=function(){var t=Y1;return t.install=function(e){e.component("Vue3DatePicker",t)},t}(),vt="top",Pt="bottom",Nt="right",yt="left",Ma="auto",Wi=[vt,Pt,Nt,yt],Ur="start",Pi="end",Rg="clippingParents",Su="viewport",fi="popper",Lg="reference",Sc=Wi.reduce(function(t,e){return t.concat([e+"-"+Ur,e+"-"+Pi])},[]),Au=[].concat(Wi,[Ma]).reduce(function(t,e){return t.concat([e,e+"-"+Ur,e+"-"+Pi])},[]),$g="beforeRead",Bg="read",Ug="afterRead",Hg="beforeMain",Fg="main",Vg="afterMain",jg="beforeWrite",Wg="write",qg="afterWrite",Yg=[$g,Bg,Ug,Hg,Fg,Vg,jg,Wg,qg];function gn(t){return t?(t.nodeName||"").toLowerCase():null}function Xt(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ni(t){var e=Xt(t).Element;return t instanceof e||t instanceof Element}function Ht(t){var e=Xt(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Ou(t){if(typeof ShadowRoot=="undefined")return!1;var e=Xt(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function K1(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},s=e.elements[n];!Ht(s)||!gn(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(o){var l=i[o];l===!1?s.removeAttribute(o):s.setAttribute(o,l===!0?"":l)}))})}function z1(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],s=e.attributes[r]||{},o=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),l=o.reduce(function(u,d){return u[d]="",u},{});!Ht(i)||!gn(i)||(Object.assign(i.style,l),Object.keys(s).forEach(function(u){i.removeAttribute(u)}))})}}var Iu={name:"applyStyles",enabled:!0,phase:"write",fn:K1,effect:z1,requires:["computeStyles"]};function pn(t){return t.split("-")[0]}var Rr=Math.max,na=Math.min,xi=Math.round;function Mi(t,e){e===void 0&&(e=!1);var n=t.getBoundingClientRect(),r=1,i=1;if(Ht(t)&&e){var s=t.offsetHeight,o=t.offsetWidth;o>0&&(r=xi(n.width)/o||1),s>0&&(i=xi(n.height)/s||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function ku(t){var e=Mi(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function Kg(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Ou(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function kn(t){return Xt(t).getComputedStyle(t)}function G1(t){return["table","td","th"].indexOf(gn(t))>=0}function ir(t){return((Ni(t)?t.ownerDocument:t.document)||window.document).documentElement}function Ra(t){return gn(t)==="html"?t:t.assignedSlot||t.parentNode||(Ou(t)?t.host:null)||ir(t)}function dh(t){return!Ht(t)||kn(t).position==="fixed"?null:t.offsetParent}function X1(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Ht(t)){var r=kn(t);if(r.position==="fixed")return null}var i=Ra(t);for(Ou(i)&&(i=i.host);Ht(i)&&["html","body"].indexOf(gn(i))<0;){var s=kn(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Qs(t){for(var e=Xt(t),n=dh(t);n&&G1(n)&&kn(n).position==="static";)n=dh(n);return n&&(gn(n)==="html"||gn(n)==="body"&&kn(n).position==="static")?e:n||X1(t)||e}function Du(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function As(t,e,n){return Rr(t,na(e,n))}function J1(t,e,n){var r=As(t,e,n);return r>n?n:r}function zg(){return{top:0,right:0,bottom:0,left:0}}function Gg(t){return Object.assign({},zg(),t)}function Xg(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var Q1=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Gg(typeof e!="number"?e:Xg(e,Wi))};function Z1(t){var e,n=t.state,r=t.name,i=t.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,l=pn(n.placement),u=Du(l),d=[yt,Nt].indexOf(l)>=0,f=d?"height":"width";if(!(!s||!o)){var p=Q1(i.padding,n),v=ku(s),m=u==="y"?vt:yt,S=u==="y"?Pt:Nt,T=n.rects.reference[f]+n.rects.reference[u]-o[u]-n.rects.popper[f],A=o[u]-n.rects.reference[u],O=Qs(s),k=O?u==="y"?O.clientHeight||0:O.clientWidth||0:0,C=T/2-A/2,D=p[m],B=k-v[f]-p[S],j=k/2-v[f]/2+C,b=As(D,j,B),x=u;n.modifiersData[r]=(e={},e[x]=b,e.centerOffset=b-j,e)}}function ek(t){var e=t.state,n=t.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||!Kg(e.elements.popper,i)||(e.elements.arrow=i))}var Jg={name:"arrow",enabled:!0,phase:"main",fn:Z1,effect:ek,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ri(t){return t.split("-")[1]}var tk={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nk(t){var e=t.x,n=t.y,r=window,i=r.devicePixelRatio||1;return{x:xi(e*i)/i||0,y:xi(n*i)/i||0}}function fh(t){var e,n=t.popper,r=t.popperRect,i=t.placement,s=t.variation,o=t.offsets,l=t.position,u=t.gpuAcceleration,d=t.adaptive,f=t.roundOffsets,p=t.isFixed,v=o.x,m=v===void 0?0:v,S=o.y,T=S===void 0?0:S,A=typeof f=="function"?f({x:m,y:T}):{x:m,y:T};m=A.x,T=A.y;var O=o.hasOwnProperty("x"),k=o.hasOwnProperty("y"),C=yt,D=vt,B=window;if(d){var j=Qs(n),b="clientHeight",x="clientWidth";if(j===Xt(n)&&(j=ir(n),kn(j).position!=="static"&&l==="absolute"&&(b="scrollHeight",x="scrollWidth")),j=j,i===vt||(i===yt||i===Nt)&&s===Pi){D=Pt;var R=p&&j===B&&B.visualViewport?B.visualViewport.height:j[b];T-=R-r.height,T*=u?1:-1}if(i===yt||(i===vt||i===Pt)&&s===Pi){C=Nt;var H=p&&j===B&&B.visualViewport?B.visualViewport.width:j[x];m-=H-r.width,m*=u?1:-1}}var w=Object.assign({position:l},d&&tk),g=f===!0?nk({x:m,y:T}):{x:m,y:T};if(m=g.x,T=g.y,u){var F;return Object.assign({},w,(F={},F[D]=k?"0":"",F[C]=O?"0":"",F.transform=(B.devicePixelRatio||1)<=1?"translate("+m+"px, "+T+"px)":"translate3d("+m+"px, "+T+"px, 0)",F))}return Object.assign({},w,(e={},e[D]=k?T+"px":"",e[C]=O?m+"px":"",e.transform="",e))}function rk(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,o=s===void 0?!0:s,l=n.roundOffsets,u=l===void 0?!0:l,d={placement:pn(e.placement),variation:Ri(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,fh(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:u})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,fh(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Pu={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:rk,data:{}},_o={passive:!0};function ik(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,s=i===void 0?!0:i,o=r.resize,l=o===void 0?!0:o,u=Xt(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&d.forEach(function(f){f.addEventListener("scroll",n.update,_o)}),l&&u.addEventListener("resize",n.update,_o),function(){s&&d.forEach(function(f){f.removeEventListener("scroll",n.update,_o)}),l&&u.removeEventListener("resize",n.update,_o)}}var Nu={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ik,data:{}},sk={left:"right",right:"left",bottom:"top",top:"bottom"};function xo(t){return t.replace(/left|right|bottom|top/g,function(e){return sk[e]})}var ok={start:"end",end:"start"};function hh(t){return t.replace(/start|end/g,function(e){return ok[e]})}function xu(t){var e=Xt(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Mu(t){return Mi(ir(t)).left+xu(t).scrollLeft}function ak(t){var e=Xt(t),n=ir(t),r=e.visualViewport,i=n.clientWidth,s=n.clientHeight,o=0,l=0;return r&&(i=r.width,s=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,l=r.offsetTop)),{width:i,height:s,x:o+Mu(t),y:l}}function lk(t){var e,n=ir(t),r=xu(t),i=(e=t.ownerDocument)==null?void 0:e.body,s=Rr(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Rr(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+Mu(t),u=-r.scrollTop;return kn(i||n).direction==="rtl"&&(l+=Rr(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:l,y:u}}function Ru(t){var e=kn(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Qg(t){return["html","body","#document"].indexOf(gn(t))>=0?t.ownerDocument.body:Ht(t)&&Ru(t)?t:Qg(Ra(t))}function Os(t,e){var n;e===void 0&&(e=[]);var r=Qg(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),s=Xt(r),o=i?[s].concat(s.visualViewport||[],Ru(r)?r:[]):r,l=e.concat(o);return i?l:l.concat(Os(Ra(o)))}function Ac(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ck(t){var e=Mi(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function ph(t,e){return e===Su?Ac(ak(t)):Ni(e)?ck(e):Ac(lk(ir(t)))}function uk(t){var e=Os(Ra(t)),n=["absolute","fixed"].indexOf(kn(t).position)>=0,r=n&&Ht(t)?Qs(t):t;return Ni(r)?e.filter(function(i){return Ni(i)&&Kg(i,r)&&gn(i)!=="body"}):[]}function dk(t,e,n){var r=e==="clippingParents"?uk(t):[].concat(e),i=[].concat(r,[n]),s=i[0],o=i.reduce(function(l,u){var d=ph(t,u);return l.top=Rr(d.top,l.top),l.right=na(d.right,l.right),l.bottom=na(d.bottom,l.bottom),l.left=Rr(d.left,l.left),l},ph(t,s));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Zg(t){var e=t.reference,n=t.element,r=t.placement,i=r?pn(r):null,s=r?Ri(r):null,o=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,u;switch(i){case vt:u={x:o,y:e.y-n.height};break;case Pt:u={x:o,y:e.y+e.height};break;case Nt:u={x:e.x+e.width,y:l};break;case yt:u={x:e.x-n.width,y:l};break;default:u={x:e.x,y:e.y}}var d=i?Du(i):null;if(d!=null){var f=d==="y"?"height":"width";switch(s){case Ur:u[d]=u[d]-(e[f]/2-n[f]/2);break;case Pi:u[d]=u[d]+(e[f]/2-n[f]/2);break}}return u}function Li(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=r===void 0?t.placement:r,s=n.boundary,o=s===void 0?Rg:s,l=n.rootBoundary,u=l===void 0?Su:l,d=n.elementContext,f=d===void 0?fi:d,p=n.altBoundary,v=p===void 0?!1:p,m=n.padding,S=m===void 0?0:m,T=Gg(typeof S!="number"?S:Xg(S,Wi)),A=f===fi?Lg:fi,O=t.rects.popper,k=t.elements[v?A:f],C=dk(Ni(k)?k:k.contextElement||ir(t.elements.popper),o,u),D=Mi(t.elements.reference),B=Zg({reference:D,element:O,strategy:"absolute",placement:i}),j=Ac(Object.assign({},O,B)),b=f===fi?j:D,x={top:C.top-b.top+T.top,bottom:b.bottom-C.bottom+T.bottom,left:C.left-b.left+T.left,right:b.right-C.right+T.right},R=t.modifiersData.offset;if(f===fi&&R){var H=R[i];Object.keys(x).forEach(function(w){var g=[Nt,Pt].indexOf(w)>=0?1:-1,F=[vt,Pt].indexOf(w)>=0?"y":"x";x[w]+=H[F]*g})}return x}function fk(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=n.boundary,s=n.rootBoundary,o=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,d=u===void 0?Au:u,f=Ri(r),p=f?l?Sc:Sc.filter(function(S){return Ri(S)===f}):Wi,v=p.filter(function(S){return d.indexOf(S)>=0});v.length===0&&(v=p);var m=v.reduce(function(S,T){return S[T]=Li(t,{placement:T,boundary:i,rootBoundary:s,padding:o})[pn(T)],S},{});return Object.keys(m).sort(function(S,T){return m[S]-m[T]})}function hk(t){if(pn(t)===Ma)return[];var e=xo(t);return[hh(t),e,hh(e)]}function pk(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,l=o===void 0?!0:o,u=n.fallbackPlacements,d=n.padding,f=n.boundary,p=n.rootBoundary,v=n.altBoundary,m=n.flipVariations,S=m===void 0?!0:m,T=n.allowedAutoPlacements,A=e.options.placement,O=pn(A),k=O===A,C=u||(k||!S?[xo(A)]:hk(A)),D=[A].concat(C).reduce(function(qe,L){return qe.concat(pn(L)===Ma?fk(e,{placement:L,boundary:f,rootBoundary:p,padding:d,flipVariations:S,allowedAutoPlacements:T}):L)},[]),B=e.rects.reference,j=e.rects.popper,b=new Map,x=!0,R=D[0],H=0;H<D.length;H++){var w=D[H],g=pn(w),F=Ri(w)===Ur,V=[vt,Pt].indexOf(g)>=0,ae=V?"width":"height",ee=Li(e,{placement:w,boundary:f,rootBoundary:p,altBoundary:v,padding:d}),G=V?F?Nt:yt:F?Pt:vt;B[ae]>j[ae]&&(G=xo(G));var le=xo(G),Te=[];if(s&&Te.push(ee[g]<=0),l&&Te.push(ee[G]<=0,ee[le]<=0),Te.every(function(qe){return qe})){R=w,x=!1;break}b.set(w,Te)}if(x)for(var He=S?3:1,Ue=function(L){var re=D.find(function(z){var se=b.get(z);if(se)return se.slice(0,L).every(function(be){return be})});if(re)return R=re,"break"},We=He;We>0;We--){var xe=Ue(We);if(xe==="break")break}e.placement!==R&&(e.modifiersData[r]._skip=!0,e.placement=R,e.reset=!0)}}var ev={name:"flip",enabled:!0,phase:"main",fn:pk,requiresIfExists:["offset"],data:{_skip:!1}};function mh(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function gh(t){return[vt,Nt,Pt,yt].some(function(e){return t[e]>=0})}function mk(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,s=e.modifiersData.preventOverflow,o=Li(e,{elementContext:"reference"}),l=Li(e,{altBoundary:!0}),u=mh(o,r),d=mh(l,i,s),f=gh(u),p=gh(d);e.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:f,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}var tv={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:mk};function gk(t,e,n){var r=pn(t),i=[yt,vt].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=s[0],l=s[1];return o=o||0,l=(l||0)*i,[yt,Nt].indexOf(r)>=0?{x:l,y:o}:{x:o,y:l}}function vk(t){var e=t.state,n=t.options,r=t.name,i=n.offset,s=i===void 0?[0,0]:i,o=Au.reduce(function(f,p){return f[p]=gk(p,e.rects,s),f},{}),l=o[e.placement],u=l.x,d=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=d),e.modifiersData[r]=o}var nv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vk};function yk(t){var e=t.state,n=t.name;e.modifiersData[n]=Zg({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Lu={name:"popperOffsets",enabled:!0,phase:"read",fn:yk,data:{}};function _k(t){return t==="x"?"y":"x"}function bk(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,l=o===void 0?!1:o,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.padding,v=n.tether,m=v===void 0?!0:v,S=n.tetherOffset,T=S===void 0?0:S,A=Li(e,{boundary:u,rootBoundary:d,padding:p,altBoundary:f}),O=pn(e.placement),k=Ri(e.placement),C=!k,D=Du(O),B=_k(D),j=e.modifiersData.popperOffsets,b=e.rects.reference,x=e.rects.popper,R=typeof T=="function"?T(Object.assign({},e.rects,{placement:e.placement})):T,H=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),w=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,g={x:0,y:0};if(!!j){if(s){var F,V=D==="y"?vt:yt,ae=D==="y"?Pt:Nt,ee=D==="y"?"height":"width",G=j[D],le=G+A[V],Te=G-A[ae],He=m?-x[ee]/2:0,Ue=k===Ur?b[ee]:x[ee],We=k===Ur?-x[ee]:-b[ee],xe=e.elements.arrow,qe=m&&xe?ku(xe):{width:0,height:0},L=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:zg(),re=L[V],z=L[ae],se=As(0,b[ee],qe[ee]),be=C?b[ee]/2-He-se-re-H.mainAxis:Ue-se-re-H.mainAxis,ve=C?-b[ee]/2+He+se+z+H.mainAxis:We+se+z+H.mainAxis,de=e.elements.arrow&&Qs(e.elements.arrow),pe=de?D==="y"?de.clientTop||0:de.clientLeft||0:0,y=(F=w==null?void 0:w[D])!=null?F:0,E=G+be-y-pe,P=G+ve-y,M=As(m?na(le,E):le,G,m?Rr(Te,P):Te);j[D]=M,g[D]=M-G}if(l){var $,X=D==="x"?vt:yt,Q=D==="x"?Pt:Nt,q=j[B],te=B==="y"?"height":"width",N=q+A[X],J=q-A[Q],U=[vt,yt].indexOf(O)!==-1,ie=($=w==null?void 0:w[B])!=null?$:0,ne=U?N:q-b[te]-x[te]-ie+H.altAxis,ye=U?q+b[te]+x[te]-ie-H.altAxis:J,Ne=m&&U?J1(ne,q,ye):As(m?ne:N,q,m?ye:J);j[B]=Ne,g[B]=Ne-q}e.modifiersData[r]=g}}var rv={name:"preventOverflow",enabled:!0,phase:"main",fn:bk,requiresIfExists:["offset"]};function wk(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Ek(t){return t===Xt(t)||!Ht(t)?xu(t):wk(t)}function Tk(t){var e=t.getBoundingClientRect(),n=xi(e.width)/t.offsetWidth||1,r=xi(e.height)/t.offsetHeight||1;return n!==1||r!==1}function Ck(t,e,n){n===void 0&&(n=!1);var r=Ht(e),i=Ht(e)&&Tk(e),s=ir(e),o=Mi(t,i),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((gn(e)!=="body"||Ru(s))&&(l=Ek(e)),Ht(e)?(u=Mi(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):s&&(u.x=Mu(s))),{x:o.left+l.scrollLeft-u.x,y:o.top+l.scrollTop-u.y,width:o.width,height:o.height}}function Sk(t){var e=new Map,n=new Set,r=[];t.forEach(function(s){e.set(s.name,s)});function i(s){n.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(l){if(!n.has(l)){var u=e.get(l);u&&i(u)}}),r.push(s)}return t.forEach(function(s){n.has(s.name)||i(s)}),r}function Ak(t){var e=Sk(t);return Yg.reduce(function(n,r){return n.concat(e.filter(function(i){return i.phase===r}))},[])}function Ok(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function Ik(t){var e=t.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var vh={placement:"bottom",modifiers:[],strategy:"absolute"};function yh(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function La(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,i=e.defaultOptions,s=i===void 0?vh:i;return function(l,u,d){d===void 0&&(d=s);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},vh,s),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},p=[],v=!1,m={state:f,setOptions:function(O){var k=typeof O=="function"?O(f.options):O;T(),f.options=Object.assign({},s,f.options,k),f.scrollParents={reference:Ni(l)?Os(l):l.contextElement?Os(l.contextElement):[],popper:Os(u)};var C=Ak(Ik([].concat(r,f.options.modifiers)));return f.orderedModifiers=C.filter(function(D){return D.enabled}),S(),m.update()},forceUpdate:function(){if(!v){var O=f.elements,k=O.reference,C=O.popper;if(!!yh(k,C)){f.rects={reference:Ck(k,Qs(C),f.options.strategy==="fixed"),popper:ku(C)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(H){return f.modifiersData[H.name]=Object.assign({},H.data)});for(var D=0;D<f.orderedModifiers.length;D++){if(f.reset===!0){f.reset=!1,D=-1;continue}var B=f.orderedModifiers[D],j=B.fn,b=B.options,x=b===void 0?{}:b,R=B.name;typeof j=="function"&&(f=j({state:f,options:x,name:R,instance:m})||f)}}}},update:Ok(function(){return new Promise(function(A){m.forceUpdate(),A(f)})}),destroy:function(){T(),v=!0}};if(!yh(l,u))return m;m.setOptions(d).then(function(A){!v&&d.onFirstUpdate&&d.onFirstUpdate(A)});function S(){f.orderedModifiers.forEach(function(A){var O=A.name,k=A.options,C=k===void 0?{}:k,D=A.effect;if(typeof D=="function"){var B=D({state:f,name:O,instance:m,options:C}),j=function(){};p.push(B||j)}})}function T(){p.forEach(function(A){return A()}),p=[]}return m}}var kk=La(),Dk=[Nu,Lu,Pu,Iu],Pk=La({defaultModifiers:Dk}),Nk=[Nu,Lu,Pu,Iu,nv,ev,rv,Jg,tv],$u=La({defaultModifiers:Nk}),iv=Object.freeze(Object.defineProperty({__proto__:null,popperGenerator:La,detectOverflow:Li,createPopperBase:kk,createPopper:$u,createPopperLite:Pk,top:vt,bottom:Pt,right:Nt,left:yt,auto:Ma,basePlacements:Wi,start:Ur,end:Pi,clippingParents:Rg,viewport:Su,popper:fi,reference:Lg,variationPlacements:Sc,placements:Au,beforeRead:$g,read:Bg,afterRead:Ug,beforeMain:Hg,main:Fg,afterMain:Vg,beforeWrite:jg,write:Wg,afterWrite:qg,modifierPhases:Yg,applyStyles:Iu,arrow:Jg,computeStyles:Pu,eventListeners:Nu,flip:ev,hide:tv,offset:nv,popperOffsets:Lu,preventOverflow:rv},Symbol.toStringTag,{value:"Module"}));/*!
|
|
* Bootstrap v5.1.3 (https://getbootstrap.com/)
|
|
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
*/const xk=1e6,Mk=1e3,Oc="transitionend",Rk=t=>t==null?`${t}`:{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),Lk=t=>{do t+=Math.floor(Math.random()*xk);while(document.getElementById(t));return t},sv=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),e=n&&n!=="#"?n.trim():null}return e},Bu=t=>{const e=sv(t);return e&&document.querySelector(e)?e:null},nr=t=>{const e=sv(t);return e?document.querySelector(e):null},$k=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const r=Number.parseFloat(e),i=Number.parseFloat(n);return!r&&!i?0:(e=e.split(",")[0],n=n.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(n))*Mk)},ov=t=>{t.dispatchEvent(new Event(Oc))},Hr=t=>!t||typeof t!="object"?!1:(typeof t.jquery!="undefined"&&(t=t[0]),typeof t.nodeType!="undefined"),rr=t=>Hr(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(t):null,yn=(t,e,n)=>{Object.keys(n).forEach(r=>{const i=n[r],s=e[r],o=s&&Hr(s)?"element":Rk(s);if(!new RegExp(i).test(o))throw new TypeError(`${t.toUpperCase()}: Option "${r}" provided type "${o}" but expected type "${i}".`)})},Zs=t=>!Hr(t)||t.getClientRects().length===0?!1:getComputedStyle(t).getPropertyValue("visibility")==="visible",Lr=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled!="undefined"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",av=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?av(t.parentNode):null},ra=()=>{},qi=t=>{t.offsetHeight},lv=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},Ml=[],Bk=t=>{document.readyState==="loading"?(Ml.length||document.addEventListener("DOMContentLoaded",()=>{Ml.forEach(e=>e())}),Ml.push(t)):t()},Et=()=>document.documentElement.dir==="rtl",Ft=t=>{Bk(()=>{const e=lv();if(e){const n=t.NAME,r=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=r,t.jQueryInterface)}})},Tr=t=>{typeof t=="function"&&t()},cv=(t,e,n=!0)=>{if(!n){Tr(t);return}const r=5,i=$k(e)+r;let s=!1;const o=({target:l})=>{l===e&&(s=!0,e.removeEventListener(Oc,o),Tr(t))};e.addEventListener(Oc,o),setTimeout(()=>{s||ov(e)},i)},uv=(t,e,n,r)=>{let i=t.indexOf(e);if(i===-1)return t[!n&&r?t.length-1:0];const s=t.length;return i+=n?1:-1,r&&(i=(i+s)%s),t[Math.max(0,Math.min(i,s-1))]},Uk=/[^.]*(?=\..*)\.|.*/,Hk=/\..*/,Fk=/::\d+$/,Rl={};let _h=1;const Vk={mouseenter:"mouseover",mouseleave:"mouseout"},jk=/^(mouseenter|mouseleave)/i,dv=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function fv(t,e){return e&&`${e}::${_h++}`||t.uidEvent||_h++}function hv(t){const e=fv(t);return t.uidEvent=e,Rl[e]=Rl[e]||{},Rl[e]}function Wk(t,e){return function n(r){return r.delegateTarget=t,n.oneOff&&Z.off(t,r.type,e),e.apply(t,[r])}}function qk(t,e,n){return function r(i){const s=t.querySelectorAll(e);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(let l=s.length;l--;)if(s[l]===o)return i.delegateTarget=o,r.oneOff&&Z.off(t,i.type,e,n),n.apply(o,[i]);return null}}function pv(t,e,n=null){const r=Object.keys(t);for(let i=0,s=r.length;i<s;i++){const o=t[r[i]];if(o.originalHandler===e&&o.delegationSelector===n)return o}return null}function mv(t,e,n){const r=typeof e=="string",i=r?n:e;let s=gv(t);return dv.has(s)||(s=t),[r,i,s]}function bh(t,e,n,r,i){if(typeof e!="string"||!t)return;if(n||(n=r,r=null),jk.test(e)){const m=S=>function(T){if(!T.relatedTarget||T.relatedTarget!==T.delegateTarget&&!T.delegateTarget.contains(T.relatedTarget))return S.call(this,T)};r?r=m(r):n=m(n)}const[s,o,l]=mv(e,n,r),u=hv(t),d=u[l]||(u[l]={}),f=pv(d,o,s?n:null);if(f){f.oneOff=f.oneOff&&i;return}const p=fv(o,e.replace(Uk,"")),v=s?qk(t,n,r):Wk(t,n);v.delegationSelector=s?n:null,v.originalHandler=o,v.oneOff=i,v.uidEvent=p,d[p]=v,t.addEventListener(l,v,s)}function Ic(t,e,n,r,i){const s=pv(e[n],r,i);!s||(t.removeEventListener(n,s,Boolean(i)),delete e[n][s.uidEvent])}function Yk(t,e,n,r){const i=e[n]||{};Object.keys(i).forEach(s=>{if(s.includes(r)){const o=i[s];Ic(t,e,n,o.originalHandler,o.delegationSelector)}})}function gv(t){return t=t.replace(Hk,""),Vk[t]||t}const Z={on(t,e,n,r){bh(t,e,n,r,!1)},one(t,e,n,r){bh(t,e,n,r,!0)},off(t,e,n,r){if(typeof e!="string"||!t)return;const[i,s,o]=mv(e,n,r),l=o!==e,u=hv(t),d=e.startsWith(".");if(typeof s!="undefined"){if(!u||!u[o])return;Ic(t,u,o,s,i?n:null);return}d&&Object.keys(u).forEach(p=>{Yk(t,u,p,e.slice(1))});const f=u[o]||{};Object.keys(f).forEach(p=>{const v=p.replace(Fk,"");if(!l||e.includes(v)){const m=f[p];Ic(t,u,o,m.originalHandler,m.delegationSelector)}})},trigger(t,e,n){if(typeof e!="string"||!t)return null;const r=lv(),i=gv(e),s=e!==i,o=dv.has(i);let l,u=!0,d=!0,f=!1,p=null;return s&&r&&(l=r.Event(e,n),r(t).trigger(l),u=!l.isPropagationStopped(),d=!l.isImmediatePropagationStopped(),f=l.isDefaultPrevented()),o?(p=document.createEvent("HTMLEvents"),p.initEvent(i,u,!0)):p=new CustomEvent(e,{bubbles:u,cancelable:!0}),typeof n!="undefined"&&Object.keys(n).forEach(v=>{Object.defineProperty(p,v,{get(){return n[v]}})}),f&&p.preventDefault(),d&&t.dispatchEvent(p),p.defaultPrevented&&typeof l!="undefined"&&l.preventDefault(),p}},Un=new Map,Is={set(t,e,n){Un.has(t)||Un.set(t,new Map);const r=Un.get(t);if(!r.has(e)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(e,n)},get(t,e){return Un.has(t)&&Un.get(t).get(e)||null},remove(t,e){if(!Un.has(t))return;const n=Un.get(t);n.delete(e),n.size===0&&Un.delete(t)}},Kk="5.1.3";class Jt{constructor(e){e=rr(e),e&&(this._element=e,Is.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Is.remove(this._element,this.constructor.DATA_KEY),Z.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach(e=>{this[e]=null})}_queueCallback(e,n,r=!0){cv(e,n,r)}static getInstance(e){return Is.get(rr(e),this.DATA_KEY)}static getOrCreateInstance(e,n={}){return this.getInstance(e)||new this(e,typeof n=="object"?n:null)}static get VERSION(){return Kk}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}}const $a=(t,e="hide")=>{const n=`click.dismiss${t.EVENT_KEY}`,r=t.NAME;Z.on(document,n,`[data-bs-dismiss="${r}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),Lr(this))return;const s=nr(this)||this.closest(`.${r}`);t.getOrCreateInstance(s)[e]()})},zk="alert",Gk="bs.alert",vv=`.${Gk}`,Xk=`close${vv}`,Jk=`closed${vv}`,Qk="fade",Zk="show";class Ba extends Jt{static get NAME(){return zk}close(){if(Z.trigger(this._element,Xk).defaultPrevented)return;this._element.classList.remove(Zk);const n=this._element.classList.contains(Qk);this._queueCallback(()=>this._destroyElement(),this._element,n)}_destroyElement(){this._element.remove(),Z.trigger(this._element,Jk),this.dispose()}static jQueryInterface(e){return this.each(function(){const n=Ba.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}$a(Ba,"close");Ft(Ba);const eD="button",tD="bs.button",nD=`.${tD}`,rD=".data-api",iD="active",wh='[data-bs-toggle="button"]',sD=`click${nD}${rD}`;class Ua extends Jt{static get NAME(){return eD}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(iD))}static jQueryInterface(e){return this.each(function(){const n=Ua.getOrCreateInstance(this);e==="toggle"&&n[e]()})}}Z.on(document,sD,wh,t=>{t.preventDefault();const e=t.target.closest(wh);Ua.getOrCreateInstance(e).toggle()});Ft(Ua);function Eh(t){return t==="true"?!0:t==="false"?!1:t===Number(t).toString()?Number(t):t===""||t==="null"?null:t}function Ll(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const lt={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${Ll(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${Ll(e)}`)},getDataAttributes(t){if(!t)return{};const e={};return Object.keys(t.dataset).filter(n=>n.startsWith("bs")).forEach(n=>{let r=n.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),e[r]=Eh(t.dataset[n])}),e},getDataAttribute(t,e){return Eh(t.getAttribute(`data-bs-${Ll(e)}`))},offset(t){const e=t.getBoundingClientRect();return{top:e.top+window.pageYOffset,left:e.left+window.pageXOffset}},position(t){return{top:t.offsetTop,left:t.offsetLeft}}},oD=3,we={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(n=>n.matches(e))},parents(t,e){const n=[];let r=t.parentNode;for(;r&&r.nodeType===Node.ELEMENT_NODE&&r.nodeType!==oD;)r.matches(e)&&n.push(r),r=r.parentNode;return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(n=>`${n}:not([tabindex^="-"])`).join(", ");return this.find(e,t).filter(n=>!Lr(n)&&Zs(n))}},Th="carousel",aD="bs.carousel",Mt=`.${aD}`,yv=".data-api",lD="ArrowLeft",cD="ArrowRight",uD=500,dD=40,Ch={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},fD={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},hr="next",pr="prev",br="left",hs="right",hD={[lD]:hs,[cD]:br},pD=`slide${Mt}`,Sh=`slid${Mt}`,mD=`keydown${Mt}`,gD=`mouseenter${Mt}`,vD=`mouseleave${Mt}`,yD=`touchstart${Mt}`,_D=`touchmove${Mt}`,bD=`touchend${Mt}`,wD=`pointerdown${Mt}`,ED=`pointerup${Mt}`,TD=`dragstart${Mt}`,CD=`load${Mt}${yv}`,SD=`click${Mt}${yv}`,AD="carousel",mr="active",OD="slide",ID="carousel-item-end",kD="carousel-item-start",DD="carousel-item-next",PD="carousel-item-prev",ND="pointer-event",xD=".active",bo=".active.carousel-item",MD=".carousel-item",RD=".carousel-item img",LD=".carousel-item-next, .carousel-item-prev",$D=".carousel-indicators",BD="[data-bs-target]",UD="[data-bs-slide], [data-bs-slide-to]",HD='[data-bs-ride="carousel"]',FD="touch",VD="pen";class Sn extends Jt{constructor(e,n){super(e);this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(n),this._indicatorsElement=we.findOne($D,this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return Ch}static get NAME(){return Th}next(){this._slide(hr)}nextWhenVisible(){!document.hidden&&Zs(this._element)&&this.next()}prev(){this._slide(pr)}pause(e){e||(this._isPaused=!0),we.findOne(LD,this._element)&&(ov(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(e){this._activeElement=we.findOne(bo,this._element);const n=this._getItemIndex(this._activeElement);if(e>this._items.length-1||e<0)return;if(this._isSliding){Z.one(this._element,Sh,()=>this.to(e));return}if(n===e){this.pause(),this.cycle();return}const r=e>n?hr:pr;this._slide(r,this._items[e])}_getConfig(e){return e=Ie(Ie(Ie({},Ch),lt.getDataAttributes(this._element)),typeof e=="object"?e:{}),yn(Th,e,fD),e}_handleSwipe(){const e=Math.abs(this.touchDeltaX);if(e<=dD)return;const n=e/this.touchDeltaX;this.touchDeltaX=0,n&&this._slide(n>0?hs:br)}_addEventListeners(){this._config.keyboard&&Z.on(this._element,mD,e=>this._keydown(e)),this._config.pause==="hover"&&(Z.on(this._element,gD,e=>this.pause(e)),Z.on(this._element,vD,e=>this.cycle(e))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const e=s=>this._pointerEvent&&(s.pointerType===VD||s.pointerType===FD),n=s=>{e(s)?this.touchStartX=s.clientX:this._pointerEvent||(this.touchStartX=s.touches[0].clientX)},r=s=>{this.touchDeltaX=s.touches&&s.touches.length>1?0:s.touches[0].clientX-this.touchStartX},i=s=>{e(s)&&(this.touchDeltaX=s.clientX-this.touchStartX),this._handleSwipe(),this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(o=>this.cycle(o),uD+this._config.interval))};we.find(RD,this._element).forEach(s=>{Z.on(s,TD,o=>o.preventDefault())}),this._pointerEvent?(Z.on(this._element,wD,s=>n(s)),Z.on(this._element,ED,s=>i(s)),this._element.classList.add(ND)):(Z.on(this._element,yD,s=>n(s)),Z.on(this._element,_D,s=>r(s)),Z.on(this._element,bD,s=>i(s)))}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const n=hD[e.key];n&&(e.preventDefault(),this._slide(n))}_getItemIndex(e){return this._items=e&&e.parentNode?we.find(MD,e.parentNode):[],this._items.indexOf(e)}_getItemByOrder(e,n){const r=e===hr;return uv(this._items,n,r,this._config.wrap)}_triggerSlideEvent(e,n){const r=this._getItemIndex(e),i=this._getItemIndex(we.findOne(bo,this._element));return Z.trigger(this._element,pD,{relatedTarget:e,direction:n,from:i,to:r})}_setActiveIndicatorElement(e){if(this._indicatorsElement){const n=we.findOne(xD,this._indicatorsElement);n.classList.remove(mr),n.removeAttribute("aria-current");const r=we.find(BD,this._indicatorsElement);for(let i=0;i<r.length;i++)if(Number.parseInt(r[i].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(e)){r[i].classList.add(mr),r[i].setAttribute("aria-current","true");break}}}_updateInterval(){const e=this._activeElement||we.findOne(bo,this._element);if(!e)return;const n=Number.parseInt(e.getAttribute("data-bs-interval"),10);n?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=n):this._config.interval=this._config.defaultInterval||this._config.interval}_slide(e,n){const r=this._directionToOrder(e),i=we.findOne(bo,this._element),s=this._getItemIndex(i),o=n||this._getItemByOrder(r,i),l=this._getItemIndex(o),u=Boolean(this._interval),d=r===hr,f=d?kD:ID,p=d?DD:PD,v=this._orderToDirection(r);if(o&&o.classList.contains(mr)){this._isSliding=!1;return}if(this._isSliding||this._triggerSlideEvent(o,v).defaultPrevented||!i||!o)return;this._isSliding=!0,u&&this.pause(),this._setActiveIndicatorElement(o),this._activeElement=o;const S=()=>{Z.trigger(this._element,Sh,{relatedTarget:o,direction:v,from:s,to:l})};if(this._element.classList.contains(OD)){o.classList.add(p),qi(o),i.classList.add(f),o.classList.add(f);const T=()=>{o.classList.remove(f,p),o.classList.add(mr),i.classList.remove(mr,p,f),this._isSliding=!1,setTimeout(S,0)};this._queueCallback(T,i,!0)}else i.classList.remove(mr),o.classList.add(mr),this._isSliding=!1,S();u&&this.cycle()}_directionToOrder(e){return[hs,br].includes(e)?Et()?e===br?pr:hr:e===br?hr:pr:e}_orderToDirection(e){return[hr,pr].includes(e)?Et()?e===pr?br:hs:e===pr?hs:br:e}static carouselInterface(e,n){const r=Sn.getOrCreateInstance(e,n);let{_config:i}=r;typeof n=="object"&&(i=Ie(Ie({},i),n));const s=typeof n=="string"?n:i.slide;if(typeof n=="number")r.to(n);else if(typeof s=="string"){if(typeof r[s]=="undefined")throw new TypeError(`No method named "${s}"`);r[s]()}else i.interval&&i.ride&&(r.pause(),r.cycle())}static jQueryInterface(e){return this.each(function(){Sn.carouselInterface(this,e)})}static dataApiClickHandler(e){const n=nr(this);if(!n||!n.classList.contains(AD))return;const r=Ie(Ie({},lt.getDataAttributes(n)),lt.getDataAttributes(this)),i=this.getAttribute("data-bs-slide-to");i&&(r.interval=!1),Sn.carouselInterface(n,r),i&&Sn.getInstance(n).to(i),e.preventDefault()}}Z.on(document,SD,UD,Sn.dataApiClickHandler);Z.on(window,CD,()=>{const t=we.find(HD);for(let e=0,n=t.length;e<n;e++)Sn.carouselInterface(t[e],Sn.getInstance(t[e]))});Ft(Sn);const Ah="collapse",_v="bs.collapse",eo=`.${_v}`,jD=".data-api",Oh={toggle:!0,parent:null},WD={toggle:"boolean",parent:"(null|element)"},qD=`show${eo}`,YD=`shown${eo}`,KD=`hide${eo}`,zD=`hidden${eo}`,GD=`click${eo}${jD}`,$l="show",pi="collapse",wo="collapsing",Ih="collapsed",kh=`:scope .${pi} .${pi}`,XD="collapse-horizontal",JD="width",QD="height",ZD=".collapse.show, .collapse.collapsing",kc='[data-bs-toggle="collapse"]';class bi extends Jt{constructor(e,n){super(e);this._isTransitioning=!1,this._config=this._getConfig(n),this._triggerArray=[];const r=we.find(kc);for(let i=0,s=r.length;i<s;i++){const o=r[i],l=Bu(o),u=we.find(l).filter(d=>d===this._element);l!==null&&u.length&&(this._selector=l,this._triggerArray.push(o))}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Oh}static get NAME(){return Ah}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[],n;if(this._config.parent){const d=we.find(kh,this._config.parent);e=we.find(ZD,this._config.parent).filter(f=>!d.includes(f))}const r=we.findOne(this._selector);if(e.length){const d=e.find(f=>r!==f);if(n=d?bi.getInstance(d):null,n&&n._isTransitioning)return}if(Z.trigger(this._element,qD).defaultPrevented)return;e.forEach(d=>{r!==d&&bi.getOrCreateInstance(d,{toggle:!1}).hide(),n||Is.set(d,_v,null)});const s=this._getDimension();this._element.classList.remove(pi),this._element.classList.add(wo),this._element.style[s]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(wo),this._element.classList.add(pi,$l),this._element.style[s]="",Z.trigger(this._element,YD)},u=`scroll${s[0].toUpperCase()+s.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[s]=`${this._element[u]}px`}hide(){if(this._isTransitioning||!this._isShown()||Z.trigger(this._element,KD).defaultPrevented)return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,qi(this._element),this._element.classList.add(wo),this._element.classList.remove(pi,$l);const r=this._triggerArray.length;for(let s=0;s<r;s++){const o=this._triggerArray[s],l=nr(o);l&&!this._isShown(l)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(wo),this._element.classList.add(pi),Z.trigger(this._element,zD)};this._element.style[n]="",this._queueCallback(i,this._element,!0)}_isShown(e=this._element){return e.classList.contains($l)}_getConfig(e){return e=Ie(Ie(Ie({},Oh),lt.getDataAttributes(this._element)),e),e.toggle=Boolean(e.toggle),e.parent=rr(e.parent),yn(Ah,e,WD),e}_getDimension(){return this._element.classList.contains(XD)?JD:QD}_initializeChildren(){if(!this._config.parent)return;const e=we.find(kh,this._config.parent);we.find(kc,this._config.parent).filter(n=>!e.includes(n)).forEach(n=>{const r=nr(n);r&&this._addAriaAndCollapsedClass([n],this._isShown(r))})}_addAriaAndCollapsedClass(e,n){!e.length||e.forEach(r=>{n?r.classList.remove(Ih):r.classList.add(Ih),r.setAttribute("aria-expanded",n)})}static jQueryInterface(e){return this.each(function(){const n={};typeof e=="string"&&/show|hide/.test(e)&&(n.toggle=!1);const r=bi.getOrCreateInstance(this,n);if(typeof e=="string"){if(typeof r[e]=="undefined")throw new TypeError(`No method named "${e}"`);r[e]()}})}}Z.on(document,GD,kc,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();const e=Bu(this);we.find(e).forEach(r=>{bi.getOrCreateInstance(r,{toggle:!1}).toggle()})});Ft(bi);const Bl="dropdown",eP="bs.dropdown",Kr=`.${eP}`,Uu=".data-api",Mo="Escape",Dh="Space",Ph="Tab",Dc="ArrowUp",Ro="ArrowDown",tP=2,nP=new RegExp(`${Dc}|${Ro}|${Mo}`),rP=`hide${Kr}`,iP=`hidden${Kr}`,sP=`show${Kr}`,oP=`shown${Kr}`,bv=`click${Kr}${Uu}`,wv=`keydown${Kr}${Uu}`,aP=`keyup${Kr}${Uu}`,oi="show",lP="dropup",cP="dropend",uP="dropstart",dP="navbar",ks='[data-bs-toggle="dropdown"]',Pc=".dropdown-menu",fP=".navbar-nav",hP=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",pP=Et()?"top-end":"top-start",mP=Et()?"top-start":"top-end",gP=Et()?"bottom-end":"bottom-start",vP=Et()?"bottom-start":"bottom-end",yP=Et()?"left-start":"right-start",_P=Et()?"right-start":"left-start",bP={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},wP={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"};class Bt extends Jt{constructor(e,n){super(e);this._popper=null,this._config=this._getConfig(n),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar()}static get Default(){return bP}static get DefaultType(){return wP}static get NAME(){return Bl}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Lr(this._element)||this._isShown(this._menu))return;const e={relatedTarget:this._element};if(Z.trigger(this._element,sP,e).defaultPrevented)return;const r=Bt.getParentFromElement(this._element);this._inNavbar?lt.setDataAttribute(this._menu,"popper","none"):this._createPopper(r),"ontouchstart"in document.documentElement&&!r.closest(fP)&&[].concat(...document.body.children).forEach(i=>Z.on(i,"mouseover",ra)),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(oi),this._element.classList.add(oi),Z.trigger(this._element,oP,e)}hide(){if(Lr(this._element)||!this._isShown(this._menu))return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){Z.trigger(this._element,rP,e).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(r=>Z.off(r,"mouseover",ra)),this._popper&&this._popper.destroy(),this._menu.classList.remove(oi),this._element.classList.remove(oi),this._element.setAttribute("aria-expanded","false"),lt.removeDataAttribute(this._menu,"popper"),Z.trigger(this._element,iP,e))}_getConfig(e){if(e=Ie(Ie(Ie({},this.constructor.Default),lt.getDataAttributes(this._element)),e),yn(Bl,e,this.constructor.DefaultType),typeof e.reference=="object"&&!Hr(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${Bl.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(e){if(typeof iv=="undefined")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let n=this._element;this._config.reference==="parent"?n=e:Hr(this._config.reference)?n=rr(this._config.reference):typeof this._config.reference=="object"&&(n=this._config.reference);const r=this._getPopperConfig(),i=r.modifiers.find(s=>s.name==="applyStyles"&&s.enabled===!1);this._popper=$u(n,this._menu,r),i&<.setDataAttribute(this._menu,"popper","static")}_isShown(e=this._element){return e.classList.contains(oi)}_getMenuElement(){return we.next(this._element,Pc)[0]}_getPlacement(){const e=this._element.parentNode;if(e.classList.contains(cP))return yP;if(e.classList.contains(uP))return _P;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(lP)?n?mP:pP:n?vP:gP}_detectNavbar(){return this._element.closest(`.${dP}`)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(n=>Number.parseInt(n,10)):typeof e=="function"?n=>e(n,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return this._config.display==="static"&&(e.modifiers=[{name:"applyStyles",enabled:!1}]),Ie(Ie({},e),typeof this._config.popperConfig=="function"?this._config.popperConfig(e):this._config.popperConfig)}_selectMenuItem({key:e,target:n}){const r=we.find(hP,this._menu).filter(Zs);!r.length||uv(r,n,e===Ro,!r.includes(n)).focus()}static jQueryInterface(e){return this.each(function(){const n=Bt.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]=="undefined")throw new TypeError(`No method named "${e}"`);n[e]()}})}static clearMenus(e){if(e&&(e.button===tP||e.type==="keyup"&&e.key!==Ph))return;const n=we.find(ks);for(let r=0,i=n.length;r<i;r++){const s=Bt.getInstance(n[r]);if(!s||s._config.autoClose===!1||!s._isShown())continue;const o={relatedTarget:s._element};if(e){const l=e.composedPath(),u=l.includes(s._menu);if(l.includes(s._element)||s._config.autoClose==="inside"&&!u||s._config.autoClose==="outside"&&u||s._menu.contains(e.target)&&(e.type==="keyup"&&e.key===Ph||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;e.type==="click"&&(o.clickEvent=e)}s._completeHide(o)}}static getParentFromElement(e){return nr(e)||e.parentNode}static dataApiKeydownHandler(e){if(/input|textarea/i.test(e.target.tagName)?e.key===Dh||e.key!==Mo&&(e.key!==Ro&&e.key!==Dc||e.target.closest(Pc)):!nP.test(e.key))return;const n=this.classList.contains(oi);if(!n&&e.key===Mo||(e.preventDefault(),e.stopPropagation(),Lr(this)))return;const r=this.matches(ks)?this:we.prev(this,ks)[0],i=Bt.getOrCreateInstance(r);if(e.key===Mo){i.hide();return}if(e.key===Dc||e.key===Ro){n||i.show(),i._selectMenuItem(e);return}(!n||e.key===Dh)&&Bt.clearMenus()}}Z.on(document,wv,ks,Bt.dataApiKeydownHandler);Z.on(document,wv,Pc,Bt.dataApiKeydownHandler);Z.on(document,bv,Bt.clearMenus);Z.on(document,aP,Bt.clearMenus);Z.on(document,bv,ks,function(t){t.preventDefault(),Bt.getOrCreateInstance(this).toggle()});Ft(Bt);const Nh=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",xh=".sticky-top";class Nc{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",n=>n+e),this._setElementAttributes(Nh,"paddingRight",n=>n+e),this._setElementAttributes(xh,"marginRight",n=>n-e)}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,n,r){const i=this.getWidth(),s=o=>{if(o!==this._element&&window.innerWidth>o.clientWidth+i)return;this._saveInitialAttribute(o,n);const l=window.getComputedStyle(o)[n];o.style[n]=`${r(Number.parseFloat(l))}px`};this._applyManipulationCallback(e,s)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(Nh,"paddingRight"),this._resetElementAttributes(xh,"marginRight")}_saveInitialAttribute(e,n){const r=e.style[n];r&<.setDataAttribute(e,n,r)}_resetElementAttributes(e,n){const r=i=>{const s=lt.getDataAttribute(i,n);typeof s=="undefined"?i.style.removeProperty(n):(lt.removeDataAttribute(i,n),i.style[n]=s)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,n){Hr(e)?n(e):we.find(e,this._element).forEach(n)}isOverflowing(){return this.getWidth()>0}}const EP={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},TP={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},Ev="backdrop",CP="fade",Mh="show",Rh=`mousedown.bs.${Ev}`;class Tv{constructor(e){this._config=this._getConfig(e),this._isAppended=!1,this._element=null}show(e){if(!this._config.isVisible){Tr(e);return}this._append(),this._config.isAnimated&&qi(this._getElement()),this._getElement().classList.add(Mh),this._emulateAnimation(()=>{Tr(e)})}hide(e){if(!this._config.isVisible){Tr(e);return}this._getElement().classList.remove(Mh),this._emulateAnimation(()=>{this.dispose(),Tr(e)})}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(CP),this._element=e}return this._element}_getConfig(e){return e=Ie(Ie({},EP),typeof e=="object"?e:{}),e.rootElement=rr(e.rootElement),yn(Ev,e,TP),e}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),Z.on(this._getElement(),Rh,()=>{Tr(this._config.clickCallback)}),this._isAppended=!0)}dispose(){!this._isAppended||(Z.off(this._element,Rh),this._element.remove(),this._isAppended=!1)}_emulateAnimation(e){cv(e,this._getElement(),this._config.isAnimated)}}const SP={trapElement:null,autofocus:!0},AP={trapElement:"element",autofocus:"boolean"},OP="focustrap",IP="bs.focustrap",ia=`.${IP}`,kP=`focusin${ia}`,DP=`keydown.tab${ia}`,PP="Tab",NP="forward",Lh="backward";class Cv{constructor(e){this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}activate(){const{trapElement:e,autofocus:n}=this._config;this._isActive||(n&&e.focus(),Z.off(document,ia),Z.on(document,kP,r=>this._handleFocusin(r)),Z.on(document,DP,r=>this._handleKeydown(r)),this._isActive=!0)}deactivate(){!this._isActive||(this._isActive=!1,Z.off(document,ia))}_handleFocusin(e){const{target:n}=e,{trapElement:r}=this._config;if(n===document||n===r||r.contains(n))return;const i=we.focusableChildren(r);i.length===0?r.focus():this._lastTabNavDirection===Lh?i[i.length-1].focus():i[0].focus()}_handleKeydown(e){e.key===PP&&(this._lastTabNavDirection=e.shiftKey?Lh:NP)}_getConfig(e){return e=Ie(Ie({},SP),typeof e=="object"?e:{}),yn(OP,e,AP),e}}const $h="modal",xP="bs.modal",Vt=`.${xP}`,MP=".data-api",Bh="Escape",Uh={backdrop:!0,keyboard:!0,focus:!0},RP={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},LP=`hide${Vt}`,$P=`hidePrevented${Vt}`,Sv=`hidden${Vt}`,Av=`show${Vt}`,BP=`shown${Vt}`,Hh=`resize${Vt}`,Fh=`click.dismiss${Vt}`,Vh=`keydown.dismiss${Vt}`,UP=`mouseup.dismiss${Vt}`,jh=`mousedown.dismiss${Vt}`,HP=`click${Vt}${MP}`,Wh="modal-open",FP="fade",qh="show",Ul="modal-static",VP=".modal.show",jP=".modal-dialog",WP=".modal-body",qP='[data-bs-toggle="modal"]';class $i extends Jt{constructor(e,n){super(e);this._config=this._getConfig(n),this._dialog=we.findOne(jP,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new Nc}static get Default(){return Uh}static get NAME(){return $h}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||Z.trigger(this._element,Av,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(Wh),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),Z.on(this._dialog,jh,()=>{Z.one(this._element,UP,r=>{r.target===this._element&&(this._ignoreBackdropClick=!0)})}),this._showBackdrop(()=>this._showElement(e)))}hide(){if(!this._isShown||this._isTransitioning||Z.trigger(this._element,LP).defaultPrevented)return;this._isShown=!1;const n=this._isAnimated();n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove(qh),Z.off(this._element,Fh),Z.off(this._dialog,jh),this._queueCallback(()=>this._hideModal(),this._element,n)}dispose(){[window,this._dialog].forEach(e=>Z.off(e,Vt)),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Tv({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Cv({trapElement:this._element})}_getConfig(e){return e=Ie(Ie(Ie({},Uh),lt.getDataAttributes(this._element)),typeof e=="object"?e:{}),yn($h,e,RP),e}_showElement(e){const n=this._isAnimated(),r=we.findOne(WP,this._dialog);(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE)&&document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,r&&(r.scrollTop=0),n&&qi(this._element),this._element.classList.add(qh);const i=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Z.trigger(this._element,BP,{relatedTarget:e})};this._queueCallback(i,this._dialog,n)}_setEscapeEvent(){this._isShown?Z.on(this._element,Vh,e=>{this._config.keyboard&&e.key===Bh?(e.preventDefault(),this.hide()):!this._config.keyboard&&e.key===Bh&&this._triggerBackdropTransition()}):Z.off(this._element,Vh)}_setResizeEvent(){this._isShown?Z.on(window,Hh,()=>this._adjustDialog()):Z.off(window,Hh)}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Wh),this._resetAdjustments(),this._scrollBar.reset(),Z.trigger(this._element,Sv)})}_showBackdrop(e){Z.on(this._element,Fh,n=>{if(this._ignoreBackdropClick){this._ignoreBackdropClick=!1;return}n.target===n.currentTarget&&(this._config.backdrop===!0?this.hide():this._config.backdrop==="static"&&this._triggerBackdropTransition())}),this._backdrop.show(e)}_isAnimated(){return this._element.classList.contains(FP)}_triggerBackdropTransition(){if(Z.trigger(this._element,$P).defaultPrevented)return;const{classList:n,scrollHeight:r,style:i}=this._element,s=r>document.documentElement.clientHeight;!s&&i.overflowY==="hidden"||n.contains(Ul)||(s||(i.overflowY="hidden"),n.add(Ul),this._queueCallback(()=>{n.remove(Ul),s||this._queueCallback(()=>{i.overflowY=""},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,n=this._scrollBar.getWidth(),r=n>0;(!r&&e&&!Et()||r&&!e&&Et())&&(this._element.style.paddingLeft=`${n}px`),(r&&!e&&!Et()||!r&&e&&Et())&&(this._element.style.paddingRight=`${n}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,n){return this.each(function(){const r=$i.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]=="undefined")throw new TypeError(`No method named "${e}"`);r[e](n)}})}}Z.on(document,HP,qP,function(t){const e=nr(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),Z.one(e,Av,i=>{i.defaultPrevented||Z.one(e,Sv,()=>{Zs(this)&&this.focus()})});const n=we.findOne(VP);n&&$i.getInstance(n).hide(),$i.getOrCreateInstance(e).toggle(this)});$a($i);Ft($i);const Yh="offcanvas",YP="bs.offcanvas",zr=`.${YP}`,Ov=".data-api",KP=`load${zr}${Ov}`,zP="Escape",Kh={backdrop:!0,keyboard:!0,scroll:!1},GP={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},zh="show",XP="offcanvas-backdrop",Iv=".offcanvas.show",JP=`show${zr}`,QP=`shown${zr}`,ZP=`hide${zr}`,kv=`hidden${zr}`,eN=`click${zr}${Ov}`,tN=`keydown.dismiss${zr}`,nN='[data-bs-toggle="offcanvas"]';class Fr extends Jt{constructor(e,n){super(e);this._config=this._getConfig(n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get NAME(){return Yh}static get Default(){return Kh}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||Z.trigger(this._element,JP,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||new Nc().hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(zh);const r=()=>{this._config.scroll||this._focustrap.activate(),Z.trigger(this._element,QP,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||Z.trigger(this._element,ZP).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.remove(zh),this._backdrop.hide();const n=()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||new Nc().reset(),Z.trigger(this._element,kv)};this._queueCallback(n,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_getConfig(e){return e=Ie(Ie(Ie({},Kh),lt.getDataAttributes(this._element)),typeof e=="object"?e:{}),yn(Yh,e,GP),e}_initializeBackDrop(){return new Tv({className:XP,isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_initializeFocusTrap(){return new Cv({trapElement:this._element})}_addEventListeners(){Z.on(this._element,tN,e=>{this._config.keyboard&&e.key===zP&&this.hide()})}static jQueryInterface(e){return this.each(function(){const n=Fr.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}Z.on(document,eN,nN,function(t){const e=nr(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Lr(this))return;Z.one(e,kv,()=>{Zs(this)&&this.focus()});const n=we.findOne(Iv);n&&n!==e&&Fr.getInstance(n).hide(),Fr.getOrCreateInstance(e).toggle(this)});Z.on(window,KP,()=>we.find(Iv).forEach(t=>Fr.getOrCreateInstance(t).show()));$a(Fr);Ft(Fr);const rN=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),iN=/^aria-[\w-]*$/i,sN=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,oN=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,aN=(t,e)=>{const n=t.nodeName.toLowerCase();if(e.includes(n))return rN.has(n)?Boolean(sN.test(t.nodeValue)||oN.test(t.nodeValue)):!0;const r=e.filter(i=>i instanceof RegExp);for(let i=0,s=r.length;i<s;i++)if(r[i].test(n))return!0;return!1},lN={"*":["class","dir","id","lang","role",iN],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function Gh(t,e,n){if(!t.length)return t;if(n&&typeof n=="function")return n(t);const i=new window.DOMParser().parseFromString(t,"text/html"),s=[].concat(...i.body.querySelectorAll("*"));for(let o=0,l=s.length;o<l;o++){const u=s[o],d=u.nodeName.toLowerCase();if(!Object.keys(e).includes(d)){u.remove();continue}const f=[].concat(...u.attributes),p=[].concat(e["*"]||[],e[d]||[]);f.forEach(v=>{aN(v,p)||u.removeAttribute(v.nodeName)})}return i.body.innerHTML}const Xh="tooltip",cN="bs.tooltip",rn=`.${cN}`,uN="bs-tooltip",dN=new Set(["sanitize","allowList","sanitizeFn"]),fN={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},hN={AUTO:"auto",TOP:"top",RIGHT:Et()?"left":"right",BOTTOM:"bottom",LEFT:Et()?"right":"left"},pN={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:lN,popperConfig:null},mN={HIDE:`hide${rn}`,HIDDEN:`hidden${rn}`,SHOW:`show${rn}`,SHOWN:`shown${rn}`,INSERTED:`inserted${rn}`,CLICK:`click${rn}`,FOCUSIN:`focusin${rn}`,FOCUSOUT:`focusout${rn}`,MOUSEENTER:`mouseenter${rn}`,MOUSELEAVE:`mouseleave${rn}`},Eo="fade",gN="modal",is="show",ss="show",Hl="out",Jh=".tooltip-inner",Qh=`.${gN}`,Zh="hide.bs.modal",os="hover",Fl="focus",vN="click",yN="manual";class Yi extends Jt{constructor(e,n){if(typeof iv=="undefined")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e);this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(n),this.tip=null,this._setListeners()}static get Default(){return pN}static get NAME(){return Xh}static get Event(){return mN}static get DefaultType(){return fN}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(e){if(!!this._isEnabled)if(e){const n=this._initializeOnDelegatedTarget(e);n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(this.getTipElement().classList.contains(is)){this._leave(null,this);return}this._enter(null,this)}}dispose(){clearTimeout(this._timeout),Z.off(this._element.closest(Qh),Zh,this._hideModalHandler),this.tip&&this.tip.remove(),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this.isWithContent()&&this._isEnabled))return;const e=Z.trigger(this._element,this.constructor.Event.SHOW),n=av(this._element),r=n===null?this._element.ownerDocument.documentElement.contains(this._element):n.contains(this._element);if(e.defaultPrevented||!r)return;this.constructor.NAME==="tooltip"&&this.tip&&this.getTitle()!==this.tip.querySelector(Jh).innerHTML&&(this._disposePopper(),this.tip.remove(),this.tip=null);const i=this.getTipElement(),s=Lk(this.constructor.NAME);i.setAttribute("id",s),this._element.setAttribute("aria-describedby",s),this._config.animation&&i.classList.add(Eo);const o=typeof this._config.placement=="function"?this._config.placement.call(this,i,this._element):this._config.placement,l=this._getAttachment(o);this._addAttachmentClass(l);const{container:u}=this._config;Is.set(i,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(u.append(i),Z.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=$u(this._element,i,this._getPopperConfig(l)),i.classList.add(is);const d=this._resolvePossibleFunction(this._config.customClass);d&&i.classList.add(...d.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(v=>{Z.on(v,"mouseover",ra)});const f=()=>{const v=this._hoverState;this._hoverState=null,Z.trigger(this._element,this.constructor.Event.SHOWN),v===Hl&&this._leave(null,this)},p=this.tip.classList.contains(Eo);this._queueCallback(f,this.tip,p)}hide(){if(!this._popper)return;const e=this.getTipElement(),n=()=>{this._isWithActiveTrigger()||(this._hoverState!==ss&&e.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),Z.trigger(this._element,this.constructor.Event.HIDDEN),this._disposePopper())};if(Z.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;e.classList.remove(is),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(s=>Z.off(s,"mouseover",ra)),this._activeTrigger[vN]=!1,this._activeTrigger[Fl]=!1,this._activeTrigger[os]=!1;const i=this.tip.classList.contains(Eo);this._queueCallback(n,this.tip,i),this._hoverState=""}update(){this._popper!==null&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const e=document.createElement("div");e.innerHTML=this._config.template;const n=e.children[0];return this.setContent(n),n.classList.remove(Eo,is),this.tip=n,this.tip}setContent(e){this._sanitizeAndSetContent(e,this.getTitle(),Jh)}_sanitizeAndSetContent(e,n,r){const i=we.findOne(r,e);if(!n&&i){i.remove();return}this.setElementContent(i,n)}setElementContent(e,n){if(e!==null){if(Hr(n)){n=rr(n),this._config.html?n.parentNode!==e&&(e.innerHTML="",e.append(n)):e.textContent=n.textContent;return}this._config.html?(this._config.sanitize&&(n=Gh(n,this._config.allowList,this._config.sanitizeFn)),e.innerHTML=n):e.textContent=n}}getTitle(){const e=this._element.getAttribute("data-bs-original-title")||this._config.title;return this._resolvePossibleFunction(e)}updateAttachment(e){return e==="right"?"end":e==="left"?"start":e}_initializeOnDelegatedTarget(e,n){return n||this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(n=>Number.parseInt(n,10)):typeof e=="function"?n=>e(n,this._element):e}_resolvePossibleFunction(e){return typeof e=="function"?e.call(this._element):e}_getPopperConfig(e){const n={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:r=>this._handlePopperPlacementChange(r)}],onFirstUpdate:r=>{r.options.placement!==r.placement&&this._handlePopperPlacementChange(r)}};return Ie(Ie({},n),typeof this._config.popperConfig=="function"?this._config.popperConfig(n):this._config.popperConfig)}_addAttachmentClass(e){this.getTipElement().classList.add(`${this._getBasicClassPrefix()}-${this.updateAttachment(e)}`)}_getAttachment(e){return hN[e.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach(n=>{if(n==="click")Z.on(this._element,this.constructor.Event.CLICK,this._config.selector,r=>this.toggle(r));else if(n!==yN){const r=n===os?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,i=n===os?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;Z.on(this._element,r,this._config.selector,s=>this._enter(s)),Z.on(this._element,i,this._config.selector,s=>this._leave(s))}}),this._hideModalHandler=()=>{this._element&&this.hide()},Z.on(this._element.closest(Qh),Zh,this._hideModalHandler),this._config.selector?this._config=oo(Ie({},this._config),{trigger:"manual",selector:""}):this._fixTitle()}_fixTitle(){const e=this._element.getAttribute("title"),n=typeof this._element.getAttribute("data-bs-original-title");(e||n!=="string")&&(this._element.setAttribute("data-bs-original-title",e||""),e&&!this._element.getAttribute("aria-label")&&!this._element.textContent&&this._element.setAttribute("aria-label",e),this._element.setAttribute("title",""))}_enter(e,n){if(n=this._initializeOnDelegatedTarget(e,n),e&&(n._activeTrigger[e.type==="focusin"?Fl:os]=!0),n.getTipElement().classList.contains(is)||n._hoverState===ss){n._hoverState=ss;return}if(clearTimeout(n._timeout),n._hoverState=ss,!n._config.delay||!n._config.delay.show){n.show();return}n._timeout=setTimeout(()=>{n._hoverState===ss&&n.show()},n._config.delay.show)}_leave(e,n){if(n=this._initializeOnDelegatedTarget(e,n),e&&(n._activeTrigger[e.type==="focusout"?Fl:os]=n._element.contains(e.relatedTarget)),!n._isWithActiveTrigger()){if(clearTimeout(n._timeout),n._hoverState=Hl,!n._config.delay||!n._config.delay.hide){n.hide();return}n._timeout=setTimeout(()=>{n._hoverState===Hl&&n.hide()},n._config.delay.hide)}}_isWithActiveTrigger(){for(const e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1}_getConfig(e){const n=lt.getDataAttributes(this._element);return Object.keys(n).forEach(r=>{dN.has(r)&&delete n[r]}),e=Ie(Ie(Ie({},this.constructor.Default),n),typeof e=="object"&&e?e:{}),e.container=e.container===!1?document.body:rr(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),yn(Xh,e,this.constructor.DefaultType),e.sanitize&&(e.template=Gh(e.template,e.allowList,e.sanitizeFn)),e}_getDelegateConfig(){const e={};for(const n in this._config)this.constructor.Default[n]!==this._config[n]&&(e[n]=this._config[n]);return e}_cleanTipClass(){const e=this.getTipElement(),n=new RegExp(`(^|\\s)${this._getBasicClassPrefix()}\\S+`,"g"),r=e.getAttribute("class").match(n);r!==null&&r.length>0&&r.map(i=>i.trim()).forEach(i=>e.classList.remove(i))}_getBasicClassPrefix(){return uN}_handlePopperPlacementChange(e){const{state:n}=e;!n||(this.tip=n.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(n.placement)))}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(e){return this.each(function(){const n=Yi.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]=="undefined")throw new TypeError(`No method named "${e}"`);n[e]()}})}}Ft(Yi);const _N="popover",bN="bs.popover",sn=`.${bN}`,wN="bs-popover",EN=oo(Ie({},Yi.Default),{placement:"right",offset:[0,8],trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),TN=oo(Ie({},Yi.DefaultType),{content:"(string|element|function)"}),CN={HIDE:`hide${sn}`,HIDDEN:`hidden${sn}`,SHOW:`show${sn}`,SHOWN:`shown${sn}`,INSERTED:`inserted${sn}`,CLICK:`click${sn}`,FOCUSIN:`focusin${sn}`,FOCUSOUT:`focusout${sn}`,MOUSEENTER:`mouseenter${sn}`,MOUSELEAVE:`mouseleave${sn}`},SN=".popover-header",AN=".popover-body";class Hu extends Yi{static get Default(){return EN}static get NAME(){return _N}static get Event(){return CN}static get DefaultType(){return TN}isWithContent(){return this.getTitle()||this._getContent()}setContent(e){this._sanitizeAndSetContent(e,this.getTitle(),SN),this._sanitizeAndSetContent(e,this._getContent(),AN)}_getContent(){return this._resolvePossibleFunction(this._config.content)}_getBasicClassPrefix(){return wN}static jQueryInterface(e){return this.each(function(){const n=Hu.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]=="undefined")throw new TypeError(`No method named "${e}"`);n[e]()}})}}Ft(Hu);const ep="scrollspy",ON="bs.scrollspy",Ha=`.${ON}`,IN=".data-api",tp={offset:10,method:"auto",target:""},kN={offset:"number",method:"string",target:"(string|element)"},DN=`activate${Ha}`,PN=`scroll${Ha}`,NN=`load${Ha}${IN}`,Dv="dropdown-item",ai="active",xN='[data-bs-spy="scroll"]',MN=".nav, .list-group",xc=".nav-link",RN=".nav-item",Pv=".list-group-item",Vl=`${xc}, ${Pv}, .${Dv}`,LN=".dropdown",$N=".dropdown-toggle",BN="offset",np="position";class Fa extends Jt{constructor(e,n){super(e);this._scrollElement=this._element.tagName==="BODY"?window:this._element,this._config=this._getConfig(n),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,Z.on(this._scrollElement,PN,()=>this._process()),this.refresh(),this._process()}static get Default(){return tp}static get NAME(){return ep}refresh(){const e=this._scrollElement===this._scrollElement.window?BN:np,n=this._config.method==="auto"?e:this._config.method,r=n===np?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),we.find(Vl,this._config.target).map(s=>{const o=Bu(s),l=o?we.findOne(o):null;if(l){const u=l.getBoundingClientRect();if(u.width||u.height)return[lt[n](l).top+r,o]}return null}).filter(s=>s).sort((s,o)=>s[0]-o[0]).forEach(s=>{this._offsets.push(s[0]),this._targets.push(s[1])})}dispose(){Z.off(this._scrollElement,Ha),super.dispose()}_getConfig(e){return e=Ie(Ie(Ie({},tp),lt.getDataAttributes(this._element)),typeof e=="object"&&e?e:{}),e.target=rr(e.target)||document.documentElement,yn(ep,e,kN),e}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const e=this._getScrollTop()+this._config.offset,n=this._getScrollHeight(),r=this._config.offset+n-this._getOffsetHeight();if(this._scrollHeight!==n&&this.refresh(),e>=r){const i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i);return}if(this._activeTarget&&e<this._offsets[0]&&this._offsets[0]>0){this._activeTarget=null,this._clear();return}for(let i=this._offsets.length;i--;)this._activeTarget!==this._targets[i]&&e>=this._offsets[i]&&(typeof this._offsets[i+1]=="undefined"||e<this._offsets[i+1])&&this._activate(this._targets[i])}_activate(e){this._activeTarget=e,this._clear();const n=Vl.split(",").map(i=>`${i}[data-bs-target="${e}"],${i}[href="${e}"]`),r=we.findOne(n.join(","),this._config.target);r.classList.add(ai),r.classList.contains(Dv)?we.findOne($N,r.closest(LN)).classList.add(ai):we.parents(r,MN).forEach(i=>{we.prev(i,`${xc}, ${Pv}`).forEach(s=>s.classList.add(ai)),we.prev(i,RN).forEach(s=>{we.children(s,xc).forEach(o=>o.classList.add(ai))})}),Z.trigger(this._scrollElement,DN,{relatedTarget:e})}_clear(){we.find(Vl,this._config.target).filter(e=>e.classList.contains(ai)).forEach(e=>e.classList.remove(ai))}static jQueryInterface(e){return this.each(function(){const n=Fa.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]=="undefined")throw new TypeError(`No method named "${e}"`);n[e]()}})}}Z.on(window,NN,()=>{we.find(xN).forEach(t=>new Fa(t))});Ft(Fa);const UN="tab",HN="bs.tab",to=`.${HN}`,FN=".data-api",VN=`hide${to}`,jN=`hidden${to}`,WN=`show${to}`,qN=`shown${to}`,YN=`click${to}${FN}`,KN="dropdown-menu",as="active",rp="fade",ip="show",zN=".dropdown",GN=".nav, .list-group",sp=".active",op=":scope > li > .active",XN='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',JN=".dropdown-toggle",QN=":scope > .dropdown-menu .active";class Va extends Jt{static get NAME(){return UN}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(as))return;let e;const n=nr(this._element),r=this._element.closest(GN);if(r){const l=r.nodeName==="UL"||r.nodeName==="OL"?op:sp;e=we.find(l,r),e=e[e.length-1]}const i=e?Z.trigger(e,VN,{relatedTarget:this._element}):null;if(Z.trigger(this._element,WN,{relatedTarget:e}).defaultPrevented||i!==null&&i.defaultPrevented)return;this._activate(this._element,r);const o=()=>{Z.trigger(e,jN,{relatedTarget:this._element}),Z.trigger(this._element,qN,{relatedTarget:e})};n?this._activate(n,n.parentNode,o):o()}_activate(e,n,r){const s=(n&&(n.nodeName==="UL"||n.nodeName==="OL")?we.find(op,n):we.children(n,sp))[0],o=r&&s&&s.classList.contains(rp),l=()=>this._transitionComplete(e,s,r);s&&o?(s.classList.remove(ip),this._queueCallback(l,e,!0)):l()}_transitionComplete(e,n,r){if(n){n.classList.remove(as);const s=we.findOne(QN,n.parentNode);s&&s.classList.remove(as),n.getAttribute("role")==="tab"&&n.setAttribute("aria-selected",!1)}e.classList.add(as),e.getAttribute("role")==="tab"&&e.setAttribute("aria-selected",!0),qi(e),e.classList.contains(rp)&&e.classList.add(ip);let i=e.parentNode;if(i&&i.nodeName==="LI"&&(i=i.parentNode),i&&i.classList.contains(KN)){const s=e.closest(zN);s&&we.find(JN,s).forEach(o=>o.classList.add(as)),e.setAttribute("aria-expanded",!0)}r&&r()}static jQueryInterface(e){return this.each(function(){const n=Va.getOrCreateInstance(this);if(typeof e=="string"){if(typeof n[e]=="undefined")throw new TypeError(`No method named "${e}"`);n[e]()}})}}Z.on(document,YN,XN,function(t){if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Lr(this))return;Va.getOrCreateInstance(this).show()});Ft(Va);const ap="toast",ZN="bs.toast",sr=`.${ZN}`,ex=`mouseover${sr}`,tx=`mouseout${sr}`,nx=`focusin${sr}`,rx=`focusout${sr}`,ix=`hide${sr}`,sx=`hidden${sr}`,ox=`show${sr}`,ax=`shown${sr}`,lx="fade",lp="hide",ls="show",To="showing",cx={animation:"boolean",autohide:"boolean",delay:"number"},cp={animation:!0,autohide:!0,delay:5e3};class ja extends Jt{constructor(e,n){super(e);this._config=this._getConfig(n),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return cx}static get Default(){return cp}static get NAME(){return ap}show(){if(Z.trigger(this._element,ox).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(lx);const n=()=>{this._element.classList.remove(To),Z.trigger(this._element,ax),this._maybeScheduleHide()};this._element.classList.remove(lp),qi(this._element),this._element.classList.add(ls),this._element.classList.add(To),this._queueCallback(n,this._element,this._config.animation)}hide(){if(!this._element.classList.contains(ls)||Z.trigger(this._element,ix).defaultPrevented)return;const n=()=>{this._element.classList.add(lp),this._element.classList.remove(To),this._element.classList.remove(ls),Z.trigger(this._element,sx)};this._element.classList.add(To),this._queueCallback(n,this._element,this._config.animation)}dispose(){this._clearTimeout(),this._element.classList.contains(ls)&&this._element.classList.remove(ls),super.dispose()}_getConfig(e){return e=Ie(Ie(Ie({},cp),lt.getDataAttributes(this._element)),typeof e=="object"&&e?e:{}),yn(ap,e,this.constructor.DefaultType),e}_maybeScheduleHide(){!this._config.autohide||this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))}_onInteraction(e,n){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=n;break;case"focusin":case"focusout":this._hasKeyboardInteraction=n;break}if(n){this._clearTimeout();return}const r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){Z.on(this._element,ex,e=>this._onInteraction(e,!0)),Z.on(this._element,tx,e=>this._onInteraction(e,!1)),Z.on(this._element,nx,e=>this._onInteraction(e,!0)),Z.on(this._element,rx,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const n=ja.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]=="undefined")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}$a(ja);Ft(ja);export{dx as A,fx as B,Ir as C,yx as D,rc as E,Me as F,Dx as G,Ix as H,_x as I,Sx as J,Tx as K,Fe as L,kx as M,xx as N,En as O,W as P,Mn as Q,vx as R,bx as S,dn as T,cn as U,gx as V,Ox as a,wx as b,Ex as c,Ax as d,Gt as e,ce as f,oe as g,fe as h,ht as i,Qe as j,dt as k,Yt as l,I as m,Ve as n,K as o,Pe as p,Nx as q,px as r,Px as s,st as t,Cx as u,he as v,$e as w,Se as x,hx as y,mx as z};
|