Files
sd-webui-prompt-all-in-one/javascript/main.entry.js
physton d806005dad build
2024-06-04 23:43:10 +08:00

136 lines
760 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(function(_n){typeof define=="function"&&define.amd?define(_n):_n()})(function(){"use strict";var xc=Object.defineProperty;var $c=(_n,Cn,$n)=>Cn in _n?xc(_n,Cn,{enumerable:!0,configurable:!0,writable:!0,value:$n}):_n[Cn]=$n;var Pl=(_n,Cn,$n)=>($c(_n,typeof Cn!="symbol"?Cn+"":Cn,$n),$n);function makeMap(_n,Cn){const $n=Object.create(null),Nn=_n.split(",");for(let Bn=0;Bn<Nn.length;Bn++)$n[Nn[Bn]]=!0;return Cn?Bn=>!!$n[Bn.toLowerCase()]:Bn=>!!$n[Bn]}function normalizeStyle(_n){if(isArray$3(_n)){const Cn={};for(let $n=0;$n<_n.length;$n++){const Nn=_n[$n],Bn=isString$1(Nn)?parseStringStyle(Nn):normalizeStyle(Nn);if(Bn)for(const Ln in Bn)Cn[Ln]=Bn[Ln]}return Cn}else{if(isString$1(_n))return _n;if(isObject$4(_n))return _n}}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*.*?\*\//gs;function parseStringStyle(_n){const Cn={};return _n.replace(styleCommentRE,"").split(listDelimiterRE).forEach($n=>{if($n){const Nn=$n.split(propertyDelimiterRE);Nn.length>1&&(Cn[Nn[0].trim()]=Nn[1].trim())}}),Cn}function normalizeClass(_n){let Cn="";if(isString$1(_n))Cn=_n;else if(isArray$3(_n))for(let $n=0;$n<_n.length;$n++){const Nn=normalizeClass(_n[$n]);Nn&&(Cn+=Nn+" ")}else if(isObject$4(_n))for(const $n in _n)_n[$n]&&(Cn+=$n+" ");return Cn.trim()}const specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr(_n){return!!_n||_n===""}function looseCompareArrays(_n,Cn){if(_n.length!==Cn.length)return!1;let $n=!0;for(let Nn=0;$n&&Nn<_n.length;Nn++)$n=looseEqual(_n[Nn],Cn[Nn]);return $n}function looseEqual(_n,Cn){if(_n===Cn)return!0;let $n=isDate$1(_n),Nn=isDate$1(Cn);if($n||Nn)return $n&&Nn?_n.getTime()===Cn.getTime():!1;if($n=isSymbol(_n),Nn=isSymbol(Cn),$n||Nn)return _n===Cn;if($n=isArray$3(_n),Nn=isArray$3(Cn),$n||Nn)return $n&&Nn?looseCompareArrays(_n,Cn):!1;if($n=isObject$4(_n),Nn=isObject$4(Cn),$n||Nn){if(!$n||!Nn)return!1;const Bn=Object.keys(_n).length,Ln=Object.keys(Cn).length;if(Bn!==Ln)return!1;for(const In in _n){const Pn=_n.hasOwnProperty(In),Dn=Cn.hasOwnProperty(In);if(Pn&&!Dn||!Pn&&Dn||!looseEqual(_n[In],Cn[In]))return!1}}return String(_n)===String(Cn)}function looseIndexOf(_n,Cn){return _n.findIndex($n=>looseEqual($n,Cn))}const toDisplayString=_n=>isString$1(_n)?_n:_n==null?"":isArray$3(_n)||isObject$4(_n)&&(_n.toString===objectToString$1||!isFunction$2(_n.toString))?JSON.stringify(_n,replacer,2):String(_n),replacer=(_n,Cn)=>Cn&&Cn.__v_isRef?replacer(_n,Cn.value):isMap(Cn)?{[`Map(${Cn.size})`]:[...Cn.entries()].reduce(($n,[Nn,Bn])=>($n[`${Nn} =>`]=Bn,$n),{})}:isSet(Cn)?{[`Set(${Cn.size})`]:[...Cn.values()]}:isObject$4(Cn)&&!isArray$3(Cn)&&!isPlainObject$3(Cn)?String(Cn):Cn,EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,onRE=/^on[^a-z]/,isOn=_n=>onRE.test(_n),isModelListener=_n=>_n.startsWith("onUpdate:"),extend$3=Object.assign,remove=(_n,Cn)=>{const $n=_n.indexOf(Cn);$n>-1&&_n.splice($n,1)},hasOwnProperty$b=Object.prototype.hasOwnProperty,hasOwn=(_n,Cn)=>hasOwnProperty$b.call(_n,Cn),isArray$3=Array.isArray,isMap=_n=>toTypeString(_n)==="[object Map]",isSet=_n=>toTypeString(_n)==="[object Set]",isDate$1=_n=>toTypeString(_n)==="[object Date]",isFunction$2=_n=>typeof _n=="function",isString$1=_n=>typeof _n=="string",isSymbol=_n=>typeof _n=="symbol",isObject$4=_n=>_n!==null&&typeof _n=="object",isPromise=_n=>isObject$4(_n)&&isFunction$2(_n.then)&&isFunction$2(_n.catch),objectToString$1=Object.prototype.toString,toTypeString=_n=>objectToString$1.call(_n),toRawType=_n=>toTypeString(_n).slice(8,-1),isPlainObject$3=_n=>toTypeString(_n)==="[object Object]",isIntegerKey=_n=>isString$1(_n)&&_n!=="NaN"&&_n[0]!=="-"&&""+parseInt(_n,10)===_n,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=_n=>{const Cn=Object.create(null);return $n=>Cn[$n]||(Cn[$n]=_n($n))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(_n=>_n.replace(camelizeRE,(Cn,$n)=>$n?$n.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(_n=>_n.replace(hyphenateRE,"-$1").toLowerCase()),capitalize=cacheStringFunction(_n=>_n.charAt(0).toUpperCase()+_n.slice(1)),toHandlerKey=cacheStringFunction(_n=>_n?`on${capitalize(_n)}`:""),hasChanged=(_n,Cn)=>!Object.is(_n,Cn),invokeArrayFns=(_n,Cn)=>{for(let $n=0;$n<_n.length;$n++)_n[$n](Cn)},def=(_n,Cn,$n)=>{Object.defineProperty(_n,Cn,{configurable:!0,enumerable:!1,value:$n})},looseToNumber=_n=>{const Cn=parseFloat(_n);return isNaN(Cn)?_n:Cn},toNumber=_n=>{const Cn=isString$1(_n)?Number(_n):NaN;return isNaN(Cn)?_n:Cn};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let activeEffectScope;class EffectScope{constructor(Cn=!1){this.detached=Cn,this._active=!0,this.effects=[],this.cleanups=[],this.parent=activeEffectScope,!Cn&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}run(Cn){if(this._active){const $n=activeEffectScope;try{return activeEffectScope=this,Cn()}finally{activeEffectScope=$n}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(Cn){if(this._active){let $n,Nn;for($n=0,Nn=this.effects.length;$n<Nn;$n++)this.effects[$n].stop();for($n=0,Nn=this.cleanups.length;$n<Nn;$n++)this.cleanups[$n]();if(this.scopes)for($n=0,Nn=this.scopes.length;$n<Nn;$n++)this.scopes[$n].stop(!0);if(!this.detached&&this.parent&&!Cn){const Bn=this.parent.scopes.pop();Bn&&Bn!==this&&(this.parent.scopes[this.index]=Bn,Bn.index=this.index)}this.parent=void 0,this._active=!1}}}function recordEffectScope(_n,Cn=activeEffectScope){Cn&&Cn.active&&Cn.effects.push(_n)}function getCurrentScope(){return activeEffectScope}function onScopeDispose(_n){activeEffectScope&&activeEffectScope.cleanups.push(_n)}const createDep=_n=>{const Cn=new Set(_n);return Cn.w=0,Cn.n=0,Cn},wasTracked=_n=>(_n.w&trackOpBit)>0,newTracked=_n=>(_n.n&trackOpBit)>0,initDepMarkers=({deps:_n})=>{if(_n.length)for(let Cn=0;Cn<_n.length;Cn++)_n[Cn].w|=trackOpBit},finalizeDepMarkers=_n=>{const{deps:Cn}=_n;if(Cn.length){let $n=0;for(let Nn=0;Nn<Cn.length;Nn++){const Bn=Cn[Nn];wasTracked(Bn)&&!newTracked(Bn)?Bn.delete(_n):Cn[$n++]=Bn,Bn.w&=~trackOpBit,Bn.n&=~trackOpBit}Cn.length=$n}},targetMap=new WeakMap;let effectTrackDepth=0,trackOpBit=1;const maxMarkerBits=30;let activeEffect;const ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol("");class ReactiveEffect{constructor(Cn,$n=null,Nn){this.fn=Cn,this.scheduler=$n,this.active=!0,this.deps=[],this.parent=void 0,recordEffectScope(this,Nn)}run(){if(!this.active)return this.fn();let Cn=activeEffect,$n=shouldTrack;for(;Cn;){if(Cn===this)return;Cn=Cn.parent}try{return this.parent=activeEffect,activeEffect=this,shouldTrack=!0,trackOpBit=1<<++effectTrackDepth,effectTrackDepth<=maxMarkerBits?initDepMarkers(this):cleanupEffect(this),this.fn()}finally{effectTrackDepth<=maxMarkerBits&&finalizeDepMarkers(this),trackOpBit=1<<--effectTrackDepth,activeEffect=this.parent,shouldTrack=$n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){activeEffect===this?this.deferStop=!0:this.active&&(cleanupEffect(this),this.onStop&&this.onStop(),this.active=!1)}}function cleanupEffect(_n){const{deps:Cn}=_n;if(Cn.length){for(let $n=0;$n<Cn.length;$n++)Cn[$n].delete(_n);Cn.length=0}}let shouldTrack=!0;const trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){const _n=trackStack.pop();shouldTrack=_n===void 0?!0:_n}function track(_n,Cn,$n){if(shouldTrack&&activeEffect){let Nn=targetMap.get(_n);Nn||targetMap.set(_n,Nn=new Map);let Bn=Nn.get($n);Bn||Nn.set($n,Bn=createDep()),trackEffects(Bn)}}function trackEffects(_n,Cn){let $n=!1;effectTrackDepth<=maxMarkerBits?newTracked(_n)||(_n.n|=trackOpBit,$n=!wasTracked(_n)):$n=!_n.has(activeEffect),$n&&(_n.add(activeEffect),activeEffect.deps.push(_n))}function trigger(_n,Cn,$n,Nn,Bn,Ln){const In=targetMap.get(_n);if(!In)return;let Pn=[];if(Cn==="clear")Pn=[...In.values()];else if($n==="length"&&isArray$3(_n)){const Dn=Number(Nn);In.forEach((Hn,Wn)=>{(Wn==="length"||Wn>=Dn)&&Pn.push(Hn)})}else switch($n!==void 0&&Pn.push(In.get($n)),Cn){case"add":isArray$3(_n)?isIntegerKey($n)&&Pn.push(In.get("length")):(Pn.push(In.get(ITERATE_KEY)),isMap(_n)&&Pn.push(In.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$3(_n)||(Pn.push(In.get(ITERATE_KEY)),isMap(_n)&&Pn.push(In.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(_n)&&Pn.push(In.get(ITERATE_KEY));break}if(Pn.length===1)Pn[0]&&triggerEffects(Pn[0]);else{const Dn=[];for(const Hn of Pn)Hn&&Dn.push(...Hn);triggerEffects(createDep(Dn))}}function triggerEffects(_n,Cn){const $n=isArray$3(_n)?_n:[..._n];for(const Nn of $n)Nn.computed&&triggerEffect(Nn);for(const Nn of $n)Nn.computed||triggerEffect(Nn)}function triggerEffect(_n,Cn){(_n!==activeEffect||_n.allowRecurse)&&(_n.scheduler?_n.scheduler():_n.run())}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(_n=>_n!=="arguments"&&_n!=="caller").map(_n=>Symbol[_n]).filter(isSymbol)),get$1=createGetter(),shallowGet=createGetter(!1,!0),readonlyGet=createGetter(!0),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const _n={};return["includes","indexOf","lastIndexOf"].forEach(Cn=>{_n[Cn]=function(...$n){const Nn=toRaw(this);for(let Ln=0,In=this.length;Ln<In;Ln++)track(Nn,"get",Ln+"");const Bn=Nn[Cn](...$n);return Bn===-1||Bn===!1?Nn[Cn](...$n.map(toRaw)):Bn}}),["push","pop","shift","unshift","splice"].forEach(Cn=>{_n[Cn]=function(...$n){pauseTracking();const Nn=toRaw(this)[Cn].apply(this,$n);return resetTracking(),Nn}}),_n}function hasOwnProperty$a(_n){const Cn=toRaw(this);return track(Cn,"has",_n),Cn.hasOwnProperty(_n)}function createGetter(_n=!1,Cn=!1){return function(Nn,Bn,Ln){if(Bn==="__v_isReactive")return!_n;if(Bn==="__v_isReadonly")return _n;if(Bn==="__v_isShallow")return Cn;if(Bn==="__v_raw"&&Ln===(_n?Cn?shallowReadonlyMap:readonlyMap:Cn?shallowReactiveMap:reactiveMap).get(Nn))return Nn;const In=isArray$3(Nn);if(!_n){if(In&&hasOwn(arrayInstrumentations,Bn))return Reflect.get(arrayInstrumentations,Bn,Ln);if(Bn==="hasOwnProperty")return hasOwnProperty$a}const Pn=Reflect.get(Nn,Bn,Ln);return(isSymbol(Bn)?builtInSymbols.has(Bn):isNonTrackableKeys(Bn))||(_n||track(Nn,"get",Bn),Cn)?Pn:isRef(Pn)?In&&isIntegerKey(Bn)?Pn:Pn.value:isObject$4(Pn)?_n?readonly(Pn):reactive(Pn):Pn}}const set$1=createSetter(),shallowSet=createSetter(!0);function createSetter(_n=!1){return function($n,Nn,Bn,Ln){let In=$n[Nn];if(isReadonly(In)&&isRef(In)&&!isRef(Bn))return!1;if(!_n&&(!isShallow(Bn)&&!isReadonly(Bn)&&(In=toRaw(In),Bn=toRaw(Bn)),!isArray$3($n)&&isRef(In)&&!isRef(Bn)))return In.value=Bn,!0;const Pn=isArray$3($n)&&isIntegerKey(Nn)?Number(Nn)<$n.length:hasOwn($n,Nn),Dn=Reflect.set($n,Nn,Bn,Ln);return $n===toRaw(Ln)&&(Pn?hasChanged(Bn,In)&&trigger($n,"set",Nn,Bn):trigger($n,"add",Nn,Bn)),Dn}}function deleteProperty(_n,Cn){const $n=hasOwn(_n,Cn);_n[Cn];const Nn=Reflect.deleteProperty(_n,Cn);return Nn&&$n&&trigger(_n,"delete",Cn,void 0),Nn}function has$1(_n,Cn){const $n=Reflect.has(_n,Cn);return(!isSymbol(Cn)||!builtInSymbols.has(Cn))&&track(_n,"has",Cn),$n}function ownKeys$1(_n){return track(_n,"iterate",isArray$3(_n)?"length":ITERATE_KEY),Reflect.ownKeys(_n)}const mutableHandlers={get:get$1,set:set$1,deleteProperty,has:has$1,ownKeys:ownKeys$1},readonlyHandlers={get:readonlyGet,set(_n,Cn){return!0},deleteProperty(_n,Cn){return!0}},shallowReactiveHandlers=extend$3({},mutableHandlers,{get:shallowGet,set:shallowSet}),toShallow=_n=>_n,getProto=_n=>Reflect.getPrototypeOf(_n);function get(_n,Cn,$n=!1,Nn=!1){_n=_n.__v_raw;const Bn=toRaw(_n),Ln=toRaw(Cn);$n||(Cn!==Ln&&track(Bn,"get",Cn),track(Bn,"get",Ln));const{has:In}=getProto(Bn),Pn=Nn?toShallow:$n?toReadonly:toReactive;if(In.call(Bn,Cn))return Pn(_n.get(Cn));if(In.call(Bn,Ln))return Pn(_n.get(Ln));_n!==Bn&&_n.get(Cn)}function has(_n,Cn=!1){const $n=this.__v_raw,Nn=toRaw($n),Bn=toRaw(_n);return Cn||(_n!==Bn&&track(Nn,"has",_n),track(Nn,"has",Bn)),_n===Bn?$n.has(_n):$n.has(_n)||$n.has(Bn)}function size(_n,Cn=!1){return _n=_n.__v_raw,!Cn&&track(toRaw(_n),"iterate",ITERATE_KEY),Reflect.get(_n,"size",_n)}function add(_n){_n=toRaw(_n);const Cn=toRaw(this);return getProto(Cn).has.call(Cn,_n)||(Cn.add(_n),trigger(Cn,"add",_n,_n)),this}function set$2(_n,Cn){Cn=toRaw(Cn);const $n=toRaw(this),{has:Nn,get:Bn}=getProto($n);let Ln=Nn.call($n,_n);Ln||(_n=toRaw(_n),Ln=Nn.call($n,_n));const In=Bn.call($n,_n);return $n.set(_n,Cn),Ln?hasChanged(Cn,In)&&trigger($n,"set",_n,Cn):trigger($n,"add",_n,Cn),this}function deleteEntry(_n){const Cn=toRaw(this),{has:$n,get:Nn}=getProto(Cn);let Bn=$n.call(Cn,_n);Bn||(_n=toRaw(_n),Bn=$n.call(Cn,_n)),Nn&&Nn.call(Cn,_n);const Ln=Cn.delete(_n);return Bn&&trigger(Cn,"delete",_n,void 0),Ln}function clear(){const _n=toRaw(this),Cn=_n.size!==0,$n=_n.clear();return Cn&&trigger(_n,"clear",void 0,void 0),$n}function createForEach(_n,Cn){return function(Nn,Bn){const Ln=this,In=Ln.__v_raw,Pn=toRaw(In),Dn=Cn?toShallow:_n?toReadonly:toReactive;return!_n&&track(Pn,"iterate",ITERATE_KEY),In.forEach((Hn,Wn)=>Nn.call(Bn,Dn(Hn),Dn(Wn),Ln))}}function createIterableMethod(_n,Cn,$n){return function(...Nn){const Bn=this.__v_raw,Ln=toRaw(Bn),In=isMap(Ln),Pn=_n==="entries"||_n===Symbol.iterator&&In,Dn=_n==="keys"&&In,Hn=Bn[_n](...Nn),Wn=$n?toShallow:Cn?toReadonly:toReactive;return!Cn&&track(Ln,"iterate",Dn?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:Xn,done:Gn}=Hn.next();return Gn?{value:Xn,done:Gn}:{value:Pn?[Wn(Xn[0]),Wn(Xn[1])]:Wn(Xn),done:Gn}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(_n){return function(...Cn){return _n==="delete"?!1:this}}function createInstrumentations(){const _n={get(Ln){return get(this,Ln)},get size(){return size(this)},has,add,set:set$2,delete:deleteEntry,clear,forEach:createForEach(!1,!1)},Cn={get(Ln){return get(this,Ln,!1,!0)},get size(){return size(this)},has,add,set:set$2,delete:deleteEntry,clear,forEach:createForEach(!1,!0)},$n={get(Ln){return get(this,Ln,!0)},get size(){return size(this,!0)},has(Ln){return has.call(this,Ln,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},Nn={get(Ln){return get(this,Ln,!0,!0)},get size(){return size(this,!0)},has(Ln){return has.call(this,Ln,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(Ln=>{_n[Ln]=createIterableMethod(Ln,!1,!1),$n[Ln]=createIterableMethod(Ln,!0,!1),Cn[Ln]=createIterableMethod(Ln,!1,!0),Nn[Ln]=createIterableMethod(Ln,!0,!0)}),[_n,$n,Cn,Nn]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(_n,Cn){const $n=Cn?_n?shallowReadonlyInstrumentations:shallowInstrumentations:_n?readonlyInstrumentations:mutableInstrumentations;return(Nn,Bn,Ln)=>Bn==="__v_isReactive"?!_n:Bn==="__v_isReadonly"?_n:Bn==="__v_raw"?Nn:Reflect.get(hasOwn($n,Bn)&&Bn in Nn?$n:Nn,Bn,Ln)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(_n){switch(_n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(_n){return _n.__v_skip||!Object.isExtensible(_n)?0:targetTypeMap(toRawType(_n))}function reactive(_n){return isReadonly(_n)?_n:createReactiveObject(_n,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(_n){return createReactiveObject(_n,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(_n){return createReactiveObject(_n,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function createReactiveObject(_n,Cn,$n,Nn,Bn){if(!isObject$4(_n)||_n.__v_raw&&!(Cn&&_n.__v_isReactive))return _n;const Ln=Bn.get(_n);if(Ln)return Ln;const In=getTargetType(_n);if(In===0)return _n;const Pn=new Proxy(_n,In===2?Nn:$n);return Bn.set(_n,Pn),Pn}function isReactive(_n){return isReadonly(_n)?isReactive(_n.__v_raw):!!(_n&&_n.__v_isReactive)}function isReadonly(_n){return!!(_n&&_n.__v_isReadonly)}function isShallow(_n){return!!(_n&&_n.__v_isShallow)}function isProxy(_n){return isReactive(_n)||isReadonly(_n)}function toRaw(_n){const Cn=_n&&_n.__v_raw;return Cn?toRaw(Cn):_n}function markRaw(_n){return def(_n,"__v_skip",!0),_n}const toReactive=_n=>isObject$4(_n)?reactive(_n):_n,toReadonly=_n=>isObject$4(_n)?readonly(_n):_n;function trackRefValue(_n){shouldTrack&&activeEffect&&(_n=toRaw(_n),trackEffects(_n.dep||(_n.dep=createDep())))}function triggerRefValue(_n,Cn){_n=toRaw(_n);const $n=_n.dep;$n&&triggerEffects($n)}function isRef(_n){return!!(_n&&_n.__v_isRef===!0)}function ref(_n){return createRef(_n,!1)}function shallowRef(_n){return createRef(_n,!0)}function createRef(_n,Cn){return isRef(_n)?_n:new RefImpl(_n,Cn)}class RefImpl{constructor(Cn,$n){this.__v_isShallow=$n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=$n?Cn:toRaw(Cn),this._value=$n?Cn:toReactive(Cn)}get value(){return trackRefValue(this),this._value}set value(Cn){const $n=this.__v_isShallow||isShallow(Cn)||isReadonly(Cn);Cn=$n?Cn:toRaw(Cn),hasChanged(Cn,this._rawValue)&&(this._rawValue=Cn,this._value=$n?Cn:toReactive(Cn),triggerRefValue(this))}}function unref(_n){return isRef(_n)?_n.value:_n}const shallowUnwrapHandlers={get:(_n,Cn,$n)=>unref(Reflect.get(_n,Cn,$n)),set:(_n,Cn,$n,Nn)=>{const Bn=_n[Cn];return isRef(Bn)&&!isRef($n)?(Bn.value=$n,!0):Reflect.set(_n,Cn,$n,Nn)}};function proxyRefs(_n){return isReactive(_n)?_n:new Proxy(_n,shallowUnwrapHandlers)}var _a$1;class ComputedRefImpl{constructor(Cn,$n,Nn,Bn){this._setter=$n,this.dep=void 0,this.__v_isRef=!0,this[_a$1]=!1,this._dirty=!0,this.effect=new ReactiveEffect(Cn,()=>{this._dirty||(this._dirty=!0,triggerRefValue(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!Bn,this.__v_isReadonly=Nn}get value(){const Cn=toRaw(this);return trackRefValue(Cn),(Cn._dirty||!Cn._cacheable)&&(Cn._dirty=!1,Cn._value=Cn.effect.run()),Cn._value}set value(Cn){this._setter(Cn)}}_a$1="__v_isReadonly";function computed$1(_n,Cn,$n=!1){let Nn,Bn;const Ln=isFunction$2(_n);return Ln?(Nn=_n,Bn=NOOP):(Nn=_n.get,Bn=_n.set),new ComputedRefImpl(Nn,Bn,Ln||!Bn,$n)}function warn(_n,...Cn){}function callWithErrorHandling(_n,Cn,$n,Nn){let Bn;try{Bn=Nn?_n(...Nn):_n()}catch(Ln){handleError(Ln,Cn,$n)}return Bn}function callWithAsyncErrorHandling(_n,Cn,$n,Nn){if(isFunction$2(_n)){const Ln=callWithErrorHandling(_n,Cn,$n,Nn);return Ln&&isPromise(Ln)&&Ln.catch(In=>{handleError(In,Cn,$n)}),Ln}const Bn=[];for(let Ln=0;Ln<_n.length;Ln++)Bn.push(callWithAsyncErrorHandling(_n[Ln],Cn,$n,Nn));return Bn}function handleError(_n,Cn,$n,Nn=!0){const Bn=Cn?Cn.vnode:null;if(Cn){let Ln=Cn.parent;const In=Cn.proxy,Pn=$n;for(;Ln;){const Hn=Ln.ec;if(Hn){for(let Wn=0;Wn<Hn.length;Wn++)if(Hn[Wn](_n,In,Pn)===!1)return}Ln=Ln.parent}const Dn=Cn.appContext.config.errorHandler;if(Dn){callWithErrorHandling(Dn,null,10,[_n,In,Pn]);return}}logError(_n,$n,Bn,Nn)}function logError(_n,Cn,$n,Nn=!0){console.error(_n)}let isFlushing=!1,isFlushPending=!1;const queue=[];let flushIndex=0;const pendingPostFlushCbs=[];let activePostFlushCbs=null,postFlushIndex=0;const resolvedPromise=Promise.resolve();let currentFlushPromise=null;function nextTick(_n){const Cn=currentFlushPromise||resolvedPromise;return _n?Cn.then(this?_n.bind(this):_n):Cn}function findInsertionIndex(_n){let Cn=flushIndex+1,$n=queue.length;for(;Cn<$n;){const Nn=Cn+$n>>>1;getId(queue[Nn])<_n?Cn=Nn+1:$n=Nn}return Cn}function queueJob(_n){(!queue.length||!queue.includes(_n,isFlushing&&_n.allowRecurse?flushIndex+1:flushIndex))&&(_n.id==null?queue.push(_n):queue.splice(findInsertionIndex(_n.id),0,_n),queueFlush())}function queueFlush(){!isFlushing&&!isFlushPending&&(isFlushPending=!0,currentFlushPromise=resolvedPromise.then(flushJobs))}function invalidateJob(_n){const Cn=queue.indexOf(_n);Cn>flushIndex&&queue.splice(Cn,1)}function queuePostFlushCb(_n){isArray$3(_n)?pendingPostFlushCbs.push(..._n):(!activePostFlushCbs||!activePostFlushCbs.includes(_n,_n.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push(_n),queueFlush()}function flushPreFlushCbs(_n,Cn=isFlushing?flushIndex+1:0){for(;Cn<queue.length;Cn++){const $n=queue[Cn];$n&&$n.pre&&(queue.splice(Cn,1),Cn--,$n())}}function flushPostFlushCbs(_n){if(pendingPostFlushCbs.length){const Cn=[...new Set(pendingPostFlushCbs)];if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...Cn);return}for(activePostFlushCbs=Cn,activePostFlushCbs.sort(($n,Nn)=>getId($n)-getId(Nn)),postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++)activePostFlushCbs[postFlushIndex]();activePostFlushCbs=null,postFlushIndex=0}}const getId=_n=>_n.id==null?1/0:_n.id,comparator=(_n,Cn)=>{const $n=getId(_n)-getId(Cn);if($n===0){if(_n.pre&&!Cn.pre)return-1;if(Cn.pre&&!_n.pre)return 1}return $n};function flushJobs(_n){isFlushPending=!1,isFlushing=!0,queue.sort(comparator);const Cn=NOOP;try{for(flushIndex=0;flushIndex<queue.length;flushIndex++){const $n=queue[flushIndex];$n&&$n.active!==!1&&callWithErrorHandling($n,null,14)}}finally{flushIndex=0,queue.length=0,flushPostFlushCbs(),isFlushing=!1,currentFlushPromise=null,(queue.length||pendingPostFlushCbs.length)&&flushJobs()}}function emit(_n,Cn,...$n){if(_n.isUnmounted)return;const Nn=_n.vnode.props||EMPTY_OBJ;let Bn=$n;const Ln=Cn.startsWith("update:"),In=Ln&&Cn.slice(7);if(In&&In in Nn){const Wn=`${In==="modelValue"?"model":In}Modifiers`,{number:Xn,trim:Gn}=Nn[Wn]||EMPTY_OBJ;Gn&&(Bn=$n.map(rr=>isString$1(rr)?rr.trim():rr)),Xn&&(Bn=$n.map(looseToNumber))}let Pn,Dn=Nn[Pn=toHandlerKey(Cn)]||Nn[Pn=toHandlerKey(camelize(Cn))];!Dn&&Ln&&(Dn=Nn[Pn=toHandlerKey(hyphenate(Cn))]),Dn&&callWithAsyncErrorHandling(Dn,_n,6,Bn);const Hn=Nn[Pn+"Once"];if(Hn){if(!_n.emitted)_n.emitted={};else if(_n.emitted[Pn])return;_n.emitted[Pn]=!0,callWithAsyncErrorHandling(Hn,_n,6,Bn)}}function normalizeEmitsOptions(_n,Cn,$n=!1){const Nn=Cn.emitsCache,Bn=Nn.get(_n);if(Bn!==void 0)return Bn;const Ln=_n.emits;let In={},Pn=!1;if(!isFunction$2(_n)){const Dn=Hn=>{const Wn=normalizeEmitsOptions(Hn,Cn,!0);Wn&&(Pn=!0,extend$3(In,Wn))};!$n&&Cn.mixins.length&&Cn.mixins.forEach(Dn),_n.extends&&Dn(_n.extends),_n.mixins&&_n.mixins.forEach(Dn)}return!Ln&&!Pn?(isObject$4(_n)&&Nn.set(_n,null),null):(isArray$3(Ln)?Ln.forEach(Dn=>In[Dn]=null):extend$3(In,Ln),isObject$4(_n)&&Nn.set(_n,In),In)}function isEmitListener(_n,Cn){return!_n||!isOn(Cn)?!1:(Cn=Cn.slice(2).replace(/Once$/,""),hasOwn(_n,Cn[0].toLowerCase()+Cn.slice(1))||hasOwn(_n,hyphenate(Cn))||hasOwn(_n,Cn))}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(_n){const Cn=currentRenderingInstance;return currentRenderingInstance=_n,currentScopeId=_n&&_n.type.__scopeId||null,Cn}function pushScopeId(_n){currentScopeId=_n}function popScopeId(){currentScopeId=null}function withCtx(_n,Cn=currentRenderingInstance,$n){if(!Cn||_n._n)return _n;const Nn=(...Bn)=>{Nn._d&&setBlockTracking(-1);const Ln=setCurrentRenderingInstance(Cn);let In;try{In=_n(...Bn)}finally{setCurrentRenderingInstance(Ln),Nn._d&&setBlockTracking(1)}return In};return Nn._n=!0,Nn._c=!0,Nn._d=!0,Nn}function markAttrsAccessed(){}function renderComponentRoot(_n){const{type:Cn,vnode:$n,proxy:Nn,withProxy:Bn,props:Ln,propsOptions:[In],slots:Pn,attrs:Dn,emit:Hn,render:Wn,renderCache:Xn,data:Gn,setupState:rr,ctx:nr,inheritAttrs:Yo}=_n;let ei,ti;const ui=setCurrentRenderingInstance(_n);try{if($n.shapeFlag&4){const Xo=Bn||Nn;ei=normalizeVNode(Wn.call(Xo,Xo,Xn,Ln,rr,Gn,nr)),ti=Dn}else{const Xo=Cn;ei=normalizeVNode(Xo.length>1?Xo(Ln,{attrs:Dn,slots:Pn,emit:Hn}):Xo(Ln,null)),ti=Cn.props?Dn:getFunctionalFallthrough(Dn)}}catch(Xo){blockStack.length=0,handleError(Xo,_n,1),ei=createVNode(Comment)}let mi=ei;if(ti&&Yo!==!1){const Xo=Object.keys(ti),{shapeFlag:vi}=mi;Xo.length&&vi&7&&(In&&Xo.some(isModelListener)&&(ti=filterModelListeners(ti,In)),mi=cloneVNode(mi,ti))}return $n.dirs&&(mi=cloneVNode(mi),mi.dirs=mi.dirs?mi.dirs.concat($n.dirs):$n.dirs),$n.transition&&(mi.transition=$n.transition),ei=mi,setCurrentRenderingInstance(ui),ei}const getFunctionalFallthrough=_n=>{let Cn;for(const $n in _n)($n==="class"||$n==="style"||isOn($n))&&((Cn||(Cn={}))[$n]=_n[$n]);return Cn},filterModelListeners=(_n,Cn)=>{const $n={};for(const Nn in _n)(!isModelListener(Nn)||!(Nn.slice(9)in Cn))&&($n[Nn]=_n[Nn]);return $n};function shouldUpdateComponent(_n,Cn,$n){const{props:Nn,children:Bn,component:Ln}=_n,{props:In,children:Pn,patchFlag:Dn}=Cn,Hn=Ln.emitsOptions;if(Cn.dirs||Cn.transition)return!0;if($n&&Dn>=0){if(Dn&1024)return!0;if(Dn&16)return Nn?hasPropsChanged(Nn,In,Hn):!!In;if(Dn&8){const Wn=Cn.dynamicProps;for(let Xn=0;Xn<Wn.length;Xn++){const Gn=Wn[Xn];if(In[Gn]!==Nn[Gn]&&!isEmitListener(Hn,Gn))return!0}}}else return(Bn||Pn)&&(!Pn||!Pn.$stable)?!0:Nn===In?!1:Nn?In?hasPropsChanged(Nn,In,Hn):!0:!!In;return!1}function hasPropsChanged(_n,Cn,$n){const Nn=Object.keys(Cn);if(Nn.length!==Object.keys(_n).length)return!0;for(let Bn=0;Bn<Nn.length;Bn++){const Ln=Nn[Bn];if(Cn[Ln]!==_n[Ln]&&!isEmitListener($n,Ln))return!0}return!1}function updateHOCHostEl({vnode:_n,parent:Cn},$n){for(;Cn&&Cn.subTree===_n;)(_n=Cn.vnode).el=$n,Cn=Cn.parent}const isSuspense=_n=>_n.__isSuspense;function queueEffectWithSuspense(_n,Cn){Cn&&Cn.pendingBranch?isArray$3(_n)?Cn.effects.push(..._n):Cn.effects.push(_n):queuePostFlushCb(_n)}function provide(_n,Cn){if(currentInstance){let $n=currentInstance.provides;const Nn=currentInstance.parent&&currentInstance.parent.provides;Nn===$n&&($n=currentInstance.provides=Object.create(Nn)),$n[_n]=Cn}}function inject(_n,Cn,$n=!1){const Nn=currentInstance||currentRenderingInstance;if(Nn){const Bn=Nn.parent==null?Nn.vnode.appContext&&Nn.vnode.appContext.provides:Nn.parent.provides;if(Bn&&_n in Bn)return Bn[_n];if(arguments.length>1)return $n&&isFunction$2(Cn)?Cn.call(Nn.proxy):Cn}}const INITIAL_WATCHER_VALUE={};function watch(_n,Cn,$n){return doWatch(_n,Cn,$n)}function doWatch(_n,Cn,{immediate:$n,deep:Nn,flush:Bn,onTrack:Ln,onTrigger:In}=EMPTY_OBJ){const Pn=getCurrentScope()===(currentInstance==null?void 0:currentInstance.scope)?currentInstance:null;let Dn,Hn=!1,Wn=!1;if(isRef(_n)?(Dn=()=>_n.value,Hn=isShallow(_n)):isReactive(_n)?(Dn=()=>_n,Nn=!0):isArray$3(_n)?(Wn=!0,Hn=_n.some(mi=>isReactive(mi)||isShallow(mi)),Dn=()=>_n.map(mi=>{if(isRef(mi))return mi.value;if(isReactive(mi))return traverse(mi);if(isFunction$2(mi))return callWithErrorHandling(mi,Pn,2)})):isFunction$2(_n)?Cn?Dn=()=>callWithErrorHandling(_n,Pn,2):Dn=()=>{if(!(Pn&&Pn.isUnmounted))return Xn&&Xn(),callWithAsyncErrorHandling(_n,Pn,3,[Gn])}:Dn=NOOP,Cn&&Nn){const mi=Dn;Dn=()=>traverse(mi())}let Xn,Gn=mi=>{Xn=ti.onStop=()=>{callWithErrorHandling(mi,Pn,4)}},rr;if(isInSSRComponentSetup)if(Gn=NOOP,Cn?$n&&callWithAsyncErrorHandling(Cn,Pn,3,[Dn(),Wn?[]:void 0,Gn]):Dn(),Bn==="sync"){const mi=useSSRContext();rr=mi.__watcherHandles||(mi.__watcherHandles=[])}else return NOOP;let nr=Wn?new Array(_n.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const Yo=()=>{if(ti.active)if(Cn){const mi=ti.run();(Nn||Hn||(Wn?mi.some((Xo,vi)=>hasChanged(Xo,nr[vi])):hasChanged(mi,nr)))&&(Xn&&Xn(),callWithAsyncErrorHandling(Cn,Pn,3,[mi,nr===INITIAL_WATCHER_VALUE?void 0:Wn&&nr[0]===INITIAL_WATCHER_VALUE?[]:nr,Gn]),nr=mi)}else ti.run()};Yo.allowRecurse=!!Cn;let ei;Bn==="sync"?ei=Yo:Bn==="post"?ei=()=>queuePostRenderEffect(Yo,Pn&&Pn.suspense):(Yo.pre=!0,Pn&&(Yo.id=Pn.uid),ei=()=>queueJob(Yo));const ti=new ReactiveEffect(Dn,ei);Cn?$n?Yo():nr=ti.run():Bn==="post"?queuePostRenderEffect(ti.run.bind(ti),Pn&&Pn.suspense):ti.run();const ui=()=>{ti.stop(),Pn&&Pn.scope&&remove(Pn.scope.effects,ti)};return rr&&rr.push(ui),ui}function instanceWatch(_n,Cn,$n){const Nn=this.proxy,Bn=isString$1(_n)?_n.includes(".")?createPathGetter(Nn,_n):()=>Nn[_n]:_n.bind(Nn,Nn);let Ln;isFunction$2(Cn)?Ln=Cn:(Ln=Cn.handler,$n=Cn);const In=currentInstance;setCurrentInstance(this);const Pn=doWatch(Bn,Ln.bind(Nn),$n);return In?setCurrentInstance(In):unsetCurrentInstance(),Pn}function createPathGetter(_n,Cn){const $n=Cn.split(".");return()=>{let Nn=_n;for(let Bn=0;Bn<$n.length&&Nn;Bn++)Nn=Nn[$n[Bn]];return Nn}}function traverse(_n,Cn){if(!isObject$4(_n)||_n.__v_skip||(Cn=Cn||new Set,Cn.has(_n)))return _n;if(Cn.add(_n),isRef(_n))traverse(_n.value,Cn);else if(isArray$3(_n))for(let $n=0;$n<_n.length;$n++)traverse(_n[$n],Cn);else if(isSet(_n)||isMap(_n))_n.forEach($n=>{traverse($n,Cn)});else if(isPlainObject$3(_n))for(const $n in _n)traverse(_n[$n],Cn);return _n}function useTransitionState(){const _n={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return onMounted(()=>{_n.isMounted=!0}),onBeforeUnmount(()=>{_n.isUnmounting=!0}),_n}const TransitionHookValidator=[Function,Array],BaseTransitionImpl={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},setup(_n,{slots:Cn}){const $n=getCurrentInstance(),Nn=useTransitionState();let Bn;return()=>{const Ln=Cn.default&&getTransitionRawChildren(Cn.default(),!0);if(!Ln||!Ln.length)return;let In=Ln[0];if(Ln.length>1){for(const Yo of Ln)if(Yo.type!==Comment){In=Yo;break}}const Pn=toRaw(_n),{mode:Dn}=Pn;if(Nn.isLeaving)return emptyPlaceholder(In);const Hn=getKeepAliveChild(In);if(!Hn)return emptyPlaceholder(In);const Wn=resolveTransitionHooks(Hn,Pn,Nn,$n);setTransitionHooks(Hn,Wn);const Xn=$n.subTree,Gn=Xn&&getKeepAliveChild(Xn);let rr=!1;const{getTransitionKey:nr}=Hn.type;if(nr){const Yo=nr();Bn===void 0?Bn=Yo:Yo!==Bn&&(Bn=Yo,rr=!0)}if(Gn&&Gn.type!==Comment&&(!isSameVNodeType(Hn,Gn)||rr)){const Yo=resolveTransitionHooks(Gn,Pn,Nn,$n);if(setTransitionHooks(Gn,Yo),Dn==="out-in")return Nn.isLeaving=!0,Yo.afterLeave=()=>{Nn.isLeaving=!1,$n.update.active!==!1&&$n.update()},emptyPlaceholder(In);Dn==="in-out"&&Hn.type!==Comment&&(Yo.delayLeave=(ei,ti,ui)=>{const mi=getLeavingNodesForType(Nn,Gn);mi[String(Gn.key)]=Gn,ei._leaveCb=()=>{ti(),ei._leaveCb=void 0,delete Wn.delayedLeave},Wn.delayedLeave=ui})}return In}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(_n,Cn){const{leavingVNodes:$n}=_n;let Nn=$n.get(Cn.type);return Nn||(Nn=Object.create(null),$n.set(Cn.type,Nn)),Nn}function resolveTransitionHooks(_n,Cn,$n,Nn){const{appear:Bn,mode:Ln,persisted:In=!1,onBeforeEnter:Pn,onEnter:Dn,onAfterEnter:Hn,onEnterCancelled:Wn,onBeforeLeave:Xn,onLeave:Gn,onAfterLeave:rr,onLeaveCancelled:nr,onBeforeAppear:Yo,onAppear:ei,onAfterAppear:ti,onAppearCancelled:ui}=Cn,mi=String(_n.key),Xo=getLeavingNodesForType($n,_n),vi=(ni,Qo)=>{ni&&callWithAsyncErrorHandling(ni,Nn,9,Qo)},zn=(ni,Qo)=>{const ri=Qo[1];vi(ni,Qo),isArray$3(ni)?ni.every(ci=>ci.length<=1)&&ri():ni.length<=1&&ri()},Ni={mode:Ln,persisted:In,beforeEnter(ni){let Qo=Pn;if(!$n.isMounted)if(Bn)Qo=Yo||Pn;else return;ni._leaveCb&&ni._leaveCb(!0);const ri=Xo[mi];ri&&isSameVNodeType(_n,ri)&&ri.el._leaveCb&&ri.el._leaveCb(),vi(Qo,[ni])},enter(ni){let Qo=Dn,ri=Hn,ci=Wn;if(!$n.isMounted)if(Bn)Qo=ei||Dn,ri=ti||Hn,ci=ui||Wn;else return;let pi=!1;const yi=ni._enterCb=Li=>{pi||(pi=!0,Li?vi(ci,[ni]):vi(ri,[ni]),Ni.delayedLeave&&Ni.delayedLeave(),ni._enterCb=void 0)};Qo?zn(Qo,[ni,yi]):yi()},leave(ni,Qo){const ri=String(_n.key);if(ni._enterCb&&ni._enterCb(!0),$n.isUnmounting)return Qo();vi(Xn,[ni]);let ci=!1;const pi=ni._leaveCb=yi=>{ci||(ci=!0,Qo(),yi?vi(nr,[ni]):vi(rr,[ni]),ni._leaveCb=void 0,Xo[ri]===_n&&delete Xo[ri])};Xo[ri]=_n,Gn?zn(Gn,[ni,pi]):pi()},clone(ni){return resolveTransitionHooks(ni,Cn,$n,Nn)}};return Ni}function emptyPlaceholder(_n){if(isKeepAlive(_n))return _n=cloneVNode(_n),_n.children=null,_n}function getKeepAliveChild(_n){return isKeepAlive(_n)?_n.children?_n.children[0]:void 0:_n}function setTransitionHooks(_n,Cn){_n.shapeFlag&6&&_n.component?setTransitionHooks(_n.component.subTree,Cn):_n.shapeFlag&128?(_n.ssContent.transition=Cn.clone(_n.ssContent),_n.ssFallback.transition=Cn.clone(_n.ssFallback)):_n.transition=Cn}function getTransitionRawChildren(_n,Cn=!1,$n){let Nn=[],Bn=0;for(let Ln=0;Ln<_n.length;Ln++){let In=_n[Ln];const Pn=$n==null?In.key:String($n)+String(In.key!=null?In.key:Ln);In.type===Fragment?(In.patchFlag&128&&Bn++,Nn=Nn.concat(getTransitionRawChildren(In.children,Cn,Pn))):(Cn||In.type!==Comment)&&Nn.push(Pn!=null?cloneVNode(In,{key:Pn}):In)}if(Bn>1)for(let Ln=0;Ln<Nn.length;Ln++)Nn[Ln].patchFlag=-2;return Nn}function defineComponent(_n){return isFunction$2(_n)?{setup:_n,name:_n.name}:_n}const isAsyncWrapper=_n=>!!_n.type.__asyncLoader,isKeepAlive=_n=>_n.type.__isKeepAlive;function onActivated(_n,Cn){registerKeepAliveHook(_n,"a",Cn)}function onDeactivated(_n,Cn){registerKeepAliveHook(_n,"da",Cn)}function registerKeepAliveHook(_n,Cn,$n=currentInstance){const Nn=_n.__wdc||(_n.__wdc=()=>{let Bn=$n;for(;Bn;){if(Bn.isDeactivated)return;Bn=Bn.parent}return _n()});if(injectHook(Cn,Nn,$n),$n){let Bn=$n.parent;for(;Bn&&Bn.parent;)isKeepAlive(Bn.parent.vnode)&&injectToKeepAliveRoot(Nn,Cn,$n,Bn),Bn=Bn.parent}}function injectToKeepAliveRoot(_n,Cn,$n,Nn){const Bn=injectHook(Cn,_n,Nn,!0);onUnmounted(()=>{remove(Nn[Cn],Bn)},$n)}function injectHook(_n,Cn,$n=currentInstance,Nn=!1){if($n){const Bn=$n[_n]||($n[_n]=[]),Ln=Cn.__weh||(Cn.__weh=(...In)=>{if($n.isUnmounted)return;pauseTracking(),setCurrentInstance($n);const Pn=callWithAsyncErrorHandling(Cn,$n,_n,In);return unsetCurrentInstance(),resetTracking(),Pn});return Nn?Bn.unshift(Ln):Bn.push(Ln),Ln}}const createHook=_n=>(Cn,$n=currentInstance)=>(!isInSSRComponentSetup||_n==="sp")&&injectHook(_n,(...Nn)=>Cn(...Nn),$n),onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(_n,Cn=currentInstance){injectHook("ec",_n,Cn)}function withDirectives(_n,Cn){const $n=currentRenderingInstance;if($n===null)return _n;const Nn=getExposeProxy($n)||$n.proxy,Bn=_n.dirs||(_n.dirs=[]);for(let Ln=0;Ln<Cn.length;Ln++){let[In,Pn,Dn,Hn=EMPTY_OBJ]=Cn[Ln];In&&(isFunction$2(In)&&(In={mounted:In,updated:In}),In.deep&&traverse(Pn),Bn.push({dir:In,instance:Nn,value:Pn,oldValue:void 0,arg:Dn,modifiers:Hn}))}return _n}function invokeDirectiveHook(_n,Cn,$n,Nn){const Bn=_n.dirs,Ln=Cn&&Cn.dirs;for(let In=0;In<Bn.length;In++){const Pn=Bn[In];Ln&&(Pn.oldValue=Ln[In].value);let Dn=Pn.dir[Nn];Dn&&(pauseTracking(),callWithAsyncErrorHandling(Dn,$n,8,[_n.el,Pn,_n,Cn]),resetTracking())}}const COMPONENTS="components",DIRECTIVES="directives";function resolveComponent(_n,Cn){return resolveAsset(COMPONENTS,_n,!0,Cn)||_n}const NULL_DYNAMIC_COMPONENT=Symbol();function resolveDynamicComponent(_n){return isString$1(_n)?resolveAsset(COMPONENTS,_n,!1)||_n:_n||NULL_DYNAMIC_COMPONENT}function resolveDirective(_n){return resolveAsset(DIRECTIVES,_n)}function resolveAsset(_n,Cn,$n=!0,Nn=!1){const Bn=currentRenderingInstance||currentInstance;if(Bn){const Ln=Bn.type;if(_n===COMPONENTS){const Pn=getComponentName(Ln,!1);if(Pn&&(Pn===Cn||Pn===camelize(Cn)||Pn===capitalize(camelize(Cn))))return Ln}const In=resolve(Bn[_n]||Ln[_n],Cn)||resolve(Bn.appContext[_n],Cn);return!In&&Nn?Ln:In}}function resolve(_n,Cn){return _n&&(_n[Cn]||_n[camelize(Cn)]||_n[capitalize(camelize(Cn))])}function renderList(_n,Cn,$n,Nn){let Bn;const Ln=$n&&$n[Nn];if(isArray$3(_n)||isString$1(_n)){Bn=new Array(_n.length);for(let In=0,Pn=_n.length;In<Pn;In++)Bn[In]=Cn(_n[In],In,void 0,Ln&&Ln[In])}else if(typeof _n=="number"){Bn=new Array(_n);for(let In=0;In<_n;In++)Bn[In]=Cn(In+1,In,void 0,Ln&&Ln[In])}else if(isObject$4(_n))if(_n[Symbol.iterator])Bn=Array.from(_n,(In,Pn)=>Cn(In,Pn,void 0,Ln&&Ln[Pn]));else{const In=Object.keys(_n);Bn=new Array(In.length);for(let Pn=0,Dn=In.length;Pn<Dn;Pn++){const Hn=In[Pn];Bn[Pn]=Cn(_n[Hn],Hn,Pn,Ln&&Ln[Pn])}}else Bn=[];return $n&&($n[Nn]=Bn),Bn}function renderSlot(_n,Cn,$n={},Nn,Bn){if(currentRenderingInstance.isCE||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&&currentRenderingInstance.parent.isCE)return Cn!=="default"&&($n.name=Cn),createVNode("slot",$n,Nn&&Nn());let Ln=_n[Cn];Ln&&Ln._c&&(Ln._d=!1),openBlock();const In=Ln&&ensureValidVNode(Ln($n)),Pn=createBlock(Fragment,{key:$n.key||In&&In.key||`_${Cn}`},In||(Nn?Nn():[]),In&&_n._===1?64:-2);return!Bn&&Pn.scopeId&&(Pn.slotScopeIds=[Pn.scopeId+"-s"]),Ln&&Ln._c&&(Ln._d=!0),Pn}function ensureValidVNode(_n){return _n.some(Cn=>isVNode(Cn)?!(Cn.type===Comment||Cn.type===Fragment&&!ensureValidVNode(Cn.children)):!0)?_n:null}const getPublicInstance=_n=>_n?isStatefulComponent(_n)?getExposeProxy(_n)||_n.proxy:getPublicInstance(_n.parent):null,publicPropertiesMap=extend$3(Object.create(null),{$:_n=>_n,$el:_n=>_n.vnode.el,$data:_n=>_n.data,$props:_n=>_n.props,$attrs:_n=>_n.attrs,$slots:_n=>_n.slots,$refs:_n=>_n.refs,$parent:_n=>getPublicInstance(_n.parent),$root:_n=>getPublicInstance(_n.root),$emit:_n=>_n.emit,$options:_n=>resolveMergedOptions(_n),$forceUpdate:_n=>_n.f||(_n.f=()=>queueJob(_n.update)),$nextTick:_n=>_n.n||(_n.n=nextTick.bind(_n.proxy)),$watch:_n=>instanceWatch.bind(_n)}),hasSetupBinding=(_n,Cn)=>_n!==EMPTY_OBJ&&!_n.__isScriptSetup&&hasOwn(_n,Cn),PublicInstanceProxyHandlers={get({_:_n},Cn){const{ctx:$n,setupState:Nn,data:Bn,props:Ln,accessCache:In,type:Pn,appContext:Dn}=_n;let Hn;if(Cn[0]!=="$"){const rr=In[Cn];if(rr!==void 0)switch(rr){case 1:return Nn[Cn];case 2:return Bn[Cn];case 4:return $n[Cn];case 3:return Ln[Cn]}else{if(hasSetupBinding(Nn,Cn))return In[Cn]=1,Nn[Cn];if(Bn!==EMPTY_OBJ&&hasOwn(Bn,Cn))return In[Cn]=2,Bn[Cn];if((Hn=_n.propsOptions[0])&&hasOwn(Hn,Cn))return In[Cn]=3,Ln[Cn];if($n!==EMPTY_OBJ&&hasOwn($n,Cn))return In[Cn]=4,$n[Cn];shouldCacheAccess&&(In[Cn]=0)}}const Wn=publicPropertiesMap[Cn];let Xn,Gn;if(Wn)return Cn==="$attrs"&&track(_n,"get",Cn),Wn(_n);if((Xn=Pn.__cssModules)&&(Xn=Xn[Cn]))return Xn;if($n!==EMPTY_OBJ&&hasOwn($n,Cn))return In[Cn]=4,$n[Cn];if(Gn=Dn.config.globalProperties,hasOwn(Gn,Cn))return Gn[Cn]},set({_:_n},Cn,$n){const{data:Nn,setupState:Bn,ctx:Ln}=_n;return hasSetupBinding(Bn,Cn)?(Bn[Cn]=$n,!0):Nn!==EMPTY_OBJ&&hasOwn(Nn,Cn)?(Nn[Cn]=$n,!0):hasOwn(_n.props,Cn)||Cn[0]==="$"&&Cn.slice(1)in _n?!1:(Ln[Cn]=$n,!0)},has({_:{data:_n,setupState:Cn,accessCache:$n,ctx:Nn,appContext:Bn,propsOptions:Ln}},In){let Pn;return!!$n[In]||_n!==EMPTY_OBJ&&hasOwn(_n,In)||hasSetupBinding(Cn,In)||(Pn=Ln[0])&&hasOwn(Pn,In)||hasOwn(Nn,In)||hasOwn(publicPropertiesMap,In)||hasOwn(Bn.config.globalProperties,In)},defineProperty(_n,Cn,$n){return $n.get!=null?_n._.accessCache[Cn]=0:hasOwn($n,"value")&&this.set(_n,Cn,$n.value,null),Reflect.defineProperty(_n,Cn,$n)}};let shouldCacheAccess=!0;function applyOptions(_n){const Cn=resolveMergedOptions(_n),$n=_n.proxy,Nn=_n.ctx;shouldCacheAccess=!1,Cn.beforeCreate&&callHook$1(Cn.beforeCreate,_n,"bc");const{data:Bn,computed:Ln,methods:In,watch:Pn,provide:Dn,inject:Hn,created:Wn,beforeMount:Xn,mounted:Gn,beforeUpdate:rr,updated:nr,activated:Yo,deactivated:ei,beforeDestroy:ti,beforeUnmount:ui,destroyed:mi,unmounted:Xo,render:vi,renderTracked:zn,renderTriggered:Ni,errorCaptured:ni,serverPrefetch:Qo,expose:ri,inheritAttrs:ci,components:pi,directives:yi,filters:Li}=Cn;if(Hn&&resolveInjections(Hn,Nn,null,_n.appContext.config.unwrapInjectedRef),In)for(const bi in In){const xi=In[bi];isFunction$2(xi)&&(Nn[bi]=xi.bind($n))}if(Bn){const bi=Bn.call($n,$n);isObject$4(bi)&&(_n.data=reactive(bi))}if(shouldCacheAccess=!0,Ln)for(const bi in Ln){const xi=Ln[bi],Ii=isFunction$2(xi)?xi.bind($n,$n):isFunction$2(xi.get)?xi.get.bind($n,$n):NOOP,da=!isFunction$2(xi)&&isFunction$2(xi.set)?xi.set.bind($n):NOOP,oa=computed({get:Ii,set:da});Object.defineProperty(Nn,bi,{enumerable:!0,configurable:!0,get:()=>oa.value,set:Si=>oa.value=Si})}if(Pn)for(const bi in Pn)createWatcher(Pn[bi],Nn,$n,bi);if(Dn){const bi=isFunction$2(Dn)?Dn.call($n):Dn;Reflect.ownKeys(bi).forEach(xi=>{provide(xi,bi[xi])})}Wn&&callHook$1(Wn,_n,"c");function Yi(bi,xi){isArray$3(xi)?xi.forEach(Ii=>bi(Ii.bind($n))):xi&&bi(xi.bind($n))}if(Yi(onBeforeMount,Xn),Yi(onMounted,Gn),Yi(onBeforeUpdate,rr),Yi(onUpdated,nr),Yi(onActivated,Yo),Yi(onDeactivated,ei),Yi(onErrorCaptured,ni),Yi(onRenderTracked,zn),Yi(onRenderTriggered,Ni),Yi(onBeforeUnmount,ui),Yi(onUnmounted,Xo),Yi(onServerPrefetch,Qo),isArray$3(ri))if(ri.length){const bi=_n.exposed||(_n.exposed={});ri.forEach(xi=>{Object.defineProperty(bi,xi,{get:()=>$n[xi],set:Ii=>$n[xi]=Ii})})}else _n.exposed||(_n.exposed={});vi&&_n.render===NOOP&&(_n.render=vi),ci!=null&&(_n.inheritAttrs=ci),pi&&(_n.components=pi),yi&&(_n.directives=yi)}function resolveInjections(_n,Cn,$n=NOOP,Nn=!1){isArray$3(_n)&&(_n=normalizeInject(_n));for(const Bn in _n){const Ln=_n[Bn];let In;isObject$4(Ln)?"default"in Ln?In=inject(Ln.from||Bn,Ln.default,!0):In=inject(Ln.from||Bn):In=inject(Ln),isRef(In)&&Nn?Object.defineProperty(Cn,Bn,{enumerable:!0,configurable:!0,get:()=>In.value,set:Pn=>In.value=Pn}):Cn[Bn]=In}}function callHook$1(_n,Cn,$n){callWithAsyncErrorHandling(isArray$3(_n)?_n.map(Nn=>Nn.bind(Cn.proxy)):_n.bind(Cn.proxy),Cn,$n)}function createWatcher(_n,Cn,$n,Nn){const Bn=Nn.includes(".")?createPathGetter($n,Nn):()=>$n[Nn];if(isString$1(_n)){const Ln=Cn[_n];isFunction$2(Ln)&&watch(Bn,Ln)}else if(isFunction$2(_n))watch(Bn,_n.bind($n));else if(isObject$4(_n))if(isArray$3(_n))_n.forEach(Ln=>createWatcher(Ln,Cn,$n,Nn));else{const Ln=isFunction$2(_n.handler)?_n.handler.bind($n):Cn[_n.handler];isFunction$2(Ln)&&watch(Bn,Ln,_n)}}function resolveMergedOptions(_n){const Cn=_n.type,{mixins:$n,extends:Nn}=Cn,{mixins:Bn,optionsCache:Ln,config:{optionMergeStrategies:In}}=_n.appContext,Pn=Ln.get(Cn);let Dn;return Pn?Dn=Pn:!Bn.length&&!$n&&!Nn?Dn=Cn:(Dn={},Bn.length&&Bn.forEach(Hn=>mergeOptions(Dn,Hn,In,!0)),mergeOptions(Dn,Cn,In)),isObject$4(Cn)&&Ln.set(Cn,Dn),Dn}function mergeOptions(_n,Cn,$n,Nn=!1){const{mixins:Bn,extends:Ln}=Cn;Ln&&mergeOptions(_n,Ln,$n,!0),Bn&&Bn.forEach(In=>mergeOptions(_n,In,$n,!0));for(const In in Cn)if(!(Nn&&In==="expose")){const Pn=internalOptionMergeStrats[In]||$n&&$n[In];_n[In]=Pn?Pn(_n[In],Cn[In]):Cn[In]}return _n}const internalOptionMergeStrats={data:mergeDataFn,props:mergeObjectOptions,emits:mergeObjectOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(_n,Cn){return Cn?_n?function(){return extend$3(isFunction$2(_n)?_n.call(this,this):_n,isFunction$2(Cn)?Cn.call(this,this):Cn)}:Cn:_n}function mergeInject(_n,Cn){return mergeObjectOptions(normalizeInject(_n),normalizeInject(Cn))}function normalizeInject(_n){if(isArray$3(_n)){const Cn={};for(let $n=0;$n<_n.length;$n++)Cn[_n[$n]]=_n[$n];return Cn}return _n}function mergeAsArray(_n,Cn){return _n?[...new Set([].concat(_n,Cn))]:Cn}function mergeObjectOptions(_n,Cn){return _n?extend$3(extend$3(Object.create(null),_n),Cn):Cn}function mergeWatchOptions(_n,Cn){if(!_n)return Cn;if(!Cn)return _n;const $n=extend$3(Object.create(null),_n);for(const Nn in Cn)$n[Nn]=mergeAsArray(_n[Nn],Cn[Nn]);return $n}function initProps(_n,Cn,$n,Nn=!1){const Bn={},Ln={};def(Ln,InternalObjectKey,1),_n.propsDefaults=Object.create(null),setFullProps(_n,Cn,Bn,Ln);for(const In in _n.propsOptions[0])In in Bn||(Bn[In]=void 0);$n?_n.props=Nn?Bn:shallowReactive(Bn):_n.type.props?_n.props=Bn:_n.props=Ln,_n.attrs=Ln}function updateProps(_n,Cn,$n,Nn){const{props:Bn,attrs:Ln,vnode:{patchFlag:In}}=_n,Pn=toRaw(Bn),[Dn]=_n.propsOptions;let Hn=!1;if((Nn||In>0)&&!(In&16)){if(In&8){const Wn=_n.vnode.dynamicProps;for(let Xn=0;Xn<Wn.length;Xn++){let Gn=Wn[Xn];if(isEmitListener(_n.emitsOptions,Gn))continue;const rr=Cn[Gn];if(Dn)if(hasOwn(Ln,Gn))rr!==Ln[Gn]&&(Ln[Gn]=rr,Hn=!0);else{const nr=camelize(Gn);Bn[nr]=resolvePropValue(Dn,Pn,nr,rr,_n,!1)}else rr!==Ln[Gn]&&(Ln[Gn]=rr,Hn=!0)}}}else{setFullProps(_n,Cn,Bn,Ln)&&(Hn=!0);let Wn;for(const Xn in Pn)(!Cn||!hasOwn(Cn,Xn)&&((Wn=hyphenate(Xn))===Xn||!hasOwn(Cn,Wn)))&&(Dn?$n&&($n[Xn]!==void 0||$n[Wn]!==void 0)&&(Bn[Xn]=resolvePropValue(Dn,Pn,Xn,void 0,_n,!0)):delete Bn[Xn]);if(Ln!==Pn)for(const Xn in Ln)(!Cn||!hasOwn(Cn,Xn))&&(delete Ln[Xn],Hn=!0)}Hn&&trigger(_n,"set","$attrs")}function setFullProps(_n,Cn,$n,Nn){const[Bn,Ln]=_n.propsOptions;let In=!1,Pn;if(Cn)for(let Dn in Cn){if(isReservedProp(Dn))continue;const Hn=Cn[Dn];let Wn;Bn&&hasOwn(Bn,Wn=camelize(Dn))?!Ln||!Ln.includes(Wn)?$n[Wn]=Hn:(Pn||(Pn={}))[Wn]=Hn:isEmitListener(_n.emitsOptions,Dn)||(!(Dn in Nn)||Hn!==Nn[Dn])&&(Nn[Dn]=Hn,In=!0)}if(Ln){const Dn=toRaw($n),Hn=Pn||EMPTY_OBJ;for(let Wn=0;Wn<Ln.length;Wn++){const Xn=Ln[Wn];$n[Xn]=resolvePropValue(Bn,Dn,Xn,Hn[Xn],_n,!hasOwn(Hn,Xn))}}return In}function resolvePropValue(_n,Cn,$n,Nn,Bn,Ln){const In=_n[$n];if(In!=null){const Pn=hasOwn(In,"default");if(Pn&&Nn===void 0){const Dn=In.default;if(In.type!==Function&&isFunction$2(Dn)){const{propsDefaults:Hn}=Bn;$n in Hn?Nn=Hn[$n]:(setCurrentInstance(Bn),Nn=Hn[$n]=Dn.call(null,Cn),unsetCurrentInstance())}else Nn=Dn}In[0]&&(Ln&&!Pn?Nn=!1:In[1]&&(Nn===""||Nn===hyphenate($n))&&(Nn=!0))}return Nn}function normalizePropsOptions(_n,Cn,$n=!1){const Nn=Cn.propsCache,Bn=Nn.get(_n);if(Bn)return Bn;const Ln=_n.props,In={},Pn=[];let Dn=!1;if(!isFunction$2(_n)){const Wn=Xn=>{Dn=!0;const[Gn,rr]=normalizePropsOptions(Xn,Cn,!0);extend$3(In,Gn),rr&&Pn.push(...rr)};!$n&&Cn.mixins.length&&Cn.mixins.forEach(Wn),_n.extends&&Wn(_n.extends),_n.mixins&&_n.mixins.forEach(Wn)}if(!Ln&&!Dn)return isObject$4(_n)&&Nn.set(_n,EMPTY_ARR),EMPTY_ARR;if(isArray$3(Ln))for(let Wn=0;Wn<Ln.length;Wn++){const Xn=camelize(Ln[Wn]);validatePropName(Xn)&&(In[Xn]=EMPTY_OBJ)}else if(Ln)for(const Wn in Ln){const Xn=camelize(Wn);if(validatePropName(Xn)){const Gn=Ln[Wn],rr=In[Xn]=isArray$3(Gn)||isFunction$2(Gn)?{type:Gn}:Object.assign({},Gn);if(rr){const nr=getTypeIndex(Boolean,rr.type),Yo=getTypeIndex(String,rr.type);rr[0]=nr>-1,rr[1]=Yo<0||nr<Yo,(nr>-1||hasOwn(rr,"default"))&&Pn.push(Xn)}}}const Hn=[In,Pn];return isObject$4(_n)&&Nn.set(_n,Hn),Hn}function validatePropName(_n){return _n[0]!=="$"}function getType(_n){const Cn=_n&&_n.toString().match(/^\s*(function|class) (\w+)/);return Cn?Cn[2]:_n===null?"null":""}function isSameType(_n,Cn){return getType(_n)===getType(Cn)}function getTypeIndex(_n,Cn){return isArray$3(Cn)?Cn.findIndex($n=>isSameType($n,_n)):isFunction$2(Cn)&&isSameType(Cn,_n)?0:-1}const isInternalKey=_n=>_n[0]==="_"||_n==="$stable",normalizeSlotValue=_n=>isArray$3(_n)?_n.map(normalizeVNode):[normalizeVNode(_n)],normalizeSlot=(_n,Cn,$n)=>{if(Cn._n)return Cn;const Nn=withCtx((...Bn)=>normalizeSlotValue(Cn(...Bn)),$n);return Nn._c=!1,Nn},normalizeObjectSlots=(_n,Cn,$n)=>{const Nn=_n._ctx;for(const Bn in _n){if(isInternalKey(Bn))continue;const Ln=_n[Bn];if(isFunction$2(Ln))Cn[Bn]=normalizeSlot(Bn,Ln,Nn);else if(Ln!=null){const In=normalizeSlotValue(Ln);Cn[Bn]=()=>In}}},normalizeVNodeSlots=(_n,Cn)=>{const $n=normalizeSlotValue(Cn);_n.slots.default=()=>$n},initSlots=(_n,Cn)=>{if(_n.vnode.shapeFlag&32){const $n=Cn._;$n?(_n.slots=toRaw(Cn),def(Cn,"_",$n)):normalizeObjectSlots(Cn,_n.slots={})}else _n.slots={},Cn&&normalizeVNodeSlots(_n,Cn);def(_n.slots,InternalObjectKey,1)},updateSlots=(_n,Cn,$n)=>{const{vnode:Nn,slots:Bn}=_n;let Ln=!0,In=EMPTY_OBJ;if(Nn.shapeFlag&32){const Pn=Cn._;Pn?$n&&Pn===1?Ln=!1:(extend$3(Bn,Cn),!$n&&Pn===1&&delete Bn._):(Ln=!Cn.$stable,normalizeObjectSlots(Cn,Bn)),In=Cn}else Cn&&(normalizeVNodeSlots(_n,Cn),In={default:1});if(Ln)for(const Pn in Bn)!isInternalKey(Pn)&&!(Pn in In)&&delete Bn[Pn]};function createAppContext(){return{app:null,config:{isNativeTag:NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let uid$1=0;function createAppAPI(_n,Cn){return function(Nn,Bn=null){isFunction$2(Nn)||(Nn=Object.assign({},Nn)),Bn!=null&&!isObject$4(Bn)&&(Bn=null);const Ln=createAppContext(),In=new Set;let Pn=!1;const Dn=Ln.app={_uid:uid$1++,_component:Nn,_props:Bn,_container:null,_context:Ln,_instance:null,version:version$1,get config(){return Ln.config},set config(Hn){},use(Hn,...Wn){return In.has(Hn)||(Hn&&isFunction$2(Hn.install)?(In.add(Hn),Hn.install(Dn,...Wn)):isFunction$2(Hn)&&(In.add(Hn),Hn(Dn,...Wn))),Dn},mixin(Hn){return Ln.mixins.includes(Hn)||Ln.mixins.push(Hn),Dn},component(Hn,Wn){return Wn?(Ln.components[Hn]=Wn,Dn):Ln.components[Hn]},directive(Hn,Wn){return Wn?(Ln.directives[Hn]=Wn,Dn):Ln.directives[Hn]},mount(Hn,Wn,Xn){if(!Pn){const Gn=createVNode(Nn,Bn);return Gn.appContext=Ln,Wn&&Cn?Cn(Gn,Hn):_n(Gn,Hn,Xn),Pn=!0,Dn._container=Hn,Hn.__vue_app__=Dn,getExposeProxy(Gn.component)||Gn.component.proxy}},unmount(){Pn&&(_n(null,Dn._container),delete Dn._container.__vue_app__)},provide(Hn,Wn){return Ln.provides[Hn]=Wn,Dn}};return Dn}}function setRef(_n,Cn,$n,Nn,Bn=!1){if(isArray$3(_n)){_n.forEach((Gn,rr)=>setRef(Gn,Cn&&(isArray$3(Cn)?Cn[rr]:Cn),$n,Nn,Bn));return}if(isAsyncWrapper(Nn)&&!Bn)return;const Ln=Nn.shapeFlag&4?getExposeProxy(Nn.component)||Nn.component.proxy:Nn.el,In=Bn?null:Ln,{i:Pn,r:Dn}=_n,Hn=Cn&&Cn.r,Wn=Pn.refs===EMPTY_OBJ?Pn.refs={}:Pn.refs,Xn=Pn.setupState;if(Hn!=null&&Hn!==Dn&&(isString$1(Hn)?(Wn[Hn]=null,hasOwn(Xn,Hn)&&(Xn[Hn]=null)):isRef(Hn)&&(Hn.value=null)),isFunction$2(Dn))callWithErrorHandling(Dn,Pn,12,[In,Wn]);else{const Gn=isString$1(Dn),rr=isRef(Dn);if(Gn||rr){const nr=()=>{if(_n.f){const Yo=Gn?hasOwn(Xn,Dn)?Xn[Dn]:Wn[Dn]:Dn.value;Bn?isArray$3(Yo)&&remove(Yo,Ln):isArray$3(Yo)?Yo.includes(Ln)||Yo.push(Ln):Gn?(Wn[Dn]=[Ln],hasOwn(Xn,Dn)&&(Xn[Dn]=Wn[Dn])):(Dn.value=[Ln],_n.k&&(Wn[_n.k]=Dn.value))}else Gn?(Wn[Dn]=In,hasOwn(Xn,Dn)&&(Xn[Dn]=In)):rr&&(Dn.value=In,_n.k&&(Wn[_n.k]=In))};In?(nr.id=-1,queuePostRenderEffect(nr,$n)):nr()}}}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(_n){return baseCreateRenderer(_n)}function baseCreateRenderer(_n,Cn){const $n=getGlobalThis();$n.__VUE__=!0;const{insert:Nn,remove:Bn,patchProp:Ln,createElement:In,createText:Pn,createComment:Dn,setText:Hn,setElementText:Wn,parentNode:Xn,nextSibling:Gn,setScopeId:rr=NOOP,insertStaticContent:nr}=_n,Yo=(oi,si,_i,Ti=null,fi=null,Ei=null,Fi=!1,Pi=null,Vi=!!si.dynamicChildren)=>{if(oi===si)return;oi&&!isSameVNodeType(oi,si)&&(Ti=ea(oi),Si(oi,fi,Ei,!0),oi=null),si.patchFlag===-2&&(Vi=!1,si.dynamicChildren=null);const{type:Bi,ref:Wi,shapeFlag:Hi}=si;switch(Bi){case Text:ei(oi,si,_i,Ti);break;case Comment:ti(oi,si,_i,Ti);break;case Static:oi==null&&ui(si,_i,Ti,Fi);break;case Fragment:pi(oi,si,_i,Ti,fi,Ei,Fi,Pi,Vi);break;default:Hi&1?vi(oi,si,_i,Ti,fi,Ei,Fi,Pi,Vi):Hi&6?yi(oi,si,_i,Ti,fi,Ei,Fi,Pi,Vi):(Hi&64||Hi&128)&&Bi.process(oi,si,_i,Ti,fi,Ei,Fi,Pi,Vi,qi)}Wi!=null&&fi&&setRef(Wi,oi&&oi.ref,Ei,si||oi,!si)},ei=(oi,si,_i,Ti)=>{if(oi==null)Nn(si.el=Pn(si.children),_i,Ti);else{const fi=si.el=oi.el;si.children!==oi.children&&Hn(fi,si.children)}},ti=(oi,si,_i,Ti)=>{oi==null?Nn(si.el=Dn(si.children||""),_i,Ti):si.el=oi.el},ui=(oi,si,_i,Ti)=>{[oi.el,oi.anchor]=nr(oi.children,si,_i,Ti,oi.el,oi.anchor)},mi=({el:oi,anchor:si},_i,Ti)=>{let fi;for(;oi&&oi!==si;)fi=Gn(oi),Nn(oi,_i,Ti),oi=fi;Nn(si,_i,Ti)},Xo=({el:oi,anchor:si})=>{let _i;for(;oi&&oi!==si;)_i=Gn(oi),Bn(oi),oi=_i;Bn(si)},vi=(oi,si,_i,Ti,fi,Ei,Fi,Pi,Vi)=>{Fi=Fi||si.type==="svg",oi==null?zn(si,_i,Ti,fi,Ei,Fi,Pi,Vi):Qo(oi,si,fi,Ei,Fi,Pi,Vi)},zn=(oi,si,_i,Ti,fi,Ei,Fi,Pi)=>{let Vi,Bi;const{type:Wi,props:Hi,shapeFlag:Ji,transition:Ui,dirs:ia}=oi;if(Vi=oi.el=In(oi.type,Ei,Hi&&Hi.is,Hi),Ji&8?Wn(Vi,oi.children):Ji&16&&ni(oi.children,Vi,null,Ti,fi,Ei&&Wi!=="foreignObject",Fi,Pi),ia&&invokeDirectiveHook(oi,null,Ti,"created"),Ni(Vi,oi,oi.scopeId,Fi,Ti),Hi){for(const ha in Hi)ha!=="value"&&!isReservedProp(ha)&&Ln(Vi,ha,null,Hi[ha],Ei,oi.children,Ti,fi,zi);"value"in Hi&&Ln(Vi,"value",null,Hi.value),(Bi=Hi.onVnodeBeforeMount)&&invokeVNodeHook(Bi,Ti,oi)}ia&&invokeDirectiveHook(oi,null,Ti,"beforeMount");const va=(!fi||fi&&!fi.pendingBranch)&&Ui&&!Ui.persisted;va&&Ui.beforeEnter(Vi),Nn(Vi,si,_i),((Bi=Hi&&Hi.onVnodeMounted)||va||ia)&&queuePostRenderEffect(()=>{Bi&&invokeVNodeHook(Bi,Ti,oi),va&&Ui.enter(Vi),ia&&invokeDirectiveHook(oi,null,Ti,"mounted")},fi)},Ni=(oi,si,_i,Ti,fi)=>{if(_i&&rr(oi,_i),Ti)for(let Ei=0;Ei<Ti.length;Ei++)rr(oi,Ti[Ei]);if(fi){let Ei=fi.subTree;if(si===Ei){const Fi=fi.vnode;Ni(oi,Fi,Fi.scopeId,Fi.slotScopeIds,fi.parent)}}},ni=(oi,si,_i,Ti,fi,Ei,Fi,Pi,Vi=0)=>{for(let Bi=Vi;Bi<oi.length;Bi++){const Wi=oi[Bi]=Pi?cloneIfMounted(oi[Bi]):normalizeVNode(oi[Bi]);Yo(null,Wi,si,_i,Ti,fi,Ei,Fi,Pi)}},Qo=(oi,si,_i,Ti,fi,Ei,Fi)=>{const Pi=si.el=oi.el;let{patchFlag:Vi,dynamicChildren:Bi,dirs:Wi}=si;Vi|=oi.patchFlag&16;const Hi=oi.props||EMPTY_OBJ,Ji=si.props||EMPTY_OBJ;let Ui;_i&&toggleRecurse(_i,!1),(Ui=Ji.onVnodeBeforeUpdate)&&invokeVNodeHook(Ui,_i,si,oi),Wi&&invokeDirectiveHook(si,oi,_i,"beforeUpdate"),_i&&toggleRecurse(_i,!0);const ia=fi&&si.type!=="foreignObject";if(Bi?ri(oi.dynamicChildren,Bi,Pi,_i,Ti,ia,Ei):Fi||xi(oi,si,Pi,null,_i,Ti,ia,Ei,!1),Vi>0){if(Vi&16)ci(Pi,si,Hi,Ji,_i,Ti,fi);else if(Vi&2&&Hi.class!==Ji.class&&Ln(Pi,"class",null,Ji.class,fi),Vi&4&&Ln(Pi,"style",Hi.style,Ji.style,fi),Vi&8){const va=si.dynamicProps;for(let ha=0;ha<va.length;ha++){const Ca=va[ha],Aa=Hi[Ca],Oa=Ji[Ca];(Oa!==Aa||Ca==="value")&&Ln(Pi,Ca,Aa,Oa,fi,oi.children,_i,Ti,zi)}}Vi&1&&oi.children!==si.children&&Wn(Pi,si.children)}else!Fi&&Bi==null&&ci(Pi,si,Hi,Ji,_i,Ti,fi);((Ui=Ji.onVnodeUpdated)||Wi)&&queuePostRenderEffect(()=>{Ui&&invokeVNodeHook(Ui,_i,si,oi),Wi&&invokeDirectiveHook(si,oi,_i,"updated")},Ti)},ri=(oi,si,_i,Ti,fi,Ei,Fi)=>{for(let Pi=0;Pi<si.length;Pi++){const Vi=oi[Pi],Bi=si[Pi],Wi=Vi.el&&(Vi.type===Fragment||!isSameVNodeType(Vi,Bi)||Vi.shapeFlag&70)?Xn(Vi.el):_i;Yo(Vi,Bi,Wi,null,Ti,fi,Ei,Fi,!0)}},ci=(oi,si,_i,Ti,fi,Ei,Fi)=>{if(_i!==Ti){if(_i!==EMPTY_OBJ)for(const Pi in _i)!isReservedProp(Pi)&&!(Pi in Ti)&&Ln(oi,Pi,_i[Pi],null,Fi,si.children,fi,Ei,zi);for(const Pi in Ti){if(isReservedProp(Pi))continue;const Vi=Ti[Pi],Bi=_i[Pi];Vi!==Bi&&Pi!=="value"&&Ln(oi,Pi,Bi,Vi,Fi,si.children,fi,Ei,zi)}"value"in Ti&&Ln(oi,"value",_i.value,Ti.value)}},pi=(oi,si,_i,Ti,fi,Ei,Fi,Pi,Vi)=>{const Bi=si.el=oi?oi.el:Pn(""),Wi=si.anchor=oi?oi.anchor:Pn("");let{patchFlag:Hi,dynamicChildren:Ji,slotScopeIds:Ui}=si;Ui&&(Pi=Pi?Pi.concat(Ui):Ui),oi==null?(Nn(Bi,_i,Ti),Nn(Wi,_i,Ti),ni(si.children,_i,Wi,fi,Ei,Fi,Pi,Vi)):Hi>0&&Hi&64&&Ji&&oi.dynamicChildren?(ri(oi.dynamicChildren,Ji,_i,fi,Ei,Fi,Pi),(si.key!=null||fi&&si===fi.subTree)&&traverseStaticChildren(oi,si,!0)):xi(oi,si,_i,Wi,fi,Ei,Fi,Pi,Vi)},yi=(oi,si,_i,Ti,fi,Ei,Fi,Pi,Vi)=>{si.slotScopeIds=Pi,oi==null?si.shapeFlag&512?fi.ctx.activate(si,_i,Ti,Fi,Vi):Li(si,_i,Ti,fi,Ei,Fi,Vi):ta(oi,si,Vi)},Li=(oi,si,_i,Ti,fi,Ei,Fi)=>{const Pi=oi.component=createComponentInstance(oi,Ti,fi);if(isKeepAlive(oi)&&(Pi.ctx.renderer=qi),setupComponent(Pi),Pi.asyncDep){if(fi&&fi.registerDep(Pi,Yi),!oi.el){const Vi=Pi.subTree=createVNode(Comment);ti(null,Vi,si,_i)}return}Yi(Pi,oi,si,_i,fi,Ei,Fi)},ta=(oi,si,_i)=>{const Ti=si.component=oi.component;if(shouldUpdateComponent(oi,si,_i))if(Ti.asyncDep&&!Ti.asyncResolved){bi(Ti,si,_i);return}else Ti.next=si,invalidateJob(Ti.update),Ti.update();else si.el=oi.el,Ti.vnode=si},Yi=(oi,si,_i,Ti,fi,Ei,Fi)=>{const Pi=()=>{if(oi.isMounted){let{next:Wi,bu:Hi,u:Ji,parent:Ui,vnode:ia}=oi,va=Wi,ha;toggleRecurse(oi,!1),Wi?(Wi.el=ia.el,bi(oi,Wi,Fi)):Wi=ia,Hi&&invokeArrayFns(Hi),(ha=Wi.props&&Wi.props.onVnodeBeforeUpdate)&&invokeVNodeHook(ha,Ui,Wi,ia),toggleRecurse(oi,!0);const Ca=renderComponentRoot(oi),Aa=oi.subTree;oi.subTree=Ca,Yo(Aa,Ca,Xn(Aa.el),ea(Aa),oi,fi,Ei),Wi.el=Ca.el,va===null&&updateHOCHostEl(oi,Ca.el),Ji&&queuePostRenderEffect(Ji,fi),(ha=Wi.props&&Wi.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(ha,Ui,Wi,ia),fi)}else{let Wi;const{el:Hi,props:Ji}=si,{bm:Ui,m:ia,parent:va}=oi,ha=isAsyncWrapper(si);if(toggleRecurse(oi,!1),Ui&&invokeArrayFns(Ui),!ha&&(Wi=Ji&&Ji.onVnodeBeforeMount)&&invokeVNodeHook(Wi,va,si),toggleRecurse(oi,!0),Hi&&ya){const Ca=()=>{oi.subTree=renderComponentRoot(oi),ya(Hi,oi.subTree,oi,fi,null)};ha?si.type.__asyncLoader().then(()=>!oi.isUnmounted&&Ca()):Ca()}else{const Ca=oi.subTree=renderComponentRoot(oi);Yo(null,Ca,_i,Ti,oi,fi,Ei),si.el=Ca.el}if(ia&&queuePostRenderEffect(ia,fi),!ha&&(Wi=Ji&&Ji.onVnodeMounted)){const Ca=si;queuePostRenderEffect(()=>invokeVNodeHook(Wi,va,Ca),fi)}(si.shapeFlag&256||va&&isAsyncWrapper(va.vnode)&&va.vnode.shapeFlag&256)&&oi.a&&queuePostRenderEffect(oi.a,fi),oi.isMounted=!0,si=_i=Ti=null}},Vi=oi.effect=new ReactiveEffect(Pi,()=>queueJob(Bi),oi.scope),Bi=oi.update=()=>Vi.run();Bi.id=oi.uid,toggleRecurse(oi,!0),Bi()},bi=(oi,si,_i)=>{si.component=oi;const Ti=oi.vnode.props;oi.vnode=si,oi.next=null,updateProps(oi,si.props,Ti,_i),updateSlots(oi,si.children,_i),pauseTracking(),flushPreFlushCbs(),resetTracking()},xi=(oi,si,_i,Ti,fi,Ei,Fi,Pi,Vi=!1)=>{const Bi=oi&&oi.children,Wi=oi?oi.shapeFlag:0,Hi=si.children,{patchFlag:Ji,shapeFlag:Ui}=si;if(Ji>0){if(Ji&128){da(Bi,Hi,_i,Ti,fi,Ei,Fi,Pi,Vi);return}else if(Ji&256){Ii(Bi,Hi,_i,Ti,fi,Ei,Fi,Pi,Vi);return}}Ui&8?(Wi&16&&zi(Bi,fi,Ei),Hi!==Bi&&Wn(_i,Hi)):Wi&16?Ui&16?da(Bi,Hi,_i,Ti,fi,Ei,Fi,Pi,Vi):zi(Bi,fi,Ei,!0):(Wi&8&&Wn(_i,""),Ui&16&&ni(Hi,_i,Ti,fi,Ei,Fi,Pi,Vi))},Ii=(oi,si,_i,Ti,fi,Ei,Fi,Pi,Vi)=>{oi=oi||EMPTY_ARR,si=si||EMPTY_ARR;const Bi=oi.length,Wi=si.length,Hi=Math.min(Bi,Wi);let Ji;for(Ji=0;Ji<Hi;Ji++){const Ui=si[Ji]=Vi?cloneIfMounted(si[Ji]):normalizeVNode(si[Ji]);Yo(oi[Ji],Ui,_i,null,fi,Ei,Fi,Pi,Vi)}Bi>Wi?zi(oi,fi,Ei,!0,!1,Hi):ni(si,_i,Ti,fi,Ei,Fi,Pi,Vi,Hi)},da=(oi,si,_i,Ti,fi,Ei,Fi,Pi,Vi)=>{let Bi=0;const Wi=si.length;let Hi=oi.length-1,Ji=Wi-1;for(;Bi<=Hi&&Bi<=Ji;){const Ui=oi[Bi],ia=si[Bi]=Vi?cloneIfMounted(si[Bi]):normalizeVNode(si[Bi]);if(isSameVNodeType(Ui,ia))Yo(Ui,ia,_i,null,fi,Ei,Fi,Pi,Vi);else break;Bi++}for(;Bi<=Hi&&Bi<=Ji;){const Ui=oi[Hi],ia=si[Ji]=Vi?cloneIfMounted(si[Ji]):normalizeVNode(si[Ji]);if(isSameVNodeType(Ui,ia))Yo(Ui,ia,_i,null,fi,Ei,Fi,Pi,Vi);else break;Hi--,Ji--}if(Bi>Hi){if(Bi<=Ji){const Ui=Ji+1,ia=Ui<Wi?si[Ui].el:Ti;for(;Bi<=Ji;)Yo(null,si[Bi]=Vi?cloneIfMounted(si[Bi]):normalizeVNode(si[Bi]),_i,ia,fi,Ei,Fi,Pi,Vi),Bi++}}else if(Bi>Ji)for(;Bi<=Hi;)Si(oi[Bi],fi,Ei,!0),Bi++;else{const Ui=Bi,ia=Bi,va=new Map;for(Bi=ia;Bi<=Ji;Bi++){const Xi=si[Bi]=Vi?cloneIfMounted(si[Bi]):normalizeVNode(si[Bi]);Xi.key!=null&&va.set(Xi.key,Bi)}let ha,Ca=0;const Aa=Ji-ia+1;let Oa=!1,xa=0;const Pa=new Array(Aa);for(Bi=0;Bi<Aa;Bi++)Pa[Bi]=0;for(Bi=Ui;Bi<=Hi;Bi++){const Xi=oi[Bi];if(Ca>=Aa){Si(Xi,fi,Ei,!0);continue}let Qi;if(Xi.key!=null)Qi=va.get(Xi.key);else for(ha=ia;ha<=Ji;ha++)if(Pa[ha-ia]===0&&isSameVNodeType(Xi,si[ha])){Qi=ha;break}Qi===void 0?Si(Xi,fi,Ei,!0):(Pa[Qi-ia]=Bi+1,Qi>=xa?xa=Qi:Oa=!0,Yo(Xi,si[Qi],_i,null,fi,Ei,Fi,Pi,Vi),Ca++)}const wi=Oa?getSequence(Pa):EMPTY_ARR;for(ha=wi.length-1,Bi=Aa-1;Bi>=0;Bi--){const Xi=ia+Bi,Qi=si[Xi],pa=Xi+1<Wi?si[Xi+1].el:Ti;Pa[Bi]===0?Yo(null,Qi,_i,pa,fi,Ei,Fi,Pi,Vi):Oa&&(ha<0||Bi!==wi[ha]?oa(Qi,_i,pa,2):ha--)}}},oa=(oi,si,_i,Ti,fi=null)=>{const{el:Ei,type:Fi,transition:Pi,children:Vi,shapeFlag:Bi}=oi;if(Bi&6){oa(oi.component.subTree,si,_i,Ti);return}if(Bi&128){oi.suspense.move(si,_i,Ti);return}if(Bi&64){Fi.move(oi,si,_i,qi);return}if(Fi===Fragment){Nn(Ei,si,_i);for(let Hi=0;Hi<Vi.length;Hi++)oa(Vi[Hi],si,_i,Ti);Nn(oi.anchor,si,_i);return}if(Fi===Static){mi(oi,si,_i);return}if(Ti!==2&&Bi&1&&Pi)if(Ti===0)Pi.beforeEnter(Ei),Nn(Ei,si,_i),queuePostRenderEffect(()=>Pi.enter(Ei),fi);else{const{leave:Hi,delayLeave:Ji,afterLeave:Ui}=Pi,ia=()=>Nn(Ei,si,_i),va=()=>{Hi(Ei,()=>{ia(),Ui&&Ui()})};Ji?Ji(Ei,ia,va):va()}else Nn(Ei,si,_i)},Si=(oi,si,_i,Ti=!1,fi=!1)=>{const{type:Ei,props:Fi,ref:Pi,children:Vi,dynamicChildren:Bi,shapeFlag:Wi,patchFlag:Hi,dirs:Ji}=oi;if(Pi!=null&&setRef(Pi,null,_i,oi,!0),Wi&256){si.ctx.deactivate(oi);return}const Ui=Wi&1&&Ji,ia=!isAsyncWrapper(oi);let va;if(ia&&(va=Fi&&Fi.onVnodeBeforeUnmount)&&invokeVNodeHook(va,si,oi),Wi&6)Ki(oi.component,_i,Ti);else{if(Wi&128){oi.suspense.unmount(_i,Ti);return}Ui&&invokeDirectiveHook(oi,null,si,"beforeUnmount"),Wi&64?oi.type.remove(oi,si,_i,fi,qi,Ti):Bi&&(Ei!==Fragment||Hi>0&&Hi&64)?zi(Bi,si,_i,!1,!0):(Ei===Fragment&&Hi&384||!fi&&Wi&16)&&zi(Vi,si,_i),Ti&&Mi(oi)}(ia&&(va=Fi&&Fi.onVnodeUnmounted)||Ui)&&queuePostRenderEffect(()=>{va&&invokeVNodeHook(va,si,oi),Ui&&invokeDirectiveHook(oi,null,si,"unmounted")},_i)},Mi=oi=>{const{type:si,el:_i,anchor:Ti,transition:fi}=oi;if(si===Fragment){ji(_i,Ti);return}if(si===Static){Xo(oi);return}const Ei=()=>{Bn(_i),fi&&!fi.persisted&&fi.afterLeave&&fi.afterLeave()};if(oi.shapeFlag&1&&fi&&!fi.persisted){const{leave:Fi,delayLeave:Pi}=fi,Vi=()=>Fi(_i,Ei);Pi?Pi(oi.el,Ei,Vi):Vi()}else Ei()},ji=(oi,si)=>{let _i;for(;oi!==si;)_i=Gn(oi),Bn(oi),oi=_i;Bn(si)},Ki=(oi,si,_i)=>{const{bum:Ti,scope:fi,update:Ei,subTree:Fi,um:Pi}=oi;Ti&&invokeArrayFns(Ti),fi.stop(),Ei&&(Ei.active=!1,Si(Fi,oi,si,_i)),Pi&&queuePostRenderEffect(Pi,si),queuePostRenderEffect(()=>{oi.isUnmounted=!0},si),si&&si.pendingBranch&&!si.isUnmounted&&oi.asyncDep&&!oi.asyncResolved&&oi.suspenseId===si.pendingId&&(si.deps--,si.deps===0&&si.resolve())},zi=(oi,si,_i,Ti=!1,fi=!1,Ei=0)=>{for(let Fi=Ei;Fi<oi.length;Fi++)Si(oi[Fi],si,_i,Ti,fi)},ea=oi=>oi.shapeFlag&6?ea(oi.component.subTree):oi.shapeFlag&128?oi.suspense.next():Gn(oi.anchor||oi.el),ca=(oi,si,_i)=>{oi==null?si._vnode&&Si(si._vnode,null,null,!0):Yo(si._vnode||null,oi,si,null,null,null,_i),flushPreFlushCbs(),flushPostFlushCbs(),si._vnode=oi},qi={p:Yo,um:Si,m:oa,r:Mi,mt:Li,mc:ni,pc:xi,pbc:ri,n:ea,o:_n};let fa,ya;return Cn&&([fa,ya]=Cn(qi)),{render:ca,hydrate:fa,createApp:createAppAPI(ca,fa)}}function toggleRecurse({effect:_n,update:Cn},$n){_n.allowRecurse=Cn.allowRecurse=$n}function traverseStaticChildren(_n,Cn,$n=!1){const Nn=_n.children,Bn=Cn.children;if(isArray$3(Nn)&&isArray$3(Bn))for(let Ln=0;Ln<Nn.length;Ln++){const In=Nn[Ln];let Pn=Bn[Ln];Pn.shapeFlag&1&&!Pn.dynamicChildren&&((Pn.patchFlag<=0||Pn.patchFlag===32)&&(Pn=Bn[Ln]=cloneIfMounted(Bn[Ln]),Pn.el=In.el),$n||traverseStaticChildren(In,Pn)),Pn.type===Text&&(Pn.el=In.el)}}function getSequence(_n){const Cn=_n.slice(),$n=[0];let Nn,Bn,Ln,In,Pn;const Dn=_n.length;for(Nn=0;Nn<Dn;Nn++){const Hn=_n[Nn];if(Hn!==0){if(Bn=$n[$n.length-1],_n[Bn]<Hn){Cn[Nn]=Bn,$n.push(Nn);continue}for(Ln=0,In=$n.length-1;Ln<In;)Pn=Ln+In>>1,_n[$n[Pn]]<Hn?Ln=Pn+1:In=Pn;Hn<_n[$n[Ln]]&&(Ln>0&&(Cn[Nn]=$n[Ln-1]),$n[Ln]=Nn)}}for(Ln=$n.length,In=$n[Ln-1];Ln-- >0;)$n[Ln]=In,In=Cn[In];return $n}const isTeleport=_n=>_n.__isTeleport,isTeleportDisabled=_n=>_n&&(_n.disabled||_n.disabled===""),isTargetSVG=_n=>typeof SVGElement<"u"&&_n instanceof SVGElement,resolveTarget=(_n,Cn)=>{const $n=_n&&_n.to;return isString$1($n)?Cn?Cn($n):null:$n},TeleportImpl={__isTeleport:!0,process(_n,Cn,$n,Nn,Bn,Ln,In,Pn,Dn,Hn){const{mc:Wn,pc:Xn,pbc:Gn,o:{insert:rr,querySelector:nr,createText:Yo,createComment:ei}}=Hn,ti=isTeleportDisabled(Cn.props);let{shapeFlag:ui,children:mi,dynamicChildren:Xo}=Cn;if(_n==null){const vi=Cn.el=Yo(""),zn=Cn.anchor=Yo("");rr(vi,$n,Nn),rr(zn,$n,Nn);const Ni=Cn.target=resolveTarget(Cn.props,nr),ni=Cn.targetAnchor=Yo("");Ni&&(rr(ni,Ni),In=In||isTargetSVG(Ni));const Qo=(ri,ci)=>{ui&16&&Wn(mi,ri,ci,Bn,Ln,In,Pn,Dn)};ti?Qo($n,zn):Ni&&Qo(Ni,ni)}else{Cn.el=_n.el;const vi=Cn.anchor=_n.anchor,zn=Cn.target=_n.target,Ni=Cn.targetAnchor=_n.targetAnchor,ni=isTeleportDisabled(_n.props),Qo=ni?$n:zn,ri=ni?vi:Ni;if(In=In||isTargetSVG(zn),Xo?(Gn(_n.dynamicChildren,Xo,Qo,Bn,Ln,In,Pn),traverseStaticChildren(_n,Cn,!0)):Dn||Xn(_n,Cn,Qo,ri,Bn,Ln,In,Pn,!1),ti)ni||moveTeleport(Cn,$n,vi,Hn,1);else if((Cn.props&&Cn.props.to)!==(_n.props&&_n.props.to)){const ci=Cn.target=resolveTarget(Cn.props,nr);ci&&moveTeleport(Cn,ci,null,Hn,0)}else ni&&moveTeleport(Cn,zn,Ni,Hn,1)}updateCssVars(Cn)},remove(_n,Cn,$n,Nn,{um:Bn,o:{remove:Ln}},In){const{shapeFlag:Pn,children:Dn,anchor:Hn,targetAnchor:Wn,target:Xn,props:Gn}=_n;if(Xn&&Ln(Wn),(In||!isTeleportDisabled(Gn))&&(Ln(Hn),Pn&16))for(let rr=0;rr<Dn.length;rr++){const nr=Dn[rr];Bn(nr,Cn,$n,!0,!!nr.dynamicChildren)}},move:moveTeleport,hydrate:hydrateTeleport};function moveTeleport(_n,Cn,$n,{o:{insert:Nn},m:Bn},Ln=2){Ln===0&&Nn(_n.targetAnchor,Cn,$n);const{el:In,anchor:Pn,shapeFlag:Dn,children:Hn,props:Wn}=_n,Xn=Ln===2;if(Xn&&Nn(In,Cn,$n),(!Xn||isTeleportDisabled(Wn))&&Dn&16)for(let Gn=0;Gn<Hn.length;Gn++)Bn(Hn[Gn],Cn,$n,2);Xn&&Nn(Pn,Cn,$n)}function hydrateTeleport(_n,Cn,$n,Nn,Bn,Ln,{o:{nextSibling:In,parentNode:Pn,querySelector:Dn}},Hn){const Wn=Cn.target=resolveTarget(Cn.props,Dn);if(Wn){const Xn=Wn._lpa||Wn.firstChild;if(Cn.shapeFlag&16)if(isTeleportDisabled(Cn.props))Cn.anchor=Hn(In(_n),Cn,Pn(_n),$n,Nn,Bn,Ln),Cn.targetAnchor=Xn;else{Cn.anchor=In(_n);let Gn=Xn;for(;Gn;)if(Gn=In(Gn),Gn&&Gn.nodeType===8&&Gn.data==="teleport anchor"){Cn.targetAnchor=Gn,Wn._lpa=Cn.targetAnchor&&In(Cn.targetAnchor);break}Hn(Xn,Cn,Wn,$n,Nn,Bn,Ln)}updateCssVars(Cn)}return Cn.anchor&&In(Cn.anchor)}const Teleport=TeleportImpl;function updateCssVars(_n){const Cn=_n.ctx;if(Cn&&Cn.ut){let $n=_n.children[0].el;for(;$n!==_n.targetAnchor;)$n.nodeType===1&&$n.setAttribute("data-v-owner",Cn.uid),$n=$n.nextSibling;Cn.ut()}}const Fragment=Symbol(void 0),Text=Symbol(void 0),Comment=Symbol(void 0),Static=Symbol(void 0),blockStack=[];let currentBlock=null;function openBlock(_n=!1){blockStack.push(currentBlock=_n?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(_n){isBlockTreeEnabled+=_n}function setupBlock(_n){return _n.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&&currentBlock&&currentBlock.push(_n),_n}function createElementBlock(_n,Cn,$n,Nn,Bn,Ln){return setupBlock(createBaseVNode(_n,Cn,$n,Nn,Bn,Ln,!0))}function createBlock(_n,Cn,$n,Nn,Bn){return setupBlock(createVNode(_n,Cn,$n,Nn,Bn,!0))}function isVNode(_n){return _n?_n.__v_isVNode===!0:!1}function isSameVNodeType(_n,Cn){return _n.type===Cn.type&&_n.key===Cn.key}const InternalObjectKey="__vInternal",normalizeKey=({key:_n})=>_n??null,normalizeRef=({ref:_n,ref_key:Cn,ref_for:$n})=>_n!=null?isString$1(_n)||isRef(_n)||isFunction$2(_n)?{i:currentRenderingInstance,r:_n,k:Cn,f:!!$n}:_n:null;function createBaseVNode(_n,Cn=null,$n=null,Nn=0,Bn=null,Ln=_n===Fragment?0:1,In=!1,Pn=!1){const Dn={__v_isVNode:!0,__v_skip:!0,type:_n,props:Cn,key:Cn&&normalizeKey(Cn),ref:Cn&&normalizeRef(Cn),scopeId:currentScopeId,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:Ln,patchFlag:Nn,dynamicProps:Bn,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return Pn?(normalizeChildren(Dn,$n),Ln&128&&_n.normalize(Dn)):$n&&(Dn.shapeFlag|=isString$1($n)?8:16),isBlockTreeEnabled>0&&!In&&currentBlock&&(Dn.patchFlag>0||Ln&6)&&Dn.patchFlag!==32&&currentBlock.push(Dn),Dn}const createVNode=_createVNode;function _createVNode(_n,Cn=null,$n=null,Nn=0,Bn=null,Ln=!1){if((!_n||_n===NULL_DYNAMIC_COMPONENT)&&(_n=Comment),isVNode(_n)){const Pn=cloneVNode(_n,Cn,!0);return $n&&normalizeChildren(Pn,$n),isBlockTreeEnabled>0&&!Ln&&currentBlock&&(Pn.shapeFlag&6?currentBlock[currentBlock.indexOf(_n)]=Pn:currentBlock.push(Pn)),Pn.patchFlag|=-2,Pn}if(isClassComponent(_n)&&(_n=_n.__vccOpts),Cn){Cn=guardReactiveProps(Cn);let{class:Pn,style:Dn}=Cn;Pn&&!isString$1(Pn)&&(Cn.class=normalizeClass(Pn)),isObject$4(Dn)&&(isProxy(Dn)&&!isArray$3(Dn)&&(Dn=extend$3({},Dn)),Cn.style=normalizeStyle(Dn))}const In=isString$1(_n)?1:isSuspense(_n)?128:isTeleport(_n)?64:isObject$4(_n)?4:isFunction$2(_n)?2:0;return createBaseVNode(_n,Cn,$n,Nn,Bn,In,Ln,!0)}function guardReactiveProps(_n){return _n?isProxy(_n)||InternalObjectKey in _n?extend$3({},_n):_n:null}function cloneVNode(_n,Cn,$n=!1){const{props:Nn,ref:Bn,patchFlag:Ln,children:In}=_n,Pn=Cn?mergeProps(Nn||{},Cn):Nn;return{__v_isVNode:!0,__v_skip:!0,type:_n.type,props:Pn,key:Pn&&normalizeKey(Pn),ref:Cn&&Cn.ref?$n&&Bn?isArray$3(Bn)?Bn.concat(normalizeRef(Cn)):[Bn,normalizeRef(Cn)]:normalizeRef(Cn):Bn,scopeId:_n.scopeId,slotScopeIds:_n.slotScopeIds,children:In,target:_n.target,targetAnchor:_n.targetAnchor,staticCount:_n.staticCount,shapeFlag:_n.shapeFlag,patchFlag:Cn&&_n.type!==Fragment?Ln===-1?16:Ln|16:Ln,dynamicProps:_n.dynamicProps,dynamicChildren:_n.dynamicChildren,appContext:_n.appContext,dirs:_n.dirs,transition:_n.transition,component:_n.component,suspense:_n.suspense,ssContent:_n.ssContent&&cloneVNode(_n.ssContent),ssFallback:_n.ssFallback&&cloneVNode(_n.ssFallback),el:_n.el,anchor:_n.anchor,ctx:_n.ctx,ce:_n.ce}}function createTextVNode(_n=" ",Cn=0){return createVNode(Text,null,_n,Cn)}function createCommentVNode(_n="",Cn=!1){return Cn?(openBlock(),createBlock(Comment,null,_n)):createVNode(Comment,null,_n)}function normalizeVNode(_n){return _n==null||typeof _n=="boolean"?createVNode(Comment):isArray$3(_n)?createVNode(Fragment,null,_n.slice()):typeof _n=="object"?cloneIfMounted(_n):createVNode(Text,null,String(_n))}function cloneIfMounted(_n){return _n.el===null&&_n.patchFlag!==-1||_n.memo?_n:cloneVNode(_n)}function normalizeChildren(_n,Cn){let $n=0;const{shapeFlag:Nn}=_n;if(Cn==null)Cn=null;else if(isArray$3(Cn))$n=16;else if(typeof Cn=="object")if(Nn&65){const Bn=Cn.default;Bn&&(Bn._c&&(Bn._d=!1),normalizeChildren(_n,Bn()),Bn._c&&(Bn._d=!0));return}else{$n=32;const Bn=Cn._;!Bn&&!(InternalObjectKey in Cn)?Cn._ctx=currentRenderingInstance:Bn===3&&currentRenderingInstance&&(currentRenderingInstance.slots._===1?Cn._=1:(Cn._=2,_n.patchFlag|=1024))}else isFunction$2(Cn)?(Cn={default:Cn,_ctx:currentRenderingInstance},$n=32):(Cn=String(Cn),Nn&64?($n=16,Cn=[createTextVNode(Cn)]):$n=8);_n.children=Cn,_n.shapeFlag|=$n}function mergeProps(..._n){const Cn={};for(let $n=0;$n<_n.length;$n++){const Nn=_n[$n];for(const Bn in Nn)if(Bn==="class")Cn.class!==Nn.class&&(Cn.class=normalizeClass([Cn.class,Nn.class]));else if(Bn==="style")Cn.style=normalizeStyle([Cn.style,Nn.style]);else if(isOn(Bn)){const Ln=Cn[Bn],In=Nn[Bn];In&&Ln!==In&&!(isArray$3(Ln)&&Ln.includes(In))&&(Cn[Bn]=Ln?[].concat(Ln,In):In)}else Bn!==""&&(Cn[Bn]=Nn[Bn])}return Cn}function invokeVNodeHook(_n,Cn,$n,Nn=null){callWithAsyncErrorHandling(_n,Cn,7,[$n,Nn])}const emptyAppContext=createAppContext();let uid=0;function createComponentInstance(_n,Cn,$n){const Nn=_n.type,Bn=(Cn?Cn.appContext:_n.appContext)||emptyAppContext,Ln={uid:uid++,vnode:_n,type:Nn,parent:Cn,appContext:Bn,root:null,next:null,subTree:null,effect:null,update:null,scope:new EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:Cn?Cn.provides:Object.create(Bn.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(Nn,Bn),emitsOptions:normalizeEmitsOptions(Nn,Bn),emit:null,emitted:null,propsDefaults:EMPTY_OBJ,inheritAttrs:Nn.inheritAttrs,ctx:EMPTY_OBJ,data:EMPTY_OBJ,props:EMPTY_OBJ,attrs:EMPTY_OBJ,slots:EMPTY_OBJ,refs:EMPTY_OBJ,setupState:EMPTY_OBJ,setupContext:null,suspense:$n,suspenseId:$n?$n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return Ln.ctx={_:Ln},Ln.root=Cn?Cn.root:Ln,Ln.emit=emit.bind(null,Ln),_n.ce&&_n.ce(Ln),Ln}let currentInstance=null;const getCurrentInstance=()=>currentInstance||currentRenderingInstance,setCurrentInstance=_n=>{currentInstance=_n,_n.scope.on()},unsetCurrentInstance=()=>{currentInstance&&currentInstance.scope.off(),currentInstance=null};function isStatefulComponent(_n){return _n.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(_n,Cn=!1){isInSSRComponentSetup=Cn;const{props:$n,children:Nn}=_n.vnode,Bn=isStatefulComponent(_n);initProps(_n,$n,Bn,Cn),initSlots(_n,Nn);const Ln=Bn?setupStatefulComponent(_n,Cn):void 0;return isInSSRComponentSetup=!1,Ln}function setupStatefulComponent(_n,Cn){const $n=_n.type;_n.accessCache=Object.create(null),_n.proxy=markRaw(new Proxy(_n.ctx,PublicInstanceProxyHandlers));const{setup:Nn}=$n;if(Nn){const Bn=_n.setupContext=Nn.length>1?createSetupContext(_n):null;setCurrentInstance(_n),pauseTracking();const Ln=callWithErrorHandling(Nn,_n,0,[_n.props,Bn]);if(resetTracking(),unsetCurrentInstance(),isPromise(Ln)){if(Ln.then(unsetCurrentInstance,unsetCurrentInstance),Cn)return Ln.then(In=>{handleSetupResult(_n,In,Cn)}).catch(In=>{handleError(In,_n,0)});_n.asyncDep=Ln}else handleSetupResult(_n,Ln,Cn)}else finishComponentSetup(_n,Cn)}function handleSetupResult(_n,Cn,$n){isFunction$2(Cn)?_n.type.__ssrInlineRender?_n.ssrRender=Cn:_n.render=Cn:isObject$4(Cn)&&(_n.setupState=proxyRefs(Cn)),finishComponentSetup(_n,$n)}let compile;function finishComponentSetup(_n,Cn,$n){const Nn=_n.type;if(!_n.render){if(!Cn&&compile&&!Nn.render){const Bn=Nn.template||resolveMergedOptions(_n).template;if(Bn){const{isCustomElement:Ln,compilerOptions:In}=_n.appContext.config,{delimiters:Pn,compilerOptions:Dn}=Nn,Hn=extend$3(extend$3({isCustomElement:Ln,delimiters:Pn},In),Dn);Nn.render=compile(Bn,Hn)}}_n.render=Nn.render||NOOP}setCurrentInstance(_n),pauseTracking(),applyOptions(_n),resetTracking(),unsetCurrentInstance()}function createAttrsProxy(_n){return new Proxy(_n.attrs,{get(Cn,$n){return track(_n,"get","$attrs"),Cn[$n]}})}function createSetupContext(_n){const Cn=Nn=>{_n.exposed=Nn||{}};let $n;return{get attrs(){return $n||($n=createAttrsProxy(_n))},slots:_n.slots,emit:_n.emit,expose:Cn}}function getExposeProxy(_n){if(_n.exposed)return _n.exposeProxy||(_n.exposeProxy=new Proxy(proxyRefs(markRaw(_n.exposed)),{get(Cn,$n){if($n in Cn)return Cn[$n];if($n in publicPropertiesMap)return publicPropertiesMap[$n](_n)},has(Cn,$n){return $n in Cn||$n in publicPropertiesMap}}))}function getComponentName(_n,Cn=!0){return isFunction$2(_n)?_n.displayName||_n.name:_n.name||Cn&&_n.__name}function isClassComponent(_n){return isFunction$2(_n)&&"__vccOpts"in _n}const computed=(_n,Cn)=>computed$1(_n,Cn,isInSSRComponentSetup);function h$2(_n,Cn,$n){const Nn=arguments.length;return Nn===2?isObject$4(Cn)&&!isArray$3(Cn)?isVNode(Cn)?createVNode(_n,null,[Cn]):createVNode(_n,Cn):createVNode(_n,null,Cn):(Nn>3?$n=Array.prototype.slice.call(arguments,2):Nn===3&&isVNode($n)&&($n=[$n]),createVNode(_n,Cn,$n))}const ssrContextKey=Symbol(""),useSSRContext=()=>inject(ssrContextKey),version$1="3.2.47",svgNS="http://www.w3.org/2000/svg",doc=typeof document<"u"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(_n,Cn,$n)=>{Cn.insertBefore(_n,$n||null)},remove:_n=>{const Cn=_n.parentNode;Cn&&Cn.removeChild(_n)},createElement:(_n,Cn,$n,Nn)=>{const Bn=Cn?doc.createElementNS(svgNS,_n):doc.createElement(_n,$n?{is:$n}:void 0);return _n==="select"&&Nn&&Nn.multiple!=null&&Bn.setAttribute("multiple",Nn.multiple),Bn},createText:_n=>doc.createTextNode(_n),createComment:_n=>doc.createComment(_n),setText:(_n,Cn)=>{_n.nodeValue=Cn},setElementText:(_n,Cn)=>{_n.textContent=Cn},parentNode:_n=>_n.parentNode,nextSibling:_n=>_n.nextSibling,querySelector:_n=>doc.querySelector(_n),setScopeId(_n,Cn){_n.setAttribute(Cn,"")},insertStaticContent(_n,Cn,$n,Nn,Bn,Ln){const In=$n?$n.previousSibling:Cn.lastChild;if(Bn&&(Bn===Ln||Bn.nextSibling))for(;Cn.insertBefore(Bn.cloneNode(!0),$n),!(Bn===Ln||!(Bn=Bn.nextSibling)););else{templateContainer.innerHTML=Nn?`<svg>${_n}</svg>`:_n;const Pn=templateContainer.content;if(Nn){const Dn=Pn.firstChild;for(;Dn.firstChild;)Pn.appendChild(Dn.firstChild);Pn.removeChild(Dn)}Cn.insertBefore(Pn,$n)}return[In?In.nextSibling:Cn.firstChild,$n?$n.previousSibling:Cn.lastChild]}};function patchClass(_n,Cn,$n){const Nn=_n._vtc;Nn&&(Cn=(Cn?[Cn,...Nn]:[...Nn]).join(" ")),Cn==null?_n.removeAttribute("class"):$n?_n.setAttribute("class",Cn):_n.className=Cn}function patchStyle(_n,Cn,$n){const Nn=_n.style,Bn=isString$1($n);if($n&&!Bn){if(Cn&&!isString$1(Cn))for(const Ln in Cn)$n[Ln]==null&&setStyle(Nn,Ln,"");for(const Ln in $n)setStyle(Nn,Ln,$n[Ln])}else{const Ln=Nn.display;Bn?Cn!==$n&&(Nn.cssText=$n):Cn&&_n.removeAttribute("style"),"_vod"in _n&&(Nn.display=Ln)}}const importantRE=/\s*!important$/;function setStyle(_n,Cn,$n){if(isArray$3($n))$n.forEach(Nn=>setStyle(_n,Cn,Nn));else if($n==null&&($n=""),Cn.startsWith("--"))_n.setProperty(Cn,$n);else{const Nn=autoPrefix(_n,Cn);importantRE.test($n)?_n.setProperty(hyphenate(Nn),$n.replace(importantRE,""),"important"):_n[Nn]=$n}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(_n,Cn){const $n=prefixCache[Cn];if($n)return $n;let Nn=camelize(Cn);if(Nn!=="filter"&&Nn in _n)return prefixCache[Cn]=Nn;Nn=capitalize(Nn);for(let Bn=0;Bn<prefixes.length;Bn++){const Ln=prefixes[Bn]+Nn;if(Ln in _n)return prefixCache[Cn]=Ln}return Cn}const xlinkNS="http://www.w3.org/1999/xlink";function patchAttr(_n,Cn,$n,Nn,Bn){if(Nn&&Cn.startsWith("xlink:"))$n==null?_n.removeAttributeNS(xlinkNS,Cn.slice(6,Cn.length)):_n.setAttributeNS(xlinkNS,Cn,$n);else{const Ln=isSpecialBooleanAttr(Cn);$n==null||Ln&&!includeBooleanAttr($n)?_n.removeAttribute(Cn):_n.setAttribute(Cn,Ln?"":$n)}}function patchDOMProp(_n,Cn,$n,Nn,Bn,Ln,In){if(Cn==="innerHTML"||Cn==="textContent"){Nn&&In(Nn,Bn,Ln),_n[Cn]=$n??"";return}if(Cn==="value"&&_n.tagName!=="PROGRESS"&&!_n.tagName.includes("-")){_n._value=$n;const Dn=$n??"";(_n.value!==Dn||_n.tagName==="OPTION")&&(_n.value=Dn),$n==null&&_n.removeAttribute(Cn);return}let Pn=!1;if($n===""||$n==null){const Dn=typeof _n[Cn];Dn==="boolean"?$n=includeBooleanAttr($n):$n==null&&Dn==="string"?($n="",Pn=!0):Dn==="number"&&($n=0,Pn=!0)}try{_n[Cn]=$n}catch{}Pn&&_n.removeAttribute(Cn)}function addEventListener(_n,Cn,$n,Nn){_n.addEventListener(Cn,$n,Nn)}function removeEventListener(_n,Cn,$n,Nn){_n.removeEventListener(Cn,$n,Nn)}function patchEvent(_n,Cn,$n,Nn,Bn=null){const Ln=_n._vei||(_n._vei={}),In=Ln[Cn];if(Nn&&In)In.value=Nn;else{const[Pn,Dn]=parseName(Cn);if(Nn){const Hn=Ln[Cn]=createInvoker(Nn,Bn);addEventListener(_n,Pn,Hn,Dn)}else In&&(removeEventListener(_n,Pn,In,Dn),Ln[Cn]=void 0)}}const optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName(_n){let Cn;if(optionsModifierRE.test(_n)){Cn={};let Nn;for(;Nn=_n.match(optionsModifierRE);)_n=_n.slice(0,_n.length-Nn[0].length),Cn[Nn[0].toLowerCase()]=!0}return[_n[2]===":"?_n.slice(3):hyphenate(_n.slice(2)),Cn]}let cachedNow=0;const p$2=Promise.resolve(),getNow=()=>cachedNow||(p$2.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(_n,Cn){const $n=Nn=>{if(!Nn._vts)Nn._vts=Date.now();else if(Nn._vts<=$n.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(Nn,$n.value),Cn,5,[Nn])};return $n.value=_n,$n.attached=getNow(),$n}function patchStopImmediatePropagation(_n,Cn){if(isArray$3(Cn)){const $n=_n.stopImmediatePropagation;return _n.stopImmediatePropagation=()=>{$n.call(_n),_n._stopped=!0},Cn.map(Nn=>Bn=>!Bn._stopped&&Nn&&Nn(Bn))}else return Cn}const nativeOnRE=/^on[a-z]/,patchProp=(_n,Cn,$n,Nn,Bn=!1,Ln,In,Pn,Dn)=>{Cn==="class"?patchClass(_n,Nn,Bn):Cn==="style"?patchStyle(_n,$n,Nn):isOn(Cn)?isModelListener(Cn)||patchEvent(_n,Cn,$n,Nn,In):(Cn[0]==="."?(Cn=Cn.slice(1),!0):Cn[0]==="^"?(Cn=Cn.slice(1),!1):shouldSetAsProp(_n,Cn,Nn,Bn))?patchDOMProp(_n,Cn,Nn,Ln,In,Pn,Dn):(Cn==="true-value"?_n._trueValue=Nn:Cn==="false-value"&&(_n._falseValue=Nn),patchAttr(_n,Cn,Nn,Bn))};function shouldSetAsProp(_n,Cn,$n,Nn){return Nn?!!(Cn==="innerHTML"||Cn==="textContent"||Cn in _n&&nativeOnRE.test(Cn)&&isFunction$2($n)):Cn==="spellcheck"||Cn==="draggable"||Cn==="translate"||Cn==="form"||Cn==="list"&&_n.tagName==="INPUT"||Cn==="type"&&_n.tagName==="TEXTAREA"||nativeOnRE.test(Cn)&&isString$1($n)?!1:Cn in _n}const TRANSITION="transition",ANIMATION="animation",Transition=(_n,{slots:Cn})=>h$2(BaseTransition,resolveTransitionProps(_n),Cn);Transition.displayName="Transition";const DOMTransitionPropsValidators={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};Transition.props=extend$3({},BaseTransition.props,DOMTransitionPropsValidators);const callHook=(_n,Cn=[])=>{isArray$3(_n)?_n.forEach($n=>$n(...Cn)):_n&&_n(...Cn)},hasExplicitCallback=_n=>_n?isArray$3(_n)?_n.some(Cn=>Cn.length>1):_n.length>1:!1;function resolveTransitionProps(_n){const Cn={};for(const pi in _n)pi in DOMTransitionPropsValidators||(Cn[pi]=_n[pi]);if(_n.css===!1)return Cn;const{name:$n="v",type:Nn,duration:Bn,enterFromClass:Ln=`${$n}-enter-from`,enterActiveClass:In=`${$n}-enter-active`,enterToClass:Pn=`${$n}-enter-to`,appearFromClass:Dn=Ln,appearActiveClass:Hn=In,appearToClass:Wn=Pn,leaveFromClass:Xn=`${$n}-leave-from`,leaveActiveClass:Gn=`${$n}-leave-active`,leaveToClass:rr=`${$n}-leave-to`}=_n,nr=normalizeDuration(Bn),Yo=nr&&nr[0],ei=nr&&nr[1],{onBeforeEnter:ti,onEnter:ui,onEnterCancelled:mi,onLeave:Xo,onLeaveCancelled:vi,onBeforeAppear:zn=ti,onAppear:Ni=ui,onAppearCancelled:ni=mi}=Cn,Qo=(pi,yi,Li)=>{removeTransitionClass(pi,yi?Wn:Pn),removeTransitionClass(pi,yi?Hn:In),Li&&Li()},ri=(pi,yi)=>{pi._isLeaving=!1,removeTransitionClass(pi,Xn),removeTransitionClass(pi,rr),removeTransitionClass(pi,Gn),yi&&yi()},ci=pi=>(yi,Li)=>{const ta=pi?Ni:ui,Yi=()=>Qo(yi,pi,Li);callHook(ta,[yi,Yi]),nextFrame(()=>{removeTransitionClass(yi,pi?Dn:Ln),addTransitionClass(yi,pi?Wn:Pn),hasExplicitCallback(ta)||whenTransitionEnds(yi,Nn,Yo,Yi)})};return extend$3(Cn,{onBeforeEnter(pi){callHook(ti,[pi]),addTransitionClass(pi,Ln),addTransitionClass(pi,In)},onBeforeAppear(pi){callHook(zn,[pi]),addTransitionClass(pi,Dn),addTransitionClass(pi,Hn)},onEnter:ci(!1),onAppear:ci(!0),onLeave(pi,yi){pi._isLeaving=!0;const Li=()=>ri(pi,yi);addTransitionClass(pi,Xn),forceReflow(),addTransitionClass(pi,Gn),nextFrame(()=>{pi._isLeaving&&(removeTransitionClass(pi,Xn),addTransitionClass(pi,rr),hasExplicitCallback(Xo)||whenTransitionEnds(pi,Nn,ei,Li))}),callHook(Xo,[pi,Li])},onEnterCancelled(pi){Qo(pi,!1),callHook(mi,[pi])},onAppearCancelled(pi){Qo(pi,!0),callHook(ni,[pi])},onLeaveCancelled(pi){ri(pi),callHook(vi,[pi])}})}function normalizeDuration(_n){if(_n==null)return null;if(isObject$4(_n))return[NumberOf(_n.enter),NumberOf(_n.leave)];{const Cn=NumberOf(_n);return[Cn,Cn]}}function NumberOf(_n){return toNumber(_n)}function addTransitionClass(_n,Cn){Cn.split(/\s+/).forEach($n=>$n&&_n.classList.add($n)),(_n._vtc||(_n._vtc=new Set)).add(Cn)}function removeTransitionClass(_n,Cn){Cn.split(/\s+/).forEach(Nn=>Nn&&_n.classList.remove(Nn));const{_vtc:$n}=_n;$n&&($n.delete(Cn),$n.size||(_n._vtc=void 0))}function nextFrame(_n){requestAnimationFrame(()=>{requestAnimationFrame(_n)})}let endId=0;function whenTransitionEnds(_n,Cn,$n,Nn){const Bn=_n._endId=++endId,Ln=()=>{Bn===_n._endId&&Nn()};if($n)return setTimeout(Ln,$n);const{type:In,timeout:Pn,propCount:Dn}=getTransitionInfo(_n,Cn);if(!In)return Nn();const Hn=In+"end";let Wn=0;const Xn=()=>{_n.removeEventListener(Hn,Gn),Ln()},Gn=rr=>{rr.target===_n&&++Wn>=Dn&&Xn()};setTimeout(()=>{Wn<Dn&&Xn()},Pn+1),_n.addEventListener(Hn,Gn)}function getTransitionInfo(_n,Cn){const $n=window.getComputedStyle(_n),Nn=nr=>($n[nr]||"").split(", "),Bn=Nn(`${TRANSITION}Delay`),Ln=Nn(`${TRANSITION}Duration`),In=getTimeout(Bn,Ln),Pn=Nn(`${ANIMATION}Delay`),Dn=Nn(`${ANIMATION}Duration`),Hn=getTimeout(Pn,Dn);let Wn=null,Xn=0,Gn=0;Cn===TRANSITION?In>0&&(Wn=TRANSITION,Xn=In,Gn=Ln.length):Cn===ANIMATION?Hn>0&&(Wn=ANIMATION,Xn=Hn,Gn=Dn.length):(Xn=Math.max(In,Hn),Wn=Xn>0?In>Hn?TRANSITION:ANIMATION:null,Gn=Wn?Wn===TRANSITION?Ln.length:Dn.length:0);const rr=Wn===TRANSITION&&/\b(transform|all)(,|$)/.test(Nn(`${TRANSITION}Property`).toString());return{type:Wn,timeout:Xn,propCount:Gn,hasTransform:rr}}function getTimeout(_n,Cn){for(;_n.length<Cn.length;)_n=_n.concat(_n);return Math.max(...Cn.map(($n,Nn)=>toMs($n)+toMs(_n[Nn])))}function toMs(_n){return Number(_n.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}const getModelAssigner=_n=>{const Cn=_n.props["onUpdate:modelValue"]||!1;return isArray$3(Cn)?$n=>invokeArrayFns(Cn,$n):Cn};function onCompositionStart(_n){_n.target.composing=!0}function onCompositionEnd(_n){const Cn=_n.target;Cn.composing&&(Cn.composing=!1,Cn.dispatchEvent(new Event("input")))}const vModelText={created(_n,{modifiers:{lazy:Cn,trim:$n,number:Nn}},Bn){_n._assign=getModelAssigner(Bn);const Ln=Nn||Bn.props&&Bn.props.type==="number";addEventListener(_n,Cn?"change":"input",In=>{if(In.target.composing)return;let Pn=_n.value;$n&&(Pn=Pn.trim()),Ln&&(Pn=looseToNumber(Pn)),_n._assign(Pn)}),$n&&addEventListener(_n,"change",()=>{_n.value=_n.value.trim()}),Cn||(addEventListener(_n,"compositionstart",onCompositionStart),addEventListener(_n,"compositionend",onCompositionEnd),addEventListener(_n,"change",onCompositionEnd))},mounted(_n,{value:Cn}){_n.value=Cn??""},beforeUpdate(_n,{value:Cn,modifiers:{lazy:$n,trim:Nn,number:Bn}},Ln){if(_n._assign=getModelAssigner(Ln),_n.composing||document.activeElement===_n&&_n.type!=="range"&&($n||Nn&&_n.value.trim()===Cn||(Bn||_n.type==="number")&&looseToNumber(_n.value)===Cn))return;const In=Cn??"";_n.value!==In&&(_n.value=In)}},vModelCheckbox={deep:!0,created(_n,Cn,$n){_n._assign=getModelAssigner($n),addEventListener(_n,"change",()=>{const Nn=_n._modelValue,Bn=getValue$1(_n),Ln=_n.checked,In=_n._assign;if(isArray$3(Nn)){const Pn=looseIndexOf(Nn,Bn),Dn=Pn!==-1;if(Ln&&!Dn)In(Nn.concat(Bn));else if(!Ln&&Dn){const Hn=[...Nn];Hn.splice(Pn,1),In(Hn)}}else if(isSet(Nn)){const Pn=new Set(Nn);Ln?Pn.add(Bn):Pn.delete(Bn),In(Pn)}else In(getCheckboxValue(_n,Ln))})},mounted:setChecked,beforeUpdate(_n,Cn,$n){_n._assign=getModelAssigner($n),setChecked(_n,Cn,$n)}};function setChecked(_n,{value:Cn,oldValue:$n},Nn){_n._modelValue=Cn,isArray$3(Cn)?_n.checked=looseIndexOf(Cn,Nn.props.value)>-1:isSet(Cn)?_n.checked=Cn.has(Nn.props.value):Cn!==$n&&(_n.checked=looseEqual(Cn,getCheckboxValue(_n,!0)))}const vModelSelect={deep:!0,created(_n,{value:Cn,modifiers:{number:$n}},Nn){const Bn=isSet(Cn);addEventListener(_n,"change",()=>{const Ln=Array.prototype.filter.call(_n.options,In=>In.selected).map(In=>$n?looseToNumber(getValue$1(In)):getValue$1(In));_n._assign(_n.multiple?Bn?new Set(Ln):Ln:Ln[0])}),_n._assign=getModelAssigner(Nn)},mounted(_n,{value:Cn}){setSelected(_n,Cn)},beforeUpdate(_n,Cn,$n){_n._assign=getModelAssigner($n)},updated(_n,{value:Cn}){setSelected(_n,Cn)}};function setSelected(_n,Cn){const $n=_n.multiple;if(!($n&&!isArray$3(Cn)&&!isSet(Cn))){for(let Nn=0,Bn=_n.options.length;Nn<Bn;Nn++){const Ln=_n.options[Nn],In=getValue$1(Ln);if($n)isArray$3(Cn)?Ln.selected=looseIndexOf(Cn,In)>-1:Ln.selected=Cn.has(In);else if(looseEqual(getValue$1(Ln),Cn)){_n.selectedIndex!==Nn&&(_n.selectedIndex=Nn);return}}!$n&&_n.selectedIndex!==-1&&(_n.selectedIndex=-1)}}function getValue$1(_n){return"_value"in _n?_n._value:_n.value}function getCheckboxValue(_n,Cn){const $n=Cn?"_trueValue":"_falseValue";return $n in _n?_n[$n]:Cn}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:_n=>_n.stopPropagation(),prevent:_n=>_n.preventDefault(),self:_n=>_n.target!==_n.currentTarget,ctrl:_n=>!_n.ctrlKey,shift:_n=>!_n.shiftKey,alt:_n=>!_n.altKey,meta:_n=>!_n.metaKey,left:_n=>"button"in _n&&_n.button!==0,middle:_n=>"button"in _n&&_n.button!==1,right:_n=>"button"in _n&&_n.button!==2,exact:(_n,Cn)=>systemModifiers.some($n=>_n[`${$n}Key`]&&!Cn.includes($n))},withModifiers=(_n,Cn)=>($n,...Nn)=>{for(let Bn=0;Bn<Cn.length;Bn++){const Ln=modifierGuards[Cn[Bn]];if(Ln&&Ln($n,Cn))return}return _n($n,...Nn)},vShow={beforeMount(_n,{value:Cn},{transition:$n}){_n._vod=_n.style.display==="none"?"":_n.style.display,$n&&Cn?$n.beforeEnter(_n):setDisplay(_n,Cn)},mounted(_n,{value:Cn},{transition:$n}){$n&&Cn&&$n.enter(_n)},updated(_n,{value:Cn,oldValue:$n},{transition:Nn}){!Cn!=!$n&&(Nn?Cn?(Nn.beforeEnter(_n),setDisplay(_n,!0),Nn.enter(_n)):Nn.leave(_n,()=>{setDisplay(_n,!1)}):setDisplay(_n,Cn))},beforeUnmount(_n,{value:Cn}){setDisplay(_n,Cn)}};function setDisplay(_n,Cn){_n.style.display=Cn?_n._vod:"none"}const rendererOptions=extend$3({patchProp},nodeOps);let renderer;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}const createApp=(..._n)=>{const Cn=ensureRenderer().createApp(..._n),{mount:$n}=Cn;return Cn.mount=Nn=>{const Bn=normalizeContainer(Nn);if(!Bn)return;const Ln=Cn._component;!isFunction$2(Ln)&&!Ln.render&&!Ln.template&&(Ln.template=Bn.innerHTML),Bn.innerHTML="";const In=$n(Bn,!1,Bn instanceof SVGElement);return Bn instanceof Element&&(Bn.removeAttribute("v-cloak"),Bn.setAttribute("data-v-app","")),In},Cn};function normalizeContainer(_n){return isString$1(_n)?document.querySelector(_n):_n}/**!
* Sortable 1.15.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/function ownKeys(_n,Cn){var $n=Object.keys(_n);if(Object.getOwnPropertySymbols){var Nn=Object.getOwnPropertySymbols(_n);Cn&&(Nn=Nn.filter(function(Bn){return Object.getOwnPropertyDescriptor(_n,Bn).enumerable})),$n.push.apply($n,Nn)}return $n}function _objectSpread2(_n){for(var Cn=1;Cn<arguments.length;Cn++){var $n=arguments[Cn]!=null?arguments[Cn]:{};Cn%2?ownKeys(Object($n),!0).forEach(function(Nn){_defineProperty(_n,Nn,$n[Nn])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_n,Object.getOwnPropertyDescriptors($n)):ownKeys(Object($n)).forEach(function(Nn){Object.defineProperty(_n,Nn,Object.getOwnPropertyDescriptor($n,Nn))})}return _n}function _typeof$1(_n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(Cn){return typeof Cn}:_typeof$1=function(Cn){return Cn&&typeof Symbol=="function"&&Cn.constructor===Symbol&&Cn!==Symbol.prototype?"symbol":typeof Cn},_typeof$1(_n)}function _defineProperty(_n,Cn,$n){return Cn in _n?Object.defineProperty(_n,Cn,{value:$n,enumerable:!0,configurable:!0,writable:!0}):_n[Cn]=$n,_n}function _extends(){return _extends=Object.assign||function(_n){for(var Cn=1;Cn<arguments.length;Cn++){var $n=arguments[Cn];for(var Nn in $n)Object.prototype.hasOwnProperty.call($n,Nn)&&(_n[Nn]=$n[Nn])}return _n},_extends.apply(this,arguments)}function _objectWithoutPropertiesLoose(_n,Cn){if(_n==null)return{};var $n={},Nn=Object.keys(_n),Bn,Ln;for(Ln=0;Ln<Nn.length;Ln++)Bn=Nn[Ln],!(Cn.indexOf(Bn)>=0)&&($n[Bn]=_n[Bn]);return $n}function _objectWithoutProperties(_n,Cn){if(_n==null)return{};var $n=_objectWithoutPropertiesLoose(_n,Cn),Nn,Bn;if(Object.getOwnPropertySymbols){var Ln=Object.getOwnPropertySymbols(_n);for(Bn=0;Bn<Ln.length;Bn++)Nn=Ln[Bn],!(Cn.indexOf(Nn)>=0)&&Object.prototype.propertyIsEnumerable.call(_n,Nn)&&($n[Nn]=_n[Nn])}return $n}var version="1.15.0";function userAgent(_n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(_n)}var IE11OrLess=userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Edge=userAgent(/Edge/i),FireFox=userAgent(/firefox/i),Safari=userAgent(/safari/i)&&!userAgent(/chrome/i)&&!userAgent(/android/i),IOS=userAgent(/iP(ad|od|hone)/i),ChromeForAndroid=userAgent(/chrome/i)&&userAgent(/android/i),captureMode={capture:!1,passive:!1};function on$1(_n,Cn,$n){_n.addEventListener(Cn,$n,!IE11OrLess&&captureMode)}function off(_n,Cn,$n){_n.removeEventListener(Cn,$n,!IE11OrLess&&captureMode)}function matches(_n,Cn){if(Cn){if(Cn[0]===">"&&(Cn=Cn.substring(1)),_n)try{if(_n.matches)return _n.matches(Cn);if(_n.msMatchesSelector)return _n.msMatchesSelector(Cn);if(_n.webkitMatchesSelector)return _n.webkitMatchesSelector(Cn)}catch{return!1}return!1}}function getParentOrHost(_n){return _n.host&&_n!==document&&_n.host.nodeType?_n.host:_n.parentNode}function closest(_n,Cn,$n,Nn){if(_n){$n=$n||document;do{if(Cn!=null&&(Cn[0]===">"?_n.parentNode===$n&&matches(_n,Cn):matches(_n,Cn))||Nn&&_n===$n)return _n;if(_n===$n)break}while(_n=getParentOrHost(_n))}return null}var R_SPACE=/\s+/g;function toggleClass(_n,Cn,$n){if(_n&&Cn)if(_n.classList)_n.classList[$n?"add":"remove"](Cn);else{var Nn=(" "+_n.className+" ").replace(R_SPACE," ").replace(" "+Cn+" "," ");_n.className=(Nn+($n?" "+Cn:"")).replace(R_SPACE," ")}}function css(_n,Cn,$n){var Nn=_n&&_n.style;if(Nn){if($n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?$n=document.defaultView.getComputedStyle(_n,""):_n.currentStyle&&($n=_n.currentStyle),Cn===void 0?$n:$n[Cn];!(Cn in Nn)&&Cn.indexOf("webkit")===-1&&(Cn="-webkit-"+Cn),Nn[Cn]=$n+(typeof $n=="string"?"":"px")}}function matrix(_n,Cn){var $n="";if(typeof _n=="string")$n=_n;else do{var Nn=css(_n,"transform");Nn&&Nn!=="none"&&($n=Nn+" "+$n)}while(!Cn&&(_n=_n.parentNode));var Bn=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return Bn&&new Bn($n)}function find(_n,Cn,$n){if(_n){var Nn=_n.getElementsByTagName(Cn),Bn=0,Ln=Nn.length;if($n)for(;Bn<Ln;Bn++)$n(Nn[Bn],Bn);return Nn}return[]}function getWindowScrollingElement(){var _n=document.scrollingElement;return _n||document.documentElement}function getRect(_n,Cn,$n,Nn,Bn){if(!(!_n.getBoundingClientRect&&_n!==window)){var Ln,In,Pn,Dn,Hn,Wn,Xn;if(_n!==window&&_n.parentNode&&_n!==getWindowScrollingElement()?(Ln=_n.getBoundingClientRect(),In=Ln.top,Pn=Ln.left,Dn=Ln.bottom,Hn=Ln.right,Wn=Ln.height,Xn=Ln.width):(In=0,Pn=0,Dn=window.innerHeight,Hn=window.innerWidth,Wn=window.innerHeight,Xn=window.innerWidth),(Cn||$n)&&_n!==window&&(Bn=Bn||_n.parentNode,!IE11OrLess))do if(Bn&&Bn.getBoundingClientRect&&(css(Bn,"transform")!=="none"||$n&&css(Bn,"position")!=="static")){var Gn=Bn.getBoundingClientRect();In-=Gn.top+parseInt(css(Bn,"border-top-width")),Pn-=Gn.left+parseInt(css(Bn,"border-left-width")),Dn=In+Ln.height,Hn=Pn+Ln.width;break}while(Bn=Bn.parentNode);if(Nn&&_n!==window){var rr=matrix(Bn||_n),nr=rr&&rr.a,Yo=rr&&rr.d;rr&&(In/=Yo,Pn/=nr,Xn/=nr,Wn/=Yo,Dn=In+Wn,Hn=Pn+Xn)}return{top:In,left:Pn,bottom:Dn,right:Hn,width:Xn,height:Wn}}}function isScrolledPast(_n,Cn,$n){for(var Nn=getParentAutoScrollElement(_n,!0),Bn=getRect(_n)[Cn];Nn;){var Ln=getRect(Nn)[$n],In=void 0;if($n==="top"||$n==="left"?In=Bn>=Ln:In=Bn<=Ln,!In)return Nn;if(Nn===getWindowScrollingElement())break;Nn=getParentAutoScrollElement(Nn,!1)}return!1}function getChild(_n,Cn,$n,Nn){for(var Bn=0,Ln=0,In=_n.children;Ln<In.length;){if(In[Ln].style.display!=="none"&&In[Ln]!==Sortable.ghost&&(Nn||In[Ln]!==Sortable.dragged)&&closest(In[Ln],$n.draggable,_n,!1)){if(Bn===Cn)return In[Ln];Bn++}Ln++}return null}function lastChild(_n,Cn){for(var $n=_n.lastElementChild;$n&&($n===Sortable.ghost||css($n,"display")==="none"||Cn&&!matches($n,Cn));)$n=$n.previousElementSibling;return $n||null}function index(_n,Cn){var $n=0;if(!_n||!_n.parentNode)return-1;for(;_n=_n.previousElementSibling;)_n.nodeName.toUpperCase()!=="TEMPLATE"&&_n!==Sortable.clone&&(!Cn||matches(_n,Cn))&&$n++;return $n}function getRelativeScrollOffset(_n){var Cn=0,$n=0,Nn=getWindowScrollingElement();if(_n)do{var Bn=matrix(_n),Ln=Bn.a,In=Bn.d;Cn+=_n.scrollLeft*Ln,$n+=_n.scrollTop*In}while(_n!==Nn&&(_n=_n.parentNode));return[Cn,$n]}function indexOfObject(_n,Cn){for(var $n in _n)if(_n.hasOwnProperty($n)){for(var Nn in Cn)if(Cn.hasOwnProperty(Nn)&&Cn[Nn]===_n[$n][Nn])return Number($n)}return-1}function getParentAutoScrollElement(_n,Cn){if(!_n||!_n.getBoundingClientRect)return getWindowScrollingElement();var $n=_n,Nn=!1;do if($n.clientWidth<$n.scrollWidth||$n.clientHeight<$n.scrollHeight){var Bn=css($n);if($n.clientWidth<$n.scrollWidth&&(Bn.overflowX=="auto"||Bn.overflowX=="scroll")||$n.clientHeight<$n.scrollHeight&&(Bn.overflowY=="auto"||Bn.overflowY=="scroll")){if(!$n.getBoundingClientRect||$n===document.body)return getWindowScrollingElement();if(Nn||Cn)return $n;Nn=!0}}while($n=$n.parentNode);return getWindowScrollingElement()}function extend$2(_n,Cn){if(_n&&Cn)for(var $n in Cn)Cn.hasOwnProperty($n)&&(_n[$n]=Cn[$n]);return _n}function isRectEqual(_n,Cn){return Math.round(_n.top)===Math.round(Cn.top)&&Math.round(_n.left)===Math.round(Cn.left)&&Math.round(_n.height)===Math.round(Cn.height)&&Math.round(_n.width)===Math.round(Cn.width)}var _throttleTimeout;function throttle(_n,Cn){return function(){if(!_throttleTimeout){var $n=arguments,Nn=this;$n.length===1?_n.call(Nn,$n[0]):_n.apply(Nn,$n),_throttleTimeout=setTimeout(function(){_throttleTimeout=void 0},Cn)}}}function cancelThrottle(){clearTimeout(_throttleTimeout),_throttleTimeout=void 0}function scrollBy(_n,Cn,$n){_n.scrollLeft+=Cn,_n.scrollTop+=$n}function clone(_n){var Cn=window.Polymer,$n=window.jQuery||window.Zepto;return Cn&&Cn.dom?Cn.dom(_n).cloneNode(!0):$n?$n(_n).clone(!0)[0]:_n.cloneNode(!0)}var expando="Sortable"+new Date().getTime();function AnimationStateManager(){var _n=[],Cn;return{captureAnimationState:function(){if(_n=[],!!this.options.animation){var Nn=[].slice.call(this.el.children);Nn.forEach(function(Bn){if(!(css(Bn,"display")==="none"||Bn===Sortable.ghost)){_n.push({target:Bn,rect:getRect(Bn)});var Ln=_objectSpread2({},_n[_n.length-1].rect);if(Bn.thisAnimationDuration){var In=matrix(Bn,!0);In&&(Ln.top-=In.f,Ln.left-=In.e)}Bn.fromRect=Ln}})}},addAnimationState:function(Nn){_n.push(Nn)},removeAnimationState:function(Nn){_n.splice(indexOfObject(_n,{target:Nn}),1)},animateAll:function(Nn){var Bn=this;if(!this.options.animation){clearTimeout(Cn),typeof Nn=="function"&&Nn();return}var Ln=!1,In=0;_n.forEach(function(Pn){var Dn=0,Hn=Pn.target,Wn=Hn.fromRect,Xn=getRect(Hn),Gn=Hn.prevFromRect,rr=Hn.prevToRect,nr=Pn.rect,Yo=matrix(Hn,!0);Yo&&(Xn.top-=Yo.f,Xn.left-=Yo.e),Hn.toRect=Xn,Hn.thisAnimationDuration&&isRectEqual(Gn,Xn)&&!isRectEqual(Wn,Xn)&&(nr.top-Xn.top)/(nr.left-Xn.left)===(Wn.top-Xn.top)/(Wn.left-Xn.left)&&(Dn=calculateRealTime(nr,Gn,rr,Bn.options)),isRectEqual(Xn,Wn)||(Hn.prevFromRect=Wn,Hn.prevToRect=Xn,Dn||(Dn=Bn.options.animation),Bn.animate(Hn,nr,Xn,Dn)),Dn&&(Ln=!0,In=Math.max(In,Dn),clearTimeout(Hn.animationResetTimer),Hn.animationResetTimer=setTimeout(function(){Hn.animationTime=0,Hn.prevFromRect=null,Hn.fromRect=null,Hn.prevToRect=null,Hn.thisAnimationDuration=null},Dn),Hn.thisAnimationDuration=Dn)}),clearTimeout(Cn),Ln?Cn=setTimeout(function(){typeof Nn=="function"&&Nn()},In):typeof Nn=="function"&&Nn(),_n=[]},animate:function(Nn,Bn,Ln,In){if(In){css(Nn,"transition",""),css(Nn,"transform","");var Pn=matrix(this.el),Dn=Pn&&Pn.a,Hn=Pn&&Pn.d,Wn=(Bn.left-Ln.left)/(Dn||1),Xn=(Bn.top-Ln.top)/(Hn||1);Nn.animatingX=!!Wn,Nn.animatingY=!!Xn,css(Nn,"transform","translate3d("+Wn+"px,"+Xn+"px,0)"),this.forRepaintDummy=repaint(Nn),css(Nn,"transition","transform "+In+"ms"+(this.options.easing?" "+this.options.easing:"")),css(Nn,"transform","translate3d(0,0,0)"),typeof Nn.animated=="number"&&clearTimeout(Nn.animated),Nn.animated=setTimeout(function(){css(Nn,"transition",""),css(Nn,"transform",""),Nn.animated=!1,Nn.animatingX=!1,Nn.animatingY=!1},In)}}}}function repaint(_n){return _n.offsetWidth}function calculateRealTime(_n,Cn,$n,Nn){return Math.sqrt(Math.pow(Cn.top-_n.top,2)+Math.pow(Cn.left-_n.left,2))/Math.sqrt(Math.pow(Cn.top-$n.top,2)+Math.pow(Cn.left-$n.left,2))*Nn.animation}var plugins=[],defaults$2={initializeByDefault:!0},PluginManager={mount:function(Cn){for(var $n in defaults$2)defaults$2.hasOwnProperty($n)&&!($n in Cn)&&(Cn[$n]=defaults$2[$n]);plugins.forEach(function(Nn){if(Nn.pluginName===Cn.pluginName)throw"Sortable: Cannot mount plugin ".concat(Cn.pluginName," more than once")}),plugins.push(Cn)},pluginEvent:function(Cn,$n,Nn){var Bn=this;this.eventCanceled=!1,Nn.cancel=function(){Bn.eventCanceled=!0};var Ln=Cn+"Global";plugins.forEach(function(In){$n[In.pluginName]&&($n[In.pluginName][Ln]&&$n[In.pluginName][Ln](_objectSpread2({sortable:$n},Nn)),$n.options[In.pluginName]&&$n[In.pluginName][Cn]&&$n[In.pluginName][Cn](_objectSpread2({sortable:$n},Nn)))})},initializePlugins:function(Cn,$n,Nn,Bn){plugins.forEach(function(Pn){var Dn=Pn.pluginName;if(!(!Cn.options[Dn]&&!Pn.initializeByDefault)){var Hn=new Pn(Cn,$n,Cn.options);Hn.sortable=Cn,Hn.options=Cn.options,Cn[Dn]=Hn,_extends(Nn,Hn.defaults)}});for(var Ln in Cn.options)if(Cn.options.hasOwnProperty(Ln)){var In=this.modifyOption(Cn,Ln,Cn.options[Ln]);typeof In<"u"&&(Cn.options[Ln]=In)}},getEventProperties:function(Cn,$n){var Nn={};return plugins.forEach(function(Bn){typeof Bn.eventProperties=="function"&&_extends(Nn,Bn.eventProperties.call($n[Bn.pluginName],Cn))}),Nn},modifyOption:function(Cn,$n,Nn){var Bn;return plugins.forEach(function(Ln){Cn[Ln.pluginName]&&Ln.optionListeners&&typeof Ln.optionListeners[$n]=="function"&&(Bn=Ln.optionListeners[$n].call(Cn[Ln.pluginName],Nn))}),Bn}};function dispatchEvent(_n){var Cn=_n.sortable,$n=_n.rootEl,Nn=_n.name,Bn=_n.targetEl,Ln=_n.cloneEl,In=_n.toEl,Pn=_n.fromEl,Dn=_n.oldIndex,Hn=_n.newIndex,Wn=_n.oldDraggableIndex,Xn=_n.newDraggableIndex,Gn=_n.originalEvent,rr=_n.putSortable,nr=_n.extraEventProperties;if(Cn=Cn||$n&&$n[expando],!!Cn){var Yo,ei=Cn.options,ti="on"+Nn.charAt(0).toUpperCase()+Nn.substr(1);window.CustomEvent&&!IE11OrLess&&!Edge?Yo=new CustomEvent(Nn,{bubbles:!0,cancelable:!0}):(Yo=document.createEvent("Event"),Yo.initEvent(Nn,!0,!0)),Yo.to=In||$n,Yo.from=Pn||$n,Yo.item=Bn||$n,Yo.clone=Ln,Yo.oldIndex=Dn,Yo.newIndex=Hn,Yo.oldDraggableIndex=Wn,Yo.newDraggableIndex=Xn,Yo.originalEvent=Gn,Yo.pullMode=rr?rr.lastPutMode:void 0;var ui=_objectSpread2(_objectSpread2({},nr),PluginManager.getEventProperties(Nn,Cn));for(var mi in ui)Yo[mi]=ui[mi];$n&&$n.dispatchEvent(Yo),ei[ti]&&ei[ti].call(Cn,Yo)}}var _excluded=["evt"],pluginEvent=function(Cn,$n){var Nn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Bn=Nn.evt,Ln=_objectWithoutProperties(Nn,_excluded);PluginManager.pluginEvent.bind(Sortable)(Cn,$n,_objectSpread2({dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,dragStarted:moved,putSortable,activeSortable:Sortable.active,originalEvent:Bn,oldIndex,oldDraggableIndex,newIndex,newDraggableIndex,hideGhostForTarget:_hideGhostForTarget,unhideGhostForTarget:_unhideGhostForTarget,cloneNowHidden:function(){cloneHidden=!0},cloneNowShown:function(){cloneHidden=!1},dispatchSortableEvent:function(Pn){_dispatchEvent({sortable:$n,name:Pn,originalEvent:Bn})}},Ln))};function _dispatchEvent(_n){dispatchEvent(_objectSpread2({putSortable,cloneEl,targetEl:dragEl,rootEl,oldIndex,oldDraggableIndex,newIndex,newDraggableIndex},_n))}var dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,oldIndex,newIndex,oldDraggableIndex,newDraggableIndex,activeGroup,putSortable,awaitingDragStarted=!1,ignoreNextClick=!1,sortables=[],tapEvt,touchEvt,lastDx,lastDy,tapDistanceLeft,tapDistanceTop,moved,lastTarget,lastDirection,pastFirstInvertThresh=!1,isCircumstantialInvert=!1,targetMoveDistance,ghostRelativeParent,ghostRelativeParentInitialScroll=[],_silent=!1,savedInputChecked=[],documentExists=typeof document<"u",PositionGhostAbsolutely=IOS,CSSFloatProperty=Edge||IE11OrLess?"cssFloat":"float",supportDraggable=documentExists&&!ChromeForAndroid&&!IOS&&"draggable"in document.createElement("div"),supportCssPointerEvents=function(){if(documentExists){if(IE11OrLess)return!1;var _n=document.createElement("x");return _n.style.cssText="pointer-events:auto",_n.style.pointerEvents==="auto"}}(),_detectDirection=function(Cn,$n){var Nn=css(Cn),Bn=parseInt(Nn.width)-parseInt(Nn.paddingLeft)-parseInt(Nn.paddingRight)-parseInt(Nn.borderLeftWidth)-parseInt(Nn.borderRightWidth),Ln=getChild(Cn,0,$n),In=getChild(Cn,1,$n),Pn=Ln&&css(Ln),Dn=In&&css(In),Hn=Pn&&parseInt(Pn.marginLeft)+parseInt(Pn.marginRight)+getRect(Ln).width,Wn=Dn&&parseInt(Dn.marginLeft)+parseInt(Dn.marginRight)+getRect(In).width;if(Nn.display==="flex")return Nn.flexDirection==="column"||Nn.flexDirection==="column-reverse"?"vertical":"horizontal";if(Nn.display==="grid")return Nn.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(Ln&&Pn.float&&Pn.float!=="none"){var Xn=Pn.float==="left"?"left":"right";return In&&(Dn.clear==="both"||Dn.clear===Xn)?"vertical":"horizontal"}return Ln&&(Pn.display==="block"||Pn.display==="flex"||Pn.display==="table"||Pn.display==="grid"||Hn>=Bn&&Nn[CSSFloatProperty]==="none"||In&&Nn[CSSFloatProperty]==="none"&&Hn+Wn>Bn)?"vertical":"horizontal"},_dragElInRowColumn=function(Cn,$n,Nn){var Bn=Nn?Cn.left:Cn.top,Ln=Nn?Cn.right:Cn.bottom,In=Nn?Cn.width:Cn.height,Pn=Nn?$n.left:$n.top,Dn=Nn?$n.right:$n.bottom,Hn=Nn?$n.width:$n.height;return Bn===Pn||Ln===Dn||Bn+In/2===Pn+Hn/2},_detectNearestEmptySortable=function(Cn,$n){var Nn;return sortables.some(function(Bn){var Ln=Bn[expando].options.emptyInsertThreshold;if(!(!Ln||lastChild(Bn))){var In=getRect(Bn),Pn=Cn>=In.left-Ln&&Cn<=In.right+Ln,Dn=$n>=In.top-Ln&&$n<=In.bottom+Ln;if(Pn&&Dn)return Nn=Bn}}),Nn},_prepareGroup=function(Cn){function $n(Ln,In){return function(Pn,Dn,Hn,Wn){var Xn=Pn.options.group.name&&Dn.options.group.name&&Pn.options.group.name===Dn.options.group.name;if(Ln==null&&(In||Xn))return!0;if(Ln==null||Ln===!1)return!1;if(In&&Ln==="clone")return Ln;if(typeof Ln=="function")return $n(Ln(Pn,Dn,Hn,Wn),In)(Pn,Dn,Hn,Wn);var Gn=(In?Pn:Dn).options.group.name;return Ln===!0||typeof Ln=="string"&&Ln===Gn||Ln.join&&Ln.indexOf(Gn)>-1}}var Nn={},Bn=Cn.group;(!Bn||_typeof$1(Bn)!="object")&&(Bn={name:Bn}),Nn.name=Bn.name,Nn.checkPull=$n(Bn.pull,!0),Nn.checkPut=$n(Bn.put),Nn.revertClone=Bn.revertClone,Cn.group=Nn},_hideGhostForTarget=function(){!supportCssPointerEvents&&ghostEl&&css(ghostEl,"display","none")},_unhideGhostForTarget=function(){!supportCssPointerEvents&&ghostEl&&css(ghostEl,"display","")};documentExists&&!ChromeForAndroid&&document.addEventListener("click",function(_n){if(ignoreNextClick)return _n.preventDefault(),_n.stopPropagation&&_n.stopPropagation(),_n.stopImmediatePropagation&&_n.stopImmediatePropagation(),ignoreNextClick=!1,!1},!0);var nearestEmptyInsertDetectEvent=function(Cn){if(dragEl){Cn=Cn.touches?Cn.touches[0]:Cn;var $n=_detectNearestEmptySortable(Cn.clientX,Cn.clientY);if($n){var Nn={};for(var Bn in Cn)Cn.hasOwnProperty(Bn)&&(Nn[Bn]=Cn[Bn]);Nn.target=Nn.rootEl=$n,Nn.preventDefault=void 0,Nn.stopPropagation=void 0,$n[expando]._onDragOver(Nn)}}},_checkOutsideTargetEl=function(Cn){dragEl&&dragEl.parentNode[expando]._isOutsideThisEl(Cn.target)};function Sortable(_n,Cn){if(!(_n&&_n.nodeType&&_n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(_n));this.el=_n,this.options=Cn=_extends({},Cn),_n[expando]=this;var $n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(_n.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return _detectDirection(_n,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(In,Pn){In.setData("Text",Pn.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:Sortable.supportPointer!==!1&&"PointerEvent"in window&&!Safari,emptyInsertThreshold:5};PluginManager.initializePlugins(this,_n,$n);for(var Nn in $n)!(Nn in Cn)&&(Cn[Nn]=$n[Nn]);_prepareGroup(Cn);for(var Bn in this)Bn.charAt(0)==="_"&&typeof this[Bn]=="function"&&(this[Bn]=this[Bn].bind(this));this.nativeDraggable=Cn.forceFallback?!1:supportDraggable,this.nativeDraggable&&(this.options.touchStartThreshold=1),Cn.supportPointer?on$1(_n,"pointerdown",this._onTapStart):(on$1(_n,"mousedown",this._onTapStart),on$1(_n,"touchstart",this._onTapStart)),this.nativeDraggable&&(on$1(_n,"dragover",this),on$1(_n,"dragenter",this)),sortables.push(this.el),Cn.store&&Cn.store.get&&this.sort(Cn.store.get(this)||[]),_extends(this,AnimationStateManager())}Sortable.prototype={constructor:Sortable,_isOutsideThisEl:function(Cn){!this.el.contains(Cn)&&Cn!==this.el&&(lastTarget=null)},_getDirection:function(Cn,$n){return typeof this.options.direction=="function"?this.options.direction.call(this,Cn,$n,dragEl):this.options.direction},_onTapStart:function(Cn){if(Cn.cancelable){var $n=this,Nn=this.el,Bn=this.options,Ln=Bn.preventOnFilter,In=Cn.type,Pn=Cn.touches&&Cn.touches[0]||Cn.pointerType&&Cn.pointerType==="touch"&&Cn,Dn=(Pn||Cn).target,Hn=Cn.target.shadowRoot&&(Cn.path&&Cn.path[0]||Cn.composedPath&&Cn.composedPath()[0])||Dn,Wn=Bn.filter;if(_saveInputCheckedState(Nn),!dragEl&&!(/mousedown|pointerdown/.test(In)&&Cn.button!==0||Bn.disabled)&&!Hn.isContentEditable&&!(!this.nativeDraggable&&Safari&&Dn&&Dn.tagName.toUpperCase()==="SELECT")&&(Dn=closest(Dn,Bn.draggable,Nn,!1),!(Dn&&Dn.animated)&&lastDownEl!==Dn)){if(oldIndex=index(Dn),oldDraggableIndex=index(Dn,Bn.draggable),typeof Wn=="function"){if(Wn.call(this,Cn,Dn,this)){_dispatchEvent({sortable:$n,rootEl:Hn,name:"filter",targetEl:Dn,toEl:Nn,fromEl:Nn}),pluginEvent("filter",$n,{evt:Cn}),Ln&&Cn.cancelable&&Cn.preventDefault();return}}else if(Wn&&(Wn=Wn.split(",").some(function(Xn){if(Xn=closest(Hn,Xn.trim(),Nn,!1),Xn)return _dispatchEvent({sortable:$n,rootEl:Xn,name:"filter",targetEl:Dn,fromEl:Nn,toEl:Nn}),pluginEvent("filter",$n,{evt:Cn}),!0}),Wn)){Ln&&Cn.cancelable&&Cn.preventDefault();return}Bn.handle&&!closest(Hn,Bn.handle,Nn,!1)||this._prepareDragStart(Cn,Pn,Dn)}}},_prepareDragStart:function(Cn,$n,Nn){var Bn=this,Ln=Bn.el,In=Bn.options,Pn=Ln.ownerDocument,Dn;if(Nn&&!dragEl&&Nn.parentNode===Ln){var Hn=getRect(Nn);if(rootEl=Ln,dragEl=Nn,parentEl=dragEl.parentNode,nextEl=dragEl.nextSibling,lastDownEl=Nn,activeGroup=In.group,Sortable.dragged=dragEl,tapEvt={target:dragEl,clientX:($n||Cn).clientX,clientY:($n||Cn).clientY},tapDistanceLeft=tapEvt.clientX-Hn.left,tapDistanceTop=tapEvt.clientY-Hn.top,this._lastX=($n||Cn).clientX,this._lastY=($n||Cn).clientY,dragEl.style["will-change"]="all",Dn=function(){if(pluginEvent("delayEnded",Bn,{evt:Cn}),Sortable.eventCanceled){Bn._onDrop();return}Bn._disableDelayedDragEvents(),!FireFox&&Bn.nativeDraggable&&(dragEl.draggable=!0),Bn._triggerDragStart(Cn,$n),_dispatchEvent({sortable:Bn,name:"choose",originalEvent:Cn}),toggleClass(dragEl,In.chosenClass,!0)},In.ignore.split(",").forEach(function(Wn){find(dragEl,Wn.trim(),_disableDraggable)}),on$1(Pn,"dragover",nearestEmptyInsertDetectEvent),on$1(Pn,"mousemove",nearestEmptyInsertDetectEvent),on$1(Pn,"touchmove",nearestEmptyInsertDetectEvent),on$1(Pn,"mouseup",Bn._onDrop),on$1(Pn,"touchend",Bn._onDrop),on$1(Pn,"touchcancel",Bn._onDrop),FireFox&&this.nativeDraggable&&(this.options.touchStartThreshold=4,dragEl.draggable=!0),pluginEvent("delayStart",this,{evt:Cn}),In.delay&&(!In.delayOnTouchOnly||$n)&&(!this.nativeDraggable||!(Edge||IE11OrLess))){if(Sortable.eventCanceled){this._onDrop();return}on$1(Pn,"mouseup",Bn._disableDelayedDrag),on$1(Pn,"touchend",Bn._disableDelayedDrag),on$1(Pn,"touchcancel",Bn._disableDelayedDrag),on$1(Pn,"mousemove",Bn._delayedDragTouchMoveHandler),on$1(Pn,"touchmove",Bn._delayedDragTouchMoveHandler),In.supportPointer&&on$1(Pn,"pointermove",Bn._delayedDragTouchMoveHandler),Bn._dragStartTimer=setTimeout(Dn,In.delay)}else Dn()}},_delayedDragTouchMoveHandler:function(Cn){var $n=Cn.touches?Cn.touches[0]:Cn;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(){dragEl&&_disableDraggable(dragEl),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var Cn=this.el.ownerDocument;off(Cn,"mouseup",this._disableDelayedDrag),off(Cn,"touchend",this._disableDelayedDrag),off(Cn,"touchcancel",this._disableDelayedDrag),off(Cn,"mousemove",this._delayedDragTouchMoveHandler),off(Cn,"touchmove",this._delayedDragTouchMoveHandler),off(Cn,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(Cn,$n){$n=$n||Cn.pointerType=="touch"&&Cn,!this.nativeDraggable||$n?this.options.supportPointer?on$1(document,"pointermove",this._onTouchMove):$n?on$1(document,"touchmove",this._onTouchMove):on$1(document,"mousemove",this._onTouchMove):(on$1(dragEl,"dragend",this),on$1(rootEl,"dragstart",this._onDragStart));try{document.selection?_nextTick(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(Cn,$n){if(awaitingDragStarted=!1,rootEl&&dragEl){pluginEvent("dragStarted",this,{evt:$n}),this.nativeDraggable&&on$1(document,"dragover",_checkOutsideTargetEl);var Nn=this.options;!Cn&&toggleClass(dragEl,Nn.dragClass,!1),toggleClass(dragEl,Nn.ghostClass,!0),Sortable.active=this,Cn&&this._appendGhost(),_dispatchEvent({sortable:this,name:"start",originalEvent:$n})}else this._nulling()},_emulateDragOver:function(){if(touchEvt){this._lastX=touchEvt.clientX,this._lastY=touchEvt.clientY,_hideGhostForTarget();for(var Cn=document.elementFromPoint(touchEvt.clientX,touchEvt.clientY),$n=Cn;Cn&&Cn.shadowRoot&&(Cn=Cn.shadowRoot.elementFromPoint(touchEvt.clientX,touchEvt.clientY),Cn!==$n);)$n=Cn;if(dragEl.parentNode[expando]._isOutsideThisEl(Cn),$n)do{if($n[expando]){var Nn=void 0;if(Nn=$n[expando]._onDragOver({clientX:touchEvt.clientX,clientY:touchEvt.clientY,target:Cn,rootEl:$n}),Nn&&!this.options.dragoverBubble)break}Cn=$n}while($n=$n.parentNode);_unhideGhostForTarget()}},_onTouchMove:function(Cn){if(tapEvt){var $n=this.options,Nn=$n.fallbackTolerance,Bn=$n.fallbackOffset,Ln=Cn.touches?Cn.touches[0]:Cn,In=ghostEl&&matrix(ghostEl,!0),Pn=ghostEl&&In&&In.a,Dn=ghostEl&&In&&In.d,Hn=PositionGhostAbsolutely&&ghostRelativeParent&&getRelativeScrollOffset(ghostRelativeParent),Wn=(Ln.clientX-tapEvt.clientX+Bn.x)/(Pn||1)+(Hn?Hn[0]-ghostRelativeParentInitialScroll[0]:0)/(Pn||1),Xn=(Ln.clientY-tapEvt.clientY+Bn.y)/(Dn||1)+(Hn?Hn[1]-ghostRelativeParentInitialScroll[1]:0)/(Dn||1);if(!Sortable.active&&!awaitingDragStarted){if(Nn&&Math.max(Math.abs(Ln.clientX-this._lastX),Math.abs(Ln.clientY-this._lastY))<Nn)return;this._onDragStart(Cn,!0)}if(ghostEl){In?(In.e+=Wn-(lastDx||0),In.f+=Xn-(lastDy||0)):In={a:1,b:0,c:0,d:1,e:Wn,f:Xn};var Gn="matrix(".concat(In.a,",").concat(In.b,",").concat(In.c,",").concat(In.d,",").concat(In.e,",").concat(In.f,")");css(ghostEl,"webkitTransform",Gn),css(ghostEl,"mozTransform",Gn),css(ghostEl,"msTransform",Gn),css(ghostEl,"transform",Gn),lastDx=Wn,lastDy=Xn,touchEvt=Ln}Cn.cancelable&&Cn.preventDefault()}},_appendGhost:function(){if(!ghostEl){var Cn=this.options.fallbackOnBody?document.body:rootEl,$n=getRect(dragEl,!0,PositionGhostAbsolutely,!0,Cn),Nn=this.options;if(PositionGhostAbsolutely){for(ghostRelativeParent=Cn;css(ghostRelativeParent,"position")==="static"&&css(ghostRelativeParent,"transform")==="none"&&ghostRelativeParent!==document;)ghostRelativeParent=ghostRelativeParent.parentNode;ghostRelativeParent!==document.body&&ghostRelativeParent!==document.documentElement?(ghostRelativeParent===document&&(ghostRelativeParent=getWindowScrollingElement()),$n.top+=ghostRelativeParent.scrollTop,$n.left+=ghostRelativeParent.scrollLeft):ghostRelativeParent=getWindowScrollingElement(),ghostRelativeParentInitialScroll=getRelativeScrollOffset(ghostRelativeParent)}ghostEl=dragEl.cloneNode(!0),toggleClass(ghostEl,Nn.ghostClass,!1),toggleClass(ghostEl,Nn.fallbackClass,!0),toggleClass(ghostEl,Nn.dragClass,!0),css(ghostEl,"transition",""),css(ghostEl,"transform",""),css(ghostEl,"box-sizing","border-box"),css(ghostEl,"margin",0),css(ghostEl,"top",$n.top),css(ghostEl,"left",$n.left),css(ghostEl,"width",$n.width),css(ghostEl,"height",$n.height),css(ghostEl,"opacity","0.8"),css(ghostEl,"position",PositionGhostAbsolutely?"absolute":"fixed"),css(ghostEl,"zIndex","100000"),css(ghostEl,"pointerEvents","none"),Sortable.ghost=ghostEl,Cn.appendChild(ghostEl),css(ghostEl,"transform-origin",tapDistanceLeft/parseInt(ghostEl.style.width)*100+"% "+tapDistanceTop/parseInt(ghostEl.style.height)*100+"%")}},_onDragStart:function(Cn,$n){var Nn=this,Bn=Cn.dataTransfer,Ln=Nn.options;if(pluginEvent("dragStart",this,{evt:Cn}),Sortable.eventCanceled){this._onDrop();return}pluginEvent("setupClone",this),Sortable.eventCanceled||(cloneEl=clone(dragEl),cloneEl.removeAttribute("id"),cloneEl.draggable=!1,cloneEl.style["will-change"]="",this._hideClone(),toggleClass(cloneEl,this.options.chosenClass,!1),Sortable.clone=cloneEl),Nn.cloneId=_nextTick(function(){pluginEvent("clone",Nn),!Sortable.eventCanceled&&(Nn.options.removeCloneOnHide||rootEl.insertBefore(cloneEl,dragEl),Nn._hideClone(),_dispatchEvent({sortable:Nn,name:"clone"}))}),!$n&&toggleClass(dragEl,Ln.dragClass,!0),$n?(ignoreNextClick=!0,Nn._loopId=setInterval(Nn._emulateDragOver,50)):(off(document,"mouseup",Nn._onDrop),off(document,"touchend",Nn._onDrop),off(document,"touchcancel",Nn._onDrop),Bn&&(Bn.effectAllowed="move",Ln.setData&&Ln.setData.call(Nn,Bn,dragEl)),on$1(document,"drop",Nn),css(dragEl,"transform","translateZ(0)")),awaitingDragStarted=!0,Nn._dragStartId=_nextTick(Nn._dragStarted.bind(Nn,$n,Cn)),on$1(document,"selectstart",Nn),moved=!0,Safari&&css(document.body,"user-select","none")},_onDragOver:function(Cn){var $n=this.el,Nn=Cn.target,Bn,Ln,In,Pn=this.options,Dn=Pn.group,Hn=Sortable.active,Wn=activeGroup===Dn,Xn=Pn.sort,Gn=putSortable||Hn,rr,nr=this,Yo=!1;if(_silent)return;function ei(xi,Ii){pluginEvent(xi,nr,_objectSpread2({evt:Cn,isOwner:Wn,axis:rr?"vertical":"horizontal",revert:In,dragRect:Bn,targetRect:Ln,canSort:Xn,fromSortable:Gn,target:Nn,completed:ui,onMove:function(oa,Si){return _onMove(rootEl,$n,dragEl,Bn,oa,getRect(oa),Cn,Si)},changed:mi},Ii))}function ti(){ei("dragOverAnimationCapture"),nr.captureAnimationState(),nr!==Gn&&Gn.captureAnimationState()}function ui(xi){return ei("dragOverCompleted",{insertion:xi}),xi&&(Wn?Hn._hideClone():Hn._showClone(nr),nr!==Gn&&(toggleClass(dragEl,putSortable?putSortable.options.ghostClass:Hn.options.ghostClass,!1),toggleClass(dragEl,Pn.ghostClass,!0)),putSortable!==nr&&nr!==Sortable.active?putSortable=nr:nr===Sortable.active&&putSortable&&(putSortable=null),Gn===nr&&(nr._ignoreWhileAnimating=Nn),nr.animateAll(function(){ei("dragOverAnimationComplete"),nr._ignoreWhileAnimating=null}),nr!==Gn&&(Gn.animateAll(),Gn._ignoreWhileAnimating=null)),(Nn===dragEl&&!dragEl.animated||Nn===$n&&!Nn.animated)&&(lastTarget=null),!Pn.dragoverBubble&&!Cn.rootEl&&Nn!==document&&(dragEl.parentNode[expando]._isOutsideThisEl(Cn.target),!xi&&nearestEmptyInsertDetectEvent(Cn)),!Pn.dragoverBubble&&Cn.stopPropagation&&Cn.stopPropagation(),Yo=!0}function mi(){newIndex=index(dragEl),newDraggableIndex=index(dragEl,Pn.draggable),_dispatchEvent({sortable:nr,name:"change",toEl:$n,newIndex,newDraggableIndex,originalEvent:Cn})}if(Cn.preventDefault!==void 0&&Cn.cancelable&&Cn.preventDefault(),Nn=closest(Nn,Pn.draggable,$n,!0),ei("dragOver"),Sortable.eventCanceled)return Yo;if(dragEl.contains(Cn.target)||Nn.animated&&Nn.animatingX&&Nn.animatingY||nr._ignoreWhileAnimating===Nn)return ui(!1);if(ignoreNextClick=!1,Hn&&!Pn.disabled&&(Wn?Xn||(In=parentEl!==rootEl):putSortable===this||(this.lastPutMode=activeGroup.checkPull(this,Hn,dragEl,Cn))&&Dn.checkPut(this,Hn,dragEl,Cn))){if(rr=this._getDirection(Cn,Nn)==="vertical",Bn=getRect(dragEl),ei("dragOverValid"),Sortable.eventCanceled)return Yo;if(In)return parentEl=rootEl,ti(),this._hideClone(),ei("revert"),Sortable.eventCanceled||(nextEl?rootEl.insertBefore(dragEl,nextEl):rootEl.appendChild(dragEl)),ui(!0);var Xo=lastChild($n,Pn.draggable);if(!Xo||_ghostIsLast(Cn,rr,this)&&!Xo.animated){if(Xo===dragEl)return ui(!1);if(Xo&&$n===Cn.target&&(Nn=Xo),Nn&&(Ln=getRect(Nn)),_onMove(rootEl,$n,dragEl,Bn,Nn,Ln,Cn,!!Nn)!==!1)return ti(),Xo&&Xo.nextSibling?$n.insertBefore(dragEl,Xo.nextSibling):$n.appendChild(dragEl),parentEl=$n,mi(),ui(!0)}else if(Xo&&_ghostIsFirst(Cn,rr,this)){var vi=getChild($n,0,Pn,!0);if(vi===dragEl)return ui(!1);if(Nn=vi,Ln=getRect(Nn),_onMove(rootEl,$n,dragEl,Bn,Nn,Ln,Cn,!1)!==!1)return ti(),$n.insertBefore(dragEl,vi),parentEl=$n,mi(),ui(!0)}else if(Nn.parentNode===$n){Ln=getRect(Nn);var zn=0,Ni,ni=dragEl.parentNode!==$n,Qo=!_dragElInRowColumn(dragEl.animated&&dragEl.toRect||Bn,Nn.animated&&Nn.toRect||Ln,rr),ri=rr?"top":"left",ci=isScrolledPast(Nn,"top","top")||isScrolledPast(dragEl,"top","top"),pi=ci?ci.scrollTop:void 0;lastTarget!==Nn&&(Ni=Ln[ri],pastFirstInvertThresh=!1,isCircumstantialInvert=!Qo&&Pn.invertSwap||ni),zn=_getSwapDirection(Cn,Nn,Ln,rr,Qo?1:Pn.swapThreshold,Pn.invertedSwapThreshold==null?Pn.swapThreshold:Pn.invertedSwapThreshold,isCircumstantialInvert,lastTarget===Nn);var yi;if(zn!==0){var Li=index(dragEl);do Li-=zn,yi=parentEl.children[Li];while(yi&&(css(yi,"display")==="none"||yi===ghostEl))}if(zn===0||yi===Nn)return ui(!1);lastTarget=Nn,lastDirection=zn;var ta=Nn.nextElementSibling,Yi=!1;Yi=zn===1;var bi=_onMove(rootEl,$n,dragEl,Bn,Nn,Ln,Cn,Yi);if(bi!==!1)return(bi===1||bi===-1)&&(Yi=bi===1),_silent=!0,setTimeout(_unsilent,30),ti(),Yi&&!ta?$n.appendChild(dragEl):Nn.parentNode.insertBefore(dragEl,Yi?ta:Nn),ci&&scrollBy(ci,0,pi-ci.scrollTop),parentEl=dragEl.parentNode,Ni!==void 0&&!isCircumstantialInvert&&(targetMoveDistance=Math.abs(Ni-getRect(Nn)[ri])),mi(),ui(!0)}if($n.contains(dragEl))return ui(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){off(document,"mousemove",this._onTouchMove),off(document,"touchmove",this._onTouchMove),off(document,"pointermove",this._onTouchMove),off(document,"dragover",nearestEmptyInsertDetectEvent),off(document,"mousemove",nearestEmptyInsertDetectEvent),off(document,"touchmove",nearestEmptyInsertDetectEvent)},_offUpEvents:function(){var Cn=this.el.ownerDocument;off(Cn,"mouseup",this._onDrop),off(Cn,"touchend",this._onDrop),off(Cn,"pointerup",this._onDrop),off(Cn,"touchcancel",this._onDrop),off(document,"selectstart",this)},_onDrop:function(Cn){var $n=this.el,Nn=this.options;if(newIndex=index(dragEl),newDraggableIndex=index(dragEl,Nn.draggable),pluginEvent("drop",this,{evt:Cn}),parentEl=dragEl&&dragEl.parentNode,newIndex=index(dragEl),newDraggableIndex=index(dragEl,Nn.draggable),Sortable.eventCanceled){this._nulling();return}awaitingDragStarted=!1,isCircumstantialInvert=!1,pastFirstInvertThresh=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),_cancelNextTick(this.cloneId),_cancelNextTick(this._dragStartId),this.nativeDraggable&&(off(document,"drop",this),off($n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Safari&&css(document.body,"user-select",""),css(dragEl,"transform",""),Cn&&(moved&&(Cn.cancelable&&Cn.preventDefault(),!Nn.dropBubble&&Cn.stopPropagation()),ghostEl&&ghostEl.parentNode&&ghostEl.parentNode.removeChild(ghostEl),(rootEl===parentEl||putSortable&&putSortable.lastPutMode!=="clone")&&cloneEl&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl),dragEl&&(this.nativeDraggable&&off(dragEl,"dragend",this),_disableDraggable(dragEl),dragEl.style["will-change"]="",moved&&!awaitingDragStarted&&toggleClass(dragEl,putSortable?putSortable.options.ghostClass:this.options.ghostClass,!1),toggleClass(dragEl,this.options.chosenClass,!1),_dispatchEvent({sortable:this,name:"unchoose",toEl:parentEl,newIndex:null,newDraggableIndex:null,originalEvent:Cn}),rootEl!==parentEl?(newIndex>=0&&(_dispatchEvent({rootEl:parentEl,name:"add",toEl:parentEl,fromEl:rootEl,originalEvent:Cn}),_dispatchEvent({sortable:this,name:"remove",toEl:parentEl,originalEvent:Cn}),_dispatchEvent({rootEl:parentEl,name:"sort",toEl:parentEl,fromEl:rootEl,originalEvent:Cn}),_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:Cn})),putSortable&&putSortable.save()):newIndex!==oldIndex&&newIndex>=0&&(_dispatchEvent({sortable:this,name:"update",toEl:parentEl,originalEvent:Cn}),_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:Cn})),Sortable.active&&((newIndex==null||newIndex===-1)&&(newIndex=oldIndex,newDraggableIndex=oldDraggableIndex),_dispatchEvent({sortable:this,name:"end",toEl:parentEl,originalEvent:Cn}),this.save()))),this._nulling()},_nulling:function(){pluginEvent("nulling",this),rootEl=dragEl=parentEl=ghostEl=nextEl=cloneEl=lastDownEl=cloneHidden=tapEvt=touchEvt=moved=newIndex=newDraggableIndex=oldIndex=oldDraggableIndex=lastTarget=lastDirection=putSortable=activeGroup=Sortable.dragged=Sortable.ghost=Sortable.clone=Sortable.active=null,savedInputChecked.forEach(function(Cn){Cn.checked=!0}),savedInputChecked.length=lastDx=lastDy=0},handleEvent:function(Cn){switch(Cn.type){case"drop":case"dragend":this._onDrop(Cn);break;case"dragenter":case"dragover":dragEl&&(this._onDragOver(Cn),_globalDragOver(Cn));break;case"selectstart":Cn.preventDefault();break}},toArray:function(){for(var Cn=[],$n,Nn=this.el.children,Bn=0,Ln=Nn.length,In=this.options;Bn<Ln;Bn++)$n=Nn[Bn],closest($n,In.draggable,this.el,!1)&&Cn.push($n.getAttribute(In.dataIdAttr)||_generateId($n));return Cn},sort:function(Cn,$n){var Nn={},Bn=this.el;this.toArray().forEach(function(Ln,In){var Pn=Bn.children[In];closest(Pn,this.options.draggable,Bn,!1)&&(Nn[Ln]=Pn)},this),$n&&this.captureAnimationState(),Cn.forEach(function(Ln){Nn[Ln]&&(Bn.removeChild(Nn[Ln]),Bn.appendChild(Nn[Ln]))}),$n&&this.animateAll()},save:function(){var Cn=this.options.store;Cn&&Cn.set&&Cn.set(this)},closest:function(Cn,$n){return closest(Cn,$n||this.options.draggable,this.el,!1)},option:function(Cn,$n){var Nn=this.options;if($n===void 0)return Nn[Cn];var Bn=PluginManager.modifyOption(this,Cn,$n);typeof Bn<"u"?Nn[Cn]=Bn:Nn[Cn]=$n,Cn==="group"&&_prepareGroup(Nn)},destroy:function(){pluginEvent("destroy",this);var Cn=this.el;Cn[expando]=null,off(Cn,"mousedown",this._onTapStart),off(Cn,"touchstart",this._onTapStart),off(Cn,"pointerdown",this._onTapStart),this.nativeDraggable&&(off(Cn,"dragover",this),off(Cn,"dragenter",this)),Array.prototype.forEach.call(Cn.querySelectorAll("[draggable]"),function($n){$n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),sortables.splice(sortables.indexOf(this.el),1),this.el=Cn=null},_hideClone:function(){if(!cloneHidden){if(pluginEvent("hideClone",this),Sortable.eventCanceled)return;css(cloneEl,"display","none"),this.options.removeCloneOnHide&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl),cloneHidden=!0}},_showClone:function(Cn){if(Cn.lastPutMode!=="clone"){this._hideClone();return}if(cloneHidden){if(pluginEvent("showClone",this),Sortable.eventCanceled)return;dragEl.parentNode==rootEl&&!this.options.group.revertClone?rootEl.insertBefore(cloneEl,dragEl):nextEl?rootEl.insertBefore(cloneEl,nextEl):rootEl.appendChild(cloneEl),this.options.group.revertClone&&this.animate(dragEl,cloneEl),css(cloneEl,"display",""),cloneHidden=!1}}};function _globalDragOver(_n){_n.dataTransfer&&(_n.dataTransfer.dropEffect="move"),_n.cancelable&&_n.preventDefault()}function _onMove(_n,Cn,$n,Nn,Bn,Ln,In,Pn){var Dn,Hn=_n[expando],Wn=Hn.options.onMove,Xn;return window.CustomEvent&&!IE11OrLess&&!Edge?Dn=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(Dn=document.createEvent("Event"),Dn.initEvent("move",!0,!0)),Dn.to=Cn,Dn.from=_n,Dn.dragged=$n,Dn.draggedRect=Nn,Dn.related=Bn||Cn,Dn.relatedRect=Ln||getRect(Cn),Dn.willInsertAfter=Pn,Dn.originalEvent=In,_n.dispatchEvent(Dn),Wn&&(Xn=Wn.call(Hn,Dn,In)),Xn}function _disableDraggable(_n){_n.draggable=!1}function _unsilent(){_silent=!1}function _ghostIsFirst(_n,Cn,$n){var Nn=getRect(getChild($n.el,0,$n.options,!0)),Bn=10;return Cn?_n.clientX<Nn.left-Bn||_n.clientY<Nn.top&&_n.clientX<Nn.right:_n.clientY<Nn.top-Bn||_n.clientY<Nn.bottom&&_n.clientX<Nn.left}function _ghostIsLast(_n,Cn,$n){var Nn=getRect(lastChild($n.el,$n.options.draggable)),Bn=10;return Cn?_n.clientX>Nn.right+Bn||_n.clientX<=Nn.right&&_n.clientY>Nn.bottom&&_n.clientX>=Nn.left:_n.clientX>Nn.right&&_n.clientY>Nn.top||_n.clientX<=Nn.right&&_n.clientY>Nn.bottom+Bn}function _getSwapDirection(_n,Cn,$n,Nn,Bn,Ln,In,Pn){var Dn=Nn?_n.clientY:_n.clientX,Hn=Nn?$n.height:$n.width,Wn=Nn?$n.top:$n.left,Xn=Nn?$n.bottom:$n.right,Gn=!1;if(!In){if(Pn&&targetMoveDistance<Hn*Bn){if(!pastFirstInvertThresh&&(lastDirection===1?Dn>Wn+Hn*Ln/2:Dn<Xn-Hn*Ln/2)&&(pastFirstInvertThresh=!0),pastFirstInvertThresh)Gn=!0;else if(lastDirection===1?Dn<Wn+targetMoveDistance:Dn>Xn-targetMoveDistance)return-lastDirection}else if(Dn>Wn+Hn*(1-Bn)/2&&Dn<Xn-Hn*(1-Bn)/2)return _getInsertDirection(Cn)}return Gn=Gn||In,Gn&&(Dn<Wn+Hn*Ln/2||Dn>Xn-Hn*Ln/2)?Dn>Wn+Hn/2?1:-1:0}function _getInsertDirection(_n){return index(dragEl)<index(_n)?1:-1}function _generateId(_n){for(var Cn=_n.tagName+_n.className+_n.src+_n.href+_n.textContent,$n=Cn.length,Nn=0;$n--;)Nn+=Cn.charCodeAt($n);return Nn.toString(36)}function _saveInputCheckedState(_n){savedInputChecked.length=0;for(var Cn=_n.getElementsByTagName("input"),$n=Cn.length;$n--;){var Nn=Cn[$n];Nn.checked&&savedInputChecked.push(Nn)}}function _nextTick(_n){return setTimeout(_n,0)}function _cancelNextTick(_n){return clearTimeout(_n)}documentExists&&on$1(document,"touchmove",function(_n){(Sortable.active||awaitingDragStarted)&&_n.cancelable&&_n.preventDefault()}),Sortable.utils={on:on$1,off,css,find,is:function(Cn,$n){return!!closest(Cn,$n,Cn,!1)},extend:extend$2,throttle,closest,toggleClass,clone,index,nextTick:_nextTick,cancelNextTick:_cancelNextTick,detectDirection:_detectDirection,getChild},Sortable.get=function(_n){return _n[expando]},Sortable.mount=function(){for(var _n=arguments.length,Cn=new Array(_n),$n=0;$n<_n;$n++)Cn[$n]=arguments[$n];Cn[0].constructor===Array&&(Cn=Cn[0]),Cn.forEach(function(Nn){if(!Nn.prototype||!Nn.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(Nn));Nn.utils&&(Sortable.utils=_objectSpread2(_objectSpread2({},Sortable.utils),Nn.utils)),PluginManager.mount(Nn)})},Sortable.create=function(_n,Cn){return new Sortable(_n,Cn)},Sortable.version=version;var autoScrolls=[],scrollEl,scrollRootEl,scrolling=!1,lastAutoScrollX,lastAutoScrollY,touchEvt$1,pointerElemChangedInterval;function AutoScrollPlugin(){function _n(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var Cn in this)Cn.charAt(0)==="_"&&typeof this[Cn]=="function"&&(this[Cn]=this[Cn].bind(this))}return _n.prototype={dragStarted:function($n){var Nn=$n.originalEvent;this.sortable.nativeDraggable?on$1(document,"dragover",this._handleAutoScroll):this.options.supportPointer?on$1(document,"pointermove",this._handleFallbackAutoScroll):Nn.touches?on$1(document,"touchmove",this._handleFallbackAutoScroll):on$1(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function($n){var Nn=$n.originalEvent;!this.options.dragOverBubble&&!Nn.rootEl&&this._handleAutoScroll(Nn)},drop:function(){this.sortable.nativeDraggable?off(document,"dragover",this._handleAutoScroll):(off(document,"pointermove",this._handleFallbackAutoScroll),off(document,"touchmove",this._handleFallbackAutoScroll),off(document,"mousemove",this._handleFallbackAutoScroll)),clearPointerElemChangedInterval(),clearAutoScrolls(),cancelThrottle()},nulling:function(){touchEvt$1=scrollRootEl=scrollEl=scrolling=pointerElemChangedInterval=lastAutoScrollX=lastAutoScrollY=null,autoScrolls.length=0},_handleFallbackAutoScroll:function($n){this._handleAutoScroll($n,!0)},_handleAutoScroll:function($n,Nn){var Bn=this,Ln=($n.touches?$n.touches[0]:$n).clientX,In=($n.touches?$n.touches[0]:$n).clientY,Pn=document.elementFromPoint(Ln,In);if(touchEvt$1=$n,Nn||this.options.forceAutoScrollFallback||Edge||IE11OrLess||Safari){autoScroll($n,this.options,Pn,Nn);var Dn=getParentAutoScrollElement(Pn,!0);scrolling&&(!pointerElemChangedInterval||Ln!==lastAutoScrollX||In!==lastAutoScrollY)&&(pointerElemChangedInterval&&clearPointerElemChangedInterval(),pointerElemChangedInterval=setInterval(function(){var Hn=getParentAutoScrollElement(document.elementFromPoint(Ln,In),!0);Hn!==Dn&&(Dn=Hn,clearAutoScrolls()),autoScroll($n,Bn.options,Hn,Nn)},10),lastAutoScrollX=Ln,lastAutoScrollY=In)}else{if(!this.options.bubbleScroll||getParentAutoScrollElement(Pn,!0)===getWindowScrollingElement()){clearAutoScrolls();return}autoScroll($n,this.options,getParentAutoScrollElement(Pn,!1),!1)}}},_extends(_n,{pluginName:"scroll",initializeByDefault:!0})}function clearAutoScrolls(){autoScrolls.forEach(function(_n){clearInterval(_n.pid)}),autoScrolls=[]}function clearPointerElemChangedInterval(){clearInterval(pointerElemChangedInterval)}var autoScroll=throttle(function(_n,Cn,$n,Nn){if(Cn.scroll){var Bn=(_n.touches?_n.touches[0]:_n).clientX,Ln=(_n.touches?_n.touches[0]:_n).clientY,In=Cn.scrollSensitivity,Pn=Cn.scrollSpeed,Dn=getWindowScrollingElement(),Hn=!1,Wn;scrollRootEl!==$n&&(scrollRootEl=$n,clearAutoScrolls(),scrollEl=Cn.scroll,Wn=Cn.scrollFn,scrollEl===!0&&(scrollEl=getParentAutoScrollElement($n,!0)));var Xn=0,Gn=scrollEl;do{var rr=Gn,nr=getRect(rr),Yo=nr.top,ei=nr.bottom,ti=nr.left,ui=nr.right,mi=nr.width,Xo=nr.height,vi=void 0,zn=void 0,Ni=rr.scrollWidth,ni=rr.scrollHeight,Qo=css(rr),ri=rr.scrollLeft,ci=rr.scrollTop;rr===Dn?(vi=mi<Ni&&(Qo.overflowX==="auto"||Qo.overflowX==="scroll"||Qo.overflowX==="visible"),zn=Xo<ni&&(Qo.overflowY==="auto"||Qo.overflowY==="scroll"||Qo.overflowY==="visible")):(vi=mi<Ni&&(Qo.overflowX==="auto"||Qo.overflowX==="scroll"),zn=Xo<ni&&(Qo.overflowY==="auto"||Qo.overflowY==="scroll"));var pi=vi&&(Math.abs(ui-Bn)<=In&&ri+mi<Ni)-(Math.abs(ti-Bn)<=In&&!!ri),yi=zn&&(Math.abs(ei-Ln)<=In&&ci+Xo<ni)-(Math.abs(Yo-Ln)<=In&&!!ci);if(!autoScrolls[Xn])for(var Li=0;Li<=Xn;Li++)autoScrolls[Li]||(autoScrolls[Li]={});(autoScrolls[Xn].vx!=pi||autoScrolls[Xn].vy!=yi||autoScrolls[Xn].el!==rr)&&(autoScrolls[Xn].el=rr,autoScrolls[Xn].vx=pi,autoScrolls[Xn].vy=yi,clearInterval(autoScrolls[Xn].pid),(pi!=0||yi!=0)&&(Hn=!0,autoScrolls[Xn].pid=setInterval(function(){Nn&&this.layer===0&&Sortable.active._onTouchMove(touchEvt$1);var ta=autoScrolls[this.layer].vy?autoScrolls[this.layer].vy*Pn:0,Yi=autoScrolls[this.layer].vx?autoScrolls[this.layer].vx*Pn:0;typeof Wn=="function"&&Wn.call(Sortable.dragged.parentNode[expando],Yi,ta,_n,touchEvt$1,autoScrolls[this.layer].el)!=="continue"||scrollBy(autoScrolls[this.layer].el,Yi,ta)}.bind({layer:Xn}),24))),Xn++}while(Cn.bubbleScroll&&Gn!==Dn&&(Gn=getParentAutoScrollElement(Gn,!1)));scrolling=Hn}},30),drop=function(Cn){var $n=Cn.originalEvent,Nn=Cn.putSortable,Bn=Cn.dragEl,Ln=Cn.activeSortable,In=Cn.dispatchSortableEvent,Pn=Cn.hideGhostForTarget,Dn=Cn.unhideGhostForTarget;if($n){var Hn=Nn||Ln;Pn();var Wn=$n.changedTouches&&$n.changedTouches.length?$n.changedTouches[0]:$n,Xn=document.elementFromPoint(Wn.clientX,Wn.clientY);Dn(),Hn&&!Hn.el.contains(Xn)&&(In("spill"),this.onSpill({dragEl:Bn,putSortable:Nn}))}};function Revert(){}Revert.prototype={startIndex:null,dragStart:function(Cn){var $n=Cn.oldDraggableIndex;this.startIndex=$n},onSpill:function(Cn){var $n=Cn.dragEl,Nn=Cn.putSortable;this.sortable.captureAnimationState(),Nn&&Nn.captureAnimationState();var Bn=getChild(this.sortable.el,this.startIndex,this.options);Bn?this.sortable.el.insertBefore($n,Bn):this.sortable.el.appendChild($n),this.sortable.animateAll(),Nn&&Nn.animateAll()},drop},_extends(Revert,{pluginName:"revertOnSpill"});function Remove(){}Remove.prototype={onSpill:function(Cn){var $n=Cn.dragEl,Nn=Cn.putSortable,Bn=Nn||this.sortable;Bn.captureAnimationState(),$n.parentNode&&$n.parentNode.removeChild($n),Bn.animateAll()},drop},_extends(Remove,{pluginName:"removeOnSpill"}),Sortable.mount(new AutoScrollPlugin),Sortable.mount(Remove,Revert);const splitTags=(_n,Cn=!1,$n=!1)=>{if(_n==null||_n===!1||_n===""||_n.trim()==="")return[];_n=_n.replace(//g,","),_n=_n.replace(/。/g,","),_n=_n.replace(/、/g,","),_n=_n.replace(//g,","),_n=_n.replace(//g,","),_n=_n.replace(/\t/g,`
`),_n=_n.replace(/\r/g,`
`),_n=_n.replace(/\n+/g,`
`);let Nn=[{emoji:">_<",re:/\>_\</g},{emoji:":<",re:/\:\</g},{emoji:">:<",re:/\>\:\</g},{emoji:":>",re:/\:\>/g},{emoji:":-(",re:/\:\-\(/g},{emoji:":-)",re:/\:\-\)/g}];Nn.forEach((rr,nr)=>{_n=_n.replace(rr.re,"|||EXPRESSION"+nr+"|||")});const Bn={"(":")","[":"]","<":">","{":"}"},Ln=Object.keys(Bn);let In=_n.length,Pn="",Dn="",Hn="",Wn=0,Xn=[];for(let rr=0;rr<In;rr++){const nr=_n[rr];nr===`
`?Dn===""?(Pn.trim()!==""&&Xn.push(Pn.trim()),Xn.push(`
`),Wn=0,Dn="",Hn="",Pn=""):Pn+=" ":nr===","?Dn===""?(Xn.push(Pn.trim()),Wn=0,Dn="",Hn="",Pn=""):Pn+=nr:Dn===""?Ln.includes(nr)?(Wn=1,Dn=nr,Hn=Bn[nr],Pn+=nr):nr===" "&&Pn.trim()==="BREAK"?(Xn.push(Pn.trim()),Wn=0,Dn="",Hn="",Pn=""):(Pn+=nr,Pn.endsWith(" BREAK")&&(Pn=Pn.substring(0,Pn.length-6),Xn.push(Pn.trim()),Xn.push("BREAK"),Wn=0,Dn="",Hn="",Pn="")):nr===Hn?(Wn--,Wn===0&&(Dn="",Hn=""),Pn+=nr):(nr===Dn&&Wn++,Pn+=nr)}Pn!==""&&Xn.push(Pn.trim());let Gn=[];for(let rr of Xn){if(rr===`
`){Gn.push(rr);continue}let nr=rr[0],Yo=rr[rr.length-1];if(nr==="["&&Yo==="]"){Gn.push(rr);continue}if(nr==="("&&Yo===")"){Gn.push(rr);continue}if(nr==="{"&&Yo==="}"){Gn.push(rr);continue}let ei=/\<lora:[^\>]+\>/,ti=null,ui=[];for(;ti=ei.exec(rr);){let mi=ti.index,Xo=mi+ti[0].length,vi=rr.substring(0,mi).trim(),zn=rr.substring(Xo).trim(),Ni=ti[0];ui.push(vi),ui.push(Ni),rr=zn}ui.push(rr);for(let mi of ui)mi===""||mi.trim()===""||(Nn.forEach((Xo,vi)=>{mi=mi.replace("|||EXPRESSION"+vi+"|||",Xo.emoji)}),Gn.push(mi))}return Xn=Gn,Xn},globals={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 _typeof(_n){return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Cn){return typeof Cn}:function(Cn){return Cn&&typeof Symbol=="function"&&Cn.constructor===Symbol&&Cn!==Symbol.prototype?"symbol":typeof Cn},_typeof(_n)}var trimLeft=/^\s+/,trimRight=/\s+$/;function tinycolor(_n,Cn){if(_n=_n||"",Cn=Cn||{},_n instanceof tinycolor)return _n;if(!(this instanceof tinycolor))return new tinycolor(_n,Cn);var $n=inputToRGB(_n);this._originalInput=_n,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=Cn.format||$n.format,this._gradientType=Cn.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}tinycolor.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 Cn=this.toRgb();return(Cn.r*299+Cn.g*587+Cn.b*114)/1e3},getLuminance:function(){var Cn=this.toRgb(),$n,Nn,Bn,Ln,In,Pn;return $n=Cn.r/255,Nn=Cn.g/255,Bn=Cn.b/255,$n<=.03928?Ln=$n/12.92:Ln=Math.pow(($n+.055)/1.055,2.4),Nn<=.03928?In=Nn/12.92:In=Math.pow((Nn+.055)/1.055,2.4),Bn<=.03928?Pn=Bn/12.92:Pn=Math.pow((Bn+.055)/1.055,2.4),.2126*Ln+.7152*In+.0722*Pn},setAlpha:function(Cn){return this._a=boundAlpha(Cn),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var Cn=rgbToHsv(this._r,this._g,this._b);return{h:Cn.h*360,s:Cn.s,v:Cn.v,a:this._a}},toHsvString:function(){var Cn=rgbToHsv(this._r,this._g,this._b),$n=Math.round(Cn.h*360),Nn=Math.round(Cn.s*100),Bn=Math.round(Cn.v*100);return this._a==1?"hsv("+$n+", "+Nn+"%, "+Bn+"%)":"hsva("+$n+", "+Nn+"%, "+Bn+"%, "+this._roundA+")"},toHsl:function(){var Cn=rgbToHsl(this._r,this._g,this._b);return{h:Cn.h*360,s:Cn.s,l:Cn.l,a:this._a}},toHslString:function(){var Cn=rgbToHsl(this._r,this._g,this._b),$n=Math.round(Cn.h*360),Nn=Math.round(Cn.s*100),Bn=Math.round(Cn.l*100);return this._a==1?"hsl("+$n+", "+Nn+"%, "+Bn+"%)":"hsla("+$n+", "+Nn+"%, "+Bn+"%, "+this._roundA+")"},toHex:function(Cn){return rgbToHex(this._r,this._g,this._b,Cn)},toHexString:function(Cn){return"#"+this.toHex(Cn)},toHex8:function(Cn){return rgbaToHex(this._r,this._g,this._b,this._a,Cn)},toHex8String:function(Cn){return"#"+this.toHex8(Cn)},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(bound01(this._r,255)*100)+"%",g:Math.round(bound01(this._g,255)*100)+"%",b:Math.round(bound01(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(bound01(this._r,255)*100)+"%, "+Math.round(bound01(this._g,255)*100)+"%, "+Math.round(bound01(this._b,255)*100)+"%)":"rgba("+Math.round(bound01(this._r,255)*100)+"%, "+Math.round(bound01(this._g,255)*100)+"%, "+Math.round(bound01(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:hexNames[rgbToHex(this._r,this._g,this._b,!0)]||!1},toFilter:function(Cn){var $n="#"+rgbaToArgbHex(this._r,this._g,this._b,this._a),Nn=$n,Bn=this._gradientType?"GradientType = 1, ":"";if(Cn){var Ln=tinycolor(Cn);Nn="#"+rgbaToArgbHex(Ln._r,Ln._g,Ln._b,Ln._a)}return"progid:DXImageTransform.Microsoft.gradient("+Bn+"startColorstr="+$n+",endColorstr="+Nn+")"},toString:function(Cn){var $n=!!Cn;Cn=Cn||this._format;var Nn=!1,Bn=this._a<1&&this._a>=0,Ln=!$n&&Bn&&(Cn==="hex"||Cn==="hex6"||Cn==="hex3"||Cn==="hex4"||Cn==="hex8"||Cn==="name");return Ln?Cn==="name"&&this._a===0?this.toName():this.toRgbString():(Cn==="rgb"&&(Nn=this.toRgbString()),Cn==="prgb"&&(Nn=this.toPercentageRgbString()),(Cn==="hex"||Cn==="hex6")&&(Nn=this.toHexString()),Cn==="hex3"&&(Nn=this.toHexString(!0)),Cn==="hex4"&&(Nn=this.toHex8String(!0)),Cn==="hex8"&&(Nn=this.toHex8String()),Cn==="name"&&(Nn=this.toName()),Cn==="hsl"&&(Nn=this.toHslString()),Cn==="hsv"&&(Nn=this.toHsvString()),Nn||this.toHexString())},clone:function(){return tinycolor(this.toString())},_applyModification:function(Cn,$n){var Nn=Cn.apply(null,[this].concat([].slice.call($n)));return this._r=Nn._r,this._g=Nn._g,this._b=Nn._b,this.setAlpha(Nn._a),this},lighten:function(){return this._applyModification(_lighten,arguments)},brighten:function(){return this._applyModification(_brighten,arguments)},darken:function(){return this._applyModification(_darken,arguments)},desaturate:function(){return this._applyModification(_desaturate,arguments)},saturate:function(){return this._applyModification(_saturate,arguments)},greyscale:function(){return this._applyModification(_greyscale,arguments)},spin:function(){return this._applyModification(_spin,arguments)},_applyCombination:function(Cn,$n){return Cn.apply(null,[this].concat([].slice.call($n)))},analogous:function(){return this._applyCombination(_analogous,arguments)},complement:function(){return this._applyCombination(_complement,arguments)},monochromatic:function(){return this._applyCombination(_monochromatic,arguments)},splitcomplement:function(){return this._applyCombination(_splitcomplement,arguments)},triad:function(){return this._applyCombination(polyad,[3])},tetrad:function(){return this._applyCombination(polyad,[4])}},tinycolor.fromRatio=function(_n,Cn){if(_typeof(_n)=="object"){var $n={};for(var Nn in _n)_n.hasOwnProperty(Nn)&&(Nn==="a"?$n[Nn]=_n[Nn]:$n[Nn]=convertToPercentage(_n[Nn]));_n=$n}return tinycolor(_n,Cn)};function inputToRGB(_n){var Cn={r:0,g:0,b:0},$n=1,Nn=null,Bn=null,Ln=null,In=!1,Pn=!1;return typeof _n=="string"&&(_n=stringInputToObject(_n)),_typeof(_n)=="object"&&(isValidCSSUnit(_n.r)&&isValidCSSUnit(_n.g)&&isValidCSSUnit(_n.b)?(Cn=rgbToRgb(_n.r,_n.g,_n.b),In=!0,Pn=String(_n.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(_n.h)&&isValidCSSUnit(_n.s)&&isValidCSSUnit(_n.v)?(Nn=convertToPercentage(_n.s),Bn=convertToPercentage(_n.v),Cn=hsvToRgb(_n.h,Nn,Bn),In=!0,Pn="hsv"):isValidCSSUnit(_n.h)&&isValidCSSUnit(_n.s)&&isValidCSSUnit(_n.l)&&(Nn=convertToPercentage(_n.s),Ln=convertToPercentage(_n.l),Cn=hslToRgb(_n.h,Nn,Ln),In=!0,Pn="hsl"),_n.hasOwnProperty("a")&&($n=_n.a)),$n=boundAlpha($n),{ok:In,format:_n.format||Pn,r:Math.min(255,Math.max(Cn.r,0)),g:Math.min(255,Math.max(Cn.g,0)),b:Math.min(255,Math.max(Cn.b,0)),a:$n}}function rgbToRgb(_n,Cn,$n){return{r:bound01(_n,255)*255,g:bound01(Cn,255)*255,b:bound01($n,255)*255}}function rgbToHsl(_n,Cn,$n){_n=bound01(_n,255),Cn=bound01(Cn,255),$n=bound01($n,255);var Nn=Math.max(_n,Cn,$n),Bn=Math.min(_n,Cn,$n),Ln,In,Pn=(Nn+Bn)/2;if(Nn==Bn)Ln=In=0;else{var Dn=Nn-Bn;switch(In=Pn>.5?Dn/(2-Nn-Bn):Dn/(Nn+Bn),Nn){case _n:Ln=(Cn-$n)/Dn+(Cn<$n?6:0);break;case Cn:Ln=($n-_n)/Dn+2;break;case $n:Ln=(_n-Cn)/Dn+4;break}Ln/=6}return{h:Ln,s:In,l:Pn}}function hslToRgb(_n,Cn,$n){var Nn,Bn,Ln;_n=bound01(_n,360),Cn=bound01(Cn,100),$n=bound01($n,100);function In(Hn,Wn,Xn){return Xn<0&&(Xn+=1),Xn>1&&(Xn-=1),Xn<1/6?Hn+(Wn-Hn)*6*Xn:Xn<1/2?Wn:Xn<2/3?Hn+(Wn-Hn)*(2/3-Xn)*6:Hn}if(Cn===0)Nn=Bn=Ln=$n;else{var Pn=$n<.5?$n*(1+Cn):$n+Cn-$n*Cn,Dn=2*$n-Pn;Nn=In(Dn,Pn,_n+1/3),Bn=In(Dn,Pn,_n),Ln=In(Dn,Pn,_n-1/3)}return{r:Nn*255,g:Bn*255,b:Ln*255}}function rgbToHsv(_n,Cn,$n){_n=bound01(_n,255),Cn=bound01(Cn,255),$n=bound01($n,255);var Nn=Math.max(_n,Cn,$n),Bn=Math.min(_n,Cn,$n),Ln,In,Pn=Nn,Dn=Nn-Bn;if(In=Nn===0?0:Dn/Nn,Nn==Bn)Ln=0;else{switch(Nn){case _n:Ln=(Cn-$n)/Dn+(Cn<$n?6:0);break;case Cn:Ln=($n-_n)/Dn+2;break;case $n:Ln=(_n-Cn)/Dn+4;break}Ln/=6}return{h:Ln,s:In,v:Pn}}function hsvToRgb(_n,Cn,$n){_n=bound01(_n,360)*6,Cn=bound01(Cn,100),$n=bound01($n,100);var Nn=Math.floor(_n),Bn=_n-Nn,Ln=$n*(1-Cn),In=$n*(1-Bn*Cn),Pn=$n*(1-(1-Bn)*Cn),Dn=Nn%6,Hn=[$n,In,Ln,Ln,Pn,$n][Dn],Wn=[Pn,$n,$n,In,Ln,Ln][Dn],Xn=[Ln,Ln,Pn,$n,$n,In][Dn];return{r:Hn*255,g:Wn*255,b:Xn*255}}function rgbToHex(_n,Cn,$n,Nn){var Bn=[pad2(Math.round(_n).toString(16)),pad2(Math.round(Cn).toString(16)),pad2(Math.round($n).toString(16))];return Nn&&Bn[0].charAt(0)==Bn[0].charAt(1)&&Bn[1].charAt(0)==Bn[1].charAt(1)&&Bn[2].charAt(0)==Bn[2].charAt(1)?Bn[0].charAt(0)+Bn[1].charAt(0)+Bn[2].charAt(0):Bn.join("")}function rgbaToHex(_n,Cn,$n,Nn,Bn){var Ln=[pad2(Math.round(_n).toString(16)),pad2(Math.round(Cn).toString(16)),pad2(Math.round($n).toString(16)),pad2(convertDecimalToHex(Nn))];return Bn&&Ln[0].charAt(0)==Ln[0].charAt(1)&&Ln[1].charAt(0)==Ln[1].charAt(1)&&Ln[2].charAt(0)==Ln[2].charAt(1)&&Ln[3].charAt(0)==Ln[3].charAt(1)?Ln[0].charAt(0)+Ln[1].charAt(0)+Ln[2].charAt(0)+Ln[3].charAt(0):Ln.join("")}function rgbaToArgbHex(_n,Cn,$n,Nn){var Bn=[pad2(convertDecimalToHex(Nn)),pad2(Math.round(_n).toString(16)),pad2(Math.round(Cn).toString(16)),pad2(Math.round($n).toString(16))];return Bn.join("")}tinycolor.equals=function(_n,Cn){return!_n||!Cn?!1:tinycolor(_n).toRgbString()==tinycolor(Cn).toRgbString()},tinycolor.random=function(){return tinycolor.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function _desaturate(_n,Cn){Cn=Cn===0?0:Cn||10;var $n=tinycolor(_n).toHsl();return $n.s-=Cn/100,$n.s=clamp01($n.s),tinycolor($n)}function _saturate(_n,Cn){Cn=Cn===0?0:Cn||10;var $n=tinycolor(_n).toHsl();return $n.s+=Cn/100,$n.s=clamp01($n.s),tinycolor($n)}function _greyscale(_n){return tinycolor(_n).desaturate(100)}function _lighten(_n,Cn){Cn=Cn===0?0:Cn||10;var $n=tinycolor(_n).toHsl();return $n.l+=Cn/100,$n.l=clamp01($n.l),tinycolor($n)}function _brighten(_n,Cn){Cn=Cn===0?0:Cn||10;var $n=tinycolor(_n).toRgb();return $n.r=Math.max(0,Math.min(255,$n.r-Math.round(255*-(Cn/100)))),$n.g=Math.max(0,Math.min(255,$n.g-Math.round(255*-(Cn/100)))),$n.b=Math.max(0,Math.min(255,$n.b-Math.round(255*-(Cn/100)))),tinycolor($n)}function _darken(_n,Cn){Cn=Cn===0?0:Cn||10;var $n=tinycolor(_n).toHsl();return $n.l-=Cn/100,$n.l=clamp01($n.l),tinycolor($n)}function _spin(_n,Cn){var $n=tinycolor(_n).toHsl(),Nn=($n.h+Cn)%360;return $n.h=Nn<0?360+Nn:Nn,tinycolor($n)}function _complement(_n){var Cn=tinycolor(_n).toHsl();return Cn.h=(Cn.h+180)%360,tinycolor(Cn)}function polyad(_n,Cn){if(isNaN(Cn)||Cn<=0)throw new Error("Argument to polyad must be a positive number");for(var $n=tinycolor(_n).toHsl(),Nn=[tinycolor(_n)],Bn=360/Cn,Ln=1;Ln<Cn;Ln++)Nn.push(tinycolor({h:($n.h+Ln*Bn)%360,s:$n.s,l:$n.l}));return Nn}function _splitcomplement(_n){var Cn=tinycolor(_n).toHsl(),$n=Cn.h;return[tinycolor(_n),tinycolor({h:($n+72)%360,s:Cn.s,l:Cn.l}),tinycolor({h:($n+216)%360,s:Cn.s,l:Cn.l})]}function _analogous(_n,Cn,$n){Cn=Cn||6,$n=$n||30;var Nn=tinycolor(_n).toHsl(),Bn=360/$n,Ln=[tinycolor(_n)];for(Nn.h=(Nn.h-(Bn*Cn>>1)+720)%360;--Cn;)Nn.h=(Nn.h+Bn)%360,Ln.push(tinycolor(Nn));return Ln}function _monochromatic(_n,Cn){Cn=Cn||6;for(var $n=tinycolor(_n).toHsv(),Nn=$n.h,Bn=$n.s,Ln=$n.v,In=[],Pn=1/Cn;Cn--;)In.push(tinycolor({h:Nn,s:Bn,v:Ln})),Ln=(Ln+Pn)%1;return In}tinycolor.mix=function(_n,Cn,$n){$n=$n===0?0:$n||50;var Nn=tinycolor(_n).toRgb(),Bn=tinycolor(Cn).toRgb(),Ln=$n/100,In={r:(Bn.r-Nn.r)*Ln+Nn.r,g:(Bn.g-Nn.g)*Ln+Nn.g,b:(Bn.b-Nn.b)*Ln+Nn.b,a:(Bn.a-Nn.a)*Ln+Nn.a};return tinycolor(In)},tinycolor.readability=function(_n,Cn){var $n=tinycolor(_n),Nn=tinycolor(Cn);return(Math.max($n.getLuminance(),Nn.getLuminance())+.05)/(Math.min($n.getLuminance(),Nn.getLuminance())+.05)},tinycolor.isReadable=function(_n,Cn,$n){var Nn=tinycolor.readability(_n,Cn),Bn,Ln;switch(Ln=!1,Bn=validateWCAG2Parms($n),Bn.level+Bn.size){case"AAsmall":case"AAAlarge":Ln=Nn>=4.5;break;case"AAlarge":Ln=Nn>=3;break;case"AAAsmall":Ln=Nn>=7;break}return Ln},tinycolor.mostReadable=function(_n,Cn,$n){var Nn=null,Bn=0,Ln,In,Pn,Dn;$n=$n||{},In=$n.includeFallbackColors,Pn=$n.level,Dn=$n.size;for(var Hn=0;Hn<Cn.length;Hn++)Ln=tinycolor.readability(_n,Cn[Hn]),Ln>Bn&&(Bn=Ln,Nn=tinycolor(Cn[Hn]));return tinycolor.isReadable(_n,Nn,{level:Pn,size:Dn})||!In?Nn:($n.includeFallbackColors=!1,tinycolor.mostReadable(_n,["#fff","#000"],$n))};var names=tinycolor.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"},hexNames=tinycolor.hexNames=flip$2(names);function flip$2(_n){var Cn={};for(var $n in _n)_n.hasOwnProperty($n)&&(Cn[_n[$n]]=$n);return Cn}function boundAlpha(_n){return _n=parseFloat(_n),(isNaN(_n)||_n<0||_n>1)&&(_n=1),_n}function bound01(_n,Cn){isOnePointZero(_n)&&(_n="100%");var $n=isPercentage(_n);return _n=Math.min(Cn,Math.max(0,parseFloat(_n))),$n&&(_n=parseInt(_n*Cn,10)/100),Math.abs(_n-Cn)<1e-6?1:_n%Cn/parseFloat(Cn)}function clamp01(_n){return Math.min(1,Math.max(0,_n))}function parseIntFromHex(_n){return parseInt(_n,16)}function isOnePointZero(_n){return typeof _n=="string"&&_n.indexOf(".")!=-1&&parseFloat(_n)===1}function isPercentage(_n){return typeof _n=="string"&&_n.indexOf("%")!=-1}function pad2(_n){return _n.length==1?"0"+_n:""+_n}function convertToPercentage(_n){return _n<=1&&(_n=_n*100+"%"),_n}function convertDecimalToHex(_n){return Math.round(parseFloat(_n)*255).toString(16)}function convertHexToDecimal(_n){return parseIntFromHex(_n)/255}var matchers=function(){var _n="[-\\+]?\\d+%?",Cn="[-\\+]?\\d*\\.\\d+%?",$n="(?:"+Cn+")|(?:"+_n+")",Nn="[\\s|\\(]+("+$n+")[,|\\s]+("+$n+")[,|\\s]+("+$n+")\\s*\\)?",Bn="[\\s|\\(]+("+$n+")[,|\\s]+("+$n+")[,|\\s]+("+$n+")[,|\\s]+("+$n+")\\s*\\)?";return{CSS_UNIT:new RegExp($n),rgb:new RegExp("rgb"+Nn),rgba:new RegExp("rgba"+Bn),hsl:new RegExp("hsl"+Nn),hsla:new RegExp("hsla"+Bn),hsv:new RegExp("hsv"+Nn),hsva:new RegExp("hsva"+Bn),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 isValidCSSUnit(_n){return!!matchers.CSS_UNIT.exec(_n)}function stringInputToObject(_n){_n=_n.replace(trimLeft,"").replace(trimRight,"").toLowerCase();var Cn=!1;if(names[_n])_n=names[_n],Cn=!0;else if(_n=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var $n;return($n=matchers.rgb.exec(_n))?{r:$n[1],g:$n[2],b:$n[3]}:($n=matchers.rgba.exec(_n))?{r:$n[1],g:$n[2],b:$n[3],a:$n[4]}:($n=matchers.hsl.exec(_n))?{h:$n[1],s:$n[2],l:$n[3]}:($n=matchers.hsla.exec(_n))?{h:$n[1],s:$n[2],l:$n[3],a:$n[4]}:($n=matchers.hsv.exec(_n))?{h:$n[1],s:$n[2],v:$n[3]}:($n=matchers.hsva.exec(_n))?{h:$n[1],s:$n[2],v:$n[3],a:$n[4]}:($n=matchers.hex8.exec(_n))?{r:parseIntFromHex($n[1]),g:parseIntFromHex($n[2]),b:parseIntFromHex($n[3]),a:convertHexToDecimal($n[4]),format:Cn?"name":"hex8"}:($n=matchers.hex6.exec(_n))?{r:parseIntFromHex($n[1]),g:parseIntFromHex($n[2]),b:parseIntFromHex($n[3]),format:Cn?"name":"hex"}:($n=matchers.hex4.exec(_n))?{r:parseIntFromHex($n[1]+""+$n[1]),g:parseIntFromHex($n[2]+""+$n[2]),b:parseIntFromHex($n[3]+""+$n[3]),a:convertHexToDecimal($n[4]+""+$n[4]),format:Cn?"name":"hex8"}:($n=matchers.hex3.exec(_n))?{r:parseIntFromHex($n[1]+""+$n[1]),g:parseIntFromHex($n[2]+""+$n[2]),b:parseIntFromHex($n[3]+""+$n[3]),format:Cn?"name":"hex"}:!1}function validateWCAG2Parms(_n){var Cn,$n;return _n=_n||{level:"AA",size:"small"},Cn=(_n.level||"AA").toUpperCase(),$n=(_n.size||"small").toLowerCase(),Cn!=="AA"&&Cn!=="AAA"&&(Cn="AA"),$n!=="small"&&$n!=="large"&&($n="small"),{level:Cn,size:$n}}const common$1={loraRegex:/^\<lora:\s*([^\:]+)\s*(:)?\s*(\-?[0-9\.]+)?([^\>]+)?\>/,lycoRegex:/^\<lyco:\s*([^\:]+)\s*(:)?\s*(\-?[0-9\.]+)?([^\>]+)?\>$/,weightNumRegex:/(.*):(\-?[0-9\.]+)/,weightNumRegexEN:/(.*):\s*(\-?[0-9\.]+)/,weightNumRegexCN:/(.*)\s*(\-?[0-9\.]+)/,bracketsEN:[{"(":"(",")":")"},{"[":"[","]":"]"},{"{":"{","}":"}"},{"<":"<",">":">"}],bracketsCN:[{"":"(","":")"},{"【":"[","】":"]"},{"《":"<","》":">"},{"「":"{","」":"}"},{"『":"{","』":"}"},{"〈":"<","〉":">"},{"﹝":"(","﹞":")"},{"﹛":"{","﹜":"}"},{"﹙":"(","﹚":")"}],replaceTag(_n){return typeof _n!="string"||_n===""||(_n=this.replaceBrackets(_n),this.weightNumRegexEN.test(_n)&&(_n=_n.replace(this.weightNumRegexEN,"$1:$2")),this.weightNumRegexCN.test(_n)&&(_n=_n.replace(this.weightNumRegexCN,"$1:$2"))),_n},replaceBrackets(_n){const Cn=_n.length;if(Cn===0)return _n;let $n={};this.bracketsCN.forEach(Ln=>{for(const In in Ln)$n[In]=Ln[In]});let Nn=_n[0],Bn=_n[Cn-1];return typeof $n[Nn]<"u"&&(_n=$n[Nn]+_n.substring(1)),typeof $n[Bn]<"u"&&(_n=_n.substring(0,Cn-1)+$n[Bn]),_n},hasBrackets(_n){const Cn=_n.length;if(Cn===0)return!1;let $n=[];this.bracketsEN.forEach(Ln=>{let In=[];for(const Pn in Ln)In.push(Pn);$n.push(In)}),this.bracketsCN.forEach(Ln=>{let In=[];for(const Pn in Ln)In.push(Pn);$n.push(In)});let Nn=_n[0],Bn=_n[Cn-1];for(const Ln of $n)if(Ln[0]===Nn&&Ln[1]===Bn)return Ln;return!1},splitTag(_n){let Cn={left:"",value:"",right:""},$n=_n.match(/^([\(\<\{\[]+)(.*)$/);return!$n||(Cn.left=$n[1],_n=$n[2],$n=_n.match(/((\:[0-9\.]+)?[\)\>\}\]]+)$/),!$n)?(Cn.value=_n,Cn):(Cn.right=$n[1],_n=_n.substring(0,_n.length-Cn.right.length),Cn.value=_n,Cn)},splitTags(_n,Cn=!1,$n=!1){return splitTags(_n,Cn,$n)},canTranslate(_n){return!(_n.trim()===""||_n[0]==="<"&&_n[_n.length-1]===">"||/^[0-9`~!@#$%^&*()_+\-=\[\]{}\\|;:'",.\/<>?]+$/.test(_n)||/^[a-zA-Z]$/.test(_n))},isEnglish(_n){const Cn=_n.length;if(_n[0]==="<"&&_n[Cn-1]===">")return!0;for(let $n=0;$n<Cn;$n++)if(_n.charCodeAt($n)>127)return!1;return!0},canOneTranslate(_n){const Cn=["zh_CN","zh_HK","zh_TW","ar_SA","ja_JP","ko_KR","ru_RU"];return Cn.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"),!!Cn.includes(_n)},isEnglishByLangCode(_n,Cn){if(!this.canOneTranslate(Cn))return-1;const $n=_n.length;for(let Nn=0;Nn<$n;Nn++)if(_n.charCodeAt(Nn)>127)return 0;return 1},isSameLang(_n,Cn){if(_n===Cn)return!0;let $n=_n.toLowerCase(),Nn=Cn.toLowerCase();return $n===Nn||(_n=_n.replace("-","_"),Cn=Cn.replace("-","_"),_n===Cn)||(_n=_n.split("_")[0],Cn=Cn.split("_")[0],_n===Cn)},getLang(_n,Cn,$n){return $n[Cn]&&$n[Cn].lang&&$n[Cn].lang[_n]?this.replaceGlobals($n[Cn].lang[_n],Cn):$n.en_US&&$n.en_US.lang&&$n.en_US.lang[_n]?this.replaceGlobals($n.en_US.lang[_n],"en_US"):this.replaceGlobals(_n,Cn)},replaceGlobals(_n,Cn){for(let $n in globals){let Nn=globals[$n];if($n==="docs")switch(Cn){case"zh_CN":Nn+="/zh-CN";break;case"zh_HK":case"zh_TW":Nn+="/zh-TW";break;case"ru_RU":Nn+="/ru";break}_n=_n.replace(new RegExp(`{{${$n}}}`,"g"),Nn)}return _n},escapeHtml(_n){return _n.replace(/[&<>'"]/g,Cn=>({"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"})[Cn]||Cn)},unescapeHtml(_n){return _n.replace(/&amp;|&lt;|&gt;|&#39;|&quot;/g,Cn=>({"&amp;":"&","&lt;":"<","&gt;":">","&#39;":"'","&quot;":'"'})[Cn]||Cn)},getTagWeightNum(_n){const Cn=_n.match(this.weightNumRegex);return Cn?parseFloat(Cn[2]):1},getTagIncWeight(_n,Cn=!1){return Cn?this.countLayers(_n,"{","}"):this.countLayers(_n,"(",")")},getTagDecWeight(_n){return this.countLayers(_n,"[","]")},countLayers(_n,Cn="(",$n=")"){let Nn=0;if(_n.length<2)return Nn;for(;;){let Bn=_n[0],Ln=_n[_n.length-1];if(Bn===Cn&&Ln===$n)Nn++,_n=_n.slice(1,_n.length-1);else break}return Nn},setLayers(_n,Cn=0,$n="(",Nn=")",Bn=""){for(;;){let Ln=_n[0],In=_n[_n.length-1];if(Ln===$n&&In===Nn)_n=_n.slice(1,_n.length-1);else break}return Cn===0?_n:$n.repeat(Cn)+_n+Bn+Nn.repeat(Cn)},getTranslateApiInfo(_n,Cn){let $n=!1;for(const Nn in Cn)for(const Bn in Nn.children)if(Bn.key===_n){$n=Bn;break}return $n},isEqualTags(_n,Cn,$n=[]){if(Cn.length!==_n.length)return!1;for(let Nn=0;Nn<_n.length;Nn++){for(let Bn in _n[Nn])if(!$n.includes(Bn)&&Cn[Nn][Bn]!==_n[Nn][Bn])return!1;for(let Bn in Cn[Nn])if(!$n.includes(Bn)&&Cn[Nn][Bn]!==_n[Nn][Bn])return!1}return!0},getTranslateApiItem(_n,Cn){if(!_n||_n.length<=0)return{};for(let $n of _n)for(let Nn of $n.children)if(Nn.key===Cn)return Nn;return _n[0].children[0]},hideCompleteResults(_n){typeof hideResults=="function"&&[100,200,300,500,1e3].forEach($n=>{setTimeout(()=>{hideResults(_n)},$n)})},formatTime(_n,Cn=!0){let $n=new Date(_n),Nn=$n.getFullYear(),Bn=$n.getMonth()+1;Bn<10&&(Bn="0"+Bn);let Ln=$n.getDate();Ln<10&&(Ln="0"+Ln);let In=$n.getHours();In<10&&(In="0"+In);let Pn=$n.getMinutes();Pn<10&&(Pn="0"+Pn);let Dn=$n.getSeconds();return Dn<10&&(Dn="0"+Dn),Cn?`${Nn}/${Bn}/${Ln} ${In}:${Pn}:${Dn}`:`${Bn}/${Ln} ${In}:${Pn}:${Dn}`},apiUrl(){let _n;return _n=window.location.origin+window.location.pathname,_n+=_n.endsWith("/")?"":"/",_n+="physton_prompt/",_n},removeCSS(_n,Cn=!0){if(!_n)return;let $n=null;Cn?$n=this.gradioApp().querySelector("#"+_n):$n=document.querySelector("#"+_n),$n&&$n.remove()},loadCSS(_n,Cn="",$n=!0,Nn=!1,Bn=!0){$n&&this.removeCSS(Cn,Bn);let Ln=this.apiUrl()+"styles?file="+encodeURIComponent(_n);Nn||(Ln+="&t="+new Date().getTime());let In=document.createElement("link");In.id=Cn,In.rel="stylesheet",In.href=Ln,Bn?this.gradioApp().appendChild(In):document.body.appendChild(In)},swapElement(_n,Cn){let $n=_n.parentNode,Nn=Cn.parentNode,Bn=_n.nextSibling,Ln=Cn.nextSibling;$n.insertBefore(Cn,Bn),Nn.insertBefore(_n,Ln)},insertBefore(_n,Cn){Cn.parentNode.insertBefore(_n,Cn)},insertAfter(_n,Cn){Cn.nextSibling?Cn.parentNode.insertBefore(_n,Cn.nextSibling):Cn.parentNode.appendChild(_n)},gradioContainer:null,gradioApp(){if(this.gradioContainer)return this.gradioContainer;const _n=document.getElementsByTagName("gradio-app"),Cn=_n.length==0?null:_n[0].shadowRoot;if(Cn){const $n=Cn.querySelectorAll(".gradio-container");for(let Nn=0;Nn<$n.length;Nn++){const Bn=$n[Nn];if(Bn.querySelectorAll("#tabs").length)return Bn.classList.add("physton-gradio-container"),this.gradioContainer=Bn,Bn}}else return document.body.classList.add("physton-gradio-container"),this.gradioContainer=document.body,document.body},fitterInputColor(_n,Cn="rgba(0,0,0,0)"){let $n="fitterInputColor:"+_n+":"+Cn;return localStorage[$n]?localStorage[$n]:!_n||_n===""||_n==="default"||_n==="none"||_n==="null"||_n==="undefined"||_n==="false"||_n==="true"||!tinycolor(_n).isValid()?(localStorage[$n]=Cn,Cn):(localStorage[$n]=_n,_n)},isColorTransparent(_n){let Cn="isColorTransparent:"+_n;if(localStorage[Cn])return localStorage[Cn]==="true";let $n=tinycolor(_n).getAlpha()===0;return localStorage[Cn]=$n,$n},getTagsColorKey(_n,Cn){return _n+"||"+Cn},getSamePrefixPath(_n){if(_n.length<=0)return"";const Cn=_n.map(Ln=>Ln.split("/")),$n=Cn[0],Nn=Cn.slice(1);return $n.filter((Ln,In)=>Nn.every(Pn=>Pn[In]===Ln)).join("/")}};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(_n){return _n&&_n.__esModule&&Object.prototype.hasOwnProperty.call(_n,"default")?_n.default:_n}var papaparse_min={exports:{}};/* @license
Papa Parse
v5.4.1
https://github.com/mholt/PapaParse
License: MIT
*/(function(_n,Cn){(function($n,Nn){_n.exports=Nn()})(commonjsGlobal,function $n(){var Nn=typeof self<"u"?self:typeof window<"u"?window:Nn!==void 0?Nn:{},Bn=!Nn.document&&!!Nn.postMessage,Ln=Nn.IS_PAPA_WORKER||!1,In={},Pn=0,Dn={parse:function(ni,Qo){var ri=(Qo=Qo||{}).dynamicTyping||!1;if(Ni(ri)&&(Qo.dynamicTypingFunction=ri,ri={}),Qo.dynamicTyping=ri,Qo.transform=!!Ni(Qo.transform)&&Qo.transform,Qo.worker&&Dn.WORKERS_SUPPORTED){var ci=function(){if(!Dn.WORKERS_SUPPORTED)return!1;var yi=(ta=Nn.URL||Nn.webkitURL||null,Yi=$n.toString(),Dn.BLOB_URL||(Dn.BLOB_URL=ta.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",Yi,")();"],{type:"text/javascript"})))),Li=new Nn.Worker(yi),ta,Yi;return Li.onmessage=ui,Li.id=Pn++,In[Li.id]=Li}();return ci.userStep=Qo.step,ci.userChunk=Qo.chunk,ci.userComplete=Qo.complete,ci.userError=Qo.error,Qo.step=Ni(Qo.step),Qo.chunk=Ni(Qo.chunk),Qo.complete=Ni(Qo.complete),Qo.error=Ni(Qo.error),delete Qo.worker,void ci.postMessage({input:ni,config:Qo,workerId:ci.id})}var pi=null;return Dn.NODE_STREAM_INPUT,typeof ni=="string"?(ni=function(yi){return yi.charCodeAt(0)===65279?yi.slice(1):yi}(ni),pi=Qo.download?new Xn(Qo):new rr(Qo)):ni.readable===!0&&Ni(ni.read)&&Ni(ni.on)?pi=new nr(Qo):(Nn.File&&ni instanceof File||ni instanceof Object)&&(pi=new Gn(Qo)),pi.stream(ni)},unparse:function(ni,Qo){var ri=!1,ci=!0,pi=",",yi=`\r
`,Li='"',ta=Li+Li,Yi=!1,bi=null,xi=!1;(function(){if(typeof Qo=="object"){if(typeof Qo.delimiter!="string"||Dn.BAD_DELIMITERS.filter(function(Si){return Qo.delimiter.indexOf(Si)!==-1}).length||(pi=Qo.delimiter),(typeof Qo.quotes=="boolean"||typeof Qo.quotes=="function"||Array.isArray(Qo.quotes))&&(ri=Qo.quotes),typeof Qo.skipEmptyLines!="boolean"&&typeof Qo.skipEmptyLines!="string"||(Yi=Qo.skipEmptyLines),typeof Qo.newline=="string"&&(yi=Qo.newline),typeof Qo.quoteChar=="string"&&(Li=Qo.quoteChar),typeof Qo.header=="boolean"&&(ci=Qo.header),Array.isArray(Qo.columns)){if(Qo.columns.length===0)throw new Error("Option columns is empty");bi=Qo.columns}Qo.escapeChar!==void 0&&(ta=Qo.escapeChar+Li),(typeof Qo.escapeFormulae=="boolean"||Qo.escapeFormulae instanceof RegExp)&&(xi=Qo.escapeFormulae instanceof RegExp?Qo.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var Ii=new RegExp(ei(Li),"g");if(typeof ni=="string"&&(ni=JSON.parse(ni)),Array.isArray(ni)){if(!ni.length||Array.isArray(ni[0]))return da(null,ni,Yi);if(typeof ni[0]=="object")return da(bi||Object.keys(ni[0]),ni,Yi)}else if(typeof ni=="object")return typeof ni.data=="string"&&(ni.data=JSON.parse(ni.data)),Array.isArray(ni.data)&&(ni.fields||(ni.fields=ni.meta&&ni.meta.fields||bi),ni.fields||(ni.fields=Array.isArray(ni.data[0])?ni.fields:typeof ni.data[0]=="object"?Object.keys(ni.data[0]):[]),Array.isArray(ni.data[0])||typeof ni.data[0]=="object"||(ni.data=[ni.data])),da(ni.fields||[],ni.data||[],Yi);throw new Error("Unable to serialize unrecognized input");function da(Si,Mi,ji){var Ki="";typeof Si=="string"&&(Si=JSON.parse(Si)),typeof Mi=="string"&&(Mi=JSON.parse(Mi));var zi=Array.isArray(Si)&&0<Si.length,ea=!Array.isArray(Mi[0]);if(zi&&ci){for(var ca=0;ca<Si.length;ca++)0<ca&&(Ki+=pi),Ki+=oa(Si[ca],ca);0<Mi.length&&(Ki+=yi)}for(var qi=0;qi<Mi.length;qi++){var fa=zi?Si.length:Mi[qi].length,ya=!1,oi=zi?Object.keys(Mi[qi]).length===0:Mi[qi].length===0;if(ji&&!zi&&(ya=ji==="greedy"?Mi[qi].join("").trim()==="":Mi[qi].length===1&&Mi[qi][0].length===0),ji==="greedy"&&zi){for(var si=[],_i=0;_i<fa;_i++){var Ti=ea?Si[_i]:_i;si.push(Mi[qi][Ti])}ya=si.join("").trim()===""}if(!ya){for(var fi=0;fi<fa;fi++){0<fi&&!oi&&(Ki+=pi);var Ei=zi&&ea?Si[fi]:fi;Ki+=oa(Mi[qi][Ei],fi)}qi<Mi.length-1&&(!ji||0<fa&&!oi)&&(Ki+=yi)}}return Ki}function oa(Si,Mi){if(Si==null)return"";if(Si.constructor===Date)return JSON.stringify(Si).slice(1,25);var ji=!1;xi&&typeof Si=="string"&&xi.test(Si)&&(Si="'"+Si,ji=!0);var Ki=Si.toString().replace(Ii,ta);return(ji=ji||ri===!0||typeof ri=="function"&&ri(Si,Mi)||Array.isArray(ri)&&ri[Mi]||function(zi,ea){for(var ca=0;ca<ea.length;ca++)if(-1<zi.indexOf(ea[ca]))return!0;return!1}(Ki,Dn.BAD_DELIMITERS)||-1<Ki.indexOf(pi)||Ki.charAt(0)===" "||Ki.charAt(Ki.length-1)===" ")?Li+Ki+Li:Ki}}};if(Dn.RECORD_SEP=String.fromCharCode(30),Dn.UNIT_SEP=String.fromCharCode(31),Dn.BYTE_ORDER_MARK="\uFEFF",Dn.BAD_DELIMITERS=["\r",`
`,'"',Dn.BYTE_ORDER_MARK],Dn.WORKERS_SUPPORTED=!Bn&&!!Nn.Worker,Dn.NODE_STREAM_INPUT=1,Dn.LocalChunkSize=10485760,Dn.RemoteChunkSize=5242880,Dn.DefaultDelimiter=",",Dn.Parser=ti,Dn.ParserHandle=Yo,Dn.NetworkStreamer=Xn,Dn.FileStreamer=Gn,Dn.StringStreamer=rr,Dn.ReadableStreamStreamer=nr,Nn.jQuery){var Hn=Nn.jQuery;Hn.fn.parse=function(ni){var Qo=ni.config||{},ri=[];return this.each(function(yi){if(!(Hn(this).prop("tagName").toUpperCase()==="INPUT"&&Hn(this).attr("type").toLowerCase()==="file"&&Nn.FileReader)||!this.files||this.files.length===0)return!0;for(var Li=0;Li<this.files.length;Li++)ri.push({file:this.files[Li],inputElem:this,instanceConfig:Hn.extend({},Qo)})}),ci(),this;function ci(){if(ri.length!==0){var yi,Li,ta,Yi,bi=ri[0];if(Ni(ni.before)){var xi=ni.before(bi.file,bi.inputElem);if(typeof xi=="object"){if(xi.action==="abort")return yi="AbortError",Li=bi.file,ta=bi.inputElem,Yi=xi.reason,void(Ni(ni.error)&&ni.error({name:yi},Li,ta,Yi));if(xi.action==="skip")return void pi();typeof xi.config=="object"&&(bi.instanceConfig=Hn.extend(bi.instanceConfig,xi.config))}else if(xi==="skip")return void pi()}var Ii=bi.instanceConfig.complete;bi.instanceConfig.complete=function(da){Ni(Ii)&&Ii(da,bi.file,bi.inputElem),pi()},Dn.parse(bi.file,bi.instanceConfig)}else Ni(ni.complete)&&ni.complete()}function pi(){ri.splice(0,1),ci()}}}function Wn(ni){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(Qo){var ri=vi(Qo);ri.chunkSize=parseInt(ri.chunkSize),Qo.step||Qo.chunk||(ri.chunkSize=null),this._handle=new Yo(ri),(this._handle.streamer=this)._config=ri}.call(this,ni),this.parseChunk=function(Qo,ri){if(this.isFirstChunk&&Ni(this._config.beforeFirstChunk)){var ci=this._config.beforeFirstChunk(Qo);ci!==void 0&&(Qo=ci)}this.isFirstChunk=!1,this._halted=!1;var pi=this._partialLine+Qo;this._partialLine="";var yi=this._handle.parse(pi,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var Li=yi.meta.cursor;this._finished||(this._partialLine=pi.substring(Li-this._baseIndex),this._baseIndex=Li),yi&&yi.data&&(this._rowCount+=yi.data.length);var ta=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(Ln)Nn.postMessage({results:yi,workerId:Dn.WORKER_ID,finished:ta});else if(Ni(this._config.chunk)&&!ri){if(this._config.chunk(yi,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);yi=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(yi.data),this._completeResults.errors=this._completeResults.errors.concat(yi.errors),this._completeResults.meta=yi.meta),this._completed||!ta||!Ni(this._config.complete)||yi&&yi.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),ta||yi&&yi.meta.paused||this._nextChunk(),yi}this._halted=!0},this._sendError=function(Qo){Ni(this._config.error)?this._config.error(Qo):Ln&&this._config.error&&Nn.postMessage({workerId:Dn.WORKER_ID,error:Qo,finished:!1})}}function Xn(ni){var Qo;(ni=ni||{}).chunkSize||(ni.chunkSize=Dn.RemoteChunkSize),Wn.call(this,ni),this._nextChunk=Bn?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(ri){this._input=ri,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(Qo=new XMLHttpRequest,this._config.withCredentials&&(Qo.withCredentials=this._config.withCredentials),Bn||(Qo.onload=zn(this._chunkLoaded,this),Qo.onerror=zn(this._chunkError,this)),Qo.open(this._config.downloadRequestBody?"POST":"GET",this._input,!Bn),this._config.downloadRequestHeaders){var ri=this._config.downloadRequestHeaders;for(var ci in ri)Qo.setRequestHeader(ci,ri[ci])}if(this._config.chunkSize){var pi=this._start+this._config.chunkSize-1;Qo.setRequestHeader("Range","bytes="+this._start+"-"+pi)}try{Qo.send(this._config.downloadRequestBody)}catch(yi){this._chunkError(yi.message)}Bn&&Qo.status===0&&this._chunkError()}},this._chunkLoaded=function(){Qo.readyState===4&&(Qo.status<200||400<=Qo.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:Qo.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(ri){var ci=ri.getResponseHeader("Content-Range");return ci===null?-1:parseInt(ci.substring(ci.lastIndexOf("/")+1))}(Qo),this.parseChunk(Qo.responseText)))},this._chunkError=function(ri){var ci=Qo.statusText||ri;this._sendError(new Error(ci))}}function Gn(ni){var Qo,ri;(ni=ni||{}).chunkSize||(ni.chunkSize=Dn.LocalChunkSize),Wn.call(this,ni);var ci=typeof FileReader<"u";this.stream=function(pi){this._input=pi,ri=pi.slice||pi.webkitSlice||pi.mozSlice,ci?((Qo=new FileReader).onload=zn(this._chunkLoaded,this),Qo.onerror=zn(this._chunkError,this)):Qo=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var pi=this._input;if(this._config.chunkSize){var yi=Math.min(this._start+this._config.chunkSize,this._input.size);pi=ri.call(pi,this._start,yi)}var Li=Qo.readAsText(pi,this._config.encoding);ci||this._chunkLoaded({target:{result:Li}})},this._chunkLoaded=function(pi){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(pi.target.result)},this._chunkError=function(){this._sendError(Qo.error)}}function rr(ni){var Qo;Wn.call(this,ni=ni||{}),this.stream=function(ri){return Qo=ri,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var ri,ci=this._config.chunkSize;return ci?(ri=Qo.substring(0,ci),Qo=Qo.substring(ci)):(ri=Qo,Qo=""),this._finished=!Qo,this.parseChunk(ri)}}}function nr(ni){Wn.call(this,ni=ni||{});var Qo=[],ri=!0,ci=!1;this.pause=function(){Wn.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){Wn.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(pi){this._input=pi,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){ci&&Qo.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),Qo.length?this.parseChunk(Qo.shift()):ri=!0},this._streamData=zn(function(pi){try{Qo.push(typeof pi=="string"?pi:pi.toString(this._config.encoding)),ri&&(ri=!1,this._checkIsFinished(),this.parseChunk(Qo.shift()))}catch(yi){this._streamError(yi)}},this),this._streamError=zn(function(pi){this._streamCleanUp(),this._sendError(pi)},this),this._streamEnd=zn(function(){this._streamCleanUp(),ci=!0,this._streamData("")},this),this._streamCleanUp=zn(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function Yo(ni){var Qo,ri,ci,pi=Math.pow(2,53),yi=-pi,Li=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,ta=/^((\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)))$/,Yi=this,bi=0,xi=0,Ii=!1,da=!1,oa=[],Si={data:[],errors:[],meta:{}};if(Ni(ni.step)){var Mi=ni.step;ni.step=function(qi){if(Si=qi,zi())Ki();else{if(Ki(),Si.data.length===0)return;bi+=qi.data.length,ni.preview&&bi>ni.preview?ri.abort():(Si.data=Si.data[0],Mi(Si,Yi))}}}function ji(qi){return ni.skipEmptyLines==="greedy"?qi.join("").trim()==="":qi.length===1&&qi[0].length===0}function Ki(){return Si&&ci&&(ca("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+Dn.DefaultDelimiter+"'"),ci=!1),ni.skipEmptyLines&&(Si.data=Si.data.filter(function(qi){return!ji(qi)})),zi()&&function(){if(!Si)return;function qi(ya,oi){Ni(ni.transformHeader)&&(ya=ni.transformHeader(ya,oi)),oa.push(ya)}if(Array.isArray(Si.data[0])){for(var fa=0;zi()&&fa<Si.data.length;fa++)Si.data[fa].forEach(qi);Si.data.splice(0,1)}else Si.data.forEach(qi)}(),function(){if(!Si||!ni.header&&!ni.dynamicTyping&&!ni.transform)return Si;function qi(ya,oi){var si,_i=ni.header?{}:[];for(si=0;si<ya.length;si++){var Ti=si,fi=ya[si];ni.header&&(Ti=si>=oa.length?"__parsed_extra":oa[si]),ni.transform&&(fi=ni.transform(fi,Ti)),fi=ea(Ti,fi),Ti==="__parsed_extra"?(_i[Ti]=_i[Ti]||[],_i[Ti].push(fi)):_i[Ti]=fi}return ni.header&&(si>oa.length?ca("FieldMismatch","TooManyFields","Too many fields: expected "+oa.length+" fields but parsed "+si,xi+oi):si<oa.length&&ca("FieldMismatch","TooFewFields","Too few fields: expected "+oa.length+" fields but parsed "+si,xi+oi)),_i}var fa=1;return!Si.data.length||Array.isArray(Si.data[0])?(Si.data=Si.data.map(qi),fa=Si.data.length):Si.data=qi(Si.data,0),ni.header&&Si.meta&&(Si.meta.fields=oa),xi+=fa,Si}()}function zi(){return ni.header&&oa.length===0}function ea(qi,fa){return ya=qi,ni.dynamicTypingFunction&&ni.dynamicTyping[ya]===void 0&&(ni.dynamicTyping[ya]=ni.dynamicTypingFunction(ya)),(ni.dynamicTyping[ya]||ni.dynamicTyping)===!0?fa==="true"||fa==="TRUE"||fa!=="false"&&fa!=="FALSE"&&(function(oi){if(Li.test(oi)){var si=parseFloat(oi);if(yi<si&&si<pi)return!0}return!1}(fa)?parseFloat(fa):ta.test(fa)?new Date(fa):fa===""?null:fa):fa;var ya}function ca(qi,fa,ya,oi){var si={type:qi,code:fa,message:ya};oi!==void 0&&(si.row=oi),Si.errors.push(si)}this.parse=function(qi,fa,ya){var oi=ni.quoteChar||'"';if(ni.newline||(ni.newline=function(Ti,fi){Ti=Ti.substring(0,1048576);var Ei=new RegExp(ei(fi)+"([^]*?)"+ei(fi),"gm"),Fi=(Ti=Ti.replace(Ei,"")).split("\r"),Pi=Ti.split(`
`),Vi=1<Pi.length&&Pi[0].length<Fi[0].length;if(Fi.length===1||Vi)return`
`;for(var Bi=0,Wi=0;Wi<Fi.length;Wi++)Fi[Wi][0]===`
`&&Bi++;return Bi>=Fi.length/2?`\r
`:"\r"}(qi,oi)),ci=!1,ni.delimiter)Ni(ni.delimiter)&&(ni.delimiter=ni.delimiter(qi),Si.meta.delimiter=ni.delimiter);else{var si=function(Ti,fi,Ei,Fi,Pi){var Vi,Bi,Wi,Hi;Pi=Pi||[","," ","|",";",Dn.RECORD_SEP,Dn.UNIT_SEP];for(var Ji=0;Ji<Pi.length;Ji++){var Ui=Pi[Ji],ia=0,va=0,ha=0;Wi=void 0;for(var Ca=new ti({comments:Fi,delimiter:Ui,newline:fi,preview:10}).parse(Ti),Aa=0;Aa<Ca.data.length;Aa++)if(Ei&&ji(Ca.data[Aa]))ha++;else{var Oa=Ca.data[Aa].length;va+=Oa,Wi!==void 0?0<Oa&&(ia+=Math.abs(Oa-Wi),Wi=Oa):Wi=Oa}0<Ca.data.length&&(va/=Ca.data.length-ha),(Bi===void 0||ia<=Bi)&&(Hi===void 0||Hi<va)&&1.99<va&&(Bi=ia,Vi=Ui,Hi=va)}return{successful:!!(ni.delimiter=Vi),bestDelimiter:Vi}}(qi,ni.newline,ni.skipEmptyLines,ni.comments,ni.delimitersToGuess);si.successful?ni.delimiter=si.bestDelimiter:(ci=!0,ni.delimiter=Dn.DefaultDelimiter),Si.meta.delimiter=ni.delimiter}var _i=vi(ni);return ni.preview&&ni.header&&_i.preview++,Qo=qi,ri=new ti(_i),Si=ri.parse(Qo,fa,ya),Ki(),Ii?{meta:{paused:!0}}:Si||{meta:{paused:!1}}},this.paused=function(){return Ii},this.pause=function(){Ii=!0,ri.abort(),Qo=Ni(ni.chunk)?"":Qo.substring(ri.getCharIndex())},this.resume=function(){Yi.streamer._halted?(Ii=!1,Yi.streamer.parseChunk(Qo,!0)):setTimeout(Yi.resume,3)},this.aborted=function(){return da},this.abort=function(){da=!0,ri.abort(),Si.meta.aborted=!0,Ni(ni.complete)&&ni.complete(Si),Qo=""}}function ei(ni){return ni.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ti(ni){var Qo,ri=(ni=ni||{}).delimiter,ci=ni.newline,pi=ni.comments,yi=ni.step,Li=ni.preview,ta=ni.fastMode,Yi=Qo=ni.quoteChar===void 0||ni.quoteChar===null?'"':ni.quoteChar;if(ni.escapeChar!==void 0&&(Yi=ni.escapeChar),(typeof ri!="string"||-1<Dn.BAD_DELIMITERS.indexOf(ri))&&(ri=","),pi===ri)throw new Error("Comment character same as delimiter");pi===!0?pi="#":(typeof pi!="string"||-1<Dn.BAD_DELIMITERS.indexOf(pi))&&(pi=!1),ci!==`
`&&ci!=="\r"&&ci!==`\r
`&&(ci=`
`);var bi=0,xi=!1;this.parse=function(Ii,da,oa){if(typeof Ii!="string")throw new Error("Input must be a string");var Si=Ii.length,Mi=ri.length,ji=ci.length,Ki=pi.length,zi=Ni(yi),ea=[],ca=[],qi=[],fa=bi=0;if(!Ii)return xa();if(ni.header&&!da){var ya=Ii.split(ci)[0].split(ri),oi=[],si={},_i=!1;for(var Ti in ya){var fi=ya[Ti];Ni(ni.transformHeader)&&(fi=ni.transformHeader(fi,Ti));var Ei=fi,Fi=si[fi]||0;for(0<Fi&&(_i=!0,Ei=fi+"_"+Fi),si[fi]=Fi+1;oi.includes(Ei);)Ei=Ei+"_"+Fi;oi.push(Ei)}if(_i){var Pi=Ii.split(ci);Pi[0]=oi.join(ri),Ii=Pi.join(ci)}}if(ta||ta!==!1&&Ii.indexOf(Qo)===-1){for(var Vi=Ii.split(ci),Bi=0;Bi<Vi.length;Bi++){if(qi=Vi[Bi],bi+=qi.length,Bi!==Vi.length-1)bi+=ci.length;else if(oa)return xa();if(!pi||qi.substring(0,Ki)!==pi){if(zi){if(ea=[],ha(qi.split(ri)),Pa(),xi)return xa()}else ha(qi.split(ri));if(Li&&Li<=Bi)return ea=ea.slice(0,Li),xa(!0)}}return xa()}for(var Wi=Ii.indexOf(ri,bi),Hi=Ii.indexOf(ci,bi),Ji=new RegExp(ei(Yi)+ei(Qo),"g"),Ui=Ii.indexOf(Qo,bi);;)if(Ii[bi]!==Qo)if(pi&&qi.length===0&&Ii.substring(bi,bi+Ki)===pi){if(Hi===-1)return xa();bi=Hi+ji,Hi=Ii.indexOf(ci,bi),Wi=Ii.indexOf(ri,bi)}else if(Wi!==-1&&(Wi<Hi||Hi===-1))qi.push(Ii.substring(bi,Wi)),bi=Wi+Mi,Wi=Ii.indexOf(ri,bi);else{if(Hi===-1)break;if(qi.push(Ii.substring(bi,Hi)),Oa(Hi+ji),zi&&(Pa(),xi))return xa();if(Li&&ea.length>=Li)return xa(!0)}else for(Ui=bi,bi++;;){if((Ui=Ii.indexOf(Qo,Ui+1))===-1)return oa||ca.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:ea.length,index:bi}),Aa();if(Ui===Si-1)return Aa(Ii.substring(bi,Ui).replace(Ji,Qo));if(Qo!==Yi||Ii[Ui+1]!==Yi){if(Qo===Yi||Ui===0||Ii[Ui-1]!==Yi){Wi!==-1&&Wi<Ui+1&&(Wi=Ii.indexOf(ri,Ui+1)),Hi!==-1&&Hi<Ui+1&&(Hi=Ii.indexOf(ci,Ui+1));var ia=Ca(Hi===-1?Wi:Math.min(Wi,Hi));if(Ii.substr(Ui+1+ia,Mi)===ri){qi.push(Ii.substring(bi,Ui).replace(Ji,Qo)),Ii[bi=Ui+1+ia+Mi]!==Qo&&(Ui=Ii.indexOf(Qo,bi)),Wi=Ii.indexOf(ri,bi),Hi=Ii.indexOf(ci,bi);break}var va=Ca(Hi);if(Ii.substring(Ui+1+va,Ui+1+va+ji)===ci){if(qi.push(Ii.substring(bi,Ui).replace(Ji,Qo)),Oa(Ui+1+va+ji),Wi=Ii.indexOf(ri,bi),Ui=Ii.indexOf(Qo,bi),zi&&(Pa(),xi))return xa();if(Li&&ea.length>=Li)return xa(!0);break}ca.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:ea.length,index:bi}),Ui++}}else Ui++}return Aa();function ha(wi){ea.push(wi),fa=bi}function Ca(wi){var Xi=0;if(wi!==-1){var Qi=Ii.substring(Ui+1,wi);Qi&&Qi.trim()===""&&(Xi=Qi.length)}return Xi}function Aa(wi){return oa||(wi===void 0&&(wi=Ii.substring(bi)),qi.push(wi),bi=Si,ha(qi),zi&&Pa()),xa()}function Oa(wi){bi=wi,ha(qi),qi=[],Hi=Ii.indexOf(ci,bi)}function xa(wi){return{data:ea,errors:ca,meta:{delimiter:ri,linebreak:ci,aborted:xi,truncated:!!wi,cursor:fa+(da||0)}}}function Pa(){yi(xa()),ea=[],ca=[]}},this.abort=function(){xi=!0},this.getCharIndex=function(){return bi}}function ui(ni){var Qo=ni.data,ri=In[Qo.workerId],ci=!1;if(Qo.error)ri.userError(Qo.error,Qo.file);else if(Qo.results&&Qo.results.data){var pi={abort:function(){ci=!0,mi(Qo.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:Xo,resume:Xo};if(Ni(ri.userStep)){for(var yi=0;yi<Qo.results.data.length&&(ri.userStep({data:Qo.results.data[yi],errors:Qo.results.errors,meta:Qo.results.meta},pi),!ci);yi++);delete Qo.results}else Ni(ri.userChunk)&&(ri.userChunk(Qo.results,pi,Qo.file),delete Qo.results)}Qo.finished&&!ci&&mi(Qo.workerId,Qo.results)}function mi(ni,Qo){var ri=In[ni];Ni(ri.userComplete)&&ri.userComplete(Qo),ri.terminate(),delete In[ni]}function Xo(){throw new Error("Not implemented.")}function vi(ni){if(typeof ni!="object"||ni===null)return ni;var Qo=Array.isArray(ni)?[]:{};for(var ri in ni)Qo[ri]=vi(ni[ri]);return Qo}function zn(ni,Qo){return function(){ni.apply(Qo,arguments)}}function Ni(ni){return typeof ni=="function"}return Ln&&(Nn.onmessage=function(ni){var Qo=ni.data;if(Dn.WORKER_ID===void 0&&Qo&&(Dn.WORKER_ID=Qo.workerId),typeof Qo.input=="string")Nn.postMessage({workerId:Dn.WORKER_ID,results:Dn.parse(Qo.input,Qo.config),finished:!0});else if(Nn.File&&Qo.input instanceof File||Qo.input instanceof Object){var ri=Dn.parse(Qo.input,Qo.config);ri&&Nn.postMessage({workerId:Dn.WORKER_ID,results:ri,finished:!0})}}),(Xn.prototype=Object.create(Wn.prototype)).constructor=Xn,(Gn.prototype=Object.create(Wn.prototype)).constructor=Gn,(rr.prototype=Object.create(rr.prototype)).constructor=rr,(nr.prototype=Object.create(Wn.prototype)).constructor=nr,Dn})})(papaparse_min);var papaparse_minExports=papaparse_min.exports;const Papa=getDefaultExportFromCjs(papaparse_minExports),LanguageMixin={props:{languageCode:{type:String,default:"en_US"},languages:{type:Object,default:()=>{}},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}},computed:{langName(){for(const _n in this.languages){const Cn=this.languages[_n];if(Cn.code===this.languageCode)return Cn.name}return item.name}},methods:{getLang(_n){return common$1.getLang(_n,this.languageCode,this.languages)},replaceGlobals(_n){return common$1.replaceGlobals(_n,this.languageCode)},getCSV(_n=null,Cn=!1){return window.tagCompleteFileCache=window.tagCompleteFileCache||{},window.tagCompleteFileLoading=window.tagCompleteFileLoading||{},new Promise(($n,Nn)=>{if(_n=_n||this.tagCompleteFile,!Cn&&window.tagCompleteFileCache[_n]){$n(window.tagCompleteFileCache[_n]);return}if(window.tagCompleteFileLoading[_n]){const In=setInterval(()=>{window.tagCompleteFileLoading[_n]||(clearInterval(In),$n(window.tagCompleteFileCache[_n]))},100);return}window.tagCompleteFileLoading[_n]=!0;let Bn={toEn:new Map,toLocal:new Map},Ln=(In,Pn)=>{[In,In.replace(/\_/g," "),In.replace(/\-/g," ")].forEach(Hn=>Bn.toLocal.set(Hn,Pn)),Bn.toEn.set(Pn,In)};if(!_n&&typeof translations=="object"&&translations instanceof Map){translations.forEach((In,Pn)=>{Ln(Pn,In)}),window.tagCompleteFileLoading[_n]=!1,window.tagCompleteFileCache[_n]=Bn,$n(Bn);return}if(!_n){window.tagCompleteFileLoading[_n]=!1,window.tagCompleteFileCache[_n]=Bn,Nn(this.getLang("not_found_csv_file"));return}this.gradioAPI.getCSV(_n).then(In=>{In=Papa.parse(In,{header:!1,skipEmptyLines:!0}),In.data.forEach(Pn=>{if(Pn.length<2)return;let Dn=Pn[0].trim(),Hn=Pn[1].trim();Dn===""||Hn===""||Ln(Dn,Hn)}),window.tagCompleteFileLoading[_n]=!1,window.tagCompleteFileCache[_n]=Bn,$n(Bn)}).catch(In=>{window.tagCompleteFileLoading[_n]=!1,window.tagCompleteFileCache[_n]=Bn,In.response&&In.response.status===404?Nn(this.getLang("not_found_csv_file")):Nn(In.message)})})},_translateToLocalBy(_n,Cn,$n=!1){_n=_n.trim().toLowerCase();let Nn=Bn=>{var Ln;return((Ln=Bn.join)==null?void 0:Ln.call(Bn," / "))??Bn};if(Cn.has(_n))return Nn(Cn.get(_n));{const Bn=_n.split(",").map(Pn=>Pn.trim());let Ln=[],In=[];if(Bn.forEach(Pn=>{Cn.has(Pn)?Ln.push(Nn(Cn.get(Pn))):$n&&Pn.length&&In.push(Pn)}),Ln.length>0&&!In.length)return Ln.join(", ")}return""},async translateToLocalByCSV(_n,Cn=null,$n=!1,Nn=!1){let Bn=await this.getCSV(Cn,$n);return this._translateToLocalBy(_n,Bn.toLocal,Nn)},async translateToEnByCSV(_n,Cn=null,$n=!1){let Nn=await this.getCSV(Cn,$n);return this._toEn(_n,Nn.toEn)},async translateToLocalByGroupTags(_n,Cn=!1){return console.log("translateToLocalByGroupTags",_n),this._translateToLocalBy(_n,this.groupTagsTranslateCache.toLocal,Cn)},async translateToEnByGroupTags(_n){return this._toEn(_n,this.groupTagsTranslateCache.toEn)},_toEn(_n,Cn){return _n=_n.trim().toLowerCase(),Cn.has(_n)?Cn.get(_n):""}}},isNaN$1=Number.isNaN||window.isNaN,REGEXP_NUMBER=/^-?(?:\d+|\d+\.\d+|\.\d+)(?:[eE][-+]?\d+)?$/,REGEXP_DECIMALS=/\.\d*(?:0|9){10}\d*$/,normalizeDecimalNumber=(_n,Cn=1e11)=>REGEXP_DECIMALS.test(String(_n))?Math.round(_n*Cn)/Cn:_n,_sfc_main$g=defineComponent({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 isNaN$1(this.value)||this.value<this.max},decreasable(){return isNaN$1(this.value)||this.value>this.min}},watch:{modelValue:{immediate:!0,handler(_n,Cn){!(isNaN$1(_n)&&typeof Cn>"u")&&_n!==this.value&&this.setValue(_n)}}},methods:{isNaN:isNaN$1,change(_n){this.setValue(_n.target.value)},paste(_n){const Cn=_n.clipboardData||window.clipboardData;Cn&&!REGEXP_NUMBER.test(Cn.getData("text"))&&_n.preventDefault()},decrease(){if(this.decreasable){let{value:_n}=this;isNaN$1(_n)&&(_n=0),this.setValue(normalizeDecimalNumber(_n-this.step))}},increase(){if(this.increasable){let{value:_n}=this;isNaN$1(_n)&&(_n=0),this.setValue(normalizeDecimalNumber(_n+this.step))}},setValue(_n){const Cn=this.value;let $n=typeof _n!="number"?parseFloat(_n):_n;isNaN$1($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===Cn&&(this.$refs.input.value=String($n)),this.$emit("update:modelValue",$n,Cn)}}}),_export_sfc=(_n,Cn)=>{const $n=_n.__vccOpts||_n;for(const[Nn,Bn]of Cn)$n[Nn]=Bn;return $n},_hoisted_1$f=["disabled"],_hoisted_2$d=["name","value","min","max","step","readonly","disabled","placeholder"],_hoisted_3$d=["disabled"];function _sfc_render$g(_n,Cn,$n,Nn,Bn,Ln){return openBlock(),createElementBlock("div",{class:normalizeClass(["vue-number-input",{"vue-number-input--inline":_n.inline,"vue-number-input--center":_n.center,"vue-number-input--controls":_n.controls,[`vue-number-input--${_n.size}`]:_n.size}])},[_n.controls?(openBlock(),createElementBlock("button",{key:0,class:"vue-number-input__button vue-number-input__button--minus",type:"button",tabindex:"-1",disabled:_n.disabled||_n.readonly||!_n.decreasable,onClick:Cn[0]||(Cn[0]=withModifiers((...In)=>_n.decrease&&_n.decrease(...In),["prevent"]))},null,8,_hoisted_1$f)):createCommentVNode("",!0),createBaseVNode("input",mergeProps({ref:"input",class:"vue-number-input__input"},_n.attrs,{type:"number",name:_n.name,value:isNaN(_n.value)?"":_n.value,min:_n.min,max:_n.max,step:_n.step,readonly:_n.readonly||!_n.inputtable,disabled:_n.disabled||!_n.decreasable&&!_n.increasable,placeholder:_n.placeholder,autocomplete:"off",onChange:Cn[1]||(Cn[1]=(...In)=>_n.change&&_n.change(...In)),onPaste:Cn[2]||(Cn[2]=(...In)=>_n.paste&&_n.paste(...In))}),null,16,_hoisted_2$d),_n.controls?(openBlock(),createElementBlock("button",{key:1,class:"vue-number-input__button vue-number-input__button--plus",type:"button",tabindex:"-1",disabled:_n.disabled||_n.readonly||!_n.increasable,onClick:Cn[3]||(Cn[3]=withModifiers((...In)=>_n.increase&&_n.increase(...In),["prevent"]))},null,8,_hoisted_3$d)):createCommentVNode("",!0)],2)}const VueNumberInput=_export_sfc(_sfc_main$g,[["render",_sfc_render$g]]),HeaderMixin={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(Cn=>{Cn.neg===this.neg&&this.appendList.push({type:"favorite",name:["favorite",Cn.name],icon:"favorite",key:Cn.key,dataKey:"favorite."+Cn.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 _n=[];for(const Cn in this.tags)this.tags[Cn].type&&this.tags[Cn].type!=="text"||_n.push(Cn);return this.translates(_n,!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 _n=[];for(const Cn in this.tags)this.tags[Cn].type&&this.tags[Cn].type!=="text"||_n.push(Cn);this.translates(_n,!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())},onClickLoadWebuiPrompt(){this.onTextareaChange(!0)},appendListItemName(_n){let Cn=[];if(typeof _n.name=="object")for(let $n of _n.name)Cn.push(this.getLang($n));else Cn=[this.getLang(_n.name)];return Cn.join(" / ")},onAppendTagFocus(_n){if(this.$refs.promptTagAppend.value===""||this.$refs.promptTagAppend.value.trim()===""){this.appendListStyle={top:_n.target.offsetTop+_n.target.offsetHeight+"px",left:_n.target.offsetLeft+"px"},this.appendListSelected=null,this.appendListChildSelected=null,this.showAppendList=!0;let Cn=[];this.appendList.forEach($n=>{typeof $n.dataKey=="string"&&Cn.push($n.dataKey)}),this.gradioAPI.getDatas(Cn).then($n=>{this.appendList.forEach(Nn=>{typeof Nn.dataKey=="string"&&(Nn.children=$n[Nn.dataKey]||[],Nn.children.reverse())})})}this._setTextareaFocus()},onAppendTagBlur(_n){setTimeout(()=>{this.showAppendList=!1},300)},selectAppendList(_n=!0){this.appendList.length!==0&&(this.appendListSelected===null?this.appendListSelected=0:_n?(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(_n=!0){this.appendList.length!==0&&this.appendListSelected!==null&&this.appendList[this.appendListSelected].children.length!==0&&(this.appendListChildSelected===null?this.appendListChildSelected=0:_n?(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(_n,Cn=null){if(!(_n.keyCode===38||_n.keyCode===40))if(_n.keyCode===13){if(this.getAutocompleteResults()&&(this.autocompleteResultsParent&&this.autocompleteResultsParent.style.display==="flex"||this.autocompleteResults.style.display==="none")&&this.getAutocompleteResultsSelected()){let Nn=this.getAutocompleteResultsSelectedText();setTimeout(()=>{Cn=this.$refs.promptTagAppend.value,Nn?Cn=Nn:(Nn=this.getAutocompleteResultsSelectedText(),Nn&&(Cn=Nn)),this.onAppendTagKeyDown(_n,Cn)},300);return}let $n=this.$refs.promptTagAppend.value;if(this.$refs.promptTagAppend.value="",this.showAppendList=!0,console.log($n,Cn),Cn)$n=$n.replace(/\s*,\s*$/,"").trim(),common$1.hasBrackets($n)&&($n=common$1.replaceBrackets($n)),this._appendTag($n,Cn),this.updateTags();else{common$1.hasBrackets($n)?($n=common$1.replaceBrackets($n),$n=[$n]):$n=common$1.splitTags($n,this.autoBreakBeforeWrap,this.autoBreakAfterWrap);let Nn=[];$n.forEach(Bn=>{let Ln=-1;Bn===`
`?Ln=this._appendTag(`
`,`
`,!1,-1,"wrap"):Ln=this._appendTag(Bn),Ln!==-1&&Nn.push(Ln)}),this.autoTranslateByIndexes(Nn)}}else this.removeAutocompleteResultsSelected()},autoTranslateByIndexes(_n){this.updatePrompt(),this.autoTranslateToEnglish||this.autoTranslateToLocal?this.$nextTick(()=>{let Cn=!(this.tagCompleteFile&&this.onlyCsvOnAuto);this.autoTranslateToEnglish?this.translates(_n,!1,Cn).finally(()=>{this.updateTags()}):this.autoTranslateToLocal&&this.translates(_n,!0,Cn).finally(()=>{this.updateTags()})}):this.updateTags()},onAppendTagKeyUp(_n){this.$refs.promptTagAppend.value===""||this.$refs.promptTagAppend.value.trim()===""?(this.$refs.promptTagAppend.value="",this.showAppendList=!0,_n.keyCode===38||_n.keyCode===40?this.appendListChildSelected===null?this.selectAppendList(_n.keyCode===40):this.selectAppendListChild(_n.keyCode===40):_n.keyCode===37||_n.keyCode===39?this.appendListSelected!==null&&(_n.keyCode===37?(this.appendListChildSelected=null,this.scrollAppendListChild()):this.appendList[this.appendListSelected].children.length===0?this.appendListChildSelected=null:(this.appendListChildSelected=0,this.scrollAppendListChild())):_n.keyCode===13&&(this._appendTagByList(),this.scrollAppendListChild(),this.appendListSelected=null,this.appendListChildSelected=null)):this.showAppendList=!1},onAppendGroupClick(_n,Cn,$n){if(_n!==null){if(this.appendListSelected=_n,Cn===null){if(this.appendList[this.appendListSelected].children.length>0)return}else this.appendListChildSelected=Cn;this._appendTagByList()}},onAppendListChildMouseLeave(_n,Cn,$n){this.appendListSelected=null,this.appendListChildSelected=null},onAppendListChildMouseEnter(_n,Cn,$n){this.appendListSelected=_n,this.appendListChildSelected=Cn},_appendTagByList(){if(this.appendListSelected===null)return;const _n=this.appendList[this.appendListSelected];let Cn=null;_n.children.length>0&&this.appendListChildSelected!==null&&(Cn=_n.children[this.appendListChildSelected]);let $n=[];switch(_n.type){case"wrap":$n.push({value:`
`,localValue:`
`,disabled:!1,type:"wrap"});break;case"lora":break;case"favorite":case"history":Cn&&Cn.tags.forEach(Nn=>{$n.push({value:Nn.value,localValue:Nn.localValue,disabled:Nn.disabled,type:Nn.type||"text"})});break}$n.length<=0||($n.forEach(Nn=>{this._appendTag(Nn.value,Nn.localValue,Nn.disabled,-1,Nn.type)}),this.updateTags())},getAutocompleteResults(){if(!this.autocompleteResults){const _n=this.$refs.promptTagAppend.parentElement.querySelector(".autocompleteResults");if(_n){this.autocompleteResults=_n,this.autocompleteResults.getAttribute("data-mousemove")!=="true"&&(this.autocompleteResults.setAttribute("data-mousemove","true"),this.autocompleteResults.addEventListener("mousemove",$n=>{this.bindAutocompleteResultsClick()}));const Cn=this.$refs.promptTagAppend.parentElement.querySelector(".autocompleteParent");Cn&&(this.autocompleteResultsParent=Cn)}}return this.autocompleteResults},removeAutocompleteResultsSelected(){const _n=this.getAutocompleteResults();return _n?(_n.querySelectorAll("li").forEach(Cn=>{Cn.classList.remove("selected")}),!0):!1},getAutocompleteResultsSelected(){const _n=this.getAutocompleteResults();if(!_n)return null;const Cn=_n.querySelector("li.selected");return Cn||null},getAutocompleteResultsSelectedText(_n=null){if(!_n&&(_n=this.getAutocompleteResultsSelected(),!_n))return null;const Nn=_n.querySelector(".acListItem").innerText.match(/\[(.+?)\]/);return Nn?Nn[1]:null},bindAutocompleteResultsClick(){if(this.getAutocompleteResults(),!this.autocompleteResults)return;this.autocompleteResults.querySelectorAll("li").forEach(Cn=>{Cn.getAttribute("physton-on-clicked")!=="true"&&(Cn.setAttribute("physton-on-clicked","true"),Cn.addEventListener("click",()=>{this.onAutocompleteResultsClicked(Cn)}))})},onAutocompleteResultsClicked(_n){const Cn=this.getAutocompleteResultsSelectedText(_n);setTimeout(()=>{let $n=this.$refs.promptTagAppend.value.replace(/,\s*$/,"");this.$refs.promptTagAppend.value="",$n=$n.replace(/\s*,\s*$/,"").trim(),common$1.hasBrackets($n)&&($n=common$1.replaceBrackets($n)),this._appendTag($n,Cn),this.updateTags()},300)},onSettingBoxMouseEnter(){this.favorites=typeof window.phystonPromptfavorites=="object"?window.phystonPromptfavorites:[]},getCurrentTypeFavorites(){this.favorites=typeof window.phystonPromptfavorites=="object"?window.phystonPromptfavorites:[];let _n=[];return this.favorites.forEach(Cn=>{if(this.neg){if(Cn.type!=="negative_prompt")return}else if(Cn.type!=="prompt")return;_n.push(Cn)}),_n},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(_n=>{if(_n!==null)if(this.autoInputPrompt=_n,this.autoInputPrompt==="last")this.gradioAPI.getLatestHistory(this.historyKey).then(Cn=>{this.useHistory(Cn)});else{const Cn=()=>{if(typeof window.phystonPromptfavorites=="object"&&window.phystonPromptfavorites.length>0){for(let $n of window.phystonPromptfavorites)for(let Nn of $n.list)if(Nn.id===this.autoInputPrompt){this.useFavorite(Nn);return}return}setTimeout(Cn,100)};setTimeout(Cn,100)}})}}},DropMixin={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 _n=0;_n<this.$refs.promptTagsList.children.length;_n++){let Cn=this.$refs.promptTagsList.children[_n];Cn.style.display==="none"&&(Cn.style.display=""),Cn.classList.remove("drop-selected")}},onDropMouseDown(_n){this.droping||(this._dropOver(),this.dropOffsetX=_n.clientX-_n.layerX,this.dropOffsetY=_n.clientY-_n.layerY,this.dropStartX=_n.clientX-this.dropOffsetX,this.dropStartY=_n.clientY-this.dropOffsetY,this.dropEndX=_n.clientX-this.dropOffsetX,this.dropEndY=_n.clientY-this.dropOffsetY,this.dropIsStart=!0)},onDropMouseMove(_n){if(this.dropIsStart){this.dropIsSelecting=!0,this.dropEndX=_n.clientX-this.dropOffsetX,this.dropEndY=_n.clientY-this.dropOffsetY;let Cn=Math.min(this.dropStartX,this.dropEndX),$n=Math.min(this.dropStartY,this.dropEndY),Nn=Math.abs(this.dropStartX-this.dropEndX),Bn=Math.abs(this.dropStartY-this.dropEndY);Cn=Math.max(Cn,0),$n=Math.max($n,0),Nn=Math.min(Nn,this.$refs.promptTags.clientWidth-Cn),Bn=Math.min(Bn,this.$refs.promptTags.clientHeight-$n),this.dropArea.top=$n,this.dropArea.left=Cn,this.dropArea.width=Nn,this.dropArea.height=Bn,this.dropTimeId&&clearTimeout(this.dropTimeId),this.dropTimeId=setTimeout(this.dropSelectItems,10)}this.$emit("hideExtraNetworks")},dropSelectItems(){this.dropTimeId&&clearTimeout(this.dropTimeId);let _n=[];for(let Cn=0;Cn<this.$refs.promptTagsList.children.length;Cn++){let $n=this.$refs.promptTagsList.children[Cn];if(!$n.classList.contains("prompt-tag"))continue;let Nn=$n.offsetLeft,Bn=$n.offsetTop,Ln=$n.clientWidth,In=$n.clientHeight,Pn=Nn+Ln,Dn=Bn+In;!(Pn<this.dropArea.left||Dn<this.dropArea.top||Nn>this.dropArea.left+this.dropArea.width||Bn>this.dropArea.top+this.dropArea.height)?(_n.push($n.getAttribute("data-id")),$n.classList.add("drop-selected")):$n.classList.remove("drop-selected"),this.dropTags=_n}},onDropMouseUp(_n){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 _n=[];return this.dropTags.forEach(Cn=>{let $n=this.tags.find(Nn=>Nn.id===Cn);$n&&_n.push($n)}),_n},_getDropIndexes(){let _n=[];return this.dropTags.forEach(Cn=>{let $n=this.tags.findIndex(Nn=>Nn.id===Cn);$n!==-1&&_n.push($n)}),_n},_getDropTagsEle(){let _n=[];return this.dropTags.forEach(Cn=>{let $n=this.$refs.promptTagsList.querySelector(`.prompt-tag[data-id="${Cn}"]`);$n&&_n.push($n)}),_n},onDropCopy(){let _n=this._getDropTags();this._dropOver();let Cn=this.genPrompt(_n,!0);this.copy(Cn)},onDropFavorite(){let _n=this._getDropTags();this._dropOver();let Cn=this.genPrompt(_n,!0);this.gradioAPI.pushFavorite(this.favoriteKey,_n,Cn,"").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 _n=this._getDropTags();this._dropOver(),_n.forEach(Cn=>{Cn.disabled=!0}),this.updateTags()},onDropEnable(){let _n=this._getDropTags();this._dropOver(),_n.forEach(Cn=>{Cn.disabled=!1}),this.updateTags()},onDropDelete(){let _n=this._getDropIndexes();this._dropOver(),_n.sort((Cn,$n)=>$n-Cn),_n.forEach(Cn=>{this.tags.splice(Cn,1)}),this.updateTags()}}};var GHOST_ELEMENT_ID="__autosizeInputGhost",characterEntities={" ":"nbsp","<":"lt",">":"gt"};function mapSpecialCharacterToCharacterEntity(_n){return"&"+characterEntities[_n]+";"}function escapeSpecialCharacters(_n){return _n.replace(/\s|<|>/g,mapSpecialCharacterToCharacterEntity)}function createGhostElement(){var _n=document.createElement("div");return _n.id=GHOST_ELEMENT_ID,_n.style.cssText="display:inline-block;height:0;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:nowrap;",document.body.appendChild(_n),_n}var autosizeInput=function(_n,Cn){var $n=window.getComputedStyle(_n),Nn="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 Bn(){var In=_n.value||_n.getAttribute("placeholder")||"",Pn=document.getElementById(GHOST_ELEMENT_ID)||createGhostElement();Pn.style.cssText+=Nn,Pn.innerHTML=escapeSpecialCharacters(In);var Dn=window.getComputedStyle(Pn).width;return _n.style.width=Dn,Dn}_n.addEventListener("input",Bn);var Ln=Bn();return Cn&&Cn.minWidth&&Ln!=="0px"&&(_n.style.minWidth=Ln),function(){_n.removeEventListener("input",Bn);var In=document.getElementById(GHOST_ELEMENT_ID);In&&In.parentNode.removeChild(In)}};const autoSizeInput=getDefaultExportFromCjs(autosizeInput),TagMixin={data(){return{tagClickTimeId:0,showExtendId:""}},mounted(){},methods:{_setTag(_n){if(typeof _n.type=="string"&&_n.type==="wrap")_n.weightNum=1,_n.incWeight=0,_n.decWeight=0;else if(_n.weightNum=common$1.getTagWeightNum(_n.value),_n.incWeight=common$1.getTagIncWeight(_n.value,this.useNovelAiWeightSymbol),_n.decWeight=common$1.getTagDecWeight(_n.value),_n.originalValue=_n.value,!_n.value.match(common$1.loraRegex)&&!_n.value.match(common$1.lycoRegex)){let Cn=_n.value;const $n=common$1.hasBrackets(Cn);($n[0]==="("&&$n[1]===")"||$n[0]==="["&&$n[1]==="]"||this.useNovelAiWeightSymbol&&$n[0]==="{"&&$n[1]==="}")&&(Cn=common$1.setLayers(Cn,0,$n[0],$n[1]),_n.originalValue=Cn.replace(common$1.weightNumRegex,"$1"))}this._setTagClass(_n),this.$nextTick(()=>{this._setTagHeight(_n)})},_setTagHeight(_n){let Cn=10,$n=setInterval(()=>{if(Cn--,Cn<=0&&clearInterval($n),!this.$refs["promptTagValue-"+_n.id]||!this.$refs["promptTagValue-"+_n.id][0])return!1;clearInterval($n);let Nn=this.$refs["promptTagValue-"+_n.id][0],Bn=Nn.offsetHeight;Nn.parentNode.style.height=Bn+"px",this.$refs["promptTagEdit-"+_n.id]&&(this.$refs["promptTagEdit-"+_n.id][0].style.height=Bn+"px"),this.$refs["promptTagDelete-"+_n.id]&&(this.$refs["promptTagDelete-"+_n.id][0].style.height=Bn+"px")},50)},_getTagType(_n){},_setTagClass(_n){if(_n.isLora=!1,_n.loraExists=!1,_n.isLyco=!1,_n.lycoExists=!1,_n.isEmbedding=!1,!(typeof _n.type=="string"&&_n.type==="wrap")){const $n=_n.value.match(common$1.loraRegex);if($n&&(_n.isLora=!0,_n.loraName=$n[1],this.loraExists($n[1])!==!1&&(_n.loraExists=!0)),!_n.isLora){const Nn=_n.value.match(common$1.lycoRegex);Nn&&(_n.isLyco=!0,_n.lycoName=Nn[1],this.lycoExists(Nn[1])!==!1&&(_n.lycoExists=!0))}if(!_n.isLora&&!_n.isLyco){const Nn=this.embeddingExists(_n.value);if(Nn!==!1)_n.isEmbedding=!0,_n.value=Nn,_n.embeddingName=Nn;else{const Bn=this.embeddingExists(_n.originalValue);Bn!==!1&&(_n.isEmbedding=!0,_n.embeddingName=Bn)}}}let Cn=["prompt-tag-value"];return _n.isLora?(Cn.push("lora-tag"),_n.loraExists||Cn.push("lora-not-exists")):_n.isLyco?(Cn.push("lyco-tag"),_n.lycoExists||Cn.push("lyco-not-exists")):_n.isEmbedding?Cn.push("embedding-tag"):this.neg&&Cn.push("neg-tag"),_n.classes=Cn,Cn},_setTagById(_n,Cn=null,$n=null){let Nn=this.tags.find(Bn=>Bn.id===_n);return Nn?(Cn!==null&&(Nn.value=Cn),$n!==null&&(Nn.localValue=$n),Nn):!1},_isTagBlacklist(_n){var Cn,$n,Nn,Bn,Ln;if(typeof _n.type=="string"&&_n.type==="wrap")return!1;if(_n.isLora){if((Cn=this.blacklist.lora)!=null&&Cn.includes(_n.loraName.toLowerCase()))return!0}else if(_n.isLyco){if(($n=this.blacklist.lycoris)!=null&&$n.includes(_n.lycoName.toLowerCase()))return!0}else if(_n.isEmbedding){if((Nn=this.blacklist.embedding)!=null&&Nn.includes(_n.embeddingName.toLowerCase()))return!0}else if(this.neg){if((Bn=this.blacklist.negative_prompt)!=null&&Bn.includes(_n.originalValue.toLowerCase()))return!0}else if((Ln=this.blacklist.prompt)!=null&&Ln.includes(_n.originalValue.toLowerCase()))return!0;return!1},_appendTag(_n,Cn="",$n=!1,Nn=-1,Bn="text"){if(_n==="")return-1;const Ln=Date.now()+(Math.random()*1e6).toFixed(0);let In={id:Ln,value:_n==null||_n===!1?"":_n,localValue:Cn==null||Cn===!1?"":Cn,disabled:$n,type:Bn};return this._setTag(In),this._isTagBlacklist(In)?-1:(Nn>=0?this.tags.splice(Nn,0,In):Nn=this.tags.push(In),this.$nextTick(()=>{this.$refs["promptTagEdit-"+Ln]&&autoSizeInput(this.$refs["promptTagEdit-"+Ln][0])}),Nn-1)},renderTag(_n){let Cn=this.tags.find(Nn=>Nn.id===_n);if(!Cn)return"";let $n=Cn.value;if($n==="BREAK"&&(this.autoBreakBeforeWrap||this.autoBreakAfterWrap))$n='<div class="break-character">---------------------</div> <div class="character">BREAK</div> <div class="break-character">---------------------</div>';else if($n=common$1.escapeHtml($n),Cn.incWeight>0)if(this.useNovelAiWeightSymbol){$n=common$1.setLayers($n,0,"{","}"),$n='<div class="character">'+$n+"</div>";let Nn='<div class="weight-character">'+"{".repeat(Cn.incWeight)+"</div>",Bn='<div class="weight-character">'+"}".repeat(Cn.incWeight)+"</div>";$n=Nn+$n+Bn}else{$n=common$1.setLayers($n,0,"(",")"),$n='<div class="character">'+$n+"</div>";let Nn='<div class="weight-character">'+"(".repeat(Cn.incWeight)+"</div>",Bn='<div class="weight-character">'+")".repeat(Cn.incWeight)+"</div>";$n=Nn+$n+Bn}else if(Cn.decWeight>0){$n=common$1.setLayers($n,0,"[","]"),$n='<div class="character">'+$n+"</div>";let Nn='<div class="weight-character">'+"[".repeat(Cn.decWeight)+"</div>",Bn='<div class="weight-character">'+"]".repeat(Cn.decWeight)+"</div>";$n=Nn+$n+Bn}else $n='<div class="character">'+$n+"</div>";return $n},isFavorite(_n){let Cn=this.tags.find($n=>$n.id===_n);if(!Cn)return!1;if(typeof window.phystonPromptfavorites=="object"){for(const $n of window.phystonPromptfavorites)if($n.key===this.favoriteKey){for(const Nn of $n.list)if(Nn.tags.length===1&&Nn.tags[0].value===Cn.value)return Nn.id}}return!1},onLoraPopupUseKeywords(_n){let Cn=[];for(let $n of _n){let Nn=$n.toLowerCase();if(!this.tags.find(Ln=>Ln.value.toLowerCase()===Nn)){let Ln=this._appendTag($n,"",!1,-1,"text");Ln!==-1&&Cn.push(Ln)}}Cn.length&&this.autoTranslateByIndexes(Cn)},onTagMouseEnter(_n){if(this.isEditing)return!1;let Cn=this.tags.find($n=>$n.id===_n);if(!Cn)return!1;if(Cn.isFavorite=this.isFavorite(Cn.id),this.hotkey.hover==="extend"&&(this.showExtendId=_n),Cn.isLora||Cn.isLyco||Cn.isEmbedding){let $n=Cn.isLora?Cn.loraName:Cn.isLyco?Cn.lycoName:Cn.embeddingName;this.$emit("showExtraNetworks",this.$refs["promptTagValue-"+Cn.id][0],$n,this.onLoraPopupUseKeywords,"tags")}},onTagMouseMove(_n){},onTagMouseLeave(_n){if(!this.tags.find($n=>$n.id===_n))return!1;this.hotkey.hover==="extend"&&(this.showExtendId=""),this.$emit("hideExtraNetworks")},onTagClick(_n){this.tagClickTimeId&&clearTimeout(this.tagClickTimeId),this.tagClickTimeId=setTimeout(()=>{switch(this.hotkey.click){case"edit":this._handleEditTag(_n);break;case"disable":this._handleDisableTag(_n);break;case"extend":this._handleHoverTag(_n);break}clearTimeout(this.tagClickTimeId)},250)},onTagDblclick(_n){switch(clearTimeout(this.tagClickTimeId),this.hotkey.dblClick){case"edit":this._handleEditTag(_n);break;case"disable":this._handleDisableTag(_n);break;case"extend":this._handleHoverTag(_n);break}},onTagRightClick(_n,Cn){switch(this.hotkey.rightClick){case"edit":this._handleEditTag(_n);break;case"disable":this._handleDisableTag(_n);break;case"extend":this._handleHoverTag(_n);break}},_handleEditTag(_n){let Cn=this.tags.find($n=>$n.id===_n);if(!Cn)return!1;this.editing={},this.editing[Cn.id]=!0,this.isEditing=!0,this.$forceUpdate(),this.$nextTick(()=>{const $n=this.$refs["promptTagEdit-"+Cn.id][0];$n.focus(),$n.dispatchEvent(new Event("input"))})},_handleDisableTag(_n){let Cn=this.tags.find($n=>$n.id===_n);if(!Cn)return!1;this.onDisabledTagClick(Cn.id)},_handleHoverTag(_n){if(!this.tags.find($n=>$n.id===_n))return!1;this.showExtendId=_n},onTagInputBlur(_n){let Cn=this.tags.find($n=>$n.id===_n);if(!Cn)return!1;this.editing[Cn.id]=!1,this.isEditing=!1},onTagInputKeyDown(_n,Cn){if(Cn.keyCode===13){let $n=this.tags.find(Nn=>Nn.id===_n);if(!$n)return!1;this.editing[$n.id]=!1,this.isEditing=!1,this._changeTagValue($n,Cn.target.value)}},onTagInputChange(_n,Cn){let $n=this.tags.find(Nn=>Nn.id===_n);if(!$n)return!1;this._changeTagValue($n,Cn.target.value)},_changeTagValue(_n,Cn){let $n=_n.value;_n.value!==Cn&&(_n.value=Cn,this._setTag(_n),this._isTagBlacklist(_n)&&(_n.value=$n,this._setTag(_n)),this.updateTags())},onTagWeightNumChange(_n,Cn){let $n=this.tags.find(In=>In.id===_n);if(!$n)return!1;if(Cn=typeof Cn=="number"||typeof Cn=="string"?Cn:Cn.target.value,$n.weightNum==Cn)return;let Nn=Cn,Bn=$n.value,Ln=$n.localValue;if(Nn!==0){if(Nn===1&&!this.autoKeepWeightOne){const In=common$1.hasBrackets(Bn);(In[0]==="("&&In[1]===")"||this.useNovelAiWeightSymbol&&In[0]==="{"&&In[1]==="}")&&(Bn=common$1.setLayers(Bn,0,In[0],In[1]),Ln!==""&&(Ln=common$1.setLayers(Ln,0,In[0],In[1]))),Bn=Bn.replace(common$1.weightNumRegex,"$1"),Ln!==""&&(Ln=Ln.replace(common$1.weightNumRegex,"$1"))}else{if(!common$1.weightNumRegex.test(Bn)){let In=common$1.hasBrackets(Bn);In?(Bn=common$1.setLayers(Bn,1,In[0],In[1],":"+Nn),Ln!==""&&(Ln=common$1.setLayers(Ln,1,In[0],In[1],":"+Nn))):(Bn=Bn+":"+Nn,Ln!==""&&(Ln=Ln+":"+Nn))}$n.isLora||$n.isLyco||$n.isEmbedding||common$1.hasBrackets(Bn)||(this.useNovelAiWeightSymbol?(Bn=common$1.setLayers(Bn,1,"{","}"),Ln!==""&&(Ln=common$1.setLayers(Ln,1,"{","}"))):(Bn=common$1.setLayers(Bn,1,"(",")"),Ln!==""&&(Ln=common$1.setLayers(Ln,1,"(",")"))))}Bn!==$n.value&&($n.value=Bn,Ln!==""&&($n.localValue=Ln),this._setTag($n))}else this.autoKeepWeightZero?($n.value=Bn.replace(common$1.weightNumRegex,"$1:0"),Ln!==""&&($n.localValue=$n.localValue.replace(common$1.weightNumRegex,"$1:0"))):($n.value=Bn.replace(common$1.weightNumRegex,"$1"),Ln!==""&&($n.localValue=$n.localValue.replace(common$1.weightNumRegex,"$1")));$n.weightNum=Nn,this.updateTags()},onDeleteTagClick(_n){let Cn=this.tags.find(Nn=>Nn.id===_n);if(!Cn)return!1;let $n=this.tags.indexOf(Cn);this.tags.splice($n,1),this.updateTags()},onFavoriteTagClick(_n){let Cn=this.tags.find(Nn=>Nn.id===_n);if(!Cn)return!1;let $n=this.isFavorite(Cn.id);$n?this.gradioAPI.unFavorite(this.favoriteKey,$n).then(Nn=>{Nn&&(Cn.isFavorite=!1,this.$emit("refreshFavorites",this.favoriteKey))}):this.gradioAPI.pushFavorite(this.favoriteKey,[Cn],Cn.value,Cn.localValue===""?Cn.value:Cn.localValue).then(Nn=>{Nn&&(Cn.isFavorite=!0,this.$emit("refreshFavorites",this.favoriteKey))})},onDisabledTagClick(_n){let Cn=this.tags.find($n=>$n.id===_n);Cn&&(Cn.disabled=!Cn.disabled,this.updateTags())},onIncWeightClick(_n,Cn){let $n=this.tags.find(In=>In.id===_n);if(!$n)return;let Nn=$n.value,Bn=$n.localValue;Nn=common$1.setLayers(Nn,0,"[","]"),Bn!==""&&(Bn=common$1.setLayers(Bn,0,"[","]")),this.useNovelAiWeightSymbol&&(Nn=common$1.setLayers(Nn,0,"(",")"),Bn!==""&&(Bn=common$1.setLayers(Bn,0,"(",")")));let Ln=$n.incWeight;Ln+=Cn,Ln<0&&(Ln=0),$n.incWeight=Ln,$n.decWeight=0,this.useNovelAiWeightSymbol?(Nn=common$1.setLayers(Nn,Ln,"{","}"),Bn!==""&&(Bn=common$1.setLayers(Bn,Ln,"{","}"))):(Nn=common$1.setLayers(Nn,Ln,"(",")"),Bn!==""&&(Bn=common$1.setLayers(Bn,Ln,"(",")"))),$n.value=Nn,Bn!==""&&($n.localValue=Bn),this.updateTags()},onDecWeightClick(_n,Cn){let $n=this.tags.find(In=>In.id===_n);if(!$n)return;let Nn=$n.value,Bn=$n.localValue;Nn=common$1.setLayers(Nn,0,"(",")"),Bn!==""&&(Bn=common$1.setLayers(Bn,0,"(",")")),this.useNovelAiWeightSymbol&&(Nn=common$1.setLayers(Nn,0,"{","}"),Bn!==""&&(Bn=common$1.setLayers(Bn,0,"{","}")));let Ln=$n.decWeight;Ln+=Cn,Ln<0&&(Ln=0),$n.incWeight=0,$n.decWeight=Ln,Nn=common$1.setLayers(Nn,Ln,"[","]"),Bn!==""&&(Bn=common$1.setLayers(Bn,Ln,"[","]")),$n.value=Nn,Bn!==""&&($n.localValue=Bn),this.updateTags()},onWrapTagClick(_n){let Cn=this.tags.find(Ln=>Ln.id===_n);if(!Cn)return;let $n=this.tags.indexOf(Cn),Nn=this._appendTag(`
`,`
`,!1,-1,"wrap"),Bn=this.tags[Nn];this.tags.splice(Nn,1),this.tags.splice($n+1,0,Bn),this.updateTags()},onTranslateToLocalClick(_n){let Cn=this.tags.find(Nn=>Nn.id===_n);if(!Cn)return;let $n=this.tags.indexOf(Cn);this.loading[Cn.id+"_local"]||this.translates([$n],!0,!0).finally(()=>{this.updateTags()})},onTranslateToEnglishClick(_n){let Cn=this.tags.find(Nn=>Nn.id===_n);if(!Cn)return;let $n=this.tags.indexOf(Cn);this.loading[Cn.id+"_en"]||this.translates([$n],!1,!0).finally(()=>{this.updateTags()})},onBlacklistClick(_n){let Cn=this.tags.find(Nn=>Nn.id===_n);if(!Cn)return;if(!this.cancelBlacklistConfirm){let Nn=this.getLang("confirm_add_blacklist").replace("{0}",Cn.value)+`
`+this.getLang("blacklist_desc");if(!confirm(Nn))return}let $n=JSON.parse(JSON.stringify(this.blacklist));Cn.isLora?$n.lora.push(Cn.loraName):Cn.isLyco?$n.lycoris.push(Cn.lycoName):Cn.isEmbedding?$n.embedding.push(Cn.embeddingName):this.neg?$n.negative_prompt.push(Cn.originalValue):$n.prompt.push(Cn.originalValue),this.gradioAPI.setData("blacklist",$n),this.$emit("update:blacklist",$n,this.cancelBlacklistConfirm),this.tags.forEach(Nn=>{Nn.value===Cn.value&&this.onDeleteTagClick(Nn.id)})}}},GroupTagsMixin={data(){return{groupTagsActive:"",subGroupTagsActive:"",groupTagsProcessed:[],extraNetworksRefreshing:!1}},watch:{groupTags:{handler(){this.genGroup(),(!this.groupTagsActive||!this.subGroupTagsActive)&&(this.groupTagsActive="favorite",this.subGroupTagsActive="favorite-"+this.favoriteKey),this._setGroupTagItemWidth()},deep:!0,immediate:!0},favorites:{handler(){this.genGroup()},deep:!0,immediate:!0},extraNetworks:{handler(){this.genGroup()},deep:!0,immediate:!0}},mounted(){this.gradioAPI.getData("groupTagsActive-"+this.name).then(_n=>{_n!==null&&typeof _n=="object"&&(this.groupTagsActive=_n.groupTagsActive,this.subGroupTagsActive=_n.subGroupTagsActive)})},methods:{genGroup(){let _n=[],Cn={name:this.getLang("favorite"),tabKey:"favorite",type:"favorite",groups:[]};if(this.getCurrentTypeFavorites().forEach($n=>{let Nn={color:"",name:this.getLang($n.name),tabKey:"favorite-"+$n.key,type:"favorite",tags:{},ori:{}};$n.list.forEach(Bn=>{Nn.tags[Bn.prompt]=Bn.name==""?Bn.prompt:Bn.name,Nn.ori[Bn.prompt]=Bn}),Cn.groups.push(Nn)}),_n.push(Cn),!this.$appMode){let $n={name:"Extra Networks",tabKey:"extraNetworks",type:"extraNetworks",groups:[]};this.extraNetworks.forEach(Nn=>{let Bn={color:"",name:Nn.title,tabKey:"extraNetworks-"+Nn.name,type:"extraNetworks",subType:Nn.name,tags:{},datas:[]};Nn.items.forEach(Pn=>{Bn.datas.push(Pn)}),$n.groups.push(Bn),Nn.items.forEach(Pn=>{Pn.dirnameFormat=Pn.dirname.replaceAll("\\","/")});let Ln=common$1.getSamePrefixPath([...new Set(Nn.items.map(Pn=>Pn.dirnameFormat))]),In=[];Nn.items.forEach(Pn=>{let Dn=Pn.dirnameFormat.replace(Ln,"");Dn===""&&(Dn="@root"),Dn=Dn.replace(/^\//,""),In.push(Dn),Pn.base_dirname=Dn}),In=[...new Set(In)],In.length>1&&In.forEach(Pn=>{let Dn={color:"",name:Pn,tabKey:"extraNetworks-"+Nn.name+"-"+Pn,type:"extraNetworks",subType:Nn.name,tags:{},datas:[]};Nn.items.forEach(Hn=>{Hn.base_dirname===Pn&&Dn.datas.push(Hn)}),$n.groups.push(Dn)}),$n.groups.push({type:"wrap"})}),_n.push($n)}_n=_n.concat(this.groupTags),this.groupTagsProcessed=_n},saveGroupActive(){this.gradioAPI.setData("groupTagsActive-"+this.name,{groupTagsActive:this.groupTagsActive,subGroupTagsActive:this.subGroupTagsActive})},activeGroupTab(_n){this.groupTagsActive=this.groupTagsProcessed[_n].tabKey,this.subGroupTagsActive=this.groupTagsProcessed[_n].groups[0].tabKey,this.saveGroupActive();let Cn=this.$refs.groupTabsHeader.children[_n].offsetLeft-this.$refs.groupTabsHeader.offsetWidth/2+this.$refs.groupTabsHeader.children[_n].offsetWidth/2;this.$refs.groupTabsHeader.scrollTo({left:Cn,behavior:"smooth"}),this._setGroupTagItemWidth()},activeSubGroupTab(_n,Cn){this.subGroupTagsActive=this.groupTagsProcessed[_n].groups[Cn].tabKey,this.saveGroupActive(),this._setGroupTagItemWidth()},_setGroupTagItemWidth(){this.$nextTick(()=>{if(!this.$refs.groupTagItem)return;this.$refs.groupTagItem.forEach((Cn,$n)=>{Cn.style.width="auto"});let _n=0;this.$refs.groupTagItem.forEach((Cn,$n)=>{_n=Math.max(_n,Cn.offsetWidth)}),_n>0&&this.$refs.groupTagItem.forEach((Cn,$n)=>{Cn.style.width=_n+"px"})})},onClickHideGroupTags(){this.$emit("update:hideGroupTags",!this.hideGroupTags)},onClickGroupTag(_n,Cn,$n,Nn){let Bn=[];if(this.tags.forEach((Ln,In)=>{Ln.originalValue===Cn&&Bn.push(In)}),Bn.length)Bn.reverse().forEach(Ln=>{this.tags.splice(Ln,1)}),this.updateTags();else if($n.type==="favorite"){let Ln=Nn.ori[Cn];this.onClickGroupTagFavorite(Ln)}else this._appendTag(Cn,_n,!1,-1,"text"),this.updateTags()},onClickGroupTagFavorite(_n){_n.tags.forEach(Cn=>{this._appendTag(Cn.value,Cn.localValue,Cn.disabled,-1,Cn.type)}),this.updateTags()},onClickGroupTagExtraNetwork(data,group,subGroup){if(subGroup.subType==="checkpoints"){if(data.loading)return;data.loading=!0;let setLoading=_n=>{if(_n>100){data.loading=!1,setTimeout(this.onClickGroupExtraNetworkRefresh,1e3);return}if(opts&&opts.sd_model_checkpoint){let Cn=!1,$n=opts.sd_model_checkpoint;if($n.indexOf("["+data.shorthash+"]")>-1)Cn=!0;else{$n=$n.replaceAll("\\","/");let Nn=data.baseDirname;Nn==="@root"&&(Nn=""),($n.indexOf(Nn+"/"+data.basename)>-1||$n.indexOf(data.basename)>-1)&&(Cn=!0)}if(Cn){data.loading=!1,setTimeout(this.onClickGroupExtraNetworkRefresh,1e3);return}}setTimeout(setLoading,100,_n+1)};if(setLoading(0),console.log(data),data.onclick){let e=document.createElement("div");e.innerHTML=data.onclick;let onclick=e.textContent||e.innerText;onclick=onclick.replace(/^"/,"").replace(/"$/,"").trim(),onclick=onclick.replace(/^return /,"").trim(),console.log(onclick),eval(onclick)}else selectCheckpoint(data.basename);return}let indexes=this._groupTagsExtraNetworkTagsIndexes(data);if(indexes.length)indexes.reverse().forEach(_n=>{console.log(_n),this.tags.splice(_n,1)}),this.updateTags();else{let index=this._appendTag(eval(data.prompt),"",!1,-1,"text");this.autoTranslateToLocal?this.translates([index],!0,!1).finally(()=>{this.updateTags()}):this.updateTags()}},getGroupTagTooltip(_n,Cn){let $n="";return _n&&_n!==Cn&&($n+=_n+"<br/>"),$n+=Cn,$n},getGroupTagStyle(_n,Cn,$n){let Nn={},Bn=common$1.getTagsColorKey(_n,Cn),Ln="";this.groupTagsColor[Bn]&&(Ln=this.groupTagsColor[Bn],common$1.isColorTransparent(Ln)&&(Ln="")),Ln&&(Nn={background:Ln});for(let In of this.tags)if(In.originalValue===$n){Nn.filter="grayscale(1)";break}return Nn},_groupTagsExtraNetworkTagsIndexes(_n){let Cn=_n.name,$n=_n.output_name||void 0,Nn=[];for(let Bn in this.tags){let Ln=this.tags[Bn];if(typeof Ln.type=="string"&&Ln.type==="wrap")continue;let In=!1;Ln.isLora?In=Ln.loraName===Cn||$n&&Ln.loraName===$n:Ln.isLyco?In=Ln.lycoName===Cn||$n&&Ln.lycoName===$n:Ln.isEmbedding?In=Ln.embeddingName===Cn||$n&&Ln.embeddingName===$n:In=Ln.originalValue===Cn||$n&&Ln.originalValue===$n,In&&Nn.push(Bn)}return Nn},getGroupTagExtraNetworkStyle(_n){let Cn=this._groupTagsExtraNetworkTagsIndexes(_n),$n={width:this.extraNetworksWidth+"px",height:this.extraNetworksHeight+"px"};return Cn.length&&($n.filter="grayscale(1)"),$n},getTagsColorKey(_n,Cn){return common$1.getTagsColorKey(_n,Cn)},onTagsColorChange(_n){this.$emit("update:groupTagsColor",this.groupTagsColor)},onClickResetTagsColor(_n){for(let Cn of this.groupTagsProcessed)for(let $n of Cn.groups){if($n.type&&$n.typ=="wrap")continue;let Nn=common$1.getTagsColorKey(Cn.name,$n.name);_n===Nn&&(this.groupTagsColor[_n]=ref(common$1.fitterInputColor($n.color)))}this.onTagsColorChange(_n)},onClickClearTagsColor(_n){this.groupTagsColor[_n]=ref("rgba(0,0,0,0)"),this.onTagsColorChange(_n)},getTagColorStyle(_n){if(_n.isLora||_n.isLyco||_n.isEmbedding)return{};if(!this.groupTagsColorKeyCache[_n.value])return{};let Cn=this.groupTagsColorKeyCache[_n.value];if(!this.groupTagsColor[Cn])return{};let $n=this.groupTagsColor[Cn];return common$1.isColorTransparent($n)?{}:{background:$n}},onGroupExtraNetworkMouseEnter(_n,Cn){this.$emit("showExtraNetworks",_n.target,Cn,this.onLoraPopupUseKeywords,!0,"groupTags")},onGroupExtraNetworkMouseMove(){},onGroupExtraNetworkMouseLeave(){this.$emit("hideExtraNetworks")},onClickGroupExtraNetworkRefresh(){this.$emit("refreshExtraNetworks")}}},_sfc_main$f={name:"IconSvg",props:{name:{type:String,required:!0},svgName:{type:String,default:""}},data(){return{svgCode:""}},watch:{name:{handler:function(_n,Cn){this.getSvg()},immediate:!1}},mounted(){this.getSvg()},methods:{getSvg(){if(!this.name)return;let _n=this.svgName||this.name;if(window.loadingSvg=window.loadingSvg||{},window.isLoadSvg=window.isLoadSvg||{},window.isLoadSvg[_n]){this.svgCode=localStorage.getItem("iconSVG-"+_n);return}if(localStorage.getItem("iconSVG-"+_n)&&(this.svgCode=localStorage.getItem("iconSVG-"+_n)),window.loadingSvg[_n]){const Cn=setInterval(()=>{window.loadingSvg[_n]||(clearInterval(Cn),this.svgCode=localStorage.getItem("iconSVG-"+_n))},10);return}window.loadingSvg[_n]=!0,window.iconSvgHash||(window.iconSvgHash=new Date().getTime()),this.gradioAPI.styles("icons/"+_n+".svg",window.iconSvgHash).then(Cn=>{this.svgCode=Cn,localStorage.setItem("iconSVG-"+_n,Cn),window.isLoadSvg[_n]=!0,window.loadingSvg[_n]=!1}).catch(Cn=>{window.loadingSvg[_n]=!1})}}},_hoisted_1$e=["innerHTML"];function _sfc_render$f(_n,Cn,$n,Nn,Bn,Ln){return withDirectives((openBlock(),createElementBlock("div",{class:normalizeClass(["icon-svg","icon-svg-"+$n.name]),"data-name":"name",innerHTML:Bn.svgCode},null,10,_hoisted_1$e)),[[vShow,Bn.svgCode]])}const IconSvg=_export_sfc(_sfc_main$f,[["render",_sfc_render$f]]),_sfc_main$e={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(_n){this.lastHighLightTag&&this.lastHighLightTag.value===_n.value||(this.lastHighLightTag=_n,this.showTimeId&&clearTimeout(this.showTimeId),this.showTimeId=setTimeout(()=>{this._show(_n),this.showTimeId=0},10))},_show(_n){if(this.hideDefaultInput)return this._hide();if(typeof _n.type=="string"&&_n.type==="wrap")return this._hide();let Cn=_n.value,$n=this.textarea.value;if(Cn===""||Cn.trim()==="")return this._hide();if($n===""||$n.trim()==="")return this._hide();if(Cn=common$1.escapeHtml(Cn),$n=common$1.escapeHtml(this.textarea.value),$n.indexOf(Cn)===-1)return this._hide();this.textarea.parentNode.insertBefore(this.$refs.highlightPrompt,this.textarea.nextSibling);const Bn=window.getComputedStyle(this.textarea);for(const Pn of Bn)this.$refs.highlightPrompt.style[Pn]=Bn[Pn];this.$refs.highlightPrompt.style.display="block",this.textarea.style.display="none";let Ln="",In=$n;for(;;){const Pn=In.indexOf(Cn);if(Pn===-1){Ln+=In;break}const Dn=Pn+Cn.length;Ln+=In.substring(0,Pn),Ln+='<span class="physton-highlight-prompt">',Ln+=In.substring(Pn,Dn),Ln+="</span>",In=In.substring(Dn)}this.$refs.highlightPrompt.innerHTML=Ln,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 _sfc_render$e(_n,Cn,$n,Nn,Bn,Ln){return openBlock(),createElementBlock("div",{class:"physton-highlight-prompt",ref:"highlightPrompt",onClick:Cn[0]||(Cn[0]=(...In)=>Ln.hide&&Ln.hide(...In))},null,512)}const HighlightPrompt=_export_sfc(_sfc_main$e,[["render",_sfc_render$e]]);function tryOnScopeDispose(_n){return getCurrentScope()?(onScopeDispose(_n),!0):!1}function toValue(_n){return typeof _n=="function"?_n():unref(_n)}const isClient=typeof window<"u",noop$1=()=>{},isIOS=getIsIOS();function getIsIOS(){var _n;return isClient&&((_n=window==null?void 0:window.navigator)==null?void 0:_n.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function createFilterWrapper(_n,Cn){function $n(...Nn){return new Promise((Bn,Ln)=>{Promise.resolve(_n(()=>Cn.apply(this,Nn),{fn:Cn,thisArg:this,args:Nn})).then(Bn).catch(Ln)})}return $n}const bypassFilter=_n=>_n();function debounceFilter(_n,Cn={}){let $n,Nn,Bn=noop$1;const Ln=Pn=>{clearTimeout(Pn),Bn(),Bn=noop$1};return Pn=>{const Dn=toValue(_n),Hn=toValue(Cn.maxWait);return $n&&Ln($n),Dn<=0||Hn!==void 0&&Hn<=0?(Nn&&(Ln(Nn),Nn=null),Promise.resolve(Pn())):new Promise((Wn,Xn)=>{Bn=Cn.rejectOnCancel?Xn:Wn,Hn&&!Nn&&(Nn=setTimeout(()=>{$n&&Ln($n),Nn=null,Wn(Pn())},Hn)),$n=setTimeout(()=>{Nn&&Ln(Nn),Nn=null,Wn(Pn())},Dn)})}}function pausableFilter(_n=bypassFilter){const Cn=ref(!0);function $n(){Cn.value=!1}function Nn(){Cn.value=!0}const Bn=(...Ln)=>{Cn.value&&_n(...Ln)};return{isActive:readonly(Cn),pause:$n,resume:Nn,eventFilter:Bn}}function useDebounceFn(_n,Cn=200,$n={}){return createFilterWrapper(debounceFilter(Cn,$n),_n)}function tryOnMounted(_n,Cn=!0){getCurrentInstance()?onMounted(_n):Cn?_n():nextTick(_n)}var __getOwnPropSymbols$8=Object.getOwnPropertySymbols,__hasOwnProp$8=Object.prototype.hasOwnProperty,__propIsEnum$8=Object.prototype.propertyIsEnumerable,__objRest$5=(_n,Cn)=>{var $n={};for(var Nn in _n)__hasOwnProp$8.call(_n,Nn)&&Cn.indexOf(Nn)<0&&($n[Nn]=_n[Nn]);if(_n!=null&&__getOwnPropSymbols$8)for(var Nn of __getOwnPropSymbols$8(_n))Cn.indexOf(Nn)<0&&__propIsEnum$8.call(_n,Nn)&&($n[Nn]=_n[Nn]);return $n};function watchWithFilter(_n,Cn,$n={}){const Nn=$n,{eventFilter:Bn=bypassFilter}=Nn,Ln=__objRest$5(Nn,["eventFilter"]);return watch(_n,createFilterWrapper(Bn,Cn),Ln)}var __defProp$2=Object.defineProperty,__defProps$2=Object.defineProperties,__getOwnPropDescs$2=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$2=Object.getOwnPropertySymbols,__hasOwnProp$2=Object.prototype.hasOwnProperty,__propIsEnum$2=Object.prototype.propertyIsEnumerable,__defNormalProp$2=(_n,Cn,$n)=>Cn in _n?__defProp$2(_n,Cn,{enumerable:!0,configurable:!0,writable:!0,value:$n}):_n[Cn]=$n,__spreadValues$2=(_n,Cn)=>{for(var $n in Cn||(Cn={}))__hasOwnProp$2.call(Cn,$n)&&__defNormalProp$2(_n,$n,Cn[$n]);if(__getOwnPropSymbols$2)for(var $n of __getOwnPropSymbols$2(Cn))__propIsEnum$2.call(Cn,$n)&&__defNormalProp$2(_n,$n,Cn[$n]);return _n},__spreadProps$2=(_n,Cn)=>__defProps$2(_n,__getOwnPropDescs$2(Cn)),__objRest$1=(_n,Cn)=>{var $n={};for(var Nn in _n)__hasOwnProp$2.call(_n,Nn)&&Cn.indexOf(Nn)<0&&($n[Nn]=_n[Nn]);if(_n!=null&&__getOwnPropSymbols$2)for(var Nn of __getOwnPropSymbols$2(_n))Cn.indexOf(Nn)<0&&__propIsEnum$2.call(_n,Nn)&&($n[Nn]=_n[Nn]);return $n};function watchPausable(_n,Cn,$n={}){const Nn=$n,{eventFilter:Bn}=Nn,Ln=__objRest$1(Nn,["eventFilter"]),{eventFilter:In,pause:Pn,resume:Dn,isActive:Hn}=pausableFilter(Bn);return{stop:watchWithFilter(_n,Cn,__spreadProps$2(__spreadValues$2({},Ln),{eventFilter:In})),pause:Pn,resume:Dn,isActive:Hn}}function whenever(_n,Cn,$n){return watch(_n,(Nn,Bn,Ln)=>{Nn&&Cn(Nn,Bn,Ln)},$n)}function unrefElement(_n){var Cn;const $n=toValue(_n);return(Cn=$n==null?void 0:$n.$el)!=null?Cn:$n}const defaultWindow=isClient?window:void 0;function useEventListener(..._n){let Cn,$n,Nn,Bn;if(typeof _n[0]=="string"||Array.isArray(_n[0])?([$n,Nn,Bn]=_n,Cn=defaultWindow):[Cn,$n,Nn,Bn]=_n,!Cn)return noop$1;Array.isArray($n)||($n=[$n]),Array.isArray(Nn)||(Nn=[Nn]);const Ln=[],In=()=>{Ln.forEach(Wn=>Wn()),Ln.length=0},Pn=(Wn,Xn,Gn,rr)=>(Wn.addEventListener(Xn,Gn,rr),()=>Wn.removeEventListener(Xn,Gn,rr)),Dn=watch(()=>[unrefElement(Cn),toValue(Bn)],([Wn,Xn])=>{In(),Wn&&Ln.push(...$n.flatMap(Gn=>Nn.map(rr=>Pn(Wn,Gn,rr,Xn))))},{immediate:!0,flush:"post"}),Hn=()=>{Dn(),In()};return tryOnScopeDispose(Hn),Hn}let _iOSWorkaround=!1;function onClickOutside(_n,Cn,$n={}){const{window:Nn=defaultWindow,ignore:Bn=[],capture:Ln=!0,detectIframe:In=!1}=$n;if(!Nn)return;isIOS&&!_iOSWorkaround&&(_iOSWorkaround=!0,Array.from(Nn.document.body.children).forEach(Gn=>Gn.addEventListener("click",noop$1)),Nn.document.documentElement.addEventListener("click",noop$1));let Pn=!0;const Dn=Gn=>Bn.some(rr=>{if(typeof rr=="string")return Array.from(Nn.document.querySelectorAll(rr)).some(nr=>nr===Gn.target||Gn.composedPath().includes(nr));{const nr=unrefElement(rr);return nr&&(Gn.target===nr||Gn.composedPath().includes(nr))}}),Wn=[useEventListener(Nn,"click",Gn=>{const rr=unrefElement(_n);if(!(!rr||rr===Gn.target||Gn.composedPath().includes(rr))){if(Gn.detail===0&&(Pn=!Dn(Gn)),!Pn){Pn=!0;return}Cn(Gn)}},{passive:!0,capture:Ln}),useEventListener(Nn,"pointerdown",Gn=>{const rr=unrefElement(_n);rr&&(Pn=!Gn.composedPath().includes(rr)&&!Dn(Gn))},{passive:!0}),In&&useEventListener(Nn,"blur",Gn=>{setTimeout(()=>{var rr;const nr=unrefElement(_n);((rr=Nn.document.activeElement)==null?void 0:rr.tagName)==="IFRAME"&&!(nr!=null&&nr.contains(Nn.document.activeElement))&&Cn(Gn)},0)})].filter(Boolean);return()=>Wn.forEach(Gn=>Gn())}const _global$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},globalKey="__vueuse_ssr_handlers__",handlers=getHandlers();function getHandlers(){return globalKey in _global$1||(_global$1[globalKey]=_global$1[globalKey]||{}),_global$1[globalKey]}function getSSRHandler(_n,Cn){return handlers[_n]||Cn}function guessSerializerType(_n){return _n==null?"any":_n instanceof Set?"set":_n instanceof Map?"map":_n instanceof Date?"date":typeof _n=="boolean"?"boolean":typeof _n=="string"?"string":typeof _n=="object"?"object":Number.isNaN(_n)?"any":"number"}var __defProp$l=Object.defineProperty,__getOwnPropSymbols$o=Object.getOwnPropertySymbols,__hasOwnProp$o=Object.prototype.hasOwnProperty,__propIsEnum$o=Object.prototype.propertyIsEnumerable,__defNormalProp$l=(_n,Cn,$n)=>Cn in _n?__defProp$l(_n,Cn,{enumerable:!0,configurable:!0,writable:!0,value:$n}):_n[Cn]=$n,__spreadValues$l=(_n,Cn)=>{for(var $n in Cn||(Cn={}))__hasOwnProp$o.call(Cn,$n)&&__defNormalProp$l(_n,$n,Cn[$n]);if(__getOwnPropSymbols$o)for(var $n of __getOwnPropSymbols$o(Cn))__propIsEnum$o.call(Cn,$n)&&__defNormalProp$l(_n,$n,Cn[$n]);return _n};const StorageSerializers={boolean:{read:_n=>_n==="true",write:_n=>String(_n)},object:{read:_n=>JSON.parse(_n),write:_n=>JSON.stringify(_n)},number:{read:_n=>Number.parseFloat(_n),write:_n=>String(_n)},any:{read:_n=>_n,write:_n=>String(_n)},string:{read:_n=>_n,write:_n=>String(_n)},map:{read:_n=>new Map(JSON.parse(_n)),write:_n=>JSON.stringify(Array.from(_n.entries()))},set:{read:_n=>new Set(JSON.parse(_n)),write:_n=>JSON.stringify(Array.from(_n))},date:{read:_n=>new Date(_n),write:_n=>_n.toISOString()}},customStorageEventName="vueuse-storage";function useStorage(_n,Cn,$n,Nn={}){var Bn;const{flush:Ln="pre",deep:In=!0,listenToStorageChanges:Pn=!0,writeDefaults:Dn=!0,mergeDefaults:Hn=!1,shallow:Wn,window:Xn=defaultWindow,eventFilter:Gn,onError:rr=ni=>{console.error(ni)}}=Nn,nr=(Wn?shallowRef:ref)(Cn);if(!$n)try{$n=getSSRHandler("getDefaultStorage",()=>{var ni;return(ni=defaultWindow)==null?void 0:ni.localStorage})()}catch(ni){rr(ni)}if(!$n)return nr;const Yo=toValue(Cn),ei=guessSerializerType(Yo),ti=(Bn=Nn.serializer)!=null?Bn:StorageSerializers[ei],{pause:ui,resume:mi}=watchPausable(nr,()=>Xo(nr.value),{flush:Ln,deep:In,eventFilter:Gn});return Xn&&Pn&&(useEventListener(Xn,"storage",Ni),useEventListener(Xn,customStorageEventName,zn)),Ni(),nr;function Xo(ni){try{if(ni==null)$n.removeItem(_n);else{const Qo=ti.write(ni),ri=$n.getItem(_n);ri!==Qo&&($n.setItem(_n,Qo),Xn&&Xn.dispatchEvent(new CustomEvent(customStorageEventName,{detail:{key:_n,oldValue:ri,newValue:Qo,storageArea:$n}})))}}catch(Qo){rr(Qo)}}function vi(ni){const Qo=ni?ni.newValue:$n.getItem(_n);if(Qo==null)return Dn&&Yo!==null&&$n.setItem(_n,ti.write(Yo)),Yo;if(!ni&&Hn){const ri=ti.read(Qo);return typeof Hn=="function"?Hn(ri,Yo):ei==="object"&&!Array.isArray(ri)?__spreadValues$l(__spreadValues$l({},Yo),ri):ri}else return typeof Qo!="string"?Qo:ti.read(Qo)}function zn(ni){Ni(ni.detail)}function Ni(ni){if(!(ni&&ni.storageArea!==$n)){if(ni&&ni.key==null){nr.value=Yo;return}if(!(ni&&ni.key!==_n)){ui();try{nr.value=vi(ni)}catch(Qo){rr(Qo)}finally{ni?nextTick(mi):mi()}}}}}function useLocalStorage(_n,Cn,$n={}){const{window:Nn=defaultWindow}=$n;return useStorage(_n,Cn,Nn==null?void 0:Nn.localStorage,$n)}var GradientParser=GradientParser||{};GradientParser.stringify=function(){var _n={"visit_linear-gradient":function(Cn){return _n.visit_gradient(Cn)},"visit_repeating-linear-gradient":function(Cn){return _n.visit_gradient(Cn)},"visit_radial-gradient":function(Cn){return _n.visit_gradient(Cn)},"visit_repeating-radial-gradient":function(Cn){return _n.visit_gradient(Cn)},visit_gradient:function(Cn){var $n=_n.visit(Cn.orientation);return $n&&($n+=", "),Cn.type+"("+$n+_n.visit(Cn.colorStops)+")"},visit_shape:function(Cn){var $n=Cn.value,Nn=_n.visit(Cn.at),Bn=_n.visit(Cn.style);return Bn&&($n+=" "+Bn),Nn&&($n+=" at "+Nn),$n},"visit_default-radial":function(Cn){var $n="",Nn=_n.visit(Cn.at);return Nn&&($n+=Nn),$n},"visit_extent-keyword":function(Cn){var $n=Cn.value,Nn=_n.visit(Cn.at);return Nn&&($n+=" at "+Nn),$n},"visit_position-keyword":function(Cn){return Cn.value},visit_position:function(Cn){return _n.visit(Cn.value.x)+" "+_n.visit(Cn.value.y)},"visit_%":function(Cn){return Cn.value+"%"},visit_em:function(Cn){return Cn.value+"em"},visit_px:function(Cn){return Cn.value+"px"},visit_literal:function(Cn){return _n.visit_color(Cn.value,Cn)},visit_hex:function(Cn){return _n.visit_color("#"+Cn.value,Cn)},visit_rgb:function(Cn){return _n.visit_color("rgb("+Cn.value.join(", ")+")",Cn)},visit_rgba:function(Cn){return _n.visit_color("rgba("+Cn.value.join(", ")+")",Cn)},visit_color:function(Cn,$n){var Nn=Cn,Bn=_n.visit($n.length);return Bn&&(Nn+=" "+Bn),Nn},visit_angular:function(Cn){return Cn.value+"deg"},visit_directional:function(Cn){return"to "+Cn.value},visit_array:function(Cn){var $n="",Nn=Cn.length;return Cn.forEach(function(Bn,Ln){$n+=_n.visit(Bn),Ln<Nn-1&&($n+=", ")}),$n},visit:function(Cn){if(!Cn)return"";var $n="";if(Cn instanceof Array)return _n.visit_array(Cn,$n);if(Cn.type){var Nn=_n["visit_"+Cn.type];if(Nn)return Nn(Cn);throw Error("Missing visitor visit_"+Cn.type)}else throw Error("Invalid node.")}};return function(Cn){return _n.visit(Cn)}}();var GradientParser=GradientParser||{};GradientParser.parse=function(){var _n={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},Cn="";function $n(bi){var xi=new Error(Cn+": "+bi);throw xi.source=Cn,xi}function Nn(){var bi=Bn();return Cn.length>0&&$n("Invalid input not EOF"),bi}function Bn(){return mi(Ln)}function Ln(){return In("linear-gradient",_n.linearGradient,Dn)||In("repeating-linear-gradient",_n.repeatingLinearGradient,Dn)||In("radial-gradient",_n.radialGradient,Xn)||In("repeating-radial-gradient",_n.repeatingRadialGradient,Xn)}function In(bi,xi,Ii){return Pn(xi,function(da){var oa=Ii();return oa&&(ta(_n.comma)||$n("Missing comma before color stops")),{type:bi,orientation:oa,colorStops:mi(Xo)}})}function Pn(bi,xi){var Ii=ta(bi);if(Ii){ta(_n.startCall)||$n("Missing (");var da=xi(Ii);return ta(_n.endCall)||$n("Missing )"),da}}function Dn(){return Hn()||Wn()}function Hn(){return Li("directional",_n.sideOrCorner,1)}function Wn(){return Li("angular",_n.angleValue,1)}function Xn(){var bi,xi=Gn(),Ii;return xi&&(bi=[],bi.push(xi),Ii=Cn,ta(_n.comma)&&(xi=Gn(),xi?bi.push(xi):Cn=Ii)),bi}function Gn(){var bi=rr()||nr();if(bi)bi.at=ei();else{var xi=Yo();if(xi){bi=xi;var Ii=ei();Ii&&(bi.at=Ii)}else{var da=ti();da&&(bi={type:"default-radial",at:da})}}return bi}function rr(){var bi=Li("shape",/^(circle)/i,0);return bi&&(bi.style=yi()||Yo()),bi}function nr(){var bi=Li("shape",/^(ellipse)/i,0);return bi&&(bi.style=ci()||Yo()),bi}function Yo(){return Li("extent-keyword",_n.extentKeywords,1)}function ei(){if(Li("position",/^at/,0)){var bi=ti();return bi||$n("Missing positioning value"),bi}}function ti(){var bi=ui();if(bi.x||bi.y)return{type:"position",value:bi}}function ui(){return{x:ci(),y:ci()}}function mi(bi){var xi=bi(),Ii=[];if(xi)for(Ii.push(xi);ta(_n.comma);)xi=bi(),xi?Ii.push(xi):$n("One extra comma");return Ii}function Xo(){var bi=vi();return bi||$n("Expected color definition"),bi.length=ci(),bi}function vi(){return Ni()||Qo()||ni()||zn()}function zn(){return Li("literal",_n.literalColor,0)}function Ni(){return Li("hex",_n.hexColor,1)}function ni(){return Pn(_n.rgbColor,function(){return{type:"rgb",value:mi(ri)}})}function Qo(){return Pn(_n.rgbaColor,function(){return{type:"rgba",value:mi(ri)}})}function ri(){return ta(_n.number)[1]}function ci(){return Li("%",_n.percentageValue,1)||pi()||yi()}function pi(){return Li("position-keyword",_n.positionKeywords,1)}function yi(){return Li("px",_n.pixelValue,1)||Li("em",_n.emValue,1)}function Li(bi,xi,Ii){var da=ta(xi);if(da)return{type:bi,value:da[Ii]}}function ta(bi){var xi,Ii;return Ii=/^[\n\r\t\s]+/.exec(Cn),Ii&&Yi(Ii[0].length),xi=bi.exec(Cn),xi&&Yi(xi[0].length),xi}function Yi(bi){Cn=Cn.substr(bi)}return function(bi){return Cn=bi.toString(),Nn()}}();var parse=GradientParser.parse,stringify=GradientParser.stringify,top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(_n,Cn){return _n.concat([Cn+"-"+start,Cn+"-"+end])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(_n,Cn){return _n.concat([Cn,Cn+"-"+start,Cn+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(_n){return _n?(_n.nodeName||"").toLowerCase():null}function getWindow(_n){if(_n==null)return window;if(_n.toString()!=="[object Window]"){var Cn=_n.ownerDocument;return Cn&&Cn.defaultView||window}return _n}function isElement$1(_n){var Cn=getWindow(_n).Element;return _n instanceof Cn||_n instanceof Element}function isHTMLElement(_n){var Cn=getWindow(_n).HTMLElement;return _n instanceof Cn||_n instanceof HTMLElement}function isShadowRoot(_n){if(typeof ShadowRoot>"u")return!1;var Cn=getWindow(_n).ShadowRoot;return _n instanceof Cn||_n instanceof ShadowRoot}function applyStyles(_n){var Cn=_n.state;Object.keys(Cn.elements).forEach(function($n){var Nn=Cn.styles[$n]||{},Bn=Cn.attributes[$n]||{},Ln=Cn.elements[$n];!isHTMLElement(Ln)||!getNodeName(Ln)||(Object.assign(Ln.style,Nn),Object.keys(Bn).forEach(function(In){var Pn=Bn[In];Pn===!1?Ln.removeAttribute(In):Ln.setAttribute(In,Pn===!0?"":Pn)}))})}function effect$2(_n){var Cn=_n.state,$n={popper:{position:Cn.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(Cn.elements.popper.style,$n.popper),Cn.styles=$n,Cn.elements.arrow&&Object.assign(Cn.elements.arrow.style,$n.arrow),function(){Object.keys(Cn.elements).forEach(function(Nn){var Bn=Cn.elements[Nn],Ln=Cn.attributes[Nn]||{},In=Object.keys(Cn.styles.hasOwnProperty(Nn)?Cn.styles[Nn]:$n[Nn]),Pn=In.reduce(function(Dn,Hn){return Dn[Hn]="",Dn},{});!isHTMLElement(Bn)||!getNodeName(Bn)||(Object.assign(Bn.style,Pn),Object.keys(Ln).forEach(function(Dn){Bn.removeAttribute(Dn)}))})}}const applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement$1(_n){return _n.split("-")[0]}var max=Math.max,min=Math.min,round=Math.round;function getUAString(){var _n=navigator.userAgentData;return _n!=null&&_n.brands&&Array.isArray(_n.brands)?_n.brands.map(function(Cn){return Cn.brand+"/"+Cn.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(_n,Cn,$n){Cn===void 0&&(Cn=!1),$n===void 0&&($n=!1);var Nn=_n.getBoundingClientRect(),Bn=1,Ln=1;Cn&&isHTMLElement(_n)&&(Bn=_n.offsetWidth>0&&round(Nn.width)/_n.offsetWidth||1,Ln=_n.offsetHeight>0&&round(Nn.height)/_n.offsetHeight||1);var In=isElement$1(_n)?getWindow(_n):window,Pn=In.visualViewport,Dn=!isLayoutViewport()&&$n,Hn=(Nn.left+(Dn&&Pn?Pn.offsetLeft:0))/Bn,Wn=(Nn.top+(Dn&&Pn?Pn.offsetTop:0))/Ln,Xn=Nn.width/Bn,Gn=Nn.height/Ln;return{width:Xn,height:Gn,top:Wn,right:Hn+Xn,bottom:Wn+Gn,left:Hn,x:Hn,y:Wn}}function getLayoutRect(_n){var Cn=getBoundingClientRect(_n),$n=_n.offsetWidth,Nn=_n.offsetHeight;return Math.abs(Cn.width-$n)<=1&&($n=Cn.width),Math.abs(Cn.height-Nn)<=1&&(Nn=Cn.height),{x:_n.offsetLeft,y:_n.offsetTop,width:$n,height:Nn}}function contains(_n,Cn){var $n=Cn.getRootNode&&Cn.getRootNode();if(_n.contains(Cn))return!0;if($n&&isShadowRoot($n)){var Nn=Cn;do{if(Nn&&_n.isSameNode(Nn))return!0;Nn=Nn.parentNode||Nn.host}while(Nn)}return!1}function getComputedStyle(_n){return getWindow(_n).getComputedStyle(_n)}function isTableElement(_n){return["table","td","th"].indexOf(getNodeName(_n))>=0}function getDocumentElement(_n){return((isElement$1(_n)?_n.ownerDocument:_n.document)||window.document).documentElement}function getParentNode(_n){return getNodeName(_n)==="html"?_n:_n.assignedSlot||_n.parentNode||(isShadowRoot(_n)?_n.host:null)||getDocumentElement(_n)}function getTrueOffsetParent(_n){return!isHTMLElement(_n)||getComputedStyle(_n).position==="fixed"?null:_n.offsetParent}function getContainingBlock(_n){var Cn=/firefox/i.test(getUAString()),$n=/Trident/i.test(getUAString());if($n&&isHTMLElement(_n)){var Nn=getComputedStyle(_n);if(Nn.position==="fixed")return null}var Bn=getParentNode(_n);for(isShadowRoot(Bn)&&(Bn=Bn.host);isHTMLElement(Bn)&&["html","body"].indexOf(getNodeName(Bn))<0;){var Ln=getComputedStyle(Bn);if(Ln.transform!=="none"||Ln.perspective!=="none"||Ln.contain==="paint"||["transform","perspective"].indexOf(Ln.willChange)!==-1||Cn&&Ln.willChange==="filter"||Cn&&Ln.filter&&Ln.filter!=="none")return Bn;Bn=Bn.parentNode}return null}function getOffsetParent(_n){for(var Cn=getWindow(_n),$n=getTrueOffsetParent(_n);$n&&isTableElement($n)&&getComputedStyle($n).position==="static";)$n=getTrueOffsetParent($n);return $n&&(getNodeName($n)==="html"||getNodeName($n)==="body"&&getComputedStyle($n).position==="static")?Cn:$n||getContainingBlock(_n)||Cn}function getMainAxisFromPlacement(_n){return["top","bottom"].indexOf(_n)>=0?"x":"y"}function within(_n,Cn,$n){return max(_n,min(Cn,$n))}function withinMaxClamp(_n,Cn,$n){var Nn=within(_n,Cn,$n);return Nn>$n?$n:Nn}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(_n){return Object.assign({},getFreshSideObject(),_n)}function expandToHashMap(_n,Cn){return Cn.reduce(function($n,Nn){return $n[Nn]=_n,$n},{})}var toPaddingObject=function _n(Cn,$n){return Cn=typeof Cn=="function"?Cn(Object.assign({},$n.rects,{placement:$n.placement})):Cn,mergePaddingObject(typeof Cn!="number"?Cn:expandToHashMap(Cn,basePlacements))};function arrow(_n){var Cn,$n=_n.state,Nn=_n.name,Bn=_n.options,Ln=$n.elements.arrow,In=$n.modifiersData.popperOffsets,Pn=getBasePlacement$1($n.placement),Dn=getMainAxisFromPlacement(Pn),Hn=[left,right].indexOf(Pn)>=0,Wn=Hn?"height":"width";if(!(!Ln||!In)){var Xn=toPaddingObject(Bn.padding,$n),Gn=getLayoutRect(Ln),rr=Dn==="y"?top:left,nr=Dn==="y"?bottom:right,Yo=$n.rects.reference[Wn]+$n.rects.reference[Dn]-In[Dn]-$n.rects.popper[Wn],ei=In[Dn]-$n.rects.reference[Dn],ti=getOffsetParent(Ln),ui=ti?Dn==="y"?ti.clientHeight||0:ti.clientWidth||0:0,mi=Yo/2-ei/2,Xo=Xn[rr],vi=ui-Gn[Wn]-Xn[nr],zn=ui/2-Gn[Wn]/2+mi,Ni=within(Xo,zn,vi),ni=Dn;$n.modifiersData[Nn]=(Cn={},Cn[ni]=Ni,Cn.centerOffset=Ni-zn,Cn)}}function effect$1(_n){var Cn=_n.state,$n=_n.options,Nn=$n.element,Bn=Nn===void 0?"[data-popper-arrow]":Nn;Bn!=null&&(typeof Bn=="string"&&(Bn=Cn.elements.popper.querySelector(Bn),!Bn)||contains(Cn.elements.popper,Bn)&&(Cn.elements.arrow=Bn))}const arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(_n){return _n.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(_n,Cn){var $n=_n.x,Nn=_n.y,Bn=Cn.devicePixelRatio||1;return{x:round($n*Bn)/Bn||0,y:round(Nn*Bn)/Bn||0}}function mapToStyles(_n){var Cn,$n=_n.popper,Nn=_n.popperRect,Bn=_n.placement,Ln=_n.variation,In=_n.offsets,Pn=_n.position,Dn=_n.gpuAcceleration,Hn=_n.adaptive,Wn=_n.roundOffsets,Xn=_n.isFixed,Gn=In.x,rr=Gn===void 0?0:Gn,nr=In.y,Yo=nr===void 0?0:nr,ei=typeof Wn=="function"?Wn({x:rr,y:Yo}):{x:rr,y:Yo};rr=ei.x,Yo=ei.y;var ti=In.hasOwnProperty("x"),ui=In.hasOwnProperty("y"),mi=left,Xo=top,vi=window;if(Hn){var zn=getOffsetParent($n),Ni="clientHeight",ni="clientWidth";if(zn===getWindow($n)&&(zn=getDocumentElement($n),getComputedStyle(zn).position!=="static"&&Pn==="absolute"&&(Ni="scrollHeight",ni="scrollWidth")),zn=zn,Bn===top||(Bn===left||Bn===right)&&Ln===end){Xo=bottom;var Qo=Xn&&zn===vi&&vi.visualViewport?vi.visualViewport.height:zn[Ni];Yo-=Qo-Nn.height,Yo*=Dn?1:-1}if(Bn===left||(Bn===top||Bn===bottom)&&Ln===end){mi=right;var ri=Xn&&zn===vi&&vi.visualViewport?vi.visualViewport.width:zn[ni];rr-=ri-Nn.width,rr*=Dn?1:-1}}var ci=Object.assign({position:Pn},Hn&&unsetSides),pi=Wn===!0?roundOffsetsByDPR({x:rr,y:Yo},getWindow($n)):{x:rr,y:Yo};if(rr=pi.x,Yo=pi.y,Dn){var yi;return Object.assign({},ci,(yi={},yi[Xo]=ui?"0":"",yi[mi]=ti?"0":"",yi.transform=(vi.devicePixelRatio||1)<=1?"translate("+rr+"px, "+Yo+"px)":"translate3d("+rr+"px, "+Yo+"px, 0)",yi))}return Object.assign({},ci,(Cn={},Cn[Xo]=ui?Yo+"px":"",Cn[mi]=ti?rr+"px":"",Cn.transform="",Cn))}function computeStyles(_n){var Cn=_n.state,$n=_n.options,Nn=$n.gpuAcceleration,Bn=Nn===void 0?!0:Nn,Ln=$n.adaptive,In=Ln===void 0?!0:Ln,Pn=$n.roundOffsets,Dn=Pn===void 0?!0:Pn,Hn={placement:getBasePlacement$1(Cn.placement),variation:getVariation(Cn.placement),popper:Cn.elements.popper,popperRect:Cn.rects.popper,gpuAcceleration:Bn,isFixed:Cn.options.strategy==="fixed"};Cn.modifiersData.popperOffsets!=null&&(Cn.styles.popper=Object.assign({},Cn.styles.popper,mapToStyles(Object.assign({},Hn,{offsets:Cn.modifiersData.popperOffsets,position:Cn.options.strategy,adaptive:In,roundOffsets:Dn})))),Cn.modifiersData.arrow!=null&&(Cn.styles.arrow=Object.assign({},Cn.styles.arrow,mapToStyles(Object.assign({},Hn,{offsets:Cn.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Dn})))),Cn.attributes.popper=Object.assign({},Cn.attributes.popper,{"data-popper-placement":Cn.placement})}const computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:!0};function effect(_n){var Cn=_n.state,$n=_n.instance,Nn=_n.options,Bn=Nn.scroll,Ln=Bn===void 0?!0:Bn,In=Nn.resize,Pn=In===void 0?!0:In,Dn=getWindow(Cn.elements.popper),Hn=[].concat(Cn.scrollParents.reference,Cn.scrollParents.popper);return Ln&&Hn.forEach(function(Wn){Wn.addEventListener("scroll",$n.update,passive)}),Pn&&Dn.addEventListener("resize",$n.update,passive),function(){Ln&&Hn.forEach(function(Wn){Wn.removeEventListener("scroll",$n.update,passive)}),Pn&&Dn.removeEventListener("resize",$n.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function _n(){},effect,data:{}};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(_n){return _n.replace(/left|right|bottom|top/g,function(Cn){return hash$1[Cn]})}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(_n){return _n.replace(/start|end/g,function(Cn){return hash[Cn]})}function getWindowScroll(_n){var Cn=getWindow(_n),$n=Cn.pageXOffset,Nn=Cn.pageYOffset;return{scrollLeft:$n,scrollTop:Nn}}function getWindowScrollBarX(_n){return getBoundingClientRect(getDocumentElement(_n)).left+getWindowScroll(_n).scrollLeft}function getViewportRect(_n,Cn){var $n=getWindow(_n),Nn=getDocumentElement(_n),Bn=$n.visualViewport,Ln=Nn.clientWidth,In=Nn.clientHeight,Pn=0,Dn=0;if(Bn){Ln=Bn.width,In=Bn.height;var Hn=isLayoutViewport();(Hn||!Hn&&Cn==="fixed")&&(Pn=Bn.offsetLeft,Dn=Bn.offsetTop)}return{width:Ln,height:In,x:Pn+getWindowScrollBarX(_n),y:Dn}}function getDocumentRect(_n){var Cn,$n=getDocumentElement(_n),Nn=getWindowScroll(_n),Bn=(Cn=_n.ownerDocument)==null?void 0:Cn.body,Ln=max($n.scrollWidth,$n.clientWidth,Bn?Bn.scrollWidth:0,Bn?Bn.clientWidth:0),In=max($n.scrollHeight,$n.clientHeight,Bn?Bn.scrollHeight:0,Bn?Bn.clientHeight:0),Pn=-Nn.scrollLeft+getWindowScrollBarX(_n),Dn=-Nn.scrollTop;return getComputedStyle(Bn||$n).direction==="rtl"&&(Pn+=max($n.clientWidth,Bn?Bn.clientWidth:0)-Ln),{width:Ln,height:In,x:Pn,y:Dn}}function isScrollParent(_n){var Cn=getComputedStyle(_n),$n=Cn.overflow,Nn=Cn.overflowX,Bn=Cn.overflowY;return/auto|scroll|overlay|hidden/.test($n+Bn+Nn)}function getScrollParent(_n){return["html","body","#document"].indexOf(getNodeName(_n))>=0?_n.ownerDocument.body:isHTMLElement(_n)&&isScrollParent(_n)?_n:getScrollParent(getParentNode(_n))}function listScrollParents(_n,Cn){var $n;Cn===void 0&&(Cn=[]);var Nn=getScrollParent(_n),Bn=Nn===(($n=_n.ownerDocument)==null?void 0:$n.body),Ln=getWindow(Nn),In=Bn?[Ln].concat(Ln.visualViewport||[],isScrollParent(Nn)?Nn:[]):Nn,Pn=Cn.concat(In);return Bn?Pn:Pn.concat(listScrollParents(getParentNode(In)))}function rectToClientRect(_n){return Object.assign({},_n,{left:_n.x,top:_n.y,right:_n.x+_n.width,bottom:_n.y+_n.height})}function getInnerBoundingClientRect(_n,Cn){var $n=getBoundingClientRect(_n,!1,Cn==="fixed");return $n.top=$n.top+_n.clientTop,$n.left=$n.left+_n.clientLeft,$n.bottom=$n.top+_n.clientHeight,$n.right=$n.left+_n.clientWidth,$n.width=_n.clientWidth,$n.height=_n.clientHeight,$n.x=$n.left,$n.y=$n.top,$n}function getClientRectFromMixedType(_n,Cn,$n){return Cn===viewport?rectToClientRect(getViewportRect(_n,$n)):isElement$1(Cn)?getInnerBoundingClientRect(Cn,$n):rectToClientRect(getDocumentRect(getDocumentElement(_n)))}function getClippingParents(_n){var Cn=listScrollParents(getParentNode(_n)),$n=["absolute","fixed"].indexOf(getComputedStyle(_n).position)>=0,Nn=$n&&isHTMLElement(_n)?getOffsetParent(_n):_n;return isElement$1(Nn)?Cn.filter(function(Bn){return isElement$1(Bn)&&contains(Bn,Nn)&&getNodeName(Bn)!=="body"}):[]}function getClippingRect(_n,Cn,$n,Nn){var Bn=Cn==="clippingParents"?getClippingParents(_n):[].concat(Cn),Ln=[].concat(Bn,[$n]),In=Ln[0],Pn=Ln.reduce(function(Dn,Hn){var Wn=getClientRectFromMixedType(_n,Hn,Nn);return Dn.top=max(Wn.top,Dn.top),Dn.right=min(Wn.right,Dn.right),Dn.bottom=min(Wn.bottom,Dn.bottom),Dn.left=max(Wn.left,Dn.left),Dn},getClientRectFromMixedType(_n,In,Nn));return Pn.width=Pn.right-Pn.left,Pn.height=Pn.bottom-Pn.top,Pn.x=Pn.left,Pn.y=Pn.top,Pn}function computeOffsets(_n){var Cn=_n.reference,$n=_n.element,Nn=_n.placement,Bn=Nn?getBasePlacement$1(Nn):null,Ln=Nn?getVariation(Nn):null,In=Cn.x+Cn.width/2-$n.width/2,Pn=Cn.y+Cn.height/2-$n.height/2,Dn;switch(Bn){case top:Dn={x:In,y:Cn.y-$n.height};break;case bottom:Dn={x:In,y:Cn.y+Cn.height};break;case right:Dn={x:Cn.x+Cn.width,y:Pn};break;case left:Dn={x:Cn.x-$n.width,y:Pn};break;default:Dn={x:Cn.x,y:Cn.y}}var Hn=Bn?getMainAxisFromPlacement(Bn):null;if(Hn!=null){var Wn=Hn==="y"?"height":"width";switch(Ln){case start:Dn[Hn]=Dn[Hn]-(Cn[Wn]/2-$n[Wn]/2);break;case end:Dn[Hn]=Dn[Hn]+(Cn[Wn]/2-$n[Wn]/2);break}}return Dn}function detectOverflow(_n,Cn){Cn===void 0&&(Cn={});var $n=Cn,Nn=$n.placement,Bn=Nn===void 0?_n.placement:Nn,Ln=$n.strategy,In=Ln===void 0?_n.strategy:Ln,Pn=$n.boundary,Dn=Pn===void 0?clippingParents:Pn,Hn=$n.rootBoundary,Wn=Hn===void 0?viewport:Hn,Xn=$n.elementContext,Gn=Xn===void 0?popper:Xn,rr=$n.altBoundary,nr=rr===void 0?!1:rr,Yo=$n.padding,ei=Yo===void 0?0:Yo,ti=mergePaddingObject(typeof ei!="number"?ei:expandToHashMap(ei,basePlacements)),ui=Gn===popper?reference:popper,mi=_n.rects.popper,Xo=_n.elements[nr?ui:Gn],vi=getClippingRect(isElement$1(Xo)?Xo:Xo.contextElement||getDocumentElement(_n.elements.popper),Dn,Wn,In),zn=getBoundingClientRect(_n.elements.reference),Ni=computeOffsets({reference:zn,element:mi,strategy:"absolute",placement:Bn}),ni=rectToClientRect(Object.assign({},mi,Ni)),Qo=Gn===popper?ni:zn,ri={top:vi.top-Qo.top+ti.top,bottom:Qo.bottom-vi.bottom+ti.bottom,left:vi.left-Qo.left+ti.left,right:Qo.right-vi.right+ti.right},ci=_n.modifiersData.offset;if(Gn===popper&&ci){var pi=ci[Bn];Object.keys(ri).forEach(function(yi){var Li=[right,bottom].indexOf(yi)>=0?1:-1,ta=[top,bottom].indexOf(yi)>=0?"y":"x";ri[yi]+=pi[ta]*Li})}return ri}function computeAutoPlacement(_n,Cn){Cn===void 0&&(Cn={});var $n=Cn,Nn=$n.placement,Bn=$n.boundary,Ln=$n.rootBoundary,In=$n.padding,Pn=$n.flipVariations,Dn=$n.allowedAutoPlacements,Hn=Dn===void 0?placements:Dn,Wn=getVariation(Nn),Xn=Wn?Pn?variationPlacements:variationPlacements.filter(function(nr){return getVariation(nr)===Wn}):basePlacements,Gn=Xn.filter(function(nr){return Hn.indexOf(nr)>=0});Gn.length===0&&(Gn=Xn);var rr=Gn.reduce(function(nr,Yo){return nr[Yo]=detectOverflow(_n,{placement:Yo,boundary:Bn,rootBoundary:Ln,padding:In})[getBasePlacement$1(Yo)],nr},{});return Object.keys(rr).sort(function(nr,Yo){return rr[nr]-rr[Yo]})}function getExpandedFallbackPlacements(_n){if(getBasePlacement$1(_n)===auto)return[];var Cn=getOppositePlacement(_n);return[getOppositeVariationPlacement(_n),Cn,getOppositeVariationPlacement(Cn)]}function flip(_n){var Cn=_n.state,$n=_n.options,Nn=_n.name;if(!Cn.modifiersData[Nn]._skip){for(var Bn=$n.mainAxis,Ln=Bn===void 0?!0:Bn,In=$n.altAxis,Pn=In===void 0?!0:In,Dn=$n.fallbackPlacements,Hn=$n.padding,Wn=$n.boundary,Xn=$n.rootBoundary,Gn=$n.altBoundary,rr=$n.flipVariations,nr=rr===void 0?!0:rr,Yo=$n.allowedAutoPlacements,ei=Cn.options.placement,ti=getBasePlacement$1(ei),ui=ti===ei,mi=Dn||(ui||!nr?[getOppositePlacement(ei)]:getExpandedFallbackPlacements(ei)),Xo=[ei].concat(mi).reduce(function(ji,Ki){return ji.concat(getBasePlacement$1(Ki)===auto?computeAutoPlacement(Cn,{placement:Ki,boundary:Wn,rootBoundary:Xn,padding:Hn,flipVariations:nr,allowedAutoPlacements:Yo}):Ki)},[]),vi=Cn.rects.reference,zn=Cn.rects.popper,Ni=new Map,ni=!0,Qo=Xo[0],ri=0;ri<Xo.length;ri++){var ci=Xo[ri],pi=getBasePlacement$1(ci),yi=getVariation(ci)===start,Li=[top,bottom].indexOf(pi)>=0,ta=Li?"width":"height",Yi=detectOverflow(Cn,{placement:ci,boundary:Wn,rootBoundary:Xn,altBoundary:Gn,padding:Hn}),bi=Li?yi?right:left:yi?bottom:top;vi[ta]>zn[ta]&&(bi=getOppositePlacement(bi));var xi=getOppositePlacement(bi),Ii=[];if(Ln&&Ii.push(Yi[pi]<=0),Pn&&Ii.push(Yi[bi]<=0,Yi[xi]<=0),Ii.every(function(ji){return ji})){Qo=ci,ni=!1;break}Ni.set(ci,Ii)}if(ni)for(var da=nr?3:1,oa=function(Ki){var zi=Xo.find(function(ea){var ca=Ni.get(ea);if(ca)return ca.slice(0,Ki).every(function(qi){return qi})});if(zi)return Qo=zi,"break"},Si=da;Si>0;Si--){var Mi=oa(Si);if(Mi==="break")break}Cn.placement!==Qo&&(Cn.modifiersData[Nn]._skip=!0,Cn.placement=Qo,Cn.reset=!0)}}const flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(_n,Cn,$n){return $n===void 0&&($n={x:0,y:0}),{top:_n.top-Cn.height-$n.y,right:_n.right-Cn.width+$n.x,bottom:_n.bottom-Cn.height+$n.y,left:_n.left-Cn.width-$n.x}}function isAnySideFullyClipped(_n){return[top,right,bottom,left].some(function(Cn){return _n[Cn]>=0})}function hide(_n){var Cn=_n.state,$n=_n.name,Nn=Cn.rects.reference,Bn=Cn.rects.popper,Ln=Cn.modifiersData.preventOverflow,In=detectOverflow(Cn,{elementContext:"reference"}),Pn=detectOverflow(Cn,{altBoundary:!0}),Dn=getSideOffsets(In,Nn),Hn=getSideOffsets(Pn,Bn,Ln),Wn=isAnySideFullyClipped(Dn),Xn=isAnySideFullyClipped(Hn);Cn.modifiersData[$n]={referenceClippingOffsets:Dn,popperEscapeOffsets:Hn,isReferenceHidden:Wn,hasPopperEscaped:Xn},Cn.attributes.popper=Object.assign({},Cn.attributes.popper,{"data-popper-reference-hidden":Wn,"data-popper-escaped":Xn})}const hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(_n,Cn,$n){var Nn=getBasePlacement$1(_n),Bn=[left,top].indexOf(Nn)>=0?-1:1,Ln=typeof $n=="function"?$n(Object.assign({},Cn,{placement:_n})):$n,In=Ln[0],Pn=Ln[1];return In=In||0,Pn=(Pn||0)*Bn,[left,right].indexOf(Nn)>=0?{x:Pn,y:In}:{x:In,y:Pn}}function offset(_n){var Cn=_n.state,$n=_n.options,Nn=_n.name,Bn=$n.offset,Ln=Bn===void 0?[0,0]:Bn,In=placements.reduce(function(Wn,Xn){return Wn[Xn]=distanceAndSkiddingToXY(Xn,Cn.rects,Ln),Wn},{}),Pn=In[Cn.placement],Dn=Pn.x,Hn=Pn.y;Cn.modifiersData.popperOffsets!=null&&(Cn.modifiersData.popperOffsets.x+=Dn,Cn.modifiersData.popperOffsets.y+=Hn),Cn.modifiersData[Nn]=In}const offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(_n){var Cn=_n.state,$n=_n.name;Cn.modifiersData[$n]=computeOffsets({reference:Cn.rects.reference,element:Cn.rects.popper,strategy:"absolute",placement:Cn.placement})}const popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(_n){return _n==="x"?"y":"x"}function preventOverflow(_n){var Cn=_n.state,$n=_n.options,Nn=_n.name,Bn=$n.mainAxis,Ln=Bn===void 0?!0:Bn,In=$n.altAxis,Pn=In===void 0?!1:In,Dn=$n.boundary,Hn=$n.rootBoundary,Wn=$n.altBoundary,Xn=$n.padding,Gn=$n.tether,rr=Gn===void 0?!0:Gn,nr=$n.tetherOffset,Yo=nr===void 0?0:nr,ei=detectOverflow(Cn,{boundary:Dn,rootBoundary:Hn,padding:Xn,altBoundary:Wn}),ti=getBasePlacement$1(Cn.placement),ui=getVariation(Cn.placement),mi=!ui,Xo=getMainAxisFromPlacement(ti),vi=getAltAxis(Xo),zn=Cn.modifiersData.popperOffsets,Ni=Cn.rects.reference,ni=Cn.rects.popper,Qo=typeof Yo=="function"?Yo(Object.assign({},Cn.rects,{placement:Cn.placement})):Yo,ri=typeof Qo=="number"?{mainAxis:Qo,altAxis:Qo}:Object.assign({mainAxis:0,altAxis:0},Qo),ci=Cn.modifiersData.offset?Cn.modifiersData.offset[Cn.placement]:null,pi={x:0,y:0};if(zn){if(Ln){var yi,Li=Xo==="y"?top:left,ta=Xo==="y"?bottom:right,Yi=Xo==="y"?"height":"width",bi=zn[Xo],xi=bi+ei[Li],Ii=bi-ei[ta],da=rr?-ni[Yi]/2:0,oa=ui===start?Ni[Yi]:ni[Yi],Si=ui===start?-ni[Yi]:-Ni[Yi],Mi=Cn.elements.arrow,ji=rr&&Mi?getLayoutRect(Mi):{width:0,height:0},Ki=Cn.modifiersData["arrow#persistent"]?Cn.modifiersData["arrow#persistent"].padding:getFreshSideObject(),zi=Ki[Li],ea=Ki[ta],ca=within(0,Ni[Yi],ji[Yi]),qi=mi?Ni[Yi]/2-da-ca-zi-ri.mainAxis:oa-ca-zi-ri.mainAxis,fa=mi?-Ni[Yi]/2+da+ca+ea+ri.mainAxis:Si+ca+ea+ri.mainAxis,ya=Cn.elements.arrow&&getOffsetParent(Cn.elements.arrow),oi=ya?Xo==="y"?ya.clientTop||0:ya.clientLeft||0:0,si=(yi=ci==null?void 0:ci[Xo])!=null?yi:0,_i=bi+qi-si-oi,Ti=bi+fa-si,fi=within(rr?min(xi,_i):xi,bi,rr?max(Ii,Ti):Ii);zn[Xo]=fi,pi[Xo]=fi-bi}if(Pn){var Ei,Fi=Xo==="x"?top:left,Pi=Xo==="x"?bottom:right,Vi=zn[vi],Bi=vi==="y"?"height":"width",Wi=Vi+ei[Fi],Hi=Vi-ei[Pi],Ji=[top,left].indexOf(ti)!==-1,Ui=(Ei=ci==null?void 0:ci[vi])!=null?Ei:0,ia=Ji?Wi:Vi-Ni[Bi]-ni[Bi]-Ui+ri.altAxis,va=Ji?Vi+Ni[Bi]+ni[Bi]-Ui-ri.altAxis:Hi,ha=rr&&Ji?withinMaxClamp(ia,Vi,va):within(rr?ia:Wi,Vi,rr?va:Hi);zn[vi]=ha,pi[vi]=ha-Vi}Cn.modifiersData[Nn]=pi}}const preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(_n){return{scrollLeft:_n.scrollLeft,scrollTop:_n.scrollTop}}function getNodeScroll(_n){return _n===getWindow(_n)||!isHTMLElement(_n)?getWindowScroll(_n):getHTMLElementScroll(_n)}function isElementScaled(_n){var Cn=_n.getBoundingClientRect(),$n=round(Cn.width)/_n.offsetWidth||1,Nn=round(Cn.height)/_n.offsetHeight||1;return $n!==1||Nn!==1}function getCompositeRect(_n,Cn,$n){$n===void 0&&($n=!1);var Nn=isHTMLElement(Cn),Bn=isHTMLElement(Cn)&&isElementScaled(Cn),Ln=getDocumentElement(Cn),In=getBoundingClientRect(_n,Bn,$n),Pn={scrollLeft:0,scrollTop:0},Dn={x:0,y:0};return(Nn||!Nn&&!$n)&&((getNodeName(Cn)!=="body"||isScrollParent(Ln))&&(Pn=getNodeScroll(Cn)),isHTMLElement(Cn)?(Dn=getBoundingClientRect(Cn,!0),Dn.x+=Cn.clientLeft,Dn.y+=Cn.clientTop):Ln&&(Dn.x=getWindowScrollBarX(Ln))),{x:In.left+Pn.scrollLeft-Dn.x,y:In.top+Pn.scrollTop-Dn.y,width:In.width,height:In.height}}function order(_n){var Cn=new Map,$n=new Set,Nn=[];_n.forEach(function(Ln){Cn.set(Ln.name,Ln)});function Bn(Ln){$n.add(Ln.name);var In=[].concat(Ln.requires||[],Ln.requiresIfExists||[]);In.forEach(function(Pn){if(!$n.has(Pn)){var Dn=Cn.get(Pn);Dn&&Bn(Dn)}}),Nn.push(Ln)}return _n.forEach(function(Ln){$n.has(Ln.name)||Bn(Ln)}),Nn}function orderModifiers(_n){var Cn=order(_n);return modifierPhases.reduce(function($n,Nn){return $n.concat(Cn.filter(function(Bn){return Bn.phase===Nn}))},[])}function debounce$1(_n){var Cn;return function(){return Cn||(Cn=new Promise(function($n){Promise.resolve().then(function(){Cn=void 0,$n(_n())})})),Cn}}function mergeByName(_n){var Cn=_n.reduce(function($n,Nn){var Bn=$n[Nn.name];return $n[Nn.name]=Bn?Object.assign({},Bn,Nn,{options:Object.assign({},Bn.options,Nn.options),data:Object.assign({},Bn.data,Nn.data)}):Nn,$n},{});return Object.keys(Cn).map(function($n){return Cn[$n]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var _n=arguments.length,Cn=new Array(_n),$n=0;$n<_n;$n++)Cn[$n]=arguments[$n];return!Cn.some(function(Nn){return!(Nn&&typeof Nn.getBoundingClientRect=="function")})}function popperGenerator(_n){_n===void 0&&(_n={});var Cn=_n,$n=Cn.defaultModifiers,Nn=$n===void 0?[]:$n,Bn=Cn.defaultOptions,Ln=Bn===void 0?DEFAULT_OPTIONS:Bn;return function(Pn,Dn,Hn){Hn===void 0&&(Hn=Ln);var Wn={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,Ln),modifiersData:{},elements:{reference:Pn,popper:Dn},attributes:{},styles:{}},Xn=[],Gn=!1,rr={state:Wn,setOptions:function(ti){var ui=typeof ti=="function"?ti(Wn.options):ti;Yo(),Wn.options=Object.assign({},Ln,Wn.options,ui),Wn.scrollParents={reference:isElement$1(Pn)?listScrollParents(Pn):Pn.contextElement?listScrollParents(Pn.contextElement):[],popper:listScrollParents(Dn)};var mi=orderModifiers(mergeByName([].concat(Nn,Wn.options.modifiers)));return Wn.orderedModifiers=mi.filter(function(Xo){return Xo.enabled}),nr(),rr.update()},forceUpdate:function(){if(!Gn){var ti=Wn.elements,ui=ti.reference,mi=ti.popper;if(areValidElements(ui,mi)){Wn.rects={reference:getCompositeRect(ui,getOffsetParent(mi),Wn.options.strategy==="fixed"),popper:getLayoutRect(mi)},Wn.reset=!1,Wn.placement=Wn.options.placement,Wn.orderedModifiers.forEach(function(ri){return Wn.modifiersData[ri.name]=Object.assign({},ri.data)});for(var Xo=0;Xo<Wn.orderedModifiers.length;Xo++){if(Wn.reset===!0){Wn.reset=!1,Xo=-1;continue}var vi=Wn.orderedModifiers[Xo],zn=vi.fn,Ni=vi.options,ni=Ni===void 0?{}:Ni,Qo=vi.name;typeof zn=="function"&&(Wn=zn({state:Wn,options:ni,name:Qo,instance:rr})||Wn)}}}},update:debounce$1(function(){return new Promise(function(ei){rr.forceUpdate(),ei(Wn)})}),destroy:function(){Yo(),Gn=!0}};if(!areValidElements(Pn,Dn))return rr;rr.setOptions(Hn).then(function(ei){!Gn&&Hn.onFirstUpdate&&Hn.onFirstUpdate(ei)});function nr(){Wn.orderedModifiers.forEach(function(ei){var ti=ei.name,ui=ei.options,mi=ui===void 0?{}:ui,Xo=ei.effect;if(typeof Xo=="function"){var vi=Xo({state:Wn,name:ti,instance:rr,options:mi}),zn=function(){};Xn.push(vi||zn)}})}function Yo(){Xn.forEach(function(ei){return ei()}),Xn=[]}return rr}}var defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1],createPopper=popperGenerator({defaultModifiers});/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function isObject$3(_n){return Object.prototype.toString.call(_n)==="[object Object]"}function isPlainObject$2(_n){var Cn,$n;return isObject$3(_n)===!1?!1:(Cn=_n.constructor,Cn===void 0?!0:($n=Cn.prototype,!(isObject$3($n)===!1||$n.hasOwnProperty("isPrototypeOf")===!1)))}function t$1(){return t$1=Object.assign?Object.assign.bind():function(_n){for(var Cn=1;Cn<arguments.length;Cn++){var $n=arguments[Cn];for(var Nn in $n)Object.prototype.hasOwnProperty.call($n,Nn)&&(_n[Nn]=$n[Nn])}return _n},t$1.apply(this,arguments)}function r$1(_n,Cn){if(_n==null)return{};var $n,Nn,Bn={},Ln=Object.keys(_n);for(Nn=0;Nn<Ln.length;Nn++)Cn.indexOf($n=Ln[Nn])>=0||(Bn[$n]=_n[$n]);return Bn}const n$1={silent:!1,logLevel:"warn"},i$2=["validator"],o$1=Object.prototype,a$1=o$1.toString,s$1=o$1.hasOwnProperty,u$1=/^\s*function (\w+)/;function l$1(_n){var Cn;const $n=(Cn=_n==null?void 0:_n.type)!==null&&Cn!==void 0?Cn:_n;if($n){const Nn=$n.toString().match(u$1);return Nn?Nn[1]:""}return""}const c$1=isPlainObject$2,f$1=_n=>_n;let d$1=f$1;const p$1=(_n,Cn)=>s$1.call(_n,Cn),y$1=Number.isInteger||function(_n){return typeof _n=="number"&&isFinite(_n)&&Math.floor(_n)===_n},v$1=Array.isArray||function(_n){return a$1.call(_n)==="[object Array]"},h$1=_n=>a$1.call(_n)==="[object Function]",b$1=_n=>c$1(_n)&&p$1(_n,"_vueTypes_name"),g$1=_n=>c$1(_n)&&(p$1(_n,"type")||["_vueTypes_name","validator","default","required"].some(Cn=>p$1(_n,Cn)));function O$1(_n,Cn){return Object.defineProperty(_n.bind(Cn),"__original",{value:_n})}function m$1(_n,Cn,$n=!1){let Nn,Bn=!0,Ln="";Nn=c$1(_n)?_n:{type:_n};const In=b$1(Nn)?Nn._vueTypes_name+" - ":"";if(g$1(Nn)&&Nn.type!==null){if(Nn.type===void 0||Nn.type===!0||!Nn.required&&Cn===void 0)return Bn;v$1(Nn.type)?(Bn=Nn.type.some(Pn=>m$1(Pn,Cn,!0)===!0),Ln=Nn.type.map(Pn=>l$1(Pn)).join(" or ")):(Ln=l$1(Nn),Bn=Ln==="Array"?v$1(Cn):Ln==="Object"?c$1(Cn):Ln==="String"||Ln==="Number"||Ln==="Boolean"||Ln==="Function"?function(Pn){if(Pn==null)return"";const Dn=Pn.constructor.toString().match(u$1);return Dn?Dn[1]:""}(Cn)===Ln:Cn instanceof Nn.type)}if(!Bn){const Pn=`${In}value "${Cn}" should be of type "${Ln}"`;return $n===!1?(d$1(Pn),!1):Pn}if(p$1(Nn,"validator")&&h$1(Nn.validator)){const Pn=d$1,Dn=[];if(d$1=Hn=>{Dn.push(Hn)},Bn=Nn.validator(Cn),d$1=Pn,!Bn){const Hn=(Dn.length>1?"* ":"")+Dn.join(`
* `);return Dn.length=0,$n===!1?(d$1(Hn),Bn):Hn}}return Bn}function j$1(_n,Cn){const $n=Object.defineProperties(Cn,{_vueTypes_name:{value:_n,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(Bn){return Bn===void 0?(p$1(this,"default")&&delete this.default,this):h$1(Bn)||m$1(this,Bn,!0)===!0?(this.default=v$1(Bn)?()=>[...Bn]:c$1(Bn)?()=>Object.assign({},Bn):Bn,this):(d$1(`${this._vueTypes_name} - invalid default value: "${Bn}"`),this)}}}),{validator:Nn}=$n;return h$1(Nn)&&($n.validator=O$1(Nn,$n)),$n}function _$1(_n,Cn){const $n=j$1(_n,Cn);return Object.defineProperty($n,"validate",{value(Nn){return h$1(this.validator)&&d$1(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:
${JSON.stringify(this)}`),this.validator=O$1(Nn,this),this}})}function T$1(_n,Cn,$n){const Nn=function(Dn){const Hn={};return Object.getOwnPropertyNames(Dn).forEach(Wn=>{Hn[Wn]=Object.getOwnPropertyDescriptor(Dn,Wn)}),Object.defineProperties({},Hn)}(Cn);if(Nn._vueTypes_name=_n,!c$1($n))return Nn;const{validator:Bn}=$n,Ln=r$1($n,i$2);if(h$1(Bn)){let{validator:Dn}=Nn;Dn&&(Dn=(Pn=(In=Dn).__original)!==null&&Pn!==void 0?Pn:In),Nn.validator=O$1(Dn?function(Hn){return Dn.call(this,Hn)&&Bn.call(this,Hn)}:Bn,Nn)}var In,Pn;return Object.assign(Nn,Ln)}function $$1(_n){return _n.replace(/^(?!\s*$)/gm," ")}const w$1=()=>_$1("any",{}),P$1=()=>_$1("function",{type:Function}),x$1=()=>_$1("boolean",{type:Boolean}),E$1=()=>_$1("string",{type:String}),N$1=()=>_$1("number",{type:Number}),q$1=()=>_$1("array",{type:Array}),A$1=()=>_$1("object",{type:Object}),V$2=()=>j$1("integer",{type:Number,validator:_n=>y$1(_n)}),S$1=()=>j$1("symbol",{validator:_n=>typeof _n=="symbol"});function D$1(_n,Cn="custom validation failed"){if(typeof _n!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return j$1(_n.name||"<<anonymous function>>",{type:null,validator($n){const Nn=_n($n);return Nn||d$1(`${this._vueTypes_name} - ${Cn}`),Nn}})}function L$2(_n){if(!v$1(_n))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const Cn=`oneOf - value should be one of "${_n.join('", "')}".`,$n=_n.reduce((Nn,Bn)=>{if(Bn!=null){const Ln=Bn.constructor;Nn.indexOf(Ln)===-1&&Nn.push(Ln)}return Nn},[]);return j$1("oneOf",{type:$n.length>0?$n:void 0,validator(Nn){const Bn=_n.indexOf(Nn)!==-1;return Bn||d$1(Cn),Bn}})}function F$1(_n){if(!v$1(_n))throw new TypeError("[VueTypes error]: You must provide an array as argument");let Cn=!1,$n=[];for(let Bn=0;Bn<_n.length;Bn+=1){const Ln=_n[Bn];if(g$1(Ln)){if(b$1(Ln)&&Ln._vueTypes_name==="oneOf"&&Ln.type){$n=$n.concat(Ln.type);continue}if(h$1(Ln.validator)&&(Cn=!0),Ln.type===!0||!Ln.type){d$1('oneOfType - invalid usage of "true" or "null" as types.');continue}$n=$n.concat(Ln.type)}else $n.push(Ln)}$n=$n.filter((Bn,Ln)=>$n.indexOf(Bn)===Ln);const Nn=$n.length>0?$n:null;return j$1("oneOfType",Cn?{type:Nn,validator(Bn){const Ln=[],In=_n.some(Pn=>{const Dn=m$1(b$1(Pn)&&Pn._vueTypes_name==="oneOf"?Pn.type||null:Pn,Bn,!0);return typeof Dn=="string"&&Ln.push(Dn),Dn===!0});return In||d$1(`oneOfType - provided value does not match any of the ${Ln.length} passed-in validators:
${$$1(Ln.join(`
`))}`),In}}:{type:Nn})}function Y$1(_n){return j$1("arrayOf",{type:Array,validator(Cn){let $n="";const Nn=Cn.every(Bn=>($n=m$1(_n,Bn,!0),$n===!0));return Nn||d$1(`arrayOf - value validation error:
${$$1($n)}`),Nn}})}function B$1(_n){return j$1("instanceOf",{type:_n})}function I$1(_n){return j$1("objectOf",{type:Object,validator(Cn){let $n="";const Nn=Object.keys(Cn).every(Bn=>($n=m$1(_n,Cn[Bn],!0),$n===!0));return Nn||d$1(`objectOf - value validation error:
${$$1($n)}`),Nn}})}function J$1(_n){const Cn=Object.keys(_n),$n=Cn.filter(Bn=>{var Ln;return!((Ln=_n[Bn])===null||Ln===void 0||!Ln.required)}),Nn=j$1("shape",{type:Object,validator(Bn){if(!c$1(Bn))return!1;const Ln=Object.keys(Bn);if($n.length>0&&$n.some(In=>Ln.indexOf(In)===-1)){const In=$n.filter(Pn=>Ln.indexOf(Pn)===-1);return d$1(In.length===1?`shape - required property "${In[0]}" is not defined.`:`shape - required properties "${In.join('", "')}" are not defined.`),!1}return Ln.every(In=>{if(Cn.indexOf(In)===-1)return this._vueTypes_isLoose===!0||(d$1(`shape - shape definition does not include a "${In}" property. Allowed keys: "${Cn.join('", "')}".`),!1);const Pn=m$1(_n[In],Bn[In],!0);return typeof Pn=="string"&&d$1(`shape - "${In}" property validation error:
${$$1(Pn)}`),Pn===!0})}});return Object.defineProperty(Nn,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(Nn,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),Nn}const M$1=["name","validate","getter"],R$2=(()=>{var _n;return(_n=class{static get any(){return w$1()}static get func(){return P$1().def(this.defaults.func)}static get bool(){return x$1().def(this.defaults.bool)}static get string(){return E$1().def(this.defaults.string)}static get number(){return N$1().def(this.defaults.number)}static get array(){return q$1().def(this.defaults.array)}static get object(){return A$1().def(this.defaults.object)}static get integer(){return V$2().def(this.defaults.integer)}static get symbol(){return S$1()}static get nullable(){return{type:null}}static extend(Cn){if(v$1(Cn))return Cn.forEach(Dn=>this.extend(Dn)),this;const{name:$n,validate:Nn=!1,getter:Bn=!1}=Cn,Ln=r$1(Cn,M$1);if(p$1(this,$n))throw new TypeError(`[VueTypes error]: Type "${$n}" already defined`);const{type:In}=Ln;if(b$1(In))return delete Ln.type,Object.defineProperty(this,$n,Bn?{get:()=>T$1($n,In,Ln)}:{value(...Dn){const Hn=T$1($n,In,Ln);return Hn.validator&&(Hn.validator=Hn.validator.bind(Hn,...Dn)),Hn}});let Pn;return Pn=Bn?{get(){const Dn=Object.assign({},Ln);return Nn?_$1($n,Dn):j$1($n,Dn)},enumerable:!0}:{value(...Dn){const Hn=Object.assign({},Ln);let Wn;return Wn=Nn?_$1($n,Hn):j$1($n,Hn),Hn.validator&&(Wn.validator=Hn.validator.bind(Wn,...Dn)),Wn},enumerable:!0},Object.defineProperty(this,$n,Pn)}}).defaults={},_n.sensibleDefaults=void 0,_n.config=n$1,_n.custom=D$1,_n.oneOf=L$2,_n.instanceOf=B$1,_n.oneOfType=F$1,_n.arrayOf=Y$1,_n.objectOf=I$1,_n.shape=J$1,_n.utils={validate:(Cn,$n)=>m$1($n,Cn,!0)===!0,toType:(Cn,$n,Nn=!1)=>Nn?_$1(Cn,$n):j$1(Cn,$n)},_n})();function z$1(_n={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var Cn;return(Cn=class extends R$2{static get sensibleDefaults(){return t$1({},this.defaults)}static set sensibleDefaults($n){this.defaults=$n!==!1?t$1({},$n!==!0?$n:_n):{}}}).defaults=t$1({},_n),Cn}let C$1=class extends z$1(){};var t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function e(_n){var Cn={exports:{}};return _n(Cn,Cn.exports),Cn.exports}var n=function(_n){return _n&&_n.Math==Math&&_n},r=n(typeof globalThis=="object"&&globalThis)||n(typeof window=="object"&&window)||n(typeof self=="object"&&self)||n(typeof t=="object"&&t)||function(){return this}()||Function("return this")(),o=function(_n){try{return!!_n()}catch{return!0}},i$1=!o(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),u={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,c={f:a&&!u.call({1:2},1)?function(_n){var Cn=a(this,_n);return!!Cn&&Cn.enumerable}:u},l=function(_n,Cn){return{enumerable:!(1&_n),configurable:!(2&_n),writable:!(4&_n),value:Cn}},f={}.toString,s=function(_n){return f.call(_n).slice(8,-1)},d="".split,v=o(function(){return!Object("z").propertyIsEnumerable(0)})?function(_n){return s(_n)=="String"?d.call(_n,""):Object(_n)}:Object,p=function(_n){if(_n==null)throw TypeError("Can't call method on "+_n);return _n},g=function(_n){return v(p(_n))},h=function(_n){return typeof _n=="object"?_n!==null:typeof _n=="function"},y=function(_n,Cn){if(!h(_n))return _n;var $n,Nn;if(Cn&&typeof($n=_n.toString)=="function"&&!h(Nn=$n.call(_n))||typeof($n=_n.valueOf)=="function"&&!h(Nn=$n.call(_n))||!Cn&&typeof($n=_n.toString)=="function"&&!h(Nn=$n.call(_n)))return Nn;throw TypeError("Can't convert object to primitive value")},m={}.hasOwnProperty,S=function(_n,Cn){return m.call(_n,Cn)},x=r.document,b=h(x)&&h(x.createElement),E=function(_n){return b?x.createElement(_n):{}},w=!i$1&&!o(function(){return Object.defineProperty(E("div"),"a",{get:function(){return 7}}).a!=7}),O=Object.getOwnPropertyDescriptor,T={f:i$1?O:function(_n,Cn){if(_n=g(_n),Cn=y(Cn,!0),w)try{return O(_n,Cn)}catch{}if(S(_n,Cn))return l(!c.f.call(_n,Cn),_n[Cn])}},A=function(_n){if(!h(_n))throw TypeError(String(_n)+" is not an object");return _n},k=Object.defineProperty,R$1={f:i$1?k:function(_n,Cn,$n){if(A(_n),Cn=y(Cn,!0),A($n),w)try{return k(_n,Cn,$n)}catch{}if("get"in $n||"set"in $n)throw TypeError("Accessors not supported");return"value"in $n&&(_n[Cn]=$n.value),_n}},I=i$1?function(_n,Cn,$n){return R$1.f(_n,Cn,l(1,$n))}:function(_n,Cn,$n){return _n[Cn]=$n,_n},j=function(_n,Cn){try{I(r,_n,Cn)}catch{r[_n]=Cn}return Cn},C=r["__core-js_shared__"]||j("__core-js_shared__",{}),L$1=Function.toString;typeof C.inspectSource!="function"&&(C.inspectSource=function(_n){return L$1.call(_n)});var P,M,_,D=C.inspectSource,U=r.WeakMap,N=typeof U=="function"&&/native code/.test(D(U)),F=e(function(_n){(_n.exports=function(Cn,$n){return C[Cn]||(C[Cn]=$n!==void 0?$n:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),W=0,z=Math.random(),$=function(_n){return"Symbol("+String(_n===void 0?"":_n)+")_"+(++W+z).toString(36)},B=F("keys"),Y=function(_n){return B[_n]||(B[_n]=$(_n))},G={},H=r.WeakMap;if(N){var X$1=C.state||(C.state=new H),V$1=X$1.get,K=X$1.has,q=X$1.set;P=function(_n,Cn){return Cn.facade=_n,q.call(X$1,_n,Cn),Cn},M=function(_n){return V$1.call(X$1,_n)||{}},_=function(_n){return K.call(X$1,_n)}}else{var Q=Y("state");G[Q]=!0,P=function(_n,Cn){return Cn.facade=_n,I(_n,Q,Cn),Cn},M=function(_n){return S(_n,Q)?_n[Q]:{}},_=function(_n){return S(_n,Q)}}var J={set:P,get:M,has:_,enforce:function(_n){return _(_n)?M(_n):P(_n,{})},getterFor:function(_n){return function(Cn){var $n;if(!h(Cn)||($n=M(Cn)).type!==_n)throw TypeError("Incompatible receiver, "+_n+" required");return $n}}},Z=e(function(_n){var Cn=J.get,$n=J.enforce,Nn=String(String).split("String");(_n.exports=function(Bn,Ln,In,Pn){var Dn,Hn=!!Pn&&!!Pn.unsafe,Wn=!!Pn&&!!Pn.enumerable,Xn=!!Pn&&!!Pn.noTargetGet;typeof In=="function"&&(typeof Ln!="string"||S(In,"name")||I(In,"name",Ln),(Dn=$n(In)).source||(Dn.source=Nn.join(typeof Ln=="string"?Ln:""))),Bn!==r?(Hn?!Xn&&Bn[Ln]&&(Wn=!0):delete Bn[Ln],Wn?Bn[Ln]=In:I(Bn,Ln,In)):Wn?Bn[Ln]=In:j(Ln,In)})(Function.prototype,"toString",function(){return typeof this=="function"&&Cn(this).source||D(this)})}),tt$1=r,et=function(_n){return typeof _n=="function"?_n:void 0},nt$1=function(_n,Cn){return arguments.length<2?et(tt$1[_n])||et(r[_n]):tt$1[_n]&&tt$1[_n][Cn]||r[_n]&&r[_n][Cn]},rt$1=Math.ceil,ot$1=Math.floor,it$1=function(_n){return isNaN(_n=+_n)?0:(_n>0?ot$1:rt$1)(_n)},ut$1=Math.min,at$1=function(_n){return _n>0?ut$1(it$1(_n),9007199254740991):0},ct$1=Math.max,lt$1=Math.min,ft$1=function(_n,Cn){var $n=it$1(_n);return $n<0?ct$1($n+Cn,0):lt$1($n,Cn)},st$1=function(_n){return function(Cn,$n,Nn){var Bn,Ln=g(Cn),In=at$1(Ln.length),Pn=ft$1(Nn,In);if(_n&&$n!=$n){for(;In>Pn;)if((Bn=Ln[Pn++])!=Bn)return!0}else for(;In>Pn;Pn++)if((_n||Pn in Ln)&&Ln[Pn]===$n)return _n||Pn||0;return!_n&&-1}},dt$1={includes:st$1(!0),indexOf:st$1(!1)},vt$1=dt$1.indexOf,pt$1=function(_n,Cn){var $n,Nn=g(_n),Bn=0,Ln=[];for($n in Nn)!S(G,$n)&&S(Nn,$n)&&Ln.push($n);for(;Cn.length>Bn;)S(Nn,$n=Cn[Bn++])&&(~vt$1(Ln,$n)||Ln.push($n));return Ln},gt$1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ht$1=gt$1.concat("length","prototype"),yt$1={f:Object.getOwnPropertyNames||function(_n){return pt$1(_n,ht$1)}},mt$1={f:Object.getOwnPropertySymbols},St$1=nt$1("Reflect","ownKeys")||function(_n){var Cn=yt$1.f(A(_n)),$n=mt$1.f;return $n?Cn.concat($n(_n)):Cn},xt$1=function(_n,Cn){for(var $n=St$1(Cn),Nn=R$1.f,Bn=T.f,Ln=0;Ln<$n.length;Ln++){var In=$n[Ln];S(_n,In)||Nn(_n,In,Bn(Cn,In))}},bt$1=/#|\.prototype\./,Et$1=function(_n,Cn){var $n=Ot$1[wt$1(_n)];return $n==At$1||$n!=Tt$1&&(typeof Cn=="function"?o(Cn):!!Cn)},wt$1=Et$1.normalize=function(_n){return String(_n).replace(bt$1,".").toLowerCase()},Ot$1=Et$1.data={},Tt$1=Et$1.NATIVE="N",At$1=Et$1.POLYFILL="P",kt$1=Et$1,Rt$1=T.f,It$1=function(_n,Cn){var $n,Nn,Bn,Ln,In,Pn=_n.target,Dn=_n.global,Hn=_n.stat;if($n=Dn?r:Hn?r[Pn]||j(Pn,{}):(r[Pn]||{}).prototype)for(Nn in Cn){if(Ln=Cn[Nn],Bn=_n.noTargetGet?(In=Rt$1($n,Nn))&&In.value:$n[Nn],!kt$1(Dn?Nn:Pn+(Hn?".":"#")+Nn,_n.forced)&&Bn!==void 0){if(typeof Ln==typeof Bn)continue;xt$1(Ln,Bn)}(_n.sham||Bn&&Bn.sham)&&I(Ln,"sham",!0),Z($n,Nn,Ln,_n)}},jt$1=function(_n,Cn){var $n=[][_n];return!!$n&&o(function(){$n.call(null,Cn||function(){throw 1},1)})},Ct$1=Object.defineProperty,Lt$1={},Pt$1=function(_n){throw _n},Mt$1=function(_n,Cn){if(S(Lt$1,_n))return Lt$1[_n];Cn||(Cn={});var $n=[][_n],Nn=!!S(Cn,"ACCESSORS")&&Cn.ACCESSORS,Bn=S(Cn,0)?Cn[0]:Pt$1,Ln=S(Cn,1)?Cn[1]:void 0;return Lt$1[_n]=!!$n&&!o(function(){if(Nn&&!i$1)return!0;var In={length:-1};Nn?Ct$1(In,1,{enumerable:!0,get:Pt$1}):In[1]=1,$n.call(In,Bn,Ln)})},_t$1=dt$1.indexOf,Dt$1=[].indexOf,Ut$1=!!Dt$1&&1/[1].indexOf(1,-0)<0,Nt$1=jt$1("indexOf"),Ft$1=Mt$1("indexOf",{ACCESSORS:!0,1:0});function Wt$1(_n,Cn){if(!(_n instanceof Cn))throw new TypeError("Cannot call a class as a function")}function zt$1(_n,Cn){for(var $n=0;$n<Cn.length;$n++){var Nn=Cn[$n];Nn.enumerable=Nn.enumerable||!1,Nn.configurable=!0,"value"in Nn&&(Nn.writable=!0),Object.defineProperty(_n,Nn.key,Nn)}}function $t$1(_n,Cn,$n){return Cn&&zt$1(_n.prototype,Cn),$n&&zt$1(_n,$n),_n}It$1({target:"Array",proto:!0,forced:Ut$1||!Nt$1||!Ft$1},{indexOf:function(_n){return Ut$1?Dt$1.apply(this,arguments)||0:_t$1(this,_n,arguments.length>1?arguments[1]:void 0)}}),function(){function _n(){Wt$1(this,_n)}return $t$1(_n,null,[{key:"isInBrowser",value:function(){return typeof window<"u"}},{key:"isServer",value:function(){return typeof window>"u"}},{key:"getUA",value:function(){return _n.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 Cn=_n.getUA();return Cn!==""&&Cn.indexOf("msie")>0}},{key:"isIE9",value:function(){var Cn=_n.getUA();return Cn!==""&&Cn.indexOf("msie 9.0")>0}},{key:"isEdge",value:function(){var Cn=_n.getUA();return Cn!==""&&Cn.indexOf("edge/")>0}},{key:"isChrome",value:function(){var Cn=_n.getUA();return Cn!==""&&/chrome\/\d+/.test(Cn)&&!_n.isEdge()}},{key:"isPhantomJS",value:function(){var Cn=_n.getUA();return Cn!==""&&/phantomjs/.test(Cn)}},{key:"isFirefox",value:function(){var Cn=_n.getUA();return Cn!==""&&/firefox/.test(Cn)}}]),_n}();var Yt$1=[].join,Gt$1=v!=Object,Ht$1=jt$1("join",",");It$1({target:"Array",proto:!0,forced:Gt$1||!Ht$1},{join:function(_n){return Yt$1.call(g(this),_n===void 0?",":_n)}});var Xt$1,Vt$1,Kt$1=function(_n){return Object(p(_n))},qt$1=Array.isArray||function(_n){return s(_n)=="Array"},Qt$1=!!Object.getOwnPropertySymbols&&!o(function(){return!String(Symbol())}),Jt$1=Qt$1&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Zt$1=F("wks"),te=r.Symbol,ee=Jt$1?te:te&&te.withoutSetter||$,ne=function(_n){return S(Zt$1,_n)||(Qt$1&&S(te,_n)?Zt$1[_n]=te[_n]:Zt$1[_n]=ee("Symbol."+_n)),Zt$1[_n]},re=ne("species"),oe=function(_n,Cn){var $n;return qt$1(_n)&&(typeof($n=_n.constructor)!="function"||$n!==Array&&!qt$1($n.prototype)?h($n)&&($n=$n[re])===null&&($n=void 0):$n=void 0),new($n===void 0?Array:$n)(Cn===0?0:Cn)},ie$1=function(_n,Cn,$n){var Nn=y(Cn);Nn in _n?R$1.f(_n,Nn,l(0,$n)):_n[Nn]=$n},ue=nt$1("navigator","userAgent")||"",ae$1=r.process,ce$1=ae$1&&ae$1.versions,le$1=ce$1&&ce$1.v8;le$1?Vt$1=(Xt$1=le$1.split("."))[0]+Xt$1[1]:ue&&(!(Xt$1=ue.match(/Edge\/(\d+)/))||Xt$1[1]>=74)&&(Xt$1=ue.match(/Chrome\/(\d+)/))&&(Vt$1=Xt$1[1]);var fe$1=Vt$1&&+Vt$1,se=ne("species"),de$1=function(_n){return fe$1>=51||!o(function(){var Cn=[];return(Cn.constructor={})[se]=function(){return{foo:1}},Cn[_n](Boolean).foo!==1})},ve$1=de$1("splice"),pe$1=Mt$1("splice",{ACCESSORS:!0,0:0,1:2}),ge$1=Math.max,he$1=Math.min;It$1({target:"Array",proto:!0,forced:!ve$1||!pe$1},{splice:function(_n,Cn){var $n,Nn,Bn,Ln,In,Pn,Dn=Kt$1(this),Hn=at$1(Dn.length),Wn=ft$1(_n,Hn),Xn=arguments.length;if(Xn===0?$n=Nn=0:Xn===1?($n=0,Nn=Hn-Wn):($n=Xn-2,Nn=he$1(ge$1(it$1(Cn),0),Hn-Wn)),Hn+$n-Nn>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(Bn=oe(Dn,Nn),Ln=0;Ln<Nn;Ln++)(In=Wn+Ln)in Dn&&ie$1(Bn,Ln,Dn[In]);if(Bn.length=Nn,$n<Nn){for(Ln=Wn;Ln<Hn-Nn;Ln++)Pn=Ln+$n,(In=Ln+Nn)in Dn?Dn[Pn]=Dn[In]:delete Dn[Pn];for(Ln=Hn;Ln>Hn-Nn+$n;Ln--)delete Dn[Ln-1]}else if($n>Nn)for(Ln=Hn-Nn;Ln>Wn;Ln--)Pn=Ln+$n-1,(In=Ln+Nn-1)in Dn?Dn[Pn]=Dn[In]:delete Dn[Pn];for(Ln=0;Ln<$n;Ln++)Dn[Ln+Wn]=arguments[Ln+2];return Dn.length=Hn-Nn+$n,Bn}});var ye$1={};ye$1[ne("toStringTag")]="z";var me=String(ye$1)==="[object z]",Se=ne("toStringTag"),xe=s(function(){return arguments}())=="Arguments",be$1=me?s:function(_n){var Cn,$n,Nn;return _n===void 0?"Undefined":_n===null?"Null":typeof($n=function(Bn,Ln){try{return Bn[Ln]}catch{}}(Cn=Object(_n),Se))=="string"?$n:xe?s(Cn):(Nn=s(Cn))=="Object"&&typeof Cn.callee=="function"?"Arguments":Nn},Ee=me?{}.toString:function(){return"[object "+be$1(this)+"]"};me||Z(Object.prototype,"toString",Ee,{unsafe:!0});var we$1=function(){var _n=A(this),Cn="";return _n.global&&(Cn+="g"),_n.ignoreCase&&(Cn+="i"),_n.multiline&&(Cn+="m"),_n.dotAll&&(Cn+="s"),_n.unicode&&(Cn+="u"),_n.sticky&&(Cn+="y"),Cn};function Oe(_n,Cn){return RegExp(_n,Cn)}var Te,Ae,ke={UNSUPPORTED_Y:o(function(){var _n=Oe("a","y");return _n.lastIndex=2,_n.exec("abcd")!=null}),BROKEN_CARET:o(function(){var _n=Oe("^r","gy");return _n.lastIndex=2,_n.exec("str")!=null})},Re=RegExp.prototype.exec,Ie$1=String.prototype.replace,je=Re,Ce$1=(Te=/a/,Ae=/b*/g,Re.call(Te,"a"),Re.call(Ae,"a"),Te.lastIndex!==0||Ae.lastIndex!==0),Le=ke.UNSUPPORTED_Y||ke.BROKEN_CARET,Pe=/()??/.exec("")[1]!==void 0;(Ce$1||Pe||Le)&&(je=function(_n){var Cn,$n,Nn,Bn,Ln=this,In=Le&&Ln.sticky,Pn=we$1.call(Ln),Dn=Ln.source,Hn=0,Wn=_n;return In&&((Pn=Pn.replace("y","")).indexOf("g")===-1&&(Pn+="g"),Wn=String(_n).slice(Ln.lastIndex),Ln.lastIndex>0&&(!Ln.multiline||Ln.multiline&&_n[Ln.lastIndex-1]!==`
`)&&(Dn="(?: "+Dn+")",Wn=" "+Wn,Hn++),$n=new RegExp("^(?:"+Dn+")",Pn)),Pe&&($n=new RegExp("^"+Dn+"$(?!\\s)",Pn)),Ce$1&&(Cn=Ln.lastIndex),Nn=Re.call(In?$n:Ln,Wn),In?Nn?(Nn.input=Nn.input.slice(Hn),Nn[0]=Nn[0].slice(Hn),Nn.index=Ln.lastIndex,Ln.lastIndex+=Nn[0].length):Ln.lastIndex=0:Ce$1&&Nn&&(Ln.lastIndex=Ln.global?Nn.index+Nn[0].length:Cn),Pe&&Nn&&Nn.length>1&&Ie$1.call(Nn[0],$n,function(){for(Bn=1;Bn<arguments.length-2;Bn++)arguments[Bn]===void 0&&(Nn[Bn]=void 0)}),Nn});var Me$1=je;It$1({target:"RegExp",proto:!0,forced:/./.exec!==Me$1},{exec:Me$1});var _e=RegExp.prototype,De=_e.toString,Ue=o(function(){return De.call({source:"a",flags:"b"})!="/a/b"}),Ne=De.name!="toString";(Ue||Ne)&&Z(RegExp.prototype,"toString",function(){var _n=A(this),Cn=String(_n.source),$n=_n.flags;return"/"+Cn+"/"+String($n===void 0&&_n instanceof RegExp&&!("flags"in _e)?we$1.call(_n):$n)},{unsafe:!0});var Fe=ne("species"),We=!o(function(){var _n=/./;return _n.exec=function(){var Cn=[];return Cn.groups={a:"7"},Cn},"".replace(_n,"$<a>")!=="7"}),ze$1="a".replace(/./,"$0")==="$0",$e$1=ne("replace"),Be$1=!!/./[$e$1]&&/./[$e$1]("a","$0")==="",Ye=!o(function(){var _n=/(?:)/,Cn=_n.exec;_n.exec=function(){return Cn.apply(this,arguments)};var $n="ab".split(_n);return $n.length!==2||$n[0]!=="a"||$n[1]!=="b"}),Ge$1=function(_n,Cn,$n,Nn){var Bn=ne(_n),Ln=!o(function(){var Xn={};return Xn[Bn]=function(){return 7},""[_n](Xn)!=7}),In=Ln&&!o(function(){var Xn=!1,Gn=/a/;return _n==="split"&&((Gn={}).constructor={},Gn.constructor[Fe]=function(){return Gn},Gn.flags="",Gn[Bn]=/./[Bn]),Gn.exec=function(){return Xn=!0,null},Gn[Bn](""),!Xn});if(!Ln||!In||_n==="replace"&&(!We||!ze$1||Be$1)||_n==="split"&&!Ye){var Pn=/./[Bn],Dn=$n(Bn,""[_n],function(Xn,Gn,rr,nr,Yo){return Gn.exec===Me$1?Ln&&!Yo?{done:!0,value:Pn.call(Gn,rr,nr)}:{done:!0,value:Xn.call(rr,Gn,nr)}:{done:!1}},{REPLACE_KEEPS_$0:ze$1,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Be$1}),Hn=Dn[0],Wn=Dn[1];Z(String.prototype,_n,Hn),Z(RegExp.prototype,Bn,Cn==2?function(Xn,Gn){return Wn.call(Xn,this,Gn)}:function(Xn){return Wn.call(Xn,this)})}Nn&&I(RegExp.prototype[Bn],"sham",!0)},He$1=ne("match"),Xe=function(_n){var Cn;return h(_n)&&((Cn=_n[He$1])!==void 0?!!Cn:s(_n)=="RegExp")},Ve$1=function(_n){if(typeof _n!="function")throw TypeError(String(_n)+" is not a function");return _n},Ke=ne("species"),qe=function(_n){return function(Cn,$n){var Nn,Bn,Ln=String(p(Cn)),In=it$1($n),Pn=Ln.length;return In<0||In>=Pn?_n?"":void 0:(Nn=Ln.charCodeAt(In))<55296||Nn>56319||In+1===Pn||(Bn=Ln.charCodeAt(In+1))<56320||Bn>57343?_n?Ln.charAt(In):Nn:_n?Ln.slice(In,In+2):Bn-56320+(Nn-55296<<10)+65536}},Qe={codeAt:qe(!1),charAt:qe(!0)},Je=Qe.charAt,Ze=function(_n,Cn,$n){return Cn+($n?Je(_n,Cn).length:1)},tn=function(_n,Cn){var $n=_n.exec;if(typeof $n=="function"){var Nn=$n.call(_n,Cn);if(typeof Nn!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return Nn}if(s(_n)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return Me$1.call(_n,Cn)},en=[].push,nn=Math.min,rn=!o(function(){return!RegExp(4294967295,"y")});Ge$1("split",2,function(_n,Cn,$n){var Nn;return Nn="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(Bn,Ln){var In=String(p(this)),Pn=Ln===void 0?4294967295:Ln>>>0;if(Pn===0)return[];if(Bn===void 0)return[In];if(!Xe(Bn))return Cn.call(In,Bn,Pn);for(var Dn,Hn,Wn,Xn=[],Gn=(Bn.ignoreCase?"i":"")+(Bn.multiline?"m":"")+(Bn.unicode?"u":"")+(Bn.sticky?"y":""),rr=0,nr=new RegExp(Bn.source,Gn+"g");(Dn=Me$1.call(nr,In))&&!((Hn=nr.lastIndex)>rr&&(Xn.push(In.slice(rr,Dn.index)),Dn.length>1&&Dn.index<In.length&&en.apply(Xn,Dn.slice(1)),Wn=Dn[0].length,rr=Hn,Xn.length>=Pn));)nr.lastIndex===Dn.index&&nr.lastIndex++;return rr===In.length?!Wn&&nr.test("")||Xn.push(""):Xn.push(In.slice(rr)),Xn.length>Pn?Xn.slice(0,Pn):Xn}:"0".split(void 0,0).length?function(Bn,Ln){return Bn===void 0&&Ln===0?[]:Cn.call(this,Bn,Ln)}:Cn,[function(Bn,Ln){var In=p(this),Pn=Bn==null?void 0:Bn[_n];return Pn!==void 0?Pn.call(Bn,In,Ln):Nn.call(String(In),Bn,Ln)},function(Bn,Ln){var In=$n(Nn,Bn,this,Ln,Nn!==Cn);if(In.done)return In.value;var Pn=A(Bn),Dn=String(this),Hn=function(Xo,vi){var zn,Ni=A(Xo).constructor;return Ni===void 0||(zn=A(Ni)[Ke])==null?vi:Ve$1(zn)}(Pn,RegExp),Wn=Pn.unicode,Xn=(Pn.ignoreCase?"i":"")+(Pn.multiline?"m":"")+(Pn.unicode?"u":"")+(rn?"y":"g"),Gn=new Hn(rn?Pn:"^(?:"+Pn.source+")",Xn),rr=Ln===void 0?4294967295:Ln>>>0;if(rr===0)return[];if(Dn.length===0)return tn(Gn,Dn)===null?[Dn]:[];for(var nr=0,Yo=0,ei=[];Yo<Dn.length;){Gn.lastIndex=rn?Yo:0;var ti,ui=tn(Gn,rn?Dn:Dn.slice(Yo));if(ui===null||(ti=nn(at$1(Gn.lastIndex+(rn?0:Yo)),Dn.length))===nr)Yo=Ze(Dn,Yo,Wn);else{if(ei.push(Dn.slice(nr,Yo)),ei.length===rr)return ei;for(var mi=1;mi<=ui.length-1;mi++)if(ei.push(ui[mi]),ei.length===rr)return ei;Yo=nr=ti}}return ei.push(Dn.slice(nr)),ei}]},!rn);var on=`
\v\f\r    \u2028\u2029\uFEFF`,un="["+on+"]",an=RegExp("^"+un+un+"*"),cn=RegExp(un+un+"*$"),ln=function(_n){return function(Cn){var $n=String(p(Cn));return 1&_n&&($n=$n.replace(an,"")),2&_n&&($n=$n.replace(cn,"")),$n}},fn={start:ln(1),end:ln(2),trim:ln(3)},sn=fn.trim;It$1({target:"String",proto:!0,forced:function(_n){return o(function(){return!!on[_n]()||"…"[_n]()!="…"||on[_n].name!==_n})}("trim")},{trim:function(){return sn(this)}});var dn=de$1("slice"),vn=Mt$1("slice",{ACCESSORS:!0,0:0,1:2}),pn=ne("species"),gn=[].slice,hn=Math.max;It$1({target:"Array",proto:!0,forced:!dn||!vn},{slice:function(_n,Cn){var $n,Nn,Bn,Ln=g(this),In=at$1(Ln.length),Pn=ft$1(_n,In),Dn=ft$1(Cn===void 0?In:Cn,In);if(qt$1(Ln)&&(typeof($n=Ln.constructor)!="function"||$n!==Array&&!qt$1($n.prototype)?h($n)&&($n=$n[pn])===null&&($n=void 0):$n=void 0,$n===Array||$n===void 0))return gn.call(Ln,Pn,Dn);for(Nn=new($n===void 0?Array:$n)(hn(Dn-Pn,0)),Bn=0;Pn<Dn;Pn++,Bn++)Pn in Ln&&ie$1(Nn,Bn,Ln[Pn]);return Nn.length=Bn,Nn}});var yn=Object.keys||function(_n){return pt$1(_n,gt$1)},mn=o(function(){yn(1)});It$1({target:"Object",stat:!0,forced:mn},{keys:function(_n){return yn(Kt$1(_n))}});var Sn,xn=function(_n){if(Xe(_n))throw TypeError("The method doesn't accept regular expressions");return _n},bn=ne("match"),En=T.f,wn="".startsWith,On=Math.min,Tn=function(_n){var Cn=/./;try{"/./"[_n](Cn)}catch{try{return Cn[bn]=!1,"/./"[_n](Cn)}catch{}}return!1}("startsWith"),An=!(Tn||(Sn=En(String.prototype,"startsWith"),!Sn||Sn.writable));function kn(_n){return(kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Cn){return typeof Cn}:function(Cn){return Cn&&typeof Symbol=="function"&&Cn.constructor===Symbol&&Cn!==Symbol.prototype?"symbol":typeof Cn})(_n)}It$1({target:"String",proto:!0,forced:!An&&!Tn},{startsWith:function(_n){var Cn=String(p(this));xn(_n);var $n=at$1(On(arguments.length>1?arguments[1]:void 0,Cn.length)),Nn=String(_n);return wn?wn.call(Cn,Nn,$n):Cn.slice($n,$n+Nn.length)===Nn}});var jn=function(_n){return typeof _n=="string"},Mn=function(_n){return _n!==null&&kn(_n)==="object"},Vn=function(){function _n(){Wt$1(this,_n)}return $t$1(_n,null,[{key:"isWindow",value:function(Cn){return Cn===window}},{key:"addEventListener",value:function(Cn,$n,Nn){var Bn=arguments.length>3&&arguments[3]!==void 0&&arguments[3];Cn&&$n&&Nn&&Cn.addEventListener($n,Nn,Bn)}},{key:"removeEventListener",value:function(Cn,$n,Nn){var Bn=arguments.length>3&&arguments[3]!==void 0&&arguments[3];Cn&&$n&&Nn&&Cn.removeEventListener($n,Nn,Bn)}},{key:"triggerDragEvent",value:function(Cn,$n){var Nn=!1,Bn=function(In){var Pn;(Pn=$n.drag)===null||Pn===void 0||Pn.call($n,In)},Ln=function In(Pn){var Dn;_n.removeEventListener(document,"mousemove",Bn),_n.removeEventListener(document,"mouseup",In),document.onselectstart=null,document.ondragstart=null,Nn=!1,(Dn=$n.end)===null||Dn===void 0||Dn.call($n,Pn)};_n.addEventListener(Cn,"mousedown",function(In){var Pn;Nn||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},_n.addEventListener(document,"mousemove",Bn),_n.addEventListener(document,"mouseup",Ln),Nn=!0,(Pn=$n.start)===null||Pn===void 0||Pn.call($n,In))})}},{key:"getBoundingClientRect",value:function(Cn){return Cn&&Mn(Cn)&&Cn.nodeType===1?Cn.getBoundingClientRect():null}},{key:"hasClass",value:function(Cn,$n){return!!(Cn&&Mn(Cn)&&jn($n)&&Cn.nodeType===1)&&Cn.classList.contains($n.trim())}},{key:"addClass",value:function(Cn,$n){if(Cn&&Mn(Cn)&&jn($n)&&Cn.nodeType===1&&($n=$n.trim(),!_n.hasClass(Cn,$n))){var Nn=Cn.className;Cn.className=Nn?Nn+" "+$n:$n}}},{key:"removeClass",value:function(Cn,$n){if(Cn&&Mn(Cn)&&jn($n)&&Cn.nodeType===1&&typeof Cn.className=="string"){$n=$n.trim();for(var Nn=Cn.className.trim().split(" "),Bn=Nn.length-1;Bn>=0;Bn--)Nn[Bn]=Nn[Bn].trim(),Nn[Bn]&&Nn[Bn]!==$n||Nn.splice(Bn,1);Cn.className=Nn.join(" ")}}},{key:"toggleClass",value:function(Cn,$n,Nn){Cn&&Mn(Cn)&&jn($n)&&Cn.nodeType===1&&Cn.classList.toggle($n,Nn)}},{key:"replaceClass",value:function(Cn,$n,Nn){Cn&&Mn(Cn)&&jn($n)&&jn(Nn)&&Cn.nodeType===1&&($n=$n.trim(),Nn=Nn.trim(),_n.removeClass(Cn,$n),_n.addClass(Cn,Nn))}},{key:"getScrollTop",value:function(Cn){var $n="scrollTop"in Cn?Cn.scrollTop:Cn.pageYOffset;return Math.max($n,0)}},{key:"setScrollTop",value:function(Cn,$n){"scrollTop"in Cn?Cn.scrollTop=$n:Cn.scrollTo(Cn.scrollX,$n)}},{key:"getRootScrollTop",value:function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}},{key:"setRootScrollTop",value:function(Cn){_n.setScrollTop(window,Cn),_n.setScrollTop(document.body,Cn)}},{key:"getElementTop",value:function(Cn,$n){if(_n.isWindow(Cn))return 0;var Nn=$n?_n.getScrollTop($n):_n.getRootScrollTop();return Cn.getBoundingClientRect().top+Nn}},{key:"getVisibleHeight",value:function(Cn){return _n.isWindow(Cn)?Cn.innerHeight:Cn.getBoundingClientRect().height}},{key:"isHidden",value:function(Cn){if(!Cn)return!1;var $n=window.getComputedStyle(Cn),Nn=$n.display==="none",Bn=Cn.offsetParent===null&&$n.position!=="fixed";return Nn||Bn}},{key:"triggerEvent",value:function(Cn,$n){if("createEvent"in document){var Nn=document.createEvent("HTMLEvents");Nn.initEvent($n,!1,!0),Cn.dispatchEvent(Nn)}}},{key:"calcAngle",value:function(Cn,$n){var Nn=Cn.getBoundingClientRect(),Bn=Nn.left+Nn.width/2,Ln=Nn.top+Nn.height/2,In=Math.abs(Bn-$n.clientX),Pn=Math.abs(Ln-$n.clientY),Dn=Pn/Math.sqrt(Math.pow(In,2)+Math.pow(Pn,2)),Hn=Math.acos(Dn),Wn=Math.floor(180/(Math.PI/Hn));return $n.clientX>Bn&&$n.clientY>Ln&&(Wn=180-Wn),$n.clientX==Bn&&$n.clientY>Ln&&(Wn=180),$n.clientX>Bn&&$n.clientY==Ln&&(Wn=90),$n.clientX<Bn&&$n.clientY>Ln&&(Wn=180+Wn),$n.clientX<Bn&&$n.clientY==Ln&&(Wn=270),$n.clientX<Bn&&$n.clientY<Ln&&(Wn=360-Wn),Wn}},{key:"querySelector",value:function(Cn,$n){return $n?$n.querySelector(Cn):document.querySelector(Cn)}},{key:"createElement",value:function(Cn){for(var $n=document.createElement(Cn),Nn=arguments.length,Bn=new Array(Nn>1?Nn-1:0),Ln=1;Ln<Nn;Ln++)Bn[Ln-1]=arguments[Ln];for(var In=0;In<Bn.length;In++)Bn[In]&&$n.classList.add(Bn[In]);return $n}},{key:"appendChild",value:function(Cn){for(var $n=0;$n<(arguments.length<=1?0:arguments.length-1);$n++)Cn.appendChild($n+1<1||arguments.length<=$n+1?void 0:arguments[$n+1])}},{key:"getWindow",value:function(Cn){if(Cn.toString()!=="[object Window]"){var $n=Cn.ownerDocument;return $n&&$n.defaultView||window}return Cn}},{key:"isElement",value:function(Cn){return Cn instanceof this.getWindow(Cn).Element||Cn instanceof Element}},{key:"isHTMLElement",value:function(Cn){return Cn instanceof this.getWindow(Cn).HTMLElement||Cn instanceof HTMLElement}},{key:"isShadowRoot",value:function(Cn){return typeof ShadowRoot<"u"&&(Cn instanceof this.getWindow(Cn).ShadowRoot||Cn instanceof ShadowRoot)}},{key:"getWindowScroll",value:function(Cn){var $n=this.getWindow(Cn);return{scrollLeft:$n.pageXOffset||0,scrollTop:$n.pageYOffset||0}}}]),_n}(),Kn=Math.floor,qn="".replace,Qn=/\$([$&'`]|\d\d?|<[^>]*>)/g,Jn=/\$([$&'`]|\d\d?)/g,Zn=function(_n,Cn,$n,Nn,Bn,Ln){var In=$n+_n.length,Pn=Nn.length,Dn=Jn;return Bn!==void 0&&(Bn=Kt$1(Bn),Dn=Qn),qn.call(Ln,Dn,function(Hn,Wn){var Xn;switch(Wn.charAt(0)){case"$":return"$";case"&":return _n;case"`":return Cn.slice(0,$n);case"'":return Cn.slice(In);case"<":Xn=Bn[Wn.slice(1,-1)];break;default:var Gn=+Wn;if(Gn===0)return Hn;if(Gn>Pn){var rr=Kn(Gn/10);return rr===0?Hn:rr<=Pn?Nn[rr-1]===void 0?Wn.charAt(1):Nn[rr-1]+Wn.charAt(1):Hn}Xn=Nn[Gn-1]}return Xn===void 0?"":Xn})},tr=Math.max,er=Math.min;Ge$1("replace",2,function(_n,Cn,$n,Nn){var Bn=Nn.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,Ln=Nn.REPLACE_KEEPS_$0,In=Bn?"$":"$0";return[function(Pn,Dn){var Hn=p(this),Wn=Pn==null?void 0:Pn[_n];return Wn!==void 0?Wn.call(Pn,Hn,Dn):Cn.call(String(Hn),Pn,Dn)},function(Pn,Dn){if(!Bn&&Ln||typeof Dn=="string"&&Dn.indexOf(In)===-1){var Hn=$n(Cn,Pn,this,Dn);if(Hn.done)return Hn.value}var Wn=A(Pn),Xn=String(this),Gn=typeof Dn=="function";Gn||(Dn=String(Dn));var rr=Wn.global;if(rr){var nr=Wn.unicode;Wn.lastIndex=0}for(var Yo=[];;){var ei=tn(Wn,Xn);if(ei===null||(Yo.push(ei),!rr))break;String(ei[0])===""&&(Wn.lastIndex=Ze(Xn,at$1(Wn.lastIndex),nr))}for(var ti,ui="",mi=0,Xo=0;Xo<Yo.length;Xo++){ei=Yo[Xo];for(var vi=String(ei[0]),zn=tr(er(it$1(ei.index),Xn.length),0),Ni=[],ni=1;ni<ei.length;ni++)Ni.push((ti=ei[ni])===void 0?ti:String(ti));var Qo=ei.groups;if(Gn){var ri=[vi].concat(Ni,zn,Xn);Qo!==void 0&&ri.push(Qo);var ci=String(Dn.apply(void 0,ri))}else ci=Zn(vi,Xn,zn,Ni,Qo,Dn);zn>=mi&&(ui+=Xn.slice(mi,zn)+ci,mi=zn+vi.length)}return ui+Xn.slice(mi)}]}),function(){function _n(){Wt$1(this,_n)}return $t$1(_n,null,[{key:"camelize",value:function(Cn){return Cn.replace(/-(\w)/g,function($n,Nn){return Nn?Nn.toUpperCase():""})}},{key:"capitalize",value:function(Cn){return Cn.charAt(0).toUpperCase()+Cn.slice(1)}}]),_n}(),function(){function _n(){Wt$1(this,_n)}return $t$1(_n,null,[{key:"_clone",value:function(){}}]),_n}();var or=ne("isConcatSpreadable"),ir=fe$1>=51||!o(function(){var _n=[];return _n[or]=!1,_n.concat()[0]!==_n}),ur=de$1("concat"),ar=function(_n){if(!h(_n))return!1;var Cn=_n[or];return Cn!==void 0?!!Cn:qt$1(_n)};It$1({target:"Array",proto:!0,forced:!ir||!ur},{concat:function(_n){var Cn,$n,Nn,Bn,Ln,In=Kt$1(this),Pn=oe(In,0),Dn=0;for(Cn=-1,Nn=arguments.length;Cn<Nn;Cn++)if(ar(Ln=Cn===-1?In:arguments[Cn])){if(Dn+(Bn=at$1(Ln.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for($n=0;$n<Bn;$n++,Dn++)$n in Ln&&ie$1(Pn,Dn,Ln[$n])}else{if(Dn>=9007199254740991)throw TypeError("Maximum allowed index exceeded");ie$1(Pn,Dn++,Ln)}return Pn.length=Dn,Pn}});var cr,lr=function(_n,Cn,$n){if(Ve$1(_n),Cn===void 0)return _n;switch($n){case 0:return function(){return _n.call(Cn)};case 1:return function(Nn){return _n.call(Cn,Nn)};case 2:return function(Nn,Bn){return _n.call(Cn,Nn,Bn)};case 3:return function(Nn,Bn,Ln){return _n.call(Cn,Nn,Bn,Ln)}}return function(){return _n.apply(Cn,arguments)}},fr=[].push,sr=function(_n){var Cn=_n==1,$n=_n==2,Nn=_n==3,Bn=_n==4,Ln=_n==6,In=_n==7,Pn=_n==5||Ln;return function(Dn,Hn,Wn,Xn){for(var Gn,rr,nr=Kt$1(Dn),Yo=v(nr),ei=lr(Hn,Wn,3),ti=at$1(Yo.length),ui=0,mi=Xn||oe,Xo=Cn?mi(Dn,ti):$n||In?mi(Dn,0):void 0;ti>ui;ui++)if((Pn||ui in Yo)&&(rr=ei(Gn=Yo[ui],ui,nr),_n))if(Cn)Xo[ui]=rr;else if(rr)switch(_n){case 3:return!0;case 5:return Gn;case 6:return ui;case 2:fr.call(Xo,Gn)}else switch(_n){case 4:return!1;case 7:fr.call(Xo,Gn)}return Ln?-1:Nn||Bn?Bn:Xo}},dr={forEach:sr(0),map:sr(1),filter:sr(2),some:sr(3),every:sr(4),find:sr(5),findIndex:sr(6),filterOut:sr(7)},vr=i$1?Object.defineProperties:function(_n,Cn){A(_n);for(var $n,Nn=yn(Cn),Bn=Nn.length,Ln=0;Bn>Ln;)R$1.f(_n,$n=Nn[Ln++],Cn[$n]);return _n},pr=nt$1("document","documentElement"),gr=Y("IE_PROTO"),hr=function(){},yr=function(_n){return"<script>"+_n+"<\/script>"},mr=function(){try{cr=document.domain&&new ActiveXObject("htmlfile")}catch{}var _n,Cn;mr=cr?function(Nn){Nn.write(yr("")),Nn.close();var Bn=Nn.parentWindow.Object;return Nn=null,Bn}(cr):((Cn=E("iframe")).style.display="none",pr.appendChild(Cn),Cn.src="javascript:",(_n=Cn.contentWindow.document).open(),_n.write(yr("document.F=Object")),_n.close(),_n.F);for(var $n=gt$1.length;$n--;)delete mr.prototype[gt$1[$n]];return mr()};G[gr]=!0;var Sr=Object.create||function(_n,Cn){var $n;return _n!==null?(hr.prototype=A(_n),$n=new hr,hr.prototype=null,$n[gr]=_n):$n=mr(),Cn===void 0?$n:vr($n,Cn)},xr=ne("unscopables"),br=Array.prototype;br[xr]==null&&R$1.f(br,xr,{configurable:!0,value:Sr(null)});var Er=function(_n){br[xr][_n]=!0},wr=dr.find,Or=!0,Tr=Mt$1("find");"find"in[]&&Array(1).find(function(){Or=!1}),It$1({target:"Array",proto:!0,forced:Or||!Tr},{find:function(_n){return wr(this,_n,arguments.length>1?arguments[1]:void 0)}}),Er("find");var Ar=dr.findIndex,kr=!0,Rr=Mt$1("findIndex");"findIndex"in[]&&Array(1).findIndex(function(){kr=!1}),It$1({target:"Array",proto:!0,forced:kr||!Rr},{findIndex:function(_n){return Ar(this,_n,arguments.length>1?arguments[1]:void 0)}}),Er("findIndex");var Ir=function(_n,Cn,$n,Nn,Bn,Ln,In,Pn){for(var Dn,Hn=Bn,Wn=0,Xn=!!In&&lr(In,Pn,3);Wn<Nn;){if(Wn in $n){if(Dn=Xn?Xn($n[Wn],Wn,Cn):$n[Wn],Ln>0&&qt$1(Dn))Hn=Ir(_n,Cn,Dn,at$1(Dn.length),Hn,Ln-1)-1;else{if(Hn>=9007199254740991)throw TypeError("Exceed the acceptable array length");_n[Hn]=Dn}Hn++}Wn++}return Hn},jr=Ir;It$1({target:"Array",proto:!0},{flat:function(){var _n=arguments.length?arguments[0]:void 0,Cn=Kt$1(this),$n=at$1(Cn.length),Nn=oe(Cn,0);return Nn.length=jr(Nn,Cn,Cn,$n,0,_n===void 0?1:it$1(_n)),Nn}});var Cr=function(_n){var Cn=_n.return;if(Cn!==void 0)return A(Cn.call(_n)).value},Lr=function(_n,Cn,$n,Nn){try{return Nn?Cn(A($n)[0],$n[1]):Cn($n)}catch(Bn){throw Cr(_n),Bn}},Pr={},Mr=ne("iterator"),_r=Array.prototype,Dr=function(_n){return _n!==void 0&&(Pr.Array===_n||_r[Mr]===_n)},Ur=ne("iterator"),Nr=function(_n){if(_n!=null)return _n[Ur]||_n["@@iterator"]||Pr[be$1(_n)]},Fr=ne("iterator"),Wr=!1;try{var zr=0,$r={next:function(){return{done:!!zr++}},return:function(){Wr=!0}};$r[Fr]=function(){return this},Array.from($r,function(){throw 2})}catch(_n){}var Br=function(_n,Cn){if(!Cn&&!Wr)return!1;var $n=!1;try{var Nn={};Nn[Fr]=function(){return{next:function(){return{done:$n=!0}}}},_n(Nn)}catch{}return $n},Yr=!Br(function(_n){Array.from(_n)});It$1({target:"Array",stat:!0,forced:Yr},{from:function(_n){var Cn,$n,Nn,Bn,Ln,In,Pn=Kt$1(_n),Dn=typeof this=="function"?this:Array,Hn=arguments.length,Wn=Hn>1?arguments[1]:void 0,Xn=Wn!==void 0,Gn=Nr(Pn),rr=0;if(Xn&&(Wn=lr(Wn,Hn>2?arguments[2]:void 0,2)),Gn==null||Dn==Array&&Dr(Gn))for($n=new Dn(Cn=at$1(Pn.length));Cn>rr;rr++)In=Xn?Wn(Pn[rr],rr):Pn[rr],ie$1($n,rr,In);else for(Ln=(Bn=Gn.call(Pn)).next,$n=new Dn;!(Nn=Ln.call(Bn)).done;rr++)In=Xn?Lr(Bn,Wn,[Nn.value,rr],!0):Nn.value,ie$1($n,rr,In);return $n.length=rr,$n}});var Gr=function(_n){return function(Cn,$n,Nn,Bn){Ve$1($n);var Ln=Kt$1(Cn),In=v(Ln),Pn=at$1(Ln.length),Dn=_n?Pn-1:0,Hn=_n?-1:1;if(Nn<2)for(;;){if(Dn in In){Bn=In[Dn],Dn+=Hn;break}if(Dn+=Hn,_n?Dn<0:Pn<=Dn)throw TypeError("Reduce of empty array with no initial value")}for(;_n?Dn>=0:Pn>Dn;Dn+=Hn)Dn in In&&(Bn=$n(Bn,In[Dn],Dn,Ln));return Bn}},Hr={left:Gr(!1),right:Gr(!0)},Xr=s(r.process)=="process",Vr=Hr.left,Kr=jt$1("reduce"),qr=Mt$1("reduce",{1:0});It$1({target:"Array",proto:!0,forced:!Kr||!qr||!Xr&&fe$1>79&&fe$1<83},{reduce:function(_n){return Vr(this,_n,arguments.length,arguments.length>1?arguments[1]:void 0)}}),Er("flat");var Qr,Jr,Zr,to$1=!o(function(){return Object.isExtensible(Object.preventExtensions({}))}),eo$1=e(function(_n){var Cn=R$1.f,$n=$("meta"),Nn=0,Bn=Object.isExtensible||function(){return!0},Ln=function(Pn){Cn(Pn,$n,{value:{objectID:"O"+ ++Nn,weakData:{}}})},In=_n.exports={REQUIRED:!1,fastKey:function(Pn,Dn){if(!h(Pn))return typeof Pn=="symbol"?Pn:(typeof Pn=="string"?"S":"P")+Pn;if(!S(Pn,$n)){if(!Bn(Pn))return"F";if(!Dn)return"E";Ln(Pn)}return Pn[$n].objectID},getWeakData:function(Pn,Dn){if(!S(Pn,$n)){if(!Bn(Pn))return!0;if(!Dn)return!1;Ln(Pn)}return Pn[$n].weakData},onFreeze:function(Pn){return to$1&&In.REQUIRED&&Bn(Pn)&&!S(Pn,$n)&&Ln(Pn),Pn}};G[$n]=!0}),no$1=function(_n,Cn){this.stopped=_n,this.result=Cn},ro$1=function(_n,Cn,$n){var Nn,Bn,Ln,In,Pn,Dn,Hn,Wn=$n&&$n.that,Xn=!(!$n||!$n.AS_ENTRIES),Gn=!(!$n||!$n.IS_ITERATOR),rr=!(!$n||!$n.INTERRUPTED),nr=lr(Cn,Wn,1+Xn+rr),Yo=function(ti){return Nn&&Cr(Nn),new no$1(!0,ti)},ei=function(ti){return Xn?(A(ti),rr?nr(ti[0],ti[1],Yo):nr(ti[0],ti[1])):rr?nr(ti,Yo):nr(ti)};if(Gn)Nn=_n;else{if(typeof(Bn=Nr(_n))!="function")throw TypeError("Target is not iterable");if(Dr(Bn)){for(Ln=0,In=at$1(_n.length);In>Ln;Ln++)if((Pn=ei(_n[Ln]))&&Pn instanceof no$1)return Pn;return new no$1(!1)}Nn=Bn.call(_n)}for(Dn=Nn.next;!(Hn=Dn.call(Nn)).done;){try{Pn=ei(Hn.value)}catch(ti){throw Cr(Nn),ti}if(typeof Pn=="object"&&Pn&&Pn instanceof no$1)return Pn}return new no$1(!1)},oo$1=function(_n,Cn,$n){if(!(_n instanceof Cn))throw TypeError("Incorrect "+($n?$n+" ":"")+"invocation");return _n},io$1=R$1.f,uo$1=ne("toStringTag"),ao$1=function(_n,Cn,$n){_n&&!S(_n=$n?_n:_n.prototype,uo$1)&&io$1(_n,uo$1,{configurable:!0,value:Cn})},co$1=Object.setPrototypeOf||("__proto__"in{}?function(){var _n,Cn=!1,$n={};try{(_n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call($n,[]),Cn=$n instanceof Array}catch{}return function(Nn,Bn){return A(Nn),function(Ln){if(!h(Ln)&&Ln!==null)throw TypeError("Can't set "+String(Ln)+" as a prototype")}(Bn),Cn?_n.call(Nn,Bn):Nn.__proto__=Bn,Nn}}():void 0),lo$1=function(_n,Cn,$n){for(var Nn in Cn)Z(_n,Nn,Cn[Nn],$n);return _n},fo$1=!o(function(){function _n(){}return _n.prototype.constructor=null,Object.getPrototypeOf(new _n)!==_n.prototype}),so$1=Y("IE_PROTO"),vo$1=Object.prototype,po$1=fo$1?Object.getPrototypeOf:function(_n){return _n=Kt$1(_n),S(_n,so$1)?_n[so$1]:typeof _n.constructor=="function"&&_n instanceof _n.constructor?_n.constructor.prototype:_n instanceof Object?vo$1:null},go$1=ne("iterator"),ho$1=!1;[].keys&&("next"in(Zr=[].keys())?(Jr=po$1(po$1(Zr)))!==Object.prototype&&(Qr=Jr):ho$1=!0),(Qr==null||o(function(){var _n={};return Qr[go$1].call(_n)!==_n}))&&(Qr={}),S(Qr,go$1)||I(Qr,go$1,function(){return this});var yo$1={IteratorPrototype:Qr,BUGGY_SAFARI_ITERATORS:ho$1},mo$1=yo$1.IteratorPrototype,So$1=function(){return this},xo=yo$1.IteratorPrototype,bo$1=yo$1.BUGGY_SAFARI_ITERATORS,Eo$1=ne("iterator"),wo$1=function(){return this},Oo$1=function(_n,Cn,$n,Nn,Bn,Ln,In){(function(ti,ui,mi){var Xo=ui+" Iterator";ti.prototype=Sr(mo$1,{next:l(1,mi)}),ao$1(ti,Xo,!1),Pr[Xo]=So$1})($n,Cn,Nn);var Pn,Dn,Hn,Wn=function(ti){if(ti===Bn&&Yo)return Yo;if(!bo$1&&ti in rr)return rr[ti];switch(ti){case"keys":case"values":case"entries":return function(){return new $n(this,ti)}}return function(){return new $n(this)}},Xn=Cn+" Iterator",Gn=!1,rr=_n.prototype,nr=rr[Eo$1]||rr["@@iterator"]||Bn&&rr[Bn],Yo=!bo$1&&nr||Wn(Bn),ei=Cn=="Array"&&rr.entries||nr;if(ei&&(Pn=po$1(ei.call(new _n)),xo!==Object.prototype&&Pn.next&&(po$1(Pn)!==xo&&(co$1?co$1(Pn,xo):typeof Pn[Eo$1]!="function"&&I(Pn,Eo$1,wo$1)),ao$1(Pn,Xn,!0))),Bn=="values"&&nr&&nr.name!=="values"&&(Gn=!0,Yo=function(){return nr.call(this)}),rr[Eo$1]!==Yo&&I(rr,Eo$1,Yo),Pr[Cn]=Yo,Bn)if(Dn={values:Wn("values"),keys:Ln?Yo:Wn("keys"),entries:Wn("entries")},In)for(Hn in Dn)(bo$1||Gn||!(Hn in rr))&&Z(rr,Hn,Dn[Hn]);else It$1({target:Cn,proto:!0,forced:bo$1||Gn},Dn);return Dn},To$1=ne("species"),Ao$1=R$1.f,ko$1=eo$1.fastKey,Ro$1=J.set,Io$1=J.getterFor;(function(_n,Cn,$n){var Nn=_n.indexOf("Map")!==-1,Bn=_n.indexOf("Weak")!==-1,Ln=Nn?"set":"add",In=r[_n],Pn=In&&In.prototype,Dn=In,Hn={},Wn=function(ei){var ti=Pn[ei];Z(Pn,ei,ei=="add"?function(ui){return ti.call(this,ui===0?0:ui),this}:ei=="delete"?function(ui){return!(Bn&&!h(ui))&&ti.call(this,ui===0?0:ui)}:ei=="get"?function(ui){return Bn&&!h(ui)?void 0:ti.call(this,ui===0?0:ui)}:ei=="has"?function(ui){return!(Bn&&!h(ui))&&ti.call(this,ui===0?0:ui)}:function(ui,mi){return ti.call(this,ui===0?0:ui,mi),this})};if(kt$1(_n,typeof In!="function"||!(Bn||Pn.forEach&&!o(function(){new In().entries().next()}))))Dn=$n.getConstructor(Cn,_n,Nn,Ln),eo$1.REQUIRED=!0;else if(kt$1(_n,!0)){var Xn=new Dn,Gn=Xn[Ln](Bn?{}:-0,1)!=Xn,rr=o(function(){Xn.has(1)}),nr=Br(function(ei){new In(ei)}),Yo=!Bn&&o(function(){for(var ei=new In,ti=5;ti--;)ei[Ln](ti,ti);return!ei.has(-0)});nr||((Dn=Cn(function(ei,ti){oo$1(ei,Dn,_n);var ui=function(mi,Xo,vi){var zn,Ni;return co$1&&typeof(zn=Xo.constructor)=="function"&&zn!==vi&&h(Ni=zn.prototype)&&Ni!==vi.prototype&&co$1(mi,Ni),mi}(new In,ei,Dn);return ti!=null&&ro$1(ti,ui[Ln],{that:ui,AS_ENTRIES:Nn}),ui})).prototype=Pn,Pn.constructor=Dn),(rr||Yo)&&(Wn("delete"),Wn("has"),Nn&&Wn("get")),(Yo||Gn)&&Wn(Ln),Bn&&Pn.clear&&delete Pn.clear}Hn[_n]=Dn,It$1({global:!0,forced:Dn!=In},Hn),ao$1(Dn,_n),Bn||$n.setStrong(Dn,_n,Nn)})("Set",function(_n){return function(){return _n(this,arguments.length?arguments[0]:void 0)}},{getConstructor:function(_n,Cn,$n,Nn){var Bn=_n(function(Dn,Hn){oo$1(Dn,Bn,Cn),Ro$1(Dn,{type:Cn,index:Sr(null),first:void 0,last:void 0,size:0}),i$1||(Dn.size=0),Hn!=null&&ro$1(Hn,Dn[Nn],{that:Dn,AS_ENTRIES:$n})}),Ln=Io$1(Cn),In=function(Dn,Hn,Wn){var Xn,Gn,rr=Ln(Dn),nr=Pn(Dn,Hn);return nr?nr.value=Wn:(rr.last=nr={index:Gn=ko$1(Hn,!0),key:Hn,value:Wn,previous:Xn=rr.last,next:void 0,removed:!1},rr.first||(rr.first=nr),Xn&&(Xn.next=nr),i$1?rr.size++:Dn.size++,Gn!=="F"&&(rr.index[Gn]=nr)),Dn},Pn=function(Dn,Hn){var Wn,Xn=Ln(Dn),Gn=ko$1(Hn);if(Gn!=="F")return Xn.index[Gn];for(Wn=Xn.first;Wn;Wn=Wn.next)if(Wn.key==Hn)return Wn};return lo$1(Bn.prototype,{clear:function(){for(var Dn=Ln(this),Hn=Dn.index,Wn=Dn.first;Wn;)Wn.removed=!0,Wn.previous&&(Wn.previous=Wn.previous.next=void 0),delete Hn[Wn.index],Wn=Wn.next;Dn.first=Dn.last=void 0,i$1?Dn.size=0:this.size=0},delete:function(Dn){var Hn=this,Wn=Ln(Hn),Xn=Pn(Hn,Dn);if(Xn){var Gn=Xn.next,rr=Xn.previous;delete Wn.index[Xn.index],Xn.removed=!0,rr&&(rr.next=Gn),Gn&&(Gn.previous=rr),Wn.first==Xn&&(Wn.first=Gn),Wn.last==Xn&&(Wn.last=rr),i$1?Wn.size--:Hn.size--}return!!Xn},forEach:function(Dn){for(var Hn,Wn=Ln(this),Xn=lr(Dn,arguments.length>1?arguments[1]:void 0,3);Hn=Hn?Hn.next:Wn.first;)for(Xn(Hn.value,Hn.key,this);Hn&&Hn.removed;)Hn=Hn.previous},has:function(Dn){return!!Pn(this,Dn)}}),lo$1(Bn.prototype,$n?{get:function(Dn){var Hn=Pn(this,Dn);return Hn&&Hn.value},set:function(Dn,Hn){return In(this,Dn===0?0:Dn,Hn)}}:{add:function(Dn){return In(this,Dn=Dn===0?0:Dn,Dn)}}),i$1&&Ao$1(Bn.prototype,"size",{get:function(){return Ln(this).size}}),Bn},setStrong:function(_n,Cn,$n){var Nn=Cn+" Iterator",Bn=Io$1(Cn),Ln=Io$1(Nn);Oo$1(_n,Cn,function(In,Pn){Ro$1(this,{type:Nn,target:In,state:Bn(In),kind:Pn,last:void 0})},function(){for(var In=Ln(this),Pn=In.kind,Dn=In.last;Dn&&Dn.removed;)Dn=Dn.previous;return In.target&&(In.last=Dn=Dn?Dn.next:In.state.first)?Pn=="keys"?{value:Dn.key,done:!1}:Pn=="values"?{value:Dn.value,done:!1}:{value:[Dn.key,Dn.value],done:!1}:(In.target=void 0,{value:void 0,done:!0})},$n?"entries":"values",!$n,!0),function(In){var Pn=nt$1(In),Dn=R$1.f;i$1&&Pn&&!Pn[To$1]&&Dn(Pn,To$1,{configurable:!0,get:function(){return this}})}(Cn)}});var jo=Qe.charAt,Co$1=J.set,Lo$1=J.getterFor("String Iterator");Oo$1(String,"String",function(_n){Co$1(this,{type:"String Iterator",string:String(_n),index:0})},function(){var _n,Cn=Lo$1(this),$n=Cn.string,Nn=Cn.index;return Nn>=$n.length?{value:void 0,done:!0}:(_n=jo($n,Nn),Cn.index+=_n.length,{value:_n,done:!1})});var Po$1={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Mo$1=J.set,_o$1=J.getterFor("Array Iterator"),Do$1=Oo$1(Array,"Array",function(_n,Cn){Mo$1(this,{type:"Array Iterator",target:g(_n),index:0,kind:Cn})},function(){var _n=_o$1(this),Cn=_n.target,$n=_n.kind,Nn=_n.index++;return!Cn||Nn>=Cn.length?(_n.target=void 0,{value:void 0,done:!0}):$n=="keys"?{value:Nn,done:!1}:$n=="values"?{value:Cn[Nn],done:!1}:{value:[Nn,Cn[Nn]],done:!1}},"values");Pr.Arguments=Pr.Array,Er("keys"),Er("values"),Er("entries");var Uo=ne("iterator"),No$1=ne("toStringTag"),Fo=Do$1.values;for(var Wo$1 in Po$1){var zo=r[Wo$1],$o$1=zo&&zo.prototype;if($o$1){if($o$1[Uo]!==Fo)try{I($o$1,Uo,Fo)}catch{$o$1[Uo]=Fo}if($o$1[No$1]||I($o$1,No$1,Wo$1),Po$1[Wo$1]){for(var Bo$1 in Do$1)if($o$1[Bo$1]!==Do$1[Bo$1])try{I($o$1,Bo$1,Do$1[Bo$1])}catch{$o$1[Bo$1]=Do$1[Bo$1]}}}}(function(){function _n(){Wt$1(this,_n)}return $t$1(_n,null,[{key:"deduplicate",value:function(Cn){return Array.from(new Set(Cn))}},{key:"flat",value:function(Cn){return Cn.reduce(function($n,Nn){var Bn=Array.isArray(Nn)?_n.flat(Nn):Nn;return $n.concat(Bn)},[])}},{key:"find",value:function(Cn,$n){return Cn.find($n)}},{key:"findIndex",value:function(Cn,$n){return Cn.findIndex($n)}}]),_n})(),function(){function _n(){Wt$1(this,_n)}return $t$1(_n,null,[{key:"today",value:function(){return new Date}}]),_n}(),function(){function _n(){Wt$1(this,_n)}return $t$1(_n,null,[{key:"range",value:function(Cn,$n,Nn){return Math.min(Math.max(Cn,$n),Nn)}},{key:"clamp",value:function(Cn,$n,Nn){return $n<Nn?Cn<$n?$n:Cn>Nn?Nn:Cn:Cn<Nn?Nn:Cn>$n?$n:Cn}}]),_n}();var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global;const freeGlobal$1=freeGlobal;var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function("return this")();const root$1=root;var Symbol$1=root$1.Symbol;const Symbol$2=Symbol$1;var objectProto$a=Object.prototype,hasOwnProperty$9=objectProto$a.hasOwnProperty,nativeObjectToString$1=objectProto$a.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag(_n){var Cn=hasOwnProperty$9.call(_n,symToStringTag$1),$n=_n[symToStringTag$1];try{_n[symToStringTag$1]=void 0;var Nn=!0}catch{}var Bn=nativeObjectToString$1.call(_n);return Nn&&(Cn?_n[symToStringTag$1]=$n:delete _n[symToStringTag$1]),Bn}var objectProto$9=Object.prototype,nativeObjectToString=objectProto$9.toString;function objectToString(_n){return nativeObjectToString.call(_n)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$2?Symbol$2.toStringTag:void 0;function baseGetTag(_n){return _n==null?_n===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(_n)?getRawTag(_n):objectToString(_n)}function isObjectLike(_n){return _n!=null&&typeof _n=="object"}var isArray$1=Array.isArray;const isArray$2=isArray$1;function isObject$2(_n){var Cn=typeof _n;return _n!=null&&(Cn=="object"||Cn=="function")}function identity(_n){return _n}var asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$1(_n){if(!isObject$2(_n))return!1;var Cn=baseGetTag(_n);return Cn==funcTag$1||Cn==genTag||Cn==asyncTag||Cn==proxyTag}var coreJsData=root$1["__core-js_shared__"];const coreJsData$1=coreJsData;var maskSrcKey=function(){var _n=/[^.]+$/.exec(coreJsData$1&&coreJsData$1.keys&&coreJsData$1.keys.IE_PROTO||"");return _n?"Symbol(src)_1."+_n:""}();function isMasked(_n){return!!maskSrcKey&&maskSrcKey in _n}var funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource(_n){if(_n!=null){try{return funcToString$2.call(_n)}catch{}try{return _n+""}catch{}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$8=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$8=objectProto$8.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$8).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(_n){if(!isObject$2(_n)||isMasked(_n))return!1;var Cn=isFunction$1(_n)?reIsNative:reIsHostCtor;return Cn.test(toSource(_n))}function getValue(_n,Cn){return _n==null?void 0:_n[Cn]}function getNative(_n,Cn){var $n=getValue(_n,Cn);return baseIsNative($n)?$n:void 0}var objectCreate=Object.create,baseCreate=function(){function _n(){}return function(Cn){if(!isObject$2(Cn))return{};if(objectCreate)return objectCreate(Cn);_n.prototype=Cn;var $n=new _n;return _n.prototype=void 0,$n}}();const baseCreate$1=baseCreate;function apply(_n,Cn,$n){switch($n.length){case 0:return _n.call(Cn);case 1:return _n.call(Cn,$n[0]);case 2:return _n.call(Cn,$n[0],$n[1]);case 3:return _n.call(Cn,$n[0],$n[1],$n[2])}return _n.apply(Cn,$n)}function copyArray(_n,Cn){var $n=-1,Nn=_n.length;for(Cn||(Cn=Array(Nn));++$n<Nn;)Cn[$n]=_n[$n];return Cn}var HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut(_n){var Cn=0,$n=0;return function(){var Nn=nativeNow(),Bn=HOT_SPAN-(Nn-$n);if($n=Nn,Bn>0){if(++Cn>=HOT_COUNT)return arguments[0]}else Cn=0;return _n.apply(void 0,arguments)}}function constant(_n){return function(){return _n}}var defineProperty=function(){try{var _n=getNative(Object,"defineProperty");return _n({},"",{}),_n}catch{}}();const defineProperty$1=defineProperty;var baseSetToString=defineProperty$1?function(_n,Cn){return defineProperty$1(_n,"toString",{configurable:!0,enumerable:!1,value:constant(Cn),writable:!0})}:identity;const baseSetToString$1=baseSetToString;var setToString=shortOut(baseSetToString$1);const setToString$1=setToString;var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(_n,Cn){var $n=typeof _n;return Cn=Cn??MAX_SAFE_INTEGER$1,!!Cn&&($n=="number"||$n!="symbol"&&reIsUint.test(_n))&&_n>-1&&_n%1==0&&_n<Cn}function baseAssignValue(_n,Cn,$n){Cn=="__proto__"&&defineProperty$1?defineProperty$1(_n,Cn,{configurable:!0,enumerable:!0,value:$n,writable:!0}):_n[Cn]=$n}function eq(_n,Cn){return _n===Cn||_n!==_n&&Cn!==Cn}var objectProto$7=Object.prototype,hasOwnProperty$7=objectProto$7.hasOwnProperty;function assignValue(_n,Cn,$n){var Nn=_n[Cn];(!(hasOwnProperty$7.call(_n,Cn)&&eq(Nn,$n))||$n===void 0&&!(Cn in _n))&&baseAssignValue(_n,Cn,$n)}function copyObject(_n,Cn,$n,Nn){var Bn=!$n;$n||($n={});for(var Ln=-1,In=Cn.length;++Ln<In;){var Pn=Cn[Ln],Dn=Nn?Nn($n[Pn],_n[Pn],Pn,$n,_n):void 0;Dn===void 0&&(Dn=_n[Pn]),Bn?baseAssignValue($n,Pn,Dn):assignValue($n,Pn,Dn)}return $n}var nativeMax=Math.max;function overRest(_n,Cn,$n){return Cn=nativeMax(Cn===void 0?_n.length-1:Cn,0),function(){for(var Nn=arguments,Bn=-1,Ln=nativeMax(Nn.length-Cn,0),In=Array(Ln);++Bn<Ln;)In[Bn]=Nn[Cn+Bn];Bn=-1;for(var Pn=Array(Cn+1);++Bn<Cn;)Pn[Bn]=Nn[Bn];return Pn[Cn]=$n(In),apply(_n,this,Pn)}}function baseRest(_n,Cn){return setToString$1(overRest(_n,Cn,identity),_n+"")}var MAX_SAFE_INTEGER=9007199254740991;function isLength(_n){return typeof _n=="number"&&_n>-1&&_n%1==0&&_n<=MAX_SAFE_INTEGER}function isArrayLike(_n){return _n!=null&&isLength(_n.length)&&!isFunction$1(_n)}function isIterateeCall(_n,Cn,$n){if(!isObject$2($n))return!1;var Nn=typeof Cn;return(Nn=="number"?isArrayLike($n)&&isIndex(Cn,$n.length):Nn=="string"&&Cn in $n)?eq($n[Cn],_n):!1}function createAssigner(_n){return baseRest(function(Cn,$n){var Nn=-1,Bn=$n.length,Ln=Bn>1?$n[Bn-1]:void 0,In=Bn>2?$n[2]:void 0;for(Ln=_n.length>3&&typeof Ln=="function"?(Bn--,Ln):void 0,In&&isIterateeCall($n[0],$n[1],In)&&(Ln=Bn<3?void 0:Ln,Bn=1),Cn=Object(Cn);++Nn<Bn;){var Pn=$n[Nn];Pn&&_n(Cn,Pn,Nn,Ln)}return Cn})}var objectProto$6=Object.prototype;function isPrototype(_n){var Cn=_n&&_n.constructor,$n=typeof Cn=="function"&&Cn.prototype||objectProto$6;return _n===$n}function baseTimes(_n,Cn){for(var $n=-1,Nn=Array(_n);++$n<_n;)Nn[$n]=Cn($n);return Nn}var argsTag$1="[object Arguments]";function baseIsArguments(_n){return isObjectLike(_n)&&baseGetTag(_n)==argsTag$1}var objectProto$5=Object.prototype,hasOwnProperty$6=objectProto$5.hasOwnProperty,propertyIsEnumerable=objectProto$5.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(_n){return isObjectLike(_n)&&hasOwnProperty$6.call(_n,"callee")&&!propertyIsEnumerable.call(_n,"callee")};const isArguments$1=isArguments;function stubFalse(){return!1}var freeExports$2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$2=freeExports$2&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$2=freeModule$2&&freeModule$2.exports===freeExports$2,Buffer$2=moduleExports$2?root$1.Buffer:void 0,nativeIsBuffer=Buffer$2?Buffer$2.isBuffer:void 0,isBuffer$1=nativeIsBuffer||stubFalse;const isBuffer$2=isBuffer$1;var argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag="[object Map]",numberTag="[object Number]",objectTag$1="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag$1]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=!1;function baseIsTypedArray(_n){return isObjectLike(_n)&&isLength(_n.length)&&!!typedArrayTags[baseGetTag(_n)]}function baseUnary(_n){return function(Cn){return _n(Cn)}}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,freeProcess=moduleExports$1&&freeGlobal$1.process,nodeUtil=function(){try{var _n=freeModule$1&&freeModule$1.require&&freeModule$1.require("util").types;return _n||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}}();const nodeUtil$1=nodeUtil;var nodeIsTypedArray=nodeUtil$1&&nodeUtil$1.isTypedArray,isTypedArray$1=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;const isTypedArray$2=isTypedArray$1;var objectProto$4=Object.prototype,hasOwnProperty$5=objectProto$4.hasOwnProperty;function arrayLikeKeys(_n,Cn){var $n=isArray$2(_n),Nn=!$n&&isArguments$1(_n),Bn=!$n&&!Nn&&isBuffer$2(_n),Ln=!$n&&!Nn&&!Bn&&isTypedArray$2(_n),In=$n||Nn||Bn||Ln,Pn=In?baseTimes(_n.length,String):[],Dn=Pn.length;for(var Hn in _n)(Cn||hasOwnProperty$5.call(_n,Hn))&&!(In&&(Hn=="length"||Bn&&(Hn=="offset"||Hn=="parent")||Ln&&(Hn=="buffer"||Hn=="byteLength"||Hn=="byteOffset")||isIndex(Hn,Dn)))&&Pn.push(Hn);return Pn}function overArg(_n,Cn){return function($n){return _n(Cn($n))}}function nativeKeysIn(_n){var Cn=[];if(_n!=null)for(var $n in Object(_n))Cn.push($n);return Cn}var objectProto$3=Object.prototype,hasOwnProperty$4=objectProto$3.hasOwnProperty;function baseKeysIn(_n){if(!isObject$2(_n))return nativeKeysIn(_n);var Cn=isPrototype(_n),$n=[];for(var Nn in _n)Nn=="constructor"&&(Cn||!hasOwnProperty$4.call(_n,Nn))||$n.push(Nn);return $n}function keysIn(_n){return isArrayLike(_n)?arrayLikeKeys(_n,!0):baseKeysIn(_n)}var nativeCreate=getNative(Object,"create");const nativeCreate$1=nativeCreate;function hashClear(){this.__data__=nativeCreate$1?nativeCreate$1(null):{},this.size=0}function hashDelete(_n){var Cn=this.has(_n)&&delete this.__data__[_n];return this.size-=Cn?1:0,Cn}var HASH_UNDEFINED$1="__lodash_hash_undefined__",objectProto$2=Object.prototype,hasOwnProperty$3=objectProto$2.hasOwnProperty;function hashGet(_n){var Cn=this.__data__;if(nativeCreate$1){var $n=Cn[_n];return $n===HASH_UNDEFINED$1?void 0:$n}return hasOwnProperty$3.call(Cn,_n)?Cn[_n]:void 0}var objectProto$1=Object.prototype,hasOwnProperty$2=objectProto$1.hasOwnProperty;function hashHas(_n){var Cn=this.__data__;return nativeCreate$1?Cn[_n]!==void 0:hasOwnProperty$2.call(Cn,_n)}var HASH_UNDEFINED="__lodash_hash_undefined__";function hashSet(_n,Cn){var $n=this.__data__;return this.size+=this.has(_n)?0:1,$n[_n]=nativeCreate$1&&Cn===void 0?HASH_UNDEFINED:Cn,this}function Hash(_n){var Cn=-1,$n=_n==null?0:_n.length;for(this.clear();++Cn<$n;){var Nn=_n[Cn];this.set(Nn[0],Nn[1])}}Hash.prototype.clear=hashClear,Hash.prototype.delete=hashDelete,Hash.prototype.get=hashGet,Hash.prototype.has=hashHas,Hash.prototype.set=hashSet;function listCacheClear(){this.__data__=[],this.size=0}function assocIndexOf(_n,Cn){for(var $n=_n.length;$n--;)if(eq(_n[$n][0],Cn))return $n;return-1}var arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete(_n){var Cn=this.__data__,$n=assocIndexOf(Cn,_n);if($n<0)return!1;var Nn=Cn.length-1;return $n==Nn?Cn.pop():splice.call(Cn,$n,1),--this.size,!0}function listCacheGet(_n){var Cn=this.__data__,$n=assocIndexOf(Cn,_n);return $n<0?void 0:Cn[$n][1]}function listCacheHas(_n){return assocIndexOf(this.__data__,_n)>-1}function listCacheSet(_n,Cn){var $n=this.__data__,Nn=assocIndexOf($n,_n);return Nn<0?(++this.size,$n.push([_n,Cn])):$n[Nn][1]=Cn,this}function ListCache(_n){var Cn=-1,$n=_n==null?0:_n.length;for(this.clear();++Cn<$n;){var Nn=_n[Cn];this.set(Nn[0],Nn[1])}}ListCache.prototype.clear=listCacheClear,ListCache.prototype.delete=listCacheDelete,ListCache.prototype.get=listCacheGet,ListCache.prototype.has=listCacheHas,ListCache.prototype.set=listCacheSet;var Map$1=getNative(root$1,"Map");const Map$2=Map$1;function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$2||ListCache),string:new Hash}}function isKeyable(_n){var Cn=typeof _n;return Cn=="string"||Cn=="number"||Cn=="symbol"||Cn=="boolean"?_n!=="__proto__":_n===null}function getMapData(_n,Cn){var $n=_n.__data__;return isKeyable(Cn)?$n[typeof Cn=="string"?"string":"hash"]:$n.map}function mapCacheDelete(_n){var Cn=getMapData(this,_n).delete(_n);return this.size-=Cn?1:0,Cn}function mapCacheGet(_n){return getMapData(this,_n).get(_n)}function mapCacheHas(_n){return getMapData(this,_n).has(_n)}function mapCacheSet(_n,Cn){var $n=getMapData(this,_n),Nn=$n.size;return $n.set(_n,Cn),this.size+=$n.size==Nn?0:1,this}function MapCache(_n){var Cn=-1,$n=_n==null?0:_n.length;for(this.clear();++Cn<$n;){var Nn=_n[Cn];this.set(Nn[0],Nn[1])}}MapCache.prototype.clear=mapCacheClear,MapCache.prototype.delete=mapCacheDelete,MapCache.prototype.get=mapCacheGet,MapCache.prototype.has=mapCacheHas,MapCache.prototype.set=mapCacheSet;var getPrototype=overArg(Object.getPrototypeOf,Object);const getPrototype$1=getPrototype;var objectTag="[object Object]",funcProto=Function.prototype,objectProto=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$1=objectProto.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject$1(_n){if(!isObjectLike(_n)||baseGetTag(_n)!=objectTag)return!1;var Cn=getPrototype$1(_n);if(Cn===null)return!0;var $n=hasOwnProperty$1.call(Cn,"constructor")&&Cn.constructor;return typeof $n=="function"&&$n instanceof $n&&funcToString.call($n)==objectCtorString}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(_n){var Cn=this.__data__,$n=Cn.delete(_n);return this.size=Cn.size,$n}function stackGet(_n){return this.__data__.get(_n)}function stackHas(_n){return this.__data__.has(_n)}var LARGE_ARRAY_SIZE=200;function stackSet(_n,Cn){var $n=this.__data__;if($n instanceof ListCache){var Nn=$n.__data__;if(!Map$2||Nn.length<LARGE_ARRAY_SIZE-1)return Nn.push([_n,Cn]),this.size=++$n.size,this;$n=this.__data__=new MapCache(Nn)}return $n.set(_n,Cn),this.size=$n.size,this}function Stack(_n){var Cn=this.__data__=new ListCache(_n);this.size=Cn.size}Stack.prototype.clear=stackClear,Stack.prototype.delete=stackDelete,Stack.prototype.get=stackGet,Stack.prototype.has=stackHas,Stack.prototype.set=stackSet;var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer$1=moduleExports?root$1.Buffer:void 0,allocUnsafe=Buffer$1?Buffer$1.allocUnsafe:void 0;function cloneBuffer(_n,Cn){if(Cn)return _n.slice();var $n=_n.length,Nn=allocUnsafe?allocUnsafe($n):new _n.constructor($n);return _n.copy(Nn),Nn}var Uint8Array$1=root$1.Uint8Array;const Uint8Array$2=Uint8Array$1;function cloneArrayBuffer(_n){var Cn=new _n.constructor(_n.byteLength);return new Uint8Array$2(Cn).set(new Uint8Array$2(_n)),Cn}function cloneTypedArray(_n,Cn){var $n=Cn?cloneArrayBuffer(_n.buffer):_n.buffer;return new _n.constructor($n,_n.byteOffset,_n.length)}function initCloneObject(_n){return typeof _n.constructor=="function"&&!isPrototype(_n)?baseCreate$1(getPrototype$1(_n)):{}}function createBaseFor(_n){return function(Cn,$n,Nn){for(var Bn=-1,Ln=Object(Cn),In=Nn(Cn),Pn=In.length;Pn--;){var Dn=In[_n?Pn:++Bn];if($n(Ln[Dn],Dn,Ln)===!1)break}return Cn}}var baseFor=createBaseFor();const baseFor$1=baseFor;function assignMergeValue(_n,Cn,$n){($n!==void 0&&!eq(_n[Cn],$n)||$n===void 0&&!(Cn in _n))&&baseAssignValue(_n,Cn,$n)}function isArrayLikeObject(_n){return isObjectLike(_n)&&isArrayLike(_n)}function safeGet(_n,Cn){if(!(Cn==="constructor"&&typeof _n[Cn]=="function")&&Cn!="__proto__")return _n[Cn]}function toPlainObject(_n){return copyObject(_n,keysIn(_n))}function baseMergeDeep(_n,Cn,$n,Nn,Bn,Ln,In){var Pn=safeGet(_n,$n),Dn=safeGet(Cn,$n),Hn=In.get(Dn);if(Hn){assignMergeValue(_n,$n,Hn);return}var Wn=Ln?Ln(Pn,Dn,$n+"",_n,Cn,In):void 0,Xn=Wn===void 0;if(Xn){var Gn=isArray$2(Dn),rr=!Gn&&isBuffer$2(Dn),nr=!Gn&&!rr&&isTypedArray$2(Dn);Wn=Dn,Gn||rr||nr?isArray$2(Pn)?Wn=Pn:isArrayLikeObject(Pn)?Wn=copyArray(Pn):rr?(Xn=!1,Wn=cloneBuffer(Dn,!0)):nr?(Xn=!1,Wn=cloneTypedArray(Dn,!0)):Wn=[]:isPlainObject$1(Dn)||isArguments$1(Dn)?(Wn=Pn,isArguments$1(Pn)?Wn=toPlainObject(Pn):(!isObject$2(Pn)||isFunction$1(Pn))&&(Wn=initCloneObject(Dn))):Xn=!1}Xn&&(In.set(Dn,Wn),Bn(Wn,Dn,Nn,Ln,In),In.delete(Dn)),assignMergeValue(_n,$n,Wn)}function baseMerge(_n,Cn,$n,Nn,Bn){_n!==Cn&&baseFor$1(Cn,function(Ln,In){if(Bn||(Bn=new Stack),isObject$2(Ln))baseMergeDeep(_n,Cn,In,$n,baseMerge,Nn,Bn);else{var Pn=Nn?Nn(safeGet(_n,In),Ln,In+"",_n,Cn,Bn):void 0;Pn===void 0&&(Pn=Ln),assignMergeValue(_n,In,Pn)}},keysIn)}var merge$2=createAssigner(function(_n,Cn,$n){baseMerge(_n,Cn,$n)});const le=merge$2;var ze=Object.defineProperty,Ge=(_n,Cn,$n)=>Cn in _n?ze(_n,Cn,{enumerable:!0,configurable:!0,writable:!0,value:$n}):_n[Cn]=$n,L=(_n,Cn,$n)=>(Ge(_n,typeof Cn!="symbol"?Cn+"":Cn,$n),$n);const V=_n=>Math.round(_n*100)/100;class R{constructor(Cn){L(this,"instance"),L(this,"alphaValue",0),L(this,"redValue",0),L(this,"greenValue",0),L(this,"blueValue",0),L(this,"hueValue",0),L(this,"saturationValue",0),L(this,"brightnessValue",0),L(this,"hslSaturationValue",0),L(this,"lightnessValue",0),L(this,"initAlpha",()=>{const $n=this.instance.getAlpha();this.alphaValue=Math.min(1,$n)*100}),L(this,"initLightness",()=>{const{s:$n,l:Nn}=this.instance.toHsl();this.hslSaturationValue=V($n),this.lightnessValue=V(Nn)}),L(this,"initRgb",()=>{const{r:$n,g:Nn,b:Bn}=this.instance.toRgb();this.redValue=V($n),this.greenValue=V(Nn),this.blueValue=V(Bn)}),L(this,"initHsb",()=>{const{h:$n,s:Nn,v:Bn}=this.instance.toHsv();this.hueValue=Math.min(360,Math.ceil($n)),this.saturationValue=V(Nn),this.brightnessValue=V(Bn)}),L(this,"toHexString",()=>this.instance.toHexString()),L(this,"toRgbString",()=>this.instance.toRgbString()),this.instance=tinycolor(Cn),this.initRgb(),this.initHsb(),this.initLightness(),this.initAlpha()}toString(Cn){return this.instance.toString(Cn)}get hex(){return this.instance.toHex()}set hex(Cn){this.instance=tinycolor(Cn),this.initHsb(),this.initRgb(),this.initAlpha(),this.initLightness()}set hue(Cn){this.saturation===0&&this.brightness===0&&(this.saturationValue=1,this.brightnessValue=1),this.instance=tinycolor({h:V(Cn),s:this.saturation,v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.hueValue=V(Cn)}get hue(){return this.hueValue}set saturation(Cn){this.instance=tinycolor({h:this.hue,s:V(Cn),v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.saturationValue=V(Cn)}get saturation(){return this.saturationValue}set brightness(Cn){this.instance=tinycolor({h:this.hue,s:this.saturation,v:V(Cn),a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.brightnessValue=V(Cn)}get brightness(){return this.brightnessValue}set lightness(Cn){this.instance=tinycolor({h:this.hue,s:this.hslSaturationValue,l:V(Cn),a:this.alphaValue/100}),this.initRgb(),this.initHsb(),this.lightnessValue=V(Cn)}get lightness(){return this.lightnessValue}set red(Cn){const $n=this.instance.toRgb();this.instance=tinycolor({...$n,r:V(Cn),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.redValue=V(Cn)}get red(){return this.redValue}set green(Cn){const $n=this.instance.toRgb();this.instance=tinycolor({...$n,g:V(Cn),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.greenValue=V(Cn)}get green(){return this.greenValue}set blue(Cn){const $n=this.instance.toRgb();this.instance=tinycolor({...$n,b:V(Cn),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.blueValue=V(Cn)}get blue(){return this.blueValue}set alpha(Cn){this.instance.setAlpha(Cn/100),this.alphaValue=Cn}get alpha(){return this.alphaValue}get RGB(){return[this.red,this.green,this.blue,this.alpha/100]}get HSB(){return[this.hue,this.saturation,this.brightness,this.alpha/100]}get HSL(){return[this.hue,this.hslSaturationValue,this.lightness,this.alpha/100]}}function $e(_n,Cn,$n,Nn){return`rgba(${[_n,Cn,$n,Nn/100].join(",")})`}const ie=(_n,Cn,$n)=>Cn<$n?_n<Cn?Cn:_n>$n?$n:_n:_n<$n?$n:_n>Cn?Cn:_n,de="color-history",ge=8,X=(_n,Cn)=>{const $n=_n.__vccOpts||_n;for(const[Nn,Bn]of Cn)$n[Nn]=Bn;return $n},tt=defineComponent({name:"Alpha",props:{color:C$1.instanceOf(R),size:C$1.oneOf(["small","default"]).def("default")},emits:["change"],setup(_n,{emit:Cn}){const $n=ref(null),Nn=ref(null);let Bn=_n.color||new R;const Ln=reactive({red:Bn.red,green:Bn.green,blue:Bn.blue,alpha:Bn.alpha});watch(()=>_n.color,Xn=>{Xn&&(Bn=Xn,le(Ln,{red:Xn.red,green:Xn.green,blue:Xn.blue,alpha:Xn.alpha}))},{deep:!0});const In=computed(()=>{const Xn=$e(Ln.red,Ln.green,Ln.blue,0),Gn=$e(Ln.red,Ln.green,Ln.blue,100);return{background:`linear-gradient(to right, ${Xn} , ${Gn})`}}),Pn=()=>{if($n.value&&Nn.value){const Xn=Ln.alpha/100,Gn=$n.value.getBoundingClientRect(),rr=Nn.value.offsetWidth;return Math.round(Xn*(Gn.width-rr)+rr/2)}return 0},Dn=computed(()=>({left:Pn()+"px",top:0})),Hn=Xn=>{Xn.target!==$n.value&&Wn(Xn)},Wn=Xn=>{if(Xn.stopPropagation(),$n.value&&Nn.value){const Gn=$n.value.getBoundingClientRect(),rr=Nn.value.offsetWidth;let nr=Xn.clientX-Gn.left;nr=Math.max(rr/2,nr),nr=Math.min(nr,Gn.width-rr/2);const Yo=Math.round((nr-rr/2)/(Gn.width-rr)*100);Bn.alpha=Yo,Ln.alpha=Yo,Cn("change",Yo)}};return tryOnMounted(()=>{const Xn={drag:Gn=>{Wn(Gn)},end:Gn=>{Wn(Gn)}};$n.value&&Nn.value&&Vn.triggerDragEvent($n.value,Xn)}),{barElement:$n,cursorElement:Nn,getCursorStyle:Dn,getBackgroundStyle:In,onClickSider:Hn}}}),ot=_n=>(pushScopeId("data-v-18925ba6"),_n=_n(),popScopeId(),_n),nt=ot(()=>createBaseVNode("div",{class:"vc-alpha-slider__bar-handle"},null,-1)),at=[nt];function rt(_n,Cn,$n,Nn,Bn,Ln){return openBlock(),createElementBlock("div",{class:normalizeClass(["vc-alpha-slider","transparent",{"small-slider":_n.size==="small"}])},[createBaseVNode("div",{ref:"barElement",class:"vc-alpha-slider__bar",style:normalizeStyle(_n.getBackgroundStyle),onClick:Cn[0]||(Cn[0]=(...In)=>_n.onClickSider&&_n.onClickSider(...In))},[createBaseVNode("div",{class:normalizeClass(["vc-alpha-slider__bar-pointer",{"small-bar":_n.size==="small"}]),ref:"cursorElement",style:normalizeStyle(_n.getCursorStyle)},at,6)],4)],2)}const he=X(tt,[["render",rt],["__scopeId","data-v-18925ba6"]]),lt=[["#fcc02e","#f67c01","#e64a19","#d81b43","#8e24aa","#512da7","#1f87e8","#008781","#05a045"],["#fed835","#fb8c00","#f5511e","#eb1d4e","#9c28b1","#5d35b0","#2097f3","#029688","#4cb050"],["#ffeb3c","#ffa727","#fe5722","#eb4165","#aa47bc","#673bb7","#42a5f6","#26a59a","#83c683"],["#fff176","#ffb74e","#ff8a66","#f1627e","#b968c7","#7986cc","#64b5f6","#80cbc4","#a5d6a7"],["#fff59c","#ffcc80","#ffab91","#fb879e","#cf93d9","#9ea8db","#90caf8","#b2dfdc","#c8e6ca"],["transparent","#ffffff","#dedede","#a9a9a9","#4b4b4b","#353535","#212121","#000000","advance"]],st=defineComponent({name:"Palette",emits:["change"],setup(_n,{emit:Cn}){return{palettes:lt,computedBgStyle:$n=>$n==="transparent"?$n:$n==="advance"?{}:{background:tinycolor($n).toRgbString()},onColorChange:$n=>{Cn("change",$n)}}}}),it={class:"vc-compact"},ct=["onClick"];function ut(_n,Cn,$n,Nn,Bn,Ln){return openBlock(),createElementBlock("div",it,[(openBlock(!0),createElementBlock(Fragment,null,renderList(_n.palettes,(In,Pn)=>(openBlock(),createElementBlock("div",{key:Pn,class:"vc-compact__row"},[(openBlock(!0),createElementBlock(Fragment,null,renderList(In,(Dn,Hn)=>(openBlock(),createElementBlock("div",{key:Hn,class:"vc-compact__color-cube--wrap",onClick:Wn=>_n.onColorChange(Dn)},[createBaseVNode("div",{class:normalizeClass(["vc-compact__color_cube",{advance:Dn==="advance",transparent:Dn==="transparent"}]),style:normalizeStyle(_n.computedBgStyle(Dn))},null,6)],8,ct))),128))]))),128))])}const Ve=X(st,[["render",ut],["__scopeId","data-v-b969fd48"]]),dt=defineComponent({name:"Board",props:{color:C$1.instanceOf(R),round:C$1.bool.def(!1),hide:C$1.bool.def(!0)},emits:["change"],setup(_n,{emit:Cn}){var $n,Nn,Bn;const Ln=getCurrentInstance(),In={h:(($n=_n.color)==null?void 0:$n.hue)||0,s:1,v:1},Pn=new R(In).toHexString(),Dn=reactive({hueColor:Pn,saturation:((Nn=_n.color)==null?void 0:Nn.saturation)||0,brightness:((Bn=_n.color)==null?void 0:Bn.brightness)||0}),Hn=ref(0),Wn=ref(0),Xn=ref(),Gn=ref(),rr=computed(()=>({top:Hn.value+"px",left:Wn.value+"px"})),nr=()=>{if(Ln){const ti=Ln.vnode.el;Wn.value=Dn.saturation*(ti==null?void 0:ti.clientWidth),Hn.value=(1-Dn.brightness)*(ti==null?void 0:ti.clientHeight)}},Yo=ti=>{ti.target!==Gn.value&&ei(ti)},ei=ti=>{if(Ln){const ui=Ln.vnode.el,mi=ui==null?void 0:ui.getBoundingClientRect();let Xo=ti.clientX-mi.left,vi=ti.clientY-mi.top;Xo=ie(Xo,0,mi.width),vi=ie(vi,0,mi.height);const zn=Xo/mi.width,Ni=ie(-(vi/mi.height)+1,0,1);Wn.value=Xo,Hn.value=vi,Dn.saturation=zn,Dn.brightness=Ni,Cn("change",zn,Ni)}};return tryOnMounted(()=>{Ln&&Ln.vnode.el&&Xn.value&&(Vn.triggerDragEvent(Xn.value,{drag:ti=>{ei(ti)},end:ti=>{ei(ti)}}),nextTick(()=>{nr()}))}),whenever(()=>_n.color,ti=>{le(Dn,{hueColor:new R({h:ti.hue,s:1,v:1}).toHexString(),saturation:ti.saturation,brightness:ti.brightness}),nr()},{deep:!0}),{state:Dn,cursorElement:Xn,getCursorStyle:rr,onClickBoard:Yo}}}),pe=_n=>(pushScopeId("data-v-058e5db2"),_n=_n(),popScopeId(),_n),gt=pe(()=>createBaseVNode("div",{class:"vc-saturation__white"},null,-1)),ht=pe(()=>createBaseVNode("div",{class:"vc-saturation__black"},null,-1)),pt=pe(()=>createBaseVNode("div",null,null,-1)),ft=[pt];function vt(_n,Cn,$n,Nn,Bn,Ln){return openBlock(),createElementBlock("div",{ref:"boardElement",class:normalizeClass(["vc-saturation",{"vc-saturation__chrome":_n.round,"vc-saturation__hidden":_n.hide}]),style:normalizeStyle({backgroundColor:_n.state.hueColor}),onClick:Cn[0]||(Cn[0]=(...In)=>_n.onClickBoard&&_n.onClickBoard(...In))},[gt,ht,createBaseVNode("div",{class:"vc-saturation__cursor",ref:"cursorElement",style:normalizeStyle(_n.getCursorStyle)},ft,4)],6)}const fe=X(dt,[["render",vt],["__scopeId","data-v-058e5db2"]]),Ct=defineComponent({name:"Hue",props:{color:C$1.instanceOf(R),size:C$1.oneOf(["small","default"]).def("default")},emits:["change"],setup(_n,{emit:Cn}){const $n=ref(null),Nn=ref(null);let Bn=_n.color||new R;const Ln=reactive({hue:Bn.hue||0});watch(()=>_n.color,Wn=>{Wn&&(Bn=Wn,le(Ln,{hue:Bn.hue}))},{deep:!0});const In=()=>{if($n.value&&Nn.value){const Wn=$n.value.getBoundingClientRect(),Xn=Nn.value.offsetWidth;return Ln.hue===360?Wn.width-Xn/2:Ln.hue%360*(Wn.width-Xn)/360+Xn/2}return 0},Pn=computed(()=>({left:In()+"px",top:0})),Dn=Wn=>{Wn.target!==$n.value&&Hn(Wn)},Hn=Wn=>{if(Wn.stopPropagation(),$n.value&&Nn.value){const Xn=$n.value.getBoundingClientRect(),Gn=Nn.value.offsetWidth;let rr=Wn.clientX-Xn.left;rr=Math.min(rr,Xn.width-Gn/2),rr=Math.max(Gn/2,rr);const nr=Math.round((rr-Gn/2)/(Xn.width-Gn)*360);Bn.hue=nr,Ln.hue=nr,Cn("change",nr)}};return tryOnMounted(()=>{const Wn={drag:Xn=>{Hn(Xn)},end:Xn=>{Hn(Xn)}};$n.value&&Nn.value&&Vn.triggerDragEvent($n.value,Wn)}),{barElement:$n,cursorElement:Nn,getCursorStyle:Pn,onClickSider:Dn}}}),bt=_n=>(pushScopeId("data-v-e1a08576"),_n=_n(),popScopeId(),_n),yt=bt(()=>createBaseVNode("div",{class:"vc-hue-slider__bar-handle"},null,-1)),_t=[yt];function mt(_n,Cn,$n,Nn,Bn,Ln){return openBlock(),createElementBlock("div",{class:normalizeClass(["vc-hue-slider",{"small-slider":_n.size==="small"}])},[createBaseVNode("div",{ref:"barElement",class:"vc-hue-slider__bar",onClick:Cn[0]||(Cn[0]=(...In)=>_n.onClickSider&&_n.onClickSider(...In))},[createBaseVNode("div",{class:normalizeClass(["vc-hue-slider__bar-pointer",{"small-bar":_n.size==="small"}]),ref:"cursorElement",style:normalizeStyle(_n.getCursorStyle)},_t,6)],512)],2)}const ve=X(Ct,[["render",mt],["__scopeId","data-v-e1a08576"]]),St=defineComponent({name:"Lightness",props:{color:C$1.instanceOf(R),size:C$1.oneOf(["small","default"]).def("default")},emits:["change"],setup(_n,{emit:Cn}){const $n=ref(null),Nn=ref(null);let Bn=_n.color||new R;const[Ln,In,Pn]=Bn.HSL,Dn=reactive({hue:Ln,saturation:In,lightness:Pn});watch(()=>_n.color,nr=>{if(nr){Bn=nr;const[Yo,ei,ti]=Bn.HSL;le(Dn,{hue:Yo,saturation:ei,lightness:ti})}},{deep:!0});const Hn=computed(()=>{const nr=tinycolor({h:Dn.hue,s:Dn.saturation,l:.8}).toPercentageRgbString(),Yo=tinycolor({h:Dn.hue,s:Dn.saturation,l:.6}).toPercentageRgbString(),ei=tinycolor({h:Dn.hue,s:Dn.saturation,l:.4}).toPercentageRgbString(),ti=tinycolor({h:Dn.hue,s:Dn.saturation,l:.2}).toPercentageRgbString();return{background:[`linear-gradient(to right, rgb(255, 255, 255), ${nr}, ${Yo}, ${ei}, ${ti}, rgb(0, 0, 0))`,`-webkit-linear-gradient(left, rgb(255, 255, 255), ${nr}, ${Yo}, ${ei}, ${ti}, rgb(0, 0, 0))`,`-moz-linear-gradient(left, rgb(255, 255, 255), ${nr}, ${Yo}, ${ei}, ${ti}, rgb(0, 0, 0))`,`-ms-linear-gradient(left, rgb(255, 255, 255), ${nr}, ${Yo}, ${ei}, ${ti}, rgb(0, 0, 0))`]}}),Wn=()=>{if($n.value&&Nn.value){const nr=Dn.lightness,Yo=$n.value.getBoundingClientRect(),ei=Nn.value.offsetWidth;return(1-nr)*(Yo.width-ei)+ei/2}return 0},Xn=computed(()=>({left:Wn()+"px",top:0})),Gn=nr=>{nr.target!==$n.value&&rr(nr)},rr=nr=>{if(nr.stopPropagation(),$n.value&&Nn.value){const Yo=$n.value.getBoundingClientRect(),ei=Nn.value.offsetWidth;let ti=nr.clientX-Yo.left;ti=Math.max(ei/2,ti),ti=Math.min(ti,Yo.width-ei/2);const ui=1-(ti-ei/2)/(Yo.width-ei);Bn.lightness=ui,Cn("change",ui)}};return tryOnMounted(()=>{const nr={drag:Yo=>{rr(Yo)},end:Yo=>{rr(Yo)}};$n.value&&Nn.value&&Vn.triggerDragEvent($n.value,nr)}),{barElement:$n,cursorElement:Nn,getCursorStyle:Xn,getBackgroundStyle:Hn,onClickSider:Gn}}}),kt=_n=>(pushScopeId("data-v-94a50a9e"),_n=_n(),popScopeId(),_n),$t=kt(()=>createBaseVNode("div",{class:"vc-lightness-slider__bar-handle"},null,-1)),wt=[$t];function Ht(_n,Cn,$n,Nn,Bn,Ln){return openBlock(),createElementBlock("div",{class:normalizeClass(["vc-lightness-slider",{"small-slider":_n.size==="small"}])},[createBaseVNode("div",{ref:"barElement",class:"vc-lightness-slider__bar",style:normalizeStyle(_n.getBackgroundStyle),onClick:Cn[0]||(Cn[0]=(...In)=>_n.onClickSider&&_n.onClickSider(...In))},[createBaseVNode("div",{class:normalizeClass(["vc-lightness-slider__bar-pointer",{"small-bar":_n.size==="small"}]),ref:"cursorElement",style:normalizeStyle(_n.getCursorStyle)},wt,6)],4)],2)}const Ie=X(St,[["render",Ht],["__scopeId","data-v-94a50a9e"]]),Bt=defineComponent({name:"History",props:{colors:C$1.arrayOf(String).def(()=>[]),round:C$1.bool.def(!1)},emits:["change"],setup(_n,{emit:Cn}){return{onColorSelect:$n=>{Cn("change",$n)}}}}),Rt={key:0,class:"vc-colorPicker__record"},At={class:"color-list"},Pt=["onClick"];function Vt(_n,Cn,$n,Nn,Bn,Ln){return _n.colors&&_n.colors.length>0?(openBlock(),createElementBlock("div",Rt,[createBaseVNode("div",At,[(openBlock(!0),createElementBlock(Fragment,null,renderList(_n.colors,(In,Pn)=>(openBlock(),createElementBlock("div",{key:Pn,class:normalizeClass(["color-item","transparent",{"color-item__round":_n.round}]),onClick:Dn=>_n.onColorSelect(In)},[createBaseVNode("div",{class:"color-item__display",style:normalizeStyle({backgroundColor:In})},null,4)],10,Pt))),128))])])):createCommentVNode("",!0)}const Ce=X(Bt,[["render",Vt],["__scopeId","data-v-0f657238"]]),It=defineComponent({name:"Display",props:{color:C$1.instanceOf(R),disableAlpha:C$1.bool.def(!1)},emits:["update:color","change"],setup(_n,{emit:Cn}){var $n,Nn,Bn,Ln;const In=ref("hex"),Pn=reactive({color:_n.color,hex:($n=_n.color)==null?void 0:$n.hex,alpha:((Nn=_n.color)==null?void 0:Nn.alpha)+"%",rgba:(Bn=_n.color)==null?void 0:Bn.RGB,previewBgColor:(Ln=_n.color)==null?void 0:Ln.toRgbString()}),Dn=computed(()=>({background:Pn.previewBgColor})),Hn=()=>{In.value=In.value==="rgba"?"hex":"rgba"},Wn=useDebounceFn(Gn=>{if(!Gn.target.value)return;let rr=parseInt(Gn.target.value.replace("%",""));rr>100&&(Gn.target.value="100%",rr=100),rr<0&&(Gn.target.value="0%",rr=0),isNaN(rr)&&(Gn.target.value="100%",rr=100),!isNaN(rr)&&Pn.color&&(Pn.color.alpha=rr),Cn("update:color",Pn.color),Cn("change",Pn.color)},300),Xn=useDebounceFn((Gn,rr)=>{if(console.log(Gn.target.value),!!Gn.target.value){if(In.value==="hex"){const nr=Gn.target.value.replace("#","");tinycolor(nr).isValid()&&Pn.color&&(Pn.color.hex=nr)}else if(rr!==void 0&&Pn.rgba&&Pn.color){Gn.target.value<0&&(Gn.target.value=0),rr===3&&Gn.target.value>1&&(Gn.target.value=1),rr<3&&Gn.target.value>255&&(Gn.target.value=255),Pn.rgba[rr]=Number(Gn.target.value);const[nr,Yo,ei,ti]=Pn.rgba;Pn.color.hex=tinycolor({r:nr,g:Yo,b:ei}).toHex(),Pn.color.alpha=Math.floor(ti*100)}Cn("update:color",Pn.color),Cn("change",Pn.color)}},300);return whenever(()=>_n.color,Gn=>{Gn&&(Pn.color=Gn,Pn.alpha=Math.floor(Pn.color.alpha)+"%",Pn.hex=Pn.color.hex,Pn.rgba=Pn.color.RGB)},{deep:!0}),whenever(()=>Pn.color,()=>{Pn.color&&(Pn.previewBgColor=Pn.color.toRgbString())},{deep:!0}),{state:Pn,getBgColorStyle:Dn,inputType:In,onInputTypeChange:Hn,onAlphaBlur:Wn,onInputChange:Xn}}}),Mt={class:"vc-display"},Kt={class:"vc-current-color vc-transparent"},Lt={key:0,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},Et={class:"vc-color-input"},Nt=["value"],Wt={key:0,class:"vc-alpha-input"},Dt=["value"],Tt={key:1,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},Ot=["value","onInput"];function zt(_n,Cn,$n,Nn,Bn,Ln){return openBlock(),createElementBlock("div",Mt,[createBaseVNode("div",Kt,[createBaseVNode("div",{class:"color-cube",style:normalizeStyle(_n.getBgColorStyle)},null,4)]),_n.inputType==="hex"?(openBlock(),createElementBlock("div",Lt,[createBaseVNode("div",Et,[createBaseVNode("input",{value:_n.state.hex,onInput:Cn[0]||(Cn[0]=(...In)=>_n.onInputChange&&_n.onInputChange(...In))},null,40,Nt)]),_n.disableAlpha?createCommentVNode("",!0):(openBlock(),createElementBlock("div",Wt,[createBaseVNode("input",{class:"vc-alpha-input__inner",value:_n.state.alpha,onInput:Cn[1]||(Cn[1]=(...In)=>_n.onAlphaBlur&&_n.onAlphaBlur(...In))},null,40,Dt)]))])):_n.state.rgba?(openBlock(),createElementBlock("div",Tt,[(openBlock(!0),createElementBlock(Fragment,null,renderList(_n.state.rgba,(In,Pn)=>(openBlock(),createElementBlock("div",{class:"vc-rgb-input",key:Pn},[createBaseVNode("div",null,[createBaseVNode("input",{value:In,onInput:Dn=>_n.onInputChange(Dn,Pn)},null,40,Ot)]),createBaseVNode("div",null,toDisplayString(["R","G","B","A"][Pn]),1)]))),128))])):createCommentVNode("",!0),createBaseVNode("div",{class:"vc-input-toggle",onClick:Cn[2]||(Cn[2]=(...In)=>_n.onInputTypeChange&&_n.onInputTypeChange(...In))})])}const be=X(It,[["render",zt],["__scopeId","data-v-f6f511ec"]]),Gt=defineComponent({name:"FkColorPicker",components:{Display:be,Alpha:he,Palette:Ve,Board:fe,Hue:ve,Lightness:Ie,History:Ce},props:{color:C$1.instanceOf(R),disableHistory:C$1.bool.def(!1),roundHistory:C$1.bool.def(!1),disableAlpha:C$1.bool.def(!1)},emits:["update:color","change","advanceChange"],setup(_n,{emit:Cn}){const $n=_n.color||new R,Nn=reactive({color:$n,hex:$n.toHexString(),rgb:$n.toRgbString()}),Bn=ref(!1),Ln=computed(()=>({background:Nn.rgb})),In=()=>{Bn.value=!1,Cn("advanceChange",!1)},Pn=useLocalStorage(de,[],{}),Dn=useDebounceFn(()=>{if(_n.disableHistory)return;const Yo=Nn.color.toRgbString();if(Pn.value=Pn.value.filter(ei=>!tinycolor.equals(ei,Yo)),!Pn.value.includes(Yo)){for(;Pn.value.length>ge;)Pn.value.pop();Pn.value.unshift(Yo)}},500),Hn=Yo=>{Yo==="advance"?(Bn.value=!0,Cn("advanceChange",!0)):(Nn.color.hex=Yo,Cn("advanceChange",!1))},Wn=Yo=>{Nn.color.alpha=Yo},Xn=Yo=>{Nn.color.hue=Yo},Gn=(Yo,ei)=>{Nn.color.saturation=Yo,Nn.color.brightness=ei},rr=Yo=>{Nn.color.lightness=Yo},nr=Yo=>{const ei=Yo.target.value.replace("#","");tinycolor(ei).isValid()&&(Nn.color.hex=ei)};return whenever(()=>_n.color,Yo=>{Yo&&(Nn.color=Yo)},{deep:!0}),whenever(()=>Nn.color,()=>{Nn.hex=Nn.color.hex,Nn.rgb=Nn.color.toRgbString(),Dn(),Cn("update:color",Nn.color),Cn("change",Nn.color)},{deep:!0}),{state:Nn,advancePanelShow:Bn,onBack:In,onCompactChange:Hn,onAlphaChange:Wn,onHueChange:Xn,onBoardChange:Gn,onLightChange:rr,onInputChange:nr,previewStyle:Ln,historyColors:Pn}}}),Xt=_n=>(pushScopeId("data-v-0d5bef46"),_n=_n(),popScopeId(),_n),qt={class:"vc-fk-colorPicker"},Ft={class:"vc-fk-colorPicker__inner"},Yt={class:"vc-fk-colorPicker__header"},Ut=Xt(()=>createBaseVNode("div",{class:"back"},null,-1)),jt=[Ut];function Zt(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("Palette"),Pn=resolveComponent("Board"),Dn=resolveComponent("Hue"),Hn=resolveComponent("Lightness"),Wn=resolveComponent("Alpha"),Xn=resolveComponent("Display"),Gn=resolveComponent("History");return openBlock(),createElementBlock("div",qt,[createBaseVNode("div",Ft,[createBaseVNode("div",Yt,[_n.advancePanelShow?(openBlock(),createElementBlock("span",{key:0,style:{cursor:"pointer"},onClick:Cn[0]||(Cn[0]=(...rr)=>_n.onBack&&_n.onBack(...rr))},jt)):createCommentVNode("",!0)]),_n.advancePanelShow?createCommentVNode("",!0):(openBlock(),createBlock(In,{key:0,onChange:_n.onCompactChange},null,8,["onChange"])),_n.advancePanelShow?(openBlock(),createBlock(Pn,{key:1,color:_n.state.color,onChange:_n.onBoardChange},null,8,["color","onChange"])):createCommentVNode("",!0),_n.advancePanelShow?(openBlock(),createBlock(Dn,{key:2,color:_n.state.color,onChange:_n.onHueChange},null,8,["color","onChange"])):createCommentVNode("",!0),_n.advancePanelShow?createCommentVNode("",!0):(openBlock(),createBlock(Hn,{key:3,color:_n.state.color,onChange:_n.onLightChange},null,8,["color","onChange"])),_n.disableAlpha?createCommentVNode("",!0):(openBlock(),createBlock(Wn,{key:4,color:_n.state.color,onChange:_n.onAlphaChange},null,8,["color","onChange"])),createVNode(Xn,{color:_n.state.color,"disable-alpha":_n.disableAlpha},null,8,["color","disable-alpha"]),_n.disableHistory?createCommentVNode("",!0):(openBlock(),createBlock(Gn,{key:5,round:_n.roundHistory,colors:_n.historyColors,onChange:_n.onCompactChange},null,8,["round","colors","onChange"]))])])}const we=X(Gt,[["render",Zt],["__scopeId","data-v-0d5bef46"]]),Jt=defineComponent({name:"ChromeColorPicker",components:{Display:be,Alpha:he,Board:fe,Hue:ve,History:Ce},props:{color:C$1.instanceOf(R),disableHistory:C$1.bool.def(!1),roundHistory:C$1.bool.def(!1),disableAlpha:C$1.bool.def(!1)},emits:["update:color","change"],setup(_n,{emit:Cn}){const $n=_n.color||new R,Nn=reactive({color:$n,hex:$n.toHexString(),rgb:$n.toRgbString()}),Bn=computed(()=>({background:Nn.rgb})),Ln=useLocalStorage(de,[],{}),In=useDebounceFn(()=>{if(_n.disableHistory)return;const Xn=Nn.color.toRgbString();if(Ln.value=Ln.value.filter(Gn=>!tinycolor.equals(Gn,Xn)),!Ln.value.includes(Xn)){for(;Ln.value.length>ge;)Ln.value.pop();Ln.value.unshift(Xn)}},500),Pn=Xn=>{Nn.color.alpha=Xn},Dn=Xn=>{Nn.color.hue=Xn},Hn=(Xn,Gn)=>{Nn.color.saturation=Xn,Nn.color.brightness=Gn},Wn=Xn=>{Xn!=="advance"&&(Nn.color.hex=Xn)};return whenever(()=>_n.color,Xn=>{Xn&&(Nn.color=Xn)},{deep:!0}),whenever(()=>Nn.color,()=>{Nn.hex=Nn.color.hex,Nn.rgb=Nn.color.toRgbString(),In(),Cn("update:color",Nn.color),Cn("change",Nn.color)},{deep:!0}),{state:Nn,previewStyle:Bn,historyColors:Ln,onAlphaChange:Pn,onHueChange:Dn,onBoardChange:Hn,onCompactChange:Wn}}}),Qt={class:"vc-chrome-colorPicker"},xt={class:"vc-chrome-colorPicker-body"},eo={class:"chrome-controls"},to={class:"chrome-sliders"};function oo(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("Board"),Pn=resolveComponent("Hue"),Dn=resolveComponent("Alpha"),Hn=resolveComponent("Display"),Wn=resolveComponent("History");return openBlock(),createElementBlock("div",Qt,[createVNode(In,{round:!0,hide:!1,color:_n.state.color,onChange:_n.onBoardChange},null,8,["color","onChange"]),createBaseVNode("div",xt,[createBaseVNode("div",eo,[createBaseVNode("div",to,[createVNode(Pn,{size:"small",color:_n.state.color,onChange:_n.onHueChange},null,8,["color","onChange"]),_n.disableAlpha?createCommentVNode("",!0):(openBlock(),createBlock(Dn,{key:0,size:"small",color:_n.state.color,onChange:_n.onAlphaChange},null,8,["color","onChange"]))])]),createVNode(Hn,{color:_n.state.color,"disable-alpha":_n.disableAlpha},null,8,["color","disable-alpha"]),_n.disableHistory?createCommentVNode("",!0):(openBlock(),createBlock(Wn,{key:0,round:_n.roundHistory,colors:_n.historyColors,onChange:_n.onCompactChange},null,8,["round","colors","onChange"]))])])}const He=X(Jt,[["render",oo],["__scopeId","data-v-33636434"]]),ye="Vue3ColorPickerProvider",no=(_n,Cn)=>{const $n=_n.getBoundingClientRect(),Nn=$n.left+$n.width/2,Bn=$n.top+$n.height/2,Ln=Math.abs(Nn-Cn.clientX),In=Math.abs(Bn-Cn.clientY),Pn=Math.sqrt(Math.pow(Ln,2)+Math.pow(In,2)),Dn=In/Pn,Hn=Math.acos(Dn);let Wn=Math.floor(180/(Math.PI/Hn));return Cn.clientX>Nn&&Cn.clientY>Bn&&(Wn=180-Wn),Cn.clientX==Nn&&Cn.clientY>Bn&&(Wn=180),Cn.clientX>Nn&&Cn.clientY==Bn&&(Wn=90),Cn.clientX<Nn&&Cn.clientY>Bn&&(Wn=180+Wn),Cn.clientX<Nn&&Cn.clientY==Bn&&(Wn=270),Cn.clientX<Nn&&Cn.clientY<Bn&&(Wn=360-Wn),Wn};let ce=!1;const ao=(_n,Cn)=>{const $n=function(Bn){var Ln;(Ln=Cn.drag)==null||Ln.call(Cn,Bn)},Nn=function(Bn){var Ln;document.removeEventListener("mousemove",$n,!1),document.removeEventListener("mouseup",Nn,!1),document.onselectstart=null,document.ondragstart=null,ce=!1,(Ln=Cn.end)==null||Ln.call(Cn,Bn)};_n&&_n.addEventListener("mousedown",Bn=>{var Ln;ce||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",$n,!1),document.addEventListener("mouseup",Nn,!1),ce=!0,(Ln=Cn.start)==null||Ln.call(Cn,Bn))})},ro={angle:{type:Number,default:0},size:{type:Number,default:16,validator:_n=>_n>=16},borderWidth:{type:Number,default:1,validator:_n=>_n>=1},borderColor:{type:String,default:"#666"}},lo=defineComponent({name:"Angle",props:ro,emits:["update:angle","change"],setup(_n,{emit:Cn}){const $n=ref(null),Nn=ref(0);watch(()=>_n.angle,Pn=>{Nn.value=Pn});const Bn=()=>{let Pn=Number(Nn.value);isNaN(Pn)||(Pn=Pn>360||Pn<0?_n.angle:Pn,Nn.value=Pn===360?0:Pn,Cn("update:angle",Nn.value),Cn("change",Nn.value))},Ln=computed(()=>({width:_n.size+"px",height:_n.size+"px",borderWidth:_n.borderWidth+"px",borderColor:_n.borderColor,transform:`rotate(${Nn.value}deg)`})),In=Pn=>{$n.value&&(Nn.value=no($n.value,Pn)%360,Bn())};return onMounted(()=>{const Pn={drag:Dn=>{In(Dn)},end:Dn=>{In(Dn)}};$n.value&&ao($n.value,Pn)}),()=>createVNode("div",{class:"bee-angle"},[createVNode("div",{class:"bee-angle__round",ref:$n,style:Ln.value},null)])}}),so=defineComponent({name:"GradientColorPicker",components:{Angle:lo,Display:be,Alpha:he,Palette:Ve,Board:fe,Hue:ve,Lightness:Ie,History:Ce},props:{startColor:C$1.instanceOf(R).isRequired,endColor:C$1.instanceOf(R).isRequired,startColorStop:C$1.number.def(0),endColorStop:C$1.number.def(100),angle:C$1.number.def(0),type:C$1.oneOf(["linear","radial"]).def("linear"),disableHistory:C$1.bool.def(!1),roundHistory:C$1.bool.def(!1),disableAlpha:C$1.bool.def(!1),pickerType:C$1.oneOf(["fk","chrome"]).def("fk")},emits:["update:startColor","update:endColor","update:angle","update:startColorStop","update:endColorStop","startColorChange","endColorChange","advanceChange","angleChange","startColorStopChange","endColorStopChange","typeChange"],setup(_n,{emit:Cn}){const $n=reactive({startActive:!0,startColor:_n.startColor,endColor:_n.endColor,startColorStop:_n.startColorStop,endColorStop:_n.endColorStop,angle:_n.angle,type:_n.type,startColorRgba:_n.startColor.toRgbString(),endColorRgba:_n.endColor.toRgbString()}),Nn=inject(ye),Bn=ref(_n.pickerType==="chrome"),Ln=ref(),In=ref(),Pn=ref();watch(()=>[_n.startColor,_n.endColor,_n.angle],ci=>{$n.startColor=ci[0],$n.endColor=ci[1],$n.angle=ci[2]}),watch(()=>_n.type,ci=>{$n.type=ci});const Dn=computed({get:()=>$n.startActive?$n.startColor:$n.endColor,set:ci=>{if($n.startActive){$n.startColor=ci;return}$n.endColor=ci}}),Hn=computed(()=>{if(Pn.value&&Ln.value){const ci=$n.startColorStop/100,pi=Pn.value.getBoundingClientRect(),yi=Ln.value.offsetWidth;return Math.round(ci*(pi.width-yi)+yi/2)}return 0}),Wn=computed(()=>{if(Pn.value&&In.value){const ci=$n.endColorStop/100,pi=Pn.value.getBoundingClientRect(),yi=In.value.offsetWidth;return Math.round(ci*(pi.width-yi)+yi/2)}return 0}),Xn=computed(()=>{let ci=`background: linear-gradient(${$n.angle}deg, ${$n.startColorRgba} ${$n.startColorStop}%, ${$n.endColorRgba} ${$n.endColorStop}%)`;return $n.type==="radial"&&(ci=`background: radial-gradient(circle, ${$n.startColorRgba} ${$n.startColorStop}%, ${$n.endColorRgba} ${$n.endColorStop}%)`),ci}),Gn=ci=>{var pi;if($n.startActive=!0,Pn.value&&Ln.value){const yi=(pi=Pn.value)==null?void 0:pi.getBoundingClientRect();let Li=ci.clientX-yi.left;Li=Math.max(Ln.value.offsetWidth/2,Li),Li=Math.min(Li,yi.width-Ln.value.offsetWidth/2),$n.startColorStop=Math.round((Li-Ln.value.offsetWidth/2)/(yi.width-Ln.value.offsetWidth)*100),Cn("update:startColorStop",$n.startColorStop),Cn("startColorStopChange",$n.startColorStop)}},rr=ci=>{var pi;if($n.startActive=!1,Pn.value&&In.value){const yi=(pi=Pn.value)==null?void 0:pi.getBoundingClientRect();let Li=ci.clientX-yi.left;Li=Math.max(In.value.offsetWidth/2,Li),Li=Math.min(Li,yi.width-In.value.offsetWidth/2),$n.endColorStop=Math.round((Li-In.value.offsetWidth/2)/(yi.width-In.value.offsetWidth)*100),Cn("update:endColorStop",$n.endColorStop),Cn("endColorStopChange",$n.endColorStop)}},nr=ci=>{const pi=ci.target,yi=parseInt(pi.value.replace("°",""));isNaN(yi)||($n.angle=yi%360),Cn("update:angle",$n.angle),Cn("angleChange",$n.angle)},Yo=ci=>{$n.angle=ci,Cn("update:angle",$n.angle),Cn("angleChange",$n.angle)},ei=ci=>{ci==="advance"?(Bn.value=!0,Cn("advanceChange",!0)):(Dn.value.hex=ci,Cn("advanceChange",!1)),zn()},ti=ci=>{Dn.value.alpha=ci,zn()},ui=ci=>{Dn.value.hue=ci,zn()},mi=(ci,pi)=>{Dn.value.saturation=ci,Dn.value.brightness=pi,zn()},Xo=ci=>{Dn.value.lightness=ci,zn()},vi=()=>{zn()},zn=()=>{$n.startActive?(Cn("update:startColor",$n.startColor),Cn("startColorChange",$n.startColor)):(Cn("update:endColor",$n.endColor),Cn("endColorChange",$n.endColor))},Ni=()=>{Bn.value=!1,Cn("advanceChange",!1)},ni=()=>{$n.type=$n.type==="linear"?"radial":"linear",Cn("typeChange",$n.type)},Qo=useLocalStorage(de,[],{}),ri=useDebounceFn(()=>{if(_n.disableHistory)return;const ci=Dn.value.toRgbString();if(Qo.value=Qo.value.filter(pi=>!tinycolor.equals(pi,ci)),!Qo.value.includes(ci)){for(;Qo.value.length>ge;)Qo.value.pop();Qo.value.unshift(ci)}},500);return tryOnMounted(()=>{In.value&&Ln.value&&(Vn.triggerDragEvent(In.value,{drag:ci=>{rr(ci)},end:ci=>{rr(ci)}}),Vn.triggerDragEvent(Ln.value,{drag:ci=>{Gn(ci)},end:ci=>{Gn(ci)}}))}),whenever(()=>$n.startColor,ci=>{$n.startColorRgba=ci.toRgbString()},{deep:!0}),whenever(()=>$n.endColor,ci=>{$n.endColorRgba=ci.toRgbString()},{deep:!0}),whenever(()=>Dn.value,()=>{ri()},{deep:!0}),{startGradientRef:Ln,stopGradientRef:In,colorRangeRef:Pn,state:$n,currentColor:Dn,getStartColorLeft:Hn,getEndColorLeft:Wn,gradientBg:Xn,advancePanelShow:Bn,onDegreeBlur:nr,onCompactChange:ei,onAlphaChange:ti,onHueChange:ui,onBoardChange:mi,onLightChange:Xo,historyColors:Qo,onBack:Ni,onDegreeChange:Yo,onDisplayChange:vi,onTypeChange:ni,lang:Nn==null?void 0:Nn.lang}}}),Me=_n=>(pushScopeId("data-v-1e7e32e5"),_n=_n(),popScopeId(),_n),io={class:"vc-gradient-picker"},co={class:"vc-gradient-picker__header"},uo={class:"vc-gradient__types"},go={class:"vc-gradient-picker__body"},ho={class:"vc-color-range",ref:"colorRangeRef"},po={class:"vc-color-range__container"},fo={class:"vc-gradient__stop__container"},vo=["title"],Co=Me(()=>createBaseVNode("span",{class:"vc-gradient__stop--inner"},null,-1)),bo=[Co],yo=["title"],_o=Me(()=>createBaseVNode("span",{class:"vc-gradient__stop--inner"},null,-1)),mo=[_o],So={class:"vc-picker-degree-input vc-degree-input"},ko={class:"vc-degree-input__control"},$o=["value"],wo={class:"vc-degree-input__panel"},Ho={class:"vc-degree-input__disk"};function Bo(_n,Cn,$n,Nn,Bn,Ln){var In,Pn;const Dn=resolveComponent("Angle"),Hn=resolveComponent("Board"),Wn=resolveComponent("Hue"),Xn=resolveComponent("Palette"),Gn=resolveComponent("Lightness"),rr=resolveComponent("Alpha"),nr=resolveComponent("Display"),Yo=resolveComponent("History");return openBlock(),createElementBlock("div",io,[createBaseVNode("div",co,[createBaseVNode("div",null,[withDirectives(createBaseVNode("div",{class:"back",style:{cursor:"pointer"},onClick:Cn[0]||(Cn[0]=(...ei)=>_n.onBack&&_n.onBack(...ei))},null,512),[[vShow,_n.pickerType==="fk"&&_n.advancePanelShow]])]),createBaseVNode("div",uo,[(openBlock(),createElementBlock(Fragment,null,renderList(["linear","radial"],ei=>createBaseVNode("div",{class:normalizeClass(["vc-gradient__type",{active:_n.state.type===ei}]),key:ei,onClick:Cn[1]||(Cn[1]=(...ti)=>_n.onTypeChange&&_n.onTypeChange(...ti))},toDisplayString(_n.lang?_n.lang[ei]:ei),3)),64))])]),createBaseVNode("div",go,[createBaseVNode("div",ho,[createBaseVNode("div",po,[createBaseVNode("div",{class:"vc-background",style:normalizeStyle(_n.gradientBg)},null,4),createBaseVNode("div",fo,[createBaseVNode("div",{class:normalizeClass(["vc-gradient__stop",{"vc-gradient__stop--current":_n.state.startActive}]),ref:"startGradientRef",title:(In=_n.lang)==null?void 0:In.start,style:normalizeStyle({left:_n.getStartColorLeft+"px"})},bo,14,vo),createBaseVNode("div",{class:normalizeClass(["vc-gradient__stop",{"vc-gradient__stop--current":!_n.state.startActive}]),ref:"stopGradientRef",title:(Pn=_n.lang)==null?void 0:Pn.end,style:normalizeStyle({left:_n.getEndColorLeft+"px"})},mo,14,yo)])])],512),createBaseVNode("div",So,[createBaseVNode("div",ko,[createBaseVNode("input",{value:_n.state.angle,onBlur:Cn[2]||(Cn[2]=(...ei)=>_n.onDegreeBlur&&_n.onDegreeBlur(...ei))},null,40,$o),createTextVNode("deg ")]),createBaseVNode("div",wo,[createBaseVNode("div",Ho,[createVNode(Dn,{angle:_n.state.angle,"onUpdate:angle":Cn[3]||(Cn[3]=ei=>_n.state.angle=ei),size:40,onChange:_n.onDegreeChange},null,8,["angle","onChange"])])])])]),_n.advancePanelShow?(openBlock(),createBlock(Hn,{key:0,color:_n.currentColor,onChange:_n.onBoardChange},null,8,["color","onChange"])):createCommentVNode("",!0),_n.advancePanelShow?(openBlock(),createBlock(Wn,{key:1,color:_n.currentColor,onChange:_n.onHueChange},null,8,["color","onChange"])):createCommentVNode("",!0),_n.advancePanelShow?createCommentVNode("",!0):(openBlock(),createBlock(Xn,{key:2,onChange:_n.onCompactChange},null,8,["onChange"])),_n.advancePanelShow?createCommentVNode("",!0):(openBlock(),createBlock(Gn,{key:3,color:_n.currentColor,onChange:_n.onLightChange},null,8,["color","onChange"])),_n.disableAlpha?createCommentVNode("",!0):(openBlock(),createBlock(rr,{key:4,color:_n.currentColor,onChange:_n.onAlphaChange},null,8,["color","onChange"])),createVNode(nr,{color:_n.currentColor,"disable-alpha":_n.disableAlpha,onChange:_n.onDisplayChange},null,8,["color","disable-alpha","onChange"]),_n.disableHistory?createCommentVNode("",!0):(openBlock(),createBlock(Yo,{key:5,round:_n.roundHistory,colors:_n.historyColors,onChange:_n.onCompactChange},null,8,["round","colors","onChange"]))])}const Be=X(so,[["render",Bo],["__scopeId","data-v-1e7e32e5"]]),Ro=defineComponent({name:"WrapContainer",props:{theme:C$1.oneOf(["white","black"]).def("white"),showTab:C$1.bool.def(!1),activeKey:C$1.oneOf(["pure","gradient"]).def("pure")},emits:["update:activeKey","change"],setup(_n,{emit:Cn}){const $n=reactive({activeKey:_n.activeKey}),Nn=inject(ye),Bn=Ln=>{$n.activeKey=Ln,Cn("update:activeKey",Ln),Cn("change",Ln)};return whenever(()=>_n.activeKey,Ln=>{$n.activeKey=Ln}),{state:$n,onActiveKeyChange:Bn,lang:Nn==null?void 0:Nn.lang}}}),Ao={class:"vc-colorpicker--container"},Po={key:0,class:"vc-colorpicker--tabs"},Vo={class:"vc-colorpicker--tabs__inner"},Io={class:"vc-btn__content"},Mo={class:"vc-btn__content"};function Ko(_n,Cn,$n,Nn,Bn,Ln){var In,Pn;return openBlock(),createElementBlock("div",{class:normalizeClass(["vc-colorpicker",_n.theme])},[createBaseVNode("div",Ao,[_n.showTab?(openBlock(),createElementBlock("div",Po,[createBaseVNode("div",Vo,[createBaseVNode("div",{class:normalizeClass(["vc-colorpicker--tabs__btn",{"vc-btn-active":_n.state.activeKey==="pure"}]),onClick:Cn[0]||(Cn[0]=Dn=>_n.onActiveKeyChange("pure"))},[createBaseVNode("button",null,[createBaseVNode("div",Io,toDisplayString((In=_n.lang)==null?void 0:In.pure),1)])],2),createBaseVNode("div",{class:normalizeClass(["vc-colorpicker--tabs__btn",{"vc-btn-active":_n.state.activeKey==="gradient"}]),onClick:Cn[1]||(Cn[1]=Dn=>_n.onActiveKeyChange("gradient"))},[createBaseVNode("button",null,[createBaseVNode("div",Mo,toDisplayString((Pn=_n.lang)==null?void 0:Pn.gradient),1)])],2),createBaseVNode("div",{class:"vc-colorpicker--tabs__bg",style:normalizeStyle({width:"50%",left:`calc(${_n.state.activeKey==="gradient"?50:0}%)`})},null,4)])])):createCommentVNode("",!0),renderSlot(_n.$slots,"default",{},void 0,!0)])],2)}const Lo=X(Ro,[["render",Ko],["__scopeId","data-v-0492277d"]]),Eo={start:"Start",end:"End",pure:"Pure",gradient:"Gradient",linear:"linear",radial:"radial"},No={start:"开始",end:"结束",pure:"纯色",gradient:"渐变",linear:"线性",radial:"径向"},Wo={En:Eo,"ZH-cn":No},Do={isWidget:C$1.bool.def(!1),pickerType:C$1.oneOf(["fk","chrome"]).def("fk"),shape:C$1.oneOf(["circle","square"]).def("square"),pureColor:{type:[String,Object],default:"#000000"},gradientColor:C$1.string.def("linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 1) 100%)"),format:{type:String,default:"rgb"},disableAlpha:C$1.bool.def(!1),disableHistory:C$1.bool.def(!1),roundHistory:C$1.bool.def(!1),useType:C$1.oneOf(["pure","gradient","both"]).def("pure"),activeKey:C$1.oneOf(["pure","gradient"]).def("pure"),lang:{type:String,default:"ZH-cn"},zIndex:C$1.number.def(9999),pickerContainer:{type:String||HTMLElement,default:"body"},debounce:C$1.number.def(100),theme:C$1.oneOf(["white","black"]).def("white")},To=defineComponent({name:"ColorPicker",components:{FkColorPicker:we,ChromeColorPicker:He,GradientColorPicker:Be,WrapContainer:Lo},inheritAttrs:!1,props:Do,emits:["update:pureColor","pureColorChange","update:gradientColor","gradientColorChange","update:activeKey","activeKeyChange"],setup(_n,{emit:Cn}){provide(ye,{lang:computed(()=>Wo[_n.lang||"ZH-cn"])});const $n=reactive({pureColor:_n.pureColor||"",activeKey:_n.useType==="gradient"?"gradient":_n.activeKey,isAdvanceMode:!1}),Nn=new R("#000"),Bn=new R("#000"),Ln=new R($n.pureColor),In=reactive({startColor:Nn,endColor:Bn,startColorStop:0,endColorStop:100,angle:0,type:"linear",gradientColor:_n.gradientColor}),Pn=ref(Ln),Dn=ref(!1),Hn=ref(null),Wn=ref(null);let Xn=null;const Gn=computed(()=>({background:$n.activeKey!=="gradient"?tinycolor($n.pureColor).toRgbString():In.gradientColor})),rr=computed(()=>$n.activeKey==="gradient"?Be.name:_n.pickerType==="fk"?we.name:He.name),nr=Qo=>{$n.isAdvanceMode=Qo},Yo=computed(()=>{const Qo={disableAlpha:_n.disableAlpha,disableHistory:_n.disableHistory,roundHistory:_n.roundHistory,pickerType:_n.pickerType};return $n.activeKey==="gradient"?{...Qo,startColor:In.startColor,endColor:In.endColor,angle:In.angle,type:In.type,startColorStop:In.startColorStop,endColorStop:In.endColorStop,onStartColorChange:ri=>{In.startColor=ri,mi()},onEndColorChange:ri=>{In.endColor=ri,mi()},onStartColorStopChange:ri=>{In.startColorStop=ri,mi()},onEndColorStopChange:ri=>{In.endColorStop=ri,mi()},onAngleChange:ri=>{In.angle=ri,mi()},onTypeChange:ri=>{In.type=ri,mi()},onAdvanceChange:nr}:{...Qo,disableAlpha:_n.disableAlpha,disableHistory:_n.disableHistory,roundHistory:_n.roundHistory,color:Pn.value,onChange:zn,onAdvanceChange:nr}}),ei=()=>{Dn.value=!0,Xn?Xn.update():vi()},ti=()=>{Dn.value=!1},ui=()=>{var Qo,ri,ci,pi;try{const[yi]=parse(In.gradientColor);if(yi&&yi.type.includes("gradient")&&yi.colorStops.length>=2){const Li=yi.colorStops[0],ta=yi.colorStops[1];In.startColorStop=Number((Qo=Li.length)==null?void 0:Qo.value)||0,In.endColorStop=Number((ri=ta.length)==null?void 0:ri.value)||0,yi.type==="linear-gradient"&&((ci=yi.orientation)==null?void 0:ci.type)==="angular"&&(In.angle=Number((pi=yi.orientation)==null?void 0:pi.value)||0),In.type=yi.type.split("-")[0];const[Yi,bi,xi,Ii]=Li.value,[da,oa,Si,Mi]=ta.value;In.startColor=new R({r:Number(Yi),g:Number(bi),b:Number(xi),a:Number(Ii)}),In.endColor=new R({r:Number(da),g:Number(oa),b:Number(Si),a:Number(Mi)})}}catch(yi){console.log(`[Parse Color]: ${yi}`)}},mi=useDebounceFn(()=>{const Qo=Xo();try{In.gradientColor=stringify(Qo),Cn("update:gradientColor",In.gradientColor),Cn("gradientColorChange",In.gradientColor)}catch(ri){console.log(ri)}},_n.debounce),Xo=()=>{const Qo=[],ri=In.startColor.RGB.map(yi=>yi.toString()),ci=In.endColor.RGB.map(yi=>yi.toString()),pi=[{type:"rgba",value:[ri[0],ri[1],ri[2],ri[3]],length:{value:In.startColorStop+"",type:"%"}},{type:"rgba",value:[ci[0],ci[1],ci[2],ci[3]],length:{value:In.endColorStop+"",type:"%"}}];return In.type==="linear"?Qo.push({type:"linear-gradient",orientation:{type:"angular",value:In.angle+""},colorStops:pi}):In.type==="radial"&&Qo.push({type:"radial-gradient",orientation:[{type:"shape",value:"circle"}],colorStops:pi}),Qo},vi=()=>{Hn.value&&Wn.value&&(Xn=createPopper(Hn.value,Wn.value,{placement:"auto",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{allowedAutoPlacements:["top","bottom","left","right"],rootBoundary:"viewport"}}]}))},zn=Qo=>{Pn.value=Qo,$n.pureColor=Qo.toString(_n.format),Ni()},Ni=useDebounceFn(()=>{Cn("update:pureColor",$n.pureColor),Cn("pureColorChange",$n.pureColor)},_n.debounce);onClickOutside(Wn,()=>{ti()});const ni=Qo=>{$n.activeKey=Qo,Cn("update:activeKey",Qo),Cn("activeKeyChange",Qo)};return tryOnMounted(()=>{ui()}),whenever(()=>_n.gradientColor,Qo=>{Qo!=In.gradientColor&&(In.gradientColor=Qo)}),whenever(()=>In.gradientColor,()=>{ui()}),whenever(()=>_n.activeKey,Qo=>{$n.activeKey=Qo}),whenever(()=>_n.useType,Qo=>{$n.activeKey!=="gradient"&&Qo==="gradient"?$n.activeKey="gradient":$n.activeKey="pure"}),whenever(()=>_n.pureColor,Qo=>{tinycolor.equals(Qo,$n.pureColor)||($n.pureColor=Qo,Pn.value=new R(Qo))},{deep:!0}),{colorCubeRef:Hn,pickerRef:Wn,showPicker:Dn,colorInstance:Pn,getBgColorStyle:Gn,onColorChange:zn,onShowPicker:ei,onActiveKeyChange:ni,getComponentName:rr,getBindArgs:Yo,state:$n}}});function Oo(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("WrapContainer");return openBlock(),createElementBlock(Fragment,null,[_n.isWidget?(openBlock(),createBlock(In,{key:0,"active-key":_n.state.activeKey,"onUpdate:activeKey":Cn[0]||(Cn[0]=Pn=>_n.state.activeKey=Pn),"show-tab":_n.useType==="both",onChange:_n.onActiveKeyChange,style:normalizeStyle({zIndex:_n.zIndex}),theme:_n.theme},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(_n.getComponentName),mergeProps({key:_n.getComponentName},_n.getBindArgs),null,16))]),_:1},8,["active-key","show-tab","onChange","style","theme"])):createCommentVNode("",!0),_n.isWidget?createCommentVNode("",!0):(openBlock(),createElementBlock(Fragment,{key:1},[createBaseVNode("div",{class:normalizeClass(["vc-color-wrap transparent",{round:_n.shape==="circle"}]),ref:"colorCubeRef"},[createBaseVNode("div",{class:"current-color",style:normalizeStyle(_n.getBgColorStyle),onClick:Cn[1]||(Cn[1]=(...Pn)=>_n.onShowPicker&&_n.onShowPicker(...Pn))},null,4)],2),(openBlock(),createBlock(Teleport,{to:_n.pickerContainer},[withDirectives(createBaseVNode("div",{ref:"pickerRef",style:normalizeStyle({zIndex:_n.zIndex})},[_n.showPicker?(openBlock(),createBlock(In,{key:0,"show-tab":_n.useType==="both"&&!_n.state.isAdvanceMode,"active-key":_n.state.activeKey,"onUpdate:activeKey":Cn[2]||(Cn[2]=Pn=>_n.state.activeKey=Pn),onChange:_n.onActiveKeyChange,theme:_n.theme},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(_n.getComponentName),mergeProps({key:_n.getComponentName},_n.getBindArgs),null,16))]),_:1},8,["show-tab","active-key","onChange","theme"])):createCommentVNode("",!0)],4),[[vShow,_n.showPicker]])],8,["to"]))],64))],64)}const ae=X(To,[["render",Oo],["__scopeId","data-v-11de56b7"]]),_sfc_main$d={name:"PhystonPrompt",components:{HighlightPrompt,VueNumberInput,IconSvg,ColorPicker:ae},mixins:[LanguageMixin,HeaderMixin,DropMixin,TagMixin,GroupTagsMixin],props:{name:{type:String,required:!0},neg:{type:Boolean,default:!1},textarea:{type:Object,required:!0},steps:{type:Object,required:!0},canOneTranslate:{type:Boolean,default:!1},autoTranslate:{type:Boolean,default:!1},autoTranslateToEnglish:{type:Boolean,default:!1},autoTranslateToLocal:{type:Boolean,default:!1},autoRemoveSpace:{type:Boolean,default:!1},autoRemoveLastComma:{type:Boolean,default:!1},autoKeepWeightZero:{type:Boolean,default:!1},autoKeepWeightOne:{type:Boolean,default:!1},autoBreakBeforeWrap:{type:Boolean,default:!1},autoBreakAfterWrap:{type:Boolean,default:!1},autoRemoveLoraBeforeComma:{type:Boolean,default:!1},autoRemoveLoraAfterComma:{type:Boolean,default:!1},useNovelAiWeightSymbol:{type:Boolean,default:!1},autoRemoveBeforeLineComma:{type:Boolean,default:!1},hideDefaultInput:{type:Boolean,default:!1},autoLoadWebuiPrompt:{type:Boolean,default:!0},hidePanel:{type:Boolean,default:!1},enableTooltip:{type:Boolean,default:!0},historyKey:{type:String,default:""},favoriteKey:{type:String,default:""},extraNetworks:{type:Array,default:()=>[]},loras:{type:Array,default:()=>[]},lycos:{type:Array,default:()=>[]},embeddings:{type:Array,default:()=>[]},version:{type:String,default:""},latestVersion:{type:String,default:""},isLatestVersion:{type:Boolean,default:!0},theme:{type:String,default:"dark"},groupTags:{type:Array,default:()=>[]},extraNetworksWidth:{type:Number,default:100},extraNetworksHeight:{type:Number,default:120},hideGroupTags:{type:Boolean,default:!1},groupTagsColor:{type:Object,default:()=>({})},groupTagsColorKeyCache:{type:Object,default:()=>({})},blacklist:{type:Object,default:()=>({})},cancelBlacklistConfirm:{type:Boolean,default:!1},hotkey:{type:Object,default:()=>({})}},emits:["update:languageCode","update:autoTranslate","update:autoTranslateToEnglish","update:autoTranslateToLocal","update:autoRemoveSpace","update:autoRemoveLastComma","update:autoKeepWeightZero","update:autoKeepWeightOne","update:hideDefaultInput","update:hidePanel","update:enableTooltip","update:translateApi","click:translateApi","click:promptFormat","click:blacklist","click:hotkey","click:selectTheme","click:switchTheme","click:showAbout","click:selectLanguage","click:showHistory","click:showFavorite","refreshFavorites","click:showChatgpt","update:hideGroupTags","update:groupTagsColor","update:blacklist","showExtraNetworks","hideExtraNetworks","refreshExtraNetworks","update:extraNetworksWidth","update:extraNetworksHeight","update:autoLoadWebuiPrompt"],data(){return{prompt:"",counterText:"0/75",tags:[],sortable:null,droping:!1,loading:{},editing:{},isEditing:!1}},computed:{isEnglish(){return this.languageCode==="en_US"},translateApiItem(){return common$1.getTranslateApiItem(this.translateApis,this.translateApi)}},watch:{loras:{handler(){this.tags.forEach(_n=>{this._setTagClass(_n)})},immediate:!1},lycos:{handler(){this.tags.forEach(_n=>{this._setTagClass(_n)})},immediate:!1},embeddings:{handler(){this.tags.forEach(_n=>{this._setTagClass(_n)})},immediate:!1}},mounted(){this.$appMode&&(this.counterText=""),this.$nextTick(()=>{this.initSortable();let _n=[1e3,3e3,5e3,1e4,2e4,3e4],Cn=!1;_n.forEach($n=>{Cn||setTimeout(()=>{Cn||typeof addAutocompleteToArea=="function"&&typeof TAC_CFG=="object"&&TAC_CFG&&TAC_CFG.activeIn&&(Cn=!0,addAutocompleteToArea(this.$refs.promptTagAppend))},$n)}),this.init()})},methods:{init(){this.tags=[],this.onTextareaChange();let _n=this.textarea.value;setInterval(()=>{if(this.autoLoadWebuiPrompt){let Cn=this.textarea.value;if(_n===Cn||document.activeElement===this.textarea)return;_n=Cn,this.onTextareaChange(!0)}},500)},onTextareaChange(_n){this.onTextareaChangeTimeId&&clearTimeout(this.onTextareaChangeTimeId),this.onTextareaChangeTimeId=setTimeout(()=>{this._onTextareaChange(_n)},100)},_onTextareaChange(_n){console.log("onTextareaChange",_n);const Cn=this.textarea.parentElement.getElementsByClassName("autocompleteParent");if(Cn.length){if(Cn[0].style.display!=="none")return}else{const Pn=this.textarea.parentElement.getElementsByClassName("autocompleteResults");if(Pn.length>0&&Pn[0].style.display!=="none")return}let $n=this.textarea.value.trim();if($n===this.prompt.trim())return;let Nn=common$1.splitTags($n,this.autoBreakBeforeWrap,this.autoBreakAfterWrap),Bn=[];this.tags.forEach((Pn,Dn)=>{Pn.disabled&&Bn.push({tag:Pn,index:Dn})}),Bn.forEach(({tag:Pn,index:Dn})=>{Nn.splice(Dn,0,Pn.value)});let Ln=[],In=this.tags;this.tags=[];for(let Pn in Nn){let Dn=Nn[Pn];if(Dn===`
`)this._appendTag(`
`,`
`,!1,-1,"wrap");else{let Hn=!1;for(let rr of In)if(rr.value===Dn){Hn=rr;break}const Wn=Hn?Hn.localValue:"",Xn=Hn?Hn.disabled:!1,Gn=this._appendTag(Dn,Wn,Xn,-1,"text");!Hn&&Gn!==-1&&Ln.push(Gn)}}if(this.autoTranslateToLocal&&_n){let Pn=!(this.tagCompleteFile&&this.onlyCsvOnAuto);Pn=!1,this.translates(Ln,!0,Pn).finally(()=>{this.updateTags()})}else this.updateTags()},_setTextareaFocus(){if(typeof get_uiCurrentTabContent!="function"||typeof activePromptTextarea!="object")return;const _n=get_uiCurrentTabContent();if(!_n)return;let Cn=_n.id.replace("tab_","");Cn&&(activePromptTextarea[Cn]=this.textarea)},copy(_n){this.$copyText(_n).then(()=>{this.$toastr.success(this.getLang("success"))}).catch(()=>{this.$toastr.error(this.getLang("failed"))})},genPrompt(_n=null,Cn=!1){_n=_n||this.tags;let $n=[],Nn=[];if(Cn)Nn=_n;else for(let Ln in _n)_n[Ln].disabled||Nn.push(_n[Ln]);let Bn=Nn.length;return Nn.forEach((Ln,In)=>{let Pn="";if(typeof Ln.type=="string"&&Ln.type==="wrap")Pn=`
`;else{let Dn=common$1.replaceTag(Ln.value);Dn!==Ln.value&&(Ln.value=Dn,this._setTag(Ln));let Hn=common$1.replaceTag(Ln.localValue);if(Hn!==Ln.localValue&&(Ln.localValue=Hn),(Ln.weightNum>0||Ln.weightNum<0)&&(Ln.weightNum=Number(parseFloat(Ln.weightNum).toFixed(6)),Ln.value=Ln.value.replace(common$1.weightNumRegex,"$1:"+Ln.weightNum),Ln.localValue!==""&&(Ln.localValue=Ln.localValue.replace(common$1.weightNumRegex,"$1:"+Ln.weightNum))),Ln.disabled&&!Cn)return;let Wn=","+(this.autoRemoveSpace?"":" "),Xn=Wn,Gn=null,rr=!1,nr=!1,Yo=!1,ei=!1;if(In+1<Bn&&(Gn=Nn[In+1],typeof Gn.type=="string"&&Gn.type==="wrap"?rr=!0:Gn.value==="BREAK"?nr=!0:Gn.isLora?Yo=!0:Gn.isLyco&&(ei=!0)),rr)if(this.autoRemoveBeforeLineComma)Wn="";else{const ti=[" BREAK"," ADDCOL"," ADDROW"," ADDCOMM"," ADDBASE"];for(const ui of ti)Ln.value.endsWith(ui)&&(Wn="")}else nr?Wn=" ":(Yo||ei)&&this.autoRemoveLoraBeforeComma&&(Wn=this.autoRemoveSpace?"":" ");Ln.value==="BREAK"&&(rr?Wn="":Wn=" "),this.autoRemoveLastComma&&In+1===Bn&&(Wn=""),Wn===Xn&&(Ln.isLora||Ln.isLyco)&&this.autoRemoveLoraAfterComma&&(Wn=this.autoRemoveSpace?"":" "),Pn=Ln.value+Wn}Pn&&$n.push(Pn)}),$n.length<=0?"":$n.join("")},updatePrompt(){let _n=[],Cn=this.tags.length;for(let $n=0;$n<Cn;$n++)if(this.tags[$n].value==="BREAK"){if(this.autoBreakBeforeWrap&&$n-1>=0){let Bn=this.tags[$n-1];typeof Bn.type=="string"&&Bn.type==="wrap"||_n.push($n)}if(this.autoBreakAfterWrap&&$n+1<Cn){let Bn=this.tags[$n+1];typeof Bn.type=="string"&&Bn.type==="wrap"||_n.push($n+1)}}for(let $n=0;$n<_n.length;$n++){let Nn=_n[$n]+$n;this._appendTag(`
`,`
`,!1,Nn,"wrap")}if(_n.length){this.updateTags();return}this.prompt=this.genPrompt(),this.textarea.value=this.prompt,common$1.hideCompleteResults(this.textarea),typeof updateInput=="function"?updateInput(this.textarea):this.textarea.dispatchEvent(new Event("input"))},updateTags(){console.log("tags change",this.tags),this.updatePrompt();const _n=this.steps.querySelector('input[type="number"]').value;this.$appMode||this.gradioAPI.tokenCounter(this.textarea.value,_n).then(Cn=>{const{token_count:$n,max_length:Nn}=Cn;this.counterText=`${$n}/${Nn}`}),this.tags.length&&this.gradioAPI.getLatestHistory(this.historyKey).then(Cn=>{Cn&&Cn.prompt===this.prompt?this.gradioAPI.setHistory(this.historyKey,Cn.id,this.tags,this.prompt,Cn.name).then($n=>{}).catch($n=>{}):this.gradioAPI.pushHistory(this.historyKey,this.tags,this.prompt).then($n=>{}).catch($n=>{})}).catch(Cn=>{}),this.$nextTick(()=>{for(let Cn=0;Cn<this.$refs.promptTagsList.children.length;Cn++){let $n=this.$refs.promptTagsList.children[Cn];if(!$n.classList.contains("prompt-tag"))continue;let Nn=$n.getAttribute("data-id"),Bn=this.$refs.promptTagWrap.find(Ln=>Ln.getAttribute("data-id")===Nn);Bn&&$n.parentNode.insertBefore(Bn,$n.nextElementSibling)}})},onResize(){this.tags.forEach(_n=>{this._setTagHeight(_n)})},initSortable(){this.sortable=Sortable.create(this.$refs.promptTagsList,{animation:150,handle:".prompt-tag-value",draggable:".prompt-tag",onEnd:_n=>{if(this.dropTags.length){let $n=_n.item,Nn=$n.getAttribute("data-id"),Bn=this._getDropTagsEle(),Ln=Bn.findIndex(Dn=>Dn.getAttribute("data-id")===Nn),In=Bn.slice(0,Ln),Pn=Bn.slice(Ln+1).reverse();In.forEach(Dn=>{common$1.insertBefore(Dn,$n)}),Pn.forEach(Dn=>{common$1.insertAfter(Dn,$n)})}this._dropOver(),this.droping=!1;let Cn=[];for(let $n=0;$n<this.$refs.promptTagsList.children.length;$n++){let Nn=this.$refs.promptTagsList.children[$n];if(!Nn.classList.contains("prompt-tag"))continue;let Bn=Nn.getAttribute("data-id");Cn.push(Bn)}this.tags=this.tags.sort(($n,Nn)=>Cn.indexOf($n.id)-Cn.indexOf(Nn.id)),this.$forceUpdate(),this.updateTags()},onChoose:_n=>{if(console.log(_n),this.dropTags.length){let $n=_n.item.getAttribute("data-id");this._getDropTagsEle().forEach(Bn=>{Bn.getAttribute("data-id")!==$n&&(Bn.style.display="block",Bn.style.transition="transform 0.2s",Bn.style.transform="scale(0)",setTimeout(()=>{Bn.style.transition="",Bn.style.transform="",Bn.style.display="none"},300))})}this.editing={},this.isEditing=!1,this.droping=!0},onUnchoose:_n=>{if(this.droping=null,this.dropTags.length){let $n=_n.item.getAttribute("data-id");this._getDropTagsEle().forEach(Bn=>{Bn.getAttribute("data-id")!==$n&&(Bn.style.display="")})}}})},useHistory(_n){this.tags=[],_n.tags.forEach(Cn=>{this._appendTag(Cn.value,Cn.localValue,Cn.disabled,-1,Cn.type||"text")}),this.updateTags()},useFavorite(_n){this.useHistory(_n)},useChatgpt(_n){let Cn=common$1.splitTags(_n,this.autoBreakBeforeWrap,this.autoBreakAfterWrap);this.tags=[],Cn.forEach($n=>{this._appendTag($n,"",!1,-1,"text")}),this.updateTags()},onPromptMainClick(){this.autoLoadWebuiPrompt&&this.onTextareaChange(!0),this._setTextareaFocus(),this.showExtendId=""},translates(_n,Cn=!1,$n=!0){return new Promise((Nn,Bn)=>{if(this.languageCode==="en_US"||this.languageCode==="en_GB"){Nn();return}let Ln=[],In=(rr,nr)=>{rr.forEach(Yo=>{Pn(Yo,nr)})},Pn=(rr,nr)=>{this.canOneTranslate?(this.loading[rr.id+"_local"]=nr,this.loading[rr.id+"_en"]=nr):rr.toLocal?this.loading[rr.id+"_local"]=nr:this.loading[rr.id+"_en"]=nr},Dn=(rr,nr)=>{rr.toLocal?rr.localValue=nr:(rr.localValue=rr.value,rr.value=nr),this._setTagById(rr.id,rr.value,rr.localValue)},Hn=rr=>rr.isLora&&rr.loraExists?this.getExtraNetworkFullName(rr.loraName,"lora"):rr.isLyco&&rr.lycoExists?this.getExtraNetworkFullName(rr.lycoName,"lycoris"):rr.isEmbedding?this.getExtraNetworkFullName(rr.value,"textual inversion"):rr.value;_n.forEach(rr=>{var ei,ti,ui,mi;let nr=this.tags[rr],Yo=Hn(nr);if(Yo!==nr.value){nr.localValue=Yo;return}if(common$1.canTranslate(nr.value)){if(nr.isLora){if((ei=this.blacklist.translate)!=null&&ei.includes(nr.loraName.toLowerCase()))return}else if(nr.isLyco){if((ti=this.blacklist.translate)!=null&&ti.includes(nr.lycoName.toLowerCase()))return}else if(nr.isEmbedding){if((ui=this.blacklist.translate)!=null&&ui.includes(nr.embeddingName.toLowerCase()))return}else if((mi=this.blacklist.translate)!=null&&mi.includes(nr.originalValue.toLowerCase()))return;if(nr.isEnglish=common$1.isEnglishByLangCode(nr.value,this.languageCode),nr.isEnglish===-1)Cn?nr.toLocal=!0:nr.toLocal=!1;else if(nr.isEnglish===0)if(Cn)if(nr.localValue==="")nr.localValue=nr.value,nr.toLocal=!1;else{const Xo=nr.value;nr.value=nr.localValue,nr.localValue=Xo}else nr.toLocal=!1;else nr.toLocal=!0;Pn(nr,!0),Ln.push(nr)}});const Wn=rr=>{if(rr.length<=0){In(rr,!1),Nn();return}let nr={};rr.forEach((ei,ti)=>{let ui=ei.toLocal?"en_US":this.languageCode,mi=ei.toLocal?this.languageCode:"en_US",Xo=ui+"."+mi;nr[Xo]||(nr[Xo]={fromLang:ui,toLang:mi,tags:[]}),nr[Xo].tags.push(ei)});const Yo=()=>{let ei=nr[Object.keys(nr)[0]];if(!ei){Nn();return}let ti=ei.tags.map(ui=>Hn(ui));this.gradioAPI.translates(ti,ei.fromLang,ei.toLang,this.translateApi,this.translateApiConfig).then(ui=>{ui.success?(ui.translated_text.forEach((Xo,vi)=>{Xo=Xo.replace(/\.$/,"").trim(),common$1.isEnglish(Xo)&&Xo!==Xo.toUpperCase()&&(Xo=Xo.toLowerCase());let zn=ei.tags[vi];Xo!==""&&Dn(zn,Xo),Pn(zn,!1)}),delete nr[Object.keys(nr)[0]],Yo()):(In(rr,!1),this.$toastr.error(ui.message),Bn(ui.message))}).catch(ui=>{In(rr,!1),this.$toastr.error(ui.message),Bn(ui.message)})};Yo()};let Xn=rr=>{console.log("translateByCSV",rr.map(Yo=>Yo.value),{useNetwork:$n});let nr=[];rr.forEach(Yo=>{const ei=common$1.splitTag(Yo.value);ei.value!==Yo.value&&(Yo.value=ei.value,Yo.splits=ei),Yo.toLocal?nr.push(this.translateToLocalByCSV(Yo.value,void 0,void 0,$n)):nr.push(this.translateToEnByCSV(Yo.value))}),Promise.all(nr).then(Yo=>{let ei=[];Yo.forEach((ti,ui)=>{let mi=rr[ui];mi.splits&&(mi.value=mi.splits.left+mi.value+mi.splits.right),ti===""?ei.push(mi):(mi.splits&&(ti=mi.splits.left+ti+mi.splits.right),Pn(mi,!1),Dn(mi,ti))}),console.log("No translated keywords: ",ei.map(ti=>ti.value)),$n?Wn(ei):(In(ei,!1),Nn())}).catch(Yo=>{In(rr,!1),this.$toastr.error(Yo),Bn(Yo)})},Gn=rr=>{console.log("translateByGroupTags",rr.map(Yo=>Yo.value),{useNetwork:$n});let nr=[];rr.forEach(Yo=>{const ei=common$1.splitTag(Yo.value);ei.value!==Yo.value&&(Yo.value=ei.value,Yo.splits=ei),Yo.toLocal?nr.push(this.translateToLocalByGroupTags(Yo.value,$n)):nr.push(this.translateToEnByGroupTags(Yo.value,$n))}),Promise.allSettled(nr).then(Yo=>{let ei=[],ti=[];if(Yo.forEach((ui,mi)=>{var vi;let Xo=rr[mi];Xo.splits&&(Xo.value=Xo.splits.left+Xo.value+Xo.splits.right),ui.status!=="fulfilled"&&ei.push(ui.reason),!((vi=ui.value)!=null&&vi.length)||ui.status!=="fulfilled"?ti.push(Xo):(Xo.splits&&(ui.value=Xo.splits.left+ui.value+Xo.splits.right),Pn(Xo,!1),Dn(Xo,ui.value))}),console.log("No translated keywords: ",ti.map(ui=>ui.value)),this.tagCompleteFile)Xn(ti);else{if(ei.length){In(rr,!1),this.$toastr.error(ei[0]),Bn(ei[0]);return}$n?Wn(ti):(In(ti,!1),Nn())}}).catch(Yo=>{In(rr,!1),this.$toastr.error(Yo),Bn(Yo)})};this.groupTagsTranslate?Gn(Ln):this.tagCompleteFile?Xn(Ln):$n?Wn(Ln):(In(Ln,!1),Nn())})}}},_hoisted_1$d=["name"],_hoisted_2$c={class:"prompt-header"},_hoisted_3$c={class:"prompt-header-title"},_hoisted_4$c={class:"prompt-header-extend"},_hoisted_5$b={class:"extend-content"},_hoisted_6$a={class:"extend-btn-group"},_hoisted_7$9={key:0,class:"gradio-checkbox hover-scale-120"},_hoisted_8$9=["checked"],_hoisted_9$8={class:"gradio-checkbox hover-scale-120"},_hoisted_10$8=["checked"],_hoisted_11$8={class:"gradio-checkbox hover-scale-120"},_hoisted_12$8=["checked"],_hoisted_13$8={class:"gradio-checkbox hover-scale-120"},_hoisted_14$8=["checked"],_hoisted_15$8={class:"gradio-checkbox"},_hoisted_16$7={value:"disabled"},_hoisted_17$7={value:"last"},_hoisted_18$7=["label"],_hoisted_19$7=["value"],_hoisted_20$7={class:"prompt-header-extend"},_hoisted_21$7={class:"extend-content"},_hoisted_22$7={class:"extend-btn-group"},_hoisted_23$7={key:0,class:"prompt-header-extend"},_hoisted_24$6={class:"extend-content"},_hoisted_25$6={class:"extend-btn-group"},_hoisted_26$6={class:"prompt-header-extend"},_hoisted_27$6={class:"extend-content"},_hoisted_28$4={class:"extend-btn-group"},_hoisted_29$3={key:1,class:"prompt-header-extend"},_hoisted_30$2={class:"extend-content"},_hoisted_31$2={class:"extend-btn-group"},_hoisted_32$2={key:2,class:"prompt-header-extend"},_hoisted_33$2={class:"extend-content"},_hoisted_34$2={class:"extend-btn-group"},_hoisted_35$2={class:"prompt-header-extend prompt-append"},_hoisted_36$2={class:"extend-content"},_hoisted_37$2={class:"gradio-checkbox hover-scale-120"},_hoisted_38$2=["checked"],_hoisted_39$2={class:"gradio-checkbox hover-scale-120"},_hoisted_40$2={key:0},_hoisted_41$2=["checked"],_hoisted_42$1={key:1},_hoisted_43$1=["checked"],_hoisted_44$1=["placeholder"],_hoisted_45$1=["onClick"],_hoisted_46$1={class:"arrow-right"},_hoisted_47$1=["onMouseleave","onMouseenter","onClick"],_hoisted_48$1={key:0,class:"tags-name"},_hoisted_49$1={key:1,class:"tags-name"},_hoisted_50$1={class:"tags-detail"},_hoisted_51$1={class:"tags-list"},_hoisted_52$1={key:0,class:"item-wrap"},_hoisted_53$1={key:1,class:"tags-item"},_hoisted_54$1={class:"item-tag-value"},_hoisted_55$1={class:"item-tag-local-value"},_hoisted_56$1={class:"prompt-tags-list",ref:"promptTagsList"},_hoisted_57$1=["data-id"],_hoisted_58$1=["onMouseenter","onMousemove","onMouseleave"],_hoisted_59$1={class:"prompt-tag-edit"},_hoisted_60$1=["onClick","onDblclick","onContextmenu","innerHTML"],_hoisted_61=["placeholder","value","onBlur","onKeydown","onChange"],_hoisted_62=["onClick"],_hoisted_63=["onClick"],_hoisted_64=["onClick"],_hoisted_65=["onClick"],_hoisted_66=["onClick"],_hoisted_67=["onClick"],_hoisted_68=["onClick"],_hoisted_69=["onClick"],_hoisted_70=["onClick"],_hoisted_71=["onClick"],_hoisted_72=["onClick"],_hoisted_73={class:"prompt-local-language"},_hoisted_74=["onClick"],_hoisted_75={class:"local-language"},_hoisted_76=["data-id"],_hoisted_77={class:"btns-title"},_hoisted_78={class:"group-tabs"},_hoisted_79={class:"group-header",ref:"groupTabsHeader"},_hoisted_80=["onClick","data-name"],_hoisted_81={class:"group-body"},_hoisted_82={key:0,class:"sub-group-header"},_hoisted_83=["onClick","data-name"],_hoisted_84={key:1,class:"sub-group-body"},_hoisted_85={key:0,class:"group-tags"},_hoisted_86=["onClick","onMouseenter"],_hoisted_87=["src"],_hoisted_88={class:"extra-network-name"},_hoisted_89={key:0,class:"extra-network-loading"},_hoisted_90=["onClick"],_hoisted_91={class:"tag-en"},_hoisted_92={key:0,class:"tags-footer"},_hoisted_93={class:"tags-size"},_hoisted_94={class:"size-title"},_hoisted_95={class:"tags-size-item"},_hoisted_96=["value"],_hoisted_97={class:"size-title"},_hoisted_98={class:"tags-size-item"},_hoisted_99=["value"],_hoisted_100={class:"size-title"},_hoisted_101={key:1,class:"tags-footer"},_hoisted_102={class:"tags-color"},_hoisted_103={class:"tags-color-picker hover-scale-120",unaffected:"true"},_hoisted_104=["onClick"],_hoisted_105=["onClick"],_hoisted_106={class:"tags-copyright"};function _sfc_render$d(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("icon-svg"),Pn=resolveComponent("vue-number-input"),Dn=resolveComponent("color-picker"),Hn=resolveComponent("highlight-prompt"),Wn=resolveDirective("tooltip"),Xn=resolveDirective("animate");return openBlock(),createElementBlock("div",{class:"physton-prompt",name:$n.name},[createBaseVNode("div",{class:normalizeClass(["prompt-main",$n.hidePanel?"fold":""]),onClick:Cn[65]||(Cn[65]=(...Gn)=>Ln.onPromptMainClick&&Ln.onPromptMainClick(...Gn))},[createBaseVNode("div",_hoisted_2$c,[withDirectives((openBlock(),createElementBlock("div",{class:"prompt-unfold",onClick:Cn[0]||(Cn[0]=(...Gn)=>_n.onUnfoldClick&&_n.onUnfoldClick(...Gn))},[createVNode(In,{class:"hover-scale-120",name:"unfold"})])),[[Wn,_n.getLang($n.hidePanel?"show_panel":"hide_panel")]]),createBaseVNode("div",_hoisted_3$c,toDisplayString($n.neg?_n.getLang("negative_prompt"):_n.getLang("prompt")),1),withDirectives(createBaseVNode("div",{class:"prompt-header-counter"},"("+toDisplayString(Bn.counterText)+")",513),[[vShow,Bn.counterText]]),createBaseVNode("div",_hoisted_4$c,[createBaseVNode("div",_hoisted_5$b,[createBaseVNode("div",_hoisted_6$a,[withDirectives((openBlock(),createElementBlock("div",{class:"extend-btn-item",onClick:Cn[1]||(Cn[1]=Gn=>_n.$emit("click:selectLanguage",Gn))},[createVNode(In,{class:"hover-scale-120",name:"i18n"})])),[[Wn,"Language: "+_n.langName]]),createBaseVNode("div",{class:normalizeClass(["extend-btn-item",$n.isLatestVersion?"":"red-dot"])},[withDirectives(createVNode(In,{class:"hover-scale-120",name:"setting"},null,512),[[Wn,_n.getLang("setting_desc")]]),withDirectives((openBlock(),createElementBlock("div",{class:"setting-box",onMouseenter:Cn[15]||(Cn[15]=(...Gn)=>_n.onSettingBoxMouseEnter&&_n.onSettingBoxMouseEnter(...Gn))},[Ln.translateApiItem.name&&!Ln.isEnglish?withDirectives((openBlock(),createElementBlock("div",{key:0,class:"extend-btn-item",onClick:Cn[2]||(Cn[2]=Gn=>_n.$emit("click:translateApi",Gn))},[createVNode(In,{class:"hover-scale-120",name:"api"})])),[[Wn,_n.getLang("translate_api")+": "+Ln.translateApiItem.name]]):createCommentVNode("",!0),withDirectives((openBlock(),createElementBlock("div",{class:"extend-btn-item",onClick:Cn[3]||(Cn[3]=Gn=>_n.$emit("click:promptFormat",Gn))},[createVNode(In,{class:"hover-scale-120",name:"format"})])),[[Wn,_n.getLang("prompt_format")]]),withDirectives((openBlock(),createElementBlock("div",{class:"extend-btn-item",onClick:Cn[4]||(Cn[4]=Gn=>_n.$emit("click:blacklist",Gn))},[createVNode(In,{class:"hover-scale-120",name:"blacklist"})])),[[Wn,_n.getLang("keywords_blacklist")]]),withDirectives((openBlock(),createElementBlock("div",{class:"extend-btn-item",onClick:Cn[5]||(Cn[5]=Gn=>_n.$emit("click:hotkey",Gn))},[createVNode(In,{class:"hover-scale-120",name:"hotkey"})])),[[Wn,_n.getLang("hotkey_setting")]]),withDirectives((openBlock(),createElementBlock("div",{class:"extend-btn-item",onClick:Cn[6]||(Cn[6]=Gn=>_n.$emit("click:selectTheme",Gn))},[createVNode(In,{class:"hover-scale-120",name:"theme"})])),[[Wn,_n.getLang("theme_extension")]]),withDirectives((openBlock(),createElementBlock("div",{class:"extend-btn-item",onClick:Cn[7]||(Cn[7]=Gn=>_n.$emit("click:switchTheme",Gn))},[createVNode(In,{class:"hover-scale-120",name:$n.theme==="dark"?"sun":"moon"},null,8,["name"])])),[[Wn,_n.getLang($n.theme==="dark"?"switch_to_light_theme":"switch_to_dark_theme")]]),withDirectives((openBlock(),createElementBlock("div",{class:normalizeClass(["extend-btn-item",$n.isLatestVersion?"":"red-dot"]),onClick:Cn[8]||(Cn[8]=Gn=>_n.$emit("click:showAbout",Gn))},[createVNode(In,{class:"hover-scale-120",name:"about"})],2)),[[Wn,_n.getLang("about_desc")]]),Ln.isEnglish?createCommentVNode("",!0):(openBlock(),createElementBlock(Fragment,{key:1},[$n.canOneTranslate?(openBlock(),createElementBlock("div",_hoisted_7$9,[withDirectives((openBlock(),createElementBlock("label",null,[createBaseVNode("input",{type:"checkbox",name:"auto_translate",value:"1",checked:$n.autoTranslate,onChange:Cn[9]||(Cn[9]=Gn=>_n.$emit("update:autoTranslate",Gn.target.checked))},null,40,_hoisted_8$9),createVNode(In,{name:"translate"})])),[[Wn,_n.getLang("auto_translate")]])])):(openBlock(),createElementBlock(Fragment,{key:1},[createBaseVNode("div",_hoisted_9$8,[withDirectives((openBlock(),createElementBlock("label",null,[createBaseVNode("input",{type:"checkbox",name:"auto_translate_to_local_language",value:"1",checked:$n.autoTranslateToLocal,onChange:Cn[10]||(Cn[10]=Gn=>_n.$emit("update:autoTranslateToLocal",Gn.target.checked))},null,40,_hoisted_10$8),createVNode(In,{name:"translate"})])),[[Wn,_n.getLang("auto_translate_to_local_language")]])]),createBaseVNode("div",_hoisted_11$8,[withDirectives((openBlock(),createElementBlock("label",null,[createBaseVNode("input",{type:"checkbox",name:"auto_translate_to_english",value:"1",checked:$n.autoTranslateToEnglish,onChange:Cn[11]||(Cn[11]=Gn=>_n.$emit("update:autoTranslateToEnglish",Gn.target.checked))},null,40,_hoisted_12$8),createVNode(In,{name:"english"})])),[[Wn,_n.getLang("auto_translate_to_english")]])])],64))],64)),createBaseVNode("div",_hoisted_13$8,[withDirectives((openBlock(),createElementBlock("label",null,[createBaseVNode("input",{type:"checkbox",name:"enable_tooltip",value:"1",checked:$n.enableTooltip,onChange:Cn[12]||(Cn[12]=Gn=>_n.$emit("update:enableTooltip",Gn.target.checked))},null,40,_hoisted_14$8),createVNode(In,{name:"tooltip"})])),[[Wn,_n.getLang("whether_to_enable_tooltip")]])]),createBaseVNode("div",_hoisted_15$8,[withDirectives((openBlock(),createElementBlock("label",null,[withDirectives(createBaseVNode("select",{"onUpdate:modelValue":Cn[13]||(Cn[13]=Gn=>_n.autoInputPrompt=Gn),onChange:Cn[14]||(Cn[14]=(...Gn)=>_n.onAutoInputPromptChange&&_n.onAutoInputPromptChange(...Gn))},[createBaseVNode("option",_hoisted_16$7,toDisplayString(_n.getLang("auto_input_prompt"))+": "+toDisplayString(_n.getLang("disabled")),1),createBaseVNode("option",_hoisted_17$7,toDisplayString(_n.getLang("last_input_prompt")),1),(openBlock(!0),createElementBlock(Fragment,null,renderList(_n.getCurrentTypeFavorites(),Gn=>(openBlock(),createElementBlock("optgroup",{key:Gn.key,label:_n.getLang("favorite")+" / "+_n.getLang(Gn.name)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Gn.list,rr=>(openBlock(),createElementBlock("option",{value:rr.id},toDisplayString(rr.name||rr.prompt.substring(0,40)),9,_hoisted_19$7))),256))],8,_hoisted_18$7))),128))],544),[[vModelSelect,_n.autoInputPrompt]])])),[[Wn,_n.getLang("auto_input_prompt")]])])],32)),[[Xn,"fadeIn"]])],2)])])]),createBaseVNode("div",_hoisted_20$7,[createBaseVNode("div",_hoisted_21$7,[createBaseVNode("div",_hoisted_22$7,[withDirectives((openBlock(),createElementBlock("div",{class:"extend-btn-item",ref:"historyButton",onClick:Cn[16]||(Cn[16]=Gn=>_n.$emit("click:showHistory",Gn))},[createVNode(In,{class:"hover-scale-120",name:"history"})])),[[Wn,_n.getLang("history")]]),withDirectives((openBlock(),createElementBlock("div",{class:"extend-btn-item",ref:"favoriteButton",onClick:Cn[17]||(Cn[17]=Gn=>_n.$emit("click:showFavorite",Gn))},[createVNode(In,{class:"hover-scale-120",name:"favorite"})])),[[Wn,_n.getLang("favorite")]])])])]),Ln.isEnglish?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_23$7,[createBaseVNode("div",_hoisted_24$6,[createBaseVNode("div",_hoisted_25$6,[$n.canOneTranslate?withDirectives((openBlock(),createElementBlock("div",{key:0,class:"extend-btn-item",onClick:Cn[18]||(Cn[18]=(...Gn)=>_n.onTranslatesToLocalClick&&_n.onTranslatesToLocalClick(...Gn))},[Bn.loading.all_local?createCommentVNode("",!0):(openBlock(),createBlock(In,{key:0,class:"hover-scale-120",name:"translate"})),Bn.loading.all_local?(openBlock(),createBlock(In,{key:1,class:"hover-scale-120",name:"loading"})):createCommentVNode("",!0)])),[[Wn,_n.getLang("one_translate_all_keywords")]]):(openBlock(),createElementBlock(Fragment,{key:1},[withDirectives((openBlock(),createElementBlock("div",{class:"extend-btn-item",onClick:Cn[19]||(Cn[19]=(...Gn)=>_n.onTranslatesToLocalClick&&_n.onTranslatesToLocalClick(...Gn))},[Bn.loading.all_local?createCommentVNode("",!0):(openBlock(),createBlock(In,{key:0,class:"hover-scale-120",name:"translate"})),Bn.loading.all_local?(openBlock(),createBlock(In,{key:1,class:"hover-scale-120",name:"loading"})):createCommentVNode("",!0)])),[[Wn,_n.getLang("translate_keywords_to_local_language")]]),withDirectives((openBlock(),createElementBlock("div",{class:"extend-btn-item",onClick:Cn[20]||(Cn[20]=(...Gn)=>_n.onTranslatesToEnglishClick&&_n.onTranslatesToEnglishClick(...Gn))},[Bn.loading.all_en?createCommentVNode("",!0):(openBlock(),createBlock(In,{key:0,class:"hover-scale-120",name:"english"})),Bn.loading.all_en?(openBlock(),createBlock(In,{key:1,class:"hover-scale-120",name:"loading"})):createCommentVNode("",!0)])),[[Wn,_n.getLang("translate_all_keywords_to_english")]])],64))])])])),createBaseVNode("div",_hoisted_26$6,[createBaseVNode("div",_hoisted_27$6,[createBaseVNode("div",_hoisted_28$4,[withDirectives((openBlock(),createElementBlock("div",{class:"extend-btn-item",onClick:Cn[21]||(Cn[21]=(...Gn)=>_n.onCopyAllTagsClick&&_n.onCopyAllTagsClick(...Gn))},[createVNode(In,{class:"hover-scale-120",name:"copy"})])),[[Wn,_n.getLang("copy_keywords_to_clipboard")]]),withDirectives((openBlock(),createElementBlock("div",{class:"extend-btn-item",onClick:Cn[22]||(Cn[22]=(...Gn)=>_n.onDeleteAllTagsClick&&_n.onDeleteAllTagsClick(...Gn))},[createVNode(In,{class:"hover-scale-120",name:"remove"})])),[[Wn,_n.getLang("delete_all_keywords")]])])])]),$n.autoLoadWebuiPrompt?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_29$3,[createBaseVNode("div",_hoisted_30$2,[createBaseVNode("div",_hoisted_31$2,[withDirectives((openBlock(),createElementBlock("div",{class:"extend-btn-item",onClick:Cn[23]||(Cn[23]=(...Gn)=>_n.onClickLoadWebuiPrompt&&_n.onClickLoadWebuiPrompt(...Gn))},[createVNode(In,{class:"hover-scale-120",name:"load2"})])),[[Wn,_n.getLang("load_webui_prompt")]])])])])),$n.neg?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_32$2,[createBaseVNode("div",_hoisted_33$2,[createBaseVNode("div",_hoisted_34$2,[withDirectives((openBlock(),createElementBlock("div",{class:"extend-btn-item",onClick:Cn[24]||(Cn[24]=Gn=>_n.$emit("click:showChatgpt",Gn))},[createVNode(In,{class:"hover-scale-120",name:"chatgpt"})])),[[Wn,_n.getLang("use_chatgpt_gen_prompts")]])])])])),createBaseVNode("div",_hoisted_35$2,[createBaseVNode("div",_hoisted_36$2,[createBaseVNode("div",_hoisted_37$2,[withDirectives((openBlock(),createElementBlock("label",null,[createBaseVNode("input",{type:"checkbox",name:"auto_load_webui_prompt",value:"1",checked:$n.autoLoadWebuiPrompt,onChange:Cn[25]||(Cn[25]=Gn=>_n.$emit("update:autoLoadWebuiPrompt",Gn.target.checked))},null,40,_hoisted_38$2),createVNode(In,{name:"load"})])),[[Wn,_n.getLang("auto_load_webui_prompt")]])]),createBaseVNode("div",_hoisted_39$2,[$n.hideDefaultInput?withDirectives((openBlock(),createElementBlock("label",_hoisted_40$2,[createBaseVNode("input",{type:"checkbox",name:"hide_default_input",value:"1",checked:!$n.hideDefaultInput,onChange:Cn[26]||(Cn[26]=Gn=>_n.$emit("update:hideDefaultInput",!Gn.target.checked))},null,40,_hoisted_41$2),createVNode(In,{name:"input"})])),[[Wn,_n.getLang("show_default_input_box")]]):withDirectives((openBlock(),createElementBlock("label",_hoisted_42$1,[createBaseVNode("input",{type:"checkbox",name:"hide_default_input",value:"1",checked:!$n.hideDefaultInput,onChange:Cn[27]||(Cn[27]=Gn=>_n.$emit("update:hideDefaultInput",!Gn.target.checked))},null,40,_hoisted_43$1),createVNode(In,{name:"input"})])),[[Wn,_n.getLang("hide_default_input_box")]])]),withDirectives(createBaseVNode("textarea",{type:"text",class:"scroll-hide svelte-4xt1ch input-tag-append",ref:"promptTagAppend",placeholder:_n.getLang("please_enter_new_keyword"),onFocus:Cn[28]||(Cn[28]=(...Gn)=>_n.onAppendTagFocus&&_n.onAppendTagFocus(...Gn)),onBlur:Cn[29]||(Cn[29]=(...Gn)=>_n.onAppendTagBlur&&_n.onAppendTagBlur(...Gn)),onKeyup:Cn[30]||(Cn[30]=(...Gn)=>_n.onAppendTagKeyUp&&_n.onAppendTagKeyUp(...Gn)),onKeydown:Cn[31]||(Cn[31]=(...Gn)=>_n.onAppendTagKeyDown&&_n.onAppendTagKeyDown(...Gn))},null,40,_hoisted_44$1),[[Wn,_n.getLang("enter_to_add")]]),withDirectives(createBaseVNode("div",{class:"prompt-append-list",ref:"promptAppendList",style:normalizeStyle(_n.appendListStyle)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(_n.appendList,(Gn,rr)=>(openBlock(),createElementBlock("div",{key:Gn.type,class:normalizeClass(["prompt-append-group",_n.appendListSelected===rr?"selected":""])},[createBaseVNode("div",{class:"append-group-name",onClick:nr=>_n.onAppendGroupClick(rr,null,nr)},[Gn.icon==="wrap"?(openBlock(),createBlock(In,{key:0,class:"name-icon",name:"wrap"})):Gn.icon==="history"?(openBlock(),createBlock(In,{key:1,class:"name-icon",name:"history"})):Gn.icon==="favorite"?(openBlock(),createBlock(In,{key:2,class:"name-icon",name:"favorite"})):createCommentVNode("",!0),createTextVNode(" "+toDisplayString(_n.appendListItemName(Gn))+" ",1),withDirectives(createBaseVNode("span",_hoisted_46$1,null,512),[[vShow,Gn.children.length>0]])],8,_hoisted_45$1),createVNode(Transition,{name:"fade"},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{class:"append-group-list",ref_for:!0,ref:"promptAppendListChildren"},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Gn.children,(nr,Yo)=>(openBlock(),createElementBlock("div",{key:Yo,ref_for:!0,ref:"promptAppendListChild",class:normalizeClass(["append-item",_n.appendListChildSelected===Yo?"selected":""]),onMouseleave:ei=>_n.onAppendListChildMouseLeave(rr,Yo,ei),onMouseenter:ei=>_n.onAppendListChildMouseEnter(rr,Yo,ei),onClick:ei=>_n.onAppendGroupClick(rr,Yo,ei)},[Gn.type==="favorite"||Gn.type==="history"?(openBlock(),createElementBlock(Fragment,{key:0},[nr.name?(openBlock(),createElementBlock("div",_hoisted_48$1,toDisplayString(nr.name),1)):(openBlock(),createElementBlock("div",_hoisted_49$1,toDisplayString(nr.prompt),1))],64)):createCommentVNode("",!0)],42,_hoisted_47$1))),128))],512),[[vShow,Gn.children.length>0]])]),_:2},1024),createVNode(Transition,{name:"fade"},{default:withCtx(()=>[withDirectives(createBaseVNode("div",_hoisted_50$1,[createBaseVNode("div",_hoisted_51$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(_n.appendListChildItemTags,(nr,Yo)=>(openBlock(),createElementBlock(Fragment,{key:Yo},[nr.type&&nr.type==="wrap"?(openBlock(),createElementBlock("div",_hoisted_52$1)):(openBlock(),createElementBlock("div",_hoisted_53$1,[createBaseVNode("div",_hoisted_54$1,toDisplayString(nr.value),1),createBaseVNode("div",_hoisted_55$1,toDisplayString(nr.localValue),1)]))],64))),128))])],512),[[vShow,_n.appendListSelected!==null&&_n.appendListChildSelected!==null&&_n.appendListSelected===rr&&(Gn.type==="favorite"||Gn.type==="history")]])]),_:2},1024)],2))),128))],4),[[vShow,_n.showAppendList]])])])]),createBaseVNode("div",{class:normalizeClass(["prompt-tags",Bn.droping?"droping":"",_n.dropIsSelecting||_n.dropIsEnd&&_n.dropTags.length?"selecting":""]),ref:"promptTags",onMousedown:Cn[56]||(Cn[56]=(...Gn)=>_n.onDropMouseDown&&_n.onDropMouseDown(...Gn)),onMousemove:Cn[57]||(Cn[57]=(...Gn)=>_n.onDropMouseMove&&_n.onDropMouseMove(...Gn)),onMouseup:Cn[58]||(Cn[58]=(...Gn)=>_n.onDropMouseUp&&_n.onDropMouseUp(...Gn))},[createBaseVNode("div",_hoisted_56$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.tags,(Gn,rr)=>(openBlock(),createElementBlock("div",{key:Gn.id,class:normalizeClass(["prompt-tag",Gn.disabled?"disabled":"",Gn.type==="wrap"?"wrap-tag":""]),ref_for:!0,ref:"promptTag-"+Gn.id,"data-id":Gn.id},[createBaseVNode("div",{class:"prompt-tag-main",onMouseenter:nr=>_n.onTagMouseEnter(Gn.id),onMousemove:withModifiers(nr=>_n.onTagMouseMove(Gn.id),["stop"]),onMouseleave:withModifiers(nr=>_n.onTagMouseLeave(Gn.id),["stop"])},[createBaseVNode("div",_hoisted_59$1,[Gn.type==="wrap"?withDirectives((openBlock(),createElementBlock("div",{key:0,class:"prompt-tag-value",ref_for:!0,ref:"promptTagValue-"+Gn.id,style:{width:"100%"}},[createVNode(In,{name:"wrap"})])),[[Wn,_n.getLang("line_break_character")+"<br/>"+_n.getLang("drop_to_order")]]):(openBlock(),createElementBlock(Fragment,{key:1},[withDirectives(createBaseVNode("div",{class:normalizeClass(Gn.classes),style:normalizeStyle(_n.getTagColorStyle(Gn)),ref_for:!0,ref:"promptTagValue-"+Gn.id,onClick:nr=>_n.onTagClick(Gn.id,nr),onDblclick:nr=>_n.onTagDblclick(Gn.id),onContextmenu:withModifiers(nr=>_n.onTagRightClick(Gn.id,nr),["right","prevent"]),innerHTML:_n.renderTag(Gn.id)},null,46,_hoisted_60$1),[[vShow,!Bn.editing[Gn.id]],[Wn,Gn.isLora||Gn.isLyco?"":_n.getLang("click_to_edit")+"<br/>"+_n.getLang("dblclick_to_disable")+"<br/>"+_n.getLang("drop_to_order")]]),withDirectives(createBaseVNode("textarea",{type:"text",class:"scroll-hide svelte-4xt1ch input-tag-edit",ref_for:!0,ref:"promptTagEdit-"+Gn.id,placeholder:_n.getLang("enter_to_save"),value:Gn.value,onMousedown:Cn[32]||(Cn[32]=withModifiers(()=>{},["stop"])),onMousemove:Cn[33]||(Cn[33]=withModifiers(()=>{},["stop"])),onMouseup:Cn[34]||(Cn[34]=withModifiers(()=>{},["stop"])),onBlur:nr=>_n.onTagInputBlur(Gn.id),onKeydown:nr=>_n.onTagInputKeyDown(Gn.id,nr),onChange:nr=>_n.onTagInputChange(Gn.id,nr)},null,40,_hoisted_61),[[vShow,Bn.editing[Gn.id]]])],64)),createBaseVNode("div",{class:"btn-tag-delete",ref_for:!0,ref:"promptTagDelete-"+Gn.id,onClick:nr=>_n.onDeleteTagClick(Gn.id),onMousedown:Cn[35]||(Cn[35]=withModifiers(()=>{},["stop"])),onMousemove:Cn[36]||(Cn[36]=withModifiers(()=>{},["stop"])),onMouseup:Cn[37]||(Cn[37]=withModifiers(()=>{},["stop"]))},[createVNode(In,{name:"close"})],40,_hoisted_62)]),withDirectives((openBlock(),createElementBlock("div",{class:"btn-tag-extend",style:normalizeStyle({display:(Gn.type==="text"||!Gn.type)&&_n.showExtendId===Gn.id&&!this.editing[Gn.id]?"flex":"none"}),onClick:Cn[38]||(Cn[38]=withModifiers(()=>{},["stop"])),onMousedown:Cn[39]||(Cn[39]=withModifiers(()=>{},["stop"])),onMousemove:Cn[40]||(Cn[40]=withModifiers(()=>{},["stop"])),onMouseup:Cn[41]||(Cn[41]=withModifiers(()=>{},["stop"]))},[createVNode(Pn,{class:"input-number",name:"input-number","model-value":Gn.weightNum,center:"",controls:"",min:-100,step:.1,size:"small","onUpdate:modelValue":nr=>_n.onTagWeightNumChange(Gn.id,nr)},null,8,["model-value","step","onUpdate:modelValue"]),withDirectives((openBlock(),createElementBlock("button",{type:"button",name:"weight-parentheses-inc",onClick:nr=>_n.onIncWeightClick(Gn.id,1)},[createVNode(In,{name:$n.useNovelAiWeightSymbol?"weight-braces-inc":"weight-parentheses-inc"},null,8,["name"])],8,_hoisted_63)),[[Wn,_n.getLang("increase_weight_add_parentheses")]]),withDirectives((openBlock(),createElementBlock("button",{type:"button",name:"weight-parentheses-dec",onClick:nr=>_n.onIncWeightClick(Gn.id,-1)},[createVNode(In,{name:$n.useNovelAiWeightSymbol?"weight-braces-dec":"weight-parentheses-dec"},null,8,["name"])],8,_hoisted_64)),[[Wn,_n.getLang("increase_weight_subtract_parentheses")]]),withDirectives((openBlock(),createElementBlock("button",{type:"button",name:"weight-brackets-inc",onClick:nr=>_n.onDecWeightClick(Gn.id,1)},[createVNode(In,{name:"weight-brackets-inc"})],8,_hoisted_65)),[[Wn,_n.getLang("decrease_weight_add_brackets")]]),withDirectives((openBlock(),createElementBlock("button",{type:"button",name:"weight-brackets-dec",onClick:nr=>_n.onDecWeightClick(Gn.id,-1)},[createVNode(In,{name:"weight-brackets-dec"})],8,_hoisted_66)),[[Wn,_n.getLang("decrease_weight_subtract_brackets")]]),withDirectives((openBlock(),createElementBlock("button",{type:"button",name:"wrap",onClick:nr=>_n.onWrapTagClick(Gn.id)},[createVNode(In,{name:"wrap"})],8,_hoisted_67)),[[Wn,_n.getLang("line_break_character")]]),withDirectives((openBlock(),createElementBlock("button",{type:"button",name:"translate",onClick:nr=>_n.onTranslateToEnglishClick(Gn.id)},[Bn.loading[Gn.id+"_en"]?createCommentVNode("",!0):(openBlock(),createBlock(In,{key:0,name:"english"})),Bn.loading[Gn.id+"_en"]?(openBlock(),createBlock(In,{key:1,name:"loading"})):createCommentVNode("",!0)],8,_hoisted_68)),[[Wn,_n.getLang("translate_keyword_to_english")],[vShow,!Ln.isEnglish]]),withDirectives((openBlock(),createElementBlock("button",{type:"button",name:"copy",onClick:nr=>Ln.copy(Gn.value)},[createVNode(In,{name:"copy"})],8,_hoisted_69)),[[Wn,_n.getLang("copy_to_clipboard")]]),withDirectives((openBlock(),createElementBlock("button",{type:"button",name:"favorite",onClick:nr=>_n.onFavoriteTagClick(Gn.id)},[Gn.isFavorite?(openBlock(),createBlock(In,{key:0,name:"favorite-yes"})):createCommentVNode("",!0),Gn.isFavorite?createCommentVNode("",!0):(openBlock(),createBlock(In,{key:1,name:"favorite-no"}))],8,_hoisted_70)),[[Wn,_n.getLang(Gn.isFavorite?"remove_from_favorite":"add_to_favorite")]]),withDirectives((openBlock(),createElementBlock("button",{type:"button",name:"blacklist",onClick:nr=>_n.onBlacklistClick(Gn.id)},[createVNode(In,{name:"blacklist"})],8,_hoisted_71)),[[Wn,_n.getLang("add_blacklist")]]),withDirectives((openBlock(),createElementBlock("button",{type:"button",name:"enable",onClick:nr=>_n.onDisabledTagClick(Gn.id)},[Gn.disabled?createCommentVNode("",!0):(openBlock(),createBlock(In,{key:0,name:"disabled"})),Gn.disabled?(openBlock(),createBlock(In,{key:1,name:"enable"})):createCommentVNode("",!0)],8,_hoisted_72)),[[Wn,_n.getLang(Gn.disabled?"enable_keyword":"disable_keyword")]])],36)),[[Xn,"fadeIn"]])],40,_hoisted_58$1),withDirectives(createBaseVNode("div",_hoisted_73,[withDirectives((openBlock(),createElementBlock("div",{class:"translate-to-local hover-scale-120",onClick:nr=>_n.onTranslateToLocalClick(Gn.id),onMousedown:Cn[42]||(Cn[42]=withModifiers(()=>{},["stop"])),onMousemove:Cn[43]||(Cn[43]=withModifiers(()=>{},["stop"])),onMouseup:Cn[44]||(Cn[44]=withModifiers(()=>{},["stop"]))},[Bn.loading[Gn.id+"_local"]?createCommentVNode("",!0):(openBlock(),createBlock(In,{key:0,name:"translate"})),Bn.loading[Gn.id+"_local"]?(openBlock(),createBlock(In,{key:1,name:"loading"})):createCommentVNode("",!0)],40,_hoisted_74)),[[Wn,_n.getLang("translate_keyword_to_local_language")]]),createBaseVNode("div",_hoisted_75,toDisplayString(Gn.localValue),1)],512),[[vShow,!Ln.isEnglish&&(Gn.type==="text"||!Gn.type)]])],10,_hoisted_57$1))),128)),(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.tags,(Gn,rr)=>(openBlock(),createElementBlock("div",{key:Gn.id,class:normalizeClass(["prompt-wrap",Gn.type==="wrap"?"wrap-tag":""]),"data-id":Gn.id,ref_for:!0,ref:"promptTagWrap",onMousedown:Cn[45]||(Cn[45]=withModifiers(()=>{},["stop"])),onMousemove:Cn[46]||(Cn[46]=withModifiers(()=>{},["stop"])),onMouseup:Cn[47]||(Cn[47]=withModifiers(()=>{},["stop"]))},null,42,_hoisted_76))),128))],512),createBaseVNode("div",{class:"drop-select-bg",ref:"dropSelectBg",style:normalizeStyle({display:_n.dropIsStart?"block":"none"})},null,4),createBaseVNode("div",{class:"drop-select-box",ref:"dropSelectBox",style:normalizeStyle({display:_n.dropIsSelecting?"block":"none",top:_n.dropArea.top+"px",left:_n.dropArea.left+"px",width:_n.dropArea.width+"px",height:_n.dropArea.height+"px"})},null,4),createBaseVNode("div",{class:"drop-select-btns",ref:"dropSelectBtns",style:normalizeStyle({display:_n.dropIsEnd&&_n.dropTags.length?"flex":"none",top:_n.dropEndY-32+"px",left:_n.dropEndX+"px"}),onMousedown:Cn[53]||(Cn[53]=withModifiers(()=>{},["stop"])),onMousemove:Cn[54]||(Cn[54]=withModifiers(()=>{},["stop"])),onMouseup:Cn[55]||(Cn[55]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",_hoisted_77,toDisplayString(_n.getLang("batch_operation")),1),withDirectives((openBlock(),createElementBlock("button",{type:"button",onClick:Cn[48]||(Cn[48]=(...Gn)=>_n.onDropCopy&&_n.onDropCopy(...Gn))},[createVNode(In,{name:"copy"})])),[[Wn,_n.getLang("copy_to_clipboard")]]),withDirectives((openBlock(),createElementBlock("button",{type:"button",onClick:Cn[49]||(Cn[49]=(...Gn)=>_n.onDropFavorite&&_n.onDropFavorite(...Gn))},[createVNode(In,{name:"favorite-no"})])),[[Wn,_n.getLang("add_to_favorite")]]),withDirectives((openBlock(),createElementBlock("button",{type:"button",onClick:Cn[50]||(Cn[50]=(...Gn)=>_n.onDropDisable&&_n.onDropDisable(...Gn))},[createVNode(In,{name:"disabled"})])),[[Wn,_n.getLang("disable_keyword")]]),withDirectives((openBlock(),createElementBlock("button",{type:"button",onClick:Cn[51]||(Cn[51]=(...Gn)=>_n.onDropEnable&&_n.onDropEnable(...Gn))},[createVNode(In,{name:"enable"})])),[[Wn,_n.getLang("enable_keyword")]]),createBaseVNode("button",{type:"button",onClick:Cn[52]||(Cn[52]=(...Gn)=>_n.onDropDelete&&_n.onDropDelete(...Gn))},[createVNode(In,{name:"remove"})])],36)],34),_n.groupTagsProcessed.length?withDirectives((openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["show-group-tags",$n.hideGroupTags?"hided":""]),onClick:Cn[59]||(Cn[59]=(...Gn)=>_n.onClickHideGroupTags&&_n.onClickHideGroupTags(...Gn))},[createVNode(In,{class:"hover-scale-120",name:"unfold"})],2)),[[Wn,_n.getLang($n.hideGroupTags?"show_group_tags":"hide_group_tags")]]):createCommentVNode("",!0),createVNode(Transition,{name:"fade"},{default:withCtx(()=>[withDirectives(createBaseVNode("div",_hoisted_78,[createBaseVNode("div",_hoisted_79,[(openBlock(!0),createElementBlock(Fragment,null,renderList(_n.groupTagsProcessed,(Gn,rr)=>(openBlock(),createElementBlock("div",{key:rr,class:normalizeClass(["group-tab",Gn.tabKey==_n.groupTagsActive?"active":""]),onClick:nr=>_n.activeGroupTab(rr),"data-name":Gn.name},toDisplayString(Gn.name),11,_hoisted_80))),128))],512),createBaseVNode("div",_hoisted_81,[(openBlock(!0),createElementBlock(Fragment,null,renderList(_n.groupTagsProcessed,(Gn,rr)=>(openBlock(),createElementBlock("div",{key:rr,class:normalizeClass(["group-main",Gn.tabKey==_n.groupTagsActive?"active":""])},[Gn.tabKey==_n.groupTagsActive?(openBlock(),createElementBlock("div",_hoisted_82,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Gn.groups,(nr,Yo)=>(openBlock(),createElementBlock("div",{key:Yo,class:normalizeClass([nr.type&&nr.type==="wrap"?"sub-group-tag-wrap":"sub-group-tab",nr.tabKey==_n.subGroupTagsActive?"active":""]),onClick:ei=>_n.activeSubGroupTab(rr,Yo),"data-name":nr.name},toDisplayString(nr.name),11,_hoisted_83))),128))])):createCommentVNode("",!0),Gn.tabKey==_n.groupTagsActive?(openBlock(),createElementBlock("div",_hoisted_84,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Gn.groups,(nr,Yo)=>(openBlock(),createElementBlock("div",{key:Yo,class:normalizeClass(["sub-group-main",nr.tabKey==_n.subGroupTagsActive?"active":""])},[createVNode(Transition,{name:"fade"},{default:withCtx(()=>[nr.tabKey==_n.subGroupTagsActive?(openBlock(),createElementBlock("div",_hoisted_85,[nr.type==="extraNetworks"?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(nr.datas,ei=>(openBlock(),createElementBlock("div",{class:"group-extra-network",key:ei.name,onClick:ti=>_n.onClickGroupTagExtraNetwork(ei,Gn,nr),onMouseenter:ti=>_n.onGroupExtraNetworkMouseEnter(ti,ei.name),onMousemove:Cn[60]||(Cn[60]=(...ti)=>_n.onGroupExtraNetworkMouseMove&&_n.onGroupExtraNetworkMouseMove(...ti)),onMouseleave:Cn[61]||(Cn[61]=(...ti)=>_n.onGroupExtraNetworkMouseLeave&&_n.onGroupExtraNetworkMouseLeave(...ti)),style:normalizeStyle(_n.getGroupTagExtraNetworkStyle(ei))},[createBaseVNode("img",{class:"extra-network-preview",src:ei.preview||"./file=html/card-no-preview.png"},null,8,_hoisted_87),createBaseVNode("div",_hoisted_88,toDisplayString(ei.name),1),ei.loading?(openBlock(),createElementBlock("div",_hoisted_89,[createVNode(In,{name:"loading"})])):createCommentVNode("",!0)],44,_hoisted_86))),128)):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(nr.tags,(ei,ti)=>withDirectives((openBlock(),createElementBlock("div",{class:"tag-item",ref_for:!0,ref:"groupTagItem",onClick:ui=>_n.onClickGroupTag(ei,ti,Gn,nr)},[ei&&ei!=ti?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("div",{class:"tag-local",style:normalizeStyle(_n.getGroupTagStyle(Gn.name,nr.name,ti))},toDisplayString(ei),5),createBaseVNode("div",_hoisted_91,toDisplayString(ti),1)],64)):(openBlock(),createElementBlock("div",{key:1,class:"tag-local",style:normalizeStyle(_n.getGroupTagStyle(Gn.name,nr.name,ti))},toDisplayString(ti),5))],8,_hoisted_90)),[[Wn,_n.getGroupTagTooltip(ei,ti)]])),256))])):createCommentVNode("",!0)]),_:2},1024),Gn.type==="extraNetworks"?(openBlock(),createElementBlock("div",_hoisted_92,[createBaseVNode("div",_hoisted_93,[createBaseVNode("div",{class:"tags-size-item",onClick:Cn[62]||(Cn[62]=(...ei)=>_n.onClickGroupExtraNetworkRefresh&&_n.onClickGroupExtraNetworkRefresh(...ei))},[_n.extraNetworksRefreshing?(openBlock(),createBlock(In,{key:0,name:"loading"})):createCommentVNode("",!0),_n.extraNetworksRefreshing?createCommentVNode("",!0):(openBlock(),createBlock(In,{key:1,class:"hover-scale-120",name:"refresh"})),createBaseVNode("div",_hoisted_94,toDisplayString(this.getLang("refresh")),1)]),createBaseVNode("div",_hoisted_95,[createBaseVNode("input",{class:"size-number",type:"number",min:"10",max:"1000",step:"1",value:$n.extraNetworksWidth,onChange:Cn[63]||(Cn[63]=ei=>_n.$emit("update:extraNetworksWidth",ei.target.value))},null,40,_hoisted_96),createBaseVNode("div",_hoisted_97,toDisplayString(this.getLang("width")),1)]),createBaseVNode("div",_hoisted_98,[createBaseVNode("input",{class:"size-number",type:"number",min:"10",max:"1000",step:"1",value:$n.extraNetworksHeight,onChange:Cn[64]||(Cn[64]=ei=>_n.$emit("update:extraNetworksHeight",ei.target.value))},null,40,_hoisted_99),createBaseVNode("div",_hoisted_100,toDisplayString(this.getLang("height")),1)])])])):createCommentVNode("",!0),Gn.type!=="favorite"&&Gn.type!=="extraNetworks"?(openBlock(),createElementBlock("div",_hoisted_101,[createBaseVNode("div",_hoisted_102,[createBaseVNode("div",null,toDisplayString(_n.getLang("tags_color"))+":",1),withDirectives((openBlock(),createElementBlock("div",_hoisted_103,[createVNode(Dn,{theme:$n.theme=="dark"?"black":"white",pureColor:$n.groupTagsColor[_n.getTagsColorKey(Gn.name,nr.name)],"onUpdate:pureColor":ei=>$n.groupTagsColor[_n.getTagsColorKey(Gn.name,nr.name)]=ei,onPureColorChange:ei=>_n.onTagsColorChange(_n.getTagsColorKey(Gn.name,nr.name))},null,8,["theme","pureColor","onUpdate:pureColor","onPureColorChange"])])),[[Wn,$n.groupTagsColor[_n.getTagsColorKey(Gn.name,nr.name)]]]),withDirectives((openBlock(),createElementBlock("div",{class:"tags-color-reset hover-scale-120",onClick:ei=>_n.onClickResetTagsColor(_n.getTagsColorKey(Gn.name,nr.name))},[createVNode(In,{name:"reset"})],8,_hoisted_104)),[[Wn,_n.getLang("reset_default_color")]]),withDirectives((openBlock(),createElementBlock("div",{class:"tags-color-clear hover-scale-120",onClick:ei=>_n.onClickClearTagsColor(_n.getTagsColorKey(Gn.name,nr.name))},[createVNode(In,{name:"clear"})],8,_hoisted_105)),[[Wn,_n.getLang("clear_color")]])]),createBaseVNode("div",_hoisted_106,toDisplayString(_n.getLang("tags-copyright")),1)])):createCommentVNode("",!0)],2))),128))])):createCommentVNode("",!0)],2))),128))])],512),[[vShow,!$n.hideGroupTags&&_n.groupTagsProcessed.length]])]),_:1})],2),createVNode(Hn,{ref:"highlightPrompt",textarea:$n.textarea,"hide-default-input":$n.hideDefaultInput},null,8,["textarea","hide-default-input"])],8,_hoisted_1$d)}const PhystonPrompt=_export_sfc(_sfc_main$d,[["render",_sfc_render$d]]),_sfc_main$c={name:"TranslateSetting",components:{IconSvg},mixins:[LanguageMixin],props:{},data(){return{testText:"",translateSuccess:!1,errorMessage:"",translatedText:"",loading:!1,isOpen:!1,configs:[],apiKey:"",tagCompleteFiles:[],tagCompleteFilesLoading:!1,tagCompleteFileKey:"",tagCompleteResults:[],onlyCsvOnAutoValue:!1,groupTagsTranslateValue:!0,mbart50Loading:!1,mbart50Success:!1,mbart50Message:""}},computed:{apiItem(){return common$1.getTranslateApiItem(this.translateApis,this.apiKey)},supportApi(){if(!this.translateApis||this.translateApis.length<=0)return[];let _n=JSON.parse(JSON.stringify(this.translateApis));return _n.forEach(Cn=>{Cn.children.forEach($n=>{$n.disabled=!$n.support[this.languageCode]})}),_n}},mounted(){this.translateSuccess=!1,this.errorMessage="",this.translatedText="",this.loading=!1},emits:["update:translateApi","forceUpdate:translateApi","update:tagCompleteFile","update:onlyCsvOnAuto","update:groupTagsTranslate"],watch:{apiKey:{handler:function(_n,Cn){this.translateSuccess=!1,this.errorMessage="",this.translatedText="",this.loading=!1,this.configs=[],this.gradioAPI.getData("translate_api."+this.apiKey).then($n=>{const Nn=this.apiItem;if(Nn&&Nn.config){for(const Bn of this.apiItem.config)$n?Bn.value=$n[Bn.key]||Bn.default:Bn.value=Bn.default||"",this.configs.push(Bn);console.log(this.configs)}})},immediate:!1}},methods:{open(_n){this.testText=`Hi, this extension is developed by Physton. Welcome to use it!
If you have any suggestions or opinions, please feel free to raise an issue or PR on Github.
If you find this extension helpful, please give me a star on Github!
Developed by: Physton
Github: {{name}}`,this.testText=common$1.replaceGlobals(this.testText),this.apiKey=_n,this.isOpen=!0,this.errorMessage="",this.translatedText="",this.loading=!1,this.tagCompleteFileKey=this.tagCompleteFile,this.onlyCsvOnAutoValue=this.onlyCsvOnAuto,this.groupTagsTranslateValue=this.groupTagsTranslate,this.mbart50Success=!1,this.mbart50Message="",this.refreshCSVs()},getItemName(_n){let Cn=_n.name;return Cn=Cn.replace("[Free] ","["+this.getLang("free")+"] "),Cn=Cn.replace("[ApiKey] ","["+this.getLang("apply_for_free")+"] "),Cn},onChangeConfigValue(_n){_n.type==="input"&&_n.value===""&&_n.default&&(_n.value=_n.default)},refreshCSVs(){this.tagCompleteFilesLoading||(this.tagCompleteFilesLoading=!0,this.tagCompleteFiles=[],this.gradioAPI.getCSVs().then(_n=>{if(this.tagCompleteFilesLoading=!1,!(!_n||_n.length<=0)){this.tagCompleteFiles.push({key:"",name:this.getLang("not_enable")});for(const Cn of _n)this.tagCompleteFiles.push({key:Cn.key,name:Cn.key})}}).catch(_n=>{this.tagCompleteFilesLoading=!1}))},onTestClick(){if(this.loading)return;this.translateSuccess=!1,this.errorMessage="",this.translatedText="",this.loading=!0;let _n={};for(const Cn of this.configs)_n[Cn.key]=Cn.value;this.translate(this.testText,"en_US",this.languageCode,this.apiKey,_n).then(Cn=>{Cn.success?(this.translatedText=Cn.translated_text,this.translateSuccess=!0):this.errorMessage=Cn.message,this.loading=!1}).catch(Cn=>{this.errorMessage=Cn.message,this.loading=!1})},translate(_n,Cn,$n,Nn=null,Bn=null){return new Promise(async(Ln,In)=>{Nn=Nn||this.translateApi,Bn=Bn||this.translateApiConfig||{},this.gradioAPI.translate(_n,Cn,$n,Nn,Bn).then(Pn=>{Pn.success?Ln(Pn):In(Pn)}).catch(Pn=>{In(Pn)})})},onSaveClick(){this.isOpen=!1;let _n={};for(const Cn of this.configs)_n[Cn.key]=Cn.value;this.$emit("update:translateApi",this.apiKey),this.$emit("update:tagCompleteFile",this.tagCompleteFileKey),this.$emit("update:onlyCsvOnAuto",this.onlyCsvOnAutoValue),this.$emit("update:groupTagsTranslate",this.groupTagsTranslateValue),this.gradioAPI.setData("translate_api."+this.apiKey,_n).then(Cn=>{this.apiKey===this.translateApi&&this.$emit("forceUpdate:translateApi")})},onCloseClick(){this.isOpen=!1},onTagCompleteTestClick(){this.tagCompleteResults=[],["1girl","Robot dog"].forEach(Cn=>{let $n=this.getLang("translate_result");this.translateToLocalByCSV(Cn,this.tagCompleteFileKey,!0).then(Nn=>{this.tagCompleteResults.push($n.replace("{0}",Cn).replace("{1}",Nn))}).catch(Nn=>{this.$toastr.error(Nn)})})},onMbart50Initialize(){this.mbart50Loading=!0,this.mbart50Success=!1,this.mbart50Message="",this.gradioAPI.mbart50Initialize().then(_n=>{this.mbart50Loading=!1,_n.success?(this.mbart50Success=!0,this.mbart50Message=this.getLang("initialize_finished")):this.mbart50Message=this.getLang("initialize_failed")+": "+_n.message}).catch(_n=>{this.mbart50Loading=!1,this.mbart50Message=_n.message})}}},_hoisted_1$c={class:"setting-line"},_hoisted_2$b={class:"line-title"},_hoisted_3$b={class:"line-content"},_hoisted_4$b=["label"],_hoisted_5$a=["value","disabled"],_hoisted_6$9={key:0,class:"setting-line"},_hoisted_7$8=createBaseVNode("div",{class:"line-title"},null,-1),_hoisted_8$8={class:"line-content"},_hoisted_9$7={class:"common-red"},_hoisted_10$7={key:1,class:"setting-line"},_hoisted_11$7=createBaseVNode("div",{class:"line-title"},null,-1),_hoisted_12$7={class:"line-content"},_hoisted_13$7={class:"help-list"},_hoisted_14$7={class:"help-item"},_hoisted_15$7=["href"],_hoisted_16$6={class:"setting-line"},_hoisted_17$6={class:"line-title"},_hoisted_18$6={class:"line-content"},_hoisted_19$6=["onUpdate:modelValue","onChange"],_hoisted_20$6=["onUpdate:modelValue"],_hoisted_21$6=["value"],_hoisted_22$6=["innerHTML"],_hoisted_23$6={key:2,class:"setting-line"},_hoisted_24$5={class:"line-title"},_hoisted_25$5={class:"line-content"},_hoisted_26$5=["innerHTML"],_hoisted_27$5=["innerHTML"],_hoisted_28$3={key:3,class:"setting-line"},_hoisted_29$2=createBaseVNode("div",{class:"line-title"},null,-1),_hoisted_30$1={class:"line-content"},_hoisted_31$1={class:"setting-line"},_hoisted_32$1={class:"line-title"},_hoisted_33$1={class:"line-content"},_hoisted_34$1={class:"setting-line"},_hoisted_35$1=createBaseVNode("div",{class:"line-title"},null,-1),_hoisted_36$1={class:"line-content"},_hoisted_37$1={class:"setting-line"},_hoisted_38$1=createBaseVNode("div",{class:"line-title"},null,-1),_hoisted_39$1={class:"line-content"},_hoisted_40$1={key:0,class:"translate-error"},_hoisted_41$1={class:"setting-line"},_hoisted_42={class:"line-title"},_hoisted_43={class:"line-content"},_hoisted_44=["innerHTML"],_hoisted_45={class:"onlyCsvOnAuto"},_hoisted_46={class:"setting-line"},_hoisted_47=createBaseVNode("div",{class:"line-title"},"TagComplete",-1),_hoisted_48={class:"line-content"},_hoisted_49={class:"help-list"},_hoisted_50={class:"help-item"},_hoisted_51=["href"],_hoisted_52=["innerHTML"],_hoisted_53=["innerHTML"],_hoisted_54={class:"line-row"},_hoisted_55=["value"],_hoisted_56={class:"setting-line"},_hoisted_57=createBaseVNode("div",{class:"line-title"},null,-1),_hoisted_58={class:"line-content"},_hoisted_59={ref:"tagCompleteResults"},_hoisted_60={class:"setting-btns"};function _sfc_render$c(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("icon-svg"),Pn=resolveDirective("tooltip");return openBlock(),createBlock(Transition,{name:"fadeDown"},{default:withCtx(()=>[Bn.isOpen?(openBlock(),createElementBlock("div",{key:0,class:"physton-prompt-translate-setting",onClick:Cn[16]||(Cn[16]=(...Dn)=>Ln.onCloseClick&&Ln.onCloseClick(...Dn))},[createBaseVNode("div",{class:"translate-setting-main",onClick:Cn[15]||(Cn[15]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",{class:"translate-setting-close",onClick:Cn[0]||(Cn[0]=(...Dn)=>Ln.onCloseClick&&Ln.onCloseClick(...Dn))},[createVNode(In,{name:"close"})]),createBaseVNode("div",{class:"translate-setting-content",onClick:Cn[14]||(Cn[14]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",_hoisted_1$c,[createBaseVNode("div",_hoisted_2$b,toDisplayString(_n.getLang("translate_api")),1),createBaseVNode("div",_hoisted_3$b,[withDirectives(createBaseVNode("select",{"onUpdate:modelValue":Cn[1]||(Cn[1]=Dn=>Bn.apiKey=Dn)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ln.supportApi,Dn=>(openBlock(),createElementBlock("optgroup",{key:Dn.type,label:_n.getLang(Dn.type)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Dn.children,Hn=>(openBlock(),createElementBlock("option",{key:Hn.key,value:Hn.key,disabled:Hn.disabled},toDisplayString(Ln.getItemName(Hn)),9,_hoisted_5$a))),128))],8,_hoisted_4$b))),128))],512),[[vModelSelect,Bn.apiKey]])])]),Ln.apiItem&&Ln.apiItem.type=="translators"?(openBlock(),createElementBlock("div",_hoisted_6$9,[_hoisted_7$8,createBaseVNode("div",_hoisted_8$8,[createBaseVNode("span",_hoisted_9$7,"*"+toDisplayString(_n.getLang("not_api_key_desc")),1)])])):createCommentVNode("",!0),Ln.apiItem.help?(openBlock(),createElementBlock("div",_hoisted_10$7,[_hoisted_11$7,createBaseVNode("div",_hoisted_12$7,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ln.apiItem.help,Dn=>(openBlock(),createElementBlock("div",_hoisted_13$7,[createBaseVNode("div",_hoisted_14$7,[createTextVNode("[?] "),createBaseVNode("a",{href:Dn.url,target:"_blank"},toDisplayString(Dn.title),9,_hoisted_15$7)])]))),256))])])):createCommentVNode("",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.configs,Dn=>(openBlock(),createElementBlock("div",_hoisted_16$6,[createBaseVNode("div",_hoisted_17$6,toDisplayString(Dn.title),1),createBaseVNode("div",_hoisted_18$6,[Dn.type=="input"?withDirectives((openBlock(),createElementBlock("input",{key:0,type:"text","onUpdate:modelValue":Hn=>Dn.value=Hn,onChange:Hn=>Ln.onChangeConfigValue(Dn)},null,40,_hoisted_19$6)),[[vModelText,Dn.value]]):createCommentVNode("",!0),Dn.type=="select"?withDirectives((openBlock(),createElementBlock("select",{key:1,"onUpdate:modelValue":Hn=>Dn.value=Hn},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Dn.options,Hn=>(openBlock(),createElementBlock("option",{value:Hn},toDisplayString(Hn),9,_hoisted_21$6))),256))],8,_hoisted_20$6)),[[vModelSelect,Dn.value]]):createCommentVNode("",!0),Dn.desc?(openBlock(),createElementBlock("div",{key:2,innerHTML:Dn.desc},null,8,_hoisted_22$6)):createCommentVNode("",!0)])]))),256)),Ln.apiItem.key==="mbart50"?(openBlock(),createElementBlock("div",_hoisted_23$6,[createBaseVNode("div",_hoisted_24$5,toDisplayString(_n.getLang("initialize")),1),createBaseVNode("div",_hoisted_25$5,[createBaseVNode("div",{class:"hover-scale-120 test-btn",onClick:Cn[2]||(Cn[2]=(...Dn)=>Ln.onMbart50Initialize&&Ln.onMbart50Initialize(...Dn))},[Bn.mbart50Loading?(openBlock(),createBlock(In,{key:0,name:"loading"})):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(_n.getLang("initialize")),1)],64))]),createBaseVNode("p",{class:"common-red",innerHTML:_n.getLang("download_model_desc")},null,8,_hoisted_26$5),createBaseVNode("p",{class:"common-red",innerHTML:_n.getLang("download_model_desc2")},null,8,_hoisted_27$5)])])):createCommentVNode("",!0),Ln.apiItem.key==="mbart50"&&Bn.mbart50Message?(openBlock(),createElementBlock("div",_hoisted_28$3,[_hoisted_29$2,createBaseVNode("div",_hoisted_30$1,[createBaseVNode("div",{class:normalizeClass([Bn.mbart50Success?"":"common-red"])},toDisplayString(Bn.mbart50Message),3)])])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_31$1,[createBaseVNode("div",_hoisted_32$1,toDisplayString(_n.getLang("translate_test")),1),createBaseVNode("div",_hoisted_33$1,[withDirectives(createBaseVNode("textarea",{class:"test-input","onUpdate:modelValue":Cn[3]||(Cn[3]=Dn=>Bn.testText=Dn)},null,512),[[vModelText,Bn.testText]])])]),createBaseVNode("div",_hoisted_34$1,[_hoisted_35$1,createBaseVNode("div",_hoisted_36$1,[createBaseVNode("div",{class:"hover-scale-120 test-btn",onClick:Cn[4]||(Cn[4]=(...Dn)=>Ln.onTestClick&&Ln.onTestClick(...Dn))},[Bn.loading?(openBlock(),createBlock(In,{key:0,name:"loading"})):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(_n.getLang("test")),1)],64))])])]),createBaseVNode("div",_hoisted_37$1,[_hoisted_38$1,createBaseVNode("div",_hoisted_39$1,[!Bn.translateSuccess&&Bn.errorMessage?(openBlock(),createElementBlock("div",_hoisted_40$1,toDisplayString(Bn.errorMessage),1)):createCommentVNode("",!0),Bn.translatedText?withDirectives((openBlock(),createElementBlock("textarea",{key:1,class:"test-input","onUpdate:modelValue":Cn[5]||(Cn[5]=Dn=>Bn.translatedText=Dn)},null,512)),[[vModelText,Bn.translatedText]]):createCommentVNode("",!0)])]),createBaseVNode("div",_hoisted_41$1,[createBaseVNode("div",_hoisted_42,toDisplayString(_n.getLang("Keyword_group")),1),createBaseVNode("div",_hoisted_43,[createBaseVNode("div",{innerHTML:_n.getLang("enhance_translation_use_Keyword_group_desc")},null,8,_hoisted_44),createBaseVNode("label",_hoisted_45,[withDirectives(createBaseVNode("input",{class:"hover-scale-120",type:"checkbox",value:"1","onUpdate:modelValue":Cn[6]||(Cn[6]=Dn=>Bn.groupTagsTranslateValue=Dn)},null,512),[[vModelCheckbox,Bn.groupTagsTranslateValue]]),createBaseVNode("span",null,toDisplayString(_n.getLang("enhance_translation_use_keyword_group")),1)])])]),createBaseVNode("div",_hoisted_46,[_hoisted_47,createBaseVNode("div",_hoisted_48,[createBaseVNode("div",_hoisted_49,[createBaseVNode("div",_hoisted_50,[createTextVNode("[?] "),createBaseVNode("a",{href:_n.globals.docs+"/TranslationApiConfiguration.html#tagcomplete-translation-enhancement",target:"_blank"},"[Wiki] TagComplete Translation enhancement",8,_hoisted_51)])]),createBaseVNode("div",{innerHTML:_n.getLang("tagcomplete_translate_desc")},null,8,_hoisted_52),createBaseVNode("div",{class:"common-red",innerHTML:_n.getLang("tagcomplete_translate_desc2")},null,8,_hoisted_53),createBaseVNode("div",_hoisted_54,[withDirectives(createBaseVNode("select",{"onUpdate:modelValue":Cn[7]||(Cn[7]=Dn=>Bn.tagCompleteFileKey=Dn),onChange:Cn[8]||(Cn[8]=Dn=>Bn.tagCompleteResults=[])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.tagCompleteFiles,Dn=>(openBlock(),createElementBlock("option",{value:Dn.key},toDisplayString(Dn.name),9,_hoisted_55))),256))],544),[[vModelSelect,Bn.tagCompleteFileKey]]),withDirectives((openBlock(),createElementBlock("div",{class:"refresh-btn hover-scale-120",onClick:Cn[9]||(Cn[9]=(...Dn)=>Ln.refreshCSVs&&Ln.refreshCSVs(...Dn))},[Bn.tagCompleteFilesLoading?(openBlock(),createBlock(In,{key:0,name:"loading"})):(openBlock(),createBlock(In,{key:1,name:"refresh"}))])),[[Pn,_n.getLang("refresh")]])]),createBaseVNode("label",{class:"onlyCsvOnAuto",style:normalizeStyle({display:Bn.tagCompleteFileKey?"flex":"none"})},[withDirectives(createBaseVNode("input",{class:"hover-scale-120",type:"checkbox",value:"1","onUpdate:modelValue":Cn[10]||(Cn[10]=Dn=>Bn.onlyCsvOnAutoValue=Dn)},null,512),[[vModelCheckbox,Bn.onlyCsvOnAutoValue]]),createBaseVNode("span",null,toDisplayString(_n.getLang("only_csv_on_auto")),1)],4)])]),withDirectives(createBaseVNode("div",_hoisted_56,[_hoisted_57,createBaseVNode("div",_hoisted_58,[createBaseVNode("div",{class:"hover-scale-120 test-btn",onClick:Cn[11]||(Cn[11]=(...Dn)=>Ln.onTagCompleteTestClick&&Ln.onTagCompleteTestClick(...Dn))},toDisplayString(_n.getLang("test")),1),withDirectives(createBaseVNode("div",_hoisted_59,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.tagCompleteResults,Dn=>(openBlock(),createElementBlock("p",{key:Dn},toDisplayString(Dn),1))),128))],512),[[vShow,Bn.tagCompleteResults.length>0]])])],512),[[vShow,Bn.tagCompleteFileKey]]),createBaseVNode("div",_hoisted_60,[createBaseVNode("div",{class:"translate-save hover-scale-120",onClick:Cn[12]||(Cn[12]=(...Dn)=>Ln.onSaveClick&&Ln.onSaveClick(...Dn))},toDisplayString(_n.getLang("save")),1),createBaseVNode("div",{class:"translate-close hover-scale-120",onClick:Cn[13]||(Cn[13]=(...Dn)=>Ln.onCloseClick&&Ln.onCloseClick(...Dn))},toDisplayString(_n.getLang("close")),1)])])])])):createCommentVNode("",!0)]),_:1})}const TranslateSetting=_export_sfc(_sfc_main$c,[["render",_sfc_render$c]]),_sfc_main$b={name:"SelectLanguage",components:{IconSvg},mixins:[LanguageMixin],props:{},data(){return{isOpen:!1}},computed:{},mounted(){},methods:{open(){this.isOpen=!0,this.$nextTick(()=>{this.scrollToSelectedItem()})},close(){this.isOpen=!1},onLanguageClick(_n){this.$emit("update:languageCode",_n.code),this.close()},scrollToSelectedItem(){const _n=this.$refs.items;for(let Cn=0;Cn<_n.length;Cn++)if(_n[Cn].classList.contains("selected")){_n[Cn].scrollIntoView({behavior:"smooth",block:"center"});break}}}},_hoisted_1$b=["onClick"];function _sfc_render$b(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("icon-svg");return openBlock(),createBlock(Transition,{name:"fadeDown"},{default:withCtx(()=>[Bn.isOpen?(openBlock(),createElementBlock("div",{key:0,class:"physton-prompt-select-language",onClick:Cn[3]||(Cn[3]=(...Pn)=>Ln.close&&Ln.close(...Pn))},[createBaseVNode("div",{class:"language-main",onClick:Cn[2]||(Cn[2]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",{class:"language-close",onClick:Cn[0]||(Cn[0]=(...Pn)=>Ln.close&&Ln.close(...Pn))},[createVNode(In,{name:"close"})]),createBaseVNode("div",{class:"language-list",onClick:Cn[1]||(Cn[1]=withModifiers(()=>{},["stop"]))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(_n.languages,Pn=>(openBlock(),createElementBlock("div",{key:Pn.code,class:normalizeClass(["language-item",Pn.code==_n.languageCode?"selected":""]),ref_for:!0,ref:"items",onClick:Dn=>Ln.onLanguageClick(Pn)},toDisplayString(Pn.code)+" - "+toDisplayString(Pn.name),11,_hoisted_1$b))),128))])])])):createCommentVNode("",!0)]),_:1})}const SelectLanguage=_export_sfc(_sfc_main$b,[["render",_sfc_render$b]]),_sfc_main$a={components:{IconSvg},props:{},mixins:[LanguageMixin],data(){return{favoriteKey:"",favorites:[{name:"txt2img",type:"prompt",key:"txt2img",list:[]},{name:"txt2img",type:"negative_prompt",key:"txt2img_neg",list:[]},{name:"img2img",type:"prompt",key:"img2img",list:[]},{name:"img2img",type:"negative_prompt",key:"img2img_neg",list:[]}],isShow:!1,loading:!1,emptyMsg:"",mouseEnter:!1,currentItem:{}}},emits:["use"],mounted(){this.favorites.forEach(_n=>{this.getFavorites(_n.key)})},methods:{formatTime(_n){return common$1.formatTime(_n*1e3,!1)},getFavorites(_n){if(!_n)return;let Cn=this.favorites.find($n=>$n.key===_n);Cn&&(this.loading=!0,this.gradioAPI.getFavorites(_n).then($n=>{$n&&$n.length>0&&($n.reverse(),$n.forEach(Nn=>{Nn.is_favorite=!0}),Cn.list=$n),window.phystonPromptfavorites=this.favorites,this.emptyMsg=this.getLang("no_favorite"),this.loading=!1}).catch($n=>{this.emptyMsg=this.getLang("get_favorite_error"),this.loading=!1}))},show(_n,Cn){if(!(!_n||!Cn)){if(this.favoriteKey=_n,this.isShow){this.isShow=!1;return}this.mouseEnter=!1,this.loading=!0,this.isShow=!0,this.$refs.favorite.style.top=Cn.pageY+2+"px",this.$refs.favorite.style.left=Cn.pageX+2+"px",this.getFavorites(this.favoriteKey),this.$nextTick(()=>{let $n=this.$refs.favorite.getBoundingClientRect();$n.right>window.innerWidth&&(this.$refs.favorite.style.left=window.innerWidth-$n.width-2+"px")}),setTimeout(()=>{this.mouseEnter||this.hide()},3e3)}},hide(){this.mouseEnter=!1,this.isShow=!1},onMouseEnter(){this.mouseEnter=!0},onMouseLeave(_n){_n.relatedTarget&&this.hide()},onTabClick(_n){this.favoriteKey=_n,this.getFavorites(this.favoriteKey)},onFavoriteClick(_n){let Cn=this.favorites.find(Nn=>Nn.key===this.favoriteKey);if(!Cn)return;let $n=Cn.list[_n];$n.is_favorite?this.gradioAPI.unFavorite(this.favoriteKey,$n.id).then(Nn=>{Nn&&($n.is_favorite=!1,window.phystonPromptfavorites=this.favorites)}):this.gradioAPI.doFavorite(this.favoriteKey,$n.id).then(Nn=>{Nn&&($n.is_favorite=!0,window.phystonPromptfavorites=this.favorites)})},onCopyClick(_n){let Cn=this.favorites.find(Nn=>Nn.key===this.favoriteKey);if(!Cn)return;let $n=Cn.list[_n];this.$copyText($n.prompt).then(()=>{this.$toastr.success("success!")}).catch(()=>{this.$toastr.error("error!")})},onNameKeyDown(_n,Cn){Cn.keyCode===13&&Cn.target.blur()},onNameChange(_n,Cn){let $n=this.favorites.find(Ln=>Ln.key===this.favoriteKey);if(!$n)return;let Nn=$n.list[_n];const Bn=Cn.target.value;this.gradioAPI.setFavoriteName(this.favoriteKey,Nn.id,Bn).then(Ln=>{Ln?(Nn.name=Bn,window.phystonPromptfavorites=this.favorites):Cn.target.value=Nn.name}).catch(Ln=>{Cn.target.value=Nn.name})},onItemMouseEnter(_n){let Cn=this.favorites.find($n=>$n.key===this.favoriteKey);Cn&&(this.currentItem=Cn.list[_n],this.$nextTick(()=>{let $n=this.$refs.favoriteDetail.getBoundingClientRect();$n.right>window.innerWidth&&(this.$refs.favoriteDetail.style.left=0-$n.width-2+"px")}))},onItemMouseLeave(_n){this.currentItem={}},onUseClick(_n){let Cn=this.favorites.find($n=>$n.key===this.favoriteKey);Cn&&(this.hide(),this.$emit("use",Cn.list[_n]))},onMoveUpClick(_n){let Cn=this.favorites.find(Nn=>Nn.key===this.favoriteKey);if(!Cn)return;let $n=Cn.list[_n];_n!==0&&this.gradioAPI.moveDownFavorite(this.favoriteKey,$n.id).then(Nn=>{Nn&&(Cn.list.splice(_n,1),Cn.list.splice(_n-1,0,$n),window.phystonPromptfavorites=this.favorites)})},onMoveDownClick(_n){let Cn=this.favorites.find(Nn=>Nn.key===this.favoriteKey);if(!Cn)return;let $n=Cn.list[_n];_n!==Cn.list.length-1&&this.gradioAPI.moveUpFavorite(this.favoriteKey,$n.id).then(Nn=>{Nn&&(Cn.list.splice(_n,1),Cn.list.splice(_n+1,0,$n),window.phystonPromptfavorites=this.favorites)})}}},_hoisted_1$a={class:"popup-tabs"},_hoisted_2$a=["onClick"],_hoisted_3$a={class:"tab-name"},_hoisted_4$a={class:"tab-type"},_hoisted_5$9={class:"tab-count"},_hoisted_6$8={class:"popup-detail",ref:"favoriteDetail"},_hoisted_7$7={class:"popup-item-tags"},_hoisted_8$7={key:0,class:"item-wrap"},_hoisted_9$6={key:1,class:"item-tag"},_hoisted_10$6={class:"item-tag-value"},_hoisted_11$6={class:"item-tag-local-value"},_hoisted_12$6={class:"content-list"},_hoisted_13$6=["onMouseenter","onMouseleave"],_hoisted_14$6={class:"item-header"},_hoisted_15$6={class:"item-header-left"},_hoisted_16$5={class:"item-header-index"},_hoisted_17$5={class:"item-header-time"},_hoisted_18$5={class:"item-header-name"},_hoisted_19$5=["value","onKeydown","onChange","placeholder"],_hoisted_20$5={class:"item-header-right"},_hoisted_21$5=["onClick"],_hoisted_22$5=["onClick"],_hoisted_23$5=["onClick"],_hoisted_24$4=["onClick"],_hoisted_25$4=["onClick"],_hoisted_26$4=["onClick"],_hoisted_27$4={class:"item-prompt"},_hoisted_28$2={class:"content-empty"},_hoisted_29$1={key:1};function _sfc_render$a(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("icon-svg"),Pn=resolveDirective("tooltip");return openBlock(),createBlock(Transition,{name:"fade"},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{class:"physton-prompt-favorite",ref:"favorite",onMouseenter:Cn[0]||(Cn[0]=(...Dn)=>Ln.onMouseEnter&&Ln.onMouseEnter(...Dn)),onMouseleave:Cn[1]||(Cn[1]=(...Dn)=>Ln.onMouseLeave&&Ln.onMouseLeave(...Dn)),onClick:Cn[2]||(Cn[2]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",_hoisted_1$a,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.favorites,Dn=>(openBlock(),createElementBlock("div",{key:Dn.key,class:normalizeClass(["popup-tab",Dn.key===Bn.favoriteKey?"active":""]),onClick:Hn=>Ln.onTabClick(Dn.key)},[createBaseVNode("div",_hoisted_3$a,toDisplayString(_n.getLang(Dn.name)),1),createBaseVNode("div",_hoisted_4$a,toDisplayString(_n.getLang(Dn.type)),1),createBaseVNode("div",_hoisted_5$9,toDisplayString(Dn.list.length),1)],10,_hoisted_2$a))),128))]),withDirectives(createBaseVNode("div",_hoisted_6$8,[createBaseVNode("div",_hoisted_7$7,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.currentItem.tags,(Dn,Hn)=>(openBlock(),createElementBlock(Fragment,{key:Hn},[Dn.type&&Dn.type==="wrap"?(openBlock(),createElementBlock("div",_hoisted_8$7)):(openBlock(),createElementBlock("div",_hoisted_9$6,[createBaseVNode("div",_hoisted_10$6,toDisplayString(Dn.value),1),createBaseVNode("div",_hoisted_11$6,toDisplayString(Dn.localValue),1)]))],64))),128))])],512),[[vShow,Bn.currentItem&&Bn.currentItem.tags]]),(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.favorites,Dn=>(openBlock(),createElementBlock("div",{key:Dn.key,class:normalizeClass(["popup-tab-content",Dn.key===Bn.favoriteKey?"active":""])},[withDirectives(createBaseVNode("div",_hoisted_12$6,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Dn.list,(Hn,Wn)=>(openBlock(),createElementBlock("div",{class:"content-item",key:Hn.id,onMouseenter:Xn=>Ln.onItemMouseEnter(Wn),onMouseleave:Xn=>Ln.onItemMouseLeave(Wn)},[createBaseVNode("div",_hoisted_14$6,[createBaseVNode("div",_hoisted_15$6,[createBaseVNode("div",_hoisted_16$5,toDisplayString(Dn.list.length-Wn),1),createBaseVNode("div",_hoisted_17$5,toDisplayString(Ln.formatTime(Hn.time)),1),createBaseVNode("div",_hoisted_18$5,[createBaseVNode("input",{class:"header-name-input",value:Hn.name,onKeydown:Xn=>Ln.onNameKeyDown(Wn,Xn),onChange:Xn=>Ln.onNameChange(Wn,Xn),placeholder:_n.getLang("unset_name")},null,40,_hoisted_19$5)])]),createBaseVNode("div",_hoisted_20$5,[withDirectives((openBlock(),createElementBlock("div",{class:"header-btn-favorite hover-scale-140",onClick:Xn=>Ln.onFavoriteClick(Wn)},[createVNode(In,{name:"favorite-yes"})],8,_hoisted_21$5)),[[vShow,Hn.is_favorite],[Pn,_n.getLang("remove_from_favorite")]]),withDirectives((openBlock(),createElementBlock("div",{class:"header-btn-favorite hover-scale-140",onClick:Xn=>Ln.onFavoriteClick(Wn)},[createVNode(In,{name:"favorite-no"})],8,_hoisted_22$5)),[[vShow,!Hn.is_favorite],[Pn,_n.getLang("add_to_favorite")]]),withDirectives((openBlock(),createElementBlock("div",{class:"header-btn-copy hover-scale-140",onClick:Xn=>Ln.onCopyClick(Wn)},[createVNode(In,{name:"copy"})],8,_hoisted_23$5)),[[Pn,_n.getLang("copy_to_clipboard")]]),withDirectives((openBlock(),createElementBlock("div",{class:"header-btn-use hover-scale-140",onClick:Xn=>Ln.onUseClick(Wn)},[createVNode(In,{name:"use"})],8,_hoisted_24$4)),[[Pn,_n.getLang("use")]]),withDirectives((openBlock(),createElementBlock("div",{class:"header-btn-move-up hover-scale-140",onClick:Xn=>Ln.onMoveUpClick(Wn)},[createVNode(In,{name:"move-up"})],8,_hoisted_25$4)),[[Pn,_n.getLang("move_up")]]),withDirectives((openBlock(),createElementBlock("div",{class:"header-btn-move-down hover-scale-140",onClick:Xn=>Ln.onMoveDownClick(Wn)},[createVNode(In,{name:"move-down"})],8,_hoisted_26$4)),[[Pn,_n.getLang("move_down")]])])]),createBaseVNode("div",_hoisted_27$4,toDisplayString(Hn.prompt),1)],40,_hoisted_13$6))),128))],512),[[vShow,Dn.list.length>0]]),withDirectives(createBaseVNode("div",_hoisted_28$2,[Bn.loading?(openBlock(),createBlock(In,{key:0,name:"loading"})):(openBlock(),createElementBlock("span",_hoisted_29$1,toDisplayString(Bn.emptyMsg),1))],512),[[vShow,Dn.list.length===0]])],2))),128))],544),[[vShow,Bn.isShow]])]),_:1})}const Favorite=_export_sfc(_sfc_main$a,[["render",_sfc_render$a]]),_sfc_main$9={components:{IconSvg},props:{},mixins:[LanguageMixin],data(){return{historyKey:"",histories:[{name:"txt2img",type:"prompt",key:"txt2img",list:[]},{name:"txt2img",type:"negative_prompt",key:"txt2img_neg",list:[]},{name:"img2img",type:"prompt",key:"img2img",list:[]},{name:"img2img",type:"negative_prompt",key:"img2img_neg",list:[]}],isShow:!1,loading:!1,emptyMsg:"",mouseEnter:!1,currentItem:{}}},emits:["use","refreshFavorites"],mounted(){},methods:{formatTime(_n){return common$1.formatTime(_n*1e3,!1)},getHistories(_n){if(!_n)return;let Cn=this.histories.find($n=>$n.key===_n);Cn&&(this.loading=!0,this.gradioAPI.getHistories(_n).then($n=>{$n&&$n.length>0&&($n.reverse(),Cn.list=$n),this.emptyMsg=this.getLang("no_history"),this.loading=!1}).catch($n=>{this.emptyMsg=this.getLang("get_history_error"),this.loading=!1}))},show(_n,Cn){if(!(!_n||!Cn)){if(this.historyKey=_n,this.isShow){this.isShow=!1;return}this.mouseEnter=!1,this.loading=!0,this.isShow=!0,this.$refs.history.style.top=Cn.pageY+2+"px",this.$refs.history.style.left=Cn.pageX+2+"px",this.getHistories(this.historyKey),this.$nextTick(()=>{let $n=this.$refs.history.getBoundingClientRect();$n.right>window.innerWidth&&(this.$refs.history.style.left=window.innerWidth-$n.width-2+"px")}),setTimeout(()=>{this.mouseEnter||this.hide()},3e3)}},hide(){this.mouseEnter=!1,this.isShow=!1},onMouseEnter(){this.mouseEnter=!0},onMouseLeave(_n){_n.relatedTarget&&this.hide()},onTabClick(_n){this.historyKey=_n,this.getHistories(this.historyKey)},onDeleteClick(_n){let Cn=this.histories.find(Nn=>Nn.key===this.historyKey);if(!Cn)return;let $n=Cn.list[_n];this.gradioAPI.deleteHistory(this.historyKey,$n.id).then(Nn=>{Nn&&Cn.list.splice(_n,1)})},onFavoriteClick(_n){let Cn=this.histories.find(Nn=>Nn.key===this.historyKey);if(!Cn)return;let $n=Cn.list[_n];$n.is_favorite?this.gradioAPI.unFavorite(this.historyKey,$n.id).then(Nn=>{Nn&&($n.is_favorite=!1,this.$emit("refreshFavorites",this.historyKey))}):this.gradioAPI.doFavorite(this.historyKey,$n.id).then(Nn=>{Nn&&($n.is_favorite=!0,this.$emit("refreshFavorites",this.historyKey))})},onCopyClick(_n){let Cn=this.histories.find(Nn=>Nn.key===this.historyKey);if(!Cn)return;let $n=Cn.list[_n];this.$copyText($n.prompt).then(()=>{this.$toastr.success("success!")}).catch(()=>{this.$toastr.error("error!")})},onNameKeyDown(_n,Cn){Cn.keyCode===13&&Cn.target.blur()},onNameChange(_n,Cn){let $n=this.histories.find(Ln=>Ln.key===this.historyKey);if(!$n)return;let Nn=$n.list[_n];const Bn=Cn.target.value;this.gradioAPI.setHistoryName(this.historyKey,Nn.id,Bn).then(Ln=>{Ln?(Nn.name=Bn,this.$emit("refreshFavorites",this.historyKey)):Cn.target.value=Nn.name}).catch(Ln=>{Cn.target.value=Nn.name})},onItemMouseEnter(_n){let Cn=this.histories.find($n=>$n.key===this.historyKey);Cn&&(this.currentItem=Cn.list[_n],this.$nextTick(()=>{let $n=this.$refs.historyDetail.getBoundingClientRect();$n.right>window.innerWidth&&(this.$refs.historyDetail.style.left=0-$n.width-2+"px")}))},onItemMouseLeave(_n){this.currentItem={}},onUseClick(_n){let Cn=this.histories.find($n=>$n.key===this.historyKey);Cn&&(this.hide(),this.$emit("use",Cn.list[_n]))},onDeleteAllHistoryClick(){let _n=this.histories.find(Cn=>Cn.key===this.historyKey);_n&&confirm(this.getLang("delete_all_history_confirm"))&&this.gradioAPI.deleteHistories(this.historyKey).then(Cn=>{_n.list=[]}).catch(Cn=>{})}}},_hoisted_1$9={class:"popup-tabs"},_hoisted_2$9=["onClick"],_hoisted_3$9={class:"tab-name"},_hoisted_4$9={class:"tab-type"},_hoisted_5$8={class:"tab-count"},_hoisted_6$7={class:"popup-detail",ref:"historyDetail"},_hoisted_7$6={class:"popup-item-tags"},_hoisted_8$6={key:0,class:"item-wrap"},_hoisted_9$5={key:1,class:"item-tag"},_hoisted_10$5={class:"item-tag-value"},_hoisted_11$5={class:"item-tag-local-value"},_hoisted_12$5={class:"content-list"},_hoisted_13$5=["onMouseenter","onMouseleave"],_hoisted_14$5={class:"item-header"},_hoisted_15$5={class:"item-header-left"},_hoisted_16$4={class:"item-header-index"},_hoisted_17$4={class:"item-header-time"},_hoisted_18$4={class:"item-header-name"},_hoisted_19$4=["value","onKeydown","onChange","placeholder"],_hoisted_20$4={class:"item-header-right"},_hoisted_21$4=["onClick"],_hoisted_22$4=["onClick"],_hoisted_23$4=["onClick"],_hoisted_24$3=["onClick"],_hoisted_25$3=["onClick"],_hoisted_26$3={class:"item-prompt"},_hoisted_27$3={class:"content-empty"},_hoisted_28$1={key:1};function _sfc_render$9(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("icon-svg"),Pn=resolveDirective("tooltip");return openBlock(),createBlock(Transition,{name:"fade"},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{class:"physton-prompt-history",ref:"history",onMouseenter:Cn[1]||(Cn[1]=(...Dn)=>Ln.onMouseEnter&&Ln.onMouseEnter(...Dn)),onMouseleave:Cn[2]||(Cn[2]=(...Dn)=>Ln.onMouseLeave&&Ln.onMouseLeave(...Dn)),onClick:Cn[3]||(Cn[3]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",_hoisted_1$9,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.histories,Dn=>(openBlock(),createElementBlock("div",{key:Dn.key,class:normalizeClass(["popup-tab",Dn.key===Bn.historyKey?"active":""]),onClick:Hn=>Ln.onTabClick(Dn.key)},[createBaseVNode("div",_hoisted_3$9,toDisplayString(_n.getLang(Dn.name)),1),createBaseVNode("div",_hoisted_4$9,toDisplayString(_n.getLang(Dn.type)),1),createBaseVNode("div",_hoisted_5$8,toDisplayString(Dn.list.length),1)],10,_hoisted_2$9))),128))]),withDirectives(createBaseVNode("div",_hoisted_6$7,[createBaseVNode("div",_hoisted_7$6,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.currentItem.tags,(Dn,Hn)=>(openBlock(),createElementBlock(Fragment,{key:Hn},[Dn.type&&Dn.type==="wrap"?(openBlock(),createElementBlock("div",_hoisted_8$6)):(openBlock(),createElementBlock("div",_hoisted_9$5,[createBaseVNode("div",_hoisted_10$5,toDisplayString(Dn.value),1),createBaseVNode("div",_hoisted_11$5,toDisplayString(Dn.localValue),1)]))],64))),128))])],512),[[vShow,Bn.currentItem&&Bn.currentItem.tags]]),(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.histories,Dn=>(openBlock(),createElementBlock("div",{key:Dn.key,class:normalizeClass(["popup-tab-content",Dn.key===Bn.historyKey?"active":""])},[withDirectives(createBaseVNode("div",_hoisted_12$5,[createBaseVNode("div",{class:"clear-btn",onClick:Cn[0]||(Cn[0]=(...Hn)=>Ln.onDeleteAllHistoryClick&&Ln.onDeleteAllHistoryClick(...Hn))},[createVNode(In,{name:"remove"}),createTextVNode(" "+toDisplayString(_n.getLang("delete_all_history")),1)]),(openBlock(!0),createElementBlock(Fragment,null,renderList(Dn.list,(Hn,Wn)=>(openBlock(),createElementBlock("div",{class:"content-item",key:Hn.id,onMouseenter:Xn=>Ln.onItemMouseEnter(Wn),onMouseleave:Xn=>Ln.onItemMouseLeave(Wn)},[createBaseVNode("div",_hoisted_14$5,[createBaseVNode("div",_hoisted_15$5,[createBaseVNode("div",_hoisted_16$4,toDisplayString(Dn.list.length-Wn),1),createBaseVNode("div",_hoisted_17$4,toDisplayString(Ln.formatTime(Hn.time)),1),createBaseVNode("div",_hoisted_18$4,[createBaseVNode("input",{class:"header-name-input",value:Hn.name,onKeydown:Xn=>Ln.onNameKeyDown(Wn,Xn),onChange:Xn=>Ln.onNameChange(Wn,Xn),placeholder:_n.getLang("unset_name")},null,40,_hoisted_19$4)])]),createBaseVNode("div",_hoisted_20$4,[createBaseVNode("div",{class:"header-btn-favorite hover-scale-140",onClick:Xn=>Ln.onDeleteClick(Wn)},[createVNode(In,{name:"remove"})],8,_hoisted_21$4),withDirectives((openBlock(),createElementBlock("div",{class:"header-btn-favorite hover-scale-140",onClick:Xn=>Ln.onFavoriteClick(Wn)},[createVNode(In,{name:"favorite-yes"})],8,_hoisted_22$4)),[[vShow,Hn.is_favorite],[Pn,_n.getLang("remove_from_favorite")]]),withDirectives((openBlock(),createElementBlock("div",{class:"header-btn-favorite hover-scale-140",onClick:Xn=>Ln.onFavoriteClick(Wn)},[createVNode(In,{name:"favorite-no"})],8,_hoisted_23$4)),[[vShow,!Hn.is_favorite],[Pn,_n.getLang("add_to_favorite")]]),withDirectives((openBlock(),createElementBlock("div",{class:"header-btn-copy hover-scale-140",onClick:Xn=>Ln.onCopyClick(Wn)},[createVNode(In,{name:"copy"})],8,_hoisted_24$3)),[[Pn,_n.getLang("copy_to_clipboard")]]),withDirectives((openBlock(),createElementBlock("div",{class:"header-btn-use hover-scale-140",onClick:Xn=>Ln.onUseClick(Wn)},[createVNode(In,{name:"use"})],8,_hoisted_25$3)),[[Pn,_n.getLang("use")]])])]),createBaseVNode("div",_hoisted_26$3,toDisplayString(Hn.prompt),1)],40,_hoisted_13$5))),128))],512),[[vShow,Dn.list.length>0]]),withDirectives(createBaseVNode("div",_hoisted_27$3,[Bn.loading?(openBlock(),createBlock(In,{key:0,name:"loading"})):(openBlock(),createElementBlock("span",_hoisted_28$1,toDisplayString(Bn.emptyMsg),1))],512),[[vShow,Dn.list.length===0]])],2))),128))],544),[[vShow,Bn.isShow]])]),_:1})}const History=_export_sfc(_sfc_main$9,[["render",_sfc_render$9]]),_sfc_main$8={name:"ExtensionCss",components:{IconSvg},mixins:[LanguageMixin],props:{},data(){return{isOpen:!1,list:[]}},computed:{},mounted(){},methods:{init(){this.refresh(!0)},refresh(_n=!1){this.gradioAPI.getExtensionCssList().then(Cn=>{let $n=[];for(let Nn=0;Nn<Cn.length;Nn++)Cn[Nn].manifest=JSON.parse(Cn[Nn].manifest),Cn[Nn].manifest&&typeof Cn[Nn].manifest=="object"&&Cn[Nn].manifest.name&&(Cn[Nn].selected=Cn[Nn].selected||!1,Cn[Nn].id="physton-prompt-extension-"+Cn[Nn].dir,$n.push(Cn[Nn]));$n.forEach(Nn=>{Nn.sort=Nn.manifest.type+"."+Nn.dir}),$n.sort((Nn,Bn)=>Nn.sort>Bn.sort?1:-1),this.list=$n,_n&&this.list.forEach(Nn=>{Nn.selected&&common$1.loadCSS(Nn.style,Nn.id,!0,!1)})})},getName(_n){if(!_n)return"";let Cn=_n.manifest.name;return _n.manifest.i18n&&_n.manifest.i18n[this.languageCode]&&(Cn=_n.manifest.i18n[this.languageCode]),Cn},onChangeSelect(_n){let Cn=this.list.find($n=>$n.id===_n);Cn&&(Cn.selected=!Cn.selected,Cn.selected?common$1.loadCSS(Cn.style,Cn.id,!0,!1):common$1.removeCSS(Cn.id),this.gradioAPI.setData(Cn.dataName,Cn.selected))},open(){this.isOpen=!0,this.refresh(!1)},close(){this.isOpen=!1}}},_hoisted_1$8={class:"extension-table"},_hoisted_2$8=["checked","onChange"],_hoisted_3$8={class:"extension-name"},_hoisted_4$8={class:"extension-type"},_hoisted_5$7={class:"extension-dir"},_hoisted_6$6={class:"extension-author"};function _sfc_render$8(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("icon-svg");return openBlock(),createBlock(Transition,{name:"slideRight"},{default:withCtx(()=>[Bn.isOpen?(openBlock(),createElementBlock("div",{key:0,class:"physton-prompt-extension-css",onClick:Cn[3]||(Cn[3]=(...Pn)=>Ln.close&&Ln.close(...Pn))},[createBaseVNode("div",{class:"extension-main",onClick:Cn[2]||(Cn[2]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",{class:"extension-close",onClick:Cn[0]||(Cn[0]=(...Pn)=>Ln.close&&Ln.close(...Pn))},[createVNode(In,{name:"close"})]),createBaseVNode("div",{class:"extension-list",onClick:Cn[1]||(Cn[1]=withModifiers(()=>{},["stop"]))},[createBaseVNode("table",_hoisted_1$8,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.list,(Pn,Dn)=>(openBlock(),createElementBlock("tr",{key:Pn.dir,class:"extension-item",ref_for:!0,ref:"items"},[createBaseVNode("td",null,[createBaseVNode("input",{class:"extension-checkbox",type:"checkbox",name:"extension-item",checked:Pn.selected,onChange:Hn=>Ln.onChangeSelect(Pn.id)},null,40,_hoisted_2$8)]),createBaseVNode("td",_hoisted_3$8,toDisplayString(Ln.getName(Pn)),1),createBaseVNode("td",_hoisted_4$8,toDisplayString(_n.getLang(Pn.manifest.type)),1),createBaseVNode("td",_hoisted_5$7,toDisplayString(Pn.dir),1),createBaseVNode("td",_hoisted_6$6,[Pn.manifest.author?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode("By: "+toDisplayString(Pn.manifest.author),1)],64)):createCommentVNode("",!0)])]))),128))])])])])):createCommentVNode("",!0)]),_:1})}const ExtensionCss=_export_sfc(_sfc_main$8,[["render",_sfc_render$8]]),_sfc_main$7={name:"PromptFormat",components:{IconSvg},mixins:[LanguageMixin],props:{autoRemoveSpace:{type:Boolean,default:!1},autoRemoveLastComma:{type:Boolean,default:!1},autoKeepWeightZero:{type:Boolean,default:!1},autoKeepWeightOne:{type:Boolean,default:!1},autoBreakBeforeWrap:{type:Boolean,default:!1},autoBreakAfterWrap:{type:Boolean,default:!1},autoRemoveLoraBeforeComma:{type:Boolean,default:!1},autoRemoveLoraAfterComma:{type:Boolean,default:!1},useNovelAiWeightSymbol:{type:Boolean,default:!1},autoRemoveBeforeLineComma:{type:Boolean,default:!1}},data(){return{isOpen:!1}},emits:["update:autoRemoveSpace","update:autoRemoveLastComma","update:autoKeepWeightZero","update:autoKeepWeightOne","update:autoBreakBeforeWrap","update:autoBreakAfterWrap","update:autoRemoveLoraBeforeComma","update:autoRemoveLoraAfterComma","update:useNovelAiWeightSymbol","update:autoRemoveBeforeLineComma"],computed:{},mounted(){},methods:{open(){this.isOpen=!0},close(){this.isOpen=!1}}},_hoisted_1$7={class:"format-item"},_hoisted_2$7=["checked"],_hoisted_3$7=["innerHTML"],_hoisted_4$7={class:"format-item"},_hoisted_5$6=["checked"],_hoisted_6$5=["innerHTML"],_hoisted_7$5={class:"format-item"},_hoisted_8$5=["checked"],_hoisted_9$4=["innerHTML"],_hoisted_10$4={class:"format-item"},_hoisted_11$4=["checked"],_hoisted_12$4=["innerHTML"],_hoisted_13$4={class:"format-item"},_hoisted_14$4=["checked"],_hoisted_15$4=["innerHTML"],_hoisted_16$3={class:"format-item"},_hoisted_17$3=["checked"],_hoisted_18$3=["innerHTML"],_hoisted_19$3={class:"format-item"},_hoisted_20$3=["checked"],_hoisted_21$3=["innerHTML"],_hoisted_22$3={class:"format-item"},_hoisted_23$3=["checked"],_hoisted_24$2=["innerHTML"],_hoisted_25$2={class:"format-item"},_hoisted_26$2=["checked"],_hoisted_27$2=["innerHTML"];function _sfc_render$7(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("icon-svg");return openBlock(),createBlock(Transition,{name:"fadeDown"},{default:withCtx(()=>[Bn.isOpen?(openBlock(),createElementBlock("div",{key:0,class:"physton-prompt-format",onClick:Cn[12]||(Cn[12]=(...Pn)=>Ln.close&&Ln.close(...Pn))},[createBaseVNode("div",{class:"format-main",onClick:Cn[11]||(Cn[11]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",{class:"format-close",onClick:Cn[0]||(Cn[0]=(...Pn)=>Ln.close&&Ln.close(...Pn))},[createVNode(In,{name:"close"})]),createBaseVNode("div",{class:"format-list",onClick:Cn[10]||(Cn[10]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",_hoisted_1$7,[createBaseVNode("input",{class:"format-checkbox",type:"checkbox",checked:$n.autoRemoveSpace,onChange:Cn[1]||(Cn[1]=Pn=>_n.$emit("update:autoRemoveSpace",Pn.target.checked))},null,40,_hoisted_2$7),createBaseVNode("div",{class:"format-desc",innerHTML:_n.getLang("is_remove_space")},null,8,_hoisted_3$7)]),createBaseVNode("div",_hoisted_4$7,[createBaseVNode("input",{class:"format-checkbox",type:"checkbox",checked:$n.autoRemoveLastComma,onChange:Cn[2]||(Cn[2]=Pn=>_n.$emit("update:autoRemoveLastComma",Pn.target.checked))},null,40,_hoisted_5$6),createBaseVNode("div",{class:"format-desc",innerHTML:_n.getLang("is_remove_last_comma")},null,8,_hoisted_6$5)]),createBaseVNode("div",_hoisted_7$5,[createBaseVNode("input",{class:"format-checkbox",type:"checkbox",checked:$n.autoKeepWeightZero,onChange:Cn[3]||(Cn[3]=Pn=>_n.$emit("update:autoKeepWeightZero",Pn.target.checked))},null,40,_hoisted_8$5),createBaseVNode("div",{class:"format-desc",innerHTML:_n.getLang("is_keep_weight_zero")},null,8,_hoisted_9$4)]),createBaseVNode("div",_hoisted_10$4,[createBaseVNode("input",{class:"format-checkbox",type:"checkbox",checked:$n.autoBreakBeforeWrap,onChange:Cn[4]||(Cn[4]=Pn=>_n.$emit("update:autoBreakBeforeWrap",Pn.target.checked))},null,40,_hoisted_11$4),createBaseVNode("div",{class:"format-desc",innerHTML:_n.getLang("is_break_before_wrap")},null,8,_hoisted_12$4)]),createBaseVNode("div",_hoisted_13$4,[createBaseVNode("input",{class:"format-checkbox",type:"checkbox",checked:$n.autoBreakAfterWrap,onChange:Cn[5]||(Cn[5]=Pn=>_n.$emit("update:autoBreakAfterWrap",Pn.target.checked))},null,40,_hoisted_14$4),createBaseVNode("div",{class:"format-desc",innerHTML:_n.getLang("is_break_after_wrap")},null,8,_hoisted_15$4)]),createBaseVNode("div",_hoisted_16$3,[createBaseVNode("input",{class:"format-checkbox",type:"checkbox",checked:$n.autoRemoveLoraBeforeComma,onChange:Cn[6]||(Cn[6]=Pn=>_n.$emit("update:autoRemoveLoraBeforeComma",Pn.target.checked))},null,40,_hoisted_17$3),createBaseVNode("div",{class:"format-desc",innerHTML:_n.getLang("is_remove_lora_before_comma")},null,8,_hoisted_18$3)]),createBaseVNode("div",_hoisted_19$3,[createBaseVNode("input",{class:"format-checkbox",type:"checkbox",checked:$n.autoRemoveLoraAfterComma,onChange:Cn[7]||(Cn[7]=Pn=>_n.$emit("update:autoRemoveLoraAfterComma",Pn.target.checked))},null,40,_hoisted_20$3),createBaseVNode("div",{class:"format-desc",innerHTML:_n.getLang("is_remove_lora_after_comma")},null,8,_hoisted_21$3)]),createBaseVNode("div",_hoisted_22$3,[createBaseVNode("input",{class:"format-checkbox",type:"checkbox",checked:$n.useNovelAiWeightSymbol,onChange:Cn[8]||(Cn[8]=Pn=>_n.$emit("update:useNovelAiWeightSymbol",Pn.target.checked))},null,40,_hoisted_23$3),createBaseVNode("div",{class:"format-desc",innerHTML:_n.getLang("is_use_novel_ai_weight_symbol")},null,8,_hoisted_24$2)]),createBaseVNode("div",_hoisted_25$2,[createBaseVNode("input",{class:"format-checkbox",type:"checkbox",checked:$n.autoRemoveBeforeLineComma,onChange:Cn[9]||(Cn[9]=Pn=>_n.$emit("update:autoRemoveBeforeLineComma",Pn.target.checked))},null,40,_hoisted_26$2),createBaseVNode("div",{class:"format-desc",innerHTML:_n.getLang("is_remove_before_line_comma")},null,8,_hoisted_27$2)])])])])):createCommentVNode("",!0)]),_:1})}const PromptFormat=_export_sfc(_sfc_main$7,[["render",_sfc_render$7]]),_sfc_main$6={name:"Blacklist",components:{IconSvg},mixins:[LanguageMixin],props:{},data(){return{isOpen:!1,data:{prompt:[],negative_prompt:[],lora:[],lycoris:[],embedding:[],translate:[]},cancelBlacklistConfirm:!1,textarea:{prompt:"",negative_prompt:"",lora:"",lycoris:"",embedding:"",translate:""}}},emits:["update:blacklist"],computed:{},mounted(){},methods:{open(){this.isOpen=!0,this.data={prompt:[],negative_prompt:[],lora:[],lycoris:[],embedding:[],translate:[]},this.textarea={prompt:"",negative_prompt:"",lora:"",lycoris:"",embedding:"",translate:""},this.gradioAPI.getDatas(["blacklist","cancelBlacklistConfirm"]).then(_n=>{_n.blacklist&&(this.data.prompt=_n.blacklist.prompt||[],this.data.negative_prompt=_n.blacklist.negative_prompt||[],this.data.lora=_n.blacklist.lora||[],this.data.lycoris=_n.blacklist.lycoris||[],this.data.embedding=_n.blacklist.embedding||[],this.data.translate=_n.blacklist.translate||[]),_n.cancelBlacklistConfirm&&(this.cancelBlacklistConfirm=_n.cancelBlacklistConfirm),this.textarea.prompt=this.data.prompt.join(`
`),this.textarea.negative_prompt=this.data.negative_prompt.join(`
`),this.textarea.lora=this.data.lora.join(`
`),this.textarea.lycoris=this.data.lycoris.join(`
`),this.textarea.embedding=this.data.embedding.join(`
`),this.textarea.translate=this.data.translate.join(`
`)})},close(){this.isOpen=!1},onCloseClick(){this.close()},onSaveClick(){this.data.prompt=this.textarea.prompt.split(/\s*\n\s*/).filter(_n=>_n==null?void 0:_n.trim().length),this.data.negative_prompt=this.textarea.negative_prompt.split(/\s*\n\s*/).filter(_n=>_n==null?void 0:_n.trim().length),this.data.lora=this.textarea.lora.split(/\s*\n\s*/).filter(_n=>_n==null?void 0:_n.trim().length),this.data.lycoris=this.textarea.lycoris.split(/\s*\n\s*/).filter(_n=>_n==null?void 0:_n.trim().length),this.data.embedding=this.textarea.embedding.split(/\s*\n\s*/).filter(_n=>_n==null?void 0:_n.trim().length),this.data.translate=this.textarea.translate.split(/\s*\n\s*/).filter(_n=>_n==null?void 0:_n.trim().length),this.gradioAPI.setData("blacklist",this.data),this.gradioAPI.setData("cancelBlacklistConfirm",this.cancelBlacklistConfirm),this.close(),this.$emit("update:blacklist",this.data,this.cancelBlacklistConfirm)}}},_hoisted_1$6={class:"blacklist-desc"},_hoisted_2$6={class:"blacklist-group"},_hoisted_3$6={class:"group-title"},_hoisted_4$6=["placeholder"],_hoisted_5$5={class:"blacklist-group"},_hoisted_6$4={class:"group-title"},_hoisted_7$4=["placeholder"],_hoisted_8$4=createBaseVNode("div",{class:"blacklist-wrap"},null,-1),_hoisted_9$3={class:"blacklist-group"},_hoisted_10$3={class:"group-title"},_hoisted_11$3=["placeholder"],_hoisted_12$3={class:"blacklist-group"},_hoisted_13$3={class:"group-title"},_hoisted_14$3=["placeholder"],_hoisted_15$3={class:"blacklist-group"},_hoisted_16$2={class:"group-title"},_hoisted_17$2=["placeholder"],_hoisted_18$2=createBaseVNode("div",{class:"blacklist-wrap"},null,-1),_hoisted_19$2={class:"blacklist-group"},_hoisted_20$2={class:"group-title"},_hoisted_21$2=createBaseVNode("div",{class:"blacklist-wrap"},null,-1),_hoisted_22$2={class:"blacklist-desc"},_hoisted_23$2={class:"blacklist-group"},_hoisted_24$1={class:"group-title"},_hoisted_25$1=["placeholder"],_hoisted_26$1=createBaseVNode("div",{class:"blacklist-wrap"},null,-1),_hoisted_27$1={class:"setting-btns"};function _sfc_render$6(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("icon-svg");return openBlock(),createBlock(Transition,{name:"fadeDown"},{default:withCtx(()=>[Bn.isOpen?(openBlock(),createElementBlock("div",{key:0,class:"physton-prompt-blacklist",onClick:Cn[12]||(Cn[12]=(...Pn)=>Ln.onCloseClick&&Ln.onCloseClick(...Pn))},[createBaseVNode("div",{class:"blacklist-main",onClick:Cn[11]||(Cn[11]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",{class:"blacklist-popup-close",onClick:Cn[0]||(Cn[0]=(...Pn)=>Ln.onCloseClick&&Ln.onCloseClick(...Pn))},[createVNode(In,{name:"close"})]),createBaseVNode("div",{class:"blacklist-body",onClick:Cn[10]||(Cn[10]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",_hoisted_1$6,"1. "+toDisplayString(_n.getLang("blacklist_desc")),1),createBaseVNode("div",_hoisted_2$6,[createBaseVNode("div",_hoisted_3$6,toDisplayString(_n.getLang("prompt_blacklist_list"))+":",1),withDirectives(createBaseVNode("textarea",{class:"group-content",placeholder:_n.getLang("one_keyword_per_line"),"onUpdate:modelValue":Cn[1]||(Cn[1]=Pn=>Bn.textarea.prompt=Pn)},null,8,_hoisted_4$6),[[vModelText,Bn.textarea.prompt]])]),createBaseVNode("div",_hoisted_5$5,[createBaseVNode("div",_hoisted_6$4,toDisplayString(_n.getLang("negative_prompt_blacklist_list"))+":",1),withDirectives(createBaseVNode("textarea",{class:"group-content",placeholder:_n.getLang("one_keyword_per_line"),"onUpdate:modelValue":Cn[2]||(Cn[2]=Pn=>Bn.textarea.negative_prompt=Pn)},null,8,_hoisted_7$4),[[vModelText,Bn.textarea.negative_prompt]])]),_hoisted_8$4,createBaseVNode("div",_hoisted_9$3,[createBaseVNode("div",_hoisted_10$3,toDisplayString(_n.getLang("lora_blacklist_list"))+":",1),withDirectives(createBaseVNode("textarea",{class:"group-content",placeholder:_n.getLang("one_keyword_per_line"),"onUpdate:modelValue":Cn[3]||(Cn[3]=Pn=>Bn.textarea.lora=Pn)},null,8,_hoisted_11$3),[[vModelText,Bn.textarea.lora]])]),createBaseVNode("div",_hoisted_12$3,[createBaseVNode("div",_hoisted_13$3,toDisplayString(_n.getLang("lycoris_blacklist_list"))+":",1),withDirectives(createBaseVNode("textarea",{class:"group-content",placeholder:_n.getLang("one_keyword_per_line"),"onUpdate:modelValue":Cn[4]||(Cn[4]=Pn=>Bn.textarea.lycoris=Pn)},null,8,_hoisted_14$3),[[vModelText,Bn.textarea.lycoris]])]),createBaseVNode("div",_hoisted_15$3,[createBaseVNode("div",_hoisted_16$2,toDisplayString(_n.getLang("embedding_blacklist_list"))+":",1),withDirectives(createBaseVNode("textarea",{class:"group-content",placeholder:_n.getLang("one_keyword_per_line"),"onUpdate:modelValue":Cn[5]||(Cn[5]=Pn=>Bn.textarea.embedding=Pn)},null,8,_hoisted_17$2),[[vModelText,Bn.textarea.embedding]])]),_hoisted_18$2,createBaseVNode("div",_hoisted_19$2,[createBaseVNode("div",_hoisted_20$2,[createBaseVNode("label",null,[withDirectives(createBaseVNode("input",{type:"checkbox","onUpdate:modelValue":Cn[6]||(Cn[6]=Pn=>Bn.cancelBlacklistConfirm=Pn)},null,512),[[vModelCheckbox,Bn.cancelBlacklistConfirm]]),createTextVNode(" "+toDisplayString(_n.getLang("cancel_confirm_add_blacklist")),1)])])]),_hoisted_21$2,createBaseVNode("div",_hoisted_22$2,"2. "+toDisplayString(_n.getLang("translate_blacklist_desc")),1),createBaseVNode("div",_hoisted_23$2,[createBaseVNode("div",_hoisted_24$1,toDisplayString(_n.getLang("disable_translate_prompt_blacklist_list"))+":",1),withDirectives(createBaseVNode("textarea",{class:"group-content",placeholder:_n.getLang("one_keyword_per_line"),"onUpdate:modelValue":Cn[7]||(Cn[7]=Pn=>Bn.textarea.translate=Pn)},null,8,_hoisted_25$1),[[vModelText,Bn.textarea.translate]])]),_hoisted_26$1,createBaseVNode("div",_hoisted_27$1,[createBaseVNode("div",{class:"blacklist-save hover-scale-120",onClick:Cn[8]||(Cn[8]=(...Pn)=>Ln.onSaveClick&&Ln.onSaveClick(...Pn))},toDisplayString(_n.getLang("save")),1),createBaseVNode("div",{class:"blacklist-close hover-scale-120",onClick:Cn[9]||(Cn[9]=(...Pn)=>Ln.onCloseClick&&Ln.onCloseClick(...Pn))},toDisplayString(_n.getLang("close")),1)])])])])):createCommentVNode("",!0)]),_:1})}const Blacklist=_export_sfc(_sfc_main$6,[["render",_sfc_render$6]]),_sfc_main$5={name:"PackagesState",components:{IconSvg},mixins:[LanguageMixin],props:{python:{type:String,default:"./python"},packagesState:{type:Array,default:()=>[]}},data(){return{todayNotShow:!1,isOpen:!1,loading:!1,showResult:!1,result:`1112323
sfsdfsdf
2222
3333
1112323
sfsdfsdf
2222
3333
1112323
sfsdfsdf
2222
3333`}},emits:[],computed:{},watch:{packagesState:{handler(){this.isAllInstalled()||this.open()},deep:!0}},mounted(){},methods:{isInstalled(_n){for(let Cn of this.packagesState)if(Cn.name===_n)return Cn.state;return!1},isAllInstalled(){for(let _n of this.packagesState)if(!_n.state)return!1;return!0},getCommand(_n){return`${this.python} -m pip install ${_n.package}`},onInstallClick(){if(this.loading)return;this.loading=!0,this.showResult=!0,this.result="";let _n=[];this.packagesState.forEach(Nn=>{Nn.state||_n.push(Nn)});const Cn=(Nn=!1)=>{this.loading=!1,Nn&&(this.result+=`
complete!`,setTimeout(this.close,2e3)),this.scrollToBottom()},$n=()=>{let Nn=_n.shift();if(!Nn)return Cn(!0);this.gradioAPI.installPackage(Nn.name,Nn.package).then(Bn=>{this.result+=`${Bn.message}
`,Bn.state?(this.scrollToBottom(),$n()):Cn(!1)}).catch(Bn=>{console.log(Bn),this.result+=`${Nn.name} install failed
${Bn.message}
`,Cn(!1)})};$n()},scrollToBottom(){this.$nextTick(()=>{this.$refs.result.scrollTop=this.$refs.result.scrollHeight})},onTodayNotShowChange(){this.todayNotShow=!this.todayNotShow,this.gradioAPI.setData("packagesStateTodayNotShow",new Date().toLocaleDateString())},open(){this.gradioAPI.getData("packagesStateTodayNotShow").then(_n=>{_n&&_n===new Date().toLocaleDateString()?this.close():(this.result="",this.loading=!1,this.showResult=!1,this.isOpen=!0)}).catch(_n=>{})},close(){this.isOpen=!1}}},_hoisted_1$5={class:"today-now-show"},_hoisted_2$5=["value"],_hoisted_3$5={class:"state-body-name"},_hoisted_4$5=["innerHTML"],_hoisted_5$4={class:"package-list"},_hoisted_6$3={class:"package-name"},_hoisted_7$3={class:"package-command"},_hoisted_8$3={key:0,class:"install-result"};function _sfc_render$5(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("icon-svg");return openBlock(),createBlock(Transition,{name:"fadeDown"},{default:withCtx(()=>[Bn.isOpen?(openBlock(),createElementBlock("div",{key:0,class:"physton-packages-state",onClick:Cn[6]||(Cn[6]=(...Pn)=>Ln.close&&Ln.close(...Pn))},[createBaseVNode("div",{class:"state-main",onClick:Cn[5]||(Cn[5]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",{class:"state-close",onClick:Cn[0]||(Cn[0]=(...Pn)=>Ln.close&&Ln.close(...Pn))},[createVNode(In,{name:"close"})]),createBaseVNode("div",{class:"state-body",onClick:Cn[4]||(Cn[4]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",_hoisted_1$5,[createBaseVNode("label",null,[createBaseVNode("input",{type:"checkbox",value:Bn.todayNotShow,onChange:Cn[1]||(Cn[1]=(...Pn)=>Ln.onTodayNotShowChange&&Ln.onTodayNotShowChange(...Pn))},null,40,_hoisted_2$5),createTextVNode(" "+toDisplayString(_n.getLang("today_not_show")),1)])]),createBaseVNode("div",_hoisted_3$5,toDisplayString(_n.globals.shortName),1),createBaseVNode("div",{class:"state-body-language",onClick:Cn[2]||(Cn[2]=Pn=>_n.$emit("click:selectLanguage",Pn))},[createVNode(In,{name:"i18n"}),createBaseVNode("div",null,"Language: "+toDisplayString(_n.langName),1)]),createBaseVNode("div",{class:"state-body-desc",innerHTML:_n.getLang("packages_desc")},null,8,_hoisted_4$5),createBaseVNode("div",_hoisted_5$4,[(openBlock(!0),createElementBlock(Fragment,null,renderList($n.packagesState,Pn=>(openBlock(),createElementBlock("div",{key:Pn.name,class:"package-item"},[createBaseVNode("div",_hoisted_6$3,toDisplayString(Pn.name),1),createBaseVNode("div",{class:normalizeClass(["package-state",Pn.state?"installed":"not_install"])},toDisplayString(_n.getLang(Pn.state?"installed":"not_install")),3),createBaseVNode("div",_hoisted_7$3,toDisplayString(Ln.getCommand(Pn)),1)]))),128))]),createBaseVNode("div",{class:"btn-packages-install hover-scale-120",onClick:Cn[3]||(Cn[3]=(...Pn)=>Ln.onInstallClick&&Ln.onInstallClick(...Pn))},[Bn.loading?(openBlock(),createBlock(In,{key:0,name:"loading"})):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(_n.getLang("install")),1)],64))]),Bn.showResult?(openBlock(),createElementBlock("div",_hoisted_8$3,[createTextVNode(toDisplayString(_n.getLang("packages_installing"))+" ",1),Bn.result?(openBlock(),createElementBlock("div",{key:0,class:"result-content",ref:"result"},toDisplayString(Bn.result),513)):createCommentVNode("",!0)])):createCommentVNode("",!0)])])])):createCommentVNode("",!0)]),_:1})}const PackagesState=_export_sfc(_sfc_main$5,[["render",_sfc_render$5]]),_sfc_main$4={name:"ChatgptPrompt",components:{IconSvg},mixins:[LanguageMixin],props:{},data(){return{isOpen:!1,api:{},configs:[],chatPreset:"",hidePanels:{api:!0},imageDesc:"",promptResult:"",saveConfigIng:!1,genIng:!1}},emits:["use"],computed:{},mounted(){},methods:{open(){this.isOpen=!0,this.saveConfigIng=!1,this.genIng=!1,this.gradioAPI.getDatas(["chatgpt_prompts_preset","chatgpt_key","translate_api.openai"]).then(_n=>{console.log(_n),_n.chatgpt_prompts_preset!==null?this.chatPreset=_n.chatgpt_prompts_preset:this.chatPreset=this.getLang("chatgpt_prompts_preset"),this.configs=[];let Cn={},$n=common$1.getTranslateApiItem(this.translateApis,"openai");if($n=JSON.parse(JSON.stringify($n)),_n.chatgpt_key&&typeof _n.chatgpt_key=="object")for(const Nn of $n.config)Cn[Nn.key]=_n.chatgpt_key[Nn.key]||Nn.default||"";else for(const Nn of $n.config)Cn[Nn.key]=Nn.default||"";Cn.api_key||(this.hidePanels.api=!1);for(const Nn of $n.config)Nn.value=Cn[Nn.key],this.configs.push(Nn)})},close(){this.isOpen=!1},onUnfoldClick(_n){this.hidePanels[_n]=!this.hidePanels[_n]},onSaveConfigClick(){if(this.saveConfigIng)return;this.saveConfigIng=!0;let _n={};this.configs.forEach(Cn=>{_n[Cn.key]=Cn.value}),this.gradioAPI.setData("chatgpt_key",_n).then(Cn=>{this.$toastr.success(this.getLang("success")),this.saveConfigIng=!1}).catch(Cn=>{this.$toastr.error(Cn.message||Cn),this.saveConfigIng=!1})},onPresetChange(_n){this.chatPreset=_n.target.value,this._saveChatPreset()},onRestoreClick(){this.chatPreset=this.getLang("chatgpt_prompts_preset"),this._saveChatPreset()},_saveChatPreset(){this.gradioAPI.setData("chatgpt_prompts_preset",this.chatPreset)},onGenClick(){if(this.genIng)return;if(!this.imageDesc)return this.$refs.imageDesc.focus();if(this.imageDesc=this.imageDesc.trim(),!this.imageDesc)return this.$refs.imageDesc.focus();this.genIng=!0;let _n=[{role:"user",content:this.chatPreset},{role:"user",content:this.imageDesc}],Cn={};this.configs.forEach($n=>{Cn[$n.key]=$n.value}),this.gradioAPI.genOpenAI(_n,Cn).then($n=>{$n.success?this.promptResult=$n.result:this.$toastr.error($n.message||"error"),this.genIng=!1}).catch($n=>{this.$toastr.error($n.message||$n),this.genIng=!1})},onUseClick(){this.$emit("use",this.promptResult),this.close()}}},_hoisted_1$4={class:"panel-header"},_hoisted_2$4={class:"panel-title"},_hoisted_3$4={class:"panel-content"},_hoisted_4$4={class:"body-line"},_hoisted_5$3={class:"line-title"},_hoisted_6$2={class:"line-content"},_hoisted_7$2=["onUpdate:modelValue"],_hoisted_8$2=["onUpdate:modelValue"],_hoisted_9$2=["value"],_hoisted_10$2=["innerHTML"],_hoisted_11$2={class:"body-line"},_hoisted_12$2=createBaseVNode("div",{class:"line-title"},null,-1),_hoisted_13$2={class:"line-content text-right"},_hoisted_14$2={class:"panel-header"},_hoisted_15$2={class:"panel-title"},_hoisted_16$1={class:"panel-content"},_hoisted_17$1={class:"body-line"},_hoisted_18$1={class:"line-title"},_hoisted_19$1={class:"line-subtitle"},_hoisted_20$1={class:"line-content"},_hoisted_21$1=["value"],_hoisted_22$1={class:"body-line"},_hoisted_23$1=createBaseVNode("div",{class:"line-title"},null,-1),_hoisted_24={class:"line-content text-right"},_hoisted_25={class:"body-line"},_hoisted_26={class:"line-title"},_hoisted_27={class:"line-subtitle"},_hoisted_28={class:"line-content"},_hoisted_29=["placeholder"],_hoisted_30={class:"body-line"},_hoisted_31=createBaseVNode("div",{class:"line-title"},null,-1),_hoisted_32={class:"line-content text-right"},_hoisted_33={class:"panel-header"},_hoisted_34={class:"panel-title"},_hoisted_35={class:"panel-content"},_hoisted_36={class:"body-line"},_hoisted_37={class:"line-title"},_hoisted_38={class:"line-content"},_hoisted_39={key:0,class:"body-line"},_hoisted_40=createBaseVNode("div",{class:"line-title"},null,-1),_hoisted_41={class:"line-content text-right"};function _sfc_render$4(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("icon-svg");return openBlock(),createBlock(Transition,{name:"fadeDown"},{default:withCtx(()=>[Bn.isOpen?(openBlock(),createElementBlock("div",{key:0,class:"physton-chatgpt-prompt",onClick:Cn[13]||(Cn[13]=(...Pn)=>Ln.close&&Ln.close(...Pn))},[createBaseVNode("div",{class:"chatgpt-main",onClick:Cn[12]||(Cn[12]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",{class:"chatgpt-close",onClick:Cn[0]||(Cn[0]=(...Pn)=>Ln.close&&Ln.close(...Pn))},[createVNode(In,{name:"close"})]),createBaseVNode("div",{class:"chatgpt-body",onClick:Cn[11]||(Cn[11]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",{class:normalizeClass(["body-panel",Bn.hidePanels.api?"fold":""])},[createBaseVNode("div",_hoisted_1$4,[createBaseVNode("div",{class:"panel-unfold",onClick:Cn[1]||(Cn[1]=Pn=>Ln.onUnfoldClick("api"))},[createVNode(In,{class:"hover-scale-120",name:"unfold"})]),createBaseVNode("div",_hoisted_2$4,toDisplayString(_n.getLang("api_config")),1)]),createBaseVNode("div",_hoisted_3$4,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.configs,Pn=>(openBlock(),createElementBlock("div",_hoisted_4$4,[createBaseVNode("div",_hoisted_5$3,toDisplayString(Pn.title),1),createBaseVNode("div",_hoisted_6$2,[Pn.type=="input"?withDirectives((openBlock(),createElementBlock("input",{key:0,type:"text","onUpdate:modelValue":Dn=>Pn.value=Dn},null,8,_hoisted_7$2)),[[vModelText,Pn.value]]):createCommentVNode("",!0),Pn.type=="select"?withDirectives((openBlock(),createElementBlock("select",{key:1,"onUpdate:modelValue":Dn=>Pn.value=Dn},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Pn.options,Dn=>(openBlock(),createElementBlock("option",{value:Dn},toDisplayString(Dn),9,_hoisted_9$2))),256))],8,_hoisted_8$2)),[[vModelSelect,Pn.value]]):createCommentVNode("",!0),Pn.desc?(openBlock(),createElementBlock("div",{key:2,innerHTML:Pn.desc},null,8,_hoisted_10$2)):createCommentVNode("",!0)])]))),256)),createBaseVNode("div",_hoisted_11$2,[_hoisted_12$2,createBaseVNode("div",_hoisted_13$2,[createBaseVNode("div",{class:"common-btn hover-scale-120",onClick:Cn[2]||(Cn[2]=(...Pn)=>Ln.onSaveConfigClick&&Ln.onSaveConfigClick(...Pn))},[Bn.saveConfigIng?(openBlock(),createBlock(In,{key:0,name:"loading"})):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(_n.getLang("save")),1)],64))])])])])],2),createBaseVNode("div",{class:normalizeClass(["body-panel",Bn.hidePanels.send?"fold":""])},[createBaseVNode("div",_hoisted_14$2,[createBaseVNode("div",{class:"panel-unfold",onClick:Cn[3]||(Cn[3]=Pn=>Ln.onUnfoldClick("send"))},[createVNode(In,{class:"hover-scale-120",name:"unfold"})]),createBaseVNode("div",_hoisted_15$2,toDisplayString(_n.getLang("image_desc")),1)]),createBaseVNode("div",_hoisted_16$1,[createBaseVNode("div",_hoisted_17$1,[createBaseVNode("div",_hoisted_18$1,[createTextVNode(toDisplayString(_n.getLang("preset"))+" ",1),createBaseVNode("div",_hoisted_19$1,toDisplayString(_n.getLang("ai_one")),1)]),createBaseVNode("div",_hoisted_20$1,[createBaseVNode("textarea",{value:Bn.chatPreset,onChange:Cn[4]||(Cn[4]=(...Pn)=>Ln.onPresetChange&&Ln.onPresetChange(...Pn)),style:{height:"100px"}},null,40,_hoisted_21$1)])]),createBaseVNode("div",_hoisted_22$1,[_hoisted_23$1,createBaseVNode("div",_hoisted_24,[createBaseVNode("a",{href:"javascript:",onClick:Cn[5]||(Cn[5]=(...Pn)=>Ln.onRestoreClick&&Ln.onRestoreClick(...Pn))},toDisplayString(_n.getLang("restore_to_default")),1)])]),createBaseVNode("div",_hoisted_25,[createBaseVNode("div",_hoisted_26,[createTextVNode(toDisplayString(_n.getLang("image_desc"))+" ",1),createBaseVNode("div",_hoisted_27,toDisplayString(_n.getLang("ai_two")),1)]),createBaseVNode("div",_hoisted_28,[withDirectives(createBaseVNode("textarea",{style:{height:"100px"},ref:"imageDesc","onUpdate:modelValue":Cn[6]||(Cn[6]=Pn=>Bn.imageDesc=Pn),placeholder:_n.getLang("input_image_desc")},null,8,_hoisted_29),[[vModelText,Bn.imageDesc]])])]),createBaseVNode("div",_hoisted_30,[_hoisted_31,createBaseVNode("div",_hoisted_32,[createBaseVNode("div",{class:"common-btn hover-scale-120",onClick:Cn[7]||(Cn[7]=(...Pn)=>Ln.onGenClick&&Ln.onGenClick(...Pn))},[Bn.genIng?(openBlock(),createBlock(In,{key:0,name:"loading"})):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(_n.getLang("generate")),1)],64))])])])])],2),createBaseVNode("div",{class:normalizeClass(["body-panel",Bn.hidePanels.result?"fold":""])},[createBaseVNode("div",_hoisted_33,[createBaseVNode("div",{class:"panel-unfold",onClick:Cn[8]||(Cn[8]=Pn=>Ln.onUnfoldClick("result"))},[createVNode(In,{class:"hover-scale-120",name:"unfold"})]),createBaseVNode("div",_hoisted_34,toDisplayString(_n.getLang("generate_result")),1)]),createBaseVNode("div",_hoisted_35,[createBaseVNode("div",_hoisted_36,[createBaseVNode("div",_hoisted_37,toDisplayString(_n.getLang("generate_result")),1),createBaseVNode("div",_hoisted_38,[withDirectives(createBaseVNode("textarea",{style:{height:"100px"},"onUpdate:modelValue":Cn[9]||(Cn[9]=Pn=>Bn.promptResult=Pn)},null,512),[[vModelText,Bn.promptResult]])])]),Bn.promptResult?(openBlock(),createElementBlock("div",_hoisted_39,[_hoisted_40,createBaseVNode("div",_hoisted_41,[createBaseVNode("div",{class:"common-btn hover-scale-120",onClick:Cn[10]||(Cn[10]=(...Pn)=>Ln.onUseClick&&Ln.onUseClick(...Pn))},toDisplayString(_n.getLang("use")),1)])])):createCommentVNode("",!0)])],2)])])])):createCommentVNode("",!0)]),_:1})}const ChatgptPrompt=_export_sfc(_sfc_main$4,[["render",_sfc_render$4]]),_sfc_main$3={name:"About",components:{IconSvg},mixins:[LanguageMixin],data(){return{version:"",latestVersion:"",isLatestVersion:!0,isOpen:!1,loading:!1,versions:[],icons:[]}},emits:["use"],computed:{},mounted(){this.icons=[{title:"GitHub stars",url:this.globals.github+"/stargazers",image:"https://img.shields.io/github/stars/"+this.globals.name+"?style=flat-square"},{title:"GitHub forks",url:this.globals.github+"/network/members",image:"https://img.shields.io/github/forks/"+this.globals.name+"?style=flat-square"},{title:"GitHub issues",url:this.globals.github+"/issues",image:"https://img.shields.io/github/issues/"+this.globals.name+"?style=flat-square"},{title:"GitHub issues closed",url:this.globals.github+"/issues?q=is%3Aissue+is%3Aclosed",image:"https://img.shields.io/github/issues-closed/"+this.globals.name+"?style=flat-square"},{title:"GitHub license",url:this.globals.github+"/blob/master/LICENSE.md",image:"https://img.shields.io/github/license/"+this.globals.name+"?style=flat-square"},{title:"GitHub commits",url:this.globals.github+"/commits/main",image:"https://img.shields.io/github/last-commit/"+this.globals.name+"?style=flat-square"}]},methods:{open(){this.isOpen=!0,this.version="",this.latestVersion="",this.isLatestVersion=!0,this.versions=[],this.loading=!0,this.gradioAPI.getVersion().then(_n=>{this.version=_n.version,this.latestVersion=_n.latest_version,this.isLatestVersion=_n.version===_n.latest_version}),this.gradioAPI.getRemoteVersions().then(_n=>{this.loading=!1;let Cn=[];_n.forEach(($n,Nn)=>{$n.is_update_readme||($n.date=common$1.formatTime($n.date),Cn.push($n))}),this.versions=Cn}).catch(_n=>{this.loading=!1})},close(){this.isOpen=!1},commitUrl(_n){return this.globals.github+"/commit/"+_n},formatVersion(_n){return _n?_n.slice(0,7):this.getLang("unknown_version")},message(_n){return _n=common$1.escapeHtml(_n),_n=_n.replace(/Former-commit-id: [a-z0-9]{40}/g,""),_n=_n.trim(),_n=_n.replace(`
`,"<br/>"),_n=_n.replace(/#(\d+)/g,'<a href="'+this.globals.github+'/issues/$1" target="_blank">#$1</a>'),_n}}},_hoisted_1$3={class:"body-title"},_hoisted_2$3=["href"],_hoisted_3$3=["href"],_hoisted_4$3=["src","alt"],_hoisted_5$2={key:0},_hoisted_6$1=["href"],_hoisted_7$1={key:0,class:"has-new-version"},_hoisted_8$1=["href"],_hoisted_9$1=["href"],_hoisted_10$1={class:"version-list"},_hoisted_11$1={class:"item-header"},_hoisted_12$1={class:"version-sha"},_hoisted_13$1=["href"],_hoisted_14$1={class:"version-date"},_hoisted_15$1=["innerHTML"];function _sfc_render$3(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("icon-svg");return openBlock(),createBlock(Transition,{name:"fadeDown"},{default:withCtx(()=>[Bn.isOpen?(openBlock(),createElementBlock("div",{key:0,class:"physton-about-prompt",onClick:Cn[3]||(Cn[3]=(...Pn)=>Ln.close&&Ln.close(...Pn))},[createBaseVNode("div",{class:"about-main",onClick:Cn[2]||(Cn[2]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",{class:"about-close",onClick:Cn[0]||(Cn[0]=(...Pn)=>Ln.close&&Ln.close(...Pn))},[createVNode(In,{name:"close"})]),createBaseVNode("div",{class:"about-body",onClick:Cn[1]||(Cn[1]=withModifiers(()=>{},["stop"]))},[createBaseVNode("p",_hoisted_1$3,[createBaseVNode("a",{href:_n.globals.github,target:"_blank"},toDisplayString(_n.globals.name),9,_hoisted_2$3)]),createBaseVNode("p",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.icons,Pn=>(openBlock(),createElementBlock("a",{key:Pn.title,href:Pn.url,target:"_blank"},[createBaseVNode("img",{src:Pn.image,alt:Pn.title},null,8,_hoisted_4$3)],8,_hoisted_3$3))),128))]),Bn.loading?createCommentVNode("",!0):(openBlock(),createElementBlock("p",_hoisted_5$2,[createBaseVNode("span",null,[createTextVNode(toDisplayString(_n.getLang("version"))+": ",1),createBaseVNode("a",{href:Ln.commitUrl(Bn.version),target:"_blank"},toDisplayString(Ln.formatVersion(Bn.version)),9,_hoisted_6$1)]),!Bn.isLatestVersion&&Bn.latestVersion?(openBlock(),createElementBlock("span",_hoisted_7$1,[createTextVNode("    ("+toDisplayString(_n.getLang("has_new_version"))+": ",1),createBaseVNode("a",{href:Ln.commitUrl(Bn.latestVersion),target:"_blank"},toDisplayString(Ln.formatVersion(Bn.latestVersion)),9,_hoisted_8$1),createTextVNode(")")])):createCommentVNode("",!0)])),createBaseVNode("p",null,[createTextVNode(toDisplayString(_n.getLang("wiki_desc"))+" ",1),createBaseVNode("a",{href:_n.replaceGlobals("{{docs}}"),target:"_blank"},"Wiki",8,_hoisted_9$1)]),createBaseVNode("div",_hoisted_10$1,[Bn.loading?(openBlock(),createBlock(In,{key:0,name:"loading"})):createCommentVNode("",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.versions,Pn=>(openBlock(),createElementBlock("div",{class:"version-item",key:Pn.version},[createBaseVNode("div",_hoisted_11$1,[createBaseVNode("div",_hoisted_12$1,[createBaseVNode("a",{href:Ln.commitUrl(Pn.version),target:"_blank"},toDisplayString(Ln.formatVersion(Pn.version)),9,_hoisted_13$1)]),createBaseVNode("div",_hoisted_14$1,toDisplayString(Pn.date),1)]),createBaseVNode("div",{class:"version-msg",innerHTML:Ln.message(Pn.message)},null,8,_hoisted_15$1)]))),128))])])])])):createCommentVNode("",!0)]),_:1})}const About=_export_sfc(_sfc_main$3,[["render",_sfc_render$3]]);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function isNothing(_n){return typeof _n>"u"||_n===null}function isObject$1(_n){return typeof _n=="object"&&_n!==null}function toArray$1(_n){return Array.isArray(_n)?_n:isNothing(_n)?[]:[_n]}function extend$1(_n,Cn){var $n,Nn,Bn,Ln;if(Cn)for(Ln=Object.keys(Cn),$n=0,Nn=Ln.length;$n<Nn;$n+=1)Bn=Ln[$n],_n[Bn]=Cn[Bn];return _n}function repeat(_n,Cn){var $n="",Nn;for(Nn=0;Nn<Cn;Nn+=1)$n+=_n;return $n}function isNegativeZero(_n){return _n===0&&Number.NEGATIVE_INFINITY===1/_n}var isNothing_1=isNothing,isObject_1=isObject$1,toArray_1=toArray$1,repeat_1=repeat,isNegativeZero_1=isNegativeZero,extend_1=extend$1,common={isNothing:isNothing_1,isObject:isObject_1,toArray:toArray_1,repeat:repeat_1,isNegativeZero:isNegativeZero_1,extend:extend_1};function formatError(_n,Cn){var $n="",Nn=_n.reason||"(unknown reason)";return _n.mark?(_n.mark.name&&($n+='in "'+_n.mark.name+'" '),$n+="("+(_n.mark.line+1)+":"+(_n.mark.column+1)+")",!Cn&&_n.mark.snippet&&($n+=`
`+_n.mark.snippet),Nn+" "+$n):Nn}function YAMLException$1(_n,Cn){Error.call(this),this.name="YAMLException",this.reason=_n,this.mark=Cn,this.message=formatError(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}YAMLException$1.prototype=Object.create(Error.prototype),YAMLException$1.prototype.constructor=YAMLException$1,YAMLException$1.prototype.toString=function _n(Cn){return this.name+": "+formatError(this,Cn)};var exception=YAMLException$1;function getLine(_n,Cn,$n,Nn,Bn){var Ln="",In="",Pn=Math.floor(Bn/2)-1;return Nn-Cn>Pn&&(Ln=" ... ",Cn=Nn-Pn+Ln.length),$n-Nn>Pn&&(In=" ...",$n=Nn+Pn-In.length),{str:Ln+_n.slice(Cn,$n).replace(/\t/g,"→")+In,pos:Nn-Cn+Ln.length}}function padStart(_n,Cn){return common.repeat(" ",Cn-_n.length)+_n}function makeSnippet(_n,Cn){if(Cn=Object.create(Cn||null),!_n.buffer)return null;Cn.maxLength||(Cn.maxLength=79),typeof Cn.indent!="number"&&(Cn.indent=1),typeof Cn.linesBefore!="number"&&(Cn.linesBefore=3),typeof Cn.linesAfter!="number"&&(Cn.linesAfter=2);for(var $n=/\r?\n|\r|\0/g,Nn=[0],Bn=[],Ln,In=-1;Ln=$n.exec(_n.buffer);)Bn.push(Ln.index),Nn.push(Ln.index+Ln[0].length),_n.position<=Ln.index&&In<0&&(In=Nn.length-2);In<0&&(In=Nn.length-1);var Pn="",Dn,Hn,Wn=Math.min(_n.line+Cn.linesAfter,Bn.length).toString().length,Xn=Cn.maxLength-(Cn.indent+Wn+3);for(Dn=1;Dn<=Cn.linesBefore&&!(In-Dn<0);Dn++)Hn=getLine(_n.buffer,Nn[In-Dn],Bn[In-Dn],_n.position-(Nn[In]-Nn[In-Dn]),Xn),Pn=common.repeat(" ",Cn.indent)+padStart((_n.line-Dn+1).toString(),Wn)+" | "+Hn.str+`
`+Pn;for(Hn=getLine(_n.buffer,Nn[In],Bn[In],_n.position,Xn),Pn+=common.repeat(" ",Cn.indent)+padStart((_n.line+1).toString(),Wn)+" | "+Hn.str+`
`,Pn+=common.repeat("-",Cn.indent+Wn+3+Hn.pos)+`^
`,Dn=1;Dn<=Cn.linesAfter&&!(In+Dn>=Bn.length);Dn++)Hn=getLine(_n.buffer,Nn[In+Dn],Bn[In+Dn],_n.position-(Nn[In]-Nn[In+Dn]),Xn),Pn+=common.repeat(" ",Cn.indent)+padStart((_n.line+Dn+1).toString(),Wn)+" | "+Hn.str+`
`;return Pn.replace(/\n$/,"")}var snippet=makeSnippet,TYPE_CONSTRUCTOR_OPTIONS=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],YAML_NODE_KINDS=["scalar","sequence","mapping"];function compileStyleAliases(_n){var Cn={};return _n!==null&&Object.keys(_n).forEach(function($n){_n[$n].forEach(function(Nn){Cn[String(Nn)]=$n})}),Cn}function Type$1(_n,Cn){if(Cn=Cn||{},Object.keys(Cn).forEach(function($n){if(TYPE_CONSTRUCTOR_OPTIONS.indexOf($n)===-1)throw new exception('Unknown option "'+$n+'" is met in definition of "'+_n+'" YAML type.')}),this.options=Cn,this.tag=_n,this.kind=Cn.kind||null,this.resolve=Cn.resolve||function(){return!0},this.construct=Cn.construct||function($n){return $n},this.instanceOf=Cn.instanceOf||null,this.predicate=Cn.predicate||null,this.represent=Cn.represent||null,this.representName=Cn.representName||null,this.defaultStyle=Cn.defaultStyle||null,this.multi=Cn.multi||!1,this.styleAliases=compileStyleAliases(Cn.styleAliases||null),YAML_NODE_KINDS.indexOf(this.kind)===-1)throw new exception('Unknown kind "'+this.kind+'" is specified for "'+_n+'" YAML type.')}var type=Type$1;function compileList(_n,Cn){var $n=[];return _n[Cn].forEach(function(Nn){var Bn=$n.length;$n.forEach(function(Ln,In){Ln.tag===Nn.tag&&Ln.kind===Nn.kind&&Ln.multi===Nn.multi&&(Bn=In)}),$n[Bn]=Nn}),$n}function compileMap(){var _n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},Cn,$n;function Nn(Bn){Bn.multi?(_n.multi[Bn.kind].push(Bn),_n.multi.fallback.push(Bn)):_n[Bn.kind][Bn.tag]=_n.fallback[Bn.tag]=Bn}for(Cn=0,$n=arguments.length;Cn<$n;Cn+=1)arguments[Cn].forEach(Nn);return _n}function Schema$1(_n){return this.extend(_n)}Schema$1.prototype.extend=function _n(Cn){var $n=[],Nn=[];if(Cn instanceof type)Nn.push(Cn);else if(Array.isArray(Cn))Nn=Nn.concat(Cn);else if(Cn&&(Array.isArray(Cn.implicit)||Array.isArray(Cn.explicit)))Cn.implicit&&($n=$n.concat(Cn.implicit)),Cn.explicit&&(Nn=Nn.concat(Cn.explicit));else throw new exception("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");$n.forEach(function(Ln){if(!(Ln instanceof type))throw new exception("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(Ln.loadKind&&Ln.loadKind!=="scalar")throw new exception("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(Ln.multi)throw new exception("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),Nn.forEach(function(Ln){if(!(Ln instanceof type))throw new exception("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var Bn=Object.create(Schema$1.prototype);return Bn.implicit=(this.implicit||[]).concat($n),Bn.explicit=(this.explicit||[]).concat(Nn),Bn.compiledImplicit=compileList(Bn,"implicit"),Bn.compiledExplicit=compileList(Bn,"explicit"),Bn.compiledTypeMap=compileMap(Bn.compiledImplicit,Bn.compiledExplicit),Bn};var schema=Schema$1,str=new type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(_n){return _n!==null?_n:""}}),seq=new type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(_n){return _n!==null?_n:[]}}),map=new type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(_n){return _n!==null?_n:{}}}),failsafe=new schema({explicit:[str,seq,map]});function resolveYamlNull(_n){if(_n===null)return!0;var Cn=_n.length;return Cn===1&&_n==="~"||Cn===4&&(_n==="null"||_n==="Null"||_n==="NULL")}function constructYamlNull(){return null}function isNull(_n){return _n===null}var _null=new type("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function resolveYamlBoolean(_n){if(_n===null)return!1;var Cn=_n.length;return Cn===4&&(_n==="true"||_n==="True"||_n==="TRUE")||Cn===5&&(_n==="false"||_n==="False"||_n==="FALSE")}function constructYamlBoolean(_n){return _n==="true"||_n==="True"||_n==="TRUE"}function isBoolean$1(_n){return Object.prototype.toString.call(_n)==="[object Boolean]"}var bool=new type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean$1,represent:{lowercase:function(_n){return _n?"true":"false"},uppercase:function(_n){return _n?"TRUE":"FALSE"},camelcase:function(_n){return _n?"True":"False"}},defaultStyle:"lowercase"});function isHexCode(_n){return 48<=_n&&_n<=57||65<=_n&&_n<=70||97<=_n&&_n<=102}function isOctCode(_n){return 48<=_n&&_n<=55}function isDecCode(_n){return 48<=_n&&_n<=57}function resolveYamlInteger(_n){if(_n===null)return!1;var Cn=_n.length,$n=0,Nn=!1,Bn;if(!Cn)return!1;if(Bn=_n[$n],(Bn==="-"||Bn==="+")&&(Bn=_n[++$n]),Bn==="0"){if($n+1===Cn)return!0;if(Bn=_n[++$n],Bn==="b"){for($n++;$n<Cn;$n++)if(Bn=_n[$n],Bn!=="_"){if(Bn!=="0"&&Bn!=="1")return!1;Nn=!0}return Nn&&Bn!=="_"}if(Bn==="x"){for($n++;$n<Cn;$n++)if(Bn=_n[$n],Bn!=="_"){if(!isHexCode(_n.charCodeAt($n)))return!1;Nn=!0}return Nn&&Bn!=="_"}if(Bn==="o"){for($n++;$n<Cn;$n++)if(Bn=_n[$n],Bn!=="_"){if(!isOctCode(_n.charCodeAt($n)))return!1;Nn=!0}return Nn&&Bn!=="_"}}if(Bn==="_")return!1;for(;$n<Cn;$n++)if(Bn=_n[$n],Bn!=="_"){if(!isDecCode(_n.charCodeAt($n)))return!1;Nn=!0}return!(!Nn||Bn==="_")}function constructYamlInteger(_n){var Cn=_n,$n=1,Nn;if(Cn.indexOf("_")!==-1&&(Cn=Cn.replace(/_/g,"")),Nn=Cn[0],(Nn==="-"||Nn==="+")&&(Nn==="-"&&($n=-1),Cn=Cn.slice(1),Nn=Cn[0]),Cn==="0")return 0;if(Nn==="0"){if(Cn[1]==="b")return $n*parseInt(Cn.slice(2),2);if(Cn[1]==="x")return $n*parseInt(Cn.slice(2),16);if(Cn[1]==="o")return $n*parseInt(Cn.slice(2),8)}return $n*parseInt(Cn,10)}function isInteger(_n){return Object.prototype.toString.call(_n)==="[object Number]"&&_n%1===0&&!common.isNegativeZero(_n)}var int=new type("tag:yaml.org,2002:int",{kind:"scalar",resolve:resolveYamlInteger,construct:constructYamlInteger,predicate:isInteger,represent:{binary:function(_n){return _n>=0?"0b"+_n.toString(2):"-0b"+_n.toString(2).slice(1)},octal:function(_n){return _n>=0?"0o"+_n.toString(8):"-0o"+_n.toString(8).slice(1)},decimal:function(_n){return _n.toString(10)},hexadecimal:function(_n){return _n>=0?"0x"+_n.toString(16).toUpperCase():"-0x"+_n.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),YAML_FLOAT_PATTERN=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(_n){return!(_n===null||!YAML_FLOAT_PATTERN.test(_n)||_n[_n.length-1]==="_")}function constructYamlFloat(_n){var Cn,$n;return Cn=_n.replace(/_/g,"").toLowerCase(),$n=Cn[0]==="-"?-1:1,"+-".indexOf(Cn[0])>=0&&(Cn=Cn.slice(1)),Cn===".inf"?$n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:Cn===".nan"?NaN:$n*parseFloat(Cn,10)}var SCIENTIFIC_WITHOUT_DOT=/^[-+]?[0-9]+e/;function representYamlFloat(_n,Cn){var $n;if(isNaN(_n))switch(Cn){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===_n)switch(Cn){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===_n)switch(Cn){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(common.isNegativeZero(_n))return"-0.0";return $n=_n.toString(10),SCIENTIFIC_WITHOUT_DOT.test($n)?$n.replace("e",".e"):$n}function isFloat(_n){return Object.prototype.toString.call(_n)==="[object Number]"&&(_n%1!==0||common.isNegativeZero(_n))}var float=new type("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"}),json=failsafe.extend({implicit:[_null,bool,int,float]}),core=json,YAML_DATE_REGEXP=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),YAML_TIMESTAMP_REGEXP=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(_n){return _n===null?!1:YAML_DATE_REGEXP.exec(_n)!==null||YAML_TIMESTAMP_REGEXP.exec(_n)!==null}function constructYamlTimestamp(_n){var Cn,$n,Nn,Bn,Ln,In,Pn,Dn=0,Hn=null,Wn,Xn,Gn;if(Cn=YAML_DATE_REGEXP.exec(_n),Cn===null&&(Cn=YAML_TIMESTAMP_REGEXP.exec(_n)),Cn===null)throw new Error("Date resolve error");if($n=+Cn[1],Nn=+Cn[2]-1,Bn=+Cn[3],!Cn[4])return new Date(Date.UTC($n,Nn,Bn));if(Ln=+Cn[4],In=+Cn[5],Pn=+Cn[6],Cn[7]){for(Dn=Cn[7].slice(0,3);Dn.length<3;)Dn+="0";Dn=+Dn}return Cn[9]&&(Wn=+Cn[10],Xn=+(Cn[11]||0),Hn=(Wn*60+Xn)*6e4,Cn[9]==="-"&&(Hn=-Hn)),Gn=new Date(Date.UTC($n,Nn,Bn,Ln,In,Pn,Dn)),Hn&&Gn.setTime(Gn.getTime()-Hn),Gn}function representYamlTimestamp(_n){return _n.toISOString()}var timestamp=new type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp});function resolveYamlMerge(_n){return _n==="<<"||_n===null}var merge$1=new type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge}),BASE64_MAP=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function resolveYamlBinary(_n){if(_n===null)return!1;var Cn,$n,Nn=0,Bn=_n.length,Ln=BASE64_MAP;for($n=0;$n<Bn;$n++)if(Cn=Ln.indexOf(_n.charAt($n)),!(Cn>64)){if(Cn<0)return!1;Nn+=6}return Nn%8===0}function constructYamlBinary(_n){var Cn,$n,Nn=_n.replace(/[\r\n=]/g,""),Bn=Nn.length,Ln=BASE64_MAP,In=0,Pn=[];for(Cn=0;Cn<Bn;Cn++)Cn%4===0&&Cn&&(Pn.push(In>>16&255),Pn.push(In>>8&255),Pn.push(In&255)),In=In<<6|Ln.indexOf(Nn.charAt(Cn));return $n=Bn%4*6,$n===0?(Pn.push(In>>16&255),Pn.push(In>>8&255),Pn.push(In&255)):$n===18?(Pn.push(In>>10&255),Pn.push(In>>2&255)):$n===12&&Pn.push(In>>4&255),new Uint8Array(Pn)}function representYamlBinary(_n){var Cn="",$n=0,Nn,Bn,Ln=_n.length,In=BASE64_MAP;for(Nn=0;Nn<Ln;Nn++)Nn%3===0&&Nn&&(Cn+=In[$n>>18&63],Cn+=In[$n>>12&63],Cn+=In[$n>>6&63],Cn+=In[$n&63]),$n=($n<<8)+_n[Nn];return Bn=Ln%3,Bn===0?(Cn+=In[$n>>18&63],Cn+=In[$n>>12&63],Cn+=In[$n>>6&63],Cn+=In[$n&63]):Bn===2?(Cn+=In[$n>>10&63],Cn+=In[$n>>4&63],Cn+=In[$n<<2&63],Cn+=In[64]):Bn===1&&(Cn+=In[$n>>2&63],Cn+=In[$n<<4&63],Cn+=In[64],Cn+=In[64]),Cn}function isBinary(_n){return Object.prototype.toString.call(_n)==="[object Uint8Array]"}var binary=new type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary}),_hasOwnProperty$3=Object.prototype.hasOwnProperty,_toString$2=Object.prototype.toString;function resolveYamlOmap(_n){if(_n===null)return!0;var Cn=[],$n,Nn,Bn,Ln,In,Pn=_n;for($n=0,Nn=Pn.length;$n<Nn;$n+=1){if(Bn=Pn[$n],In=!1,_toString$2.call(Bn)!=="[object Object]")return!1;for(Ln in Bn)if(_hasOwnProperty$3.call(Bn,Ln))if(!In)In=!0;else return!1;if(!In)return!1;if(Cn.indexOf(Ln)===-1)Cn.push(Ln);else return!1}return!0}function constructYamlOmap(_n){return _n!==null?_n:[]}var omap=new type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap}),_toString$1=Object.prototype.toString;function resolveYamlPairs(_n){if(_n===null)return!0;var Cn,$n,Nn,Bn,Ln,In=_n;for(Ln=new Array(In.length),Cn=0,$n=In.length;Cn<$n;Cn+=1){if(Nn=In[Cn],_toString$1.call(Nn)!=="[object Object]"||(Bn=Object.keys(Nn),Bn.length!==1))return!1;Ln[Cn]=[Bn[0],Nn[Bn[0]]]}return!0}function constructYamlPairs(_n){if(_n===null)return[];var Cn,$n,Nn,Bn,Ln,In=_n;for(Ln=new Array(In.length),Cn=0,$n=In.length;Cn<$n;Cn+=1)Nn=In[Cn],Bn=Object.keys(Nn),Ln[Cn]=[Bn[0],Nn[Bn[0]]];return Ln}var pairs=new type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs}),_hasOwnProperty$2=Object.prototype.hasOwnProperty;function resolveYamlSet(_n){if(_n===null)return!0;var Cn,$n=_n;for(Cn in $n)if(_hasOwnProperty$2.call($n,Cn)&&$n[Cn]!==null)return!1;return!0}function constructYamlSet(_n){return _n!==null?_n:{}}var set=new type("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet}),_default=core.extend({implicit:[timestamp,merge$1],explicit:[binary,omap,pairs,set]}),_hasOwnProperty$1=Object.prototype.hasOwnProperty,CONTEXT_FLOW_IN=1,CONTEXT_FLOW_OUT=2,CONTEXT_BLOCK_IN=3,CONTEXT_BLOCK_OUT=4,CHOMPING_CLIP=1,CHOMPING_STRIP=2,CHOMPING_KEEP=3,PATTERN_NON_PRINTABLE=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,PATTERN_NON_ASCII_LINE_BREAKS=/[\x85\u2028\u2029]/,PATTERN_FLOW_INDICATORS=/[,\[\]\{\}]/,PATTERN_TAG_HANDLE=/^(?:!|!!|![a-z\-]+!)$/i,PATTERN_TAG_URI=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(_n){return Object.prototype.toString.call(_n)}function is_EOL(_n){return _n===10||_n===13}function is_WHITE_SPACE(_n){return _n===9||_n===32}function is_WS_OR_EOL(_n){return _n===9||_n===32||_n===10||_n===13}function is_FLOW_INDICATOR(_n){return _n===44||_n===91||_n===93||_n===123||_n===125}function fromHexCode(_n){var Cn;return 48<=_n&&_n<=57?_n-48:(Cn=_n|32,97<=Cn&&Cn<=102?Cn-97+10:-1)}function escapedHexLen(_n){return _n===120?2:_n===117?4:_n===85?8:0}function fromDecimalCode(_n){return 48<=_n&&_n<=57?_n-48:-1}function simpleEscapeSequence(_n){return _n===48?"\0":_n===97?"\x07":_n===98?"\b":_n===116||_n===9?" ":_n===110?`
`:_n===118?"\v":_n===102?"\f":_n===114?"\r":_n===101?"\x1B":_n===32?" ":_n===34?'"':_n===47?"/":_n===92?"\\":_n===78?"…":_n===95?" ":_n===76?"\u2028":_n===80?"\u2029":""}function charFromCodepoint(_n){return _n<=65535?String.fromCharCode(_n):String.fromCharCode((_n-65536>>10)+55296,(_n-65536&1023)+56320)}for(var simpleEscapeCheck=new Array(256),simpleEscapeMap=new Array(256),i=0;i<256;i++)simpleEscapeCheck[i]=simpleEscapeSequence(i)?1:0,simpleEscapeMap[i]=simpleEscapeSequence(i);function State$1(_n,Cn){this.input=_n,this.filename=Cn.filename||null,this.schema=Cn.schema||_default,this.onWarning=Cn.onWarning||null,this.legacy=Cn.legacy||!1,this.json=Cn.json||!1,this.listener=Cn.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=_n.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function generateError(_n,Cn){var $n={name:_n.filename,buffer:_n.input.slice(0,-1),position:_n.position,line:_n.line,column:_n.position-_n.lineStart};return $n.snippet=snippet($n),new exception(Cn,$n)}function throwError(_n,Cn){throw generateError(_n,Cn)}function throwWarning(_n,Cn){_n.onWarning&&_n.onWarning.call(null,generateError(_n,Cn))}var directiveHandlers={YAML:function _n(Cn,$n,Nn){var Bn,Ln,In;Cn.version!==null&&throwError(Cn,"duplication of %YAML directive"),Nn.length!==1&&throwError(Cn,"YAML directive accepts exactly one argument"),Bn=/^([0-9]+)\.([0-9]+)$/.exec(Nn[0]),Bn===null&&throwError(Cn,"ill-formed argument of the YAML directive"),Ln=parseInt(Bn[1],10),In=parseInt(Bn[2],10),Ln!==1&&throwError(Cn,"unacceptable YAML version of the document"),Cn.version=Nn[0],Cn.checkLineBreaks=In<2,In!==1&&In!==2&&throwWarning(Cn,"unsupported YAML version of the document")},TAG:function _n(Cn,$n,Nn){var Bn,Ln;Nn.length!==2&&throwError(Cn,"TAG directive accepts exactly two arguments"),Bn=Nn[0],Ln=Nn[1],PATTERN_TAG_HANDLE.test(Bn)||throwError(Cn,"ill-formed tag handle (first argument) of the TAG directive"),_hasOwnProperty$1.call(Cn.tagMap,Bn)&&throwError(Cn,'there is a previously declared suffix for "'+Bn+'" tag handle'),PATTERN_TAG_URI.test(Ln)||throwError(Cn,"ill-formed tag prefix (second argument) of the TAG directive");try{Ln=decodeURIComponent(Ln)}catch{throwError(Cn,"tag prefix is malformed: "+Ln)}Cn.tagMap[Bn]=Ln}};function captureSegment(_n,Cn,$n,Nn){var Bn,Ln,In,Pn;if(Cn<$n){if(Pn=_n.input.slice(Cn,$n),Nn)for(Bn=0,Ln=Pn.length;Bn<Ln;Bn+=1)In=Pn.charCodeAt(Bn),In===9||32<=In&&In<=1114111||throwError(_n,"expected valid JSON character");else PATTERN_NON_PRINTABLE.test(Pn)&&throwError(_n,"the stream contains non-printable characters");_n.result+=Pn}}function mergeMappings(_n,Cn,$n,Nn){var Bn,Ln,In,Pn;for(common.isObject($n)||throwError(_n,"cannot merge mappings; the provided source object is unacceptable"),Bn=Object.keys($n),In=0,Pn=Bn.length;In<Pn;In+=1)Ln=Bn[In],_hasOwnProperty$1.call(Cn,Ln)||(Cn[Ln]=$n[Ln],Nn[Ln]=!0)}function storeMappingPair(_n,Cn,$n,Nn,Bn,Ln,In,Pn,Dn){var Hn,Wn;if(Array.isArray(Bn))for(Bn=Array.prototype.slice.call(Bn),Hn=0,Wn=Bn.length;Hn<Wn;Hn+=1)Array.isArray(Bn[Hn])&&throwError(_n,"nested arrays are not supported inside keys"),typeof Bn=="object"&&_class(Bn[Hn])==="[object Object]"&&(Bn[Hn]="[object Object]");if(typeof Bn=="object"&&_class(Bn)==="[object Object]"&&(Bn="[object Object]"),Bn=String(Bn),Cn===null&&(Cn={}),Nn==="tag:yaml.org,2002:merge")if(Array.isArray(Ln))for(Hn=0,Wn=Ln.length;Hn<Wn;Hn+=1)mergeMappings(_n,Cn,Ln[Hn],$n);else mergeMappings(_n,Cn,Ln,$n);else!_n.json&&!_hasOwnProperty$1.call($n,Bn)&&_hasOwnProperty$1.call(Cn,Bn)&&(_n.line=In||_n.line,_n.lineStart=Pn||_n.lineStart,_n.position=Dn||_n.position,throwError(_n,"duplicated mapping key")),Bn==="__proto__"?Object.defineProperty(Cn,Bn,{configurable:!0,enumerable:!0,writable:!0,value:Ln}):Cn[Bn]=Ln,delete $n[Bn];return Cn}function readLineBreak(_n){var Cn;Cn=_n.input.charCodeAt(_n.position),Cn===10?_n.position++:Cn===13?(_n.position++,_n.input.charCodeAt(_n.position)===10&&_n.position++):throwError(_n,"a line break is expected"),_n.line+=1,_n.lineStart=_n.position,_n.firstTabInLine=-1}function skipSeparationSpace(_n,Cn,$n){for(var Nn=0,Bn=_n.input.charCodeAt(_n.position);Bn!==0;){for(;is_WHITE_SPACE(Bn);)Bn===9&&_n.firstTabInLine===-1&&(_n.firstTabInLine=_n.position),Bn=_n.input.charCodeAt(++_n.position);if(Cn&&Bn===35)do Bn=_n.input.charCodeAt(++_n.position);while(Bn!==10&&Bn!==13&&Bn!==0);if(is_EOL(Bn))for(readLineBreak(_n),Bn=_n.input.charCodeAt(_n.position),Nn++,_n.lineIndent=0;Bn===32;)_n.lineIndent++,Bn=_n.input.charCodeAt(++_n.position);else break}return $n!==-1&&Nn!==0&&_n.lineIndent<$n&&throwWarning(_n,"deficient indentation"),Nn}function testDocumentSeparator(_n){var Cn=_n.position,$n;return $n=_n.input.charCodeAt(Cn),!!(($n===45||$n===46)&&$n===_n.input.charCodeAt(Cn+1)&&$n===_n.input.charCodeAt(Cn+2)&&(Cn+=3,$n=_n.input.charCodeAt(Cn),$n===0||is_WS_OR_EOL($n)))}function writeFoldedLines(_n,Cn){Cn===1?_n.result+=" ":Cn>1&&(_n.result+=common.repeat(`
`,Cn-1))}function readPlainScalar(_n,Cn,$n){var Nn,Bn,Ln,In,Pn,Dn,Hn,Wn,Xn=_n.kind,Gn=_n.result,rr;if(rr=_n.input.charCodeAt(_n.position),is_WS_OR_EOL(rr)||is_FLOW_INDICATOR(rr)||rr===35||rr===38||rr===42||rr===33||rr===124||rr===62||rr===39||rr===34||rr===37||rr===64||rr===96||(rr===63||rr===45)&&(Bn=_n.input.charCodeAt(_n.position+1),is_WS_OR_EOL(Bn)||$n&&is_FLOW_INDICATOR(Bn)))return!1;for(_n.kind="scalar",_n.result="",Ln=In=_n.position,Pn=!1;rr!==0;){if(rr===58){if(Bn=_n.input.charCodeAt(_n.position+1),is_WS_OR_EOL(Bn)||$n&&is_FLOW_INDICATOR(Bn))break}else if(rr===35){if(Nn=_n.input.charCodeAt(_n.position-1),is_WS_OR_EOL(Nn))break}else{if(_n.position===_n.lineStart&&testDocumentSeparator(_n)||$n&&is_FLOW_INDICATOR(rr))break;if(is_EOL(rr))if(Dn=_n.line,Hn=_n.lineStart,Wn=_n.lineIndent,skipSeparationSpace(_n,!1,-1),_n.lineIndent>=Cn){Pn=!0,rr=_n.input.charCodeAt(_n.position);continue}else{_n.position=In,_n.line=Dn,_n.lineStart=Hn,_n.lineIndent=Wn;break}}Pn&&(captureSegment(_n,Ln,In,!1),writeFoldedLines(_n,_n.line-Dn),Ln=In=_n.position,Pn=!1),is_WHITE_SPACE(rr)||(In=_n.position+1),rr=_n.input.charCodeAt(++_n.position)}return captureSegment(_n,Ln,In,!1),_n.result?!0:(_n.kind=Xn,_n.result=Gn,!1)}function readSingleQuotedScalar(_n,Cn){var $n,Nn,Bn;if($n=_n.input.charCodeAt(_n.position),$n!==39)return!1;for(_n.kind="scalar",_n.result="",_n.position++,Nn=Bn=_n.position;($n=_n.input.charCodeAt(_n.position))!==0;)if($n===39)if(captureSegment(_n,Nn,_n.position,!0),$n=_n.input.charCodeAt(++_n.position),$n===39)Nn=_n.position,_n.position++,Bn=_n.position;else return!0;else is_EOL($n)?(captureSegment(_n,Nn,Bn,!0),writeFoldedLines(_n,skipSeparationSpace(_n,!1,Cn)),Nn=Bn=_n.position):_n.position===_n.lineStart&&testDocumentSeparator(_n)?throwError(_n,"unexpected end of the document within a single quoted scalar"):(_n.position++,Bn=_n.position);throwError(_n,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(_n,Cn){var $n,Nn,Bn,Ln,In,Pn;if(Pn=_n.input.charCodeAt(_n.position),Pn!==34)return!1;for(_n.kind="scalar",_n.result="",_n.position++,$n=Nn=_n.position;(Pn=_n.input.charCodeAt(_n.position))!==0;){if(Pn===34)return captureSegment(_n,$n,_n.position,!0),_n.position++,!0;if(Pn===92){if(captureSegment(_n,$n,_n.position,!0),Pn=_n.input.charCodeAt(++_n.position),is_EOL(Pn))skipSeparationSpace(_n,!1,Cn);else if(Pn<256&&simpleEscapeCheck[Pn])_n.result+=simpleEscapeMap[Pn],_n.position++;else if((In=escapedHexLen(Pn))>0){for(Bn=In,Ln=0;Bn>0;Bn--)Pn=_n.input.charCodeAt(++_n.position),(In=fromHexCode(Pn))>=0?Ln=(Ln<<4)+In:throwError(_n,"expected hexadecimal character");_n.result+=charFromCodepoint(Ln),_n.position++}else throwError(_n,"unknown escape sequence");$n=Nn=_n.position}else is_EOL(Pn)?(captureSegment(_n,$n,Nn,!0),writeFoldedLines(_n,skipSeparationSpace(_n,!1,Cn)),$n=Nn=_n.position):_n.position===_n.lineStart&&testDocumentSeparator(_n)?throwError(_n,"unexpected end of the document within a double quoted scalar"):(_n.position++,Nn=_n.position)}throwError(_n,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(_n,Cn){var $n=!0,Nn,Bn,Ln,In=_n.tag,Pn,Dn=_n.anchor,Hn,Wn,Xn,Gn,rr,nr=Object.create(null),Yo,ei,ti,ui;if(ui=_n.input.charCodeAt(_n.position),ui===91)Wn=93,rr=!1,Pn=[];else if(ui===123)Wn=125,rr=!0,Pn={};else return!1;for(_n.anchor!==null&&(_n.anchorMap[_n.anchor]=Pn),ui=_n.input.charCodeAt(++_n.position);ui!==0;){if(skipSeparationSpace(_n,!0,Cn),ui=_n.input.charCodeAt(_n.position),ui===Wn)return _n.position++,_n.tag=In,_n.anchor=Dn,_n.kind=rr?"mapping":"sequence",_n.result=Pn,!0;$n?ui===44&&throwError(_n,"expected the node content, but found ','"):throwError(_n,"missed comma between flow collection entries"),ei=Yo=ti=null,Xn=Gn=!1,ui===63&&(Hn=_n.input.charCodeAt(_n.position+1),is_WS_OR_EOL(Hn)&&(Xn=Gn=!0,_n.position++,skipSeparationSpace(_n,!0,Cn))),Nn=_n.line,Bn=_n.lineStart,Ln=_n.position,composeNode(_n,Cn,CONTEXT_FLOW_IN,!1,!0),ei=_n.tag,Yo=_n.result,skipSeparationSpace(_n,!0,Cn),ui=_n.input.charCodeAt(_n.position),(Gn||_n.line===Nn)&&ui===58&&(Xn=!0,ui=_n.input.charCodeAt(++_n.position),skipSeparationSpace(_n,!0,Cn),composeNode(_n,Cn,CONTEXT_FLOW_IN,!1,!0),ti=_n.result),rr?storeMappingPair(_n,Pn,nr,ei,Yo,ti,Nn,Bn,Ln):Xn?Pn.push(storeMappingPair(_n,null,nr,ei,Yo,ti,Nn,Bn,Ln)):Pn.push(Yo),skipSeparationSpace(_n,!0,Cn),ui=_n.input.charCodeAt(_n.position),ui===44?($n=!0,ui=_n.input.charCodeAt(++_n.position)):$n=!1}throwError(_n,"unexpected end of the stream within a flow collection")}function readBlockScalar(_n,Cn){var $n,Nn,Bn=CHOMPING_CLIP,Ln=!1,In=!1,Pn=Cn,Dn=0,Hn=!1,Wn,Xn;if(Xn=_n.input.charCodeAt(_n.position),Xn===124)Nn=!1;else if(Xn===62)Nn=!0;else return!1;for(_n.kind="scalar",_n.result="";Xn!==0;)if(Xn=_n.input.charCodeAt(++_n.position),Xn===43||Xn===45)CHOMPING_CLIP===Bn?Bn=Xn===43?CHOMPING_KEEP:CHOMPING_STRIP:throwError(_n,"repeat of a chomping mode identifier");else if((Wn=fromDecimalCode(Xn))>=0)Wn===0?throwError(_n,"bad explicit indentation width of a block scalar; it cannot be less than one"):In?throwError(_n,"repeat of an indentation width identifier"):(Pn=Cn+Wn-1,In=!0);else break;if(is_WHITE_SPACE(Xn)){do Xn=_n.input.charCodeAt(++_n.position);while(is_WHITE_SPACE(Xn));if(Xn===35)do Xn=_n.input.charCodeAt(++_n.position);while(!is_EOL(Xn)&&Xn!==0)}for(;Xn!==0;){for(readLineBreak(_n),_n.lineIndent=0,Xn=_n.input.charCodeAt(_n.position);(!In||_n.lineIndent<Pn)&&Xn===32;)_n.lineIndent++,Xn=_n.input.charCodeAt(++_n.position);if(!In&&_n.lineIndent>Pn&&(Pn=_n.lineIndent),is_EOL(Xn)){Dn++;continue}if(_n.lineIndent<Pn){Bn===CHOMPING_KEEP?_n.result+=common.repeat(`
`,Ln?1+Dn:Dn):Bn===CHOMPING_CLIP&&Ln&&(_n.result+=`
`);break}for(Nn?is_WHITE_SPACE(Xn)?(Hn=!0,_n.result+=common.repeat(`
`,Ln?1+Dn:Dn)):Hn?(Hn=!1,_n.result+=common.repeat(`
`,Dn+1)):Dn===0?Ln&&(_n.result+=" "):_n.result+=common.repeat(`
`,Dn):_n.result+=common.repeat(`
`,Ln?1+Dn:Dn),Ln=!0,In=!0,Dn=0,$n=_n.position;!is_EOL(Xn)&&Xn!==0;)Xn=_n.input.charCodeAt(++_n.position);captureSegment(_n,$n,_n.position,!1)}return!0}function readBlockSequence(_n,Cn){var $n,Nn=_n.tag,Bn=_n.anchor,Ln=[],In,Pn=!1,Dn;if(_n.firstTabInLine!==-1)return!1;for(_n.anchor!==null&&(_n.anchorMap[_n.anchor]=Ln),Dn=_n.input.charCodeAt(_n.position);Dn!==0&&(_n.firstTabInLine!==-1&&(_n.position=_n.firstTabInLine,throwError(_n,"tab characters must not be used in indentation")),!(Dn!==45||(In=_n.input.charCodeAt(_n.position+1),!is_WS_OR_EOL(In))));){if(Pn=!0,_n.position++,skipSeparationSpace(_n,!0,-1)&&_n.lineIndent<=Cn){Ln.push(null),Dn=_n.input.charCodeAt(_n.position);continue}if($n=_n.line,composeNode(_n,Cn,CONTEXT_BLOCK_IN,!1,!0),Ln.push(_n.result),skipSeparationSpace(_n,!0,-1),Dn=_n.input.charCodeAt(_n.position),(_n.line===$n||_n.lineIndent>Cn)&&Dn!==0)throwError(_n,"bad indentation of a sequence entry");else if(_n.lineIndent<Cn)break}return Pn?(_n.tag=Nn,_n.anchor=Bn,_n.kind="sequence",_n.result=Ln,!0):!1}function readBlockMapping(_n,Cn,$n){var Nn,Bn,Ln,In,Pn,Dn,Hn=_n.tag,Wn=_n.anchor,Xn={},Gn=Object.create(null),rr=null,nr=null,Yo=null,ei=!1,ti=!1,ui;if(_n.firstTabInLine!==-1)return!1;for(_n.anchor!==null&&(_n.anchorMap[_n.anchor]=Xn),ui=_n.input.charCodeAt(_n.position);ui!==0;){if(!ei&&_n.firstTabInLine!==-1&&(_n.position=_n.firstTabInLine,throwError(_n,"tab characters must not be used in indentation")),Nn=_n.input.charCodeAt(_n.position+1),Ln=_n.line,(ui===63||ui===58)&&is_WS_OR_EOL(Nn))ui===63?(ei&&(storeMappingPair(_n,Xn,Gn,rr,nr,null,In,Pn,Dn),rr=nr=Yo=null),ti=!0,ei=!0,Bn=!0):ei?(ei=!1,Bn=!0):throwError(_n,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),_n.position+=1,ui=Nn;else{if(In=_n.line,Pn=_n.lineStart,Dn=_n.position,!composeNode(_n,$n,CONTEXT_FLOW_OUT,!1,!0))break;if(_n.line===Ln){for(ui=_n.input.charCodeAt(_n.position);is_WHITE_SPACE(ui);)ui=_n.input.charCodeAt(++_n.position);if(ui===58)ui=_n.input.charCodeAt(++_n.position),is_WS_OR_EOL(ui)||throwError(_n,"a whitespace character is expected after the key-value separator within a block mapping"),ei&&(storeMappingPair(_n,Xn,Gn,rr,nr,null,In,Pn,Dn),rr=nr=Yo=null),ti=!0,ei=!1,Bn=!1,rr=_n.tag,nr=_n.result;else if(ti)throwError(_n,"can not read an implicit mapping pair; a colon is missed");else return _n.tag=Hn,_n.anchor=Wn,!0}else if(ti)throwError(_n,"can not read a block mapping entry; a multiline key may not be an implicit key");else return _n.tag=Hn,_n.anchor=Wn,!0}if((_n.line===Ln||_n.lineIndent>Cn)&&(ei&&(In=_n.line,Pn=_n.lineStart,Dn=_n.position),composeNode(_n,Cn,CONTEXT_BLOCK_OUT,!0,Bn)&&(ei?nr=_n.result:Yo=_n.result),ei||(storeMappingPair(_n,Xn,Gn,rr,nr,Yo,In,Pn,Dn),rr=nr=Yo=null),skipSeparationSpace(_n,!0,-1),ui=_n.input.charCodeAt(_n.position)),(_n.line===Ln||_n.lineIndent>Cn)&&ui!==0)throwError(_n,"bad indentation of a mapping entry");else if(_n.lineIndent<Cn)break}return ei&&storeMappingPair(_n,Xn,Gn,rr,nr,null,In,Pn,Dn),ti&&(_n.tag=Hn,_n.anchor=Wn,_n.kind="mapping",_n.result=Xn),ti}function readTagProperty(_n){var Cn,$n=!1,Nn=!1,Bn,Ln,In;if(In=_n.input.charCodeAt(_n.position),In!==33)return!1;if(_n.tag!==null&&throwError(_n,"duplication of a tag property"),In=_n.input.charCodeAt(++_n.position),In===60?($n=!0,In=_n.input.charCodeAt(++_n.position)):In===33?(Nn=!0,Bn="!!",In=_n.input.charCodeAt(++_n.position)):Bn="!",Cn=_n.position,$n){do In=_n.input.charCodeAt(++_n.position);while(In!==0&&In!==62);_n.position<_n.length?(Ln=_n.input.slice(Cn,_n.position),In=_n.input.charCodeAt(++_n.position)):throwError(_n,"unexpected end of the stream within a verbatim tag")}else{for(;In!==0&&!is_WS_OR_EOL(In);)In===33&&(Nn?throwError(_n,"tag suffix cannot contain exclamation marks"):(Bn=_n.input.slice(Cn-1,_n.position+1),PATTERN_TAG_HANDLE.test(Bn)||throwError(_n,"named tag handle cannot contain such characters"),Nn=!0,Cn=_n.position+1)),In=_n.input.charCodeAt(++_n.position);Ln=_n.input.slice(Cn,_n.position),PATTERN_FLOW_INDICATORS.test(Ln)&&throwError(_n,"tag suffix cannot contain flow indicator characters")}Ln&&!PATTERN_TAG_URI.test(Ln)&&throwError(_n,"tag name cannot contain such characters: "+Ln);try{Ln=decodeURIComponent(Ln)}catch{throwError(_n,"tag name is malformed: "+Ln)}return $n?_n.tag=Ln:_hasOwnProperty$1.call(_n.tagMap,Bn)?_n.tag=_n.tagMap[Bn]+Ln:Bn==="!"?_n.tag="!"+Ln:Bn==="!!"?_n.tag="tag:yaml.org,2002:"+Ln:throwError(_n,'undeclared tag handle "'+Bn+'"'),!0}function readAnchorProperty(_n){var Cn,$n;if($n=_n.input.charCodeAt(_n.position),$n!==38)return!1;for(_n.anchor!==null&&throwError(_n,"duplication of an anchor property"),$n=_n.input.charCodeAt(++_n.position),Cn=_n.position;$n!==0&&!is_WS_OR_EOL($n)&&!is_FLOW_INDICATOR($n);)$n=_n.input.charCodeAt(++_n.position);return _n.position===Cn&&throwError(_n,"name of an anchor node must contain at least one character"),_n.anchor=_n.input.slice(Cn,_n.position),!0}function readAlias(_n){var Cn,$n,Nn;if(Nn=_n.input.charCodeAt(_n.position),Nn!==42)return!1;for(Nn=_n.input.charCodeAt(++_n.position),Cn=_n.position;Nn!==0&&!is_WS_OR_EOL(Nn)&&!is_FLOW_INDICATOR(Nn);)Nn=_n.input.charCodeAt(++_n.position);return _n.position===Cn&&throwError(_n,"name of an alias node must contain at least one character"),$n=_n.input.slice(Cn,_n.position),_hasOwnProperty$1.call(_n.anchorMap,$n)||throwError(_n,'unidentified alias "'+$n+'"'),_n.result=_n.anchorMap[$n],skipSeparationSpace(_n,!0,-1),!0}function composeNode(_n,Cn,$n,Nn,Bn){var Ln,In,Pn,Dn=1,Hn=!1,Wn=!1,Xn,Gn,rr,nr,Yo,ei;if(_n.listener!==null&&_n.listener("open",_n),_n.tag=null,_n.anchor=null,_n.kind=null,_n.result=null,Ln=In=Pn=CONTEXT_BLOCK_OUT===$n||CONTEXT_BLOCK_IN===$n,Nn&&skipSeparationSpace(_n,!0,-1)&&(Hn=!0,_n.lineIndent>Cn?Dn=1:_n.lineIndent===Cn?Dn=0:_n.lineIndent<Cn&&(Dn=-1)),Dn===1)for(;readTagProperty(_n)||readAnchorProperty(_n);)skipSeparationSpace(_n,!0,-1)?(Hn=!0,Pn=Ln,_n.lineIndent>Cn?Dn=1:_n.lineIndent===Cn?Dn=0:_n.lineIndent<Cn&&(Dn=-1)):Pn=!1;if(Pn&&(Pn=Hn||Bn),(Dn===1||CONTEXT_BLOCK_OUT===$n)&&(CONTEXT_FLOW_IN===$n||CONTEXT_FLOW_OUT===$n?Yo=Cn:Yo=Cn+1,ei=_n.position-_n.lineStart,Dn===1?Pn&&(readBlockSequence(_n,ei)||readBlockMapping(_n,ei,Yo))||readFlowCollection(_n,Yo)?Wn=!0:(In&&readBlockScalar(_n,Yo)||readSingleQuotedScalar(_n,Yo)||readDoubleQuotedScalar(_n,Yo)?Wn=!0:readAlias(_n)?(Wn=!0,(_n.tag!==null||_n.anchor!==null)&&throwError(_n,"alias node should not have any properties")):readPlainScalar(_n,Yo,CONTEXT_FLOW_IN===$n)&&(Wn=!0,_n.tag===null&&(_n.tag="?")),_n.anchor!==null&&(_n.anchorMap[_n.anchor]=_n.result)):Dn===0&&(Wn=Pn&&readBlockSequence(_n,ei))),_n.tag===null)_n.anchor!==null&&(_n.anchorMap[_n.anchor]=_n.result);else if(_n.tag==="?"){for(_n.result!==null&&_n.kind!=="scalar"&&throwError(_n,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+_n.kind+'"'),Xn=0,Gn=_n.implicitTypes.length;Xn<Gn;Xn+=1)if(nr=_n.implicitTypes[Xn],nr.resolve(_n.result)){_n.result=nr.construct(_n.result),_n.tag=nr.tag,_n.anchor!==null&&(_n.anchorMap[_n.anchor]=_n.result);break}}else if(_n.tag!=="!"){if(_hasOwnProperty$1.call(_n.typeMap[_n.kind||"fallback"],_n.tag))nr=_n.typeMap[_n.kind||"fallback"][_n.tag];else for(nr=null,rr=_n.typeMap.multi[_n.kind||"fallback"],Xn=0,Gn=rr.length;Xn<Gn;Xn+=1)if(_n.tag.slice(0,rr[Xn].tag.length)===rr[Xn].tag){nr=rr[Xn];break}nr||throwError(_n,"unknown tag !<"+_n.tag+">"),_n.result!==null&&nr.kind!==_n.kind&&throwError(_n,"unacceptable node kind for !<"+_n.tag+'> tag; it should be "'+nr.kind+'", not "'+_n.kind+'"'),nr.resolve(_n.result,_n.tag)?(_n.result=nr.construct(_n.result,_n.tag),_n.anchor!==null&&(_n.anchorMap[_n.anchor]=_n.result)):throwError(_n,"cannot resolve a node with !<"+_n.tag+"> explicit tag")}return _n.listener!==null&&_n.listener("close",_n),_n.tag!==null||_n.anchor!==null||Wn}function readDocument(_n){var Cn=_n.position,$n,Nn,Bn,Ln=!1,In;for(_n.version=null,_n.checkLineBreaks=_n.legacy,_n.tagMap=Object.create(null),_n.anchorMap=Object.create(null);(In=_n.input.charCodeAt(_n.position))!==0&&(skipSeparationSpace(_n,!0,-1),In=_n.input.charCodeAt(_n.position),!(_n.lineIndent>0||In!==37));){for(Ln=!0,In=_n.input.charCodeAt(++_n.position),$n=_n.position;In!==0&&!is_WS_OR_EOL(In);)In=_n.input.charCodeAt(++_n.position);for(Nn=_n.input.slice($n,_n.position),Bn=[],Nn.length<1&&throwError(_n,"directive name must not be less than one character in length");In!==0;){for(;is_WHITE_SPACE(In);)In=_n.input.charCodeAt(++_n.position);if(In===35){do In=_n.input.charCodeAt(++_n.position);while(In!==0&&!is_EOL(In));break}if(is_EOL(In))break;for($n=_n.position;In!==0&&!is_WS_OR_EOL(In);)In=_n.input.charCodeAt(++_n.position);Bn.push(_n.input.slice($n,_n.position))}In!==0&&readLineBreak(_n),_hasOwnProperty$1.call(directiveHandlers,Nn)?directiveHandlers[Nn](_n,Nn,Bn):throwWarning(_n,'unknown document directive "'+Nn+'"')}if(skipSeparationSpace(_n,!0,-1),_n.lineIndent===0&&_n.input.charCodeAt(_n.position)===45&&_n.input.charCodeAt(_n.position+1)===45&&_n.input.charCodeAt(_n.position+2)===45?(_n.position+=3,skipSeparationSpace(_n,!0,-1)):Ln&&throwError(_n,"directives end mark is expected"),composeNode(_n,_n.lineIndent-1,CONTEXT_BLOCK_OUT,!1,!0),skipSeparationSpace(_n,!0,-1),_n.checkLineBreaks&&PATTERN_NON_ASCII_LINE_BREAKS.test(_n.input.slice(Cn,_n.position))&&throwWarning(_n,"non-ASCII line breaks are interpreted as content"),_n.documents.push(_n.result),_n.position===_n.lineStart&&testDocumentSeparator(_n)){_n.input.charCodeAt(_n.position)===46&&(_n.position+=3,skipSeparationSpace(_n,!0,-1));return}if(_n.position<_n.length-1)throwError(_n,"end of the stream or a document separator is expected");else return}function loadDocuments(_n,Cn){_n=String(_n),Cn=Cn||{},_n.length!==0&&(_n.charCodeAt(_n.length-1)!==10&&_n.charCodeAt(_n.length-1)!==13&&(_n+=`
`),_n.charCodeAt(0)===65279&&(_n=_n.slice(1)));var $n=new State$1(_n,Cn),Nn=_n.indexOf("\0");for(Nn!==-1&&($n.position=Nn,throwError($n,"null byte is not allowed in input")),$n.input+="\0";$n.input.charCodeAt($n.position)===32;)$n.lineIndent+=1,$n.position+=1;for(;$n.position<$n.length-1;)readDocument($n);return $n.documents}function loadAll$1(_n,Cn,$n){Cn!==null&&typeof Cn=="object"&&typeof $n>"u"&&($n=Cn,Cn=null);var Nn=loadDocuments(_n,$n);if(typeof Cn!="function")return Nn;for(var Bn=0,Ln=Nn.length;Bn<Ln;Bn+=1)Cn(Nn[Bn])}function load$1(_n,Cn){var $n=loadDocuments(_n,Cn);if($n.length!==0){if($n.length===1)return $n[0];throw new exception("expected a single document in the stream, but found more")}}var loadAll_1=loadAll$1,load_1=load$1,loader={loadAll:loadAll_1,load:load_1},_toString=Object.prototype.toString,_hasOwnProperty=Object.prototype.hasOwnProperty,CHAR_BOM=65279,CHAR_TAB=9,CHAR_LINE_FEED=10,CHAR_CARRIAGE_RETURN=13,CHAR_SPACE=32,CHAR_EXCLAMATION=33,CHAR_DOUBLE_QUOTE=34,CHAR_SHARP=35,CHAR_PERCENT=37,CHAR_AMPERSAND=38,CHAR_SINGLE_QUOTE=39,CHAR_ASTERISK=42,CHAR_COMMA=44,CHAR_MINUS=45,CHAR_COLON=58,CHAR_EQUALS=61,CHAR_GREATER_THAN=62,CHAR_QUESTION=63,CHAR_COMMERCIAL_AT=64,CHAR_LEFT_SQUARE_BRACKET=91,CHAR_RIGHT_SQUARE_BRACKET=93,CHAR_GRAVE_ACCENT=96,CHAR_LEFT_CURLY_BRACKET=123,CHAR_VERTICAL_LINE=124,CHAR_RIGHT_CURLY_BRACKET=125,ESCAPE_SEQUENCES={};ESCAPE_SEQUENCES[0]="\\0",ESCAPE_SEQUENCES[7]="\\a",ESCAPE_SEQUENCES[8]="\\b",ESCAPE_SEQUENCES[9]="\\t",ESCAPE_SEQUENCES[10]="\\n",ESCAPE_SEQUENCES[11]="\\v",ESCAPE_SEQUENCES[12]="\\f",ESCAPE_SEQUENCES[13]="\\r",ESCAPE_SEQUENCES[27]="\\e",ESCAPE_SEQUENCES[34]='\\"',ESCAPE_SEQUENCES[92]="\\\\",ESCAPE_SEQUENCES[133]="\\N",ESCAPE_SEQUENCES[160]="\\_",ESCAPE_SEQUENCES[8232]="\\L",ESCAPE_SEQUENCES[8233]="\\P";var DEPRECATED_BOOLEANS_SYNTAX=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],DEPRECATED_BASE60_SYNTAX=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(_n,Cn){var $n,Nn,Bn,Ln,In,Pn,Dn;if(Cn===null)return{};for($n={},Nn=Object.keys(Cn),Bn=0,Ln=Nn.length;Bn<Ln;Bn+=1)In=Nn[Bn],Pn=String(Cn[In]),In.slice(0,2)==="!!"&&(In="tag:yaml.org,2002:"+In.slice(2)),Dn=_n.compiledTypeMap.fallback[In],Dn&&_hasOwnProperty.call(Dn.styleAliases,Pn)&&(Pn=Dn.styleAliases[Pn]),$n[In]=Pn;return $n}function encodeHex(_n){var Cn,$n,Nn;if(Cn=_n.toString(16).toUpperCase(),_n<=255)$n="x",Nn=2;else if(_n<=65535)$n="u",Nn=4;else if(_n<=4294967295)$n="U",Nn=8;else throw new exception("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+$n+common.repeat("0",Nn-Cn.length)+Cn}var QUOTING_TYPE_SINGLE=1,QUOTING_TYPE_DOUBLE=2;function State(_n){this.schema=_n.schema||_default,this.indent=Math.max(1,_n.indent||2),this.noArrayIndent=_n.noArrayIndent||!1,this.skipInvalid=_n.skipInvalid||!1,this.flowLevel=common.isNothing(_n.flowLevel)?-1:_n.flowLevel,this.styleMap=compileStyleMap(this.schema,_n.styles||null),this.sortKeys=_n.sortKeys||!1,this.lineWidth=_n.lineWidth||80,this.noRefs=_n.noRefs||!1,this.noCompatMode=_n.noCompatMode||!1,this.condenseFlow=_n.condenseFlow||!1,this.quotingType=_n.quotingType==='"'?QUOTING_TYPE_DOUBLE:QUOTING_TYPE_SINGLE,this.forceQuotes=_n.forceQuotes||!1,this.replacer=typeof _n.replacer=="function"?_n.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function indentString(_n,Cn){for(var $n=common.repeat(" ",Cn),Nn=0,Bn=-1,Ln="",In,Pn=_n.length;Nn<Pn;)Bn=_n.indexOf(`
`,Nn),Bn===-1?(In=_n.slice(Nn),Nn=Pn):(In=_n.slice(Nn,Bn+1),Nn=Bn+1),In.length&&In!==`
`&&(Ln+=$n),Ln+=In;return Ln}function generateNextLine(_n,Cn){return`
`+common.repeat(" ",_n.indent*Cn)}function testImplicitResolving(_n,Cn){var $n,Nn,Bn;for($n=0,Nn=_n.implicitTypes.length;$n<Nn;$n+=1)if(Bn=_n.implicitTypes[$n],Bn.resolve(Cn))return!0;return!1}function isWhitespace(_n){return _n===CHAR_SPACE||_n===CHAR_TAB}function isPrintable(_n){return 32<=_n&&_n<=126||161<=_n&&_n<=55295&&_n!==8232&&_n!==8233||57344<=_n&&_n<=65533&&_n!==CHAR_BOM||65536<=_n&&_n<=1114111}function isNsCharOrWhitespace(_n){return isPrintable(_n)&&_n!==CHAR_BOM&&_n!==CHAR_CARRIAGE_RETURN&&_n!==CHAR_LINE_FEED}function isPlainSafe(_n,Cn,$n){var Nn=isNsCharOrWhitespace(_n),Bn=Nn&&!isWhitespace(_n);return($n?Nn:Nn&&_n!==CHAR_COMMA&&_n!==CHAR_LEFT_SQUARE_BRACKET&&_n!==CHAR_RIGHT_SQUARE_BRACKET&&_n!==CHAR_LEFT_CURLY_BRACKET&&_n!==CHAR_RIGHT_CURLY_BRACKET)&&_n!==CHAR_SHARP&&!(Cn===CHAR_COLON&&!Bn)||isNsCharOrWhitespace(Cn)&&!isWhitespace(Cn)&&_n===CHAR_SHARP||Cn===CHAR_COLON&&Bn}function isPlainSafeFirst(_n){return isPrintable(_n)&&_n!==CHAR_BOM&&!isWhitespace(_n)&&_n!==CHAR_MINUS&&_n!==CHAR_QUESTION&&_n!==CHAR_COLON&&_n!==CHAR_COMMA&&_n!==CHAR_LEFT_SQUARE_BRACKET&&_n!==CHAR_RIGHT_SQUARE_BRACKET&&_n!==CHAR_LEFT_CURLY_BRACKET&&_n!==CHAR_RIGHT_CURLY_BRACKET&&_n!==CHAR_SHARP&&_n!==CHAR_AMPERSAND&&_n!==CHAR_ASTERISK&&_n!==CHAR_EXCLAMATION&&_n!==CHAR_VERTICAL_LINE&&_n!==CHAR_EQUALS&&_n!==CHAR_GREATER_THAN&&_n!==CHAR_SINGLE_QUOTE&&_n!==CHAR_DOUBLE_QUOTE&&_n!==CHAR_PERCENT&&_n!==CHAR_COMMERCIAL_AT&&_n!==CHAR_GRAVE_ACCENT}function isPlainSafeLast(_n){return!isWhitespace(_n)&&_n!==CHAR_COLON}function codePointAt(_n,Cn){var $n=_n.charCodeAt(Cn),Nn;return $n>=55296&&$n<=56319&&Cn+1<_n.length&&(Nn=_n.charCodeAt(Cn+1),Nn>=56320&&Nn<=57343)?($n-55296)*1024+Nn-56320+65536:$n}function needIndentIndicator(_n){var Cn=/^\n* /;return Cn.test(_n)}var STYLE_PLAIN=1,STYLE_SINGLE=2,STYLE_LITERAL=3,STYLE_FOLDED=4,STYLE_DOUBLE=5;function chooseScalarStyle(_n,Cn,$n,Nn,Bn,Ln,In,Pn){var Dn,Hn=0,Wn=null,Xn=!1,Gn=!1,rr=Nn!==-1,nr=-1,Yo=isPlainSafeFirst(codePointAt(_n,0))&&isPlainSafeLast(codePointAt(_n,_n.length-1));if(Cn||In)for(Dn=0;Dn<_n.length;Hn>=65536?Dn+=2:Dn++){if(Hn=codePointAt(_n,Dn),!isPrintable(Hn))return STYLE_DOUBLE;Yo=Yo&&isPlainSafe(Hn,Wn,Pn),Wn=Hn}else{for(Dn=0;Dn<_n.length;Hn>=65536?Dn+=2:Dn++){if(Hn=codePointAt(_n,Dn),Hn===CHAR_LINE_FEED)Xn=!0,rr&&(Gn=Gn||Dn-nr-1>Nn&&_n[nr+1]!==" ",nr=Dn);else if(!isPrintable(Hn))return STYLE_DOUBLE;Yo=Yo&&isPlainSafe(Hn,Wn,Pn),Wn=Hn}Gn=Gn||rr&&Dn-nr-1>Nn&&_n[nr+1]!==" "}return!Xn&&!Gn?Yo&&!In&&!Bn(_n)?STYLE_PLAIN:Ln===QUOTING_TYPE_DOUBLE?STYLE_DOUBLE:STYLE_SINGLE:$n>9&&needIndentIndicator(_n)?STYLE_DOUBLE:In?Ln===QUOTING_TYPE_DOUBLE?STYLE_DOUBLE:STYLE_SINGLE:Gn?STYLE_FOLDED:STYLE_LITERAL}function writeScalar(_n,Cn,$n,Nn,Bn){_n.dump=function(){if(Cn.length===0)return _n.quotingType===QUOTING_TYPE_DOUBLE?'""':"''";if(!_n.noCompatMode&&(DEPRECATED_BOOLEANS_SYNTAX.indexOf(Cn)!==-1||DEPRECATED_BASE60_SYNTAX.test(Cn)))return _n.quotingType===QUOTING_TYPE_DOUBLE?'"'+Cn+'"':"'"+Cn+"'";var Ln=_n.indent*Math.max(1,$n),In=_n.lineWidth===-1?-1:Math.max(Math.min(_n.lineWidth,40),_n.lineWidth-Ln),Pn=Nn||_n.flowLevel>-1&&$n>=_n.flowLevel;function Dn(Hn){return testImplicitResolving(_n,Hn)}switch(chooseScalarStyle(Cn,Pn,_n.indent,In,Dn,_n.quotingType,_n.forceQuotes&&!Nn,Bn)){case STYLE_PLAIN:return Cn;case STYLE_SINGLE:return"'"+Cn.replace(/'/g,"''")+"'";case STYLE_LITERAL:return"|"+blockHeader(Cn,_n.indent)+dropEndingNewline(indentString(Cn,Ln));case STYLE_FOLDED:return">"+blockHeader(Cn,_n.indent)+dropEndingNewline(indentString(foldString(Cn,In),Ln));case STYLE_DOUBLE:return'"'+escapeString(Cn)+'"';default:throw new exception("impossible error: invalid scalar style")}}()}function blockHeader(_n,Cn){var $n=needIndentIndicator(_n)?String(Cn):"",Nn=_n[_n.length-1]===`
`,Bn=Nn&&(_n[_n.length-2]===`
`||_n===`
`),Ln=Bn?"+":Nn?"":"-";return $n+Ln+`
`}function dropEndingNewline(_n){return _n[_n.length-1]===`
`?_n.slice(0,-1):_n}function foldString(_n,Cn){for(var $n=/(\n+)([^\n]*)/g,Nn=function(){var Hn=_n.indexOf(`
`);return Hn=Hn!==-1?Hn:_n.length,$n.lastIndex=Hn,foldLine(_n.slice(0,Hn),Cn)}(),Bn=_n[0]===`
`||_n[0]===" ",Ln,In;In=$n.exec(_n);){var Pn=In[1],Dn=In[2];Ln=Dn[0]===" ",Nn+=Pn+(!Bn&&!Ln&&Dn!==""?`
`:"")+foldLine(Dn,Cn),Bn=Ln}return Nn}function foldLine(_n,Cn){if(_n===""||_n[0]===" ")return _n;for(var $n=/ [^ ]/g,Nn,Bn=0,Ln,In=0,Pn=0,Dn="";Nn=$n.exec(_n);)Pn=Nn.index,Pn-Bn>Cn&&(Ln=In>Bn?In:Pn,Dn+=`
`+_n.slice(Bn,Ln),Bn=Ln+1),In=Pn;return Dn+=`
`,_n.length-Bn>Cn&&In>Bn?Dn+=_n.slice(Bn,In)+`
`+_n.slice(In+1):Dn+=_n.slice(Bn),Dn.slice(1)}function escapeString(_n){for(var Cn="",$n=0,Nn,Bn=0;Bn<_n.length;$n>=65536?Bn+=2:Bn++)$n=codePointAt(_n,Bn),Nn=ESCAPE_SEQUENCES[$n],!Nn&&isPrintable($n)?(Cn+=_n[Bn],$n>=65536&&(Cn+=_n[Bn+1])):Cn+=Nn||encodeHex($n);return Cn}function writeFlowSequence(_n,Cn,$n){var Nn="",Bn=_n.tag,Ln,In,Pn;for(Ln=0,In=$n.length;Ln<In;Ln+=1)Pn=$n[Ln],_n.replacer&&(Pn=_n.replacer.call($n,String(Ln),Pn)),(writeNode(_n,Cn,Pn,!1,!1)||typeof Pn>"u"&&writeNode(_n,Cn,null,!1,!1))&&(Nn!==""&&(Nn+=","+(_n.condenseFlow?"":" ")),Nn+=_n.dump);_n.tag=Bn,_n.dump="["+Nn+"]"}function writeBlockSequence(_n,Cn,$n,Nn){var Bn="",Ln=_n.tag,In,Pn,Dn;for(In=0,Pn=$n.length;In<Pn;In+=1)Dn=$n[In],_n.replacer&&(Dn=_n.replacer.call($n,String(In),Dn)),(writeNode(_n,Cn+1,Dn,!0,!0,!1,!0)||typeof Dn>"u"&&writeNode(_n,Cn+1,null,!0,!0,!1,!0))&&((!Nn||Bn!=="")&&(Bn+=generateNextLine(_n,Cn)),_n.dump&&CHAR_LINE_FEED===_n.dump.charCodeAt(0)?Bn+="-":Bn+="- ",Bn+=_n.dump);_n.tag=Ln,_n.dump=Bn||"[]"}function writeFlowMapping(_n,Cn,$n){var Nn="",Bn=_n.tag,Ln=Object.keys($n),In,Pn,Dn,Hn,Wn;for(In=0,Pn=Ln.length;In<Pn;In+=1)Wn="",Nn!==""&&(Wn+=", "),_n.condenseFlow&&(Wn+='"'),Dn=Ln[In],Hn=$n[Dn],_n.replacer&&(Hn=_n.replacer.call($n,Dn,Hn)),writeNode(_n,Cn,Dn,!1,!1)&&(_n.dump.length>1024&&(Wn+="? "),Wn+=_n.dump+(_n.condenseFlow?'"':"")+":"+(_n.condenseFlow?"":" "),writeNode(_n,Cn,Hn,!1,!1)&&(Wn+=_n.dump,Nn+=Wn));_n.tag=Bn,_n.dump="{"+Nn+"}"}function writeBlockMapping(_n,Cn,$n,Nn){var Bn="",Ln=_n.tag,In=Object.keys($n),Pn,Dn,Hn,Wn,Xn,Gn;if(_n.sortKeys===!0)In.sort();else if(typeof _n.sortKeys=="function")In.sort(_n.sortKeys);else if(_n.sortKeys)throw new exception("sortKeys must be a boolean or a function");for(Pn=0,Dn=In.length;Pn<Dn;Pn+=1)Gn="",(!Nn||Bn!=="")&&(Gn+=generateNextLine(_n,Cn)),Hn=In[Pn],Wn=$n[Hn],_n.replacer&&(Wn=_n.replacer.call($n,Hn,Wn)),writeNode(_n,Cn+1,Hn,!0,!0,!0)&&(Xn=_n.tag!==null&&_n.tag!=="?"||_n.dump&&_n.dump.length>1024,Xn&&(_n.dump&&CHAR_LINE_FEED===_n.dump.charCodeAt(0)?Gn+="?":Gn+="? "),Gn+=_n.dump,Xn&&(Gn+=generateNextLine(_n,Cn)),writeNode(_n,Cn+1,Wn,!0,Xn)&&(_n.dump&&CHAR_LINE_FEED===_n.dump.charCodeAt(0)?Gn+=":":Gn+=": ",Gn+=_n.dump,Bn+=Gn));_n.tag=Ln,_n.dump=Bn||"{}"}function detectType(_n,Cn,$n){var Nn,Bn,Ln,In,Pn,Dn;for(Bn=$n?_n.explicitTypes:_n.implicitTypes,Ln=0,In=Bn.length;Ln<In;Ln+=1)if(Pn=Bn[Ln],(Pn.instanceOf||Pn.predicate)&&(!Pn.instanceOf||typeof Cn=="object"&&Cn instanceof Pn.instanceOf)&&(!Pn.predicate||Pn.predicate(Cn))){if($n?Pn.multi&&Pn.representName?_n.tag=Pn.representName(Cn):_n.tag=Pn.tag:_n.tag="?",Pn.represent){if(Dn=_n.styleMap[Pn.tag]||Pn.defaultStyle,_toString.call(Pn.represent)==="[object Function]")Nn=Pn.represent(Cn,Dn);else if(_hasOwnProperty.call(Pn.represent,Dn))Nn=Pn.represent[Dn](Cn,Dn);else throw new exception("!<"+Pn.tag+'> tag resolver accepts not "'+Dn+'" style');_n.dump=Nn}return!0}return!1}function writeNode(_n,Cn,$n,Nn,Bn,Ln,In){_n.tag=null,_n.dump=$n,detectType(_n,$n,!1)||detectType(_n,$n,!0);var Pn=_toString.call(_n.dump),Dn=Nn,Hn;Nn&&(Nn=_n.flowLevel<0||_n.flowLevel>Cn);var Wn=Pn==="[object Object]"||Pn==="[object Array]",Xn,Gn;if(Wn&&(Xn=_n.duplicates.indexOf($n),Gn=Xn!==-1),(_n.tag!==null&&_n.tag!=="?"||Gn||_n.indent!==2&&Cn>0)&&(Bn=!1),Gn&&_n.usedDuplicates[Xn])_n.dump="*ref_"+Xn;else{if(Wn&&Gn&&!_n.usedDuplicates[Xn]&&(_n.usedDuplicates[Xn]=!0),Pn==="[object Object]")Nn&&Object.keys(_n.dump).length!==0?(writeBlockMapping(_n,Cn,_n.dump,Bn),Gn&&(_n.dump="&ref_"+Xn+_n.dump)):(writeFlowMapping(_n,Cn,_n.dump),Gn&&(_n.dump="&ref_"+Xn+" "+_n.dump));else if(Pn==="[object Array]")Nn&&_n.dump.length!==0?(_n.noArrayIndent&&!In&&Cn>0?writeBlockSequence(_n,Cn-1,_n.dump,Bn):writeBlockSequence(_n,Cn,_n.dump,Bn),Gn&&(_n.dump="&ref_"+Xn+_n.dump)):(writeFlowSequence(_n,Cn,_n.dump),Gn&&(_n.dump="&ref_"+Xn+" "+_n.dump));else if(Pn==="[object String]")_n.tag!=="?"&&writeScalar(_n,_n.dump,Cn,Ln,Dn);else{if(Pn==="[object Undefined]")return!1;if(_n.skipInvalid)return!1;throw new exception("unacceptable kind of an object to dump "+Pn)}_n.tag!==null&&_n.tag!=="?"&&(Hn=encodeURI(_n.tag[0]==="!"?_n.tag.slice(1):_n.tag).replace(/!/g,"%21"),_n.tag[0]==="!"?Hn="!"+Hn:Hn.slice(0,18)==="tag:yaml.org,2002:"?Hn="!!"+Hn.slice(18):Hn="!<"+Hn+">",_n.dump=Hn+" "+_n.dump)}return!0}function getDuplicateReferences(_n,Cn){var $n=[],Nn=[],Bn,Ln;for(inspectNode(_n,$n,Nn),Bn=0,Ln=Nn.length;Bn<Ln;Bn+=1)Cn.duplicates.push($n[Nn[Bn]]);Cn.usedDuplicates=new Array(Ln)}function inspectNode(_n,Cn,$n){var Nn,Bn,Ln;if(_n!==null&&typeof _n=="object")if(Bn=Cn.indexOf(_n),Bn!==-1)$n.indexOf(Bn)===-1&&$n.push(Bn);else if(Cn.push(_n),Array.isArray(_n))for(Bn=0,Ln=_n.length;Bn<Ln;Bn+=1)inspectNode(_n[Bn],Cn,$n);else for(Nn=Object.keys(_n),Bn=0,Ln=Nn.length;Bn<Ln;Bn+=1)inspectNode(_n[Nn[Bn]],Cn,$n)}function dump$1(_n,Cn){Cn=Cn||{};var $n=new State(Cn);$n.noRefs||getDuplicateReferences(_n,$n);var Nn=_n;return $n.replacer&&(Nn=$n.replacer.call({"":Nn},"",Nn)),writeNode($n,0,Nn,!0,!0)?$n.dump+`
`:""}var dump_1=dump$1,dumper={dump:dump_1};function renamed(_n,Cn){return function(){throw new Error("Function yaml."+_n+" is removed in js-yaml 4. Use yaml."+Cn+" instead, which is now safe by default.")}}var Type=type,Schema=schema,FAILSAFE_SCHEMA=failsafe,JSON_SCHEMA=json,CORE_SCHEMA=core,DEFAULT_SCHEMA=_default,load=loader.load,loadAll=loader.loadAll,dump=dumper.dump,YAMLException=exception,types={binary,float,map,null:_null,pairs,set,timestamp,bool,int,merge:merge$1,omap,seq,str},safeLoad=renamed("safeLoad","load"),safeLoadAll=renamed("safeLoadAll","loadAll"),safeDump=renamed("safeDump","dump"),jsYaml={Type,Schema,FAILSAFE_SCHEMA,JSON_SCHEMA,CORE_SCHEMA,DEFAULT_SCHEMA,load,loadAll,dump,YAMLException,types,safeLoad,safeLoadAll,safeDump};const _sfc_main$2={name:"Hotkey",components:{IconSvg},mixins:[LanguageMixin],props:{defaultHotkey:{type:Object,default:()=>({})}},data(){return{isOpen:!1,hotkeys:[{name:"click",title:"left_click_keyword_tag",value:"",options:[{name:"",title:"none"},{name:"edit",title:"edit_keyword"},{name:"disable",title:"disable_enable_keyword"},{name:"extend",title:"show_keyword_extend_panel"}]},{name:"rightClick",title:"right_click_keyword_tag",value:"",options:[{name:"",title:"none"},{name:"edit",title:"edit_keyword"},{name:"disable",title:"disable_enable_keyword"},{name:"extend",title:"show_keyword_extend_panel"}]},{name:"dblClick",title:"dblclick_keyword_tag",value:"",options:[{name:"",title:"none"},{name:"edit",title:"edit_keyword"},{name:"disable",title:"disable_enable_keyword"},{name:"extend",title:"show_keyword_extend_panel"}]},{name:"hover",title:"hover_keyword_tag",value:"",options:[{name:"",title:"none"},{name:"extend",title:"show_keyword_extend_panel"}]}]}},emits:["update:hotkey"],computed:{},mounted(){},methods:{open(){this.isOpen=!0,this.hotkeys.forEach(_n=>{this.defaultHotkey[_n.name]?_n.value=this.defaultHotkey[_n.name]:_n.value=""})},close(){this.isOpen=!1},onCloseClick(){this.close()},onSaveClick(){let _n={};this.hotkeys.forEach(Cn=>{_n[Cn.name]=Cn.value}),this.gradioAPI.setData("hotkey",_n),this.close(),this.$emit("update:hotkey",_n)}}},_hoisted_1$2={class:"hotkey-list"},_hoisted_2$2={class:"hotkey-title"},_hoisted_3$2=["onUpdate:modelValue"],_hoisted_4$2=["value"],_hoisted_5$1={class:"setting-btns"};function _sfc_render$2(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("icon-svg");return openBlock(),createBlock(Transition,{name:"fadeDown"},{default:withCtx(()=>[Bn.isOpen?(openBlock(),createElementBlock("div",{key:0,class:"physton-prompt-hotkey",onClick:Cn[5]||(Cn[5]=(...Pn)=>Ln.onCloseClick&&Ln.onCloseClick(...Pn))},[createBaseVNode("div",{class:"hotkey-main",onClick:Cn[4]||(Cn[4]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",{class:"hotkey-popup-close",onClick:Cn[0]||(Cn[0]=(...Pn)=>Ln.onCloseClick&&Ln.onCloseClick(...Pn))},[createVNode(In,{name:"close"})]),createBaseVNode("div",{class:"hotkey-body",onClick:Cn[3]||(Cn[3]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",_hoisted_1$2,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.hotkeys,Pn=>(openBlock(),createElementBlock("div",{class:"hotkey-item",key:Pn.name},[createBaseVNode("div",_hoisted_2$2,toDisplayString(_n.getLang(Pn.title)),1),withDirectives(createBaseVNode("select",{class:"hotkey-select","onUpdate:modelValue":Dn=>Pn.value=Dn},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Pn.options,Dn=>(openBlock(),createElementBlock("option",{key:Dn.name,value:Dn.name},toDisplayString(_n.getLang(Dn.title)),9,_hoisted_4$2))),128))],8,_hoisted_3$2),[[vModelSelect,Pn.value]])]))),128))]),createBaseVNode("div",_hoisted_5$1,[createBaseVNode("div",{class:"hotkey-save hover-scale-120",onClick:Cn[1]||(Cn[1]=(...Pn)=>Ln.onSaveClick&&Ln.onSaveClick(...Pn))},toDisplayString(_n.getLang("save")),1),createBaseVNode("div",{class:"hotkey-close hover-scale-120",onClick:Cn[2]||(Cn[2]=(...Pn)=>Ln.onCloseClick&&Ln.onCloseClick(...Pn))},toDisplayString(_n.getLang("close")),1)])])])])):createCommentVNode("",!0)]),_:1})}const Hotkey=_export_sfc(_sfc_main$2,[["render",_sfc_render$2]]),TYPE_LORA="lora",TYPE_LYCO="lyco",TYPE_EMBEDDING="embedding",_sfc_main$1={name:"ExtraNetworksPopup",components:{IconSvg},mixins:[LanguageMixin],props:{extraNetworks:{type:Array,default:()=>[]}},data(){return{isShow:!1,e:null,name:"",useCallback:null,type:"",from:"tags",data:{},style:{},previewStyle:{},mouseIn:!1,eMouseIn:!1}},computed:{},mounted(){},methods:{show(_n,Cn,$n,Nn=!1,Bn="tags"){this.mouseIn=!1,this.eMouseIn=!0,this.e=_n,this.name=Cn,this.useCallback=$n,this.type="",this.from=Bn,this.data={},this.style={},this.previewStyle={};let Ln;Cn=Cn.toLowerCase();for(let In of this.extraNetworks)if(In.name==="textual inversion"){for(let Pn of In.items)if(Pn.name.toLowerCase()===Cn){this.type=TYPE_EMBEDDING,Ln=Pn;break}}else if(In.name==="lora"||In.name==="lycoris"){for(let Pn of In.items)if(Pn.name.toLowerCase()===Cn||Pn.output_name&&Pn.output_name.toLowerCase()===Cn){this.type=In.name==="lora"?TYPE_LORA:TYPE_LYCO,Ln=Pn;break}}else if(Nn&&In.name==="checkpoints"){for(let Pn of In.items)if(Pn.name.toLowerCase()===Cn){this.type="checkpoints",Ln=Pn;break}}if(!this.type)return this.isShow=!1;this.isShow=!0,this.data.name=Ln.civitai_info&&Ln.civitai_info.model&&Ln.civitai_info.model.name?Ln.civitai_info.model.name:Ln.name,this.data.output_name=Ln.output_name&&Ln.output_name!==this.data.name?Ln.output_name:"",this.data.basename=Ln.basename||"",this.data.dirname=Ln.dirname||"",this.data.description=Ln.civitai_info&&Ln.civitai_info.description?Ln.civitai_info.description:Ln.description||"",this.data.description=this.data.description.replace(/<[^>]+>/g,""),this.data.trainedWords=Ln.civitai_info&&Ln.civitai_info.trainedWords?Ln.civitai_info.trainedWords:[],this.data.preview=Ln.preview||(Ln.civitai_info&&Ln.civitai_info.images&&Ln.civitai_info.images.length?Ln.civitai_info.images[0]:""),this.data.modelId=Ln.civitai_info&&Ln.civitai_info.modelId?Ln.civitai_info.modelId:"",this.data.civitaiUrl=this.data.modelId?this.getCivitaiUrl(this.data.modelId):"",this.$nextTick(()=>{const In=_n.getBoundingClientRect();this.style.top=In.top+_n.offsetHeight+4+"px",this.style.left=In.left+"px",this.data.preview&&(this.previewStyle={width:"auto",height:this.$refs.extraNetworks.offsetHeight+"px"}),this.$nextTick(()=>{this.onPreviewLoad()})})},onPreviewLoad(){const _n=this.$refs.extraNetworks.getBoundingClientRect();_n.right>window.innerWidth&&(this.style.left=window.innerWidth-_n.width-10+"px")},_hide(){this.isShow&&(this.hideTimer&&clearTimeout(this.hideTimer),this.hideTimer=setTimeout(()=>{this.hideTimer=null,!this.mouseIn&&!this.eMouseIn&&(this.isShow=!1)},10))},hide(){this.eMouseIn=!1,this._hide()},onMouseEnter(){this.mouseIn=!0},onMouseMove(){this.mouseIn=!0},onMouseLeave(){this.mouseIn=!1,this._hide()},copy(_n){this.$copyText(_n).then(()=>{this.$toastr.success(this.getLang("success"))}).catch(()=>{this.$toastr.error(this.getLang("failed"))})},getCivitaiUrl(_n){return globals.civitaiUrl+"/models/"+_n},onOpenCivitaiClick(){if(!this.data.modelId)return;let _n=this.getCivitaiUrl(this.data.modelId);window.open(_n)},onUseKeywordsClick(_n){if(!_n||typeof this.useCallback!="function")return;let Cn=common$1.splitTags(_n);console.log(Cn),this.useCallback(Cn)}}},_hoisted_1$1=["data-from"],_hoisted_2$1={class:"popup-main"},_hoisted_3$1=["src"],_hoisted_4$1={class:"info-raws"},_hoisted_5={class:"info-raw"},_hoisted_6={class:"raw-name"},_hoisted_7={key:0,class:"info-raw"},_hoisted_8={class:"raw-name"},_hoisted_9={key:1,class:"info-raw"},_hoisted_10={class:"raw-name"},_hoisted_11={key:2,class:"info-raw"},_hoisted_12={class:"raw-name"},_hoisted_13={key:3,class:"info-raw"},_hoisted_14={class:"raw-name"},_hoisted_15={class:"raw-value"},_hoisted_16=["onClick"],_hoisted_17={key:4,class:"info-raw"},_hoisted_18={class:"raw-name"},_hoisted_19={class:"raw-description"},_hoisted_20={key:5,class:"info-raw"},_hoisted_21=createBaseVNode("div",{class:"raw-name"},"Civitai",-1),_hoisted_22={class:"raw-value"},_hoisted_23=["href"];function _sfc_render$1(_n,Cn,$n,Nn,Bn,Ln){const In=resolveDirective("tooltip");return withDirectives((openBlock(),createElementBlock("div",{class:"physton-prompt-extra-networks-popup",ref:"extraNetworks","data-from":Bn.from,onMouseenter:Cn[6]||(Cn[6]=withModifiers((...Pn)=>Ln.onMouseEnter&&Ln.onMouseEnter(...Pn),["stop"])),onMousemove:Cn[7]||(Cn[7]=withModifiers((...Pn)=>Ln.onMouseMove&&Ln.onMouseMove(...Pn),["stop"])),onMouseleave:Cn[8]||(Cn[8]=withModifiers((...Pn)=>Ln.onMouseLeave&&Ln.onMouseLeave(...Pn),["stop"])),style:normalizeStyle(Bn.style)},[createBaseVNode("div",_hoisted_2$1,[Bn.data.preview?(openBlock(),createElementBlock("img",{key:0,class:"info-preview",src:Bn.data.preview,style:normalizeStyle(Bn.previewStyle),onLoad:Cn[0]||(Cn[0]=(...Pn)=>Ln.onPreviewLoad&&Ln.onPreviewLoad(...Pn))},null,44,_hoisted_3$1)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_4$1,[createBaseVNode("div",_hoisted_5,[createBaseVNode("div",_hoisted_6,toDisplayString(_n.getLang("model_name")),1),createBaseVNode("div",{class:"raw-value",onClick:Cn[1]||(Cn[1]=Pn=>Ln.copy(Bn.data.name))},toDisplayString(Bn.data.name),1)]),Bn.data.output_name?(openBlock(),createElementBlock("div",_hoisted_7,[createBaseVNode("div",_hoisted_8,toDisplayString(_n.getLang("output_name")),1),createBaseVNode("div",{class:"raw-value",onClick:Cn[2]||(Cn[2]=Pn=>Ln.copy(Bn.data.output_name))},toDisplayString(Bn.data.output_name),1)])):createCommentVNode("",!0),Bn.data.basename?(openBlock(),createElementBlock("div",_hoisted_9,[createBaseVNode("div",_hoisted_10,toDisplayString(_n.getLang("filename")),1),createBaseVNode("div",{class:"raw-value",onClick:Cn[3]||(Cn[3]=Pn=>Ln.copy(Bn.data.basename))},toDisplayString(Bn.data.basename),1)])):createCommentVNode("",!0),Bn.data.dirname?(openBlock(),createElementBlock("div",_hoisted_11,[createBaseVNode("div",_hoisted_12,toDisplayString(_n.getLang("filepath")),1),createBaseVNode("div",{class:"raw-value",onClick:Cn[4]||(Cn[4]=Pn=>Ln.copy(Bn.data.dirname))},toDisplayString(Bn.data.dirname),1)])):createCommentVNode("",!0),Bn.data.trainedWords&&Bn.data.trainedWords.length?(openBlock(),createElementBlock("div",_hoisted_13,[createBaseVNode("div",_hoisted_14,toDisplayString(_n.getLang("trained_words")),1),createBaseVNode("div",_hoisted_15,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.data.trainedWords,Pn=>(openBlock(),createElementBlock("div",{class:"raw-words",key:Pn,onClick:Dn=>Ln.onUseKeywordsClick(Pn)},toDisplayString(Pn),9,_hoisted_16))),128))])])):createCommentVNode("",!0),Bn.data.description?(openBlock(),createElementBlock("div",_hoisted_17,[createBaseVNode("div",_hoisted_18,toDisplayString(_n.getLang("description")),1),withDirectives((openBlock(),createElementBlock("div",{class:"raw-value",onClick:Cn[5]||(Cn[5]=Pn=>Ln.copy(Bn.data.description))},[createBaseVNode("div",_hoisted_19,toDisplayString(Bn.data.description),1)])),[[In,Bn.data.description]])])):createCommentVNode("",!0),Bn.data.civitaiUrl?(openBlock(),createElementBlock("div",_hoisted_20,[_hoisted_21,createBaseVNode("div",_hoisted_22,[createBaseVNode("a",{href:Bn.data.civitaiUrl,target:"_blank",class:"raw-link"},toDisplayString(Bn.data.civitaiUrl),9,_hoisted_23)])])):createCommentVNode("",!0)])])],44,_hoisted_1$1)),[[vShow,Bn.isShow]])}const ExtraNetworksPopup=_export_sfc(_sfc_main$1,[["render",_sfc_render$1]]),_sfc_main={name:"App",components:{Hotkey,About,ChatgptPrompt,PackagesState,PromptFormat,Blacklist,ExtensionCss,IconSvg,History,Favorite,SelectLanguage,TranslateSetting,PhystonPrompt,ExtraNetworksPopup},mixins:[],data(){return{prompts:[{tab:"tab_txt2img",prompt:"txt2img_prompt",counter:"txt2img_token_counter",button:"txt2img_token_button",steps:"txt2img_steps",historyKey:"txt2img",favoriteKey:"txt2img",$prompt:null,$textarea:null,$steps:null,name:"txt2img_prompt",neg:!1,hideDefaultInputKey:"txt2ImgHideDefaultInput",hideDefaultInput:!1,autoLoadWebuiPromptKey:"txt2ImgAutoLoadWebuiPrompt",autoLoadWebuiPrompt:!0,hidePanelKey:"txt2ImgHidePanel",hidePanel:!1,hideGroupTagsKey:"txt2ImgHideGroupTags",hideGroupTags:!1,id:"phystonPrompt_txt2img_prompt"},{tab:"tab_txt2img",prompt:"txt2img_neg_prompt",counter:"txt2img_negative_token_counter",button:"txt2img_negative_token_button",steps:"txt2img_steps",historyKey:"txt2img_neg",favoriteKey:"txt2img_neg",$prompt:null,$textarea:null,$steps:null,name:"txt2img_neg_prompt",neg:!0,hideDefaultInputKey:"txt2ImgNegHideDefaultInput",hideDefaultInput:!1,autoLoadWebuiPromptKey:"txt2ImgNegAutoLoadWebuiPrompt",autoLoadWebuiPrompt:!0,hidePanelKey:"txt2ImgNegHidePanel",hidePanel:!1,hideGroupTagsKey:"txt2ImgNegHideGroupTags",hideGroupTags:!1,id:"phystonPrompt_txt2img_neg_prompt"},{tab:"tab_img2img",prompt:"img2img_prompt",counter:"img2img_token_counter",button:"img2img_token_button",steps:"img2img_steps",historyKey:"img2img",favoriteKey:"img2img",$prompt:null,$textarea:null,$steps:null,name:"img2img_prompt",neg:!1,hideDefaultInputKey:"img2ImgHideDefaultInput",hideDefaultInput:!1,autoLoadWebuiPromptKey:"img2ImgAutoLoadWebuiPrompt",autoLoadWebuiPrompt:!0,hidePanelKey:"img2ImgHidePanel",hidePanel:!1,hideGroupTagsKey:"img2ImgHideGroupTags",hideGroupTags:!1,id:"phystonPrompt_img2img_prompt"},{tab:"tab_img2img",prompt:"img2img_neg_prompt",counter:"img2img_negative_token_counter",button:"img2img_negative_token_button",steps:"img2img_steps",historyKey:"img2img_neg",favoriteKey:"img2img_neg",$prompt:null,$textarea:null,$steps:null,name:"img2img_neg_prompt",neg:!0,hideDefaultInputKey:"img2ImgNegHideDefaultInput",hideDefaultInput:!1,autoLoadWebuiPromptKey:"img2ImgNegAutoLoadWebuiPrompt",autoLoadWebuiPrompt:!0,hidePanelKey:"img2ImgNegHidePanel",hidePanel:!1,hideGroupTagsKey:"img2ImgNegHideGroupTags",hideGroupTags:!1,id:"phystonPrompt_img2img_neg_prompt"}],languageCode:"",languages:{},translateApis:[],translateApi:"",translateApiConfig:{},canOneTranslate:!1,autoTranslate:!1,autoTranslateToEnglish:!1,autoTranslateToLocal:!1,autoRemoveSpace:!0,autoRemoveLastComma:!1,autoKeepWeightZero:!1,autoKeepWeightOne:!1,autoBreakBeforeWrap:!1,autoBreakAfterWrap:!1,autoRemoveLoraBeforeComma:!1,autoRemoveLoraAfterComma:!1,useNovelAiWeightSymbol:!1,autoRemoveBeforeLineComma:!1,enableTooltip:!0,tagCompleteFile:"",onlyCsvOnAuto:!1,startWatchSave:!1,pasteBtn:null,showPastePopup:!1,pasteTitle:"",pasteContent:"",pasteLoading:!1,historyCurrentPrompt:"",favoriteCurrentPrompt:"",chatgptCurrentPrompt:"",extraNetworks:[],loras:[],lycos:[],embeddings:[],python:"",packagesState:[],version:"",latestVersion:"",isLatestVersion:!0,theme:"dark",groupTags:[],groupTagsColor:{},groupTagsColorKeyCache:{},groupTagsTranslate:!0,groupTagsTranslateCache:{toEn:new Map,toLocal:new Map},extraNetworksWidth:100,extraNetworksHeight:120,blacklist:{},cancelBlacklistConfirm:!1,hotkey:{click:"edit",dblClick:"disable",rightClick:"",hover:"extend"}}},watch:{languageCode:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onLanguageCodeChange",_n),this.canOneTranslate=common$1.canOneTranslate(this.languageCode),this.gradioAPI.setData("languageCode",_n).then($n=>{}).catch($n=>{}),this.loadGroupTags())},immediate:!1},autoTranslateToEnglish:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onAutoTranslateToEnglishChange",_n),this.gradioAPI.setData("autoTranslateToEnglish",_n).then($n=>{}).catch($n=>{}))},immediate:!1},autoTranslateToLocal:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onAutoTranslateToLocalChange",_n),this.gradioAPI.setData("autoTranslateToLocal",_n).then($n=>{}).catch($n=>{}))},immediate:!1},autoTranslate:{handler:function(_n,Cn){this.startWatchSave&&(this.autoTranslateToEnglish=this.autoTranslate,this.autoTranslateToLocal=this.autoTranslate,console.log("onAutoTranslateChange",_n),this.gradioAPI.setData("autoTranslate",_n).then($n=>{}).catch($n=>{}))},immediate:!1},autoRemoveSpace:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onAutoRemoveSpaceChange",_n),this.gradioAPI.setData("autoRemoveSpace",_n).then($n=>{this.prompts.forEach(Nn=>{this.$refs[Nn.id][0].updatePrompt()})}).catch($n=>{}))},immediate:!1},autoRemoveLastComma:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onAutoRemoveLastCommaChange",_n),this.gradioAPI.setData("autoRemoveLastComma",_n).then($n=>{this.prompts.forEach(Nn=>{this.$refs[Nn.id][0].updatePrompt()})}).catch($n=>{}))},immediate:!1},autoKeepWeightZero:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onAutoKeepWeightZeroChange",_n),this.gradioAPI.setData("autoKeepWeightZero",_n).then($n=>{}).catch($n=>{}))},immediate:!1},autoKeepWeightOne:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onAutoKeepWeightOneChange",_n),this.gradioAPI.setData("autoKeepWeightOne",_n).then($n=>{}).catch($n=>{}))},immediate:!1},autoBreakBeforeWrap:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onAutoBreakBeforeWrap",_n),this.gradioAPI.setData("autoBreakBeforeWrap",_n).then($n=>{this.prompts.forEach(Nn=>{this.$refs[Nn.id][0].updatePrompt()})}).catch($n=>{}))},immediate:!1},autoBreakAfterWrap:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onAutoBreakAfterWrap",_n),this.gradioAPI.setData("autoBreakAfterWrap",_n).then($n=>{this.prompts.forEach(Nn=>{this.$refs[Nn.id][0].updatePrompt()})}).catch($n=>{}))},immediate:!1},autoRemoveLoraBeforeComma:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onAutoRemoveLoraBeforeCommaChange",_n),this.gradioAPI.setData("autoRemoveLoraBeforeComma",_n).then($n=>{}).catch($n=>{}))},immediate:!1},autoRemoveLoraAfterComma:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onAutoRemoveLoraAfterCommaChange",_n),this.gradioAPI.setData("autoRemoveLoraAfterComma",_n).then($n=>{}).catch($n=>{}))},immediate:!1},useNovelAiWeightSymbol:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onUseNovelAiWeightSymbolChange",_n),this.gradioAPI.setData("useNovelAiWeightSymbol",_n).then($n=>{}).catch($n=>{}))},immediate:!1},autoRemoveBeforeLineComma:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onAutoRemoveBeforeLineCommaChange",_n),this.gradioAPI.setData("autoRemoveBeforeLineComma",_n).then($n=>{}).catch($n=>{}))}},enableTooltip:{handler:function(_n,Cn){this.startWatchSave&&(localStorage.setItem("phystonPromptEnableTooltip",_n?"true":"false"),this.updateTippyState(),this.gradioAPI.setData("enableTooltip",_n).then($n=>{}).catch($n=>{}))},immediate:!1},translateApi:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onTranslateApiChange",_n,Cn),this.updateTranslateApiConfig(),this.gradioAPI.setData("translateApi",_n).then($n=>{}).catch($n=>{}))},immediate:!1},tagCompleteFile:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onTagCompleteFileChange",_n,Cn),this.gradioAPI.setData("tagCompleteFile",_n).then($n=>{}).catch($n=>{}))},immediate:!1},groupTagsColor:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onGroupTagsColorChange",_n,Cn),this.gradioAPI.setData("groupTagsColor",_n).then($n=>{}).catch($n=>{}))},deep:!0,immediate:!1},groupTagsTranslate:{handler:function(_n,Cn){this.startWatchSave&&(console.log("onGroupTagsTranslateChange",_n,Cn),this.gradioAPI.setData("groupTagsTranslate",_n).then($n=>{}).catch($n=>{}))},immediate:!1},onlyCsvOnAuto(){this.startWatchSave&&(console.log("onOnlyCsvOnAutoChange",this.onlyCsvOnAuto),this.gradioAPI.setData("onlyCsvOnAuto",this.onlyCsvOnAuto).then(_n=>{}).catch(_n=>{}))},extraNetworksWidth(){this.startWatchSave&&(this.extraNetworksWidthTimer&&clearTimeout(this.extraNetworksWidthTimer),this.extraNetworksWidthTimer=setTimeout(()=>{console.log("onExtraNetworksWidthChange",this.extraNetworksWidth),this.gradioAPI.setData("extraNetworksWidth",this.extraNetworksWidth).then(_n=>{}).catch(_n=>{})},500))},extraNetworksHeight(){this.startWatchSave&&(this.extraNetworksHeightTimer&&clearTimeout(this.extraNetworksHeightTimer),this.extraNetworksHeightTimer=setTimeout(()=>{console.log("onExtraNetworksHeightChange",this.extraNetworksHeight),this.gradioAPI.setData("extraNetworksHeight",this.extraNetworksHeight).then(_n=>{}).catch(_n=>{})},500))}},mounted(){common$1.loadCSS("toastr.min.css","physton-prompt-toastr",!0,!0,!1),common$1.loadCSS("tippy.css","physton-prompt-tippy",!0,!0,!1),common$1.loadCSS("vue3-colorpicker.css","physton-prompt-vue3-colorpicker",!0,!0,!1),common$1.loadCSS("animate.min.css","physton-prompt-animate",!0,!0,!1),common$1.loadCSS("main.min.css","physton-prompt-main",!0);let Cn=new URLSearchParams(window.location.search).get("__theme");["dark","light"].includes(Cn)&&(this.theme=Cn,common$1.gradioApp().classList.contains(this.theme)||common$1.gradioApp().classList.add(this.theme)),setTimeout(()=>{var Bn,Ln,In;let $n=!1,Nn=!1;if(localStorage.getItem("SD-LOBE-SETTING")||localStorage.getItem("SD-KITCHEN-SETTING")||(In=(Ln=(Bn=document.querySelector('head > meta[name="application-name"]'))==null?void 0:Bn.content)==null?void 0:Ln.includes)!=null&&In.call(Ln,"Lobe")){let Pn=document.getElementsByTagName("link");for(let Dn=0;Dn<Pn.length;Dn++){let Hn=Pn[Dn];if(Hn.href.includes("lobehub/")){$n=!0;break}else Hn.href.includes("kitchen-theme")&&(Nn=!0)}}$n?common$1.gradioApp().classList.add("physton-prompt-lobehub"):Nn&&common$1.gradioApp().classList.add("physton-prompt-kitchen")},3e3),this.gradioAPI.getConfig().then($n=>{console.log("config:",$n),this.languageCode=$n.i18n.default,this.translateApi=$n.translate_apis.default,this.translateApis=$n.translate_apis.apis,this.python=$n.python,this.packagesState=$n.packages_state;let Nn={};$n.i18n.languages.forEach(Bn=>{Nn[Bn.code]=Bn}),this.languages=Nn,this.init()}).catch($n=>{this.$toastr.error("Connection to backend API service failed. Please manually refresh the webpage. If it still doesn't work, please restart the WebUI.<br/>连接到后台接口服务失败请手动再刷新一次网页。如果还是不行请重启WebUI。<br/><br/>"+$n.message,globals.shortName,{timeOut:2e4}),console.log($n)})},methods:{getLang(_n){return common$1.getLang(_n,this.languageCode,this.languages)},init(){this.loadExtraNetworks();let _n=["languageCode","autoTranslate","autoTranslateToEnglish","autoTranslateToLocal","autoRemoveSpace","autoRemoveLastComma","autoKeepWeightZero","autoKeepWeightOne","autoBreakBeforeWrap","autoBreakAfterWrap","autoRemoveLoraBeforeComma","autoRemoveLoraAfterComma","useNovelAiWeightSymbol","autoRemoveBeforeLineComma","translateApi","enableTooltip","tagCompleteFile","onlyCsvOnAuto","extensionSelect.minimalist","groupTagsColor","groupTagsTranslate","blacklist","cancelBlacklistConfirm","hotkey","extraNetworksWidth","extraNetworksHeight"];this.prompts.forEach(Cn=>{_n.push(Cn.hideDefaultInputKey),_n.push(Cn.autoLoadWebuiPromptKey),_n.push(Cn.hidePanelKey),_n.push(Cn.hideGroupTagsKey)}),this.gradioAPI.getDatas(_n).then(Cn=>{if(Cn.languageCode!==null){let $n=!1;for(let Nn in this.languages)if(this.languages[Nn].code===Cn.languageCode){$n=!0;break}$n&&(this.languageCode=Cn.languageCode,this.$forceUpdate(),this.gradioAPI.setData("languageCode",this.languageCode))}else{let $n=navigator.language||navigator.userLanguage||"";if($n){for(let Nn in this.languages)if(common$1.isSameLang(this.languages[Nn].code,$n)){this.languageCode=this.languages[Nn].code,this.$forceUpdate(),this.gradioAPI.setData("languageCode",this.languageCode);break}}}if(this.canOneTranslate=common$1.canOneTranslate(this.languageCode),Cn.autoTranslateToEnglish!==null&&(this.autoTranslateToEnglish=Cn.autoTranslateToEnglish),Cn.autoTranslateToLocal!==null&&(this.autoTranslateToLocal=Cn.autoTranslateToLocal),Cn.autoTranslate!==null?this.canOneTranslate?(this.autoTranslate=Cn.autoTranslate,this.autoTranslateToEnglish=this.autoTranslate,this.autoTranslateToLocal=this.autoTranslate):this.autoTranslate=!1:this.canOneTranslate?(this.autoTranslate=this.autoTranslateToEnglish||this.autoTranslateToLocal,this.autoTranslateToEnglish=!0,this.autoTranslateToLocal=!0):this.autoTranslate=!1,Cn.autoRemoveSpace!==null&&(this.autoRemoveSpace=Cn.autoRemoveSpace),Cn.autoRemoveLastComma!==null&&(this.autoRemoveLastComma=Cn.autoRemoveLastComma),Cn.autoKeepWeightZero!==null&&(this.autoKeepWeightZero=Cn.autoKeepWeightZero),Cn.autoKeepWeightOne!==null&&(this.autoKeepWeightOne=Cn.autoKeepWeightOne),Cn.autoBreakBeforeWrap!==null&&(this.autoBreakBeforeWrap=Cn.autoBreakBeforeWrap),Cn.autoBreakAfterWrap!==null&&(this.autoBreakAfterWrap=Cn.autoBreakAfterWrap),Cn.autoRemoveLoraBeforeComma!==null&&(this.autoRemoveLoraBeforeComma=Cn.autoRemoveLoraBeforeComma),Cn.autoRemoveLoraAfterComma!==null&&(this.autoRemoveLoraAfterComma=Cn.autoRemoveLoraAfterComma),Cn.useNovelAiWeightSymbol!==null&&(this.useNovelAiWeightSymbol=Cn.useNovelAiWeightSymbol),Cn.autoRemoveBeforeLineComma!==null&&(this.autoRemoveBeforeLineComma=Cn.autoRemoveBeforeLineComma),Cn.enableTooltip!==null&&(this.enableTooltip=Cn.enableTooltip),localStorage.setItem("phystonPromptEnableTooltip",this.enableTooltip?"true":"false"),this.updateTippyState(),Cn.translateApi!==null&&(this.translateApi=Cn.translateApi),Cn.tagCompleteFile!==null&&(this.tagCompleteFile=Cn.tagCompleteFile,this.$nextTick(()=>{this.$refs.translateSetting.getCSV(this.tagCompleteFile)})),Cn.onlyCsvOnAuto!==null&&(this.onlyCsvOnAuto=Cn.onlyCsvOnAuto),Cn["extensionSelect.minimalist"]===null&&this.gradioAPI.setData("extensionSelect.minimalist",!0),Cn.groupTagsColor!==null&&typeof Cn.groupTagsColor=="object"){this.groupTagsColor={};for(let $n in Cn.groupTagsColor){let Nn=Cn.groupTagsColor[$n];this.groupTagsColor[$n]=ref(common$1.fitterInputColor(Nn))}}Cn.groupTagsTranslate!==null&&(this.groupTagsTranslate=Cn.groupTagsTranslate),Cn.blacklist!==null&&(this.blacklist=this._handleBlacklist(Cn.blacklist)),Cn.cancelBlacklistConfirm!==null&&(this.cancelBlacklistConfirm=Cn.cancelBlacklistConfirm),Cn.hotkey!==null&&(this.hotkey=Cn.hotkey),Cn.extraNetworksWidth!==null&&(this.extraNetworksWidth=Cn.extraNetworksWidth),Cn.extraNetworksHeight!==null&&(this.extraNetworksHeight=Cn.extraNetworksHeight),this.updateTranslateApiConfig(),this.$refs.extensionCss.init(),this.prompts.forEach($n=>{Cn[$n.hideDefaultInputKey]!==null&&($n.hideDefaultInput=Cn[$n.hideDefaultInputKey]),Cn[$n.autoLoadWebuiPromptKey]!==null&&($n.autoLoadWebuiPrompt=Cn[$n.autoLoadWebuiPromptKey]),Cn[$n.hidePanelKey]!==null&&($n.hidePanel=Cn[$n.hidePanelKey]),Cn[$n.hideGroupTagsKey]!==null&&($n.hideGroupTags=Cn[$n.hideGroupTagsKey]),$n.$prompt=common$1.gradioApp().querySelector("#"+$n.prompt),$n.$textarea=$n.$prompt.getElementsByTagName("textarea")[0],$n.$steps=common$1.gradioApp().querySelector("#"+$n.steps)}),this.$nextTick(()=>{this.prompts.forEach($n=>{const Nn=common$1.gradioApp().querySelector("#"+$n.id);console.log(Nn),$n.$prompt.parentElement.parentElement.after(Nn),$n.$prompt.parentElement.parentElement.style.display=$n.hideDefaultInput?"none":"flex"}),this.startWatchSave=!0}),this.handlePaste(),this.loadGroupTags()})},loadGroupTags(){this.gradioAPI.getGroupTags(this.languageCode).then(_n=>{if(!_n||_n==="")this.groupTags=[];else try{this.groupTags=jsYaml.load(_n),Array.isArray(this.groupTags)||(this.groupTags=[])}catch(Cn){console.log(Cn),this.groupTags=[]}this._handleGroupTags()})},_handleGroupTags(){let _n={toEn:new Map,toLocal:new Map},Cn=($n,Nn)=>{[$n,$n.replace(/\_/g," "),$n.replace(/\-/g," ")].forEach(Ln=>{if(_n.toLocal.has(Ln)){let In=_n.toLocal.get(Ln);In.includes(Nn)||In.push(Nn)}else _n.toLocal.set(Ln,[Nn])}),_n.toEn.set(Nn,$n)};this.groupTags.forEach(($n,Nn)=>{$n.type=$n.type||"",$n.tabKey="groupTags-"+Nn,$n.groups.forEach((Bn,Ln)=>{if(Bn.type=Bn.type||"",Bn.tabKey="subGroupTags-"+Nn+"-"+Ln,Bn.type=="wrap")return;let In=common$1.getTagsColorKey($n.name,Bn.name);this.groupTagsColor[In]||(this.groupTagsColor[In]=ref(common$1.fitterInputColor(Bn.color)));for(let Pn in Bn.tags){if(!Pn)continue;this.groupTagsColorKeyCache[Pn]=In;let Dn=Bn.tags[Pn];!Dn||Pn==Dn||Cn(Pn,Dn)}})}),this.groupTagsTranslateCache=_n},updateTippyState(){for(const _n of this.$tippyList)this.enableTooltip?_n.enable():_n.disable()},updateTranslateApiConfig(){this.gradioAPI.getData("translate_api."+this.translateApi).then(_n=>{let Cn={};const $n=common$1.getTranslateApiItem(this.translateApis,this.translateApi);if($n.config){for(const Nn of $n.config)$n.type==="translators"&&Nn.key==="region"&&!_n.region?Cn[Nn.key]=this.languageCode==="zh_CN"||this.languageCode==="zh_HK"||this.languageCode==="zh_TW"?"China":"EN":_n?Cn[Nn.key]=_n[Nn.key]:Cn[Nn.key]=Nn.default||"";Cn.concurrent=$n.concurrent||0}this.translateApiConfig=Cn})},onPromptFormatClick(_n){this.$refs.promptFormat.open(_n)},onBlacklistClick(_n){this.$refs.blacklist.open(_n)},onHotkeyClick(_n){this.$refs.hotkey.open(_n)},onSelectLanguageClick(_n){this.$refs.selectLanguage.open(_n)},onTranslateApiClick(){this.$refs.translateSetting.open(this.translateApi)},onSelectThemeClick(){this.$refs.extensionCss.open()},handlePaste(){if(typeof gradioApp!="function")return;const _n=gradioApp().querySelectorAll("#paste");!_n||_n.length<=0||_n.forEach((Cn,$n)=>{const Nn=Cn.cloneNode(!0);Nn.id="paste-new-"+$n,Nn.innerHTML="🗒",Cn.parentNode.insertBefore(Nn,Cn.nextSibling),Nn.addEventListener("click",()=>{this.pasteBtn=Cn,this.openPastePopup()}),this.pasteTitle=Cn.title})},openPastePopup(){this.pasteContent="",this.pasteLoading=!1,this.showPastePopup=!0},closePastePopup(){this.showPastePopup=!1},onClickPasteSubmit(){this.pasteLoading=!0;const _n=get_uiCurrentTabContent();let Cn=null,$n=null,Nn=null,Bn=null,Ln=[];for(const In of this.prompts)In.tab==_n.id&&(console.log(In),Ln.push(In.id),In.neg?($n=In.$textarea,Bn=In.$prompt):(Cn=In.$textarea,Nn=In.$prompt));if(!Cn||!Nn||!Bn){this.pasteLoading=!1;return}Cn.value=this.pasteContent,Cn.dispatchEvent(new Event("input")),this.pasteBtn.dispatchEvent(new Event("click")),setTimeout(()=>{let In=0,Pn=0;In=setInterval(()=>{if(Pn++,Pn>100){this.pasteLoading=!1,clearInterval(In);return}Nn.getElementsByClassName("hide").length>0&&Bn.getElementsByClassName("hide").length>0&&(this.pasteLoading=!1,this.closePastePopup(),clearInterval(In),common$1.hideCompleteResults(Cn),common$1.hideCompleteResults($n),Ln.forEach((Dn,Hn)=>{setTimeout(()=>{this.$refs[Dn][0].onTextareaChange(!0)},1e3)}))},100)},1e3)},onUpdateHideDefaultInput(_n,Cn){const $n=this.prompts.find(Nn=>Nn.id==_n);$n&&($n.hideDefaultInput=Cn,this.gradioAPI.setData($n.hideDefaultInputKey,$n.hideDefaultInput),$n.$prompt.parentElement.parentElement.style.display=$n.hideDefaultInput?"none":"flex")},onUpdateAutoLoadWebuiPrompt(_n,Cn){const $n=this.prompts.find(Nn=>Nn.id==_n);$n&&($n.autoLoadWebuiPrompt=Cn,this.gradioAPI.setData($n.autoLoadWebuiPromptKey,$n.autoLoadWebuiPrompt))},onUpdateHidePanel(_n,Cn){const $n=this.prompts.find(Nn=>Nn.id==_n);$n&&($n.hidePanel=Cn,this.gradioAPI.setData($n.hidePanelKey,$n.hidePanel))},onUpdateHideGroupTags(_n,Cn){const $n=this.prompts.find(Nn=>Nn.id==_n);$n&&($n.hideGroupTags=Cn,this.gradioAPI.setData($n.hideGroupTagsKey,$n.hideGroupTags))},onShowHistory(_n,Cn){this.$refs.favorite.hide(),this.historyCurrentPrompt=_n;const $n=this.prompts.find(Nn=>Nn.id==_n);$n&&this.$refs.history.show($n.historyKey,Cn)},onUseHistory(_n){if(!this.historyCurrentPrompt)return;const Cn=this.prompts.find($n=>$n.id==this.historyCurrentPrompt);Cn&&this.$refs[Cn.id][0].useFavorite(_n)},onShowFavorite(_n,Cn){this.$refs.history.hide(),this.favoriteCurrentPrompt=_n;const $n=this.prompts.find(Nn=>Nn.id==_n);$n&&this.$refs.favorite.show($n.favoriteKey,Cn)},onUseFavorite(_n){if(!this.favoriteCurrentPrompt)return;const Cn=this.prompts.find($n=>$n.id==this.favoriteCurrentPrompt);Cn&&this.$refs[Cn.id][0].useFavorite(_n)},onRefreshFavorites(_n){this.$refs.favorite.getFavorites(_n)},onShowChatgpt(_n,Cn){this.chatgptCurrentPrompt=_n,this.prompts.find(Nn=>Nn.id==_n)&&this.$refs.chatgptPrompt.open()},onUseChatgpt(_n){if(!this.chatgptCurrentPrompt)return;const Cn=this.prompts.find($n=>$n.id==this.chatgptCurrentPrompt);Cn&&this.$refs[Cn.id][0].useChatgpt(_n)},onShowAbout(){this.$refs.about.open()},onSwitchTheme(){this.theme=this.theme==="dark"?"light":"dark";let _n=window.location.href,Cn=new URL(_n),$n=new URLSearchParams(Cn.search);$n.has("__theme")?$n.set("__theme",this.theme):$n.append("__theme",this.theme);let Nn=Cn.origin+Cn.pathname+"?"+$n.toString();window.location.href=Nn},_handleBlacklist(_n){var Cn,$n,Nn,Bn,Ln,In;return _n={..._n},_n.prompt=(Cn=_n.prompt)==null?void 0:Cn.slice().map(Pn=>Pn.toLowerCase()),_n.negative_prompt=($n=_n.negative_prompt)==null?void 0:$n.slice().map(Pn=>Pn.toLowerCase()),_n.lora=(Nn=_n.lora)==null?void 0:Nn.slice().map(Pn=>Pn.toLowerCase()),_n.lycoris=(Bn=_n.lycoris)==null?void 0:Bn.slice().map(Pn=>Pn.toLowerCase()),_n.embedding=(Ln=_n.embedding)==null?void 0:Ln.slice().map(Pn=>Pn.toLowerCase()),_n.translate=(In=_n.translate)==null?void 0:In.slice().map(Pn=>Pn.toLowerCase()),_n},onUpdateBlacklist(_n,Cn){this.blacklist=this._handleBlacklist(_n),typeof Cn=="boolean"&&(this.cancelBlacklistConfirm=Cn)},onUpdateHotkey(_n){this.hotkey=_n},onShowExtraNetworks(_n,Cn,$n,Nn,Bn){this.$refs.extraNetworksPopup.show(_n,Cn,$n,Nn,Bn)},onHideExtraNetworks(){this.$refs.extraNetworksPopup.hide()},onRefreshExtraNetworks(){this._loadExtraNetworks()}}},_hoisted_1={class:"paste-popup-title"},_hoisted_2={class:"paste-popup-body"},_hoisted_3=["placeholder"],_hoisted_4={key:1,class:"paste-submit"};function _sfc_render(_n,Cn,$n,Nn,Bn,Ln){const In=resolveComponent("physton-prompt"),Pn=resolveComponent("translate-setting"),Dn=resolveComponent("select-language"),Hn=resolveComponent("prompt-format"),Wn=resolveComponent("blacklist"),Xn=resolveComponent("hotkey"),Gn=resolveComponent("history"),rr=resolveComponent("favorite"),nr=resolveComponent("extension-css"),Yo=resolveComponent("packages-state"),ei=resolveComponent("chatgpt-prompt"),ti=resolveComponent("about"),ui=resolveComponent("extra-networks-popup"),mi=resolveComponent("icon-svg");return openBlock(),createElementBlock("div",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.prompts,Xo=>(openBlock(),createElementBlock(Fragment,{key:Xo.name},[Xo.$textarea?(openBlock(),createBlock(In,{key:0,id:Xo.id,ref_for:!0,ref:Xo.id,name:Xo.name,neg:Xo.neg,textarea:Xo.$textarea,steps:Xo.$steps,"language-code":Bn.languageCode,"onUpdate:languageCode":Cn[0]||(Cn[0]=vi=>Bn.languageCode=vi),"translate-apis":Bn.translateApis,languages:Bn.languages,"history-key":Xo.historyKey,"onClick:showHistory":vi=>Ln.onShowHistory(Xo.id,vi),"favorite-key":Xo.favoriteKey,onRefreshFavorites:Ln.onRefreshFavorites,"onClick:showFavorite":vi=>Ln.onShowFavorite(Xo.id,vi),"can-one-translate":Bn.canOneTranslate,"onUpdate:canOneTranslate":Cn[1]||(Cn[1]=vi=>Bn.canOneTranslate=vi),"auto-translate":Bn.autoTranslate,"onUpdate:autoTranslate":Cn[2]||(Cn[2]=vi=>Bn.autoTranslate=vi),"auto-translate-to-english":Bn.autoTranslateToEnglish,"onUpdate:autoTranslateToEnglish":Cn[3]||(Cn[3]=vi=>Bn.autoTranslateToEnglish=vi),"auto-translate-to-local":Bn.autoTranslateToLocal,"onUpdate:autoTranslateToLocal":Cn[4]||(Cn[4]=vi=>Bn.autoTranslateToLocal=vi),"auto-remove-space":Bn.autoRemoveSpace,"onUpdate:autoRemoveSpace":Cn[5]||(Cn[5]=vi=>Bn.autoRemoveSpace=vi),"auto-remove-last-comma":Bn.autoRemoveLastComma,"onUpdate:autoRemoveLastComma":Cn[6]||(Cn[6]=vi=>Bn.autoRemoveLastComma=vi),"auto-keep-weight-zero":Bn.autoKeepWeightZero,"onUpdate:autoKeepWeightZero":Cn[7]||(Cn[7]=vi=>Bn.autoKeepWeightZero=vi),"auto-keep-weight-one":Bn.autoKeepWeightOne,"onUpdate:autoKeepWeightOne":Cn[8]||(Cn[8]=vi=>Bn.autoKeepWeightOne=vi),"auto-break-before-wrap":Bn.autoBreakBeforeWrap,"onUpdate:autoBreakBeforeWrap":Cn[9]||(Cn[9]=vi=>Bn.autoBreakBeforeWrap=vi),"auto-break-after-wrap":Bn.autoBreakAfterWrap,"onUpdate:autoBreakAfterWrap":Cn[10]||(Cn[10]=vi=>Bn.autoBreakAfterWrap=vi),"auto-remove-lora-before-comma":Bn.autoRemoveLoraBeforeComma,"onUpdate:autoRemoveLoraBeforeComma":Cn[11]||(Cn[11]=vi=>Bn.autoRemoveLoraBeforeComma=vi),"auto-remove-lora-after-comma":Bn.autoRemoveLoraAfterComma,"onUpdate:autoRemoveLoraAfterComma":Cn[12]||(Cn[12]=vi=>Bn.autoRemoveLoraAfterComma=vi),"use-novel-ai-weight-symbol":Bn.useNovelAiWeightSymbol,"onUpdate:useNovelAiWeightSymbol":Cn[13]||(Cn[13]=vi=>Bn.useNovelAiWeightSymbol=vi),"auto-remove-before-line-comma":Bn.autoRemoveBeforeLineComma,"onUpdate:autoRemoveBeforeLineComma":Cn[14]||(Cn[14]=vi=>Bn.autoRemoveBeforeLineComma=vi),"hide-default-input":Xo.hideDefaultInput,"onUpdate:hideDefaultInput":vi=>Ln.onUpdateHideDefaultInput(Xo.id,vi),"auto-load-webui-prompt":Xo.autoLoadWebuiPrompt,"onUpdate:autoLoadWebuiPrompt":vi=>Ln.onUpdateAutoLoadWebuiPrompt(Xo.id,vi),"hide-panel":Xo.hidePanel,"onUpdate:hidePanel":vi=>Ln.onUpdateHidePanel(Xo.id,vi),"enable-tooltip":Bn.enableTooltip,"onUpdate:enableTooltip":Cn[15]||(Cn[15]=vi=>Bn.enableTooltip=vi),"translate-api":Bn.translateApi,"onUpdate:translateApi":Cn[16]||(Cn[16]=vi=>Bn.translateApi=vi),"translate-api-config":Bn.translateApiConfig,"onClick:translateApi":Ln.onTranslateApiClick,"onClick:promptFormat":Ln.onPromptFormatClick,"onClick:blacklist":Ln.onBlacklistClick,"onClick:hotkey":Ln.onHotkeyClick,"tag-complete-file":Bn.tagCompleteFile,"onUpdate:tagCompleteFile":Cn[17]||(Cn[17]=vi=>Bn.tagCompleteFile=vi),"only-csv-on-auto":Bn.onlyCsvOnAuto,"onUpdate:onlyCsvOnAuto":Cn[18]||(Cn[18]=vi=>Bn.onlyCsvOnAuto=vi),"group-tags-translate":Bn.groupTagsTranslate,"onUpdate:groupTagsTranslate":Cn[19]||(Cn[19]=vi=>Bn.groupTagsTranslate=vi),"onClick:selectLanguage":Ln.onSelectLanguageClick,"onClick:selectTheme":Ln.onSelectThemeClick,"onClick:showChatgpt":vi=>Ln.onShowChatgpt(Xo.id,vi),"extra-networks":Bn.extraNetworks,loras:Bn.loras,lycos:Bn.lycos,embeddings:Bn.embeddings,version:Bn.version,"latest-version":Bn.latestVersion,"is-latest-version":Bn.isLatestVersion,"onClick:showAbout":Ln.onShowAbout,theme:Bn.theme,"onClick:switchTheme":Ln.onSwitchTheme,"group-tags":Bn.groupTags,"hide-group-tags":Xo.hideGroupTags,"group-tags-color":Bn.groupTagsColor,"onUpdate:groupTagsColor":Cn[20]||(Cn[20]=vi=>Bn.groupTagsColor=vi),"group-tags-color-key-cache":Bn.groupTagsColorKeyCache,"onUpdate:hideGroupTags":vi=>Ln.onUpdateHideGroupTags(Xo.id,vi),"group-tags-translate-cache":Bn.groupTagsTranslateCache,"extra-networks-width":Bn.extraNetworksWidth,"onUpdate:extraNetworksWidth":Cn[21]||(Cn[21]=vi=>Bn.extraNetworksWidth=vi),"extra-networks-height":Bn.extraNetworksHeight,"onUpdate:extraNetworksHeight":Cn[22]||(Cn[22]=vi=>Bn.extraNetworksHeight=vi),blacklist:Bn.blacklist,"cancel-blacklist-confirm":Bn.cancelBlacklistConfirm,"onUpdate:blacklist":Ln.onUpdateBlacklist,hotkey:Bn.hotkey,onShowExtraNetworks:Ln.onShowExtraNetworks,onHideExtraNetworks:Ln.onHideExtraNetworks,onRefreshExtraNetworks:Ln.onRefreshExtraNetworks},null,8,["id","name","neg","textarea","steps","language-code","translate-apis","languages","history-key","onClick:showHistory","favorite-key","onRefreshFavorites","onClick:showFavorite","can-one-translate","auto-translate","auto-translate-to-english","auto-translate-to-local","auto-remove-space","auto-remove-last-comma","auto-keep-weight-zero","auto-keep-weight-one","auto-break-before-wrap","auto-break-after-wrap","auto-remove-lora-before-comma","auto-remove-lora-after-comma","use-novel-ai-weight-symbol","auto-remove-before-line-comma","hide-default-input","onUpdate:hideDefaultInput","auto-load-webui-prompt","onUpdate:autoLoadWebuiPrompt","hide-panel","onUpdate:hidePanel","enable-tooltip","translate-api","translate-api-config","onClick:translateApi","onClick:promptFormat","onClick:blacklist","onClick:hotkey","tag-complete-file","only-csv-on-auto","group-tags-translate","onClick:selectLanguage","onClick:selectTheme","onClick:showChatgpt","extra-networks","loras","lycos","embeddings","version","latest-version","is-latest-version","onClick:showAbout","theme","onClick:switchTheme","group-tags","hide-group-tags","group-tags-color","group-tags-color-key-cache","onUpdate:hideGroupTags","group-tags-translate-cache","extra-networks-width","extra-networks-height","blacklist","cancel-blacklist-confirm","onUpdate:blacklist","hotkey","onShowExtraNetworks","onHideExtraNetworks","onRefreshExtraNetworks"])):createCommentVNode("",!0)],64))),128)),createVNode(Pn,{ref:"translateSetting","language-code":Bn.languageCode,"onUpdate:languageCode":Cn[23]||(Cn[23]=Xo=>Bn.languageCode=Xo),"translate-apis":Bn.translateApis,languages:Bn.languages,"onForceUpdate:translateApi":Ln.updateTranslateApiConfig,"tag-complete-file":Bn.tagCompleteFile,"onUpdate:tagCompleteFile":Cn[24]||(Cn[24]=Xo=>Bn.tagCompleteFile=Xo),"only-csv-on-auto":Bn.onlyCsvOnAuto,"onUpdate:onlyCsvOnAuto":Cn[25]||(Cn[25]=Xo=>Bn.onlyCsvOnAuto=Xo),"group-tags-translate":Bn.groupTagsTranslate,"onUpdate:groupTagsTranslate":Cn[26]||(Cn[26]=Xo=>Bn.groupTagsTranslate=Xo),"translate-api":Bn.translateApi,"onUpdate:translateApi":Cn[27]||(Cn[27]=Xo=>Bn.translateApi=Xo)},null,8,["language-code","translate-apis","languages","onForceUpdate:translateApi","tag-complete-file","only-csv-on-auto","group-tags-translate","translate-api"]),createVNode(Dn,{ref:"selectLanguage","language-code":Bn.languageCode,"onUpdate:languageCode":Cn[28]||(Cn[28]=Xo=>Bn.languageCode=Xo),"translate-apis":Bn.translateApis,languages:Bn.languages,"translate-api":Bn.translateApi,"onUpdate:translateApi":Cn[29]||(Cn[29]=Xo=>Bn.translateApi=Xo),"tag-complete-file":Bn.tagCompleteFile,"onUpdate:tagCompleteFile":Cn[30]||(Cn[30]=Xo=>Bn.tagCompleteFile=Xo),"only-csv-on-auto":Bn.onlyCsvOnAuto,"onUpdate:onlyCsvOnAuto":Cn[31]||(Cn[31]=Xo=>Bn.onlyCsvOnAuto=Xo)},null,8,["language-code","translate-apis","languages","translate-api","tag-complete-file","only-csv-on-auto"]),createVNode(Hn,{ref:"promptFormat","language-code":Bn.languageCode,"onUpdate:languageCode":Cn[32]||(Cn[32]=Xo=>Bn.languageCode=Xo),"translate-apis":Bn.translateApis,languages:Bn.languages,"auto-remove-space":Bn.autoRemoveSpace,"onUpdate:autoRemoveSpace":Cn[33]||(Cn[33]=Xo=>Bn.autoRemoveSpace=Xo),"auto-remove-last-comma":Bn.autoRemoveLastComma,"onUpdate:autoRemoveLastComma":Cn[34]||(Cn[34]=Xo=>Bn.autoRemoveLastComma=Xo),"auto-keep-weight-zero":Bn.autoKeepWeightZero,"onUpdate:autoKeepWeightZero":Cn[35]||(Cn[35]=Xo=>Bn.autoKeepWeightZero=Xo),"auto-keep-weight-one":Bn.autoKeepWeightOne,"onUpdate:autoKeepWeightOne":Cn[36]||(Cn[36]=Xo=>Bn.autoKeepWeightOne=Xo),"auto-break-before-wrap":Bn.autoBreakBeforeWrap,"onUpdate:autoBreakBeforeWrap":Cn[37]||(Cn[37]=Xo=>Bn.autoBreakBeforeWrap=Xo),"auto-break-after-wrap":Bn.autoBreakAfterWrap,"onUpdate:autoBreakAfterWrap":Cn[38]||(Cn[38]=Xo=>Bn.autoBreakAfterWrap=Xo),"auto-remove-lora-before-comma":Bn.autoRemoveLoraBeforeComma,"onUpdate:autoRemoveLoraBeforeComma":Cn[39]||(Cn[39]=Xo=>Bn.autoRemoveLoraBeforeComma=Xo),"auto-remove-lora-after-comma":Bn.autoRemoveLoraAfterComma,"onUpdate:autoRemoveLoraAfterComma":Cn[40]||(Cn[40]=Xo=>Bn.autoRemoveLoraAfterComma=Xo),"use-novel-ai-weight-symbol":Bn.useNovelAiWeightSymbol,"onUpdate:useNovelAiWeightSymbol":Cn[41]||(Cn[41]=Xo=>Bn.useNovelAiWeightSymbol=Xo),"auto-remove-before-line-comma":Bn.autoRemoveBeforeLineComma,"onUpdate:autoRemoveBeforeLineComma":Cn[42]||(Cn[42]=Xo=>Bn.autoRemoveBeforeLineComma=Xo)},null,8,["language-code","translate-apis","languages","auto-remove-space","auto-remove-last-comma","auto-keep-weight-zero","auto-keep-weight-one","auto-break-before-wrap","auto-break-after-wrap","auto-remove-lora-before-comma","auto-remove-lora-after-comma","use-novel-ai-weight-symbol","auto-remove-before-line-comma"]),createVNode(Wn,{ref:"blacklist","language-code":Bn.languageCode,"onUpdate:languageCode":Cn[43]||(Cn[43]=Xo=>Bn.languageCode=Xo),"translate-apis":Bn.translateApis,languages:Bn.languages,"onUpdate:blacklist":Ln.onUpdateBlacklist},null,8,["language-code","translate-apis","languages","onUpdate:blacklist"]),createVNode(Xn,{ref:"hotkey","language-code":Bn.languageCode,"onUpdate:languageCode":Cn[44]||(Cn[44]=Xo=>Bn.languageCode=Xo),"translate-apis":Bn.translateApis,languages:Bn.languages,"default-hotkey":Bn.hotkey,"onUpdate:hotkey":Ln.onUpdateHotkey},null,8,["language-code","translate-apis","languages","default-hotkey","onUpdate:hotkey"]),createVNode(Gn,{ref:"history","language-code":Bn.languageCode,"onUpdate:languageCode":Cn[45]||(Cn[45]=Xo=>Bn.languageCode=Xo),"translate-apis":Bn.translateApis,languages:Bn.languages,"tag-complete-file":Bn.tagCompleteFile,"onUpdate:tagCompleteFile":Cn[46]||(Cn[46]=Xo=>Bn.tagCompleteFile=Xo),"only-csv-on-auto":Bn.onlyCsvOnAuto,"onUpdate:onlyCsvOnAuto":Cn[47]||(Cn[47]=Xo=>Bn.onlyCsvOnAuto=Xo),onRefreshFavorites:Ln.onRefreshFavorites,onUse:Ln.onUseHistory},null,8,["language-code","translate-apis","languages","tag-complete-file","only-csv-on-auto","onRefreshFavorites","onUse"]),createVNode(rr,{ref:"favorite","language-code":Bn.languageCode,"onUpdate:languageCode":Cn[48]||(Cn[48]=Xo=>Bn.languageCode=Xo),"translate-apis":Bn.translateApis,languages:Bn.languages,"tag-complete-file":Bn.tagCompleteFile,"onUpdate:tagCompleteFile":Cn[49]||(Cn[49]=Xo=>Bn.tagCompleteFile=Xo),"only-csv-on-auto":Bn.onlyCsvOnAuto,"onUpdate:onlyCsvOnAuto":Cn[50]||(Cn[50]=Xo=>Bn.onlyCsvOnAuto=Xo),onUse:Ln.onUseFavorite},null,8,["language-code","translate-apis","languages","tag-complete-file","only-csv-on-auto","onUse"]),createVNode(nr,{ref:"extensionCss","language-code":Bn.languageCode,"onUpdate:languageCode":Cn[51]||(Cn[51]=Xo=>Bn.languageCode=Xo),"translate-apis":Bn.translateApis,languages:Bn.languages},null,8,["language-code","translate-apis","languages"]),createVNode(Yo,{ref:"packagesState","language-code":Bn.languageCode,"onUpdate:languageCode":Cn[52]||(Cn[52]=Xo=>Bn.languageCode=Xo),"translate-apis":Bn.translateApis,languages:Bn.languages,"onClick:selectLanguage":Ln.onSelectLanguageClick,"packages-state":Bn.packagesState,python:Bn.python},null,8,["language-code","translate-apis","languages","onClick:selectLanguage","packages-state","python"]),createVNode(ei,{ref:"chatgptPrompt","language-code":Bn.languageCode,"onUpdate:languageCode":Cn[53]||(Cn[53]=Xo=>Bn.languageCode=Xo),"translate-apis":Bn.translateApis,languages:Bn.languages,onUse:Ln.onUseChatgpt},null,8,["language-code","translate-apis","languages","onUse"]),createVNode(ti,{ref:"about","language-code":Bn.languageCode,"onUpdate:languageCode":Cn[54]||(Cn[54]=Xo=>Bn.languageCode=Xo),"translate-apis":Bn.translateApis,languages:Bn.languages},null,8,["language-code","translate-apis","languages"]),createVNode(ui,{ref:"extraNetworksPopup","language-code":Bn.languageCode,"onUpdate:languageCode":Cn[55]||(Cn[55]=Xo=>Bn.languageCode=Xo),"translate-apis":Bn.translateApis,languages:Bn.languages,"extra-networks":Bn.extraNetworks},null,8,["language-code","translate-apis","languages","extra-networks"]),Bn.showPastePopup?(openBlock(),createElementBlock("div",{key:0,class:"physton-paste-popup",onClick:Cn[60]||(Cn[60]=(...Xo)=>Ln.closePastePopup&&Ln.closePastePopup(...Xo))},[createBaseVNode("div",{class:"paste-popup-main",onClick:Cn[59]||(Cn[59]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",{class:"paste-popup-close",onClick:Cn[56]||(Cn[56]=(...Xo)=>Ln.closePastePopup&&Ln.closePastePopup(...Xo))},[createVNode(mi,{name:"close"})]),createBaseVNode("div",_hoisted_1,toDisplayString(Bn.pasteTitle),1),createBaseVNode("div",_hoisted_2,[withDirectives(createBaseVNode("textarea",{class:"paste-content","onUpdate:modelValue":Cn[57]||(Cn[57]=Xo=>Bn.pasteContent=Xo),placeholder:Ln.getLang("please_enter_the_content_here")},null,8,_hoisted_3),[[vModelText,Bn.pasteContent]]),Bn.pasteLoading?(openBlock(),createElementBlock("div",_hoisted_4,[createVNode(mi,{name:"loading"})])):(openBlock(),createElementBlock("div",{key:0,class:"paste-submit",onClick:Cn[58]||(Cn[58]=(...Xo)=>Ln.onClickPasteSubmit&&Ln.onClickPasteSubmit(...Xo))},"Submit"))])])])):createCommentVNode("",!0)])}const App=_export_sfc(_sfc_main,[["render",_sfc_render]]);var toastr$1={exports:{}},jquery={exports:{}};/*!
* jQuery JavaScript Library v3.6.4
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2023-03-08T15:28Z
*/var hasRequiredJquery;function requireJquery(){return hasRequiredJquery||(hasRequiredJquery=1,function(_n){(function(Cn,$n){_n.exports=Cn.document?$n(Cn,!0):function(Nn){if(!Nn.document)throw new Error("jQuery requires a window with a document");return $n(Nn)}})(typeof window<"u"?window:commonjsGlobal,function(Cn,$n){var Nn=[],Bn=Object.getPrototypeOf,Ln=Nn.slice,In=Nn.flat?function(Rn){return Nn.flat.call(Rn)}:function(Rn){return Nn.concat.apply([],Rn)},Pn=Nn.push,Dn=Nn.indexOf,Hn={},Wn=Hn.toString,Xn=Hn.hasOwnProperty,Gn=Xn.toString,rr=Gn.call(Object),nr={},Yo=function(Fn){return typeof Fn=="function"&&typeof Fn.nodeType!="number"&&typeof Fn.item!="function"},ei=function(Fn){return Fn!=null&&Fn===Fn.window},ti=Cn.document,ui={type:!0,src:!0,nonce:!0,noModule:!0};function mi(Rn,Fn,Un){Un=Un||ti;var Yn,qo,Go=Un.createElement("script");if(Go.text=Rn,Fn)for(Yn in ui)qo=Fn[Yn]||Fn.getAttribute&&Fn.getAttribute(Yn),qo&&Go.setAttribute(Yn,qo);Un.head.appendChild(Go).parentNode.removeChild(Go)}function Xo(Rn){return Rn==null?Rn+"":typeof Rn=="object"||typeof Rn=="function"?Hn[Wn.call(Rn)]||"object":typeof Rn}var vi="3.6.4",zn=function(Rn,Fn){return new zn.fn.init(Rn,Fn)};zn.fn=zn.prototype={jquery:vi,constructor:zn,length:0,toArray:function(){return Ln.call(this)},get:function(Rn){return Rn==null?Ln.call(this):Rn<0?this[Rn+this.length]:this[Rn]},pushStack:function(Rn){var Fn=zn.merge(this.constructor(),Rn);return Fn.prevObject=this,Fn},each:function(Rn){return zn.each(this,Rn)},map:function(Rn){return this.pushStack(zn.map(this,function(Fn,Un){return Rn.call(Fn,Un,Fn)}))},slice:function(){return this.pushStack(Ln.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(zn.grep(this,function(Rn,Fn){return(Fn+1)%2}))},odd:function(){return this.pushStack(zn.grep(this,function(Rn,Fn){return Fn%2}))},eq:function(Rn){var Fn=this.length,Un=+Rn+(Rn<0?Fn:0);return this.pushStack(Un>=0&&Un<Fn?[this[Un]]:[])},end:function(){return this.prevObject||this.constructor()},push:Pn,sort:Nn.sort,splice:Nn.splice},zn.extend=zn.fn.extend=function(){var Rn,Fn,Un,Yn,qo,Go,Jo=arguments[0]||{},li=1,ii=arguments.length,gi=!1;for(typeof Jo=="boolean"&&(gi=Jo,Jo=arguments[li]||{},li++),typeof Jo!="object"&&!Yo(Jo)&&(Jo={}),li===ii&&(Jo=this,li--);li<ii;li++)if((Rn=arguments[li])!=null)for(Fn in Rn)Yn=Rn[Fn],!(Fn==="__proto__"||Jo===Yn)&&(gi&&Yn&&(zn.isPlainObject(Yn)||(qo=Array.isArray(Yn)))?(Un=Jo[Fn],qo&&!Array.isArray(Un)?Go=[]:!qo&&!zn.isPlainObject(Un)?Go={}:Go=Un,qo=!1,Jo[Fn]=zn.extend(gi,Go,Yn)):Yn!==void 0&&(Jo[Fn]=Yn));return Jo},zn.extend({expando:"jQuery"+(vi+Math.random()).replace(/\D/g,""),isReady:!0,error:function(Rn){throw new Error(Rn)},noop:function(){},isPlainObject:function(Rn){var Fn,Un;return!Rn||Wn.call(Rn)!=="[object Object]"?!1:(Fn=Bn(Rn),Fn?(Un=Xn.call(Fn,"constructor")&&Fn.constructor,typeof Un=="function"&&Gn.call(Un)===rr):!0)},isEmptyObject:function(Rn){var Fn;for(Fn in Rn)return!1;return!0},globalEval:function(Rn,Fn,Un){mi(Rn,{nonce:Fn&&Fn.nonce},Un)},each:function(Rn,Fn){var Un,Yn=0;if(Ni(Rn))for(Un=Rn.length;Yn<Un&&Fn.call(Rn[Yn],Yn,Rn[Yn])!==!1;Yn++);else for(Yn in Rn)if(Fn.call(Rn[Yn],Yn,Rn[Yn])===!1)break;return Rn},makeArray:function(Rn,Fn){var Un=Fn||[];return Rn!=null&&(Ni(Object(Rn))?zn.merge(Un,typeof Rn=="string"?[Rn]:Rn):Pn.call(Un,Rn)),Un},inArray:function(Rn,Fn,Un){return Fn==null?-1:Dn.call(Fn,Rn,Un)},merge:function(Rn,Fn){for(var Un=+Fn.length,Yn=0,qo=Rn.length;Yn<Un;Yn++)Rn[qo++]=Fn[Yn];return Rn.length=qo,Rn},grep:function(Rn,Fn,Un){for(var Yn,qo=[],Go=0,Jo=Rn.length,li=!Un;Go<Jo;Go++)Yn=!Fn(Rn[Go],Go),Yn!==li&&qo.push(Rn[Go]);return qo},map:function(Rn,Fn,Un){var Yn,qo,Go=0,Jo=[];if(Ni(Rn))for(Yn=Rn.length;Go<Yn;Go++)qo=Fn(Rn[Go],Go,Un),qo!=null&&Jo.push(qo);else for(Go in Rn)qo=Fn(Rn[Go],Go,Un),qo!=null&&Jo.push(qo);return In(Jo)},guid:1,support:nr}),typeof Symbol=="function"&&(zn.fn[Symbol.iterator]=Nn[Symbol.iterator]),zn.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(Rn,Fn){Hn["[object "+Fn+"]"]=Fn.toLowerCase()});function Ni(Rn){var Fn=!!Rn&&"length"in Rn&&Rn.length,Un=Xo(Rn);return Yo(Rn)||ei(Rn)?!1:Un==="array"||Fn===0||typeof Fn=="number"&&Fn>0&&Fn-1 in Rn}var ni=function(Rn){var Fn,Un,Yn,qo,Go,Jo,li,ii,gi,ki,Ri,Ci,Ai,ra,ma,na,La,Ba,Wa,wa="sizzle"+1*new Date,ga=Rn.document,Ha=0,Ea=0,Na=Os(),Es=Os(),$s=Os(),Ua=Os(),as=function(Zo,ai){return Zo===ai&&(Ri=!0),0},ss={}.hasOwnProperty,ja=[],ns=ja.pop,qa=ja.push,rs=ja.push,Sl=ja.slice,ls=function(Zo,ai){for(var di=0,$i=Zo.length;di<$i;di++)if(Zo[di]===ai)return di;return-1},Gs="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ka="[\\x20\\t\\r\\n\\f]",cs="(?:\\\\[\\da-fA-F]{1,6}"+ka+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Al="\\["+ka+"*("+cs+")(?:"+ka+"*([*^$|!~]?=)"+ka+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+cs+"))|)"+ka+"*\\]",Ys=":("+cs+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Al+")*)|.*)\\)|)",hc=new RegExp(ka+"+","g"),Ns=new RegExp("^"+ka+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ka+"+$","g"),gc=new RegExp("^"+ka+"*,"+ka+"*"),xl=new RegExp("^"+ka+"*([>+~]|"+ka+")"+ka+"*"),mc=new RegExp(ka+"|>"),vc=new RegExp(Ys),yc=new RegExp("^"+cs+"$"),Bs={ID:new RegExp("^#("+cs+")"),CLASS:new RegExp("^\\.("+cs+")"),TAG:new RegExp("^("+cs+"|[*])"),ATTR:new RegExp("^"+Al),PSEUDO:new RegExp("^"+Ys),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ka+"*(even|odd|(([+-]|)(\\d*)n|)"+ka+"*(?:([+-]|)"+ka+"*(\\d+)|))"+ka+"*\\)|)","i"),bool:new RegExp("^(?:"+Gs+")$","i"),needsContext:new RegExp("^"+ka+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ka+"*((?:-\\d)?\\d*)"+ka+"*\\)|)(?=[^-]|$)","i")},bc=/HTML$/i,_c=/^(?:input|select|textarea|button)$/i,Cc=/^h\d$/i,ks=/^[^{]+\{\s*\[native \w/,Ec=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Xs=/[+~]/,es=new RegExp("\\\\[\\da-fA-F]{1,6}"+ka+"?|\\\\([^\\r\\n\\f])","g"),ts=function(Zo,ai){var di="0x"+Zo.slice(1)-65536;return ai||(di<0?String.fromCharCode(di+65536):String.fromCharCode(di>>10|55296,di&1023|56320))},$l=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Nl=function(Zo,ai){return ai?Zo==="\0"?"<22>":Zo.slice(0,-1)+"\\"+Zo.charCodeAt(Zo.length-1).toString(16)+" ":"\\"+Zo},Bl=function(){Ci()},kc=Is(function(Zo){return Zo.disabled===!0&&Zo.nodeName.toLowerCase()==="fieldset"},{dir:"parentNode",next:"legend"});try{rs.apply(ja=Sl.call(ga.childNodes),ga.childNodes),ja[ga.childNodes.length].nodeType}catch{rs={apply:ja.length?function(ai,di){qa.apply(ai,Sl.call(di))}:function(ai,di){for(var $i=ai.length,hi=0;ai[$i++]=di[hi++];);ai.length=$i-1}}}function Ta(Zo,ai,di,$i){var hi,Oi,Di,Gi,Zi,sa,aa,ua=ai&&ai.ownerDocument,ba=ai?ai.nodeType:9;if(di=di||[],typeof Zo!="string"||!Zo||ba!==1&&ba!==9&&ba!==11)return di;if(!$i&&(Ci(ai),ai=ai||Ai,ma)){if(ba!==11&&(Zi=Ec.exec(Zo)))if(hi=Zi[1]){if(ba===9)if(Di=ai.getElementById(hi)){if(Di.id===hi)return di.push(Di),di}else return di;else if(ua&&(Di=ua.getElementById(hi))&&Wa(ai,Di)&&Di.id===hi)return di.push(Di),di}else{if(Zi[2])return rs.apply(di,ai.getElementsByTagName(Zo)),di;if((hi=Zi[3])&&Un.getElementsByClassName&&ai.getElementsByClassName)return rs.apply(di,ai.getElementsByClassName(hi)),di}if(Un.qsa&&!Ua[Zo+" "]&&(!na||!na.test(Zo))&&(ba!==1||ai.nodeName.toLowerCase()!=="object")){if(aa=Zo,ua=ai,ba===1&&(mc.test(Zo)||xl.test(Zo))){for(ua=Xs.test(Zo)&&Qs(ai.parentNode)||ai,(ua!==ai||!Un.scope)&&((Gi=ai.getAttribute("id"))?Gi=Gi.replace($l,Nl):ai.setAttribute("id",Gi=wa)),sa=Jo(Zo),Oi=sa.length;Oi--;)sa[Oi]=(Gi?"#"+Gi:":scope")+" "+Ls(sa[Oi]);aa=sa.join(",")}try{return rs.apply(di,ua.querySelectorAll(aa)),di}catch{Ua(Zo,!0)}finally{Gi===wa&&ai.removeAttribute("id")}}}return ii(Zo.replace(Ns,"$1"),ai,di,$i)}function Os(){var Zo=[];function ai(di,$i){return Zo.push(di+" ")>Yn.cacheLength&&delete ai[Zo.shift()],ai[di+" "]=$i}return ai}function Xa(Zo){return Zo[wa]=!0,Zo}function Ga(Zo){var ai=Ai.createElement("fieldset");try{return!!Zo(ai)}catch{return!1}finally{ai.parentNode&&ai.parentNode.removeChild(ai),ai=null}}function Js(Zo,ai){for(var di=Zo.split("|"),$i=di.length;$i--;)Yn.attrHandle[di[$i]]=ai}function Ol(Zo,ai){var di=ai&&Zo,$i=di&&Zo.nodeType===1&&ai.nodeType===1&&Zo.sourceIndex-ai.sourceIndex;if($i)return $i;if(di){for(;di=di.nextSibling;)if(di===ai)return-1}return Zo?1:-1}function wc(Zo){return function(ai){var di=ai.nodeName.toLowerCase();return di==="input"&&ai.type===Zo}}function Tc(Zo){return function(ai){var di=ai.nodeName.toLowerCase();return(di==="input"||di==="button")&&ai.type===Zo}}function Ll(Zo){return function(ai){return"form"in ai?ai.parentNode&&ai.disabled===!1?"label"in ai?"label"in ai.parentNode?ai.parentNode.disabled===Zo:ai.disabled===Zo:ai.isDisabled===Zo||ai.isDisabled!==!Zo&&kc(ai)===Zo:ai.disabled===Zo:"label"in ai?ai.disabled===Zo:!1}}function us(Zo){return Xa(function(ai){return ai=+ai,Xa(function(di,$i){for(var hi,Oi=Zo([],di.length,ai),Di=Oi.length;Di--;)di[hi=Oi[Di]]&&(di[hi]=!($i[hi]=di[hi]))})})}function Qs(Zo){return Zo&&typeof Zo.getElementsByTagName<"u"&&Zo}Un=Ta.support={},Go=Ta.isXML=function(Zo){var ai=Zo&&Zo.namespaceURI,di=Zo&&(Zo.ownerDocument||Zo).documentElement;return!bc.test(ai||di&&di.nodeName||"HTML")},Ci=Ta.setDocument=function(Zo){var ai,di,$i=Zo?Zo.ownerDocument||Zo:ga;return $i==Ai||$i.nodeType!==9||!$i.documentElement||(Ai=$i,ra=Ai.documentElement,ma=!Go(Ai),ga!=Ai&&(di=Ai.defaultView)&&di.top!==di&&(di.addEventListener?di.addEventListener("unload",Bl,!1):di.attachEvent&&di.attachEvent("onunload",Bl)),Un.scope=Ga(function(hi){return ra.appendChild(hi).appendChild(Ai.createElement("div")),typeof hi.querySelectorAll<"u"&&!hi.querySelectorAll(":scope fieldset div").length}),Un.cssHas=Ga(function(){try{return Ai.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),Un.attributes=Ga(function(hi){return hi.className="i",!hi.getAttribute("className")}),Un.getElementsByTagName=Ga(function(hi){return hi.appendChild(Ai.createComment("")),!hi.getElementsByTagName("*").length}),Un.getElementsByClassName=ks.test(Ai.getElementsByClassName),Un.getById=Ga(function(hi){return ra.appendChild(hi).id=wa,!Ai.getElementsByName||!Ai.getElementsByName(wa).length}),Un.getById?(Yn.filter.ID=function(hi){var Oi=hi.replace(es,ts);return function(Di){return Di.getAttribute("id")===Oi}},Yn.find.ID=function(hi,Oi){if(typeof Oi.getElementById<"u"&&ma){var Di=Oi.getElementById(hi);return Di?[Di]:[]}}):(Yn.filter.ID=function(hi){var Oi=hi.replace(es,ts);return function(Di){var Gi=typeof Di.getAttributeNode<"u"&&Di.getAttributeNode("id");return Gi&&Gi.value===Oi}},Yn.find.ID=function(hi,Oi){if(typeof Oi.getElementById<"u"&&ma){var Di,Gi,Zi,sa=Oi.getElementById(hi);if(sa){if(Di=sa.getAttributeNode("id"),Di&&Di.value===hi)return[sa];for(Zi=Oi.getElementsByName(hi),Gi=0;sa=Zi[Gi++];)if(Di=sa.getAttributeNode("id"),Di&&Di.value===hi)return[sa]}return[]}}),Yn.find.TAG=Un.getElementsByTagName?function(hi,Oi){if(typeof Oi.getElementsByTagName<"u")return Oi.getElementsByTagName(hi);if(Un.qsa)return Oi.querySelectorAll(hi)}:function(hi,Oi){var Di,Gi=[],Zi=0,sa=Oi.getElementsByTagName(hi);if(hi==="*"){for(;Di=sa[Zi++];)Di.nodeType===1&&Gi.push(Di);return Gi}return sa},Yn.find.CLASS=Un.getElementsByClassName&&function(hi,Oi){if(typeof Oi.getElementsByClassName<"u"&&ma)return Oi.getElementsByClassName(hi)},La=[],na=[],(Un.qsa=ks.test(Ai.querySelectorAll))&&(Ga(function(hi){var Oi;ra.appendChild(hi).innerHTML="<a id='"+wa+"'></a><select id='"+wa+"-\r\\' msallowcapture=''><option selected=''></option></select>",hi.querySelectorAll("[msallowcapture^='']").length&&na.push("[*^$]="+ka+`*(?:''|"")`),hi.querySelectorAll("[selected]").length||na.push("\\["+ka+"*(?:value|"+Gs+")"),hi.querySelectorAll("[id~="+wa+"-]").length||na.push("~="),Oi=Ai.createElement("input"),Oi.setAttribute("name",""),hi.appendChild(Oi),hi.querySelectorAll("[name='']").length||na.push("\\["+ka+"*name"+ka+"*="+ka+`*(?:''|"")`),hi.querySelectorAll(":checked").length||na.push(":checked"),hi.querySelectorAll("a#"+wa+"+*").length||na.push(".#.+[+~]"),hi.querySelectorAll("\\\f"),na.push("[\\r\\n\\f]")}),Ga(function(hi){hi.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var Oi=Ai.createElement("input");Oi.setAttribute("type","hidden"),hi.appendChild(Oi).setAttribute("name","D"),hi.querySelectorAll("[name=d]").length&&na.push("name"+ka+"*[*^$|!~]?="),hi.querySelectorAll(":enabled").length!==2&&na.push(":enabled",":disabled"),ra.appendChild(hi).disabled=!0,hi.querySelectorAll(":disabled").length!==2&&na.push(":enabled",":disabled"),hi.querySelectorAll("*,:x"),na.push(",.*:")})),(Un.matchesSelector=ks.test(Ba=ra.matches||ra.webkitMatchesSelector||ra.mozMatchesSelector||ra.oMatchesSelector||ra.msMatchesSelector))&&Ga(function(hi){Un.disconnectedMatch=Ba.call(hi,"*"),Ba.call(hi,"[s!='']:x"),La.push("!=",Ys)}),Un.cssHas||na.push(":has"),na=na.length&&new RegExp(na.join("|")),La=La.length&&new RegExp(La.join("|")),ai=ks.test(ra.compareDocumentPosition),Wa=ai||ks.test(ra.contains)?function(hi,Oi){var Di=hi.nodeType===9&&hi.documentElement||hi,Gi=Oi&&Oi.parentNode;return hi===Gi||!!(Gi&&Gi.nodeType===1&&(Di.contains?Di.contains(Gi):hi.compareDocumentPosition&&hi.compareDocumentPosition(Gi)&16))}:function(hi,Oi){if(Oi){for(;Oi=Oi.parentNode;)if(Oi===hi)return!0}return!1},as=ai?function(hi,Oi){if(hi===Oi)return Ri=!0,0;var Di=!hi.compareDocumentPosition-!Oi.compareDocumentPosition;return Di||(Di=(hi.ownerDocument||hi)==(Oi.ownerDocument||Oi)?hi.compareDocumentPosition(Oi):1,Di&1||!Un.sortDetached&&Oi.compareDocumentPosition(hi)===Di?hi==Ai||hi.ownerDocument==ga&&Wa(ga,hi)?-1:Oi==Ai||Oi.ownerDocument==ga&&Wa(ga,Oi)?1:ki?ls(ki,hi)-ls(ki,Oi):0:Di&4?-1:1)}:function(hi,Oi){if(hi===Oi)return Ri=!0,0;var Di,Gi=0,Zi=hi.parentNode,sa=Oi.parentNode,aa=[hi],ua=[Oi];if(!Zi||!sa)return hi==Ai?-1:Oi==Ai?1:Zi?-1:sa?1:ki?ls(ki,hi)-ls(ki,Oi):0;if(Zi===sa)return Ol(hi,Oi);for(Di=hi;Di=Di.parentNode;)aa.unshift(Di);for(Di=Oi;Di=Di.parentNode;)ua.unshift(Di);for(;aa[Gi]===ua[Gi];)Gi++;return Gi?Ol(aa[Gi],ua[Gi]):aa[Gi]==ga?-1:ua[Gi]==ga?1:0}),Ai},Ta.matches=function(Zo,ai){return Ta(Zo,null,null,ai)},Ta.matchesSelector=function(Zo,ai){if(Ci(Zo),Un.matchesSelector&&ma&&!Ua[ai+" "]&&(!La||!La.test(ai))&&(!na||!na.test(ai)))try{var di=Ba.call(Zo,ai);if(di||Un.disconnectedMatch||Zo.document&&Zo.document.nodeType!==11)return di}catch{Ua(ai,!0)}return Ta(ai,Ai,null,[Zo]).length>0},Ta.contains=function(Zo,ai){return(Zo.ownerDocument||Zo)!=Ai&&Ci(Zo),Wa(Zo,ai)},Ta.attr=function(Zo,ai){(Zo.ownerDocument||Zo)!=Ai&&Ci(Zo);var di=Yn.attrHandle[ai.toLowerCase()],$i=di&&ss.call(Yn.attrHandle,ai.toLowerCase())?di(Zo,ai,!ma):void 0;return $i!==void 0?$i:Un.attributes||!ma?Zo.getAttribute(ai):($i=Zo.getAttributeNode(ai))&&$i.specified?$i.value:null},Ta.escape=function(Zo){return(Zo+"").replace($l,Nl)},Ta.error=function(Zo){throw new Error("Syntax error, unrecognized expression: "+Zo)},Ta.uniqueSort=function(Zo){var ai,di=[],$i=0,hi=0;if(Ri=!Un.detectDuplicates,ki=!Un.sortStable&&Zo.slice(0),Zo.sort(as),Ri){for(;ai=Zo[hi++];)ai===Zo[hi]&&($i=di.push(hi));for(;$i--;)Zo.splice(di[$i],1)}return ki=null,Zo},qo=Ta.getText=function(Zo){var ai,di="",$i=0,hi=Zo.nodeType;if(hi){if(hi===1||hi===9||hi===11){if(typeof Zo.textContent=="string")return Zo.textContent;for(Zo=Zo.firstChild;Zo;Zo=Zo.nextSibling)di+=qo(Zo)}else if(hi===3||hi===4)return Zo.nodeValue}else for(;ai=Zo[$i++];)di+=qo(ai);return di},Yn=Ta.selectors={cacheLength:50,createPseudo:Xa,match:Bs,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(Zo){return Zo[1]=Zo[1].replace(es,ts),Zo[3]=(Zo[3]||Zo[4]||Zo[5]||"").replace(es,ts),Zo[2]==="~="&&(Zo[3]=" "+Zo[3]+" "),Zo.slice(0,4)},CHILD:function(Zo){return Zo[1]=Zo[1].toLowerCase(),Zo[1].slice(0,3)==="nth"?(Zo[3]||Ta.error(Zo[0]),Zo[4]=+(Zo[4]?Zo[5]+(Zo[6]||1):2*(Zo[3]==="even"||Zo[3]==="odd")),Zo[5]=+(Zo[7]+Zo[8]||Zo[3]==="odd")):Zo[3]&&Ta.error(Zo[0]),Zo},PSEUDO:function(Zo){var ai,di=!Zo[6]&&Zo[2];return Bs.CHILD.test(Zo[0])?null:(Zo[3]?Zo[2]=Zo[4]||Zo[5]||"":di&&vc.test(di)&&(ai=Jo(di,!0))&&(ai=di.indexOf(")",di.length-ai)-di.length)&&(Zo[0]=Zo[0].slice(0,ai),Zo[2]=di.slice(0,ai)),Zo.slice(0,3))}},filter:{TAG:function(Zo){var ai=Zo.replace(es,ts).toLowerCase();return Zo==="*"?function(){return!0}:function(di){return di.nodeName&&di.nodeName.toLowerCase()===ai}},CLASS:function(Zo){var ai=Na[Zo+" "];return ai||(ai=new RegExp("(^|"+ka+")"+Zo+"("+ka+"|$)"))&&Na(Zo,function(di){return ai.test(typeof di.className=="string"&&di.className||typeof di.getAttribute<"u"&&di.getAttribute("class")||"")})},ATTR:function(Zo,ai,di){return function($i){var hi=Ta.attr($i,Zo);return hi==null?ai==="!=":ai?(hi+="",ai==="="?hi===di:ai==="!="?hi!==di:ai==="^="?di&&hi.indexOf(di)===0:ai==="*="?di&&hi.indexOf(di)>-1:ai==="$="?di&&hi.slice(-di.length)===di:ai==="~="?(" "+hi.replace(hc," ")+" ").indexOf(di)>-1:ai==="|="?hi===di||hi.slice(0,di.length+1)===di+"-":!1):!0}},CHILD:function(Zo,ai,di,$i,hi){var Oi=Zo.slice(0,3)!=="nth",Di=Zo.slice(-4)!=="last",Gi=ai==="of-type";return $i===1&&hi===0?function(Zi){return!!Zi.parentNode}:function(Zi,sa,aa){var ua,ba,Sa,la,Ia,Da,Ka=Oi!==Di?"nextSibling":"previousSibling",$a=Zi.parentNode,ws=Gi&&Zi.nodeName.toLowerCase(),Ts=!aa&&!Gi,za=!1;if($a){if(Oi){for(;Ka;){for(la=Zi;la=la[Ka];)if(Gi?la.nodeName.toLowerCase()===ws:la.nodeType===1)return!1;Da=Ka=Zo==="only"&&!Da&&"nextSibling"}return!0}if(Da=[Di?$a.firstChild:$a.lastChild],Di&&Ts){for(la=$a,Sa=la[wa]||(la[wa]={}),ba=Sa[la.uniqueID]||(Sa[la.uniqueID]={}),ua=ba[Zo]||[],Ia=ua[0]===Ha&&ua[1],za=Ia&&ua[2],la=Ia&&$a.childNodes[Ia];la=++Ia&&la&&la[Ka]||(za=Ia=0)||Da.pop();)if(la.nodeType===1&&++za&&la===Zi){ba[Zo]=[Ha,Ia,za];break}}else if(Ts&&(la=Zi,Sa=la[wa]||(la[wa]={}),ba=Sa[la.uniqueID]||(Sa[la.uniqueID]={}),ua=ba[Zo]||[],Ia=ua[0]===Ha&&ua[1],za=Ia),za===!1)for(;(la=++Ia&&la&&la[Ka]||(za=Ia=0)||Da.pop())&&!((Gi?la.nodeName.toLowerCase()===ws:la.nodeType===1)&&++za&&(Ts&&(Sa=la[wa]||(la[wa]={}),ba=Sa[la.uniqueID]||(Sa[la.uniqueID]={}),ba[Zo]=[Ha,za]),la===Zi)););return za-=hi,za===$i||za%$i===0&&za/$i>=0}}},PSEUDO:function(Zo,ai){var di,$i=Yn.pseudos[Zo]||Yn.setFilters[Zo.toLowerCase()]||Ta.error("unsupported pseudo: "+Zo);return $i[wa]?$i(ai):$i.length>1?(di=[Zo,Zo,"",ai],Yn.setFilters.hasOwnProperty(Zo.toLowerCase())?Xa(function(hi,Oi){for(var Di,Gi=$i(hi,ai),Zi=Gi.length;Zi--;)Di=ls(hi,Gi[Zi]),hi[Di]=!(Oi[Di]=Gi[Zi])}):function(hi){return $i(hi,0,di)}):$i}},pseudos:{not:Xa(function(Zo){var ai=[],di=[],$i=li(Zo.replace(Ns,"$1"));return $i[wa]?Xa(function(hi,Oi,Di,Gi){for(var Zi,sa=$i(hi,null,Gi,[]),aa=hi.length;aa--;)(Zi=sa[aa])&&(hi[aa]=!(Oi[aa]=Zi))}):function(hi,Oi,Di){return ai[0]=hi,$i(ai,null,Di,di),ai[0]=null,!di.pop()}}),has:Xa(function(Zo){return function(ai){return Ta(Zo,ai).length>0}}),contains:Xa(function(Zo){return Zo=Zo.replace(es,ts),function(ai){return(ai.textContent||qo(ai)).indexOf(Zo)>-1}}),lang:Xa(function(Zo){return yc.test(Zo||"")||Ta.error("unsupported lang: "+Zo),Zo=Zo.replace(es,ts).toLowerCase(),function(ai){var di;do if(di=ma?ai.lang:ai.getAttribute("xml:lang")||ai.getAttribute("lang"))return di=di.toLowerCase(),di===Zo||di.indexOf(Zo+"-")===0;while((ai=ai.parentNode)&&ai.nodeType===1);return!1}}),target:function(Zo){var ai=Rn.location&&Rn.location.hash;return ai&&ai.slice(1)===Zo.id},root:function(Zo){return Zo===ra},focus:function(Zo){return Zo===Ai.activeElement&&(!Ai.hasFocus||Ai.hasFocus())&&!!(Zo.type||Zo.href||~Zo.tabIndex)},enabled:Ll(!1),disabled:Ll(!0),checked:function(Zo){var ai=Zo.nodeName.toLowerCase();return ai==="input"&&!!Zo.checked||ai==="option"&&!!Zo.selected},selected:function(Zo){return Zo.parentNode&&Zo.parentNode.selectedIndex,Zo.selected===!0},empty:function(Zo){for(Zo=Zo.firstChild;Zo;Zo=Zo.nextSibling)if(Zo.nodeType<6)return!1;return!0},parent:function(Zo){return!Yn.pseudos.empty(Zo)},header:function(Zo){return Cc.test(Zo.nodeName)},input:function(Zo){return _c.test(Zo.nodeName)},button:function(Zo){var ai=Zo.nodeName.toLowerCase();return ai==="input"&&Zo.type==="button"||ai==="button"},text:function(Zo){var ai;return Zo.nodeName.toLowerCase()==="input"&&Zo.type==="text"&&((ai=Zo.getAttribute("type"))==null||ai.toLowerCase()==="text")},first:us(function(){return[0]}),last:us(function(Zo,ai){return[ai-1]}),eq:us(function(Zo,ai,di){return[di<0?di+ai:di]}),even:us(function(Zo,ai){for(var di=0;di<ai;di+=2)Zo.push(di);return Zo}),odd:us(function(Zo,ai){for(var di=1;di<ai;di+=2)Zo.push(di);return Zo}),lt:us(function(Zo,ai,di){for(var $i=di<0?di+ai:di>ai?ai:di;--$i>=0;)Zo.push($i);return Zo}),gt:us(function(Zo,ai,di){for(var $i=di<0?di+ai:di;++$i<ai;)Zo.push($i);return Zo})}},Yn.pseudos.nth=Yn.pseudos.eq;for(Fn in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})Yn.pseudos[Fn]=wc(Fn);for(Fn in{submit:!0,reset:!0})Yn.pseudos[Fn]=Tc(Fn);function Il(){}Il.prototype=Yn.filters=Yn.pseudos,Yn.setFilters=new Il,Jo=Ta.tokenize=function(Zo,ai){var di,$i,hi,Oi,Di,Gi,Zi,sa=Es[Zo+" "];if(sa)return ai?0:sa.slice(0);for(Di=Zo,Gi=[],Zi=Yn.preFilter;Di;){(!di||($i=gc.exec(Di)))&&($i&&(Di=Di.slice($i[0].length)||Di),Gi.push(hi=[])),di=!1,($i=xl.exec(Di))&&(di=$i.shift(),hi.push({value:di,type:$i[0].replace(Ns," ")}),Di=Di.slice(di.length));for(Oi in Yn.filter)($i=Bs[Oi].exec(Di))&&(!Zi[Oi]||($i=Zi[Oi]($i)))&&(di=$i.shift(),hi.push({value:di,type:Oi,matches:$i}),Di=Di.slice(di.length));if(!di)break}return ai?Di.length:Di?Ta.error(Zo):Es(Zo,Gi).slice(0)};function Ls(Zo){for(var ai=0,di=Zo.length,$i="";ai<di;ai++)$i+=Zo[ai].value;return $i}function Is(Zo,ai,di){var $i=ai.dir,hi=ai.next,Oi=hi||$i,Di=di&&Oi==="parentNode",Gi=Ea++;return ai.first?function(Zi,sa,aa){for(;Zi=Zi[$i];)if(Zi.nodeType===1||Di)return Zo(Zi,sa,aa);return!1}:function(Zi,sa,aa){var ua,ba,Sa,la=[Ha,Gi];if(aa){for(;Zi=Zi[$i];)if((Zi.nodeType===1||Di)&&Zo(Zi,sa,aa))return!0}else for(;Zi=Zi[$i];)if(Zi.nodeType===1||Di)if(Sa=Zi[wa]||(Zi[wa]={}),ba=Sa[Zi.uniqueID]||(Sa[Zi.uniqueID]={}),hi&&hi===Zi.nodeName.toLowerCase())Zi=Zi[$i]||Zi;else{if((ua=ba[Oi])&&ua[0]===Ha&&ua[1]===Gi)return la[2]=ua[2];if(ba[Oi]=la,la[2]=Zo(Zi,sa,aa))return!0}return!1}}function Zs(Zo){return Zo.length>1?function(ai,di,$i){for(var hi=Zo.length;hi--;)if(!Zo[hi](ai,di,$i))return!1;return!0}:Zo[0]}function Sc(Zo,ai,di){for(var $i=0,hi=ai.length;$i<hi;$i++)Ta(Zo,ai[$i],di);return di}function Ps(Zo,ai,di,$i,hi){for(var Oi,Di=[],Gi=0,Zi=Zo.length,sa=ai!=null;Gi<Zi;Gi++)(Oi=Zo[Gi])&&(!di||di(Oi,$i,hi))&&(Di.push(Oi),sa&&ai.push(Gi));return Di}function el(Zo,ai,di,$i,hi,Oi){return $i&&!$i[wa]&&($i=el($i)),hi&&!hi[wa]&&(hi=el(hi,Oi)),Xa(function(Di,Gi,Zi,sa){var aa,ua,ba,Sa=[],la=[],Ia=Gi.length,Da=Di||Sc(ai||"*",Zi.nodeType?[Zi]:Zi,[]),Ka=Zo&&(Di||!ai)?Ps(Da,Sa,Zo,Zi,sa):Da,$a=di?hi||(Di?Zo:Ia||$i)?[]:Gi:Ka;if(di&&di(Ka,$a,Zi,sa),$i)for(aa=Ps($a,la),$i(aa,[],Zi,sa),ua=aa.length;ua--;)(ba=aa[ua])&&($a[la[ua]]=!(Ka[la[ua]]=ba));if(Di){if(hi||Zo){if(hi){for(aa=[],ua=$a.length;ua--;)(ba=$a[ua])&&aa.push(Ka[ua]=ba);hi(null,$a=[],aa,sa)}for(ua=$a.length;ua--;)(ba=$a[ua])&&(aa=hi?ls(Di,ba):Sa[ua])>-1&&(Di[aa]=!(Gi[aa]=ba))}}else $a=Ps($a===Gi?$a.splice(Ia,$a.length):$a),hi?hi(null,Gi,$a,sa):rs.apply(Gi,$a)})}function tl(Zo){for(var ai,di,$i,hi=Zo.length,Oi=Yn.relative[Zo[0].type],Di=Oi||Yn.relative[" "],Gi=Oi?1:0,Zi=Is(function(ua){return ua===ai},Di,!0),sa=Is(function(ua){return ls(ai,ua)>-1},Di,!0),aa=[function(ua,ba,Sa){var la=!Oi&&(Sa||ba!==gi)||((ai=ba).nodeType?Zi(ua,ba,Sa):sa(ua,ba,Sa));return ai=null,la}];Gi<hi;Gi++)if(di=Yn.relative[Zo[Gi].type])aa=[Is(Zs(aa),di)];else{if(di=Yn.filter[Zo[Gi].type].apply(null,Zo[Gi].matches),di[wa]){for($i=++Gi;$i<hi&&!Yn.relative[Zo[$i].type];$i++);return el(Gi>1&&Zs(aa),Gi>1&&Ls(Zo.slice(0,Gi-1).concat({value:Zo[Gi-2].type===" "?"*":""})).replace(Ns,"$1"),di,Gi<$i&&tl(Zo.slice(Gi,$i)),$i<hi&&tl(Zo=Zo.slice($i)),$i<hi&&Ls(Zo))}aa.push(di)}return Zs(aa)}function Ac(Zo,ai){var di=ai.length>0,$i=Zo.length>0,hi=function(Oi,Di,Gi,Zi,sa){var aa,ua,ba,Sa=0,la="0",Ia=Oi&&[],Da=[],Ka=gi,$a=Oi||$i&&Yn.find.TAG("*",sa),ws=Ha+=Ka==null?1:Math.random()||.1,Ts=$a.length;for(sa&&(gi=Di==Ai||Di||sa);la!==Ts&&(aa=$a[la])!=null;la++){if($i&&aa){for(ua=0,!Di&&aa.ownerDocument!=Ai&&(Ci(aa),Gi=!ma);ba=Zo[ua++];)if(ba(aa,Di||Ai,Gi)){Zi.push(aa);break}sa&&(Ha=ws)}di&&((aa=!ba&&aa)&&Sa--,Oi&&Ia.push(aa))}if(Sa+=la,di&&la!==Sa){for(ua=0;ba=ai[ua++];)ba(Ia,Da,Di,Gi);if(Oi){if(Sa>0)for(;la--;)Ia[la]||Da[la]||(Da[la]=ns.call(Zi));Da=Ps(Da)}rs.apply(Zi,Da),sa&&!Oi&&Da.length>0&&Sa+ai.length>1&&Ta.uniqueSort(Zi)}return sa&&(Ha=ws,gi=Ka),Ia};return di?Xa(hi):hi}return li=Ta.compile=function(Zo,ai){var di,$i=[],hi=[],Oi=$s[Zo+" "];if(!Oi){for(ai||(ai=Jo(Zo)),di=ai.length;di--;)Oi=tl(ai[di]),Oi[wa]?$i.push(Oi):hi.push(Oi);Oi=$s(Zo,Ac(hi,$i)),Oi.selector=Zo}return Oi},ii=Ta.select=function(Zo,ai,di,$i){var hi,Oi,Di,Gi,Zi,sa=typeof Zo=="function"&&Zo,aa=!$i&&Jo(Zo=sa.selector||Zo);if(di=di||[],aa.length===1){if(Oi=aa[0]=aa[0].slice(0),Oi.length>2&&(Di=Oi[0]).type==="ID"&&ai.nodeType===9&&ma&&Yn.relative[Oi[1].type]){if(ai=(Yn.find.ID(Di.matches[0].replace(es,ts),ai)||[])[0],ai)sa&&(ai=ai.parentNode);else return di;Zo=Zo.slice(Oi.shift().value.length)}for(hi=Bs.needsContext.test(Zo)?0:Oi.length;hi--&&(Di=Oi[hi],!Yn.relative[Gi=Di.type]);)if((Zi=Yn.find[Gi])&&($i=Zi(Di.matches[0].replace(es,ts),Xs.test(Oi[0].type)&&Qs(ai.parentNode)||ai))){if(Oi.splice(hi,1),Zo=$i.length&&Ls(Oi),!Zo)return rs.apply(di,$i),di;break}}return(sa||li(Zo,aa))($i,ai,!ma,di,!ai||Xs.test(Zo)&&Qs(ai.parentNode)||ai),di},Un.sortStable=wa.split("").sort(as).join("")===wa,Un.detectDuplicates=!!Ri,Ci(),Un.sortDetached=Ga(function(Zo){return Zo.compareDocumentPosition(Ai.createElement("fieldset"))&1}),Ga(function(Zo){return Zo.innerHTML="<a href='#'></a>",Zo.firstChild.getAttribute("href")==="#"})||Js("type|href|height|width",function(Zo,ai,di){if(!di)return Zo.getAttribute(ai,ai.toLowerCase()==="type"?1:2)}),(!Un.attributes||!Ga(function(Zo){return Zo.innerHTML="<input/>",Zo.firstChild.setAttribute("value",""),Zo.firstChild.getAttribute("value")===""}))&&Js("value",function(Zo,ai,di){if(!di&&Zo.nodeName.toLowerCase()==="input")return Zo.defaultValue}),Ga(function(Zo){return Zo.getAttribute("disabled")==null})||Js(Gs,function(Zo,ai,di){var $i;if(!di)return Zo[ai]===!0?ai.toLowerCase():($i=Zo.getAttributeNode(ai))&&$i.specified?$i.value:null}),Ta}(Cn);zn.find=ni,zn.expr=ni.selectors,zn.expr[":"]=zn.expr.pseudos,zn.uniqueSort=zn.unique=ni.uniqueSort,zn.text=ni.getText,zn.isXMLDoc=ni.isXML,zn.contains=ni.contains,zn.escapeSelector=ni.escape;var Qo=function(Rn,Fn,Un){for(var Yn=[],qo=Un!==void 0;(Rn=Rn[Fn])&&Rn.nodeType!==9;)if(Rn.nodeType===1){if(qo&&zn(Rn).is(Un))break;Yn.push(Rn)}return Yn},ri=function(Rn,Fn){for(var Un=[];Rn;Rn=Rn.nextSibling)Rn.nodeType===1&&Rn!==Fn&&Un.push(Rn);return Un},ci=zn.expr.match.needsContext;function pi(Rn,Fn){return Rn.nodeName&&Rn.nodeName.toLowerCase()===Fn.toLowerCase()}var yi=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Li(Rn,Fn,Un){return Yo(Fn)?zn.grep(Rn,function(Yn,qo){return!!Fn.call(Yn,qo,Yn)!==Un}):Fn.nodeType?zn.grep(Rn,function(Yn){return Yn===Fn!==Un}):typeof Fn!="string"?zn.grep(Rn,function(Yn){return Dn.call(Fn,Yn)>-1!==Un}):zn.filter(Fn,Rn,Un)}zn.filter=function(Rn,Fn,Un){var Yn=Fn[0];return Un&&(Rn=":not("+Rn+")"),Fn.length===1&&Yn.nodeType===1?zn.find.matchesSelector(Yn,Rn)?[Yn]:[]:zn.find.matches(Rn,zn.grep(Fn,function(qo){return qo.nodeType===1}))},zn.fn.extend({find:function(Rn){var Fn,Un,Yn=this.length,qo=this;if(typeof Rn!="string")return this.pushStack(zn(Rn).filter(function(){for(Fn=0;Fn<Yn;Fn++)if(zn.contains(qo[Fn],this))return!0}));for(Un=this.pushStack([]),Fn=0;Fn<Yn;Fn++)zn.find(Rn,qo[Fn],Un);return Yn>1?zn.uniqueSort(Un):Un},filter:function(Rn){return this.pushStack(Li(this,Rn||[],!1))},not:function(Rn){return this.pushStack(Li(this,Rn||[],!0))},is:function(Rn){return!!Li(this,typeof Rn=="string"&&ci.test(Rn)?zn(Rn):Rn||[],!1).length}});var ta,Yi=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,bi=zn.fn.init=function(Rn,Fn,Un){var Yn,qo;if(!Rn)return this;if(Un=Un||ta,typeof Rn=="string")if(Rn[0]==="<"&&Rn[Rn.length-1]===">"&&Rn.length>=3?Yn=[null,Rn,null]:Yn=Yi.exec(Rn),Yn&&(Yn[1]||!Fn))if(Yn[1]){if(Fn=Fn instanceof zn?Fn[0]:Fn,zn.merge(this,zn.parseHTML(Yn[1],Fn&&Fn.nodeType?Fn.ownerDocument||Fn:ti,!0)),yi.test(Yn[1])&&zn.isPlainObject(Fn))for(Yn in Fn)Yo(this[Yn])?this[Yn](Fn[Yn]):this.attr(Yn,Fn[Yn]);return this}else return qo=ti.getElementById(Yn[2]),qo&&(this[0]=qo,this.length=1),this;else return!Fn||Fn.jquery?(Fn||Un).find(Rn):this.constructor(Fn).find(Rn);else{if(Rn.nodeType)return this[0]=Rn,this.length=1,this;if(Yo(Rn))return Un.ready!==void 0?Un.ready(Rn):Rn(zn)}return zn.makeArray(Rn,this)};bi.prototype=zn.fn,ta=zn(ti);var xi=/^(?:parents|prev(?:Until|All))/,Ii={children:!0,contents:!0,next:!0,prev:!0};zn.fn.extend({has:function(Rn){var Fn=zn(Rn,this),Un=Fn.length;return this.filter(function(){for(var Yn=0;Yn<Un;Yn++)if(zn.contains(this,Fn[Yn]))return!0})},closest:function(Rn,Fn){var Un,Yn=0,qo=this.length,Go=[],Jo=typeof Rn!="string"&&zn(Rn);if(!ci.test(Rn)){for(;Yn<qo;Yn++)for(Un=this[Yn];Un&&Un!==Fn;Un=Un.parentNode)if(Un.nodeType<11&&(Jo?Jo.index(Un)>-1:Un.nodeType===1&&zn.find.matchesSelector(Un,Rn))){Go.push(Un);break}}return this.pushStack(Go.length>1?zn.uniqueSort(Go):Go)},index:function(Rn){return Rn?typeof Rn=="string"?Dn.call(zn(Rn),this[0]):Dn.call(this,Rn.jquery?Rn[0]:Rn):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(Rn,Fn){return this.pushStack(zn.uniqueSort(zn.merge(this.get(),zn(Rn,Fn))))},addBack:function(Rn){return this.add(Rn==null?this.prevObject:this.prevObject.filter(Rn))}});function da(Rn,Fn){for(;(Rn=Rn[Fn])&&Rn.nodeType!==1;);return Rn}zn.each({parent:function(Rn){var Fn=Rn.parentNode;return Fn&&Fn.nodeType!==11?Fn:null},parents:function(Rn){return Qo(Rn,"parentNode")},parentsUntil:function(Rn,Fn,Un){return Qo(Rn,"parentNode",Un)},next:function(Rn){return da(Rn,"nextSibling")},prev:function(Rn){return da(Rn,"previousSibling")},nextAll:function(Rn){return Qo(Rn,"nextSibling")},prevAll:function(Rn){return Qo(Rn,"previousSibling")},nextUntil:function(Rn,Fn,Un){return Qo(Rn,"nextSibling",Un)},prevUntil:function(Rn,Fn,Un){return Qo(Rn,"previousSibling",Un)},siblings:function(Rn){return ri((Rn.parentNode||{}).firstChild,Rn)},children:function(Rn){return ri(Rn.firstChild)},contents:function(Rn){return Rn.contentDocument!=null&&Bn(Rn.contentDocument)?Rn.contentDocument:(pi(Rn,"template")&&(Rn=Rn.content||Rn),zn.merge([],Rn.childNodes))}},function(Rn,Fn){zn.fn[Rn]=function(Un,Yn){var qo=zn.map(this,Fn,Un);return Rn.slice(-5)!=="Until"&&(Yn=Un),Yn&&typeof Yn=="string"&&(qo=zn.filter(Yn,qo)),this.length>1&&(Ii[Rn]||zn.uniqueSort(qo),xi.test(Rn)&&qo.reverse()),this.pushStack(qo)}});var oa=/[^\x20\t\r\n\f]+/g;function Si(Rn){var Fn={};return zn.each(Rn.match(oa)||[],function(Un,Yn){Fn[Yn]=!0}),Fn}zn.Callbacks=function(Rn){Rn=typeof Rn=="string"?Si(Rn):zn.extend({},Rn);var Fn,Un,Yn,qo,Go=[],Jo=[],li=-1,ii=function(){for(qo=qo||Rn.once,Yn=Fn=!0;Jo.length;li=-1)for(Un=Jo.shift();++li<Go.length;)Go[li].apply(Un[0],Un[1])===!1&&Rn.stopOnFalse&&(li=Go.length,Un=!1);Rn.memory||(Un=!1),Fn=!1,qo&&(Un?Go=[]:Go="")},gi={add:function(){return Go&&(Un&&!Fn&&(li=Go.length-1,Jo.push(Un)),function ki(Ri){zn.each(Ri,function(Ci,Ai){Yo(Ai)?(!Rn.unique||!gi.has(Ai))&&Go.push(Ai):Ai&&Ai.length&&Xo(Ai)!=="string"&&ki(Ai)})}(arguments),Un&&!Fn&&ii()),this},remove:function(){return zn.each(arguments,function(ki,Ri){for(var Ci;(Ci=zn.inArray(Ri,Go,Ci))>-1;)Go.splice(Ci,1),Ci<=li&&li--}),this},has:function(ki){return ki?zn.inArray(ki,Go)>-1:Go.length>0},empty:function(){return Go&&(Go=[]),this},disable:function(){return qo=Jo=[],Go=Un="",this},disabled:function(){return!Go},lock:function(){return qo=Jo=[],!Un&&!Fn&&(Go=Un=""),this},locked:function(){return!!qo},fireWith:function(ki,Ri){return qo||(Ri=Ri||[],Ri=[ki,Ri.slice?Ri.slice():Ri],Jo.push(Ri),Fn||ii()),this},fire:function(){return gi.fireWith(this,arguments),this},fired:function(){return!!Yn}};return gi};function Mi(Rn){return Rn}function ji(Rn){throw Rn}function Ki(Rn,Fn,Un,Yn){var qo;try{Rn&&Yo(qo=Rn.promise)?qo.call(Rn).done(Fn).fail(Un):Rn&&Yo(qo=Rn.then)?qo.call(Rn,Fn,Un):Fn.apply(void 0,[Rn].slice(Yn))}catch(Go){Un.apply(void 0,[Go])}}zn.extend({Deferred:function(Rn){var Fn=[["notify","progress",zn.Callbacks("memory"),zn.Callbacks("memory"),2],["resolve","done",zn.Callbacks("once memory"),zn.Callbacks("once memory"),0,"resolved"],["reject","fail",zn.Callbacks("once memory"),zn.Callbacks("once memory"),1,"rejected"]],Un="pending",Yn={state:function(){return Un},always:function(){return qo.done(arguments).fail(arguments),this},catch:function(Go){return Yn.then(null,Go)},pipe:function(){var Go=arguments;return zn.Deferred(function(Jo){zn.each(Fn,function(li,ii){var gi=Yo(Go[ii[4]])&&Go[ii[4]];qo[ii[1]](function(){var ki=gi&&gi.apply(this,arguments);ki&&Yo(ki.promise)?ki.promise().progress(Jo.notify).done(Jo.resolve).fail(Jo.reject):Jo[ii[0]+"With"](this,gi?[ki]:arguments)})}),Go=null}).promise()},then:function(Go,Jo,li){var ii=0;function gi(ki,Ri,Ci,Ai){return function(){var ra=this,ma=arguments,na=function(){var Ba,Wa;if(!(ki<ii)){if(Ba=Ci.apply(ra,ma),Ba===Ri.promise())throw new TypeError("Thenable self-resolution");Wa=Ba&&(typeof Ba=="object"||typeof Ba=="function")&&Ba.then,Yo(Wa)?Ai?Wa.call(Ba,gi(ii,Ri,Mi,Ai),gi(ii,Ri,ji,Ai)):(ii++,Wa.call(Ba,gi(ii,Ri,Mi,Ai),gi(ii,Ri,ji,Ai),gi(ii,Ri,Mi,Ri.notifyWith))):(Ci!==Mi&&(ra=void 0,ma=[Ba]),(Ai||Ri.resolveWith)(ra,ma))}},La=Ai?na:function(){try{na()}catch(Ba){zn.Deferred.exceptionHook&&zn.Deferred.exceptionHook(Ba,La.stackTrace),ki+1>=ii&&(Ci!==ji&&(ra=void 0,ma=[Ba]),Ri.rejectWith(ra,ma))}};ki?La():(zn.Deferred.getStackHook&&(La.stackTrace=zn.Deferred.getStackHook()),Cn.setTimeout(La))}}return zn.Deferred(function(ki){Fn[0][3].add(gi(0,ki,Yo(li)?li:Mi,ki.notifyWith)),Fn[1][3].add(gi(0,ki,Yo(Go)?Go:Mi)),Fn[2][3].add(gi(0,ki,Yo(Jo)?Jo:ji))}).promise()},promise:function(Go){return Go!=null?zn.extend(Go,Yn):Yn}},qo={};return zn.each(Fn,function(Go,Jo){var li=Jo[2],ii=Jo[5];Yn[Jo[1]]=li.add,ii&&li.add(function(){Un=ii},Fn[3-Go][2].disable,Fn[3-Go][3].disable,Fn[0][2].lock,Fn[0][3].lock),li.add(Jo[3].fire),qo[Jo[0]]=function(){return qo[Jo[0]+"With"](this===qo?void 0:this,arguments),this},qo[Jo[0]+"With"]=li.fireWith}),Yn.promise(qo),Rn&&Rn.call(qo,qo),qo},when:function(Rn){var Fn=arguments.length,Un=Fn,Yn=Array(Un),qo=Ln.call(arguments),Go=zn.Deferred(),Jo=function(li){return function(ii){Yn[li]=this,qo[li]=arguments.length>1?Ln.call(arguments):ii,--Fn||Go.resolveWith(Yn,qo)}};if(Fn<=1&&(Ki(Rn,Go.done(Jo(Un)).resolve,Go.reject,!Fn),Go.state()==="pending"||Yo(qo[Un]&&qo[Un].then)))return Go.then();for(;Un--;)Ki(qo[Un],Jo(Un),Go.reject);return Go.promise()}});var zi=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;zn.Deferred.exceptionHook=function(Rn,Fn){Cn.console&&Cn.console.warn&&Rn&&zi.test(Rn.name)&&Cn.console.warn("jQuery.Deferred exception: "+Rn.message,Rn.stack,Fn)},zn.readyException=function(Rn){Cn.setTimeout(function(){throw Rn})};var ea=zn.Deferred();zn.fn.ready=function(Rn){return ea.then(Rn).catch(function(Fn){zn.readyException(Fn)}),this},zn.extend({isReady:!1,readyWait:1,ready:function(Rn){(Rn===!0?--zn.readyWait:zn.isReady)||(zn.isReady=!0,!(Rn!==!0&&--zn.readyWait>0)&&ea.resolveWith(ti,[zn]))}}),zn.ready.then=ea.then;function ca(){ti.removeEventListener("DOMContentLoaded",ca),Cn.removeEventListener("load",ca),zn.ready()}ti.readyState==="complete"||ti.readyState!=="loading"&&!ti.documentElement.doScroll?Cn.setTimeout(zn.ready):(ti.addEventListener("DOMContentLoaded",ca),Cn.addEventListener("load",ca));var qi=function(Rn,Fn,Un,Yn,qo,Go,Jo){var li=0,ii=Rn.length,gi=Un==null;if(Xo(Un)==="object"){qo=!0;for(li in Un)qi(Rn,Fn,li,Un[li],!0,Go,Jo)}else if(Yn!==void 0&&(qo=!0,Yo(Yn)||(Jo=!0),gi&&(Jo?(Fn.call(Rn,Yn),Fn=null):(gi=Fn,Fn=function(ki,Ri,Ci){return gi.call(zn(ki),Ci)})),Fn))for(;li<ii;li++)Fn(Rn[li],Un,Jo?Yn:Yn.call(Rn[li],li,Fn(Rn[li],Un)));return qo?Rn:gi?Fn.call(Rn):ii?Fn(Rn[0],Un):Go},fa=/^-ms-/,ya=/-([a-z])/g;function oi(Rn,Fn){return Fn.toUpperCase()}function si(Rn){return Rn.replace(fa,"ms-").replace(ya,oi)}var _i=function(Rn){return Rn.nodeType===1||Rn.nodeType===9||!+Rn.nodeType};function Ti(){this.expando=zn.expando+Ti.uid++}Ti.uid=1,Ti.prototype={cache:function(Rn){var Fn=Rn[this.expando];return Fn||(Fn={},_i(Rn)&&(Rn.nodeType?Rn[this.expando]=Fn:Object.defineProperty(Rn,this.expando,{value:Fn,configurable:!0}))),Fn},set:function(Rn,Fn,Un){var Yn,qo=this.cache(Rn);if(typeof Fn=="string")qo[si(Fn)]=Un;else for(Yn in Fn)qo[si(Yn)]=Fn[Yn];return qo},get:function(Rn,Fn){return Fn===void 0?this.cache(Rn):Rn[this.expando]&&Rn[this.expando][si(Fn)]},access:function(Rn,Fn,Un){return Fn===void 0||Fn&&typeof Fn=="string"&&Un===void 0?this.get(Rn,Fn):(this.set(Rn,Fn,Un),Un!==void 0?Un:Fn)},remove:function(Rn,Fn){var Un,Yn=Rn[this.expando];if(Yn!==void 0){if(Fn!==void 0)for(Array.isArray(Fn)?Fn=Fn.map(si):(Fn=si(Fn),Fn=Fn in Yn?[Fn]:Fn.match(oa)||[]),Un=Fn.length;Un--;)delete Yn[Fn[Un]];(Fn===void 0||zn.isEmptyObject(Yn))&&(Rn.nodeType?Rn[this.expando]=void 0:delete Rn[this.expando])}},hasData:function(Rn){var Fn=Rn[this.expando];return Fn!==void 0&&!zn.isEmptyObject(Fn)}};var fi=new Ti,Ei=new Ti,Fi=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Pi=/[A-Z]/g;function Vi(Rn){return Rn==="true"?!0:Rn==="false"?!1:Rn==="null"?null:Rn===+Rn+""?+Rn:Fi.test(Rn)?JSON.parse(Rn):Rn}function Bi(Rn,Fn,Un){var Yn;if(Un===void 0&&Rn.nodeType===1)if(Yn="data-"+Fn.replace(Pi,"-$&").toLowerCase(),Un=Rn.getAttribute(Yn),typeof Un=="string"){try{Un=Vi(Un)}catch{}Ei.set(Rn,Fn,Un)}else Un=void 0;return Un}zn.extend({hasData:function(Rn){return Ei.hasData(Rn)||fi.hasData(Rn)},data:function(Rn,Fn,Un){return Ei.access(Rn,Fn,Un)},removeData:function(Rn,Fn){Ei.remove(Rn,Fn)},_data:function(Rn,Fn,Un){return fi.access(Rn,Fn,Un)},_removeData:function(Rn,Fn){fi.remove(Rn,Fn)}}),zn.fn.extend({data:function(Rn,Fn){var Un,Yn,qo,Go=this[0],Jo=Go&&Go.attributes;if(Rn===void 0){if(this.length&&(qo=Ei.get(Go),Go.nodeType===1&&!fi.get(Go,"hasDataAttrs"))){for(Un=Jo.length;Un--;)Jo[Un]&&(Yn=Jo[Un].name,Yn.indexOf("data-")===0&&(Yn=si(Yn.slice(5)),Bi(Go,Yn,qo[Yn])));fi.set(Go,"hasDataAttrs",!0)}return qo}return typeof Rn=="object"?this.each(function(){Ei.set(this,Rn)}):qi(this,function(li){var ii;if(Go&&li===void 0)return ii=Ei.get(Go,Rn),ii!==void 0||(ii=Bi(Go,Rn),ii!==void 0)?ii:void 0;this.each(function(){Ei.set(this,Rn,li)})},null,Fn,arguments.length>1,null,!0)},removeData:function(Rn){return this.each(function(){Ei.remove(this,Rn)})}}),zn.extend({queue:function(Rn,Fn,Un){var Yn;if(Rn)return Fn=(Fn||"fx")+"queue",Yn=fi.get(Rn,Fn),Un&&(!Yn||Array.isArray(Un)?Yn=fi.access(Rn,Fn,zn.makeArray(Un)):Yn.push(Un)),Yn||[]},dequeue:function(Rn,Fn){Fn=Fn||"fx";var Un=zn.queue(Rn,Fn),Yn=Un.length,qo=Un.shift(),Go=zn._queueHooks(Rn,Fn),Jo=function(){zn.dequeue(Rn,Fn)};qo==="inprogress"&&(qo=Un.shift(),Yn--),qo&&(Fn==="fx"&&Un.unshift("inprogress"),delete Go.stop,qo.call(Rn,Jo,Go)),!Yn&&Go&&Go.empty.fire()},_queueHooks:function(Rn,Fn){var Un=Fn+"queueHooks";return fi.get(Rn,Un)||fi.access(Rn,Un,{empty:zn.Callbacks("once memory").add(function(){fi.remove(Rn,[Fn+"queue",Un])})})}}),zn.fn.extend({queue:function(Rn,Fn){var Un=2;return typeof Rn!="string"&&(Fn=Rn,Rn="fx",Un--),arguments.length<Un?zn.queue(this[0],Rn):Fn===void 0?this:this.each(function(){var Yn=zn.queue(this,Rn,Fn);zn._queueHooks(this,Rn),Rn==="fx"&&Yn[0]!=="inprogress"&&zn.dequeue(this,Rn)})},dequeue:function(Rn){return this.each(function(){zn.dequeue(this,Rn)})},clearQueue:function(Rn){return this.queue(Rn||"fx",[])},promise:function(Rn,Fn){var Un,Yn=1,qo=zn.Deferred(),Go=this,Jo=this.length,li=function(){--Yn||qo.resolveWith(Go,[Go])};for(typeof Rn!="string"&&(Fn=Rn,Rn=void 0),Rn=Rn||"fx";Jo--;)Un=fi.get(Go[Jo],Rn+"queueHooks"),Un&&Un.empty&&(Yn++,Un.empty.add(li));return li(),qo.promise(Fn)}});var Wi=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Hi=new RegExp("^(?:([+-])=|)("+Wi+")([a-z%]*)$","i"),Ji=["Top","Right","Bottom","Left"],Ui=ti.documentElement,ia=function(Rn){return zn.contains(Rn.ownerDocument,Rn)},va={composed:!0};Ui.getRootNode&&(ia=function(Rn){return zn.contains(Rn.ownerDocument,Rn)||Rn.getRootNode(va)===Rn.ownerDocument});var ha=function(Rn,Fn){return Rn=Fn||Rn,Rn.style.display==="none"||Rn.style.display===""&&ia(Rn)&&zn.css(Rn,"display")==="none"};function Ca(Rn,Fn,Un,Yn){var qo,Go,Jo=20,li=Yn?function(){return Yn.cur()}:function(){return zn.css(Rn,Fn,"")},ii=li(),gi=Un&&Un[3]||(zn.cssNumber[Fn]?"":"px"),ki=Rn.nodeType&&(zn.cssNumber[Fn]||gi!=="px"&&+ii)&&Hi.exec(zn.css(Rn,Fn));if(ki&&ki[3]!==gi){for(ii=ii/2,gi=gi||ki[3],ki=+ii||1;Jo--;)zn.style(Rn,Fn,ki+gi),(1-Go)*(1-(Go=li()/ii||.5))<=0&&(Jo=0),ki=ki/Go;ki=ki*2,zn.style(Rn,Fn,ki+gi),Un=Un||[]}return Un&&(ki=+ki||+ii||0,qo=Un[1]?ki+(Un[1]+1)*Un[2]:+Un[2],Yn&&(Yn.unit=gi,Yn.start=ki,Yn.end=qo)),qo}var Aa={};function Oa(Rn){var Fn,Un=Rn.ownerDocument,Yn=Rn.nodeName,qo=Aa[Yn];return qo||(Fn=Un.body.appendChild(Un.createElement(Yn)),qo=zn.css(Fn,"display"),Fn.parentNode.removeChild(Fn),qo==="none"&&(qo="block"),Aa[Yn]=qo,qo)}function xa(Rn,Fn){for(var Un,Yn,qo=[],Go=0,Jo=Rn.length;Go<Jo;Go++)Yn=Rn[Go],Yn.style&&(Un=Yn.style.display,Fn?(Un==="none"&&(qo[Go]=fi.get(Yn,"display")||null,qo[Go]||(Yn.style.display="")),Yn.style.display===""&&ha(Yn)&&(qo[Go]=Oa(Yn))):Un!=="none"&&(qo[Go]="none",fi.set(Yn,"display",Un)));for(Go=0;Go<Jo;Go++)qo[Go]!=null&&(Rn[Go].style.display=qo[Go]);return Rn}zn.fn.extend({show:function(){return xa(this,!0)},hide:function(){return xa(this)},toggle:function(Rn){return typeof Rn=="boolean"?Rn?this.show():this.hide():this.each(function(){ha(this)?zn(this).show():zn(this).hide()})}});var Pa=/^(?:checkbox|radio)$/i,wi=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Xi=/^$|^module$|\/(?:java|ecma)script/i;(function(){var Rn=ti.createDocumentFragment(),Fn=Rn.appendChild(ti.createElement("div")),Un=ti.createElement("input");Un.setAttribute("type","radio"),Un.setAttribute("checked","checked"),Un.setAttribute("name","t"),Fn.appendChild(Un),nr.checkClone=Fn.cloneNode(!0).cloneNode(!0).lastChild.checked,Fn.innerHTML="<textarea>x</textarea>",nr.noCloneChecked=!!Fn.cloneNode(!0).lastChild.defaultValue,Fn.innerHTML="<option></option>",nr.option=!!Fn.lastChild})();var Qi={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Qi.tbody=Qi.tfoot=Qi.colgroup=Qi.caption=Qi.thead,Qi.th=Qi.td,nr.option||(Qi.optgroup=Qi.option=[1,"<select multiple='multiple'>","</select>"]);function pa(Rn,Fn){var Un;return typeof Rn.getElementsByTagName<"u"?Un=Rn.getElementsByTagName(Fn||"*"):typeof Rn.querySelectorAll<"u"?Un=Rn.querySelectorAll(Fn||"*"):Un=[],Fn===void 0||Fn&&pi(Rn,Fn)?zn.merge([Rn],Un):Un}function _a(Rn,Fn){for(var Un=0,Yn=Rn.length;Un<Yn;Un++)fi.set(Rn[Un],"globalEval",!Fn||fi.get(Fn[Un],"globalEval"))}var Ra=/<|&#?\w+;/;function Ma(Rn,Fn,Un,Yn,qo){for(var Go,Jo,li,ii,gi,ki,Ri=Fn.createDocumentFragment(),Ci=[],Ai=0,ra=Rn.length;Ai<ra;Ai++)if(Go=Rn[Ai],Go||Go===0)if(Xo(Go)==="object")zn.merge(Ci,Go.nodeType?[Go]:Go);else if(!Ra.test(Go))Ci.push(Fn.createTextNode(Go));else{for(Jo=Jo||Ri.appendChild(Fn.createElement("div")),li=(wi.exec(Go)||["",""])[1].toLowerCase(),ii=Qi[li]||Qi._default,Jo.innerHTML=ii[1]+zn.htmlPrefilter(Go)+ii[2],ki=ii[0];ki--;)Jo=Jo.lastChild;zn.merge(Ci,Jo.childNodes),Jo=Ri.firstChild,Jo.textContent=""}for(Ri.textContent="",Ai=0;Go=Ci[Ai++];){if(Yn&&zn.inArray(Go,Yn)>-1){qo&&qo.push(Go);continue}if(gi=ia(Go),Jo=pa(Ri.appendChild(Go),"script"),gi&&_a(Jo),Un)for(ki=0;Go=Jo[ki++];)Xi.test(Go.type||"")&&Un.push(Go)}return Ri}var Qa=/^([^.]*)(?:\.(.+)|)/;function Za(){return!0}function Va(){return!1}function ms(Rn,Fn){return Rn===ds()==(Fn==="focus")}function ds(){try{return ti.activeElement}catch{}}function Ja(Rn,Fn,Un,Yn,qo,Go){var Jo,li;if(typeof Fn=="object"){typeof Un!="string"&&(Yn=Yn||Un,Un=void 0);for(li in Fn)Ja(Rn,li,Un,Yn,Fn[li],Go);return Rn}if(Yn==null&&qo==null?(qo=Un,Yn=Un=void 0):qo==null&&(typeof Un=="string"?(qo=Yn,Yn=void 0):(qo=Yn,Yn=Un,Un=void 0)),qo===!1)qo=Va;else if(!qo)return Rn;return Go===1&&(Jo=qo,qo=function(ii){return zn().off(ii),Jo.apply(this,arguments)},qo.guid=Jo.guid||(Jo.guid=zn.guid++)),Rn.each(function(){zn.event.add(this,Fn,qo,Yn,Un)})}zn.event={global:{},add:function(Rn,Fn,Un,Yn,qo){var Go,Jo,li,ii,gi,ki,Ri,Ci,Ai,ra,ma,na=fi.get(Rn);if(_i(Rn))for(Un.handler&&(Go=Un,Un=Go.handler,qo=Go.selector),qo&&zn.find.matchesSelector(Ui,qo),Un.guid||(Un.guid=zn.guid++),(ii=na.events)||(ii=na.events=Object.create(null)),(Jo=na.handle)||(Jo=na.handle=function(La){return typeof zn<"u"&&zn.event.triggered!==La.type?zn.event.dispatch.apply(Rn,arguments):void 0}),Fn=(Fn||"").match(oa)||[""],gi=Fn.length;gi--;)li=Qa.exec(Fn[gi])||[],Ai=ma=li[1],ra=(li[2]||"").split(".").sort(),Ai&&(Ri=zn.event.special[Ai]||{},Ai=(qo?Ri.delegateType:Ri.bindType)||Ai,Ri=zn.event.special[Ai]||{},ki=zn.extend({type:Ai,origType:ma,data:Yn,handler:Un,guid:Un.guid,selector:qo,needsContext:qo&&zn.expr.match.needsContext.test(qo),namespace:ra.join(".")},Go),(Ci=ii[Ai])||(Ci=ii[Ai]=[],Ci.delegateCount=0,(!Ri.setup||Ri.setup.call(Rn,Yn,ra,Jo)===!1)&&Rn.addEventListener&&Rn.addEventListener(Ai,Jo)),Ri.add&&(Ri.add.call(Rn,ki),ki.handler.guid||(ki.handler.guid=Un.guid)),qo?Ci.splice(Ci.delegateCount++,0,ki):Ci.push(ki),zn.event.global[Ai]=!0)},remove:function(Rn,Fn,Un,Yn,qo){var Go,Jo,li,ii,gi,ki,Ri,Ci,Ai,ra,ma,na=fi.hasData(Rn)&&fi.get(Rn);if(!(!na||!(ii=na.events))){for(Fn=(Fn||"").match(oa)||[""],gi=Fn.length;gi--;){if(li=Qa.exec(Fn[gi])||[],Ai=ma=li[1],ra=(li[2]||"").split(".").sort(),!Ai){for(Ai in ii)zn.event.remove(Rn,Ai+Fn[gi],Un,Yn,!0);continue}for(Ri=zn.event.special[Ai]||{},Ai=(Yn?Ri.delegateType:Ri.bindType)||Ai,Ci=ii[Ai]||[],li=li[2]&&new RegExp("(^|\\.)"+ra.join("\\.(?:.*\\.|)")+"(\\.|$)"),Jo=Go=Ci.length;Go--;)ki=Ci[Go],(qo||ma===ki.origType)&&(!Un||Un.guid===ki.guid)&&(!li||li.test(ki.namespace))&&(!Yn||Yn===ki.selector||Yn==="**"&&ki.selector)&&(Ci.splice(Go,1),ki.selector&&Ci.delegateCount--,Ri.remove&&Ri.remove.call(Rn,ki));Jo&&!Ci.length&&((!Ri.teardown||Ri.teardown.call(Rn,ra,na.handle)===!1)&&zn.removeEvent(Rn,Ai,na.handle),delete ii[Ai])}zn.isEmptyObject(ii)&&fi.remove(Rn,"handle events")}},dispatch:function(Rn){var Fn,Un,Yn,qo,Go,Jo,li=new Array(arguments.length),ii=zn.event.fix(Rn),gi=(fi.get(this,"events")||Object.create(null))[ii.type]||[],ki=zn.event.special[ii.type]||{};for(li[0]=ii,Fn=1;Fn<arguments.length;Fn++)li[Fn]=arguments[Fn];if(ii.delegateTarget=this,!(ki.preDispatch&&ki.preDispatch.call(this,ii)===!1)){for(Jo=zn.event.handlers.call(this,ii,gi),Fn=0;(qo=Jo[Fn++])&&!ii.isPropagationStopped();)for(ii.currentTarget=qo.elem,Un=0;(Go=qo.handlers[Un++])&&!ii.isImmediatePropagationStopped();)(!ii.rnamespace||Go.namespace===!1||ii.rnamespace.test(Go.namespace))&&(ii.handleObj=Go,ii.data=Go.data,Yn=((zn.event.special[Go.origType]||{}).handle||Go.handler).apply(qo.elem,li),Yn!==void 0&&(ii.result=Yn)===!1&&(ii.preventDefault(),ii.stopPropagation()));return ki.postDispatch&&ki.postDispatch.call(this,ii),ii.result}},handlers:function(Rn,Fn){var Un,Yn,qo,Go,Jo,li=[],ii=Fn.delegateCount,gi=Rn.target;if(ii&&gi.nodeType&&!(Rn.type==="click"&&Rn.button>=1)){for(;gi!==this;gi=gi.parentNode||this)if(gi.nodeType===1&&!(Rn.type==="click"&&gi.disabled===!0)){for(Go=[],Jo={},Un=0;Un<ii;Un++)Yn=Fn[Un],qo=Yn.selector+" ",Jo[qo]===void 0&&(Jo[qo]=Yn.needsContext?zn(qo,this).index(gi)>-1:zn.find(qo,this,null,[gi]).length),Jo[qo]&&Go.push(Yn);Go.length&&li.push({elem:gi,handlers:Go})}}return gi=this,ii<Fn.length&&li.push({elem:gi,handlers:Fn.slice(ii)}),li},addProp:function(Rn,Fn){Object.defineProperty(zn.Event.prototype,Rn,{enumerable:!0,configurable:!0,get:Yo(Fn)?function(){if(this.originalEvent)return Fn(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[Rn]},set:function(Un){Object.defineProperty(this,Rn,{enumerable:!0,configurable:!0,writable:!0,value:Un})}})},fix:function(Rn){return Rn[zn.expando]?Rn:new zn.Event(Rn)},special:{load:{noBubble:!0},click:{setup:function(Rn){var Fn=this||Rn;return Pa.test(Fn.type)&&Fn.click&&pi(Fn,"input")&&fs(Fn,"click",Za),!1},trigger:function(Rn){var Fn=this||Rn;return Pa.test(Fn.type)&&Fn.click&&pi(Fn,"input")&&fs(Fn,"click"),!0},_default:function(Rn){var Fn=Rn.target;return Pa.test(Fn.type)&&Fn.click&&pi(Fn,"input")&&fi.get(Fn,"click")||pi(Fn,"a")}},beforeunload:{postDispatch:function(Rn){Rn.result!==void 0&&Rn.originalEvent&&(Rn.originalEvent.returnValue=Rn.result)}}}};function fs(Rn,Fn,Un){if(!Un){fi.get(Rn,Fn)===void 0&&zn.event.add(Rn,Fn,Za);return}fi.set(Rn,Fn,!1),zn.event.add(Rn,Fn,{namespace:!1,handler:function(Yn){var qo,Go,Jo=fi.get(this,Fn);if(Yn.isTrigger&1&&this[Fn]){if(Jo.length)(zn.event.special[Fn]||{}).delegateType&&Yn.stopPropagation();else if(Jo=Ln.call(arguments),fi.set(this,Fn,Jo),qo=Un(this,Fn),this[Fn](),Go=fi.get(this,Fn),Jo!==Go||qo?fi.set(this,Fn,!1):Go={},Jo!==Go)return Yn.stopImmediatePropagation(),Yn.preventDefault(),Go&&Go.value}else Jo.length&&(fi.set(this,Fn,{value:zn.event.trigger(zn.extend(Jo[0],zn.Event.prototype),Jo.slice(1),this)}),Yn.stopImmediatePropagation())}})}zn.removeEvent=function(Rn,Fn,Un){Rn.removeEventListener&&Rn.removeEventListener(Fn,Un)},zn.Event=function(Rn,Fn){if(!(this instanceof zn.Event))return new zn.Event(Rn,Fn);Rn&&Rn.type?(this.originalEvent=Rn,this.type=Rn.type,this.isDefaultPrevented=Rn.defaultPrevented||Rn.defaultPrevented===void 0&&Rn.returnValue===!1?Za:Va,this.target=Rn.target&&Rn.target.nodeType===3?Rn.target.parentNode:Rn.target,this.currentTarget=Rn.currentTarget,this.relatedTarget=Rn.relatedTarget):this.type=Rn,Fn&&zn.extend(this,Fn),this.timeStamp=Rn&&Rn.timeStamp||Date.now(),this[zn.expando]=!0},zn.Event.prototype={constructor:zn.Event,isDefaultPrevented:Va,isPropagationStopped:Va,isImmediatePropagationStopped:Va,isSimulated:!1,preventDefault:function(){var Rn=this.originalEvent;this.isDefaultPrevented=Za,Rn&&!this.isSimulated&&Rn.preventDefault()},stopPropagation:function(){var Rn=this.originalEvent;this.isPropagationStopped=Za,Rn&&!this.isSimulated&&Rn.stopPropagation()},stopImmediatePropagation:function(){var Rn=this.originalEvent;this.isImmediatePropagationStopped=Za,Rn&&!this.isSimulated&&Rn.stopImmediatePropagation(),this.stopPropagation()}},zn.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},zn.event.addProp),zn.each({focus:"focusin",blur:"focusout"},function(Rn,Fn){zn.event.special[Rn]={setup:function(){return fs(this,Rn,ms),!1},trigger:function(){return fs(this,Rn),!0},_default:function(Un){return fi.get(Un.target,Rn)},delegateType:Fn}}),zn.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(Rn,Fn){zn.event.special[Rn]={delegateType:Fn,bindType:Fn,handle:function(Un){var Yn,qo=this,Go=Un.relatedTarget,Jo=Un.handleObj;return(!Go||Go!==qo&&!zn.contains(qo,Go))&&(Un.type=Jo.origType,Yn=Jo.handler.apply(this,arguments),Un.type=Fn),Yn}}}),zn.fn.extend({on:function(Rn,Fn,Un,Yn){return Ja(this,Rn,Fn,Un,Yn)},one:function(Rn,Fn,Un,Yn){return Ja(this,Rn,Fn,Un,Yn,1)},off:function(Rn,Fn,Un){var Yn,qo;if(Rn&&Rn.preventDefault&&Rn.handleObj)return Yn=Rn.handleObj,zn(Rn.delegateTarget).off(Yn.namespace?Yn.origType+"."+Yn.namespace:Yn.origType,Yn.selector,Yn.handler),this;if(typeof Rn=="object"){for(qo in Rn)this.off(qo,Fn,Rn[qo]);return this}return(Fn===!1||typeof Fn=="function")&&(Un=Fn,Fn=void 0),Un===!1&&(Un=Va),this.each(function(){zn.event.remove(this,Rn,Un,Fn)})}});var vs=/<script|<style|<link/i,ps=/checked\s*(?:[^=]|=\s*.checked.)/i,Rl=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function nl(Rn,Fn){return pi(Rn,"table")&&pi(Fn.nodeType!==11?Fn:Fn.firstChild,"tr")&&zn(Rn).children("tbody")[0]||Rn}function Dl(Rn){return Rn.type=(Rn.getAttribute("type")!==null)+"/"+Rn.type,Rn}function Ml(Rn){return(Rn.type||"").slice(0,5)==="true/"?Rn.type=Rn.type.slice(5):Rn.removeAttribute("type"),Rn}function rl(Rn,Fn){var Un,Yn,qo,Go,Jo,li,ii;if(Fn.nodeType===1){if(fi.hasData(Rn)&&(Go=fi.get(Rn),ii=Go.events,ii)){fi.remove(Fn,"handle events");for(qo in ii)for(Un=0,Yn=ii[qo].length;Un<Yn;Un++)zn.event.add(Fn,qo,ii[qo][Un])}Ei.hasData(Rn)&&(Jo=Ei.access(Rn),li=zn.extend({},Jo),Ei.set(Fn,li))}}function Vl(Rn,Fn){var Un=Fn.nodeName.toLowerCase();Un==="input"&&Pa.test(Rn.type)?Fn.checked=Rn.checked:(Un==="input"||Un==="textarea")&&(Fn.defaultValue=Rn.defaultValue)}function hs(Rn,Fn,Un,Yn){Fn=In(Fn);var qo,Go,Jo,li,ii,gi,ki=0,Ri=Rn.length,Ci=Ri-1,Ai=Fn[0],ra=Yo(Ai);if(ra||Ri>1&&typeof Ai=="string"&&!nr.checkClone&&ps.test(Ai))return Rn.each(function(ma){var na=Rn.eq(ma);ra&&(Fn[0]=Ai.call(this,ma,na.html())),hs(na,Fn,Un,Yn)});if(Ri&&(qo=Ma(Fn,Rn[0].ownerDocument,!1,Rn,Yn),Go=qo.firstChild,qo.childNodes.length===1&&(qo=Go),Go||Yn)){for(Jo=zn.map(pa(qo,"script"),Dl),li=Jo.length;ki<Ri;ki++)ii=qo,ki!==Ci&&(ii=zn.clone(ii,!0,!0),li&&zn.merge(Jo,pa(ii,"script"))),Un.call(Rn[ki],ii,ki);if(li)for(gi=Jo[Jo.length-1].ownerDocument,zn.map(Jo,Ml),ki=0;ki<li;ki++)ii=Jo[ki],Xi.test(ii.type||"")&&!fi.access(ii,"globalEval")&&zn.contains(gi,ii)&&(ii.src&&(ii.type||"").toLowerCase()!=="module"?zn._evalUrl&&!ii.noModule&&zn._evalUrl(ii.src,{nonce:ii.nonce||ii.getAttribute("nonce")},gi):mi(ii.textContent.replace(Rl,""),ii,gi))}return Rn}function ol(Rn,Fn,Un){for(var Yn,qo=Fn?zn.filter(Fn,Rn):Rn,Go=0;(Yn=qo[Go])!=null;Go++)!Un&&Yn.nodeType===1&&zn.cleanData(pa(Yn)),Yn.parentNode&&(Un&&ia(Yn)&&_a(pa(Yn,"script")),Yn.parentNode.removeChild(Yn));return Rn}zn.extend({htmlPrefilter:function(Rn){return Rn},clone:function(Rn,Fn,Un){var Yn,qo,Go,Jo,li=Rn.cloneNode(!0),ii=ia(Rn);if(!nr.noCloneChecked&&(Rn.nodeType===1||Rn.nodeType===11)&&!zn.isXMLDoc(Rn))for(Jo=pa(li),Go=pa(Rn),Yn=0,qo=Go.length;Yn<qo;Yn++)Vl(Go[Yn],Jo[Yn]);if(Fn)if(Un)for(Go=Go||pa(Rn),Jo=Jo||pa(li),Yn=0,qo=Go.length;Yn<qo;Yn++)rl(Go[Yn],Jo[Yn]);else rl(Rn,li);return Jo=pa(li,"script"),Jo.length>0&&_a(Jo,!ii&&pa(Rn,"script")),li},cleanData:function(Rn){for(var Fn,Un,Yn,qo=zn.event.special,Go=0;(Un=Rn[Go])!==void 0;Go++)if(_i(Un)){if(Fn=Un[fi.expando]){if(Fn.events)for(Yn in Fn.events)qo[Yn]?zn.event.remove(Un,Yn):zn.removeEvent(Un,Yn,Fn.handle);Un[fi.expando]=void 0}Un[Ei.expando]&&(Un[Ei.expando]=void 0)}}}),zn.fn.extend({detach:function(Rn){return ol(this,Rn,!0)},remove:function(Rn){return ol(this,Rn)},text:function(Rn){return qi(this,function(Fn){return Fn===void 0?zn.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=Fn)})},null,Rn,arguments.length)},append:function(){return hs(this,arguments,function(Rn){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var Fn=nl(this,Rn);Fn.appendChild(Rn)}})},prepend:function(){return hs(this,arguments,function(Rn){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var Fn=nl(this,Rn);Fn.insertBefore(Rn,Fn.firstChild)}})},before:function(){return hs(this,arguments,function(Rn){this.parentNode&&this.parentNode.insertBefore(Rn,this)})},after:function(){return hs(this,arguments,function(Rn){this.parentNode&&this.parentNode.insertBefore(Rn,this.nextSibling)})},empty:function(){for(var Rn,Fn=0;(Rn=this[Fn])!=null;Fn++)Rn.nodeType===1&&(zn.cleanData(pa(Rn,!1)),Rn.textContent="");return this},clone:function(Rn,Fn){return Rn=Rn??!1,Fn=Fn??Rn,this.map(function(){return zn.clone(this,Rn,Fn)})},html:function(Rn){return qi(this,function(Fn){var Un=this[0]||{},Yn=0,qo=this.length;if(Fn===void 0&&Un.nodeType===1)return Un.innerHTML;if(typeof Fn=="string"&&!vs.test(Fn)&&!Qi[(wi.exec(Fn)||["",""])[1].toLowerCase()]){Fn=zn.htmlPrefilter(Fn);try{for(;Yn<qo;Yn++)Un=this[Yn]||{},Un.nodeType===1&&(zn.cleanData(pa(Un,!1)),Un.innerHTML=Fn);Un=0}catch{}}Un&&this.empty().append(Fn)},null,Rn,arguments.length)},replaceWith:function(){var Rn=[];return hs(this,arguments,function(Fn){var Un=this.parentNode;zn.inArray(this,Rn)<0&&(zn.cleanData(pa(this)),Un&&Un.replaceChild(Fn,this))},Rn)}}),zn.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(Rn,Fn){zn.fn[Rn]=function(Un){for(var Yn,qo=[],Go=zn(Un),Jo=Go.length-1,li=0;li<=Jo;li++)Yn=li===Jo?this:this.clone(!0),zn(Go[li])[Fn](Yn),Pn.apply(qo,Yn.get());return this.pushStack(qo)}});var Rs=new RegExp("^("+Wi+")(?!px)[a-z%]+$","i"),Ds=/^--/,Ss=function(Rn){var Fn=Rn.ownerDocument.defaultView;return(!Fn||!Fn.opener)&&(Fn=Cn),Fn.getComputedStyle(Rn)},il=function(Rn,Fn,Un){var Yn,qo,Go={};for(qo in Fn)Go[qo]=Rn.style[qo],Rn.style[qo]=Fn[qo];Yn=Un.call(Rn);for(qo in Fn)Rn.style[qo]=Go[qo];return Yn},Fl=new RegExp(Ji.join("|"),"i"),al="[\\x20\\t\\r\\n\\f]",Hl=new RegExp("^"+al+"+|((?:^|[^\\\\])(?:\\\\.)*)"+al+"+$","g");(function(){function Rn(){if(gi){ii.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",gi.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Ui.appendChild(ii).appendChild(gi);var ki=Cn.getComputedStyle(gi);Un=ki.top!=="1%",li=Fn(ki.marginLeft)===12,gi.style.right="60%",Go=Fn(ki.right)===36,Yn=Fn(ki.width)===36,gi.style.position="absolute",qo=Fn(gi.offsetWidth/3)===12,Ui.removeChild(ii),gi=null}}function Fn(ki){return Math.round(parseFloat(ki))}var Un,Yn,qo,Go,Jo,li,ii=ti.createElement("div"),gi=ti.createElement("div");gi.style&&(gi.style.backgroundClip="content-box",gi.cloneNode(!0).style.backgroundClip="",nr.clearCloneStyle=gi.style.backgroundClip==="content-box",zn.extend(nr,{boxSizingReliable:function(){return Rn(),Yn},pixelBoxStyles:function(){return Rn(),Go},pixelPosition:function(){return Rn(),Un},reliableMarginLeft:function(){return Rn(),li},scrollboxSize:function(){return Rn(),qo},reliableTrDimensions:function(){var ki,Ri,Ci,Ai;return Jo==null&&(ki=ti.createElement("table"),Ri=ti.createElement("tr"),Ci=ti.createElement("div"),ki.style.cssText="position:absolute;left:-11111px;border-collapse:separate",Ri.style.cssText="border:1px solid",Ri.style.height="1px",Ci.style.height="9px",Ci.style.display="block",Ui.appendChild(ki).appendChild(Ri).appendChild(Ci),Ai=Cn.getComputedStyle(Ri),Jo=parseInt(Ai.height,10)+parseInt(Ai.borderTopWidth,10)+parseInt(Ai.borderBottomWidth,10)===Ri.offsetHeight,Ui.removeChild(ki)),Jo}}))})();function ys(Rn,Fn,Un){var Yn,qo,Go,Jo,li=Ds.test(Fn),ii=Rn.style;return Un=Un||Ss(Rn),Un&&(Jo=Un.getPropertyValue(Fn)||Un[Fn],li&&Jo&&(Jo=Jo.replace(Hl,"$1")||void 0),Jo===""&&!ia(Rn)&&(Jo=zn.style(Rn,Fn)),!nr.pixelBoxStyles()&&Rs.test(Jo)&&Fl.test(Fn)&&(Yn=ii.width,qo=ii.minWidth,Go=ii.maxWidth,ii.minWidth=ii.maxWidth=ii.width=Jo,Jo=Un.width,ii.width=Yn,ii.minWidth=qo,ii.maxWidth=Go)),Jo!==void 0?Jo+"":Jo}function sl(Rn,Fn){return{get:function(){if(Rn()){delete this.get;return}return(this.get=Fn).apply(this,arguments)}}}var ll=["Webkit","Moz","ms"],cl=ti.createElement("div").style,ul={};function jl(Rn){for(var Fn=Rn[0].toUpperCase()+Rn.slice(1),Un=ll.length;Un--;)if(Rn=ll[Un]+Fn,Rn in cl)return Rn}function Ms(Rn){var Fn=zn.cssProps[Rn]||ul[Rn];return Fn||(Rn in cl?Rn:ul[Rn]=jl(Rn)||Rn)}var Wl=/^(none|table(?!-c[ea]).+)/,Ul={position:"absolute",visibility:"hidden",display:"block"},dl={letterSpacing:"0",fontWeight:"400"};function fl(Rn,Fn,Un){var Yn=Hi.exec(Fn);return Yn?Math.max(0,Yn[2]-(Un||0))+(Yn[3]||"px"):Fn}function Vs(Rn,Fn,Un,Yn,qo,Go){var Jo=Fn==="width"?1:0,li=0,ii=0;if(Un===(Yn?"border":"content"))return 0;for(;Jo<4;Jo+=2)Un==="margin"&&(ii+=zn.css(Rn,Un+Ji[Jo],!0,qo)),Yn?(Un==="content"&&(ii-=zn.css(Rn,"padding"+Ji[Jo],!0,qo)),Un!=="margin"&&(ii-=zn.css(Rn,"border"+Ji[Jo]+"Width",!0,qo))):(ii+=zn.css(Rn,"padding"+Ji[Jo],!0,qo),Un!=="padding"?ii+=zn.css(Rn,"border"+Ji[Jo]+"Width",!0,qo):li+=zn.css(Rn,"border"+Ji[Jo]+"Width",!0,qo));return!Yn&&Go>=0&&(ii+=Math.max(0,Math.ceil(Rn["offset"+Fn[0].toUpperCase()+Fn.slice(1)]-Go-ii-li-.5))||0),ii}function pl(Rn,Fn,Un){var Yn=Ss(Rn),qo=!nr.boxSizingReliable()||Un,Go=qo&&zn.css(Rn,"boxSizing",!1,Yn)==="border-box",Jo=Go,li=ys(Rn,Fn,Yn),ii="offset"+Fn[0].toUpperCase()+Fn.slice(1);if(Rs.test(li)){if(!Un)return li;li="auto"}return(!nr.boxSizingReliable()&&Go||!nr.reliableTrDimensions()&&pi(Rn,"tr")||li==="auto"||!parseFloat(li)&&zn.css(Rn,"display",!1,Yn)==="inline")&&Rn.getClientRects().length&&(Go=zn.css(Rn,"boxSizing",!1,Yn)==="border-box",Jo=ii in Rn,Jo&&(li=Rn[ii])),li=parseFloat(li)||0,li+Vs(Rn,Fn,Un||(Go?"border":"content"),Jo,Yn,li)+"px"}zn.extend({cssHooks:{opacity:{get:function(Rn,Fn){if(Fn){var Un=ys(Rn,"opacity");return Un===""?"1":Un}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(Rn,Fn,Un,Yn){if(!(!Rn||Rn.nodeType===3||Rn.nodeType===8||!Rn.style)){var qo,Go,Jo,li=si(Fn),ii=Ds.test(Fn),gi=Rn.style;if(ii||(Fn=Ms(li)),Jo=zn.cssHooks[Fn]||zn.cssHooks[li],Un!==void 0){if(Go=typeof Un,Go==="string"&&(qo=Hi.exec(Un))&&qo[1]&&(Un=Ca(Rn,Fn,qo),Go="number"),Un==null||Un!==Un)return;Go==="number"&&!ii&&(Un+=qo&&qo[3]||(zn.cssNumber[li]?"":"px")),!nr.clearCloneStyle&&Un===""&&Fn.indexOf("background")===0&&(gi[Fn]="inherit"),(!Jo||!("set"in Jo)||(Un=Jo.set(Rn,Un,Yn))!==void 0)&&(ii?gi.setProperty(Fn,Un):gi[Fn]=Un)}else return Jo&&"get"in Jo&&(qo=Jo.get(Rn,!1,Yn))!==void 0?qo:gi[Fn]}},css:function(Rn,Fn,Un,Yn){var qo,Go,Jo,li=si(Fn),ii=Ds.test(Fn);return ii||(Fn=Ms(li)),Jo=zn.cssHooks[Fn]||zn.cssHooks[li],Jo&&"get"in Jo&&(qo=Jo.get(Rn,!0,Un)),qo===void 0&&(qo=ys(Rn,Fn,Yn)),qo==="normal"&&Fn in dl&&(qo=dl[Fn]),Un===""||Un?(Go=parseFloat(qo),Un===!0||isFinite(Go)?Go||0:qo):qo}}),zn.each(["height","width"],function(Rn,Fn){zn.cssHooks[Fn]={get:function(Un,Yn,qo){if(Yn)return Wl.test(zn.css(Un,"display"))&&(!Un.getClientRects().length||!Un.getBoundingClientRect().width)?il(Un,Ul,function(){return pl(Un,Fn,qo)}):pl(Un,Fn,qo)},set:function(Un,Yn,qo){var Go,Jo=Ss(Un),li=!nr.scrollboxSize()&&Jo.position==="absolute",ii=li||qo,gi=ii&&zn.css(Un,"boxSizing",!1,Jo)==="border-box",ki=qo?Vs(Un,Fn,qo,gi,Jo):0;return gi&&li&&(ki-=Math.ceil(Un["offset"+Fn[0].toUpperCase()+Fn.slice(1)]-parseFloat(Jo[Fn])-Vs(Un,Fn,"border",!1,Jo)-.5)),ki&&(Go=Hi.exec(Yn))&&(Go[3]||"px")!=="px"&&(Un.style[Fn]=Yn,Yn=zn.css(Un,Fn)),fl(Un,Yn,ki)}}}),zn.cssHooks.marginLeft=sl(nr.reliableMarginLeft,function(Rn,Fn){if(Fn)return(parseFloat(ys(Rn,"marginLeft"))||Rn.getBoundingClientRect().left-il(Rn,{marginLeft:0},function(){return Rn.getBoundingClientRect().left}))+"px"}),zn.each({margin:"",padding:"",border:"Width"},function(Rn,Fn){zn.cssHooks[Rn+Fn]={expand:function(Un){for(var Yn=0,qo={},Go=typeof Un=="string"?Un.split(" "):[Un];Yn<4;Yn++)qo[Rn+Ji[Yn]+Fn]=Go[Yn]||Go[Yn-2]||Go[0];return qo}},Rn!=="margin"&&(zn.cssHooks[Rn+Fn].set=fl)}),zn.fn.extend({css:function(Rn,Fn){return qi(this,function(Un,Yn,qo){var Go,Jo,li={},ii=0;if(Array.isArray(Yn)){for(Go=Ss(Un),Jo=Yn.length;ii<Jo;ii++)li[Yn[ii]]=zn.css(Un,Yn[ii],!1,Go);return li}return qo!==void 0?zn.style(Un,Yn,qo):zn.css(Un,Yn)},Rn,Fn,arguments.length>1)}});function Fa(Rn,Fn,Un,Yn,qo){return new Fa.prototype.init(Rn,Fn,Un,Yn,qo)}zn.Tween=Fa,Fa.prototype={constructor:Fa,init:function(Rn,Fn,Un,Yn,qo,Go){this.elem=Rn,this.prop=Un,this.easing=qo||zn.easing._default,this.options=Fn,this.start=this.now=this.cur(),this.end=Yn,this.unit=Go||(zn.cssNumber[Un]?"":"px")},cur:function(){var Rn=Fa.propHooks[this.prop];return Rn&&Rn.get?Rn.get(this):Fa.propHooks._default.get(this)},run:function(Rn){var Fn,Un=Fa.propHooks[this.prop];return this.options.duration?this.pos=Fn=zn.easing[this.easing](Rn,this.options.duration*Rn,0,1,this.options.duration):this.pos=Fn=Rn,this.now=(this.end-this.start)*Fn+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),Un&&Un.set?Un.set(this):Fa.propHooks._default.set(this),this}},Fa.prototype.init.prototype=Fa.prototype,Fa.propHooks={_default:{get:function(Rn){var Fn;return Rn.elem.nodeType!==1||Rn.elem[Rn.prop]!=null&&Rn.elem.style[Rn.prop]==null?Rn.elem[Rn.prop]:(Fn=zn.css(Rn.elem,Rn.prop,""),!Fn||Fn==="auto"?0:Fn)},set:function(Rn){zn.fx.step[Rn.prop]?zn.fx.step[Rn.prop](Rn):Rn.elem.nodeType===1&&(zn.cssHooks[Rn.prop]||Rn.elem.style[Ms(Rn.prop)]!=null)?zn.style(Rn.elem,Rn.prop,Rn.now+Rn.unit):Rn.elem[Rn.prop]=Rn.now}}},Fa.propHooks.scrollTop=Fa.propHooks.scrollLeft={set:function(Rn){Rn.elem.nodeType&&Rn.elem.parentNode&&(Rn.elem[Rn.prop]=Rn.now)}},zn.easing={linear:function(Rn){return Rn},swing:function(Rn){return .5-Math.cos(Rn*Math.PI)/2},_default:"swing"},zn.fx=Fa.prototype.init,zn.fx.step={};var gs,As,Kl=/^(?:toggle|show|hide)$/,zl=/queueHooks$/;function Fs(){As&&(ti.hidden===!1&&Cn.requestAnimationFrame?Cn.requestAnimationFrame(Fs):Cn.setTimeout(Fs,zn.fx.interval),zn.fx.tick())}function hl(){return Cn.setTimeout(function(){gs=void 0}),gs=Date.now()}function xs(Rn,Fn){var Un,Yn=0,qo={height:Rn};for(Fn=Fn?1:0;Yn<4;Yn+=2-Fn)Un=Ji[Yn],qo["margin"+Un]=qo["padding"+Un]=Rn;return Fn&&(qo.opacity=qo.width=Rn),qo}function gl(Rn,Fn,Un){for(var Yn,qo=(Ya.tweeners[Fn]||[]).concat(Ya.tweeners["*"]),Go=0,Jo=qo.length;Go<Jo;Go++)if(Yn=qo[Go].call(Un,Fn,Rn))return Yn}function ql(Rn,Fn,Un){var Yn,qo,Go,Jo,li,ii,gi,ki,Ri="width"in Fn||"height"in Fn,Ci=this,Ai={},ra=Rn.style,ma=Rn.nodeType&&ha(Rn),na=fi.get(Rn,"fxshow");Un.queue||(Jo=zn._queueHooks(Rn,"fx"),Jo.unqueued==null&&(Jo.unqueued=0,li=Jo.empty.fire,Jo.empty.fire=function(){Jo.unqueued||li()}),Jo.unqueued++,Ci.always(function(){Ci.always(function(){Jo.unqueued--,zn.queue(Rn,"fx").length||Jo.empty.fire()})}));for(Yn in Fn)if(qo=Fn[Yn],Kl.test(qo)){if(delete Fn[Yn],Go=Go||qo==="toggle",qo===(ma?"hide":"show"))if(qo==="show"&&na&&na[Yn]!==void 0)ma=!0;else continue;Ai[Yn]=na&&na[Yn]||zn.style(Rn,Yn)}if(ii=!zn.isEmptyObject(Fn),!(!ii&&zn.isEmptyObject(Ai))){Ri&&Rn.nodeType===1&&(Un.overflow=[ra.overflow,ra.overflowX,ra.overflowY],gi=na&&na.display,gi==null&&(gi=fi.get(Rn,"display")),ki=zn.css(Rn,"display"),ki==="none"&&(gi?ki=gi:(xa([Rn],!0),gi=Rn.style.display||gi,ki=zn.css(Rn,"display"),xa([Rn]))),(ki==="inline"||ki==="inline-block"&&gi!=null)&&zn.css(Rn,"float")==="none"&&(ii||(Ci.done(function(){ra.display=gi}),gi==null&&(ki=ra.display,gi=ki==="none"?"":ki)),ra.display="inline-block")),Un.overflow&&(ra.overflow="hidden",Ci.always(function(){ra.overflow=Un.overflow[0],ra.overflowX=Un.overflow[1],ra.overflowY=Un.overflow[2]})),ii=!1;for(Yn in Ai)ii||(na?"hidden"in na&&(ma=na.hidden):na=fi.access(Rn,"fxshow",{display:gi}),Go&&(na.hidden=!ma),ma&&xa([Rn],!0),Ci.done(function(){ma||xa([Rn]),fi.remove(Rn,"fxshow");for(Yn in Ai)zn.style(Rn,Yn,Ai[Yn])})),ii=gl(ma?na[Yn]:0,Yn,Ci),Yn in na||(na[Yn]=ii.start,ma&&(ii.end=ii.start,ii.start=0))}}function Gl(Rn,Fn){var Un,Yn,qo,Go,Jo;for(Un in Rn)if(Yn=si(Un),qo=Fn[Yn],Go=Rn[Un],Array.isArray(Go)&&(qo=Go[1],Go=Rn[Un]=Go[0]),Un!==Yn&&(Rn[Yn]=Go,delete Rn[Un]),Jo=zn.cssHooks[Yn],Jo&&"expand"in Jo){Go=Jo.expand(Go),delete Rn[Yn];for(Un in Go)Un in Rn||(Rn[Un]=Go[Un],Fn[Un]=qo)}else Fn[Yn]=qo}function Ya(Rn,Fn,Un){var Yn,qo,Go=0,Jo=Ya.prefilters.length,li=zn.Deferred().always(function(){delete ii.elem}),ii=function(){if(qo)return!1;for(var Ri=gs||hl(),Ci=Math.max(0,gi.startTime+gi.duration-Ri),Ai=Ci/gi.duration||0,ra=1-Ai,ma=0,na=gi.tweens.length;ma<na;ma++)gi.tweens[ma].run(ra);return li.notifyWith(Rn,[gi,ra,Ci]),ra<1&&na?Ci:(na||li.notifyWith(Rn,[gi,1,0]),li.resolveWith(Rn,[gi]),!1)},gi=li.promise({elem:Rn,props:zn.extend({},Fn),opts:zn.extend(!0,{specialEasing:{},easing:zn.easing._default},Un),originalProperties:Fn,originalOptions:Un,startTime:gs||hl(),duration:Un.duration,tweens:[],createTween:function(Ri,Ci){var Ai=zn.Tween(Rn,gi.opts,Ri,Ci,gi.opts.specialEasing[Ri]||gi.opts.easing);return gi.tweens.push(Ai),Ai},stop:function(Ri){var Ci=0,Ai=Ri?gi.tweens.length:0;if(qo)return this;for(qo=!0;Ci<Ai;Ci++)gi.tweens[Ci].run(1);return Ri?(li.notifyWith(Rn,[gi,1,0]),li.resolveWith(Rn,[gi,Ri])):li.rejectWith(Rn,[gi,Ri]),this}}),ki=gi.props;for(Gl(ki,gi.opts.specialEasing);Go<Jo;Go++)if(Yn=Ya.prefilters[Go].call(gi,Rn,ki,gi.opts),Yn)return Yo(Yn.stop)&&(zn._queueHooks(gi.elem,gi.opts.queue).stop=Yn.stop.bind(Yn)),Yn;return zn.map(ki,gl,gi),Yo(gi.opts.start)&&gi.opts.start.call(Rn,gi),gi.progress(gi.opts.progress).done(gi.opts.done,gi.opts.complete).fail(gi.opts.fail).always(gi.opts.always),zn.fx.timer(zn.extend(ii,{elem:Rn,anim:gi,queue:gi.opts.queue})),gi}zn.Animation=zn.extend(Ya,{tweeners:{"*":[function(Rn,Fn){var Un=this.createTween(Rn,Fn);return Ca(Un.elem,Rn,Hi.exec(Fn),Un),Un}]},tweener:function(Rn,Fn){Yo(Rn)?(Fn=Rn,Rn=["*"]):Rn=Rn.match(oa);for(var Un,Yn=0,qo=Rn.length;Yn<qo;Yn++)Un=Rn[Yn],Ya.tweeners[Un]=Ya.tweeners[Un]||[],Ya.tweeners[Un].unshift(Fn)},prefilters:[ql],prefilter:function(Rn,Fn){Fn?Ya.prefilters.unshift(Rn):Ya.prefilters.push(Rn)}}),zn.speed=function(Rn,Fn,Un){var Yn=Rn&&typeof Rn=="object"?zn.extend({},Rn):{complete:Un||!Un&&Fn||Yo(Rn)&&Rn,duration:Rn,easing:Un&&Fn||Fn&&!Yo(Fn)&&Fn};return zn.fx.off?Yn.duration=0:typeof Yn.duration!="number"&&(Yn.duration in zn.fx.speeds?Yn.duration=zn.fx.speeds[Yn.duration]:Yn.duration=zn.fx.speeds._default),(Yn.queue==null||Yn.queue===!0)&&(Yn.queue="fx"),Yn.old=Yn.complete,Yn.complete=function(){Yo(Yn.old)&&Yn.old.call(this),Yn.queue&&zn.dequeue(this,Yn.queue)},Yn},zn.fn.extend({fadeTo:function(Rn,Fn,Un,Yn){return this.filter(ha).css("opacity",0).show().end().animate({opacity:Fn},Rn,Un,Yn)},animate:function(Rn,Fn,Un,Yn){var qo=zn.isEmptyObject(Rn),Go=zn.speed(Fn,Un,Yn),Jo=function(){var li=Ya(this,zn.extend({},Rn),Go);(qo||fi.get(this,"finish"))&&li.stop(!0)};return Jo.finish=Jo,qo||Go.queue===!1?this.each(Jo):this.queue(Go.queue,Jo)},stop:function(Rn,Fn,Un){var Yn=function(qo){var Go=qo.stop;delete qo.stop,Go(Un)};return typeof Rn!="string"&&(Un=Fn,Fn=Rn,Rn=void 0),Fn&&this.queue(Rn||"fx",[]),this.each(function(){var qo=!0,Go=Rn!=null&&Rn+"queueHooks",Jo=zn.timers,li=fi.get(this);if(Go)li[Go]&&li[Go].stop&&Yn(li[Go]);else for(Go in li)li[Go]&&li[Go].stop&&zl.test(Go)&&Yn(li[Go]);for(Go=Jo.length;Go--;)Jo[Go].elem===this&&(Rn==null||Jo[Go].queue===Rn)&&(Jo[Go].anim.stop(Un),qo=!1,Jo.splice(Go,1));(qo||!Un)&&zn.dequeue(this,Rn)})},finish:function(Rn){return Rn!==!1&&(Rn=Rn||"fx"),this.each(function(){var Fn,Un=fi.get(this),Yn=Un[Rn+"queue"],qo=Un[Rn+"queueHooks"],Go=zn.timers,Jo=Yn?Yn.length:0;for(Un.finish=!0,zn.queue(this,Rn,[]),qo&&qo.stop&&qo.stop.call(this,!0),Fn=Go.length;Fn--;)Go[Fn].elem===this&&Go[Fn].queue===Rn&&(Go[Fn].anim.stop(!0),Go.splice(Fn,1));for(Fn=0;Fn<Jo;Fn++)Yn[Fn]&&Yn[Fn].finish&&Yn[Fn].finish.call(this);delete Un.finish})}}),zn.each(["toggle","show","hide"],function(Rn,Fn){var Un=zn.fn[Fn];zn.fn[Fn]=function(Yn,qo,Go){return Yn==null||typeof Yn=="boolean"?Un.apply(this,arguments):this.animate(xs(Fn,!0),Yn,qo,Go)}}),zn.each({slideDown:xs("show"),slideUp:xs("hide"),slideToggle:xs("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(Rn,Fn){zn.fn[Rn]=function(Un,Yn,qo){return this.animate(Fn,Un,Yn,qo)}}),zn.timers=[],zn.fx.tick=function(){var Rn,Fn=0,Un=zn.timers;for(gs=Date.now();Fn<Un.length;Fn++)Rn=Un[Fn],!Rn()&&Un[Fn]===Rn&&Un.splice(Fn--,1);Un.length||zn.fx.stop(),gs=void 0},zn.fx.timer=function(Rn){zn.timers.push(Rn),zn.fx.start()},zn.fx.interval=13,zn.fx.start=function(){As||(As=!0,Fs())},zn.fx.stop=function(){As=null},zn.fx.speeds={slow:600,fast:200,_default:400},zn.fn.delay=function(Rn,Fn){return Rn=zn.fx&&zn.fx.speeds[Rn]||Rn,Fn=Fn||"fx",this.queue(Fn,function(Un,Yn){var qo=Cn.setTimeout(Un,Rn);Yn.stop=function(){Cn.clearTimeout(qo)}})},function(){var Rn=ti.createElement("input"),Fn=ti.createElement("select"),Un=Fn.appendChild(ti.createElement("option"));Rn.type="checkbox",nr.checkOn=Rn.value!=="",nr.optSelected=Un.selected,Rn=ti.createElement("input"),Rn.value="t",Rn.type="radio",nr.radioValue=Rn.value==="t"}();var ml,bs=zn.expr.attrHandle;zn.fn.extend({attr:function(Rn,Fn){return qi(this,zn.attr,Rn,Fn,arguments.length>1)},removeAttr:function(Rn){return this.each(function(){zn.removeAttr(this,Rn)})}}),zn.extend({attr:function(Rn,Fn,Un){var Yn,qo,Go=Rn.nodeType;if(!(Go===3||Go===8||Go===2)){if(typeof Rn.getAttribute>"u")return zn.prop(Rn,Fn,Un);if((Go!==1||!zn.isXMLDoc(Rn))&&(qo=zn.attrHooks[Fn.toLowerCase()]||(zn.expr.match.bool.test(Fn)?ml:void 0)),Un!==void 0){if(Un===null){zn.removeAttr(Rn,Fn);return}return qo&&"set"in qo&&(Yn=qo.set(Rn,Un,Fn))!==void 0?Yn:(Rn.setAttribute(Fn,Un+""),Un)}return qo&&"get"in qo&&(Yn=qo.get(Rn,Fn))!==null?Yn:(Yn=zn.find.attr(Rn,Fn),Yn??void 0)}},attrHooks:{type:{set:function(Rn,Fn){if(!nr.radioValue&&Fn==="radio"&&pi(Rn,"input")){var Un=Rn.value;return Rn.setAttribute("type",Fn),Un&&(Rn.value=Un),Fn}}}},removeAttr:function(Rn,Fn){var Un,Yn=0,qo=Fn&&Fn.match(oa);if(qo&&Rn.nodeType===1)for(;Un=qo[Yn++];)Rn.removeAttribute(Un)}}),ml={set:function(Rn,Fn,Un){return Fn===!1?zn.removeAttr(Rn,Un):Rn.setAttribute(Un,Un),Un}},zn.each(zn.expr.match.bool.source.match(/\w+/g),function(Rn,Fn){var Un=bs[Fn]||zn.find.attr;bs[Fn]=function(Yn,qo,Go){var Jo,li,ii=qo.toLowerCase();return Go||(li=bs[ii],bs[ii]=Jo,Jo=Un(Yn,qo,Go)!=null?ii:null,bs[ii]=li),Jo}});var Yl=/^(?:input|select|textarea|button)$/i,Xl=/^(?:a|area)$/i;zn.fn.extend({prop:function(Rn,Fn){return qi(this,zn.prop,Rn,Fn,arguments.length>1)},removeProp:function(Rn){return this.each(function(){delete this[zn.propFix[Rn]||Rn]})}}),zn.extend({prop:function(Rn,Fn,Un){var Yn,qo,Go=Rn.nodeType;if(!(Go===3||Go===8||Go===2))return(Go!==1||!zn.isXMLDoc(Rn))&&(Fn=zn.propFix[Fn]||Fn,qo=zn.propHooks[Fn]),Un!==void 0?qo&&"set"in qo&&(Yn=qo.set(Rn,Un,Fn))!==void 0?Yn:Rn[Fn]=Un:qo&&"get"in qo&&(Yn=qo.get(Rn,Fn))!==null?Yn:Rn[Fn]},propHooks:{tabIndex:{get:function(Rn){var Fn=zn.find.attr(Rn,"tabindex");return Fn?parseInt(Fn,10):Yl.test(Rn.nodeName)||Xl.test(Rn.nodeName)&&Rn.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),nr.optSelected||(zn.propHooks.selected={get:function(Rn){var Fn=Rn.parentNode;return Fn&&Fn.parentNode&&Fn.parentNode.selectedIndex,null},set:function(Rn){var Fn=Rn.parentNode;Fn&&(Fn.selectedIndex,Fn.parentNode&&Fn.parentNode.selectedIndex)}}),zn.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){zn.propFix[this.toLowerCase()]=this});function os(Rn){var Fn=Rn.match(oa)||[];return Fn.join(" ")}function is(Rn){return Rn.getAttribute&&Rn.getAttribute("class")||""}function Hs(Rn){return Array.isArray(Rn)?Rn:typeof Rn=="string"?Rn.match(oa)||[]:[]}zn.fn.extend({addClass:function(Rn){var Fn,Un,Yn,qo,Go,Jo;return Yo(Rn)?this.each(function(li){zn(this).addClass(Rn.call(this,li,is(this)))}):(Fn=Hs(Rn),Fn.length?this.each(function(){if(Yn=is(this),Un=this.nodeType===1&&" "+os(Yn)+" ",Un){for(Go=0;Go<Fn.length;Go++)qo=Fn[Go],Un.indexOf(" "+qo+" ")<0&&(Un+=qo+" ");Jo=os(Un),Yn!==Jo&&this.setAttribute("class",Jo)}}):this)},removeClass:function(Rn){var Fn,Un,Yn,qo,Go,Jo;return Yo(Rn)?this.each(function(li){zn(this).removeClass(Rn.call(this,li,is(this)))}):arguments.length?(Fn=Hs(Rn),Fn.length?this.each(function(){if(Yn=is(this),Un=this.nodeType===1&&" "+os(Yn)+" ",Un){for(Go=0;Go<Fn.length;Go++)for(qo=Fn[Go];Un.indexOf(" "+qo+" ")>-1;)Un=Un.replace(" "+qo+" "," ");Jo=os(Un),Yn!==Jo&&this.setAttribute("class",Jo)}}):this):this.attr("class","")},toggleClass:function(Rn,Fn){var Un,Yn,qo,Go,Jo=typeof Rn,li=Jo==="string"||Array.isArray(Rn);return Yo(Rn)?this.each(function(ii){zn(this).toggleClass(Rn.call(this,ii,is(this),Fn),Fn)}):typeof Fn=="boolean"&&li?Fn?this.addClass(Rn):this.removeClass(Rn):(Un=Hs(Rn),this.each(function(){if(li)for(Go=zn(this),qo=0;qo<Un.length;qo++)Yn=Un[qo],Go.hasClass(Yn)?Go.removeClass(Yn):Go.addClass(Yn);else(Rn===void 0||Jo==="boolean")&&(Yn=is(this),Yn&&fi.set(this,"__className__",Yn),this.setAttribute&&this.setAttribute("class",Yn||Rn===!1?"":fi.get(this,"__className__")||""))}))},hasClass:function(Rn){var Fn,Un,Yn=0;for(Fn=" "+Rn+" ";Un=this[Yn++];)if(Un.nodeType===1&&(" "+os(is(Un))+" ").indexOf(Fn)>-1)return!0;return!1}});var Jl=/\r/g;zn.fn.extend({val:function(Rn){var Fn,Un,Yn,qo=this[0];return arguments.length?(Yn=Yo(Rn),this.each(function(Go){var Jo;this.nodeType===1&&(Yn?Jo=Rn.call(this,Go,zn(this).val()):Jo=Rn,Jo==null?Jo="":typeof Jo=="number"?Jo+="":Array.isArray(Jo)&&(Jo=zn.map(Jo,function(li){return li==null?"":li+""})),Fn=zn.valHooks[this.type]||zn.valHooks[this.nodeName.toLowerCase()],(!Fn||!("set"in Fn)||Fn.set(this,Jo,"value")===void 0)&&(this.value=Jo))})):qo?(Fn=zn.valHooks[qo.type]||zn.valHooks[qo.nodeName.toLowerCase()],Fn&&"get"in Fn&&(Un=Fn.get(qo,"value"))!==void 0?Un:(Un=qo.value,typeof Un=="string"?Un.replace(Jl,""):Un??"")):void 0}}),zn.extend({valHooks:{option:{get:function(Rn){var Fn=zn.find.attr(Rn,"value");return Fn??os(zn.text(Rn))}},select:{get:function(Rn){var Fn,Un,Yn,qo=Rn.options,Go=Rn.selectedIndex,Jo=Rn.type==="select-one",li=Jo?null:[],ii=Jo?Go+1:qo.length;for(Go<0?Yn=ii:Yn=Jo?Go:0;Yn<ii;Yn++)if(Un=qo[Yn],(Un.selected||Yn===Go)&&!Un.disabled&&(!Un.parentNode.disabled||!pi(Un.parentNode,"optgroup"))){if(Fn=zn(Un).val(),Jo)return Fn;li.push(Fn)}return li},set:function(Rn,Fn){for(var Un,Yn,qo=Rn.options,Go=zn.makeArray(Fn),Jo=qo.length;Jo--;)Yn=qo[Jo],(Yn.selected=zn.inArray(zn.valHooks.option.get(Yn),Go)>-1)&&(Un=!0);return Un||(Rn.selectedIndex=-1),Go}}}}),zn.each(["radio","checkbox"],function(){zn.valHooks[this]={set:function(Rn,Fn){if(Array.isArray(Fn))return Rn.checked=zn.inArray(zn(Rn).val(),Fn)>-1}},nr.checkOn||(zn.valHooks[this].get=function(Rn){return Rn.getAttribute("value")===null?"on":Rn.value})}),nr.focusin="onfocusin"in Cn;var vl=/^(?:focusinfocus|focusoutblur)$/,yl=function(Rn){Rn.stopPropagation()};zn.extend(zn.event,{trigger:function(Rn,Fn,Un,Yn){var qo,Go,Jo,li,ii,gi,ki,Ri,Ci=[Un||ti],Ai=Xn.call(Rn,"type")?Rn.type:Rn,ra=Xn.call(Rn,"namespace")?Rn.namespace.split("."):[];if(Go=Ri=Jo=Un=Un||ti,!(Un.nodeType===3||Un.nodeType===8)&&!vl.test(Ai+zn.event.triggered)&&(Ai.indexOf(".")>-1&&(ra=Ai.split("."),Ai=ra.shift(),ra.sort()),ii=Ai.indexOf(":")<0&&"on"+Ai,Rn=Rn[zn.expando]?Rn:new zn.Event(Ai,typeof Rn=="object"&&Rn),Rn.isTrigger=Yn?2:3,Rn.namespace=ra.join("."),Rn.rnamespace=Rn.namespace?new RegExp("(^|\\.)"+ra.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,Rn.result=void 0,Rn.target||(Rn.target=Un),Fn=Fn==null?[Rn]:zn.makeArray(Fn,[Rn]),ki=zn.event.special[Ai]||{},!(!Yn&&ki.trigger&&ki.trigger.apply(Un,Fn)===!1))){if(!Yn&&!ki.noBubble&&!ei(Un)){for(li=ki.delegateType||Ai,vl.test(li+Ai)||(Go=Go.parentNode);Go;Go=Go.parentNode)Ci.push(Go),Jo=Go;Jo===(Un.ownerDocument||ti)&&Ci.push(Jo.defaultView||Jo.parentWindow||Cn)}for(qo=0;(Go=Ci[qo++])&&!Rn.isPropagationStopped();)Ri=Go,Rn.type=qo>1?li:ki.bindType||Ai,gi=(fi.get(Go,"events")||Object.create(null))[Rn.type]&&fi.get(Go,"handle"),gi&&gi.apply(Go,Fn),gi=ii&&Go[ii],gi&&gi.apply&&_i(Go)&&(Rn.result=gi.apply(Go,Fn),Rn.result===!1&&Rn.preventDefault());return Rn.type=Ai,!Yn&&!Rn.isDefaultPrevented()&&(!ki._default||ki._default.apply(Ci.pop(),Fn)===!1)&&_i(Un)&&ii&&Yo(Un[Ai])&&!ei(Un)&&(Jo=Un[ii],Jo&&(Un[ii]=null),zn.event.triggered=Ai,Rn.isPropagationStopped()&&Ri.addEventListener(Ai,yl),Un[Ai](),Rn.isPropagationStopped()&&Ri.removeEventListener(Ai,yl),zn.event.triggered=void 0,Jo&&(Un[ii]=Jo)),Rn.result}},simulate:function(Rn,Fn,Un){var Yn=zn.extend(new zn.Event,Un,{type:Rn,isSimulated:!0});zn.event.trigger(Yn,null,Fn)}}),zn.fn.extend({trigger:function(Rn,Fn){return this.each(function(){zn.event.trigger(Rn,Fn,this)})},triggerHandler:function(Rn,Fn){var Un=this[0];if(Un)return zn.event.trigger(Rn,Fn,Un,!0)}}),nr.focusin||zn.each({focus:"focusin",blur:"focusout"},function(Rn,Fn){var Un=function(Yn){zn.event.simulate(Fn,Yn.target,zn.event.fix(Yn))};zn.event.special[Fn]={setup:function(){var Yn=this.ownerDocument||this.document||this,qo=fi.access(Yn,Fn);qo||Yn.addEventListener(Rn,Un,!0),fi.access(Yn,Fn,(qo||0)+1)},teardown:function(){var Yn=this.ownerDocument||this.document||this,qo=fi.access(Yn,Fn)-1;qo?fi.access(Yn,Fn,qo):(Yn.removeEventListener(Rn,Un,!0),fi.remove(Yn,Fn))}}});var _s=Cn.location,bl={guid:Date.now()},js=/\?/;zn.parseXML=function(Rn){var Fn,Un;if(!Rn||typeof Rn!="string")return null;try{Fn=new Cn.DOMParser().parseFromString(Rn,"text/xml")}catch{}return Un=Fn&&Fn.getElementsByTagName("parsererror")[0],(!Fn||Un)&&zn.error("Invalid XML: "+(Un?zn.map(Un.childNodes,function(Yn){return Yn.textContent}).join(`
`):Rn)),Fn};var Ql=/\[\]$/,_l=/\r?\n/g,Zl=/^(?:submit|button|image|reset|file)$/i,ec=/^(?:input|select|textarea|keygen)/i;function Ws(Rn,Fn,Un,Yn){var qo;if(Array.isArray(Fn))zn.each(Fn,function(Go,Jo){Un||Ql.test(Rn)?Yn(Rn,Jo):Ws(Rn+"["+(typeof Jo=="object"&&Jo!=null?Go:"")+"]",Jo,Un,Yn)});else if(!Un&&Xo(Fn)==="object")for(qo in Fn)Ws(Rn+"["+qo+"]",Fn[qo],Un,Yn);else Yn(Rn,Fn)}zn.param=function(Rn,Fn){var Un,Yn=[],qo=function(Go,Jo){var li=Yo(Jo)?Jo():Jo;Yn[Yn.length]=encodeURIComponent(Go)+"="+encodeURIComponent(li??"")};if(Rn==null)return"";if(Array.isArray(Rn)||Rn.jquery&&!zn.isPlainObject(Rn))zn.each(Rn,function(){qo(this.name,this.value)});else for(Un in Rn)Ws(Un,Rn[Un],Fn,qo);return Yn.join("&")},zn.fn.extend({serialize:function(){return zn.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var Rn=zn.prop(this,"elements");return Rn?zn.makeArray(Rn):this}).filter(function(){var Rn=this.type;return this.name&&!zn(this).is(":disabled")&&ec.test(this.nodeName)&&!Zl.test(Rn)&&(this.checked||!Pa.test(Rn))}).map(function(Rn,Fn){var Un=zn(this).val();return Un==null?null:Array.isArray(Un)?zn.map(Un,function(Yn){return{name:Fn.name,value:Yn.replace(_l,`\r
`)}}):{name:Fn.name,value:Un.replace(_l,`\r
`)}}).get()}});var tc=/%20/g,nc=/#.*$/,rc=/([?&])_=[^&]*/,oc=/^(.*?):[ \t]*([^\r\n]*)$/mg,ic=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ac=/^(?:GET|HEAD)$/,sc=/^\/\//,Cl={},Us={},El="*/".concat("*"),Ks=ti.createElement("a");Ks.href=_s.href;function kl(Rn){return function(Fn,Un){typeof Fn!="string"&&(Un=Fn,Fn="*");var Yn,qo=0,Go=Fn.toLowerCase().match(oa)||[];if(Yo(Un))for(;Yn=Go[qo++];)Yn[0]==="+"?(Yn=Yn.slice(1)||"*",(Rn[Yn]=Rn[Yn]||[]).unshift(Un)):(Rn[Yn]=Rn[Yn]||[]).push(Un)}}function wl(Rn,Fn,Un,Yn){var qo={},Go=Rn===Us;function Jo(li){var ii;return qo[li]=!0,zn.each(Rn[li]||[],function(gi,ki){var Ri=ki(Fn,Un,Yn);if(typeof Ri=="string"&&!Go&&!qo[Ri])return Fn.dataTypes.unshift(Ri),Jo(Ri),!1;if(Go)return!(ii=Ri)}),ii}return Jo(Fn.dataTypes[0])||!qo["*"]&&Jo("*")}function zs(Rn,Fn){var Un,Yn,qo=zn.ajaxSettings.flatOptions||{};for(Un in Fn)Fn[Un]!==void 0&&((qo[Un]?Rn:Yn||(Yn={}))[Un]=Fn[Un]);return Yn&&zn.extend(!0,Rn,Yn),Rn}function lc(Rn,Fn,Un){for(var Yn,qo,Go,Jo,li=Rn.contents,ii=Rn.dataTypes;ii[0]==="*";)ii.shift(),Yn===void 0&&(Yn=Rn.mimeType||Fn.getResponseHeader("Content-Type"));if(Yn){for(qo in li)if(li[qo]&&li[qo].test(Yn)){ii.unshift(qo);break}}if(ii[0]in Un)Go=ii[0];else{for(qo in Un){if(!ii[0]||Rn.converters[qo+" "+ii[0]]){Go=qo;break}Jo||(Jo=qo)}Go=Go||Jo}if(Go)return Go!==ii[0]&&ii.unshift(Go),Un[Go]}function cc(Rn,Fn,Un,Yn){var qo,Go,Jo,li,ii,gi={},ki=Rn.dataTypes.slice();if(ki[1])for(Jo in Rn.converters)gi[Jo.toLowerCase()]=Rn.converters[Jo];for(Go=ki.shift();Go;)if(Rn.responseFields[Go]&&(Un[Rn.responseFields[Go]]=Fn),!ii&&Yn&&Rn.dataFilter&&(Fn=Rn.dataFilter(Fn,Rn.dataType)),ii=Go,Go=ki.shift(),Go){if(Go==="*")Go=ii;else if(ii!=="*"&&ii!==Go){if(Jo=gi[ii+" "+Go]||gi["* "+Go],!Jo){for(qo in gi)if(li=qo.split(" "),li[1]===Go&&(Jo=gi[ii+" "+li[0]]||gi["* "+li[0]],Jo)){Jo===!0?Jo=gi[qo]:gi[qo]!==!0&&(Go=li[0],ki.unshift(li[1]));break}}if(Jo!==!0)if(Jo&&Rn.throws)Fn=Jo(Fn);else try{Fn=Jo(Fn)}catch(Ri){return{state:"parsererror",error:Jo?Ri:"No conversion from "+ii+" to "+Go}}}}return{state:"success",data:Fn}}zn.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:_s.href,type:"GET",isLocal:ic.test(_s.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":El,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":zn.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(Rn,Fn){return Fn?zs(zs(Rn,zn.ajaxSettings),Fn):zs(zn.ajaxSettings,Rn)},ajaxPrefilter:kl(Cl),ajaxTransport:kl(Us),ajax:function(Rn,Fn){typeof Rn=="object"&&(Fn=Rn,Rn=void 0),Fn=Fn||{};var Un,Yn,qo,Go,Jo,li,ii,gi,ki,Ri,Ci=zn.ajaxSetup({},Fn),Ai=Ci.context||Ci,ra=Ci.context&&(Ai.nodeType||Ai.jquery)?zn(Ai):zn.event,ma=zn.Deferred(),na=zn.Callbacks("once memory"),La=Ci.statusCode||{},Ba={},Wa={},wa="canceled",ga={readyState:0,getResponseHeader:function(Ea){var Na;if(ii){if(!Go)for(Go={};Na=oc.exec(qo);)Go[Na[1].toLowerCase()+" "]=(Go[Na[1].toLowerCase()+" "]||[]).concat(Na[2]);Na=Go[Ea.toLowerCase()+" "]}return Na==null?null:Na.join(", ")},getAllResponseHeaders:function(){return ii?qo:null},setRequestHeader:function(Ea,Na){return ii==null&&(Ea=Wa[Ea.toLowerCase()]=Wa[Ea.toLowerCase()]||Ea,Ba[Ea]=Na),this},overrideMimeType:function(Ea){return ii==null&&(Ci.mimeType=Ea),this},statusCode:function(Ea){var Na;if(Ea)if(ii)ga.always(Ea[ga.status]);else for(Na in Ea)La[Na]=[La[Na],Ea[Na]];return this},abort:function(Ea){var Na=Ea||wa;return Un&&Un.abort(Na),Ha(0,Na),this}};if(ma.promise(ga),Ci.url=((Rn||Ci.url||_s.href)+"").replace(sc,_s.protocol+"//"),Ci.type=Fn.method||Fn.type||Ci.method||Ci.type,Ci.dataTypes=(Ci.dataType||"*").toLowerCase().match(oa)||[""],Ci.crossDomain==null){li=ti.createElement("a");try{li.href=Ci.url,li.href=li.href,Ci.crossDomain=Ks.protocol+"//"+Ks.host!=li.protocol+"//"+li.host}catch{Ci.crossDomain=!0}}if(Ci.data&&Ci.processData&&typeof Ci.data!="string"&&(Ci.data=zn.param(Ci.data,Ci.traditional)),wl(Cl,Ci,Fn,ga),ii)return ga;gi=zn.event&&Ci.global,gi&&zn.active++===0&&zn.event.trigger("ajaxStart"),Ci.type=Ci.type.toUpperCase(),Ci.hasContent=!ac.test(Ci.type),Yn=Ci.url.replace(nc,""),Ci.hasContent?Ci.data&&Ci.processData&&(Ci.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(Ci.data=Ci.data.replace(tc,"+")):(Ri=Ci.url.slice(Yn.length),Ci.data&&(Ci.processData||typeof Ci.data=="string")&&(Yn+=(js.test(Yn)?"&":"?")+Ci.data,delete Ci.data),Ci.cache===!1&&(Yn=Yn.replace(rc,"$1"),Ri=(js.test(Yn)?"&":"?")+"_="+bl.guid+++Ri),Ci.url=Yn+Ri),Ci.ifModified&&(zn.lastModified[Yn]&&ga.setRequestHeader("If-Modified-Since",zn.lastModified[Yn]),zn.etag[Yn]&&ga.setRequestHeader("If-None-Match",zn.etag[Yn])),(Ci.data&&Ci.hasContent&&Ci.contentType!==!1||Fn.contentType)&&ga.setRequestHeader("Content-Type",Ci.contentType),ga.setRequestHeader("Accept",Ci.dataTypes[0]&&Ci.accepts[Ci.dataTypes[0]]?Ci.accepts[Ci.dataTypes[0]]+(Ci.dataTypes[0]!=="*"?", "+El+"; q=0.01":""):Ci.accepts["*"]);for(ki in Ci.headers)ga.setRequestHeader(ki,Ci.headers[ki]);if(Ci.beforeSend&&(Ci.beforeSend.call(Ai,ga,Ci)===!1||ii))return ga.abort();if(wa="abort",na.add(Ci.complete),ga.done(Ci.success),ga.fail(Ci.error),Un=wl(Us,Ci,Fn,ga),!Un)Ha(-1,"No Transport");else{if(ga.readyState=1,gi&&ra.trigger("ajaxSend",[ga,Ci]),ii)return ga;Ci.async&&Ci.timeout>0&&(Jo=Cn.setTimeout(function(){ga.abort("timeout")},Ci.timeout));try{ii=!1,Un.send(Ba,Ha)}catch(Ea){if(ii)throw Ea;Ha(-1,Ea)}}function Ha(Ea,Na,Es,$s){var Ua,as,ss,ja,ns,qa=Na;ii||(ii=!0,Jo&&Cn.clearTimeout(Jo),Un=void 0,qo=$s||"",ga.readyState=Ea>0?4:0,Ua=Ea>=200&&Ea<300||Ea===304,Es&&(ja=lc(Ci,ga,Es)),!Ua&&zn.inArray("script",Ci.dataTypes)>-1&&zn.inArray("json",Ci.dataTypes)<0&&(Ci.converters["text script"]=function(){}),ja=cc(Ci,ja,ga,Ua),Ua?(Ci.ifModified&&(ns=ga.getResponseHeader("Last-Modified"),ns&&(zn.lastModified[Yn]=ns),ns=ga.getResponseHeader("etag"),ns&&(zn.etag[Yn]=ns)),Ea===204||Ci.type==="HEAD"?qa="nocontent":Ea===304?qa="notmodified":(qa=ja.state,as=ja.data,ss=ja.error,Ua=!ss)):(ss=qa,(Ea||!qa)&&(qa="error",Ea<0&&(Ea=0))),ga.status=Ea,ga.statusText=(Na||qa)+"",Ua?ma.resolveWith(Ai,[as,qa,ga]):ma.rejectWith(Ai,[ga,qa,ss]),ga.statusCode(La),La=void 0,gi&&ra.trigger(Ua?"ajaxSuccess":"ajaxError",[ga,Ci,Ua?as:ss]),na.fireWith(Ai,[ga,qa]),gi&&(ra.trigger("ajaxComplete",[ga,Ci]),--zn.active||zn.event.trigger("ajaxStop")))}return ga},getJSON:function(Rn,Fn,Un){return zn.get(Rn,Fn,Un,"json")},getScript:function(Rn,Fn){return zn.get(Rn,void 0,Fn,"script")}}),zn.each(["get","post"],function(Rn,Fn){zn[Fn]=function(Un,Yn,qo,Go){return Yo(Yn)&&(Go=Go||qo,qo=Yn,Yn=void 0),zn.ajax(zn.extend({url:Un,type:Fn,dataType:Go,data:Yn,success:qo},zn.isPlainObject(Un)&&Un))}}),zn.ajaxPrefilter(function(Rn){var Fn;for(Fn in Rn.headers)Fn.toLowerCase()==="content-type"&&(Rn.contentType=Rn.headers[Fn]||"")}),zn._evalUrl=function(Rn,Fn,Un){return zn.ajax({url:Rn,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(Yn){zn.globalEval(Yn,Fn,Un)}})},zn.fn.extend({wrapAll:function(Rn){var Fn;return this[0]&&(Yo(Rn)&&(Rn=Rn.call(this[0])),Fn=zn(Rn,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&Fn.insertBefore(this[0]),Fn.map(function(){for(var Un=this;Un.firstElementChild;)Un=Un.firstElementChild;return Un}).append(this)),this},wrapInner:function(Rn){return Yo(Rn)?this.each(function(Fn){zn(this).wrapInner(Rn.call(this,Fn))}):this.each(function(){var Fn=zn(this),Un=Fn.contents();Un.length?Un.wrapAll(Rn):Fn.append(Rn)})},wrap:function(Rn){var Fn=Yo(Rn);return this.each(function(Un){zn(this).wrapAll(Fn?Rn.call(this,Un):Rn)})},unwrap:function(Rn){return this.parent(Rn).not("body").each(function(){zn(this).replaceWith(this.childNodes)}),this}}),zn.expr.pseudos.hidden=function(Rn){return!zn.expr.pseudos.visible(Rn)},zn.expr.pseudos.visible=function(Rn){return!!(Rn.offsetWidth||Rn.offsetHeight||Rn.getClientRects().length)},zn.ajaxSettings.xhr=function(){try{return new Cn.XMLHttpRequest}catch{}};var uc={0:200,1223:204},Cs=zn.ajaxSettings.xhr();nr.cors=!!Cs&&"withCredentials"in Cs,nr.ajax=Cs=!!Cs,zn.ajaxTransport(function(Rn){var Fn,Un;if(nr.cors||Cs&&!Rn.crossDomain)return{send:function(Yn,qo){var Go,Jo=Rn.xhr();if(Jo.open(Rn.type,Rn.url,Rn.async,Rn.username,Rn.password),Rn.xhrFields)for(Go in Rn.xhrFields)Jo[Go]=Rn.xhrFields[Go];Rn.mimeType&&Jo.overrideMimeType&&Jo.overrideMimeType(Rn.mimeType),!Rn.crossDomain&&!Yn["X-Requested-With"]&&(Yn["X-Requested-With"]="XMLHttpRequest");for(Go in Yn)Jo.setRequestHeader(Go,Yn[Go]);Fn=function(li){return function(){Fn&&(Fn=Un=Jo.onload=Jo.onerror=Jo.onabort=Jo.ontimeout=Jo.onreadystatechange=null,li==="abort"?Jo.abort():li==="error"?typeof Jo.status!="number"?qo(0,"error"):qo(Jo.status,Jo.statusText):qo(uc[Jo.status]||Jo.status,Jo.statusText,(Jo.responseType||"text")!=="text"||typeof Jo.responseText!="string"?{binary:Jo.response}:{text:Jo.responseText},Jo.getAllResponseHeaders()))}},Jo.onload=Fn(),Un=Jo.onerror=Jo.ontimeout=Fn("error"),Jo.onabort!==void 0?Jo.onabort=Un:Jo.onreadystatechange=function(){Jo.readyState===4&&Cn.setTimeout(function(){Fn&&Un()})},Fn=Fn("abort");try{Jo.send(Rn.hasContent&&Rn.data||null)}catch(li){if(Fn)throw li}},abort:function(){Fn&&Fn()}}}),zn.ajaxPrefilter(function(Rn){Rn.crossDomain&&(Rn.contents.script=!1)}),zn.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(Rn){return zn.globalEval(Rn),Rn}}}),zn.ajaxPrefilter("script",function(Rn){Rn.cache===void 0&&(Rn.cache=!1),Rn.crossDomain&&(Rn.type="GET")}),zn.ajaxTransport("script",function(Rn){if(Rn.crossDomain||Rn.scriptAttrs){var Fn,Un;return{send:function(Yn,qo){Fn=zn("<script>").attr(Rn.scriptAttrs||{}).prop({charset:Rn.scriptCharset,src:Rn.url}).on("load error",Un=function(Go){Fn.remove(),Un=null,Go&&qo(Go.type==="error"?404:200,Go.type)}),ti.head.appendChild(Fn[0])},abort:function(){Un&&Un()}}}});var Tl=[],qs=/(=)\?(?=&|$)|\?\?/;zn.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var Rn=Tl.pop()||zn.expando+"_"+bl.guid++;return this[Rn]=!0,Rn}}),zn.ajaxPrefilter("json jsonp",function(Rn,Fn,Un){var Yn,qo,Go,Jo=Rn.jsonp!==!1&&(qs.test(Rn.url)?"url":typeof Rn.data=="string"&&(Rn.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&qs.test(Rn.data)&&"data");if(Jo||Rn.dataTypes[0]==="jsonp")return Yn=Rn.jsonpCallback=Yo(Rn.jsonpCallback)?Rn.jsonpCallback():Rn.jsonpCallback,Jo?Rn[Jo]=Rn[Jo].replace(qs,"$1"+Yn):Rn.jsonp!==!1&&(Rn.url+=(js.test(Rn.url)?"&":"?")+Rn.jsonp+"="+Yn),Rn.converters["script json"]=function(){return Go||zn.error(Yn+" was not called"),Go[0]},Rn.dataTypes[0]="json",qo=Cn[Yn],Cn[Yn]=function(){Go=arguments},Un.always(function(){qo===void 0?zn(Cn).removeProp(Yn):Cn[Yn]=qo,Rn[Yn]&&(Rn.jsonpCallback=Fn.jsonpCallback,Tl.push(Yn)),Go&&Yo(qo)&&qo(Go[0]),Go=qo=void 0}),"script"}),nr.createHTMLDocument=function(){var Rn=ti.implementation.createHTMLDocument("").body;return Rn.innerHTML="<form></form><form></form>",Rn.childNodes.length===2}(),zn.parseHTML=function(Rn,Fn,Un){if(typeof Rn!="string")return[];typeof Fn=="boolean"&&(Un=Fn,Fn=!1);var Yn,qo,Go;return Fn||(nr.createHTMLDocument?(Fn=ti.implementation.createHTMLDocument(""),Yn=Fn.createElement("base"),Yn.href=ti.location.href,Fn.head.appendChild(Yn)):Fn=ti),qo=yi.exec(Rn),Go=!Un&&[],qo?[Fn.createElement(qo[1])]:(qo=Ma([Rn],Fn,Go),Go&&Go.length&&zn(Go).remove(),zn.merge([],qo.childNodes))},zn.fn.load=function(Rn,Fn,Un){var Yn,qo,Go,Jo=this,li=Rn.indexOf(" ");return li>-1&&(Yn=os(Rn.slice(li)),Rn=Rn.slice(0,li)),Yo(Fn)?(Un=Fn,Fn=void 0):Fn&&typeof Fn=="object"&&(qo="POST"),Jo.length>0&&zn.ajax({url:Rn,type:qo||"GET",dataType:"html",data:Fn}).done(function(ii){Go=arguments,Jo.html(Yn?zn("<div>").append(zn.parseHTML(ii)).find(Yn):ii)}).always(Un&&function(ii,gi){Jo.each(function(){Un.apply(this,Go||[ii.responseText,gi,ii])})}),this},zn.expr.pseudos.animated=function(Rn){return zn.grep(zn.timers,function(Fn){return Rn===Fn.elem}).length},zn.offset={setOffset:function(Rn,Fn,Un){var Yn,qo,Go,Jo,li,ii,gi,ki=zn.css(Rn,"position"),Ri=zn(Rn),Ci={};ki==="static"&&(Rn.style.position="relative"),li=Ri.offset(),Go=zn.css(Rn,"top"),ii=zn.css(Rn,"left"),gi=(ki==="absolute"||ki==="fixed")&&(Go+ii).indexOf("auto")>-1,gi?(Yn=Ri.position(),Jo=Yn.top,qo=Yn.left):(Jo=parseFloat(Go)||0,qo=parseFloat(ii)||0),Yo(Fn)&&(Fn=Fn.call(Rn,Un,zn.extend({},li))),Fn.top!=null&&(Ci.top=Fn.top-li.top+Jo),Fn.left!=null&&(Ci.left=Fn.left-li.left+qo),"using"in Fn?Fn.using.call(Rn,Ci):Ri.css(Ci)}},zn.fn.extend({offset:function(Rn){if(arguments.length)return Rn===void 0?this:this.each(function(qo){zn.offset.setOffset(this,Rn,qo)});var Fn,Un,Yn=this[0];if(Yn)return Yn.getClientRects().length?(Fn=Yn.getBoundingClientRect(),Un=Yn.ownerDocument.defaultView,{top:Fn.top+Un.pageYOffset,left:Fn.left+Un.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var Rn,Fn,Un,Yn=this[0],qo={top:0,left:0};if(zn.css(Yn,"position")==="fixed")Fn=Yn.getBoundingClientRect();else{for(Fn=this.offset(),Un=Yn.ownerDocument,Rn=Yn.offsetParent||Un.documentElement;Rn&&(Rn===Un.body||Rn===Un.documentElement)&&zn.css(Rn,"position")==="static";)Rn=Rn.parentNode;Rn&&Rn!==Yn&&Rn.nodeType===1&&(qo=zn(Rn).offset(),qo.top+=zn.css(Rn,"borderTopWidth",!0),qo.left+=zn.css(Rn,"borderLeftWidth",!0))}return{top:Fn.top-qo.top-zn.css(Yn,"marginTop",!0),left:Fn.left-qo.left-zn.css(Yn,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var Rn=this.offsetParent;Rn&&zn.css(Rn,"position")==="static";)Rn=Rn.offsetParent;return Rn||Ui})}}),zn.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(Rn,Fn){var Un=Fn==="pageYOffset";zn.fn[Rn]=function(Yn){return qi(this,function(qo,Go,Jo){var li;if(ei(qo)?li=qo:qo.nodeType===9&&(li=qo.defaultView),Jo===void 0)return li?li[Fn]:qo[Go];li?li.scrollTo(Un?li.pageXOffset:Jo,Un?Jo:li.pageYOffset):qo[Go]=Jo},Rn,Yn,arguments.length)}}),zn.each(["top","left"],function(Rn,Fn){zn.cssHooks[Fn]=sl(nr.pixelPosition,function(Un,Yn){if(Yn)return Yn=ys(Un,Fn),Rs.test(Yn)?zn(Un).position()[Fn]+"px":Yn})}),zn.each({Height:"height",Width:"width"},function(Rn,Fn){zn.each({padding:"inner"+Rn,content:Fn,"":"outer"+Rn},function(Un,Yn){zn.fn[Yn]=function(qo,Go){var Jo=arguments.length&&(Un||typeof qo!="boolean"),li=Un||(qo===!0||Go===!0?"margin":"border");return qi(this,function(ii,gi,ki){var Ri;return ei(ii)?Yn.indexOf("outer")===0?ii["inner"+Rn]:ii.document.documentElement["client"+Rn]:ii.nodeType===9?(Ri=ii.documentElement,Math.max(ii.body["scroll"+Rn],Ri["scroll"+Rn],ii.body["offset"+Rn],Ri["offset"+Rn],Ri["client"+Rn])):ki===void 0?zn.css(ii,gi,li):zn.style(ii,gi,ki,li)},Fn,Jo?qo:void 0,Jo)}})}),zn.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(Rn,Fn){zn.fn[Fn]=function(Un){return this.on(Fn,Un)}}),zn.fn.extend({bind:function(Rn,Fn,Un){return this.on(Rn,null,Fn,Un)},unbind:function(Rn,Fn){return this.off(Rn,null,Fn)},delegate:function(Rn,Fn,Un,Yn){return this.on(Fn,Rn,Un,Yn)},undelegate:function(Rn,Fn,Un){return arguments.length===1?this.off(Rn,"**"):this.off(Fn,Rn||"**",Un)},hover:function(Rn,Fn){return this.mouseenter(Rn).mouseleave(Fn||Rn)}}),zn.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(Rn,Fn){zn.fn[Fn]=function(Un,Yn){return arguments.length>0?this.on(Fn,null,Un,Yn):this.trigger(Fn)}});var dc=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;zn.proxy=function(Rn,Fn){var Un,Yn,qo;if(typeof Fn=="string"&&(Un=Rn[Fn],Fn=Rn,Rn=Un),!!Yo(Rn))return Yn=Ln.call(arguments,2),qo=function(){return Rn.apply(Fn||this,Yn.concat(Ln.call(arguments)))},qo.guid=Rn.guid=Rn.guid||zn.guid++,qo},zn.holdReady=function(Rn){Rn?zn.readyWait++:zn.ready(!0)},zn.isArray=Array.isArray,zn.parseJSON=JSON.parse,zn.nodeName=pi,zn.isFunction=Yo,zn.isWindow=ei,zn.camelCase=si,zn.type=Xo,zn.now=Date.now,zn.isNumeric=function(Rn){var Fn=zn.type(Rn);return(Fn==="number"||Fn==="string")&&!isNaN(Rn-parseFloat(Rn))},zn.trim=function(Rn){return Rn==null?"":(Rn+"").replace(dc,"$1")};var fc=Cn.jQuery,pc=Cn.$;return zn.noConflict=function(Rn){return Cn.$===zn&&(Cn.$=pc),Rn&&Cn.jQuery===zn&&(Cn.jQuery=fc),zn},typeof $n>"u"&&(Cn.jQuery=Cn.$=zn),zn})}(jquery)),jquery.exports}(function(_n){(function(Cn){Cn(["jquery"],function($n){return function(){var Nn,Bn,Ln=0,In={error:"error",info:"info",success:"success",warning:"warning"},Pn={clear:Yo,remove:ei,error:Hn,getContainer:Wn,info:Xn,options:{},subscribe:Gn,success:rr,version:"2.1.4",warning:nr},Dn;return Pn;function Hn(Qo,ri,ci){return zn({type:In.error,iconClass:Ni().iconClasses.error,message:Qo,optionsOverride:ci,title:ri})}function Wn(Qo,ri){return Qo||(Qo=Ni()),Nn=$n("#"+Qo.containerId),Nn.length||ri&&(Nn=mi(Qo)),Nn}function Xn(Qo,ri,ci){return zn({type:In.info,iconClass:Ni().iconClasses.info,message:Qo,optionsOverride:ci,title:ri})}function Gn(Qo){Bn=Qo}function rr(Qo,ri,ci){return zn({type:In.success,iconClass:Ni().iconClasses.success,message:Qo,optionsOverride:ci,title:ri})}function nr(Qo,ri,ci){return zn({type:In.warning,iconClass:Ni().iconClasses.warning,message:Qo,optionsOverride:ci,title:ri})}function Yo(Qo,ri){var ci=Ni();Nn||Wn(ci),ui(Qo,ci,ri)||ti(ci)}function ei(Qo){var ri=Ni();if(Nn||Wn(ri),Qo&&$n(":focus",Qo).length===0){ni(Qo);return}Nn.children().length&&Nn.remove()}function ti(Qo){for(var ri=Nn.children(),ci=ri.length-1;ci>=0;ci--)ui($n(ri[ci]),Qo)}function ui(Qo,ri,ci){var pi=ci&&ci.force?ci.force:!1;return Qo&&(pi||$n(":focus",Qo).length===0)?(Qo[ri.hideMethod]({duration:ri.hideDuration,easing:ri.hideEasing,complete:function(){ni(Qo)}}),!0):!1}function mi(Qo){return Nn=$n("<div/>").attr("id",Qo.containerId).addClass(Qo.positionClass),Nn.appendTo($n(Qo.target)),Nn}function Xo(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">&times;</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1}}function vi(Qo){Bn&&Bn(Qo)}function zn(Qo){var ri=Ni(),ci=Qo.iconClass||ri.iconClass;if(typeof Qo.optionsOverride<"u"&&(ri=$n.extend(ri,Qo.optionsOverride),ci=Qo.optionsOverride.iconClass||ci),oi(ri,Qo))return;Ln++,Nn=Wn(ri,!0);var pi=null,yi=$n("<div/>"),Li=$n("<div/>"),ta=$n("<div/>"),Yi=$n("<div/>"),bi=$n(ri.closeHtml),xi={intervalId:null,hideEta:null,maxHideTime:null},Ii={toastId:Ln,state:"visible",startTime:new Date,options:ri,map:Qo};return oa(),ji(),Mi(),vi(Ii),ri.debug&&console&&console.log(Ii),yi;function da(Ei){return Ei==null&&(Ei=""),Ei.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function oa(){Ki(),ea(),ca(),qi(),fa(),ya(),zi(),Si()}function Si(){var Ei="";switch(Qo.iconClass){case"toast-success":case"toast-info":Ei="polite";break;default:Ei="assertive"}yi.attr("aria-live",Ei)}function Mi(){ri.closeOnHover&&yi.hover(Ti,_i),!ri.onclick&&ri.tapToDismiss&&yi.click(si),ri.closeButton&&bi&&bi.click(function(Ei){Ei.stopPropagation?Ei.stopPropagation():Ei.cancelBubble!==void 0&&Ei.cancelBubble!==!0&&(Ei.cancelBubble=!0),ri.onCloseClick&&ri.onCloseClick(Ei),si(!0)}),ri.onclick&&yi.click(function(Ei){ri.onclick(Ei),si()})}function ji(){yi.hide(),yi[ri.showMethod]({duration:ri.showDuration,easing:ri.showEasing,complete:ri.onShown}),ri.timeOut>0&&(pi=setTimeout(si,ri.timeOut),xi.maxHideTime=parseFloat(ri.timeOut),xi.hideEta=new Date().getTime()+xi.maxHideTime,ri.progressBar&&(xi.intervalId=setInterval(fi,10)))}function Ki(){Qo.iconClass&&yi.addClass(ri.toastClass).addClass(ci)}function zi(){ri.newestOnTop?Nn.prepend(yi):Nn.append(yi)}function ea(){if(Qo.title){var Ei=Qo.title;ri.escapeHtml&&(Ei=da(Qo.title)),Li.append(Ei).addClass(ri.titleClass),yi.append(Li)}}function ca(){if(Qo.message){var Ei=Qo.message;ri.escapeHtml&&(Ei=da(Qo.message)),ta.append(Ei).addClass(ri.messageClass),yi.append(ta)}}function qi(){ri.closeButton&&(bi.addClass(ri.closeClass).attr("role","button"),yi.prepend(bi))}function fa(){ri.progressBar&&(Yi.addClass(ri.progressClass),yi.prepend(Yi))}function ya(){ri.rtl&&yi.addClass("rtl")}function oi(Ei,Fi){if(Ei.preventDuplicates){if(Fi.message===Dn)return!0;Dn=Fi.message}return!1}function si(Ei){var Fi=Ei&&ri.closeMethod!==!1?ri.closeMethod:ri.hideMethod,Pi=Ei&&ri.closeDuration!==!1?ri.closeDuration:ri.hideDuration,Vi=Ei&&ri.closeEasing!==!1?ri.closeEasing:ri.hideEasing;if(!($n(":focus",yi).length&&!Ei))return clearTimeout(xi.intervalId),yi[Fi]({duration:Pi,easing:Vi,complete:function(){ni(yi),clearTimeout(pi),ri.onHidden&&Ii.state!=="hidden"&&ri.onHidden(),Ii.state="hidden",Ii.endTime=new Date,vi(Ii)}})}function _i(){(ri.timeOut>0||ri.extendedTimeOut>0)&&(pi=setTimeout(si,ri.extendedTimeOut),xi.maxHideTime=parseFloat(ri.extendedTimeOut),xi.hideEta=new Date().getTime()+xi.maxHideTime)}function Ti(){clearTimeout(pi),xi.hideEta=0,yi.stop(!0,!0)[ri.showMethod]({duration:ri.showDuration,easing:ri.showEasing})}function fi(){var Ei=(xi.hideEta-new Date().getTime())/xi.maxHideTime*100;Yi.width(Ei+"%")}}function Ni(){return $n.extend({},Xo(),Pn.options)}function ni(Qo){Nn||(Nn=Wn()),!Qo.is(":visible")&&(Qo.remove(),Qo=null,Nn.children().length===0&&(Nn.remove(),Dn=void 0))}}()})})(function(Cn,$n){_n.exports?_n.exports=$n(requireJquery()):window.toastr=$n(window.jQuery)})})(toastr$1);var toastrExports=toastr$1.exports;const toastr=getDefaultExportFromCjs(toastrExports);var clipboard={exports:{}};/*!
* clipboard.js v2.0.11
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*/(function(_n,Cn){(function(Nn,Bn){_n.exports=Bn()})(commonjsGlobal,function(){return function(){var $n={686:function(Ln,In,Pn){Pn.d(In,{default:function(){return oa}});var Dn=Pn(279),Hn=Pn.n(Dn),Wn=Pn(370),Xn=Pn.n(Wn),Gn=Pn(817),rr=Pn.n(Gn);function nr(Si){try{return document.execCommand(Si)}catch{return!1}}var Yo=function(Mi){var ji=rr()(Mi);return nr("cut"),ji},ei=Yo;function ti(Si){var Mi=document.documentElement.getAttribute("dir")==="rtl",ji=document.createElement("textarea");ji.style.fontSize="12pt",ji.style.border="0",ji.style.padding="0",ji.style.margin="0",ji.style.position="absolute",ji.style[Mi?"right":"left"]="-9999px";var Ki=window.pageYOffset||document.documentElement.scrollTop;return ji.style.top="".concat(Ki,"px"),ji.setAttribute("readonly",""),ji.value=Si,ji}var ui=function(Mi,ji){var Ki=ti(Mi);ji.container.appendChild(Ki);var zi=rr()(Ki);return nr("copy"),Ki.remove(),zi},mi=function(Mi){var ji=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},Ki="";return typeof Mi=="string"?Ki=ui(Mi,ji):Mi instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(Mi==null?void 0:Mi.type)?Ki=ui(Mi.value,ji):(Ki=rr()(Mi),nr("copy")),Ki},Xo=mi;function vi(Si){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?vi=function(ji){return typeof ji}:vi=function(ji){return ji&&typeof Symbol=="function"&&ji.constructor===Symbol&&ji!==Symbol.prototype?"symbol":typeof ji},vi(Si)}var zn=function(){var Mi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ji=Mi.action,Ki=ji===void 0?"copy":ji,zi=Mi.container,ea=Mi.target,ca=Mi.text;if(Ki!=="copy"&&Ki!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(ea!==void 0)if(ea&&vi(ea)==="object"&&ea.nodeType===1){if(Ki==="copy"&&ea.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(Ki==="cut"&&(ea.hasAttribute("readonly")||ea.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(ca)return Xo(ca,{container:zi});if(ea)return Ki==="cut"?ei(ea):Xo(ea,{container:zi})},Ni=zn;function ni(Si){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ni=function(ji){return typeof ji}:ni=function(ji){return ji&&typeof Symbol=="function"&&ji.constructor===Symbol&&ji!==Symbol.prototype?"symbol":typeof ji},ni(Si)}function Qo(Si,Mi){if(!(Si instanceof Mi))throw new TypeError("Cannot call a class as a function")}function ri(Si,Mi){for(var ji=0;ji<Mi.length;ji++){var Ki=Mi[ji];Ki.enumerable=Ki.enumerable||!1,Ki.configurable=!0,"value"in Ki&&(Ki.writable=!0),Object.defineProperty(Si,Ki.key,Ki)}}function ci(Si,Mi,ji){return Mi&&ri(Si.prototype,Mi),ji&&ri(Si,ji),Si}function pi(Si,Mi){if(typeof Mi!="function"&&Mi!==null)throw new TypeError("Super expression must either be null or a function");Si.prototype=Object.create(Mi&&Mi.prototype,{constructor:{value:Si,writable:!0,configurable:!0}}),Mi&&yi(Si,Mi)}function yi(Si,Mi){return yi=Object.setPrototypeOf||function(Ki,zi){return Ki.__proto__=zi,Ki},yi(Si,Mi)}function Li(Si){var Mi=bi();return function(){var Ki=xi(Si),zi;if(Mi){var ea=xi(this).constructor;zi=Reflect.construct(Ki,arguments,ea)}else zi=Ki.apply(this,arguments);return ta(this,zi)}}function ta(Si,Mi){return Mi&&(ni(Mi)==="object"||typeof Mi=="function")?Mi:Yi(Si)}function Yi(Si){if(Si===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Si}function bi(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function xi(Si){return xi=Object.setPrototypeOf?Object.getPrototypeOf:function(ji){return ji.__proto__||Object.getPrototypeOf(ji)},xi(Si)}function Ii(Si,Mi){var ji="data-clipboard-".concat(Si);if(Mi.hasAttribute(ji))return Mi.getAttribute(ji)}var da=function(Si){pi(ji,Si);var Mi=Li(ji);function ji(Ki,zi){var ea;return Qo(this,ji),ea=Mi.call(this),ea.resolveOptions(zi),ea.listenClick(Ki),ea}return ci(ji,[{key:"resolveOptions",value:function(){var zi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof zi.action=="function"?zi.action:this.defaultAction,this.target=typeof zi.target=="function"?zi.target:this.defaultTarget,this.text=typeof zi.text=="function"?zi.text:this.defaultText,this.container=ni(zi.container)==="object"?zi.container:document.body}},{key:"listenClick",value:function(zi){var ea=this;this.listener=Xn()(zi,"click",function(ca){return ea.onClick(ca)})}},{key:"onClick",value:function(zi){var ea=zi.delegateTarget||zi.currentTarget,ca=this.action(ea)||"copy",qi=Ni({action:ca,container:this.container,target:this.target(ea),text:this.text(ea)});this.emit(qi?"success":"error",{action:ca,text:qi,trigger:ea,clearSelection:function(){ea&&ea.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(zi){return Ii("action",zi)}},{key:"defaultTarget",value:function(zi){var ea=Ii("target",zi);if(ea)return document.querySelector(ea)}},{key:"defaultText",value:function(zi){return Ii("text",zi)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(zi){var ea=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return Xo(zi,ea)}},{key:"cut",value:function(zi){return ei(zi)}},{key:"isSupported",value:function(){var zi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],ea=typeof zi=="string"?[zi]:zi,ca=!!document.queryCommandSupported;return ea.forEach(function(qi){ca=ca&&!!document.queryCommandSupported(qi)}),ca}}]),ji}(Hn()),oa=da},828:function(Ln){var In=9;if(typeof Element<"u"&&!Element.prototype.matches){var Pn=Element.prototype;Pn.matches=Pn.matchesSelector||Pn.mozMatchesSelector||Pn.msMatchesSelector||Pn.oMatchesSelector||Pn.webkitMatchesSelector}function Dn(Hn,Wn){for(;Hn&&Hn.nodeType!==In;){if(typeof Hn.matches=="function"&&Hn.matches(Wn))return Hn;Hn=Hn.parentNode}}Ln.exports=Dn},438:function(Ln,In,Pn){var Dn=Pn(828);function Hn(Gn,rr,nr,Yo,ei){var ti=Xn.apply(this,arguments);return Gn.addEventListener(nr,ti,ei),{destroy:function(){Gn.removeEventListener(nr,ti,ei)}}}function Wn(Gn,rr,nr,Yo,ei){return typeof Gn.addEventListener=="function"?Hn.apply(null,arguments):typeof nr=="function"?Hn.bind(null,document).apply(null,arguments):(typeof Gn=="string"&&(Gn=document.querySelectorAll(Gn)),Array.prototype.map.call(Gn,function(ti){return Hn(ti,rr,nr,Yo,ei)}))}function Xn(Gn,rr,nr,Yo){return function(ei){ei.delegateTarget=Dn(ei.target,rr),ei.delegateTarget&&Yo.call(Gn,ei)}}Ln.exports=Wn},879:function(Ln,In){In.node=function(Pn){return Pn!==void 0&&Pn instanceof HTMLElement&&Pn.nodeType===1},In.nodeList=function(Pn){var Dn=Object.prototype.toString.call(Pn);return Pn!==void 0&&(Dn==="[object NodeList]"||Dn==="[object HTMLCollection]")&&"length"in Pn&&(Pn.length===0||In.node(Pn[0]))},In.string=function(Pn){return typeof Pn=="string"||Pn instanceof String},In.fn=function(Pn){var Dn=Object.prototype.toString.call(Pn);return Dn==="[object Function]"}},370:function(Ln,In,Pn){var Dn=Pn(879),Hn=Pn(438);function Wn(nr,Yo,ei){if(!nr&&!Yo&&!ei)throw new Error("Missing required arguments");if(!Dn.string(Yo))throw new TypeError("Second argument must be a String");if(!Dn.fn(ei))throw new TypeError("Third argument must be a Function");if(Dn.node(nr))return Xn(nr,Yo,ei);if(Dn.nodeList(nr))return Gn(nr,Yo,ei);if(Dn.string(nr))return rr(nr,Yo,ei);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function Xn(nr,Yo,ei){return nr.addEventListener(Yo,ei),{destroy:function(){nr.removeEventListener(Yo,ei)}}}function Gn(nr,Yo,ei){return Array.prototype.forEach.call(nr,function(ti){ti.addEventListener(Yo,ei)}),{destroy:function(){Array.prototype.forEach.call(nr,function(ti){ti.removeEventListener(Yo,ei)})}}}function rr(nr,Yo,ei){return Hn(document.body,nr,Yo,ei)}Ln.exports=Wn},817:function(Ln){function In(Pn){var Dn;if(Pn.nodeName==="SELECT")Pn.focus(),Dn=Pn.value;else if(Pn.nodeName==="INPUT"||Pn.nodeName==="TEXTAREA"){var Hn=Pn.hasAttribute("readonly");Hn||Pn.setAttribute("readonly",""),Pn.select(),Pn.setSelectionRange(0,Pn.value.length),Hn||Pn.removeAttribute("readonly"),Dn=Pn.value}else{Pn.hasAttribute("contenteditable")&&Pn.focus();var Wn=window.getSelection(),Xn=document.createRange();Xn.selectNodeContents(Pn),Wn.removeAllRanges(),Wn.addRange(Xn),Dn=Wn.toString()}return Dn}Ln.exports=In},279:function(Ln){function In(){}In.prototype={on:function(Pn,Dn,Hn){var Wn=this.e||(this.e={});return(Wn[Pn]||(Wn[Pn]=[])).push({fn:Dn,ctx:Hn}),this},once:function(Pn,Dn,Hn){var Wn=this;function Xn(){Wn.off(Pn,Xn),Dn.apply(Hn,arguments)}return Xn._=Dn,this.on(Pn,Xn,Hn)},emit:function(Pn){var Dn=[].slice.call(arguments,1),Hn=((this.e||(this.e={}))[Pn]||[]).slice(),Wn=0,Xn=Hn.length;for(Wn;Wn<Xn;Wn++)Hn[Wn].fn.apply(Hn[Wn].ctx,Dn);return this},off:function(Pn,Dn){var Hn=this.e||(this.e={}),Wn=Hn[Pn],Xn=[];if(Wn&&Dn)for(var Gn=0,rr=Wn.length;Gn<rr;Gn++)Wn[Gn].fn!==Dn&&Wn[Gn].fn._!==Dn&&Xn.push(Wn[Gn]);return Xn.length?Hn[Pn]=Xn:delete Hn[Pn],this}},Ln.exports=In,Ln.exports.TinyEmitter=In}},Nn={};function Bn(Ln){if(Nn[Ln])return Nn[Ln].exports;var In=Nn[Ln]={exports:{}};return $n[Ln](In,In.exports,Bn),In.exports}return function(){Bn.n=function(Ln){var In=Ln&&Ln.__esModule?function(){return Ln.default}:function(){return Ln};return Bn.d(In,{a:In}),In}}(),function(){Bn.d=function(Ln,In){for(var Pn in In)Bn.o(In,Pn)&&!Bn.o(Ln,Pn)&&Object.defineProperty(Ln,Pn,{enumerable:!0,get:In[Pn]})}}(),function(){Bn.o=function(Ln,In){return Object.prototype.hasOwnProperty.call(Ln,In)}}(),Bn(686)}().default})})(clipboard);var clipboardExports=clipboard.exports;const Clipboard=getDefaultExportFromCjs(clipboardExports),VueClipboard=_n=>{const Cn=(_n==null?void 0:_n.appendToBody)===void 0?!0:_n.appendToBody;return{toClipboard($n,Nn){return new Promise((Bn,Ln)=>{const In=document.createElement("button"),Pn=new Clipboard(In,{text:()=>$n,action:()=>"copy",container:Nn!==void 0?Nn:document.body});Pn.on("success",Dn=>{Pn.destroy(),Bn(Dn)}),Pn.on("error",Dn=>{Pn.destroy(),Ln(Dn)}),Cn&&document.body.appendChild(In),In.click(),Cn&&document.body.removeChild(In)})}}};function bind(_n,Cn){return function(){return _n.apply(Cn,arguments)}}const{toString}=Object.prototype,{getPrototypeOf}=Object,kindOf=(_n=>Cn=>{const $n=toString.call(Cn);return _n[$n]||(_n[$n]=$n.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=_n=>(_n=_n.toLowerCase(),Cn=>kindOf(Cn)===_n),typeOfTest=_n=>Cn=>typeof Cn===_n,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(_n){return _n!==null&&!isUndefined(_n)&&_n.constructor!==null&&!isUndefined(_n.constructor)&&isFunction(_n.constructor.isBuffer)&&_n.constructor.isBuffer(_n)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(_n){let Cn;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?Cn=ArrayBuffer.isView(_n):Cn=_n&&_n.buffer&&isArrayBuffer(_n.buffer),Cn}const isString=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=_n=>_n!==null&&typeof _n=="object",isBoolean=_n=>_n===!0||_n===!1,isPlainObject=_n=>{if(kindOf(_n)!=="object")return!1;const Cn=getPrototypeOf(_n);return(Cn===null||Cn===Object.prototype||Object.getPrototypeOf(Cn)===null)&&!(Symbol.toStringTag in _n)&&!(Symbol.iterator in _n)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=_n=>isObject(_n)&&isFunction(_n.pipe),isFormData=_n=>{let Cn;return _n&&(typeof FormData=="function"&&_n instanceof FormData||isFunction(_n.append)&&((Cn=kindOf(_n))==="formdata"||Cn==="object"&&isFunction(_n.toString)&&_n.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),trim=_n=>_n.trim?_n.trim():_n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(_n,Cn,{allOwnKeys:$n=!1}={}){if(_n===null||typeof _n>"u")return;let Nn,Bn;if(typeof _n!="object"&&(_n=[_n]),isArray(_n))for(Nn=0,Bn=_n.length;Nn<Bn;Nn++)Cn.call(null,_n[Nn],Nn,_n);else{const Ln=$n?Object.getOwnPropertyNames(_n):Object.keys(_n),In=Ln.length;let Pn;for(Nn=0;Nn<In;Nn++)Pn=Ln[Nn],Cn.call(null,_n[Pn],Pn,_n)}}function findKey(_n,Cn){Cn=Cn.toLowerCase();const $n=Object.keys(_n);let Nn=$n.length,Bn;for(;Nn-- >0;)if(Bn=$n[Nn],Cn===Bn.toLowerCase())return Bn;return null}const _global=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),isContextDefined=_n=>!isUndefined(_n)&&_n!==_global;function merge(){const{caseless:_n}=isContextDefined(this)&&this||{},Cn={},$n=(Nn,Bn)=>{const Ln=_n&&findKey(Cn,Bn)||Bn;isPlainObject(Cn[Ln])&&isPlainObject(Nn)?Cn[Ln]=merge(Cn[Ln],Nn):isPlainObject(Nn)?Cn[Ln]=merge({},Nn):isArray(Nn)?Cn[Ln]=Nn.slice():Cn[Ln]=Nn};for(let Nn=0,Bn=arguments.length;Nn<Bn;Nn++)arguments[Nn]&&forEach(arguments[Nn],$n);return Cn}const extend=(_n,Cn,$n,{allOwnKeys:Nn}={})=>(forEach(Cn,(Bn,Ln)=>{$n&&isFunction(Bn)?_n[Ln]=bind(Bn,$n):_n[Ln]=Bn},{allOwnKeys:Nn}),_n),stripBOM=_n=>(_n.charCodeAt(0)===65279&&(_n=_n.slice(1)),_n),inherits=(_n,Cn,$n,Nn)=>{_n.prototype=Object.create(Cn.prototype,Nn),_n.prototype.constructor=_n,Object.defineProperty(_n,"super",{value:Cn.prototype}),$n&&Object.assign(_n.prototype,$n)},toFlatObject=(_n,Cn,$n,Nn)=>{let Bn,Ln,In;const Pn={};if(Cn=Cn||{},_n==null)return Cn;do{for(Bn=Object.getOwnPropertyNames(_n),Ln=Bn.length;Ln-- >0;)In=Bn[Ln],(!Nn||Nn(In,_n,Cn))&&!Pn[In]&&(Cn[In]=_n[In],Pn[In]=!0);_n=$n!==!1&&getPrototypeOf(_n)}while(_n&&(!$n||$n(_n,Cn))&&_n!==Object.prototype);return Cn},endsWith=(_n,Cn,$n)=>{_n=String(_n),($n===void 0||$n>_n.length)&&($n=_n.length),$n-=Cn.length;const Nn=_n.indexOf(Cn,$n);return Nn!==-1&&Nn===$n},toArray=_n=>{if(!_n)return null;if(isArray(_n))return _n;let Cn=_n.length;if(!isNumber(Cn))return null;const $n=new Array(Cn);for(;Cn-- >0;)$n[Cn]=_n[Cn];return $n},isTypedArray=(_n=>Cn=>_n&&Cn instanceof _n)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(_n,Cn)=>{const Nn=(_n&&_n[Symbol.iterator]).call(_n);let Bn;for(;(Bn=Nn.next())&&!Bn.done;){const Ln=Bn.value;Cn.call(_n,Ln[0],Ln[1])}},matchAll=(_n,Cn)=>{let $n;const Nn=[];for(;($n=_n.exec(Cn))!==null;)Nn.push($n);return Nn},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=_n=>_n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function($n,Nn,Bn){return Nn.toUpperCase()+Bn}),hasOwnProperty=(({hasOwnProperty:_n})=>(Cn,$n)=>_n.call(Cn,$n))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(_n,Cn)=>{const $n=Object.getOwnPropertyDescriptors(_n),Nn={};forEach($n,(Bn,Ln)=>{Cn(Bn,Ln,_n)!==!1&&(Nn[Ln]=Bn)}),Object.defineProperties(_n,Nn)},freezeMethods=_n=>{reduceDescriptors(_n,(Cn,$n)=>{if(isFunction(_n)&&["arguments","caller","callee"].indexOf($n)!==-1)return!1;const Nn=_n[$n];if(isFunction(Nn)){if(Cn.enumerable=!1,"writable"in Cn){Cn.writable=!1;return}Cn.set||(Cn.set=()=>{throw Error("Can not rewrite read-only method '"+$n+"'")})}})},toObjectSet=(_n,Cn)=>{const $n={},Nn=Bn=>{Bn.forEach(Ln=>{$n[Ln]=!0})};return isArray(_n)?Nn(_n):Nn(String(_n).split(Cn)),$n},noop=()=>{},toFiniteNumber=(_n,Cn)=>(_n=+_n,Number.isFinite(_n)?_n:Cn),ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(_n=16,Cn=ALPHABET.ALPHA_DIGIT)=>{let $n="";const{length:Nn}=Cn;for(;_n--;)$n+=Cn[Math.random()*Nn|0];return $n};function isSpecCompliantForm(_n){return!!(_n&&isFunction(_n.append)&&_n[Symbol.toStringTag]==="FormData"&&_n[Symbol.iterator])}const toJSONObject=_n=>{const Cn=new Array(10),$n=(Nn,Bn)=>{if(isObject(Nn)){if(Cn.indexOf(Nn)>=0)return;if(!("toJSON"in Nn)){Cn[Bn]=Nn;const Ln=isArray(Nn)?[]:{};return forEach(Nn,(In,Pn)=>{const Dn=$n(In,Bn+1);!isUndefined(Dn)&&(Ln[Pn]=Dn)}),Cn[Bn]=void 0,Ln}}return Nn};return $n(_n,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=_n=>_n&&(isObject(_n)||isFunction(_n))&&isFunction(_n.then)&&isFunction(_n.catch),utils={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean,isObject,isPlainObject,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable};function AxiosError(_n,Cn,$n,Nn,Bn){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=_n,this.name="AxiosError",Cn&&(this.code=Cn),$n&&(this.config=$n),Nn&&(this.request=Nn),Bn&&(this.response=Bn)}utils.inherits(AxiosError,Error,{toJSON:function _n(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(_n=>{descriptors[_n]={value:_n}}),Object.defineProperties(AxiosError,descriptors),Object.defineProperty(prototype$1,"isAxiosError",{value:!0}),AxiosError.from=(_n,Cn,$n,Nn,Bn,Ln)=>{const In=Object.create(prototype$1);return utils.toFlatObject(_n,In,function(Dn){return Dn!==Error.prototype},Pn=>Pn!=="isAxiosError"),AxiosError.call(In,_n.message,Cn,$n,Nn,Bn),In.cause=_n,In.name=_n.name,Ln&&Object.assign(In,Ln),In};const httpAdapter=null;function isVisitable(_n){return utils.isPlainObject(_n)||utils.isArray(_n)}function removeBrackets(_n){return utils.endsWith(_n,"[]")?_n.slice(0,-2):_n}function renderKey(_n,Cn,$n){return _n?_n.concat(Cn).map(function(Bn,Ln){return Bn=removeBrackets(Bn),!$n&&Ln?"["+Bn+"]":Bn}).join($n?".":""):Cn}function isFlatArray(_n){return utils.isArray(_n)&&!_n.some(isVisitable)}const predicates=utils.toFlatObject(utils,{},null,function _n(Cn){return/^is[A-Z]/.test(Cn)});function toFormData(_n,Cn,$n){if(!utils.isObject(_n))throw new TypeError("target must be an object");Cn=Cn||new FormData,$n=utils.toFlatObject($n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Yo,ei){return!utils.isUndefined(ei[Yo])});const Nn=$n.metaTokens,Bn=$n.visitor||Wn,Ln=$n.dots,In=$n.indexes,Dn=($n.Blob||typeof Blob<"u"&&Blob)&&utils.isSpecCompliantForm(Cn);if(!utils.isFunction(Bn))throw new TypeError("visitor must be a function");function Hn(nr){if(nr===null)return"";if(utils.isDate(nr))return nr.toISOString();if(!Dn&&utils.isBlob(nr))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils.isArrayBuffer(nr)||utils.isTypedArray(nr)?Dn&&typeof Blob=="function"?new Blob([nr]):Buffer.from(nr):nr}function Wn(nr,Yo,ei){let ti=nr;if(nr&&!ei&&typeof nr=="object"){if(utils.endsWith(Yo,"{}"))Yo=Nn?Yo:Yo.slice(0,-2),nr=JSON.stringify(nr);else if(utils.isArray(nr)&&isFlatArray(nr)||(utils.isFileList(nr)||utils.endsWith(Yo,"[]"))&&(ti=utils.toArray(nr)))return Yo=removeBrackets(Yo),ti.forEach(function(mi,Xo){!(utils.isUndefined(mi)||mi===null)&&Cn.append(In===!0?renderKey([Yo],Xo,Ln):In===null?Yo:Yo+"[]",Hn(mi))}),!1}return isVisitable(nr)?!0:(Cn.append(renderKey(ei,Yo,Ln),Hn(nr)),!1)}const Xn=[],Gn=Object.assign(predicates,{defaultVisitor:Wn,convertValue:Hn,isVisitable});function rr(nr,Yo){if(!utils.isUndefined(nr)){if(Xn.indexOf(nr)!==-1)throw Error("Circular reference detected in "+Yo.join("."));Xn.push(nr),utils.forEach(nr,function(ti,ui){(!(utils.isUndefined(ti)||ti===null)&&Bn.call(Cn,ti,utils.isString(ui)?ui.trim():ui,Yo,Gn))===!0&&rr(ti,Yo?Yo.concat(ui):[ui])}),Xn.pop()}}if(!utils.isObject(_n))throw new TypeError("data must be an object");return rr(_n),Cn}function encode$1(_n){const Cn={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(_n).replace(/[!'()~]|%20|%00/g,function(Nn){return Cn[Nn]})}function AxiosURLSearchParams(_n,Cn){this._pairs=[],_n&&toFormData(_n,this,Cn)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function _n(Cn,$n){this._pairs.push([Cn,$n])},prototype.toString=function _n(Cn){const $n=Cn?function(Nn){return Cn.call(this,Nn,encode$1)}:encode$1;return this._pairs.map(function(Bn){return $n(Bn[0])+"="+$n(Bn[1])},"").join("&")};function encode(_n){return encodeURIComponent(_n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(_n,Cn,$n){if(!Cn)return _n;const Nn=$n&&$n.encode||encode,Bn=$n&&$n.serialize;let Ln;if(Bn?Ln=Bn(Cn,$n):Ln=utils.isURLSearchParams(Cn)?Cn.toString():new AxiosURLSearchParams(Cn,$n).toString(Nn),Ln){const In=_n.indexOf("#");In!==-1&&(_n=_n.slice(0,In)),_n+=(_n.indexOf("?")===-1?"?":"&")+Ln}return _n}class InterceptorManager{constructor(){this.handlers=[]}use(Cn,$n,Nn){return this.handlers.push({fulfilled:Cn,rejected:$n,synchronous:Nn?Nn.synchronous:!1,runWhen:Nn?Nn.runWhen:null}),this.handlers.length-1}eject(Cn){this.handlers[Cn]&&(this.handlers[Cn]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(Cn){utils.forEach(this.handlers,function(Nn){Nn!==null&&Cn(Nn)})}}const InterceptorManager$1=InterceptorManager,transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,isStandardBrowserEnv=(()=>{let _n;return typeof navigator<"u"&&((_n=navigator.product)==="ReactNative"||_n==="NativeScript"||_n==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),isStandardBrowserWebWorkerEnv=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),platform={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},isStandardBrowserEnv,isStandardBrowserWebWorkerEnv,protocols:["http","https","file","blob","url","data"]};function toURLEncodedForm(_n,Cn){return toFormData(_n,new platform.classes.URLSearchParams,Object.assign({visitor:function($n,Nn,Bn,Ln){return platform.isNode&&utils.isBuffer($n)?(this.append(Nn,$n.toString("base64")),!1):Ln.defaultVisitor.apply(this,arguments)}},Cn))}function parsePropPath(_n){return utils.matchAll(/\w+|\[(\w*)]/g,_n).map(Cn=>Cn[0]==="[]"?"":Cn[1]||Cn[0])}function arrayToObject(_n){const Cn={},$n=Object.keys(_n);let Nn;const Bn=$n.length;let Ln;for(Nn=0;Nn<Bn;Nn++)Ln=$n[Nn],Cn[Ln]=_n[Ln];return Cn}function formDataToJSON(_n){function Cn($n,Nn,Bn,Ln){let In=$n[Ln++];const Pn=Number.isFinite(+In),Dn=Ln>=$n.length;return In=!In&&utils.isArray(Bn)?Bn.length:In,Dn?(utils.hasOwnProp(Bn,In)?Bn[In]=[Bn[In],Nn]:Bn[In]=Nn,!Pn):((!Bn[In]||!utils.isObject(Bn[In]))&&(Bn[In]=[]),Cn($n,Nn,Bn[In],Ln)&&utils.isArray(Bn[In])&&(Bn[In]=arrayToObject(Bn[In])),!Pn)}if(utils.isFormData(_n)&&utils.isFunction(_n.entries)){const $n={};return utils.forEachEntry(_n,(Nn,Bn)=>{Cn(parsePropPath(Nn),Bn,$n,0)}),$n}return null}const DEFAULT_CONTENT_TYPE={"Content-Type":void 0};function stringifySafely(_n,Cn,$n){if(utils.isString(_n))try{return(Cn||JSON.parse)(_n),utils.trim(_n)}catch(Nn){if(Nn.name!=="SyntaxError")throw Nn}return($n||JSON.stringify)(_n)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http"],transformRequest:[function _n(Cn,$n){const Nn=$n.getContentType()||"",Bn=Nn.indexOf("application/json")>-1,Ln=utils.isObject(Cn);if(Ln&&utils.isHTMLForm(Cn)&&(Cn=new FormData(Cn)),utils.isFormData(Cn))return Bn&&Bn?JSON.stringify(formDataToJSON(Cn)):Cn;if(utils.isArrayBuffer(Cn)||utils.isBuffer(Cn)||utils.isStream(Cn)||utils.isFile(Cn)||utils.isBlob(Cn))return Cn;if(utils.isArrayBufferView(Cn))return Cn.buffer;if(utils.isURLSearchParams(Cn))return $n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),Cn.toString();let Pn;if(Ln){if(Nn.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(Cn,this.formSerializer).toString();if((Pn=utils.isFileList(Cn))||Nn.indexOf("multipart/form-data")>-1){const Dn=this.env&&this.env.FormData;return toFormData(Pn?{"files[]":Cn}:Cn,Dn&&new Dn,this.formSerializer)}}return Ln||Bn?($n.setContentType("application/json",!1),stringifySafely(Cn)):Cn}],transformResponse:[function _n(Cn){const $n=this.transitional||defaults.transitional,Nn=$n&&$n.forcedJSONParsing,Bn=this.responseType==="json";if(Cn&&utils.isString(Cn)&&(Nn&&!this.responseType||Bn)){const In=!($n&&$n.silentJSONParsing)&&Bn;try{return JSON.parse(Cn)}catch(Pn){if(In)throw Pn.name==="SyntaxError"?AxiosError.from(Pn,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):Pn}}return Cn}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function _n(Cn){return Cn>=200&&Cn<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};utils.forEach(["delete","get","head"],function _n(Cn){defaults.headers[Cn]={}}),utils.forEach(["post","put","patch"],function _n(Cn){defaults.headers[Cn]=utils.merge(DEFAULT_CONTENT_TYPE)});const defaults$1=defaults,ignoreDuplicateOf=utils.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=_n=>{const Cn={};let $n,Nn,Bn;return _n&&_n.split(`
`).forEach(function(In){Bn=In.indexOf(":"),$n=In.substring(0,Bn).trim().toLowerCase(),Nn=In.substring(Bn+1).trim(),!(!$n||Cn[$n]&&ignoreDuplicateOf[$n])&&($n==="set-cookie"?Cn[$n]?Cn[$n].push(Nn):Cn[$n]=[Nn]:Cn[$n]=Cn[$n]?Cn[$n]+", "+Nn:Nn)}),Cn},$internals=Symbol("internals");function normalizeHeader(_n){return _n&&String(_n).trim().toLowerCase()}function normalizeValue(_n){return _n===!1||_n==null?_n:utils.isArray(_n)?_n.map(normalizeValue):String(_n)}function parseTokens(_n){const Cn=Object.create(null),$n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let Nn;for(;Nn=$n.exec(_n);)Cn[Nn[1]]=Nn[2];return Cn}const isValidHeaderName=_n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(_n.trim());function matchHeaderValue(_n,Cn,$n,Nn,Bn){if(utils.isFunction(Nn))return Nn.call(this,Cn,$n);if(Bn&&(Cn=$n),!!utils.isString(Cn)){if(utils.isString(Nn))return Cn.indexOf(Nn)!==-1;if(utils.isRegExp(Nn))return Nn.test(Cn)}}function formatHeader(_n){return _n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(Cn,$n,Nn)=>$n.toUpperCase()+Nn)}function buildAccessors(_n,Cn){const $n=utils.toCamelCase(" "+Cn);["get","set","has"].forEach(Nn=>{Object.defineProperty(_n,Nn+$n,{value:function(Bn,Ln,In){return this[Nn].call(this,Cn,Bn,Ln,In)},configurable:!0})})}class AxiosHeaders{constructor(Cn){Cn&&this.set(Cn)}set(Cn,$n,Nn){const Bn=this;function Ln(Pn,Dn,Hn){const Wn=normalizeHeader(Dn);if(!Wn)throw new Error("header name must be a non-empty string");const Xn=utils.findKey(Bn,Wn);(!Xn||Bn[Xn]===void 0||Hn===!0||Hn===void 0&&Bn[Xn]!==!1)&&(Bn[Xn||Dn]=normalizeValue(Pn))}const In=(Pn,Dn)=>utils.forEach(Pn,(Hn,Wn)=>Ln(Hn,Wn,Dn));return utils.isPlainObject(Cn)||Cn instanceof this.constructor?In(Cn,$n):utils.isString(Cn)&&(Cn=Cn.trim())&&!isValidHeaderName(Cn)?In(parseHeaders(Cn),$n):Cn!=null&&Ln($n,Cn,Nn),this}get(Cn,$n){if(Cn=normalizeHeader(Cn),Cn){const Nn=utils.findKey(this,Cn);if(Nn){const Bn=this[Nn];if(!$n)return Bn;if($n===!0)return parseTokens(Bn);if(utils.isFunction($n))return $n.call(this,Bn,Nn);if(utils.isRegExp($n))return $n.exec(Bn);throw new TypeError("parser must be boolean|regexp|function")}}}has(Cn,$n){if(Cn=normalizeHeader(Cn),Cn){const Nn=utils.findKey(this,Cn);return!!(Nn&&this[Nn]!==void 0&&(!$n||matchHeaderValue(this,this[Nn],Nn,$n)))}return!1}delete(Cn,$n){const Nn=this;let Bn=!1;function Ln(In){if(In=normalizeHeader(In),In){const Pn=utils.findKey(Nn,In);Pn&&(!$n||matchHeaderValue(Nn,Nn[Pn],Pn,$n))&&(delete Nn[Pn],Bn=!0)}}return utils.isArray(Cn)?Cn.forEach(Ln):Ln(Cn),Bn}clear(Cn){const $n=Object.keys(this);let Nn=$n.length,Bn=!1;for(;Nn--;){const Ln=$n[Nn];(!Cn||matchHeaderValue(this,this[Ln],Ln,Cn,!0))&&(delete this[Ln],Bn=!0)}return Bn}normalize(Cn){const $n=this,Nn={};return utils.forEach(this,(Bn,Ln)=>{const In=utils.findKey(Nn,Ln);if(In){$n[In]=normalizeValue(Bn),delete $n[Ln];return}const Pn=Cn?formatHeader(Ln):String(Ln).trim();Pn!==Ln&&delete $n[Ln],$n[Pn]=normalizeValue(Bn),Nn[Pn]=!0}),this}concat(...Cn){return this.constructor.concat(this,...Cn)}toJSON(Cn){const $n=Object.create(null);return utils.forEach(this,(Nn,Bn)=>{Nn!=null&&Nn!==!1&&($n[Bn]=Cn&&utils.isArray(Nn)?Nn.join(", "):Nn)}),$n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([Cn,$n])=>Cn+": "+$n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(Cn){return Cn instanceof this?Cn:new this(Cn)}static concat(Cn,...$n){const Nn=new this(Cn);return $n.forEach(Bn=>Nn.set(Bn)),Nn}static accessor(Cn){const Nn=(this[$internals]=this[$internals]={accessors:{}}).accessors,Bn=this.prototype;function Ln(In){const Pn=normalizeHeader(In);Nn[Pn]||(buildAccessors(Bn,In),Nn[Pn]=!0)}return utils.isArray(Cn)?Cn.forEach(Ln):Ln(Cn),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils.freezeMethods(AxiosHeaders.prototype),utils.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData(_n,Cn){const $n=this||defaults$1,Nn=Cn||$n,Bn=AxiosHeaders$1.from(Nn.headers);let Ln=Nn.data;return utils.forEach(_n,function(Pn){Ln=Pn.call($n,Ln,Bn.normalize(),Cn?Cn.status:void 0)}),Bn.normalize(),Ln}function isCancel(_n){return!!(_n&&_n.__CANCEL__)}function CanceledError(_n,Cn,$n){AxiosError.call(this,_n??"canceled",AxiosError.ERR_CANCELED,Cn,$n),this.name="CanceledError"}utils.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(_n,Cn,$n){const Nn=$n.config.validateStatus;!$n.status||!Nn||Nn($n.status)?_n($n):Cn(new AxiosError("Request failed with status code "+$n.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor($n.status/100)-4],$n.config,$n.request,$n))}const cookies=platform.isStandardBrowserEnv?function _n(){return{write:function($n,Nn,Bn,Ln,In,Pn){const Dn=[];Dn.push($n+"="+encodeURIComponent(Nn)),utils.isNumber(Bn)&&Dn.push("expires="+new Date(Bn).toGMTString()),utils.isString(Ln)&&Dn.push("path="+Ln),utils.isString(In)&&Dn.push("domain="+In),Pn===!0&&Dn.push("secure"),document.cookie=Dn.join("; ")},read:function($n){const Nn=document.cookie.match(new RegExp("(^|;\\s*)("+$n+")=([^;]*)"));return Nn?decodeURIComponent(Nn[3]):null},remove:function($n){this.write($n,"",Date.now()-864e5)}}}():function _n(){return{write:function(){},read:function(){return null},remove:function(){}}}();function isAbsoluteURL(_n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(_n)}function combineURLs(_n,Cn){return Cn?_n.replace(/\/+$/,"")+"/"+Cn.replace(/^\/+/,""):_n}function buildFullPath(_n,Cn){return _n&&!isAbsoluteURL(Cn)?combineURLs(_n,Cn):Cn}const isURLSameOrigin=platform.isStandardBrowserEnv?function _n(){const Cn=/(msie|trident)/i.test(navigator.userAgent),$n=document.createElement("a");let Nn;function Bn(Ln){let In=Ln;return Cn&&($n.setAttribute("href",In),In=$n.href),$n.setAttribute("href",In),{href:$n.href,protocol:$n.protocol?$n.protocol.replace(/:$/,""):"",host:$n.host,search:$n.search?$n.search.replace(/^\?/,""):"",hash:$n.hash?$n.hash.replace(/^#/,""):"",hostname:$n.hostname,port:$n.port,pathname:$n.pathname.charAt(0)==="/"?$n.pathname:"/"+$n.pathname}}return Nn=Bn(window.location.href),function(In){const Pn=utils.isString(In)?Bn(In):In;return Pn.protocol===Nn.protocol&&Pn.host===Nn.host}}():function _n(){return function(){return!0}}();function parseProtocol(_n){const Cn=/^([-+\w]{1,25})(:?\/\/|:)/.exec(_n);return Cn&&Cn[1]||""}function speedometer(_n,Cn){_n=_n||10;const $n=new Array(_n),Nn=new Array(_n);let Bn=0,Ln=0,In;return Cn=Cn!==void 0?Cn:1e3,function(Dn){const Hn=Date.now(),Wn=Nn[Ln];In||(In=Hn),$n[Bn]=Dn,Nn[Bn]=Hn;let Xn=Ln,Gn=0;for(;Xn!==Bn;)Gn+=$n[Xn++],Xn=Xn%_n;if(Bn=(Bn+1)%_n,Bn===Ln&&(Ln=(Ln+1)%_n),Hn-In<Cn)return;const rr=Wn&&Hn-Wn;return rr?Math.round(Gn*1e3/rr):void 0}}function progressEventReducer(_n,Cn){let $n=0;const Nn=speedometer(50,250);return Bn=>{const Ln=Bn.loaded,In=Bn.lengthComputable?Bn.total:void 0,Pn=Ln-$n,Dn=Nn(Pn),Hn=Ln<=In;$n=Ln;const Wn={loaded:Ln,total:In,progress:In?Ln/In:void 0,bytes:Pn,rate:Dn||void 0,estimated:Dn&&In&&Hn?(In-Ln)/Dn:void 0,event:Bn};Wn[Cn?"download":"upload"]=!0,_n(Wn)}}const isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(_n){return new Promise(function($n,Nn){let Bn=_n.data;const Ln=AxiosHeaders$1.from(_n.headers).normalize(),In=_n.responseType;let Pn;function Dn(){_n.cancelToken&&_n.cancelToken.unsubscribe(Pn),_n.signal&&_n.signal.removeEventListener("abort",Pn)}utils.isFormData(Bn)&&(platform.isStandardBrowserEnv||platform.isStandardBrowserWebWorkerEnv?Ln.setContentType(!1):Ln.setContentType("multipart/form-data;",!1));let Hn=new XMLHttpRequest;if(_n.auth){const rr=_n.auth.username||"",nr=_n.auth.password?unescape(encodeURIComponent(_n.auth.password)):"";Ln.set("Authorization","Basic "+btoa(rr+":"+nr))}const Wn=buildFullPath(_n.baseURL,_n.url);Hn.open(_n.method.toUpperCase(),buildURL(Wn,_n.params,_n.paramsSerializer),!0),Hn.timeout=_n.timeout;function Xn(){if(!Hn)return;const rr=AxiosHeaders$1.from("getAllResponseHeaders"in Hn&&Hn.getAllResponseHeaders()),Yo={data:!In||In==="text"||In==="json"?Hn.responseText:Hn.response,status:Hn.status,statusText:Hn.statusText,headers:rr,config:_n,request:Hn};settle(function(ti){$n(ti),Dn()},function(ti){Nn(ti),Dn()},Yo),Hn=null}if("onloadend"in Hn?Hn.onloadend=Xn:Hn.onreadystatechange=function(){!Hn||Hn.readyState!==4||Hn.status===0&&!(Hn.responseURL&&Hn.responseURL.indexOf("file:")===0)||setTimeout(Xn)},Hn.onabort=function(){Hn&&(Nn(new AxiosError("Request aborted",AxiosError.ECONNABORTED,_n,Hn)),Hn=null)},Hn.onerror=function(){Nn(new AxiosError("Network Error",AxiosError.ERR_NETWORK,_n,Hn)),Hn=null},Hn.ontimeout=function(){let nr=_n.timeout?"timeout of "+_n.timeout+"ms exceeded":"timeout exceeded";const Yo=_n.transitional||transitionalDefaults;_n.timeoutErrorMessage&&(nr=_n.timeoutErrorMessage),Nn(new AxiosError(nr,Yo.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,_n,Hn)),Hn=null},platform.isStandardBrowserEnv){const rr=(_n.withCredentials||isURLSameOrigin(Wn))&&_n.xsrfCookieName&&cookies.read(_n.xsrfCookieName);rr&&Ln.set(_n.xsrfHeaderName,rr)}Bn===void 0&&Ln.setContentType(null),"setRequestHeader"in Hn&&utils.forEach(Ln.toJSON(),function(nr,Yo){Hn.setRequestHeader(Yo,nr)}),utils.isUndefined(_n.withCredentials)||(Hn.withCredentials=!!_n.withCredentials),In&&In!=="json"&&(Hn.responseType=_n.responseType),typeof _n.onDownloadProgress=="function"&&Hn.addEventListener("progress",progressEventReducer(_n.onDownloadProgress,!0)),typeof _n.onUploadProgress=="function"&&Hn.upload&&Hn.upload.addEventListener("progress",progressEventReducer(_n.onUploadProgress)),(_n.cancelToken||_n.signal)&&(Pn=rr=>{Hn&&(Nn(!rr||rr.type?new CanceledError(null,_n,Hn):rr),Hn.abort(),Hn=null)},_n.cancelToken&&_n.cancelToken.subscribe(Pn),_n.signal&&(_n.signal.aborted?Pn():_n.signal.addEventListener("abort",Pn)));const Gn=parseProtocol(Wn);if(Gn&&platform.protocols.indexOf(Gn)===-1){Nn(new AxiosError("Unsupported protocol "+Gn+":",AxiosError.ERR_BAD_REQUEST,_n));return}Hn.send(Bn||null)})},knownAdapters={http:httpAdapter,xhr:xhrAdapter};utils.forEach(knownAdapters,(_n,Cn)=>{if(_n){try{Object.defineProperty(_n,"name",{value:Cn})}catch{}Object.defineProperty(_n,"adapterName",{value:Cn})}});const adapters={getAdapter:_n=>{_n=utils.isArray(_n)?_n:[_n];const{length:Cn}=_n;let $n,Nn;for(let Bn=0;Bn<Cn&&($n=_n[Bn],!(Nn=utils.isString($n)?knownAdapters[$n.toLowerCase()]:$n));Bn++);if(!Nn)throw Nn===!1?new AxiosError(`Adapter ${$n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(utils.hasOwnProp(knownAdapters,$n)?`Adapter '${$n}' is not available in the build`:`Unknown adapter '${$n}'`);if(!utils.isFunction(Nn))throw new TypeError("adapter is not a function");return Nn},adapters:knownAdapters};function throwIfCancellationRequested(_n){if(_n.cancelToken&&_n.cancelToken.throwIfRequested(),_n.signal&&_n.signal.aborted)throw new CanceledError(null,_n)}function dispatchRequest(_n){return throwIfCancellationRequested(_n),_n.headers=AxiosHeaders$1.from(_n.headers),_n.data=transformData.call(_n,_n.transformRequest),["post","put","patch"].indexOf(_n.method)!==-1&&_n.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(_n.adapter||defaults$1.adapter)(_n).then(function(Nn){return throwIfCancellationRequested(_n),Nn.data=transformData.call(_n,_n.transformResponse,Nn),Nn.headers=AxiosHeaders$1.from(Nn.headers),Nn},function(Nn){return isCancel(Nn)||(throwIfCancellationRequested(_n),Nn&&Nn.response&&(Nn.response.data=transformData.call(_n,_n.transformResponse,Nn.response),Nn.response.headers=AxiosHeaders$1.from(Nn.response.headers))),Promise.reject(Nn)})}const headersToObject=_n=>_n instanceof AxiosHeaders$1?_n.toJSON():_n;function mergeConfig(_n,Cn){Cn=Cn||{};const $n={};function Nn(Hn,Wn,Xn){return utils.isPlainObject(Hn)&&utils.isPlainObject(Wn)?utils.merge.call({caseless:Xn},Hn,Wn):utils.isPlainObject(Wn)?utils.merge({},Wn):utils.isArray(Wn)?Wn.slice():Wn}function Bn(Hn,Wn,Xn){if(utils.isUndefined(Wn)){if(!utils.isUndefined(Hn))return Nn(void 0,Hn,Xn)}else return Nn(Hn,Wn,Xn)}function Ln(Hn,Wn){if(!utils.isUndefined(Wn))return Nn(void 0,Wn)}function In(Hn,Wn){if(utils.isUndefined(Wn)){if(!utils.isUndefined(Hn))return Nn(void 0,Hn)}else return Nn(void 0,Wn)}function Pn(Hn,Wn,Xn){if(Xn in Cn)return Nn(Hn,Wn);if(Xn in _n)return Nn(void 0,Hn)}const Dn={url:Ln,method:Ln,data:Ln,baseURL:In,transformRequest:In,transformResponse:In,paramsSerializer:In,timeout:In,timeoutMessage:In,withCredentials:In,adapter:In,responseType:In,xsrfCookieName:In,xsrfHeaderName:In,onUploadProgress:In,onDownloadProgress:In,decompress:In,maxContentLength:In,maxBodyLength:In,beforeRedirect:In,transport:In,httpAgent:In,httpsAgent:In,cancelToken:In,socketPath:In,responseEncoding:In,validateStatus:Pn,headers:(Hn,Wn)=>Bn(headersToObject(Hn),headersToObject(Wn),!0)};return utils.forEach(Object.keys(Object.assign({},_n,Cn)),function(Wn){const Xn=Dn[Wn]||Bn,Gn=Xn(_n[Wn],Cn[Wn],Wn);utils.isUndefined(Gn)&&Xn!==Pn||($n[Wn]=Gn)}),$n}const VERSION="1.4.0",validators$1={};["object","boolean","number","function","string","symbol"].forEach((_n,Cn)=>{validators$1[_n]=function(Nn){return typeof Nn===_n||"a"+(Cn<1?"n ":" ")+_n}});const deprecatedWarnings={};validators$1.transitional=function _n(Cn,$n,Nn){function Bn(Ln,In){return"[Axios v"+VERSION+"] Transitional option '"+Ln+"'"+In+(Nn?". "+Nn:"")}return(Ln,In,Pn)=>{if(Cn===!1)throw new AxiosError(Bn(In," has been removed"+($n?" in "+$n:"")),AxiosError.ERR_DEPRECATED);return $n&&!deprecatedWarnings[In]&&(deprecatedWarnings[In]=!0,console.warn(Bn(In," has been deprecated since v"+$n+" and will be removed in the near future"))),Cn?Cn(Ln,In,Pn):!0}};function assertOptions(_n,Cn,$n){if(typeof _n!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const Nn=Object.keys(_n);let Bn=Nn.length;for(;Bn-- >0;){const Ln=Nn[Bn],In=Cn[Ln];if(In){const Pn=_n[Ln],Dn=Pn===void 0||In(Pn,Ln,_n);if(Dn!==!0)throw new AxiosError("option "+Ln+" must be "+Dn,AxiosError.ERR_BAD_OPTION_VALUE);continue}if($n!==!0)throw new AxiosError("Unknown option "+Ln,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(Cn){this.defaults=Cn,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}request(Cn,$n){typeof Cn=="string"?($n=$n||{},$n.url=Cn):$n=Cn||{},$n=mergeConfig(this.defaults,$n);const{transitional:Nn,paramsSerializer:Bn,headers:Ln}=$n;Nn!==void 0&&validator.assertOptions(Nn,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),Bn!=null&&(utils.isFunction(Bn)?$n.paramsSerializer={serialize:Bn}:validator.assertOptions(Bn,{encode:validators.function,serialize:validators.function},!0)),$n.method=($n.method||this.defaults.method||"get").toLowerCase();let In;In=Ln&&utils.merge(Ln.common,Ln[$n.method]),In&&utils.forEach(["delete","get","head","post","put","patch","common"],nr=>{delete Ln[nr]}),$n.headers=AxiosHeaders$1.concat(In,Ln);const Pn=[];let Dn=!0;this.interceptors.request.forEach(function(Yo){typeof Yo.runWhen=="function"&&Yo.runWhen($n)===!1||(Dn=Dn&&Yo.synchronous,Pn.unshift(Yo.fulfilled,Yo.rejected))});const Hn=[];this.interceptors.response.forEach(function(Yo){Hn.push(Yo.fulfilled,Yo.rejected)});let Wn,Xn=0,Gn;if(!Dn){const nr=[dispatchRequest.bind(this),void 0];for(nr.unshift.apply(nr,Pn),nr.push.apply(nr,Hn),Gn=nr.length,Wn=Promise.resolve($n);Xn<Gn;)Wn=Wn.then(nr[Xn++],nr[Xn++]);return Wn}Gn=Pn.length;let rr=$n;for(Xn=0;Xn<Gn;){const nr=Pn[Xn++],Yo=Pn[Xn++];try{rr=nr(rr)}catch(ei){Yo.call(this,ei);break}}try{Wn=dispatchRequest.call(this,rr)}catch(nr){return Promise.reject(nr)}for(Xn=0,Gn=Hn.length;Xn<Gn;)Wn=Wn.then(Hn[Xn++],Hn[Xn++]);return Wn}getUri(Cn){Cn=mergeConfig(this.defaults,Cn);const $n=buildFullPath(Cn.baseURL,Cn.url);return buildURL($n,Cn.params,Cn.paramsSerializer)}}utils.forEach(["delete","get","head","options"],function _n(Cn){Axios.prototype[Cn]=function($n,Nn){return this.request(mergeConfig(Nn||{},{method:Cn,url:$n,data:(Nn||{}).data}))}}),utils.forEach(["post","put","patch"],function _n(Cn){function $n(Nn){return function(Ln,In,Pn){return this.request(mergeConfig(Pn||{},{method:Cn,headers:Nn?{"Content-Type":"multipart/form-data"}:{},url:Ln,data:In}))}}Axios.prototype[Cn]=$n(),Axios.prototype[Cn+"Form"]=$n(!0)});const Axios$1=Axios;class CancelToken{constructor(Cn){if(typeof Cn!="function")throw new TypeError("executor must be a function.");let $n;this.promise=new Promise(function(Ln){$n=Ln});const Nn=this;this.promise.then(Bn=>{if(!Nn._listeners)return;let Ln=Nn._listeners.length;for(;Ln-- >0;)Nn._listeners[Ln](Bn);Nn._listeners=null}),this.promise.then=Bn=>{let Ln;const In=new Promise(Pn=>{Nn.subscribe(Pn),Ln=Pn}).then(Bn);return In.cancel=function(){Nn.unsubscribe(Ln)},In},Cn(function(Ln,In,Pn){Nn.reason||(Nn.reason=new CanceledError(Ln,In,Pn),$n(Nn.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(Cn){if(this.reason){Cn(this.reason);return}this._listeners?this._listeners.push(Cn):this._listeners=[Cn]}unsubscribe(Cn){if(!this._listeners)return;const $n=this._listeners.indexOf(Cn);$n!==-1&&this._listeners.splice($n,1)}static source(){let Cn;return{token:new CancelToken(function(Bn){Cn=Bn}),cancel:Cn}}}const CancelToken$1=CancelToken;function spread(_n){return function($n){return _n.apply(null,$n)}}function isAxiosError(_n){return utils.isObject(_n)&&_n.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([_n,Cn])=>{HttpStatusCode[Cn]=_n});const HttpStatusCode$1=HttpStatusCode;function createInstance(_n){const Cn=new Axios$1(_n),$n=bind(Axios$1.prototype.request,Cn);return utils.extend($n,Axios$1.prototype,Cn,{allOwnKeys:!0}),utils.extend($n,Cn,null,{allOwnKeys:!0}),$n.create=function(Bn){return createInstance(mergeConfig(_n,Bn))},$n}const axios=createInstance(defaults$1);axios.Axios=Axios$1,axios.CanceledError=CanceledError,axios.CancelToken=CancelToken$1,axios.isCancel=isCancel,axios.VERSION=VERSION,axios.toFormData=toFormData,axios.AxiosError=AxiosError,axios.Cancel=axios.CanceledError,axios.all=function _n(Cn){return Promise.all(Cn)},axios.spread=spread,axios.isAxiosError=isAxiosError,axios.mergeConfig=mergeConfig,axios.AxiosHeaders=AxiosHeaders$1,axios.formToJSON=_n=>formDataToJSON(utils.isHTMLForm(_n)?new FormData(_n):_n),axios.HttpStatusCode=HttpStatusCode$1,axios.default=axios;const axios$1=axios;class GradioAPI{constructor(){Pl(this,"apiBaseURL","");this.apiBaseURL=common$1.apiUrl(),this.api=axios$1.create({baseURL:this.apiBaseURL,timeout:6e4,headers:{"Content-Type":"application/json"}})}async getVersion(){return(await this.api.get("/get_version")).data}async getRemoteVersions(Cn=1,$n=100){return(await this.api.get("/get_remote_versions",{params:{page:Cn,per_page:$n}})).data.versions}async getConfig(){return(await this.api.get("/get_config")).data}async installPackage(Cn,$n){const Nn={timeout:1e7};return(await this.api.post("/install_package",{name:Cn,package:$n},Nn)).data.result}async getExtensions(){return(await this.api.get("/get_extensions")).data.extensions}async tokenCounter(Cn,$n){return(await this.api.post("/token_counter",{text:Cn,steps:$n})).data}async getData(Cn){return(await this.api.get("/get_data",{params:{key:Cn}})).data.data}async getDatas(Cn){return typeof Cn=="object"&&(Cn=Cn.join(",")),(await this.api.get("/get_datas",{params:{keys:Cn}})).data.datas}async setData(Cn,$n){return(await this.api.post("/set_data",{key:Cn,data:$n})).data.success}async setDatas(Cn){return(await this.api.post("/set_datas",{datas:Cn})).data.success}async getDataListItem(Cn,$n){return(await this.api.get("/get_data_list_item",{params:{key:Cn,index:$n}})).data.item}async pushDataList(Cn,$n){return(await this.api.post("/push_data_list",{key:Cn,item:$n})).data.success}async popDataList(Cn){return(await this.api.post("/pop_data_list",{key:Cn})).data.item}async shiftDataList(Cn){return(await this.api.post("/shift_data_list",{key:Cn})).data.item}async removeDataList(Cn,$n){return(await this.api.post("/remove_data_list",{key:Cn,index:$n})).data.success}async clearDataList(Cn){return(await this.api.post("/clear_data_list",{key:Cn})).data.success}async getHistories(Cn){return(await this.api.get("/get_histories",{params:{type:Cn}})).data.histories}async getFavorites(Cn){return(await this.api.get("/get_favorites",{params:{type:Cn}})).data.favorites}async pushHistory(Cn,$n,Nn,Bn=""){return(await this.api.post("/push_history",{type:Cn,tags:$n,prompt:Nn,name:Bn})).data.success}async pushFavorite(Cn,$n,Nn,Bn=""){return(await this.api.post("/push_favorite",{type:Cn,tags:$n,prompt:Nn,name:Bn})).data.success}async moveUpFavorite(Cn,$n){return(await this.api.post("/move_up_favorite",{type:Cn,id:$n})).data.success}async moveDownFavorite(Cn,$n){return(await this.api.post("/move_down_favorite",{type:Cn,id:$n})).data.success}async getLatestHistory(Cn){return(await this.api.get("/get_latest_history",{params:{type:Cn}})).data.history}async setHistory(Cn,$n,Nn,Bn,Ln){return(await this.api.post("/set_history",{type:Cn,id:$n,tags:Nn,prompt:Bn,name:Ln})).data.success}async setHistoryName(Cn,$n,Nn){return(await this.api.post("/set_history_name",{type:Cn,id:$n,name:Nn})).data.success}async setFavoriteName(Cn,$n,Nn){return(await this.api.post("/set_favorite_name",{type:Cn,id:$n,name:Nn})).data.success}async doFavorite(Cn,$n){return(await this.api.post("/dofavorite",{type:Cn,id:$n})).data.success}async unFavorite(Cn,$n){return(await this.api.post("/unfavorite",{type:Cn,id:$n})).data.success}async deleteHistory(Cn,$n){return(await this.api.post("/delete_history",{type:Cn,id:$n})).data.success}async deleteHistories(Cn){return(await this.api.post("/delete_histories",{type:Cn})).data.success}async translate(Cn,$n,Nn,Bn,Ln={}){let In=(await this.api.post("/translate",{text:Cn,from_lang:$n,to_lang:Nn,api:Bn,api_config:Ln})).data;return In.translated_text&&(In.translated_text=common$1.unescapeHtml(In.translated_text)),In}async translates(Cn,$n,Nn,Bn,Ln={}){let In=(await this.api.post("/translates",{texts:Cn,from_lang:$n,to_lang:Nn,api:Bn,api_config:Ln})).data;return In.translated_text&&In.translated_text.forEach((Pn,Dn)=>{In.translated_text[Dn]=common$1.unescapeHtml(Pn)}),In}async getCSVs(){return(await this.api.get("/get_csvs")).data.csvs}async getCSV(Cn){return(await this.api.get("/get_csv",{params:{key:Cn}})).data}async styles(Cn,$n=""){return(await this.api.get("/styles",{params:{file:Cn,hash:$n}})).data}async getExtensionCssList(){return(await this.api.get("/get_extension_css_list")).data.css_list}async getExtraNetworks(){return(await this.api.get("/get_extra_networks")).data.extra_networks}async genOpenAI(Cn,$n){return(await this.api.post("/gen_openai",{messages:Cn,api_config:$n})).data}async mbart50Initialize(){const Cn={timeout:1e11};return(await this.api.post("/mbart50_initialize",{},Cn)).data}async getGroupTags(Cn){return(await this.api.get("/get_group_tags",{params:{lang:Cn}})).data.tags}}const CommonMixin={data(){return{gradioAPI:null}},beforeMount(){this.gradioAPI=new GradioAPI},methods:{loadExtraNetworks(_n=0){if(common$1.gradioApp().querySelectorAll("#txt2img_checkpoints_cards .card").length)return this._loadExtraNetworks();if(_n>10)return this._loadExtraNetworks();setTimeout(this.loadExtraNetworks,1e3,_n+1)},_loadExtraNetworks(){this.gradioAPI.getExtraNetworks().then(_n=>{_n&&(this.extraNetworks=_n,_n.forEach(Cn=>{if(Cn.name==="textual inversion"){let $n={};Cn.items.forEach(Nn=>{$n[Nn.name.toLowerCase()]=Nn.name}),this.embeddings=$n}else if(Cn.name==="lora"||Cn.name==="lycoris"){let $n={};Cn.items.forEach(Nn=>{$n[Nn.name.toLowerCase()]=Nn.name,Nn.output_name&&($n[Nn.output_name.toLowerCase()]=Nn.name)}),Cn.name==="lora"?this.loras=$n:this.lycos=$n}}))})},getExtraNetworkFullName(_n,Cn="lora"){var $n,Nn,Bn;if(typeof this.extraNetworks!="object")return _n;for(let Ln of this.extraNetworks){if(Ln.name!==Cn)continue;const In=_n.toLowerCase();for(let Pn of Ln.items)if(Pn.name.toLowerCase()===In||(($n=Pn.output_name)==null?void 0:$n.toLowerCase())===In)return(Nn=Pn.civitai_info)!=null&&Nn.name?(Bn=Pn.civitai_info.model)!=null&&Bn.name&&Pn.civitai_info.model.name!==Pn.civitai_info.name?"["+Pn.civitai_info.name+"] "+Pn.civitai_info.model.name:Pn.civitai_info.name:_n}return _n},loraExists(_n){return typeof this.loras!="object"?_n:this.loras[_n.toLowerCase()]??!1},lycoExists(_n){return typeof this.lycos!="object"?_n:this.lycos[_n.toLowerCase()]??!1},embeddingExists(_n){return typeof this.embeddings!="object"?_n:this.embeddings[_n.toLowerCase()]??!1}}};var BOX_CLASS="tippy-box",CONTENT_CLASS="tippy-content",BACKDROP_CLASS="tippy-backdrop",ARROW_CLASS="tippy-arrow",SVG_ARROW_CLASS="tippy-svg-arrow",TOUCH_OPTIONS={passive:!0,capture:!0},TIPPY_DEFAULT_APPEND_TO=function _n(){return document.body};function getValueAtIndexOrReturn(_n,Cn,$n){if(Array.isArray(_n)){var Nn=_n[Cn];return Nn??(Array.isArray($n)?$n[Cn]:$n)}return _n}function isType(_n,Cn){var $n={}.toString.call(_n);return $n.indexOf("[object")===0&&$n.indexOf(Cn+"]")>-1}function invokeWithArgsOrReturn(_n,Cn){return typeof _n=="function"?_n.apply(void 0,Cn):_n}function debounce(_n,Cn){if(Cn===0)return _n;var $n;return function(Nn){clearTimeout($n),$n=setTimeout(function(){_n(Nn)},Cn)}}function splitBySpaces(_n){return _n.split(/\s+/).filter(Boolean)}function normalizeToArray(_n){return[].concat(_n)}function pushIfUnique(_n,Cn){_n.indexOf(Cn)===-1&&_n.push(Cn)}function unique(_n){return _n.filter(function(Cn,$n){return _n.indexOf(Cn)===$n})}function getBasePlacement(_n){return _n.split("-")[0]}function arrayFrom(_n){return[].slice.call(_n)}function removeUndefinedProps(_n){return Object.keys(_n).reduce(function(Cn,$n){return _n[$n]!==void 0&&(Cn[$n]=_n[$n]),Cn},{})}function div(){return document.createElement("div")}function isElement(_n){return["Element","Fragment"].some(function(Cn){return isType(_n,Cn)})}function isNodeList(_n){return isType(_n,"NodeList")}function isMouseEvent(_n){return isType(_n,"MouseEvent")}function isReferenceElement(_n){return!!(_n&&_n._tippy&&_n._tippy.reference===_n)}function getArrayOfElements(_n){return isElement(_n)?[_n]:isNodeList(_n)?arrayFrom(_n):Array.isArray(_n)?_n:arrayFrom(document.querySelectorAll(_n))}function setTransitionDuration(_n,Cn){_n.forEach(function($n){$n&&($n.style.transitionDuration=Cn+"ms")})}function setVisibilityState(_n,Cn){_n.forEach(function($n){$n&&$n.setAttribute("data-state",Cn)})}function getOwnerDocument(_n){var Cn,$n=normalizeToArray(_n),Nn=$n[0];return Nn!=null&&(Cn=Nn.ownerDocument)!=null&&Cn.body?Nn.ownerDocument:document}function isCursorOutsideInteractiveBorder(_n,Cn){var $n=Cn.clientX,Nn=Cn.clientY;return _n.every(function(Bn){var Ln=Bn.popperRect,In=Bn.popperState,Pn=Bn.props,Dn=Pn.interactiveBorder,Hn=getBasePlacement(In.placement),Wn=In.modifiersData.offset;if(!Wn)return!0;var Xn=Hn==="bottom"?Wn.top.y:0,Gn=Hn==="top"?Wn.bottom.y:0,rr=Hn==="right"?Wn.left.x:0,nr=Hn==="left"?Wn.right.x:0,Yo=Ln.top-Nn+Xn>Dn,ei=Nn-Ln.bottom-Gn>Dn,ti=Ln.left-$n+rr>Dn,ui=$n-Ln.right-nr>Dn;return Yo||ei||ti||ui})}function updateTransitionEndListener(_n,Cn,$n){var Nn=Cn+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(Bn){_n[Nn](Bn,$n)})}function actualContains(_n,Cn){for(var $n=Cn;$n;){var Nn;if(_n.contains($n))return!0;$n=$n.getRootNode==null||(Nn=$n.getRootNode())==null?void 0:Nn.host}return!1}var currentInput={isTouch:!1},lastMouseMoveTime=0;function onDocumentTouchStart(){currentInput.isTouch||(currentInput.isTouch=!0,window.performance&&document.addEventListener("mousemove",onDocumentMouseMove))}function onDocumentMouseMove(){var _n=performance.now();_n-lastMouseMoveTime<20&&(currentInput.isTouch=!1,document.removeEventListener("mousemove",onDocumentMouseMove)),lastMouseMoveTime=_n}function onWindowBlur(){var _n=document.activeElement;if(isReferenceElement(_n)){var Cn=_n._tippy;_n.blur&&!Cn.state.isVisible&&_n.blur()}}function bindGlobalEventListeners(){document.addEventListener("touchstart",onDocumentTouchStart,TOUCH_OPTIONS),window.addEventListener("blur",onWindowBlur)}var isBrowser=typeof window<"u"&&typeof document<"u",isIE11=isBrowser?!!window.msCrypto:!1,pluginProps={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},renderProps={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},defaultProps=Object.assign({appendTo:TIPPY_DEFAULT_APPEND_TO,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function _n(){},onBeforeUpdate:function _n(){},onCreate:function _n(){},onDestroy:function _n(){},onHidden:function _n(){},onHide:function _n(){},onMount:function _n(){},onShow:function _n(){},onShown:function _n(){},onTrigger:function _n(){},onUntrigger:function _n(){},onClickOutside:function _n(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},pluginProps,renderProps),defaultKeys=Object.keys(defaultProps),setDefaultProps=function _n(Cn){var $n=Object.keys(Cn);$n.forEach(function(Nn){defaultProps[Nn]=Cn[Nn]})};function getExtendedPassedProps(_n){var Cn=_n.plugins||[],$n=Cn.reduce(function(Nn,Bn){var Ln=Bn.name,In=Bn.defaultValue;if(Ln){var Pn;Nn[Ln]=_n[Ln]!==void 0?_n[Ln]:(Pn=defaultProps[Ln])!=null?Pn:In}return Nn},{});return Object.assign({},_n,$n)}function getDataAttributeProps(_n,Cn){var $n=Cn?Object.keys(getExtendedPassedProps(Object.assign({},defaultProps,{plugins:Cn}))):defaultKeys,Nn=$n.reduce(function(Bn,Ln){var In=(_n.getAttribute("data-tippy-"+Ln)||"").trim();if(!In)return Bn;if(Ln==="content")Bn[Ln]=In;else try{Bn[Ln]=JSON.parse(In)}catch{Bn[Ln]=In}return Bn},{});return Nn}function evaluateProps(_n,Cn){var $n=Object.assign({},Cn,{content:invokeWithArgsOrReturn(Cn.content,[_n])},Cn.ignoreAttributes?{}:getDataAttributeProps(_n,Cn.plugins));return $n.aria=Object.assign({},defaultProps.aria,$n.aria),$n.aria={expanded:$n.aria.expanded==="auto"?Cn.interactive:$n.aria.expanded,content:$n.aria.content==="auto"?Cn.interactive?null:"describedby":$n.aria.content},$n}var innerHTML=function _n(){return"innerHTML"};function dangerouslySetInnerHTML(_n,Cn){_n[innerHTML()]=Cn}function createArrowElement(_n){var Cn=div();return _n===!0?Cn.className=ARROW_CLASS:(Cn.className=SVG_ARROW_CLASS,isElement(_n)?Cn.appendChild(_n):dangerouslySetInnerHTML(Cn,_n)),Cn}function setContent(_n,Cn){isElement(Cn.content)?(dangerouslySetInnerHTML(_n,""),_n.appendChild(Cn.content)):typeof Cn.content!="function"&&(Cn.allowHTML?dangerouslySetInnerHTML(_n,Cn.content):_n.textContent=Cn.content)}function getChildren(_n){var Cn=_n.firstElementChild,$n=arrayFrom(Cn.children);return{box:Cn,content:$n.find(function(Nn){return Nn.classList.contains(CONTENT_CLASS)}),arrow:$n.find(function(Nn){return Nn.classList.contains(ARROW_CLASS)||Nn.classList.contains(SVG_ARROW_CLASS)}),backdrop:$n.find(function(Nn){return Nn.classList.contains(BACKDROP_CLASS)})}}function render(_n){var Cn=div(),$n=div();$n.className=BOX_CLASS,$n.setAttribute("data-state","hidden"),$n.setAttribute("tabindex","-1");var Nn=div();Nn.className=CONTENT_CLASS,Nn.setAttribute("data-state","hidden"),setContent(Nn,_n.props),Cn.appendChild($n),$n.appendChild(Nn),Bn(_n.props,_n.props);function Bn(Ln,In){var Pn=getChildren(Cn),Dn=Pn.box,Hn=Pn.content,Wn=Pn.arrow;In.theme?Dn.setAttribute("data-theme",In.theme):Dn.removeAttribute("data-theme"),typeof In.animation=="string"?Dn.setAttribute("data-animation",In.animation):Dn.removeAttribute("data-animation"),In.inertia?Dn.setAttribute("data-inertia",""):Dn.removeAttribute("data-inertia"),Dn.style.maxWidth=typeof In.maxWidth=="number"?In.maxWidth+"px":In.maxWidth,In.role?Dn.setAttribute("role",In.role):Dn.removeAttribute("role"),(Ln.content!==In.content||Ln.allowHTML!==In.allowHTML)&&setContent(Hn,_n.props),In.arrow?Wn?Ln.arrow!==In.arrow&&(Dn.removeChild(Wn),Dn.appendChild(createArrowElement(In.arrow))):Dn.appendChild(createArrowElement(In.arrow)):Wn&&Dn.removeChild(Wn)}return{popper:Cn,onUpdate:Bn}}render.$$tippy=!0;var idCounter=1,mouseMoveListeners=[],mountedInstances=[];function createTippy(_n,Cn){var $n=evaluateProps(_n,Object.assign({},defaultProps,getExtendedPassedProps(removeUndefinedProps(Cn)))),Nn,Bn,Ln,In=!1,Pn=!1,Dn=!1,Hn=!1,Wn,Xn,Gn,rr=[],nr=debounce(_i,$n.interactiveDebounce),Yo,ei=idCounter++,ti=null,ui=unique($n.plugins),mi={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},Xo={id:ei,reference:_n,popper:div(),popperInstance:ti,props:$n,state:mi,plugins:ui,clearDelayTimeouts:ia,setProps:va,setContent:ha,show:Ca,hide:Aa,hideWithInteractivity:Oa,enable:Ji,disable:Ui,unmount:xa,destroy:Pa};if(!$n.render)return Xo;var vi=$n.render(Xo),zn=vi.popper,Ni=vi.onUpdate;zn.setAttribute("data-tippy-root",""),zn.id="tippy-"+Xo.id,Xo.popper=zn,_n._tippy=Xo,zn._tippy=Xo;var ni=ui.map(function(wi){return wi.fn(Xo)}),Qo=_n.hasAttribute("aria-expanded");return ya(),da(),bi(),xi("onCreate",[Xo]),$n.showOnCreate&&Wi(),zn.addEventListener("mouseenter",function(){Xo.props.interactive&&Xo.state.isVisible&&Xo.clearDelayTimeouts()}),zn.addEventListener("mouseleave",function(){Xo.props.interactive&&Xo.props.trigger.indexOf("mouseenter")>=0&&Li().addEventListener("mousemove",nr)}),Xo;function ri(){var wi=Xo.props.touch;return Array.isArray(wi)?wi:[wi,0]}function ci(){return ri()[0]==="hold"}function pi(){var wi;return!!((wi=Xo.props.render)!=null&&wi.$$tippy)}function yi(){return Yo||_n}function Li(){var wi=yi().parentNode;return wi?getOwnerDocument(wi):document}function ta(){return getChildren(zn)}function Yi(wi){return Xo.state.isMounted&&!Xo.state.isVisible||currentInput.isTouch||Wn&&Wn.type==="focus"?0:getValueAtIndexOrReturn(Xo.props.delay,wi?0:1,defaultProps.delay)}function bi(wi){wi===void 0&&(wi=!1),zn.style.pointerEvents=Xo.props.interactive&&!wi?"":"none",zn.style.zIndex=""+Xo.props.zIndex}function xi(wi,Xi,Qi){if(Qi===void 0&&(Qi=!0),ni.forEach(function(_a){_a[wi]&&_a[wi].apply(_a,Xi)}),Qi){var pa;(pa=Xo.props)[wi].apply(pa,Xi)}}function Ii(){var wi=Xo.props.aria;if(wi.content){var Xi="aria-"+wi.content,Qi=zn.id,pa=normalizeToArray(Xo.props.triggerTarget||_n);pa.forEach(function(_a){var Ra=_a.getAttribute(Xi);if(Xo.state.isVisible)_a.setAttribute(Xi,Ra?Ra+" "+Qi:Qi);else{var Ma=Ra&&Ra.replace(Qi,"").trim();Ma?_a.setAttribute(Xi,Ma):_a.removeAttribute(Xi)}})}}function da(){if(!(Qo||!Xo.props.aria.expanded)){var wi=normalizeToArray(Xo.props.triggerTarget||_n);wi.forEach(function(Xi){Xo.props.interactive?Xi.setAttribute("aria-expanded",Xo.state.isVisible&&Xi===yi()?"true":"false"):Xi.removeAttribute("aria-expanded")})}}function oa(){Li().removeEventListener("mousemove",nr),mouseMoveListeners=mouseMoveListeners.filter(function(wi){return wi!==nr})}function Si(wi){if(!(currentInput.isTouch&&(Dn||wi.type==="mousedown"))){var Xi=wi.composedPath&&wi.composedPath()[0]||wi.target;if(!(Xo.props.interactive&&actualContains(zn,Xi))){if(normalizeToArray(Xo.props.triggerTarget||_n).some(function(Qi){return actualContains(Qi,Xi)})){if(currentInput.isTouch||Xo.state.isVisible&&Xo.props.trigger.indexOf("click")>=0)return}else xi("onClickOutside",[Xo,wi]);Xo.props.hideOnClick===!0&&(Xo.clearDelayTimeouts(),Xo.hide(),Pn=!0,setTimeout(function(){Pn=!1}),Xo.state.isMounted||zi())}}}function Mi(){Dn=!0}function ji(){Dn=!1}function Ki(){var wi=Li();wi.addEventListener("mousedown",Si,!0),wi.addEventListener("touchend",Si,TOUCH_OPTIONS),wi.addEventListener("touchstart",ji,TOUCH_OPTIONS),wi.addEventListener("touchmove",Mi,TOUCH_OPTIONS)}function zi(){var wi=Li();wi.removeEventListener("mousedown",Si,!0),wi.removeEventListener("touchend",Si,TOUCH_OPTIONS),wi.removeEventListener("touchstart",ji,TOUCH_OPTIONS),wi.removeEventListener("touchmove",Mi,TOUCH_OPTIONS)}function ea(wi,Xi){qi(wi,function(){!Xo.state.isVisible&&zn.parentNode&&zn.parentNode.contains(zn)&&Xi()})}function ca(wi,Xi){qi(wi,Xi)}function qi(wi,Xi){var Qi=ta().box;function pa(_a){_a.target===Qi&&(updateTransitionEndListener(Qi,"remove",pa),Xi())}if(wi===0)return Xi();updateTransitionEndListener(Qi,"remove",Xn),updateTransitionEndListener(Qi,"add",pa),Xn=pa}function fa(wi,Xi,Qi){Qi===void 0&&(Qi=!1);var pa=normalizeToArray(Xo.props.triggerTarget||_n);pa.forEach(function(_a){_a.addEventListener(wi,Xi,Qi),rr.push({node:_a,eventType:wi,handler:Xi,options:Qi})})}function ya(){ci()&&(fa("touchstart",si,{passive:!0}),fa("touchend",Ti,{passive:!0})),splitBySpaces(Xo.props.trigger).forEach(function(wi){if(wi!=="manual")switch(fa(wi,si),wi){case"mouseenter":fa("mouseleave",Ti);break;case"focus":fa(isIE11?"focusout":"blur",fi);break;case"focusin":fa("focusout",fi);break}})}function oi(){rr.forEach(function(wi){var Xi=wi.node,Qi=wi.eventType,pa=wi.handler,_a=wi.options;Xi.removeEventListener(Qi,pa,_a)}),rr=[]}function si(wi){var Xi,Qi=!1;if(!(!Xo.state.isEnabled||Ei(wi)||Pn)){var pa=((Xi=Wn)==null?void 0:Xi.type)==="focus";Wn=wi,Yo=wi.currentTarget,da(),!Xo.state.isVisible&&isMouseEvent(wi)&&mouseMoveListeners.forEach(function(_a){return _a(wi)}),wi.type==="click"&&(Xo.props.trigger.indexOf("mouseenter")<0||In)&&Xo.props.hideOnClick!==!1&&Xo.state.isVisible?Qi=!0:Wi(wi),wi.type==="click"&&(In=!Qi),Qi&&!pa&&Hi(wi)}}function _i(wi){var Xi=wi.target,Qi=yi().contains(Xi)||zn.contains(Xi);if(!(wi.type==="mousemove"&&Qi)){var pa=Bi().concat(zn).map(function(_a){var Ra,Ma=_a._tippy,Qa=(Ra=Ma.popperInstance)==null?void 0:Ra.state;return Qa?{popperRect:_a.getBoundingClientRect(),popperState:Qa,props:$n}:null}).filter(Boolean);isCursorOutsideInteractiveBorder(pa,wi)&&(oa(),Hi(wi))}}function Ti(wi){var Xi=Ei(wi)||Xo.props.trigger.indexOf("click")>=0&&In;if(!Xi){if(Xo.props.interactive){Xo.hideWithInteractivity(wi);return}Hi(wi)}}function fi(wi){Xo.props.trigger.indexOf("focusin")<0&&wi.target!==yi()||Xo.props.interactive&&wi.relatedTarget&&zn.contains(wi.relatedTarget)||Hi(wi)}function Ei(wi){return currentInput.isTouch?ci()!==wi.type.indexOf("touch")>=0:!1}function Fi(){Pi();var wi=Xo.props,Xi=wi.popperOptions,Qi=wi.placement,pa=wi.offset,_a=wi.getReferenceClientRect,Ra=wi.moveTransition,Ma=pi()?getChildren(zn).arrow:null,Qa=_a?{getBoundingClientRect:_a,contextElement:_a.contextElement||yi()}:_n,Za={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(ds){var Ja=ds.state;if(pi()){var fs=ta(),vs=fs.box;["placement","reference-hidden","escaped"].forEach(function(ps){ps==="placement"?vs.setAttribute("data-placement",Ja.placement):Ja.attributes.popper["data-popper-"+ps]?vs.setAttribute("data-"+ps,""):vs.removeAttribute("data-"+ps)}),Ja.attributes.popper={}}}},Va=[{name:"offset",options:{offset:pa}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Ra}},Za];pi()&&Ma&&Va.push({name:"arrow",options:{element:Ma,padding:3}}),Va.push.apply(Va,(Xi==null?void 0:Xi.modifiers)||[]),Xo.popperInstance=createPopper(Qa,zn,Object.assign({},Xi,{placement:Qi,onFirstUpdate:Gn,modifiers:Va}))}function Pi(){Xo.popperInstance&&(Xo.popperInstance.destroy(),Xo.popperInstance=null)}function Vi(){var wi=Xo.props.appendTo,Xi,Qi=yi();Xo.props.interactive&&wi===TIPPY_DEFAULT_APPEND_TO||wi==="parent"?Xi=Qi.parentNode:Xi=invokeWithArgsOrReturn(wi,[Qi]),Xi.contains(zn)||Xi.appendChild(zn),Xo.state.isMounted=!0,Fi()}function Bi(){return arrayFrom(zn.querySelectorAll("[data-tippy-root]"))}function Wi(wi){Xo.clearDelayTimeouts(),wi&&xi("onTrigger",[Xo,wi]),Ki();var Xi=Yi(!0),Qi=ri(),pa=Qi[0],_a=Qi[1];currentInput.isTouch&&pa==="hold"&&_a&&(Xi=_a),Xi?Nn=setTimeout(function(){Xo.show()},Xi):Xo.show()}function Hi(wi){if(Xo.clearDelayTimeouts(),xi("onUntrigger",[Xo,wi]),!Xo.state.isVisible){zi();return}if(!(Xo.props.trigger.indexOf("mouseenter")>=0&&Xo.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(wi.type)>=0&&In)){var Xi=Yi(!1);Xi?Bn=setTimeout(function(){Xo.state.isVisible&&Xo.hide()},Xi):Ln=requestAnimationFrame(function(){Xo.hide()})}}function Ji(){Xo.state.isEnabled=!0}function Ui(){Xo.hide(),Xo.state.isEnabled=!1}function ia(){clearTimeout(Nn),clearTimeout(Bn),cancelAnimationFrame(Ln)}function va(wi){if(!Xo.state.isDestroyed){xi("onBeforeUpdate",[Xo,wi]),oi();var Xi=Xo.props,Qi=evaluateProps(_n,Object.assign({},Xi,removeUndefinedProps(wi),{ignoreAttributes:!0}));Xo.props=Qi,ya(),Xi.interactiveDebounce!==Qi.interactiveDebounce&&(oa(),nr=debounce(_i,Qi.interactiveDebounce)),Xi.triggerTarget&&!Qi.triggerTarget?normalizeToArray(Xi.triggerTarget).forEach(function(pa){pa.removeAttribute("aria-expanded")}):Qi.triggerTarget&&_n.removeAttribute("aria-expanded"),da(),bi(),Ni&&Ni(Xi,Qi),Xo.popperInstance&&(Fi(),Bi().forEach(function(pa){requestAnimationFrame(pa._tippy.popperInstance.forceUpdate)})),xi("onAfterUpdate",[Xo,wi])}}function ha(wi){Xo.setProps({content:wi})}function Ca(){var wi=Xo.state.isVisible,Xi=Xo.state.isDestroyed,Qi=!Xo.state.isEnabled,pa=currentInput.isTouch&&!Xo.props.touch,_a=getValueAtIndexOrReturn(Xo.props.duration,0,defaultProps.duration);if(!(wi||Xi||Qi||pa)&&!yi().hasAttribute("disabled")&&(xi("onShow",[Xo],!1),Xo.props.onShow(Xo)!==!1)){if(Xo.state.isVisible=!0,pi()&&(zn.style.visibility="visible"),bi(),Ki(),Xo.state.isMounted||(zn.style.transition="none"),pi()){var Ra=ta(),Ma=Ra.box,Qa=Ra.content;setTransitionDuration([Ma,Qa],0)}Gn=function(){var Va;if(!(!Xo.state.isVisible||Hn)){if(Hn=!0,zn.offsetHeight,zn.style.transition=Xo.props.moveTransition,pi()&&Xo.props.animation){var ms=ta(),ds=ms.box,Ja=ms.content;setTransitionDuration([ds,Ja],_a),setVisibilityState([ds,Ja],"visible")}Ii(),da(),pushIfUnique(mountedInstances,Xo),(Va=Xo.popperInstance)==null||Va.forceUpdate(),xi("onMount",[Xo]),Xo.props.animation&&pi()&&ca(_a,function(){Xo.state.isShown=!0,xi("onShown",[Xo])})}},Vi()}}function Aa(){var wi=!Xo.state.isVisible,Xi=Xo.state.isDestroyed,Qi=!Xo.state.isEnabled,pa=getValueAtIndexOrReturn(Xo.props.duration,1,defaultProps.duration);if(!(wi||Xi||Qi)&&(xi("onHide",[Xo],!1),Xo.props.onHide(Xo)!==!1)){if(Xo.state.isVisible=!1,Xo.state.isShown=!1,Hn=!1,In=!1,pi()&&(zn.style.visibility="hidden"),oa(),zi(),bi(!0),pi()){var _a=ta(),Ra=_a.box,Ma=_a.content;Xo.props.animation&&(setTransitionDuration([Ra,Ma],pa),setVisibilityState([Ra,Ma],"hidden"))}Ii(),da(),Xo.props.animation?pi()&&ea(pa,Xo.unmount):Xo.unmount()}}function Oa(wi){Li().addEventListener("mousemove",nr),pushIfUnique(mouseMoveListeners,nr),nr(wi)}function xa(){Xo.state.isVisible&&Xo.hide(),Xo.state.isMounted&&(Pi(),Bi().forEach(function(wi){wi._tippy.unmount()}),zn.parentNode&&zn.parentNode.removeChild(zn),mountedInstances=mountedInstances.filter(function(wi){return wi!==Xo}),Xo.state.isMounted=!1,xi("onHidden",[Xo]))}function Pa(){Xo.state.isDestroyed||(Xo.clearDelayTimeouts(),Xo.unmount(),oi(),delete _n._tippy,Xo.state.isDestroyed=!0,xi("onDestroy",[Xo]))}}function tippy(_n,Cn){Cn===void 0&&(Cn={});var $n=defaultProps.plugins.concat(Cn.plugins||[]);bindGlobalEventListeners();var Nn=Object.assign({},Cn,{plugins:$n}),Bn=getArrayOfElements(_n),Ln=Bn.reduce(function(In,Pn){var Dn=Pn&&createTippy(Pn,Nn);return Dn&&In.push(Dn),In},[]);return isElement(_n)?Ln[0]:Ln}tippy.defaultProps=defaultProps,tippy.setDefaultProps=setDefaultProps,tippy.currentInput=currentInput,Object.assign({},applyStyles$1,{effect:function _n(Cn){var $n=Cn.state,Nn={popper:{position:$n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign($n.elements.popper.style,Nn.popper),$n.styles=Nn,$n.elements.arrow&&Object.assign($n.elements.arrow.style,Nn.arrow)}}),tippy.setDefaultProps({render});const{toClipboard}=VueClipboard();onUiLoaded(async()=>{const _n=document.createElement("div");_n.id="physton-prompt-all-in-one",common$1.gradioApp().appendChild(_n);const Cn=createApp(App);Cn.config.globalProperties.$appMode=typeof APP_MODE<"u"&&APP_MODE,Cn.config.globalProperties.$toastr=toastr,Cn.config.globalProperties.$copyText=toClipboard,Cn.config.globalProperties.$tippyList=[],Cn.mixin(CommonMixin),Cn.directive("animate",{mounted($n,Nn){$n.classList.add("animate__animated",`animate__${Nn.value}`,"animate__faster")},updated($n,Nn){$n.classList.remove(`animate__${Nn.oldValue}`),$n.classList.add(`animate__${Nn.value}`)}}),Cn.directive("tooltip",{mounted($n,Nn){$n.setAttribute("data-tippy-content",Nn.value);let Bn=$n.getAttribute("unaffected");Bn=Bn===null?!1:Bn==="true";const Ln=tippy($n,{placement:"bottom",theme:"light",allowHTML:!0,onCreate(In,Pn){if(!Nn.value||Bn)return;In.enable(),localStorage.getItem("phystonPromptEnableTooltip")==="true"||In.disable()}});$n.$tippyInstance=Ln,Bn||Cn.config.globalProperties.$tippyList.push(Ln)},updated($n,Nn){Nn.value?($n.setAttribute("data-tippy-content",Nn.value),$n.$tippyInstance.setContent(Nn.value)):$n.$tippyInstance.disable()}}),Cn.mount(_n)})});
//# sourceMappingURL=main.entry.js.map