(function(tr){typeof define=="function"&&define.amd?define(tr):tr()})(function(){"use strict";var G3=Object.defineProperty;var Y3=(tr,bt,nr)=>bt in tr?G3(tr,bt,{enumerable:!0,configurable:!0,writable:!0,value:nr}):tr[bt]=nr;var Gb=(tr,bt,nr)=>(Y3(tr,typeof bt!="symbol"?bt+"":bt,nr),nr);function tr(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i!!n[i.toLowerCase()]:i=>!!n[i]}const bt={},nr=[],vr=()=>{},Yb=()=>!1,Xb=/^on[^a-z]/,Wa=e=>Xb.test(e),qu=e=>e.startsWith("onUpdate:"),Yt=Object.assign,zu=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Jb=Object.prototype.hasOwnProperty,Ct=(e,t)=>Jb.call(e,t),qe=Array.isArray,po=e=>ws(e)==="[object Map]",ho=e=>ws(e)==="[object Set]",Tp=e=>ws(e)==="[object Date]",ct=e=>typeof e=="function",Ht=e=>typeof e=="string",_s=e=>typeof e=="symbol",It=e=>e!==null&&typeof e=="object",kp=e=>It(e)&&ct(e.then)&&ct(e.catch),xp=Object.prototype.toString,ws=e=>xp.call(e),Zb=e=>ws(e).slice(8,-1),Sp=e=>ws(e)==="[object Object]",Gu=e=>Ht(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ka=tr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Va=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Qb=/-(\w)/g,Ar=Va(e=>e.replace(Qb,(t,n)=>n?n.toUpperCase():"")),eC=/\B([A-Z])/g,go=Va(e=>e.replace(eC,"-$1").toLowerCase()),qa=Va(e=>e.charAt(0).toUpperCase()+e.slice(1)),Yu=Va(e=>e?`on${qa(e)}`:""),Ts=(e,t)=>!Object.is(e,t),za=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ya=e=>{const t=parseFloat(e);return isNaN(t)?e:t},tC=e=>{const t=Ht(e)?Number(e):NaN;return isNaN(t)?e:t};let Ap;const Xu=()=>Ap||(Ap=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function St(e){if(qe(e)){const t={};for(let n=0;n{if(n){const r=n.split(rC);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Ge(e){let t="";if(Ht(e))t=e;else if(qe(e))for(let n=0;nks(n,t))}const ie=e=>Ht(e)?e:e==null?"":qe(e)||It(e)&&(e.toString===xp||!ct(e.toString))?JSON.stringify(e,Lp,2):String(e),Lp=(e,t)=>t&&t.__v_isRef?Lp(e,t.value):po(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:ho(t)?{[`Set(${t.size})`]:[...t.values()]}:It(t)&&!qe(t)&&!Sp(t)?String(t):t;let Kn;class lC{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Kn,!t&&Kn&&(this.index=(Kn.scopes||(Kn.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Kn;try{return Kn=this,t()}finally{Kn=n}}}on(){Kn=this}off(){Kn=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Ip=e=>(e.w&ui)>0,Pp=e=>(e.n&ui)>0,fC=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(p==="length"||p>=c)&&l.push(d)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":qe(e)?Gu(n)&&l.push(s.get("length")):(l.push(s.get(Di)),po(e)&&l.push(s.get(tc)));break;case"delete":qe(e)||(l.push(s.get(Di)),po(e)&&l.push(s.get(tc)));break;case"set":po(e)&&l.push(s.get(Di));break}if(l.length===1)l[0]&&rc(l[0]);else{const c=[];for(const d of l)d&&c.push(...d);rc(Zu(c))}}function rc(e,t){const n=qe(e)?e:[...e];for(const r of n)r.computed&&Mp(r);for(const r of n)r.computed||Mp(r)}function Mp(e,t){(e!==yr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const pC=tr("__proto__,__v_isRef,__isVue"),Fp=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(_s)),hC=ic(),gC=ic(!1,!0),mC=ic(!0),$p=vC();function vC(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=xt(this);for(let o=0,s=this.length;o{e[t]=function(...n){mo();const r=xt(this)[t].apply(this,n);return vo(),r}}),e}function yC(e){const t=xt(this);return Pn(t,"has",e),t.hasOwnProperty(e)}function ic(e=!1,t=!1){return function(r,i,o){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&o===(e?t?RC:zp:t?qp:Vp).get(r))return r;const s=qe(r);if(!e){if(s&&Ct($p,i))return Reflect.get($p,i,o);if(i==="hasOwnProperty")return yC}const l=Reflect.get(r,i,o);return(_s(i)?Fp.has(i):pC(i))||(e||Pn(r,"get",i),t)?l:yn(l)?s&&Gu(i)?l:l.value:It(l)?e?ac(l):Dn(l):l}}const bC=Bp(),CC=Bp(!0);function Bp(e=!1){return function(n,r,i,o){let s=n[r];if(bo(s)&&yn(s)&&!yn(i))return!1;if(!e&&(!nl(i)&&!bo(i)&&(s=xt(s),i=xt(i)),!qe(n)&&yn(s)&&!yn(i)))return s.value=i,!0;const l=qe(n)&&Gu(r)?Number(r)e,Xa=e=>Reflect.getPrototypeOf(e);function Ja(e,t,n=!1,r=!1){e=e.__v_raw;const i=xt(e),o=xt(t);n||(t!==o&&Pn(i,"get",t),Pn(i,"get",o));const{has:s}=Xa(i),l=r?oc:n?uc:Ss;if(s.call(i,t))return l(e.get(t));if(s.call(i,o))return l(e.get(o));e!==i&&e.get(t)}function Za(e,t=!1){const n=this.__v_raw,r=xt(n),i=xt(e);return t||(e!==i&&Pn(r,"has",e),Pn(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Qa(e,t=!1){return e=e.__v_raw,!t&&Pn(xt(e),"iterate",Di),Reflect.get(e,"size",e)}function jp(e){e=xt(e);const t=xt(this);return Xa(t).has.call(t,e)||(t.add(e),qr(t,"add",e,e)),this}function Up(e,t){t=xt(t);const n=xt(this),{has:r,get:i}=Xa(n);let o=r.call(n,e);o||(e=xt(e),o=r.call(n,e));const s=i.call(n,e);return n.set(e,t),o?Ts(t,s)&&qr(n,"set",e,t):qr(n,"add",e,t),this}function Wp(e){const t=xt(this),{has:n,get:r}=Xa(t);let i=n.call(t,e);i||(e=xt(e),i=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return i&&qr(t,"delete",e,void 0),o}function Kp(){const e=xt(this),t=e.size!==0,n=e.clear();return t&&qr(e,"clear",void 0,void 0),n}function el(e,t){return function(r,i){const o=this,s=o.__v_raw,l=xt(s),c=t?oc:e?uc:Ss;return!e&&Pn(l,"iterate",Di),s.forEach((d,p)=>r.call(i,c(d),c(p),o))}}function tl(e,t,n){return function(...r){const i=this.__v_raw,o=xt(i),s=po(o),l=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,d=i[e](...r),p=n?oc:t?uc:Ss;return!t&&Pn(o,"iterate",c?tc:Di),{next(){const{value:y,done:m}=d.next();return m?{value:y,done:m}:{value:l?[p(y[0]),p(y[1])]:p(y),done:m}},[Symbol.iterator](){return this}}}}function fi(e){return function(...t){return e==="delete"?!1:this}}function SC(){const e={get(o){return Ja(this,o)},get size(){return Qa(this)},has:Za,add:jp,set:Up,delete:Wp,clear:Kp,forEach:el(!1,!1)},t={get(o){return Ja(this,o,!1,!0)},get size(){return Qa(this)},has:Za,add:jp,set:Up,delete:Wp,clear:Kp,forEach:el(!1,!0)},n={get(o){return Ja(this,o,!0)},get size(){return Qa(this,!0)},has(o){return Za.call(this,o,!0)},add:fi("add"),set:fi("set"),delete:fi("delete"),clear:fi("clear"),forEach:el(!0,!1)},r={get(o){return Ja(this,o,!0,!0)},get size(){return Qa(this,!0)},has(o){return Za.call(this,o,!0)},add:fi("add"),set:fi("set"),delete:fi("delete"),clear:fi("clear"),forEach:el(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=tl(o,!1,!1),n[o]=tl(o,!0,!1),t[o]=tl(o,!1,!0),r[o]=tl(o,!0,!0)}),[e,n,t,r]}const[AC,EC,LC,OC]=SC();function sc(e,t){const n=t?e?OC:LC:e?EC:AC;return(r,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Ct(n,i)&&i in r?n:r,i,o)}const IC={get:sc(!1,!1)},PC={get:sc(!1,!0)},DC={get:sc(!0,!1)},Vp=new WeakMap,qp=new WeakMap,zp=new WeakMap,RC=new WeakMap;function NC(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function MC(e){return e.__v_skip||!Object.isExtensible(e)?0:NC(Zb(e))}function Dn(e){return bo(e)?e:lc(e,!1,Hp,IC,Vp)}function FC(e){return lc(e,!1,xC,PC,qp)}function ac(e){return lc(e,!0,kC,DC,zp)}function lc(e,t,n,r,i){if(!It(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const s=MC(e);if(s===0)return e;const l=new Proxy(e,s===2?r:n);return i.set(e,l),l}function yo(e){return bo(e)?yo(e.__v_raw):!!(e&&e.__v_isReactive)}function bo(e){return!!(e&&e.__v_isReadonly)}function nl(e){return!!(e&&e.__v_isShallow)}function Gp(e){return yo(e)||bo(e)}function xt(e){const t=e&&e.__v_raw;return t?xt(t):e}function Yp(e){return Ga(e,"__v_skip",!0),e}const Ss=e=>It(e)?Dn(e):e,uc=e=>It(e)?ac(e):e;function Xp(e){ci&&yr&&(e=xt(e),Np(e.dep||(e.dep=Zu())))}function Jp(e,t){e=xt(e);const n=e.dep;n&&rc(n)}function yn(e){return!!(e&&e.__v_isRef===!0)}function Lt(e){return Zp(e,!1)}function $C(e){return Zp(e,!0)}function Zp(e,t){return yn(e)?e:new BC(e,t)}class BC{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:xt(t),this._value=n?t:Ss(t)}get value(){return Xp(this),this._value}set value(t){const n=this.__v_isShallow||nl(t)||bo(t);t=n?t:xt(t),Ts(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Ss(t),Jp(this))}}function Qp(e){return yn(e)?e.value:e}const HC={get:(e,t,n)=>Qp(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return yn(i)&&!yn(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function eh(e){return yo(e)?e:new Proxy(e,HC)}class jC{constructor(t,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new nc(t,()=>{this._dirty||(this._dirty=!0,Jp(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=xt(this);return Xp(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function UC(e,t,n=!1){let r,i;const o=ct(e);return o?(r=e,i=vr):(r=e.get,i=e.set),new jC(r,i,o||!i,n)}function J3(e,...t){}function di(e,t,n,r){let i;try{i=r?e(...r):e()}catch(o){rl(o,t,n)}return i}function rr(e,t,n,r){if(ct(e)){const o=di(e,t,n,r);return o&&kp(o)&&o.catch(s=>{rl(s,t,n)}),o}const i=[];for(let o=0;o>>1;Es(bn[r])Er&&bn.splice(t,1)}function qC(e){qe(e)?Co.push(...e):(!zr||!zr.includes(e,e.allowRecurse?Ri+1:Ri))&&Co.push(e),nh()}function rh(e,t=As?Er+1:0){for(;tEs(n)-Es(r)),Ri=0;Rie.id==null?1/0:e.id,zC=(e,t)=>{const n=Es(e)-Es(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function oh(e){cc=!1,As=!0,bn.sort(zC);const t=vr;try{for(Er=0;ErHt(C)?C.trim():C)),y&&(i=n.map(Ya))}let l,c=r[l=Yu(t)]||r[l=Yu(Ar(t))];!c&&o&&(c=r[l=Yu(go(t))]),c&&rr(c,e,6,i);const d=r[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,rr(d,e,6,i)}}function sh(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const o=e.emits;let s={},l=!1;if(!ct(e)){const c=d=>{const p=sh(d,t,!0);p&&(l=!0,Yt(s,p))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(It(e)&&r.set(e,null),null):(qe(o)?o.forEach(c=>s[c]=null):Yt(s,o),It(e)&&r.set(e,s),s)}function ol(e,t){return!e||!Wa(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ct(e,t[0].toLowerCase()+t.slice(1))||Ct(e,go(t))||Ct(e,t))}let dn=null,sl=null;function al(e){const t=dn;return dn=e,sl=e&&e.type.__scopeId||null,t}function _o(e){sl=e}function wo(){sl=null}function tn(e,t=dn,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&Bh(-1);const o=al(t);let s;try{s=e(...i)}finally{al(o),r._d&&Bh(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Z3(){}function pc(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:o,propsOptions:[s],slots:l,attrs:c,emit:d,render:p,renderCache:y,data:m,setupState:C,ctx:b,inheritAttrs:k}=e;let L,O;const B=al(e);try{if(n.shapeFlag&4){const x=i||r;L=Lr(p.call(x,x,y,o,C,m,b)),O=c}else{const x=t;L=Lr(x.length>1?x(o,{attrs:c,slots:l,emit:d}):x(o,null)),O=t.props?c:YC(c)}}catch(x){Ds.length=0,rl(x,e,1),L=ye(sr)}let X=L;if(O&&k!==!1){const x=Object.keys(O),{shapeFlag:z}=X;x.length&&z&7&&(s&&x.some(qu)&&(O=XC(O,s)),X=pi(X,O))}return n.dirs&&(X=pi(X),X.dirs=X.dirs?X.dirs.concat(n.dirs):n.dirs),n.transition&&(X.transition=n.transition),L=X,al(B),L}const YC=e=>{let t;for(const n in e)(n==="class"||n==="style"||Wa(n))&&((t||(t={}))[n]=e[n]);return t},XC=(e,t)=>{const n={};for(const r in e)(!qu(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function JC(e,t,n){const{props:r,children:i,component:o}=e,{props:s,children:l,patchFlag:c}=t,d=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?ah(r,s,d):!!s;if(c&8){const p=t.dynamicProps;for(let y=0;ye.__isSuspense;function e_(e,t){t&&t.pendingBranch?qe(e)?t.effects.push(...e):t.effects.push(e):qC(e)}const ll={};function ir(e,t,n){return lh(e,t,n)}function lh(e,t,{immediate:n,deep:r,flush:i,onTrack:o,onTrigger:s}=bt){var l;const c=Op()===((l=ln)==null?void 0:l.scope)?ln:null;let d,p=!1,y=!1;if(yn(e)?(d=()=>e.value,p=nl(e)):yo(e)?(d=()=>e,r=!0):qe(e)?(y=!0,p=e.some(x=>yo(x)||nl(x)),d=()=>e.map(x=>{if(yn(x))return x.value;if(yo(x))return Ni(x);if(ct(x))return di(x,c,2)})):ct(e)?t?d=()=>di(e,c,2):d=()=>{if(!(c&&c.isUnmounted))return m&&m(),rr(e,c,3,[C])}:d=vr,t&&r){const x=d;d=()=>Ni(x())}let m,C=x=>{m=B.onStop=()=>{di(x,c,4)}},b;if(Ns)if(C=vr,t?n&&rr(t,c,3,[d(),y?[]:void 0,C]):d(),i==="sync"){const x=X_();b=x.__watcherHandles||(x.__watcherHandles=[])}else return vr;let k=y?new Array(e.length).fill(ll):ll;const L=()=>{if(B.active)if(t){const x=B.run();(r||p||(y?x.some((z,Q)=>Ts(z,k[Q])):Ts(x,k)))&&(m&&m(),rr(t,c,3,[x,k===ll?void 0:y&&k[0]===ll?[]:k,C]),k=x)}else B.run()};L.allowRecurse=!!t;let O;i==="sync"?O=L:i==="post"?O=()=>Nn(L,c&&c.suspense):(L.pre=!0,c&&(L.id=c.uid),O=()=>dc(L));const B=new nc(d,O);t?n?L():k=B.run():i==="post"?Nn(B.run.bind(B),c&&c.suspense):B.run();const X=()=>{B.stop(),c&&c.scope&&zu(c.scope.effects,B)};return b&&b.push(X),X}function t_(e,t,n){const r=this.proxy,i=Ht(e)?e.includes(".")?uh(r,e):()=>r[e]:e.bind(r,r);let o;ct(t)?o=t:(o=t.handler,n=t);const s=ln;So(this);const l=lh(i,o.bind(r),n);return s?So(s):Bi(),l}function uh(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i{Ni(n,t)});else if(Sp(e))for(const n in e)Ni(e[n],t);return e}function ge(e,t){const n=dn;if(n===null)return e;const r=Cl(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let o=0;o{e.isMounted=!0}),gh(()=>{e.isUnmounting=!0}),e}const or=[Function,Array],ch={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:or,onEnter:or,onAfterEnter:or,onEnterCancelled:or,onBeforeLeave:or,onLeave:or,onAfterLeave:or,onLeaveCancelled:or,onBeforeAppear:or,onAppear:or,onAfterAppear:or,onAppearCancelled:or},r_={name:"BaseTransition",props:ch,setup(e,{slots:t}){const n=Ic(),r=n_();let i;return()=>{const o=t.default&&ph(t.default(),!0);if(!o||!o.length)return;let s=o[0];if(o.length>1){for(const k of o)if(k.type!==sr){s=k;break}}const l=xt(e),{mode:c}=l;if(r.isLeaving)return gc(s);const d=dh(s);if(!d)return gc(s);const p=hc(d,l,r,n);mc(d,p);const y=n.subTree,m=y&&dh(y);let C=!1;const{getTransitionKey:b}=d.type;if(b){const k=b();i===void 0?i=k:k!==i&&(i=k,C=!0)}if(m&&m.type!==sr&&(!$i(d,m)||C)){const k=hc(m,l,r,n);if(mc(m,k),c==="out-in")return r.isLeaving=!0,k.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},gc(s);c==="in-out"&&d.type!==sr&&(k.delayLeave=(L,O,B)=>{const X=fh(r,m);X[String(m.key)]=m,L._leaveCb=()=>{O(),L._leaveCb=void 0,delete p.delayedLeave},p.delayedLeave=B})}return s}}};function fh(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function hc(e,t,n,r){const{appear:i,mode:o,persisted:s=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:d,onEnterCancelled:p,onBeforeLeave:y,onLeave:m,onAfterLeave:C,onLeaveCancelled:b,onBeforeAppear:k,onAppear:L,onAfterAppear:O,onAppearCancelled:B}=t,X=String(e.key),x=fh(n,e),z=(I,A)=>{I&&rr(I,r,9,A)},Q=(I,A)=>{const D=A[1];z(I,A),qe(I)?I.every(H=>H.length<=1)&&D():I.length<=1&&D()},g={mode:o,persisted:s,beforeEnter(I){let A=l;if(!n.isMounted)if(i)A=k||l;else return;I._leaveCb&&I._leaveCb(!0);const D=x[X];D&&$i(e,D)&&D.el._leaveCb&&D.el._leaveCb(),z(A,[I])},enter(I){let A=c,D=d,H=p;if(!n.isMounted)if(i)A=L||c,D=O||d,H=B||p;else return;let K=!1;const U=I._enterCb=de=>{K||(K=!0,de?z(H,[I]):z(D,[I]),g.delayedLeave&&g.delayedLeave(),I._enterCb=void 0)};A?Q(A,[I,U]):U()},leave(I,A){const D=String(e.key);if(I._enterCb&&I._enterCb(!0),n.isUnmounting)return A();z(y,[I]);let H=!1;const K=I._leaveCb=U=>{H||(H=!0,A(),U?z(b,[I]):z(C,[I]),I._leaveCb=void 0,x[D]===e&&delete x[D])};x[D]=e,m?Q(m,[I,K]):K()},clone(I){return hc(I,t,n,r)}};return g}function gc(e){if(ul(e))return e=pi(e),e.children=null,e}function dh(e){return ul(e)?e.children?e.children[0]:void 0:e}function mc(e,t){e.shapeFlag&6&&e.component?mc(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ph(e,t=!1,n){let r=[],i=0;for(let o=0;o1)for(let o=0;oYt({name:e.name},t,{setup:e}))():e}const Ls=e=>!!e.type.__asyncLoader,ul=e=>e.type.__isKeepAlive;function i_(e,t){hh(e,"a",t)}function o_(e,t){hh(e,"da",t)}function hh(e,t,n=ln){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(cl(t,r,n),n){let i=n.parent;for(;i&&i.parent;)ul(i.parent.vnode)&&s_(r,t,n,i),i=i.parent}}function s_(e,t,n,r){const i=cl(t,e,r,!0);mh(()=>{zu(r[t],i)},n)}function cl(e,t,n=ln,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;mo(),So(n);const l=rr(t,n,e,s);return Bi(),vo(),l});return r?i.unshift(o):i.push(o),o}}const Gr=e=>(t,n=ln)=>(!Ns||e==="sp")&&cl(e,(...r)=>t(...r),n),a_=Gr("bm"),fl=Gr("m"),l_=Gr("bu"),u_=Gr("u"),gh=Gr("bum"),mh=Gr("um"),c_=Gr("sp"),f_=Gr("rtg"),d_=Gr("rtc");function p_(e,t=ln){cl("ec",e,t)}const vc="components",h_="directives";function Ye(e,t){return yc(vc,e,!0,t)||e}const vh=Symbol.for("v-ndc");function yh(e){return Ht(e)?yc(vc,e,!1)||e:e||vh}function To(e){return yc(h_,e)}function yc(e,t,n=!0,r=!1){const i=dn||ln;if(i){const o=i.type;if(e===vc){const l=q_(o,!1);if(l&&(l===t||l===Ar(t)||l===qa(Ar(t))))return o}const s=bh(i[e]||o[e],t)||bh(i.appContext[e],t);return!s&&r?o:s}}function bh(e,t){return e&&(e[t]||e[Ar(t)]||e[qa(Ar(t))])}function nt(e,t,n,r){let i;const o=n&&n[r];if(qe(e)||Ht(e)){i=new Array(e.length);for(let s=0,l=e.length;st(s,l,void 0,o&&o[l]));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,c=s.length;lml(t)?!(t.type===sr||t.type===De&&!Ch(t.children)):!0)?e:null}const bc=e=>e?Wh(e)?Cl(e)||e.proxy:bc(e.parent):null,Os=Yt(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=>bc(e.parent),$root:e=>bc(e.root),$emit:e=>e.emit,$options:e=>wc(e),$forceUpdate:e=>e.f||(e.f=()=>dc(e.update)),$nextTick:e=>e.n||(e.n=il.bind(e.proxy)),$watch:e=>t_.bind(e)}),Cc=(e,t)=>e!==bt&&!e.__isScriptSetup&&Ct(e,t),m_={get({_:e},t){const{ctx:n,setupState:r,data:i,props:o,accessCache:s,type:l,appContext:c}=e;let d;if(t[0]!=="$"){const C=s[t];if(C!==void 0)switch(C){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(Cc(r,t))return s[t]=1,r[t];if(i!==bt&&Ct(i,t))return s[t]=2,i[t];if((d=e.propsOptions[0])&&Ct(d,t))return s[t]=3,o[t];if(n!==bt&&Ct(n,t))return s[t]=4,n[t];_c&&(s[t]=0)}}const p=Os[t];let y,m;if(p)return t==="$attrs"&&Pn(e,"get",t),p(e);if((y=l.__cssModules)&&(y=y[t]))return y;if(n!==bt&&Ct(n,t))return s[t]=4,n[t];if(m=c.config.globalProperties,Ct(m,t))return m[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return Cc(i,t)?(i[t]=n,!0):r!==bt&&Ct(r,t)?(r[t]=n,!0):Ct(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:o}},s){let l;return!!n[s]||e!==bt&&Ct(e,s)||Cc(t,s)||(l=o[0])&&Ct(l,s)||Ct(r,s)||Ct(Os,s)||Ct(i.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ct(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function _h(e){return qe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let _c=!0;function v_(e){const t=wc(e),n=e.proxy,r=e.ctx;_c=!1,t.beforeCreate&&wh(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:s,watch:l,provide:c,inject:d,created:p,beforeMount:y,mounted:m,beforeUpdate:C,updated:b,activated:k,deactivated:L,beforeDestroy:O,beforeUnmount:B,destroyed:X,unmounted:x,render:z,renderTracked:Q,renderTriggered:g,errorCaptured:I,serverPrefetch:A,expose:D,inheritAttrs:H,components:K,directives:U,filters:de}=t;if(d&&y_(d,r,null),s)for(const V in s){const ae=s[V];ct(ae)&&(r[V]=ae.bind(n))}if(i){const V=i.call(n,n);It(V)&&(e.data=Dn(V))}if(_c=!0,o)for(const V in o){const ae=o[V],pe=ct(ae)?ae.bind(n,n):ct(ae.get)?ae.get.bind(n,n):vr,Qe=!ct(ae)&&ct(ae.set)?ae.set.bind(n):vr,et=nn({get:pe,set:Qe});Object.defineProperty(r,V,{enumerable:!0,configurable:!0,get:()=>et.value,set:se=>et.value=se})}if(l)for(const V in l)Th(l[V],r,n,V);if(c){const V=ct(c)?c.call(n):c;Reflect.ownKeys(V).forEach(ae=>{Ah(ae,V[ae])})}p&&wh(p,e,"c");function Pe(V,ae){qe(ae)?ae.forEach(pe=>V(pe.bind(n))):ae&&V(ae.bind(n))}if(Pe(a_,y),Pe(fl,m),Pe(l_,C),Pe(u_,b),Pe(i_,k),Pe(o_,L),Pe(p_,I),Pe(d_,Q),Pe(f_,g),Pe(gh,B),Pe(mh,x),Pe(c_,A),qe(D))if(D.length){const V=e.exposed||(e.exposed={});D.forEach(ae=>{Object.defineProperty(V,ae,{get:()=>n[ae],set:pe=>n[ae]=pe})})}else e.exposed||(e.exposed={});z&&e.render===vr&&(e.render=z),H!=null&&(e.inheritAttrs=H),K&&(e.components=K),U&&(e.directives=U)}function y_(e,t,n=vr){qe(e)&&(e=Tc(e));for(const r in e){const i=e[r];let o;It(i)?"default"in i?o=ko(i.from||r,i.default,!0):o=ko(i.from||r):o=ko(i),yn(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[r]=o}}function wh(e,t,n){rr(qe(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Th(e,t,n,r){const i=r.includes(".")?uh(n,r):()=>n[r];if(Ht(e)){const o=t[e];ct(o)&&ir(i,o)}else if(ct(e))ir(i,e.bind(n));else if(It(e))if(qe(e))e.forEach(o=>Th(o,t,n,r));else{const o=ct(e.handler)?e.handler.bind(n):t[e.handler];ct(o)&&ir(i,o,e)}}function wc(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,l=o.get(t);let c;return l?c=l:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(d=>dl(c,d,s,!0)),dl(c,t,s)),It(t)&&o.set(t,c),c}function dl(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&dl(e,o,n,!0),i&&i.forEach(s=>dl(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const l=b_[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const b_={data:kh,props:xh,emits:xh,methods:Is,computed:Is,beforeCreate:An,created:An,beforeMount:An,mounted:An,beforeUpdate:An,updated:An,beforeDestroy:An,beforeUnmount:An,destroyed:An,unmounted:An,activated:An,deactivated:An,errorCaptured:An,serverPrefetch:An,components:Is,directives:Is,watch:__,provide:kh,inject:C_};function kh(e,t){return t?e?function(){return Yt(ct(e)?e.call(this,this):e,ct(t)?t.call(this,this):t)}:t:e}function C_(e,t){return Is(Tc(e),Tc(t))}function Tc(e){if(qe(e)){const t={};for(let n=0;n1)return n&&ct(t)?t.call(r&&r.proxy):t}}function k_(e,t,n,r=!1){const i={},o={};Ga(o,vl,1),e.propsDefaults=Object.create(null),Eh(e,t,i,o);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=r?i:FC(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function x_(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:s}}=e,l=xt(i),[c]=e.propsOptions;let d=!1;if((r||s>0)&&!(s&16)){if(s&8){const p=e.vnode.dynamicProps;for(let y=0;y{c=!0;const[m,C]=Lh(y,t,!0);Yt(s,m),C&&l.push(...C)};!n&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!o&&!c)return It(e)&&r.set(e,nr),nr;if(qe(o))for(let p=0;p-1,C[1]=k<0||b-1||Ct(C,"default"))&&l.push(y)}}}const d=[s,l];return It(e)&&r.set(e,d),d}function Oh(e){return e[0]!=="$"}function Ih(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Ph(e,t){return Ih(e)===Ih(t)}function Dh(e,t){return qe(t)?t.findIndex(n=>Ph(n,e)):ct(t)&&Ph(t,e)?0:-1}const Rh=e=>e[0]==="_"||e==="$stable",xc=e=>qe(e)?e.map(Lr):[Lr(e)],S_=(e,t,n)=>{if(t._n)return t;const r=tn((...i)=>xc(t(...i)),n);return r._c=!1,r},Nh=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Rh(i))continue;const o=e[i];if(ct(o))t[i]=S_(i,o,r);else if(o!=null){const s=xc(o);t[i]=()=>s}}},Mh=(e,t)=>{const n=xc(t);e.slots.default=()=>n},A_=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=xt(t),Ga(t,"_",n)):Nh(t,e.slots={})}else e.slots={},t&&Mh(e,t);Ga(e.slots,vl,1)},E_=(e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,s=bt;if(r.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:(Yt(i,t),!n&&l===1&&delete i._):(o=!t.$stable,Nh(t,i)),s=t}else t&&(Mh(e,t),s={default:1});if(o)for(const l in i)!Rh(l)&&!(l in s)&&delete i[l]};function Sc(e,t,n,r,i=!1){if(qe(e)){e.forEach((m,C)=>Sc(m,t&&(qe(t)?t[C]:t),n,r,i));return}if(Ls(r)&&!i)return;const o=r.shapeFlag&4?Cl(r.component)||r.component.proxy:r.el,s=i?null:o,{i:l,r:c}=e,d=t&&t.r,p=l.refs===bt?l.refs={}:l.refs,y=l.setupState;if(d!=null&&d!==c&&(Ht(d)?(p[d]=null,Ct(y,d)&&(y[d]=null)):yn(d)&&(d.value=null)),ct(c))di(c,l,12,[s,p]);else{const m=Ht(c),C=yn(c);if(m||C){const b=()=>{if(e.f){const k=m?Ct(y,c)?y[c]:p[c]:c.value;i?qe(k)&&zu(k,o):qe(k)?k.includes(o)||k.push(o):m?(p[c]=[o],Ct(y,c)&&(y[c]=p[c])):(c.value=[o],e.k&&(p[e.k]=c.value))}else m?(p[c]=s,Ct(y,c)&&(y[c]=s)):C&&(c.value=s,e.k&&(p[e.k]=s))};s?(b.id=-1,Nn(b,n)):b()}}}const Nn=e_;function L_(e){return O_(e)}function O_(e,t){const n=Xu();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:s,createText:l,createComment:c,setText:d,setElementText:p,parentNode:y,nextSibling:m,setScopeId:C=vr,insertStaticContent:b}=e,k=(R,$,Y,oe=null,ee=null,te=null,ve=!1,me=null,be=!!$.dynamicChildren)=>{if(R===$)return;R&&!$i(R,$)&&(oe=$e(R),se(R,ee,te,!0),R=null),$.patchFlag===-2&&(be=!1,$.dynamicChildren=null);const{type:ce,ref:Te,shapeFlag:_e}=$;switch(ce){case gl:L(R,$,Y,oe);break;case sr:O(R,$,Y,oe);break;case Lc:R==null&&B($,Y,oe,ve);break;case De:K(R,$,Y,oe,ee,te,ve,me,be);break;default:_e&1?z(R,$,Y,oe,ee,te,ve,me,be):_e&6?U(R,$,Y,oe,ee,te,ve,me,be):(_e&64||_e&128)&&ce.process(R,$,Y,oe,ee,te,ve,me,be,Re)}Te!=null&&ee&&Sc(Te,R&&R.ref,te,$||R,!$)},L=(R,$,Y,oe)=>{if(R==null)r($.el=l($.children),Y,oe);else{const ee=$.el=R.el;$.children!==R.children&&d(ee,$.children)}},O=(R,$,Y,oe)=>{R==null?r($.el=c($.children||""),Y,oe):$.el=R.el},B=(R,$,Y,oe)=>{[R.el,R.anchor]=b(R.children,$,Y,oe,R.el,R.anchor)},X=({el:R,anchor:$},Y,oe)=>{let ee;for(;R&&R!==$;)ee=m(R),r(R,Y,oe),R=ee;r($,Y,oe)},x=({el:R,anchor:$})=>{let Y;for(;R&&R!==$;)Y=m(R),i(R),R=Y;i($)},z=(R,$,Y,oe,ee,te,ve,me,be)=>{ve=ve||$.type==="svg",R==null?Q($,Y,oe,ee,te,ve,me,be):A(R,$,ee,te,ve,me,be)},Q=(R,$,Y,oe,ee,te,ve,me)=>{let be,ce;const{type:Te,props:_e,shapeFlag:Ne,transition:ne,dirs:Be}=R;if(be=R.el=s(R.type,te,_e&&_e.is,_e),Ne&8?p(be,R.children):Ne&16&&I(R.children,be,null,oe,ee,te&&Te!=="foreignObject",ve,me),Be&&Mi(R,null,oe,"created"),g(be,R,R.scopeId,ve,oe),_e){for(const lt in _e)lt!=="value"&&!Ka(lt)&&o(be,lt,null,_e[lt],te,R.children,oe,ee,Oe);"value"in _e&&o(be,"value",null,_e.value),(ce=_e.onVnodeBeforeMount)&&Or(ce,oe,R)}Be&&Mi(R,null,oe,"beforeMount");const at=(!ee||ee&&!ee.pendingBranch)&&ne&&!ne.persisted;at&&ne.beforeEnter(be),r(be,$,Y),((ce=_e&&_e.onVnodeMounted)||at||Be)&&Nn(()=>{ce&&Or(ce,oe,R),at&&ne.enter(be),Be&&Mi(R,null,oe,"mounted")},ee)},g=(R,$,Y,oe,ee)=>{if(Y&&C(R,Y),oe)for(let te=0;te{for(let ce=be;ce{const me=$.el=R.el;let{patchFlag:be,dynamicChildren:ce,dirs:Te}=$;be|=R.patchFlag&16;const _e=R.props||bt,Ne=$.props||bt;let ne;Y&&Fi(Y,!1),(ne=Ne.onVnodeBeforeUpdate)&&Or(ne,Y,$,R),Te&&Mi($,R,Y,"beforeUpdate"),Y&&Fi(Y,!0);const Be=ee&&$.type!=="foreignObject";if(ce?D(R.dynamicChildren,ce,me,Y,oe,Be,te):ve||ae(R,$,me,null,Y,oe,Be,te,!1),be>0){if(be&16)H(me,$,_e,Ne,Y,oe,ee);else if(be&2&&_e.class!==Ne.class&&o(me,"class",null,Ne.class,ee),be&4&&o(me,"style",_e.style,Ne.style,ee),be&8){const at=$.dynamicProps;for(let lt=0;lt{ne&&Or(ne,Y,$,R),Te&&Mi($,R,Y,"updated")},oe)},D=(R,$,Y,oe,ee,te,ve)=>{for(let me=0;me<$.length;me++){const be=R[me],ce=$[me],Te=be.el&&(be.type===De||!$i(be,ce)||be.shapeFlag&70)?y(be.el):Y;k(be,ce,Te,null,oe,ee,te,ve,!0)}},H=(R,$,Y,oe,ee,te,ve)=>{if(Y!==oe){if(Y!==bt)for(const me in Y)!Ka(me)&&!(me in oe)&&o(R,me,Y[me],null,ve,$.children,ee,te,Oe);for(const me in oe){if(Ka(me))continue;const be=oe[me],ce=Y[me];be!==ce&&me!=="value"&&o(R,me,ce,be,ve,$.children,ee,te,Oe)}"value"in oe&&o(R,"value",Y.value,oe.value)}},K=(R,$,Y,oe,ee,te,ve,me,be)=>{const ce=$.el=R?R.el:l(""),Te=$.anchor=R?R.anchor:l("");let{patchFlag:_e,dynamicChildren:Ne,slotScopeIds:ne}=$;ne&&(me=me?me.concat(ne):ne),R==null?(r(ce,Y,oe),r(Te,Y,oe),I($.children,Y,Te,ee,te,ve,me,be)):_e>0&&_e&64&&Ne&&R.dynamicChildren?(D(R.dynamicChildren,Ne,Y,ee,te,ve,me),($.key!=null||ee&&$===ee.subTree)&&Ac(R,$,!0)):ae(R,$,Y,Te,ee,te,ve,me,be)},U=(R,$,Y,oe,ee,te,ve,me,be)=>{$.slotScopeIds=me,R==null?$.shapeFlag&512?ee.ctx.activate($,Y,oe,ve,be):de($,Y,oe,ee,te,ve,be):je(R,$,be)},de=(R,$,Y,oe,ee,te,ve)=>{const me=R.component=j_(R,oe,ee);if(ul(R)&&(me.ctx.renderer=Re),U_(me),me.asyncDep){if(ee&&ee.registerDep(me,Pe),!R.el){const be=me.subTree=ye(sr);O(null,be,$,Y)}return}Pe(me,R,$,Y,ee,te,ve)},je=(R,$,Y)=>{const oe=$.component=R.component;if(JC(R,$,Y))if(oe.asyncDep&&!oe.asyncResolved){V(oe,$,Y);return}else oe.next=$,VC(oe.update),oe.update();else $.el=R.el,oe.vnode=$},Pe=(R,$,Y,oe,ee,te,ve)=>{const me=()=>{if(R.isMounted){let{next:Te,bu:_e,u:Ne,parent:ne,vnode:Be}=R,at=Te,lt;Fi(R,!1),Te?(Te.el=Be.el,V(R,Te,ve)):Te=Be,_e&&za(_e),(lt=Te.props&&Te.props.onVnodeBeforeUpdate)&&Or(lt,ne,Te,Be),Fi(R,!0);const Tt=pc(R),Nt=R.subTree;R.subTree=Tt,k(Nt,Tt,y(Nt.el),$e(Nt),R,ee,te),Te.el=Tt.el,at===null&&ZC(R,Tt.el),Ne&&Nn(Ne,ee),(lt=Te.props&&Te.props.onVnodeUpdated)&&Nn(()=>Or(lt,ne,Te,Be),ee)}else{let Te;const{el:_e,props:Ne}=$,{bm:ne,m:Be,parent:at}=R,lt=Ls($);if(Fi(R,!1),ne&&za(ne),!lt&&(Te=Ne&&Ne.onVnodeBeforeMount)&&Or(Te,at,$),Fi(R,!0),_e&&dt){const Tt=()=>{R.subTree=pc(R),dt(_e,R.subTree,R,ee,null)};lt?$.type.__asyncLoader().then(()=>!R.isUnmounted&&Tt()):Tt()}else{const Tt=R.subTree=pc(R);k(null,Tt,Y,oe,R,ee,te),$.el=Tt.el}if(Be&&Nn(Be,ee),!lt&&(Te=Ne&&Ne.onVnodeMounted)){const Tt=$;Nn(()=>Or(Te,at,Tt),ee)}($.shapeFlag&256||at&&Ls(at.vnode)&&at.vnode.shapeFlag&256)&&R.a&&Nn(R.a,ee),R.isMounted=!0,$=Y=oe=null}},be=R.effect=new nc(me,()=>dc(ce),R.scope),ce=R.update=()=>be.run();ce.id=R.uid,Fi(R,!0),ce()},V=(R,$,Y)=>{$.component=R;const oe=R.vnode.props;R.vnode=$,R.next=null,x_(R,$.props,oe,Y),E_(R,$.children,Y),mo(),rh(),vo()},ae=(R,$,Y,oe,ee,te,ve,me,be=!1)=>{const ce=R&&R.children,Te=R?R.shapeFlag:0,_e=$.children,{patchFlag:Ne,shapeFlag:ne}=$;if(Ne>0){if(Ne&128){Qe(ce,_e,Y,oe,ee,te,ve,me,be);return}else if(Ne&256){pe(ce,_e,Y,oe,ee,te,ve,me,be);return}}ne&8?(Te&16&&Oe(ce,ee,te),_e!==ce&&p(Y,_e)):Te&16?ne&16?Qe(ce,_e,Y,oe,ee,te,ve,me,be):Oe(ce,ee,te,!0):(Te&8&&p(Y,""),ne&16&&I(_e,Y,oe,ee,te,ve,me,be))},pe=(R,$,Y,oe,ee,te,ve,me,be)=>{R=R||nr,$=$||nr;const ce=R.length,Te=$.length,_e=Math.min(ce,Te);let Ne;for(Ne=0;Ne<_e;Ne++){const ne=$[Ne]=be?hi($[Ne]):Lr($[Ne]);k(R[Ne],ne,Y,null,ee,te,ve,me,be)}ce>Te?Oe(R,ee,te,!0,!1,_e):I($,Y,oe,ee,te,ve,me,be,_e)},Qe=(R,$,Y,oe,ee,te,ve,me,be)=>{let ce=0;const Te=$.length;let _e=R.length-1,Ne=Te-1;for(;ce<=_e&&ce<=Ne;){const ne=R[ce],Be=$[ce]=be?hi($[ce]):Lr($[ce]);if($i(ne,Be))k(ne,Be,Y,null,ee,te,ve,me,be);else break;ce++}for(;ce<=_e&&ce<=Ne;){const ne=R[_e],Be=$[Ne]=be?hi($[Ne]):Lr($[Ne]);if($i(ne,Be))k(ne,Be,Y,null,ee,te,ve,me,be);else break;_e--,Ne--}if(ce>_e){if(ce<=Ne){const ne=Ne+1,Be=neNe)for(;ce<=_e;)se(R[ce],ee,te,!0),ce++;else{const ne=ce,Be=ce,at=new Map;for(ce=Be;ce<=Ne;ce++){const Se=$[ce]=be?hi($[ce]):Lr($[ce]);Se.key!=null&&at.set(Se.key,ce)}let lt,Tt=0;const Nt=Ne-Be+1;let en=!1,Bt=0;const Kt=new Array(Nt);for(ce=0;ce=Nt){se(Se,ee,te,!0);continue}let He;if(Se.key!=null)He=at.get(Se.key);else for(lt=Be;lt<=Ne;lt++)if(Kt[lt-Be]===0&&$i(Se,$[lt])){He=lt;break}He===void 0?se(Se,ee,te,!0):(Kt[He-Be]=ce+1,He>=Bt?Bt=He:en=!0,k(Se,$[He],Y,null,ee,te,ve,me,be),Tt++)}const J=en?I_(Kt):nr;for(lt=J.length-1,ce=Nt-1;ce>=0;ce--){const Se=Be+ce,He=$[Se],pt=Se+1{const{el:te,type:ve,transition:me,children:be,shapeFlag:ce}=R;if(ce&6){et(R.component.subTree,$,Y,oe);return}if(ce&128){R.suspense.move($,Y,oe);return}if(ce&64){ve.move(R,$,Y,Re);return}if(ve===De){r(te,$,Y);for(let _e=0;_eme.enter(te),ee);else{const{leave:_e,delayLeave:Ne,afterLeave:ne}=me,Be=()=>r(te,$,Y),at=()=>{_e(te,()=>{Be(),ne&&ne()})};Ne?Ne(te,Be,at):at()}else r(te,$,Y)},se=(R,$,Y,oe=!1,ee=!1)=>{const{type:te,props:ve,ref:me,children:be,dynamicChildren:ce,shapeFlag:Te,patchFlag:_e,dirs:Ne}=R;if(me!=null&&Sc(me,null,Y,R,!0),Te&256){$.ctx.deactivate(R);return}const ne=Te&1&&Ne,Be=!Ls(R);let at;if(Be&&(at=ve&&ve.onVnodeBeforeUnmount)&&Or(at,$,R),Te&6)Ae(R.component,Y,oe);else{if(Te&128){R.suspense.unmount(Y,oe);return}ne&&Mi(R,null,$,"beforeUnmount"),Te&64?R.type.remove(R,$,Y,ee,Re,oe):ce&&(te!==De||_e>0&&_e&64)?Oe(ce,$,Y,!1,!0):(te===De&&_e&384||!ee&&Te&16)&&Oe(be,$,Y),oe&&Ce(R)}(Be&&(at=ve&&ve.onVnodeUnmounted)||ne)&&Nn(()=>{at&&Or(at,$,R),ne&&Mi(R,null,$,"unmounted")},Y)},Ce=R=>{const{type:$,el:Y,anchor:oe,transition:ee}=R;if($===De){ke(Y,oe);return}if($===Lc){x(R);return}const te=()=>{i(Y),ee&&!ee.persisted&&ee.afterLeave&&ee.afterLeave()};if(R.shapeFlag&1&&ee&&!ee.persisted){const{leave:ve,delayLeave:me}=ee,be=()=>ve(Y,te);me?me(R.el,te,be):be()}else te()},ke=(R,$)=>{let Y;for(;R!==$;)Y=m(R),i(R),R=Y;i($)},Ae=(R,$,Y)=>{const{bum:oe,scope:ee,update:te,subTree:ve,um:me}=R;oe&&za(oe),ee.stop(),te&&(te.active=!1,se(ve,R,$,Y)),me&&Nn(me,$),Nn(()=>{R.isUnmounted=!0},$),$&&$.pendingBranch&&!$.isUnmounted&&R.asyncDep&&!R.asyncResolved&&R.suspenseId===$.pendingId&&($.deps--,$.deps===0&&$.resolve())},Oe=(R,$,Y,oe=!1,ee=!1,te=0)=>{for(let ve=te;veR.shapeFlag&6?$e(R.component.subTree):R.shapeFlag&128?R.suspense.next():m(R.anchor||R.el),tt=(R,$,Y)=>{R==null?$._vnode&&se($._vnode,null,null,!0):k($._vnode||null,R,$,null,null,null,Y),rh(),ih(),$._vnode=R},Re={p:k,um:se,m:et,r:Ce,mt:de,mc:I,pc:ae,pbc:D,n:$e,o:e};let Ve,dt;return t&&([Ve,dt]=t(Re)),{render:tt,hydrate:Ve,createApp:T_(tt,Ve)}}function Fi({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ac(e,t,n=!1){const r=e.children,i=t.children;if(qe(r)&&qe(i))for(let o=0;o>1,e[n[l]]0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,s=n[o-1];o-- >0;)n[o]=s,s=t[s];return n}const P_=e=>e.__isTeleport,Ps=e=>e&&(e.disabled||e.disabled===""),Fh=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ec=(e,t)=>{const n=e&&e.to;return Ht(n)?t?t(n):null:n},D_={__isTeleport:!0,process(e,t,n,r,i,o,s,l,c,d){const{mc:p,pc:y,pbc:m,o:{insert:C,querySelector:b,createText:k,createComment:L}}=d,O=Ps(t.props);let{shapeFlag:B,children:X,dynamicChildren:x}=t;if(e==null){const z=t.el=k(""),Q=t.anchor=k("");C(z,n,r),C(Q,n,r);const g=t.target=Ec(t.props,b),I=t.targetAnchor=k("");g&&(C(I,g),s=s||Fh(g));const A=(D,H)=>{B&16&&p(X,D,H,i,o,s,l,c)};O?A(n,Q):g&&A(g,I)}else{t.el=e.el;const z=t.anchor=e.anchor,Q=t.target=e.target,g=t.targetAnchor=e.targetAnchor,I=Ps(e.props),A=I?n:Q,D=I?z:g;if(s=s||Fh(Q),x?(m(e.dynamicChildren,x,A,i,o,s,l),Ac(e,t,!0)):c||y(e,t,A,D,i,o,s,l,!1),O)I||hl(t,n,z,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const H=t.target=Ec(t.props,b);H&&hl(t,H,null,d,0)}else I&&hl(t,Q,g,d,1)}$h(t)},remove(e,t,n,r,{um:i,o:{remove:o}},s){const{shapeFlag:l,children:c,anchor:d,targetAnchor:p,target:y,props:m}=e;if(y&&o(p),(s||!Ps(m))&&(o(d),l&16))for(let C=0;C0?br||nr:null,M_(),Rs>0&&br&&br.push(e),e}function M(e,t,n,r,i,o){return Hh(T(e,t,n,r,i,o,!0))}function Ue(e,t,n,r,i){return Hh(ye(e,t,n,r,i,!0))}function ml(e){return e?e.__v_isVNode===!0:!1}function $i(e,t){return e.type===t.type&&e.key===t.key}const vl="__vInternal",jh=({key:e})=>e??null,yl=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ht(e)||yn(e)||ct(e)?{i:dn,r:e,k:t,f:!!n}:e:null);function T(e,t=null,n=null,r=0,i=null,o=e===De?0:1,s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&jh(t),ref:t&&yl(t),scopeId:sl,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:dn};return l?(Oc(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=Ht(n)?8:16),Rs>0&&!s&&br&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&br.push(c),c}const ye=F_;function F_(e,t=null,n=null,r=0,i=null,o=!1){if((!e||e===vh)&&(e=sr),ml(e)){const l=pi(e,t,!0);return n&&Oc(l,n),Rs>0&&!o&&br&&(l.shapeFlag&6?br[br.indexOf(e)]=l:br.push(l)),l.patchFlag|=-2,l}if(z_(e)&&(e=e.__vccOpts),t){t=$_(t);let{class:l,style:c}=t;l&&!Ht(l)&&(t.class=Ge(l)),It(c)&&(Gp(c)&&!qe(c)&&(c=Yt({},c)),t.style=St(c))}const s=Ht(e)?1:QC(e)?128:P_(e)?64:It(e)?4:ct(e)?2:0;return T(e,t,n,r,i,s,o,!0)}function $_(e){return e?Gp(e)||vl in e?Yt({},e):e:null}function pi(e,t,n=!1){const{props:r,ref:i,patchFlag:o,children:s}=e,l=t?bl(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&jh(l),ref:t&&t.ref?n&&i?qe(i)?i.concat(yl(t)):[i,yl(t)]:yl(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==De?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pi(e.ssContent),ssFallback:e.ssFallback&&pi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function qt(e=" ",t=0){return ye(gl,null,e,t)}function xe(e="",t=!1){return t?(E(),Ue(sr,null,e)):ye(sr,null,e)}function Lr(e){return e==null||typeof e=="boolean"?ye(sr):qe(e)?ye(De,null,e.slice()):typeof e=="object"?hi(e):ye(gl,null,String(e))}function hi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:pi(e)}function Oc(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(qe(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),Oc(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(vl in t)?t._ctx=dn:i===3&&dn&&(dn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ct(t)?(t={default:t,_ctx:dn},n=32):(t=String(t),r&64?(n=16,t=[qt(t)]):n=8);e.children=t,e.shapeFlag|=n}function bl(...e){const t={};for(let n=0;nln||dn;let Pc,xo,Uh="__VUE_INSTANCE_SETTERS__";(xo=Xu()[Uh])||(xo=Xu()[Uh]=[]),xo.push(e=>ln=e),Pc=e=>{xo.length>1?xo.forEach(t=>t(e)):xo[0](e)};const So=e=>{Pc(e),e.scope.on()},Bi=()=>{ln&&ln.scope.off(),Pc(null)};function Wh(e){return e.vnode.shapeFlag&4}let Ns=!1;function U_(e,t=!1){Ns=t;const{props:n,children:r}=e.vnode,i=Wh(e);k_(e,n,i,t),A_(e,r);const o=i?W_(e,t):void 0;return Ns=!1,o}function W_(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Yp(new Proxy(e.ctx,m_));const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?V_(e):null;So(e),mo();const o=di(r,e,0,[e.props,i]);if(vo(),Bi(),kp(o)){if(o.then(Bi,Bi),t)return o.then(s=>{Kh(e,s,t)}).catch(s=>{rl(s,e,0)});e.asyncDep=o}else Kh(e,o,t)}else qh(e,t)}function Kh(e,t,n){ct(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:It(t)&&(e.setupState=eh(t)),qh(e,n)}let Vh;function qh(e,t,n){const r=e.type;if(!e.render){if(!t&&Vh&&!r.render){const i=r.template||wc(e).template;if(i){const{isCustomElement:o,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:c}=r,d=Yt(Yt({isCustomElement:o,delimiters:l},s),c);r.render=Vh(i,d)}}e.render=r.render||vr}So(e),mo(),v_(e),vo(),Bi()}function K_(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Pn(e,"get","$attrs"),t[n]}}))}function V_(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return K_(e)},slots:e.slots,emit:e.emit,expose:t}}function Cl(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(eh(Yp(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Os)return Os[n](e)},has(t,n){return n in t||n in Os}}))}function q_(e,t=!0){return ct(e)?e.displayName||e.name:e.name||t&&e.__name}function z_(e){return ct(e)&&"__vccOpts"in e}const nn=(e,t)=>UC(e,t,Ns);function G_(e,t,n){const r=arguments.length;return r===2?It(t)&&!qe(t)?ml(t)?ye(e,null,[t]):ye(e,t):ye(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ml(n)&&(n=[n]),ye(e,t,n))}const Y_=Symbol.for("v-scx"),X_=()=>ko(Y_),J_="3.3.4",Z_="http://www.w3.org/2000/svg",Hi=typeof document<"u"?document:null,zh=Hi&&Hi.createElement("template"),Q_={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?Hi.createElementNS(Z_,e):Hi.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Hi.createTextNode(e),createComment:e=>Hi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Hi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,o){const s=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{zh.innerHTML=r?`${e}`:e;const l=zh.content;if(r){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function e1(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function t1(e,t,n){const r=e.style,i=Ht(n);if(n&&!i){if(t&&!Ht(t))for(const o in t)n[o]==null&&Dc(r,o,"");for(const o in n)Dc(r,o,n[o])}else{const o=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}const Gh=/\s*!important$/;function Dc(e,t,n){if(qe(n))n.forEach(r=>Dc(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=n1(e,t);Gh.test(n)?e.setProperty(go(r),n.replace(Gh,""),"important"):e[r]=n}}const Yh=["Webkit","Moz","ms"],Rc={};function n1(e,t){const n=Rc[t];if(n)return n;let r=Ar(t);if(r!=="filter"&&r in e)return Rc[t]=r;r=qa(r);for(let i=0;iNc||(l1.then(()=>Nc=0),Nc=Date.now());function c1(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;rr(f1(r,n.value),t,5,[r])};return n.value=e,n.attached=u1(),n}function f1(e,t){if(qe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const Zh=/^on[a-z]/,d1=(e,t,n,r,i=!1,o,s,l,c)=>{t==="class"?e1(e,r,i):t==="style"?t1(e,n,r):Wa(t)?qu(t)||s1(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):p1(e,t,r,i))?i1(e,t,r,o,s,l,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),r1(e,t,r,i))};function p1(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Zh.test(t)&&ct(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Zh.test(t)&&Ht(n)?!1:t in e}const mi="transition",Ms="animation",un=(e,{slots:t})=>G_(r_,h1(e),t);un.displayName="Transition";const Qh={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};un.props=Yt({},ch,Qh);const ji=(e,t=[])=>{qe(e)?e.forEach(n=>n(...t)):e&&e(...t)},eg=e=>e?qe(e)?e.some(t=>t.length>1):e.length>1:!1;function h1(e){const t={};for(const K in e)K in Qh||(t[K]=e[K]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=o,appearActiveClass:d=s,appearToClass:p=l,leaveFromClass:y=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:C=`${n}-leave-to`}=e,b=g1(i),k=b&&b[0],L=b&&b[1],{onBeforeEnter:O,onEnter:B,onEnterCancelled:X,onLeave:x,onLeaveCancelled:z,onBeforeAppear:Q=O,onAppear:g=B,onAppearCancelled:I=X}=t,A=(K,U,de)=>{Ui(K,U?p:l),Ui(K,U?d:s),de&&de()},D=(K,U)=>{K._isLeaving=!1,Ui(K,y),Ui(K,C),Ui(K,m),U&&U()},H=K=>(U,de)=>{const je=K?g:B,Pe=()=>A(U,K,de);ji(je,[U,Pe]),tg(()=>{Ui(U,K?c:o),vi(U,K?p:l),eg(je)||ng(U,r,k,Pe)})};return Yt(t,{onBeforeEnter(K){ji(O,[K]),vi(K,o),vi(K,s)},onBeforeAppear(K){ji(Q,[K]),vi(K,c),vi(K,d)},onEnter:H(!1),onAppear:H(!0),onLeave(K,U){K._isLeaving=!0;const de=()=>D(K,U);vi(K,y),y1(),vi(K,m),tg(()=>{K._isLeaving&&(Ui(K,y),vi(K,C),eg(x)||ng(K,r,L,de))}),ji(x,[K,de])},onEnterCancelled(K){A(K,!1),ji(X,[K])},onAppearCancelled(K){A(K,!0),ji(I,[K])},onLeaveCancelled(K){D(K),ji(z,[K])}})}function g1(e){if(e==null)return null;if(It(e))return[Mc(e.enter),Mc(e.leave)];{const t=Mc(e);return[t,t]}}function Mc(e){return tC(e)}function vi(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Ui(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function tg(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let m1=0;function ng(e,t,n,r){const i=e._endId=++m1,o=()=>{i===e._endId&&r()};if(n)return setTimeout(o,n);const{type:s,timeout:l,propCount:c}=v1(e,t);if(!s)return r();const d=s+"end";let p=0;const y=()=>{e.removeEventListener(d,m),o()},m=C=>{C.target===e&&++p>=c&&y()};setTimeout(()=>{p(n[b]||"").split(", "),i=r(`${mi}Delay`),o=r(`${mi}Duration`),s=rg(i,o),l=r(`${Ms}Delay`),c=r(`${Ms}Duration`),d=rg(l,c);let p=null,y=0,m=0;t===mi?s>0&&(p=mi,y=s,m=o.length):t===Ms?d>0&&(p=Ms,y=d,m=c.length):(y=Math.max(s,d),p=y>0?s>d?mi:Ms:null,m=p?p===mi?o.length:c.length:0);const C=p===mi&&/\b(transform|all)(,|$)/.test(r(`${mi}Property`).toString());return{type:p,timeout:y,propCount:m,hasTransform:C}}function rg(e,t){for(;e.lengthig(n)+ig(e[r])))}function ig(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function y1(){return document.body.offsetHeight}const Ao=e=>{const t=e.props["onUpdate:modelValue"]||!1;return qe(t)?n=>za(t,n):t};function b1(e){e.target.composing=!0}function og(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Vn={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e._assign=Ao(i);const o=r||i.props&&i.props.type==="number";gi(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=Ya(l)),e._assign(l)}),n&&gi(e,"change",()=>{e.value=e.value.trim()}),t||(gi(e,"compositionstart",b1),gi(e,"compositionend",og),gi(e,"change",og))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},o){if(e._assign=Ao(o),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(i||e.type==="number")&&Ya(e.value)===t))return;const s=t??"";e.value!==s&&(e.value=s)}},Fc={deep:!0,created(e,t,n){e._assign=Ao(n),gi(e,"change",()=>{const r=e._modelValue,i=Fs(e),o=e.checked,s=e._assign;if(qe(r)){const l=Ju(r,i),c=l!==-1;if(o&&!c)s(r.concat(i));else if(!o&&c){const d=[...r];d.splice(l,1),s(d)}}else if(ho(r)){const l=new Set(r);o?l.add(i):l.delete(i),s(l)}else s(lg(e,o))})},mounted:sg,beforeUpdate(e,t,n){e._assign=Ao(n),sg(e,t,n)}};function sg(e,{value:t,oldValue:n},r){e._modelValue=t,qe(t)?e.checked=Ju(t,r.props.value)>-1:ho(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=ks(t,lg(e,!0)))}const Eo={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=ho(t);gi(e,"change",()=>{const o=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?Ya(Fs(s)):Fs(s));e._assign(e.multiple?i?new Set(o):o:o[0])}),e._assign=Ao(r)},mounted(e,{value:t}){ag(e,t)},beforeUpdate(e,t,n){e._assign=Ao(n)},updated(e,{value:t}){ag(e,t)}};function ag(e,t){const n=e.multiple;if(!(n&&!qe(t)&&!ho(t))){for(let r=0,i=e.options.length;r-1:o.selected=t.has(s);else if(ks(Fs(o),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Fs(e){return"_value"in e?e._value:e.value}function lg(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const C1=["ctrl","shift","alt","meta"],_1={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&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>C1.some(n=>e[`${n}Key`]&&!t.includes(n))},rt=(e,t)=>(n,...r)=>{for(let i=0;i{$s(e,!1)}):$s(e,t))},beforeUnmount(e,{value:t}){$s(e,t)}};function $s(e,t){e.style.display=t?e._vod:"none"}const w1=Yt({patchProp:d1},Q_);let ug;function T1(){return ug||(ug=L_(w1))}const k1=(...e)=>{const t=T1().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=x1(r);if(!i)return;const o=t._component;!ct(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const s=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t};function x1(e){return Ht(e)?document.querySelector(e):e}/**! * Sortable 1.15.0 * @author RubaXa * @author owenm * @license MIT */function cg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ir(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function E1(e,t){if(e==null)return{};var n=A1(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var L1="1.15.0";function Xr(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Jr=Xr(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Bs=Xr(/Edge/i),fg=Xr(/firefox/i),Hs=Xr(/safari/i)&&!Xr(/chrome/i)&&!Xr(/android/i),dg=Xr(/iP(ad|od|hone)/i),pg=Xr(/chrome/i)&&Xr(/android/i),hg={capture:!1,passive:!1};function At(e,t,n){e.addEventListener(t,n,!Jr&&hg)}function _t(e,t,n){e.removeEventListener(t,n,!Jr&&hg)}function wl(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function O1(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Pr(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&wl(e,t):wl(e,t))||r&&e===n)return e;if(e===n)break}while(e=O1(e))}return null}var gg=/\s+/g;function qn(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(gg," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(gg," ")}}function Xe(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function Lo(e,t){var n="";if(typeof e=="string")n=e;else do{var r=Xe(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function mg(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i=o:s=i<=o,!s)return r;if(r===Dr())break;r=yi(r,!1)}return!1}function Oo(e,t,n,r){for(var i=0,o=0,s=e.children;o2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,o=E1(r,$1);Us.pluginEvent.bind(Je)(t,n,Ir({dragEl:Le,parentEl:jt,ghostEl:ut,rootEl:Mt,nextEl:Wi,lastDownEl:Tl,cloneEl:$t,cloneHidden:bi,dragStarted:Ks,putSortable:pn,activeSortable:Je.active,originalEvent:i,oldIndex:Po,oldDraggableIndex:Ws,newIndex:Gn,newDraggableIndex:Ci,hideGhostForTarget:Eg,unhideGhostForTarget:Lg,cloneNowHidden:function(){bi=!0},cloneNowShown:function(){bi=!1},dispatchSortableEvent:function(l){En({sortable:n,name:l,originalEvent:i})}},o))};function En(e){F1(Ir({putSortable:pn,cloneEl:$t,targetEl:Le,rootEl:Mt,oldIndex:Po,oldDraggableIndex:Ws,newIndex:Gn,newDraggableIndex:Ci},e))}var Le,jt,ut,Mt,Wi,Tl,$t,bi,Po,Gn,Ws,Ci,kl,pn,Do=!1,xl=!1,Sl=[],Ki,Cr,jc,Uc,wg,Tg,Ks,Ro,Vs,qs=!1,Al=!1,El,Cn,Wc=[],Kc=!1,Ll=[],Ol=typeof document<"u",Il=dg,kg=Bs||Jr?"cssFloat":"float",B1=Ol&&!pg&&!dg&&"draggable"in document.createElement("div"),xg=function(){if(Ol){if(Jr)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Sg=function(t,n){var r=Xe(t),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),o=Oo(t,0,n),s=Oo(t,1,n),l=o&&Xe(o),c=s&&Xe(s),d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+rn(o).width,p=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+rn(s).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&l.float&&l.float!=="none"){var y=l.float==="left"?"left":"right";return s&&(c.clear==="both"||c.clear===y)?"vertical":"horizontal"}return o&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||d>=i&&r[kg]==="none"||s&&r[kg]==="none"&&d+p>i)?"vertical":"horizontal"},H1=function(t,n,r){var i=r?t.left:t.top,o=r?t.right:t.bottom,s=r?t.width:t.height,l=r?n.left:n.top,c=r?n.right:n.bottom,d=r?n.width:n.height;return i===l||o===c||i+s/2===l+d/2},j1=function(t,n){var r;return Sl.some(function(i){var o=i[zn].options.emptyInsertThreshold;if(!(!o||$c(i))){var s=rn(i),l=t>=s.left-o&&t<=s.right+o,c=n>=s.top-o&&n<=s.bottom+o;if(l&&c)return r=i}}),r},Ag=function(t){function n(o,s){return function(l,c,d,p){var y=l.options.group.name&&c.options.group.name&&l.options.group.name===c.options.group.name;if(o==null&&(s||y))return!0;if(o==null||o===!1)return!1;if(s&&o==="clone")return o;if(typeof o=="function")return n(o(l,c,d,p),s)(l,c,d,p);var m=(s?l:c).options.group.name;return o===!0||typeof o=="string"&&o===m||o.join&&o.indexOf(m)>-1}}var r={},i=t.group;(!i||_l(i)!="object")&&(i={name:i}),r.name=i.name,r.checkPull=n(i.pull,!0),r.checkPut=n(i.put),r.revertClone=i.revertClone,t.group=r},Eg=function(){!xg&&ut&&Xe(ut,"display","none")},Lg=function(){!xg&&ut&&Xe(ut,"display","")};Ol&&!pg&&document.addEventListener("click",function(e){if(xl)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),xl=!1,!1},!0);var Vi=function(t){if(Le){t=t.touches?t.touches[0]:t;var n=j1(t.clientX,t.clientY);if(n){var r={};for(var i in t)t.hasOwnProperty(i)&&(r[i]=t[i]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[zn]._onDragOver(r)}}},U1=function(t){Le&&Le.parentNode[zn]._isOutsideThisEl(t.target)};function Je(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Yr({},t),e[zn]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Sg(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,l){s.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Je.supportPointer!==!1&&"PointerEvent"in window&&!Hs,emptyInsertThreshold:5};Us.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);Ag(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:B1,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?At(e,"pointerdown",this._onTapStart):(At(e,"mousedown",this._onTapStart),At(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(At(e,"dragover",this),At(e,"dragenter",this)),Sl.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Yr(this,R1())}Je.prototype={constructor:Je,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Ro=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,Le):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,r=this.el,i=this.options,o=i.preventOnFilter,s=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,c=(l||t).target,d=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||c,p=i.filter;if(X1(r),!Le&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||i.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Hs&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=Pr(c,i.draggable,r,!1),!(c&&c.animated)&&Tl!==c)){if(Po=ar(c),Ws=ar(c,i.draggable),typeof p=="function"){if(p.call(this,t,c,this)){En({sortable:n,rootEl:d,name:"filter",targetEl:c,toEl:r,fromEl:r}),Mn("filter",n,{evt:t}),o&&t.cancelable&&t.preventDefault();return}}else if(p&&(p=p.split(",").some(function(y){if(y=Pr(d,y.trim(),r,!1),y)return En({sortable:n,rootEl:y,name:"filter",targetEl:c,fromEl:r,toEl:r}),Mn("filter",n,{evt:t}),!0}),p)){o&&t.cancelable&&t.preventDefault();return}i.handle&&!Pr(d,i.handle,r,!1)||this._prepareDragStart(t,l,c)}}},_prepareDragStart:function(t,n,r){var i=this,o=i.el,s=i.options,l=o.ownerDocument,c;if(r&&!Le&&r.parentNode===o){var d=rn(r);if(Mt=o,Le=r,jt=Le.parentNode,Wi=Le.nextSibling,Tl=r,kl=s.group,Je.dragged=Le,Ki={target:Le,clientX:(n||t).clientX,clientY:(n||t).clientY},wg=Ki.clientX-d.left,Tg=Ki.clientY-d.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,Le.style["will-change"]="all",c=function(){if(Mn("delayEnded",i,{evt:t}),Je.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!fg&&i.nativeDraggable&&(Le.draggable=!0),i._triggerDragStart(t,n),En({sortable:i,name:"choose",originalEvent:t}),qn(Le,s.chosenClass,!0)},s.ignore.split(",").forEach(function(p){mg(Le,p.trim(),Vc)}),At(l,"dragover",Vi),At(l,"mousemove",Vi),At(l,"touchmove",Vi),At(l,"mouseup",i._onDrop),At(l,"touchend",i._onDrop),At(l,"touchcancel",i._onDrop),fg&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Le.draggable=!0),Mn("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Bs||Jr))){if(Je.eventCanceled){this._onDrop();return}At(l,"mouseup",i._disableDelayedDrag),At(l,"touchend",i._disableDelayedDrag),At(l,"touchcancel",i._disableDelayedDrag),At(l,"mousemove",i._delayedDragTouchMoveHandler),At(l,"touchmove",i._delayedDragTouchMoveHandler),s.supportPointer&&At(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(c,s.delay)}else c()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Le&&Vc(Le),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;_t(t,"mouseup",this._disableDelayedDrag),_t(t,"touchend",this._disableDelayedDrag),_t(t,"touchcancel",this._disableDelayedDrag),_t(t,"mousemove",this._delayedDragTouchMoveHandler),_t(t,"touchmove",this._delayedDragTouchMoveHandler),_t(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?At(document,"pointermove",this._onTouchMove):n?At(document,"touchmove",this._onTouchMove):At(document,"mousemove",this._onTouchMove):(At(Le,"dragend",this),At(Mt,"dragstart",this._onDragStart));try{document.selection?Dl(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Do=!1,Mt&&Le){Mn("dragStarted",this,{evt:n}),this.nativeDraggable&&At(document,"dragover",U1);var r=this.options;!t&&qn(Le,r.dragClass,!1),qn(Le,r.ghostClass,!0),Je.active=this,t&&this._appendGhost(),En({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Cr){this._lastX=Cr.clientX,this._lastY=Cr.clientY,Eg();for(var t=document.elementFromPoint(Cr.clientX,Cr.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Cr.clientX,Cr.clientY),t!==n);)n=t;if(Le.parentNode[zn]._isOutsideThisEl(t),n)do{if(n[zn]){var r=void 0;if(r=n[zn]._onDragOver({clientX:Cr.clientX,clientY:Cr.clientY,target:t,rootEl:n}),r&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);Lg()}},_onTouchMove:function(t){if(Ki){var n=this.options,r=n.fallbackTolerance,i=n.fallbackOffset,o=t.touches?t.touches[0]:t,s=ut&&Lo(ut,!0),l=ut&&s&&s.a,c=ut&&s&&s.d,d=Il&&Cn&&yg(Cn),p=(o.clientX-Ki.clientX+i.x)/(l||1)+(d?d[0]-Wc[0]:0)/(l||1),y=(o.clientY-Ki.clientY+i.y)/(c||1)+(d?d[1]-Wc[1]:0)/(c||1);if(!Je.active&&!Do){if(r&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))=0&&(En({rootEl:jt,name:"add",toEl:jt,fromEl:Mt,originalEvent:t}),En({sortable:this,name:"remove",toEl:jt,originalEvent:t}),En({rootEl:jt,name:"sort",toEl:jt,fromEl:Mt,originalEvent:t}),En({sortable:this,name:"sort",toEl:jt,originalEvent:t})),pn&&pn.save()):Gn!==Po&&Gn>=0&&(En({sortable:this,name:"update",toEl:jt,originalEvent:t}),En({sortable:this,name:"sort",toEl:jt,originalEvent:t})),Je.active&&((Gn==null||Gn===-1)&&(Gn=Po,Ci=Ws),En({sortable:this,name:"end",toEl:jt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Mn("nulling",this),Mt=Le=jt=ut=Wi=$t=Tl=bi=Ki=Cr=Ks=Gn=Ci=Po=Ws=Ro=Vs=pn=kl=Je.dragged=Je.ghost=Je.clone=Je.active=null,Ll.forEach(function(t){t.checked=!0}),Ll.length=jc=Uc=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Le&&(this._onDragOver(t),W1(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,r=this.el.children,i=0,o=r.length,s=this.options;ir.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function z1(e,t,n,r,i,o,s,l){var c=r?e.clientY:e.clientX,d=r?n.height:n.width,p=r?n.top:n.left,y=r?n.bottom:n.right,m=!1;if(!s){if(l&&Elp+d*o/2:cy-El)return-Vs}else if(c>p+d*(1-i)/2&&cy-d*o/2)?c>p+d/2?1:-1:0}function G1(e){return ar(Le){if(e==null||e===!1||e===""||e.trim()==="")return[];e=e.replace(/,/g,","),e=e.replace(/。/g,","),e=e.replace(/、/g,","),e=e.replace(/;/g,","),e=e.replace(/./g,","),e=e.replace(/\t/g,` `),e=e.replace(/\r/g,` `),e=e.replace(/\n+/g,` `),e=e.replace(/\>_\","{":"}"},i=Object.keys(r);let o=e.length,s="",l="",c="",d=0,p=[];for(let m=0;m]+\>/,L=null,O=[];for(;L=k.exec(m);){let B=L.index,X=B+L[0].length,x=m.substring(0,B),z=m.substring(X),Q=L[0];O.push(x),O.push(Q),m=z}O.push(m);for(let B of O)B===""||B.trim()===""||(B=B.replace(/\|\|\|EXPRESSION1\|\|\|/g,">_<"),y.push(B))}return p=y,p},Ys={name:"Physton/sd-webui-prompt-all-in-one",shortName:"sd-webui-prompt-all-in-one",github:"https://github.com/Physton/sd-webui-prompt-all-in-one",nameAssets:"Physton/sd-webui-prompt-all-in-one-assets",shortNameAssets:"sd-webui-prompt-all-in-one-assets",githubAssets:"https://github.com/Physton/sd-webui-prompt-all-in-one-assets",gitee:"https://gitee.com/Physton/sd-webui-prompt-all-in-one",docs:"https://aiodoc.physton.com",nameTagComplete:"DominikDoom/a1111-sd-webui-tagcomplete",shortNameTagComplete:"a1111-sd-webui-tagcomplete",githubTagComplete:"https://github.com/DominikDoom/a1111-sd-webui-tagcomplete",civitaiUrl:"https://civitai.com"};function Ml(e){"@babel/helpers - typeof";return Ml=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ml(e)}var Q1=/^\s+/,ew=/\s+$/;function Ie(e,t){if(e=e||"",t=t||{},e instanceof Ie)return e;if(!(this instanceof Ie))return new Ie(e,t);var n=tw(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}Ie.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,i,o,s,l;return n=t.r/255,r=t.g/255,i=t.b/255,n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),r<=.03928?s=r/12.92:s=Math.pow((r+.055)/1.055,2.4),i<=.03928?l=i/12.92:l=Math.pow((i+.055)/1.055,2.4),.2126*o+.7152*s+.0722*l},setAlpha:function(t){return this._a=Fg(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=Dg(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=Dg(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=Pg(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Pg(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return Rg(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return ow(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Ft(this._r,255)*100)+"%",g:Math.round(Ft(this._g,255)*100)+"%",b:Math.round(Ft(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Ft(this._r,255)*100)+"%, "+Math.round(Ft(this._g,255)*100)+"%, "+Math.round(Ft(this._b,255)*100)+"%)":"rgba("+Math.round(Ft(this._r,255)*100)+"%, "+Math.round(Ft(this._g,255)*100)+"%, "+Math.round(Ft(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:vw[Rg(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+Ng(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var o=Ie(t);r="#"+Ng(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,i=this._a<1&&this._a>=0,o=!n&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return Ie(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(uw,arguments)},brighten:function(){return this._applyModification(cw,arguments)},darken:function(){return this._applyModification(fw,arguments)},desaturate:function(){return this._applyModification(sw,arguments)},saturate:function(){return this._applyModification(aw,arguments)},greyscale:function(){return this._applyModification(lw,arguments)},spin:function(){return this._applyModification(dw,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(gw,arguments)},complement:function(){return this._applyCombination(pw,arguments)},monochromatic:function(){return this._applyCombination(mw,arguments)},splitcomplement:function(){return this._applyCombination(hw,arguments)},triad:function(){return this._applyCombination(Mg,[3])},tetrad:function(){return this._applyCombination(Mg,[4])}},Ie.fromRatio=function(e,t){if(Ml(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=Xs(e[r]));e=n}return Ie(e,t)};function tw(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,s=!1,l=!1;return typeof e=="string"&&(e=_w(e)),Ml(e)=="object"&&(Zr(e.r)&&Zr(e.g)&&Zr(e.b)?(t=nw(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Zr(e.h)&&Zr(e.s)&&Zr(e.v)?(r=Xs(e.s),i=Xs(e.v),t=iw(e.h,r,i),s=!0,l="hsv"):Zr(e.h)&&Zr(e.s)&&Zr(e.l)&&(r=Xs(e.s),o=Xs(e.l),t=rw(e.h,r,o),s=!0,l="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=Fg(n),{ok:s,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function nw(e,t,n){return{r:Ft(e,255)*255,g:Ft(t,255)*255,b:Ft(n,255)*255}}function Pg(e,t,n){e=Ft(e,255),t=Ft(t,255),n=Ft(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o,s,l=(r+i)/2;if(r==i)o=s=0;else{var c=r-i;switch(s=l>.5?c/(2-r-i):c/(r+i),r){case e:o=(t-n)/c+(t1&&(y-=1),y<1/6?d+(p-d)*6*y:y<1/2?p:y<2/3?d+(p-d)*(2/3-y)*6:d}if(t===0)r=i=o=n;else{var l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;r=s(c,l,e+1/3),i=s(c,l,e),o=s(c,l,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function Dg(e,t,n){e=Ft(e,255),t=Ft(t,255),n=Ft(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o,s,l=r,c=r-i;if(s=r===0?0:c/r,r==i)o=0;else{switch(r){case e:o=(t-n)/c+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(Ie(r));return o}function mw(e,t){t=t||6;for(var n=Ie(e).toHsv(),r=n.h,i=n.s,o=n.v,s=[],l=1/t;t--;)s.push(Ie({h:r,s:i,v:o})),o=(o+l)%1;return s}Ie.mix=function(e,t,n){n=n===0?0:n||50;var r=Ie(e).toRgb(),i=Ie(t).toRgb(),o=n/100,s={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return Ie(s)},Ie.readability=function(e,t){var n=Ie(e),r=Ie(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},Ie.isReadable=function(e,t,n){var r=Ie.readability(e,t),i,o;switch(o=!1,i=ww(n),i.level+i.size){case"AAsmall":case"AAAlarge":o=r>=4.5;break;case"AAlarge":o=r>=3;break;case"AAAsmall":o=r>=7;break}return o},Ie.mostReadable=function(e,t,n){var r=null,i=0,o,s,l,c;n=n||{},s=n.includeFallbackColors,l=n.level,c=n.size;for(var d=0;di&&(i=o,r=Ie(t[d]));return Ie.isReadable(e,r,{level:l,size:c})||!s?r:(n.includeFallbackColors=!1,Ie.mostReadable(e,["#fff","#000"],n))};var ef=Ie.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},vw=Ie.hexNames=yw(ef);function yw(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Fg(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ft(e,t){bw(e)&&(e="100%");var n=Cw(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Fl(e){return Math.min(1,Math.max(0,e))}function Yn(e){return parseInt(e,16)}function bw(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function Cw(e){return typeof e=="string"&&e.indexOf("%")!=-1}function _r(e){return e.length==1?"0"+e:""+e}function Xs(e){return e<=1&&(e=e*100+"%"),e}function $g(e){return Math.round(parseFloat(e)*255).toString(16)}function Bg(e){return Yn(e)/255}var wr=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Zr(e){return!!wr.CSS_UNIT.exec(e)}function _w(e){e=e.replace(Q1,"").replace(ew,"").toLowerCase();var t=!1;if(ef[e])e=ef[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=wr.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=wr.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=wr.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=wr.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=wr.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=wr.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=wr.hex8.exec(e))?{r:Yn(n[1]),g:Yn(n[2]),b:Yn(n[3]),a:Bg(n[4]),format:t?"name":"hex8"}:(n=wr.hex6.exec(e))?{r:Yn(n[1]),g:Yn(n[2]),b:Yn(n[3]),format:t?"name":"hex"}:(n=wr.hex4.exec(e))?{r:Yn(n[1]+""+n[1]),g:Yn(n[2]+""+n[2]),b:Yn(n[3]+""+n[3]),a:Bg(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=wr.hex3.exec(e))?{r:Yn(n[1]+""+n[1]),g:Yn(n[2]+""+n[2]),b:Yn(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function ww(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}const he={loraRegex:/^\$/,lycoRegex:/^\$/,weightNumRegex:/(.*):(\-?[0-9\.]+)/,weightNumRegexEN:/(.*):\s*(\-?[0-9\.]+)/,weightNumRegexCN:/(.*):\s*(\-?[0-9\.]+)/,bracketsEN:[{"(":"(",")":")"},{"[":"[","]":"]"},{"{":"{","}":"}"},{"<":"<",">":">"}],bracketsCN:[{"(":"(",")":")"},{"【":"[","】":"]"},{"《":"<","》":">"},{"「":"{","」":"}"},{"『":"{","』":"}"},{"〈":"<","〉":">"},{"﹝":"(","﹞":")"},{"﹛":"{","﹜":"}"},{"﹙":"(","﹚":")"}],replaceTag(e){return typeof e!="string"||e===""||(e=this.replaceBrackets(e),this.weightNumRegexEN.test(e)&&(e=e.replace(this.weightNumRegexEN,"$1:$2")),this.weightNumRegexCN.test(e)&&(e=e.replace(this.weightNumRegexCN,"$1:$2"))),e},replaceBrackets(e){const t=e.length;if(t===0)return e;let n={};this.bracketsCN.forEach(o=>{for(const s in o)n[s]=o[s]});let r=e[0],i=e[t-1];return typeof n[r]<"u"&&(e=n[r]+e.substring(1)),typeof n[i]<"u"&&(e=e.substring(0,t-1)+n[i]),e},hasBrackets(e){const t=e.length;if(t===0)return!1;let n=[];this.bracketsEN.forEach(o=>{let s=[];for(const l in o)s.push(l);n.push(s)}),this.bracketsCN.forEach(o=>{let s=[];for(const l in o)s.push(l);n.push(s)});let r=e[0],i=e[t-1];for(const o of n)if(o[0]===r&&o[1]===i)return o;return!1},splitTag(e){let t={left:"",value:"",right:""},n=e.match(/^([\(\<\{\[]+)(.*)$/);return!n||(t.left=n[1],e=n[2],n=e.match(/((\:[0-9\.]+)?[\)\>\}\]]+)$/),!n)?(t.value=e,t):(t.right=n[1],e=e.substring(0,e.length-t.right.length),t.value=e,t)},splitTags(e,t=!1,n=!1){return Z1(e,t,n)},canTranslate(e){return!(e.trim()===""||e[0]==="<"&&e[e.length-1]===">"||/^[0-9`~!@#$%^&*()_+\-=\[\]{}\\|;:'",.\/<>?]+$/.test(e)||/^[a-zA-Z]$/.test(e))},isEnglish(e){const t=e.length;if(e[0]==="<"&&e[t-1]===">")return!0;for(let n=0;n127)return!1;return!0},canOneTranslate(e){const t=["zh_CN","zh_HK","zh_TW","ar_SA","ja_JP","ko_KR","ru_RU"];return t.push("am_ET","hy_AM","as_IN","bn_BD","ba_RU","bg_BG","prs_AF","dv_MV","el_GR","gu_IN","he_IL","hi_IN","iu_CA","kn_IN","kk_KZ","km_KH","ku_Arab_IQ","ky_KG","lo_LA","mk_MK","ml_IN","mr_IN","mn_Cyrl_MN","mn_Mong_CN","my_MM","ne_NP","or_IN","ps_AF","fa_IR","pa_Guru_IN","sr_Cyrl_RS","ta_IN","tt_Latn_RU","te_IN","th_TH","bo_CN","ti_ET","uk_UA","ur_PK","ug_Arab_CN","vi_VN"),!!t.includes(e)},isEnglishByLangCode(e,t){if(!this.canOneTranslate(t))return-1;const n=e.length;for(let r=0;r127)return 0;return 1},isSameLang(e,t){if(e===t)return!0;let n=e.toLowerCase(),r=t.toLowerCase();return n===r||(e=e.replace("-","_"),t=t.replace("-","_"),e===t)||(e=e.split("_")[0],t=t.split("_")[0],e===t)},getLang(e,t,n){return n[t]&&n[t].lang&&n[t].lang[e]?this.replaceGlobals(n[t].lang[e],t):n.en_US&&n.en_US.lang&&n.en_US.lang[e]?this.replaceGlobals(n.en_US.lang[e],"en_US"):this.replaceGlobals(e,t)},replaceGlobals(e,t){for(let n in Ys){let r=Ys[n];if(n==="docs")switch(t){case"zh_CN":r+="/zh-CN";break;case"zh_HK":case"zh_TW":r+="/zh-TW";break;case"ru_RU":r+="/ru";break}e=e.replace(new RegExp(`{{${n}}}`,"g"),r)}return e},escapeHtml(e){return e.replace(/[&<>'"]/g,t=>({"&":"&","<":"<",">":">","'":"'",'"':"""})[t]||t)},unescapeHtml(e){return e.replace(/&|<|>|'|"/g,t=>({"&":"&","<":"<",">":">","'":"'",""":'"'})[t]||t)},getTagWeightNum(e){const t=e.match(this.weightNumRegex);return t?parseFloat(t[2]):1},getTagIncWeight(e){return this.countLayers(e,"(",")")},getTagDecWeight(e){return this.countLayers(e,"[","]")},countLayers(e,t="(",n=")"){let r=0;if(e.length<2)return r;for(;;){let i=e[0],o=e[e.length-1];if(i===t&&o===n)r++,e=e.slice(1,e.length-1);else break}return r},setLayers(e,t=0,n="(",r=")",i=""){for(;;){let o=e[0],s=e[e.length-1];if(o===n&&s===r)e=e.slice(1,e.length-1);else break}return t===0?e:n.repeat(t)+e+i+r.repeat(t)},getTranslateApiInfo(e,t){let n=!1;for(const r in t)for(const i in r.children)if(i.key===e){n=i;break}return n},isEqualTags(e,t,n=[]){if(t.length!==e.length)return!1;for(let r=0;r{setTimeout(()=>{hideResults(e)},n)})},formatTime(e,t=!0){let n=new Date(e),r=n.getFullYear(),i=n.getMonth()+1;i<10&&(i="0"+i);let o=n.getDate();o<10&&(o="0"+o);let s=n.getHours();s<10&&(s="0"+s);let l=n.getMinutes();l<10&&(l="0"+l);let c=n.getSeconds();return c<10&&(c="0"+c),t?`${r}/${i}/${o} ${s}:${l}:${c}`:`${i}/${o} ${s}:${l}:${c}`},apiUrl(){let e;return e=window.location.origin+window.location.pathname,e+=e.endsWith("/")?"":"/",e+="physton_prompt/",e},removeCSS(e,t=!0){if(!e)return;let n=null;t?n=this.gradioApp().querySelector("#"+e):n=document.querySelector("#"+e),n&&n.remove()},loadCSS(e,t="",n=!0,r=!1,i=!0){n&&this.removeCSS(t,i);let o=this.apiUrl()+"styles?file="+encodeURIComponent(e);r||(o+="&t="+new Date().getTime());let s=document.createElement("link");s.id=t,s.rel="stylesheet",s.href=o,i?this.gradioApp().appendChild(s):document.body.appendChild(s)},swapElement(e,t){let n=e.parentNode,r=t.parentNode,i=e.nextSibling,o=t.nextSibling;n.insertBefore(t,i),r.insertBefore(e,o)},insertBefore(e,t){t.parentNode.insertBefore(e,t)},insertAfter(e,t){t.nextSibling?t.parentNode.insertBefore(e,t.nextSibling):t.parentNode.appendChild(e)},gradioContainer:null,gradioApp(){if(this.gradioContainer)return this.gradioContainer;const e=document.getElementsByTagName("gradio-app"),t=e.length==0?null:e[0].shadowRoot;if(t){const n=t.querySelectorAll(".gradio-container");for(let r=0;r=this._config.preview;if(o)r.postMessage({results:U,workerId:c.WORKER_ID,finished:je});else if(g(this._config.chunk)&&!D){if(this._config.chunk(U,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);U=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(U.data),this._completeResults.errors=this._completeResults.errors.concat(U.errors),this._completeResults.meta=U.meta),this._completed||!je||!g(this._config.complete)||U&&U.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),je||U&&U.meta.paused||this._nextChunk(),U}this._halted=!0},this._sendError=function(A){g(this._config.error)?this._config.error(A):o&&this._config.error&&r.postMessage({workerId:c.WORKER_ID,error:A,finished:!1})}}function y(I){var A;(I=I||{}).chunkSize||(I.chunkSize=c.RemoteChunkSize),p.call(this,I),this._nextChunk=i?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(D){this._input=D,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(A=new XMLHttpRequest,this._config.withCredentials&&(A.withCredentials=this._config.withCredentials),i||(A.onload=Q(this._chunkLoaded,this),A.onerror=Q(this._chunkError,this)),A.open(this._config.downloadRequestBody?"POST":"GET",this._input,!i),this._config.downloadRequestHeaders){var D=this._config.downloadRequestHeaders;for(var H in D)A.setRequestHeader(H,D[H])}if(this._config.chunkSize){var K=this._start+this._config.chunkSize-1;A.setRequestHeader("Range","bytes="+this._start+"-"+K)}try{A.send(this._config.downloadRequestBody)}catch(U){this._chunkError(U.message)}i&&A.status===0&&this._chunkError()}},this._chunkLoaded=function(){A.readyState===4&&(A.status<200||400<=A.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:A.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(D){var H=D.getResponseHeader("Content-Range");return H===null?-1:parseInt(H.substring(H.lastIndexOf("/")+1))}(A),this.parseChunk(A.responseText)))},this._chunkError=function(D){var H=A.statusText||D;this._sendError(new Error(H))}}function m(I){var A,D;(I=I||{}).chunkSize||(I.chunkSize=c.LocalChunkSize),p.call(this,I);var H=typeof FileReader<"u";this.stream=function(K){this._input=K,D=K.slice||K.webkitSlice||K.mozSlice,H?((A=new FileReader).onload=Q(this._chunkLoaded,this),A.onerror=Q(this._chunkError,this)):A=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(K.target.result)},this._chunkError=function(){this._sendError(A.error)}}function C(I){var A;p.call(this,I=I||{}),this.stream=function(D){return A=D,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var D,H=this._config.chunkSize;return H?(D=A.substring(0,H),A=A.substring(H)):(D=A,A=""),this._finished=!A,this.parseChunk(D)}}}function b(I){p.call(this,I=I||{});var A=[],D=!0,H=!1;this.pause=function(){p.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){p.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(K){this._input=K,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){H&&A.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),A.length?this.parseChunk(A.shift()):D=!0},this._streamData=Q(function(K){try{A.push(typeof K=="string"?K:K.toString(this._config.encoding)),D&&(D=!1,this._checkIsFinished(),this.parseChunk(A.shift()))}catch(U){this._streamError(U)}},this),this._streamError=Q(function(K){this._streamCleanUp(),this._sendError(K)},this),this._streamEnd=Q(function(){this._streamCleanUp(),H=!0,this._streamData("")},this),this._streamCleanUp=Q(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function k(I){var A,D,H,K=Math.pow(2,53),U=-K,de=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,je=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,Pe=this,V=0,ae=0,pe=!1,Qe=!1,et=[],se={data:[],errors:[],meta:{}};if(g(I.step)){var Ce=I.step;I.step=function(Re){if(se=Re,Oe())Ae();else{if(Ae(),se.data.length===0)return;V+=Re.data.length,I.preview&&V>I.preview?D.abort():(se.data=se.data[0],Ce(se,Pe))}}}function ke(Re){return I.skipEmptyLines==="greedy"?Re.join("").trim()==="":Re.length===1&&Re[0].length===0}function Ae(){return se&&H&&(tt("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),H=!1),I.skipEmptyLines&&(se.data=se.data.filter(function(Re){return!ke(Re)})),Oe()&&function(){if(!se)return;function Re(dt,R){g(I.transformHeader)&&(dt=I.transformHeader(dt,R)),et.push(dt)}if(Array.isArray(se.data[0])){for(var Ve=0;Oe()&&Ve=et.length?"__parsed_extra":et[$]),I.transform&&(ee=I.transform(ee,oe)),ee=$e(oe,ee),oe==="__parsed_extra"?(Y[oe]=Y[oe]||[],Y[oe].push(ee)):Y[oe]=ee}return I.header&&($>et.length?tt("FieldMismatch","TooManyFields","Too many fields: expected "+et.length+" fields but parsed "+$,ae+R):$=ve.length/2?`\r `:"\r"}(Re,R)),H=!1,I.delimiter)g(I.delimiter)&&(I.delimiter=I.delimiter(Re),se.meta.delimiter=I.delimiter);else{var $=function(oe,ee,te,ve,me){var be,ce,Te,_e;me=me||[","," ","|",";",c.RECORD_SEP,c.UNIT_SEP];for(var Ne=0;Ne=de)return Bt(!0)}else for(ne=V,V++;;){if((ne=pe.indexOf(A,ne+1))===-1)return et||tt.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:$e.length,index:V}),Nt();if(ne===se-1)return Nt(pe.substring(V,ne).replace(Ne,A));if(A!==Pe||pe[ne+1]!==Pe){if(A===Pe||ne===0||pe[ne-1]!==Pe){Te!==-1&&Te=de)return Bt(!0);break}tt.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:$e.length,index:V}),ne++}}else ne++}return Nt();function lt(J){$e.push(J),Ve=V}function Tt(J){var Se=0;if(J!==-1){var He=pe.substring(ne+1,J);He&&He.trim()===""&&(Se=He.length)}return Se}function Nt(J){return et||(J===void 0&&(J=pe.substring(V)),Re.push(J),V=se,lt(Re),Oe&&Kt()),Bt()}function en(J){V=J,lt(Re),Re=[],_e=pe.indexOf(H,V)}function Bt(J){return{data:$e,errors:tt,meta:{delimiter:D,linebreak:H,aborted:ae,truncated:!!J,cursor:Ve+(Qe||0)}}}function Kt(){U(Bt()),$e=[],tt=[]}},this.abort=function(){ae=!0},this.getCharIndex=function(){return V}}function B(I){var A=I.data,D=s[A.workerId],H=!1;if(A.error)D.userError(A.error,A.file);else if(A.results&&A.results.data){var K={abort:function(){H=!0,X(A.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:x,resume:x};if(g(D.userStep)){for(var U=0;U{}},translateApis:{type:Array,default:()=>[]},translateApi:{type:String,default:""},translateApiConfig:{type:Object},tagCompleteFile:{type:String,default:""},onlyCsvOnAuto:{type:Boolean,default:!1},groupTagsTranslate:{type:Boolean,default:!0},groupTagsTranslateCache:{type:Object,default:()=>({toEn:new Map,toLocal:new Map})}},data(){return{cancelMultiTranslate:!1,globals:Ys}},computed:{langName(){for(const e in this.languages){const t=this.languages[e];if(t.code===this.languageCode)return t.name}return item.name}},methods:{getLang(e){return he.getLang(e,this.languageCode,this.languages)},replaceGlobals(e){return he.replaceGlobals(e,this.languageCode)},getCSV(e=null,t=!1){return window.tagCompleteFileCache=window.tagCompleteFileCache||{},window.tagCompleteFileLoading=window.tagCompleteFileLoading||{},new Promise((n,r)=>{if(e=e||this.tagCompleteFile,!t&&window.tagCompleteFileCache[e]){n(window.tagCompleteFileCache[e]);return}if(window.tagCompleteFileLoading[e]){const s=setInterval(()=>{window.tagCompleteFileLoading[e]||(clearInterval(s),n(window.tagCompleteFileCache[e]))},100);return}window.tagCompleteFileLoading[e]=!0;let i={toEn:new Map,toLocal:new Map},o=(s,l)=>{[s,s.replace(/\_/g," "),s.replace(/\-/g," ")].forEach(d=>i.toLocal.set(d,l)),i.toEn.set(l,s)};if(!e&&typeof translations=="object"&&translations instanceof Map){translations.forEach((s,l)=>{o(l,s)}),window.tagCompleteFileLoading[e]=!1,window.tagCompleteFileCache[e]=i,n(i);return}if(!e){window.tagCompleteFileLoading[e]=!1,window.tagCompleteFileCache[e]=i,r(this.getLang("not_found_csv_file"));return}this.gradioAPI.getCSV(e).then(s=>{s=kw.parse(s,{header:!1,skipEmptyLines:!0}),s.data.forEach(l=>{if(l.length<2)return;let c=l[0].trim(),d=l[1].trim();c===""||d===""||o(c,d)}),window.tagCompleteFileLoading[e]=!1,window.tagCompleteFileCache[e]=i,n(i)}).catch(s=>{window.tagCompleteFileLoading[e]=!1,window.tagCompleteFileCache[e]=i,s.response&&s.response.status===404?r(this.getLang("not_found_csv_file")):r(s.message)})})},_translateToLocalBy(e,t,n=!1){e=e.trim().toLowerCase();let r=i=>{var o;return((o=i.join)==null?void 0:o.call(i," / "))??i};if(t.has(e))return r(t.get(e));{const i=e.split(",").map(l=>l.trim());let o=[],s=[];if(i.forEach(l=>{t.has(l)?o.push(r(t.get(l))):n&&l.length&&s.push(l)}),o.length>0&&!s.length)return o.join(", ")}return""},async translateToLocalByCSV(e,t=null,n=!1,r=!1){let i=await this.getCSV(t,n);return this._translateToLocalBy(e,i.toLocal,r)},async translateToEnByCSV(e,t=null,n=!1){let r=await this.getCSV(t,n);return this._toEn(e,r.toEn)},async translateToLocalByGroupTags(e,t=!1){return console.log("translateToLocalByGroupTags",e),this._translateToLocalBy(e,this.groupTagsTranslateCache.toLocal,t)},async translateToEnByGroupTags(e){return this._toEn(e,this.groupTagsTranslateCache.toEn)},_toEn(e,t){return e=e.trim().toLowerCase(),t.has(e)?t.get(e):""}}},qi=Number.isNaN||window.isNaN,xw=/^-?(?:\d+|\d+\.\d+|\.\d+)(?:[eE][-+]?\d+)?$/,Sw=/\.\d*(?:0|9){10}\d*$/,jg=(e,t=1e11)=>Sw.test(String(e))?Math.round(e*t)/t:e,Aw=Rn({name:"VueNumberInput",props:{attrs:{type:Object,default:void 0},center:Boolean,controls:Boolean,disabled:Boolean,inputtable:{type:Boolean,default:!0},inline:Boolean,max:{type:Number,default:1/0},min:{type:Number,default:-1/0},name:{type:String,default:void 0},placeholder:{type:String,default:void 0},readonly:Boolean,rounded:Boolean,size:{type:String,default:void 0},step:{type:Number,default:1},modelValue:{type:Number,default:NaN}},emits:["update:modelValue"],data(){return{value:NaN}},computed:{increasable(){return qi(this.value)||this.valuethis.min}},watch:{modelValue:{immediate:!0,handler(e,t){!(qi(e)&&typeof t>"u")&&e!==this.value&&this.setValue(e)}}},methods:{isNaN:qi,change(e){this.setValue(e.target.value)},paste(e){const t=e.clipboardData||window.clipboardData;t&&!xw.test(t.getData("text"))&&e.preventDefault()},decrease(){if(this.decreasable){let{value:e}=this;qi(e)&&(e=0),this.setValue(jg(e-this.step))}},increase(){if(this.increasable){let{value:e}=this;qi(e)&&(e=0),this.setValue(jg(e+this.step))}},setValue(e){const t=this.value;let n=typeof e!="number"?parseFloat(e):e;qi(n)||(this.min<=this.max&&(n=Math.min(this.max,Math.max(this.min,n))),this.rounded&&(n=Math.round(n))),this.value=n,n===t&&(this.$refs.input.value=String(n)),this.$emit("update:modelValue",n,t)}}}),hn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},Ew=["disabled"],Lw=["name","value","min","max","step","readonly","disabled","placeholder"],Ow=["disabled"];function Iw(e,t,n,r,i,o){return E(),M("div",{class:Ge(["vue-number-input",{"vue-number-input--inline":e.inline,"vue-number-input--center":e.center,"vue-number-input--controls":e.controls,[`vue-number-input--${e.size}`]:e.size}])},[e.controls?(E(),M("button",{key:0,class:"vue-number-input__button vue-number-input__button--minus",type:"button",tabindex:"-1",disabled:e.disabled||e.readonly||!e.decreasable,onClick:t[0]||(t[0]=rt((...s)=>e.decrease&&e.decrease(...s),["prevent"]))},null,8,Ew)):xe("",!0),T("input",bl({ref:"input",class:"vue-number-input__input"},e.attrs,{type:"number",name:e.name,value:isNaN(e.value)?"":e.value,min:e.min,max:e.max,step:e.step,readonly:e.readonly||!e.inputtable,disabled:e.disabled||!e.decreasable&&!e.increasable,placeholder:e.placeholder,autocomplete:"off",onChange:t[1]||(t[1]=(...s)=>e.change&&e.change(...s)),onPaste:t[2]||(t[2]=(...s)=>e.paste&&e.paste(...s))}),null,16,Lw),e.controls?(E(),M("button",{key:1,class:"vue-number-input__button vue-number-input__button--plus",type:"button",tabindex:"-1",disabled:e.disabled||e.readonly||!e.increasable,onClick:t[3]||(t[3]=rt((...s)=>e.increase&&e.increase(...s),["prevent"]))},null,8,Ow)):xe("",!0)],2)}const Pw=hn(Aw,[["render",Iw]]),Dw={data(){return{autocompleteResults:null,autocompleteResultsParent:null,showAppendList:!1,appendListStyle:{top:0,left:0},appendListSelected:null,appendListChildSelected:null,appendList:[{type:"wrap",name:"line_break_character",icon:"wrap",children:[]}],favorites:[],autoInputPrompt:"disabled",autoInputPromptKey:""}},computed:{appendListChildItemTags(){return this.appendListSelected===null?[]:this.appendListChildSelected===null?[]:this.appendList[this.appendListSelected].type!=="favorite"&&this.appendList[this.appendListSelected].type!=="history"?[]:this.appendList[this.appendListSelected].children[this.appendListChildSelected].tags}},mounted(){this.initAutoInputPrompt(),[{name:"txt2img",type:"prompt",key:"txt2img",neg:!1},{name:"txt2img",type:"negative_prompt",key:"txt2img_neg",neg:!0},{name:"img2img",type:"prompt",key:"img2img",neg:!1},{name:"img2img",type:"negative_prompt",key:"img2img_neg",neg:!0}].forEach(t=>{t.neg===this.neg&&this.appendList.push({type:"favorite",name:["favorite",t.name],icon:"favorite",key:t.key,dataKey:"favorite."+t.key,children:[]})})},methods:{onUnfoldClick(){this.hidePanel&&this.$nextTick(()=>{this.onResize()}),this.$emit("update:hidePanel",!this.hidePanel)},onTranslatesToLocalClick(){if(this.tags.length===0)return;if(this.loading.all_local){this.cancelMultiTranslate=!0,this.loading.all_local=!1;return}this.loading.all_local=!0;let e=[];for(const t in this.tags)this.tags[t].type&&this.tags[t].type!=="text"||e.push(t);return this.translates(e,!0,!0).finally(()=>{this.loading.all_local=!1,this.updateTags()})},onTranslatesToEnglishClick(){if(this.tags.length===0)return;if(this.loading.all_en){this.cancelMultiTranslate=!0,this.loading.all_en=!1;return}this.loading.all_en=!0;let e=[];for(const t in this.tags)this.tags[t].type&&this.tags[t].type!=="text"||e.push(t);this.translates(e,!1,!0).finally(()=>{this.loading.all_en=!1,this.updateTags()})},onCopyAllTagsClick(){this.copy(this.prompt)},onDeleteAllTagsClick(){confirm(this.getLang("delete_all_keywords_confirm"))&&(this.tags=[],this.updateTags())},appendListItemName(e){let t=[];if(typeof e.name=="object")for(let n of e.name)t.push(this.getLang(n));else t=[this.getLang(e.name)];return t.join(" / ")},onAppendTagFocus(e){if(this.$refs.promptTagAppend.value===""||this.$refs.promptTagAppend.value.trim()===""){this.appendListStyle={top:e.target.offsetTop+e.target.offsetHeight+"px",left:e.target.offsetLeft+"px"},this.appendListSelected=null,this.appendListChildSelected=null,this.showAppendList=!0;let t=[];this.appendList.forEach(n=>{typeof n.dataKey=="string"&&t.push(n.dataKey)}),this.gradioAPI.getDatas(t).then(n=>{this.appendList.forEach(r=>{typeof r.dataKey=="string"&&(r.children=n[r.dataKey]||[],r.children.reverse())})})}this._setTextareaFocus()},onAppendTagBlur(e){setTimeout(()=>{this.showAppendList=!1},300)},selectAppendList(e=!0){this.appendList.length!==0&&(this.appendListSelected===null?this.appendListSelected=0:e?(this.appendListSelected++,this.appendListSelected>=this.appendList.length&&(this.appendListSelected=0)):(this.appendListSelected--,this.appendListSelected<0&&(this.appendListSelected=this.appendList.length-1)),this.appendListChildSelected=null)},selectAppendListChild(e=!0){this.appendList.length!==0&&this.appendListSelected!==null&&this.appendList[this.appendListSelected].children.length!==0&&(this.appendListChildSelected===null?this.appendListChildSelected=0:e?(this.appendListChildSelected++,this.appendListChildSelected>=this.appendList[this.appendListSelected].children.length&&(this.appendListChildSelected=0)):(this.appendListChildSelected--,this.appendListChildSelected<0&&(this.appendListChildSelected=this.appendList[this.appendListSelected].children.length-1)),this.scrollAppendListChild())},scrollAppendListChild(){this.appendListSelected!==null&&(this.appendListChildSelected===0||this.appendListChildSelected===null?this.$refs.promptAppendListChildren[this.appendListSelected].scrollTop=0:this.$refs.promptAppendListChild[this.appendListChildSelected].scrollIntoView({behavior:"smooth",block:"center"}))},onAppendTagKeyDown(e,t=null){if(!(e.keyCode===38||e.keyCode===40))if(e.keyCode===13){if(this.getAutocompleteResults()&&(this.autocompleteResultsParent&&this.autocompleteResultsParent.style.display==="flex"||this.autocompleteResults.style.display==="none")&&this.getAutocompleteResultsSelected()){let r=this.getAutocompleteResultsSelectedText();setTimeout(()=>{t=this.$refs.promptTagAppend.value,r?t=r:(r=this.getAutocompleteResultsSelectedText(),r&&(t=r)),this.onAppendTagKeyDown(e,t)},300);return}let n=this.$refs.promptTagAppend.value;if(this.$refs.promptTagAppend.value="",this.showAppendList=!0,console.log(n,t),t)n=n.replace(/\s*,\s*$/,"").trim(),he.hasBrackets(n)&&(n=he.replaceBrackets(n)),this._appendTag(n,t),this.updateTags();else{he.hasBrackets(n)?(n=he.replaceBrackets(n),n=[n]):n=he.splitTags(n,this.autoBreakBeforeWrap,this.autoBreakAfterWrap);let r=[];n.forEach(i=>{let o=-1;i===` `?o=this._appendTag(` `,` `,!1,-1,"wrap"):o=this._appendTag(i),o!==-1&&r.push(o)}),this.autoTranslateByIndexes(r)}}else this.removeAutocompleteResultsSelected()},autoTranslateByIndexes(e){this.updatePrompt(),this.autoTranslateToEnglish||this.autoTranslateToLocal?this.$nextTick(()=>{let t=!(this.tagCompleteFile&&this.onlyCsvOnAuto);this.autoTranslateToEnglish?this.translates(e,!1,t).finally(()=>{this.updateTags()}):this.autoTranslateToLocal&&this.translates(e,!0,t).finally(()=>{this.updateTags()})}):this.updateTags()},onAppendTagKeyUp(e){this.$refs.promptTagAppend.value===""||this.$refs.promptTagAppend.value.trim()===""?(this.$refs.promptTagAppend.value="",this.showAppendList=!0,e.keyCode===38||e.keyCode===40?this.appendListChildSelected===null?this.selectAppendList(e.keyCode===40):this.selectAppendListChild(e.keyCode===40):e.keyCode===37||e.keyCode===39?this.appendListSelected!==null&&(e.keyCode===37?(this.appendListChildSelected=null,this.scrollAppendListChild()):this.appendList[this.appendListSelected].children.length===0?this.appendListChildSelected=null:(this.appendListChildSelected=0,this.scrollAppendListChild())):e.keyCode===13&&(this._appendTagByList(),this.scrollAppendListChild(),this.appendListSelected=null,this.appendListChildSelected=null)):this.showAppendList=!1},onAppendGroupClick(e,t,n){if(e!==null){if(this.appendListSelected=e,t===null){if(this.appendList[this.appendListSelected].children.length>0)return}else this.appendListChildSelected=t;this._appendTagByList()}},onAppendListChildMouseLeave(e,t,n){this.appendListSelected=null,this.appendListChildSelected=null},onAppendListChildMouseEnter(e,t,n){this.appendListSelected=e,this.appendListChildSelected=t},_appendTagByList(){if(this.appendListSelected===null)return;const e=this.appendList[this.appendListSelected];let t=null;e.children.length>0&&this.appendListChildSelected!==null&&(t=e.children[this.appendListChildSelected]);let n=[];switch(e.type){case"wrap":n.push({value:` `,localValue:` `,disabled:!1,type:"wrap"});break;case"lora":break;case"favorite":case"history":t&&t.tags.forEach(r=>{n.push({value:r.value,localValue:r.localValue,disabled:r.disabled,type:r.type||"text"})});break}n.length<=0||(n.forEach(r=>{this._appendTag(r.value,r.localValue,r.disabled,-1,r.type)}),this.updateTags())},getAutocompleteResults(){if(!this.autocompleteResults){const e=this.$refs.promptTagAppend.parentElement.querySelector(".autocompleteResults");if(e){this.autocompleteResults=e,this.autocompleteResults.getAttribute("data-mousemove")!=="true"&&(this.autocompleteResults.setAttribute("data-mousemove","true"),this.autocompleteResults.addEventListener("mousemove",n=>{this.bindAutocompleteResultsClick()}));const t=this.$refs.promptTagAppend.parentElement.querySelector(".autocompleteParent");t&&(this.autocompleteResultsParent=t)}}return this.autocompleteResults},removeAutocompleteResultsSelected(){const e=this.getAutocompleteResults();return e?(e.querySelectorAll("li").forEach(t=>{t.classList.remove("selected")}),!0):!1},getAutocompleteResultsSelected(){const e=this.getAutocompleteResults();if(!e)return null;const t=e.querySelector("li.selected");return t||null},getAutocompleteResultsSelectedText(e=null){if(!e&&(e=this.getAutocompleteResultsSelected(),!e))return null;const r=e.querySelector(".acListItem").innerText.match(/\[(.+?)\]/);return r?r[1]:null},bindAutocompleteResultsClick(){if(this.getAutocompleteResults(),!this.autocompleteResults)return;this.autocompleteResults.querySelectorAll("li").forEach(t=>{t.getAttribute("physton-on-clicked")!=="true"&&(t.setAttribute("physton-on-clicked","true"),t.addEventListener("click",()=>{this.onAutocompleteResultsClicked(t)}))})},onAutocompleteResultsClicked(e){const t=this.getAutocompleteResultsSelectedText(e);setTimeout(()=>{let n=this.$refs.promptTagAppend.value.replace(/,\s*$/,"");this.$refs.promptTagAppend.value="",n=n.replace(/\s*,\s*$/,"").trim(),he.hasBrackets(n)&&(n=he.replaceBrackets(n)),this._appendTag(n,t),this.updateTags()},300)},onSettingBoxMouseEnter(){this.favorites=typeof window.phystonPromptfavorites=="object"?window.phystonPromptfavorites:[]},getCurrentTypeFavorites(){this.favorites=typeof window.phystonPromptfavorites=="object"?window.phystonPromptfavorites:[];let e=[];return this.favorites.forEach(t=>{if(this.neg){if(t.type!=="negative_prompt")return}else if(t.type!=="prompt")return;e.push(t)}),e},onAutoInputPromptChange(){this.gradioAPI.setData(this.autoInputPromptKey,this.autoInputPrompt).then(()=>{this.$toastr.success(this.getLang("success"))}).catch(()=>{this.$toastr.error(this.getLang("failed"))})},initAutoInputPrompt(){this.autoInputPromptKey="autoInputPrompt-"+this.name,this.gradioAPI.getData(this.autoInputPromptKey).then(e=>{if(e!==null)if(this.autoInputPrompt=e,this.autoInputPrompt==="last")this.gradioAPI.getLatestHistory(this.historyKey).then(t=>{this.useHistory(t)});else{const t=()=>{if(typeof window.phystonPromptfavorites=="object"&&window.phystonPromptfavorites.length>0){for(let n of window.phystonPromptfavorites)for(let r of n.list)if(r.id===this.autoInputPrompt){this.useFavorite(r);return}return}setTimeout(t,100)};setTimeout(t,100)}})}}},Rw={data(){return{dropStartX:0,dropStartY:0,dropEndX:0,dropEndY:0,dropOffsetX:0,dropOffsetY:0,dropIsSelecting:!1,dropIsStart:!1,dropIsEnd:!1,dropArea:{top:0,left:0,width:0,height:0},dropTags:[],dropTimeId:0}},methods:{_dropOver(){this.dropIsSelecting=!1,this.dropIsStart=!1,this.dropIsEnd=!1,this.dropTags=[];for(let e=0;ethis.dropArea.left+this.dropArea.width||i>this.dropArea.top+this.dropArea.height)?(e.push(n.getAttribute("data-id")),n.classList.add("drop-selected")):n.classList.remove("drop-selected"),this.dropTags=e}},onDropMouseUp(e){this.dropIsSelecting=!1,this.dropIsStart=!1,this.dropIsEnd=!0,this.$refs.dropSelectBtns.style.left=this.$refs.dropSelectBox.style.left,this.$refs.dropSelectBtns.style.top=this.$refs.dropSelectBox.style.top},_getDropTags(){let e=[];return this.dropTags.forEach(t=>{let n=this.tags.find(r=>r.id===t);n&&e.push(n)}),e},_getDropIndexes(){let e=[];return this.dropTags.forEach(t=>{let n=this.tags.findIndex(r=>r.id===t);n!==-1&&e.push(n)}),e},_getDropTagsEle(){let e=[];return this.dropTags.forEach(t=>{let n=this.$refs.promptTagsList.querySelector(`.prompt-tag[data-id="${t}"]`);n&&e.push(n)}),e},onDropCopy(){let e=this._getDropTags();this._dropOver();let t=this.genPrompt(e,!0);this.copy(t)},onDropFavorite(){let e=this._getDropTags();this._dropOver();let t=this.genPrompt(e,!0);this.gradioAPI.pushFavorite(this.favoriteKey,e,t,"").then(n=>{n?(this.$toastr.success(this.getLang("success")),this.$emit("refreshFavorites",this.favoriteKey)):this.$toastr.error(this.getLang("failed"))}).catch(n=>{this.$toastr.error(this.getLang("failed"))})},onDropDisable(){let e=this._getDropTags();this._dropOver(),e.forEach(t=>{t.disabled=!0}),this.updateTags()},onDropEnable(){let e=this._getDropTags();this._dropOver(),e.forEach(t=>{t.disabled=!1}),this.updateTags()},onDropDelete(){let e=this._getDropIndexes();this._dropOver(),e.sort((t,n)=>n-t),e.forEach(t=>{this.tags.splice(t,1)}),this.updateTags()}}};var nf="__autosizeInputGhost",Nw={" ":"nbsp","<":"lt",">":"gt"};function Mw(e){return"&"+Nw[e]+";"}function Fw(e){return e.replace(/\s|<|>/g,Mw)}function $w(){var e=document.createElement("div");return e.id=nf,e.style.cssText="display:inline-block;height:0;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:nowrap;",document.body.appendChild(e),e}var Bw=function(e,t){var n=window.getComputedStyle(e),r="box-sizing:"+n.boxSizing+";border-left:"+n.borderLeftWidth+" solid red;border-right:"+n.borderRightWidth+" solid red;font-family:"+n.fontFamily+";font-feature-settings:"+n.fontFeatureSettings+";font-kerning:"+n.fontKerning+";font-size:"+n.fontSize+";font-stretch:"+n.fontStretch+";font-style:"+n.fontStyle+";font-variant:"+n.fontVariant+";font-variant-caps:"+n.fontVariantCaps+";font-variant-ligatures:"+n.fontVariantLigatures+";font-variant-numeric:"+n.fontVariantNumeric+";font-weight:"+n.fontWeight+";letter-spacing:"+n.letterSpacing+";margin-left:"+n.marginLeft+";margin-right:"+n.marginRight+";padding-left:"+n.paddingLeft+";padding-right:"+n.paddingRight+";text-indent:"+n.textIndent+";text-transform:"+n.textTransform;function i(){var s=e.value||e.getAttribute("placeholder")||"",l=document.getElementById(nf)||$w();l.style.cssText+=r,l.innerHTML=Fw(s);var c=window.getComputedStyle(l).width;return e.style.width=c,c}e.addEventListener("input",i);var o=i();return t&&t.minWidth&&o!=="0px"&&(e.style.minWidth=o),function(){e.removeEventListener("input",i);var s=document.getElementById(nf);s&&s.parentNode.removeChild(s)}};const Hw=$l(Bw),jw={data(){return{tagClickTimeId:0,showExtendId:""}},mounted(){he.gradioApp().addEventListener("mousemove",()=>{this.$refs.highlightPrompt.hide()})},methods:{_setTag(e){if(typeof e.type=="string"&&e.type==="wrap")e.weightNum=1,e.incWeight=0,e.decWeight=0;else if(e.weightNum=he.getTagWeightNum(e.value),e.incWeight=he.getTagIncWeight(e.value),e.decWeight=he.getTagDecWeight(e.value),e.originalValue=e.value,!e.value.match(he.loraRegex)&&!e.value.match(he.lycoRegex)){let t=e.value;const n=he.hasBrackets(t);(n[0]==="("&&n[1]===")"||n[0]==="["&&n[1]==="]")&&(t=he.setLayers(t,0,n[0],n[1]),e.originalValue=t.replace(he.weightNumRegex,"$1"))}this._setTagClass(e),this.$nextTick(()=>{this._setTagHeight(e)})},_setTagHeight(e){let t=10,n=setInterval(()=>{if(t--,t<=0&&clearInterval(n),!this.$refs["promptTagValue-"+e.id]||!this.$refs["promptTagValue-"+e.id][0])return!1;clearInterval(n);let r=this.$refs["promptTagValue-"+e.id][0],i=r.offsetHeight;r.parentNode.style.height=i+"px",this.$refs["promptTagEdit-"+e.id]&&(this.$refs["promptTagEdit-"+e.id][0].style.height=i+"px"),this.$refs["promptTagDelete-"+e.id]&&(this.$refs["promptTagDelete-"+e.id][0].style.height=i+"px")},50)},_getTagType(e){},_setTagClass(e){if(e.isLora=!1,e.loraExists=!1,e.isLyco=!1,e.lycoExists=!1,e.isEmbedding=!1,!(typeof e.type=="string"&&e.type==="wrap")){const n=e.value.match(he.loraRegex);if(n&&(e.isLora=!0,e.loraName=n[1],this.loraExists(n[1])!==!1&&(e.loraExists=!0)),!e.isLora){const r=e.value.match(he.lycoRegex);r&&(e.isLyco=!0,e.lycoName=r[1],this.lycoExists(r[1])!==!1&&(e.lycoExists=!0))}if(!e.isLora&&!e.isLyco){const r=this.embeddingExists(e.value);if(r!==!1)e.isEmbedding=!0,e.value=r,e.embeddingName=r;else{const i=this.embeddingExists(e.originalValue);i!==!1&&(e.isEmbedding=!0,e.embeddingName=i)}}}let t=["prompt-tag-value"];return e.isLora?(t.push("lora-tag"),e.loraExists||t.push("lora-not-exists")):e.isLyco?(t.push("lyco-tag"),e.lycoExists||t.push("lyco-not-exists")):e.isEmbedding?t.push("embedding-tag"):this.neg&&t.push("neg-tag"),e.classes=t,t},_setTagById(e,t=null,n=null){let r=this.tags.find(i=>i.id===e);return r?(t!==null&&(r.value=t),n!==null&&(r.localValue=n),r):!1},_isTagBlacklist(e){var t,n,r,i,o;if(typeof e.type=="string"&&e.type==="wrap")return!1;if(e.isLora){if((t=this.blacklist.lora)!=null&&t.includes(e.loraName.toLowerCase()))return!0}else if(e.isLyco){if((n=this.blacklist.lycoris)!=null&&n.includes(e.lycoName.toLowerCase()))return!0}else if(e.isEmbedding){if((r=this.blacklist.embedding)!=null&&r.includes(e.embeddingName.toLowerCase()))return!0}else if(this.neg){if((i=this.blacklist.negative_prompt)!=null&&i.includes(e.originalValue.toLowerCase()))return!0}else if((o=this.blacklist.prompt)!=null&&o.includes(e.originalValue.toLowerCase()))return!0;return!1},_appendTag(e,t="",n=!1,r=-1,i="text"){if(e==="")return-1;const o=Date.now()+(Math.random()*1e6).toFixed(0);let s={id:o,value:e==null||e===!1?"":e,localValue:t==null||t===!1?"":t,disabled:n,type:i};return this._setTag(s),this._isTagBlacklist(s)?-1:(r>=0?this.tags.splice(r,0,s):r=this.tags.push(s),this.$nextTick(()=>{this.$refs["promptTagEdit-"+o]&&Hw(this.$refs["promptTagEdit-"+o][0])}),r-1)},renderTag(e){let t=this.tags.find(r=>r.id===e);if(!t)return"";let n=t.value;if(n==="BREAK"&&(this.autoBreakBeforeWrap||this.autoBreakAfterWrap))n='
---------------------
BREAK
---------------------
';else if(n=he.escapeHtml(n),t.incWeight>0){n=he.setLayers(n,0,"(",")"),n='
'+n+"
";let r='
'+"(".repeat(t.incWeight)+"
",i='
'+")".repeat(t.incWeight)+"
";n=r+n+i}else if(t.decWeight>0){n=he.setLayers(n,0,"[","]"),n='
'+n+"
";let r='
'+"[".repeat(t.decWeight)+"
",i='
'+"]".repeat(t.decWeight)+"
";n=r+n+i}else n='
'+n+"
";return n},isFavorite(e){let t=this.tags.find(n=>n.id===e);if(!t)return!1;if(typeof window.phystonPromptfavorites=="object"){for(const n of window.phystonPromptfavorites)if(n.key===this.favoriteKey){for(const r of n.list)if(r.tags.length===1&&r.tags[0].value===t.value)return r.id}}return!1},onLoraPopupUseKeywords(e){let t=[];for(let n of e){let r=n.toLowerCase();if(!this.tags.find(o=>o.value.toLowerCase()===r)){let o=this._appendTag(n,"",!1,-1,"text");o!==-1&&t.push(o)}}t.length&&this.autoTranslateByIndexes(t)},onTagMouseEnter(e){let t=this.tags.find(n=>n.id===e);if(!t)return!1;if(t.isFavorite=this.isFavorite(t.id),this.hotkey.hover==="extend"&&(this.showExtendId=e),t.isLora||t.isLyco||t.isEmbedding){let n=t.isLora?t.loraName:t.isLyco?t.lycoName:t.embeddingName;this.$emit("showExtraNetworks",this.$refs["promptTagValue-"+t.id][0],n,this.onLoraPopupUseKeywords)}},onTagMouseMove(e){let t=this.tags.find(n=>n.id===e);if(!t)return!1;this.$refs.highlightPrompt.show(t)},onTagMouseLeave(e){if(!this.tags.find(n=>n.id===e))return!1;this.hotkey.hover==="extend"&&(this.showExtendId=""),this.$emit("hideExtraNetworks")},onTagClick(e){this.tagClickTimeId&&clearTimeout(this.tagClickTimeId),this.tagClickTimeId=setTimeout(()=>{switch(this.hotkey.click){case"edit":this._handleEditTag(e);break;case"disable":this._handleDisableTag(e);break;case"extend":this._handleHoverTag(e);break}clearTimeout(this.tagClickTimeId)},250)},onTagDblclick(e){switch(clearTimeout(this.tagClickTimeId),this.hotkey.dblClick){case"edit":this._handleEditTag(e);break;case"disable":this._handleDisableTag(e);break;case"extend":this._handleHoverTag(e);break}},onTagRightClick(e,t){switch(this.hotkey.rightClick){case"edit":this._handleEditTag(e);break;case"disable":this._handleDisableTag(e);break;case"extend":this._handleHoverTag(e);break}},_handleEditTag(e){let t=this.tags.find(n=>n.id===e);if(!t)return!1;this.editing={},this.editing[t.id]=!0,this.$forceUpdate(),this.$nextTick(()=>{const n=this.$refs["promptTagEdit-"+t.id][0];n.focus(),n.dispatchEvent(new Event("input"))})},_handleDisableTag(e){let t=this.tags.find(n=>n.id===e);if(!t)return!1;this.onDisabledTagClick(t.id)},_handleHoverTag(e){if(!this.tags.find(n=>n.id===e))return!1;this.showExtendId=e},onTagInputBlur(e){let t=this.tags.find(n=>n.id===e);if(!t)return!1;this.editing[t.id]=!1},onTagInputKeyDown(e,t){if(t.keyCode===13){let n=this.tags.find(r=>r.id===e);if(!n)return!1;this.editing[n.id]=!1,n.value!==t.target.value&&(n.value=t.target.value,this._setTag(n),this.updateTags())}},onTagInputChange(e,t){let n=this.tags.find(r=>r.id===e);if(!n)return!1;n.value!==t.target.value&&(n.value=t.target.value,this._setTag(n),this.updateTags())},onTagWeightNumChange(e,t){let n=this.tags.find(s=>s.id===e);if(!n)return!1;if(t=typeof t=="number"||typeof a=="string"?t:t.target.value,n.weightNum==t)return;let r=t,i=n.value,o=n.localValue;if(r!==0){if(r===1&&!this.autoKeepWeightOne){const s=he.hasBrackets(i);s[0]==="("&&s[1]===")"&&(i=he.setLayers(i,0,s[0],s[1]),o!==""&&(o=he.setLayers(o,0,s[0],s[1]))),i=i.replace(he.weightNumRegex,"$1"),o!==""&&(o=o.replace(he.weightNumRegex,"$1"))}else{if(!he.weightNumRegex.test(i)){let s=he.hasBrackets(i);s?(i=he.setLayers(i,1,s[0],s[1],":"+r),o!==""&&(o=he.setLayers(o,1,s[0],s[1],":"+r))):(i=i+":"+r,o!==""&&(o=o+":"+r))}he.hasBrackets(i)||(i=he.setLayers(i,1,"(",")"),o!==""&&(o=he.setLayers(o,1,"(",")")))}i!==n.value&&(n.value=i,o!==""&&(n.localValue=o),this._setTag(n))}else this.autoKeepWeightZero?(n.value=i.replace(he.weightNumRegex,"$1:0"),o!==""&&(n.localValue=n.localValue.replace(he.weightNumRegex,"$1:0"))):(n.value=i.replace(he.weightNumRegex,"$1"),o!==""&&(n.localValue=n.localValue.replace(he.weightNumRegex,"$1")));n.weightNum=r,this.updateTags()},onDeleteTagClick(e){let t=this.tags.find(r=>r.id===e);if(!t)return!1;let n=this.tags.indexOf(t);this.tags.splice(n,1),this.updateTags()},onFavoriteTagClick(e){let t=this.tags.find(r=>r.id===e);if(!t)return!1;let n=this.isFavorite(t.id);n?this.gradioAPI.unFavorite(this.favoriteKey,n).then(r=>{r&&(t.isFavorite=!1,this.$emit("refreshFavorites",this.favoriteKey))}):this.gradioAPI.pushFavorite(this.favoriteKey,[t],t.value,t.localValue===""?t.value:t.localValue).then(r=>{r&&(t.isFavorite=!0,this.$emit("refreshFavorites",this.favoriteKey))})},onDisabledTagClick(e){let t=this.tags.find(n=>n.id===e);t&&(t.disabled=!t.disabled,this.updateTags())},onIncWeightClick(e,t){let n=this.tags.find(s=>s.id===e);if(!n)return;let r=n.value,i=n.localValue;r=he.setLayers(r,0,"[","]"),i!==""&&(i=he.setLayers(i,0,"[","]"));let o=n.incWeight;o+=t,o<0&&(o=0),n.incWeight=o,n.decWeight=0,r=he.setLayers(r,o,"(",")"),i!==""&&(i=he.setLayers(i,o,"(",")")),n.value=r,i!==""&&(n.localValue=i),this.updateTags()},onDecWeightClick(e,t){let n=this.tags.find(s=>s.id===e);if(!n)return;let r=n.value,i=n.localValue;r=he.setLayers(r,0,"(",")"),i!==""&&(i=he.setLayers(i,0,"(",")"));let o=n.decWeight;o+=t,o<0&&(o=0),n.incWeight=0,n.decWeight=o,r=he.setLayers(r,o,"[","]"),i!==""&&(i=he.setLayers(i,o,"[","]")),n.value=r,i!==""&&(n.localValue=i),this.updateTags()},onWrapTagClick(e){let t=this.tags.find(o=>o.id===e);if(!t)return;let n=this.tags.indexOf(t),r=this._appendTag(` `,` `,!1,-1,"wrap"),i=this.tags[r];this.tags.splice(r,1),this.tags.splice(n+1,0,i),this.updateTags()},onTranslateToLocalClick(e){let t=this.tags.find(r=>r.id===e);if(!t)return;let n=this.tags.indexOf(t);this.loading[t.id+"_local"]||this.translates([n],!0,!0).finally(()=>{this.updateTags()})},onTranslateToEnglishClick(e){let t=this.tags.find(r=>r.id===e);if(!t)return;let n=this.tags.indexOf(t);this.loading[t.id+"_en"]||this.translates([n],!1,!0).finally(()=>{this.updateTags()})},onBlacklistClick(e){let t=this.tags.find(r=>r.id===e);if(!t)return;if(!this.cancelBlacklistConfirm){let r=this.getLang("confirm_add_blacklist").replace("{0}",t.value)+` `+this.getLang("blacklist_desc");if(!confirm(r))return}let n=JSON.parse(JSON.stringify(this.blacklist));t.isLora?n.lora.push(t.loraName):t.isLyco?n.lycoris.push(t.lycoName):t.isEmbedding?n.embedding.push(t.embeddingName):this.neg?n.negative_prompt.push(t.originalValue):n.prompt.push(t.originalValue),this.gradioAPI.setData("blacklist",n),this.$emit("update:blacklist",n,this.cancelBlacklistConfirm),this.tags.forEach(r=>{r.value===t.value&&this.onDeleteTagClick(r.id)})}}},Uw={data(){return{groupTagsActive:"",subGroupTagsActive:""}},watch:{groupTags:{handler(){(!this.groupTagsActive||!this.subGroupTagsActive)&&(this.groupTagsActive="favorite",this.subGroupTagsActive="favorite-"+this.favoriteKey),this._setGroupTagItemWidth()},deep:!0,immediate:!0},favorites:{handler(){},deep:!0,immediate:!0}},mounted(){this.gradioAPI.getData("groupTagsActive-"+this.name).then(e=>{e!==null&&typeof e=="object"&&(this.groupTagsActive=e.groupTagsActive,this.subGroupTagsActive=e.subGroupTagsActive)})},methods:{saveGroupActive(){this.gradioAPI.setData("groupTagsActive-"+this.name,{groupTagsActive:this.groupTagsActive,subGroupTagsActive:this.subGroupTagsActive})},activeGroupTab(e){e==="favorite"?(this.groupTagsActive="favorite",this.subGroupTagsActive="favorite-"+this.favoriteKey,e=0):(this.groupTagsActive=this.groupTags[e].tabKey,this.subGroupTagsActive=this.groupTags[e].groups[0].tabKey,e+=1),this.saveGroupActive();let t=this.$refs.groupTabsHeader.children[e].offsetLeft-this.$refs.groupTabsHeader.offsetWidth/2+this.$refs.groupTabsHeader.children[e].offsetWidth/2;this.$refs.groupTabsHeader.scrollTo({left:t,behavior:"smooth"}),this._setGroupTagItemWidth()},activeSubGroupTab(e,t){e==="favorite"?this.subGroupTagsActive="favorite-"+t:this.subGroupTagsActive=this.groupTags[e].groups[t].tabKey,this.saveGroupActive(),this._setGroupTagItemWidth()},_setGroupTagItemWidth(){this.$nextTick(()=>{if(!this.$refs.groupTagItem)return;this.$refs.groupTagItem.forEach((t,n)=>{t.style.width="auto"});let e=0;this.$refs.groupTagItem.forEach((t,n)=>{e=Math.max(e,t.offsetWidth)}),e>0&&this.$refs.groupTagItem.forEach((t,n)=>{t.style.width=e+"px"})})},onClickHideGroupTags(){this.$emit("update:hideGroupTags",!this.hideGroupTags)},onClickGroupTag(e,t){let n=[];this.tags.forEach((r,i)=>{r.originalValue===t&&n.push(i)}),n.length?n.reverse().forEach(r=>{this.tags.splice(r,1)}):this._appendTag(t,e,!1,-1,"text"),this.updateTags()},onClickGroupTagFavorite(e){e.tags.forEach(t=>{this._appendTag(t.value,t.localValue,t.disabled,-1,t.type)}),this.updateTags()},getGroupTagTooltip(e,t){let n="";return e&&e!==t&&(n+=e+"
"),n+=t,n},getGroupTagStyle(e,t,n){let r={},i=he.getTagsColorKey(e,t),o="";this.groupTagsColor[i]&&(o=this.groupTagsColor[i],he.isColorTransparent(o)&&(o="")),o&&(r={background:o});for(let s of this.tags)if(s.originalValue===n){r.filter="grayscale(1)";break}return r},getTagsColorKey(e,t){return he.getTagsColorKey(e,t)},onTagsColorChange(e){this.$emit("update:groupTagsColor",this.groupTagsColor)},onClickResetTagsColor(e){for(let t of this.groupTags)for(let n of t.groups){if(n.type&&n.typ=="wrap")continue;let r=he.getTagsColorKey(t.name,n.name);e===r&&(this.groupTagsColor[e]=Lt(he.fitterInputColor(n.color)))}this.onTagsColorChange(e)},onClickClearTagsColor(e){this.groupTagsColor[e]=Lt("rgba(0,0,0,0)"),this.onTagsColorChange(e)},getTagColorStyle(e){if(e.isLora||e.isLyco||e.isEmbedding)return{};if(!this.groupTagsColorKeyCache[e.value])return{};let t=this.groupTagsColorKeyCache[e.value];if(!this.groupTagsColor[t])return{};let n=this.groupTagsColor[t];return he.isColorTransparent(n)?{}:{background:n}}}},Ww={name:"IconSvg",props:{name:{type:String,required:!0},svgName:{type:String,default:""}},data(){return{svgCode:""}},watch:{name:{handler:function(e,t){this.getSvg()},immediate:!1}},mounted(){this.getSvg()},methods:{getSvg(){if(!this.name)return;let e=this.svgName||this.name;if(window.loadingSvg=window.loadingSvg||{},window.isLoadSvg=window.isLoadSvg||{},window.isLoadSvg[e]){this.svgCode=localStorage.getItem("iconSVG-"+e);return}if(localStorage.getItem("iconSVG-"+e)&&(this.svgCode=localStorage.getItem("iconSVG-"+e)),window.loadingSvg[e]){const t=setInterval(()=>{window.loadingSvg[e]||(clearInterval(t),this.svgCode=localStorage.getItem("iconSVG-"+e))},10);return}window.loadingSvg[e]=!0,window.iconSvgHash||(window.iconSvgHash=new Date().getTime()),this.gradioAPI.styles("icons/"+e+".svg",window.iconSvgHash).then(t=>{this.svgCode=t,localStorage.setItem("iconSVG-"+e,t),window.isLoadSvg[e]=!0,window.loadingSvg[e]=!1}).catch(t=>{window.loadingSvg[e]=!1})}}},Kw=["innerHTML"];function Vw(e,t,n,r,i,o){return ge((E(),M("div",{class:Ge(["icon-svg","icon-svg-"+n.name]),"data-name":"name",innerHTML:i.svgCode},null,10,Kw)),[[Ot,i.svgCode]])}const Fn=hn(Ww,[["render",Vw]]),qw={name:"HighlightPrompt",props:{textarea:{type:Object,required:!0},hideDefaultInput:{type:Boolean,default:!1}},data(){return{scrollTop:0,showTimeId:0,hideTimeId:0,lastHighLightTag:null}},watch:{},mounted(){},methods:{show(e){this.lastHighLightTag&&this.lastHighLightTag.value===e.value||(this.lastHighLightTag=e,this.showTimeId&&clearTimeout(this.showTimeId),this.showTimeId=setTimeout(()=>{this._show(e),this.showTimeId=0},10))},_show(e){if(this.hideDefaultInput)return this._hide();if(typeof e.type=="string"&&e.type==="wrap")return this._hide();let t=e.value,n=this.textarea.value;if(t===""||t.trim()==="")return this._hide();if(n===""||n.trim()==="")return this._hide();if(t=he.escapeHtml(t),n=he.escapeHtml(this.textarea.value),n.indexOf(t)===-1)return this._hide();this.textarea.parentNode.insertBefore(this.$refs.highlightPrompt,this.textarea.nextSibling);const i=window.getComputedStyle(this.textarea);for(const l of i)this.$refs.highlightPrompt.style[l]=i[l];this.$refs.highlightPrompt.style.display="block",this.textarea.style.display="none";let o="",s=n;for(;;){const l=s.indexOf(t);if(l===-1){o+=s;break}const c=l+t.length;o+=s.substring(0,l),o+='',o+=s.substring(l,c),o+="",s=s.substring(c)}this.$refs.highlightPrompt.innerHTML=o,this.$refs.highlightPrompt.scrollTop=this.scrollTop},hide(){this.lastHighLightTag=null,this.showTimeId&&clearTimeout(this.showTimeId),this.hideTimeId&&clearTimeout(this.hideTimeId),this.hideTimeId=setTimeout(()=>{this._hide(),this.hideTimeId=0},10)},_hide(){this.textarea.style.display="block",this.$refs.highlightPrompt.style.display="none",this.scrollTop=this.textarea.scrollTop}}};function zw(e,t,n,r,i,o){return E(),M("div",{class:"physton-highlight-prompt",ref:"highlightPrompt",onClick:t[0]||(t[0]=(...s)=>o.hide&&o.hide(...s))},null,512)}const Gw=hn(qw,[["render",zw]]);function Yw(e){return Op()?(cC(e),!0):!1}function Js(e){return typeof e=="function"?e():Qp(e)}const Ug=typeof window<"u"&&typeof document<"u",Xw=Object.prototype.toString,Jw=e=>Xw.call(e)==="[object Object]",Zs=()=>{},Zw=Qw();function Qw(){var e;return Ug&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function Wg(e,t){function n(...r){return new Promise((i,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(o)})}return n}const Kg=e=>e();function eT(e,t={}){let n,r,i=Zs;const o=l=>{clearTimeout(l),i(),i=Zs};return l=>{const c=Js(e),d=Js(t.maxWait);return n&&o(n),c<=0||d!==void 0&&d<=0?(r&&(o(r),r=null),Promise.resolve(l())):new Promise((p,y)=>{i=t.rejectOnCancel?y:p,d&&!r&&(r=setTimeout(()=>{n&&o(n),r=null,p(l())},d)),n=setTimeout(()=>{r&&o(r),r=null,p(l())},c)})}}function tT(e=Kg){const t=Lt(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...o)=>{t.value&&e(...o)};return{isActive:ac(t),pause:n,resume:r,eventFilter:i}}function zi(e,t=200,n={}){return Wg(eT(t,n),e)}function nT(e,t,n={}){const{eventFilter:r=Kg,...i}=n;return ir(e,Wg(r,t),i)}function rT(e,t,n={}){const{eventFilter:r,...i}=n,{eventFilter:o,pause:s,resume:l,isActive:c}=tT(r);return{stop:nT(e,t,{...i,eventFilter:o}),pause:s,resume:l,isActive:c}}function No(e,t=!0){Ic()?fl(e):t?e():il(e)}function _n(e,t,n){return ir(e,(r,i,o)=>{r&&t(r,i,o)},n)}function Qs(e){var t;const n=Js(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ea=Ug?window:void 0;function ta(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=ea):[t,n,r,i]=e,!t)return Zs;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],s=()=>{o.forEach(p=>p()),o.length=0},l=(p,y,m,C)=>(p.addEventListener(y,m,C),()=>p.removeEventListener(y,m,C)),c=ir(()=>[Qs(t),Js(i)],([p,y])=>{if(s(),!p)return;const m=Jw(y)?{...y}:y;o.push(...n.flatMap(C=>r.map(b=>l(p,C,b,m))))},{immediate:!0,flush:"post"}),d=()=>{c(),s()};return Yw(d),d}let Vg=!1;function iT(e,t,n={}){const{window:r=ea,ignore:i=[],capture:o=!0,detectIframe:s=!1}=n;if(!r)return;Zw&&!Vg&&(Vg=!0,Array.from(r.document.body.children).forEach(m=>m.addEventListener("click",Zs)),r.document.documentElement.addEventListener("click",Zs));let l=!0;const c=m=>i.some(C=>{if(typeof C=="string")return Array.from(r.document.querySelectorAll(C)).some(b=>b===m.target||m.composedPath().includes(b));{const b=Qs(C);return b&&(m.target===b||m.composedPath().includes(b))}}),p=[ta(r,"click",m=>{const C=Qs(e);if(!(!C||C===m.target||m.composedPath().includes(C))){if(m.detail===0&&(l=!c(m)),!l){l=!0;return}t(m)}},{passive:!0,capture:o}),ta(r,"pointerdown",m=>{const C=Qs(e);C&&(l=!m.composedPath().includes(C)&&!c(m))},{passive:!0}),s&&ta(r,"blur",m=>{setTimeout(()=>{var C;const b=Qs(e);((C=r.document.activeElement)==null?void 0:C.tagName)==="IFRAME"&&!(b!=null&&b.contains(r.document.activeElement))&&t(m)},0)})].filter(Boolean);return()=>p.forEach(m=>m())}const Bl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Hl="__vueuse_ssr_handlers__",oT=sT();function sT(){return Hl in Bl||(Bl[Hl]=Bl[Hl]||{}),Bl[Hl]}function aT(e,t){return oT[e]||t}function lT(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const uT={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},qg="vueuse-storage";function cT(e,t,n,r={}){var i;const{flush:o="pre",deep:s=!0,listenToStorageChanges:l=!0,writeDefaults:c=!0,mergeDefaults:d=!1,shallow:p,window:y=ea,eventFilter:m,onError:C=I=>{console.error(I)}}=r,b=(p?$C:Lt)(t);if(!n)try{n=aT("getDefaultStorage",()=>{var I;return(I=ea)==null?void 0:I.localStorage})()}catch(I){C(I)}if(!n)return b;const k=Js(t),L=lT(k),O=(i=r.serializer)!=null?i:uT[L],{pause:B,resume:X}=rT(b,()=>x(b.value),{flush:o,deep:s,eventFilter:m});return y&&l&&(ta(y,"storage",g),ta(y,qg,Q)),g(),b;function x(I){try{if(I==null)n.removeItem(e);else{const A=O.write(I),D=n.getItem(e);D!==A&&(n.setItem(e,A),y&&y.dispatchEvent(new CustomEvent(qg,{detail:{key:e,oldValue:D,newValue:A,storageArea:n}})))}}catch(A){C(A)}}function z(I){const A=I?I.newValue:n.getItem(e);if(A==null)return c&&k!==null&&n.setItem(e,O.write(k)),k;if(!I&&d){const D=O.read(A);return typeof d=="function"?d(D,k):L==="object"&&!Array.isArray(D)?{...k,...D}:D}else return typeof A!="string"?A:O.read(A)}function Q(I){g(I.detail)}function g(I){if(!(I&&I.storageArea!==n)){if(I&&I.key==null){b.value=k;return}if(!(I&&I.key!==e)){B();try{(I==null?void 0:I.newValue)!==O.write(b.value)&&(b.value=z(I))}catch(A){C(A)}finally{I?il(X):X()}}}}}function rf(e,t,n={}){const{window:r=ea}=n;return cT(e,t,r==null?void 0:r.localStorage,n)}var Gi=Gi||{};Gi.stringify=function(){var e={"visit_linear-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-linear-gradient":function(t){return e.visit_gradient(t)},"visit_radial-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-radial-gradient":function(t){return e.visit_gradient(t)},visit_gradient:function(t){var n=e.visit(t.orientation);return n&&(n+=", "),t.type+"("+n+e.visit(t.colorStops)+")"},visit_shape:function(t){var n=t.value,r=e.visit(t.at),i=e.visit(t.style);return i&&(n+=" "+i),r&&(n+=" at "+r),n},"visit_default-radial":function(t){var n="",r=e.visit(t.at);return r&&(n+=r),n},"visit_extent-keyword":function(t){var n=t.value,r=e.visit(t.at);return r&&(n+=" at "+r),n},"visit_position-keyword":function(t){return t.value},visit_position:function(t){return e.visit(t.value.x)+" "+e.visit(t.value.y)},"visit_%":function(t){return t.value+"%"},visit_em:function(t){return t.value+"em"},visit_px:function(t){return t.value+"px"},visit_literal:function(t){return e.visit_color(t.value,t)},visit_hex:function(t){return e.visit_color("#"+t.value,t)},visit_rgb:function(t){return e.visit_color("rgb("+t.value.join(", ")+")",t)},visit_rgba:function(t){return e.visit_color("rgba("+t.value.join(", ")+")",t)},visit_color:function(t,n){var r=t,i=e.visit(n.length);return i&&(r+=" "+i),r},visit_angular:function(t){return t.value+"deg"},visit_directional:function(t){return"to "+t.value},visit_array:function(t){var n="",r=t.length;return t.forEach(function(i,o){n+=e.visit(i),o0&&n("Invalid input not EOF"),V}function i(){return X(o)}function o(){return s("linear-gradient",e.linearGradient,c)||s("repeating-linear-gradient",e.repeatingLinearGradient,c)||s("radial-gradient",e.radialGradient,y)||s("repeating-radial-gradient",e.repeatingRadialGradient,y)}function s(V,ae,pe){return l(ae,function(Qe){var et=pe();return et&&(je(e.comma)||n("Missing comma before color stops")),{type:V,orientation:et,colorStops:X(x)}})}function l(V,ae){var pe=je(V);if(pe){je(e.startCall)||n("Missing (");var Qe=ae(pe);return je(e.endCall)||n("Missing )"),Qe}}function c(){return d()||p()}function d(){return de("directional",e.sideOrCorner,1)}function p(){return de("angular",e.angleValue,1)}function y(){var V,ae=m(),pe;return ae&&(V=[],V.push(ae),pe=t,je(e.comma)&&(ae=m(),ae?V.push(ae):t=pe)),V}function m(){var V=C()||b();if(V)V.at=L();else{var ae=k();if(ae){V=ae;var pe=L();pe&&(V.at=pe)}else{var Qe=O();Qe&&(V={type:"default-radial",at:Qe})}}return V}function C(){var V=de("shape",/^(circle)/i,0);return V&&(V.style=U()||k()),V}function b(){var V=de("shape",/^(ellipse)/i,0);return V&&(V.style=H()||k()),V}function k(){return de("extent-keyword",e.extentKeywords,1)}function L(){if(de("position",/^at/,0)){var V=O();return V||n("Missing positioning value"),V}}function O(){var V=B();if(V.x||V.y)return{type:"position",value:V}}function B(){return{x:H(),y:H()}}function X(V){var ae=V(),pe=[];if(ae)for(pe.push(ae);je(e.comma);)ae=V(),ae?pe.push(ae):n("One extra comma");return pe}function x(){var V=z();return V||n("Expected color definition"),V.length=H(),V}function z(){return g()||A()||I()||Q()}function Q(){return de("literal",e.literalColor,0)}function g(){return de("hex",e.hexColor,1)}function I(){return l(e.rgbColor,function(){return{type:"rgb",value:X(D)}})}function A(){return l(e.rgbaColor,function(){return{type:"rgba",value:X(D)}})}function D(){return je(e.number)[1]}function H(){return de("%",e.percentageValue,1)||K()||U()}function K(){return de("position-keyword",e.positionKeywords,1)}function U(){return de("px",e.pixelValue,1)||de("em",e.emValue,1)}function de(V,ae,pe){var Qe=je(ae);if(Qe)return{type:V,value:Qe[pe]}}function je(V){var ae,pe;return pe=/^[\n\r\t\s]+/.exec(t),pe&&Pe(pe[0].length),ae=V.exec(t),ae&&Pe(ae[0].length),ae}function Pe(V){t=t.substr(V)}return function(V){return t=V.toString(),r()}}();var fT=Gi.parse,dT=Gi.stringify,$n="top",lr="bottom",ur="right",Bn="left",of="auto",na=[$n,lr,ur,Bn],Mo="start",ra="end",pT="clippingParents",zg="viewport",ia="popper",hT="reference",Gg=na.reduce(function(e,t){return e.concat([t+"-"+Mo,t+"-"+ra])},[]),Yg=[].concat(na,[of]).reduce(function(e,t){return e.concat([t,t+"-"+Mo,t+"-"+ra])},[]),gT="beforeRead",mT="read",vT="afterRead",yT="beforeMain",bT="main",CT="afterMain",_T="beforeWrite",wT="write",TT="afterWrite",kT=[gT,mT,vT,yT,bT,CT,_T,wT,TT];function Rr(e){return e?(e.nodeName||"").toLowerCase():null}function Jn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Yi(e){var t=Jn(e).Element;return e instanceof t||e instanceof Element}function cr(e){var t=Jn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function sf(e){if(typeof ShadowRoot>"u")return!1;var t=Jn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function xT(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!cr(o)||!Rr(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var l=i[s];l===!1?o.removeAttribute(s):o.setAttribute(s,l===!0?"":l)}))})}function ST(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(c,d){return c[d]="",c},{});!cr(i)||!Rr(i)||(Object.assign(i.style,l),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const Xg={name:"applyStyles",enabled:!0,phase:"write",fn:xT,effect:ST,requires:["computeStyles"]};function Nr(e){return e.split("-")[0]}var Xi=Math.max,jl=Math.min,Fo=Math.round;function af(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Jg(){return!/^((?!chrome|android).)*safari/i.test(af())}function $o(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&cr(e)&&(i=e.offsetWidth>0&&Fo(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Fo(r.height)/e.offsetHeight||1);var s=Yi(e)?Jn(e):window,l=s.visualViewport,c=!Jg()&&n,d=(r.left+(c&&l?l.offsetLeft:0))/i,p=(r.top+(c&&l?l.offsetTop:0))/o,y=r.width/i,m=r.height/o;return{width:y,height:m,top:p,right:d+y,bottom:p+m,left:d,x:d,y:p}}function lf(e){var t=$o(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Zg(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&sf(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Qr(e){return Jn(e).getComputedStyle(e)}function AT(e){return["table","td","th"].indexOf(Rr(e))>=0}function _i(e){return((Yi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ul(e){return Rr(e)==="html"?e:e.assignedSlot||e.parentNode||(sf(e)?e.host:null)||_i(e)}function Qg(e){return!cr(e)||Qr(e).position==="fixed"?null:e.offsetParent}function ET(e){var t=/firefox/i.test(af()),n=/Trident/i.test(af());if(n&&cr(e)){var r=Qr(e);if(r.position==="fixed")return null}var i=Ul(e);for(sf(i)&&(i=i.host);cr(i)&&["html","body"].indexOf(Rr(i))<0;){var o=Qr(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function oa(e){for(var t=Jn(e),n=Qg(e);n&&AT(n)&&Qr(n).position==="static";)n=Qg(n);return n&&(Rr(n)==="html"||Rr(n)==="body"&&Qr(n).position==="static")?t:n||ET(e)||t}function uf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function sa(e,t,n){return Xi(e,jl(t,n))}function LT(e,t,n){var r=sa(e,t,n);return r>n?n:r}function em(){return{top:0,right:0,bottom:0,left:0}}function tm(e){return Object.assign({},em(),e)}function nm(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var OT=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,tm(typeof t!="number"?t:nm(t,na))};function IT(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,l=Nr(n.placement),c=uf(l),d=[Bn,ur].indexOf(l)>=0,p=d?"height":"width";if(!(!o||!s)){var y=OT(i.padding,n),m=lf(o),C=c==="y"?$n:Bn,b=c==="y"?lr:ur,k=n.rects.reference[p]+n.rects.reference[c]-s[c]-n.rects.popper[p],L=s[c]-n.rects.reference[c],O=oa(o),B=O?c==="y"?O.clientHeight||0:O.clientWidth||0:0,X=k/2-L/2,x=y[C],z=B-m[p]-y[b],Q=B/2-m[p]/2+X,g=sa(x,Q,z),I=c;n.modifiersData[r]=(t={},t[I]=g,t.centerOffset=g-Q,t)}}function PT(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Zg(t.elements.popper,i)&&(t.elements.arrow=i))}const DT={name:"arrow",enabled:!0,phase:"main",fn:IT,effect:PT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Bo(e){return e.split("-")[1]}var RT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function NT(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Fo(n*i)/i||0,y:Fo(r*i)/i||0}}function rm(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,y=e.isFixed,m=s.x,C=m===void 0?0:m,b=s.y,k=b===void 0?0:b,L=typeof p=="function"?p({x:C,y:k}):{x:C,y:k};C=L.x,k=L.y;var O=s.hasOwnProperty("x"),B=s.hasOwnProperty("y"),X=Bn,x=$n,z=window;if(d){var Q=oa(n),g="clientHeight",I="clientWidth";if(Q===Jn(n)&&(Q=_i(n),Qr(Q).position!=="static"&&l==="absolute"&&(g="scrollHeight",I="scrollWidth")),Q=Q,i===$n||(i===Bn||i===ur)&&o===ra){x=lr;var A=y&&Q===z&&z.visualViewport?z.visualViewport.height:Q[g];k-=A-r.height,k*=c?1:-1}if(i===Bn||(i===$n||i===lr)&&o===ra){X=ur;var D=y&&Q===z&&z.visualViewport?z.visualViewport.width:Q[I];C-=D-r.width,C*=c?1:-1}}var H=Object.assign({position:l},d&&RT),K=p===!0?NT({x:C,y:k},Jn(n)):{x:C,y:k};if(C=K.x,k=K.y,c){var U;return Object.assign({},H,(U={},U[x]=B?"0":"",U[X]=O?"0":"",U.transform=(z.devicePixelRatio||1)<=1?"translate("+C+"px, "+k+"px)":"translate3d("+C+"px, "+k+"px, 0)",U))}return Object.assign({},H,(t={},t[x]=B?k+"px":"",t[X]=O?C+"px":"",t.transform="",t))}function MT(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,l=n.roundOffsets,c=l===void 0?!0:l,d={placement:Nr(t.placement),variation:Bo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,rm(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,rm(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const FT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:MT,data:{}};var Wl={passive:!0};function $T(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,l=s===void 0?!0:s,c=Jn(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&d.forEach(function(p){p.addEventListener("scroll",n.update,Wl)}),l&&c.addEventListener("resize",n.update,Wl),function(){o&&d.forEach(function(p){p.removeEventListener("scroll",n.update,Wl)}),l&&c.removeEventListener("resize",n.update,Wl)}}const BT={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:$T,data:{}};var HT={left:"right",right:"left",bottom:"top",top:"bottom"};function Kl(e){return e.replace(/left|right|bottom|top/g,function(t){return HT[t]})}var jT={start:"end",end:"start"};function im(e){return e.replace(/start|end/g,function(t){return jT[t]})}function cf(e){var t=Jn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ff(e){return $o(_i(e)).left+cf(e).scrollLeft}function UT(e,t){var n=Jn(e),r=_i(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,l=0,c=0;if(i){o=i.width,s=i.height;var d=Jg();(d||!d&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:s,x:l+ff(e),y:c}}function WT(e){var t,n=_i(e),r=cf(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Xi(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Xi(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+ff(e),c=-r.scrollTop;return Qr(i||n).direction==="rtl"&&(l+=Xi(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:l,y:c}}function df(e){var t=Qr(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function om(e){return["html","body","#document"].indexOf(Rr(e))>=0?e.ownerDocument.body:cr(e)&&df(e)?e:om(Ul(e))}function aa(e,t){var n;t===void 0&&(t=[]);var r=om(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Jn(r),s=i?[o].concat(o.visualViewport||[],df(r)?r:[]):r,l=t.concat(s);return i?l:l.concat(aa(Ul(s)))}function pf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function KT(e,t){var n=$o(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function sm(e,t,n){return t===zg?pf(UT(e,n)):Yi(t)?KT(t,n):pf(WT(_i(e)))}function VT(e){var t=aa(Ul(e)),n=["absolute","fixed"].indexOf(Qr(e).position)>=0,r=n&&cr(e)?oa(e):e;return Yi(r)?t.filter(function(i){return Yi(i)&&Zg(i,r)&&Rr(i)!=="body"}):[]}function qT(e,t,n,r){var i=t==="clippingParents"?VT(e):[].concat(t),o=[].concat(i,[n]),s=o[0],l=o.reduce(function(c,d){var p=sm(e,d,r);return c.top=Xi(p.top,c.top),c.right=jl(p.right,c.right),c.bottom=jl(p.bottom,c.bottom),c.left=Xi(p.left,c.left),c},sm(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function am(e){var t=e.reference,n=e.element,r=e.placement,i=r?Nr(r):null,o=r?Bo(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(i){case $n:c={x:s,y:t.y-n.height};break;case lr:c={x:s,y:t.y+t.height};break;case ur:c={x:t.x+t.width,y:l};break;case Bn:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var d=i?uf(i):null;if(d!=null){var p=d==="y"?"height":"width";switch(o){case Mo:c[d]=c[d]-(t[p]/2-n[p]/2);break;case ra:c[d]=c[d]+(t[p]/2-n[p]/2);break}}return c}function la(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,l=n.boundary,c=l===void 0?pT:l,d=n.rootBoundary,p=d===void 0?zg:d,y=n.elementContext,m=y===void 0?ia:y,C=n.altBoundary,b=C===void 0?!1:C,k=n.padding,L=k===void 0?0:k,O=tm(typeof L!="number"?L:nm(L,na)),B=m===ia?hT:ia,X=e.rects.popper,x=e.elements[b?B:m],z=qT(Yi(x)?x:x.contextElement||_i(e.elements.popper),c,p,s),Q=$o(e.elements.reference),g=am({reference:Q,element:X,strategy:"absolute",placement:i}),I=pf(Object.assign({},X,g)),A=m===ia?I:Q,D={top:z.top-A.top+O.top,bottom:A.bottom-z.bottom+O.bottom,left:z.left-A.left+O.left,right:A.right-z.right+O.right},H=e.modifiersData.offset;if(m===ia&&H){var K=H[i];Object.keys(D).forEach(function(U){var de=[ur,lr].indexOf(U)>=0?1:-1,je=[$n,lr].indexOf(U)>=0?"y":"x";D[U]+=K[je]*de})}return D}function zT(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?Yg:c,p=Bo(r),y=p?l?Gg:Gg.filter(function(b){return Bo(b)===p}):na,m=y.filter(function(b){return d.indexOf(b)>=0});m.length===0&&(m=y);var C=m.reduce(function(b,k){return b[k]=la(e,{placement:k,boundary:i,rootBoundary:o,padding:s})[Nr(k)],b},{});return Object.keys(C).sort(function(b,k){return C[b]-C[k]})}function GT(e){if(Nr(e)===of)return[];var t=Kl(e);return[im(e),t,im(t)]}function YT(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,d=n.padding,p=n.boundary,y=n.rootBoundary,m=n.altBoundary,C=n.flipVariations,b=C===void 0?!0:C,k=n.allowedAutoPlacements,L=t.options.placement,O=Nr(L),B=O===L,X=c||(B||!b?[Kl(L)]:GT(L)),x=[L].concat(X).reduce(function(ke,Ae){return ke.concat(Nr(Ae)===of?zT(t,{placement:Ae,boundary:p,rootBoundary:y,padding:d,flipVariations:b,allowedAutoPlacements:k}):Ae)},[]),z=t.rects.reference,Q=t.rects.popper,g=new Map,I=!0,A=x[0],D=0;D=0,je=de?"width":"height",Pe=la(t,{placement:H,boundary:p,rootBoundary:y,altBoundary:m,padding:d}),V=de?U?ur:Bn:U?lr:$n;z[je]>Q[je]&&(V=Kl(V));var ae=Kl(V),pe=[];if(o&&pe.push(Pe[K]<=0),l&&pe.push(Pe[V]<=0,Pe[ae]<=0),pe.every(function(ke){return ke})){A=H,I=!1;break}g.set(H,pe)}if(I)for(var Qe=b?3:1,et=function(Ae){var Oe=x.find(function($e){var tt=g.get($e);if(tt)return tt.slice(0,Ae).every(function(Re){return Re})});if(Oe)return A=Oe,"break"},se=Qe;se>0;se--){var Ce=et(se);if(Ce==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}const XT={name:"flip",enabled:!0,phase:"main",fn:YT,requiresIfExists:["offset"],data:{_skip:!1}};function lm(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function um(e){return[$n,ur,lr,Bn].some(function(t){return e[t]>=0})}function JT(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=la(t,{elementContext:"reference"}),l=la(t,{altBoundary:!0}),c=lm(s,r),d=lm(l,i,o),p=um(c),y=um(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:y},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":y})}const ZT={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:JT};function QT(e,t,n){var r=Nr(e),i=[Bn,$n].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],l=o[1];return s=s||0,l=(l||0)*i,[Bn,ur].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function ek(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=Yg.reduce(function(p,y){return p[y]=QT(y,t.rects,o),p},{}),l=s[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=s}const tk={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ek};function nk(e){var t=e.state,n=e.name;t.modifiersData[n]=am({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const rk={name:"popperOffsets",enabled:!0,phase:"read",fn:nk,data:{}};function ik(e){return e==="x"?"y":"x"}function ok(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,y=n.padding,m=n.tether,C=m===void 0?!0:m,b=n.tetherOffset,k=b===void 0?0:b,L=la(t,{boundary:c,rootBoundary:d,padding:y,altBoundary:p}),O=Nr(t.placement),B=Bo(t.placement),X=!B,x=uf(O),z=ik(x),Q=t.modifiersData.popperOffsets,g=t.rects.reference,I=t.rects.popper,A=typeof k=="function"?k(Object.assign({},t.rects,{placement:t.placement})):k,D=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),H=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,K={x:0,y:0};if(Q){if(o){var U,de=x==="y"?$n:Bn,je=x==="y"?lr:ur,Pe=x==="y"?"height":"width",V=Q[x],ae=V+L[de],pe=V-L[je],Qe=C?-I[Pe]/2:0,et=B===Mo?g[Pe]:I[Pe],se=B===Mo?-I[Pe]:-g[Pe],Ce=t.elements.arrow,ke=C&&Ce?lf(Ce):{width:0,height:0},Ae=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:em(),Oe=Ae[de],$e=Ae[je],tt=sa(0,g[Pe],ke[Pe]),Re=X?g[Pe]/2-Qe-tt-Oe-D.mainAxis:et-tt-Oe-D.mainAxis,Ve=X?-g[Pe]/2+Qe+tt+$e+D.mainAxis:se+tt+$e+D.mainAxis,dt=t.elements.arrow&&oa(t.elements.arrow),R=dt?x==="y"?dt.clientTop||0:dt.clientLeft||0:0,$=(U=H==null?void 0:H[x])!=null?U:0,Y=V+Re-$-R,oe=V+Ve-$,ee=sa(C?jl(ae,Y):ae,V,C?Xi(pe,oe):pe);Q[x]=ee,K[x]=ee-V}if(l){var te,ve=x==="x"?$n:Bn,me=x==="x"?lr:ur,be=Q[z],ce=z==="y"?"height":"width",Te=be+L[ve],_e=be-L[me],Ne=[$n,Bn].indexOf(O)!==-1,ne=(te=H==null?void 0:H[z])!=null?te:0,Be=Ne?Te:be-g[ce]-I[ce]-ne+D.altAxis,at=Ne?be+g[ce]+I[ce]-ne-D.altAxis:_e,lt=C&&Ne?LT(Be,be,at):sa(C?Be:Te,be,C?at:_e);Q[z]=lt,K[z]=lt-be}t.modifiersData[r]=K}}const sk={name:"preventOverflow",enabled:!0,phase:"main",fn:ok,requiresIfExists:["offset"]};function ak(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lk(e){return e===Jn(e)||!cr(e)?cf(e):ak(e)}function uk(e){var t=e.getBoundingClientRect(),n=Fo(t.width)/e.offsetWidth||1,r=Fo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function ck(e,t,n){n===void 0&&(n=!1);var r=cr(t),i=cr(t)&&uk(t),o=_i(t),s=$o(e,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Rr(t)!=="body"||df(o))&&(l=lk(t)),cr(t)?(c=$o(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=ff(o))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function fk(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&i(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function dk(e){var t=fk(e);return kT.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function pk(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function hk(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var cm={placement:"bottom",modifiers:[],strategy:"absolute"};function fm(){for(var e=arguments.length,t=new Array(e),n=0;n * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */function pm(e){return Object.prototype.toString.call(e)==="[object Object]"}function vk(e){var t,n;return pm(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(pm(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}function ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}const yk={silent:!1,logLevel:"warn"},bk=["validator"],gm=Object.prototype,mm=gm.toString,Ck=gm.hasOwnProperty,vm=/^\s*function (\w+)/;function ym(e){var t;const n=(t=e==null?void 0:e.type)!==null&&t!==void 0?t:e;if(n){const r=n.toString().match(vm);return r?r[1]:""}return""}const Ji=vk;let wn=e=>e;const Ho=(e,t)=>Ck.call(e,t),_k=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},jo=Array.isArray||function(e){return mm.call(e)==="[object Array]"},Uo=e=>mm.call(e)==="[object Function]",Vl=e=>Ji(e)&&Ho(e,"_vueTypes_name"),bm=e=>Ji(e)&&(Ho(e,"type")||["_vueTypes_name","validator","default","required"].some(t=>Ho(e,t)));function hf(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function Zi(e,t,n=!1){let r,i=!0,o="";r=Ji(e)?e:{type:e};const s=Vl(r)?r._vueTypes_name+" - ":"";if(bm(r)&&r.type!==null){if(r.type===void 0||r.type===!0||!r.required&&t===void 0)return i;jo(r.type)?(i=r.type.some(l=>Zi(l,t,!0)===!0),o=r.type.map(l=>ym(l)).join(" or ")):(o=ym(r),i=o==="Array"?jo(t):o==="Object"?Ji(t):o==="String"||o==="Number"||o==="Boolean"||o==="Function"?function(l){if(l==null)return"";const c=l.constructor.toString().match(vm);return c?c[1]:""}(t)===o:t instanceof r.type)}if(!i){const l=`${s}value "${t}" should be of type "${o}"`;return n===!1?(wn(l),!1):l}if(Ho(r,"validator")&&Uo(r.validator)){const l=wn,c=[];if(wn=d=>{c.push(d)},i=r.validator(t),wn=l,!i){const d=(c.length>1?"* ":"")+c.join(` * `);return c.length=0,n===!1?(wn(d),i):d}}return i}function Zn(e,t){const n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(i){return i===void 0?(Ho(this,"default")&&delete this.default,this):Uo(i)||Zi(this,i,!0)===!0?(this.default=jo(i)?()=>[...i]:Ji(i)?()=>Object.assign({},i):i,this):(wn(`${this._vueTypes_name} - invalid default value: "${i}"`),this)}}}),{validator:r}=n;return Uo(r)&&(n.validator=hf(r,n)),n}function Mr(e,t){const n=Zn(e,t);return Object.defineProperty(n,"validate",{value(r){return Uo(this.validator)&&wn(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info: ${JSON.stringify(this)}`),this.validator=hf(r,this),this}})}function Cm(e,t,n){const r=function(c){const d={};return Object.getOwnPropertyNames(c).forEach(p=>{d[p]=Object.getOwnPropertyDescriptor(c,p)}),Object.defineProperties({},d)}(t);if(r._vueTypes_name=e,!Ji(n))return r;const{validator:i}=n,o=hm(n,bk);if(Uo(i)){let{validator:c}=r;c&&(c=(l=(s=c).__original)!==null&&l!==void 0?l:s),r.validator=hf(c?function(d){return c.call(this,d)&&i.call(this,d)}:i,r)}var s,l;return Object.assign(r,o)}function ql(e){return e.replace(/^(?!\s*$)/gm," ")}const wk=()=>Mr("any",{}),Tk=()=>Mr("function",{type:Function}),kk=()=>Mr("boolean",{type:Boolean}),xk=()=>Mr("string",{type:String}),Sk=()=>Mr("number",{type:Number}),Ak=()=>Mr("array",{type:Array}),Ek=()=>Mr("object",{type:Object}),Lk=()=>Zn("integer",{type:Number,validator:e=>_k(e)}),Ok=()=>Zn("symbol",{validator:e=>typeof e=="symbol"});function Ik(e,t="custom validation failed"){if(typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return Zn(e.name||"<>",{type:null,validator(n){const r=e(n);return r||wn(`${this._vueTypes_name} - ${t}`),r}})}function Pk(e){if(!jo(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const t=`oneOf - value should be one of "${e.join('", "')}".`,n=e.reduce((r,i)=>{if(i!=null){const o=i.constructor;r.indexOf(o)===-1&&r.push(o)}return r},[]);return Zn("oneOf",{type:n.length>0?n:void 0,validator(r){const i=e.indexOf(r)!==-1;return i||wn(t),i}})}function Dk(e){if(!jo(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");let t=!1,n=[];for(let i=0;in.indexOf(i)===o);const r=n.length>0?n:null;return Zn("oneOfType",t?{type:r,validator(i){const o=[],s=e.some(l=>{const c=Zi(Vl(l)&&l._vueTypes_name==="oneOf"?l.type||null:l,i,!0);return typeof c=="string"&&o.push(c),c===!0});return s||wn(`oneOfType - provided value does not match any of the ${o.length} passed-in validators: ${ql(o.join(` `))}`),s}}:{type:r})}function Rk(e){return Zn("arrayOf",{type:Array,validator(t){let n="";const r=t.every(i=>(n=Zi(e,i,!0),n===!0));return r||wn(`arrayOf - value validation error: ${ql(n)}`),r}})}function Nk(e){return Zn("instanceOf",{type:e})}function Mk(e){return Zn("objectOf",{type:Object,validator(t){let n="";const r=Object.keys(t).every(i=>(n=Zi(e,t[i],!0),n===!0));return r||wn(`objectOf - value validation error: ${ql(n)}`),r}})}function Fk(e){const t=Object.keys(e),n=t.filter(i=>{var o;return!((o=e[i])===null||o===void 0||!o.required)}),r=Zn("shape",{type:Object,validator(i){if(!Ji(i))return!1;const o=Object.keys(i);if(n.length>0&&n.some(s=>o.indexOf(s)===-1)){const s=n.filter(l=>o.indexOf(l)===-1);return wn(s.length===1?`shape - required property "${s[0]}" is not defined.`:`shape - required properties "${s.join('", "')}" are not defined.`),!1}return o.every(s=>{if(t.indexOf(s)===-1)return this._vueTypes_isLoose===!0||(wn(`shape - shape definition does not include a "${s}" property. Allowed keys: "${t.join('", "')}".`),!1);const l=Zi(e[s],i[s],!0);return typeof l=="string"&&wn(`shape - "${s}" property validation error: ${ql(l)}`),l===!0})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),r}const $k=["name","validate","getter"],Bk=(()=>{var e;return(e=class{static get any(){return wk()}static get func(){return Tk().def(this.defaults.func)}static get bool(){return kk().def(this.defaults.bool)}static get string(){return xk().def(this.defaults.string)}static get number(){return Sk().def(this.defaults.number)}static get array(){return Ak().def(this.defaults.array)}static get object(){return Ek().def(this.defaults.object)}static get integer(){return Lk().def(this.defaults.integer)}static get symbol(){return Ok()}static get nullable(){return{type:null}}static extend(t){if(jo(t))return t.forEach(c=>this.extend(c)),this;const{name:n,validate:r=!1,getter:i=!1}=t,o=hm(t,$k);if(Ho(this,n))throw new TypeError(`[VueTypes error]: Type "${n}" already defined`);const{type:s}=o;if(Vl(s))return delete o.type,Object.defineProperty(this,n,i?{get:()=>Cm(n,s,o)}:{value(...c){const d=Cm(n,s,o);return d.validator&&(d.validator=d.validator.bind(d,...c)),d}});let l;return l=i?{get(){const c=Object.assign({},o);return r?Mr(n,c):Zn(n,c)},enumerable:!0}:{value(...c){const d=Object.assign({},o);let p;return p=r?Mr(n,d):Zn(n,d),d.validator&&(p.validator=d.validator.bind(p,...c)),p},enumerable:!0},Object.defineProperty(this,n,l)}}).defaults={},e.sensibleDefaults=void 0,e.config=yk,e.custom=Ik,e.oneOf=Pk,e.instanceOf=Nk,e.oneOfType=Dk,e.arrayOf=Rk,e.objectOf=Mk,e.shape=Fk,e.utils={validate:(t,n)=>Zi(n,t,!0)===!0,toType:(t,n,r=!1)=>r?Mr(t,n):Zn(t,n)},e})();function Hk(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var t;return(t=class extends Bk{static get sensibleDefaults(){return ua({},this.defaults)}static set sensibleDefaults(n){this.defaults=n!==!1?ua({},n!==!0?n:e):{}}}).defaults=ua({},e),t}let it=class extends Hk(){};var _m=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gf(e){var t={exports:{}};return e(t,t.exports),t.exports}var zl=function(e){return e&&e.Math==Math&&e},on=zl(typeof globalThis=="object"&&globalThis)||zl(typeof window=="object"&&window)||zl(typeof self=="object"&&self)||zl(typeof _m=="object"&&_m)||function(){return this}()||Function("return this")(),Dt=function(e){try{return!!e()}catch{return!0}},fr=!Dt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),wm={}.propertyIsEnumerable,Tm=Object.getOwnPropertyDescriptor,jk={f:Tm&&!wm.call({1:2},1)?function(e){var t=Tm(this,e);return!!t&&t.enumerable}:wm},Gl=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Uk={}.toString,ei=function(e){return Uk.call(e).slice(8,-1)},Wk="".split,Yl=Dt(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return ei(e)=="String"?Wk.call(e,""):Object(e)}:Object,wi=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},Wo=function(e){return Yl(wi(e))},cn=function(e){return typeof e=="object"?e!==null:typeof e=="function"},mf=function(e,t){if(!cn(e))return e;var n,r;if(t&&typeof(n=e.toString)=="function"&&!cn(r=n.call(e))||typeof(n=e.valueOf)=="function"&&!cn(r=n.call(e))||!t&&typeof(n=e.toString)=="function"&&!cn(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},Kk={}.hasOwnProperty,Jt=function(e,t){return Kk.call(e,t)},vf=on.document,Vk=cn(vf)&&cn(vf.createElement),km=function(e){return Vk?vf.createElement(e):{}},xm=!fr&&!Dt(function(){return Object.defineProperty(km("div"),"a",{get:function(){return 7}}).a!=7}),Sm=Object.getOwnPropertyDescriptor,yf={f:fr?Sm:function(e,t){if(e=Wo(e),t=mf(t,!0),xm)try{return Sm(e,t)}catch{}if(Jt(e,t))return Gl(!jk.f.call(e,t),e[t])}},Ln=function(e){if(!cn(e))throw TypeError(String(e)+" is not an object");return e},Am=Object.defineProperty,ti={f:fr?Am:function(e,t,n){if(Ln(e),t=mf(t,!0),Ln(n),xm)try{return Am(e,t,n)}catch{}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},dr=fr?function(e,t,n){return ti.f(e,t,Gl(1,n))}:function(e,t,n){return e[t]=n,e},bf=function(e,t){try{dr(on,e,t)}catch{on[e]=t}return t},Qi=on["__core-js_shared__"]||bf("__core-js_shared__",{}),qk=Function.toString;typeof Qi.inspectSource!="function"&&(Qi.inspectSource=function(e){return qk.call(e)});var Xl,ca,Jl,Em=Qi.inspectSource,Lm=on.WeakMap,zk=typeof Lm=="function"&&/native code/.test(Em(Lm)),Om=gf(function(e){(e.exports=function(t,n){return Qi[t]||(Qi[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Gk=0,Yk=Math.random(),Cf=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++Gk+Yk).toString(36)},Im=Om("keys"),_f=function(e){return Im[e]||(Im[e]=Cf(e))},Zl={},Xk=on.WeakMap;if(zk){var Ko=Qi.state||(Qi.state=new Xk),Jk=Ko.get,Zk=Ko.has,Qk=Ko.set;Xl=function(e,t){return t.facade=e,Qk.call(Ko,e,t),t},ca=function(e){return Jk.call(Ko,e)||{}},Jl=function(e){return Zk.call(Ko,e)}}else{var fa=_f("state");Zl[fa]=!0,Xl=function(e,t){return t.facade=e,dr(e,fa,t),t},ca=function(e){return Jt(e,fa)?e[fa]:{}},Jl=function(e){return Jt(e,fa)}}var Ti={set:Xl,get:ca,has:Jl,enforce:function(e){return Jl(e)?ca(e):Xl(e,{})},getterFor:function(e){return function(t){var n;if(!cn(t)||(n=ca(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},ki=gf(function(e){var t=Ti.get,n=Ti.enforce,r=String(String).split("String");(e.exports=function(i,o,s,l){var c,d=!!l&&!!l.unsafe,p=!!l&&!!l.enumerable,y=!!l&&!!l.noTargetGet;typeof s=="function"&&(typeof o!="string"||Jt(s,"name")||dr(s,"name",o),(c=n(s)).source||(c.source=r.join(typeof o=="string"?o:""))),i!==on?(d?!y&&i[o]&&(p=!0):delete i[o],p?i[o]=s:dr(i,o,s)):p?i[o]=s:bf(o,s)})(Function.prototype,"toString",function(){return typeof this=="function"&&t(this).source||Em(this)})}),wf=on,Pm=function(e){return typeof e=="function"?e:void 0},Ql=function(e,t){return arguments.length<2?Pm(wf[e])||Pm(on[e]):wf[e]&&wf[e][t]||on[e]&&on[e][t]},ex=Math.ceil,tx=Math.floor,Vo=function(e){return isNaN(e=+e)?0:(e>0?tx:ex)(e)},nx=Math.min,Qn=function(e){return e>0?nx(Vo(e),9007199254740991):0},rx=Math.max,ix=Math.min,eu=function(e,t){var n=Vo(e);return n<0?rx(n+t,0):ix(n,t)},Dm=function(e){return function(t,n,r){var i,o=Wo(t),s=Qn(o.length),l=eu(r,s);if(e&&n!=n){for(;s>l;)if((i=o[l++])!=i)return!0}else for(;s>l;l++)if((e||l in o)&&o[l]===n)return e||l||0;return!e&&-1}},Rm={includes:Dm(!0),indexOf:Dm(!1)},ox=Rm.indexOf,Nm=function(e,t){var n,r=Wo(e),i=0,o=[];for(n in r)!Jt(Zl,n)&&Jt(r,n)&&o.push(n);for(;t.length>i;)Jt(r,n=t[i++])&&(~ox(o,n)||o.push(n));return o},tu=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],sx=tu.concat("length","prototype"),ax={f:Object.getOwnPropertyNames||function(e){return Nm(e,sx)}},lx={f:Object.getOwnPropertySymbols},ux=Ql("Reflect","ownKeys")||function(e){var t=ax.f(Ln(e)),n=lx.f;return n?t.concat(n(e)):t},cx=function(e,t){for(var n=ux(t),r=ti.f,i=yf.f,o=0;o1?arguments[1]:void 0)}}),function(){function e(){eo(this,e)}return to(e,null,[{key:"isInBrowser",value:function(){return typeof window<"u"}},{key:"isServer",value:function(){return typeof window>"u"}},{key:"getUA",value:function(){return e.isInBrowser()?window.navigator.userAgent.toLowerCase():""}},{key:"isMobile",value:function(){return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(navigator.appVersion)}},{key:"isOpera",value:function(){return navigator.userAgent.indexOf("Opera")!==-1}},{key:"isIE",value:function(){var t=e.getUA();return t!==""&&t.indexOf("msie")>0}},{key:"isIE9",value:function(){var t=e.getUA();return t!==""&&t.indexOf("msie 9.0")>0}},{key:"isEdge",value:function(){var t=e.getUA();return t!==""&&t.indexOf("edge/")>0}},{key:"isChrome",value:function(){var t=e.getUA();return t!==""&&/chrome\/\d+/.test(t)&&!e.isEdge()}},{key:"isPhantomJS",value:function(){var t=e.getUA();return t!==""&&/phantomjs/.test(t)}},{key:"isFirefox",value:function(){var t=e.getUA();return t!==""&&/firefox/.test(t)}}]),e}();var _x=[].join,wx=Yl!=Object,Tx=kf("join",",");Tn({target:"Array",proto:!0,forced:wx||!Tx},{join:function(e){return _x.call(Wo(this),e===void 0?",":e)}});var zo,nu,ni=function(e){return Object(wi(e))},Go=Array.isArray||function(e){return ei(e)=="Array"},Hm=!!Object.getOwnPropertySymbols&&!Dt(function(){return!String(Symbol())}),kx=Hm&&!Symbol.sham&&typeof Symbol.iterator=="symbol",ru=Om("wks"),pa=on.Symbol,xx=kx?pa:pa&&pa.withoutSetter||Cf,Ut=function(e){return Jt(ru,e)||(Hm&&Jt(pa,e)?ru[e]=pa[e]:ru[e]=xx("Symbol."+e)),ru[e]},Sx=Ut("species"),iu=function(e,t){var n;return Go(e)&&(typeof(n=e.constructor)!="function"||n!==Array&&!Go(n.prototype)?cn(n)&&(n=n[Sx])===null&&(n=void 0):n=void 0),new(n===void 0?Array:n)(t===0?0:t)},Yo=function(e,t,n){var r=mf(t);r in e?ti.f(e,r,Gl(0,n)):e[r]=n},Sf=Ql("navigator","userAgent")||"",jm=on.process,Um=jm&&jm.versions,Wm=Um&&Um.v8;Wm?nu=(zo=Wm.split("."))[0]+zo[1]:Sf&&(!(zo=Sf.match(/Edge\/(\d+)/))||zo[1]>=74)&&(zo=Sf.match(/Chrome\/(\d+)/))&&(nu=zo[1]);var ou=nu&&+nu,Ax=Ut("species"),Af=function(e){return ou>=51||!Dt(function(){var t=[];return(t.constructor={})[Ax]=function(){return{foo:1}},t[e](Boolean).foo!==1})},Ex=Af("splice"),Lx=qo("splice",{ACCESSORS:!0,0:0,1:2}),Ox=Math.max,Ix=Math.min;Tn({target:"Array",proto:!0,forced:!Ex||!Lx},{splice:function(e,t){var n,r,i,o,s,l,c=ni(this),d=Qn(c.length),p=eu(e,d),y=arguments.length;if(y===0?n=r=0:y===1?(n=0,r=d-p):(n=y-2,r=Ix(Ox(Vo(t),0),d-p)),d+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(i=iu(c,r),o=0;od-r+n;o--)delete c[o-1]}else if(n>r)for(o=d-r;o>p;o--)l=o+n-1,(s=o+r-1)in c?c[l]=c[s]:delete c[l];for(o=0;o0&&(!o.multiline||o.multiline&&e[o.lastIndex-1]!==` `)&&(c="(?: "+c+")",p=" "+p,d++),n=new RegExp("^(?:"+c+")",l)),Pf&&(n=new RegExp("^"+c+"$(?!\\s)",l)),If&&(t=o.lastIndex),r=su.call(s?n:o,p),s?r?(r.input=r.input.slice(d),r[0]=r[0].slice(d),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:If&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),Pf&&r&&r.length>1&&Nx.call(r[0],n,function(){for(i=1;i")!=="7"}),Qm="a".replace(/./,"$0")==="$0",ev=Ut("replace"),tv=!!/./[ev]&&/./[ev]("a","$0")==="",Hx=!Dt(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),nv=function(e,t,n,r){var i=Ut(e),o=!Dt(function(){var y={};return y[i]=function(){return 7},""[e](y)!=7}),s=o&&!Dt(function(){var y=!1,m=/a/;return e==="split"&&((m={}).constructor={},m.constructor[$x]=function(){return m},m.flags="",m[i]=/./[i]),m.exec=function(){return y=!0,null},m[i](""),!y});if(!o||!s||e==="replace"&&(!Bx||!Qm||tv)||e==="split"&&!Hx){var l=/./[i],c=n(i,""[e],function(y,m,C,b,k){return m.exec===ha?o&&!k?{done:!0,value:l.call(m,C,b)}:{done:!0,value:y.call(C,m,b)}:{done:!1}},{REPLACE_KEEPS_$0:Qm,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:tv}),d=c[0],p=c[1];ki(String.prototype,e,d),ki(RegExp.prototype,i,t==2?function(y,m){return p.call(y,this,m)}:function(y){return p.call(y,this)})}r&&dr(RegExp.prototype[i],"sham",!0)},jx=Ut("match"),rv=function(e){var t;return cn(e)&&((t=e[jx])!==void 0?!!t:ei(e)=="RegExp")},Df=function(e){if(typeof e!="function")throw TypeError(String(e)+" is not a function");return e},Ux=Ut("species"),iv=function(e){return function(t,n){var r,i,o=String(wi(t)),s=Vo(n),l=o.length;return s<0||s>=l?e?"":void 0:(r=o.charCodeAt(s))<55296||r>56319||s+1===l||(i=o.charCodeAt(s+1))<56320||i>57343?e?o.charAt(s):r:e?o.slice(s,s+2):i-56320+(r-55296<<10)+65536}},ov={codeAt:iv(!1),charAt:iv(!0)},Wx=ov.charAt,sv=function(e,t,n){return t+(n?Wx(e,t).length:1)},Rf=function(e,t){var n=e.exec;if(typeof n=="function"){var r=n.call(e,t);if(typeof r!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return r}if(ei(e)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return ha.call(e,t)},Kx=[].push,Vx=Math.min,Xo=!Dt(function(){return!RegExp(4294967295,"y")});nv("split",2,function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(i,o){var s=String(wi(this)),l=o===void 0?4294967295:o>>>0;if(l===0)return[];if(i===void 0)return[s];if(!rv(i))return t.call(s,i,l);for(var c,d,p,y=[],m=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),C=0,b=new RegExp(i.source,m+"g");(c=ha.call(b,s))&&!((d=b.lastIndex)>C&&(y.push(s.slice(C,c.index)),c.length>1&&c.index=l));)b.lastIndex===c.index&&b.lastIndex++;return C===s.length?!p&&b.test("")||y.push(""):y.push(s.slice(C)),y.length>l?y.slice(0,l):y}:"0".split(void 0,0).length?function(i,o){return i===void 0&&o===0?[]:t.call(this,i,o)}:t,[function(i,o){var s=wi(this),l=i==null?void 0:i[e];return l!==void 0?l.call(i,s,o):r.call(String(s),i,o)},function(i,o){var s=n(r,i,this,o,r!==t);if(s.done)return s.value;var l=Ln(i),c=String(this),d=function(x,z){var Q,g=Ln(x).constructor;return g===void 0||(Q=Ln(g)[Ux])==null?z:Df(Q)}(l,RegExp),p=l.unicode,y=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(Xo?"y":"g"),m=new d(Xo?l:"^(?:"+l.source+")",y),C=o===void 0?4294967295:o>>>0;if(C===0)return[];if(c.length===0)return Rf(m,c)===null?[c]:[];for(var b=0,k=0,L=[];k1?arguments[1]:void 0,t.length)),r=String(e);return av?av.call(t,r,n):t.slice(n,n+r.length)===r}});var Jo=function(e){return typeof e=="string"},Zo=function(e){return e!==null&&uv(e)==="object"},Qo=function(){function e(){eo(this,e)}return to(e,null,[{key:"isWindow",value:function(t){return t===window}},{key:"addEventListener",value:function(t,n,r){var i=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t&&n&&r&&t.addEventListener(n,r,i)}},{key:"removeEventListener",value:function(t,n,r){var i=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t&&n&&r&&t.removeEventListener(n,r,i)}},{key:"triggerDragEvent",value:function(t,n){var r=!1,i=function(s){var l;(l=n.drag)===null||l===void 0||l.call(n,s)},o=function s(l){var c;e.removeEventListener(document,"mousemove",i),e.removeEventListener(document,"mouseup",s),document.onselectstart=null,document.ondragstart=null,r=!1,(c=n.end)===null||c===void 0||c.call(n,l)};e.addEventListener(t,"mousedown",function(s){var l;r||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},e.addEventListener(document,"mousemove",i),e.addEventListener(document,"mouseup",o),r=!0,(l=n.start)===null||l===void 0||l.call(n,s))})}},{key:"getBoundingClientRect",value:function(t){return t&&Zo(t)&&t.nodeType===1?t.getBoundingClientRect():null}},{key:"hasClass",value:function(t,n){return!!(t&&Zo(t)&&Jo(n)&&t.nodeType===1)&&t.classList.contains(n.trim())}},{key:"addClass",value:function(t,n){if(t&&Zo(t)&&Jo(n)&&t.nodeType===1&&(n=n.trim(),!e.hasClass(t,n))){var r=t.className;t.className=r?r+" "+n:n}}},{key:"removeClass",value:function(t,n){if(t&&Zo(t)&&Jo(n)&&t.nodeType===1&&typeof t.className=="string"){n=n.trim();for(var r=t.className.trim().split(" "),i=r.length-1;i>=0;i--)r[i]=r[i].trim(),r[i]&&r[i]!==n||r.splice(i,1);t.className=r.join(" ")}}},{key:"toggleClass",value:function(t,n,r){t&&Zo(t)&&Jo(n)&&t.nodeType===1&&t.classList.toggle(n,r)}},{key:"replaceClass",value:function(t,n,r){t&&Zo(t)&&Jo(n)&&Jo(r)&&t.nodeType===1&&(n=n.trim(),r=r.trim(),e.removeClass(t,n),e.addClass(t,r))}},{key:"getScrollTop",value:function(t){var n="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(n,0)}},{key:"setScrollTop",value:function(t,n){"scrollTop"in t?t.scrollTop=n:t.scrollTo(t.scrollX,n)}},{key:"getRootScrollTop",value:function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}},{key:"setRootScrollTop",value:function(t){e.setScrollTop(window,t),e.setScrollTop(document.body,t)}},{key:"getElementTop",value:function(t,n){if(e.isWindow(t))return 0;var r=n?e.getScrollTop(n):e.getRootScrollTop();return t.getBoundingClientRect().top+r}},{key:"getVisibleHeight",value:function(t){return e.isWindow(t)?t.innerHeight:t.getBoundingClientRect().height}},{key:"isHidden",value:function(t){if(!t)return!1;var n=window.getComputedStyle(t),r=n.display==="none",i=t.offsetParent===null&&n.position!=="fixed";return r||i}},{key:"triggerEvent",value:function(t,n){if("createEvent"in document){var r=document.createEvent("HTMLEvents");r.initEvent(n,!1,!0),t.dispatchEvent(r)}}},{key:"calcAngle",value:function(t,n){var r=t.getBoundingClientRect(),i=r.left+r.width/2,o=r.top+r.height/2,s=Math.abs(i-n.clientX),l=Math.abs(o-n.clientY),c=l/Math.sqrt(Math.pow(s,2)+Math.pow(l,2)),d=Math.acos(c),p=Math.floor(180/(Math.PI/d));return n.clientX>i&&n.clientY>o&&(p=180-p),n.clientX==i&&n.clientY>o&&(p=180),n.clientX>i&&n.clientY==o&&(p=90),n.clientXo&&(p=180+p),n.clientX1?r-1:0),o=1;o]*>)/g,cS=/\$([$&'`]|\d\d?)/g,fS=function(e,t,n,r,i,o){var s=n+e.length,l=r.length,c=cS;return i!==void 0&&(i=ni(i),c=uS),lS.call(o,c,function(d,p){var y;switch(p.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(s);case"<":y=i[p.slice(1,-1)];break;default:var m=+p;if(m===0)return d;if(m>l){var C=aS(m/10);return C===0?d:C<=l?r[C-1]===void 0?p.charAt(1):r[C-1]+p.charAt(1):d}y=r[m-1]}return y===void 0?"":y})},dS=Math.max,pS=Math.min;nv("replace",2,function(e,t,n,r){var i=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,o=r.REPLACE_KEEPS_$0,s=i?"$":"$0";return[function(l,c){var d=wi(this),p=l==null?void 0:l[e];return p!==void 0?p.call(l,d,c):t.call(String(d),l,c)},function(l,c){if(!i&&o||typeof c=="string"&&c.indexOf(s)===-1){var d=n(t,l,this,c);if(d.done)return d.value}var p=Ln(l),y=String(this),m=typeof c=="function";m||(c=String(c));var C=p.global;if(C){var b=p.unicode;p.lastIndex=0}for(var k=[];;){var L=Rf(p,y);if(L===null||(k.push(L),!C))break;String(L[0])===""&&(p.lastIndex=sv(y,Qn(p.lastIndex),b))}for(var O,B="",X=0,x=0;x=X&&(B+=y.slice(X,Q)+H,X=Q+z.length)}return B+y.slice(X)}]}),function(){function e(){eo(this,e)}return to(e,null,[{key:"camelize",value:function(t){return t.replace(/-(\w)/g,function(n,r){return r?r.toUpperCase():""})}},{key:"capitalize",value:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}}]),e}(),function(){function e(){eo(this,e)}return to(e,null,[{key:"_clone",value:function(){}}]),e}();var cv=Ut("isConcatSpreadable"),hS=ou>=51||!Dt(function(){var e=[];return e[cv]=!1,e.concat()[0]!==e}),gS=Af("concat"),mS=function(e){if(!cn(e))return!1;var t=e[cv];return t!==void 0?!!t:Go(e)};Tn({target:"Array",proto:!0,forced:!hS||!gS},{concat:function(e){var t,n,r,i,o,s=ni(this),l=iu(s,0),c=0;for(t=-1,r=arguments.length;t9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw TypeError("Maximum allowed index exceeded");Yo(l,c++,o)}return l.length=c,l}});var Bf,ga=function(e,t,n){if(Df(e),t===void 0)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,i){return e.call(t,r,i)};case 3:return function(r,i,o){return e.call(t,r,i,o)}}return function(){return e.apply(t,arguments)}},fv=[].push,xi=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,s=e==7,l=e==5||o;return function(c,d,p,y){for(var m,C,b=ni(c),k=Yl(b),L=ga(d,p,3),O=Qn(k.length),B=0,X=y||iu,x=t?X(c,O):n||s?X(c,0):void 0;O>B;B++)if((l||B in k)&&(C=L(m=k[B],B,b),e))if(t)x[B]=C;else if(C)switch(e){case 3:return!0;case 5:return m;case 6:return B;case 2:fv.call(x,m)}else switch(e){case 4:return!1;case 7:fv.call(x,m)}return o?-1:r||i?i:x}},dv={forEach:xi(0),map:xi(1),filter:xi(2),some:xi(3),every:xi(4),find:xi(5),findIndex:xi(6),filterOut:xi(7)},vS=fr?Object.defineProperties:function(e,t){Ln(e);for(var n,r=Ff(t),i=r.length,o=0;i>o;)ti.f(e,n=r[o++],t[n]);return e},yS=Ql("document","documentElement"),pv=_f("IE_PROTO"),Hf=function(){},hv=function(e){return"