diff --git a/modules/backend/assets/ui/js/build/backend.js b/modules/backend/assets/ui/js/build/backend.js index 251900720e..19db9916e8 100644 --- a/modules/backend/assets/ui/js/build/backend.js +++ b/modules/backend/assets/ui/js/build/backend.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_wintercms_wn_backend_module=self.webpackChunk_wintercms_wn_backend_module||[]).push([[476],{286:function(e,t,n){var i=n(35),r=n(171);class s extends Snowboard.Singleton{listens(){return{ready:"ready",ajaxFetchOptions:"ajaxFetchOptions",ajaxUpdateComplete:"ajaxUpdateComplete"}}ready(){window.jQuery&&((0,r.M)("render"),document.addEventListener("$render",(()=>{this.snowboard.globalEvent("render")})),window.jQuery(document).trigger("render"))}addPrefilter(){window.jQuery&&window.jQuery.ajaxPrefilter((e=>{this.hasToken()&&(e.headers||(e.headers={}),e.headers["X-CSRF-TOKEN"]=this.getToken())}))}ajaxFetchOptions(e){this.hasToken()&&(e.headers["X-CSRF-TOKEN"]=this.getToken())}ajaxUpdateComplete(){window.jQuery&&window.jQuery(document).trigger("render")}hasToken(){const e=document.querySelector('meta[name="csrf-token"]');return!!e&&!!e.hasAttribute("content")}getToken(){return document.querySelector('meta[name="csrf-token"]').getAttribute("content")}}class a extends Snowboard.PluginBase{construct(e,t){if(e instanceof Snowboard.PluginBase==!1)throw new Error("Event handling can only be applied to Snowboard classes.");if(!t)throw new Error("Event prefix is required.");this.instance=e,this.eventPrefix=t,this.events=[]}on(e,t){this.events.push({event:e,callback:t})}off(e,t){this.events=this.events.filter((n=>n.event!==e||n.callback!==t))}once(e,t){var n=this;const i=this.events.push({event:e,callback:function(){t(...arguments),n.events.splice(i-1,1)}})}fire(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;it.event===e));let s=!1;r.forEach((e=>{s||!1===e.callback(...n)&&(s=!0)})),s||this.snowboard.globalEvent(`${this.eventPrefix}.${e}`,...n)}firePromise(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;it.event===e)),s=r.filter((e=>null!==e),r.map((e=>e.callback(...n))));Promise.all(s).then((()=>{this.snowboard.globalPromiseEvent(`${this.eventPrefix}.${e}`,...n)}))}}class o extends Snowboard.Singleton{construct(){this.registeredWidgets=[],this.elements=[],this.events={mutate:e=>this.onMutation(e)},this.observer=null}listens(){return{ready:"onReady",render:"onRender",ajaxUpdate:"onAjaxUpdate"}}register(e,t,n){this.registeredWidgets.push({control:e,widget:t,callback:n})}unregister(e){this.registeredWidgets=this.registeredWidgets.filter((t=>t.control!==e))}onReady(){this.initializeWidgets(document.body),this.observer||(this.observer=new MutationObserver(this.events.mutate),this.observer.observe(document.body,{childList:!0,subtree:!0}))}onRender(){this.initializeWidgets(document.body)}onAjaxUpdate(e){this.initializeWidgets(e)}initializeWidgets(e){this.registeredWidgets.forEach((t=>{const n=e.querySelectorAll(`[data-control="${t.control}"]:not([data-widget-initialized])`);n.length&&n.forEach((e=>{if(e.dataset.widgetInitialized)return;const n=this.snowboard[t.widget](e);this.elements.push({element:e,instance:n}),e.dataset.widgetInitialized=!0,this.snowboard.globalEvent("backend.widget.initialized",e,n),"function"==typeof t.callback&&t.callback(n,e)}))}))}getWidget(e){const t=this.elements.find((t=>t.element===e));return t?t.instance:null}onMutation(e){const t=e.filter((e=>e.removedNodes.length)).map((e=>Array.from(e.removedNodes))).flat();t.length&&t.forEach((e=>{const t=this.elements.filter((t=>e.contains(t.element)));t.length&&t.forEach((e=>{e.instance.destruct(),this.elements=this.elements.filter((t=>t!==e))}))}))}}if(void 0===window.Snowboard)throw new Error("Snowboard must be loaded in order to use the Backend UI.");(e=>{e.addPlugin("backend.ajax.handler",s),e.addPlugin("backend.ui.eventHandler",a),e.addPlugin("backend.ui.widgetHandler",o),e["backend.ajax.handler"]().addPrefilter(),window.AssetManager={load:(t,n)=>{e.assetLoader().load(t).then((()=>{n&&"function"==typeof n&&n()}))}},window.assetManager=window.AssetManager})(window.Snowboard),window.Vue=i}},function(e){e.O(0,[429],(function(){return t=286,e(e.s=t);var t}));e.O()}]); \ No newline at end of file +"use strict";(self.webpackChunk_wintercms_wn_backend_module=self.webpackChunk_wintercms_wn_backend_module||[]).push([[476],{385:function(e,t,n){var r=n(35),i=n(171);class s extends Snowboard.Singleton{listens(){return{ready:"ready",ajaxFetchOptions:"ajaxFetchOptions",ajaxUpdateComplete:"ajaxUpdateComplete"}}ready(){window.jQuery&&((0,i.M)("render"),document.addEventListener("$render",(()=>{this.snowboard.globalEvent("render")})),window.jQuery(document).trigger("render"))}addPrefilter(){window.jQuery&&window.jQuery.ajaxPrefilter((e=>{this.hasToken()&&(e.headers||(e.headers={}),e.headers["X-CSRF-TOKEN"]=this.getToken())}))}ajaxFetchOptions(e){this.hasToken()&&(e.headers["X-CSRF-TOKEN"]=this.getToken())}ajaxUpdateComplete(){window.jQuery&&window.jQuery(document).trigger("render")}hasToken(){const e=document.querySelector('meta[name="csrf-token"]');return!!e&&!!e.hasAttribute("content")}getToken(){return document.querySelector('meta[name="csrf-token"]').getAttribute("content")}}class a extends Snowboard.PluginBase{construct(e,t){if(e instanceof Snowboard.PluginBase==!1)throw new Error("Event handling can only be applied to Snowboard classes.");if(!t)throw new Error("Event prefix is required.");this.instance=e,this.eventPrefix=t,this.events=[]}on(e,t){this.events.push({event:e,callback:t})}off(e,t){this.events=this.events.filter((n=>n.event!==e||n.callback!==t))}once(e,t){var n=this;const r=this.events.push({event:e,callback:function(){t(...arguments),n.events.splice(r-1,1)}})}fire(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rt.event===e));let s=!1;i.forEach((e=>{s||!1===e.callback(...n)&&(s=!0)})),s||this.snowboard.globalEvent(`${this.eventPrefix}.${e}`,...n)}firePromise(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rt.event===e)),s=i.filter((e=>null!==e),i.map((e=>e.callback(...n))));Promise.all(s).then((()=>{this.snowboard.globalPromiseEvent(`${this.eventPrefix}.${e}`,...n)}))}}class o extends Snowboard.Singleton{construct(){this.changedElements=new Set}listens(){return{ready:"onReady",render:"setUpTriggers","trigger.action":"onTriggerAction"}}onReady(){(0,i.M)("oc.triggerOn.update"),(0,i.M)("change"),document.addEventListener("$change",(e=>{if(e.throughTrigger)return;const t=new InputEvent("change");t.throughTrigger=!0,e.target.dispatchEvent(t)})),this.setUpTriggers()}setUpTriggers(){Array.from(document.querySelectorAll("*")).filter((e=>[...e.attributes].filter((e=>{let{name:t}=e;return t.startsWith("data-trigger-")})).length>0)).forEach((e=>{const t=this.snowboard.trigger(e);e.addEventListener("$oc.triggerOn.update",(()=>{t.runEvents(e)}))}))}onTriggerAction(e,t,n,r){"show"!==n.name&&"hide"!==n.name||this.actionShow(n.parameters[0]?Array.from(e.querySelectorAll(n.parameters[0])):[e],"show"===n.name?r:!r)}actionShow(e,t){e.forEach((e=>{t&&e.classList.contains("hide")?e.classList.remove("hide"):t||e.classList.contains("hide")||e.classList.add("hide")}))}}class d extends Snowboard.Singleton{construct(){this.registeredWidgets=[],this.elements=[],this.events={mutate:e=>this.onMutation(e)},this.observer=null}listens(){return{ready:"onReady",render:"onRender",ajaxUpdate:"onAjaxUpdate"}}register(e,t,n){this.registeredWidgets.push({control:e,widget:t,callback:n})}unregister(e){this.registeredWidgets=this.registeredWidgets.filter((t=>t.control!==e))}onReady(){this.initializeWidgets(document.body),this.observer||(this.observer=new MutationObserver(this.events.mutate),this.observer.observe(document.body,{childList:!0,subtree:!0}))}onRender(){this.initializeWidgets(document.body)}onAjaxUpdate(e){this.initializeWidgets(e)}initializeWidgets(e){this.registeredWidgets.forEach((t=>{const n=e.querySelectorAll(`[data-control="${t.control}"]:not([data-widget-initialized])`);n.length&&n.forEach((e=>{if(e.dataset.widgetInitialized)return;const n=this.snowboard[t.widget](e);this.elements.push({element:e,instance:n}),e.dataset.widgetInitialized=!0,this.snowboard.globalEvent("backend.widget.initialized",e,n),"function"==typeof t.callback&&t.callback(n,e)}))}))}getWidget(e){const t=this.elements.find((t=>t.element===e));return t?t.instance:null}onMutation(e){const t=e.filter((e=>e.removedNodes.length)).map((e=>Array.from(e.removedNodes))).flat();t.length&&t.forEach((e=>{const t=this.elements.filter((t=>e.contains(t.element)));t.length&&t.forEach((e=>{e.instance.destruct(),this.elements=this.elements.filter((t=>t!==e))}))}))}}if(void 0===window.Snowboard)throw new Error("Snowboard must be loaded in order to use the Backend UI.");(e=>{e.addPlugin("backend.ajax.handler",s),e.addPlugin("backend.ui.eventHandler",a),e.addPlugin("backend.input.triggerHandler",o),e.addPlugin("backend.ui.widgetHandler",d),e["backend.ajax.handler"]().addPrefilter(),window.AssetManager={load:(t,n)=>{e.assetLoader().load(t).then((()=>{n&&"function"==typeof n&&n()}))}},window.assetManager=window.AssetManager})(window.Snowboard),window.Vue=r}},function(e){e.O(0,[429],(function(){return t=385,e(e.s=t);var t}));e.O()}]); \ No newline at end of file diff --git a/modules/backend/assets/ui/js/build/vendor.js b/modules/backend/assets/ui/js/build/vendor.js index 54846b1ccb..e40c0de910 100644 --- a/modules/backend/assets/ui/js/build/vendor.js +++ b/modules/backend/assets/ui/js/build/vendor.js @@ -1,4 +1,4 @@ -"use strict";(self.webpackChunk_wintercms_wn_backend_module=self.webpackChunk_wintercms_wn_backend_module||[]).push([[429],{935:function(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var s=0;s{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n}},35:function(e,t,n){n.r(t),n.d(t,{BaseTransition:function(){return Sr},BaseTransitionPropsValidators:function(){return yr},Comment:function(){return xi},DeprecationTypes:function(){return $c},EffectScope:function(){return be},ErrorCodes:function(){return Tn},ErrorTypeStrings:function(){return Rc},Fragment:function(){return _i},KeepAlive:function(){return to},ReactiveEffect:function(){return Te},Static:function(){return Ci},Suspense:function(){return hi},Teleport:function(){return fr},Text:function(){return Si},TrackOpTypes:function(){return un},Transition:function(){return Yc},TransitionGroup:function(){return Wl},TriggerOpTypes:function(){return fn},VueElement:function(){return $l},assertNumber:function(){return Cn},callWithAsyncErrorHandling:function(){return wn},callWithErrorHandling:function(){return En},camelize:function(){return M},capitalize:function(){return D},cloneVNode:function(){return ji},compatUtils:function(){return Dc},compile:function(){return Cp},computed:function(){return Tc},createApp:function(){return xa},createBlock:function(){return Mi},createCommentVNode:function(){return zi},createElementBlock:function(){return Oi},createElementVNode:function(){return Fi},createHydrationRenderer:function(){return Vs},createPropsRestProxy:function(){return Zo},createRenderer:function(){return $s},createSSRApp:function(){return Ca},createSlots:function(){return Ro},createStaticVNode:function(){return Wi},createTextVNode:function(){return qi},createVNode:function(){return Bi},customRef:function(){return nn},defineAsyncComponent:function(){return Qr},defineComponent:function(){return Ar},defineCustomElement:function(){return Pl},defineEmits:function(){return Uo},defineExpose:function(){return Ho},defineModel:function(){return Wo},defineOptions:function(){return jo},defineProps:function(){return Bo},defineSSRCustomElement:function(){return Ll},defineSlots:function(){return qo},devtools:function(){return Oc},effect:function(){return $e},effectScope:function(){return _e},getCurrentInstance:function(){return nc},getCurrentScope:function(){return Se},getCurrentWatcher:function(){return mn},getTransitionRawChildren:function(){return wr},guardReactiveProps:function(){return Hi},h:function(){return kc},handleError:function(){return An},hasInjectionContext:function(){return bs},hydrate:function(){return Sa},hydrateOnIdle:function(){return Kr},hydrateOnInteraction:function(){return Gr},hydrateOnMediaQuery:function(){return Yr},hydrateOnVisible:function(){return Jr},initCustomFormatter:function(){return Ec},initDirectivesForSSR:function(){return wa},inject:function(){return ys},isMemoSame:function(){return Ac},isProxy:function(){return Bt},isReactive:function(){return $t},isReadonly:function(){return Vt},isRef:function(){return Wt},isRuntimeOnly:function(){return hc},isShallow:function(){return Ft},isVNode:function(){return Pi},markRaw:function(){return Ht},mergeDefaults:function(){return Xo},mergeModels:function(){return Qo},mergeProps:function(){return Gi},nextTick:function(){return Dn},normalizeClass:function(){return X},normalizeProps:function(){return Q},normalizeStyle:function(){return z},onActivated:function(){return ro},onBeforeMount:function(){return fo},onBeforeUnmount:function(){return go},onBeforeUpdate:function(){return ho},onDeactivated:function(){return oo},onErrorCaptured:function(){return So},onMounted:function(){return po},onRenderTracked:function(){return _o},onRenderTriggered:function(){return bo},onScopeDispose:function(){return xe},onServerPrefetch:function(){return yo},onUnmounted:function(){return vo},onUpdated:function(){return mo},onWatcherCleanup:function(){return gn},openBlock:function(){return Ei},popScopeId:function(){return Xn},provide:function(){return vs},proxyRefs:function(){return en},pushScopeId:function(){return Gn},queuePostFlushCb:function(){return Fn},reactive:function(){return Ot},readonly:function(){return Pt},ref:function(){return zt},registerRuntimeCompiler:function(){return pc},render:function(){return _a},renderList:function(){return Io},renderSlot:function(){return Oo},resolveComponent:function(){return To},resolveDirective:function(){return wo},resolveDynamicComponent:function(){return Eo},resolveFilter:function(){return Lc},resolveTransitionHooks:function(){return Cr},setBlockTracking:function(){return Ii},setDevtoolsHook:function(){return Mc},setTransitionHooks:function(){return Er},shallowReactive:function(){return Mt},shallowReadonly:function(){return Lt},shallowRef:function(){return Kt},ssrContextKey:function(){return zs},ssrUtils:function(){return Pc},stop:function(){return Ve},toDisplayString:function(){return he},toHandlerKey:function(){return $},toHandlers:function(){return Po},toRaw:function(){return Ut},toRef:function(){return cn},toRefs:function(){return rn},toValue:function(){return Qt},transformVNodeArgs:function(){return Di},triggerRef:function(){return Gt},unref:function(){return Xt},useAttrs:function(){return Jo},useCssModule:function(){return Bl},useCssVars:function(){return hl},useHost:function(){return Vl},useId:function(){return Nr},useModel:function(){return ti},useSSRContext:function(){return Ks},useShadowRoot:function(){return Fl},useSlots:function(){return Ko},useTemplateRef:function(){return Rr},useTransitionState:function(){return gr},vModelCheckbox:function(){return ea},vModelDynamic:function(){return ca},vModelRadio:function(){return na},vModelSelect:function(){return ra},vModelText:function(){return Zl},vShow:function(){return fl},version:function(){return Nc},warn:function(){return Ic},watch:function(){return Xs},watchEffect:function(){return Js},watchPostEffect:function(){return Ys},watchSyncEffect:function(){return Gs},withAsyncContext:function(){return es},withCtx:function(){return Zn},withDefaults:function(){return zo},withDirectives:function(){return er},withKeys:function(){return ha},withMemo:function(){return wc},withModifiers:function(){return da},withScopeId:function(){return Qn}});var r={}; +"use strict";(self.webpackChunk_wintercms_wn_backend_module=self.webpackChunk_wintercms_wn_backend_module||[]).push([[429],{35:function(e,t,n){n.r(t),n.d(t,{BaseTransition:function(){return Sr},BaseTransitionPropsValidators:function(){return yr},Comment:function(){return xi},DeprecationTypes:function(){return $c},EffectScope:function(){return be},ErrorCodes:function(){return Tn},ErrorTypeStrings:function(){return Rc},Fragment:function(){return _i},KeepAlive:function(){return to},ReactiveEffect:function(){return Te},Static:function(){return Ci},Suspense:function(){return hi},Teleport:function(){return fr},Text:function(){return Si},TrackOpTypes:function(){return un},Transition:function(){return Yc},TransitionGroup:function(){return Wl},TriggerOpTypes:function(){return fn},VueElement:function(){return $l},assertNumber:function(){return Cn},callWithAsyncErrorHandling:function(){return wn},callWithErrorHandling:function(){return En},camelize:function(){return M},capitalize:function(){return D},cloneVNode:function(){return ji},compatUtils:function(){return Dc},compile:function(){return Cp},computed:function(){return Tc},createApp:function(){return xa},createBlock:function(){return Mi},createCommentVNode:function(){return zi},createElementBlock:function(){return Oi},createElementVNode:function(){return Fi},createHydrationRenderer:function(){return Vs},createPropsRestProxy:function(){return Zo},createRenderer:function(){return $s},createSSRApp:function(){return Ca},createSlots:function(){return Ro},createStaticVNode:function(){return Wi},createTextVNode:function(){return qi},createVNode:function(){return Bi},customRef:function(){return nn},defineAsyncComponent:function(){return Qr},defineComponent:function(){return Ar},defineCustomElement:function(){return Pl},defineEmits:function(){return Uo},defineExpose:function(){return Ho},defineModel:function(){return Wo},defineOptions:function(){return jo},defineProps:function(){return Bo},defineSSRCustomElement:function(){return Ll},defineSlots:function(){return qo},devtools:function(){return Oc},effect:function(){return $e},effectScope:function(){return _e},getCurrentInstance:function(){return nc},getCurrentScope:function(){return Se},getCurrentWatcher:function(){return mn},getTransitionRawChildren:function(){return wr},guardReactiveProps:function(){return Hi},h:function(){return kc},handleError:function(){return An},hasInjectionContext:function(){return bs},hydrate:function(){return Sa},hydrateOnIdle:function(){return Kr},hydrateOnInteraction:function(){return Gr},hydrateOnMediaQuery:function(){return Yr},hydrateOnVisible:function(){return Jr},initCustomFormatter:function(){return Ec},initDirectivesForSSR:function(){return wa},inject:function(){return ys},isMemoSame:function(){return Ac},isProxy:function(){return Bt},isReactive:function(){return $t},isReadonly:function(){return Vt},isRef:function(){return Wt},isRuntimeOnly:function(){return hc},isShallow:function(){return Ft},isVNode:function(){return Pi},markRaw:function(){return Ht},mergeDefaults:function(){return Xo},mergeModels:function(){return Qo},mergeProps:function(){return Gi},nextTick:function(){return Dn},normalizeClass:function(){return X},normalizeProps:function(){return Q},normalizeStyle:function(){return z},onActivated:function(){return ro},onBeforeMount:function(){return fo},onBeforeUnmount:function(){return go},onBeforeUpdate:function(){return ho},onDeactivated:function(){return oo},onErrorCaptured:function(){return So},onMounted:function(){return po},onRenderTracked:function(){return _o},onRenderTriggered:function(){return bo},onScopeDispose:function(){return xe},onServerPrefetch:function(){return yo},onUnmounted:function(){return vo},onUpdated:function(){return mo},onWatcherCleanup:function(){return gn},openBlock:function(){return Ei},popScopeId:function(){return Xn},provide:function(){return vs},proxyRefs:function(){return en},pushScopeId:function(){return Gn},queuePostFlushCb:function(){return Fn},reactive:function(){return Ot},readonly:function(){return Pt},ref:function(){return zt},registerRuntimeCompiler:function(){return pc},render:function(){return _a},renderList:function(){return Io},renderSlot:function(){return Oo},resolveComponent:function(){return To},resolveDirective:function(){return wo},resolveDynamicComponent:function(){return Eo},resolveFilter:function(){return Lc},resolveTransitionHooks:function(){return Cr},setBlockTracking:function(){return Ii},setDevtoolsHook:function(){return Mc},setTransitionHooks:function(){return Er},shallowReactive:function(){return Mt},shallowReadonly:function(){return Lt},shallowRef:function(){return Kt},ssrContextKey:function(){return zs},ssrUtils:function(){return Pc},stop:function(){return Ve},toDisplayString:function(){return he},toHandlerKey:function(){return $},toHandlers:function(){return Po},toRaw:function(){return Ut},toRef:function(){return cn},toRefs:function(){return rn},toValue:function(){return Qt},transformVNodeArgs:function(){return Di},triggerRef:function(){return Gt},unref:function(){return Xt},useAttrs:function(){return Jo},useCssModule:function(){return Bl},useCssVars:function(){return hl},useHost:function(){return Vl},useId:function(){return Nr},useModel:function(){return ti},useSSRContext:function(){return Ks},useShadowRoot:function(){return Fl},useSlots:function(){return Ko},useTemplateRef:function(){return Rr},useTransitionState:function(){return gr},vModelCheckbox:function(){return ea},vModelDynamic:function(){return ca},vModelRadio:function(){return na},vModelSelect:function(){return ra},vModelText:function(){return Zl},vShow:function(){return fl},version:function(){return Nc},warn:function(){return Ic},watch:function(){return Xs},watchEffect:function(){return Js},watchPostEffect:function(){return Ys},watchSyncEffect:function(){return Gs},withAsyncContext:function(){return es},withCtx:function(){return Zn},withDefaults:function(){return zo},withDirectives:function(){return er},withKeys:function(){return ha},withMemo:function(){return wc},withModifiers:function(){return da},withScopeId:function(){return Qn}});var r={}; /** * @vue/shared v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors @@ -21,4 +21,4 @@ const yn=[];let bn=!1;function _n(e,...t){if(bn)return;bn=!0,Ue();const n=yn.len **/ let Vc;const Fc="undefined"!=typeof window&&window.trustedTypes;if(Fc)try{Vc=Fc.createPolicy("vue",{createHTML:e=>e})}catch(e){}const Bc=Vc?e=>Vc.createHTML(e):e=>e,Uc="undefined"!=typeof document?document:null,Hc=Uc&&Uc.createElement("template"),jc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o="svg"===t?Uc.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Uc.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?Uc.createElement(e,{is:n}):Uc.createElement(e);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>Uc.createTextNode(e),createComment:e=>Uc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Uc.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),o!==s&&(o=o.nextSibling););else{Hc.innerHTML=Bc("svg"===r?`${e}`:"mathml"===r?`${e}`:e);const o=Hc.content;if("svg"===r||"mathml"===r){const e=o.firstChild;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},qc="transition",Wc="animation",zc=Symbol("_vtc"),Kc={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},Jc=f({},yr,Kc),Yc=(e=>(e.displayName="Transition",e.props=Jc,e))(((e,{slots:t})=>kc(Sr,Qc(e),t))),Gc=(e,t=[])=>{m(e)?e.forEach((e=>e(...t))):e&&e(...t)},Xc=e=>!!e&&(m(e)?e.some((e=>e.length>1)):e.length>1);function Qc(e){const t={};for(const n in e)n in Kc||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:a=i,appearToClass:u=c,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if(x(e))return[Zc(e.enter),Zc(e.leave)];{const t=Zc(e);return[t,t]}}(o),g=m&&m[0],v=m&&m[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:_,onLeave:S,onLeaveCancelled:C,onBeforeAppear:T=y,onAppear:k=b,onAppearCancelled:E=_}=t,w=(e,t,n,r)=>{e._enterCancelled=r,tl(e,t?u:c),tl(e,t?a:i),n&&n()},A=(e,t)=>{e._isLeaving=!1,tl(e,d),tl(e,h),tl(e,p),t&&t()},N=e=>(t,n)=>{const o=e?k:b,i=()=>w(t,e,n);Gc(o,[t,i]),nl((()=>{tl(t,e?l:s),el(t,e?u:c),Xc(o)||ol(t,r,g,i)}))};return f(t,{onBeforeEnter(e){Gc(y,[e]),el(e,s),el(e,i)},onBeforeAppear(e){Gc(T,[e]),el(e,l),el(e,a)},onEnter:N(!1),onAppear:N(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>A(e,t);el(e,d),e._enterCancelled?(el(e,p),ll()):(ll(),el(e,p)),nl((()=>{e._isLeaving&&(tl(e,d),el(e,h),Xc(S)||ol(e,r,v,n))})),Gc(S,[e,n])},onEnterCancelled(e){w(e,!1,void 0,!0),Gc(_,[e])},onAppearCancelled(e){w(e,!0,void 0,!0),Gc(E,[e])},onLeaveCancelled(e){A(e),Gc(C,[e])}})}function Zc(e){return H(e)}function el(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[zc]||(e[zc]=new Set)).add(t)}function tl(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[zc];n&&(n.delete(t),n.size||(e[zc]=void 0))}function nl(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let rl=0;function ol(e,t,n,r){const o=e._endId=++rl,s=()=>{o===e._endId&&r()};if(null!=n)return setTimeout(s,n);const{type:i,timeout:c,propCount:l}=sl(e,t);if(!i)return r();const a=i+"end";let u=0;const f=()=>{e.removeEventListener(a,d),s()},d=t=>{t.target===e&&++u>=l&&f()};setTimeout((()=>{u(n[e]||"").split(", "),o=r(`${qc}Delay`),s=r(`${qc}Duration`),i=il(o,s),c=r(`${Wc}Delay`),l=r(`${Wc}Duration`),a=il(c,l);let u=null,f=0,d=0;t===qc?i>0&&(u=qc,f=i,d=s.length):t===Wc?a>0&&(u=Wc,f=a,d=l.length):(f=Math.max(i,a),u=f>0?i>a?qc:Wc:null,d=u?u===qc?s.length:l.length:0);return{type:u,timeout:f,propCount:d,hasTransform:u===qc&&/\b(transform|all)(,|$)/.test(r(`${qc}Property`).toString())}}function il(e,t){for(;e.lengthcl(t)+cl(e[n]))))}function cl(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function ll(){return document.body.offsetHeight}const al=Symbol("_vod"),ul=Symbol("_vsh"),fl={beforeMount(e,{value:t},{transition:n}){e[al]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):dl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),dl(e,!0),r.enter(e)):r.leave(e,(()=>{dl(e,!1)})):dl(e,t))},beforeUnmount(e,{value:t}){dl(e,t)}};function dl(e,t){e.style.display=t?e[al]:"none",e[ul]=!t}const pl=Symbol("");function hl(e){const t=nc();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>gl(e,n)))};const r=()=>{const r=e(t.proxy);t.ce?gl(t.ce,r):ml(t.subTree,r),n(r)};ho((()=>{Fn(r)})),po((()=>{Xs(r,c,{flush:"post"});const e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),vo((()=>e.disconnect()))}))}function ml(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{ml(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)gl(e.el,t);else if(e.type===_i)e.children.forEach((e=>ml(e,t)));else if(e.type===Ci){let{el:n,anchor:r}=e;for(;n&&(gl(n,t),n!==r);)n=n.nextSibling}}function gl(e,t){if(1===e.nodeType){const n=e.style;let r="";for(const e in t)n.setProperty(`--${e}`,t[e]),r+=`--${e}: ${t[e]};`;n[pl]=r}}const vl=/(^|;)\s*display\s*:/;const yl=/\s*!important$/;function bl(e,t,n){if(m(n))n.forEach((n=>bl(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=Sl[t];if(n)return n;let r=M(t);if("filter"!==r&&r in e)return Sl[t]=r;r=D(r);for(let n=0;n<_l.length;n++){const o=_l[n]+r;if(o in e)return Sl[t]=o}return t}(e,t);yl.test(n)?e.setProperty(L(r),n.replace(yl,""),"important"):e[r]=n}}const _l=["Webkit","Moz","ms"],Sl={};const xl="http://www.w3.org/1999/xlink";function Cl(e,t,n,r,o,s=oe(t)){r&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(xl,t.slice(6,t.length)):e.setAttributeNS(xl,t,n):null==n||s&&!ie(n)?e.removeAttribute(t):e.setAttribute(t,s?"":S(n)?String(n):n)}function Tl(e,t,n,r,o){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?Bc(n):n));const s=e.tagName;if("value"===t&&"PROGRESS"!==s&&!s.includes("-")){const r="OPTION"===s?e.getAttribute("value")||"":e.value,o=null==n?"checkbox"===e.type?"on":"":String(n);return r===o&&"_value"in e||(e.value=o),null==n&&e.removeAttribute(t),void(e._value=n)}let i=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=ie(n):null==n&&"string"===r?(n="",i=!0):"number"===r&&(n=0,i=!0)}try{e[t]=n}catch(e){0}i&&e.removeAttribute(o||t)}function kl(e,t,n,r){e.addEventListener(t,n,r)}const El=Symbol("_vei");function wl(e,t,n,r,o=null){const s=e[El]||(e[El]={}),i=s[t];if(r&&i)i.value=r;else{const[n,c]=function(e){let t;if(Al.test(e)){let n;for(t={};n=e.match(Al);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):L(e.slice(2));return[n,t]}(t);if(r){const i=s[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();wn(function(e,t){if(m(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Rl(),n}(r,o);kl(e,n,i,c)}else i&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,i,c),s[t]=void 0)}}const Al=/(?:Once|Passive|Capture)$/;let Nl=0;const Il=Promise.resolve(),Rl=()=>Nl||(Il.then((()=>Nl=0)),Nl=Date.now());const Ol=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;const Ml={}; /*! #__NO_SIDE_EFFECTS__ */function Pl(e,t,n){const r=Ar(e,t);w(r)&&f(r,t);class o extends $l{constructor(e){super(r,e,n)}}return o.def=r,o} -/*! #__NO_SIDE_EFFECTS__ */const Ll=(e,t)=>Pl(e,t,Ca),Dl="undefined"!=typeof HTMLElement?HTMLElement:class{};class $l extends Dl{constructor(e,t={},n=xa){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==xa?this._root=this.shadowRoot:!1!==e.shadowRoot?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this,this._def.__asyncLoader||this._resolveProps(this._def)}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.parentNode||e.host);)if(e instanceof $l){this._parent=e;break}this._instance||(this._resolved?(this._setParent(),this._update()):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then((()=>{this._pendingResolve=void 0,this._resolveDef()})):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._instance.provides=e._instance.provides)}disconnectedCallback(){this._connected=!1,Dn((()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)}))}_resolveDef(){if(this._pendingResolve)return;for(let e=0;e{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:n,styles:r}=e;let o;if(n&&!m(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=H(this._props[e])),(o||(o=Object.create(null)))[M(e)]=!0)}this._numberProps=o,t&&this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then((t=>e(this._def=t,!0))):e(this._def)}_mount(e){this._app=this._createApp(e),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const t=this._instance&&this._instance.exposed;if(t)for(const e in t)h(this,e)||Object.defineProperty(this,e,{get:()=>Xt(t[e])})}_resolveProps(e){const{props:t}=e,n=m(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e]);for(const e of n.map(M))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!0)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const t=this.hasAttribute(e);let n=t?this.getAttribute(e):Ml;const r=M(e);t&&this._numberProps&&this._numberProps[r]&&(n=H(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(t===Ml?delete this._props[e]:(this._props[e]=t,"key"===e&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){const n=this._ob;n&&n.disconnect(),!0===t?this.setAttribute(L(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(L(e),t+""):t||this.removeAttribute(L(e)),n&&n.observe(this,{attributes:!0})}}_update(){_a(this._createVNode(),this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const t=Bi(this._def,f(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,w(t[0])?f({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),L(e)!==e&&t(L(e),n)},this._setParent()}),t}_applyStyles(e,t){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}const n=this._nonce;for(let t=e.length-1;t>=0;t--){const r=document.createElement("style");n&&r.setAttribute("nonce",n),r.textContent=e[t],this.shadowRoot.prepend(r)}}_parseSlots(){const e=this._slots={};let t;for(;t=this.firstChild;){const n=1===t.nodeType&&t.getAttribute("slot")||"default";(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){const e=(this._teleportTarget||this).querySelectorAll("slot"),t=this._instance.type.__scopeId;for(let n=0;n(delete e.props.mode,e))({name:"TransitionGroup",props:f({},Jc,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=nc(),r=gr();let o,s;return mo((()=>{if(!o.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const r=e.cloneNode(),o=e[zc];o&&o.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))}));n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const s=1===t.nodeType?t:t.parentNode;s.appendChild(r);const{hasTransform:i}=sl(r);return s.removeChild(r),i}(o[0].el,n.vnode.el,t))return;o.forEach(zl),o.forEach(Kl);const r=o.filter(Jl);ll(),r.forEach((e=>{const n=e.el,r=n.style;el(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const o=n[jl]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",o),n[jl]=null,tl(n,t))};n.addEventListener("transitionend",o)}))})),()=>{const i=Ut(e),c=Qc(i);let l=i.tag||_i;if(o=[],s)for(let e=0;e{const t=e.props["onUpdate:modelValue"]||!1;return m(t)?e=>F(t,e):t};function Gl(e){e.target.composing=!0}function Xl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ql=Symbol("_assign"),Zl={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[Ql]=Yl(o);const s=r||o.props&&"number"===o.props.type;kl(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),s&&(r=U(r)),e[Ql](r)})),n&&kl(e,"change",(()=>{e.value=e.value.trim()})),t||(kl(e,"compositionstart",Gl),kl(e,"compositionend",Xl),kl(e,"change",Xl))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:s}},i){if(e[Ql]=Yl(i),e.composing)return;const c=null==t?"":t;if((!s&&"number"!==e.type||/^0\d/.test(e.value)?e.value:U(e.value))!==c){if(document.activeElement===e&&"range"!==e.type){if(r&&t===n)return;if(o&&e.value.trim()===c)return}e.value=c}}},ea={deep:!0,created(e,t,n){e[Ql]=Yl(n),kl(e,"change",(()=>{const t=e._modelValue,n=sa(e),r=e.checked,o=e[Ql];if(m(t)){const e=de(t,n),s=-1!==e;if(r&&!s)o(t.concat(n));else if(!r&&s){const n=[...t];n.splice(e,1),o(n)}}else if(v(t)){const e=new Set(t);r?e.add(n):e.delete(n),o(e)}else o(ia(e,r))}))},mounted:ta,beforeUpdate(e,t,n){e[Ql]=Yl(n),ta(e,t,n)}};function ta(e,{value:t,oldValue:n},r){let o;if(e._modelValue=t,m(t))o=de(t,r.props.value)>-1;else if(v(t))o=t.has(r.props.value);else{if(t===n)return;o=fe(t,ia(e,!0))}e.checked!==o&&(e.checked=o)}const na={created(e,{value:t},n){e.checked=fe(t,n.props.value),e[Ql]=Yl(n),kl(e,"change",(()=>{e[Ql](sa(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e[Ql]=Yl(r),t!==n&&(e.checked=fe(t,r.props.value))}},ra={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=v(t);kl(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?U(sa(e)):sa(e)));e[Ql](e.multiple?o?new Set(t):t:t[0]),e._assigning=!0,Dn((()=>{e._assigning=!1}))})),e[Ql]=Yl(r)},mounted(e,{value:t}){oa(e,t)},beforeUpdate(e,t,n){e[Ql]=Yl(n)},updated(e,{value:t}){e._assigning||oa(e,t)}};function oa(e,t){const n=e.multiple,r=m(t);if(!n||r||v(t)){for(let o=0,s=e.options.length;oString(e)===String(i))):de(t,i)>-1}else s.selected=t.has(i);else if(fe(sa(s),t))return void(e.selectedIndex!==o&&(e.selectedIndex=o))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function sa(e){return"_value"in e?e._value:e.value}function ia(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const ca={created(e,t,n){aa(e,t,n,null,"created")},mounted(e,t,n){aa(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){aa(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){aa(e,t,n,r,"updated")}};function la(e,t){switch(e){case"SELECT":return ra;case"TEXTAREA":return Zl;default:switch(t){case"checkbox":return ea;case"radio":return na;default:return Zl}}}function aa(e,t,n,r,o){const s=la(e.tagName,n.props&&n.props.type)[o];s&&s(e,t,n,r)}const ua=["ctrl","shift","alt","meta"],fa={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>ua.some((n=>e[`${n}Key`]&&!t.includes(n)))},da=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(n,...r)=>{for(let e=0;e{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=n=>{if(!("key"in n))return;const r=L(n.key);return t.some((e=>e===r||pa[e]===r))?e(n):void 0})},ma=f({patchProp:(e,t,n,r,o,s)=>{const i="svg"===o;"class"===t?function(e,t,n){const r=e[zc];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,i):"style"===t?function(e,t,n){const r=e.style,o=_(n);let s=!1;if(n&&!o){if(t)if(_(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&bl(r,t,"")}else for(const e in t)null==n[e]&&bl(r,e,"");for(const e in n)"display"===e&&(s=!0),bl(r,e,n[e])}else if(o){if(t!==n){const e=r[pl];e&&(n+=";"+e),r.cssText=n,s=vl.test(n)}}else t&&e.removeAttribute("style");al in e&&(e[al]=s?r.display:"",e[ul]&&(r.display="none"))}(e,n,r):a(t)?u(t)||wl(e,t,0,r,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&Ol(t)&&b(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(Ol(t)&&_(n))return!1;return t in e}(e,t,r,i))?(Tl(e,t,r),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Cl(e,t,r,i,0,"value"!==t)):!e._isVueCE||!/[A-Z]/.test(t)&&_(r)?("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),Cl(e,t,r,i)):Tl(e,M(t),r,0,t)}},jc);let ga,va=!1;function ya(){return ga||(ga=$s(ma))}function ba(){return ga=va?ga:Vs(ma),va=!0,ga}const _a=(...e)=>{ya().render(...e)},Sa=(...e)=>{ba().hydrate(...e)},xa=(...e)=>{const t=ya().createApp(...e);const{mount:n}=t;return t.mount=e=>{const r=ka(e);if(!r)return;const o=t._component;b(o)||o.render||o.template||(o.template=r.innerHTML),1===r.nodeType&&(r.textContent="");const s=n(r,!1,Ta(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t},Ca=(...e)=>{const t=ba().createApp(...e);const{mount:n}=t;return t.mount=e=>{const t=ka(e);if(t)return n(t,!0,Ta(t))},t};function Ta(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function ka(e){if(_(e)){return document.querySelector(e)}return e}let Ea=!1;const wa=()=>{Ea||(Ea=!0,Zl.getSSRProps=({value:e})=>({value:e}),na.getSSRProps=({value:e},t)=>{if(t.props&&fe(t.props.value,e))return{checked:!0}},ea.getSSRProps=({value:e},t)=>{if(m(e)){if(t.props&&de(e,t.props.value)>-1)return{checked:!0}}else if(v(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},ca.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=la(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},fl.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},Aa=Symbol(""),Na=Symbol(""),Ia=Symbol(""),Ra=Symbol(""),Oa=Symbol(""),Ma=Symbol(""),Pa=Symbol(""),La=Symbol(""),Da=Symbol(""),$a=Symbol(""),Va=Symbol(""),Fa=Symbol(""),Ba=Symbol(""),Ua=Symbol(""),Ha=Symbol(""),ja=Symbol(""),qa=Symbol(""),Wa=Symbol(""),za=Symbol(""),Ka=Symbol(""),Ja=Symbol(""),Ya=Symbol(""),Ga=Symbol(""),Xa=Symbol(""),Qa=Symbol(""),Za=Symbol(""),eu=Symbol(""),tu=Symbol(""),nu=Symbol(""),ru=Symbol(""),ou=Symbol(""),su=Symbol(""),iu=Symbol(""),cu=Symbol(""),lu=Symbol(""),au=Symbol(""),uu=Symbol(""),fu=Symbol(""),du=Symbol(""),pu={[Aa]:"Fragment",[Na]:"Teleport",[Ia]:"Suspense",[Ra]:"KeepAlive",[Oa]:"BaseTransition",[Ma]:"openBlock",[Pa]:"createBlock",[La]:"createElementBlock",[Da]:"createVNode",[$a]:"createElementVNode",[Va]:"createCommentVNode",[Fa]:"createTextVNode",[Ba]:"createStaticVNode",[Ua]:"resolveComponent",[Ha]:"resolveDynamicComponent",[ja]:"resolveDirective",[qa]:"resolveFilter",[Wa]:"withDirectives",[za]:"renderList",[Ka]:"renderSlot",[Ja]:"createSlots",[Ya]:"toDisplayString",[Ga]:"mergeProps",[Xa]:"normalizeClass",[Qa]:"normalizeStyle",[Za]:"normalizeProps",[eu]:"guardReactiveProps",[tu]:"toHandlers",[nu]:"camelize",[ru]:"capitalize",[ou]:"toHandlerKey",[su]:"setBlockTracking",[iu]:"pushScopeId",[cu]:"popScopeId",[lu]:"withCtx",[au]:"unref",[uu]:"isRef",[fu]:"withMemo",[du]:"isMemoSame"};const hu={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function mu(e,t,n,r,o,s,i,c=!1,l=!1,a=!1,u=hu){return e&&(c?(e.helper(Ma),e.helper(ku(e.inSSR,a))):e.helper(Tu(e.inSSR,a)),i&&e.helper(Wa)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:s,directives:i,isBlock:c,disableTracking:l,isComponent:a,loc:u}}function gu(e,t=hu){return{type:17,loc:t,elements:e}}function vu(e,t=hu){return{type:15,loc:t,properties:e}}function yu(e,t){return{type:16,loc:hu,key:_(e)?bu(e,!0):e,value:t}}function bu(e,t=!1,n=hu,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function _u(e,t=hu){return{type:8,loc:t,children:e}}function Su(e,t=[],n=hu){return{type:14,loc:n,callee:e,arguments:t}}function xu(e,t=void 0,n=!1,r=!1,o=hu){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function Cu(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:hu}}function Tu(e,t){return e||t?Da:$a}function ku(e,t){return e||t?Pa:La}function Eu(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Tu(r,e.isComponent)),t(Ma),t(ku(r,e.isComponent)))}const wu=new Uint8Array([123,123]),Au=new Uint8Array([125,125]);function Nu(e){return e>=97&&e<=122||e>=65&&e<=90}function Iu(e){return 32===e||10===e||9===e||12===e||13===e}function Ru(e){return 47===e||62===e||Iu(e)}function Ou(e){const t=new Uint8Array(e.length);for(let n=0;n4===e.type&&e.isStatic;function Uu(e){switch(e){case"Teleport":case"teleport":return Na;case"Suspense":case"suspense":return Ia;case"KeepAlive":case"keep-alive":return Ra;case"BaseTransition":case"base-transition":return Oa}}const Hu=/^\d|[^\$\w\xA0-\uFFFF]/,ju=e=>!Hu.test(e),qu=/[A-Za-z_$\xA0-\uFFFF]/,Wu=/[\.\?\w$\xA0-\uFFFF]/,zu=/\s+[.[]\s*|\s*[.[]\s+/g,Ku=e=>4===e.type?e.content:e.loc.source,Ju=e=>{const t=Ku(e).trim().replace(zu,(e=>e.trim()));let n=0,r=[],o=0,s=0,i=null;for(let e=0;e|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Gu=e=>Yu.test(Ku(e));function Xu(e,t,n=!1){for(let r=0;r4===e.key.type&&e.key.content===r))}return n}function af(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}const uf=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,ff={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:l,isPreTag:l,isIgnoreNewlineTag:l,isCustomElement:l,onError:$u,onWarn:Vu,comments:!1,prefixIdentifiers:!1};let df=ff,pf=null,hf="",mf=null,gf=null,vf="",yf=-1,bf=-1,_f=0,Sf=!1,xf=null;const Cf=[],Tf=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=wu,this.delimiterClose=Au,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=wu,this.delimiterClose=Au}getPos(e){let t=1,n=e+1;for(let r=this.newlines.length-1;r>=0;r--){const o=this.newlines[r];if(e>o){t=r+2,n=e-o;break}}return{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?Ru(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||Iu(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart=e||(28===this.state?this.currentSequence===Mu.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(Cf,{onerr:Wf,ontext(e,t){Nf(wf(e,t),e,t)},ontextentity(e,t,n){Nf(e,t,n)},oninterpolation(e,t){if(Sf)return Nf(wf(e,t),e,t);let n=e+Tf.delimiterOpen.length,r=t-Tf.delimiterClose.length;for(;Iu(hf.charCodeAt(n));)n++;for(;Iu(hf.charCodeAt(r-1));)r--;let o=wf(n,r);o.includes("&")&&(o=df.decodeEntities(o,!1)),Ff({type:5,content:qf(o,!1,Bf(n,r)),loc:Bf(e,t)})},onopentagname(e,t){const n=wf(e,t);mf={type:1,tag:n,ns:df.getNamespace(n,Cf[0],df.ns),tagType:0,props:[],children:[],loc:Bf(e-1,t),codegenNode:void 0}},onopentagend(e){Af(e)},onclosetag(e,t){const n=wf(e,t);if(!df.isVoidTag(n)){let r=!1;for(let e=0;e0&&Wf(24,Cf[0].loc.start.offset);for(let n=0;n<=e;n++){If(Cf.shift(),t,n(7===e.type?e.rawName:e.name)===n))&&Wf(2,t)},onattribend(e,t){if(mf&&gf){if(Hf(gf.loc,t),0!==e)if(vf.includes("&")&&(vf=df.decodeEntities(vf,!0)),6===gf.type)"class"===gf.name&&(vf=Vf(vf).trim()),1!==e||vf||Wf(13,t),gf.value={type:2,content:vf,loc:1===e?Bf(yf,bf):Bf(yf-1,bf+1)},Tf.inSFCRoot&&"template"===mf.tag&&"lang"===gf.name&&vf&&"html"!==vf&&Tf.enterRCDATA(Ou("{const o=t.start.offset+n;return qf(e,!1,Bf(o,o+e.length),0,r?1:0)},c={source:i(s.trim(),n.indexOf(s,o.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=o.trim().replace(Ef,"").trim();const a=o.indexOf(l),u=l.match(kf);if(u){l=l.replace(kf,"").trim();const e=u[1].trim();let t;if(e&&(t=n.indexOf(e,a+l.length),c.key=i(e,t,!0)),u[2]){const r=u[2].trim();r&&(c.index=i(r,n.indexOf(r,c.key?t+e.length:a+l.length),!0))}}l&&(c.value=i(l,a,!0));return c}(gf.exp));let t=-1;"bind"===gf.name&&(t=gf.modifiers.findIndex((e=>"sync"===e.content)))>-1&&Du("COMPILER_V_BIND_SYNC",df,gf.loc,gf.rawName)&&(gf.name="model",gf.modifiers.splice(t,1))}7===gf.type&&"pre"===gf.name||mf.props.push(gf)}vf="",yf=bf=-1},oncomment(e,t){df.comments&&Ff({type:3,content:wf(e,t),loc:Bf(e-4,t+3)})},onend(){const e=hf.length;for(let t=0;t64&&n<91)||Uu(e)||df.isBuiltInComponent&&df.isBuiltInComponent(e)||df.isNativeTag&&!df.isNativeTag(e))return!0;var n;for(let e=0;e6===e.type&&"inline-template"===e.name));n&&Du("COMPILER_INLINE_TEMPLATE",df,n.loc)&&e.children.length&&(n.value={type:2,content:wf(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function Rf(e,t){let n=e;for(;hf.charCodeAt(n)!==t&&n>=0;)n--;return n}const Of=new Set(["if","else","else-if","for","slot"]);function Mf({tag:e,props:t}){if("template"===e)for(let e=0;e0){if(e>=2){c.codegenNode.patchFlag=-1,i.push(c);continue}}else{const e=c.codegenNode;if(13===e.type){const t=e.patchFlag;if((void 0===t||512===t||1===t)&&Zf(c,n)>=2){const t=ed(c);t&&(e.props=n.hoist(t))}e.dynamicProps&&(e.dynamicProps=n.hoist(e.dynamicProps))}}}else if(12===c.type){if((r?0:Gf(c,n))>=2){i.push(c);continue}}if(1===c.type){const t=1===c.tagType;t&&n.scopes.vSlot++,Yf(c,e,n,!1,o),t&&n.scopes.vSlot--}else if(11===c.type)Yf(c,e,n,1===c.children.length,!0);else if(9===c.type)for(let t=0;te.key===t||e.key.content===t));return n&&n.value}}i.length&&n.transformHoist&&n.transformHoist(s,n,e)}function Gf(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const r=n.get(e);if(void 0!==r)return r;const o=e.codegenNode;if(13!==o.type)return 0;if(o.isBlock&&"svg"!==e.tag&&"foreignObject"!==e.tag&&"math"!==e.tag)return 0;if(void 0===o.patchFlag){let r=3;const s=Zf(e,t);if(0===s)return n.set(e,0),0;s1)for(let o=0;on&&(w.childIndex--,w.onNodeRemoved()):(w.currentNode=null,w.onNodeRemoved()),w.parent.children.splice(n,1)},onNodeRemoved:c,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){_(e)&&(e=bu(e)),w.hoists.push(e);const t=bu(`_hoisted_${w.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1,n=!1){const r=function(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:hu}}(w.cached.length,e,t,n);return w.cached.push(r),r}};return w.filters=new Set,w}function nd(e,t){const n=td(e,t);rd(e,n),t.hoistStatic&&Kf(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:r}=e;if(1===r.length){const n=r[0];if(Jf(e,n)&&n.codegenNode){const r=n.codegenNode;13===r.type&&Eu(r,t),e.codegenNode=r}else e.codegenNode=n}else if(r.length>1){let r=64;0,e.codegenNode=mu(t,n(Aa),void 0,e.children,r,void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function rd(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let o=0;o{n--};for(;nt===e:t=>e.test(t);return(e,r)=>{if(1===e.type){const{props:o}=e;if(3===e.tagType&&o.some(tf))return;const s=[];for(let i=0;i`${pu[e]}: _${pu[e]}`;function cd(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:r=!1,filename:o="template.vue.html",scopeId:s=null,optimizeImports:i=!1,runtimeGlobalName:c="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:a="vue/server-renderer",ssr:u=!1,isTS:f=!1,inSSR:d=!1}){const p={mode:t,prefixIdentifiers:n,sourceMap:r,filename:o,scopeId:s,optimizeImports:i,runtimeGlobalName:c,runtimeModuleName:l,ssrRuntimeModuleName:a,ssr:u,isTS:f,inSSR:d,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(e){return`_${pu[e]}`},push(e,t=-2,n){p.code+=e},indent(){h(++p.indentLevel)},deindent(e=!1){e?--p.indentLevel:h(--p.indentLevel)},newline(){h(p.indentLevel)}};function h(e){p.push("\n"+" ".repeat(e),0)}return p}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:o,prefixIdentifiers:s,indent:i,deindent:c,newline:l,scopeId:a,ssr:u}=n,f=Array.from(e.helpers),d=f.length>0,p=!s&&"module"!==r;!function(e,t){const{ssr:n,prefixIdentifiers:r,push:o,newline:s,runtimeModuleName:i,runtimeGlobalName:c,ssrRuntimeModuleName:l}=t,a=c,u=Array.from(e.helpers);if(u.length>0&&(o(`const _Vue = ${a}\n`,-1),e.hoists.length)){o(`const { ${[Da,$a,Va,Fa,Ba].filter((e=>u.includes(e))).map(id).join(", ")} } = _Vue\n`,-1)}(function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r}=t;r();for(let o=0;o0)&&l()),e.directives.length&&(ld(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),ld(e.filters,"filter",n),l()),e.temps>0){o("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(o("\n",0),l()),u||o("return "),e.codegenNode?fd(e.codegenNode,n):o("null"),p&&(c(),o("}")),c(),o("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function ld(e,t,{helper:n,push:r,newline:o,isTS:s}){const i=n("filter"===t?qa:"component"===t?Ua:ja);for(let n=0;n3||!1;t.push("["),n&&t.indent(),ud(e,t,n),n&&t.deindent(),t.push("]")}function ud(e,t,n=!1,r=!0){const{push:o,newline:s}=t;for(let i=0;ie||"null"))}([s,i,c,h,a]),t),n(")"),f&&n(")");u&&(n(", "),fd(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:r,pure:o}=t,s=_(e.callee)?e.callee:r(e.callee);o&&n(sd);n(s+"(",-2,e),ud(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:r,deindent:o,newline:s}=t,{properties:i}=e;if(!i.length)return void n("{}",-2,e);const c=i.length>1||!1;n(c?"{":"{ "),c&&r();for(let e=0;e "),(l||c)&&(n("{"),r());i?(l&&n("return "),m(i)?ad(i,t):fd(i,t)):c&&fd(c,t);(l||c)&&(o(),n("}"));a&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:r,alternate:o,newline:s}=e,{push:i,indent:c,deindent:l,newline:a}=t;if(4===n.type){const e=!ju(n.content);e&&i("("),dd(n,t),e&&i(")")}else i("("),fd(n,t),i(")");s&&c(),t.indentLevel++,s||i(" "),i("? "),fd(r,t),t.indentLevel--,s&&a(),s||i(" "),i(": ");const u=19===o.type;u||t.indentLevel++;fd(o,t),u||t.indentLevel--;s&&l(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:r,indent:o,deindent:s,newline:i}=t,{needPauseTracking:c,needArraySpread:l}=e;l&&n("[...(");n(`_cache[${e.index}] || (`),c&&(o(),n(`${r(su)}(-1`),e.inVOnce&&n(", true"),n("),"),i(),n("("));n(`_cache[${e.index}] = `),fd(e.value,t),c&&(n(`).cacheIndex = ${e.index},`),i(),n(`${r(su)}(1),`),i(),n(`_cache[${e.index}]`),s());n(")"),l&&n(")]")}(e,t);break;case 21:ud(e.body,t,!0,!1)}}function dd(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function pd(e,t){for(let n=0;nfunction(e,t,n,r){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const r=t.exp?t.exp.loc:e.loc;n.onError(Fu(28,t.loc)),t.exp=bu("true",!1,r)}0;if("if"===t.name){const o=gd(e,t),s={type:9,loc:Uf(e.loc),branches:[o]};if(n.replaceNode(s),r)return r(s,o,!0)}else{const o=n.parent.children;let s=o.indexOf(e);for(;s-- >=-1;){const i=o[s];if(i&&3===i.type)n.removeNode(i);else{if(!i||2!==i.type||i.content.trim().length){if(i&&9===i.type){"else-if"===t.name&&void 0===i.branches[i.branches.length-1].condition&&n.onError(Fu(30,e.loc)),n.removeNode();const o=gd(e,t);0,i.branches.push(o);const s=r&&r(i,o,!1);rd(o,n),s&&s(),n.currentNode=null}else n.onError(Fu(30,e.loc));break}n.removeNode(i)}}}}(e,t,n,((e,t,r)=>{const o=n.parent.children;let s=o.indexOf(e),i=0;for(;s-- >=0;){const e=o[s];e&&9===e.type&&(i+=e.branches.length)}return()=>{if(r)e.codegenNode=vd(t,i,n);else{const r=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);r.alternate=vd(t,i+e.branches.length-1,n)}}}))));function gd(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!Xu(e,"for")?e.children:[e],userKey:Qu(e,"key"),isTemplateIf:n}}function vd(e,t,n){return e.condition?Cu(e.condition,yd(e,t,n),Su(n.helper(Va),['""',"true"])):yd(e,t,n)}function yd(e,t,n){const{helper:r}=n,o=yu("key",bu(`${t}`,!1,hu,2)),{children:s}=e,i=s[0];if(1!==s.length||1!==i.type){if(1===s.length&&11===i.type){const e=i.codegenNode;return cf(e,o,n),e}{let t=64;return mu(n,r(Aa),vu([o]),s,t,void 0,void 0,!0,!1,!1,e.loc)}}{const e=i.codegenNode,t=14===(c=e).type&&c.callee===fu?c.arguments[1].returns:c;return 13===t.type&&Eu(t,n),cf(t,o,n),e}var c}const bd=(e,t,n)=>{const{modifiers:r,loc:o}=e,s=e.arg;let{exp:i}=e;if(i&&4===i.type&&!i.content.trim()&&(i=void 0),!i){if(4!==s.type||!s.isStatic)return n.onError(Fu(52,s.loc)),{props:[yu(s,bu("",!0,o))]};_d(e),i=e.exp}return 4!==s.type?(s.children.unshift("("),s.children.push(') || ""')):s.isStatic||(s.content=`${s.content} || ""`),r.some((e=>"camel"===e.content))&&(4===s.type?s.isStatic?s.content=M(s.content):s.content=`${n.helperString(nu)}(${s.content})`:(s.children.unshift(`${n.helperString(nu)}(`),s.children.push(")"))),n.inSSR||(r.some((e=>"prop"===e.content))&&Sd(s,"."),r.some((e=>"attr"===e.content))&&Sd(s,"^")),{props:[yu(s,i)]}},_d=(e,t)=>{const n=e.arg,r=M(n.content);e.exp=bu(r,!1,n.loc)},Sd=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},xd=od("for",((e,t,n)=>{const{helper:r,removeHelper:o}=n;return function(e,t,n,r){if(!t.exp)return void n.onError(Fu(31,t.loc));const o=t.forParseResult;if(!o)return void n.onError(Fu(32,t.loc));Cd(o,n);const{addIdentifiers:s,removeIdentifiers:i,scopes:c}=n,{source:l,value:a,key:u,index:f}=o,d={type:11,loc:t.loc,source:l,valueAlias:a,keyAlias:u,objectIndexAlias:f,parseResult:o,children:nf(e)?e.children:[e]};n.replaceNode(d),c.vFor++;const p=r&&r(d);return()=>{c.vFor--,p&&p()}}(e,t,n,(t=>{const s=Su(r(za),[t.source]),i=nf(e),c=Xu(e,"memo"),l=Qu(e,"key",!1,!0);l&&7===l.type&&!l.exp&&_d(l);let a=l&&(6===l.type?l.value?bu(l.value.content,!0):void 0:l.exp);const u=l&&a?yu("key",a):null,f=4===t.source.type&&t.source.constType>0,d=f?64:l?128:256;return t.codegenNode=mu(n,r(Aa),void 0,s,d,void 0,void 0,!0,!f,!1,e.loc),()=>{let l;const{children:d}=t;const p=1!==d.length||1!==d[0].type,h=rf(e)?e:i&&1===e.children.length&&rf(e.children[0])?e.children[0]:null;if(h?(l=h.codegenNode,i&&u&&cf(l,u,n)):p?l=mu(n,r(Aa),u?vu([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(l=d[0].codegenNode,i&&u&&cf(l,u,n),l.isBlock!==!f&&(l.isBlock?(o(Ma),o(ku(n.inSSR,l.isComponent))):o(Tu(n.inSSR,l.isComponent))),l.isBlock=!f,l.isBlock?(r(Ma),r(ku(n.inSSR,l.isComponent))):r(Tu(n.inSSR,l.isComponent))),c){const e=xu(Td(t.parseResult,[bu("_cached")]));e.body={type:21,body:[_u(["const _memo = (",c.exp,")"]),_u(["if (_cached",...a?[" && _cached.key === ",a]:[],` && ${n.helperString(du)}(_cached, _memo)) return _cached`]),_u(["const _item = ",l]),bu("_item.memo = _memo"),bu("return _item")],loc:hu},s.arguments.push(e,bu("_cache"),bu(String(n.cached.length))),n.cached.push(null)}else s.arguments.push(xu(Td(t.parseResult),l,!0))}}))}));function Cd(e,t){e.finalized||(e.finalized=!0)}function Td({value:e,key:t,index:n},r=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||bu("_".repeat(t+1),!1)))}([e,t,n,...r])}const kd=bu("undefined",!1),Ed=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=Xu(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},wd=(e,t,n,r)=>xu(e,n,!1,!0,n.length?n[0].loc:r);function Ad(e,t,n=wd){t.helper(lu);const{children:r,loc:o}=e,s=[],i=[];let c=t.scopes.vSlot>0||t.scopes.vFor>0;const l=Xu(e,"slot",!0);if(l){const{arg:e,exp:t}=l;e&&!Bu(e)&&(c=!0),s.push(yu(e||bu("default",!0),n(t,void 0,r,o)))}let a=!1,u=!1;const f=[],d=new Set;let p=0;for(let e=0;e{const s=n(e,void 0,r,o);return t.compatConfig&&(s.isNonScopedSlot=!0),yu("default",s)};a?f.length&&f.some((e=>Rd(e)))&&(u?t.onError(Fu(39,f[0].loc)):s.push(e(void 0,f))):s.push(e(void 0,r))}const h=c?2:Id(e.children)?3:1;let m=vu(s.concat(yu("_",bu(h+"",!1))),o);return i.length&&(m=Su(t.helper(Ja),[m,gu(i)])),{slots:m,hasDynamicSlots:c}}function Nd(e,t,n){const r=[yu("name",e),yu("fn",t)];return null!=n&&r.push(yu("key",bu(String(n),!0))),vu(r)}function Id(e){for(let t=0;tfunction(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:r}=e,o=1===e.tagType;let s=o?function(e,t,n=!1){let{tag:r}=e;const o=$d(r),s=Qu(e,"is",!1,!0);if(s)if(o||Lu("COMPILER_IS_ON_ELEMENT",t)){let e;if(6===s.type?e=s.value&&bu(s.value.content,!0):(e=s.exp,e||(e=bu("is",!1,s.arg.loc))),e)return Su(t.helper(Ha),[e])}else 6===s.type&&s.value.content.startsWith("vue:")&&(r=s.value.content.slice(4));const i=Uu(r)||t.isBuiltInComponent(r);if(i)return n||t.helper(i),i;return t.helper(Ua),t.components.add(r),af(r,"component")}(e,t):`"${n}"`;const i=x(s)&&s.callee===Ha;let c,l,a,u,f,d=0,p=i||s===Na||s===Ia||!o&&("svg"===n||"foreignObject"===n||"math"===n);if(r.length>0){const n=Pd(e,t,void 0,o,i);c=n.props,d=n.patchFlag,u=n.dynamicPropNames;const r=n.directives;f=r&&r.length?gu(r.map((e=>function(e,t){const n=[],r=Od.get(e);r?n.push(t.helperString(r)):(t.helper(ja),t.directives.add(e.name),n.push(af(e.name,"directive")));const{loc:o}=e;e.exp&&n.push(e.exp);e.arg&&(e.exp||n.push("void 0"),n.push(e.arg));if(Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=bu("true",!1,o);n.push(vu(e.modifiers.map((e=>yu(e,t))),o))}return gu(n,e.loc)}(e,t)))):void 0,n.shouldUseBlock&&(p=!0)}if(e.children.length>0){s===Ra&&(p=!0,d|=1024);if(o&&s!==Na&&s!==Ra){const{slots:n,hasDynamicSlots:r}=Ad(e,t);l=n,r&&(d|=1024)}else if(1===e.children.length&&s!==Na){const n=e.children[0],r=n.type,o=5===r||8===r;o&&0===Gf(n,t)&&(d|=1),l=o||2===r?n:e.children}else l=e.children}u&&u.length&&(a=function(e){let t="[";for(let n=0,r=e.length;n0;let h=!1,m=0,g=!1,v=!1,y=!1,b=!1,_=!1,x=!1;const C=[],T=e=>{u.length&&(f.push(vu(Ld(u),c)),u=[]),e&&f.push(e)},k=()=>{t.scopes.vFor>0&&u.push(yu(bu("ref_for",!0),bu("true")))},E=({key:e,value:n})=>{if(Bu(e)){const s=e.content,i=a(s);if(!i||r&&!o||"onclick"===s.toLowerCase()||"onUpdate:modelValue"===s||N(s)||(b=!0),i&&N(s)&&(x=!0),i&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&Gf(n,t)>0)return;"ref"===s?g=!0:"class"===s?v=!0:"style"===s?y=!0:"key"===s||C.includes(s)||C.push(s),!r||"class"!==s&&"style"!==s||C.includes(s)||C.push(s)}else _=!0};for(let o=0;o"prop"===e.content))&&(m|=32);const x=t.directiveTransforms[n];if(x){const{props:n,needRuntime:r}=x(l,e,t);!s&&n.forEach(E),b&&o&&!Bu(o)?T(vu(n,c)):u.push(...n),r&&(d.push(l),S(r)&&Od.set(l,r))}else I(n)||(d.push(l),p&&(h=!0))}}let w;if(f.length?(T(),w=f.length>1?Su(t.helper(Ga),f,c):f[0]):u.length&&(w=vu(Ld(u),c)),_?m|=16:(v&&!r&&(m|=2),y&&!r&&(m|=4),C.length&&(m|=8),b&&(m|=32)),h||0!==m&&32!==m||!(g||x||d.length>0)||(m|=512),!t.inSSR&&w)switch(w.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t{if(rf(e)){const{children:n,loc:r}=e,{slotName:o,slotProps:s}=function(e,t){let n,r='"default"';const o=[];for(let t=0;t0){const{props:r,directives:s}=Pd(e,t,o,!1,!1);n=r,s.length&&t.onError(Fu(36,s[0].loc))}return{slotName:r,slotProps:n}}(e,t),i=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let c=2;s&&(i[2]=s,c=3),n.length&&(i[3]=xu([],n,!1,!1,r),c=4),t.scopeId&&!t.slotted&&(c=5),i.splice(c),e.codegenNode=Su(t.helper(Ka),i,r)}};const Fd=(e,t,n,r)=>{const{loc:o,modifiers:s,arg:i}=e;let c;if(e.exp||s.length||n.onError(Fu(35,o)),4===i.type)if(i.isStatic){let e=i.content;0,e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`);c=bu(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?$(M(e)):`on:${e}`,!0,i.loc)}else c=_u([`${n.helperString(ou)}(`,i,")"]);else c=i,c.children.unshift(`${n.helperString(ou)}(`),c.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let a=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const e=Ju(l),t=!(e||Gu(l)),n=l.content.includes(";");0,(t||a&&e)&&(l=_u([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let u={props:[yu(c,l||bu("() => {}",!1,o))]};return r&&(u=r(u)),a&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach((e=>e.key.isHandlerKey=!0)),u},Bd=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let r,o=!1;for(let e=0;e7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e{if(1===e.type&&Xu(e,"once",!0)){if(Ud.has(e)||t.inVOnce||t.inSSR)return;return Ud.add(e),t.inVOnce=!0,t.helper(su),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0,!0))}}},jd=(e,t,n)=>{const{exp:r,arg:o}=e;if(!r)return n.onError(Fu(41,e.loc)),qd();const s=r.loc.source.trim(),i=4===r.type?r.content:s,c=n.bindingMetadata[s];if("props"===c||"props-aliased"===c)return n.onError(Fu(44,r.loc)),qd();if(!i.trim()||!Ju(r))return n.onError(Fu(42,r.loc)),qd();const l=o||bu("modelValue",!0),a=o?Bu(o)?`onUpdate:${M(o.content)}`:_u(['"onUpdate:" + ',o]):"onUpdate:modelValue";let u;u=_u([`${n.isTS?"($event: any)":"$event"} => ((`,r,") = $event)"]);const f=[yu(l,e.exp),yu(a,u)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>e.content)).map((e=>(ju(e)?e:JSON.stringify(e))+": true")).join(", "),n=o?Bu(o)?`${o.content}Modifiers`:_u([o,' + "Modifiers"']):"modelModifiers";f.push(yu(n,bu(`{ ${t} }`,!1,e.loc,2)))}return qd(f)};function qd(e=[]){return{props:e}}const Wd=/[\w).+\-_$\]]/,zd=(e,t)=>{Lu("COMPILER_FILTERS",t)&&(5===e.type?Kd(e.content,t):1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&Kd(e.exp,t)})))};function Kd(e,t){if(4===e.type)Jd(e,t);else for(let n=0;n=0&&(e=n.charAt(t)," "===e);t--);e&&Wd.test(e)||(u=!0)}}else void 0===i?(h=s+1,i=n.slice(0,s).trim()):g();function g(){m.push(n.slice(h,s).trim()),h=s+1}if(void 0===i?i=n.slice(0,s).trim():0!==h&&g(),m.length){for(s=0;s{if(1===e.type){const n=Xu(e,"memo");if(!n||Gd.has(e))return;return Gd.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&13===r.type&&(1!==e.tagType&&Eu(r,t),e.codegenNode=Su(t.helper(fu),[n.exp,xu(void 0,r),"_cache",String(t.cached.length)]),t.cached.push(null))}}};function Qd(e,t={}){const n=t.onError||$u,r="module"===t.mode;!0===t.prefixIdentifiers?n(Fu(47)):r&&n(Fu(48));t.cacheHandlers&&n(Fu(49)),t.scopeId&&!r&&n(Fu(50));const o=f({},t,{prefixIdentifiers:!1}),s=_(e)?zf(e,o):e,[i,c]=[[Hd,md,Xd,xd,zd,Vd,Md,Ed,Bd],{on:Fd,bind:bd,model:jd}];return nd(s,f({},o,{nodeTransforms:[...i,...t.nodeTransforms||[]],directiveTransforms:f({},c,t.directiveTransforms||{})})),cd(s,o)}const Zd=Symbol(""),ep=Symbol(""),tp=Symbol(""),np=Symbol(""),rp=Symbol(""),op=Symbol(""),sp=Symbol(""),ip=Symbol(""),cp=Symbol(""),lp=Symbol("");var ap;let up;ap={[Zd]:"vModelRadio",[ep]:"vModelCheckbox",[tp]:"vModelText",[np]:"vModelSelect",[rp]:"vModelDynamic",[op]:"withModifiers",[sp]:"withKeys",[ip]:"vShow",[cp]:"Transition",[lp]:"TransitionGroup"},Object.getOwnPropertySymbols(ap).forEach((e=>{pu[e]=ap[e]}));const fp={parseMode:"html",isVoidTag:ne,isNativeTag:e=>Z(e)||ee(e)||te(e),isPreTag:e=>"pre"===e,isIgnoreNewlineTag:e=>"pre"===e||"textarea"===e,decodeEntities:function(e,t=!1){return up||(up=document.createElement("div")),t?(up.innerHTML=`
`,up.children[0].getAttribute("foo")):(up.innerHTML=e,up.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?cp:"TransitionGroup"===e||"transition-group"===e?lp:void 0,getNamespace(e,t,n){let r=t?t.ns:n;if(t&&2===r)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(r=0);else t&&1===r&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(r=0));if(0===r){if("svg"===e)return 1;if("math"===e)return 2}return r}},dp=(e,t)=>{const n=G(e);return bu(JSON.stringify(n),!1,t,3)};function pp(e,t){return Fu(e,t)}const hp=o("passive,once,capture"),mp=o("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),gp=o("left,right"),vp=o("onkeyup,onkeydown,onkeypress"),yp=(e,t)=>Bu(e)&&"onclick"===e.content.toLowerCase()?bu(t,!0):4!==e.type?_u(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e;const bp=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()};const _p=[e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:bu("style",!0,t.loc),exp:dp(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],Sp={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(pp(53,o)),t.children.length&&(n.onError(pp(54,o)),t.children.length=0),{props:[yu(bu("innerHTML",!0,o),r||bu("",!0))]}},text:(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(pp(55,o)),t.children.length&&(n.onError(pp(56,o)),t.children.length=0),{props:[yu(bu("textContent",!0),r?Gf(r,n)>0?r:Su(n.helperString(Ya),[r],o):bu("",!0))]}},model:(e,t,n)=>{const r=jd(e,t,n);if(!r.props.length||1===t.tagType)return r;e.arg&&n.onError(pp(58,e.arg.loc));const{tag:o}=t,s=n.isCustomElement(o);if("input"===o||"textarea"===o||"select"===o||s){let i=tp,c=!1;if("input"===o||s){const r=Qu(t,"type");if(r){if(7===r.type)i=rp;else if(r.value)switch(r.value.content){case"radio":i=Zd;break;case"checkbox":i=ep;break;case"file":c=!0,n.onError(pp(59,e.loc))}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(i=rp)}else"select"===o&&(i=np);c||(r.needRuntime=n.helper(i))}else n.onError(pp(57,e.loc));return r.props=r.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),r},on:(e,t,n)=>Fd(e,t,n,(t=>{const{modifiers:r}=e;if(!r.length)return t;let{key:o,value:s}=t.props[0];const{keyModifiers:i,nonKeyModifiers:c,eventOptionModifiers:l}=((e,t,n)=>{const r=[],o=[],s=[];for(let i=0;i{const{exp:r,loc:o}=e;return r||n.onError(pp(61,o)),{props:[],needRuntime:n.helper(ip)}}};const xp=Object.create(null);function Cp(e,t){if(!_(e)){if(!e.nodeType)return c;e=e.innerHTML}const n=function(e,t){return e+JSON.stringify(t,((e,t)=>"function"==typeof t?t.toString():t))}(e,t),o=xp[n];if(o)return o;if("#"===e[0]){const t=document.querySelector(e);0,e=t?t.innerHTML:""}const s=f({hoistStatic:!0,onError:void 0,onWarn:c},t);s.isCustomElement||"undefined"==typeof customElements||(s.isCustomElement=e=>!!customElements.get(e));const{code:i}=function(e,t={}){return Qd(e,f({},fp,t,{nodeTransforms:[bp,..._p,...t.nodeTransforms||[]],directiveTransforms:f({},Sp,t.directiveTransforms||{}),transformHoist:null}))}(e,s);const l=new Function("Vue",i)(r);return l._rc=!0,xp[n]=l}pc(Cp)}}]); \ No newline at end of file +/*! #__NO_SIDE_EFFECTS__ */const Ll=(e,t)=>Pl(e,t,Ca),Dl="undefined"!=typeof HTMLElement?HTMLElement:class{};class $l extends Dl{constructor(e,t={},n=xa){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==xa?this._root=this.shadowRoot:!1!==e.shadowRoot?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this,this._def.__asyncLoader||this._resolveProps(this._def)}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.parentNode||e.host);)if(e instanceof $l){this._parent=e;break}this._instance||(this._resolved?(this._setParent(),this._update()):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then((()=>{this._pendingResolve=void 0,this._resolveDef()})):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._instance.provides=e._instance.provides)}disconnectedCallback(){this._connected=!1,Dn((()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)}))}_resolveDef(){if(this._pendingResolve)return;for(let e=0;e{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:n,styles:r}=e;let o;if(n&&!m(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=H(this._props[e])),(o||(o=Object.create(null)))[M(e)]=!0)}this._numberProps=o,t&&this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then((t=>e(this._def=t,!0))):e(this._def)}_mount(e){this._app=this._createApp(e),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const t=this._instance&&this._instance.exposed;if(t)for(const e in t)h(this,e)||Object.defineProperty(this,e,{get:()=>Xt(t[e])})}_resolveProps(e){const{props:t}=e,n=m(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e]);for(const e of n.map(M))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!0)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const t=this.hasAttribute(e);let n=t?this.getAttribute(e):Ml;const r=M(e);t&&this._numberProps&&this._numberProps[r]&&(n=H(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(t===Ml?delete this._props[e]:(this._props[e]=t,"key"===e&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){const n=this._ob;n&&n.disconnect(),!0===t?this.setAttribute(L(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(L(e),t+""):t||this.removeAttribute(L(e)),n&&n.observe(this,{attributes:!0})}}_update(){_a(this._createVNode(),this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const t=Bi(this._def,f(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,w(t[0])?f({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),L(e)!==e&&t(L(e),n)},this._setParent()}),t}_applyStyles(e,t){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}const n=this._nonce;for(let t=e.length-1;t>=0;t--){const r=document.createElement("style");n&&r.setAttribute("nonce",n),r.textContent=e[t],this.shadowRoot.prepend(r)}}_parseSlots(){const e=this._slots={};let t;for(;t=this.firstChild;){const n=1===t.nodeType&&t.getAttribute("slot")||"default";(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){const e=(this._teleportTarget||this).querySelectorAll("slot"),t=this._instance.type.__scopeId;for(let n=0;n(delete e.props.mode,e))({name:"TransitionGroup",props:f({},Jc,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=nc(),r=gr();let o,s;return mo((()=>{if(!o.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const r=e.cloneNode(),o=e[zc];o&&o.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))}));n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const s=1===t.nodeType?t:t.parentNode;s.appendChild(r);const{hasTransform:i}=sl(r);return s.removeChild(r),i}(o[0].el,n.vnode.el,t))return;o.forEach(zl),o.forEach(Kl);const r=o.filter(Jl);ll(),r.forEach((e=>{const n=e.el,r=n.style;el(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const o=n[jl]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",o),n[jl]=null,tl(n,t))};n.addEventListener("transitionend",o)}))})),()=>{const i=Ut(e),c=Qc(i);let l=i.tag||_i;if(o=[],s)for(let e=0;e{const t=e.props["onUpdate:modelValue"]||!1;return m(t)?e=>F(t,e):t};function Gl(e){e.target.composing=!0}function Xl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ql=Symbol("_assign"),Zl={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[Ql]=Yl(o);const s=r||o.props&&"number"===o.props.type;kl(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),s&&(r=U(r)),e[Ql](r)})),n&&kl(e,"change",(()=>{e.value=e.value.trim()})),t||(kl(e,"compositionstart",Gl),kl(e,"compositionend",Xl),kl(e,"change",Xl))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:s}},i){if(e[Ql]=Yl(i),e.composing)return;const c=null==t?"":t;if((!s&&"number"!==e.type||/^0\d/.test(e.value)?e.value:U(e.value))!==c){if(document.activeElement===e&&"range"!==e.type){if(r&&t===n)return;if(o&&e.value.trim()===c)return}e.value=c}}},ea={deep:!0,created(e,t,n){e[Ql]=Yl(n),kl(e,"change",(()=>{const t=e._modelValue,n=sa(e),r=e.checked,o=e[Ql];if(m(t)){const e=de(t,n),s=-1!==e;if(r&&!s)o(t.concat(n));else if(!r&&s){const n=[...t];n.splice(e,1),o(n)}}else if(v(t)){const e=new Set(t);r?e.add(n):e.delete(n),o(e)}else o(ia(e,r))}))},mounted:ta,beforeUpdate(e,t,n){e[Ql]=Yl(n),ta(e,t,n)}};function ta(e,{value:t,oldValue:n},r){let o;if(e._modelValue=t,m(t))o=de(t,r.props.value)>-1;else if(v(t))o=t.has(r.props.value);else{if(t===n)return;o=fe(t,ia(e,!0))}e.checked!==o&&(e.checked=o)}const na={created(e,{value:t},n){e.checked=fe(t,n.props.value),e[Ql]=Yl(n),kl(e,"change",(()=>{e[Ql](sa(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e[Ql]=Yl(r),t!==n&&(e.checked=fe(t,r.props.value))}},ra={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=v(t);kl(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?U(sa(e)):sa(e)));e[Ql](e.multiple?o?new Set(t):t:t[0]),e._assigning=!0,Dn((()=>{e._assigning=!1}))})),e[Ql]=Yl(r)},mounted(e,{value:t}){oa(e,t)},beforeUpdate(e,t,n){e[Ql]=Yl(n)},updated(e,{value:t}){e._assigning||oa(e,t)}};function oa(e,t){const n=e.multiple,r=m(t);if(!n||r||v(t)){for(let o=0,s=e.options.length;oString(e)===String(i))):de(t,i)>-1}else s.selected=t.has(i);else if(fe(sa(s),t))return void(e.selectedIndex!==o&&(e.selectedIndex=o))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function sa(e){return"_value"in e?e._value:e.value}function ia(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const ca={created(e,t,n){aa(e,t,n,null,"created")},mounted(e,t,n){aa(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){aa(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){aa(e,t,n,r,"updated")}};function la(e,t){switch(e){case"SELECT":return ra;case"TEXTAREA":return Zl;default:switch(t){case"checkbox":return ea;case"radio":return na;default:return Zl}}}function aa(e,t,n,r,o){const s=la(e.tagName,n.props&&n.props.type)[o];s&&s(e,t,n,r)}const ua=["ctrl","shift","alt","meta"],fa={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>ua.some((n=>e[`${n}Key`]&&!t.includes(n)))},da=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(n,...r)=>{for(let e=0;e{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=n=>{if(!("key"in n))return;const r=L(n.key);return t.some((e=>e===r||pa[e]===r))?e(n):void 0})},ma=f({patchProp:(e,t,n,r,o,s)=>{const i="svg"===o;"class"===t?function(e,t,n){const r=e[zc];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,i):"style"===t?function(e,t,n){const r=e.style,o=_(n);let s=!1;if(n&&!o){if(t)if(_(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&bl(r,t,"")}else for(const e in t)null==n[e]&&bl(r,e,"");for(const e in n)"display"===e&&(s=!0),bl(r,e,n[e])}else if(o){if(t!==n){const e=r[pl];e&&(n+=";"+e),r.cssText=n,s=vl.test(n)}}else t&&e.removeAttribute("style");al in e&&(e[al]=s?r.display:"",e[ul]&&(r.display="none"))}(e,n,r):a(t)?u(t)||wl(e,t,0,r,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&Ol(t)&&b(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(Ol(t)&&_(n))return!1;return t in e}(e,t,r,i))?(Tl(e,t,r),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Cl(e,t,r,i,0,"value"!==t)):!e._isVueCE||!/[A-Z]/.test(t)&&_(r)?("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),Cl(e,t,r,i)):Tl(e,M(t),r,0,t)}},jc);let ga,va=!1;function ya(){return ga||(ga=$s(ma))}function ba(){return ga=va?ga:Vs(ma),va=!0,ga}const _a=(...e)=>{ya().render(...e)},Sa=(...e)=>{ba().hydrate(...e)},xa=(...e)=>{const t=ya().createApp(...e);const{mount:n}=t;return t.mount=e=>{const r=ka(e);if(!r)return;const o=t._component;b(o)||o.render||o.template||(o.template=r.innerHTML),1===r.nodeType&&(r.textContent="");const s=n(r,!1,Ta(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t},Ca=(...e)=>{const t=ba().createApp(...e);const{mount:n}=t;return t.mount=e=>{const t=ka(e);if(t)return n(t,!0,Ta(t))},t};function Ta(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function ka(e){if(_(e)){return document.querySelector(e)}return e}let Ea=!1;const wa=()=>{Ea||(Ea=!0,Zl.getSSRProps=({value:e})=>({value:e}),na.getSSRProps=({value:e},t)=>{if(t.props&&fe(t.props.value,e))return{checked:!0}},ea.getSSRProps=({value:e},t)=>{if(m(e)){if(t.props&&de(e,t.props.value)>-1)return{checked:!0}}else if(v(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},ca.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=la(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},fl.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},Aa=Symbol(""),Na=Symbol(""),Ia=Symbol(""),Ra=Symbol(""),Oa=Symbol(""),Ma=Symbol(""),Pa=Symbol(""),La=Symbol(""),Da=Symbol(""),$a=Symbol(""),Va=Symbol(""),Fa=Symbol(""),Ba=Symbol(""),Ua=Symbol(""),Ha=Symbol(""),ja=Symbol(""),qa=Symbol(""),Wa=Symbol(""),za=Symbol(""),Ka=Symbol(""),Ja=Symbol(""),Ya=Symbol(""),Ga=Symbol(""),Xa=Symbol(""),Qa=Symbol(""),Za=Symbol(""),eu=Symbol(""),tu=Symbol(""),nu=Symbol(""),ru=Symbol(""),ou=Symbol(""),su=Symbol(""),iu=Symbol(""),cu=Symbol(""),lu=Symbol(""),au=Symbol(""),uu=Symbol(""),fu=Symbol(""),du=Symbol(""),pu={[Aa]:"Fragment",[Na]:"Teleport",[Ia]:"Suspense",[Ra]:"KeepAlive",[Oa]:"BaseTransition",[Ma]:"openBlock",[Pa]:"createBlock",[La]:"createElementBlock",[Da]:"createVNode",[$a]:"createElementVNode",[Va]:"createCommentVNode",[Fa]:"createTextVNode",[Ba]:"createStaticVNode",[Ua]:"resolveComponent",[Ha]:"resolveDynamicComponent",[ja]:"resolveDirective",[qa]:"resolveFilter",[Wa]:"withDirectives",[za]:"renderList",[Ka]:"renderSlot",[Ja]:"createSlots",[Ya]:"toDisplayString",[Ga]:"mergeProps",[Xa]:"normalizeClass",[Qa]:"normalizeStyle",[Za]:"normalizeProps",[eu]:"guardReactiveProps",[tu]:"toHandlers",[nu]:"camelize",[ru]:"capitalize",[ou]:"toHandlerKey",[su]:"setBlockTracking",[iu]:"pushScopeId",[cu]:"popScopeId",[lu]:"withCtx",[au]:"unref",[uu]:"isRef",[fu]:"withMemo",[du]:"isMemoSame"};const hu={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function mu(e,t,n,r,o,s,i,c=!1,l=!1,a=!1,u=hu){return e&&(c?(e.helper(Ma),e.helper(ku(e.inSSR,a))):e.helper(Tu(e.inSSR,a)),i&&e.helper(Wa)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:s,directives:i,isBlock:c,disableTracking:l,isComponent:a,loc:u}}function gu(e,t=hu){return{type:17,loc:t,elements:e}}function vu(e,t=hu){return{type:15,loc:t,properties:e}}function yu(e,t){return{type:16,loc:hu,key:_(e)?bu(e,!0):e,value:t}}function bu(e,t=!1,n=hu,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function _u(e,t=hu){return{type:8,loc:t,children:e}}function Su(e,t=[],n=hu){return{type:14,loc:n,callee:e,arguments:t}}function xu(e,t=void 0,n=!1,r=!1,o=hu){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function Cu(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:hu}}function Tu(e,t){return e||t?Da:$a}function ku(e,t){return e||t?Pa:La}function Eu(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Tu(r,e.isComponent)),t(Ma),t(ku(r,e.isComponent)))}const wu=new Uint8Array([123,123]),Au=new Uint8Array([125,125]);function Nu(e){return e>=97&&e<=122||e>=65&&e<=90}function Iu(e){return 32===e||10===e||9===e||12===e||13===e}function Ru(e){return 47===e||62===e||Iu(e)}function Ou(e){const t=new Uint8Array(e.length);for(let n=0;n4===e.type&&e.isStatic;function Uu(e){switch(e){case"Teleport":case"teleport":return Na;case"Suspense":case"suspense":return Ia;case"KeepAlive":case"keep-alive":return Ra;case"BaseTransition":case"base-transition":return Oa}}const Hu=/^\d|[^\$\w\xA0-\uFFFF]/,ju=e=>!Hu.test(e),qu=/[A-Za-z_$\xA0-\uFFFF]/,Wu=/[\.\?\w$\xA0-\uFFFF]/,zu=/\s+[.[]\s*|\s*[.[]\s+/g,Ku=e=>4===e.type?e.content:e.loc.source,Ju=e=>{const t=Ku(e).trim().replace(zu,(e=>e.trim()));let n=0,r=[],o=0,s=0,i=null;for(let e=0;e|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Gu=e=>Yu.test(Ku(e));function Xu(e,t,n=!1){for(let r=0;r4===e.key.type&&e.key.content===r))}return n}function af(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}const uf=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,ff={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:l,isPreTag:l,isIgnoreNewlineTag:l,isCustomElement:l,onError:$u,onWarn:Vu,comments:!1,prefixIdentifiers:!1};let df=ff,pf=null,hf="",mf=null,gf=null,vf="",yf=-1,bf=-1,_f=0,Sf=!1,xf=null;const Cf=[],Tf=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=wu,this.delimiterClose=Au,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=wu,this.delimiterClose=Au}getPos(e){let t=1,n=e+1;for(let r=this.newlines.length-1;r>=0;r--){const o=this.newlines[r];if(e>o){t=r+2,n=e-o;break}}return{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?Ru(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||Iu(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart=e||(28===this.state?this.currentSequence===Mu.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(Cf,{onerr:Wf,ontext(e,t){Nf(wf(e,t),e,t)},ontextentity(e,t,n){Nf(e,t,n)},oninterpolation(e,t){if(Sf)return Nf(wf(e,t),e,t);let n=e+Tf.delimiterOpen.length,r=t-Tf.delimiterClose.length;for(;Iu(hf.charCodeAt(n));)n++;for(;Iu(hf.charCodeAt(r-1));)r--;let o=wf(n,r);o.includes("&")&&(o=df.decodeEntities(o,!1)),Ff({type:5,content:qf(o,!1,Bf(n,r)),loc:Bf(e,t)})},onopentagname(e,t){const n=wf(e,t);mf={type:1,tag:n,ns:df.getNamespace(n,Cf[0],df.ns),tagType:0,props:[],children:[],loc:Bf(e-1,t),codegenNode:void 0}},onopentagend(e){Af(e)},onclosetag(e,t){const n=wf(e,t);if(!df.isVoidTag(n)){let r=!1;for(let e=0;e0&&Wf(24,Cf[0].loc.start.offset);for(let n=0;n<=e;n++){If(Cf.shift(),t,n(7===e.type?e.rawName:e.name)===n))&&Wf(2,t)},onattribend(e,t){if(mf&&gf){if(Hf(gf.loc,t),0!==e)if(vf.includes("&")&&(vf=df.decodeEntities(vf,!0)),6===gf.type)"class"===gf.name&&(vf=Vf(vf).trim()),1!==e||vf||Wf(13,t),gf.value={type:2,content:vf,loc:1===e?Bf(yf,bf):Bf(yf-1,bf+1)},Tf.inSFCRoot&&"template"===mf.tag&&"lang"===gf.name&&vf&&"html"!==vf&&Tf.enterRCDATA(Ou("{const o=t.start.offset+n;return qf(e,!1,Bf(o,o+e.length),0,r?1:0)},c={source:i(s.trim(),n.indexOf(s,o.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=o.trim().replace(Ef,"").trim();const a=o.indexOf(l),u=l.match(kf);if(u){l=l.replace(kf,"").trim();const e=u[1].trim();let t;if(e&&(t=n.indexOf(e,a+l.length),c.key=i(e,t,!0)),u[2]){const r=u[2].trim();r&&(c.index=i(r,n.indexOf(r,c.key?t+e.length:a+l.length),!0))}}l&&(c.value=i(l,a,!0));return c}(gf.exp));let t=-1;"bind"===gf.name&&(t=gf.modifiers.findIndex((e=>"sync"===e.content)))>-1&&Du("COMPILER_V_BIND_SYNC",df,gf.loc,gf.rawName)&&(gf.name="model",gf.modifiers.splice(t,1))}7===gf.type&&"pre"===gf.name||mf.props.push(gf)}vf="",yf=bf=-1},oncomment(e,t){df.comments&&Ff({type:3,content:wf(e,t),loc:Bf(e-4,t+3)})},onend(){const e=hf.length;for(let t=0;t64&&n<91)||Uu(e)||df.isBuiltInComponent&&df.isBuiltInComponent(e)||df.isNativeTag&&!df.isNativeTag(e))return!0;var n;for(let e=0;e6===e.type&&"inline-template"===e.name));n&&Du("COMPILER_INLINE_TEMPLATE",df,n.loc)&&e.children.length&&(n.value={type:2,content:wf(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function Rf(e,t){let n=e;for(;hf.charCodeAt(n)!==t&&n>=0;)n--;return n}const Of=new Set(["if","else","else-if","for","slot"]);function Mf({tag:e,props:t}){if("template"===e)for(let e=0;e0){if(e>=2){c.codegenNode.patchFlag=-1,i.push(c);continue}}else{const e=c.codegenNode;if(13===e.type){const t=e.patchFlag;if((void 0===t||512===t||1===t)&&Zf(c,n)>=2){const t=ed(c);t&&(e.props=n.hoist(t))}e.dynamicProps&&(e.dynamicProps=n.hoist(e.dynamicProps))}}}else if(12===c.type){if((r?0:Gf(c,n))>=2){i.push(c);continue}}if(1===c.type){const t=1===c.tagType;t&&n.scopes.vSlot++,Yf(c,e,n,!1,o),t&&n.scopes.vSlot--}else if(11===c.type)Yf(c,e,n,1===c.children.length,!0);else if(9===c.type)for(let t=0;te.key===t||e.key.content===t));return n&&n.value}}i.length&&n.transformHoist&&n.transformHoist(s,n,e)}function Gf(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const r=n.get(e);if(void 0!==r)return r;const o=e.codegenNode;if(13!==o.type)return 0;if(o.isBlock&&"svg"!==e.tag&&"foreignObject"!==e.tag&&"math"!==e.tag)return 0;if(void 0===o.patchFlag){let r=3;const s=Zf(e,t);if(0===s)return n.set(e,0),0;s1)for(let o=0;on&&(w.childIndex--,w.onNodeRemoved()):(w.currentNode=null,w.onNodeRemoved()),w.parent.children.splice(n,1)},onNodeRemoved:c,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){_(e)&&(e=bu(e)),w.hoists.push(e);const t=bu(`_hoisted_${w.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1,n=!1){const r=function(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:hu}}(w.cached.length,e,t,n);return w.cached.push(r),r}};return w.filters=new Set,w}function nd(e,t){const n=td(e,t);rd(e,n),t.hoistStatic&&Kf(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:r}=e;if(1===r.length){const n=r[0];if(Jf(e,n)&&n.codegenNode){const r=n.codegenNode;13===r.type&&Eu(r,t),e.codegenNode=r}else e.codegenNode=n}else if(r.length>1){let r=64;0,e.codegenNode=mu(t,n(Aa),void 0,e.children,r,void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function rd(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let o=0;o{n--};for(;nt===e:t=>e.test(t);return(e,r)=>{if(1===e.type){const{props:o}=e;if(3===e.tagType&&o.some(tf))return;const s=[];for(let i=0;i`${pu[e]}: _${pu[e]}`;function cd(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:r=!1,filename:o="template.vue.html",scopeId:s=null,optimizeImports:i=!1,runtimeGlobalName:c="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:a="vue/server-renderer",ssr:u=!1,isTS:f=!1,inSSR:d=!1}){const p={mode:t,prefixIdentifiers:n,sourceMap:r,filename:o,scopeId:s,optimizeImports:i,runtimeGlobalName:c,runtimeModuleName:l,ssrRuntimeModuleName:a,ssr:u,isTS:f,inSSR:d,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(e){return`_${pu[e]}`},push(e,t=-2,n){p.code+=e},indent(){h(++p.indentLevel)},deindent(e=!1){e?--p.indentLevel:h(--p.indentLevel)},newline(){h(p.indentLevel)}};function h(e){p.push("\n"+" ".repeat(e),0)}return p}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:o,prefixIdentifiers:s,indent:i,deindent:c,newline:l,scopeId:a,ssr:u}=n,f=Array.from(e.helpers),d=f.length>0,p=!s&&"module"!==r;!function(e,t){const{ssr:n,prefixIdentifiers:r,push:o,newline:s,runtimeModuleName:i,runtimeGlobalName:c,ssrRuntimeModuleName:l}=t,a=c,u=Array.from(e.helpers);if(u.length>0&&(o(`const _Vue = ${a}\n`,-1),e.hoists.length)){o(`const { ${[Da,$a,Va,Fa,Ba].filter((e=>u.includes(e))).map(id).join(", ")} } = _Vue\n`,-1)}(function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r}=t;r();for(let o=0;o0)&&l()),e.directives.length&&(ld(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),ld(e.filters,"filter",n),l()),e.temps>0){o("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(o("\n",0),l()),u||o("return "),e.codegenNode?fd(e.codegenNode,n):o("null"),p&&(c(),o("}")),c(),o("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function ld(e,t,{helper:n,push:r,newline:o,isTS:s}){const i=n("filter"===t?qa:"component"===t?Ua:ja);for(let n=0;n3||!1;t.push("["),n&&t.indent(),ud(e,t,n),n&&t.deindent(),t.push("]")}function ud(e,t,n=!1,r=!0){const{push:o,newline:s}=t;for(let i=0;ie||"null"))}([s,i,c,h,a]),t),n(")"),f&&n(")");u&&(n(", "),fd(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:r,pure:o}=t,s=_(e.callee)?e.callee:r(e.callee);o&&n(sd);n(s+"(",-2,e),ud(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:r,deindent:o,newline:s}=t,{properties:i}=e;if(!i.length)return void n("{}",-2,e);const c=i.length>1||!1;n(c?"{":"{ "),c&&r();for(let e=0;e "),(l||c)&&(n("{"),r());i?(l&&n("return "),m(i)?ad(i,t):fd(i,t)):c&&fd(c,t);(l||c)&&(o(),n("}"));a&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:r,alternate:o,newline:s}=e,{push:i,indent:c,deindent:l,newline:a}=t;if(4===n.type){const e=!ju(n.content);e&&i("("),dd(n,t),e&&i(")")}else i("("),fd(n,t),i(")");s&&c(),t.indentLevel++,s||i(" "),i("? "),fd(r,t),t.indentLevel--,s&&a(),s||i(" "),i(": ");const u=19===o.type;u||t.indentLevel++;fd(o,t),u||t.indentLevel--;s&&l(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:r,indent:o,deindent:s,newline:i}=t,{needPauseTracking:c,needArraySpread:l}=e;l&&n("[...(");n(`_cache[${e.index}] || (`),c&&(o(),n(`${r(su)}(-1`),e.inVOnce&&n(", true"),n("),"),i(),n("("));n(`_cache[${e.index}] = `),fd(e.value,t),c&&(n(`).cacheIndex = ${e.index},`),i(),n(`${r(su)}(1),`),i(),n(`_cache[${e.index}]`),s());n(")"),l&&n(")]")}(e,t);break;case 21:ud(e.body,t,!0,!1)}}function dd(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function pd(e,t){for(let n=0;nfunction(e,t,n,r){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const r=t.exp?t.exp.loc:e.loc;n.onError(Fu(28,t.loc)),t.exp=bu("true",!1,r)}0;if("if"===t.name){const o=gd(e,t),s={type:9,loc:Uf(e.loc),branches:[o]};if(n.replaceNode(s),r)return r(s,o,!0)}else{const o=n.parent.children;let s=o.indexOf(e);for(;s-- >=-1;){const i=o[s];if(i&&3===i.type)n.removeNode(i);else{if(!i||2!==i.type||i.content.trim().length){if(i&&9===i.type){"else-if"===t.name&&void 0===i.branches[i.branches.length-1].condition&&n.onError(Fu(30,e.loc)),n.removeNode();const o=gd(e,t);0,i.branches.push(o);const s=r&&r(i,o,!1);rd(o,n),s&&s(),n.currentNode=null}else n.onError(Fu(30,e.loc));break}n.removeNode(i)}}}}(e,t,n,((e,t,r)=>{const o=n.parent.children;let s=o.indexOf(e),i=0;for(;s-- >=0;){const e=o[s];e&&9===e.type&&(i+=e.branches.length)}return()=>{if(r)e.codegenNode=vd(t,i,n);else{const r=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);r.alternate=vd(t,i+e.branches.length-1,n)}}}))));function gd(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!Xu(e,"for")?e.children:[e],userKey:Qu(e,"key"),isTemplateIf:n}}function vd(e,t,n){return e.condition?Cu(e.condition,yd(e,t,n),Su(n.helper(Va),['""',"true"])):yd(e,t,n)}function yd(e,t,n){const{helper:r}=n,o=yu("key",bu(`${t}`,!1,hu,2)),{children:s}=e,i=s[0];if(1!==s.length||1!==i.type){if(1===s.length&&11===i.type){const e=i.codegenNode;return cf(e,o,n),e}{let t=64;return mu(n,r(Aa),vu([o]),s,t,void 0,void 0,!0,!1,!1,e.loc)}}{const e=i.codegenNode,t=14===(c=e).type&&c.callee===fu?c.arguments[1].returns:c;return 13===t.type&&Eu(t,n),cf(t,o,n),e}var c}const bd=(e,t,n)=>{const{modifiers:r,loc:o}=e,s=e.arg;let{exp:i}=e;if(i&&4===i.type&&!i.content.trim()&&(i=void 0),!i){if(4!==s.type||!s.isStatic)return n.onError(Fu(52,s.loc)),{props:[yu(s,bu("",!0,o))]};_d(e),i=e.exp}return 4!==s.type?(s.children.unshift("("),s.children.push(') || ""')):s.isStatic||(s.content=`${s.content} || ""`),r.some((e=>"camel"===e.content))&&(4===s.type?s.isStatic?s.content=M(s.content):s.content=`${n.helperString(nu)}(${s.content})`:(s.children.unshift(`${n.helperString(nu)}(`),s.children.push(")"))),n.inSSR||(r.some((e=>"prop"===e.content))&&Sd(s,"."),r.some((e=>"attr"===e.content))&&Sd(s,"^")),{props:[yu(s,i)]}},_d=(e,t)=>{const n=e.arg,r=M(n.content);e.exp=bu(r,!1,n.loc)},Sd=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},xd=od("for",((e,t,n)=>{const{helper:r,removeHelper:o}=n;return function(e,t,n,r){if(!t.exp)return void n.onError(Fu(31,t.loc));const o=t.forParseResult;if(!o)return void n.onError(Fu(32,t.loc));Cd(o,n);const{addIdentifiers:s,removeIdentifiers:i,scopes:c}=n,{source:l,value:a,key:u,index:f}=o,d={type:11,loc:t.loc,source:l,valueAlias:a,keyAlias:u,objectIndexAlias:f,parseResult:o,children:nf(e)?e.children:[e]};n.replaceNode(d),c.vFor++;const p=r&&r(d);return()=>{c.vFor--,p&&p()}}(e,t,n,(t=>{const s=Su(r(za),[t.source]),i=nf(e),c=Xu(e,"memo"),l=Qu(e,"key",!1,!0);l&&7===l.type&&!l.exp&&_d(l);let a=l&&(6===l.type?l.value?bu(l.value.content,!0):void 0:l.exp);const u=l&&a?yu("key",a):null,f=4===t.source.type&&t.source.constType>0,d=f?64:l?128:256;return t.codegenNode=mu(n,r(Aa),void 0,s,d,void 0,void 0,!0,!f,!1,e.loc),()=>{let l;const{children:d}=t;const p=1!==d.length||1!==d[0].type,h=rf(e)?e:i&&1===e.children.length&&rf(e.children[0])?e.children[0]:null;if(h?(l=h.codegenNode,i&&u&&cf(l,u,n)):p?l=mu(n,r(Aa),u?vu([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(l=d[0].codegenNode,i&&u&&cf(l,u,n),l.isBlock!==!f&&(l.isBlock?(o(Ma),o(ku(n.inSSR,l.isComponent))):o(Tu(n.inSSR,l.isComponent))),l.isBlock=!f,l.isBlock?(r(Ma),r(ku(n.inSSR,l.isComponent))):r(Tu(n.inSSR,l.isComponent))),c){const e=xu(Td(t.parseResult,[bu("_cached")]));e.body={type:21,body:[_u(["const _memo = (",c.exp,")"]),_u(["if (_cached",...a?[" && _cached.key === ",a]:[],` && ${n.helperString(du)}(_cached, _memo)) return _cached`]),_u(["const _item = ",l]),bu("_item.memo = _memo"),bu("return _item")],loc:hu},s.arguments.push(e,bu("_cache"),bu(String(n.cached.length))),n.cached.push(null)}else s.arguments.push(xu(Td(t.parseResult),l,!0))}}))}));function Cd(e,t){e.finalized||(e.finalized=!0)}function Td({value:e,key:t,index:n},r=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||bu("_".repeat(t+1),!1)))}([e,t,n,...r])}const kd=bu("undefined",!1),Ed=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=Xu(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},wd=(e,t,n,r)=>xu(e,n,!1,!0,n.length?n[0].loc:r);function Ad(e,t,n=wd){t.helper(lu);const{children:r,loc:o}=e,s=[],i=[];let c=t.scopes.vSlot>0||t.scopes.vFor>0;const l=Xu(e,"slot",!0);if(l){const{arg:e,exp:t}=l;e&&!Bu(e)&&(c=!0),s.push(yu(e||bu("default",!0),n(t,void 0,r,o)))}let a=!1,u=!1;const f=[],d=new Set;let p=0;for(let e=0;e{const s=n(e,void 0,r,o);return t.compatConfig&&(s.isNonScopedSlot=!0),yu("default",s)};a?f.length&&f.some((e=>Rd(e)))&&(u?t.onError(Fu(39,f[0].loc)):s.push(e(void 0,f))):s.push(e(void 0,r))}const h=c?2:Id(e.children)?3:1;let m=vu(s.concat(yu("_",bu(h+"",!1))),o);return i.length&&(m=Su(t.helper(Ja),[m,gu(i)])),{slots:m,hasDynamicSlots:c}}function Nd(e,t,n){const r=[yu("name",e),yu("fn",t)];return null!=n&&r.push(yu("key",bu(String(n),!0))),vu(r)}function Id(e){for(let t=0;tfunction(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:r}=e,o=1===e.tagType;let s=o?function(e,t,n=!1){let{tag:r}=e;const o=$d(r),s=Qu(e,"is",!1,!0);if(s)if(o||Lu("COMPILER_IS_ON_ELEMENT",t)){let e;if(6===s.type?e=s.value&&bu(s.value.content,!0):(e=s.exp,e||(e=bu("is",!1,s.arg.loc))),e)return Su(t.helper(Ha),[e])}else 6===s.type&&s.value.content.startsWith("vue:")&&(r=s.value.content.slice(4));const i=Uu(r)||t.isBuiltInComponent(r);if(i)return n||t.helper(i),i;return t.helper(Ua),t.components.add(r),af(r,"component")}(e,t):`"${n}"`;const i=x(s)&&s.callee===Ha;let c,l,a,u,f,d=0,p=i||s===Na||s===Ia||!o&&("svg"===n||"foreignObject"===n||"math"===n);if(r.length>0){const n=Pd(e,t,void 0,o,i);c=n.props,d=n.patchFlag,u=n.dynamicPropNames;const r=n.directives;f=r&&r.length?gu(r.map((e=>function(e,t){const n=[],r=Od.get(e);r?n.push(t.helperString(r)):(t.helper(ja),t.directives.add(e.name),n.push(af(e.name,"directive")));const{loc:o}=e;e.exp&&n.push(e.exp);e.arg&&(e.exp||n.push("void 0"),n.push(e.arg));if(Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=bu("true",!1,o);n.push(vu(e.modifiers.map((e=>yu(e,t))),o))}return gu(n,e.loc)}(e,t)))):void 0,n.shouldUseBlock&&(p=!0)}if(e.children.length>0){s===Ra&&(p=!0,d|=1024);if(o&&s!==Na&&s!==Ra){const{slots:n,hasDynamicSlots:r}=Ad(e,t);l=n,r&&(d|=1024)}else if(1===e.children.length&&s!==Na){const n=e.children[0],r=n.type,o=5===r||8===r;o&&0===Gf(n,t)&&(d|=1),l=o||2===r?n:e.children}else l=e.children}u&&u.length&&(a=function(e){let t="[";for(let n=0,r=e.length;n0;let h=!1,m=0,g=!1,v=!1,y=!1,b=!1,_=!1,x=!1;const C=[],T=e=>{u.length&&(f.push(vu(Ld(u),c)),u=[]),e&&f.push(e)},k=()=>{t.scopes.vFor>0&&u.push(yu(bu("ref_for",!0),bu("true")))},E=({key:e,value:n})=>{if(Bu(e)){const s=e.content,i=a(s);if(!i||r&&!o||"onclick"===s.toLowerCase()||"onUpdate:modelValue"===s||N(s)||(b=!0),i&&N(s)&&(x=!0),i&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&Gf(n,t)>0)return;"ref"===s?g=!0:"class"===s?v=!0:"style"===s?y=!0:"key"===s||C.includes(s)||C.push(s),!r||"class"!==s&&"style"!==s||C.includes(s)||C.push(s)}else _=!0};for(let o=0;o"prop"===e.content))&&(m|=32);const x=t.directiveTransforms[n];if(x){const{props:n,needRuntime:r}=x(l,e,t);!s&&n.forEach(E),b&&o&&!Bu(o)?T(vu(n,c)):u.push(...n),r&&(d.push(l),S(r)&&Od.set(l,r))}else I(n)||(d.push(l),p&&(h=!0))}}let w;if(f.length?(T(),w=f.length>1?Su(t.helper(Ga),f,c):f[0]):u.length&&(w=vu(Ld(u),c)),_?m|=16:(v&&!r&&(m|=2),y&&!r&&(m|=4),C.length&&(m|=8),b&&(m|=32)),h||0!==m&&32!==m||!(g||x||d.length>0)||(m|=512),!t.inSSR&&w)switch(w.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t{if(rf(e)){const{children:n,loc:r}=e,{slotName:o,slotProps:s}=function(e,t){let n,r='"default"';const o=[];for(let t=0;t0){const{props:r,directives:s}=Pd(e,t,o,!1,!1);n=r,s.length&&t.onError(Fu(36,s[0].loc))}return{slotName:r,slotProps:n}}(e,t),i=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let c=2;s&&(i[2]=s,c=3),n.length&&(i[3]=xu([],n,!1,!1,r),c=4),t.scopeId&&!t.slotted&&(c=5),i.splice(c),e.codegenNode=Su(t.helper(Ka),i,r)}};const Fd=(e,t,n,r)=>{const{loc:o,modifiers:s,arg:i}=e;let c;if(e.exp||s.length||n.onError(Fu(35,o)),4===i.type)if(i.isStatic){let e=i.content;0,e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`);c=bu(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?$(M(e)):`on:${e}`,!0,i.loc)}else c=_u([`${n.helperString(ou)}(`,i,")"]);else c=i,c.children.unshift(`${n.helperString(ou)}(`),c.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let a=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const e=Ju(l),t=!(e||Gu(l)),n=l.content.includes(";");0,(t||a&&e)&&(l=_u([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let u={props:[yu(c,l||bu("() => {}",!1,o))]};return r&&(u=r(u)),a&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach((e=>e.key.isHandlerKey=!0)),u},Bd=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let r,o=!1;for(let e=0;e7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e{if(1===e.type&&Xu(e,"once",!0)){if(Ud.has(e)||t.inVOnce||t.inSSR)return;return Ud.add(e),t.inVOnce=!0,t.helper(su),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0,!0))}}},jd=(e,t,n)=>{const{exp:r,arg:o}=e;if(!r)return n.onError(Fu(41,e.loc)),qd();const s=r.loc.source.trim(),i=4===r.type?r.content:s,c=n.bindingMetadata[s];if("props"===c||"props-aliased"===c)return n.onError(Fu(44,r.loc)),qd();if(!i.trim()||!Ju(r))return n.onError(Fu(42,r.loc)),qd();const l=o||bu("modelValue",!0),a=o?Bu(o)?`onUpdate:${M(o.content)}`:_u(['"onUpdate:" + ',o]):"onUpdate:modelValue";let u;u=_u([`${n.isTS?"($event: any)":"$event"} => ((`,r,") = $event)"]);const f=[yu(l,e.exp),yu(a,u)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>e.content)).map((e=>(ju(e)?e:JSON.stringify(e))+": true")).join(", "),n=o?Bu(o)?`${o.content}Modifiers`:_u([o,' + "Modifiers"']):"modelModifiers";f.push(yu(n,bu(`{ ${t} }`,!1,e.loc,2)))}return qd(f)};function qd(e=[]){return{props:e}}const Wd=/[\w).+\-_$\]]/,zd=(e,t)=>{Lu("COMPILER_FILTERS",t)&&(5===e.type?Kd(e.content,t):1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&Kd(e.exp,t)})))};function Kd(e,t){if(4===e.type)Jd(e,t);else for(let n=0;n=0&&(e=n.charAt(t)," "===e);t--);e&&Wd.test(e)||(u=!0)}}else void 0===i?(h=s+1,i=n.slice(0,s).trim()):g();function g(){m.push(n.slice(h,s).trim()),h=s+1}if(void 0===i?i=n.slice(0,s).trim():0!==h&&g(),m.length){for(s=0;s{if(1===e.type){const n=Xu(e,"memo");if(!n||Gd.has(e))return;return Gd.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&13===r.type&&(1!==e.tagType&&Eu(r,t),e.codegenNode=Su(t.helper(fu),[n.exp,xu(void 0,r),"_cache",String(t.cached.length)]),t.cached.push(null))}}};function Qd(e,t={}){const n=t.onError||$u,r="module"===t.mode;!0===t.prefixIdentifiers?n(Fu(47)):r&&n(Fu(48));t.cacheHandlers&&n(Fu(49)),t.scopeId&&!r&&n(Fu(50));const o=f({},t,{prefixIdentifiers:!1}),s=_(e)?zf(e,o):e,[i,c]=[[Hd,md,Xd,xd,zd,Vd,Md,Ed,Bd],{on:Fd,bind:bd,model:jd}];return nd(s,f({},o,{nodeTransforms:[...i,...t.nodeTransforms||[]],directiveTransforms:f({},c,t.directiveTransforms||{})})),cd(s,o)}const Zd=Symbol(""),ep=Symbol(""),tp=Symbol(""),np=Symbol(""),rp=Symbol(""),op=Symbol(""),sp=Symbol(""),ip=Symbol(""),cp=Symbol(""),lp=Symbol("");var ap;let up;ap={[Zd]:"vModelRadio",[ep]:"vModelCheckbox",[tp]:"vModelText",[np]:"vModelSelect",[rp]:"vModelDynamic",[op]:"withModifiers",[sp]:"withKeys",[ip]:"vShow",[cp]:"Transition",[lp]:"TransitionGroup"},Object.getOwnPropertySymbols(ap).forEach((e=>{pu[e]=ap[e]}));const fp={parseMode:"html",isVoidTag:ne,isNativeTag:e=>Z(e)||ee(e)||te(e),isPreTag:e=>"pre"===e,isIgnoreNewlineTag:e=>"pre"===e||"textarea"===e,decodeEntities:function(e,t=!1){return up||(up=document.createElement("div")),t?(up.innerHTML=`
`,up.children[0].getAttribute("foo")):(up.innerHTML=e,up.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?cp:"TransitionGroup"===e||"transition-group"===e?lp:void 0,getNamespace(e,t,n){let r=t?t.ns:n;if(t&&2===r)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(r=0);else t&&1===r&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(r=0));if(0===r){if("svg"===e)return 1;if("math"===e)return 2}return r}},dp=(e,t)=>{const n=G(e);return bu(JSON.stringify(n),!1,t,3)};function pp(e,t){return Fu(e,t)}const hp=o("passive,once,capture"),mp=o("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),gp=o("left,right"),vp=o("onkeyup,onkeydown,onkeypress"),yp=(e,t)=>Bu(e)&&"onclick"===e.content.toLowerCase()?bu(t,!0):4!==e.type?_u(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e;const bp=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()};const _p=[e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:bu("style",!0,t.loc),exp:dp(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],Sp={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(pp(53,o)),t.children.length&&(n.onError(pp(54,o)),t.children.length=0),{props:[yu(bu("innerHTML",!0,o),r||bu("",!0))]}},text:(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(pp(55,o)),t.children.length&&(n.onError(pp(56,o)),t.children.length=0),{props:[yu(bu("textContent",!0),r?Gf(r,n)>0?r:Su(n.helperString(Ya),[r],o):bu("",!0))]}},model:(e,t,n)=>{const r=jd(e,t,n);if(!r.props.length||1===t.tagType)return r;e.arg&&n.onError(pp(58,e.arg.loc));const{tag:o}=t,s=n.isCustomElement(o);if("input"===o||"textarea"===o||"select"===o||s){let i=tp,c=!1;if("input"===o||s){const r=Qu(t,"type");if(r){if(7===r.type)i=rp;else if(r.value)switch(r.value.content){case"radio":i=Zd;break;case"checkbox":i=ep;break;case"file":c=!0,n.onError(pp(59,e.loc))}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(i=rp)}else"select"===o&&(i=np);c||(r.needRuntime=n.helper(i))}else n.onError(pp(57,e.loc));return r.props=r.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),r},on:(e,t,n)=>Fd(e,t,n,(t=>{const{modifiers:r}=e;if(!r.length)return t;let{key:o,value:s}=t.props[0];const{keyModifiers:i,nonKeyModifiers:c,eventOptionModifiers:l}=((e,t,n)=>{const r=[],o=[],s=[];for(let i=0;i{const{exp:r,loc:o}=e;return r||n.onError(pp(61,o)),{props:[],needRuntime:n.helper(ip)}}};const xp=Object.create(null);function Cp(e,t){if(!_(e)){if(!e.nodeType)return c;e=e.innerHTML}const n=function(e,t){return e+JSON.stringify(t,((e,t)=>"function"==typeof t?t.toString():t))}(e,t),o=xp[n];if(o)return o;if("#"===e[0]){const t=document.querySelector(e);0,e=t?t.innerHTML:""}const s=f({hoistStatic:!0,onError:void 0,onWarn:c},t);s.isCustomElement||"undefined"==typeof customElements||(s.isCustomElement=e=>!!customElements.get(e));const{code:i}=function(e,t={}){return Qd(e,f({},fp,t,{nodeTransforms:[bp,..._p,...t.nodeTransforms||[]],directiveTransforms:f({},Sp,t.directiveTransforms||{}),transformHoist:null}))}(e,s);const l=new Function("Vue",i)(r);return l._rc=!0,xp[n]=l}pc(Cp)},171:function(e,t,n){n.d(t,{M:function(){return r}});var r=function(e,t){void 0===t&&(t=["event"]);var n=e.startsWith("$")?function(){return window.$(document).trigger(e.slice(1),[].slice.call(arguments)[0].detail)}:function(){var n=arguments,r=t.reduce((function(e,t,r){return e[t]=[].slice.call(n)[r],e}),{});r.event.target.dispatchEvent(new CustomEvent("$"+e,{detail:r,bubbles:!0,cancelable:!0}))};return e.startsWith("$")?document.addEventListener(e,n):window.$(document).on(e,n),n}},433:function(e,t){t.A=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n}},591:function(e,t,n){var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},s=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),i=[];function c(e){for(var t=-1,n=0;n { Snowboard.addPlugin('backend.ajax.handler', BackendAjaxHandler); Snowboard.addPlugin('backend.ui.eventHandler', BackendUiEventHandler); + Snowboard.addPlugin('backend.input.triggerHandler', BackendInputTriggerHandler); Snowboard.addPlugin('backend.ui.widgetHandler', BackendUiWidgetHandler); // Add the pre-filter immediately diff --git a/modules/backend/assets/ui/js/input/TriggerHandler.js b/modules/backend/assets/ui/js/input/TriggerHandler.js new file mode 100644 index 0000000000..155a5d068a --- /dev/null +++ b/modules/backend/assets/ui/js/input/TriggerHandler.js @@ -0,0 +1,89 @@ +import { delegate } from 'jquery-events-to-dom-events'; + +/** + * Backend trigger handler. + * + * Registers the usage of the new Trigger functionality, whilst mapping the old jQuery-style events + * to the new functionality. + * + * @copyright 2024 Winter. + * @author Ben Thomson + */ +export default class TriggerHandler extends Snowboard.Singleton { + construct() { + this.changedElements = new Set(); + } + + /** + * Listeners. + * + * @returns {Object} + */ + listens() { + return { + ready: 'onReady', + render: 'setUpTriggers', + 'trigger.action': 'onTriggerAction', + }; + } + + onReady() { + delegate('oc.triggerOn.update'); + + /** + * A number of widgets trigger a change event on a hidden element when they are updated, + * however, this change event is a jQuery "change" event, not the native DOM "change" event. + * + * The following intercepts the jQuery event and dispatches a native event as well. + */ + delegate('change'); + document.addEventListener('$change', (event) => { + if (event.throughTrigger) { + return; + } + + const newEvent = new InputEvent('change'); + newEvent.throughTrigger = true; + event.target.dispatchEvent(newEvent); + }); + + this.setUpTriggers(); + } + + setUpTriggers() { + // Scan for triggers + Array + .from(document.querySelectorAll('*')) + .filter( + (element) => [...element.attributes].filter( + ({ name }) => name.startsWith('data-trigger-'), + ).length > 0, + ).forEach((element) => { + const trigger = this.snowboard.trigger(element); + element.addEventListener('$oc.triggerOn.update', () => { + trigger.runEvents(element); + }); + }); + } + + onTriggerAction(element, trigger, action, conditionMet) { + if (action.name === 'show' || action.name === 'hide') { + this.actionShow( + (action.parameters[0]) + ? Array.from(element.querySelectorAll(action.parameters[0])) + : [element], + (action.name === 'show') ? conditionMet : !conditionMet, + ); + } + } + + actionShow(elements, show) { + elements.forEach((element) => { + if (show && element.classList.contains('hide')) { + element.classList.remove('hide'); + } else if (!show && !element.classList.contains('hide')) { + element.classList.add('hide'); + } + }); + } +} diff --git a/modules/backend/formwidgets/colorpicker/assets/js/dist/colorpicker.js b/modules/backend/formwidgets/colorpicker/assets/js/dist/colorpicker.js index 775398bfd8..ca9c9c3bc7 100644 --- a/modules/backend/formwidgets/colorpicker/assets/js/dist/colorpicker.js +++ b/modules/backend/formwidgets/colorpicker/assets/js/dist/colorpicker.js @@ -1 +1 @@ -(self.webpackChunk_wintercms_wn_backend_module=self.webpackChunk_wintercms_wn_backend_module||[]).push([[692],{716:function(t){var e;self,e=()=>(()=>{"use strict";var t={d:(e,o)=>{for(var r in o)t.o(o,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:o[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.d(e,{default:()=>S});var o={};function r(t,e,o,r,i={}){e instanceof HTMLCollection||e instanceof NodeList?e=Array.from(e):Array.isArray(e)||(e=[e]),Array.isArray(o)||(o=[o]);for(const n of e)for(const e of o)n[t](e,r,{capture:!1,...i});return Array.prototype.slice.call(arguments,1)}t.r(o),t.d(o,{adjustableInputNumbers:()=>p,createElementFromString:()=>s,createFromTemplate:()=>a,eventPath:()=>c,off:()=>n,on:()=>i,resolveElement:()=>l});const i=r.bind(null,"addEventListener"),n=r.bind(null,"removeEventListener");function s(t){const e=document.createElement("div");return e.innerHTML=t.trim(),e.firstElementChild}function a(t){const e=(t,e)=>{const o=t.getAttribute(e);return t.removeAttribute(e),o},o=(t,r={})=>{const i=e(t,":obj"),n=e(t,":ref"),s=i?r[i]={}:r;n&&(r[n]=t);for(const r of Array.from(t.children)){const t=e(r,":arr"),i=o(r,t?{}:s);t&&(s[t]||(s[t]=[])).push(Object.keys(i).length?i:r)}return r};return o(s(t))}function c(t){let e=t.path||t.composedPath&&t.composedPath();if(e)return e;let o=t.target.parentElement;for(e=[t.target,o];o=o.parentElement;)e.push(o);return e.push(document,window),e}function l(t){return t instanceof Element?t:"string"==typeof t?t.split(/>>/g).reduce(((t,e,o,r)=>(t=t.querySelector(e),ot){function o(o){const r=[.001,.01,.1][Number(o.shiftKey||2*o.ctrlKey)]*(o.deltaY<0?1:-1);let i=0,n=t.selectionStart;t.value=t.value.replace(/[\d.]+/g,((t,o)=>o<=n&&o+t.length>=n?(n=o,e(Number(t),r,i)):(i++,t))),t.focus(),t.setSelectionRange(n,n),o.preventDefault(),t.dispatchEvent(new Event("input"))}i(t,"focus",(()=>i(window,"wheel",o,{passive:!1}))),i(t,"blur",(()=>n(window,"wheel",o)))}const{min:h,max:d,floor:u,round:g}=Math;function f(t,e,o){e/=100,o/=100;const r=u(t=t/360*6),i=t-r,n=o*(1-e),s=o*(1-i*e),a=o*(1-(1-i)*e),c=r%6;return[255*[o,s,n,n,a,o][c],255*[a,o,o,s,n,n][c],255*[n,n,a,o,o,s][c]]}function m(t,e,o){const r=(2-(e/=100))*(o/=100)/2;return 0!==r&&(e=1===r?0:r<.5?e*o/(2*r):e*o/(2-2*r)),[t,100*e,100*r]}function v(t,e,o){const r=h(t/=255,e/=255,o/=255),i=d(t,e,o),n=i-r;let s,a;if(0===n)s=a=0;else{a=n/i;const r=((i-t)/6+n/2)/n,c=((i-e)/6+n/2)/n,l=((i-o)/6+n/2)/n;t===i?s=l-c:e===i?s=1/3+r-l:o===i&&(s=2/3+c-r),s<0?s+=1:s>1&&(s-=1)}return[360*s,100*a,100*i]}function b(t,e,o,r){return e/=100,o/=100,[...v(255*(1-h(1,(t/=100)*(1-(r/=100))+r)),255*(1-h(1,e*(1-r)+r)),255*(1-h(1,o*(1-r)+r)))]}function k(t,e,o){e/=100;const r=2*(e*=(o/=100)<.5?o:1-o)/(o+e)*100,i=100*(o+e);return[t,isNaN(r)?0:r,i]}function w(t){return v(...t.match(/.{2}/g).map((t=>parseInt(t,16))))}function y(t=0,e=0,o=0,r=1){const i=(t,e)=>(o=-1)=>e(~o?t.map((t=>Number(t.toFixed(o)))):t),n={h:t,s:e,v:o,a:r,toHSVA(){const t=[n.h,n.s,n.v,n.a];return t.toString=i(t,(t=>`hsva(${t[0]}, ${t[1]}%, ${t[2]}%, ${n.a})`)),t},toHSLA(){const t=[...m(n.h,n.s,n.v),n.a];return t.toString=i(t,(t=>`hsla(${t[0]}, ${t[1]}%, ${t[2]}%, ${n.a})`)),t},toRGBA(){const t=[...f(n.h,n.s,n.v),n.a];return t.toString=i(t,(t=>`rgba(${t[0]}, ${t[1]}, ${t[2]}, ${n.a})`)),t},toCMYK(){const t=function(t,e,o){const r=f(t,e,o),i=r[0]/255,n=r[1]/255,s=r[2]/255,a=h(1-i,1-n,1-s);return[100*(1===a?0:(1-i-a)/(1-a)),100*(1===a?0:(1-n-a)/(1-a)),100*(1===a?0:(1-s-a)/(1-a)),100*a]}(n.h,n.s,n.v);return t.toString=i(t,(t=>`cmyk(${t[0]}%, ${t[1]}%, ${t[2]}%, ${t[3]}%)`)),t},toHEXA(){const t=function(t,e,o){return f(t,e,o).map((t=>g(t).toString(16).padStart(2,"0")))}(n.h,n.s,n.v),e=n.a>=1?"":Number((255*n.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return e&&t.push(e),t.toString=()=>`#${t.join("").toUpperCase()}`,t},clone:()=>y(n.h,n.s,n.v,n.a)};return n}const _=t=>Math.max(Math.min(t,1),0);function C(t){const e={options:Object.assign({lock:null,onchange:()=>0,onstop:()=>0},t),_keyboard(t){const{options:o}=e,{type:r,key:i}=t;if(document.activeElement===o.wrapper){const{lock:o}=e.options,n="ArrowUp"===i,s="ArrowRight"===i,a="ArrowDown"===i,c="ArrowLeft"===i;if("keydown"===r&&(n||s||a||c)){let r=0,i=0;"v"===o?r=n||s?1:-1:"h"===o?r=n||s?-1:1:(i=n?-1:a?1:0,r=c?-1:s?1:0),e.update(_(e.cache.x+.01*r),_(e.cache.y+.01*i)),t.preventDefault()}else i.startsWith("Arrow")&&(e.options.onstop(),t.preventDefault())}},_tapstart(t){i(document,["mouseup","touchend","touchcancel"],e._tapstop),i(document,["mousemove","touchmove"],e._tapmove),t.cancelable&&t.preventDefault(),e._tapmove(t)},_tapmove(t){const{options:o,cache:r}=e,{lock:i,element:n,wrapper:s}=o,a=s.getBoundingClientRect();let c=0,l=0;if(t){const e=t&&t.touches&&t.touches[0];c=t?(e||t).clientX:0,l=t?(e||t).clientY:0,ca.left+a.width&&(c=a.left+a.width),la.top+a.height&&(l=a.top+a.height),c-=a.left,l-=a.top}else r&&(c=r.x*a.width,l=r.y*a.height);"h"!==i&&(n.style.left=`calc(${c/a.width*100}% - ${n.offsetWidth/2}px)`),"v"!==i&&(n.style.top=`calc(${l/a.height*100}% - ${n.offsetHeight/2}px)`),e.cache={x:c/a.width,y:l/a.height};const p=_(c/a.width),h=_(l/a.height);switch(i){case"v":return o.onchange(p);case"h":return o.onchange(h);default:return o.onchange(p,h)}},_tapstop(){e.options.onstop(),n(document,["mouseup","touchend","touchcancel"],e._tapstop),n(document,["mousemove","touchmove"],e._tapmove)},trigger(){e._tapmove()},update(t=0,o=0){const{left:r,top:i,width:n,height:s}=e.options.wrapper.getBoundingClientRect();"h"===e.options.lock&&(o=t),e._tapmove({clientX:r+n*t,clientY:i+s*o})},destroy(){const{options:t,_tapstart:o,_keyboard:r}=e;n(document,["keydown","keyup"],r),n([t.wrapper,t.element],"mousedown",o),n([t.wrapper,t.element],"touchstart",o,{passive:!1})}},{options:o,_tapstart:r,_keyboard:s}=e;return i([o.wrapper,o.element],"mousedown",r),i([o.wrapper,o.element],"touchstart",r,{passive:!1}),i(document,["keydown","keyup"],s),e}function x(t={}){t=Object.assign({onchange:()=>0,className:"",elements:[]},t);const e=i(t.elements,"click",(e=>{t.elements.forEach((o=>o.classList[e.target===o?"add":"remove"](t.className))),t.onchange(e),e.stopPropagation()}));return{destroy:()=>n(...e)}}const A={variantFlipOrder:{start:"sme",middle:"mse",end:"ems"},positionFlipOrder:{top:"tbrl",right:"rltb",bottom:"btrl",left:"lrbt"},position:"bottom",margin:8,padding:0};class S{static utils=o;static version="1.9.1";static I18N_DEFAULTS={"ui:dialog":"color picker dialog","btn:toggle":"toggle color picker dialog","btn:swatch":"color swatch","btn:last-color":"use previous color","btn:save":"Save","btn:cancel":"Cancel","btn:clear":"Clear","aria:btn:save":"save and close","aria:btn:cancel":"cancel and close","aria:btn:clear":"clear and close","aria:input":"color input field","aria:palette":"color selection area","aria:hue":"hue selection slider","aria:opacity":"selection slider"};static DEFAULT_OPTIONS={appClass:null,theme:"classic",useAsButton:!1,padding:8,disabled:!1,comparison:!0,closeOnScroll:!1,outputPrecision:0,lockOpacity:!1,autoReposition:!0,container:"body",components:{interaction:{}},i18n:{},swatches:null,inline:!1,sliders:null,default:"#42445a",defaultRepresentation:null,position:"bottom-middle",adjustableNumbers:!0,showAlways:!1,closeWithKey:"Escape"};_initializingActive=!0;_recalc=!0;_nanopop=null;_root=null;_color=y();_lastColor=y();_swatchColors=[];_setupAnimationFrame=null;_eventListener={init:[],save:[],hide:[],show:[],clear:[],change:[],changestop:[],cancel:[],swatchselect:[]};constructor(t){this.options=t=Object.assign({...S.DEFAULT_OPTIONS},t);const{swatches:e,components:o,theme:r,sliders:i,lockOpacity:n,padding:s}=t;["nano","monolith"].includes(r)&&!i&&(t.sliders="h"),o.interaction||(o.interaction={});const{preview:a,opacity:c,hue:l,palette:p}=o;o.opacity=!n&&c,o.palette=p||a||c||l,this._preBuild(),this._buildComponents(),this._bindEvents(),this._finalBuild(),e&&e.length&&e.forEach((t=>this.addSwatch(t)));const{button:h,app:d}=this._root;this._nanopop=((t,e,o)=>{const r="object"!=typeof t||t instanceof HTMLElement?{reference:t,popper:e,...o}:t;return{update(t=r){const{reference:e,popper:o}=Object.assign(r,t);if(!o||!e)throw new Error("Popper- or reference-element missing.");return((t,e,o)=>{const{container:r,arrow:i,margin:n,padding:s,position:a,variantFlipOrder:c,positionFlipOrder:l}={container:document.documentElement.getBoundingClientRect(),...A,...o},{left:p,top:h}=e.style;e.style.left="0",e.style.top="0";const d=t.getBoundingClientRect(),u=e.getBoundingClientRect(),g={t:d.top-u.height-n,b:d.bottom+n,r:d.right+n,l:d.left-u.width-n},f={vs:d.left,vm:d.left+d.width/2-u.width/2,ve:d.left+d.width-u.width,hs:d.top,hm:d.bottom-d.height/2-u.height/2,he:d.bottom-u.height},[m,v="middle"]=a.split("-"),b=l[m],k=c[v],{top:w,left:y,bottom:_,right:C}=r;for(const t of b){const o="t"===t||"b"===t;let r=g[t];const[n,a]=o?["top","left"]:["left","top"],[c,l]=o?[u.height,u.width]:[u.width,u.height],[p,h]=o?[_,C]:[C,_],[m,v]=o?[w,y]:[y,w];if(!(rp))for(const p of k){let g=f[(o?"v":"h")+p];if(!(gh)){if(g-=u[a],r-=u[n],e.style[a]=`${g}px`,e.style[n]=`${r}px`,i){const e=o?d.width/2:d.height/2,s=l/2,h=e>s,u=g+{s:h?s:e,m:s,e:h?s:l-e}[p],f=r+{t:c,b:0,r:0,l:c}[t];i.style[a]=`${u}px`,i.style[n]=`${f}px`}return t+p}}}return e.style.left=p,e.style.top=h,null})(e,o,r)}}})(h,d,{margin:s}),h.setAttribute("role","button"),h.setAttribute("aria-label",this._t("btn:toggle"));const u=this;this._setupAnimationFrame=requestAnimationFrame((function e(){if(!d.offsetWidth)return requestAnimationFrame(e);u.setColor(t.default),u._rePositioningPicker(),t.defaultRepresentation&&(u._representation=t.defaultRepresentation,u.setColorRepresentation(u._representation)),t.showAlways&&u.show(),u._initializingActive=!1,u._emit("init")}))}static create=t=>new S(t);_preBuild(){const{options:t}=this;for(const e of["el","container"])t[e]=l(t[e]);this._root=(t=>{const{components:e,useAsButton:o,inline:r,appClass:i,theme:n,lockOpacity:s}=t.options,c=t=>t?"":'style="display:none" hidden',l=e=>t._t(e),p=a(`\n
\n\n ${o?"":''}\n\n
\n
\n
\n \n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n\n
\n\n
\n \n\n \n \n \n \n \n\n \n \n \n
\n
\n
\n `),h=p.interaction;return h.options.find((t=>!t.hidden&&!t.classList.add("active"))),h.type=()=>h.options.find((t=>t.classList.contains("active"))),p})(this),t.useAsButton&&(this._root.button=t.el),t.container.appendChild(this._root.root)}_finalBuild(){const t=this.options,e=this._root;if(t.container.removeChild(e.root),t.inline){const o=t.el.parentElement;t.el.nextSibling?o.insertBefore(e.app,t.el.nextSibling):o.appendChild(e.app)}else t.container.appendChild(e.app);t.useAsButton?t.inline&&t.el.remove():t.el.parentNode.replaceChild(e.root,t.el),t.disabled&&this.disable(),t.comparison||(e.button.style.transition="none",t.useAsButton||(e.preview.lastColor.style.transition="none")),this.hide()}_buildComponents(){const t=this,e=this.options.components,o=(t.options.sliders||"v").repeat(2),[r,i]=o.match(/^[vh]+$/g)?o:[],n=()=>this._color||(this._color=this._lastColor.clone()),s={palette:C({element:t._root.palette.picker,wrapper:t._root.palette.palette,onstop:()=>t._emit("changestop","slider",t),onchange(o,r){if(!e.palette)return;const i=n(),{_root:s,options:a}=t,{lastColor:c,currentColor:l}=s.preview;t._recalc&&(i.s=100*o,i.v=100-100*r,i.v<0&&(i.v=0),t._updateOutput("slider"));const p=i.toRGBA().toString(0);this.element.style.background=p,this.wrapper.style.background=`\n linear-gradient(to top, rgba(0, 0, 0, ${i.a}), transparent),\n linear-gradient(to left, hsla(${i.h}, 100%, 50%, ${i.a}), rgba(255, 255, 255, ${i.a}))\n `,a.comparison?a.useAsButton||t._lastColor||c.style.setProperty("--pcr-color",p):(s.button.style.setProperty("--pcr-color",p),s.button.classList.remove("clear"));const h=i.toHEXA().toString();for(const{el:e,color:o}of t._swatchColors)e.classList[h===o.toHEXA().toString()?"add":"remove"]("pcr-active");l.style.setProperty("--pcr-color",p)}}),hue:C({lock:"v"===i?"h":"v",element:t._root.hue.picker,wrapper:t._root.hue.slider,onstop:()=>t._emit("changestop","slider",t),onchange(o){if(!e.hue||!e.palette)return;const r=n();t._recalc&&(r.h=360*o),this.element.style.backgroundColor=`hsl(${r.h}, 100%, 50%)`,s.palette.trigger()}}),opacity:C({lock:"v"===r?"h":"v",element:t._root.opacity.picker,wrapper:t._root.opacity.slider,onstop:()=>t._emit("changestop","slider",t),onchange(o){if(!e.opacity||!e.palette)return;const r=n();t._recalc&&(r.a=Math.round(100*o)/100),this.element.style.background=`rgba(0, 0, 0, ${r.a})`,s.palette.trigger()}}),selectable:x({elements:t._root.interaction.options,className:"active",onchange(e){t._representation=e.target.getAttribute("data-type").toUpperCase(),t._recalc&&t._updateOutput("swatch")}})};this._components=s}_bindEvents(){const{_root:t,options:e}=this,o=[i(t.interaction.clear,"click",(()=>this._clearColor())),i([t.interaction.cancel,t.preview.lastColor],"click",(()=>{this.setHSVA(...(this._lastColor||this._color).toHSVA(),!0),this._emit("cancel")})),i(t.interaction.save,"click",(()=>{!this.applyColor()&&!e.showAlways&&this.hide()})),i(t.interaction.result,["keyup","input"],(t=>{this.setColor(t.target.value,!0)&&!this._initializingActive&&(this._emit("change",this._color,"input",this),this._emit("changestop","input",this)),t.stopImmediatePropagation()})),i(t.interaction.result,["focus","blur"],(t=>{this._recalc="blur"===t.type,this._recalc&&this._updateOutput(null)})),i([t.palette.palette,t.palette.picker,t.hue.slider,t.hue.picker,t.opacity.slider,t.opacity.picker],["mousedown","touchstart"],(()=>this._recalc=!0),{passive:!0})];if(!e.showAlways){const r=e.closeWithKey;o.push(i(t.button,"click",(()=>this.isOpen()?this.hide():this.show())),i(document,"keyup",(t=>this.isOpen()&&(t.key===r||t.code===r)&&this.hide())),i(document,["touchstart","mousedown"],(e=>{this.isOpen()&&!c(e).some((e=>e===t.app||e===t.button))&&this.hide()}),{capture:!0}))}if(e.adjustableNumbers){const e={rgba:[255,255,255,1],hsva:[360,100,100,1],hsla:[360,100,100,1],cmyk:[100,100,100,100]};p(t.interaction.result,((t,o,r)=>{const i=e[this.getColorRepresentation().toLowerCase()];if(i){const e=i[r],n=t+(e>=100?1e3*o:o);return n<=0?0:Number((n{r.isOpen()&&(e.closeOnScroll&&r.hide(),null===t?(t=setTimeout((()=>t=null),100),requestAnimationFrame((function e(){r._rePositioningPicker(),null!==t&&requestAnimationFrame(e)}))):(clearTimeout(t),t=setTimeout((()=>t=null),100)))}),{capture:!0}))}this._eventBindings=o}_rePositioningPicker(){const{options:t}=this;if(!t.inline&&!this._nanopop.update({container:document.body.getBoundingClientRect(),position:t.position})){const t=this._root.app,e=t.getBoundingClientRect();t.style.top=(window.innerHeight-e.height)/2+"px",t.style.left=(window.innerWidth-e.width)/2+"px"}}_updateOutput(t){const{_root:e,_color:o,options:r}=this;if(e.interaction.type()){const t=`to${e.interaction.type().getAttribute("data-type")}`;e.interaction.result.value="function"==typeof o[t]?o[t]().toString(r.outputPrecision):""}!this._initializingActive&&this._recalc&&this._emit("change",o,t,this)}_clearColor(t=!1){const{_root:e,options:o}=this;o.useAsButton||e.button.style.setProperty("--pcr-color","rgba(0, 0, 0, 0.15)"),e.button.classList.add("clear"),o.showAlways||this.hide(),this._lastColor=null,this._initializingActive||t||(this._emit("save",null),this._emit("clear"))}_parseLocalColor(t){const{values:e,type:o,a:r}=function(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if("black"===t.toLowerCase())return"#000";const e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,"#000"===e.fillStyle?null:e.fillStyle}(t):t;const e={cmyk:/^cmyk\D+([\d.]+)\D+([\d.]+)\D+([\d.]+)\D+([\d.]+)/i,rgba:/^rgba?\D+([\d.]+)(%?)\D+([\d.]+)(%?)\D+([\d.]+)(%?)\D*?(([\d.]+)(%?)|$)/i,hsla:/^hsla?\D+([\d.]+)\D+([\d.]+)\D+([\d.]+)\D*?(([\d.]+)(%?)|$)/i,hsva:/^hsva?\D+([\d.]+)\D+([\d.]+)\D+([\d.]+)\D*?(([\d.]+)(%?)|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},o=t=>t.map((t=>/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0));let r;t:for(const i in e)if(r=e[i].exec(t))switch(i){case"cmyk":{const[,t,e,n,s]=o(r);if(t>100||e>100||n>100||s>100)break t;return{values:b(t,e,n,s),type:i}}case"rgba":{let[,t,,e,,n,,,s]=o(r);if(t="%"===r[2]?t/100*255:t,e="%"===r[4]?e/100*255:e,n="%"===r[6]?n/100*255:n,s="%"===r[9]?s/100:s,t>255||e>255||n>255||s<0||s>1)break t;return{values:[...v(t,e,n),s],a:s,type:i}}case"hexa":{let[,t]=r;4!==t.length&&3!==t.length||(t=t.split("").map((t=>t+t)).join(""));const e=t.substring(0,6);let o=t.substring(6);return o=o?parseInt(o,16)/255:void 0,{values:[...w(e),o],a:o,type:i}}case"hsla":{let[,t,e,n,,s]=o(r);if(s="%"===r[6]?s/100:s,t>360||e>100||n>100||s<0||s>1)break t;return{values:[...k(t,e,n),s],a:s,type:i}}case"hsva":{let[,t,e,n,,s]=o(r);if(s="%"===r[6]?s/100:s,t>360||e>100||n>100||s<0||s>1)break t;return{values:[t,e,n,s],a:s,type:i}}}return{values:null,type:null}}(t),{lockOpacity:i}=this.options,n=void 0!==r&&1!==r;return e&&3===e.length&&(e[3]=void 0),{values:!e||i&&n?null:e,type:o}}_t(t){return this.options.i18n[t]||S.I18N_DEFAULTS[t]}_emit(t,...e){this._eventListener[t].forEach((t=>t(...e,this)))}on(t,e){return this._eventListener[t].push(e),this}off(t,e){const o=this._eventListener[t]||[],r=o.indexOf(e);return~r&&o.splice(r,1),this}addSwatch(t){const{values:e}=this._parseLocalColor(t);if(e){const{_swatchColors:t,_root:o}=this,r=y(...e),n=s(`'}\n\n
\n
\n
\n \n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n\n
\n\n
\n \n\n \n \n \n \n \n\n \n \n \n
\n
\n
\n `),h=p.interaction;return h.options.find((t=>!t.hidden&&!t.classList.add("active"))),h.type=()=>h.options.find((t=>t.classList.contains("active"))),p})(this),t.useAsButton&&(this._root.button=t.el),t.container.appendChild(this._root.root)}_finalBuild(){const t=this.options,e=this._root;if(t.container.removeChild(e.root),t.inline){const o=t.el.parentElement;t.el.nextSibling?o.insertBefore(e.app,t.el.nextSibling):o.appendChild(e.app)}else t.container.appendChild(e.app);t.useAsButton?t.inline&&t.el.remove():t.el.parentNode.replaceChild(e.root,t.el),t.disabled&&this.disable(),t.comparison||(e.button.style.transition="none",t.useAsButton||(e.preview.lastColor.style.transition="none")),this.hide()}_buildComponents(){const t=this,e=this.options.components,o=(t.options.sliders||"v").repeat(2),[r,i]=o.match(/^[vh]+$/g)?o:[],n=()=>this._color||(this._color=this._lastColor.clone()),s={palette:C({element:t._root.palette.picker,wrapper:t._root.palette.palette,onstop:()=>t._emit("changestop","slider",t),onchange(o,r){if(!e.palette)return;const i=n(),{_root:s,options:a}=t,{lastColor:c,currentColor:l}=s.preview;t._recalc&&(i.s=100*o,i.v=100-100*r,i.v<0&&(i.v=0),t._updateOutput("slider"));const p=i.toRGBA().toString(0);this.element.style.background=p,this.wrapper.style.background=`\n linear-gradient(to top, rgba(0, 0, 0, ${i.a}), transparent),\n linear-gradient(to left, hsla(${i.h}, 100%, 50%, ${i.a}), rgba(255, 255, 255, ${i.a}))\n `,a.comparison?a.useAsButton||t._lastColor||c.style.setProperty("--pcr-color",p):(s.button.style.setProperty("--pcr-color",p),s.button.classList.remove("clear"));const h=i.toHEXA().toString();for(const{el:e,color:o}of t._swatchColors)e.classList[h===o.toHEXA().toString()?"add":"remove"]("pcr-active");l.style.setProperty("--pcr-color",p)}}),hue:C({lock:"v"===i?"h":"v",element:t._root.hue.picker,wrapper:t._root.hue.slider,onstop:()=>t._emit("changestop","slider",t),onchange(o){if(!e.hue||!e.palette)return;const r=n();t._recalc&&(r.h=360*o),this.element.style.backgroundColor=`hsl(${r.h}, 100%, 50%)`,s.palette.trigger()}}),opacity:C({lock:"v"===r?"h":"v",element:t._root.opacity.picker,wrapper:t._root.opacity.slider,onstop:()=>t._emit("changestop","slider",t),onchange(o){if(!e.opacity||!e.palette)return;const r=n();t._recalc&&(r.a=Math.round(100*o)/100),this.element.style.background=`rgba(0, 0, 0, ${r.a})`,s.palette.trigger()}}),selectable:x({elements:t._root.interaction.options,className:"active",onchange(e){t._representation=e.target.getAttribute("data-type").toUpperCase(),t._recalc&&t._updateOutput("swatch")}})};this._components=s}_bindEvents(){const{_root:t,options:e}=this,o=[i(t.interaction.clear,"click",(()=>this._clearColor())),i([t.interaction.cancel,t.preview.lastColor],"click",(()=>{this.setHSVA(...(this._lastColor||this._color).toHSVA(),!0),this._emit("cancel")})),i(t.interaction.save,"click",(()=>{!this.applyColor()&&!e.showAlways&&this.hide()})),i(t.interaction.result,["keyup","input"],(t=>{this.setColor(t.target.value,!0)&&!this._initializingActive&&(this._emit("change",this._color,"input",this),this._emit("changestop","input",this)),t.stopImmediatePropagation()})),i(t.interaction.result,["focus","blur"],(t=>{this._recalc="blur"===t.type,this._recalc&&this._updateOutput(null)})),i([t.palette.palette,t.palette.picker,t.hue.slider,t.hue.picker,t.opacity.slider,t.opacity.picker],["mousedown","touchstart"],(()=>this._recalc=!0),{passive:!0})];if(!e.showAlways){const r=e.closeWithKey;o.push(i(t.button,"click",(()=>this.isOpen()?this.hide():this.show())),i(document,"keyup",(t=>this.isOpen()&&(t.key===r||t.code===r)&&this.hide())),i(document,["touchstart","mousedown"],(e=>{this.isOpen()&&!c(e).some((e=>e===t.app||e===t.button))&&this.hide()}),{capture:!0}))}if(e.adjustableNumbers){const e={rgba:[255,255,255,1],hsva:[360,100,100,1],hsla:[360,100,100,1],cmyk:[100,100,100,100]};p(t.interaction.result,((t,o,r)=>{const i=e[this.getColorRepresentation().toLowerCase()];if(i){const e=i[r],n=t+(e>=100?1e3*o:o);return n<=0?0:Number((n{r.isOpen()&&(e.closeOnScroll&&r.hide(),null===t?(t=setTimeout((()=>t=null),100),requestAnimationFrame((function e(){r._rePositioningPicker(),null!==t&&requestAnimationFrame(e)}))):(clearTimeout(t),t=setTimeout((()=>t=null),100)))}),{capture:!0}))}this._eventBindings=o}_rePositioningPicker(){const{options:t}=this;if(!t.inline&&!this._nanopop.update({container:document.body.getBoundingClientRect(),position:t.position})){const t=this._root.app,e=t.getBoundingClientRect();t.style.top=(window.innerHeight-e.height)/2+"px",t.style.left=(window.innerWidth-e.width)/2+"px"}}_updateOutput(t){const{_root:e,_color:o,options:r}=this;if(e.interaction.type()){const t=`to${e.interaction.type().getAttribute("data-type")}`;e.interaction.result.value="function"==typeof o[t]?o[t]().toString(r.outputPrecision):""}!this._initializingActive&&this._recalc&&this._emit("change",o,t,this)}_clearColor(t=!1){const{_root:e,options:o}=this;o.useAsButton||e.button.style.setProperty("--pcr-color","rgba(0, 0, 0, 0.15)"),e.button.classList.add("clear"),o.showAlways||this.hide(),this._lastColor=null,this._initializingActive||t||(this._emit("save",null),this._emit("clear"))}_parseLocalColor(t){const{values:e,type:o,a:r}=function(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if("black"===t.toLowerCase())return"#000";const e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,"#000"===e.fillStyle?null:e.fillStyle}(t):t;const e={cmyk:/^cmyk\D+([\d.]+)\D+([\d.]+)\D+([\d.]+)\D+([\d.]+)/i,rgba:/^rgba?\D+([\d.]+)(%?)\D+([\d.]+)(%?)\D+([\d.]+)(%?)\D*?(([\d.]+)(%?)|$)/i,hsla:/^hsla?\D+([\d.]+)\D+([\d.]+)\D+([\d.]+)\D*?(([\d.]+)(%?)|$)/i,hsva:/^hsva?\D+([\d.]+)\D+([\d.]+)\D+([\d.]+)\D*?(([\d.]+)(%?)|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},o=t=>t.map((t=>/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0));let r;t:for(const i in e)if(r=e[i].exec(t))switch(i){case"cmyk":{const[,t,e,n,s]=o(r);if(t>100||e>100||n>100||s>100)break t;return{values:b(t,e,n,s),type:i}}case"rgba":{let[,t,,e,,n,,,s]=o(r);if(t="%"===r[2]?t/100*255:t,e="%"===r[4]?e/100*255:e,n="%"===r[6]?n/100*255:n,s="%"===r[9]?s/100:s,t>255||e>255||n>255||s<0||s>1)break t;return{values:[...v(t,e,n),s],a:s,type:i}}case"hexa":{let[,t]=r;4!==t.length&&3!==t.length||(t=t.split("").map((t=>t+t)).join(""));const e=t.substring(0,6);let o=t.substring(6);return o=o?parseInt(o,16)/255:void 0,{values:[...w(e),o],a:o,type:i}}case"hsla":{let[,t,e,n,,s]=o(r);if(s="%"===r[6]?s/100:s,t>360||e>100||n>100||s<0||s>1)break t;return{values:[...k(t,e,n),s],a:s,type:i}}case"hsva":{let[,t,e,n,,s]=o(r);if(s="%"===r[6]?s/100:s,t>360||e>100||n>100||s<0||s>1)break t;return{values:[t,e,n,s],a:s,type:i}}}return{values:null,type:null}}(t),{lockOpacity:i}=this.options,n=void 0!==r&&1!==r;return e&&3===e.length&&(e[3]=void 0),{values:!e||i&&n?null:e,type:o}}_t(t){return this.options.i18n[t]||S.I18N_DEFAULTS[t]}_emit(t,...e){this._eventListener[t].forEach((t=>t(...e,this)))}on(t,e){return this._eventListener[t].push(e),this}off(t,e){const o=this._eventListener[t]||[],r=o.indexOf(e);return~r&&o.splice(r,1),this}addSwatch(t){const{values:e}=this._parseLocalColor(t);if(e){const{_swatchColors:t,_root:o}=this,r=y(...e),n=s(`