@structured-field/widget-editor 1.0.0 → 1.0.3
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/structured-widget-editor.esm.js +547 -2220
- package/dist/structured-widget-editor.esm.js.map +1 -1
- package/dist/structured-widget-editor.iife.js +4 -9
- package/dist/structured-widget-editor.js +4 -9
- package/dist/structured-widget-editor.js.map +1 -1
- package/package.json +7 -2
- package/src/SchemaForm.vue +1 -0
- package/src/editors/ArrayEditor.vue +6 -2
- package/src/editors/NullableEditor.vue +6 -2
- package/src/editors/ObjectEditor.vue +5 -2
- package/src/editors/UnionEditor.vue +6 -2
- package/src/index.js +5 -132
|
@@ -5,27 +5,22 @@ var StructuredWidgetEditor=function(e){"use strict";var t={name:"StringEditor",p
|
|
|
5
5
|
* @vue/shared v3.5.30
|
|
6
6
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
7
7
|
* @license MIT
|
|
8
|
-
**/function n(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}const
|
|
8
|
+
**/function n(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}const s={},r=[],i=()=>{},o=()=>!1,l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),a=e=>e.startsWith("onUpdate:"),c=Object.assign,u=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},h=Object.prototype.hasOwnProperty,d=(e,t)=>h.call(e,t),p=Array.isArray,f=e=>"[object Map]"===k(e),m=e=>"[object Set]"===k(e),g=e=>"[object Date]"===k(e),v=e=>"function"==typeof e,y=e=>"string"==typeof e,_=e=>"symbol"==typeof e,b=e=>null!==e&&"object"==typeof e,S=e=>(b(e)||v(e))&&v(e.then)&&v(e.catch),x=Object.prototype.toString,k=e=>x.call(e),E=e=>"[object Object]"===k(e),w=e=>y(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,C=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),V=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},A=/-\w/g,O=V(e=>e.replace(A,e=>e.slice(1).toUpperCase())),P=/\B([A-Z])/g,j=V(e=>e.replace(P,"-$1").toLowerCase()),R=V(e=>e.charAt(0).toUpperCase()+e.slice(1)),$=V(e=>e?`on${R(e)}`:""),T=(e,t)=>!Object.is(e,t),F=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},I=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},M=e=>{const t=parseFloat(e);return isNaN(t)?e:t},N=e=>{const t=y(e)?Number(e):NaN;return isNaN(t)?e:t};let D;const U=()=>D||(D="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function L(e){if(p(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=y(s)?B(s):L(s);if(r)for(const e in r)t[e]=r[e]}return t}if(y(e)||b(e))return e}const q=/;(?![^(]*\))/g,z=/:([^]+)/,W=/\/\*[^]*?\*\//g;function B(e){const t={};return e.replace(W,"").split(q).forEach(e=>{if(e){const n=e.split(z);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function H(e){let t="";if(y(e))t=e;else if(p(e))for(let n=0;n<e.length;n++){const s=H(e[n]);s&&(t+=s+" ")}else if(b(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const K=n("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Z(e){return!!e||""===e}function Q(e,t){if(e===t)return!0;let n=g(e),s=g(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=_(e),s=_(t),n||s)return e===t;if(n=p(e),s=p(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Q(e[s],t[s]);return n}(e,t);if(n=b(e),s=b(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!Q(e[n],t[n]))return!1}}return String(e)===String(t)}const J=e=>!(!e||!0!==e.__v_isRef),G=e=>y(e)?e:null==e?"":p(e)||b(e)&&(e.toString===x||!v(e.toString))?J(e)?G(e.value):JSON.stringify(e,X,2):String(e),X=(e,t)=>J(t)?X(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],s)=>(e[Y(t,s)+" =>"]=n,e),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Y(e))}:_(t)?Y(t):!b(t)||p(t)||E(t)?t:String(t),Y=(e,t="")=>{var n;return _(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};
|
|
9
9
|
/**
|
|
10
10
|
* @vue/reactivity v3.5.30
|
|
11
11
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
12
|
* @license MIT
|
|
13
13
|
**/
|
|
14
|
-
function re(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let se,ie;class le{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=se,!e&&se&&(this.index=(se.scopes||(se.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=se;try{return se=this,e()}finally{se=t}}else"production"!==process.env.NODE_ENV&&re("cannot run an inactive effect scope.")}on(){1===++this._on&&(this.prevScope=se,se=this)}off(){this._on>0&&0===--this._on&&(se=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}const ae=new WeakSet;class ce{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,se&&se.active&&se.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,ae.has(this)&&(ae.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||fe(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,we(this),ve(this);const e=ie,t=Ne;ie=this,Ne=!0;try{return this.fn()}finally{"production"!==process.env.NODE_ENV&&ie!==this&&re("Active effect was not restored correctly - this is likely a Vue internal bug."),_e(this),ie=e,Ne=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)Ee(e);this.deps=this.depsTail=void 0,we(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?ae.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ge(this)&&this.run()}get dirty(){return ge(this)}}let ue,pe,de=0;function fe(e,t=!1){if(e.flags|=8,t)return e.next=pe,void(pe=e);e.next=ue,ue=e}function he(){de++}function me(){if(--de>0)return;if(pe){let e=pe;for(pe=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;ue;){let t=ue;for(ue=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=n}}if(e)throw e}function ve(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function _e(e){let t,n=e.depsTail,o=n;for(;o;){const e=o.prevDep;-1===o.version?(o===n&&(n=e),Ee(o),be(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=e}e.deps=t,e.depsTail=n}function ge(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ye(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ye(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===Se)return;if(e.globalVersion=Se,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!ge(e)))return;e.flags|=2;const t=e.dep,n=ie,o=Ne;ie=e,Ne=!0;try{ve(e);const n=e.fn(e._value);(0===t.version||I(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{ie=n,Ne=o,_e(e),e.flags&=-3}}function Ee(e,t=!1){const{dep:n,prevSub:o,nextSub:r}=e;if(o&&(o.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=o,e.nextSub=void 0),"production"!==process.env.NODE_ENV&&n.subsHead===e&&(n.subsHead=r),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)Ee(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function be(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ne=!0;const Oe=[];function Ve(){Oe.push(Ne),Ne=!1}function De(){const e=Oe.pop();Ne=void 0===e||e}function we(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=ie;ie=void 0;try{t()}finally{ie=e}}}let Se=0;class xe{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ke{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0,"production"!==process.env.NODE_ENV&&(this.subsHead=void 0)}track(e){if(!ie||!Ne||ie===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==ie)t=this.activeLink=new xe(ie,this),ie.deps?(t.prevDep=ie.depsTail,ie.depsTail.nextDep=t,ie.depsTail=t):ie.deps=ie.depsTail=t,Ce(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=ie.depsTail,t.nextDep=void 0,ie.depsTail.nextDep=t,ie.depsTail=t,ie.deps===t&&(ie.deps=e)}return"production"!==process.env.NODE_ENV&&ie.onTrack&&ie.onTrack(c({effect:ie},e)),t}trigger(e){this.version++,Se++,this.notify(e)}notify(e){he();try{if("production"!==process.env.NODE_ENV)for(let t=this.subsHead;t;t=t.nextSub)!t.sub.onTrigger||8&t.sub.flags||t.sub.onTrigger(c({effect:t.sub},e));for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{me()}}}function Ce(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Ce(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),"production"!==process.env.NODE_ENV&&void 0===e.dep.subsHead&&(e.dep.subsHead=e),e.dep.subs=e}}const $e=new WeakMap,Pe=Symbol("production"!==process.env.NODE_ENV?"Object iterate":""),Ae=Symbol("production"!==process.env.NODE_ENV?"Map keys iterate":""),je=Symbol("production"!==process.env.NODE_ENV?"Array iterate":"");function Te(e,t,n){if(Ne&&ie){let o=$e.get(e);o||$e.set(e,o=new Map);let r=o.get(n);r||(o.set(n,r=new ke),r.map=o,r.key=n),"production"!==process.env.NODE_ENV?r.track({target:e,type:t,key:n}):r.track()}}function Ie(e,t,n,o,r,s){const i=$e.get(e);if(!i)return void Se++;const l=i=>{i&&("production"!==process.env.NODE_ENV?i.trigger({target:e,type:t,key:n,newValue:o,oldValue:r,oldTarget:s}):i.trigger())};if(he(),"clear"===t)i.forEach(l);else{const r=f(e),s=r&&w(n);if(r&&"length"===n){const e=Number(o);i.forEach((t,n)=>{("length"===n||n===je||!y(n)&&n>=e)&&l(t)})}else switch((void 0!==n||i.has(void 0))&&l(i.get(n)),s&&l(i.get(je)),t){case"add":r?s&&l(i.get("length")):(l(i.get(Pe)),h(e)&&l(i.get(Ae)));break;case"delete":r||(l(i.get(Pe)),h(e)&&l(i.get(Ae)));break;case"set":h(e)&&l(i.get(Pe))}}me()}function Re(e){const t=Dt(e);return t===e?t:(Te(t,"iterate",je),Ot(e)?t:t.map(wt))}function Me(e){return Te(e=Dt(e),"iterate",je),e}function Fe(e,t){return Nt(e)?bt(e)?St(wt(t)):St(t):wt(t)}const Ue={__proto__:null,[Symbol.iterator](){return Le(this,Symbol.iterator,e=>Fe(this,e))},concat(...e){return Re(this).concat(...e.map(e=>f(e)?Re(e):e))},entries(){return Le(this,"entries",e=>(e[1]=Fe(this,e[1]),e))},every(e,t){return He(this,"every",e,t,void 0,arguments)},filter(e,t){return He(this,"filter",e,t,e=>e.map(e=>Fe(this,e)),arguments)},find(e,t){return He(this,"find",e,t,e=>Fe(this,e),arguments)},findIndex(e,t){return He(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return He(this,"findLast",e,t,e=>Fe(this,e),arguments)},findLastIndex(e,t){return He(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return He(this,"forEach",e,t,void 0,arguments)},includes(...e){return We(this,"includes",e)},indexOf(...e){return We(this,"indexOf",e)},join(e){return Re(this).join(e)},lastIndexOf(...e){return We(this,"lastIndexOf",e)},map(e,t){return He(this,"map",e,t,void 0,arguments)},pop(){return Be(this,"pop")},push(...e){return Be(this,"push",e)},reduce(e,...t){return ze(this,"reduce",e,t)},reduceRight(e,...t){return ze(this,"reduceRight",e,t)},shift(){return Be(this,"shift")},some(e,t){return He(this,"some",e,t,void 0,arguments)},splice(...e){return Be(this,"splice",e)},toReversed(){return Re(this).toReversed()},toSorted(e){return Re(this).toSorted(e)},toSpliced(...e){return Re(this).toSpliced(...e)},unshift(...e){return Be(this,"unshift",e)},values(){return Le(this,"values",e=>Fe(this,e))}};function Le(e,t,n){const o=Me(e),r=o[t]();return o===e||Ot(e)||(r._next=r.next,r.next=()=>{const e=r._next();return e.done||(e.value=n(e.value)),e}),r}const qe=Array.prototype;function He(e,t,n,o,r,s){const i=Me(e),l=i!==e&&!Ot(e),a=i[t];if(a!==qe[t]){const t=a.apply(e,s);return l?wt(t):t}let c=n;i!==e&&(l?c=function(t,o){return n.call(this,Fe(e,t),o,e)}:n.length>2&&(c=function(t,o){return n.call(this,t,o,e)}));const u=a.call(i,c,o);return l&&r?r(u):u}function ze(e,t,n,o){const r=Me(e),s=r!==e&&!Ot(e);let i=n,l=!1;r!==e&&(s?(l=0===o.length,i=function(t,o,r){return l&&(l=!1,t=Fe(e,t)),n.call(this,t,Fe(e,o),r,e)}):n.length>3&&(i=function(t,o,r){return n.call(this,t,o,r,e)}));const a=r[t](i,...o);return l?Fe(e,a):a}function We(e,t,n){const o=Dt(e);Te(o,"iterate",je);const r=o[t](...n);return-1!==r&&!1!==r||!Vt(n[0])?r:(n[0]=Dt(n[0]),o[t](...n))}function Be(e,t,n=[]){Ve(),he();const o=Dt(e)[t].apply(e,n);return me(),De(),o}const Ke=n("__proto__,__v_isRef,__isVue"),Je=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(y));function Ze(e){y(e)||(e=String(e));const t=Dt(this);return Te(t,"has",e),t.hasOwnProperty(e)}class Ge{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const o=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(o?r?vt:mt:r?ht:ft).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const s=f(e);if(!o){let e;if(s&&(e=Ue[t]))return e;if("hasOwnProperty"===t)return Ze}const i=Reflect.get(e,t,xt(e)?e:n);if(y(t)?Je.has(t):Ke(t))return i;if(o||Te(e,"get",t),r)return i;if(xt(i)){const e=s&&w(t)?i:i.value;return o&&E(e)?gt(e):e}return E(i)?o?gt(i):_t(i):i}}class Ye extends Ge{constructor(e=!1){super(!1,e)}set(e,t,n,o){let r=e[t];const s=f(e)&&w(t);if(!this._isShallow){const o=Nt(r);if(Ot(n)||Nt(n)||(r=Dt(r),n=Dt(n)),!s&&xt(r)&&!xt(n))return o?("production"!==process.env.NODE_ENV&&re(`Set operation on key "${String(t)}" failed: target is readonly.`,e[t]),!0):(r.value=n,!0)}const i=s?Number(t)<e.length:d(e,t),l=Reflect.set(e,t,n,xt(e)?e:o);return e===Dt(o)&&(i?I(n,r)&&Ie(e,"set",t,n,r):Ie(e,"add",t,n)),l}deleteProperty(e,t){const n=d(e,t),o=e[t],r=Reflect.deleteProperty(e,t);return r&&n&&Ie(e,"delete",t,void 0,o),r}has(e,t){const n=Reflect.has(e,t);return y(t)&&Je.has(t)||Te(e,"has",t),n}ownKeys(e){return Te(e,"iterate",f(e)?"length":Pe),Reflect.ownKeys(e)}}class Qe extends Ge{constructor(e=!1){super(!0,e)}set(e,t){return"production"!==process.env.NODE_ENV&&re(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0}deleteProperty(e,t){return"production"!==process.env.NODE_ENV&&re(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}}const Xe=new Ye,et=new Qe,tt=new Ye(!0),nt=new Qe(!0),ot=e=>e,rt=e=>Reflect.getPrototypeOf(e);function st(e){return function(...t){if("production"!==process.env.NODE_ENV){const n=t[0]?`on key "${t[0]}" `:"";re(`${j(e)} operation ${n}failed: target is readonly.`,Dt(this))}return"delete"!==e&&("clear"===e?void 0:this)}}function it(e,t){const n={get(n){const o=this.__v_raw,r=Dt(o),s=Dt(n);e||(I(n,s)&&Te(r,"get",n),Te(r,"get",s));const{has:i}=rt(r),l=t?ot:e?St:wt;return i.call(r,n)?l(o.get(n)):i.call(r,s)?l(o.get(s)):void(o!==r&&o.get(n))},get size(){const t=this.__v_raw;return!e&&Te(Dt(t),"iterate",Pe),t.size},has(t){const n=this.__v_raw,o=Dt(n),r=Dt(t);return e||(I(t,r)&&Te(o,"has",t),Te(o,"has",r)),t===r?n.has(t):n.has(t)||n.has(r)},forEach(n,o){const r=this,s=r.__v_raw,i=Dt(s),l=t?ot:e?St:wt;return!e&&Te(i,"iterate",Pe),s.forEach((e,t)=>n.call(o,l(e),l(t),r))}};c(n,e?{add:st("add"),set:st("set"),delete:st("delete"),clear:st("clear")}:{add(e){const n=Dt(this),o=rt(n),r=Dt(e),s=t||Ot(e)||Nt(e)?e:r;return o.has.call(n,s)||I(e,s)&&o.has.call(n,e)||I(r,s)&&o.has.call(n,r)||(n.add(s),Ie(n,"add",s,s)),this},set(e,n){t||Ot(n)||Nt(n)||(n=Dt(n));const o=Dt(this),{has:r,get:s}=rt(o);let i=r.call(o,e);i?"production"!==process.env.NODE_ENV&&dt(o,r,e):(e=Dt(e),i=r.call(o,e));const l=s.call(o,e);return o.set(e,n),i?I(n,l)&&Ie(o,"set",e,n,l):Ie(o,"add",e,n),this},delete(e){const t=Dt(this),{has:n,get:o}=rt(t);let r=n.call(t,e);r?"production"!==process.env.NODE_ENV&&dt(t,n,e):(e=Dt(e),r=n.call(t,e));const s=o?o.call(t,e):void 0,i=t.delete(e);return r&&Ie(t,"delete",e,void 0,s),i},clear(){const e=Dt(this),t=0!==e.size,n="production"!==process.env.NODE_ENV?h(e)?new Map(e):new Set(e):void 0,o=e.clear();return t&&Ie(e,"clear",void 0,void 0,n),o}});return["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=function(e,t,n){return function(...o){const r=this.__v_raw,s=Dt(r),i=h(s),l="entries"===e||e===Symbol.iterator&&i,a="keys"===e&&i,u=r[e](...o),p=n?ot:t?St:wt;return!t&&Te(s,"iterate",a?Ae:Pe),c(Object.create(u),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:l?[p(e[0]),p(e[1])]:p(e),done:t}}})}}(o,e,t)}),n}function lt(e,t){const n=it(e,t);return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(d(n,o)&&o in t?n:t,o,r)}const at={get:lt(!1,!1)},ct={get:lt(!1,!0)},ut={get:lt(!0,!1)},pt={get:lt(!0,!0)};function dt(e,t,n){const o=Dt(n);if(o!==n&&t.call(e,o)){const t=V(e);re(`Reactive ${t} contains both the raw and reactive versions of the same object${"Map"===t?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const ft=new WeakMap,ht=new WeakMap,mt=new WeakMap,vt=new WeakMap;function _t(e){return Nt(e)?e:Et(e,!1,Xe,at,ft)}function gt(e){return Et(e,!0,et,ut,mt)}function yt(e){return Et(e,!0,nt,pt,vt)}function Et(e,t,n,o,r){if(!E(e))return"production"!==process.env.NODE_ENV&&re(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=(i=e).__v_skip||!Object.isExtensible(i)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(V(i));var i;if(0===s)return e;const l=r.get(e);if(l)return l;const a=new Proxy(e,2===s?o:n);return r.set(e,a),a}function bt(e){return Nt(e)?bt(e.__v_raw):!(!e||!e.__v_isReactive)}function Nt(e){return!(!e||!e.__v_isReadonly)}function Ot(e){return!(!e||!e.__v_isShallow)}function Vt(e){return!!e&&!!e.__v_raw}function Dt(e){const t=e&&e.__v_raw;return t?Dt(t):e}const wt=e=>E(e)?_t(e):e,St=e=>E(e)?gt(e):e;function xt(e){return!!e&&!0===e.__v_isRef}function kt(e){return function(e,t){if(xt(e))return e;return new Ct(e,t)}(e,!1)}class Ct{constructor(e,t){this.dep=new ke,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Dt(e),this._value=t?e:wt(e),this.__v_isShallow=t}get value(){return"production"!==process.env.NODE_ENV?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||Ot(e)||Nt(e);e=n?e:Dt(e),I(e,t)&&(this._rawValue=e,this._value=n?e:wt(e),"production"!==process.env.NODE_ENV?this.dep.trigger({target:this,type:"set",key:"value",newValue:e,oldValue:t}):this.dep.trigger())}}const $t={get:(e,t,n)=>{return"__v_raw"===t?e:xt(o=Reflect.get(e,t,n))?o.value:o;var o},set:(e,t,n,o)=>{const r=e[t];return xt(r)&&!xt(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Pt(e){return bt(e)?e:new Proxy(e,$t)}class At{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new ke(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Se-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags||ie===this))return fe(this,!0),!0;process.env.NODE_ENV}get value(){const e="production"!==process.env.NODE_ENV?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track();return ye(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter?this.setter(e):"production"!==process.env.NODE_ENV&&re("Write operation failed: computed value is readonly")}}const jt={},Tt=new WeakMap;let It;function Rt(e,t,n=o){const{immediate:r,deep:i,once:l,scheduler:a,augmentJob:c,call:p}=n,d=e=>{(n.onWarn||re)("Invalid watch source: ",e,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},h=e=>i?e:Ot(e)||!1===i||0===i?Mt(e,1):Mt(e);let m,v,g,y,E=!1,b=!1;if(xt(e)?(v=()=>e.value,E=Ot(e)):bt(e)?(v=()=>h(e),E=!0):f(e)?(b=!0,E=e.some(e=>bt(e)||Ot(e)),v=()=>e.map(e=>xt(e)?e.value:bt(e)?h(e):_(e)?p?p(e,2):e():void("production"!==process.env.NODE_ENV&&d(e)))):_(e)?v=t?p?()=>p(e,2):e:()=>{if(g){Ve();try{g()}finally{De()}}const t=It;It=m;try{return p?p(e,3,[y]):e(y)}finally{It=t}}:(v=s,"production"!==process.env.NODE_ENV&&d(e)),t&&i){const e=v,t=!0===i?1/0:i;v=()=>Mt(e(),t)}const N=se,O=()=>{m.stop(),N&&N.active&&u(N.effects,m)};if(l&&t){const e=t;t=(...t)=>{e(...t),O()}}let V=b?new Array(e.length).fill(jt):jt;const D=e=>{if(1&m.flags&&(m.dirty||e))if(t){const e=m.run();if(i||E||(b?e.some((e,t)=>I(e,V[t])):I(e,V))){g&&g();const n=It;It=m;try{const n=[e,V===jt?void 0:b&&V[0]===jt?[]:V,y];V=e,p?p(t,3,n):t(...n)}finally{It=n}}}else m.run()};return c&&c(D),m=new ce(v),m.scheduler=a?()=>a(D,!1):D,y=e=>function(e,t=!1,n=It){if(n){let t=Tt.get(n);t||Tt.set(n,t=[]),t.push(e)}else"production"===process.env.NODE_ENV||t||re("onWatcherCleanup() was called when there was no active watcher to associate with.")}(e,!1,m),g=m.onStop=()=>{const e=Tt.get(m);if(e){if(p)p(e,4);else for(const t of e)t();Tt.delete(m)}},"production"!==process.env.NODE_ENV&&(m.onTrack=n.onTrack,m.onTrigger=n.onTrigger),t?r?D(!0):V=m.run():a?a(D.bind(null,!0),!0):m.run(),O.pause=m.pause.bind(m),O.resume=m.resume.bind(m),O.stop=O,O}function Mt(e,t=1/0,n){if(t<=0||!E(e)||e.__v_skip)return e;if(((n=n||new Map).get(e)||0)>=t)return e;if(n.set(e,t),t--,xt(e))Mt(e.value,t,n);else if(f(e))for(let o=0;o<e.length;o++)Mt(e[o],t,n);else if(m(e)||h(e))e.forEach(e=>{Mt(e,t,n)});else if(D(e)){for(const o in e)Mt(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Mt(e[o],t,n)}return e}
|
|
14
|
+
let ee,te;class ne{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=ee,!e&&ee&&(this.index=(ee.scopes||(ee.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=ee;try{return ee=this,e()}finally{ee=t}}}on(){1===++this._on&&(this.prevScope=ee,ee=this)}off(){this._on>0&&0===--this._on&&(ee=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}const se=new WeakSet;class re{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ee&&ee.active&&ee.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,se.has(this)&&(se.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||ae(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,Se(this),he(this);const e=te,t=ve;te=this,ve=!0;try{return this.fn()}finally{de(this),te=e,ve=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)me(e);this.deps=this.depsTail=void 0,Se(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?se.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){pe(this)&&this.run()}get dirty(){return pe(this)}}let ie,oe,le=0;function ae(e,t=!1){if(e.flags|=8,t)return e.next=oe,void(oe=e);e.next=ie,ie=e}function ce(){le++}function ue(){if(--le>0)return;if(oe){let e=oe;for(oe=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;ie;){let t=ie;for(ie=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=n}}if(e)throw e}function he(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function de(e){let t,n=e.depsTail,s=n;for(;s;){const e=s.prevDep;-1===s.version?(s===n&&(n=e),me(s),ge(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=e}e.deps=t,e.depsTail=n}function pe(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(fe(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function fe(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===xe)return;if(e.globalVersion=xe,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!pe(e)))return;e.flags|=2;const t=e.dep,n=te,s=ve;te=e,ve=!0;try{he(e);const n=e.fn(e._value);(0===t.version||T(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{te=n,ve=s,de(e),e.flags&=-3}}function me(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)me(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function ge(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ve=!0;const ye=[];function _e(){ye.push(ve),ve=!1}function be(){const e=ye.pop();ve=void 0===e||e}function Se(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=te;te=void 0;try{t()}finally{te=e}}}let xe=0;class ke{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ee{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!te||!ve||te===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==te)t=this.activeLink=new ke(te,this),te.deps?(t.prevDep=te.depsTail,te.depsTail.nextDep=t,te.depsTail=t):te.deps=te.depsTail=t,we(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=te.depsTail,t.nextDep=void 0,te.depsTail.nextDep=t,te.depsTail=t,te.deps===t&&(te.deps=e)}return t}trigger(e){this.version++,xe++,this.notify(e)}notify(e){ce();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{ue()}}}function we(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)we(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ce=new WeakMap,Ve=Symbol(""),Ae=Symbol(""),Oe=Symbol("");function Pe(e,t,n){if(ve&&te){let t=Ce.get(e);t||Ce.set(e,t=new Map);let s=t.get(n);s||(t.set(n,s=new Ee),s.map=t,s.key=n),s.track()}}function je(e,t,n,s,r,i){const o=Ce.get(e);if(!o)return void xe++;const l=e=>{e&&e.trigger()};if(ce(),"clear"===t)o.forEach(l);else{const r=p(e),i=r&&w(n);if(r&&"length"===n){const e=Number(s);o.forEach((t,n)=>{("length"===n||n===Oe||!_(n)&&n>=e)&&l(t)})}else switch((void 0!==n||o.has(void 0))&&l(o.get(n)),i&&l(o.get(Oe)),t){case"add":r?i&&l(o.get("length")):(l(o.get(Ve)),f(e)&&l(o.get(Ae)));break;case"delete":r||(l(o.get(Ve)),f(e)&&l(o.get(Ae)));break;case"set":f(e)&&l(o.get(Ve))}}ue()}function Re(e){const t=vt(e);return t===e?t:(Pe(t,0,Oe),mt(e)?t:t.map(yt))}function $e(e){return Pe(e=vt(e),0,Oe),e}function Te(e,t){return ft(e)?pt(e)?_t(yt(t)):_t(t):yt(t)}const Fe={__proto__:null,[Symbol.iterator](){return Ie(this,Symbol.iterator,e=>Te(this,e))},concat(...e){return Re(this).concat(...e.map(e=>p(e)?Re(e):e))},entries(){return Ie(this,"entries",e=>(e[1]=Te(this,e[1]),e))},every(e,t){return Ne(this,"every",e,t,void 0,arguments)},filter(e,t){return Ne(this,"filter",e,t,e=>e.map(e=>Te(this,e)),arguments)},find(e,t){return Ne(this,"find",e,t,e=>Te(this,e),arguments)},findIndex(e,t){return Ne(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ne(this,"findLast",e,t,e=>Te(this,e),arguments)},findLastIndex(e,t){return Ne(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ne(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ue(this,"includes",e)},indexOf(...e){return Ue(this,"indexOf",e)},join(e){return Re(this).join(e)},lastIndexOf(...e){return Ue(this,"lastIndexOf",e)},map(e,t){return Ne(this,"map",e,t,void 0,arguments)},pop(){return Le(this,"pop")},push(...e){return Le(this,"push",e)},reduce(e,...t){return De(this,"reduce",e,t)},reduceRight(e,...t){return De(this,"reduceRight",e,t)},shift(){return Le(this,"shift")},some(e,t){return Ne(this,"some",e,t,void 0,arguments)},splice(...e){return Le(this,"splice",e)},toReversed(){return Re(this).toReversed()},toSorted(e){return Re(this).toSorted(e)},toSpliced(...e){return Re(this).toSpliced(...e)},unshift(...e){return Le(this,"unshift",e)},values(){return Ie(this,"values",e=>Te(this,e))}};function Ie(e,t,n){const s=$e(e),r=s[t]();return s===e||mt(e)||(r._next=r.next,r.next=()=>{const e=r._next();return e.done||(e.value=n(e.value)),e}),r}const Me=Array.prototype;function Ne(e,t,n,s,r,i){const o=$e(e),l=o!==e&&!mt(e),a=o[t];if(a!==Me[t]){const t=a.apply(e,i);return l?yt(t):t}let c=n;o!==e&&(l?c=function(t,s){return n.call(this,Te(e,t),s,e)}:n.length>2&&(c=function(t,s){return n.call(this,t,s,e)}));const u=a.call(o,c,s);return l&&r?r(u):u}function De(e,t,n,s){const r=$e(e),i=r!==e&&!mt(e);let o=n,l=!1;r!==e&&(i?(l=0===s.length,o=function(t,s,r){return l&&(l=!1,t=Te(e,t)),n.call(this,t,Te(e,s),r,e)}):n.length>3&&(o=function(t,s,r){return n.call(this,t,s,r,e)}));const a=r[t](o,...s);return l?Te(e,a):a}function Ue(e,t,n){const s=vt(e);Pe(s,0,Oe);const r=s[t](...n);return-1!==r&&!1!==r||!gt(n[0])?r:(n[0]=vt(n[0]),s[t](...n))}function Le(e,t,n=[]){_e(),ce();const s=vt(e)[t].apply(e,n);return ue(),be(),s}const qe=n("__proto__,__v_isRef,__isVue"),ze=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(_));function We(e){_(e)||(e=String(e));const t=vt(this);return Pe(t,0,e),t.hasOwnProperty(e)}class Be{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?at:lt:r?ot:it).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=p(e);if(!s){let e;if(i&&(e=Fe[t]))return e;if("hasOwnProperty"===t)return We}const o=Reflect.get(e,t,bt(e)?e:n);if(_(t)?ze.has(t):qe(t))return o;if(s||Pe(e,0,t),r)return o;if(bt(o)){const e=i&&w(t)?o:o.value;return s&&b(e)?ht(e):e}return b(o)?s?ht(o):ut(o):o}}class He extends Be{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];const i=p(e)&&w(t);if(!this._isShallow){const e=ft(r);if(mt(n)||ft(n)||(r=vt(r),n=vt(n)),!i&&bt(r)&&!bt(n))return e||(r.value=n),!0}const o=i?Number(t)<e.length:d(e,t),l=Reflect.set(e,t,n,bt(e)?e:s);return e===vt(s)&&(o?T(n,r)&&je(e,"set",t,n):je(e,"add",t,n)),l}deleteProperty(e,t){const n=d(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s&&n&&je(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return _(t)&&ze.has(t)||Pe(e,0,t),n}ownKeys(e){return Pe(e,0,p(e)?"length":Ve),Reflect.ownKeys(e)}}class Ke extends Be{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Ze=new He,Qe=new Ke,Je=new He(!0),Ge=e=>e,Xe=e=>Reflect.getPrototypeOf(e);function Ye(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function et(e,t){const n={get(n){const s=this.__v_raw,r=vt(s),i=vt(n);e||(T(n,i)&&Pe(r,0,n),Pe(r,0,i));const{has:o}=Xe(r),l=t?Ge:e?_t:yt;return o.call(r,n)?l(s.get(n)):o.call(r,i)?l(s.get(i)):void(s!==r&&s.get(n))},get size(){const t=this.__v_raw;return!e&&Pe(vt(t),0,Ve),t.size},has(t){const n=this.__v_raw,s=vt(n),r=vt(t);return e||(T(t,r)&&Pe(s,0,t),Pe(s,0,r)),t===r?n.has(t):n.has(t)||n.has(r)},forEach(n,s){const r=this,i=r.__v_raw,o=vt(i),l=t?Ge:e?_t:yt;return!e&&Pe(o,0,Ve),i.forEach((e,t)=>n.call(s,l(e),l(t),r))}};c(n,e?{add:Ye("add"),set:Ye("set"),delete:Ye("delete"),clear:Ye("clear")}:{add(e){const n=vt(this),s=Xe(n),r=vt(e),i=t||mt(e)||ft(e)?e:r;return s.has.call(n,i)||T(e,i)&&s.has.call(n,e)||T(r,i)&&s.has.call(n,r)||(n.add(i),je(n,"add",i,i)),this},set(e,n){t||mt(n)||ft(n)||(n=vt(n));const s=vt(this),{has:r,get:i}=Xe(s);let o=r.call(s,e);o||(e=vt(e),o=r.call(s,e));const l=i.call(s,e);return s.set(e,n),o?T(n,l)&&je(s,"set",e,n):je(s,"add",e,n),this},delete(e){const t=vt(this),{has:n,get:s}=Xe(t);let r=n.call(t,e);r||(e=vt(e),r=n.call(t,e)),s&&s.call(t,e);const i=t.delete(e);return r&&je(t,"delete",e,void 0),i},clear(){const e=vt(this),t=0!==e.size,n=e.clear();return t&&je(e,"clear",void 0,void 0),n}});return["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=function(e,t,n){return function(...s){const r=this.__v_raw,i=vt(r),o=f(i),l="entries"===e||e===Symbol.iterator&&o,a="keys"===e&&o,u=r[e](...s),h=n?Ge:t?_t:yt;return!t&&Pe(i,0,a?Ae:Ve),c(Object.create(u),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:l?[h(e[0]),h(e[1])]:h(e),done:t}}})}}(s,e,t)}),n}function tt(e,t){const n=et(e,t);return(t,s,r)=>"__v_isReactive"===s?!e:"__v_isReadonly"===s?e:"__v_raw"===s?t:Reflect.get(d(n,s)&&s in t?n:t,s,r)}const nt={get:tt(!1,!1)},st={get:tt(!1,!0)},rt={get:tt(!0,!1)},it=new WeakMap,ot=new WeakMap,lt=new WeakMap,at=new WeakMap;function ct(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>k(e).slice(8,-1))(e))}function ut(e){return ft(e)?e:dt(e,!1,Ze,nt,it)}function ht(e){return dt(e,!0,Qe,rt,lt)}function dt(e,t,n,s,r){if(!b(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=ct(e);if(0===i)return e;const o=r.get(e);if(o)return o;const l=new Proxy(e,2===i?s:n);return r.set(e,l),l}function pt(e){return ft(e)?pt(e.__v_raw):!(!e||!e.__v_isReactive)}function ft(e){return!(!e||!e.__v_isReadonly)}function mt(e){return!(!e||!e.__v_isShallow)}function gt(e){return!!e&&!!e.__v_raw}function vt(e){const t=e&&e.__v_raw;return t?vt(t):e}const yt=e=>b(e)?ut(e):e,_t=e=>b(e)?ht(e):e;function bt(e){return!!e&&!0===e.__v_isRef}function St(e){return bt(e)?e.value:e}const xt={get:(e,t,n)=>"__v_raw"===t?e:St(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return bt(r)&&!bt(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function kt(e){return pt(e)?e:new Proxy(e,xt)}class Et{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Ee(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=xe-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags)&&te!==this)return ae(this,!0),!0}get value(){const e=this.dep.track();return fe(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}const wt={},Ct=new WeakMap;let Vt;function At(e,t,n=s){const{immediate:r,deep:o,once:l,scheduler:a,augmentJob:c,call:h}=n,d=e=>o?e:mt(e)||!1===o||0===o?Ot(e,1):Ot(e);let f,m,g,y,_=!1,b=!1;if(bt(e)?(m=()=>e.value,_=mt(e)):pt(e)?(m=()=>d(e),_=!0):p(e)?(b=!0,_=e.some(e=>pt(e)||mt(e)),m=()=>e.map(e=>bt(e)?e.value:pt(e)?d(e):v(e)?h?h(e,2):e():void 0)):m=v(e)?t?h?()=>h(e,2):e:()=>{if(g){_e();try{g()}finally{be()}}const t=Vt;Vt=f;try{return h?h(e,3,[y]):e(y)}finally{Vt=t}}:i,t&&o){const e=m,t=!0===o?1/0:o;m=()=>Ot(e(),t)}const S=ee,x=()=>{f.stop(),S&&S.active&&u(S.effects,f)};if(l&&t){const e=t;t=(...t)=>{e(...t),x()}}let k=b?new Array(e.length).fill(wt):wt;const E=e=>{if(1&f.flags&&(f.dirty||e))if(t){const e=f.run();if(o||_||(b?e.some((e,t)=>T(e,k[t])):T(e,k))){g&&g();const n=Vt;Vt=f;try{const n=[e,k===wt?void 0:b&&k[0]===wt?[]:k,y];k=e,h?h(t,3,n):t(...n)}finally{Vt=n}}}else f.run()};return c&&c(E),f=new re(m),f.scheduler=a?()=>a(E,!1):E,y=e=>function(e,t=!1,n=Vt){if(n){let t=Ct.get(n);t||Ct.set(n,t=[]),t.push(e)}}(e,!1,f),g=f.onStop=()=>{const e=Ct.get(f);if(e){if(h)h(e,4);else for(const t of e)t();Ct.delete(f)}},t?r?E(!0):k=f.run():a?a(E.bind(null,!0),!0):f.run(),x.pause=f.pause.bind(f),x.resume=f.resume.bind(f),x.stop=x,x}function Ot(e,t=1/0,n){if(t<=0||!b(e)||e.__v_skip)return e;if(((n=n||new Map).get(e)||0)>=t)return e;if(n.set(e,t),t--,bt(e))Ot(e.value,t,n);else if(p(e))for(let s=0;s<e.length;s++)Ot(e[s],t,n);else if(m(e)||f(e))e.forEach(e=>{Ot(e,t,n)});else if(E(e)){for(const s in e)Ot(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Ot(e[s],t,n)}return e}
|
|
15
15
|
/**
|
|
16
16
|
* @vue/runtime-core v3.5.30
|
|
17
17
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
18
18
|
* @license MIT
|
|
19
|
-
**/const Ft=[];function Ut(e){Ft.push(e)}function Lt(){Ft.pop()}let qt=!1;function Ht(e,...t){if(qt)return;qt=!0,Ve();const n=Ft.length?Ft[Ft.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=function(){let e=Ft[Ft.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}();if(o)Kt(o,n,11,[e+t.map(e=>{var t,n;return null!=(n=null==(t=e.toString)?void 0:t.call(e))?n:JSON.stringify(e)}).join(""),n&&n.proxy,r.map(({vnode:e})=>`at <${Rs(n,e.type)}>`).join("\n"),r]);else{const n=[`[Vue warn]: ${e}`,...t];r.length&&n.push("\n",...function(e){const t=[];return e.forEach((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=!!e.component&&null==e.component.parent,r=` at <${Rs(e.component,e.type,o)}`,s=">"+n;return e.props?[r,...zt(e.props),s]:[r+s]}(e))}),t}(r)),console.warn(...n)}De(),qt=!1}function zt(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(n=>{t.push(...Wt(n,e[n]))}),n.length>3&&t.push(" ..."),t}function Wt(e,t,n){return g(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:xt(t)?(t=Wt(e,Dt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):_(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Dt(t),n?t:[`${e}=`,t])}const Bt={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Kt(e,t,n,o){try{return o?e(...o):e()}catch(e){Zt(e,t,n)}}function Jt(e,t,n,o){if(_(e)){const r=Kt(e,t,n,o);return r&&b(r)&&r.catch(e=>{Zt(e,t,n)}),r}if(f(e)){const r=[];for(let s=0;s<e.length;s++)r.push(Jt(e[s],t,n,o));return r}"production"!==process.env.NODE_ENV&&Ht("Invalid value type passed to callWithAsyncErrorHandling(): "+typeof e)}function Zt(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||o;if(t){let o=t.parent;const r=t.proxy,s="production"!==process.env.NODE_ENV?Bt[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,s))return;o=o.parent}if(i)return Ve(),Kt(i,null,10,[e,r,s]),void De()}!function(e,t,n,o=!0,r=!1){if("production"!==process.env.NODE_ENV){const r=Bt[t];if(n&&Ut(n),Ht("Unhandled error"+(r?` during execution of ${r}`:"")),n&&Lt(),o)throw e;console.error(e)}else{if(r)throw e;console.error(e)}}(e,n,s,r,l)}const Gt=[];let Yt=-1;const Qt=[];let Xt=null,en=0;const tn=Promise.resolve();let nn=null;function on(e){const t=nn||tn;return e?t.then(this?e.bind(this):e):t}function rn(e){if(!(1&e.flags)){const t=un(e),n=Gt[Gt.length-1];!n||!(2&e.flags)&&t>=un(n)?Gt.push(e):Gt.splice(function(e){let t=Yt+1,n=Gt.length;for(;t<n;){const o=t+n>>>1,r=Gt[o],s=un(r);s<e||s===e&&2&r.flags?t=o+1:n=o}return t}(t),0,e),e.flags|=1,sn()}}function sn(){nn||(nn=tn.then(pn))}function ln(e){f(e)?Qt.push(...e):Xt&&-1===e.id?Xt.splice(en+1,0,e):1&e.flags||(Qt.push(e),e.flags|=1),sn()}function an(e,t,n=Yt+1){for("production"!==process.env.NODE_ENV&&(t=t||new Map);n<Gt.length;n++){const o=Gt[n];if(o&&2&o.flags){if(e&&o.id!==e.uid)continue;if("production"!==process.env.NODE_ENV&&dn(t,o))continue;Gt.splice(n,1),n--,4&o.flags&&(o.flags&=-2),o(),4&o.flags||(o.flags&=-2)}}}function cn(e){if(Qt.length){const t=[...new Set(Qt)].sort((e,t)=>un(e)-un(t));if(Qt.length=0,Xt)return void Xt.push(...t);for(Xt=t,"production"!==process.env.NODE_ENV&&(e=e||new Map),en=0;en<Xt.length;en++){const t=Xt[en];"production"!==process.env.NODE_ENV&&dn(e,t)||(4&t.flags&&(t.flags&=-2),8&t.flags||t(),t.flags&=-2)}Xt=null,en=0}}const un=e=>null==e.id?2&e.flags?-1:1/0:e.id;function pn(e){"production"!==process.env.NODE_ENV&&(e=e||new Map);const t="production"!==process.env.NODE_ENV?t=>dn(e,t):s;try{for(Yt=0;Yt<Gt.length;Yt++){const e=Gt[Yt];if(e&&!(8&e.flags)){if("production"!==process.env.NODE_ENV&&t(e))continue;4&e.flags&&(e.flags&=-2),Kt(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2)}}}finally{for(;Yt<Gt.length;Yt++){const e=Gt[Yt];e&&(e.flags&=-2)}Yt=-1,Gt.length=0,cn(e),nn=null,(Gt.length||Qt.length)&&pn(e)}}function dn(e,t){const n=e.get(t)||0;if(n>100){const e=t.i,n=e&&Is(e.type);return Zt(`Maximum recursive updates exceeded${n?` in component <${n}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return e.set(t,n+1),!1}let fn=!1;const hn=new Map;"production"!==process.env.NODE_ENV&&(L().__VUE_HMR_RUNTIME__={createRecord:yn(vn),rerender:yn(function(e,t){const n=mn.get(e);if(!n)return;n.initialDef.render=t,[...n.instances].forEach(e=>{t&&(e.render=t,_n(e.type).render=t),e.renderCache=[],fn=!0,8&e.job.flags||e.update(),fn=!1})}),reload:yn(function(e,t){const n=mn.get(e);if(!n)return;t=_n(t),gn(n.initialDef,t);const o=[...n.instances];for(let e=0;e<o.length;e++){const r=o[e],s=_n(r.type);let i=hn.get(s);i||(s!==n.initialDef&&gn(s,t),hn.set(s,i=new Set)),i.add(r),r.appContext.propsCache.delete(r.type),r.appContext.emitsCache.delete(r.type),r.appContext.optionsCache.delete(r.type),r.ceReload?(i.add(r),r.ceReload(t.styles),i.delete(r)):r.parent?rn(()=>{8&r.job.flags||(fn=!0,r.parent.update(),fn=!1,i.delete(r))}):r.appContext.reload?r.appContext.reload():"undefined"!=typeof window?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),r.root.ce&&r!==r.root&&r.root.ce._removeChildStyle(s)}ln(()=>{hn.clear()})})});const mn=new Map;function vn(e,t){return!mn.has(e)&&(mn.set(e,{initialDef:_n(t),instances:new Set}),!0)}function _n(e){return Ms(e)?e.__vccOpts:e}function gn(e,t){c(e,t);for(const n in e)"__file"===n||n in t||delete e[n]}function yn(e){return(t,n)=>{try{return e(t,n)}catch(e){console.error(e),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let En,bn=[],Nn=!1;function On(e,...t){En?En.emit(e,...t):Nn||bn.push({event:e,args:t})}function Vn(e,t){var n,o;if(En=e,En)En.enabled=!0,bn.forEach(({event:e,args:t})=>En.emit(e,...t)),bn=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null==(o=null==(n=window.navigator)?void 0:n.userAgent)?void 0:o.includes("jsdom"))){(t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(e=>{Vn(e,t)}),setTimeout(()=>{En||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Nn=!0,bn=[])},3e3)}else Nn=!0,bn=[]}const Dn=xn("component:added"),wn=xn("component:updated"),Sn=xn("component:removed");function xn(e){return t=>{On(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const kn=$n("perf:start"),Cn=$n("perf:end");function $n(e){return(t,n,o)=>{On(e,t.appContext.app,t.uid,t,n,o)}}let Pn=null,An=null;function jn(e){const t=Pn;return Pn=e,An=e&&e.type.__scopeId||null,t}function Tn(e){x(e)&&Ht("Do not use built-in directive ids as custom directive id: "+e)}function In(e,t){if(null===Pn)return"production"!==process.env.NODE_ENV&&Ht("withDirectives can only be used inside render functions."),e;const n=As(Pn),r=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[s,i,l,a=o]=t[e];s&&(_(s)&&(s={mounted:s,updated:s}),s.deep&&Mt(i),r.push({dir:s,instance:n,value:i,oldValue:void 0,arg:l,modifiers:a}))}return e}function Rn(e,t,n,o){const r=e.dirs,s=t&&t.dirs;for(let i=0;i<r.length;i++){const l=r[i];s&&(l.oldValue=s[i].value);let a=l.dir[o];a&&(Ve(),Jt(a,n,8,[e.el,l,e,t]),De())}}function Mn(e,t,n=!1){const o=Es();if(o||Jo){let r=Jo?Jo._context.provides:o?null==o.parent||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&_(t)?t.call(o&&o.proxy):t;"production"!==process.env.NODE_ENV&&Ht(`injection "${String(e)}" not found.`)}else"production"!==process.env.NODE_ENV&&Ht("inject() can only be used inside setup() or functional components.")}const Fn=Symbol.for("v-scx");function Un(e,t,n){return"production"===process.env.NODE_ENV||_(t)||Ht("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),Ln(e,t,n)}function Ln(e,t,n=o){const{immediate:r,deep:i,flush:l,once:a}=n;"production"===process.env.NODE_ENV||t||(void 0!==r&&Ht('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==i&&Ht('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==a&&Ht('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const u=c({},n);"production"!==process.env.NODE_ENV&&(u.onWarn=Ht);const p=t&&r||!t&&"post"!==l;let d;if(xs)if("sync"===l){const e=(()=>{{const e=Mn(Fn);return e||"production"!==process.env.NODE_ENV&&Ht("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}})();d=e.__watcherHandles||(e.__watcherHandles=[])}else if(!p){const e=()=>{};return e.stop=s,e.resume=s,e.pause=s,e}const f=ys;u.call=(e,t,n)=>Jt(e,f,t,n);let h=!1;"post"===l?u.scheduler=e=>{Tr(e,f&&f.suspense)}:"sync"!==l&&(h=!0,u.scheduler=(e,t)=>{t?e():rn(e)}),u.augmentJob=e=>{t&&(e.flags|=4),h&&(e.flags|=2,f&&(e.id=f.uid,e.i=f))};const m=Rt(e,t,u);return xs&&(d?d.push(m):p&&m()),m}function qn(e,t,n){const o=this.proxy,r=g(e)?e.includes(".")?Hn(o,e):()=>o[e]:e.bind(o,o);let s;_(t)?s=t:(s=t.handler,n=t);const i=Os(this),l=Ln(r,s.bind(o),n);return i(),l}function Hn(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}const zn=Symbol("_vte"),Wn=Symbol("_leaveCb");function Bn(e,t){6&e.shapeFlag&&e.component?(e.transition=t,Bn(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Kn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Jn=new WeakSet;function Zn(e,t){let n;return!(!(n=Object.getOwnPropertyDescriptor(e,t))||n.configurable)}const Gn=new WeakMap;function Yn(e,t,n,r,s=!1){if(f(e))return void e.forEach((e,o)=>Yn(e,t&&(f(t)?t[o]:t),n,r,s));if(eo(r)&&!s)return void(512&r.shapeFlag&&r.type.__asyncResolved&&r.component.subTree.component&&Yn(e,t,n,r.component.subTree));const l=4&r.shapeFlag?As(r.component):r.el,a=s?null:l,{i:c,r:p}=e;if("production"!==process.env.NODE_ENV&&!c)return void Ht("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");const h=t&&t.r,m=c.refs===o?c.refs={}:c.refs,v=c.setupState,y=Dt(v),E=v===o?i:e=>("production"===process.env.NODE_ENV||(d(y,e)&&!xt(y[e])&&Ht(`Template ref "${e}" used on a non-ref value. It will not work in the production build.`),!Jn.has(y[e])))&&(!Zn(m,e)&&d(y,e)),b=(e,t)=>("production"===process.env.NODE_ENV||!Jn.has(e))&&(!t||!Zn(m,t));if(null!=h&&h!==p)if(Qn(t),g(h))m[h]=null,E(h)&&(v[h]=null);else if(xt(h)){const e=t;b(h,e.k)&&(h.value=null),e.k&&(m[e.k]=null)}if(_(p))Kt(p,c,12,[a,m]);else{const t=g(p),o=xt(p);if(t||o){const r=()=>{if(e.f){const n=t?E(p)?v[p]:m[p]:b(p)||!e.k?p.value:m[e.k];if(s)f(n)&&u(n,l);else if(f(n))n.includes(l)||n.push(l);else if(t)m[p]=[l],E(p)&&(v[p]=m[p]);else{const t=[l];b(p,e.k)&&(p.value=t),e.k&&(m[e.k]=t)}}else t?(m[p]=a,E(p)&&(v[p]=a)):o?(b(p,e.k)&&(p.value=a),e.k&&(m[e.k]=a)):"production"!==process.env.NODE_ENV&&Ht("Invalid template ref type:",p,`(${typeof p})`)};if(a){const t=()=>{r(),Gn.delete(e)};t.id=-1,Gn.set(e,t),Tr(t,n)}else Qn(e),r()}else"production"!==process.env.NODE_ENV&&Ht("Invalid template ref type:",p,`(${typeof p})`)}}function Qn(e){const t=Gn.get(e);t&&(t.flags|=8,Gn.delete(e))}const Xn=e=>8===e.nodeType;L().requestIdleCallback,L().cancelIdleCallback;const eo=e=>!!e.type.__asyncLoader;function to(e){_(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:r=200,hydrate:s,timeout:i,suspensible:l=!0,onError:a}=e;let u,p=null,d=0;const f=()=>{let e;return p||(e=p=t().catch(e=>{if(e=e instanceof Error?e:new Error(String(e)),a)return new Promise((t,n)=>{a(e,()=>t((d++,p=null,f())),()=>n(e),d+1)});throw e}).then(t=>{if(e!==p&&p)return p;if("production"===process.env.NODE_ENV||t||Ht("Async component loader resolved to undefined. If you are using retry(), make sure to return its return value."),t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),"production"!==process.env.NODE_ENV&&t&&!E(t)&&!_(t))throw new Error(`Invalid async component load result: ${t}`);return u=t,t}))};return _(h={name:"AsyncComponentWrapper",__asyncLoader:f,__asyncHydrate(e,t,n){let o=!1;(t.bu||(t.bu=[])).push(()=>o=!0);const r=()=>{o?"production"!==process.env.NODE_ENV&&Ht(`Skipping lazy hydration for component '${Is(u)||u.__file}': it was updated before lazy hydration performed.`):n()},i=s?()=>{const n=s(r,t=>function(e,t){if(Xn(e)&&"["===e.data){let n=1,o=e.nextSibling;for(;o;){if(1===o.nodeType){if(!1===t(o))break}else if(Xn(o))if("]"===o.data){if(0===--n)break}else"["===o.data&&n++;o=o.nextSibling}}else t(e)}(e,t));n&&(t.bum||(t.bum=[])).push(n)}:r;u?i():f().then(()=>!t.isUnmounted&&i())},get __asyncResolved(){return u},setup(){const e=ys;if(Kn(e),u)return()=>no(u,e);const t=t=>{p=null,Zt(t,e,13,!o)};if(l&&e.suspense||xs)return f().then(t=>()=>no(t,e)).catch(e=>(t(e),()=>o?ls(o,{error:e}):null));const s=kt(!1),a=kt(),c=kt(!!r);return r&&setTimeout(()=>{c.value=!1},r),null!=i&&setTimeout(()=>{if(!s.value&&!a.value){const e=new Error(`Async component timed out after ${i}ms.`);t(e),a.value=e}},i),f().then(()=>{s.value=!0,e.parent&&oo(e.parent.vnode)&&e.parent.update()}).catch(e=>{t(e),a.value=e}),()=>s.value&&u?no(u,e):a.value&&o?ls(o,{error:a.value}):n&&!c.value?no(n,e):void 0}})?(()=>c({name:h.name},m,{setup:h}))():h;var h,m}function no(e,t){const{ref:n,props:o,children:r,ce:s}=t.vnode,i=ls(e,o,r);return i.ref=n,i.ce=s,delete t.vnode.ce,i}const oo=e=>e.type.__isKeepAlive;function ro(e,t){io(e,"a",t)}function so(e,t){io(e,"da",t)}function io(e,t,n=ys){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(ao(t,o,n),n){let e=n.parent;for(;e&&e.parent;)oo(e.parent.vnode)&&lo(o,t,n,e),e=e.parent}}function lo(e,t,n,o){const r=ao(t,e,o,!0);vo(()=>{u(o[t],r)},n)}function ao(e,t,n=ys,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{Ve();const r=Os(n),s=Jt(t,n,e,o);return r(),De(),s});return o?r.unshift(s):r.push(s),s}if("production"!==process.env.NODE_ENV){Ht(`${T(Bt[e].replace(/ hook$/,""))} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const co=e=>(t,n=ys)=>{xs&&"sp"!==e||ao(e,(...e)=>t(...e),n)},uo=co("bm"),po=co("m"),fo=co("bu"),ho=co("u"),mo=co("bum"),vo=co("um"),_o=co("sp"),go=co("rtg"),yo=co("rtc");function Eo(e,t=ys){ao("ec",e,t)}const bo="components";function No(e,t){return Vo(bo,e,!0,t)||e}const Oo=Symbol.for("v-ndc");function Vo(e,t,n=!0,o=!1){const r=Pn||ys;if(r){const s=r.type;{const e=Is(s,!1);if(e&&(e===t||e===$(t)||e===j($(t))))return s}const i=Do(r[e]||s[e],t)||Do(r.appContext[e],t);if(!i&&o)return s;if("production"!==process.env.NODE_ENV&&n&&!i){const n="\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.";Ht(`Failed to resolve ${e.slice(0,-1)}: ${t}${n}`)}return i}"production"!==process.env.NODE_ENV&&Ht(`resolve${j(e.slice(0,-1))} can only be used in render() or setup().`)}function Do(e,t){return e&&(e[t]||e[$(t)]||e[j($(t))])}function wo(e,t,n,o){let r;const s=n,i=f(e);if(i||g(e)){let n=!1,o=!1;i&&bt(e)&&(n=!Ot(e),o=Nt(e),e=Me(e)),r=new Array(e.length);for(let i=0,l=e.length;i<l;i++)r[i]=t(n?o?St(wt(e[i])):wt(e[i]):e[i],i,void 0,s)}else if("number"==typeof e)if("production"!==process.env.NODE_ENV&&(!Number.isInteger(e)||e<0))Ht(`The v-for range expects a positive integer value but got ${e}.`),r=[];else{r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n+1,n,void 0,s)}else if(E(e))if(e[Symbol.iterator])r=Array.from(e,(e,n)=>t(e,n,void 0,s));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,i=n.length;o<i;o++){const i=n[o];r[o]=t(e[i],i,o,s)}}else r=[];return r}const So=e=>e?Ss(e)?As(e):So(e.parent):null,xo=c(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>"production"!==process.env.NODE_ENV?yt(e.props):e.props,$attrs:e=>"production"!==process.env.NODE_ENV?yt(e.attrs):e.attrs,$slots:e=>"production"!==process.env.NODE_ENV?yt(e.slots):e.slots,$refs:e=>"production"!==process.env.NODE_ENV?yt(e.refs):e.refs,$parent:e=>So(e.parent),$root:e=>So(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?Ro(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>{rn(e.update)}),$nextTick:e=>e.n||(e.n=on.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?qn.bind(e):s}),ko=e=>"_"===e||"$"===e,Co=(e,t)=>e!==o&&!e.__isScriptSetup&&d(e,t),$o={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:l,type:a,appContext:c}=e;if("production"!==process.env.NODE_ENV&&"__isVue"===t)return!0;if("$"!==t[0]){const e=l[t];if(void 0!==e)switch(e){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(Co(r,t))return l[t]=1,r[t];if(__VUE_OPTIONS_API__&&s!==o&&d(s,t))return l[t]=2,s[t];if(d(i,t))return l[t]=3,i[t];if(n!==o&&d(n,t))return l[t]=4,n[t];__VUE_OPTIONS_API__&&!Ao||(l[t]=0)}}const u=xo[t];let p,f;return u?("$attrs"===t?(Te(e.attrs,"get",""),"production"!==process.env.NODE_ENV&&er()):"production"!==process.env.NODE_ENV&&"$slots"===t&&Te(e,"get",t),u(e)):(p=a.__cssModules)&&(p=p[t])?p:n!==o&&d(n,t)?(l[t]=4,n[t]):(f=c.config.globalProperties,d(f,t)?f[t]:void("production"===process.env.NODE_ENV||!Pn||g(t)&&0===t.indexOf("__v")||(s!==o&&ko(t[0])&&d(s,t)?Ht(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===Pn&&Ht(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))))},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return Co(s,t)?(s[t]=n,!0):"production"!==process.env.NODE_ENV&&s.__isScriptSetup&&d(s,t)?(Ht(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):__VUE_OPTIONS_API__&&r!==o&&d(r,t)?(r[t]=n,!0):d(e.props,t)?("production"!==process.env.NODE_ENV&&Ht(`Attempting to mutate prop "${t}". Props are readonly.`),!1):"$"===t[0]&&t.slice(1)in e?("production"!==process.env.NODE_ENV&&Ht(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):("production"!==process.env.NODE_ENV&&t in e.appContext.config.globalProperties?Object.defineProperty(i,t,{enumerable:!0,configurable:!0,value:n}):i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:i,type:l}},a){let c;return!!(n[a]||__VUE_OPTIONS_API__&&e!==o&&"$"!==a[0]&&d(e,a)||Co(t,a)||d(i,a)||d(r,a)||d(xo,a)||d(s.config.globalProperties,a)||(c=l.__cssModules)&&c[a])},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:d(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Po(e){return f(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}"production"!==process.env.NODE_ENV&&($o.ownKeys=e=>(Ht("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));let Ao=!0;function jo(e){const t=Ro(e),n=e.proxy,o=e.ctx;Ao=!1,t.beforeCreate&&To(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:l,watch:a,provide:c,inject:u,created:p,beforeMount:d,mounted:h,beforeUpdate:m,updated:v,activated:g,deactivated:y,beforeDestroy:N,beforeUnmount:O,destroyed:V,unmounted:D,render:w,renderTracked:S,renderTriggered:x,errorCaptured:k,serverPrefetch:C,expose:$,inheritAttrs:P,components:A,directives:j,filters:T}=t,I="production"!==process.env.NODE_ENV?function(){const e=Object.create(null);return(t,n)=>{e[n]?Ht(`${t} property "${n}" is already defined in ${e[n]}.`):e[n]=t}}():null;if("production"!==process.env.NODE_ENV){const[t]=e.propsOptions;if(t)for(const e in t)I("Props",e)}if(u&&function(e,t,n=s){f(e)&&(e=Lo(e));for(const o in e){const r=e[o];let s;s=E(r)?"default"in r?Mn(r.from||o,r.default,!0):Mn(r.from||o):Mn(r),xt(s)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[o]=s,"production"!==process.env.NODE_ENV&&n("Inject",o)}}(u,o,I),l)for(const e in l){const t=l[e];_(t)?("production"!==process.env.NODE_ENV?Object.defineProperty(o,e,{value:t.bind(n),configurable:!0,enumerable:!0,writable:!0}):o[e]=t.bind(n),"production"!==process.env.NODE_ENV&&I("Methods",e)):"production"!==process.env.NODE_ENV&&Ht(`Method "${e}" has type "${typeof t}" in the component definition. Did you reference the function correctly?`)}if(r){"production"===process.env.NODE_ENV||_(r)||Ht("The data option must be a function. Plain object usage is no longer supported.");const t=r.call(n,n);if("production"!==process.env.NODE_ENV&&b(t)&&Ht("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),E(t)){if(e.data=_t(t),"production"!==process.env.NODE_ENV)for(const e in t)I("Data",e),ko(e[0])||Object.defineProperty(o,e,{configurable:!0,enumerable:!0,get:()=>t[e],set:s})}else"production"!==process.env.NODE_ENV&&Ht("data() should return an object.")}if(Ao=!0,i)for(const e in i){const t=i[e],r=_(t)?t.bind(n,n):_(t.get)?t.get.bind(n,n):s;"production"!==process.env.NODE_ENV&&r===s&&Ht(`Computed property "${e}" has no getter.`);const l=!_(t)&&_(t.set)?t.set.bind(n):"production"!==process.env.NODE_ENV?()=>{Ht(`Write operation failed: computed property "${e}" is readonly.`)}:s,a=Fs({get:r,set:l});Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e}),"production"!==process.env.NODE_ENV&&I("Computed",e)}if(a)for(const e in a)Io(a[e],o,n,e);if(c){const e=_(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{!function(e,t){if("production"!==process.env.NODE_ENV&&(ys&&!ys.isMounted||Ht("provide() can only be used inside setup().")),ys){let n=ys.provides;const o=ys.parent&&ys.parent.provides;o===n&&(n=ys.provides=Object.create(o)),n[e]=t}}(t,e[t])})}function R(e,t){f(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(p&&To(p,e,"c"),R(uo,d),R(po,h),R(fo,m),R(ho,v),R(ro,g),R(so,y),R(Eo,k),R(yo,S),R(go,x),R(mo,O),R(vo,D),R(_o,C),f($))if($.length){const t=e.exposed||(e.exposed={});$.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});w&&e.render===s&&(e.render=w),null!=P&&(e.inheritAttrs=P),A&&(e.components=A),j&&(e.directives=j),C&&Kn(e)}function To(e,t,n){Jt(f(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Io(e,t,n,o){let r=o.includes(".")?Hn(n,o):()=>n[o];if(g(e)){const n=t[e];_(n)?Un(r,n):"production"!==process.env.NODE_ENV&&Ht(`Invalid watch handler specified by key "${e}"`,n)}else if(_(e))Un(r,e.bind(n));else if(E(e))if(f(e))e.forEach(e=>Io(e,t,n,o));else{const o=_(e.handler)?e.handler.bind(n):t[e.handler];_(o)?Un(r,o,e):"production"!==process.env.NODE_ENV&&Ht(`Invalid watch handler specified by key "${e.handler}"`,o)}else"production"!==process.env.NODE_ENV&&Ht(`Invalid watch option: "${o}"`,e)}function Ro(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,l=s.get(t);let a;return l?a=l:r.length||n||o?(a={},r.length&&r.forEach(e=>Mo(a,e,i,!0)),Mo(a,t,i)):a=t,E(t)&&s.set(t,a),a}function Mo(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&Mo(e,s,n,!0),r&&r.forEach(t=>Mo(e,t,n,!0));for(const r in t)if(o&&"expose"===r)"production"!==process.env.NODE_ENV&&Ht('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const o=Fo[r]||n&&n[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const Fo={data:Uo,props:zo,emits:zo,methods:Ho,computed:Ho,beforeCreate:qo,created:qo,beforeMount:qo,mounted:qo,beforeUpdate:qo,updated:qo,beforeDestroy:qo,beforeUnmount:qo,destroyed:qo,unmounted:qo,activated:qo,deactivated:qo,errorCaptured:qo,serverPrefetch:qo,components:Ho,directives:Ho,watch:function(e,t){if(!e)return t;if(!t)return e;const n=c(Object.create(null),e);for(const o in t)n[o]=qo(e[o],t[o]);return n},provide:Uo,inject:function(e,t){return Ho(Lo(e),Lo(t))}};function Uo(e,t){return t?e?function(){return c(_(e)?e.call(this,this):e,_(t)?t.call(this,this):t)}:t:e}function Lo(e){if(f(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function qo(e,t){return e?[...new Set([].concat(e,t))]:t}function Ho(e,t){return e?c(Object.create(null),e,t):t}function zo(e,t){return e?f(e)&&f(t)?[...new Set([...e,...t])]:c(Object.create(null),Po(e),Po(null!=t?t:{})):t}function Wo(){return{app:null,config:{isNativeTag:i,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 Bo=0;function Ko(e,t){return function(t,n=null){_(t)||(t=c({},t)),null==n||E(n)||("production"!==process.env.NODE_ENV&&Ht("root props passed to app.mount() must be an object."),n=null);const o=Wo(),r=new WeakSet,s=[];let i=!1;const l=o.app={_uid:Bo++,_component:t,_props:n,_container:null,_context:o,_instance:null,version:Ls,get config(){return o.config},set config(e){"production"!==process.env.NODE_ENV&&Ht("app.config cannot be replaced. Modify individual options instead.")},use:(e,...t)=>(r.has(e)?"production"!==process.env.NODE_ENV&&Ht("Plugin has already been applied to target app."):e&&_(e.install)?(r.add(e),e.install(l,...t)):_(e)?(r.add(e),e(l,...t)):"production"!==process.env.NODE_ENV&&Ht('A plugin must either be a function or an object with an "install" function.'),l),mixin:e=>(__VUE_OPTIONS_API__?o.mixins.includes(e)?"production"!==process.env.NODE_ENV&&Ht("Mixin has already been applied to target app"+(e.name?`: ${e.name}`:"")):o.mixins.push(e):"production"!==process.env.NODE_ENV&&Ht("Mixins are only available in builds supporting Options API"),l),component:(e,t)=>("production"!==process.env.NODE_ENV&&ws(e,o.config),t?("production"!==process.env.NODE_ENV&&o.components[e]&&Ht(`Component "${e}" has already been registered in target app.`),o.components[e]=t,l):o.components[e]),directive:(e,t)=>("production"!==process.env.NODE_ENV&&Tn(e),t?("production"!==process.env.NODE_ENV&&o.directives[e]&&Ht(`Directive "${e}" has already been registered in target app.`),o.directives[e]=t,l):o.directives[e]),mount(r,s,a){if(!i){"production"!==process.env.NODE_ENV&&r.__vue_app__&&Ht("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const s=l._ceVNode||ls(t,n);return s.appContext=o,!0===a?a="svg":!1===a&&(a=void 0),"production"!==process.env.NODE_ENV&&(o.reload=()=>{const t=cs(s);t.el=null,e(t,r,a)}),e(s,r,a),i=!0,l._container=r,r.__vue_app__=l,("production"!==process.env.NODE_ENV||__VUE_PROD_DEVTOOLS__)&&(l._instance=s.component,function(e,t){On("app:init",e,t,{Fragment:zr,Text:Wr,Comment:Br,Static:Kr})}(l,Ls)),As(s.component)}"production"!==process.env.NODE_ENV&&Ht("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`")},onUnmount(e){"production"!==process.env.NODE_ENV&&"function"!=typeof e&&Ht("Expected function as first argument to app.onUnmount(), but got "+typeof e),s.push(e)},unmount(){i?(Jt(s,l._instance,16),e(null,l._container),("production"!==process.env.NODE_ENV||__VUE_PROD_DEVTOOLS__)&&(l._instance=null,function(e){On("app:unmount",e)}(l)),delete l._container.__vue_app__):"production"!==process.env.NODE_ENV&&Ht("Cannot unmount an app that is not mounted.")},provide:(e,t)=>("production"!==process.env.NODE_ENV&&e in o.provides&&(d(o.provides,e)?Ht(`App already provides property with key "${String(e)}". It will be overwritten with the new value.`):Ht(`App already provides property with key "${String(e)}" inherited from its parent element. It will be overwritten with the new value.`)),o.provides[e]=t,l),runWithContext(e){const t=Jo;Jo=l;try{return e()}finally{Jo=t}}};return l}}let Jo=null;function Zo(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||o;if("production"!==process.env.NODE_ENV){const{emitsOptions:o,propsOptions:[r]}=e;if(o)if(t in o){const e=o[t];if(_(e)){e(...n)||Ht(`Invalid event arguments: event validation failed for event "${t}".`)}}else r&&T($(t))in r||Ht(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${T($(t))}" prop.`)}let s=n;const i=t.startsWith("update:"),l=i&&((e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${$(t)}Modifiers`]||e[`${A(t)}Modifiers`])(r,t.slice(7));if(l&&(l.trim&&(s=n.map(e=>g(e)?e.trim():e)),l.number&&(s=n.map(F))),("production"!==process.env.NODE_ENV||__VUE_PROD_DEVTOOLS__)&&function(e,t,n){On("component:emit",e.appContext.app,e,t,n)}(e,t,s),"production"!==process.env.NODE_ENV){const n=t.toLowerCase();n!==t&&r[T(n)]&&Ht(`Event "${n}" is emitted in component ${Rs(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${A(t)}" instead of "${t}".`)}let a,c=r[a=T(t)]||r[a=T($(t))];!c&&i&&(c=r[a=T(A(t))]),c&&Jt(c,e,6,s);const u=r[a+"Once"];if(u){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,Jt(u,e,6,s)}}const Go=new WeakMap;function Yo(e,t,n=!1){const o=__VUE_OPTIONS_API__&&n?Go:t.emitsCache,r=o.get(e);if(void 0!==r)return r;const s=e.emits;let i={},l=!1;if(__VUE_OPTIONS_API__&&!_(e)){const o=e=>{const n=Yo(e,t,!0);n&&(l=!0,c(i,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return s||l?(f(s)?s.forEach(e=>i[e]=null):c(i,s),E(e)&&o.set(e,i),i):(E(e)&&o.set(e,null),null)}function Qo(e,t){return!(!e||!l(t))&&(t=t.slice(2).replace(/Once$/,""),d(e,t[0].toLowerCase()+t.slice(1))||d(e,A(t))||d(e,t))}let Xo=!1;function er(){Xo=!0}function tr(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[s],slots:i,attrs:c,emit:u,render:p,renderCache:d,props:f,data:h,setupState:m,ctx:v,inheritAttrs:_}=e,g=jn(e);let y,E;"production"!==process.env.NODE_ENV&&(Xo=!1);try{if(4&n.shapeFlag){const e=r||o,t="production"!==process.env.NODE_ENV&&m.__isScriptSetup?new Proxy(e,{get:(e,t,n)=>(Ht(`Property '${String(t)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(e,t,n))}):e;y=fs(p.call(t,e,d,"production"!==process.env.NODE_ENV?yt(f):f,m,h,v)),E=c}else{const e=t;"production"!==process.env.NODE_ENV&&c===f&&er(),y=fs(e.length>1?e("production"!==process.env.NODE_ENV?yt(f):f,"production"!==process.env.NODE_ENV?{get attrs(){return er(),yt(c)},slots:i,emit:u}:{attrs:c,slots:i,emit:u}):e("production"!==process.env.NODE_ENV?yt(f):f,null)),E=t.props?c:rr(c)}}catch(t){Jr.length=0,Zt(t,e,1),y=ls(Br)}let b,N=y;if("production"!==process.env.NODE_ENV&&y.patchFlag>0&&2048&y.patchFlag&&([N,b]=nr(y)),E&&!1!==_){const e=Object.keys(E),{shapeFlag:t}=N;if(e.length)if(7&t)s&&e.some(a)&&(E=sr(E,s)),N=cs(N,E,!1,!0);else if("production"!==process.env.NODE_ENV&&!Xo&&N.type!==Br){const e=Object.keys(c),t=[],n=[];for(let o=0,r=e.length;o<r;o++){const r=e[o];l(r)?a(r)||t.push(r[2].toLowerCase()+r.slice(3)):n.push(r)}n.length&&Ht(`Extraneous non-props attributes (${n.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text or teleport root nodes.`),t.length&&Ht(`Extraneous non-emits event listeners (${t.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}return n.dirs&&("production"===process.env.NODE_ENV||ir(N)||Ht("Runtime directive used on component with non-element root node. The directives will not function as intended."),N=cs(N,null,!1,!0),N.dirs=N.dirs?N.dirs.concat(n.dirs):n.dirs),n.transition&&("production"===process.env.NODE_ENV||ir(N)||Ht("Component inside <Transition> renders non-element root node that cannot be animated."),Bn(N,n.transition)),"production"!==process.env.NODE_ENV&&b?b(N):y=N,jn(g),y}const nr=e=>{const t=e.children,n=e.dynamicChildren,o=or(t,!1);if(!o)return[e,void 0];if("production"!==process.env.NODE_ENV&&o.patchFlag>0&&2048&o.patchFlag)return nr(o);const r=t.indexOf(o),s=n?n.indexOf(o):-1;return[fs(o),o=>{t[r]=o,n&&(s>-1?n[s]=o:o.patchFlag>0&&(e.dynamicChildren=[...n,o]))}]};function or(e,t=!0){let n;for(let o=0;o<e.length;o++){const r=e[o];if(!ns(r))return;if(r.type!==Br||"v-if"===r.children){if(n)return;if(n=r,"production"!==process.env.NODE_ENV&&t&&n.patchFlag>0&&2048&n.patchFlag)return or(n.children)}}return n}const rr=e=>{let t;for(const n in e)("class"===n||"style"===n||l(n))&&((t||(t={}))[n]=e[n]);return t},sr=(e,t)=>{const n={};for(const o in e)a(o)&&o.slice(9)in t||(n[o]=e[o]);return n},ir=e=>7&e.shapeFlag||e.type===Br;function lr(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const s=o[r];if(ar(t,e,s)&&!Qo(n,s))return!0}return!1}function ar(e,t,n){const o=e[n],r=t[n];return"style"===n&&E(o)&&E(r)?!X(o,r):o!==r}const cr={},ur=()=>Object.create(cr),pr=e=>Object.getPrototypeOf(e)===cr;function dr(e,t,n,o=!1){const r={},s=ur();e.propsDefaults=Object.create(null),fr(e,t,r,s);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);"production"!==process.env.NODE_ENV&&gr(t||{},r,e),n?e.props=o?r:Et(r,!1,tt,ct,ht):e.type.props?e.props=r:e.props=s,e.attrs=s}function fr(e,t,n,r){const[s,i]=e.propsOptions;let l,a=!1;if(t)for(let o in t){if(S(o))continue;const c=t[o];let u;s&&d(s,u=$(o))?i&&i.includes(u)?(l||(l={}))[u]=c:n[u]=c:Qo(e.emitsOptions,o)||o in r&&c===r[o]||(r[o]=c,a=!0)}if(i){const t=Dt(n),r=l||o;for(let o=0;o<i.length;o++){const l=i[o];n[l]=hr(s,t,l,r[l],e,!d(r,l))}}return a}function hr(e,t,n,o,r,s){const i=e[n];if(null!=i){const e=d(i,"default");if(e&&void 0===o){const e=i.default;if(i.type!==Function&&!i.skipFactory&&_(e)){const{propsDefaults:s}=r;if(n in s)o=s[n];else{const i=Os(r);o=s[n]=e.call(null,t),i()}}else o=e;r.ce&&r.ce._setProp(n,o)}i[0]&&(s&&!e?o=!1:!i[1]||""!==o&&o!==A(n)||(o=!0))}return o}const mr=new WeakMap;function vr(e,t,n=!1){const s=__VUE_OPTIONS_API__&&n?mr:t.propsCache,i=s.get(e);if(i)return i;const l=e.props,a={},u=[];let p=!1;if(__VUE_OPTIONS_API__&&!_(e)){const o=e=>{p=!0;const[n,o]=vr(e,t,!0);c(a,n),o&&u.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!l&&!p)return E(e)&&s.set(e,r),r;if(f(l))for(let e=0;e<l.length;e++){"production"===process.env.NODE_ENV||g(l[e])||Ht("props must be strings when using array syntax.",l[e]);const t=$(l[e]);_r(t)&&(a[t]=o)}else if(l){"production"===process.env.NODE_ENV||E(l)||Ht("invalid props options",l);for(const e in l){const t=$(e);if(_r(t)){const n=l[e],o=a[t]=f(n)||_(n)?{type:n}:c({},n),r=o.type;let s=!1,i=!0;if(f(r))for(let e=0;e<r.length;++e){const t=r[e],n=_(t)&&t.name;if("Boolean"===n){s=!0;break}"String"===n&&(i=!1)}else s=_(r)&&"Boolean"===r.name;o[0]=s,o[1]=i,(s||d(o,"default"))&&u.push(t)}}}const h=[a,u];return E(e)&&s.set(e,h),h}function _r(e){return"$"!==e[0]&&!S(e)||("production"!==process.env.NODE_ENV&&Ht(`Invalid prop name: "${e}" is a reserved property.`),!1)}function gr(e,t,n){const o=Dt(t),r=n.propsOptions[0],s=Object.keys(e).map(e=>$(e));for(const e in r){let t=r[e];null!=t&&yr(e,o[e],t,"production"!==process.env.NODE_ENV?yt(o):o,!s.includes(e))}}function yr(e,t,n,o,r){const{type:s,required:i,validator:l,skipCheck:a}=n;if(i&&r)Ht('Missing required prop: "'+e+'"');else if(null!=t||i){if(null!=s&&!0!==s&&!a){let n=!1;const o=f(s)?s:[s],r=[];for(let e=0;e<o.length&&!n;e++){const{valid:s,expectedType:i}=br(t,o[e]);r.push(i||""),n=s}if(!n)return void Ht(function(e,t,n){if(0===n.length)return`Prop type [] for prop "${e}" won't match anything. Did you mean to use type Array instead?`;let o=`Invalid prop: type check failed for prop "${e}". Expected ${n.map(j).join(" | ")}`;const r=n[0],s=V(t),i=Nr(t,r),l=Nr(t,s);1===n.length&&Or(r)&&!function(...e){return e.some(e=>"boolean"===e.toLowerCase())}(r,s)&&(o+=` with value ${i}`);o+=`, got ${s} `,Or(s)&&(o+=`with value ${l}.`);return o}(e,t,r))}l&&!l(t,o)&&Ht('Invalid prop: custom validator check failed for prop "'+e+'".')}}const Er=n("String,Number,Boolean,Function,Symbol,BigInt");function br(e,t){let n;const o=function(e){if(null===e)return"null";if("function"==typeof e)return e.name||"";if("object"==typeof e)return e.constructor&&e.constructor.name||"";return""}(t);if("null"===o)n=null===e;else if(Er(o)){const r=typeof e;n=r===o.toLowerCase(),n||"object"!==r||(n=e instanceof t)}else n="Object"===o?E(e):"Array"===o?f(e):e instanceof t;return{valid:n,expectedType:o}}function Nr(e,t){return"String"===t?`"${e}"`:"Number"===t?`${Number(e)}`:`${e}`}function Or(e){return["string","number","boolean"].some(t=>e.toLowerCase()===t)}const Vr=e=>"_"===e||"_ctx"===e||"$stable"===e,Dr=e=>f(e)?e.map(fs):[fs(e)],wr=(e,t,n)=>{if(t._n)return t;const o=function(e,t=Pn){if(!t)return e;if(e._n)return e;const n=(...o)=>{n._d&&Qr(-1);const r=jn(t);let s;try{s=e(...o)}finally{jn(r),n._d&&Qr(1)}return("production"!==process.env.NODE_ENV||__VUE_PROD_DEVTOOLS__)&&wn(t),s};return n._n=!0,n._c=!0,n._d=!0,n}((...o)=>("production"===process.env.NODE_ENV||!ys||null===n&&Pn||n&&n.root!==ys.root||Ht(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),Dr(t(...o))),n);return o._c=!1,o},Sr=(e,t,n)=>{const o=e._ctx;for(const n in e){if(Vr(n))continue;const r=e[n];if(_(r))t[n]=wr(n,r,o);else if(null!=r){"production"!==process.env.NODE_ENV&&Ht(`Non-function value encountered for slot "${n}". Prefer function slots for better performance.`);const e=Dr(r);t[n]=()=>e}}},xr=(e,t)=>{"production"===process.env.NODE_ENV||oo(e.vnode)||Ht("Non-function value encountered for default slot. Prefer function slots for better performance.");const n=Dr(t);e.slots.default=()=>n},kr=(e,t,n)=>{for(const o in t)!n&&Vr(o)||(e[o]=t[o])};let Cr,$r;function Pr(e,t){e.appContext.config.performance&&jr()&&$r.mark(`vue-${t}-${e.uid}`),("production"!==process.env.NODE_ENV||__VUE_PROD_DEVTOOLS__)&&kn(e,t,jr()?$r.now():Date.now())}function Ar(e,t){if(e.appContext.config.performance&&jr()){const n=`vue-${t}-${e.uid}`,o=n+":end",r=`<${Rs(e,e.type)}> ${t}`;$r.mark(o),$r.measure(r,n,o),$r.clearMeasures(r),$r.clearMarks(n),$r.clearMarks(o)}("production"!==process.env.NODE_ENV||__VUE_PROD_DEVTOOLS__)&&Cn(e,t,jr()?$r.now():Date.now())}function jr(){return void 0!==Cr||("undefined"!=typeof window&&window.performance?(Cr=!0,$r=window.performance):Cr=!1),Cr}const Tr=function(e,t){t&&t.pendingBranch?f(e)?t.effects.push(...e):t.effects.push(e):ln(e)};function Ir(e){return function(e){!function(){const e=[];if("boolean"!=typeof __VUE_OPTIONS_API__&&("production"!==process.env.NODE_ENV&&e.push("__VUE_OPTIONS_API__"),L().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&("production"!==process.env.NODE_ENV&&e.push("__VUE_PROD_DEVTOOLS__"),L().__VUE_PROD_DEVTOOLS__=!1),"boolean"!=typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&("production"!==process.env.NODE_ENV&&e.push("__VUE_PROD_HYDRATION_MISMATCH_DETAILS__"),L().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1),"production"!==process.env.NODE_ENV&&e.length){const t=e.length>1;console.warn(`Feature flag${t?"s":""} ${e.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.\n\nFor more details, see https://link.vuejs.org/feature-flags.`)}}();const t=L();t.__VUE__=!0,"production"===process.env.NODE_ENV&&!__VUE_PROD_DEVTOOLS__||Vn(t.__VUE_DEVTOOLS_GLOBAL_HOOK__,t);const{insert:n,remove:i,patchProp:l,createElement:a,createText:c,createComment:u,setText:p,setElementText:h,parentNode:m,nextSibling:v,setScopeId:_=s,insertStaticContent:g}=e,y=(e,t,n,o=null,r=null,s=null,i=void 0,l=null,a=("production"===process.env.NODE_ENV||!fn)&&!!t.dynamicChildren)=>{if(e===t)return;e&&!os(e,t)&&(o=te(e),G(e,r,s,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:p}=t;switch(c){case Wr:E(e,t,n,o);break;case Br:N(e,t,n,o);break;case Kr:null==e?O(t,n,o,i):"production"!==process.env.NODE_ENV&&V(e,t,n,i);break;case zr:F(e,t,n,o,r,s,i,l,a);break;default:1&p?x(e,t,n,o,r,s,i,l,a):6&p?U(e,t,n,o,r,s,i,l,a):64&p||128&p?c.process(e,t,n,o,r,s,i,l,a,re):"production"!==process.env.NODE_ENV&&Ht("Invalid VNode type:",c,`(${typeof c})`)}null!=u&&r?Yn(u,e&&e.ref,s,t||e,!t):null==u&&e&&null!=e.ref&&Yn(e.ref,null,s,e,!0)},E=(e,t,o,r)=>{if(null==e)n(t.el=c(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&p(n,t.children)}},N=(e,t,o,r)=>{null==e?n(t.el=u(t.children||""),o,r):t.el=e.el},O=(e,t,n,o)=>{[e.el,e.anchor]=g(e.children,t,n,o,e.el,e.anchor)},V=(e,t,n,o)=>{if(t.children!==e.children){const r=v(e.anchor);w(e),[t.el,t.anchor]=g(t.children,n,r,o)}else t.el=e.el,t.anchor=e.anchor},D=({el:e,anchor:t},o,r)=>{let s;for(;e&&e!==t;)s=v(e),n(e,o,r),e=s;n(t,o,r)},w=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=v(e),i(e),e=n;i(t)},x=(e,t,n,o,r,s,i,l,a)=>{if("svg"===t.type?i="svg":"math"===t.type&&(i="mathml"),null==e)k(t,n,o,r,s,i,l,a);else{const n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),j(e,t,r,s,i,l,a)}finally{n&&n._endPatch()}}},k=(e,t,o,r,s,i,c,u)=>{let p,d;const{props:f,shapeFlag:m,transition:v,dirs:_}=e;if(p=e.el=a(e.type,i,f&&f.is,f),8&m?h(p,e.children):16&m&&P(e.children,p,null,r,s,Rr(e,i),c,u),_&&Rn(e,null,r,"created"),C(p,e,e.scopeId,c,r),f){for(const e in f)"value"===e||S(e)||l(p,e,null,f[e],i,r);"value"in f&&l(p,"value",null,f.value,i),(d=f.onVnodeBeforeMount)&&vs(d,r,e)}("production"!==process.env.NODE_ENV||__VUE_PROD_DEVTOOLS__)&&(M(p,"__vnode",e,!0),M(p,"__vueParentComponent",r,!0)),_&&Rn(e,null,r,"beforeMount");const g=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(s,v);g&&v.beforeEnter(p),n(p,t,o),((d=f&&f.onVnodeMounted)||g||_)&&Tr(()=>{d&&vs(d,r,e),g&&v.enter(p),_&&Rn(e,null,r,"mounted")},s)},C=(e,t,n,o,r)=>{if(n&&_(e,n),o)for(let t=0;t<o.length;t++)_(e,o[t]);if(r){let n=r.subTree;if("production"!==process.env.NODE_ENV&&n.patchFlag>0&&2048&n.patchFlag&&(n=or(n.children)||n),t===n||Hr(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=r.vnode;C(e,t,t.scopeId,t.slotScopeIds,r.parent)}}},P=(e,t,n,o,r,s,i,l,a=0)=>{for(let c=a;c<e.length;c++){const a=e[c]=l?hs(e[c]):fs(e[c]);y(null,a,t,n,o,r,s,i,l)}},j=(e,t,n,r,s,i,a)=>{const c=t.el=e.el;("production"!==process.env.NODE_ENV||__VUE_PROD_DEVTOOLS__)&&(c.__vnode=t);let{patchFlag:u,dynamicChildren:p,dirs:d}=t;u|=16&e.patchFlag;const f=e.props||o,m=t.props||o;let v;if(n&&Mr(n,!1),(v=m.onVnodeBeforeUpdate)&&vs(v,n,t,e),d&&Rn(t,e,n,"beforeUpdate"),n&&Mr(n,!0),"production"!==process.env.NODE_ENV&&fn&&(u=0,a=!1,p=null),(f.innerHTML&&null==m.innerHTML||f.textContent&&null==m.textContent)&&h(c,""),p?(T(e.dynamicChildren,p,c,n,r,Rr(t,s),i),"production"!==process.env.NODE_ENV&&Fr(e,t)):a||B(e,t,c,null,n,r,Rr(t,s),i,!1),u>0){if(16&u)I(c,f,m,n,s);else if(2&u&&f.class!==m.class&&l(c,"class",null,m.class,s),4&u&&l(c,"style",f.style,m.style,s),8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const o=e[t],r=f[o],i=m[o];i===r&&"value"!==o||l(c,o,r,i,s,n)}}1&u&&e.children!==t.children&&h(c,t.children)}else a||null!=p||I(c,f,m,n,s);((v=m.onVnodeUpdated)||d)&&Tr(()=>{v&&vs(v,n,t,e),d&&Rn(t,e,n,"updated")},r)},T=(e,t,n,o,r,s,i)=>{for(let l=0;l<t.length;l++){const a=e[l],c=t[l],u=a.el&&(a.type===zr||!os(a,c)||198&a.shapeFlag)?m(a.el):n;y(a,c,u,null,o,r,s,i,!0)}},I=(e,t,n,r,s)=>{if(t!==n){if(t!==o)for(const o in t)S(o)||o in n||l(e,o,t[o],null,s,r);for(const o in n){if(S(o))continue;const i=n[o],a=t[o];i!==a&&"value"!==o&&l(e,o,a,i,s,r)}"value"in n&&l(e,"value",t.value,n.value,s)}},F=(e,t,o,r,s,i,l,a,u)=>{const p=t.el=e?e.el:c(""),d=t.anchor=e?e.anchor:c("");let{patchFlag:f,dynamicChildren:h,slotScopeIds:m}=t;"production"!==process.env.NODE_ENV&&(fn||2048&f)&&(f=0,u=!1,h=null),m&&(a=a?a.concat(m):m),null==e?(n(p,o,r),n(d,o,r),P(t.children||[],o,d,s,i,l,a,u)):f>0&&64&f&&h&&e.dynamicChildren&&e.dynamicChildren.length===h.length?(T(e.dynamicChildren,h,o,s,i,l,a),"production"!==process.env.NODE_ENV?Fr(e,t):(null!=t.key||s&&t===s.subTree)&&Fr(e,t,!0)):B(e,t,o,d,s,i,l,a,u)},U=(e,t,n,o,r,s,i,l,a)=>{t.slotScopeIds=l,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,i,a):q(t,n,o,r,s,i,a):H(e,t,a)},q=(e,t,n,r,i,l,a)=>{const c=e.component=function(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||_s,l={uid:gs++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new le(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:vr(r,i),emitsOptions:Yo(r,i),emit:null,emitted:null,propsDefaults:o,inheritAttrs:r.inheritAttrs,ctx:o,data:o,props:o,attrs:o,slots:o,refs:o,setupState:o,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};"production"!==process.env.NODE_ENV?l.ctx=function(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(xo).forEach(n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:()=>xo[n](e),set:s})}),t}(l):l.ctx={_:l};l.root=t?t.root:l,l.emit=Zo.bind(null,l),e.ce&&e.ce(l);return l}(e,r,i);if("production"!==process.env.NODE_ENV&&c.type.__hmrId&&function(e){const t=e.type.__hmrId;let n=mn.get(t);n||(vn(t,e.type),n=mn.get(t)),n.instances.add(e)}(c),"production"!==process.env.NODE_ENV&&(Ut(e),Pr(c,"mount")),oo(e)&&(c.ctx.renderer=re),"production"!==process.env.NODE_ENV&&Pr(c,"init"),function(e,t=!1,n=!1){t&&Ns(t);const{props:o,children:r}=e.vnode,i=Ss(e);dr(e,o,i,t),((e,t,n)=>{const o=e.slots=ur();if(32&e.vnode.shapeFlag){const e=t._;e?(kr(o,t,n),n&&M(o,"_",e,!0)):Sr(t,o)}else t&&xr(e,t)})(e,r,n||t);const l=i?function(e,t){const n=e.type;if("production"!==process.env.NODE_ENV){if(n.name&&ws(n.name,e.appContext.config),n.components){const t=Object.keys(n.components);for(let n=0;n<t.length;n++)ws(t[n],e.appContext.config)}if(n.directives){const e=Object.keys(n.directives);for(let t=0;t<e.length;t++)Tn(e[t])}n.compilerOptions&&Cs()&&Ht('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,$o),"production"===process.env.NODE_ENV||function(e){const{ctx:t,propsOptions:[n]}=e;n&&Object.keys(n).forEach(n=>{Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e.props[n],set:s})})}(e);const{setup:o}=n;if(o){Ve();const r=e.setupContext=o.length>1?function(e){const t=t=>{if("production"!==process.env.NODE_ENV&&(e.exposed&&Ht("expose() should be called only once per setup()."),null!=t)){let e=typeof t;"object"===e&&(f(t)?e="array":xt(t)&&(e="ref")),"object"!==e&&Ht(`expose() should be passed a plain object, received ${e}.`)}e.exposed=t||{}};if("production"!==process.env.NODE_ENV){let n,o;return Object.freeze({get attrs(){return n||(n=new Proxy(e.attrs,Ps))},get slots(){return o||(o=function(e){return new Proxy(e.slots,{get:(t,n)=>(Te(e,"get","$slots"),t[n])})}(e))},get emit(){return(t,...n)=>e.emit(t,...n)},expose:t})}return{attrs:new Proxy(e.attrs,Ps),slots:e.slots,emit:e.emit,expose:t}}(e):null,s=Os(e),i=Kt(o,e,0,["production"!==process.env.NODE_ENV?yt(e.props):e.props,r]),l=b(i);if(De(),s(),!l&&!e.sp||eo(e)||Kn(e),l){if(i.then(Vs,Vs),t)return i.then(n=>{ks(e,n,t)}).catch(t=>{Zt(t,e,0)});if(e.asyncDep=i,"production"!==process.env.NODE_ENV&&!e.suspense){Ht(`Component <${Rs(e,n)}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else ks(e,i,t)}else $s(e,t)}(e,t):void 0;t&&Ns(!1)}(c,!1,a),"production"!==process.env.NODE_ENV&&Ar(c,"init"),"production"!==process.env.NODE_ENV&&fn&&(e.el=null),c.asyncDep){if(i&&i.registerDep(c,z,a),!e.el){const o=c.subTree=ls(Br);N(null,o,t,n),e.placeholder=o.el}}else z(c,e,t,n,i,l,a);"production"!==process.env.NODE_ENV&&(Lt(),Ar(c,"mount"))},H=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:s}=e,{props:i,children:l,patchFlag:a}=t,c=s.emitsOptions;if("production"!==process.env.NODE_ENV&&(r||l)&&fn)return!0;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!r&&!l||l&&l.$stable)||o!==i&&(o?!i||lr(o,i,c):!!i);if(1024&a)return!0;if(16&a)return o?lr(o,i,c):!!i;if(8&a){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(ar(i,o,n)&&!Qo(c,n))return!0}}return!1}(e,t,n)){if(o.asyncDep&&!o.asyncResolved)return"production"!==process.env.NODE_ENV&&Ut(t),W(o,t,n),void("production"!==process.env.NODE_ENV&&Lt());o.next=t,o.update()}else t.el=e.el,o.vnode=t},z=(e,t,n,o,r,s,i)=>{const l=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:l,vnode:a}=e;{const n=Ur(e);if(n)return t&&(t.el=a.el,W(e,t,i)),void n.asyncDep.then(()=>{Tr(()=>{e.isUnmounted||c()},r)})}let u,p=t;"production"!==process.env.NODE_ENV&&Ut(t||e.vnode),Mr(e,!1),t?(t.el=a.el,W(e,t,i)):t=a,n&&R(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&vs(u,l,t,a),Mr(e,!0),"production"!==process.env.NODE_ENV&&Pr(e,"render");const d=tr(e);"production"!==process.env.NODE_ENV&&Ar(e,"render");const f=e.subTree;e.subTree=d,"production"!==process.env.NODE_ENV&&Pr(e,"patch"),y(f,d,m(f.el),te(f),e,r,s),"production"!==process.env.NODE_ENV&&Ar(e,"patch"),t.el=d.el,null===p&&function({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o!==e)break;(e=t.vnode).el=n,t=t.parent}}(e,d.el),o&&Tr(o,r),(u=t.props&&t.props.onVnodeUpdated)&&Tr(()=>vs(u,l,t,a),r),("production"!==process.env.NODE_ENV||__VUE_PROD_DEVTOOLS__)&&wn(e),"production"!==process.env.NODE_ENV&&Lt()}else{let i;const{el:l,props:a}=t,{bm:c,m:u,parent:p,root:d,type:f}=e,h=eo(t);Mr(e,!1),c&&R(c),!h&&(i=a&&a.onVnodeBeforeMount)&&vs(i,p,t),Mr(e,!0);{d.ce&&d.ce._hasShadowRoot()&&d.ce._injectChildStyle(f,e.parent?e.parent.type:void 0),"production"!==process.env.NODE_ENV&&Pr(e,"render");const i=e.subTree=tr(e);"production"!==process.env.NODE_ENV&&Ar(e,"render"),"production"!==process.env.NODE_ENV&&Pr(e,"patch"),y(null,i,n,o,e,r,s),"production"!==process.env.NODE_ENV&&Ar(e,"patch"),t.el=i.el}if(u&&Tr(u,r),!h&&(i=a&&a.onVnodeMounted)){const e=t;Tr(()=>vs(i,p,e),r)}(256&t.shapeFlag||p&&eo(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&Tr(e.a,r),e.isMounted=!0,("production"!==process.env.NODE_ENV||__VUE_PROD_DEVTOOLS__)&&Dn(e),t=n=o=null}};e.scope.on();const a=e.effect=new ce(l);e.scope.off();const c=e.update=a.run.bind(a),u=e.job=a.runIfDirty.bind(a);u.i=e,u.id=e.uid,a.scheduler=()=>rn(u),Mr(e,!0),"production"!==process.env.NODE_ENV&&(a.onTrack=e.rtc?t=>R(e.rtc,t):void 0,a.onTrigger=e.rtg?t=>R(e.rtg,t):void 0),c()},W=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:i}}=e,l=Dt(r),[a]=e.propsOptions;let c=!1;if("production"!==process.env.NODE_ENV&&function(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}(e)||!(o||i>0)||16&i){let o;fr(e,t,r,s)&&(c=!0);for(const s in l)t&&(d(t,s)||(o=A(s))!==s&&d(t,o))||(a?!n||void 0===n[s]&&void 0===n[o]||(r[s]=hr(a,l,s,void 0,e,!0)):delete r[s]);if(s!==l)for(const e in s)t&&d(t,e)||(delete s[e],c=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let o=0;o<n.length;o++){let i=n[o];if(Qo(e.emitsOptions,i))continue;const u=t[i];if(a)if(d(s,i))u!==s[i]&&(s[i]=u,c=!0);else{const t=$(i);r[t]=hr(a,l,t,u,e,!1)}else u!==s[i]&&(s[i]=u,c=!0)}}c&&Ie(e.attrs,"set",""),"production"!==process.env.NODE_ENV&&gr(t||{},r,e)}(e,t.props,r,n),((e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,l=o;if(32&r.shapeFlag){const o=t._;o?"production"!==process.env.NODE_ENV&&fn?(kr(s,t,n),Ie(e,"set","$slots")):n&&1===o?i=!1:kr(s,t,n):(i=!t.$stable,Sr(t,s)),l=t}else t&&(xr(e,t),l={default:1});if(i)for(const e in s)Vr(e)||null!=l[e]||delete s[e]})(e,t.children,n),Ve(),an(e),De()},B=(e,t,n,o,r,s,i,l,a=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,p=t.children,{patchFlag:d,shapeFlag:f}=t;if(d>0){if(128&d)return void J(c,p,n,o,r,s,i,l,a);if(256&d)return void K(c,p,n,o,r,s,i,l,a)}8&f?(16&u&&ee(c,r,s),p!==c&&h(n,p)):16&u?16&f?J(c,p,n,o,r,s,i,l,a):ee(c,r,s,!0):(8&u&&h(n,""),16&f&&P(p,n,o,r,s,i,l,a))},K=(e,t,n,o,s,i,l,a,c)=>{t=t||r;const u=(e=e||r).length,p=t.length,d=Math.min(u,p);let f;for(f=0;f<d;f++){const o=t[f]=c?hs(t[f]):fs(t[f]);y(e[f],o,n,null,s,i,l,a,c)}u>p?ee(e,s,i,!0,!1,d):P(t,n,o,s,i,l,a,c,d)},J=(e,t,n,o,s,i,l,a,c)=>{let u=0;const p=t.length;let d=e.length-1,f=p-1;for(;u<=d&&u<=f;){const o=e[u],r=t[u]=c?hs(t[u]):fs(t[u]);if(!os(o,r))break;y(o,r,n,null,s,i,l,a,c),u++}for(;u<=d&&u<=f;){const o=e[d],r=t[f]=c?hs(t[f]):fs(t[f]);if(!os(o,r))break;y(o,r,n,null,s,i,l,a,c),d--,f--}if(u>d){if(u<=f){const e=f+1,r=e<p?t[e].el:o;for(;u<=f;)y(null,t[u]=c?hs(t[u]):fs(t[u]),n,r,s,i,l,a,c),u++}}else if(u>f)for(;u<=d;)G(e[u],s,i,!0),u++;else{const h=u,m=u,v=new Map;for(u=m;u<=f;u++){const e=t[u]=c?hs(t[u]):fs(t[u]);null!=e.key&&("production"!==process.env.NODE_ENV&&v.has(e.key)&&Ht("Duplicate keys found during update:",JSON.stringify(e.key),"Make sure keys are unique."),v.set(e.key,u))}let _,g=0;const E=f-m+1;let b=!1,N=0;const O=new Array(E);for(u=0;u<E;u++)O[u]=0;for(u=h;u<=d;u++){const o=e[u];if(g>=E){G(o,s,i,!0);continue}let r;if(null!=o.key)r=v.get(o.key);else for(_=m;_<=f;_++)if(0===O[_-m]&&os(o,t[_])){r=_;break}void 0===r?G(o,s,i,!0):(O[r-m]=u+1,r>=N?N=r:b=!0,y(o,t[r],n,null,s,i,l,a,c),g++)}const V=b?function(e){const t=e.slice(),n=[0];let o,r,s,i,l;const a=e.length;for(o=0;o<a;o++){const a=e[o];if(0!==a){if(r=n[n.length-1],e[r]<a){t[o]=r,n.push(o);continue}for(s=0,i=n.length-1;s<i;)l=s+i>>1,e[n[l]]<a?s=l+1:i=l;a<e[n[s]]&&(s>0&&(t[o]=n[s-1]),n[s]=o)}}s=n.length,i=n[s-1];for(;s-- >0;)n[s]=i,i=t[i];return n}(O):r;for(_=V.length-1,u=E-1;u>=0;u--){const e=m+u,r=t[e],d=t[e+1],f=e+1<p?d.el||qr(d):o;0===O[u]?y(null,r,n,f,s,i,l,a,c):b&&(_<0||u!==V[_]?Z(r,n,f,2):_--)}}},Z=(e,t,o,r,s=null)=>{const{el:l,type:a,transition:c,children:u,shapeFlag:p}=e;if(6&p)return void Z(e.component.subTree,t,o,r);if(128&p)return void e.suspense.move(t,o,r);if(64&p)return void a.move(e,t,o,re);if(a===zr){n(l,t,o);for(let e=0;e<u.length;e++)Z(u[e],t,o,r);return void n(e.anchor,t,o)}if(a===Kr)return void D(e,t,o);if(2!==r&&1&p&&c)if(0===r)c.beforeEnter(l),n(l,t,o),Tr(()=>c.enter(l),s);else{const{leave:r,delayLeave:s,afterLeave:a}=c,u=()=>{e.ctx.isUnmounted?i(l):n(l,t,o)},p=()=>{l._isLeaving&&l[Wn](!0),r(l,()=>{u(),a&&a()})};s?s(l,u,p):p()}else n(l,t,o)},G=(e,t,n,o=!1,r=!1)=>{const{type:s,props:i,ref:l,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:p,dirs:d,cacheIndex:f}=e;if(-2===p&&(r=!1),null!=l&&(Ve(),Yn(l,null,n,e,!0),De()),null!=f&&(t.renderCache[f]=void 0),256&u)return void t.ctx.deactivate(e);const h=1&u&&d,m=!eo(e);let v;if(m&&(v=i&&i.onVnodeBeforeUnmount)&&vs(v,t,e),6&u)X(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);h&&Rn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,re,o):c&&!c.hasOnce&&(s!==zr||p>0&&64&p)?ee(c,t,n,!1,!0):(s===zr&&384&p||!r&&16&u)&&ee(a,t,n),o&&Y(e)}(m&&(v=i&&i.onVnodeUnmounted)||h)&&Tr(()=>{v&&vs(v,t,e),h&&Rn(e,null,t,"unmounted")},n)},Y=e=>{const{type:t,el:n,anchor:o,transition:r}=e;if(t===zr)return void("production"!==process.env.NODE_ENV&&e.patchFlag>0&&2048&e.patchFlag&&r&&!r.persisted?e.children.forEach(e=>{e.type===Br?i(e.el):Y(e)}):Q(n,o));if(t===Kr)return void w(e);const s=()=>{i(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:o}=r,i=()=>t(n,s);o?o(e.el,s,i):i()}else s()},Q=(e,t)=>{let n;for(;e!==t;)n=v(e),i(e),e=n;i(t)},X=(e,t,n)=>{"production"!==process.env.NODE_ENV&&e.type.__hmrId&&function(e){mn.get(e.type.__hmrId).instances.delete(e)}(e);const{bum:o,scope:r,job:s,subTree:i,um:l,m:a,a:c}=e;var u;Lr(a),Lr(c),o&&R(o),r.stop(),s&&(s.flags|=8,G(i,e,t,n)),l&&Tr(l,t),Tr(()=>{e.isUnmounted=!0},t),("production"!==process.env.NODE_ENV||__VUE_PROD_DEVTOOLS__)&&(u=e,En&&"function"==typeof En.cleanupBuffer&&!En.cleanupBuffer(u)&&Sn(u))},ee=(e,t,n,o=!1,r=!1,s=0)=>{for(let i=s;i<e.length;i++)G(e[i],t,n,o,r)},te=e=>{if(6&e.shapeFlag)return te(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=v(e.anchor||e.el),n=t&&t[zn];return n?v(n):t};let ne=!1;const oe=(e,t,n)=>{let o;null==e?t._vnode&&(G(t._vnode,null,null,!0),o=t._vnode.component):y(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ne||(ne=!0,an(o),cn(),ne=!1)},re={p:y,um:G,m:Z,r:Y,mt:q,mc:P,pc:B,pbc:T,n:te,o:e};let se;return{render:oe,hydrate:se,createApp:Ko(oe)}}(e)}function Rr({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Mr({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Fr(e,t,n=!1){const o=e.children,r=t.children;if(f(o)&&f(r))for(let e=0;e<o.length;e++){const t=o[e];let s=r[e];1&s.shapeFlag&&!s.dynamicChildren&&((s.patchFlag<=0||32===s.patchFlag)&&(s=r[e]=hs(r[e]),s.el=t.el),n||-2===s.patchFlag||Fr(t,s)),s.type===Wr&&(-1===s.patchFlag&&(s=r[e]=hs(s)),s.el=t.el),s.type!==Br||s.el||(s.el=t.el),"production"!==process.env.NODE_ENV&&s.el&&(s.el.__vnode=s)}}function Ur(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ur(t)}function Lr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function qr(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?qr(t.subTree):null}const Hr=e=>e.__isSuspense;const zr=Symbol.for("v-fgt"),Wr=Symbol.for("v-txt"),Br=Symbol.for("v-cmt"),Kr=Symbol.for("v-stc"),Jr=[];let Zr=null;function Gr(e=!1){Jr.push(Zr=e?null:[])}let Yr=1;function Qr(e,t=!1){Yr+=e,e<0&&Zr&&t&&(Zr.hasOnce=!0)}function Xr(e){return e.dynamicChildren=Yr>0?Zr||r:null,Jr.pop(),Zr=Jr[Jr.length-1]||null,Yr>0&&Zr&&Zr.push(e),e}function es(e,t,n,o,r,s){return Xr(is(e,t,n,o,r,s,!0))}function ts(e,t,n,o,r){return Xr(ls(e,t,n,o,r,!0))}function ns(e){return!!e&&!0===e.__v_isVNode}function os(e,t){if("production"!==process.env.NODE_ENV&&6&t.shapeFlag&&e.component){const n=hn.get(t.type);if(n&&n.has(e.component))return e.shapeFlag&=-257,t.shapeFlag&=-513,!1}return e.type===t.type&&e.key===t.key}const rs=({key:e})=>null!=e?e:null,ss=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?g(e)||xt(e)||_(e)?{i:Pn,r:e,k:t,f:!!n}:e:null);function is(e,t=null,n=null,o=0,r=null,s=(e===zr?0:1),i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&rs(t),ref:t&&ss(t),scopeId:An,slotScopeIds:null,children:n,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:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Pn};return l?(ms(a,n),128&s&&e.normalize(a)):n&&(a.shapeFlag|=g(n)?8:16),"production"!==process.env.NODE_ENV&&a.key!=a.key&&Ht("VNode created with invalid key (NaN). VNode type:",a.type),Yr>0&&!i&&Zr&&(a.patchFlag>0||6&s)&&32!==a.patchFlag&&Zr.push(a),a}const ls="production"!==process.env.NODE_ENV?(...e)=>as(...e):as;function as(e,t=null,n=null,o=0,r=null,s=!1){if(e&&e!==Oo||("production"===process.env.NODE_ENV||e||Ht(`Invalid vnode type when creating vnode: ${e}.`),e=Br),ns(e)){const o=cs(e,t,!0);return n&&ms(o,n),Yr>0&&!s&&Zr&&(6&o.shapeFlag?Zr[Zr.indexOf(e)]=o:Zr.push(o)),o.patchFlag=-2,o}if(Ms(e)&&(e=e.__vccOpts),t){t=function(e){return e?Vt(e)||pr(e)?c({},e):e:null}(t);let{class:e,style:n}=t;e&&!g(e)&&(t.class=K(e)),E(n)&&(Vt(n)&&!f(n)&&(n=c({},n)),t.style=q(n))}const i=g(e)?1:Hr(e)?128:(e=>e.__isTeleport)(e)?64:E(e)?4:_(e)?2:0;return"production"!==process.env.NODE_ENV&&4&i&&Vt(e)&&Ht("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.","\nComponent that was made reactive: ",e=Dt(e)),is(e,t,n,o,r,i,s,!0)}function cs(e,t,n=!1,o=!1){const{props:r,ref:s,patchFlag:i,children:a,transition:c}=e,u=t?function(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=K([t.class,o.class]));else if("style"===e)t.style=q([t.style,o.style]);else if(l(e)){const n=t[e],r=o[e];!r||n===r||f(n)&&n.includes(r)||(t[e]=n?[].concat(n,r):r)}else""!==e&&(t[e]=o[e])}return t}(r||{},t):r,p={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&rs(u),ref:t&&t.ref?n&&s?f(s)?s.concat(ss(t)):[s,ss(t)]:ss(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:"production"!==process.env.NODE_ENV&&-1===i&&f(a)?a.map(us):a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==zr?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&cs(e.ssContent),ssFallback:e.ssFallback&&cs(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&o&&Bn(p,c.clone(p)),p}function us(e){const t=cs(e);return f(e.children)&&(t.children=e.children.map(us)),t}function ps(e=" ",t=0){return ls(Wr,null,e,t)}function ds(e="",t=!1){return t?(Gr(),ts(Br,null,e)):ls(Br,null,e)}function fs(e){return null==e||"boolean"==typeof e?ls(Br):f(e)?ls(zr,null,e.slice()):ns(e)?hs(e):ls(Wr,null,String(e))}function hs(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:cs(e)}function ms(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(f(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),ms(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||pr(t)?3===o&&Pn&&(1===Pn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Pn}}else _(t)?(t={default:t,_ctx:Pn},n=32):(t=String(t),64&o?(n=16,t=[ps(t)]):n=8);e.children=t,e.shapeFlag|=n}function vs(e,t,n,o=null){Jt(e,t,7,[n,o])}const _s=Wo();let gs=0;let ys=null;const Es=()=>ys||Pn;let bs,Ns;{const e=L(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach(t=>t(e)):o[0](e)}};bs=t("__VUE_INSTANCE_SETTERS__",e=>ys=e),Ns=t("__VUE_SSR_SETTERS__",e=>xs=e)}const Os=e=>{const t=ys;return bs(e),e.scope.on(),()=>{e.scope.off(),bs(t)}},Vs=()=>{ys&&ys.scope.off(),bs(null)},Ds=n("slot,component");function ws(e,{isNativeTag:t}){(Ds(e)||t(e))&&Ht("Do not use built-in or reserved HTML elements as component id: "+e)}function Ss(e){return 4&e.vnode.shapeFlag}let xs=!1;function ks(e,t,n){_(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:E(t)?("production"!==process.env.NODE_ENV&&ns(t)&&Ht("setup() should not return VNodes directly - return a render function instead."),("production"!==process.env.NODE_ENV||__VUE_PROD_DEVTOOLS__)&&(e.devtoolsRawSetupState=t),e.setupState=Pt(t),"production"!==process.env.NODE_ENV&&function(e){const{ctx:t,setupState:n}=e;Object.keys(Dt(n)).forEach(e=>{if(!n.__isScriptSetup){if(ko(e[0]))return void Ht(`setup() return property ${JSON.stringify(e)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:()=>n[e],set:s})}})}(e)):"production"!==process.env.NODE_ENV&&void 0!==t&&Ht("setup() should return an object. Received: "+(null===t?"null":typeof t)),$s(e,n)}const Cs=()=>!0;function $s(e,t,n){const o=e.type;if(e.render||(e.render=o.render||s),__VUE_OPTIONS_API__){const t=Os(e);Ve();try{jo(e)}finally{De(),t()}}"production"===process.env.NODE_ENV||o.render||e.render!==s||t||(o.template?Ht('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):Ht("Component is missing template or render function: ",o))}const Ps="production"!==process.env.NODE_ENV?{get:(e,t)=>(er(),Te(e,"get",""),e[t]),set:()=>(Ht("setupContext.attrs is readonly."),!1),deleteProperty:()=>(Ht("setupContext.attrs is readonly."),!1)}:{get:(e,t)=>(Te(e,"get",""),e[t])};function As(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Pt((t=e.exposed,!d(t,"__v_skip")&&Object.isExtensible(t)&&M(t,"__v_skip",!0),t)),{get:(t,n)=>n in t?t[n]:n in xo?xo[n](e):void 0,has:(e,t)=>t in e||t in xo})):e.proxy;var t}const js=/(?:^|[-_])\w/g,Ts=e=>e.replace(js,e=>e.toUpperCase()).replace(/[-_]/g,"");function Is(e,t=!0){return _(e)?e.displayName||e.name:e.name||t&&e.__name}function Rs(e,t,n=!1){let o=Is(t);if(!o&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(o=e[1])}if(!o&&e){const n=e=>{for(const n in e)if(e[n]===t)return n};o=n(e.components)||e.parent&&n(e.parent.type.components)||n(e.appContext.components)}return o?Ts(o):n?"App":"Anonymous"}function Ms(e){return _(e)&&"__vccOpts"in e}const Fs=(e,t)=>{const n=function(e,t,n=!1){let o,r;_(e)?o=e:(o=e.get,r=e.set);const s=new At(o,r,n);return process.env.NODE_ENV,s}(e,0,xs);if("production"!==process.env.NODE_ENV){const e=Es();e&&e.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function Us(e,t,n){try{Qr(-1);const o=arguments.length;return 2===o?E(t)&&!f(t)?ns(t)?ls(e,null,[t]):ls(e,t):ls(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&ns(n)&&(n=[n]),ls(e,t,n))}finally{Qr(1)}}const Ls="3.5.30",qs="production"!==process.env.NODE_ENV?Ht:s;
|
|
19
|
+
**/function Pt(e,t,n,s){try{return s?e(...s):e()}catch(e){Rt(e,t,n)}}function jt(e,t,n,s){if(v(e)){const r=Pt(e,t,n,s);return r&&S(r)&&r.catch(e=>{Rt(e,t,n)}),r}if(p(e)){const r=[];for(let i=0;i<e.length;i++)r.push(jt(e[i],t,n,s));return r}}function Rt(e,t,n,r=!0){t&&t.vnode;const{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||s;if(t){let s=t.parent;const r=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const t=s.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,o))return;s=s.parent}if(i)return _e(),Pt(i,null,10,[e,r,o]),void be()}!function(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}(e,0,0,r,o)}const $t=[];let Tt=-1;const Ft=[];let It=null,Mt=0;const Nt=Promise.resolve();let Dt=null;function Ut(e){const t=Dt||Nt;return e?t.then(this?e.bind(this):e):t}function Lt(e){if(!(1&e.flags)){const t=Bt(e),n=$t[$t.length-1];!n||!(2&e.flags)&&t>=Bt(n)?$t.push(e):$t.splice(function(e){let t=Tt+1,n=$t.length;for(;t<n;){const s=t+n>>>1,r=$t[s],i=Bt(r);i<e||i===e&&2&r.flags?t=s+1:n=s}return t}(t),0,e),e.flags|=1,qt()}}function qt(){Dt||(Dt=Nt.then(Ht))}function zt(e,t,n=Tt+1){for(;n<$t.length;n++){const t=$t[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;$t.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function Wt(e){if(Ft.length){const e=[...new Set(Ft)].sort((e,t)=>Bt(e)-Bt(t));if(Ft.length=0,It)return void It.push(...e);for(It=e,Mt=0;Mt<It.length;Mt++){const e=It[Mt];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}It=null,Mt=0}}const Bt=e=>null==e.id?2&e.flags?-1:1/0:e.id;function Ht(e){try{for(Tt=0;Tt<$t.length;Tt++){const e=$t[Tt];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),Pt(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;Tt<$t.length;Tt++){const e=$t[Tt];e&&(e.flags&=-2)}Tt=-1,$t.length=0,Wt(),Dt=null,($t.length||Ft.length)&&Ht()}}let Kt=null,Zt=null;function Qt(e){const t=Kt;return Kt=e,Zt=e&&e.type.__scopeId||null,t}function Jt(e,t){if(null===Kt)return e;const n=Sr(Kt),r=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[i,o,l,a=s]=t[e];i&&(v(i)&&(i={mounted:i,updated:i}),i.deep&&Ot(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:l,modifiers:a}))}return e}function Gt(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let a=l.dir[s];a&&(_e(),jt(a,n,8,[e.el,l,e,t]),be())}}function Xt(e,t,n=!1){const s=hr();if(s||ss){let r=ss?ss._context.provides:s?null==s.parent||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&v(t)?t.call(s&&s.proxy):t}}const Yt=Symbol.for("v-scx");function en(e,t,n){return tn(e,t,n)}function tn(e,t,n=s){const{immediate:r,deep:o,flush:l,once:a}=n,u=c({},n),h=t&&r||!t&&"post"!==l;let d;if(vr)if("sync"===l){const e=Xt(Yt);d=e.__watcherHandles||(e.__watcherHandles=[])}else if(!h){const e=()=>{};return e.stop=i,e.resume=i,e.pause=i,e}const p=ur;u.call=(e,t,n)=>jt(e,p,t,n);let f=!1;"post"===l?u.scheduler=e=>{As(e,p&&p.suspense)}:"sync"!==l&&(f=!0,u.scheduler=(e,t)=>{t?e():Lt(e)}),u.augmentJob=e=>{t&&(e.flags|=4),f&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};const m=At(e,t,u);return vr&&(d?d.push(m):h&&m()),m}function nn(e,t,n){const s=this.proxy,r=y(e)?e.includes(".")?sn(s,e):()=>s[e]:e.bind(s,s);let i;v(t)?i=t:(i=t.handler,n=t);const o=fr(this),l=tn(r,i.bind(s),n);return o(),l}function sn(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}const rn=Symbol("_vte"),on=Symbol("_leaveCb");function ln(e,t){6&e.shapeFlag&&e.component?(e.transition=t,ln(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function an(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function cn(e,t){let n;return!(!(n=Object.getOwnPropertyDescriptor(e,t))||n.configurable)}const un=new WeakMap;function hn(e,t,n,r,i=!1){if(p(e))return void e.forEach((e,s)=>hn(e,t&&(p(t)?t[s]:t),n,r,i));if(pn(r)&&!i)return void(512&r.shapeFlag&&r.type.__asyncResolved&&r.component.subTree.component&&hn(e,t,n,r.component.subTree));const l=4&r.shapeFlag?Sr(r.component):r.el,a=i?null:l,{i:c,r:h}=e,f=t&&t.r,m=c.refs===s?c.refs={}:c.refs,g=c.setupState,_=vt(g),b=g===s?o:e=>!cn(m,e)&&d(_,e),S=(e,t)=>!t||!cn(m,t);if(null!=f&&f!==h)if(dn(t),y(f))m[f]=null,b(f)&&(g[f]=null);else if(bt(f)){const e=t;S(0,e.k)&&(f.value=null),e.k&&(m[e.k]=null)}if(v(h))Pt(h,c,12,[a,m]);else{const t=y(h),s=bt(h);if(t||s){const r=()=>{if(e.f){const n=t?b(h)?g[h]:m[h]:S()||!e.k?h.value:m[e.k];if(i)p(n)&&u(n,l);else if(p(n))n.includes(l)||n.push(l);else if(t)m[h]=[l],b(h)&&(g[h]=m[h]);else{const t=[l];S(0,e.k)&&(h.value=t),e.k&&(m[e.k]=t)}}else t?(m[h]=a,b(h)&&(g[h]=a)):s&&(S(0,e.k)&&(h.value=a),e.k&&(m[e.k]=a))};if(a){const t=()=>{r(),un.delete(e)};t.id=-1,un.set(e,t),As(t,n)}else dn(e),r()}}}function dn(e){const t=un.get(e);t&&(t.flags|=8,un.delete(e))}U().requestIdleCallback,U().cancelIdleCallback;const pn=e=>!!e.type.__asyncLoader,fn=e=>e.type.__isKeepAlive;function mn(e,t){vn(e,"a",t)}function gn(e,t){vn(e,"da",t)}function vn(e,t,n=ur){const s=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(_n(t,s,n),n){let e=n.parent;for(;e&&e.parent;)fn(e.parent.vnode)&&yn(s,t,n,e),e=e.parent}}function yn(e,t,n,s){const r=_n(t,e,s,!0);Cn(()=>{u(s[t],r)},n)}function _n(e,t,n=ur,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{_e();const r=fr(n),i=jt(t,n,e,s);return r(),be(),i});return s?r.unshift(i):r.push(i),i}}const bn=e=>(t,n=ur)=>{vr&&"sp"!==e||_n(e,(...e)=>t(...e),n)},Sn=bn("bm"),xn=bn("m"),kn=bn("bu"),En=bn("u"),wn=bn("bum"),Cn=bn("um"),Vn=bn("sp"),An=bn("rtg"),On=bn("rtc");function Pn(e,t=ur){_n("ec",e,t)}const jn="components";function Rn(e,t){return Tn(jn,e,!0,t)||e}const $n=Symbol.for("v-ndc");function Tn(e,t,n=!0,s=!1){const r=Kt||ur;if(r){const n=r.type;{const e=xr(n,!1);if(e&&(e===t||e===O(t)||e===R(O(t))))return n}const i=Fn(r[e]||n[e],t)||Fn(r.appContext[e],t);return!i&&s?n:i}}function Fn(e,t){return e&&(e[t]||e[O(t)]||e[R(O(t))])}function In(e,t,n,s){let r;const i=n,o=p(e);if(o||y(e)){let n=!1,s=!1;o&&pt(e)&&(n=!mt(e),s=ft(e),e=$e(e)),r=new Array(e.length);for(let o=0,l=e.length;o<l;o++)r[o]=t(n?s?_t(yt(e[o])):yt(e[o]):e[o],o,void 0,i)}else if("number"==typeof e){r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n+1,n,void 0,i)}else if(b(e))if(e[Symbol.iterator])r=Array.from(e,(e,n)=>t(e,n,void 0,i));else{const n=Object.keys(e);r=new Array(n.length);for(let s=0,o=n.length;s<o;s++){const o=n[s];r[s]=t(e[o],o,s,i)}}else r=[];return r}const Mn=e=>e?gr(e)?Sr(e):Mn(e.parent):null,Nn=c(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=>Mn(e.parent),$root:e=>Mn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Hn(e),$forceUpdate:e=>e.f||(e.f=()=>{Lt(e.update)}),$nextTick:e=>e.n||(e.n=Ut.bind(e.proxy)),$watch:e=>nn.bind(e)}),Dn=(e,t)=>e!==s&&!e.__isScriptSetup&&d(e,t),Un={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:r,data:i,props:o,accessCache:l,type:a,appContext:c}=e;if("$"!==t[0]){const e=l[t];if(void 0!==e)switch(e){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(Dn(r,t))return l[t]=1,r[t];if(i!==s&&d(i,t))return l[t]=2,i[t];if(d(o,t))return l[t]=3,o[t];if(n!==s&&d(n,t))return l[t]=4,n[t];qn&&(l[t]=0)}}const u=Nn[t];let h,p;return u?("$attrs"===t&&Pe(e.attrs,0,""),u(e)):(h=a.__cssModules)&&(h=h[t])?h:n!==s&&d(n,t)?(l[t]=4,n[t]):(p=c.config.globalProperties,d(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return Dn(i,t)?(i[t]=n,!0):r!==s&&d(r,t)?(r[t]=n,!0):!d(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(o[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:o,type:l}},a){let c;return!!(n[a]||e!==s&&"$"!==a[0]&&d(e,a)||Dn(t,a)||d(o,a)||d(r,a)||d(Nn,a)||d(i.config.globalProperties,a)||(c=l.__cssModules)&&c[a])},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:d(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ln(e){return p(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}let qn=!0;function zn(e){const t=Hn(e),n=e.proxy,s=e.ctx;qn=!1,t.beforeCreate&&Wn(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:l,watch:a,provide:c,inject:u,created:h,beforeMount:d,mounted:f,beforeUpdate:m,updated:g,activated:y,deactivated:_,beforeDestroy:S,beforeUnmount:x,destroyed:k,unmounted:E,render:w,renderTracked:C,renderTriggered:V,errorCaptured:A,serverPrefetch:O,expose:P,inheritAttrs:j,components:R,directives:$,filters:T}=t;if(u&&function(e,t){p(e)&&(e=Jn(e));for(const n in e){const s=e[n];let r;r=b(s)?"default"in s?Xt(s.from||n,s.default,!0):Xt(s.from||n):Xt(s),bt(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(u,s,null),l)for(const e in l){const t=l[e];v(t)&&(s[e]=t.bind(n))}if(r){const t=r.call(n,n);b(t)&&(e.data=ut(t))}if(qn=!0,o)for(const e in o){const t=o[e],r=v(t)?t.bind(n,n):v(t.get)?t.get.bind(n,n):i,l=!v(t)&&v(t.set)?t.set.bind(n):i,a=kr({get:r,set:l});Object.defineProperty(s,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(a)for(const e in a)Bn(a[e],s,n,e);if(c){const e=v(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{!function(e,t){if(ur){let n=ur.provides;const s=ur.parent&&ur.parent.provides;s===n&&(n=ur.provides=Object.create(s)),n[e]=t}}(t,e[t])})}function F(e,t){p(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(h&&Wn(h,e,"c"),F(Sn,d),F(xn,f),F(kn,m),F(En,g),F(mn,y),F(gn,_),F(Pn,A),F(On,C),F(An,V),F(wn,x),F(Cn,E),F(Vn,O),p(P))if(P.length){const t=e.exposed||(e.exposed={});P.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});w&&e.render===i&&(e.render=w),null!=j&&(e.inheritAttrs=j),R&&(e.components=R),$&&(e.directives=$),O&&an(e)}function Wn(e,t,n){jt(p(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Bn(e,t,n,s){let r=s.includes(".")?sn(n,s):()=>n[s];if(y(e)){const n=t[e];v(n)&&en(r,n)}else if(v(e))en(r,e.bind(n));else if(b(e))if(p(e))e.forEach(e=>Bn(e,t,n,s));else{const s=v(e.handler)?e.handler.bind(n):t[e.handler];v(s)&&en(r,s,e)}}function Hn(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let a;return l?a=l:r.length||n||s?(a={},r.length&&r.forEach(e=>Kn(a,e,o,!0)),Kn(a,t,o)):a=t,b(t)&&i.set(t,a),a}function Kn(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&Kn(e,i,n,!0),r&&r.forEach(t=>Kn(e,t,n,!0));for(const r in t)if(s&&"expose"===r);else{const s=Zn[r]||n&&n[r];e[r]=s?s(e[r],t[r]):t[r]}return e}const Zn={data:Qn,props:Yn,emits:Yn,methods:Xn,computed:Xn,beforeCreate:Gn,created:Gn,beforeMount:Gn,mounted:Gn,beforeUpdate:Gn,updated:Gn,beforeDestroy:Gn,beforeUnmount:Gn,destroyed:Gn,unmounted:Gn,activated:Gn,deactivated:Gn,errorCaptured:Gn,serverPrefetch:Gn,components:Xn,directives:Xn,watch:function(e,t){if(!e)return t;if(!t)return e;const n=c(Object.create(null),e);for(const s in t)n[s]=Gn(e[s],t[s]);return n},provide:Qn,inject:function(e,t){return Xn(Jn(e),Jn(t))}};function Qn(e,t){return t?e?function(){return c(v(e)?e.call(this,this):e,v(t)?t.call(this,this):t)}:t:e}function Jn(e){if(p(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Gn(e,t){return e?[...new Set([].concat(e,t))]:t}function Xn(e,t){return e?c(Object.create(null),e,t):t}function Yn(e,t){return e?p(e)&&p(t)?[...new Set([...e,...t])]:c(Object.create(null),Ln(e),Ln(null!=t?t:{})):t}function es(){return{app:null,config:{isNativeTag:o,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 ts=0;function ns(e,t){return function(t,n=null){v(t)||(t=c({},t)),null==n||b(n)||(n=null);const s=es(),r=new WeakSet,i=[];let o=!1;const l=s.app={_uid:ts++,_component:t,_props:n,_container:null,_context:s,_instance:null,version:Er,get config(){return s.config},set config(e){},use:(e,...t)=>(r.has(e)||(e&&v(e.install)?(r.add(e),e.install(l,...t)):v(e)&&(r.add(e),e(l,...t))),l),mixin:e=>(s.mixins.includes(e)||s.mixins.push(e),l),component:(e,t)=>t?(s.components[e]=t,l):s.components[e],directive:(e,t)=>t?(s.directives[e]=t,l):s.directives[e],mount(r,i,a){if(!o){const i=l._ceVNode||er(t,n);return i.appContext=s,!0===a?a="svg":!1===a&&(a=void 0),e(i,r,a),o=!0,l._container=r,r.__vue_app__=l,Sr(i.component)}},onUnmount(e){i.push(e)},unmount(){o&&(jt(i,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide:(e,t)=>(s.provides[e]=t,l),runWithContext(e){const t=ss;ss=l;try{return e()}finally{ss=t}}};return l}}let ss=null;function rs(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||s;let i=n;const o=t.startsWith("update:"),l=o&&((e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${O(t)}Modifiers`]||e[`${j(t)}Modifiers`])(r,t.slice(7));let a;l&&(l.trim&&(i=n.map(e=>y(e)?e.trim():e)),l.number&&(i=n.map(M)));let c=r[a=$(t)]||r[a=$(O(t))];!c&&o&&(c=r[a=$(j(t))]),c&&jt(c,e,6,i);const u=r[a+"Once"];if(u){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,jt(u,e,6,i)}}const is=new WeakMap;function os(e,t,n=!1){const s=n?is:t.emitsCache,r=s.get(e);if(void 0!==r)return r;const i=e.emits;let o={},l=!1;if(!v(e)){const s=e=>{const n=os(e,t,!0);n&&(l=!0,c(o,n))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return i||l?(p(i)?i.forEach(e=>o[e]=null):c(o,i),b(e)&&s.set(e,o),o):(b(e)&&s.set(e,null),null)}function ls(e,t){return!(!e||!l(t))&&(t=t.slice(2).replace(/Once$/,""),d(e,t[0].toLowerCase()+t.slice(1))||d(e,j(t))||d(e,t))}function as(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:c,render:u,renderCache:h,props:d,data:p,setupState:f,ctx:m,inheritAttrs:g}=e,v=Qt(e);let y,_;try{if(4&n.shapeFlag){const e=r||s,t=e;y=rr(u.call(t,e,h,d,f,p,m)),_=l}else{const e=t;0,y=rr(e.length>1?e(d,{attrs:l,slots:o,emit:c}):e(d,null)),_=t.props?l:cs(l)}}catch(t){Ls.length=0,Rt(t,e,1),y=er(Ds)}let b=y;if(_&&!1!==g){const e=Object.keys(_),{shapeFlag:t}=b;e.length&&7&t&&(i&&e.some(a)&&(_=us(_,i)),b=tr(b,_,!1,!0))}return n.dirs&&(b=tr(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&ln(b,n.transition),y=b,Qt(v),y}const cs=e=>{let t;for(const n in e)("class"===n||"style"===n||l(n))&&((t||(t={}))[n]=e[n]);return t},us=(e,t)=>{const n={};for(const s in e)a(s)&&s.slice(9)in t||(n[s]=e[s]);return n};function hs(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const i=s[r];if(ds(t,e,i)&&!ls(n,i))return!0}return!1}function ds(e,t,n){const s=e[n],r=t[n];return"style"===n&&b(s)&&b(r)?!Q(s,r):s!==r}const ps={},fs=()=>Object.create(ps),ms=e=>Object.getPrototypeOf(e)===ps;function gs(e,t,n,s=!1){const r={},i=fs();e.propsDefaults=Object.create(null),vs(e,t,r,i);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=s?r:dt(r,!1,Je,st,ot):e.type.props?e.props=r:e.props=i,e.attrs=i}function vs(e,t,n,r){const[i,o]=e.propsOptions;let l,a=!1;if(t)for(let s in t){if(C(s))continue;const c=t[s];let u;i&&d(i,u=O(s))?o&&o.includes(u)?(l||(l={}))[u]=c:n[u]=c:ls(e.emitsOptions,s)||s in r&&c===r[s]||(r[s]=c,a=!0)}if(o){const t=vt(n),r=l||s;for(let s=0;s<o.length;s++){const l=o[s];n[l]=ys(i,t,l,r[l],e,!d(r,l))}}return a}function ys(e,t,n,s,r,i){const o=e[n];if(null!=o){const e=d(o,"default");if(e&&void 0===s){const e=o.default;if(o.type!==Function&&!o.skipFactory&&v(e)){const{propsDefaults:i}=r;if(n in i)s=i[n];else{const o=fr(r);s=i[n]=e.call(null,t),o()}}else s=e;r.ce&&r.ce._setProp(n,s)}o[0]&&(i&&!e?s=!1:!o[1]||""!==s&&s!==j(n)||(s=!0))}return s}const _s=new WeakMap;function bs(e,t,n=!1){const i=n?_s:t.propsCache,o=i.get(e);if(o)return o;const l=e.props,a={},u=[];let h=!1;if(!v(e)){const s=e=>{h=!0;const[n,s]=bs(e,t,!0);c(a,n),s&&u.push(...s)};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}if(!l&&!h)return b(e)&&i.set(e,r),r;if(p(l))for(let e=0;e<l.length;e++){const t=O(l[e]);Ss(t)&&(a[t]=s)}else if(l)for(const e in l){const t=O(e);if(Ss(t)){const n=l[e],s=a[t]=p(n)||v(n)?{type:n}:c({},n),r=s.type;let i=!1,o=!0;if(p(r))for(let e=0;e<r.length;++e){const t=r[e],n=v(t)&&t.name;if("Boolean"===n){i=!0;break}"String"===n&&(o=!1)}else i=v(r)&&"Boolean"===r.name;s[0]=i,s[1]=o,(i||d(s,"default"))&&u.push(t)}}const f=[a,u];return b(e)&&i.set(e,f),f}function Ss(e){return"$"!==e[0]&&!C(e)}const xs=e=>"_"===e||"_ctx"===e||"$stable"===e,ks=e=>p(e)?e.map(rr):[rr(e)],Es=(e,t,n)=>{if(t._n)return t;const s=function(e,t=Kt){if(!t)return e;if(e._n)return e;const n=(...s)=>{n._d&&Bs(-1);const r=Qt(t);let i;try{i=e(...s)}finally{Qt(r),n._d&&Bs(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}((...e)=>ks(t(...e)),n);return s._c=!1,s},ws=(e,t,n)=>{const s=e._ctx;for(const n in e){if(xs(n))continue;const r=e[n];if(v(r))t[n]=Es(0,r,s);else if(null!=r){const e=ks(r);t[n]=()=>e}}},Cs=(e,t)=>{const n=ks(t);e.slots.default=()=>n},Vs=(e,t,n)=>{for(const s in t)!n&&xs(s)||(e[s]=t[s])},As=function(e,t){t&&t.pendingBranch?p(e)?t.effects.push(...e):t.effects.push(e):(p(n=e)?Ft.push(...n):It&&-1===n.id?It.splice(Mt+1,0,n):1&n.flags||(Ft.push(n),n.flags|=1),qt());var n};function Os(e){return function(e){U().__VUE__=!0;const{insert:t,remove:n,patchProp:o,createElement:l,createText:a,createComment:c,setText:u,setElementText:h,parentNode:p,nextSibling:f,setScopeId:m=i,insertStaticContent:g}=e,v=(e,t,n,s=null,r=null,i=null,o=void 0,l=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!Js(e,t)&&(s=X(e),K(e,r,i,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:h}=t;switch(c){case Ns:y(e,t,n,s);break;case Ds:_(e,t,n,s);break;case Us:null==e&&b(t,n,s,o);break;case Ms:T(e,t,n,s,r,i,o,l,a);break;default:1&h?E(e,t,n,s,r,i,o,l,a):6&h?M(e,t,n,s,r,i,o,l,a):(64&h||128&h)&&c.process(e,t,n,s,r,i,o,l,a,te)}null!=u&&r?hn(u,e&&e.ref,i,t||e,!t):null==u&&e&&null!=e.ref&&hn(e.ref,null,i,e,!0)},y=(e,n,s,r)=>{if(null==e)t(n.el=a(n.children),s,r);else{const t=n.el=e.el;n.children!==e.children&&u(t,n.children)}},_=(e,n,s,r)=>{null==e?t(n.el=c(n.children||""),s,r):n.el=e.el},b=(e,t,n,s)=>{[e.el,e.anchor]=g(e.children,t,n,s,e.el,e.anchor)},x=({el:e,anchor:n},s,r)=>{let i;for(;e&&e!==n;)i=f(e),t(e,s,r),e=i;t(n,s,r)},k=({el:e,anchor:t})=>{let s;for(;e&&e!==t;)s=f(e),n(e),e=s;n(t)},E=(e,t,n,s,r,i,o,l,a)=>{if("svg"===t.type?o="svg":"math"===t.type&&(o="mathml"),null==e)w(t,n,s,r,i,o,l,a);else{const n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),P(e,t,r,i,o,l,a)}finally{n&&n._endPatch()}}},w=(e,n,s,r,i,a,c,u)=>{let d,p;const{props:f,shapeFlag:m,transition:g,dirs:v}=e;if(d=e.el=l(e.type,a,f&&f.is,f),8&m?h(d,e.children):16&m&&A(e.children,d,null,r,i,Ps(e,a),c,u),v&&Gt(e,null,r,"created"),V(d,e,e.scopeId,c,r),f){for(const e in f)"value"===e||C(e)||o(d,e,null,f[e],a,r);"value"in f&&o(d,"value",null,f.value,a),(p=f.onVnodeBeforeMount)&&lr(p,r,e)}v&&Gt(e,null,r,"beforeMount");const y=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(i,g);y&&g.beforeEnter(d),t(d,n,s),((p=f&&f.onVnodeMounted)||y||v)&&As(()=>{p&&lr(p,r,e),y&&g.enter(d),v&&Gt(e,null,r,"mounted")},i)},V=(e,t,n,s,r)=>{if(n&&m(e,n),s)for(let t=0;t<s.length;t++)m(e,s[t]);if(r){let n=r.subTree;if(t===n||Is(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=r.vnode;V(e,t,t.scopeId,t.slotScopeIds,r.parent)}}},A=(e,t,n,s,r,i,o,l,a=0)=>{for(let c=a;c<e.length;c++){const a=e[c]=l?ir(e[c]):rr(e[c]);v(null,a,t,n,s,r,i,o,l)}},P=(e,t,n,r,i,l,a)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const f=e.props||s,m=t.props||s;let g;if(n&&js(n,!1),(g=m.onVnodeBeforeUpdate)&&lr(g,n,t,e),p&&Gt(t,e,n,"beforeUpdate"),n&&js(n,!0),(f.innerHTML&&null==m.innerHTML||f.textContent&&null==m.textContent)&&h(c,""),d?R(e.dynamicChildren,d,c,n,r,Ps(t,i),l):a||z(e,t,c,null,n,r,Ps(t,i),l,!1),u>0){if(16&u)$(c,f,m,n,i);else if(2&u&&f.class!==m.class&&o(c,"class",null,m.class,i),4&u&&o(c,"style",f.style,m.style,i),8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const s=e[t],r=f[s],l=m[s];l===r&&"value"!==s||o(c,s,r,l,i,n)}}1&u&&e.children!==t.children&&h(c,t.children)}else a||null!=d||$(c,f,m,n,i);((g=m.onVnodeUpdated)||p)&&As(()=>{g&&lr(g,n,t,e),p&&Gt(t,e,n,"updated")},r)},R=(e,t,n,s,r,i,o)=>{for(let l=0;l<t.length;l++){const a=e[l],c=t[l],u=a.el&&(a.type===Ms||!Js(a,c)||198&a.shapeFlag)?p(a.el):n;v(a,c,u,null,s,r,i,o,!0)}},$=(e,t,n,r,i)=>{if(t!==n){if(t!==s)for(const s in t)C(s)||s in n||o(e,s,t[s],null,i,r);for(const s in n){if(C(s))continue;const l=n[s],a=t[s];l!==a&&"value"!==s&&o(e,s,a,l,i,r)}"value"in n&&o(e,"value",t.value,n.value,i)}},T=(e,n,s,r,i,o,l,c,u)=>{const h=n.el=e?e.el:a(""),d=n.anchor=e?e.anchor:a("");let{patchFlag:p,dynamicChildren:f,slotScopeIds:m}=n;m&&(c=c?c.concat(m):m),null==e?(t(h,s,r),t(d,s,r),A(n.children||[],s,d,i,o,l,c,u)):p>0&&64&p&&f&&e.dynamicChildren&&e.dynamicChildren.length===f.length?(R(e.dynamicChildren,f,s,i,o,l,c),(null!=n.key||i&&n===i.subTree)&&Rs(e,n,!0)):z(e,n,s,d,i,o,l,c,u)},M=(e,t,n,s,r,i,o,l,a)=>{t.slotScopeIds=l,null==e?512&t.shapeFlag?r.ctx.activate(t,n,s,o,a):N(t,n,s,r,i,o,a):D(e,t,a)},N=(e,t,n,r,i,o,l)=>{const a=e.component=function(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||ar,o={uid:cr++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ne(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:bs(r,i),emitsOptions:os(r,i),emit:null,emitted:null,propsDefaults:s,inheritAttrs:r.inheritAttrs,ctx:s,data:s,props:s,attrs:s,slots:s,refs:s,setupState:s,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};o.ctx={_:o},o.root=t?t.root:o,o.emit=rs.bind(null,o),e.ce&&e.ce(o);return o}(e,r,i);if(fn(e)&&(a.ctx.renderer=te),function(e,t=!1,n=!1){t&&pr(t);const{props:s,children:r}=e.vnode,i=gr(e);gs(e,s,i,t),((e,t,n)=>{const s=e.slots=fs();if(32&e.vnode.shapeFlag){const e=t._;e?(Vs(s,t,n),n&&I(s,"_",e,!0)):ws(t,s)}else t&&Cs(e,t)})(e,r,n||t);const o=i?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Un);const{setup:s}=n;if(s){_e();const n=e.setupContext=s.length>1?function(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,br),slots:e.slots,emit:e.emit,expose:t}}(e):null,r=fr(e),i=Pt(s,e,0,[e.props,n]),o=S(i);if(be(),r(),!o&&!e.sp||pn(e)||an(e),o){if(i.then(mr,mr),t)return i.then(t=>{yr(e,t)}).catch(t=>{Rt(t,e,0)});e.asyncDep=i}else yr(e,i)}else _r(e)}(e,t):void 0;t&&pr(!1)}(a,!1,l),a.asyncDep){if(i&&i.registerDep(a,L,l),!e.el){const s=a.subTree=er(Ds);_(null,s,t,n),e.placeholder=s.el}}else L(a,e,t,n,i,o,l)},D=(e,t,n)=>{const s=t.component=e.component;if(function(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!r&&!l||l&&l.$stable)||s!==o&&(s?!o||hs(s,o,c):!!o);if(1024&a)return!0;if(16&a)return s?hs(s,o,c):!!o;if(8&a){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(ds(o,s,n)&&!ls(c,n))return!0}}return!1}(e,t,n)){if(s.asyncDep&&!s.asyncResolved)return void q(s,t,n);s.next=t,s.update()}else t.el=e.el,s.vnode=t},L=(e,t,n,s,r,i,o)=>{const l=()=>{if(e.isMounted){let{next:t,bu:n,u:s,parent:l,vnode:a}=e;{const n=$s(e);if(n)return t&&(t.el=a.el,q(e,t,o)),void n.asyncDep.then(()=>{As(()=>{e.isUnmounted||c()},r)})}let u,h=t;js(e,!1),t?(t.el=a.el,q(e,t,o)):t=a,n&&F(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&lr(u,l,t,a),js(e,!0);const d=as(e),f=e.subTree;e.subTree=d,v(f,d,p(f.el),X(f),e,r,i),t.el=d.el,null===h&&function({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s!==e)break;(e=t.vnode).el=n,t=t.parent}}(e,d.el),s&&As(s,r),(u=t.props&&t.props.onVnodeUpdated)&&As(()=>lr(u,l,t,a),r)}else{let o;const{el:l,props:a}=t,{bm:c,m:u,parent:h,root:d,type:p}=e,f=pn(t);js(e,!1),c&&F(c),!f&&(o=a&&a.onVnodeBeforeMount)&&lr(o,h,t),js(e,!0);{d.ce&&d.ce._hasShadowRoot()&&d.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);const o=e.subTree=as(e);v(null,o,n,s,e,r,i),t.el=o.el}if(u&&As(u,r),!f&&(o=a&&a.onVnodeMounted)){const e=t;As(()=>lr(o,h,e),r)}(256&t.shapeFlag||h&&pn(h.vnode)&&256&h.vnode.shapeFlag)&&e.a&&As(e.a,r),e.isMounted=!0,t=n=s=null}};e.scope.on();const a=e.effect=new re(l);e.scope.off();const c=e.update=a.run.bind(a),u=e.job=a.runIfDirty.bind(a);u.i=e,u.id=e.uid,a.scheduler=()=>Lt(u),js(e,!0),c()},q=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=vt(r),[a]=e.propsOptions;let c=!1;if(!(s||o>0)||16&o){let s;vs(e,t,r,i)&&(c=!0);for(const i in l)t&&(d(t,i)||(s=j(i))!==i&&d(t,s))||(a?!n||void 0===n[i]&&void 0===n[s]||(r[i]=ys(a,l,i,void 0,e,!0)):delete r[i]);if(i!==l)for(const e in i)t&&d(t,e)||(delete i[e],c=!0)}else if(8&o){const n=e.vnode.dynamicProps;for(let s=0;s<n.length;s++){let o=n[s];if(ls(e.emitsOptions,o))continue;const u=t[o];if(a)if(d(i,o))u!==i[o]&&(i[o]=u,c=!0);else{const t=O(o);r[t]=ys(a,l,t,u,e,!1)}else u!==i[o]&&(i[o]=u,c=!0)}}c&&je(e.attrs,"set","")}(e,t.props,r,n),((e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,l=s;if(32&r.shapeFlag){const e=t._;e?n&&1===e?o=!1:Vs(i,t,n):(o=!t.$stable,ws(t,i)),l=t}else t&&(Cs(e,t),l={default:1});if(o)for(const e in i)xs(e)||null!=l[e]||delete i[e]})(e,t.children,n),_e(),zt(e),be()},z=(e,t,n,s,r,i,o,l,a=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void B(c,d,n,s,r,i,o,l,a);if(256&p)return void W(c,d,n,s,r,i,o,l,a)}8&f?(16&u&&G(c,r,i),d!==c&&h(n,d)):16&u?16&f?B(c,d,n,s,r,i,o,l,a):G(c,r,i,!0):(8&u&&h(n,""),16&f&&A(d,n,s,r,i,o,l,a))},W=(e,t,n,s,i,o,l,a,c)=>{t=t||r;const u=(e=e||r).length,h=t.length,d=Math.min(u,h);let p;for(p=0;p<d;p++){const s=t[p]=c?ir(t[p]):rr(t[p]);v(e[p],s,n,null,i,o,l,a,c)}u>h?G(e,i,o,!0,!1,d):A(t,n,s,i,o,l,a,c,d)},B=(e,t,n,s,i,o,l,a,c)=>{let u=0;const h=t.length;let d=e.length-1,p=h-1;for(;u<=d&&u<=p;){const s=e[u],r=t[u]=c?ir(t[u]):rr(t[u]);if(!Js(s,r))break;v(s,r,n,null,i,o,l,a,c),u++}for(;u<=d&&u<=p;){const s=e[d],r=t[p]=c?ir(t[p]):rr(t[p]);if(!Js(s,r))break;v(s,r,n,null,i,o,l,a,c),d--,p--}if(u>d){if(u<=p){const e=p+1,r=e<h?t[e].el:s;for(;u<=p;)v(null,t[u]=c?ir(t[u]):rr(t[u]),n,r,i,o,l,a,c),u++}}else if(u>p)for(;u<=d;)K(e[u],i,o,!0),u++;else{const f=u,m=u,g=new Map;for(u=m;u<=p;u++){const e=t[u]=c?ir(t[u]):rr(t[u]);null!=e.key&&g.set(e.key,u)}let y,_=0;const b=p-m+1;let S=!1,x=0;const k=new Array(b);for(u=0;u<b;u++)k[u]=0;for(u=f;u<=d;u++){const s=e[u];if(_>=b){K(s,i,o,!0);continue}let r;if(null!=s.key)r=g.get(s.key);else for(y=m;y<=p;y++)if(0===k[y-m]&&Js(s,t[y])){r=y;break}void 0===r?K(s,i,o,!0):(k[r-m]=u+1,r>=x?x=r:S=!0,v(s,t[r],n,null,i,o,l,a,c),_++)}const E=S?function(e){const t=e.slice(),n=[0];let s,r,i,o,l;const a=e.length;for(s=0;s<a;s++){const a=e[s];if(0!==a){if(r=n[n.length-1],e[r]<a){t[s]=r,n.push(s);continue}for(i=0,o=n.length-1;i<o;)l=i+o>>1,e[n[l]]<a?i=l+1:o=l;a<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}i=n.length,o=n[i-1];for(;i-- >0;)n[i]=o,o=t[o];return n}(k):r;for(y=E.length-1,u=b-1;u>=0;u--){const e=m+u,r=t[e],d=t[e+1],p=e+1<h?d.el||Fs(d):s;0===k[u]?v(null,r,n,p,i,o,l,a,c):S&&(y<0||u!==E[y]?H(r,n,p,2):y--)}}},H=(e,s,r,i,o=null)=>{const{el:l,type:a,transition:c,children:u,shapeFlag:h}=e;if(6&h)return void H(e.component.subTree,s,r,i);if(128&h)return void e.suspense.move(s,r,i);if(64&h)return void a.move(e,s,r,te);if(a===Ms){t(l,s,r);for(let e=0;e<u.length;e++)H(u[e],s,r,i);return void t(e.anchor,s,r)}if(a===Us)return void x(e,s,r);if(2!==i&&1&h&&c)if(0===i)c.beforeEnter(l),t(l,s,r),As(()=>c.enter(l),o);else{const{leave:i,delayLeave:o,afterLeave:a}=c,u=()=>{e.ctx.isUnmounted?n(l):t(l,s,r)},h=()=>{l._isLeaving&&l[on](!0),i(l,()=>{u(),a&&a()})};o?o(l,u,h):h()}else t(l,s,r)},K=(e,t,n,s=!1,r=!1)=>{const{type:i,props:o,ref:l,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:h,dirs:d,cacheIndex:p}=e;if(-2===h&&(r=!1),null!=l&&(_e(),hn(l,null,n,e,!0),be()),null!=p&&(t.renderCache[p]=void 0),256&u)return void t.ctx.deactivate(e);const f=1&u&&d,m=!pn(e);let g;if(m&&(g=o&&o.onVnodeBeforeUnmount)&&lr(g,t,e),6&u)J(e.component,n,s);else{if(128&u)return void e.suspense.unmount(n,s);f&&Gt(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,te,s):c&&!c.hasOnce&&(i!==Ms||h>0&&64&h)?G(c,t,n,!1,!0):(i===Ms&&384&h||!r&&16&u)&&G(a,t,n),s&&Z(e)}(m&&(g=o&&o.onVnodeUnmounted)||f)&&As(()=>{g&&lr(g,t,e),f&&Gt(e,null,t,"unmounted")},n)},Z=e=>{const{type:t,el:s,anchor:r,transition:i}=e;if(t===Ms)return void Q(s,r);if(t===Us)return void k(e);const o=()=>{n(s),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:n}=i,r=()=>t(s,o);n?n(e.el,o,r):r()}else o()},Q=(e,t)=>{let s;for(;e!==t;)s=f(e),n(e),e=s;n(t)},J=(e,t,n)=>{const{bum:s,scope:r,job:i,subTree:o,um:l,m:a,a:c}=e;Ts(a),Ts(c),s&&F(s),r.stop(),i&&(i.flags|=8,K(o,e,t,n)),l&&As(l,t),As(()=>{e.isUnmounted=!0},t)},G=(e,t,n,s=!1,r=!1,i=0)=>{for(let o=i;o<e.length;o++)K(e[o],t,n,s,r)},X=e=>{if(6&e.shapeFlag)return X(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=f(e.anchor||e.el),n=t&&t[rn];return n?f(n):t};let Y=!1;const ee=(e,t,n)=>{let s;null==e?t._vnode&&(K(t._vnode,null,null,!0),s=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,Y||(Y=!0,zt(s),Wt(),Y=!1)},te={p:v,um:K,m:H,r:Z,mt:N,mc:A,pc:z,pbc:R,n:X,o:e};let se;return{render:ee,hydrate:se,createApp:ns(ee)}}(e)}function Ps({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function js({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Rs(e,t,n=!1){const s=e.children,r=t.children;if(p(s)&&p(r))for(let e=0;e<s.length;e++){const t=s[e];let i=r[e];1&i.shapeFlag&&!i.dynamicChildren&&((i.patchFlag<=0||32===i.patchFlag)&&(i=r[e]=ir(r[e]),i.el=t.el),n||-2===i.patchFlag||Rs(t,i)),i.type===Ns&&(-1===i.patchFlag&&(i=r[e]=ir(i)),i.el=t.el),i.type!==Ds||i.el||(i.el=t.el)}}function $s(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:$s(t)}function Ts(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Fs(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Fs(t.subTree):null}const Is=e=>e.__isSuspense;const Ms=Symbol.for("v-fgt"),Ns=Symbol.for("v-txt"),Ds=Symbol.for("v-cmt"),Us=Symbol.for("v-stc"),Ls=[];let qs=null;function zs(e=!1){Ls.push(qs=e?null:[])}let Ws=1;function Bs(e,t=!1){Ws+=e,e<0&&qs&&t&&(qs.hasOnce=!0)}function Hs(e){return e.dynamicChildren=Ws>0?qs||r:null,Ls.pop(),qs=Ls[Ls.length-1]||null,Ws>0&&qs&&qs.push(e),e}function Ks(e,t,n,s,r,i){return Hs(Ys(e,t,n,s,r,i,!0))}function Zs(e,t,n,s,r){return Hs(er(e,t,n,s,r,!0))}function Qs(e){return!!e&&!0===e.__v_isVNode}function Js(e,t){return e.type===t.type&&e.key===t.key}const Gs=({key:e})=>null!=e?e:null,Xs=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?y(e)||bt(e)||v(e)?{i:Kt,r:e,k:t,f:!!n}:e:null);function Ys(e,t=null,n=null,s=0,r=null,i=(e===Ms?0:1),o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Gs(t),ref:t&&Xs(t),scopeId:Zt,slotScopeIds:null,children:n,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:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Kt};return l?(or(a,n),128&i&&e.normalize(a)):n&&(a.shapeFlag|=y(n)?8:16),Ws>0&&!o&&qs&&(a.patchFlag>0||6&i)&&32!==a.patchFlag&&qs.push(a),a}const er=function(e,t=null,n=null,s=0,r=null,i=!1){e&&e!==$n||(e=Ds);if(Qs(e)){const s=tr(e,t,!0);return n&&or(s,n),Ws>0&&!i&&qs&&(6&s.shapeFlag?qs[qs.indexOf(e)]=s:qs.push(s)),s.patchFlag=-2,s}o=e,v(o)&&"__vccOpts"in o&&(e=e.__vccOpts);var o;if(t){t=function(e){return e?gt(e)||ms(e)?c({},e):e:null}(t);let{class:e,style:n}=t;e&&!y(e)&&(t.class=H(e)),b(n)&&(gt(n)&&!p(n)&&(n=c({},n)),t.style=L(n))}const l=y(e)?1:Is(e)?128:(e=>e.__isTeleport)(e)?64:b(e)?4:v(e)?2:0;return Ys(e,t,n,s,r,l,i,!0)};function tr(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:a,transition:c}=e,u=t?function(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const e in s)if("class"===e)t.class!==s.class&&(t.class=H([t.class,s.class]));else if("style"===e)t.style=L([t.style,s.style]);else if(l(e)){const n=t[e],r=s[e];!r||n===r||p(n)&&n.includes(r)||(t[e]=n?[].concat(n,r):r)}else""!==e&&(t[e]=s[e])}return t}(r||{},t):r,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Gs(u),ref:t&&t.ref?n&&i?p(i)?i.concat(Xs(t)):[i,Xs(t)]:Xs(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ms?-1===o?16:16|o:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&tr(e.ssContent),ssFallback:e.ssFallback&&tr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&ln(h,c.clone(h)),h}function nr(e=" ",t=0){return er(Ns,null,e,t)}function sr(e="",t=!1){return t?(zs(),Zs(Ds,null,e)):er(Ds,null,e)}function rr(e){return null==e||"boolean"==typeof e?er(Ds):p(e)?er(Ms,null,e.slice()):Qs(e)?ir(e):er(Ns,null,String(e))}function ir(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:tr(e)}function or(e,t){let n=0;const{shapeFlag:s}=e;if(null==t)t=null;else if(p(t))n=16;else if("object"==typeof t){if(65&s){const n=t.default;return void(n&&(n._c&&(n._d=!1),or(e,n()),n._c&&(n._d=!0)))}{n=32;const s=t._;s||ms(t)?3===s&&Kt&&(1===Kt.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Kt}}else v(t)?(t={default:t,_ctx:Kt},n=32):(t=String(t),64&s?(n=16,t=[nr(t)]):n=8);e.children=t,e.shapeFlag|=n}function lr(e,t,n,s=null){jt(e,t,7,[n,s])}const ar=es();let cr=0;let ur=null;const hr=()=>ur||Kt;let dr,pr;{const e=U(),t=(t,n)=>{let s;return(s=e[t])||(s=e[t]=[]),s.push(n),e=>{s.length>1?s.forEach(t=>t(e)):s[0](e)}};dr=t("__VUE_INSTANCE_SETTERS__",e=>ur=e),pr=t("__VUE_SSR_SETTERS__",e=>vr=e)}const fr=e=>{const t=ur;return dr(e),e.scope.on(),()=>{e.scope.off(),dr(t)}},mr=()=>{ur&&ur.scope.off(),dr(null)};function gr(e){return 4&e.vnode.shapeFlag}let vr=!1;function yr(e,t,n){v(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:b(t)&&(e.setupState=kt(t)),_r(e)}function _r(e,t,n){const s=e.type;e.render||(e.render=s.render||i);{const t=fr(e);_e();try{zn(e)}finally{be(),t()}}}const br={get:(e,t)=>(Pe(e,0,""),e[t])};function Sr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(kt((t=e.exposed,!d(t,"__v_skip")&&Object.isExtensible(t)&&I(t,"__v_skip",!0),t)),{get:(t,n)=>n in t?t[n]:n in Nn?Nn[n](e):void 0,has:(e,t)=>t in e||t in Nn})):e.proxy;var t}function xr(e,t=!0){return v(e)?e.displayName||e.name:e.name||t&&e.__name}const kr=(e,t)=>{const n=function(e,t,n=!1){let s,r;return v(e)?s=e:(s=e.get,r=e.set),new Et(s,r,n)}(e,0,vr);return n},Er="3.5.30";
|
|
20
20
|
/**
|
|
21
21
|
* @vue/runtime-dom v3.5.30
|
|
22
22
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
23
23
|
* @license MIT
|
|
24
24
|
**/
|
|
25
|
-
let Hs;process.env.NODE_ENV,process.env.NODE_ENV;const zs="undefined"!=typeof window&&window.trustedTypes;if(zs)try{Hs=zs.createPolicy("vue",{createHTML:e=>e})}catch(e){"production"!==process.env.NODE_ENV&&qs(`Error creating trusted types policy: ${e}`)}const Ws=Hs?e=>Hs.createHTML(e):e=>e,Bs="undefined"!=typeof document?document:null,Ks=Bs&&Bs.createElement("template"),Js={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r="svg"===t?Bs.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Bs.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?Bs.createElement(e,{is:n}):Bs.createElement(e);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>Bs.createTextNode(e),createComment:e=>Bs.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Bs.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,s){const i=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==s&&(r=r.nextSibling););else{Ks.innerHTML=Ws("svg"===o?`<svg>${e}</svg>`:"mathml"===o?`<math>${e}</math>`:e);const r=Ks.content;if("svg"===o||"mathml"===o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Zs=Symbol("_vtc");const Gs=Symbol("_vod"),Ys=Symbol("_vsh"),Qs={name:"show",beforeMount(e,{value:t},{transition:n}){e[Gs]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Xs(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),Xs(e,!0),o.enter(e)):o.leave(e,()=>{Xs(e,!1)}):Xs(e,t))},beforeUnmount(e,{value:t}){Xs(e,t)}};function Xs(e,t){e.style.display=t?e[Gs]:"none",e[Ys]=!t}const ei=Symbol("production"!==process.env.NODE_ENV?"CSS_VAR_TEXT":""),ti=/(?:^|;)\s*display\s*:/;const ni=/[^\\];\s*$/,oi=/\s*!important$/;function ri(e,t,n){if(f(n))n.forEach(n=>ri(e,t,n));else if(null==n&&(n=""),"production"!==process.env.NODE_ENV&&ni.test(n)&&qs(`Unexpected semicolon at the end of '${t}' style value: '${n}'`),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=ii[t];if(n)return n;let o=$(t);if("filter"!==o&&o in e)return ii[t]=o;o=j(o);for(let n=0;n<si.length;n++){const r=si[n]+o;if(r in e)return ii[t]=r}return t}(e,t);oi.test(n)?e.setProperty(A(o),n.replace(oi,""),"important"):e[o]=n}}const si=["Webkit","Moz","ms"],ii={};const li="http://www.w3.org/1999/xlink";function ai(e,t,n,o,r,s=Y(t)){o&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(li,t.slice(6,t.length)):e.setAttributeNS(li,t,n):null==n||s&&!Q(n)?e.removeAttribute(t):e.setAttribute(t,s?"":y(n)?String(n):n)}function ci(e,t,n,o,r){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?Ws(n):n));const s=e.tagName;if("value"===t&&"PROGRESS"!==s&&!s.includes("-")){const o="OPTION"===s?e.getAttribute("value")||"":e.value,r=null==n?"checkbox"===e.type?"on":"":String(n);return o===r&&"_value"in e||(e.value=r),null==n&&e.removeAttribute(t),void(e._value=n)}let i=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=Q(n):null==n&&"string"===o?(n="",i=!0):"number"===o&&(n=0,i=!0)}try{e[t]=n}catch(e){"production"===process.env.NODE_ENV||i||qs(`Failed setting prop "${t}" on <${s.toLowerCase()}>: value ${n} is invalid.`,e)}i&&e.removeAttribute(r||t)}function ui(e,t,n,o){e.addEventListener(t,n,o)}const pi=Symbol("_vei");function di(e,t,n,o,r=null){const s=e[pi]||(e[pi]={}),i=s[t];if(o&&i)i.value="production"!==process.env.NODE_ENV?_i(o,t):o;else{const[n,l]=function(e){let t;if(fi.test(e)){let n;for(t={};n=e.match(fi);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):A(e.slice(2));return[n,t]}(t);if(o){const i=s[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();Jt(function(e,t){if(f(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=vi(),n}("production"!==process.env.NODE_ENV?_i(o,t):o,r);ui(e,n,i,l)}else i&&(!function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,i,l),s[t]=void 0)}}const fi=/(?:Once|Passive|Capture)$/;let hi=0;const mi=Promise.resolve(),vi=()=>hi||(mi.then(()=>hi=0),hi=Date.now());function _i(e,t){return _(e)||f(e)?e:(qs(`Wrong type passed as event handler to ${t} - did you forget @ or : in front of your prop?\nExpected function or array of functions, received type ${typeof e}.`),s)}const gi=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;const yi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return f(t)?e=>R(t,e):t};function Ei(e){e.target.composing=!0}function bi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ni=Symbol("_assign");function Oi(e,t,n){return t&&(e=e.trim()),n&&(e=F(e)),e}const Vi={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[Ni]=yi(r);const s=o||r.props&&"number"===r.props.type;ui(e,t?"change":"input",t=>{t.target.composing||e[Ni](Oi(e.value,n,s))}),(n||s)&&ui(e,"change",()=>{e.value=Oi(e.value,n,s)}),t||(ui(e,"compositionstart",Ei),ui(e,"compositionend",bi),ui(e,"change",bi))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:r,number:s}},i){if(e[Ni]=yi(i),e.composing)return;const l=null==t?"":t;if((!s&&"number"!==e.type||/^0\d/.test(e.value)?e.value:F(e.value))!==l){if(document.activeElement===e&&"range"!==e.type){if(o&&t===n)return;if(r&&e.value.trim()===l)return}e.value=l}}},Di=["ctrl","shift","alt","meta"],wi={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Di.some(n=>e[`${n}Key`]&&!t.includes(n))},Si=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(n,...o)=>{for(let e=0;e<t.length;e++){const o=wi[t[e]];if(o&&o(n,t))return}return e(n,...o)})},xi=c({patchProp:(e,t,n,o,r,s)=>{const i="svg"===r;"class"===t?function(e,t,n){const o=e[Zs];o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,i):"style"===t?function(e,t,n){const o=e.style,r=g(n);let s=!1;if(n&&!r){if(t)if(g(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&ri(o,t,"")}else for(const e in t)null==n[e]&&ri(o,e,"");for(const e in n)"display"===e&&(s=!0),ri(o,e,n[e])}else if(r){if(t!==n){const e=o[ei];e&&(n+=";"+e),o.cssText=n,s=ti.test(n)}}else t&&e.removeAttribute("style");Gs in e&&(e[Gs]=s?o.display:"",e[Ys]&&(o.display="none"))}(e,n,o):l(t)?a(t)||di(e,t,0,o,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&gi(t)&&_(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("sandbox"===t&&"IFRAME"===e.tagName)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(gi(t)&&g(n))return!1;return t in e}(e,t,o,i))?(ci(e,t,o),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||ai(e,t,o,i,0,"value"!==t)):e._isVueCE&&(function(e,t){const n=e._def.props;if(!n)return!1;const o=$(t);return Array.isArray(n)?n.some(e=>$(e)===o):Object.keys(n).some(e=>$(e)===o)}(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!g(o)))?ci(e,$(t),o,0,t):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),ai(e,t,o,i))}},Js);let ki;const Ci=(...e)=>{const t=(ki||(ki=Ir(xi))).createApp(...e);"production"!==process.env.NODE_ENV&&(function(e){Object.defineProperty(e.config,"isNativeTag",{value:e=>J(e)||Z(e)||G(e),writable:!1})}(t),function(e){{const t=e.config.isCustomElement;Object.defineProperty(e.config,"isCustomElement",{get:()=>t,set(){qs("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});const n=e.config.compilerOptions,o='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-sfc';Object.defineProperty(e.config,"compilerOptions",{get:()=>(qs(o),n),set(){qs(o)}})}}(t));const{mount:n}=t;return t.mount=e=>{const o=function(e){if(g(e)){const t=document.querySelector(e);return"production"===process.env.NODE_ENV||t||qs(`Failed to mount app: mount target selector "${e}" returned null.`),t}"production"!==process.env.NODE_ENV&&window.ShadowRoot&&e instanceof window.ShadowRoot&&"closed"===e.mode&&qs('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs');return e}
|
|
26
|
-
/**
|
|
27
|
-
* vue v3.5.30
|
|
28
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
29
|
-
* @license MIT
|
|
30
|
-
**/(e);if(!o)return;const r=t._component;_(r)||r.render||r.template||(r.template=o.innerHTML),1===o.nodeType&&(o.textContent="");const s=n(o,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t};"production"!==process.env.NODE_ENV&&function(){if("production"===process.env.NODE_ENV||"undefined"==typeof window)return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},n={style:"color:#f5222d"},r={style:"color:#eb2f96"},s={__vue_custom_formatter:!0,header(t){if(!E(t))return null;if(t.__isVue)return["div",e,"VueInstance"];if(xt(t)){Ve();const n=t.value;return De(),["div",{},["span",e,d(t)],"<",a(n),">"]}return bt(t)?["div",{},["span",e,Ot(t)?"ShallowReactive":"Reactive"],"<",a(t),">"+(Nt(t)?" (readonly)":"")]:Nt(t)?["div",{},["span",e,Ot(t)?"ShallowReadonly":"Readonly"],"<",a(t),">"]:null},hasBody:e=>e&&e.__isVue,body(e){if(e&&e.__isVue)return["div",{},...i(e.$)]}};function i(e){const t=[];e.type.props&&e.props&&t.push(l("props",Dt(e.props))),e.setupState!==o&&t.push(l("setup",e.setupState)),e.data!==o&&t.push(l("data",Dt(e.data)));const n=u(e,"computed");n&&t.push(l("computed",n));const s=u(e,"inject");return s&&t.push(l("injected",s)),t.push(["div",{},["span",{style:r.style+";opacity:0.66"},"$ (internal): "],["object",{object:e}]]),t}function l(e,t){return t=c({},t),Object.keys(t).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},e],["div",{style:"padding-left:1.25em"},...Object.keys(t).map(e=>["div",{},["span",r,e+": "],a(t[e],!1)])]]:["span",{}]}function a(e,o=!0){return"number"==typeof e?["span",t,e]:"string"==typeof e?["span",n,JSON.stringify(e)]:"boolean"==typeof e?["span",r,e]:E(e)?["object",{object:o?Dt(e):e}]:["span",n,String(e)]}function u(e,t){const n=e.type;if(_(n))return;const o={};for(const r in e.ctx)p(n,r,t)&&(o[r]=e.ctx[r]);return o}function p(e,t,n){const o=e[n];return!!(f(o)&&o.includes(t)||E(o)&&t in o)||!(!e.extends||!p(e.extends,t,n))||!(!e.mixins||!e.mixins.some(e=>p(e,t,n)))||void 0}function d(e){return Ot(e)?"ShallowRef":e.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(s):window.devtoolsFormatters=[s]}();const $i=["value","placeholder"],Pi=["value","placeholder"],Ai={key:2,class:"errorlist"};t.render=function(e,t,n,o,r,s){return Gr(),es("div",{class:K(["sf-field",{errors:s.fieldErrors.length}])},[is("label",{class:K(["sf-label",{required:s.isRequired}])},te(s.title),3),s.isLong?(Gr(),es("textarea",{key:0,class:"sf-input sf-textarea",rows:"3",value:n.modelValue,placeholder:n.schema.placeholder||"",onInput:t[0]||(t[0]=t=>e.$emit("update:modelValue",t.target.value))},null,40,$i)):(Gr(),es("input",{key:1,type:"text",class:"sf-input",value:null!=n.modelValue?String(n.modelValue):"",placeholder:n.schema.placeholder||"",onInput:t[1]||(t[1]=t=>e.$emit("update:modelValue",t.target.value))},null,40,Pi)),s.fieldErrors.length?(Gr(),es("ul",Ai,[(Gr(!0),es(zr,null,wo(s.fieldErrors,(e,t)=>(Gr(),es("li",{key:t},te(e),1))),128))])):ds("v-if",!0)],2)},t.__file="src/editors/StringEditor.vue";var ji={name:"NumberEditor",props:{schema:{type:Object,required:!0},modelValue:{default:0},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isRequired(){if(this.path.length<2||!this.form)return!1;const e=this.path.slice(0,-1),t=this.path[this.path.length-1],n=this.form.getSchemaAtPath(e);return n&&Array.isArray(n.required)&&n.required.includes(t)},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",onInput(e){const t=e.target.value;""===t?this.$emit("update:modelValue",0):this.$emit("update:modelValue","integer"===this.schema.type?parseInt(t,10):parseFloat(t))}}};const Ti=["step","min","max","value"],Ii={key:0,class:"errorlist"};ji.render=function(e,t,n,o,r,s){return Gr(),es("div",{class:K(["sf-field",{errors:s.fieldErrors.length}])},[is("label",{class:K(["sf-label",{required:s.isRequired}])},te(s.title),3),is("input",{type:"number",class:"sf-input",step:"integer"===n.schema.type?"1":"any",min:null!=n.schema.minimum?String(n.schema.minimum):void 0,max:null!=n.schema.maximum?String(n.schema.maximum):void 0,value:null!=n.modelValue?n.modelValue:"",onInput:t[0]||(t[0]=(...e)=>s.onInput&&s.onInput(...e))},null,40,Ti),s.fieldErrors.length?(Gr(),es("ul",Ii,[(Gr(!0),es(zr,null,wo(s.fieldErrors,(e,t)=>(Gr(),es("li",{key:t},te(e),1))),128))])):ds("v-if",!0)],2)},ji.__file="src/editors/NumberEditor.vue";var Ri={name:"BooleanEditor",props:{schema:{type:Object,required:!0},modelValue:{default:!1},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):""}};const Mi={class:"sf-checkbox-label"},Fi=["checked"],Ui={key:0,class:"errorlist"};Ri.render=function(e,t,n,o,r,s){return Gr(),es("div",{class:K(["sf-field sf-field-boolean",{errors:s.fieldErrors.length}])},[is("label",Mi,[is("input",{type:"checkbox",class:"sf-checkbox",checked:!!n.modelValue,onChange:t[0]||(t[0]=t=>e.$emit("update:modelValue",t.target.checked))},null,40,Fi),ps(" "+te(s.title),1)]),s.fieldErrors.length?(Gr(),es("ul",Ui,[(Gr(!0),es(zr,null,wo(s.fieldErrors,(e,t)=>(Gr(),es("li",{key:t},te(e),1))),128))])):ds("v-if",!0)],2)},Ri.__file="src/editors/BooleanEditor.vue";var Li={name:"SelectEditor",props:{schema:{type:Object,required:!0},modelValue:{default:""},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isRequired(){if(this.path.length<2||!this.form)return!1;const e=this.path.slice(0,-1),t=this.path[this.path.length-1],n=this.form.getSchemaAtPath(e);return n&&Array.isArray(n.required)&&n.required.includes(t)},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):""}};const qi=["value"],Hi=["value"],zi={key:0,class:"errorlist"};Li.render=function(e,t,n,o,r,s){return Gr(),es("div",{class:K(["sf-field",{errors:s.fieldErrors.length}])},[is("label",{class:K(["sf-label",{required:s.isRequired}])},te(s.title),3),is("select",{class:"sf-input sf-select",value:null!=n.modelValue?String(n.modelValue):"",onChange:t[0]||(t[0]=t=>e.$emit("update:modelValue",t.target.value))},[(Gr(!0),es(zr,null,wo(n.schema.enum||[],e=>(Gr(),es("option",{key:e,value:String(e)},te(e),9,Hi))),128))],40,qi),s.fieldErrors.length?(Gr(),es("ul",zi,[(Gr(!0),es(zr,null,wo(s.fieldErrors,(e,t)=>(Gr(),es("li",{key:t},te(e),1))),128))])):ds("v-if",!0)],2)},Li.__file="src/editors/SelectEditor.vue";var Wi={name:"HiddenEditor",props:{schema:{type:Object,required:!0},modelValue:{default:null},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],computed:{resolvedValue(){return"const"in this.schema?this.schema.const:this.schema.enum&&1===this.schema.enum.length?this.schema.enum[0]:this.modelValue}},mounted(){this.resolvedValue!==this.modelValue&&this.$emit("update:modelValue",this.resolvedValue)},methods:{getValue(){return this.resolvedValue}}};const Bi={style:{display:"none"}};Wi.render=function(e,t,n,o,r,s){return Gr(),es("div",Bi)},Wi.__file="src/editors/HiddenEditor.vue";var Ki={name:"ObjectEditor",components:{SchemaEditor:to(()=>Promise.resolve().then(function(){return Ml}))},props:{schema:{type:Object,required:!0},modelValue:{default:()=>({})},path:{type:Array,default:()=>[]},form:{type:Object,required:!0}},emits:["update:modelValue"],computed:{isRoot(){return 0===this.path.length},title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",onChildChange(e,t){const n={...this.modelValue||{},[e]:t};this.$emit("update:modelValue",n)}}};const Ji={key:0,class:"sf-object sf-object-root"},Zi={class:"sf-object-fields"},Gi={key:1,class:"sf-object"},Yi={class:"sf-object-title"},Qi={class:"sf-object-fields"};function Xi(e){if(null===e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Xi);const t={};for(const n of Object.keys(e))t[n]=Xi(e[n]);return t}function el(e){if("default"in e)return Xi(e.default);if("object"===e.type){const t={};for(const[n,o]of Object.entries(e.properties||{}))"default"in o?t[n]=Xi(o.default):"string"===o.type?t[n]="":"integer"===o.type||"number"===o.type?t[n]=0:"boolean"===o.type?t[n]=!1:"array"===o.type&&(t[n]=[]);return t}return"array"===e.type?[]:"string"===e.type?"":"integer"===e.type||"number"===e.type?0:"boolean"!==e.type&&("relation"===e.type&&e.multiple?[]:null)}Ki.render=function(e,t,n,o,r,s){const i=No("SchemaEditor");return s.isRoot?(Gr(),es("div",Ji,[is("div",Zi,[(Gr(!0),es(zr,null,wo(n.schema.properties||{},(e,t)=>(Gr(),ts(i,{key:t,schema:n.form.resolveSchema(e),"model-value":(n.modelValue||{})[t],path:[...n.path,t],form:n.form,"onUpdate:modelValue":e=>s.onChildChange(t,e)},null,8,["schema","model-value","path","form","onUpdate:modelValue"]))),128))])])):(Gr(),es("fieldset",Gi,[is("legend",Yi,te(s.title),1),is("div",Qi,[(Gr(!0),es(zr,null,wo(n.schema.properties||{},(e,t)=>(Gr(),ts(i,{key:t,schema:n.form.resolveSchema(e),"model-value":(n.modelValue||{})[t],path:[...n.path,t],form:n.form,"onUpdate:modelValue":e=>s.onChildChange(t,e)},null,8,["schema","model-value","path","form","onUpdate:modelValue"]))),128))])]))},Ki.__file="src/editors/ObjectEditor.vue";let tl=0;var nl={name:"ArrayEditor",components:{SchemaEditor:to(()=>Promise.resolve().then(function(){return Ml}))},props:{schema:{type:Object,required:!0},modelValue:{default:()=>[]},path:{type:Array,default:()=>[]},form:{type:Object,required:!0}},emits:["update:modelValue"],data(){return{items:(Array.isArray(this.modelValue)?this.modelValue:[]).map(e=>({_key:tl++,value:e}))}},computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},itemSchema(){return this.form.resolveSchema(this.schema.items||{})},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",addItem(){const e=el(this.itemSchema);this.items.push({_key:tl++,value:e}),this.emitValue()},removeItem(e){this.items.splice(e,1),this.emitValue()},moveItem(e,t){const n=e+t;if(n<0||n>=this.items.length)return;const o=this.items[e];this.items.splice(e,1,this.items[n]),this.items.splice(n,1,o),this.emitValue()},onItemChange(e,t){this.items[e].value=t,this.emitValue()},emitValue(){this.$emit("update:modelValue",this.items.map(e=>e.value))}}};const ol={class:"sf-array-header"},rl={class:"sf-label"},sl={class:"sf-array-count"},il={class:"sf-array-items"},ll={class:"sf-array-item-header"},al={class:"sf-array-item-index"},cl={class:"sf-array-item-actions"},ul=["onClick"],pl=["onClick"],dl=["onClick"],fl={class:"sf-array-item-body"},hl={key:0,class:"errorlist"};nl.render=function(e,t,n,o,r,s){const i=No("SchemaEditor");return Gr(),es("div",{class:K(["sf-array",{errors:s.fieldErrors.length}])},[is("div",ol,[is("span",rl,te(s.title),1),is("span",sl,te(r.items.length),1),is("button",{type:"button",class:"sf-btn sf-btn-add",onClick:t[0]||(t[0]=e=>s.addItem())},[...t[1]||(t[1]=[is("i",{class:"fas fa-plus"},null,-1),ps(" Add ",-1)])])]),is("div",il,[(Gr(!0),es(zr,null,wo(r.items,(e,o)=>(Gr(),es("div",{key:e._key,class:"sf-array-item"},[is("div",ll,[is("span",al,"#"+te(o+1),1),is("div",cl,[o>0?(Gr(),es("button",{key:0,type:"button",class:"sf-btn sf-btn-sm",onClick:e=>s.moveItem(o,-1)},[...t[2]||(t[2]=[is("i",{class:"fas fa-arrow-up"},null,-1)])],8,ul)):ds("v-if",!0),is("button",{type:"button",class:"sf-btn sf-btn-sm",onClick:e=>s.moveItem(o,1)},[...t[3]||(t[3]=[is("i",{class:"fas fa-arrow-down"},null,-1)])],8,pl),is("button",{type:"button",class:"sf-btn sf-btn-sm sf-btn-danger",onClick:e=>s.removeItem(o)},[...t[4]||(t[4]=[is("i",{class:"fas fa-times"},null,-1)])],8,dl)])]),is("div",fl,[ls(i,{schema:s.itemSchema,"model-value":e.value,path:[...n.path,String(o)],form:n.form,"onUpdate:modelValue":e=>s.onItemChange(o,e)},null,8,["schema","model-value","path","form","onUpdate:modelValue"])])]))),128))]),s.fieldErrors.length?(Gr(),es("ul",hl,[(Gr(!0),es(zr,null,wo(s.fieldErrors,(e,t)=>(Gr(),es("li",{key:t},te(e),1))),128))])):ds("v-if",!0)],2)},nl.__file="src/editors/ArrayEditor.vue";var ml={name:"NullableEditor",components:{SchemaEditor:to(()=>Promise.resolve().then(function(){return Ml}))},props:{schema:{type:Object,required:!0},modelValue:{default:null},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],data(){return{isNull:null===this.modelValue||void 0===this.modelValue}},computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isRequired(){if(this.path.length<2||!this.form)return!1;const e=this.path.slice(0,-1),t=this.path[this.path.length-1],n=this.form.getSchemaAtPath(e);return n&&Array.isArray(n.required)&&n.required.includes(t)},innerSchema(){const e={...this.schema};return delete e._nullable,e},toggleClass(){return this.isNull?"sf-btn sf-btn-sm sf-btn-add":"sf-btn sf-btn-sm sf-btn-danger"},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},watch:{modelValue(e){this.isNull=null==e}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",toggle(){this.isNull?(this.isNull=!1,this.$emit("update:modelValue",el(this.innerSchema))):(this.isNull=!0,this.$emit("update:modelValue",null))}}};const vl={class:"sf-nullable-header"},_l={class:"sf-nullable-body"},gl={key:0,class:"errorlist"};ml.render=function(e,t,n,o,r,s){const i=No("SchemaEditor");return Gr(),es("div",{class:K(["sf-nullable",{errors:s.fieldErrors.length}])},[is("div",vl,[is("label",{class:K(["sf-label",{required:s.isRequired}])},te(s.title),3),is("button",{type:"button",class:K(s.toggleClass),onClick:t[0]||(t[0]=(...e)=>s.toggle&&s.toggle(...e))},[r.isNull?(Gr(),es(zr,{key:0},[t[2]||(t[2]=is("i",{class:"fas fa-plus"},null,-1)),t[3]||(t[3]=ps(" Add ",-1))],64)):(Gr(),es(zr,{key:1},[t[4]||(t[4]=is("i",{class:"fas fa-times"},null,-1)),t[5]||(t[5]=ps(" Remove ",-1))],64))],2)]),is("div",_l,[r.isNull?ds("v-if",!0):(Gr(),ts(i,{key:0,schema:s.innerSchema,"model-value":n.modelValue,path:n.path,form:n.form,"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:modelValue",t))},null,8,["schema","model-value","path","form"]))]),s.fieldErrors.length?(Gr(),es("ul",gl,[(Gr(!0),es(zr,null,wo(s.fieldErrors,(e,t)=>(Gr(),es("li",{key:t},te(e),1))),128))])):ds("v-if",!0)],2)},ml.__file="src/editors/NullableEditor.vue";var yl={name:"UnionEditor",components:{SchemaEditor:to(()=>Promise.resolve().then(function(){return Ml}))},props:{schema:{type:Object,required:!0},modelValue:{default:null},path:{type:Array,default:()=>[]},form:{type:Object,required:!0}},emits:["update:modelValue"],data(){const e=this.schema.discriminator.propertyName,t=this.schema.discriminator.mapping;return{discriminatorProp:e,mapping:t,currentType:this.modelValue?this.modelValue[e]:Object.keys(t)[0]}},computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},typeKeys(){return Object.keys(this.mapping)},currentSchema(){const e=this.mapping[this.currentType];return this.form.resolveSchema({$ref:e})},innerValue(){if(this.modelValue&&this.modelValue[this.discriminatorProp]===this.currentType)return this.modelValue;const e=el(this.currentSchema);return e[this.discriminatorProp]=this.currentType,e}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",onTypeChange(e){this.currentType=e.target.value;const t=el(this.currentSchema);t[this.discriminatorProp]=this.currentType,this.$emit("update:modelValue",t)},onInnerChange(e){e&&(e[this.discriminatorProp]=this.currentType),this.$emit("update:modelValue",e)}}};const El={class:"sf-union"},bl={class:"sf-field"},Nl={class:"sf-label"},Ol=["value"],Vl=["value"],Dl={class:"sf-union-body"};yl.render=function(e,t,n,o,r,s){const i=No("SchemaEditor");return Gr(),es("div",El,[is("div",bl,[is("label",Nl,te(s.title),1),is("select",{class:"sf-input sf-select",value:r.currentType,onChange:t[0]||(t[0]=(...e)=>s.onTypeChange&&s.onTypeChange(...e))},[(Gr(!0),es(zr,null,wo(s.typeKeys,e=>(Gr(),es("option",{key:e,value:e},te(s.humanize(e)),9,Vl))),128))],40,Ol)]),is("div",Dl,[(Gr(),ts(i,{key:r.currentType,schema:s.currentSchema,"model-value":s.innerValue,path:n.path,form:n.form,"onUpdate:modelValue":s.onInnerChange},null,8,["schema","model-value","path","form","onUpdate:modelValue"]))])])},yl.__file="src/editors/UnionEditor.vue";var wl={name:"RelationEditor",props:{schema:{type:Object,required:!0},modelValue:{default:null},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],data(){const e=!!this.schema.multiple,t=this.modelValue;let n;return n=e?Array.isArray(t)?[...t]:[]:t?[t]:[],{isMultiple:e,allowClear:this.schema.options?.select2?.allowClear??!0,placeholder:this.schema.options?.select2?.placeholder||"Search...",searchUrl:this.schema.options?.select2?.ajax?.url||"",selected:n,dropdownVisible:!1,searchResults:[],currentPage:1,hasMore:!1,loading:!1,highlightIndex:-1,searchQuery:""}},computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isRequired(){if(this.path.length<2||!this.form)return!1;const e=this.path.slice(0,-1),t=this.path[this.path.length-1],n=this.form.getSchemaAtPath(e);return n&&Array.isArray(n.required)&&n.required.includes(t)},showSearch(){return!(!this.isMultiple&&this.selected.length>0)},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]},filteredResults(){const e=new Set(this.selected.map(e=>`${e.id}-${e.model||""}`));return this.searchResults.filter(t=>!e.has(`${t.id}-${t.model||""}`))}},created(){this._doSearch=function(e,t){let n;return function(...o){clearTimeout(n),n=setTimeout(()=>e.apply(this,o),t)}}(e=>this.fetchResults(e,1),300),this._onDocClick=e=>{this.$refs.root&&!this.$refs.root.contains(e.target)&&this.closeDropdown()}},mounted(){document.addEventListener("click",this._onDocClick)},beforeUnmount(){document.removeEventListener("click",this._onDocClick)},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",getDisplayName(e){if(!e)return"";for(const t of["__str__","name","title","label"])if(e[t])return String(e[t]);return`#${e.id||"?"}`},itemKey:e=>`${e.id}-${e.model||""}`,onSearchInput(){this._doSearch(this.searchQuery)},openDropdown(){this.dropdownVisible||(this.dropdownVisible=!0,this.fetchResults(this.searchQuery,1))},closeDropdown(){this.dropdownVisible=!1,this.highlightIndex=-1},async fetchResults(e,t){if(this.searchUrl){this.loading=!0,this.currentPage=t;try{const n=new URL(this.searchUrl,window.location.origin);n.searchParams.set("_q",e||""),n.searchParams.set("page",String(t));const o=await fetch(n,{credentials:"same-origin"});if(!o.ok)return;const r=await o.json();this.searchResults=1===t?r.items||[]:this.searchResults.concat(r.items||[]),this.hasMore=r.more}finally{this.loading=!1}}},handleKeyDown(e){this.filteredResults.length&&("ArrowDown"===e.key?(e.preventDefault(),this.highlightIndex=Math.min(this.highlightIndex+1,this.filteredResults.length-1)):"ArrowUp"===e.key?(e.preventDefault(),this.highlightIndex=Math.max(this.highlightIndex-1,0)):"Enter"===e.key?(e.preventDefault(),this.highlightIndex>=0&&this.highlightIndex<this.filteredResults.length&&this.selectItem(this.filteredResults[this.highlightIndex])):"Escape"===e.key&&this.closeDropdown())},selectItem(e){this.isMultiple?this.selected.push(e):this.selected=[e],this.searchQuery="",this.highlightIndex=-1,this.closeDropdown(),this.emitValue()},removeItem(e){this.selected=this.selected.filter(t=>!(t.id===e.id&&(t.model||"")===(e.model||""))),this.emitValue()},emitValue(){this.isMultiple?this.$emit("update:modelValue",[...this.selected]):this.$emit("update:modelValue",this.selected[0]||null)}}};const Sl={class:"sf-relation-wrapper"},xl={key:0,class:"sf-relation-selected"},kl={class:"sf-relation-tag-text"},Cl=["onClick"],$l={class:"sf-relation-search"},Pl=["placeholder"],Al={class:"sf-relation-dropdown"},jl={key:0,class:"sf-relation-dropdown-empty"},Tl=["onClick"],Il={key:0,class:"errorlist"};wl.render=function(e,t,n,o,r,s){return Gr(),es("div",{class:K(["sf-field sf-relation",{errors:s.fieldErrors.length}]),ref:"root"},[is("label",{class:K(["sf-label",{required:s.isRequired}])},te(s.title),3),is("div",Sl,[ds(" Selected items "),r.selected.length?(Gr(),es("div",xl,[(Gr(!0),es(zr,null,wo(r.selected,e=>(Gr(),es("div",{key:s.itemKey(e),class:"sf-relation-tag"},[is("span",kl,te(s.getDisplayName(e)),1),r.isMultiple||r.allowClear?(Gr(),es("button",{key:0,type:"button",class:"sf-relation-tag-remove",onClick:Si(t=>s.removeItem(e),["stop"])},[...t[5]||(t[5]=[is("i",{class:"fas fa-times"},null,-1)])],8,Cl)):ds("v-if",!0)]))),128))])):ds("v-if",!0),ds(" Search box "),In(is("div",$l,[In(is("input",{ref:"searchInput",type:"text",class:"sf-input sf-relation-input",placeholder:r.placeholder,autocomplete:"off","onUpdate:modelValue":t[0]||(t[0]=e=>r.searchQuery=e),onInput:t[1]||(t[1]=(...e)=>s.onSearchInput&&s.onSearchInput(...e)),onFocus:t[2]||(t[2]=(...e)=>s.openDropdown&&s.openDropdown(...e)),onKeydown:t[3]||(t[3]=(...e)=>s.handleKeyDown&&s.handleKeyDown(...e))},null,40,Pl),[[Vi,r.searchQuery]]),ds(" Dropdown "),In(is("div",Al,[0!==s.filteredResults.length||r.loading?ds("v-if",!0):(Gr(),es("div",jl," No results found ")),(Gr(!0),es(zr,null,wo(s.filteredResults,(e,t)=>(Gr(),es("div",{key:s.itemKey(e),class:K(["sf-relation-dropdown-item",{highlighted:t===r.highlightIndex}]),onClick:t=>s.selectItem(e)},te(s.getDisplayName(e)),11,Tl))),128)),r.hasMore?(Gr(),es("div",{key:1,class:"sf-relation-dropdown-more",onClick:t[4]||(t[4]=e=>s.fetchResults(r.searchQuery,r.currentPage+1))}," Load more... ")):ds("v-if",!0)],512),[[Qs,r.dropdownVisible]])],512),[[Qs,s.showSearch]])]),s.fieldErrors.length?(Gr(),es("ul",Il,[(Gr(!0),es(zr,null,wo(s.fieldErrors,(e,t)=>(Gr(),es("li",{key:t},te(e),1))),128))])):ds("v-if",!0)],2)},wl.__file="src/editors/RelationEditor.vue";var Rl={name:"SchemaEditor",components:{StringEditor:t,NumberEditor:ji,BooleanEditor:Ri,SelectEditor:Li,HiddenEditor:Wi,ObjectEditor:Ki,ArrayEditor:nl,NullableEditor:ml,UnionEditor:yl,RelationEditor:wl},props:{schema:{type:Object,required:!0},modelValue:{default:void 0},path:{type:Array,default:()=>[]},form:{type:Object,required:!0}},emits:["update:modelValue"],computed:{editorComponent(){const e=this.schema;return this.path.length>12?"StringEditor":"relation"===e.type?"RelationEditor":e.oneOf&&e.discriminator?"UnionEditor":"const"in e||e.enum&&1===e.enum.length&&"string"===e.type?"HiddenEditor":e._nullable?"NullableEditor":"object"===e.type&&e.properties?"ObjectEditor":"array"===e.type?"ArrayEditor":e.enum?"SelectEditor":"boolean"===e.type?"BooleanEditor":"number"===e.type||"integer"===e.type?"NumberEditor":"StringEditor"}}};Rl.render=function(e,t,n,o,r,s){return Gr(),ts((i=s.editorComponent,g(i)?Vo(bo,i,!1)||i:i||Oo),{schema:n.schema,"model-value":n.modelValue,path:n.path,form:n.form,"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:modelValue",t))},null,8,["schema","model-value","path","form"]);var i},Rl.__file="src/editors/SchemaEditor.vue";var Ml=Object.freeze({__proto__:null,default:Rl}),Fl={name:"SchemaForm",components:{SchemaEditor:Rl},props:{schema:{type:[Object,String],default:()=>({})},initialData:{default:void 0},errors:{type:Object,default:()=>({})}},emits:["change"],data(){const e="string"==typeof this.schema?JSON.parse(this.schema):this.schema;return{rootSchema:e,defs:e.$defs||e.definitions||{},currentValue:null!=this.initialData?Xi(this.initialData):void 0}},computed:{resolvedSchema(){return this.resolveSchema(this.rootSchema)},formApi(){return{resolveSchema:e=>this.resolveSchema(e),getSchemaAtPath:e=>this.getSchemaAtPath(e),getErrorsForPath:e=>this.getErrorsForPath(e)}}},watch:{schema:{handler(e){const t="string"==typeof e?JSON.parse(e):e;this.rootSchema=t,this.defs=t.$defs||t.definitions||{}},deep:!0},initialData:{handler(e){this.currentValue=null!=e?Xi(e):void 0},deep:!0}},methods:{resolveSchema(e){if(!e)return{type:"string"};if(e.$ref){const t=e.$ref.replace(/^#\/\$defs\//,"").replace(/^#\/definitions\//,""),n=this.defs[t];if(!n)return{type:"string",title:t};const{$ref:o,...r}=e;return{...this.resolveSchema(n),...r}}if(e.anyOf){const t=e.anyOf.filter(e=>"null"!==e.type);if(e.anyOf.some(e=>"null"===e.type)&&1===t.length){const n=this.resolveSchema(t[0]);return{...n,_nullable:!0,title:e.title||n.title,default:"default"in e?e.default:null}}if(t.length>=1)return this.resolveSchema(t[0])}if(e.oneOf&&e.discriminator)return e;if(e.oneOf){const t=e.oneOf.filter(e=>"null"!==e.type);if(e.oneOf.some(e=>"null"===e.type)&&1===t.length){const n=this.resolveSchema(t[0]);return{...n,_nullable:!0,title:e.title||n.title,default:"default"in e?e.default:null}}if(t.length>=1)return this.resolveSchema(t[0])}return e},getSchemaAtPath(e){let t=this.resolveSchema(this.rootSchema);for(const n of e){if(!t)return null;if(t.properties&&t.properties[n])t=this.resolveSchema(t.properties[n]);else{if(!t.items)return null;t=this.resolveSchema(t.items)}}return t},onValueChange(e){this.currentValue=e,this.$emit("change",e)},getErrorsForPath(e){if(!this.errors||"object"!=typeof this.errors)return[];const t=e.join(".");return this.errors[t]||[]},getValue(){return this.currentValue}}};const Ul={class:"structured-field-editor"};Fl.render=function(e,t,n,o,r,s){const i=No("SchemaEditor");return Gr(),es("div",Ul,[s.resolvedSchema?(Gr(),ts(i,{key:0,schema:s.resolvedSchema,"model-value":r.currentValue,path:[],form:s.formApi,"onUpdate:modelValue":s.onValueChange},null,8,["schema","model-value","form","onUpdate:modelValue"])):ds("v-if",!0)])},Fl.__file="src/SchemaForm.vue";class Ll extends HTMLElement{constructor(){super(),this._formRef=kt(null),this._props=_t({schema:{},initialData:void 0,errors:{}}),this._app=null,this._mountPoint=null}connectedCallback(){if(this._mountPoint=document.createElement("div"),this.appendChild(this._mountPoint),!this._propsSet){const e=this.getAttribute("schema"),t=this.getAttribute("initial-data");e&&(this._props.schema=JSON.parse(e)),t&&(this._props.initialData=JSON.parse(t))}const e=this._formRef,t=this._props;this._app=Ci({render:()=>Us(Fl,{ref:e,schema:t.schema,initialData:t.initialData,errors:t.errors,onChange:e=>{this.dispatchEvent(new CustomEvent("change",{detail:e,bubbles:!0}))}})}),this._app.mount(this._mountPoint)}disconnectedCallback(){this._app&&(this._app.unmount(),this._app=null),this._mountPoint=null}get schema(){return this._props.schema}set schema(e){this._propsSet=!0,this._props.schema="string"==typeof e?JSON.parse(e):e,this._rerender()}get initialData(){return this._props.initialData}set initialData(e){this._propsSet=!0,this._props.initialData="string"==typeof e?JSON.parse(e):e,this._rerender()}get errors(){return this._props.errors}set errors(e){this._propsSet=!0,this._props.errors="string"==typeof e?JSON.parse(e):e||{},this._rerender()}static get observedAttributes(){return["schema","initial-data","errors"]}attributeChangedCallback(e,t,n){t===n||this._propsSet||("schema"===e?this._props.schema=n?JSON.parse(n):{}:"initial-data"===e?this._props.initialData=n?JSON.parse(n):void 0:"errors"===e&&(this._props.errors=n?JSON.parse(n):{}),this._rerender())}getValue(){return this._formRef.value?.getValue?.()??null}_rerender(){if(!this._app)return;this._app.unmount(),this._mountPoint.innerHTML="";const e=this._formRef,t=this._props;this._app=Ci({render:()=>Us(Fl,{ref:e,schema:t.schema,initialData:t.initialData,errors:t.errors,onChange:e=>{this.dispatchEvent(new CustomEvent("change",{detail:e,bubbles:!0}))}})}),this._app.mount(this._mountPoint)}}return e.ArrayEditor=nl,e.BooleanEditor=Ri,e.HiddenEditor=Wi,e.NullableEditor=ml,e.NumberEditor=ji,e.ObjectEditor=Ki,e.RelationEditor=wl,e.SchemaEditor=Rl,e.SchemaForm=Fl,e.SchemaFormElement=Ll,e.SelectEditor=Li,e.StringEditor=t,e.UnionEditor=yl,e.registerCustomElement=function(e="schema-form"){customElements.get(e)||customElements.define(e,Ll)},e}({});
|
|
25
|
+
let wr;const Cr="undefined"!=typeof window&&window.trustedTypes;if(Cr)try{wr=Cr.createPolicy("vue",{createHTML:e=>e})}catch(e){}const Vr=wr?e=>wr.createHTML(e):e=>e,Ar="undefined"!=typeof document?document:null,Or=Ar&&Ar.createElement("template"),Pr={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r="svg"===t?Ar.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Ar.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?Ar.createElement(e,{is:n}):Ar.createElement(e);return"select"===e&&s&&null!=s.multiple&&r.setAttribute("multiple",s.multiple),r},createText:e=>Ar.createTextNode(e),createComment:e=>Ar.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ar.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==i&&(r=r.nextSibling););else{Or.innerHTML=Vr("svg"===s?`<svg>${e}</svg>`:"mathml"===s?`<math>${e}</math>`:e);const r=Or.content;if("svg"===s||"mathml"===s){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},jr=Symbol("_vtc");const Rr=Symbol("_vod"),$r=Symbol("_vsh"),Tr={name:"show",beforeMount(e,{value:t},{transition:n}){e[Rr]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Fr(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Fr(e,!0),s.enter(e)):s.leave(e,()=>{Fr(e,!1)}):Fr(e,t))},beforeUnmount(e,{value:t}){Fr(e,t)}};function Fr(e,t){e.style.display=t?e[Rr]:"none",e[$r]=!t}const Ir=Symbol(""),Mr=/(?:^|;)\s*display\s*:/;const Nr=/\s*!important$/;function Dr(e,t,n){if(p(n))n.forEach(n=>Dr(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=function(e,t){const n=Lr[t];if(n)return n;let s=O(t);if("filter"!==s&&s in e)return Lr[t]=s;s=R(s);for(let n=0;n<Ur.length;n++){const r=Ur[n]+s;if(r in e)return Lr[t]=r}return t}(e,t);Nr.test(n)?e.setProperty(j(s),n.replace(Nr,""),"important"):e[s]=n}}const Ur=["Webkit","Moz","ms"],Lr={};const qr="http://www.w3.org/1999/xlink";function zr(e,t,n,s,r,i=K(t)){s&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(qr,t.slice(6,t.length)):e.setAttributeNS(qr,t,n):null==n||i&&!Z(n)?e.removeAttribute(t):e.setAttribute(t,i?"":_(n)?String(n):n)}function Wr(e,t,n,s,r){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?Vr(n):n));const i=e.tagName;if("value"===t&&"PROGRESS"!==i&&!i.includes("-")){const s="OPTION"===i?e.getAttribute("value")||"":e.value,r=null==n?"checkbox"===e.type?"on":"":String(n);return s===r&&"_value"in e||(e.value=r),null==n&&e.removeAttribute(t),void(e._value=n)}let o=!1;if(""===n||null==n){const s=typeof e[t];"boolean"===s?n=Z(n):null==n&&"string"===s?(n="",o=!0):"number"===s&&(n=0,o=!0)}try{e[t]=n}catch(e){}o&&e.removeAttribute(r||t)}function Br(e,t,n,s){e.addEventListener(t,n,s)}const Hr=Symbol("_vei");function Kr(e,t,n,s,r=null){const i=e[Hr]||(e[Hr]={}),o=i[t];if(s&&o)o.value=s;else{const[n,l]=function(e){let t;if(Zr.test(e)){let n;for(t={};n=e.match(Zr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):j(e.slice(2));return[n,t]}(t);if(s){const o=i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();jt(function(e,t){if(p(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Gr(),n}(s,r);Br(e,n,o,l)}else o&&(!function(e,t,n,s){e.removeEventListener(t,n,s)}(e,n,o,l),i[t]=void 0)}}const Zr=/(?:Once|Passive|Capture)$/;let Qr=0;const Jr=Promise.resolve(),Gr=()=>Qr||(Jr.then(()=>Qr=0),Qr=Date.now());const Xr=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;const Yr={};const ei="undefined"!=typeof HTMLElement?HTMLElement:class{};class ti extends ei{constructor(e,t={},n=mi){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==mi?this._root=this.shadowRoot:!1!==e.shadowRoot?(this.attachShadow(c({},e.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._resolved||this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.assignedSlot||e.parentNode||e.host);)if(e instanceof ti){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,Ut(()=>{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,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(e){for(const t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:n,styles:s}=e;let r;if(n&&!p(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=N(this._props[e])),(r||(r=Object.create(null)))[O(e)]=!0)}this._numberProps=r,this._resolveProps(e),this.shadowRoot&&this._applyStyles(s),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const t=this._instance&&this._instance.exposed;if(t)for(const e in t)d(this,e)||Object.defineProperty(this,e,{get:()=>St(t[e])})}_resolveProps(e){const{props:t}=e,n=p(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e]);for(const e of n.map(O))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const t=this.hasAttribute(e);let n=t?this.getAttribute(e):Yr;const s=O(e);t&&this._numberProps&&this._numberProps[s]&&(n=N(n)),this._setProp(s,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,s=!1){if(t!==this._props[e]&&(this._dirty=!0,t===Yr?delete this._props[e]:(this._props[e]=t,"key"===e&&this._app&&(this._app._ceVNode.key=t)),s&&this._instance&&this._update(),n)){const n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),!0===t?this.setAttribute(j(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(j(e),t+""):t||this.removeAttribute(j(e)),n&&n.observe(this,{attributes:!0})}}_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),fi(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const t=er(this._def,c(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,E(t[0])?c({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),j(e)!==e&&t(j(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}const s=this._nonce,r=this.shadowRoot,i=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(r);let o=null;for(let l=e.length-1;l>=0;l--){const a=document.createElement("style");s&&a.setAttribute("nonce",s),a.textContent=e[l],r.insertBefore(a,o||i),o=a,0===l&&(n||this._styleAnchors.set(this._def,a),t&&this._styleAnchors.set(t,a))}}_getStyleAnchor(e){if(!e)return null;const t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){const e=this._slots={};let t;for(;t=this.firstChild;){const n=1===t.nodeType&&t.getAttribute("slot")||"default";(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){const e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){const s=e[n],r=s.getAttribute("name")||"default",i=this._slots[r],o=s.parentNode;if(i)for(const e of i){if(t&&1===e.nodeType){const n=t+"-s",s=document.createTreeWalker(e,1);let r;for(e.setAttribute(n,"");r=s.nextNode();)r.setAttribute(n,"")}o.insertBefore(e,s)}else for(;s.firstChild;)o.insertBefore(s.firstChild,s);o.removeChild(s)}}_getSlots(){const e=[this];this._teleportTargets&&e.push(...this._teleportTargets);const t=new Set;for(const n of e){const e=n.querySelectorAll("slot");for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return!1!==this._def.shadowRoot}_removeChildStyle(e){}}const ni=e=>{const t=e.props["onUpdate:modelValue"]||!1;return p(t)?e=>F(t,e):t};function si(e){e.target.composing=!0}function ri(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ii=Symbol("_assign");function oi(e,t,n){return t&&(e=e.trim()),n&&(e=M(e)),e}const li={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[ii]=ni(r);const i=s||r.props&&"number"===r.props.type;Br(e,t?"change":"input",t=>{t.target.composing||e[ii](oi(e.value,n,i))}),(n||i)&&Br(e,"change",()=>{e.value=oi(e.value,n,i)}),t||(Br(e,"compositionstart",si),Br(e,"compositionend",ri),Br(e,"change",ri))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(e[ii]=ni(o),e.composing)return;const l=null==t?"":t;if((!i&&"number"!==e.type||/^0\d/.test(e.value)?e.value:M(e.value))!==l){if(document.activeElement===e&&"range"!==e.type){if(s&&t===n)return;if(r&&e.value.trim()===l)return}e.value=l}}},ai=["ctrl","shift","alt","meta"],ci={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>ai.some(n=>e[`${n}Key`]&&!t.includes(n))},ui=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(n,...s)=>{for(let e=0;e<t.length;e++){const s=ci[t[e]];if(s&&s(n,t))return}return e(n,...s)})},hi=c({patchProp:(e,t,n,s,r,i)=>{const o="svg"===r;"class"===t?function(e,t,n){const s=e[jr];s&&(t=(t?[t,...s]:[...s]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,s,o):"style"===t?function(e,t,n){const s=e.style,r=y(n);let i=!1;if(n&&!r){if(t)if(y(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Dr(s,t,"")}else for(const e in t)null==n[e]&&Dr(s,e,"");for(const e in n)"display"===e&&(i=!0),Dr(s,e,n[e])}else if(r){if(t!==n){const e=s[Ir];e&&(n+=";"+e),s.cssText=n,i=Mr.test(n)}}else t&&e.removeAttribute("style");Rr in e&&(e[Rr]=i?s.display:"",e[$r]&&(s.display="none"))}(e,n,s):l(t)?a(t)||Kr(e,t,0,s,i):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,s){if(s)return"innerHTML"===t||"textContent"===t||!!(t in e&&Xr(t)&&v(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("sandbox"===t&&"IFRAME"===e.tagName)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(Xr(t)&&y(n))return!1;return t in e}(e,t,s,o))?(Wr(e,t,s),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||zr(e,t,s,o,0,"value"!==t)):e._isVueCE&&(function(e,t){const n=e._def.props;if(!n)return!1;const s=O(t);return Array.isArray(n)?n.some(e=>O(e)===s):Object.keys(n).some(e=>O(e)===s)}(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!y(s)))?Wr(e,O(t),s,0,t):("true-value"===t?e._trueValue=s:"false-value"===t&&(e._falseValue=s),zr(e,t,s,o))}},Pr);let di;function pi(){return di||(di=Os(hi))}const fi=(...e)=>{pi().render(...e)},mi=(...e)=>{const t=pi().createApp(...e),{mount:n}=t;return t.mount=e=>{const s=function(e){if(y(e)){return document.querySelector(e)}return e}(e);if(!s)return;const r=t._component;v(r)||r.render||r.template||(r.template=s.innerHTML),1===s.nodeType&&(s.textContent="");const i=n(s,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t};const gi=["value","placeholder"],vi=["value","placeholder"],yi={key:2,class:"errorlist"};t.render=function(e,t,n,s,r,i){return zs(),Ks("div",{class:H(["sf-field",{errors:i.fieldErrors.length}])},[Ys("label",{class:H(["sf-label",{required:i.isRequired}])},G(i.title),3),i.isLong?(zs(),Ks("textarea",{key:0,class:"sf-input sf-textarea",rows:"3",value:n.modelValue,placeholder:n.schema.placeholder||"",onInput:t[0]||(t[0]=t=>e.$emit("update:modelValue",t.target.value))},null,40,gi)):(zs(),Ks("input",{key:1,type:"text",class:"sf-input",value:null!=n.modelValue?String(n.modelValue):"",placeholder:n.schema.placeholder||"",onInput:t[1]||(t[1]=t=>e.$emit("update:modelValue",t.target.value))},null,40,vi)),i.fieldErrors.length?(zs(),Ks("ul",yi,[(zs(!0),Ks(Ms,null,In(i.fieldErrors,(e,t)=>(zs(),Ks("li",{key:t},G(e),1))),128))])):sr("v-if",!0)],2)},t.__file="src/editors/StringEditor.vue";var _i={name:"NumberEditor",props:{schema:{type:Object,required:!0},modelValue:{default:0},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isRequired(){if(this.path.length<2||!this.form)return!1;const e=this.path.slice(0,-1),t=this.path[this.path.length-1],n=this.form.getSchemaAtPath(e);return n&&Array.isArray(n.required)&&n.required.includes(t)},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",onInput(e){const t=e.target.value;""===t?this.$emit("update:modelValue",0):this.$emit("update:modelValue","integer"===this.schema.type?parseInt(t,10):parseFloat(t))}}};const bi=["step","min","max","value"],Si={key:0,class:"errorlist"};_i.render=function(e,t,n,s,r,i){return zs(),Ks("div",{class:H(["sf-field",{errors:i.fieldErrors.length}])},[Ys("label",{class:H(["sf-label",{required:i.isRequired}])},G(i.title),3),Ys("input",{type:"number",class:"sf-input",step:"integer"===n.schema.type?"1":"any",min:null!=n.schema.minimum?String(n.schema.minimum):void 0,max:null!=n.schema.maximum?String(n.schema.maximum):void 0,value:null!=n.modelValue?n.modelValue:"",onInput:t[0]||(t[0]=(...e)=>i.onInput&&i.onInput(...e))},null,40,bi),i.fieldErrors.length?(zs(),Ks("ul",Si,[(zs(!0),Ks(Ms,null,In(i.fieldErrors,(e,t)=>(zs(),Ks("li",{key:t},G(e),1))),128))])):sr("v-if",!0)],2)},_i.__file="src/editors/NumberEditor.vue";var xi={name:"BooleanEditor",props:{schema:{type:Object,required:!0},modelValue:{default:!1},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):""}};const ki={class:"sf-checkbox-label"},Ei=["checked"],wi={key:0,class:"errorlist"};xi.render=function(e,t,n,s,r,i){return zs(),Ks("div",{class:H(["sf-field sf-field-boolean",{errors:i.fieldErrors.length}])},[Ys("label",ki,[Ys("input",{type:"checkbox",class:"sf-checkbox",checked:!!n.modelValue,onChange:t[0]||(t[0]=t=>e.$emit("update:modelValue",t.target.checked))},null,40,Ei),nr(" "+G(i.title),1)]),i.fieldErrors.length?(zs(),Ks("ul",wi,[(zs(!0),Ks(Ms,null,In(i.fieldErrors,(e,t)=>(zs(),Ks("li",{key:t},G(e),1))),128))])):sr("v-if",!0)],2)},xi.__file="src/editors/BooleanEditor.vue";var Ci={name:"SelectEditor",props:{schema:{type:Object,required:!0},modelValue:{default:""},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isRequired(){if(this.path.length<2||!this.form)return!1;const e=this.path.slice(0,-1),t=this.path[this.path.length-1],n=this.form.getSchemaAtPath(e);return n&&Array.isArray(n.required)&&n.required.includes(t)},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):""}};const Vi=["value"],Ai=["value"],Oi={key:0,class:"errorlist"};Ci.render=function(e,t,n,s,r,i){return zs(),Ks("div",{class:H(["sf-field",{errors:i.fieldErrors.length}])},[Ys("label",{class:H(["sf-label",{required:i.isRequired}])},G(i.title),3),Ys("select",{class:"sf-input sf-select",value:null!=n.modelValue?String(n.modelValue):"",onChange:t[0]||(t[0]=t=>e.$emit("update:modelValue",t.target.value))},[(zs(!0),Ks(Ms,null,In(n.schema.enum||[],e=>(zs(),Ks("option",{key:e,value:String(e)},G(e),9,Ai))),128))],40,Vi),i.fieldErrors.length?(zs(),Ks("ul",Oi,[(zs(!0),Ks(Ms,null,In(i.fieldErrors,(e,t)=>(zs(),Ks("li",{key:t},G(e),1))),128))])):sr("v-if",!0)],2)},Ci.__file="src/editors/SelectEditor.vue";var Pi={name:"HiddenEditor",props:{schema:{type:Object,required:!0},modelValue:{default:null},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],computed:{resolvedValue(){return"const"in this.schema?this.schema.const:this.schema.enum&&1===this.schema.enum.length?this.schema.enum[0]:this.modelValue}},mounted(){this.resolvedValue!==this.modelValue&&this.$emit("update:modelValue",this.resolvedValue)},methods:{getValue(){return this.resolvedValue}}};const ji={style:{display:"none"}};Pi.render=function(e,t,n,s,r,i){return zs(),Ks("div",ji)},Pi.__file="src/editors/HiddenEditor.vue";var Ri={name:"ObjectEditor",beforeCreate(){this.$options.components||(this.$options.components={}),this.$options.components.SchemaEditor=ko},props:{schema:{type:Object,required:!0},modelValue:{default:()=>({})},path:{type:Array,default:()=>[]},form:{type:Object,required:!0}},emits:["update:modelValue"],computed:{isRoot(){return 0===this.path.length},title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",onChildChange(e,t){const n={...this.modelValue||{},[e]:t};this.$emit("update:modelValue",n)}}};const $i={key:0,class:"sf-object sf-object-root"},Ti={class:"sf-object-fields"},Fi={key:1,class:"sf-object"},Ii={class:"sf-object-title"},Mi={class:"sf-object-fields"};function Ni(e){if(null===e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Ni);const t={};for(const n of Object.keys(e))t[n]=Ni(e[n]);return t}function Di(e){if("default"in e)return Ni(e.default);if("object"===e.type){const t={};for(const[n,s]of Object.entries(e.properties||{}))"default"in s?t[n]=Ni(s.default):"string"===s.type?t[n]="":"integer"===s.type||"number"===s.type?t[n]=0:"boolean"===s.type?t[n]=!1:"array"===s.type&&(t[n]=[]);return t}return"array"===e.type?[]:"string"===e.type?"":"integer"===e.type||"number"===e.type?0:"boolean"!==e.type&&("relation"===e.type&&e.multiple?[]:null)}Ri.render=function(e,t,n,s,r,i){const o=Rn("SchemaEditor");return i.isRoot?(zs(),Ks("div",$i,[Ys("div",Ti,[sr(' {{ schema.properties }}\n <span v-for="(propSchema, key) in schema.properties" :key="key">\n {{ key }}: {{ form.resolveSchema(propSchema) }}\n </span> '),(zs(!0),Ks(Ms,null,In(n.schema.properties||{},(e,t)=>(zs(),Zs(o,{key:t,schema:n.form.resolveSchema(e),"model-value":(n.modelValue||{})[t],path:[...n.path,t],form:n.form,"onUpdate:modelValue":e=>i.onChildChange(t,e)},null,8,["schema","model-value","path","form","onUpdate:modelValue"]))),128))])])):(zs(),Ks("fieldset",Fi,[Ys("legend",Ii,G(i.title),1),Ys("div",Mi,[(zs(!0),Ks(Ms,null,In(n.schema.properties||{},(e,t)=>(zs(),Zs(o,{key:t,schema:n.form.resolveSchema(e),"model-value":(n.modelValue||{})[t],path:[...n.path,t],form:n.form,"onUpdate:modelValue":e=>i.onChildChange(t,e)},null,8,["schema","model-value","path","form","onUpdate:modelValue"]))),128))])]))},Ri.__file="src/editors/ObjectEditor.vue";let Ui=0;var Li={name:"ArrayEditor",beforeCreate(){this.$options.components||(this.$options.components={}),this.$options.components.SchemaEditor=ko},props:{schema:{type:Object,required:!0},modelValue:{default:()=>[]},path:{type:Array,default:()=>[]},form:{type:Object,required:!0}},emits:["update:modelValue"],data(){return{items:(Array.isArray(this.modelValue)?this.modelValue:[]).map(e=>({_key:Ui++,value:e}))}},computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},itemSchema(){return this.form.resolveSchema(this.schema.items||{})},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",addItem(){const e=Di(this.itemSchema);this.items.push({_key:Ui++,value:e}),this.emitValue()},removeItem(e){this.items.splice(e,1),this.emitValue()},moveItem(e,t){const n=e+t;if(n<0||n>=this.items.length)return;const s=this.items[e];this.items.splice(e,1,this.items[n]),this.items.splice(n,1,s),this.emitValue()},onItemChange(e,t){this.items[e].value=t,this.emitValue()},emitValue(){this.$emit("update:modelValue",this.items.map(e=>e.value))}}};const qi={class:"sf-array-header"},zi={class:"sf-label"},Wi={class:"sf-array-count"},Bi={class:"sf-array-items"},Hi={class:"sf-array-item-header"},Ki={class:"sf-array-item-index"},Zi={class:"sf-array-item-actions"},Qi=["onClick"],Ji=["onClick"],Gi=["onClick"],Xi={class:"sf-array-item-body"},Yi={key:0,class:"errorlist"};Li.render=function(e,t,n,s,r,i){const o=Rn("SchemaEditor");return zs(),Ks("div",{class:H(["sf-array",{errors:i.fieldErrors.length}])},[Ys("div",qi,[Ys("span",zi,G(i.title),1),Ys("span",Wi,G(r.items.length),1),Ys("button",{type:"button",class:"sf-btn sf-btn-add",onClick:t[0]||(t[0]=e=>i.addItem())},[...t[1]||(t[1]=[Ys("i",{class:"fas fa-plus"},null,-1),nr(" Add ",-1)])])]),Ys("div",Bi,[(zs(!0),Ks(Ms,null,In(r.items,(e,s)=>(zs(),Ks("div",{key:e._key,class:"sf-array-item"},[Ys("div",Hi,[Ys("span",Ki,"#"+G(s+1),1),Ys("div",Zi,[s>0?(zs(),Ks("button",{key:0,type:"button",class:"sf-btn sf-btn-sm",onClick:e=>i.moveItem(s,-1)},[...t[2]||(t[2]=[Ys("i",{class:"fas fa-arrow-up"},null,-1)])],8,Qi)):sr("v-if",!0),Ys("button",{type:"button",class:"sf-btn sf-btn-sm",onClick:e=>i.moveItem(s,1)},[...t[3]||(t[3]=[Ys("i",{class:"fas fa-arrow-down"},null,-1)])],8,Ji),Ys("button",{type:"button",class:"sf-btn sf-btn-sm sf-btn-danger",onClick:e=>i.removeItem(s)},[...t[4]||(t[4]=[Ys("i",{class:"fas fa-times"},null,-1)])],8,Gi)])]),Ys("div",Xi,[er(o,{schema:i.itemSchema,"model-value":e.value,path:[...n.path,String(s)],form:n.form,"onUpdate:modelValue":e=>i.onItemChange(s,e)},null,8,["schema","model-value","path","form","onUpdate:modelValue"])])]))),128))]),i.fieldErrors.length?(zs(),Ks("ul",Yi,[(zs(!0),Ks(Ms,null,In(i.fieldErrors,(e,t)=>(zs(),Ks("li",{key:t},G(e),1))),128))])):sr("v-if",!0)],2)},Li.__file="src/editors/ArrayEditor.vue";var eo={name:"NullableEditor",beforeCreate(){this.$options.components||(this.$options.components={}),this.$options.components.SchemaEditor=ko},props:{schema:{type:Object,required:!0},modelValue:{default:null},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],data(){return{isNull:null===this.modelValue||void 0===this.modelValue}},computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isRequired(){if(this.path.length<2||!this.form)return!1;const e=this.path.slice(0,-1),t=this.path[this.path.length-1],n=this.form.getSchemaAtPath(e);return n&&Array.isArray(n.required)&&n.required.includes(t)},innerSchema(){const e={...this.schema};return delete e._nullable,e},toggleClass(){return this.isNull?"sf-btn sf-btn-sm sf-btn-add":"sf-btn sf-btn-sm sf-btn-danger"},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},watch:{modelValue(e){this.isNull=null==e}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",toggle(){this.isNull?(this.isNull=!1,this.$emit("update:modelValue",Di(this.innerSchema))):(this.isNull=!0,this.$emit("update:modelValue",null))}}};const to={class:"sf-nullable-header"},no={class:"sf-nullable-body"},so={key:0,class:"errorlist"};eo.render=function(e,t,n,s,r,i){const o=Rn("SchemaEditor");return zs(),Ks("div",{class:H(["sf-nullable",{errors:i.fieldErrors.length}])},[Ys("div",to,[Ys("label",{class:H(["sf-label",{required:i.isRequired}])},G(i.title),3),Ys("button",{type:"button",class:H(i.toggleClass),onClick:t[0]||(t[0]=(...e)=>i.toggle&&i.toggle(...e))},[r.isNull?(zs(),Ks(Ms,{key:0},[t[2]||(t[2]=Ys("i",{class:"fas fa-plus"},null,-1)),t[3]||(t[3]=nr(" Add ",-1))],64)):(zs(),Ks(Ms,{key:1},[t[4]||(t[4]=Ys("i",{class:"fas fa-times"},null,-1)),t[5]||(t[5]=nr(" Remove ",-1))],64))],2)]),Ys("div",no,[r.isNull?sr("v-if",!0):(zs(),Zs(o,{key:0,schema:i.innerSchema,"model-value":n.modelValue,path:n.path,form:n.form,"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:modelValue",t))},null,8,["schema","model-value","path","form"]))]),i.fieldErrors.length?(zs(),Ks("ul",so,[(zs(!0),Ks(Ms,null,In(i.fieldErrors,(e,t)=>(zs(),Ks("li",{key:t},G(e),1))),128))])):sr("v-if",!0)],2)},eo.__file="src/editors/NullableEditor.vue";var ro={name:"UnionEditor",beforeCreate(){this.$options.components||(this.$options.components={}),this.$options.components.SchemaEditor=ko},props:{schema:{type:Object,required:!0},modelValue:{default:null},path:{type:Array,default:()=>[]},form:{type:Object,required:!0}},emits:["update:modelValue"],data(){const e=this.schema.discriminator.propertyName,t=this.schema.discriminator.mapping;return{discriminatorProp:e,mapping:t,currentType:this.modelValue?this.modelValue[e]:Object.keys(t)[0]}},computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},typeKeys(){return Object.keys(this.mapping)},currentSchema(){const e=this.mapping[this.currentType];return this.form.resolveSchema({$ref:e})},innerValue(){if(this.modelValue&&this.modelValue[this.discriminatorProp]===this.currentType)return this.modelValue;const e=Di(this.currentSchema);return e[this.discriminatorProp]=this.currentType,e}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",onTypeChange(e){this.currentType=e.target.value;const t=Di(this.currentSchema);t[this.discriminatorProp]=this.currentType,this.$emit("update:modelValue",t)},onInnerChange(e){e&&(e[this.discriminatorProp]=this.currentType),this.$emit("update:modelValue",e)}}};const io={class:"sf-union"},oo={class:"sf-field"},lo={class:"sf-label"},ao=["value"],co=["value"],uo={class:"sf-union-body"};ro.render=function(e,t,n,s,r,i){const o=Rn("SchemaEditor");return zs(),Ks("div",io,[Ys("div",oo,[Ys("label",lo,G(i.title),1),Ys("select",{class:"sf-input sf-select",value:r.currentType,onChange:t[0]||(t[0]=(...e)=>i.onTypeChange&&i.onTypeChange(...e))},[(zs(!0),Ks(Ms,null,In(i.typeKeys,e=>(zs(),Ks("option",{key:e,value:e},G(i.humanize(e)),9,co))),128))],40,ao)]),Ys("div",uo,[(zs(),Zs(o,{key:r.currentType,schema:i.currentSchema,"model-value":i.innerValue,path:n.path,form:n.form,"onUpdate:modelValue":i.onInnerChange},null,8,["schema","model-value","path","form","onUpdate:modelValue"]))])])},ro.__file="src/editors/UnionEditor.vue";var ho={name:"RelationEditor",props:{schema:{type:Object,required:!0},modelValue:{default:null},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],data(){const e=!!this.schema.multiple,t=this.modelValue;let n;return n=e?Array.isArray(t)?[...t]:[]:t?[t]:[],{isMultiple:e,allowClear:this.schema.options?.select2?.allowClear??!0,placeholder:this.schema.options?.select2?.placeholder||"Search...",searchUrl:this.schema.options?.select2?.ajax?.url||"",selected:n,dropdownVisible:!1,searchResults:[],currentPage:1,hasMore:!1,loading:!1,highlightIndex:-1,searchQuery:""}},computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isRequired(){if(this.path.length<2||!this.form)return!1;const e=this.path.slice(0,-1),t=this.path[this.path.length-1],n=this.form.getSchemaAtPath(e);return n&&Array.isArray(n.required)&&n.required.includes(t)},showSearch(){return!(!this.isMultiple&&this.selected.length>0)},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]},filteredResults(){const e=new Set(this.selected.map(e=>`${e.id}-${e.model||""}`));return this.searchResults.filter(t=>!e.has(`${t.id}-${t.model||""}`))}},created(){this._doSearch=function(e,t){let n;return function(...s){clearTimeout(n),n=setTimeout(()=>e.apply(this,s),t)}}(e=>this.fetchResults(e,1),300),this._onDocClick=e=>{this.$refs.root&&!this.$refs.root.contains(e.target)&&this.closeDropdown()}},mounted(){document.addEventListener("click",this._onDocClick)},beforeUnmount(){document.removeEventListener("click",this._onDocClick)},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",getDisplayName(e){if(!e)return"";for(const t of["__str__","name","title","label"])if(e[t])return String(e[t]);return`#${e.id||"?"}`},itemKey:e=>`${e.id}-${e.model||""}`,onSearchInput(){this._doSearch(this.searchQuery)},openDropdown(){this.dropdownVisible||(this.dropdownVisible=!0,this.fetchResults(this.searchQuery,1))},closeDropdown(){this.dropdownVisible=!1,this.highlightIndex=-1},async fetchResults(e,t){if(this.searchUrl){this.loading=!0,this.currentPage=t;try{const n=new URL(this.searchUrl,window.location.origin);n.searchParams.set("_q",e||""),n.searchParams.set("page",String(t));const s=await fetch(n,{credentials:"same-origin"});if(!s.ok)return;const r=await s.json();this.searchResults=1===t?r.items||[]:this.searchResults.concat(r.items||[]),this.hasMore=r.more}finally{this.loading=!1}}},handleKeyDown(e){this.filteredResults.length&&("ArrowDown"===e.key?(e.preventDefault(),this.highlightIndex=Math.min(this.highlightIndex+1,this.filteredResults.length-1)):"ArrowUp"===e.key?(e.preventDefault(),this.highlightIndex=Math.max(this.highlightIndex-1,0)):"Enter"===e.key?(e.preventDefault(),this.highlightIndex>=0&&this.highlightIndex<this.filteredResults.length&&this.selectItem(this.filteredResults[this.highlightIndex])):"Escape"===e.key&&this.closeDropdown())},selectItem(e){this.isMultiple?this.selected.push(e):this.selected=[e],this.searchQuery="",this.highlightIndex=-1,this.closeDropdown(),this.emitValue()},removeItem(e){this.selected=this.selected.filter(t=>!(t.id===e.id&&(t.model||"")===(e.model||""))),this.emitValue()},emitValue(){this.isMultiple?this.$emit("update:modelValue",[...this.selected]):this.$emit("update:modelValue",this.selected[0]||null)}}};const po={class:"sf-relation-wrapper"},fo={key:0,class:"sf-relation-selected"},mo={class:"sf-relation-tag-text"},go=["onClick"],vo={class:"sf-relation-search"},yo=["placeholder"],_o={class:"sf-relation-dropdown"},bo={key:0,class:"sf-relation-dropdown-empty"},So=["onClick"],xo={key:0,class:"errorlist"};ho.render=function(e,t,n,s,r,i){return zs(),Ks("div",{class:H(["sf-field sf-relation",{errors:i.fieldErrors.length}]),ref:"root"},[Ys("label",{class:H(["sf-label",{required:i.isRequired}])},G(i.title),3),Ys("div",po,[sr(" Selected items "),r.selected.length?(zs(),Ks("div",fo,[(zs(!0),Ks(Ms,null,In(r.selected,e=>(zs(),Ks("div",{key:i.itemKey(e),class:"sf-relation-tag"},[Ys("span",mo,G(i.getDisplayName(e)),1),r.isMultiple||r.allowClear?(zs(),Ks("button",{key:0,type:"button",class:"sf-relation-tag-remove",onClick:ui(t=>i.removeItem(e),["stop"])},[...t[5]||(t[5]=[Ys("i",{class:"fas fa-times"},null,-1)])],8,go)):sr("v-if",!0)]))),128))])):sr("v-if",!0),sr(" Search box "),Jt(Ys("div",vo,[Jt(Ys("input",{ref:"searchInput",type:"text",class:"sf-input sf-relation-input",placeholder:r.placeholder,autocomplete:"off","onUpdate:modelValue":t[0]||(t[0]=e=>r.searchQuery=e),onInput:t[1]||(t[1]=(...e)=>i.onSearchInput&&i.onSearchInput(...e)),onFocus:t[2]||(t[2]=(...e)=>i.openDropdown&&i.openDropdown(...e)),onKeydown:t[3]||(t[3]=(...e)=>i.handleKeyDown&&i.handleKeyDown(...e))},null,40,yo),[[li,r.searchQuery]]),sr(" Dropdown "),Jt(Ys("div",_o,[0!==i.filteredResults.length||r.loading?sr("v-if",!0):(zs(),Ks("div",bo," No results found ")),(zs(!0),Ks(Ms,null,In(i.filteredResults,(e,t)=>(zs(),Ks("div",{key:i.itemKey(e),class:H(["sf-relation-dropdown-item",{highlighted:t===r.highlightIndex}]),onClick:t=>i.selectItem(e)},G(i.getDisplayName(e)),11,So))),128)),r.hasMore?(zs(),Ks("div",{key:1,class:"sf-relation-dropdown-more",onClick:t[4]||(t[4]=e=>i.fetchResults(r.searchQuery,r.currentPage+1))}," Load more... ")):sr("v-if",!0)],512),[[Tr,r.dropdownVisible]])],512),[[Tr,i.showSearch]])]),i.fieldErrors.length?(zs(),Ks("ul",xo,[(zs(!0),Ks(Ms,null,In(i.fieldErrors,(e,t)=>(zs(),Ks("li",{key:t},G(e),1))),128))])):sr("v-if",!0)],2)},ho.__file="src/editors/RelationEditor.vue";var ko={name:"SchemaEditor",components:{StringEditor:t,NumberEditor:_i,BooleanEditor:xi,SelectEditor:Ci,HiddenEditor:Pi,ObjectEditor:Ri,ArrayEditor:Li,NullableEditor:eo,UnionEditor:ro,RelationEditor:ho},props:{schema:{type:Object,required:!0},modelValue:{default:void 0},path:{type:Array,default:()=>[]},form:{type:Object,required:!0}},emits:["update:modelValue"],computed:{editorComponent(){const e=this.schema;return this.path.length>12?"StringEditor":"relation"===e.type?"RelationEditor":e.oneOf&&e.discriminator?"UnionEditor":"const"in e||e.enum&&1===e.enum.length&&"string"===e.type?"HiddenEditor":e._nullable?"NullableEditor":"object"===e.type&&e.properties?"ObjectEditor":"array"===e.type?"ArrayEditor":e.enum?"SelectEditor":"boolean"===e.type?"BooleanEditor":"number"===e.type||"integer"===e.type?"NumberEditor":"StringEditor"}}};ko.render=function(e,t,n,s,r,i){return zs(),Zs((o=i.editorComponent,y(o)?Tn(jn,o,!1)||o:o||$n),{schema:n.schema,"model-value":n.modelValue,path:n.path,form:n.form,"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:modelValue",t))},null,8,["schema","model-value","path","form"]);var o},ko.__file="src/editors/SchemaEditor.vue";var Eo={name:"SchemaForm",components:{SchemaEditor:ko},props:{schema:{type:[Object,String],default:()=>({})},initialData:{default:void 0},errors:{type:Object,default:()=>({})}},emits:["change"],expose:["getValue"],data(){const e="string"==typeof this.schema?JSON.parse(this.schema):this.schema;return{rootSchema:e,defs:e.$defs||e.definitions||{},currentValue:null!=this.initialData?Ni(this.initialData):void 0}},computed:{resolvedSchema(){return this.resolveSchema(this.rootSchema)},formApi(){return{resolveSchema:e=>this.resolveSchema(e),getSchemaAtPath:e=>this.getSchemaAtPath(e),getErrorsForPath:e=>this.getErrorsForPath(e)}}},watch:{schema:{handler(e){const t="string"==typeof e?JSON.parse(e):e;this.rootSchema=t,this.defs=t.$defs||t.definitions||{}},deep:!0},initialData:{handler(e){this.currentValue=null!=e?Ni(e):void 0},deep:!0}},methods:{resolveSchema(e){if(!e)return{type:"string"};if(e.$ref){const t=e.$ref.replace(/^#\/\$defs\//,"").replace(/^#\/definitions\//,""),n=this.defs[t];if(!n)return{type:"string",title:t};const{$ref:s,...r}=e;return{...this.resolveSchema(n),...r}}if(e.anyOf){const t=e.anyOf.filter(e=>"null"!==e.type);if(e.anyOf.some(e=>"null"===e.type)&&1===t.length){const n=this.resolveSchema(t[0]);return{...n,_nullable:!0,title:e.title||n.title,default:"default"in e?e.default:null}}if(t.length>=1)return this.resolveSchema(t[0])}if(e.oneOf&&e.discriminator)return e;if(e.oneOf){const t=e.oneOf.filter(e=>"null"!==e.type);if(e.oneOf.some(e=>"null"===e.type)&&1===t.length){const n=this.resolveSchema(t[0]);return{...n,_nullable:!0,title:e.title||n.title,default:"default"in e?e.default:null}}if(t.length>=1)return this.resolveSchema(t[0])}return e},getSchemaAtPath(e){let t=this.resolveSchema(this.rootSchema);for(const n of e){if(!t)return null;if(t.properties&&t.properties[n])t=this.resolveSchema(t.properties[n]);else{if(!t.items)return null;t=this.resolveSchema(t.items)}}return t},onValueChange(e){this.currentValue=e,this.$emit("change",e)},getErrorsForPath(e){if(!this.errors||"object"!=typeof this.errors)return[];const t=e.join(".");return this.errors[t]||[]},getValue(){return this.currentValue}}};const wo={class:"structured-field-editor"};Eo.render=function(e,t,n,s,r,i){const o=Rn("SchemaEditor");return zs(),Ks("div",wo,[i.resolvedSchema?(zs(),Zs(o,{key:0,schema:i.resolvedSchema,"model-value":r.currentValue,path:[],form:i.formApi,"onUpdate:modelValue":i.onValueChange},null,8,["schema","model-value","form","onUpdate:modelValue"])):sr("v-if",!0)])},Eo.__file="src/SchemaForm.vue";const Co=function(e,t,n){let s=function(e,t){return v(e)?(()=>c({name:e.name},t,{setup:e}))():e}(e,t);E(s)&&(s=c({},s,t));class r extends ti{constructor(e){super(s,e,n)}}return r.def=s,r}({...Eo,shadowRoot:!1});return e.ArrayEditor=Li,e.BooleanEditor=xi,e.HiddenEditor=Pi,e.NullableEditor=eo,e.NumberEditor=_i,e.ObjectEditor=Ri,e.RelationEditor=ho,e.SchemaEditor=ko,e.SchemaForm=Eo,e.SchemaFormElement=Co,e.SelectEditor=Ci,e.StringEditor=t,e.UnionEditor=ro,e.registerCustomElement=function(e="schema-form"){customElements.get(e)||customElements.define(e,Co)},e}({});
|
|
31
26
|
//# sourceMappingURL=structured-widget-editor.js.map
|