@educorvi/vue-json-form-webcomponent 3.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +1 -0
- package/dist/vue-json-form.umd.js +105 -0
- package/dist/vue-json-form.umd.js.map +1 -0
- package/package.json +42 -0
@@ -0,0 +1,105 @@
|
|
1
|
+
(function(da){typeof define=="function"&&define.amd?define(da):da()})(function(){"use strict";/**
|
2
|
+
* @vue/shared v3.5.13
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
4
|
+
* @license MIT
|
5
|
+
**//*! #__NO_SIDE_EFFECTS__ */function da(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const wt={},pa=[],vn=()=>{},zE=()=>!1,Zs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Of=e=>e.startsWith("onUpdate:"),Ct=Object.assign,Af=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},qE=Object.prototype.hasOwnProperty,St=(e,t)=>qE.call(e,t),De=Array.isArray,ha=e=>ji(e)==="[object Map]",ma=e=>ji(e)==="[object Set]",vm=e=>ji(e)==="[object Date]",Ue=e=>typeof e=="function",Nt=e=>typeof e=="string",nn=e=>typeof e=="symbol",Pt=e=>e!==null&&typeof e=="object",bm=e=>(Pt(e)||Ue(e))&&Ue(e.then)&&Ue(e.catch),wm=Object.prototype.toString,ji=e=>wm.call(e),WE=e=>ji(e).slice(8,-1),Ys=e=>ji(e)==="[object Object]",Pf=e=>Nt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ki=da(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xs=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},HE=/-(\w)/g,sr=Xs(e=>e.replace(HE,(t,r)=>r?r.toUpperCase():"")),GE=/\B([A-Z])/g,Rr=Xs(e=>e.replace(GE,"-$1").toLowerCase()),Qs=Xs(e=>e.charAt(0).toUpperCase()+e.slice(1)),xf=Xs(e=>e?`on${Qs(e)}`:""),xr=(e,t)=>!Object.is(e,t),el=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},_m=(e,t,r,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},Sm=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Tf=e=>{const t=Nt(e)?Number(e):NaN;return isNaN(t)?e:t};let $m;const tl=()=>$m||($m=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ya(e){if(De(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],o=Nt(n)?YE(n):ya(n);if(o)for(const a in o)t[a]=o[a]}return t}else if(Nt(e)||Pt(e))return e}const JE=/;(?![^(]*\))/g,KE=/:([^]+)/,ZE=/\/\*[^]*?\*\//g;function YE(e){const t={};return e.replace(ZE,"").split(JE).forEach(r=>{if(r){const n=r.split(KE);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function nt(e){let t="";if(Nt(e))t=e;else if(De(e))for(let r=0;r<e.length;r++){const n=nt(e[r]);n&&(t+=n+" ")}else if(Pt(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function ga(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Nt(t)&&(e.class=nt(t)),r&&(e.style=ya(r)),e}const XE=da("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Em(e){return!!e||e===""}function QE(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=ko(e[n],t[n]);return r}function ko(e,t){if(e===t)return!0;let r=vm(e),n=vm(t);if(r||n)return r&&n?e.getTime()===t.getTime():!1;if(r=nn(e),n=nn(t),r||n)return e===t;if(r=De(e),n=De(t),r||n)return r&&n?QE(e,t):!1;if(r=Pt(e),n=Pt(t),r||n){if(!r||!n)return!1;const o=Object.keys(e).length,a=Object.keys(t).length;if(o!==a)return!1;for(const i in e){const s=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(s&&!l||!s&&l||!ko(e[i],t[i]))return!1}}return String(e)===String(t)}function jf(e,t){return e.findIndex(r=>ko(r,t))}const Om=e=>!!(e&&e.__v_isRef===!0),Ve=e=>Nt(e)?e:e==null?"":De(e)||Pt(e)&&(e.toString===wm||!Ue(e.toString))?Om(e)?Ve(e.value):JSON.stringify(e,Am,2):String(e),Am=(e,t)=>Om(t)?Am(e,t.value):ha(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,o],a)=>(r[kf(n,a)+" =>"]=o,r),{})}:ma(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>kf(r))}:nn(t)?kf(t):Pt(t)&&!De(t)&&!Ys(t)?String(t):t,kf=(e,t="")=>{var r;return nn(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
|
6
|
+
* @vue/reactivity v3.5.13
|
7
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
8
|
+
* @license MIT
|
9
|
+
**/let br;class Pm{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=br,!t&&br&&(this.index=(br.scopes||(br.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].pause();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].resume();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].resume()}}run(t){if(this._active){const r=br;try{return br=this,t()}finally{br=r}}}on(){br=this}off(){br=this.parent}stop(t){if(this._active){this._active=!1;let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(this.effects.length=0,r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function xm(e){return new Pm(e)}function Cf(){return br}function Tm(e,t=!1){br&&br.cleanups.push(e)}let jt;const Nf=new WeakSet;class jm{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,br&&br.active&&br.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Nf.has(this)&&(Nf.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Cm(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Dm(this),Nm(this);const t=jt,r=on;jt=this,on=!0;try{return this.fn()}finally{Im(this),jt=t,on=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Df(t);this.deps=this.depsTail=void 0,Dm(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Nf.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Bf(this)&&this.run()}get dirty(){return Bf(this)}}let km=0,Ci,Ni;function Cm(e,t=!1){if(e.flags|=8,t){e.next=Ni,Ni=e;return}e.next=Ci,Ci=e}function If(){km++}function Rf(){if(--km>0)return;if(Ni){let t=Ni;for(Ni=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Ci;){let t=Ci;for(Ci=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function Nm(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Im(e){let t,r=e.depsTail,n=r;for(;n;){const o=n.prevDep;n.version===-1?(n===r&&(r=o),Df(n),eO(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=o}e.deps=t,e.depsTail=r}function Bf(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Rm(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Rm(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ii))return;e.globalVersion=Ii;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Bf(e)){e.flags&=-3;return}const r=jt,n=on;jt=e,on=!0;try{Nm(e);const o=e.fn(e._value);(t.version===0||xr(o,e._value))&&(e._value=o,t.version++)}catch(o){throw t.version++,o}finally{jt=r,on=n,Im(e),e.flags&=-3}}function Df(e,t=!1){const{dep:r,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let a=r.computed.deps;a;a=a.nextDep)Df(a,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function eO(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let on=!0;const Bm=[];function Bn(){Bm.push(on),on=!1}function Dn(){const e=Bm.pop();on=e===void 0?!0:e}function Dm(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=jt;jt=void 0;try{t()}finally{jt=r}}}let Ii=0;class tO{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class rl{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!jt||!on||jt===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==jt)r=this.activeLink=new tO(jt,this),jt.deps?(r.prevDep=jt.depsTail,jt.depsTail.nextDep=r,jt.depsTail=r):jt.deps=jt.depsTail=r,Fm(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=jt.depsTail,r.nextDep=void 0,jt.depsTail.nextDep=r,jt.depsTail=r,jt.deps===r&&(jt.deps=n)}return r}trigger(t){this.version++,Ii++,this.notify(t)}notify(t){If();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{Rf()}}}function Fm(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)Fm(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const nl=new WeakMap,Co=Symbol(""),Ff=Symbol(""),Ri=Symbol("");function lr(e,t,r){if(on&&jt){let n=nl.get(e);n||nl.set(e,n=new Map);let o=n.get(r);o||(n.set(r,o=new rl),o.map=n,o.key=r),o.track()}}function Fn(e,t,r,n,o,a){const i=nl.get(e);if(!i){Ii++;return}const s=l=>{l&&l.trigger()};if(If(),t==="clear")i.forEach(s);else{const l=De(e),u=l&&Pf(r);if(l&&r==="length"){const c=Number(n);i.forEach((d,v)=>{(v==="length"||v===Ri||!nn(v)&&v>=c)&&s(d)})}else switch((r!==void 0||i.has(void 0))&&s(i.get(r)),u&&s(i.get(Ri)),t){case"add":l?u&&s(i.get("length")):(s(i.get(Co)),ha(e)&&s(i.get(Ff)));break;case"delete":l||(s(i.get(Co)),ha(e)&&s(i.get(Ff)));break;case"set":ha(e)&&s(i.get(Co));break}}Rf()}function rO(e,t){const r=nl.get(e);return r&&r.get(t)}function va(e){const t=Ke(e);return t===e?t:(lr(t,"iterate",Ri),Hr(e)?t:t.map(ur))}function ol(e){return lr(e=Ke(e),"iterate",Ri),e}const nO={__proto__:null,[Symbol.iterator](){return Mf(this,Symbol.iterator,ur)},concat(...e){return va(this).concat(...e.map(t=>De(t)?va(t):t))},entries(){return Mf(this,"entries",e=>(e[1]=ur(e[1]),e))},every(e,t){return Mn(this,"every",e,t,void 0,arguments)},filter(e,t){return Mn(this,"filter",e,t,r=>r.map(ur),arguments)},find(e,t){return Mn(this,"find",e,t,ur,arguments)},findIndex(e,t){return Mn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Mn(this,"findLast",e,t,ur,arguments)},findLastIndex(e,t){return Mn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Mn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Vf(this,"includes",e)},indexOf(...e){return Vf(this,"indexOf",e)},join(e){return va(this).join(e)},lastIndexOf(...e){return Vf(this,"lastIndexOf",e)},map(e,t){return Mn(this,"map",e,t,void 0,arguments)},pop(){return Bi(this,"pop")},push(...e){return Bi(this,"push",e)},reduce(e,...t){return Mm(this,"reduce",e,t)},reduceRight(e,...t){return Mm(this,"reduceRight",e,t)},shift(){return Bi(this,"shift")},some(e,t){return Mn(this,"some",e,t,void 0,arguments)},splice(...e){return Bi(this,"splice",e)},toReversed(){return va(this).toReversed()},toSorted(e){return va(this).toSorted(e)},toSpliced(...e){return va(this).toSpliced(...e)},unshift(...e){return Bi(this,"unshift",e)},values(){return Mf(this,"values",ur)}};function Mf(e,t,r){const n=ol(e),o=n[t]();return n!==e&&!Hr(e)&&(o._next=o.next,o.next=()=>{const a=o._next();return a.value&&(a.value=r(a.value)),a}),o}const oO=Array.prototype;function Mn(e,t,r,n,o,a){const i=ol(e),s=i!==e&&!Hr(e),l=i[t];if(l!==oO[t]){const d=l.apply(e,a);return s?ur(d):d}let u=r;i!==e&&(s?u=function(d,v){return r.call(this,ur(d),v,e)}:r.length>2&&(u=function(d,v){return r.call(this,d,v,e)}));const c=l.call(i,u,n);return s&&o?o(c):c}function Mm(e,t,r,n){const o=ol(e);let a=r;return o!==e&&(Hr(e)?r.length>3&&(a=function(i,s,l){return r.call(this,i,s,l,e)}):a=function(i,s,l){return r.call(this,i,ur(s),l,e)}),o[t](a,...n)}function Vf(e,t,r){const n=Ke(e);lr(n,"iterate",Ri);const o=n[t](...r);return(o===-1||o===!1)&&cl(r[0])?(r[0]=Ke(r[0]),n[t](...r)):o}function Bi(e,t,r=[]){Bn(),If();const n=Ke(e)[t].apply(e,r);return Rf(),Dn(),n}const aO=da("__proto__,__v_isRef,__isVue"),Vm=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(nn));function iO(e){nn(e)||(e=String(e));const t=Ke(this);return lr(t,"has",e),t.hasOwnProperty(e)}class Um{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;const o=this._isReadonly,a=this._isShallow;if(r==="__v_isReactive")return!o;if(r==="__v_isReadonly")return o;if(r==="__v_isShallow")return a;if(r==="__v_raw")return n===(o?a?Gm:Hm:a?Wm:qm).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=De(t);if(!o){let l;if(i&&(l=nO[r]))return l;if(r==="hasOwnProperty")return iO}const s=Reflect.get(t,r,kt(t)?t:n);return(nn(r)?Vm.has(r):aO(r))||(o||lr(t,"get",r),a)?s:kt(s)?i&&Pf(r)?s:s.value:Pt(s)?o?Wr(s):ll(s):s}}class Lm extends Um{constructor(t=!1){super(!1,t)}set(t,r,n,o){let a=t[r];if(!this._isShallow){const l=No(a);if(!Hr(n)&&!No(n)&&(a=Ke(a),n=Ke(n)),!De(t)&&kt(a)&&!kt(n))return l?!1:(a.value=n,!0)}const i=De(t)&&Pf(r)?Number(r)<t.length:St(t,r),s=Reflect.set(t,r,n,kt(t)?t:o);return t===Ke(o)&&(i?xr(n,a)&&Fn(t,"set",r,n):Fn(t,"add",r,n)),s}deleteProperty(t,r){const n=St(t,r);t[r];const o=Reflect.deleteProperty(t,r);return o&&n&&Fn(t,"delete",r,void 0),o}has(t,r){const n=Reflect.has(t,r);return(!nn(r)||!Vm.has(r))&&lr(t,"has",r),n}ownKeys(t){return lr(t,"iterate",De(t)?"length":Co),Reflect.ownKeys(t)}}class zm extends Um{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const sO=new Lm,lO=new zm,uO=new Lm(!0),cO=new zm(!0),Uf=e=>e,al=e=>Reflect.getPrototypeOf(e);function fO(e,t,r){return function(...n){const o=this.__v_raw,a=Ke(o),i=ha(a),s=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=o[e](...n),c=r?Uf:t?Lf:ur;return!t&&lr(a,"iterate",l?Ff:Co),{next(){const{value:d,done:v}=u.next();return v?{value:d,done:v}:{value:s?[c(d[0]),c(d[1])]:c(d),done:v}},[Symbol.iterator](){return this}}}}function il(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function dO(e,t){const r={get(o){const a=this.__v_raw,i=Ke(a),s=Ke(o);e||(xr(o,s)&&lr(i,"get",o),lr(i,"get",s));const{has:l}=al(i),u=t?Uf:e?Lf:ur;if(l.call(i,o))return u(a.get(o));if(l.call(i,s))return u(a.get(s));a!==i&&a.get(o)},get size(){const o=this.__v_raw;return!e&&lr(Ke(o),"iterate",Co),Reflect.get(o,"size",o)},has(o){const a=this.__v_raw,i=Ke(a),s=Ke(o);return e||(xr(o,s)&&lr(i,"has",o),lr(i,"has",s)),o===s?a.has(o):a.has(o)||a.has(s)},forEach(o,a){const i=this,s=i.__v_raw,l=Ke(s),u=t?Uf:e?Lf:ur;return!e&&lr(l,"iterate",Co),s.forEach((c,d)=>o.call(a,u(c),u(d),i))}};return Ct(r,e?{add:il("add"),set:il("set"),delete:il("delete"),clear:il("clear")}:{add(o){!t&&!Hr(o)&&!No(o)&&(o=Ke(o));const a=Ke(this);return al(a).has.call(a,o)||(a.add(o),Fn(a,"add",o,o)),this},set(o,a){!t&&!Hr(a)&&!No(a)&&(a=Ke(a));const i=Ke(this),{has:s,get:l}=al(i);let u=s.call(i,o);u||(o=Ke(o),u=s.call(i,o));const c=l.call(i,o);return i.set(o,a),u?xr(a,c)&&Fn(i,"set",o,a):Fn(i,"add",o,a),this},delete(o){const a=Ke(this),{has:i,get:s}=al(a);let l=i.call(a,o);l||(o=Ke(o),l=i.call(a,o)),s&&s.call(a,o);const u=a.delete(o);return l&&Fn(a,"delete",o,void 0),u},clear(){const o=Ke(this),a=o.size!==0,i=o.clear();return a&&Fn(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{r[o]=fO(o,e,t)}),r}function sl(e,t){const r=dO(e,t);return(n,o,a)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get(St(r,o)&&o in n?r:n,o,a)}const pO={get:sl(!1,!1)},hO={get:sl(!1,!0)},mO={get:sl(!0,!1)},yO={get:sl(!0,!0)},qm=new WeakMap,Wm=new WeakMap,Hm=new WeakMap,Gm=new WeakMap;function gO(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function vO(e){return e.__v_skip||!Object.isExtensible(e)?0:gO(WE(e))}function ll(e){return No(e)?e:ul(e,!1,sO,pO,qm)}function bO(e){return ul(e,!1,uO,hO,Wm)}function Wr(e){return ul(e,!0,lO,mO,Hm)}function oL(e){return ul(e,!0,cO,yO,Gm)}function ul(e,t,r,n,o){if(!Pt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=o.get(e);if(a)return a;const i=vO(e);if(i===0)return e;const s=new Proxy(e,i===2?n:r);return o.set(e,s),s}function bn(e){return No(e)?bn(e.__v_raw):!!(e&&e.__v_isReactive)}function No(e){return!!(e&&e.__v_isReadonly)}function Hr(e){return!!(e&&e.__v_isShallow)}function cl(e){return e?!!e.__v_raw:!1}function Ke(e){const t=e&&e.__v_raw;return t?Ke(t):e}function Vn(e){return!St(e,"__v_skip")&&Object.isExtensible(e)&&_m(e,"__v_skip",!0),e}const ur=e=>Pt(e)?ll(e):e,Lf=e=>Pt(e)?Wr(e):e;function kt(e){return e?e.__v_isRef===!0:!1}function ot(e){return Jm(e,!1)}function fl(e){return Jm(e,!0)}function Jm(e,t){return kt(e)?e:new wO(e,t)}class wO{constructor(t,r){this.dep=new rl,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:Ke(t),this._value=r?t:ur(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||Hr(t)||No(t);t=n?t:Ke(t),xr(t,r)&&(this._rawValue=t,this._value=n?t:ur(t),this.dep.trigger())}}function P(e){return kt(e)?e.value:e}function Ut(e){return Ue(e)?e():P(e)}const _O={get:(e,t,r)=>t==="__v_raw"?e:P(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const o=e[t];return kt(o)&&!kt(r)?(o.value=r,!0):Reflect.set(e,t,r,n)}};function Km(e){return bn(e)?e:new Proxy(e,_O)}class SO{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new rl,{get:n,set:o}=t(r.track.bind(r),r.trigger.bind(r));this._get=n,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Zm(e){return new SO(e)}function Ym(e){const t=De(e)?new Array(e.length):{};for(const r in e)t[r]=Xm(e,r);return t}class $O{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return rO(Ke(this._object),this._key)}}class EO{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function at(e,t,r){return kt(e)?e:Ue(e)?new EO(e):Pt(e)&&arguments.length>1?Xm(e,t,r):ot(e)}function Xm(e,t,r){const n=e[t];return kt(n)?n:new $O(e,t,r)}class OO{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new rl(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ii-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&jt!==this)return Cm(this,!0),!0}get value(){const t=this.dep.track();return Rm(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function AO(e,t,r=!1){let n,o;return Ue(e)?n=e:(n=e.get,o=e.set),new OO(n,o,r)}const dl={},pl=new WeakMap;let Io;function PO(e,t=!1,r=Io){if(r){let n=pl.get(r);n||pl.set(r,n=[]),n.push(e)}}function xO(e,t,r=wt){const{immediate:n,deep:o,once:a,scheduler:i,augmentJob:s,call:l}=r,u=T=>o?T:Hr(T)||o===!1||o===0?Un(T,1):Un(T);let c,d,v,g,b=!1,E=!1;if(kt(e)?(d=()=>e.value,b=Hr(e)):bn(e)?(d=()=>u(e),b=!0):De(e)?(E=!0,b=e.some(T=>bn(T)||Hr(T)),d=()=>e.map(T=>{if(kt(T))return T.value;if(bn(T))return u(T);if(Ue(T))return l?l(T,2):T()})):Ue(e)?t?d=l?()=>l(e,2):e:d=()=>{if(v){Bn();try{v()}finally{Dn()}}const T=Io;Io=c;try{return l?l(e,3,[g]):e(g)}finally{Io=T}}:d=vn,t&&o){const T=d,O=o===!0?1/0:o;d=()=>Un(T(),O)}const y=Cf(),m=()=>{c.stop(),y&&y.active&&Af(y.effects,c)};if(a&&t){const T=t;t=(...O)=>{T(...O),m()}}let p=E?new Array(e.length).fill(dl):dl;const _=T=>{if(!(!(c.flags&1)||!c.dirty&&!T))if(t){const O=c.run();if(o||b||(E?O.some((j,C)=>xr(j,p[C])):xr(O,p))){v&&v();const j=Io;Io=c;try{const C=[O,p===dl?void 0:E&&p[0]===dl?[]:p,g];l?l(t,3,C):t(...C),p=O}finally{Io=j}}}else c.run()};return s&&s(_),c=new jm(d),c.scheduler=i?()=>i(_,!1):_,g=T=>PO(T,!1,c),v=c.onStop=()=>{const T=pl.get(c);if(T){if(l)l(T,4);else for(const O of T)O();pl.delete(c)}},t?n?_(!0):p=c.run():i?i(_.bind(null,!0),!0):c.run(),m.pause=c.pause.bind(c),m.resume=c.resume.bind(c),m.stop=m,m}function Un(e,t=1/0,r){if(t<=0||!Pt(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,kt(e))Un(e.value,t,r);else if(De(e))for(let n=0;n<e.length;n++)Un(e[n],t,r);else if(ma(e)||ha(e))e.forEach(n=>{Un(n,t,r)});else if(Ys(e)){for(const n in e)Un(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Un(e[n],t,r)}return e}/**
|
10
|
+
* @vue/runtime-core v3.5.13
|
11
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
12
|
+
* @license MIT
|
13
|
+
**/const Di=[];let zf=!1;function aL(e,...t){if(zf)return;zf=!0,Bn();const r=Di.length?Di[Di.length-1].component:null,n=r&&r.appContext.config.warnHandler,o=TO();if(n)ba(n,r,11,[e+t.map(a=>{var i,s;return(s=(i=a.toString)==null?void 0:i.call(a))!=null?s:JSON.stringify(a)}).join(""),r&&r.proxy,o.map(({vnode:a})=>`at <${ag(r,a.type)}>`).join(`
|
14
|
+
`),o]);else{const a=[`[Vue warn]: ${e}`,...t];o.length&&a.push(`
|
15
|
+
`,...jO(o)),console.warn(...a)}Dn(),zf=!1}function TO(){let e=Di[Di.length-1];if(!e)return[];const t=[];for(;e;){const r=t[0];r&&r.vnode===e?r.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}function jO(e){const t=[];return e.forEach((r,n)=>{t.push(...n===0?[]:[`
|
16
|
+
`],...kO(r))}),t}function kO({vnode:e,recurseCount:t}){const r=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,o=` at <${ag(e.component,e.type,n)}`,a=">"+r;return e.props?[o,...CO(e.props),a]:[o+a]}function CO(e){const t=[],r=Object.keys(e);return r.slice(0,3).forEach(n=>{t.push(...Qm(n,e[n]))}),r.length>3&&t.push(" ..."),t}function Qm(e,t,r){return Nt(t)?(t=JSON.stringify(t),r?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?r?t:[`${e}=${t}`]:kt(t)?(t=Qm(e,Ke(t.value),!0),r?t:[`${e}=Ref<`,t,">"]):Ue(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Ke(t),r?t:[`${e}=`,t])}function ba(e,t,r,n){try{return n?e(...n):e()}catch(o){Fi(o,t,r)}}function an(e,t,r,n){if(Ue(e)){const o=ba(e,t,r,n);return o&&bm(o)&&o.catch(a=>{Fi(a,t,r)}),o}if(De(e)){const o=[];for(let a=0;a<e.length;a++)o.push(an(e[a],t,r,n));return o}}function Fi(e,t,r,n=!0){const o=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||wt;if(t){let s=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${r}`;for(;s;){const c=s.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,l,u)===!1)return}s=s.parent}if(a){Bn(),ba(a,null,10,[e,l,u]),Dn();return}}NO(e,r,o,n,i)}function NO(e,t,r,n=!0,o=!1){if(o)throw e;console.error(e)}const wr=[];let wn=-1;const wa=[];let io=null,_a=0;const ey=Promise.resolve();let hl=null;function _r(e){const t=hl||ey;return e?t.then(this?e.bind(this):e):t}function IO(e){let t=wn+1,r=wr.length;for(;t<r;){const n=t+r>>>1,o=wr[n],a=Mi(o);a<e||a===e&&o.flags&2?t=n+1:r=n}return t}function qf(e){if(!(e.flags&1)){const t=Mi(e),r=wr[wr.length-1];!r||!(e.flags&2)&&t>=Mi(r)?wr.push(e):wr.splice(IO(t),0,e),e.flags|=1,ty()}}function ty(){hl||(hl=ey.then(oy))}function RO(e){De(e)?wa.push(...e):io&&e.id===-1?io.splice(_a+1,0,e):e.flags&1||(wa.push(e),e.flags|=1),ty()}function ry(e,t,r=wn+1){for(;r<wr.length;r++){const n=wr[r];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;wr.splice(r,1),r--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function ny(e){if(wa.length){const t=[...new Set(wa)].sort((r,n)=>Mi(r)-Mi(n));if(wa.length=0,io){io.push(...t);return}for(io=t,_a=0;_a<io.length;_a++){const r=io[_a];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}io=null,_a=0}}const Mi=e=>e.id==null?e.flags&2?-1:1/0:e.id;function oy(e){try{for(wn=0;wn<wr.length;wn++){const t=wr[wn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ba(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;wn<wr.length;wn++){const t=wr[wn];t&&(t.flags&=-2)}wn=-1,wr.length=0,ny(),hl=null,(wr.length||wa.length)&&oy()}}let Gt=null,ay=null;function ml(e){const t=Gt;return Gt=e,ay=e&&e.type.__scopeId||null,t}function Ce(e,t=Gt,r){if(!t||e._n)return e;const n=(...o)=>{n._d&&Ky(-1);const a=ml(t);let i;try{i=e(...o)}finally{ml(a),n._d&&Ky(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function yl(e,t){if(Gt===null)return e;const r=Tl(Gt),n=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[a,i,s,l=wt]=t[o];a&&(Ue(a)&&(a={mounted:a,updated:a}),a.deep&&Un(i),n.push({dir:a,instance:r,value:i,oldValue:void 0,arg:s,modifiers:l}))}return e}function Ro(e,t,r,n){const o=e.dirs,a=t&&t.dirs;for(let i=0;i<o.length;i++){const s=o[i];a&&(s.oldValue=a[i].value);let l=s.dir[n];l&&(Bn(),an(l,r,8,[e.el,s,e,t]),Dn())}}const BO=Symbol("_vte"),iy=e=>e.__isTeleport,so=Symbol("_leaveCb"),gl=Symbol("_enterCb");function sy(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return $a(()=>{e.isMounted=!0}),wl(()=>{e.isUnmounting=!0}),e}const Gr=[Function,Array],ly={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Gr,onEnter:Gr,onAfterEnter:Gr,onEnterCancelled:Gr,onBeforeLeave:Gr,onLeave:Gr,onAfterLeave:Gr,onLeaveCancelled:Gr,onBeforeAppear:Gr,onAppear:Gr,onAfterAppear:Gr,onAppearCancelled:Gr},uy=e=>{const t=e.subTree;return t.component?uy(t.component):t},DO={name:"BaseTransition",props:ly,setup(e,{slots:t}){const r=qn(),n=sy();return()=>{const o=t.default&&Hf(t.default(),!0);if(!o||!o.length)return;const a=cy(o),i=Ke(e),{mode:s}=i;if(n.isLeaving)return Wf(a);const l=dy(a);if(!l)return Wf(a);let u=Vi(l,i,n,r,d=>u=d);l.type!==Er&&Bo(l,u);let c=r.subTree&&dy(r.subTree);if(c&&c.type!==Er&&!Mo(l,c)&&uy(r).type!==Er){let d=Vi(c,i,n,r);if(Bo(c,d),s==="out-in"&&l.type!==Er)return n.isLeaving=!0,d.afterLeave=()=>{n.isLeaving=!1,r.job.flags&8||r.update(),delete d.afterLeave,c=void 0},Wf(a);s==="in-out"&&l.type!==Er?d.delayLeave=(v,g,b)=>{const E=fy(n,c);E[String(c.key)]=c,v[so]=()=>{g(),v[so]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{b(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return a}}};function cy(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==Er){t=r;break}}return t}const FO=DO;function fy(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function Vi(e,t,r,n,o){const{appear:a,mode:i,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:v,onLeave:g,onAfterLeave:b,onLeaveCancelled:E,onBeforeAppear:y,onAppear:m,onAfterAppear:p,onAppearCancelled:_}=t,T=String(e.key),O=fy(r,e),j=(V,U)=>{V&&an(V,n,9,U)},C=(V,U)=>{const W=U[1];j(V,U),De(V)?V.every(ee=>ee.length<=1)&&W():V.length<=1&&W()},Z={mode:i,persisted:s,beforeEnter(V){let U=l;if(!r.isMounted)if(a)U=y||l;else return;V[so]&&V[so](!0);const W=O[T];W&&Mo(e,W)&&W.el[so]&&W.el[so](),j(U,[V])},enter(V){let U=u,W=c,ee=d;if(!r.isMounted)if(a)U=m||u,W=p||c,ee=_||d;else return;let fe=!1;const ve=V[gl]=Ne=>{fe||(fe=!0,Ne?j(ee,[V]):j(W,[V]),Z.delayedLeave&&Z.delayedLeave(),V[gl]=void 0)};U?C(U,[V,ve]):ve()},leave(V,U){const W=String(e.key);if(V[gl]&&V[gl](!0),r.isUnmounting)return U();j(v,[V]);let ee=!1;const fe=V[so]=ve=>{ee||(ee=!0,U(),ve?j(E,[V]):j(b,[V]),V[so]=void 0,O[W]===e&&delete O[W])};O[W]=e,g?C(g,[V,fe]):fe()},clone(V){const U=Vi(V,t,r,n,o);return o&&o(U),U}};return Z}function Wf(e){if(Ui(e))return e=lo(e),e.children=null,e}function dy(e){if(!Ui(e))return iy(e.type)&&e.children?cy(e.children):e;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&Ue(r.default))return r.default()}}function Bo(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Bo(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Hf(e,t=!1,r){let n=[],o=0;for(let a=0;a<e.length;a++){let i=e[a];const s=r==null?i.key:String(r)+String(i.key!=null?i.key:a);i.type===ht?(i.patchFlag&128&&o++,n=n.concat(Hf(i.children,t,s))):(t||i.type!==Er)&&n.push(s!=null?lo(i,{key:s}):i)}if(o>1)for(let a=0;a<n.length;a++)n[a].patchFlag=-2;return n}/*! #__NO_SIDE_EFFECTS__ */function Re(e,t){return Ue(e)?Ct({name:e.name},t,{setup:e}):e}function MO(){const e=qn();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Gf(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Jr(e){const t=qn(),r=fl(null);if(t){const o=t.refs===wt?t.refs={}:t.refs;Object.defineProperty(o,e,{enumerable:!0,get:()=>r.value,set:a=>r.value=a})}return r}function vl(e,t,r,n,o=!1){if(De(e)){e.forEach((b,E)=>vl(b,t&&(De(t)?t[E]:t),r,n,o));return}if(Sa(n)&&!o){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&vl(e,t,r,n.component.subTree);return}const a=n.shapeFlag&4?Tl(n.component):n.el,i=o?null:a,{i:s,r:l}=e,u=t&&t.r,c=s.refs===wt?s.refs={}:s.refs,d=s.setupState,v=Ke(d),g=d===wt?()=>!1:b=>St(v,b);if(u!=null&&u!==l&&(Nt(u)?(c[u]=null,g(u)&&(d[u]=null)):kt(u)&&(u.value=null)),Ue(l))ba(l,s,12,[i,c]);else{const b=Nt(l),E=kt(l);if(b||E){const y=()=>{if(e.f){const m=b?g(l)?d[l]:c[l]:l.value;o?De(m)&&Af(m,a):De(m)?m.includes(a)||m.push(a):b?(c[l]=[a],g(l)&&(d[l]=c[l])):(l.value=[a],e.k&&(c[e.k]=l.value))}else b?(c[l]=i,g(l)&&(d[l]=i)):E&&(l.value=i,e.k&&(c[e.k]=i))};i?(y.id=-1,Dr(y,r)):y()}}}const py=e=>e.nodeType===8;tl().requestIdleCallback,tl().cancelIdleCallback;function VO(e,t){if(py(e)&&e.data==="["){let r=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(py(n))if(n.data==="]"){if(--r===0)break}else n.data==="["&&r++;n=n.nextSibling}}else t(e)}const Sa=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function cr(e){Ue(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:n,delay:o=200,hydrate:a,timeout:i,suspensible:s=!0,onError:l}=e;let u=null,c,d=0;const v=()=>(d++,u=null,g()),g=()=>{let b;return u||(b=u=t().catch(E=>{if(E=E instanceof Error?E:new Error(String(E)),l)return new Promise((y,m)=>{l(E,()=>y(v()),()=>m(E),d+1)});throw E}).then(E=>b!==u&&u?u:(E&&(E.__esModule||E[Symbol.toStringTag]==="Module")&&(E=E.default),c=E,E)))};return Re({name:"AsyncComponentWrapper",__asyncLoader:g,__asyncHydrate(b,E,y){const m=a?()=>{const p=a(y,_=>VO(b,_));p&&(E.bum||(E.bum=[])).push(p)}:y;c?m():g().then(()=>!E.isUnmounted&&m())},get __asyncResolved(){return c},setup(){const b=Kt;if(Gf(b),c)return()=>Jf(c,b);const E=_=>{u=null,Fi(_,b,13,!n)};if(s&&b.suspense||Ea)return g().then(_=>()=>Jf(_,b)).catch(_=>(E(_),()=>n?Ze(n,{error:_}):null));const y=ot(!1),m=ot(),p=ot(!!o);return o&&setTimeout(()=>{p.value=!1},o),i!=null&&setTimeout(()=>{if(!y.value&&!m.value){const _=new Error(`Async component timed out after ${i}ms.`);E(_),m.value=_}},i),g().then(()=>{y.value=!0,b.parent&&Ui(b.parent.vnode)&&b.parent.update()}).catch(_=>{E(_),m.value=_}),()=>{if(y.value&&c)return Jf(c,b);if(m.value&&n)return Ze(n,{error:m.value});if(r&&!p.value)return Ze(r)}}})}function Jf(e,t){const{ref:r,props:n,children:o,ce:a}=t.vnode,i=Ze(e,n,o);return i.ref=r,i.ce=a,delete t.vnode.ce,i}const Ui=e=>e.type.__isKeepAlive;function hy(e,t){my(e,"a",t)}function UO(e,t){my(e,"da",t)}function my(e,t,r=Kt){const n=e.__wdc||(e.__wdc=()=>{let o=r;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(bl(t,n,r),r){let o=r.parent;for(;o&&o.parent;)Ui(o.parent.vnode)&&LO(n,t,r,o),o=o.parent}}function LO(e,t,r,n){const o=bl(t,e,n,!0);gy(()=>{Af(n[t],o)},r)}function bl(e,t,r=Kt,n=!1){if(r){const o=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...i)=>{Bn();const s=Gi(r),l=an(t,r,e,i);return s(),Dn(),l});return n?o.unshift(a):o.push(a),a}}const Ln=e=>(t,r=Kt)=>{(!Ea||e==="sp")&&bl(e,(...n)=>t(...n),r)},Kf=Ln("bm"),$a=Ln("m"),zO=Ln("bu"),yy=Ln("u"),wl=Ln("bum"),gy=Ln("um"),qO=Ln("sp"),WO=Ln("rtg"),HO=Ln("rtc");function GO(e,t=Kt){bl("ec",e,t)}const vy="components";function JO(e,t){return wy(vy,e,!0,t)||e}const by=Symbol.for("v-ndc");function _t(e){return Nt(e)?wy(vy,e,!1)||e:e||by}function wy(e,t,r=!0,n=!1){const o=Gt||Kt;if(o){const a=o.type;{const s=og(a,!1);if(s&&(s===t||s===sr(t)||s===Qs(sr(t))))return a}const i=_y(o[e]||a[e],t)||_y(o.appContext[e],t);return!i&&n?a:i}}function _y(e,t){return e&&(e[t]||e[sr(t)]||e[Qs(sr(t))])}function Br(e,t,r,n){let o;const a=r,i=De(e);if(i||Nt(e)){const s=i&&bn(e);let l=!1;s&&(l=!Hr(e),e=ol(e)),o=new Array(e.length);for(let u=0,c=e.length;u<c;u++)o[u]=t(l?ur(e[u]):e[u],u,void 0,a)}else if(typeof e=="number"){o=new Array(e);for(let s=0;s<e;s++)o[s]=t(s+1,s,void 0,a)}else if(Pt(e))if(e[Symbol.iterator])o=Array.from(e,(s,l)=>t(s,l,void 0,a));else{const s=Object.keys(e);o=new Array(s.length);for(let l=0,u=s.length;l<u;l++){const c=s[l];o[l]=t(e[c],c,l,a)}}else o=[];return o}function KO(e,t){for(let r=0;r<t.length;r++){const n=t[r];if(De(n))for(let o=0;o<n.length;o++)e[n[o].name]=n[o].fn;else n&&(e[n.name]=n.key?(...o)=>{const a=n.fn(...o);return a&&(a.key=n.key),a}:n.fn)}return e}function Ie(e,t,r={},n,o){if(Gt.ce||Gt.parent&&Sa(Gt.parent)&&Gt.parent.ce)return t!=="default"&&(r.name=t),ie(),xe(ht,null,[Ze("slot",r,n&&n())],64);let a=e[t];a&&a._c&&(a._d=!1),ie();const i=a&&Sy(a(r)),s=r.key||i&&i.key,l=xe(ht,{key:(s&&!nn(s)?s:`_${t}`)+(!i&&n?"_fb":"")},i||(n?n():[]),i&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),a&&a._c&&(a._d=!0),l}function Sy(e){return e.some(t=>Hi(t)?!(t.type===Er||t.type===ht&&!Sy(t.children)):!0)?e:null}const Zf=e=>e?Qy(e)?Tl(e):Zf(e.parent):null,Li=Ct(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Zf(e.parent),$root:e=>Zf(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Qf(e),$forceUpdate:e=>e.f||(e.f=()=>{qf(e.update)}),$nextTick:e=>e.n||(e.n=_r.bind(e.proxy)),$watch:e=>vA.bind(e)}),Yf=(e,t)=>e!==wt&&!e.__isScriptSetup&&St(e,t),ZO={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:o,props:a,accessCache:i,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const g=i[t];if(g!==void 0)switch(g){case 1:return n[t];case 2:return o[t];case 4:return r[t];case 3:return a[t]}else{if(Yf(n,t))return i[t]=1,n[t];if(o!==wt&&St(o,t))return i[t]=2,o[t];if((u=e.propsOptions[0])&&St(u,t))return i[t]=3,a[t];if(r!==wt&&St(r,t))return i[t]=4,r[t];Xf&&(i[t]=0)}}const c=Li[t];let d,v;if(c)return t==="$attrs"&&lr(e.attrs,"get",""),c(e);if((d=s.__cssModules)&&(d=d[t]))return d;if(r!==wt&&St(r,t))return i[t]=4,r[t];if(v=l.config.globalProperties,St(v,t))return v[t]},set({_:e},t,r){const{data:n,setupState:o,ctx:a}=e;return Yf(o,t)?(o[t]=r,!0):n!==wt&&St(n,t)?(n[t]=r,!0):St(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:o,propsOptions:a}},i){let s;return!!r[i]||e!==wt&&St(e,i)||Yf(t,i)||(s=a[0])&&St(s,i)||St(n,i)||St(Li,i)||St(o.config.globalProperties,i)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:St(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function zn(){return Ey().slots}function $y(){return Ey().attrs}function Ey(){const e=qn();return e.setupContext||(e.setupContext=ng(e))}function _l(e){return De(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function Tr(e,t){return!e||!t?e||t:De(e)&&De(t)?e.concat(t):Ct({},_l(e),_l(t))}let Xf=!0;function YO(e){const t=Qf(e),r=e.proxy,n=e.ctx;Xf=!1,t.beforeCreate&&Oy(t.beforeCreate,e,"bc");const{data:o,computed:a,methods:i,watch:s,provide:l,inject:u,created:c,beforeMount:d,mounted:v,beforeUpdate:g,updated:b,activated:E,deactivated:y,beforeDestroy:m,beforeUnmount:p,destroyed:_,unmounted:T,render:O,renderTracked:j,renderTriggered:C,errorCaptured:Z,serverPrefetch:V,expose:U,inheritAttrs:W,components:ee,directives:fe,filters:ve}=t;if(u&&XO(u,n,null),i)for(const Oe in i){const be=i[Oe];Ue(be)&&(n[Oe]=be.bind(r))}if(o){const Oe=o.call(r,r);Pt(Oe)&&(e.data=ll(Oe))}if(Xf=!0,a)for(const Oe in a){const be=a[Oe],Ee=Ue(be)?be.bind(r,r):Ue(be.get)?be.get.bind(r,r):vn,ue=!Ue(be)&&Ue(be.set)?be.set.bind(r):vn,q=ne({get:Ee,set:ue});Object.defineProperty(n,Oe,{enumerable:!0,configurable:!0,get:()=>q.value,set:D=>q.value=D})}if(s)for(const Oe in s)Ay(s[Oe],n,r,Oe);if(l){const Oe=Ue(l)?l.call(r):l;Reflect.ownKeys(Oe).forEach(be=>{fr(be,Oe[be])})}c&&Oy(c,e,"c");function Te(Oe,be){De(be)?be.forEach(Ee=>Oe(Ee.bind(r))):be&&Oe(be.bind(r))}if(Te(Kf,d),Te($a,v),Te(zO,g),Te(yy,b),Te(hy,E),Te(UO,y),Te(GO,Z),Te(HO,j),Te(WO,C),Te(wl,p),Te(gy,T),Te(qO,V),De(U))if(U.length){const Oe=e.exposed||(e.exposed={});U.forEach(be=>{Object.defineProperty(Oe,be,{get:()=>r[be],set:Ee=>r[be]=Ee})})}else e.exposed||(e.exposed={});O&&e.render===vn&&(e.render=O),W!=null&&(e.inheritAttrs=W),ee&&(e.components=ee),fe&&(e.directives=fe),V&&Gf(e)}function XO(e,t,r=vn){De(e)&&(e=ed(e));for(const n in e){const o=e[n];let a;Pt(o)?"default"in o?a=Jt(o.from||n,o.default,!0):a=Jt(o.from||n):a=Jt(o),kt(a)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:i=>a.value=i}):t[n]=a}}function Oy(e,t,r){an(De(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function Ay(e,t,r,n){let o=n.includes(".")?qy(r,n):()=>r[n];if(Nt(e)){const a=t[e];Ue(a)&&$r(o,a)}else if(Ue(e))$r(o,e.bind(r));else if(Pt(e))if(De(e))e.forEach(a=>Ay(a,t,r,n));else{const a=Ue(e.handler)?e.handler.bind(r):t[e.handler];Ue(a)&&$r(o,a,e)}}function Qf(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:o,optionsCache:a,config:{optionMergeStrategies:i}}=e.appContext,s=a.get(t);let l;return s?l=s:!o.length&&!r&&!n?l=t:(l={},o.length&&o.forEach(u=>Sl(l,u,i,!0)),Sl(l,t,i)),Pt(t)&&a.set(t,l),l}function Sl(e,t,r,n=!1){const{mixins:o,extends:a}=t;a&&Sl(e,a,r,!0),o&&o.forEach(i=>Sl(e,i,r,!0));for(const i in t)if(!(n&&i==="expose")){const s=QO[i]||r&&r[i];e[i]=s?s(e[i],t[i]):t[i]}return e}const QO={data:Py,props:xy,emits:xy,methods:zi,computed:zi,beforeCreate:Sr,created:Sr,beforeMount:Sr,mounted:Sr,beforeUpdate:Sr,updated:Sr,beforeDestroy:Sr,beforeUnmount:Sr,destroyed:Sr,unmounted:Sr,activated:Sr,deactivated:Sr,errorCaptured:Sr,serverPrefetch:Sr,components:zi,directives:zi,watch:tA,provide:Py,inject:eA};function Py(e,t){return t?e?function(){return Ct(Ue(e)?e.call(this,this):e,Ue(t)?t.call(this,this):t)}:t:e}function eA(e,t){return zi(ed(e),ed(t))}function ed(e){if(De(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Sr(e,t){return e?[...new Set([].concat(e,t))]:t}function zi(e,t){return e?Ct(Object.create(null),e,t):t}function xy(e,t){return e?De(e)&&De(t)?[...new Set([...e,...t])]:Ct(Object.create(null),_l(e),_l(t??{})):t}function tA(e,t){if(!e)return t;if(!t)return e;const r=Ct(Object.create(null),e);for(const n in t)r[n]=Sr(e[n],t[n]);return r}function Ty(){return{app:null,config:{isNativeTag:zE,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 rA=0;function nA(e,t){return function(n,o=null){Ue(n)||(n=Ct({},n)),o!=null&&!Pt(o)&&(o=null);const a=Ty(),i=new WeakSet,s=[];let l=!1;const u=a.app={_uid:rA++,_component:n,_props:o,_container:null,_context:a,_instance:null,version:BA,get config(){return a.config},set config(c){},use(c,...d){return i.has(c)||(c&&Ue(c.install)?(i.add(c),c.install(u,...d)):Ue(c)&&(i.add(c),c(u,...d))),u},mixin(c){return a.mixins.includes(c)||a.mixins.push(c),u},component(c,d){return d?(a.components[c]=d,u):a.components[c]},directive(c,d){return d?(a.directives[c]=d,u):a.directives[c]},mount(c,d,v){if(!l){const g=u._ceVNode||Ze(n,o);return g.appContext=a,v===!0?v="svg":v===!1&&(v=void 0),d&&t?t(g,c):e(g,c,v),l=!0,u._container=c,c.__vue_app__=u,Tl(g.component)}},onUnmount(c){s.push(c)},unmount(){l&&(an(s,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,d){return a.provides[c]=d,u},runWithContext(c){const d=Do;Do=u;try{return c()}finally{Do=d}}};return u}}let Do=null;function fr(e,t){if(Kt){let r=Kt.provides;const n=Kt.parent&&Kt.parent.provides;n===r&&(r=Kt.provides=Object.create(n)),r[e]=t}}function Jt(e,t,r=!1){const n=Kt||Gt;if(n||Do){const o=Do?Do._context.provides:n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return r&&Ue(t)?t.call(n&&n.proxy):t}}function jy(){return!!(Kt||Gt||Do)}const ky={},Cy=()=>Object.create(ky),Ny=e=>Object.getPrototypeOf(e)===ky;function oA(e,t,r,n=!1){const o={},a=Cy();e.propsDefaults=Object.create(null),Iy(e,t,o,a);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);r?e.props=n?o:bO(o):e.type.props?e.props=o:e.props=a,e.attrs=a}function aA(e,t,r,n){const{props:o,attrs:a,vnode:{patchFlag:i}}=e,s=Ke(o),[l]=e.propsOptions;let u=!1;if((n||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let v=c[d];if(El(e.emitsOptions,v))continue;const g=t[v];if(l)if(St(a,v))g!==a[v]&&(a[v]=g,u=!0);else{const b=sr(v);o[b]=td(l,s,b,g,e,!1)}else g!==a[v]&&(a[v]=g,u=!0)}}}else{Iy(e,t,o,a)&&(u=!0);let c;for(const d in s)(!t||!St(t,d)&&((c=Rr(d))===d||!St(t,c)))&&(l?r&&(r[d]!==void 0||r[c]!==void 0)&&(o[d]=td(l,s,d,void 0,e,!0)):delete o[d]);if(a!==s)for(const d in a)(!t||!St(t,d))&&(delete a[d],u=!0)}u&&Fn(e.attrs,"set","")}function Iy(e,t,r,n){const[o,a]=e.propsOptions;let i=!1,s;if(t)for(let l in t){if(ki(l))continue;const u=t[l];let c;o&&St(o,c=sr(l))?!a||!a.includes(c)?r[c]=u:(s||(s={}))[c]=u:El(e.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,i=!0)}if(a){const l=Ke(r),u=s||wt;for(let c=0;c<a.length;c++){const d=a[c];r[d]=td(o,l,d,u[d],e,!St(u,d))}}return i}function td(e,t,r,n,o,a){const i=e[r];if(i!=null){const s=St(i,"default");if(s&&n===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&Ue(l)){const{propsDefaults:u}=o;if(r in u)n=u[r];else{const c=Gi(o);n=u[r]=l.call(null,t),c()}}else n=l;o.ce&&o.ce._setProp(r,n)}i[0]&&(a&&!s?n=!1:i[1]&&(n===""||n===Rr(r))&&(n=!0))}return n}const iA=new WeakMap;function Ry(e,t,r=!1){const n=r?iA:t.propsCache,o=n.get(e);if(o)return o;const a=e.props,i={},s=[];let l=!1;if(!Ue(e)){const c=d=>{l=!0;const[v,g]=Ry(d,t,!0);Ct(i,v),g&&s.push(...g)};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!a&&!l)return Pt(e)&&n.set(e,pa),pa;if(De(a))for(let c=0;c<a.length;c++){const d=sr(a[c]);By(d)&&(i[d]=wt)}else if(a)for(const c in a){const d=sr(c);if(By(d)){const v=a[c],g=i[d]=De(v)||Ue(v)?{type:v}:Ct({},v),b=g.type;let E=!1,y=!0;if(De(b))for(let m=0;m<b.length;++m){const p=b[m],_=Ue(p)&&p.name;if(_==="Boolean"){E=!0;break}else _==="String"&&(y=!1)}else E=Ue(b)&&b.name==="Boolean";g[0]=E,g[1]=y,(E||St(g,"default"))&&s.push(d)}}const u=[i,s];return Pt(e)&&n.set(e,u),u}function By(e){return e[0]!=="$"&&!ki(e)}const Dy=e=>e[0]==="_"||e==="$stable",rd=e=>De(e)?e.map(_n):[_n(e)],sA=(e,t,r)=>{if(t._n)return t;const n=Ce((...o)=>rd(t(...o)),r);return n._c=!1,n},Fy=(e,t,r)=>{const n=e._ctx;for(const o in e){if(Dy(o))continue;const a=e[o];if(Ue(a))t[o]=sA(o,a,n);else if(a!=null){const i=rd(a);t[o]=()=>i}}},My=(e,t)=>{const r=rd(t);e.slots.default=()=>r},Vy=(e,t,r)=>{for(const n in t)(r||n!=="_")&&(e[n]=t[n])},lA=(e,t,r)=>{const n=e.slots=Cy();if(e.vnode.shapeFlag&32){const o=t._;o?(Vy(n,t,r),r&&_m(n,"_",o,!0)):Fy(t,n)}else t&&My(e,t)},uA=(e,t,r)=>{const{vnode:n,slots:o}=e;let a=!0,i=wt;if(n.shapeFlag&32){const s=t._;s?r&&s===1?a=!1:Vy(o,t,r):(a=!t.$stable,Fy(t,o)),i=t}else t&&(My(e,t),i={default:1});if(a)for(const s in o)!Dy(s)&&i[s]==null&&delete o[s]},Dr=EA;function cA(e){return fA(e)}function fA(e,t){const r=tl();r.__VUE__=!0;const{insert:n,remove:o,patchProp:a,createElement:i,createText:s,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:v,setScopeId:g=vn,insertStaticContent:b}=e,E=(N,M,X,le=null,ye=null,ge=null,K=void 0,$e=null,te=!!M.dynamicChildren)=>{if(N===M)return;N&&!Mo(N,M)&&(le=de(N),D(N,ye,ge,!0),N=null),M.patchFlag===-2&&(te=!1,M.dynamicChildren=null);const{type:R,ref:H,shapeFlag:oe}=M;switch(R){case Ol:y(N,M,X,le);break;case Er:m(N,M,X,le);break;case ad:N==null&&p(M,X,le,K);break;case ht:ee(N,M,X,le,ye,ge,K,$e,te);break;default:oe&1?O(N,M,X,le,ye,ge,K,$e,te):oe&6?fe(N,M,X,le,ye,ge,K,$e,te):(oe&64||oe&128)&&R.process(N,M,X,le,ye,ge,K,$e,te,je)}H!=null&&ye&&vl(H,N&&N.ref,ge,M||N,!M)},y=(N,M,X,le)=>{if(N==null)n(M.el=s(M.children),X,le);else{const ye=M.el=N.el;M.children!==N.children&&u(ye,M.children)}},m=(N,M,X,le)=>{N==null?n(M.el=l(M.children||""),X,le):M.el=N.el},p=(N,M,X,le)=>{[N.el,N.anchor]=b(N.children,M,X,le,N.el,N.anchor)},_=({el:N,anchor:M},X,le)=>{let ye;for(;N&&N!==M;)ye=v(N),n(N,X,le),N=ye;n(M,X,le)},T=({el:N,anchor:M})=>{let X;for(;N&&N!==M;)X=v(N),o(N),N=X;o(M)},O=(N,M,X,le,ye,ge,K,$e,te)=>{M.type==="svg"?K="svg":M.type==="math"&&(K="mathml"),N==null?j(M,X,le,ye,ge,K,$e,te):V(N,M,ye,ge,K,$e,te)},j=(N,M,X,le,ye,ge,K,$e)=>{let te,R;const{props:H,shapeFlag:oe,transition:he,dirs:_e}=N;if(te=N.el=i(N.type,ge,H&&H.is,H),oe&8?c(te,N.children):oe&16&&Z(N.children,te,null,le,ye,nd(N,ge),K,$e),_e&&Ro(N,null,le,"created"),C(te,N,N.scopeId,K,le),H){for(const $ in H)$!=="value"&&!ki($)&&a(te,$,null,H[$],ge,le);"value"in H&&a(te,"value",null,H.value,ge),(R=H.onVnodeBeforeMount)&&Sn(R,le,N)}_e&&Ro(N,null,le,"beforeMount");const h=dA(ye,he);h&&he.beforeEnter(te),n(te,M,X),((R=H&&H.onVnodeMounted)||h||_e)&&Dr(()=>{R&&Sn(R,le,N),h&&he.enter(te),_e&&Ro(N,null,le,"mounted")},ye)},C=(N,M,X,le,ye)=>{if(X&&g(N,X),le)for(let ge=0;ge<le.length;ge++)g(N,le[ge]);if(ye){let ge=ye.subTree;if(M===ge||Jy(ge.type)&&(ge.ssContent===M||ge.ssFallback===M)){const K=ye.vnode;C(N,K,K.scopeId,K.slotScopeIds,ye.parent)}}},Z=(N,M,X,le,ye,ge,K,$e,te=0)=>{for(let R=te;R<N.length;R++){const H=N[R]=$e?uo(N[R]):_n(N[R]);E(null,H,M,X,le,ye,ge,K,$e)}},V=(N,M,X,le,ye,ge,K)=>{const $e=M.el=N.el;let{patchFlag:te,dynamicChildren:R,dirs:H}=M;te|=N.patchFlag&16;const oe=N.props||wt,he=M.props||wt;let _e;if(X&&Fo(X,!1),(_e=he.onVnodeBeforeUpdate)&&Sn(_e,X,M,N),H&&Ro(M,N,X,"beforeUpdate"),X&&Fo(X,!0),(oe.innerHTML&&he.innerHTML==null||oe.textContent&&he.textContent==null)&&c($e,""),R?U(N.dynamicChildren,R,$e,X,le,nd(M,ye),ge):K||be(N,M,$e,null,X,le,nd(M,ye),ge,!1),te>0){if(te&16)W($e,oe,he,X,ye);else if(te&2&&oe.class!==he.class&&a($e,"class",null,he.class,ye),te&4&&a($e,"style",oe.style,he.style,ye),te&8){const h=M.dynamicProps;for(let $=0;$<h.length;$++){const x=h[$],z=oe[x],Q=he[x];(Q!==z||x==="value")&&a($e,x,z,Q,ye,X)}}te&1&&N.children!==M.children&&c($e,M.children)}else!K&&R==null&&W($e,oe,he,X,ye);((_e=he.onVnodeUpdated)||H)&&Dr(()=>{_e&&Sn(_e,X,M,N),H&&Ro(M,N,X,"updated")},le)},U=(N,M,X,le,ye,ge,K)=>{for(let $e=0;$e<M.length;$e++){const te=N[$e],R=M[$e],H=te.el&&(te.type===ht||!Mo(te,R)||te.shapeFlag&70)?d(te.el):X;E(te,R,H,null,le,ye,ge,K,!0)}},W=(N,M,X,le,ye)=>{if(M!==X){if(M!==wt)for(const ge in M)!ki(ge)&&!(ge in X)&&a(N,ge,M[ge],null,ye,le);for(const ge in X){if(ki(ge))continue;const K=X[ge],$e=M[ge];K!==$e&&ge!=="value"&&a(N,ge,$e,K,ye,le)}"value"in X&&a(N,"value",M.value,X.value,ye)}},ee=(N,M,X,le,ye,ge,K,$e,te)=>{const R=M.el=N?N.el:s(""),H=M.anchor=N?N.anchor:s("");let{patchFlag:oe,dynamicChildren:he,slotScopeIds:_e}=M;_e&&($e=$e?$e.concat(_e):_e),N==null?(n(R,X,le),n(H,X,le),Z(M.children||[],X,H,ye,ge,K,$e,te)):oe>0&&oe&64&&he&&N.dynamicChildren?(U(N.dynamicChildren,he,X,ye,ge,K,$e),(M.key!=null||ye&&M===ye.subTree)&&Uy(N,M,!0)):be(N,M,X,H,ye,ge,K,$e,te)},fe=(N,M,X,le,ye,ge,K,$e,te)=>{M.slotScopeIds=$e,N==null?M.shapeFlag&512?ye.ctx.activate(M,X,le,K,te):ve(M,X,le,ye,ge,K,te):Ne(N,M,te)},ve=(N,M,X,le,ye,ge,K)=>{const $e=N.component=TA(N,le,ye);if(Ui(N)&&($e.ctx.renderer=je),jA($e,!1,K),$e.asyncDep){if(ye&&ye.registerDep($e,Te,K),!N.el){const te=$e.subTree=Ze(Er);m(null,te,M,X)}}else Te($e,N,M,X,ye,ge,K)},Ne=(N,M,X)=>{const le=M.component=N.component;if(SA(N,M,X))if(le.asyncDep&&!le.asyncResolved){Oe(le,M,X);return}else le.next=M,le.update();else M.el=N.el,le.vnode=M},Te=(N,M,X,le,ye,ge,K)=>{const $e=()=>{if(N.isMounted){let{next:oe,bu:he,u:_e,parent:h,vnode:$}=N;{const we=Ly(N);if(we){oe&&(oe.el=$.el,Oe(N,oe,K)),we.asyncDep.then(()=>{N.isUnmounted||$e()});return}}let x=oe,z;Fo(N,!1),oe?(oe.el=$.el,Oe(N,oe,K)):oe=$,he&&el(he),(z=oe.props&&oe.props.onVnodeBeforeUpdate)&&Sn(z,h,oe,$),Fo(N,!0);const Q=od(N),pe=N.subTree;N.subTree=Q,E(pe,Q,d(pe.el),de(pe),N,ye,ge),oe.el=Q.el,x===null&&$A(N,Q.el),_e&&Dr(_e,ye),(z=oe.props&&oe.props.onVnodeUpdated)&&Dr(()=>Sn(z,h,oe,$),ye)}else{let oe;const{el:he,props:_e}=M,{bm:h,m:$,parent:x,root:z,type:Q}=N,pe=Sa(M);if(Fo(N,!1),h&&el(h),!pe&&(oe=_e&&_e.onVnodeBeforeMount)&&Sn(oe,x,M),Fo(N,!0),he&&re){const we=()=>{N.subTree=od(N),re(he,N.subTree,N,ye,null)};pe&&Q.__asyncHydrate?Q.__asyncHydrate(he,N,we):we()}else{z.ce&&z.ce._injectChildStyle(Q);const we=N.subTree=od(N);E(null,we,X,le,N,ye,ge),M.el=we.el}if($&&Dr($,ye),!pe&&(oe=_e&&_e.onVnodeMounted)){const we=M;Dr(()=>Sn(oe,x,we),ye)}(M.shapeFlag&256||x&&Sa(x.vnode)&&x.vnode.shapeFlag&256)&&N.a&&Dr(N.a,ye),N.isMounted=!0,M=X=le=null}};N.scope.on();const te=N.effect=new jm($e);N.scope.off();const R=N.update=te.run.bind(te),H=N.job=te.runIfDirty.bind(te);H.i=N,H.id=N.uid,te.scheduler=()=>qf(H),Fo(N,!0),R()},Oe=(N,M,X)=>{M.component=N;const le=N.vnode.props;N.vnode=M,N.next=null,aA(N,M.props,le,X),uA(N,M.children,X),Bn(),ry(N),Dn()},be=(N,M,X,le,ye,ge,K,$e,te=!1)=>{const R=N&&N.children,H=N?N.shapeFlag:0,oe=M.children,{patchFlag:he,shapeFlag:_e}=M;if(he>0){if(he&128){ue(R,oe,X,le,ye,ge,K,$e,te);return}else if(he&256){Ee(R,oe,X,le,ye,ge,K,$e,te);return}}_e&8?(H&16&&J(R,ye,ge),oe!==R&&c(X,oe)):H&16?_e&16?ue(R,oe,X,le,ye,ge,K,$e,te):J(R,ye,ge,!0):(H&8&&c(X,""),_e&16&&Z(oe,X,le,ye,ge,K,$e,te))},Ee=(N,M,X,le,ye,ge,K,$e,te)=>{N=N||pa,M=M||pa;const R=N.length,H=M.length,oe=Math.min(R,H);let he;for(he=0;he<oe;he++){const _e=M[he]=te?uo(M[he]):_n(M[he]);E(N[he],_e,X,null,ye,ge,K,$e,te)}R>H?J(N,ye,ge,!0,!1,oe):Z(M,X,le,ye,ge,K,$e,te,oe)},ue=(N,M,X,le,ye,ge,K,$e,te)=>{let R=0;const H=M.length;let oe=N.length-1,he=H-1;for(;R<=oe&&R<=he;){const _e=N[R],h=M[R]=te?uo(M[R]):_n(M[R]);if(Mo(_e,h))E(_e,h,X,null,ye,ge,K,$e,te);else break;R++}for(;R<=oe&&R<=he;){const _e=N[oe],h=M[he]=te?uo(M[he]):_n(M[he]);if(Mo(_e,h))E(_e,h,X,null,ye,ge,K,$e,te);else break;oe--,he--}if(R>oe){if(R<=he){const _e=he+1,h=_e<H?M[_e].el:le;for(;R<=he;)E(null,M[R]=te?uo(M[R]):_n(M[R]),X,h,ye,ge,K,$e,te),R++}}else if(R>he)for(;R<=oe;)D(N[R],ye,ge,!0),R++;else{const _e=R,h=R,$=new Map;for(R=h;R<=he;R++){const et=M[R]=te?uo(M[R]):_n(M[R]);et.key!=null&&$.set(et.key,R)}let x,z=0;const Q=he-h+1;let pe=!1,we=0;const pt=new Array(Q);for(R=0;R<Q;R++)pt[R]=0;for(R=_e;R<=oe;R++){const et=N[R];if(z>=Q){D(et,ye,ge,!0);continue}let rt;if(et.key!=null)rt=$.get(et.key);else for(x=h;x<=he;x++)if(pt[x-h]===0&&Mo(et,M[x])){rt=x;break}rt===void 0?D(et,ye,ge,!0):(pt[rt-h]=R+1,rt>=we?we=rt:pe=!0,E(et,M[rt],X,null,ye,ge,K,$e,te),z++)}const Rt=pe?pA(pt):pa;for(x=Rt.length-1,R=Q-1;R>=0;R--){const et=h+R,rt=M[et],Ot=et+1<H?M[et+1].el:le;pt[R]===0?E(null,rt,X,Ot,ye,ge,K,$e,te):pe&&(x<0||R!==Rt[x]?q(rt,X,Ot,2):x--)}}},q=(N,M,X,le,ye=null)=>{const{el:ge,type:K,transition:$e,children:te,shapeFlag:R}=N;if(R&6){q(N.component.subTree,M,X,le);return}if(R&128){N.suspense.move(M,X,le);return}if(R&64){K.move(N,M,X,je);return}if(K===ht){n(ge,M,X);for(let oe=0;oe<te.length;oe++)q(te[oe],M,X,le);n(N.anchor,M,X);return}if(K===ad){_(N,M,X);return}if(le!==2&&R&1&&$e)if(le===0)$e.beforeEnter(ge),n(ge,M,X),Dr(()=>$e.enter(ge),ye);else{const{leave:oe,delayLeave:he,afterLeave:_e}=$e,h=()=>n(ge,M,X),$=()=>{oe(ge,()=>{h(),_e&&_e()})};he?he(ge,h,$):$()}else n(ge,M,X)},D=(N,M,X,le=!1,ye=!1)=>{const{type:ge,props:K,ref:$e,children:te,dynamicChildren:R,shapeFlag:H,patchFlag:oe,dirs:he,cacheIndex:_e}=N;if(oe===-2&&(ye=!1),$e!=null&&vl($e,null,X,N,!0),_e!=null&&(M.renderCache[_e]=void 0),H&256){M.ctx.deactivate(N);return}const h=H&1&&he,$=!Sa(N);let x;if($&&(x=K&&K.onVnodeBeforeUnmount)&&Sn(x,M,N),H&6)B(N.component,X,le);else{if(H&128){N.suspense.unmount(X,le);return}h&&Ro(N,null,M,"beforeUnmount"),H&64?N.type.remove(N,M,X,je,le):R&&!R.hasOnce&&(ge!==ht||oe>0&&oe&64)?J(R,M,X,!1,!0):(ge===ht&&oe&384||!ye&&H&16)&&J(te,M,X),le&&F(N)}($&&(x=K&&K.onVnodeUnmounted)||h)&&Dr(()=>{x&&Sn(x,M,N),h&&Ro(N,null,M,"unmounted")},X)},F=N=>{const{type:M,el:X,anchor:le,transition:ye}=N;if(M===ht){k(X,le);return}if(M===ad){T(N);return}const ge=()=>{o(X),ye&&!ye.persisted&&ye.afterLeave&&ye.afterLeave()};if(N.shapeFlag&1&&ye&&!ye.persisted){const{leave:K,delayLeave:$e}=ye,te=()=>K(X,ge);$e?$e(N.el,ge,te):te()}else ge()},k=(N,M)=>{let X;for(;N!==M;)X=v(N),o(N),N=X;o(M)},B=(N,M,X)=>{const{bum:le,scope:ye,job:ge,subTree:K,um:$e,m:te,a:R}=N;zy(te),zy(R),le&&el(le),ye.stop(),ge&&(ge.flags|=8,D(K,N,M,X)),$e&&Dr($e,M),Dr(()=>{N.isUnmounted=!0},M),M&&M.pendingBranch&&!M.isUnmounted&&N.asyncDep&&!N.asyncResolved&&N.suspenseId===M.pendingId&&(M.deps--,M.deps===0&&M.resolve())},J=(N,M,X,le=!1,ye=!1,ge=0)=>{for(let K=ge;K<N.length;K++)D(N[K],M,X,le,ye)},de=N=>{if(N.shapeFlag&6)return de(N.component.subTree);if(N.shapeFlag&128)return N.suspense.next();const M=v(N.anchor||N.el),X=M&&M[BO];return X?v(X):M};let se=!1;const Se=(N,M,X)=>{N==null?M._vnode&&D(M._vnode,null,null,!0):E(M._vnode||null,N,M,null,null,null,X),M._vnode=N,se||(se=!0,ry(),ny(),se=!1)},je={p:E,um:D,m:q,r:F,mt:ve,mc:Z,pc:be,pbc:U,n:de,o:e};let Y,re;return{render:Se,hydrate:Y,createApp:nA(Se,Y)}}function nd({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Fo({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function dA(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Uy(e,t,r=!1){const n=e.children,o=t.children;if(De(n)&&De(o))for(let a=0;a<n.length;a++){const i=n[a];let s=o[a];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=o[a]=uo(o[a]),s.el=i.el),!r&&s.patchFlag!==-2&&Uy(i,s)),s.type===Ol&&(s.el=i.el)}}function pA(e){const t=e.slice(),r=[0];let n,o,a,i,s;const l=e.length;for(n=0;n<l;n++){const u=e[n];if(u!==0){if(o=r[r.length-1],e[o]<u){t[n]=o,r.push(n);continue}for(a=0,i=r.length-1;a<i;)s=a+i>>1,e[r[s]]<u?a=s+1:i=s;u<e[r[a]]&&(a>0&&(t[n]=r[a-1]),r[a]=n)}}for(a=r.length,i=r[a-1];a-- >0;)r[a]=i,i=t[i];return r}function Ly(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ly(t)}function zy(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const hA=Symbol.for("v-scx"),mA=()=>Jt(hA);function yA(e,t){return $l(e,null,t)}function gA(e,t){return $l(e,null,{flush:"sync"})}function $r(e,t,r){return $l(e,t,r)}function $l(e,t,r=wt){const{immediate:n,deep:o,flush:a,once:i}=r,s=Ct({},r),l=t&&n||!t&&a!=="post";let u;if(Ea){if(a==="sync"){const g=mA();u=g.__watcherHandles||(g.__watcherHandles=[])}else if(!l){const g=()=>{};return g.stop=vn,g.resume=vn,g.pause=vn,g}}const c=Kt;s.call=(g,b,E)=>an(g,c,b,E);let d=!1;a==="post"?s.scheduler=g=>{Dr(g,c&&c.suspense)}:a!=="sync"&&(d=!0,s.scheduler=(g,b)=>{b?g():qf(g)}),s.augmentJob=g=>{t&&(g.flags|=4),d&&(g.flags|=2,c&&(g.id=c.uid,g.i=c))};const v=xO(e,t,s);return Ea&&(u?u.push(v):l&&v()),v}function vA(e,t,r){const n=this.proxy,o=Nt(e)?e.includes(".")?qy(n,e):()=>n[e]:e.bind(n,n);let a;Ue(t)?a=t:(a=t.handler,r=t);const i=Gi(this),s=$l(o,a.bind(n),r);return i(),s}function qy(e,t){const r=t.split(".");return()=>{let n=e;for(let o=0;o<r.length&&n;o++)n=n[r[o]];return n}}function Kr(e,t,r=wt){const n=qn(),o=sr(t),a=Rr(t),i=Wy(e,o),s=Zm((l,u)=>{let c,d=wt,v;return gA(()=>{const g=e[o];xr(c,g)&&(c=g,u())}),{get(){return l(),r.get?r.get(c):c},set(g){const b=r.set?r.set(g):g;if(!xr(b,c)&&!(d!==wt&&xr(g,d)))return;const E=n.vnode.props;E&&(t in E||o in E||a in E)&&(`onUpdate:${t}`in E||`onUpdate:${o}`in E||`onUpdate:${a}`in E)||(c=g,u()),n.emit(`update:${t}`,b),xr(g,b)&&xr(g,d)&&!xr(b,v)&&u(),d=g,v=b}}});return s[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?i||wt:s,done:!1}:{done:!0}}}},s}const Wy=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${sr(t)}Modifiers`]||e[`${Rr(t)}Modifiers`];function bA(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||wt;let o=r;const a=t.startsWith("update:"),i=a&&Wy(n,t.slice(7));i&&(i.trim&&(o=r.map(c=>Nt(c)?c.trim():c)),i.number&&(o=r.map(Sm)));let s,l=n[s=xf(t)]||n[s=xf(sr(t))];!l&&a&&(l=n[s=xf(Rr(t))]),l&&an(l,e,6,o);const u=n[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,an(u,e,6,o)}}function Hy(e,t,r=!1){const n=t.emitsCache,o=n.get(e);if(o!==void 0)return o;const a=e.emits;let i={},s=!1;if(!Ue(e)){const l=u=>{const c=Hy(u,t,!0);c&&(s=!0,Ct(i,c))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(Pt(e)&&n.set(e,null),null):(De(a)?a.forEach(l=>i[l]=null):Ct(i,a),Pt(e)&&n.set(e,i),i)}function El(e,t){return!e||!Zs(t)?!1:(t=t.slice(2).replace(/Once$/,""),St(e,t[0].toLowerCase()+t.slice(1))||St(e,Rr(t))||St(e,t))}function iL(){}function od(e){const{type:t,vnode:r,proxy:n,withProxy:o,propsOptions:[a],slots:i,attrs:s,emit:l,render:u,renderCache:c,props:d,data:v,setupState:g,ctx:b,inheritAttrs:E}=e,y=ml(e);let m,p;try{if(r.shapeFlag&4){const T=o||n,O=T;m=_n(u.call(O,T,c,d,g,v,b)),p=s}else{const T=t;m=_n(T.length>1?T(d,{attrs:s,slots:i,emit:l}):T(d,null)),p=t.props?s:wA(s)}}catch(T){qi.length=0,Fi(T,e,1),m=Ze(Er)}let _=m;if(p&&E!==!1){const T=Object.keys(p),{shapeFlag:O}=_;T.length&&O&7&&(a&&T.some(Of)&&(p=_A(p,a)),_=lo(_,p,!1,!0))}return r.dirs&&(_=lo(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&Bo(_,r.transition),m=_,ml(y),m}const wA=e=>{let t;for(const r in e)(r==="class"||r==="style"||Zs(r))&&((t||(t={}))[r]=e[r]);return t},_A=(e,t)=>{const r={};for(const n in e)(!Of(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function SA(e,t,r){const{props:n,children:o,component:a}=e,{props:i,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?Gy(n,i,u):!!i;if(l&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const v=c[d];if(i[v]!==n[v]&&!El(u,v))return!0}}}else return(o||s)&&(!s||!s.$stable)?!0:n===i?!1:n?i?Gy(n,i,u):!0:!!i;return!1}function Gy(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let o=0;o<n.length;o++){const a=n[o];if(t[a]!==e[a]&&!El(r,a))return!0}return!1}function $A({vnode:e,parent:t},r){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=r,t=t.parent;else break}}const Jy=e=>e.__isSuspense;function EA(e,t){t&&t.pendingBranch?De(e)?t.effects.push(...e):t.effects.push(e):RO(e)}const ht=Symbol.for("v-fgt"),Ol=Symbol.for("v-txt"),Er=Symbol.for("v-cmt"),ad=Symbol.for("v-stc"),qi=[];let Fr=null;function ie(e=!1){qi.push(Fr=e?null:[])}function OA(){qi.pop(),Fr=qi[qi.length-1]||null}let Wi=1;function Ky(e,t=!1){Wi+=e,e<0&&Fr&&t&&(Fr.hasOnce=!0)}function Zy(e){return e.dynamicChildren=Wi>0?Fr||pa:null,OA(),Wi>0&&Fr&&Fr.push(e),e}function Be(e,t,r,n,o,a){return Zy(mt(e,t,r,n,o,a,!0))}function xe(e,t,r,n,o){return Zy(Ze(e,t,r,n,o,!0))}function Hi(e){return e?e.__v_isVNode===!0:!1}function Mo(e,t){return e.type===t.type&&e.key===t.key}const Yy=({key:e})=>e??null,Al=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Nt(e)||kt(e)||Ue(e)?{i:Gt,r:e,k:t,f:!!r}:e:null);function mt(e,t=null,r=null,n=0,o=null,a=e===ht?0:1,i=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Yy(t),ref:t&&Al(t),scopeId:ay,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Gt};return s?(id(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=Nt(r)?8:16),Wi>0&&!i&&Fr&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&Fr.push(l),l}const Ze=AA;function AA(e,t=null,r=null,n=0,o=null,a=!1){if((!e||e===by)&&(e=Er),Hi(e)){const s=lo(e,t,!0);return r&&id(s,r),Wi>0&&!a&&Fr&&(s.shapeFlag&6?Fr[Fr.indexOf(e)]=s:Fr.push(s)),s.patchFlag=-2,s}if(RA(e)&&(e=e.__vccOpts),t){t=Pl(t);let{class:s,style:l}=t;s&&!Nt(s)&&(t.class=nt(s)),Pt(l)&&(cl(l)&&!De(l)&&(l=Ct({},l)),t.style=ya(l))}const i=Nt(e)?1:Jy(e)?128:iy(e)?64:Pt(e)?4:Ue(e)?2:0;return mt(e,t,r,n,o,i,a,!0)}function Pl(e){return e?cl(e)||Ny(e)?Ct({},e):e:null}function lo(e,t,r=!1,n=!1){const{props:o,ref:a,patchFlag:i,children:s,transition:l}=e,u=t?xt(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Yy(u),ref:t&&t.ref?r&&a?De(a)?a.concat(Al(t)):[a,Al(t)]:Al(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ht?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&lo(e.ssContent),ssFallback:e.ssFallback&&lo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&Bo(c,l.clone(c)),c}function it(e=" ",t=0){return Ze(Ol,null,e,t)}function ut(e="",t=!1){return t?(ie(),xe(Er,null,e)):Ze(Er,null,e)}function _n(e){return e==null||typeof e=="boolean"?Ze(Er):De(e)?Ze(ht,null,e.slice()):Hi(e)?uo(e):Ze(Ol,null,String(e))}function uo(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:lo(e)}function id(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(De(t))r=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),id(e,o()),o._c&&(o._d=!0));return}else{r=32;const o=t._;!o&&!Ny(t)?t._ctx=Gt:o===3&&Gt&&(Gt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ue(t)?(t={default:t,_ctx:Gt},r=32):(t=String(t),n&64?(r=16,t=[it(t)]):r=8);e.children=t,e.shapeFlag|=r}function xt(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const o in n)if(o==="class")t.class!==n.class&&(t.class=nt([t.class,n.class]));else if(o==="style")t.style=ya([t.style,n.style]);else if(Zs(o)){const a=t[o],i=n[o];i&&a!==i&&!(De(a)&&a.includes(i))&&(t[o]=a?[].concat(a,i):i)}else o!==""&&(t[o]=n[o])}return t}function Sn(e,t,r,n=null){an(e,t,7,[r,n])}const PA=Ty();let xA=0;function TA(e,t,r){const n=e.type,o=(t?t.appContext:e.appContext)||PA,a={uid:xA++,vnode:e,type:n,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Pm(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ry(n,o),emitsOptions:Hy(n,o),emit:null,emitted:null,propsDefaults:wt,inheritAttrs:n.inheritAttrs,ctx:wt,data:wt,props:wt,attrs:wt,slots:wt,refs:wt,setupState:wt,setupContext:null,suspense:r,suspenseId:r?r.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 a.ctx={_:a},a.root=t?t.root:a,a.emit=bA.bind(null,a),e.ce&&e.ce(a),a}let Kt=null;const qn=()=>Kt||Gt;let xl,sd;{const e=tl(),t=(r,n)=>{let o;return(o=e[r])||(o=e[r]=[]),o.push(n),a=>{o.length>1?o.forEach(i=>i(a)):o[0](a)}};xl=t("__VUE_INSTANCE_SETTERS__",r=>Kt=r),sd=t("__VUE_SSR_SETTERS__",r=>Ea=r)}const Gi=e=>{const t=Kt;return xl(e),e.scope.on(),()=>{e.scope.off(),xl(t)}},Xy=()=>{Kt&&Kt.scope.off(),xl(null)};function Qy(e){return e.vnode.shapeFlag&4}let Ea=!1;function jA(e,t=!1,r=!1){t&&sd(t);const{props:n,children:o}=e.vnode,a=Qy(e);oA(e,n,a,t),lA(e,o,r);const i=a?kA(e,t):void 0;return t&&sd(!1),i}function kA(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ZO);const{setup:n}=r;if(n){Bn();const o=e.setupContext=n.length>1?ng(e):null,a=Gi(e),i=ba(n,e,0,[e.props,o]),s=bm(i);if(Dn(),a(),(s||e.sp)&&!Sa(e)&&Gf(e),s){if(i.then(Xy,Xy),t)return i.then(l=>{eg(e,l,t)}).catch(l=>{Fi(l,e,0)});e.asyncDep=i}else eg(e,i,t)}else rg(e,t)}function eg(e,t,r){Ue(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Pt(t)&&(e.setupState=Km(t)),rg(e,r)}let tg;function rg(e,t,r){const n=e.type;if(!e.render){if(!t&&tg&&!n.render){const o=n.template||Qf(e).template;if(o){const{isCustomElement:a,compilerOptions:i}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,u=Ct(Ct({isCustomElement:a,delimiters:s},i),l);n.render=tg(o,u)}}e.render=n.render||vn}{const o=Gi(e);Bn();try{YO(e)}finally{Dn(),o()}}}const CA={get(e,t){return lr(e,"get",""),e[t]}};function ng(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,CA),slots:e.slots,emit:e.emit,expose:t}}function Tl(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Km(Vn(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Li)return Li[r](e)},has(t,r){return r in t||r in Li}})):e.proxy}const NA=/(?:^|[-_])(\w)/g,IA=e=>e.replace(NA,t=>t.toUpperCase()).replace(/[-_]/g,"");function og(e,t=!0){return Ue(e)?e.displayName||e.name:e.name||t&&e.__name}function ag(e,t,r=!1){let n=og(t);if(!n&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(n=o[1])}if(!n&&e&&e.parent){const o=a=>{for(const i in a)if(a[i]===t)return i};n=o(e.components||e.parent.type.components)||o(e.appContext.components)}return n?IA(n):r?"App":"Anonymous"}function RA(e){return Ue(e)&&"__vccOpts"in e}const ne=(e,t)=>AO(e,t,Ea);function jl(e,t,r){const n=arguments.length;return n===2?Pt(t)&&!De(t)?Hi(t)?Ze(e,null,[t]):Ze(e,t):Ze(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Hi(r)&&(r=[r]),Ze(e,t,r))}const BA="3.5.13";/**
|
17
|
+
* @vue/runtime-dom v3.5.13
|
18
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
19
|
+
* @license MIT
|
20
|
+
**/let ld;const ig=typeof window<"u"&&window.trustedTypes;if(ig)try{ld=ig.createPolicy("vue",{createHTML:e=>e})}catch{}const sg=ld?e=>ld.createHTML(e):e=>e,DA="http://www.w3.org/2000/svg",FA="http://www.w3.org/1998/Math/MathML",Wn=typeof document<"u"?document:null,lg=Wn&&Wn.createElement("template"),MA={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const o=t==="svg"?Wn.createElementNS(DA,e):t==="mathml"?Wn.createElementNS(FA,e):r?Wn.createElement(e,{is:r}):Wn.createElement(e);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>Wn.createTextNode(e),createComment:e=>Wn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Wn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,o,a){const i=r?r.previousSibling:t.lastChild;if(o&&(o===a||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),r),!(o===a||!(o=o.nextSibling)););else{lg.innerHTML=sg(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const s=lg.content;if(n==="svg"||n==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,r)}return[i?i.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},co="transition",Ji="animation",Oa=Symbol("_vtc"),ug={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},cg=Ct({},ly,ug),VA=(e=>(e.displayName="Transition",e.props=cg,e))((e,{slots:t})=>jl(FO,dg(e),t)),Vo=(e,t=[])=>{De(e)?e.forEach(r=>r(...t)):e&&e(...t)},fg=e=>e?De(e)?e.some(t=>t.length>1):e.length>1:!1;function dg(e){const t={};for(const ee in e)ee in ug||(t[ee]=e[ee]);if(e.css===!1)return t;const{name:r="v",type:n,duration:o,enterFromClass:a=`${r}-enter-from`,enterActiveClass:i=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=a,appearActiveClass:u=i,appearToClass:c=s,leaveFromClass:d=`${r}-leave-from`,leaveActiveClass:v=`${r}-leave-active`,leaveToClass:g=`${r}-leave-to`}=e,b=UA(o),E=b&&b[0],y=b&&b[1],{onBeforeEnter:m,onEnter:p,onEnterCancelled:_,onLeave:T,onLeaveCancelled:O,onBeforeAppear:j=m,onAppear:C=p,onAppearCancelled:Z=_}=t,V=(ee,fe,ve,Ne)=>{ee._enterCancelled=Ne,fo(ee,fe?c:s),fo(ee,fe?u:i),ve&&ve()},U=(ee,fe)=>{ee._isLeaving=!1,fo(ee,d),fo(ee,g),fo(ee,v),fe&&fe()},W=ee=>(fe,ve)=>{const Ne=ee?C:p,Te=()=>V(fe,ee,ve);Vo(Ne,[fe,Te]),pg(()=>{fo(fe,ee?l:a),$n(fe,ee?c:s),fg(Ne)||hg(fe,n,E,Te)})};return Ct(t,{onBeforeEnter(ee){Vo(m,[ee]),$n(ee,a),$n(ee,i)},onBeforeAppear(ee){Vo(j,[ee]),$n(ee,l),$n(ee,u)},onEnter:W(!1),onAppear:W(!0),onLeave(ee,fe){ee._isLeaving=!0;const ve=()=>U(ee,fe);$n(ee,d),ee._enterCancelled?($n(ee,v),cd()):(cd(),$n(ee,v)),pg(()=>{ee._isLeaving&&(fo(ee,d),$n(ee,g),fg(T)||hg(ee,n,y,ve))}),Vo(T,[ee,ve])},onEnterCancelled(ee){V(ee,!1,void 0,!0),Vo(_,[ee])},onAppearCancelled(ee){V(ee,!0,void 0,!0),Vo(Z,[ee])},onLeaveCancelled(ee){U(ee),Vo(O,[ee])}})}function UA(e){if(e==null)return null;if(Pt(e))return[ud(e.enter),ud(e.leave)];{const t=ud(e);return[t,t]}}function ud(e){return Tf(e)}function $n(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Oa]||(e[Oa]=new Set)).add(t)}function fo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[Oa];r&&(r.delete(t),r.size||(e[Oa]=void 0))}function pg(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let LA=0;function hg(e,t,r,n){const o=e._endId=++LA,a=()=>{o===e._endId&&n()};if(r!=null)return setTimeout(a,r);const{type:i,timeout:s,propCount:l}=mg(e,t);if(!i)return n();const u=i+"end";let c=0;const d=()=>{e.removeEventListener(u,v),a()},v=g=>{g.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},s+1),e.addEventListener(u,v)}function mg(e,t){const r=window.getComputedStyle(e),n=b=>(r[b]||"").split(", "),o=n(`${co}Delay`),a=n(`${co}Duration`),i=yg(o,a),s=n(`${Ji}Delay`),l=n(`${Ji}Duration`),u=yg(s,l);let c=null,d=0,v=0;t===co?i>0&&(c=co,d=i,v=a.length):t===Ji?u>0&&(c=Ji,d=u,v=l.length):(d=Math.max(i,u),c=d>0?i>u?co:Ji:null,v=c?c===co?a.length:l.length:0);const g=c===co&&/\b(transform|all)(,|$)/.test(n(`${co}Property`).toString());return{type:c,timeout:d,propCount:v,hasTransform:g}}function yg(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>gg(r)+gg(e[n])))}function gg(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function cd(){return document.body.offsetHeight}function zA(e,t,r){const n=e[Oa];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const kl=Symbol("_vod"),vg=Symbol("_vsh"),qA={beforeMount(e,{value:t},{transition:r}){e[kl]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Ki(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),Ki(e,!0),n.enter(e)):n.leave(e,()=>{Ki(e,!1)}):Ki(e,t))},beforeUnmount(e,{value:t}){Ki(e,t)}};function Ki(e,t){e.style.display=t?e[kl]:"none",e[vg]=!t}const WA=Symbol(""),HA=/(^|;)\s*display\s*:/;function GA(e,t,r){const n=e.style,o=Nt(r);let a=!1;if(r&&!o){if(t)if(Nt(t))for(const i of t.split(";")){const s=i.slice(0,i.indexOf(":")).trim();r[s]==null&&Cl(n,s,"")}else for(const i in t)r[i]==null&&Cl(n,i,"");for(const i in r)i==="display"&&(a=!0),Cl(n,i,r[i])}else if(o){if(t!==r){const i=n[WA];i&&(r+=";"+i),n.cssText=r,a=HA.test(r)}}else t&&e.removeAttribute("style");kl in e&&(e[kl]=a?n.display:"",e[vg]&&(n.display="none"))}const bg=/\s*!important$/;function Cl(e,t,r){if(De(r))r.forEach(n=>Cl(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=JA(e,t);bg.test(r)?e.setProperty(Rr(n),r.replace(bg,""),"important"):e[n]=r}}const wg=["Webkit","Moz","ms"],fd={};function JA(e,t){const r=fd[t];if(r)return r;let n=sr(t);if(n!=="filter"&&n in e)return fd[t]=n;n=Qs(n);for(let o=0;o<wg.length;o++){const a=wg[o]+n;if(a in e)return fd[t]=a}return t}const _g="http://www.w3.org/1999/xlink";function Sg(e,t,r,n,o,a=XE(t)){n&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(_g,t.slice(6,t.length)):e.setAttributeNS(_g,t,r):r==null||a&&!Em(r)?e.removeAttribute(t):e.setAttribute(t,a?"":nn(r)?String(r):r)}function $g(e,t,r,n,o){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?sg(r):r);return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const s=a==="OPTION"?e.getAttribute("value")||"":e.value,l=r==null?e.type==="checkbox"?"on":"":String(r);(s!==l||!("_value"in e))&&(e.value=l),r==null&&e.removeAttribute(t),e._value=r;return}let i=!1;if(r===""||r==null){const s=typeof e[t];s==="boolean"?r=Em(r):r==null&&s==="string"?(r="",i=!0):s==="number"&&(r=0,i=!0)}try{e[t]=r}catch{}i&&e.removeAttribute(o||t)}function Nl(e,t,r,n){e.addEventListener(t,r,n)}function KA(e,t,r,n){e.removeEventListener(t,r,n)}const Eg=Symbol("_vei");function ZA(e,t,r,n,o=null){const a=e[Eg]||(e[Eg]={}),i=a[t];if(n&&i)i.value=n;else{const[s,l]=YA(t);if(n){const u=a[t]=eP(n,o);Nl(e,s,u,l)}else i&&(KA(e,s,i,l),a[t]=void 0)}}const Og=/(?:Once|Passive|Capture)$/;function YA(e){let t;if(Og.test(e)){t={};let n;for(;n=e.match(Og);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Rr(e.slice(2)),t]}let dd=0;const XA=Promise.resolve(),QA=()=>dd||(XA.then(()=>dd=0),dd=Date.now());function eP(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;an(tP(n,r.value),t,5,[n])};return r.value=e,r.attached=QA(),r}function tP(e,t){if(De(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>o=>!o._stopped&&n&&n(o))}else return t}const Ag=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,rP=(e,t,r,n,o,a)=>{const i=o==="svg";t==="class"?zA(e,n,i):t==="style"?GA(e,r,n):Zs(t)?Of(t)||ZA(e,t,r,n,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):nP(e,t,n,i))?($g(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Sg(e,t,n,i,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Nt(n))?$g(e,sr(t),n,a,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Sg(e,t,n,i))};function nP(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ag(t)&&Ue(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Ag(t)&&Nt(r)?!1:t in e}const Pg={};/*! #__NO_SIDE_EFFECTS__ */function oP(e,t,r){const n=Re(e,t);Ys(n)&&Ct(n,t);class o extends pd{constructor(i){super(n,i,r)}}return o.def=n,o}const aP=typeof HTMLElement<"u"?HTMLElement:class{};class pd extends aP{constructor(t,r={},n=Bg){super(),this._def=t,this._props=r,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==Bg?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this,this._def.__asyncLoader||this._resolveProps(this._def)}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof pd){this._parent=t;break}this._instance||(this._resolved?(this._setParent(),this._update()):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._instance.provides=t._instance.provides)}disconnectedCallback(){this._connected=!1,_r(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(n=>{for(const o of n)this._setAttr(o.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(n,o=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:a,styles:i}=n;let s;if(a&&!De(a))for(const l in a){const u=a[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=Tf(this._props[l])),(s||(s=Object.create(null)))[sr(l)]=!0)}this._numberProps=s,o&&this._resolveProps(n),this.shadowRoot&&this._applyStyles(i),this._mount(n)},r=this._def.__asyncLoader;r?this._pendingResolve=r().then(n=>t(this._def=n,!0)):t(this._def)}_mount(t){this._app=this._createApp(t),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const r=this._instance&&this._instance.exposed;if(r)for(const n in r)St(this,n)||Object.defineProperty(this,n,{get:()=>P(r[n])})}_resolveProps(t){const{props:r}=t,n=De(r)?r:Object.keys(r||{});for(const o of Object.keys(this))o[0]!=="_"&&n.includes(o)&&this._setProp(o,this[o]);for(const o of n.map(sr))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(a){this._setProp(o,a,!0,!0)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const r=this.hasAttribute(t);let n=r?this.getAttribute(t):Pg;const o=sr(t);r&&this._numberProps&&this._numberProps[o]&&(n=Tf(n)),this._setProp(o,n,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,r,n=!0,o=!1){if(r!==this._props[t]&&(r===Pg?delete this._props[t]:(this._props[t]=r,t==="key"&&this._app&&(this._app._ceVNode.key=r)),o&&this._instance&&this._update(),n)){const a=this._ob;a&&a.disconnect(),r===!0?this.setAttribute(Rr(t),""):typeof r=="string"||typeof r=="number"?this.setAttribute(Rr(t),r+""):r||this.removeAttribute(Rr(t)),a&&a.observe(this,{attributes:!0})}}_update(){mP(this._createVNode(),this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const r=Ze(this._def,Ct(t,this._props));return this._instance||(r.ce=n=>{this._instance=n,n.ce=this,n.isCE=!0;const o=(a,i)=>{this.dispatchEvent(new CustomEvent(a,Ys(i[0])?Ct({detail:i},i[0]):{detail:i}))};n.emit=(a,...i)=>{o(a,i),Rr(a)!==a&&o(Rr(a),i)},this._setParent()}),r}_applyStyles(t,r){if(!t)return;if(r){if(r===this._def||this._styleChildren.has(r))return;this._styleChildren.add(r)}const n=this._nonce;for(let o=t.length-1;o>=0;o--){const a=document.createElement("style");n&&a.setAttribute("nonce",n),a.textContent=t[o],this.shadowRoot.prepend(a)}}_parseSlots(){const t=this._slots={};let r;for(;r=this.firstChild;){const n=r.nodeType===1&&r.getAttribute("slot")||"default";(t[n]||(t[n]=[])).push(r),this.removeChild(r)}}_renderSlots(){const t=(this._teleportTarget||this).querySelectorAll("slot"),r=this._instance.type.__scopeId;for(let n=0;n<t.length;n++){const o=t[n],a=o.getAttribute("name")||"default",i=this._slots[a],s=o.parentNode;if(i)for(const l of i){if(r&&l.nodeType===1){const u=r+"-s",c=document.createTreeWalker(l,1);l.setAttribute(u,"");let d;for(;d=c.nextNode();)d.setAttribute(u,"")}s.insertBefore(l,o)}else for(;o.firstChild;)s.insertBefore(o.firstChild,o);s.removeChild(o)}}_injectChildStyle(t){this._applyStyles(t.styles,t)}_removeChildStyle(t){}}const xg=new WeakMap,Tg=new WeakMap,Il=Symbol("_moveCb"),jg=Symbol("_enterCb"),iP=(e=>(delete e.props.mode,e))({name:"TransitionGroup",props:Ct({},cg,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=qn(),n=sy();let o,a;return yy(()=>{if(!o.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!cP(o[0].el,r.vnode.el,i))return;o.forEach(sP),o.forEach(lP);const s=o.filter(uP);cd(),s.forEach(l=>{const u=l.el,c=u.style;$n(u,i),c.transform=c.webkitTransform=c.transitionDuration="";const d=u[Il]=v=>{v&&v.target!==u||(!v||/transform$/.test(v.propertyName))&&(u.removeEventListener("transitionend",d),u[Il]=null,fo(u,i))};u.addEventListener("transitionend",d)})}),()=>{const i=Ke(e),s=dg(i);let l=i.tag||ht;if(o=[],a)for(let u=0;u<a.length;u++){const c=a[u];c.el&&c.el instanceof Element&&(o.push(c),Bo(c,Vi(c,s,n,r)),xg.set(c,c.el.getBoundingClientRect()))}a=t.default?Hf(t.default()):[];for(let u=0;u<a.length;u++){const c=a[u];c.key!=null&&Bo(c,Vi(c,s,n,r))}return Ze(l,null,a)}}});function sP(e){const t=e.el;t[Il]&&t[Il](),t[jg]&&t[jg]()}function lP(e){Tg.set(e,e.el.getBoundingClientRect())}function uP(e){const t=xg.get(e),r=Tg.get(e),n=t.left-r.left,o=t.top-r.top;if(n||o){const a=e.el.style;return a.transform=a.webkitTransform=`translate(${n}px,${o}px)`,a.transitionDuration="0s",e}}function cP(e,t,r){const n=e.cloneNode(),o=e[Oa];o&&o.forEach(s=>{s.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),r.split(/\s+/).forEach(s=>s&&n.classList.add(s)),n.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(n);const{hasTransform:i}=mg(n);return a.removeChild(n),i}const Aa=e=>{const t=e.props["onUpdate:modelValue"]||!1;return De(t)?r=>el(t,r):t},Hn=Symbol("_assign"),fP={deep:!0,created(e,t,r){e[Hn]=Aa(r),Nl(e,"change",()=>{const n=e._modelValue,o=Pa(e),a=e.checked,i=e[Hn];if(De(n)){const s=jf(n,o),l=s!==-1;if(a&&!l)i(n.concat(o));else if(!a&&l){const u=[...n];u.splice(s,1),i(u)}}else if(ma(n)){const s=new Set(n);a?s.add(o):s.delete(o),i(s)}else i(Ng(e,a))})},mounted:kg,beforeUpdate(e,t,r){e[Hn]=Aa(r),kg(e,t,r)}};function kg(e,{value:t,oldValue:r},n){e._modelValue=t;let o;if(De(t))o=jf(t,n.props.value)>-1;else if(ma(t))o=t.has(n.props.value);else{if(t===r)return;o=ko(t,Ng(e,!0))}e.checked!==o&&(e.checked=o)}const dP={created(e,{value:t},r){e.checked=ko(t,r.props.value),e[Hn]=Aa(r),Nl(e,"change",()=>{e[Hn](Pa(e))})},beforeUpdate(e,{value:t,oldValue:r},n){e[Hn]=Aa(n),t!==r&&(e.checked=ko(t,n.props.value))}},pP={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const o=ma(t);Nl(e,"change",()=>{const a=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>r?Sm(Pa(i)):Pa(i));e[Hn](e.multiple?o?new Set(a):a:a[0]),e._assigning=!0,_r(()=>{e._assigning=!1})}),e[Hn]=Aa(n)},mounted(e,{value:t}){Cg(e,t)},beforeUpdate(e,t,r){e[Hn]=Aa(r)},updated(e,{value:t}){e._assigning||Cg(e,t)}};function Cg(e,t){const r=e.multiple,n=De(t);if(!(r&&!n&&!ma(t))){for(let o=0,a=e.options.length;o<a;o++){const i=e.options[o],s=Pa(i);if(r)if(n){const l=typeof s;l==="string"||l==="number"?i.selected=t.some(u=>String(u)===String(s)):i.selected=jf(t,s)>-1}else i.selected=t.has(s);else if(ko(Pa(i),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Pa(e){return"_value"in e?e._value:e.value}function Ng(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const hP=Ct({patchProp:rP},MA);let Ig;function Rg(){return Ig||(Ig=cA(hP))}const mP=(...e)=>{Rg().render(...e)},Bg=(...e)=>{const t=Rg().createApp(...e),{mount:r}=t;return t.mount=n=>{const o=gP(n);if(!o)return;const a=t._component;!Ue(a)&&!a.render&&!a.template&&(a.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=r(o,!1,yP(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};function yP(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function gP(e){return Nt(e)?document.querySelector(e):e}const vP={showOnWrapper:cr(()=>Promise.resolve().then(()=>EM)),ArrayControl:cr(()=>Promise.resolve().then(()=>eU)),CheckboxControl:cr(()=>Promise.resolve().then(()=>aU)),CheckboxGroupControl:cr(()=>Promise.resolve().then(()=>iU)),FileControl:cr(()=>Promise.resolve().then(()=>cU)),NumberControl:cr(()=>Promise.resolve().then(()=>dU)),ObjectControl:cr(()=>Promise.resolve().then(()=>pU)),RadiobuttonControl:cr(()=>Promise.resolve().then(()=>bU)),SelectControl:cr(()=>Promise.resolve().then(()=>OU)),StringControl:cr(()=>Promise.resolve().then(()=>TU)),TagsControl:cr(()=>Promise.resolve().then(()=>JU)),FormFieldWrapper:cr(()=>Promise.resolve().then(()=>a3)),ErrorViewer:cr(()=>Promise.resolve().then(()=>m3)),Button:cr(()=>Promise.resolve().then(()=>v3)),Buttongroup:cr(()=>Promise.resolve().then(()=>w3)),DefaultControl:cr(()=>Promise.resolve().then(()=>S3))};var Pe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Dg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function hd(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Fe={},Fg={},Rl={};Rl.byteLength=_P,Rl.toByteArray=$P,Rl.fromByteArray=AP;for(var En=[],Zr=[],bP=typeof Uint8Array<"u"?Uint8Array:Array,md="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xa=0,wP=md.length;xa<wP;++xa)En[xa]=md[xa],Zr[md.charCodeAt(xa)]=xa;Zr[45]=62,Zr[95]=63;function Mg(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function _P(e){var t=Mg(e),r=t[0],n=t[1];return(r+n)*3/4-n}function SP(e,t,r){return(t+r)*3/4-r}function $P(e){var t,r=Mg(e),n=r[0],o=r[1],a=new bP(SP(e,n,o)),i=0,s=o>0?n-4:n,l;for(l=0;l<s;l+=4)t=Zr[e.charCodeAt(l)]<<18|Zr[e.charCodeAt(l+1)]<<12|Zr[e.charCodeAt(l+2)]<<6|Zr[e.charCodeAt(l+3)],a[i++]=t>>16&255,a[i++]=t>>8&255,a[i++]=t&255;return o===2&&(t=Zr[e.charCodeAt(l)]<<2|Zr[e.charCodeAt(l+1)]>>4,a[i++]=t&255),o===1&&(t=Zr[e.charCodeAt(l)]<<10|Zr[e.charCodeAt(l+1)]<<4|Zr[e.charCodeAt(l+2)]>>2,a[i++]=t>>8&255,a[i++]=t&255),a}function EP(e){return En[e>>18&63]+En[e>>12&63]+En[e>>6&63]+En[e&63]}function OP(e,t,r){for(var n,o=[],a=t;a<r;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),o.push(EP(n));return o.join("")}function AP(e){for(var t,r=e.length,n=r%3,o=[],a=16383,i=0,s=r-n;i<s;i+=a)o.push(OP(e,i,i+a>s?s:i+a));return n===1?(t=e[r-1],o.push(En[t>>2]+En[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],o.push(En[t>>10]+En[t>>4&63]+En[t<<2&63]+"=")),o.join("")}var yd={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */yd.read=function(e,t,r,n,o){var a,i,s=o*8-n-1,l=(1<<s)-1,u=l>>1,c=-7,d=r?o-1:0,v=r?-1:1,g=e[t+d];for(d+=v,a=g&(1<<-c)-1,g>>=-c,c+=s;c>0;a=a*256+e[t+d],d+=v,c-=8);for(i=a&(1<<-c)-1,a>>=-c,c+=n;c>0;i=i*256+e[t+d],d+=v,c-=8);if(a===0)a=1-u;else{if(a===l)return i?NaN:(g?-1:1)*(1/0);i=i+Math.pow(2,n),a=a-u}return(g?-1:1)*i*Math.pow(2,a-n)},yd.write=function(e,t,r,n,o,a){var i,s,l,u=a*8-o-1,c=(1<<u)-1,d=c>>1,v=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=n?0:a-1,b=n?1:-1,E=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=c):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),i+d>=1?t+=v/l:t+=v*Math.pow(2,1-d),t*l>=2&&(i++,l/=2),i+d>=c?(s=0,i=c):i+d>=1?(s=(t*l-1)*Math.pow(2,o),i=i+d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),i=0));o>=8;e[r+g]=s&255,g+=b,s/=256,o-=8);for(i=i<<o|s,u+=o;u>0;e[r+g]=i&255,g+=b,i/=256,u-=8);e[r+g-b]|=E*128};/*!
|
21
|
+
* The buffer module from node.js, for the browser.
|
22
|
+
*
|
23
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
24
|
+
* @license MIT
|
25
|
+
*/(function(e){const t=Rl,r=yd,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=p,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{const h=new Uint8Array(1),$={foo:function(){return 42}};return Object.setPrototypeOf($,Uint8Array.prototype),Object.setPrototypeOf(h,$),h.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function i(h){if(h>o)throw new RangeError('The value "'+h+'" is invalid for option "size"');const $=new Uint8Array(h);return Object.setPrototypeOf($,s.prototype),$}function s(h,$,x){if(typeof h=="number"){if(typeof $=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(h)}return l(h,$,x)}s.poolSize=8192;function l(h,$,x){if(typeof h=="string")return v(h,$);if(ArrayBuffer.isView(h))return b(h);if(h==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof h);if(R(h,ArrayBuffer)||h&&R(h.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(R(h,SharedArrayBuffer)||h&&R(h.buffer,SharedArrayBuffer)))return E(h,$,x);if(typeof h=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const z=h.valueOf&&h.valueOf();if(z!=null&&z!==h)return s.from(z,$,x);const Q=y(h);if(Q)return Q;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof h[Symbol.toPrimitive]=="function")return s.from(h[Symbol.toPrimitive]("string"),$,x);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof h)}s.from=function(h,$,x){return l(h,$,x)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function u(h){if(typeof h!="number")throw new TypeError('"size" argument must be of type number');if(h<0)throw new RangeError('The value "'+h+'" is invalid for option "size"')}function c(h,$,x){return u(h),h<=0?i(h):$!==void 0?typeof x=="string"?i(h).fill($,x):i(h).fill($):i(h)}s.alloc=function(h,$,x){return c(h,$,x)};function d(h){return u(h),i(h<0?0:m(h)|0)}s.allocUnsafe=function(h){return d(h)},s.allocUnsafeSlow=function(h){return d(h)};function v(h,$){if((typeof $!="string"||$==="")&&($="utf8"),!s.isEncoding($))throw new TypeError("Unknown encoding: "+$);const x=_(h,$)|0;let z=i(x);const Q=z.write(h,$);return Q!==x&&(z=z.slice(0,Q)),z}function g(h){const $=h.length<0?0:m(h.length)|0,x=i($);for(let z=0;z<$;z+=1)x[z]=h[z]&255;return x}function b(h){if(R(h,Uint8Array)){const $=new Uint8Array(h);return E($.buffer,$.byteOffset,$.byteLength)}return g(h)}function E(h,$,x){if($<0||h.byteLength<$)throw new RangeError('"offset" is outside of buffer bounds');if(h.byteLength<$+(x||0))throw new RangeError('"length" is outside of buffer bounds');let z;return $===void 0&&x===void 0?z=new Uint8Array(h):x===void 0?z=new Uint8Array(h,$):z=new Uint8Array(h,$,x),Object.setPrototypeOf(z,s.prototype),z}function y(h){if(s.isBuffer(h)){const $=m(h.length)|0,x=i($);return x.length===0||h.copy(x,0,0,$),x}if(h.length!==void 0)return typeof h.length!="number"||H(h.length)?i(0):g(h);if(h.type==="Buffer"&&Array.isArray(h.data))return g(h.data)}function m(h){if(h>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return h|0}function p(h){return+h!=h&&(h=0),s.alloc(+h)}s.isBuffer=function(h){return h!=null&&h._isBuffer===!0&&h!==s.prototype},s.compare=function(h,$){if(R(h,Uint8Array)&&(h=s.from(h,h.offset,h.byteLength)),R($,Uint8Array)&&($=s.from($,$.offset,$.byteLength)),!s.isBuffer(h)||!s.isBuffer($))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(h===$)return 0;let x=h.length,z=$.length;for(let Q=0,pe=Math.min(x,z);Q<pe;++Q)if(h[Q]!==$[Q]){x=h[Q],z=$[Q];break}return x<z?-1:z<x?1:0},s.isEncoding=function(h){switch(String(h).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(h,$){if(!Array.isArray(h))throw new TypeError('"list" argument must be an Array of Buffers');if(h.length===0)return s.alloc(0);let x;if($===void 0)for($=0,x=0;x<h.length;++x)$+=h[x].length;const z=s.allocUnsafe($);let Q=0;for(x=0;x<h.length;++x){let pe=h[x];if(R(pe,Uint8Array))Q+pe.length>z.length?(s.isBuffer(pe)||(pe=s.from(pe)),pe.copy(z,Q)):Uint8Array.prototype.set.call(z,pe,Q);else if(s.isBuffer(pe))pe.copy(z,Q);else throw new TypeError('"list" argument must be an Array of Buffers');Q+=pe.length}return z};function _(h,$){if(s.isBuffer(h))return h.length;if(ArrayBuffer.isView(h)||R(h,ArrayBuffer))return h.byteLength;if(typeof h!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof h);const x=h.length,z=arguments.length>2&&arguments[2]===!0;if(!z&&x===0)return 0;let Q=!1;for(;;)switch($){case"ascii":case"latin1":case"binary":return x;case"utf8":case"utf-8":return ye(h).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x*2;case"hex":return x>>>1;case"base64":return $e(h).length;default:if(Q)return z?-1:ye(h).length;$=(""+$).toLowerCase(),Q=!0}}s.byteLength=_;function T(h,$,x){let z=!1;if(($===void 0||$<0)&&($=0),$>this.length||((x===void 0||x>this.length)&&(x=this.length),x<=0)||(x>>>=0,$>>>=0,x<=$))return"";for(h||(h="utf8");;)switch(h){case"hex":return Ee(this,$,x);case"utf8":case"utf-8":return ve(this,$,x);case"ascii":return Oe(this,$,x);case"latin1":case"binary":return be(this,$,x);case"base64":return fe(this,$,x);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue(this,$,x);default:if(z)throw new TypeError("Unknown encoding: "+h);h=(h+"").toLowerCase(),z=!0}}s.prototype._isBuffer=!0;function O(h,$,x){const z=h[$];h[$]=h[x],h[x]=z}s.prototype.swap16=function(){const h=this.length;if(h%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let $=0;$<h;$+=2)O(this,$,$+1);return this},s.prototype.swap32=function(){const h=this.length;if(h%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let $=0;$<h;$+=4)O(this,$,$+3),O(this,$+1,$+2);return this},s.prototype.swap64=function(){const h=this.length;if(h%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let $=0;$<h;$+=8)O(this,$,$+7),O(this,$+1,$+6),O(this,$+2,$+5),O(this,$+3,$+4);return this},s.prototype.toString=function(){const h=this.length;return h===0?"":arguments.length===0?ve(this,0,h):T.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(h){if(!s.isBuffer(h))throw new TypeError("Argument must be a Buffer");return this===h?!0:s.compare(this,h)===0},s.prototype.inspect=function(){let h="";const $=e.INSPECT_MAX_BYTES;return h=this.toString("hex",0,$).replace(/(.{2})/g,"$1 ").trim(),this.length>$&&(h+=" ... "),"<Buffer "+h+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(h,$,x,z,Q){if(R(h,Uint8Array)&&(h=s.from(h,h.offset,h.byteLength)),!s.isBuffer(h))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof h);if($===void 0&&($=0),x===void 0&&(x=h?h.length:0),z===void 0&&(z=0),Q===void 0&&(Q=this.length),$<0||x>h.length||z<0||Q>this.length)throw new RangeError("out of range index");if(z>=Q&&$>=x)return 0;if(z>=Q)return-1;if($>=x)return 1;if($>>>=0,x>>>=0,z>>>=0,Q>>>=0,this===h)return 0;let pe=Q-z,we=x-$;const pt=Math.min(pe,we),Rt=this.slice(z,Q),et=h.slice($,x);for(let rt=0;rt<pt;++rt)if(Rt[rt]!==et[rt]){pe=Rt[rt],we=et[rt];break}return pe<we?-1:we<pe?1:0};function j(h,$,x,z,Q){if(h.length===0)return-1;if(typeof x=="string"?(z=x,x=0):x>2147483647?x=2147483647:x<-2147483648&&(x=-2147483648),x=+x,H(x)&&(x=Q?0:h.length-1),x<0&&(x=h.length+x),x>=h.length){if(Q)return-1;x=h.length-1}else if(x<0)if(Q)x=0;else return-1;if(typeof $=="string"&&($=s.from($,z)),s.isBuffer($))return $.length===0?-1:C(h,$,x,z,Q);if(typeof $=="number")return $=$&255,typeof Uint8Array.prototype.indexOf=="function"?Q?Uint8Array.prototype.indexOf.call(h,$,x):Uint8Array.prototype.lastIndexOf.call(h,$,x):C(h,[$],x,z,Q);throw new TypeError("val must be string, number or Buffer")}function C(h,$,x,z,Q){let pe=1,we=h.length,pt=$.length;if(z!==void 0&&(z=String(z).toLowerCase(),z==="ucs2"||z==="ucs-2"||z==="utf16le"||z==="utf-16le")){if(h.length<2||$.length<2)return-1;pe=2,we/=2,pt/=2,x/=2}function Rt(rt,Ot){return pe===1?rt[Ot]:rt.readUInt16BE(Ot*pe)}let et;if(Q){let rt=-1;for(et=x;et<we;et++)if(Rt(h,et)===Rt($,rt===-1?0:et-rt)){if(rt===-1&&(rt=et),et-rt+1===pt)return rt*pe}else rt!==-1&&(et-=et-rt),rt=-1}else for(x+pt>we&&(x=we-pt),et=x;et>=0;et--){let rt=!0;for(let Ot=0;Ot<pt;Ot++)if(Rt(h,et+Ot)!==Rt($,Ot)){rt=!1;break}if(rt)return et}return-1}s.prototype.includes=function(h,$,x){return this.indexOf(h,$,x)!==-1},s.prototype.indexOf=function(h,$,x){return j(this,h,$,x,!0)},s.prototype.lastIndexOf=function(h,$,x){return j(this,h,$,x,!1)};function Z(h,$,x,z){x=Number(x)||0;const Q=h.length-x;z?(z=Number(z),z>Q&&(z=Q)):z=Q;const pe=$.length;z>pe/2&&(z=pe/2);let we;for(we=0;we<z;++we){const pt=parseInt($.substr(we*2,2),16);if(H(pt))return we;h[x+we]=pt}return we}function V(h,$,x,z){return te(ye($,h.length-x),h,x,z)}function U(h,$,x,z){return te(ge($),h,x,z)}function W(h,$,x,z){return te($e($),h,x,z)}function ee(h,$,x,z){return te(K($,h.length-x),h,x,z)}s.prototype.write=function(h,$,x,z){if($===void 0)z="utf8",x=this.length,$=0;else if(x===void 0&&typeof $=="string")z=$,x=this.length,$=0;else if(isFinite($))$=$>>>0,isFinite(x)?(x=x>>>0,z===void 0&&(z="utf8")):(z=x,x=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Q=this.length-$;if((x===void 0||x>Q)&&(x=Q),h.length>0&&(x<0||$<0)||$>this.length)throw new RangeError("Attempt to write outside buffer bounds");z||(z="utf8");let pe=!1;for(;;)switch(z){case"hex":return Z(this,h,$,x);case"utf8":case"utf-8":return V(this,h,$,x);case"ascii":case"latin1":case"binary":return U(this,h,$,x);case"base64":return W(this,h,$,x);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,h,$,x);default:if(pe)throw new TypeError("Unknown encoding: "+z);z=(""+z).toLowerCase(),pe=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function fe(h,$,x){return $===0&&x===h.length?t.fromByteArray(h):t.fromByteArray(h.slice($,x))}function ve(h,$,x){x=Math.min(h.length,x);const z=[];let Q=$;for(;Q<x;){const pe=h[Q];let we=null,pt=pe>239?4:pe>223?3:pe>191?2:1;if(Q+pt<=x){let Rt,et,rt,Ot;switch(pt){case 1:pe<128&&(we=pe);break;case 2:Rt=h[Q+1],(Rt&192)===128&&(Ot=(pe&31)<<6|Rt&63,Ot>127&&(we=Ot));break;case 3:Rt=h[Q+1],et=h[Q+2],(Rt&192)===128&&(et&192)===128&&(Ot=(pe&15)<<12|(Rt&63)<<6|et&63,Ot>2047&&(Ot<55296||Ot>57343)&&(we=Ot));break;case 4:Rt=h[Q+1],et=h[Q+2],rt=h[Q+3],(Rt&192)===128&&(et&192)===128&&(rt&192)===128&&(Ot=(pe&15)<<18|(Rt&63)<<12|(et&63)<<6|rt&63,Ot>65535&&Ot<1114112&&(we=Ot))}}we===null?(we=65533,pt=1):we>65535&&(we-=65536,z.push(we>>>10&1023|55296),we=56320|we&1023),z.push(we),Q+=pt}return Te(z)}const Ne=4096;function Te(h){const $=h.length;if($<=Ne)return String.fromCharCode.apply(String,h);let x="",z=0;for(;z<$;)x+=String.fromCharCode.apply(String,h.slice(z,z+=Ne));return x}function Oe(h,$,x){let z="";x=Math.min(h.length,x);for(let Q=$;Q<x;++Q)z+=String.fromCharCode(h[Q]&127);return z}function be(h,$,x){let z="";x=Math.min(h.length,x);for(let Q=$;Q<x;++Q)z+=String.fromCharCode(h[Q]);return z}function Ee(h,$,x){const z=h.length;(!$||$<0)&&($=0),(!x||x<0||x>z)&&(x=z);let Q="";for(let pe=$;pe<x;++pe)Q+=oe[h[pe]];return Q}function ue(h,$,x){const z=h.slice($,x);let Q="";for(let pe=0;pe<z.length-1;pe+=2)Q+=String.fromCharCode(z[pe]+z[pe+1]*256);return Q}s.prototype.slice=function(h,$){const x=this.length;h=~~h,$=$===void 0?x:~~$,h<0?(h+=x,h<0&&(h=0)):h>x&&(h=x),$<0?($+=x,$<0&&($=0)):$>x&&($=x),$<h&&($=h);const z=this.subarray(h,$);return Object.setPrototypeOf(z,s.prototype),z};function q(h,$,x){if(h%1!==0||h<0)throw new RangeError("offset is not uint");if(h+$>x)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(h,$,x){h=h>>>0,$=$>>>0,x||q(h,$,this.length);let z=this[h],Q=1,pe=0;for(;++pe<$&&(Q*=256);)z+=this[h+pe]*Q;return z},s.prototype.readUintBE=s.prototype.readUIntBE=function(h,$,x){h=h>>>0,$=$>>>0,x||q(h,$,this.length);let z=this[h+--$],Q=1;for(;$>0&&(Q*=256);)z+=this[h+--$]*Q;return z},s.prototype.readUint8=s.prototype.readUInt8=function(h,$){return h=h>>>0,$||q(h,1,this.length),this[h]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(h,$){return h=h>>>0,$||q(h,2,this.length),this[h]|this[h+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(h,$){return h=h>>>0,$||q(h,2,this.length),this[h]<<8|this[h+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(h,$){return h=h>>>0,$||q(h,4,this.length),(this[h]|this[h+1]<<8|this[h+2]<<16)+this[h+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(h,$){return h=h>>>0,$||q(h,4,this.length),this[h]*16777216+(this[h+1]<<16|this[h+2]<<8|this[h+3])},s.prototype.readBigUInt64LE=he(function(h){h=h>>>0,N(h,"offset");const $=this[h],x=this[h+7];($===void 0||x===void 0)&&M(h,this.length-8);const z=$+this[++h]*2**8+this[++h]*2**16+this[++h]*2**24,Q=this[++h]+this[++h]*2**8+this[++h]*2**16+x*2**24;return BigInt(z)+(BigInt(Q)<<BigInt(32))}),s.prototype.readBigUInt64BE=he(function(h){h=h>>>0,N(h,"offset");const $=this[h],x=this[h+7];($===void 0||x===void 0)&&M(h,this.length-8);const z=$*2**24+this[++h]*2**16+this[++h]*2**8+this[++h],Q=this[++h]*2**24+this[++h]*2**16+this[++h]*2**8+x;return(BigInt(z)<<BigInt(32))+BigInt(Q)}),s.prototype.readIntLE=function(h,$,x){h=h>>>0,$=$>>>0,x||q(h,$,this.length);let z=this[h],Q=1,pe=0;for(;++pe<$&&(Q*=256);)z+=this[h+pe]*Q;return Q*=128,z>=Q&&(z-=Math.pow(2,8*$)),z},s.prototype.readIntBE=function(h,$,x){h=h>>>0,$=$>>>0,x||q(h,$,this.length);let z=$,Q=1,pe=this[h+--z];for(;z>0&&(Q*=256);)pe+=this[h+--z]*Q;return Q*=128,pe>=Q&&(pe-=Math.pow(2,8*$)),pe},s.prototype.readInt8=function(h,$){return h=h>>>0,$||q(h,1,this.length),this[h]&128?(255-this[h]+1)*-1:this[h]},s.prototype.readInt16LE=function(h,$){h=h>>>0,$||q(h,2,this.length);const x=this[h]|this[h+1]<<8;return x&32768?x|4294901760:x},s.prototype.readInt16BE=function(h,$){h=h>>>0,$||q(h,2,this.length);const x=this[h+1]|this[h]<<8;return x&32768?x|4294901760:x},s.prototype.readInt32LE=function(h,$){return h=h>>>0,$||q(h,4,this.length),this[h]|this[h+1]<<8|this[h+2]<<16|this[h+3]<<24},s.prototype.readInt32BE=function(h,$){return h=h>>>0,$||q(h,4,this.length),this[h]<<24|this[h+1]<<16|this[h+2]<<8|this[h+3]},s.prototype.readBigInt64LE=he(function(h){h=h>>>0,N(h,"offset");const $=this[h],x=this[h+7];($===void 0||x===void 0)&&M(h,this.length-8);const z=this[h+4]+this[h+5]*2**8+this[h+6]*2**16+(x<<24);return(BigInt(z)<<BigInt(32))+BigInt($+this[++h]*2**8+this[++h]*2**16+this[++h]*2**24)}),s.prototype.readBigInt64BE=he(function(h){h=h>>>0,N(h,"offset");const $=this[h],x=this[h+7];($===void 0||x===void 0)&&M(h,this.length-8);const z=($<<24)+this[++h]*2**16+this[++h]*2**8+this[++h];return(BigInt(z)<<BigInt(32))+BigInt(this[++h]*2**24+this[++h]*2**16+this[++h]*2**8+x)}),s.prototype.readFloatLE=function(h,$){return h=h>>>0,$||q(h,4,this.length),r.read(this,h,!0,23,4)},s.prototype.readFloatBE=function(h,$){return h=h>>>0,$||q(h,4,this.length),r.read(this,h,!1,23,4)},s.prototype.readDoubleLE=function(h,$){return h=h>>>0,$||q(h,8,this.length),r.read(this,h,!0,52,8)},s.prototype.readDoubleBE=function(h,$){return h=h>>>0,$||q(h,8,this.length),r.read(this,h,!1,52,8)};function D(h,$,x,z,Q,pe){if(!s.isBuffer(h))throw new TypeError('"buffer" argument must be a Buffer instance');if($>Q||$<pe)throw new RangeError('"value" argument is out of bounds');if(x+z>h.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(h,$,x,z){if(h=+h,$=$>>>0,x=x>>>0,!z){const we=Math.pow(2,8*x)-1;D(this,h,$,x,we,0)}let Q=1,pe=0;for(this[$]=h&255;++pe<x&&(Q*=256);)this[$+pe]=h/Q&255;return $+x},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(h,$,x,z){if(h=+h,$=$>>>0,x=x>>>0,!z){const we=Math.pow(2,8*x)-1;D(this,h,$,x,we,0)}let Q=x-1,pe=1;for(this[$+Q]=h&255;--Q>=0&&(pe*=256);)this[$+Q]=h/pe&255;return $+x},s.prototype.writeUint8=s.prototype.writeUInt8=function(h,$,x){return h=+h,$=$>>>0,x||D(this,h,$,1,255,0),this[$]=h&255,$+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(h,$,x){return h=+h,$=$>>>0,x||D(this,h,$,2,65535,0),this[$]=h&255,this[$+1]=h>>>8,$+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(h,$,x){return h=+h,$=$>>>0,x||D(this,h,$,2,65535,0),this[$]=h>>>8,this[$+1]=h&255,$+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(h,$,x){return h=+h,$=$>>>0,x||D(this,h,$,4,4294967295,0),this[$+3]=h>>>24,this[$+2]=h>>>16,this[$+1]=h>>>8,this[$]=h&255,$+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(h,$,x){return h=+h,$=$>>>0,x||D(this,h,$,4,4294967295,0),this[$]=h>>>24,this[$+1]=h>>>16,this[$+2]=h>>>8,this[$+3]=h&255,$+4};function F(h,$,x,z,Q){re($,z,Q,h,x,7);let pe=Number($&BigInt(4294967295));h[x++]=pe,pe=pe>>8,h[x++]=pe,pe=pe>>8,h[x++]=pe,pe=pe>>8,h[x++]=pe;let we=Number($>>BigInt(32)&BigInt(4294967295));return h[x++]=we,we=we>>8,h[x++]=we,we=we>>8,h[x++]=we,we=we>>8,h[x++]=we,x}function k(h,$,x,z,Q){re($,z,Q,h,x,7);let pe=Number($&BigInt(4294967295));h[x+7]=pe,pe=pe>>8,h[x+6]=pe,pe=pe>>8,h[x+5]=pe,pe=pe>>8,h[x+4]=pe;let we=Number($>>BigInt(32)&BigInt(4294967295));return h[x+3]=we,we=we>>8,h[x+2]=we,we=we>>8,h[x+1]=we,we=we>>8,h[x]=we,x+8}s.prototype.writeBigUInt64LE=he(function(h,$=0){return F(this,h,$,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=he(function(h,$=0){return k(this,h,$,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(h,$,x,z){if(h=+h,$=$>>>0,!z){const pt=Math.pow(2,8*x-1);D(this,h,$,x,pt-1,-pt)}let Q=0,pe=1,we=0;for(this[$]=h&255;++Q<x&&(pe*=256);)h<0&&we===0&&this[$+Q-1]!==0&&(we=1),this[$+Q]=(h/pe>>0)-we&255;return $+x},s.prototype.writeIntBE=function(h,$,x,z){if(h=+h,$=$>>>0,!z){const pt=Math.pow(2,8*x-1);D(this,h,$,x,pt-1,-pt)}let Q=x-1,pe=1,we=0;for(this[$+Q]=h&255;--Q>=0&&(pe*=256);)h<0&&we===0&&this[$+Q+1]!==0&&(we=1),this[$+Q]=(h/pe>>0)-we&255;return $+x},s.prototype.writeInt8=function(h,$,x){return h=+h,$=$>>>0,x||D(this,h,$,1,127,-128),h<0&&(h=255+h+1),this[$]=h&255,$+1},s.prototype.writeInt16LE=function(h,$,x){return h=+h,$=$>>>0,x||D(this,h,$,2,32767,-32768),this[$]=h&255,this[$+1]=h>>>8,$+2},s.prototype.writeInt16BE=function(h,$,x){return h=+h,$=$>>>0,x||D(this,h,$,2,32767,-32768),this[$]=h>>>8,this[$+1]=h&255,$+2},s.prototype.writeInt32LE=function(h,$,x){return h=+h,$=$>>>0,x||D(this,h,$,4,2147483647,-2147483648),this[$]=h&255,this[$+1]=h>>>8,this[$+2]=h>>>16,this[$+3]=h>>>24,$+4},s.prototype.writeInt32BE=function(h,$,x){return h=+h,$=$>>>0,x||D(this,h,$,4,2147483647,-2147483648),h<0&&(h=4294967295+h+1),this[$]=h>>>24,this[$+1]=h>>>16,this[$+2]=h>>>8,this[$+3]=h&255,$+4},s.prototype.writeBigInt64LE=he(function(h,$=0){return F(this,h,$,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=he(function(h,$=0){return k(this,h,$,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function B(h,$,x,z,Q,pe){if(x+z>h.length)throw new RangeError("Index out of range");if(x<0)throw new RangeError("Index out of range")}function J(h,$,x,z,Q){return $=+$,x=x>>>0,Q||B(h,$,x,4),r.write(h,$,x,z,23,4),x+4}s.prototype.writeFloatLE=function(h,$,x){return J(this,h,$,!0,x)},s.prototype.writeFloatBE=function(h,$,x){return J(this,h,$,!1,x)};function de(h,$,x,z,Q){return $=+$,x=x>>>0,Q||B(h,$,x,8),r.write(h,$,x,z,52,8),x+8}s.prototype.writeDoubleLE=function(h,$,x){return de(this,h,$,!0,x)},s.prototype.writeDoubleBE=function(h,$,x){return de(this,h,$,!1,x)},s.prototype.copy=function(h,$,x,z){if(!s.isBuffer(h))throw new TypeError("argument should be a Buffer");if(x||(x=0),!z&&z!==0&&(z=this.length),$>=h.length&&($=h.length),$||($=0),z>0&&z<x&&(z=x),z===x||h.length===0||this.length===0)return 0;if($<0)throw new RangeError("targetStart out of bounds");if(x<0||x>=this.length)throw new RangeError("Index out of range");if(z<0)throw new RangeError("sourceEnd out of bounds");z>this.length&&(z=this.length),h.length-$<z-x&&(z=h.length-$+x);const Q=z-x;return this===h&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin($,x,z):Uint8Array.prototype.set.call(h,this.subarray(x,z),$),Q},s.prototype.fill=function(h,$,x,z){if(typeof h=="string"){if(typeof $=="string"?(z=$,$=0,x=this.length):typeof x=="string"&&(z=x,x=this.length),z!==void 0&&typeof z!="string")throw new TypeError("encoding must be a string");if(typeof z=="string"&&!s.isEncoding(z))throw new TypeError("Unknown encoding: "+z);if(h.length===1){const pe=h.charCodeAt(0);(z==="utf8"&&pe<128||z==="latin1")&&(h=pe)}}else typeof h=="number"?h=h&255:typeof h=="boolean"&&(h=Number(h));if($<0||this.length<$||this.length<x)throw new RangeError("Out of range index");if(x<=$)return this;$=$>>>0,x=x===void 0?this.length:x>>>0,h||(h=0);let Q;if(typeof h=="number")for(Q=$;Q<x;++Q)this[Q]=h;else{const pe=s.isBuffer(h)?h:s.from(h,z),we=pe.length;if(we===0)throw new TypeError('The value "'+h+'" is invalid for argument "value"');for(Q=0;Q<x-$;++Q)this[Q+$]=pe[Q%we]}return this};const se={};function Se(h,$,x){se[h]=class extends x{constructor(){super(),Object.defineProperty(this,"message",{value:$.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${h}]`,this.stack,delete this.name}get code(){return h}set code(z){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:z,writable:!0})}toString(){return`${this.name} [${h}]: ${this.message}`}}}Se("ERR_BUFFER_OUT_OF_BOUNDS",function(h){return h?`${h} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Se("ERR_INVALID_ARG_TYPE",function(h,$){return`The "${h}" argument must be of type number. Received type ${typeof $}`},TypeError),Se("ERR_OUT_OF_RANGE",function(h,$,x){let z=`The value of "${h}" is out of range.`,Q=x;return Number.isInteger(x)&&Math.abs(x)>2**32?Q=je(String(x)):typeof x=="bigint"&&(Q=String(x),(x>BigInt(2)**BigInt(32)||x<-(BigInt(2)**BigInt(32)))&&(Q=je(Q)),Q+="n"),z+=` It must be ${$}. Received ${Q}`,z},RangeError);function je(h){let $="",x=h.length;const z=h[0]==="-"?1:0;for(;x>=z+4;x-=3)$=`_${h.slice(x-3,x)}${$}`;return`${h.slice(0,x)}${$}`}function Y(h,$,x){N($,"offset"),(h[$]===void 0||h[$+x]===void 0)&&M($,h.length-(x+1))}function re(h,$,x,z,Q,pe){if(h>x||h<$){const we=typeof $=="bigint"?"n":"";let pt;throw $===0||$===BigInt(0)?pt=`>= 0${we} and < 2${we} ** ${(pe+1)*8}${we}`:pt=`>= -(2${we} ** ${(pe+1)*8-1}${we}) and < 2 ** ${(pe+1)*8-1}${we}`,new se.ERR_OUT_OF_RANGE("value",pt,h)}Y(z,Q,pe)}function N(h,$){if(typeof h!="number")throw new se.ERR_INVALID_ARG_TYPE($,"number",h)}function M(h,$,x){throw Math.floor(h)!==h?(N(h,x),new se.ERR_OUT_OF_RANGE("offset","an integer",h)):$<0?new se.ERR_BUFFER_OUT_OF_BOUNDS:new se.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${$}`,h)}const X=/[^+/0-9A-Za-z-_]/g;function le(h){if(h=h.split("=")[0],h=h.trim().replace(X,""),h.length<2)return"";for(;h.length%4!==0;)h=h+"=";return h}function ye(h,$){$=$||1/0;let x;const z=h.length;let Q=null;const pe=[];for(let we=0;we<z;++we){if(x=h.charCodeAt(we),x>55295&&x<57344){if(!Q){if(x>56319){($-=3)>-1&&pe.push(239,191,189);continue}else if(we+1===z){($-=3)>-1&&pe.push(239,191,189);continue}Q=x;continue}if(x<56320){($-=3)>-1&&pe.push(239,191,189),Q=x;continue}x=(Q-55296<<10|x-56320)+65536}else Q&&($-=3)>-1&&pe.push(239,191,189);if(Q=null,x<128){if(($-=1)<0)break;pe.push(x)}else if(x<2048){if(($-=2)<0)break;pe.push(x>>6|192,x&63|128)}else if(x<65536){if(($-=3)<0)break;pe.push(x>>12|224,x>>6&63|128,x&63|128)}else if(x<1114112){if(($-=4)<0)break;pe.push(x>>18|240,x>>12&63|128,x>>6&63|128,x&63|128)}else throw new Error("Invalid code point")}return pe}function ge(h){const $=[];for(let x=0;x<h.length;++x)$.push(h.charCodeAt(x)&255);return $}function K(h,$){let x,z,Q;const pe=[];for(let we=0;we<h.length&&!(($-=2)<0);++we)x=h.charCodeAt(we),z=x>>8,Q=x%256,pe.push(Q),pe.push(z);return pe}function $e(h){return t.toByteArray(le(h))}function te(h,$,x,z){let Q;for(Q=0;Q<z&&!(Q+x>=$.length||Q>=h.length);++Q)$[Q+x]=h[Q];return Q}function R(h,$){return h instanceof $||h!=null&&h.constructor!=null&&h.constructor.name!=null&&h.constructor.name===$.name}function H(h){return h!==h}const oe=function(){const h="0123456789abcdef",$=new Array(256);for(let x=0;x<16;++x){const z=x*16;for(let Q=0;Q<16;++Q)$[z+Q]=h[x]+h[Q]}return $}();function he(h){return typeof BigInt>"u"?_e:h}function _e(){throw new Error("BigInt not supported")}})(Fg);var Vg={exports:{}},Lt=Vg.exports={},On,An;function gd(){throw new Error("setTimeout has not been defined")}function vd(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?On=setTimeout:On=gd}catch{On=gd}try{typeof clearTimeout=="function"?An=clearTimeout:An=vd}catch{An=vd}})();function Ug(e){if(On===setTimeout)return setTimeout(e,0);if((On===gd||!On)&&setTimeout)return On=setTimeout,setTimeout(e,0);try{return On(e,0)}catch{try{return On.call(null,e,0)}catch{return On.call(this,e,0)}}}function PP(e){if(An===clearTimeout)return clearTimeout(e);if((An===vd||!An)&&clearTimeout)return An=clearTimeout,clearTimeout(e);try{return An(e)}catch{try{return An.call(null,e)}catch{return An.call(this,e)}}}var Gn=[],Ta=!1,Uo,Bl=-1;function xP(){!Ta||!Uo||(Ta=!1,Uo.length?Gn=Uo.concat(Gn):Bl=-1,Gn.length&&Lg())}function Lg(){if(!Ta){var e=Ug(xP);Ta=!0;for(var t=Gn.length;t;){for(Uo=Gn,Gn=[];++Bl<t;)Uo&&Uo[Bl].run();Bl=-1,t=Gn.length}Uo=null,Ta=!1,PP(e)}}Lt.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Gn.push(new zg(e,t)),Gn.length===1&&!Ta&&Ug(Lg)};function zg(e,t){this.fun=e,this.array=t}zg.prototype.run=function(){this.fun.apply(null,this.array)},Lt.title="browser",Lt.browser=!0,Lt.env={},Lt.argv=[],Lt.version="",Lt.versions={};function Jn(){}Lt.on=Jn,Lt.addListener=Jn,Lt.once=Jn,Lt.off=Jn,Lt.removeListener=Jn,Lt.removeAllListeners=Jn,Lt.emit=Jn,Lt.prependListener=Jn,Lt.prependOnceListener=Jn,Lt.listeners=function(e){return[]},Lt.binding=function(e){throw new Error("process.binding is not supported")},Lt.cwd=function(){return"/"},Lt.chdir=function(e){throw new Error("process.chdir is not supported")},Lt.umask=function(){return 0};var TP=Vg.exports;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Fg,r=TP,n=i=>i&&i.__esModule?i:{default:i},o=n(r),a=globalThis||void 0||self;Object.defineProperty(e,"Buffer",{enumerable:!0,get:()=>t.Buffer}),Object.defineProperty(e,"process",{enumerable:!0,get:()=>o.default}),e.global=a})(Fe);var qg=!1;function Dl(e,t,r){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,r),r):(e[t]=r,r)}function bd(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}function jP(){return Wg().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Wg(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const kP=typeof Proxy=="function",CP="devtools-plugin:setup",NP="plugin:settings:set";let Zi,wd;function IP(){var e;return Zi!==void 0||(typeof window<"u"&&window.performance?(Zi=!0,wd=window.performance):typeof global<"u"&&!((e=global.perf_hooks)===null||e===void 0)&&e.performance?(Zi=!0,wd=global.perf_hooks.performance):Zi=!1),Zi}function RP(){return IP()?wd.now():Date.now()}class BP{constructor(t,r){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=r;const n={};if(t.settings)for(const i in t.settings){const s=t.settings[i];n[i]=s.defaultValue}const o=`__vue-devtools-plugin-settings__${t.id}`;let a=Object.assign({},n);try{const i=localStorage.getItem(o),s=JSON.parse(i);Object.assign(a,s)}catch{}this.fallbacks={getSettings(){return a},setSettings(i){try{localStorage.setItem(o,JSON.stringify(i))}catch{}a=i},now(){return RP()}},r&&r.on(NP,(i,s)=>{i===this.plugin.id&&this.fallbacks.setSettings(s)}),this.proxiedOn=new Proxy({},{get:(i,s)=>this.target?this.target.on[s]:(...l)=>{this.onQueue.push({method:s,args:l})}}),this.proxiedTarget=new Proxy({},{get:(i,s)=>this.target?this.target[s]:s==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(s)?(...l)=>(this.targetQueue.push({method:s,args:l,resolve:()=>{}}),this.fallbacks[s](...l)):(...l)=>new Promise(u=>{this.targetQueue.push({method:s,args:l,resolve:u})})})}async setRealTarget(t){this.target=t;for(const r of this.onQueue)this.target.on[r.method](...r.args);for(const r of this.targetQueue)r.resolve(await this.target[r.method](...r.args))}}function Hg(e,t){const r=e,n=Wg(),o=jP(),a=kP&&r.enableEarlyProxy;if(o&&(n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))o.emit(CP,e,t);else{const i=a?new BP(r,o):null;(n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}let ja;const ka=e=>ja=e,DP=()=>jy()&&Jt(_d)||ja,_d=Fe.process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function Lo(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Pn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Pn||(Pn={}));const Fl=typeof window<"u",Yi=(Fe.process.env.NODE_ENV!=="production"||!1)&&Fe.process.env.NODE_ENV!=="test"&&Fl,Gg=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function FP(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function Sd(e,t,r){const n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){Zg(n.response,t,r)},n.onerror=function(){console.error("could not download file")},n.send()}function Jg(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Ml(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}const Vl=typeof navigator=="object"?navigator:{userAgent:""},Kg=/Macintosh/.test(Vl.userAgent)&&/AppleWebKit/.test(Vl.userAgent)&&!/Safari/.test(Vl.userAgent),Zg=Fl?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!Kg?MP:"msSaveOrOpenBlob"in Vl?VP:UP:()=>{};function MP(e,t="download",r){const n=document.createElement("a");n.download=t,n.rel="noopener",typeof e=="string"?(n.href=e,n.origin!==location.origin?Jg(n.href)?Sd(e,t,r):(n.target="_blank",Ml(n)):Ml(n)):(n.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(n.href)},4e4),setTimeout(function(){Ml(n)},0))}function VP(e,t="download",r){if(typeof e=="string")if(Jg(e))Sd(e,t,r);else{const n=document.createElement("a");n.href=e,n.target="_blank",setTimeout(function(){Ml(n)})}else navigator.msSaveOrOpenBlob(FP(e,r),t)}function UP(e,t,r,n){if(n=n||open("","_blank"),n&&(n.document.title=n.document.body.innerText="downloading..."),typeof e=="string")return Sd(e,t,r);const o=e.type==="application/octet-stream",a=/constructor/i.test(String(Gg.HTMLElement))||"safari"in Gg,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||o&&a||Kg)&&typeof FileReader<"u"){const s=new FileReader;s.onloadend=function(){let l=s.result;if(typeof l!="string")throw n=null,new Error("Wrong reader.result type");l=i?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=l:location.assign(l),n=null},s.readAsDataURL(e)}else{const s=URL.createObjectURL(e);n?n.location.assign(s):location.href=s,n=null,setTimeout(function(){URL.revokeObjectURL(s)},4e4)}}function Xt(e,t){const r="🍍 "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(r,t):t==="error"?console.error(r):t==="warn"?console.warn(r):console.log(r)}function $d(e){return"_a"in e&&"install"in e}function Yg(){if(!("clipboard"in navigator))return Xt("Your browser doesn't support the Clipboard API","error"),!0}function Xg(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(Xt('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function LP(e){if(!Yg())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),Xt("Global state copied to clipboard.")}catch(t){if(Xg(t))return;Xt("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function zP(e){if(!Yg())try{Qg(e,JSON.parse(await navigator.clipboard.readText())),Xt("Global state pasted from clipboard.")}catch(t){if(Xg(t))return;Xt("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function qP(e){try{Zg(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){Xt("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let Kn;function WP(){Kn||(Kn=document.createElement("input"),Kn.type="file",Kn.accept=".json");function e(){return new Promise((t,r)=>{Kn.onchange=async()=>{const n=Kn.files;if(!n)return t(null);const o=n.item(0);return t(o?{text:await o.text(),file:o}:null)},Kn.oncancel=()=>t(null),Kn.onerror=r,Kn.click()})}return e}async function HP(e){try{const t=await WP()();if(!t)return;const{text:r,file:n}=t;Qg(e,JSON.parse(r)),Xt(`Global state imported from "${n.name}".`)}catch(t){Xt("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function Qg(e,t){for(const r in t){const n=e.state.value[r];n&&Object.assign(n,t[r])}}function sn(e){return{_custom:{display:e}}}const ev="🍍 Pinia (root)",Ed="_root";function GP(e){return $d(e)?{id:Ed,label:ev}:{id:e.$id,label:e.$id}}function JP(e){if($d(e)){const r=Array.from(e._s.keys()),n=e._s;return{state:r.map(o=>({editable:!0,key:o,value:e.state.value[o]})),getters:r.filter(o=>n.get(o)._getters).map(o=>{const a=n.get(o);return{editable:!1,key:o,value:a._getters.reduce((i,s)=>(i[s]=a[s],i),{})}})}}const t={state:Object.keys(e.$state).map(r=>({editable:!0,key:r,value:e.$state[r]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(r=>({editable:!1,key:r,value:e[r]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(r=>({editable:!0,key:r,value:e[r]}))),t}function KP(e){return e?Array.isArray(e)?e.reduce((t,r)=>(t.keys.push(r.key),t.operations.push(r.type),t.oldValue[r.key]=r.oldValue,t.newValue[r.key]=r.newValue,t),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:sn(e.type),key:sn(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function ZP(e){switch(e){case Pn.direct:return"mutation";case Pn.patchFunction:return"$patch";case Pn.patchObject:return"$patch";default:return"unknown"}}let Ca=!0;const Ul=[],zo="pinia:mutations",dr="pinia",{assign:YP}=Object,Ll=e=>"🍍 "+e;function XP(e,t){Hg({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Ul,app:e},r=>{typeof r.now!="function"&&Xt("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),r.addTimelineLayer({id:zo,label:"Pinia 🍍",color:15064968}),r.addInspector({id:dr,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{LP(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await zP(t),r.sendInspectorTree(dr),r.sendInspectorState(dr)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{qP(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await HP(t),r.sendInspectorTree(dr),r.sendInspectorState(dr)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:n=>{const o=t._s.get(n);o?typeof o.$reset!="function"?Xt(`Cannot reset "${n}" store because it doesn't have a "$reset" method implemented.`,"warn"):(o.$reset(),Xt(`Store "${n}" reset.`)):Xt(`Cannot reset "${n}" store because it wasn't found.`,"warn")}}]}),r.on.inspectComponent((n,o)=>{const a=n.componentInstance&&n.componentInstance.proxy;if(a&&a._pStores){const i=n.componentInstance.proxy._pStores;Object.values(i).forEach(s=>{n.instanceData.state.push({type:Ll(s.$id),key:"state",editable:!0,value:s._isOptionsAPI?{_custom:{value:Ke(s.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>s.$reset()}]}}:Object.keys(s.$state).reduce((l,u)=>(l[u]=s.$state[u],l),{})}),s._getters&&s._getters.length&&n.instanceData.state.push({type:Ll(s.$id),key:"getters",editable:!1,value:s._getters.reduce((l,u)=>{try{l[u]=s[u]}catch(c){l[u]=c}return l},{})})})}}),r.on.getInspectorTree(n=>{if(n.app===e&&n.inspectorId===dr){let o=[t];o=o.concat(Array.from(t._s.values())),n.rootNodes=(n.filter?o.filter(a=>"$id"in a?a.$id.toLowerCase().includes(n.filter.toLowerCase()):ev.toLowerCase().includes(n.filter.toLowerCase())):o).map(GP)}}),r.on.getInspectorState(n=>{if(n.app===e&&n.inspectorId===dr){const o=n.nodeId===Ed?t:t._s.get(n.nodeId);if(!o)return;o&&(n.state=JP(o))}}),r.on.editInspectorState((n,o)=>{if(n.app===e&&n.inspectorId===dr){const a=n.nodeId===Ed?t:t._s.get(n.nodeId);if(!a)return Xt(`store "${n.nodeId}" not found`,"error");const{path:i}=n;$d(a)?i.unshift("state"):(i.length!==1||!a._customProperties.has(i[0])||i[0]in a.$state)&&i.unshift("$state"),Ca=!1,n.set(a,i,n.state.value),Ca=!0}}),r.on.editComponentState(n=>{if(n.type.startsWith("🍍")){const o=n.type.replace(/^🍍\s*/,""),a=t._s.get(o);if(!a)return Xt(`store "${o}" not found`,"error");const{path:i}=n;if(i[0]!=="state")return Xt(`Invalid path for store "${o}":
|
26
|
+
${i}
|
27
|
+
Only state can be modified.`);i[0]="$state",Ca=!1,n.set(a,i,n.state.value),Ca=!0}})})}function QP(e,t){Ul.includes(Ll(t.$id))||Ul.push(Ll(t.$id)),Hg({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Ul,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},r=>{const n=typeof r.now=="function"?r.now.bind(r):Date.now;t.$onAction(({after:i,onError:s,name:l,args:u})=>{const c=tv++;r.addTimelineEvent({layerId:zo,event:{time:n(),title:"🛫 "+l,subtitle:"start",data:{store:sn(t.$id),action:sn(l),args:u},groupId:c}}),i(d=>{po=void 0,r.addTimelineEvent({layerId:zo,event:{time:n(),title:"🛬 "+l,subtitle:"end",data:{store:sn(t.$id),action:sn(l),args:u,result:d},groupId:c}})}),s(d=>{po=void 0,r.addTimelineEvent({layerId:zo,event:{time:n(),logType:"error",title:"💥 "+l,subtitle:"end",data:{store:sn(t.$id),action:sn(l),args:u,error:d},groupId:c}})})},!0),t._customProperties.forEach(i=>{$r(()=>P(t[i]),(s,l)=>{r.notifyComponentUpdate(),r.sendInspectorState(dr),Ca&&r.addTimelineEvent({layerId:zo,event:{time:n(),title:"Change",subtitle:i,data:{newValue:s,oldValue:l},groupId:po}})},{deep:!0})}),t.$subscribe(({events:i,type:s},l)=>{if(r.notifyComponentUpdate(),r.sendInspectorState(dr),!Ca)return;const u={time:n(),title:ZP(s),data:YP({store:sn(t.$id)},KP(i)),groupId:po};s===Pn.patchFunction?u.subtitle="⤵️":s===Pn.patchObject?u.subtitle="🧩":i&&!Array.isArray(i)&&(u.subtitle=i.type),i&&(u.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),r.addTimelineEvent({layerId:zo,event:u})},{detached:!0,flush:"sync"});const o=t._hotUpdate;t._hotUpdate=Vn(i=>{o(i),r.addTimelineEvent({layerId:zo,event:{time:n(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:sn(t.$id),info:sn("HMR update")}}}),r.notifyComponentUpdate(),r.sendInspectorTree(dr),r.sendInspectorState(dr)});const{$dispose:a}=t;t.$dispose=()=>{a(),r.notifyComponentUpdate(),r.sendInspectorTree(dr),r.sendInspectorState(dr),r.getSettings().logStoreChanges&&Xt(`Disposed "${t.$id}" store 🗑`)},r.notifyComponentUpdate(),r.sendInspectorTree(dr),r.sendInspectorState(dr),r.getSettings().logStoreChanges&&Xt(`"${t.$id}" store installed 🆕`)})}let tv=0,po;function rv(e,t,r){const n=t.reduce((o,a)=>(o[a]=Ke(e)[a],o),{});for(const o in n)e[o]=function(){const a=tv,i=r?new Proxy(e,{get(...l){return po=a,Reflect.get(...l)},set(...l){return po=a,Reflect.set(...l)}}):e;po=a;const s=n[o].apply(i,arguments);return po=void 0,s}}function ex({app:e,store:t,options:r}){if(t.$id.startsWith("__hot:"))return;t._isOptionsAPI=!!r.state,rv(t,Object.keys(r.actions),t._isOptionsAPI);const n=t._hotUpdate;Ke(t)._hotUpdate=function(o){n.apply(this,arguments),rv(t,Object.keys(o._hmrPayload.actions),!!t._isOptionsAPI)},QP(e,t)}function tx(){const e=xm(!0),t=e.run(()=>ot({}));let r=[],n=[];const o=Vn({install(a){ka(o),o._a=a,a.provide(_d,o),a.config.globalProperties.$pinia=o,Yi&&XP(a,o),n.forEach(i=>r.push(i)),n=[]},use(a){return!this._a&&!qg?n.push(a):r.push(a),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return Yi&&typeof Proxy<"u"&&o.use(ex),o}function nv(e,t){for(const r in t){const n=t[r];if(!(r in e))continue;const o=e[r];Lo(o)&&Lo(n)&&!kt(n)&&!bn(n)?e[r]=nv(o,n):e[r]=n}return e}const ov=()=>{};function av(e,t,r,n=ov){e.push(t);const o=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),n())};return!r&&Cf()&&Tm(o),o}function Na(e,...t){e.slice().forEach(r=>{r(...t)})}const rx=e=>e();function Od(e,t){e instanceof Map&&t instanceof Map&&t.forEach((r,n)=>e.set(n,r)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const r in t){if(!t.hasOwnProperty(r))continue;const n=t[r],o=e[r];Lo(o)&&Lo(n)&&e.hasOwnProperty(r)&&!kt(n)&&!bn(n)?e[r]=Od(o,n):e[r]=n}return e}const nx=Fe.process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function ox(e){return!Lo(e)||!e.hasOwnProperty(nx)}const{assign:Yr}=Object;function iv(e){return!!(kt(e)&&e.effect)}function sv(e,t,r,n){const{state:o,actions:a,getters:i}=t,s=r.state.value[e];let l;function u(){!s&&(Fe.process.env.NODE_ENV==="production"||!n)&&(r.state.value[e]=o?o():{});const c=Fe.process.env.NODE_ENV!=="production"&&n?Ym(ot(o?o():{}).value):Ym(r.state.value[e]);return Yr(c,a,Object.keys(i||{}).reduce((d,v)=>(Fe.process.env.NODE_ENV!=="production"&&v in c&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${v}" in store "${e}".`),d[v]=Vn(ne(()=>{ka(r);const g=r._s.get(e);return i[v].call(g,g)})),d),{}))}return l=Ad(e,u,t,r,n,!0),l}function Ad(e,t,r={},n,o,a){let i;const s=Yr({actions:{}},r);if(Fe.process.env.NODE_ENV!=="production"&&!n._e.active)throw new Error("Pinia destroyed");const l={deep:!0};Fe.process.env.NODE_ENV!=="production"&&!qg&&(l.onTrigger=U=>{u?g=U:u==!1&&!C._hotUpdating&&(Array.isArray(g)?g.push(U):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let u,c,d=[],v=[],g;const b=n.state.value[e];!a&&!b&&(Fe.process.env.NODE_ENV==="production"||!o)&&(n.state.value[e]={});const E=ot({});let y;function m(U){let W;u=c=!1,Fe.process.env.NODE_ENV!=="production"&&(g=[]),typeof U=="function"?(U(n.state.value[e]),W={type:Pn.patchFunction,storeId:e,events:g}):(Od(n.state.value[e],U),W={type:Pn.patchObject,payload:U,storeId:e,events:g});const ee=y=Symbol();_r().then(()=>{y===ee&&(u=!0)}),c=!0,Na(d,W,n.state.value[e])}const p=a?function(){const{state:U}=r,W=U?U():{};this.$patch(ee=>{Yr(ee,W)})}:Fe.process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:ov;function _(){i.stop(),d=[],v=[],n._s.delete(e)}function T(U,W){return function(){ka(n);const ee=Array.from(arguments),fe=[],ve=[];function Ne(be){fe.push(be)}function Te(be){ve.push(be)}Na(v,{args:ee,name:U,store:C,after:Ne,onError:Te});let Oe;try{Oe=W.apply(this&&this.$id===e?this:C,ee)}catch(be){throw Na(ve,be),be}return Oe instanceof Promise?Oe.then(be=>(Na(fe,be),be)).catch(be=>(Na(ve,be),Promise.reject(be))):(Na(fe,Oe),Oe)}}const O=Vn({actions:{},getters:{},state:[],hotState:E}),j={_p:n,$id:e,$onAction:av.bind(null,v),$patch:m,$reset:p,$subscribe(U,W={}){const ee=av(d,U,W.detached,()=>fe()),fe=i.run(()=>$r(()=>n.state.value[e],ve=>{(W.flush==="sync"?c:u)&&U({storeId:e,type:Pn.direct,events:g},ve)},Yr({},l,W)));return ee},$dispose:_},C=ll(Fe.process.env.NODE_ENV!=="production"||Yi?Yr({_hmrPayload:O,_customProperties:Vn(new Set)},j):j);n._s.set(e,C);const Z=n._a&&n._a.runWithContext||rx,V=n._e.run(()=>(i=xm(),Z(()=>i.run(t))));for(const U in V){const W=V[U];if(kt(W)&&!iv(W)||bn(W))Fe.process.env.NODE_ENV!=="production"&&o?Dl(E.value,U,at(V,U)):a||(b&&ox(W)&&(kt(W)?W.value=b[U]:Od(W,b[U])),n.state.value[e][U]=W),Fe.process.env.NODE_ENV!=="production"&&O.state.push(U);else if(typeof W=="function"){const ee=Fe.process.env.NODE_ENV!=="production"&&o?W:T(U,W);V[U]=ee,Fe.process.env.NODE_ENV!=="production"&&(O.actions[U]=W),s.actions[U]=W}else Fe.process.env.NODE_ENV!=="production"&&iv(W)&&(O.getters[U]=a?r.getters[U]:W,Fl&&(V._getters||(V._getters=Vn([]))).push(U))}if(Yr(C,V),Yr(Ke(C),V),Object.defineProperty(C,"$state",{get:()=>Fe.process.env.NODE_ENV!=="production"&&o?E.value:n.state.value[e],set:U=>{if(Fe.process.env.NODE_ENV!=="production"&&o)throw new Error("cannot set hotState");m(W=>{Yr(W,U)})}}),Fe.process.env.NODE_ENV!=="production"&&(C._hotUpdate=Vn(U=>{C._hotUpdating=!0,U._hmrPayload.state.forEach(W=>{if(W in C.$state){const ee=U.$state[W],fe=C.$state[W];typeof ee=="object"&&Lo(ee)&&Lo(fe)?nv(ee,fe):U.$state[W]=fe}Dl(C,W,at(U.$state,W))}),Object.keys(C.$state).forEach(W=>{W in U.$state||bd(C,W)}),u=!1,c=!1,n.state.value[e]=at(U._hmrPayload,"hotState"),c=!0,_r().then(()=>{u=!0});for(const W in U._hmrPayload.actions){const ee=U[W];Dl(C,W,T(W,ee))}for(const W in U._hmrPayload.getters){const ee=U._hmrPayload.getters[W],fe=a?ne(()=>(ka(n),ee.call(C,C))):ee;Dl(C,W,fe)}Object.keys(C._hmrPayload.getters).forEach(W=>{W in U._hmrPayload.getters||bd(C,W)}),Object.keys(C._hmrPayload.actions).forEach(W=>{W in U._hmrPayload.actions||bd(C,W)}),C._hmrPayload=U._hmrPayload,C._getters=U._getters,C._hotUpdating=!1})),Yi){const U={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(W=>{Object.defineProperty(C,W,Yr({value:C[W]},U))})}return n._p.forEach(U=>{if(Yi){const W=i.run(()=>U({store:C,app:n._a,pinia:n,options:s}));Object.keys(W||{}).forEach(ee=>C._customProperties.add(ee)),Yr(C,W)}else Yr(C,i.run(()=>U({store:C,app:n._a,pinia:n,options:s})))}),Fe.process.env.NODE_ENV!=="production"&&C.$state&&typeof C.$state=="object"&&typeof C.$state.constructor=="function"&&!C.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
28
|
+
state: () => new MyClass()
|
29
|
+
Found in store "${C.$id}".`),b&&a&&r.hydrate&&r.hydrate(C.$state,b),u=!0,c=!0,C}function lv(e,t,r){let n,o;const a=typeof t=="function";if(typeof e=="string")n=e,o=a?r:t;else if(o=e,n=e.id,Fe.process.env.NODE_ENV!=="production"&&typeof n!="string")throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');function i(s,l){const u=jy();if(s=(Fe.process.env.NODE_ENV==="test"&&ja&&ja._testing?null:s)||(u?Jt(_d,null):null),s&&ka(s),Fe.process.env.NODE_ENV!=="production"&&!ja)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Did you forget to install pinia?
|
30
|
+
const pinia = createPinia()
|
31
|
+
app.use(pinia)
|
32
|
+
This will fail in production.`);s=ja,s._s.has(n)||(a?Ad(n,t,o,s):sv(n,o,s),Fe.process.env.NODE_ENV!=="production"&&(i._pinia=s));const c=s._s.get(n);if(Fe.process.env.NODE_ENV!=="production"&&l){const d="__hot:"+n,v=a?Ad(d,t,o,s,!0):sv(d,Yr({},o),s,!0);l._hotUpdate(v),delete s.state.value[d],s._s.delete(d)}if(Fe.process.env.NODE_ENV!=="production"&&Fl){const d=qn();if(d&&d.proxy&&!l){const v=d.proxy,g="_pStores"in v?v._pStores:v._pStores={};g[n]=c}}return c}return i.$id=n,i}function Zt(e){{e=Ke(e);const t={};for(const r in e){const n=e[r];(kt(n)||bn(n))&&(t[r]=at(e,r))}return t}}const ax=vP;function uv(e,t="/properties/"){let r={};for(const[n,o]of Object.entries(e.properties||{}))if(typeof o!="boolean"){if(o.type==="object")r={...r,...uv(o,t+n+"/properties/")};else if(o.default!==void 0){let a=o.default;a==="$now"&&(a=new Date().toISOString()),r[t+n]=a}}return r}const ho=lv("formStructure",{state:()=>({jsonSchema:void 0,uiSchema:void 0,components:void 0,arrays:[],mappers:[],buttonWaiting:{}}),getters:{defaultData:e=>e.jsonSchema?uv(e.jsonSchema):{}}});function Qt(e){var t;const{components:r}=Zt(ho());return((t=r.value)==null?void 0:t[e])||ax[e]}function ix(e){return"showOn"in e&&e.showOn!==void 0&&e.showOn!==null}function cv(e){return Array.isArray(e.elements)}function zl(e){return"tags"in(e||{})}function sx(e){return e?"displayAs"in e&&(e==null?void 0:e.displayAs)==="buttons":!1}function lx(e){var t;return typeof((t=e.options)==null?void 0:t.cssClass)=="string"}function fv(e){return e&&"path"in e&&"type"in e&&"referenceValue"in e}function dv(e){return"options"in e&&e.options!==void 0}function ux(e,t){return dv(e)&&t in e.options}function pv(e){return"items"in e}function hv(e){return"enum"in e}function cx(e){return pv(e)&&hv(e.items)}function mv(e){return dv(e)&&"enumTitles"in e.options&&e.options.enumTitles!==void 0}function fx(e){return["text","number","email","password","search","url","tel","date","time","range","color","datetime","datetime-local","month","week"].includes(e)}function dx(e){if(e)return e.replace("-outline","")}function Mr(e,t,r){return ux(e,t)?e.options[t]:r}var px=Object.prototype.hasOwnProperty,hx=Object.prototype.toString,mx=function(e,t,r){if(hx.call(t)!=="[object Function]")throw new TypeError("iterator must be a function");var n=e.length;if(n===+n)for(var o=0;o<n;o++)t.call(r,e[o],o,e);else for(var a in e)px.call(e,a)&&t.call(r,e[a],a,e)},yx=mx,gx=Tt;function Tt(e,t,r){if(arguments.length===3)return Tt.set(e,t,r);if(arguments.length===2)return Tt.get(e,t);var n=Tt.bind(Tt,e);for(var o in Tt)Tt.hasOwnProperty(o)&&(n[o]=Tt[o].bind(n,e));return n}Tt.get=function(e,t){for(var r=Array.isArray(t)?t:Tt.parse(t),n=0;n<r.length;++n){var o=r[n];if(!(typeof e=="object"&&o in e))throw new Error("Invalid reference token: "+o);e=e[o]}return e},Tt.set=function(e,t,r){var n=Array.isArray(t)?t:Tt.parse(t),o=n[0];if(n.length===0)throw Error("Can not set the root object");for(var a=0;a<n.length-1;++a){var i=n[a];typeof i!="string"&&typeof i!="number"&&(i=String(i)),!(i==="__proto__"||i==="constructor"||i==="prototype")&&(i==="-"&&Array.isArray(e)&&(i=e.length),o=n[a+1],i in e||(o.match(/^(\d+|-)$/)?e[i]=[]:e[i]={}),e=e[i])}return o==="-"&&Array.isArray(e)&&(o=e.length),e[o]=r,this},Tt.remove=function(e,t){var r=Array.isArray(t)?t:Tt.parse(t),n=r[r.length-1];if(n===void 0)throw new Error('Invalid JSON pointer for remove: "'+t+'"');var o=Tt.get(e,r.slice(0,-1));if(Array.isArray(o)){var a=+n;if(n===""&&isNaN(a))throw new Error('Invalid array index: "'+n+'"');Array.prototype.splice.call(o,a,1)}else delete o[n]},Tt.dict=function(e,t){var r={};return Tt.walk(e,function(n,o){r[o]=n},t),r},Tt.walk=function(e,t,r){var n=[];r=r||function(o){var a=Object.prototype.toString.call(o);return a==="[object Object]"||a==="[object Array]"},function o(a){yx(a,function(i,s){n.push(String(s)),r(i)?o(i):t(i,Tt.compile(n)),n.pop()})}(e)},Tt.has=function(e,t){try{Tt.get(e,t)}catch{return!1}return!0},Tt.escape=function(e){return e.toString().replace(/~/g,"~0").replace(/\//g,"~1")},Tt.unescape=function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")},Tt.parse=function(e){if(e==="")return[];if(e.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+e);return e.substring(1).split(/\//).map(Tt.unescape)},Tt.compile=function(e){return e.length===0?"":"/"+e.map(Tt.escape).join("/")};const ql=Dg(gx);for(var nr=[],Pd=0;Pd<256;++Pd)nr.push((Pd+256).toString(16).slice(1));function vx(e,t=0){return(nr[e[t+0]]+nr[e[t+1]]+nr[e[t+2]]+nr[e[t+3]]+"-"+nr[e[t+4]]+nr[e[t+5]]+"-"+nr[e[t+6]]+nr[e[t+7]]+"-"+nr[e[t+8]]+nr[e[t+9]]+"-"+nr[e[t+10]]+nr[e[t+11]]+nr[e[t+12]]+nr[e[t+13]]+nr[e[t+14]]+nr[e[t+15]]).toLowerCase()}var Wl,bx=new Uint8Array(16);function wx(){if(!Wl&&(Wl=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Wl))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Wl(bx)}var _x=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const yv={randomUUID:_x};function Sx(e,t,r){if(yv.randomUUID&&!t&&!e)return yv.randomUUID();e=e||{};var n=e.random||(e.rng||wx)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,vx(n)}function xd(){let e;try{e=crypto.randomUUID()}catch{e=Sx()}return e}const Xi="vjf_array-item_";function Hl(e){return typeof e!="string"?!1:e.match(new RegExp(`^${Xi}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$`))!==null}function gv(e){return e.map(t=>({...t,uuid:xd()}))}const $x="2.0";function vv(e,t={}){const r={version:$x,layout:{type:t.layoutType??"VerticalLayout",options:{label:"groupLabel"in t?t.groupLabel:void 0},elements:[]}};for(const n in e.properties){const o={type:"Control",scope:`${t.scopeBase??""}/properties/${n}`};r.layout.elements.push(o)}return r}function Vr(){const e=Jt(wv),t=Jt(_v),r=Jt(Sv);return{layoutElement:e,jsonElement:t,savePath:r}}function Ex(e){return ne(()=>{if(!e)throw new Error("No layout found");let t=ql.parse(e.scope);return t.length<2?null:(t=t.slice(0,-2),ql.compile(t))})}function bv(e){return ne(()=>{const t=Ex(e);if(t.value===null)return!1;const r=jd(t.value+"/required",!0);return!r.value||!Array.isArray(r.value)?!1:r.value.includes((e==null?void 0:e.scope.split("/").pop())||"")})}function Ox(e){const t=e.toLowerCase().split("_");for(let r=0;r<t.length;r++)t[r]=t[r][0].toUpperCase()+t[r].slice(1);return t.join(" ")}function Td(e,t="items",r=""){return e.replace(new RegExp(`(?<=${r})\\.${Xi}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}`,"g"),"/"+t)}function jd(e,t=!1){return ne(()=>{let r=e;const{jsonSchema:n}=Zt(ho());if(!n.value)return null;r=r.replace(new RegExp(`\\.${Xi}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}`,"g"),"/items");let o=null;try{o=ql.get(n.value||{},r)}catch(a){return t||console.error("invalid json pointer",r,a),null}return o||(t||console.error("No data under scope "+e),null)})}function kd(e){const{jsonSchema:t}=Zt(ho()),r=Td(e);try{const n=ql.get(t.value||{},r);return(n==null?void 0:n.type)==="array"}catch(n){return console.error("invalid json pointer",r,n),!1}}function Ax(e){return e.reduce((t,r)=>{const n=!(typeof r=="string"&&Hl(r));return t||n},!1)}function Gl(e){const{jsonSchema:t}=Zt(ho()),r=jd(e.scope);return ne(()=>{var n;return t.value?(((n=r.value)==null?void 0:n.title)||Ox((e==null?void 0:e.scope.split("/").pop())||"")).concat(bv(e).value?"*":""):""})}const wv=Symbol(),_v=Symbol(),Px=Symbol(),Cd=Symbol(),Sv=Symbol(),Jl=Symbol();function xx(e){if(e)for(const[t,r]of Object.entries(e))Tx(t,r)}function Tx(e,t){const r=Jt(Jl,{});r[e]=t,fr(Jl,r)}function Nd(e){const t=Jt(Jl);if(!t)return e;const r=Td(e.scope),n=t[r];return n?{...e,options:{...e.options,...n.options},showOn:n.showOn||e.showOn}:e}function ln(e){return ne(()=>("vjf_control_for_"+e).replace(/\//g,"_"))}function Qi(e,...t){return ne(()=>{const r=" "+t.join(" ");return lx(e)?e.options.cssClass.toString()+r:r})}function jx(e,t,r){const n="!##!";if(r===void 0)return;const o=t.split("/").filter(a=>a!=="").filter((a,i)=>!(i%2===0&&a==="properties")).join(".").replace(/\[(\w+)]/g,`.${n}$1`).split(".");for(let a=0;a<o.length;a++){let i=o[a];const s=parseInt(i.replace(n,""));Number.isInteger(s)&&(i=s),a===o.length-1?e[i]=r:(Number.isInteger(parseInt(o[a+1].replace(n,"")))?e[i]=e[i]||[]:e[i]=e[i]||{},e=e[i])}}function kx(e){const t={};for(const[r,n]of Object.entries(e))jx(t,r,n);return t}function Cx(e){const t=new Map,r=new Set;for(const[n,o]of Object.entries(e))kd(n)&&(r.add(n),Array.isArray(o)&&o.forEach((a,i)=>{Hl(a)&&t.set(a,i)}));return t}function Nx(e){const t={},r=new Map,n=new Set;for(const[a,i]of Object.entries(e))kd(a)&&(n.add(a),Array.isArray(i)&&(i.forEach((s,l)=>{Hl(s)&&r.set(s,l)}),!i.filter(s=>Hl(s)).length&&i.length>0&&(t[a]=[...i])));for(const[a,i]of Object.entries(e))if(!kd(a)){let s=a;for(const[l,u]of r.entries())s=s.replace(`.${l}`,`[${u}]`);t[s]=i}const o=kx(t);return{scopes:t,json:o}}function $v(e,t={},r="/properties"){for(const[n,o]of Object.entries(e)){const a=`${r}/${n}`;Array.isArray(o)?t[a]=o:typeof o=="object"&&o!==null?$v(o,t,`${a}/properties`):t[a]=o}return t}function Ix(e){return new Promise(t=>{const r=new FileReader;r.onload=()=>{t(r.result)},r.readAsDataURL(e)})}async function Id(e){if(e instanceof File)return{metadata:e,data:await Ix(e)};if(cl(e))return await Id(Ke(e));if(typeof e=="object"||Array.isArray(e))for(const[t,r]of Object.entries(e))e[t]=await Id(r);return e}const Xr=lv("formData",{state:()=>({formData:{},defaultFormData:{}}),getters:{arrayAliasIndices:e=>Cx(e.formData),cleanedFormData:e=>Nx(e.formData)}}),Rx={key:1},Ev=Re({__name:"Control",props:{layoutElement:{},inArrayItem:{type:Boolean}},setup(e){var t,r;const{jsonSchema:n,mappers:o,arrays:a}=Zt(ho()),i=Qt("FormFieldWrapper"),s=Qt("ErrorViewer"),l=e,u=jd(l.layoutElement.scope),{formData:c,defaultFormData:d}=Zt(Xr()),v=ot(!1);xx((t=l.layoutElement.options)==null?void 0:t.descendantControlOverrides);const g=ne(()=>{let j=u.value,C=l.layoutElement;for(const Z of o.value){const V=Z(j||{},C);V?(j=V.jsonElement,C=V.uiElement):console.warn("Mapper failed",Z)}return C=Nd(C),{jsonElement:j,uiElement:C}}),b=bv(g.value.uiElement);let E=(r=g.value.uiElement.options)!=null&&r.hidden?"hiddenControl":"";const y=ne(()=>{if(l.layoutElement.options&&"textAlign"in l.layoutElement.options&&l.layoutElement.options.textAlign)return`text-align: ${l.layoutElement.options.textAlign}`}),m=Qi(g.value.uiElement,"vjf_control mb-3",E),p=Jt(Cd,void 0)||g.value.uiElement.scope;fr(wv,g.value.uiElement),fr(_v,g.value.jsonElement||{}),fr(Sv,p),fr(Cd,void 0);const _=ln(p),T=Gl(g.value.uiElement),O=ne(()=>{var j,C,Z,V,U,W,ee;if(((j=g.value.jsonElement)==null?void 0:j.enum)!==void 0&&g.value.jsonElement.type!=="array")return Mr(g.value.uiElement,"displayAs")==="radiobuttons"||Mr(g.value.uiElement,"displayAs")==="buttons"?Qt("RadiobuttonControl"):Qt("SelectControl");if(typeof((C=g.value.jsonElement)==null?void 0:C.items)=="object"&&"enum"in g.value.jsonElement.items&&g.value.jsonElement.type==="array")return Qt("CheckboxGroupControl");if(((Z=g.value.jsonElement)==null?void 0:Z.type)==="array"&&zl(g.value.uiElement.options)&&(U=(V=g.value.uiElement.options)==null?void 0:V.tags)!=null&&U.enabled)return Qt("TagsControl");if(((W=g.value.jsonElement)==null?void 0:W.type)==="string"&&g.value.jsonElement.format==="uri")return Qt("FileControl");switch((ee=g.value.jsonElement)==null?void 0:ee.type){case"boolean":return Qt("CheckboxControl");case"number":case"integer":return Qt("NumberControl");case"object":return Qt("ObjectControl");case"string":return Qt("StringControl");case"array":return Qt("ArrayControl");default:return Qt("DefaultControl")}});return $r(u,()=>{u.value===void 0&&(v.value=l.layoutElement.scope)}),$a(()=>{c.value[p]=d.value[p]??c.value[p]}),wl(()=>{c.value[p]=void 0}),(j,C)=>v.value?(ie(),Be("div",Rx,[Ze(P(s),{header:"Error"},{default:Ce(()=>[it(" Invalid Json Pointer: "+Ve(v.value),1)]),_:1})])):(ie(),Be("div",{key:0,class:nt(P(m))},[(ie(),xe(_t(P(i)),{label:P(T),"label-for":P(_)},KO({default:Ce(()=>{var Z,V;return[(ie(),xe(_t(O.value),{name:g.value.uiElement.scope,disabled:(Z=g.value.uiElement.options)==null?void 0:Z.disabled,placeholder:(V=g.value.uiElement.options)==null?void 0:V.placeholder,autocomplete:P(Mr)(g.value.uiElement,"autocomplete","on"),required:P(b),style:ya(y.value)},null,8,["name","disabled","placeholder","autocomplete","required","style"]))]}),_:2},[j.$slots.prepend?{name:"prepend",fn:Ce(()=>[Ie(j.$slots,"prepend")]),key:"0"}:void 0,j.$slots.append?{name:"append",fn:Ce(()=>[Ie(j.$slots,"append")]),key:"1"}:void 0]),1032,["label","label-for"]))],2))}}),Ia=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},Bx={};function Dx(e,t){return ie(),Be("hr")}const Fx=Ia(Bx,[["render",Dx]]),Ov=Re({__name:"VerticalLayout",props:{layoutElement:{}},setup(e){const t=e,r=Qi(t.layoutElement,"vjf_verticalLayout"),n=ne(()=>cv(t.layoutElement)?gv(t.layoutElement.elements):[]);return(o,a)=>(ie(),Be("div",{class:nt(P(r))},[(ie(!0),Be(ht,null,Br(n.value,i=>(ie(),xe(Xu,{"layout-element":i,key:i.uuid},null,8,["layout-element"]))),128))],2))}}),Mx={key:0},Vx=Re({__name:"Group",props:{layoutElement:{}},setup(e){const t=Qi(e.layoutElement,"vjf_group");return(r,n)=>{var o,a;return ie(),Be("fieldset",{class:nt(P(t))},[(o=r.layoutElement.options)!=null&&o.label?(ie(),Be("legend",Mx,Ve((a=r.layoutElement.options)==null?void 0:a.label),1)):ut("",!0),Ze(Ov,{class:"vjf_fieldset-content","layout-element":{...r.layoutElement,type:"VerticalLayout"}},null,8,["layout-element"])],2)}}}),Ux=Re({__name:"HorizontalLayout",props:{layoutElement:{}},setup(e){const t=e,r=Qi(t.layoutElement,"vjf_horizontalLayout"),n=ne(()=>cv(t.layoutElement)?gv(t.layoutElement.elements):[]);return(o,a)=>(ie(),Be("div",{class:nt(P(r))},[(ie(!0),Be(ht,null,Br(n.value,i=>(ie(),xe(Xu,{"layout-element":i,key:i.uuid},null,8,["layout-element"]))),128))],2))}}),Lx=["innerHTML"],zx=Re({__name:"htmlRenderer",props:{layoutElement:{}},setup(e){return(t,r)=>(ie(),Be("span",{innerHTML:t.layoutElement.htmlData,class:"vjf_htmlRenderer"},null,8,Lx))}}),Ra={Control:Ev,Divider:Fx,Group:Vx,HorizontalLayout:Ux,VerticalLayout:Ov,htmlRenderer:zx},qx={};function Wx(e,t){return"Unknown Component"}const Hx=Ia(qx,[["render",Wx]]),Gx=Re({__name:"ButtonGroup",props:{layoutElement:{}},setup(e){const t=Qt("Buttongroup");return(r,n)=>(ie(),xe(_t(P(t)),{layoutElement:r.layoutElement},null,8,["layoutElement"]))}});function Jx(e){return Cf()?(Tm(e),!0):!1}function Kx(e,t){if(typeof Symbol<"u"){const r={...e};return Object.defineProperty(r,Symbol.iterator,{enumerable:!1,value(){let n=0;return{next:()=>({value:t[n++],done:n>t.length})}}}),r}else return Object.assign([...t],e)}const Zx=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Yx=Object.prototype.toString,Xx=e=>Yx.call(e)==="[object Object]",es=()=>{};function Qx(...e){if(e.length!==1)return at(...e);const t=e[0];return typeof t=="function"?Wr(Zm(()=>({get:t,set:es}))):ot(t)}function Rd(e,t){function r(...n){return new Promise((o,a)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(o).catch(a)})}return r}const Av=e=>e();function eT(e,t={}){let r,n,o=es;const a=s=>{clearTimeout(s),o(),o=es};let i;return s=>{const l=Ut(e),u=Ut(t.maxWait);return r&&a(r),l<=0||u!==void 0&&u<=0?(n&&(a(n),n=null),Promise.resolve(s())):new Promise((c,d)=>{o=t.rejectOnCancel?d:c,i=s,u&&!n&&(n=setTimeout(()=>{r&&a(r),n=null,c(i())},u)),r=setTimeout(()=>{n&&a(n),n=null,c(s())},l)})}}function tT(...e){let t=0,r,n=!0,o=es,a,i,s,l,u;!kt(e[0])&&typeof e[0]=="object"?{delay:i,trailing:s=!0,leading:l=!0,rejectOnCancel:u=!1}=e[0]:[i,s=!0,l=!0,u=!1]=e;const c=()=>{r&&(clearTimeout(r),r=void 0,o(),o=es)};return d=>{const v=Ut(i),g=Date.now()-t,b=()=>a=d();return c(),v<=0?(t=Date.now(),b()):(g>v&&(l||!n)?(t=Date.now(),b()):s&&(a=new Promise((E,y)=>{o=u?y:E,r=setTimeout(()=>{t=Date.now(),n=!0,E(b()),c()},Math.max(0,v-g))})),!l&&!r&&(r=setTimeout(()=>n=!0,v)),n=!1,a)}}function rT(e=Av,t={}){const{initialState:r="active"}=t,n=Qx(r==="active");function o(){n.value=!1}function a(){n.value=!0}const i=(...s)=>{n.value&&e(...s)};return{isActive:Wr(n),pause:o,resume:a,eventFilter:i}}function Bd(e){return Array.isArray(e)?e:[e]}function nT(e){const t=Object.create(null);return r=>t[r]||(t[r]=e(r))}const oT=/-(\w)/g,aT=nT(e=>e.replace(oT,(t,r)=>r?r.toUpperCase():""));function iT(e,t=200,r={}){return Rd(eT(t,r),e)}function Pv(e,t=200,r=!1,n=!0,o=!1){return Rd(tT(t,r,n,o),e)}function sT(e,t,r={}){const{eventFilter:n=Av,...o}=r;return $r(e,Rd(n,t),o)}function xv(e,t,r={}){const{eventFilter:n,initialState:o="active",...a}=r,{eventFilter:i,pause:s,resume:l,isActive:u}=rT(n,{initialState:o});return{stop:sT(e,t,{...a,eventFilter:i}),pause:s,resume:l,isActive:u}}function lT(e,t,...[r]){const{flush:n="sync",deep:o=!1,immediate:a=!0,direction:i="both",transform:s={}}=r||{},l=[],u="ltr"in s&&s.ltr||(d=>d),c="rtl"in s&&s.rtl||(d=>d);return(i==="both"||i==="ltr")&&l.push(xv(e,d=>{l.forEach(v=>v.pause()),t.value=u(d),l.forEach(v=>v.resume())},{flush:n,deep:o,immediate:a})),(i==="both"||i==="rtl")&&l.push(xv(t,d=>{l.forEach(v=>v.pause()),e.value=c(d),l.forEach(v=>v.resume())},{flush:n,deep:o,immediate:a})),()=>{l.forEach(d=>d.stop())}}function mo(e,t={}){const{method:r="parseFloat",radix:n,nanToZero:o}=t;return ne(()=>{let a=Ut(e);return typeof r=="function"?a=r(a):typeof a=="string"&&(a=Number[r](a,n)),o&&Number.isNaN(a)&&(a=0),a})}function uT(e,t,r){return $r(e,t,{...r,immediate:!0})}const Tv=Re({name:"ConditionalWrapper",inheritAttrs:!1,slots:Object,props:{tag:{type:String,default:"div"},skip:{type:Boolean,required:!0}},setup(e,{slots:t,attrs:r}){return()=>{var n,o;return e.skip?(n=t.default)==null?void 0:n.call(t,{}):jl(e.tag,{...r},[(o=t.default)==null?void 0:o.call(t,{})])}}});Object.freeze(Object.keys({bordered:0,borderless:0,borderVariant:0,captionTop:0,dark:0,fixed:0,hover:0,id:0,noBorderCollapse:0,outlined:0,responsive:0,small:0,stacked:0,stickyHeader:0,striped:0,stripedColumns:0,variant:0,tableAttrs:0,tableClass:0})),Object.freeze(Object.keys({align:0,caption:0,detailsTdClass:0,fieldColumnClass:0,fields:0,footClone:0,footRowVariant:0,footVariant:0,headRowVariant:0,headVariant:0,items:0,labelStacked:0,modelValue:0,primaryKey:0,tbodyClass:0,tbodyTrAttrs:0,tbodyTrClass:0,tfootClass:0,tfootTrClass:0,theadClass:0,theadTrClass:0}));const jv={BAccordion:"/components/BAccordion",BAccordionItem:"/components/BAccordion",BAlert:"/components/BAlert",BAvatar:"/components/BAvatar",BAvatarGroup:"/components/BAvatar",BBadge:"/components/BBadge",BBreadcrumb:"/components/BBreadcrumb",BBreadcrumbItem:"/components/BBreadcrumb",BButton:"/components/BButton",BButtonGroup:"/components/BButton",BButtonToolbar:"/components/BButton",BCloseButton:"/components/BButton",BCard:"/components/BCard",BCardBody:"/components/BCard",BCardFooter:"/components/BCard",BCardGroup:"/components/BCard",BCardHeader:"/components/BCard",BCardImg:"/components/BCard",BCardSubtitle:"/components/BCard",BCardText:"/components/BCard",BCardTitle:"/components/BCard",BCarousel:"/components/BCarousel",BCarouselSlide:"/components/BCarousel",BCol:"/components/BContainer",BCollapse:"/components/BCollapse",BContainer:"/components/BContainer",BDropdown:"/components/BDropdown",BDropdownDivider:"/components/BDropdown",BDropdownForm:"/components/BDropdown",BDropdownGroup:"/components/BDropdown",BDropdownHeader:"/components/BDropdown",BDropdownItem:"/components/BDropdown",BDropdownItemButton:"/components/BDropdown",BDropdownText:"/components/BDropdown",BForm:"/components/BForm",BFormCheckbox:"/components/BFormCheckbox",BFormCheckboxGroup:"/components/BFormCheckbox",BFormDatalist:"/components/BForm",BFormFile:"/components/BFormFile",BFormFloatingLabel:"/components/BForm",BFormGroup:"/components/BFormGroup",BFormInput:"/components/BFormInput",BFormInvalidFeedback:"/components/BForm",BFormRadio:"/components/BFormRadio",BFormRadioGroup:"/components/BFormRadio",BFormRow:"/components/BForm",BFormSelect:"/components/BFormSelect",BFormSelectOption:"/components/BFormSelect",BFormSelectOptionGroup:"/components/BFormSelect",BFormSpinbutton:"/components/BFormSpinbutton",BFormTag:"/components/BFormTags",BFormTags:"/components/BFormTags",BFormText:"/components/BForm",BFormTextarea:"/components/BFormTextarea",BFormValidFeedback:"/components/BForm",BImg:"/components/BImg",BInput:"/components/BFormInput",BInputGroup:"/components/BInputGroup",BInputGroupText:"/components/BInputGroup",BListGroup:"/components/BListGroup",BListGroupItem:"/components/BListGroup",BModal:"/components/BModal",BModalOrchestrator:"/components/BModal",BNav:"/components/BNav",BNavForm:"/components/BNav",BNavItem:"/components/BNav",BNavItemDropdown:"/components/BNav",BNavText:"/components/BNav",BNavbar:"/components/BNavbar",BNavbarBrand:"/components/BNavbar",BNavbarNav:"/components/BNavbar",BNavbarToggle:"/components/BNavbar",BOffcanvas:"/components/BOffcanvas",BOverlay:"/components/BOverlay",BPagination:"/components/BPagination",BPlaceholder:"/components/BPlaceholder",BPlaceholderButton:"/components/BPlaceholder",BPlaceholderCard:"/components/BPlaceholder",BPlaceholderTable:"/components/BPlaceholder",BPlaceholderWrapper:"/components/BPlaceholder",BPopover:"/components/BPopover",BProgress:"/components/BProgress",BRow:"/components/BContainer",BSpinner:"/components/BSpinner",BTab:"/components/BTabs",BTabs:"/components/BTabs",BToast:"/components/BToast",BToastOrchestrator:"/components/BToast",BTooltip:"/components/BTooltip",BLink:"/components/BLink",BProgressBar:"/components/BProgress",BTableSimple:"/components/BTable",BTableLite:"/components/BTable",BTable:"/components/BTable",BTbody:"/components/BTable",BTd:"/components/BTable",BTh:"/components/BTable",BThead:"/components/BTable",BTfoot:"/components/BTable",BTr:"/components/BTable",BPopoverOrchestrator:"/components/BPopover"},cT=Object.freeze(Object.keys(jv)),kv={vBColorMode:"/directives/BColorMode",vBModal:"/directives/BModal",vBPopover:"/directives/BPopover",vBScrollspy:"/directives/BScrollspy",vBToggle:"/directives/BToggle",vBTooltip:"/directives/BTooltip"},fT=Object.freeze(Object.keys(kv));Object.freeze(Object.keys({useBreadcrumb:"/composables/useBreadcrumb",useColorMode:"/composables/useColorMode",useModal:"/composables/useModal",useModalController:"/composables/useModalController",useScrollspy:"/composables/useScrollspy",useToastController:"/composables/useToastController",usePopoverController:"/composables/usePopoverController"}));const Cv="bootstrap-vue-next",Nv=(e,t)=>{const{all:r,...n}=e,o={};r&&t.forEach(i=>{o[i]=r});const a={...o,...n};return Object.entries(a).filter(([i,s])=>!!s&&t.includes(i)).map(([i])=>i)},Dd=new Set,Iv=new Set;Object.assign(({aliases:e={},directives:t=!0,components:r=!0}={})=>{const n=Nv(typeof r=="boolean"?{all:r}:r,cT).reduce((a,i)=>(a.set(i,`${Cv}${jv[i]}`),a),new Map),o=Nv(typeof t=="boolean"?{all:t}:t,fT).reduce((a,i)=>{const s=i.toLowerCase().startsWith("v")?i:`v${i}`;return a.set(s,`${Cv}${kv[s]}`),a},new Map);return[{type:"component",resolve(a){const i=n.get(a),s=n.get(e[a]);if(s){const l=e[a];return Dd.add(l),{name:l,from:s}}if(i)return Dd.add(a),{name:a,from:i}}},{type:"directive",resolve(a){const i=`v${a}`,s=o.get(i);if(s)return Iv.add(i),{name:i,from:s}}}]},{__usedComponents:Dd,__usedDirectives:Iv});const Rv=Re({__name:"VJFButton",props:{layoutElement:{}},setup(e){const t=e,r=xd(),{buttonWaiting:n}=Zt(ho());n.value[r]=!1;const o=Qt("Button"),a=ne(()=>{var i;const s=JSON.stringify({...(i=t.layoutElement.options)==null?void 0:i.submitOptions,id:r});return encodeURIComponent(s)});return(i,s)=>{var l;return ie(),xe(_t(P(o)),{layoutElement:i.layoutElement,submitOptions:a.value,formnovalidate:(l=i.layoutElement.options)!=null&&l.formnovalidate?"formnovalidate":void 0,waiting:P(n)[P(r)]},null,8,["layoutElement","submitOptions","formnovalidate","waiting"])}}}),Bv={vjfButtonGroup:Gx,vjfButton:Rv};var Dv={exports:{}},Fd=function(e,t){return Fd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Fd(e,t)};function Fv(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Fd(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Kl=function(){return Kl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Kl.apply(this,arguments)};function Mv(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Vv(e,t,r,n){var o=arguments.length,a=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function Uv(e,t){return function(r,n){t(r,n,e)}}function Lv(e,t,r,n,o,a){function i(m){if(m!==void 0&&typeof m!="function")throw new TypeError("Function expected");return m}for(var s=n.kind,l=s==="getter"?"get":s==="setter"?"set":"value",u=!t&&e?n.static?e:e.prototype:null,c=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),d,v=!1,g=r.length-1;g>=0;g--){var b={};for(var E in n)b[E]=E==="access"?{}:n[E];for(var E in n.access)b.access[E]=n.access[E];b.addInitializer=function(m){if(v)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(m||null))};var y=(0,r[g])(s==="accessor"?{get:c.get,set:c.set}:c[l],b);if(s==="accessor"){if(y===void 0)continue;if(y===null||typeof y!="object")throw new TypeError("Object expected");(d=i(y.get))&&(c.get=d),(d=i(y.set))&&(c.set=d),(d=i(y.init))&&o.unshift(d)}else(d=i(y))&&(s==="field"?o.unshift(d):c[l]=d)}u&&Object.defineProperty(u,n.name,c),v=!0}function zv(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function qv(e){return typeof e=="symbol"?e:"".concat(e)}function Wv(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function Hv(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Gv(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(c){try{u(n.next(c))}catch(d){i(d)}}function l(c){try{u(n.throw(c))}catch(d){i(d)}}function u(c){c.done?a(c.value):o(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})}function Jv(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(r=0)),r;)try{if(n=1,o&&(a=u[0]&2?o.return:u[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,u[1])).done)return a;switch(o=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,o=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1],a=u;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(u);break}a[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(c){u=[6,c],o=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var Zl=Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]};function Kv(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Zl(t,e,r)}function Yl(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Md(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,a=[],i;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)a.push(o.value)}catch(s){i={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return a}function Zv(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Md(arguments[t]));return e}function Yv(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)n[o]=a[i];return n}function Xv(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}function Ba(e){return this instanceof Ba?(this.v=e,this):new Ba(e)}function Qv(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,a=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",i),o[Symbol.asyncIterator]=function(){return this},o;function i(g){return function(b){return Promise.resolve(b).then(g,d)}}function s(g,b){n[g]&&(o[g]=function(E){return new Promise(function(y,m){a.push([g,E,y,m])>1||l(g,E)})},b&&(o[g]=b(o[g])))}function l(g,b){try{u(n[g](b))}catch(E){v(a[0][3],E)}}function u(g){g.value instanceof Ba?Promise.resolve(g.value.v).then(c,d):v(a[0][2],g)}function c(g){l("next",g)}function d(g){l("throw",g)}function v(g,b){g(b),a.shift(),a.length&&l(a[0][0],a[0][1])}}function e0(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,a){t[o]=e[o]?function(i){return(r=!r)?{value:Ba(e[o](i)),done:!1}:a?a(i):i}:a}}function t0(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Yl=="function"?Yl(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=e[a]&&function(i){return new Promise(function(s,l){i=e[a](i),o(s,l,i.done,i.value)})}}function o(a,i,s,l){Promise.resolve(l).then(function(u){a({value:u,done:s})},i)}}function r0(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var dT=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},Vd=function(e){return Vd=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},Vd(e)};function n0(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=Vd(e),n=0;n<r.length;n++)r[n]!=="default"&&Zl(t,e,r[n]);return dT(t,e),t}function o0(e){return e&&e.__esModule?e:{default:e}}function a0(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function i0(e,t,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(e,r):o?o.value=r:t.set(e,r),r}function s0(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function l0(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(a){return Promise.reject(a)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var pT=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function u0(e){function t(a){e.error=e.hasError?new pT(a,e.error,"An error was suppressed during disposal."):a,e.hasError=!0}var r,n=0;function o(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var a=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(a).then(o,function(i){return t(i),o()})}else n|=1}catch(i){t(i)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return o()}function c0(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,o,a,i){return n?t?".jsx":".js":o&&(!a||!i)?r:o+a+"."+i.toLowerCase()+"js"}):e}const hT={__extends:Fv,__assign:Kl,__rest:Mv,__decorate:Vv,__param:Uv,__esDecorate:Lv,__runInitializers:zv,__propKey:qv,__setFunctionName:Wv,__metadata:Hv,__awaiter:Gv,__generator:Jv,__createBinding:Zl,__exportStar:Kv,__values:Yl,__read:Md,__spread:Zv,__spreadArrays:Yv,__spreadArray:Xv,__await:Ba,__asyncGenerator:Qv,__asyncDelegator:e0,__asyncValues:t0,__makeTemplateObject:r0,__importStar:n0,__importDefault:o0,__classPrivateFieldGet:a0,__classPrivateFieldSet:i0,__classPrivateFieldIn:s0,__addDisposableResource:l0,__disposeResources:u0,__rewriteRelativeImportExtension:c0},mT=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:l0,get __assign(){return Kl},__asyncDelegator:e0,__asyncGenerator:Qv,__asyncValues:t0,__await:Ba,__awaiter:Gv,__classPrivateFieldGet:a0,__classPrivateFieldIn:s0,__classPrivateFieldSet:i0,__createBinding:Zl,__decorate:Vv,__disposeResources:u0,__esDecorate:Lv,__exportStar:Kv,__extends:Fv,__generator:Jv,__importDefault:o0,__importStar:n0,__makeTemplateObject:r0,__metadata:Hv,__param:Uv,__propKey:qv,__read:Md,__rest:Mv,__rewriteRelativeImportExtension:c0,__runInitializers:zv,__setFunctionName:Wv,__spread:Zv,__spreadArray:Xv,__spreadArrays:Yv,__values:Yl,default:hT},Symbol.toStringTag,{value:"Module"})),yT=hd(mT);var jr={},f0;function gT(){if(f0)return jr;f0=1,Object.defineProperty(jr,"__esModule",{value:!0});class e extends Error{}class t extends e{constructor(f){super(`Invalid DateTime: ${f.toMessage()}`)}}class r extends e{constructor(f){super(`Invalid Interval: ${f.toMessage()}`)}}class n extends e{constructor(f){super(`Invalid Duration: ${f.toMessage()}`)}}class o extends e{}class a extends e{constructor(f){super(`Invalid unit ${f}`)}}class i extends e{}class s extends e{constructor(){super("Zone is an abstract class")}}const l="numeric",u="short",c="long",d={year:l,month:l,day:l},v={year:l,month:u,day:l},g={year:l,month:u,day:l,weekday:u},b={year:l,month:c,day:l},E={year:l,month:c,day:l,weekday:c},y={hour:l,minute:l},m={hour:l,minute:l,second:l},p={hour:l,minute:l,second:l,timeZoneName:u},_={hour:l,minute:l,second:l,timeZoneName:c},T={hour:l,minute:l,hourCycle:"h23"},O={hour:l,minute:l,second:l,hourCycle:"h23"},j={hour:l,minute:l,second:l,hourCycle:"h23",timeZoneName:u},C={hour:l,minute:l,second:l,hourCycle:"h23",timeZoneName:c},Z={year:l,month:l,day:l,hour:l,minute:l},V={year:l,month:l,day:l,hour:l,minute:l,second:l},U={year:l,month:u,day:l,hour:l,minute:l},W={year:l,month:u,day:l,hour:l,minute:l,second:l},ee={year:l,month:u,day:l,weekday:u,hour:l,minute:l},fe={year:l,month:c,day:l,hour:l,minute:l,timeZoneName:u},ve={year:l,month:c,day:l,hour:l,minute:l,second:l,timeZoneName:u},Ne={year:l,month:c,day:l,weekday:c,hour:l,minute:l,timeZoneName:c},Te={year:l,month:c,day:l,weekday:c,hour:l,minute:l,second:l,timeZoneName:c};class Oe{get type(){throw new s}get name(){throw new s}get ianaName(){return this.name}get isUniversal(){throw new s}offsetName(f,w){throw new s}formatOffset(f,w){throw new s}offset(f){throw new s}equals(f){throw new s}get isValid(){throw new s}}let be=null;class Ee extends Oe{static get instance(){return be===null&&(be=new Ee),be}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(f,{format:w,locale:A}){return eE(f,w,A)}formatOffset(f,w){return Us(this.offset(f),w)}offset(f){return-new Date(f).getTimezoneOffset()}equals(f){return f.type==="system"}get isValid(){return!0}}let ue={};function q(S){return ue[S]||(ue[S]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:S,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),ue[S]}const D={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function F(S,f){const w=S.format(f).replace(/\u200E/g,""),A=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(w),[,I,L,G,ae,me,Ae,qe]=A;return[G,I,L,ae,me,Ae,qe]}function k(S,f){const w=S.formatToParts(f),A=[];for(let I=0;I<w.length;I++){const{type:L,value:G}=w[I],ae=D[L];L==="era"?A[ae]=G:We(ae)||(A[ae]=parseInt(G,10))}return A}let B={};class J extends Oe{static create(f){return B[f]||(B[f]=new J(f)),B[f]}static resetCache(){B={},ue={}}static isValidSpecifier(f){return this.isValidZone(f)}static isValidZone(f){if(!f)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:f}).format(),!0}catch{return!1}}constructor(f){super(),this.zoneName=f,this.valid=J.isValidZone(f)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(f,{format:w,locale:A}){return eE(f,w,A,this.name)}formatOffset(f,w){return Us(this.offset(f),w)}offset(f){const w=new Date(f);if(isNaN(w))return NaN;const A=q(this.name);let[I,L,G,ae,me,Ae,qe]=A.formatToParts?k(A,w):F(A,w);ae==="BC"&&(I=-Math.abs(I)+1);const lt=hf({year:I,month:L,day:G,hour:me===24?0:me,minute:Ae,second:qe,millisecond:0});let Ft=+w;const Je=Ft%1e3;return Ft-=Je>=0?Je:1e3+Je,(lt-Ft)/(60*1e3)}equals(f){return f.type==="iana"&&f.name===this.name}get isValid(){return this.valid}}let de={};function se(S,f={}){const w=JSON.stringify([S,f]);let A=de[w];return A||(A=new Intl.ListFormat(S,f),de[w]=A),A}let Se={};function je(S,f={}){const w=JSON.stringify([S,f]);let A=Se[w];return A||(A=new Intl.DateTimeFormat(S,f),Se[w]=A),A}let Y={};function re(S,f={}){const w=JSON.stringify([S,f]);let A=Y[w];return A||(A=new Intl.NumberFormat(S,f),Y[w]=A),A}let N={};function M(S,f={}){const{base:w,...A}=f,I=JSON.stringify([S,A]);let L=N[I];return L||(L=new Intl.RelativeTimeFormat(S,f),N[I]=L),L}let X=null;function le(){return X||(X=new Intl.DateTimeFormat().resolvedOptions().locale,X)}let ye={};function ge(S){let f=ye[S];if(!f){const w=new Intl.Locale(S);f="getWeekInfo"in w?w.getWeekInfo():w.weekInfo,ye[S]=f}return f}function K(S){const f=S.indexOf("-x-");f!==-1&&(S=S.substring(0,f));const w=S.indexOf("-u-");if(w===-1)return[S];{let A,I;try{A=je(S).resolvedOptions(),I=S}catch{const ae=S.substring(0,w);A=je(ae).resolvedOptions(),I=ae}const{numberingSystem:L,calendar:G}=A;return[I,L,G]}}function $e(S,f,w){return(w||f)&&(S.includes("-u-")||(S+="-u"),w&&(S+=`-ca-${w}`),f&&(S+=`-nu-${f}`)),S}function te(S){const f=[];for(let w=1;w<=12;w++){const A=He.utc(2009,w,1);f.push(S(A))}return f}function R(S){const f=[];for(let w=1;w<=7;w++){const A=He.utc(2016,11,13+w);f.push(S(A))}return f}function H(S,f,w,A){const I=S.listingMode();return I==="error"?null:I==="en"?w(f):A(f)}function oe(S){return S.numberingSystem&&S.numberingSystem!=="latn"?!1:S.numberingSystem==="latn"||!S.locale||S.locale.startsWith("en")||new Intl.DateTimeFormat(S.intl).resolvedOptions().numberingSystem==="latn"}class he{constructor(f,w,A){this.padTo=A.padTo||0,this.floor=A.floor||!1;const{padTo:I,floor:L,...G}=A;if(!w||Object.keys(G).length>0){const ae={useGrouping:!1,...A};A.padTo>0&&(ae.minimumIntegerDigits=A.padTo),this.inf=re(f,ae)}}format(f){if(this.inf){const w=this.floor?Math.floor(f):f;return this.inf.format(w)}else{const w=this.floor?Math.floor(f):lm(f,3);return Ht(w,this.padTo)}}}class _e{constructor(f,w,A){this.opts=A,this.originalZone=void 0;let I;if(this.opts.timeZone)this.dt=f;else if(f.zone.type==="fixed"){const G=-1*(f.offset/60),ae=G>=0?`Etc/GMT+${G}`:`Etc/GMT${G}`;f.offset!==0&&J.create(ae).valid?(I=ae,this.dt=f):(I="UTC",this.dt=f.offset===0?f:f.setZone("UTC").plus({minutes:f.offset}),this.originalZone=f.zone)}else f.zone.type==="system"?this.dt=f:f.zone.type==="iana"?(this.dt=f,I=f.zone.name):(I="UTC",this.dt=f.setZone("UTC").plus({minutes:f.offset}),this.originalZone=f.zone);const L={...this.opts};L.timeZone=L.timeZone||I,this.dtf=je(w,L)}format(){return this.originalZone?this.formatToParts().map(({value:f})=>f).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const f=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?f.map(w=>{if(w.type==="timeZoneName"){const A=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...w,value:A}}else return w}):f}resolvedOptions(){return this.dtf.resolvedOptions()}}class h{constructor(f,w,A){this.opts={style:"long",...A},!w&&Z$()&&(this.rtf=M(f,A))}format(f,w){return this.rtf?this.rtf.format(f,w):U3(w,f,this.opts.numeric,this.opts.style!=="long")}formatToParts(f,w){return this.rtf?this.rtf.formatToParts(f,w):[]}}const $={firstDay:1,minimalDays:4,weekend:[6,7]};class x{static fromOpts(f){return x.create(f.locale,f.numberingSystem,f.outputCalendar,f.weekSettings,f.defaultToEN)}static create(f,w,A,I,L=!1){const G=f||Bt.defaultLocale,ae=G||(L?"en-US":le()),me=w||Bt.defaultNumberingSystem,Ae=A||Bt.defaultOutputCalendar,qe=im(I)||Bt.defaultWeekSettings;return new x(ae,me,Ae,qe,G)}static resetCache(){X=null,Se={},Y={},N={}}static fromObject({locale:f,numberingSystem:w,outputCalendar:A,weekSettings:I}={}){return x.create(f,w,A,I)}constructor(f,w,A,I,L){const[G,ae,me]=K(f);this.locale=G,this.numberingSystem=w||ae||null,this.outputCalendar=A||me||null,this.weekSettings=I,this.intl=$e(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=L,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=oe(this)),this.fastNumbersCached}listingMode(){const f=this.isEnglish(),w=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return f&&w?"en":"intl"}clone(f){return!f||Object.getOwnPropertyNames(f).length===0?this:x.create(f.locale||this.specifiedLocale,f.numberingSystem||this.numberingSystem,f.outputCalendar||this.outputCalendar,im(f.weekSettings)||this.weekSettings,f.defaultToEN||!1)}redefaultToEN(f={}){return this.clone({...f,defaultToEN:!0})}redefaultToSystem(f={}){return this.clone({...f,defaultToEN:!1})}months(f,w=!1){return H(this,f,nE,()=>{const A=w?{month:f,day:"numeric"}:{month:f},I=w?"format":"standalone";return this.monthsCache[I][f]||(this.monthsCache[I][f]=te(L=>this.extract(L,A,"month"))),this.monthsCache[I][f]})}weekdays(f,w=!1){return H(this,f,iE,()=>{const A=w?{weekday:f,year:"numeric",month:"long",day:"numeric"}:{weekday:f},I=w?"format":"standalone";return this.weekdaysCache[I][f]||(this.weekdaysCache[I][f]=R(L=>this.extract(L,A,"weekday"))),this.weekdaysCache[I][f]})}meridiems(){return H(this,void 0,()=>sE,()=>{if(!this.meridiemCache){const f={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[He.utc(2016,11,13,9),He.utc(2016,11,13,19)].map(w=>this.extract(w,f,"dayperiod"))}return this.meridiemCache})}eras(f){return H(this,f,lE,()=>{const w={era:f};return this.eraCache[f]||(this.eraCache[f]=[He.utc(-40,1,1),He.utc(2017,1,1)].map(A=>this.extract(A,w,"era"))),this.eraCache[f]})}extract(f,w,A){const I=this.dtFormatter(f,w),L=I.formatToParts(),G=L.find(ae=>ae.type.toLowerCase()===A);return G?G.value:null}numberFormatter(f={}){return new he(this.intl,f.forceSimple||this.fastNumbers,f)}dtFormatter(f,w={}){return new _e(f,this.intl,w)}relFormatter(f={}){return new h(this.intl,this.isEnglish(),f)}listFormatter(f={}){return se(this.intl,f)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Y$()?ge(this.locale):$}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(f){return this.locale===f.locale&&this.numberingSystem===f.numberingSystem&&this.outputCalendar===f.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let z=null;class Q extends Oe{static get utcInstance(){return z===null&&(z=new Q(0)),z}static instance(f){return f===0?Q.utcInstance:new Q(f)}static parseSpecifier(f){if(f){const w=f.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(w)return new Q(mf(w[1],w[2]))}return null}constructor(f){super(),this.fixed=f}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Us(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Us(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(f,w){return Us(this.fixed,w)}get isUniversal(){return!0}offset(){return this.fixed}equals(f){return f.type==="fixed"&&f.fixed===this.fixed}get isValid(){return!0}}class pe extends Oe{constructor(f){super(),this.zoneName=f}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function we(S,f){if(We(S)||S===null)return f;if(S instanceof Oe)return S;if(A3(S)){const w=S.toLowerCase();return w==="default"?f:w==="local"||w==="system"?Ee.instance:w==="utc"||w==="gmt"?Q.utcInstance:Q.parseSpecifier(w)||J.create(S)}else return xo(S)?Q.instance(S):typeof S=="object"&&"offset"in S&&typeof S.offset=="function"?S:new pe(S)}const pt={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Rt={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},et=pt.hanidec.replace(/[\[|\]]/g,"").split("");function rt(S){let f=parseInt(S,10);if(isNaN(f)){f="";for(let w=0;w<S.length;w++){const A=S.charCodeAt(w);if(S[w].search(pt.hanidec)!==-1)f+=et.indexOf(S[w]);else for(const I in Rt){const[L,G]=Rt[I];A>=L&&A<=G&&(f+=A-L)}}return parseInt(f,10)}else return f}let Ot={};function $3(){Ot={}}function mn({numberingSystem:S},f=""){const w=S||"latn";return Ot[w]||(Ot[w]={}),Ot[w][f]||(Ot[w][f]=new RegExp(`${pt[w]}${f}`)),Ot[w][f]}let N$=()=>Date.now(),I$="system",R$=null,B$=null,D$=null,F$=60,M$,V$=null;class Bt{static get now(){return N$}static set now(f){N$=f}static set defaultZone(f){I$=f}static get defaultZone(){return we(I$,Ee.instance)}static get defaultLocale(){return R$}static set defaultLocale(f){R$=f}static get defaultNumberingSystem(){return B$}static set defaultNumberingSystem(f){B$=f}static get defaultOutputCalendar(){return D$}static set defaultOutputCalendar(f){D$=f}static get defaultWeekSettings(){return V$}static set defaultWeekSettings(f){V$=im(f)}static get twoDigitCutoffYear(){return F$}static set twoDigitCutoffYear(f){F$=f%100}static get throwOnInvalid(){return M$}static set throwOnInvalid(f){M$=f}static resetCaches(){x.resetCache(),J.resetCache(),He.resetCache(),$3()}}class yn{constructor(f,w){this.reason=f,this.explanation=w}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const U$=[0,31,59,90,120,151,181,212,243,273,304,334],L$=[0,31,60,91,121,152,182,213,244,274,305,335];function en(S,f){return new yn("unit out of range",`you specified ${f} (of type ${typeof f}) as a ${S}, which is invalid`)}function nm(S,f,w){const A=new Date(Date.UTC(S,f-1,w));S<100&&S>=0&&A.setUTCFullYear(A.getUTCFullYear()-1900);const I=A.getUTCDay();return I===0?7:I}function z$(S,f,w){return w+(Ms(S)?L$:U$)[f-1]}function q$(S,f){const w=Ms(S)?L$:U$,A=w.findIndex(L=>L<f),I=f-w[A];return{month:A+1,day:I}}function om(S,f){return(S-f+7)%7+1}function ff(S,f=4,w=1){const{year:A,month:I,day:L}=S,G=z$(A,I,L),ae=om(nm(A,I,L),w);let me=Math.floor((G-ae+14-f)/7),Ae;return me<1?(Ae=A-1,me=Vs(Ae,f,w)):me>Vs(A,f,w)?(Ae=A+1,me=1):Ae=A,{weekYear:Ae,weekNumber:me,weekday:ae,...gf(S)}}function W$(S,f=4,w=1){const{weekYear:A,weekNumber:I,weekday:L}=S,G=om(nm(A,1,f),w),ae=wi(A);let me=I*7+L-G-7+f,Ae;me<1?(Ae=A-1,me+=wi(Ae)):me>ae?(Ae=A+1,me-=wi(A)):Ae=A;const{month:qe,day:lt}=q$(Ae,me);return{year:Ae,month:qe,day:lt,...gf(S)}}function am(S){const{year:f,month:w,day:A}=S,I=z$(f,w,A);return{year:f,ordinal:I,...gf(S)}}function H$(S){const{year:f,ordinal:w}=S,{month:A,day:I}=q$(f,w);return{year:f,month:A,day:I,...gf(S)}}function G$(S,f){if(!We(S.localWeekday)||!We(S.localWeekNumber)||!We(S.localWeekYear)){if(!We(S.weekday)||!We(S.weekNumber)||!We(S.weekYear))throw new o("Cannot mix locale-based week fields with ISO-based week fields");return We(S.localWeekday)||(S.weekday=S.localWeekday),We(S.localWeekNumber)||(S.weekNumber=S.localWeekNumber),We(S.localWeekYear)||(S.weekYear=S.localWeekYear),delete S.localWeekday,delete S.localWeekNumber,delete S.localWeekYear,{minDaysInFirstWeek:f.getMinDaysInFirstWeek(),startOfWeek:f.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function E3(S,f=4,w=1){const A=df(S.weekYear),I=tn(S.weekNumber,1,Vs(S.weekYear,f,w)),L=tn(S.weekday,1,7);return A?I?L?!1:en("weekday",S.weekday):en("week",S.weekNumber):en("weekYear",S.weekYear)}function O3(S){const f=df(S.year),w=tn(S.ordinal,1,wi(S.year));return f?w?!1:en("ordinal",S.ordinal):en("year",S.year)}function J$(S){const f=df(S.year),w=tn(S.month,1,12),A=tn(S.day,1,pf(S.year,S.month));return f?w?A?!1:en("day",S.day):en("month",S.month):en("year",S.year)}function K$(S){const{hour:f,minute:w,second:A,millisecond:I}=S,L=tn(f,0,23)||f===24&&w===0&&A===0&&I===0,G=tn(w,0,59),ae=tn(A,0,59),me=tn(I,0,999);return L?G?ae?me?!1:en("millisecond",I):en("second",A):en("minute",w):en("hour",f)}function We(S){return typeof S>"u"}function xo(S){return typeof S=="number"}function df(S){return typeof S=="number"&&S%1===0}function A3(S){return typeof S=="string"}function P3(S){return Object.prototype.toString.call(S)==="[object Date]"}function Z$(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Y$(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function x3(S){return Array.isArray(S)?S:[S]}function X$(S,f,w){if(S.length!==0)return S.reduce((A,I)=>{const L=[f(I),I];return A&&w(A[0],L[0])===A[0]?A:L},null)[1]}function T3(S,f){return f.reduce((w,A)=>(w[A]=S[A],w),{})}function bi(S,f){return Object.prototype.hasOwnProperty.call(S,f)}function im(S){if(S==null)return null;if(typeof S!="object")throw new i("Week settings must be an object");if(!tn(S.firstDay,1,7)||!tn(S.minimalDays,1,7)||!Array.isArray(S.weekend)||S.weekend.some(f=>!tn(f,1,7)))throw new i("Invalid week settings");return{firstDay:S.firstDay,minimalDays:S.minimalDays,weekend:Array.from(S.weekend)}}function tn(S,f,w){return df(S)&&S>=f&&S<=w}function j3(S,f){return S-f*Math.floor(S/f)}function Ht(S,f=2){const w=S<0;let A;return w?A="-"+(""+-S).padStart(f,"0"):A=(""+S).padStart(f,"0"),A}function To(S){if(!(We(S)||S===null||S===""))return parseInt(S,10)}function ua(S){if(!(We(S)||S===null||S===""))return parseFloat(S)}function sm(S){if(!(We(S)||S===null||S==="")){const f=parseFloat("0."+S)*1e3;return Math.floor(f)}}function lm(S,f,w=!1){const A=10**f;return(w?Math.trunc:Math.round)(S*A)/A}function Ms(S){return S%4===0&&(S%100!==0||S%400===0)}function wi(S){return Ms(S)?366:365}function pf(S,f){const w=j3(f-1,12)+1,A=S+(f-w)/12;return w===2?Ms(A)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][w-1]}function hf(S){let f=Date.UTC(S.year,S.month-1,S.day,S.hour,S.minute,S.second,S.millisecond);return S.year<100&&S.year>=0&&(f=new Date(f),f.setUTCFullYear(S.year,S.month-1,S.day)),+f}function Q$(S,f,w){return-om(nm(S,1,f),w)+f-1}function Vs(S,f=4,w=1){const A=Q$(S,f,w),I=Q$(S+1,f,w);return(wi(S)-A+I)/7}function um(S){return S>99?S:S>Bt.twoDigitCutoffYear?1900+S:2e3+S}function eE(S,f,w,A=null){const I=new Date(S),L={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};A&&(L.timeZone=A);const G={timeZoneName:f,...L},ae=new Intl.DateTimeFormat(w,G).formatToParts(I).find(me=>me.type.toLowerCase()==="timezonename");return ae?ae.value:null}function mf(S,f){let w=parseInt(S,10);Number.isNaN(w)&&(w=0);const A=parseInt(f,10)||0,I=w<0||Object.is(w,-0)?-A:A;return w*60+I}function tE(S){const f=Number(S);if(typeof S=="boolean"||S===""||Number.isNaN(f))throw new i(`Invalid unit value ${S}`);return f}function yf(S,f){const w={};for(const A in S)if(bi(S,A)){const I=S[A];if(I==null)continue;w[f(A)]=tE(I)}return w}function Us(S,f){const w=Math.trunc(Math.abs(S/60)),A=Math.trunc(Math.abs(S%60)),I=S>=0?"+":"-";switch(f){case"short":return`${I}${Ht(w,2)}:${Ht(A,2)}`;case"narrow":return`${I}${w}${A>0?`:${A}`:""}`;case"techie":return`${I}${Ht(w,2)}${Ht(A,2)}`;default:throw new RangeError(`Value format ${f} is out of range for property format`)}}function gf(S){return T3(S,["hour","minute","second","millisecond"])}const k3=["January","February","March","April","May","June","July","August","September","October","November","December"],rE=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],C3=["J","F","M","A","M","J","J","A","S","O","N","D"];function nE(S){switch(S){case"narrow":return[...C3];case"short":return[...rE];case"long":return[...k3];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const oE=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],aE=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],N3=["M","T","W","T","F","S","S"];function iE(S){switch(S){case"narrow":return[...N3];case"short":return[...aE];case"long":return[...oE];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const sE=["AM","PM"],I3=["Before Christ","Anno Domini"],R3=["BC","AD"],B3=["B","A"];function lE(S){switch(S){case"narrow":return[...B3];case"short":return[...R3];case"long":return[...I3];default:return null}}function D3(S){return sE[S.hour<12?0:1]}function F3(S,f){return iE(f)[S.weekday-1]}function M3(S,f){return nE(f)[S.month-1]}function V3(S,f){return lE(f)[S.year<0?0:1]}function U3(S,f,w="always",A=!1){const I={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},L=["hours","minutes","seconds"].indexOf(S)===-1;if(w==="auto"&&L){const lt=S==="days";switch(f){case 1:return lt?"tomorrow":`next ${I[S][0]}`;case-1:return lt?"yesterday":`last ${I[S][0]}`;case 0:return lt?"today":`this ${I[S][0]}`}}const G=Object.is(f,-0)||f<0,ae=Math.abs(f),me=ae===1,Ae=I[S],qe=A?me?Ae[1]:Ae[2]||Ae[1]:me?I[S][0]:S;return G?`${ae} ${qe} ago`:`in ${ae} ${qe}`}function uE(S,f){let w="";for(const A of S)A.literal?w+=A.val:w+=f(A.val);return w}const L3={D:d,DD:v,DDD:b,DDDD:E,t:y,tt:m,ttt:p,tttt:_,T,TT:O,TTT:j,TTTT:C,f:Z,ff:U,fff:fe,ffff:Ne,F:V,FF:W,FFF:ve,FFFF:Te};class gr{static create(f,w={}){return new gr(f,w)}static parseFormat(f){let w=null,A="",I=!1;const L=[];for(let G=0;G<f.length;G++){const ae=f.charAt(G);ae==="'"?(A.length>0&&L.push({literal:I||/^\s+$/.test(A),val:A}),w=null,A="",I=!I):I||ae===w?A+=ae:(A.length>0&&L.push({literal:/^\s+$/.test(A),val:A}),A=ae,w=ae)}return A.length>0&&L.push({literal:I||/^\s+$/.test(A),val:A}),L}static macroTokenToFormatOpts(f){return L3[f]}constructor(f,w){this.opts=w,this.loc=f,this.systemLoc=null}formatWithSystemDefault(f,w){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(f,{...this.opts,...w}).format()}dtFormatter(f,w={}){return this.loc.dtFormatter(f,{...this.opts,...w})}formatDateTime(f,w){return this.dtFormatter(f,w).format()}formatDateTimeParts(f,w){return this.dtFormatter(f,w).formatToParts()}formatInterval(f,w){return this.dtFormatter(f.start,w).dtf.formatRange(f.start.toJSDate(),f.end.toJSDate())}resolvedOptions(f,w){return this.dtFormatter(f,w).resolvedOptions()}num(f,w=0){if(this.opts.forceSimple)return Ht(f,w);const A={...this.opts};return w>0&&(A.padTo=w),this.loc.numberFormatter(A).format(f)}formatDateTimeFromString(f,w){const A=this.loc.listingMode()==="en",I=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",L=(Je,vr)=>this.loc.extract(f,Je,vr),G=Je=>f.isOffsetFixed&&f.offset===0&&Je.allowZ?"Z":f.isValid?f.zone.formatOffset(f.ts,Je.format):"",ae=()=>A?D3(f):L({hour:"numeric",hourCycle:"h12"},"dayperiod"),me=(Je,vr)=>A?M3(f,Je):L(vr?{month:Je}:{month:Je,day:"numeric"},"month"),Ae=(Je,vr)=>A?F3(f,Je):L(vr?{weekday:Je}:{weekday:Je,month:"long",day:"numeric"},"weekday"),qe=Je=>{const vr=gr.macroTokenToFormatOpts(Je);return vr?this.formatWithSystemDefault(f,vr):Je},lt=Je=>A?V3(f,Je):L({era:Je},"era"),Ft=Je=>{switch(Je){case"S":return this.num(f.millisecond);case"u":case"SSS":return this.num(f.millisecond,3);case"s":return this.num(f.second);case"ss":return this.num(f.second,2);case"uu":return this.num(Math.floor(f.millisecond/10),2);case"uuu":return this.num(Math.floor(f.millisecond/100));case"m":return this.num(f.minute);case"mm":return this.num(f.minute,2);case"h":return this.num(f.hour%12===0?12:f.hour%12);case"hh":return this.num(f.hour%12===0?12:f.hour%12,2);case"H":return this.num(f.hour);case"HH":return this.num(f.hour,2);case"Z":return G({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return G({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return G({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return f.zone.offsetName(f.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return f.zone.offsetName(f.ts,{format:"long",locale:this.loc.locale});case"z":return f.zoneName;case"a":return ae();case"d":return I?L({day:"numeric"},"day"):this.num(f.day);case"dd":return I?L({day:"2-digit"},"day"):this.num(f.day,2);case"c":return this.num(f.weekday);case"ccc":return Ae("short",!0);case"cccc":return Ae("long",!0);case"ccccc":return Ae("narrow",!0);case"E":return this.num(f.weekday);case"EEE":return Ae("short",!1);case"EEEE":return Ae("long",!1);case"EEEEE":return Ae("narrow",!1);case"L":return I?L({month:"numeric",day:"numeric"},"month"):this.num(f.month);case"LL":return I?L({month:"2-digit",day:"numeric"},"month"):this.num(f.month,2);case"LLL":return me("short",!0);case"LLLL":return me("long",!0);case"LLLLL":return me("narrow",!0);case"M":return I?L({month:"numeric"},"month"):this.num(f.month);case"MM":return I?L({month:"2-digit"},"month"):this.num(f.month,2);case"MMM":return me("short",!1);case"MMMM":return me("long",!1);case"MMMMM":return me("narrow",!1);case"y":return I?L({year:"numeric"},"year"):this.num(f.year);case"yy":return I?L({year:"2-digit"},"year"):this.num(f.year.toString().slice(-2),2);case"yyyy":return I?L({year:"numeric"},"year"):this.num(f.year,4);case"yyyyyy":return I?L({year:"numeric"},"year"):this.num(f.year,6);case"G":return lt("short");case"GG":return lt("long");case"GGGGG":return lt("narrow");case"kk":return this.num(f.weekYear.toString().slice(-2),2);case"kkkk":return this.num(f.weekYear,4);case"W":return this.num(f.weekNumber);case"WW":return this.num(f.weekNumber,2);case"n":return this.num(f.localWeekNumber);case"nn":return this.num(f.localWeekNumber,2);case"ii":return this.num(f.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(f.localWeekYear,4);case"o":return this.num(f.ordinal);case"ooo":return this.num(f.ordinal,3);case"q":return this.num(f.quarter);case"qq":return this.num(f.quarter,2);case"X":return this.num(Math.floor(f.ts/1e3));case"x":return this.num(f.ts);default:return qe(Je)}};return uE(gr.parseFormat(w),Ft)}formatDurationFromString(f,w){const A=me=>{switch(me[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},I=me=>Ae=>{const qe=A(Ae);return qe?this.num(me.get(qe),Ae.length):Ae},L=gr.parseFormat(w),G=L.reduce((me,{literal:Ae,val:qe})=>Ae?me:me.concat(qe),[]),ae=f.shiftTo(...G.map(A).filter(me=>me));return uE(L,I(ae))}}const cE=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function _i(...S){const f=S.reduce((w,A)=>w+A.source,"");return RegExp(`^${f}$`)}function Si(...S){return f=>S.reduce(([w,A,I],L)=>{const[G,ae,me]=L(f,I);return[{...w,...G},ae||A,me]},[{},null,1]).slice(0,2)}function $i(S,...f){if(S==null)return[null,null];for(const[w,A]of f){const I=w.exec(S);if(I)return A(I)}return[null,null]}function fE(...S){return(f,w)=>{const A={};let I;for(I=0;I<S.length;I++)A[S[I]]=To(f[w+I]);return[A,null,w+I]}}const dE=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,z3=`(?:${dE.source}?(?:\\[(${cE.source})\\])?)?`,cm=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,pE=RegExp(`${cm.source}${z3}`),fm=RegExp(`(?:T${pE.source})?`),q3=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,W3=/(\d{4})-?W(\d\d)(?:-?(\d))?/,H3=/(\d{4})-?(\d{3})/,G3=fE("weekYear","weekNumber","weekDay"),J3=fE("year","ordinal"),K3=/(\d{4})-(\d\d)-(\d\d)/,hE=RegExp(`${cm.source} ?(?:${dE.source}|(${cE.source}))?`),Z3=RegExp(`(?: ${hE.source})?`);function Ei(S,f,w){const A=S[f];return We(A)?w:To(A)}function Y3(S,f){return[{year:Ei(S,f),month:Ei(S,f+1,1),day:Ei(S,f+2,1)},null,f+3]}function Oi(S,f){return[{hours:Ei(S,f,0),minutes:Ei(S,f+1,0),seconds:Ei(S,f+2,0),milliseconds:sm(S[f+3])},null,f+4]}function Ls(S,f){const w=!S[f]&&!S[f+1],A=mf(S[f+1],S[f+2]),I=w?null:Q.instance(A);return[{},I,f+3]}function zs(S,f){const w=S[f]?J.create(S[f]):null;return[{},w,f+1]}const X3=RegExp(`^T?${cm.source}$`),Q3=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function e6(S){const[f,w,A,I,L,G,ae,me,Ae]=S,qe=f[0]==="-",lt=me&&me[0]==="-",Ft=(Je,vr=!1)=>Je!==void 0&&(vr||Je&&qe)?-Je:Je;return[{years:Ft(ua(w)),months:Ft(ua(A)),weeks:Ft(ua(I)),days:Ft(ua(L)),hours:Ft(ua(G)),minutes:Ft(ua(ae)),seconds:Ft(ua(me),me==="-0"),milliseconds:Ft(sm(Ae),lt)}]}const t6={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function dm(S,f,w,A,I,L,G){const ae={year:f.length===2?um(To(f)):To(f),month:rE.indexOf(w)+1,day:To(A),hour:To(I),minute:To(L)};return G&&(ae.second=To(G)),S&&(ae.weekday=S.length>3?oE.indexOf(S)+1:aE.indexOf(S)+1),ae}const r6=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function n6(S){const[,f,w,A,I,L,G,ae,me,Ae,qe,lt]=S,Ft=dm(f,I,A,w,L,G,ae);let Je;return me?Je=t6[me]:Ae?Je=0:Je=mf(qe,lt),[Ft,new Q(Je)]}function o6(S){return S.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const a6=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,i6=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,s6=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function mE(S){const[,f,w,A,I,L,G,ae]=S;return[dm(f,I,A,w,L,G,ae),Q.utcInstance]}function l6(S){const[,f,w,A,I,L,G,ae]=S;return[dm(f,ae,w,A,I,L,G),Q.utcInstance]}const u6=_i(q3,fm),c6=_i(W3,fm),f6=_i(H3,fm),d6=_i(pE),yE=Si(Y3,Oi,Ls,zs),p6=Si(G3,Oi,Ls,zs),h6=Si(J3,Oi,Ls,zs),m6=Si(Oi,Ls,zs);function y6(S){return $i(S,[u6,yE],[c6,p6],[f6,h6],[d6,m6])}function g6(S){return $i(o6(S),[r6,n6])}function v6(S){return $i(S,[a6,mE],[i6,mE],[s6,l6])}function b6(S){return $i(S,[Q3,e6])}const w6=Si(Oi);function _6(S){return $i(S,[X3,w6])}const S6=_i(K3,Z3),$6=_i(hE),E6=Si(Oi,Ls,zs);function O6(S){return $i(S,[S6,yE],[$6,E6])}const gE="Invalid Duration",vE={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},A6={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...vE},rn=146097/400,Ai=146097/4800,P6={years:{quarters:4,months:12,weeks:rn/7,days:rn,hours:rn*24,minutes:rn*24*60,seconds:rn*24*60*60,milliseconds:rn*24*60*60*1e3},quarters:{months:3,weeks:rn/28,days:rn/4,hours:rn*24/4,minutes:rn*24*60/4,seconds:rn*24*60*60/4,milliseconds:rn*24*60*60*1e3/4},months:{weeks:Ai/7,days:Ai,hours:Ai*24,minutes:Ai*24*60,seconds:Ai*24*60*60,milliseconds:Ai*24*60*60*1e3},...vE},ca=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],x6=ca.slice(0).reverse();function jo(S,f,w=!1){const A={values:w?f.values:{...S.values,...f.values||{}},loc:S.loc.clone(f.loc),conversionAccuracy:f.conversionAccuracy||S.conversionAccuracy,matrix:f.matrix||S.matrix};return new vt(A)}function bE(S,f){var w;let A=(w=f.milliseconds)!=null?w:0;for(const I of x6.slice(1))f[I]&&(A+=f[I]*S[I].milliseconds);return A}function wE(S,f){const w=bE(S,f)<0?-1:1;ca.reduceRight((A,I)=>{if(We(f[I]))return A;if(A){const L=f[A]*w,G=S[I][A],ae=Math.floor(L/G);f[I]+=ae*w,f[A]-=ae*G*w}return I},null),ca.reduce((A,I)=>{if(We(f[I]))return A;if(A){const L=f[A]%1;f[A]-=L,f[I]+=L*S[A][I]}return I},null)}function T6(S){const f={};for(const[w,A]of Object.entries(S))A!==0&&(f[w]=A);return f}class vt{constructor(f){const w=f.conversionAccuracy==="longterm"||!1;let A=w?P6:A6;f.matrix&&(A=f.matrix),this.values=f.values,this.loc=f.loc||x.create(),this.conversionAccuracy=w?"longterm":"casual",this.invalid=f.invalid||null,this.matrix=A,this.isLuxonDuration=!0}static fromMillis(f,w){return vt.fromObject({milliseconds:f},w)}static fromObject(f,w={}){if(f==null||typeof f!="object")throw new i(`Duration.fromObject: argument expected to be an object, got ${f===null?"null":typeof f}`);return new vt({values:yf(f,vt.normalizeUnit),loc:x.fromObject(w),conversionAccuracy:w.conversionAccuracy,matrix:w.matrix})}static fromDurationLike(f){if(xo(f))return vt.fromMillis(f);if(vt.isDuration(f))return f;if(typeof f=="object")return vt.fromObject(f);throw new i(`Unknown duration argument ${f} of type ${typeof f}`)}static fromISO(f,w){const[A]=b6(f);return A?vt.fromObject(A,w):vt.invalid("unparsable",`the input "${f}" can't be parsed as ISO 8601`)}static fromISOTime(f,w){const[A]=_6(f);return A?vt.fromObject(A,w):vt.invalid("unparsable",`the input "${f}" can't be parsed as ISO 8601`)}static invalid(f,w=null){if(!f)throw new i("need to specify a reason the Duration is invalid");const A=f instanceof yn?f:new yn(f,w);if(Bt.throwOnInvalid)throw new n(A);return new vt({invalid:A})}static normalizeUnit(f){const w={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[f&&f.toLowerCase()];if(!w)throw new a(f);return w}static isDuration(f){return f&&f.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(f,w={}){const A={...w,floor:w.round!==!1&&w.floor!==!1};return this.isValid?gr.create(this.loc,A).formatDurationFromString(this,f):gE}toHuman(f={}){if(!this.isValid)return gE;const w=ca.map(A=>{const I=this.values[A];return We(I)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...f,unit:A.slice(0,-1)}).format(I)}).filter(A=>A);return this.loc.listFormatter({type:"conjunction",style:f.listStyle||"narrow",...f}).format(w)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let f="P";return this.years!==0&&(f+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(f+=this.months+this.quarters*3+"M"),this.weeks!==0&&(f+=this.weeks+"W"),this.days!==0&&(f+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(f+="T"),this.hours!==0&&(f+=this.hours+"H"),this.minutes!==0&&(f+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(f+=lm(this.seconds+this.milliseconds/1e3,3)+"S"),f==="P"&&(f+="T0S"),f}toISOTime(f={}){if(!this.isValid)return null;const w=this.toMillis();return w<0||w>=864e5?null:(f={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...f,includeOffset:!1},He.fromMillis(w,{zone:"UTC"}).toISOTime(f))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?bE(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(f){if(!this.isValid)return this;const w=vt.fromDurationLike(f),A={};for(const I of ca)(bi(w.values,I)||bi(this.values,I))&&(A[I]=w.get(I)+this.get(I));return jo(this,{values:A},!0)}minus(f){if(!this.isValid)return this;const w=vt.fromDurationLike(f);return this.plus(w.negate())}mapUnits(f){if(!this.isValid)return this;const w={};for(const A of Object.keys(this.values))w[A]=tE(f(this.values[A],A));return jo(this,{values:w},!0)}get(f){return this[vt.normalizeUnit(f)]}set(f){if(!this.isValid)return this;const w={...this.values,...yf(f,vt.normalizeUnit)};return jo(this,{values:w})}reconfigure({locale:f,numberingSystem:w,conversionAccuracy:A,matrix:I}={}){const L={loc:this.loc.clone({locale:f,numberingSystem:w}),matrix:I,conversionAccuracy:A};return jo(this,L)}as(f){return this.isValid?this.shiftTo(f).get(f):NaN}normalize(){if(!this.isValid)return this;const f=this.toObject();return wE(this.matrix,f),jo(this,{values:f},!0)}rescale(){if(!this.isValid)return this;const f=T6(this.normalize().shiftToAll().toObject());return jo(this,{values:f},!0)}shiftTo(...f){if(!this.isValid)return this;if(f.length===0)return this;f=f.map(G=>vt.normalizeUnit(G));const w={},A={},I=this.toObject();let L;for(const G of ca)if(f.indexOf(G)>=0){L=G;let ae=0;for(const Ae in A)ae+=this.matrix[Ae][G]*A[Ae],A[Ae]=0;xo(I[G])&&(ae+=I[G]);const me=Math.trunc(ae);w[G]=me,A[G]=(ae*1e3-me*1e3)/1e3}else xo(I[G])&&(A[G]=I[G]);for(const G in A)A[G]!==0&&(w[L]+=G===L?A[G]:A[G]/this.matrix[L][G]);return wE(this.matrix,w),jo(this,{values:w},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const f={};for(const w of Object.keys(this.values))f[w]=this.values[w]===0?0:-this.values[w];return jo(this,{values:f},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(f){if(!this.isValid||!f.isValid||!this.loc.equals(f.loc))return!1;function w(A,I){return A===void 0||A===0?I===void 0||I===0:A===I}for(const A of ca)if(!w(this.values[A],f.values[A]))return!1;return!0}}const Pi="Invalid Interval";function j6(S,f){return!S||!S.isValid?Dt.invalid("missing or invalid start"):!f||!f.isValid?Dt.invalid("missing or invalid end"):f<S?Dt.invalid("end before start",`The end of an interval must be after its start, but you had start=${S.toISO()} and end=${f.toISO()}`):null}class Dt{constructor(f){this.s=f.start,this.e=f.end,this.invalid=f.invalid||null,this.isLuxonInterval=!0}static invalid(f,w=null){if(!f)throw new i("need to specify a reason the Interval is invalid");const A=f instanceof yn?f:new yn(f,w);if(Bt.throwOnInvalid)throw new r(A);return new Dt({invalid:A})}static fromDateTimes(f,w){const A=Hs(f),I=Hs(w);return j6(A,I)??new Dt({start:A,end:I})}static after(f,w){const A=vt.fromDurationLike(w),I=Hs(f);return Dt.fromDateTimes(I,I.plus(A))}static before(f,w){const A=vt.fromDurationLike(w),I=Hs(f);return Dt.fromDateTimes(I.minus(A),I)}static fromISO(f,w){const[A,I]=(f||"").split("/",2);if(A&&I){let L,G;try{L=He.fromISO(A,w),G=L.isValid}catch{G=!1}let ae,me;try{ae=He.fromISO(I,w),me=ae.isValid}catch{me=!1}if(G&&me)return Dt.fromDateTimes(L,ae);if(G){const Ae=vt.fromISO(I,w);if(Ae.isValid)return Dt.after(L,Ae)}else if(me){const Ae=vt.fromISO(A,w);if(Ae.isValid)return Dt.before(ae,Ae)}}return Dt.invalid("unparsable",`the input "${f}" can't be parsed as ISO 8601`)}static isInterval(f){return f&&f.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(f="milliseconds"){return this.isValid?this.toDuration(f).get(f):NaN}count(f="milliseconds",w){if(!this.isValid)return NaN;const A=this.start.startOf(f,w);let I;return w!=null&&w.useLocaleWeeks?I=this.end.reconfigure({locale:A.locale}):I=this.end,I=I.startOf(f,w),Math.floor(I.diff(A,f).get(f))+(I.valueOf()!==this.end.valueOf())}hasSame(f){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,f):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(f){return this.isValid?this.s>f:!1}isBefore(f){return this.isValid?this.e<=f:!1}contains(f){return this.isValid?this.s<=f&&this.e>f:!1}set({start:f,end:w}={}){return this.isValid?Dt.fromDateTimes(f||this.s,w||this.e):this}splitAt(...f){if(!this.isValid)return[];const w=f.map(Hs).filter(G=>this.contains(G)).sort((G,ae)=>G.toMillis()-ae.toMillis()),A=[];let{s:I}=this,L=0;for(;I<this.e;){const G=w[L]||this.e,ae=+G>+this.e?this.e:G;A.push(Dt.fromDateTimes(I,ae)),I=ae,L+=1}return A}splitBy(f){const w=vt.fromDurationLike(f);if(!this.isValid||!w.isValid||w.as("milliseconds")===0)return[];let{s:A}=this,I=1,L;const G=[];for(;A<this.e;){const ae=this.start.plus(w.mapUnits(me=>me*I));L=+ae>+this.e?this.e:ae,G.push(Dt.fromDateTimes(A,L)),A=L,I+=1}return G}divideEqually(f){return this.isValid?this.splitBy(this.length()/f).slice(0,f):[]}overlaps(f){return this.e>f.s&&this.s<f.e}abutsStart(f){return this.isValid?+this.e==+f.s:!1}abutsEnd(f){return this.isValid?+f.e==+this.s:!1}engulfs(f){return this.isValid?this.s<=f.s&&this.e>=f.e:!1}equals(f){return!this.isValid||!f.isValid?!1:this.s.equals(f.s)&&this.e.equals(f.e)}intersection(f){if(!this.isValid)return this;const w=this.s>f.s?this.s:f.s,A=this.e<f.e?this.e:f.e;return w>=A?null:Dt.fromDateTimes(w,A)}union(f){if(!this.isValid)return this;const w=this.s<f.s?this.s:f.s,A=this.e>f.e?this.e:f.e;return Dt.fromDateTimes(w,A)}static merge(f){const[w,A]=f.sort((I,L)=>I.s-L.s).reduce(([I,L],G)=>L?L.overlaps(G)||L.abutsStart(G)?[I,L.union(G)]:[I.concat([L]),G]:[I,G],[[],null]);return A&&w.push(A),w}static xor(f){let w=null,A=0;const I=[],L=f.map(me=>[{time:me.s,type:"s"},{time:me.e,type:"e"}]),G=Array.prototype.concat(...L),ae=G.sort((me,Ae)=>me.time-Ae.time);for(const me of ae)A+=me.type==="s"?1:-1,A===1?w=me.time:(w&&+w!=+me.time&&I.push(Dt.fromDateTimes(w,me.time)),w=null);return Dt.merge(I)}difference(...f){return Dt.xor([this].concat(f)).map(w=>this.intersection(w)).filter(w=>w&&!w.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Pi}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(f=d,w={}){return this.isValid?gr.create(this.s.loc.clone(w),f).formatInterval(this):Pi}toISO(f){return this.isValid?`${this.s.toISO(f)}/${this.e.toISO(f)}`:Pi}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Pi}toISOTime(f){return this.isValid?`${this.s.toISOTime(f)}/${this.e.toISOTime(f)}`:Pi}toFormat(f,{separator:w=" – "}={}){return this.isValid?`${this.s.toFormat(f)}${w}${this.e.toFormat(f)}`:Pi}toDuration(f,w){return this.isValid?this.e.diff(this.s,f,w):vt.invalid(this.invalidReason)}mapEndpoints(f){return Dt.fromDateTimes(f(this.s),f(this.e))}}class qs{static hasDST(f=Bt.defaultZone){const w=He.now().setZone(f).set({month:12});return!f.isUniversal&&w.offset!==w.set({month:6}).offset}static isValidIANAZone(f){return J.isValidZone(f)}static normalizeZone(f){return we(f,Bt.defaultZone)}static getStartOfWeek({locale:f=null,locObj:w=null}={}){return(w||x.create(f)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:f=null,locObj:w=null}={}){return(w||x.create(f)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:f=null,locObj:w=null}={}){return(w||x.create(f)).getWeekendDays().slice()}static months(f="long",{locale:w=null,numberingSystem:A=null,locObj:I=null,outputCalendar:L="gregory"}={}){return(I||x.create(w,A,L)).months(f)}static monthsFormat(f="long",{locale:w=null,numberingSystem:A=null,locObj:I=null,outputCalendar:L="gregory"}={}){return(I||x.create(w,A,L)).months(f,!0)}static weekdays(f="long",{locale:w=null,numberingSystem:A=null,locObj:I=null}={}){return(I||x.create(w,A,null)).weekdays(f)}static weekdaysFormat(f="long",{locale:w=null,numberingSystem:A=null,locObj:I=null}={}){return(I||x.create(w,A,null)).weekdays(f,!0)}static meridiems({locale:f=null}={}){return x.create(f).meridiems()}static eras(f="short",{locale:w=null}={}){return x.create(w,null,"gregory").eras(f)}static features(){return{relative:Z$(),localeWeek:Y$()}}}function _E(S,f){const w=I=>I.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),A=w(f)-w(S);return Math.floor(vt.fromMillis(A).as("days"))}function k6(S,f,w){const A=[["years",(me,Ae)=>Ae.year-me.year],["quarters",(me,Ae)=>Ae.quarter-me.quarter+(Ae.year-me.year)*4],["months",(me,Ae)=>Ae.month-me.month+(Ae.year-me.year)*12],["weeks",(me,Ae)=>{const qe=_E(me,Ae);return(qe-qe%7)/7}],["days",_E]],I={},L=S;let G,ae;for(const[me,Ae]of A)w.indexOf(me)>=0&&(G=me,I[me]=Ae(S,f),ae=L.plus(I),ae>f?(I[me]--,S=L.plus(I),S>f&&(ae=S,I[me]--,S=L.plus(I))):S=ae);return[S,I,ae,G]}function C6(S,f,w,A){let[I,L,G,ae]=k6(S,f,w);const me=f-I,Ae=w.filter(lt=>["hours","minutes","seconds","milliseconds"].indexOf(lt)>=0);Ae.length===0&&(G<f&&(G=I.plus({[ae]:1})),G!==I&&(L[ae]=(L[ae]||0)+me/(G-I)));const qe=vt.fromObject(L,A);return Ae.length>0?vt.fromMillis(me,A).shiftTo(...Ae).plus(qe):qe}const N6="missing Intl.DateTimeFormat.formatToParts support";function Et(S,f=w=>w){return{regex:S,deser:([w])=>f(rt(w))}}const SE="[ ]",$E=new RegExp(SE,"g");function I6(S){return S.replace(/\./g,"\\.?").replace($E,SE)}function EE(S){return S.replace(/\./g,"").replace($E," ").toLowerCase()}function gn(S,f){return S===null?null:{regex:RegExp(S.map(I6).join("|")),deser:([w])=>S.findIndex(A=>EE(w)===EE(A))+f}}function OE(S,f){return{regex:S,deser:([,w,A])=>mf(w,A),groups:f}}function vf(S){return{regex:S,deser:([f])=>f}}function R6(S){return S.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function B6(S,f){const w=mn(f),A=mn(f,"{2}"),I=mn(f,"{3}"),L=mn(f,"{4}"),G=mn(f,"{6}"),ae=mn(f,"{1,2}"),me=mn(f,"{1,3}"),Ae=mn(f,"{1,6}"),qe=mn(f,"{1,9}"),lt=mn(f,"{2,4}"),Ft=mn(f,"{4,6}"),Je=ao=>({regex:RegExp(R6(ao.val)),deser:([Ti])=>Ti,literal:!0}),vr=(ao=>{if(S.literal)return Je(ao);switch(ao.val){case"G":return gn(f.eras("short"),0);case"GG":return gn(f.eras("long"),0);case"y":return Et(Ae);case"yy":return Et(lt,um);case"yyyy":return Et(L);case"yyyyy":return Et(Ft);case"yyyyyy":return Et(G);case"M":return Et(ae);case"MM":return Et(A);case"MMM":return gn(f.months("short",!0),1);case"MMMM":return gn(f.months("long",!0),1);case"L":return Et(ae);case"LL":return Et(A);case"LLL":return gn(f.months("short",!1),1);case"LLLL":return gn(f.months("long",!1),1);case"d":return Et(ae);case"dd":return Et(A);case"o":return Et(me);case"ooo":return Et(I);case"HH":return Et(A);case"H":return Et(ae);case"hh":return Et(A);case"h":return Et(ae);case"mm":return Et(A);case"m":return Et(ae);case"q":return Et(ae);case"qq":return Et(A);case"s":return Et(ae);case"ss":return Et(A);case"S":return Et(me);case"SSS":return Et(I);case"u":return vf(qe);case"uu":return vf(ae);case"uuu":return Et(w);case"a":return gn(f.meridiems(),0);case"kkkk":return Et(L);case"kk":return Et(lt,um);case"W":return Et(ae);case"WW":return Et(A);case"E":case"c":return Et(w);case"EEE":return gn(f.weekdays("short",!1),1);case"EEEE":return gn(f.weekdays("long",!1),1);case"ccc":return gn(f.weekdays("short",!0),1);case"cccc":return gn(f.weekdays("long",!0),1);case"Z":case"ZZ":return OE(new RegExp(`([+-]${ae.source})(?::(${A.source}))?`),2);case"ZZZ":return OE(new RegExp(`([+-]${ae.source})(${A.source})?`),2);case"z":return vf(/[a-z_+-/]{1,256}?/i);case" ":return vf(/[^\S\n\r]/);default:return Je(ao)}})(S)||{invalidReason:N6};return vr.token=S,vr}const D6={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function F6(S,f,w){const{type:A,value:I}=S;if(A==="literal"){const me=/^\s+$/.test(I);return{literal:!me,val:me?" ":I}}const L=f[A];let G=A;A==="hour"&&(f.hour12!=null?G=f.hour12?"hour12":"hour24":f.hourCycle!=null?f.hourCycle==="h11"||f.hourCycle==="h12"?G="hour12":G="hour24":G=w.hour12?"hour12":"hour24");let ae=D6[G];if(typeof ae=="object"&&(ae=ae[L]),ae)return{literal:!1,val:ae}}function M6(S){return[`^${S.map(f=>f.regex).reduce((f,w)=>`${f}(${w.source})`,"")}$`,S]}function V6(S,f,w){const A=S.match(f);if(A){const I={};let L=1;for(const G in w)if(bi(w,G)){const ae=w[G],me=ae.groups?ae.groups+1:1;!ae.literal&&ae.token&&(I[ae.token.val[0]]=ae.deser(A.slice(L,L+me))),L+=me}return[A,I]}else return[A,{}]}function U6(S){const f=I=>{switch(I){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let w=null,A;return We(S.z)||(w=J.create(S.z)),We(S.Z)||(w||(w=new Q(S.Z)),A=S.Z),We(S.q)||(S.M=(S.q-1)*3+1),We(S.h)||(S.h<12&&S.a===1?S.h+=12:S.h===12&&S.a===0&&(S.h=0)),S.G===0&&S.y&&(S.y=-S.y),We(S.u)||(S.S=sm(S.u)),[Object.keys(S).reduce((I,L)=>{const G=f(L);return G&&(I[G]=S[L]),I},{}),w,A]}let pm=null;function L6(){return pm||(pm=He.fromMillis(1555555555555)),pm}function z6(S,f){if(S.literal)return S;const w=gr.macroTokenToFormatOpts(S.val),A=TE(w,f);return A==null||A.includes(void 0)?S:A}function AE(S,f){return Array.prototype.concat(...S.map(w=>z6(w,f)))}class PE{constructor(f,w){if(this.locale=f,this.format=w,this.tokens=AE(gr.parseFormat(w),f),this.units=this.tokens.map(A=>B6(A,f)),this.disqualifyingUnit=this.units.find(A=>A.invalidReason),!this.disqualifyingUnit){const[A,I]=M6(this.units);this.regex=RegExp(A,"i"),this.handlers=I}}explainFromTokens(f){if(this.isValid){const[w,A]=V6(f,this.regex,this.handlers),[I,L,G]=A?U6(A):[null,null,void 0];if(bi(A,"a")&&bi(A,"H"))throw new o("Can't include meridiem when specifying 24-hour format");return{input:f,tokens:this.tokens,regex:this.regex,rawMatches:w,matches:A,result:I,zone:L,specificOffset:G}}else return{input:f,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function xE(S,f,w){return new PE(S,w).explainFromTokens(f)}function q6(S,f,w){const{result:A,zone:I,specificOffset:L,invalidReason:G}=xE(S,f,w);return[A,I,L,G]}function TE(S,f){if(!S)return null;const w=gr.create(f,S).dtFormatter(L6()),A=w.formatToParts(),I=w.resolvedOptions();return A.map(L=>F6(L,S,I))}const hm="Invalid DateTime",jE=864e13;function Ws(S){return new yn("unsupported zone",`the zone "${S.name}" is not supported`)}function mm(S){return S.weekData===null&&(S.weekData=ff(S.c)),S.weekData}function ym(S){return S.localWeekData===null&&(S.localWeekData=ff(S.c,S.loc.getMinDaysInFirstWeek(),S.loc.getStartOfWeek())),S.localWeekData}function fa(S,f){const w={ts:S.ts,zone:S.zone,c:S.c,o:S.o,loc:S.loc,invalid:S.invalid};return new He({...w,...f,old:w})}function kE(S,f,w){let A=S-f*60*1e3;const I=w.offset(A);if(f===I)return[A,f];A-=(I-f)*60*1e3;const L=w.offset(A);return I===L?[A,I]:[S-Math.min(I,L)*60*1e3,Math.max(I,L)]}function bf(S,f){S+=f*60*1e3;const w=new Date(S);return{year:w.getUTCFullYear(),month:w.getUTCMonth()+1,day:w.getUTCDate(),hour:w.getUTCHours(),minute:w.getUTCMinutes(),second:w.getUTCSeconds(),millisecond:w.getUTCMilliseconds()}}function wf(S,f,w){return kE(hf(S),f,w)}function CE(S,f){const w=S.o,A=S.c.year+Math.trunc(f.years),I=S.c.month+Math.trunc(f.months)+Math.trunc(f.quarters)*3,L={...S.c,year:A,month:I,day:Math.min(S.c.day,pf(A,I))+Math.trunc(f.days)+Math.trunc(f.weeks)*7},G=vt.fromObject({years:f.years-Math.trunc(f.years),quarters:f.quarters-Math.trunc(f.quarters),months:f.months-Math.trunc(f.months),weeks:f.weeks-Math.trunc(f.weeks),days:f.days-Math.trunc(f.days),hours:f.hours,minutes:f.minutes,seconds:f.seconds,milliseconds:f.milliseconds}).as("milliseconds"),ae=hf(L);let[me,Ae]=kE(ae,w,S.zone);return G!==0&&(me+=G,Ae=S.zone.offset(me)),{ts:me,o:Ae}}function xi(S,f,w,A,I,L){const{setZone:G,zone:ae}=w;if(S&&Object.keys(S).length!==0||f){const me=f||ae,Ae=He.fromObject(S,{...w,zone:me,specificOffset:L});return G?Ae:Ae.setZone(ae)}else return He.invalid(new yn("unparsable",`the input "${I}" can't be parsed as ${A}`))}function _f(S,f,w=!0){return S.isValid?gr.create(x.create("en-US"),{allowZ:w,forceSimple:!0}).formatDateTimeFromString(S,f):null}function gm(S,f){const w=S.c.year>9999||S.c.year<0;let A="";return w&&S.c.year>=0&&(A+="+"),A+=Ht(S.c.year,w?6:4),f?(A+="-",A+=Ht(S.c.month),A+="-",A+=Ht(S.c.day)):(A+=Ht(S.c.month),A+=Ht(S.c.day)),A}function NE(S,f,w,A,I,L){let G=Ht(S.c.hour);return f?(G+=":",G+=Ht(S.c.minute),(S.c.millisecond!==0||S.c.second!==0||!w)&&(G+=":")):G+=Ht(S.c.minute),(S.c.millisecond!==0||S.c.second!==0||!w)&&(G+=Ht(S.c.second),(S.c.millisecond!==0||!A)&&(G+=".",G+=Ht(S.c.millisecond,3))),I&&(S.isOffsetFixed&&S.offset===0&&!L?G+="Z":S.o<0?(G+="-",G+=Ht(Math.trunc(-S.o/60)),G+=":",G+=Ht(Math.trunc(-S.o%60))):(G+="+",G+=Ht(Math.trunc(S.o/60)),G+=":",G+=Ht(Math.trunc(S.o%60)))),L&&(G+="["+S.zone.ianaName+"]"),G}const IE={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},W6={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},H6={ordinal:1,hour:0,minute:0,second:0,millisecond:0},RE=["year","month","day","hour","minute","second","millisecond"],G6=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],J6=["year","ordinal","hour","minute","second","millisecond"];function K6(S){const f={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[S.toLowerCase()];if(!f)throw new a(S);return f}function BE(S){switch(S.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return K6(S)}}function Z6(S){return $f[S]||(Sf===void 0&&(Sf=Bt.now()),$f[S]=S.offset(Sf)),$f[S]}function DE(S,f){const w=we(f.zone,Bt.defaultZone);if(!w.isValid)return He.invalid(Ws(w));const A=x.fromObject(f);let I,L;if(We(S.year))I=Bt.now();else{for(const me of RE)We(S[me])&&(S[me]=IE[me]);const G=J$(S)||K$(S);if(G)return He.invalid(G);const ae=Z6(w);[I,L]=wf(S,ae,w)}return new He({ts:I,zone:w,loc:A,o:L})}function FE(S,f,w){const A=We(w.round)?!0:w.round,I=(G,ae)=>(G=lm(G,A||w.calendary?0:2,!0),f.loc.clone(w).relFormatter(w).format(G,ae)),L=G=>w.calendary?f.hasSame(S,G)?0:f.startOf(G).diff(S.startOf(G),G).get(G):f.diff(S,G).get(G);if(w.unit)return I(L(w.unit),w.unit);for(const G of w.units){const ae=L(G);if(Math.abs(ae)>=1)return I(ae,G)}return I(S>f?-0:0,w.units[w.units.length-1])}function ME(S){let f={},w;return S.length>0&&typeof S[S.length-1]=="object"?(f=S[S.length-1],w=Array.from(S).slice(0,S.length-1)):w=Array.from(S),[f,w]}let Sf,$f={};class He{constructor(f){const w=f.zone||Bt.defaultZone;let A=f.invalid||(Number.isNaN(f.ts)?new yn("invalid input"):null)||(w.isValid?null:Ws(w));this.ts=We(f.ts)?Bt.now():f.ts;let I=null,L=null;if(!A)if(f.old&&f.old.ts===this.ts&&f.old.zone.equals(w))[I,L]=[f.old.c,f.old.o];else{const G=xo(f.o)&&!f.old?f.o:w.offset(this.ts);I=bf(this.ts,G),A=Number.isNaN(I.year)?new yn("invalid input"):null,I=A?null:I,L=A?null:G}this._zone=w,this.loc=f.loc||x.create(),this.invalid=A,this.weekData=null,this.localWeekData=null,this.c=I,this.o=L,this.isLuxonDateTime=!0}static now(){return new He({})}static local(){const[f,w]=ME(arguments),[A,I,L,G,ae,me,Ae]=w;return DE({year:A,month:I,day:L,hour:G,minute:ae,second:me,millisecond:Ae},f)}static utc(){const[f,w]=ME(arguments),[A,I,L,G,ae,me,Ae]=w;return f.zone=Q.utcInstance,DE({year:A,month:I,day:L,hour:G,minute:ae,second:me,millisecond:Ae},f)}static fromJSDate(f,w={}){const A=P3(f)?f.valueOf():NaN;if(Number.isNaN(A))return He.invalid("invalid input");const I=we(w.zone,Bt.defaultZone);return I.isValid?new He({ts:A,zone:I,loc:x.fromObject(w)}):He.invalid(Ws(I))}static fromMillis(f,w={}){if(xo(f))return f<-jE||f>jE?He.invalid("Timestamp out of range"):new He({ts:f,zone:we(w.zone,Bt.defaultZone),loc:x.fromObject(w)});throw new i(`fromMillis requires a numerical input, but received a ${typeof f} with value ${f}`)}static fromSeconds(f,w={}){if(xo(f))return new He({ts:f*1e3,zone:we(w.zone,Bt.defaultZone),loc:x.fromObject(w)});throw new i("fromSeconds requires a numerical input")}static fromObject(f,w={}){f=f||{};const A=we(w.zone,Bt.defaultZone);if(!A.isValid)return He.invalid(Ws(A));const I=x.fromObject(w),L=yf(f,BE),{minDaysInFirstWeek:G,startOfWeek:ae}=G$(L,I),me=Bt.now(),Ae=We(w.specificOffset)?A.offset(me):w.specificOffset,qe=!We(L.ordinal),lt=!We(L.year),Ft=!We(L.month)||!We(L.day),Je=lt||Ft,vr=L.weekYear||L.weekNumber;if((Je||qe)&&vr)throw new o("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(Ft&&qe)throw new o("Can't mix ordinal dates with month/day");const ao=vr||L.weekday&&!Je;let Ti,Ef,Gs=bf(me,Ae);ao?(Ti=G6,Ef=W6,Gs=ff(Gs,G,ae)):qe?(Ti=J6,Ef=H6,Gs=am(Gs)):(Ti=RE,Ef=IE);let VE=!1;for(const Ks of Ti){const rL=L[Ks];We(rL)?VE?L[Ks]=Ef[Ks]:L[Ks]=Gs[Ks]:VE=!0}const X6=ao?E3(L,G,ae):qe?O3(L):J$(L),UE=X6||K$(L);if(UE)return He.invalid(UE);const Q6=ao?W$(L,G,ae):qe?H$(L):L,[eL,tL]=wf(Q6,Ae,A),Js=new He({ts:eL,zone:A,o:tL,loc:I});return L.weekday&&Je&&f.weekday!==Js.weekday?He.invalid("mismatched weekday",`you can't specify both a weekday of ${L.weekday} and a date of ${Js.toISO()}`):Js.isValid?Js:He.invalid(Js.invalid)}static fromISO(f,w={}){const[A,I]=y6(f);return xi(A,I,w,"ISO 8601",f)}static fromRFC2822(f,w={}){const[A,I]=g6(f);return xi(A,I,w,"RFC 2822",f)}static fromHTTP(f,w={}){const[A,I]=v6(f);return xi(A,I,w,"HTTP",w)}static fromFormat(f,w,A={}){if(We(f)||We(w))throw new i("fromFormat requires an input string and a format");const{locale:I=null,numberingSystem:L=null}=A,G=x.fromOpts({locale:I,numberingSystem:L,defaultToEN:!0}),[ae,me,Ae,qe]=q6(G,f,w);return qe?He.invalid(qe):xi(ae,me,A,`format ${w}`,f,Ae)}static fromString(f,w,A={}){return He.fromFormat(f,w,A)}static fromSQL(f,w={}){const[A,I]=O6(f);return xi(A,I,w,"SQL",f)}static invalid(f,w=null){if(!f)throw new i("need to specify a reason the DateTime is invalid");const A=f instanceof yn?f:new yn(f,w);if(Bt.throwOnInvalid)throw new t(A);return new He({invalid:A})}static isDateTime(f){return f&&f.isLuxonDateTime||!1}static parseFormatForOpts(f,w={}){const A=TE(f,x.fromObject(w));return A?A.map(I=>I?I.val:null).join(""):null}static expandFormat(f,w={}){return AE(gr.parseFormat(f),x.fromObject(w)).map(A=>A.val).join("")}static resetCache(){Sf=void 0,$f={}}get(f){return this[f]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?mm(this).weekYear:NaN}get weekNumber(){return this.isValid?mm(this).weekNumber:NaN}get weekday(){return this.isValid?mm(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?ym(this).weekday:NaN}get localWeekNumber(){return this.isValid?ym(this).weekNumber:NaN}get localWeekYear(){return this.isValid?ym(this).weekYear:NaN}get ordinal(){return this.isValid?am(this.c).ordinal:NaN}get monthShort(){return this.isValid?qs.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?qs.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?qs.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?qs.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const f=864e5,w=6e4,A=hf(this.c),I=this.zone.offset(A-f),L=this.zone.offset(A+f),G=this.zone.offset(A-I*w),ae=this.zone.offset(A-L*w);if(G===ae)return[this];const me=A-G*w,Ae=A-ae*w,qe=bf(me,G),lt=bf(Ae,ae);return qe.hour===lt.hour&&qe.minute===lt.minute&&qe.second===lt.second&&qe.millisecond===lt.millisecond?[fa(this,{ts:me}),fa(this,{ts:Ae})]:[this]}get isInLeapYear(){return Ms(this.year)}get daysInMonth(){return pf(this.year,this.month)}get daysInYear(){return this.isValid?wi(this.year):NaN}get weeksInWeekYear(){return this.isValid?Vs(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Vs(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(f={}){const{locale:w,numberingSystem:A,calendar:I}=gr.create(this.loc.clone(f),f).resolvedOptions(this);return{locale:w,numberingSystem:A,outputCalendar:I}}toUTC(f=0,w={}){return this.setZone(Q.instance(f),w)}toLocal(){return this.setZone(Bt.defaultZone)}setZone(f,{keepLocalTime:w=!1,keepCalendarTime:A=!1}={}){if(f=we(f,Bt.defaultZone),f.equals(this.zone))return this;if(f.isValid){let I=this.ts;if(w||A){const L=f.offset(this.ts),G=this.toObject();[I]=wf(G,L,f)}return fa(this,{ts:I,zone:f})}else return He.invalid(Ws(f))}reconfigure({locale:f,numberingSystem:w,outputCalendar:A}={}){const I=this.loc.clone({locale:f,numberingSystem:w,outputCalendar:A});return fa(this,{loc:I})}setLocale(f){return this.reconfigure({locale:f})}set(f){if(!this.isValid)return this;const w=yf(f,BE),{minDaysInFirstWeek:A,startOfWeek:I}=G$(w,this.loc),L=!We(w.weekYear)||!We(w.weekNumber)||!We(w.weekday),G=!We(w.ordinal),ae=!We(w.year),me=!We(w.month)||!We(w.day),Ae=ae||me,qe=w.weekYear||w.weekNumber;if((Ae||G)&&qe)throw new o("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(me&&G)throw new o("Can't mix ordinal dates with month/day");let lt;L?lt=W$({...ff(this.c,A,I),...w},A,I):We(w.ordinal)?(lt={...this.toObject(),...w},We(w.day)&&(lt.day=Math.min(pf(lt.year,lt.month),lt.day))):lt=H$({...am(this.c),...w});const[Ft,Je]=wf(lt,this.o,this.zone);return fa(this,{ts:Ft,o:Je})}plus(f){if(!this.isValid)return this;const w=vt.fromDurationLike(f);return fa(this,CE(this,w))}minus(f){if(!this.isValid)return this;const w=vt.fromDurationLike(f).negate();return fa(this,CE(this,w))}startOf(f,{useLocaleWeeks:w=!1}={}){if(!this.isValid)return this;const A={},I=vt.normalizeUnit(f);switch(I){case"years":A.month=1;case"quarters":case"months":A.day=1;case"weeks":case"days":A.hour=0;case"hours":A.minute=0;case"minutes":A.second=0;case"seconds":A.millisecond=0;break}if(I==="weeks")if(w){const L=this.loc.getStartOfWeek(),{weekday:G}=this;G<L&&(A.weekNumber=this.weekNumber-1),A.weekday=L}else A.weekday=1;if(I==="quarters"){const L=Math.ceil(this.month/3);A.month=(L-1)*3+1}return this.set(A)}endOf(f,w){return this.isValid?this.plus({[f]:1}).startOf(f,w).minus(1):this}toFormat(f,w={}){return this.isValid?gr.create(this.loc.redefaultToEN(w)).formatDateTimeFromString(this,f):hm}toLocaleString(f=d,w={}){return this.isValid?gr.create(this.loc.clone(w),f).formatDateTime(this):hm}toLocaleParts(f={}){return this.isValid?gr.create(this.loc.clone(f),f).formatDateTimeParts(this):[]}toISO({format:f="extended",suppressSeconds:w=!1,suppressMilliseconds:A=!1,includeOffset:I=!0,extendedZone:L=!1}={}){if(!this.isValid)return null;const G=f==="extended";let ae=gm(this,G);return ae+="T",ae+=NE(this,G,w,A,I,L),ae}toISODate({format:f="extended"}={}){return this.isValid?gm(this,f==="extended"):null}toISOWeekDate(){return _f(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:f=!1,suppressSeconds:w=!1,includeOffset:A=!0,includePrefix:I=!1,extendedZone:L=!1,format:G="extended"}={}){return this.isValid?(I?"T":"")+NE(this,G==="extended",w,f,A,L):null}toRFC2822(){return _f(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return _f(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?gm(this,!0):null}toSQLTime({includeOffset:f=!0,includeZone:w=!1,includeOffsetSpace:A=!0}={}){let I="HH:mm:ss.SSS";return(w||f)&&(A&&(I+=" "),w?I+="z":f&&(I+="ZZ")),_f(this,I,!0)}toSQL(f={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(f)}`:null}toString(){return this.isValid?this.toISO():hm}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(f={}){if(!this.isValid)return{};const w={...this.c};return f.includeConfig&&(w.outputCalendar=this.outputCalendar,w.numberingSystem=this.loc.numberingSystem,w.locale=this.loc.locale),w}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(f,w="milliseconds",A={}){if(!this.isValid||!f.isValid)return vt.invalid("created by diffing an invalid DateTime");const I={locale:this.locale,numberingSystem:this.numberingSystem,...A},L=x3(w).map(vt.normalizeUnit),G=f.valueOf()>this.valueOf(),ae=G?this:f,me=G?f:this,Ae=C6(ae,me,L,I);return G?Ae.negate():Ae}diffNow(f="milliseconds",w={}){return this.diff(He.now(),f,w)}until(f){return this.isValid?Dt.fromDateTimes(this,f):this}hasSame(f,w,A){if(!this.isValid)return!1;const I=f.valueOf(),L=this.setZone(f.zone,{keepLocalTime:!0});return L.startOf(w,A)<=I&&I<=L.endOf(w,A)}equals(f){return this.isValid&&f.isValid&&this.valueOf()===f.valueOf()&&this.zone.equals(f.zone)&&this.loc.equals(f.loc)}toRelative(f={}){if(!this.isValid)return null;const w=f.base||He.fromObject({},{zone:this.zone}),A=f.padding?this<w?-f.padding:f.padding:0;let I=["years","months","days","hours","minutes","seconds"],L=f.unit;return Array.isArray(f.unit)&&(I=f.unit,L=void 0),FE(w,this.plus(A),{...f,numeric:"always",units:I,unit:L})}toRelativeCalendar(f={}){return this.isValid?FE(f.base||He.fromObject({},{zone:this.zone}),this,{...f,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...f){if(!f.every(He.isDateTime))throw new i("min requires all arguments be DateTimes");return X$(f,w=>w.valueOf(),Math.min)}static max(...f){if(!f.every(He.isDateTime))throw new i("max requires all arguments be DateTimes");return X$(f,w=>w.valueOf(),Math.max)}static fromFormatExplain(f,w,A={}){const{locale:I=null,numberingSystem:L=null}=A,G=x.fromOpts({locale:I,numberingSystem:L,defaultToEN:!0});return xE(G,f,w)}static fromStringExplain(f,w,A={}){return He.fromFormatExplain(f,w,A)}static buildFormatParser(f,w={}){const{locale:A=null,numberingSystem:I=null}=w,L=x.fromOpts({locale:A,numberingSystem:I,defaultToEN:!0});return new PE(L,f)}static fromFormatParser(f,w,A={}){if(We(f)||We(w))throw new i("fromFormatParser requires an input string and a format parser");const{locale:I=null,numberingSystem:L=null}=A,G=x.fromOpts({locale:I,numberingSystem:L,defaultToEN:!0});if(!G.equals(w.locale))throw new i(`fromFormatParser called with a locale of ${G}, but the format parser was created for ${w.locale}`);const{result:ae,zone:me,specificOffset:Ae,invalidReason:qe}=w.explainFromTokens(f);return qe?He.invalid(qe):xi(ae,me,A,`format ${w.format}`,f,Ae)}static get DATE_SHORT(){return d}static get DATE_MED(){return v}static get DATE_MED_WITH_WEEKDAY(){return g}static get DATE_FULL(){return b}static get DATE_HUGE(){return E}static get TIME_SIMPLE(){return y}static get TIME_WITH_SECONDS(){return m}static get TIME_WITH_SHORT_OFFSET(){return p}static get TIME_WITH_LONG_OFFSET(){return _}static get TIME_24_SIMPLE(){return T}static get TIME_24_WITH_SECONDS(){return O}static get TIME_24_WITH_SHORT_OFFSET(){return j}static get TIME_24_WITH_LONG_OFFSET(){return C}static get DATETIME_SHORT(){return Z}static get DATETIME_SHORT_WITH_SECONDS(){return V}static get DATETIME_MED(){return U}static get DATETIME_MED_WITH_SECONDS(){return W}static get DATETIME_MED_WITH_WEEKDAY(){return ee}static get DATETIME_FULL(){return fe}static get DATETIME_FULL_WITH_SECONDS(){return ve}static get DATETIME_HUGE(){return Ne}static get DATETIME_HUGE_WITH_SECONDS(){return Te}}function Hs(S){if(He.isDateTime(S))return S;if(S&&S.valueOf&&xo(S.valueOf()))return He.fromJSDate(S);if(S&&typeof S=="object")return He.fromObject(S);throw new i(`Unknown datetime argument: ${S}, of type ${typeof S}`)}const Y6="3.5.0";return jr.DateTime=He,jr.Duration=vt,jr.FixedOffsetZone=Q,jr.IANAZone=J,jr.Info=qs,jr.Interval=Dt,jr.InvalidZone=pe,jr.Settings=Bt,jr.SystemZone=Ee,jr.VERSION=Y6,jr.Zone=Oe,jr}var Ud={exports:{}},d0={},Zn={},qo={},p0={},h0={},m0={},y0;function Xl(){return y0||(y0=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(p){if(super(),!e.IDENTIFIER.test(p))throw new Error("CodeGen: name must be a valid identifier");this.str=p}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(p){super(),this._items=typeof p=="string"?[p]:p}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const p=this._items[0];return p===""||p==='""'}get str(){var p;return(p=this._str)!==null&&p!==void 0?p:this._str=this._items.reduce((_,T)=>`${_}${T}`,"")}get names(){var p;return(p=this._names)!==null&&p!==void 0?p:this._names=this._items.reduce((_,T)=>(T instanceof r&&(_[T.str]=(_[T.str]||0)+1),_),{})}}e._Code=n,e.nil=new n("");function o(m,...p){const _=[m[0]];let T=0;for(;T<p.length;)s(_,p[T]),_.push(m[++T]);return new n(_)}e._=o;const a=new n("+");function i(m,...p){const _=[g(m[0])];let T=0;for(;T<p.length;)_.push(a),s(_,p[T]),_.push(a,g(m[++T]));return l(_),new n(_)}e.str=i;function s(m,p){p instanceof n?m.push(...p._items):p instanceof r?m.push(p):m.push(d(p))}e.addCodeArg=s;function l(m){let p=1;for(;p<m.length-1;){if(m[p]===a){const _=u(m[p-1],m[p+1]);if(_!==void 0){m.splice(p-1,3,_);continue}m[p++]="+"}p++}}function u(m,p){if(p==='""')return m;if(m==='""')return p;if(typeof m=="string")return p instanceof r||m[m.length-1]!=='"'?void 0:typeof p!="string"?`${m.slice(0,-1)}${p}"`:p[0]==='"'?m.slice(0,-1)+p.slice(1):void 0;if(typeof p=="string"&&p[0]==='"'&&!(m instanceof r))return`"${m}${p.slice(1)}`}function c(m,p){return p.emptyStr()?m:m.emptyStr()?p:i`${m}${p}`}e.strConcat=c;function d(m){return typeof m=="number"||typeof m=="boolean"||m===null?m:g(Array.isArray(m)?m.join(","):m)}function v(m){return new n(g(m))}e.stringify=v;function g(m){return JSON.stringify(m).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=g;function b(m){return typeof m=="string"&&e.IDENTIFIER.test(m)?new n(`.${m}`):o`[${m}]`}e.getProperty=b;function E(m){if(typeof m=="string"&&e.IDENTIFIER.test(m))return new n(`${m}`);throw new Error(`CodeGen: invalid export name: ${m}, use explicit $id name mapping`)}e.getEsmExportName=E;function y(m){return new n(m.toString())}e.regexpCode=y}(m0)),m0}var g0={},v0;function b0(){return v0||(v0=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Xl();class r extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}}var n;(function(l){l[l.Started=0]="Started",l[l.Completed=1]="Completed"})(n||(e.UsedValueState=n={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class o{constructor({prefixes:u,parent:c}={}){this._names={},this._prefixes=u,this._parent=c}toName(u){return u instanceof t.Name?u:this.name(u)}name(u){return new t.Name(this._newName(u))}_newName(u){const c=this._names[u]||this._nameGroup(u);return`${u}${c.index++}`}_nameGroup(u){var c,d;if(!((d=(c=this._parent)===null||c===void 0?void 0:c._prefixes)===null||d===void 0)&&d.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}}e.Scope=o;class a extends t.Name{constructor(u,c){super(c),this.prefix=u}setValue(u,{property:c,itemIndex:d}){this.value=u,this.scopePath=(0,t._)`.${new t.Name(c)}[${d}]`}}e.ValueScopeName=a;const i=(0,t._)`\n`;class s extends o{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts={...u,_n:u.lines?i:t.nil}}get(){return this._scope}name(u){return new a(u,this._newName(u))}value(u,c){var d;if(c.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const v=this.toName(u),{prefix:g}=v,b=(d=c.key)!==null&&d!==void 0?d:c.ref;let E=this._values[g];if(E){const p=E.get(b);if(p)return p}else E=this._values[g]=new Map;E.set(b,v);const y=this._scope[g]||(this._scope[g]=[]),m=y.length;return y[m]=c.ref,v.setValue(c,{property:g,itemIndex:m}),v}getValue(u,c){const d=this._values[u];if(d)return d.get(c)}scopeRefs(u,c=this._values){return this._reduceValues(c,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,t._)`${u}${d.scopePath}`})}scopeCode(u=this._values,c,d){return this._reduceValues(u,v=>{if(v.value===void 0)throw new Error(`CodeGen: name "${v}" has no value`);return v.value.code},c,d)}_reduceValues(u,c,d={},v){let g=t.nil;for(const b in u){const E=u[b];if(!E)continue;const y=d[b]=d[b]||new Map;E.forEach(m=>{if(y.has(m))return;y.set(m,n.Started);let p=c(m);if(p){const _=this.opts.es5?e.varKinds.var:e.varKinds.const;g=(0,t._)`${g}${_} ${m} = ${p};${this.opts._n}`}else if(p=v==null?void 0:v(m))g=(0,t._)`${g}${p}${this.opts._n}`;else throw new r(m);y.set(m,n.Completed)})}return g}}e.ValueScope=s}(g0)),g0}var w0;function Ge(){return w0||(w0=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Xl(),r=b0();var n=Xl();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var o=b0();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(k,B){return this}}class i extends a{constructor(k,B,J){super(),this.varKind=k,this.name=B,this.rhs=J}render({es5:k,_n:B}){const J=k?r.varKinds.var:this.varKind,de=this.rhs===void 0?"":` = ${this.rhs}`;return`${J} ${this.name}${de};`+B}optimizeNames(k,B){if(k[this.name.str])return this.rhs&&(this.rhs=ve(this.rhs,k,B)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(k,B,J){super(),this.lhs=k,this.rhs=B,this.sideEffects=J}render({_n:k}){return`${this.lhs} = ${this.rhs};`+k}optimizeNames(k,B){if(!(this.lhs instanceof t.Name&&!k[this.lhs.str]&&!this.sideEffects))return this.rhs=ve(this.rhs,k,B),this}get names(){const k=this.lhs instanceof t.Name?{}:{...this.lhs.names};return fe(k,this.rhs)}}class l extends s{constructor(k,B,J,de){super(k,J,de),this.op=B}render({_n:k}){return`${this.lhs} ${this.op}= ${this.rhs};`+k}}class u extends a{constructor(k){super(),this.label=k,this.names={}}render({_n:k}){return`${this.label}:`+k}}class c extends a{constructor(k){super(),this.label=k,this.names={}}render({_n:k}){return`break${this.label?` ${this.label}`:""};`+k}}class d extends a{constructor(k){super(),this.error=k}render({_n:k}){return`throw ${this.error};`+k}get names(){return this.error.names}}class v extends a{constructor(k){super(),this.code=k}render({_n:k}){return`${this.code};`+k}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(k,B){return this.code=ve(this.code,k,B),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class g extends a{constructor(k=[]){super(),this.nodes=k}render(k){return this.nodes.reduce((B,J)=>B+J.render(k),"")}optimizeNodes(){const{nodes:k}=this;let B=k.length;for(;B--;){const J=k[B].optimizeNodes();Array.isArray(J)?k.splice(B,1,...J):J?k[B]=J:k.splice(B,1)}return k.length>0?this:void 0}optimizeNames(k,B){const{nodes:J}=this;let de=J.length;for(;de--;){const se=J[de];se.optimizeNames(k,B)||(Ne(k,se.names),J.splice(de,1))}return J.length>0?this:void 0}get names(){return this.nodes.reduce((k,B)=>ee(k,B.names),{})}}class b extends g{render(k){return"{"+k._n+super.render(k)+"}"+k._n}}class E extends g{}class y extends b{}y.kind="else";class m extends b{constructor(k,B){super(B),this.condition=k}render(k){let B=`if(${this.condition})`+super.render(k);return this.else&&(B+="else "+this.else.render(k)),B}optimizeNodes(){super.optimizeNodes();const k=this.condition;if(k===!0)return this.nodes;let B=this.else;if(B){const J=B.optimizeNodes();B=this.else=Array.isArray(J)?new y(J):J}if(B)return k===!1?B instanceof m?B:B.nodes:this.nodes.length?this:new m(Te(k),B instanceof m?[B]:B.nodes);if(!(k===!1||!this.nodes.length))return this}optimizeNames(k,B){var J;if(this.else=(J=this.else)===null||J===void 0?void 0:J.optimizeNames(k,B),!!(super.optimizeNames(k,B)||this.else))return this.condition=ve(this.condition,k,B),this}get names(){const k=super.names;return fe(k,this.condition),this.else&&ee(k,this.else.names),k}}m.kind="if";class p extends b{}p.kind="for";class _ extends p{constructor(k){super(),this.iteration=k}render(k){return`for(${this.iteration})`+super.render(k)}optimizeNames(k,B){if(super.optimizeNames(k,B))return this.iteration=ve(this.iteration,k,B),this}get names(){return ee(super.names,this.iteration.names)}}class T extends p{constructor(k,B,J,de){super(),this.varKind=k,this.name=B,this.from=J,this.to=de}render(k){const B=k.es5?r.varKinds.var:this.varKind,{name:J,from:de,to:se}=this;return`for(${B} ${J}=${de}; ${J}<${se}; ${J}++)`+super.render(k)}get names(){const k=fe(super.names,this.from);return fe(k,this.to)}}class O extends p{constructor(k,B,J,de){super(),this.loop=k,this.varKind=B,this.name=J,this.iterable=de}render(k){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(k)}optimizeNames(k,B){if(super.optimizeNames(k,B))return this.iterable=ve(this.iterable,k,B),this}get names(){return ee(super.names,this.iterable.names)}}class j extends b{constructor(k,B,J){super(),this.name=k,this.args=B,this.async=J}render(k){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(k)}}j.kind="func";class C extends g{render(k){return"return "+super.render(k)}}C.kind="return";class Z extends b{render(k){let B="try"+super.render(k);return this.catch&&(B+=this.catch.render(k)),this.finally&&(B+=this.finally.render(k)),B}optimizeNodes(){var k,B;return super.optimizeNodes(),(k=this.catch)===null||k===void 0||k.optimizeNodes(),(B=this.finally)===null||B===void 0||B.optimizeNodes(),this}optimizeNames(k,B){var J,de;return super.optimizeNames(k,B),(J=this.catch)===null||J===void 0||J.optimizeNames(k,B),(de=this.finally)===null||de===void 0||de.optimizeNames(k,B),this}get names(){const k=super.names;return this.catch&&ee(k,this.catch.names),this.finally&&ee(k,this.finally.names),k}}class V extends b{constructor(k){super(),this.error=k}render(k){return`catch(${this.error})`+super.render(k)}}V.kind="catch";class U extends b{render(k){return"finally"+super.render(k)}}U.kind="finally";class W{constructor(k,B={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...B,_n:B.lines?`
|
33
|
+
`:""},this._extScope=k,this._scope=new r.Scope({parent:k}),this._nodes=[new E]}toString(){return this._root.render(this.opts)}name(k){return this._scope.name(k)}scopeName(k){return this._extScope.name(k)}scopeValue(k,B){const J=this._extScope.value(k,B);return(this._values[J.prefix]||(this._values[J.prefix]=new Set)).add(J),J}getScopeValue(k,B){return this._extScope.getValue(k,B)}scopeRefs(k){return this._extScope.scopeRefs(k,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(k,B,J,de){const se=this._scope.toName(B);return J!==void 0&&de&&(this._constants[se.str]=J),this._leafNode(new i(k,se,J)),se}const(k,B,J){return this._def(r.varKinds.const,k,B,J)}let(k,B,J){return this._def(r.varKinds.let,k,B,J)}var(k,B,J){return this._def(r.varKinds.var,k,B,J)}assign(k,B,J){return this._leafNode(new s(k,B,J))}add(k,B){return this._leafNode(new l(k,e.operators.ADD,B))}code(k){return typeof k=="function"?k():k!==t.nil&&this._leafNode(new v(k)),this}object(...k){const B=["{"];for(const[J,de]of k)B.length>1&&B.push(","),B.push(J),(J!==de||this.opts.es5)&&(B.push(":"),(0,t.addCodeArg)(B,de));return B.push("}"),new t._Code(B)}if(k,B,J){if(this._blockNode(new m(k)),B&&J)this.code(B).else().code(J).endIf();else if(B)this.code(B).endIf();else if(J)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(k){return this._elseNode(new m(k))}else(){return this._elseNode(new y)}endIf(){return this._endBlockNode(m,y)}_for(k,B){return this._blockNode(k),B&&this.code(B).endFor(),this}for(k,B){return this._for(new _(k),B)}forRange(k,B,J,de,se=this.opts.es5?r.varKinds.var:r.varKinds.let){const Se=this._scope.toName(k);return this._for(new T(se,Se,B,J),()=>de(Se))}forOf(k,B,J,de=r.varKinds.const){const se=this._scope.toName(k);if(this.opts.es5){const Se=B instanceof t.Name?B:this.var("_arr",B);return this.forRange("_i",0,(0,t._)`${Se}.length`,je=>{this.var(se,(0,t._)`${Se}[${je}]`),J(se)})}return this._for(new O("of",de,se,B),()=>J(se))}forIn(k,B,J,de=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(k,(0,t._)`Object.keys(${B})`,J);const se=this._scope.toName(k);return this._for(new O("in",de,se,B),()=>J(se))}endFor(){return this._endBlockNode(p)}label(k){return this._leafNode(new u(k))}break(k){return this._leafNode(new c(k))}return(k){const B=new C;if(this._blockNode(B),this.code(k),B.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(C)}try(k,B,J){if(!B&&!J)throw new Error('CodeGen: "try" without "catch" and "finally"');const de=new Z;if(this._blockNode(de),this.code(k),B){const se=this.name("e");this._currNode=de.catch=new V(se),B(se)}return J&&(this._currNode=de.finally=new U,this.code(J)),this._endBlockNode(V,U)}throw(k){return this._leafNode(new d(k))}block(k,B){return this._blockStarts.push(this._nodes.length),k&&this.code(k).endBlock(B),this}endBlock(k){const B=this._blockStarts.pop();if(B===void 0)throw new Error("CodeGen: not in self-balancing block");const J=this._nodes.length-B;if(J<0||k!==void 0&&J!==k)throw new Error(`CodeGen: wrong number of nodes: ${J} vs ${k} expected`);return this._nodes.length=B,this}func(k,B=t.nil,J,de){return this._blockNode(new j(k,B,J)),de&&this.code(de).endFunc(),this}endFunc(){return this._endBlockNode(j)}optimize(k=1){for(;k-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(k){return this._currNode.nodes.push(k),this}_blockNode(k){this._currNode.nodes.push(k),this._nodes.push(k)}_endBlockNode(k,B){const J=this._currNode;if(J instanceof k||B&&J instanceof B)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${B?`${k.kind}/${B.kind}`:k.kind}"`)}_elseNode(k){const B=this._currNode;if(!(B instanceof m))throw new Error('CodeGen: "else" without "if"');return this._currNode=B.else=k,this}get _root(){return this._nodes[0]}get _currNode(){const k=this._nodes;return k[k.length-1]}set _currNode(k){const B=this._nodes;B[B.length-1]=k}}e.CodeGen=W;function ee(F,k){for(const B in k)F[B]=(F[B]||0)+(k[B]||0);return F}function fe(F,k){return k instanceof t._CodeOrName?ee(F,k.names):F}function ve(F,k,B){if(F instanceof t.Name)return J(F);if(!de(F))return F;return new t._Code(F._items.reduce((se,Se)=>(Se instanceof t.Name&&(Se=J(Se)),Se instanceof t._Code?se.push(...Se._items):se.push(Se),se),[]));function J(se){const Se=B[se.str];return Se===void 0||k[se.str]!==1?se:(delete k[se.str],Se)}function de(se){return se instanceof t._Code&&se._items.some(Se=>Se instanceof t.Name&&k[Se.str]===1&&B[Se.str]!==void 0)}}function Ne(F,k){for(const B in k)F[B]=(F[B]||0)-(k[B]||0)}function Te(F){return typeof F=="boolean"||typeof F=="number"||F===null?!F:(0,t._)`!${D(F)}`}e.not=Te;const Oe=q(e.operators.AND);function be(...F){return F.reduce(Oe)}e.and=be;const Ee=q(e.operators.OR);function ue(...F){return F.reduce(Ee)}e.or=ue;function q(F){return(k,B)=>k===t.nil?B:B===t.nil?k:(0,t._)`${D(k)} ${F} ${D(B)}`}function D(F){return F instanceof t.Name?F:(0,t._)`(${F})`}}(h0)),h0}var tt={},_0;function st(){if(_0)return tt;_0=1,Object.defineProperty(tt,"__esModule",{value:!0}),tt.checkStrictMode=tt.getErrorPath=tt.Type=tt.useFunc=tt.setEvaluated=tt.evaluatedPropsToName=tt.mergeEvaluated=tt.eachItem=tt.unescapeJsonPointer=tt.escapeJsonPointer=tt.escapeFragment=tt.unescapeFragment=tt.schemaRefOrVal=tt.schemaHasRulesButRef=tt.schemaHasRules=tt.checkUnknownRules=tt.alwaysValidSchema=tt.toHash=void 0;const e=Ge(),t=Xl();function r(O){const j={};for(const C of O)j[C]=!0;return j}tt.toHash=r;function n(O,j){return typeof j=="boolean"?j:Object.keys(j).length===0?!0:(o(O,j),!a(j,O.self.RULES.all))}tt.alwaysValidSchema=n;function o(O,j=O.schema){const{opts:C,self:Z}=O;if(!C.strictSchema||typeof j=="boolean")return;const V=Z.RULES.keywords;for(const U in j)V[U]||T(O,`unknown keyword: "${U}"`)}tt.checkUnknownRules=o;function a(O,j){if(typeof O=="boolean")return!O;for(const C in O)if(j[C])return!0;return!1}tt.schemaHasRules=a;function i(O,j){if(typeof O=="boolean")return!O;for(const C in O)if(C!=="$ref"&&j.all[C])return!0;return!1}tt.schemaHasRulesButRef=i;function s({topSchemaRef:O,schemaPath:j},C,Z,V){if(!V){if(typeof C=="number"||typeof C=="boolean")return C;if(typeof C=="string")return(0,e._)`${C}`}return(0,e._)`${O}${j}${(0,e.getProperty)(Z)}`}tt.schemaRefOrVal=s;function l(O){return d(decodeURIComponent(O))}tt.unescapeFragment=l;function u(O){return encodeURIComponent(c(O))}tt.escapeFragment=u;function c(O){return typeof O=="number"?`${O}`:O.replace(/~/g,"~0").replace(/\//g,"~1")}tt.escapeJsonPointer=c;function d(O){return O.replace(/~1/g,"/").replace(/~0/g,"~")}tt.unescapeJsonPointer=d;function v(O,j){if(Array.isArray(O))for(const C of O)j(C);else j(O)}tt.eachItem=v;function g({mergeNames:O,mergeToName:j,mergeValues:C,resultToName:Z}){return(V,U,W,ee)=>{const fe=W===void 0?U:W instanceof e.Name?(U instanceof e.Name?O(V,U,W):j(V,U,W),W):U instanceof e.Name?(j(V,W,U),U):C(U,W);return ee===e.Name&&!(fe instanceof e.Name)?Z(V,fe):fe}}tt.mergeEvaluated={props:g({mergeNames:(O,j,C)=>O.if((0,e._)`${C} !== true && ${j} !== undefined`,()=>{O.if((0,e._)`${j} === true`,()=>O.assign(C,!0),()=>O.assign(C,(0,e._)`${C} || {}`).code((0,e._)`Object.assign(${C}, ${j})`))}),mergeToName:(O,j,C)=>O.if((0,e._)`${C} !== true`,()=>{j===!0?O.assign(C,!0):(O.assign(C,(0,e._)`${C} || {}`),E(O,C,j))}),mergeValues:(O,j)=>O===!0?!0:{...O,...j},resultToName:b}),items:g({mergeNames:(O,j,C)=>O.if((0,e._)`${C} !== true && ${j} !== undefined`,()=>O.assign(C,(0,e._)`${j} === true ? true : ${C} > ${j} ? ${C} : ${j}`)),mergeToName:(O,j,C)=>O.if((0,e._)`${C} !== true`,()=>O.assign(C,j===!0?!0:(0,e._)`${C} > ${j} ? ${C} : ${j}`)),mergeValues:(O,j)=>O===!0?!0:Math.max(O,j),resultToName:(O,j)=>O.var("items",j)})};function b(O,j){if(j===!0)return O.var("props",!0);const C=O.var("props",(0,e._)`{}`);return j!==void 0&&E(O,C,j),C}tt.evaluatedPropsToName=b;function E(O,j,C){Object.keys(C).forEach(Z=>O.assign((0,e._)`${j}${(0,e.getProperty)(Z)}`,!0))}tt.setEvaluated=E;const y={};function m(O,j){return O.scopeValue("func",{ref:j,code:y[j.code]||(y[j.code]=new t._Code(j.code))})}tt.useFunc=m;var p;(function(O){O[O.Num=0]="Num",O[O.Str=1]="Str"})(p||(tt.Type=p={}));function _(O,j,C){if(O instanceof e.Name){const Z=j===p.Num;return C?Z?(0,e._)`"[" + ${O} + "]"`:(0,e._)`"['" + ${O} + "']"`:Z?(0,e._)`"/" + ${O}`:(0,e._)`"/" + ${O}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return C?(0,e.getProperty)(O).toString():"/"+c(O)}tt.getErrorPath=_;function T(O,j,C=O.opts.strictSchema){if(C){if(j=`strict mode: ${j}`,C===!0)throw new Error(j);O.self.logger.warn(j)}}return tt.checkStrictMode=T,tt}var Ql={},S0;function un(){if(S0)return Ql;S0=1,Object.defineProperty(Ql,"__esModule",{value:!0});const e=Ge(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return Ql.default=t,Ql}var $0;function eu(){return $0||($0=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=Ge(),r=st(),n=un();e.keywordError={message:({keyword:y})=>(0,t.str)`must pass "${y}" keyword validation`},e.keyword$DataError={message:({keyword:y,schemaType:m})=>m?(0,t.str)`"${y}" keyword must be ${m} ($data)`:(0,t.str)`"${y}" keyword is invalid ($data)`};function o(y,m=e.keywordError,p,_){const{it:T}=y,{gen:O,compositeRule:j,allErrors:C}=T,Z=d(y,m,p);_??(j||C)?l(O,Z):u(T,(0,t._)`[${Z}]`)}e.reportError=o;function a(y,m=e.keywordError,p){const{it:_}=y,{gen:T,compositeRule:O,allErrors:j}=_,C=d(y,m,p);l(T,C),O||j||u(_,n.default.vErrors)}e.reportExtraError=a;function i(y,m){y.assign(n.default.errors,m),y.if((0,t._)`${n.default.vErrors} !== null`,()=>y.if(m,()=>y.assign((0,t._)`${n.default.vErrors}.length`,m),()=>y.assign(n.default.vErrors,null)))}e.resetErrorsCount=i;function s({gen:y,keyword:m,schemaValue:p,data:_,errsCount:T,it:O}){if(T===void 0)throw new Error("ajv implementation error");const j=y.name("err");y.forRange("i",T,n.default.errors,C=>{y.const(j,(0,t._)`${n.default.vErrors}[${C}]`),y.if((0,t._)`${j}.instancePath === undefined`,()=>y.assign((0,t._)`${j}.instancePath`,(0,t.strConcat)(n.default.instancePath,O.errorPath))),y.assign((0,t._)`${j}.schemaPath`,(0,t.str)`${O.errSchemaPath}/${m}`),O.opts.verbose&&(y.assign((0,t._)`${j}.schema`,p),y.assign((0,t._)`${j}.data`,_))})}e.extendErrors=s;function l(y,m){const p=y.const("err",m);y.if((0,t._)`${n.default.vErrors} === null`,()=>y.assign(n.default.vErrors,(0,t._)`[${p}]`),(0,t._)`${n.default.vErrors}.push(${p})`),y.code((0,t._)`${n.default.errors}++`)}function u(y,m){const{gen:p,validateName:_,schemaEnv:T}=y;T.$async?p.throw((0,t._)`new ${y.ValidationError}(${m})`):(p.assign((0,t._)`${_}.errors`,m),p.return(!1))}const c={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function d(y,m,p){const{createErrors:_}=y.it;return _===!1?(0,t._)`{}`:v(y,m,p)}function v(y,m,p={}){const{gen:_,it:T}=y,O=[g(T,p),b(y,p)];return E(y,m,O),_.object(...O)}function g({errorPath:y},{instancePath:m}){const p=m?(0,t.str)`${y}${(0,r.getErrorPath)(m,r.Type.Str)}`:y;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,p)]}function b({keyword:y,it:{errSchemaPath:m}},{schemaPath:p,parentSchema:_}){let T=_?m:(0,t.str)`${m}/${y}`;return p&&(T=(0,t.str)`${T}${(0,r.getErrorPath)(p,r.Type.Str)}`),[c.schemaPath,T]}function E(y,{params:m,message:p},_){const{keyword:T,data:O,schemaValue:j,it:C}=y,{opts:Z,propertyName:V,topSchemaRef:U,schemaPath:W}=C;_.push([c.keyword,T],[c.params,typeof m=="function"?m(y):m||(0,t._)`{}`]),Z.messages&&_.push([c.message,typeof p=="function"?p(y):p]),Z.verbose&&_.push([c.schema,j],[c.parentSchema,(0,t._)`${U}${W}`],[n.default.data,O]),V&&_.push([c.propertyName,V])}}(p0)),p0}var E0;function vT(){if(E0)return qo;E0=1,Object.defineProperty(qo,"__esModule",{value:!0}),qo.boolOrEmptySchema=qo.topBoolOrEmptySchema=void 0;const e=eu(),t=Ge(),r=un(),n={message:"boolean schema is false"};function o(s){const{gen:l,schema:u,validateName:c}=s;u===!1?i(s,!1):typeof u=="object"&&u.$async===!0?l.return(r.default.data):(l.assign((0,t._)`${c}.errors`,null),l.return(!0))}qo.topBoolOrEmptySchema=o;function a(s,l){const{gen:u,schema:c}=s;c===!1?(u.var(l,!1),i(s)):u.var(l,!0)}qo.boolOrEmptySchema=a;function i(s,l){const{gen:u,data:c}=s,d={gen:u,keyword:"false schema",data:c,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:s};(0,e.reportError)(d,n,void 0,l)}return qo}var or={},Wo={},O0;function A0(){if(O0)return Wo;O0=1,Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.getRules=Wo.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(o){return typeof o=="string"&&t.has(o)}Wo.isJSONType=r;function n(){const o={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...o,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},o.number,o.string,o.array,o.object],post:{rules:[]},all:{},keywords:{}}}return Wo.getRules=n,Wo}var Yn={},P0;function x0(){if(P0)return Yn;P0=1,Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.shouldUseRule=Yn.shouldUseGroup=Yn.schemaHasRulesForType=void 0;function e({schema:n,self:o},a){const i=o.RULES.types[a];return i&&i!==!0&&t(n,i)}Yn.schemaHasRulesForType=e;function t(n,o){return o.rules.some(a=>r(n,a))}Yn.shouldUseGroup=t;function r(n,o){var a;return n[o.keyword]!==void 0||((a=o.definition.implements)===null||a===void 0?void 0:a.some(i=>n[i]!==void 0))}return Yn.shouldUseRule=r,Yn}var T0;function tu(){if(T0)return or;T0=1,Object.defineProperty(or,"__esModule",{value:!0}),or.reportTypeError=or.checkDataTypes=or.checkDataType=or.coerceAndCheckDataType=or.getJSONTypes=or.getSchemaTypes=or.DataType=void 0;const e=A0(),t=x0(),r=eu(),n=Ge(),o=st();var a;(function(p){p[p.Correct=0]="Correct",p[p.Wrong=1]="Wrong"})(a||(or.DataType=a={}));function i(p){const _=s(p.type);if(_.includes("null")){if(p.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!_.length&&p.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');p.nullable===!0&&_.push("null")}return _}or.getSchemaTypes=i;function s(p){const _=Array.isArray(p)?p:p?[p]:[];if(_.every(e.isJSONType))return _;throw new Error("type must be JSONType or JSONType[]: "+_.join(","))}or.getJSONTypes=s;function l(p,_){const{gen:T,data:O,opts:j}=p,C=c(_,j.coerceTypes),Z=_.length>0&&!(C.length===0&&_.length===1&&(0,t.schemaHasRulesForType)(p,_[0]));if(Z){const V=b(_,O,j.strictNumbers,a.Wrong);T.if(V,()=>{C.length?d(p,_,C):y(p)})}return Z}or.coerceAndCheckDataType=l;const u=new Set(["string","number","integer","boolean","null"]);function c(p,_){return _?p.filter(T=>u.has(T)||_==="array"&&T==="array"):[]}function d(p,_,T){const{gen:O,data:j,opts:C}=p,Z=O.let("dataType",(0,n._)`typeof ${j}`),V=O.let("coerced",(0,n._)`undefined`);C.coerceTypes==="array"&&O.if((0,n._)`${Z} == 'object' && Array.isArray(${j}) && ${j}.length == 1`,()=>O.assign(j,(0,n._)`${j}[0]`).assign(Z,(0,n._)`typeof ${j}`).if(b(_,j,C.strictNumbers),()=>O.assign(V,j))),O.if((0,n._)`${V} !== undefined`);for(const W of T)(u.has(W)||W==="array"&&C.coerceTypes==="array")&&U(W);O.else(),y(p),O.endIf(),O.if((0,n._)`${V} !== undefined`,()=>{O.assign(j,V),v(p,V)});function U(W){switch(W){case"string":O.elseIf((0,n._)`${Z} == "number" || ${Z} == "boolean"`).assign(V,(0,n._)`"" + ${j}`).elseIf((0,n._)`${j} === null`).assign(V,(0,n._)`""`);return;case"number":O.elseIf((0,n._)`${Z} == "boolean" || ${j} === null
|
34
|
+
|| (${Z} == "string" && ${j} && ${j} == +${j})`).assign(V,(0,n._)`+${j}`);return;case"integer":O.elseIf((0,n._)`${Z} === "boolean" || ${j} === null
|
35
|
+
|| (${Z} === "string" && ${j} && ${j} == +${j} && !(${j} % 1))`).assign(V,(0,n._)`+${j}`);return;case"boolean":O.elseIf((0,n._)`${j} === "false" || ${j} === 0 || ${j} === null`).assign(V,!1).elseIf((0,n._)`${j} === "true" || ${j} === 1`).assign(V,!0);return;case"null":O.elseIf((0,n._)`${j} === "" || ${j} === 0 || ${j} === false`),O.assign(V,null);return;case"array":O.elseIf((0,n._)`${Z} === "string" || ${Z} === "number"
|
36
|
+
|| ${Z} === "boolean" || ${j} === null`).assign(V,(0,n._)`[${j}]`)}}}function v({gen:p,parentData:_,parentDataProperty:T},O){p.if((0,n._)`${_} !== undefined`,()=>p.assign((0,n._)`${_}[${T}]`,O))}function g(p,_,T,O=a.Correct){const j=O===a.Correct?n.operators.EQ:n.operators.NEQ;let C;switch(p){case"null":return(0,n._)`${_} ${j} null`;case"array":C=(0,n._)`Array.isArray(${_})`;break;case"object":C=(0,n._)`${_} && typeof ${_} == "object" && !Array.isArray(${_})`;break;case"integer":C=Z((0,n._)`!(${_} % 1) && !isNaN(${_})`);break;case"number":C=Z();break;default:return(0,n._)`typeof ${_} ${j} ${p}`}return O===a.Correct?C:(0,n.not)(C);function Z(V=n.nil){return(0,n.and)((0,n._)`typeof ${_} == "number"`,V,T?(0,n._)`isFinite(${_})`:n.nil)}}or.checkDataType=g;function b(p,_,T,O){if(p.length===1)return g(p[0],_,T,O);let j;const C=(0,o.toHash)(p);if(C.array&&C.object){const Z=(0,n._)`typeof ${_} != "object"`;j=C.null?Z:(0,n._)`!${_} || ${Z}`,delete C.null,delete C.array,delete C.object}else j=n.nil;C.number&&delete C.integer;for(const Z in C)j=(0,n.and)(j,g(Z,_,T,O));return j}or.checkDataTypes=b;const E={message:({schema:p})=>`must be ${p}`,params:({schema:p,schemaValue:_})=>typeof p=="string"?(0,n._)`{type: ${p}}`:(0,n._)`{type: ${_}}`};function y(p){const _=m(p);(0,r.reportError)(_,E)}or.reportTypeError=y;function m(p){const{gen:_,data:T,schema:O}=p,j=(0,o.schemaRefOrVal)(p,O,"type");return{gen:_,keyword:"type",data:T,schema:O.type,schemaCode:j,schemaValue:j,parentSchema:O,params:{},it:p}}return or}var ts={},j0;function bT(){if(j0)return ts;j0=1,Object.defineProperty(ts,"__esModule",{value:!0}),ts.assignDefaults=void 0;const e=Ge(),t=st();function r(o,a){const{properties:i,items:s}=o.schema;if(a==="object"&&i)for(const l in i)n(o,l,i[l].default);else a==="array"&&Array.isArray(s)&&s.forEach((l,u)=>n(o,u,l.default))}ts.assignDefaults=r;function n(o,a,i){const{gen:s,compositeRule:l,data:u,opts:c}=o;if(i===void 0)return;const d=(0,e._)`${u}${(0,e.getProperty)(a)}`;if(l){(0,t.checkStrictMode)(o,`default is ignored for: ${d}`);return}let v=(0,e._)`${d} === undefined`;c.useDefaults==="empty"&&(v=(0,e._)`${v} || ${d} === null || ${d} === ""`),s.if(v,(0,e._)`${d} = ${(0,e.stringify)(i)}`)}return ts}var cn={},At={},k0;function fn(){if(k0)return At;k0=1,Object.defineProperty(At,"__esModule",{value:!0}),At.validateUnion=At.validateArray=At.usePattern=At.callValidateCode=At.schemaProperties=At.allSchemaProperties=At.noPropertyInData=At.propertyInData=At.isOwnProperty=At.hasPropFunc=At.reportMissingProp=At.checkMissingProp=At.checkReportMissingProp=void 0;const e=Ge(),t=st(),r=un(),n=st();function o(p,_){const{gen:T,data:O,it:j}=p;T.if(c(T,O,_,j.opts.ownProperties),()=>{p.setParams({missingProperty:(0,e._)`${_}`},!0),p.error()})}At.checkReportMissingProp=o;function a({gen:p,data:_,it:{opts:T}},O,j){return(0,e.or)(...O.map(C=>(0,e.and)(c(p,_,C,T.ownProperties),(0,e._)`${j} = ${C}`)))}At.checkMissingProp=a;function i(p,_){p.setParams({missingProperty:_},!0),p.error()}At.reportMissingProp=i;function s(p){return p.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}At.hasPropFunc=s;function l(p,_,T){return(0,e._)`${s(p)}.call(${_}, ${T})`}At.isOwnProperty=l;function u(p,_,T,O){const j=(0,e._)`${_}${(0,e.getProperty)(T)} !== undefined`;return O?(0,e._)`${j} && ${l(p,_,T)}`:j}At.propertyInData=u;function c(p,_,T,O){const j=(0,e._)`${_}${(0,e.getProperty)(T)} === undefined`;return O?(0,e.or)(j,(0,e.not)(l(p,_,T))):j}At.noPropertyInData=c;function d(p){return p?Object.keys(p).filter(_=>_!=="__proto__"):[]}At.allSchemaProperties=d;function v(p,_){return d(_).filter(T=>!(0,t.alwaysValidSchema)(p,_[T]))}At.schemaProperties=v;function g({schemaCode:p,data:_,it:{gen:T,topSchemaRef:O,schemaPath:j,errorPath:C},it:Z},V,U,W){const ee=W?(0,e._)`${p}, ${_}, ${O}${j}`:_,fe=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,C)],[r.default.parentData,Z.parentData],[r.default.parentDataProperty,Z.parentDataProperty],[r.default.rootData,r.default.rootData]];Z.opts.dynamicRef&&fe.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const ve=(0,e._)`${ee}, ${T.object(...fe)}`;return U!==e.nil?(0,e._)`${V}.call(${U}, ${ve})`:(0,e._)`${V}(${ve})`}At.callValidateCode=g;const b=(0,e._)`new RegExp`;function E({gen:p,it:{opts:_}},T){const O=_.unicodeRegExp?"u":"",{regExp:j}=_.code,C=j(T,O);return p.scopeValue("pattern",{key:C.toString(),ref:C,code:(0,e._)`${j.code==="new RegExp"?b:(0,n.useFunc)(p,j)}(${T}, ${O})`})}At.usePattern=E;function y(p){const{gen:_,data:T,keyword:O,it:j}=p,C=_.name("valid");if(j.allErrors){const V=_.let("valid",!0);return Z(()=>_.assign(V,!1)),V}return _.var(C,!0),Z(()=>_.break()),C;function Z(V){const U=_.const("len",(0,e._)`${T}.length`);_.forRange("i",0,U,W=>{p.subschema({keyword:O,dataProp:W,dataPropType:t.Type.Num},C),_.if((0,e.not)(C),V)})}}At.validateArray=y;function m(p){const{gen:_,schema:T,keyword:O,it:j}=p;if(!Array.isArray(T))throw new Error("ajv implementation error");if(T.some(V=>(0,t.alwaysValidSchema)(j,V))&&!j.opts.unevaluated)return;const C=_.let("valid",!1),Z=_.name("_valid");_.block(()=>T.forEach((V,U)=>{const W=p.subschema({keyword:O,schemaProp:U,compositeRule:!0},Z);_.assign(C,(0,e._)`${C} || ${Z}`),p.mergeValidEvaluated(W,Z)||_.if((0,e.not)(C))})),p.result(C,()=>p.reset(),()=>p.error(!0))}return At.validateUnion=m,At}var C0;function wT(){if(C0)return cn;C0=1,Object.defineProperty(cn,"__esModule",{value:!0}),cn.validateKeywordUsage=cn.validSchemaType=cn.funcKeywordCode=cn.macroKeywordCode=void 0;const e=Ge(),t=un(),r=fn(),n=eu();function o(v,g){const{gen:b,keyword:E,schema:y,parentSchema:m,it:p}=v,_=g.macro.call(p.self,y,m,p),T=u(b,E,_);p.opts.validateSchema!==!1&&p.self.validateSchema(_,!0);const O=b.name("valid");v.subschema({schema:_,schemaPath:e.nil,errSchemaPath:`${p.errSchemaPath}/${E}`,topSchemaRef:T,compositeRule:!0},O),v.pass(O,()=>v.error(!0))}cn.macroKeywordCode=o;function a(v,g){var b;const{gen:E,keyword:y,schema:m,parentSchema:p,$data:_,it:T}=v;l(T,g);const O=!_&&g.compile?g.compile.call(T.self,m,p,T):g.validate,j=u(E,y,O),C=E.let("valid");v.block$data(C,Z),v.ok((b=g.valid)!==null&&b!==void 0?b:C);function Z(){if(g.errors===!1)W(),g.modifying&&i(v),ee(()=>v.error());else{const fe=g.async?V():U();g.modifying&&i(v),ee(()=>s(v,fe))}}function V(){const fe=E.let("ruleErrs",null);return E.try(()=>W((0,e._)`await `),ve=>E.assign(C,!1).if((0,e._)`${ve} instanceof ${T.ValidationError}`,()=>E.assign(fe,(0,e._)`${ve}.errors`),()=>E.throw(ve))),fe}function U(){const fe=(0,e._)`${j}.errors`;return E.assign(fe,null),W(e.nil),fe}function W(fe=g.async?(0,e._)`await `:e.nil){const ve=T.opts.passContext?t.default.this:t.default.self,Ne=!("compile"in g&&!_||g.schema===!1);E.assign(C,(0,e._)`${fe}${(0,r.callValidateCode)(v,j,ve,Ne)}`,g.modifying)}function ee(fe){var ve;E.if((0,e.not)((ve=g.valid)!==null&&ve!==void 0?ve:C),fe)}}cn.funcKeywordCode=a;function i(v){const{gen:g,data:b,it:E}=v;g.if(E.parentData,()=>g.assign(b,(0,e._)`${E.parentData}[${E.parentDataProperty}]`))}function s(v,g){const{gen:b}=v;b.if((0,e._)`Array.isArray(${g})`,()=>{b.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${g} : ${t.default.vErrors}.concat(${g})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,n.extendErrors)(v)},()=>v.error())}function l({schemaEnv:v},g){if(g.async&&!v.$async)throw new Error("async keyword in sync schema")}function u(v,g,b){if(b===void 0)throw new Error(`keyword "${g}" failed to compile`);return v.scopeValue("keyword",typeof b=="function"?{ref:b}:{ref:b,code:(0,e.stringify)(b)})}function c(v,g,b=!1){return!g.length||g.some(E=>E==="array"?Array.isArray(v):E==="object"?v&&typeof v=="object"&&!Array.isArray(v):typeof v==E||b&&typeof v>"u")}cn.validSchemaType=c;function d({schema:v,opts:g,self:b,errSchemaPath:E},y,m){if(Array.isArray(y.keyword)?!y.keyword.includes(m):y.keyword!==m)throw new Error("ajv implementation error");const p=y.dependencies;if(p!=null&&p.some(_=>!Object.prototype.hasOwnProperty.call(v,_)))throw new Error(`parent schema must have dependencies of ${m}: ${p.join(",")}`);if(y.validateSchema&&!y.validateSchema(v[m])){const _=`keyword "${m}" value is invalid at path "${E}": `+b.errorsText(y.validateSchema.errors);if(g.validateSchema==="log")b.logger.error(_);else throw new Error(_)}}return cn.validateKeywordUsage=d,cn}var Xn={},N0;function _T(){if(N0)return Xn;N0=1,Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.extendSubschemaMode=Xn.extendSubschemaData=Xn.getSubschema=void 0;const e=Ge(),t=st();function r(a,{keyword:i,schemaProp:s,schema:l,schemaPath:u,errSchemaPath:c,topSchemaRef:d}){if(i!==void 0&&l!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(i!==void 0){const v=a.schema[i];return s===void 0?{schema:v,schemaPath:(0,e._)`${a.schemaPath}${(0,e.getProperty)(i)}`,errSchemaPath:`${a.errSchemaPath}/${i}`}:{schema:v[s],schemaPath:(0,e._)`${a.schemaPath}${(0,e.getProperty)(i)}${(0,e.getProperty)(s)}`,errSchemaPath:`${a.errSchemaPath}/${i}/${(0,t.escapeFragment)(s)}`}}if(l!==void 0){if(u===void 0||c===void 0||d===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:l,schemaPath:u,topSchemaRef:d,errSchemaPath:c}}throw new Error('either "keyword" or "schema" must be passed')}Xn.getSubschema=r;function n(a,i,{dataProp:s,dataPropType:l,data:u,dataTypes:c,propertyName:d}){if(u!==void 0&&s!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:v}=i;if(s!==void 0){const{errorPath:b,dataPathArr:E,opts:y}=i,m=v.let("data",(0,e._)`${i.data}${(0,e.getProperty)(s)}`,!0);g(m),a.errorPath=(0,e.str)`${b}${(0,t.getErrorPath)(s,l,y.jsPropertySyntax)}`,a.parentDataProperty=(0,e._)`${s}`,a.dataPathArr=[...E,a.parentDataProperty]}if(u!==void 0){const b=u instanceof e.Name?u:v.let("data",u,!0);g(b),d!==void 0&&(a.propertyName=d)}c&&(a.dataTypes=c);function g(b){a.data=b,a.dataLevel=i.dataLevel+1,a.dataTypes=[],i.definedProperties=new Set,a.parentData=i.data,a.dataNames=[...i.dataNames,b]}}Xn.extendSubschemaData=n;function o(a,{jtdDiscriminator:i,jtdMetadata:s,compositeRule:l,createErrors:u,allErrors:c}){l!==void 0&&(a.compositeRule=l),u!==void 0&&(a.createErrors=u),c!==void 0&&(a.allErrors=c),a.jtdDiscriminator=i,a.jtdMetadata=s}return Xn.extendSubschemaMode=o,Xn}var Or={},I0,R0;function B0(){return R0||(R0=1,I0=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,o,a;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(a=Object.keys(t),n=a.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;for(o=n;o--!==0;){var i=a[o];if(!e(t[i],r[i]))return!1}return!0}return t!==t&&r!==r}),I0}var Ld={exports:{}},D0;function ST(){if(D0)return Ld.exports;D0=1;var e=Ld.exports=function(n,o,a){typeof o=="function"&&(a=o,o={}),a=o.cb||a;var i=typeof a=="function"?a:a.pre||function(){},s=a.post||function(){};t(o,i,s,n,"",n)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function t(n,o,a,i,s,l,u,c,d,v){if(i&&typeof i=="object"&&!Array.isArray(i)){o(i,s,l,u,c,d,v);for(var g in i){var b=i[g];if(Array.isArray(b)){if(g in e.arrayKeywords)for(var E=0;E<b.length;E++)t(n,o,a,b[E],s+"/"+g+"/"+E,l,s,g,i,E)}else if(g in e.propsKeywords){if(b&&typeof b=="object")for(var y in b)t(n,o,a,b[y],s+"/"+g+"/"+r(y),l,s,g,i,y)}else(g in e.keywords||n.allKeys&&!(g in e.skipKeywords))&&t(n,o,a,b,s+"/"+g,l,s,g,i)}a(i,s,l,u,c,d,v)}}function r(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return Ld.exports}var F0;function ru(){if(F0)return Or;F0=1,Object.defineProperty(Or,"__esModule",{value:!0}),Or.getSchemaRefs=Or.resolveUrl=Or.normalizeId=Or._getFullPath=Or.getFullPath=Or.inlineRef=void 0;const e=st(),t=B0(),r=ST(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function o(E,y=!0){return typeof E=="boolean"?!0:y===!0?!i(E):y?s(E)<=y:!1}Or.inlineRef=o;const a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function i(E){for(const y in E){if(a.has(y))return!0;const m=E[y];if(Array.isArray(m)&&m.some(i)||typeof m=="object"&&i(m))return!0}return!1}function s(E){let y=0;for(const m in E)if(m==="$ref"||(y++,!n.has(m)&&(typeof E[m]=="object"&&(0,e.eachItem)(E[m],p=>y+=s(p)),y===1/0)))return 1/0;return y}function l(E,y="",m){m!==!1&&(y=d(y));const p=E.parse(y);return u(E,p)}Or.getFullPath=l;function u(E,y){return E.serialize(y).split("#")[0]+"#"}Or._getFullPath=u;const c=/#\/?$/;function d(E){return E?E.replace(c,""):""}Or.normalizeId=d;function v(E,y,m){return m=d(m),E.resolve(y,m)}Or.resolveUrl=v;const g=/^[a-z_][-a-z0-9._]*$/i;function b(E,y){if(typeof E=="boolean")return{};const{schemaId:m,uriResolver:p}=this.opts,_=d(E[m]||y),T={"":_},O=l(p,_,!1),j={},C=new Set;return r(E,{allKeys:!0},(U,W,ee,fe)=>{if(fe===void 0)return;const ve=O+W;let Ne=T[fe];typeof U[m]=="string"&&(Ne=Te.call(this,U[m])),Oe.call(this,U.$anchor),Oe.call(this,U.$dynamicAnchor),T[W]=Ne;function Te(be){const Ee=this.opts.uriResolver.resolve;if(be=d(Ne?Ee(Ne,be):be),C.has(be))throw V(be);C.add(be);let ue=this.refs[be];return typeof ue=="string"&&(ue=this.refs[ue]),typeof ue=="object"?Z(U,ue.schema,be):be!==d(ve)&&(be[0]==="#"?(Z(U,j[be],be),j[be]=U):this.refs[be]=ve),be}function Oe(be){if(typeof be=="string"){if(!g.test(be))throw new Error(`invalid anchor "${be}"`);Te.call(this,`#${be}`)}}}),j;function Z(U,W,ee){if(W!==void 0&&!t(U,W))throw V(ee)}function V(U){return new Error(`reference "${U}" resolves to more than one schema`)}}return Or.getSchemaRefs=b,Or}var M0;function rs(){if(M0)return Zn;M0=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.getData=Zn.KeywordCxt=Zn.validateFunctionCode=void 0;const e=vT(),t=tu(),r=x0(),n=tu(),o=bT(),a=wT(),i=_T(),s=Ge(),l=un(),u=ru(),c=st(),d=eu();function v(Y){if(O(Y)&&(C(Y),T(Y))){y(Y);return}g(Y,()=>(0,e.topBoolOrEmptySchema)(Y))}Zn.validateFunctionCode=v;function g({gen:Y,validateName:re,schema:N,schemaEnv:M,opts:X},le){X.code.es5?Y.func(re,(0,s._)`${l.default.data}, ${l.default.valCxt}`,M.$async,()=>{Y.code((0,s._)`"use strict"; ${p(N,X)}`),E(Y,X),Y.code(le)}):Y.func(re,(0,s._)`${l.default.data}, ${b(X)}`,M.$async,()=>Y.code(p(N,X)).code(le))}function b(Y){return(0,s._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${Y.dynamicRef?(0,s._)`, ${l.default.dynamicAnchors}={}`:s.nil}}={}`}function E(Y,re){Y.if(l.default.valCxt,()=>{Y.var(l.default.instancePath,(0,s._)`${l.default.valCxt}.${l.default.instancePath}`),Y.var(l.default.parentData,(0,s._)`${l.default.valCxt}.${l.default.parentData}`),Y.var(l.default.parentDataProperty,(0,s._)`${l.default.valCxt}.${l.default.parentDataProperty}`),Y.var(l.default.rootData,(0,s._)`${l.default.valCxt}.${l.default.rootData}`),re.dynamicRef&&Y.var(l.default.dynamicAnchors,(0,s._)`${l.default.valCxt}.${l.default.dynamicAnchors}`)},()=>{Y.var(l.default.instancePath,(0,s._)`""`),Y.var(l.default.parentData,(0,s._)`undefined`),Y.var(l.default.parentDataProperty,(0,s._)`undefined`),Y.var(l.default.rootData,l.default.data),re.dynamicRef&&Y.var(l.default.dynamicAnchors,(0,s._)`{}`)})}function y(Y){const{schema:re,opts:N,gen:M}=Y;g(Y,()=>{N.$comment&&re.$comment&&fe(Y),U(Y),M.let(l.default.vErrors,null),M.let(l.default.errors,0),N.unevaluated&&m(Y),Z(Y),ve(Y)})}function m(Y){const{gen:re,validateName:N}=Y;Y.evaluated=re.const("evaluated",(0,s._)`${N}.evaluated`),re.if((0,s._)`${Y.evaluated}.dynamicProps`,()=>re.assign((0,s._)`${Y.evaluated}.props`,(0,s._)`undefined`)),re.if((0,s._)`${Y.evaluated}.dynamicItems`,()=>re.assign((0,s._)`${Y.evaluated}.items`,(0,s._)`undefined`))}function p(Y,re){const N=typeof Y=="object"&&Y[re.schemaId];return N&&(re.code.source||re.code.process)?(0,s._)`/*# sourceURL=${N} */`:s.nil}function _(Y,re){if(O(Y)&&(C(Y),T(Y))){j(Y,re);return}(0,e.boolOrEmptySchema)(Y,re)}function T({schema:Y,self:re}){if(typeof Y=="boolean")return!Y;for(const N in Y)if(re.RULES.all[N])return!0;return!1}function O(Y){return typeof Y.schema!="boolean"}function j(Y,re){const{schema:N,gen:M,opts:X}=Y;X.$comment&&N.$comment&&fe(Y),W(Y),ee(Y);const le=M.const("_errs",l.default.errors);Z(Y,le),M.var(re,(0,s._)`${le} === ${l.default.errors}`)}function C(Y){(0,c.checkUnknownRules)(Y),V(Y)}function Z(Y,re){if(Y.opts.jtd)return Te(Y,[],!1,re);const N=(0,t.getSchemaTypes)(Y.schema),M=(0,t.coerceAndCheckDataType)(Y,N);Te(Y,N,!M,re)}function V(Y){const{schema:re,errSchemaPath:N,opts:M,self:X}=Y;re.$ref&&M.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(re,X.RULES)&&X.logger.warn(`$ref: keywords ignored in schema at path "${N}"`)}function U(Y){const{schema:re,opts:N}=Y;re.default!==void 0&&N.useDefaults&&N.strictSchema&&(0,c.checkStrictMode)(Y,"default is ignored in the schema root")}function W(Y){const re=Y.schema[Y.opts.schemaId];re&&(Y.baseId=(0,u.resolveUrl)(Y.opts.uriResolver,Y.baseId,re))}function ee(Y){if(Y.schema.$async&&!Y.schemaEnv.$async)throw new Error("async schema in sync schema")}function fe({gen:Y,schemaEnv:re,schema:N,errSchemaPath:M,opts:X}){const le=N.$comment;if(X.$comment===!0)Y.code((0,s._)`${l.default.self}.logger.log(${le})`);else if(typeof X.$comment=="function"){const ye=(0,s.str)`${M}/$comment`,ge=Y.scopeValue("root",{ref:re.root});Y.code((0,s._)`${l.default.self}.opts.$comment(${le}, ${ye}, ${ge}.schema)`)}}function ve(Y){const{gen:re,schemaEnv:N,validateName:M,ValidationError:X,opts:le}=Y;N.$async?re.if((0,s._)`${l.default.errors} === 0`,()=>re.return(l.default.data),()=>re.throw((0,s._)`new ${X}(${l.default.vErrors})`)):(re.assign((0,s._)`${M}.errors`,l.default.vErrors),le.unevaluated&&Ne(Y),re.return((0,s._)`${l.default.errors} === 0`))}function Ne({gen:Y,evaluated:re,props:N,items:M}){N instanceof s.Name&&Y.assign((0,s._)`${re}.props`,N),M instanceof s.Name&&Y.assign((0,s._)`${re}.items`,M)}function Te(Y,re,N,M){const{gen:X,schema:le,data:ye,allErrors:ge,opts:K,self:$e}=Y,{RULES:te}=$e;if(le.$ref&&(K.ignoreKeywordsWithRef||!(0,c.schemaHasRulesButRef)(le,te))){X.block(()=>de(Y,"$ref",te.all.$ref.definition));return}K.jtd||be(Y,re),X.block(()=>{for(const H of te.rules)R(H);R(te.post)});function R(H){(0,r.shouldUseGroup)(le,H)&&(H.type?(X.if((0,n.checkDataType)(H.type,ye,K.strictNumbers)),Oe(Y,H),re.length===1&&re[0]===H.type&&N&&(X.else(),(0,n.reportTypeError)(Y)),X.endIf()):Oe(Y,H),ge||X.if((0,s._)`${l.default.errors} === ${M||0}`))}}function Oe(Y,re){const{gen:N,schema:M,opts:{useDefaults:X}}=Y;X&&(0,o.assignDefaults)(Y,re.type),N.block(()=>{for(const le of re.rules)(0,r.shouldUseRule)(M,le)&&de(Y,le.keyword,le.definition,re.type)})}function be(Y,re){Y.schemaEnv.meta||!Y.opts.strictTypes||(Ee(Y,re),Y.opts.allowUnionTypes||ue(Y,re),q(Y,Y.dataTypes))}function Ee(Y,re){if(re.length){if(!Y.dataTypes.length){Y.dataTypes=re;return}re.forEach(N=>{F(Y.dataTypes,N)||B(Y,`type "${N}" not allowed by context "${Y.dataTypes.join(",")}"`)}),k(Y,re)}}function ue(Y,re){re.length>1&&!(re.length===2&&re.includes("null"))&&B(Y,"use allowUnionTypes to allow union type keyword")}function q(Y,re){const N=Y.self.RULES.all;for(const M in N){const X=N[M];if(typeof X=="object"&&(0,r.shouldUseRule)(Y.schema,X)){const{type:le}=X.definition;le.length&&!le.some(ye=>D(re,ye))&&B(Y,`missing type "${le.join(",")}" for keyword "${M}"`)}}}function D(Y,re){return Y.includes(re)||re==="number"&&Y.includes("integer")}function F(Y,re){return Y.includes(re)||re==="integer"&&Y.includes("number")}function k(Y,re){const N=[];for(const M of Y.dataTypes)F(re,M)?N.push(M):re.includes("integer")&&M==="number"&&N.push("integer");Y.dataTypes=N}function B(Y,re){const N=Y.schemaEnv.baseId+Y.errSchemaPath;re+=` at "${N}" (strictTypes)`,(0,c.checkStrictMode)(Y,re,Y.opts.strictTypes)}class J{constructor(re,N,M){if((0,a.validateKeywordUsage)(re,N,M),this.gen=re.gen,this.allErrors=re.allErrors,this.keyword=M,this.data=re.data,this.schema=re.schema[M],this.$data=N.$data&&re.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,c.schemaRefOrVal)(re,this.schema,M,this.$data),this.schemaType=N.schemaType,this.parentSchema=re.schema,this.params={},this.it=re,this.def=N,this.$data)this.schemaCode=re.gen.const("vSchema",je(this.$data,re));else if(this.schemaCode=this.schemaValue,!(0,a.validSchemaType)(this.schema,N.schemaType,N.allowUndefined))throw new Error(`${M} value must be ${JSON.stringify(N.schemaType)}`);("code"in N?N.trackErrors:N.errors!==!1)&&(this.errsCount=re.gen.const("_errs",l.default.errors))}result(re,N,M){this.failResult((0,s.not)(re),N,M)}failResult(re,N,M){this.gen.if(re),M?M():this.error(),N?(this.gen.else(),N(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(re,N){this.failResult((0,s.not)(re),void 0,N)}fail(re){if(re===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(re),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(re){if(!this.$data)return this.fail(re);const{schemaCode:N}=this;this.fail((0,s._)`${N} !== undefined && (${(0,s.or)(this.invalid$data(),re)})`)}error(re,N,M){if(N){this.setParams(N),this._error(re,M),this.setParams({});return}this._error(re,M)}_error(re,N){(re?d.reportExtraError:d.reportError)(this,this.def.error,N)}$dataError(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}ok(re){this.allErrors||this.gen.if(re)}setParams(re,N){N?Object.assign(this.params,re):this.params=re}block$data(re,N,M=s.nil){this.gen.block(()=>{this.check$data(re,M),N()})}check$data(re=s.nil,N=s.nil){if(!this.$data)return;const{gen:M,schemaCode:X,schemaType:le,def:ye}=this;M.if((0,s.or)((0,s._)`${X} === undefined`,N)),re!==s.nil&&M.assign(re,!0),(le.length||ye.validateSchema)&&(M.elseIf(this.invalid$data()),this.$dataError(),re!==s.nil&&M.assign(re,!1)),M.else()}invalid$data(){const{gen:re,schemaCode:N,schemaType:M,def:X,it:le}=this;return(0,s.or)(ye(),ge());function ye(){if(M.length){if(!(N instanceof s.Name))throw new Error("ajv implementation error");const K=Array.isArray(M)?M:[M];return(0,s._)`${(0,n.checkDataTypes)(K,N,le.opts.strictNumbers,n.DataType.Wrong)}`}return s.nil}function ge(){if(X.validateSchema){const K=re.scopeValue("validate$data",{ref:X.validateSchema});return(0,s._)`!${K}(${N})`}return s.nil}}subschema(re,N){const M=(0,i.getSubschema)(this.it,re);(0,i.extendSubschemaData)(M,this.it,re),(0,i.extendSubschemaMode)(M,re);const X={...this.it,...M,items:void 0,props:void 0};return _(X,N),X}mergeEvaluated(re,N){const{it:M,gen:X}=this;M.opts.unevaluated&&(M.props!==!0&&re.props!==void 0&&(M.props=c.mergeEvaluated.props(X,re.props,M.props,N)),M.items!==!0&&re.items!==void 0&&(M.items=c.mergeEvaluated.items(X,re.items,M.items,N)))}mergeValidEvaluated(re,N){const{it:M,gen:X}=this;if(M.opts.unevaluated&&(M.props!==!0||M.items!==!0))return X.if(N,()=>this.mergeEvaluated(re,s.Name)),!0}}Zn.KeywordCxt=J;function de(Y,re,N,M){const X=new J(Y,N,re);"code"in N?N.code(X,M):X.$data&&N.validate?(0,a.funcKeywordCode)(X,N):"macro"in N?(0,a.macroKeywordCode)(X,N):(N.compile||N.validate)&&(0,a.funcKeywordCode)(X,N)}const se=/^\/(?:[^~]|~0|~1)*$/,Se=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function je(Y,{dataLevel:re,dataNames:N,dataPathArr:M}){let X,le;if(Y==="")return l.default.rootData;if(Y[0]==="/"){if(!se.test(Y))throw new Error(`Invalid JSON-pointer: ${Y}`);X=Y,le=l.default.rootData}else{const $e=Se.exec(Y);if(!$e)throw new Error(`Invalid JSON-pointer: ${Y}`);const te=+$e[1];if(X=$e[2],X==="#"){if(te>=re)throw new Error(K("property/index",te));return M[re-te]}if(te>re)throw new Error(K("data",te));if(le=N[re-te],!X)return le}let ye=le;const ge=X.split("/");for(const $e of ge)$e&&(le=(0,s._)`${le}${(0,s.getProperty)((0,c.unescapeJsonPointer)($e))}`,ye=(0,s._)`${ye} && ${le}`);return ye;function K($e,te){return`Cannot access ${$e} ${te} levels up, current level is ${re}`}}return Zn.getData=je,Zn}var nu={},V0;function ou(){if(V0)return nu;V0=1,Object.defineProperty(nu,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return nu.default=e,nu}var au={},U0;function ns(){if(U0)return au;U0=1,Object.defineProperty(au,"__esModule",{value:!0});const e=ru();class t extends Error{constructor(n,o,a,i){super(i||`can't resolve reference ${a} from id ${o}`),this.missingRef=(0,e.resolveUrl)(n,o,a),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(n,this.missingRef))}}return au.default=t,au}var Ur={},L0;function iu(){if(L0)return Ur;L0=1,Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.resolveSchema=Ur.getCompilingSchema=Ur.resolveRef=Ur.compileSchema=Ur.SchemaEnv=void 0;const e=Ge(),t=ou(),r=un(),n=ru(),o=st(),a=rs();class i{constructor(m){var p;this.refs={},this.dynamicAnchors={};let _;typeof m.schema=="object"&&(_=m.schema),this.schema=m.schema,this.schemaId=m.schemaId,this.root=m.root||this,this.baseId=(p=m.baseId)!==null&&p!==void 0?p:(0,n.normalizeId)(_==null?void 0:_[m.schemaId||"$id"]),this.schemaPath=m.schemaPath,this.localRefs=m.localRefs,this.meta=m.meta,this.$async=_==null?void 0:_.$async,this.refs={}}}Ur.SchemaEnv=i;function s(y){const m=c.call(this,y);if(m)return m;const p=(0,n.getFullPath)(this.opts.uriResolver,y.root.baseId),{es5:_,lines:T}=this.opts.code,{ownProperties:O}=this.opts,j=new e.CodeGen(this.scope,{es5:_,lines:T,ownProperties:O});let C;y.$async&&(C=j.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const Z=j.scopeName("validate");y.validateName=Z;const V={gen:j,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:j.scopeValue("schema",this.opts.code.source===!0?{ref:y.schema,code:(0,e.stringify)(y.schema)}:{ref:y.schema}),validateName:Z,ValidationError:C,schema:y.schema,schemaEnv:y,rootId:p,baseId:y.baseId||p,schemaPath:e.nil,errSchemaPath:y.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let U;try{this._compilations.add(y),(0,a.validateFunctionCode)(V),j.optimize(this.opts.code.optimize);const W=j.toString();U=`${j.scopeRefs(r.default.scope)}return ${W}`,this.opts.code.process&&(U=this.opts.code.process(U,y));const ee=new Function(`${r.default.self}`,`${r.default.scope}`,U)(this,this.scope.get());if(this.scope.value(Z,{ref:ee}),ee.errors=null,ee.schema=y.schema,ee.schemaEnv=y,y.$async&&(ee.$async=!0),this.opts.code.source===!0&&(ee.source={validateName:Z,validateCode:W,scopeValues:j._values}),this.opts.unevaluated){const{props:fe,items:ve}=V;ee.evaluated={props:fe instanceof e.Name?void 0:fe,items:ve instanceof e.Name?void 0:ve,dynamicProps:fe instanceof e.Name,dynamicItems:ve instanceof e.Name},ee.source&&(ee.source.evaluated=(0,e.stringify)(ee.evaluated))}return y.validate=ee,y}catch(W){throw delete y.validate,delete y.validateName,U&&this.logger.error("Error compiling schema, function code:",U),W}finally{this._compilations.delete(y)}}Ur.compileSchema=s;function l(y,m,p){var _;p=(0,n.resolveUrl)(this.opts.uriResolver,m,p);const T=y.refs[p];if(T)return T;let O=v.call(this,y,p);if(O===void 0){const j=(_=y.localRefs)===null||_===void 0?void 0:_[p],{schemaId:C}=this.opts;j&&(O=new i({schema:j,schemaId:C,root:y,baseId:m}))}if(O!==void 0)return y.refs[p]=u.call(this,O)}Ur.resolveRef=l;function u(y){return(0,n.inlineRef)(y.schema,this.opts.inlineRefs)?y.schema:y.validate?y:s.call(this,y)}function c(y){for(const m of this._compilations)if(d(m,y))return m}Ur.getCompilingSchema=c;function d(y,m){return y.schema===m.schema&&y.root===m.root&&y.baseId===m.baseId}function v(y,m){let p;for(;typeof(p=this.refs[m])=="string";)m=p;return p||this.schemas[m]||g.call(this,y,m)}function g(y,m){const p=this.opts.uriResolver.parse(m),_=(0,n._getFullPath)(this.opts.uriResolver,p);let T=(0,n.getFullPath)(this.opts.uriResolver,y.baseId,void 0);if(Object.keys(y.schema).length>0&&_===T)return E.call(this,p,y);const O=(0,n.normalizeId)(_),j=this.refs[O]||this.schemas[O];if(typeof j=="string"){const C=g.call(this,y,j);return typeof(C==null?void 0:C.schema)!="object"?void 0:E.call(this,p,C)}if(typeof(j==null?void 0:j.schema)=="object"){if(j.validate||s.call(this,j),O===(0,n.normalizeId)(m)){const{schema:C}=j,{schemaId:Z}=this.opts,V=C[Z];return V&&(T=(0,n.resolveUrl)(this.opts.uriResolver,T,V)),new i({schema:C,schemaId:Z,root:y,baseId:T})}return E.call(this,p,j)}}Ur.resolveSchema=g;const b=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function E(y,{baseId:m,schema:p,root:_}){var T;if(((T=y.fragment)===null||T===void 0?void 0:T[0])!=="/")return;for(const C of y.fragment.slice(1).split("/")){if(typeof p=="boolean")return;const Z=p[(0,o.unescapeFragment)(C)];if(Z===void 0)return;p=Z;const V=typeof p=="object"&&p[this.opts.schemaId];!b.has(C)&&V&&(m=(0,n.resolveUrl)(this.opts.uriResolver,m,V))}let O;if(typeof p!="boolean"&&p.$ref&&!(0,o.schemaHasRulesButRef)(p,this.RULES)){const C=(0,n.resolveUrl)(this.opts.uriResolver,m,p.$ref);O=g.call(this,_,C)}const{schemaId:j}=this.opts;if(O=O||new i({schema:p,schemaId:j,root:_,baseId:m}),O.schema!==O.root.schema)return O}return Ur}const $T="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",ET="Meta-schema for $data reference (JSON AnySchema extension proposal)",OT="object",AT=["$data"],PT={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},xT=!1,TT={$id:$T,description:ET,type:OT,required:AT,properties:PT,additionalProperties:xT};var su={},os={exports:{}},z0,q0;function jT(){return q0||(q0=1,z0={HEX:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15}}),z0}var zd,W0;function kT(){if(W0)return zd;W0=1;const{HEX:e}=jT();function t(b){if(i(b,".")<3)return{host:b,isIPV4:!1};const E=b.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[],[y]=E;return y?{host:a(y,"."),isIPV4:!0}:{host:b,isIPV4:!1}}function r(b,E=!1){let y="",m=!0;for(const p of b){if(e[p]===void 0)return;p!=="0"&&m===!0&&(m=!1),m||(y+=p)}return E&&y.length===0&&(y="0"),y}function n(b){let E=0;const y={error:!1,address:"",zone:""},m=[],p=[];let _=!1,T=!1,O=!1;function j(){if(p.length){if(_===!1){const C=r(p);if(C!==void 0)m.push(C);else return y.error=!0,!1}p.length=0}return!0}for(let C=0;C<b.length;C++){const Z=b[C];if(!(Z==="["||Z==="]"))if(Z===":"){if(T===!0&&(O=!0),!j())break;if(E++,m.push(":"),E>7){y.error=!0;break}C-1>=0&&b[C-1]===":"&&(T=!0);continue}else if(Z==="%"){if(!j())break;_=!0}else{p.push(Z);continue}}return p.length&&(_?y.zone=p.join(""):O?m.push(p.join("")):m.push(r(p))),y.address=m.join(""),y}function o(b,E={}){if(i(b,":")<2)return{host:b,isIPV6:!1};const y=n(b);if(y.error)return{host:b,isIPV6:!1};{let m=y.address,p=y.address;return y.zone&&(m+="%"+y.zone,p+="%25"+y.zone),{host:m,escapedHost:p,isIPV6:!0}}}function a(b,E){let y="",m=!0;const p=b.length;for(let _=0;_<p;_++){const T=b[_];T==="0"&&m?(_+1<=p&&b[_+1]===E||_+1===p)&&(y+=T,m=!1):(T===E?m=!0:m=!1,y+=T)}return y}function i(b,E){let y=0;for(let m=0;m<b.length;m++)b[m]===E&&y++;return y}const s=/^\.\.?\//u,l=/^\/\.(?:\/|$)/u,u=/^\/\.\.(?:\/|$)/u,c=/^\/?(?:.|\n)*?(?=\/|$)/u;function d(b){const E=[];for(;b.length;)if(b.match(s))b=b.replace(s,"");else if(b.match(l))b=b.replace(l,"/");else if(b.match(u))b=b.replace(u,"/"),E.pop();else if(b==="."||b==="..")b="";else{const y=b.match(c);if(y){const m=y[0];b=b.slice(m.length),E.push(m)}else throw new Error("Unexpected dot segment condition")}return E.join("")}function v(b,E){const y=E!==!0?escape:unescape;return b.scheme!==void 0&&(b.scheme=y(b.scheme)),b.userinfo!==void 0&&(b.userinfo=y(b.userinfo)),b.host!==void 0&&(b.host=y(b.host)),b.path!==void 0&&(b.path=y(b.path)),b.query!==void 0&&(b.query=y(b.query)),b.fragment!==void 0&&(b.fragment=y(b.fragment)),b}function g(b,E){const y=[];if(b.userinfo!==void 0&&(y.push(b.userinfo),y.push("@")),b.host!==void 0){let m=unescape(b.host);const p=t(m);if(p.isIPV4)m=p.host;else{const _=o(p.host,{isIPV4:!1});_.isIPV6===!0?m=`[${_.escapedHost}]`:m=b.host}y.push(m)}return(typeof b.port=="number"||typeof b.port=="string")&&(y.push(":"),y.push(String(b.port))),y.length?y.join(""):void 0}return zd={recomposeAuthority:g,normalizeComponentEncoding:v,removeDotSegments:d,normalizeIPv4:t,normalizeIPv6:o,stringArrayToHexStripped:r},zd}var qd,H0;function CT(){if(H0)return qd;H0=1;const e=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function r(y){return typeof y.secure=="boolean"?y.secure:String(y.scheme).toLowerCase()==="wss"}function n(y){return y.host||(y.error=y.error||"HTTP URIs must have a host."),y}function o(y){const m=String(y.scheme).toLowerCase()==="https";return(y.port===(m?443:80)||y.port==="")&&(y.port=void 0),y.path||(y.path="/"),y}function a(y){return y.secure=r(y),y.resourceName=(y.path||"/")+(y.query?"?"+y.query:""),y.path=void 0,y.query=void 0,y}function i(y){if((y.port===(r(y)?443:80)||y.port==="")&&(y.port=void 0),typeof y.secure=="boolean"&&(y.scheme=y.secure?"wss":"ws",y.secure=void 0),y.resourceName){const[m,p]=y.resourceName.split("?");y.path=m&&m!=="/"?m:void 0,y.query=p,y.resourceName=void 0}return y.fragment=void 0,y}function s(y,m){if(!y.path)return y.error="URN can not be parsed",y;const p=y.path.match(t);if(p){const _=m.scheme||y.scheme||"urn";y.nid=p[1].toLowerCase(),y.nss=p[2];const T=`${_}:${m.nid||y.nid}`,O=E[T];y.path=void 0,O&&(y=O.parse(y,m))}else y.error=y.error||"URN can not be parsed.";return y}function l(y,m){const p=m.scheme||y.scheme||"urn",_=y.nid.toLowerCase(),T=`${p}:${m.nid||_}`,O=E[T];O&&(y=O.serialize(y,m));const j=y,C=y.nss;return j.path=`${_||m.nid}:${C}`,m.skipEscape=!0,j}function u(y,m){const p=y;return p.uuid=p.nss,p.nss=void 0,!m.tolerant&&(!p.uuid||!e.test(p.uuid))&&(p.error=p.error||"UUID is not valid."),p}function c(y){const m=y;return m.nss=(y.uuid||"").toLowerCase(),m}const d={scheme:"http",domainHost:!0,parse:n,serialize:o},v={scheme:"https",domainHost:d.domainHost,parse:n,serialize:o},g={scheme:"ws",domainHost:!0,parse:a,serialize:i},b={scheme:"wss",domainHost:g.domainHost,parse:g.parse,serialize:g.serialize},E={http:d,https:v,ws:g,wss:b,urn:{scheme:"urn",parse:s,serialize:l,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:u,serialize:c,skipNormalize:!0}};return qd=E,qd}var G0;function NT(){if(G0)return os.exports;G0=1;const{normalizeIPv6:e,normalizeIPv4:t,removeDotSegments:r,recomposeAuthority:n,normalizeComponentEncoding:o}=kT(),a=CT();function i(y,m){return typeof y=="string"?y=c(b(y,m),m):typeof y=="object"&&(y=b(c(y,m),m)),y}function s(y,m,p){const _=Object.assign({scheme:"null"},p),T=l(b(y,_),b(m,_),_,!0);return c(T,{..._,skipEscape:!0})}function l(y,m,p,_){const T={};return _||(y=b(c(y,p),p),m=b(c(m,p),p)),p=p||{},!p.tolerant&&m.scheme?(T.scheme=m.scheme,T.userinfo=m.userinfo,T.host=m.host,T.port=m.port,T.path=r(m.path||""),T.query=m.query):(m.userinfo!==void 0||m.host!==void 0||m.port!==void 0?(T.userinfo=m.userinfo,T.host=m.host,T.port=m.port,T.path=r(m.path||""),T.query=m.query):(m.path?(m.path.charAt(0)==="/"?T.path=r(m.path):((y.userinfo!==void 0||y.host!==void 0||y.port!==void 0)&&!y.path?T.path="/"+m.path:y.path?T.path=y.path.slice(0,y.path.lastIndexOf("/")+1)+m.path:T.path=m.path,T.path=r(T.path)),T.query=m.query):(T.path=y.path,m.query!==void 0?T.query=m.query:T.query=y.query),T.userinfo=y.userinfo,T.host=y.host,T.port=y.port),T.scheme=y.scheme),T.fragment=m.fragment,T}function u(y,m,p){return typeof y=="string"?(y=unescape(y),y=c(o(b(y,p),!0),{...p,skipEscape:!0})):typeof y=="object"&&(y=c(o(y,!0),{...p,skipEscape:!0})),typeof m=="string"?(m=unescape(m),m=c(o(b(m,p),!0),{...p,skipEscape:!0})):typeof m=="object"&&(m=c(o(m,!0),{...p,skipEscape:!0})),y.toLowerCase()===m.toLowerCase()}function c(y,m){const p={host:y.host,scheme:y.scheme,userinfo:y.userinfo,port:y.port,path:y.path,query:y.query,nid:y.nid,nss:y.nss,uuid:y.uuid,fragment:y.fragment,reference:y.reference,resourceName:y.resourceName,secure:y.secure,error:""},_=Object.assign({},m),T=[],O=a[(_.scheme||p.scheme||"").toLowerCase()];O&&O.serialize&&O.serialize(p,_),p.path!==void 0&&(_.skipEscape?p.path=unescape(p.path):(p.path=escape(p.path),p.scheme!==void 0&&(p.path=p.path.split("%3A").join(":")))),_.reference!=="suffix"&&p.scheme&&T.push(p.scheme,":");const j=n(p,_);if(j!==void 0&&(_.reference!=="suffix"&&T.push("//"),T.push(j),p.path&&p.path.charAt(0)!=="/"&&T.push("/")),p.path!==void 0){let C=p.path;!_.absolutePath&&(!O||!O.absolutePath)&&(C=r(C)),j===void 0&&(C=C.replace(/^\/\//u,"/%2F")),T.push(C)}return p.query!==void 0&&T.push("?",p.query),p.fragment!==void 0&&T.push("#",p.fragment),T.join("")}const d=Array.from({length:127},(y,m)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(m)));function v(y){let m=0;for(let p=0,_=y.length;p<_;++p)if(m=y.charCodeAt(p),m>126||d[m])return!0;return!1}const g=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function b(y,m){const p=Object.assign({},m),_={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},T=y.indexOf("%")!==-1;let O=!1;p.reference==="suffix"&&(y=(p.scheme?p.scheme+":":"")+"//"+y);const j=y.match(g);if(j){if(_.scheme=j[1],_.userinfo=j[3],_.host=j[4],_.port=parseInt(j[5],10),_.path=j[6]||"",_.query=j[7],_.fragment=j[8],isNaN(_.port)&&(_.port=j[5]),_.host){const Z=t(_.host);if(Z.isIPV4===!1){const V=e(Z.host,{isIPV4:!1});_.host=V.host.toLowerCase(),O=V.isIPV6}else _.host=Z.host,O=!0}_.scheme===void 0&&_.userinfo===void 0&&_.host===void 0&&_.port===void 0&&!_.path&&_.query===void 0?_.reference="same-document":_.scheme===void 0?_.reference="relative":_.fragment===void 0?_.reference="absolute":_.reference="uri",p.reference&&p.reference!=="suffix"&&p.reference!==_.reference&&(_.error=_.error||"URI is not a "+p.reference+" reference.");const C=a[(p.scheme||_.scheme||"").toLowerCase()];if(!p.unicodeSupport&&(!C||!C.unicodeSupport)&&_.host&&(p.domainHost||C&&C.domainHost)&&O===!1&&v(_.host))try{_.host=URL.domainToASCII(_.host.toLowerCase())}catch(Z){_.error=_.error||"Host's domain name can not be converted to ASCII: "+Z}(!C||C&&!C.skipNormalize)&&(T&&_.scheme!==void 0&&(_.scheme=unescape(_.scheme)),T&&_.host!==void 0&&(_.host=unescape(_.host)),_.path!==void 0&&_.path.length&&(_.path=escape(unescape(_.path))),_.fragment!==void 0&&_.fragment.length&&(_.fragment=encodeURI(decodeURIComponent(_.fragment)))),C&&C.parse&&C.parse(_,p)}else _.error=_.error||"URI can not be parsed.";return _}const E={SCHEMES:a,normalize:i,resolve:s,resolveComponents:l,equal:u,serialize:c,parse:b};return os.exports=E,os.exports.default=E,os.exports.fastUri=E,os.exports}var J0;function IT(){if(J0)return su;J0=1,Object.defineProperty(su,"__esModule",{value:!0});const e=NT();return e.code='require("ajv/dist/runtime/uri").default',su.default=e,su}var K0;function Z0(){return K0||(K0=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=rs();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Ge();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=ou(),o=ns(),a=A0(),i=iu(),s=Ge(),l=ru(),u=tu(),c=st(),d=TT,v=IT(),g=(ue,q)=>new RegExp(ue,q);g.code="new RegExp";const b=["removeAdditional","useDefaults","coerceTypes"],E=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),y={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},m={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},p=200;function _(ue){var q,D,F,k,B,J,de,se,Se,je,Y,re,N,M,X,le,ye,ge,K,$e,te,R,H,oe,he;const _e=ue.strict,h=(q=ue.code)===null||q===void 0?void 0:q.optimize,$=h===!0||h===void 0?1:h||0,x=(F=(D=ue.code)===null||D===void 0?void 0:D.regExp)!==null&&F!==void 0?F:g,z=(k=ue.uriResolver)!==null&&k!==void 0?k:v.default;return{strictSchema:(J=(B=ue.strictSchema)!==null&&B!==void 0?B:_e)!==null&&J!==void 0?J:!0,strictNumbers:(se=(de=ue.strictNumbers)!==null&&de!==void 0?de:_e)!==null&&se!==void 0?se:!0,strictTypes:(je=(Se=ue.strictTypes)!==null&&Se!==void 0?Se:_e)!==null&&je!==void 0?je:"log",strictTuples:(re=(Y=ue.strictTuples)!==null&&Y!==void 0?Y:_e)!==null&&re!==void 0?re:"log",strictRequired:(M=(N=ue.strictRequired)!==null&&N!==void 0?N:_e)!==null&&M!==void 0?M:!1,code:ue.code?{...ue.code,optimize:$,regExp:x}:{optimize:$,regExp:x},loopRequired:(X=ue.loopRequired)!==null&&X!==void 0?X:p,loopEnum:(le=ue.loopEnum)!==null&&le!==void 0?le:p,meta:(ye=ue.meta)!==null&&ye!==void 0?ye:!0,messages:(ge=ue.messages)!==null&&ge!==void 0?ge:!0,inlineRefs:(K=ue.inlineRefs)!==null&&K!==void 0?K:!0,schemaId:($e=ue.schemaId)!==null&&$e!==void 0?$e:"$id",addUsedSchema:(te=ue.addUsedSchema)!==null&&te!==void 0?te:!0,validateSchema:(R=ue.validateSchema)!==null&&R!==void 0?R:!0,validateFormats:(H=ue.validateFormats)!==null&&H!==void 0?H:!0,unicodeRegExp:(oe=ue.unicodeRegExp)!==null&&oe!==void 0?oe:!0,int32range:(he=ue.int32range)!==null&&he!==void 0?he:!0,uriResolver:z}}class T{constructor(q={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,q=this.opts={...q,..._(q)};const{es5:D,lines:F}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:E,es5:D,lines:F}),this.logger=ee(q.logger);const k=q.validateFormats;q.validateFormats=!1,this.RULES=(0,a.getRules)(),O.call(this,y,q,"NOT SUPPORTED"),O.call(this,m,q,"DEPRECATED","warn"),this._metaOpts=U.call(this),q.formats&&Z.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),q.keywords&&V.call(this,q.keywords),typeof q.meta=="object"&&this.addMetaSchema(q.meta),C.call(this),q.validateFormats=k}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:q,meta:D,schemaId:F}=this.opts;let k=d;F==="id"&&(k={...d},k.id=k.$id,delete k.$id),D&&q&&this.addMetaSchema(k,k[F],!1)}defaultMeta(){const{meta:q,schemaId:D}=this.opts;return this.opts.defaultMeta=typeof q=="object"?q[D]||q:void 0}validate(q,D){let F;if(typeof q=="string"){if(F=this.getSchema(q),!F)throw new Error(`no schema with key or ref "${q}"`)}else F=this.compile(q);const k=F(D);return"$async"in F||(this.errors=F.errors),k}compile(q,D){const F=this._addSchema(q,D);return F.validate||this._compileSchemaEnv(F)}compileAsync(q,D){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:F}=this.opts;return k.call(this,q,D);async function k(je,Y){await B.call(this,je.$schema);const re=this._addSchema(je,Y);return re.validate||J.call(this,re)}async function B(je){je&&!this.getSchema(je)&&await k.call(this,{$ref:je},!0)}async function J(je){try{return this._compileSchemaEnv(je)}catch(Y){if(!(Y instanceof o.default))throw Y;return de.call(this,Y),await se.call(this,Y.missingSchema),J.call(this,je)}}function de({missingSchema:je,missingRef:Y}){if(this.refs[je])throw new Error(`AnySchema ${je} is loaded but ${Y} cannot be resolved`)}async function se(je){const Y=await Se.call(this,je);this.refs[je]||await B.call(this,Y.$schema),this.refs[je]||this.addSchema(Y,je,D)}async function Se(je){const Y=this._loading[je];if(Y)return Y;try{return await(this._loading[je]=F(je))}finally{delete this._loading[je]}}}addSchema(q,D,F,k=this.opts.validateSchema){if(Array.isArray(q)){for(const J of q)this.addSchema(J,void 0,F,k);return this}let B;if(typeof q=="object"){const{schemaId:J}=this.opts;if(B=q[J],B!==void 0&&typeof B!="string")throw new Error(`schema ${J} must be string`)}return D=(0,l.normalizeId)(D||B),this._checkUnique(D),this.schemas[D]=this._addSchema(q,F,D,k,!0),this}addMetaSchema(q,D,F=this.opts.validateSchema){return this.addSchema(q,D,!0,F),this}validateSchema(q,D){if(typeof q=="boolean")return!0;let F;if(F=q.$schema,F!==void 0&&typeof F!="string")throw new Error("$schema must be a string");if(F=F||this.opts.defaultMeta||this.defaultMeta(),!F)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const k=this.validate(F,q);if(!k&&D){const B="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(B);else throw new Error(B)}return k}getSchema(q){let D;for(;typeof(D=j.call(this,q))=="string";)q=D;if(D===void 0){const{schemaId:F}=this.opts,k=new i.SchemaEnv({schema:{},schemaId:F});if(D=i.resolveSchema.call(this,k,q),!D)return;this.refs[q]=D}return D.validate||this._compileSchemaEnv(D)}removeSchema(q){if(q instanceof RegExp)return this._removeAllSchemas(this.schemas,q),this._removeAllSchemas(this.refs,q),this;switch(typeof q){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const D=j.call(this,q);return typeof D=="object"&&this._cache.delete(D.schema),delete this.schemas[q],delete this.refs[q],this}case"object":{const D=q;this._cache.delete(D);let F=q[this.opts.schemaId];return F&&(F=(0,l.normalizeId)(F),delete this.schemas[F],delete this.refs[F]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(q){for(const D of q)this.addKeyword(D);return this}addKeyword(q,D){let F;if(typeof q=="string")F=q,typeof D=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),D.keyword=F);else if(typeof q=="object"&&D===void 0){if(D=q,F=D.keyword,Array.isArray(F)&&!F.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(ve.call(this,F,D),!D)return(0,c.eachItem)(F,B=>Ne.call(this,B)),this;Oe.call(this,D);const k={...D,type:(0,u.getJSONTypes)(D.type),schemaType:(0,u.getJSONTypes)(D.schemaType)};return(0,c.eachItem)(F,k.type.length===0?B=>Ne.call(this,B,k):B=>k.type.forEach(J=>Ne.call(this,B,k,J))),this}getKeyword(q){const D=this.RULES.all[q];return typeof D=="object"?D.definition:!!D}removeKeyword(q){const{RULES:D}=this;delete D.keywords[q],delete D.all[q];for(const F of D.rules){const k=F.rules.findIndex(B=>B.keyword===q);k>=0&&F.rules.splice(k,1)}return this}addFormat(q,D){return typeof D=="string"&&(D=new RegExp(D)),this.formats[q]=D,this}errorsText(q=this.errors,{separator:D=", ",dataVar:F="data"}={}){return!q||q.length===0?"No errors":q.map(k=>`${F}${k.instancePath} ${k.message}`).reduce((k,B)=>k+D+B)}$dataMetaSchema(q,D){const F=this.RULES.all;q=JSON.parse(JSON.stringify(q));for(const k of D){const B=k.split("/").slice(1);let J=q;for(const de of B)J=J[de];for(const de in F){const se=F[de];if(typeof se!="object")continue;const{$data:Se}=se.definition,je=J[de];Se&&je&&(J[de]=Ee(je))}}return q}_removeAllSchemas(q,D){for(const F in q){const k=q[F];(!D||D.test(F))&&(typeof k=="string"?delete q[F]:k&&!k.meta&&(this._cache.delete(k.schema),delete q[F]))}}_addSchema(q,D,F,k=this.opts.validateSchema,B=this.opts.addUsedSchema){let J;const{schemaId:de}=this.opts;if(typeof q=="object")J=q[de];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof q!="boolean")throw new Error("schema must be object or boolean")}let se=this._cache.get(q);if(se!==void 0)return se;F=(0,l.normalizeId)(J||F);const Se=l.getSchemaRefs.call(this,q,F);return se=new i.SchemaEnv({schema:q,schemaId:de,meta:D,baseId:F,localRefs:Se}),this._cache.set(se.schema,se),B&&!F.startsWith("#")&&(F&&this._checkUnique(F),this.refs[F]=se),k&&this.validateSchema(q,!0),se}_checkUnique(q){if(this.schemas[q]||this.refs[q])throw new Error(`schema with key or id "${q}" already exists`)}_compileSchemaEnv(q){if(q.meta?this._compileMetaSchema(q):i.compileSchema.call(this,q),!q.validate)throw new Error("ajv implementation error");return q.validate}_compileMetaSchema(q){const D=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,q)}finally{this.opts=D}}}T.ValidationError=n.default,T.MissingRefError=o.default,e.default=T;function O(ue,q,D,F="error"){for(const k in ue){const B=k;B in q&&this.logger[F](`${D}: option ${k}. ${ue[B]}`)}}function j(ue){return ue=(0,l.normalizeId)(ue),this.schemas[ue]||this.refs[ue]}function C(){const ue=this.opts.schemas;if(ue)if(Array.isArray(ue))this.addSchema(ue);else for(const q in ue)this.addSchema(ue[q],q)}function Z(){for(const ue in this.opts.formats){const q=this.opts.formats[ue];q&&this.addFormat(ue,q)}}function V(ue){if(Array.isArray(ue)){this.addVocabulary(ue);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const q in ue){const D=ue[q];D.keyword||(D.keyword=q),this.addKeyword(D)}}function U(){const ue={...this.opts};for(const q of b)delete ue[q];return ue}const W={log(){},warn(){},error(){}};function ee(ue){if(ue===!1)return W;if(ue===void 0)return console;if(ue.log&&ue.warn&&ue.error)return ue;throw new Error("logger must implement log, warn and error methods")}const fe=/^[a-z_$][a-z0-9_$:-]*$/i;function ve(ue,q){const{RULES:D}=this;if((0,c.eachItem)(ue,F=>{if(D.keywords[F])throw new Error(`Keyword ${F} is already defined`);if(!fe.test(F))throw new Error(`Keyword ${F} has invalid name`)}),!!q&&q.$data&&!("code"in q||"validate"in q))throw new Error('$data keyword must have "code" or "validate" function')}function Ne(ue,q,D){var F;const k=q==null?void 0:q.post;if(D&&k)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:B}=this;let J=k?B.post:B.rules.find(({type:se})=>se===D);if(J||(J={type:D,rules:[]},B.rules.push(J)),B.keywords[ue]=!0,!q)return;const de={keyword:ue,definition:{...q,type:(0,u.getJSONTypes)(q.type),schemaType:(0,u.getJSONTypes)(q.schemaType)}};q.before?Te.call(this,J,de,q.before):J.rules.push(de),B.all[ue]=de,(F=q.implements)===null||F===void 0||F.forEach(se=>this.addKeyword(se))}function Te(ue,q,D){const F=ue.rules.findIndex(k=>k.keyword===D);F>=0?ue.rules.splice(F,0,q):(ue.rules.push(q),this.logger.warn(`rule ${D} is not defined`))}function Oe(ue){let{metaSchema:q}=ue;q!==void 0&&(ue.$data&&this.opts.$data&&(q=Ee(q)),ue.validateSchema=this.compile(q,!0))}const be={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Ee(ue){return{anyOf:[ue,be]}}}(d0)),d0}var lu={},uu={},cu={},Y0;function RT(){if(Y0)return cu;Y0=1,Object.defineProperty(cu,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return cu.default=e,cu}var yo={},X0;function Wd(){if(X0)return yo;X0=1,Object.defineProperty(yo,"__esModule",{value:!0}),yo.callRef=yo.getValidate=void 0;const e=ns(),t=fn(),r=Ge(),n=un(),o=iu(),a=st(),i={keyword:"$ref",schemaType:"string",code(u){const{gen:c,schema:d,it:v}=u,{baseId:g,schemaEnv:b,validateName:E,opts:y,self:m}=v,{root:p}=b;if((d==="#"||d==="#/")&&g===p.baseId)return T();const _=o.resolveRef.call(m,p,g,d);if(_===void 0)throw new e.default(v.opts.uriResolver,g,d);if(_ instanceof o.SchemaEnv)return O(_);return j(_);function T(){if(b===p)return l(u,E,b,b.$async);const C=c.scopeValue("root",{ref:p});return l(u,(0,r._)`${C}.validate`,p,p.$async)}function O(C){const Z=s(u,C);l(u,Z,C,C.$async)}function j(C){const Z=c.scopeValue("schema",y.code.source===!0?{ref:C,code:(0,r.stringify)(C)}:{ref:C}),V=c.name("valid"),U=u.subschema({schema:C,dataTypes:[],schemaPath:r.nil,topSchemaRef:Z,errSchemaPath:d},V);u.mergeEvaluated(U),u.ok(V)}}};function s(u,c){const{gen:d}=u;return c.validate?d.scopeValue("validate",{ref:c.validate}):(0,r._)`${d.scopeValue("wrapper",{ref:c})}.validate`}yo.getValidate=s;function l(u,c,d,v){const{gen:g,it:b}=u,{allErrors:E,schemaEnv:y,opts:m}=b,p=m.passContext?n.default.this:r.nil;v?_():T();function _(){if(!y.$async)throw new Error("async schema referenced by sync schema");const C=g.let("valid");g.try(()=>{g.code((0,r._)`await ${(0,t.callValidateCode)(u,c,p)}`),j(c),E||g.assign(C,!0)},Z=>{g.if((0,r._)`!(${Z} instanceof ${b.ValidationError})`,()=>g.throw(Z)),O(Z),E||g.assign(C,!1)}),u.ok(C)}function T(){u.result((0,t.callValidateCode)(u,c,p),()=>j(c),()=>O(c))}function O(C){const Z=(0,r._)`${C}.errors`;g.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${Z} : ${n.default.vErrors}.concat(${Z})`),g.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function j(C){var Z;if(!b.opts.unevaluated)return;const V=(Z=d==null?void 0:d.validate)===null||Z===void 0?void 0:Z.evaluated;if(b.props!==!0)if(V&&!V.dynamicProps)V.props!==void 0&&(b.props=a.mergeEvaluated.props(g,V.props,b.props));else{const U=g.var("props",(0,r._)`${C}.evaluated.props`);b.props=a.mergeEvaluated.props(g,U,b.props,r.Name)}if(b.items!==!0)if(V&&!V.dynamicItems)V.items!==void 0&&(b.items=a.mergeEvaluated.items(g,V.items,b.items));else{const U=g.var("items",(0,r._)`${C}.evaluated.items`);b.items=a.mergeEvaluated.items(g,U,b.items,r.Name)}}}return yo.callRef=l,yo.default=i,yo}var Q0;function BT(){if(Q0)return uu;Q0=1,Object.defineProperty(uu,"__esModule",{value:!0});const e=RT(),t=Wd(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return uu.default=r,uu}var fu={},du={},eb;function DT(){if(eb)return du;eb=1,Object.defineProperty(du,"__esModule",{value:!0});const e=Ge(),t=e.operators,r={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},n={message:({keyword:a,schemaCode:i})=>(0,e.str)`must be ${r[a].okStr} ${i}`,params:({keyword:a,schemaCode:i})=>(0,e._)`{comparison: ${r[a].okStr}, limit: ${i}}`},o={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(a){const{keyword:i,data:s,schemaCode:l}=a;a.fail$data((0,e._)`${s} ${r[i].fail} ${l} || isNaN(${s})`)}};return du.default=o,du}var pu={},tb;function FT(){if(tb)return pu;tb=1,Object.defineProperty(pu,"__esModule",{value:!0});const e=Ge(),t={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:r})=>(0,e.str)`must be multiple of ${r}`,params:({schemaCode:r})=>(0,e._)`{multipleOf: ${r}}`},code(r){const{gen:n,data:o,schemaCode:a,it:i}=r,s=i.opts.multipleOfPrecision,l=n.let("res"),u=s?(0,e._)`Math.abs(Math.round(${l}) - ${l}) > 1e-${s}`:(0,e._)`${l} !== parseInt(${l})`;r.fail$data((0,e._)`(${a} === 0 || (${l} = ${o}/${a}, ${u}))`)}};return pu.default=t,pu}var hu={},mu={},rb;function MT(){if(rb)return mu;rb=1,Object.defineProperty(mu,"__esModule",{value:!0});function e(t){const r=t.length;let n=0,o=0,a;for(;o<r;)n++,a=t.charCodeAt(o++),a>=55296&&a<=56319&&o<r&&(a=t.charCodeAt(o),(a&64512)===56320&&o++);return n}return mu.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',mu}var nb;function VT(){if(nb)return hu;nb=1,Object.defineProperty(hu,"__esModule",{value:!0});const e=Ge(),t=st(),r=MT(),n={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:o,schemaCode:a}){const i=o==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${i} than ${a} characters`},params:({schemaCode:o})=>(0,e._)`{limit: ${o}}`},code(o){const{keyword:a,data:i,schemaCode:s,it:l}=o,u=a==="maxLength"?e.operators.GT:e.operators.LT,c=l.opts.unicode===!1?(0,e._)`${i}.length`:(0,e._)`${(0,t.useFunc)(o.gen,r.default)}(${i})`;o.fail$data((0,e._)`${c} ${u} ${s}`)}};return hu.default=n,hu}var yu={},ob;function UT(){if(ob)return yu;ob=1,Object.defineProperty(yu,"__esModule",{value:!0});const e=fn(),t=Ge(),r={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,t.str)`must match pattern "${n}"`,params:({schemaCode:n})=>(0,t._)`{pattern: ${n}}`},code(n){const{data:o,$data:a,schema:i,schemaCode:s,it:l}=n,u=l.opts.unicodeRegExp?"u":"",c=a?(0,t._)`(new RegExp(${s}, ${u}))`:(0,e.usePattern)(n,i);n.fail$data((0,t._)`!${c}.test(${o})`)}};return yu.default=r,yu}var gu={},ab;function LT(){if(ab)return gu;ab=1,Object.defineProperty(gu,"__esModule",{value:!0});const e=Ge(),t={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:n}){const o=r==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${n} properties`},params:({schemaCode:r})=>(0,e._)`{limit: ${r}}`},code(r){const{keyword:n,data:o,schemaCode:a}=r,i=n==="maxProperties"?e.operators.GT:e.operators.LT;r.fail$data((0,e._)`Object.keys(${o}).length ${i} ${a}`)}};return gu.default=t,gu}var vu={},ib;function zT(){if(ib)return vu;ib=1,Object.defineProperty(vu,"__esModule",{value:!0});const e=fn(),t=Ge(),r=st(),n={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:o}})=>(0,t.str)`must have required property '${o}'`,params:({params:{missingProperty:o}})=>(0,t._)`{missingProperty: ${o}}`},code(o){const{gen:a,schema:i,schemaCode:s,data:l,$data:u,it:c}=o,{opts:d}=c;if(!u&&i.length===0)return;const v=i.length>=d.loopRequired;if(c.allErrors?g():b(),d.strictRequired){const m=o.parentSchema.properties,{definedProperties:p}=o.it;for(const _ of i)if((m==null?void 0:m[_])===void 0&&!p.has(_)){const T=c.schemaEnv.baseId+c.errSchemaPath,O=`required property "${_}" is not defined at "${T}" (strictRequired)`;(0,r.checkStrictMode)(c,O,c.opts.strictRequired)}}function g(){if(v||u)o.block$data(t.nil,E);else for(const m of i)(0,e.checkReportMissingProp)(o,m)}function b(){const m=a.let("missing");if(v||u){const p=a.let("valid",!0);o.block$data(p,()=>y(m,p)),o.ok(p)}else a.if((0,e.checkMissingProp)(o,i,m)),(0,e.reportMissingProp)(o,m),a.else()}function E(){a.forOf("prop",s,m=>{o.setParams({missingProperty:m}),a.if((0,e.noPropertyInData)(a,l,m,d.ownProperties),()=>o.error())})}function y(m,p){o.setParams({missingProperty:m}),a.forOf(m,s,()=>{a.assign(p,(0,e.propertyInData)(a,l,m,d.ownProperties)),a.if((0,t.not)(p),()=>{o.error(),a.break()})},t.nil)}}};return vu.default=n,vu}var bu={},sb;function qT(){if(sb)return bu;sb=1,Object.defineProperty(bu,"__esModule",{value:!0});const e=Ge(),t={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:n}){const o=r==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${n} items`},params:({schemaCode:r})=>(0,e._)`{limit: ${r}}`},code(r){const{keyword:n,data:o,schemaCode:a}=r,i=n==="maxItems"?e.operators.GT:e.operators.LT;r.fail$data((0,e._)`${o}.length ${i} ${a}`)}};return bu.default=t,bu}var wu={},_u={},lb;function Hd(){if(lb)return _u;lb=1,Object.defineProperty(_u,"__esModule",{value:!0});const e=B0();return e.code='require("ajv/dist/runtime/equal").default',_u.default=e,_u}var ub;function WT(){if(ub)return wu;ub=1,Object.defineProperty(wu,"__esModule",{value:!0});const e=tu(),t=Ge(),r=st(),n=Hd(),o={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:a,j:i}})=>(0,t.str)`must NOT have duplicate items (items ## ${i} and ${a} are identical)`,params:({params:{i:a,j:i}})=>(0,t._)`{i: ${a}, j: ${i}}`},code(a){const{gen:i,data:s,$data:l,schema:u,parentSchema:c,schemaCode:d,it:v}=a;if(!l&&!u)return;const g=i.let("valid"),b=c.items?(0,e.getSchemaTypes)(c.items):[];a.block$data(g,E,(0,t._)`${d} === false`),a.ok(g);function E(){const _=i.let("i",(0,t._)`${s}.length`),T=i.let("j");a.setParams({i:_,j:T}),i.assign(g,!0),i.if((0,t._)`${_} > 1`,()=>(y()?m:p)(_,T))}function y(){return b.length>0&&!b.some(_=>_==="object"||_==="array")}function m(_,T){const O=i.name("item"),j=(0,e.checkDataTypes)(b,O,v.opts.strictNumbers,e.DataType.Wrong),C=i.const("indices",(0,t._)`{}`);i.for((0,t._)`;${_}--;`,()=>{i.let(O,(0,t._)`${s}[${_}]`),i.if(j,(0,t._)`continue`),b.length>1&&i.if((0,t._)`typeof ${O} == "string"`,(0,t._)`${O} += "_"`),i.if((0,t._)`typeof ${C}[${O}] == "number"`,()=>{i.assign(T,(0,t._)`${C}[${O}]`),a.error(),i.assign(g,!1).break()}).code((0,t._)`${C}[${O}] = ${_}`)})}function p(_,T){const O=(0,r.useFunc)(i,n.default),j=i.name("outer");i.label(j).for((0,t._)`;${_}--;`,()=>i.for((0,t._)`${T} = ${_}; ${T}--;`,()=>i.if((0,t._)`${O}(${s}[${_}], ${s}[${T}])`,()=>{a.error(),i.assign(g,!1).break(j)})))}}};return wu.default=o,wu}var Su={},cb;function HT(){if(cb)return Su;cb=1,Object.defineProperty(Su,"__esModule",{value:!0});const e=Ge(),t=st(),r=Hd(),n={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:o})=>(0,e._)`{allowedValue: ${o}}`},code(o){const{gen:a,data:i,$data:s,schemaCode:l,schema:u}=o;s||u&&typeof u=="object"?o.fail$data((0,e._)`!${(0,t.useFunc)(a,r.default)}(${i}, ${l})`):o.fail((0,e._)`${u} !== ${i}`)}};return Su.default=n,Su}var $u={},fb;function GT(){if(fb)return $u;fb=1,Object.defineProperty($u,"__esModule",{value:!0});const e=Ge(),t=st(),r=Hd(),n={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:o})=>(0,e._)`{allowedValues: ${o}}`},code(o){const{gen:a,data:i,$data:s,schema:l,schemaCode:u,it:c}=o;if(!s&&l.length===0)throw new Error("enum must have non-empty array");const d=l.length>=c.opts.loopEnum;let v;const g=()=>v??(v=(0,t.useFunc)(a,r.default));let b;if(d||s)b=a.let("valid"),o.block$data(b,E);else{if(!Array.isArray(l))throw new Error("ajv implementation error");const m=a.const("vSchema",u);b=(0,e.or)(...l.map((p,_)=>y(m,_)))}o.pass(b);function E(){a.assign(b,!1),a.forOf("v",u,m=>a.if((0,e._)`${g()}(${i}, ${m})`,()=>a.assign(b,!0).break()))}function y(m,p){const _=l[p];return typeof _=="object"&&_!==null?(0,e._)`${g()}(${i}, ${m}[${p}])`:(0,e._)`${i} === ${_}`}}};return $u.default=n,$u}var db;function JT(){if(db)return fu;db=1,Object.defineProperty(fu,"__esModule",{value:!0});const e=DT(),t=FT(),r=VT(),n=UT(),o=LT(),a=zT(),i=qT(),s=WT(),l=HT(),u=GT(),c=[e.default,t.default,r.default,n.default,o.default,a.default,i.default,s.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l.default,u.default];return fu.default=c,fu}var Eu={},Da={},pb;function hb(){if(pb)return Da;pb=1,Object.defineProperty(Da,"__esModule",{value:!0}),Da.validateAdditionalItems=void 0;const e=Ge(),t=st(),r={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:o}})=>(0,e.str)`must NOT have more than ${o} items`,params:({params:{len:o}})=>(0,e._)`{limit: ${o}}`},code(o){const{parentSchema:a,it:i}=o,{items:s}=a;if(!Array.isArray(s)){(0,t.checkStrictMode)(i,'"additionalItems" is ignored when "items" is not an array of schemas');return}n(o,s)}};function n(o,a){const{gen:i,schema:s,data:l,keyword:u,it:c}=o;c.items=!0;const d=i.const("len",(0,e._)`${l}.length`);if(s===!1)o.setParams({len:a.length}),o.pass((0,e._)`${d} <= ${a.length}`);else if(typeof s=="object"&&!(0,t.alwaysValidSchema)(c,s)){const g=i.var("valid",(0,e._)`${d} <= ${a.length}`);i.if((0,e.not)(g),()=>v(g)),o.ok(g)}function v(g){i.forRange("i",a.length,d,b=>{o.subschema({keyword:u,dataProp:b,dataPropType:t.Type.Num},g),c.allErrors||i.if((0,e.not)(g),()=>i.break())})}}return Da.validateAdditionalItems=n,Da.default=r,Da}var Ou={},Fa={},mb;function yb(){if(mb)return Fa;mb=1,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.validateTuple=void 0;const e=Ge(),t=st(),r=fn(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(a){const{schema:i,it:s}=a;if(Array.isArray(i))return o(a,"additionalItems",i);s.items=!0,!(0,t.alwaysValidSchema)(s,i)&&a.ok((0,r.validateArray)(a))}};function o(a,i,s=a.schema){const{gen:l,parentSchema:u,data:c,keyword:d,it:v}=a;E(u),v.opts.unevaluated&&s.length&&v.items!==!0&&(v.items=t.mergeEvaluated.items(l,s.length,v.items));const g=l.name("valid"),b=l.const("len",(0,e._)`${c}.length`);s.forEach((y,m)=>{(0,t.alwaysValidSchema)(v,y)||(l.if((0,e._)`${b} > ${m}`,()=>a.subschema({keyword:d,schemaProp:m,dataProp:m},g)),a.ok(g))});function E(y){const{opts:m,errSchemaPath:p}=v,_=s.length,T=_===y.minItems&&(_===y.maxItems||y[i]===!1);if(m.strictTuples&&!T){const O=`"${d}" is ${_}-tuple, but minItems or maxItems/${i} are not specified or different at path "${p}"`;(0,t.checkStrictMode)(v,O,m.strictTuples)}}}return Fa.validateTuple=o,Fa.default=n,Fa}var gb;function KT(){if(gb)return Ou;gb=1,Object.defineProperty(Ou,"__esModule",{value:!0});const e=yb(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return Ou.default=t,Ou}var Au={},vb;function ZT(){if(vb)return Au;vb=1,Object.defineProperty(Au,"__esModule",{value:!0});const e=Ge(),t=st(),r=fn(),n=hb(),o={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:a}})=>(0,e.str)`must NOT have more than ${a} items`,params:({params:{len:a}})=>(0,e._)`{limit: ${a}}`},code(a){const{schema:i,parentSchema:s,it:l}=a,{prefixItems:u}=s;l.items=!0,!(0,t.alwaysValidSchema)(l,i)&&(u?(0,n.validateAdditionalItems)(a,u):a.ok((0,r.validateArray)(a)))}};return Au.default=o,Au}var Pu={},bb;function YT(){if(bb)return Pu;bb=1,Object.defineProperty(Pu,"__esModule",{value:!0});const e=Ge(),t=st(),r={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:n,max:o}})=>o===void 0?(0,e.str)`must contain at least ${n} valid item(s)`:(0,e.str)`must contain at least ${n} and no more than ${o} valid item(s)`,params:({params:{min:n,max:o}})=>o===void 0?(0,e._)`{minContains: ${n}}`:(0,e._)`{minContains: ${n}, maxContains: ${o}}`},code(n){const{gen:o,schema:a,parentSchema:i,data:s,it:l}=n;let u,c;const{minContains:d,maxContains:v}=i;l.opts.next?(u=d===void 0?1:d,c=v):u=1;const g=o.const("len",(0,e._)`${s}.length`);if(n.setParams({min:u,max:c}),c===void 0&&u===0){(0,t.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&u>c){(0,t.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),n.fail();return}if((0,t.alwaysValidSchema)(l,a)){let p=(0,e._)`${g} >= ${u}`;c!==void 0&&(p=(0,e._)`${p} && ${g} <= ${c}`),n.pass(p);return}l.items=!0;const b=o.name("valid");c===void 0&&u===1?y(b,()=>o.if(b,()=>o.break())):u===0?(o.let(b,!0),c!==void 0&&o.if((0,e._)`${s}.length > 0`,E)):(o.let(b,!1),E()),n.result(b,()=>n.reset());function E(){const p=o.name("_valid"),_=o.let("count",0);y(p,()=>o.if(p,()=>m(_)))}function y(p,_){o.forRange("i",0,g,T=>{n.subschema({keyword:"contains",dataProp:T,dataPropType:t.Type.Num,compositeRule:!0},p),_()})}function m(p){o.code((0,e._)`${p}++`),c===void 0?o.if((0,e._)`${p} >= ${u}`,()=>o.assign(b,!0).break()):(o.if((0,e._)`${p} > ${c}`,()=>o.assign(b,!1).break()),u===1?o.assign(b,!0):o.if((0,e._)`${p} >= ${u}`,()=>o.assign(b,!0)))}}};return Pu.default=r,Pu}var wb={},_b;function Gd(){return _b||(_b=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Ge(),r=st(),n=fn();e.error={message:({params:{property:l,depsCount:u,deps:c}})=>{const d=u===1?"property":"properties";return(0,t.str)`must have ${d} ${c} when property ${l} is present`},params:({params:{property:l,depsCount:u,deps:c,missingProperty:d}})=>(0,t._)`{property: ${l},
|
37
|
+
missingProperty: ${d},
|
38
|
+
depsCount: ${u},
|
39
|
+
deps: ${c}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[u,c]=a(l);i(l,u),s(l,c)}};function a({schema:l}){const u={},c={};for(const d in l){if(d==="__proto__")continue;const v=Array.isArray(l[d])?u:c;v[d]=l[d]}return[u,c]}function i(l,u=l.schema){const{gen:c,data:d,it:v}=l;if(Object.keys(u).length===0)return;const g=c.let("missing");for(const b in u){const E=u[b];if(E.length===0)continue;const y=(0,n.propertyInData)(c,d,b,v.opts.ownProperties);l.setParams({property:b,depsCount:E.length,deps:E.join(", ")}),v.allErrors?c.if(y,()=>{for(const m of E)(0,n.checkReportMissingProp)(l,m)}):(c.if((0,t._)`${y} && (${(0,n.checkMissingProp)(l,E,g)})`),(0,n.reportMissingProp)(l,g),c.else())}}e.validatePropertyDeps=i;function s(l,u=l.schema){const{gen:c,data:d,keyword:v,it:g}=l,b=c.name("valid");for(const E in u)(0,r.alwaysValidSchema)(g,u[E])||(c.if((0,n.propertyInData)(c,d,E,g.opts.ownProperties),()=>{const y=l.subschema({keyword:v,schemaProp:E},b);l.mergeValidEvaluated(y,b)},()=>c.var(b,!0)),l.ok(b))}e.validateSchemaDeps=s,e.default=o}(wb)),wb}var xu={},Sb;function XT(){if(Sb)return xu;Sb=1,Object.defineProperty(xu,"__esModule",{value:!0});const e=Ge(),t=st(),r={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:n})=>(0,e._)`{propertyName: ${n.propertyName}}`},code(n){const{gen:o,schema:a,data:i,it:s}=n;if((0,t.alwaysValidSchema)(s,a))return;const l=o.name("valid");o.forIn("key",i,u=>{n.setParams({propertyName:u}),n.subschema({keyword:"propertyNames",data:u,dataTypes:["string"],propertyName:u,compositeRule:!0},l),o.if((0,e.not)(l),()=>{n.error(!0),s.allErrors||o.break()})}),n.ok(l)}};return xu.default=r,xu}var Tu={},$b;function Eb(){if($b)return Tu;$b=1,Object.defineProperty(Tu,"__esModule",{value:!0});const e=fn(),t=Ge(),r=un(),n=st(),o={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:a})=>(0,t._)`{additionalProperty: ${a.additionalProperty}}`},code(a){const{gen:i,schema:s,parentSchema:l,data:u,errsCount:c,it:d}=a;if(!c)throw new Error("ajv implementation error");const{allErrors:v,opts:g}=d;if(d.props=!0,g.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(d,s))return;const b=(0,e.allSchemaProperties)(l.properties),E=(0,e.allSchemaProperties)(l.patternProperties);y(),a.ok((0,t._)`${c} === ${r.default.errors}`);function y(){i.forIn("key",u,O=>{!b.length&&!E.length?_(O):i.if(m(O),()=>_(O))})}function m(O){let j;if(b.length>8){const C=(0,n.schemaRefOrVal)(d,l.properties,"properties");j=(0,e.isOwnProperty)(i,C,O)}else b.length?j=(0,t.or)(...b.map(C=>(0,t._)`${O} === ${C}`)):j=t.nil;return E.length&&(j=(0,t.or)(j,...E.map(C=>(0,t._)`${(0,e.usePattern)(a,C)}.test(${O})`))),(0,t.not)(j)}function p(O){i.code((0,t._)`delete ${u}[${O}]`)}function _(O){if(g.removeAdditional==="all"||g.removeAdditional&&s===!1){p(O);return}if(s===!1){a.setParams({additionalProperty:O}),a.error(),v||i.break();return}if(typeof s=="object"&&!(0,n.alwaysValidSchema)(d,s)){const j=i.name("valid");g.removeAdditional==="failing"?(T(O,j,!1),i.if((0,t.not)(j),()=>{a.reset(),p(O)})):(T(O,j),v||i.if((0,t.not)(j),()=>i.break()))}}function T(O,j,C){const Z={keyword:"additionalProperties",dataProp:O,dataPropType:n.Type.Str};C===!1&&Object.assign(Z,{compositeRule:!0,createErrors:!1,allErrors:!1}),a.subschema(Z,j)}}};return Tu.default=o,Tu}var ju={},Ob;function QT(){if(Ob)return ju;Ob=1,Object.defineProperty(ju,"__esModule",{value:!0});const e=rs(),t=fn(),r=st(),n=Eb(),o={keyword:"properties",type:"object",schemaType:"object",code(a){const{gen:i,schema:s,parentSchema:l,data:u,it:c}=a;c.opts.removeAdditional==="all"&&l.additionalProperties===void 0&&n.default.code(new e.KeywordCxt(c,n.default,"additionalProperties"));const d=(0,t.allSchemaProperties)(s);for(const y of d)c.definedProperties.add(y);c.opts.unevaluated&&d.length&&c.props!==!0&&(c.props=r.mergeEvaluated.props(i,(0,r.toHash)(d),c.props));const v=d.filter(y=>!(0,r.alwaysValidSchema)(c,s[y]));if(v.length===0)return;const g=i.name("valid");for(const y of v)b(y)?E(y):(i.if((0,t.propertyInData)(i,u,y,c.opts.ownProperties)),E(y),c.allErrors||i.else().var(g,!0),i.endIf()),a.it.definedProperties.add(y),a.ok(g);function b(y){return c.opts.useDefaults&&!c.compositeRule&&s[y].default!==void 0}function E(y){a.subschema({keyword:"properties",schemaProp:y,dataProp:y},g)}}};return ju.default=o,ju}var ku={},Ab;function ej(){if(Ab)return ku;Ab=1,Object.defineProperty(ku,"__esModule",{value:!0});const e=fn(),t=Ge(),r=st(),n=st(),o={keyword:"patternProperties",type:"object",schemaType:"object",code(a){const{gen:i,schema:s,data:l,parentSchema:u,it:c}=a,{opts:d}=c,v=(0,e.allSchemaProperties)(s),g=v.filter(T=>(0,r.alwaysValidSchema)(c,s[T]));if(v.length===0||g.length===v.length&&(!c.opts.unevaluated||c.props===!0))return;const b=d.strictSchema&&!d.allowMatchingProperties&&u.properties,E=i.name("valid");c.props!==!0&&!(c.props instanceof t.Name)&&(c.props=(0,n.evaluatedPropsToName)(i,c.props));const{props:y}=c;m();function m(){for(const T of v)b&&p(T),c.allErrors?_(T):(i.var(E,!0),_(T),i.if(E))}function p(T){for(const O in b)new RegExp(T).test(O)&&(0,r.checkStrictMode)(c,`property ${O} matches pattern ${T} (use allowMatchingProperties)`)}function _(T){i.forIn("key",l,O=>{i.if((0,t._)`${(0,e.usePattern)(a,T)}.test(${O})`,()=>{const j=g.includes(T);j||a.subschema({keyword:"patternProperties",schemaProp:T,dataProp:O,dataPropType:n.Type.Str},E),c.opts.unevaluated&&y!==!0?i.assign((0,t._)`${y}[${O}]`,!0):!j&&!c.allErrors&&i.if((0,t.not)(E),()=>i.break())})})}}};return ku.default=o,ku}var Cu={},Pb;function tj(){if(Pb)return Cu;Pb=1,Object.defineProperty(Cu,"__esModule",{value:!0});const e=st(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:n,schema:o,it:a}=r;if((0,e.alwaysValidSchema)(a,o)){r.fail();return}const i=n.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),r.failResult(i,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return Cu.default=t,Cu}var Nu={},xb;function rj(){if(xb)return Nu;xb=1,Object.defineProperty(Nu,"__esModule",{value:!0});const e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:fn().validateUnion,error:{message:"must match a schema in anyOf"}};return Nu.default=e,Nu}var Iu={},Tb;function nj(){if(Tb)return Iu;Tb=1,Object.defineProperty(Iu,"__esModule",{value:!0});const e=Ge(),t=st(),r={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:n})=>(0,e._)`{passingSchemas: ${n.passing}}`},code(n){const{gen:o,schema:a,parentSchema:i,it:s}=n;if(!Array.isArray(a))throw new Error("ajv implementation error");if(s.opts.discriminator&&i.discriminator)return;const l=a,u=o.let("valid",!1),c=o.let("passing",null),d=o.name("_valid");n.setParams({passing:c}),o.block(v),n.result(u,()=>n.reset(),()=>n.error(!0));function v(){l.forEach((g,b)=>{let E;(0,t.alwaysValidSchema)(s,g)?o.var(d,!0):E=n.subschema({keyword:"oneOf",schemaProp:b,compositeRule:!0},d),b>0&&o.if((0,e._)`${d} && ${u}`).assign(u,!1).assign(c,(0,e._)`[${c}, ${b}]`).else(),o.if(d,()=>{o.assign(u,!0),o.assign(c,b),E&&n.mergeEvaluated(E,e.Name)})})}}};return Iu.default=r,Iu}var Ru={},jb;function oj(){if(jb)return Ru;jb=1,Object.defineProperty(Ru,"__esModule",{value:!0});const e=st(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:n,schema:o,it:a}=r;if(!Array.isArray(o))throw new Error("ajv implementation error");const i=n.name("valid");o.forEach((s,l)=>{if((0,e.alwaysValidSchema)(a,s))return;const u=r.subschema({keyword:"allOf",schemaProp:l},i);r.ok(i),r.mergeEvaluated(u)})}};return Ru.default=t,Ru}var Bu={},kb;function aj(){if(kb)return Bu;kb=1,Object.defineProperty(Bu,"__esModule",{value:!0});const e=Ge(),t=st(),r={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:o})=>(0,e.str)`must match "${o.ifClause}" schema`,params:({params:o})=>(0,e._)`{failingKeyword: ${o.ifClause}}`},code(o){const{gen:a,parentSchema:i,it:s}=o;i.then===void 0&&i.else===void 0&&(0,t.checkStrictMode)(s,'"if" without "then" and "else" is ignored');const l=n(s,"then"),u=n(s,"else");if(!l&&!u)return;const c=a.let("valid",!0),d=a.name("_valid");if(v(),o.reset(),l&&u){const b=a.let("ifClause");o.setParams({ifClause:b}),a.if(d,g("then",b),g("else",b))}else l?a.if(d,g("then")):a.if((0,e.not)(d),g("else"));o.pass(c,()=>o.error(!0));function v(){const b=o.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},d);o.mergeEvaluated(b)}function g(b,E){return()=>{const y=o.subschema({keyword:b},d);a.assign(c,d),o.mergeValidEvaluated(y,c),E?a.assign(E,(0,e._)`${b}`):o.setParams({ifClause:b})}}}};function n(o,a){const i=o.schema[a];return i!==void 0&&!(0,t.alwaysValidSchema)(o,i)}return Bu.default=r,Bu}var Du={},Cb;function ij(){if(Cb)return Du;Cb=1,Object.defineProperty(Du,"__esModule",{value:!0});const e=st(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:n,it:o}){n.if===void 0&&(0,e.checkStrictMode)(o,`"${r}" without "if" is ignored`)}};return Du.default=t,Du}var Nb;function sj(){if(Nb)return Eu;Nb=1,Object.defineProperty(Eu,"__esModule",{value:!0});const e=hb(),t=KT(),r=yb(),n=ZT(),o=YT(),a=Gd(),i=XT(),s=Eb(),l=QT(),u=ej(),c=tj(),d=rj(),v=nj(),g=oj(),b=aj(),E=ij();function y(m=!1){const p=[c.default,d.default,v.default,g.default,b.default,E.default,i.default,s.default,a.default,l.default,u.default];return m?p.push(t.default,n.default):p.push(e.default,r.default),p.push(o.default),p}return Eu.default=y,Eu}var Fu={},Mu={},Ib;function lj(){if(Ib)return Mu;Ib=1,Object.defineProperty(Mu,"__esModule",{value:!0});const e=Ge(),t={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:r})=>(0,e.str)`must match format "${r}"`,params:({schemaCode:r})=>(0,e._)`{format: ${r}}`},code(r,n){const{gen:o,data:a,$data:i,schema:s,schemaCode:l,it:u}=r,{opts:c,errSchemaPath:d,schemaEnv:v,self:g}=u;if(!c.validateFormats)return;i?b():E();function b(){const y=o.scopeValue("formats",{ref:g.formats,code:c.code.formats}),m=o.const("fDef",(0,e._)`${y}[${l}]`),p=o.let("fType"),_=o.let("format");o.if((0,e._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>o.assign(p,(0,e._)`${m}.type || "string"`).assign(_,(0,e._)`${m}.validate`),()=>o.assign(p,(0,e._)`"string"`).assign(_,m)),r.fail$data((0,e.or)(T(),O()));function T(){return c.strictSchema===!1?e.nil:(0,e._)`${l} && !${_}`}function O(){const j=v.$async?(0,e._)`(${m}.async ? await ${_}(${a}) : ${_}(${a}))`:(0,e._)`${_}(${a})`,C=(0,e._)`(typeof ${_} == "function" ? ${j} : ${_}.test(${a}))`;return(0,e._)`${_} && ${_} !== true && ${p} === ${n} && !${C}`}}function E(){const y=g.formats[s];if(!y){T();return}if(y===!0)return;const[m,p,_]=O(y);m===n&&r.pass(j());function T(){if(c.strictSchema===!1){g.logger.warn(C());return}throw new Error(C());function C(){return`unknown format "${s}" ignored in schema at path "${d}"`}}function O(C){const Z=C instanceof RegExp?(0,e.regexpCode)(C):c.code.formats?(0,e._)`${c.code.formats}${(0,e.getProperty)(s)}`:void 0,V=o.scopeValue("formats",{key:s,ref:C,code:Z});return typeof C=="object"&&!(C instanceof RegExp)?[C.type||"string",C.validate,(0,e._)`${V}.validate`]:["string",C,V]}function j(){if(typeof y=="object"&&!(y instanceof RegExp)&&y.async){if(!v.$async)throw new Error("async format in sync schema");return(0,e._)`await ${_}(${a})`}return typeof p=="function"?(0,e._)`${_}(${a})`:(0,e._)`${_}.test(${a})`}}}};return Mu.default=t,Mu}var Rb;function uj(){if(Rb)return Fu;Rb=1,Object.defineProperty(Fu,"__esModule",{value:!0});const e=[lj().default];return Fu.default=e,Fu}var Ma={},Bb;function cj(){return Bb||(Bb=1,Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.contentVocabulary=Ma.metadataVocabulary=void 0,Ma.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Ma.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Ma}var Db;function Fb(){if(Db)return lu;Db=1,Object.defineProperty(lu,"__esModule",{value:!0});const e=BT(),t=JT(),r=sj(),n=uj(),o=cj(),a=[e.default,t.default,(0,r.default)(),n.default,o.metadataVocabulary,o.contentVocabulary];return lu.default=a,lu}var Vu={},Va={},Mb;function Vb(){if(Mb)return Va;Mb=1,Object.defineProperty(Va,"__esModule",{value:!0}),Va.dynamicAnchor=void 0;const e=Ge(),t=un(),r=iu(),n=Wd(),o={keyword:"$dynamicAnchor",schemaType:"string",code:s=>a(s,s.schema)};function a(s,l){const{gen:u,it:c}=s;c.schemaEnv.root.dynamicAnchors[l]=!0;const d=(0,e._)`${t.default.dynamicAnchors}${(0,e.getProperty)(l)}`,v=c.errSchemaPath==="#"?c.validateName:i(s);u.if((0,e._)`!${d}`,()=>u.assign(d,v))}Va.dynamicAnchor=a;function i(s){const{schemaEnv:l,schema:u,self:c}=s.it,{root:d,baseId:v,localRefs:g,meta:b}=l.root,{schemaId:E}=c.opts,y=new r.SchemaEnv({schema:u,schemaId:E,root:d,baseId:v,localRefs:g,meta:b});return r.compileSchema.call(c,y),(0,n.getValidate)(s,y)}return Va.default=o,Va}var Ua={},Ub;function Lb(){if(Ub)return Ua;Ub=1,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.dynamicRef=void 0;const e=Ge(),t=un(),r=Wd(),n={keyword:"$dynamicRef",schemaType:"string",code:a=>o(a,a.schema)};function o(a,i){const{gen:s,keyword:l,it:u}=a;if(i[0]!=="#")throw new Error(`"${l}" only supports hash fragment reference`);const c=i.slice(1);if(u.allErrors)d();else{const g=s.let("valid",!1);d(g),a.ok(g)}function d(g){if(u.schemaEnv.root.dynamicAnchors[c]){const b=s.let("_v",(0,e._)`${t.default.dynamicAnchors}${(0,e.getProperty)(c)}`);s.if(b,v(b,g),v(u.validateName,g))}else v(u.validateName,g)()}function v(g,b){return b?()=>s.block(()=>{(0,r.callRef)(a,g),s.let(b,!0)}):()=>(0,r.callRef)(a,g)}}return Ua.dynamicRef=o,Ua.default=n,Ua}var Uu={},zb;function fj(){if(zb)return Uu;zb=1,Object.defineProperty(Uu,"__esModule",{value:!0});const e=Vb(),t=st(),r={keyword:"$recursiveAnchor",schemaType:"boolean",code(n){n.schema?(0,e.dynamicAnchor)(n,""):(0,t.checkStrictMode)(n.it,"$recursiveAnchor: false is ignored")}};return Uu.default=r,Uu}var Lu={},qb;function dj(){if(qb)return Lu;qb=1,Object.defineProperty(Lu,"__esModule",{value:!0});const e=Lb(),t={keyword:"$recursiveRef",schemaType:"string",code:r=>(0,e.dynamicRef)(r,r.schema)};return Lu.default=t,Lu}var Wb;function pj(){if(Wb)return Vu;Wb=1,Object.defineProperty(Vu,"__esModule",{value:!0});const e=Vb(),t=Lb(),r=fj(),n=dj(),o=[e.default,t.default,r.default,n.default];return Vu.default=o,Vu}var zu={},qu={},Hb;function hj(){if(Hb)return qu;Hb=1,Object.defineProperty(qu,"__esModule",{value:!0});const e=Gd(),t={keyword:"dependentRequired",type:"object",schemaType:"object",error:e.error,code:r=>(0,e.validatePropertyDeps)(r)};return qu.default=t,qu}var Wu={},Gb;function mj(){if(Gb)return Wu;Gb=1,Object.defineProperty(Wu,"__esModule",{value:!0});const e=Gd(),t={keyword:"dependentSchemas",type:"object",schemaType:"object",code:r=>(0,e.validateSchemaDeps)(r)};return Wu.default=t,Wu}var Hu={},Jb;function yj(){if(Jb)return Hu;Jb=1,Object.defineProperty(Hu,"__esModule",{value:!0});const e=st(),t={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:r,parentSchema:n,it:o}){n.contains===void 0&&(0,e.checkStrictMode)(o,`"${r}" without "contains" is ignored`)}};return Hu.default=t,Hu}var Kb;function gj(){if(Kb)return zu;Kb=1,Object.defineProperty(zu,"__esModule",{value:!0});const e=hj(),t=mj(),r=yj(),n=[e.default,t.default,r.default];return zu.default=n,zu}var Gu={},Ju={},Zb;function vj(){if(Zb)return Ju;Zb=1,Object.defineProperty(Ju,"__esModule",{value:!0});const e=Ge(),t=st(),r=un(),n={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:{message:"must NOT have unevaluated properties",params:({params:o})=>(0,e._)`{unevaluatedProperty: ${o.unevaluatedProperty}}`},code(o){const{gen:a,schema:i,data:s,errsCount:l,it:u}=o;if(!l)throw new Error("ajv implementation error");const{allErrors:c,props:d}=u;d instanceof e.Name?a.if((0,e._)`${d} !== true`,()=>a.forIn("key",s,E=>a.if(g(d,E),()=>v(E)))):d!==!0&&a.forIn("key",s,E=>d===void 0?v(E):a.if(b(d,E),()=>v(E))),u.props=!0,o.ok((0,e._)`${l} === ${r.default.errors}`);function v(E){if(i===!1){o.setParams({unevaluatedProperty:E}),o.error(),c||a.break();return}if(!(0,t.alwaysValidSchema)(u,i)){const y=a.name("valid");o.subschema({keyword:"unevaluatedProperties",dataProp:E,dataPropType:t.Type.Str},y),c||a.if((0,e.not)(y),()=>a.break())}}function g(E,y){return(0,e._)`!${E} || !${E}[${y}]`}function b(E,y){const m=[];for(const p in E)E[p]===!0&&m.push((0,e._)`${y} !== ${p}`);return(0,e.and)(...m)}}};return Ju.default=n,Ju}var Ku={},Yb;function bj(){if(Yb)return Ku;Yb=1,Object.defineProperty(Ku,"__esModule",{value:!0});const e=Ge(),t=st(),r={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:{message:({params:{len:n}})=>(0,e.str)`must NOT have more than ${n} items`,params:({params:{len:n}})=>(0,e._)`{limit: ${n}}`},code(n){const{gen:o,schema:a,data:i,it:s}=n,l=s.items||0;if(l===!0)return;const u=o.const("len",(0,e._)`${i}.length`);if(a===!1)n.setParams({len:l}),n.fail((0,e._)`${u} > ${l}`);else if(typeof a=="object"&&!(0,t.alwaysValidSchema)(s,a)){const d=o.var("valid",(0,e._)`${u} <= ${l}`);o.if((0,e.not)(d),()=>c(d,l)),n.ok(d)}s.items=!0;function c(d,v){o.forRange("i",v,u,g=>{n.subschema({keyword:"unevaluatedItems",dataProp:g,dataPropType:t.Type.Num},d),s.allErrors||o.if((0,e.not)(d),()=>o.break())})}}};return Ku.default=r,Ku}var Xb;function wj(){if(Xb)return Gu;Xb=1,Object.defineProperty(Gu,"__esModule",{value:!0});const e=vj(),t=bj(),r=[e.default,t.default];return Gu.default=r,Gu}var Zu={},as={},Qb;function _j(){if(Qb)return as;Qb=1,Object.defineProperty(as,"__esModule",{value:!0}),as.DiscrError=void 0;var e;return function(t){t.Tag="tag",t.Mapping="mapping"}(e||(as.DiscrError=e={})),as}var ew;function tw(){if(ew)return Zu;ew=1,Object.defineProperty(Zu,"__esModule",{value:!0});const e=Ge(),t=_j(),r=iu(),n=ns(),o=st(),a={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:i,tagName:s}})=>i===t.DiscrError.Tag?`tag "${s}" must be string`:`value of tag "${s}" must be in oneOf`,params:({params:{discrError:i,tag:s,tagName:l}})=>(0,e._)`{error: ${i}, tag: ${l}, tagValue: ${s}}`},code(i){const{gen:s,data:l,schema:u,parentSchema:c,it:d}=i,{oneOf:v}=c;if(!d.opts.discriminator)throw new Error("discriminator: requires discriminator option");const g=u.propertyName;if(typeof g!="string")throw new Error("discriminator: requires propertyName");if(u.mapping)throw new Error("discriminator: mapping is not supported");if(!v)throw new Error("discriminator: requires oneOf keyword");const b=s.let("valid",!1),E=s.const("tag",(0,e._)`${l}${(0,e.getProperty)(g)}`);s.if((0,e._)`typeof ${E} == "string"`,()=>y(),()=>i.error(!1,{discrError:t.DiscrError.Tag,tag:E,tagName:g})),i.ok(b);function y(){const _=p();s.if(!1);for(const T in _)s.elseIf((0,e._)`${E} === ${T}`),s.assign(b,m(_[T]));s.else(),i.error(!1,{discrError:t.DiscrError.Mapping,tag:E,tagName:g}),s.endIf()}function m(_){const T=s.name("valid"),O=i.subschema({keyword:"oneOf",schemaProp:_},T);return i.mergeEvaluated(O,e.Name),T}function p(){var _;const T={},O=C(c);let j=!0;for(let U=0;U<v.length;U++){let W=v[U];if(W!=null&&W.$ref&&!(0,o.schemaHasRulesButRef)(W,d.self.RULES)){const fe=W.$ref;if(W=r.resolveRef.call(d.self,d.schemaEnv.root,d.baseId,fe),W instanceof r.SchemaEnv&&(W=W.schema),W===void 0)throw new n.default(d.opts.uriResolver,d.baseId,fe)}const ee=(_=W==null?void 0:W.properties)===null||_===void 0?void 0:_[g];if(typeof ee!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${g}"`);j=j&&(O||C(W)),Z(ee,U)}if(!j)throw new Error(`discriminator: "${g}" must be required`);return T;function C({required:U}){return Array.isArray(U)&&U.includes(g)}function Z(U,W){if(U.const)V(U.const,W);else if(U.enum)for(const ee of U.enum)V(ee,W);else throw new Error(`discriminator: "properties/${g}" must have "const" or "enum"`)}function V(U,W){if(typeof U!="string"||U in T)throw new Error(`discriminator: "${g}" values must be unique strings`);T[U]=W}}}};return Zu.default=a,Zu}var Yu={};const Sj="https://json-schema.org/draft/2019-09/schema",$j="https://json-schema.org/draft/2019-09/schema",Ej={"https://json-schema.org/draft/2019-09/vocab/core":!0,"https://json-schema.org/draft/2019-09/vocab/applicator":!0,"https://json-schema.org/draft/2019-09/vocab/validation":!0,"https://json-schema.org/draft/2019-09/vocab/meta-data":!0,"https://json-schema.org/draft/2019-09/vocab/format":!1,"https://json-schema.org/draft/2019-09/vocab/content":!0},Oj=!0,Aj="Core and Validation specifications meta-schema",Pj=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format"},{$ref:"meta/content"}],xj=["object","boolean"],Tj={definitions:{$comment:"While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",type:"object",additionalProperties:{$recursiveRef:"#"},default:{}},dependencies:{$comment:'"dependencies" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to "dependentSchemas" and "dependentRequired"',type:"object",additionalProperties:{anyOf:[{$recursiveRef:"#"},{$ref:"meta/validation#/$defs/stringArray"}]}}},jj={$schema:Sj,$id:$j,$vocabulary:Ej,$recursiveAnchor:Oj,title:Aj,allOf:Pj,type:xj,properties:Tj},kj="https://json-schema.org/draft/2019-09/schema",Cj="https://json-schema.org/draft/2019-09/meta/applicator",Nj={"https://json-schema.org/draft/2019-09/vocab/applicator":!0},Ij=!0,Rj="Applicator vocabulary meta-schema",Bj=["object","boolean"],Dj={additionalItems:{$recursiveRef:"#"},unevaluatedItems:{$recursiveRef:"#"},items:{anyOf:[{$recursiveRef:"#"},{$ref:"#/$defs/schemaArray"}]},contains:{$recursiveRef:"#"},additionalProperties:{$recursiveRef:"#"},unevaluatedProperties:{$recursiveRef:"#"},properties:{type:"object",additionalProperties:{$recursiveRef:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$recursiveRef:"#"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$recursiveRef:"#"}},propertyNames:{$recursiveRef:"#"},if:{$recursiveRef:"#"},then:{$recursiveRef:"#"},else:{$recursiveRef:"#"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$recursiveRef:"#"}},Fj={schemaArray:{type:"array",minItems:1,items:{$recursiveRef:"#"}}},Mj={$schema:kj,$id:Cj,$vocabulary:Nj,$recursiveAnchor:Ij,title:Rj,type:Bj,properties:Dj,$defs:Fj},Vj="https://json-schema.org/draft/2019-09/schema",Uj="https://json-schema.org/draft/2019-09/meta/content",Lj={"https://json-schema.org/draft/2019-09/vocab/content":!0},zj=!0,qj="Content vocabulary meta-schema",Wj=["object","boolean"],Hj={contentMediaType:{type:"string"},contentEncoding:{type:"string"},contentSchema:{$recursiveRef:"#"}},Gj={$schema:Vj,$id:Uj,$vocabulary:Lj,$recursiveAnchor:zj,title:qj,type:Wj,properties:Hj},Jj="https://json-schema.org/draft/2019-09/schema",Kj="https://json-schema.org/draft/2019-09/meta/core",Zj={"https://json-schema.org/draft/2019-09/vocab/core":!0},Yj=!0,Xj="Core vocabulary meta-schema",Qj=["object","boolean"],ek={$id:{type:"string",format:"uri-reference",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{type:"string",format:"uri"},$anchor:{type:"string",pattern:"^[A-Za-z][-A-Za-z0-9.:_]*$"},$ref:{type:"string",format:"uri-reference"},$recursiveRef:{type:"string",format:"uri-reference"},$recursiveAnchor:{type:"boolean",default:!1},$vocabulary:{type:"object",propertyNames:{type:"string",format:"uri"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$recursiveRef:"#"},default:{}}},tk={$schema:Jj,$id:Kj,$vocabulary:Zj,$recursiveAnchor:Yj,title:Xj,type:Qj,properties:ek},rk="https://json-schema.org/draft/2019-09/schema",nk="https://json-schema.org/draft/2019-09/meta/format",ok={"https://json-schema.org/draft/2019-09/vocab/format":!0},ak=!0,ik="Format vocabulary meta-schema",sk=["object","boolean"],lk={format:{type:"string"}},uk={$schema:rk,$id:nk,$vocabulary:ok,$recursiveAnchor:ak,title:ik,type:sk,properties:lk},ck="https://json-schema.org/draft/2019-09/schema",fk="https://json-schema.org/draft/2019-09/meta/meta-data",dk={"https://json-schema.org/draft/2019-09/vocab/meta-data":!0},pk=!0,hk="Meta-data vocabulary meta-schema",mk=["object","boolean"],yk={title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}},gk={$schema:ck,$id:fk,$vocabulary:dk,$recursiveAnchor:pk,title:hk,type:mk,properties:yk},vk="https://json-schema.org/draft/2019-09/schema",bk="https://json-schema.org/draft/2019-09/meta/validation",wk={"https://json-schema.org/draft/2019-09/vocab/validation":!0},_k=!0,Sk="Validation vocabulary meta-schema",$k=["object","boolean"],Ek={multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}},const:!0,enum:{type:"array",items:!0},type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]}},Ok={nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},Ak={$schema:vk,$id:bk,$vocabulary:wk,$recursiveAnchor:_k,title:Sk,type:$k,properties:Ek,$defs:Ok};var rw;function Pk(){if(rw)return Yu;rw=1,Object.defineProperty(Yu,"__esModule",{value:!0});const e=jj,t=Mj,r=Gj,n=tk,o=uk,a=gk,i=Ak,s=["/properties"];function l(u){return[e,t,r,n,c(this,o),a,c(this,i)].forEach(d=>this.addMetaSchema(d,void 0,!1)),this;function c(d,v){return u?d.$dataMetaSchema(v,s):v}}return Yu.default=l,Yu}var nw;function xk(){return nw||(nw=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv2019=void 0;const r=Z0(),n=Fb(),o=pj(),a=gj(),i=wj(),s=tw(),l=Pk(),u="https://json-schema.org/draft/2019-09/schema";class c extends r.default{constructor(y={}){super({...y,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),this.addVocabulary(o.default),n.default.forEach(y=>this.addVocabulary(y)),this.addVocabulary(a.default),this.addVocabulary(i.default),this.opts.discriminator&&this.addKeyword(s.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:y,meta:m}=this.opts;m&&(l.default.call(this,y),this.refs["http://json-schema.org/schema"]=u)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(u)?u:void 0)}}t.Ajv2019=c,e.exports=t=c,e.exports.Ajv2019=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var d=rs();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return d.KeywordCxt}});var v=Ge();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return v._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return v.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return v.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return v.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return v.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return v.CodeGen}});var g=ou();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return g.default}});var b=ns();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return b.default}})}(Ud,Ud.exports)),Ud.exports}var Jd={exports:{}},ow={},aw;function Tk(){return aw||(aw=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(V,U){return{validate:V,compare:U}}e.fullFormats={date:t(a,i),time:t(l,u),"date-time":t(d,v),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:E,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:Z,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:m,int32:{type:"number",validate:T},int64:{type:"number",validate:O},float:{type:"number",validate:j},double:{type:"number",validate:j},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,u),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,v),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function r(V){return V%4===0&&(V%100!==0||V%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(V){const U=n.exec(V);if(!U)return!1;const W=+U[1],ee=+U[2],fe=+U[3];return ee>=1&&ee<=12&&fe>=1&&fe<=(ee===2&&r(W)?29:o[ee])}function i(V,U){if(V&&U)return V>U?1:V<U?-1:0}const s=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function l(V,U){const W=s.exec(V);if(!W)return!1;const ee=+W[1],fe=+W[2],ve=+W[3],Ne=W[5];return(ee<=23&&fe<=59&&ve<=59||ee===23&&fe===59&&ve===60)&&(!U||Ne!=="")}function u(V,U){if(!(V&&U))return;const W=s.exec(V),ee=s.exec(U);if(W&&ee)return V=W[1]+W[2]+W[3]+(W[4]||""),U=ee[1]+ee[2]+ee[3]+(ee[4]||""),V>U?1:V<U?-1:0}const c=/t|\s/i;function d(V){const U=V.split(c);return U.length===2&&a(U[0])&&l(U[1],!0)}function v(V,U){if(!(V&&U))return;const[W,ee]=V.split(c),[fe,ve]=U.split(c),Ne=i(W,fe);if(Ne!==void 0)return Ne||u(ee,ve)}const g=/\/|:/,b=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function E(V){return g.test(V)&&b.test(V)}const y=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function m(V){return y.lastIndex=0,y.test(V)}const p=-(2**31),_=2**31-1;function T(V){return Number.isInteger(V)&&V<=_&&V>=p}function O(V){return Number.isInteger(V)}function j(){return!0}const C=/[^\\]\\Z/;function Z(V){if(C.test(V))return!1;try{return new RegExp(V),!0}catch{return!1}}}(ow)),ow}var iw={},Kd={exports:{}};const jk="http://json-schema.org/draft-07/schema#",kk="http://json-schema.org/draft-07/schema#",Ck="Core schema meta-schema",Nk={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},Ik=["object","boolean"],Rk={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},Bk={$schema:jk,$id:kk,title:Ck,definitions:Nk,type:Ik,properties:Rk,default:!0};var sw;function Dk(){return sw||(sw=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=Z0(),n=Fb(),o=tw(),a=Bk,i=["/properties"],s="http://json-schema.org/draft-07/schema";class l extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(b=>this.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(b,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}t.Ajv=l,e.exports=t=l,e.exports.Ajv=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var u=rs();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var c=Ge();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return c._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return c.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return c.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return c.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return c.CodeGen}});var d=ou();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var v=ns();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return v.default}})}(Kd,Kd.exports)),Kd.exports}var lw;function Fk(){return lw||(lw=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=Dk(),r=Ge(),n=r.operators,o={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},a={message:({keyword:s,schemaCode:l})=>r.str`should be ${o[s].okStr} ${l}`,params:({keyword:s,schemaCode:l})=>r._`{comparison: ${o[s].okStr}, limit: ${l}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:a,code(s){const{gen:l,data:u,schemaCode:c,keyword:d,it:v}=s,{opts:g,self:b}=v;if(!g.validateFormats)return;const E=new t.KeywordCxt(v,b.RULES.all.format.definition,"format");E.$data?y():m();function y(){const _=l.scopeValue("formats",{ref:b.formats,code:g.code.formats}),T=l.const("fmt",r._`${_}[${E.schemaCode}]`);s.fail$data(r.or(r._`typeof ${T} != "object"`,r._`${T} instanceof RegExp`,r._`typeof ${T}.compare != "function"`,p(T)))}function m(){const _=E.schema,T=b.formats[_];if(!T||T===!0)return;if(typeof T!="object"||T instanceof RegExp||typeof T.compare!="function")throw new Error(`"${d}": format "${_}" does not define "compare" function`);const O=l.scopeValue("formats",{key:_,ref:T,code:g.code.formats?r._`${g.code.formats}${r.getProperty(_)}`:void 0});s.fail$data(p(O))}function p(_){return r._`${_}.compare(${u}, ${c}) ${o[d].fail} 0`}},dependencies:["format"]};const i=s=>(s.addKeyword(e.formatLimitDefinition),s);e.default=i}(iw)),iw}var uw;function Mk(){return uw||(uw=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=Tk(),n=Fk(),o=Ge(),a=new o.Name("fullFormats"),i=new o.Name("fastFormats"),s=(u,c={keywords:!0})=>{if(Array.isArray(c))return l(u,c,r.fullFormats,a),u;const[d,v]=c.mode==="fast"?[r.fastFormats,i]:[r.fullFormats,a],g=c.formats||r.formatNames;return l(u,g,d,v),c.keywords&&n.default(u),u};s.get=(u,c="full")=>{const d=(c==="fast"?r.fastFormats:r.fullFormats)[u];if(!d)throw new Error(`Unknown format "${u}"`);return d};function l(u,c,d,v){var g,b;(g=(b=u.opts.code).formats)!==null&&g!==void 0||(b.formats=o._`require("ajv-formats/dist/formats").${v}`);for(const E of c)u.addFormat(E,d[E])}e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s}(Jd,Jd.exports)),Jd.exports}(function(e,t){(function(r,n){e.exports=n()})(Pe,()=>(()=>{var r={n:te=>{var R=te&&te.__esModule?()=>te.default:()=>te;return r.d(R,{a:R}),R},d:(te,R)=>{for(var H in R)r.o(R,H)&&!r.o(te,H)&&Object.defineProperty(te,H,{enumerable:!0,get:R[H]})},o:(te,R)=>Object.prototype.hasOwnProperty.call(te,R),r:te=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(te,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(te,"__esModule",{value:!0})}},n={};r.r(n),r.d(n,{And:()=>u,Atom:()=>W,Calculation:()=>Oe,Comparison:()=>be,DateCalculation:()=>D,DefaultConsoleLogger:()=>F,Formula:()=>s,HasNoLengthError:()=>T,InternalError:()=>p,InvalidTypeError:()=>_,Macro:()=>ue,Not:()=>c,NotBooleanError:()=>O,NotDateError:()=>C,NotDurationError:()=>V,NotNumberError:()=>j,NotNumberOrDateError:()=>Z,Operator:()=>l,Or:()=>d,Parser:()=>K,Plugin:()=>q,Quantifier:()=>Ee,RitaError:()=>g,Rule:()=>i,RulesetError:()=>m,UndefinedPathError:()=>y,UnimplementedError:()=>E,UsageError:()=>b,comparisons:()=>fe,dateOperations:()=>ve,evaluateAll:()=>a,logger:()=>k,mapArgumentsToJSONReady:()=>Te,operations:()=>ee,parseDate:()=>U,setLogger:()=>B,version:()=>$e});const o=yT;function a(te,R){return(0,o.__awaiter)(this,void 0,void 0,function*(){const H={result:!0,details:[],counts:{true:0,false:0}};for(const oe of te){let he=yield oe.evaluate(R);he?H.counts.true++:H.counts.false++,H.result=H.result&&he,H.details.push({id:oe.id,result:he})}return H})}class i{constructor(R,H,oe=""){this.id=R,this.rule=H,this.comment=oe}evaluate(R){return(0,o.__awaiter)(this,void 0,void 0,function*(){return yield this.rule.evaluate(R)})}toJsonReady(){return{id:this.id,rule:this.rule.toJsonReady(),comment:this.comment}}}class s{}class l extends s{constructor(R){super(),this.arguments=R}validate(){return this.arguments.map(R=>R.validate()).reduce((R,H)=>R&&H)}evaluateReduce(R,H,oe=Promise.resolve(!1)){return this.arguments.reduce((he,_e)=>(0,o.__awaiter)(this,void 0,void 0,function*(){return H(yield he,yield _e.evaluate(R))}),oe)}toJsonReady(){return{arguments:this.arguments.map(R=>R.toJsonReady())}}}class u extends l{evaluate(R){return this.evaluateReduce(R,(H,oe)=>H&&oe,Promise.resolve(!0))}validate(){return this.arguments.length>1&&super.validate()}toJsonReady(){return Object.assign(Object.assign({},super.toJsonReady()),{type:"and"})}}class c extends l{evaluate(R){return(0,o.__awaiter)(this,void 0,void 0,function*(){return Promise.resolve(!(yield this.arguments[0].evaluate(R)))})}validate(){return this.arguments.length===1&&super.validate()}toJsonReady(){return Object.assign(Object.assign({},super.toJsonReady()),{type:"not"})}}class d extends l{evaluate(R){return this.evaluateReduce(R,(H,oe)=>H||oe)}validate(){return this.arguments.length>1&&super.validate()}toJsonReady(){return Object.assign(Object.assign({},super.toJsonReady()),{type:"or"})}}const v=gT();class g extends Error{constructor(R,H){super(R),this.context=H}}class b extends g{}class E extends b{constructor(R){super(R||"This function is not implemented")}}class y extends b{}class m extends b{}class p extends Error{}class _ extends b{constructor(R,H,oe){super(`Value is not of type ${oe}: ${H==null?void 0:H.toString()}`,R),this.value=H,this.expectedType=oe}}class T extends _{constructor(R,H){super(R,H,"ArrayLike")}}class O extends _{constructor(R,H){super(R,H,"boolean")}}class j extends _{constructor(R,H){super(R,H,"number")}}class C extends _{constructor(R,H){super(R,H,"Date")}}class Z extends _{constructor(R,H){super(R,H,"number | Date")}}class V extends _{constructor(R,H){super(R,H,"Duration")}}function U(te,R){const H=v.DateTime.fromISO(te).toJSDate();if(isNaN(H.getTime()))throw new b(`Date "${te}" could not be parsed`,R);return H}class W extends s{constructor(R,H=!1,oe){super(),this.path=R,this.isDate=H,this.defaultValue=oe}static getPropertyByString(R,H,oe,he){const _e=(H=(H=H.replace(/\[(\w+)]/g,".$1")).replace(/^\./,"")).split(".");for(let h=0,$=_e.length;h<$;++h){const x=_e[h];if(typeof R!="object"){if(oe!==void 0)return oe;throw new y("Invalid path in data: "+H+" is of invalid type "+typeof R+" with value "+R,he)}if(!(x in R)){if(oe!==void 0)return oe;throw new y("Undefinded path in data: "+H,he)}R=R[x]}return R}getPropertyByString(R){return W.getPropertyByString(R,this.path,this.defaultValue,this)}validate(){return!!this.path}toJsonReady(){const R={type:"atom",path:this.path};return this.isDate&&(R.isDate=!0),this.defaultValue!==void 0&&(R.default=this.defaultValue),R}evaluate(R){return(0,o.__awaiter)(this,void 0,void 0,function*(){let H=this.getPropertyByString(R);return typeof H=="string"&&this.isDate?U(H,this):H})}}var ee,fe,ve,Ne;function Te(te){return te instanceof s?te.toJsonReady():te instanceof Date?v.DateTime.fromJSDate(te).toISO():te}(function(te){te.add="add",te.subtract="subtract",te.multiply="multiply",te.divide="divide",te.modulo="modulo"})(ee||(ee={}));class Oe extends s{constructor(R,H){super(),this.arguments=R,this.operation=H}evaluate(R){return(0,o.__awaiter)(this,void 0,void 0,function*(){let H;switch(this.operation){case ee.add:H=(he,_e)=>he+_e;break;case ee.subtract:H=(he,_e)=>he-_e;break;case ee.multiply:H=(he,_e)=>he*_e;break;case ee.divide:H=(he,_e)=>{if(_e===0)throw new b("Division by zero is not allowed",this);return he/_e};break;case ee.modulo:H=(he,_e)=>{if(_e===0)throw new b("Division by zero is not allowed",this);return he-Math.floor(he/_e)*_e}}let oe=yield Promise.all(this.arguments.map(he=>(0,o.__awaiter)(this,void 0,void 0,function*(){return he instanceof s?yield he.evaluate(R):he})));for(const he of oe)if(he instanceof Date)throw new b("No dates in calculation allowed! Use dateCalculation",this);return oe.splice(1).reduce((he,_e)=>Math.round(1e13*H(he,_e))/1e13,oe[0])})}toJsonReady(){return{type:"calculation",operation:this.operation,arguments:this.arguments.map(Te)}}validate(){return this.arguments.length>=2&&this.arguments.map(R=>R instanceof s?R.validate():!!R).reduce((R,H)=>R&&H)}}(function(te){te.equal="equal",te.smaller="smaller",te.greater="greater",te.smallerOrEqual="smallerOrEqual",te.greaterOrEqual="greaterOrEqual"})(fe||(fe={}));class be extends s{constructor(R,H,oe=!1,he=!1){super(),this.arguments=R,this.operation=H,this.dates=oe,this.allowDifferentTypes=he}toJsonReady(){const R={type:"comparison",operation:this.operation,arguments:this.arguments.map(Te)};return this.dates&&(R.dates=!0),R}evaluate(R){return(0,o.__awaiter)(this,void 0,void 0,function*(){let H=this.arguments[0]instanceof s?yield this.arguments[0].evaluate(R):this.arguments[0],oe=this.arguments[1]instanceof s?yield this.arguments[1].evaluate(R):this.arguments[1];if(H===void 0||oe===void 0)return!1;if(typeof H!=typeof oe&&!this.allowDifferentTypes)throw new b("Elements in comparison must have the same type",this);switch(H instanceof Date&&(H=H.getTime()),oe instanceof Date&&(oe=oe.getTime()),this.operation){case fe.equal:return H===oe;case fe.greater:return H>oe;case fe.greaterOrEqual:return H>=oe;case fe.smaller:return H<oe;case fe.smallerOrEqual:return H<=oe;default:throw new E("Unknown operation: "+this.operation)}})}validate(){return this.arguments.length===2&&this.arguments.map(R=>R instanceof s?R.validate():!!R).reduce((R,H)=>R&&H)}}class Ee extends s{constructor(R,H,oe,he="index",_e){super(),this.quantifier=R,this.array=H,this.placeholder=oe,this.formula=_e,this.indexPlaceholder=he}evaluate(R){return(0,o.__awaiter)(this,void 0,void 0,function*(){let H;if(H=Array.isArray(this.array)?yield Promise.all(this.array.map(oe=>oe.evaluate(R))):yield this.array.evaluate(R),!Array.isArray(H))throw new b("Property 'array' in a quantifier must be an array!",this);for(let oe=0;oe<H.length;oe++){R[this.placeholder]=H[oe],R[this.indexPlaceholder]=oe;const he=yield this.formula.evaluate(R);if(this.quantifier==="forall"&&!he)return!1;if(this.quantifier==="exists"&&he)return!0}return this.quantifier==="forall"})}toJsonReady(){return{type:this.quantifier,array:Array.isArray(this.array)?this.array.map(R=>R.toJsonReady()):this.array.toJsonReady(),placeholder:this.placeholder,rule:this.formula.toJsonReady()}}validate(){return this.placeholder.length!==0&&(Array.isArray(this.array)?this.array.map(R=>R.validate()).reduce((R,H)=>R&&H):this.array.validate())}}class ue extends s{constructor(R,H){super(),this.macro=R,this.array=H}evaluate(R){var H;return(0,o.__awaiter)(this,void 0,void 0,function*(){switch(this.macro){case"now":return new Date;case"length":const oe=yield(H=this.array)===null||H===void 0?void 0:H.evaluate(R);return function(he,_e){if(!(he!=null&&he.hasOwnProperty("length")))throw new T(_e,he)}(oe,this),oe.length}})}toJsonReady(){var R;return{type:"macro",macro:{type:this.macro,array:(R=this.array)===null||R===void 0?void 0:R.toJsonReady()}}}validate(){return!(this.macro==="length"&&!this.array)}}class q extends s{constructor(R,H){super(),this.options=R,this.formula=H}evaluate(R){return(0,o.__awaiter)(this,void 0,void 0,function*(){if(!this.formula)throw new b("Empty formula",this);return this.formula.evaluate(yield this.enrichData(R))})}validate(){if(!this.formula)throw new b("Empty formula",this);return this.formula.validate()}toJsonReady(){return{type:"plugin",name:this.getName(),options:this.options,formula:this.formula}}}(function(te){te.add="add",te.subtract="subtract"})(ve||(ve={})),function(te){te.seconds="seconds",te.minutes="minutes",te.hours="hours",te.days="days",te.months="months",te.years="years"}(Ne||(Ne={}));class D extends s{constructor(R,H,oe=Ne.seconds,he=Ne.seconds){super(),this.arguments=R,this.operation=H,this.dateResultUnit=oe,this.dateCalculationUnit=he}dateMath(R){const H=this.operation,oe=this;return function(he,_e){if(he instanceof Date&&_e instanceof Date)return v.Duration.fromMillis(R(he.getTime(),_e.getTime()),{conversionAccuracy:"longterm"});if(!(he instanceof Date||_e instanceof Date))return v.Duration.fromMillis(R(he.toMillis(),_e.toMillis()),{conversionAccuracy:"longterm"});let h,$;he instanceof Date&&!(_e instanceof Date)?(h=he,$=_e):(h=_e,$=he);const x=v.DateTime.fromJSDate(h);switch(H){case ve.add:return x.plus($).toJSDate();case ve.subtract:return x.minus($).toJSDate();default:throw new m("Invalid Operation for Dates",oe)}}}evaluate(R){return(0,o.__awaiter)(this,void 0,void 0,function*(){let H;switch(this.operation){case ve.add:H=(_e,h)=>_e+h;break;case ve.subtract:H=(_e,h)=>_e-h}const oe=(yield Promise.all(this.arguments.map(_e=>(0,o.__awaiter)(this,void 0,void 0,function*(){return _e instanceof s?yield _e.evaluate(R):_e})))).map(_e=>(function(h,$){if(!(typeof h=="number"||h instanceof Date))throw new Z($,h)}(_e,this),typeof _e=="number"?v.Duration.fromObject({[this.dateCalculationUnit]:_e},{conversionAccuracy:"longterm"}):_e)),he=oe.splice(1).reduce(this.dateMath((_e,h)=>Math.round(1e13*H(_e,h))/1e13),oe[0]);return he instanceof Date?he:he.as(this.dateResultUnit)})}toJsonReady(){return{type:"dateCalculation",operation:this.operation,arguments:this.arguments.map(Te),dateResultUnit:this.dateResultUnit,dateCalculationUnit:this.dateCalculationUnit}}validate(){return this.arguments.length>=2&&this.arguments.map(R=>R instanceof s?R.validate():!!R).reduce((R,H)=>R&&H)}}class F{fatal(R){this.error(R)}error(R){console.error(R)}log(R){console.log(R)}warn(R){console.warn(R)}debug(R){console.log(R)}}let k=new F;function B(te){k=te}const J=xk();var de=r.n(J);const se=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://raw.githubusercontent.com/educorvi/rita/main/rita-core/src/schema/schema.json","title":"Main","description":"The entrypoint of the Rita schema","type":"object","properties":{"rules":{"type":"array","title":"Ruleset","description":"Array of all rules in this ruleset.","items":{"$ref":"rule.json"}}},"required":["rules"]}'),Se=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://raw.githubusercontent.com/educorvi/rita/main/rita-core/src/schema/atom.json","title":"Atom","description":"Describes an atom. Those can be used to read Data","type":"object","properties":{"type":{"type":"string","enum":["atom"]},"path":{"description":"The path to the atom in the data","type":"string"},"isDate":{"type":"boolean","default":false,"description":"Must be set to true if the atom should be parsed as a date"},"default":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","format":"date-time"},{"type":"array"}]}},"required":["type","path"],"additionalProperties":false}'),je=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://raw.githubusercontent.com/educorvi/rita/main/rita-core/src/schema/operator.json","title":"Operator","oneOf":[{"title":"Non-Unary operator","description":"Requires at least two arguments","type":"object","properties":{"type":{"type":"string","enum":["and","or"]},"arguments":{"type":"array","title":"Multiple arguments","minItems":2,"items":{"$ref":"formula.json"}}},"required":["arguments","type"],"additionalProperties":false},{"title":"Unary operator","description":"Requires exactly on parameter","type":"object","properties":{"type":{"type":"string","enum":["not"]},"arguments":{"type":"array","title":"Unary Arguments","minItems":1,"maxItems":1,"items":{"$ref":"formula.json"}}},"required":["arguments","type"],"additionalProperties":false}]}'),Y=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://raw.githubusercontent.com/educorvi/rita/main/rita-core/src/schema/rule.json","title":"Rule","type":"object","properties":{"id":{"type":"string"},"comment":{"type":"string","description":"A comment about what the rule does"},"rule":{"$ref":"formula.json"}},"required":["id","rule"],"examples":[{"id":"rule1","rule":{"type":"and","arguments":[{"type":"atom","path":"member"},{"type":"not","arguments":[{"type":"atom","path":"employee"}]}]}}]}'),re=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://raw.githubusercontent.com/educorvi/rita/main/rita-core/src/schema/formula.json","title":"Formula","oneOf":[{"$ref":"operator.json"},{"$ref":"atom.json"},{"$ref":"plugin.json"},{"$ref":"comparison.json"},{"$ref":"quantifier.json"}]}'),N=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://raw.githubusercontent.com/educorvi/rita/main/rita-core/src/schema/calculation.json","title":"Calculation","description":"Calculates a result","type":"object","properties":{"type":{"type":"string","enum":["calculation"]},"operation":{"description":"The mathematical operation to be calculated. Modulo refers to the function mod(a,b)=a-(floor(a/b)*b)","type":"string","enum":["add","subtract","multiply","divide","modulo"]},"arguments":{"type":"array","minItems":2,"items":{"oneOf":[{"$ref":"atom.json"},{"$ref":"macro.json"},{"type":"number"},{"$ref":"calculation.json"},{"$ref":"dateCalculation.json"}]}}},"required":["operation","arguments","type"],"additionalProperties":false}'),M=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://raw.githubusercontent.com/educorvi/rita/main/rita-core/src/schema/dateCalculation.json","title":"Date Calculation","description":"Calculations involving dates","type":"object","properties":{"type":{"type":"string","enum":["dateCalculation"]},"operation":{"description":"Add/subtract a time interval to/from a date or subtract two dates to get the interval between them","type":"string","enum":["add","subtract"]},"arguments":{"type":"array","minItems":2,"maxItems":2,"items":{"oneOf":[{"$ref":"atom.json"},{"$ref":"macro.json"},{"type":"number"},{"type":"string","format":"date-time"},{"$ref":"calculation.json"},{"$ref":"dateCalculation.json"}]}},"dateCalculationUnit":{"description":"What unit time intervals given as arguments will be in.","type":"string","enum":["seconds","minutes","hours","days","months","years"],"default":"seconds"},"dateResultUnit":{"description":"What unit time intervals representing the result will be in.","type":"string","enum":["seconds","minutes","hours","days","months","years"],"default":"seconds"}},"required":["operation","arguments","type"],"additionalProperties":false}'),X=[se,Se,Y,re,je,N,JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://raw.githubusercontent.com/educorvi/rita/main/rita-core/src/schema/comparison.json","description":"Compare strings, dates or numbers with each other","title":"Comparison","type":"object","properties":{"type":{"type":"string","enum":["comparison"]},"operation":{"description":"Selects how the arguments should be compared","type":"string","enum":["greater","smaller","greaterOrEqual","smallerOrEqual","equal"]},"dates":{"description":"Indicates if dates are compared","type":"boolean","default":false},"allowDifferentTypes":{"description":"Indicates if different types are allowed inside a comparison. This follows the JavaScript rules for comparison (´===´ is used for ´equals´).","type":"boolean","default":false},"arguments":{"type":"array","minItems":2,"maxItems":2,"items":{"oneOf":[{"$ref":"atom.json"},{"$ref":"macro.json"},{"type":"number"},{"type":"string","format":"date-time"},{"type":"string"},{"$ref":"calculation.json"},{"$ref":"dateCalculation.json"}]}}},"required":["type","operation","arguments"],"additionalProperties":false,"examples":[{"comment":"This evaluates to \\"5>2\\"","type":"comparison","operation":"greater","arguments":[5,2]},{"comment":"Check two Strings for equality","type":"comparison","operation":"equal","arguments":["test","test1"]}]}'),JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://raw.githubusercontent.com/educorvi/rita/main/rita-core/src/schema/quantifier.json","title":"Quantifier","type":"object","description":"Quantifiers that can be used to evaluate rules on arrays in Data","properties":{"type":{"type":"string","enum":["forall","exists"]},"array":{"title":"Data array","description":"This can either be an Atom that references an array in the data, or an array of rules","oneOf":[{"type":"array","items":{"$ref":"formula.json"}},{"$ref":"atom.json"}]},"placeholder":{"description":"This is a placeholder name for the current array object. This is the property name with wich you can reference the current value in the subsequent rule","type":"string","minLength":1},"indexPlaceholder":{"description":"This is a placeholder name for the current index of the array object. This is the property name with wich you can reference the current index in the subsequent rule","type":"string","minLength":1,"default":"index"},"rule":{"$ref":"formula.json"}},"additionalProperties":false,"required":["type","array","placeholder","rule"],"examples":[{"type":"forall","array":{"type":"atom","path":"arrayOfIntValues"},"placeholder":"forallItem","rule":{"type":"comparison","operation":"greater","arguments":[5,{"type":"atom","path":"forallItem"}]}}]}'),JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://raw.githubusercontent.com/educorvi/rita/main/rita-core/src/schema/macro.json","title":"Macro","description":"Describes macros. Available macros are `now` and `length`","type":"object","properties":{"type":{"type":"string","enum":["macro"]},"macro":{"oneOf":[{"title":"now","description":"Returns the current time","type":"object","properties":{"type":{"type":"string","enum":["now"]}},"additionalProperties":false},{"title":"length","description":"Returns the length of an array","type":"object","properties":{"type":{"type":"string","enum":["length"]},"array":{"$ref":"atom.json"}},"additionalProperties":false}]}},"required":["type","macro"],"additionalProperties":false,"examples":[{"type":"macro","macro":{"type":"now"}},{"type":"macro","macro":{"type":"length","array":{"type":"atom","path":"customers"}}}]}'),JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://raw.githubusercontent.com/educorvi/rita/main/rita-core/src/schema/plugin.json","title":"Plugin","description":"Describes an plugin","type":"object","properties":{"type":{"type":"string","enum":["plugin"]},"name":{"description":"The plugins name","type":"string"},"formula":{"$ref":"formula.json"},"options":{"description":"The plugins options","type":"object"}},"required":["type","name","formula"],"additionalProperties":false,"examples":[{"type":"plugin","name":"http","options":{"url":"https://example.com/api"},"formula":{"type":"atom","path":"keyInResponse"}}]}'),M],le=Mk();var ye=r.n(le);const ge=new(de())({schemas:X});ye()(ge);class K{constructor(R){if(this.plugins=new Map,this.toJson=K.toJson,this.validate=ge.getSchema("https://raw.githubusercontent.com/educorvi/rita/main/rita-core/src/schema/schema.json"),R)for(const H of R)this.plugins.set(new H({},void 0).getName(),H)}validateRuleSetJSON(R){if(!this.validate)throw new p("Error compiling schema");let H=this.validate(R);if(typeof H!="boolean")throw new p("Error compiling schema");return{valid:H,errors:this.validate.errors||[]}}parseRuleSet(R){return R.rules.map(H=>this.parseRule(H))}parseRule(R){return new i(R.id,this.parseFormula(R.rule),R.comment)}parseFormula(R){switch(R.type){case"atom":return this.parseAtom(R);case"comparison":return this.parseComparison(R);case"calculation":return this.parseCalculation(R);case"dateCalculation":return this.parseDateCalculation(R);case"forall":case"exists":return this.parseQuantifier(R);case"and":case"or":case"not":return this.parseOperator(R);case"macro":return this.parseMacro(R);case"plugin":return this.parsePlugin(R);default:throw new E(R.type+" is not implemented")}}parseOperator(R){const H=R.type,oe=[];for(const he of R.arguments)oe.push(this.parseFormula(he));switch(H){case"not":return new c(oe);case"and":return new u(oe);case"or":return new d(oe)}}parseAtom(R){return new W(R.path,!!R.isDate,R.default)}parseComparisonParams(R,H){const oe=[];for(const he of R)if(typeof he=="object")oe.push(this.parseFormula(he));else if(H){const _e=new Date(he);if(isNaN(_e.getTime()))throw new b("Invalid Date: "+he);oe.push(_e)}else oe.push(he);return oe}parseComparison(R){return new be(this.parseComparisonParams(R.arguments,R.dates),R.operation,R.dates,R.allowDifferentTypes)}parseCalculationParams(R){const H=[];for(const oe of R)typeof oe=="number"?H.push(oe):H.push(this.parseFormula(oe));return H}parseDateCalculationParams(R){const H=[];for(const oe of R)typeof oe=="number"?H.push(oe):typeof oe=="string"?H.push(U(oe)):H.push(this.parseFormula(oe));return H}parseCalculation(R){return new Oe(this.parseCalculationParams(R.arguments),R.operation)}parseDateCalculation(R){return new D(this.parseDateCalculationParams(R.arguments),R.operation,R.dateResultUnit,R.dateCalculationUnit)}parseQuantifier(R){let H;return H=Array.isArray(R.array)?R.array.map(oe=>this.parseFormula(oe)):this.parseAtom(R.array),new Ee(R.type,H,R.placeholder,R.indexPlaceholder,this.parseFormula(R.rule))}parseMacro(R){let H;return R.macro.type==="length"&&(H=this.parseAtom(R.macro.array)),new ue(R.macro.type,H)}parsePlugin(R){const H=R.name,oe=this.plugins.get(H);if(!oe)throw new b(`Plugin ${H} is not registered!`);return new oe(R.options,this.parseFormula(R.formula))}static toJson(R){return JSON.stringify({$schema:se.$id,rules:R.map(H=>H.toJsonReady())})}}const $e="5.4.2";return n})())})(Dv);var is=Dv.exports;function Vk(e){switch(e){case"EQUALS":return(t,r)=>t==r;case"NOT_EQUALS":return(t,r)=>t!=r;case"GREATER":return(t,r)=>t>r;case"GREATER_OR_EQUAL":return(t,r)=>t>=r;case"SMALLER":return(t,r)=>t<r;case"SMALLER_OR_EQUAL":return(t,r)=>t<r}}function Uk(e){var t;const r=Xr();if(fv(e.showOn))return ne(()=>{if(!fv(e.showOn))throw new Error("This should not happen");const n=Vk(e.showOn.type),o=e.showOn.referenceValue;try{return n(is.Atom.getPropertyByString(r.cleanedFormData.json,e.showOn.path,""),o)}catch(a){return a instanceof is.UndefinedPathError&&console.warn(`Error while evaluating showOn rule: ${a.message}`,e.showOn),!1}});{const n=ot(!1),o=new is.Parser;let a;try{a=o.parseRule(e.showOn)}catch(i){return console.warn(`Error while parsing showOn rule '${(t=e.showOn)==null?void 0:t.id}'`,i),n}return r.$subscribe(()=>{const i=new RegExp(`^([^.\\s]+)\\.(${Xi}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})`),s={};if(e.type==="Control"){const u=e.scope.split("/");u.map((c,d)=>{const v=c.match(i);return v?{arrayName:u.slice(0,d).join("/")+"/"+v[1],arrayAlias:v[2]}:null}).forEach(c=>{if(c){const d=Td(c.arrayName);s[d]=r.arrayAliasIndices.get(c.arrayAlias)??0}})}const l={$selfIndices:s,...r.cleanedFormData.json};a.evaluate(l).then(u=>{n.value=u}).catch(u=>{n.value=!1,u instanceof is.HasNoLengthError?console.warn(`Error while evaluating showOn rule "${a.id}": ${u.message}
|
40
|
+
In formula:`,u.context,"with value",u.value):u instanceof is.RitaError?console.warn(`Error while evaluating showOn rule "${a.id}": ${u.message}
|
41
|
+
In formula:`,u.context):console.warn(`Error while evaluating showOn rule "${a.id}": ${u.message}`)})}),n}}function Lk(e){let t=e;return e.type==="Control"&&(t=Nd(e)),ix(t)?Uk(t):ot(!0)}const Xu=Re({__name:"FormWrap",props:{layoutElement:{}},setup(e){const t=Qt("showOnWrapper"),r=e;function n(s){switch(s){case"Control":return Ra.Control;case"VerticalLayout":return Ra.VerticalLayout;case"HorizontalLayout":return Ra.HorizontalLayout;case"Group":return Ra.Group;case"HTML":return Ra.htmlRenderer;case"Divider":return Ra.Divider;case"Button":return Bv.vjfButton;case"Buttongroup":return Bv.vjfButtonGroup;default:return Hx}}const o=Vn(n(r.layoutElement.type));let a=r.layoutElement;a.type==="Control"&&Nd(a);const i=Lk(a);return(s,l)=>(ie(),xe(P(t),{visible:P(i)},{default:Ce(()=>[P(i)?(ie(),xe(_t(P(o)),{key:0,layoutElement:s.layoutElement},null,8,["layoutElement"])):ut("",!0)]),_:1},8,["visible"]))}});var cw={},Zd={};const zk=!1,qk=/\r?\n/,Wk=/\bono[ @]/;function Hk(e){return!!(e&&e.configurable&&typeof e.get=="function")}function Gk(e){return!!(!e||e.writable||typeof e.set=="function")}function fw(e,t){let r=dw(e.stack),n=t?t.stack:void 0;return r&&n?r+`
|
42
|
+
|
43
|
+
`+n:r||n}function Jk(e,t,r){r?Object.defineProperty(t,"stack",{get:()=>{let n=e.get.apply(t);return fw({stack:n},r)},enumerable:!1,configurable:!0}):Kk(t,e)}function dw(e){if(e){let t=e.split(qk),r;for(let n=0;n<t.length;n++){let o=t[n];if(Wk.test(o))r===void 0&&(r=n);else if(r!==void 0){t.splice(r,n-r);break}}if(t.length>0)return t.join(`
|
44
|
+
`)}return e}function Kk(e,t){Object.defineProperty(e,"stack",{get:()=>dw(t.get.apply(e)),enumerable:!1,configurable:!0})}const Zk=["function","symbol","undefined"],Yk=["constructor","prototype","__proto__"],Xk=Object.getPrototypeOf({});function pw(){let e={},t=this;for(let r of hw(t))if(typeof r=="string"){let n=t[r],o=typeof n;Zk.includes(o)||(e[r]=n)}return e}function hw(e,t=[]){let r=[];for(;e&&e!==Xk;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let o of t.concat(Yk))n.delete(o);return n}const Qk=["name","message","stack"];function Qu(e,t,r){let n=e;return eC(n,t),t&&typeof t=="object"&&tC(n,t),n.toJSON=pw,r&&typeof r=="object"&&Object.assign(n,r),n}function eC(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");Hk(r)?Jk(r,e,t):Gk(r)&&(e.stack=fw(e,t))}function tC(e,t){let r=hw(t,Qk),n=e,o=t;for(let a of r)if(n[a]===void 0)try{n[a]=o[a]}catch{}}function rC(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?zk:typeof e.format=="function"?e.format:!1}}function nC(e,t){let r,n,o,a="";return typeof e[0]=="string"?o=e:typeof e[1]=="string"?(e[0]instanceof Error?r=e[0]:n=e[0],o=e.slice(1)):(r=e[0],n=e[1],o=e.slice(2)),o.length>0&&(t.format?a=t.format.apply(void 0,o):a=o.join(" ")),t.concatMessages&&r&&r.message&&(a+=(a?`
|
45
|
+
`:"")+r.message),{originalError:r,props:n,message:a}}const go=Yd;function Yd(e,t){t=rC(t);function r(...n){let{originalError:o,props:a,message:i}=nC(n,t),s=new e(i);return Qu(s,o,a)}return r[Symbol.species]=e,r}Yd.toJSON=function(e){return pw.call(e)},Yd.extend=function(e,t,r){return r||t instanceof Error?Qu(e,t,r):t?Qu(e,void 0,t):Qu(e)};const mw=xn;xn.error=new go(Error),xn.eval=new go(EvalError),xn.range=new go(RangeError),xn.reference=new go(ReferenceError),xn.syntax=new go(SyntaxError),xn.type=new go(TypeError),xn.uri=new go(URIError);const oC=xn;function xn(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(oC))if(typeof r=="function"&&r.name==="ono"){let n=r[Symbol.species];if(n&&n!==Error&&(t instanceof n||t.name===n.name))return r.apply(void 0,e)}}return xn.error.apply(void 0,e)}var aC={},yw={},Xd=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),r=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var n=42;e[t]=n;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==n||a.enumerable!==!0)return!1}return!0},iC=Xd,gw=function(){return iC()&&!!Symbol.toStringTag},vw=typeof Symbol<"u"&&Symbol,sC=Xd,ec=function(){return typeof vw!="function"||typeof Symbol!="function"||typeof vw("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:sC()},bw={foo:{}},lC=Object,tc=function(){return{__proto__:bw}.foo===bw.foo&&!({__proto__:null}instanceof lC)},uC="Function.prototype.bind called on incompatible ",Qd=Array.prototype.slice,cC=Object.prototype.toString,fC="[object Function]",dC=function(e){var t=this;if(typeof t!="function"||cC.call(t)!==fC)throw new TypeError(uC+t);for(var r=Qd.call(arguments,1),n,o=function(){if(this instanceof n){var u=t.apply(this,r.concat(Qd.call(arguments)));return Object(u)===u?u:this}else return t.apply(e,r.concat(Qd.call(arguments)))},a=Math.max(0,t.length-r.length),i=[],s=0;s<a;s++)i.push("$"+s);if(n=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")(o),t.prototype){var l=function(){};l.prototype=t.prototype,n.prototype=new l,l.prototype=null}return n},pC=dC,hC=Function.prototype.bind||pC,mC="Function.prototype.bind called on incompatible ",ep=Array.prototype.slice,yC=Object.prototype.toString,gC="[object Function]",vC=function(e){var t=this;if(typeof t!="function"||yC.call(t)!==gC)throw new TypeError(mC+t);for(var r=ep.call(arguments,1),n,o=function(){if(this instanceof n){var u=t.apply(this,r.concat(ep.call(arguments)));return Object(u)===u?u:this}else return t.apply(e,r.concat(ep.call(arguments)))},a=Math.max(0,t.length-r.length),i=[],s=0;s<a;s++)i.push("$"+s);if(n=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")(o),t.prototype){var l=function(){};l.prototype=t.prototype,n.prototype=new l,l.prototype=null}return n},bC=vC,wC=Function.prototype.bind||bC,_C=wC,SC=_C.call(Function.call,Object.prototype.hasOwnProperty),ct,La=SyntaxError,ww=Function,za=TypeError,tp=function(e){try{return ww('"use strict"; return ('+e+").constructor;")()}catch{}},Ho=Object.getOwnPropertyDescriptor;if(Ho)try{Ho({},"")}catch{Ho=null}var rp=function(){throw new za},$C=Ho?function(){try{return arguments.callee,rp}catch{try{return Ho(arguments,"callee").get}catch{return rp}}}():rp,qa=ec(),EC=tc(),er=Object.getPrototypeOf||(EC?function(e){return e.__proto__}:null),Wa={},OC=typeof Uint8Array>"u"||!er?ct:er(Uint8Array),Go={"%AggregateError%":typeof AggregateError>"u"?ct:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ct:ArrayBuffer,"%ArrayIteratorPrototype%":qa&&er?er([][Symbol.iterator]()):ct,"%AsyncFromSyncIteratorPrototype%":ct,"%AsyncFunction%":Wa,"%AsyncGenerator%":Wa,"%AsyncGeneratorFunction%":Wa,"%AsyncIteratorPrototype%":Wa,"%Atomics%":typeof Atomics>"u"?ct:Atomics,"%BigInt%":typeof BigInt>"u"?ct:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ct:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ct:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ct:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?ct:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ct:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ct:FinalizationRegistry,"%Function%":ww,"%GeneratorFunction%":Wa,"%Int8Array%":typeof Int8Array>"u"?ct:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ct:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ct:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":qa&&er?er(er([][Symbol.iterator]())):ct,"%JSON%":typeof JSON=="object"?JSON:ct,"%Map%":typeof Map>"u"?ct:Map,"%MapIteratorPrototype%":typeof Map>"u"||!qa||!er?ct:er(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ct:Promise,"%Proxy%":typeof Proxy>"u"?ct:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?ct:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ct:Set,"%SetIteratorPrototype%":typeof Set>"u"||!qa||!er?ct:er(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ct:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":qa&&er?er(""[Symbol.iterator]()):ct,"%Symbol%":qa?Symbol:ct,"%SyntaxError%":La,"%ThrowTypeError%":$C,"%TypedArray%":OC,"%TypeError%":za,"%Uint8Array%":typeof Uint8Array>"u"?ct:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ct:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ct:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ct:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?ct:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ct:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ct:WeakSet};if(er)try{null.error}catch(e){var AC=er(er(e));Go["%Error.prototype%"]=AC}var PC=function e(t){var r;if(t==="%AsyncFunction%")r=tp("async function () {}");else if(t==="%GeneratorFunction%")r=tp("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=tp("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&er&&(r=er(o.prototype))}return Go[t]=r,r},_w={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ss=hC,rc=SC,xC=ss.call(Function.call,Array.prototype.concat),TC=ss.call(Function.apply,Array.prototype.splice),Sw=ss.call(Function.call,String.prototype.replace),nc=ss.call(Function.call,String.prototype.slice),jC=ss.call(Function.call,RegExp.prototype.exec),kC=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,CC=/\\(\\)?/g,NC=function(e){var t=nc(e,0,1),r=nc(e,-1);if(t==="%"&&r!=="%")throw new La("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&t!=="%")throw new La("invalid intrinsic syntax, expected opening `%`");var n=[];return Sw(e,kC,function(o,a,i,s){n[n.length]=i?Sw(s,CC,"$1"):a||o}),n},IC=function(e,t){var r=e,n;if(rc(_w,r)&&(n=_w[r],r="%"+n[0]+"%"),rc(Go,r)){var o=Go[r];if(o===Wa&&(o=PC(r)),typeof o>"u"&&!t)throw new za("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new La("intrinsic "+e+" does not exist!")},np=function(e,t){if(typeof e!="string"||e.length===0)throw new za("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new za('"allowMissing" argument must be a boolean');if(jC(/^%?[^%]*%?$/,e)===null)throw new La("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=NC(e),n=r.length>0?r[0]:"",o=IC("%"+n+"%",t),a=o.name,i=o.value,s=!1,l=o.alias;l&&(n=l[0],TC(r,xC([0,1],l)));for(var u=1,c=!0;u<r.length;u+=1){var d=r[u],v=nc(d,0,1),g=nc(d,-1);if((v==='"'||v==="'"||v==="`"||g==='"'||g==="'"||g==="`")&&v!==g)throw new La("property names with quotes must have matching quotes");if((d==="constructor"||!c)&&(s=!0),n+="."+d,a="%"+n+"%",rc(Go,a))i=Go[a];else if(i!=null){if(!(d in i)){if(!t)throw new za("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ho&&u+1>=r.length){var b=Ho(i,d);c=!!b,c&&"get"in b&&!("originalValue"in b.get)?i=b.get:i=i[d]}else c=rc(i,d),i=i[d];c&&!s&&(Go[a]=i)}}return i},$w={exports:{}},RC="Function.prototype.bind called on incompatible ",op=Array.prototype.slice,BC=Object.prototype.toString,DC="[object Function]",FC=function(e){var t=this;if(typeof t!="function"||BC.call(t)!==DC)throw new TypeError(RC+t);for(var r=op.call(arguments,1),n,o=function(){if(this instanceof n){var u=t.apply(this,r.concat(op.call(arguments)));return Object(u)===u?u:this}else return t.apply(e,r.concat(op.call(arguments)))},a=Math.max(0,t.length-r.length),i=[],s=0;s<a;s++)i.push("$"+s);if(n=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")(o),t.prototype){var l=function(){};l.prototype=t.prototype,n.prototype=new l,l.prototype=null}return n},MC=FC,VC=Function.prototype.bind||MC;(function(e){var t=VC,r=np,n=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||t.call(o,n),i=r("%Object.getOwnPropertyDescriptor%",!0),s=r("%Object.defineProperty%",!0),l=r("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}e.exports=function(c){var d=a(t,o,arguments);if(i&&s){var v=i(d,"length");v.configurable&&s(d,"length",{value:1+l(0,c.length-(arguments.length-1))})}return d};var u=function(){return a(t,n,arguments)};s?s(e.exports,"apply",{value:u}):e.exports.apply=u})($w);var UC=$w.exports,Ew=np,Ow=UC,LC=Ow(Ew("String.prototype.indexOf")),zC=function(e,t){var r=Ew(e,!!t);return typeof r=="function"&&LC(e,".prototype.")>-1?Ow(r):r},qC=gw(),WC=zC,ap=WC("Object.prototype.toString"),oc=function(e){return qC&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:ap(e)==="[object Arguments]"},Aw=function(e){return oc(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&ap(e)!=="[object Array]"&&ap(e.callee)==="[object Function]"},HC=function(){return oc(arguments)}();oc.isLegacyArguments=Aw;var GC=HC?oc:Aw,JC=Object.prototype.toString,KC=Function.prototype.toString,ZC=/^\s*(?:function)?\*/,Pw=gw(),ip=Object.getPrototypeOf,YC=function(){if(!Pw)return!1;try{return Function("return function*() {}")()}catch{}},sp,XC=function(e){if(typeof e!="function")return!1;if(ZC.test(KC.call(e)))return!0;if(!Pw){var t=JC.call(e);return t==="[object GeneratorFunction]"}if(!ip)return!1;if(typeof sp>"u"){var r=YC();sp=r?ip(r):!1}return ip(e)===sp},xw=Function.prototype.toString,Ha=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,lp,ac;if(typeof Ha=="function"&&typeof Object.defineProperty=="function")try{lp=Object.defineProperty({},"length",{get:function(){throw ac}}),ac={},Ha(function(){throw 42},null,lp)}catch(e){e!==ac&&(Ha=null)}else Ha=null;var QC=/^\s*class\b/,up=function(e){try{var t=xw.call(e);return QC.test(t)}catch{return!1}},cp=function(e){try{return up(e)?!1:(xw.call(e),!0)}catch{return!1}},ic=Object.prototype.toString,eN="[object Object]",tN="[object Function]",rN="[object GeneratorFunction]",nN="[object HTMLAllCollection]",oN="[object HTML document.all class]",aN="[object HTMLCollection]",iN=typeof Symbol=="function"&&!!Symbol.toStringTag,sN=!(0 in[,]),fp=function(){return!1};if(typeof document=="object"){var lN=document.all;ic.call(lN)===ic.call(document.all)&&(fp=function(e){if((sN||!e)&&(typeof e>"u"||typeof e=="object"))try{var t=ic.call(e);return(t===nN||t===oN||t===aN||t===eN)&&e("")==null}catch{}return!1})}var uN=Ha?function(e){if(fp(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{Ha(e,null,lp)}catch(t){if(t!==ac)return!1}return!up(e)&&cp(e)}:function(e){if(fp(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(iN)return cp(e);if(up(e))return!1;var t=ic.call(e);return t!==tN&&t!==rN&&!/^\[object HTML/.test(t)?!1:cp(e)},cN=uN,fN=Object.prototype.toString,Tw=Object.prototype.hasOwnProperty,dN=function(e,t,r){for(var n=0,o=e.length;n<o;n++)Tw.call(e,n)&&(r==null?t(e[n],n,e):t.call(r,e[n],n,e))},pN=function(e,t,r){for(var n=0,o=e.length;n<o;n++)r==null?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)},hN=function(e,t,r){for(var n in e)Tw.call(e,n)&&(r==null?t(e[n],n,e):t.call(r,e[n],n,e))},mN=function(e,t,r){if(!cN(t))throw new TypeError("iterator must be a function");var n;arguments.length>=3&&(n=r),fN.call(e)==="[object Array]"?dN(e,t,n):typeof e=="string"?pN(e,t,n):hN(e,t,n)},yN=mN,gN=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],dp=gN,vN=typeof globalThis>"u"?Pe:globalThis,bN=function(){for(var e=[],t=0;t<dp.length;t++)typeof vN[dp[t]]=="function"&&(e[e.length]=dp[t]);return e},jw={exports:{}},wN="Function.prototype.bind called on incompatible ",_N=Object.prototype.toString,SN=Math.max,$N="[object Function]",kw=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r},EN=function(e,t){for(var r=[],n=t,o=0;n<e.length;n+=1,o+=1)r[o]=e[n];return r},ON=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},AN=function(e){var t=this;if(typeof t!="function"||_N.apply(t)!==$N)throw new TypeError(wN+t);for(var r=EN(arguments,1),n,o=function(){if(this instanceof n){var u=t.apply(this,kw(r,arguments));return Object(u)===u?u:this}return t.apply(e,kw(r,arguments))},a=SN(0,t.length-r.length),i=[],s=0;s<a;s++)i[s]="$"+s;if(n=Function("binder","return function ("+ON(i,",")+"){ return binder.apply(this,arguments); }")(o),t.prototype){var l=function(){};l.prototype=t.prototype,n.prototype=new l,l.prototype=null}return n},PN=AN,ls=Function.prototype.bind||PN,pp=Error,hp=EvalError,mp=RangeError,yp=ReferenceError,sc=SyntaxError,Ga=TypeError,gp=URIError,xN=Function.prototype.call,TN=Object.prototype.hasOwnProperty,jN=ls,vp=jN.call(xN,TN),ft,kN=pp,CN=hp,NN=mp,IN=yp,Ja=sc,Ka=Ga,RN=gp,Cw=Function,bp=function(e){try{return Cw('"use strict"; return ('+e+").constructor;")()}catch{}},Jo=Object.getOwnPropertyDescriptor;if(Jo)try{Jo({},"")}catch{Jo=null}var wp=function(){throw new Ka},BN=Jo?function(){try{return arguments.callee,wp}catch{try{return Jo(arguments,"callee").get}catch{return wp}}}():wp,Za=ec(),DN=tc(),tr=Object.getPrototypeOf||(DN?function(e){return e.__proto__}:null),Ya={},FN=typeof Uint8Array>"u"||!tr?ft:tr(Uint8Array),Ko={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ft:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ft:ArrayBuffer,"%ArrayIteratorPrototype%":Za&&tr?tr([][Symbol.iterator]()):ft,"%AsyncFromSyncIteratorPrototype%":ft,"%AsyncFunction%":Ya,"%AsyncGenerator%":Ya,"%AsyncGeneratorFunction%":Ya,"%AsyncIteratorPrototype%":Ya,"%Atomics%":typeof Atomics>"u"?ft:Atomics,"%BigInt%":typeof BigInt>"u"?ft:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ft:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ft:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ft:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":kN,"%eval%":eval,"%EvalError%":CN,"%Float32Array%":typeof Float32Array>"u"?ft:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ft:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ft:FinalizationRegistry,"%Function%":Cw,"%GeneratorFunction%":Ya,"%Int8Array%":typeof Int8Array>"u"?ft:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ft:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ft:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Za&&tr?tr(tr([][Symbol.iterator]())):ft,"%JSON%":typeof JSON=="object"?JSON:ft,"%Map%":typeof Map>"u"?ft:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Za||!tr?ft:tr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ft:Promise,"%Proxy%":typeof Proxy>"u"?ft:Proxy,"%RangeError%":NN,"%ReferenceError%":IN,"%Reflect%":typeof Reflect>"u"?ft:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ft:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Za||!tr?ft:tr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ft:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Za&&tr?tr(""[Symbol.iterator]()):ft,"%Symbol%":Za?Symbol:ft,"%SyntaxError%":Ja,"%ThrowTypeError%":BN,"%TypedArray%":FN,"%TypeError%":Ka,"%Uint8Array%":typeof Uint8Array>"u"?ft:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ft:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ft:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ft:Uint32Array,"%URIError%":RN,"%WeakMap%":typeof WeakMap>"u"?ft:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ft:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ft:WeakSet};if(tr)try{null.error}catch(e){var MN=tr(tr(e));Ko["%Error.prototype%"]=MN}var VN=function e(t){var r;if(t==="%AsyncFunction%")r=bp("async function () {}");else if(t==="%GeneratorFunction%")r=bp("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=bp("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&tr&&(r=tr(o.prototype))}return Ko[t]=r,r},Nw={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},us=ls,lc=vp,UN=us.call(Function.call,Array.prototype.concat),LN=us.call(Function.apply,Array.prototype.splice),Iw=us.call(Function.call,String.prototype.replace),uc=us.call(Function.call,String.prototype.slice),zN=us.call(Function.call,RegExp.prototype.exec),qN=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,WN=/\\(\\)?/g,HN=function(e){var t=uc(e,0,1),r=uc(e,-1);if(t==="%"&&r!=="%")throw new Ja("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&t!=="%")throw new Ja("invalid intrinsic syntax, expected opening `%`");var n=[];return Iw(e,qN,function(o,a,i,s){n[n.length]=i?Iw(s,WN,"$1"):a||o}),n},GN=function(e,t){var r=e,n;if(lc(Nw,r)&&(n=Nw[r],r="%"+n[0]+"%"),lc(Ko,r)){var o=Ko[r];if(o===Ya&&(o=VN(r)),typeof o>"u"&&!t)throw new Ka("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new Ja("intrinsic "+e+" does not exist!")},Rw=function(e,t){if(typeof e!="string"||e.length===0)throw new Ka("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new Ka('"allowMissing" argument must be a boolean');if(zN(/^%?[^%]*%?$/,e)===null)throw new Ja("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=HN(e),n=r.length>0?r[0]:"",o=GN("%"+n+"%",t),a=o.name,i=o.value,s=!1,l=o.alias;l&&(n=l[0],LN(r,UN([0,1],l)));for(var u=1,c=!0;u<r.length;u+=1){var d=r[u],v=uc(d,0,1),g=uc(d,-1);if((v==='"'||v==="'"||v==="`"||g==='"'||g==="'"||g==="`")&&v!==g)throw new Ja("property names with quotes must have matching quotes");if((d==="constructor"||!c)&&(s=!0),n+="."+d,a="%"+n+"%",lc(Ko,a))i=Ko[a];else if(i!=null){if(!(d in i)){if(!t)throw new Ka("base intrinsic for "+e+" exists, but the property is not available.");return}if(Jo&&u+1>=r.length){var b=Jo(i,d);c=!!b,c&&"get"in b&&!("originalValue"in b.get)?i=b.get:i=i[d]}else c=lc(i,d),i=i[d];c&&!s&&(Ko[a]=i)}}return i},dt,JN=pp,KN=hp,ZN=mp,YN=yp,Xa=sc,Qa=Ga,XN=gp,Bw=Function,_p=function(e){try{return Bw('"use strict"; return ('+e+").constructor;")()}catch{}},Zo=Object.getOwnPropertyDescriptor;if(Zo)try{Zo({},"")}catch{Zo=null}var Sp=function(){throw new Qa},QN=Zo?function(){try{return arguments.callee,Sp}catch{try{return Zo(arguments,"callee").get}catch{return Sp}}}():Sp,ei=ec(),eI=tc(),rr=Object.getPrototypeOf||(eI?function(e){return e.__proto__}:null),ti={},tI=typeof Uint8Array>"u"||!rr?dt:rr(Uint8Array),Yo={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?dt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?dt:ArrayBuffer,"%ArrayIteratorPrototype%":ei&&rr?rr([][Symbol.iterator]()):dt,"%AsyncFromSyncIteratorPrototype%":dt,"%AsyncFunction%":ti,"%AsyncGenerator%":ti,"%AsyncGeneratorFunction%":ti,"%AsyncIteratorPrototype%":ti,"%Atomics%":typeof Atomics>"u"?dt:Atomics,"%BigInt%":typeof BigInt>"u"?dt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?dt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?dt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?dt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":JN,"%eval%":eval,"%EvalError%":KN,"%Float32Array%":typeof Float32Array>"u"?dt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?dt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?dt:FinalizationRegistry,"%Function%":Bw,"%GeneratorFunction%":ti,"%Int8Array%":typeof Int8Array>"u"?dt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?dt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?dt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ei&&rr?rr(rr([][Symbol.iterator]())):dt,"%JSON%":typeof JSON=="object"?JSON:dt,"%Map%":typeof Map>"u"?dt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ei||!rr?dt:rr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?dt:Promise,"%Proxy%":typeof Proxy>"u"?dt:Proxy,"%RangeError%":ZN,"%ReferenceError%":YN,"%Reflect%":typeof Reflect>"u"?dt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?dt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ei||!rr?dt:rr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?dt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ei&&rr?rr(""[Symbol.iterator]()):dt,"%Symbol%":ei?Symbol:dt,"%SyntaxError%":Xa,"%ThrowTypeError%":QN,"%TypedArray%":tI,"%TypeError%":Qa,"%Uint8Array%":typeof Uint8Array>"u"?dt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?dt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?dt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?dt:Uint32Array,"%URIError%":XN,"%WeakMap%":typeof WeakMap>"u"?dt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?dt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?dt:WeakSet};if(rr)try{null.error}catch(e){var rI=rr(rr(e));Yo["%Error.prototype%"]=rI}var nI=function e(t){var r;if(t==="%AsyncFunction%")r=_p("async function () {}");else if(t==="%GeneratorFunction%")r=_p("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=_p("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&rr&&(r=rr(o.prototype))}return Yo[t]=r,r},Dw={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},cs=ls,cc=vp,oI=cs.call(Function.call,Array.prototype.concat),aI=cs.call(Function.apply,Array.prototype.splice),Fw=cs.call(Function.call,String.prototype.replace),fc=cs.call(Function.call,String.prototype.slice),iI=cs.call(Function.call,RegExp.prototype.exec),sI=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,lI=/\\(\\)?/g,uI=function(e){var t=fc(e,0,1),r=fc(e,-1);if(t==="%"&&r!=="%")throw new Xa("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&t!=="%")throw new Xa("invalid intrinsic syntax, expected opening `%`");var n=[];return Fw(e,sI,function(o,a,i,s){n[n.length]=i?Fw(s,lI,"$1"):a||o}),n},cI=function(e,t){var r=e,n;if(cc(Dw,r)&&(n=Dw[r],r="%"+n[0]+"%"),cc(Yo,r)){var o=Yo[r];if(o===ti&&(o=nI(r)),typeof o>"u"&&!t)throw new Qa("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new Xa("intrinsic "+e+" does not exist!")},fI=function(e,t){if(typeof e!="string"||e.length===0)throw new Qa("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new Qa('"allowMissing" argument must be a boolean');if(iI(/^%?[^%]*%?$/,e)===null)throw new Xa("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=uI(e),n=r.length>0?r[0]:"",o=cI("%"+n+"%",t),a=o.name,i=o.value,s=!1,l=o.alias;l&&(n=l[0],aI(r,oI([0,1],l)));for(var u=1,c=!0;u<r.length;u+=1){var d=r[u],v=fc(d,0,1),g=fc(d,-1);if((v==='"'||v==="'"||v==="`"||g==='"'||g==="'"||g==="`")&&v!==g)throw new Xa("property names with quotes must have matching quotes");if((d==="constructor"||!c)&&(s=!0),n+="."+d,a="%"+n+"%",cc(Yo,a))i=Yo[a];else if(i!=null){if(!(d in i)){if(!t)throw new Qa("base intrinsic for "+e+" exists, but the property is not available.");return}if(Zo&&u+1>=r.length){var b=Zo(i,d);c=!!b,c&&"get"in b&&!("originalValue"in b.get)?i=b.get:i=i[d]}else c=cc(i,d),i=i[d];c&&!s&&(Yo[a]=i)}}return i},$p,Mw;function dI(){if(Mw)return $p;Mw=1;var e,t=pp,r=hp,n=mp,o=yp,a=sc,i=Ga,s=gp,l=Function,u=function(Oe){try{return l('"use strict"; return ('+Oe+").constructor;")()}catch{}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch{c=null}var d=function(){throw new i},v=c?function(){try{return arguments.callee,d}catch{try{return c(arguments,"callee").get}catch{return d}}}():d,g=ec(),b=tc(),E=Object.getPrototypeOf||(b?function(Oe){return Oe.__proto__}:null),y={},m=typeof Uint8Array>"u"||!E?e:E(Uint8Array),p={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":g&&E?E([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":r,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":l,"%GeneratorFunction%":y,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&E?E(E([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!g||!E?e:E(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":n,"%ReferenceError%":o,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!g||!E?e:E(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&E?E(""[Symbol.iterator]()):e,"%Symbol%":g?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":v,"%TypedArray%":m,"%TypeError%":i,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":s,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet};if(E)try{null.error}catch(Oe){var _=E(E(Oe));p["%Error.prototype%"]=_}var T=function Oe(be){var Ee;if(be==="%AsyncFunction%")Ee=u("async function () {}");else if(be==="%GeneratorFunction%")Ee=u("function* () {}");else if(be==="%AsyncGeneratorFunction%")Ee=u("async function* () {}");else if(be==="%AsyncGenerator%"){var ue=Oe("%AsyncGeneratorFunction%");ue&&(Ee=ue.prototype)}else if(be==="%AsyncIteratorPrototype%"){var q=Oe("%AsyncGenerator%");q&&E&&(Ee=E(q.prototype))}return p[be]=Ee,Ee},O={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},j=ls,C=vp,Z=j.call(Function.call,Array.prototype.concat),V=j.call(Function.apply,Array.prototype.splice),U=j.call(Function.call,String.prototype.replace),W=j.call(Function.call,String.prototype.slice),ee=j.call(Function.call,RegExp.prototype.exec),fe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ve=/\\(\\)?/g,Ne=function(Oe){var be=W(Oe,0,1),Ee=W(Oe,-1);if(be==="%"&&Ee!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(Ee==="%"&&be!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var ue=[];return U(Oe,fe,function(q,D,F,k){ue[ue.length]=F?U(k,ve,"$1"):D||q}),ue},Te=function(Oe,be){var Ee=Oe,ue;if(C(O,Ee)&&(ue=O[Ee],Ee="%"+ue[0]+"%"),C(p,Ee)){var q=p[Ee];if(q===y&&(q=T(Ee)),typeof q>"u"&&!be)throw new i("intrinsic "+Oe+" exists, but is not available. Please file an issue!");return{alias:ue,name:Ee,value:q}}throw new a("intrinsic "+Oe+" does not exist!")};return $p=function(Oe,be){if(typeof Oe!="string"||Oe.length===0)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof be!="boolean")throw new i('"allowMissing" argument must be a boolean');if(ee(/^%?[^%]*%?$/,Oe)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Ee=Ne(Oe),ue=Ee.length>0?Ee[0]:"",q=Te("%"+ue+"%",be),D=q.name,F=q.value,k=!1,B=q.alias;B&&(ue=B[0],V(Ee,Z([0,1],B)));for(var J=1,de=!0;J<Ee.length;J+=1){var se=Ee[J],Se=W(se,0,1),je=W(se,-1);if((Se==='"'||Se==="'"||Se==="`"||je==='"'||je==="'"||je==="`")&&Se!==je)throw new a("property names with quotes must have matching quotes");if((se==="constructor"||!de)&&(k=!0),ue+="."+se,D="%"+ue+"%",C(p,D))F=p[D];else if(F!=null){if(!(se in F)){if(!be)throw new i("base intrinsic for "+Oe+" exists, but the property is not available.");return}if(c&&J+1>=Ee.length){var Y=c(F,se);de=!!Y,de&&"get"in Y&&!("originalValue"in Y.get)?F=Y.get:F=F[se]}else de=C(F,se),F=F[se];de&&!k&&(p[D]=F)}}return F},$p}var Ep,Vw;function Op(){if(Vw)return Ep;Vw=1;var e=dI(),t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return Ep=t,Ep}var pI=np,dc=pI("%Object.getOwnPropertyDescriptor%",!0);if(dc)try{dc([],"length")}catch{dc=null}var Ap=dc,Uw=Op(),hI=sc,ri=Ga,Lw=Ap,mI=function(e,t,r){if(!e||typeof e!="object"&&typeof e!="function")throw new ri("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new ri("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new ri("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new ri("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new ri("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new ri("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,i=arguments.length>6?arguments[6]:!1,s=!!Lw&&Lw(e,t);if(Uw)Uw(e,t,{configurable:a===null&&s?s.configurable:!a,enumerable:n===null&&s?s.enumerable:!n,value:r,writable:o===null&&s?s.writable:!o});else if(i||!n&&!o&&!a)e[t]=r;else throw new hI("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Pp=Op(),zw=function(){return!!Pp};zw.hasArrayLengthDefineBug=function(){if(!Pp)return null;try{return Pp([],"length",{value:1}).length!==1}catch{return!0}};var yI=zw,gI=fI,qw=mI,vI=yI(),Ww=Ap,Hw=Ga,bI=gI("%Math.floor%"),wI=function(e,t){if(typeof e!="function")throw new Hw("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||bI(t)!==t)throw new Hw("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,o=!0;if("length"in e&&Ww){var a=Ww(e,"length");a&&!a.configurable&&(n=!1),a&&!a.writable&&(o=!1)}return(n||o||!r)&&(vI?qw(e,"length",t,!0,!0):qw(e,"length",t)),e};(function(e){var t=ls,r=Rw,n=wI,o=Ga,a=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(i,a),l=Op(),u=r("%Math.max%");e.exports=function(d){if(typeof d!="function")throw new o("a function is required");var v=s(t,i,arguments);return n(v,1+u(0,d.length-(arguments.length-1)),!0)};var c=function(){return s(t,a,arguments)};l?l(e.exports,"apply",{value:c}):e.exports.apply=c})(jw);var Gw=jw.exports,Jw=Rw,Kw=Gw,_I=Kw(Jw("String.prototype.indexOf")),SI=function(e,t){var r=Jw(e,!!t);return typeof r=="function"&&_I(e,".prototype.")>-1?Kw(r):r},xp,Zw;function $I(){if(Zw)return xp;Zw=1;var e=Xd;return xp=function(){return e()&&!!Symbol.toStringTag},xp}var pc=yN,EI=bN,Yw=Gw,Tp=SI,hc=Ap,OI=Tp("Object.prototype.toString"),Xw=$I()(),Qw=typeof globalThis>"u"?Pe:globalThis,jp=EI(),kp=Tp("String.prototype.slice"),Cp=Object.getPrototypeOf,AI=Tp("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},mc={__proto__:null};Xw&&hc&&Cp?pc(jp,function(e){var t=new Qw[e];if(Symbol.toStringTag in t){var r=Cp(t),n=hc(r,Symbol.toStringTag);if(!n){var o=Cp(r);n=hc(o,Symbol.toStringTag)}mc["$"+e]=Yw(n.get)}}):pc(jp,function(e){var t=new Qw[e],r=t.slice||t.set;r&&(mc["$"+e]=Yw(r))});var PI=function(e){var t=!1;return pc(mc,function(r,n){if(!t)try{"$"+r(e)===n&&(t=kp(n,1))}catch{}}),t},xI=function(e){var t=!1;return pc(mc,function(r,n){if(!t)try{r(e),t=kp(n,1)}catch{}}),t},e1=function(e){if(!e||typeof e!="object")return!1;if(!Xw){var t=kp(OI(e),8,-1);return AI(jp,t)>-1?t:t!=="Object"?!1:xI(e)}return hc?PI(e):null},TI=e1,jI=function(e){return!!TI(e)};(function(e){var t=GC,r=XC,n=e1,o=jI;function a(K){return K.call.bind(K)}var i=typeof BigInt<"u",s=typeof Symbol<"u",l=a(Object.prototype.toString),u=a(Number.prototype.valueOf),c=a(String.prototype.valueOf),d=a(Boolean.prototype.valueOf);if(i)var v=a(BigInt.prototype.valueOf);if(s)var g=a(Symbol.prototype.valueOf);function b(K,$e){if(typeof K!="object")return!1;try{return $e(K),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=o;function E(K){return typeof Promise<"u"&&K instanceof Promise||K!==null&&typeof K=="object"&&typeof K.then=="function"&&typeof K.catch=="function"}e.isPromise=E;function y(K){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(K):o(K)||F(K)}e.isArrayBufferView=y;function m(K){return n(K)==="Uint8Array"}e.isUint8Array=m;function p(K){return n(K)==="Uint8ClampedArray"}e.isUint8ClampedArray=p;function _(K){return n(K)==="Uint16Array"}e.isUint16Array=_;function T(K){return n(K)==="Uint32Array"}e.isUint32Array=T;function O(K){return n(K)==="Int8Array"}e.isInt8Array=O;function j(K){return n(K)==="Int16Array"}e.isInt16Array=j;function C(K){return n(K)==="Int32Array"}e.isInt32Array=C;function Z(K){return n(K)==="Float32Array"}e.isFloat32Array=Z;function V(K){return n(K)==="Float64Array"}e.isFloat64Array=V;function U(K){return n(K)==="BigInt64Array"}e.isBigInt64Array=U;function W(K){return n(K)==="BigUint64Array"}e.isBigUint64Array=W;function ee(K){return l(K)==="[object Map]"}ee.working=typeof Map<"u"&&ee(new Map);function fe(K){return typeof Map>"u"?!1:ee.working?ee(K):K instanceof Map}e.isMap=fe;function ve(K){return l(K)==="[object Set]"}ve.working=typeof Set<"u"&&ve(new Set);function Ne(K){return typeof Set>"u"?!1:ve.working?ve(K):K instanceof Set}e.isSet=Ne;function Te(K){return l(K)==="[object WeakMap]"}Te.working=typeof WeakMap<"u"&&Te(new WeakMap);function Oe(K){return typeof WeakMap>"u"?!1:Te.working?Te(K):K instanceof WeakMap}e.isWeakMap=Oe;function be(K){return l(K)==="[object WeakSet]"}be.working=typeof WeakSet<"u"&&be(new WeakSet);function Ee(K){return be(K)}e.isWeakSet=Ee;function ue(K){return l(K)==="[object ArrayBuffer]"}ue.working=typeof ArrayBuffer<"u"&&ue(new ArrayBuffer);function q(K){return typeof ArrayBuffer>"u"?!1:ue.working?ue(K):K instanceof ArrayBuffer}e.isArrayBuffer=q;function D(K){return l(K)==="[object DataView]"}D.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&D(new DataView(new ArrayBuffer(1),0,1));function F(K){return typeof DataView>"u"?!1:D.working?D(K):K instanceof DataView}e.isDataView=F;var k=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function B(K){return l(K)==="[object SharedArrayBuffer]"}function J(K){return typeof k>"u"?!1:(typeof B.working>"u"&&(B.working=B(new k)),B.working?B(K):K instanceof k)}e.isSharedArrayBuffer=J;function de(K){return l(K)==="[object AsyncFunction]"}e.isAsyncFunction=de;function se(K){return l(K)==="[object Map Iterator]"}e.isMapIterator=se;function Se(K){return l(K)==="[object Set Iterator]"}e.isSetIterator=Se;function je(K){return l(K)==="[object Generator]"}e.isGeneratorObject=je;function Y(K){return l(K)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=Y;function re(K){return b(K,u)}e.isNumberObject=re;function N(K){return b(K,c)}e.isStringObject=N;function M(K){return b(K,d)}e.isBooleanObject=M;function X(K){return i&&b(K,v)}e.isBigIntObject=X;function le(K){return s&&b(K,g)}e.isSymbolObject=le;function ye(K){return re(K)||N(K)||M(K)||X(K)||le(K)}e.isBoxedPrimitive=ye;function ge(K){return typeof Uint8Array<"u"&&(q(K)||J(K))}e.isAnyArrayBuffer=ge,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(K){Object.defineProperty(e,K,{enumerable:!1,value:function(){throw new Error(K+" is not supported in userland")}})})})(yw);var kI=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},Np={exports:{}};typeof Object.create=="function"?Np.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Np.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}};var CI=Np.exports;(function(e){var t=Object.getOwnPropertyDescriptors||function(D){for(var F=Object.keys(D),k={},B=0;B<F.length;B++)k[F[B]]=Object.getOwnPropertyDescriptor(D,F[B]);return k},r=/%[sdj%]/g;e.format=function(D){if(!O(D)){for(var F=[],k=0;k<arguments.length;k++)F.push(i(arguments[k]));return F.join(" ")}for(var k=1,B=arguments,J=B.length,de=String(D).replace(r,function(je){if(je==="%%")return"%";if(k>=J)return je;switch(je){case"%s":return String(B[k++]);case"%d":return Number(B[k++]);case"%j":try{return JSON.stringify(B[k++])}catch{return"[Circular]"}default:return je}}),se=B[k];k<J;se=B[++k])p(se)||!V(se)?de+=" "+se:de+=" "+i(se);return de},e.deprecate=function(D,F){if(typeof Fe.process<"u"&&Fe.process.noDeprecation===!0)return D;if(typeof Fe.process>"u")return function(){return e.deprecate(D,F).apply(this,arguments)};var k=!1;function B(){if(!k){if(Fe.process.throwDeprecation)throw new Error(F);Fe.process.traceDeprecation?console.trace(F):console.error(F),k=!0}return D.apply(this,arguments)}return B};var n={},o=/^$/;if(Fe.process.env.NODE_DEBUG){var a=Fe.process.env.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+a+"$","i")}e.debuglog=function(D){if(D=D.toUpperCase(),!n[D])if(o.test(D)){var F=Fe.process.pid;n[D]=function(){var k=e.format.apply(e,arguments);console.error("%s %d: %s",D,F,k)}}else n[D]=function(){};return n[D]};function i(D,F){var k={seen:[],stylize:l};return arguments.length>=3&&(k.depth=arguments[2]),arguments.length>=4&&(k.colors=arguments[3]),m(F)?k.showHidden=F:F&&e._extend(k,F),C(k.showHidden)&&(k.showHidden=!1),C(k.depth)&&(k.depth=2),C(k.colors)&&(k.colors=!1),C(k.customInspect)&&(k.customInspect=!0),k.colors&&(k.stylize=s),c(k,D,k.depth)}e.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function s(D,F){var k=i.styles[F];return k?"\x1B["+i.colors[k][0]+"m"+D+"\x1B["+i.colors[k][1]+"m":D}function l(D,F){return D}function u(D){var F={};return D.forEach(function(k,B){F[k]=!0}),F}function c(D,F,k){if(D.customInspect&&F&&ee(F.inspect)&&F.inspect!==e.inspect&&!(F.constructor&&F.constructor.prototype===F)){var B=F.inspect(k,D);return O(B)||(B=c(D,B,k)),B}var J=d(D,F);if(J)return J;var de=Object.keys(F),se=u(de);if(D.showHidden&&(de=Object.getOwnPropertyNames(F)),W(F)&&(de.indexOf("message")>=0||de.indexOf("description")>=0))return v(F);if(de.length===0){if(ee(F)){var Se=F.name?": "+F.name:"";return D.stylize("[Function"+Se+"]","special")}if(Z(F))return D.stylize(RegExp.prototype.toString.call(F),"regexp");if(U(F))return D.stylize(Date.prototype.toString.call(F),"date");if(W(F))return v(F)}var je="",Y=!1,re=["{","}"];if(y(F)&&(Y=!0,re=["[","]"]),ee(F)){var N=F.name?": "+F.name:"";je=" [Function"+N+"]"}if(Z(F)&&(je=" "+RegExp.prototype.toString.call(F)),U(F)&&(je=" "+Date.prototype.toUTCString.call(F)),W(F)&&(je=" "+v(F)),de.length===0&&(!Y||F.length==0))return re[0]+je+re[1];if(k<0)return Z(F)?D.stylize(RegExp.prototype.toString.call(F),"regexp"):D.stylize("[Object]","special");D.seen.push(F);var M;return Y?M=g(D,F,k,se,de):M=de.map(function(X){return b(D,F,k,se,X,Y)}),D.seen.pop(),E(M,je,re)}function d(D,F){if(C(F))return D.stylize("undefined","undefined");if(O(F)){var k="'"+JSON.stringify(F).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return D.stylize(k,"string")}if(T(F))return D.stylize(""+F,"number");if(m(F))return D.stylize(""+F,"boolean");if(p(F))return D.stylize("null","null")}function v(D){return"["+Error.prototype.toString.call(D)+"]"}function g(D,F,k,B,J){for(var de=[],se=0,Se=F.length;se<Se;++se)be(F,String(se))?de.push(b(D,F,k,B,String(se),!0)):de.push("");return J.forEach(function(je){je.match(/^\d+$/)||de.push(b(D,F,k,B,je,!0))}),de}function b(D,F,k,B,J,de){var se,Se,je;if(je=Object.getOwnPropertyDescriptor(F,J)||{value:F[J]},je.get?je.set?Se=D.stylize("[Getter/Setter]","special"):Se=D.stylize("[Getter]","special"):je.set&&(Se=D.stylize("[Setter]","special")),be(B,J)||(se="["+J+"]"),Se||(D.seen.indexOf(je.value)<0?(p(k)?Se=c(D,je.value,null):Se=c(D,je.value,k-1),Se.indexOf(`
|
46
|
+
`)>-1&&(de?Se=Se.split(`
|
47
|
+
`).map(function(Y){return" "+Y}).join(`
|
48
|
+
`).slice(2):Se=`
|
49
|
+
`+Se.split(`
|
50
|
+
`).map(function(Y){return" "+Y}).join(`
|
51
|
+
`))):Se=D.stylize("[Circular]","special")),C(se)){if(de&&J.match(/^\d+$/))return Se;se=JSON.stringify(""+J),se.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(se=se.slice(1,-1),se=D.stylize(se,"name")):(se=se.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),se=D.stylize(se,"string"))}return se+": "+Se}function E(D,F,k){var B=D.reduce(function(J,de){return de.indexOf(`
|
52
|
+
`)>=0,J+de.replace(/\u001b\[\d\d?m/g,"").length+1},0);return B>60?k[0]+(F===""?"":F+`
|
53
|
+
`)+" "+D.join(`,
|
54
|
+
`)+" "+k[1]:k[0]+F+" "+D.join(", ")+" "+k[1]}e.types=yw;function y(D){return Array.isArray(D)}e.isArray=y;function m(D){return typeof D=="boolean"}e.isBoolean=m;function p(D){return D===null}e.isNull=p;function _(D){return D==null}e.isNullOrUndefined=_;function T(D){return typeof D=="number"}e.isNumber=T;function O(D){return typeof D=="string"}e.isString=O;function j(D){return typeof D=="symbol"}e.isSymbol=j;function C(D){return D===void 0}e.isUndefined=C;function Z(D){return V(D)&&ve(D)==="[object RegExp]"}e.isRegExp=Z,e.types.isRegExp=Z;function V(D){return typeof D=="object"&&D!==null}e.isObject=V;function U(D){return V(D)&&ve(D)==="[object Date]"}e.isDate=U,e.types.isDate=U;function W(D){return V(D)&&(ve(D)==="[object Error]"||D instanceof Error)}e.isError=W,e.types.isNativeError=W;function ee(D){return typeof D=="function"}e.isFunction=ee;function fe(D){return D===null||typeof D=="boolean"||typeof D=="number"||typeof D=="string"||typeof D=="symbol"||typeof D>"u"}e.isPrimitive=fe,e.isBuffer=kI;function ve(D){return Object.prototype.toString.call(D)}function Ne(D){return D<10?"0"+D.toString(10):D.toString(10)}var Te=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Oe(){var D=new Date,F=[Ne(D.getHours()),Ne(D.getMinutes()),Ne(D.getSeconds())].join(":");return[D.getDate(),Te[D.getMonth()],F].join(" ")}e.log=function(){console.log("%s - %s",Oe(),e.format.apply(e,arguments))},e.inherits=CI,e._extend=function(D,F){if(!F||!V(F))return D;for(var k=Object.keys(F),B=k.length;B--;)D[k[B]]=F[k[B]];return D};function be(D,F){return Object.prototype.hasOwnProperty.call(D,F)}var Ee=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(D){if(typeof D!="function")throw new TypeError('The "original" argument must be of type Function');if(Ee&&D[Ee]){var F=D[Ee];if(typeof F!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(F,Ee,{value:F,enumerable:!1,writable:!1,configurable:!0}),F}function F(){for(var k,B,J=new Promise(function(Se,je){k=Se,B=je}),de=[],se=0;se<arguments.length;se++)de.push(arguments[se]);de.push(function(Se,je){Se?B(Se):k(je)});try{D.apply(this,de)}catch(Se){B(Se)}return J}return Object.setPrototypeOf(F,Object.getPrototypeOf(D)),Ee&&Object.defineProperty(F,Ee,{value:F,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(F,t(D))},e.promisify.custom=Ee;function ue(D,F){if(!D){var k=new Error("Promise was rejected with a falsy value");k.reason=D,D=k}return F(D)}function q(D){if(typeof D!="function")throw new TypeError('The "original" argument must be of type Function');function F(){for(var k=[],B=0;B<arguments.length;B++)k.push(arguments[B]);var J=k.pop();if(typeof J!="function")throw new TypeError("The last argument must be of type Function");var de=this,se=function(){return J.apply(de,arguments)};D.apply(this,k).then(function(Se){Fe.process.nextTick(se.bind(null,null,Se))},function(Se){Fe.process.nextTick(ue.bind(null,Se,se))})}return Object.setPrototypeOf(F,Object.getPrototypeOf(D)),Object.defineProperties(F,t(D)),F}e.callbackify=q})(aC),typeof module=="object"&&typeof module.exports=="object"&&(module.exports=Object.assign(module.exports.default,module.exports));const NI=Object.freeze(Object.defineProperty({__proto__:null,Ono:go,default:mw,ono:mw},Symbol.toStringTag,{value:"Module"})),Xo=hd(NI);var yc={},gc={},Qe={},vc={};function Tn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function t1(e,t){for(var r="",n=0,o=-1,a=0,i,s=0;s<=e.length;++s){if(s<e.length)i=e.charCodeAt(s);else{if(i===47)break;i=47}if(i===47){if(!(o===s-1||a===1))if(o!==s-1&&a===2){if(r.length<2||n!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){l===-1?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),o=s,a=0;continue}}else if(r.length===2||r.length===1){r="",n=0,o=s,a=0;continue}}t&&(r.length>0?r+="/..":r="..",n=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),n=s-o-1;o=s,a=0}else i===46&&a!==-1?++a:a=-1}return r}function II(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+e+n:n}var ni={resolve:function(){for(var e="",t=!1,r,n=arguments.length-1;n>=-1&&!t;n--){var o;n>=0?o=arguments[n]:(r===void 0&&(r=Fe.process.cwd()),o=r),Tn(o),o.length!==0&&(e=o+"/"+e,t=o.charCodeAt(0)===47)}return e=t1(e,!t),t?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(Tn(e),e.length===0)return".";var t=e.charCodeAt(0)===47,r=e.charCodeAt(e.length-1)===47;return e=t1(e,!t),e.length===0&&!t&&(e="."),e.length>0&&r&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return Tn(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,t=0;t<arguments.length;++t){var r=arguments[t];Tn(r),r.length>0&&(e===void 0?e=r:e+="/"+r)}return e===void 0?".":ni.normalize(e)},relative:function(e,t){if(Tn(e),Tn(t),e===t||(e=ni.resolve(e),t=ni.resolve(t),e===t))return"";for(var r=1;r<e.length&&e.charCodeAt(r)===47;++r);for(var n=e.length,o=n-r,a=1;a<t.length&&t.charCodeAt(a)===47;++a);for(var i=t.length,s=i-a,l=o<s?o:s,u=-1,c=0;c<=l;++c){if(c===l){if(s>l){if(t.charCodeAt(a+c)===47)return t.slice(a+c+1);if(c===0)return t.slice(a+c)}else o>l&&(e.charCodeAt(r+c)===47?u=c:c===0&&(u=0));break}var d=e.charCodeAt(r+c),v=t.charCodeAt(a+c);if(d!==v)break;d===47&&(u=c)}var g="";for(c=r+u+1;c<=n;++c)(c===n||e.charCodeAt(c)===47)&&(g.length===0?g+="..":g+="/..");return g.length>0?g+t.slice(a+u):(a+=u,t.charCodeAt(a)===47&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(Tn(e),e.length===0)return".";for(var t=e.charCodeAt(0),r=t===47,n=-1,o=!0,a=e.length-1;a>=1;--a)if(t=e.charCodeAt(a),t===47){if(!o){n=a;break}}else o=!1;return n===-1?r?"/":".":r&&n===1?"//":e.slice(0,n)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Tn(e);var r=0,n=-1,o=!0,a;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var i=t.length-1,s=-1;for(a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(l===47){if(!o){r=a+1;break}}else s===-1&&(o=!1,s=a+1),i>=0&&(l===t.charCodeAt(i)?--i===-1&&(n=a):(i=-1,n=s))}return r===n?n=s:n===-1&&(n=e.length),e.slice(r,n)}else{for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===47){if(!o){r=a+1;break}}else n===-1&&(o=!1,n=a+1);return n===-1?"":e.slice(r,n)}},extname:function(e){Tn(e);for(var t=-1,r=0,n=-1,o=!0,a=0,i=e.length-1;i>=0;--i){var s=e.charCodeAt(i);if(s===47){if(!o){r=i+1;break}continue}n===-1&&(o=!1,n=i+1),s===46?t===-1?t=i:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||n===-1||a===0||a===1&&t===n-1&&t===r+1?"":e.slice(t,n)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return II("/",e)},parse:function(e){Tn(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var r=e.charCodeAt(0),n=r===47,o;n?(t.root="/",o=1):o=0;for(var a=-1,i=0,s=-1,l=!0,u=e.length-1,c=0;u>=o;--u){if(r=e.charCodeAt(u),r===47){if(!l){i=u+1;break}continue}s===-1&&(l=!1,s=u+1),r===46?a===-1?a=u:c!==1&&(c=1):a!==-1&&(c=-1)}return a===-1||s===-1||c===0||c===1&&a===s-1&&a===i+1?s!==-1&&(i===0&&n?t.base=t.name=e.slice(1,s):t.base=t.name=e.slice(i,s)):(i===0&&n?(t.name=e.slice(1,a),t.base=e.slice(1,s)):(t.name=e.slice(i,a),t.base=e.slice(i,s)),t.ext=e.slice(a,s)),i>0?t.dir=e.slice(0,i-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};ni.posix=ni;var Ip=ni,RI=Pe&&Pe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vc,"__esModule",{value:!0});const r1=RI(Ip);function BI(e){var t,r,n,o;return e.startsWith("\\\\?\\")?e:e.split((r=(t=r1.default)==null?void 0:t.win32)==null?void 0:r.sep).join(((o=(n=r1.default)==null?void 0:n.posix)==null?void 0:o.sep)??"/")}vc.default=BI;var bc={};Object.defineProperty(bc,"__esModule",{value:!0}),bc.isWindows=void 0;const DI=/^win/.test(globalThis.process?globalThis.process.platform:""),FI=()=>DI;bc.isWindows=FI;var MI=Pe&&Pe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),VI=Pe&&Pe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),UI=Pe&&Pe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&MI(t,e,r);return VI(t,e),t},LI=Pe&&Pe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.relative=Qe.safePointerToPath=Qe.toFileSystemPath=Qe.fromFileSystemPath=Qe.isFileSystemPath=Qe.isHttp=Qe.stripHash=Qe.getHash=Qe.stripQuery=Qe.getExtension=Qe.getProtocol=Qe.cwd=Qe.resolve=Qe.parse=void 0;const wc=LI(vc),Rp=UI(Ip),zI=/\//g,qI=/^(\w{2,}):\/\//i,WI=/~1/g,HI=/~0/g,GI=Ip,_c=bc,JI=[[/\?/g,"%3F"],[/#/g,"%23"]],Bp=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],KI=e=>new URL(e);Qe.parse=KI;function n1(e,t){var r;const n=new URL((0,wc.default)(e),"resolve://"),o=new URL((0,wc.default)(t),n),a=((r=t.match(/(\s*)$/))==null?void 0:r[1])||"";if(o.protocol==="resolve:"){const{pathname:i,search:s,hash:l}=o;return i+s+l+a}return o.toString()+a}Qe.resolve=n1;function o1(){if(typeof window<"u")return location.href;const e=Fe.process.cwd(),t=e.slice(-1);return t==="/"||t==="\\"?e:e+"/"}Qe.cwd=o1;function Dp(e){const t=qI.exec(e||"");if(t)return t[1].toLowerCase()}Qe.getProtocol=Dp;function ZI(e){const t=e.lastIndexOf(".");return t>=0?a1(e.substr(t).toLowerCase()):""}Qe.getExtension=ZI;function a1(e){const t=e.indexOf("?");return t>=0&&(e=e.substr(0,t)),e}Qe.stripQuery=a1;function i1(e){if(!e)return"#";const t=e.indexOf("#");return t>=0?e.substring(t):"#"}Qe.getHash=i1;function Fp(e){if(!e)return"";const t=e.indexOf("#");return t>=0&&(e=e.substring(0,t)),e}Qe.stripHash=Fp;function YI(e){const t=Dp(e);return t==="http"||t==="https"?!0:t===void 0?typeof window<"u":!1}Qe.isHttp=YI;function Mp(e){if(typeof window<"u"||Fe.process.browser)return!1;const t=Dp(e);return t===void 0||t==="file"}Qe.isFileSystemPath=Mp;function XI(e){var t;if((0,_c.isWindows)()){const r=o1(),n=e.toUpperCase(),o=(0,wc.default)(r).toUpperCase(),a=n.includes(o),i=n.includes(o),s=((t=Rp.win32)==null?void 0:t.isAbsolute(e))||e.startsWith("http://")||e.startsWith("https://")||e.startsWith("file://");!(a||i||s)&&!r.startsWith("http")&&(e=(0,GI.join)(r,e)),e=(0,wc.default)(e)}e=encodeURI(e);for(const r of JI)e=e.replace(r[0],r[1]);return e}Qe.fromFileSystemPath=XI;function QI(e,t){e=decodeURI(e);for(let n=0;n<Bp.length;n+=2)e=e.replace(Bp[n],Bp[n+1]);let r=e.substr(0,7).toLowerCase()==="file://";return r&&(e=e[7]==="/"?e.substr(8):e.substr(7),(0,_c.isWindows)()&&e[1]==="/"&&(e=e[0]+":"+e.substr(1)),t?e="file:///"+e:(r=!1,e=(0,_c.isWindows)()?e:"/"+e)),(0,_c.isWindows)()&&!r&&(e=e.replace(zI,"\\"),e.substr(1,2)===":\\"&&(e=e[0].toUpperCase()+e.substr(1))),e}Qe.toFileSystemPath=QI;function eR(e){return e.length<=1||e[0]!=="#"||e[1]!=="/"?[]:e.slice(2).split("/").map(t=>decodeURIComponent(t).replace(WI,"/").replace(HI,"~"))}Qe.safePointerToPath=eR;function tR(e,t){if(!Mp(e)||!Mp(t))return n1(e,t);const r=Rp.default.dirname(Fp(e)),n=Fp(t);return Rp.default.relative(r,n)+i1(t)}Qe.relative=tR;var yt={};Object.defineProperty(yt,"__esModule",{value:!0}),yt.normalizeError=yt.isHandledError=yt.InvalidPointerError=yt.TimeoutError=yt.MissingPointerError=yt.UnmatchedResolverError=yt.ResolverError=yt.UnmatchedParserError=yt.ParserError=yt.JSONParserErrorGroup=yt.JSONParserError=void 0;const s1=Xo,Vp=Qe;class Qn extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.name="JSONParserError",this.message=t,this.source=r,this.path=null,s1.Ono.extend(this)}get footprint(){return`${this.path}+${this.source}+${this.code}+${this.message}`}}yt.JSONParserError=Qn;class Sc extends Error{constructor(t){super(),this.files=t,this.name="JSONParserErrorGroup",this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${(0,Vp.toFileSystemPath)(t.$refs._root$Ref.path)}'`,s1.Ono.extend(this)}static getParserErrors(t){const r=[];for(const n of Object.values(t.$refs._$refs))n.errors&&r.push(...n.errors);return r}get errors(){return Sc.getParserErrors(this.files)}}yt.JSONParserErrorGroup=Sc;class rR extends Qn{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER",this.name="ParserError"}}yt.ParserError=rR;class nR extends Qn{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER",this.name="UnmatchedParserError"}}yt.UnmatchedParserError=nR;class oR extends Qn{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER",this.name="ResolverError","code"in t&&(this.ioErrorCode=String(t.code))}}yt.ResolverError=oR;class aR extends Qn{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER",this.name="UnmatchedResolverError"}}yt.UnmatchedResolverError=aR;class iR extends Qn{constructor(t,r){super(`Token "${t}" does not exist.`,(0,Vp.stripHash)(r)),this.code="EUNMATCHEDRESOLVER",this.name="MissingPointerError"}}yt.MissingPointerError=iR;class sR extends Qn{constructor(t){super(`Dereferencing timeout reached: ${t}ms`),this.code="ETIMEOUT",this.name="TimeoutError"}}yt.TimeoutError=sR;class lR extends Qn{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,(0,Vp.stripHash)(r)),this.code="EUNMATCHEDRESOLVER",this.name="InvalidPointerError"}}yt.InvalidPointerError=lR;function uR(e){return e instanceof Qn||e instanceof Sc}yt.isHandledError=uR;function cR(e){return e.path===null&&(e.path=[]),e}yt.normalizeError=cR;var l1;function $c(){if(l1)return gc;l1=1;var e=Pe&&Pe.__createBinding||(Object.create?function(m,p,_,T){T===void 0&&(T=_);var O=Object.getOwnPropertyDescriptor(p,_);(!O||("get"in O?!p.__esModule:O.writable||O.configurable))&&(O={enumerable:!0,get:function(){return p[_]}}),Object.defineProperty(m,T,O)}:function(m,p,_,T){T===void 0&&(T=_),m[T]=p[_]}),t=Pe&&Pe.__setModuleDefault||(Object.create?function(m,p){Object.defineProperty(m,"default",{enumerable:!0,value:p})}:function(m,p){m.default=p}),r=Pe&&Pe.__importStar||function(m){if(m&&m.__esModule)return m;var p={};if(m!=null)for(var _ in m)_!=="default"&&Object.prototype.hasOwnProperty.call(m,_)&&e(p,m,_);return t(p,m),p},n=Pe&&Pe.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(gc,"__esModule",{value:!0});const o=n(fs()),a=r(Qe),i=yt,s=/\//g,l=/~/g,u=/~1/g,c=/~0/g,d=m=>{try{return decodeURIComponent(m)}catch{return m}};class v{constructor(p,_,T){this.$ref=p,this.path=_,this.originalPath=T||_,this.value=void 0,this.circular=!1,this.indirections=0}resolve(p,_,T){const O=v.parse(this.path,this.originalPath);this.value=E(p);for(let j=0;j<O.length;j++){if(g(this,_,T)&&(this.path=v.join(this.path,O.slice(j))),typeof this.value=="object"&&this.value!==null&&!y(T)&&"$ref"in this.value)return this;const C=O[j];if(this.value[C]===void 0||this.value[C]===null&&j===O.length-1){let Z=!1;for(let V=O.length-1;V>j;V--){const U=O.slice(j,V+1).join("/");if(this.value[U]!==void 0){this.value=this.value[U],j=V,Z=!0;break}}if(Z)continue;throw this.value=null,new i.MissingPointerError(C,decodeURI(this.originalPath))}else this.value=this.value[C]}return(!this.value||this.value.$ref&&a.resolve(this.path,this.value.$ref)!==T)&&g(this,_,T),this}set(p,_,T){const O=v.parse(this.path);let j;if(O.length===0)return this.value=_,_;this.value=E(p);for(let C=0;C<O.length-1;C++)g(this,T),j=O[C],this.value&&this.value[j]!==void 0?this.value=this.value[j]:this.value=b(this,j,{});return g(this,T),j=O[O.length-1],b(this,j,_),p}static parse(p,_){const T=a.getHash(p).substring(1);if(!T)return[];const O=T.split("/");for(let j=0;j<O.length;j++)O[j]=d(O[j].replace(u,"/").replace(c,"~"));if(O[0]!=="")throw new i.InvalidPointerError(O,_===void 0?p:_);return O.slice(1)}static join(p,_){p.indexOf("#")===-1&&(p+="#"),_=Array.isArray(_)?_:[_];for(let T=0;T<_.length;T++){const O=_[T];p+="/"+encodeURIComponent(O.replace(l,"~0").replace(s,"~1"))}return p}}function g(m,p,_){if(o.default.isAllowed$Ref(m.value,p)){const T=a.resolve(m.path,m.value.$ref);if(T===m.path&&!y(_))m.circular=!0;else{const O=m.$ref.$refs._resolve(T,m.path,p);return O===null?!1:(m.indirections+=O.indirections+1,o.default.isExtended$Ref(m.value)?(m.value=o.default.dereference(m.value,O.value),!1):(m.$ref=O.$ref,m.path=O.path,m.value=O.value,!0))}}}gc.default=v;function b(m,p,_){if(m.value&&typeof m.value=="object")p==="-"&&Array.isArray(m.value)?m.value.push(_):m.value[p]=_;else throw new i.JSONParserError(`Error assigning $ref pointer "${m.path}".
|
55
|
+
Cannot set "${p}" of a non-object.`);return _}function E(m){if((0,i.isHandledError)(m))throw m;return m}function y(m){return typeof m=="string"&&v.parse(m).length==0}return gc}var u1;function fs(){if(u1)return yc;u1=1;var e=Pe&&Pe.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(yc,"__esModule",{value:!0});const t=e($c()),r=yt,n=Qe;class o{constructor(i){this.errors=[],this.$refs=i}addError(i){this.errors===void 0&&(this.errors=[]);const s=this.errors.map(({footprint:l})=>l);"errors"in i&&Array.isArray(i.errors)?this.errors.push(...i.errors.map(r.normalizeError).filter(({footprint:l})=>!s.includes(l))):(!("footprint"in i)||!s.includes(i.footprint))&&this.errors.push((0,r.normalizeError)(i))}exists(i,s){try{return this.resolve(i,s),!0}catch{return!1}}get(i,s){var l;return(l=this.resolve(i,s))==null?void 0:l.value}resolve(i,s,l,u){const c=new t.default(this,i,l);try{return c.resolve(this.value,s,u)}catch(d){if(!s||!s.continueOnError||!(0,r.isHandledError)(d))throw d;return d.path===null&&(d.path=(0,n.safePointerToPath)((0,n.getHash)(u))),d instanceof r.InvalidPointerError&&(d.source=decodeURI((0,n.stripHash)(u))),this.addError(d),null}}set(i,s){const l=new t.default(this,i);this.value=l.set(this.value,s)}static is$Ref(i){return!!i&&typeof i=="object"&&i!==null&&"$ref"in i&&typeof i.$ref=="string"&&i.$ref.length>0}static isExternal$Ref(i){return o.is$Ref(i)&&i.$ref[0]!=="#"}static isAllowed$Ref(i,s){var l;if(this.is$Ref(i)&&(i.$ref.substring(0,2)==="#/"||i.$ref==="#"||i.$ref[0]!=="#"&&(!s||(l=s.resolve)!=null&&l.external)))return!0}static isExtended$Ref(i){return o.is$Ref(i)&&Object.keys(i).length>1}static dereference(i,s){if(s&&typeof s=="object"&&o.isExtended$Ref(i)){const l={};for(const u of Object.keys(i))u!=="$ref"&&(l[u]=i[u]);for(const u of Object.keys(s))u in l||(l[u]=s[u]);return l}else return s}}return yc.default=o,yc}var fR=Pe&&Pe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),dR=Pe&&Pe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),pR=Pe&&Pe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&fR(t,e,r);return dR(t,e),t},c1=Pe&&Pe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zd,"__esModule",{value:!0});const f1=Xo,hR=c1(fs()),vo=pR(Qe),d1=c1(vc);class mR{paths(...t){return p1(this._$refs,t.flat()).map(r=>(0,d1.default)(r.decoded))}values(...t){const r=this._$refs;return p1(r,t.flat()).reduce((n,o)=>(n[(0,d1.default)(o.decoded)]=r[o.encoded].value,n),{})}exists(t,r){try{return this._resolve(t,"",r),!0}catch{return!1}}get(t,r){return this._resolve(t,"",r).value}set(t,r){const n=vo.resolve(this._root$Ref.path,t),o=vo.stripHash(n),a=this._$refs[o];if(!a)throw(0,f1.ono)(`Error resolving $ref pointer "${t}".
|
56
|
+
"${o}" not found.`);a.set(n,r)}_get$Ref(t){t=vo.resolve(this._root$Ref.path,t);const r=vo.stripHash(t);return this._$refs[r]}_add(t){const r=vo.stripHash(t),n=new hR.default(this);return n.path=r,this._$refs[r]=n,this._root$Ref=this._root$Ref||n,n}_resolve(t,r,n){const o=vo.resolve(this._root$Ref.path,t),a=vo.stripHash(o),i=this._$refs[a];if(!i)throw(0,f1.ono)(`Error resolving $ref pointer "${t}".
|
57
|
+
"${a}" not found.`);return i.resolve(o,n,t,r)}constructor(){this._$refs={},this.toJSON=this.values,this.circular=!1,this._$refs={},this._root$Ref=null}}Zd.default=mR;function p1(e,t){let r=Object.keys(e);return t=Array.isArray(t[0])?t[0]:Array.prototype.slice.call(t),t.length>0&&t[0]&&(r=r.filter(n=>t.includes(e[n].pathType))),r.map(n=>({encoded:n,decoded:e[n].pathType==="file"?vo.toFileSystemPath(n,!0):n}))}var Ec={},jn={};Object.defineProperty(jn,"__esModule",{value:!0}),jn.run=jn.sort=jn.filter=jn.all=void 0;function yR(e){return Object.keys(e||{}).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))}jn.all=yR;function gR(e,t,r){return e.filter(n=>!!h1(n,t,r))}jn.filter=gR;function vR(e){for(const t of e)t.order=t.order||Number.MAX_SAFE_INTEGER;return e.sort((t,r)=>t.order-r.order)}jn.sort=vR;async function bR(e,t,r,n){let o,a,i=0;return new Promise((s,l)=>{u();function u(){if(o=e[i++],!o)return l(a);try{const g=h1(o,t,r,c,n);if(g&&typeof g.then=="function")g.then(d,v);else if(g!==void 0)d(g);else if(i===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(g){v(g)}}function c(g,b){g?v(g):d(b)}function d(g){s({plugin:o,result:g})}function v(g){a={plugin:o,error:g},u()}})}jn.run=bR;function h1(e,t,r,n,o){const a=e[t];if(typeof a=="function")return a.apply(e,[r,n,o]);if(!n){if(a instanceof RegExp)return a.test(r.url);if(typeof a=="string")return a===r.extension;if(Array.isArray(a))return a.indexOf(r.extension)!==-1}return a}var wR=Pe&&Pe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),_R=Pe&&Pe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),m1=Pe&&Pe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&wR(t,e,r);return _R(t,e),t};Object.defineProperty(Ec,"__esModule",{value:!0});const Up=Xo,SR=m1(Qe),bo=m1(jn),Qo=yt;async function $R(e,t,r){const n=e.indexOf("#");let o="";n>=0&&(o=e.substring(n),e=e.substring(0,n));const a=t._add(e),i={url:e,hash:o,extension:SR.getExtension(e)};try{const s=await ER(i,r,t);a.pathType=s.plugin.name,i.data=s.result;const l=await OR(i,r,t);return a.value=l.result,l.result}catch(s){throw(0,Qo.isHandledError)(s)&&(a.value=s),s}}async function ER(e,t,r){let n=bo.all(t.resolve);n=bo.filter(n,"canRead",e),bo.sort(n);try{return await bo.run(n,"read",e,r)}catch(o){throw!o&&t.continueOnError?new Qo.UnmatchedResolverError(e.url):!o||!("error"in o)?Up.ono.syntax(`Unable to resolve $ref pointer "${e.url}"`):o.error instanceof Qo.ResolverError?o.error:new Qo.ResolverError(o,e.url)}}async function OR(e,t,r){const n=bo.all(t.parse),o=bo.filter(n,"canParse",e),a=o.length>0?o:n;bo.sort(a);try{const i=await bo.run(a,"parse",e,r);if(!i.plugin.allowEmpty&&AR(i.result))throw Up.ono.syntax(`Error parsing "${e.url}" as ${i.plugin.name}.
|
58
|
+
Parsed value is empty`);return i}catch(i){throw!i&&t.continueOnError?new Qo.UnmatchedParserError(e.url):i&&i.message&&i.message.startsWith("Error parsing")?i:!i||!("error"in i)?Up.ono.syntax(`Unable to parse ${e.url}`):i.error instanceof Qo.ParserError?i.error:new Qo.ParserError(i.error.message,e.url)}}function AR(e){return e===void 0||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0||Fe.Buffer.isBuffer(e)&&e.length===0}Ec.default=$R;var ds={},y1={},Lp={};Object.defineProperty(Lp,"__esModule",{value:!0});const g1=yt;Lp.default={order:100,allowEmpty:!0,canParse:".json",allowBOM:!0,async parse(e){let t=e.data;if(Fe.Buffer.isBuffer(t)&&(t=t.toString()),typeof t=="string"){if(t.trim().length===0)return;try{return JSON.parse(t)}catch(r){if(this.allowBOM)try{const n=t.indexOf("{");return t=t.slice(n),JSON.parse(t)}catch(n){throw new g1.ParserError(n.message,e.url)}throw new g1.ParserError(r.message,e.url)}}else return t}};var zp={},pr={},qp={},dn={};function v1(e){return typeof e>"u"||e===null}function PR(e){return typeof e=="object"&&e!==null}function xR(e){return Array.isArray(e)?e:v1(e)?[]:[e]}function TR(e,t){var r,n,o,a;if(t)for(a=Object.keys(t),r=0,n=a.length;r<n;r+=1)o=a[r],e[o]=t[o];return e}function jR(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function kR(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}dn.isNothing=v1,dn.isObject=PR,dn.toArray=xR,dn.repeat=jR,dn.isNegativeZero=kR,dn.extend=TR;function b1(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
|
59
|
+
|
60
|
+
`+e.mark.snippet),n+" "+r):n}function ps(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=b1(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ps.prototype=Object.create(Error.prototype),ps.prototype.constructor=ps,ps.prototype.toString=function(e){return this.name+": "+b1(this,e)};var hs=ps,ms=dn;function Wp(e,t,r,n,o){var a="",i="",s=Math.floor(o/2)-1;return n-t>s&&(a=" ... ",t=n-s+a.length),r-n>s&&(i=" ...",r=n+s-i.length),{str:a+e.slice(t,r).replace(/\t/g,"→")+i,pos:n-t+a.length}}function Hp(e,t){return ms.repeat(" ",t-e.length)+e}function CR(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],o=[],a,i=-1;a=r.exec(e.buffer);)o.push(a.index),n.push(a.index+a[0].length),e.position<=a.index&&i<0&&(i=n.length-2);i<0&&(i=n.length-1);var s="",l,u,c=Math.min(e.line+t.linesAfter,o.length).toString().length,d=t.maxLength-(t.indent+c+3);for(l=1;l<=t.linesBefore&&!(i-l<0);l++)u=Wp(e.buffer,n[i-l],o[i-l],e.position-(n[i]-n[i-l]),d),s=ms.repeat(" ",t.indent)+Hp((e.line-l+1).toString(),c)+" | "+u.str+`
|
61
|
+
`+s;for(u=Wp(e.buffer,n[i],o[i],e.position,d),s+=ms.repeat(" ",t.indent)+Hp((e.line+1).toString(),c)+" | "+u.str+`
|
62
|
+
`,s+=ms.repeat("-",t.indent+c+3+u.pos)+`^
|
63
|
+
`,l=1;l<=t.linesAfter&&!(i+l>=o.length);l++)u=Wp(e.buffer,n[i+l],o[i+l],e.position-(n[i]-n[i+l]),d),s+=ms.repeat(" ",t.indent)+Hp((e.line+l+1).toString(),c)+" | "+u.str+`
|
64
|
+
`;return s.replace(/\n$/,"")}var NR=CR,w1=hs,IR=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],RR=["scalar","sequence","mapping"];function BR(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function DR(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(IR.indexOf(r)===-1)throw new w1('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=BR(t.styleAliases||null),RR.indexOf(this.kind)===-1)throw new w1('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Ar=DR,ys=hs,Gp=Ar;function _1(e,t){var r=[];return e[t].forEach(function(n){var o=r.length;r.forEach(function(a,i){a.tag===n.tag&&a.kind===n.kind&&a.multi===n.multi&&(o=i)}),r[o]=n}),r}function FR(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(o){o.multi?(e.multi[o.kind].push(o),e.multi.fallback.push(o)):e[o.kind][o.tag]=e.fallback[o.tag]=o}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function Jp(e){return this.extend(e)}Jp.prototype.extend=function(e){var t=[],r=[];if(e instanceof Gp)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new ys("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(o){if(!(o instanceof Gp))throw new ys("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new ys("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new ys("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(o){if(!(o instanceof Gp))throw new ys("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Jp.prototype);return n.implicit=(this.implicit||[]).concat(t),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=_1(n,"implicit"),n.compiledExplicit=_1(n,"explicit"),n.compiledTypeMap=FR(n.compiledImplicit,n.compiledExplicit),n};var S1=Jp,MR=Ar,$1=new MR("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),VR=Ar,E1=new VR("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),UR=Ar,O1=new UR("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),LR=S1,A1=new LR({explicit:[$1,E1,O1]}),zR=Ar;function qR(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function WR(){return null}function HR(e){return e===null}var P1=new zR("tag:yaml.org,2002:null",{kind:"scalar",resolve:qR,construct:WR,predicate:HR,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),GR=Ar;function JR(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function KR(e){return e==="true"||e==="True"||e==="TRUE"}function ZR(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var x1=new GR("tag:yaml.org,2002:bool",{kind:"scalar",resolve:JR,construct:KR,predicate:ZR,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"}),YR=dn,XR=Ar;function QR(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function e2(e){return 48<=e&&e<=55}function t2(e){return 48<=e&&e<=57}function r2(e){if(e===null)return!1;var t=e.length,r=0,n=!1,o;if(!t)return!1;if(o=e[r],(o==="-"||o==="+")&&(o=e[++r]),o==="0"){if(r+1===t)return!0;if(o=e[++r],o==="b"){for(r++;r<t;r++)if(o=e[r],o!=="_"){if(o!=="0"&&o!=="1")return!1;n=!0}return n&&o!=="_"}if(o==="x"){for(r++;r<t;r++)if(o=e[r],o!=="_"){if(!QR(e.charCodeAt(r)))return!1;n=!0}return n&&o!=="_"}if(o==="o"){for(r++;r<t;r++)if(o=e[r],o!=="_"){if(!e2(e.charCodeAt(r)))return!1;n=!0}return n&&o!=="_"}}if(o==="_")return!1;for(;r<t;r++)if(o=e[r],o!=="_"){if(!t2(e.charCodeAt(r)))return!1;n=!0}return!(!n||o==="_")}function n2(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function o2(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!YR.isNegativeZero(e)}var T1=new XR("tag:yaml.org,2002:int",{kind:"scalar",resolve:r2,construct:n2,predicate:o2,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),j1=dn,a2=Ar,i2=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function s2(e){return!(e===null||!i2.test(e)||e[e.length-1]==="_")}function l2(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var u2=/^[-+]?[0-9]+e/;function c2(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(j1.isNegativeZero(e))return"-0.0";return r=e.toString(10),u2.test(r)?r.replace("e",".e"):r}function f2(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||j1.isNegativeZero(e))}var k1=new a2("tag:yaml.org,2002:float",{kind:"scalar",resolve:s2,construct:l2,predicate:f2,represent:c2,defaultStyle:"lowercase"}),C1=A1.extend({implicit:[P1,x1,T1,k1]}),N1=C1,d2=Ar,I1=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),R1=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function p2(e){return e===null?!1:I1.exec(e)!==null||R1.exec(e)!==null}function h2(e){var t,r,n,o,a,i,s,l=0,u=null,c,d,v;if(t=I1.exec(e),t===null&&(t=R1.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(r,n,o));if(a=+t[4],i=+t[5],s=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(c=+t[10],d=+(t[11]||0),u=(c*60+d)*6e4,t[9]==="-"&&(u=-u)),v=new Date(Date.UTC(r,n,o,a,i,s,l)),u&&v.setTime(v.getTime()-u),v}function m2(e){return e.toISOString()}var B1=new d2("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:p2,construct:h2,instanceOf:Date,represent:m2}),y2=Ar;function g2(e){return e==="<<"||e===null}var D1=new y2("tag:yaml.org,2002:merge",{kind:"scalar",resolve:g2}),v2=Ar,Kp=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
65
|
+
\r`;function b2(e){if(e===null)return!1;var t,r,n=0,o=e.length,a=Kp;for(r=0;r<o;r++)if(t=a.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function w2(e){var t,r,n=e.replace(/[\r\n=]/g,""),o=n.length,a=Kp,i=0,s=[];for(t=0;t<o;t++)t%4===0&&t&&(s.push(i>>16&255),s.push(i>>8&255),s.push(i&255)),i=i<<6|a.indexOf(n.charAt(t));return r=o%4*6,r===0?(s.push(i>>16&255),s.push(i>>8&255),s.push(i&255)):r===18?(s.push(i>>10&255),s.push(i>>2&255)):r===12&&s.push(i>>4&255),new Uint8Array(s)}function _2(e){var t="",r=0,n,o,a=e.length,i=Kp;for(n=0;n<a;n++)n%3===0&&n&&(t+=i[r>>18&63],t+=i[r>>12&63],t+=i[r>>6&63],t+=i[r&63]),r=(r<<8)+e[n];return o=a%3,o===0?(t+=i[r>>18&63],t+=i[r>>12&63],t+=i[r>>6&63],t+=i[r&63]):o===2?(t+=i[r>>10&63],t+=i[r>>4&63],t+=i[r<<2&63],t+=i[64]):o===1&&(t+=i[r>>2&63],t+=i[r<<4&63],t+=i[64],t+=i[64]),t}function S2(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var F1=new v2("tag:yaml.org,2002:binary",{kind:"scalar",resolve:b2,construct:w2,predicate:S2,represent:_2}),$2=Ar,E2=Object.prototype.hasOwnProperty,O2=Object.prototype.toString;function A2(e){if(e===null)return!0;var t=[],r,n,o,a,i,s=e;for(r=0,n=s.length;r<n;r+=1){if(o=s[r],i=!1,O2.call(o)!=="[object Object]")return!1;for(a in o)if(E2.call(o,a))if(!i)i=!0;else return!1;if(!i)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}function P2(e){return e!==null?e:[]}var M1=new $2("tag:yaml.org,2002:omap",{kind:"sequence",resolve:A2,construct:P2}),x2=Ar,T2=Object.prototype.toString;function j2(e){if(e===null)return!0;var t,r,n,o,a,i=e;for(a=new Array(i.length),t=0,r=i.length;t<r;t+=1){if(n=i[t],T2.call(n)!=="[object Object]"||(o=Object.keys(n),o.length!==1))return!1;a[t]=[o[0],n[o[0]]]}return!0}function k2(e){if(e===null)return[];var t,r,n,o,a,i=e;for(a=new Array(i.length),t=0,r=i.length;t<r;t+=1)n=i[t],o=Object.keys(n),a[t]=[o[0],n[o[0]]];return a}var V1=new x2("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:j2,construct:k2}),C2=Ar,N2=Object.prototype.hasOwnProperty;function I2(e){if(e===null)return!0;var t,r=e;for(t in r)if(N2.call(r,t)&&r[t]!==null)return!1;return!0}function R2(e){return e!==null?e:{}}var U1=new C2("tag:yaml.org,2002:set",{kind:"mapping",resolve:I2,construct:R2}),Zp=N1.extend({implicit:[B1,D1],explicit:[F1,M1,V1,U1]}),ea=dn,L1=hs,B2=NR,D2=Zp,wo=Object.prototype.hasOwnProperty,Oc=1,z1=2,q1=3,Ac=4,Yp=1,F2=2,W1=3,M2=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,V2=/[\x85\u2028\u2029]/,U2=/[,\[\]\{\}]/,H1=/^(?:!|!!|![a-z\-]+!)$/i,G1=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function J1(e){return Object.prototype.toString.call(e)}function kn(e){return e===10||e===13}function ta(e){return e===9||e===32}function kr(e){return e===9||e===32||e===10||e===13}function oi(e){return e===44||e===91||e===93||e===123||e===125}function L2(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function z2(e){return e===120?2:e===117?4:e===85?8:0}function q2(e){return 48<=e&&e<=57?e-48:-1}function K1(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
66
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function W2(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}for(var Z1=new Array(256),Y1=new Array(256),ai=0;ai<256;ai++)Z1[ai]=K1(ai)?1:0,Y1[ai]=K1(ai);function H2(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||D2,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function X1(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=B2(r),new L1(t,r)}function Me(e,t){throw X1(e,t)}function Pc(e,t){e.onWarning&&e.onWarning.call(null,X1(e,t))}var Q1={YAML:function(e,t,r){var n,o,a;e.version!==null&&Me(e,"duplication of %YAML directive"),r.length!==1&&Me(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),n===null&&Me(e,"ill-formed argument of the YAML directive"),o=parseInt(n[1],10),a=parseInt(n[2],10),o!==1&&Me(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&Pc(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,o;r.length!==2&&Me(e,"TAG directive accepts exactly two arguments"),n=r[0],o=r[1],H1.test(n)||Me(e,"ill-formed tag handle (first argument) of the TAG directive"),wo.call(e.tagMap,n)&&Me(e,'there is a previously declared suffix for "'+n+'" tag handle'),G1.test(o)||Me(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{Me(e,"tag prefix is malformed: "+o)}e.tagMap[n]=o}};function _o(e,t,r,n){var o,a,i,s;if(t<r){if(s=e.input.slice(t,r),n)for(o=0,a=s.length;o<a;o+=1)i=s.charCodeAt(o),i===9||32<=i&&i<=1114111||Me(e,"expected valid JSON character");else M2.test(s)&&Me(e,"the stream contains non-printable characters");e.result+=s}}function e_(e,t,r,n){var o,a,i,s;for(ea.isObject(r)||Me(e,"cannot merge mappings; the provided source object is unacceptable"),o=Object.keys(r),i=0,s=o.length;i<s;i+=1)a=o[i],wo.call(t,a)||(t[a]=r[a],n[a]=!0)}function ii(e,t,r,n,o,a,i,s,l){var u,c;if(Array.isArray(o))for(o=Array.prototype.slice.call(o),u=0,c=o.length;u<c;u+=1)Array.isArray(o[u])&&Me(e,"nested arrays are not supported inside keys"),typeof o=="object"&&J1(o[u])==="[object Object]"&&(o[u]="[object Object]");if(typeof o=="object"&&J1(o)==="[object Object]"&&(o="[object Object]"),o=String(o),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(u=0,c=a.length;u<c;u+=1)e_(e,t,a[u],r);else e_(e,t,a,r);else!e.json&&!wo.call(r,o)&&wo.call(t,o)&&(e.line=i||e.line,e.lineStart=s||e.lineStart,e.position=l||e.position,Me(e,"duplicated mapping key")),o==="__proto__"?Object.defineProperty(t,o,{configurable:!0,enumerable:!0,writable:!0,value:a}):t[o]=a,delete r[o];return t}function Xp(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Me(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function zt(e,t,r){for(var n=0,o=e.input.charCodeAt(e.position);o!==0;){for(;ta(o);)o===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),o=e.input.charCodeAt(++e.position);if(t&&o===35)do o=e.input.charCodeAt(++e.position);while(o!==10&&o!==13&&o!==0);if(kn(o))for(Xp(e),o=e.input.charCodeAt(e.position),n++,e.lineIndent=0;o===32;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&Pc(e,"deficient indentation"),n}function xc(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||kr(r)))}function Qp(e,t){t===1?e.result+=" ":t>1&&(e.result+=ea.repeat(`
|
67
|
+
`,t-1))}function G2(e,t,r){var n,o,a,i,s,l,u,c,d=e.kind,v=e.result,g;if(g=e.input.charCodeAt(e.position),kr(g)||oi(g)||g===35||g===38||g===42||g===33||g===124||g===62||g===39||g===34||g===37||g===64||g===96||(g===63||g===45)&&(o=e.input.charCodeAt(e.position+1),kr(o)||r&&oi(o)))return!1;for(e.kind="scalar",e.result="",a=i=e.position,s=!1;g!==0;){if(g===58){if(o=e.input.charCodeAt(e.position+1),kr(o)||r&&oi(o))break}else if(g===35){if(n=e.input.charCodeAt(e.position-1),kr(n))break}else{if(e.position===e.lineStart&&xc(e)||r&&oi(g))break;if(kn(g))if(l=e.line,u=e.lineStart,c=e.lineIndent,zt(e,!1,-1),e.lineIndent>=t){s=!0,g=e.input.charCodeAt(e.position);continue}else{e.position=i,e.line=l,e.lineStart=u,e.lineIndent=c;break}}s&&(_o(e,a,i,!1),Qp(e,e.line-l),a=i=e.position,s=!1),ta(g)||(i=e.position+1),g=e.input.charCodeAt(++e.position)}return _o(e,a,i,!1),e.result?!0:(e.kind=d,e.result=v,!1)}function J2(e,t){var r,n,o;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=o=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(_o(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,o=e.position;else return!0;else kn(r)?(_o(e,n,o,!0),Qp(e,zt(e,!1,t)),n=o=e.position):e.position===e.lineStart&&xc(e)?Me(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);Me(e,"unexpected end of the stream within a single quoted scalar")}function K2(e,t){var r,n,o,a,i,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return _o(e,r,e.position,!0),e.position++,!0;if(s===92){if(_o(e,r,e.position,!0),s=e.input.charCodeAt(++e.position),kn(s))zt(e,!1,t);else if(s<256&&Z1[s])e.result+=Y1[s],e.position++;else if((i=z2(s))>0){for(o=i,a=0;o>0;o--)s=e.input.charCodeAt(++e.position),(i=L2(s))>=0?a=(a<<4)+i:Me(e,"expected hexadecimal character");e.result+=W2(a),e.position++}else Me(e,"unknown escape sequence");r=n=e.position}else kn(s)?(_o(e,r,n,!0),Qp(e,zt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&xc(e)?Me(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Me(e,"unexpected end of the stream within a double quoted scalar")}function Z2(e,t){var r=!0,n,o,a,i=e.tag,s,l=e.anchor,u,c,d,v,g,b=Object.create(null),E,y,m,p;if(p=e.input.charCodeAt(e.position),p===91)c=93,g=!1,s=[];else if(p===123)c=125,g=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),p=e.input.charCodeAt(++e.position);p!==0;){if(zt(e,!0,t),p=e.input.charCodeAt(e.position),p===c)return e.position++,e.tag=i,e.anchor=l,e.kind=g?"mapping":"sequence",e.result=s,!0;r?p===44&&Me(e,"expected the node content, but found ','"):Me(e,"missed comma between flow collection entries"),y=E=m=null,d=v=!1,p===63&&(u=e.input.charCodeAt(e.position+1),kr(u)&&(d=v=!0,e.position++,zt(e,!0,t))),n=e.line,o=e.lineStart,a=e.position,si(e,t,Oc,!1,!0),y=e.tag,E=e.result,zt(e,!0,t),p=e.input.charCodeAt(e.position),(v||e.line===n)&&p===58&&(d=!0,p=e.input.charCodeAt(++e.position),zt(e,!0,t),si(e,t,Oc,!1,!0),m=e.result),g?ii(e,s,b,y,E,m,n,o,a):d?s.push(ii(e,null,b,y,E,m,n,o,a)):s.push(E),zt(e,!0,t),p=e.input.charCodeAt(e.position),p===44?(r=!0,p=e.input.charCodeAt(++e.position)):r=!1}Me(e,"unexpected end of the stream within a flow collection")}function Y2(e,t){var r,n,o=Yp,a=!1,i=!1,s=t,l=0,u=!1,c,d;if(d=e.input.charCodeAt(e.position),d===124)n=!1;else if(d===62)n=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)Yp===o?o=d===43?W1:F2:Me(e,"repeat of a chomping mode identifier");else if((c=q2(d))>=0)c===0?Me(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):i?Me(e,"repeat of an indentation width identifier"):(s=t+c-1,i=!0);else break;if(ta(d)){do d=e.input.charCodeAt(++e.position);while(ta(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!kn(d)&&d!==0)}for(;d!==0;){for(Xp(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!i||e.lineIndent<s)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!i&&e.lineIndent>s&&(s=e.lineIndent),kn(d)){l++;continue}if(e.lineIndent<s){o===W1?e.result+=ea.repeat(`
|
68
|
+
`,a?1+l:l):o===Yp&&a&&(e.result+=`
|
69
|
+
`);break}for(n?ta(d)?(u=!0,e.result+=ea.repeat(`
|
70
|
+
`,a?1+l:l)):u?(u=!1,e.result+=ea.repeat(`
|
71
|
+
`,l+1)):l===0?a&&(e.result+=" "):e.result+=ea.repeat(`
|
72
|
+
`,l):e.result+=ea.repeat(`
|
73
|
+
`,a?1+l:l),a=!0,i=!0,l=0,r=e.position;!kn(d)&&d!==0;)d=e.input.charCodeAt(++e.position);_o(e,r,e.position,!1)}return!0}function t_(e,t){var r,n=e.tag,o=e.anchor,a=[],i,s=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Me(e,"tab characters must not be used in indentation")),!(l!==45||(i=e.input.charCodeAt(e.position+1),!kr(i))));){if(s=!0,e.position++,zt(e,!0,-1)&&e.lineIndent<=t){a.push(null),l=e.input.charCodeAt(e.position);continue}if(r=e.line,si(e,t,q1,!1,!0),a.push(e.result),zt(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&l!==0)Me(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return s?(e.tag=n,e.anchor=o,e.kind="sequence",e.result=a,!0):!1}function X2(e,t,r){var n,o,a,i,s,l,u=e.tag,c=e.anchor,d={},v=Object.create(null),g=null,b=null,E=null,y=!1,m=!1,p;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=d),p=e.input.charCodeAt(e.position);p!==0;){if(!y&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Me(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),a=e.line,(p===63||p===58)&&kr(n))p===63?(y&&(ii(e,d,v,g,b,null,i,s,l),g=b=E=null),m=!0,y=!0,o=!0):y?(y=!1,o=!0):Me(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,p=n;else{if(i=e.line,s=e.lineStart,l=e.position,!si(e,r,z1,!1,!0))break;if(e.line===a){for(p=e.input.charCodeAt(e.position);ta(p);)p=e.input.charCodeAt(++e.position);if(p===58)p=e.input.charCodeAt(++e.position),kr(p)||Me(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(ii(e,d,v,g,b,null,i,s,l),g=b=E=null),m=!0,y=!1,o=!1,g=e.tag,b=e.result;else if(m)Me(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=c,!0}else if(m)Me(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=c,!0}if((e.line===a||e.lineIndent>t)&&(y&&(i=e.line,s=e.lineStart,l=e.position),si(e,t,Ac,!0,o)&&(y?b=e.result:E=e.result),y||(ii(e,d,v,g,b,E,i,s,l),g=b=E=null),zt(e,!0,-1),p=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&p!==0)Me(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&ii(e,d,v,g,b,null,i,s,l),m&&(e.tag=u,e.anchor=c,e.kind="mapping",e.result=d),m}function Q2(e){var t,r=!1,n=!1,o,a,i;if(i=e.input.charCodeAt(e.position),i!==33)return!1;if(e.tag!==null&&Me(e,"duplication of a tag property"),i=e.input.charCodeAt(++e.position),i===60?(r=!0,i=e.input.charCodeAt(++e.position)):i===33?(n=!0,o="!!",i=e.input.charCodeAt(++e.position)):o="!",t=e.position,r){do i=e.input.charCodeAt(++e.position);while(i!==0&&i!==62);e.position<e.length?(a=e.input.slice(t,e.position),i=e.input.charCodeAt(++e.position)):Me(e,"unexpected end of the stream within a verbatim tag")}else{for(;i!==0&&!kr(i);)i===33&&(n?Me(e,"tag suffix cannot contain exclamation marks"):(o=e.input.slice(t-1,e.position+1),H1.test(o)||Me(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),i=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),U2.test(a)&&Me(e,"tag suffix cannot contain flow indicator characters")}a&&!G1.test(a)&&Me(e,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch{Me(e,"tag name is malformed: "+a)}return r?e.tag=a:wo.call(e.tagMap,o)?e.tag=e.tagMap[o]+a:o==="!"?e.tag="!"+a:o==="!!"?e.tag="tag:yaml.org,2002:"+a:Me(e,'undeclared tag handle "'+o+'"'),!0}function eB(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&Me(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!kr(r)&&!oi(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Me(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function tB(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!kr(n)&&!oi(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Me(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),wo.call(e.anchorMap,r)||Me(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],zt(e,!0,-1),!0}function si(e,t,r,n,o){var a,i,s,l=1,u=!1,c=!1,d,v,g,b,E,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=i=s=Ac===r||q1===r,n&&zt(e,!0,-1)&&(u=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;Q2(e)||eB(e);)zt(e,!0,-1)?(u=!0,s=a,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):s=!1;if(s&&(s=u||o),(l===1||Ac===r)&&(Oc===r||z1===r?E=t:E=t+1,y=e.position-e.lineStart,l===1?s&&(t_(e,y)||X2(e,y,E))||Z2(e,E)?c=!0:(i&&Y2(e,E)||J2(e,E)||K2(e,E)?c=!0:tB(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&Me(e,"alias node should not have any properties")):G2(e,E,Oc===r)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(c=s&&t_(e,y))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Me(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),d=0,v=e.implicitTypes.length;d<v;d+=1)if(b=e.implicitTypes[d],b.resolve(e.result)){e.result=b.construct(e.result),e.tag=b.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(wo.call(e.typeMap[e.kind||"fallback"],e.tag))b=e.typeMap[e.kind||"fallback"][e.tag];else for(b=null,g=e.typeMap.multi[e.kind||"fallback"],d=0,v=g.length;d<v;d+=1)if(e.tag.slice(0,g[d].tag.length)===g[d].tag){b=g[d];break}b||Me(e,"unknown tag !<"+e.tag+">"),e.result!==null&&b.kind!==e.kind&&Me(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+b.kind+'", not "'+e.kind+'"'),b.resolve(e.result,e.tag)?(e.result=b.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Me(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function rB(e){var t=e.position,r,n,o,a=!1,i;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(i=e.input.charCodeAt(e.position))!==0&&(zt(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0||i!==37));){for(a=!0,i=e.input.charCodeAt(++e.position),r=e.position;i!==0&&!kr(i);)i=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),o=[],n.length<1&&Me(e,"directive name must not be less than one character in length");i!==0;){for(;ta(i);)i=e.input.charCodeAt(++e.position);if(i===35){do i=e.input.charCodeAt(++e.position);while(i!==0&&!kn(i));break}if(kn(i))break;for(r=e.position;i!==0&&!kr(i);)i=e.input.charCodeAt(++e.position);o.push(e.input.slice(r,e.position))}i!==0&&Xp(e),wo.call(Q1,n)?Q1[n](e,n,o):Pc(e,'unknown document directive "'+n+'"')}if(zt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,zt(e,!0,-1)):a&&Me(e,"directives end mark is expected"),si(e,e.lineIndent-1,Ac,!1,!0),zt(e,!0,-1),e.checkLineBreaks&&V2.test(e.input.slice(t,e.position))&&Pc(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&xc(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,zt(e,!0,-1));return}if(e.position<e.length-1)Me(e,"end of the stream or a document separator is expected");else return}function r_(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
74
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new H2(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,Me(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)rB(r);return r.documents}function nB(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=r_(e,r);if(typeof t!="function")return n;for(var o=0,a=n.length;o<a;o+=1)t(n[o])}function oB(e,t){var r=r_(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new L1("expected a single document in the stream, but found more")}}qp.loadAll=nB,qp.load=oB;var n_={},Tc=dn,gs=hs,aB=Zp,o_=Object.prototype.toString,a_=Object.prototype.hasOwnProperty,eh=65279,iB=9,vs=10,sB=13,lB=32,uB=33,cB=34,th=35,fB=37,dB=38,pB=39,hB=42,i_=44,mB=45,jc=58,yB=61,gB=62,vB=63,bB=64,s_=91,l_=93,wB=96,u_=123,_B=124,c_=125,hr={};hr[0]="\\0",hr[7]="\\a",hr[8]="\\b",hr[9]="\\t",hr[10]="\\n",hr[11]="\\v",hr[12]="\\f",hr[13]="\\r",hr[27]="\\e",hr[34]='\\"',hr[92]="\\\\",hr[133]="\\N",hr[160]="\\_",hr[8232]="\\L",hr[8233]="\\P";var SB=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],$B=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function EB(e,t){var r,n,o,a,i,s,l;if(t===null)return{};for(r={},n=Object.keys(t),o=0,a=n.length;o<a;o+=1)i=n[o],s=String(t[i]),i.slice(0,2)==="!!"&&(i="tag:yaml.org,2002:"+i.slice(2)),l=e.compiledTypeMap.fallback[i],l&&a_.call(l.styleAliases,s)&&(s=l.styleAliases[s]),r[i]=s;return r}function OB(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new gs("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Tc.repeat("0",n-t.length)+t}var AB=1,bs=2;function PB(e){this.schema=e.schema||aB,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Tc.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=EB(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?bs:AB,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function f_(e,t){for(var r=Tc.repeat(" ",t),n=0,o=-1,a="",i,s=e.length;n<s;)o=e.indexOf(`
|
75
|
+
`,n),o===-1?(i=e.slice(n),n=s):(i=e.slice(n,o+1),n=o+1),i.length&&i!==`
|
76
|
+
`&&(a+=r),a+=i;return a}function rh(e,t){return`
|
77
|
+
`+Tc.repeat(" ",e.indent*t)}function xB(e,t){var r,n,o;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(o=e.implicitTypes[r],o.resolve(t))return!0;return!1}function kc(e){return e===lB||e===iB}function ws(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==eh||65536<=e&&e<=1114111}function d_(e){return ws(e)&&e!==eh&&e!==sB&&e!==vs}function p_(e,t,r){var n=d_(e),o=n&&!kc(e);return(r?n:n&&e!==i_&&e!==s_&&e!==l_&&e!==u_&&e!==c_)&&e!==th&&!(t===jc&&!o)||d_(t)&&!kc(t)&&e===th||t===jc&&o}function TB(e){return ws(e)&&e!==eh&&!kc(e)&&e!==mB&&e!==vB&&e!==jc&&e!==i_&&e!==s_&&e!==l_&&e!==u_&&e!==c_&&e!==th&&e!==dB&&e!==hB&&e!==uB&&e!==_B&&e!==yB&&e!==gB&&e!==pB&&e!==cB&&e!==fB&&e!==bB&&e!==wB}function jB(e){return!kc(e)&&e!==jc}function _s(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function h_(e){var t=/^\n* /;return t.test(e)}var m_=1,nh=2,y_=3,g_=4,li=5;function kB(e,t,r,n,o,a,i,s){var l,u=0,c=null,d=!1,v=!1,g=n!==-1,b=-1,E=TB(_s(e,0))&&jB(_s(e,e.length-1));if(t||i)for(l=0;l<e.length;u>=65536?l+=2:l++){if(u=_s(e,l),!ws(u))return li;E=E&&p_(u,c,s),c=u}else{for(l=0;l<e.length;u>=65536?l+=2:l++){if(u=_s(e,l),u===vs)d=!0,g&&(v=v||l-b-1>n&&e[b+1]!==" ",b=l);else if(!ws(u))return li;E=E&&p_(u,c,s),c=u}v=v||g&&l-b-1>n&&e[b+1]!==" "}return!d&&!v?E&&!i&&!o(e)?m_:a===bs?li:nh:r>9&&h_(e)?li:i?a===bs?li:nh:v?g_:y_}function CB(e,t,r,n,o){e.dump=function(){if(t.length===0)return e.quotingType===bs?'""':"''";if(!e.noCompatMode&&(SB.indexOf(t)!==-1||$B.test(t)))return e.quotingType===bs?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,r),i=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),s=n||e.flowLevel>-1&&r>=e.flowLevel;function l(u){return xB(e,u)}switch(kB(t,s,e.indent,i,l,e.quotingType,e.forceQuotes&&!n,o)){case m_:return t;case nh:return"'"+t.replace(/'/g,"''")+"'";case y_:return"|"+v_(t,e.indent)+b_(f_(t,a));case g_:return">"+v_(t,e.indent)+b_(f_(NB(t,i),a));case li:return'"'+IB(t)+'"';default:throw new gs("impossible error: invalid scalar style")}}()}function v_(e,t){var r=h_(e)?String(t):"",n=e[e.length-1]===`
|
78
|
+
`,o=n&&(e[e.length-2]===`
|
79
|
+
`||e===`
|
80
|
+
`),a=o?"+":n?"":"-";return r+a+`
|
81
|
+
`}function b_(e){return e[e.length-1]===`
|
82
|
+
`?e.slice(0,-1):e}function NB(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var u=e.indexOf(`
|
83
|
+
`);return u=u!==-1?u:e.length,r.lastIndex=u,w_(e.slice(0,u),t)}(),o=e[0]===`
|
84
|
+
`||e[0]===" ",a,i;i=r.exec(e);){var s=i[1],l=i[2];a=l[0]===" ",n+=s+(!o&&!a&&l!==""?`
|
85
|
+
`:"")+w_(l,t),o=a}return n}function w_(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,o=0,a,i=0,s=0,l="";n=r.exec(e);)s=n.index,s-o>t&&(a=i>o?i:s,l+=`
|
86
|
+
`+e.slice(o,a),o=a+1),i=s;return l+=`
|
87
|
+
`,e.length-o>t&&i>o?l+=e.slice(o,i)+`
|
88
|
+
`+e.slice(i+1):l+=e.slice(o),l.slice(1)}function IB(e){for(var t="",r=0,n,o=0;o<e.length;r>=65536?o+=2:o++)r=_s(e,o),n=hr[r],!n&&ws(r)?(t+=e[o],r>=65536&&(t+=e[o+1])):t+=n||OB(r);return t}function RB(e,t,r){var n="",o=e.tag,a,i,s;for(a=0,i=r.length;a<i;a+=1)s=r[a],e.replacer&&(s=e.replacer.call(r,String(a),s)),(eo(e,t,s,!1,!1)||typeof s>"u"&&eo(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=o,e.dump="["+n+"]"}function __(e,t,r,n){var o="",a=e.tag,i,s,l;for(i=0,s=r.length;i<s;i+=1)l=r[i],e.replacer&&(l=e.replacer.call(r,String(i),l)),(eo(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&eo(e,t+1,null,!0,!0,!1,!0))&&((!n||o!=="")&&(o+=rh(e,t)),e.dump&&vs===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump);e.tag=a,e.dump=o||"[]"}function BB(e,t,r){var n="",o=e.tag,a=Object.keys(r),i,s,l,u,c;for(i=0,s=a.length;i<s;i+=1)c="",n!==""&&(c+=", "),e.condenseFlow&&(c+='"'),l=a[i],u=r[l],e.replacer&&(u=e.replacer.call(r,l,u)),eo(e,t,l,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),eo(e,t,u,!1,!1)&&(c+=e.dump,n+=c));e.tag=o,e.dump="{"+n+"}"}function DB(e,t,r,n){var o="",a=e.tag,i=Object.keys(r),s,l,u,c,d,v;if(e.sortKeys===!0)i.sort();else if(typeof e.sortKeys=="function")i.sort(e.sortKeys);else if(e.sortKeys)throw new gs("sortKeys must be a boolean or a function");for(s=0,l=i.length;s<l;s+=1)v="",(!n||o!=="")&&(v+=rh(e,t)),u=i[s],c=r[u],e.replacer&&(c=e.replacer.call(r,u,c)),eo(e,t+1,u,!0,!0,!0)&&(d=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,d&&(e.dump&&vs===e.dump.charCodeAt(0)?v+="?":v+="? "),v+=e.dump,d&&(v+=rh(e,t)),eo(e,t+1,c,!0,d)&&(e.dump&&vs===e.dump.charCodeAt(0)?v+=":":v+=": ",v+=e.dump,o+=v));e.tag=a,e.dump=o||"{}"}function S_(e,t,r){var n,o,a,i,s,l;for(o=r?e.explicitTypes:e.implicitTypes,a=0,i=o.length;a<i;a+=1)if(s=o[a],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t=="object"&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(r?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){if(l=e.styleMap[s.tag]||s.defaultStyle,o_.call(s.represent)==="[object Function]")n=s.represent(t,l);else if(a_.call(s.represent,l))n=s.represent[l](t,l);else throw new gs("!<"+s.tag+'> tag resolver accepts not "'+l+'" style');e.dump=n}return!0}return!1}function eo(e,t,r,n,o,a,i){e.tag=null,e.dump=r,S_(e,r,!1)||S_(e,r,!0);var s=o_.call(e.dump),l=n,u;n&&(n=e.flowLevel<0||e.flowLevel>t);var c=s==="[object Object]"||s==="[object Array]",d,v;if(c&&(d=e.duplicates.indexOf(r),v=d!==-1),(e.tag!==null&&e.tag!=="?"||v||e.indent!==2&&t>0)&&(o=!1),v&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(c&&v&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),s==="[object Object]")n&&Object.keys(e.dump).length!==0?(DB(e,t,e.dump,o),v&&(e.dump="&ref_"+d+e.dump)):(BB(e,t,e.dump),v&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!i&&t>0?__(e,t-1,e.dump,o):__(e,t,e.dump,o),v&&(e.dump="&ref_"+d+e.dump)):(RB(e,t,e.dump),v&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&CB(e,e.dump,t,a,l);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new gs("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return!0}function FB(e,t){var r=[],n=[],o,a;for(oh(e,r,n),o=0,a=n.length;o<a;o+=1)t.duplicates.push(r[n[o]]);t.usedDuplicates=new Array(a)}function oh(e,t,r){var n,o,a;if(e!==null&&typeof e=="object")if(o=t.indexOf(e),o!==-1)r.indexOf(o)===-1&&r.push(o);else if(t.push(e),Array.isArray(e))for(o=0,a=e.length;o<a;o+=1)oh(e[o],t,r);else for(n=Object.keys(e),o=0,a=n.length;o<a;o+=1)oh(e[n[o]],t,r)}function MB(e,t){t=t||{};var r=new PB(t);r.noRefs||FB(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),eo(r,0,n,!0,!0)?r.dump+`
|
89
|
+
`:""}n_.dump=MB;var $_=qp,VB=n_;function ah(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}pr.Type=Ar,pr.Schema=S1,pr.FAILSAFE_SCHEMA=A1,pr.JSON_SCHEMA=C1,pr.CORE_SCHEMA=N1,pr.DEFAULT_SCHEMA=Zp,pr.load=$_.load,pr.loadAll=$_.loadAll,pr.dump=VB.dump,pr.YAMLException=hs,pr.types={binary:F1,float:k1,map:O1,null:P1,pairs:V1,set:U1,timestamp:B1,bool:x1,int:T1,merge:D1,omap:M1,seq:E1,str:$1},pr.safeLoad=ah("safeLoad","load"),pr.safeLoadAll=ah("safeLoadAll","loadAll"),pr.safeDump=ah("safeDump","dump");var UB=Pe&&Pe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zp,"__esModule",{value:!0});const LB=yt,zB=UB(pr),qB=pr;zp.default={order:200,allowEmpty:!0,canParse:[".yaml",".yml",".json"],async parse(e){let t=e.data;if(Fe.Buffer.isBuffer(t)&&(t=t.toString()),typeof t=="string")try{return zB.default.load(t,{schema:qB.JSON_SCHEMA})}catch(r){throw new LB.ParserError((r==null?void 0:r.message)||"Parser Error",e.url)}else return t}};var ih={};Object.defineProperty(ih,"__esModule",{value:!0});const WB=yt,HB=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;ih.default={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Fe.Buffer.isBuffer(e.data))&&HB.test(e.url)},parse(e){if(typeof e.data=="string")return e.data;if(Fe.Buffer.isBuffer(e.data))return e.data.toString(this.encoding);throw new WB.ParserError("data is not text",e.url)}};var sh={};Object.defineProperty(sh,"__esModule",{value:!0});const GB=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;sh.default={order:400,allowEmpty:!0,canParse(e){return Fe.Buffer.isBuffer(e.data)&&GB.test(e.url)},parse(e){return Fe.Buffer.isBuffer(e.data)?e.data:Fe.Buffer.from(e.data)}};var lh={};const JB={},KB=Object.freeze(Object.defineProperty({__proto__:null,default:JB},Symbol.toStringTag,{value:"Module"})),ZB=hd(KB);var YB=Pe&&Pe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),XB=Pe&&Pe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),QB=Pe&&Pe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&YB(t,e,r);return XB(t,e),t},eD=Pe&&Pe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(lh,"__esModule",{value:!0});const tD=eD(ZB),E_=Xo,O_=QB(Qe),A_=yt;lh.default={order:100,canRead(e){return O_.isFileSystemPath(e.url)},async read(e){let t;try{t=O_.toFileSystemPath(e.url)}catch(r){throw new A_.ResolverError(E_.ono.uri(r,`Malformed URI: ${e.url}`),e.url)}try{return await tD.default.promises.readFile(t)}catch(r){throw new A_.ResolverError((0,E_.ono)(r,`Error opening file "${t}"`),t)}}};var uh={},rD=Pe&&Pe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),nD=Pe&&Pe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),oD=Pe&&Pe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&rD(t,e,r);return nD(t,e),t};Object.defineProperty(uh,"__esModule",{value:!0});const Cc=Xo,Ss=oD(Qe),P_=yt;uh.default={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return Ss.isHttp(e.url)},read(e){const t=Ss.parse(e.url);return typeof window<"u"&&!t.protocol&&(t.protocol=Ss.parse(location.href).protocol),x_(t,this)}};async function x_(e,t,r){e=Ss.parse(e);const n=r||[];n.push(e.href);try{const o=await aD(e,t);if(o.status>=400)throw(0,Cc.ono)({status:o.status},`HTTP ERROR ${o.status}`);if(o.status>=300){if(!Number.isNaN(t.redirects)&&n.length>t.redirects)throw new P_.ResolverError((0,Cc.ono)({status:o.status},`Error downloading ${n[0]}.
|
90
|
+
Too many redirects:
|
91
|
+
${n.join(`
|
92
|
+
`)}`));if(!("location"in o.headers)||!o.headers.location)throw(0,Cc.ono)({status:o.status},`HTTP ${o.status} redirect with no location header`);{const a=Ss.resolve(e.href,o.headers.location);return x_(a,t,n)}}else{if(o.body){const a=await o.arrayBuffer();return Fe.Buffer.from(a)}return Fe.Buffer.alloc(0)}}catch(o){throw new P_.ResolverError((0,Cc.ono)(o,`Error downloading ${e.href}`),e.href)}}async function aD(e,t){let r,n;t.timeout&&(r=new AbortController,n=setTimeout(()=>r.abort(),t.timeout));const o=await fetch(e,{method:"GET",headers:t.headers||{},credentials:t.withCredentials?"include":"same-origin",signal:r?r.signal:null});return n&&clearTimeout(n),o}(function(e){var t=Pe&&Pe.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(e,"__esModule",{value:!0}),e.getNewOptions=e.getJsonSchemaRefParserDefaultOptions=void 0;const r=t(Lp),n=t(zp),o=t(ih),a=t(sh),i=t(lh),s=t(uh),l=()=>({parse:{json:{...r.default},yaml:{...n.default},text:{...o.default},binary:{...a.default}},resolve:{file:{...i.default},http:{...s.default},external:!0},continueOnError:!1,dereference:{circular:!0,excludedPathMatcher:()=>!1,referenceResolution:"relative"},mutateInputSchema:!0});e.getJsonSchemaRefParserDefaultOptions=l;const u=v=>{const g=(0,e.getJsonSchemaRefParserDefaultOptions)();return v&&c(g,v),g};e.getNewOptions=u;function c(v,g){if(d(g)){const b=Object.keys(g).filter(E=>!["__proto__","constructor","prototype"].includes(E));for(let E=0;E<b.length;E++){const y=b[E],m=g[y],p=v[y];d(m)?v[y]=c(p||{},m):m!==void 0&&(v[y]=m)}}return v}function d(v){return v&&typeof v=="object"&&!Array.isArray(v)&&!(v instanceof RegExp)&&!(v instanceof Date)}})(y1),Object.defineProperty(ds,"__esModule",{value:!0}),ds.normalizeArgs=void 0;const iD=y1;function T_(e){let t,r,n,o;const a=Array.prototype.slice.call(e);typeof a[a.length-1]=="function"&&(o=a.pop()),typeof a[0]=="string"?(t=a[0],typeof a[2]=="object"?(r=a[1],n=a[2]):(r=void 0,n=a[1])):(t="",r=a[0],n=a[1]);try{n=(0,iD.getNewOptions)(n)}catch(i){console.error(`JSON Schema Ref Parser: Error normalizing options: ${i}`)}return!n.mutateInputSchema&&typeof r=="object"&&(r=JSON.parse(JSON.stringify(r))),{path:t,schema:r,options:n,callback:o}}ds.normalizeArgs=T_,ds.default=T_;var ch={},sD=Pe&&Pe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),lD=Pe&&Pe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),uD=Pe&&Pe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&sD(t,e,r);return lD(t,e),t},fh=Pe&&Pe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ch,"__esModule",{value:!0});const cD=fh(fs()),fD=fh($c()),dD=fh(Ec),ui=uD(Qe),pD=yt;function hD(e,t){var r;if(!((r=t.resolve)!=null&&r.external))return Promise.resolve();try{const n=dh(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(n)}catch(n){return Promise.reject(n)}}function dh(e,t,r,n,o,a){o||(o=new Set);let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)&&!o.has(e)){o.add(e),cD.default.isExternal$Ref(e)&&i.push(mD(e,t,r,n));const s=Object.keys(e);for(const l of s){const u=fD.default.join(t,l),c=e[l];i=i.concat(dh(c,u,r,n,o))}}return i}async function mD(e,t,r,n){var o;const a=((o=n.dereference)==null?void 0:o.externalReferenceResolution)==="root",i=ui.resolve(a?ui.cwd():t,e.$ref),s=ui.stripHash(i),l=r._$refs[s];if(l)return Promise.resolve(l.value);try{const u=await(0,dD.default)(i,r,n),c=dh(u,s+"#",r,n,new Set,!0);return Promise.all(c)}catch(u){if(!(n!=null&&n.continueOnError)||!(0,pD.isHandledError)(u))throw u;return r._$refs[s]&&(u.source=decodeURI(ui.stripHash(t)),u.path=ui.safePointerToPath(ui.getHash(t))),[]}}ch.default=hD;var ph={},yD=Pe&&Pe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),gD=Pe&&Pe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),vD=Pe&&Pe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&yD(t,e,r);return gD(t,e),t},j_=Pe&&Pe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ph,"__esModule",{value:!0});const Nc=j_(fs()),$s=j_($c()),hh=vD(Qe);function bD(e,t){const r=[];mh(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),wD(r)}function mh(e,t,r,n,o,a,i,s){const l=t===null?e:e[t];if(l&&typeof l=="object"&&!ArrayBuffer.isView(l))if(Nc.default.isAllowed$Ref(l))k_(e,t,r,n,o,a,i,s);else{const u=Object.keys(l).sort((c,d)=>c==="definitions"?-1:d==="definitions"?1:c.length-d.length);for(const c of u){const d=$s.default.join(r,c),v=$s.default.join(n,c),g=l[c];Nc.default.isAllowed$Ref(g)?k_(l,c,r,v,o,a,i,s):mh(l,c,d,v,o,a,i,s)}}}function k_(e,t,r,n,o,a,i,s){const l=t===null?e:e[t],u=hh.resolve(r,l.$ref),c=i._resolve(u,n,s);if(c===null)return;const d=$s.default.parse(n).length,v=hh.stripHash(c.path),g=hh.getHash(c.path),b=v!==i._root$Ref.path,E=Nc.default.isExtended$Ref(l);o+=c.indirections;const y=_D(a,e,t);if(y)if(d<y.depth||o<y.indirections)SD(a,y);else return;a.push({$ref:l,parent:e,key:t,pathFromRoot:n,depth:d,file:v,hash:g,value:c.value,circular:c.circular,extended:E,external:b,indirections:o}),(!y||b)&&mh(c.value,null,c.path,n,o+1,a,i,s)}function wD(e){e.sort((o,a)=>{if(o.file!==a.file)return o.file<a.file?-1:1;if(o.hash!==a.hash)return o.hash<a.hash?-1:1;if(o.circular!==a.circular)return o.circular?-1:1;if(o.extended!==a.extended)return o.extended?1:-1;if(o.indirections!==a.indirections)return o.indirections-a.indirections;if(o.depth!==a.depth)return o.depth-a.depth;{const i=o.pathFromRoot.lastIndexOf("/definitions"),s=a.pathFromRoot.lastIndexOf("/definitions");return i!==s?s-i:o.pathFromRoot.length-a.pathFromRoot.length}});let t,r,n;for(const o of e)o.external?o.file===t&&o.hash===r?o.$ref.$ref=n:o.file===t&&o.hash.indexOf(r+"/")===0?o.$ref.$ref=$s.default.join(n,$s.default.parse(o.hash.replace(r,"#"))):(t=o.file,r=o.hash,n=o.pathFromRoot,o.$ref=o.parent[o.key]=Nc.default.dereference(o.$ref,o.value),o.circular&&(o.$ref.$ref=o.pathFromRoot)):o.$ref.$ref=o.hash}function _D(e,t,r){for(const n of e)if(n&&n.parent===t&&n.key===r)return n}function SD(e,t){const r=e.indexOf(t);e.splice(r,1)}ph.default=bD;var yh={},$D=Pe&&Pe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),ED=Pe&&Pe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),OD=Pe&&Pe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&$D(t,e,r);return ED(t,e),t},C_=Pe&&Pe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yh,"__esModule",{value:!0});const Ic=C_(fs()),N_=C_($c()),AD=Xo,I_=OD(Qe),PD=yt;yh.default=xD;function xD(e,t){const r=Date.now(),n=gh(e.schema,e.$refs._root$Ref.path,"#",new Set,new Set,new Map,e.$refs,t,r);e.$refs.circular=n.circular,e.schema=n.value}function gh(e,t,r,n,o,a,i,s,l){var u;let c;const d={value:e,circular:!1};if(s&&s.timeoutMs&&Date.now()-l>s.timeoutMs)throw new PD.TimeoutError(s.timeoutMs);const v=s.dereference||{},g=v.excludedPathMatcher||(()=>!1);if(((v==null?void 0:v.circular)==="ignore"||!o.has(e))&&e&&typeof e=="object"&&!ArrayBuffer.isView(e)&&!g(r)){if(n.add(e),o.add(e),Ic.default.isAllowed$Ref(e,s))c=R_(e,t,r,n,o,a,i,s,l),d.circular=c.circular,d.value=c.value;else for(const b of Object.keys(e)){const E=N_.default.join(t,b),y=N_.default.join(r,b);if(g(y))continue;const m=e[b];let p=!1;Ic.default.isAllowed$Ref(m,s)?(c=R_(m,E,y,n,o,a,i,s,l),p=c.circular,e[b]!==c.value&&(e[b]=c.value,(u=v==null?void 0:v.onDereference)==null||u.call(v,m.$ref,e[b],e,b))):n.has(m)?p=B_(E,i,s):(c=gh(m,E,y,n,o,a,i,s,l),p=c.circular,e[b]!==c.value&&(e[b]=c.value)),d.circular=d.circular||p}n.delete(e)}return d}function R_(e,t,r,n,o,a,i,s,l){var u,c;const d=Ic.default.isExternal$Ref(e)&&((u=s==null?void 0:s.dereference)==null?void 0:u.externalReferenceResolution)==="root",v=I_.resolve(d?I_.cwd():t,e.$ref),g=a.get(v);if(g){const _=Object.keys(e);if(_.length>1){const T={};for(const O of _)O!=="$ref"&&!(O in g.value)&&(T[O]=e[O]);return{circular:g.circular,value:Object.assign({},g.value,T)}}return g}const b=i._resolve(v,t,s);if(b===null)return{circular:!1,value:null};const E=b.circular;let y=E||n.has(b.value);y&&B_(t,i,s);let m=Ic.default.dereference(e,b.value);if(!y){const _=gh(m,b.path,r,n,o,a,i,s,l);y=_.circular,m=_.value}y&&!E&&((c=s.dereference)==null?void 0:c.circular)==="ignore"&&(m=e),E&&(m.$ref=r);const p={circular:y,value:m};return Object.keys(e).length===1&&a.set(v,p),p}function B_(e,t,r){if(t.circular=!0,!r.dereference.circular)throw AD.ono.reference(`Circular $ref pointer found at ${e}`);return!0}var vh={},bh={};Object.defineProperty(bh,"__esModule",{value:!0});function TD(){return typeof Fe.process=="object"&&typeof Fe.process.nextTick=="function"?Fe.process.nextTick:typeof setImmediate=="function"?setImmediate:function(e){setTimeout(e,0)}}bh.default=TD();var jD=Pe&&Pe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vh,"__esModule",{value:!0});const D_=jD(bh);function kD(e,t){if(e){t.then(function(r){(0,D_.default)(function(){e(null,r)})},function(r){(0,D_.default)(function(){e(r)})});return}else return t}vh.default=kD,function(e){var t=Pe&&Pe.__createBinding||(Object.create?function(m,p,_,T){T===void 0&&(T=_);var O=Object.getOwnPropertyDescriptor(p,_);(!O||("get"in O?!p.__esModule:O.writable||O.configurable))&&(O={enumerable:!0,get:function(){return p[_]}}),Object.defineProperty(m,T,O)}:function(m,p,_,T){T===void 0&&(T=_),m[T]=p[_]}),r=Pe&&Pe.__setModuleDefault||(Object.create?function(m,p){Object.defineProperty(m,"default",{enumerable:!0,value:p})}:function(m,p){m.default=p}),n=Pe&&Pe.__importStar||function(m){if(m&&m.__esModule)return m;var p={};if(m!=null)for(var _ in m)_!=="default"&&Object.prototype.hasOwnProperty.call(m,_)&&t(p,m,_);return r(p,m),p},o=Pe&&Pe.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(e,"__esModule",{value:!0}),e.JSONParserErrorGroup=e.isHandledError=e.UnmatchedParserError=e.ParserError=e.ResolverError=e.MissingPointerError=e.InvalidPointerError=e.JSONParserError=e.UnmatchedResolverError=e.dereference=e.bundle=e.resolve=e.parse=e.$RefParser=void 0;const a=o(Zd),i=o(Ec),s=o(ds),l=o(ch),u=o(ph),c=o(yh),d=n(Qe),v=yt;Object.defineProperty(e,"JSONParserError",{enumerable:!0,get:function(){return v.JSONParserError}}),Object.defineProperty(e,"InvalidPointerError",{enumerable:!0,get:function(){return v.InvalidPointerError}}),Object.defineProperty(e,"MissingPointerError",{enumerable:!0,get:function(){return v.MissingPointerError}}),Object.defineProperty(e,"ResolverError",{enumerable:!0,get:function(){return v.ResolverError}}),Object.defineProperty(e,"ParserError",{enumerable:!0,get:function(){return v.ParserError}}),Object.defineProperty(e,"UnmatchedParserError",{enumerable:!0,get:function(){return v.UnmatchedParserError}}),Object.defineProperty(e,"UnmatchedResolverError",{enumerable:!0,get:function(){return v.UnmatchedResolverError}}),Object.defineProperty(e,"isHandledError",{enumerable:!0,get:function(){return v.isHandledError}}),Object.defineProperty(e,"JSONParserErrorGroup",{enumerable:!0,get:function(){return v.JSONParserErrorGroup}});const g=Xo,b=o(vh);class E{constructor(){this.schema=null,this.$refs=new a.default}async parse(){const p=(0,s.default)(arguments);let _;if(!p.path&&!p.schema){const O=(0,g.ono)(`Expected a file path, URL, or object. Got ${p.path||p.schema}`);return(0,b.default)(p.callback,Promise.reject(O))}this.schema=null,this.$refs=new a.default;let T="http";if(d.isFileSystemPath(p.path))p.path=d.fromFileSystemPath(p.path),T="file";else if(!p.path&&p.schema&&"$id"in p.schema&&p.schema.$id){const O=d.parse(p.schema.$id),j=O.protocol==="https:"?443:80;p.path=`${O.protocol}//${O.hostname}:${j}`}if(p.path=d.resolve(d.cwd(),p.path),p.schema&&typeof p.schema=="object"){const O=this.$refs._add(p.path);O.value=p.schema,O.pathType=T,_=Promise.resolve(p.schema)}else _=(0,i.default)(p.path,this.$refs,p.options);try{const O=await _;if(O!==null&&typeof O=="object"&&!Fe.Buffer.isBuffer(O))return this.schema=O,(0,b.default)(p.callback,Promise.resolve(this.schema));if(p.options.continueOnError)return this.schema=null,(0,b.default)(p.callback,Promise.resolve(this.schema));throw g.ono.syntax(`"${this.$refs._root$Ref.path||O}" is not a valid JSON Schema`)}catch(O){return!p.options.continueOnError||!(0,v.isHandledError)(O)?(0,b.default)(p.callback,Promise.reject(O)):(this.$refs._$refs[d.stripHash(p.path)]&&this.$refs._$refs[d.stripHash(p.path)].addError(O),(0,b.default)(p.callback,Promise.resolve(null)))}}static parse(){const p=new E;return p.parse.apply(p,arguments)}async resolve(){const p=(0,s.default)(arguments);try{return await this.parse(p.path,p.schema,p.options),await(0,l.default)(this,p.options),y(this),(0,b.default)(p.callback,Promise.resolve(this.$refs))}catch(_){return(0,b.default)(p.callback,Promise.reject(_))}}static resolve(){const p=new E;return p.resolve.apply(p,arguments)}static bundle(){const p=new E;return p.bundle.apply(p,arguments)}async bundle(){const p=(0,s.default)(arguments);try{return await this.resolve(p.path,p.schema,p.options),(0,u.default)(this,p.options),y(this),(0,b.default)(p.callback,Promise.resolve(this.schema))}catch(_){return(0,b.default)(p.callback,Promise.reject(_))}}static dereference(){const p=new E;return p.dereference.apply(p,arguments)}async dereference(){const p=(0,s.default)(arguments);try{return await this.resolve(p.path,p.schema,p.options),(0,c.default)(this,p.options),y(this),(0,b.default)(p.callback,Promise.resolve(this.schema))}catch(_){return(0,b.default)(p.callback,Promise.reject(_))}}}e.$RefParser=E,e.default=E;function y(m){if(v.JSONParserErrorGroup.getParserErrors(m).length>0)throw new v.JSONParserErrorGroup(m)}e.parse=E.parse,e.resolve=E.resolve,e.bundle=E.bundle,e.dereference=E.dereference}(cw);const F_=Dg(cw),CD={key:1},ND={key:0},ID={key:1},RD={key:2},BD={key:3},DD=Re({__name:"FormRoot",props:{onSubmitForm:{type:Function},jsonSchema:{},uiSchema:{},renderInterface:{},presetData:{},generationOptions:{},returnDataAsScopes:{type:Boolean},mapperFunctions:{}},setup(e){const t=e;ka(DP()||tx()),fr(Jl,{});const{jsonSchema:r,uiSchema:n,mappers:o,components:a,defaultData:i,buttonWaiting:s}=Zt(ho()),{formData:l,defaultFormData:u,cleanedFormData:c}=Zt(Xr()),d=ot({jsonSchema:{validation:[],parsing:[]},uiSchema:{validation:[],parsing:[]}});let v;async function g(O){var j,C,Z;O.preventDefault();let V;t.returnDataAsScopes?V=Ke(c.value.scopes):V=Ke(c.value.json),V=await Id(V);const U=JSON.parse(decodeURIComponent(((Z=(C=(j=O.submitter)==null?void 0:j.attributes)==null?void 0:C.getNamedItem("submitOptions"))==null?void 0:Z.value)||"false"))||{};s.value[U.id]=!0,await t.onSubmitForm(V,U,O),s.value[U.id]=!1}function b(){u.value={...$v(t.presetData||{}),...i.value}}function E(){l.value={...u.value}}function y(O){O.preventDefault(),E()}const m={resolve:{file:!1}};async function p(O){return await F_.dereference(O,m)}async function _(O,j){return O?await F_.dereference(O,m):vv(j,t.generationOptions)}async function T(O){a.value=O.renderInterface,o.value=t.mapperFunctions||[],v=Qt("ErrorViewer");const j=await p(O.jsonSchema).catch(Z=>{d.value.jsonSchema.parsing.push(Z),console.error(Z)});if(!j)return;r.value=j;const C=await _(O.uiSchema,j).catch(Z=>{d.value.uiSchema.parsing.push(Z),console.error(Z)});C&&(n.value=C.layout)}return fr(Px,!0),Kf(async()=>{await T({jsonSchema:t.jsonSchema,uiSchema:t.uiSchema,renderInterface:t.renderInterface}),b()}),$r(t,O=>{T({jsonSchema:O.jsonSchema,uiSchema:O.uiSchema,renderInterface:O.renderInterface})}),(O,j)=>P(n)&&P(r)?(ie(),Be("form",{key:0,onSubmit:g,onReset:y,class:"vjf_form"},[Ze(Xu,{layoutElement:P(n)},null,8,["layoutElement"]),Ie(O.$slots,"default")],32)):d.value.jsonSchema.parsing.length+d.value.jsonSchema.validation.length+d.value.uiSchema.parsing.length+d.value.uiSchema.validation.length>0?(ie(),Be("div",CD,[j[4]||(j[4]=mt("h4",null,"Error",-1)),j[5]||(j[5]=mt("p",null,"There were errors while rendering this form",-1)),j[6]||(j[6]=mt("h5",null,"JSON Schema",-1)),d.value.jsonSchema.parsing.length>0?(ie(),Be("div",ND,[j[0]||(j[0]=mt("h6",null,"Parsing errors",-1)),(ie(!0),Be(ht,null,Br(d.value.jsonSchema.parsing,C=>(ie(),xe(_t(P(v)),{key:C.message,header:C.name},{default:Ce(()=>[mt("p",null,Ve(C.message),1)]),_:2},1032,["header"]))),128))])):ut("",!0),d.value.jsonSchema.validation.length>0?(ie(),Be("div",ID,[j[1]||(j[1]=mt("h6",null,"Validation errors",-1)),(ie(!0),Be(ht,null,Br(d.value.jsonSchema.validation,C=>(ie(),xe(_t(P(v)),{key:C.message,header:C.name},{default:Ce(()=>[mt("p",null,Ve(C.message),1)]),_:2},1032,["header"]))),128))])):ut("",!0),j[7]||(j[7]=mt("h5",{class:"mt-4"},"UI Schema",-1)),d.value.uiSchema.parsing.length>0?(ie(),Be("div",RD,[j[2]||(j[2]=mt("h6",null,"Parsing errors",-1)),(ie(!0),Be(ht,null,Br(d.value.uiSchema.parsing,C=>(ie(),xe(_t(P(v)),{key:C.message,header:C.name},{default:Ce(()=>[mt("p",null,Ve(C.message),1)]),_:2},1032,["header"]))),128))])):ut("",!0),d.value.uiSchema.validation.length>0?(ie(),Be("div",BD,[j[3]||(j[3]=mt("h6",null,"Validation errors",-1)),(ie(!0),Be(ht,null,Br(d.value.uiSchema.validation,C=>(ie(),xe(_t(P(v)),{key:C.message,header:C.name},{default:Ce(()=>[mt("p",null,Ve(C.message),1)]),_:2},1032,["header"]))),128))])):ut("",!0)])):ut("",!0)}});function FD(e){return typeof e=="object"&&e.const!==void 0&&e.title!==void 0}function MD(e,t){if(e.oneOf){let r;const n={};for(const o of e.oneOf){if(!FD(o))return console.warn("oneOf element is not a custom oneOf element"),null;r?r.push(o.const):r=[o.const],n[o.const]=o.title}if(((r==null?void 0:r.length)||0)<1)return console.warn("No values found in oneOf element"),null;e.enum=r,delete e.oneOf,t.options={enumTitles:n}}return{jsonElement:e,uiElement:t}}function M_(e,t){return function(){return e.apply(t,arguments)}}const{toString:VD}=Object.prototype,{getPrototypeOf:wh}=Object,{iterator:Rc,toStringTag:V_}=Symbol,Bc=(e=>t=>{const r=VD.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),pn=e=>(e=e.toLowerCase(),t=>Bc(t)===e),Dc=e=>t=>typeof t===e,{isArray:ci}=Array,Es=Dc("undefined");function UD(e){return e!==null&&!Es(e)&&e.constructor!==null&&!Es(e.constructor)&&Cr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const U_=pn("ArrayBuffer");function LD(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&U_(e.buffer),t}const zD=Dc("string"),Cr=Dc("function"),L_=Dc("number"),Fc=e=>e!==null&&typeof e=="object",qD=e=>e===!0||e===!1,Mc=e=>{if(Bc(e)!=="object")return!1;const t=wh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(V_ in e)&&!(Rc in e)},WD=pn("Date"),HD=pn("File"),GD=pn("Blob"),JD=pn("FileList"),KD=e=>Fc(e)&&Cr(e.pipe),ZD=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Cr(e.append)&&((t=Bc(e))==="formdata"||t==="object"&&Cr(e.toString)&&e.toString()==="[object FormData]"))},YD=pn("URLSearchParams"),[XD,QD,eF,tF]=["ReadableStream","Request","Response","Headers"].map(pn),rF=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Os(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),ci(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const a=r?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let s;for(n=0;n<i;n++)s=a[n],t.call(null,e[s],s,e)}}function z_(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const ra=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,q_=e=>!Es(e)&&e!==ra;function _h(){const{caseless:e}=q_(this)&&this||{},t={},r=(n,o)=>{const a=e&&z_(t,o)||o;Mc(t[a])&&Mc(n)?t[a]=_h(t[a],n):Mc(n)?t[a]=_h({},n):ci(n)?t[a]=n.slice():t[a]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Os(arguments[n],r);return t}const nF=(e,t,r,{allOwnKeys:n}={})=>(Os(t,(o,a)=>{r&&Cr(o)?e[a]=M_(o,r):e[a]=o},{allOwnKeys:n}),e),oF=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),aF=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},iF=(e,t,r,n)=>{let o,a,i;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],(!n||n(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=r!==!1&&wh(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},sF=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},lF=e=>{if(!e)return null;if(ci(e))return e;let t=e.length;if(!L_(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},uF=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&wh(Uint8Array)),cF=(e,t)=>{const n=(e&&e[Rc]).call(e);let o;for(;(o=n.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},fF=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},dF=pn("HTMLFormElement"),pF=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),W_=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),hF=pn("RegExp"),H_=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Os(r,(o,a)=>{let i;(i=t(o,a,e))!==!1&&(n[a]=i||o)}),Object.defineProperties(e,n)},mF=e=>{H_(e,(t,r)=>{if(Cr(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Cr(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},yF=(e,t)=>{const r={},n=o=>{o.forEach(a=>{r[a]=!0})};return ci(e)?n(e):n(String(e).split(t)),r},gF=()=>{},vF=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function bF(e){return!!(e&&Cr(e.append)&&e[V_]==="FormData"&&e[Rc])}const wF=e=>{const t=new Array(10),r=(n,o)=>{if(Fc(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const a=ci(n)?[]:{};return Os(n,(i,s)=>{const l=r(i,o+1);!Es(l)&&(a[s]=l)}),t[o]=void 0,a}}return n};return r(e,0)},_F=pn("AsyncFunction"),SF=e=>e&&(Fc(e)||Cr(e))&&Cr(e.then)&&Cr(e.catch),G_=((e,t)=>e?setImmediate:t?((r,n)=>(ra.addEventListener("message",({source:o,data:a})=>{o===ra&&a===r&&n.length&&n.shift()()},!1),o=>{n.push(o),ra.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Cr(ra.postMessage)),$F=typeof queueMicrotask<"u"?queueMicrotask.bind(ra):typeof process<"u"&&process.nextTick||G_,ce={isArray:ci,isArrayBuffer:U_,isBuffer:UD,isFormData:ZD,isArrayBufferView:LD,isString:zD,isNumber:L_,isBoolean:qD,isObject:Fc,isPlainObject:Mc,isReadableStream:XD,isRequest:QD,isResponse:eF,isHeaders:tF,isUndefined:Es,isDate:WD,isFile:HD,isBlob:GD,isRegExp:hF,isFunction:Cr,isStream:KD,isURLSearchParams:YD,isTypedArray:uF,isFileList:JD,forEach:Os,merge:_h,extend:nF,trim:rF,stripBOM:oF,inherits:aF,toFlatObject:iF,kindOf:Bc,kindOfTest:pn,endsWith:sF,toArray:lF,forEachEntry:cF,matchAll:fF,isHTMLForm:dF,hasOwnProperty:W_,hasOwnProp:W_,reduceDescriptors:H_,freezeMethods:mF,toObjectSet:yF,toCamelCase:pF,noop:gF,toFiniteNumber:vF,findKey:z_,global:ra,isContextDefined:q_,isSpecCompliantForm:bF,toJSONObject:wF,isAsyncFn:_F,isThenable:SF,setImmediate:G_,asap:$F,isIterable:e=>e!=null&&Cr(e[Rc])};function Ye(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}ce.inherits(Ye,Error,{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:ce.toJSONObject(this.config),code:this.code,status:this.status}}});const J_=Ye.prototype,K_={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{K_[e]={value:e}}),Object.defineProperties(Ye,K_),Object.defineProperty(J_,"isAxiosError",{value:!0}),Ye.from=(e,t,r,n,o,a)=>{const i=Object.create(J_);return ce.toFlatObject(e,i,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Ye.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const EF=null;function Sh(e){return ce.isPlainObject(e)||ce.isArray(e)}function Z_(e){return ce.endsWith(e,"[]")?e.slice(0,-2):e}function Y_(e,t,r){return e?e.concat(t).map(function(o,a){return o=Z_(o),!r&&a?"["+o+"]":o}).join(r?".":""):t}function OF(e){return ce.isArray(e)&&!e.some(Sh)}const AF=ce.toFlatObject(ce,{},null,function(t){return/^is[A-Z]/.test(t)});function Vc(e,t,r){if(!ce.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=ce.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,y){return!ce.isUndefined(y[E])});const n=r.metaTokens,o=r.visitor||c,a=r.dots,i=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&ce.isSpecCompliantForm(t);if(!ce.isFunction(o))throw new TypeError("visitor must be a function");function u(b){if(b===null)return"";if(ce.isDate(b))return b.toISOString();if(!l&&ce.isBlob(b))throw new Ye("Blob is not supported. Use a Buffer instead.");return ce.isArrayBuffer(b)||ce.isTypedArray(b)?l&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function c(b,E,y){let m=b;if(b&&!y&&typeof b=="object"){if(ce.endsWith(E,"{}"))E=n?E:E.slice(0,-2),b=JSON.stringify(b);else if(ce.isArray(b)&&OF(b)||(ce.isFileList(b)||ce.endsWith(E,"[]"))&&(m=ce.toArray(b)))return E=Z_(E),m.forEach(function(_,T){!(ce.isUndefined(_)||_===null)&&t.append(i===!0?Y_([E],T,a):i===null?E:E+"[]",u(_))}),!1}return Sh(b)?!0:(t.append(Y_(y,E,a),u(b)),!1)}const d=[],v=Object.assign(AF,{defaultVisitor:c,convertValue:u,isVisitable:Sh});function g(b,E){if(!ce.isUndefined(b)){if(d.indexOf(b)!==-1)throw Error("Circular reference detected in "+E.join("."));d.push(b),ce.forEach(b,function(m,p){(!(ce.isUndefined(m)||m===null)&&o.call(t,m,ce.isString(p)?p.trim():p,E,v))===!0&&g(m,E?E.concat(p):[p])}),d.pop()}}if(!ce.isObject(e))throw new TypeError("data must be an object");return g(e),t}function X_(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function $h(e,t){this._pairs=[],e&&Vc(e,this,t)}const Q_=$h.prototype;Q_.append=function(t,r){this._pairs.push([t,r])},Q_.toString=function(t){const r=t?function(n){return t.call(this,n,X_)}:X_;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function PF(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function eS(e,t,r){if(!t)return e;const n=r&&r.encode||PF;ce.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let a;if(o?a=o(t,r):a=ce.isURLSearchParams(t)?t.toString():new $h(t,r).toString(n),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class tS{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ce.forEach(this.handlers,function(n){n!==null&&t(n)})}}const rS={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xF={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:$h,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Eh=typeof window<"u"&&typeof document<"u",Oh=typeof navigator=="object"&&navigator||void 0,TF=Eh&&(!Oh||["ReactNative","NativeScript","NS"].indexOf(Oh.product)<0),jF=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",kF=Eh&&window.location.href||"http://localhost",mr={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Eh,hasStandardBrowserEnv:TF,hasStandardBrowserWebWorkerEnv:jF,navigator:Oh,origin:kF},Symbol.toStringTag,{value:"Module"})),...xF};function CF(e,t){return Vc(e,new mr.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,a){return mr.isNode&&ce.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function NF(e){return ce.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function IF(e){const t={},r=Object.keys(e);let n;const o=r.length;let a;for(n=0;n<o;n++)a=r[n],t[a]=e[a];return t}function nS(e){function t(r,n,o,a){let i=r[a++];if(i==="__proto__")return!0;const s=Number.isFinite(+i),l=a>=r.length;return i=!i&&ce.isArray(o)?o.length:i,l?(ce.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!s):((!o[i]||!ce.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],a)&&ce.isArray(o[i])&&(o[i]=IF(o[i])),!s)}if(ce.isFormData(e)&&ce.isFunction(e.entries)){const r={};return ce.forEachEntry(e,(n,o)=>{t(NF(n),o,r,0)}),r}return null}function RF(e,t,r){if(ce.isString(e))try{return(t||JSON.parse)(e),ce.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const As={transitional:rS,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,a=ce.isObject(t);if(a&&ce.isHTMLForm(t)&&(t=new FormData(t)),ce.isFormData(t))return o?JSON.stringify(nS(t)):t;if(ce.isArrayBuffer(t)||ce.isBuffer(t)||ce.isStream(t)||ce.isFile(t)||ce.isBlob(t)||ce.isReadableStream(t))return t;if(ce.isArrayBufferView(t))return t.buffer;if(ce.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return CF(t,this.formSerializer).toString();if((s=ce.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Vc(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||o?(r.setContentType("application/json",!1),RF(t)):t}],transformResponse:[function(t){const r=this.transitional||As.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(ce.isResponse(t)||ce.isReadableStream(t))return t;if(t&&ce.isString(t)&&(n&&!this.responseType||o)){const i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?Ye.from(s,Ye.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:mr.classes.FormData,Blob:mr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ce.forEach(["delete","get","head","post","put","patch"],e=>{As.headers[e]={}});const BF=ce.toObjectSet(["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"]),DF=e=>{const t={};let r,n,o;return e&&e.split(`
|
93
|
+
`).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&BF[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},oS=Symbol("internals");function Ps(e){return e&&String(e).trim().toLowerCase()}function Uc(e){return e===!1||e==null?e:ce.isArray(e)?e.map(Uc):String(e)}function FF(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const MF=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ah(e,t,r,n,o){if(ce.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!ce.isString(t)){if(ce.isString(n))return t.indexOf(n)!==-1;if(ce.isRegExp(n))return n.test(t)}}function VF(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function UF(e,t){const r=ce.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,a,i){return this[n].call(this,t,o,a,i)},configurable:!0})})}class Nr{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function a(s,l,u){const c=Ps(l);if(!c)throw new Error("header name must be a non-empty string");const d=ce.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||l]=Uc(s))}const i=(s,l)=>ce.forEach(s,(u,c)=>a(u,c,l));if(ce.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(ce.isString(t)&&(t=t.trim())&&!MF(t))i(DF(t),r);else if(ce.isObject(t)&&ce.isIterable(t)){let s={},l,u;for(const c of t){if(!ce.isArray(c))throw TypeError("Object iterator must return a key-value pair");s[u=c[0]]=(l=s[u])?ce.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}i(s,r)}else t!=null&&a(r,t,n);return this}get(t,r){if(t=Ps(t),t){const n=ce.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return FF(o);if(ce.isFunction(r))return r.call(this,o,n);if(ce.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Ps(t),t){const n=ce.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Ah(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function a(i){if(i=Ps(i),i){const s=ce.findKey(n,i);s&&(!r||Ah(n,n[s],s,r))&&(delete n[s],o=!0)}}return ce.isArray(t)?t.forEach(a):a(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const a=r[n];(!t||Ah(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const r=this,n={};return ce.forEach(this,(o,a)=>{const i=ce.findKey(n,a);if(i){r[i]=Uc(o),delete r[a];return}const s=t?VF(a):String(a).trim();s!==a&&delete r[a],r[s]=Uc(o),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return ce.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&ce.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
94
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[oS]=this[oS]={accessors:{}}).accessors,o=this.prototype;function a(i){const s=Ps(i);n[s]||(UF(o,i),n[s]=!0)}return ce.isArray(t)?t.forEach(a):a(t),this}}Nr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ce.reduceDescriptors(Nr.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),ce.freezeMethods(Nr);function Ph(e,t){const r=this||As,n=t||r,o=Nr.from(n.headers);let a=n.data;return ce.forEach(e,function(s){a=s.call(r,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function aS(e){return!!(e&&e.__CANCEL__)}function fi(e,t,r){Ye.call(this,e??"canceled",Ye.ERR_CANCELED,t,r),this.name="CanceledError"}ce.inherits(fi,Ye,{__CANCEL__:!0});function iS(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Ye("Request failed with status code "+r.status,[Ye.ERR_BAD_REQUEST,Ye.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function LF(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function zF(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=n[a];i||(i=u),r[o]=l,n[o]=u;let d=a,v=0;for(;d!==o;)v+=r[d++],d=d%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),u-i<t)return;const g=c&&u-c;return g?Math.round(v*1e3/g):void 0}}function qF(e,t){let r=0,n=1e3/t,o,a;const i=(u,c=Date.now())=>{r=c,o=null,a&&(clearTimeout(a),a=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),d=c-r;d>=n?i(u,c):(o=u,a||(a=setTimeout(()=>{a=null,i(o)},n-d)))},()=>o&&i(o)]}const Lc=(e,t,r=3)=>{let n=0;const o=zF(50,250);return qF(a=>{const i=a.loaded,s=a.lengthComputable?a.total:void 0,l=i-n,u=o(l),c=i<=s;n=i;const d={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-i)/u:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},r)},sS=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},lS=e=>(...t)=>ce.asap(()=>e(...t)),WF=mr.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,mr.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(mr.origin),mr.navigator&&/(msie|trident)/i.test(mr.navigator.userAgent)):()=>!0,HF=mr.hasStandardBrowserEnv?{write(e,t,r,n,o,a){const i=[e+"="+encodeURIComponent(t)];ce.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),ce.isString(n)&&i.push("path="+n),ce.isString(o)&&i.push("domain="+o),a===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function GF(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function JF(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function uS(e,t,r){let n=!GF(t);return e&&(n||r==!1)?JF(e,t):t}const cS=e=>e instanceof Nr?{...e}:e;function na(e,t){t=t||{};const r={};function n(u,c,d,v){return ce.isPlainObject(u)&&ce.isPlainObject(c)?ce.merge.call({caseless:v},u,c):ce.isPlainObject(c)?ce.merge({},c):ce.isArray(c)?c.slice():c}function o(u,c,d,v){if(ce.isUndefined(c)){if(!ce.isUndefined(u))return n(void 0,u,d,v)}else return n(u,c,d,v)}function a(u,c){if(!ce.isUndefined(c))return n(void 0,c)}function i(u,c){if(ce.isUndefined(c)){if(!ce.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function s(u,c,d){if(d in t)return n(u,c);if(d in e)return n(void 0,u)}const l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(u,c,d)=>o(cS(u),cS(c),d,!0)};return ce.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||o,v=d(e[c],t[c],c);ce.isUndefined(v)&&d!==s||(r[c]=v)}),r}const fS=e=>{const t=na({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:s}=t;t.headers=i=Nr.from(i),t.url=eS(uS(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(ce.isFormData(r)){if(mr.hasStandardBrowserEnv||mr.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){const[u,...c]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...c].join("; "))}}if(mr.hasStandardBrowserEnv&&(n&&ce.isFunction(n)&&(n=n(t)),n||n!==!1&&WF(t.url))){const u=o&&a&&HF.read(a);u&&i.set(o,u)}return t},KF=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=fS(e);let a=o.data;const i=Nr.from(o.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=o,c,d,v,g,b;function E(){g&&g(),b&&b(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function m(){if(!y)return;const _=Nr.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),O={data:!s||s==="text"||s==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:_,config:e,request:y};iS(function(C){r(C),E()},function(C){n(C),E()},O),y=null}"onloadend"in y?y.onloadend=m:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(m)},y.onabort=function(){y&&(n(new Ye("Request aborted",Ye.ECONNABORTED,e,y)),y=null)},y.onerror=function(){n(new Ye("Network Error",Ye.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let T=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const O=o.transitional||rS;o.timeoutErrorMessage&&(T=o.timeoutErrorMessage),n(new Ye(T,O.clarifyTimeoutError?Ye.ETIMEDOUT:Ye.ECONNABORTED,e,y)),y=null},a===void 0&&i.setContentType(null),"setRequestHeader"in y&&ce.forEach(i.toJSON(),function(T,O){y.setRequestHeader(O,T)}),ce.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),s&&s!=="json"&&(y.responseType=o.responseType),u&&([v,b]=Lc(u,!0),y.addEventListener("progress",v)),l&&y.upload&&([d,g]=Lc(l),y.upload.addEventListener("progress",d),y.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(c=_=>{y&&(n(!_||_.type?new fi(null,e,y):_),y.abort(),y=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const p=LF(o.url);if(p&&mr.protocols.indexOf(p)===-1){n(new Ye("Unsupported protocol "+p+":",Ye.ERR_BAD_REQUEST,e));return}y.send(a||null)})},ZF=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const a=function(u){if(!o){o=!0,s();const c=u instanceof Error?u:this.reason;n.abort(c instanceof Ye?c:new fi(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{i=null,a(new Ye(`timeout ${t} of ms exceeded`,Ye.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:l}=n;return l.unsubscribe=()=>ce.asap(s),l}},YF=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},XF=async function*(e,t){for await(const r of QF(e))yield*YF(r,t)},QF=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},dS=(e,t,r,n)=>{const o=XF(e,t);let a=0,i,s=l=>{i||(i=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await o.next();if(u){s(),l.close();return}let d=c.byteLength;if(r){let v=a+=d;r(v)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),o.return()}},{highWaterMark:2})},zc=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",pS=zc&&typeof ReadableStream=="function",eM=zc&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),hS=(e,...t)=>{try{return!!e(...t)}catch{return!1}},tM=pS&&hS(()=>{let e=!1;const t=new Request(mr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),mS=64*1024,xh=pS&&hS(()=>ce.isReadableStream(new Response("").body)),qc={stream:xh&&(e=>e.body)};zc&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!qc[t]&&(qc[t]=ce.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new Ye(`Response type '${t}' is not supported`,Ye.ERR_NOT_SUPPORT,n)})})})(new Response);const rM=async e=>{if(e==null)return 0;if(ce.isBlob(e))return e.size;if(ce.isSpecCompliantForm(e))return(await new Request(mr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ce.isArrayBufferView(e)||ce.isArrayBuffer(e))return e.byteLength;if(ce.isURLSearchParams(e)&&(e=e+""),ce.isString(e))return(await eM(e)).byteLength},nM=async(e,t)=>{const r=ce.toFiniteNumber(e.getContentLength());return r??rM(t)},Th={http:EF,xhr:KF,fetch:zc&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:a,timeout:i,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:d="same-origin",fetchOptions:v}=fS(e);u=u?(u+"").toLowerCase():"text";let g=ZF([o,a&&a.toAbortSignal()],i),b;const E=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let y;try{if(l&&tM&&r!=="get"&&r!=="head"&&(y=await nM(c,n))!==0){let O=new Request(t,{method:"POST",body:n,duplex:"half"}),j;if(ce.isFormData(n)&&(j=O.headers.get("content-type"))&&c.setContentType(j),O.body){const[C,Z]=sS(y,Lc(lS(l)));n=dS(O.body,mS,C,Z)}}ce.isString(d)||(d=d?"include":"omit");const m="credentials"in Request.prototype;b=new Request(t,{...v,signal:g,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:m?d:void 0});let p=await fetch(b);const _=xh&&(u==="stream"||u==="response");if(xh&&(s||_&&E)){const O={};["status","statusText","headers"].forEach(V=>{O[V]=p[V]});const j=ce.toFiniteNumber(p.headers.get("content-length")),[C,Z]=s&&sS(j,Lc(lS(s),!0))||[];p=new Response(dS(p.body,mS,C,()=>{Z&&Z(),E&&E()}),O)}u=u||"text";let T=await qc[ce.findKey(qc,u)||"text"](p,e);return!_&&E&&E(),await new Promise((O,j)=>{iS(O,j,{data:T,headers:Nr.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:b})})}catch(m){throw E&&E(),m&&m.name==="TypeError"&&/Load failed|fetch/i.test(m.message)?Object.assign(new Ye("Network Error",Ye.ERR_NETWORK,e,b),{cause:m.cause||m}):Ye.from(m,m&&m.code,e,b)}})};ce.forEach(Th,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const yS=e=>`- ${e}`,oM=e=>ce.isFunction(e)||e===null||e===!1,gS={getAdapter:e=>{e=ce.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let a=0;a<t;a++){r=e[a];let i;if(n=r,!oM(r)&&(n=Th[(i=String(r)).toLowerCase()],n===void 0))throw new Ye(`Unknown adapter '${i}'`);if(n)break;o[i||"#"+a]=n}if(!n){const a=Object.entries(o).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=t?a.length>1?`since :
|
95
|
+
`+a.map(yS).join(`
|
96
|
+
`):" "+yS(a[0]):"as no adapter specified";throw new Ye("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:Th};function jh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new fi(null,e)}function vS(e){return jh(e),e.headers=Nr.from(e.headers),e.data=Ph.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),gS.getAdapter(e.adapter||As.adapter)(e).then(function(n){return jh(e),n.data=Ph.call(e,e.transformResponse,n),n.headers=Nr.from(n.headers),n},function(n){return aS(n)||(jh(e),n&&n.response&&(n.response.data=Ph.call(e,e.transformResponse,n.response),n.response.headers=Nr.from(n.response.headers))),Promise.reject(n)})}const bS="1.9.0",Wc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Wc[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const wS={};Wc.transitional=function(t,r,n){function o(a,i){return"[Axios v"+bS+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return(a,i,s)=>{if(t===!1)throw new Ye(o(i," has been removed"+(r?" in "+r:"")),Ye.ERR_DEPRECATED);return r&&!wS[i]&&(wS[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,i,s):!0}},Wc.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function aM(e,t,r){if(typeof e!="object")throw new Ye("options must be an object",Ye.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const a=n[o],i=t[a];if(i){const s=e[a],l=s===void 0||i(s,a,e);if(l!==!0)throw new Ye("option "+a+" must be "+l,Ye.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Ye("Unknown option "+a,Ye.ERR_BAD_OPTION)}}const Hc={assertOptions:aM,validators:Wc},Cn=Hc.validators;class oa{constructor(t){this.defaults=t||{},this.interceptors={request:new tS,response:new tS}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
97
|
+
`+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=na(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&Hc.assertOptions(n,{silentJSONParsing:Cn.transitional(Cn.boolean),forcedJSONParsing:Cn.transitional(Cn.boolean),clarifyTimeoutError:Cn.transitional(Cn.boolean)},!1),o!=null&&(ce.isFunction(o)?r.paramsSerializer={serialize:o}:Hc.assertOptions(o,{encode:Cn.function,serialize:Cn.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Hc.assertOptions(r,{baseUrl:Cn.spelling("baseURL"),withXsrfToken:Cn.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=a&&ce.merge(a.common,a[r.method]);a&&ce.forEach(["delete","get","head","post","put","patch","common"],b=>{delete a[b]}),r.headers=Nr.concat(i,a);const s=[];let l=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(r)===!1||(l=l&&E.synchronous,s.unshift(E.fulfilled,E.rejected))});const u=[];this.interceptors.response.forEach(function(E){u.push(E.fulfilled,E.rejected)});let c,d=0,v;if(!l){const b=[vS.bind(this),void 0];for(b.unshift.apply(b,s),b.push.apply(b,u),v=b.length,c=Promise.resolve(r);d<v;)c=c.then(b[d++],b[d++]);return c}v=s.length;let g=r;for(d=0;d<v;){const b=s[d++],E=s[d++];try{g=b(g)}catch(y){E.call(this,y);break}}try{c=vS.call(this,g)}catch(b){return Promise.reject(b)}for(d=0,v=u.length;d<v;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=na(this.defaults,t);const r=uS(t.baseURL,t.url,t.allowAbsoluteUrls);return eS(r,t.params,t.paramsSerializer)}}ce.forEach(["delete","get","head","options"],function(t){oa.prototype[t]=function(r,n){return this.request(na(n||{},{method:t,url:r,data:(n||{}).data}))}}),ce.forEach(["post","put","patch"],function(t){function r(n){return function(a,i,s){return this.request(na(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}oa.prototype[t]=r(),oa.prototype[t+"Form"]=r(!0)});class kh{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(o=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(s=>{n.subscribe(s),a=s}).then(o);return i.cancel=function(){n.unsubscribe(a)},i},t(function(a,i,s){n.reason||(n.reason=new fi(a,i,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new kh(function(o){t=o}),cancel:t}}}function iM(e){return function(r){return e.apply(null,r)}}function sM(e){return ce.isObject(e)&&e.isAxiosError===!0}const Ch={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ch).forEach(([e,t])=>{Ch[t]=e});function _S(e){const t=new oa(e),r=M_(oa.prototype.request,t);return ce.extend(r,oa.prototype,t,{allOwnKeys:!0}),ce.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return _S(na(e,o))},r}const qt=_S(As);qt.Axios=oa,qt.CanceledError=fi,qt.CancelToken=kh,qt.isCancel=aS,qt.VERSION=bS,qt.toFormData=Vc,qt.AxiosError=Ye,qt.Cancel=qt.CanceledError,qt.all=function(t){return Promise.all(t)},qt.spread=iM,qt.isAxiosError=sM,qt.mergeConfig=na,qt.AxiosHeaders=Nr,qt.formToJSON=e=>nS(ce.isHTMLForm(e)?new FormData(e):e),qt.getAdapter=gS.getAdapter,qt.HttpStatusCode=Ch,qt.default=qt;const lM=oP(Re({__name:"Webcomponent.ce",props:{jsonSchema:{type:String},uiSchema:{type:String},presetData:{type:String},returnDataAsScopes:{type:[Boolean,String]}},emits:["submit"],setup(e,{emit:t}){const r=e,n=t,o=ne(()=>({jsonSchema:JSON.parse(r.jsonSchema),uiSchema:r.uiSchema?JSON.parse(r.uiSchema):void 0,presetData:r.presetData?JSON.parse(r.presetData):void 0,returnDataAsScopes:r.returnDataAsScopes?JSON.parse(r.returnDataAsScopes.toString()):!1})),a=[MD];async function i(s,l){l.action==="request"&&l.requestUrl?await qt.post(l.requestUrl):n("submit",s,l)}return(s,l)=>(ie(),xe(P(DD),{"json-schema":o.value.jsonSchema,"ui-schema":o.value.uiSchema,"preset-data":o.value.presetData,"return-data-as-scopes":o.value.returnDataAsScopes,"mapper-functions":a,onSubmitForm:i},{default:Ce(()=>[Ie(s.$slots,"default")]),_:3},8,["json-schema","ui-schema","preset-data","return-data-as-scopes"]))}}),{shadowRoot:!1});customElements.define("vue-json-form",lM);const Nh=(e,t="")=>{const r=`${t}___`;return`___BVN__ID__${e}__${t?r:""}`},aa=e=>Nh(e),SS=e=>Nh(`${e}__plugin`),$S=aa("checkboxGroup"),ES=aa("radioGroup"),OS=aa("collapse"),uM=SS("globalShowHideStorage"),cM=aa("navbar"),Ih=SS("defaults"),fM=aa("inputGroup"),dM=aa("buttonGroup"),AS=aa("formGroupPlugin");function pM(e,t=PS("injectSelf")){const{provides:r}=t;if(r&&e in r)return r[e]}function PS(e,t){const r=qn();if(!r)throw new Error(`[Bvn] ${e} must be called from inside a setup function`);return r}const hM=(e="")=>e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase(),xS=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);function TS(e={},t={},r){const n={};for(const o in e)n[o]=e[o];for(const o in t){const a=e[o],i=t[o];if(xS(a)&&xS(i)){n[o]=TS(a,i);continue}n[o]=i}return n}const mM=(e,t)=>{var r,n;return typeof((r=e.props)==null?void 0:r[t])<"u"||typeof((n=e.props)==null?void 0:n[hM(t)])<"u"};function yM(e={},t){const r=Jt(Ih,ot({})),n=PS("useDefaults");if(t=t??n.type.name??n.type.__name,!t)throw new Error("[Bvn] Could not determine component name");const o=ne(()=>{var l;return(l=r.value)==null?void 0:l[e._as??t]}),a=new Proxy(e,{get(l,u){var c,d,v,g;const b=Reflect.get(l,u);return u==="class"||u==="style"?[(c=o.value)==null?void 0:c[u],b].filter(E=>E!=null):typeof u=="string"&&!mM(n.vnode,u)?((d=o.value)==null?void 0:d[u])??((g=(v=r.value)==null?void 0:v.global)==null?void 0:g[u])??b:b}}),i=fl();yA(()=>{if(o.value){const l=Object.entries(o.value).filter(([u])=>u.startsWith(u[0].toUpperCase()));i.value=l.length?Object.fromEntries(l):void 0}else i.value=void 0});function s(){const l=pM(Ih,n);fr(Ih,ne(()=>i.value?TS((l==null?void 0:l.value)??{},i.value):l==null?void 0:l.value))}return{props:a,provideSubDefaults:s}}function gt(e,t){const{props:r,provideSubDefaults:n}=yM(e,t);return n(),r}const ar=(e,t)=>{const r=MO();return ne(()=>Ut(e)||Nh(r||"",t))};function Rh(e={}){const{inheritAttrs:t=!0}=e,r=fl(),n=Re({setup(a,{slots:i}){return()=>{r.value=i.default}}}),o=Re({inheritAttrs:t,props:e.props,setup(a,{attrs:i,slots:s}){return()=>{var l;if(!r.value&&Fe.process.env.NODE_ENV!=="production")throw new Error("[VueUse] Failed to find the definition of reusable template");const u=(l=r.value)==null?void 0:l.call(r,{...e.props==null?gM(i):a,$slots:s});return t&&(u==null?void 0:u.length)===1?u[0]:u}}});return Kx({define:n,reuse:o},[n,o])}function gM(e){const t={};for(const r in e)t[aT(r)]=e[r];return t}const jS=Zx?window:void 0;function kS(e){var t;const r=Ut(e);return(t=r==null?void 0:r.$el)!=null?t:r}function Gc(...e){const t=[],r=()=>{t.forEach(s=>s()),t.length=0},n=(s,l,u,c)=>(s.addEventListener(l,u,c),()=>s.removeEventListener(l,u,c)),o=ne(()=>{const s=Bd(Ut(e[0])).filter(l=>l!=null);return s.every(l=>typeof l!="string")?s:void 0}),a=uT(()=>{var s,l;return[(l=(s=o.value)==null?void 0:s.map(u=>kS(u)))!=null?l:[jS].filter(u=>u!=null),Bd(Ut(o.value?e[1]:e[0])),Bd(P(o.value?e[2]:e[1])),Ut(o.value?e[3]:e[2])]},([s,l,u,c])=>{if(r(),!(s!=null&&s.length)||!(l!=null&&l.length)||!(u!=null&&u.length))return;const d=Xx(c)?{...c}:c;t.push(...s.flatMap(v=>l.flatMap(g=>u.map(b=>n(v,g,b,d)))))},{flush:"post"}),i=()=>{a(),r()};return Jx(r),i}function vM(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function CS(...e){let t,r,n={};e.length===3?(t=e[0],r=e[1],n=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],n=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:o=jS,eventName:a="keydown",passive:i=!1,dedupe:s=!1}=n,l=vM(t);return Gc(o,a,u=>{u.repeat&&Ut(s)||l(u)&&r(u)},i)}function So(e,t={}){const{initialValue:r=!1,focusVisible:n=!1,preventScroll:o=!1}=t,a=fl(!1),i=ne(()=>kS(e)),s={passive:!0};Gc(i,"focus",u=>{var c,d;(!n||(d=(c=u.target).matches)!=null&&d.call(c,":focus-visible"))&&(a.value=!0)},s),Gc(i,"blur",()=>a.value=!1,s);const l=ne({get:()=>a.value,set(u){var c,d;!u&&a.value?(c=i.value)==null||c.blur():u&&!a.value&&((d=i.value)==null||d.focus({preventScroll:o}))}});return $r(i,()=>{l.value=r},{immediate:!0,flush:"post"}),{focused:l}}var bM=Object.defineProperty,wM=(e,t,r)=>t in e?bM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,to=(e,t,r)=>wM(e,typeof t!="symbol"?t+"":t,r);let NS=class LE{constructor(t,r={}){if(to(this,"cancelable",!0),to(this,"componentId",null),to(this,"_defaultPrevented",!1),to(this,"eventType",""),to(this,"nativeEvent",null),to(this,"_preventDefault"),to(this,"relatedTarget",null),to(this,"target",null),!t)throw new TypeError(`Failed to construct '${this.constructor.name}'. 1 argument required, ${arguments.length} given.`);Object.assign(this,LE.Defaults,r,{eventType:t}),this._preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)}}get defaultPrevented(){return this._defaultPrevented}set defaultPrevented(t){this._defaultPrevented=t}get preventDefault(){return this._preventDefault}set preventDefault(t){this._preventDefault=t}static get Defaults(){return{cancelable:!0,componentId:null,eventType:"",nativeEvent:null,relatedTarget:null,target:null}}},_M=class extends NS{constructor(t,r={}){super(t,r),to(this,"trigger",null),Object.assign(this,NS.Defaults,r,{eventType:t})}static get Defaults(){return{...super.Defaults,trigger:null}}};const IS={name:"fade",enterActiveClass:"",enterFromClass:"showing",enterToClass:"",leaveActiveClass:"",leaveFromClass:"",leaveToClass:"showing",css:!0},SM=(e,t,r,n,o,a={transitionProps:{},showFn:()=>{},hideFn:()=>{}})=>{var i;let s=!1;const l=!!e.value&&!t.initialAnimation||t.visible||!1,u=ot(l),c=ot(l),d=ot(l);let v=typeof e.value!="boolean";$r(e,()=>{if(v=typeof e.value!="boolean",s){s=!1;return}e.value?_():T()});const g=ot(l),b=ot(!1),E=ne(()=>t.noAnimation||t.noFade||g.value||!1);$a(()=>{var B;if(!t.show&&l){const J=y("show",{cancelable:!0});if(r("show",J),J.defaultPrevented){r("show-prevented",y("show-prevented"));return}g.value=!0,e.value||(s=!0,e.value=!0),c.value=!0,d.value=!0,fe.value=!0,D.value=!0,F.value=!0,u.value=!0,(B=a.showFn)==null||B.call(a)}else(t.show||e.value&&t.initialAnimation)&&_()}),$r(()=>t.visible,B=>{g.value=!0,_r(()=>{B&&(fe.value=!0),B?_():T()})}),$r(()=>t.show,B=>{B?_():T()}),Gc(n,"bv-toggle",()=>{e.value=!e.value});const y=(B,J={})=>new _M(B,{cancelable:!1,target:(n==null?void 0:n.value)||null,relatedTarget:null,trigger:null,...J,componentId:o==null?void 0:o.value});let m,p;const _=()=>{if(u.value&&!p)return;const B=y("show",{cancelable:!0});if(r("show",B),B.defaultPrevented){r("show-prevented",y("show-prevented")),fe.value&&(fe.value=!1),e.value&&!v&&(s=!0,_r(()=>{e.value=!1}));return}p&&(clearTimeout(p),p=void 0),c.value=!0,d.value=!0,requestAnimationFrame(()=>{var J;m=setTimeout(()=>{var de;m=void 0,u.value=!0,(de=a.showFn)==null||de.call(a),e.value||(s=!0,_r(()=>{e.value=!0}))},g.value?0:typeof t.delay=="number"?t.delay:((J=t.delay)==null?void 0:J.show)||0)})},T=B=>{var J;if(!u.value&&!m)return;const de=y("hide",{cancelable:!0,trigger:B}),se=y(B||"ignore",{cancelable:!0,trigger:B});if(B==="backdrop"&&t.noCloseOnBackdrop||B==="esc"&&t.noCloseOnEsc){r("hide-prevented",y("hide-prevented"));return}if(B&&r(B,se),r("hide",de),de.defaultPrevented||se.defaultPrevented){r("hide-prevented",y("hide-prevented")),e.value||_r(()=>{s=!0,e.value=!0});return}m&&(clearTimeout(m),m=void 0,b.value||(c.value=!1),d.value=!1),p=setTimeout(()=>{var Se;p=void 0,W.value=!0,u.value=!1,(Se=a.hideFn)==null||Se.call(a),e.value&&(s=!0,e.value=v?0:!1)},g.value?0:typeof t.delay=="number"?t.delay:((J=t.delay)==null?void 0:J.hide)||0)},O=Pv(B=>T(B),500),j=Pv(()=>_(),500),C=()=>{const B=y("toggle",{cancelable:!0});if(r("toggle",B),B.defaultPrevented){r("toggle-prevented",y("toggle-prevented"));return}u.value?T():_()},Z=(i=Jt(uM,void 0))==null?void 0:i({id:o.value,toggle:C,show:_,hide:T,value:Wr(u)});wl(()=>{Z==null||Z.unregister()});const V=ot(!1),U=()=>{t.lazy===!0&&(V.value=!0)},W=ot(!1),ee=ot(l),fe=ot(l),ve=B=>{var J,de,se,Se;(de=(J=a.transitionProps)==null?void 0:J.onBeforeEnter)==null||de.call(J,B),(Se=(se=t.transitionProps)==null?void 0:se.onBeforeEnter)==null||Se.call(se,B),ee.value=!0},Ne=B=>{var J,de,se,Se;requestAnimationFrame(()=>{requestAnimationFrame(()=>{fe.value=!0})}),(de=(J=a.transitionProps)==null?void 0:J.onEnter)==null||de.call(J,B),(Se=(se=t.transitionProps)==null?void 0:se.onEnter)==null||Se.call(se,B)},Te=B=>{var J,de,se,Se;r("shown",y("shown")),U(),(de=(J=a.transitionProps)==null?void 0:J.onAfterEnter)==null||de.call(J,B),(Se=(se=t.transitionProps)==null?void 0:se.onAfterEnter)==null||Se.call(se,B),g.value&&requestAnimationFrame(()=>{g.value=!1}),b.value&&(b.value=!1)},Oe=B=>{var J,de,se,Se;W.value||(W.value=!0),(de=(J=a.transitionProps)==null?void 0:J.onBeforeLeave)==null||de.call(J,B),(Se=(se=t.transitionProps)==null?void 0:se.onBeforeLeave)==null||Se.call(se,B)},be=B=>{var J,de,se,Se;fe.value=!1,(de=(J=a.transitionProps)==null?void 0:J.onLeave)==null||de.call(J,B),(Se=(se=t.transitionProps)==null?void 0:se.onLeave)==null||Se.call(se,B)},Ee=B=>{var J,de,se,Se;r("hidden",y("hidden")),(de=(J=a.transitionProps)==null?void 0:J.onAfterLeave)==null||de.call(J,B),(Se=(se=t.transitionProps)==null?void 0:se.onAfterLeave)==null||Se.call(se,B),W.value=!1,ee.value=!1,g.value&&requestAnimationFrame(()=>{g.value=!1}),requestAnimationFrame(()=>{b.value||(c.value=!1)})},ue=ne(()=>b.value===!0||ee.value===!0||t.lazy===!1||t.lazy===!0&&V.value===!0&&t.unmountLazy===!1),q=ot(!1);$r(fe,B=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{setTimeout(()=>{q.value=B},32)})})})})});const D=ot(!1),F=ot(!1),k={...a.transitionProps,onBeforeEnter:ve,onEnter:Ne,onAfterEnter:Te,onBeforeLeave:Oe,onLeave:be,onAfterLeave:Ee};return{showRef:u,renderRef:c,renderBackdropRef:d,isVisible:fe,isActive:ee,trapActive:q,show:_,hide:T,toggle:C,throttleHide:O,throttleShow:j,buildTriggerableEvent:y,computedNoAnimation:E,localNoAnimation:g,localTemporaryHide:b,isLeaving:W,transitionProps:{...IS,...t.transitionProps,...k},lazyLoadCompleted:V,markLazyLoadCompleted:U,contentShowing:ue,backdropReady:F,backdropVisible:D,backdropTransitionProps:{...IS,onBeforeEnter:()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{D.value=!0})}),F.value=!1},onAfterEnter:()=>{F.value=!0},onBeforeLeave:()=>{D.value=!1},onAfterLeave:()=>{F.value=!1,requestAnimationFrame(()=>{d.value=!1})}}}},$M=Re({inheritAttrs:!1,__name:"BCollapse",props:Tr({horizontal:{type:Boolean,default:!1},id:{default:void 0},isNav:{type:Boolean,default:!1},tag:{default:"div"},initialAnimation:{type:Boolean,default:!1},noAnimation:{type:Boolean,default:!1},noFade:{type:Boolean},lazy:{type:Boolean,default:!1},unmountLazy:{type:Boolean,default:!1},show:{type:Boolean,default:!1},transProps:{},visible:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:Tr(["hide","hide-prevented","hidden","show","show-prevented","shown","toggle","toggle-prevented"],["update:modelValue"]),setup(e,{expose:t,emit:r}){const n=gt(e,"BCollapse"),o=r,a=Kr(e,"modelValue"),i=ar(()=>n.id,"collapse"),s=Jr("_element");let l=!1;const u=V=>{l=!0,requestAnimationFrame(()=>{n.horizontal?V.style.width=`${V.scrollWidth}px`:V.style.height=`${V.scrollHeight}px`})},c=V=>{l||(n.horizontal?V.style.width=`${V.scrollWidth}px`:V.style.height=`${V.scrollHeight}px`,V.offsetHeight)},d=V=>{requestAnimationFrame(()=>{n.horizontal?V.style.width="":V.style.height=""})},v=V=>{V.style.height="",V.style.width="",l=!1},g=V=>{V.style.height="",V.style.width="",l=!1},{showRef:b,renderRef:E,hide:y,show:m,toggle:p,isActive:_,computedNoAnimation:T,contentShowing:O,transitionProps:j}=SM(a,n,o,s,i,{transitionProps:{onBeforeLeave:c,onEnter:u,onLeave:d,onAfterEnter:v,onAfterLeave:g,enterToClass:"",leaveToClass:"",enterFromClass:"",leaveFromClass:"",enterActiveClass:"",leaveActiveClass:""}}),C=ne(()=>({show:_.value,"navbar-collapse":n.isNav,"collapse-horizontal":n.horizontal})),Z=ne(()=>({toggle:p,show:m,hide:y,id:i.value,visible:b.value}));return t({hide:y,isNav:n.isNav,show:m,toggle:p,visible:Wr(b)}),fr(OS,{id:i,hide:y,show:m,toggle:p,visible:Wr(b),isNav:at(()=>n.isNav)}),(V,U)=>(ie(),Be(ht,null,[Ie(V.$slots,"header",ga(Pl(Z.value))),P(E)||P(O)?(ie(),xe(VA,xt({key:0},P(j),{"enter-active-class":P(T)?"":"collapsing","leave-active-class":P(T)?"":"collapsing",appear:a.value||P(n).visible}),{default:Ce(()=>[yl((ie(),xe(_t(P(n).tag),xt({id:P(i),ref:"_element",class:["collapse",C.value],"is-nav":P(n).isNav},V.$attrs),{default:Ce(()=>[P(O)?Ie(V.$slots,"default",ga(xt({key:0},Z.value))):ut("",!0)]),_:3},16,["id","class","is-nav"])),[[qA,P(b)]])]),_:3},16,["enter-active-class","leave-active-class","appear"])):ut("",!0),Ie(V.$slots,"footer",ga(Pl(Z.value)))],64))}}),EM=Object.freeze(Object.defineProperty({__proto__:null,default:Re({__name:"showOnWrapper",props:{visible:{type:Boolean}},setup(e){return(t,r)=>(ie(),xe(P($M),{class:"vjf_showOnWrapper",visible:t.visible},{default:Ce(()=>[Ie(t.$slots,"default")]),_:3},8,["visible"]))}})},Symbol.toStringTag,{value:"Module"})),OM=(e=[])=>{const{activeElement:t}=document;return t&&!(e!=null&&e.some(r=>r===t))?t:null},AM=(e,t={})=>{const r=n=>n===OM();try{e.focus(t)}catch(n){console.error(n)}return r(e)},$o=e=>((e==null?void 0:e())??[]).length===0,RS=e=>{if(e.getAttribute("display")==="none")return!1;const t=e.getBoundingClientRect();return!!(t&&t.height>0&&t.width>0)},Eo=e=>ne(()=>{let t=Ut(e);return t={variant:t.variant??null,bgVariant:t.bgVariant??null,textVariant:t.textVariant??null,borderVariant:t.borderVariant??null},{[`text-bg-${t.variant}`]:t.variant!==null,[`text-${t.textVariant}`]:t.textVariant!==null,[`bg-${t.bgVariant}`]:t.bgVariant!==null,[`border-${t.borderVariant}`]:t.borderVariant!==null}}),PM=(e,t)=>Object.keys(e).filter(r=>!t.map(n=>n.toString()).includes(r)).reduce((r,n)=>({...r,[n]:e[n]}),{}),xM=(e,t)=>[...t].reduce((r,n)=>(r[n]=e[n],r),{}),xs=(e,t,r)=>{const n=t.split(/[.[\]]/g);let o=e;for(const a of n){if(o==null)return r;a.trim()!==""&&(o=o[a])}return o===void 0?r:o},TM=/[-/\\^$*+?.()|[\]{}]/g,jM=/[\s\uFEFF\xA0]+/g,kM=e=>{const t=e.trim();return t.charAt(0).toUpperCase()+t.slice(1)},CM=e=>e.replace(TM,"\\$&"),NM=e=>CM(e).replace(jM,"\\s"),IM=e=>e.replace(/-./g,t=>t.charAt(1).toUpperCase()).replace(/\b\w/g,t=>t.toUpperCase()).replace(/\s+/g,""),RM={key:0,class:"visually-hidden"},BS=Re({__name:"BSpinner",props:{label:{default:void 0},role:{default:"status"},small:{type:Boolean,default:!1},tag:{default:"span"},type:{default:"border"},variant:{default:null}},setup(e){const t=gt(e,"BSpinner"),r=zn(),n=Eo(ne(()=>({textVariant:t.variant}))),o=ne(()=>[`spinner-${t.type}`,n.value,{[`spinner-${t.type}-sm`]:t.small}]),a=ne(()=>!$o(r.label));return(i,s)=>(ie(),xe(_t(P(t).tag),{class:nt(o.value),role:P(t).label||a.value?P(t).role:null,"aria-hidden":P(t).label||a.value?null:!0},{default:Ce(()=>[P(t).label||a.value?(ie(),Be("span",RM,[Ie(i.$slots,"label",{},()=>[it(Ve(P(t).label),1)])])):ut("",!0)]),_:3},8,["class","role","aria-hidden"]))}}),BM=e=>!!(e.href||e.to),DM=(e,t)=>{const r=Wr(at(t)),n=Wr(at(e)),o=ne(()=>BM(n.value)),a=ne(()=>o.value?xM(n.value,r.value??["active","activeClass","append","href","rel","replace","routerComponentName","target","to","variant","opacity","opacityHover","underlineVariant","underlineOffset","underlineOffsetHover","underlineOpacity","underlineOpacityHover"]):{});return{computedLink:o,computedLinkProps:a}},FM=e=>{const t=qn(),r=t==null?void 0:t.appContext.app.config.globalProperties.$router,n=t==null?void 0:t.appContext.app.config.globalProperties.$route,o=_t("RouterLink"),a=typeof o=="string"?null:o.useLink,i=at(e),s=at(()=>i.value.to||""),l=at(()=>i.value.replace),u=ne(()=>IM(i.value.routerComponentName)),c=ne(()=>(t==null?void 0:t.appContext.app.component(u.value))===void 0||i.value.disabled||!i.value.to?"a":u.value),d=ne(()=>c.value==="RouterLink"),v=ne(()=>d.value&&typeof(t==null?void 0:t.appContext.app.$nuxt)<"u"),g=ne(()=>c.value!=="a"&&!d.value&&!v.value),b=ne(()=>d.value||v.value),E=ne(()=>({to:s.value,replace:l.value})),y=a==null?void 0:a({to:s,replace:l}),m=ne(()=>b.value?y:null),p=ne(()=>{var _;if((_=m.value)!=null&&_.href.value)return m.value.href.value;const T="#";if(i.value.href)return i.value.href;if(typeof i.value.to=="string")return i.value.to||T;const{to:O}=i.value;if(O!==void 0&&"path"in O){const j=O.path||"",C=O.query?`?${Object.keys(O.query).map(V=>{var U;return`${V}=${(U=O.query)==null?void 0:U[V]}`}).join("=")}`:"",Z=!O.hash||O.hash.charAt(0)==="#"?O.hash||"":`#${O.hash}`;return`${j}${C}${Z}`||T}return T});return{isNonStandardTag:g,tag:c,isRouterLink:d,isNuxtLink:v,computedHref:p,routerName:u,router:r,route:n,link:m,linkProps:E}},DS=e=>ne(()=>{const t=Ut(e);return{[`link-${t.variant}`]:t.variant!==null,[`link-opacity-${t.opacity}`]:t.opacity!==void 0,[`link-opacity-${t.opacityHover}-hover`]:t.opacityHover!==void 0,[`link-underline-${t.underlineVariant}`]:t.underlineVariant!==null,[`link-offset-${t.underlineOffset}`]:t.underlineOffset!==void 0,[`link-offset-${t.underlineOffsetHover}-hover`]:t.underlineOffsetHover!==void 0,"link-underline":t.underlineVariant===null&&(t.underlineOpacity!==void 0||t.underlineOpacityHover!==void 0),[`link-underline-opacity-${t.underlineOpacity}`]:t.underlineOpacity!==void 0,[`link-underline-opacity-${t.underlineOpacityHover}-hover`]:t.underlineOpacityHover!==void 0,"icon-link":t.icon===!0}}),FS="active",MM=Re({__name:"BLink",props:{active:{type:Boolean,default:void 0},activeClass:{default:"router-link-active"},disabled:{type:Boolean,default:!1},exactActiveClass:{default:"router-link-exact-active"},href:{default:void 0},icon:{type:Boolean,default:!1},noRel:{type:Boolean,default:!1},opacity:{default:void 0},opacityHover:{default:void 0},prefetch:{type:Boolean,default:void 0},prefetchOn:{default:void 0},noPrefetch:{type:Boolean,default:void 0},prefetchedClass:{default:void 0},rel:{default:void 0},replace:{type:Boolean,default:!1},routerComponentName:{default:"router-link"},routerTag:{default:"a"},stretched:{type:Boolean,default:!1},target:{default:void 0},to:{default:void 0},underlineOffset:{default:void 0},underlineOffsetHover:{default:void 0},underlineOpacity:{default:void 0},underlineOpacityHover:{default:void 0},underlineVariant:{default:null},variant:{default:null}},emits:["click"],setup(e,{emit:t}){const r=gt(e,"BLink"),n=t,o=$y(),{computedHref:a,tag:i,link:s,isNuxtLink:l,isRouterLink:u,linkProps:c,isNonStandardTag:d}=FM(ne(()=>({routerComponentName:r.routerComponentName,disabled:r.disabled,to:r.to,replace:r.replace,href:r.href}))),v=Jt(OS,null),g=Jt(cM,null),b=DS(r),E=ne(()=>{var j,C;return[b.value,o.class,y.value,{[FS]:r.active,[r.activeClass]:((j=s.value)==null?void 0:j.isActive.value)||!1,[r.exactActiveClass]:((C=s.value)==null?void 0:C.isExactActive.value)||!1,"stretched-link":r.stretched===!0}]}),y=ne(()=>({[FS]:r.active,disabled:r.disabled})),m=j=>{var C,Z,V;if(r.disabled){j.preventDefault(),j.stopImmediatePropagation();return}(((C=v==null?void 0:v.isNav)==null?void 0:C.value)===!0&&g===null||g!==null&&((Z=g.autoClose)==null?void 0:Z.value)===!0)&&((V=v==null?void 0:v.hide)==null||V.call(v)),n("click",j)},p=ne(()=>r.target==="_blank"?!r.rel&&r.noRel?"noopener":r.rel:void 0),_=ne(()=>r.disabled?"-1":typeof o.tabindex>"u"?null:o.tabindex),T=ne(()=>({prefetch:r.prefetch,noPrefetch:r.noPrefetch,prefetchOn:r.prefetchOn,prefetchedClass:r.prefetchedClass,...c.value})),O=ne(()=>({...u.value?c.value:void 0,...l.value||d.value?T.value:void 0}));return(j,C)=>(ie(),xe(_t(P(i)),xt({class:E.value,target:P(r).target,href:P(a),rel:p.value,tabindex:_.value,"aria-disabled":P(r).disabled?!0:null},O.value,{onClick:C[0]||(C[0]=Z=>{var V;m(Z),(V=P(s))==null||V.navigate(Z)})}),{default:Ce(()=>[Ie(j.$slots,"default")]),_:3},16,["class","target","href","rel","tabindex","aria-disabled"]))}}),Bh=Re({__name:"BButton",props:Tr({loading:{type:Boolean,default:!1},loadingFill:{type:Boolean,default:!1},loadingText:{default:"Loading..."},pill:{type:Boolean,default:!1},size:{default:"md"},squared:{type:Boolean,default:!1},tag:{default:"button"},type:{default:"button"},variant:{default:"secondary"},active:{type:Boolean,default:!1},activeClass:{default:void 0},disabled:{type:Boolean,default:void 0},exactActiveClass:{default:void 0},href:{default:void 0},icon:{type:Boolean,default:!1},noRel:{type:Boolean},opacity:{default:void 0},opacityHover:{default:void 0},prefetch:{type:Boolean},prefetchOn:{},noPrefetch:{type:Boolean},prefetchedClass:{},rel:{default:void 0},replace:{type:Boolean,default:void 0},routerComponentName:{default:void 0},routerTag:{default:void 0},stretched:{type:Boolean,default:!1},target:{default:void 0},to:{default:void 0},underlineOffset:{default:void 0},underlineOffsetHover:{default:void 0},underlineOpacity:{default:void 0},underlineOpacityHover:{default:void 0},underlineVariant:{default:null},bgVariant:{},textVariant:{}},{pressed:{type:Boolean,default:void 0},pressedModifiers:{}}),emits:Tr(["click"],["update:pressed"]),setup(e,{emit:t}){const r=gt(e,"BButton"),n=t,o=Jr("_element"),a=Kr(e,"pressed"),{computedLink:i,computedLinkProps:s}=DM(r,["active-class","exact-active-class","replace","routerComponentName","routerTag"]),l=ne(()=>typeof a.value=="boolean"),u=ne(()=>r.tag==="button"&&r.href===void 0&&r.to===void 0),c=ne(()=>r.to!==void 0),d=ne(()=>r.href!==void 0?!1:!u.value),v=ne(()=>c.value?s.value:[]),g=ne(()=>r.href==="#"&&r.disabled?!0:d.value?r.disabled:null),b=ne(()=>{var O;return((O=r.variant)==null?void 0:O.startsWith("link"))||!1}),E=ne(()=>{var O;return((O=r.variant)==null?void 0:O.startsWith("link-"))||!1}),y=DS(ne(()=>{var O;return{...b.value?{icon:r.icon,opacity:r.opacity,opacityHover:r.opacityHover,underlineOffset:r.underlineOffset,underlineOffsetHover:r.underlineOffsetHover,underlineOpacity:r.underlineOpacity,underlineOpacityHover:r.underlineOpacityHover,underlineVariant:r.underlineVariant,variant:E.value===!0?(O=r.variant)==null?void 0:O.slice(5):null}:void 0}})),m=Eo(r),p=ne(()=>[b.value===!0&&i.value===!1?y.value:m.value,[`btn-${r.size}`],{[`btn-${r.variant}`]:r.variant!==null&&E.value===!1,active:r.active||a.value,"rounded-pill":r.pill,"rounded-0":r.squared,disabled:r.disabled}]),_=ne(()=>c.value?MM:r.href?"a":r.tag),T=O=>{if(r.disabled){O.preventDefault(),O.stopPropagation();return}n("click",O),l.value&&(a.value=!a.value)};return CS([" ","enter"],O=>{var j;r.href==="#"&&(O.preventDefault(),(j=o.value)==null||j.click())},{target:o}),(O,j)=>(ie(),xe(_t(_.value),xt({ref:"_element",class:"btn"},v.value,{class:p.value,"aria-disabled":g.value,"aria-pressed":l.value?a.value:null,autocomplete:l.value?"off":null,disabled:u.value?P(r).disabled:null,href:P(r).href,rel:P(i)?P(r).rel:null,role:d.value||P(i)?"button":null,target:P(i)?P(r).target:null,type:u.value?P(r).type:null,to:u.value?null:P(r).to,onClick:T}),{default:Ce(()=>[P(r).loading?Ie(O.$slots,"loading",{key:0},()=>[P(r).loadingFill?ut("",!0):(ie(),Be(ht,{key:0},[it(Ve(P(r).loadingText),1)],64)),Ie(O.$slots,"loading-spinner",{},()=>[Ze(BS,{small:P(r).size!=="lg",label:P(r).loadingFill?P(r).loadingText:void 0},null,8,["small","label"])])]):Ie(O.$slots,"default",{key:1})]),_:3},16,["class","aria-disabled","aria-pressed","autocomplete","disabled","href","rel","role","target","type","to"]))}});/**!
|
98
|
+
* Sortable 1.14.0
|
99
|
+
* @author RubaXa <trash@rubaxa.org>
|
100
|
+
* @author owenm <owen23355@gmail.com>
|
101
|
+
* @license MIT
|
102
|
+
*/function MS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Nn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?MS(Object(r),!0).forEach(function(n){VM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):MS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jc(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jc=function(t){return typeof t}:Jc=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jc(e)}function VM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ro(){return ro=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ro.apply(this,arguments)}function UM(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function LM(e,t){if(e==null)return{};var r=UM(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var zM="1.14.0";function no(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var oo=no(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ts=no(/Edge/i),VS=no(/firefox/i),js=no(/safari/i)&&!no(/chrome/i)&&!no(/android/i),US=no(/iP(ad|od|hone)/i),qM=no(/chrome/i)&&no(/android/i),LS={capture:!1,passive:!1};function $t(e,t,r){e.addEventListener(t,r,!oo&&LS)}function bt(e,t,r){e.removeEventListener(t,r,!oo&&LS)}function Kc(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function WM(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function In(e,t,r,n){if(e){r=r||document;do{if(t!=null&&(t[0]===">"?e.parentNode===r&&Kc(e,t):Kc(e,t))||n&&e===r)return e;if(e===r)break}while(e=WM(e))}return null}var zS=/\s+/g;function Lr(e,t,r){if(e&&t)if(e.classList)e.classList[r?"add":"remove"](t);else{var n=(" "+e.className+" ").replace(zS," ").replace(" "+t+" "," ");e.className=(n+(r?" "+t:"")).replace(zS," ")}}function Le(e,t,r){var n=e&&e.style;if(n){if(r===void 0)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(r=e.currentStyle),t===void 0?r:r[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=r+(typeof r=="string"?"":"px")}}function di(e,t){var r="";if(typeof e=="string")r=e;else do{var n=Le(e,"transform");n&&n!=="none"&&(r=n+" "+r)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(r)}function qS(e,t,r){if(e){var n=e.getElementsByTagName(t),o=0,a=n.length;if(r)for(;o<a;o++)r(n[o],o);return n}return[]}function Rn(){var e=document.scrollingElement;return e||document.documentElement}function Yt(e,t,r,n,o){if(!(!e.getBoundingClientRect&&e!==window)){var a,i,s,l,u,c,d;if(e!==window&&e.parentNode&&e!==Rn()?(a=e.getBoundingClientRect(),i=a.top,s=a.left,l=a.bottom,u=a.right,c=a.height,d=a.width):(i=0,s=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(t||r)&&e!==window&&(o=o||e.parentNode,!oo))do if(o&&o.getBoundingClientRect&&(Le(o,"transform")!=="none"||r&&Le(o,"position")!=="static")){var v=o.getBoundingClientRect();i-=v.top+parseInt(Le(o,"border-top-width")),s-=v.left+parseInt(Le(o,"border-left-width")),l=i+a.height,u=s+a.width;break}while(o=o.parentNode);if(n&&e!==window){var g=di(o||e),b=g&&g.a,E=g&&g.d;g&&(i/=E,s/=b,d/=b,c/=E,l=i+c,u=s+d)}return{top:i,left:s,bottom:l,right:u,width:d,height:c}}}function WS(e,t,r){for(var n=Oo(e,!0),o=Yt(e)[t];n;){var a=Yt(n)[r],i=void 0;if(i=o>=a,!i)return n;if(n===Rn())break;n=Oo(n,!1)}return!1}function pi(e,t,r,n){for(var o=0,a=0,i=e.children;a<i.length;){if(i[a].style.display!=="none"&&i[a]!==ze.ghost&&(n||i[a]!==ze.dragged)&&In(i[a],r.draggable,e,!1)){if(o===t)return i[a];o++}a++}return null}function Dh(e,t){for(var r=e.lastElementChild;r&&(r===ze.ghost||Le(r,"display")==="none"||t&&!Kc(r,t));)r=r.previousElementSibling;return r||null}function Qr(e,t){var r=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==ze.clone&&(!t||Kc(e,t))&&r++;return r}function HS(e){var t=0,r=0,n=Rn();if(e)do{var o=di(e),a=o.a,i=o.d;t+=e.scrollLeft*a,r+=e.scrollTop*i}while(e!==n&&(e=e.parentNode));return[t,r]}function HM(e,t){for(var r in e)if(e.hasOwnProperty(r)){for(var n in t)if(t.hasOwnProperty(n)&&t[n]===e[r][n])return Number(r)}return-1}function Oo(e,t){if(!e||!e.getBoundingClientRect)return Rn();var r=e,n=!1;do if(r.clientWidth<r.scrollWidth||r.clientHeight<r.scrollHeight){var o=Le(r);if(r.clientWidth<r.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||r.clientHeight<r.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!r.getBoundingClientRect||r===document.body)return Rn();if(n||t)return r;n=!0}}while(r=r.parentNode);return Rn()}function GM(e,t){if(e&&t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function Fh(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var ks;function GS(e,t){return function(){if(!ks){var r=arguments,n=this;r.length===1?e.call(n,r[0]):e.apply(n,r),ks=setTimeout(function(){ks=void 0},t)}}}function JM(){clearTimeout(ks),ks=void 0}function JS(e,t,r){e.scrollLeft+=t,e.scrollTop+=r}function KS(e){var t=window.Polymer,r=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):r?r(e).clone(!0)[0]:e.cloneNode(!0)}var zr="Sortable"+new Date().getTime();function KM(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(n){if(!(Le(n,"display")==="none"||n===ze.ghost)){e.push({target:n,rect:Yt(n)});var o=Nn({},e[e.length-1].rect);if(n.thisAnimationDuration){var a=di(n,!0);a&&(o.top-=a.f,o.left-=a.e)}n.fromRect=o}})}},addAnimationState:function(r){e.push(r)},removeAnimationState:function(r){e.splice(HM(e,{target:r}),1)},animateAll:function(r){var n=this;if(!this.options.animation){clearTimeout(t),typeof r=="function"&&r();return}var o=!1,a=0;e.forEach(function(i){var s=0,l=i.target,u=l.fromRect,c=Yt(l),d=l.prevFromRect,v=l.prevToRect,g=i.rect,b=di(l,!0);b&&(c.top-=b.f,c.left-=b.e),l.toRect=c,l.thisAnimationDuration&&Fh(d,c)&&!Fh(u,c)&&(g.top-c.top)/(g.left-c.left)===(u.top-c.top)/(u.left-c.left)&&(s=YM(g,d,v,n.options)),Fh(c,u)||(l.prevFromRect=u,l.prevToRect=c,s||(s=n.options.animation),n.animate(l,g,c,s)),s&&(o=!0,a=Math.max(a,s),clearTimeout(l.animationResetTimer),l.animationResetTimer=setTimeout(function(){l.animationTime=0,l.prevFromRect=null,l.fromRect=null,l.prevToRect=null,l.thisAnimationDuration=null},s),l.thisAnimationDuration=s)}),clearTimeout(t),o?t=setTimeout(function(){typeof r=="function"&&r()},a):typeof r=="function"&&r(),e=[]},animate:function(r,n,o,a){if(a){Le(r,"transition",""),Le(r,"transform","");var i=di(this.el),s=i&&i.a,l=i&&i.d,u=(n.left-o.left)/(s||1),c=(n.top-o.top)/(l||1);r.animatingX=!!u,r.animatingY=!!c,Le(r,"transform","translate3d("+u+"px,"+c+"px,0)"),this.forRepaintDummy=ZM(r),Le(r,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),Le(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){Le(r,"transition",""),Le(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},a)}}}}function ZM(e){return e.offsetWidth}function YM(e,t,r,n){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-r.top,2)+Math.pow(t.left-r.left,2))*n.animation}var hi=[],Mh={initializeByDefault:!0},Cs={mount:function(e){for(var t in Mh)Mh.hasOwnProperty(t)&&!(t in e)&&(e[t]=Mh[t]);hi.forEach(function(r){if(r.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),hi.push(e)},pluginEvent:function(e,t,r){var n=this;this.eventCanceled=!1,r.cancel=function(){n.eventCanceled=!0};var o=e+"Global";hi.forEach(function(a){t[a.pluginName]&&(t[a.pluginName][o]&&t[a.pluginName][o](Nn({sortable:t},r)),t.options[a.pluginName]&&t[a.pluginName][e]&&t[a.pluginName][e](Nn({sortable:t},r)))})},initializePlugins:function(e,t,r,n){hi.forEach(function(i){var s=i.pluginName;if(!(!e.options[s]&&!i.initializeByDefault)){var l=new i(e,t,e.options);l.sortable=e,l.options=e.options,e[s]=l,ro(r,l.defaults)}});for(var o in e.options)if(e.options.hasOwnProperty(o)){var a=this.modifyOption(e,o,e.options[o]);typeof a<"u"&&(e.options[o]=a)}},getEventProperties:function(e,t){var r={};return hi.forEach(function(n){typeof n.eventProperties=="function"&&ro(r,n.eventProperties.call(t[n.pluginName],e))}),r},modifyOption:function(e,t,r){var n;return hi.forEach(function(o){e[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[t]=="function"&&(n=o.optionListeners[t].call(e[o.pluginName],r))}),n}};function XM(e){var t=e.sortable,r=e.rootEl,n=e.name,o=e.targetEl,a=e.cloneEl,i=e.toEl,s=e.fromEl,l=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,d=e.newDraggableIndex,v=e.originalEvent,g=e.putSortable,b=e.extraEventProperties;if(t=t||r&&r[zr],!!t){var E,y=t.options,m="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!oo&&!Ts?E=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(E=document.createEvent("Event"),E.initEvent(n,!0,!0)),E.to=i||r,E.from=s||r,E.item=o||r,E.clone=a,E.oldIndex=l,E.newIndex=u,E.oldDraggableIndex=c,E.newDraggableIndex=d,E.originalEvent=v,E.pullMode=g?g.lastPutMode:void 0;var p=Nn(Nn({},b),Cs.getEventProperties(n,t));for(var _ in p)E[_]=p[_];r&&r.dispatchEvent(E),y[m]&&y[m].call(t,E)}}var QM=["evt"],Ir=function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.evt,o=LM(r,QM);Cs.pluginEvent.bind(ze)(e,t,Nn({dragEl:ke,parentEl:Mt,ghostEl:Xe,rootEl:It,nextEl:ia,lastDownEl:Zc,cloneEl:Vt,cloneHidden:Ao,dragStarted:Is,putSortable:ir,activeSortable:ze.active,originalEvent:n,oldIndex:mi,oldDraggableIndex:Ns,newIndex:qr,newDraggableIndex:Po,hideGhostForTarget:r$,unhideGhostForTarget:n$,cloneNowHidden:function(){Ao=!0},cloneNowShown:function(){Ao=!1},dispatchSortableEvent:function(a){Pr({sortable:t,name:a,originalEvent:n})}},o))};function Pr(e){XM(Nn({putSortable:ir,cloneEl:Vt,targetEl:ke,rootEl:It,oldIndex:mi,oldDraggableIndex:Ns,newIndex:qr,newDraggableIndex:Po},e))}var ke,Mt,Xe,It,ia,Zc,Vt,Ao,mi,qr,Ns,Po,Yc,ir,yi=!1,Xc=!1,Qc=[],sa,hn,Vh,Uh,ZS,YS,Is,gi,Rs,Bs=!1,ef=!1,tf,yr,Lh=[],zh=!1,rf=[],nf=typeof document<"u",of=US,XS=Ts||oo?"cssFloat":"float",eV=nf&&!qM&&!US&&"draggable"in document.createElement("div"),QS=function(){if(nf){if(oo)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),e$=function(e,t){var r=Le(e),n=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),o=pi(e,0,t),a=pi(e,1,t),i=o&&Le(o),s=a&&Le(a),l=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+Yt(o).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Yt(a).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&i.float&&i.float!=="none"){var c=i.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===c)?"vertical":"horizontal"}return o&&(i.display==="block"||i.display==="flex"||i.display==="table"||i.display==="grid"||l>=n&&r[XS]==="none"||a&&r[XS]==="none"&&l+u>n)?"vertical":"horizontal"},tV=function(e,t,r){var n=r?e.left:e.top,o=r?e.right:e.bottom,a=r?e.width:e.height,i=r?t.left:t.top,s=r?t.right:t.bottom,l=r?t.width:t.height;return n===i||o===s||n+a/2===i+l/2},rV=function(e,t){var r;return Qc.some(function(n){var o=n[zr].options.emptyInsertThreshold;if(!(!o||Dh(n))){var a=Yt(n),i=e>=a.left-o&&e<=a.right+o,s=t>=a.top-o&&t<=a.bottom+o;if(i&&s)return r=n}}),r},t$=function(e){function t(o,a){return function(i,s,l,u){var c=i.options.group.name&&s.options.group.name&&i.options.group.name===s.options.group.name;if(o==null&&(a||c))return!0;if(o==null||o===!1)return!1;if(a&&o==="clone")return o;if(typeof o=="function")return t(o(i,s,l,u),a)(i,s,l,u);var d=(a?i:s).options.group.name;return o===!0||typeof o=="string"&&o===d||o.join&&o.indexOf(d)>-1}}var r={},n=e.group;(!n||Jc(n)!="object")&&(n={name:n}),r.name=n.name,r.checkPull=t(n.pull,!0),r.checkPut=t(n.put),r.revertClone=n.revertClone,e.group=r},r$=function(){!QS&&Xe&&Le(Xe,"display","none")},n$=function(){!QS&&Xe&&Le(Xe,"display","")};nf&&document.addEventListener("click",function(e){if(Xc)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Xc=!1,!1},!0);var la=function(e){if(ke){e=e.touches?e.touches[0]:e;var t=rV(e.clientX,e.clientY);if(t){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);r.target=r.rootEl=t,r.preventDefault=void 0,r.stopPropagation=void 0,t[zr]._onDragOver(r)}}},nV=function(e){ke&&ke.parentNode[zr]._isOutsideThisEl(e.target)};function ze(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=ro({},t),e[zr]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return e$(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,i){a.setData("Text",i.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:ze.supportPointer!==!1&&"PointerEvent"in window&&!js,emptyInsertThreshold:5};Cs.initializePlugins(this,e,r);for(var n in r)!(n in t)&&(t[n]=r[n]);t$(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:eV,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?$t(e,"pointerdown",this._onTapStart):($t(e,"mousedown",this._onTapStart),$t(e,"touchstart",this._onTapStart)),this.nativeDraggable&&($t(e,"dragover",this),$t(e,"dragenter",this)),Qc.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),ro(this,KM())}ze.prototype={constructor:ze,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(gi=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,ke):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,r=this.el,n=this.options,o=n.preventOnFilter,a=e.type,i=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(i||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,u=n.filter;if(fV(r),!ke&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||n.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&js&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=In(s,n.draggable,r,!1),!(s&&s.animated)&&Zc!==s)){if(mi=Qr(s),Ns=Qr(s,n.draggable),typeof u=="function"){if(u.call(this,e,s,this)){Pr({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:r,fromEl:r}),Ir("filter",t,{evt:e}),o&&e.cancelable&&e.preventDefault();return}}else if(u&&(u=u.split(",").some(function(c){if(c=In(l,c.trim(),r,!1),c)return Pr({sortable:t,rootEl:c,name:"filter",targetEl:s,fromEl:r,toEl:r}),Ir("filter",t,{evt:e}),!0}),u)){o&&e.cancelable&&e.preventDefault();return}n.handle&&!In(l,n.handle,r,!1)||this._prepareDragStart(e,i,s)}}},_prepareDragStart:function(e,t,r){var n=this,o=n.el,a=n.options,i=o.ownerDocument,s;if(r&&!ke&&r.parentNode===o){var l=Yt(r);if(It=o,ke=r,Mt=ke.parentNode,ia=ke.nextSibling,Zc=r,Yc=a.group,ze.dragged=ke,sa={target:ke,clientX:(t||e).clientX,clientY:(t||e).clientY},ZS=sa.clientX-l.left,YS=sa.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ke.style["will-change"]="all",s=function(){if(Ir("delayEnded",n,{evt:e}),ze.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!VS&&n.nativeDraggable&&(ke.draggable=!0),n._triggerDragStart(e,t),Pr({sortable:n,name:"choose",originalEvent:e}),Lr(ke,a.chosenClass,!0)},a.ignore.split(",").forEach(function(u){qS(ke,u.trim(),qh)}),$t(i,"dragover",la),$t(i,"mousemove",la),$t(i,"touchmove",la),$t(i,"mouseup",n._onDrop),$t(i,"touchend",n._onDrop),$t(i,"touchcancel",n._onDrop),VS&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ke.draggable=!0),Ir("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(Ts||oo))){if(ze.eventCanceled){this._onDrop();return}$t(i,"mouseup",n._disableDelayedDrag),$t(i,"touchend",n._disableDelayedDrag),$t(i,"touchcancel",n._disableDelayedDrag),$t(i,"mousemove",n._delayedDragTouchMoveHandler),$t(i,"touchmove",n._delayedDragTouchMoveHandler),a.supportPointer&&$t(i,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ke&&qh(ke),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;bt(e,"mouseup",this._disableDelayedDrag),bt(e,"touchend",this._disableDelayedDrag),bt(e,"touchcancel",this._disableDelayedDrag),bt(e,"mousemove",this._delayedDragTouchMoveHandler),bt(e,"touchmove",this._delayedDragTouchMoveHandler),bt(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?$t(document,"pointermove",this._onTouchMove):t?$t(document,"touchmove",this._onTouchMove):$t(document,"mousemove",this._onTouchMove):($t(ke,"dragend",this),$t(It,"dragstart",this._onDragStart));try{document.selection?sf(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(yi=!1,It&&ke){Ir("dragStarted",this,{evt:t}),this.nativeDraggable&&$t(document,"dragover",nV);var r=this.options;!e&&Lr(ke,r.dragClass,!1),Lr(ke,r.ghostClass,!0),ze.active=this,e&&this._appendGhost(),Pr({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(hn){this._lastX=hn.clientX,this._lastY=hn.clientY,r$();for(var e=document.elementFromPoint(hn.clientX,hn.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(hn.clientX,hn.clientY),e!==t);)t=e;if(ke.parentNode[zr]._isOutsideThisEl(e),t)do{if(t[zr]){var r=void 0;if(r=t[zr]._onDragOver({clientX:hn.clientX,clientY:hn.clientY,target:e,rootEl:t}),r&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);n$()}},_onTouchMove:function(e){if(sa){var t=this.options,r=t.fallbackTolerance,n=t.fallbackOffset,o=e.touches?e.touches[0]:e,a=Xe&&di(Xe,!0),i=Xe&&a&&a.a,s=Xe&&a&&a.d,l=of&&yr&&HS(yr),u=(o.clientX-sa.clientX+n.x)/(i||1)+(l?l[0]-Lh[0]:0)/(i||1),c=(o.clientY-sa.clientY+n.y)/(s||1)+(l?l[1]-Lh[1]:0)/(s||1);if(!ze.active&&!yi){if(r&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<r)return;this._onDragStart(e,!0)}if(Xe){a?(a.e+=u-(Vh||0),a.f+=c-(Uh||0)):a={a:1,b:0,c:0,d:1,e:u,f:c};var d="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");Le(Xe,"webkitTransform",d),Le(Xe,"mozTransform",d),Le(Xe,"msTransform",d),Le(Xe,"transform",d),Vh=u,Uh=c,hn=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Xe){var e=this.options.fallbackOnBody?document.body:It,t=Yt(ke,!0,of,!0,e),r=this.options;if(of){for(yr=e;Le(yr,"position")==="static"&&Le(yr,"transform")==="none"&&yr!==document;)yr=yr.parentNode;yr!==document.body&&yr!==document.documentElement?(yr===document&&(yr=Rn()),t.top+=yr.scrollTop,t.left+=yr.scrollLeft):yr=Rn(),Lh=HS(yr)}Xe=ke.cloneNode(!0),Lr(Xe,r.ghostClass,!1),Lr(Xe,r.fallbackClass,!0),Lr(Xe,r.dragClass,!0),Le(Xe,"transition",""),Le(Xe,"transform",""),Le(Xe,"box-sizing","border-box"),Le(Xe,"margin",0),Le(Xe,"top",t.top),Le(Xe,"left",t.left),Le(Xe,"width",t.width),Le(Xe,"height",t.height),Le(Xe,"opacity","0.8"),Le(Xe,"position",of?"absolute":"fixed"),Le(Xe,"zIndex","100000"),Le(Xe,"pointerEvents","none"),ze.ghost=Xe,e.appendChild(Xe),Le(Xe,"transform-origin",ZS/parseInt(Xe.style.width)*100+"% "+YS/parseInt(Xe.style.height)*100+"%")}},_onDragStart:function(e,t){var r=this,n=e.dataTransfer,o=r.options;if(Ir("dragStart",this,{evt:e}),ze.eventCanceled){this._onDrop();return}Ir("setupClone",this),ze.eventCanceled||(Vt=KS(ke),Vt.draggable=!1,Vt.style["will-change"]="",this._hideClone(),Lr(Vt,this.options.chosenClass,!1),ze.clone=Vt),r.cloneId=sf(function(){Ir("clone",r),!ze.eventCanceled&&(r.options.removeCloneOnHide||It.insertBefore(Vt,ke),r._hideClone(),Pr({sortable:r,name:"clone"}))}),!t&&Lr(ke,o.dragClass,!0),t?(Xc=!0,r._loopId=setInterval(r._emulateDragOver,50)):(bt(document,"mouseup",r._onDrop),bt(document,"touchend",r._onDrop),bt(document,"touchcancel",r._onDrop),n&&(n.effectAllowed="move",o.setData&&o.setData.call(r,n,ke)),$t(document,"drop",r),Le(ke,"transform","translateZ(0)")),yi=!0,r._dragStartId=sf(r._dragStarted.bind(r,t,e)),$t(document,"selectstart",r),Is=!0,js&&Le(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,r=e.target,n,o,a,i=this.options,s=i.group,l=ze.active,u=Yc===s,c=i.sort,d=ir||l,v,g=this,b=!1;if(zh)return;function E(Oe,be){Ir(Oe,g,Nn({evt:e,isOwner:u,axis:v?"vertical":"horizontal",revert:a,dragRect:n,targetRect:o,canSort:c,fromSortable:d,target:r,completed:m,onMove:function(Ee,ue){return af(It,t,ke,n,Ee,Yt(Ee),e,ue)},changed:p},be))}function y(){E("dragOverAnimationCapture"),g.captureAnimationState(),g!==d&&d.captureAnimationState()}function m(Oe){return E("dragOverCompleted",{insertion:Oe}),Oe&&(u?l._hideClone():l._showClone(g),g!==d&&(Lr(ke,ir?ir.options.ghostClass:l.options.ghostClass,!1),Lr(ke,i.ghostClass,!0)),ir!==g&&g!==ze.active?ir=g:g===ze.active&&ir&&(ir=null),d===g&&(g._ignoreWhileAnimating=r),g.animateAll(function(){E("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(r===ke&&!ke.animated||r===t&&!r.animated)&&(gi=null),!i.dragoverBubble&&!e.rootEl&&r!==document&&(ke.parentNode[zr]._isOutsideThisEl(e.target),!Oe&&la(e)),!i.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),b=!0}function p(){qr=Qr(ke),Po=Qr(ke,i.draggable),Pr({sortable:g,name:"change",toEl:t,newIndex:qr,newDraggableIndex:Po,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),r=In(r,i.draggable,t,!0),E("dragOver"),ze.eventCanceled)return b;if(ke.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||g._ignoreWhileAnimating===r)return m(!1);if(Xc=!1,l&&!i.disabled&&(u?c||(a=Mt!==It):ir===this||(this.lastPutMode=Yc.checkPull(this,l,ke,e))&&s.checkPut(this,l,ke,e))){if(v=this._getDirection(e,r)==="vertical",n=Yt(ke),E("dragOverValid"),ze.eventCanceled)return b;if(a)return Mt=It,y(),this._hideClone(),E("revert"),ze.eventCanceled||(ia?It.insertBefore(ke,ia):It.appendChild(ke)),m(!0);var _=Dh(t,i.draggable);if(!_||sV(e,v,this)&&!_.animated){if(_===ke)return m(!1);if(_&&t===e.target&&(r=_),r&&(o=Yt(r)),af(It,t,ke,n,r,o,e,!!r)!==!1)return y(),t.appendChild(ke),Mt=t,p(),m(!0)}else if(_&&iV(e,v,this)){var T=pi(t,0,i,!0);if(T===ke)return m(!1);if(r=T,o=Yt(r),af(It,t,ke,n,r,o,e,!1)!==!1)return y(),t.insertBefore(ke,T),Mt=t,p(),m(!0)}else if(r.parentNode===t){o=Yt(r);var O=0,j,C=ke.parentNode!==t,Z=!tV(ke.animated&&ke.toRect||n,r.animated&&r.toRect||o,v),V=v?"top":"left",U=WS(r,"top","top")||WS(ke,"top","top"),W=U?U.scrollTop:void 0;gi!==r&&(j=o[V],Bs=!1,ef=!Z&&i.invertSwap||C),O=lV(e,r,o,v,Z?1:i.swapThreshold,i.invertedSwapThreshold==null?i.swapThreshold:i.invertedSwapThreshold,ef,gi===r);var ee;if(O!==0){var fe=Qr(ke);do fe-=O,ee=Mt.children[fe];while(ee&&(Le(ee,"display")==="none"||ee===Xe))}if(O===0||ee===r)return m(!1);gi=r,Rs=O;var ve=r.nextElementSibling,Ne=!1;Ne=O===1;var Te=af(It,t,ke,n,r,o,e,Ne);if(Te!==!1)return(Te===1||Te===-1)&&(Ne=Te===1),zh=!0,setTimeout(aV,30),y(),Ne&&!ve?t.appendChild(ke):r.parentNode.insertBefore(ke,Ne?ve:r),U&&JS(U,0,W-U.scrollTop),Mt=ke.parentNode,j!==void 0&&!ef&&(tf=Math.abs(j-Yt(r)[V])),p(),m(!0)}if(t.contains(ke))return m(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){bt(document,"mousemove",this._onTouchMove),bt(document,"touchmove",this._onTouchMove),bt(document,"pointermove",this._onTouchMove),bt(document,"dragover",la),bt(document,"mousemove",la),bt(document,"touchmove",la)},_offUpEvents:function(){var e=this.el.ownerDocument;bt(e,"mouseup",this._onDrop),bt(e,"touchend",this._onDrop),bt(e,"pointerup",this._onDrop),bt(e,"touchcancel",this._onDrop),bt(document,"selectstart",this)},_onDrop:function(e){var t=this.el,r=this.options;if(qr=Qr(ke),Po=Qr(ke,r.draggable),Ir("drop",this,{evt:e}),Mt=ke&&ke.parentNode,qr=Qr(ke),Po=Qr(ke,r.draggable),ze.eventCanceled){this._nulling();return}yi=!1,ef=!1,Bs=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Wh(this.cloneId),Wh(this._dragStartId),this.nativeDraggable&&(bt(document,"drop",this),bt(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),js&&Le(document.body,"user-select",""),Le(ke,"transform",""),e&&(Is&&(e.cancelable&&e.preventDefault(),!r.dropBubble&&e.stopPropagation()),Xe&&Xe.parentNode&&Xe.parentNode.removeChild(Xe),(It===Mt||ir&&ir.lastPutMode!=="clone")&&Vt&&Vt.parentNode&&Vt.parentNode.removeChild(Vt),ke&&(this.nativeDraggable&&bt(ke,"dragend",this),qh(ke),ke.style["will-change"]="",Is&&!yi&&Lr(ke,ir?ir.options.ghostClass:this.options.ghostClass,!1),Lr(ke,this.options.chosenClass,!1),Pr({sortable:this,name:"unchoose",toEl:Mt,newIndex:null,newDraggableIndex:null,originalEvent:e}),It!==Mt?(qr>=0&&(Pr({rootEl:Mt,name:"add",toEl:Mt,fromEl:It,originalEvent:e}),Pr({sortable:this,name:"remove",toEl:Mt,originalEvent:e}),Pr({rootEl:Mt,name:"sort",toEl:Mt,fromEl:It,originalEvent:e}),Pr({sortable:this,name:"sort",toEl:Mt,originalEvent:e})),ir&&ir.save()):qr!==mi&&qr>=0&&(Pr({sortable:this,name:"update",toEl:Mt,originalEvent:e}),Pr({sortable:this,name:"sort",toEl:Mt,originalEvent:e})),ze.active&&((qr==null||qr===-1)&&(qr=mi,Po=Ns),Pr({sortable:this,name:"end",toEl:Mt,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Ir("nulling",this),It=ke=Mt=Xe=ia=Vt=Zc=Ao=sa=hn=Is=qr=Po=mi=Ns=gi=Rs=ir=Yc=ze.dragged=ze.ghost=ze.clone=ze.active=null,rf.forEach(function(e){e.checked=!0}),rf.length=Vh=Uh=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ke&&(this._onDragOver(e),oV(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,r=this.el.children,n=0,o=r.length,a=this.options;n<o;n++)t=r[n],In(t,a.draggable,this.el,!1)&&e.push(t.getAttribute(a.dataIdAttr)||cV(t));return e},sort:function(e,t){var r={},n=this.el;this.toArray().forEach(function(o,a){var i=n.children[a];In(i,this.options.draggable,n,!1)&&(r[o]=i)},this),t&&this.captureAnimationState(),e.forEach(function(o){r[o]&&(n.removeChild(r[o]),n.appendChild(r[o]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return In(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var r=this.options;if(t===void 0)return r[e];var n=Cs.modifyOption(this,e,t);typeof n<"u"?r[e]=n:r[e]=t,e==="group"&&t$(r)},destroy:function(){Ir("destroy",this);var e=this.el;e[zr]=null,bt(e,"mousedown",this._onTapStart),bt(e,"touchstart",this._onTapStart),bt(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(bt(e,"dragover",this),bt(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Qc.splice(Qc.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Ao){if(Ir("hideClone",this),ze.eventCanceled)return;Le(Vt,"display","none"),this.options.removeCloneOnHide&&Vt.parentNode&&Vt.parentNode.removeChild(Vt),Ao=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(Ao){if(Ir("showClone",this),ze.eventCanceled)return;ke.parentNode==It&&!this.options.group.revertClone?It.insertBefore(Vt,ke):ia?It.insertBefore(Vt,ia):It.appendChild(Vt),this.options.group.revertClone&&this.animate(ke,Vt),Le(Vt,"display",""),Ao=!1}}};function oV(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function af(e,t,r,n,o,a,i,s){var l,u=e[zr],c=u.options.onMove,d;return window.CustomEvent&&!oo&&!Ts?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=r,l.draggedRect=n,l.related=o||t,l.relatedRect=a||Yt(t),l.willInsertAfter=s,l.originalEvent=i,e.dispatchEvent(l),c&&(d=c.call(u,l,i)),d}function qh(e){e.draggable=!1}function aV(){zh=!1}function iV(e,t,r){var n=Yt(pi(r.el,0,r.options,!0)),o=10;return t?e.clientX<n.left-o||e.clientY<n.top&&e.clientX<n.right:e.clientY<n.top-o||e.clientY<n.bottom&&e.clientX<n.left}function sV(e,t,r){var n=Yt(Dh(r.el,r.options.draggable)),o=10;return t?e.clientX>n.right+o||e.clientX<=n.right&&e.clientY>n.bottom&&e.clientX>=n.left:e.clientX>n.right&&e.clientY>n.top||e.clientX<=n.right&&e.clientY>n.bottom+o}function lV(e,t,r,n,o,a,i,s){var l=n?e.clientY:e.clientX,u=n?r.height:r.width,c=n?r.top:r.left,d=n?r.bottom:r.right,v=!1;if(!i){if(s&&tf<u*o){if(!Bs&&(Rs===1?l>c+u*a/2:l<d-u*a/2)&&(Bs=!0),Bs)v=!0;else if(Rs===1?l<c+tf:l>d-tf)return-Rs}else if(l>c+u*(1-o)/2&&l<d-u*(1-o)/2)return uV(t)}return v=v||i,v&&(l<c+u*a/2||l>d-u*a/2)?l>c+u/2?1:-1:0}function uV(e){return Qr(ke)<Qr(e)?1:-1}function cV(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,r=t.length,n=0;r--;)n+=t.charCodeAt(r);return n.toString(36)}function fV(e){rf.length=0;for(var t=e.getElementsByTagName("input"),r=t.length;r--;){var n=t[r];n.checked&&rf.push(n)}}function sf(e){return setTimeout(e,0)}function Wh(e){return clearTimeout(e)}nf&&$t(document,"touchmove",function(e){(ze.active||yi)&&e.cancelable&&e.preventDefault()}),ze.utils={on:$t,off:bt,css:Le,find:qS,is:function(e,t){return!!In(e,t,e,!1)},extend:GM,throttle:GS,closest:In,toggleClass:Lr,clone:KS,index:Qr,nextTick:sf,cancelNextTick:Wh,detectDirection:e$,getChild:pi},ze.get=function(e){return e[zr]},ze.mount=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t[0].constructor===Array&&(t=t[0]),t.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(ze.utils=Nn(Nn({},ze.utils),n.utils)),Cs.mount(n)})},ze.create=function(e,t){return new ze(e,t)},ze.version=zM;var Wt=[],Ds,Hh,Gh=!1,Jh,Kh,lf,Fs;function dV(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(t){var r=t.originalEvent;this.sortable.nativeDraggable?$t(document,"dragover",this._handleAutoScroll):this.options.supportPointer?$t(document,"pointermove",this._handleFallbackAutoScroll):r.touches?$t(document,"touchmove",this._handleFallbackAutoScroll):$t(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var r=t.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?bt(document,"dragover",this._handleAutoScroll):(bt(document,"pointermove",this._handleFallbackAutoScroll),bt(document,"touchmove",this._handleFallbackAutoScroll),bt(document,"mousemove",this._handleFallbackAutoScroll)),o$(),uf(),JM()},nulling:function(){lf=Hh=Ds=Gh=Fs=Jh=Kh=null,Wt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,r){var n=this,o=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,i=document.elementFromPoint(o,a);if(lf=t,r||this.options.forceAutoScrollFallback||Ts||oo||js){Zh(t,this.options,i,r);var s=Oo(i,!0);Gh&&(!Fs||o!==Jh||a!==Kh)&&(Fs&&o$(),Fs=setInterval(function(){var l=Oo(document.elementFromPoint(o,a),!0);l!==s&&(s=l,uf()),Zh(t,n.options,l,r)},10),Jh=o,Kh=a)}else{if(!this.options.bubbleScroll||Oo(i,!0)===Rn()){uf();return}Zh(t,this.options,Oo(i,!1),!1)}}},ro(e,{pluginName:"scroll",initializeByDefault:!0})}function uf(){Wt.forEach(function(e){clearInterval(e.pid)}),Wt=[]}function o$(){clearInterval(Fs)}var Zh=GS(function(e,t,r,n){if(t.scroll){var o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,i=t.scrollSensitivity,s=t.scrollSpeed,l=Rn(),u=!1,c;Hh!==r&&(Hh=r,uf(),Ds=t.scroll,c=t.scrollFn,Ds===!0&&(Ds=Oo(r,!0)));var d=0,v=Ds;do{var g=v,b=Yt(g),E=b.top,y=b.bottom,m=b.left,p=b.right,_=b.width,T=b.height,O=void 0,j=void 0,C=g.scrollWidth,Z=g.scrollHeight,V=Le(g),U=g.scrollLeft,W=g.scrollTop;g===l?(O=_<C&&(V.overflowX==="auto"||V.overflowX==="scroll"||V.overflowX==="visible"),j=T<Z&&(V.overflowY==="auto"||V.overflowY==="scroll"||V.overflowY==="visible")):(O=_<C&&(V.overflowX==="auto"||V.overflowX==="scroll"),j=T<Z&&(V.overflowY==="auto"||V.overflowY==="scroll"));var ee=O&&(Math.abs(p-o)<=i&&U+_<C)-(Math.abs(m-o)<=i&&!!U),fe=j&&(Math.abs(y-a)<=i&&W+T<Z)-(Math.abs(E-a)<=i&&!!W);if(!Wt[d])for(var ve=0;ve<=d;ve++)Wt[ve]||(Wt[ve]={});(Wt[d].vx!=ee||Wt[d].vy!=fe||Wt[d].el!==g)&&(Wt[d].el=g,Wt[d].vx=ee,Wt[d].vy=fe,clearInterval(Wt[d].pid),(ee!=0||fe!=0)&&(u=!0,Wt[d].pid=setInterval((function(){n&&this.layer===0&&ze.active._onTouchMove(lf);var Ne=Wt[this.layer].vy?Wt[this.layer].vy*s:0,Te=Wt[this.layer].vx?Wt[this.layer].vx*s:0;typeof c=="function"&&c.call(ze.dragged.parentNode[zr],Te,Ne,e,lf,Wt[this.layer].el)!=="continue"||JS(Wt[this.layer].el,Te,Ne)}).bind({layer:d}),24))),d++}while(t.bubbleScroll&&v!==l&&(v=Oo(v,!1)));Gh=u}},30),a$=function(e){var t=e.originalEvent,r=e.putSortable,n=e.dragEl,o=e.activeSortable,a=e.dispatchSortableEvent,i=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=r||o;i();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(u.clientX,u.clientY);s(),l&&!l.el.contains(c)&&(a("spill"),this.onSpill({dragEl:n,putSortable:r}))}};function Yh(){}Yh.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,r=e.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var n=pi(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(t,n):this.sortable.el.appendChild(t),this.sortable.animateAll(),r&&r.animateAll()},drop:a$},ro(Yh,{pluginName:"revertOnSpill"});function Xh(){}Xh.prototype={onSpill:function(e){var t=e.dragEl,r=e.putSortable,n=r||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:a$},ro(Xh,{pluginName:"removeOnSpill"}),ze.mount(new dV),ze.mount(Xh,Yh);function Qh(e){e.parentElement!==null&&e.parentElement.removeChild(e)}function i$(e,t,r){const n=r===0?e.children[0]:e.children[r-1].nextSibling;e.insertBefore(t,n)}function pV(){return typeof window<"u"?window.console:global.console}const hV=pV();function mV(e){const t=Object.create(null);return function(r){return t[r]||(t[r]=e(r))}}const yV=/-(\w)/g,gV=mV(e=>e.replace(yV,(t,r)=>r.toUpperCase())),s$=["Start","Add","Remove","Update","End"],l$=["Choose","Unchoose","Sort","Filter","Clone"],u$=["Move"],vV=[u$,s$,l$].flatMap(e=>e).map(e=>`on${e}`),em={manage:u$,manageAndEmit:s$,emit:l$};function bV(e){return vV.indexOf(e)!==-1}const wV=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function _V(e){return wV.includes(e)}function SV(e){return["transition-group","TransitionGroup"].includes(e)}function c$(e){return["id","class","role","style"].includes(e)||e.startsWith("data-")||e.startsWith("aria-")||e.startsWith("on")}function f$(e){return e.reduce((t,[r,n])=>(t[r]=n,t),{})}function $V({$attrs:e,componentData:t={}}){return{...f$(Object.entries(e).filter(([r,n])=>c$(r))),...t}}function EV({$attrs:e,callBackBuilder:t}){const r=f$(d$(e));Object.entries(t).forEach(([o,a])=>{em[o].forEach(i=>{r[`on${i}`]=a(i)})});const n=`[data-draggable]${r.draggable||""}`;return{...r,draggable:n}}function d$(e){return Object.entries(e).filter(([t,r])=>!c$(t)).map(([t,r])=>[gV(t),r]).filter(([t,r])=>!bV(t))}const p$=({el:e})=>e,OV=(e,t)=>e.__draggable_context=t,h$=e=>e.__draggable_context;class AV{constructor({nodes:{header:t,default:r,footer:n},root:o,realList:a}){this.defaultNodes=r,this.children=[...t,...r,...n],this.externalComponent=o.externalComponent,this.rootTransition=o.transition,this.tag=o.tag,this.realList=a}get _isRootComponent(){return this.externalComponent||this.rootTransition}render(t,r){const{tag:n,children:o,_isRootComponent:a}=this;return t(n,r,a?{default:()=>o}:o)}updated(){const{defaultNodes:t,realList:r}=this;t.forEach((n,o)=>{OV(p$(n),{element:r[o],index:o})})}getUnderlyingVm(t){return h$(t)}getVmIndexFromDomIndex(t,r){const{defaultNodes:n}=this,{length:o}=n,a=r.children,i=a.item(t);if(i===null)return o;const s=h$(i);if(s)return s.index;if(o===0)return 0;const l=p$(n[0]),u=[...a].findIndex(c=>c===l);return t<u?0:o}}function PV(e,t){const r=e[t];return r?r():[]}function xV({$slots:e,realList:t,getKey:r}){const n=t||[],[o,a]=["header","footer"].map(l=>PV(e,l)),{item:i}=e;if(!i)throw new Error("draggable element must have an item slot");const s=n.flatMap((l,u)=>i({element:l,index:u}).map(c=>(c.key=r(l),c.props={...c.props||{},"data-draggable":!0},c)));if(s.length!==n.length)throw new Error("Item slot must have only one child");return{header:o,footer:a,default:s}}function TV(e){const t=SV(e),r=!_V(e)&&!t;return{transition:t,externalComponent:r,tag:r?JO(e):t?iP:e}}function jV({$slots:e,tag:t,realList:r,getKey:n}){const o=xV({$slots:e,realList:r,getKey:n}),a=TV(t);return new AV({nodes:o,root:a,realList:r})}function m$(e,t){_r(()=>this.$emit(e.toLowerCase(),t))}function y$(e){return(t,r)=>{if(this.realList!==null)return this[`onDrag${e}`](t,r)}}function kV(e){const t=y$.call(this,e);return(r,n)=>{t.call(this,r,n),m$.call(this,e,r)}}let tm=null;const CV={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:e=>e},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},NV=["update:modelValue","change",...[...em.manageAndEmit,...em.emit].map(e=>e.toLowerCase())],IV=Re({name:"draggable",inheritAttrs:!1,props:CV,emits:NV,data(){return{error:!1}},render(){try{this.error=!1;const{$slots:e,$attrs:t,tag:r,componentData:n,realList:o,getKey:a}=this,i=jV({$slots:e,tag:r,realList:o,getKey:a});this.componentStructure=i;const s=$V({$attrs:t,componentData:n});return i.render(jl,s)}catch(e){return this.error=!0,jl("pre",{style:{color:"red"}},e.stack)}},created(){this.list!==null&&this.modelValue!==null&&hV.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted(){if(this.error)return;const{$attrs:e,$el:t,componentStructure:r}=this;r.updated();const n=EV({$attrs:e,callBackBuilder:{manageAndEmit:a=>kV.call(this,a),emit:a=>m$.bind(this,a),manage:a=>y$.call(this,a)}}),o=t.nodeType===1?t:t.parentElement;this._sortable=new ze(o,n),this.targetDomElement=o,o.__draggable_component__=this},updated(){this.componentStructure.updated()},beforeUnmount(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList(){const{list:e}=this;return e||this.modelValue},getKey(){const{itemKey:e}=this;return typeof e=="function"?e:t=>t[e]}},watch:{$attrs:{handler(e){const{_sortable:t}=this;t&&d$(e).forEach(([r,n])=>{t.option(r,n)})},deep:!0}},methods:{getUnderlyingVm(e){return this.componentStructure.getUnderlyingVm(e)||null},getUnderlyingPotencialDraggableComponent(e){return e.__draggable_component__},emitChanges(e){_r(()=>this.$emit("change",e))},alterList(e){if(this.list){e(this.list);return}const t=[...this.modelValue];e(t),this.$emit("update:modelValue",t)},spliceList(){const e=t=>t.splice(...arguments);this.alterList(e)},updatePosition(e,t){const r=n=>n.splice(t,0,n.splice(e,1)[0]);this.alterList(r)},getRelatedContextFromMoveEvent({to:e,related:t}){const r=this.getUnderlyingPotencialDraggableComponent(e);if(!r)return{component:r};const n=r.realList,o={list:n,component:r};return e!==t&&n?{...r.getUnderlyingVm(t)||{},...o}:o},getVmIndexFromDomIndex(e){return this.componentStructure.getVmIndexFromDomIndex(e,this.targetDomElement)},onDragStart(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),tm=e.item},onDragAdd(e){const t=e.item._underlying_vm_;if(t===void 0)return;Qh(e.item);const r=this.getVmIndexFromDomIndex(e.newIndex);this.spliceList(r,0,t);const n={element:t,newIndex:r};this.emitChanges({added:n})},onDragRemove(e){if(i$(this.$el,e.item,e.oldIndex),e.pullMode==="clone"){Qh(e.clone);return}const{index:t,element:r}=this.context;this.spliceList(t,1);const n={element:r,oldIndex:t};this.emitChanges({removed:n})},onDragUpdate(e){Qh(e.item),i$(e.from,e.item,e.oldIndex);const t=this.context.index,r=this.getVmIndexFromDomIndex(e.newIndex);this.updatePosition(t,r);const n={element:this.context.element,oldIndex:t,newIndex:r};this.emitChanges({moved:n})},computeFutureIndex(e,t){if(!e.element)return 0;const r=[...t.to.children].filter(a=>a.style.display!=="none"),n=r.indexOf(t.related),o=e.component.getVmIndexFromDomIndex(n);return r.indexOf(tm)!==-1||!t.willInsertAfter?o:o+1},onDragMove(e,t){const{move:r,realList:n}=this;if(!r||!n)return!0;const o=this.getRelatedContextFromMoveEvent(e),a=this.computeFutureIndex(o,e),i={...this.context,futureIndex:a},s={...e,relatedContext:o,draggedContext:i};return r(s,t)},onDragEnd(){tm=null}}}),RV=IV,BV={},DV={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"};function FV(e,t){return ie(),Be("svg",DV,t[0]||(t[0]=[mt("path",{fill:"currentColor",d:"M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8L4.646 5.354a.5.5 0 0 1 0-.708"},null,-1)]))}const MV=Ia(BV,[["render",FV],["__scopeId","data-v-8898cb0d"]]),VV={},UV={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"};function LV(e,t){return ie(),Be("svg",UV,t[0]||(t[0]=[mt("path",{fill:"currentColor",d:"M7 2a1 1 0 1 1-2 0a1 1 0 0 1 2 0m3 0a1 1 0 1 1-2 0a1 1 0 0 1 2 0M7 5a1 1 0 1 1-2 0a1 1 0 0 1 2 0m3 0a1 1 0 1 1-2 0a1 1 0 0 1 2 0M7 8a1 1 0 1 1-2 0a1 1 0 0 1 2 0m3 0a1 1 0 1 1-2 0a1 1 0 0 1 2 0m-3 3a1 1 0 1 1-2 0a1 1 0 0 1 2 0m3 0a1 1 0 1 1-2 0a1 1 0 0 1 2 0m-3 3a1 1 0 1 1-2 0a1 1 0 0 1 2 0m3 0a1 1 0 1 1-2 0a1 1 0 0 1 2 0"},null,-1)]))}const zV=Ia(VV,[["render",LV],["__scopeId","data-v-451bf0ec"]]),qV=["id"],WV={class:"handle"},HV=Re({__name:"ArrayItem",props:{scope:{},index:{},itemID:{},baseSavePath:{},allowRemove:{type:Boolean},uiSchema:{}},emits:["delete"],setup(e,{emit:t}){const r=e,n=r.baseSavePath+"."+r.itemID;fr(Cd,n);const o=ne(()=>{const i=r.uiSchema||{type:"Control",scope:"",options:{label:!1}};return i.scope=r.scope+"."+r.itemID,i}),a=t;return(i,s)=>(ie(),Be("div",{class:"vjf_arrayItem",id:i.itemID},[Ze(Ev,{"layout-element":o.value,"in-array-item":""},{prepend:Ce(()=>[mt("div",WV,[Ze(zV)])]),append:Ce(()=>[Ze(P(Bh),{variant:"outline-danger",onClick:s[0]||(s[0]=l=>a("delete",i.itemID,n)),disabled:!i.allowRemove,"aria-label":"Delete Item"},{default:Ce(()=>[Ze(MV)]),_:1},8,["disabled"])]),_:1},8,["layout-element"])],8,qV))}}),GV=Ia(HV,[["__scopeId","data-v-1b4b9d8d"]]),JV={},KV={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"};function ZV(e,t){return ie(),Be("svg",KV,t[0]||(t[0]=[mt("path",{fill:"currentColor",d:"M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4"},null,-1)]))}const YV=Ia(JV,[["render",ZV],["__scopeId","data-v-9a59b4f7"]]),XV=["for"],QV=["id"],eU=Object.freeze(Object.defineProperty({__proto__:null,default:Re({__name:"ArrayControl",setup(e){const t=Qt("ErrorViewer"),{formData:r}=Zt(Xr()),{jsonSchema:n,arrays:o}=Zt(ho()),{savePath:a}=Vr(),i=ln(a);function s(m=!1,p){const _=Xi+xd();if(!n.value)throw new Error("jsonSchema is unexpectedly undefined");r.value[a].push(_),r.value[`${a}.${_}`]=p??"",m||_r().then(()=>{var T;const O=(T=document.getElementById(i.value))==null?void 0:T.querySelectorAll(".list-group > *");if(!O)return;const j=O[O.length-1].querySelector("input");j==null||j.focus()})}const{layoutElement:l,jsonElement:u}=Vr(),c=Gl(l),d=ot(!1),v=ot({animation:200,group:`array-${c.value}`,disabled:!1,ghostClass:"ghost"});function g(m,p){const _=r.value[a].indexOf(m);_>-1?r.value[a].splice(_,1):console.warn("Could not find item with id",m,"in",r.value[a]),delete r.value[p]}function b(){if(!r.value[a])r.value[a]=[];else if(Ax(r.value[a])){const m=r.value[a];r.value[a]=[];for(const p of m)s(!0,p)}o.value.push(a);for(let m=r.value[a].length;m<(u.minItems||0);m++)s(!0)}const E=ne(()=>(r.value[a]||b(),r.value[a].length<(u.maxItems||Number.MAX_VALUE))),y=ne(()=>(r.value[a]||b(),r.value[a].length>(u.minItems||0)));return Kf(b),(m,p)=>(ie(),Be("div",null,[mt("label",{for:P(i),class:"large-label"},Ve(P(c)),9,XV),typeof P(u).items=="object"&&"type"in P(u).items?(ie(),Be("div",{key:0,class:"vjf_array",id:P(i)},[Ze(P(RV),xt({class:"list-group",modelValue:P(r)[P(a)],"onUpdate:modelValue":p[0]||(p[0]=_=>P(r)[P(a)]=_),handle:".handle",itemKey:_=>_,key:"draggable",onStart:p[1]||(p[1]=_=>d.value=!0),onEnd:p[2]||(p[2]=_=>d.value=!1)},v.value,{componentData:{tag:"div",type:"transition-group",name:d.value?null:"flip-list"}}),{item:Ce(({element:_,index:T})=>[(ie(),Be("div",{key:_},[Ze(GV,{scope:P(l).scope,baseSavePath:P(a),index:T,itemID:_,onDelete:g,allowRemove:y.value},null,8,["scope","baseSavePath","index","itemID","allowRemove"])]))]),_:1},16,["modelValue","itemKey","componentData"]),Ze(P(Bh),{variant:"outline-primary",class:"w-100",onClick:p[3]||(p[3]=()=>s()),disabled:!E.value,"aria-label":"Add Item"},{default:Ce(()=>[Ze(YV)]),_:1},8,["disabled"])],8,QV)):(ie(),xe(P(t),{key:1,header:"Error",id:P(i)},{default:Ce(()=>p[4]||(p[4]=[it(" The type of the array's items is missing in the schema ")])),_:1},8,["id"]))]))}})},Symbol.toStringTag,{value:"Module"})),cf=(e,t)=>ne(()=>{const r=Ut(e),n=Ut(t);return r===!0?"true":typeof r=="string"?r:n===!1?"true":r===!1?"false":void 0}),vi=e=>ne(()=>{const t=Ut(e);return t===!0?"is-valid":t===!1?"is-invalid":null}),g$=e=>ne(()=>{const t=Ut(e);return{"form-check":t.plain===!1&&t.button===!1&&t.hasDefaultSlot,"form-check-reverse":t.reverse===!0,"form-check-inline":t.inline===!0,"form-switch":t.switch===!0,[`form-control-${t.size}`]:t.size!==void 0&&t.size!=="md"&&t.button===!1}}),v$=e=>{const t=Wr(at(e)),r=vi(()=>t.value.state??null);return ne(()=>[r.value,{"form-check-input":t.value.plain===!1&&t.value.button===!1,"btn-check":t.value.button===!0}])},b$=e=>ne(()=>{const t=Ut(e);return{"form-check-label":t.plain===!1&&t.button===!1,btn:t.button===!0,[`btn-${t.buttonVariant}`]:t.button===!0&&t.buttonVariant!==void 0&&t.buttonVariant!==null,[`btn-${t.size}`]:t.button&&t.size&&t.size!=="md"}}),w$=e=>{const t=Wr(at(e)),r=cf(()=>t.value.ariaInvalid,()=>t.value.state);return ne(()=>({"aria-invalid":r.value,"aria-required":t.value.required===!0?!0:void 0}))},_$=e=>ne(()=>{const t=Ut(e);return{"was-validated":t.validated===!0,"btn-group":t.buttons===!0&&t.stacked===!1,"btn-group-vertical":t.stacked===!0&&t.buttons===!0,[`btn-group-${t.size}`]:t.size!==void 0}}),tU=["id","disabled","required","name","form","aria-label","aria-labelledby","aria-required","value","true-value","false-value","indeterminate"],rU=["for"],S$=Re({inheritAttrs:!1,__name:"BFormCheckbox",props:Tr({ariaLabel:{default:void 0},ariaLabelledby:{default:void 0},autofocus:{type:Boolean,default:!1},button:{type:Boolean,default:!1},buttonGroup:{type:Boolean,default:!1},buttonVariant:{default:null},disabled:{type:Boolean,default:!1},form:{default:void 0},id:{default:void 0},inline:{type:Boolean,default:!1},name:{default:void 0},plain:{type:Boolean,default:!1},required:{type:Boolean,default:void 0},reverse:{type:Boolean,default:!1},size:{default:void 0},state:{type:[Boolean,null],default:null},switch:{type:Boolean,default:!1},uncheckedValue:{type:[Array,Set,String,Boolean,Object,Number,null],default:!1},wrapperAttrs:{default:void 0},inputClass:{default:void 0},value:{type:[String,Boolean,Array,Set,Object,Number,null],default:!0}},{modelValue:{type:[Array,Set,String,Boolean,Object,Number,null],default:void 0},modelModifiers:{},indeterminate:{type:Boolean,default:!1},indeterminateModifiers:{}}),emits:["update:modelValue","update:indeterminate"],setup(e,{expose:t}){const r=$y(),n=ne(()=>{const{class:j,...C}=r;return{wrapperClass:j,inputAttrs:C}}),o=gt(e,"BFormCheckbox"),a=zn(),i=Kr(e,"modelValue"),s=Kr(e,"indeterminate"),l=ar(()=>o.id,"form-check"),u=Jt($S,null),c=Jr("_input"),{focused:d}=So(c,{initialValue:o.autofocus}),v=ne(()=>!$o(a.default)),g=ne({get:()=>u?u.modelValue.value:i.value,set:j=>{if(j!==void 0){if(s.value=!1,u!==null&&Array.isArray(j)){u.modelValue.value=j;return}i.value=j}}}),b=ne(()=>!!(o.name??(u==null?void 0:u.name.value))&&(o.required||(u==null?void 0:u.required.value))),E=ne(()=>o.buttonGroup||((u==null?void 0:u.buttons.value)??!1)),y=ne(()=>({plain:o.plain||((u==null?void 0:u.plain.value)??!1),button:o.button||((u==null?void 0:u.buttons.value)??!1),inline:o.inline||((u==null?void 0:u.inline.value)??!1),reverse:o.reverse||((u==null?void 0:u.reverse.value)??!1),switch:o.switch||((u==null?void 0:u.switch.value)??!1),state:o.state===!0||o.state===!1?o.state:(u==null?void 0:u.state.value)??null,size:o.size??(u==null?void 0:u.size.value)??"md",buttonVariant:o.buttonVariant??(u==null?void 0:u.buttonVariant.value)??"secondary",hasDefaultSlot:v.value})),m=g$(y),p=ne(()=>[m.value,n.value.wrapperClass]),_=v$(y),T=ne(()=>[_.value,o.inputClass]),O=b$(y);return t({blur:()=>{d.value=!1},element:c,focus:()=>{d.value=!0}}),(j,C)=>(ie(),xe(Tv,xt({skip:E.value},P(o).wrapperAttrs,{class:p.value}),{default:Ce(()=>{var Z,V,U;return[yl(mt("input",xt({id:P(l),ref:"_input","onUpdate:modelValue":C[0]||(C[0]=W=>g.value=W),class:T.value,type:"checkbox",disabled:P(o).disabled||((Z=P(u))==null?void 0:Z.disabled.value),required:b.value||void 0,name:P(o).name||((V=P(u))==null?void 0:V.name.value),form:P(o).form||((U=P(u))==null?void 0:U.form.value),"aria-label":P(o).ariaLabel,"aria-labelledby":P(o).ariaLabelledby,"aria-required":b.value||void 0,value:P(o).value,"true-value":P(o).value,"false-value":P(o).uncheckedValue,indeterminate:s.value||void 0},n.value.inputAttrs),null,16,tU),[[fP,g.value]]),v.value||P(o).plain===!1?(ie(),Be("label",{key:0,for:P(l),class:nt(P(O))},[Ie(j.$slots,"default")],10,rU)):ut("",!0)]}),_:3},16,["skip","class"]))}}),nU=["id"],oU=Re({__name:"BFormCheckboxGroup",props:Tr({ariaInvalid:{type:[Boolean,String],default:void 0},autofocus:{type:Boolean,default:!1},buttonVariant:{default:"secondary"},buttons:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disabledField:{default:"disabled"},form:{default:void 0},id:{default:void 0},name:{default:void 0},options:{default:()=>[]},plain:{type:Boolean,default:!1},required:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},size:{default:"md"},stacked:{type:Boolean,default:!1},state:{type:[Boolean,null],default:null},switches:{type:Boolean,default:!1},textField:{default:"text"},validated:{type:Boolean,default:!1},valueField:{default:"value"}},{modelValue:{default:()=>[]},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){const r=gt(e,"BFormCheckboxGroup"),n=Kr(e,"modelValue"),o=ar(()=>r.id,"checkbox"),a=ar(()=>r.name,"checkbox"),i=Jr("_element"),{focused:s}=So(i,{initialValue:r.autofocus});fr($S,{modelValue:n,switch:at(()=>r.switches),buttonVariant:at(()=>r.buttonVariant),form:at(()=>r.form),name:a,state:at(()=>r.state),plain:at(()=>r.plain),size:at(()=>r.size),inline:at(()=>!r.stacked),reverse:at(()=>r.reverse),required:at(()=>r.required),buttons:at(()=>r.buttons),disabled:at(()=>r.disabled)});const l=ne(()=>r.options.map(v=>typeof v=="string"||typeof v=="number"?{value:v,disabled:r.disabled,text:v.toString()}:{...v,value:v[r.valueField],disabled:v[r.disabledField],text:v[r.textField]})),u=ne(()=>({required:r.required,ariaInvalid:r.ariaInvalid,state:r.state,validated:r.validated,buttons:r.buttons,stacked:r.stacked,size:r.size})),c=w$(u),d=_$(u);return t({blur:()=>{s.value=!1},focus:()=>{s.value=!0}}),(v,g)=>(ie(),Be("div",xt(P(c),{id:P(o),ref:"_element",role:"group",class:[P(d),"bv-no-focus-ring"],tabindex:"-1"}),[Ie(v.$slots,"first"),(ie(!0),Be(ht,null,Br(l.value,(b,E)=>(ie(),xe(S$,xt({key:E,ref_for:!0},b),{default:Ce(()=>[Ie(v.$slots,"option",xt({ref_for:!0},b),()=>[it(Ve(b.text),1)])]),_:2},1040))),128)),Ie(v.$slots,"default")],16,nU))}}),aU=Object.freeze(Object.defineProperty({__proto__:null,default:Re({__name:"CheckboxControl",setup(e){const{formData:t}=Zt(Xr()),{layoutElement:r,savePath:n}=Vr(),o=ln(n),a=Gl(r);return(i,s)=>(ie(),xe(P(S$),{modelValue:P(t)[P(n)],"onUpdate:modelValue":s[0]||(s[0]=l=>P(t)[P(n)]=l),class:"vjf_checkbox",id:P(o)},{default:Ce(()=>[it(Ve(P(a)),1)]),_:1},8,["modelValue","id"]))}})},Symbol.toStringTag,{value:"Module"})),iU=Object.freeze(Object.defineProperty({__proto__:null,default:Re({__name:"CheckboxGroupControl",setup(e){var t,r;const{formData:n}=Zt(Xr()),{layoutElement:o,jsonElement:a,savePath:i}=Vr(),s=ln(i);let l;return cx(a)?l=((r=(t=a.items)==null?void 0:t.enum)==null?void 0:r.map(u=>{const c=(Mr(o,"enumTitles")||{})[u]||u;return{value:u,text:c}}))||[]:l=[],(u,c)=>(ie(),xe(P(oU),{modelValue:P(n)[P(i)],"onUpdate:modelValue":c[0]||(c[0]=d=>P(n)[P(i)]=d),options:P(l),class:"vjf_checkboxGroup",id:P(s),stacked:P(Mr)(P(o),"stacked"),buttons:P(Mr)(P(o),"displayAs")==="buttons",switches:P(Mr)(P(o),"displayAs")==="switches","button-variant":P(Mr)(P(o),"buttonVariant")||"primary"},null,8,["modelValue","options","id","stacked","buttons","switches","button-variant"]))}})},Symbol.toStringTag,{value:"Module"})),sU=["for"],lU=["id","form","name","multiple","disabled","capture","accept","required","aria-label","aria-labelledby","aria-required","directory","webkitdirectory"],uU=Re({inheritAttrs:!1,__name:"BFormFile",props:Tr({ariaLabel:{default:void 0},ariaLabelledby:{default:void 0},accept:{default:""},autofocus:{type:Boolean,default:!1},capture:{type:[Boolean,String],default:void 0},directory:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},form:{default:void 0},id:{default:void 0},label:{default:""},labelClass:{default:void 0},multiple:{type:Boolean,default:!1},name:{default:void 0},noButton:{type:Boolean,default:!1},noDrop:{type:Boolean,default:!1},noTraverse:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},required:{type:Boolean,default:!1},size:{default:void 0},state:{type:[Boolean,null],default:null}},{modelValue:{default:null},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){const r=zn(),n=gt(e,"BFormFile"),o=Kr(e,"modelValue"),a=ar(()=>n.id),i=vi(()=>n.state),s=Jr("_input"),{focused:l}=So(s,{initialValue:n.autofocus}),u=ne(()=>!$o(r.label)),c=ne(()=>typeof n.accept=="string"?n.accept:n.accept.join(",")),d=ne(()=>[i.value,{[`form-control-${n.size}`]:n.size!==void 0,"form-control":!n.plain,"form-control-input-file-hide-button":n.noButton}]),v=()=>{var E,y;const m=((E=s.value)==null?void 0:E.files)===null||((y=s.value)==null?void 0:y.files)===void 0?null:[...s.value.files];o.value=m===null?null:n.multiple===!0?m:m[0]},g=E=>{n.noDrop===!0&&E.preventDefault()},b=()=>{o.value=null};return $r(o,E=>{E===null&&s.value!==null&&(s.value.value="")}),t({blur:()=>{l.value=!1},element:s,focus:()=>{l.value=!0},reset:b}),(E,y)=>(ie(),Be(ht,null,[u.value||P(n).label?(ie(),Be("label",{key:0,class:nt(["form-label",P(n).labelClass]),for:P(a)},[Ie(E.$slots,"label",{},()=>[it(Ve(P(n).label),1)])],10,sU)):ut("",!0),mt("input",xt({id:P(a)},E.$attrs,{ref:"_input",type:"file",class:d.value,form:P(n).form,name:P(n).name,multiple:P(n).multiple,disabled:P(n).disabled,capture:P(n).capture,accept:c.value||void 0,required:P(n).required||void 0,"aria-label":P(n).ariaLabel,"aria-labelledby":P(n).ariaLabelledby,"aria-required":P(n).required||void 0,directory:P(n).directory,webkitdirectory:P(n).directory,onChange:v,onDrop:g}),null,16,lU)],64))}}),cU=Object.freeze(Object.defineProperty({__proto__:null,default:Re({__name:"FileControl",setup(e){const{formData:t}=Zt(Xr()),{layoutElement:r,jsonElement:n,savePath:o}=Vr(),a=ln(o);return(i,s)=>(ie(),xe(P(uU),{modelValue:P(t)[P(o)],"onUpdate:modelValue":s[0]||(s[0]=l=>P(t)[P(o)]=l),id:P(a),class:"vjf_file",multiple:P(Mr)(P(r),"allowMultipleFiles",!1),accept:P(Mr)(P(r),"acceptedFileType")},null,8,["modelValue","id","multiple","accept"]))}})},Symbol.toStringTag,{value:"Module"})),$$=(e,t)=>{if(e===null)return;let r=e;if(t.number&&typeof r=="string"&&r!==""){const n=Number.parseFloat(r);r=Number.isNaN(n)?r:n}return r},E$=(e,t,r,n)=>{var o;const a=ot(0),i=ar(()=>e.id,"input"),s=mo(()=>e.debounce??0),l=mo(()=>e.debounceMaxWait??NaN),u=(o=Jt(AS,null))==null?void 0:o(i),c=ne(()=>e.state!==void 0?e.state:(u==null?void 0:u.state.value)??null),d=cf(()=>e.ariaInvalid,c),v=vi(c),g=iT(m=>{r.value=m},()=>n.lazy===!0?0:s.value,{maxWait:()=>n.lazy===!0?NaN:l.value}),b=(m,p=!1)=>{n.lazy===!0&&p===!1||g(m)},{focused:E}=So(t,{initialValue:e.autofocus}),y=(m,p,_=!1)=>e.formatter!==void 0&&(!e.lazyFormatter||_)?e.formatter(m,p):m;return $a(()=>{var m;t.value&&(t.value.value=((m=r.value)==null?void 0:m.toString())??"")}),hy(()=>{_r(()=>{e.autofocus&&(E.value=!0)})}),{input:t,computedId:i,computedAriaInvalid:d,onInput:m=>{const{value:p}=m.target,_=y(p,m);if(m.defaultPrevented){m.preventDefault();return}b(_)},onChange:m=>{const{value:p}=m.target,_=y(p,m);if(m.defaultPrevented){m.preventDefault();return}const T=_;r.value!==T&&b(_,!0)},onBlur:m=>{if(!n.lazy&&!e.lazyFormatter&&!n.trim)return;const{value:p}=m.target,_=y(p,m,!0),T=n.trim?_.trim():_,O=T.length!==_.length;r.value!==T&&b(_,!0),n.trim&&O&&(a.value=a.value+1)},focus:()=>{e.disabled||(E.value=!0)},blur:()=>{e.disabled||(E.value=!1)},forceUpdateKey:a,stateClass:v}},fU=["id","value","name","form","type","disabled","placeholder","required","autocomplete","readonly","min","max","step","list","aria-required","aria-invalid"],O$=Re({__name:"BFormInput",props:Tr({max:{default:void 0},min:{default:void 0},step:{default:void 0},type:{default:"text"},ariaInvalid:{type:[Boolean,String],default:void 0},autocomplete:{default:void 0},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},form:{default:void 0},formatter:{type:Function,default:void 0},id:{default:void 0},lazyFormatter:{type:Boolean,default:!1},list:{default:void 0},name:{default:void 0},placeholder:{default:void 0},plaintext:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},size:{default:void 0},state:{type:[Boolean,null],default:void 0},debounce:{default:0},debounceMaxWait:{default:NaN}},{modelValue:{default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){const r=gt(e,"BFormInput"),[n,o]=Kr(e,"modelValue",{set:y=>$$(y,o)}),a=Jr("_input"),{computedId:i,computedAriaInvalid:s,onInput:l,onChange:u,onBlur:c,stateClass:d,focus:v,blur:g,forceUpdateKey:b}=E$(r,a,n,o),E=ne(()=>{const y=r.type==="range",m=r.type==="color";return[d.value,{"form-range":y,"form-control":m||!r.plaintext&&!y,"form-control-color":m,"form-control-plaintext":r.plaintext&&!y&&!m,[`form-control-${r.size}`]:!!r.size}]});return t({blur:g,element:a,focus:v}),(y,m)=>(ie(),Be("input",{id:P(i),ref:"_input",key:P(b),value:P(n),class:nt(E.value),name:P(r).name||void 0,form:P(r).form||void 0,type:P(r).type,disabled:P(r).disabled,placeholder:P(r).placeholder,required:P(r).required||void 0,autocomplete:P(r).autocomplete||void 0,readonly:P(r).readonly||P(r).plaintext,min:P(r).min,max:P(r).max,step:P(r).step,list:P(r).type!=="password"?P(r).list:void 0,"aria-required":P(r).required||void 0,"aria-invalid":P(s),onInput:m[0]||(m[0]=(...p)=>P(l)&&P(l)(...p)),onChange:m[1]||(m[1]=(...p)=>P(u)&&P(u)(...p)),onBlur:m[2]||(m[2]=(...p)=>P(c)&&P(c)(...p))},null,42,fU))}}),dU=Object.freeze(Object.defineProperty({__proto__:null,default:Re({__name:"NumberControl",setup(e){const{formData:t}=Zt(Xr()),{layoutElement:r,jsonElement:n,savePath:o}=Vr(),a=ln(o),i=ne(()=>n.type==="integer"?n.multipleOf||1:n.multipleOf||1e-22);return(s,l)=>(ie(),xe(P(O$),{modelValue:P(t)[P(o)],"onUpdate:modelValue":l[0]||(l[0]=u=>P(t)[P(o)]=u),modelModifiers:{number:!0},class:"vjf_input",id:P(a),step:i.value,min:P(n).minimum,max:P(n).maximum,type:P(Mr)(P(r),"range",!1)?"range":"number"},null,8,["modelValue","id","step","min","max","type"]))}})},Symbol.toStringTag,{value:"Module"})),pU=Object.freeze(Object.defineProperty({__proto__:null,default:Re({__name:"ObjectControl",setup(e){const{layoutElement:t,jsonElement:r,savePath:n}=Vr(),o=ln(n),a=ne(()=>{var i;return vv(r,{scopeBase:t.scope,layoutType:"Group",groupLabel:((i=t.options)==null?void 0:i.label)!==!1?Gl(t).value:""})});return(i,s)=>(ie(),xe(Xu,{class:"vjf_object",id:P(o),"layout-element":a.value.layout},null,8,["id","layout-element"]))}})},Symbol.toStringTag,{value:"Module"})),hU=["id","disabled","required","name","form","aria-label","aria-labelledby","value","aria-required"],mU=["for"],yU=Re({inheritAttrs:!1,__name:"BFormRadio",props:Tr({ariaLabel:{default:void 0},ariaLabelledby:{default:void 0},autofocus:{type:Boolean,default:!1},button:{type:Boolean,default:!1},buttonGroup:{type:Boolean,default:!1},buttonVariant:{default:null},disabled:{type:Boolean,default:!1},form:{default:void 0},id:{default:void 0},inline:{type:Boolean,default:!1},name:{default:void 0},plain:{type:Boolean,default:!1},required:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},size:{default:void 0},state:{type:[Boolean,null],default:null},value:{type:[Boolean,String,Array,Object,Number,null],default:!0}},{modelValue:{type:[Boolean,String,Array,Object,Number,null],default:void 0},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){const r=gt(e,"BFormRadio"),n=zn(),o=Kr(e,"modelValue"),a=ar(()=>r.id,"form-check"),i=Jt(ES,null),s=Jr("_input"),{focused:l}=So(s,{initialValue:r.autofocus}),u=ne(()=>!$o(n.default)),c=ne({get:()=>i?i.modelValue.value:o.value,set:m=>{if(m!==void 0){if(i!==null){i.modelValue.value=m;return}o.value=m}}}),d=ne(()=>!!(r.name??(i==null?void 0:i.name.value))&&(r.required||(i==null?void 0:i.required.value))),v=ne(()=>r.buttonGroup||((i==null?void 0:i.buttons.value)??!1)),g=ne(()=>({plain:r.plain||((i==null?void 0:i.plain.value)??!1),button:r.button||((i==null?void 0:i.buttons.value)??!1),inline:r.inline||((i==null?void 0:i.inline.value)??!1),state:r.state||(i==null?void 0:i.state.value),reverse:r.reverse||((i==null?void 0:i.reverse.value)??!1),size:r.size??(i==null?void 0:i.size.value)??"md",buttonVariant:r.buttonVariant??(i==null?void 0:i.buttonVariant.value)??"secondary",hasDefaultSlot:u.value})),b=g$(g),E=v$(g),y=b$(g);return t({blur:()=>{l.value=!1},element:s,focus:()=>{l.value=!0}}),(m,p)=>(ie(),xe(Tv,{skip:v.value,class:nt(P(b))},{default:Ce(()=>{var _,T,O;return[yl(mt("input",xt({id:P(a)},m.$attrs,{ref:"_input","onUpdate:modelValue":p[0]||(p[0]=j=>c.value=j),class:P(E),type:"radio",disabled:P(r).disabled||((_=P(i))==null?void 0:_.disabled.value),required:d.value||void 0,name:P(r).name||((T=P(i))==null?void 0:T.name.value),form:P(r).form||((O=P(i))==null?void 0:O.form.value),"aria-label":P(r).ariaLabel,"aria-labelledby":P(r).ariaLabelledby,value:P(r).value,"aria-required":d.value||void 0}),null,16,hU),[[dP,c.value]]),u.value||P(r).plain===!1?(ie(),Be("label",{key:0,for:P(a),class:nt(P(y))},[Ie(m.$slots,"default")],10,mU)):ut("",!0)]}),_:3},8,["skip","class"]))}}),gU=["id"],vU=Re({__name:"BFormRadioGroup",props:Tr({ariaInvalid:{type:[Boolean,String],default:void 0},autofocus:{type:Boolean,default:!1},buttonVariant:{default:"secondary"},buttons:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disabledField:{default:"disabled"},form:{default:void 0},id:{default:void 0},name:{default:void 0},options:{default:()=>[]},plain:{type:Boolean,default:!1},required:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},size:{default:"md"},stacked:{type:Boolean,default:!1},state:{type:[Boolean,null],default:null},textField:{default:"text"},validated:{type:Boolean,default:!1},valueField:{default:"value"}},{modelValue:{default:null},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){const r=gt(e,"BFormRadioGroup"),n=Kr(e,"modelValue"),o=ar(()=>r.id,"radio"),a=ar(()=>r.name,"checkbox"),i=Jr("_element"),{focused:s}=So(i,{initialValue:r.autofocus});fr(ES,{modelValue:n,buttonVariant:at(()=>r.buttonVariant),form:at(()=>r.form),name:a,buttons:at(()=>r.buttons),state:at(()=>r.state),plain:at(()=>r.plain),size:at(()=>r.size),inline:at(()=>!r.stacked),reverse:at(()=>r.reverse),required:at(()=>r.required),disabled:at(()=>r.disabled)});const l=ne(()=>r.options.map(v=>typeof v=="string"||typeof v=="number"?{value:v,disabled:r.disabled,text:v.toString()}:{...v,value:v[r.valueField],disabled:v[r.disabledField],text:v[r.textField]})),u=ne(()=>({required:r.required,ariaInvalid:r.ariaInvalid,state:r.state,validated:r.validated,buttons:r.buttons,stacked:r.stacked,size:r.size})),c=w$(u),d=_$(u);return t({blur:()=>{s.value=!1},focus:()=>{s.value=!0}}),(v,g)=>(ie(),Be("div",xt(P(c),{id:P(o),ref:"_element",role:"radiogroup",class:[P(d),"bv-no-focus-ring"],tabindex:"-1"}),[Ie(v.$slots,"first"),(ie(!0),Be(ht,null,Br(l.value,(b,E)=>(ie(),xe(yU,xt({key:E,ref_for:!0},b),{default:Ce(()=>[Ie(v.$slots,"option",xt({ref_for:!0},b),()=>[it(Ve(b.text),1)])]),_:2},1040))),128)),Ie(v.$slots,"default")],16,gU))}}),bU=Object.freeze(Object.defineProperty({__proto__:null,default:Re({__name:"RadiobuttonControl",setup(e){const{formData:t}=Zt(Xr()),{layoutElement:r,jsonElement:n,savePath:o}=Vr(),a=ln(o),i=ne(()=>{var l;return hv(n)?((l=n.enum)==null?void 0:l.map(u=>{const c=(mv(r)&&r.options.enumTitles||{})[u]||u;return{value:u,text:c}}))||[]:[]}),s=ne(()=>{let l=Mr(r,"stacked",!1);return sx(r.options)?{displayAs:"buttons",buttonVariant:Mr(r,"buttonVariant","primary"),stacked:l}:{stacked:l}});return(l,u)=>(ie(),xe(P(vU),{modelValue:P(t)[P(o)],"onUpdate:modelValue":u[0]||(u[0]=c=>P(t)[P(o)]=c),options:i.value,class:"vjf_radioGroup w-100",id:P(a),buttons:s.value.displayAs==="buttons","button-variant":s.value.buttonVariant||"primary",stacked:s.value.stacked},null,8,["modelValue","options","id","buttons","button-variant","stacked"]))}})},Symbol.toStringTag,{value:"Module"})),wU=["value","disabled"],A$=Re({__name:"BFormSelectOption",props:{disabled:{type:Boolean,default:!1},value:{default:void 0}},setup(e){const t=gt(e,"BFormSelectOption");return(r,n)=>(ie(),Be("option",{value:P(t).value,disabled:P(t).disabled},[Ie(r.$slots,"default")],8,wU))}}),P$=(e,t)=>{const r=a=>typeof a=="object"&&a!==null&&"label"in a,n=a=>{const i=Ut(t);if(typeof a=="string")return{value:a,text:a};if(typeof a=="number")return{value:a,text:`${a}`};if(a instanceof Date)return{value:a,text:a.toLocaleString()};const s=xs(a,i.valueField),l=xs(a,i.textField),u=xs(a,i.disabledField),c=i.optionsField?xs(a,i.optionsField):void 0;return c!==void 0?{label:xs(a,i.labelField)||l,options:c}:{...typeof a=="object"?a:void 0,value:s,text:l,disabled:u}},o=a=>a.map(i=>n(i));return{normalizedOptions:ne(()=>o(Ut(e))),isComplex:r}},_U=["label"],SU=Re({__name:"BFormSelectOptionGroup",props:{disabledField:{default:"disabled"},label:{default:void 0},options:{default:()=>[]},textField:{default:"text"},valueField:{default:"value"}},setup(e){const t=gt(e,"BFormSelectOptionGroup"),{normalizedOptions:r}=P$(()=>t.options,t),n=ne(()=>r.value);return(o,a)=>(ie(),Be("optgroup",{label:P(t).label},[Ie(o.$slots,"first"),(ie(!0),Be(ht,null,Br(n.value,(i,s)=>(ie(),xe(A$,xt({key:s,disabled:i.disabled,value:i.value,ref_for:!0},o.$attrs),{default:Ce(()=>[Ie(o.$slots,"option",xt({ref_for:!0},i),()=>[it(Ve(i.text),1)])]),_:2},1040,["disabled","value"]))),128)),Ie(o.$slots,"default")],8,_U))}}),$U=["id","name","form","multiple","size","disabled","required","aria-required","aria-invalid"],EU=Re({__name:"BFormSelect",props:Tr({ariaInvalid:{type:[Boolean,String],default:void 0},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disabledField:{default:"disabled"},form:{default:void 0},id:{default:void 0},labelField:{default:"label"},multiple:{type:Boolean,default:!1},name:{default:void 0},options:{default:()=>[]},optionsField:{default:"options"},plain:{type:Boolean,default:!1},required:{type:Boolean,default:!1},selectSize:{default:0},size:{default:"md"},state:{type:[Boolean,null],default:null},textField:{default:"text"},valueField:{default:"value"}},{modelValue:{default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){const r=gt(e,"BFormSelect"),n=Kr(e,"modelValue"),o=ar(()=>r.id,"input"),a=mo(()=>r.selectSize),i=vi(()=>r.state),s=Jr("_input"),{focused:l}=So(s,{initialValue:r.autofocus}),u=ne(()=>[i.value,{"form-control":r.plain,[`form-control-${r.size}`]:r.size!=="md"&&r.plain,"form-select":!r.plain,[`form-select-${r.size}`]:r.size!=="md"&&!r.plain}]),c=ne(()=>a.value||r.plain?a.value:void 0),d=cf(()=>r.ariaInvalid,()=>r.state),{normalizedOptions:v,isComplex:g}=P$(()=>r.options,r),b=ne(()=>v.value),E=ne({get:()=>n.value,set:y=>{n.value=y}});return t({blur:()=>{l.value=!1},element:s,focus:()=>{l.value=!0}}),(y,m)=>yl((ie(),Be("select",{id:P(o),ref:"_input","onUpdate:modelValue":m[0]||(m[0]=p=>E.value=p),class:nt(u.value),name:P(r).name,form:P(r).form||void 0,multiple:P(r).multiple||void 0,size:c.value,disabled:P(r).disabled,required:P(r).required||void 0,"aria-required":P(r).required||void 0,"aria-invalid":P(d)},[Ie(y.$slots,"first"),(ie(!0),Be(ht,null,Br(b.value,(p,_)=>(ie(),Be(ht,{key:_},[P(g)(p)?(ie(),xe(SU,{key:0,label:p.label,options:p.options,"value-field":P(r).valueField,"text-field":P(r).textField,"disabled-field":P(r).disabledField},null,8,["label","options","value-field","text-field","disabled-field"])):(ie(),xe(A$,{key:1,value:p.value,disabled:p.disabled},{default:Ce(()=>[Ie(y.$slots,"option",xt({ref_for:!0},p),()=>[it(Ve(p.text),1)])]),_:2},1032,["value","disabled"]))],64))),128)),Ie(y.$slots,"default")],10,$U)),[[pP,E.value]])}}),OU=Object.freeze(Object.defineProperty({__proto__:null,default:Re({__name:"SelectControl",setup(e){const{formData:t}=Zt(Xr()),{layoutElement:r,jsonElement:n,savePath:o}=Vr(),a=ln(o),i=ne(()=>n.enum?mv(r)?n.enum.map(s=>typeof s!="string"&&typeof s!="number"?s:{value:s,text:r.options.enumTitles[s]||s}):n.enum:[]);return(s,l)=>(ie(),xe(P(EU),{modelValue:P(t)[P(o)],"onUpdate:modelValue":l[0]||(l[0]=u=>P(t)[P(o)]=u),options:i.value,class:"vjf_select",id:P(a)},null,8,["modelValue","options","id"]))}})},Symbol.toStringTag,{value:"Module"})),AU=(e,t)=>{const r=ot(0),n=Wr(at(t)),o=mo(()=>n.value.maxRows||NaN,{method:"parseInt",nanToZero:!0}),a=mo(()=>n.value.rows||NaN,{method:"parseInt",nanToZero:!0}),i=ne(()=>Math.max(a.value||2,2)),s=ne(()=>Math.max(i.value,o.value||0)),l=ne(()=>i.value===s.value?i.value:null),u=async()=>{if(!e.value||!RS(e.value)){r.value=null;return}const d=getComputedStyle(e.value),v=Number.parseFloat(d.lineHeight)||1,g=(Number.parseFloat(d.borderTopWidth)||0)+(Number.parseFloat(d.borderBottomWidth)||0),b=(Number.parseFloat(d.paddingTop)||0)+(Number.parseFloat(d.paddingBottom)||0),E=g+b,y=v*i.value+E,m=e.value.style.height||d.height;r.value="auto",await _r();const{scrollHeight:p}=e.value;r.value=m,await _r();const _=Math.max((p-b)/v,2),T=Math.min(Math.max(_,i.value),s.value),O=Math.max(Math.ceil(T*v+E),y);if(n.value.noAutoShrink&&(Number.parseFloat(m.toString())||0)>O){r.value=m;return}r.value=`${O}px`};$a(u);const c=ne(()=>({resize:"none",height:typeof r.value=="string"?r.value:r.value?`${r.value}px`:void 0}));return{onInput:u,computedStyles:c,computedRows:l}},PU=["id","name","form","value","disabled","placeholder","required","autocomplete","readonly","aria-required","aria-invalid","rows","wrap"],xU=Re({__name:"BFormTextarea",props:Tr({noResize:{type:Boolean,default:!1},rows:{default:2},wrap:{default:"soft"},noAutoShrink:{type:Boolean,default:!1},maxRows:{default:void 0},ariaInvalid:{type:[Boolean,String],default:void 0},autocomplete:{default:void 0},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},form:{default:void 0},formatter:{type:Function,default:void 0},id:{default:void 0},lazyFormatter:{type:Boolean,default:!1},list:{default:void 0},name:{default:void 0},placeholder:{default:void 0},plaintext:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},size:{default:void 0},state:{type:[Boolean,null],default:void 0},debounce:{default:0},debounceMaxWait:{default:NaN}},{modelValue:{default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){const r=gt(e,"BFormTextarea"),[n,o]=Kr(e,"modelValue",{set:T=>$$(T,o)}),a=Jr("_input"),{computedId:i,forceUpdateKey:s,computedAriaInvalid:l,onInput:u,stateClass:c,onChange:d,onBlur:v,focus:g,blur:b}=E$(r,a,n,o),E=ne(()=>[c.value,r.plaintext?"form-control-plaintext":"form-control",{[`form-control-${r.size}`]:!!r.size}]),{computedStyles:y,onInput:m,computedRows:p}=AU(a,ne(()=>({maxRows:r.maxRows,rows:r.rows,noAutoShrink:r.noAutoShrink}))),_=ne(()=>({resize:r.noResize?"none":void 0,...r.maxRows||r.noAutoShrink?y.value:void 0}));return t({blur:b,element:a,focus:g}),(T,O)=>(ie(),Be("textarea",{id:P(i),ref:"_input",key:P(s),class:nt(E.value),name:P(r).name||void 0,form:P(r).form||void 0,value:P(n)??void 0,disabled:P(r).disabled,placeholder:P(r).placeholder,required:P(r).required||void 0,autocomplete:P(r).autocomplete||void 0,readonly:P(r).readonly||P(r).plaintext,"aria-required":P(r).required||void 0,"aria-invalid":P(l),rows:P(p)||2,style:ya(_.value),wrap:P(r).wrap||void 0,onInput:O[0]||(O[0]=j=>{P(u)(j),P(m)()}),onChange:O[1]||(O[1]=(...j)=>P(d)&&P(d)(...j)),onBlur:O[2]||(O[2]=(...j)=>P(v)&&P(v)(...j))},null,46,PU))}}),TU=Object.freeze(Object.defineProperty({__proto__:null,default:Re({__name:"StringControl",setup(e){const{formData:t}=Zt(Xr()),{layoutElement:r,jsonElement:n,savePath:o}=Vr(),a=ln(o),i=ne(()=>{var s,l;const u=((s=r.options)==null?void 0:s.format)||((l=n.format)==null?void 0:l.replace("date-time","datetime-local"));if(fx(u))return u});return(s,l)=>{var u;return(u=P(r).options)!=null&&u.multi?(ie(),xe(P(xU),{key:0,modelValue:P(t)[P(o)],"onUpdate:modelValue":l[0]||(l[0]=c=>P(t)[P(o)]=c),class:"vjf_textarea",id:P(a),minlength:P(n).minLength,maxlength:P(n).maxLength},null,8,["modelValue","id","minlength","maxlength"])):(ie(),xe(P(O$),{key:1,modelValue:P(t)[P(o)],"onUpdate:modelValue":l[1]||(l[1]=c=>P(t)[P(o)]=c),class:"vjf_input",id:P(a),minlength:P(n).minLength,maxlength:P(n).maxLength,step:P(n).multipleOf,min:P(n).minimum,max:P(n).maximum,type:i.value},null,8,["modelValue","id","minlength","maxlength","step","min","max","type"]))}}})},Symbol.toStringTag,{value:"Module"})),jU=["type","disabled","aria-label"],kU=Re({__name:"BCloseButton",props:{ariaLabel:{default:"Close"},disabled:{type:Boolean,default:!1},type:{default:"button"}},emits:["click"],setup(e,{emit:t}){const r=gt(e,"BCloseButton"),n=t;return(o,a)=>(ie(),Be("button",{type:P(r).type,class:"btn-close",disabled:P(r).disabled,"aria-label":P(r).ariaLabel,onClick:a[0]||(a[0]=i=>n("click",i))},null,8,jU))}}),CU=["id"],NU=Re({__name:"BFormTag",props:{disabled:{type:Boolean,default:!1},id:{default:void 0},noRemove:{type:Boolean,default:!1},pill:{type:Boolean,default:!1},removeLabel:{default:"Remove tag"},tag:{default:"span"},title:{default:void 0},variant:{default:"secondary"}},emits:["remove"],setup(e,{emit:t}){const r=gt(e,"BFormTag"),n=t,o=zn(),a=ar(()=>r.id),i=ne(()=>{var c;return((((c=o.default)==null?void 0:c.call(o,{})[0].children)??"").toString()||r.title)??""}),s=ne(()=>`${a.value}taglabel__`),l=Eo(r),u=ne(()=>[l.value,{"rounded-pill":r.pill,disabled:r.disabled}]);return(c,d)=>(ie(),xe(_t(P(r).tag),{id:P(a),title:i.value,class:nt(["badge b-form-tag d-inline-flex align-items-center mw-100",u.value]),"aria-labelledby":s.value},{default:Ce(()=>[mt("span",{id:s.value,class:"b-form-tag-content flex-grow-1 text-truncate"},[Ie(c.$slots,"default",{},()=>[it(Ve(i.value),1)])],8,CU),!P(r).disabled&&!P(r).noRemove?(ie(),xe(kU,{key:0,"aria-keyshortcuts":"Delete","aria-label":P(r).removeLabel,class:"b-form-tag-remove","aria-describedby":s.value,"aria-controls":P(r).id,onClick:d[0]||(d[0]=v=>n("remove",i.value))},null,8,["aria-label","aria-describedby","aria-controls"])):ut("",!0)]),_:3},8,["id","title","class","aria-labelledby"]))}}),IU=["id"],RU=["id","for","aria-live"],BU=["id","aria-live"],DU=["id"],FU=["aria-controls"],MU={role:"group",class:"d-flex"},VU=["id","disabled","value","type","placeholder","form","required","aria-required"],UU=["disabled"],LU={"aria-live":"polite","aria-atomic":"true"},zU={key:0,class:"d-block invalid-feedback"},qU={key:1,class:"form-text text-body-secondary"},WU={key:2,class:"form-text text-body-secondary"},HU=["name","value"],GU=Re({__name:"BFormTags",props:Tr({addButtonText:{default:"Add"},addButtonVariant:{default:"outline-secondary"},addOnChange:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},duplicateTagText:{default:"Duplicate tag(s)"},form:{default:void 0},inputAttrs:{default:void 0},inputClass:{default:void 0},inputId:{default:void 0},inputType:{default:"text"},invalidTagText:{default:"Invalid tag(s)"},limit:{default:void 0},limitTagsText:{default:"Tag limit reached"},name:{default:void 0},noAddOnEnter:{type:Boolean,default:!1},noOuterFocus:{type:Boolean,default:!1},noTagRemove:{type:Boolean,default:!1},placeholder:{default:"Add tag..."},removeOnDelete:{type:Boolean,default:!1},required:{type:Boolean,default:!1},separator:{default:void 0},size:{default:"md"},state:{type:[Boolean,null],default:null},tagClass:{default:void 0},tagPills:{type:Boolean,default:!1},tagRemoveLabel:{default:void 0},tagRemovedLabel:{default:"Tag removed"},tagValidator:{type:Function,default:()=>!0},tagVariant:{default:"secondary"}},{modelValue:{default:()=>[]},modelModifiers:{}}),emits:Tr(["blur","focus","focusin","focusout","tag-state"],["update:modelValue"]),setup(e,{expose:t,emit:r}){const n=gt(e,"BFormTags"),o=r,a=Kr(e,"modelValue"),i=ar(),s=mo(()=>n.limit??NaN),l=vi(()=>n.state),u=Jr("_input"),{focused:c}=So(u,{initialValue:n.autofocus}),d=ne(()=>n.inputId||`${i.value}input__`),v=ot([...a.value]),g=ot(""),b=ot(a.value.length>0),E=ot(""),y=ot([]),m=ot([]),p=ot([]);lT(a,v,{direction:"ltr",transform:{ltr:Ee=>[...Ee]}});const _=ne(()=>[l.value,{[`form-control-${n.size}`]:n.size!=="md",disabled:n.disabled,focus:c.value}]),T=ne(()=>v.value.includes(g.value)),O=ne(()=>g.value===""?!1:!n.tagValidator(g.value)),j=ne(()=>v.value.length===s.value),C=ne(()=>!O.value&&!T.value),Z=ne(()=>({addButtonText:n.addButtonText,addButtonVariant:n.addButtonVariant,addTag:Oe,disableAddButton:C.value,disabled:n.disabled,duplicateTagText:n.duplicateTagText,duplicateTags:p.value,form:n.form,inputAttrs:{...n.inputAttrs,disabled:n.disabled,form:n.form,id:d.value,value:g.value},inputClass:n.inputClass,inputHandlers:{input:ee,keydown:ve,change:fe},inputId:d.value,inputType:n.inputType,invalidTagText:n.invalidTagText,invalidTags:m.value,isDuplicate:T.value,isInvalid:O.value,isLimitReached:j.value,limitTagsText:n.limitTagsText,limit:s.value,noTagRemove:n.noTagRemove,placeholder:n.placeholder,removeTag:be,required:n.required,separator:n.separator,size:n.size,state:n.state,tagClass:n.tagClass,tagPills:n.tagPills,tagRemoveLabel:n.tagRemoveLabel,tagVariant:n.tagVariant,tags:v.value})),V=Ee=>{if(n.disabled){Ee.target.blur();return}o("focusin",Ee)},U=Ee=>{n.disabled||n.noOuterFocus||(c.value=!0,o("focus",Ee))},W=Ee=>{c.value=!1,o("blur",Ee)},ee=Ee=>{var ue,q;const D=typeof Ee=="string"?Ee:Ee.target.value;if(b.value=!1,(ue=n.separator)!=null&&ue.includes(D.charAt(0))&&D.length>0){u.value&&(u.value.value="");return}if(g.value=D,(q=n.separator)!=null&&q.includes(D.charAt(D.length-1))){Oe(D.slice(0,D.length-1));return}y.value=n.tagValidator(D)&&!T.value?[D]:[],m.value=n.tagValidator(D)?[]:[D],p.value=T.value?[D]:[],o("tag-state",y.value,m.value,p.value)},fe=Ee=>{n.addOnChange&&(ee(Ee),T.value||Oe(g.value))},ve=Ee=>{if(Ee.key==="Enter"&&!n.noAddOnEnter){Oe(g.value);return}(Ee.key==="Backspace"||Ee.key==="Delete")&&n.removeOnDelete&&g.value===""&&b.value&&v.value.length>0?be(v.value[v.value.length-1]):b.value=!0};CS(ve,{target:u});const Ne=ne(()=>{if(n.separator)return typeof n.separator=="string"?n.separator:n.separator.join("")}),Te=ne(()=>{if(Ne.value)return new RegExp(`[${NM(Ne.value)}]+`)}),Oe=Ee=>{Ee=(Ee??g.value).trim();const ue=Te.value?Ee.split(Te.value).map(F=>F.trim()):[Ee],q=[];for(const F of ue)if(!(F===""||T.value||!n.tagValidator(F))){if(s.value&&j.value)break;q.push(F)}const D=[...a.value,...q];g.value="",b.value=!0,a.value=D,c.value=!0},be=Ee=>{const ue=v.value.indexOf((Ee==null?void 0:Ee.toString())??"");ue!==-1&&(E.value=v.value.splice(ue,1).toString(),a.value=v.value)};return t({blur:()=>{c.value=!1},element:u,focus:()=>{c.value=!0},inputValue:g}),(Ee,ue)=>(ie(),Be("div",{id:P(i),class:nt(["b-form-tags form-control h-auto",_.value]),role:"group",tabindex:"-1",onFocusin:V,onFocusout:ue[1]||(ue[1]=q=>o("focusout",q))},[mt("output",{id:`${P(i)}selected_tags__`,class:"visually-hidden",for:d.value,"aria-live":P(c)?"polite":"off","aria-atomic":"true","aria-relevant":"additions text"},Ve(v.value.join(", ")),9,RU),mt("div",{id:`${P(i)}removed_tags__`,role:"status","aria-live":P(c)?"assertive":"off","aria-atomic":"true",class:"visually-hidden"}," ("+Ve(P(n).tagRemovedLabel)+") "+Ve(E.value),9,BU),Ie(Ee.$slots,"default",ga(Pl(Z.value)),()=>[mt("ul",{id:`${P(i)}tag_list__`,class:"b-form-tags-list list-unstyled mb-0 d-flex flex-wrap align-items-center"},[(ie(!0),Be(ht,null,Br(v.value,(q,D)=>Ie(Ee.$slots,"tag",{key:D,tag:q,tagClass:P(n).tagClass,tagVariant:P(n).tagVariant,tagPills:P(n).tagPills,removeTag:be},()=>[(ie(),xe(NU,{key:q,class:nt(P(n).tagClass),tag:"li",variant:P(n).tagVariant,pill:P(n).tagPills,onRemove:be},{default:Ce(()=>[it(Ve(q),1)]),_:2},1032,["class","variant","pill"]))])),128)),mt("li",{role:"none","aria-live":"off",class:"b-from-tags-field flex-grow-1","aria-controls":`${P(i)}tag_list__`},[mt("div",MU,[mt("input",xt({id:d.value,ref:"_input",disabled:P(n).disabled,value:g.value,type:P(n).inputType,placeholder:P(n).placeholder,class:"b-form-tags-input w-100 flex-grow-1 p-0 m-0 bg-transparent border-0",style:{outline:"currentcolor none 0px","min-width":"5rem"}},P(n).inputAttrs,{form:P(n).form,required:P(n).required||void 0,"aria-required":P(n).required||void 0,onInput:ee,onChange:fe,onFocus:U,onBlur:W}),null,16,VU),C.value?(ie(),Be("button",{key:0,type:"button",class:nt(["btn b-form-tags-button py-0",[Ee.inputClass,{[`btn-${P(n).addButtonVariant}`]:P(n).addButtonVariant!==null,"disabled invisible":g.value.length===0}]]),style:{"font-size":"90%"},disabled:P(n).disabled||g.value.length===0||j.value,onClick:ue[0]||(ue[0]=q=>Oe(g.value))},[Ie(Ee.$slots,"add-button-text",{},()=>[it(Ve(P(n).addButtonText),1)])],10,UU)):ut("",!0)])],8,FU)],8,DU),mt("div",LU,[O.value?(ie(),Be("div",zU,Ve(P(n).invalidTagText)+": "+Ve(g.value),1)):ut("",!0),T.value?(ie(),Be("small",qU,Ve(P(n).duplicateTagText)+": "+Ve(g.value),1)):ut("",!0),v.value.length===P(n).limit?(ie(),Be("small",WU,Ve(P(n).limitTagsText),1)):ut("",!0)])]),P(n).name?(ie(!0),Be(ht,{key:0},Br(v.value,(q,D)=>(ie(),Be("input",{key:D,type:"hidden",name:P(n).name,value:q},null,8,HU))),128)):ut("",!0)],42,IU))}}),JU=Object.freeze(Object.defineProperty({__proto__:null,default:Re({__name:"TagsControl",setup(e){const{formData:t}=Zt(Xr()),{layoutElement:r,savePath:n}=Vr(),o=ln(n);return(a,i)=>{var s,l,u,c;return ie(),xe(P(GU),{variant:"",modelValue:P(t)[P(n)],"onUpdate:modelValue":i[0]||(i[0]=d=>P(t)[P(n)]=d),separator:" ",id:P(o),class:"vjf_tags",tagPills:P(zl)(P(r).options)&&((l=(s=P(r).options)==null?void 0:s.tags)==null?void 0:l.pills),tagVariant:P(zl)(P(r).options)?P(dx)((c=(u=P(r).options)==null?void 0:u.tags)==null?void 0:c.variant):void 0},null,8,["modelValue","id","tagPills","tagVariant"])}}})},Symbol.toStringTag,{value:"Module"})),rm=(e,t,r,n=r)=>t.reduce((o,a)=>(e[a]&&o.push([n,a.replace(r,""),e[a]].filter(i=>i&&typeof i!="boolean").join("-").toLowerCase()),o),[]),x$=Re({__name:"BCol",props:{alignSelf:{default:void 0},tag:{default:"div"},order:{default:void 0},offset:{default:void 0},cols:{default:void 0},col:{type:Boolean,default:!1},offsetSm:{default:void 0},offsetMd:{default:void 0},offsetLg:{default:void 0},offsetXl:{default:void 0},offsetXxl:{default:void 0},orderSm:{default:void 0},orderMd:{default:void 0},orderLg:{default:void 0},orderXl:{default:void 0},orderXxl:{default:void 0},sm:{type:[Boolean,Number,String],default:!1},md:{type:[Boolean,Number,String],default:!1},lg:{type:[Boolean,Number,String],default:!1},xl:{type:[Boolean,Number,String],default:!1},xxl:{type:[Boolean,Number,String],default:!1}},setup(e){const t=gt(e,"BCol"),r=ne(()=>[...rm({sm:t.sm,md:t.md,lg:t.lg,xl:t.xl,xxl:t.xxl},["sm","md","lg","xl","xxl"],"col"),...rm({order:t.order,orderLg:t.orderLg,orderMd:t.orderMd,orderSm:t.orderSm,orderXl:t.orderXl,orderXxl:t.orderXxl},["order","orderLg","orderMd","orderSm","orderXl","orderXxl"],"order"),...rm({offset:t.offset,offsetLg:t.offsetLg,offsetMd:t.offsetMd,offsetSm:t.offsetSm,offsetXl:t.offsetXl,offsetXxl:t.offsetXxl},["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXxl"],"offset")]),n=ne(()=>[r.value,{col:t.col||!r.value.some(o=>o.startsWith("col-"))&&!t.cols,[`col-${t.cols}`]:t.cols!==void 0,[`offset-${t.offset}`]:t.offset!==void 0,[`order-${t.order}`]:t.order!==void 0,[`align-self-${t.alignSelf}`]:t.alignSelf!==void 0}]);return(o,a)=>(ie(),xe(_t(P(t).tag),{class:nt(n.value)},{default:Ce(()=>[Ie(o.$slots,"default")]),_:3},8,["class"]))}}),KU=Re({__name:"BFormInvalidFeedback",props:{ariaLive:{default:void 0},forceShow:{type:Boolean,default:!1},id:{default:void 0},role:{default:void 0},state:{type:[Boolean,null],default:null},tag:{default:"div"},text:{default:void 0},tooltip:{type:Boolean,default:!1}},setup(e){const t=gt(e,"BFormInvalidFeedback"),r=ne(()=>t.forceShow===!0||t.state===!1),n=ne(()=>({"d-block":r.value,"invalid-feedback":!t.tooltip,"invalid-tooltip":t.tooltip}));return(o,a)=>(ie(),xe(_t(P(t).tag),{id:P(t).id,role:P(t).role,"aria-live":P(t).ariaLive,"aria-atomic":P(t).ariaLive?!0:void 0,class:nt(n.value)},{default:Ce(()=>[Ie(o.$slots,"default",{},()=>[it(Ve(P(t).text),1)])]),_:3},8,["id","role","aria-live","aria-atomic","class"]))}}),ZU=Re({__name:"BFormRow",props:{tag:{default:"div"}},setup(e){const t=gt(e,"BFormRow");return(r,n)=>(ie(),xe(_t(P(t).tag),{class:"row d-flex flex-wrap"},{default:Ce(()=>[Ie(r.$slots,"default")]),_:3}))}}),YU=Re({__name:"BFormText",props:{id:{default:void 0},inline:{type:Boolean,default:!1},tag:{default:"small"},text:{default:void 0},textVariant:{default:"body-secondary"}},setup(e){const t=gt(e,"BFormText"),r=Eo(t),n=ne(()=>[r.value,{"form-text":!t.inline}]);return(o,a)=>(ie(),xe(_t(P(t).tag),{id:P(t).id,class:nt(n.value)},{default:Ce(()=>[Ie(o.$slots,"default",{},()=>[it(Ve(P(t).text),1)])]),_:3},8,["id","class"]))}}),XU=Re({__name:"BFormValidFeedback",props:{ariaLive:{default:void 0},forceShow:{type:Boolean,default:!1},id:{default:void 0},role:{default:void 0},state:{type:[Boolean,null],default:null},tag:{default:"div"},text:{default:void 0},tooltip:{type:Boolean,default:!1}},setup(e){const t=gt(e,"BFormInvalidFeedback"),r=ne(()=>t.forceShow===!0||t.state===!0),n=ne(()=>({"d-block":r.value,"valid-feedback":!t.tooltip,"valid-tooltip":t.tooltip}));return(o,a)=>(ie(),xe(_t(P(t).tag),{id:P(t).id,role:P(t).role,"aria-live":P(t).ariaLive,"aria-atomic":P(t).ariaLive?!0:void 0,class:nt(n.value)},{default:Ce(()=>[Ie(o.$slots,"default",{},()=>[it(Ve(P(t).text),1)])]),_:3},8,["id","role","aria-live","aria-atomic","class"]))}}),T$=(e,t)=>t+(e?kM(e):""),QU={key:0,ref:"_content",class:"form-floating"},e3=Re({__name:"BFormGroup",props:{contentCols:{type:[Boolean,String,Number],default:void 0},labelCols:{type:[Boolean,String,Number],default:void 0},labelAlign:{default:void 0},ariaInvalid:{type:[Boolean,String],default:void 0},description:{default:void 0},disabled:{type:Boolean,default:!1},feedbackAriaLive:{default:"assertive"},floating:{type:Boolean,default:!1},id:{default:void 0},invalidFeedback:{default:void 0},label:{default:void 0},labelClass:{default:void 0},labelFor:{default:void 0},labelSize:{default:void 0},labelVisuallyHidden:{type:Boolean,default:!1},state:{type:[Boolean,null],default:null},tooltip:{type:Boolean,default:!1},validFeedback:{default:void 0},validated:{type:Boolean,default:!1},contentColsSm:{type:[Boolean,String,Number],default:void 0},contentColsMd:{type:[Boolean,String,Number],default:void 0},contentColsLg:{type:[Boolean,String,Number],default:void 0},contentColsXl:{type:[Boolean,String,Number],default:void 0},labelColsSm:{type:[Boolean,String,Number],default:void 0},labelColsMd:{type:[Boolean,String,Number],default:void 0},labelColsLg:{type:[Boolean,String,Number],default:void 0},labelColsXl:{type:[Boolean,String,Number],default:void 0},labelAlignSm:{default:void 0},labelAlignMd:{default:void 0},labelAlignLg:{default:void 0},labelAlignXl:{default:void 0}},setup(e){const t=["input","select","textarea"],r=gt(e,"BFormGroup"),n=zn(),o=Rh(),a=Rh(),i=at(()=>r.state),s=ot([]);fr(AS,W=>(s.value=[W],{state:i}));const l=ne(()=>r.labelFor!==void 0?r.labelFor:s.value[0]&&s.value[0].value?s.value[0].value:null),u=["xs","sm","md","lg","xl"],c=(W,ee)=>u.reduce((fe,ve)=>{const Ne=T$(ve==="xs"?"":ve,`${ee}Cols`);let Te=W[Ne];if(Te=Te===""?!0:Te||!1,typeof Te!="boolean"&&Te!=="auto"){const Oe=Number.parseInt(Te);Te=Number.isNaN(Oe)?0:Oe,Te=Te>0?Te:!1}return Te&&(ve==="xs"?fe[typeof Te=="boolean"?"col":"cols"]=Te:fe[ve||(typeof Te=="boolean"?"col":"cols")]=Te),fe},{}),d=Jr("_content"),v=ne(()=>c(r,"content")),g=ne(()=>((W,ee)=>u.reduce((fe,ve)=>{const Ne=T$(ve==="xs"?"":ve,`${ee}Align`),Te=W[Ne]||null;return Te&&(ve==="xs"?fe.push(`text-${Te}`):fe.push(`text-${ve}-${Te}`)),fe},[]))(r,"label")),b=ne(()=>c(r,"label")),E=ne(()=>Object.keys(v.value).length>0||Object.keys(b.value).length>0),y=vi(i),m=cf(()=>r.ariaInvalid,i),p=W=>{if(l.value||d.value===null)return;const{target:ee}=W,fe=ee?ee.tagName:"";if([...t,"a","button","label"].indexOf(fe)!==-1)return;const ve=[...d.value.querySelectorAll(t.map(Te=>`${Te}:not([disabled])`).join())].filter(RS),[Ne]=ve;ve.length===1&&Ne instanceof HTMLElement&&AM(Ne)},_=ar(()=>r.id),T=ar(void 0,"_BV_label_"),O=ne(()=>l.value?"label":"legend"),j=ne(()=>[E.value?"col-form-label":"form-label",{"bv-no-focus-ring":!l.value,"col-form-label":E.value||!l.value,"pt-0":!E.value&&!l.value,"d-block":!E.value&&l.value,[`col-form-label-${r.labelSize}`]:!!r.labelSize,"visually-hidden":r.labelVisuallyHidden},g.value,r.labelClass]),C=ar(void 0,"_BV_feedback_invalid_"),Z=ar(void 0,"_BV_feedback_valid_"),V=ar(void 0,"_BV_description_"),U=ne(()=>!l.value);return(W,ee)=>(ie(),xe(_t(U.value?"fieldset":"div"),{id:P(_),disabled:U.value?P(r).disabled:null,role:U.value?null:"group","aria-invalid":P(m),"aria-labelledby":U.value&&E.value?P(T):null,class:nt([[P(y),{"was-validated":P(r).validated}],"b-form-group"])},{default:Ce(()=>[Ze(P(a).define,null,{default:Ce(()=>[n["invalid-feedback"]||P(r).invalidFeedback?(ie(),xe(KU,{key:0,id:P(C),"aria-live":P(r).feedbackAriaLive,state:i.value,tooltip:P(r).tooltip},{default:Ce(()=>[Ie(W.$slots,"invalid-feedback",{},()=>[it(Ve(P(r).invalidFeedback),1)])]),_:3},8,["id","aria-live","state","tooltip"])):ut("",!0),n["valid-feedback"]||P(r).validFeedback?(ie(),xe(XU,{key:1,id:P(Z),"aria-live":P(r).feedbackAriaLive,state:i.value,tooltip:P(r).tooltip},{default:Ce(()=>[Ie(W.$slots,"valid-feedback",{},()=>[it(Ve(P(r).validFeedback),1)])]),_:3},8,["id","aria-live","state","tooltip"])):ut("",!0),n.description||P(r).description?(ie(),xe(YU,{key:2,id:P(V)},{default:Ce(()=>[Ie(W.$slots,"description",{},()=>[it(Ve(P(r).description),1)])]),_:3},8,["id"])):ut("",!0)]),_:3}),Ze(P(o).define,null,{default:Ce(()=>[n.label||P(r).label||E.value?(ie(),Be(ht,{key:0},[E.value?(ie(),xe(x$,ga(xt({key:0},b.value)),{default:Ce(()=>[(ie(),xe(_t(O.value),{id:P(T),for:l.value||null,tabindex:U.value?"-1":null,class:nt(j.value),onClick:ee[0]||(ee[0]=fe=>U.value?p:null)},{default:Ce(()=>[Ie(W.$slots,"label",{},()=>[it(Ve(P(r).label),1)])]),_:3},8,["id","for","tabindex","class"]))]),_:3},16)):(ie(),xe(_t(O.value),{key:1,id:P(T),for:l.value||null,tabindex:U.value?"-1":null,class:nt(j.value),onClick:ee[1]||(ee[1]=fe=>U.value?p:null)},{default:Ce(()=>[Ie(W.$slots,"label",{},()=>[it(Ve(P(r).label),1)])]),_:3},8,["id","for","tabindex","class"]))],64)):ut("",!0)]),_:3}),E.value?(ie(),xe(ZU,{key:0},{default:Ce(()=>[Ze(P(o).reuse),Ze(x$,xt(v.value,{ref:"_content"}),{default:Ce(()=>[Ie(W.$slots,"default",{id:P(_),ariaDescribedby:null,descriptionId:P(V),labelId:P(T)}),Ze(P(a).reuse)]),_:3},16)]),_:3})):(ie(),Be(ht,{key:1},[P(r).floating&&!E.value?(ie(),Be("div",QU,[Ie(W.$slots,"default",{id:P(_),ariaDescribedby:null,descriptionId:P(V),labelId:P(T)}),Ze(P(o).reuse),Ze(P(a).reuse)],512)):(ie(),Be(ht,{key:1},[Ze(P(o).reuse),Ie(W.$slots,"default",{id:P(_),ariaDescribedby:null,descriptionId:P(V),labelId:P(T)}),Ze(P(a).reuse)],64))],64))]),_:3},8,["id","disabled","role","aria-invalid","aria-labelledby","class"]))}}),t3={key:0,class:"input-group-text"},r3={key:0,class:"input-group-text"},n3=Re({__name:"BInputGroup",props:{append:{default:void 0},id:{default:void 0},prepend:{default:void 0},size:{default:"md"},tag:{default:"div"}},setup(e){fr(fM,!0);const t=gt(e,"BInputGroup"),r=ne(()=>({[`input-group-${t.size}`]:t.size!=="md"})),n=ne(()=>!!t.append),o=ne(()=>!!t.prepend);return(a,i)=>(ie(),xe(_t(P(t).tag),{id:P(t).id,class:nt(["input-group",r.value]),role:"group"},{default:Ce(()=>[Ie(a.$slots,"prepend",{},()=>[o.value?(ie(),Be("span",t3,[mt("span",null,Ve(P(t).prepend),1)])):ut("",!0)]),Ie(a.$slots,"default"),Ie(a.$slots,"append",{},()=>[n.value?(ie(),Be("span",r3,[mt("span",null,Ve(P(t).append),1)])):ut("",!0)])]),_:3},8,["id","class"]))}}),j$=Re({__name:"BInputGroupText",props:{tag:{default:"div"},text:{default:void 0}},setup(e){const t=gt(e,"BInputGroupText");return(r,n)=>(ie(),xe(_t(P(t).tag),{class:"input-group-text"},{default:Ce(()=>[Ie(r.$slots,"default",{},()=>[it(Ve(P(t).text),1)])]),_:3}))}}),o3={key:1},a3=Object.freeze(Object.defineProperty({__proto__:null,default:Re({__name:"FormFieldWrapper",props:{label:{},labelFor:{}},setup(e){const t=e,{jsonElement:r,layoutElement:n}=Vr(),o=ne(()=>{var s,l;return r.type==="boolean"||r.type==="object"||((s=n.options)==null?void 0:s.label)===!1||r.type==="array"&&!(pv(r)&&r.items.enum)&&!r.enum&&!(zl(n.options)&&(l=n.options.tags)!=null&&l.enabled)}),a=zn(),i=ne(()=>{var s,l;return a.prepend||a.append||((s=n.options)==null?void 0:s.prepend)||((l=n.options)==null?void 0:l.append)});return(s,l)=>(ie(),xe(P(e3),{label:o.value?"":t.label,"label-for":t.labelFor,description:P(r).description},{default:Ce(()=>[i.value?(ie(),xe(P(n3),{key:0},{default:Ce(()=>[Ie(s.$slots,"prepend",{},()=>{var u;return[(u=P(n).options)!=null&&u.prepend?(ie(),xe(P(j$),{key:0},{default:Ce(()=>[it(Ve(P(n).options.prepend),1)]),_:1})):ut("",!0)]}),Ie(s.$slots,"default"),Ie(s.$slots,"append",{},()=>{var u;return[(u=P(n).options)!=null&&u.append?(ie(),xe(P(j$),{key:0},{default:Ce(()=>[it(Ve(P(n).options.append),1)]),_:1})):ut("",!0)]})]),_:3})):(ie(),Be("div",o3,[Ie(s.$slots,"default")]))]),_:3},8,["label","label-for","description"]))}})},Symbol.toStringTag,{value:"Module"})),i3=e=>{const t=(r,n)=>{const o=n===null?"":`-${n}`;return r==="circle"?`rounded${o}-circle`:r==="pill"?`rounded${o}-pill`:typeof r=="number"||r==="0"||r==="1"||r==="2"||r==="3"||r==="4"||r==="5"?`rounded${o}-${r}`:r==="none"?`rounded${o}-0`:r==="sm"?`rounded${o}-1`:r==="lg"?`rounded${o}-5`:`rounded${o}`};return ne(()=>{const r=Ut(e);return{[`${t(r.rounded,null)}`]:!!r.rounded,[`${t(r.roundedTop,"top")}`]:!!r.roundedTop,[`${t(r.roundedBottom,"bottom")}`]:!!r.roundedBottom,[`${t(r.roundedStart,"start")}`]:!!r.roundedStart,[`${t(r.roundedEnd,"end")}`]:!!r.roundedEnd}})},s3=Re({__name:"BImg",props:{blank:{type:Boolean,default:!1},blankColor:{default:"transparent"},block:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},fluidGrow:{type:Boolean,default:!1},height:{default:void 0},tag:{default:"img"},lazy:{type:Boolean,default:!1},sizes:{default:void 0},src:{default:void 0},srcset:{default:void 0},thumbnail:{type:Boolean,default:!1},width:{default:void 0},placement:{default:void 0},rounded:{type:[Boolean,String,Number],default:!1},roundedTop:{type:[Boolean,String,Number],default:void 0},roundedBottom:{type:[Boolean,String,Number],default:void 0},roundedStart:{type:[Boolean,String,Number],default:void 0},roundedEnd:{type:[Boolean,String,Number],default:void 0}},setup(e){const t=gt(e,"BImg"),r=mo(()=>t.height??NaN),n=mo(()=>t.width??NaN),o=i3(()=>({rounded:t.rounded,roundedTop:t.roundedTop,roundedBottom:t.roundedBottom,roundedStart:t.roundedStart,roundedEnd:t.roundedEnd})),a=ne(()=>typeof t.srcset=="string"?t.srcset.split(",").filter(v=>v).join(","):Array.isArray(t.srcset)?t.srcset.filter(v=>v).join(","):void 0),i=ne(()=>typeof t.sizes=="string"?t.sizes.split(",").filter(v=>v).join(","):Array.isArray(t.sizes)?t.sizes.filter(v=>v).join(","):void 0),s=ne(()=>{const v=Number.isNaN(n.value)?void 0:n.value,g=Number.isNaN(r.value)?void 0:r.value;if(t.blank){if(v!==void 0&&g===void 0)return{height:v,width:v};if(v===void 0&&g!==void 0)return{height:g,width:g};if(v===void 0&&g===void 0)return{height:1,width:1}}return{width:v,height:g}}),l=ne(()=>d(s.value.width,s.value.height,t.blankColor)),u=ne(()=>({"float-start":t.placement==="start","float-end":t.placement==="end","mx-auto":t.placement==="center"})),c=ne(()=>[o.value,u.value,{"img-thumbnail":t.thumbnail,"img-fluid":t.fluid||t.fluidGrow,"w-100":t.fluidGrow,"d-block":t.block||t.placement==="center"}]),d=(v,g,b)=>`data:image/svg+xml;charset=UTF-8,${encodeURIComponent(`<svg width="${v}" height="${g}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${v} ${g}" preserveAspectRatio="none">
|
103
|
+
<rect width="100%" height="100%" style="fill:${b};"></rect>
|
104
|
+
</svg>`)}`;return(v,g)=>(ie(),xe(_t(P(t).tag),{class:nt([c.value,"b-img"]),src:P(t).blank?l.value:P(t).src,width:s.value.width||void 0,height:s.value.height||void 0,srcset:P(t).blank?void 0:a.value,sizes:P(t).blank?void 0:i.value,loading:P(t).lazy?"lazy":"eager"},null,8,["class","src","width","height","srcset","sizes","loading"]))}}),l3=Re({__name:"BCardImg",props:{placement:{default:"top"},blank:{type:Boolean,default:void 0},blankColor:{default:void 0},block:{type:Boolean,default:void 0},fluid:{type:Boolean,default:void 0},fluidGrow:{type:Boolean,default:void 0},height:{default:void 0},tag:{},lazy:{type:Boolean,default:void 0},sizes:{default:void 0},src:{default:void 0},srcset:{default:void 0},thumbnail:{type:Boolean,default:void 0},width:{default:void 0},rounded:{type:[Boolean,String,Number],default:void 0},roundedTop:{type:[Boolean,String,Number],default:void 0},roundedBottom:{type:[Boolean,String,Number],default:void 0},roundedStart:{type:[Boolean,String,Number],default:void 0},roundedEnd:{type:[Boolean,String,Number],default:void 0}},setup(e){const t=gt(e,"BCardImg"),r=ne(()=>({"card-img-top":t.placement==="top","card-img-end":t.placement==="end","card-img-bottom":t.placement==="bottom","card-img-start":t.placement==="start","card-img":t.placement==="overlay"})),n=ne(()=>PM(t,["placement"]));return(o,a)=>(ie(),xe(s3,xt(n.value,{class:r.value}),null,16,["class"]))}}),k$=Re({__name:"BCardHeadFoot",props:{borderVariant:{default:null},tag:{default:"div"},text:{default:void 0},variant:{default:null},bgVariant:{default:null},textVariant:{default:null}},setup(e){const t=Eo(e);return(r,n)=>(ie(),xe(_t(r.tag),{class:nt(P(t))},{default:Ce(()=>[Ie(r.$slots,"default",{},()=>[it(Ve(r.text),1)])]),_:3},8,["class"]))}}),u3=Re({__name:"BCardHeader",props:{borderVariant:{default:void 0},tag:{default:"div"},text:{default:void 0},variant:{default:void 0},bgVariant:{default:void 0},textVariant:{default:void 0}},setup(e){const t=gt(e,"BCardHeader");return(r,n)=>(ie(),xe(k$,xt({class:"card-header"},P(t)),{default:Ce(()=>[Ie(r.$slots,"default")]),_:3},16))}}),c3=Re({__name:"BCardTitle",props:{tag:{default:"h4"},text:{default:void 0}},setup(e){const t=gt(e,"BCardTitle");return(r,n)=>(ie(),xe(_t(P(t).tag),{class:"card-title"},{default:Ce(()=>[Ie(r.$slots,"default",{},()=>[it(Ve(P(t).text),1)])]),_:3}))}}),f3=Re({__name:"BCardSubtitle",props:{text:{default:void 0},tag:{default:"h6"},textVariant:{default:"body-secondary"}},setup(e){const t=gt(e,"BCardSubtitle"),r=Eo(t);return(n,o)=>(ie(),xe(_t(P(t).tag),{class:nt(["card-subtitle mb-2",P(r)])},{default:Ce(()=>[Ie(n.$slots,"default",{},()=>[it(Ve(P(t).text),1)])]),_:3},8,["class"]))}}),d3=Re({__name:"BCardBody",props:{overlay:{type:Boolean,default:!1},subtitle:{default:void 0},subtitleTag:{default:"h4"},subtitleTextVariant:{default:void 0},tag:{default:"div"},text:{default:void 0},title:{default:void 0},titleTag:{default:"h4"},variant:{default:null},bgVariant:{default:null},textVariant:{default:null}},setup(e){const t=gt(e,"BCardBody"),r=zn(),n=ne(()=>!$o(r.title)),o=ne(()=>!$o(r.subtitle)),a=Eo(t),i=ne(()=>[a.value,t.overlay?"card-img-overlay":"card-body"]);return(s,l)=>(ie(),xe(_t(P(t).tag),{class:nt(i.value)},{default:Ce(()=>[P(t).title||n.value?(ie(),xe(c3,{key:0,tag:P(t).titleTag},{default:Ce(()=>[Ie(s.$slots,"title",{},()=>[it(Ve(P(t).title),1)])]),_:3},8,["tag"])):ut("",!0),P(t).subtitle||o.value?(ie(),xe(f3,{key:1,tag:P(t).subtitleTag,"text-variant":P(t).subtitleTextVariant},{default:Ce(()=>[Ie(s.$slots,"subtitle",{},()=>[it(Ve(P(t).subtitle),1)])]),_:3},8,["tag","text-variant"])):ut("",!0),Ie(s.$slots,"default",{},()=>[it(Ve(P(t).text),1)])]),_:3},8,["class"]))}}),p3=Re({__name:"BCardFooter",props:{borderVariant:{default:void 0},tag:{default:"div"},text:{default:void 0},variant:{default:void 0},bgVariant:{default:void 0},textVariant:{default:void 0}},setup(e){const t=gt(e,"BCardFooter");return(r,n)=>(ie(),xe(k$,xt({class:"card-footer"},P(t)),{default:Ce(()=>[Ie(r.$slots,"default",{},()=>[it(Ve(P(t).text),1)])]),_:3},16))}}),h3=Re({__name:"BCard",props:{align:{default:void 0},bodyBgVariant:{default:void 0},bodyClass:{default:void 0},bodyTag:{default:"div"},bodyText:{default:""},bodyTextVariant:{default:void 0},borderVariant:{default:null},footer:{default:void 0},footerBgVariant:{default:void 0},footerBorderVariant:{default:void 0},footerClass:{default:void 0},footerTag:{default:"div"},footerTextVariant:{default:void 0},footerVariant:{default:null},header:{default:void 0},headerBgVariant:{default:void 0},headerBorderVariant:{default:void 0},headerClass:{default:void 0},headerTag:{default:"div"},headerTextVariant:{default:void 0},headerVariant:{default:null},imgAlt:{default:void 0},imgPlacement:{default:"top"},imgHeight:{default:void 0},imgSrc:{default:void 0},imgWidth:{default:void 0},noBody:{type:Boolean,default:!1},subtitle:{default:void 0},subtitleTag:{default:"h6"},subtitleTextVariant:{default:"body-secondary"},tag:{default:"div"},title:{default:void 0},titleTag:{default:"h4"},variant:{default:null},bgVariant:{default:null},textVariant:{default:null}},setup(e){const t=gt(e,"BCard"),r=zn(),n=ne(()=>!$o(r.header)),o=ne(()=>!$o(r.footer)),a=Eo(t),i=ne(()=>[a.value,{[`text-${t.align}`]:t.align!==void 0,"flex-row":t.imgPlacement==="start","flex-row-reverse":t.imgPlacement==="end"}]),s=ne(()=>({src:t.imgSrc,alt:t.imgAlt,height:t.imgHeight,width:t.imgWidth,placement:t.imgPlacement})),l=Rh();return(u,c)=>(ie(),xe(_t(P(t).tag),{class:nt(["card",i.value])},{default:Ce(()=>[Ze(P(l).define,null,{default:Ce(()=>[Ie(u.$slots,"img",{},()=>[P(t).imgSrc?(ie(),xe(l3,ga(xt({key:0},s.value)),null,16)):ut("",!0)])]),_:3}),P(t).imgPlacement!=="bottom"?(ie(),xe(P(l).reuse,{key:0})):ut("",!0),P(t).header||n.value?(ie(),xe(u3,{key:1,"bg-variant":P(t).headerBgVariant,variant:P(t).headerVariant,"border-variant":P(t).headerBorderVariant,tag:P(t).headerTag,"text-variant":P(t).headerTextVariant,class:nt(P(t).headerClass)},{default:Ce(()=>[Ie(u.$slots,"header",{},()=>[it(Ve(P(t).header),1)])]),_:3},8,["bg-variant","variant","border-variant","tag","text-variant","class"])):ut("",!0),P(t).noBody?Ie(u.$slots,"default",{key:3},()=>[it(Ve(P(t).bodyText),1)]):(ie(),xe(d3,{key:2,overlay:P(t).imgPlacement==="overlay","bg-variant":P(t).bodyBgVariant,tag:P(t).bodyTag,"text-variant":P(t).bodyTextVariant,subtitle:P(t).subtitle,"subtitle-tag":P(t).subtitleTag,"subtitle-text-variant":P(t).subtitleTextVariant,title:P(t).title,"title-tag":P(t).titleTag,class:nt(P(t).bodyClass)},{default:Ce(()=>[Ie(u.$slots,"default",{},()=>[it(Ve(P(t).bodyText),1)])]),_:3},8,["overlay","bg-variant","tag","text-variant","subtitle","subtitle-tag","subtitle-text-variant","title","title-tag","class"])),P(t).footer||o.value?(ie(),xe(p3,{key:4,"bg-variant":P(t).footerBgVariant,"border-variant":P(t).footerBorderVariant,variant:P(t).footerVariant,tag:P(t).footerTag,"text-variant":P(t).footerTextVariant,class:nt(P(t).footerClass)},{default:Ce(()=>[Ie(u.$slots,"footer",{},()=>[it(Ve(P(t).footer),1)])]),_:3},8,["bg-variant","border-variant","variant","tag","text-variant","class"])):ut("",!0),P(t).imgPlacement==="bottom"?(ie(),xe(P(l).reuse,{key:5})):ut("",!0)]),_:3},8,["class"]))}}),C$=Re({__name:"ErrorViewer",props:{header:{}},setup(e){const t=e;return(r,n)=>(ie(),xe(P(h3),{class:"vjw_errorViewer text-center","header-bg-variant":"danger","header-text-variant":"white",header:t.header,"header-border-variant":"danger","border-variant":"danger"},{default:Ce(()=>[Ie(r.$slots,"default")]),_:3},8,["header"]))}}),m3=Object.freeze(Object.defineProperty({__proto__:null,default:C$},Symbol.toStringTag,{value:"Module"})),y3={key:0},g3={key:1},v3=Object.freeze(Object.defineProperty({__proto__:null,default:Re({__name:"VJFButton",props:{layoutElement:{},waiting:{type:Boolean}},setup(e){const t=Qi(e.layoutElement);return(r,n)=>{var o;return ie(),xe(P(Bh),{variant:(o=r.layoutElement.options)==null?void 0:o.variant,type:r.layoutElement.buttonType,class:nt(P(t))},{default:Ce(()=>[r.waiting?(ie(),Be("span",g3,[Ze(P(BS),{small:""})])):(ie(),Be("span",y3,Ve(r.layoutElement.text),1))]),_:1},8,["variant","type","class"])}}})},Symbol.toStringTag,{value:"Module"})),b3=Re({__name:"BButtonGroup",props:{ariaLabel:{default:"Group"},size:{default:"md"},tag:{default:"div"},vertical:{type:Boolean,default:!1}},setup(e){fr(dM,!0);const t=gt(e,"BButtonGroup"),r=ne(()=>({"btn-group":!t.vertical,[`btn-group-${t.size}`]:t.size!=="md","btn-group-vertical":t.vertical}));return(n,o)=>(ie(),xe(_t(P(t).tag),{class:nt(r.value),role:"group","aria-label":P(t).ariaLabel},{default:Ce(()=>[Ie(n.$slots,"default")]),_:3},8,["class","aria-label"]))}}),w3=Object.freeze(Object.defineProperty({__proto__:null,default:Re({__name:"ButtonGroup",props:{layoutElement:{}},setup(e){return(t,r)=>{var n;return ie(),xe(P(b3),{class:"w-100",vertical:(n=t.layoutElement.options)==null?void 0:n.vertical},{default:Ce(()=>[(ie(!0),Be(ht,null,Br(t.layoutElement.buttons,o=>(ie(),xe(Rv,{key:o.text,layoutElement:o},null,8,["layoutElement"]))),128))]),_:1},8,["vertical"])}}})},Symbol.toStringTag,{value:"Module"})),_3={class:"text-muted"},S3=Object.freeze(Object.defineProperty({__proto__:null,default:Re({__name:"DefaultControl",setup(e){const{jsonElement:t}=Vr();return(r,n)=>(ie(),xe(C$,{header:"Unsupported"},{default:Ce(()=>[n[0]||(n[0]=mt("p",null,"This field type is not supported!",-1)),mt("p",_3,Ve(P(t)),1)]),_:1}))}})},Symbol.toStringTag,{value:"Module"}))});
|
105
|
+
//# sourceMappingURL=vue-json-form.umd.js.map
|